@club-employes/utopia 4.43.0 → 4.44.0

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/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, computed as P, ref as Z, provide as js, onMounted as xA, onBeforeUnmount as qe, watch as iA, createElementBlock as m, openBlock as f, renderSlot as AA, normalizeStyle as rA, normalizeClass as C, useSlots as Ys, createCommentVNode as y, Fragment as sA, createBlock as S, createElementVNode as v, createVNode as J, toDisplayString as T, withDirectives as _e, unref as H, vModelDynamic as Ds, createTextVNode as oA, nextTick as vA, resolveDynamicComponent as we, withCtx as R, renderList as aA, onUnmounted as OA, useTemplateRef as ze, Teleport as EA, Transition as DA, withModifiers as jA, TransitionGroup as ks, vModelText as Ts, useCssVars as Gs, withKeys as Ge, mergeProps as Zs } from "vue";
1
+ import { defineComponent as U, computed as P, ref as Z, provide as js, onMounted as xA, onBeforeUnmount as qe, watch as iA, createElementBlock as m, openBlock as f, renderSlot as AA, normalizeStyle as rA, normalizeClass as C, useSlots as Ys, createCommentVNode as y, Fragment as sA, createBlock as S, createElementVNode as l, createVNode as J, toDisplayString as T, withDirectives as _e, unref as H, vModelDynamic as Ds, createTextVNode as oA, nextTick as vA, resolveDynamicComponent as we, withCtx as R, renderList as aA, onUnmounted as OA, useTemplateRef as ze, Teleport as EA, Transition as DA, withModifiers as jA, TransitionGroup as ks, vModelText as Ts, useCssVars as Gs, withKeys as Ge, mergeProps as Zs } from "vue";
2
2
  import { RouterLink as Hs, useRoute as Js } from "vue-router";
3
3
  import { useBreakpoints as Cs, useScrollLock as $e, unrefElement as Ls, tryOnScopeDispose as Es, useMediaQuery as Xs, useEventListener as Qs } from "@vueuse/core";
