@florid-kit/components 0.9.18 → 0.9.19

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,16 +3,16 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const $t = globalThis, Mt = $t.ShadowRoot && ($t.ShadyCSS === void 0 || $t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Tt = Symbol(), Qt = /* @__PURE__ */ new WeakMap();
6
+ const $t = globalThis, Tt = $t.ShadowRoot && ($t.ShadyCSS === void 0 || $t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), Qt = /* @__PURE__ */ new WeakMap();
7
7
  let he = class {
8
8
  constructor(t, e, n) {
9
- if (this._$cssResult$ = !0, n !== Tt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, n !== Mt) 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 (Mt && t === void 0) {
15
+ if (Tt && t === void 0) {
16
16
  const n = e !== void 0 && e.length === 1;
17
17
  n && (t = Qt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Qt.set(e, t));
18
18
  }
@@ -22,20 +22,20 @@ let he = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const ye = (o) => new he(typeof o == "string" ? o : o + "", void 0, Tt), f = (o, ...t) => {
25
+ const ye = (o) => new he(typeof o == "string" ? o : o + "", void 0, Mt), f = (o, ...t) => {
26
26
  const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
27
27
  if (s._$cssResult$ === !0) return s.cssText;
28
28
  if (typeof s == "number") return s;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
30
  })(i) + o[r + 1], o[0]);
31
- return new he(e, o, Tt);
31
+ return new he(e, o, Mt);
32
32
  }, me = (o, t) => {
33
- if (Mt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
33
+ if (Tt) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
35
  const n = document.createElement("style"), i = $t.litNonce;
36
36
  i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
37
37
  }
38
- }, Yt = Mt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
38
+ }, Yt = Tt ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
40
  for (const n of t.cssRules) e += n.cssText;
41
41
  return ye(e);
@@ -294,8 +294,8 @@ const Pe = (o, t) => {
294
294
  let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = lt;
295
295
  for (let h = 0; h < e; h++) {
296
296
  const c = o[h];
297
- let m, w, v = -1, R = 0;
298
- for (; R < c.length && (s.lastIndex = R, w = s.exec(c), w !== null); ) R = s.lastIndex, s === lt ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s = ne : w[2] !== void 0 ? (ue.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = J) : w[3] !== void 0 && (s = J) : s === J ? w[0] === ">" ? (s = i ?? lt, v = -1) : w[1] === void 0 ? v = -2 : (v = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? J : w[3] === '"' ? se : re) : s === se || s === re ? s = J : s === ie || s === ne ? s = lt : (s = J, i = void 0);
297
+ let m, w, v = -1, N = 0;
298
+ for (; N < c.length && (s.lastIndex = N, w = s.exec(c), w !== null); ) N = s.lastIndex, s === lt ? w[1] === "!--" ? s = ie : w[1] !== void 0 ? s = ne : w[2] !== void 0 ? (ue.test(w[2]) && (i = RegExp("</" + w[2], "g")), s = J) : w[3] !== void 0 && (s = J) : s === J ? w[0] === ">" ? (s = i ?? lt, v = -1) : w[1] === void 0 ? v = -2 : (v = s.lastIndex - w[2].length, m = w[1], s = w[3] === void 0 ? J : w[3] === '"' ? se : re) : s === se || s === re ? s = J : s === ie || s === ne ? s = lt : (s = J, i = void 0);
299
299
  const Z = s === J && o[h + 1].startsWith("/>") ? " " : "";
300
300
  r += s === lt ? c + Ae : v >= 0 ? (n.push(m), c.slice(0, v) + de + c.slice(v) + K + Z) : c + K + (v === -2 ? h : Z);
301
301
  }
@@ -314,15 +314,15 @@ class vt {
314
314
  for (; (i = Q.nextNode()) !== null && c.length < h; ) {
315
315
  if (i.nodeType === 1) {
316
316
  if (i.hasAttributes()) for (const v of i.getAttributeNames()) if (v.endsWith(de)) {
317
- const R = w[s++], Z = i.getAttribute(v).split(K), wt = /([.?@])?(.*)/.exec(R);
317
+ const N = w[s++], Z = i.getAttribute(v).split(K), wt = /([.?@])?(.*)/.exec(N);
318
318
  c.push({ type: 1, index: r, name: wt[2], strings: Z, ctor: wt[1] === "." ? Oe : wt[1] === "?" ? ze : wt[1] === "@" ? Be : St }), i.removeAttribute(v);
319
319
  } else v.startsWith(K) && (c.push({ type: 6, index: r }), i.removeAttribute(v));
320
320
  if (ue.test(i.tagName)) {
321
- const v = i.textContent.split(K), R = v.length - 1;
322
- if (R > 0) {
321
+ const v = i.textContent.split(K), N = v.length - 1;
322
+ if (N > 0) {
323
323
  i.textContent = _t ? _t.emptyScript : "";
324
- for (let Z = 0; Z < R; Z++) i.append(v[Z], pt()), Q.nextNode(), c.push({ type: 2, index: ++r });
325
- i.append(v[R], pt());
324
+ for (let Z = 0; Z < N; Z++) i.append(v[Z], pt()), Q.nextNode(), c.push({ type: 2, index: ++r });
325
+ i.append(v[N], pt());
326
326
  }
327
327
  }
328
328
  } else if (i.nodeType === 8) if (i.data === pe) c.push({ type: 2, index: r });
@@ -564,7 +564,7 @@ const y = (o) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const Me = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged: jt }, Te = (o = Me, t, e) => {
567
+ const Te = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged: jt }, Me = (o = Te, t, e) => {
568
568
  const { kind: n, metadata: i } = e;
569
569
  let r = globalThis.litPropertyMetadata.get(i);
570
570
  if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
@@ -586,7 +586,7 @@ const Me = { attribute: !0, type: String, converter: Ct, reflect: !1, hasChanged
586
586
  throw Error("Unsupported decorator location: " + n);
587
587
  };
588
588
  function a(o) {
589
- return (t, e) => typeof e == "object" ? Te(o, t, e) : ((n, i, r) => {
589
+ return (t, e) => typeof e == "object" ? Me(o, t, e) : ((n, i, r) => {
590
590
  const s = i.hasOwnProperty(r);
591
591
  return i.constructor.createProperty(r, n), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
592
592
  })(o, t, e);
@@ -772,7 +772,7 @@ const Ne = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
772
772
  </svg>
773
773
  `, bo = `<svg xmlns="http://www.w3.org/2000/svg" width="10" height="8" viewBox="0 0 10 8" fill="none">
774
774
  <path d="M1 4.5415L3 6.5415L9 0.541504" stroke="#FBF9F6" stroke-linecap="round" stroke-linejoin="round"/>
775
- </svg>`, N = {
775
+ </svg>`, F = {
776
776
  wishlist: Ne,
777
777
  playerv: Fe,
778
778
  chevronRight: Ue,
@@ -1048,13 +1048,13 @@ const le = Vt(So);
1048
1048
  * Copyright 2018 Google LLC
1049
1049
  * SPDX-License-Identifier: BSD-3-Clause
1050
1050
  */
1051
- const k = (o) => o ?? d;
1051
+ const S = (o) => o ?? d;
1052
1052
  var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
1053
1053
  for (var i = n > 1 ? void 0 : n ? Eo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1054
1054
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1055
1055
  return n && i && Ao(t, e, i), i;
1056
1056
  };
1057
- let S = class extends u {
1057
+ let A = class extends u {
1058
1058
  constructor() {
1059
1059
  super(...arguments), this.bgstyle = "background-light", this.size = "medium", this.status = "empty", this.type = "button", this.strokewidth = "1", this.icon = "wishlist", this.disabled = !1, this.showSrLabel = !1, this.srLabel = "";
1060
1060
  }
@@ -1062,7 +1062,7 @@ let S = class extends u {
1062
1062
  super.updated(o), this.style.setProperty("--icon-stroke-width", this.strokewidth);
1063
1063
  }
1064
1064
  render() {
1065
- const o = N[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
1065
+ const o = F[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"').replace(/<path\b/g, '<path part="icon-path"').replace(/<g\b/g, '<g part="icon-group"').replace(/<circle\b/g, '<circle part="icon-circle"'), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
1066
1066
  return l`
1067
1067
  ${this.type === "span" ? l`
1068
1068
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
@@ -1071,7 +1071,7 @@ let S = class extends u {
1071
1071
  ` : l`
1072
1072
  <button
1073
1073
  type="button"
1074
- aria-label=${k(i)}
1074
+ aria-label=${S(i)}
1075
1075
  class="icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}"
1076
1076
  ?disabled="${this.disabled}"
1077
1077
  >
@@ -1082,7 +1082,7 @@ let S = class extends u {
1082
1082
  `;
1083
1083
  }
1084
1084
  };
1085
- S.styles = f`
1085
+ A.styles = f`
1086
1086
  :host {
1087
1087
  display: inline-flex;
1088
1088
  justify-content: center;
@@ -1296,34 +1296,34 @@ S.styles = f`
1296
1296
  `;
1297
1297
  H([
1298
1298
  a({ type: String, reflect: !0 })
1299
- ], S.prototype, "bgstyle", 2);
1299
+ ], A.prototype, "bgstyle", 2);
1300
1300
  H([
1301
1301
  a({ type: String, reflect: !0 })
1302
- ], S.prototype, "size", 2);
1302
+ ], A.prototype, "size", 2);
1303
1303
  H([
1304
1304
  a({ type: String, reflect: !0 })
1305
- ], S.prototype, "status", 2);
1305
+ ], A.prototype, "status", 2);
1306
1306
  H([
1307
1307
  a({ type: String, reflect: !0 })
1308
- ], S.prototype, "type", 2);
1308
+ ], A.prototype, "type", 2);
1309
1309
  H([
1310
1310
  a({ type: String })
1311
- ], S.prototype, "strokewidth", 2);
1311
+ ], A.prototype, "strokewidth", 2);
1312
1312
  H([
1313
1313
  a({ type: String })
1314
- ], S.prototype, "icon", 2);
1314
+ ], A.prototype, "icon", 2);
1315
1315
  H([
1316
1316
  a({ type: Boolean, reflect: !0 })
1317
- ], S.prototype, "disabled", 2);
1317
+ ], A.prototype, "disabled", 2);
1318
1318
  H([
1319
1319
  a({ type: Boolean })
1320
- ], S.prototype, "showSrLabel", 2);
1320
+ ], A.prototype, "showSrLabel", 2);
1321
1321
  H([
1322
1322
  a({ type: String })
1323
- ], S.prototype, "srLabel", 2);
1324
- S = H([
1323
+ ], A.prototype, "srLabel", 2);
1324
+ A = H([
1325
1325
  y("o-icon-button")
1326
- ], S);
1326
+ ], A);
1327
1327
  var Lo = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, g = (o, t, e, n) => {
1328
1328
  for (var i = n > 1 ? void 0 : n ? Po(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1329
1329
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
@@ -1875,7 +1875,7 @@ let b = class extends zo {
1875
1875
  renderIcon(o) {
1876
1876
  const t = o === "start" ? this.startIconModel : this.endIconModel;
1877
1877
  if (!t) return d;
1878
- const e = N[t].replace(
1878
+ const e = F[t].replace(
1879
1879
  "<svg",
1880
1880
  '<svg aria-hidden="true" focusable="false" part="svg"'
1881
1881
  );
@@ -2198,7 +2198,7 @@ let rt = class extends u {
2198
2198
  (o.key === "Enter" || o.key === " ") && (o.preventDefault(), this.toggleStatus());
2199
2199
  }
2200
2200
  render() {
2201
- const o = N.wishlist.replace(
2201
+ const o = F.wishlist.replace(
2202
2202
  "<svg",
2203
2203
  '<svg aria-hidden="true" focusable="false" part="svg"'
2204
2204
  );
@@ -2296,12 +2296,12 @@ At([
2296
2296
  rt = At([
2297
2297
  y("o-wishlist-button")
2298
2298
  ], rt);
2299
- var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
2300
- for (var i = n > 1 ? void 0 : n ? Mo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2299
+ var Ho = Object.defineProperty, To = Object.getOwnPropertyDescriptor, ot = (o, t, e, n) => {
2300
+ for (var i = n > 1 ? void 0 : n ? To(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2301
2301
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2302
2302
  return n && i && Ho(t, e, i), i;
2303
2303
  };
2304
- let F = class extends u {
2304
+ let U = class extends u {
2305
2305
  constructor() {
2306
2306
  super(...arguments), this.href = "", this.target = "", this.template = "standard", this.inverse = !1, this.endIcon = !1, this.reverseEndIcon = !1;
2307
2307
  }
@@ -2313,7 +2313,7 @@ let F = class extends u {
2313
2313
  return l`
2314
2314
  <a
2315
2315
  href="${o}"
2316
- target="${k(this.target || void 0)}"
2316
+ target="${S(this.target || void 0)}"
2317
2317
  @click="${this._handleClick}"
2318
2318
  >
2319
2319
  ${this.endIcon && this.reverseEndIcon ? l`
@@ -2339,7 +2339,7 @@ let F = class extends u {
2339
2339
  `;
2340
2340
  }
2341
2341
  };
2342
- F.styles = f`
2342
+ U.styles = f`
2343
2343
  :host([template="standard"]) a {
2344
2344
  color: var(--color-content-action-secondary);
2345
2345
  font-size: var(--font-size-200);
@@ -2429,29 +2429,29 @@ F.styles = f`
2429
2429
  `;
2430
2430
  ot([
2431
2431
  a({ type: String })
2432
- ], F.prototype, "href", 2);
2432
+ ], U.prototype, "href", 2);
2433
2433
  ot([
2434
2434
  a({ type: String })
2435
- ], F.prototype, "target", 2);
2435
+ ], U.prototype, "target", 2);
2436
2436
  ot([
2437
2437
  a({ type: String, reflect: !0 })
2438
- ], F.prototype, "template", 2);
2438
+ ], U.prototype, "template", 2);
2439
2439
  ot([
2440
2440
  a({ type: Boolean, reflect: !0 })
2441
- ], F.prototype, "inverse", 2);
2441
+ ], U.prototype, "inverse", 2);
2442
2442
  ot([
2443
2443
  a({ type: Boolean, reflect: !0 })
2444
- ], F.prototype, "endIcon", 2);
2444
+ ], U.prototype, "endIcon", 2);
2445
2445
  ot([
2446
2446
  a({ type: Boolean, reflect: !0 })
2447
- ], F.prototype, "reverseEndIcon", 2);
2448
- F = ot([
2447
+ ], U.prototype, "reverseEndIcon", 2);
2448
+ U = ot([
2449
2449
  y("o-link")
2450
- ], F);
2451
- var To = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Et = (o, t, e, n) => {
2450
+ ], U);
2451
+ var Mo = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Et = (o, t, e, n) => {
2452
2452
  for (var i = n > 1 ? void 0 : n ? jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2453
2453
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2454
- return n && i && To(t, e, i), i;
2454
+ return n && i && Mo(t, e, i), i;
2455
2455
  };
2456
2456
  let st = class extends u {
2457
2457
  constructor() {
@@ -2472,7 +2472,7 @@ let st = class extends u {
2472
2472
  <div class="rating">
2473
2473
  <div class="stars">
2474
2474
  ${o.map(
2475
- (t) => l`<span class="star">${C(N[t] ?? "")}</span>`
2475
+ (t) => l`<span class="star">${C(F[t] ?? "")}</span>`
2476
2476
  )}
2477
2477
  </div>
2478
2478
  ${this.reviewCount != null && this.href != null ? l`<o-link template="review" href="${this.href}">${this.reviewCount}</o-link>` : null}
@@ -2954,7 +2954,7 @@ Kt([
2954
2954
  bt = Kt([
2955
2955
  y("o-tooltip")
2956
2956
  ], bt);
2957
- var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, U = (o, t, e, n) => {
2957
+ var Zo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, V = (o, t, e, n) => {
2958
2958
  for (var i = n > 1 ? void 0 : n ? Ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2959
2959
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2960
2960
  return n && i && Zo(t, e, i), i;
@@ -3025,7 +3025,7 @@ let z = class extends u {
3025
3025
  this.options.length > 0 && (this.options.some((e) => e.value === this.value) || (this.value = this.options[0].value));
3026
3026
  }
3027
3027
  render() {
3028
- const o = N.checkstroke.replace(
3028
+ const o = F.checkstroke.replace(
3029
3029
  "<svg",
3030
3030
  '<svg aria-hidden="true" focusable="false" part="svg"'
3031
3031
  ), t = this.options.find((e) => e.value === this.value);
@@ -3222,31 +3222,31 @@ z.styles = f`
3222
3222
  display: none;
3223
3223
  }
3224
3224
  `;
3225
- U([
3225
+ V([
3226
3226
  a({ type: Array, reflect: !0 })
3227
3227
  ], z.prototype, "options", 2);
3228
- U([
3228
+ V([
3229
3229
  a({ type: String, reflect: !0 })
3230
3230
  ], z.prototype, "value", 2);
3231
- U([
3231
+ V([
3232
3232
  a({ type: String, reflect: !0 })
3233
3233
  ], z.prototype, "name", 2);
3234
- U([
3234
+ V([
3235
3235
  a({ type: Boolean, reflect: !0 })
3236
3236
  ], z.prototype, "disabled", 2);
3237
- U([
3237
+ V([
3238
3238
  a({ type: String, reflect: !0 })
3239
3239
  ], z.prototype, "width", 2);
3240
- U([
3240
+ V([
3241
3241
  et()
3242
3242
  ], z.prototype, "open", 2);
3243
- U([
3243
+ V([
3244
3244
  et()
3245
3245
  ], z.prototype, "activeIndex", 2);
3246
- U([
3246
+ V([
3247
3247
  et()
3248
3248
  ], z.prototype, "menuWidth", 2);
3249
- z = U([
3249
+ z = V([
3250
3250
  y("o-dropdown")
3251
3251
  ], z);
3252
3252
  var Wo = Object.getOwnPropertyDescriptor, Go = (o, t, e, n) => {
@@ -3314,12 +3314,12 @@ Ht.styles = f`
3314
3314
  Ht = Go([
3315
3315
  y("o-dots")
3316
3316
  ], Ht);
3317
- var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
3317
+ var Xo = Object.defineProperty, Jo = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
3318
3318
  for (var i = n > 1 ? void 0 : n ? Jo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3319
3319
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3320
3320
  return n && i && Xo(t, e, i), i;
3321
3321
  };
3322
- let A = class extends u {
3322
+ let E = class extends u {
3323
3323
  constructor() {
3324
3324
  super(...arguments), this.options = [], this.value = "", this.name = "", this.additionaltext = "+X variant(s)", this.disabled = !1, this.width = "100%", this.open = !1, this.activeIndex = -1, this.menuWidth = "", this._handleOutsideClick = (o) => {
3325
3325
  this.contains(o.target) || (this.open = !1, this.activeIndex = -1);
@@ -3385,7 +3385,7 @@ let A = class extends u {
3385
3385
  this.options.length > 0 && (this.options.some((t) => t.value === this.value) || (this.value = this.options[0].value));
3386
3386
  }
3387
3387
  render() {
3388
- const o = N.checkstroke.replace(
3388
+ const o = F.checkstroke.replace(
3389
3389
  "<svg",
3390
3390
  '<svg aria-hidden="true" focusable="false" part="svg"'
3391
3391
  ), t = this.options.find((e) => e.value === this.value);
@@ -3403,7 +3403,7 @@ let A = class extends u {
3403
3403
  ?disabled=${this.disabled}
3404
3404
  class="btn-dropdown"
3405
3405
  >
3406
- <img alt="${k(t == null ? void 0 : t.label)}" src="${k(t == null ? void 0 : t.imgurl)}" />
3406
+ <img alt="${S(t == null ? void 0 : t.label)}" src="${S(t == null ? void 0 : t.imgurl)}" />
3407
3407
  <span id="dropdown-label" class="label">
3408
3408
  ${t ? t.label : "Select an option"}
3409
3409
  </span>
@@ -3438,11 +3438,11 @@ let A = class extends u {
3438
3438
  class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
3439
3439
  @click=${() => this.selectOption(e)}
3440
3440
  >
3441
- <a href="${k(e.url)}">
3442
- <img alt="${k(e.label)}" src="${k(e.imgurl)}" />
3441
+ <a href="${S(e.url)}">
3442
+ <img alt="${S(e.label)}" src="${S(e.imgurl)}" />
3443
3443
  <span class="label">${e.label}</span>
3444
3444
  <div class="right">
3445
- <span class="additional-text">${k(e.additionaltext)}</span>
3445
+ <span class="additional-text">${S(e.additionaltext)}</span>
3446
3446
  ${e.value === this.value && !e.additionaltext ? l`
3447
3447
  <span class="check">${C(o)}</span>` : null}
3448
3448
  </div>
@@ -3456,7 +3456,7 @@ let A = class extends u {
3456
3456
  `;
3457
3457
  }
3458
3458
  };
3459
- A.styles = f`
3459
+ E.styles = f`
3460
3460
  :host {
3461
3461
  display: inline-block;
3462
3462
  position: relative;
@@ -3632,36 +3632,36 @@ A.styles = f`
3632
3632
  display: none;
3633
3633
  }
3634
3634
  `;
3635
- M([
3635
+ T([
3636
3636
  a({ type: Array, reflect: !0 })
3637
- ], A.prototype, "options", 2);
3638
- M([
3637
+ ], E.prototype, "options", 2);
3638
+ T([
3639
3639
  a({ type: String, reflect: !0 })
3640
- ], A.prototype, "value", 2);
3641
- M([
3640
+ ], E.prototype, "value", 2);
3641
+ T([
3642
3642
  a({ type: String, reflect: !0 })
3643
- ], A.prototype, "name", 2);
3644
- M([
3643
+ ], E.prototype, "name", 2);
3644
+ T([
3645
3645
  a({ type: String, reflect: !0 })
3646
- ], A.prototype, "additionaltext", 2);
3647
- M([
3646
+ ], E.prototype, "additionaltext", 2);
3647
+ T([
3648
3648
  a({ type: Boolean, reflect: !0 })
3649
- ], A.prototype, "disabled", 2);
3650
- M([
3649
+ ], E.prototype, "disabled", 2);
3650
+ T([
3651
3651
  a({ type: String, reflect: !0 })
3652
- ], A.prototype, "width", 2);
3653
- M([
3652
+ ], E.prototype, "width", 2);
3653
+ T([
3654
3654
  et()
3655
- ], A.prototype, "open", 2);
3656
- M([
3655
+ ], E.prototype, "open", 2);
3656
+ T([
3657
3657
  et()
3658
- ], A.prototype, "activeIndex", 2);
3659
- M([
3658
+ ], E.prototype, "activeIndex", 2);
3659
+ T([
3660
3660
  et()
3661
- ], A.prototype, "menuWidth", 2);
3662
- A = M([
3661
+ ], E.prototype, "menuWidth", 2);
3662
+ E = T([
3663
3663
  y("o-dropdown-variant")
3664
- ], A);
3664
+ ], E);
3665
3665
  /**
3666
3666
  * @license
3667
3667
  * Copyright 2018 Google LLC
@@ -3707,13 +3707,13 @@ let gt = class extends u {
3707
3707
  width: `${this.imageSize}px`,
3708
3708
  height: `${this.imageSize}px`
3709
3709
  }, e = l`
3710
- ${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${k(this.option.title)}" aria-hidden="true" style=${Yo(t)} />` : ""}
3710
+ ${this.option.imgurl ? l`<img src="${this.option.imgurl}" alt="${S(this.option.title)}" aria-hidden="true" style=${Yo(t)} />` : ""}
3711
3711
  <div class="m-reassurance-content">
3712
- <h3 class="a-reassurance-text">${k(this.option.title)}</h3>
3713
- <p class="a-reassurance-description">${k(this.option.description)}</p>
3712
+ <h3 class="a-reassurance-text">${S(this.option.title)}</h3>
3713
+ <p class="a-reassurance-description">${S(this.option.description)}</p>
3714
3714
  </div>
3715
3715
  `;
3716
- return o ? l`<a href="${k(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
3716
+ return o ? l`<a href="${S(this.option.url)}" class="reassurance-item clickable">${e}</a>` : l`<div class="reassurance-item">${e}</div>`;
3717
3717
  }
3718
3718
  };
3719
3719
  gt.styles = f`
@@ -3807,13 +3807,13 @@ Wt([
3807
3807
  gt = Wt([
3808
3808
  y("o-reassurance")
3809
3809
  ], gt);
3810
- var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, V = (o, t, e, n) => {
3810
+ var oi = Object.defineProperty, ii = Object.getOwnPropertyDescriptor, q = (o, t, e, n) => {
3811
3811
  for (var i = n > 1 ? void 0 : n ? ii(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3812
3812
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3813
3813
  return n && i && oi(t, e, i), i;
3814
3814
  };
3815
3815
  const ni = Ft(u);
3816
- let E = class extends ni {
3816
+ let L = class extends ni {
3817
3817
  constructor() {
3818
3818
  super(...arguments), this.link = "", this.name = "", this.value = "", this.text = "", this.size = "standard", this.selected = !1, this.fullwidth = !1, this.inactive = !1;
3819
3819
  }
@@ -3836,7 +3836,7 @@ let E = class extends ni {
3836
3836
  `;
3837
3837
  }
3838
3838
  };
3839
- E.styles = f`
3839
+ L.styles = f`
3840
3840
  :host {
3841
3841
  cursor: pointer;
3842
3842
  display: inline-flex;
@@ -3926,33 +3926,33 @@ E.styles = f`
3926
3926
  align-items: center;
3927
3927
  }
3928
3928
  `;
3929
- V([
3929
+ q([
3930
3930
  a({ type: String, reflect: !0 })
3931
- ], E.prototype, "link", 2);
3932
- V([
3931
+ ], L.prototype, "link", 2);
3932
+ q([
3933
3933
  a({ reflect: !0 })
3934
- ], E.prototype, "name", 2);
3935
- V([
3934
+ ], L.prototype, "name", 2);
3935
+ q([
3936
3936
  a({ reflect: !0 })
3937
- ], E.prototype, "value", 2);
3938
- V([
3937
+ ], L.prototype, "value", 2);
3938
+ q([
3939
3939
  a({ type: String })
3940
- ], E.prototype, "text", 2);
3941
- V([
3940
+ ], L.prototype, "text", 2);
3941
+ q([
3942
3942
  a({ type: String, reflect: !0 })
3943
- ], E.prototype, "size", 2);
3944
- V([
3943
+ ], L.prototype, "size", 2);
3944
+ q([
3945
3945
  a({ type: Boolean, reflect: !0 })
3946
- ], E.prototype, "selected", 2);
3947
- V([
3946
+ ], L.prototype, "selected", 2);
3947
+ q([
3948
3948
  a({ type: Boolean, reflect: !0 })
3949
- ], E.prototype, "fullwidth", 2);
3950
- V([
3949
+ ], L.prototype, "fullwidth", 2);
3950
+ q([
3951
3951
  a({ type: Boolean, reflect: !0 })
3952
- ], E.prototype, "inactive", 2);
3953
- E = V([
3952
+ ], L.prototype, "inactive", 2);
3953
+ L = q([
3954
3954
  y("o-chip")
3955
- ], E);
3955
+ ], L);
3956
3956
  var ri = Object.defineProperty, si = Object.getOwnPropertyDescriptor, Gt = (o, t, e, n) => {
3957
3957
  for (var i = n > 1 ? void 0 : n ? si(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3958
3958
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
@@ -3963,7 +3963,7 @@ let yt = class extends u {
3963
3963
  super(), this.name = "", this.value = "", this.addEventListener("selected", this.onChipSelected);
3964
3964
  }
3965
3965
  onChipSelected(o) {
3966
- const t = o.target instanceof E ? o.target : null;
3966
+ const t = o.target instanceof L ? o.target : null;
3967
3967
  t != null && t.link || (this.name = (t == null ? void 0 : t.name) || "", this.value = (t == null ? void 0 : t.value) || "", this.querySelectorAll("o-chip").forEach((e) => {
3968
3968
  e !== t && (e.selected = !1);
3969
3969
  }));
@@ -3991,13 +3991,13 @@ Gt([
3991
3991
  yt = Gt([
3992
3992
  y("o-chipset")
3993
3993
  ], yt);
3994
- var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, T = (o, t, e, n) => {
3994
+ var ai = Object.defineProperty, li = Object.getOwnPropertyDescriptor, M = (o, t, e, n) => {
3995
3995
  for (var i = n > 1 ? void 0 : n ? li(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3996
3996
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3997
3997
  return n && i && ai(t, e, i), i;
3998
3998
  };
3999
3999
  const ci = Ft(u);
4000
- let L = class extends ci {
4000
+ let P = class extends ci {
4001
4001
  constructor() {
4002
4002
  super(...arguments), this.name = "", this.value = "", this.type = "", this.text = "", this.selected = !1, this.disabled = !1, this.fullwidth = !1, this.crossIconName = "cross", this.strikethroughImgName = "strikeDiagonal";
4003
4003
  }
@@ -4009,7 +4009,7 @@ let L = class extends ci {
4009
4009
  this.dispatchEvent(e), e.defaultPrevented && o.preventDefault(), this.selected = t.selected;
4010
4010
  }
4011
4011
  crossIcon() {
4012
- const o = N[this.crossIconName].replace(
4012
+ const o = F[this.crossIconName].replace(
4013
4013
  "<svg",
4014
4014
  '<svg aria-hidden="true" focusable="false" part="svg"'
4015
4015
  ).replace(/stroke=[#"'a-z1-9]*/gi, "");
@@ -4047,7 +4047,7 @@ let L = class extends ci {
4047
4047
  `;
4048
4048
  }
4049
4049
  };
4050
- L.styles = f`
4050
+ P.styles = f`
4051
4051
  :host {
4052
4052
  cursor: pointer;
4053
4053
  display: inline-flex;
@@ -4173,44 +4173,44 @@ L.styles = f`
4173
4173
  }
4174
4174
  }
4175
4175
  `;
4176
- T([
4176
+ M([
4177
4177
  a({ reflect: !0 })
4178
- ], L.prototype, "name", 2);
4179
- T([
4178
+ ], P.prototype, "name", 2);
4179
+ M([
4180
4180
  a({ reflect: !0 })
4181
- ], L.prototype, "value", 2);
4182
- T([
4181
+ ], P.prototype, "value", 2);
4182
+ M([
4183
4183
  a({ type: String, reflect: !0 })
4184
- ], L.prototype, "type", 2);
4185
- T([
4184
+ ], P.prototype, "type", 2);
4185
+ M([
4186
4186
  a({ type: String, reflect: !0 })
4187
- ], L.prototype, "href", 2);
4188
- T([
4187
+ ], P.prototype, "href", 2);
4188
+ M([
4189
4189
  a({ type: String, reflect: !0, attribute: "data-href" })
4190
- ], L.prototype, "dataHref", 2);
4191
- T([
4190
+ ], P.prototype, "dataHref", 2);
4191
+ M([
4192
4192
  a({ type: String })
4193
- ], L.prototype, "text", 2);
4194
- T([
4193
+ ], P.prototype, "text", 2);
4194
+ M([
4195
4195
  a({ type: Boolean, reflect: !0 })
4196
- ], L.prototype, "selected", 2);
4197
- T([
4196
+ ], P.prototype, "selected", 2);
4197
+ M([
4198
4198
  a({ type: Boolean, reflect: !0 })
4199
- ], L.prototype, "disabled", 2);
4200
- T([
4199
+ ], P.prototype, "disabled", 2);
4200
+ M([
4201
4201
  a({ type: Boolean, reflect: !0 })
4202
- ], L.prototype, "fullwidth", 2);
4203
- L = T([
4202
+ ], P.prototype, "fullwidth", 2);
4203
+ P = M([
4204
4204
  y("o-filter-chip")
4205
- ], L);
4206
- var hi = Object.defineProperty, q = (o, t, e, n) => {
4205
+ ], P);
4206
+ var hi = Object.defineProperty, j = (o, t, e, n) => {
4207
4207
  for (var i = void 0, r = o.length - 1, s; r >= 0; r--)
4208
4208
  (s = o[r]) && (i = s(t, e, i) || i);
4209
4209
  return i && hi(t, e, i), i;
4210
4210
  };
4211
4211
  const Jt = class Jt extends u {
4212
4212
  constructor() {
4213
- super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1;
4213
+ super(...arguments), this.type = "cart | chevron", this.titleProduct = "", this.volume = "", this.perLiter = "", this.mainPrice = "", this.imageUrl = "https://placehold.co/56x70", this.altImage = "", this.fullwidth = !1, this.tagText = "";
4214
4214
  }
4215
4215
  onClick() {
4216
4216
  typeof this.onClickTile == "function" && this.onClickTile();
@@ -4245,6 +4245,7 @@ const Jt = class Jt extends u {
4245
4245
  class="tile ${this.fullwidth ? "fullwidth" : ""} ${this.type === "chevron" ? "fullpointer" : ""}" @click=${this.onClick}>
4246
4246
  ${this.imageUrl ? l`<img src="${this.imageUrl}" alt="${this.altImage || ""}" />` : ""}
4247
4247
  <div class="info">
4248
+ ${this.tagText ? l`<o-tag bgstyle="background-emphasis">${this.tagText}</o-tag>` : ""}
4248
4249
  ${this.titleProduct ? l`<div class="title">${this.titleProduct}</div>` : ""}
4249
4250
  <div class="details">
4250
4251
  ${this.volume ? l`<span class="volume-info">${this.volume}</span>` : ""}
@@ -4330,6 +4331,11 @@ Jt.styles = f`
4330
4331
  }
4331
4332
  }
4332
4333
 
4334
+ .info o-tag {
4335
+ margin-bottom: var(--spacing-xs);
4336
+ display: flex;
4337
+ }
4338
+
4333
4339
  .main-price {
4334
4340
  font-family: var(--font-family-loccitane-sans);
4335
4341
  color: var(--colors-noir-des-terres-500);
@@ -4349,35 +4355,38 @@ Jt.styles = f`
4349
4355
  cursor: pointer;
4350
4356
  }
4351
4357
  `;
4352
- let P = Jt;
4353
- q([
4358
+ let _ = Jt;
4359
+ j([
4354
4360
  a({ type: String })
4355
- ], P.prototype, "type");
4356
- q([
4361
+ ], _.prototype, "type");
4362
+ j([
4357
4363
  a({ type: String })
4358
- ], P.prototype, "titleProduct");
4359
- q([
4364
+ ], _.prototype, "titleProduct");
4365
+ j([
4360
4366
  a({ type: String })
4361
- ], P.prototype, "volume");
4362
- q([
4367
+ ], _.prototype, "volume");
4368
+ j([
4363
4369
  a({ type: String })
4364
- ], P.prototype, "perLiter");
4365
- q([
4370
+ ], _.prototype, "perLiter");
4371
+ j([
4366
4372
  a({ type: String })
4367
- ], P.prototype, "mainPrice");
4368
- q([
4373
+ ], _.prototype, "mainPrice");
4374
+ j([
4369
4375
  a({ type: String })
4370
- ], P.prototype, "imageUrl");
4371
- q([
4376
+ ], _.prototype, "imageUrl");
4377
+ j([
4372
4378
  a({ type: String })
4373
- ], P.prototype, "altImage");
4374
- q([
4379
+ ], _.prototype, "altImage");
4380
+ j([
4375
4381
  a({ type: Boolean })
4376
- ], P.prototype, "fullwidth");
4377
- q([
4382
+ ], _.prototype, "fullwidth");
4383
+ j([
4384
+ a({ type: String })
4385
+ ], _.prototype, "tagText");
4386
+ j([
4378
4387
  a({ type: Function })
4379
- ], P.prototype, "onClickTile");
4380
- customElements.define("mini-tile", P);
4388
+ ], _.prototype, "onClickTile");
4389
+ customElements.define("mini-tile", _);
4381
4390
  var di = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, Xt = (o, t, e, n) => {
4382
4391
  for (var i = n > 1 ? void 0 : n ? pi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
4383
4392
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
@@ -4627,7 +4636,7 @@ var fi = Object.defineProperty, bi = Object.getOwnPropertyDescriptor, B = (o, t,
4627
4636
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
4628
4637
  return n && i && fi(t, e, i), i;
4629
4638
  };
4630
- let gi = 0, _ = class extends u {
4639
+ let gi = 0, k = class extends u {
4631
4640
  constructor() {
4632
4641
  super(), this.checked = !1, this.indeterminate = !1, this.disabled = !1, this.size = "S", this.showLabel = !0, this.label = "Checkbox", this.name = "", this.value = "on", this.inputId = "", this.inputId || (this.inputId = `o-checkbox-${++gi}`);
4633
4642
  }
@@ -4644,7 +4653,7 @@ let gi = 0, _ = class extends u {
4644
4653
  this.disabled || (o.key === " " || o.key === "Enter") && (o.preventDefault(), this.toggle());
4645
4654
  }
4646
4655
  render() {
4647
- const o = C(N.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = C(N.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
4656
+ const o = C(F.checkbox.replace("<svg", '<svg aria-hidden="true" focusable="false" part="svg"')), t = C(F.icoMinus.replace("<svg", '<svg class="indeterminate" aria-hidden="true" focusable="false" part="svg"'));
4648
4657
  return l`
4649
4658
  <input
4650
4659
  type="checkbox"
@@ -4667,7 +4676,7 @@ let gi = 0, _ = class extends u {
4667
4676
  `;
4668
4677
  }
4669
4678
  };
4670
- _.styles = f`
4679
+ k.styles = f`
4671
4680
  :host {
4672
4681
  display: inline-flex;
4673
4682
  align-items: center;
@@ -4773,38 +4782,38 @@ _.styles = f`
4773
4782
  `;
4774
4783
  B([
4775
4784
  a({ type: Boolean, reflect: !0 })
4776
- ], _.prototype, "checked", 2);
4785
+ ], k.prototype, "checked", 2);
4777
4786
  B([
4778
4787
  a({ type: Boolean, reflect: !0 })
4779
- ], _.prototype, "indeterminate", 2);
4788
+ ], k.prototype, "indeterminate", 2);
4780
4789
  B([
4781
4790
  a({ type: Boolean, reflect: !0 })
4782
- ], _.prototype, "disabled", 2);
4791
+ ], k.prototype, "disabled", 2);
4783
4792
  B([
4784
4793
  a({ type: String, reflect: !0 })
4785
- ], _.prototype, "size", 2);
4794
+ ], k.prototype, "size", 2);
4786
4795
  B([
4787
4796
  a({ type: Boolean })
4788
- ], _.prototype, "showLabel", 2);
4797
+ ], k.prototype, "showLabel", 2);
4789
4798
  B([
4790
4799
  a({ type: String })
4791
- ], _.prototype, "label", 2);
4800
+ ], k.prototype, "label", 2);
4792
4801
  B([
4793
4802
  a({ type: String })
4794
- ], _.prototype, "name", 2);
4803
+ ], k.prototype, "name", 2);
4795
4804
  B([
4796
4805
  a({ type: String })
4797
- ], _.prototype, "value", 2);
4806
+ ], k.prototype, "value", 2);
4798
4807
  B([
4799
4808
  a({ type: String, reflect: !0 })
4800
- ], _.prototype, "inputId", 2);
4809
+ ], k.prototype, "inputId", 2);
4801
4810
  B([
4802
4811
  fe("input")
4803
- ], _.prototype, "inputEl", 2);
4804
- _ = B([
4812
+ ], k.prototype, "inputEl", 2);
4813
+ k = B([
4805
4814
  y("o-checkbox")
4806
- ], _);
4807
- var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, j = (o, t, e, n) => {
4815
+ ], k);
4816
+ var yi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, R = (o, t, e, n) => {
4808
4817
  for (var i = n > 1 ? void 0 : n ? mi(t, e) : t, r = o.length - 1, s; r >= 0; r--)
4809
4818
  (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
4810
4819
  return n && i && yi(t, e, i), i;
@@ -4933,33 +4942,33 @@ I.styles = f`
4933
4942
  height: 0;
4934
4943
  }
4935
4944
  `;
4936
- j([
4945
+ R([
4937
4946
  a({ type: Boolean, reflect: !0 })
4938
4947
  ], I.prototype, "checked", 2);
4939
- j([
4948
+ R([
4940
4949
  a({ type: Boolean, reflect: !0 })
4941
4950
  ], I.prototype, "disabled", 2);
4942
- j([
4951
+ R([
4943
4952
  a({ type: String, reflect: !0 })
4944
4953
  ], I.prototype, "size", 2);
4945
- j([
4954
+ R([
4946
4955
  a({ type: Boolean })
4947
4956
  ], I.prototype, "showLabel", 2);
4948
- j([
4957
+ R([
4949
4958
  a({ type: String })
4950
4959
  ], I.prototype, "label", 2);
4951
- j([
4960
+ R([
4952
4961
  a({ type: String })
4953
4962
  ], I.prototype, "name", 2);
4954
- j([
4963
+ R([
4955
4964
  a({ type: String })
4956
4965
  ], I.prototype, "value", 2);
4957
- j([
4966
+ R([
4958
4967
  a({ type: String, reflect: !0 })
4959
4968
  ], I.prototype, "inputId", 2);
4960
- j([
4969
+ R([
4961
4970
  fe("input")
4962
4971
  ], I.prototype, "inputEl", 2);
4963
- I = j([
4972
+ I = R([
4964
4973
  y("o-radio")
4965
4974
  ], I);