@club-employes/utopia 4.53.0 → 4.55.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 H, provide as js, onMounted as xA, onBeforeUnmount as qe, watch as rA, createElementBlock as m, openBlock as f, renderSlot as AA, normalizeStyle as cA, normalizeClass as C, useSlots as Ys, createCommentVNode as y, Fragment as sA, createBlock as V, createElementVNode as d, createVNode as J, toDisplayString as T, withDirectives as _e, unref as G, vModelDynamic as Ds, createTextVNode as oA, nextTick as uA, 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 x, ref as Z, provide as js, onMounted as xA, onBeforeUnmount as qe, watch as rA, createElementBlock as m, openBlock as f, renderSlot as AA, normalizeStyle as cA, normalizeClass as J, useSlots as Ys, createCommentVNode as y, Fragment as sA, createBlock as S, createElementVNode as d, createVNode as H, toDisplayString as T, withDirectives as _e, unref as G, vModelDynamic as Ds, createTextVNode as oA, nextTick as uA, 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) => {
@@ -12,13 +12,13 @@ const Be = (A, s, e) => {
12
12
  theme: {}
13
13
  },
14
14
  setup(A) {
15
- const s = A, e = P(() => s.theme.name), t = /* @__PURE__ */ new Map(), n = H(!1), o = async (a) => {
15
+ const s = A, e = x(() => s.theme.name), t = /* @__PURE__ */ new Map(), n = Z(!1), o = async (a) => {
16
16
  if (t.has(a))
17
17
  return t.get(a);
18
18
  const u = a.lastIndexOf("-"), g = a.substring(0, u), l = a.substring(u + 1);
19
19
  try {
20
- const v = await Be(/* @__PURE__ */ Object.assign({ "../tokens/generated/club-employes/dark.css": () => import("./dark-CkQ4j_Qu.js"), "../tokens/generated/club-employes/light.css": () => import("./light-CBRrvcJ5.js"), "../tokens/generated/gifteo/dark.css": () => import("./dark-Bugw9CfG.js"), "../tokens/generated/gifteo/light.css": () => import("./light-BS5JGAVQ.js") }), `../tokens/generated/${g}/${l}.css`, 5), p = v.default || v;
21
- return t.set(a, p), p;
20
+ const v = await Be(/* @__PURE__ */ Object.assign({ "../tokens/generated/club-employes/dark.css": () => import("./dark-CkQ4j_Qu.js"), "../tokens/generated/club-employes/light.css": () => import("./light-CBRrvcJ5.js"), "../tokens/generated/gifteo/dark.css": () => import("./dark-Bugw9CfG.js"), "../tokens/generated/gifteo/light.css": () => import("./light-BS5JGAVQ.js") }), `../tokens/generated/${g}/${l}.css`, 5), P = v.default || v;
21
+ return t.set(a, P), P;
22
22
  } catch (v) {
23
23
  return console.warn(`Failed to preload theme CSS for ${a}:`, v), "";
24
24
  }
@@ -54,14 +54,14 @@ const Be = (A, s, e) => {
54
54
  console.log("✅ Theme already preloaded via initializeTheme(), skipping initial injection");
55
55
  const v = a?.textContent;
56
56
  v && t.set(e.value, v);
57
- const p = [
57
+ const P = [
58
58
  "club-employes-light",
59
59
  "club-employes-dark",
60
60
  "gifteo-light",
61
61
  "gifteo-dark"
62
- ].filter((O) => O !== e.value);
62
+ ].filter((M) => M !== e.value);
63
63
  Promise.all(
64
- p.map((O) => o(O))
64
+ P.map((M) => o(M))
65
65
  ).then(() => {
66
66
  console.log("🚀 Other themes preloaded in cache");
67
67
  });
@@ -173,7 +173,7 @@ function $s() {
173
173
  function At() {
174
174
  if (FA !== void 0) return;
175
175
  const A = $s();
176
- FA = H(A.brand), Ae = H(A.mode), ee = H(qs()), se = H(A.isLocked);
176
+ FA = Z(A.brand), Ae = Z(A.mode), ee = Z(qs()), se = Z(A.isLocked);
177
177
  const s = FA, e = Ae, t = ee, n = se;
178
178
  typeof window < "u" && window.addEventListener("utopia:brand-unlocked", () => {
179
179
  n.value = !1, console.log("🎨 useTheme: Brand unlocked");
@@ -203,7 +203,7 @@ const RA = {
203
203
  };
204
204
  function yA() {
205
205
  At(), et();
206
- const A = FA, s = Ae, e = ee, t = se, n = P(() => RA[A.value][s.value]), o = P(() => RA[A.value].name), c = () => {
206
+ const A = FA, s = Ae, e = ee, t = se, n = x(() => RA[A.value][s.value]), o = x(() => RA[A.value].name), c = () => {
207
207
  if (t.value) {
208
208
  console.warn("⚠️ Brand is locked and cannot be changed. Brand is determined by the domain.");
209
209
  return;
@@ -223,19 +223,19 @@ function yA() {
223
223
  e.value = !e.value;
224
224
  }, g = (v) => {
225
225
  e.value = v;
226
- }, l = P(() => Object.keys(RA).map((v) => ({
226
+ }, l = x(() => Object.keys(RA).map((v) => ({
227
227
  key: v,
228
228
  name: RA[v].name
229
229
  })));
230
230
  return {
231
231
  // State
232
232
  currentTheme: n,
233
- currentBrand: P(() => A.value),
234
- currentMode: P(() => s.value),
233
+ currentBrand: x(() => A.value),
234
+ currentMode: x(() => s.value),
235
235
  currentBrandName: o,
236
236
  availableBrands: l,
237
- menuCollapsed: P(() => e.value),
238
- isBrandLocked: P(() => t.value),
237
+ menuCollapsed: x(() => e.value),
238
+ isBrandLocked: x(() => t.value),
239
239
  // Actions
240
240
  toggleBrand: c,
241
241
  toggleMode: i,
@@ -256,7 +256,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
256
256
  class: {}
257
257
  },
258
258
  setup(A) {
259
- const s = A, e = H(""), t = P(() => [
259
+ const s = A, e = Z(""), t = x(() => [
260
260
  "icon",
261
261
  `icon--${{
262
262
  "extra-small": "xs",
@@ -265,7 +265,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
265
265
  large: "lg"
266
266
  }[s.size]}`,
267
267
  s.class
268
- ].filter(Boolean)), n = P(() => s.color ? {
268
+ ].filter(Boolean)), n = x(() => s.color ? {
269
269
  color: `var(${`--theme-colors-${s.color}`})`,
270
270
  "--stroke-width": s.strokeWidth ? String(s.strokeWidth) : "1"
271
271
  } : {}), o = async (i) => {
@@ -290,7 +290,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
290
290
  },
291
291
  { immediate: !0 }
292
292
  ), (i, r) => (f(), m("span", {
293
- class: C(t.value),
293
+ class: J(t.value),
294
294
  style: cA(n.value),
295
295
  "aria-label": A.alt || A.name,
296
296
  role: "img",
@@ -313,37 +313,37 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
313
313
  },
314
314
  emits: ["click"],
315
315
  setup(A, { emit: s }) {
316
- const e = A, t = s, { currentTheme: n } = yA(), o = Ys(), c = P(() => ({
316
+ const e = A, t = s, { currentTheme: n } = yA(), o = Ys(), c = x(() => ({
317
317
  [`utopia-button--${e.variant}`]: !0,
318
318
  [`utopia-button--${e.size}`]: !0,
319
319
  "utopia-button--disabled": e.disabled,
320
320
  "utopia-button--loading": e.loading,
321
321
  "utopia-button--icon-only": e.icon && !o.default || e.loading && !e.icon && o.default,
322
322
  [`utopia-button--${n.value?.mode || "light"}`]: !0
323
- })), i = P(() => ({
323
+ })), i = x(() => ({
324
324
  flexDirection: "row"
325
325
  })), r = (a) => {
326
326
  !e.disabled && !e.loading && t("click", a);
327
327
  };
328
328
  return (a, u) => (f(), m("button", {
329
- class: C(["utopia-button testpp", c.value]),
329
+ class: J(["utopia-button testpp", c.value]),
330
330
  disabled: A.disabled || A.loading,
331
331
  onClick: r,
332
332
  style: cA(i.value),
333
333
  "aria-label": e.ariaLabel
334
334
  }, [
335
335
  A.iconPosition === "left" || !A.icon && A.loading ? (f(), m(sA, { key: 0 }, [
336
- A.loading && A.icon ? (f(), V(F, {
336
+ A.loading && A.icon ? (f(), S(F, {
337
337
  key: 0,
338
338
  name: "Loader-2",
339
339
  class: "utopia-button__icon utopia-button__icon--loading",
340
340
  "stroke-width": "2"
341
- })) : A.loading && !A.icon && a.$slots.default ? (f(), V(F, {
341
+ })) : A.loading && !A.icon && a.$slots.default ? (f(), S(F, {
342
342
  key: 1,
343
343
  name: "Loader-2",
344
344
  class: "utopia-button__icon utopia-button__icon--loading",
345
345
  "stroke-width": "2"
346
- })) : A.icon ? (f(), V(F, {
346
+ })) : A.icon ? (f(), S(F, {
347
347
  key: 2,
348
348
  name: A.icon,
349
349
  class: "utopia-button__icon",
@@ -354,12 +354,12 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
354
354
  AA(a.$slots, "default", {}, void 0, !0)
355
355
  ])) : y("", !0),
356
356
  A.iconPosition === "right" ? (f(), m(sA, { key: 2 }, [
357
- A.loading && A.icon ? (f(), V(F, {
357
+ A.loading && A.icon ? (f(), S(F, {
358
358
  key: 0,
359
359
  name: "Loader-2",
360
360
  class: "utopia-button__icon utopia-button__icon--loading",
361
361
  "stroke-width": "2"
362
- })) : A.icon ? (f(), V(F, {
362
+ })) : A.icon ? (f(), S(F, {
363
363
  key: 1,
364
364
  name: A.icon,
365
365
  class: "utopia-button__icon",
@@ -378,7 +378,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
378
378
  active: { type: Boolean, default: !1 }
379
379
  },
380
380
  setup(A) {
381
- const s = A, e = P(() => ({
381
+ const s = A, e = x(() => ({
382
382
  [`utopia-card--${s.variant}`]: !0,
383
383
  [`utopia-card--${s.size}`]: !0,
384
384
  "utopia-card--disabled": s.disabled,
@@ -386,7 +386,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
386
386
  "utopia-card--active": s.active
387
387
  }));
388
388
  return (t, n) => (f(), m("div", {
389
- class: C(["utopia-card", e.value])
389
+ class: J(["utopia-card", e.value])
390
390
  }, [
391
391
  AA(t.$slots, "default", {}, void 0, !0)
392
392
  ], 2));
@@ -403,7 +403,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
403
403
  },
404
404
  emits: ["update:modelValue"],
405
405
  setup(A, { emit: s }) {
406
- const e = A, t = s, { currentTheme: n } = yA(), o = P(() => ({
406
+ const e = A, t = s, { currentTheme: n } = yA(), o = x(() => ({
407
407
  [`utopia-checkbox--${e.size}`]: !0,
408
408
  "utopia-checkbox--disabled": e.disabled,
409
409
  "utopia-checkbox--checked": e.modelValue,
@@ -413,7 +413,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
413
413
  t("update:modelValue", r.checked);
414
414
  };
415
415
  return (i, r) => (f(), m("label", {
416
- class: C(["utopia-checkbox", o.value])
416
+ class: J(["utopia-checkbox", o.value])
417
417
  }, [
418
418
  d("input", {
419
419
  type: "checkbox",
@@ -423,7 +423,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
423
423
  onChange: c
424
424
  }, null, 40, at),
425
425
  d("div", ft, [
426
- J(F, {
426
+ H(F, {
427
427
  name: "Check",
428
428
  class: "utopia-checkbox__check",
429
429
  "stroke-width": "4"
@@ -449,10 +449,10 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
449
449
  },
450
450
  emits: ["remove"],
451
451
  setup(A, { emit: s }) {
452
- const e = A, t = P(() => {
452
+ const e = A, t = x(() => {
453
453
  const a = {};
454
454
  return e.customColor && (a["background-color"] = `var(${e.customColor})`), e.customTextColor && (a.color = `var(${e.customTextColor})`), a;
455
- }), n = s, { currentTheme: o } = yA(), c = P(() => ({
455
+ }), n = s, { currentTheme: o } = yA(), c = x(() => ({
456
456
  [`utopia-chip--${e.variant}`]: !e.customColor,
457
457
  [`utopia-chip--${e.size}`]: !0,
458
458
  "utopia-chip--disabled": e.disabled,
@@ -460,7 +460,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
460
460
  "utopia-chip--actionable": e.actionable,
461
461
  "utopia-chip--ghost": e.ghost,
462
462
  [`utopia-chip--${o.value?.mode || "light"}`]: !0
463
- })), i = P(() => ({
463
+ })), i = x(() => ({
464
464
  "extra-small": "extra-small",
465
465
  small: "small",
466
466
  medium: "medium",
@@ -469,10 +469,10 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
469
469
  a.stopPropagation(), e.disabled || n("remove");
470
470
  };
471
471
  return (a, u) => (f(), m("div", {
472
- class: C(["utopia-chip", c.value]),
472
+ class: J(["utopia-chip", c.value]),
473
473
  style: cA(t.value)
474
474
  }, [
475
- A.leftIcon ? (f(), V(F, {
475
+ A.leftIcon ? (f(), S(F, {
476
476
  key: 0,
477
477
  name: A.leftIcon,
478
478
  size: i.value,
@@ -490,7 +490,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
490
490
  onClick: r,
491
491
  "aria-label": `Supprimer ${a.$slots.default?.() || "chip"}`
492
492
  }, [
493
- J(F, {
493
+ H(F, {
494
494
  name: "X",
495
495
  size: i.value,
496
496
  class: "utopia-chip__close-icon",
@@ -530,12 +530,12 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
530
530
  },
531
531
  emits: ["update:modelValue", "focus", "blur", "input", "change", "keydown", "paste", "icon-click"],
532
532
  setup(A, { emit: s }) {
533
- const e = A, t = s, n = H(), o = H(e.modelValue), c = P(() => `utopia-input-${Math.random().toString(36).substr(2, 9)}`), i = P(() => e.step ?? 1), r = P(() => e.type === "number" && e.isCode ? "text" : e.type), a = P(() => {
533
+ const e = A, t = s, n = Z(), o = Z(e.modelValue), c = x(() => `utopia-input-${Math.random().toString(36).substr(2, 9)}`), i = x(() => e.step ?? 1), r = x(() => e.type === "number" && e.isCode ? "text" : e.type), a = x(() => {
534
534
  if (e.inputmode)
535
535
  return e.inputmode;
536
536
  if (e.type === "number")
537
537
  return "numeric";
538
- }), u = P(() => ({
538
+ }), u = x(() => ({
539
539
  [`utopia-inputtext--${e.size}`]: !0,
540
540
  [`utopia-inputtext--${e.state}`]: !0,
541
541
  "utopia-inputtext--disabled": e.disabled,
@@ -544,65 +544,65 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
544
544
  "utopia-inputtext--code": e.isCode,
545
545
  "utopia-inputtext--icon-left": e.iconPosition === "left" && (e.icon || e.state === "valid" || e.state === "error"),
546
546
  "utopia-inputtext--icon-right": e.iconPosition === "right" && (e.icon || e.state === "valid" || e.state === "error")
547
- })), g = P(() => ({
547
+ })), g = x(() => ({
548
548
  "utopia-inputtext__field--with-icon": e.icon || e.state === "valid" || e.state === "error",
549
549
  "utopia-inputtext__field--with-icon-left": e.iconPosition === "left" && (e.icon || e.state === "valid" || e.state === "error"),
550
550
  "utopia-inputtext__field--with-icon-right": e.iconPosition === "right" && (e.icon || e.state === "valid" || e.state === "error"),
551
551
  "utopia-inputtext__field--number": e.type === "number",
552
552
  "utopia-inputtext__field--code": e.isCode,
553
553
  "utopia-inputtext__field--numeric-text": e.type === "number" && e.maxlength !== void 0 && e.isCode
554
- })), l = P(() => ({
554
+ })), l = x(() => ({
555
555
  [`utopia-inputtext__message--${e.state}`]: e.state === "error" || e.state === "valid"
556
- })), v = (D) => {
557
- t("focus", D);
558
- }, p = (D) => {
559
- e.forceModelValueOnBlur && (o.value = e.modelValue), t("blur", D);
560
- }, O = (D) => {
561
- const j = D.target;
562
- let z = j.value;
563
- e.isCode && (z = z.charAt(0).toUpperCase(), e.type === "number" ? /^\d$/.test(z) || (z = "") : /^[A-Z0-9]$/.test(z) || (z = ""), j.value = z), o.value = z, t("update:modelValue", z), t("input", D);
564
- }, x = (D) => {
565
- t("change", D);
566
- }, b = (D) => {
556
+ })), v = (k) => {
557
+ t("focus", k);
558
+ }, P = (k) => {
559
+ e.forceModelValueOnBlur && (o.value = e.modelValue), t("blur", k);
560
+ }, M = (k) => {
561
+ const Y = k.target;
562
+ let z = Y.value;
563
+ e.isCode && (z = z.charAt(0).toUpperCase(), e.type === "number" ? /^\d$/.test(z) || (z = "") : /^[A-Z0-9]$/.test(z) || (z = ""), Y.value = z), o.value = z, t("update:modelValue", z), t("input", k);
564
+ }, p = (k) => {
565
+ t("change", k);
566
+ }, b = (k) => {
567
567
  if (e.isCode) {
568
- const j = D.key;
568
+ const Y = k.key;
569
569
  if (e.type === "number") {
570
- if (!/^\d$/.test(j)) {
571
- D.preventDefault();
570
+ if (!/^\d$/.test(Y)) {
571
+ k.preventDefault();
572
572
  return;
573
573
  }
574
- } else if (!/^[A-Za-z0-9]$/.test(j)) {
575
- D.preventDefault();
574
+ } else if (!/^[A-Za-z0-9]$/.test(Y)) {
575
+ k.preventDefault();
576
576
  return;
577
577
  }
578
578
  }
579
- }, k = (D) => {
580
- t("keydown", D);
581
- }, w = (D) => {
582
- t("paste", D);
583
- }, L = (D) => {
584
- e.iconClickable && !e.disabled && !e.readonly && t("icon-click", D);
585
- }, Z = (D) => {
586
- const j = parseFloat(D);
587
- return Number.isFinite(j) ? j : 0;
588
- }, B = (D) => (typeof e.min == "number" && (D = Math.max(D, e.min)), typeof e.max == "number" && (D = Math.min(D, e.max)), D), Q = (D) => {
589
- const j = i.value, z = j && !Number.isInteger(j) ? j.toString().split(".")[1]?.length ?? 0 : 0;
590
- return D.toFixed(z);
591
- }, I = () => {
592
- const D = Z(o.value), j = B(D + i.value), z = Q(j);
579
+ }, D = (k) => {
580
+ t("keydown", k);
581
+ }, B = (k) => {
582
+ t("paste", k);
583
+ }, C = (k) => {
584
+ e.iconClickable && !e.disabled && !e.readonly && t("icon-click", k);
585
+ }, I = (k) => {
586
+ const Y = parseFloat(k);
587
+ return Number.isFinite(Y) ? Y : 0;
588
+ }, L = (k) => (typeof e.min == "number" && (k = Math.max(k, e.min)), typeof e.max == "number" && (k = Math.min(k, e.max)), k), j = (k) => {
589
+ const Y = i.value, z = Y && !Number.isInteger(Y) ? Y.toString().split(".")[1]?.length ?? 0 : 0;
590
+ return k.toFixed(z);
591
+ }, Q = () => {
592
+ const k = I(o.value), Y = L(k + i.value), z = j(Y);
593
593
  o.value = z, t("update:modelValue", z);
594
- }, Y = () => {
595
- const D = Z(o.value), j = B(D - i.value), z = Q(j);
594
+ }, w = () => {
595
+ const k = I(o.value), Y = L(k - i.value), z = j(Y);
596
596
  o.value = z, t("update:modelValue", z);
597
- }, S = (D) => {
598
- o.value = D, uA(() => {
599
- n.value && (n.value.value = D);
597
+ }, N = (k) => {
598
+ o.value = k, uA(() => {
599
+ n.value && (n.value.value = k);
600
600
  });
601
601
  };
602
- return rA(() => e.modelValue, (D) => {
603
- D !== o.value && S(D || "");
604
- }), (D, j) => (f(), m("div", {
605
- class: C(["utopia-inputtext", u.value])
602
+ return rA(() => e.modelValue, (k) => {
603
+ k !== o.value && N(k || "");
604
+ }), (k, Y) => (f(), m("div", {
605
+ class: J(["utopia-inputtext", u.value])
606
606
  }, [
607
607
  A.label ? (f(), m("label", {
608
608
  key: 0,
@@ -612,22 +612,22 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
612
612
  d("div", pt, [
613
613
  (A.icon || A.state === "valid" || A.state === "error") && A.iconPosition === "left" ? (f(), m("div", {
614
614
  key: 0,
615
- class: C(["utopia-inputtext__icon-container utopia-inputtext__icon--left", { "utopia-inputtext__icon--clickable": A.iconClickable }]),
616
- onClick: L
615
+ class: J(["utopia-inputtext__icon-container utopia-inputtext__icon--left", { "utopia-inputtext__icon--clickable": A.iconClickable }]),
616
+ onClick: C
617
617
  }, [
618
- A.state === "valid" ? (f(), V(G(F), {
618
+ A.state === "valid" ? (f(), S(G(F), {
619
619
  key: 0,
620
620
  name: "Check",
621
621
  class: "utopia-inputtext__icon utopia-inputtext__icon--valid",
622
622
  "stroke-width": "2",
623
623
  color: "success"
624
- })) : A.state === "error" ? (f(), V(G(F), {
624
+ })) : A.state === "error" ? (f(), S(G(F), {
625
625
  key: 1,
626
626
  name: "Alert-triangle",
627
627
  class: "utopia-inputtext__icon utopia-inputtext__icon--error",
628
628
  "stroke-width": "2",
629
629
  color: "danger"
630
- })) : A.icon ? (f(), V(G(F), {
630
+ })) : A.icon ? (f(), S(G(F), {
631
631
  key: 2,
632
632
  name: A.icon,
633
633
  class: "utopia-inputtext__icon utopia-inputtext__icon--default",
@@ -639,48 +639,48 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
639
639
  id: c.value,
640
640
  ref_key: "inputRef",
641
641
  ref: n,
642
- "onUpdate:modelValue": j[0] || (j[0] = (z) => o.value = z),
642
+ "onUpdate:modelValue": Y[0] || (Y[0] = (z) => o.value = z),
643
643
  type: r.value,
644
644
  inputmode: a.value,
645
645
  placeholder: A.placeholder,
646
646
  disabled: A.disabled,
647
647
  readonly: A.readonly,
648
648
  maxlength: A.maxlength,
649
- class: C(["utopia-inputtext__field", g.value]),
649
+ class: J(["utopia-inputtext__field", g.value]),
650
650
  min: A.min,
651
651
  max: A.max,
652
652
  step: i.value,
653
653
  onFocus: v,
654
- onBlur: p,
655
- onInput: O,
656
- onChange: x,
654
+ onBlur: P,
655
+ onInput: M,
656
+ onChange: p,
657
657
  onKeypress: b,
658
- onKeydown: k,
659
- onPaste: w
658
+ onKeydown: D,
659
+ onPaste: B
660
660
  }, null, 42, xt), [
661
661
  [Ds, o.value]
662
662
  ]),
663
663
  (A.icon || A.state === "valid" || A.state === "error") && A.iconPosition === "right" ? (f(), m("div", {
664
664
  key: 1,
665
- class: C(["utopia-inputtext__icon-container utopia-inputtext__icon--right", {
665
+ class: J(["utopia-inputtext__icon-container utopia-inputtext__icon--right", {
666
666
  "utopia-inputtext__icon--clickable": A.iconClickable,
667
667
  "utopia-inputtext__icon--right--offset": A.type === "number" && !A.isCode
668
668
  }]),
669
- onClick: L
669
+ onClick: C
670
670
  }, [
671
- A.state === "valid" ? (f(), V(G(F), {
671
+ A.state === "valid" ? (f(), S(G(F), {
672
672
  key: 0,
673
673
  name: "Check",
674
674
  class: "utopia-inputtext__icon utopia-inputtext__icon--valid",
675
675
  "stroke-width": "2",
676
676
  color: "success"
677
- })) : A.state === "error" ? (f(), V(G(F), {
677
+ })) : A.state === "error" ? (f(), S(G(F), {
678
678
  key: 1,
679
679
  name: "Alert-triangle",
680
680
  class: "utopia-inputtext__icon utopia-inputtext__icon--error",
681
681
  "stroke-width": "2",
682
682
  color: "danger"
683
- })) : A.icon ? (f(), V(G(F), {
683
+ })) : A.icon ? (f(), S(G(F), {
684
684
  key: 2,
685
685
  name: A.icon,
686
686
  class: "utopia-inputtext__icon utopia-inputtext__icon--default",
@@ -692,11 +692,11 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
692
692
  d("button", {
693
693
  type: "button",
694
694
  class: "utopia-inputtext__stepper-btn utopia-inputtext__stepper-btn--up",
695
- onClick: I,
695
+ onClick: Q,
696
696
  disabled: A.disabled || A.readonly,
697
697
  tabindex: "-1"
698
698
  }, [
699
- J(G(F), {
699
+ H(G(F), {
700
700
  name: "Chevron-up",
701
701
  "stroke-width": "2"
702
702
  })
@@ -704,11 +704,11 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
704
704
  d("button", {
705
705
  type: "button",
706
706
  class: "utopia-inputtext__stepper-btn utopia-inputtext__stepper-btn--down",
707
- onClick: Y,
707
+ onClick: w,
708
708
  disabled: A.disabled || A.readonly,
709
709
  tabindex: "-1"
710
710
  }, [
711
- J(G(F), {
711
+ H(G(F), {
712
712
  name: "Chevron-down",
713
713
  "stroke-width": "2"
714
714
  })
@@ -717,14 +717,14 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
717
717
  ]),
718
718
  A.message ? (f(), m("div", {
719
719
  key: 1,
720
- class: C(["utopia-inputtext__message", l.value])
720
+ class: J(["utopia-inputtext__message", l.value])
721
721
  }, [
722
- A.state === "error" ? (f(), V(G(F), {
722
+ A.state === "error" ? (f(), S(G(F), {
723
723
  key: 0,
724
724
  name: "Alert-triangle",
725
725
  class: "utopia-inputtext__message-icon",
726
726
  "stroke-width": "2"
727
- })) : A.state === "valid" ? (f(), V(G(F), {
727
+ })) : A.state === "valid" ? (f(), S(G(F), {
728
728
  key: 1,
729
729
  name: "Check",
730
730
  class: "utopia-inputtext__message-icon",
@@ -745,7 +745,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
745
745
  test: {}
746
746
  },
747
747
  setup(A) {
748
- const s = A, e = P(() => {
748
+ const s = A, e = x(() => {
749
749
  const n = s.brand ? `logo--${s.brand}` : "logo--auto-brand";
750
750
  return [
751
751
  "logo",
@@ -754,9 +754,9 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
754
754
  n,
755
755
  s.class
756
756
  ].filter(Boolean);
757
- }), t = P(() => s.brand === "gifteo" ? "Gifteo" : s.brand === "club-employes" ? "Club Employés" : "Logo");
757
+ }), t = x(() => s.brand === "gifteo" ? "Gifteo" : s.brand === "club-employes" ? "Club Employés" : "Logo");
758
758
  return (n, o) => (f(), m("div", {
759
- class: C(e.value),
759
+ class: J(e.value),
760
760
  "aria-label": A.alt || `Logo ${t.value}`,
761
761
  role: "img"
762
762
  }, null, 10, bt));
@@ -773,17 +773,17 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
773
773
  bg: { type: Boolean, default: !1 }
774
774
  },
775
775
  setup(A) {
776
- const s = A, e = P(() => ({
776
+ const s = A, e = x(() => ({
777
777
  "utopia-skeleton--animated": s.animated,
778
778
  "utopia-skeleton--block": s.block,
779
779
  "utopia-skeleton--bg": s.bg
780
- })), t = P(() => ({
780
+ })), t = x(() => ({
781
781
  width: typeof s.width == "number" ? `${s.width}px` : s.width,
782
782
  height: typeof s.height == "number" ? `${s.height}px` : s.height,
783
783
  borderRadius: typeof s.radius == "number" ? `${s.radius}px` : s.radius
784
784
  }));
785
- return (n, o) => (f(), V(we(A.as), {
786
- class: C(["utopia-skeleton", e.value]),
785
+ return (n, o) => (f(), S(we(A.as), {
786
+ class: J(["utopia-skeleton", e.value]),
787
787
  style: cA(t.value)
788
788
  }, {
789
789
  default: R(() => [
@@ -800,16 +800,16 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
800
800
  animated: { type: Boolean, default: !0 }
801
801
  },
802
802
  setup(A) {
803
- const s = A, e = P(() => ({
803
+ const s = A, e = x(() => ({
804
804
  "utopia-skeleton-avatar--animated": s.animated,
805
805
  "utopia-skeleton-avatar--rounded": s.rounded
806
- })), t = P(() => ({
806
+ })), t = x(() => ({
807
807
  width: typeof s.size == "number" ? `${s.size}px` : s.size,
808
808
  height: typeof s.size == "number" ? `${s.size}px` : s.size,
809
809
  borderRadius: s.rounded ? "50%" : "4px"
810
810
  }));
811
811
  return (n, o) => (f(), m("div", {
812
- class: C(["utopia-skeleton-avatar", e.value]),
812
+ class: J(["utopia-skeleton-avatar", e.value]),
813
813
  style: cA(t.value)
814
814
  }, null, 6));
815
815
  }
@@ -823,21 +823,21 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
823
823
  animated: { type: Boolean, default: !1 }
824
824
  },
825
825
  setup(A) {
826
- const s = A, e = P(() => ({
826
+ const s = A, e = x(() => ({
827
827
  "utopia-skeleton-text--animated": s.animated
828
- })), t = P(() => ({
828
+ })), t = x(() => ({
829
829
  "--skeleton-line-height": typeof s.lineHeight == "number" ? `${s.lineHeight}px` : s.lineHeight,
830
830
  "--skeleton-gap": typeof s.gap == "number" ? `${s.gap}px` : s.gap
831
831
  })), n = (o) => ({
832
832
  width: o === s.lines - 1 ? typeof s.lastLineWidth == "number" ? `${s.lastLineWidth}px` : s.lastLineWidth : "100%"
833
833
  });
834
834
  return (o, c) => (f(), m("div", {
835
- class: C(["utopia-skeleton-text", e.value]),
835
+ class: J(["utopia-skeleton-text", e.value]),
836
836
  style: cA(t.value)
837
837
  }, [
838
838
  (f(!0), m(sA, null, aA(A.lines, (i, r) => (f(), m("div", {
839
839
  key: r,
840
- class: C(["utopia-skeleton-text__line", { "utopia-skeleton-text__line--last": r === A.lines - 1 }]),
840
+ class: J(["utopia-skeleton-text__line", { "utopia-skeleton-text__line--last": r === A.lines - 1 }]),
841
841
  style: cA(n(r))
842
842
  }, null, 6))), 128))
843
843
  ], 6));
@@ -855,7 +855,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
855
855
  },
856
856
  emits: ["update:modelValue"],
857
857
  setup(A, { emit: s }) {
858
- const e = A, t = s, { currentTheme: n } = yA(), o = P(() => ({
858
+ const e = A, t = s, { currentTheme: n } = yA(), o = x(() => ({
859
859
  [`utopia-switch--${e.size}`]: !0,
860
860
  "utopia-switch--disabled": e.disabled,
861
861
  "utopia-switch--checked": e.modelValue,
@@ -865,7 +865,7 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
865
865
  t("update:modelValue", r.checked);
866
866
  };
867
867
  return (i, r) => (f(), m("label", {
868
- class: C(["utopia-switch", o.value])
868
+ class: J(["utopia-switch", o.value])
869
869
  }, [
870
870
  d("input", {
871
871
  type: "checkbox",
@@ -876,9 +876,9 @@ const st = ["aria-label", "innerHTML"], tt = /* @__PURE__ */ U({
876
876
  }, null, 40, Yt),
877
877
  d("div", Dt, [
878
878
  d("div", kt, [
879
- J(F, {
879
+ H(F, {
880
880
  name: "Check",
881
- class: C(`utopia-switch__icon ${A.modelValue ? "utopia-switch__icon--visible" : ""}`),
881
+ class: J(`utopia-switch__icon ${A.modelValue ? "utopia-switch__icon--visible" : ""}`),
882
882
  "stroke-width": "4"
883
883
  }, null, 8, ["class"])
884
884
  ])
@@ -948,7 +948,7 @@ function Ta() {
948
948
  } catch (a) {
949
949
  console.warn("Erreur lors de la mise à jour du favicon:", a);
950
950
  }
951
- }, o = P(() => {
951
+ }, o = x(() => {
952
952
  const r = e(A.value);
953
953
  return r ? t(r) : "/favicon.ico";
954
954
  }), c = () => {
@@ -1049,18 +1049,18 @@ function es(A = {}) {
1049
1049
  } = A;
1050
1050
  let c = null;
1051
1051
  o && (c = Zt(n));
1052
- const i = H(), r = H(!1), a = H(!0), u = () => {
1052
+ const i = Z(), r = Z(!1), a = Z(!0), u = () => {
1053
1053
  if (i.value)
1054
1054
  try {
1055
- const { scrollTop: x, scrollHeight: b, clientHeight: k } = i.value;
1056
- if (!(b > k)) {
1055
+ const { scrollTop: p, scrollHeight: b, clientHeight: D } = i.value;
1056
+ if (!(b > D)) {
1057
1057
  r.value = !1, a.value = !1;
1058
1058
  return;
1059
1059
  }
1060
- const L = x <= t, Z = Math.abs(b - k - x) <= e;
1061
- r.value = !L, a.value = !Z;
1062
- } catch (x) {
1063
- console.warn("Error checking scroll position:", x), r.value = !1, a.value = !1;
1060
+ const C = p <= t, I = Math.abs(b - D - p) <= e;
1061
+ r.value = !C, a.value = !I;
1062
+ } catch (p) {
1063
+ console.warn("Error checking scroll position:", p), r.value = !1, a.value = !1;
1064
1064
  }
1065
1065
  }, g = () => {
1066
1066
  u();
@@ -1068,14 +1068,14 @@ function es(A = {}) {
1068
1068
  setTimeout(() => {
1069
1069
  u();
1070
1070
  }, s);
1071
- }, v = (x) => rA(x, (k) => {
1072
- k && uA(() => {
1071
+ }, v = (p) => rA(p, (D) => {
1072
+ D && uA(() => {
1073
1073
  setTimeout(u, s);
1074
1074
  });
1075
- }, { immediate: !0 }), p = P(() => {
1076
- const x = ["scroll-shadows-container"];
1077
- return r.value || x.push("hide-top-shadow"), a.value || x.push("hide-bottom-shadow"), x;
1078
- }), O = P(() => ["scroll-content-hidden-scrollbar"]);
1075
+ }, { immediate: !0 }), P = x(() => {
1076
+ const p = ["scroll-shadows-container"];
1077
+ return r.value || p.push("hide-top-shadow"), a.value || p.push("hide-bottom-shadow"), p;
1078
+ }), M = x(() => ["scroll-content-hidden-scrollbar"]);
1079
1079
  return OA(() => {
1080
1080
  c && c();
1081
1081
  }), {
@@ -1085,8 +1085,8 @@ function es(A = {}) {
1085
1085
  handleScroll: g,
1086
1086
  checkScrollPosition: u,
1087
1087
  initialize: l,
1088
- containerClasses: p,
1089
- scrollClasses: O,
1088
+ containerClasses: P,
1089
+ scrollClasses: M,
1090
1090
  // Fonction bonus pour les cas d'usage spéciaux
1091
1091
  initializeOnChange: v
1092
1092
  };
@@ -1108,7 +1108,7 @@ const Ht = {
1108
1108
  };
1109
1109
  function Lt(A) {
1110
1110
  return {
1111
- currencyIconName: P(() => Ct[A] || "")
1111
+ currencyIconName: x(() => Ct[A] || "")
1112
1112
  };
1113
1113
  }
1114
1114
  const Et = /* @__PURE__ */ U({
@@ -1129,7 +1129,7 @@ const Et = /* @__PURE__ */ U({
1129
1129
  strike: { type: Boolean }
1130
1130
  },
1131
1131
  setup(A) {
1132
- const s = A, e = P(() => ({
1132
+ const s = A, e = x(() => ({
1133
1133
  [s.underline ? "text--underline" : ""]: !0,
1134
1134
  [s.italic ? "text--italic" : ""]: !0,
1135
1135
  [s.strike ? "text--strike" : ""]: !0,
@@ -1140,11 +1140,11 @@ const Et = /* @__PURE__ */ U({
1140
1140
  [`text-align--${s.align}`]: !0,
1141
1141
  [`text-${s.truncate ? "truncate" : "noTruncate"}`]: !0,
1142
1142
  [`text-${s.noWrap ? "noWrap" : "wrap"}`]: !0
1143
- })), t = P(() => s.color ? {
1143
+ })), t = x(() => s.color ? {
1144
1144
  color: `var(${`--theme-colors-${s.color}`})`
1145
1145
  } : {});
1146
- return (n, o) => (f(), V(we(A.as), {
1147
- class: C(e.value),
1146
+ return (n, o) => (f(), S(we(A.as), {
1147
+ class: J(e.value),
1148
1148
  style: cA(t.value)
1149
1149
  }, {
1150
1150
  default: R(() => [
@@ -1164,7 +1164,7 @@ const Et = /* @__PURE__ */ U({
1164
1164
  color: {}
1165
1165
  },
1166
1166
  setup(A) {
1167
- const s = A, e = P(() => ({
1167
+ const s = A, e = x(() => ({
1168
1168
  xs: "extra-small",
1169
1169
  sm: "small",
1170
1170
  base: "medium",
@@ -1176,7 +1176,7 @@ const Et = /* @__PURE__ */ U({
1176
1176
  "5xl": "large"
1177
1177
  })[s.size]);
1178
1178
  return (t, n) => (f(), m(sA, null, [
1179
- A.iconLeft ? (f(), V(F, {
1179
+ A.iconLeft ? (f(), S(F, {
1180
1180
  key: 0,
1181
1181
  name: A.iconLeft,
1182
1182
  size: e.value,
@@ -1184,7 +1184,7 @@ const Et = /* @__PURE__ */ U({
1184
1184
  "stroke-width": 2,
1185
1185
  class: "utopia-link-content__icon"
1186
1186
  }, null, 8, ["name", "size", "color"])) : y("", !0),
1187
- J(Xt, {
1187
+ H(Xt, {
1188
1188
  size: s.size,
1189
1189
  weight: s.weight,
1190
1190
  color: s.color
@@ -1194,7 +1194,7 @@ const Et = /* @__PURE__ */ U({
1194
1194
  ]),
1195
1195
  _: 1
1196
1196
  }, 8, ["size", "weight", "color"]),
1197
- A.iconRight ? (f(), V(F, {
1197
+ A.iconRight ? (f(), S(F, {
1198
1198
  key: 1,
1199
1199
  name: A.iconRight,
1200
1200
  size: e.value,
@@ -1223,7 +1223,7 @@ function Ft(A) {
1223
1223
  } : null;
1224
1224
  }
1225
1225
  function Nt(A) {
1226
- return P(() => {
1226
+ return x(() => {
1227
1227
  const s = A.value, e = Ft(s);
1228
1228
  if (!e) return `${s}-100`;
1229
1229
  const { prefix: t, level: n } = e, o = ht[t];
@@ -1233,7 +1233,7 @@ function Nt(A) {
1233
1233
  });
1234
1234
  }
1235
1235
  function It(A, s, e) {
1236
- return P(() => {
1236
+ return x(() => {
1237
1237
  const t = A.value, n = s.value;
1238
1238
  return e.value ? "text-muted" : t ? n ? t : Nt(A).value : "current-color";
1239
1239
  });
@@ -1254,10 +1254,10 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1254
1254
  disabled: { type: Boolean, default: !1 }
1255
1255
  },
1256
1256
  setup(A) {
1257
- const s = A, { currentTheme: e } = yA(), t = P(() => s.active && !s.disabled), n = It(
1258
- P(() => s.color),
1257
+ const s = A, { currentTheme: e } = yA(), t = x(() => s.active && !s.disabled), n = It(
1258
+ x(() => s.color),
1259
1259
  t,
1260
- P(() => s.disabled)
1260
+ x(() => s.disabled)
1261
1261
  ), o = {
1262
1262
  xs: 1,
1263
1263
  sm: 1,
@@ -1277,23 +1277,23 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1277
1277
  bold: 1.2,
1278
1278
  extrabold: 1.3,
1279
1279
  black: 1.5
1280
- }, i = P(() => {
1280
+ }, i = x(() => {
1281
1281
  const g = o[s.size] ?? 2, l = c[s.weight] ?? 1;
1282
1282
  return `${g * l}px`;
1283
- }), r = P(() => ({
1283
+ }), r = x(() => ({
1284
1284
  "--link-color": n.value === "current-color" ? "currentColor" : `var(--theme-colors-${n.value})`,
1285
1285
  "--link-height": i.value
1286
- })), a = P(() => ({
1286
+ })), a = x(() => ({
1287
1287
  [`utopia-link--${s.size}`]: !0,
1288
1288
  "utopia-link--disabled": s.disabled,
1289
1289
  [`utopia-link--${e.value?.mode || "light"}`]: !0
1290
- })), u = P(() => s.to.startsWith("http"));
1290
+ })), u = x(() => s.to.startsWith("http"));
1291
1291
  return (g, l) => A.disabled ? (f(), m("div", {
1292
1292
  key: 0,
1293
- class: C(["utopia-link", a.value]),
1293
+ class: J(["utopia-link", a.value]),
1294
1294
  style: cA(r.value)
1295
1295
  }, [
1296
- J($A, {
1296
+ H($A, {
1297
1297
  label: A.label,
1298
1298
  iconLeft: A.iconLeft,
1299
1299
  iconRight: A.iconRight,
@@ -1305,10 +1305,10 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1305
1305
  key: 1,
1306
1306
  href: A.to,
1307
1307
  target: A.target,
1308
- class: C(["utopia-link", a.value]),
1308
+ class: J(["utopia-link", a.value]),
1309
1309
  style: cA(r.value)
1310
1310
  }, [
1311
- J($A, {
1311
+ H($A, {
1312
1312
  label: A.label,
1313
1313
  iconLeft: A.iconLeft,
1314
1314
  iconRight: A.iconRight,
@@ -1316,14 +1316,14 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1316
1316
  weight: A.weight,
1317
1317
  color: G(n)
1318
1318
  }, null, 8, ["label", "iconLeft", "iconRight", "size", "weight", "color"])
1319
- ], 14, Vt)) : (f(), V(G(Hs), {
1319
+ ], 14, Vt)) : (f(), S(G(Hs), {
1320
1320
  key: 2,
1321
1321
  to: A.to,
1322
- class: C(["utopia-link", a.value]),
1322
+ class: J(["utopia-link", a.value]),
1323
1323
  style: cA(r.value)
1324
1324
  }, {
1325
1325
  default: R(() => [
1326
- J($A, {
1326
+ H($A, {
1327
1327
  label: A.label,
1328
1328
  iconLeft: A.iconLeft,
1329
1329
  iconRight: A.iconRight,
@@ -1353,63 +1353,63 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1353
1353
  },
1354
1354
  emits: ["update-value"],
1355
1355
  setup(A, { emit: s }) {
1356
- const e = A, t = P(() => Array.isArray(e.currentValue)), n = P(() => Array.isArray(e.currentValue) ? e.currentValue[0] > e.currentValue[1] ? e.currentValue[0] : Math.min(Math.max(e.currentValue[0], e.min), e.currentValue[1]) : e.min), o = P(() => Array.isArray(e.currentValue) ? e.currentValue[1] < e.currentValue[0] ? e.currentValue[0] : Math.max(Math.min(e.currentValue[1], e.max), e.currentValue[0]) : Math.min(e.currentValue, e.max)), c = P(() => ({
1356
+ const e = A, t = x(() => Array.isArray(e.currentValue)), n = x(() => Array.isArray(e.currentValue) ? e.currentValue[0] > e.currentValue[1] ? e.currentValue[0] : Math.min(Math.max(e.currentValue[0], e.min), e.currentValue[1]) : e.min), o = x(() => Array.isArray(e.currentValue) ? e.currentValue[1] < e.currentValue[0] ? e.currentValue[0] : Math.max(Math.min(e.currentValue[1], e.max), e.currentValue[0]) : Math.min(e.currentValue, e.max)), c = x(() => ({
1357
1357
  [`utopia-rangeslider__input--${e.size}`]: !0
1358
- })), i = P(() => ({
1358
+ })), i = x(() => ({
1359
1359
  [`utopia-rangeslider__input-from--${e.size}`]: !0
1360
- })), r = s, a = (w) => {
1361
- const L = w.target;
1362
- r("update-value", L.valueAsNumber);
1363
- }, u = (w) => {
1364
- const L = w.target;
1360
+ })), r = s, a = (B) => {
1361
+ const C = B.target;
1362
+ r("update-value", C.valueAsNumber);
1363
+ }, u = (B) => {
1364
+ const C = B.target;
1365
1365
  if (t.value) {
1366
- const Z = Math.min(L.valueAsNumber, o.value);
1367
- r("update-value", [Z, o.value]);
1366
+ const I = Math.min(C.valueAsNumber, o.value);
1367
+ r("update-value", [I, o.value]);
1368
1368
  }
1369
- }, g = (w) => {
1370
- const L = w.target;
1369
+ }, g = (B) => {
1370
+ const C = B.target;
1371
1371
  if (t.value) {
1372
- const Z = Math.max(n.value, L.valueAsNumber);
1373
- r("update-value", [n.value, Z]);
1372
+ const I = Math.max(n.value, C.valueAsNumber);
1373
+ r("update-value", [n.value, I]);
1374
1374
  }
1375
- }, l = P(() => {
1376
- const w = t.value ? n.value : 0, L = e.max - e.min;
1377
- return (w - e.min) / L * 100;
1378
- }), v = P(() => {
1379
- const w = (t.value, o.value), L = e.max - e.min;
1380
- return (w - e.min) / L * 100;
1381
- }), p = P(() => {
1382
- const w = "var(--theme-colors-brand-secondary-100)", L = "var(--theme-colors-brand-primary-500)";
1375
+ }, l = x(() => {
1376
+ const B = t.value ? n.value : 0, C = e.max - e.min;
1377
+ return (B - e.min) / C * 100;
1378
+ }), v = x(() => {
1379
+ const B = (t.value, o.value), C = e.max - e.min;
1380
+ return (B - e.min) / C * 100;
1381
+ }), P = x(() => {
1382
+ const B = "var(--theme-colors-brand-secondary-100)", C = "var(--theme-colors-brand-primary-500)";
1383
1383
  return {
1384
1384
  background: `linear-gradient(
1385
1385
  to right,
1386
- ${w} 0%,
1387
- ${w} ${l.value}%,
1388
- ${L} ${l.value}%,
1389
- ${L} ${v.value}%,
1390
- ${w} ${v.value}%,
1391
- ${w} 100%)`
1386
+ ${B} 0%,
1387
+ ${B} ${l.value}%,
1388
+ ${C} ${l.value}%,
1389
+ ${C} ${v.value}%,
1390
+ ${B} ${v.value}%,
1391
+ ${B} 100%)`
1392
1392
  };
1393
- }), O = H(null), x = H(null), b = H(null), k = P(() => {
1394
- const w = O.value?.offsetWidth || 0, L = x.value?.offsetWidth || 0, Z = b.value?.offsetWidth || 0, B = L + Z + (t.value ? 12 : 0), Q = w - B;
1395
- let I = l.value * w * (1 - L / w) / 100, Y = (100 - v.value) * w * (1 - Z / w) / 100;
1396
- return I + Y > Q && (I > Y ? I = Q - Y : Y = Q - I), {
1397
- "padding-left": `calc(${I}px)`,
1398
- "padding-right": `calc(${Y}px)`,
1393
+ }), M = Z(null), p = Z(null), b = Z(null), D = x(() => {
1394
+ const B = M.value?.offsetWidth || 0, C = p.value?.offsetWidth || 0, I = b.value?.offsetWidth || 0, L = C + I + (t.value ? 12 : 0), j = B - L;
1395
+ let Q = l.value * B * (1 - C / B) / 100, w = (100 - v.value) * B * (1 - I / B) / 100;
1396
+ return Q + w > j && (Q > w ? Q = j - w : w = j - Q), {
1397
+ "padding-left": `calc(${Q}px)`,
1398
+ "padding-right": `calc(${w}px)`,
1399
1399
  "justify-content": t.value ? "space-between" : "flex-end",
1400
1400
  gap: t.value ? "var(--spacing-2, 8px)" : "0"
1401
1401
  };
1402
1402
  });
1403
1403
  return xA(() => {
1404
- O.value = ze("sliderRef"), x.value = ze("fromValueRef"), b.value = ze("toValueRef");
1405
- }), (w, L) => (f(), m("div", {
1404
+ M.value = ze("sliderRef"), p.value = ze("fromValueRef"), b.value = ze("toValueRef");
1405
+ }), (B, C) => (f(), m("div", {
1406
1406
  class: "utopia-rangeslider",
1407
1407
  ref_key: "sliderRef",
1408
- ref: O
1408
+ ref: M
1409
1409
  }, [
1410
1410
  t.value ? (f(), m("div", Kt, [
1411
1411
  d("input", {
1412
- class: C(["utopia-rangeslider__input utopia-rangeslider__input-from", [c.value, i.value]]),
1412
+ class: J(["utopia-rangeslider__input utopia-rangeslider__input-from", [c.value, i.value]]),
1413
1413
  type: "range",
1414
1414
  min: A.min,
1415
1415
  max: A.max,
@@ -1417,8 +1417,8 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1417
1417
  onInput: u
1418
1418
  }, null, 42, Rt),
1419
1419
  d("input", {
1420
- class: C(["utopia-rangeslider__input utopia-rangeslider__input-to", c.value]),
1421
- style: cA(p.value),
1420
+ class: J(["utopia-rangeslider__input utopia-rangeslider__input-to", c.value]),
1421
+ style: cA(P.value),
1422
1422
  type: "range",
1423
1423
  min: A.min,
1424
1424
  max: A.max,
@@ -1427,25 +1427,25 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1427
1427
  }, null, 46, Ut)
1428
1428
  ])) : (f(), m("div", qt, [
1429
1429
  d("input", {
1430
- class: C(["utopia-rangeslider__input", c.value]),
1431
- style: cA(p.value),
1430
+ class: J(["utopia-rangeslider__input", c.value]),
1431
+ style: cA(P.value),
1432
1432
  type: "range",
1433
1433
  min: A.min,
1434
1434
  max: A.max,
1435
1435
  value: typeof A.currentValue == "number" ? A.currentValue : A.min,
1436
1436
  onInput: a
1437
1437
  }, null, 46, _t),
1438
- L[0] || (L[0] = d("div", { class: "utopia-rangeslider__progress" }, null, -1))
1438
+ C[0] || (C[0] = d("div", { class: "utopia-rangeslider__progress" }, null, -1))
1439
1439
  ])),
1440
1440
  d("div", {
1441
1441
  class: "utopia-rangeslider__range-values-container",
1442
- style: cA(k.value)
1442
+ style: cA(D.value)
1443
1443
  }, [
1444
1444
  t.value ? (f(), m("div", {
1445
1445
  key: 0,
1446
1446
  class: "utopia-rangeslider__range-value",
1447
1447
  ref_key: "fromValueRef",
1448
- ref: x
1448
+ ref: p
1449
1449
  }, T(n.value) + T(A.unit ? ` ${A.unit}` : ""), 513)) : y("", !0),
1450
1450
  d("div", {
1451
1451
  class: "utopia-rangeslider__range-value",
@@ -1474,7 +1474,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1474
1474
  },
1475
1475
  emits: ["update:modelValue"],
1476
1476
  setup(A, { emit: s }) {
1477
- const e = A, t = s, n = P(() => [
1477
+ const e = A, t = s, n = x(() => [
1478
1478
  `bottomsheet--${e.variant}`,
1479
1479
  { "bottomsheet--disabled": e.disabled }
1480
1480
  ]), o = typeof document < "u" ? document.body : null, c = $e(o);
@@ -1490,8 +1490,8 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1490
1490
  const i = () => {
1491
1491
  !e.closeOnOverlayClick || e.disabled || t("update:modelValue", !1);
1492
1492
  };
1493
- return (r, a) => (f(), V(EA, { to: "body" }, [
1494
- J(DA, { name: "utopia-fade" }, {
1493
+ return (r, a) => (f(), S(EA, { to: "body" }, [
1494
+ H(DA, { name: "utopia-fade" }, {
1495
1495
  default: R(() => [
1496
1496
  A.modelValue ? (f(), m("div", {
1497
1497
  key: 0,
@@ -1501,11 +1501,11 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1501
1501
  ]),
1502
1502
  _: 1
1503
1503
  }),
1504
- J(DA, { name: "utopia-bottom-sheet" }, {
1504
+ H(DA, { name: "utopia-bottom-sheet" }, {
1505
1505
  default: R(() => [
1506
1506
  A.modelValue ? (f(), m("div", en, [
1507
1507
  d("div", {
1508
- class: C(["bottomsheet", n.value])
1508
+ class: J(["bottomsheet", n.value])
1509
1509
  }, [
1510
1510
  a[0] || (a[0] = d("div", { class: "bottomsheet__handle" }, null, -1)),
1511
1511
  A.title ? (f(), m("h3", sn, T(A.title), 1)) : y("", !0),
@@ -1563,15 +1563,15 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1563
1563
  },
1564
1564
  emits: ["update:modelValue", "change", "open", "close", "focus", "blur"],
1565
1565
  setup(A, { emit: s }) {
1566
- const e = A, t = s, n = H(), o = H(), c = H();
1567
- H();
1568
- const i = H(), r = H(!1), a = H(!1), u = H(!1), g = H(""), l = H(-1), v = H({ 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(
1566
+ const e = A, t = s, n = Z(), o = Z(), c = Z();
1567
+ Z();
1568
+ const i = Z(), r = Z(!1), a = Z(!1), u = Z(!1), g = Z(""), l = Z(-1), v = Z({ top: "0px", left: "0px", width: "0px" }), P = x(() => `utopia-dropdown-${Math.random().toString(36).substr(2, 9)}`), M = x(() => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.length > 0 : e.modelValue !== "" && e.modelValue !== null && e.modelValue !== void 0), p = x(() => !e.multiple || !Array.isArray(e.modelValue) ? [] : e.options.filter(
1569
1569
  (X) => e.modelValue.includes(X.value)
1570
- )), b = P(() => 2), k = P(() => {
1570
+ )), b = x(() => 2), D = x(() => {
1571
1571
  if (!i.value) return !1;
1572
1572
  const { scrollWidth: X, clientWidth: _ } = i.value;
1573
1573
  return X > _ + 2;
1574
- }), w = () => {
1574
+ }), B = () => {
1575
1575
  if (!i.value) return;
1576
1576
  const { scrollLeft: X, scrollWidth: _, clientWidth: $ } = i.value, nA = _ > $ + 2;
1577
1577
  if (!nA) {
@@ -1580,45 +1580,45 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1580
1580
  }
1581
1581
  const MA = X <= 1, me = Math.abs(_ - $ - X) <= 1;
1582
1582
  r.value = nA && !MA, a.value = nA && !me;
1583
- }, L = P(() => e.multiple && e.searchable ? "400px" : e.maxHeight || "300px"), Z = P(() => {
1584
- if (!O.value)
1583
+ }, C = x(() => e.multiple && e.searchable ? "400px" : e.maxHeight || "300px"), I = x(() => {
1584
+ if (!M.value)
1585
1585
  return e.placeholder;
1586
1586
  if (e.multiple && Array.isArray(e.modelValue)) {
1587
- const _ = x.value;
1587
+ const _ = p.value;
1588
1588
  return _.length === 0 ? e.placeholder : _.length === 1 ? _[0].label : `${_.length} éléments sélectionnés`;
1589
1589
  }
1590
1590
  return e.options.find((_) => _.value === e.modelValue)?.label || e.placeholder;
1591
- }), B = P(() => !e.searchable || !g.value ? e.options : e.options.filter(
1591
+ }), L = x(() => !e.searchable || !g.value ? e.options : e.options.filter(
1592
1592
  (X) => X.label.toLowerCase().includes(g.value.toLowerCase())
1593
- )), Q = P(() => ({
1593
+ )), j = x(() => ({
1594
1594
  [`utopia-dropdown--${e.size}`]: !0,
1595
1595
  [`utopia-dropdown--${e.state}`]: !0,
1596
1596
  "utopia-dropdown--disabled": e.disabled,
1597
1597
  "utopia-dropdown--multiple": e.multiple,
1598
1598
  "utopia-dropdown--open": u.value,
1599
1599
  "utopia-dropdown--with-message": e.message
1600
- })), I = P(() => ({
1601
- "utopia-dropdown__trigger--with-clear": e.clearable && O.value,
1600
+ })), Q = x(() => ({
1601
+ "utopia-dropdown__trigger--with-clear": e.clearable && M.value,
1602
1602
  "utopia-dropdown__trigger--with-state": e.state === "valid" || e.state === "error",
1603
1603
  "utopia-dropdown__trigger--open": u.value
1604
- })), Y = P(() => ({
1604
+ })), w = x(() => ({
1605
1605
  [`utopia-dropdown__message--${e.state}`]: e.state === "error" || e.state === "valid"
1606
- })), S = (X) => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.includes(X) : e.modelValue === X, D = (X, _) => ({
1607
- "utopia-dropdown__option--selected": S(X.value),
1606
+ })), N = (X) => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.includes(X) : e.modelValue === X, k = (X, _) => ({
1607
+ "utopia-dropdown__option--selected": N(X.value),
1608
1608
  "utopia-dropdown__option--highlighted": l.value === _,
1609
1609
  "utopia-dropdown__option--disabled": X.disabled
1610
- }), j = () => {
1610
+ }), Y = () => {
1611
1611
  if (!n.value) return;
1612
- const X = n.value.getBoundingClientRect(), $ = window.innerHeight - X.bottom, nA = X.top, MA = parseInt(L.value.replace("px", "")) || 300, me = $ < MA && nA > MA;
1612
+ const X = n.value.getBoundingClientRect(), $ = window.innerHeight - X.bottom, nA = X.top, MA = parseInt(C.value.replace("px", "")) || 300, me = $ < MA && nA > MA;
1613
1613
  v.value = {
1614
1614
  top: me ? `${X.top - Math.min(MA, nA) - 4}px` : `${X.bottom + 4}px`,
1615
1615
  left: `${X.left}px`,
1616
1616
  width: `${X.width}px`
1617
1617
  };
1618
1618
  }, z = () => {
1619
- e.disabled || e.readonly || (u.value ? E() : M());
1620
- }, M = async () => {
1621
- if (!(e.disabled || e.readonly) && (j(), u.value = !0, l.value = -1, g.value = "", t("open"), await uA(), e.searchable && c.value))
1619
+ e.disabled || e.readonly || (u.value ? E() : O());
1620
+ }, O = async () => {
1621
+ if (!(e.disabled || e.readonly) && (Y(), u.value = !0, l.value = -1, g.value = "", t("open"), await uA(), e.searchable && c.value))
1622
1622
  try {
1623
1623
  const X = c.value?.$el?.querySelector("input");
1624
1624
  X && X.focus();
@@ -1636,7 +1636,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1636
1636
  } else
1637
1637
  _ = X.value, E();
1638
1638
  t("update:modelValue", _), t("change", _);
1639
- }, N = () => {
1639
+ }, V = () => {
1640
1640
  const X = e.multiple ? [] : "";
1641
1641
  t("update:modelValue", X), t("change", X);
1642
1642
  }, W = (X) => {
@@ -1650,7 +1650,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1650
1650
  X.preventDefault(), z();
1651
1651
  break;
1652
1652
  case "ArrowDown":
1653
- X.preventDefault(), u.value ? l.value = Math.min(l.value + 1, B.value.length - 1) : M();
1653
+ X.preventDefault(), u.value ? l.value = Math.min(l.value + 1, L.value.length - 1) : O();
1654
1654
  break;
1655
1655
  case "ArrowUp":
1656
1656
  X.preventDefault(), u.value && (l.value = Math.max(l.value - 1, 0));
@@ -1665,13 +1665,13 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1665
1665
  }, eA = (X) => {
1666
1666
  switch (X.key) {
1667
1667
  case "ArrowDown":
1668
- X.preventDefault(), l.value = Math.min(l.value + 1, B.value.length - 1);
1668
+ X.preventDefault(), l.value = Math.min(l.value + 1, L.value.length - 1);
1669
1669
  break;
1670
1670
  case "ArrowUp":
1671
1671
  X.preventDefault(), l.value = Math.max(l.value - 1, 0);
1672
1672
  break;
1673
1673
  case "Enter":
1674
- X.preventDefault(), l.value >= 0 && B.value[l.value] && h(B.value[l.value]);
1674
+ X.preventDefault(), l.value >= 0 && L.value[l.value] && h(L.value[l.value]);
1675
1675
  break;
1676
1676
  case "Escape":
1677
1677
  X.preventDefault(), E();
@@ -1685,29 +1685,29 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1685
1685
  const _ = X.target;
1686
1686
  u.value && n.value && o.value && !n.value.contains(_) && !o.value.contains(_) && E();
1687
1687
  }, iA = () => {
1688
- u.value && j();
1688
+ u.value && Y();
1689
1689
  };
1690
1690
  return xA(() => {
1691
1691
  document.addEventListener("click", fA), window.addEventListener("resize", iA), window.addEventListener("scroll", iA, !0), setTimeout(() => {
1692
- w();
1692
+ B();
1693
1693
  }, 100);
1694
1694
  }), OA(() => {
1695
1695
  document.removeEventListener("click", fA), window.removeEventListener("resize", iA), window.removeEventListener("scroll", iA, !0);
1696
1696
  }), (X, _) => (f(), m("div", {
1697
- class: C(["utopia-dropdown", Q.value])
1697
+ class: J(["utopia-dropdown", j.value])
1698
1698
  }, [
1699
1699
  A.label ? (f(), m("label", {
1700
1700
  key: 0,
1701
1701
  class: "utopia-dropdown__label",
1702
- for: p.value
1702
+ for: P.value
1703
1703
  }, T(A.label), 9, on)) : y("", !0),
1704
1704
  d("div", cn, [
1705
1705
  d("button", {
1706
- id: p.value,
1706
+ id: P.value,
1707
1707
  ref_key: "triggerRef",
1708
1708
  ref: n,
1709
1709
  type: "button",
1710
- class: C(["utopia-dropdown__trigger", I.value]),
1710
+ class: J(["utopia-dropdown__trigger", Q.value]),
1711
1711
  disabled: A.disabled,
1712
1712
  "aria-expanded": u.value,
1713
1713
  "aria-haspopup": !0,
@@ -1717,21 +1717,21 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1717
1717
  onBlur: dA
1718
1718
  }, [
1719
1719
  d("div", {
1720
- class: C(["utopia-dropdown__value", { "utopia-dropdown__value--placeholder": !O.value }])
1720
+ class: J(["utopia-dropdown__value", { "utopia-dropdown__value--placeholder": !M.value }])
1721
1721
  }, [
1722
1722
  A.multiple ? (f(), m(sA, { key: 1 }, [
1723
- O.value ? (f(), m("div", {
1723
+ M.value ? (f(), m("div", {
1724
1724
  class: "utopia-dropdown__chips-wrapper",
1725
- key: `chips-${x.value.length}`
1725
+ key: `chips-${p.value.length}`
1726
1726
  }, [
1727
- r.value && k.value ? (f(), m("div", fn)) : y("", !0),
1727
+ r.value && D.value ? (f(), m("div", fn)) : y("", !0),
1728
1728
  d("div", {
1729
1729
  ref_key: "chipsScrollRef",
1730
1730
  ref: i,
1731
1731
  class: "utopia-dropdown__chips",
1732
- onScroll: w
1732
+ onScroll: B
1733
1733
  }, [
1734
- (f(!0), m(sA, null, aA(x.value.slice(0, b.value), ($) => (f(), V(G(HA), {
1734
+ (f(!0), m(sA, null, aA(p.value.slice(0, b.value), ($) => (f(), S(G(HA), {
1735
1735
  key: `chip-${$.value}`,
1736
1736
  size: "small",
1737
1737
  variant: "default",
@@ -1744,22 +1744,22 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1744
1744
  ]),
1745
1745
  _: 2
1746
1746
  }, 1032, ["onRemove"]))), 128)),
1747
- x.value.length > b.value ? (f(), m("span", ln, " +" + T(x.value.length - b.value) + " autres ", 1)) : y("", !0)
1747
+ p.value.length > b.value ? (f(), m("span", ln, " +" + T(p.value.length - b.value) + " autres ", 1)) : y("", !0)
1748
1748
  ], 544),
1749
- a.value && k.value ? (f(), m("div", dn)) : y("", !0)
1749
+ a.value && D.value ? (f(), m("div", dn)) : y("", !0)
1750
1750
  ])) : (f(), m("span", vn, T(A.placeholder), 1))
1751
- ], 64)) : (f(), m("span", an, T(Z.value), 1))
1751
+ ], 64)) : (f(), m("span", an, T(I.value), 1))
1752
1752
  ], 2),
1753
- A.clearable && O.value && !A.disabled ? (f(), m("div", {
1753
+ A.clearable && M.value && !A.disabled ? (f(), m("div", {
1754
1754
  key: 0,
1755
1755
  size: "sm",
1756
1756
  class: "utopia-dropdown__clear",
1757
- onClick: jA(N, ["stop"]),
1757
+ onClick: jA(V, ["stop"]),
1758
1758
  onMousedown: _[0] || (_[0] = jA(() => {
1759
1759
  }, ["prevent"])),
1760
1760
  icon: "X"
1761
1761
  }, [
1762
- J(G(F), {
1762
+ H(G(F), {
1763
1763
  name: "X",
1764
1764
  "stroke-width": "2",
1765
1765
  size: "small",
@@ -1767,21 +1767,21 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1767
1767
  })
1768
1768
  ], 32)) : y("", !0),
1769
1769
  d("div", {
1770
- class: C(["utopia-dropdown__chevron", { "utopia-dropdown__chevron--open": u.value }])
1770
+ class: J(["utopia-dropdown__chevron", { "utopia-dropdown__chevron--open": u.value }])
1771
1771
  }, [
1772
- J(G(F), {
1772
+ H(G(F), {
1773
1773
  name: "Chevron-down",
1774
1774
  "stroke-width": "2"
1775
1775
  })
1776
1776
  ], 2),
1777
1777
  A.state === "valid" || A.state === "error" ? (f(), m("div", un, [
1778
- A.state === "valid" ? (f(), V(G(F), {
1778
+ A.state === "valid" ? (f(), S(G(F), {
1779
1779
  key: 0,
1780
1780
  name: "Check",
1781
1781
  class: "utopia-dropdown__state-icon--valid",
1782
1782
  "stroke-width": "2",
1783
1783
  color: "success"
1784
- })) : A.state === "error" ? (f(), V(G(F), {
1784
+ })) : A.state === "error" ? (f(), S(G(F), {
1785
1785
  key: 1,
1786
1786
  name: "Alert-triangle",
1787
1787
  class: "utopia-dropdown__state-icon--error",
@@ -1790,7 +1790,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1790
1790
  })) : y("", !0)
1791
1791
  ])) : y("", !0)
1792
1792
  ], 42, rn),
1793
- J(DA, { name: "utopia-dropdown-fade" }, {
1793
+ H(DA, { name: "utopia-dropdown-fade" }, {
1794
1794
  default: R(() => [
1795
1795
  u.value ? (f(), m("div", {
1796
1796
  key: 0,
@@ -1798,7 +1798,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1798
1798
  ref: o,
1799
1799
  class: "utopia-dropdown__menu",
1800
1800
  style: cA({
1801
- maxHeight: L.value,
1801
+ maxHeight: C.value,
1802
1802
  top: v.value.top,
1803
1803
  left: v.value.left,
1804
1804
  width: v.value.width
@@ -1807,7 +1807,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1807
1807
  "aria-multiselectable": A.multiple
1808
1808
  }, [
1809
1809
  A.searchable ? (f(), m("div", mn, [
1810
- J(G(te), {
1810
+ H(G(te), {
1811
1811
  ref_key: "searchRef",
1812
1812
  ref: c,
1813
1813
  modelValue: g.value,
@@ -1820,21 +1820,21 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1820
1820
  }, null, 8, ["modelValue"])
1821
1821
  ])) : y("", !0),
1822
1822
  d("div", zn, [
1823
- (f(!0), m(sA, null, aA(B.value, ($, nA) => (f(), m("div", {
1823
+ (f(!0), m(sA, null, aA(L.value, ($, nA) => (f(), m("div", {
1824
1824
  key: `option-${$.value}-${nA}`,
1825
- class: C(["utopia-dropdown__option", [
1826
- D($, nA),
1825
+ class: J(["utopia-dropdown__option", [
1826
+ k($, nA),
1827
1827
  { "utopia-dropdown__option--multiple": A.multiple }
1828
1828
  ]]),
1829
1829
  role: "option",
1830
- "aria-selected": S($.value),
1830
+ "aria-selected": N($.value),
1831
1831
  "aria-disabled": $.disabled,
1832
1832
  onClick: (MA) => h($),
1833
1833
  onMouseenter: (MA) => l.value = nA
1834
1834
  }, [
1835
1835
  A.multiple ? (f(), m("div", xn, [
1836
- J(G(vt), {
1837
- modelValue: S($.value),
1836
+ H(G(vt), {
1837
+ modelValue: N($.value),
1838
1838
  disabled: $.disabled,
1839
1839
  size: "small",
1840
1840
  class: "utopia-dropdown__checkbox"
@@ -1849,7 +1849,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1849
1849
  title: $.label
1850
1850
  }, T($.label), 9, Mn))
1851
1851
  ], 42, pn))), 128)),
1852
- B.value.length === 0 ? (f(), m("div", On, " Aucun résultat trouvé ")) : y("", !0)
1852
+ L.value.length === 0 ? (f(), m("div", On, " Aucun résultat trouvé ")) : y("", !0)
1853
1853
  ])
1854
1854
  ], 12, gn)) : y("", !0)
1855
1855
  ]),
@@ -1858,14 +1858,14 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1858
1858
  ]),
1859
1859
  A.message ? (f(), m("div", {
1860
1860
  key: 1,
1861
- class: C(["utopia-dropdown__message", Y.value])
1861
+ class: J(["utopia-dropdown__message", w.value])
1862
1862
  }, [
1863
- A.state === "error" ? (f(), V(G(F), {
1863
+ A.state === "error" ? (f(), S(G(F), {
1864
1864
  key: 0,
1865
1865
  name: "Alert-triangle",
1866
1866
  class: "utopia-dropdown__message-icon",
1867
1867
  "stroke-width": "2"
1868
- })) : A.state === "valid" ? (f(), V(G(F), {
1868
+ })) : A.state === "valid" ? (f(), S(G(F), {
1869
1869
  key: 1,
1870
1870
  name: "Check",
1871
1871
  class: "utopia-dropdown__message-icon",
@@ -1899,7 +1899,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1899
1899
  },
1900
1900
  emits: ["retry"],
1901
1901
  setup(A, { emit: s }) {
1902
- const e = A, t = s, n = P(() => e.title ?? He), o = P(() => e.actionLabel ?? Je), c = P(() => e.description), i = P(() => e.spinning), r = P(() => !e.imageSrc && e.preset !== "search"), a = P(() => e.imageSrc ?? (e.preset === "search" ? Bn : void 0)), u = P(() => e.imageAlt ?? (e.preset === "search" ? "Recherche" : "")), g = () => {
1902
+ const e = A, t = s, n = x(() => e.title ?? He), o = x(() => e.actionLabel ?? Je), c = x(() => e.description), i = x(() => e.spinning), r = x(() => !e.imageSrc && e.preset !== "search"), a = x(() => e.imageSrc ?? (e.preset === "search" ? Bn : void 0)), u = x(() => e.imageAlt ?? (e.preset === "search" ? "Recherche" : "")), g = () => {
1903
1903
  if (t("retry"), e.retryAction && typeof e.retryAction == "function")
1904
1904
  try {
1905
1905
  e.retryAction();
@@ -1913,7 +1913,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1913
1913
  d("div", Yn, [
1914
1914
  r.value ? (f(), m(sA, { key: 0 }, [
1915
1915
  d("div", {
1916
- class: C(["gear-wrapper gear-wrapper--primary", { "spin-20s": i.value }])
1916
+ class: J(["gear-wrapper gear-wrapper--primary", { "spin-20s": i.value }])
1917
1917
  }, [
1918
1918
  d("img", {
1919
1919
  src: G(bn),
@@ -1922,7 +1922,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1922
1922
  }, null, 8, Dn)
1923
1923
  ], 2),
1924
1924
  d("div", {
1925
- class: C(["gear-wrapper gear-wrapper--light", { "spin-20s": i.value }])
1925
+ class: J(["gear-wrapper gear-wrapper--light", { "spin-20s": i.value }])
1926
1926
  }, [
1927
1927
  d("img", {
1928
1928
  src: G(wn),
@@ -1940,7 +1940,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1940
1940
  d("div", Gn, [
1941
1941
  d("h3", Zn, T(n.value), 1),
1942
1942
  c.value ? (f(), m("p", Hn, T(c.value), 1)) : y("", !0),
1943
- o.value ? (f(), V(vA, {
1943
+ o.value ? (f(), S(vA, {
1944
1944
  key: 1,
1945
1945
  class: "utopia-errorstate__action",
1946
1946
  onClick: g,
@@ -1966,7 +1966,7 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1966
1966
  },
1967
1967
  emits: ["update:filters"],
1968
1968
  setup(A, { emit: s }) {
1969
- const e = A, t = H({ ...e.filters }), n = s;
1969
+ const e = A, t = Z({ ...e.filters }), n = s;
1970
1970
  rA(
1971
1971
  () => e.filters,
1972
1972
  (c) => {
@@ -1978,13 +1978,13 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
1978
1978
  const { [c]: i, ...r } = t.value;
1979
1979
  t.value = r, n("update:filters", t.value);
1980
1980
  };
1981
- return (c, i) => (f(), V(ks, {
1981
+ return (c, i) => (f(), S(ks, {
1982
1982
  class: "filterchip",
1983
1983
  name: "filterchip",
1984
1984
  tag: "div"
1985
1985
  }, {
1986
1986
  default: R(() => [
1987
- (f(!0), m(sA, null, aA(t.value, (r, a) => (f(), V(HA, {
1987
+ (f(!0), m(sA, null, aA(t.value, (r, a) => (f(), S(HA, {
1988
1988
  key: a,
1989
1989
  value: String(a),
1990
1990
  variant: e.variant,
@@ -2019,80 +2019,80 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
2019
2019
  },
2020
2020
  emits: ["update:modelValue", "complete", "change", "focus", "blur"],
2021
2021
  setup(A, { expose: s, emit: e }) {
2022
- const t = A, n = e, o = P(() => `utopia-inputcode-${Math.random().toString(36).substr(2, 9)}`), c = H([]), i = H([]), r = H(-1), a = H([]), u = P(() => Array.from({ length: t.length }, (B, Q) => Q)), g = P(() => ({
2022
+ const t = A, n = e, o = x(() => `utopia-inputcode-${Math.random().toString(36).substr(2, 9)}`), c = Z([]), i = Z([]), r = Z(-1), a = Z([]), u = x(() => Array.from({ length: t.length }, (L, j) => j)), g = x(() => ({
2023
2023
  [`utopia-inputcode--${t.size}`]: !0,
2024
2024
  [`utopia-inputcode--${t.state}`]: !0,
2025
2025
  "utopia-inputcode--disabled": t.disabled,
2026
2026
  "utopia-inputcode--with-label": !!t.label,
2027
2027
  "utopia-inputcode--with-message": !!t.message
2028
- })), l = P(() => ({
2028
+ })), l = x(() => ({
2029
2029
  [`utopia-inputcode__message--${t.state}`]: t.state === "error" || t.state === "valid"
2030
2030
  })), v = () => {
2031
- 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) => {
2032
- i.value[I] = Q;
2031
+ i.value = Array(t.length).fill(""), a.value = Array(t.length).fill("default"), t.modelValue && t.modelValue.split("").slice(0, t.length).forEach((j, Q) => {
2032
+ i.value[Q] = j;
2033
2033
  });
2034
- }, p = (B, Q) => {
2035
- i.value[B] = Q;
2036
- const I = i.value.join("");
2037
- n("update:modelValue", I), n("change", I), Q && B < t.length - 1 && uA(() => {
2038
- w(B + 1);
2039
- }), I.length === t.length && n("complete", I);
2040
- }, O = (B, Q) => {
2041
- if (Q.key === "Backspace") {
2042
- Q.preventDefault(), i.value[B] ? i.value[B] = "" : B > 0 && (i.value[B - 1] = "", w(B - 1));
2043
- const I = i.value.join("");
2044
- n("update:modelValue", I), n("change", I);
2045
- } else Q.key === "ArrowLeft" && B > 0 ? (Q.preventDefault(), w(B - 1)) : Q.key === "ArrowRight" && B < t.length - 1 && (Q.preventDefault(), w(B + 1));
2046
- }, x = (B) => {
2047
- r.value = B, n("focus", new FocusEvent("focus"));
2048
- }, b = (B) => {
2049
- r.value === B && (r.value = -1), n("blur", new FocusEvent("blur"));
2050
- }, k = (B) => {
2051
- B.preventDefault();
2052
- const Q = B.clipboardData?.getData("text") || "";
2053
- let I;
2054
- t.type === "number" ? I = Q.split("").filter((j) => /^\d$/.test(j)) : I = Q.split("").filter((j) => /^[A-Za-z0-9]$/.test(j));
2055
- const Y = I.slice(0, t.length);
2056
- i.value = Array(t.length).fill(""), Y.forEach((j, z) => {
2057
- i.value[z] = j.toUpperCase();
2034
+ }, P = (L, j) => {
2035
+ i.value[L] = j;
2036
+ const Q = i.value.join("");
2037
+ n("update:modelValue", Q), n("change", Q), j && L < t.length - 1 && uA(() => {
2038
+ B(L + 1);
2039
+ }), Q.length === t.length && n("complete", Q);
2040
+ }, M = (L, j) => {
2041
+ if (j.key === "Backspace") {
2042
+ j.preventDefault(), i.value[L] ? i.value[L] = "" : L > 0 && (i.value[L - 1] = "", B(L - 1));
2043
+ const Q = i.value.join("");
2044
+ n("update:modelValue", Q), n("change", Q);
2045
+ } else j.key === "ArrowLeft" && L > 0 ? (j.preventDefault(), B(L - 1)) : j.key === "ArrowRight" && L < t.length - 1 && (j.preventDefault(), B(L + 1));
2046
+ }, p = (L) => {
2047
+ r.value = L, n("focus", new FocusEvent("focus"));
2048
+ }, b = (L) => {
2049
+ r.value === L && (r.value = -1), n("blur", new FocusEvent("blur"));
2050
+ }, D = (L) => {
2051
+ L.preventDefault();
2052
+ const j = L.clipboardData?.getData("text") || "";
2053
+ let Q;
2054
+ t.type === "number" ? Q = j.split("").filter((Y) => /^\d$/.test(Y)) : Q = j.split("").filter((Y) => /^[A-Za-z0-9]$/.test(Y));
2055
+ const w = Q.slice(0, t.length);
2056
+ i.value = Array(t.length).fill(""), w.forEach((Y, z) => {
2057
+ i.value[z] = Y.toUpperCase();
2058
2058
  });
2059
- const S = i.value.join("");
2060
- n("update:modelValue", S), n("change", S), S.length === t.length && n("complete", S);
2061
- const D = Y.length < t.length ? Y.length : t.length - 1;
2059
+ const N = i.value.join("");
2060
+ n("update:modelValue", N), n("change", N), N.length === t.length && n("complete", N);
2061
+ const k = w.length < t.length ? w.length : t.length - 1;
2062
2062
  uA(() => {
2063
- w(D);
2063
+ B(k);
2064
2064
  });
2065
- }, w = (B) => {
2066
- if (c.value[B]) {
2067
- const Q = c.value[B]?.$el?.querySelector("input");
2068
- Q && (Q.focus(), Q.select());
2065
+ }, B = (L) => {
2066
+ if (c.value[L]) {
2067
+ const j = c.value[L]?.$el?.querySelector("input");
2068
+ j && (j.focus(), j.select());
2069
2069
  }
2070
- }, L = () => {
2070
+ }, C = () => {
2071
2071
  i.value = Array(t.length).fill(""), n("update:modelValue", ""), n("change", "");
2072
- }, Z = (B) => {
2073
- const Q = B.split("").slice(0, t.length);
2074
- Q.forEach((Y, S) => {
2075
- i.value[S] = Y.toUpperCase();
2072
+ }, I = (L) => {
2073
+ const j = L.split("").slice(0, t.length);
2074
+ j.forEach((w, N) => {
2075
+ i.value[N] = w.toUpperCase();
2076
2076
  });
2077
- for (let Y = Q.length; Y < t.length; Y++)
2078
- i.value[Y] = "";
2079
- const I = i.value.join("");
2080
- n("update:modelValue", I), n("change", I);
2077
+ for (let w = j.length; w < t.length; w++)
2078
+ i.value[w] = "";
2079
+ const Q = i.value.join("");
2080
+ n("update:modelValue", Q), n("change", Q);
2081
2081
  };
2082
- return rA(() => t.modelValue, (B) => {
2083
- B !== i.value.join("") && Z(B);
2082
+ return rA(() => t.modelValue, (L) => {
2083
+ L !== i.value.join("") && I(L);
2084
2084
  }), rA(() => t.length, () => {
2085
2085
  v();
2086
2086
  }), xA(() => {
2087
2087
  v(), t.autoFocus && !t.disabled && uA(() => {
2088
- w(0);
2088
+ B(0);
2089
2089
  });
2090
2090
  }), s({
2091
- focus: () => w(0),
2092
- clear: L,
2093
- setValue: Z
2094
- }), (B, Q) => (f(), m("div", {
2095
- class: C(["utopia-inputcode", g.value])
2091
+ focus: () => B(0),
2092
+ clear: C,
2093
+ setValue: I
2094
+ }), (L, j) => (f(), m("div", {
2095
+ class: J(["utopia-inputcode", g.value])
2096
2096
  }, [
2097
2097
  A.label ? (f(), m("label", {
2098
2098
  key: 0,
@@ -2101,36 +2101,36 @@ const Vt = ["href", "target"], St = /* @__PURE__ */ U({
2101
2101
  }, T(A.label), 9, En)) : y("", !0),
2102
2102
  d("div", Xn, [
2103
2103
  d("div", Qn, [
2104
- (f(!0), m(sA, null, aA(u.value, (I, Y) => (f(), V(G(te), {
2105
- key: `field-${Y}`,
2104
+ (f(!0), m(sA, null, aA(u.value, (Q, w) => (f(), S(G(te), {
2105
+ key: `field-${w}`,
2106
2106
  ref_for: !0,
2107
- ref: (S) => c.value[Y] = S,
2108
- modelValue: i.value[Y],
2109
- "onUpdate:modelValue": [(S) => i.value[Y] = S, (S) => p(Y, S)],
2107
+ ref: (N) => c.value[w] = N,
2108
+ modelValue: i.value[w],
2109
+ "onUpdate:modelValue": [(N) => i.value[w] = N, (N) => P(w, N)],
2110
2110
  type: A.type,
2111
2111
  inputmode: A.inputmode,
2112
2112
  size: A.size,
2113
- state: a.value[Y],
2113
+ state: a.value[w],
2114
2114
  disabled: A.disabled,
2115
2115
  maxlength: 1,
2116
2116
  "is-code": "",
2117
- class: C(["utopia-inputcode__field", { "utopia-inputcode__field--active": r.value === Y }]),
2118
- onKeydown: (S) => O(Y, S),
2119
- onFocus: (S) => x(Y),
2120
- onBlur: (S) => b(Y),
2121
- onPaste: k
2117
+ class: J(["utopia-inputcode__field", { "utopia-inputcode__field--active": r.value === w }]),
2118
+ onKeydown: (N) => M(w, N),
2119
+ onFocus: (N) => p(w),
2120
+ onBlur: (N) => b(w),
2121
+ onPaste: D
2122
2122
  }, null, 8, ["modelValue", "onUpdate:modelValue", "type", "inputmode", "size", "state", "disabled", "class", "onKeydown", "onFocus", "onBlur"]))), 128))
2123
2123
  ]),
2124
2124
  A.message ? (f(), m("div", {
2125
2125
  key: 0,
2126
- class: C(["utopia-inputcode__message", l.value])
2126
+ class: J(["utopia-inputcode__message", l.value])
2127
2127
  }, [
2128
- A.state === "error" ? (f(), V(G(F), {
2128
+ A.state === "error" ? (f(), S(G(F), {
2129
2129
  key: 0,
2130
2130
  name: "Alert-triangle",
2131
2131
  class: "utopia-inputcode__message-icon",
2132
2132
  "stroke-width": "2"
2133
- })) : A.state === "valid" ? (f(), V(G(F), {
2133
+ })) : A.state === "valid" ? (f(), S(G(F), {
2134
2134
  key: 1,
2135
2135
  name: "Check",
2136
2136
  class: "utopia-inputcode__message-icon",
@@ -2499,18 +2499,18 @@ var Qe = {
2499
2499
  delayInitialFocusTimer: void 0,
2500
2500
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
2501
2501
  recentNavEvent: void 0
2502
- }, i, r = function(z, M, E) {
2503
- return z && z[M] !== void 0 ? z[M] : o[E || M];
2504
- }, a = function(z, M) {
2505
- var E = typeof M?.composedPath == "function" ? M.composedPath() : void 0;
2502
+ }, i, r = function(z, O, E) {
2503
+ return z && z[O] !== void 0 ? z[O] : o[E || O];
2504
+ }, a = function(z, O) {
2505
+ var E = typeof O?.composedPath == "function" ? O.composedPath() : void 0;
2506
2506
  return c.containerGroups.findIndex(function(h) {
2507
- var N = h.container, W = h.tabbableNodes;
2508
- return N.contains(z) || E?.includes(N) || W.find(function(K) {
2507
+ var V = h.container, W = h.tabbableNodes;
2508
+ return V.contains(z) || E?.includes(V) || W.find(function(K) {
2509
2509
  return K === z;
2510
2510
  });
2511
2511
  });
2512
2512
  }, u = function(z) {
2513
- var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = M.hasFallback, h = E === void 0 ? !1 : E, N = M.params, W = N === void 0 ? [] : N, K = o[z];
2513
+ var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, E = O.hasFallback, h = E === void 0 ? !1 : E, V = O.params, W = V === void 0 ? [] : V, K = o[z];
2514
2514
  if (typeof K == "function" && (K = K.apply(void 0, ao(W))), K === !0 && (K = void 0), !K) {
2515
2515
  if (K === void 0 || K === !1)
2516
2516
  return K;
@@ -2537,7 +2537,7 @@ var Qe = {
2537
2537
  if (a(t.activeElement) >= 0)
2538
2538
  z = t.activeElement;
2539
2539
  else {
2540
- var M = c.tabbableGroups[0], E = M && M.firstTabbableNode;
2540
+ var O = c.tabbableGroups[0], E = O && O.firstTabbableNode;
2541
2541
  z = E || u("fallbackFocus");
2542
2542
  }
2543
2543
  else z === null && (z = u("fallbackFocus"));
@@ -2546,23 +2546,23 @@ var Qe = {
2546
2546
  return z;
2547
2547
  }, l = function() {
2548
2548
  if (c.containerGroups = c.containers.map(function(z) {
2549
- var M = so(z, o.tabbableOptions), E = to(z, o.tabbableOptions), h = M.length > 0 ? M[0] : void 0, N = M.length > 0 ? M[M.length - 1] : void 0, W = E.find(function(tA) {
2549
+ var O = so(z, o.tabbableOptions), E = to(z, o.tabbableOptions), h = O.length > 0 ? O[0] : void 0, V = O.length > 0 ? O[O.length - 1] : void 0, W = E.find(function(tA) {
2550
2550
  return ZA(tA);
2551
2551
  }), K = E.slice().reverse().find(function(tA) {
2552
2552
  return ZA(tA);
2553
- }), eA = !!M.find(function(tA) {
2553
+ }), eA = !!O.find(function(tA) {
2554
2554
  return BA(tA) > 0;
2555
2555
  });
2556
2556
  return {
2557
2557
  container: z,
2558
- tabbableNodes: M,
2558
+ tabbableNodes: O,
2559
2559
  focusableNodes: E,
2560
2560
  /** True if at least one node with positive `tabindex` was found in this container. */
2561
2561
  posTabIndexesFound: eA,
2562
2562
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
2563
2563
  firstTabbableNode: h,
2564
2564
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
2565
- lastTabbableNode: N,
2565
+ lastTabbableNode: V,
2566
2566
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
2567
2567
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
2568
2568
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -2583,12 +2583,12 @@ var Qe = {
2583
2583
  * @returns {HTMLElement|undefined} The next tabbable node, if any.
2584
2584
  */
2585
2585
  nextTabbableNode: function(dA) {
2586
- var fA = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, iA = M.indexOf(dA);
2586
+ var fA = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, iA = O.indexOf(dA);
2587
2587
  return iA < 0 ? fA ? E.slice(E.indexOf(dA) + 1).find(function(X) {
2588
2588
  return ZA(X);
2589
2589
  }) : E.slice(0, E.indexOf(dA)).reverse().find(function(X) {
2590
2590
  return ZA(X);
2591
- }) : M[iA + (fA ? 1 : -1)];
2591
+ }) : O[iA + (fA ? 1 : -1)];
2592
2592
  }
2593
2593
  };
2594
2594
  }), c.tabbableGroups = c.containerGroups.filter(function(z) {
@@ -2600,57 +2600,57 @@ var Qe = {
2600
2600
  }) && c.containerGroups.length > 1)
2601
2601
  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.");
2602
2602
  }, v = function(z) {
2603
- var M = z.activeElement;
2604
- if (M)
2605
- return M.shadowRoot && M.shadowRoot.activeElement !== null ? v(M.shadowRoot) : M;
2606
- }, p = function(z) {
2603
+ var O = z.activeElement;
2604
+ if (O)
2605
+ return O.shadowRoot && O.shadowRoot.activeElement !== null ? v(O.shadowRoot) : O;
2606
+ }, P = function(z) {
2607
2607
  if (z !== !1 && z !== v(document)) {
2608
2608
  if (!z || !z.focus) {
2609
- p(g());
2609
+ P(g());
2610
2610
  return;
2611
2611
  }
2612
2612
  z.focus({
2613
2613
  preventScroll: !!o.preventScroll
2614
2614
  }), c.mostRecentlyFocusedNode = z, uo(z) && z.select();
2615
2615
  }
2616
- }, O = function(z) {
2617
- var M = u("setReturnFocus", {
2616
+ }, M = function(z) {
2617
+ var O = u("setReturnFocus", {
2618
2618
  params: [z]
2619
2619
  });
2620
- return M || (M === !1 ? !1 : z);
2621
- }, x = function(z) {
2622
- var M = z.target, E = z.event, h = z.isBackward, N = h === void 0 ? !1 : h;
2623
- M = M || UA(E), l();
2620
+ return O || (O === !1 ? !1 : z);
2621
+ }, p = function(z) {
2622
+ var O = z.target, E = z.event, h = z.isBackward, V = h === void 0 ? !1 : h;
2623
+ O = O || UA(E), l();
2624
2624
  var W = null;
2625
2625
  if (c.tabbableGroups.length > 0) {
2626
- var K = a(M, E), eA = K >= 0 ? c.containerGroups[K] : void 0;
2626
+ var K = a(O, E), eA = K >= 0 ? c.containerGroups[K] : void 0;
2627
2627
  if (K < 0)
2628
- N ? W = c.tabbableGroups[c.tabbableGroups.length - 1].lastTabbableNode : W = c.tabbableGroups[0].firstTabbableNode;
2629
- else if (N) {
2628
+ V ? W = c.tabbableGroups[c.tabbableGroups.length - 1].lastTabbableNode : W = c.tabbableGroups[0].firstTabbableNode;
2629
+ else if (V) {
2630
2630
  var tA = c.tabbableGroups.findIndex(function($) {
2631
2631
  var nA = $.firstTabbableNode;
2632
- return M === nA;
2632
+ return O === nA;
2633
2633
  });
2634
- if (tA < 0 && (eA.container === M || pe(M, o.tabbableOptions) && !ZA(M, o.tabbableOptions) && !eA.nextTabbableNode(M, !1)) && (tA = K), tA >= 0) {
2634
+ if (tA < 0 && (eA.container === O || pe(O, o.tabbableOptions) && !ZA(O, o.tabbableOptions) && !eA.nextTabbableNode(O, !1)) && (tA = K), tA >= 0) {
2635
2635
  var dA = tA === 0 ? c.tabbableGroups.length - 1 : tA - 1, fA = c.tabbableGroups[dA];
2636
- W = BA(M) >= 0 ? fA.lastTabbableNode : fA.lastDomTabbableNode;
2637
- } else NA(E) || (W = eA.nextTabbableNode(M, !1));
2636
+ W = BA(O) >= 0 ? fA.lastTabbableNode : fA.lastDomTabbableNode;
2637
+ } else NA(E) || (W = eA.nextTabbableNode(O, !1));
2638
2638
  } else {
2639
2639
  var iA = c.tabbableGroups.findIndex(function($) {
2640
2640
  var nA = $.lastTabbableNode;
2641
- return M === nA;
2641
+ return O === nA;
2642
2642
  });
2643
- if (iA < 0 && (eA.container === M || pe(M, o.tabbableOptions) && !ZA(M, o.tabbableOptions) && !eA.nextTabbableNode(M)) && (iA = K), iA >= 0) {
2643
+ if (iA < 0 && (eA.container === O || pe(O, o.tabbableOptions) && !ZA(O, o.tabbableOptions) && !eA.nextTabbableNode(O)) && (iA = K), iA >= 0) {
2644
2644
  var X = iA === c.tabbableGroups.length - 1 ? 0 : iA + 1, _ = c.tabbableGroups[X];
2645
- W = BA(M) >= 0 ? _.firstTabbableNode : _.firstDomTabbableNode;
2646
- } else NA(E) || (W = eA.nextTabbableNode(M));
2645
+ W = BA(O) >= 0 ? _.firstTabbableNode : _.firstDomTabbableNode;
2646
+ } else NA(E) || (W = eA.nextTabbableNode(O));
2647
2647
  }
2648
2648
  } else
2649
2649
  W = u("fallbackFocus");
2650
2650
  return W;
2651
2651
  }, b = function(z) {
2652
- var M = UA(z);
2653
- if (!(a(M, z) >= 0)) {
2652
+ var O = UA(z);
2653
+ if (!(a(O, z) >= 0)) {
2654
2654
  if (hA(o.clickOutsideDeactivates, z)) {
2655
2655
  i.deactivate({
2656
2656
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
@@ -2665,13 +2665,13 @@ var Qe = {
2665
2665
  }
2666
2666
  hA(o.allowOutsideClick, z) || z.preventDefault();
2667
2667
  }
2668
- }, k = function(z) {
2669
- var M = UA(z), E = a(M, z) >= 0;
2670
- if (E || M instanceof Document)
2671
- E && (c.mostRecentlyFocusedNode = M);
2668
+ }, D = function(z) {
2669
+ var O = UA(z), E = a(O, z) >= 0;
2670
+ if (E || O instanceof Document)
2671
+ E && (c.mostRecentlyFocusedNode = O);
2672
2672
  else {
2673
2673
  z.stopImmediatePropagation();
2674
- var h, N = !0;
2674
+ var h, V = !0;
2675
2675
  if (c.mostRecentlyFocusedNode)
2676
2676
  if (BA(c.mostRecentlyFocusedNode) > 0) {
2677
2677
  var W = a(c.mostRecentlyFocusedNode), K = c.containerGroups[W].tabbableNodes;
@@ -2679,70 +2679,70 @@ var Qe = {
2679
2679
  var eA = K.findIndex(function(tA) {
2680
2680
  return tA === c.mostRecentlyFocusedNode;
2681
2681
  });
2682
- eA >= 0 && (o.isKeyForward(c.recentNavEvent) ? eA + 1 < K.length && (h = K[eA + 1], N = !1) : eA - 1 >= 0 && (h = K[eA - 1], N = !1));
2682
+ eA >= 0 && (o.isKeyForward(c.recentNavEvent) ? eA + 1 < K.length && (h = K[eA + 1], V = !1) : eA - 1 >= 0 && (h = K[eA - 1], V = !1));
2683
2683
  }
2684
2684
  } else
2685
2685
  c.containerGroups.some(function(tA) {
2686
2686
  return tA.tabbableNodes.some(function(dA) {
2687
2687
  return BA(dA) > 0;
2688
2688
  });
2689
- }) || (N = !1);
2689
+ }) || (V = !1);
2690
2690
  else
2691
- N = !1;
2692
- N && (h = x({
2691
+ V = !1;
2692
+ V && (h = p({
2693
2693
  // move FROM the MRU node, not event-related node (which will be the node that is
2694
2694
  // outside the trap causing the focus escape we're trying to fix)
2695
2695
  target: c.mostRecentlyFocusedNode,
2696
2696
  isBackward: o.isKeyBackward(c.recentNavEvent)
2697
- })), p(h || c.mostRecentlyFocusedNode || g());
2697
+ })), P(h || c.mostRecentlyFocusedNode || g());
2698
2698
  }
2699
2699
  c.recentNavEvent = void 0;
2700
- }, w = function(z) {
2701
- var M = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2700
+ }, B = function(z) {
2701
+ var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2702
2702
  c.recentNavEvent = z;
2703
- var E = x({
2703
+ var E = p({
2704
2704
  event: z,
2705
- isBackward: M
2705
+ isBackward: O
2706
2706
  });
2707
- E && (NA(z) && z.preventDefault(), p(E));
2708
- }, L = function(z) {
2709
- (o.isKeyForward(z) || o.isKeyBackward(z)) && w(z, o.isKeyBackward(z));
2710
- }, Z = function(z) {
2707
+ E && (NA(z) && z.preventDefault(), P(E));
2708
+ }, C = function(z) {
2709
+ (o.isKeyForward(z) || o.isKeyBackward(z)) && B(z, o.isKeyBackward(z));
2710
+ }, I = function(z) {
2711
2711
  go(z) && hA(o.escapeDeactivates, z) !== !1 && (z.preventDefault(), i.deactivate());
2712
- }, B = function(z) {
2713
- var M = UA(z);
2714
- a(M, z) >= 0 || hA(o.clickOutsideDeactivates, z) || hA(o.allowOutsideClick, z) || (z.preventDefault(), z.stopImmediatePropagation());
2715
- }, Q = function() {
2712
+ }, L = function(z) {
2713
+ var O = UA(z);
2714
+ a(O, z) >= 0 || hA(o.clickOutsideDeactivates, z) || hA(o.allowOutsideClick, z) || (z.preventDefault(), z.stopImmediatePropagation());
2715
+ }, j = function() {
2716
2716
  if (c.active)
2717
2717
  return Qe.activateTrap(n, i), c.delayInitialFocusTimer = o.delayInitialFocus ? he(function() {
2718
- p(g());
2719
- }) : p(g()), t.addEventListener("focusin", k, !0), t.addEventListener("mousedown", b, {
2718
+ P(g());
2719
+ }) : P(g()), t.addEventListener("focusin", D, !0), t.addEventListener("mousedown", b, {
2720
2720
  capture: !0,
2721
2721
  passive: !1
2722
2722
  }), t.addEventListener("touchstart", b, {
2723
2723
  capture: !0,
2724
2724
  passive: !1
2725
- }), t.addEventListener("click", B, {
2725
+ }), t.addEventListener("click", L, {
2726
2726
  capture: !0,
2727
2727
  passive: !1
2728
- }), t.addEventListener("keydown", L, {
2728
+ }), t.addEventListener("keydown", C, {
2729
2729
  capture: !0,
2730
2730
  passive: !1
2731
- }), t.addEventListener("keydown", Z), i;
2732
- }, I = function() {
2731
+ }), t.addEventListener("keydown", I), i;
2732
+ }, Q = function() {
2733
2733
  if (c.active)
2734
- return t.removeEventListener("focusin", k, !0), t.removeEventListener("mousedown", b, !0), t.removeEventListener("touchstart", b, !0), t.removeEventListener("click", B, !0), t.removeEventListener("keydown", L, !0), t.removeEventListener("keydown", Z), i;
2735
- }, Y = function(z) {
2736
- var M = z.some(function(E) {
2734
+ return t.removeEventListener("focusin", D, !0), t.removeEventListener("mousedown", b, !0), t.removeEventListener("touchstart", b, !0), t.removeEventListener("click", L, !0), t.removeEventListener("keydown", C, !0), t.removeEventListener("keydown", I), i;
2735
+ }, w = function(z) {
2736
+ var O = z.some(function(E) {
2737
2737
  var h = Array.from(E.removedNodes);
2738
- return h.some(function(N) {
2739
- return N === c.mostRecentlyFocusedNode;
2738
+ return h.some(function(V) {
2739
+ return V === c.mostRecentlyFocusedNode;
2740
2740
  });
2741
2741
  });
2742
- M && p(g());
2743
- }, S = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(Y) : void 0, D = function() {
2744
- S && (S.disconnect(), c.active && !c.paused && c.containers.map(function(z) {
2745
- S.observe(z, {
2742
+ O && P(g());
2743
+ }, N = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(w) : void 0, k = function() {
2744
+ N && (N.disconnect(), c.active && !c.paused && c.containers.map(function(z) {
2745
+ N.observe(z, {
2746
2746
  subtree: !0,
2747
2747
  childList: !0
2748
2748
  });
@@ -2758,30 +2758,30 @@ var Qe = {
2758
2758
  activate: function(z) {
2759
2759
  if (c.active)
2760
2760
  return this;
2761
- var M = r(z, "onActivate"), E = r(z, "onPostActivate"), h = r(z, "checkCanFocusTrap");
2762
- h || l(), c.active = !0, c.paused = !1, c.nodeFocusedBeforeActivation = v(t), M?.();
2763
- var N = function() {
2764
- h && l(), Q(), D(), E?.();
2761
+ var O = r(z, "onActivate"), E = r(z, "onPostActivate"), h = r(z, "checkCanFocusTrap");
2762
+ h || l(), c.active = !0, c.paused = !1, c.nodeFocusedBeforeActivation = v(t), O?.();
2763
+ var V = function() {
2764
+ h && l(), j(), k(), E?.();
2765
2765
  };
2766
- return h ? (h(c.containers.concat()).then(N, N), this) : (N(), this);
2766
+ return h ? (h(c.containers.concat()).then(V, V), this) : (V(), this);
2767
2767
  },
2768
2768
  deactivate: function(z) {
2769
2769
  if (!c.active)
2770
2770
  return this;
2771
- var M = Xe({
2771
+ var O = Xe({
2772
2772
  onDeactivate: o.onDeactivate,
2773
2773
  onPostDeactivate: o.onPostDeactivate,
2774
2774
  checkCanReturnFocus: o.checkCanReturnFocus
2775
2775
  }, z);
2776
- clearTimeout(c.delayInitialFocusTimer), c.delayInitialFocusTimer = void 0, I(), c.active = !1, c.paused = !1, D(), Qe.deactivateTrap(n, i);
2777
- var E = r(M, "onDeactivate"), h = r(M, "onPostDeactivate"), N = r(M, "checkCanReturnFocus"), W = r(M, "returnFocus", "returnFocusOnDeactivate");
2776
+ clearTimeout(c.delayInitialFocusTimer), c.delayInitialFocusTimer = void 0, Q(), c.active = !1, c.paused = !1, k(), Qe.deactivateTrap(n, i);
2777
+ var E = r(O, "onDeactivate"), h = r(O, "onPostDeactivate"), V = r(O, "checkCanReturnFocus"), W = r(O, "returnFocus", "returnFocusOnDeactivate");
2778
2778
  E?.();
2779
2779
  var K = function() {
2780
2780
  he(function() {
2781
- W && p(O(c.nodeFocusedBeforeActivation)), h?.();
2781
+ W && P(M(c.nodeFocusedBeforeActivation)), h?.();
2782
2782
  });
2783
2783
  };
2784
- return W && N ? (N(O(c.nodeFocusedBeforeActivation)).then(K, K), this) : (K(), this);
2784
+ return W && V ? (V(M(c.nodeFocusedBeforeActivation)).then(K, K), this) : (K(), this);
2785
2785
  },
2786
2786
  pause: function(z) {
2787
2787
  return c.active ? (c.manuallyPaused = !0, this._setPausedState(!0, z)) : this;
@@ -2790,10 +2790,10 @@ var Qe = {
2790
2790
  return c.active ? (c.manuallyPaused = !1, n[n.length - 1] !== this ? this : this._setPausedState(!1, z)) : this;
2791
2791
  },
2792
2792
  updateContainerElements: function(z) {
2793
- var M = [].concat(z).filter(Boolean);
2794
- return c.containers = M.map(function(E) {
2793
+ var O = [].concat(z).filter(Boolean);
2794
+ return c.containers = O.map(function(E) {
2795
2795
  return typeof E == "string" ? t.querySelector(E) : E;
2796
- }), c.active && l(), D(), this;
2796
+ }), c.active && l(), k(), this;
2797
2797
  }
2798
2798
  }, Object.defineProperties(i, {
2799
2799
  _isManuallyPaused: {
@@ -2802,15 +2802,15 @@ var Qe = {
2802
2802
  }
2803
2803
  },
2804
2804
  _setPausedState: {
2805
- value: function(z, M) {
2805
+ value: function(z, O) {
2806
2806
  if (c.paused === z)
2807
2807
  return this;
2808
2808
  if (c.paused = z, z) {
2809
- var E = r(M, "onPause"), h = r(M, "onPostPause");
2810
- E?.(), I(), D(), h?.();
2809
+ var E = r(O, "onPause"), h = r(O, "onPostPause");
2810
+ E?.(), Q(), k(), h?.();
2811
2811
  } else {
2812
- var N = r(M, "onUnpause"), W = r(M, "onPostUnpause");
2813
- N?.(), l(), Q(), D(), W?.();
2812
+ var V = r(O, "onUnpause"), W = r(O, "onPostUnpause");
2813
+ V?.(), l(), j(), k(), W?.();
2814
2814
  }
2815
2815
  return this;
2816
2816
  }
@@ -2819,15 +2819,15 @@ var Qe = {
2819
2819
  };
2820
2820
  function Po(A, s = {}) {
2821
2821
  let e;
2822
- const { immediate: t, ...n } = s, o = H(!1), c = H(!1), i = (l) => e && e.activate(l), r = (l) => e && e.deactivate(l), a = () => {
2822
+ const { immediate: t, ...n } = s, o = Z(!1), c = Z(!1), i = (l) => e && e.activate(l), r = (l) => e && e.deactivate(l), a = () => {
2823
2823
  e && (e.pause(), c.value = !0);
2824
2824
  }, u = () => {
2825
2825
  e && (e.unpause(), c.value = !1);
2826
- }, g = P(() => {
2826
+ }, g = x(() => {
2827
2827
  const l = Ce(A);
2828
2828
  return (Array.isArray(l) ? l : [l]).map((v) => {
2829
- const p = Ce(v);
2830
- return typeof p == "string" ? p : Ls(p);
2829
+ const P = Ce(v);
2830
+ return typeof P == "string" ? P : Ls(P);
2831
2831
  }).filter(Fn);
2832
2832
  });
2833
2833
  return rA(
@@ -2875,12 +2875,13 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
2875
2875
  focusTrap: { type: Boolean, default: !0 },
2876
2876
  blurBackdrop: { type: Boolean, default: !1 },
2877
2877
  animation: { default: "slide-top" },
2878
+ mobileBehavior: { default: "bottom-sheet" },
2878
2879
  onOpenChange: {}
2879
2880
  },
2880
2881
  emits: ["update:open", "openChange"],
2881
2882
  setup(A, { emit: s }) {
2882
- const e = A, t = s, n = Xs("(max-width: 768px)"), o = P(() => {
2883
- if (n.value)
2883
+ const e = A, t = s, n = Xs("(max-width: 768px)"), o = x(() => n.value && e.mobileBehavior === "bottom-sheet"), c = x(() => {
2884
+ if (o.value)
2884
2885
  return "utopia-bottom-sheet";
2885
2886
  switch (e.animation) {
2886
2887
  case "slide-horizontal":
@@ -2892,116 +2893,119 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
2892
2893
  case "slide-bottom":
2893
2894
  return "utopia-slide-bottom";
2894
2895
  }
2895
- }), c = P(() => e.open !== void 0), i = H(e.defaultOpen ?? !1), r = P(
2896
- () => c.value ? e.open : i.value
2897
- ), a = `utopia-modal-${Math.random().toString(36).slice(2, 8)}`, u = P(() => e.title ? `${a}-title` : ""), g = H(!1), l = P(() => ({
2896
+ }), i = x(() => e.open !== void 0), r = Z(e.defaultOpen ?? !1), a = x(
2897
+ () => i.value ? e.open : r.value
2898
+ ), u = x(() => !!e.showHeader), g = `utopia-modal-${Math.random().toString(36).slice(2, 8)}`, l = x(() => e.title ? `${g}-title` : ""), v = Z(!1), P = x(() => ({
2898
2899
  sm: "small",
2899
2900
  md: "medium",
2900
2901
  lg: "large",
2901
2902
  full: "large"
2902
- })[e.size]), v = H(null), p = H(null), O = typeof document < "u" ? document.body : null, x = $e(O), { activate: b, deactivate: k } = Po(v, {
2903
+ })[e.size]), M = Z(null), p = Z(null), b = typeof document < "u" ? document.body : null, D = $e(b), { activate: B, deactivate: C } = Po(M, {
2903
2904
  immediate: !1,
2904
2905
  escapeDeactivates: !1,
2905
2906
  returnFocusOnDeactivate: !0,
2906
2907
  allowOutsideClick: !0,
2907
2908
  initialFocus: () => {
2908
2909
  if (p.value) {
2909
- const B = p.value.$el || p.value;
2910
- if (B && B instanceof HTMLElement)
2911
- return B;
2910
+ const Q = p.value.$el || p.value;
2911
+ if (Q && Q instanceof HTMLElement)
2912
+ return Q;
2912
2913
  }
2913
- const Z = v.value;
2914
- return Z ? Z.querySelector("[data-utopia-modal-close]") ?? Z.querySelector(".utopia-modal__close button") ?? Z.querySelector("button") ?? Z.querySelector("[autofocus]") ?? Z : null;
2914
+ const j = M.value;
2915
+ return j ? j.querySelector("[data-utopia-modal-close]") ?? j.querySelector(".utopia-modal__close button") ?? j.querySelector("button") ?? j.querySelector("[autofocus]") ?? j : null;
2915
2916
  },
2916
- fallbackFocus: () => v.value
2917
+ fallbackFocus: () => M.value
2917
2918
  });
2918
2919
  rA(
2919
- () => r.value,
2920
- async (Z, B) => {
2921
- if (Z === B) return;
2922
- if (Z) {
2923
- if (e.disableScrollLock || (x.value = !0), await uA(), e.focusTrap) {
2924
- b(), await uA();
2925
- let I = null;
2926
- 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();
2920
+ () => a.value,
2921
+ async (j, Q) => {
2922
+ if (j === Q) return;
2923
+ if (j) {
2924
+ if (e.disableScrollLock || (D.value = !0), await uA(), e.focusTrap) {
2925
+ B(), await uA();
2926
+ let N = null;
2927
+ p.value && (N = p.value.$el || p.value), N || (N = M.value?.querySelector("[data-utopia-modal-close]") || M.value?.querySelector(".utopia-modal__close button") || M.value?.querySelector("button")), N && N.focus();
2927
2928
  }
2928
2929
  } else
2929
- e.disableScrollLock || (x.value = !1), k();
2930
- if (g.value) {
2931
- g.value = !1;
2930
+ e.disableScrollLock || (D.value = !1), C();
2931
+ if (v.value) {
2932
+ v.value = !1;
2932
2933
  return;
2933
2934
  }
2934
- const Q = Z ? "open" : "close";
2935
- t("openChange", Z, Q), e.onOpenChange?.(Z, Q);
2935
+ const w = j ? "open" : "close";
2936
+ t("openChange", j, w), e.onOpenChange?.(j, w);
2936
2937
  },
2937
2938
  { immediate: !0 }
2938
2939
  );
2939
- function w(Z) {
2940
- r.value && (g.value = !0, c.value ? t("update:open", !1) : i.value = !1, t("openChange", !1, Z), e.onOpenChange?.(!1, Z), e.disableScrollLock || (x.value = !1), k());
2940
+ function I(j) {
2941
+ a.value && (v.value = !0, i.value ? t("update:open", !1) : r.value = !1, t("openChange", !1, j), e.onOpenChange?.(!1, j), e.disableScrollLock || (D.value = !1), C());
2941
2942
  }
2942
- Qs(window, "keydown", (Z) => {
2943
- r.value && Z.key === "Escape" && w("escape");
2943
+ Qs(window, "keydown", (j) => {
2944
+ a.value && j.key === "Escape" && I("escape");
2944
2945
  });
2945
2946
  function L() {
2946
- e.closeOnOverlayClick && w("overlay");
2947
+ e.closeOnOverlayClick && I("overlay");
2947
2948
  }
2948
2949
  return OA(() => {
2949
- e.disableScrollLock || (x.value = !1), k();
2950
- }), (Z, B) => (f(), V(EA, { to: "body" }, [
2950
+ e.disableScrollLock || (D.value = !1), C();
2951
+ }), (j, Q) => (f(), S(EA, { to: "body" }, [
2951
2952
  d("div", {
2952
- class: C(["utopia-modal", [
2953
+ class: J(["utopia-modal", [
2953
2954
  `utopia-modal--${A.position}`,
2954
- { "is-open": r.value, "is-mobile": G(n) }
2955
+ {
2956
+ "is-open": a.value,
2957
+ "is-mobile": o.value
2958
+ }
2955
2959
  ]]),
2956
- "aria-hidden": !r.value
2960
+ "aria-hidden": !a.value
2957
2961
  }, [
2958
- J(DA, { name: "utopia-fade" }, {
2962
+ H(DA, { name: "utopia-fade" }, {
2959
2963
  default: R(() => [
2960
- r.value ? (f(), m("div", {
2964
+ a.value ? (f(), m("div", {
2961
2965
  key: 0,
2962
- class: C(["utopia-modal__overlay", { "utopia-modal__overlay--blur": A.blurBackdrop }]),
2966
+ class: J(["utopia-modal__overlay", { "utopia-modal__overlay--blur": A.blurBackdrop }]),
2963
2967
  onClick: L,
2964
2968
  "aria-hidden": "true"
2965
2969
  }, null, 2)) : y("", !0)
2966
2970
  ]),
2967
2971
  _: 1
2968
2972
  }),
2969
- J(DA, { name: o.value }, {
2973
+ H(DA, { name: c.value }, {
2970
2974
  default: R(() => [
2971
- r.value ? (f(), m("div", {
2975
+ a.value ? (f(), m("div", {
2972
2976
  key: 0,
2973
2977
  ref_key: "panelRef",
2974
- ref: v,
2975
- class: C(["utopia-modal__panel", [`utopia-modal__panel--${A.size}`]]),
2978
+ ref: M,
2979
+ class: J(["utopia-modal__panel", [`utopia-modal__panel--${A.size}`]]),
2976
2980
  role: "dialog",
2977
2981
  "aria-modal": "true",
2978
- "aria-labelledby": u.value || void 0,
2982
+ "aria-labelledby": l.value || void 0,
2979
2983
  tabindex: "-1"
2980
2984
  }, [
2981
- A.showHeader ? (f(), m("header", yo, [
2982
- AA(Z.$slots, "header", {}, () => [
2985
+ u.value ? (f(), m("header", yo, [
2986
+ AA(j.$slots, "header", {}, () => [
2983
2987
  A.title ? (f(), m("h3", {
2984
2988
  key: 0,
2985
2989
  class: "utopia-modal__title",
2986
- id: u.value
2990
+ id: l.value
2987
2991
  }, T(A.title), 9, bo)) : y("", !0)
2988
2992
  ], !0),
2989
- A.showCloseButton ? (f(), V(vA, {
2993
+ A.showCloseButton ? (f(), S(vA, {
2990
2994
  key: 0,
2991
2995
  ref_key: "closeButtonRef",
2992
2996
  ref: p,
2993
2997
  class: "utopia-modal__close",
2994
2998
  variant: "tertiary",
2995
2999
  size: "sm",
2996
- onClick: B[0] || (B[0] = (Q) => w("close-button")),
3000
+ onClick: Q[0] || (Q[0] = (w) => I("close-button")),
2997
3001
  "aria-label": "Fermer la modal",
2998
3002
  "data-utopia-modal-close": ""
2999
3003
  }, {
3000
3004
  default: R(() => [
3001
- B[2] || (B[2] = d("span", { class: "utopia-modal__close-label" }, "Fermer", -1)),
3002
- J(F, {
3005
+ Q[2] || (Q[2] = d("span", { class: "utopia-modal__close-label" }, "Fermer", -1)),
3006
+ H(F, {
3003
3007
  name: "X",
3004
- size: l.value,
3008
+ size: P.value,
3005
3009
  "stroke-width": 3,
3006
3010
  color: "current",
3007
3011
  class: "utopia-modal__close-icon"
@@ -3010,22 +3014,22 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3010
3014
  _: 1
3011
3015
  }, 512)) : y("", !0)
3012
3016
  ])) : y("", !0),
3013
- !A.showHeader && !Z.$slots.header && A.showCloseButton ? (f(), V(vA, {
3017
+ !u.value && !j.$slots.header && A.showCloseButton ? (f(), S(vA, {
3014
3018
  key: 1,
3015
3019
  ref_key: "closeButtonRef",
3016
3020
  ref: p,
3017
3021
  class: "utopia-modal__close utopia-modal__close--floating",
3018
3022
  variant: "tertiary",
3019
3023
  size: "sm",
3020
- onClick: B[1] || (B[1] = (Q) => w("close-button")),
3024
+ onClick: Q[1] || (Q[1] = (w) => I("close-button")),
3021
3025
  "aria-label": "Fermer la modal",
3022
3026
  "data-utopia-modal-close": ""
3023
3027
  }, {
3024
3028
  default: R(() => [
3025
- B[3] || (B[3] = d("span", { class: "utopia-modal__close-label" }, "Fermer", -1)),
3026
- J(F, {
3029
+ Q[3] || (Q[3] = d("span", { class: "utopia-modal__close-label" }, "Fermer", -1)),
3030
+ H(F, {
3027
3031
  name: "X",
3028
- size: l.value,
3032
+ size: P.value,
3029
3033
  "stroke-width": 3,
3030
3034
  color: "current",
3031
3035
  class: "utopia-modal__close-icon"
@@ -3034,11 +3038,11 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3034
3038
  _: 1
3035
3039
  }, 512)) : y("", !0),
3036
3040
  d("div", wo, [
3037
- AA(Z.$slots, "default", {}, void 0, !0)
3041
+ AA(j.$slots, "default", {}, void 0, !0)
3038
3042
  ]),
3039
- A.showFooter && Z.$slots.footer ? (f(), m("footer", Bo, [
3043
+ A.showFooter && j.$slots.footer ? (f(), m("footer", Bo, [
3040
3044
  d("div", jo, [
3041
- AA(Z.$slots, "footer", {}, void 0, !0)
3045
+ AA(j.$slots, "footer", {}, void 0, !0)
3042
3046
  ])
3043
3047
  ])) : y("", !0)
3044
3048
  ], 10, Oo)) : y("", !0)
@@ -3048,7 +3052,7 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3048
3052
  ], 10, Mo)
3049
3053
  ]));
3050
3054
  }
3051
- }), Ca = /* @__PURE__ */ q(Yo, [["__scopeId", "data-v-6ae7243a"]]), Do = { class: "utopia-pricetag" }, ko = { key: 0 }, To = { key: 1 }, Go = { class: "utopia-pricetag--price-container" }, Zo = {
3055
+ }), Ca = /* @__PURE__ */ q(Yo, [["__scopeId", "data-v-f0fcbc3f"]]), Do = { class: "utopia-pricetag" }, ko = { key: 0 }, To = { key: 1 }, Go = { class: "utopia-pricetag--price-container" }, Zo = {
3052
3056
  key: 0,
3053
3057
  class: "utopia-pricetag--old-price"
3054
3058
  }, Ho = /* @__PURE__ */ U({
@@ -3063,10 +3067,10 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3063
3067
  language: { default: "fr" }
3064
3068
  },
3065
3069
  setup(A) {
3066
- const s = A, e = P(() => ({
3070
+ const s = A, e = x(() => ({
3067
3071
  "utopia-pricetag--subventioned": s.isSubventioned,
3068
3072
  "utopia-pricetag--discounted": s.isDiscounted && !s.isSubventioned
3069
- })), t = P(() => ({
3073
+ })), t = x(() => ({
3070
3074
  fr: {
3071
3075
  availableOffers: "offres disponibles dès",
3072
3076
  from: "À partir de"
@@ -3075,12 +3079,12 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3075
3079
  availableOffers: "available offers",
3076
3080
  from: "From"
3077
3081
  }
3078
- })), n = P(() => t.value[s.language]);
3082
+ })), n = x(() => t.value[s.language]);
3079
3083
  return (o, c) => (f(), m("div", Do, [
3080
3084
  A.variantCount ? (f(), m("div", ko, T(A.variantCount) + " " + T(n.value.availableOffers), 1)) : A.isSubventioned ? (f(), m("div", To, T(n.value.from), 1)) : y("", !0),
3081
3085
  d("div", Go, [
3082
3086
  d("div", {
3083
- class: C(["utopia-pricetag--price", e.value])
3087
+ class: J(["utopia-pricetag--price", e.value])
3084
3088
  }, T(A.price) + " " + T(A.currency), 3),
3085
3089
  A.oldPrice ? (f(), m("div", Zo, [
3086
3090
  d("s", null, T(A.oldPrice) + " " + T(A.currency), 1)
@@ -3099,7 +3103,7 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3099
3103
  },
3100
3104
  emits: ["update:modelValue", "search", "focus", "blur"],
3101
3105
  setup(A, { emit: s }) {
3102
- const e = A, t = s, n = H(e.modelValue), o = H(!1), c = P(() => ({
3106
+ const e = A, t = s, n = Z(e.modelValue), o = Z(!1), c = x(() => ({
3103
3107
  [`utopia-search-box--${e.size}`]: !0,
3104
3108
  "utopia-search-box--focused": o.value,
3105
3109
  "utopia-search-box--disabled": e.disabled
@@ -3118,9 +3122,9 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3118
3122
  n.value = "", t("update:modelValue", ""), t("search", "");
3119
3123
  }
3120
3124
  return (g, l) => (f(), m("div", {
3121
- class: C(["utopia-search-box", c.value])
3125
+ class: J(["utopia-search-box", c.value])
3122
3126
  }, [
3123
- J(G(F), {
3127
+ H(G(F), {
3124
3128
  name: "Search",
3125
3129
  class: "search-icon"
3126
3130
  }),
@@ -3141,7 +3145,7 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3141
3145
  class: "clear-button",
3142
3146
  type: "button"
3143
3147
  }, [
3144
- J(G(F), { name: "X" })
3148
+ H(G(F), { name: "X" })
3145
3149
  ])) : y("", !0)
3146
3150
  ], 2));
3147
3151
  }
@@ -3163,92 +3167,92 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3163
3167
  },
3164
3168
  emits: ["slide-change"],
3165
3169
  setup(A, { emit: s }) {
3166
- Gs((Y) => ({
3167
- d725a716: Y.height
3170
+ Gs((w) => ({
3171
+ d725a716: w.height
3168
3172
  }));
3169
- const e = A, t = s, n = H(0), o = H(!1);
3173
+ const e = A, t = s, n = Z(0), o = Z(!1);
3170
3174
  let c = null, i = null;
3171
- const r = H(!1), a = H(0), u = H(0), g = H(0), l = H(0), v = H(0), p = P(() => {
3172
- const Y = -n.value * 100, S = r.value ? v.value : 0;
3175
+ const r = Z(!1), a = Z(0), u = Z(0), g = Z(0), l = Z(0), v = Z(0), P = x(() => {
3176
+ const w = -n.value * 100, N = r.value ? v.value : 0;
3173
3177
  return e.direction === "vertical" ? {
3174
- transform: `translateY(calc(${Y}% + ${S}px))`,
3178
+ transform: `translateY(calc(${w}% + ${N}px))`,
3175
3179
  transition: r.value ? "none" : `transform ${e.transitionDuration}ms ease-in-out`
3176
3180
  } : {
3177
- transform: `translateX(calc(${Y}% + ${S}px))`,
3181
+ transform: `translateX(calc(${w}% + ${N}px))`,
3178
3182
  transition: r.value ? "none" : `transform ${e.transitionDuration}ms ease-in-out`
3179
3183
  };
3180
- }), O = () => {
3184
+ }), M = () => {
3181
3185
  n.value = (n.value + 1) % e.slides.length;
3182
- }, x = () => {
3186
+ }, p = () => {
3183
3187
  n.value = n.value === 0 ? e.slides.length - 1 : n.value - 1;
3184
- }, b = (Y) => {
3185
- n.value = Y;
3186
- }, k = () => {
3188
+ }, b = (w) => {
3189
+ n.value = w;
3190
+ }, D = () => {
3187
3191
  i && clearTimeout(i), i = window.setTimeout(() => {
3188
3192
  o.value = !0;
3189
- }, 200), e.autoplay && Z();
3190
- }, w = () => {
3191
- i && (clearTimeout(i), i = null), o.value = !1, e.autoplay && L();
3192
- }, L = () => {
3193
- e.autoplay && e.slides.length > 1 && (c = window.setInterval(O, e.autoplayDelay));
3194
- }, Z = () => {
3193
+ }, 200), e.autoplay && I();
3194
+ }, B = () => {
3195
+ i && (clearTimeout(i), i = null), o.value = !1, e.autoplay && C();
3196
+ }, C = () => {
3197
+ e.autoplay && e.slides.length > 1 && (c = window.setInterval(M, e.autoplayDelay));
3198
+ }, I = () => {
3195
3199
  c && (clearInterval(c), c = null);
3196
- }, B = (Y) => {
3200
+ }, L = (w) => {
3197
3201
  if (!(e.slides.length <= 1)) {
3198
- if (r.value = !0, v.value = 0, Y.type === "touchstart") {
3199
- const S = Y.touches[0];
3200
- a.value = S.clientX, u.value = S.clientY;
3202
+ if (r.value = !0, v.value = 0, w.type === "touchstart") {
3203
+ const N = w.touches[0];
3204
+ a.value = N.clientX, u.value = N.clientY;
3201
3205
  } else
3202
- Y.preventDefault(), a.value = Y.clientX, u.value = Y.clientY, document.addEventListener("mousemove", Q), document.addEventListener("mouseup", I);
3203
- Z();
3206
+ w.preventDefault(), a.value = w.clientX, u.value = w.clientY, document.addEventListener("mousemove", j), document.addEventListener("mouseup", Q);
3207
+ I();
3204
3208
  }
3205
- }, Q = (Y) => {
3209
+ }, j = (w) => {
3206
3210
  if (!r.value) return;
3207
- let S, D;
3208
- if (Y.type === "touchmove") {
3209
- Y.preventDefault();
3210
- const E = Y.touches[0];
3211
- S = E.clientX, D = E.clientY;
3211
+ let N, k;
3212
+ if (w.type === "touchmove") {
3213
+ w.preventDefault();
3214
+ const E = w.touches[0];
3215
+ N = E.clientX, k = E.clientY;
3212
3216
  } else
3213
- Y.preventDefault(), S = Y.clientX, D = Y.clientY;
3214
- g.value = S, l.value = D;
3215
- const j = e.direction === "vertical" ? D - u.value : S - a.value, z = n.value === 0, M = n.value === e.slides.length - 1;
3216
- z && j > 0 || M && j < 0 ? v.value = j * 0.3 : v.value = j;
3217
- }, I = (Y) => {
3217
+ w.preventDefault(), N = w.clientX, k = w.clientY;
3218
+ g.value = N, l.value = k;
3219
+ const Y = e.direction === "vertical" ? k - u.value : N - a.value, z = n.value === 0, O = n.value === e.slides.length - 1;
3220
+ z && Y > 0 || O && Y < 0 ? v.value = Y * 0.3 : v.value = Y;
3221
+ }, Q = (w) => {
3218
3222
  if (!r.value) return;
3219
- r.value = !1, (Y.type === "mouseup" || Y.type === "mouseleave") && (document.removeEventListener("mousemove", Q), document.removeEventListener("mouseup", I));
3220
- const S = 50, D = e.direction === "vertical" ? l.value - u.value : g.value - a.value, j = document.querySelector(".slide"), z = j ? e.direction === "vertical" ? j.clientHeight : j.clientWidth : 300, M = Math.abs(D) / z * 100;
3221
- (Math.abs(D) > S || M > 20) && (D > 0 && n.value > 0 ? x() : D < 0 && n.value < e.slides.length - 1 && O()), v.value = 0, e.autoplay && L();
3223
+ r.value = !1, (w.type === "mouseup" || w.type === "mouseleave") && (document.removeEventListener("mousemove", j), document.removeEventListener("mouseup", Q));
3224
+ const N = 50, k = e.direction === "vertical" ? l.value - u.value : g.value - a.value, Y = document.querySelector(".slide"), z = Y ? e.direction === "vertical" ? Y.clientHeight : Y.clientWidth : 300, O = Math.abs(k) / z * 100;
3225
+ (Math.abs(k) > N || O > 20) && (k > 0 && n.value > 0 ? p() : k < 0 && n.value < e.slides.length - 1 && M()), v.value = 0, e.autoplay && C();
3222
3226
  };
3223
- return rA(n, (Y) => {
3224
- t("slide-change", Y);
3227
+ return rA(n, (w) => {
3228
+ t("slide-change", w);
3225
3229
  }), xA(() => {
3226
- L();
3230
+ C();
3227
3231
  }), OA(() => {
3228
- Z(), i && clearTimeout(i);
3229
- }), (Y, S) => (f(), m("div", {
3230
- class: C(["utopia-slider", [
3232
+ I(), i && clearTimeout(i);
3233
+ }), (w, N) => (f(), m("div", {
3234
+ class: J(["utopia-slider", [
3231
3235
  `utopia-slider--${A.direction}`,
3232
3236
  {
3233
3237
  "utopia-slider--controls-visible": A.showControls,
3234
3238
  "utopia-slider--dragging": r.value
3235
3239
  }
3236
3240
  ]]),
3237
- onMouseenter: k,
3238
- onMouseleave: w
3241
+ onMouseenter: D,
3242
+ onMouseleave: B
3239
3243
  }, [
3240
3244
  d("div", Eo, [
3241
- A.slides.length > 1 ? (f(), V(vA, {
3245
+ A.slides.length > 1 ? (f(), S(vA, {
3242
3246
  key: 0,
3243
- class: C(["slider-nav slider-nav--prev", { "slider-nav--visible": o.value || A.alwaysShowControls }]),
3244
- onClick: x,
3247
+ class: J(["slider-nav slider-nav--prev", { "slider-nav--visible": o.value || A.alwaysShowControls }]),
3248
+ onClick: p,
3245
3249
  "aria-label": "Previous slide",
3246
3250
  variant: "secondary",
3247
3251
  size: "sm"
3248
3252
  }, {
3249
3253
  default: R(() => [
3250
- AA(Y.$slots, "prev-icon", {}, () => [
3251
- J(F, {
3254
+ AA(w.$slots, "prev-icon", {}, () => [
3255
+ H(F, {
3252
3256
  name: A.direction === "vertical" ? "Chevron-up" : "Chevron-left",
3253
3257
  size: "small"
3254
3258
  }, null, 8, ["name"])
@@ -3256,17 +3260,17 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3256
3260
  ]),
3257
3261
  _: 3
3258
3262
  }, 8, ["class"])) : y("", !0),
3259
- A.slides.length > 1 ? (f(), V(vA, {
3263
+ A.slides.length > 1 ? (f(), S(vA, {
3260
3264
  key: 1,
3261
- class: C(["slider-nav slider-nav--next", { "slider-nav--visible": o.value || A.alwaysShowControls }]),
3262
- onClick: O,
3265
+ class: J(["slider-nav slider-nav--next", { "slider-nav--visible": o.value || A.alwaysShowControls }]),
3266
+ onClick: M,
3263
3267
  "aria-label": "Next slide",
3264
3268
  variant: "secondary",
3265
3269
  size: "sm"
3266
3270
  }, {
3267
3271
  default: R(() => [
3268
- AA(Y.$slots, "next-icon", {}, () => [
3269
- J(F, {
3272
+ AA(w.$slots, "next-icon", {}, () => [
3273
+ H(F, {
3270
3274
  name: A.direction === "vertical" ? "Chevron-down" : "Chevron-right",
3271
3275
  size: "small"
3272
3276
  }, null, 8, ["name"])
@@ -3276,44 +3280,44 @@ const Mo = ["aria-hidden"], Oo = ["aria-labelledby"], yo = {
3276
3280
  }, 8, ["class"])) : y("", !0),
3277
3281
  d("div", {
3278
3282
  class: "slider-track",
3279
- style: cA(p.value),
3280
- onTouchstart: B,
3281
- onTouchmove: Q,
3282
- onTouchend: I,
3283
- onTouchcancel: I,
3284
- onMousedown: B
3283
+ style: cA(P.value),
3284
+ onTouchstart: L,
3285
+ onTouchmove: j,
3286
+ onTouchend: Q,
3287
+ onTouchcancel: Q,
3288
+ onMousedown: L
3285
3289
  }, [
3286
- (f(!0), m(sA, null, aA(A.slides, (D, j) => (f(), m("div", {
3287
- key: j,
3288
- class: C(["slide", { "slide--active": j === n.value }])
3290
+ (f(!0), m(sA, null, aA(A.slides, (k, Y) => (f(), m("div", {
3291
+ key: Y,
3292
+ class: J(["slide", { "slide--active": Y === n.value }])
3289
3293
  }, [
3290
- AA(Y.$slots, "slide", {
3291
- slide: D,
3292
- index: j
3294
+ AA(w.$slots, "slide", {
3295
+ slide: k,
3296
+ index: Y
3293
3297
  }, () => [
3294
- D.image ? (f(), m("div", Xo, [
3298
+ k.image ? (f(), m("div", Xo, [
3295
3299
  d("img", {
3296
- src: D.image,
3297
- alt: D.alt || `Slide ${j + 1}`
3300
+ src: k.image,
3301
+ alt: k.alt || `Slide ${Y + 1}`
3298
3302
  }, null, 8, Qo)
3299
3303
  ])) : y("", !0),
3300
- D.content ? (f(), m("div", {
3304
+ k.content ? (f(), m("div", {
3301
3305
  key: 1,
3302
3306
  class: "slide-content",
3303
- innerHTML: D.content
3307
+ innerHTML: k.content
3304
3308
  }, null, 8, ho)) : y("", !0)
3305
3309
  ], !0)
3306
3310
  ], 2))), 128))
3307
3311
  ], 36),
3308
3312
  A.showDots && A.slides.length > 1 ? (f(), m("div", {
3309
3313
  key: 2,
3310
- class: C(["slider-dots", `slider-dots--${A.direction}`])
3314
+ class: J(["slider-dots", `slider-dots--${A.direction}`])
3311
3315
  }, [
3312
- (f(!0), m(sA, null, aA(A.slides, (D, j) => (f(), m("button", {
3313
- key: j,
3314
- class: C(["dot", { "dot--active": j === n.value }]),
3315
- onClick: (z) => b(j),
3316
- "aria-label": `Go to slide ${j + 1}`
3316
+ (f(!0), m(sA, null, aA(A.slides, (k, Y) => (f(), m("button", {
3317
+ key: Y,
3318
+ class: J(["dot", { "dot--active": Y === n.value }]),
3319
+ onClick: (z) => b(Y),
3320
+ "aria-label": `Go to slide ${Y + 1}`
3317
3321
  }, null, 10, Fo))), 128))
3318
3322
  ], 2)) : y("", !0)
3319
3323
  ])
@@ -3487,16 +3491,16 @@ const ec = async (A, s, e) => {
3487
3491
  }), {
3488
3492
  x: u,
3489
3493
  y: g
3490
- } = Ie(a, t, r), l = t, v = {}, p = 0;
3491
- for (let O = 0; O < i.length; O++) {
3494
+ } = Ie(a, t, r), l = t, v = {}, P = 0;
3495
+ for (let M = 0; M < i.length; M++) {
3492
3496
  const {
3493
- name: x,
3497
+ name: p,
3494
3498
  fn: b
3495
- } = i[O], {
3496
- x: k,
3497
- y: w,
3498
- data: L,
3499
- reset: Z
3499
+ } = i[M], {
3500
+ x: D,
3501
+ y: B,
3502
+ data: C,
3503
+ reset: I
3500
3504
  } = await b({
3501
3505
  x: u,
3502
3506
  y: g,
@@ -3511,20 +3515,20 @@ const ec = async (A, s, e) => {
3511
3515
  floating: s
3512
3516
  }
3513
3517
  });
3514
- u = k ?? u, g = w ?? g, v = {
3518
+ u = D ?? u, g = B ?? g, v = {
3515
3519
  ...v,
3516
- [x]: {
3517
- ...v[x],
3518
- ...L
3520
+ [p]: {
3521
+ ...v[p],
3522
+ ...C
3519
3523
  }
3520
- }, Z && p <= 50 && (p++, typeof Z == "object" && (Z.placement && (l = Z.placement), Z.rects && (a = Z.rects === !0 ? await c.getElementRects({
3524
+ }, I && P <= 50 && (P++, typeof I == "object" && (I.placement && (l = I.placement), I.rects && (a = I.rects === !0 ? await c.getElementRects({
3521
3525
  reference: A,
3522
3526
  floating: s,
3523
3527
  strategy: n
3524
- }) : Z.rects), {
3528
+ }) : I.rects), {
3525
3529
  x: u,
3526
3530
  y: g
3527
- } = Ie(a, l, r)), O = -1);
3531
+ } = Ie(a, l, r)), M = -1);
3528
3532
  }
3529
3533
  return {
3530
3534
  x: u,
@@ -3550,33 +3554,33 @@ async function fs(A, s) {
3550
3554
  elementContext: g = "floating",
3551
3555
  altBoundary: l = !1,
3552
3556
  padding: v = 0
3553
- } = SA(s, A), p = as(v), x = i[l ? g === "floating" ? "reference" : "floating" : g], b = le(await o.getClippingRect({
3554
- 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)),
3557
+ } = SA(s, A), P = as(v), p = i[l ? g === "floating" ? "reference" : "floating" : g], b = le(await o.getClippingRect({
3558
+ element: (e = await (o.isElement == null ? void 0 : o.isElement(p))) == null || e ? p : p.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
3555
3559
  boundary: a,
3556
3560
  rootBoundary: u,
3557
3561
  strategy: r
3558
- })), k = g === "floating" ? {
3562
+ })), D = g === "floating" ? {
3559
3563
  x: t,
3560
3564
  y: n,
3561
3565
  width: c.floating.width,
3562
3566
  height: c.floating.height
3563
- } : 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)) || {
3567
+ } : c.reference, B = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), C = await (o.isElement == null ? void 0 : o.isElement(B)) ? await (o.getScale == null ? void 0 : o.getScale(B)) || {
3564
3568
  x: 1,
3565
3569
  y: 1
3566
3570
  } : {
3567
3571
  x: 1,
3568
3572
  y: 1
3569
- }, Z = le(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
3573
+ }, I = le(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
3570
3574
  elements: i,
3571
- rect: k,
3572
- offsetParent: w,
3575
+ rect: D,
3576
+ offsetParent: B,
3573
3577
  strategy: r
3574
- }) : k);
3578
+ }) : D);
3575
3579
  return {
3576
- top: (b.top - Z.top + p.top) / L.y,
3577
- bottom: (Z.bottom - b.bottom + p.bottom) / L.y,
3578
- left: (b.left - Z.left + p.left) / L.x,
3579
- right: (Z.right - b.right + p.right) / L.x
3580
+ top: (b.top - I.top + P.top) / C.y,
3581
+ bottom: (I.bottom - b.bottom + P.bottom) / C.y,
3582
+ left: (b.left - I.left + P.left) / C.x,
3583
+ right: (I.right - b.right + P.right) / C.x
3580
3584
  };
3581
3585
  }
3582
3586
  const sc = (A) => ({
@@ -3600,17 +3604,17 @@ const sc = (A) => ({
3600
3604
  const g = as(u), l = {
3601
3605
  x: e,
3602
3606
  y: t
3603
- }, v = Ye(n), p = je(v), O = await c.getDimensions(a), x = v === "y", b = x ? "top" : "left", k = x ? "bottom" : "right", w = x ? "clientHeight" : "clientWidth", L = o.reference[p] + o.reference[v] - l[v] - o.floating[p], Z = l[v] - o.reference[v], B = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(a));
3604
- let Q = B ? B[w] : 0;
3605
- (!Q || !await (c.isElement == null ? void 0 : c.isElement(B))) && (Q = i.floating[w] || o.floating[p]);
3606
- const I = L / 2 - Z / 2, Y = Q / 2 - O[p] / 2 - 1, S = CA(g[b], Y), D = CA(g[k], Y), j = S, z = Q - O[p] - D, M = Q / 2 - O[p] / 2 + I, E = Oe(j, M, z), h = !r.arrow && WA(n) != null && M !== E && o.reference[p] / 2 - (M < j ? S : D) - O[p] / 2 < 0, N = h ? M < j ? M - j : M - z : 0;
3607
+ }, v = Ye(n), P = je(v), M = await c.getDimensions(a), p = v === "y", b = p ? "top" : "left", D = p ? "bottom" : "right", B = p ? "clientHeight" : "clientWidth", C = o.reference[P] + o.reference[v] - l[v] - o.floating[P], I = l[v] - o.reference[v], L = await (c.getOffsetParent == null ? void 0 : c.getOffsetParent(a));
3608
+ let j = L ? L[B] : 0;
3609
+ (!j || !await (c.isElement == null ? void 0 : c.isElement(L))) && (j = i.floating[B] || o.floating[P]);
3610
+ const Q = C / 2 - I / 2, w = j / 2 - M[P] / 2 - 1, N = CA(g[b], w), k = CA(g[D], w), Y = N, z = j - M[P] - k, O = j / 2 - M[P] / 2 + Q, E = Oe(Y, O, z), h = !r.arrow && WA(n) != null && O !== E && o.reference[P] / 2 - (O < Y ? N : k) - M[P] / 2 < 0, V = h ? O < Y ? O - Y : O - z : 0;
3607
3611
  return {
3608
- [v]: l[v] + N,
3612
+ [v]: l[v] + V,
3609
3613
  data: {
3610
3614
  [v]: E,
3611
- centerOffset: M - E - N,
3615
+ centerOffset: O - E - V,
3612
3616
  ...h && {
3613
- alignmentOffset: N
3617
+ alignmentOffset: V
3614
3618
  }
3615
3619
  },
3616
3620
  reset: h
@@ -3634,53 +3638,53 @@ const sc = (A) => ({
3634
3638
  crossAxis: g = !0,
3635
3639
  fallbackPlacements: l,
3636
3640
  fallbackStrategy: v = "bestFit",
3637
- fallbackAxisSideDirection: p = "none",
3638
- flipAlignment: O = !0,
3639
- ...x
3641
+ fallbackAxisSideDirection: P = "none",
3642
+ flipAlignment: M = !0,
3643
+ ...p
3640
3644
  } = SA(A, s);
3641
3645
  if ((e = o.arrow) != null && e.alignmentOffset)
3642
3646
  return {};
3643
- const b = TA(n), k = bA(i), w = TA(i) === i, L = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), Z = l || (w || !O ? [fe(i)] : Ro(i)), B = p !== "none";
3644
- !l && B && Z.push(...$o(i, O, p, L));
3645
- const Q = [i, ...Z], I = await fs(s, x), Y = [];
3646
- let S = ((t = o.flip) == null ? void 0 : t.overflows) || [];
3647
- if (u && Y.push(I[b]), g) {
3648
- const M = Ko(n, c, L);
3649
- Y.push(I[M[0]], I[M[1]]);
3647
+ const b = TA(n), D = bA(i), B = TA(i) === i, C = await (r.isRTL == null ? void 0 : r.isRTL(a.floating)), I = l || (B || !M ? [fe(i)] : Ro(i)), L = P !== "none";
3648
+ !l && L && I.push(...$o(i, M, P, C));
3649
+ const j = [i, ...I], Q = await fs(s, p), w = [];
3650
+ let N = ((t = o.flip) == null ? void 0 : t.overflows) || [];
3651
+ if (u && w.push(Q[b]), g) {
3652
+ const O = Ko(n, c, C);
3653
+ w.push(Q[O[0]], Q[O[1]]);
3650
3654
  }
3651
- if (S = [...S, {
3655
+ if (N = [...N, {
3652
3656
  placement: n,
3653
- overflows: Y
3654
- }], !Y.every((M) => M <= 0)) {
3655
- var D, j;
3656
- const M = (((D = o.flip) == null ? void 0 : D.index) || 0) + 1, E = Q[M];
3657
- if (E && (!(g === "alignment" ? k !== bA(E) : !1) || // We leave the current main axis only if every placement on that axis
3657
+ overflows: w
3658
+ }], !w.every((O) => O <= 0)) {
3659
+ var k, Y;
3660
+ const O = (((k = o.flip) == null ? void 0 : k.index) || 0) + 1, E = j[O];
3661
+ if (E && (!(g === "alignment" ? D !== bA(E) : !1) || // We leave the current main axis only if every placement on that axis
3658
3662
  // overflows the main axis.
3659
- S.every((W) => bA(W.placement) === k ? W.overflows[0] > 0 : !0)))
3663
+ N.every((W) => bA(W.placement) === D ? W.overflows[0] > 0 : !0)))
3660
3664
  return {
3661
3665
  data: {
3662
- index: M,
3663
- overflows: S
3666
+ index: O,
3667
+ overflows: N
3664
3668
  },
3665
3669
  reset: {
3666
3670
  placement: E
3667
3671
  }
3668
3672
  };
3669
- let h = (j = S.filter((N) => N.overflows[0] <= 0).sort((N, W) => N.overflows[1] - W.overflows[1])[0]) == null ? void 0 : j.placement;
3673
+ let h = (Y = N.filter((V) => V.overflows[0] <= 0).sort((V, W) => V.overflows[1] - W.overflows[1])[0]) == null ? void 0 : Y.placement;
3670
3674
  if (!h)
3671
3675
  switch (v) {
3672
3676
  case "bestFit": {
3673
3677
  var z;
3674
- const N = (z = S.filter((W) => {
3675
- if (B) {
3678
+ const V = (z = N.filter((W) => {
3679
+ if (L) {
3676
3680
  const K = bA(W.placement);
3677
- return K === k || // Create a bias to the `y` side axis due to horizontal
3681
+ return K === D || // Create a bias to the `y` side axis due to horizontal
3678
3682
  // reading directions favoring greater width.
3679
3683
  K === "y";
3680
3684
  }
3681
3685
  return !0;
3682
3686
  }).map((W) => [W.placement, W.overflows.filter((K) => K > 0).reduce((K, eA) => K + eA, 0)]).sort((W, K) => W[1] - K[1])[0]) == null ? void 0 : z[0];
3683
- N && (h = N);
3687
+ V && (h = V);
3684
3688
  break;
3685
3689
  }
3686
3690
  case "initialPlacement":
@@ -3707,7 +3711,7 @@ async function oc(A, s) {
3707
3711
  let {
3708
3712
  mainAxis: l,
3709
3713
  crossAxis: v,
3710
- alignmentAxis: p
3714
+ alignmentAxis: P
3711
3715
  } = typeof g == "number" ? {
3712
3716
  mainAxis: g,
3713
3717
  crossAxis: 0,
@@ -3717,7 +3721,7 @@ async function oc(A, s) {
3717
3721
  crossAxis: g.crossAxis || 0,
3718
3722
  alignmentAxis: g.alignmentAxis
3719
3723
  };
3720
- return i && typeof p == "number" && (v = i === "end" ? p * -1 : p), r ? {
3724
+ return i && typeof P == "number" && (v = i === "end" ? P * -1 : P), r ? {
3721
3725
  x: v * u,
3722
3726
  y: l * a
3723
3727
  } : {
@@ -3760,14 +3764,14 @@ const cc = function(A) {
3760
3764
  mainAxis: o = !0,
3761
3765
  crossAxis: c = !1,
3762
3766
  limiter: i = {
3763
- fn: (x) => {
3767
+ fn: (p) => {
3764
3768
  let {
3765
3769
  x: b,
3766
- y: k
3767
- } = x;
3770
+ y: D
3771
+ } = p;
3768
3772
  return {
3769
3773
  x: b,
3770
- y: k
3774
+ y: D
3771
3775
  };
3772
3776
  }
3773
3777
  },
@@ -3776,25 +3780,25 @@ const cc = function(A) {
3776
3780
  x: e,
3777
3781
  y: t
3778
3782
  }, u = await fs(s, r), g = bA(TA(n)), l = rs(g);
3779
- let v = a[l], p = a[g];
3783
+ let v = a[l], P = a[g];
3780
3784
  if (o) {
3781
- const x = l === "y" ? "top" : "left", b = l === "y" ? "bottom" : "right", k = v + u[x], w = v - u[b];
3782
- v = Oe(k, v, w);
3785
+ const p = l === "y" ? "top" : "left", b = l === "y" ? "bottom" : "right", D = v + u[p], B = v - u[b];
3786
+ v = Oe(D, v, B);
3783
3787
  }
3784
3788
  if (c) {
3785
- const x = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", k = p + u[x], w = p - u[b];
3786
- p = Oe(k, p, w);
3789
+ const p = g === "y" ? "top" : "left", b = g === "y" ? "bottom" : "right", D = P + u[p], B = P - u[b];
3790
+ P = Oe(D, P, B);
3787
3791
  }
3788
- const O = i.fn({
3792
+ const M = i.fn({
3789
3793
  ...s,
3790
3794
  [l]: v,
3791
- [g]: p
3795
+ [g]: P
3792
3796
  });
3793
3797
  return {
3794
- ...O,
3798
+ ...M,
3795
3799
  data: {
3796
- x: O.x - e,
3797
- y: O.y - t,
3800
+ x: M.x - e,
3801
+ y: M.y - t,
3798
3802
  enabled: {
3799
3803
  [l]: o,
3800
3804
  [g]: c
@@ -3966,10 +3970,10 @@ function GA(A, s, e, t) {
3966
3970
  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;
3967
3971
  if (o) {
3968
3972
  const l = lA(o), v = t && gA(t) ? lA(t) : t;
3969
- let p = l, O = be(p);
3970
- for (; O && t && v !== p; ) {
3971
- const x = JA(O), b = O.getBoundingClientRect(), k = mA(O), w = b.left + (O.clientLeft + parseFloat(k.paddingLeft)) * x.x, L = b.top + (O.clientTop + parseFloat(k.paddingTop)) * x.y;
3972
- r *= x.x, a *= x.y, u *= x.x, g *= x.y, r += w, a += L, p = lA(O), O = be(p);
3973
+ let P = l, M = be(P);
3974
+ for (; M && t && v !== P; ) {
3975
+ const p = JA(M), b = M.getBoundingClientRect(), D = mA(M), B = b.left + (M.clientLeft + parseFloat(D.paddingLeft)) * p.x, C = b.top + (M.clientTop + parseFloat(D.paddingTop)) * p.y;
3976
+ r *= p.x, a *= p.y, u *= p.x, g *= p.y, r += B, a += C, P = lA(M), M = be(P);
3973
3977
  }
3974
3978
  }
3975
3979
  return le({
@@ -4042,8 +4046,8 @@ function Oc(A, s) {
4042
4046
  }
4043
4047
  const a = ge(t);
4044
4048
  if (a <= 0) {
4045
- const u = t.ownerDocument, g = u.body, l = getComputedStyle(g), v = u.compatMode === "CSS1Compat" && parseFloat(l.marginLeft) + parseFloat(l.marginRight) || 0, p = Math.abs(t.clientWidth - g.clientWidth - v);
4046
- p <= Se && (o -= p);
4049
+ const u = t.ownerDocument, g = u.body, l = getComputedStyle(g), v = u.compatMode === "CSS1Compat" && parseFloat(l.marginLeft) + parseFloat(l.marginRight) || 0, P = Math.abs(t.clientWidth - g.clientWidth - v);
4050
+ P <= Se && (o -= P);
4047
4051
  } else a <= Se && (o += a);
4048
4052
  return {
4049
4053
  width: o,
@@ -4226,30 +4230,30 @@ function Gc(A, s) {
4226
4230
  } = a;
4227
4231
  if (i || s(), !l || !v)
4228
4232
  return;
4229
- const p = qA(g), O = qA(n.clientWidth - (u + l)), x = qA(n.clientHeight - (g + v)), b = qA(u), w = {
4230
- rootMargin: -p + "px " + -O + "px " + -x + "px " + -b + "px",
4233
+ const P = qA(g), M = qA(n.clientWidth - (u + l)), p = qA(n.clientHeight - (g + v)), b = qA(u), B = {
4234
+ rootMargin: -P + "px " + -M + "px " + -p + "px " + -b + "px",
4231
4235
  threshold: YA(0, CA(1, r)) || 1
4232
4236
  };
4233
- let L = !0;
4234
- function Z(B) {
4235
- const Q = B[0].intersectionRatio;
4236
- if (Q !== r) {
4237
- if (!L)
4237
+ let C = !0;
4238
+ function I(L) {
4239
+ const j = L[0].intersectionRatio;
4240
+ if (j !== r) {
4241
+ if (!C)
4238
4242
  return c();
4239
- Q ? c(!1, Q) : t = setTimeout(() => {
4243
+ j ? c(!1, j) : t = setTimeout(() => {
4240
4244
  c(!1, 1e-7);
4241
4245
  }, 1e3);
4242
4246
  }
4243
- Q === 1 && !ps(a, A.getBoundingClientRect()) && c(), L = !1;
4247
+ j === 1 && !ps(a, A.getBoundingClientRect()) && c(), C = !1;
4244
4248
  }
4245
4249
  try {
4246
- e = new IntersectionObserver(Z, {
4247
- ...w,
4250
+ e = new IntersectionObserver(I, {
4251
+ ...B,
4248
4252
  // Handle <iframe>s
4249
4253
  root: n.ownerDocument
4250
4254
  });
4251
4255
  } catch {
4252
- e = new IntersectionObserver(Z, w);
4256
+ e = new IntersectionObserver(I, B);
4253
4257
  }
4254
4258
  e.observe(A);
4255
4259
  }
@@ -4272,23 +4276,23 @@ function Zc(A, s, e, t) {
4272
4276
  const g = a && i ? Gc(a, e) : null;
4273
4277
  let l = -1, v = null;
4274
4278
  c && (v = new ResizeObserver((b) => {
4275
- let [k] = b;
4276
- k && k.target === a && v && (v.unobserve(s), cancelAnimationFrame(l), l = requestAnimationFrame(() => {
4277
- var w;
4278
- (w = v) == null || w.observe(s);
4279
+ let [D] = b;
4280
+ D && D.target === a && v && (v.unobserve(s), cancelAnimationFrame(l), l = requestAnimationFrame(() => {
4281
+ var B;
4282
+ (B = v) == null || B.observe(s);
4279
4283
  })), e();
4280
4284
  }), a && !r && v.observe(a), v.observe(s));
4281
- let p, O = r ? GA(A) : null;
4282
- r && x();
4283
- function x() {
4285
+ let P, M = r ? GA(A) : null;
4286
+ r && p();
4287
+ function p() {
4284
4288
  const b = GA(A);
4285
- O && !ps(O, b) && e(), O = b, p = requestAnimationFrame(x);
4289
+ M && !ps(M, b) && e(), M = b, P = requestAnimationFrame(p);
4286
4290
  }
4287
4291
  return e(), () => {
4288
4292
  var b;
4289
- u.forEach((k) => {
4290
- n && k.removeEventListener("scroll", e), o && k.removeEventListener("resize", e);
4291
- }), g?.(), (b = v) == null || b.disconnect(), v = null, r && cancelAnimationFrame(p);
4293
+ u.forEach((D) => {
4294
+ n && D.removeEventListener("scroll", e), o && D.removeEventListener("resize", e);
4295
+ }), g?.(), (b = v) == null || b.disconnect(), v = null, r && cancelAnimationFrame(P);
4292
4296
  };
4293
4297
  }
4294
4298
  const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
@@ -4316,40 +4320,40 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4316
4320
  interactive: { type: Boolean, default: !1 }
4317
4321
  },
4318
4322
  setup(A) {
4319
- const s = A, { placement: e, openDelay: t, closeDelay: n, offset: o, withArrow: c, disabled: i, interactive: r } = s, a = H(null), u = H(null), g = H(null), l = `utopia-tooltip-${Math.random().toString(36).slice(2, 9)}`, v = H(!1), p = H(!1), O = H(!1);
4320
- let x, b, k = null;
4321
- function w() {
4322
- x && clearTimeout(x), b && clearTimeout(b);
4323
+ 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), l = `utopia-tooltip-${Math.random().toString(36).slice(2, 9)}`, v = Z(!1), P = Z(!1), M = Z(!1);
4324
+ let p, b, D = null;
4325
+ function B() {
4326
+ p && clearTimeout(p), b && clearTimeout(b);
4323
4327
  }
4324
- function L() {
4325
- i || (w(), p.value = !0, x = window.setTimeout(() => {
4328
+ function C() {
4329
+ i || (B(), P.value = !0, p = window.setTimeout(() => {
4326
4330
  v.value = !0;
4327
4331
  }, t));
4328
4332
  }
4329
- function Z() {
4330
- p.value = !1, w();
4333
+ function I() {
4334
+ P.value = !1, B();
4331
4335
  const h = r ? 300 : n;
4332
4336
  b = window.setTimeout(() => {
4333
- r && (O.value || p.value) || (v.value = !1);
4337
+ r && (M.value || P.value) || (v.value = !1);
4334
4338
  }, h);
4335
4339
  }
4336
- function B() {
4337
- r && (O.value = !0, w());
4340
+ function L() {
4341
+ r && (M.value = !0, B());
4338
4342
  }
4339
- function Q() {
4340
- r && (O.value = !1, p.value || Z());
4343
+ function j() {
4344
+ r && (M.value = !1, P.value || I());
4341
4345
  }
4342
- function I(h) {
4346
+ function Q(h) {
4343
4347
  h.key === "Escape" && (v.value = !1);
4344
4348
  }
4345
- function Y() {
4346
- v.value && (w(), v.value = !1, p.value = !1, O.value = !1);
4349
+ function w() {
4350
+ v.value && (B(), v.value = !1, P.value = !1, M.value = !1);
4347
4351
  }
4348
- function S(h) {
4352
+ function N(h) {
4349
4353
  window.mouseX = h.clientX, window.mouseY = h.clientY;
4350
4354
  }
4351
- const D = { onEnter: L, onLeave: Z }, j = H({}), z = H(e);
4352
- function M(h) {
4355
+ const k = { onEnter: C, onLeave: I }, Y = Z({}), z = Z(e);
4356
+ function O(h) {
4353
4357
  switch (h) {
4354
4358
  case "top_left":
4355
4359
  return "top-start";
@@ -4368,16 +4372,16 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4368
4372
  }
4369
4373
  }
4370
4374
  async function E() {
4371
- const h = a.value, N = u.value;
4372
- if (!h || !N) return;
4375
+ const h = a.value, V = u.value;
4376
+ if (!h || !V) return;
4373
4377
  const W = [Hc(o), Cc(), Jc({ padding: 8 })];
4374
4378
  c && g.value && W.push(Lc({ element: g.value }));
4375
- const { x: K, y: eA, placement: tA, middlewareData: dA } = await Ec(h, N, {
4376
- placement: M(e),
4379
+ const { x: K, y: eA, placement: tA, middlewareData: dA } = await Ec(h, V, {
4380
+ placement: O(e),
4377
4381
  middleware: W,
4378
4382
  strategy: "fixed"
4379
4383
  });
4380
- j.value = {
4384
+ Y.value = {
4381
4385
  position: "fixed",
4382
4386
  left: `${Math.round(K)}px`,
4383
4387
  top: `${Math.round(eA)}px`
@@ -4391,41 +4395,41 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4391
4395
  }
4392
4396
  }
4393
4397
  return rA(v, (h) => {
4394
- h ? (requestAnimationFrame(E), k?.(), a.value && u.value && (k = Zc(a.value, u.value, E)), document.addEventListener("keydown", I), window.addEventListener("scroll", Y, !0), document.addEventListener("scroll", Y, !0), window.addEventListener("wheel", Y, !0), window.addEventListener("touchmove", Y, !0)) : (k?.(), k = null, document.removeEventListener("keydown", I), window.removeEventListener("scroll", Y, !0), document.removeEventListener("scroll", Y, !0), window.removeEventListener("wheel", Y, !0), window.removeEventListener("touchmove", Y, !0), O.value = !1, p.value = !1);
4398
+ h ? (requestAnimationFrame(E), D?.(), a.value && u.value && (D = Zc(a.value, u.value, E)), document.addEventListener("keydown", Q), window.addEventListener("scroll", w, !0), document.addEventListener("scroll", w, !0), window.addEventListener("wheel", w, !0), window.addEventListener("touchmove", w, !0)) : (D?.(), D = null, document.removeEventListener("keydown", Q), window.removeEventListener("scroll", w, !0), document.removeEventListener("scroll", w, !0), window.removeEventListener("wheel", w, !0), window.removeEventListener("touchmove", w, !0), M.value = !1, P.value = !1);
4395
4399
  }), xA(() => {
4396
- document.addEventListener("mousemove", S), v.value && requestAnimationFrame(E);
4400
+ document.addEventListener("mousemove", N), v.value && requestAnimationFrame(E);
4397
4401
  }), qe(() => {
4398
- w(), k?.(), document.removeEventListener("keydown", I), window.removeEventListener("scroll", Y, !0), document.removeEventListener("scroll", Y, !0), window.removeEventListener("wheel", Y, !0), window.removeEventListener("touchmove", Y, !0), document.removeEventListener("mousemove", S);
4399
- }), (h, N) => (f(), m(sA, null, [
4402
+ B(), D?.(), document.removeEventListener("keydown", Q), window.removeEventListener("scroll", w, !0), document.removeEventListener("scroll", w, !0), window.removeEventListener("wheel", w, !0), window.removeEventListener("touchmove", w, !0), document.removeEventListener("mousemove", N);
4403
+ }), (h, V) => (f(), m(sA, null, [
4400
4404
  d("span", {
4401
- class: C(["utopia-tooltip-trigger", { "utopia-tooltip--disabled": G(i) }]),
4405
+ class: J(["utopia-tooltip-trigger", { "utopia-tooltip--disabled": G(i) }]),
4402
4406
  ref_key: "triggerRef",
4403
4407
  ref: a,
4404
- onMouseenter: N[0] || (N[0] = //@ts-ignore
4405
- (...W) => D.onEnter && D.onEnter(...W)),
4406
- onMouseleave: N[1] || (N[1] = //@ts-ignore
4407
- (...W) => D.onLeave && D.onLeave(...W)),
4408
- onFocusin: N[2] || (N[2] = //@ts-ignore
4409
- (...W) => D.onEnter && D.onEnter(...W)),
4410
- onFocusout: N[3] || (N[3] = //@ts-ignore
4411
- (...W) => D.onLeave && D.onLeave(...W))
4408
+ onMouseenter: V[0] || (V[0] = //@ts-ignore
4409
+ (...W) => k.onEnter && k.onEnter(...W)),
4410
+ onMouseleave: V[1] || (V[1] = //@ts-ignore
4411
+ (...W) => k.onLeave && k.onLeave(...W)),
4412
+ onFocusin: V[2] || (V[2] = //@ts-ignore
4413
+ (...W) => k.onEnter && k.onEnter(...W)),
4414
+ onFocusout: V[3] || (V[3] = //@ts-ignore
4415
+ (...W) => k.onLeave && k.onLeave(...W))
4412
4416
  }, [
4413
4417
  AA(h.$slots, "default", {}, void 0, !0)
4414
4418
  ], 34),
4415
- (f(), V(EA, { to: "body" }, [
4416
- J(DA, { name: "ut-tooltip" }, {
4419
+ (f(), S(EA, { to: "body" }, [
4420
+ H(DA, { name: "ut-tooltip" }, {
4417
4421
  default: R(() => [
4418
4422
  !G(i) && A.active && v.value ? (f(), m("div", {
4419
4423
  key: 0,
4420
4424
  id: l,
4421
- class: C(["utopia-tooltip", { "utopia-tooltip--interactive": G(r) }]),
4425
+ class: J(["utopia-tooltip", { "utopia-tooltip--interactive": G(r) }]),
4422
4426
  role: "tooltip",
4423
- style: cA(j.value),
4427
+ style: cA(Y.value),
4424
4428
  ref_key: "tooltipRef",
4425
4429
  ref: u,
4426
4430
  "data-side": z.value,
4427
- onMouseenter: B,
4428
- onMouseleave: Q
4431
+ onMouseenter: L,
4432
+ onMouseleave: j
4429
4433
  }, [
4430
4434
  d("div", Qc, [
4431
4435
  AA(h.$slots, "content", {}, void 0, !0)
@@ -4485,30 +4489,30 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4485
4489
  naissance: Os,
4486
4490
  mariage: xs,
4487
4491
  sport: ws
4488
- }, t = P(() => e[s.category]), n = P(() => s.totalAmount === 0 ? 0 : Math.min(s.spentAmount / s.totalAmount * 100, 100)), o = P(() => {
4489
- const x = s.language === "fr" ? "fr-FR" : "en-US";
4490
- return new Intl.NumberFormat(x, {
4492
+ }, t = x(() => e[s.category]), n = x(() => s.totalAmount === 0 ? 0 : Math.min(s.spentAmount / s.totalAmount * 100, 100)), o = x(() => {
4493
+ const p = s.language === "fr" ? "fr-FR" : "en-US";
4494
+ return new Intl.NumberFormat(p, {
4491
4495
  style: "currency",
4492
4496
  currency: s.currency,
4493
4497
  minimumFractionDigits: 2
4494
4498
  }).format(s.spentAmount);
4495
- }), c = P(() => {
4496
- const x = s.language === "fr" ? "fr-FR" : "en-US";
4497
- return new Intl.NumberFormat(x, {
4499
+ }), c = x(() => {
4500
+ const p = s.language === "fr" ? "fr-FR" : "en-US";
4501
+ return new Intl.NumberFormat(p, {
4498
4502
  style: "currency",
4499
4503
  currency: s.currency,
4500
4504
  minimumFractionDigits: 0
4501
4505
  }).format(s.totalAmount);
4502
- }), i = P(() => {
4503
- const x = new Date(s.expirationDate), b = s.language === "fr" ? "fr-FR" : "en-US";
4506
+ }), i = x(() => {
4507
+ const p = new Date(s.expirationDate), b = s.language === "fr" ? "fr-FR" : "en-US";
4504
4508
  return new Intl.DateTimeFormat(b, {
4505
4509
  day: "2-digit",
4506
4510
  month: "2-digit",
4507
4511
  year: "numeric"
4508
- }).format(x);
4512
+ }).format(p);
4509
4513
  }), r = () => {
4510
4514
  s.actionable && !s.disabled && s.actionable();
4511
- }, a = P(() => ({
4515
+ }, a = x(() => ({
4512
4516
  fr: {
4513
4517
  expiresOn: "Expire le",
4514
4518
  expiredOn: "Expirée le"
@@ -4517,17 +4521,17 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4517
4521
  expiresOn: "Expires on",
4518
4522
  expiredOn: "Expired on"
4519
4523
  }
4520
- })), u = P(() => a.value[s.language]), g = P(() => s.expiredLabel || u.value.expiredOn), l = H(), v = H(!1), p = () => {
4524
+ })), u = x(() => a.value[s.language]), g = x(() => s.expiredLabel || u.value.expiredOn), l = Z(), v = Z(!1), P = () => {
4521
4525
  s.campaignName.length > 20 && (v.value = !0);
4522
- }, O = () => {
4526
+ }, M = () => {
4523
4527
  v.value = !1;
4524
4528
  };
4525
- return (x, b) => (f(), V(rt, {
4529
+ return (p, b) => (f(), S(rt, {
4526
4530
  variant: "elevated",
4527
4531
  size: s.size,
4528
4532
  disabled: s.disabled,
4529
4533
  interactive: !!s.actionable,
4530
- class: C(["utopia-cardcampaign", { "utopia-cardcampaign--actionable": !!s.actionable }]),
4534
+ class: J(["utopia-cardcampaign", { "utopia-cardcampaign--actionable": !!s.actionable }]),
4531
4535
  onClick: r
4532
4536
  }, {
4533
4537
  default: R(() => [
@@ -4545,13 +4549,13 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4545
4549
  class: "utopia-cardcampaign__title",
4546
4550
  ref_key: "titleRef",
4547
4551
  ref: l,
4548
- onMouseenter: p,
4549
- onMouseleave: O
4552
+ onMouseenter: P,
4553
+ onMouseleave: M
4550
4554
  }, T(s.campaignName), 545),
4551
4555
  v.value && s.campaignName.length > 20 ? (f(), m("div", Wc, T(s.campaignName), 1)) : y("", !0)
4552
4556
  ]),
4553
4557
  s.disabled ? y("", !0) : (f(), m("div", Kc, [
4554
- J(F, {
4558
+ H(F, {
4555
4559
  name: "Calendar",
4556
4560
  size: "small",
4557
4561
  class: "utopia-cardcampaign__calendar-icon",
@@ -4561,7 +4565,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4561
4565
  ]))
4562
4566
  ]),
4563
4567
  s.actionable ? (f(), m("div", Uc, [
4564
- J(F, {
4568
+ H(F, {
4565
4569
  name: "Chevron-right",
4566
4570
  size: "small",
4567
4571
  "stroke-width": "2"
@@ -4619,7 +4623,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4619
4623
  campaign: "campaign",
4620
4624
  campaigns: "campaigns"
4621
4625
  }
4622
- }, o = P(() => n[s.language]), c = (r) => {
4626
+ }, o = x(() => n[s.language]), c = (r) => {
4623
4627
  const a = s.language === "fr" ? "fr-FR" : "en-US";
4624
4628
  return new Intl.NumberFormat(a, {
4625
4629
  style: "currency",
@@ -4630,7 +4634,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4630
4634
  return (r, a) => (f(), m("div", ii, [
4631
4635
  (f(!0), m(sA, null, aA(A.cards, (u, g) => (f(), m("div", {
4632
4636
  key: g,
4633
- class: C(["utopia-balance-card-grouped", {
4637
+ class: J(["utopia-balance-card-grouped", {
4634
4638
  "utopia-balance-card-grouped--actionable": u.actionable,
4635
4639
  "utopia-balance-card-grouped--disabled": u.disabled
4636
4640
  }]),
@@ -4662,7 +4666,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4662
4666
  ])
4663
4667
  ]),
4664
4668
  u.actionable && !u.disabled ? (f(), m("div", Pi, [
4665
- J(F, {
4669
+ H(F, {
4666
4670
  name: "Chevron-right",
4667
4671
  size: "small",
4668
4672
  "stroke-width": "2"
@@ -4697,67 +4701,67 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4697
4701
  },
4698
4702
  emits: ["row-click", "sort-change"],
4699
4703
  setup(A, { emit: s }) {
4700
- const e = A, t = s, n = H(""), o = H(null), c = P(() => !n.value || !o.value ? e.data : [...e.data].sort((x, b) => {
4701
- const k = i(x, n.value), w = i(b, n.value);
4702
- if (k === w) return 0;
4703
- const L = k > w ? 1 : -1;
4704
- return o.value === "asc" ? L : -L;
4704
+ const e = A, t = s, n = Z(""), o = Z(null), c = x(() => !n.value || !o.value ? e.data : [...e.data].sort((p, b) => {
4705
+ const D = i(p, n.value), B = i(b, n.value);
4706
+ if (D === B) return 0;
4707
+ const C = D > B ? 1 : -1;
4708
+ return o.value === "asc" ? C : -C;
4705
4709
  }));
4706
- function i(x, b) {
4707
- return b.split(".").reduce((k, w) => k?.[w], x);
4710
+ function i(p, b) {
4711
+ return b.split(".").reduce((D, B) => D?.[B], p);
4708
4712
  }
4709
- function r(x, b) {
4710
- return typeof e.rowKey == "function" ? e.rowKey(x) : i(x, e.rowKey) || b.toString();
4713
+ function r(p, b) {
4714
+ return typeof e.rowKey == "function" ? e.rowKey(p) : i(p, e.rowKey) || b.toString();
4711
4715
  }
4712
- function a(x) {
4713
- 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));
4716
+ function a(p) {
4717
+ p.sortable && (n.value === p.key ? o.value === "asc" ? o.value = "desc" : o.value === "desc" ? (o.value = null, n.value = "") : o.value = "asc" : (n.value = p.key, o.value = "asc"), t("sort-change", n.value, o.value));
4714
4718
  }
4715
- function u(x) {
4716
- return n.value !== x ? "ChevronsUpDown" : o.value === "asc" ? "ChevronUp" : o.value === "desc" ? "ChevronDown" : "ChevronsUpDown";
4719
+ function u(p) {
4720
+ return n.value !== p ? "ChevronsUpDown" : o.value === "asc" ? "ChevronUp" : o.value === "desc" ? "ChevronDown" : "ChevronsUpDown";
4717
4721
  }
4718
- function g(x) {
4722
+ function g(p) {
4719
4723
  return {
4720
- sortable: x.sortable,
4721
- [`align-${x.align || "left"}`]: !0
4724
+ sortable: p.sortable,
4725
+ [`align-${p.align || "left"}`]: !0
4722
4726
  };
4723
4727
  }
4724
- function l(x, b) {
4728
+ function l(p, b) {
4725
4729
  return {
4726
4730
  striped: e.striped && b % 2 === 1,
4727
4731
  hoverable: e.hoverable,
4728
4732
  selectable: e.selectable
4729
4733
  };
4730
4734
  }
4731
- function v(x, b) {
4735
+ function v(p, b) {
4732
4736
  return {
4733
- [`align-${x.align || "left"}`]: !0
4737
+ [`align-${p.align || "left"}`]: !0
4734
4738
  };
4735
4739
  }
4736
- function p(x, b) {
4737
- return b.formatter ? b.formatter(x) : x?.toString() || "";
4740
+ function P(p, b) {
4741
+ return b.formatter ? b.formatter(p) : p?.toString() || "";
4738
4742
  }
4739
- function O(x, b) {
4740
- t("row-click", x, b);
4743
+ function M(p, b) {
4744
+ t("row-click", p, b);
4741
4745
  }
4742
- return (x, b) => (f(), m("div", Oi, [
4743
- A.title || x.$slots.header ? (f(), m("div", yi, [
4746
+ return (p, b) => (f(), m("div", Oi, [
4747
+ A.title || p.$slots.header ? (f(), m("div", yi, [
4744
4748
  A.title ? (f(), m("h3", bi, T(A.title), 1)) : y("", !0),
4745
- AA(x.$slots, "header", {}, void 0, !0)
4749
+ AA(p.$slots, "header", {}, void 0, !0)
4746
4750
  ])) : y("", !0),
4747
4751
  d("div", wi, [
4748
4752
  d("table", Bi, [
4749
4753
  d("thead", null, [
4750
4754
  d("tr", null, [
4751
- (f(!0), m(sA, null, aA(A.columns, (k) => (f(), m("th", {
4752
- key: k.key,
4753
- class: C(g(k)),
4754
- onClick: (w) => a(k)
4755
+ (f(!0), m(sA, null, aA(A.columns, (D) => (f(), m("th", {
4756
+ key: D.key,
4757
+ class: J(g(D)),
4758
+ onClick: (B) => a(D)
4755
4759
  }, [
4756
4760
  d("div", Yi, [
4757
- d("span", null, T(k.label), 1),
4758
- k.sortable ? (f(), V(G(F), {
4761
+ d("span", null, T(D.label), 1),
4762
+ D.sortable ? (f(), S(G(F), {
4759
4763
  key: 0,
4760
- name: u(k.key),
4764
+ name: u(D.key),
4761
4765
  class: "sort-icon"
4762
4766
  }, null, 8, ["name"])) : y("", !0)
4763
4767
  ])
@@ -4765,22 +4769,22 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4765
4769
  ])
4766
4770
  ]),
4767
4771
  d("tbody", null, [
4768
- (f(!0), m(sA, null, aA(c.value, (k, w) => (f(), m("tr", {
4769
- key: r(k, w),
4770
- class: C(l(k, w)),
4771
- onClick: (L) => O(k, w)
4772
+ (f(!0), m(sA, null, aA(c.value, (D, B) => (f(), m("tr", {
4773
+ key: r(D, B),
4774
+ class: J(l(D, B)),
4775
+ onClick: (C) => M(D, B)
4772
4776
  }, [
4773
- (f(!0), m(sA, null, aA(A.columns, (L) => (f(), m("td", {
4774
- key: L.key,
4775
- class: C(v(L))
4777
+ (f(!0), m(sA, null, aA(A.columns, (C) => (f(), m("td", {
4778
+ key: C.key,
4779
+ class: J(v(C))
4776
4780
  }, [
4777
- AA(x.$slots, `cell-${L.key}`, {
4778
- value: i(k, L.key),
4779
- row: k,
4780
- column: L,
4781
- index: w
4781
+ AA(p.$slots, `cell-${C.key}`, {
4782
+ value: i(D, C.key),
4783
+ row: D,
4784
+ column: C,
4785
+ index: B
4782
4786
  }, () => [
4783
- oA(T(p(i(k, L.key), L)), 1)
4787
+ oA(T(P(i(D, C.key), C)), 1)
4784
4788
  ], !0)
4785
4789
  ], 2))), 128))
4786
4790
  ], 10, Di))), 128))
@@ -4791,7 +4795,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4791
4795
  d("div", { class: "loading-spinner" }, "Chargement...", -1)
4792
4796
  ])])) : y("", !0),
4793
4797
  !A.loading && c.value.length === 0 ? (f(), m("div", Ti, [
4794
- AA(x.$slots, "empty", {}, () => [
4798
+ AA(p.$slots, "empty", {}, () => [
4795
4799
  b[1] || (b[1] = d("p", null, "Aucune donnée disponible", -1))
4796
4800
  ], !0)
4797
4801
  ])) : y("", !0)
@@ -4803,13 +4807,13 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4803
4807
  items: {}
4804
4808
  },
4805
4809
  setup(A) {
4806
- const s = A, e = P(() => s.items.slice(0, -1)), t = P(() => s.items[s.items.length - 1]);
4810
+ const s = A, e = x(() => s.items.slice(0, -1)), t = x(() => s.items[s.items.length - 1]);
4807
4811
  return (n, o) => (f(), m("div", Zi, [
4808
4812
  (f(!0), m(sA, null, aA(e.value, (c, i) => (f(), m("div", {
4809
4813
  key: i,
4810
4814
  class: "utopia-breadcrumbs__inactive-item"
4811
4815
  }, [
4812
- J(Wt, {
4816
+ H(Wt, {
4813
4817
  label: c.label,
4814
4818
  to: c.to || "#",
4815
4819
  "icon-left": c.iconLeft,
@@ -4817,7 +4821,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4817
4821
  active: !1,
4818
4822
  size: "base"
4819
4823
  }, null, 8, ["label", "to", "icon-left", "icon-right"]),
4820
- J(F, {
4824
+ H(F, {
4821
4825
  class: "utopia-breadcrumbs__separator",
4822
4826
  name: "Chevron-right",
4823
4827
  size: "medium",
@@ -4826,7 +4830,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4826
4830
  })
4827
4831
  ]))), 128)),
4828
4832
  d("div", Hi, [
4829
- J($A, {
4833
+ H($A, {
4830
4834
  label: t.value.label,
4831
4835
  "icon-left": t.value.iconLeft,
4832
4836
  "icon-right": t.value.iconRight,
@@ -4864,23 +4868,23 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4864
4868
  },
4865
4869
  emits: ["toggle-favorite", "card-click"],
4866
4870
  setup(A, { emit: s }) {
4867
- const e = A, t = s, { currentTheme: n } = yA(), o = P(() => ({
4871
+ const e = A, t = s, { currentTheme: n } = yA(), o = x(() => ({
4868
4872
  [`utopia-link--${n.value?.mode || "light"}`]: !0
4869
- })), c = P(() => ({
4873
+ })), c = x(() => ({
4870
4874
  fr: { comingBackSoon: "De retour bientôt", outOfStock: "En rupture" },
4871
4875
  en: { comingBackSoon: "Coming back soon", outOfStock: "Out of stock" }
4872
- })), i = P(() => c.value[e.language]), r = P(() => e.tags && e.tags.length > 0 || e.subventionName || e.discount), a = H(), u = P(() => !!(a.value && a.value.scrollHeight > a.value.clientHeight)), g = H(), l = 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);
4873
- return (O, x) => (f(), m("div", {
4874
- class: C(["utopia-productcard", o.value]),
4875
- onClick: x[2] || (x[2] = jA((b) => t("card-click", { id: A.id }), ["stop"])),
4876
- onKeypress: x[3] || (x[3] = Ge(jA((b) => t("card-click", { id: A.id }), ["stop"]), ["enter"])),
4876
+ })), i = x(() => c.value[e.language]), r = x(() => e.tags && e.tags.length > 0 || e.subventionName || e.discount), a = Z(), u = x(() => !!(a.value && a.value.scrollHeight > a.value.clientHeight)), g = Z(), l = x(() => !!(g.value && g.value.scrollHeight > g.value.clientHeight)), v = x(() => !!(e.discount && e.discount?.length > 16)), P = x(() => v.value ? e.discount?.slice(0, 13) + "..." : e.discount);
4877
+ return (M, p) => (f(), m("div", {
4878
+ class: J(["utopia-productcard", o.value]),
4879
+ onClick: p[2] || (p[2] = jA((b) => t("card-click", { id: A.id }), ["stop"])),
4880
+ onKeypress: p[3] || (p[3] = Ge(jA((b) => t("card-click", { id: A.id }), ["stop"]), ["enter"])),
4877
4881
  tabindex: "0"
4878
4882
  }, [
4879
4883
  d("div", Ci, [
4880
4884
  d("img", {
4881
4885
  src: A.imageUrl,
4882
4886
  alt: A.title,
4883
- class: C(["utopia-productcard__image", { "utopia-productcard__image--disabled": !A.available }])
4887
+ class: J(["utopia-productcard__image", { "utopia-productcard__image--disabled": !A.available }])
4884
4888
  }, null, 10, Li),
4885
4889
  A.logoUrl ? (f(), m("img", {
4886
4890
  key: 0,
@@ -4889,13 +4893,13 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4889
4893
  alt: `${A.title} logo`
4890
4894
  }, null, 8, Ei)) : y("", !0),
4891
4895
  d("div", {
4892
- class: C(["utopia-productcard__favorite", { "utopia-productcard__favorite--active": A.isFavorite }]),
4896
+ class: J(["utopia-productcard__favorite", { "utopia-productcard__favorite--active": A.isFavorite }]),
4893
4897
  tabindex: "0",
4894
4898
  "aria-pressed": A.isFavorite,
4895
- onClick: x[0] || (x[0] = jA((b) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"])),
4896
- onKeypress: x[1] || (x[1] = Ge(jA((b) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"]), ["enter"]))
4899
+ onClick: p[0] || (p[0] = jA((b) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"])),
4900
+ onKeypress: p[1] || (p[1] = Ge(jA((b) => t("toggle-favorite", { id: A.id, newState: !A.isFavorite }), ["stop"]), ["enter"]))
4897
4901
  }, [
4898
- J(F, {
4902
+ H(F, {
4899
4903
  size: "extra-small",
4900
4904
  "stroke-width": 2,
4901
4905
  name: A.isFavorite ? "Heart-fill" : "Heart"
@@ -4905,8 +4909,8 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4905
4909
  d("div", Qi, [
4906
4910
  r.value ? (f(), m("div", hi, [
4907
4911
  d("div", Fi, [
4908
- (f(!0), m(sA, null, aA(A.tags, (b, k) => (f(), V(HA, {
4909
- key: k,
4912
+ (f(!0), m(sA, null, aA(A.tags, (b, D) => (f(), S(HA, {
4913
+ key: D,
4910
4914
  size: "extra-small"
4911
4915
  }, {
4912
4916
  default: R(() => [
@@ -4916,7 +4920,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4916
4920
  }, 1024))), 128))
4917
4921
  ]),
4918
4922
  d("div", Ni, [
4919
- A.available ? y("", !0) : (f(), V(HA, {
4923
+ A.available ? y("", !0) : (f(), S(HA, {
4920
4924
  key: 0,
4921
4925
  size: "extra-small",
4922
4926
  variant: "danger"
@@ -4926,7 +4930,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4926
4930
  ]),
4927
4931
  _: 1
4928
4932
  })),
4929
- A.subventionName ? (f(), V(_A, {
4933
+ A.subventionName ? (f(), S(_A, {
4930
4934
  key: 1,
4931
4935
  placement: "top",
4932
4936
  openDelay: 150,
@@ -4939,7 +4943,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4939
4943
  oA(T(A.subventionTooltip), 1)
4940
4944
  ]),
4941
4945
  default: R(() => [
4942
- J(HA, {
4946
+ H(HA, {
4943
4947
  size: "extra-small",
4944
4948
  customColor: "--theme-colors-common-subvention-700",
4945
4949
  customTextColor: "--theme-colors-surface-card",
@@ -4953,7 +4957,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4953
4957
  ]),
4954
4958
  _: 1
4955
4959
  }, 8, ["active"])) : y("", !0),
4956
- A.discount ? (f(), V(_A, {
4960
+ A.discount ? (f(), S(_A, {
4957
4961
  key: 2,
4958
4962
  placement: "top",
4959
4963
  openDelay: 150,
@@ -4969,14 +4973,14 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4969
4973
  ])
4970
4974
  ]),
4971
4975
  default: R(() => [
4972
- J(HA, {
4976
+ H(HA, {
4973
4977
  class: "utopia-productcard__discount",
4974
4978
  size: "extra-small",
4975
4979
  customColor: "--theme-colors-brand-accent-500",
4976
4980
  customTextColor: "--theme-colors-surface-card"
4977
4981
  }, {
4978
4982
  default: R(() => [
4979
- oA(T(p.value), 1)
4983
+ oA(T(P.value), 1)
4980
4984
  ]),
4981
4985
  _: 1
4982
4986
  })
@@ -4985,7 +4989,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
4985
4989
  }, 8, ["active"])) : y("", !0)
4986
4990
  ])
4987
4991
  ])) : y("", !0),
4988
- A.title ? (f(), V(_A, {
4992
+ A.title ? (f(), S(_A, {
4989
4993
  key: 1,
4990
4994
  placement: "top",
4991
4995
  openDelay: 150,
@@ -5006,7 +5010,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5006
5010
  ]),
5007
5011
  _: 1
5008
5012
  }, 8, ["active"])) : y("", !0),
5009
- A.description ? (f(), V(_A, {
5013
+ A.description ? (f(), S(_A, {
5010
5014
  key: 2,
5011
5015
  placement: "top",
5012
5016
  openDelay: 150,
@@ -5027,7 +5031,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5027
5031
  ]),
5028
5032
  _: 1
5029
5033
  }, 8, ["active"])) : y("", !0),
5030
- A.available ? A.price || A.price === 0 ? (f(), V(Jo, {
5034
+ A.available ? A.price || A.price === 0 ? (f(), S(Jo, {
5031
5035
  key: 4,
5032
5036
  class: "utopia-productcard__price-tag",
5033
5037
  variantCount: A.variantCount,
@@ -5053,7 +5057,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5053
5057
  },
5054
5058
  emits: ["update-value"],
5055
5059
  setup(A, { emit: s }) {
5056
- const e = A, t = s, n = P(() => e.currentValue[0].toString()), o = P(() => e.currentValue[1].toString()), { currencyIconName: c } = Lt(e.currency), i = (v) => {
5060
+ const e = A, t = s, n = x(() => e.currentValue[0].toString()), o = x(() => e.currentValue[1].toString()), { currencyIconName: c } = Lt(e.currency), i = (v) => {
5057
5061
  Number(v) <= e.currentValue[1] && t("update-value", [Number(v), e.currentValue[1]]);
5058
5062
  }, r = (v) => {
5059
5063
  Number(v) >= e.currentValue[0] && t("update-value", [e.currentValue[0], Number(v)]);
@@ -5068,9 +5072,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5068
5072
  }, l = (v) => {
5069
5073
  v.target.select();
5070
5074
  };
5071
- return (v, p) => (f(), m("div", Ki, [
5075
+ return (v, P) => (f(), m("div", Ki, [
5072
5076
  d("div", Ri, [
5073
- J(te, {
5077
+ H(te, {
5074
5078
  "model-value": n.value,
5075
5079
  label: A.labelMin,
5076
5080
  min: A.min,
@@ -5084,7 +5088,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5084
5088
  onFocus: l,
5085
5089
  onBlur: u
5086
5090
  }, null, 8, ["model-value", "label", "min", "max", "icon"]),
5087
- J(te, {
5091
+ H(te, {
5088
5092
  "model-value": o.value,
5089
5093
  label: A.labelMax,
5090
5094
  min: A.currentValue[0],
@@ -5100,7 +5104,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5100
5104
  }, null, 8, ["model-value", "label", "min", "max", "icon"])
5101
5105
  ]),
5102
5106
  d("div", Ui, [
5103
- J(An, {
5107
+ H(An, {
5104
5108
  currentValue: A.currentValue,
5105
5109
  min: A.min,
5106
5110
  max: A.max,
@@ -5147,17 +5151,17 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5147
5151
  },
5148
5152
  emits: ["page-change", "size-change"],
5149
5153
  setup(A, { emit: s }) {
5150
- const e = A, { currentTheme: t } = yA(), n = P(() => ({
5154
+ const e = A, { currentTheme: t } = yA(), n = x(() => ({
5151
5155
  [`utopia-pagenavigation--${t.value?.mode || "light"}`]: !0
5152
- })), { isMobile: o } = Jt(), c = P(() => {
5153
- const u = /* @__PURE__ */ new Set([1, e.totalPages]), g = P(() => o.value ? 1 : 2);
5156
+ })), { isMobile: o } = Jt(), c = x(() => {
5157
+ const u = /* @__PURE__ */ new Set([1, e.totalPages]), g = x(() => o.value ? 1 : 2);
5154
5158
  for (let l = e.currentPage - g.value; l <= e.currentPage + g.value; l++)
5155
5159
  l > 1 && l < e.totalPages && u.add(l);
5156
5160
  return [...u].sort((l, v) => l - v);
5157
- }), i = s, r = P(() => e.currentPage), a = P(() => e.size);
5161
+ }), i = s, r = x(() => e.currentPage), a = x(() => e.size);
5158
5162
  return (u, g) => (f(), m("div", _i, [
5159
5163
  A.compact ? (f(), m("div", Ar, [
5160
- J(vA, {
5164
+ H(vA, {
5161
5165
  class: "utopia-pagenavigation__compact-button",
5162
5166
  size: "xs",
5163
5167
  variant: "tertiary",
@@ -5172,7 +5176,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5172
5176
  _: 1
5173
5177
  }, 8, ["disabled"]),
5174
5178
  d("div", er, "Page " + T(A.currentPage) + " sur " + T(A.totalPages), 1),
5175
- J(vA, {
5179
+ H(vA, {
5176
5180
  class: "utopia-pagenavigation__compact-button",
5177
5181
  size: "xs",
5178
5182
  variant: "tertiary",
@@ -5188,7 +5192,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5188
5192
  _: 1
5189
5193
  }, 8, ["disabled"])
5190
5194
  ])) : (f(), m("div", $i, [
5191
- J(vA, {
5195
+ H(vA, {
5192
5196
  class: "utopia-pagenavigation__button",
5193
5197
  size: "md",
5194
5198
  variant: "tertiary",
@@ -5201,8 +5205,8 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5201
5205
  class: "utopia-pagenavigation__pages-container",
5202
5206
  key: l
5203
5207
  }, [
5204
- J(vA, {
5205
- class: C(["utopia-pagenavigation__single-page", { "utopia-pagenavigation__single-page-active": l === A.currentPage }]),
5208
+ H(vA, {
5209
+ class: J(["utopia-pagenavigation__single-page", { "utopia-pagenavigation__single-page-active": l === A.currentPage }]),
5206
5210
  size: "xs",
5207
5211
  variant: l === A.currentPage ? "primary" : "tertiary",
5208
5212
  onClick: () => i("page-change", l)
@@ -5214,10 +5218,10 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5214
5218
  }, 1032, ["class", "variant", "onClick"]),
5215
5219
  v === 0 && A.currentPage > 3 || v === c.value.length - 2 && A.currentPage < A.totalPages - 2 ? (f(), m("div", {
5216
5220
  key: 0,
5217
- class: C(["utopia-pagenavigation__ellipsis", n.value])
5221
+ class: J(["utopia-pagenavigation__ellipsis", n.value])
5218
5222
  }, " … ", 2)) : y("", !0)
5219
5223
  ]))), 128)),
5220
- J(vA, {
5224
+ H(vA, {
5221
5225
  class: "utopia-pagenavigation__button",
5222
5226
  size: "md",
5223
5227
  variant: "tertiary",
@@ -5231,9 +5235,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5231
5235
  A.showGoToPage ? (f(), m("div", tr)) : y("", !0),
5232
5236
  A.showGoToPage ? (f(), m("div", nr, [
5233
5237
  d("div", {
5234
- class: C(["utopia-pagenavigation__go-to-page-label", n.value])
5238
+ class: J(["utopia-pagenavigation__go-to-page-label", n.value])
5235
5239
  }, T(A.goToPageLabel), 3),
5236
- J(Ze, {
5240
+ H(Ze, {
5237
5241
  modelValue: r.value,
5238
5242
  "onUpdate:modelValue": g[4] || (g[4] = (l) => r.value = l),
5239
5243
  size: "small",
@@ -5244,9 +5248,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5244
5248
  A.showSize ? (f(), m("div", or)) : y("", !0),
5245
5249
  A.showSize ? (f(), m("div", cr, [
5246
5250
  d("div", {
5247
- class: C(["utopia-pagenavigation__size-label", n.value])
5251
+ class: J(["utopia-pagenavigation__size-label", n.value])
5248
5252
  }, T(A.sizeLabel), 3),
5249
- J(Ze, {
5253
+ H(Ze, {
5250
5254
  modelValue: a.value,
5251
5255
  "onUpdate:modelValue": g[6] || (g[6] = (l) => a.value = l),
5252
5256
  size: "small",
@@ -5287,22 +5291,22 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5287
5291
  injectStyles: !1
5288
5292
  // On utilise les mêmes styles que Menu.vue
5289
5293
  });
5290
- rA(() => e.isOpen, (p) => {
5291
- p && uA(() => {
5294
+ rA(() => e.isOpen, (P) => {
5295
+ P && uA(() => {
5292
5296
  setTimeout(r, 100);
5293
5297
  });
5294
5298
  });
5295
5299
  const g = () => {
5296
5300
  t("close");
5297
- }, l = (p) => {
5298
- t("nav-click", p), g();
5299
- }, v = (p) => {
5300
- p.target.closest(".nav-item") && setTimeout(() => {
5301
+ }, l = (P) => {
5302
+ t("nav-click", P), g();
5303
+ }, v = (P) => {
5304
+ P.target.closest(".nav-item") && setTimeout(() => {
5301
5305
  g();
5302
5306
  }, 100);
5303
5307
  };
5304
- return (p, O) => (f(), V(EA, { to: "body" }, [
5305
- J(DA, { name: "mobile-menu" }, {
5308
+ return (P, M) => (f(), S(EA, { to: "body" }, [
5309
+ H(DA, { name: "mobile-menu" }, {
5306
5310
  default: R(() => [
5307
5311
  A.isOpen ? (f(), m("div", rr, [
5308
5312
  d("div", {
@@ -5310,14 +5314,14 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5310
5314
  onClick: g
5311
5315
  }),
5312
5316
  d("aside", {
5313
- class: C(["utopia-menu mobile-menu-content", G(a)])
5317
+ class: J(["utopia-menu mobile-menu-content", G(a)])
5314
5318
  }, [
5315
5319
  d("div", ar, [
5316
5320
  d("div", fr, [
5317
- AA(p.$slots, "header", {}, () => [
5321
+ AA(P.$slots, "header", {}, () => [
5318
5322
  d("div", lr, [
5319
- AA(p.$slots, "header-content", {}, () => [
5320
- O[6] || (O[6] = d("h3", { class: "mobile-menu-title" }, "Menu", -1))
5323
+ AA(P.$slots, "header-content", {}, () => [
5324
+ M[6] || (M[6] = d("h3", { class: "mobile-menu-title" }, "Menu", -1))
5321
5325
  ], !0)
5322
5326
  ])
5323
5327
  ], !0)
@@ -5326,7 +5330,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5326
5330
  class: "mobile-menu-close",
5327
5331
  onClick: g
5328
5332
  }, [
5329
- J(G(F), {
5333
+ H(G(F), {
5330
5334
  name: "X",
5331
5335
  size: "medium",
5332
5336
  color: "neutral",
@@ -5335,73 +5339,73 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5335
5339
  ])
5336
5340
  ]),
5337
5341
  d("nav", {
5338
- class: C(["menu-nav", G(u)]),
5342
+ class: J(["menu-nav", G(u)]),
5339
5343
  ref_key: "menuNavRef",
5340
5344
  ref: n,
5341
- onScroll: O[5] || (O[5] = //@ts-ignore
5342
- (...x) => G(i) && G(i)(...x)),
5345
+ onScroll: M[5] || (M[5] = //@ts-ignore
5346
+ (...p) => G(i) && G(i)(...p)),
5343
5347
  onClick: v
5344
5348
  }, [
5345
- AA(p.$slots, "nav-items", {}, () => [
5349
+ AA(P.$slots, "nav-items", {}, () => [
5346
5350
  d("div", {
5347
5351
  class: "nav-item",
5348
- onClick: O[0] || (O[0] = (x) => l("accueil"))
5352
+ onClick: M[0] || (M[0] = (p) => l("accueil"))
5349
5353
  }, [
5350
- J(G(F), {
5354
+ H(G(F), {
5351
5355
  name: "Home",
5352
5356
  size: "small",
5353
5357
  color: "neutral"
5354
5358
  }),
5355
- O[7] || (O[7] = d("span", null, "Accueil", -1))
5359
+ M[7] || (M[7] = d("span", null, "Accueil", -1))
5356
5360
  ]),
5357
5361
  d("div", {
5358
5362
  class: "nav-item",
5359
- onClick: O[1] || (O[1] = (x) => l("couleurs"))
5363
+ onClick: M[1] || (M[1] = (p) => l("couleurs"))
5360
5364
  }, [
5361
- J(G(F), {
5365
+ H(G(F), {
5362
5366
  name: "Palette",
5363
5367
  size: "small",
5364
5368
  color: "neutral"
5365
5369
  }),
5366
- O[8] || (O[8] = d("span", null, "Couleurs", -1))
5370
+ M[8] || (M[8] = d("span", null, "Couleurs", -1))
5367
5371
  ]),
5368
5372
  d("div", {
5369
5373
  class: "nav-item",
5370
- onClick: O[2] || (O[2] = (x) => l("typographie"))
5374
+ onClick: M[2] || (M[2] = (p) => l("typographie"))
5371
5375
  }, [
5372
- J(G(F), {
5376
+ H(G(F), {
5373
5377
  name: "Type",
5374
5378
  size: "small",
5375
5379
  color: "neutral"
5376
5380
  }),
5377
- O[9] || (O[9] = d("span", null, "Typographie", -1))
5381
+ M[9] || (M[9] = d("span", null, "Typographie", -1))
5378
5382
  ]),
5379
5383
  d("div", {
5380
5384
  class: "nav-item",
5381
- onClick: O[3] || (O[3] = (x) => l("icones"))
5385
+ onClick: M[3] || (M[3] = (p) => l("icones"))
5382
5386
  }, [
5383
- J(G(F), {
5387
+ H(G(F), {
5384
5388
  name: "Star",
5385
5389
  size: "small",
5386
5390
  color: "neutral"
5387
5391
  }),
5388
- O[10] || (O[10] = d("span", null, "Icônes", -1))
5392
+ M[10] || (M[10] = d("span", null, "Icônes", -1))
5389
5393
  ]),
5390
5394
  d("div", {
5391
5395
  class: "nav-item",
5392
- onClick: O[4] || (O[4] = (x) => l("parametres"))
5396
+ onClick: M[4] || (M[4] = (p) => l("parametres"))
5393
5397
  }, [
5394
- J(G(F), {
5398
+ H(G(F), {
5395
5399
  name: "Settings",
5396
5400
  size: "small",
5397
5401
  color: "neutral"
5398
5402
  }),
5399
- O[11] || (O[11] = d("span", null, "Paramètres", -1))
5403
+ M[11] || (M[11] = d("span", null, "Paramètres", -1))
5400
5404
  ])
5401
5405
  ], !0)
5402
5406
  ], 34),
5403
5407
  d("div", dr, [
5404
- AA(p.$slots, "footer", {}, void 0, !0)
5408
+ AA(P.$slots, "footer", {}, void 0, !0)
5405
5409
  ])
5406
5410
  ], 2)
5407
5411
  ])) : y("", !0)
@@ -5417,7 +5421,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5417
5421
  } }
5418
5422
  },
5419
5423
  setup(A) {
5420
- const s = A, e = H(!1), t = () => {
5424
+ const s = A, e = Z(!1), t = () => {
5421
5425
  s.onOpenMenu();
5422
5426
  }, n = () => {
5423
5427
  e.value = window.innerWidth <= 768;
@@ -5432,7 +5436,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5432
5436
  title: "Ouvrir le menu",
5433
5437
  "aria-label": "Ouvrir le menu de navigation"
5434
5438
  }, [
5435
- J(G(F), {
5439
+ H(G(F), {
5436
5440
  name: "Menu",
5437
5441
  size: "medium",
5438
5442
  color: "neutral",
@@ -5444,7 +5448,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5444
5448
  __name: "Header",
5445
5449
  emits: ["mobile-menu-open", "nav-click"],
5446
5450
  setup(A, { emit: s }) {
5447
- const e = H(!1);
5451
+ const e = Z(!1);
5448
5452
  rA(e, (i) => {
5449
5453
  if (i) {
5450
5454
  const r = window.scrollY;
@@ -5464,14 +5468,14 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5464
5468
  return (i, r) => (f(), m("header", zr, [
5465
5469
  d("nav", pr, [
5466
5470
  d("div", xr, [
5467
- J(mr, { onOpenMenu: t }),
5471
+ H(mr, { onOpenMenu: t }),
5468
5472
  AA(i.$slots, "left", {}, void 0, !0)
5469
5473
  ]),
5470
5474
  d("div", Pr, [
5471
5475
  AA(i.$slots, "right", {}, void 0, !0)
5472
5476
  ])
5473
5477
  ]),
5474
- J(ur, {
5478
+ H(ur, {
5475
5479
  "is-open": e.value,
5476
5480
  onClose: n,
5477
5481
  onNavClick: o
@@ -5479,7 +5483,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5479
5483
  header: R(() => [
5480
5484
  AA(i.$slots, "mobile-menu-header", {}, () => [
5481
5485
  d("div", Mr, [
5482
- J(G(ne), { size: "md" })
5486
+ H(G(ne), { size: "md" })
5483
5487
  ])
5484
5488
  ], !0)
5485
5489
  ]),
@@ -5489,7 +5493,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5489
5493
  class: "nav-item",
5490
5494
  onClick: r[0] || (r[0] = (a) => o("accueil"))
5491
5495
  }, [
5492
- J(G(F), {
5496
+ H(G(F), {
5493
5497
  name: "Home",
5494
5498
  size: "small",
5495
5499
  color: "neutral"
@@ -5500,7 +5504,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5500
5504
  class: "nav-item",
5501
5505
  onClick: r[1] || (r[1] = (a) => o("couleurs"))
5502
5506
  }, [
5503
- J(G(F), {
5507
+ H(G(F), {
5504
5508
  name: "Palette",
5505
5509
  size: "small",
5506
5510
  color: "neutral"
@@ -5511,7 +5515,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5511
5515
  class: "nav-item",
5512
5516
  onClick: r[2] || (r[2] = (a) => o("typographie"))
5513
5517
  }, [
5514
- J(G(F), {
5518
+ H(G(F), {
5515
5519
  name: "Type",
5516
5520
  size: "small",
5517
5521
  color: "neutral"
@@ -5522,7 +5526,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5522
5526
  class: "nav-item",
5523
5527
  onClick: r[3] || (r[3] = (a) => o("icones"))
5524
5528
  }, [
5525
- J(G(F), {
5529
+ H(G(F), {
5526
5530
  name: "Star",
5527
5531
  size: "small",
5528
5532
  color: "neutral"
@@ -5533,7 +5537,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5533
5537
  class: "nav-item",
5534
5538
  onClick: r[4] || (r[4] = (a) => o("parametres"))
5535
5539
  }, [
5536
- J(G(F), {
5540
+ H(G(F), {
5537
5541
  name: "Settings",
5538
5542
  size: "small",
5539
5543
  color: "neutral"
@@ -5557,13 +5561,13 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5557
5561
  },
5558
5562
  emits: ["update:collapsed", "update:headerCollapsed"],
5559
5563
  setup(A, { expose: s, emit: e }) {
5560
- const t = A, n = e, o = H(t.collapsed), c = H(!1), i = H(!1), r = H(!1), a = H(!1), u = H(null), {
5564
+ const t = A, n = e, o = Z(t.collapsed), c = Z(!1), i = Z(!1), r = Z(!1), a = Z(!1), u = Z(null), {
5561
5565
  scrollElementRef: g,
5562
5566
  showTopShadow: l,
5563
5567
  showBottomShadow: v,
5564
- handleScroll: p,
5565
- initialize: O,
5566
- containerClasses: x,
5568
+ handleScroll: P,
5569
+ initialize: M,
5570
+ containerClasses: p,
5567
5571
  scrollClasses: b
5568
5572
  } = es({
5569
5573
  initialDelay: 100,
@@ -5575,57 +5579,57 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5575
5579
  zIndex: 1e3
5576
5580
  },
5577
5581
  injectStyles: !0
5578
- }), k = () => {
5582
+ }), D = () => {
5579
5583
  o.value = !o.value, u.value = o.value, n("update:collapsed", o.value);
5580
- }, w = () => {
5584
+ }, B = () => {
5581
5585
  o.value = !0, a.value = !1, n("update:collapsed", o.value);
5582
5586
  };
5583
5587
  s({
5584
5588
  openMobileMenu: () => {
5585
5589
  o.value = !1, a.value = !0, n("update:collapsed", o.value);
5586
5590
  },
5587
- closeMobileMenu: w,
5588
- toggleMenu: k
5591
+ closeMobileMenu: B,
5592
+ toggleMenu: D
5589
5593
  });
5590
- const Z = () => {
5591
- const B = window.innerWidth <= 768;
5592
- r.value = !0, B ? B && (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(() => {
5594
+ const I = () => {
5595
+ const L = window.innerWidth <= 768;
5596
+ r.value = !0, L ? L && (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(() => {
5593
5597
  r.value = !1;
5594
5598
  }, 100);
5595
5599
  };
5596
5600
  return xA(() => {
5597
5601
  window.innerWidth <= 768 ? (o.value = !0, a.value = !1, n("update:collapsed", o.value)) : (o.value = t.collapsed, n("update:collapsed", o.value)), setTimeout(() => {
5598
- c.value = !0, O();
5599
- }, 50), window.addEventListener("resize", Z), document.body.style.overflowX = "hidden";
5602
+ c.value = !0, M();
5603
+ }, 50), window.addEventListener("resize", I), document.body.style.overflowX = "hidden";
5600
5604
  }), OA(() => {
5601
- window.removeEventListener("resize", Z), document.body.style.overflowX = "";
5602
- }), (B, Q) => (f(), m("aside", {
5603
- class: C(["utopia-menu", [
5605
+ window.removeEventListener("resize", I), document.body.style.overflowX = "";
5606
+ }), (L, j) => (f(), m("aside", {
5607
+ class: J(["utopia-menu", [
5604
5608
  {
5605
5609
  collapsed: o.value,
5606
5610
  initialized: c.value,
5607
5611
  resizing: r.value,
5608
5612
  "mobile-overlay": a.value
5609
5613
  },
5610
- ...G(x)
5614
+ ...G(p)
5611
5615
  ]])
5612
5616
  }, [
5613
5617
  a.value ? (f(), m("div", {
5614
5618
  key: 0,
5615
5619
  class: "mobile-backdrop",
5616
- onClick: w
5620
+ onClick: B
5617
5621
  })) : y("", !0),
5618
5622
  d("div", {
5619
- class: C(["menu-header", { collapsed: o.value }])
5623
+ class: J(["menu-header", { collapsed: o.value }])
5620
5624
  }, [
5621
5625
  d("div", {
5622
- class: C(["header-logo-container", { collapsed: o.value }]),
5623
- onClick: Q[0] || (Q[0] = (I) => o.value ? k() : null)
5626
+ class: J(["header-logo-container", { collapsed: o.value }]),
5627
+ onClick: j[0] || (j[0] = (Q) => o.value ? D() : null)
5624
5628
  }, [
5625
5629
  d("div", br, [
5626
- AA(B.$slots, "header", {}, () => [
5630
+ AA(L.$slots, "header", {}, () => [
5627
5631
  d("div", wr, [
5628
- J(G(F), {
5632
+ H(G(F), {
5629
5633
  name: "menu_tab",
5630
5634
  size: "medium",
5631
5635
  color: "neutral"
@@ -5634,7 +5638,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5634
5638
  ], !0)
5635
5639
  ]),
5636
5640
  o.value ? (f(), m("div", Br, [
5637
- J(G(F), {
5641
+ H(G(F), {
5638
5642
  name: "Panel-left",
5639
5643
  "stroke-width": 2,
5640
5644
  size: "small",
@@ -5645,9 +5649,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5645
5649
  o.value ? y("", !0) : (f(), m("div", {
5646
5650
  key: 0,
5647
5651
  class: "header-toggle",
5648
- onClick: k
5652
+ onClick: D
5649
5653
  }, [
5650
- J(G(F), {
5654
+ H(G(F), {
5651
5655
  name: "Panel-left",
5652
5656
  "stroke-width": 2,
5653
5657
  size: "small",
@@ -5657,9 +5661,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5657
5661
  a.value ? (f(), m("div", {
5658
5662
  key: 1,
5659
5663
  class: "mobile-close-btn",
5660
- onClick: w
5664
+ onClick: B
5661
5665
  }, [
5662
- J(G(F), {
5666
+ H(G(F), {
5663
5667
  name: "X",
5664
5668
  "stroke-width": 2,
5665
5669
  size: "small",
@@ -5668,19 +5672,19 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5668
5672
  ])) : y("", !0)
5669
5673
  ], 2),
5670
5674
  d("nav", {
5671
- class: C(["menu-nav", G(b)]),
5675
+ class: J(["menu-nav", G(b)]),
5672
5676
  ref_key: "menuNavRef",
5673
5677
  ref: g,
5674
- onScroll: Q[1] || (Q[1] = //@ts-ignore
5675
- (...I) => G(p) && G(p)(...I))
5678
+ onScroll: j[1] || (j[1] = //@ts-ignore
5679
+ (...Q) => G(P) && G(P)(...Q))
5676
5680
  }, [
5677
- AA(B.$slots, "nav-items", {
5681
+ AA(L.$slots, "nav-items", {
5678
5682
  collapsed: o.value,
5679
5683
  animating: i.value
5680
5684
  }, void 0, !0)
5681
5685
  ], 34),
5682
5686
  d("div", jr, [
5683
- AA(B.$slots, "footer", {}, void 0, !0)
5687
+ AA(L.$slots, "footer", {}, void 0, !0)
5684
5688
  ])
5685
5689
  ], 2));
5686
5690
  }
@@ -5702,7 +5706,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5702
5706
  },
5703
5707
  emits: ["click"],
5704
5708
  setup(A, { emit: s }) {
5705
- const e = A, t = s, n = H(), o = H(!1), c = H({}), i = async () => {
5709
+ const e = A, t = s, n = Z(), o = Z(!1), c = Z({}), i = async () => {
5706
5710
  if (e.collapsed && (o.value = !0, await uA(), n.value)) {
5707
5711
  const l = n.value.getBoundingClientRect();
5708
5712
  c.value = {
@@ -5715,11 +5719,11 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5715
5719
  }
5716
5720
  }, r = () => {
5717
5721
  e.collapsed && (o.value = !1);
5718
- }, a = P(() => e.to ? "router-link" : e.href ? "a" : "button"), u = P(() => e.active), g = (l) => {
5722
+ }, a = x(() => e.to ? "router-link" : e.href ? "a" : "button"), u = x(() => e.active), g = (l) => {
5719
5723
  t("click", l);
5720
5724
  };
5721
5725
  return (l, v) => (f(), m(sA, null, [
5722
- (f(), V(we(a.value), Zs({
5726
+ (f(), S(we(a.value), Zs({
5723
5727
  to: A.to,
5724
5728
  href: A.href,
5725
5729
  class: ["nav-item", { active: u.value, collapsed: e.collapsed }]
@@ -5732,7 +5736,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5732
5736
  }), {
5733
5737
  default: R(() => [
5734
5738
  A.icon ? (f(), m("span", kr, [
5735
- J(G(F), {
5739
+ H(G(F), {
5736
5740
  name: A.icon,
5737
5741
  size: "medium",
5738
5742
  color: "current",
@@ -5747,7 +5751,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5747
5751
  ]),
5748
5752
  _: 3
5749
5753
  }, 16, ["to", "href", "class"])),
5750
- A.collapsed && o.value ? (f(), V(EA, {
5754
+ A.collapsed && o.value ? (f(), S(EA, {
5751
5755
  key: 0,
5752
5756
  to: "body"
5753
5757
  }, [
@@ -5768,7 +5772,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5768
5772
  collapsed: { type: Boolean, default: !1 }
5769
5773
  },
5770
5774
  setup(A) {
5771
- const s = A, e = H(), t = H(!1), n = H({}), o = async () => {
5775
+ const s = A, e = Z(), t = Z(!1), n = Z({}), o = async () => {
5772
5776
  if (s.collapsed && (t.value = !0, await uA(), e.value)) {
5773
5777
  const i = e.value.getBoundingClientRect();
5774
5778
  n.value = {
@@ -5783,7 +5787,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5783
5787
  s.collapsed && (t.value = !1);
5784
5788
  };
5785
5789
  return (i, r) => (f(), m("div", {
5786
- class: C(["menu-section", { collapsed: A.collapsed }])
5790
+ class: J(["menu-section", { collapsed: A.collapsed }])
5787
5791
  }, [
5788
5792
  A.collapsed ? (f(), m("div", {
5789
5793
  key: 1,
@@ -5797,7 +5801,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5797
5801
  ], 544)) : (f(), m("div", Zr, [
5798
5802
  d("span", Hr, T(A.label.toUpperCase()), 1)
5799
5803
  ])),
5800
- A.collapsed && t.value ? (f(), V(EA, {
5804
+ A.collapsed && t.value ? (f(), S(EA, {
5801
5805
  key: 2,
5802
5806
  to: "body"
5803
5807
  }, [
@@ -5857,9 +5861,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5857
5861
  } catch {
5858
5862
  return null;
5859
5863
  }
5860
- })(), t = s, { menuCollapsed: n, setMenuCollapsed: o } = yA(), c = H(!1), i = (l) => {
5864
+ })(), t = s, { menuCollapsed: n, setMenuCollapsed: o } = yA(), c = Z(!1), i = (l) => {
5861
5865
  o(l);
5862
- }, r = P(() => (l) => {
5866
+ }, r = x(() => (l) => {
5863
5867
  if (!e?.path || !l.to)
5864
5868
  return !1;
5865
5869
  const v = e.path;
@@ -5872,51 +5876,51 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5872
5876
  t("mode-toggle");
5873
5877
  };
5874
5878
  return (l, v) => (f(), m("div", Lr, [
5875
- J(G(Dr), {
5879
+ H(G(Dr), {
5876
5880
  collapsed: G(n),
5877
5881
  "onUpdate:collapsed": i,
5878
5882
  headerCollapsed: c.value,
5879
- "onUpdate:headerCollapsed": v[0] || (v[0] = (p) => c.value = p)
5883
+ "onUpdate:headerCollapsed": v[0] || (v[0] = (P) => c.value = P)
5880
5884
  }, {
5881
5885
  header: R(() => [
5882
5886
  d("div", Er, [
5883
- J(G(ne), { size: "xs" })
5887
+ H(G(ne), { size: "xs" })
5884
5888
  ])
5885
5889
  ]),
5886
5890
  "nav-items": R(() => [
5887
- (f(!0), m(sA, null, aA(A.menuItems, (p) => (f(), m(sA, {
5888
- key: p.key
5891
+ (f(!0), m(sA, null, aA(A.menuItems, (P) => (f(), m(sA, {
5892
+ key: P.key
5889
5893
  }, [
5890
- "type" in p && p.type === "section" ? (f(), V(G(Ue), {
5894
+ "type" in P && P.type === "section" ? (f(), S(G(Ue), {
5891
5895
  key: 0,
5892
- label: p.label,
5896
+ label: P.label,
5893
5897
  collapsed: G(n)
5894
- }, null, 8, ["label", "collapsed"])) : (f(), V(G(Re), {
5898
+ }, null, 8, ["label", "collapsed"])) : (f(), S(G(Re), {
5895
5899
  key: 1,
5896
- icon: p.icon,
5897
- label: p.label,
5898
- active: r.value(p),
5900
+ icon: P.icon,
5901
+ label: P.label,
5902
+ active: r.value(P),
5899
5903
  collapsed: G(n),
5900
5904
  headerCollapsed: c.value,
5901
- onClick: (O) => a(p.to)
5905
+ onClick: (M) => a(P.to)
5902
5906
  }, null, 8, ["icon", "label", "active", "collapsed", "headerCollapsed", "onClick"]))
5903
5907
  ], 64))), 128))
5904
5908
  ]),
5905
5909
  _: 1
5906
5910
  }, 8, ["collapsed", "headerCollapsed"]),
5907
5911
  d("div", {
5908
- class: C(["main-content", { "menu-collapsed": G(n) }])
5912
+ class: J(["main-content", { "menu-collapsed": G(n) }])
5909
5913
  }, [
5910
- J(G(yr), { onNavClick: u }, {
5914
+ H(G(yr), { onNavClick: u }, {
5911
5915
  left: R(() => [...v[1] || (v[1] = [])]),
5912
5916
  right: R(() => [
5913
5917
  AA(l.$slots, "header-right", {}, () => [
5914
- J(G(vA), {
5918
+ H(G(vA), {
5915
5919
  variant: "primary",
5916
5920
  size: "sm",
5917
5921
  onClick: g,
5918
5922
  "aria-label": `Basculer vers le mode ${A.currentMode === "light" ? "sombre" : "clair"}`,
5919
- class: C(["mode-toggle", { dark: A.currentMode === "dark" }])
5923
+ class: J(["mode-toggle", { dark: A.currentMode === "dark" }])
5920
5924
  }, {
5921
5925
  default: R(() => [
5922
5926
  d("span", Xr, T(A.currentMode === "light" ? "🌙" : "☀️"), 1)
@@ -5926,19 +5930,19 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5926
5930
  ], !0)
5927
5931
  ]),
5928
5932
  "mobile-nav-items": R(() => [
5929
- (f(!0), m(sA, null, aA(A.menuItems, (p) => (f(), m(sA, {
5930
- key: p.key
5933
+ (f(!0), m(sA, null, aA(A.menuItems, (P) => (f(), m(sA, {
5934
+ key: P.key
5931
5935
  }, [
5932
- "type" in p && p.type === "section" ? (f(), V(G(Ue), {
5936
+ "type" in P && P.type === "section" ? (f(), S(G(Ue), {
5933
5937
  key: 0,
5934
- label: p.label,
5938
+ label: P.label,
5935
5939
  collapsed: !1
5936
- }, null, 8, ["label"])) : (f(), V(G(Re), {
5940
+ }, null, 8, ["label"])) : (f(), S(G(Re), {
5937
5941
  key: 1,
5938
- icon: p.icon,
5939
- label: p.label,
5940
- active: r.value(p),
5941
- onClick: (O) => a(p.to)
5942
+ icon: P.icon,
5943
+ label: P.label,
5944
+ active: r.value(P),
5945
+ onClick: (M) => a(P.to)
5942
5946
  }, null, 8, ["icon", "label", "active", "onClick"]))
5943
5947
  ], 64))), 128))
5944
5948
  ]),
@@ -5951,7 +5955,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
5951
5955
  AA(l.$slots, "footer", {}, () => [
5952
5956
  d("div", Fr, [
5953
5957
  d("div", Nr, [
5954
- J(G(ne), {
5958
+ H(G(ne), {
5955
5959
  variant: "small",
5956
5960
  size: "xs"
5957
5961
  }),
@@ -6022,9 +6026,9 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6022
6026
  autoplayDelay: { default: 5e3 }
6023
6027
  },
6024
6028
  setup(A) {
6025
- const s = A, e = H(!1), t = () => {
6029
+ const s = A, e = Z(!1), t = () => {
6026
6030
  console.log("Toggle bottomsheet clicked, current state:", e.value), e.value = !e.value, console.log("New state:", e.value);
6027
- }, n = P(() => s.slides), o = (i) => {
6031
+ }, n = x(() => s.slides), o = (i) => {
6028
6032
  console.log("Slide changed to:", i);
6029
6033
  }, c = (i) => {
6030
6034
  i.key === "Escape" && e.value && t();
@@ -6038,7 +6042,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6038
6042
  d("div", Wr, [
6039
6043
  d("div", Kr, [
6040
6044
  AA(i.$slots, "logo", {}, () => [
6041
- J(ne, {
6045
+ H(ne, {
6042
6046
  brand: "club-employes",
6043
6047
  variant: "small",
6044
6048
  size: "md"
@@ -6057,7 +6061,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6057
6061
  ]),
6058
6062
  A.showTips ? (f(), m("div", Aa, [
6059
6063
  d("div", ea, [
6060
- J(F, {
6064
+ H(F, {
6061
6065
  name: "Lightbulb",
6062
6066
  size: "large"
6063
6067
  })
@@ -6082,7 +6086,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6082
6086
  ])
6083
6087
  ]),
6084
6088
  d("div", {
6085
- class: C(["auth-slider-section", { "bottomsheet-open": e.value }])
6089
+ class: J(["auth-slider-section", { "bottomsheet-open": e.value }])
6086
6090
  }, [
6087
6091
  d("div", {
6088
6092
  class: "bottomsheet-header",
@@ -6096,14 +6100,14 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6096
6100
  onClick: jA(t, ["stop"]),
6097
6101
  "aria-label": "Toggle bottomsheet"
6098
6102
  }, [
6099
- J(F, {
6103
+ H(F, {
6100
6104
  name: e.value ? "Chevron-down" : "Chevron-up",
6101
6105
  size: "small",
6102
6106
  "stroke-width": "2"
6103
6107
  }, null, 8, ["name"])
6104
6108
  ])
6105
6109
  ]),
6106
- J(Io, {
6110
+ H(Io, {
6107
6111
  slides: n.value,
6108
6112
  direction: "horizontal",
6109
6113
  autoplay: A.autoplay,
@@ -6124,7 +6128,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6124
6128
  ])) : y("", !0),
6125
6129
  a.tips ? (f(), m("div", la, [
6126
6130
  d("div", da, [
6127
- J(F, {
6131
+ H(F, {
6128
6132
  name: "Lightbulb",
6129
6133
  size: "large"
6130
6134
  })
@@ -6159,7 +6163,7 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6159
6163
  disabled: { type: Boolean, default: !1 }
6160
6164
  },
6161
6165
  setup(A) {
6162
- const s = A, e = P(() => {
6166
+ const s = A, e = x(() => {
6163
6167
  switch (s.size) {
6164
6168
  case "sm":
6165
6169
  return 32;
@@ -6168,14 +6172,14 @@ const Hc = cc, Jc = ic, Cc = tc, Lc = sc, Ec = (A, s, e) => {
6168
6172
  default:
6169
6173
  return 64;
6170
6174
  }
6171
- }), t = P(() => [
6175
+ }), t = x(() => [
6172
6176
  `new-loader--${s.size}`,
6173
6177
  `new-loader--${s.variant}`,
6174
6178
  `new-loader--anim-${s.animation}`,
6175
6179
  { "new-loader--disabled": s.disabled }
6176
6180
  ]);
6177
6181
  return (n, o) => (f(), m("span", {
6178
- class: C(["new-loader", t.value]),
6182
+ class: J(["new-loader", t.value]),
6179
6183
  role: "status",
6180
6184
  "aria-live": "polite"
6181
6185
  }, [