4
4
  const Be = (A, s, e) => {
@@ -17,10 +17,10 @@ const Be = (A, s, e) => {
17
17
  return t.get(a);
18
18
  const u = a.lastIndexOf("-"), g = a.substring(0, u), d = a.substring(u + 1);
19
19
  try {
20
- const l = await Be(/* @__PURE__ */ Object.assign({ "../tokens/generated/club-employes/dark.css": () => import("./dark-ClkVxmkZ.js"), "../tokens/generated/club-employes/light.css": () => import("./light-DTJp1z_H.js"), "../tokens/generated/gifteo/dark.css": () => import("./dark-gzt5agWk.js"), "../tokens/generated/gifteo/light.css": () => import("./light-BbFm7eMu.js") }), `../tokens/generated/${g}/${d}.css`, 5), p = l.default || l;
20
+ const v = await Be(/* @__PURE__ */ Object.assign({ "../tokens/generated/club-employes/dark.css": () => import("./dark-ClkVxmkZ.js"), "../tokens/generated/club-employes/light.css": () => import("./light-DTJp1z_H.js"), "../tokens/generated/gifteo/dark.css": () => import("./dark-gzt5agWk.js"), "../tokens/generated/gifteo/light.css": () => import("./light-BbFm7eMu.js") }), `../tokens/generated/${g}/${d}.css`, 5), p = v.default || v;
21
21
  return t.set(a, p), p;
22
- } catch (l) {
23
- return console.warn(`Failed to preload theme CSS for ${a}:`, l), "";
22
+ } catch (v) {
23
+ return console.warn(`Failed to preload theme CSS for ${a}:`, v), "";
24
24
  }
25
25
  }, c = async () => {
26
26
  if (!n.value) {
@@ -52,16 +52,16 @@ const Be = (A, s, e) => {
52
52
  const a = document.querySelector("style[data-theme-preloaded]");
53
53
  if (a?.getAttribute("data-theme-preloaded") === e.value) {
54
54
  console.log("✅ Theme already preloaded via initializeTheme(), skipping initial injection");
55
- const l = a?.textContent;
56
- l && t.set(e.value, l);
55
+ const v = a?.textContent;
56
+ v && t.set(e.value, v);
57
57
  const p = [
58
58
  "club-employes-light",
59
59
  "club-employes-dark",
60
60
  "gifteo-light",
61
61
  "gifteo-dark"
62
- ].filter((M) => M !== e.value);
62
+ ].filter((O) => O !== e.value);
63
63
  Promise.all(
64
- p.map((M) => o(M))
64
+ p.map((O) => o(O))
65
65
  ).then(() => {
66
66
  console.log("🚀 Other themes preloaded in cache");
67
67
  });
@@ -74,7 +74,7 @@ const Be = (A, s, e) => {
74
74
  "gifteo-dark"
75
75
  ];
76
76
  if (Promise.all(
77
- d.map((l) => o(l))
77
+ d.map((v) => o(v))
78
78
  ).then(() => {
79
79
  console.log("🚀 All themes preloaded in cache");
80
80
  }), g && e.value === "club-employes-light") {
@@ -124,7 +124,7 @@ const Be = (A, s, e) => {
124
124
  for (const [t, n] of s)
125
125
  e[t] = n;
126
126
  return e;
127
- }, ua = /* @__PURE__ */ $(Ns, [["__scopeId", "data-v-ec572e66"]]), Fs = {
127
+ }, ma = /* @__PURE__ */ $(Ns, [["__scopeId", "data-v-ec572e66"]]), Fs = {
128
128
  name: "club-employes-light",
129
129
  mode: "light"
130
130
  }, Is = {
@@ -211,21 +211,21 @@ function yA() {
211
211
  A.value = A.value === "club-employes" ? "gifteo" : "club-employes";
212
212
  }, i = () => {
213
213
  s.value = s.value === "light" ? "dark" : "light";
214
- }, r = (l) => {
214
+ }, r = (v) => {
215
215
  if (t.value) {
216
216
  console.warn("⚠️ Brand is locked and cannot be changed. Brand is determined by the domain.");
217
217
  return;
218
218
  }
219
- A.value = l;
220
- }, a = (l) => {
221
- s.value = l;
219
+ A.value = v;
220
+ }, a = (v) => {
221
+ s.value = v;
222
222
  }, u = () => {
223
223
  e.value = !e.value;
224
- }, g = (l) => {
225
- e.value = l;
226
- }, d = P(() => Object.keys(RA).map((l) => ({
227
- key: l,
228
- name: RA[l].name
224
+ }, g = (v) => {
225
+ e.value = v;
226
+ }, d = P(() => Object.keys(RA).map((v) => ({
227
+ key: v,
228
+ name: RA[v].name
229
229
  })));
230
230
  return {
231
231
  // State
@@ -420,14 +420,14 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
420
420
  return (i, r) => (f(), m("label", {
421
421
  class: C(["utopia-checkbox", o.value])
422
422
  }, [
423
- v("input", {
423
+ l("input", {
424
424
  type: "checkbox",
425
425
  class: "utopia-checkbox__input",
426
426
  checked: A.modelValue,
427
427
  disabled: A.disabled,
428
428
  onChange: c
429
429
  }, null, 40, at),
430
- v("div", ft, [
430
+ l("div", ft, [
431
431
  J(N, {
432
432
  name: "Check",
433
433
  class: "utopia-checkbox__check",
@@ -484,7 +484,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
484
484
  "stroke-width": 2,
485
485
  class: "utopia-chip__left-icon"
486
486
  }, null, 8, ["name", "size"])) : y("", !0),
487
- v("span", ut, [
487
+ l("span", ut, [
488
488
  AA(a.$slots, "default", {}, void 0, !0)
489
489
  ]),
490
490
  A.removable ? (f(), m("button", {
@@ -558,17 +558,17 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
558
558
  "utopia-inputtext__field--numeric-text": e.type === "number" && e.maxlength !== void 0 && e.isCode
559
559
  })), d = P(() => ({
560
560
  [`utopia-inputtext__message--${e.state}`]: e.state === "error" || e.state === "valid"
561
- })), l = (Y) => {
561
+ })), v = (Y) => {
562
562
  t("focus", Y);
563
563
  }, p = (Y) => {
564
564
  e.forceModelValueOnBlur && (o.value = e.modelValue), t("blur", Y);
565
- }, M = (Y) => {
565
+ }, O = (Y) => {
566
566
  const B = Y.target;
567
567
  let z = B.value;
568
568
  e.isCode && (z = z.charAt(0).toUpperCase(), e.type === "number" ? /^\d$/.test(z) || (z = "") : /^[A-Z0-9]$/.test(z) || (z = ""), B.value = z), o.value = z, t("update:modelValue", z), t("input", Y);
569
569
  }, x = (Y) => {
570
570
  t("change", Y);
571
- }, w = (Y) => {
571
+ }, b = (Y) => {
572
572
  if (e.isCode) {
573
573
  const B = Y.key;
574
574
  if (e.type === "number") {
@@ -581,23 +581,23 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
581
581
  return;
582
582
  }
583
583
  }
584
- }, k = (Y) => {
584
+ }, D = (Y) => {
585
585
  t("keydown", Y);
586
- }, b = (Y) => {
586
+ }, w = (Y) => {
587
587
  t("paste", Y);
588
588
  }, L = (Y) => {
589
589
  e.iconClickable && !e.disabled && !e.readonly && t("icon-click", Y);
590
590
  }, G = (Y) => {
591
591
  const B = parseFloat(Y);
592
592
  return Number.isFinite(B) ? B : 0;
593
- }, D = (Y) => (typeof e.min == "number" && (Y = Math.max(Y, e.min)), typeof e.max == "number" && (Y = Math.min(Y, e.max)), Y), Q = (Y) => {
593
+ }, k = (Y) => (typeof e.min == "number" && (Y = Math.max(Y, e.min)), typeof e.max == "number" && (Y = Math.min(Y, e.max)), Y), Q = (Y) => {
594
594
  const B = i.value, z = B && !Number.isInteger(B) ? B.toString().split(".")[1]?.length ?? 0 : 0;
595
595
  return Y.toFixed(z);
596
596
  }, I = () => {
597
- const Y = G(o.value), B = D(Y + i.value), z = Q(B);
597
+ const Y = G(o.value), B = k(Y + i.value), z = Q(B);
598
598
  o.value = z, t("update:modelValue", z);
599
599
  }, j = () => {
600
- const Y = G(o.value), B = D(Y - i.value), z = Q(B);
600
+ const Y = G(o.value), B = k(Y - i.value), z = Q(B);
601
601
  o.value = z, t("update:modelValue", z);
602
602
  }, V = (Y) => {
603
603
  o.value = Y, vA(() => {
@@ -614,7 +614,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
614
614
  class: "utopia-inputtext__label",
615
615
  for: c.value
616
616
  }, T(A.label), 9, zt)) : y("", !0),
617
- v("div", pt, [
617
+ l("div", pt, [
618
618
  (A.icon || A.state === "valid" || A.state === "error") && A.iconPosition === "left" ? (f(), m("div", {
619
619
  key: 0,
620
620
  class: C(["utopia-inputtext__icon-container utopia-inputtext__icon--left", { "utopia-inputtext__icon--clickable": A.iconClickable }]),
@@ -640,7 +640,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
640
640
  color: "current"
641
641
  }, null, 8, ["name"])) : y("", !0)
642
642
  ], 2)) : y("", !0),
643
- _e(v("input", {
643
+ _e(l("input", {
644
644
  id: c.value,
645
645
  ref_key: "inputRef",
646
646
  ref: n,
@@ -655,13 +655,13 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
655
655
  min: A.min,
656
656
  max: A.max,
657
657
  step: i.value,
658
- onFocus: l,
658
+ onFocus: v,
659
659
  onBlur: p,
660
- onInput: M,
660
+ onInput: O,
661
661
  onChange: x,
662
- onKeypress: w,
663
- onKeydown: k,
664
- onPaste: b
662
+ onKeypress: b,
663
+ onKeydown: D,
664
+ onPaste: w
665
665
  }, null, 42, xt), [
666
666
  [Ds, o.value]
667
667
  ]),
@@ -694,7 +694,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
694
694
  }, null, 8, ["name"])) : y("", !0)
695
695
  ], 2)) : y("", !0),
696
696
  A.type === "number" && !A.isCode ? (f(), m("div", Pt, [
697
- v("button", {
697
+ l("button", {
698
698
  type: "button",
699
699
  class: "utopia-inputtext__stepper-btn utopia-inputtext__stepper-btn--up",
700
700
  onClick: I,
@@ -706,7 +706,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
706
706
  "stroke-width": "2"
707
707
  })
708
708
  ], 8, Mt),
709
- v("button", {
709
+ l("button", {
710
710
  type: "button",
711
711
  class: "utopia-inputtext__stepper-btn utopia-inputtext__stepper-btn--down",
712
712
  onClick: j,
@@ -797,7 +797,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
797
797
  _: 3
798
798
  }, 8, ["class", "style"]));
799
799
  }
800
- }), ga = /* @__PURE__ */ $(wt, [["__scopeId", "data-v-0ba4d574"]]), Bt = /* @__PURE__ */ U({
800
+ }), za = /* @__PURE__ */ $(wt, [["__scopeId", "data-v-0ba4d574"]]), Bt = /* @__PURE__ */ U({
801
801
  __name: "SkeletonAvatar",
802
802
  props: {
803
803
  size: { default: "40px" },
@@ -818,7 +818,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
818
818
  style: rA(t.value)
819
819
  }, null, 6));
820
820
  }
821
- }), ma = /* @__PURE__ */ $(Bt, [["__scopeId", "data-v-ae0bac0c"]]), jt = /* @__PURE__ */ U({
821
+ }), pa = /* @__PURE__ */ $(Bt, [["__scopeId", "data-v-ae0bac0c"]]), jt = /* @__PURE__ */ U({
822
822
  __name: "SkeletonText",
823
823
  props: {
824
824
  lines: { default: 3 },
@@ -847,7 +847,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
847
847
  }, null, 6))), 128))
848
848
  ], 6));
849
849
  }
850
- }), za = /* @__PURE__ */ $(jt, [["__scopeId", "data-v-01adbb2c"]]), Yt = ["checked", "disabled"], Dt = { class: "utopia-switch__track" }, kt = { class: "utopia-switch__thumb" }, Tt = {
850
+ }), xa = /* @__PURE__ */ $(jt, [["__scopeId", "data-v-01adbb2c"]]), Yt = ["checked", "disabled"], Dt = { class: "utopia-switch__track" }, kt = { class: "utopia-switch__thumb" }, Tt = {
851
851
  key: 0,
852
852
  class: "utopia-switch__label"
853
853
  }, Gt = /* @__PURE__ */ U({
@@ -872,15 +872,15 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
872
872
  return (i, r) => (f(), m("label", {
873
873
  class: C(["utopia-switch", o.value])
874
874
  }, [
875
- v("input", {
875
+ l("input", {
876
876
  type: "checkbox",
877
877
  class: "utopia-switch__input",
878
878
  checked: A.modelValue,
879
879
  disabled: A.disabled,
880
880
  onChange: c
881
881
  }, null, 40, Yt),
882
- v("div", Dt, [
883
- v("div", kt, [
882
+ l("div", Dt, [
883
+ l("div", kt, [
884
884
  J(N, {
885
885
  name: "Check",
886
886
  class: C(`utopia-switch__icon ${A.modelValue ? "utopia-switch__icon--visible" : ""}`),
@@ -893,7 +893,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
893
893
  ])) : y("", !0)
894
894
  ], 2));
895
895
  }
896
- }), pa = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-590ea41c"]]);
896
+ }), Pa = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-590ea41c"]]);
897
897
  function As(A) {
898
898
  return [
899
899
  "club-employes-light",
@@ -902,7 +902,7 @@ function As(A) {
902
902
  "gifteo-dark"
903
903
  ].includes(A);
904
904
  }
905
- async function xa(A) {
905
+ async function Ma(A) {
906
906
  if (!As(A))
907
907
  throw new Error(
908
908
  `Invalid theme name: ${A}. Valid themes are: club-employes-light, club-employes-dark, gifteo-light, gifteo-dark`
@@ -921,7 +921,7 @@ async function xa(A) {
921
921
  throw console.error("❌ Failed to initialize theme:", A, s), new Error(`Failed to initialize theme ${A}: ${s}`);
922
922
  }
923
923
  }
924
- function Pa() {
924
+ function Oa() {
925
925
  const A = document.querySelector("style[data-theme-preloaded]");
926
926
  if (A) {
927
927
  const s = A.getAttribute("data-theme-preloaded");
@@ -930,13 +930,13 @@ function Pa() {
930
930
  }
931
931
  return null;
932
932
  }
933
- function Ma() {
933
+ function ya() {
934
934
  if (typeof window < "u") {
935
935
  const A = document.querySelector("style[data-theme-preloaded]");
936
936
  A && (A.removeAttribute("data-theme-preloaded"), window.dispatchEvent(new CustomEvent("utopia:brand-unlocked")), console.log("🔓 Brand unlocked - manual brand switching is now allowed"));
937
937
  }
938
938
  }
939
- function Oa() {
939
+ function ba() {
940
940
  const { currentBrand: A, currentMode: s } = yA(), e = (r) => {
941
941
  try {
942
942
  const u = `--assets-logos-${r}-small`, d = getComputedStyle(document.documentElement).getPropertyValue(u).trim();
@@ -1057,12 +1057,12 @@ function es(A = {}) {
1057
1057
  const i = Z(), r = Z(!1), a = Z(!0), u = () => {
1058
1058
  if (i.value)
1059
1059
  try {
1060
- const { scrollTop: x, scrollHeight: w, clientHeight: k } = i.value;
1061
- if (!(w > k)) {
1060
+ const { scrollTop: x, scrollHeight: b, clientHeight: D } = i.value;
1061
+ if (!(b > D)) {
1062
1062
  r.value = !1, a.value = !1;
1063
1063
  return;
1064
1064
  }
1065
- const L = x <= t, G = Math.abs(w - k - x) <= e;
1065
+ const L = x <= t, G = Math.abs(b - D - x) <= e;
1066
1066
  r.value = !L, a.value = !G;
1067
1067
  } catch (x) {
1068
1068
  console.warn("Error checking scroll position:", x), r.value = !1, a.value = !1;
@@ -1073,14 +1073,14 @@ function es(A = {}) {
1073
1073
  setTimeout(() => {
1074
1074
  u();
1075
1075
  }, s);
1076
- }, l = (x) => iA(x, (k) => {
1077
- k && vA(() => {
1076
+ }, v = (x) => iA(x, (D) => {
1077
+ D && vA(() => {
1078
1078
  setTimeout(u, s);
1079
1079
  });
1080
1080
  }, { immediate: !0 }), p = P(() => {
1081
1081
  const x = ["scroll-shadows-container"];
1082
1082
  return r.value || x.push("hide-top-shadow"), a.value || x.push("hide-bottom-shadow"), x;
1083
- }), M = P(() => ["scroll-content-hidden-scrollbar"]);
1083
+ }), O = P(() => ["scroll-content-hidden-scrollbar"]);
1084
1084
  return OA(() => {
1085
1085
  c && c();
1086
1086
  }), {
@@ -1091,9 +1091,9 @@ function es(A = {}) {
1091
1091
  checkScrollPosition: u,
1092
1092
  initialize: d,
1093
1093
  containerClasses: p,
1094
- scrollClasses: M,
1094
+ scrollClasses: O,
1095
1095
  // Fonction bonus pour les cas d'usage spéciaux
1096
- initializeOnChange: l
1096
+ initializeOnChange: v
1097
1097
  };
1098
1098
  }
1099
1099
  const Ht = {
@@ -1142,7 +1142,7 @@ const Et = /* @__PURE__ */ U({
1142
1142
  "stroke-width": 2,
1143
1143
  class: "utopia-link-content__icon"
1144
1144
  }, null, 8, ["name", "size"])) : y("", !0),
1145
- v("div", {
1145
+ l("div", {
1146
1146
  class: C(e.value)
1147
1147
  }, T(A.label), 3),
1148
1148
  A.iconRight ? (f(), S(N, {
@@ -1256,7 +1256,7 @@ const Et = /* @__PURE__ */ U({
1256
1256
  _: 3
1257
1257
  }, 8, ["class", "style"]));
1258
1258
  }
1259
- }), ya = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-d8e088ea"]]), Ft = {
1259
+ }), wa = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-d8e088ea"]]), Ft = {
1260
1260
  key: 0,
1261
1261
  class: "utopia-rangeslider__slider-container"
1262
1262
  }, It = ["min", "max", "value"], Vt = ["min", "max", "value"], St = {
@@ -1278,42 +1278,42 @@ const Et = /* @__PURE__ */ U({
1278
1278
  [`utopia-rangeslider__input--${e.size}`]: !0
1279
1279
  })), i = P(() => ({
1280
1280
  [`utopia-rangeslider__input-from--${e.size}`]: !0
1281
- })), r = s, a = (b) => {
1282
- const L = b.target;
1281
+ })), r = s, a = (w) => {
1282
+ const L = w.target;
1283
1283
  r("update-value", L.valueAsNumber);
1284
- }, u = (b) => {
1285
- const L = b.target;
1284
+ }, u = (w) => {
1285
+ const L = w.target;
1286
1286
  if (t.value) {
1287
1287
  const G = Math.min(L.valueAsNumber, o.value);
1288
1288
  r("update-value", [G, o.value]);
1289
1289
  }
1290
- }, g = (b) => {
1291
- const L = b.target;
1290
+ }, g = (w) => {
1291
+ const L = w.target;
1292
1292
  if (t.value) {
1293
1293
  const G = Math.max(n.value, L.valueAsNumber);
1294
1294
  r("update-value", [n.value, G]);
1295
1295
  }
1296
1296
  }, d = P(() => {
1297
- const b = t.value ? n.value : 0, L = e.max - e.min;
1298
- return (b - e.min) / L * 100;
1299
- }), l = P(() => {
1300
- const b = (t.value, o.value), L = e.max - e.min;
1301
- return (b - e.min) / L * 100;
1297
+ const w = t.value ? n.value : 0, L = e.max - e.min;
1298
+ return (w - e.min) / L * 100;
1299
+ }), v = P(() => {
1300
+ const w = (t.value, o.value), L = e.max - e.min;
1301
+ return (w - e.min) / L * 100;
1302
1302
  }), p = P(() => {
1303
- const b = "var(--theme-colors-brand-secondary-100)", L = "var(--theme-colors-brand-primary-500)";
1303
+ const w = "var(--theme-colors-brand-secondary-100)", L = "var(--theme-colors-brand-primary-500)";
1304
1304
  return {
1305
1305
  background: `linear-gradient(
1306
1306
  to right,
1307
- ${b} 0%,
1308
- ${b} ${d.value}%,
1307
+ ${w} 0%,
1308
+ ${w} ${d.value}%,
1309
1309
  ${L} ${d.value}%,
1310
- ${L} ${l.value}%,
1311
- ${b} ${l.value}%,
1312
- ${b} 100%)`
1310
+ ${L} ${v.value}%,
1311
+ ${w} ${v.value}%,
1312
+ ${w} 100%)`
1313
1313
  };
1314
- }), M = Z(null), x = Z(null), w = Z(null), k = P(() => {
1315
- const b = M.value?.offsetWidth || 0, L = x.value?.offsetWidth || 0, G = w.value?.offsetWidth || 0, D = L + G + (t.value ? 12 : 0), Q = b - D;
1316
- let I = d.value * b * (1 - L / b) / 100, j = (100 - l.value) * b * (1 - G / b) / 100;
1314
+ }), O = Z(null), x = Z(null), b = Z(null), D = P(() => {
1315
+ const w = O.value?.offsetWidth || 0, L = x.value?.offsetWidth || 0, G = b.value?.offsetWidth || 0, k = L + G + (t.value ? 12 : 0), Q = w - k;
1316
+ let I = d.value * w * (1 - L / w) / 100, j = (100 - v.value) * w * (1 - G / w) / 100;
1317
1317
  return I + j > Q && (I > j ? I = Q - j : j = Q - I), {
1318
1318
  "padding-left": `calc(${I}px)`,
1319
1319
  "padding-right": `calc(${j}px)`,
@@ -1322,14 +1322,14 @@ const Et = /* @__PURE__ */ U({
1322
1322
  };
1323
1323
  });
1324
1324
  return xA(() => {
1325
- M.value = ze("sliderRef"), x.value = ze("fromValueRef"), w.value = ze("toValueRef");
1326
- }), (b, L) => (f(), m("div", {
1325
+ O.value = ze("sliderRef"), x.value = ze("fromValueRef"), b.value = ze("toValueRef");
1326
+ }), (w, L) => (f(), m("div", {
1327
1327
  class: "utopia-rangeslider",
1328
1328
  ref_key: "sliderRef",
1329
- ref: M
1329
+ ref: O
1330
1330
  }, [
1331
1331
  t.value ? (f(), m("div", Ft, [
1332
- v("input", {
1332
+ l("input", {
1333
1333
  class: C(["utopia-rangeslider__input utopia-rangeslider__input-from", [c.value, i.value]]),
1334
1334
  type: "range",
1335
1335
  min: A.min,
@@ -1337,7 +1337,7 @@ const Et = /* @__PURE__ */ U({
1337
1337
  value: n.value,
1338
1338
  onInput: u
1339
1339
  }, null, 42, It),
1340
- v("input", {
1340
+ l("input", {
1341
1341
  class: C(["utopia-rangeslider__input utopia-rangeslider__input-to", c.value]),
1342
1342
  style: rA(p.value),
1343
1343
  type: "range",
@@ -1347,7 +1347,7 @@ const Et = /* @__PURE__ */ U({
1347
1347
  onInput: g
1348
1348
  }, null, 46, Vt)
1349
1349
  ])) : (f(), m("div", St, [
1350
- v("input", {
1350
+ l("input", {
1351
1351
  class: C(["utopia-rangeslider__input", c.value]),
1352
1352
  style: rA(p.value),
1353
1353
  type: "range",
@@ -1356,11 +1356,11 @@ const Et = /* @__PURE__ */ U({
1356
1356
  value: typeof A.currentValue == "number" ? A.currentValue : A.min,
1357
1357
  onInput: a
1358
1358
  }, null, 46, Wt),
1359
- L[0] || (L[0] = v("div", { class: "utopia-rangeslider__progress" }, null, -1))
1359
+ L[0] || (L[0] = l("div", { class: "utopia-rangeslider__progress" }, null, -1))
1360
1360
  ])),
1361
- v("div", {
1361
+ l("div", {
1362
1362
  class: "utopia-rangeslider__range-values-container",
1363
- style: rA(k.value)
1363
+ style: rA(D.value)
1364
1364
  }, [
1365
1365
  t.value ? (f(), m("div", {
1366
1366
  key: 0,
@@ -1368,10 +1368,10 @@ const Et = /* @__PURE__ */ U({
1368
1368
  ref_key: "fromValueRef",
1369
1369
  ref: x
1370
1370
  }, T(n.value) + T(A.unit ? ` ${A.unit}` : ""), 513)) : y("", !0),
1371
- v("div", {
1371
+ l("div", {
1372
1372
  class: "utopia-rangeslider__range-value",
1373
1373
  ref_key: "toValueRef",
1374
- ref: w
1374
+ ref: b
1375
1375
  }, T(o.value) + T(A.unit ? ` ${A.unit}` : ""), 513)
1376
1376
  ], 4)
1377
1377
  ], 512));
@@ -1425,12 +1425,12 @@ const Et = /* @__PURE__ */ U({
1425
1425
  J(DA, { name: "utopia-bottom-sheet" }, {
1426
1426
  default: R(() => [
1427
1427
  A.modelValue ? (f(), m("div", Ut, [
1428
- v("div", {
1428
+ l("div", {
1429
1429
  class: C(["bottomsheet", n.value])
1430
1430
  }, [
1431
- a[0] || (a[0] = v("div", { class: "bottomsheet__handle" }, null, -1)),
1431
+ a[0] || (a[0] = l("div", { class: "bottomsheet__handle" }, null, -1)),
1432
1432
  A.title ? (f(), m("h3", qt, T(A.title), 1)) : y("", !0),
1433
- v("div", _t, [
1433
+ l("div", _t, [
1434
1434
  AA(r.$slots, "default", {}, void 0, !0)
1435
1435
  ])
1436
1436
  ], 2)
@@ -1440,7 +1440,7 @@ const Et = /* @__PURE__ */ U({
1440
1440
  })
1441
1441
  ]));
1442
1442
  }
1443
- }), ba = /* @__PURE__ */ $($t, [["__scopeId", "data-v-7df648fa"]]), An = ["for"], en = { class: "utopia-dropdown__container" }, sn = ["id", "disabled", "aria-expanded"], tn = { key: 0 }, nn = {
1443
+ }), Ba = /* @__PURE__ */ $($t, [["__scopeId", "data-v-7df648fa"]]), An = ["for"], en = { class: "utopia-dropdown__container" }, sn = ["id", "disabled", "aria-expanded"], tn = { key: 0 }, nn = {
1444
1444
  key: 0,
1445
1445
  class: "utopia-dropdown__chips-shadow utopia-dropdown__chips-shadow--left"
1446
1446
  }, on = {
@@ -1486,13 +1486,13 @@ const Et = /* @__PURE__ */ U({
1486
1486
  setup(A, { emit: s }) {
1487
1487
  const e = A, t = s, n = Z(), o = Z(), c = Z();
1488
1488
  Z();
1489
- const i = Z(), r = Z(!1), a = Z(!1), u = Z(!1), g = Z(""), d = Z(-1), l = Z({ top: "0px", left: "0px", width: "0px" }), p = P(() => `utopia-dropdown-${Math.random().toString(36).substr(2, 9)}`), M = P(() => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.length > 0 : e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), x = P(() => !e.multiple || !Array.isArray(e.modelValue) ? [] : e.options.filter(
1489
+ const i = Z(), r = Z(!1), a = Z(!1), u = Z(!1), g = Z(""), d = Z(-1), v = Z({ top: "0px", left: "0px", width: "0px" }), p = P(() => `utopia-dropdown-${Math.random().toString(36).substr(2, 9)}`), O = P(() => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.length > 0 : e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), x = P(() => !e.multiple || !Array.isArray(e.modelValue) ? [] : e.options.filter(
1490
1490
  (X) => e.modelValue.includes(X.value)
1491
- )), w = P(() => 2), k = P(() => {
1491
+ )), b = P(() => 2), D = P(() => {
1492
1492
  if (!i.value) return !1;
1493
1493
  const { scrollWidth: X, clientWidth: q } = i.value;
1494
1494
  return X > q + 2;
1495
- }), b = () => {
1495
+ }), w = () => {
1496
1496
  if (!i.value) return;
1497
1497
  const { scrollLeft: X, scrollWidth: q, clientWidth: _ } = i.value, nA = q > _ + 2;
1498
1498
  if (!nA) {
@@ -1502,14 +1502,14 @@ const Et = /* @__PURE__ */ U({
1502
1502
  const MA = X <= 1, me = Math.abs(q - _ - X) <= 1;
1503
1503
  r.value = nA && !MA, a.value = nA && !me;
1504
1504
  }, L = P(() => e.multiple && e.searchable ? "400px" : e.maxHeight || "300px"), G = P(() => {
1505
- if (!M.value)
1505
+ if (!O.value)
1506
1506
  return e.placeholder;
1507
1507
  if (e.multiple && Array.isArray(e.modelValue)) {
1508
1508
  const q = x.value;
1509
1509
  return q.length === 0 ? e.placeholder : q.length === 1 ? q[0].label : `${q.length} éléments sélectionnés`;
1510
1510
  }
1511
1511
  return e.options.find((q) => q.value === e.modelValue)?.label || e.placeholder;
1512
- }), D = P(() => !e.searchable || !g.value ? e.options : e.options.filter(
1512
+ }), k = P(() => !e.searchable || !g.value ? e.options : e.options.filter(
1513
1513
  (X) => X.label.toLowerCase().includes(g.value.toLowerCase())
1514
1514
  )), Q = P(() => ({
1515
1515
  [`utopia-dropdown--${e.size}`]: !0,
@@ -1519,7 +1519,7 @@ const Et = /* @__PURE__ */ U({
1519
1519
  "utopia-dropdown--open": u.value,
1520
1520
  "utopia-dropdown--with-message": e.message
1521
1521
  })), I = P(() => ({
1522
- "utopia-dropdown__trigger--with-clear": e.clearable && M.value,
1522
+ "utopia-dropdown__trigger--with-clear": e.clearable && O.value,
1523
1523
  "utopia-dropdown__trigger--with-state": e.state === "valid" || e.state === "error",
1524
1524
  "utopia-dropdown__trigger--open": u.value
1525
1525
  })), j = P(() => ({
@@ -1531,14 +1531,14 @@ const Et = /* @__PURE__ */ U({
1531
1531
  }), B = () => {
1532
1532
  if (!n.value) return;
1533
1533
  const X = n.value.getBoundingClientRect(), _ = window.innerHeight - X.bottom, nA = X.top, MA = parseInt(L.value.replace("px", "")) || 300, me = _ < MA && nA > MA;
1534
- l.value = {
1534
+ v.value = {
1535
1535
  top: me ? `${X.top - Math.min(MA, nA) - 4}px` : `${X.bottom + 4}px`,
1536
1536
  left: `${X.left}px`,
1537
1537
  width: `${X.width}px`
1538
1538
  };
1539
1539
  }, z = () => {
1540
- e.disabled || e.readonly || (u.value ? E() : O());
1541
- }, O = async () => {
1540
+ e.disabled || e.readonly || (u.value ? E() : M());
1541
+ }, M = async () => {
1542
1542
  if (!(e.disabled || e.readonly) && (B(), u.value = !0, d.value = -1, g.value = "", t("open"), await vA(), e.searchable && c.value))
1543
1543
  try {
1544
1544
  const X = c.value?.$el?.querySelector("input");
@@ -1571,7 +1571,7 @@ const Et = /* @__PURE__ */ U({
1571
1571
  X.preventDefault(), z();
1572
1572
  break;
1573
1573
  case "ArrowDown":
1574
- X.preventDefault(), u.value ? d.value = Math.min(d.value + 1, D.value.length - 1) : O();
1574
+ X.preventDefault(), u.value ? d.value = Math.min(d.value + 1, k.value.length - 1) : M();
1575
1575
  break;
1576
1576
  case "ArrowUp":
1577
1577
  X.preventDefault(), u.value && (d.value = Math.max(d.value - 1, 0));
@@ -1586,13 +1586,13 @@ const Et = /* @__PURE__ */ U({
1586
1586
  }, eA = (X) => {
1587
1587
  switch (X.key) {
1588
1588
  case "ArrowDown":
1589
- X.preventDefault(), d.value = Math.min(d.value + 1, D.value.length - 1);
1589
+ X.preventDefault(), d.value = Math.min(d.value + 1, k.value.length - 1);
1590
1590
  break;
1591
1591
  case "ArrowUp":
1592
1592
  X.preventDefault(), d.value = Math.max(d.value - 1, 0);
1593
1593
  break;
1594
1594
  case "Enter":
1595
- X.preventDefault(), d.value >= 0 && D.value[d.value] && h(D.value[d.value]);
1595
+ X.preventDefault(), d.value >= 0 && k.value[d.value] && h(k.value[d.value]);
1596
1596
  break;
1597
1597
  case "Escape":
1598
1598
  X.preventDefault(), E();
@@ -1610,7 +1610,7 @@ const Et = /* @__PURE__ */ U({
1610
1610
  };
1611
1611
  return xA(() => {
1612
1612
  document.addEventListener("click", fA), window.addEventListener("resize", cA), window.addEventListener("scroll", cA, !0), setTimeout(() => {
1613
- b();
1613
+ w();
1614
1614
  }, 100);
1615
1615
  }), OA(() => {
1616
1616
  document.removeEventListener("click", fA), window.removeEventListener("resize", cA), window.removeEventListener("scroll", cA, !0);
@@ -1622,8 +1622,8 @@ const Et = /* @__PURE__ */ U({
1622
1622
  class: "utopia-dropdown__label",
1623
1623
  for: p.value
1624
1624
  }, T(A.label), 9, An)) : y("", !0),
1625
- v("div", en, [
1626
- v("button", {
1625
+ l("div", en, [
1626
+ l("button", {
1627
1627
  id: p.value,
1628
1628
  ref_key: "triggerRef",
1629
1629
  ref: n,
@@ -1637,22 +1637,22 @@ const Et = /* @__PURE__ */ U({
1637
1637
  onFocus: tA,
1638
1638
  onBlur: lA
1639
1639
  }, [
1640
- v("div", {
1641
- class: C(["utopia-dropdown__value", { "utopia-dropdown__value--placeholder": !M.value }])
1640
+ l("div", {
1641
+ class: C(["utopia-dropdown__value", { "utopia-dropdown__value--placeholder": !O.value }])
1642
1642
  }, [
1643
1643
  A.multiple ? (f(), m(sA, { key: 1 }, [
1644
- M.value ? (f(), m("div", {
1644
+ O.value ? (f(), m("div", {
1645
1645
  class: "utopia-dropdown__chips-wrapper",
1646
1646
  key: `chips-${x.value.length}`
1647
1647
  }, [
1648
- r.value && k.value ? (f(), m("div", nn)) : y("", !0),
1649
- v("div", {
1648
+ r.value && D.value ? (f(), m("div", nn)) : y("", !0),
1649
+ l("div", {
1650
1650
  ref_key: "chipsScrollRef",
1651
1651
  ref: i,
1652
1652
  class: "utopia-dropdown__chips",
1653
- onScroll: b
1653
+ onScroll: w
1654
1654
  }, [
1655
- (f(!0), m(sA, null, aA(x.value.slice(0, w.value), (_) => (f(), S(H(HA), {
1655
+ (f(!0), m(sA, null, aA(x.value.slice(0, b.value), (_) => (f(), S(H(HA), {
1656
1656
  key: `chip-${_.value}`,
1657
1657
  size: "small",
1658
1658
  variant: "default",
@@ -1665,13 +1665,13 @@ const Et = /* @__PURE__ */ U({
1665
1665
  ]),
1666
1666
  _: 2
1667
1667
  }, 1032, ["onRemove"]))), 128)),
1668
- x.value.length > w.value ? (f(), m("span", on, " +" + T(x.value.length - w.value) + " autres ", 1)) : y("", !0)
1668
+ x.value.length > b.value ? (f(), m("span", on, " +" + T(x.value.length - b.value) + " autres ", 1)) : y("", !0)
1669
1669
  ], 544),
1670
- a.value && k.value ? (f(), m("div", cn)) : y("", !0)
1670
+ a.value && D.value ? (f(), m("div", cn)) : y("", !0)
1671
1671
  ])) : (f(), m("span", rn, T(A.placeholder), 1))
1672
1672
  ], 64)) : (f(), m("span", tn, T(G.value), 1))
1673
1673
  ], 2),
1674
- A.clearable && M.value && !A.disabled ? (f(), m("div", {
1674
+ A.clearable && O.value && !A.disabled ? (f(), m("div", {
1675
1675
  key: 0,
1676
1676
  size: "sm",
1677
1677
  class: "utopia-dropdown__clear",
@@ -1687,7 +1687,7 @@ const Et = /* @__PURE__ */ U({
1687
1687
  color: "neutral"
1688
1688
  })
1689
1689
  ], 32)) : y("", !0),
1690
- v("div", {
1690
+ l("div", {
1691
1691
  class: C(["utopia-dropdown__chevron", { "utopia-dropdown__chevron--open": u.value }])
1692
1692
  }, [
1693
1693
  J(H(N), {
@@ -1720,9 +1720,9 @@ const Et = /* @__PURE__ */ U({
1720
1720
  class: "utopia-dropdown__menu",
1721
1721
  style: rA({
1722
1722
  maxHeight: L.value,
1723
- top: l.value.top,
1724
- left: l.value.left,
1725
- width: l.value.width
1723
+ top: v.value.top,
1724
+ left: v.value.left,
1725
+ width: v.value.width
1726
1726
  }),
1727
1727
  role: "listbox",
1728
1728
  "aria-multiselectable": A.multiple
@@ -1740,8 +1740,8 @@ const Et = /* @__PURE__ */ U({
1740
1740
  onKeydown: eA
1741
1741
  }, null, 8, ["modelValue"])
1742
1742
  ])) : y("", !0),
1743
- v("div", ln, [
1744
- (f(!0), m(sA, null, aA(D.value, (_, nA) => (f(), m("div", {
1743
+ l("div", ln, [
1744
+ (f(!0), m(sA, null, aA(k.value, (_, nA) => (f(), m("div", {
1745
1745
  key: `option-${_.value}-${nA}`,
1746
1746
  class: C(["utopia-dropdown__option", [
1747
1747
  Y(_, nA),
@@ -1760,7 +1760,7 @@ const Et = /* @__PURE__ */ U({
1760
1760
  size: "small",
1761
1761
  class: "utopia-dropdown__checkbox"
1762
1762
  }, null, 8, ["modelValue", "disabled"]),
1763
- v("span", {
1763
+ l("span", {
1764
1764
  class: "utopia-dropdown__checkbox-label",
1765
1765
  title: _.label
1766
1766
  }, T(_.label), 9, gn)
@@ -1770,7 +1770,7 @@ const Et = /* @__PURE__ */ U({
1770
1770
  title: _.label
1771
1771
  }, T(_.label), 9, mn))
1772
1772
  ], 42, vn))), 128)),
1773
- D.value.length === 0 ? (f(), m("div", zn, " Aucun résultat trouvé ")) : y("", !0)
1773
+ k.value.length === 0 ? (f(), m("div", zn, " Aucun résultat trouvé ")) : y("", !0)
1774
1774
  ])
1775
1775
  ], 12, fn)) : y("", !0)
1776
1776
  ]),
@@ -1830,22 +1830,22 @@ const Et = /* @__PURE__ */ U({
1830
1830
  else
1831
1831
  window.location.reload();
1832
1832
  };
1833
- return (d, l) => (f(), m("div", On, [
1834
- v("div", yn, [
1833
+ return (d, v) => (f(), m("div", On, [
1834
+ l("div", yn, [
1835
1835
  r.value ? (f(), m(sA, { key: 0 }, [
1836
- v("div", {
1836
+ l("div", {
1837
1837
  class: C(["gear-wrapper gear-wrapper--primary", { "spin-20s": i.value }])
1838
1838
  }, [
1839
- v("img", {
1839
+ l("img", {
1840
1840
  src: H(xn),
1841
1841
  alt: "Grande roue",
1842
1842
  class: "gear"
1843
1843
  }, null, 8, bn)
1844
1844
  ], 2),
1845
- v("div", {
1845
+ l("div", {
1846
1846
  class: C(["gear-wrapper gear-wrapper--light", { "spin-20s": i.value }])
1847
1847
  }, [
1848
- v("img", {
1848
+ l("img", {
1849
1849
  src: H(Pn),
1850
1850
  alt: "Petite roue",
1851
1851
  class: "gear"
@@ -1858,8 +1858,8 @@ const Et = /* @__PURE__ */ U({
1858
1858
  class: "utopia-errorstate__image"
1859
1859
  }, null, 8, Bn)) : y("", !0)
1860
1860
  ]),
1861
- v("div", jn, [
1862
- v("h3", Yn, T(n.value), 1),
1861
+ l("div", jn, [
1862
+ l("h3", Yn, T(n.value), 1),
1863
1863
  c.value ? (f(), m("p", Dn, T(c.value), 1)) : y("", !0),
1864
1864
  o.value ? (f(), S(mA, {
1865
1865
  key: 1,
@@ -1876,7 +1876,7 @@ const Et = /* @__PURE__ */ U({
1876
1876
  ])
1877
1877
  ]));
1878
1878
  }
1879
- }), wa = /* @__PURE__ */ $(Tn, [["__scopeId", "data-v-2b0667e9"]]), Gn = /* @__PURE__ */ U({
1879
+ }), ja = /* @__PURE__ */ $(Tn, [["__scopeId", "data-v-2b0667e9"]]), Gn = /* @__PURE__ */ U({
1880
1880
  __name: "FilterChip",
1881
1881
  props: {
1882
1882
  filters: { default: () => ({}) },
@@ -1923,7 +1923,7 @@ const Et = /* @__PURE__ */ U({
1923
1923
  _: 1
1924
1924
  }));
1925
1925
  }
1926
- }), Ba = /* @__PURE__ */ $(Gn, [["__scopeId", "data-v-0781bb1e"]]), Zn = ["for"], Hn = { class: "utopia-inputcode__container" }, Jn = { class: "utopia-inputcode__fields" }, Cn = /* @__PURE__ */ U({
1926
+ }), Ya = /* @__PURE__ */ $(Gn, [["__scopeId", "data-v-0781bb1e"]]), Zn = ["for"], Hn = { class: "utopia-inputcode__container" }, Jn = { class: "utopia-inputcode__fields" }, Cn = /* @__PURE__ */ U({
1927
1927
  __name: "InputCode",
1928
1928
  props: {
1929
1929
  modelValue: { default: "" },
@@ -1940,7 +1940,7 @@ const Et = /* @__PURE__ */ U({
1940
1940
  },
1941
1941
  emits: ["update:modelValue", "complete", "change", "focus", "blur"],
1942
1942
  setup(A, { expose: s, emit: e }) {
1943
- const t = A, n = e, o = P(() => `utopia-inputcode-${Math.random().toString(36).substr(2, 9)}`), c = Z([]), i = Z([]), r = Z(-1), a = Z([]), u = P(() => Array.from({ length: t.length }, (D, Q) => Q)), g = P(() => ({
1943
+ const t = A, n = e, o = P(() => `utopia-inputcode-${Math.random().toString(36).substr(2, 9)}`), c = Z([]), i = Z([]), r = Z(-1), a = Z([]), u = P(() => Array.from({ length: t.length }, (k, Q) => Q)), g = P(() => ({
1944
1944
  [`utopia-inputcode--${t.size}`]: !0,
1945
1945
  [`utopia-inputcode--${t.state}`]: !0,
1946
1946
  "utopia-inputcode--disabled": t.disabled,
@@ -1948,29 +1948,29 @@ const Et = /* @__PURE__ */ U({
1948
1948
  "utopia-inputcode--with-message": !!t.message
1949
1949
  })), d = P(() => ({
1950
1950
  [`utopia-inputcode__message--${t.state}`]: t.state === "error" || t.state === "valid"
1951
- })), l = () => {
1951
+ })), v = () => {
1952
1952
  i.value = Array(t.length).fill(""), a.value = Array(t.length).fill("default"), t.modelValue && t.modelValue.split("").slice(0, t.length).forEach((Q, I) => {
1953
1953
  i.value[I] = Q;
1954
1954
  });
1955
- }, p = (D, Q) => {
1956
- i.value[D] = Q;
1955
+ }, p = (k, Q) => {
1956
+ i.value[k] = Q;
1957
1957
  const I = i.value.join("");
1958
- n("update:modelValue", I), n("change", I), Q && D < t.length - 1 && vA(() => {
1959
- b(D + 1);
1958
+ n("update:modelValue", I), n("change", I), Q && k < t.length - 1 && vA(() => {
1959
+ w(k + 1);
1960
1960
  }), I.length === t.length && n("complete", I);
1961
- }, M = (D, Q) => {
1961
+ }, O = (k, Q) => {
1962
1962
  if (Q.key === "Backspace") {
1963
- Q.preventDefault(), i.value[D] ? i.value[D] = "" : D > 0 && (i.value[D - 1] = "", b(D - 1));
1963
+ Q.preventDefault(), i.value[k] ? i.value[k] = "" : k > 0 && (i.value[k - 1] = "", w(k - 1));
1964
1964
  const I = i.value.join("");
1965
1965
  n("update:modelValue", I), n("change", I);
1966
- } else Q.key === "ArrowLeft" && D > 0 ? (Q.preventDefault(), b(D - 1)) : Q.key === "ArrowRight" && D < t.length - 1 && (Q.preventDefault(), b(D + 1));
1967
- }, x = (D) => {
1968
- r.value = D, n("focus", new FocusEvent("focus"));
1969
- }, w = (D) => {
1970
- r.value === D && (r.value = -1), n("blur", new FocusEvent("blur"));
1971
- }, k = (D) => {
1972
- D.preventDefault();
1973
- const Q = D.clipboardData?.getData("text") || "";
1966
+ } else Q.key === "ArrowLeft" && k > 0 ? (Q.preventDefault(), w(k - 1)) : Q.key === "ArrowRight" && k < t.length - 1 && (Q.preventDefault(), w(k + 1));
1967
+ }, x = (k) => {
1968
+ r.value = k, n("focus", new FocusEvent("focus"));
1969
+ }, b = (k) => {
1970
+ r.value === k && (r.value = -1), n("blur", new FocusEvent("blur"));
1971
+ }, D = (k) => {
1972
+ k.preventDefault();
1973
+ const Q = k.clipboardData?.getData("text") || "";
1974
1974
  let I;
1975
1975
  t.type === "number" ? I = Q.split("").filter((B) => /^\d$/.test(B)) : I = Q.split("").filter((B) => /^[A-Za-z0-9]$/.test(B));
1976
1976
  const j = I.slice(0, t.length);
@@ -1981,17 +1981,17 @@ const Et = /* @__PURE__ */ U({
1981
1981
  n("update:modelValue", V), n("change", V), V.length === t.length && n("complete", V);
1982
1982
  const Y = j.length < t.length ? j.length : t.length - 1;
1983
1983
  vA(() => {
1984
- b(Y);
1984
+ w(Y);
1985
1985
  });
1986
- }, b = (D) => {
1987
- if (c.value[D]) {
1988
- const Q = c.value[D]?.$el?.querySelector("input");
1986
+ }, w = (k) => {
1987
+ if (c.value[k]) {
1988
+ const Q = c.value[k]?.$el?.querySelector("input");
1989
1989
  Q && (Q.focus(), Q.select());
1990
1990
  }
1991
1991
  }, L = () => {
1992
1992
  i.value = Array(t.length).fill(""), n("update:modelValue", ""), n("change", "");
1993
- }, G = (D) => {
1994
- const Q = D.split("").slice(0, t.length);
1993
+ }, G = (k) => {
1994
+ const Q = k.split("").slice(0, t.length);
1995
1995
  Q.forEach((j, V) => {
1996
1996
  i.value[V] = j.toUpperCase();
1997
1997
  });
@@ -2000,19 +2000,19 @@ const Et = /* @__PURE__ */ U({
2000
2000
  const I = i.value.join("");
2001
2001
  n("update:modelValue", I), n("change", I);
2002
2002
  };
2003
- return iA(() => t.modelValue, (D) => {
2004
- D !== i.value.join("") && G(D);
2003
+ return iA(() => t.modelValue, (k) => {
2004
+ k !== i.value.join("") && G(k);
2005
2005
  }), iA(() => t.length, () => {
2006
- l();
2006
+ v();
2007
2007
  }), xA(() => {
2008
- l(), t.autoFocus && !t.disabled && vA(() => {
2009
- b(0);
2008
+ v(), t.autoFocus && !t.disabled && vA(() => {
2009
+ w(0);
2010
2010
  });
2011
2011
  }), s({
2012
- focus: () => b(0),
2012
+ focus: () => w(0),
2013
2013
  clear: L,
2014
2014
  setValue: G
2015
- }), (D, Q) => (f(), m("div", {
2015
+ }), (k, Q) => (f(), m("div", {
2016
2016
  class: C(["utopia-inputcode", g.value])
2017
2017
  }, [
2018
2018
  A.label ? (f(), m("label", {
@@ -2020,8 +2020,8 @@ const Et = /* @__PURE__ */ U({
2020
2020
  class: "utopia-inputcode__label",
2021
2021
  for: o.value
2022
2022
  }, T(A.label), 9, Zn)) : y("", !0),
2023
- v("div", Hn, [
2024
- v("div", Jn, [
2023
+ l("div", Hn, [
2024
+ l("div", Jn, [
2025
2025
  (f(!0), m(sA, null, aA(u.value, (I, j) => (f(), S(H(te), {
2026
2026
  key: `field-${j}`,
2027
2027
  ref_for: !0,
@@ -2036,10 +2036,10 @@ const Et = /* @__PURE__ */ U({
2036
2036
  maxlength: 1,
2037
2037
  "is-code": "",
2038
2038
  class: C(["utopia-inputcode__field", { "utopia-inputcode__field--active": r.value === j }]),
2039
- onKeydown: (V) => M(j, V),
2039
+ onKeydown: (V) => O(j, V),
2040
2040
  onFocus: (V) => x(j),
2041
- onBlur: (V) => w(j),
2042
- onPaste: k
2041
+ onBlur: (V) => b(j),
2042
+ onPaste: D
2043
2043
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "inputmode", "size", "state", "disabled", "class", "onKeydown", "onFocus", "onBlur"]))), 128))
2044
2044
  ]),
2045
2045
  A.message ? (f(), m("div", {
@@ -2062,7 +2062,7 @@ const Et = /* @__PURE__ */ U({
2062
2062
  ])
2063
2063
  ], 2));
2064
2064
  }
2065
- }), ja = /* @__PURE__ */ $(Cn, [["__scopeId", "data-v-dd73d1f2"]]);
2065
+ }), Da = /* @__PURE__ */ $(Cn, [["__scopeId", "data-v-dd73d1f2"]]);
2066
2066
  function Ce(A) {
2067
2067
  return typeof A == "function" ? A() : H(A);
2068
2068
  }
@@ -2103,10 +2103,10 @@ var ss = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
2103
2103
  var g = c.shadowRoot || // check for an undisclosed shadow
2104
2104
  typeof t.getShadowRoot == "function" && t.getShadowRoot(c), d = !IA(g, !1) && (!t.shadowRootFilter || t.shadowRootFilter(c));
2105
2105
  if (g && d) {
2106
- var l = ie(g === !0 ? c.children : g.children, !0, t);
2107
- t.flatten ? n.push.apply(n, l) : n.push({
2106
+ var v = ie(g === !0 ? c.children : g.children, !0, t);
2107
+ t.flatten ? n.push.apply(n, v) : n.push({
2108
2108
  scopeParent: c,
2109
- candidates: l
2109
+ candidates: v
2110
2110
  });
2111
2111
  } else
2112
2112
  o.unshift.apply(o, c.children);
@@ -2420,10 +2420,10 @@ var Qe = {
2420
2420
  delayInitialFocusTimer: void 0,
2421
2421
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
2422
2422
  recentNavEvent: void 0
2423
- }, i, r = function(z, O, E) {
2424
- return z && z[O] !== void 0 ? z[O] : o[E || O];
2425
- }, a = function(z, O) {
2426
- var E = typeof O?.composedPath == "function" ? O.composedPath() : void 0;
2423
+ }, i, r = function(z, M, E) {
2424
+ return z && z[M] !== void 0 ? z[M] : o[E || M];
2425
+ }, a = function(z, M) {
2426
+ var E = typeof M?.composedPath == "function" ? M.composedPath() : void 0;
2427
2427
  return c.containerGroups.findIndex(function(h) {
2428
2428
  var F = h.container, W = h.tabbableNodes;
2429
2429
  return F.contains(z) || E?.includes(F) || W.find(function(K) {
@@ -2431,7 +2431,7 @@ var Qe = {
2431
2431
  });
2432
2432
  });
2433
2433
  }, u = function(z) {
2434
- var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = O.hasFallback, h = E === void 0 ? !1 : E, F = O.params, W = F === void 0 ? [] : F, K = o[z];
2434
+ var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = M.hasFallback, h = E === void 0 ? !1 : E, F = M.params, W = F === void 0 ? [] : F, K = o[z];
2435
2435
  if (typeof K == "function" && (K = K.apply(void 0, no(W))), K === !0 && (K = void 0), !K) {
2436
2436
  if (K === void 0 || K === !1)
2437
2437
  return K;
@@ -2458,7 +2458,7 @@ var Qe = {
2458
2458
  if (a(t.activeElement) >= 0)
2459
2459
  z = t.activeElement;
2460
2460
  else {
2461
- var O = c.tabbableGroups[0], E = O && O.firstTabbableNode;
2461
+ var M = c.tabbableGroups[0], E = M && M.firstTabbableNode;
2462
2462
  z = E || u("fallbackFocus");
2463
2463
  }
2464
2464
  else z === null && (z = u("fallbackFocus"));
@@ -2467,16 +2467,16 @@ var Qe = {
2467
2467
  return z;
2468
2468
  }, d = function() {
2469
2469
  if (c.containerGroups = c.containers.map(function(z) {
2470
- var O = qn(z, o.tabbableOptions), E = _n(z, o.tabbableOptions), h = O.length > 0 ? O[0] : void 0, F = O.length > 0 ? O[O.length - 1] : void 0, W = E.find(function(tA) {
2470
+ var M = qn(z, o.tabbableOptions), E = _n(z, o.tabbableOptions), h = M.length > 0 ? M[0] : void 0, F = M.length > 0 ? M[M.length - 1] : void 0, W = E.find(function(tA) {
2471
2471
  return ZA(tA);
2472
2472
  }), K = E.slice().reverse().find(function(tA) {
2473
2473
  return ZA(tA);
2474
- }), eA = !!O.find(function(tA) {
2474
+ }), eA = !!M.find(function(tA) {
2475
2475
  return BA(tA) > 0;
2476
2476
  });
2477
2477
  return {
2478
2478
  container: z,
2479
- tabbableNodes: O,
2479
+ tabbableNodes: M,
2480
2480
  focusableNodes: E,
2481
2481
  /** True if at least one node with positive `tabindex` was found in this container. */
2482
2482
  posTabIndexesFound: eA,
@@ -2504,12 +2504,12 @@ var Qe = {
2504
2504
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
2505
2505
  */
2506
2506
  nextTabbableNode: function(lA) {
2507
- var fA = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, cA = O.indexOf(lA);
2507
+ var fA = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, cA = M.indexOf(lA);
2508
2508
  return cA < 0 ? fA ? E.slice(E.indexOf(lA) + 1).find(function(X) {
2509
2509
  return ZA(X);
2510
2510
  }) : E.slice(0, E.indexOf(lA)).reverse().find(function(X) {
2511
2511
  return ZA(X);
2512
- }) : O[cA + (fA ? 1 : -1)];
2512
+ }) : M[cA + (fA ? 1 : -1)];
2513
2513
  }
2514
2514
  };
2515
2515
  }), c.tabbableGroups = c.containerGroups.filter(function(z) {
@@ -2520,12 +2520,12 @@ var Qe = {
2520
2520
  return z.posTabIndexesFound;
2521
2521
  }) && c.containerGroups.length > 1)
2522
2522
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
2523
- }, l = function(z) {
2524
- var O = z.activeElement;
2525
- if (O)
2526
- return O.shadowRoot && O.shadowRoot.activeElement !== null ? l(O.shadowRoot) : O;
2523
+ }, v = function(z) {
2524
+ var M = z.activeElement;
2525
+ if (M)
2526
+ return M.shadowRoot && M.shadowRoot.activeElement !== null ? v(M.shadowRoot) : M;
2527
2527
  }, p = function(z) {
2528
- if (z !== !1 && z !== l(document)) {
2528
+ if (z !== !1 && z !== v(document)) {
2529
2529
  if (!z || !z.focus) {
2530
2530
  p(g());
2531
2531
  return;
@@ -2534,44 +2534,44 @@ var Qe = {
2534
2534
  preventScroll: !!o.preventScroll
2535
2535
  }), c.mostRecentlyFocusedNode = z, ro(z) && z.select();
2536
2536
  }
2537
- }, M = function(z) {
2538
- var O = u("setReturnFocus", {
2537
+ }, O = function(z) {
2538
+ var M = u("setReturnFocus", {
2539
2539
  params: [z]
2540
2540
  });
2541
- return O || (O === !1 ? !1 : z);
2541
+ return M || (M === !1 ? !1 : z);
2542
2542
  }, x = function(z) {
2543
- var O = z.target, E = z.event, h = z.isBackward, F = h === void 0 ? !1 : h;
2544
- O = O || UA(E), d();
2543
+ var M = z.target, E = z.event, h = z.isBackward, F = h === void 0 ? !1 : h;
2544
+ M = M || UA(E), d();
2545
2545
  var W = null;
2546
2546
  if (c.tabbableGroups.length > 0) {
2547
- var K = a(O, E), eA = K >= 0 ? c.containerGroups[K] : void 0;
2547
+ var K = a(M, E), eA = K >= 0 ? c.containerGroups[K] : void 0;
2548
2548
  if (K < 0)
2549
2549
  F ? W = c.tabbableGroups[c.tabbableGroups.length - 1].lastTabbableNode : W = c.tabbableGroups[0].firstTabbableNode;
2550
2550
  else if (F) {
2551
2551
  var tA = c.tabbableGroups.findIndex(function(_) {
2552
2552
  var nA = _.firstTabbableNode;
2553
- return O === nA;
2553
+ return M === nA;
2554
2554
  });
2555
- if (tA < 0 && (eA.container === O || pe(O, o.tabbableOptions) && !ZA(O, o.tabbableOptions) && !eA.nextTabbableNode(O, !1)) && (tA = K), tA >= 0) {
2555
+ if (tA < 0 && (eA.container === M || pe(M, o.tabbableOptions) && !ZA(M, o.tabbableOptions) && !eA.nextTabbableNode(M, !1)) && (tA = K), tA >= 0) {
2556
2556
  var lA = tA === 0 ? c.tabbableGroups.length - 1 : tA - 1, fA = c.tabbableGroups[lA];
2557
- W = BA(O) >= 0 ? fA.lastTabbableNode : fA.lastDomTabbableNode;
2558
- } else FA(E) || (W = eA.nextTabbableNode(O, !1));
2557
+ W = BA(M) >= 0 ? fA.lastTabbableNode : fA.lastDomTabbableNode;
2558
+ } else FA(E) || (W = eA.nextTabbableNode(M, !1));
2559
2559
  } else {
2560
2560
  var cA = c.tabbableGroups.findIndex(function(_) {
2561
2561
  var nA = _.lastTabbableNode;
2562
- return O === nA;
2562
+ return M === nA;
2563
2563
  });
2564
- if (cA < 0 && (eA.container === O || pe(O, o.tabbableOptions) && !ZA(O, o.tabbableOptions) && !eA.nextTabbableNode(O)) && (cA = K), cA >= 0) {
2564
+ if (cA < 0 && (eA.container === M || pe(M, o.tabbableOptions) && !ZA(M, o.tabbableOptions) && !eA.nextTabbableNode(M)) && (cA = K), cA >= 0) {
2565
2565
  var X = cA === c.tabbableGroups.length - 1 ? 0 : cA + 1, q = c.tabbableGroups[X];
2566
- W = BA(O) >= 0 ? q.firstTabbableNode : q.firstDomTabbableNode;
2567
- } else FA(E) || (W = eA.nextTabbableNode(O));
2566
+ W = BA(M) >= 0 ? q.firstTabbableNode : q.firstDomTabbableNode;
2567
+ } else FA(E) || (W = eA.nextTabbableNode(M));
2568
2568
  }
2569
2569
  } else
2570
2570
  W = u("fallbackFocus");
2571
2571
  return W;
2572
- }, w = function(z) {
2573
- var O = UA(z);
2574
- if (!(a(O, z) >= 0)) {
2572
+ }, b = function(z) {
2573
+ var M = UA(z);
2574
+ if (!(a(M, z) >= 0)) {
2575
2575
  if (hA(o.clickOutsideDeactivates, z)) {
2576
2576
  i.deactivate({
2577
2577
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -2586,10 +2586,10 @@ var Qe = {
2586
2586
  }
2587
2587
  hA(o.allowOutsideClick, z) || z.preventDefault();
2588
2588
  }
2589
- }, k = function(z) {
2590
- var O = UA(z), E = a(O, z) >= 0;
2591
- if (E || O instanceof Document)
2592
- E && (c.mostRecentlyFocusedNode = O);
2589
+ }, D = function(z) {
2590
+ var M = UA(z), E = a(M, z) >= 0;
2591
+ if (E || M instanceof Document)
2592
+ E && (c.mostRecentlyFocusedNode = M);
2593
2593
  else {
2594
2594
  z.stopImmediatePropagation();
2595
2595
  var h, F = !0;
@@ -2618,32 +2618,32 @@ var Qe = {
2618
2618
  })), p(h || c.mostRecentlyFocusedNode || g());
2619
2619
  }
2620
2620
  c.recentNavEvent = void 0;
2621
- }, b = function(z) {
2622
- var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2621
+ }, w = function(z) {
2622
+ var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2623
2623
  c.recentNavEvent = z;
2624
2624
  var E = x({
2625
2625
  event: z,
2626
- isBackward: O
2626
+ isBackward: M
2627
2627
  });
2628
2628
  E && (FA(z) && z.preventDefault(), p(E));
2629
2629
  }, L = function(z) {
2630
- (o.isKeyForward(z) || o.isKeyBackward(z)) && b(z, o.isKeyBackward(z));
2630
+ (o.isKeyForward(z) || o.isKeyBackward(z)) && w(z, o.isKeyBackward(z));
2631
2631
  }, G = function(z) {
2632
2632
  ao(z) && hA(o.escapeDeactivates, z) !== !1 && (z.preventDefault(), i.deactivate());
2633
- }, D = function(z) {
2634
- var O = UA(z);
2635
- a(O, z) >= 0 || hA(o.clickOutsideDeactivates, z) || hA(o.allowOutsideClick, z) || (z.preventDefault(), z.stopImmediatePropagation());
2633
+ }, k = function(z) {
2634
+ var M = UA(z);
2635
+ a(M, z) >= 0 || hA(o.clickOutsideDeactivates, z) || hA(o.allowOutsideClick, z) || (z.preventDefault(), z.stopImmediatePropagation());
2636
2636
  }, Q = function() {
2637
2637
  if (c.active)
2638
2638
  return Qe.activateTrap(n, i), c.delayInitialFocusTimer = o.delayInitialFocus ? he(function() {
2639
2639
  p(g());
2640
- }) : p(g()), t.addEventListener("focusin", k, !0), t.addEventListener("mousedown", w, {
2640
+ }) : p(g()), t.addEventListener("focusin", D, !0), t.addEventListener("mousedown", b, {
2641
2641
  capture: !0,
2642
2642
  passive: !1
2643
- }), t.addEventListener("touchstart", w, {
2643
+ }), t.addEventListener("touchstart", b, {
2644
2644
  capture: !0,
2645
2645
  passive: !1
2646
- }), t.addEventListener("click", D, {
2646
+ }), t.addEventListener("click", k, {
2647
2647
  capture: !0,
2648
2648
  passive: !1
2649
2649
  }), t.addEventListener("keydown", L, {
@@ -2652,15 +2652,15 @@ var Qe = {
2652
2652
  }), t.addEventListener("keydown", G), i;
2653
2653
  }, I = function() {
2654
2654
  if (c.active)
2655
- return t.removeEventListener("focusin", k, !0), t.removeEventListener("mousedown", w, !0), t.removeEventListener("touchstart", w, !0), t.removeEventListener("click", D, !0), t.removeEventListener("keydown", L, !0), t.removeEventListener("keydown", G), i;
2655
+ return t.removeEventListener("focusin", D, !0), t.removeEventListener("mousedown", b, !0), t.removeEventListener("touchstart", b, !0), t.removeEventListener("click", k, !0), t.removeEventListener("keydown", L, !0), t.removeEventListener("keydown", G), i;
2656
2656
  }, j = function(z) {
2657
- var O = z.some(function(E) {
2657
+ var M = z.some(function(E) {
2658
2658
  var h = Array.from(E.removedNodes);
2659
2659
  return h.some(function(F) {
2660
2660
  return F === c.mostRecentlyFocusedNode;
2661
2661
  });
2662
2662
  });
2663
- O && p(g());
2663
+ M && p(g());
2664
2664
  }, V = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(j) : void 0, Y = function() {
2665
2665
  V && (V.disconnect(), c.active && !c.paused && c.containers.map(function(z) {
2666
2666
  V.observe(z, {
@@ -2679,8 +2679,8 @@ var Qe = {
2679
2679
  activate: function(z) {
2680
2680
  if (c.active)
2681
2681
  return this;
2682
- var O = r(z, "onActivate"), E = r(z, "onPostActivate"), h = r(z, "checkCanFocusTrap");
2683
- h || d(), c.active = !0, c.paused = !1, c.nodeFocusedBeforeActivation = l(t), O?.();
2682
+ var M = r(z, "onActivate"), E = r(z, "onPostActivate"), h = r(z, "checkCanFocusTrap");
2683
+ h || d(), c.active = !0, c.paused = !1, c.nodeFocusedBeforeActivation = v(t), M?.();
2684
2684
  var F = function() {
2685
2685
  h && d(), Q(), Y(), E?.();
2686
2686
  };
@@ -2689,20 +2689,20 @@ var Qe = {
2689
2689
  deactivate: function(z) {
2690
2690
  if (!c.active)
2691
2691
  return this;
2692
- var O = Xe({
2692
+ var M = Xe({
2693
2693
  onDeactivate: o.onDeactivate,
2694
2694
  onPostDeactivate: o.onPostDeactivate,
2695
2695
  checkCanReturnFocus: o.checkCanReturnFocus
2696
2696
  }, z);
2697
2697
  clearTimeout(c.delayInitialFocusTimer), c.delayInitialFocusTimer = void 0, I(), c.active = !1, c.paused = !1, Y(), Qe.deactivateTrap(n, i);
2698
- var E = r(O, "onDeactivate"), h = r(O, "onPostDeactivate"), F = r(O, "checkCanReturnFocus"), W = r(O, "returnFocus", "returnFocusOnDeactivate");
2698
+ var E = r(M, "onDeactivate"), h = r(M, "onPostDeactivate"), F = r(M, "checkCanReturnFocus"), W = r(M, "returnFocus", "returnFocusOnDeactivate");
2699
2699
  E?.();
2700
2700
  var K = function() {
2701
2701
  he(function() {
2702
- W && p(M(c.nodeFocusedBeforeActivation)), h?.();
2702
+ W && p(O(c.nodeFocusedBeforeActivation)), h?.();
2703
2703
  });
2704
2704
  };
2705
- return W && F ? (F(M(c.nodeFocusedBeforeActivation)).then(K, K), this) : (K(), this);
2705
+ return W && F ? (F(O(c.nodeFocusedBeforeActivation)).then(K, K), this) : (K(), this);
2706
2706
  },
2707
2707
  pause: function(z) {
2708
2708
  return c.active ? (c.manuallyPaused = !0, this._setPausedState(!0, z)) : this;
@@ -2711,8 +2711,8 @@ var Qe = {
2711
2711
  return c.active ? (c.manuallyPaused = !1, n[n.length - 1] !== this ? this : this._setPausedState(!1, z)) : this;
2712
2712
  },
2713
2713
  updateContainerElements: function(z) {
2714
- var O = [].concat(z).filter(Boolean);
2715
- return c.containers = O.map(function(E) {
2714
+ var M = [].concat(z).filter(Boolean);
2715
+ return c.containers = M.map(function(E) {
2716
2716
  return typeof E == "string" ? t.querySelector(E) : E;
2717
2717
  }), c.active && d(), Y(), this;
2718
2718
  }
@@ -2723,14 +2723,14 @@ var Qe = {
2723
2723
  }
2724
2724
  },
2725
2725
  _setPausedState: {
2726
- value: function(z, O) {
2726
+ value: function(z, M) {
2727
2727
  if (c.paused === z)
2728
2728
  return this;
2729
2729
  if (c.paused = z, z) {
2730
- var E = r(O, "onPause"), h = r(O, "onPostPause");
2730
+ var E = r(M, "onPause"), h = r(M, "onPostPause");
2731
2731
  E?.(), I(), Y(), h?.();
2732
2732
  } else {
2733
- var F = r(O, "onUnpause"), W = r(O, "onPostUnpause");
2733
+ var F = r(M, "onUnpause"), W = r(M, "onPostUnpause");
2734
2734
  F?.(), d(), Q(), Y(), W?.();
2735
2735
  }
2736
2736
  return this;
@@ -2746,8 +2746,8 @@ function go(A, s = {}) {
2746
2746
  e && (e.unpause(), c.value = !1);
2747
2747
  }, g = P(() => {
2748
2748
  const d = Ce(A);
2749
- return (Array.isArray(d) ? d : [d]).map((l) => {
2750
- const p = Ce(l);
2749
+ return (Array.isArray(d) ? d : [d]).map((v) => {
2750
+ const p = Ce(v);
2751
2751
  return typeof p == "string" ? p : Ls(p);
2752
2752
  }).filter(Ln);
2753
2753
  });
@@ -2815,34 +2815,34 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2815
2815
  md: "medium",
2816
2816
  lg: "large",
2817
2817
  full: "large"
2818
- })[e.size]), l = Z(null), p = Z(null), M = typeof document < "u" ? document.body : null, x = $e(M), { activate: w, deactivate: k } = go(l, {
2818
+ })[e.size]), v = Z(null), p = Z(null), O = typeof document < "u" ? document.body : null, x = $e(O), { activate: b, deactivate: D } = go(v, {
2819
2819
  immediate: !1,
2820
2820
  escapeDeactivates: !1,
2821
2821
  returnFocusOnDeactivate: !0,
2822
2822
  allowOutsideClick: !0,
2823
2823
  initialFocus: () => {
2824
2824
  if (p.value) {
2825
- const D = p.value.$el || p.value;
2826
- if (D && D instanceof HTMLElement)
2827
- return D;
2825
+ const k = p.value.$el || p.value;
2826
+ if (k && k instanceof HTMLElement)
2827
+ return k;
2828
2828
  }
2829
- const G = l.value;
2829
+ const G = v.value;
2830
2830
  return G ? G.querySelector("[data-utopia-modal-close]") ?? G.querySelector(".utopia-modal__close button") ?? G.querySelector("button") ?? G.querySelector("[autofocus]") ?? G : null;
2831
2831
  },
2832
- fallbackFocus: () => l.value
2832
+ fallbackFocus: () => v.value
2833
2833
  });
2834
2834
  iA(
2835
2835
  () => r.value,
2836
- async (G, D) => {
2837
- if (G === D) return;
2836
+ async (G, k) => {
2837
+ if (G === k) return;
2838
2838
  if (G) {
2839
2839
  if (e.disableScrollLock || (x.value = !0), await vA(), e.focusTrap) {
2840
- w(), await vA();
2840
+ b(), await vA();
2841
2841
  let I = null;
2842
- p.value && (I = p.value.$el || p.value), I || (I = l.value?.querySelector("[data-utopia-modal-close]") || l.value?.querySelector(".utopia-modal__close button") || l.value?.querySelector("button")), I && I.focus();
2842
+ p.value && (I = p.value.$el || p.value), I || (I = v.value?.querySelector("[data-utopia-modal-close]") || v.value?.querySelector(".utopia-modal__close button") || v.value?.querySelector("button")), I && I.focus();
2843
2843
  }
2844
2844
  } else
2845
- e.disableScrollLock || (x.value = !1), k();
2845
+ e.disableScrollLock || (x.value = !1), D();
2846
2846
  if (g.value) {
2847
2847
  g.value = !1;
2848
2848
  return;
@@ -2852,19 +2852,19 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2852
2852
  },
2853
2853
  { immediate: !0 }
2854
2854
  );
2855
- function b(G) {
2856
- r.value && (g.value = !0, c.value ? t("update:open", !1) : i.value = !1, t("openChange", !1, G), e.onOpenChange?.(!1, G), e.disableScrollLock || (x.value = !1), k());
2855
+ function w(G) {
2856
+ r.value && (g.value = !0, c.value ? t("update:open", !1) : i.value = !1, t("openChange", !1, G), e.onOpenChange?.(!1, G), e.disableScrollLock || (x.value = !1), D());
2857
2857
  }
2858
2858
  Qs(window, "keydown", (G) => {
2859
- r.value && G.key === "Escape" && b("escape");
2859
+ r.value && G.key === "Escape" && w("escape");
2860
2860
  });
2861
2861
  function L() {
2862
- e.closeOnOverlayClick && b("overlay");
2862
+ e.closeOnOverlayClick && w("overlay");
2863
2863
  }
2864
2864
  return OA(() => {
2865
- e.disableScrollLock || (x.value = !1), k();
2866
- }), (G, D) => (f(), S(EA, { to: "body" }, [
2867
- v("div", {
2865
+ e.disableScrollLock || (x.value = !1), D();
2866
+ }), (G, k) => (f(), S(EA, { to: "body" }, [
2867
+ l("div", {
2868
2868
  class: C(["utopia-modal", [
2869
2869
  `utopia-modal--${A.position}`,
2870
2870
  { "is-open": r.value, "is-mobile": H(n) }
@@ -2887,14 +2887,14 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2887
2887
  r.value ? (f(), m("div", {
2888
2888
  key: 0,
2889
2889
  ref_key: "panelRef",
2890
- ref: l,
2890
+ ref: v,
2891
2891
  class: C(["utopia-modal__panel", [`utopia-modal__panel--${A.size}`]]),
2892
2892
  role: "dialog",
2893
2893
  "aria-modal": "true",
2894
2894
  "aria-labelledby": u.value || void 0,
2895
2895
  tabindex: "-1"
2896
2896
  }, [
2897
- v("header", po, [
2897
+ l("header", po, [
2898
2898
  AA(G.$slots, "header", {}, () => [
2899
2899
  A.title ? (f(), m("h3", {
2900
2900
  key: 0,
@@ -2909,12 +2909,12 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2909
2909
  class: "utopia-modal__close",
2910
2910
  variant: "tertiary",
2911
2911
  size: "sm",
2912
- onClick: D[0] || (D[0] = (Q) => b("close-button")),
2912
+ onClick: k[0] || (k[0] = (Q) => w("close-button")),
2913
2913
  "aria-label": "Fermer la modal",
2914
2914
  "data-utopia-modal-close": ""
2915
2915
  }, {
2916
2916
  default: R(() => [
2917
- D[1] || (D[1] = v("span", { class: "utopia-modal__close-label" }, "Fermer", -1)),
2917
+ k[1] || (k[1] = l("span", { class: "utopia-modal__close-label" }, "Fermer", -1)),
2918
2918
  J(N, {
2919
2919
  name: "X",
2920
2920
  size: d.value,
@@ -2926,11 +2926,11 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2926
2926
  _: 1
2927
2927
  }, 512)) : y("", !0)
2928
2928
  ]),
2929
- v("div", Po, [
2929
+ l("div", Po, [
2930
2930
  AA(G.$slots, "default", {}, void 0, !0)
2931
2931
  ]),
2932
2932
  G.$slots.footer ? (f(), m("footer", Mo, [
2933
- v("div", Oo, [
2933
+ l("div", Oo, [
2934
2934
  AA(G.$slots, "footer", {}, void 0, !0)
2935
2935
  ])
2936
2936
  ])) : y("", !0)
@@ -2941,7 +2941,7 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2941
2941
  ], 10, mo)
2942
2942
  ]));
2943
2943
  }
2944
- }), Ya = /* @__PURE__ */ $(yo, [["__scopeId", "data-v-6f87305d"]]), bo = { class: "utopia-pricetag" }, wo = { key: 0 }, Bo = { key: 1 }, jo = { class: "utopia-pricetag--price-container" }, Yo = {
2944
+ }), ka = /* @__PURE__ */ $(yo, [["__scopeId", "data-v-6f87305d"]]), bo = { class: "utopia-pricetag" }, wo = { key: 0 }, Bo = { key: 1 }, jo = { class: "utopia-pricetag--price-container" }, Yo = {
2945
2945
  key: 0,
2946
2946
  class: "utopia-pricetag--old-price"
2947
2947
  }, Do = /* @__PURE__ */ U({
@@ -2972,12 +2972,12 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
2972
2972
  return (o, c) => (f(), m("div", bo, [
2973
2973
  A.variantCount ? (f(), m("div", wo, T(A.variantCount) + " " + T(n.value.availableOffers), 1)) : y("", !0),
2974
2974
  A.variantCount ? (f(), m("div", Bo, T(n.value.from), 1)) : y("", !0),
2975
- v("div", jo, [
2976
- v("div", {
2975
+ l("div", jo, [
2976
+ l("div", {
2977
2977
  class: C(["utopia-pricetag--price", e.value])
2978
2978
  }, T(A.price) + " " + T(A.currency), 3),
2979
2979
  A.oldPrice ? (f(), m("div", Yo, [
2980
- v("s", null, T(A.oldPrice) + " " + T(A.currency), 1)
2980
+ l("s", null, T(A.oldPrice) + " " + T(A.currency), 1)
2981
2981
  ])) : y("", !0)
2982
2982
  ])
2983
2983
  ]));
@@ -3018,8 +3018,8 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3018
3018
  name: "Search",
3019
3019
  class: "search-icon"
3020
3020
  }),
3021
- _e(v("input", {
3022
- "onUpdate:modelValue": d[0] || (d[0] = (l) => n.value = l),
3021
+ _e(l("input", {
3022
+ "onUpdate:modelValue": d[0] || (d[0] = (v) => n.value = v),
3023
3023
  type: "text",
3024
3024
  placeholder: A.placeholder,
3025
3025
  class: "search-input",
@@ -3039,7 +3039,7 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3039
3039
  ])) : y("", !0)
3040
3040
  ], 2));
3041
3041
  }
3042
- }), Da = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-9383cc75"]]), Zo = { class: "slider-viewport" }, Ho = {
3042
+ }), Ta = /* @__PURE__ */ $(Go, [["__scopeId", "data-v-9383cc75"]]), Zo = { class: "slider-viewport" }, Ho = {
3043
3043
  key: 0,
3044
3044
  class: "slide-image"
3045
3045
  }, Jo = ["src", "alt"], Co = ["innerHTML"], Lo = ["onClick", "aria-label"], Eo = /* @__PURE__ */ U({
@@ -3062,8 +3062,8 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3062
3062
  }));
3063
3063
  const e = A, t = s, n = Z(0), o = Z(!1);
3064
3064
  let c = null, i = null;
3065
- const r = Z(!1), a = Z(0), u = Z(0), g = Z(0), d = Z(0), l = Z(0), p = P(() => {
3066
- const j = -n.value * 100, V = r.value ? l.value : 0;
3065
+ const r = Z(!1), a = Z(0), u = Z(0), g = Z(0), d = Z(0), v = Z(0), p = P(() => {
3066
+ const j = -n.value * 100, V = r.value ? v.value : 0;
3067
3067
  return e.direction === "vertical" ? {
3068
3068
  transform: `translateY(calc(${j}% + ${V}px))`,
3069
3069
  transition: r.value ? "none" : `transform ${e.transitionDuration}ms ease-in-out`
@@ -3071,25 +3071,25 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3071
3071
  transform: `translateX(calc(${j}% + ${V}px))`,
3072
3072
  transition: r.value ? "none" : `transform ${e.transitionDuration}ms ease-in-out`
3073
3073
  };
3074
- }), M = () => {
3074
+ }), O = () => {
3075
3075
  n.value = (n.value + 1) % e.slides.length;
3076
3076
  }, x = () => {
3077
3077
  n.value = n.value === 0 ? e.slides.length - 1 : n.value - 1;
3078
- }, w = (j) => {
3078
+ }, b = (j) => {
3079
3079
  n.value = j;
3080
- }, k = () => {
3080
+ }, D = () => {
3081
3081
  i && clearTimeout(i), i = window.setTimeout(() => {
3082
3082
  o.value = !0;
3083
3083
  }, 200), e.autoplay && G();
3084
- }, b = () => {
3084
+ }, w = () => {
3085
3085
  i && (clearTimeout(i), i = null), o.value = !1, e.autoplay && L();
3086
3086
  }, L = () => {
3087
- e.autoplay && e.slides.length > 1 && (c = window.setInterval(M, e.autoplayDelay));
3087
+ e.autoplay && e.slides.length > 1 && (c = window.setInterval(O, e.autoplayDelay));
3088
3088
  }, G = () => {
3089
3089
  c && (clearInterval(c), c = null);
3090
- }, D = (j) => {
3090
+ }, k = (j) => {
3091
3091
  if (!(e.slides.length <= 1)) {
3092
- if (r.value = !0, l.value = 0, j.type === "touchstart") {
3092
+ if (r.value = !0, v.value = 0, j.type === "touchstart") {
3093
3093
  const V = j.touches[0];
3094
3094
  a.value = V.clientX, u.value = V.clientY;
3095
3095
  } else
@@ -3106,13 +3106,13 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3106
3106
  } else
3107
3107
  j.preventDefault(), V = j.clientX, Y = j.clientY;
3108
3108
  g.value = V, d.value = Y;
3109
- const B = e.direction === "vertical" ? Y - u.value : V - a.value, z = n.value === 0, O = n.value === e.slides.length - 1;
3110
- z && B > 0 || O && B < 0 ? l.value = B * 0.3 : l.value = B;
3109
+ const B = e.direction === "vertical" ? Y - u.value : V - a.value, z = n.value === 0, M = n.value === e.slides.length - 1;
3110
+ z && B > 0 || M && B < 0 ? v.value = B * 0.3 : v.value = B;
3111
3111
  }, I = (j) => {
3112
3112
  if (!r.value) return;
3113
3113
  r.value = !1, (j.type === "mouseup" || j.type === "mouseleave") && (document.removeEventListener("mousemove", Q), document.removeEventListener("mouseup", I));
3114
- const V = 50, Y = e.direction === "vertical" ? d.value - u.value : g.value - a.value, B = document.querySelector(".slide"), z = B ? e.direction === "vertical" ? B.clientHeight : B.clientWidth : 300, O = Math.abs(Y) / z * 100;
3115
- (Math.abs(Y) > V || O > 20) && (Y > 0 && n.value > 0 ? x() : Y < 0 && n.value < e.slides.length - 1 && M()), l.value = 0, e.autoplay && L();
3114
+ const V = 50, Y = e.direction === "vertical" ? d.value - u.value : g.value - a.value, B = document.querySelector(".slide"), z = B ? e.direction === "vertical" ? B.clientHeight : B.clientWidth : 300, M = Math.abs(Y) / z * 100;
3115
+ (Math.abs(Y) > V || M > 20) && (Y > 0 && n.value > 0 ? x() : Y < 0 && n.value < e.slides.length - 1 && O()), v.value = 0, e.autoplay && L();
3116
3116
  };
3117
3117
  return iA(n, (j) => {
3118
3118
  t("slide-change", j);
@@ -3128,10 +3128,10 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3128
3128
  "utopia-slider--dragging": r.value
3129
3129
  }
3130
3130
  ]]),
3131
- onMouseenter: k,
3132
- onMouseleave: b
3131
+ onMouseenter: D,
3132
+ onMouseleave: w
3133
3133
  }, [
3134
- v("div", Zo, [
3134
+ l("div", Zo, [
3135
3135
  A.slides.length > 1 ? (f(), S(mA, {
3136
3136
  key: 0,
3137
3137
  class: C(["slider-nav slider-nav--prev", { "slider-nav--visible": o.value || A.alwaysShowControls }]),
@@ -3153,7 +3153,7 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3153
3153
  A.slides.length > 1 ? (f(), S(mA, {
3154
3154
  key: 1,
3155
3155
  class: C(["slider-nav slider-nav--next", { "slider-nav--visible": o.value || A.alwaysShowControls }]),
3156
- onClick: M,
3156
+ onClick: O,
3157
3157
  "aria-label": "Next slide",
3158
3158
  variant: "secondary",
3159
3159
  size: "sm"
@@ -3168,14 +3168,14 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3168
3168
  ]),
3169
3169
  _: 3
3170
3170
  }, 8, ["class"])) : y("", !0),
3171
- v("div", {
3171
+ l("div", {
3172
3172
  class: "slider-track",
3173
3173
  style: rA(p.value),
3174
- onTouchstart: D,
3174
+ onTouchstart: k,
3175
3175
  onTouchmove: Q,
3176
3176
  onTouchend: I,
3177
3177
  onTouchcancel: I,
3178
- onMousedown: D
3178
+ onMousedown: k
3179
3179
  }, [
3180
3180
  (f(!0), m(sA, null, aA(A.slides, (Y, B) => (f(), m("div", {
3181
3181
  key: B,
@@ -3186,7 +3186,7 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3186
3186
  index: B
3187
3187
  }, () => [
3188
3188
  Y.image ? (f(), m("div", Ho, [
3189
- v("img", {
3189
+ l("img", {
3190
3190
  src: Y.image,
3191
3191
  alt: Y.alt || `Slide ${B + 1}`
3192
3192
  }, null, 8, Jo)
@@ -3206,7 +3206,7 @@ const mo = ["aria-hidden"], zo = ["aria-labelledby"], po = { class: "utopia-moda
3206
3206
  (f(!0), m(sA, null, aA(A.slides, (Y, B) => (f(), m("button", {
3207
3207
  key: B,
3208
3208
  class: C(["dot", { "dot--active": B === n.value }]),
3209
- onClick: (z) => w(B),
3209
+ onClick: (z) => b(B),
3210
3210
  "aria-label": `Go to slide ${B + 1}`
3211
3211
  }, null, 10, Lo))), 128))
3212
3212
  ], 2)) : y("", !0)
@@ -3325,47 +3325,47 @@ function Ie(A, s, e) {
3325
3325
  floating: n
3326
3326
  } = A;
3327
3327
  const o = bA(s), c = Ye(s), i = je(c), r = TA(s), a = o === "y", u = t.x + t.width / 2 - n.width / 2, g = t.y + t.height / 2 - n.height / 2, d = t[i] / 2 - n[i] / 2;
3328
- let l;
3328
+ let v;
3329
3329
  switch (r) {
3330
3330
  case "top":
3331
- l = {
3331
+ v = {
3332
3332
  x: u,
3333
3333
  y: t.y - n.height
3334
3334
  };
3335
3335
  break;
3336
3336
  case "bottom":
3337
- l = {
3337
+ v = {
3338
3338
  x: u,
3339
3339
  y: t.y + t.height
3340
3340
  };
3341
3341
  break;
3342
3342
  case "right":
3343
- l = {
3343
+ v = {
3344
3344
  x: t.x + t.width,
3345
3345
  y: g
3346
3346
  };
3347
3347
  break;
3348
3348
  case "left":
3349
- l = {
3349
+ v = {
3350
3350
  x: t.x - n.width,
3351
3351
  y: g
3352
3352
  };
3353
3353
  break;
3354
3354
  default:
3355
- l = {
3355
+ v = {
3356
3356
  x: t.x,
3357
3357
  y: t.y
3358
3358
  };
3359
3359
  }
3360
3360
  switch (WA(s)) {
3361
3361
  case "start":
3362
- l[c] -= d * (e && a ? -1 : 1);
3362
+ v[c] -= d * (e && a ? -1 : 1);
3363
3363
  break;
3364
3364
  case "end":
3365
- l[c] += d * (e && a ? -1 : 1);
3365
+ v[c] += d * (e && a ? -1 : 1);
3366
3366
  break;
3367
3367
  }
3368
- return l;
3368
+ return v;
3369
3369
  }
3370
3370
  const Uo = async (A, s, e) => {
3371
3371
  const {
@@ -3381,23 +3381,23 @@ const Uo = async (A, s, e) => {
3381
3381
  }), {
3382
3382
  x: u,
3383
3383
  y: g
3384
- } = Ie(a, t, r), d = t, l = {}, p = 0;
3385
- for (let M = 0; M < i.length; M++) {
3384
+ } = Ie(a, t, r), d = t, v = {}, p = 0;
3385
+ for (let O = 0; O < i.length; O++) {
3386
3386
  const {
3387
3387
  name: x,
3388
- fn: w
3389
- } = i[M], {
3390
- x: k,
3391
- y: b,
3388
+ fn: b
3389
+ } = i[O], {
3390
+ x: D,
3391
+ y: w,
3392
3392
  data: L,
3393
3393
  reset: G
3394
- } = await w({
3394
+ } = await b({
3395
3395
  x: u,
3396
3396
  y: g,
3397
3397
  initialPlacement: t,
3398
3398
  placement: d,
3399
3399
  strategy: n,
3400
- middlewareData: l,
3400
+ middlewareData: v,
3401
3401
  rects: a,
3402
3402
  platform: c,
3403
3403
  elements: {
@@ -3405,10 +3405,10 @@ const Uo = async (A, s, e) => {
3405
3405
  floating: s
3406
3406
  }
3407
3407
  });
3408
- u = k ?? u, g = b ?? g, l = {
3409
- ...l,
3408
+ u = D ?? u, g = w ?? g, v = {
3409
+ ...v,
3410
3410
  [x]: {
3411
- ...l[x],
3411
+ ...v[x],
3412
3412
  ...L
3413
3413
  }
3414
3414
  }, G && p <= 50 && (p++, typeof G == "object" && (G.placement && (d = G.placement), G.rects && (a = G.rects === !0 ? await c.getElementRects({
@@ -3418,14 +3418,14 @@ const Uo = async (A, s, e) => {
3418
3418
  }) : G.rects), {
3419
3419
  x: u,
3420
3420
  y: g
3421
- } = Ie(a, d, r)), M = -1);
3421
+ } = Ie(a, d, r)), O = -1);
3422
3422
  }
3423
3423
  return {
3424
3424
  x: u,
3425
3425
  y: g,
3426
3426
  placement: d,
3427
3427
  strategy: n,
3428
- middlewareData: l
3428
+ middlewareData: v
3429
3429
  };
3430
3430
  };
3431
3431
  async function fs(A, s) {
@@ -3443,18 +3443,18 @@ async function fs(A, s) {
3443
3443
  rootBoundary: u = "viewport",
3444
3444
  elementContext: g = "floating",
3445
3445
  altBoundary: d = !1,
3446
- padding: l = 0
3447
- } = SA(s, A), p = as(l), x = i[d ? g === "floating" ? "reference" : "floating" : g], w = de(await o.getClippingRect({
3446
+ padding: v = 0
3447
+ } = SA(s, A), p = as(v), x = i[d ? g === "floating" ? "reference" : "floating" : g], b = de(await o.getClippingRect({
3448
3448
  element: (e = await (o.isElement == null ? void 0 : o.isElement(x))) == null || e ? x : x.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
3449
3449
  boundary: a,
3450
3450
  rootBoundary: u,
3451
3451
  strategy: r
3452
- })), k = g === "floating" ? {
3452
+ })), D = g === "floating" ? {
3453
3453
  x: t,
3454
3454
  y: n,
3455
3455
  width: c.floating.width,
3456
3456
  height: c.floating.height
3457
- } : c.reference, b = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), L = await (o.isElement == null ? void 0 : o.isElement(b)) ? await (o.getScale == null ? void 0 : o.getScale(b)) || {
3457
+ } : c.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), L = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
3458
3458
  x: 1,
3459
3459
  y: 1
3460
3460
  } : {
@@ -3462,15 +3462,15 @@ async function fs(A, s) {
3462
3462
  y: 1
3463
3463
  }, G = de(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
3464
3464
  elements: i,
3465
- rect: k,
3466
- offsetParent: b,
3465
+ rect: D,
3466
+ offsetParent: w,
3467
3467
  strategy: r
3468
- }) : k);
3468
+ }) : D);
3469
3469
  return {
3470
- top: (w.top - G.top + p.top) / L.y,
3471
- bottom: (G.bottom - w.bottom + p.bottom) / L.y,
3472
- left: (w.left - G.left + p.left) / L.x,
3473
- right: (G.right - w.right + p.right) / L.x
3470
+ top: (b.top - G.top + p.top) / L.y,
3471
+ bottom: (G.bottom - b.bottom + p.bottom) / L.y,
3472
+ left: (b.left - G.left + p.left) / L.x,
3473
+ right: (G.right - b.right + p.right) / L.x
3474
3474
  };
3475
3475
  }
3476
3476
  const qo = (A) => ({
@@ -3494,15 +3494,15 @@ const qo = (A) => ({
3494
3494
  const g = as(u), d = {
3495
3495
  x: e,
3496
3496
  y: t
3497
- }, l = Ye(n), p = je(l), M = await c.getDimensions(a), x = l === "y", w = x ? "top" : "left", k = x ? "bottom" : "right", b = x ? "clientHeight" : "clientWidth", L = o.reference[p] + o.reference[l] - d[l] - o.floating[p], G = d[l] - o.reference[l], D = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(a));
3498
- let Q = D ? D[b] : 0;
3499
- (!Q || !await (c.isElement == null ? void 0 : c.isElement(D))) && (Q = i.floating[b] || o.floating[p]);
3500
- const I = L / 2 - G / 2, j = Q / 2 - M[p] / 2 - 1, V = CA(g[w], j), Y = CA(g[k], j), B = V, z = Q - M[p] - Y, O = Q / 2 - M[p] / 2 + I, E = Oe(B, O, z), h = !r.arrow && WA(n) != null && O !== E && o.reference[p] / 2 - (O < B ? V : Y) - M[p] / 2 < 0, F = h ? O < B ? O - B : O - z : 0;
3497
+ }, v = Ye(n), p = je(v), O = await c.getDimensions(a), x = v === "y", b = x ? "top" : "left", D = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", L = o.reference[p] + o.reference[v] - d[v] - o.floating[p], G = d[v] - o.reference[v], k = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(a));
3498
+ let Q = k ? k[w] : 0;
3499
+ (!Q || !await (c.isElement == null ? void 0 : c.isElement(k))) && (Q = i.floating[w] || o.floating[p]);
3500
+ const I = L / 2 - G / 2, j = Q / 2 - O[p] / 2 - 1, V = CA(g[b], j), Y = CA(g[D], j), B = V, z = Q - O[p] - Y, M = Q / 2 - O[p] / 2 + I, E = Oe(B, M, z), h = !r.arrow && WA(n) != null && M !== E && o.reference[p] / 2 - (M < B ? V : Y) - O[p] / 2 < 0, F = h ? M < B ? M - B : M - z : 0;
3501
3501
  return {
3502
- [l]: d[l] + F,
3502
+ [v]: d[v] + F,
3503
3503
  data: {
3504
- [l]: E,
3505
- centerOffset: O - E - F,
3504
+ [v]: E,
3505
+ centerOffset: M - E - F,
3506
3506
  ...h && {
3507
3507
  alignmentOffset: F
3508
3508
  }
@@ -3527,33 +3527,33 @@ const qo = (A) => ({
3527
3527
  mainAxis: u = !0,
3528
3528
  crossAxis: g = !0,
3529
3529
  fallbackPlacements: d,
3530
- fallbackStrategy: l = "bestFit",
3530
+ fallbackStrategy: v = "bestFit",
3531
3531
  fallbackAxisSideDirection: p = "none",
3532
- flipAlignment: M = !0,
3532
+ flipAlignment: O = !0,
3533
3533
  ...x
3534
3534
  } = SA(A, s);
3535
3535
  if ((e = o.arrow) != null && e.alignmentOffset)
3536
3536
  return {};
3537
- const w = TA(n), k = bA(i), b = TA(i) === i, L = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), G = d || (b || !M ? [fe(i)] : Io(i)), D = p !== "none";
3538
- !d && D && G.push(...Ko(i, M, p, L));
3537
+ const b = TA(n), D = bA(i), w = TA(i) === i, L = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), G = d || (w || !O ? [fe(i)] : Io(i)), k = p !== "none";
3538
+ !d && k && G.push(...Ko(i, O, p, L));
3539
3539
  const Q = [i, ...G], I = await fs(s, x), j = [];
3540
3540
  let V = ((t = o.flip) == null ? void 0 : t.overflows) || [];
3541
- if (u && j.push(I[w]), g) {
3542
- const O = Fo(n, c, L);
3543
- j.push(I[O[0]], I[O[1]]);
3541
+ if (u && j.push(I[b]), g) {
3542
+ const M = Fo(n, c, L);
3543
+ j.push(I[M[0]], I[M[1]]);
3544
3544
  }
3545
3545
  if (V = [...V, {
3546
3546
  placement: n,
3547
3547
  overflows: j
3548
- }], !j.every((O) => O <= 0)) {
3548
+ }], !j.every((M) => M <= 0)) {
3549
3549
  var Y, B;
3550
- const O = (((Y = o.flip) == null ? void 0 : Y.index) || 0) + 1, E = Q[O];
3551
- if (E && (!(g === "alignment" ? k !== bA(E) : !1) || // We leave the current main axis only if every placement on that axis
3550
+ const M = (((Y = o.flip) == null ? void 0 : Y.index) || 0) + 1, E = Q[M];
3551
+ if (E && (!(g === "alignment" ? D !== bA(E) : !1) || // We leave the current main axis only if every placement on that axis
3552
3552
  // overflows the main axis.
3553
- V.every((W) => bA(W.placement) === k ? W.overflows[0] > 0 : !0)))
3553
+ V.every((W) => bA(W.placement) === D ? W.overflows[0] > 0 : !0)))
3554
3554
  return {
3555
3555
  data: {
3556
- index: O,
3556
+ index: M,
3557
3557
  overflows: V
3558
3558
  },
3559
3559
  reset: {
@@ -3562,13 +3562,13 @@ const qo = (A) => ({
3562
3562
  };
3563
3563
  let h = (B = V.filter((F) => F.overflows[0] <= 0).sort((F, W) => F.overflows[1] - W.overflows[1])[0]) == null ? void 0 : B.placement;
3564
3564
  if (!h)
3565
- switch (l) {
3565
+ switch (v) {
3566
3566
  case "bestFit": {
3567
3567
  var z;
3568
3568
  const F = (z = V.filter((W) => {
3569
- if (D) {
3569
+ if (k) {
3570
3570
  const K = bA(W.placement);
3571
- return K === k || // Create a bias to the `y` side axis due to horizontal
3571
+ return K === D || // Create a bias to the `y` side axis due to horizontal
3572
3572
  // reading directions favoring greater width.
3573
3573
  K === "y";
3574
3574
  }
@@ -3600,7 +3600,7 @@ async function Ac(A, s) {
3600
3600
  } = A, o = await (t.isRTL == null ? void 0 : t.isRTL(n.floating)), c = TA(e), i = WA(e), r = bA(e) === "y", a = $o.has(c) ? -1 : 1, u = o && r ? -1 : 1, g = SA(s, A);
3601
3601
  let {
3602
3602
  mainAxis: d,
3603
- crossAxis: l,
3603
+ crossAxis: v,
3604
3604
  alignmentAxis: p
3605
3605
  } = typeof g == "number" ? {
3606
3606
  mainAxis: g,
@@ -3611,12 +3611,12 @@ async function Ac(A, s) {
3611
3611
  crossAxis: g.crossAxis || 0,
3612
3612
  alignmentAxis: g.alignmentAxis
3613
3613
  };
3614
- return i && typeof p == "number" && (l = i === "end" ? p * -1 : p), r ? {
3615
- x: l * u,
3614
+ return i && typeof p == "number" && (v = i === "end" ? p * -1 : p), r ? {
3615
+ x: v * u,
3616
3616
  y: d * a
3617
3617
  } : {
3618
3618
  x: d * a,
3619
- y: l * u
3619
+ y: v * u
3620
3620
  };
3621
3621
  }
3622
3622
  const ec = function(A) {
@@ -3656,12 +3656,12 @@ const ec = function(A) {
3656
3656
  limiter: i = {
3657
3657
  fn: (x) => {
3658
3658
  let {
3659
- x: w,
3660
- y: k
3659
+ x: b,
3660
+ y: D
3661
3661
  } = x;
3662
3662
  return {
3663
- x: w,
3664
- y: k
3663
+ x: b,
3664
+ y: D
3665
3665
  };
3666
3666
  }
3667
3667
  },
@@ -3670,25 +3670,25 @@ const ec = function(A) {
3670
3670
  x: e,
3671
3671
  y: t
3672
3672
  }, u = await fs(s, r), g = bA(TA(n)), d = rs(g);
3673
- let l = a[d], p = a[g];
3673
+ let v = a[d], p = a[g];
3674
3674
  if (o) {
3675
- const x = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", k = l + u[x], b = l - u[w];
3676
- l = Oe(k, l, b);
3675
+ const x = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", D = v + u[x], w = v - u[b];
3676
+ v = Oe(D, v, w);
3677
3677
  }
3678
3678
  if (c) {
3679
- const x = g === "y" ? "top" : "left", w = g === "y" ? "bottom" : "right", k = p + u[x], b = p - u[w];
3680
- p = Oe(k, p, b);
3679
+ const x = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", D = p + u[x], w = p - u[b];
3680
+ p = Oe(D, p, w);
3681
3681
  }
3682
- const M = i.fn({
3682
+ const O = i.fn({
3683
3683
  ...s,
3684
- [d]: l,
3684
+ [d]: v,
3685
3685
  [g]: p
3686
3686
  });
3687
3687
  return {
3688
- ...M,
3688
+ ...O,
3689
3689
  data: {
3690
- x: M.x - e,
3691
- y: M.y - t,
3690
+ x: O.x - e,
3691
+ y: O.y - t,
3692
3692
  enabled: {
3693
3693
  [d]: o,
3694
3694
  [g]: c
@@ -3859,11 +3859,11 @@ function GA(A, s, e, t) {
3859
3859
  const i = vc(o, e, t) ? us(o) : zA(0);
3860
3860
  let r = (n.left + i.x) / c.x, a = (n.top + i.y) / c.y, u = n.width / c.x, g = n.height / c.y;
3861
3861
  if (o) {
3862
- const d = dA(o), l = t && uA(t) ? dA(t) : t;
3863
- let p = d, M = be(p);
3864
- for (; M && t && l !== p; ) {
3865
- const x = JA(M), w = M.getBoundingClientRect(), k = gA(M), b = w.left + (M.clientLeft + parseFloat(k.paddingLeft)) * x.x, L = w.top + (M.clientTop + parseFloat(k.paddingTop)) * x.y;
3866
- r *= x.x, a *= x.y, u *= x.x, g *= x.y, r += b, a += L, p = dA(M), M = be(p);
3862
+ const d = dA(o), v = t && uA(t) ? dA(t) : t;
3863
+ let p = d, O = be(p);
3864
+ for (; O && t && v !== p; ) {
3865
+ const x = JA(O), b = O.getBoundingClientRect(), D = gA(O), w = b.left + (O.clientLeft + parseFloat(D.paddingLeft)) * x.x, L = b.top + (O.clientTop + parseFloat(D.paddingTop)) * x.y;
3866
+ r *= x.x, a *= x.y, u *= x.x, g *= x.y, r += w, a += L, p = dA(O), O = be(p);
3867
3867
  }
3868
3868
  }
3869
3869
  return de({
@@ -3900,8 +3900,8 @@ function uc(A) {
3900
3900
  }, a = zA(1);
3901
3901
  const u = zA(0), g = pA(t);
3902
3902
  if ((g || !g && !o) && ((QA(t) !== "body" || KA(c)) && (r = ue(t)), pA(t))) {
3903
- const l = GA(t);
3904
- a = JA(t), u.x = l.x + t.clientLeft, u.y = l.y + t.clientTop;
3903
+ const v = GA(t);
3904
+ a = JA(t), u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
3905
3905
  }
3906
3906
  const d = c && !g && !o ? gs(c, r) : zA(0);
3907
3907
  return {
@@ -3936,7 +3936,7 @@ function zc(A, s) {
3936
3936
  }
3937
3937
  const a = ge(t);
3938
3938
  if (a <= 0) {
3939
- const u = t.ownerDocument, g = u.body, d = getComputedStyle(g), l = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, p = Math.abs(t.clientWidth - g.clientWidth - l);
3939
+ const u = t.ownerDocument, g = u.body, d = getComputedStyle(g), v = u.compatMode === "CSS1Compat" && parseFloat(d.marginLeft) + parseFloat(d.marginRight) || 0, p = Math.abs(t.clientWidth - g.clientWidth - v);
3940
3940
  p <= Se && (o -= p);
3941
3941
  } else a <= Se && (o += a);
3942
3942
  return {
@@ -4032,8 +4032,8 @@ function yc(A, s, e) {
4032
4032
  }
4033
4033
  if (t || !t && !o)
4034
4034
  if ((QA(s) !== "body" || KA(n)) && (i = ue(s)), t) {
4035
- const l = GA(s, !0, o, s);
4036
- r.x = l.x + s.clientLeft, r.y = l.y + s.clientTop;
4035
+ const v = GA(s, !0, o, s);
4036
+ r.x = v.x + s.clientLeft, r.y = v.y + s.clientTop;
4037
4037
  } else n && a();
4038
4038
  o && !t && n && a();
4039
4039
  const u = n && !t && !o ? gs(n, i) : zA(0), g = c.left + i.scrollLeft - r.x - u.x, d = c.top + i.scrollTop - r.y - u.y;
@@ -4116,17 +4116,17 @@ function jc(A, s) {
4116
4116
  left: u,
4117
4117
  top: g,
4118
4118
  width: d,
4119
- height: l
4119
+ height: v
4120
4120
  } = a;
4121
- if (i || s(), !d || !l)
4121
+ if (i || s(), !d || !v)
4122
4122
  return;
4123
- const p = qA(g), M = qA(n.clientWidth - (u + d)), x = qA(n.clientHeight - (g + l)), w = qA(u), b = {
4124
- rootMargin: -p + "px " + -M + "px " + -x + "px " + -w + "px",
4123
+ const p = qA(g), O = qA(n.clientWidth - (u + d)), x = qA(n.clientHeight - (g + v)), b = qA(u), w = {
4124
+ rootMargin: -p + "px " + -O + "px " + -x + "px " + -b + "px",
4125
4125
  threshold: YA(0, CA(1, r)) || 1
4126
4126
  };
4127
4127
  let L = !0;
4128
- function G(D) {
4129
- const Q = D[0].intersectionRatio;
4128
+ function G(k) {
4129
+ const Q = k[0].intersectionRatio;
4130
4130
  if (Q !== r) {
4131
4131
  if (!L)
4132
4132
  return c();
@@ -4138,12 +4138,12 @@ function jc(A, s) {
4138
4138
  }
4139
4139
  try {
4140
4140
  e = new IntersectionObserver(G, {
4141
- ...b,
4141
+ ...w,
4142
4142
  // Handle <iframe>s
4143
4143
  root: n.ownerDocument
4144
4144
  });
4145
4145
  } catch {
4146
- e = new IntersectionObserver(G, b);
4146
+ e = new IntersectionObserver(G, w);
4147
4147
  }
4148
4148
  e.observe(A);
4149
4149
  }
@@ -4158,31 +4158,31 @@ function Yc(A, s, e, t) {
4158
4158
  layoutShift: i = typeof IntersectionObserver == "function",
4159
4159
  animationFrame: r = !1
4160
4160
  } = t, a = Te(A), u = n || o ? [...a ? VA(a) : [], ...VA(s)] : [];
4161
- u.forEach((w) => {
4162
- n && w.addEventListener("scroll", e, {
4161
+ u.forEach((b) => {
4162
+ n && b.addEventListener("scroll", e, {
4163
4163
  passive: !0
4164
- }), o && w.addEventListener("resize", e);
4164
+ }), o && b.addEventListener("resize", e);
4165
4165
  });
4166
4166
  const g = a && i ? jc(a, e) : null;
4167
- let d = -1, l = null;
4168
- c && (l = new ResizeObserver((w) => {
4169
- let [k] = w;
4170
- k && k.target === a && l && (l.unobserve(s), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
4171
- var b;
4172
- (b = l) == null || b.observe(s);
4167
+ let d = -1, v = null;
4168
+ c && (v = new ResizeObserver((b) => {
4169
+ let [D] = b;
4170
+ D && D.target === a && v && (v.unobserve(s), cancelAnimationFrame(d), d = requestAnimationFrame(() => {
4171
+ var w;
4172
+ (w = v) == null || w.observe(s);
4173
4173
  })), e();
4174
- }), a && !r && l.observe(a), l.observe(s));
4175
- let p, M = r ? GA(A) : null;
4174
+ }), a && !r && v.observe(a), v.observe(s));
4175
+ let p, O = r ? GA(A) : null;
4176
4176
  r && x();
4177
4177
  function x() {
4178
- const w = GA(A);
4179
- M && !ps(M, w) && e(), M = w, p = requestAnimationFrame(x);
4178
+ const b = GA(A);
4179
+ O && !ps(O, b) && e(), O = b, p = requestAnimationFrame(x);
4180
4180
  }
4181
4181
  return e(), () => {
4182
- var w;
4183
- u.forEach((k) => {
4184
- n && k.removeEventListener("scroll", e), o && k.removeEventListener("resize", e);
4185
- }), g?.(), (w = l) == null || w.disconnect(), l = null, r && cancelAnimationFrame(p);
4182
+ var b;
4183
+ u.forEach((D) => {
4184
+ n && D.removeEventListener("scroll", e), o && D.removeEventListener("resize", e);
4185
+ }), g?.(), (b = v) == null || b.disconnect(), v = null, r && cancelAnimationFrame(p);
4186
4186
  };
4187
4187
  }
4188
4188
  const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
@@ -4210,40 +4210,40 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4210
4210
  interactive: { type: Boolean, default: !1 }
4211
4211
  },
4212
4212
  setup(A) {
4213
- const s = A, { placement: e, openDelay: t, closeDelay: n, offset: o, withArrow: c, disabled: i, interactive: r } = s, a = Z(null), u = Z(null), g = Z(null), d = `utopia-tooltip-${Math.random().toString(36).slice(2, 9)}`, l = Z(!1), p = Z(!1), M = Z(!1);
4214
- let x, w, k = null;
4215
- function b() {
4216
- x && clearTimeout(x), w && clearTimeout(w);
4213
+ const s = A, { placement: e, openDelay: t, closeDelay: n, offset: o, withArrow: c, disabled: i, interactive: r } = s, a = Z(null), u = Z(null), g = Z(null), d = `utopia-tooltip-${Math.random().toString(36).slice(2, 9)}`, v = Z(!1), p = Z(!1), O = Z(!1);
4214
+ let x, b, D = null;
4215
+ function w() {
4216
+ x && clearTimeout(x), b && clearTimeout(b);
4217
4217
  }
4218
4218
  function L() {
4219
- i || (b(), p.value = !0, x = window.setTimeout(() => {
4220
- l.value = !0;
4219
+ i || (w(), p.value = !0, x = window.setTimeout(() => {
4220
+ v.value = !0;
4221
4221
  }, t));
4222
4222
  }
4223
4223
  function G() {
4224
- p.value = !1, b();
4224
+ p.value = !1, w();
4225
4225
  const h = r ? 300 : n;
4226
- w = window.setTimeout(() => {
4227
- r && (M.value || p.value) || (l.value = !1);
4226
+ b = window.setTimeout(() => {
4227
+ r && (O.value || p.value) || (v.value = !1);
4228
4228
  }, h);
4229
4229
  }
4230
- function D() {
4231
- r && (M.value = !0, b());
4230
+ function k() {
4231
+ r && (O.value = !0, w());
4232
4232
  }
4233
4233
  function Q() {
4234
- r && (M.value = !1, p.value || G());
4234
+ r && (O.value = !1, p.value || G());
4235
4235
  }
4236
4236
  function I(h) {
4237
- h.key === "Escape" && (l.value = !1);
4237
+ h.key === "Escape" && (v.value = !1);
4238
4238
  }
4239
4239
  function j() {
4240
- l.value && (b(), l.value = !1, p.value = !1, M.value = !1);
4240
+ v.value && (w(), v.value = !1, p.value = !1, O.value = !1);
4241
4241
  }
4242
4242
  function V(h) {
4243
4243
  window.mouseX = h.clientX, window.mouseY = h.clientY;
4244
4244
  }
4245
4245
  const Y = { onEnter: L, onLeave: G }, B = Z({}), z = Z(e);
4246
- function O(h) {
4246
+ function M(h) {
4247
4247
  switch (h) {
4248
4248
  case "top_left":
4249
4249
  return "top-start";
@@ -4267,7 +4267,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4267
4267
  const W = [Dc(o), Tc(), kc({ padding: 8 })];
4268
4268
  c && g.value && W.push(Gc({ element: g.value }));
4269
4269
  const { x: K, y: eA, placement: tA, middlewareData: lA } = await Zc(h, F, {
4270
- placement: O(e),
4270
+ placement: M(e),
4271
4271
  middleware: W,
4272
4272
  strategy: "fixed"
4273
4273
  });
@@ -4284,14 +4284,14 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4284
4284
  g.value.style[MA] = "-4px", _ === "top" || _ === "bottom" ? (nA === "start" ? g.value.style.left = "8px" : nA === "end" ? g.value.style.right = "8px" : X != null && (g.value.style.left = `${X}px`), q != null && (g.value.style.top = `${q}px`)) : (q != null && (g.value.style.top = `${q}px`), X != null && (g.value.style.left = `${X}px`));
4285
4285
  }
4286
4286
  }
4287
- return iA(l, (h) => {
4288
- h ? (requestAnimationFrame(E), k?.(), a.value && u.value && (k = Yc(a.value, u.value, E)), document.addEventListener("keydown", I), window.addEventListener("scroll", j, !0), document.addEventListener("scroll", j, !0), window.addEventListener("wheel", j, !0), window.addEventListener("touchmove", j, !0)) : (k?.(), k = null, document.removeEventListener("keydown", I), window.removeEventListener("scroll", j, !0), document.removeEventListener("scroll", j, !0), window.removeEventListener("wheel", j, !0), window.removeEventListener("touchmove", j, !0), M.value = !1, p.value = !1);
4287
+ return iA(v, (h) => {
4288
+ h ? (requestAnimationFrame(E), D?.(), a.value && u.value && (D = Yc(a.value, u.value, E)), document.addEventListener("keydown", I), window.addEventListener("scroll", j, !0), document.addEventListener("scroll", j, !0), window.addEventListener("wheel", j, !0), window.addEventListener("touchmove", j, !0)) : (D?.(), D = null, document.removeEventListener("keydown", I), window.removeEventListener("scroll", j, !0), document.removeEventListener("scroll", j, !0), window.removeEventListener("wheel", j, !0), window.removeEventListener("touchmove", j, !0), O.value = !1, p.value = !1);
4289
4289
  }), xA(() => {
4290
- document.addEventListener("mousemove", V), l.value && requestAnimationFrame(E);
4290
+ document.addEventListener("mousemove", V), v.value && requestAnimationFrame(E);
4291
4291
  }), qe(() => {
4292
- b(), k?.(), document.removeEventListener("keydown", I), window.removeEventListener("scroll", j, !0), document.removeEventListener("scroll", j, !0), window.removeEventListener("wheel", j, !0), window.removeEventListener("touchmove", j, !0), document.removeEventListener("mousemove", V);
4292
+ w(), D?.(), document.removeEventListener("keydown", I), window.removeEventListener("scroll", j, !0), document.removeEventListener("scroll", j, !0), window.removeEventListener("wheel", j, !0), window.removeEventListener("touchmove", j, !0), document.removeEventListener("mousemove", V);
4293
4293
  }), (h, F) => (f(), m(sA, null, [
4294
- v("span", {
4294
+ l("span", {
4295
4295
  class: C(["utopia-tooltip-trigger", { "utopia-tooltip--disabled": H(i) }]),
4296
4296
  ref_key: "triggerRef",
4297
4297
  ref: a,
@@ -4309,7 +4309,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4309
4309
  (f(), S(EA, { to: "body" }, [
4310
4310
  J(DA, { name: "ut-tooltip" }, {
4311
4311
  default: R(() => [
4312
- !H(i) && A.active && l.value ? (f(), m("div", {
4312
+ !H(i) && A.active && v.value ? (f(), m("div", {
4313
4313
  key: 0,
4314
4314
  id: d,
4315
4315
  class: C(["utopia-tooltip", { "utopia-tooltip--interactive": H(r) }]),
@@ -4318,10 +4318,10 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4318
4318
  ref_key: "tooltipRef",
4319
4319
  ref: u,
4320
4320
  "data-side": z.value,
4321
- onMouseenter: D,
4321
+ onMouseenter: k,
4322
4322
  onMouseleave: Q
4323
4323
  }, [
4324
- v("div", Jc, [
4324
+ l("div", Jc, [
4325
4325
  AA(h.$slots, "content", {}, void 0, !0)
4326
4326
  ]),
4327
4327
  H(c) ? (f(), m("div", {
@@ -4394,8 +4394,8 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4394
4394
  minimumFractionDigits: 0
4395
4395
  }).format(s.totalAmount);
4396
4396
  }), i = P(() => {
4397
- const x = new Date(s.expirationDate), w = s.language === "fr" ? "fr-FR" : "en-US";
4398
- return new Intl.DateTimeFormat(w, {
4397
+ const x = new Date(s.expirationDate), b = s.language === "fr" ? "fr-FR" : "en-US";
4398
+ return new Intl.DateTimeFormat(b, {
4399
4399
  day: "2-digit",
4400
4400
  month: "2-digit",
4401
4401
  year: "numeric"
@@ -4411,12 +4411,12 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4411
4411
  expiresOn: "Expires on",
4412
4412
  expiredOn: "Expired on"
4413
4413
  }
4414
- })), u = P(() => a.value[s.language]), g = P(() => s.expiredLabel || u.value.expiredOn), d = Z(), l = Z(!1), p = () => {
4415
- s.campaignName.length > 20 && (l.value = !0);
4416
- }, M = () => {
4417
- l.value = !1;
4414
+ })), u = P(() => a.value[s.language]), g = P(() => s.expiredLabel || u.value.expiredOn), d = Z(), v = Z(!1), p = () => {
4415
+ s.campaignName.length > 20 && (v.value = !0);
4416
+ }, O = () => {
4417
+ v.value = !1;
4418
4418
  };
4419
- return (x, w) => (f(), S(rt, {
4419
+ return (x, b) => (f(), S(rt, {
4420
4420
  variant: "elevated",
4421
4421
  size: s.size,
4422
4422
  disabled: s.disabled,
@@ -4425,24 +4425,24 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4425
4425
  onClick: r
4426
4426
  }, {
4427
4427
  default: R(() => [
4428
- v("div", Lc, [
4429
- v("div", Ec, [
4430
- v("img", {
4428
+ l("div", Lc, [
4429
+ l("div", Ec, [
4430
+ l("img", {
4431
4431
  src: t.value,
4432
4432
  alt: `Icône ${s.category}`,
4433
4433
  class: "utopia-cardcampaign__icon-image"
4434
4434
  }, null, 8, Xc)
4435
4435
  ]),
4436
- v("div", Qc, [
4437
- v("div", hc, [
4438
- v("h3", {
4436
+ l("div", Qc, [
4437
+ l("div", hc, [
4438
+ l("h3", {
4439
4439
  class: "utopia-cardcampaign__title",
4440
4440
  ref_key: "titleRef",
4441
4441
  ref: d,
4442
4442
  onMouseenter: p,
4443
- onMouseleave: M
4443
+ onMouseleave: O
4444
4444
  }, T(s.campaignName), 545),
4445
- l.value && s.campaignName.length > 20 ? (f(), m("div", Nc, T(s.campaignName), 1)) : y("", !0)
4445
+ v.value && s.campaignName.length > 20 ? (f(), m("div", Nc, T(s.campaignName), 1)) : y("", !0)
4446
4446
  ]),
4447
4447
  s.disabled ? y("", !0) : (f(), m("div", Fc, [
4448
4448
  J(N, {
@@ -4451,7 +4451,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4451
4451
  class: "utopia-cardcampaign__calendar-icon",
4452
4452
  strokeWidth: 2
4453
4453
  }),
4454
- v("span", Ic, T(u.value.expiresOn) + " " + T(i.value), 1)
4454
+ l("span", Ic, T(u.value.expiresOn) + " " + T(i.value), 1)
4455
4455
  ]))
4456
4456
  ]),
4457
4457
  s.actionable ? (f(), m("div", Vc, [
@@ -4462,17 +4462,17 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4462
4462
  })
4463
4463
  ])) : y("", !0)
4464
4464
  ]),
4465
- v("div", Sc, [
4465
+ l("div", Sc, [
4466
4466
  s.disabled ? (f(), m("div", $c, [
4467
- v("div", Ai, T(g.value) + " " + T(i.value), 1)
4467
+ l("div", Ai, T(g.value) + " " + T(i.value), 1)
4468
4468
  ])) : (f(), m("div", Wc, [
4469
- v("div", Kc, [
4470
- v("div", Rc, T(o.value), 1),
4471
- v("div", Uc, T(c.value), 1)
4469
+ l("div", Kc, [
4470
+ l("div", Rc, T(o.value), 1),
4471
+ l("div", Uc, T(c.value), 1)
4472
4472
  ]),
4473
- v("div", qc, [
4474
- v("div", _c, [
4475
- v("div", {
4473
+ l("div", qc, [
4474
+ l("div", _c, [
4475
+ l("div", {
4476
4476
  class: "utopia-cardcampaign__gauge-fill",
4477
4477
  style: rA({ width: `${n.value}%` })
4478
4478
  }, null, 4)
@@ -4484,7 +4484,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4484
4484
  _: 1
4485
4485
  }, 8, ["size", "disabled", "interactive", "class"]));
4486
4486
  }
4487
- }), ka = /* @__PURE__ */ $(ei, [["__scopeId", "data-v-af93d22d"]]), si = { class: "utopia-balance-card-group" }, ti = ["onClick"], ni = { class: "utopia-balance-card-grouped__icon" }, oi = ["src", "alt"], ci = { class: "utopia-balance-card-grouped__content" }, ii = { class: "utopia-balance-card-grouped__header" }, ri = { class: "utopia-balance-card-grouped__title" }, ai = { class: "utopia-balance-card-grouped__campaign-count" }, fi = { class: "utopia-balance-card-grouped__balance" }, di = { class: "utopia-balance-card-grouped__amount" }, li = { class: "utopia-balance-card-grouped__progress" }, vi = { class: "utopia-balance-card-grouped__progress-bar" }, ui = { class: "utopia-balance-card-grouped__progress-total" }, gi = {
4487
+ }), Ga = /* @__PURE__ */ $(ei, [["__scopeId", "data-v-af93d22d"]]), si = { class: "utopia-balance-card-group" }, ti = ["onClick"], ni = { class: "utopia-balance-card-grouped__icon" }, oi = ["src", "alt"], ci = { class: "utopia-balance-card-grouped__content" }, ii = { class: "utopia-balance-card-grouped__header" }, ri = { class: "utopia-balance-card-grouped__title" }, ai = { class: "utopia-balance-card-grouped__campaign-count" }, fi = { class: "utopia-balance-card-grouped__balance" }, di = { class: "utopia-balance-card-grouped__amount" }, li = { class: "utopia-balance-card-grouped__progress" }, vi = { class: "utopia-balance-card-grouped__progress-bar" }, ui = { class: "utopia-balance-card-grouped__progress-total" }, gi = {
4488
4488
  key: 0,
4489
4489
  class: "utopia-balance-card-grouped__chevron"
4490
4490
  }, mi = /* @__PURE__ */ U({
@@ -4530,28 +4530,28 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4530
4530
  }]),
4531
4531
  onClick: (d) => u.actionable && !u.disabled ? u.actionable() : void 0
4532
4532
  }, [
4533
- v("div", ni, [
4534
- v("img", {
4533
+ l("div", ni, [
4534
+ l("img", {
4535
4535
  src: t(u.category),
4536
4536
  alt: `Icône ${u.category}`,
4537
4537
  class: "utopia-balance-card-grouped__icon-image"
4538
4538
  }, null, 8, oi)
4539
4539
  ]),
4540
- v("div", ci, [
4541
- v("div", ii, [
4542
- v("h3", ri, T(u.campaignName), 1),
4543
- v("div", ai, T(u.campaignCount) + " " + T(u.campaignCount > 1 ? o.value.campaigns : o.value.campaign), 1)
4540
+ l("div", ci, [
4541
+ l("div", ii, [
4542
+ l("h3", ri, T(u.campaignName), 1),
4543
+ l("div", ai, T(u.campaignCount) + " " + T(u.campaignCount > 1 ? o.value.campaigns : o.value.campaign), 1)
4544
4544
  ]),
4545
- v("div", fi, [
4546
- v("div", di, T(c(u.amount)), 1),
4547
- v("div", li, [
4548
- v("div", vi, [
4549
- v("div", {
4545
+ l("div", fi, [
4546
+ l("div", di, T(c(u.amount)), 1),
4547
+ l("div", li, [
4548
+ l("div", vi, [
4549
+ l("div", {
4550
4550
  class: "utopia-balance-card-grouped__progress-fill",
4551
4551
  style: rA({ width: `${i(u)}%` })
4552
4552
  }, null, 4)
4553
4553
  ]),
4554
- v("div", ui, T(c(u.totalAmount)), 1)
4554
+ l("div", ui, T(c(u.totalAmount)), 1)
4555
4555
  ])
4556
4556
  ])
4557
4557
  ]),
@@ -4565,7 +4565,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4565
4565
  ], 10, ti))), 128))
4566
4566
  ]));
4567
4567
  }
4568
- }), Ta = /* @__PURE__ */ $(mi, [["__scopeId", "data-v-7bd4c0ab"]]), zi = { class: "utopia-data-table" }, pi = {
4568
+ }), Za = /* @__PURE__ */ $(mi, [["__scopeId", "data-v-7bd4c0ab"]]), zi = { class: "utopia-data-table" }, pi = {
4569
4569
  key: 0,
4570
4570
  class: "table-header"
4571
4571
  }, xi = {
@@ -4591,17 +4591,17 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4591
4591
  },
4592
4592
  emits: ["row-click", "sort-change"],
4593
4593
  setup(A, { emit: s }) {
4594
- const e = A, t = s, n = Z(""), o = Z(null), c = P(() => !n.value || !o.value ? e.data : [...e.data].sort((x, w) => {
4595
- const k = i(x, n.value), b = i(w, n.value);
4596
- if (k === b) return 0;
4597
- const L = k > b ? 1 : -1;
4594
+ const e = A, t = s, n = Z(""), o = Z(null), c = P(() => !n.value || !o.value ? e.data : [...e.data].sort((x, b) => {
4595
+ const D = i(x, n.value), w = i(b, n.value);
4596
+ if (D === w) return 0;
4597
+ const L = D > w ? 1 : -1;
4598
4598
  return o.value === "asc" ? L : -L;
4599
4599
  }));
4600
- function i(x, w) {
4601
- return w.split(".").reduce((k, b) => k?.[b], x);
4600
+ function i(x, b) {
4601
+ return b.split(".").reduce((D, w) => D?.[w], x);
4602
4602
  }
4603
- function r(x, w) {
4604
- return typeof e.rowKey == "function" ? e.rowKey(x) : i(x, e.rowKey) || w.toString();
4603
+ function r(x, b) {
4604
+ return typeof e.rowKey == "function" ? e.rowKey(x) : i(x, e.rowKey) || b.toString();
4605
4605
  }
4606
4606
  function a(x) {
4607
4607
  x.sortable && (n.value === x.key ? o.value === "asc" ? o.value = "desc" : o.value === "desc" ? (o.value = null, n.value = "") : o.value = "asc" : (n.value = x.key, o.value = "asc"), t("sort-change", n.value, o.value));
@@ -4615,83 +4615,83 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4615
4615
  [`align-${x.align || "left"}`]: !0
4616
4616
  };
4617
4617
  }
4618
- function d(x, w) {
4618
+ function d(x, b) {
4619
4619
  return {
4620
- striped: e.striped && w % 2 === 1,
4620
+ striped: e.striped && b % 2 === 1,
4621
4621
  hoverable: e.hoverable,
4622
4622
  selectable: e.selectable
4623
4623
  };
4624
4624
  }
4625
- function l(x, w) {
4625
+ function v(x, b) {
4626
4626
  return {
4627
4627
  [`align-${x.align || "left"}`]: !0
4628
4628
  };
4629
4629
  }
4630
- function p(x, w) {
4631
- return w.formatter ? w.formatter(x) : x?.toString() || "";
4630
+ function p(x, b) {
4631
+ return b.formatter ? b.formatter(x) : x?.toString() || "";
4632
4632
  }
4633
- function M(x, w) {
4634
- t("row-click", x, w);
4633
+ function O(x, b) {
4634
+ t("row-click", x, b);
4635
4635
  }
4636
- return (x, w) => (f(), m("div", zi, [
4636
+ return (x, b) => (f(), m("div", zi, [
4637
4637
  A.title || x.$slots.header ? (f(), m("div", pi, [
4638
4638
  A.title ? (f(), m("h3", xi, T(A.title), 1)) : y("", !0),
4639
4639
  AA(x.$slots, "header", {}, void 0, !0)
4640
4640
  ])) : y("", !0),
4641
- v("div", Pi, [
4642
- v("table", Mi, [
4643
- v("thead", null, [
4644
- v("tr", null, [
4645
- (f(!0), m(sA, null, aA(A.columns, (k) => (f(), m("th", {
4646
- key: k.key,
4647
- class: C(g(k)),
4648
- onClick: (b) => a(k)
4641
+ l("div", Pi, [
4642
+ l("table", Mi, [
4643
+ l("thead", null, [
4644
+ l("tr", null, [
4645
+ (f(!0), m(sA, null, aA(A.columns, (D) => (f(), m("th", {
4646
+ key: D.key,
4647
+ class: C(g(D)),
4648
+ onClick: (w) => a(D)
4649
4649
  }, [
4650
- v("div", yi, [
4651
- v("span", null, T(k.label), 1),
4652
- k.sortable ? (f(), S(H(N), {
4650
+ l("div", yi, [
4651
+ l("span", null, T(D.label), 1),
4652
+ D.sortable ? (f(), S(H(N), {
4653
4653
  key: 0,
4654
- name: u(k.key),
4654
+ name: u(D.key),
4655
4655
  class: "sort-icon"
4656
4656
  }, null, 8, ["name"])) : y("", !0)
4657
4657
  ])
4658
4658
  ], 10, Oi))), 128))
4659
4659
  ])
4660
4660
  ]),
4661
- v("tbody", null, [
4662
- (f(!0), m(sA, null, aA(c.value, (k, b) => (f(), m("tr", {
4663
- key: r(k, b),
4664
- class: C(d(k, b)),
4665
- onClick: (L) => M(k, b)
4661
+ l("tbody", null, [
4662
+ (f(!0), m(sA, null, aA(c.value, (D, w) => (f(), m("tr", {
4663
+ key: r(D, w),
4664
+ class: C(d(D, w)),
4665
+ onClick: (L) => O(D, w)
4666
4666
  }, [
4667
4667
  (f(!0), m(sA, null, aA(A.columns, (L) => (f(), m("td", {
4668
4668
  key: L.key,
4669
- class: C(l(L))
4669
+ class: C(v(L))
4670
4670
  }, [
4671
4671
  AA(x.$slots, `cell-${L.key}`, {
4672
- value: i(k, L.key),
4673
- row: k,
4672
+ value: i(D, L.key),
4673
+ row: D,
4674
4674
  column: L,
4675
- index: b
4675
+ index: w
4676
4676
  }, () => [
4677
- oA(T(p(i(k, L.key), L)), 1)
4677
+ oA(T(p(i(D, L.key), L)), 1)
4678
4678
  ], !0)
4679
4679
  ], 2))), 128))
4680
4680
  ], 10, bi))), 128))
4681
4681
  ])
4682
4682
  ])
4683
4683
  ]),
4684
- A.loading ? (f(), m("div", wi, [...w[0] || (w[0] = [
4685
- v("div", { class: "loading-spinner" }, "Chargement...", -1)
4684
+ A.loading ? (f(), m("div", wi, [...b[0] || (b[0] = [
4685
+ l("div", { class: "loading-spinner" }, "Chargement...", -1)
4686
4686
  ])])) : y("", !0),
4687
4687
  !A.loading && c.value.length === 0 ? (f(), m("div", Bi, [
4688
4688
  AA(x.$slots, "empty", {}, () => [
4689
- w[1] || (w[1] = v("p", null, "Aucune donnée disponible", -1))
4689
+ b[1] || (b[1] = l("p", null, "Aucune donnée disponible", -1))
4690
4690
  ], !0)
4691
4691
  ])) : y("", !0)
4692
4692
  ]));
4693
4693
  }
4694
- }), Ga = /* @__PURE__ */ $(ji, [["__scopeId", "data-v-49dddfa5"]]), Yi = { class: "utopia-breadcrumbs" }, Di = { class: "utopia-breadcrumbs__active-item" }, ki = /* @__PURE__ */ U({
4694
+ }), Ha = /* @__PURE__ */ $(ji, [["__scopeId", "data-v-49dddfa5"]]), Yi = { class: "utopia-breadcrumbs" }, Di = { class: "utopia-breadcrumbs__active-item" }, ki = /* @__PURE__ */ U({
4695
4695
  __name: "Breadcrumbs",
4696
4696
  props: {
4697
4697
  items: {}
@@ -4720,7 +4720,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4720
4720
  strokeWidth: "2"
4721
4721
  })
4722
4722
  ]))), 128)),
4723
- v("div", Di, [
4723
+ l("div", Di, [
4724
4724
  J($A, {
4725
4725
  label: t.value.label,
4726
4726
  "icon-left": t.value.iconLeft,
@@ -4730,13 +4730,13 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4730
4730
  ])
4731
4731
  ]));
4732
4732
  }
4733
- }), Za = /* @__PURE__ */ $(ki, [["__scopeId", "data-v-7add3f06"]]), Ti = { class: "utopia-productcard__image-container" }, Gi = ["src", "alt"], Zi = ["src", "alt"], Hi = ["aria-pressed"], Ji = { class: "utopia-productcard__body" }, Ci = {
4733
+ }), Ja = /* @__PURE__ */ $(ki, [["__scopeId", "data-v-7add3f06"]]), Ti = { class: "utopia-productcard__image-container" }, Gi = ["src", "alt"], Zi = ["src", "alt"], Hi = ["aria-pressed"], Ji = { class: "utopia-productcard__body" }, Ci = {
4734
4734
  key: 0,
4735
4735
  class: "utopia-productcard__tags-container"
4736
- }, Li = { class: "utopia-productcard__tags" }, Ei = { class: "utopia-productcard__tags utopia-productcard__tags-right" }, Xi = {
4736
+ }, Li = { class: "utopia-productcard__tags" }, Ei = { class: "utopia-productcard__tags utopia-productcard__tags-right" }, Xi = { class: "utopia-productcard__discount-tooltip" }, Qi = { key: 0 }, hi = {
4737
4737
  key: 3,
4738
4738
  class: "utopia-productcard__unavailable"
4739
- }, Qi = /* @__PURE__ */ U({
4739
+ }, Ni = /* @__PURE__ */ U({
4740
4740
  __name: "ProductCard",
4741
4741
  props: {
4742
4742
  id: {},
@@ -4764,15 +4764,15 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4764
4764
  })), c = P(() => ({
4765
4765
  fr: { comingBackSoon: "De retour bientôt", outOfStock: "En rupture" },
4766
4766
  en: { comingBackSoon: "Coming back soon", outOfStock: "Out of stock" }
4767
- })), i = P(() => c.value[e.language]), r = P(() => e.tags && e.tags.length > 0 || e.subventionName || e.discount), a = Z(), u = P(() => !!(a.value && a.value.scrollHeight > a.value.clientHeight)), g = Z(), d = P(() => !!(g.value && g.value.scrollHeight > g.value.clientHeight)), l = P(() => e.discount && e.discount?.length > 16 ? e.discount?.slice(0, 13) + "..." : e.discount);
4768
- return (p, M) => (f(), m("div", {
4767
+ })), i = P(() => c.value[e.language]), r = P(() => e.tags && e.tags.length > 0 || e.subventionName || e.discount), a = Z(), u = P(() => !!(a.value && a.value.scrollHeight > a.value.clientHeight)), g = Z(), d = P(() => !!(g.value && g.value.scrollHeight > g.value.clientHeight)), v = P(() => !!(e.discount && e.discount?.length > 16)), p = P(() => v.value ? e.discount?.slice(0, 13) + "..." : e.discount);
4768
+ return (O, x) => (f(), m("div", {
4769
4769
  class: C(["utopia-productcard", o.value]),
4770
- onClick: M[2] || (M[2] = jA((x) => t("card-click", { id: A.id }), ["stop"])),
4771
- onKeypress: M[3] || (M[3] = Ge(jA((x) => t("card-click", { id: A.id }), ["stop"]), ["enter"])),
4770
+ onClick: x[2] || (x[2] = jA((b) => t("card-click", { id: A.id }), ["stop"])),
4771
+ onKeypress: x[3] || (x[3] = Ge(jA((b) => t("card-click", { id: A.id }), ["stop"]), ["enter"])),
4772
4772
  tabindex: "0"
4773
4773
  }, [
4774
- v("div", Ti, [
4775
- v("img", {
4774
+ l("div", Ti, [
4775
+ l("img", {
4776
4776
  src: A.imageUrl,
4777
4777
  alt: A.title,
4778
4778
  class: C(["utopia-productcard__image", { "utopia-productcard__image--disabled": !A.available }])
@@ -4783,12 +4783,12 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4783
4783
  class: "utopia-productcard__logo",
4784
4784
  alt: `${A.title} logo`
4785
4785
  }, null, 8, Zi)) : y("", !0),
4786
- v("div", {
4786
+ l("div", {
4787
4787
  class: "utopia-productcard__favorite",
4788
4788
  tabindex: "0",
4789
4789
  "aria-pressed": A.isFavorite,
4790
- onClick: M[0] || (M[0] = jA((x) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"])),
4791
- onKeypress: M[1] || (M[1] = Ge(jA((x) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"]), ["enter"]))
4790
+ onClick: x[0] || (x[0] = jA((b) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"])),
4791
+ onKeypress: x[1] || (x[1] = Ge(jA((b) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"]), ["enter"]))
4792
4792
  }, [
4793
4793
  J(N, {
4794
4794
  size: "extra-small",
@@ -4797,20 +4797,20 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4797
4797
  }, null, 8, ["name"])
4798
4798
  ], 40, Hi)
4799
4799
  ]),
4800
- v("div", Ji, [
4800
+ l("div", Ji, [
4801
4801
  r.value ? (f(), m("div", Ci, [
4802
- v("div", Li, [
4803
- (f(!0), m(sA, null, aA(A.tags, (x, w) => (f(), S(HA, {
4804
- key: w,
4802
+ l("div", Li, [
4803
+ (f(!0), m(sA, null, aA(A.tags, (b, D) => (f(), S(HA, {
4804
+ key: D,
4805
4805
  size: "extra-small"
4806
4806
  }, {
4807
4807
  default: R(() => [
4808
- oA(T(x), 1)
4808
+ oA(T(b), 1)
4809
4809
  ]),
4810
4810
  _: 2
4811
4811
  }, 1024))), 128))
4812
4812
  ]),
4813
- v("div", Ei, [
4813
+ l("div", Ei, [
4814
4814
  A.available ? y("", !0) : (f(), S(HA, {
4815
4815
  key: 0,
4816
4816
  size: "extra-small",
@@ -4858,7 +4858,10 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4858
4858
  active: !!A.discountTooltip
4859
4859
  }, {
4860
4860
  content: R(() => [
4861
- oA(T(A.discountTooltip), 1)
4861
+ l("div", Xi, [
4862
+ l("p", null, T(A.discountTooltip), 1),
4863
+ v.value ? (f(), m("p", Qi, T(A.discount), 1)) : y("", !0)
4864
+ ])
4862
4865
  ]),
4863
4866
  default: R(() => [
4864
4867
  J(HA, {
@@ -4868,7 +4871,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4868
4871
  customTextColor: "--theme-colors-surface-card"
4869
4872
  }, {
4870
4873
  default: R(() => [
4871
- oA(T(l.value), 1)
4874
+ oA(T(p.value), 1)
4872
4875
  ]),
4873
4876
  _: 1
4874
4877
  })
@@ -4890,7 +4893,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4890
4893
  oA(T(A.title), 1)
4891
4894
  ]),
4892
4895
  default: R(() => [
4893
- v("h3", {
4896
+ l("h3", {
4894
4897
  ref_key: "titleRef",
4895
4898
  ref: a,
4896
4899
  class: "utopia-productcard__title"
@@ -4911,7 +4914,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4911
4914
  oA(T(A.description), 1)
4912
4915
  ]),
4913
4916
  default: R(() => [
4914
- v("p", {
4917
+ l("p", {
4915
4918
  ref_key: "descriptionRef",
4916
4919
  ref: g,
4917
4920
  class: "utopia-productcard__description"
@@ -4929,11 +4932,11 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4929
4932
  isDiscounted: !!A.discount,
4930
4933
  isSubventioned: !!A.subventionName,
4931
4934
  language: A.language
4932
- }, null, 8, ["variantCount", "price", "oldPrice", "currency", "isDiscounted", "isSubventioned", "language"])) : y("", !0) : (f(), m("div", Xi, T(i.value.comingBackSoon), 1))
4935
+ }, null, 8, ["variantCount", "price", "oldPrice", "currency", "isDiscounted", "isSubventioned", "language"])) : y("", !0) : (f(), m("div", hi, T(i.value.comingBackSoon), 1))
4933
4936
  ])
4934
4937
  ], 34));
4935
4938
  }
4936
- }), Ha = /* @__PURE__ */ $(Qi, [["__scopeId", "data-v-c07cc6cd"]]), hi = { class: "utopia-filterprice" }, Ni = { class: "utopia-filterprice--inputs-container" }, Fi = { class: "utopia-filterprice--range-slider-container" }, Ii = /* @__PURE__ */ U({
4939
+ }), Ca = /* @__PURE__ */ $(Ni, [["__scopeId", "data-v-7b3b66da"]]), Fi = { class: "utopia-filterprice" }, Ii = { class: "utopia-filterprice--inputs-container" }, Vi = { class: "utopia-filterprice--range-slider-container" }, Si = /* @__PURE__ */ U({
4937
4940
  __name: "FilterPrice",
4938
4941
  props: {
4939
4942
  labelMin: { default: "Prix minimum" },
@@ -4945,23 +4948,23 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4945
4948
  },
4946
4949
  emits: ["update-value"],
4947
4950
  setup(A, { emit: s }) {
4948
- const e = A, t = s, n = P(() => e.currentValue[0].toString()), o = P(() => e.currentValue[1].toString()), { currencyIconName: c } = Lt(e.currency), i = (l) => {
4949
- Number(l) <= e.currentValue[1] && t("update-value", [Number(l), e.currentValue[1]]);
4950
- }, r = (l) => {
4951
- Number(l) >= e.currentValue[0] && t("update-value", [e.currentValue[0], Number(l)]);
4952
- }, a = (l) => {
4953
- t("update-value", Array.isArray(l) ? l : [l, l]);
4951
+ const e = A, t = s, n = P(() => e.currentValue[0].toString()), o = P(() => e.currentValue[1].toString()), { currencyIconName: c } = Lt(e.currency), i = (v) => {
4952
+ Number(v) <= e.currentValue[1] && t("update-value", [Number(v), e.currentValue[1]]);
4953
+ }, r = (v) => {
4954
+ Number(v) >= e.currentValue[0] && t("update-value", [e.currentValue[0], Number(v)]);
4955
+ }, a = (v) => {
4956
+ t("update-value", Array.isArray(v) ? v : [v, v]);
4954
4957
  }, u = () => {
4955
- const l = Math.min(Math.max(e.currentValue[0], e.min), e.currentValue[1]);
4956
- t("update-value", [l, e.currentValue[1]]);
4958
+ const v = Math.min(Math.max(e.currentValue[0], e.min), e.currentValue[1]);
4959
+ t("update-value", [v, e.currentValue[1]]);
4957
4960
  }, g = () => {
4958
- const l = Math.min(Math.max(e.currentValue[0], e.currentValue[1]), e.max);
4959
- t("update-value", [e.currentValue[0], l]);
4960
- }, d = (l) => {
4961
- l.target.select();
4961
+ const v = Math.min(Math.max(e.currentValue[0], e.currentValue[1]), e.max);
4962
+ t("update-value", [e.currentValue[0], v]);
4963
+ }, d = (v) => {
4964
+ v.target.select();
4962
4965
  };
4963
- return (l, p) => (f(), m("div", hi, [
4964
- v("div", Ni, [
4966
+ return (v, p) => (f(), m("div", Fi, [
4967
+ l("div", Ii, [
4965
4968
  J(te, {
4966
4969
  "model-value": n.value,
4967
4970
  label: A.labelMin,
@@ -4991,7 +4994,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
4991
4994
  onBlur: g
4992
4995
  }, null, 8, ["model-value", "label", "min", "max", "icon"])
4993
4996
  ]),
4994
- v("div", Fi, [
4997
+ l("div", Vi, [
4995
4998
  J(Rt, {
4996
4999
  currentValue: A.currentValue,
4997
5000
  min: A.min,
@@ -5003,28 +5006,28 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5003
5006
  ])
5004
5007
  ]));
5005
5008
  }
5006
- }), Ja = /* @__PURE__ */ $(Ii, [["__scopeId", "data-v-b33833de"]]), Vi = { class: "utopia-pagenavigation" }, Si = {
5009
+ }), La = /* @__PURE__ */ $(Si, [["__scopeId", "data-v-b33833de"]]), Wi = { class: "utopia-pagenavigation" }, Ki = {
5007
5010
  key: 0,
5008
5011
  class: "utopia-pagenavigation__numbers"
5009
- }, Wi = {
5012
+ }, Ri = {
5010
5013
  key: 1,
5011
5014
  class: "utopia-pagenavigation__compact-container"
5012
- }, Ki = { class: "utopia-pagenavigation__compact-page-number" }, Ri = {
5015
+ }, Ui = { class: "utopia-pagenavigation__compact-page-number" }, qi = {
5013
5016
  key: 2,
5014
5017
  class: "utopia-pagenavigation__extra-container"
5015
- }, Ui = {
5018
+ }, _i = {
5016
5019
  key: 0,
5017
5020
  class: "utopia-pagenavigation__separator"
5018
- }, qi = {
5021
+ }, $i = {
5019
5022
  key: 1,
5020
5023
  class: "utopia-pagenavigation__go-to-page-container"
5021
- }, _i = {
5024
+ }, Ar = {
5022
5025
  key: 2,
5023
5026
  class: "utopia-pagenavigation__separator"
5024
- }, $i = {
5027
+ }, er = {
5025
5028
  key: 3,
5026
5029
  class: "utopia-pagenavigation__size-container"
5027
- }, Ar = /* @__PURE__ */ U({
5030
+ }, sr = /* @__PURE__ */ U({
5028
5031
  __name: "PageNavigation",
5029
5032
  props: {
5030
5033
  currentPage: {},
@@ -5045,10 +5048,10 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5045
5048
  const u = /* @__PURE__ */ new Set([1, e.totalPages]), g = P(() => o.value ? 1 : 2);
5046
5049
  for (let d = e.currentPage - g.value; d <= e.currentPage + g.value; d++)
5047
5050
  d > 1 && d < e.totalPages && u.add(d);
5048
- return [...u].sort((d, l) => d - l);
5051
+ return [...u].sort((d, v) => d - v);
5049
5052
  }), i = s, r = P(() => e.currentPage), a = P(() => e.size);
5050
- return (u, g) => (f(), m("div", Vi, [
5051
- A.compact ? (f(), m("div", Wi, [
5053
+ return (u, g) => (f(), m("div", Wi, [
5054
+ A.compact ? (f(), m("div", Ri, [
5052
5055
  J(mA, {
5053
5056
  class: "utopia-pagenavigation__compact-button",
5054
5057
  size: "xs",
@@ -5063,7 +5066,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5063
5066
  ])]),
5064
5067
  _: 1
5065
5068
  }, 8, ["disabled"]),
5066
- v("div", Ki, "Page " + T(A.currentPage) + " sur " + T(A.totalPages), 1),
5069
+ l("div", Ui, "Page " + T(A.currentPage) + " sur " + T(A.totalPages), 1),
5067
5070
  J(mA, {
5068
5071
  class: "utopia-pagenavigation__compact-button",
5069
5072
  size: "xs",
@@ -5079,7 +5082,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5079
5082
  ])]),
5080
5083
  _: 1
5081
5084
  }, 8, ["disabled"])
5082
- ])) : (f(), m("div", Si, [
5085
+ ])) : (f(), m("div", Ki, [
5083
5086
  J(mA, {
5084
5087
  class: "utopia-pagenavigation__button",
5085
5088
  size: "md",
@@ -5089,7 +5092,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5089
5092
  "aria-label": "Go to previous page",
5090
5093
  onClick: g[0] || (g[0] = () => i("page-change", A.currentPage - 1))
5091
5094
  }, null, 8, ["disabled"]),
5092
- (f(!0), m(sA, null, aA(c.value, (d, l) => (f(), m("div", {
5095
+ (f(!0), m(sA, null, aA(c.value, (d, v) => (f(), m("div", {
5093
5096
  class: "utopia-pagenavigation__pages-container",
5094
5097
  key: d
5095
5098
  }, [
@@ -5104,7 +5107,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5104
5107
  ]),
5105
5108
  _: 2
5106
5109
  }, 1032, ["class", "variant", "onClick"]),
5107
- l === 0 && A.currentPage > 3 || l === c.value.length - 2 && A.currentPage < A.totalPages - 2 ? (f(), m("div", {
5110
+ v === 0 && A.currentPage > 3 || v === c.value.length - 2 && A.currentPage < A.totalPages - 2 ? (f(), m("div", {
5108
5111
  key: 0,
5109
5112
  class: C(["utopia-pagenavigation__ellipsis", n.value])
5110
5113
  }, " … ", 2)) : y("", !0)
@@ -5119,23 +5122,23 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5119
5122
  onClick: g[1] || (g[1] = () => i("page-change", A.currentPage + 1))
5120
5123
  }, null, 8, ["disabled"])
5121
5124
  ])),
5122
- !A.compact && (A.showGoToPage || A.showSize) ? (f(), m("div", Ri, [
5123
- A.showGoToPage ? (f(), m("div", Ui)) : y("", !0),
5124
- A.showGoToPage ? (f(), m("div", qi, [
5125
- v("div", {
5125
+ !A.compact && (A.showGoToPage || A.showSize) ? (f(), m("div", qi, [
5126
+ A.showGoToPage ? (f(), m("div", _i)) : y("", !0),
5127
+ A.showGoToPage ? (f(), m("div", $i, [
5128
+ l("div", {
5126
5129
  class: C(["utopia-pagenavigation__go-to-page-label", n.value])
5127
5130
  }, T(A.goToPageLabel), 3),
5128
5131
  J(Ze, {
5129
5132
  modelValue: r.value,
5130
5133
  "onUpdate:modelValue": g[4] || (g[4] = (d) => r.value = d),
5131
5134
  size: "small",
5132
- options: Array.from({ length: A.totalPages }, (d, l) => ({ value: l + 1, label: (l + 1).toString() })),
5135
+ options: Array.from({ length: A.totalPages }, (d, v) => ({ value: v + 1, label: (v + 1).toString() })),
5133
5136
  onChange: g[5] || (g[5] = (d) => i("page-change", parseInt(d.toString())))
5134
5137
  }, null, 8, ["modelValue", "options"])
5135
5138
  ])) : y("", !0),
5136
- A.showSize ? (f(), m("div", _i)) : y("", !0),
5137
- A.showSize ? (f(), m("div", $i, [
5138
- v("div", {
5139
+ A.showSize ? (f(), m("div", Ar)) : y("", !0),
5140
+ A.showSize ? (f(), m("div", er, [
5141
+ l("div", {
5139
5142
  class: C(["utopia-pagenavigation__size-label", n.value])
5140
5143
  }, T(A.sizeLabel), 3),
5141
5144
  J(Ze, {
@@ -5149,10 +5152,10 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5149
5152
  ])) : y("", !0)
5150
5153
  ]));
5151
5154
  }
5152
- }), Ca = /* @__PURE__ */ $(Ar, [["__scopeId", "data-v-61f9e2ef"]]), er = {
5155
+ }), Ea = /* @__PURE__ */ $(sr, [["__scopeId", "data-v-61f9e2ef"]]), tr = {
5153
5156
  key: 0,
5154
5157
  class: "mobile-menu-overlay"
5155
- }, sr = { class: "menu-header" }, tr = { class: "header-logo-container" }, nr = { class: "header-logo" }, or = { class: "menu-footer" }, cr = /* @__PURE__ */ U({
5158
+ }, nr = { class: "menu-header" }, or = { class: "header-logo-container" }, cr = { class: "header-logo" }, ir = { class: "menu-footer" }, rr = /* @__PURE__ */ U({
5156
5159
  __name: "MobileMenu",
5157
5160
  props: {
5158
5161
  isOpen: { type: Boolean }
@@ -5188,33 +5191,33 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5188
5191
  t("close");
5189
5192
  }, d = (p) => {
5190
5193
  t("nav-click", p), g();
5191
- }, l = (p) => {
5194
+ }, v = (p) => {
5192
5195
  p.target.closest(".nav-item") && setTimeout(() => {
5193
5196
  g();
5194
5197
  }, 100);
5195
5198
  };
5196
- return (p, M) => (f(), S(EA, { to: "body" }, [
5199
+ return (p, O) => (f(), S(EA, { to: "body" }, [
5197
5200
  J(DA, { name: "mobile-menu" }, {
5198
5201
  default: R(() => [
5199
- A.isOpen ? (f(), m("div", er, [
5200
- v("div", {
5202
+ A.isOpen ? (f(), m("div", tr, [
5203
+ l("div", {
5201
5204
  class: "mobile-backdrop",
5202
5205
  onClick: g
5203
5206
  }),
5204
- v("aside", {
5207
+ l("aside", {
5205
5208
  class: C(["utopia-menu mobile-menu-content", H(a)])
5206
5209
  }, [
5207
- v("div", sr, [
5208
- v("div", tr, [
5210
+ l("div", nr, [
5211
+ l("div", or, [
5209
5212
  AA(p.$slots, "header", {}, () => [
5210
- v("div", nr, [
5213
+ l("div", cr, [
5211
5214
  AA(p.$slots, "header-content", {}, () => [
5212
- M[6] || (M[6] = v("h3", { class: "mobile-menu-title" }, "Menu", -1))
5215
+ O[6] || (O[6] = l("h3", { class: "mobile-menu-title" }, "Menu", -1))
5213
5216
  ], !0)
5214
5217
  ])
5215
5218
  ], !0)
5216
5219
  ]),
5217
- v("button", {
5220
+ l("button", {
5218
5221
  class: "mobile-menu-close",
5219
5222
  onClick: g
5220
5223
  }, [
@@ -5226,73 +5229,73 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5226
5229
  })
5227
5230
  ])
5228
5231
  ]),
5229
- v("nav", {
5232
+ l("nav", {
5230
5233
  class: C(["menu-nav", H(u)]),
5231
5234
  ref_key: "menuNavRef",
5232
5235
  ref: n,
5233
- onScroll: M[5] || (M[5] = //@ts-ignore
5236
+ onScroll: O[5] || (O[5] = //@ts-ignore
5234
5237
  (...x) => H(i) && H(i)(...x)),
5235
- onClick: l
5238
+ onClick: v
5236
5239
  }, [
5237
5240
  AA(p.$slots, "nav-items", {}, () => [
5238
- v("div", {
5241
+ l("div", {
5239
5242
  class: "nav-item",
5240
- onClick: M[0] || (M[0] = (x) => d("accueil"))
5243
+ onClick: O[0] || (O[0] = (x) => d("accueil"))
5241
5244
  }, [
5242
5245
  J(H(N), {
5243
5246
  name: "Home",
5244
5247
  size: "small",
5245
5248
  color: "neutral"
5246
5249
  }),
5247
- M[7] || (M[7] = v("span", null, "Accueil", -1))
5250
+ O[7] || (O[7] = l("span", null, "Accueil", -1))
5248
5251
  ]),
5249
- v("div", {
5252
+ l("div", {
5250
5253
  class: "nav-item",
5251
- onClick: M[1] || (M[1] = (x) => d("couleurs"))
5254
+ onClick: O[1] || (O[1] = (x) => d("couleurs"))
5252
5255
  }, [
5253
5256
  J(H(N), {
5254
5257
  name: "Palette",
5255
5258
  size: "small",
5256
5259
  color: "neutral"
5257
5260
  }),
5258
- M[8] || (M[8] = v("span", null, "Couleurs", -1))
5261
+ O[8] || (O[8] = l("span", null, "Couleurs", -1))
5259
5262
  ]),
5260
- v("div", {
5263
+ l("div", {
5261
5264
  class: "nav-item",
5262
- onClick: M[2] || (M[2] = (x) => d("typographie"))
5265
+ onClick: O[2] || (O[2] = (x) => d("typographie"))
5263
5266
  }, [
5264
5267
  J(H(N), {
5265
5268
  name: "Type",
5266
5269
  size: "small",
5267
5270
  color: "neutral"
5268
5271
  }),
5269
- M[9] || (M[9] = v("span", null, "Typographie", -1))
5272
+ O[9] || (O[9] = l("span", null, "Typographie", -1))
5270
5273
  ]),
5271
- v("div", {
5274
+ l("div", {
5272
5275
  class: "nav-item",
5273
- onClick: M[3] || (M[3] = (x) => d("icones"))
5276
+ onClick: O[3] || (O[3] = (x) => d("icones"))
5274
5277
  }, [
5275
5278
  J(H(N), {
5276
5279
  name: "Star",
5277
5280
  size: "small",
5278
5281
  color: "neutral"
5279
5282
  }),
5280
- M[10] || (M[10] = v("span", null, "Icônes", -1))
5283
+ O[10] || (O[10] = l("span", null, "Icônes", -1))
5281
5284
  ]),
5282
- v("div", {
5285
+ l("div", {
5283
5286
  class: "nav-item",
5284
- onClick: M[4] || (M[4] = (x) => d("parametres"))
5287
+ onClick: O[4] || (O[4] = (x) => d("parametres"))
5285
5288
  }, [
5286
5289
  J(H(N), {
5287
5290
  name: "Settings",
5288
5291
  size: "small",
5289
5292
  color: "neutral"
5290
5293
  }),
5291
- M[11] || (M[11] = v("span", null, "Paramètres", -1))
5294
+ O[11] || (O[11] = l("span", null, "Paramètres", -1))
5292
5295
  ])
5293
5296
  ], !0)
5294
5297
  ], 34),
5295
- v("div", or, [
5298
+ l("div", ir, [
5296
5299
  AA(p.$slots, "footer", {}, void 0, !0)
5297
5300
  ])
5298
5301
  ], 2)
@@ -5302,7 +5305,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5302
5305
  })
5303
5306
  ]));
5304
5307
  }
5305
- }), ir = /* @__PURE__ */ $(cr, [["__scopeId", "data-v-f8bc3e25"]]), rr = /* @__PURE__ */ U({
5308
+ }), ar = /* @__PURE__ */ $(rr, [["__scopeId", "data-v-f8bc3e25"]]), fr = /* @__PURE__ */ U({
5306
5309
  __name: "MobileMenuButton",
5307
5310
  props: {
5308
5311
  onOpenMenu: { type: Function, default: () => {
@@ -5332,7 +5335,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5332
5335
  })
5333
5336
  ]));
5334
5337
  }
5335
- }), ar = /* @__PURE__ */ $(rr, [["__scopeId", "data-v-9e32c0e4"]]), fr = { class: "utopia-header" }, dr = { class: "nav-container" }, lr = { class: "nav-left" }, vr = { class: "nav-right" }, ur = { class: "menu-header-content" }, gr = /* @__PURE__ */ U({
5338
+ }), dr = /* @__PURE__ */ $(fr, [["__scopeId", "data-v-9e32c0e4"]]), lr = { class: "utopia-header" }, vr = { class: "nav-container" }, ur = { class: "nav-left" }, gr = { class: "nav-right" }, mr = { class: "menu-header-content" }, zr = /* @__PURE__ */ U({
5336
5339
  __name: "Header",
5337
5340
  emits: ["mobile-menu-open", "nav-click"],
5338
5341
  setup(A, { emit: s }) {
@@ -5353,31 +5356,31 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5353
5356
  }, o = (i) => {
5354
5357
  console.log("Navigation vers:", i), c("nav-click", i);
5355
5358
  }, c = s;
5356
- return (i, r) => (f(), m("header", fr, [
5357
- v("nav", dr, [
5358
- v("div", lr, [
5359
- J(ar, { onOpenMenu: t }),
5359
+ return (i, r) => (f(), m("header", lr, [
5360
+ l("nav", vr, [
5361
+ l("div", ur, [
5362
+ J(dr, { onOpenMenu: t }),
5360
5363
  AA(i.$slots, "left", {}, void 0, !0)
5361
5364
  ]),
5362
- v("div", vr, [
5365
+ l("div", gr, [
5363
5366
  AA(i.$slots, "right", {}, void 0, !0)
5364
5367
  ])
5365
5368
  ]),
5366
- J(ir, {
5369
+ J(ar, {
5367
5370
  "is-open": e.value,
5368
5371
  onClose: n,
5369
5372
  onNavClick: o
5370
5373
  }, {
5371
5374
  header: R(() => [
5372
5375
  AA(i.$slots, "mobile-menu-header", {}, () => [
5373
- v("div", ur, [
5376
+ l("div", mr, [
5374
5377
  J(H(ne), { size: "md" })
5375
5378
  ])
5376
5379
  ], !0)
5377
5380
  ]),
5378
5381
  "nav-items": R(() => [
5379
5382
  AA(i.$slots, "mobile-nav-items", {}, () => [
5380
- v("div", {
5383
+ l("div", {
5381
5384
  class: "nav-item",
5382
5385
  onClick: r[0] || (r[0] = (a) => o("accueil"))
5383
5386
  }, [
@@ -5386,9 +5389,9 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5386
5389
  size: "small",
5387
5390
  color: "neutral"
5388
5391
  }),
5389
- r[5] || (r[5] = v("span", null, "Accueil", -1))
5392
+ r[5] || (r[5] = l("span", null, "Accueil", -1))
5390
5393
  ]),
5391
- v("div", {
5394
+ l("div", {
5392
5395
  class: "nav-item",
5393
5396
  onClick: r[1] || (r[1] = (a) => o("couleurs"))
5394
5397
  }, [
@@ -5397,9 +5400,9 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5397
5400
  size: "small",
5398
5401
  color: "neutral"
5399
5402
  }),
5400
- r[6] || (r[6] = v("span", null, "Couleurs", -1))
5403
+ r[6] || (r[6] = l("span", null, "Couleurs", -1))
5401
5404
  ]),
5402
- v("div", {
5405
+ l("div", {
5403
5406
  class: "nav-item",
5404
5407
  onClick: r[2] || (r[2] = (a) => o("typographie"))
5405
5408
  }, [
@@ -5408,9 +5411,9 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5408
5411
  size: "small",
5409
5412
  color: "neutral"
5410
5413
  }),
5411
- r[7] || (r[7] = v("span", null, "Typographie", -1))
5414
+ r[7] || (r[7] = l("span", null, "Typographie", -1))
5412
5415
  ]),
5413
- v("div", {
5416
+ l("div", {
5414
5417
  class: "nav-item",
5415
5418
  onClick: r[3] || (r[3] = (a) => o("icones"))
5416
5419
  }, [
@@ -5419,9 +5422,9 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5419
5422
  size: "small",
5420
5423
  color: "neutral"
5421
5424
  }),
5422
- r[8] || (r[8] = v("span", null, "Icônes", -1))
5425
+ r[8] || (r[8] = l("span", null, "Icônes", -1))
5423
5426
  ]),
5424
- v("div", {
5427
+ l("div", {
5425
5428
  class: "nav-item",
5426
5429
  onClick: r[4] || (r[4] = (a) => o("parametres"))
5427
5430
  }, [
@@ -5430,7 +5433,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5430
5433
  size: "small",
5431
5434
  color: "neutral"
5432
5435
  }),
5433
- r[9] || (r[9] = v("span", null, "Paramètres", -1))
5436
+ r[9] || (r[9] = l("span", null, "Paramètres", -1))
5434
5437
  ])
5435
5438
  ], !0)
5436
5439
  ]),
@@ -5438,10 +5441,10 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5438
5441
  }, 8, ["is-open"])
5439
5442
  ]));
5440
5443
  }
5441
- }), mr = /* @__PURE__ */ $(gr, [["__scopeId", "data-v-b7a7b033"]]), zr = { class: "header-logo" }, pr = { class: "menu-toggle" }, xr = {
5444
+ }), pr = /* @__PURE__ */ $(zr, [["__scopeId", "data-v-b7a7b033"]]), xr = { class: "header-logo" }, Pr = { class: "menu-toggle" }, Mr = {
5442
5445
  key: 0,
5443
5446
  class: "hover-expand-overlay"
5444
- }, Pr = { class: "menu-footer" }, Mr = /* @__PURE__ */ U({
5447
+ }, Or = { class: "menu-footer" }, yr = /* @__PURE__ */ U({
5445
5448
  __name: "Menu",
5446
5449
  props: {
5447
5450
  collapsed: { type: Boolean, default: !1 },
@@ -5452,11 +5455,11 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5452
5455
  const t = A, n = e, o = Z(t.collapsed), c = Z(!1), i = Z(!1), r = Z(!1), a = Z(!1), u = Z(null), {
5453
5456
  scrollElementRef: g,
5454
5457
  showTopShadow: d,
5455
- showBottomShadow: l,
5458
+ showBottomShadow: v,
5456
5459
  handleScroll: p,
5457
- initialize: M,
5460
+ initialize: O,
5458
5461
  containerClasses: x,
5459
- scrollClasses: w
5462
+ scrollClasses: b
5460
5463
  } = es({
5461
5464
  initialDelay: 100,
5462
5465
  shadowConfig: {
@@ -5467,31 +5470,31 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5467
5470
  zIndex: 1e3
5468
5471
  },
5469
5472
  injectStyles: !0
5470
- }), k = () => {
5473
+ }), D = () => {
5471
5474
  o.value = !o.value, u.value = o.value, n("update:collapsed", o.value);
5472
- }, b = () => {
5475
+ }, w = () => {
5473
5476
  o.value = !0, a.value = !1, n("update:collapsed", o.value);
5474
5477
  };
5475
5478
  s({
5476
5479
  openMobileMenu: () => {
5477
5480
  o.value = !1, a.value = !0, n("update:collapsed", o.value);
5478
5481
  },
5479
- closeMobileMenu: b,
5480
- toggleMenu: k
5482
+ closeMobileMenu: w,
5483
+ toggleMenu: D
5481
5484
  });
5482
5485
  const G = () => {
5483
- const D = window.innerWidth <= 768;
5484
- r.value = !0, D ? D && (o.value = !0, a.value = !1, n("update:collapsed", o.value)) : (a.value = !1, u.value !== null ? o.value = u.value : o.value = !1, n("update:collapsed", o.value)), setTimeout(() => {
5486
+ const k = window.innerWidth <= 768;
5487
+ r.value = !0, k ? k && (o.value = !0, a.value = !1, n("update:collapsed", o.value)) : (a.value = !1, u.value !== null ? o.value = u.value : o.value = !1, n("update:collapsed", o.value)), setTimeout(() => {
5485
5488
  r.value = !1;
5486
5489
  }, 100);
5487
5490
  };
5488
5491
  return xA(() => {
5489
5492
  window.innerWidth <= 768 ? (o.value = !0, a.value = !1, n("update:collapsed", o.value)) : (o.value = t.collapsed, n("update:collapsed", o.value)), setTimeout(() => {
5490
- c.value = !0, M();
5493
+ c.value = !0, O();
5491
5494
  }, 50), window.addEventListener("resize", G), document.body.style.overflowX = "hidden";
5492
5495
  }), OA(() => {
5493
5496
  window.removeEventListener("resize", G), document.body.style.overflowX = "";
5494
- }), (D, Q) => (f(), m("aside", {
5497
+ }), (k, Q) => (f(), m("aside", {
5495
5498
  class: C(["utopia-menu", [
5496
5499
  {
5497
5500
  collapsed: o.value,
@@ -5505,18 +5508,18 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5505
5508
  a.value ? (f(), m("div", {
5506
5509
  key: 0,
5507
5510
  class: "mobile-backdrop",
5508
- onClick: b
5511
+ onClick: w
5509
5512
  })) : y("", !0),
5510
- v("div", {
5513
+ l("div", {
5511
5514
  class: C(["menu-header", { collapsed: o.value }])
5512
5515
  }, [
5513
- v("div", {
5516
+ l("div", {
5514
5517
  class: C(["header-logo-container", { collapsed: o.value }]),
5515
- onClick: Q[0] || (Q[0] = (I) => o.value ? k() : null)
5518
+ onClick: Q[0] || (Q[0] = (I) => o.value ? D() : null)
5516
5519
  }, [
5517
- v("div", zr, [
5518
- AA(D.$slots, "header", {}, () => [
5519
- v("div", pr, [
5520
+ l("div", xr, [
5521
+ AA(k.$slots, "header", {}, () => [
5522
+ l("div", Pr, [
5520
5523
  J(H(N), {
5521
5524
  name: "menu_tab",
5522
5525
  size: "medium",
@@ -5525,7 +5528,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5525
5528
  ])
5526
5529
  ], !0)
5527
5530
  ]),
5528
- o.value ? (f(), m("div", xr, [
5531
+ o.value ? (f(), m("div", Mr, [
5529
5532
  J(H(N), {
5530
5533
  name: "Panel-left",
5531
5534
  "stroke-width": 2,
@@ -5537,7 +5540,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5537
5540
  o.value ? y("", !0) : (f(), m("div", {
5538
5541
  key: 0,
5539
5542
  class: "header-toggle",
5540
- onClick: k
5543
+ onClick: D
5541
5544
  }, [
5542
5545
  J(H(N), {
5543
5546
  name: "Panel-left",
@@ -5549,7 +5552,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5549
5552
  a.value ? (f(), m("div", {
5550
5553
  key: 1,
5551
5554
  class: "mobile-close-btn",
5552
- onClick: b
5555
+ onClick: w
5553
5556
  }, [
5554
5557
  J(H(N), {
5555
5558
  name: "X",
@@ -5559,30 +5562,30 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5559
5562
  })
5560
5563
  ])) : y("", !0)
5561
5564
  ], 2),
5562
- v("nav", {
5563
- class: C(["menu-nav", H(w)]),
5565
+ l("nav", {
5566
+ class: C(["menu-nav", H(b)]),
5564
5567
  ref_key: "menuNavRef",
5565
5568
  ref: g,
5566
5569
  onScroll: Q[1] || (Q[1] = //@ts-ignore
5567
5570
  (...I) => H(p) && H(p)(...I))
5568
5571
  }, [
5569
- AA(D.$slots, "nav-items", {
5572
+ AA(k.$slots, "nav-items", {
5570
5573
  collapsed: o.value,
5571
5574
  animating: i.value
5572
5575
  }, void 0, !0)
5573
5576
  ], 34),
5574
- v("div", Pr, [
5575
- AA(D.$slots, "footer", {}, void 0, !0)
5577
+ l("div", Or, [
5578
+ AA(k.$slots, "footer", {}, void 0, !0)
5576
5579
  ])
5577
5580
  ], 2));
5578
5581
  }
5579
- }), Or = /* @__PURE__ */ $(Mr, [["__scopeId", "data-v-d3734e62"]]), yr = {
5582
+ }), br = /* @__PURE__ */ $(yr, [["__scopeId", "data-v-d3734e62"]]), wr = {
5580
5583
  key: 0,
5581
5584
  class: "nav-item-icon"
5582
- }, br = {
5585
+ }, Br = {
5583
5586
  key: 1,
5584
5587
  class: "nav-item-label"
5585
- }, wr = /* @__PURE__ */ U({
5588
+ }, jr = /* @__PURE__ */ U({
5586
5589
  __name: "NavItem",
5587
5590
  props: {
5588
5591
  label: {},
@@ -5610,7 +5613,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5610
5613
  }, a = P(() => e.to ? "router-link" : e.href ? "a" : "button"), u = P(() => e.active), g = (d) => {
5611
5614
  t("click", d);
5612
5615
  };
5613
- return (d, l) => (f(), m(sA, null, [
5616
+ return (d, v) => (f(), m(sA, null, [
5614
5617
  (f(), S(we(a.value), Zs({
5615
5618
  to: A.to,
5616
5619
  href: A.href,
@@ -5623,7 +5626,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5623
5626
  ref: n
5624
5627
  }), {
5625
5628
  default: R(() => [
5626
- A.icon ? (f(), m("span", yr, [
5629
+ A.icon ? (f(), m("span", wr, [
5627
5630
  J(H(N), {
5628
5631
  name: A.icon,
5629
5632
  size: "medium",
@@ -5631,7 +5634,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5631
5634
  "stroke-width": 2
5632
5635
  }, null, 8, ["name"])
5633
5636
  ])) : y("", !0),
5634
- A.collapsed ? y("", !0) : (f(), m("span", br, [
5637
+ A.collapsed ? y("", !0) : (f(), m("span", Br, [
5635
5638
  AA(d.$slots, "default", {}, () => [
5636
5639
  oA(T(A.label), 1)
5637
5640
  ], !0)
@@ -5643,17 +5646,17 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5643
5646
  key: 0,
5644
5647
  to: "body"
5645
5648
  }, [
5646
- v("div", {
5649
+ l("div", {
5647
5650
  class: "nav-item-tooltip-teleported",
5648
5651
  style: rA(c.value)
5649
5652
  }, T(A.label), 5)
5650
5653
  ])) : y("", !0)
5651
5654
  ], 64));
5652
5655
  }
5653
- }), Re = /* @__PURE__ */ $(wr, [["__scopeId", "data-v-ef31c18c"]]), Br = {
5656
+ }), Re = /* @__PURE__ */ $(jr, [["__scopeId", "data-v-ef31c18c"]]), Yr = {
5654
5657
  key: 0,
5655
5658
  class: "section-label"
5656
- }, jr = { class: "section-text" }, Yr = { class: "section-collapsed-label" }, Dr = /* @__PURE__ */ U({
5659
+ }, Dr = { class: "section-text" }, kr = { class: "section-collapsed-label" }, Tr = /* @__PURE__ */ U({
5657
5660
  __name: "MenuSection",
5658
5661
  props: {
5659
5662
  label: {},
@@ -5685,22 +5688,22 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5685
5688
  ref_key: "sectionRef",
5686
5689
  ref: e
5687
5690
  }, [
5688
- v("span", Yr, T(A.label.toUpperCase()), 1)
5689
- ], 544)) : (f(), m("div", Br, [
5690
- v("span", jr, T(A.label.toUpperCase()), 1)
5691
+ l("span", kr, T(A.label.toUpperCase()), 1)
5692
+ ], 544)) : (f(), m("div", Yr, [
5693
+ l("span", Dr, T(A.label.toUpperCase()), 1)
5691
5694
  ])),
5692
5695
  A.collapsed && t.value ? (f(), S(EA, {
5693
5696
  key: 2,
5694
5697
  to: "body"
5695
5698
  }, [
5696
- v("div", {
5699
+ l("div", {
5697
5700
  class: "section-tooltip-teleported",
5698
5701
  style: rA(n.value)
5699
5702
  }, T(A.label), 5)
5700
5703
  ])) : y("", !0)
5701
5704
  ], 2));
5702
5705
  }
5703
- }), Ue = /* @__PURE__ */ $(Dr, [["__scopeId", "data-v-dae4aa57"]]), kr = { class: "app-layout" }, Tr = { class: "menu-header-content" }, Gr = { class: "mode-icon" }, Zr = { class: "app-main" }, Hr = { class: "app-footer" }, Jr = { class: "footer-content" }, Cr = { class: "footer-brand" }, Lr = /* @__PURE__ */ U({
5706
+ }), Ue = /* @__PURE__ */ $(Tr, [["__scopeId", "data-v-dae4aa57"]]), Gr = { class: "app-layout" }, Zr = { class: "menu-header-content" }, Hr = { class: "mode-icon" }, Jr = { class: "app-main" }, Cr = { class: "app-footer" }, Lr = { class: "footer-content" }, Er = { class: "footer-brand" }, Xr = /* @__PURE__ */ U({
5704
5707
  __name: "DefaultLayout",
5705
5708
  props: {
5706
5709
  menuItems: { default: () => [
@@ -5754,8 +5757,8 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5754
5757
  }, r = P(() => (d) => {
5755
5758
  if (!e?.path || !d.to)
5756
5759
  return !1;
5757
- const l = e.path;
5758
- return l === d.to || l.startsWith(d.to + "/");
5760
+ const v = e.path;
5761
+ return v === d.to || v.startsWith(d.to + "/");
5759
5762
  }), a = (d) => {
5760
5763
  t("navigate", d);
5761
5764
  }, u = (d) => {
@@ -5763,15 +5766,15 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5763
5766
  }, g = () => {
5764
5767
  t("mode-toggle");
5765
5768
  };
5766
- return (d, l) => (f(), m("div", kr, [
5767
- J(H(Or), {
5769
+ return (d, v) => (f(), m("div", Gr, [
5770
+ J(H(br), {
5768
5771
  collapsed: H(n),
5769
5772
  "onUpdate:collapsed": i,
5770
5773
  headerCollapsed: c.value,
5771
- "onUpdate:headerCollapsed": l[0] || (l[0] = (p) => c.value = p)
5774
+ "onUpdate:headerCollapsed": v[0] || (v[0] = (p) => c.value = p)
5772
5775
  }, {
5773
5776
  header: R(() => [
5774
- v("div", Tr, [
5777
+ l("div", Zr, [
5775
5778
  J(H(ne), { size: "xs" })
5776
5779
  ])
5777
5780
  ]),
@@ -5790,17 +5793,17 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5790
5793
  active: r.value(p),
5791
5794
  collapsed: H(n),
5792
5795
  headerCollapsed: c.value,
5793
- onClick: (M) => a(p.to)
5796
+ onClick: (O) => a(p.to)
5794
5797
  }, null, 8, ["icon", "label", "active", "collapsed", "headerCollapsed", "onClick"]))
5795
5798
  ], 64))), 128))
5796
5799
  ]),
5797
5800
  _: 1
5798
5801
  }, 8, ["collapsed", "headerCollapsed"]),
5799
- v("div", {
5802
+ l("div", {
5800
5803
  class: C(["main-content", { "menu-collapsed": H(n) }])
5801
5804
  }, [
5802
- J(H(mr), { onNavClick: u }, {
5803
- left: R(() => [...l[1] || (l[1] = [])]),
5805
+ J(H(pr), { onNavClick: u }, {
5806
+ left: R(() => [...v[1] || (v[1] = [])]),
5804
5807
  right: R(() => [
5805
5808
  AA(d.$slots, "header-right", {}, () => [
5806
5809
  J(H(mA), {
@@ -5811,7 +5814,7 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5811
5814
  class: C(["mode-toggle", { dark: A.currentMode === "dark" }])
5812
5815
  }, {
5813
5816
  default: R(() => [
5814
- v("span", Gr, T(A.currentMode === "light" ? "🌙" : "☀️"), 1)
5817
+ l("span", Hr, T(A.currentMode === "light" ? "🌙" : "☀️"), 1)
5815
5818
  ]),
5816
5819
  _: 1
5817
5820
  }, 8, ["aria-label", "class"])
@@ -5830,32 +5833,32 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5830
5833
  icon: p.icon,
5831
5834
  label: p.label,
5832
5835
  active: r.value(p),
5833
- onClick: (M) => a(p.to)
5836
+ onClick: (O) => a(p.to)
5834
5837
  }, null, 8, ["icon", "label", "active", "onClick"]))
5835
5838
  ], 64))), 128))
5836
5839
  ]),
5837
5840
  _: 3
5838
5841
  }),
5839
- v("main", Zr, [
5842
+ l("main", Jr, [
5840
5843
  AA(d.$slots, "default", {}, void 0, !0)
5841
5844
  ]),
5842
- v("footer", Hr, [
5845
+ l("footer", Cr, [
5843
5846
  AA(d.$slots, "footer", {}, () => [
5844
- v("div", Jr, [
5845
- v("div", Cr, [
5847
+ l("div", Lr, [
5848
+ l("div", Er, [
5846
5849
  J(H(ne), {
5847
5850
  variant: "small",
5848
5851
  size: "xs"
5849
5852
  }),
5850
- l[2] || (l[2] = v("span", { class: "footer-text" }, "Utopia Design System", -1))
5853
+ v[2] || (v[2] = l("span", { class: "footer-text" }, "Utopia Design System", -1))
5851
5854
  ]),
5852
- l[3] || (l[3] = v("div", { class: "footer-links" }, [
5853
- v("a", {
5855
+ v[3] || (v[3] = l("div", { class: "footer-links" }, [
5856
+ l("a", {
5854
5857
  href: "https://github.com/club-employes/DS",
5855
5858
  target: "_blank",
5856
5859
  rel: "noopener noreferrer"
5857
5860
  }, " GitHub "),
5858
- v("a", {
5861
+ l("a", {
5859
5862
  href: "https://npmjs.com/package/@club-employes/utopia",
5860
5863
  target: "_blank",
5861
5864
  rel: "noopener noreferrer"
@@ -5867,28 +5870,28 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5867
5870
  ], 2)
5868
5871
  ]));
5869
5872
  }
5870
- }), La = /* @__PURE__ */ $(Lr, [["__scopeId", "data-v-d8160ebb"]]), Er = { class: "utopia-auth-layout" }, Xr = { class: "auth-form-section" }, Qr = { class: "auth-form-container" }, hr = { class: "auth-logo" }, Nr = { class: "auth-welcome" }, Fr = { class: "auth-title" }, Ir = {
5873
+ }), Xa = /* @__PURE__ */ $(Xr, [["__scopeId", "data-v-d8160ebb"]]), Qr = { class: "utopia-auth-layout" }, hr = { class: "auth-form-section" }, Nr = { class: "auth-form-container" }, Fr = { class: "auth-logo" }, Ir = { class: "auth-welcome" }, Vr = { class: "auth-title" }, Sr = {
5871
5874
  key: 0,
5872
5875
  class: "wave-emoji"
5873
- }, Vr = { class: "auth-subtitle" }, Sr = { class: "auth-form" }, Wr = {
5876
+ }, Wr = { class: "auth-subtitle" }, Kr = { class: "auth-form" }, Rr = {
5874
5877
  key: 0,
5875
5878
  class: "auth-tips"
5876
- }, Kr = { class: "tips-icon" }, Rr = { class: "tips-content" }, Ur = { class: "tips-title" }, qr = { class: "tips-text" }, _r = {
5879
+ }, Ur = { class: "tips-icon" }, qr = { class: "tips-content" }, _r = { class: "tips-title" }, $r = { class: "tips-text" }, Aa = {
5877
5880
  key: 0,
5878
5881
  class: "tips-contact"
5879
- }, $r = ["href"], Aa = ["href"], ea = { class: "auth-slide-content" }, sa = {
5882
+ }, ea = ["href"], sa = ["href"], ta = { class: "auth-slide-content" }, na = {
5880
5883
  key: 0,
5881
5884
  class: "slide-image-wrapper"
5882
- }, ta = ["src", "alt"], na = {
5885
+ }, oa = ["src", "alt"], ca = {
5883
5886
  key: 1,
5884
5887
  class: "slide-tips"
5885
- }, oa = { class: "tips-icon" }, ca = { class: "tips-text" }, ia = {
5888
+ }, ia = { class: "tips-icon" }, ra = { class: "tips-text" }, aa = {
5886
5889
  key: 2,
5887
5890
  class: "slide-text"
5888
- }, ra = ["innerHTML"], aa = {
5891
+ }, fa = ["innerHTML"], da = {
5889
5892
  key: 1,
5890
5893
  class: "slide-subtitle"
5891
- }, fa = /* @__PURE__ */ U({
5894
+ }, la = /* @__PURE__ */ U({
5892
5895
  __name: "AuthLayout",
5893
5896
  props: {
5894
5897
  title: { default: "Bienvenue" },
@@ -5925,10 +5928,10 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5925
5928
  window.addEventListener("keydown", c);
5926
5929
  }), OA(() => {
5927
5930
  window.removeEventListener("keydown", c);
5928
- }), (i, r) => (f(), m("div", Er, [
5929
- v("div", Xr, [
5930
- v("div", Qr, [
5931
- v("div", hr, [
5931
+ }), (i, r) => (f(), m("div", Qr, [
5932
+ l("div", hr, [
5933
+ l("div", Nr, [
5934
+ l("div", Fr, [
5932
5935
  AA(i.$slots, "logo", {}, () => [
5933
5936
  J(ne, {
5934
5937
  brand: "club-employes",
@@ -5937,53 +5940,53 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
5937
5940
  })
5938
5941
  ], !0)
5939
5942
  ]),
5940
- v("div", Nr, [
5941
- v("h1", Fr, [
5943
+ l("div", Ir, [
5944
+ l("h1", Vr, [
5942
5945
  oA(T(A.title) + " ", 1),
5943
- A.showWaveEmoji ? (f(), m("span", Ir, "👋")) : y("", !0)
5946
+ A.showWaveEmoji ? (f(), m("span", Sr, "👋")) : y("", !0)
5944
5947
  ]),
5945
- v("p", Vr, T(A.subtitle), 1)
5948
+ l("p", Wr, T(A.subtitle), 1)
5946
5949
  ]),
5947
- v("div", Sr, [
5950
+ l("div", Kr, [
5948
5951
  AA(i.$slots, "default", {}, void 0, !0)
5949
5952
  ]),
5950
- A.showTips ? (f(), m("div", Wr, [
5951
- v("div", Kr, [
5953
+ A.showTips ? (f(), m("div", Rr, [
5954
+ l("div", Ur, [
5952
5955
  J(N, {
5953
5956
  name: "Lightbulb",
5954
5957
  size: "large"
5955
5958
  })
5956
5959
  ]),
5957
- v("div", Rr, [
5958
- v("h3", Ur, T(A.tipsTitle), 1),
5959
- v("p", qr, T(A.tipsText), 1),
5960
- A.contactInfo ? (f(), m("div", _r, [
5961
- v("span", null, T(A.contactInfo.text), 1),
5962
- v("a", {
5960
+ l("div", qr, [
5961
+ l("h3", _r, T(A.tipsTitle), 1),
5962
+ l("p", $r, T(A.tipsText), 1),
5963
+ A.contactInfo ? (f(), m("div", Aa, [
5964
+ l("span", null, T(A.contactInfo.text), 1),
5965
+ l("a", {
5963
5966
  href: `tel:${A.contactInfo.phone}`,
5964
5967
  class: "contact-phone"
5965
- }, T(A.contactInfo.phone), 9, $r),
5966
- r[0] || (r[0] = v("span", null, "ou à l'adresse", -1)),
5967
- v("a", {
5968
+ }, T(A.contactInfo.phone), 9, ea),
5969
+ r[0] || (r[0] = l("span", null, "ou à l'adresse", -1)),
5970
+ l("a", {
5968
5971
  href: `mailto:${A.contactInfo.email}`,
5969
5972
  class: "contact-email"
5970
- }, T(A.contactInfo.email), 9, Aa)
5973
+ }, T(A.contactInfo.email), 9, sa)
5971
5974
  ])) : y("", !0)
5972
5975
  ])
5973
5976
  ])) : y("", !0)
5974
5977
  ])
5975
5978
  ]),
5976
- v("div", {
5979
+ l("div", {
5977
5980
  class: C(["auth-slider-section", { "bottomsheet-open": e.value }])
5978
5981
  }, [
5979
- v("div", {
5982
+ l("div", {
5980
5983
  class: "bottomsheet-header",
5981
5984
  onClick: t,
5982
5985
  style: { "pointer-events": "auto" }
5983
5986
  }, [
5984
- r[1] || (r[1] = v("div", { class: "bottomsheet-handle" }, null, -1)),
5985
- r[2] || (r[2] = v("h3", { class: "bottomsheet-title" }, "Mes avantages", -1)),
5986
- v("button", {
5987
+ r[1] || (r[1] = l("div", { class: "bottomsheet-handle" }, null, -1)),
5988
+ r[2] || (r[2] = l("h3", { class: "bottomsheet-title" }, "Mes avantages", -1)),
5989
+ l("button", {
5987
5990
  class: "bottomsheet-toggle",
5988
5991
  onClick: jA(t, ["stop"]),
5989
5992
  "aria-label": "Toggle bottomsheet"
@@ -6006,34 +6009,34 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
6006
6009
  onSlideChange: o
6007
6010
  }, {
6008
6011
  slide: R(({ slide: a }) => [
6009
- v("div", ea, [
6010
- a.image ? (f(), m("div", sa, [
6011
- v("img", {
6012
+ l("div", ta, [
6013
+ a.image ? (f(), m("div", na, [
6014
+ l("img", {
6012
6015
  src: a.image,
6013
6016
  alt: a.alt || "Slide image",
6014
6017
  class: "slide-image"
6015
- }, null, 8, ta)
6018
+ }, null, 8, oa)
6016
6019
  ])) : y("", !0),
6017
- a.tips ? (f(), m("div", na, [
6018
- v("div", oa, [
6020
+ a.tips ? (f(), m("div", ca, [
6021
+ l("div", ia, [
6019
6022
  J(N, {
6020
6023
  name: "Lightbulb",
6021
6024
  size: "large"
6022
6025
  })
6023
6026
  ]),
6024
- v("div", ca, [
6025
- v("strong", null, T(a.tips.title), 1),
6026
- r[3] || (r[3] = v("br", null, null, -1)),
6027
+ l("div", ra, [
6028
+ l("strong", null, T(a.tips.title), 1),
6029
+ r[3] || (r[3] = l("br", null, null, -1)),
6027
6030
  oA(" " + T(a.tips.text), 1)
6028
6031
  ])
6029
6032
  ])) : y("", !0),
6030
- a.title || a.subtitle ? (f(), m("div", ia, [
6033
+ a.title || a.subtitle ? (f(), m("div", aa, [
6031
6034
  a.title ? (f(), m("h2", {
6032
6035
  key: 0,
6033
6036
  class: "slide-title",
6034
6037
  innerHTML: a.title
6035
- }, null, 8, ra)) : y("", !0),
6036
- a.subtitle ? (f(), m("p", aa, T(a.subtitle), 1)) : y("", !0)
6038
+ }, null, 8, fa)) : y("", !0),
6039
+ a.subtitle ? (f(), m("p", da, T(a.subtitle), 1)) : y("", !0)
6037
6040
  ])) : y("", !0)
6038
6041
  ])
6039
6042
  ]),
@@ -6042,58 +6045,58 @@ const Dc = ec, kc = sc, Tc = _o, Gc = qo, Zc = (A, s, e) => {
6042
6045
  ], 2)
6043
6046
  ]));
6044
6047
  }
6045
- }), Ea = /* @__PURE__ */ $(fa, [["__scopeId", "data-v-9996561f"]]);
6048
+ }), Qa = /* @__PURE__ */ $(la, [["__scopeId", "data-v-9996561f"]]);
6046
6049
  export {
6047
- Ea as AuthLayout,
6048
- ka as BalanceCard,
6049
- Ta as BalanceCardGroup,
6050
- ba as BottomSheet,
6051
- Za as Breadcrumbs,
6050
+ Qa as AuthLayout,
6051
+ Ga as BalanceCard,
6052
+ Za as BalanceCardGroup,
6053
+ Ba as BottomSheet,
6054
+ Ja as Breadcrumbs,
6052
6055
  mA as Button,
6053
6056
  rt as Card,
6054
6057
  vt as Checkbox,
6055
6058
  HA as Chip,
6056
- Ga as DataTable,
6057
- La as DefaultLayout,
6059
+ Ha as DataTable,
6060
+ Xa as DefaultLayout,
6058
6061
  Ze as DropDown,
6059
- wa as FeedbackState,
6060
- Ba as FilterChip,
6061
- Ja as FilterPrice,
6062
- mr as Header,
6062
+ ja as FeedbackState,
6063
+ Ya as FilterChip,
6064
+ La as FilterPrice,
6065
+ pr as Header,
6063
6066
  N as Icon,
6064
- ja as InputCode,
6067
+ Da as InputCode,
6065
6068
  te as InputText,
6066
6069
  ht as Link,
6067
6070
  ne as Logo,
6068
- Or as Menu,
6069
- ir as MobileMenu,
6070
- ar as MobileMenuButton,
6071
- Ya as Modal,
6071
+ br as Menu,
6072
+ ar as MobileMenu,
6073
+ dr as MobileMenuButton,
6074
+ ka as Modal,
6072
6075
  Re as NavItem,
6073
- Ca as PageNavigation,
6076
+ Ea as PageNavigation,
6074
6077
  ko as PriceTag,
6075
- Ha as ProductCard,
6078
+ Ca as ProductCard,
6076
6079
  Rt as RangeSlider,
6077
- Da as SearchBox,
6078
- ga as Skeleton,
6079
- ma as SkeletonAvatar,
6080
- za as SkeletonText,
6080
+ Ta as SearchBox,
6081
+ za as Skeleton,
6082
+ pa as SkeletonAvatar,
6083
+ xa as SkeletonText,
6081
6084
  Xo as Slider,
6082
- pa as Switch,
6083
- ya as Text,
6084
- ua as ThemeProvider,
6085
+ Pa as Switch,
6086
+ wa as Text,
6087
+ ma as ThemeProvider,
6085
6088
  _A as Tooltip,
6086
6089
  Is as clubEmployesDark,
6087
6090
  Fs as clubEmployesLight,
6088
- Pa as getActiveTheme,
6091
+ Oa as getActiveTheme,
6089
6092
  Ss as gifteoDark,
6090
6093
  Vs as gifteoLight,
6091
- xa as initializeTheme,
6094
+ Ma as initializeTheme,
6092
6095
  As as isValidThemeName,
6093
- Ma as unlockBrand,
6096
+ ya as unlockBrand,
6094
6097
  Jt as useBreakpoints,
6095
6098
  Lt as useCurrency,
6096
- Oa as useFavicon,
6099
+ ba as useFavicon,
6097
6100
  es as useScrollShadows,
6098
6101
  yA as useTheme
6099
6102
  };