@florid-kit/components 0.3.8 → 0.3.11

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.mjs CHANGED
@@ -3,18 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const V = globalThis, rt = V.ShadowRoot && (V.ShadyCSS === void 0 || V.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, it = Symbol(), lt = /* @__PURE__ */ new WeakMap();
7
- let mt = class {
6
+ const F = globalThis, ot = F.ShadowRoot && (F.ShadyCSS === void 0 || F.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, nt = Symbol(), dt = /* @__PURE__ */ new WeakMap();
7
+ let At = class {
8
8
  constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== it) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, s !== nt) 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
- if (rt && t === void 0) {
15
+ if (ot && t === void 0) {
16
16
  const s = e !== void 0 && e.length === 1;
17
- s && (t = lt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && lt.set(e, t));
17
+ s && (t = dt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && dt.set(e, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,33 +22,33 @@ let mt = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const _t = (i) => new mt(typeof i == "string" ? i : i + "", void 0, it), I = (i, ...t) => {
25
+ const xt = (i) => new At(typeof i == "string" ? i : i + "", void 0, nt), O = (i, ...t) => {
26
26
  const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
27
27
  if (o._$cssResult$ === !0) return o.cssText;
28
28
  if (typeof o == "number") return o;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(r) + i[n + 1], i[0]);
31
- return new mt(e, i, it);
32
- }, Ct = (i, t) => {
33
- if (rt) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
31
+ return new At(e, i, nt);
32
+ }, Pt = (i, t) => {
33
+ if (ot) i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const s = document.createElement("style"), r = V.litNonce;
35
+ const s = document.createElement("style"), r = F.litNonce;
36
36
  r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
37
37
  }
38
- }, ct = rt ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
38
+ }, pt = ot ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const s of t.cssRules) e += s.cssText;
41
- return _t(e);
41
+ return xt(e);
42
42
  })(i) : i;
43
43
  /**
44
44
  * @license
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: Pt, defineProperty: Ot, getOwnPropertyDescriptor: kt, getOwnPropertyNames: Ut, getOwnPropertySymbols: Mt, getPrototypeOf: Tt } = Object, _ = globalThis, ht = _.trustedTypes, It = ht ? ht.emptyScript : "", K = _.reactiveElementPolyfillSupport, z = (i, t) => i, q = { toAttribute(i, t) {
48
+ const { is: Ot, defineProperty: Ht, getOwnPropertyDescriptor: kt, getOwnPropertyNames: Mt, getOwnPropertySymbols: Ut, getPrototypeOf: Bt } = Object, w = globalThis, ut = w.trustedTypes, Tt = ut ? ut.emptyScript : "", Q = w.reactiveElementPolyfillSupport, I = (i, t) => i, q = { toAttribute(i, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
- i = i ? It : null;
51
+ i = i ? Tt : null;
52
52
  break;
53
53
  case Object:
54
54
  case Array:
@@ -73,19 +73,19 @@ const { is: Pt, defineProperty: Ot, getOwnPropertyDescriptor: kt, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, ot = (i, t) => !Pt(i, t), dt = { attribute: !0, type: String, converter: q, reflect: !1, useDefault: !1, hasChanged: ot };
77
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
- let U = class extends HTMLElement {
76
+ } }, at = (i, t) => !Ot(i, t), gt = { attribute: !0, type: String, converter: q, reflect: !1, useDefault: !1, hasChanged: at };
77
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
+ let k = class extends HTMLElement {
79
79
  static addInitializer(t) {
80
80
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
81
81
  }
82
82
  static get observedAttributes() {
83
83
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
84
84
  }
85
- static createProperty(t, e = dt) {
85
+ static createProperty(t, e = gt) {
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
87
  const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
88
- r !== void 0 && Ot(this.prototype, t, r);
88
+ r !== void 0 && Ht(this.prototype, t, r);
89
89
  }
90
90
  }
91
91
  static getPropertyDescriptor(t, e, s) {
@@ -100,17 +100,17 @@ let U = class extends HTMLElement {
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
103
- return this.elementProperties.get(t) ?? dt;
103
+ return this.elementProperties.get(t) ?? gt;
104
104
  }
105
105
  static _$Ei() {
106
- if (this.hasOwnProperty(z("elementProperties"))) return;
107
- const t = Tt(this);
106
+ if (this.hasOwnProperty(I("elementProperties"))) return;
107
+ const t = Bt(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(z("finalized"))) return;
112
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(z("properties"))) {
113
- const e = this.properties, s = [...Ut(e), ...Mt(e)];
111
+ if (this.hasOwnProperty(I("finalized"))) return;
112
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
113
+ const e = this.properties, s = [...Mt(e), ...Ut(e)];
114
114
  for (const r of s) this.createProperty(r, e[r]);
115
115
  }
116
116
  const t = this[Symbol.metadata];
@@ -129,8 +129,8 @@ let U = class extends HTMLElement {
129
129
  const e = [];
130
130
  if (Array.isArray(t)) {
131
131
  const s = new Set(t.flat(1 / 0).reverse());
132
- for (const r of s) e.unshift(ct(r));
133
- } else t !== void 0 && e.push(ct(t));
132
+ for (const r of s) e.unshift(pt(r));
133
+ } else t !== void 0 && e.push(pt(t));
134
134
  return e;
135
135
  }
136
136
  static _$Eu(t, e) {
@@ -159,7 +159,7 @@ let U = class extends HTMLElement {
159
159
  }
160
160
  createRenderRoot() {
161
161
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
162
- return Ct(t, this.constructor.elementStyles), t;
162
+ return Pt(t, this.constructor.elementStyles), t;
163
163
  }
164
164
  connectedCallback() {
165
165
  var t;
@@ -200,7 +200,7 @@ let U = class extends HTMLElement {
200
200
  var r;
201
201
  if (t !== void 0) {
202
202
  const n = this.constructor, o = this[t];
203
- if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? ot)(o, e) || s.useDefault && s.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
203
+ if (s ?? (s = n.getPropertyOptions(t)), !((s.hasChanged ?? at)(o, e) || s.useDefault && s.reflect && o === ((r = this._$Ej) == null ? void 0 : r.get(t)) && !this.hasAttribute(n._$Eu(t, s)))) return;
204
204
  this.C(t, e, s);
205
205
  }
206
206
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -276,76 +276,76 @@ let U = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[z("elementProperties")] = /* @__PURE__ */ new Map(), U[z("finalized")] = /* @__PURE__ */ new Map(), K == null || K({ ReactiveElement: U }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.1.0");
279
+ k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[I("elementProperties")] = /* @__PURE__ */ new Map(), k[I("finalized")] = /* @__PURE__ */ new Map(), Q == null || Q({ ReactiveElement: k }), (w.reactiveElementVersions ?? (w.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 B = globalThis, W = B.trustedTypes, ut = W ? W.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, wt = "$lit$", m = `lit$${Math.random().toFixed(9).slice(2)}$`, At = "?" + m, Ht = `<${At}>`, P = document, L = () => P.createComment(""), N = (i) => i === null || typeof i != "object" && typeof i != "function", nt = Array.isArray, zt = (i) => nt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", X = `[
286
- \f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, pt = /-->/g, ft = />/g, E = RegExp(`>|${X}(?:([^\\s"'>=/]+)(${X}*=${X}*(?:[^
287
- \f\r"'\`<>=]|("|')|))|$)`, "g"), gt = /'/g, bt = /"/g, xt = /^(?:script|style|textarea|title)$/i, Bt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), g = Bt(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), S = P.createTreeWalker(P, 129);
288
- function Et(i, t) {
289
- if (!nt(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
- return ut !== void 0 ? ut.createHTML(t) : t;
285
+ const z = globalThis, W = z.trustedTypes, ft = W ? W.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, Et = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, St = "?" + _, It = `<${St}>`, C = document, N = () => C.createComment(""), D = (i) => i === null || typeof i != "object" && typeof i != "function", lt = Array.isArray, zt = (i) => lt(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Y = `[
286
+ \f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, vt = /-->/g, bt = />/g, E = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
287
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), $t = /'/g, yt = /"/g, Lt = /^(?:script|style|textarea|title)$/i, Nt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), g = Nt(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), mt = /* @__PURE__ */ new WeakMap(), S = C.createTreeWalker(C, 129);
288
+ function Ct(i, t) {
289
+ if (!lt(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
+ return ft !== void 0 ? ft.createHTML(t) : t;
291
291
  }
292
- const Lt = (i, t) => {
292
+ const Dt = (i, t) => {
293
293
  const e = i.length - 1, s = [];
294
- let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = H;
294
+ let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = T;
295
295
  for (let l = 0; l < e; l++) {
296
296
  const a = i[l];
297
- let u, p, c = -1, v = 0;
298
- for (; v < a.length && (o.lastIndex = v, p = o.exec(a), p !== null); ) v = o.lastIndex, o === H ? p[1] === "!--" ? o = pt : p[1] !== void 0 ? o = ft : p[2] !== void 0 ? (xt.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = E) : p[3] !== void 0 && (o = E) : o === E ? p[0] === ">" ? (o = r ?? H, c = -1) : p[1] === void 0 ? c = -2 : (c = o.lastIndex - p[2].length, u = p[1], o = p[3] === void 0 ? E : p[3] === '"' ? bt : gt) : o === bt || o === gt ? o = E : o === pt || o === ft ? o = H : (o = E, r = void 0);
299
- const y = o === E && i[l + 1].startsWith("/>") ? " " : "";
300
- n += o === H ? a + Ht : c >= 0 ? (s.push(u), a.slice(0, c) + wt + a.slice(c) + m + y) : a + m + (c === -2 ? l : y);
297
+ let p, u, c = -1, b = 0;
298
+ for (; b < a.length && (o.lastIndex = b, u = o.exec(a), u !== null); ) b = o.lastIndex, o === T ? u[1] === "!--" ? o = vt : u[1] !== void 0 ? o = bt : u[2] !== void 0 ? (Lt.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = E) : u[3] !== void 0 && (o = E) : o === E ? u[0] === ">" ? (o = r ?? T, c = -1) : u[1] === void 0 ? c = -2 : (c = o.lastIndex - u[2].length, p = u[1], o = u[3] === void 0 ? E : u[3] === '"' ? yt : $t) : o === yt || o === $t ? o = E : o === vt || o === bt ? o = T : (o = E, r = void 0);
299
+ const m = o === E && i[l + 1].startsWith("/>") ? " " : "";
300
+ n += o === T ? a + It : c >= 0 ? (s.push(p), a.slice(0, c) + Et + a.slice(c) + _ + m) : a + _ + (c === -2 ? l : m);
301
301
  }
302
- return [Et(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
302
+ return [Ct(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
303
303
  };
304
- class D {
304
+ class R {
305
305
  constructor({ strings: t, _$litType$: e }, s) {
306
306
  let r;
307
307
  this.parts = [];
308
308
  let n = 0, o = 0;
309
- const l = t.length - 1, a = this.parts, [u, p] = Lt(t, e);
310
- if (this.el = D.createElement(u, s), S.currentNode = this.el.content, e === 2 || e === 3) {
309
+ const l = t.length - 1, a = this.parts, [p, u] = Dt(t, e);
310
+ if (this.el = R.createElement(p, s), S.currentNode = this.el.content, e === 2 || e === 3) {
311
311
  const c = this.el.content.firstChild;
312
312
  c.replaceWith(...c.childNodes);
313
313
  }
314
314
  for (; (r = S.nextNode()) !== null && a.length < l; ) {
315
315
  if (r.nodeType === 1) {
316
- if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(wt)) {
317
- const v = p[o++], y = r.getAttribute(c).split(m), j = /([.?@])?(.*)/.exec(v);
318
- a.push({ type: 1, index: n, name: j[2], strings: y, ctor: j[1] === "." ? Dt : j[1] === "?" ? Rt : j[1] === "@" ? jt : F }), r.removeAttribute(c);
319
- } else c.startsWith(m) && (a.push({ type: 6, index: n }), r.removeAttribute(c));
320
- if (xt.test(r.tagName)) {
321
- const c = r.textContent.split(m), v = c.length - 1;
322
- if (v > 0) {
316
+ if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(Et)) {
317
+ const b = u[o++], m = r.getAttribute(c).split(_), Z = /([.?@])?(.*)/.exec(b);
318
+ a.push({ type: 1, index: n, name: Z[2], strings: m, ctor: Z[1] === "." ? jt : Z[1] === "?" ? Vt : Z[1] === "@" ? Zt : J }), r.removeAttribute(c);
319
+ } else c.startsWith(_) && (a.push({ type: 6, index: n }), r.removeAttribute(c));
320
+ if (Lt.test(r.tagName)) {
321
+ const c = r.textContent.split(_), b = c.length - 1;
322
+ if (b > 0) {
323
323
  r.textContent = W ? W.emptyScript : "";
324
- for (let y = 0; y < v; y++) r.append(c[y], L()), S.nextNode(), a.push({ type: 2, index: ++n });
325
- r.append(c[v], L());
324
+ for (let m = 0; m < b; m++) r.append(c[m], N()), S.nextNode(), a.push({ type: 2, index: ++n });
325
+ r.append(c[b], N());
326
326
  }
327
327
  }
328
- } else if (r.nodeType === 8) if (r.data === At) a.push({ type: 2, index: n });
328
+ } else if (r.nodeType === 8) if (r.data === St) a.push({ type: 2, index: n });
329
329
  else {
330
330
  let c = -1;
331
- for (; (c = r.data.indexOf(m, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += m.length - 1;
331
+ for (; (c = r.data.indexOf(_, c + 1)) !== -1; ) a.push({ type: 7, index: n }), c += _.length - 1;
332
332
  }
333
333
  n++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
337
- const s = P.createElement("template");
337
+ const s = C.createElement("template");
338
338
  return s.innerHTML = t, s;
339
339
  }
340
340
  }
341
341
  function M(i, t, e = i, s) {
342
342
  var o, l;
343
- if (t === O) return t;
343
+ if (t === P) return t;
344
344
  let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
345
- const n = N(t) ? void 0 : t._$litDirective$;
345
+ const n = D(t) ? void 0 : t._$litDirective$;
346
346
  return (r == null ? void 0 : r.constructor) !== n && ((l = r == null ? void 0 : r._$AO) == null || l.call(r, !1), n === void 0 ? r = void 0 : (r = new n(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = M(i, r._$AS(i, t.values), r, s)), t;
347
347
  }
348
- class Nt {
348
+ class Rt {
349
349
  constructor(t, e) {
350
350
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
351
351
  }
@@ -356,24 +356,24 @@ class Nt {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(t) {
359
- const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? P).importNode(e, !0);
359
+ const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? C).importNode(e, !0);
360
360
  S.currentNode = r;
361
361
  let n = S.nextNode(), o = 0, l = 0, a = s[0];
362
362
  for (; a !== void 0; ) {
363
363
  if (o === a.index) {
364
- let u;
365
- a.type === 2 ? u = new R(n, n.nextSibling, this, t) : a.type === 1 ? u = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (u = new Vt(n, this, t)), this._$AV.push(u), a = s[++l];
364
+ let p;
365
+ a.type === 2 ? p = new j(n, n.nextSibling, this, t) : a.type === 1 ? p = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (p = new Ft(n, this, t)), this._$AV.push(p), a = s[++l];
366
366
  }
367
367
  o !== (a == null ? void 0 : a.index) && (n = S.nextNode(), o++);
368
368
  }
369
- return S.currentNode = P, r;
369
+ return S.currentNode = C, r;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
373
373
  for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
374
374
  }
375
375
  }
376
- class R {
376
+ class j {
377
377
  get _$AU() {
378
378
  var t;
379
379
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -393,7 +393,7 @@ class R {
393
393
  return this._$AB;
394
394
  }
395
395
  _$AI(t, e = this) {
396
- t = M(this, t, e), N(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) : zt(t) ? this.k(t) : this._(t);
396
+ t = M(this, t, e), D(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : zt(t) ? this.k(t) : this._(t);
397
397
  }
398
398
  O(t) {
399
399
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -402,26 +402,26 @@ class R {
402
402
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
403
  }
404
404
  _(t) {
405
- this._$AH !== d && N(this._$AH) ? this._$AA.nextSibling.data = t : this.T(P.createTextNode(t)), this._$AH = t;
405
+ this._$AH !== d && D(this._$AH) ? this._$AA.nextSibling.data = t : this.T(C.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
408
  var n;
409
- const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = D.createElement(Et(s.h, s.h[0]), this.options)), s);
409
+ const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = R.createElement(Ct(s.h, s.h[0]), this.options)), s);
410
410
  if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
411
411
  else {
412
- const o = new Nt(r, this), l = o.u(this.options);
412
+ const o = new Rt(r, this), l = o.u(this.options);
413
413
  o.p(e), this.T(l), this._$AH = o;
414
414
  }
415
415
  }
416
416
  _$AC(t) {
417
- let e = vt.get(t.strings);
418
- return e === void 0 && vt.set(t.strings, e = new D(t)), e;
417
+ let e = mt.get(t.strings);
418
+ return e === void 0 && mt.set(t.strings, e = new R(t)), e;
419
419
  }
420
420
  k(t) {
421
- nt(this._$AH) || (this._$AH = [], this._$AR());
421
+ lt(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
423
  let s, r = 0;
424
- for (const n of t) r === e.length ? e.push(s = new R(this.O(L()), this.O(L()), this, this.options)) : s = e[r], s._$AI(n), r++;
424
+ for (const n of t) r === e.length ? e.push(s = new j(this.O(N()), this.O(N()), this, this.options)) : s = e[r], s._$AI(n), r++;
425
425
  r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
426
426
  }
427
427
  _$AR(t = this._$AA.nextSibling, e) {
@@ -436,7 +436,7 @@ class R {
436
436
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
437
437
  }
438
438
  }
439
- class F {
439
+ class J {
440
440
  get tagName() {
441
441
  return this.element.tagName;
442
442
  }
@@ -449,11 +449,11 @@ class F {
449
449
  _$AI(t, e = this, s, r) {
450
450
  const n = this.strings;
451
451
  let o = !1;
452
- if (n === void 0) t = M(this, t, e, 0), o = !N(t) || t !== this._$AH && t !== O, o && (this._$AH = t);
452
+ if (n === void 0) t = M(this, t, e, 0), o = !D(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
453
453
  else {
454
454
  const l = t;
455
- let a, u;
456
- for (t = n[0], a = 0; a < n.length - 1; a++) u = M(this, l[s + a], e, a), u === O && (u = this._$AH[a]), o || (o = !N(u) || u !== this._$AH[a]), u === d ? t = d : t !== d && (t += (u ?? "") + n[a + 1]), this._$AH[a] = u;
455
+ let a, p;
456
+ for (t = n[0], a = 0; a < n.length - 1; a++) p = M(this, l[s + a], e, a), p === P && (p = this._$AH[a]), o || (o = !D(p) || p !== this._$AH[a]), p === d ? t = d : t !== d && (t += (p ?? "") + n[a + 1]), this._$AH[a] = p;
457
457
  }
458
458
  o && !r && this.j(t);
459
459
  }
@@ -461,7 +461,7 @@ class F {
461
461
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
462
462
  }
463
463
  }
464
- class Dt extends F {
464
+ class jt extends J {
465
465
  constructor() {
466
466
  super(...arguments), this.type = 3;
467
467
  }
@@ -469,7 +469,7 @@ class Dt extends F {
469
469
  this.element[this.name] = t === d ? void 0 : t;
470
470
  }
471
471
  }
472
- class Rt extends F {
472
+ class Vt extends J {
473
473
  constructor() {
474
474
  super(...arguments), this.type = 4;
475
475
  }
@@ -477,12 +477,12 @@ class Rt extends F {
477
477
  this.element.toggleAttribute(this.name, !!t && t !== d);
478
478
  }
479
479
  }
480
- class jt extends F {
480
+ class Zt extends J {
481
481
  constructor(t, e, s, r, n) {
482
482
  super(t, e, s, r, n), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
- if ((t = M(this, t, e, 0) ?? d) === O) return;
485
+ if ((t = M(this, t, e, 0) ?? d) === P) return;
486
486
  const s = this._$AH, r = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== d && (s === d || r);
487
487
  r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
@@ -491,7 +491,7 @@ class jt extends F {
491
491
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
492
492
  }
493
493
  }
494
- class Vt {
494
+ class Ft {
495
495
  constructor(t, e, s) {
496
496
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
497
497
  }
@@ -502,14 +502,14 @@ class Vt {
502
502
  M(this, t);
503
503
  }
504
504
  }
505
- const G = B.litHtmlPolyfillSupport;
506
- G == null || G(D, R), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.0");
505
+ const tt = z.litHtmlPolyfillSupport;
506
+ tt == null || tt(R, j), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.3.0");
507
507
  const qt = (i, t, e) => {
508
508
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
509
509
  let r = s._$litPart$;
510
510
  if (r === void 0) {
511
511
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
512
- s._$litPart$ = r = new R(t.insertBefore(L(), n), n, void 0, e ?? {});
512
+ s._$litPart$ = r = new j(t.insertBefore(N(), n), n, void 0, e ?? {});
513
513
  }
514
514
  return r._$AI(i), r;
515
515
  };
@@ -518,8 +518,8 @@ const qt = (i, t, e) => {
518
518
  * Copyright 2017 Google LLC
519
519
  * SPDX-License-Identifier: BSD-3-Clause
520
520
  */
521
- const C = globalThis;
522
- let w = class extends U {
521
+ const L = globalThis;
522
+ let $ = class extends k {
523
523
  constructor() {
524
524
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
525
525
  }
@@ -541,20 +541,20 @@ let w = class extends U {
541
541
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
542
542
  }
543
543
  render() {
544
- return O;
544
+ return P;
545
545
  }
546
546
  };
547
- var yt;
548
- w._$litElement$ = !0, w.finalized = !0, (yt = C.litElementHydrateSupport) == null || yt.call(C, { LitElement: w });
549
- const Q = C.litElementPolyfillSupport;
550
- Q == null || Q({ LitElement: w });
551
- (C.litElementVersions ?? (C.litElementVersions = [])).push("4.2.0");
547
+ var wt;
548
+ $._$litElement$ = !0, $.finalized = !0, (wt = L.litElementHydrateSupport) == null || wt.call(L, { LitElement: $ });
549
+ const et = L.litElementPolyfillSupport;
550
+ et == null || et({ LitElement: $ });
551
+ (L.litElementVersions ?? (L.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 Z = (i) => (t, e) => {
557
+ const V = (i) => (t, e) => {
558
558
  e !== void 0 ? e.addInitializer(() => {
559
559
  customElements.define(i, t);
560
560
  }) : customElements.define(i, t);
@@ -564,7 +564,7 @@ const Z = (i) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const Wt = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged: ot }, Ft = (i = Wt, t, e) => {
567
+ const Wt = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged: at }, Kt = (i = Wt, t, e) => {
568
568
  const { kind: s, metadata: r } = e;
569
569
  let n = globalThis.litPropertyMetadata.get(r);
570
570
  if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), n.set(e.name, i), s === "accessor") {
@@ -586,17 +586,17 @@ const Wt = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged:
586
586
  throw Error("Unsupported decorator location: " + s);
587
587
  };
588
588
  function h(i) {
589
- return (t, e) => typeof e == "object" ? Ft(i, t, e) : ((s, r, n) => {
589
+ return (t, e) => typeof e == "object" ? Kt(i, t, e) : ((s, r, n) => {
590
590
  const o = r.hasOwnProperty(n);
591
591
  return r.constructor.createProperty(n, s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
592
592
  })(i, t, e);
593
593
  }
594
- const Zt = I`
594
+ const Jt = O`
595
595
  outline: 1px dashed var(--button-border-color);
596
596
  outline-offset: 2px;
597
597
  outline: dashed black;
598
598
  `;
599
- I`
599
+ O`
600
600
  :host * {
601
601
  box-sizing: border-box;
602
602
  }
@@ -606,12 +606,12 @@ I`
606
606
  * Copyright 2023 Google LLC
607
607
  * SPDX-License-Identifier: Apache-2.0
608
608
  */
609
- const at = Symbol("internals"), Y = Symbol("privateInternals");
610
- function Jt(i) {
609
+ const ht = Symbol("internals"), st = Symbol("privateInternals");
610
+ function Xt(i) {
611
611
  var t;
612
612
  class e extends i {
613
- get [(t = at, t)]() {
614
- return this[Y] || (this[Y] = this.attachInternals()), this[Y];
613
+ get [(t = ht, t)]() {
614
+ return this[st] || (this[st] = this.attachInternals()), this[st];
615
615
  }
616
616
  }
617
617
  return e;
@@ -621,11 +621,11 @@ function Jt(i) {
621
621
  * Copyright 2023 Google LLC
622
622
  * SPDX-License-Identifier: Apache-2.0
623
623
  */
624
- function Kt(i) {
624
+ function Gt(i) {
625
625
  i.addInitializer((t) => {
626
626
  const e = t;
627
627
  e.addEventListener("click", async (s) => {
628
- const { type: r, [at]: n } = e, { form: o } = n;
628
+ const { type: r, [ht]: n } = e, { form: o } = n;
629
629
  if (!(!o || r === "button") && (await new Promise((l) => {
630
630
  setTimeout(l);
631
631
  }), !s.defaultPrevented)) {
@@ -648,12 +648,12 @@ function Kt(i) {
648
648
  });
649
649
  });
650
650
  }
651
- var Xt = Object.defineProperty, Gt = Object.getOwnPropertyDescriptor, A = (i, t, e, s) => {
652
- for (var r = s > 1 ? void 0 : s ? Gt(t, e) : t, n = i.length - 1, o; n >= 0; n--)
651
+ var Qt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, A = (i, t, e, s) => {
652
+ for (var r = s > 1 ? void 0 : s ? Yt(t, e) : t, n = i.length - 1, o; n >= 0; n--)
653
653
  (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
654
- return s && r && Xt(t, e, r), r;
654
+ return s && r && Qt(t, e, r), r;
655
655
  };
656
- const Qt = Jt(w), $t = (i) => {
656
+ const te = Xt($), _t = (i) => {
657
657
  const t = `
658
658
  --button-bg-disabled: var(--color-container-disabled);
659
659
  --button-bg-pressed: var(--color-container-action-${i}-pressed);
@@ -668,9 +668,9 @@ const Qt = Jt(w), $t = (i) => {
668
668
  --button-text-hover: var(--color-content-action-${i});
669
669
  --button-text: var(--color-content-action-${i});
670
670
  `;
671
- return _t(t);
672
- }, Yt = ["primary", "secondary"];
673
- let f = class extends Qt {
671
+ return xt(t);
672
+ }, ee = ["primary", "secondary"];
673
+ let f = class extends te {
674
674
  constructor() {
675
675
  super(...arguments), this.type = "submit", this.value = "", this.variant = "primary", this.customclass = "", this.disabled = !1, this.href = "", this.target = "";
676
676
  }
@@ -684,13 +684,13 @@ let f = class extends Qt {
684
684
  * The associated form element with which this element's value will submit.
685
685
  */
686
686
  get form() {
687
- return this[at].form;
687
+ return this[ht].form;
688
688
  }
689
689
  // TODO: Add aria attributes support
690
690
  // Adapt from: https://github.dev/material-components/material-web
691
691
  willUpdate() {
692
692
  const i = getComputedStyle(this).getPropertyValue("--button-variant");
693
- i && Yt.some((t) => t === i) && (this.variant = i);
693
+ i && ee.some((t) => t === i) && (this.variant = i);
694
694
  }
695
695
  updated() {
696
696
  if (this.customclass) {
@@ -713,13 +713,13 @@ let f = class extends Qt {
713
713
  </button>`;
714
714
  }
715
715
  };
716
- Kt(f);
716
+ Gt(f);
717
717
  f.formAssociated = !0;
718
- f.styles = I`
718
+ f.styles = O`
719
719
  :host {
720
720
  display: inline-flex;
721
721
  cursor: pointer;
722
- ${$t("primary")};
722
+ ${_t("primary")};
723
723
  --button-border: transparent;
724
724
  }
725
725
 
@@ -728,10 +728,10 @@ f.styles = I`
728
728
  }
729
729
 
730
730
  :host([variant="secondary"]) {
731
- ${$t("secondary")};
731
+ ${_t("secondary")};
732
732
  }
733
733
 
734
- :host([disabled]) {
734
+ :host([disabled]), :host([aria-disabled="true"]), :host([aria-disabled="true"]):hover {
735
735
  --button-bg: var(--button-bg-disabled);
736
736
  --button-text: var(--button-text-disabled);
737
737
  --button-border: transparent;
@@ -743,6 +743,12 @@ f.styles = I`
743
743
  --button-border: var(--button-border);
744
744
  }
745
745
 
746
+ :host([aria-disabled="true"]) button:hover {
747
+ background-color: var(--button-bg-disabled);
748
+ color: var(--button-text-disabled);
749
+ border-color: transparent;
750
+ }
751
+
746
752
  .button {
747
753
  -webkit-appearance: none;
748
754
  align-items: center;
@@ -789,7 +795,7 @@ f.styles = I`
789
795
  }
790
796
 
791
797
  .button:focus-visible {
792
- ${Zt};
798
+ ${Jt};
793
799
  }
794
800
  `;
795
801
  A([
@@ -818,15 +824,15 @@ A([
818
824
  h()
819
825
  ], f.prototype, "target", 2);
820
826
  f = A([
821
- Z("o-button")
827
+ V("o-button")
822
828
  ], f);
823
829
  /**
824
830
  * @license
825
831
  * Copyright 2017 Google LLC
826
832
  * SPDX-License-Identifier: BSD-3-Clause
827
833
  */
828
- const te = { CHILD: 2 }, ee = (i) => (...t) => ({ _$litDirective$: i, values: t });
829
- class se {
834
+ const se = { CHILD: 2 }, re = (i) => (...t) => ({ _$litDirective$: i, values: t });
835
+ class ie {
830
836
  constructor(t) {
831
837
  }
832
838
  get _$AU() {
@@ -847,13 +853,13 @@ class se {
847
853
  * Copyright 2017 Google LLC
848
854
  * SPDX-License-Identifier: BSD-3-Clause
849
855
  */
850
- class tt extends se {
856
+ class rt extends ie {
851
857
  constructor(t) {
852
- if (super(t), this.it = d, t.type !== te.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
858
+ if (super(t), this.it = d, t.type !== se.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
853
859
  }
854
860
  render(t) {
855
861
  if (t === d || t == null) return this._t = void 0, this.it = t;
856
- if (t === O) return t;
862
+ if (t === P) return t;
857
863
  if (typeof t != "string") throw Error(this.constructor.directiveName + "() called with a non-string value");
858
864
  if (t === this.it) return this._t;
859
865
  this.it = t;
@@ -861,44 +867,64 @@ class tt extends se {
861
867
  return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
862
868
  }
863
869
  }
864
- tt.directiveName = "unsafeHTML", tt.resultType = 1;
870
+ rt.directiveName = "unsafeHTML", rt.resultType = 1;
865
871
  /**
866
872
  * @license
867
873
  * Copyright 2017 Google LLC
868
874
  * SPDX-License-Identifier: BSD-3-Clause
869
875
  */
870
- class et extends tt {
876
+ class it extends rt {
871
877
  }
872
- et.directiveName = "unsafeSVG", et.resultType = 2;
873
- const st = ee(et), re = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
878
+ it.directiveName = "unsafeSVG", it.resultType = 2;
879
+ const K = re(it), oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
874
880
  <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"/>
875
881
  </svg>
876
- `, ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
882
+ `, ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
877
883
  <path d="M16 8L4 0V16L16 8Z" fill="#3F2B2E"/>
878
884
  </svg>
879
- `, oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
885
+ `, ae = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
880
886
  <path d="M12.2266 8.16162C11.0953 9.26599 8.72489 11.8788 5.11546 16L4.63062 15.7172C5.78886 13.4007 7.17607 10.8283 8.79223 8C7.17607 5.17172 5.78886 2.59933 4.63062 0.282827L5.11546 0C8.72489 4.12121 11.0953 6.73401 12.2266 7.83838V8.16162Z" fill="#3F2B2E"/>
881
887
  </svg>
882
- `, ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
888
+ `, le = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
883
889
  <path d="M5 7.83838C6.02128 6.73401 8.16109 4.12121 11.4195 0L11.8571 0.282829C10.8116 2.59933 9.55927 5.17172 8.1003 8C9.55927 10.8283 10.8115 13.4007 11.8571 15.7172L11.4195 16C8.16109 11.8788 6.02128 9.266 5 8.16162L5 7.83838Z" fill="#3F2B2E"/>
884
890
  </svg>
885
- `, St = {
886
- wishlist: re,
887
- playerv: ie,
888
- chevronRight: oe,
889
- chevronLeft: ne
891
+ `, he = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
892
+ <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834ZM7.98873 10.328L10.6602 12.2353L9.64573 9.15787L12.2721 7.28568H9.02576L8 4.17317L6.97424 7.28568H3.72786L6.35427 9.15787L5.33977 12.2353L8.01127 10.328H7.98873Z" fill="#3F2B2E"/>
893
+ </svg>
894
+ `, ce = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
895
+ <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM6.36554 11.5396V7.32718H6.97424L8 4.21467L9.02576 7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L8 10.3812L6.36554 11.5513V11.5396Z" fill="#3F2B2E"/>
896
+ </svg>
897
+ `, de = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
898
+ <path d="M15 6.39639H9.63446L8 1.4585L6.36554 6.39639H1L5.33977 9.4972L3.69404 14.4585L7.98873 11.3928L12.2834 14.4585L10.6377 9.4972L14.9775 6.39639H15ZM10.6715 12.2353L8.05636 10.3631V4.32528L9.03704 7.27398H12.2834L9.65701 9.14616L10.6715 12.2236V12.2353Z" fill="#3F2B2E"/>
899
+ </svg>
900
+ `, pe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
901
+ <path d="M15 6.43789H9.63446L8 1.5L6.36554 6.43789H1L5.33977 9.5387L3.69404 14.5L7.98873 11.4343L9.46538 12.4874L12.2834 14.5H12.306L10.6602 9.5387L15 6.43789ZM9.46538 11.4226V7.32718H12.2721L9.64573 9.19937L10.6602 12.2768L9.46538 11.4226Z" fill="#3F2B2E"/>
902
+ </svg>
903
+ `, ue = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
904
+ <path d="M12.2834 14.4585L7.98873 11.3928L3.69404 14.4585L5.33977 9.4972L1 6.39639H6.36554L8 1.4585L9.63446 6.39639H15L10.6602 9.4972L12.306 14.4585H12.2834Z" fill="#3F2B2E"/>
905
+ </svg>
906
+ `, ct = {
907
+ wishlist: oe,
908
+ playerv: ne,
909
+ chevronRight: ae,
910
+ chevronLeft: le,
911
+ "star-0": he,
912
+ "star-25": ce,
913
+ "star-50": de,
914
+ "star-75": pe,
915
+ "star-100": ue
890
916
  };
891
- var ae = Object.defineProperty, le = Object.getOwnPropertyDescriptor, J = (i, t, e, s) => {
892
- for (var r = s > 1 ? void 0 : s ? le(t, e) : t, n = i.length - 1, o; n >= 0; n--)
917
+ var ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, X = (i, t, e, s) => {
918
+ for (var r = s > 1 ? void 0 : s ? fe(t, e) : t, n = i.length - 1, o; n >= 0; n--)
893
919
  (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
894
- return s && r && ae(t, e, r), r;
920
+ return s && r && ge(t, e, r), r;
895
921
  };
896
- let T = class extends w {
922
+ let U = class extends $ {
897
923
  constructor() {
898
924
  super(...arguments), this.status = "empty", this.ariaDescribedBy = "a-product-name", this.label = "Add to wishlist";
899
925
  }
900
926
  render() {
901
- const i = St.wishlist.replace(
927
+ const i = ct.wishlist.replace(
902
928
  "<svg",
903
929
  '<svg aria-hidden="true" focusable="false" part="svg"'
904
930
  );
@@ -912,7 +938,7 @@ let T = class extends w {
912
938
  @click="${this.toggleStatus}"
913
939
  >
914
940
  <span class="sr-only">${this.label}</span>
915
- ${st(i)}
941
+ ${K(i)}
916
942
  </button>
917
943
  `;
918
944
  }
@@ -929,7 +955,7 @@ let T = class extends w {
929
955
  this.label = i, this.requestUpdate();
930
956
  }
931
957
  };
932
- T.styles = I`
958
+ U.styles = O`
933
959
  :host {
934
960
  display: inline-flex;
935
961
  justify-content: center;
@@ -984,24 +1010,24 @@ T.styles = I`
984
1010
  fill: var(--color-alpha-light-strong);
985
1011
  }
986
1012
  `;
987
- J([
1013
+ X([
988
1014
  h({ type: String, reflect: !0 })
989
- ], T.prototype, "status", 2);
990
- J([
1015
+ ], U.prototype, "status", 2);
1016
+ X([
991
1017
  h({ type: String, reflect: !0 })
992
- ], T.prototype, "ariaDescribedBy", 2);
993
- J([
1018
+ ], U.prototype, "ariaDescribedBy", 2);
1019
+ X([
994
1020
  h({ type: String, reflect: !0 })
995
- ], T.prototype, "label", 2);
996
- T = J([
997
- Z("o-wishlist-button")
998
- ], T);
999
- var ce = Object.defineProperty, he = Object.getOwnPropertyDescriptor, x = (i, t, e, s) => {
1000
- for (var r = s > 1 ? void 0 : s ? he(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1021
+ ], U.prototype, "label", 2);
1022
+ U = X([
1023
+ V("o-wishlist-button")
1024
+ ], U);
1025
+ var ve = Object.defineProperty, be = Object.getOwnPropertyDescriptor, x = (i, t, e, s) => {
1026
+ for (var r = s > 1 ? void 0 : s ? be(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1001
1027
  (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1002
- return s && r && ce(t, e, r), r;
1028
+ return s && r && ve(t, e, r), r;
1003
1029
  };
1004
- let b = class extends w {
1030
+ let v = class extends $ {
1005
1031
  constructor() {
1006
1032
  super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1;
1007
1033
  }
@@ -1009,14 +1035,14 @@ let b = class extends w {
1009
1035
  super.updated(i), this.style.setProperty("--icon-stroke-width", this.strokewidth);
1010
1036
  }
1011
1037
  render() {
1012
- const i = St[this.icon] ?? "", t = `icon-${this.icon}`, e = i.replace(
1038
+ const i = ct[this.icon] ?? "", t = `icon-${this.icon}`, e = i.replace(
1013
1039
  "<svg",
1014
1040
  '<svg aria-hidden="true" focusable="false" part="svg"'
1015
1041
  );
1016
1042
  return g`
1017
1043
  ${this.type === "span" ? g`
1018
1044
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
1019
- ${st(e)}
1045
+ ${K(e)}
1020
1046
  </span>
1021
1047
  ` : g`
1022
1048
  <button
@@ -1025,13 +1051,13 @@ let b = class extends w {
1025
1051
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1026
1052
  ?disabled="${this.disabled}"
1027
1053
  >
1028
- ${st(e)}
1054
+ ${K(e)}
1029
1055
  </button>
1030
1056
  `}
1031
1057
  `;
1032
1058
  }
1033
1059
  };
1034
- b.styles = I`
1060
+ v.styles = O`
1035
1061
  :host {
1036
1062
  display: inline-flex;
1037
1063
  justify-content: center;
@@ -1191,34 +1217,34 @@ b.styles = I`
1191
1217
  `;
1192
1218
  x([
1193
1219
  h({ type: String, reflect: !0 })
1194
- ], b.prototype, "bgstyle", 2);
1220
+ ], v.prototype, "bgstyle", 2);
1195
1221
  x([
1196
1222
  h({ type: String, reflect: !0 })
1197
- ], b.prototype, "size", 2);
1223
+ ], v.prototype, "size", 2);
1198
1224
  x([
1199
1225
  h({ type: String, reflect: !0 })
1200
- ], b.prototype, "status", 2);
1226
+ ], v.prototype, "status", 2);
1201
1227
  x([
1202
1228
  h({ type: String, reflect: !0 })
1203
- ], b.prototype, "type", 2);
1229
+ ], v.prototype, "type", 2);
1204
1230
  x([
1205
1231
  h({ type: String })
1206
- ], b.prototype, "strokewidth", 2);
1232
+ ], v.prototype, "strokewidth", 2);
1207
1233
  x([
1208
1234
  h({ type: String })
1209
- ], b.prototype, "icon", 2);
1235
+ ], v.prototype, "icon", 2);
1210
1236
  x([
1211
1237
  h({ type: Boolean, reflect: !0 })
1212
- ], b.prototype, "disabled", 2);
1213
- b = x([
1214
- Z("o-icon-button")
1215
- ], b);
1216
- var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, k = (i, t, e, s) => {
1217
- for (var r = s > 1 ? void 0 : s ? ue(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1238
+ ], v.prototype, "disabled", 2);
1239
+ v = x([
1240
+ V("o-icon-button")
1241
+ ], v);
1242
+ var $e = Object.defineProperty, ye = Object.getOwnPropertyDescriptor, H = (i, t, e, s) => {
1243
+ for (var r = s > 1 ? void 0 : s ? ye(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1218
1244
  (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1219
- return s && r && de(t, e, r), r;
1245
+ return s && r && $e(t, e, r), r;
1220
1246
  };
1221
- let $ = class extends w {
1247
+ let y = class extends $ {
1222
1248
  constructor() {
1223
1249
  super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
1224
1250
  }
@@ -1248,7 +1274,7 @@ let $ = class extends w {
1248
1274
  `;
1249
1275
  }
1250
1276
  };
1251
- $.styles = I`
1277
+ y.styles = O`
1252
1278
  :host([template="standard"]) a {
1253
1279
  color: var(--color-content-action-secondary);
1254
1280
  font-size: var(--font-size-200);
@@ -1346,24 +1372,102 @@ $.styles = I`
1346
1372
  }
1347
1373
  /* End of underline effect */
1348
1374
  `;
1349
- k([
1375
+ H([
1350
1376
  h({ type: String })
1351
- ], $.prototype, "href", 2);
1352
- k([
1377
+ ], y.prototype, "href", 2);
1378
+ H([
1353
1379
  h({ type: String })
1354
- ], $.prototype, "target", 2);
1355
- k([
1380
+ ], y.prototype, "target", 2);
1381
+ H([
1356
1382
  h({ type: String, reflect: !0 })
1357
- ], $.prototype, "template", 2);
1358
- k([
1383
+ ], y.prototype, "template", 2);
1384
+ H([
1359
1385
  h({ type: Boolean, reflect: !0 })
1360
- ], $.prototype, "inverse", 2);
1361
- k([
1386
+ ], y.prototype, "inverse", 2);
1387
+ H([
1362
1388
  h({ type: Boolean, reflect: !0 })
1363
- ], $.prototype, "endIcon", 2);
1364
- k([
1389
+ ], y.prototype, "endIcon", 2);
1390
+ H([
1365
1391
  h({ type: Boolean, reflect: !0 })
1366
- ], $.prototype, "reverseEndIcon", 2);
1367
- $ = k([
1368
- Z("o-link")
1369
- ], $);
1392
+ ], y.prototype, "reverseEndIcon", 2);
1393
+ y = H([
1394
+ V("o-link")
1395
+ ], y);
1396
+ var me = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, G = (i, t, e, s) => {
1397
+ for (var r = s > 1 ? void 0 : s ? _e(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1398
+ (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1399
+ return s && r && me(t, e, r), r;
1400
+ };
1401
+ let B = class extends $ {
1402
+ constructor() {
1403
+ super(...arguments), this.rating = 0;
1404
+ }
1405
+ getStarKeys() {
1406
+ const i = [];
1407
+ for (let t = 0; t < 5; t++) {
1408
+ const e = this.rating - t;
1409
+ let s;
1410
+ e >= 1 ? s = 100 : e <= 0 ? s = 0 : s = Math.round(e * 100 / 25) * 25, i.push(`star-${s}`);
1411
+ }
1412
+ return i;
1413
+ }
1414
+ render() {
1415
+ const i = this.getStarKeys();
1416
+ return g`
1417
+ <div class="rating">
1418
+ <div class="stars">
1419
+ ${i.map(
1420
+ (t) => g`<span class="star">${K(ct[t] ?? "")}</span>`
1421
+ )}
1422
+ </div>
1423
+ ${this.reviewCount != null && this.href != null ? g`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
1424
+ </div>
1425
+ `;
1426
+ }
1427
+ };
1428
+ B.styles = O`
1429
+ svg {
1430
+ width: 12px;
1431
+ height: 12px;
1432
+ }
1433
+ .rating {
1434
+ display: flex;
1435
+ align-items: center;
1436
+ }
1437
+
1438
+ .stars {
1439
+ display: flex;
1440
+ gap: 2px;
1441
+ }
1442
+
1443
+ .star {
1444
+ display: block;
1445
+ }
1446
+
1447
+ o-link {
1448
+ margin-left: 6px;
1449
+ font-family: var(--font-family-loccitane-sans);
1450
+ font-weight: var(--font-weight-500);
1451
+ font-size: var(--font-size-100);
1452
+ line-height: var(--line-height-160);
1453
+ letter-spacing: var(--letter-spacing-400);
1454
+ color: var(--color-content-action-secondary);
1455
+ }
1456
+
1457
+ .review-link {
1458
+ text-decoration: underline;
1459
+ cursor: pointer;
1460
+ }
1461
+ `;
1462
+ G([
1463
+ h({ type: Number })
1464
+ ], B.prototype, "rating", 2);
1465
+ G([
1466
+ h({ type: String })
1467
+ ], B.prototype, "reviewCount", 2);
1468
+ G([
1469
+ h({ type: String })
1470
+ ], B.prototype, "href", 2);
1471
+ B = G([
1472
+ V("o-rating")
1473
+ ], B);