@surgeui/ds-vue 1.1.0 → 1.2.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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as N, computed as n, defineAsyncComponent as ma, createBlock as U, createCommentVNode as x, openBlock as l, resolveDynamicComponent as ee, mergeProps as Q, normalizeClass as K, withCtx as be, createElementBlock as o, renderSlot as Y, createElementVNode as d, useAttrs as de, ref as T, useId as he, onMounted as Be, normalizeStyle as te, Fragment as _, renderList as ue, toDisplayString as F, useSlots as Ie, createTextVNode as xe, watch as $e, onUnmounted as Le, Transition as Ae, withModifiers as pe, createVNode as re, unref as oe, nextTick as ze, withDirectives as Ue, vShow as Ge, inject as ba, provide as ha, h as De, Comment as Se, Text as Fe, mergeModels as J, useModel as ye, withKeys as ke } from "vue";
2
- const ya = /* @__PURE__ */ N({
1
+ import { defineComponent as Y, computed as r, defineAsyncComponent as ma, createBlock as U, createCommentVNode as x, openBlock as l, resolveDynamicComponent as ee, mergeProps as Q, normalizeClass as K, withCtx as be, createElementBlock as o, renderSlot as N, createElementVNode as d, useAttrs as de, ref as T, useId as he, onMounted as Be, normalizeStyle as te, Fragment as _, renderList as ue, toDisplayString as F, useSlots as Ie, createTextVNode as xe, watch as $e, onUnmounted as Le, Transition as Ae, withModifiers as pe, createVNode as re, unref as oe, nextTick as ze, withDirectives as Ge, vShow as Ze, inject as ba, provide as ha, h as De, Comment as Se, Text as Fe, mergeModels as J, useModel as ye, withKeys as ke } from "vue";
2
+ const ya = /* @__PURE__ */ Y({
3
3
  __name: "Icon",
4
4
  props: {
5
5
  name: {},
@@ -11,13 +11,13 @@ const ya = /* @__PURE__ */ N({
11
11
  class: {}
12
12
  },
13
13
  setup(a) {
14
- const s = a, t = n(() => {
14
+ const s = a, t = r(() => {
15
15
  const b = s.name.endsWith("Icon") ? s.name : `${s.name}Icon`;
16
16
  return ma({
17
17
  loader: async () => {
18
18
  try {
19
19
  let c;
20
- s.variant === "solid" ? c = await import("./index-BeQxidt5.js") : c = await import("./index-BuLJg9Es.js");
20
+ s.variant === "solid" ? c = await import("./index-BeQxidt5.js") : c = await import("./index-Bco9gSGG.js");
21
21
  const u = c[b];
22
22
  return u || (console.error(`Icône non trouvée: ${b} (variant: ${s.variant})`), null);
23
23
  } catch (c) {
@@ -27,16 +27,16 @@ const ya = /* @__PURE__ */ N({
27
27
  delay: 0,
28
28
  timeout: 3e3
29
29
  });
30
- }), e = n(() => typeof s.size == "number" ? `${s.size}px` : s.size), i = n(() => {
30
+ }), e = r(() => typeof s.size == "number" ? `${s.size}px` : s.size), i = r(() => {
31
31
  const b = [s.class];
32
32
  return s.color && b.push(s.color), b.filter(Boolean).join(" ");
33
- }), r = n(() => s.decorative ? {
33
+ }), n = r(() => s.decorative ? {
34
34
  "aria-hidden": "true",
35
35
  role: "presentation"
36
36
  } : {
37
37
  "aria-label": s.ariaLabel,
38
38
  role: s.ariaLabel ? "img" : void 0
39
- }), $ = n(() => {
39
+ }), $ = r(() => {
40
40
  const b = {
41
41
  width: e.value,
42
42
  height: e.value
@@ -47,7 +47,7 @@ const ya = /* @__PURE__ */ N({
47
47
  key: 0,
48
48
  class: i.value,
49
49
  style: $.value
50
- }, r.value), null, 16, ["class", "style"])) : x("", !0);
50
+ }, n.value), null, 16, ["class", "style"])) : x("", !0);
51
51
  }
52
52
  }), pa = {
53
53
  key: 0,
@@ -55,7 +55,7 @@ const ya = /* @__PURE__ */ N({
55
55
  }, ga = {
56
56
  key: 1,
57
57
  class: "su-heading__slot"
58
- }, ka = /* @__PURE__ */ N({
58
+ }, ka = /* @__PURE__ */ Y({
59
59
  __name: "Heading",
60
60
  props: {
61
61
  level: {
@@ -77,7 +77,7 @@ const ya = /* @__PURE__ */ N({
77
77
  }
78
78
  },
79
79
  setup(a) {
80
- const s = a, t = n(() => s.level === "div" ? "div" : `h${s.level}`);
80
+ const s = a, t = r(() => s.level === "div" ? "div" : `h${s.level}`);
81
81
  return (e, i) => (l(), U(ee(t.value), {
82
82
  class: K(["su-heading", [
83
83
  `su-heading--level-${a.level}`,
@@ -87,11 +87,11 @@ const ya = /* @__PURE__ */ N({
87
87
  }, {
88
88
  default: be(() => [
89
89
  e.$slots.before ? (l(), o("div", pa, [
90
- Y(e.$slots, "before", {}, void 0, !0)
90
+ N(e.$slots, "before", {}, void 0, !0)
91
91
  ])) : x("", !0),
92
- Y(e.$slots, "default", {}, void 0, !0),
92
+ N(e.$slots, "default", {}, void 0, !0),
93
93
  e.$slots.after ? (l(), o("div", ga, [
94
- Y(e.$slots, "after", {}, void 0, !0)
94
+ N(e.$slots, "after", {}, void 0, !0)
95
95
  ])) : x("", !0)
96
96
  ]),
97
97
  _: 3
@@ -108,7 +108,7 @@ const ya = /* @__PURE__ */ N({
108
108
  }, wa = { class: "su-panel__body" }, Ba = {
109
109
  key: 1,
110
110
  class: "su-panel__footer"
111
- }, Ca = /* @__PURE__ */ N({
111
+ }, Ca = /* @__PURE__ */ Y({
112
112
  __name: "Panel",
113
113
  props: {
114
114
  tag: { default: "div" },
@@ -127,19 +127,19 @@ const ya = /* @__PURE__ */ N({
127
127
  }, {
128
128
  default: be(() => [
129
129
  s.$slots.head ? (l(), o("header", $a, [
130
- Y(s.$slots, "head", {}, void 0, !0)
130
+ N(s.$slots, "head", {}, void 0, !0)
131
131
  ])) : x("", !0),
132
132
  d("div", wa, [
133
- Y(s.$slots, "default", {}, void 0, !0)
133
+ N(s.$slots, "default", {}, void 0, !0)
134
134
  ]),
135
135
  s.$slots.footer ? (l(), o("footer", Ba, [
136
- Y(s.$slots, "footer", {}, void 0, !0)
136
+ N(s.$slots, "footer", {}, void 0, !0)
137
137
  ])) : x("", !0)
138
138
  ]),
139
139
  _: 3
140
140
  }, 8, ["class"]));
141
141
  }
142
- }), Ia = /* @__PURE__ */ Ce(Ca, [["__scopeId", "data-v-17e780b2"]]), La = ["aria-label"], za = { key: 1 }, Da = ["srcset", "type", "media"], Va = ["id", "src", "alt", "width", "height", "loading"], Ma = ["id", "src", "alt", "width", "height", "loading"], qa = ["aria-label"], Ze = /* @__PURE__ */ N({
142
+ }), Ia = /* @__PURE__ */ Ce(Ca, [["__scopeId", "data-v-17e780b2"]]), La = ["aria-label"], za = { key: 1 }, Da = ["srcset", "type", "media"], Va = ["id", "src", "alt", "width", "height", "loading"], Ma = ["id", "src", "alt", "width", "height", "loading"], qa = ["aria-label"], We = /* @__PURE__ */ Y({
143
143
  __name: "Image",
144
144
  props: {
145
145
  src: {},
@@ -167,13 +167,13 @@ const ya = /* @__PURE__ */ N({
167
167
  },
168
168
  emits: ["load", "error"],
169
169
  setup(a, { expose: s, emit: t }) {
170
- const e = a, i = t, r = de(), $ = T(), b = T(!1), c = T(!1), u = T(!0), f = "image-" + he(), y = n(() => r.id || f), w = n(() => {
170
+ const e = a, i = t, n = de(), $ = T(), b = T(!1), c = T(!1), u = T(!0), f = "image-" + he(), y = r(() => n.id || f), w = r(() => {
171
171
  if (e.ratio === "auto") return {};
172
172
  let D;
173
173
  return typeof e.ratio == "number" ? D = e.ratio.toString() : D = e.ratio, {
174
174
  aspectRatio: D
175
175
  };
176
- }), k = n(() => [
176
+ }), k = r(() => [
177
177
  "su-image-container",
178
178
  {
179
179
  "su-image-container--loading": u.value,
@@ -181,7 +181,7 @@ const ya = /* @__PURE__ */ N({
181
181
  "su-image-container--error": c.value,
182
182
  "su-image-container--has-ratio": e.ratio !== "auto"
183
183
  }
184
- ]), R = n(() => [
184
+ ]), R = r(() => [
185
185
  "su-image",
186
186
  `su-image--fit-${e.fit}`,
187
187
  `su-image--position-${e.position}`,
@@ -189,7 +189,7 @@ const ya = /* @__PURE__ */ N({
189
189
  "su-image--loaded": b.value,
190
190
  "su-image--error": c.value
191
191
  }
192
- ]), V = n(() => {
192
+ ]), V = r(() => {
193
193
  const D = {};
194
194
  return e.ariaLabel && (D["aria-label"] = e.ariaLabel), e.ariaDescribedBy && (D["aria-describedby"] = e.ariaDescribedBy), e.ariaHidden !== void 0 && (D["aria-hidden"] = e.ariaHidden), e.role && (D.role = e.role), D;
195
195
  }), p = (D) => {
@@ -299,7 +299,7 @@ const ya = /* @__PURE__ */ N({
299
299
  ])], 8, qa)) : x("", !0)
300
300
  ], 6));
301
301
  }
302
- }), Ra = ["stroke", "stroke-width", "fill"], Aa = ["stroke", "stroke-width", "fill"], Sa = /* @__PURE__ */ N({
302
+ }), Ra = ["stroke", "stroke-width", "fill"], Aa = ["stroke", "stroke-width", "fill"], Sa = /* @__PURE__ */ Y({
303
303
  __name: "Spinner",
304
304
  props: {
305
305
  size: { default: 12 },
@@ -312,13 +312,13 @@ const ya = /* @__PURE__ */ N({
312
312
  speed: { default: 1 }
313
313
  },
314
314
  setup(a) {
315
- const s = a, t = n(() => typeof s.size == "number" ? `${s.size}px` : s.size), e = n(() => `${s.speed}s`), i = n(() => ({
315
+ const s = a, t = r(() => typeof s.size == "number" ? `${s.size}px` : s.size), e = r(() => `${s.speed}s`), i = r(() => ({
316
316
  width: t.value,
317
317
  height: t.value,
318
318
  color: s.color,
319
319
  animationDuration: e.value
320
320
  }));
321
- return (r, $) => (l(), o("span", {
321
+ return (n, $) => (l(), o("span", {
322
322
  class: K(["su-spinner", `su-spinner--${a.type}`]),
323
323
  role: "status",
324
324
  "aria-live": "polite"
@@ -387,7 +387,7 @@ const ya = /* @__PURE__ */ N({
387
387
  }), Pe = /* @__PURE__ */ Ce(Sa, [["__scopeId", "data-v-6bd34adc"]]), Fa = {
388
388
  key: 1,
389
389
  class: "su-badge__content"
390
- }, We = /* @__PURE__ */ N({
390
+ }, Ne = /* @__PURE__ */ Y({
391
391
  __name: "Badge",
392
392
  props: {
393
393
  variant: { default: "default" },
@@ -408,7 +408,7 @@ const ya = /* @__PURE__ */ N({
408
408
  tabIndex: {}
409
409
  },
410
410
  setup(a) {
411
- const s = a, t = Ie(), e = n(() => !(s.icon && s.iconDisplay === "only") && t.default), i = n(() => [
411
+ const s = a, t = Ie(), e = r(() => !(s.icon && s.iconDisplay === "only") && t.default), i = r(() => [
412
412
  "su-badge",
413
413
  `su-badge--${s.variant}`,
414
414
  `su-badge--${s.size}`,
@@ -418,10 +418,10 @@ const ya = /* @__PURE__ */ N({
418
418
  "su-badge--icon-right": s.icon && s.iconDisplay === "right",
419
419
  "su-badge--has-custom-color": s.color || s.backgroundColor
420
420
  }
421
- ]), r = n(() => {
421
+ ]), n = r(() => {
422
422
  const c = {};
423
423
  return s.color && (c.color = s.color), s.backgroundColor && (c.backgroundColor = s.backgroundColor, c.borderColor = s.backgroundColor, s.color || (c.color = b(s.backgroundColor))), c;
424
- }), $ = n(() => {
424
+ }), $ = r(() => {
425
425
  const c = {};
426
426
  return s.ariaLabel && (c["aria-label"] = s.ariaLabel), s.ariaDescribedBy && (c["aria-describedby"] = s.ariaDescribedBy), s.ariaHidden !== void 0 && (c["aria-hidden"] = s.ariaHidden), s.role && (c.role = s.role), c;
427
427
  }), b = (c) => {
@@ -430,7 +430,7 @@ const ya = /* @__PURE__ */ N({
430
430
  };
431
431
  return s.icon && s.iconDisplay === "only" && !s.ariaLabel && !t.default && console.warn('Badge with icon and iconDisplay="only" should have an ariaLabel for accessibility'), (c, u) => (l(), o("span", Q({
432
432
  class: i.value,
433
- style: r.value
433
+ style: n.value
434
434
  }, $.value), [
435
435
  a.icon ? (l(), U(ee(a.icon), {
436
436
  key: 0,
@@ -438,7 +438,7 @@ const ya = /* @__PURE__ */ N({
438
438
  "aria-hidden": "true"
439
439
  })) : x("", !0),
440
440
  e.value ? (l(), o("span", Fa, [
441
- Y(c.$slots, "default")
441
+ N(c.$slots, "default")
442
442
  ])) : x("", !0)
443
443
  ], 16));
444
444
  }
@@ -446,7 +446,7 @@ const ya = /* @__PURE__ */ N({
446
446
  key: 3,
447
447
  class: "su-avatar-placeholder",
448
448
  "aria-label": "Avatar par défaut"
449
- }, Ha = ["aria-label"], Ne = /* @__PURE__ */ N({
449
+ }, Ha = ["aria-label"], Ye = /* @__PURE__ */ Y({
450
450
  __name: "Avatar",
451
451
  props: {
452
452
  src: {},
@@ -473,11 +473,11 @@ const ya = /* @__PURE__ */ N({
473
473
  },
474
474
  emits: ["click", "load", "error"],
475
475
  setup(a, { expose: s, emit: t }) {
476
- const e = a, i = t, r = de(), $ = T(), b = T(!1), c = T(!1), u = "avatar-" + he(), f = n(() => r.id || u), y = n(() => {
476
+ const e = a, i = t, n = de(), $ = T(), b = T(!1), c = T(!1), u = "avatar-" + he(), f = r(() => n.id || u), y = r(() => {
477
477
  if (!e.name) return "";
478
478
  const P = e.name.trim().split(/\s+/);
479
479
  return P.length === 1 ? P[0].charAt(0).toUpperCase() : (P[0].charAt(0) + P[P.length - 1].charAt(0)).toUpperCase();
480
- }), w = n(() => (e.src || e.fallback) && !c.value), k = n(() => !w.value && e.name), R = n(() => [
480
+ }), w = r(() => (e.src || e.fallback) && !c.value), k = r(() => !w.value && e.name), R = r(() => [
481
481
  "su-avatar",
482
482
  `su-avatar--${e.size}`,
483
483
  `su-avatar--${e.variant}`,
@@ -489,13 +489,13 @@ const ya = /* @__PURE__ */ N({
489
489
  "su-avatar--image": w.value,
490
490
  "su-avatar--initials": k.value
491
491
  }
492
- ]), V = n(() => [
492
+ ]), V = r(() => [
493
493
  "su-avatar-status",
494
494
  `su-avatar-status--${e.size}`,
495
495
  `su-avatar-status--${e.status}`
496
- ]), p = n(() => [
496
+ ]), p = r(() => [
497
497
  "su-avatar-badge"
498
- ]), h = n(() => {
498
+ ]), h = r(() => {
499
499
  const P = {};
500
500
  return e.ariaLabel && (P["aria-label"] = e.ariaLabel), e.ariaDescribedBy && (P["aria-describedby"] = e.ariaDescribedBy), e.role && (P.role = e.role), e.clickable && (P.role = P.role || "button", P.tabindex = e.tabIndex || 0), P;
501
501
  }), M = (P) => {
@@ -528,7 +528,7 @@ const ya = /* @__PURE__ */ N({
528
528
  label: "Chargement en cours...",
529
529
  color: "#3b82f6",
530
530
  size: "16"
531
- })) : w.value ? (l(), U(Ze, {
531
+ })) : w.value ? (l(), U(We, {
532
532
  key: 1,
533
533
  src: a.src || a.fallback || "",
534
534
  fallback: a.fallback,
@@ -559,7 +559,7 @@ const ya = /* @__PURE__ */ N({
559
559
  class: K(V.value),
560
560
  "aria-label": `Statut: ${a.status}`
561
561
  }, null, 10, Ha)) : x("", !0),
562
- a.badge ? (l(), U(We, Q({
562
+ a.badge ? (l(), U(Ne, Q({
563
563
  key: 5,
564
564
  class: p.value,
565
565
  size: "sm",
@@ -580,7 +580,7 @@ const ya = /* @__PURE__ */ N({
580
580
  }, Oa = { class: "su-avatars-group-list" }, ja = ["aria-label"], Ua = { class: "su-avatars-group-more-text" }, Ga = {
581
581
  key: 1,
582
582
  class: "su-avatars-group-after"
583
- }, Za = /* @__PURE__ */ N({
583
+ }, Za = /* @__PURE__ */ Y({
584
584
  __name: "AvatarGroup",
585
585
  props: {
586
586
  avatars: { default: () => [] },
@@ -601,14 +601,14 @@ const ya = /* @__PURE__ */ N({
601
601
  },
602
602
  emits: ["avatar-click"],
603
603
  setup(a, { emit: s }) {
604
- const t = a, e = s, i = n(() => t.avatars.slice(0, t.max)), r = n(() => Math.max(0, t.avatars.length - t.max)), $ = n(() => [
604
+ const t = a, e = s, i = r(() => t.avatars.slice(0, t.max)), n = r(() => Math.max(0, t.avatars.length - t.max)), $ = r(() => [
605
605
  "su-avatars-group",
606
606
  `su-avatars-group--${t.size}`,
607
607
  `su-avatars-group--spacing-${t.spacing}`,
608
608
  {
609
609
  "su-avatars-group--clickable": t.clickable
610
610
  }
611
- ]), b = n(() => [
611
+ ]), b = r(() => [
612
612
  "su-avatar",
613
613
  "su-avatars-group-more",
614
614
  `su-avatar--${t.size}`,
@@ -616,7 +616,7 @@ const ya = /* @__PURE__ */ N({
616
616
  {
617
617
  "su-avatar--clickable": t.clickable
618
618
  }
619
- ]), c = n(() => {
619
+ ]), c = r(() => {
620
620
  const y = {
621
621
  role: "group"
622
622
  };
@@ -624,14 +624,14 @@ const ya = /* @__PURE__ */ N({
624
624
  }), u = (y, w, k) => {
625
625
  t.clickable && e("avatar-click", y, w, k);
626
626
  }, f = (y) => {
627
- t.clickable && e("avatar-click", { type: "more", count: r.value }, -1, y);
627
+ t.clickable && e("avatar-click", { type: "more", count: n.value }, -1, y);
628
628
  };
629
629
  return (y, w) => (l(), o("div", Q({ class: $.value }, c.value), [
630
630
  y.$slots.before ? (l(), o("div", Ka, [
631
- Y(y.$slots, "before")
631
+ N(y.$slots, "before")
632
632
  ])) : x("", !0),
633
633
  d("div", Oa, [
634
- (l(!0), o(_, null, ue(i.value, (k, R) => (l(), U(Ne, {
634
+ (l(!0), o(_, null, ue(i.value, (k, R) => (l(), U(Ye, {
635
635
  key: `avatar-${R}`,
636
636
  src: k.src,
637
637
  alt: k.alt,
@@ -648,24 +648,24 @@ const ya = /* @__PURE__ */ N({
648
648
  class: "su-avatars-group-avatar",
649
649
  onClick: (V) => u(k, R, V)
650
650
  }, null, 8, ["src", "alt", "fallback", "name", "size", "variant", "status", "badge", "badge-color", "loading", "clickable", "aria-label", "onClick"]))), 128)),
651
- r.value > 0 ? (l(), o("div", {
651
+ n.value > 0 ? (l(), o("div", {
652
652
  key: 0,
653
653
  class: K(b.value),
654
- "aria-label": `${r.value} autre(s) utilisateur(s)`,
654
+ "aria-label": `${n.value} autre(s) utilisateur(s)`,
655
655
  onClick: f
656
656
  }, [
657
- d("span", Ua, " +" + F(r.value), 1)
657
+ d("span", Ua, " +" + F(n.value), 1)
658
658
  ], 10, ja)) : x("", !0)
659
659
  ]),
660
660
  y.$slots.after ? (l(), o("div", Ga, [
661
- Y(y.$slots, "after")
661
+ N(y.$slots, "after")
662
662
  ])) : x("", !0)
663
663
  ], 16));
664
664
  }
665
665
  }), Wa = ["disabled", "tabindex"], Na = {
666
666
  key: 1,
667
667
  class: "su-button__content"
668
- }, Me = /* @__PURE__ */ N({
668
+ }, Me = /* @__PURE__ */ Y({
669
669
  __name: "Button",
670
670
  props: {
671
671
  variant: { default: "primary" },
@@ -690,7 +690,7 @@ const ya = /* @__PURE__ */ N({
690
690
  },
691
691
  emits: ["click", "focus", "blur", "keydown"],
692
692
  setup(a, { emit: s }) {
693
- const t = a, e = s, i = n(() => [
693
+ const t = a, e = s, i = r(() => [
694
694
  "su-button",
695
695
  t.size && `su-button--${t.size}`,
696
696
  t.variant && `su-button--${t.variant}`,
@@ -702,7 +702,7 @@ const ya = /* @__PURE__ */ N({
702
702
  "su-button--icon-only": t.icon && t.iconDisplay === "only",
703
703
  "su-button--icon-right": t.icon && t.iconDisplay === "right"
704
704
  }
705
- ]), r = n(() => !(t.icon && t.iconDisplay === "only")), $ = (y) => {
705
+ ]), n = r(() => !(t.icon && t.iconDisplay === "only")), $ = (y) => {
706
706
  t.disabled || t.loading || e("click", y);
707
707
  }, b = (y) => {
708
708
  (y.key === "Enter" || y.key === " ") && (y.preventDefault(), !t.disabled && !t.loading && e("click", y)), e("keydown", y);
@@ -710,7 +710,7 @@ const ya = /* @__PURE__ */ N({
710
710
  e("focus", y);
711
711
  }, u = (y) => {
712
712
  e("blur", y);
713
- }, f = n(() => {
713
+ }, f = r(() => {
714
714
  const y = {};
715
715
  return t.ariaLabel && (y["aria-label"] = t.ariaLabel), t.ariaDescribedBy && (y["aria-describedby"] = t.ariaDescribedBy), t.ariaExpanded !== void 0 && (y["aria-expanded"] = t.ariaExpanded), t.ariaPressed !== void 0 && (y["aria-pressed"] = t.ariaPressed), t.role && (y.role = t.role), t.loading && (y["aria-busy"] = "true", y["aria-live"] = "polite"), t.disabled && (y["aria-disabled"] = "true"), t.icon && t.iconDisplay === "only" && !t.ariaLabel && console.warn('Button with icon and iconDisplay="only" should have an ariaLabel for accessibility'), y;
716
716
  });
@@ -734,8 +734,8 @@ const ya = /* @__PURE__ */ N({
734
734
  class: "su-button__icon",
735
735
  "aria-hidden": "true"
736
736
  })) : x("", !0),
737
- r.value && y.$slots.default ? (l(), o("span", Na, [
738
- Y(y.$slots, "default")
737
+ n.value && y.$slots.default ? (l(), o("span", Na, [
738
+ N(y.$slots, "default")
739
739
  ])) : x("", !0)
740
740
  ], 64))
741
741
  ], 16, Wa));
@@ -758,8 +758,8 @@ function Qa(a) {
758
758
  function qe(a) {
759
759
  const s = a.querySelectorAll(
760
760
  'button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])'
761
- ), t = s[0], e = s[s.length - 1], i = (r) => {
762
- r.key === "Tab" && (r.shiftKey ? document.activeElement === t && (r.preventDefault(), e.focus()) : document.activeElement === e && (r.preventDefault(), t.focus()));
761
+ ), t = s[0], e = s[s.length - 1], i = (n) => {
762
+ n.key === "Tab" && (n.shiftKey ? document.activeElement === t && (n.preventDefault(), e.focus()) : document.activeElement === e && (n.preventDefault(), t.focus()));
763
763
  };
764
764
  return a.addEventListener("keydown", i), t == null || t.focus(), () => {
765
765
  a.removeEventListener("keydown", i);
@@ -783,7 +783,7 @@ function et(a, s) {
783
783
  function at(a, s = "AA") {
784
784
  return a >= (s === "AAA" ? 7 : 4.5);
785
785
  }
786
- const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
786
+ const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
787
787
  __proto__: null,
788
788
  announceToScreenReader: ce,
789
789
  generateId: Xa,
@@ -862,7 +862,7 @@ function Te(a, s) {
862
862
  })
863
863
  ]);
864
864
  }
865
- function Ye(a, s) {
865
+ function Xe(a, s) {
866
866
  return l(), o("svg", {
867
867
  xmlns: "http://www.w3.org/2000/svg",
868
868
  fill: "none",
@@ -879,7 +879,7 @@ function Ye(a, s) {
879
879
  })
880
880
  ]);
881
881
  }
882
- function Xe(a, s) {
882
+ function Qe(a, s) {
883
883
  return l(), o("svg", {
884
884
  xmlns: "http://www.w3.org/2000/svg",
885
885
  fill: "none",
@@ -969,7 +969,7 @@ function it(a, s) {
969
969
  })
970
970
  ]);
971
971
  }
972
- function Oe(a, s) {
972
+ function je(a, s) {
973
973
  return l(), o("svg", {
974
974
  xmlns: "http://www.w3.org/2000/svg",
975
975
  fill: "none",
@@ -1003,7 +1003,7 @@ function ot(a, s) {
1003
1003
  })
1004
1004
  ]);
1005
1005
  }
1006
- function Qe(a, s) {
1006
+ function Je(a, s) {
1007
1007
  return l(), o("svg", {
1008
1008
  xmlns: "http://www.w3.org/2000/svg",
1009
1009
  fill: "none",
@@ -1043,7 +1043,7 @@ const nt = ["id", "open"], rt = {
1043
1043
  }, ut = ["id"], dt = ["id"], ct = { class: "su-dialog-content" }, ft = {
1044
1044
  key: 2,
1045
1045
  class: "su-dialog-footer"
1046
- }, vt = /* @__PURE__ */ N({
1046
+ }, vt = /* @__PURE__ */ Y({
1047
1047
  __name: "Dialog",
1048
1048
  props: {
1049
1049
  modelValue: { type: Boolean, default: !1 },
@@ -1068,19 +1068,19 @@ const nt = ["id", "open"], rt = {
1068
1068
  },
1069
1069
  emits: ["update:modelValue", "open", "close"],
1070
1070
  setup(a, { expose: s, emit: t }) {
1071
- const e = a, i = t, r = de(), $ = T(), b = T(null), c = "dialog-" + he(), u = n(() => r.id || c), f = n(() => e.title ? u.value + "-title" : void 0), y = n(() => e.description ? u.value + "-description" : void 0), w = T(e.modelValue), k = n(() => [
1071
+ const e = a, i = t, n = de(), $ = T(), b = T(null), c = "dialog-" + he(), u = r(() => n.id || c), f = r(() => e.title ? u.value + "-title" : void 0), y = r(() => e.description ? u.value + "-description" : void 0), w = T(e.modelValue), k = r(() => [
1072
1072
  "su-dialog-overlay",
1073
1073
  `su-dialog-overlay--${e.display}`,
1074
1074
  {
1075
1075
  "su-dialog-overlay--open": w.value
1076
1076
  }
1077
- ]), R = n(() => [
1077
+ ]), R = r(() => [
1078
1078
  "su-dialog",
1079
1079
  `su-dialog--${e.display}`,
1080
1080
  {
1081
1081
  "su-dialog--open": w.value
1082
1082
  }
1083
- ]), V = n(() => {
1083
+ ]), V = r(() => {
1084
1084
  const v = {
1085
1085
  role: "dialog",
1086
1086
  "aria-modal": "true",
@@ -1138,7 +1138,7 @@ const nt = ["id", "open"], rt = {
1138
1138
  style: te({ height: a.height })
1139
1139
  }, [
1140
1140
  v.$slots.head || a.title ? (l(), o("div", rt, [
1141
- Y(v.$slots, "head", {}, () => [
1141
+ N(v.$slots, "head", {}, () => [
1142
1142
  d("h2", {
1143
1143
  id: f.value,
1144
1144
  class: "su-dialog-title"
@@ -1151,10 +1151,10 @@ const nt = ["id", "open"], rt = {
1151
1151
  class: "sr-only"
1152
1152
  }, F(a.description), 9, dt)) : x("", !0),
1153
1153
  d("div", ct, [
1154
- Y(v.$slots, "default")
1154
+ N(v.$slots, "default")
1155
1155
  ]),
1156
1156
  v.$slots.footer ? (l(), o("div", ft, [
1157
- Y(v.$slots, "footer")
1157
+ N(v.$slots, "footer")
1158
1158
  ])) : x("", !0)
1159
1159
  ], 4)
1160
1160
  ], 16, nt)
@@ -1163,7 +1163,7 @@ const nt = ["id", "open"], rt = {
1163
1163
  _: 3
1164
1164
  }));
1165
1165
  }
1166
- }), mt = { class: "su-tabs" }, bt = ["id", "aria-controls", "aria-selected", "tabindex", "onClick"], ht = ["id", "aria-labelledby"], yt = /* @__PURE__ */ N({
1166
+ }), mt = { class: "su-tabs" }, bt = ["id", "aria-controls", "aria-selected", "tabindex", "onClick"], ht = ["id", "aria-labelledby"], yt = /* @__PURE__ */ Y({
1167
1167
  __name: "Tabs",
1168
1168
  props: {
1169
1169
  tabs: {},
@@ -1174,7 +1174,7 @@ const nt = ["id", "open"], rt = {
1174
1174
  setup(a, { emit: s }) {
1175
1175
  const t = a, e = s, i = T(t.modelValue);
1176
1176
  $e(() => t.modelValue, (b) => i.value = b), $e(i, (b) => e("update:modelValue", b));
1177
- const r = (b) => {
1177
+ const n = (b) => {
1178
1178
  var u;
1179
1179
  const c = ((u = t.tabs) == null ? void 0 : u.length) ?? 0;
1180
1180
  c && (b.key === "ArrowRight" ? i.value = (i.value + 1) % c : b.key === "ArrowLeft" ? i.value = (i.value - 1 + c) % c : b.key === "Home" ? i.value = 0 : b.key === "End" && (i.value = c - 1));
@@ -1187,7 +1187,7 @@ const nt = ["id", "open"], rt = {
1187
1187
  d("div", {
1188
1188
  role: "tablist",
1189
1189
  class: "su-tabs-list",
1190
- onKeydown: r
1190
+ onKeydown: n
1191
1191
  }, [
1192
1192
  (l(!0), o(_, null, ue(a.tabs, (u, f) => (l(), o("button", {
1193
1193
  id: `tab-${f}`,
@@ -1199,7 +1199,7 @@ const nt = ["id", "open"], rt = {
1199
1199
  class: K($(f)),
1200
1200
  onClick: (y) => i.value = f
1201
1201
  }, [
1202
- Y(b.$slots, "tab", {
1202
+ N(b.$slots, "tab", {
1203
1203
  tab: u,
1204
1204
  index: f
1205
1205
  }, () => [
@@ -1207,25 +1207,25 @@ const nt = ["id", "open"], rt = {
1207
1207
  ], !0)
1208
1208
  ], 10, bt))), 128))
1209
1209
  ], 32),
1210
- (l(!0), o(_, null, ue(a.tabs, (u, f) => Ue((l(), o("div", {
1210
+ (l(!0), o(_, null, ue(a.tabs, (u, f) => Ge((l(), o("div", {
1211
1211
  id: `panel-${f}`,
1212
1212
  key: f,
1213
1213
  role: "tabpanel",
1214
1214
  "aria-labelledby": `tab-${f}`,
1215
1215
  class: "su-tab-panel"
1216
1216
  }, [
1217
- Y(b.$slots, "panel", {
1217
+ N(b.$slots, "panel", {
1218
1218
  tab: u,
1219
1219
  index: f
1220
1220
  }, () => [
1221
1221
  d("p", null, F(u.content), 1)
1222
1222
  ], !0)
1223
1223
  ], 8, ht)), [
1224
- [Ge, f === i.value]
1224
+ [Ze, f === i.value]
1225
1225
  ])), 128))
1226
1226
  ]));
1227
1227
  }
1228
- }), pt = /* @__PURE__ */ Ce(yt, [["__scopeId", "data-v-1eb233f2"]]), gt = ["data-accordion-item"], kt = ["id", "aria-expanded", "aria-controls", "aria-disabled", "disabled"], xt = { class: "su-accordion-item__label" }, $t = ["id", "aria-labelledby", "hidden"], wt = { class: "su-accordion-item__panel-content" }, Bt = /* @__PURE__ */ N({
1228
+ }), pt = /* @__PURE__ */ Ce(yt, [["__scopeId", "data-v-1eb233f2"]]), gt = ["data-accordion-item"], kt = ["id", "aria-expanded", "aria-controls", "aria-disabled", "disabled"], xt = { class: "su-accordion-item__label" }, $t = ["id", "aria-labelledby", "hidden"], wt = { class: "su-accordion-item__panel-content" }, Bt = /* @__PURE__ */ Y({
1229
1229
  __name: "AccordionItem",
1230
1230
  props: {
1231
1231
  id: {},
@@ -1237,13 +1237,13 @@ const nt = ["id", "open"], rt = {
1237
1237
  },
1238
1238
  emits: ["update:open"],
1239
1239
  setup(a, { emit: s }) {
1240
- const t = a, e = s, i = ba("accordion"), r = n(() => t.id || `su-accordion-item-${Math.random().toString(36).slice(2, 10)}`), $ = n(() => `accordion-header-${r.value}`), b = n(() => `panel-${r.value}`), c = n(() => !!i), u = n(() => c.value ? `h${Math.min(i.level, 6)}` : `h${t.level}`), f = n({
1240
+ const t = a, e = s, i = ba("accordion"), n = r(() => t.id || `su-accordion-item-${Math.random().toString(36).slice(2, 10)}`), $ = r(() => `accordion-header-${n.value}`), b = r(() => `panel-${n.value}`), c = r(() => !!i), u = r(() => c.value ? `h${Math.min(i.level, 6)}` : `h${t.level}`), f = r({
1241
1241
  get() {
1242
- return c.value ? i.isItemOpen(r.value) : t.open;
1242
+ return c.value ? i.isItemOpen(n.value) : t.open;
1243
1243
  },
1244
1244
  set(V) {
1245
- c.value ? i.toggleItem(r.value, {
1246
- id: r.value,
1245
+ c.value ? i.toggleItem(n.value, {
1246
+ id: n.value,
1247
1247
  title: t.title,
1248
1248
  content: t.content,
1249
1249
  disabled: t.disabled
@@ -1267,15 +1267,15 @@ const nt = ["id", "open"], rt = {
1267
1267
  t.disabled || (f.value = !f.value);
1268
1268
  };
1269
1269
  return Be(() => {
1270
- c.value && i.registerItem(r.value, { focus: w });
1270
+ c.value && i.registerItem(n.value, { focus: w });
1271
1271
  }), Le(() => {
1272
- c.value && i.unregisterItem(r.value);
1272
+ c.value && i.unregisterItem(n.value);
1273
1273
  }), (V, p) => (l(), o("div", {
1274
1274
  class: K(["su-accordion-item", {
1275
1275
  "is-open": f.value,
1276
1276
  "is-disabled": a.disabled
1277
1277
  }]),
1278
- "data-accordion-item": r.value
1278
+ "data-accordion-item": n.value
1279
1279
  }, [
1280
1280
  (l(), U(ee(u.value), { class: "su-accordion-item__heading" }, {
1281
1281
  default: be(() => [
@@ -1293,8 +1293,8 @@ const nt = ["id", "open"], rt = {
1293
1293
  onClick: R,
1294
1294
  onKeydown: k
1295
1295
  }, [
1296
- Y(V.$slots, "header", {
1297
- item: { id: r.value, title: a.title, content: a.content, open: f.value, disabled: a.disabled }
1296
+ N(V.$slots, "header", {
1297
+ item: { id: n.value, title: a.title, content: a.content, open: f.value, disabled: a.disabled }
1298
1298
  }, () => [
1299
1299
  d("span", xt, F(a.title), 1)
1300
1300
  ], !0),
@@ -1306,7 +1306,7 @@ const nt = ["id", "open"], rt = {
1306
1306
  ]),
1307
1307
  _: 3
1308
1308
  })),
1309
- Ue(d("div", {
1309
+ Ge(d("div", {
1310
1310
  id: b.value,
1311
1311
  class: "su-accordion-item__panel",
1312
1312
  role: "region",
@@ -1314,18 +1314,18 @@ const nt = ["id", "open"], rt = {
1314
1314
  hidden: !f.value
1315
1315
  }, [
1316
1316
  d("div", wt, [
1317
- Y(V.$slots, "default", {
1318
- item: { id: r.value, title: a.title, content: a.content, open: f.value, disabled: a.disabled }
1317
+ N(V.$slots, "default", {
1318
+ item: { id: n.value, title: a.title, content: a.content, open: f.value, disabled: a.disabled }
1319
1319
  }, () => [
1320
1320
  d("p", null, F(a.content), 1)
1321
1321
  ], !0)
1322
1322
  ])
1323
1323
  ], 8, $t), [
1324
- [Ge, f.value]
1324
+ [Ze, f.value]
1325
1325
  ])
1326
1326
  ], 10, gt));
1327
1327
  }
1328
- }), Je = /* @__PURE__ */ Ce(Bt, [["__scopeId", "data-v-918fefa3"]]), Ct = ["aria-multiselectable", "aria-label"], It = /* @__PURE__ */ N({
1328
+ }), _e = /* @__PURE__ */ Ce(Bt, [["__scopeId", "data-v-918fefa3"]]), Ct = ["aria-multiselectable", "aria-label"], It = /* @__PURE__ */ Y({
1329
1329
  __name: "Accordion",
1330
1330
  props: {
1331
1331
  items: { default: () => [] },
@@ -1349,7 +1349,7 @@ const nt = ["id", "open"], rt = {
1349
1349
  $e(() => t.modelValue, (p) => {
1350
1350
  i.value = new Set(p);
1351
1351
  });
1352
- const r = n(() => t.items.map((p) => ({
1352
+ const n = r(() => t.items.map((p) => ({
1353
1353
  ...p,
1354
1354
  id: p.id || `accordion-item-${Math.random().toString(36).slice(2, 10)}`
1355
1355
  }))), $ = (p) => i.value.has(p), b = (p, h) => {
@@ -1363,7 +1363,7 @@ const nt = ["id", "open"], rt = {
1363
1363
  };
1364
1364
  ha("accordion", {
1365
1365
  multiple: t.multiple,
1366
- level: n(() => Math.min(6, t.level + 1)),
1366
+ level: r(() => Math.min(6, t.level + 1)),
1367
1367
  isItemOpen: $,
1368
1368
  toggleItem: b,
1369
1369
  registerItem: f,
@@ -1372,7 +1372,7 @@ const nt = ["id", "open"], rt = {
1372
1372
  const w = (p) => {
1373
1373
  if (!c.value) return;
1374
1374
  const h = Array.from(u.value.values()).filter((B, L) => {
1375
- const P = r.value[L];
1375
+ const P = n.value[L];
1376
1376
  return P && !P.disabled;
1377
1377
  });
1378
1378
  if (h.length === 0) return;
@@ -1420,18 +1420,18 @@ const nt = ["id", "open"], rt = {
1420
1420
  );
1421
1421
  if (p.key === "Home" && p.altKey) {
1422
1422
  if (p.preventDefault(), t.multiple) {
1423
- const D = r.value.map((v) => v.id).filter(Boolean);
1423
+ const D = n.value.map((v) => v.id).filter(Boolean);
1424
1424
  i.value = new Set(D), e("update:modelValue", Array.from(i.value));
1425
1425
  }
1426
1426
  } else if (p.key === "End" && p.altKey)
1427
1427
  p.preventDefault(), i.value.clear(), e("update:modelValue", []);
1428
1428
  else if (p.key === "ArrowDown" && p.altKey && M !== -1) {
1429
1429
  p.preventDefault();
1430
- const D = h[M][0], v = r.value.find((B) => B.id === D);
1430
+ const D = h[M][0], v = n.value.find((B) => B.id === D);
1431
1431
  v && !v.disabled && b(D, v);
1432
1432
  } else if (p.key === "ArrowUp" && p.altKey && M !== -1) {
1433
1433
  p.preventDefault();
1434
- const D = h[M][0], v = r.value.find((B) => B.id === D);
1434
+ const D = h[M][0], v = n.value.find((B) => B.id === D);
1435
1435
  v && !v.disabled && i.value.has(D) && b(D, v);
1436
1436
  }
1437
1437
  }
@@ -1445,7 +1445,7 @@ const nt = ["id", "open"], rt = {
1445
1445
  return Be(() => {
1446
1446
  document.addEventListener("keydown", k), ze(() => {
1447
1447
  R(
1448
- `Accordéon ${t.multiple ? "multiple" : "simple"} avec ${r.value.length} sections. Utilisez les flèches pour naviguer, Espace ou Entrée pour ouvrir/fermer.`
1448
+ `Accordéon ${t.multiple ? "multiple" : "simple"} avec ${n.value.length} sections. Utilisez les flèches pour naviguer, Espace ou Entrée pour ouvrir/fermer.`
1449
1449
  );
1450
1450
  });
1451
1451
  }), Le(() => {
@@ -1459,7 +1459,7 @@ const nt = ["id", "open"], rt = {
1459
1459
  "aria-label": a.ariaLabel || "Accordion",
1460
1460
  onKeydown: w
1461
1461
  }, [
1462
- (l(!0), o(_, null, ue(r.value, (M) => (l(), U(Je, {
1462
+ (l(!0), o(_, null, ue(n.value, (M) => (l(), U(_e, {
1463
1463
  id: M.id,
1464
1464
  key: M.id,
1465
1465
  title: M.title,
@@ -1471,7 +1471,7 @@ const nt = ["id", "open"], rt = {
1471
1471
  D !== $(M.id) && b(M.id, M);
1472
1472
  }
1473
1473
  }, null, 8, ["id", "title", "content", "disabled", "open", "level", "onUpdate:open"]))), 128)),
1474
- Y(p.$slots, "default", {}, void 0, !0)
1474
+ N(p.$slots, "default", {}, void 0, !0)
1475
1475
  ], 42, Ct));
1476
1476
  }
1477
1477
  }), Lt = /* @__PURE__ */ Ce(It, [["__scopeId", "data-v-8e7c7c09"]]), zt = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-busy"], Dt = {
@@ -1483,7 +1483,7 @@ const nt = ["id", "open"], rt = {
1483
1483
  }, Mt = {
1484
1484
  key: 1,
1485
1485
  class: "su-progress__label"
1486
- }, qt = /* @__PURE__ */ N({
1486
+ }, qt = /* @__PURE__ */ Y({
1487
1487
  __name: "Progress",
1488
1488
  props: {
1489
1489
  modelValue: { default: 0 },
@@ -1499,20 +1499,20 @@ const nt = ["id", "open"], rt = {
1499
1499
  indeterminateLabel: { default: "In progress…" }
1500
1500
  },
1501
1501
  setup(a) {
1502
- const s = a, t = n(
1502
+ const s = a, t = r(
1503
1503
  () => Math.min(Math.max(s.modelValue ?? 0, s.min), s.max)
1504
- ), e = n(
1504
+ ), e = r(
1505
1505
  () => s.max > s.min ? (t.value - s.min) / (s.max - s.min) * 100 : 0
1506
- ), i = n(() => s.formatValue(t.value)), r = {
1506
+ ), i = r(() => s.formatValue(t.value)), n = {
1507
1507
  error: "#e53935",
1508
1508
  success: "#43a047",
1509
1509
  warning: "#fdd835"
1510
- }, $ = n(() => s.indeterminate ? {
1511
- backgroundColor: s.state === "default" ? s.color : r[s.state] ?? s.color
1510
+ }, $ = r(() => s.indeterminate ? {
1511
+ backgroundColor: s.state === "default" ? s.color : n[s.state] ?? s.color
1512
1512
  } : {
1513
1513
  width: `${e.value}%`,
1514
- backgroundColor: s.state === "default" ? s.color : r[s.state] ?? s.color
1515
- }), b = n(() => ({
1514
+ backgroundColor: s.state === "default" ? s.color : n[s.state] ?? s.color
1515
+ }), b = r(() => ({
1516
1516
  backgroundColor: s.backgroundColor
1517
1517
  }));
1518
1518
  return (c, u) => (l(), o("div", {
@@ -1538,21 +1538,21 @@ const nt = ["id", "open"], rt = {
1538
1538
  style: te($.value)
1539
1539
  }, null, 6),
1540
1540
  c.$slots.default ? (l(), o("div", Dt, [
1541
- Y(c.$slots, "default", {}, void 0, !0)
1541
+ N(c.$slots, "default", {}, void 0, !0)
1542
1542
  ])) : x("", !0)
1543
1543
  ], 4),
1544
1544
  a.showLabel && !a.indeterminate ? (l(), o("span", Vt, F(i.value), 1)) : a.showLabel && a.indeterminate ? (l(), o("span", Mt, F(a.indeterminateLabel), 1)) : x("", !0)
1545
1545
  ], 10, zt));
1546
1546
  }
1547
- }), _e = /* @__PURE__ */ Ce(qt, [["__scopeId", "data-v-4a7f0efa"]]);
1547
+ }), ea = /* @__PURE__ */ Ce(qt, [["__scopeId", "data-v-4a7f0efa"]]);
1548
1548
  let Rt = 0;
1549
- function je(a = "su") {
1549
+ function Ue(a = "su") {
1550
1550
  return `${a}-${++Rt}-${Date.now().toString(36)}`;
1551
1551
  }
1552
1552
  const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper" }, Ft = { class: "su-alert__content" }, Pt = {
1553
1553
  key: 2,
1554
1554
  class: "su-alert__actions"
1555
- }, Et = ["aria-label"], Tt = /* @__PURE__ */ N({
1555
+ }, Et = ["aria-label"], Tt = /* @__PURE__ */ Y({
1556
1556
  __name: "Alert",
1557
1557
  props: {
1558
1558
  type: { default: "info" },
@@ -1566,23 +1566,23 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1566
1566
  },
1567
1567
  emits: ["dismiss"],
1568
1568
  setup(a, { expose: s, emit: t }) {
1569
- const e = a, i = t, r = Ie(), $ = `su-alert-title-${je("su-alert-title")}`, b = `su-alert-description-${je("su-alert-desc")}`, c = n(() => !!(e.title || r.title)), u = n(() => !!(e.description || r.description)), f = n(() => ({
1569
+ const e = a, i = t, n = Ie(), $ = `su-alert-title-${Ue("su-alert-title")}`, b = `su-alert-description-${Ue("su-alert-desc")}`, c = r(() => !!(e.title || n.title)), u = r(() => !!(e.description || n.description)), f = r(() => ({
1570
1570
  success: Ee,
1571
1571
  warning: lt,
1572
1572
  error: He,
1573
- info: Oe,
1574
- neutral: Oe
1575
- })[e.type]), y = n(() => [
1573
+ info: je,
1574
+ neutral: je
1575
+ })[e.type]), y = r(() => [
1576
1576
  "su-alert",
1577
1577
  `su-alert--${e.type}`,
1578
1578
  `su-alert--${e.size}`,
1579
1579
  {
1580
1580
  "su-alert--dismissible": e.dismissible
1581
1581
  }
1582
- ]), w = n(() => [
1582
+ ]), w = r(() => [
1583
1583
  "su-alert__icon",
1584
1584
  `su-alert__icon--${e.type}`
1585
- ]), k = n(() => [
1585
+ ]), k = r(() => [
1586
1586
  "su-alert__dismiss-button",
1587
1587
  `su-alert__dismiss-button--${e.type}`
1588
1588
  ]), R = () => {
@@ -1610,7 +1610,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1610
1610
  id: $,
1611
1611
  class: "su-alert__title"
1612
1612
  }, [
1613
- Y(V.$slots, "title", {}, () => [
1613
+ N(V.$slots, "title", {}, () => [
1614
1614
  xe(F(a.title), 1)
1615
1615
  ])
1616
1616
  ])) : x("", !0),
@@ -1619,12 +1619,12 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1619
1619
  id: b,
1620
1620
  class: "su-alert__description"
1621
1621
  }, [
1622
- Y(V.$slots, "description", {}, () => [
1622
+ N(V.$slots, "description", {}, () => [
1623
1623
  xe(F(a.description), 1)
1624
1624
  ])
1625
1625
  ])) : x("", !0),
1626
1626
  V.$slots.default ? (l(), o("div", Pt, [
1627
- Y(V.$slots, "default")
1627
+ N(V.$slots, "default")
1628
1628
  ])) : x("", !0)
1629
1629
  ]),
1630
1630
  a.dismissible ? (l(), o("button", {
@@ -1641,7 +1641,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1641
1641
  }), Ht = {
1642
1642
  key: 1,
1643
1643
  class: "su-link__content"
1644
- }, ea = /* @__PURE__ */ N({
1644
+ }, Ke = /* @__PURE__ */ Y({
1645
1645
  __name: "Link",
1646
1646
  props: {
1647
1647
  href: {},
@@ -1668,23 +1668,23 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1668
1668
  },
1669
1669
  emits: ["click", "focus", "blur", "keydown"],
1670
1670
  setup(a, { emit: s }) {
1671
- const t = a, e = s, i = n(() => t.to !== void 0), r = n(() => (console.log("isExternalLink:", t.external, t.href, t.target), t.external || t.href && (t.href.startsWith("http") || t.href.startsWith("//") || t.target === "_blank"))), $ = n(() => {
1671
+ const t = a, e = s, i = r(() => t.to !== void 0), n = r(() => (console.log("isExternalLink:", t.external, t.href, t.target), t.external || t.href && (t.href.startsWith("http") || t.href.startsWith("//") || t.target === "_blank"))), $ = r(() => {
1672
1672
  const k = {};
1673
- return i.value || (k.href = t.href, r.value ? (k.target = t.target || "_blank", k.rel = t.rel || "noopener noreferrer") : (t.target && (k.target = t.target), t.rel && (k.rel = t.rel))), t.ariaLabel && (k["aria-label"] = t.ariaLabel), t.ariaDescribedBy && (k["aria-describedby"] = t.ariaDescribedBy), t.role && (k.role = t.role), t.disabled ? (k["aria-disabled"] = "true", k.tabindex = -1) : k.tabindex = t.tabIndex, k;
1674
- }), b = n(() => [
1673
+ return i.value || (k.href = t.href, n.value ? (k.target = t.target || "_blank", k.rel = t.rel || "noopener noreferrer") : (t.target && (k.target = t.target), t.rel && (k.rel = t.rel))), t.ariaLabel && (k["aria-label"] = t.ariaLabel), t.ariaDescribedBy && (k["aria-describedby"] = t.ariaDescribedBy), t.role && (k.role = t.role), t.disabled ? (k["aria-disabled"] = "true", k.tabindex = -1) : k.tabindex = t.tabIndex, k;
1674
+ }), b = r(() => [
1675
1675
  "su-link",
1676
1676
  `su-link--${t.variant}`,
1677
1677
  `su-link--${t.size}`,
1678
1678
  `su-link--underline-${t.underline}`,
1679
1679
  {
1680
1680
  "su-link--disabled": t.disabled,
1681
- "su-link--external": r.value,
1681
+ "su-link--external": n.value,
1682
1682
  "su-link--block": t.block,
1683
1683
  "su-link--icon-only": t.icon && t.iconDisplay === "only",
1684
1684
  "su-link--icon-top": t.icon && t.iconDisplay === "top",
1685
1685
  "su-link--icon-right": t.icon && t.iconDisplay === "right"
1686
1686
  }
1687
- ]), c = n(() => !(t.icon && t.iconDisplay === "only")), u = (k) => {
1687
+ ]), c = r(() => !(t.icon && t.iconDisplay === "only")), u = (k) => {
1688
1688
  if (t.disabled) {
1689
1689
  k.preventDefault();
1690
1690
  return;
@@ -1714,9 +1714,9 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1714
1714
  "aria-hidden": "true"
1715
1715
  })) : x("", !0),
1716
1716
  c.value ? (l(), o("span", Ht, [
1717
- Y(k.$slots, "default")
1717
+ N(k.$slots, "default")
1718
1718
  ])) : x("", !0),
1719
- r.value && c.value ? (l(), U(oe(tt), {
1719
+ n.value && c.value ? (l(), U(oe(tt), {
1720
1720
  key: 2,
1721
1721
  class: "su-link__icon",
1722
1722
  "aria-hidden": "true"
@@ -1744,7 +1744,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1744
1744
  viewBox: "0 0 20 20",
1745
1745
  fill: "currentColor",
1746
1746
  "aria-hidden": "true"
1747
- }, Qt = /* @__PURE__ */ N({
1747
+ }, Qt = /* @__PURE__ */ Y({
1748
1748
  __name: "Dropdown",
1749
1749
  props: {
1750
1750
  options: { default: () => [] },
@@ -1771,14 +1771,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1771
1771
  },
1772
1772
  emits: ["select", "open", "close", "focus", "blur"],
1773
1773
  setup(a, { expose: s, emit: t }) {
1774
- const e = a, i = t, r = de(), $ = T(), b = T(), c = T(), u = T(null), f = T(!1), y = T(-1), w = "dropdown-" + he(), k = n(() => r.id || w), R = n(() => `${k.value}-menu`), V = n(() => e.options.filter((W) => !W.separator && !W.disabled)), p = n(() => [
1774
+ const e = a, i = t, n = de(), $ = T(), b = T(), c = T(), u = T(null), f = T(!1), y = T(-1), w = "dropdown-" + he(), k = r(() => n.id || w), R = r(() => `${k.value}-menu`), V = r(() => e.options.filter((W) => !W.separator && !W.disabled)), p = r(() => [
1775
1775
  "su-dropdown-container",
1776
1776
  `su-dropdown-container--${e.placement}`,
1777
1777
  {
1778
1778
  "su-dropdown-container--open": f.value,
1779
1779
  "su-dropdown-container--disabled": e.disabled
1780
1780
  }
1781
- ]), h = n(() => [
1781
+ ]), h = r(() => [
1782
1782
  "su-dropdown-trigger",
1783
1783
  `su-dropdown-trigger--${e.size}`,
1784
1784
  `su-dropdown-trigger--${e.variant}`,
@@ -1789,13 +1789,13 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1789
1789
  "su-dropdown-trigger--icon-only": e.icon && e.iconDisplay === "only",
1790
1790
  "su-dropdown-trigger--icon-right": e.icon && e.iconDisplay === "right"
1791
1791
  }
1792
- ]), M = n(() => [
1792
+ ]), M = r(() => [
1793
1793
  "su-dropdown-menu",
1794
1794
  `su-dropdown-menu--${e.placement}`,
1795
1795
  {
1796
1796
  "su-dropdown-menu--open": f.value
1797
1797
  }
1798
- ]), D = n(() => {
1798
+ ]), D = r(() => {
1799
1799
  const W = {
1800
1800
  "aria-haspopup": "menu",
1801
1801
  "aria-expanded": f.value,
@@ -1989,7 +1989,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
1989
1989
  })
1990
1990
  ], 34));
1991
1991
  }
1992
- }), Jt = /* @__PURE__ */ N({
1992
+ }), Jt = /* @__PURE__ */ Y({
1993
1993
  __name: "LinkGroup",
1994
1994
  props: {
1995
1995
  gap: { default: "md" },
@@ -2009,7 +2009,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2009
2009
  tabIndex: {}
2010
2010
  },
2011
2011
  setup(a) {
2012
- const s = a, t = Ie(), e = n(() => [
2012
+ const s = a, t = Ie(), e = r(() => [
2013
2013
  "su-links-group",
2014
2014
  `su-links-group--gap-${s.gap}`,
2015
2015
  `su-links-group--${s.direction}`,
@@ -2030,12 +2030,12 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2030
2030
  default:
2031
2031
  return "";
2032
2032
  }
2033
- }, r = n(() => {
2033
+ }, n = r(() => {
2034
2034
  var f;
2035
2035
  if (!(t != null && t.default)) return [];
2036
2036
  const c = ((f = t == null ? void 0 : t.default) == null ? void 0 : f.call(t)) ?? [], u = [];
2037
2037
  for (const y of c)
2038
- if (y.type === ea) {
2038
+ if (y.type === Ke) {
2039
2039
  const w = { ...y.props };
2040
2040
  if (s.size && (w.size = s.size), s.variant && (w.variant = s.variant), s.underline && (w.underline = s.underline), s.gap === "none") {
2041
2041
  const k = w.class || "";
@@ -2048,18 +2048,18 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2048
2048
  console.warn("LinkGroup expects only Link components as children. Found:", y.type);
2049
2049
  }
2050
2050
  return u;
2051
- }), $ = n(() => {
2051
+ }), $ = r(() => {
2052
2052
  if (s.separator === "none" || s.direction === "vertical")
2053
- return r.value;
2053
+ return n.value;
2054
2054
  const c = [], u = i(s.separator);
2055
- return r.value.forEach((f, y) => {
2056
- c.push(f), y < r.value.length - 1 && c.push(De("span", {
2055
+ return n.value.forEach((f, y) => {
2056
+ c.push(f), y < n.value.length - 1 && c.push(De("span", {
2057
2057
  key: `separator-${y}`,
2058
2058
  class: "su-links-group-separator",
2059
2059
  "aria-hidden": "true"
2060
2060
  }, u));
2061
2061
  }), c;
2062
- }), b = n(() => {
2062
+ }), b = r(() => {
2063
2063
  const c = {};
2064
2064
  return s.ariaLabel && (c["aria-label"] = s.ariaLabel), s.ariaDescribedBy && (c["aria-describedby"] = s.ariaDescribedBy), s.role && (c.role = s.role), c;
2065
2065
  });
@@ -2067,7 +2067,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2067
2067
  (l(!0), o(_, null, ue($.value, (f, y) => (l(), U(ee(f), { key: y }))), 128))
2068
2068
  ], 16));
2069
2069
  }
2070
- }), _t = /* @__PURE__ */ N({
2070
+ }), _t = /* @__PURE__ */ Y({
2071
2071
  __name: "ButtonGroup",
2072
2072
  props: {
2073
2073
  gap: { default: "md" },
@@ -2084,13 +2084,13 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2084
2084
  tabIndex: {}
2085
2085
  },
2086
2086
  setup(a) {
2087
- const s = a, t = Ie(), e = n(() => [
2087
+ const s = a, t = Ie(), e = r(() => [
2088
2088
  "su-buttons-group",
2089
2089
  `su-buttons-group--gap-${s.gap}`,
2090
2090
  {
2091
2091
  "su-buttons-group--connected": s.gap === "none"
2092
2092
  }
2093
- ]), i = n(() => {
2093
+ ]), i = r(() => {
2094
2094
  var c;
2095
2095
  if (!(t != null && t.default)) return [];
2096
2096
  const $ = ((c = t == null ? void 0 : t.default) == null ? void 0 : c.call(t)) ?? [], b = [];
@@ -2108,15 +2108,15 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2108
2108
  console.warn("ButtonGroup expects only Button components as children. Found:", u.type);
2109
2109
  }
2110
2110
  return b;
2111
- }), r = n(() => {
2111
+ }), n = r(() => {
2112
2112
  const $ = {};
2113
2113
  return s.ariaLabel && ($["aria-label"] = s.ariaLabel), s.ariaDescribedBy && ($["aria-describedby"] = s.ariaDescribedBy), s.role && ($.role = s.role), $;
2114
2114
  });
2115
- return ($, b) => (l(), o("div", Q({ class: e.value }, r.value), [
2115
+ return ($, b) => (l(), o("div", Q({ class: e.value }, n.value), [
2116
2116
  (l(!0), o(_, null, ue(i.value, (c, u) => (l(), U(ee(c), { key: u }))), 128))
2117
2117
  ], 16));
2118
2118
  }
2119
- }), el = { class: "su-float-button-wrapper" }, al = ["aria-label"], tl = ["id"], ll = /* @__PURE__ */ N({
2119
+ }), el = { class: "su-float-button-wrapper" }, al = ["aria-label"], tl = ["id"], ll = /* @__PURE__ */ Y({
2120
2120
  __name: "FloatButton",
2121
2121
  props: {
2122
2122
  position: { default: "right" },
@@ -2147,33 +2147,33 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2147
2147
  },
2148
2148
  emits: ["click", "focus", "blur"],
2149
2149
  setup(a, { expose: s, emit: t }) {
2150
- const e = a, i = t, r = Ie(), $ = T(), b = T(!0), c = T(!1), u = T(0), f = n(() => {
2150
+ const e = a, i = t, n = Ie(), $ = T(), b = T(!0), c = T(!1), u = T(0), f = r(() => {
2151
2151
  const L = {
2152
2152
  position: "fixed",
2153
2153
  zIndex: e.zIndex.toString()
2154
2154
  };
2155
2155
  return e.position === "right" ? L.right = `${e.offset.x || 24}px` : L.left = `${e.offset.x || 24}px`, L.bottom = `${e.offset.y || 24}px`, L;
2156
- }), y = n(() => [
2156
+ }), y = r(() => [
2157
2157
  "su-float-button-container",
2158
2158
  `su-float-button-container--${e.position}`,
2159
2159
  `su-float-button-container--${e.size}`,
2160
2160
  {
2161
2161
  "su-float-button-container--hidden": !b.value,
2162
- "su-float-button-container--has-slot": r.default,
2162
+ "su-float-button-container--has-slot": n.default,
2163
2163
  "su-float-button-container--disabled": e.disabled
2164
2164
  }
2165
- ]), w = n(() => [
2165
+ ]), w = r(() => [
2166
2166
  "su-float-button",
2167
2167
  `su-float-button--${e.size}`,
2168
2168
  {
2169
2169
  "su-float-button--has-badge": e.badge,
2170
2170
  "su-float-button--has-tooltip": e.showTooltip && e.label
2171
2171
  }
2172
- ]), k = n(() => [
2172
+ ]), k = r(() => [
2173
2173
  "su-float-button-tooltip",
2174
2174
  `su-float-button-tooltip--${e.tooltipPosition}`,
2175
2175
  `su-float-button-tooltip--in-${e.position}`
2176
- ]), R = n(() => {
2176
+ ]), R = r(() => {
2177
2177
  if (!e.href) return {};
2178
2178
  const L = {
2179
2179
  href: e.href
@@ -2212,7 +2212,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2212
2212
  key: 0,
2213
2213
  class: K(["su-float-button-slot", `su-float-button-slot--${a.position}`])
2214
2214
  }, [
2215
- Y(L.$slots, "default")
2215
+ N(L.$slots, "default")
2216
2216
  ], 2)) : x("", !0),
2217
2217
  d("div", el, [
2218
2218
  a.badge ? (l(), o("div", {
@@ -2229,7 +2229,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2229
2229
  xe(F(a.label) + " ", 1),
2230
2230
  P[0] || (P[0] = d("div", { class: "su-float-button-tooltip-arrow" }, null, -1))
2231
2231
  ], 10, tl)),
2232
- (l(), U(ee(a.href ? ea : Me), Q({
2232
+ (l(), U(ee(a.href ? Ke : Me), Q({
2233
2233
  ref_key: "floatButtonRef",
2234
2234
  ref: $,
2235
2235
  class: w.value,
@@ -2258,7 +2258,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2258
2258
  }, il = ["tabindex", "onKeydown"], ol = ["tabindex", "onKeydown"], nl = ["id", "type", "value", "disabled", "readonly", "required"], rl = {
2259
2259
  key: 1,
2260
2260
  class: "su-input-suffix"
2261
- }, ul = ["tabindex", "onKeydown"], dl = ["tabindex", "onKeydown"], aa = /* @__PURE__ */ N({
2261
+ }, ul = ["tabindex", "onKeydown"], dl = ["tabindex", "onKeydown"], aa = /* @__PURE__ */ Y({
2262
2262
  inheritAttrs: !1,
2263
2263
  __name: "Input",
2264
2264
  props: /* @__PURE__ */ J({
@@ -2296,7 +2296,9 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2296
2296
  }),
2297
2297
  emits: /* @__PURE__ */ J(["input", "change", "focus", "blur", "keydown", "keyup", "prefix-click", "prefix-icon-click", "suffix-click", "suffix-icon-click"], ["update:modelValue"]),
2298
2298
  setup(a, { expose: s, emit: t }) {
2299
- const e = a, i = t, r = ye(a, "modelValue"), $ = de(), b = n(() => $.id || void 0), c = n(() => typeof $.onPrefixClick == "function"), u = n(() => typeof $.onPrefixIconClick == "function"), f = n(() => typeof $.onSuffixClick == "function"), y = n(() => typeof $.onSuffixIconClick == "function"), w = n(() => [
2299
+ const e = a;
2300
+ console.log("props", e);
2301
+ const i = t, n = ye(a, "modelValue"), $ = de(), b = r(() => $.id || void 0), c = r(() => typeof $.onPrefixClick == "function"), u = r(() => typeof $.onPrefixIconClick == "function"), f = r(() => typeof $.onSuffixClick == "function"), y = r(() => typeof $.onSuffixIconClick == "function"), w = r(() => [
2300
2302
  "su-input-container",
2301
2303
  `su-input-container--${e.size}`,
2302
2304
  `su-input-container--${e.state}`,
@@ -2306,7 +2308,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2306
2308
  "su-input-container--has-prefix": e.prefix || e.prefixIcon,
2307
2309
  "su-input-container--has-suffix": e.suffix || e.suffixIcon
2308
2310
  }
2309
- ]), k = n(() => [
2311
+ ]), k = r(() => [
2310
2312
  "su-input",
2311
2313
  `su-input--${e.size}`,
2312
2314
  `su-input--${e.state}`,
@@ -2315,19 +2317,19 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2315
2317
  "su-input--disabled": e.disabled,
2316
2318
  "su-input--readonly": e.readonly
2317
2319
  }
2318
- ]), R = n(() => {
2320
+ ]), R = r(() => {
2319
2321
  const E = {};
2320
2322
  return e.ariaLabel && (E["aria-label"] = e.ariaLabel), e.ariaInvalid !== void 0 && (E["aria-invalid"] = e.ariaInvalid), (e.required || e.ariaRequired) && (E["aria-required"] = "true"), e.state === "error" && (E["aria-invalid"] = "true"), E;
2321
- }), V = n(() => {
2323
+ }), V = r(() => {
2322
2324
  const E = {};
2323
2325
  return e.autocomplete && (E.autocomplete = e.autocomplete), e.min !== void 0 && (E.min = e.min), e.max !== void 0 && (E.max = e.max), e.step !== void 0 && (E.step = e.step), e.minLength !== void 0 && (E.minlength = e.minLength), e.maxLength !== void 0 && (E.maxlength = e.maxLength), e.pattern && (E.pattern = e.pattern), e.placeholder && (E.placeholder = e.placeholder), E;
2324
- }), p = n(
2326
+ }), p = r(
2325
2327
  () => Object.fromEntries(
2326
2328
  Object.entries($).filter(([E]) => E.startsWith("data-"))
2327
2329
  )
2328
2330
  ), h = (E) => {
2329
2331
  const ae = E.target;
2330
- r.value = e.type === "number" ? Number(ae.value) : ae.value, i("input", E);
2332
+ n.value = e.type === "number" ? Number(ae.value) : ae.value, i("input", E);
2331
2333
  }, M = (E) => i("change", E), D = (E) => i("focus", E), v = (E) => i("blur", E), B = (E) => i("keydown", E), L = (E) => i("keyup", E), P = (E) => {
2332
2334
  e.disabled || e.readonly || i("prefix-click", E);
2333
2335
  }, le = (E) => {
@@ -2347,7 +2349,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2347
2349
  class: K(w.value)
2348
2350
  }, [
2349
2351
  a.prefix || a.prefixIcon || E.$slots.prefix ? (l(), o("div", sl, [
2350
- E.$slots.prefix ? Y(E.$slots, "prefix", {
2352
+ E.$slots.prefix ? N(E.$slots, "prefix", {
2351
2353
  key: 0,
2352
2354
  class: "su-input-prefix__slot"
2353
2355
  }) : x("", !0),
@@ -2383,7 +2385,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2383
2385
  ref: se,
2384
2386
  class: k.value,
2385
2387
  type: a.type,
2386
- value: r.value,
2388
+ value: n.value,
2387
2389
  disabled: a.disabled,
2388
2390
  readonly: a.readonly,
2389
2391
  required: a.required
@@ -2421,7 +2423,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2421
2423
  "aria-hidden": "true"
2422
2424
  }))
2423
2425
  ], 42, dl)) : x("", !0),
2424
- E.$slots.suffix ? Y(E.$slots, "suffix", {
2426
+ E.$slots.suffix ? N(E.$slots, "suffix", {
2425
2427
  key: 2,
2426
2428
  class: "su-input-suffix__slot"
2427
2429
  }) : x("", !0)
@@ -2431,7 +2433,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2431
2433
  }), cl = ["id", "value", "placeholder", "disabled", "readonly", "required", "rows"], fl = {
2432
2434
  key: 0,
2433
2435
  class: "su-textarea-footer"
2434
- }, vl = ["id", "aria-live"], ml = { class: "sr-only" }, ta = /* @__PURE__ */ N({
2436
+ }, vl = ["id", "aria-live"], ml = { class: "sr-only" }, ta = /* @__PURE__ */ Y({
2435
2437
  inheritAttrs: !1,
2436
2438
  __name: "Textarea",
2437
2439
  props: /* @__PURE__ */ J({
@@ -2466,7 +2468,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2466
2468
  }),
2467
2469
  emits: /* @__PURE__ */ J(["input", "change", "focus", "blur", "keydown", "keyup"], ["update:modelValue"]),
2468
2470
  setup(a, { expose: s, emit: t }) {
2469
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = T(), c = n(() => $.id || void 0), u = n(() => i.value || ""), f = n(() => u.value.length), y = n(() => e.maxLength ? e.maxLength - f.value : null), w = n(() => e.maxLength ? y.value !== null && y.value <= e.maxLength * 0.1 : !1), k = n(() => e.maxLength ? y.value !== null && y.value < 0 : !1), R = n(() => [
2471
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = T(), c = r(() => $.id || void 0), u = r(() => i.value || ""), f = r(() => u.value.length), y = r(() => e.maxLength ? e.maxLength - f.value : null), w = r(() => e.maxLength ? y.value !== null && y.value <= e.maxLength * 0.1 : !1), k = r(() => e.maxLength ? y.value !== null && y.value < 0 : !1), R = r(() => [
2470
2472
  "su-textarea-container",
2471
2473
  `su-textarea-container--${e.size}`,
2472
2474
  `su-textarea-container--${e.state}`,
@@ -2476,7 +2478,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2476
2478
  "su-textarea-container--auto-resize": e.autoResize,
2477
2479
  "su-textarea-container--over-limit": k.value
2478
2480
  }
2479
- ]), V = n(() => [
2481
+ ]), V = r(() => [
2480
2482
  "su-textarea",
2481
2483
  `su-textarea--${e.size}`,
2482
2484
  `su-textarea--${e.state}`,
@@ -2486,16 +2488,16 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2486
2488
  "su-textarea--auto-resize": e.autoResize,
2487
2489
  "su-textarea--over-limit": k.value
2488
2490
  }
2489
- ]), p = n(() => [
2491
+ ]), p = r(() => [
2490
2492
  "su-textarea-counter",
2491
2493
  {
2492
2494
  "su-textarea-counter--near-limit": w.value,
2493
2495
  "su-textarea-counter--over-limit": k.value
2494
2496
  }
2495
- ]), h = n(() => {
2497
+ ]), h = r(() => {
2496
2498
  const H = {};
2497
2499
  return e.ariaLabel && (H["aria-label"] = e.ariaLabel), e.ariaInvalid !== void 0 && (H["aria-invalid"] = e.ariaInvalid), e.ariaRequired !== void 0 && (H["aria-required"] = e.ariaRequired), e.required && (H["aria-required"] = "true"), (e.state === "error" || k.value) && (H["aria-invalid"] = "true"), H;
2498
- }), M = n(() => {
2500
+ }), M = r(() => {
2499
2501
  const H = {};
2500
2502
  return e.autocomplete && (H.autocomplete = e.autocomplete), e.maxLength && (H.maxlength = e.maxLength), e.spellcheck !== void 0 && (H.spellcheck = e.spellcheck), e.wrap && (H.wrap = e.wrap), H;
2501
2503
  }), D = async () => {
@@ -2507,17 +2509,17 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2507
2509
  H.style.height = `${fe}px`;
2508
2510
  }, v = (H) => {
2509
2511
  const X = H.target;
2510
- i.value = X.value, r("input", H), e.autoResize && D();
2512
+ i.value = X.value, n("input", H), e.autoResize && D();
2511
2513
  }, B = (H) => {
2512
- r("change", H);
2514
+ n("change", H);
2513
2515
  }, L = (H) => {
2514
- r("focus", H);
2516
+ n("focus", H);
2515
2517
  }, P = (H) => {
2516
- r("blur", H);
2518
+ n("blur", H);
2517
2519
  }, le = (H) => {
2518
- r("keydown", H);
2520
+ n("keydown", H);
2519
2521
  }, ne = (H) => {
2520
- r("keyup", H);
2522
+ n("keyup", H);
2521
2523
  };
2522
2524
  return s({
2523
2525
  focus: () => {
@@ -2570,7 +2572,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2570
2572
  ])) : x("", !0)
2571
2573
  ]));
2572
2574
  }
2573
- }), bl = ["dir"], hl = ["id", "tabindex"], yl = { class: "su-select-content" }, pl = {
2575
+ }), bl = { class: "su-select" }, hl = ["id", "tabindex"], yl = { class: "su-select-content" }, pl = {
2574
2576
  key: 0,
2575
2577
  class: "su-select-tags"
2576
2578
  }, gl = { class: "su-select-tag-label" }, kl = ["aria-label", "onClick"], xl = {
@@ -2594,7 +2596,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2594
2596
  }, Fl = {
2595
2597
  key: 1,
2596
2598
  class: "su-select-no-options"
2597
- }, la = /* @__PURE__ */ N({
2599
+ }, la = /* @__PURE__ */ Y({
2598
2600
  inheritAttrs: !1,
2599
2601
  __name: "SelectBox",
2600
2602
  props: /* @__PURE__ */ J({
@@ -2614,7 +2616,6 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2614
2616
  noResultsText: { default: "Aucun résultat trouvé" },
2615
2617
  maxHeight: { default: "200px" },
2616
2618
  textAlign: { default: "left" },
2617
- dir: { default: "auto" },
2618
2619
  ariaInvalid: { type: Boolean },
2619
2620
  ariaRequired: { type: Boolean },
2620
2621
  maxSelectedItems: { default: void 0 },
@@ -2633,29 +2634,29 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2633
2634
  }),
2634
2635
  emits: /* @__PURE__ */ J(["change", "open", "close", "search", "focus", "blur"], ["update:modelValue"]),
2635
2636
  setup(a, { expose: s, emit: t }) {
2636
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = "selectbox-" + he(), c = T(), u = T(), f = T(), y = T(), w = T(!1), k = T(""), R = T(-1), V = T(null), p = n(() => $.id || b), h = n(() => `${p.value}-listbox`), M = n(() => e.groups && e.groups.length > 0 ? e.groups.flatMap(
2637
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = "selectbox-" + he(), c = T(), u = T(), f = T(), y = T(), w = T(!1), k = T(""), R = T(-1), V = T(null), p = r(() => $.id || b), h = r(() => `${p.value}-listbox`), M = r(() => e.groups && e.groups.length > 0 ? e.groups.flatMap(
2637
2638
  (A) => A.options.map((m) => ({ ...m, group: A.label }))
2638
- ) : e.options || []), D = n(() => {
2639
+ ) : e.options || []), D = r(() => {
2639
2640
  if (!e.searchable || !k.value)
2640
2641
  return M.value;
2641
2642
  const A = k.value.toLowerCase();
2642
2643
  return M.value.filter(
2643
2644
  (m) => m.label.toLowerCase().includes(A) || m.description && m.description.toLowerCase().includes(A)
2644
2645
  );
2645
- }), v = n(() => {
2646
+ }), v = r(() => {
2646
2647
  const A = {};
2647
2648
  return D.value.forEach((m) => {
2648
2649
  const g = m.group || "";
2649
2650
  A[g] || (A[g] = []), A[g].push(m);
2650
2651
  }), A;
2651
- }), B = n({
2652
+ }), B = r({
2652
2653
  get() {
2653
2654
  return e.multiple ? Array.isArray(i.value) ? i.value : i.value !== void 0 && i.value !== null ? [i.value] : [] : i.value;
2654
2655
  },
2655
2656
  set(A) {
2656
- i.value = A, r("change", A);
2657
+ i.value = A, n("change", A);
2657
2658
  }
2658
- }), L = n(() => {
2659
+ }), L = r(() => {
2659
2660
  if (e.multiple) {
2660
2661
  const A = B.value;
2661
2662
  return A ? M.value.filter((m) => A.includes(m.value)) : [];
@@ -2663,33 +2664,32 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2663
2664
  const A = B.value;
2664
2665
  return A != null ? M.value.filter((m) => m.value === A) : [];
2665
2666
  }
2666
- }), P = n(() => {
2667
+ }), P = r(() => {
2667
2668
  var A;
2668
2669
  return L.value.length === 0 ? e.placeholder : e.multiple ? L.value.length === 1 ? L.value[0].label : `${L.value.length} éléments sélectionnés` : ((A = L.value[0]) == null ? void 0 : A.label) || e.placeholder;
2669
- }), le = n(() => [
2670
- "su-select-container",
2671
- `su-select-container--${e.size}`,
2672
- `su-select-container--${e.state}`,
2670
+ }), le = r(() => [
2671
+ "su-select__container",
2672
+ `su-select__container--${e.size}`,
2673
+ `su-select__container--${e.state}`,
2673
2674
  {
2674
- "su-select-container--disabled": e.disabled,
2675
- "su-select-container--readonly": e.readonly,
2676
- "su-select-container--open": w.value,
2677
- "su-select-container--multiple": e.multiple,
2678
- "su-select-container--rtl": e.dir === "rtl"
2675
+ "su-select__container--disabled": e.disabled,
2676
+ "su-select__container--readonly": e.readonly,
2677
+ "su-select__container--open": w.value,
2678
+ "su-select__container--multiple": e.multiple
2679
2679
  }
2680
- ]), ne = n(() => [
2681
- "su-select-trigger",
2682
- `su-select-trigger--${e.size}`,
2683
- `su-select-trigger--${e.state}`,
2684
- `su-select-trigger--align-${e.textAlign}`,
2680
+ ]), ne = r(() => [
2681
+ "su-select__trigger",
2682
+ `su-select__trigger--${e.size}`,
2683
+ `su-select__trigger--${e.state}`,
2684
+ `su-select__trigger--align-${e.textAlign}`,
2685
2685
  {
2686
- "su-select-trigger--disabled": e.disabled,
2687
- "su-select-trigger--readonly": e.readonly,
2688
- "su-select-trigger--open": w.value,
2689
- "su-select-trigger--has-value": L.value.length > 0,
2690
- "su-select-trigger--placeholder": L.value.length === 0
2686
+ "su-select__trigger--disabled": e.disabled,
2687
+ "su-select__trigger--readonly": e.readonly,
2688
+ "su-select__trigger--open": w.value,
2689
+ "su-select__trigger--has-value": L.value.length > 0,
2690
+ "su-select__trigger--placeholder": L.value.length === 0
2691
2691
  }
2692
- ]), ie = n(() => {
2692
+ ]), ie = r(() => {
2693
2693
  const A = {
2694
2694
  "aria-haspopup": "listbox",
2695
2695
  "aria-expanded": w.value,
@@ -2700,9 +2700,9 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2700
2700
  }), se = () => {
2701
2701
  e.disabled || e.readonly || (w.value ? X() : H());
2702
2702
  }, H = async () => {
2703
- e.disabled || e.readonly || (w.value = !0, k.value = "", R.value = -1, r("open"), await ze(), e.searchable && y.value && y.value.focus(), f.value && (V.value = qe(f.value)));
2703
+ e.disabled || e.readonly || (w.value = !0, k.value = "", R.value = -1, n("open"), await ze(), e.searchable && y.value && y.value.focus(), f.value && (V.value = qe(f.value)));
2704
2704
  }, X = () => {
2705
- w.value = !1, R.value = -1, V.value && (V.value(), V.value = null), r("close"), u.value && u.value.focus();
2705
+ w.value = !1, R.value = -1, V.value && (V.value(), V.value = null), n("close"), u.value && u.value.focus();
2706
2706
  }, E = (A) => {
2707
2707
  if (A.disabled) return;
2708
2708
  let m;
@@ -2733,7 +2733,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2733
2733
  }
2734
2734
  }, W = (A) => {
2735
2735
  const m = A.target;
2736
- k.value = m.value, R.value = -1, r("search", k.value);
2736
+ k.value = m.value, R.value = -1, n("search", k.value);
2737
2737
  }, ve = (A) => {
2738
2738
  switch (A.key) {
2739
2739
  case "Enter":
@@ -2765,10 +2765,10 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2765
2765
  break;
2766
2766
  }
2767
2767
  }, z = (A) => {
2768
- r("focus", A);
2768
+ n("focus", A);
2769
2769
  }, C = (A) => {
2770
2770
  setTimeout(() => {
2771
- w.value && c.value && !c.value.contains(document.activeElement) && (X(), r("blur", A));
2771
+ w.value && c.value && !c.value.contains(document.activeElement) && (X(), n("blur", A));
2772
2772
  }, 0);
2773
2773
  }, S = (A) => {
2774
2774
  w.value && c.value && !c.value.contains(A.target) && X();
@@ -2794,10 +2794,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2794
2794
  R.value = -1;
2795
2795
  }), (A, m) => {
2796
2796
  var g;
2797
- return l(), o("div", {
2798
- class: "su-select-wrapper",
2799
- dir: a.dir
2800
- }, [
2797
+ return l(), o("div", bl, [
2801
2798
  d("div", {
2802
2799
  ref_key: "selectRef",
2803
2800
  ref: c,
@@ -2972,7 +2969,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2972
2969
  _: 1
2973
2970
  })
2974
2971
  ], 2)
2975
- ], 8, bl);
2972
+ ]);
2976
2973
  };
2977
2974
  }
2978
2975
  }), Pl = {
@@ -2984,7 +2981,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
2984
2981
  }, Ul = {
2985
2982
  key: 0,
2986
2983
  class: "su-radio-group-after"
2987
- }, sa = /* @__PURE__ */ N({
2984
+ }, sa = /* @__PURE__ */ Y({
2988
2985
  inheritAttrs: !1,
2989
2986
  __name: "RadioGroup",
2990
2987
  props: /* @__PURE__ */ J({
@@ -3015,7 +3012,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3015
3012
  }),
3016
3013
  emits: /* @__PURE__ */ J(["change", "focus", "blur"], ["update:modelValue"]),
3017
3014
  setup(a, { emit: s }) {
3018
- const t = a, e = ye(a, "modelValue"), i = s, r = de(), $ = "radio-group-" + he(), b = n(() => r.id || $), c = n(() => t.name || $), u = n(() => [
3015
+ const t = a, e = ye(a, "modelValue"), i = s, n = de(), $ = "radio-group-" + he(), b = r(() => n.id || $), c = r(() => t.name || $), u = r(() => [
3019
3016
  "su-radio-group",
3020
3017
  `su-radio-group--${t.size}`,
3021
3018
  `su-radio-group--${t.state}`,
@@ -3034,7 +3031,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3034
3031
  "su-radio-option--selected": e.value === V.value,
3035
3032
  "su-radio-option--disabled": V.disabled || t.disabled
3036
3033
  }
3037
- ], y = n(() => {
3034
+ ], y = r(() => {
3038
3035
  const V = {
3039
3036
  role: "radiogroup"
3040
3037
  };
@@ -3056,7 +3053,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3056
3053
  style: te({ maxHeight: a.maxHeight || void 0, overflowY: a.maxHeight ? "auto" : void 0 })
3057
3054
  }, [
3058
3055
  V.$slots.before ? (l(), o("div", Pl, [
3059
- Y(V.$slots, "before")
3056
+ N(V.$slots, "before")
3060
3057
  ])) : x("", !0),
3061
3058
  (l(!0), o(_, null, ue(a.options, (h) => (l(), o("label", {
3062
3059
  key: h.value,
@@ -3093,7 +3090,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3093
3090
  ], 10, El))), 128))
3094
3091
  ], 4),
3095
3092
  V.$slots.after ? (l(), o("div", Ul, [
3096
- Y(V.$slots, "after")
3093
+ N(V.$slots, "after")
3097
3094
  ])) : x("", !0)
3098
3095
  ], 16));
3099
3096
  }
@@ -3103,7 +3100,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3103
3100
  }, Zl = ["for"], Wl = ["id", "value", "checked", "disabled", "required", "onChange"], Nl = { class: "su-checkbox-content" }, Yl = { class: "su-checkbox-text" }, Xl = { class: "su-checkbox-label" }, Ql = {
3104
3101
  key: 0,
3105
3102
  class: "su-checkbox-group-after"
3106
- }, ia = /* @__PURE__ */ N({
3103
+ }, ia = /* @__PURE__ */ Y({
3107
3104
  inheritAttrs: !1,
3108
3105
  __name: "CheckboxGroup",
3109
3106
  props: /* @__PURE__ */ J({
@@ -3134,14 +3131,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3134
3131
  }),
3135
3132
  emits: /* @__PURE__ */ J(["change", "focus", "blur"], ["update:modelValue"]),
3136
3133
  setup(a, { emit: s }) {
3137
- const t = a, e = ye(a, "modelValue"), i = s, r = de(), $ = "checkbox-group-" + he(), b = n(() => r.id || $), c = n({
3134
+ const t = a, e = ye(a, "modelValue"), i = s, n = de(), $ = "checkbox-group-" + he(), b = r(() => n.id || $), c = r({
3138
3135
  get() {
3139
3136
  return Array.isArray(e.value) ? e.value : [];
3140
3137
  },
3141
3138
  set(h) {
3142
3139
  e.value = h, i("change", h);
3143
3140
  }
3144
- }), u = n(() => [
3141
+ }), u = r(() => [
3145
3142
  "su-checkbox-group",
3146
3143
  `su-checkbox-group--${t.size}`,
3147
3144
  `su-checkbox-group--${t.state}`,
@@ -3160,7 +3157,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3160
3157
  "su-checkbox-option--selected": c.value.includes(h.value),
3161
3158
  "su-checkbox-option--disabled": h.disabled || t.disabled
3162
3159
  }
3163
- ], y = n(() => {
3160
+ ], y = r(() => {
3164
3161
  const h = {
3165
3162
  role: "group"
3166
3163
  };
@@ -3194,7 +3191,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3194
3191
  style: te({ maxHeight: a.maxHeight || void 0, overflowY: a.maxHeight ? "auto" : void 0 })
3195
3192
  }, [
3196
3193
  h.$slots.before ? (l(), o("div", Gl, [
3197
- Y(h.$slots, "before")
3194
+ N(h.$slots, "before")
3198
3195
  ])) : x("", !0),
3199
3196
  (l(!0), o(_, null, ue(a.options, (D) => (l(), o("label", {
3200
3197
  key: D.value,
@@ -3238,7 +3235,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3238
3235
  ], 10, Zl))), 128))
3239
3236
  ], 4),
3240
3237
  h.$slots.after ? (l(), o("div", Ql, [
3241
- Y(h.$slots, "after")
3238
+ N(h.$slots, "after")
3242
3239
  ])) : x("", !0)
3243
3240
  ], 16));
3244
3241
  }
@@ -3256,7 +3253,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3256
3253
  key: 2,
3257
3254
  class: "su-file-upload-spinner",
3258
3255
  "aria-hidden": "true"
3259
- }, ps = ["aria-label", "onClick"], gs = ["aria-valuenow", "aria-label"], ks = /* @__PURE__ */ N({
3256
+ }, ps = ["aria-label", "onClick"], gs = ["aria-valuenow", "aria-label"], ks = /* @__PURE__ */ Y({
3260
3257
  __name: "FileUpload",
3261
3258
  props: /* @__PURE__ */ J({
3262
3259
  value: {},
@@ -3294,7 +3291,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3294
3291
  }),
3295
3292
  emits: /* @__PURE__ */ J(["change", "upload", "remove", "error", "focus", "blur"], ["update:modelValue"]),
3296
3293
  setup(a, { expose: s, emit: t }) {
3297
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = T(), c = T(), u = T(!1), f = T(0), y = n(() => $.id || void 0), w = n(() => Array.isArray(i.value) ? i.value : []), k = n(() => [
3294
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = T(), c = T(), u = T(!1), f = T(0), y = r(() => $.id || void 0), w = r(() => Array.isArray(i.value) ? i.value : []), k = r(() => [
3298
3295
  "su-file-upload-container",
3299
3296
  `su-file-upload-container--${e.variant}`,
3300
3297
  `su-file-upload-container--${e.size}`,
@@ -3305,7 +3302,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3305
3302
  "su-file-upload-container--dragging": u.value,
3306
3303
  "su-file-upload-container--has-files": w.value.length > 0
3307
3304
  }
3308
- ]), R = n(() => [
3305
+ ]), R = r(() => [
3309
3306
  "su-file-upload-dropzone",
3310
3307
  `su-file-upload-dropzone--${e.variant}`,
3311
3308
  `su-file-upload-dropzone--${e.size}`,
@@ -3315,7 +3312,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3315
3312
  "su-file-upload-dropzone--readonly": e.readonly,
3316
3313
  "su-file-upload-dropzone--dragging": u.value
3317
3314
  }
3318
- ]), V = n(() => {
3315
+ ]), V = r(() => {
3319
3316
  const z = {};
3320
3317
  if (e.ariaLabel && (z["aria-label"] = e.ariaLabel), e.ariaDescribedBy) {
3321
3318
  const C = [e.ariaDescribedBy].filter(Boolean).join(" ");
@@ -3326,7 +3323,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3326
3323
  if (z === 0) return "0 B";
3327
3324
  const C = 1024, S = ["B", "KB", "MB", "GB"], Z = Math.floor(Math.log(z) / Math.log(C));
3328
3325
  return parseFloat((z / Math.pow(C, Z)).toFixed(1)) + " " + S[Z];
3329
- }, h = (z) => z.type.startsWith("image/") ? Qe : Xe, M = (z) => `${z}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, D = (z) => z.type.startsWith("image/"), v = (z) => new Promise((C) => {
3326
+ }, h = (z) => z.type.startsWith("image/") ? Je : Qe, M = (z) => `${z}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, D = (z) => z.type.startsWith("image/"), v = (z) => new Promise((C) => {
3330
3327
  if (!D(z)) {
3331
3328
  C("");
3332
3329
  return;
@@ -3349,14 +3346,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3349
3346
  const C = Array.from(z), S = w.value;
3350
3347
  if (e.maxFiles && S.length + C.length > e.maxFiles) {
3351
3348
  const G = `Nombre maximum de fichiers dépassé (${e.maxFiles})`;
3352
- r("error", G), ce(G, "assertive");
3349
+ n("error", G), ce(G, "assertive");
3353
3350
  return;
3354
3351
  }
3355
3352
  const Z = [];
3356
3353
  for (const G of C) {
3357
3354
  const j = B(G);
3358
3355
  if (j) {
3359
- r("error", j, G), ce(j, "assertive");
3356
+ n("error", j, G), ce(j, "assertive");
3360
3357
  continue;
3361
3358
  }
3362
3359
  const A = {
@@ -3377,14 +3374,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3377
3374
  }
3378
3375
  if (Z.length > 0) {
3379
3376
  const G = e.multiple ? [...S, ...Z] : Z;
3380
- i.value = G, r("change", G);
3377
+ i.value = G, n("change", G);
3381
3378
  const j = Z.length === 1 ? `Fichier "${Z[0].name}" ajouté` : `${Z.length} fichiers ajoutés`;
3382
- ce(j), Z.forEach((A) => r("upload", A));
3379
+ ce(j), Z.forEach((A) => n("upload", A));
3383
3380
  }
3384
3381
  }, P = (z) => {
3385
3382
  if (e.disabled || e.readonly) return;
3386
3383
  const C = w.value.filter((S) => S.id !== z.id);
3387
- i.value = C, r("change", C), r("remove", z), ce(`Fichier "${z.name}" supprimé`);
3384
+ i.value = C, n("change", C), n("remove", z), ce(`Fichier "${z.name}" supprimé`);
3388
3385
  }, le = (z) => {
3389
3386
  const C = z.target;
3390
3387
  C.files && C.files.length > 0 && L(C.files), C.value = "";
@@ -3394,9 +3391,9 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3394
3391
  }, ie = (z) => {
3395
3392
  (z.key === "Enter" || z.key === " ") && (z.preventDefault(), ne());
3396
3393
  }, se = (z) => {
3397
- r("focus", z);
3394
+ n("focus", z);
3398
3395
  }, H = (z) => {
3399
- r("blur", z);
3396
+ n("blur", z);
3400
3397
  }, X = (z) => {
3401
3398
  z.preventDefault(), z.stopPropagation(), !(e.disabled || e.readonly) && (f.value++, f.value === 1 && (u.value = !0));
3402
3399
  }, E = (z) => {
@@ -3416,7 +3413,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3416
3413
  (z = c.value) == null || z.focus();
3417
3414
  },
3418
3415
  clear: () => {
3419
- e.disabled || e.readonly || (i.value = [], r("change", []), ce("Tous les fichiers ont été supprimés"));
3416
+ e.disabled || e.readonly || (i.value = [], n("change", []), ce("Tous les fichiers ont été supprimés"));
3420
3417
  },
3421
3418
  fileInputRef: b,
3422
3419
  dropZoneRef: c
@@ -3453,7 +3450,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3453
3450
  onDragover: ae,
3454
3451
  onDrop: fe
3455
3452
  }, [
3456
- re(oe(Ye), {
3453
+ re(oe(Xe), {
3457
3454
  class: K(["su-file-upload-icon", { "su-file-upload-icon--dragging": u.value }]),
3458
3455
  "aria-hidden": "true"
3459
3456
  }, null, 8, ["class"]),
@@ -3582,7 +3579,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3582
3579
  ], 8, ns)) : x("", !0)
3583
3580
  ], 2));
3584
3581
  }
3585
- }), xs = ["id", "tabindex"], $s = { class: "su-switch-track" }, ws = { class: "su-switch-thumb" }, Bs = { class: "su-switch-indicator" }, oa = /* @__PURE__ */ N({
3582
+ }), xs = ["id", "tabindex"], $s = { class: "su-switch-track" }, ws = { class: "su-switch-thumb" }, Bs = { class: "su-switch-indicator" }, oa = /* @__PURE__ */ Y({
3586
3583
  inheritAttrs: !1,
3587
3584
  __name: "Switch",
3588
3585
  props: /* @__PURE__ */ J({
@@ -3610,7 +3607,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3610
3607
  }),
3611
3608
  emits: /* @__PURE__ */ J(["change", "focus", "blur", "keydown"], ["update:modelValue"]),
3612
3609
  setup(a, { expose: s, emit: t }) {
3613
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = n(() => $.id || void 0), c = T(), u = n(() => [
3610
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = r(() => $.id || void 0), c = T(), u = r(() => [
3614
3611
  "su-switch-container",
3615
3612
  `su-switch-container--${e.size}`,
3616
3613
  `su-switch-container--${e.state}`,
@@ -3620,7 +3617,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3620
3617
  "su-switch-container--has-labels": e.leftLabel || e.rightLabel,
3621
3618
  "su-switch-container--centered": e.leftLabel && e.rightLabel
3622
3619
  }
3623
- ]), f = n(() => [
3620
+ ]), f = r(() => [
3624
3621
  "su-switch",
3625
3622
  `su-switch--${e.size}`,
3626
3623
  `su-switch--${e.state}`,
@@ -3629,7 +3626,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3629
3626
  "su-switch--disabled": e.disabled,
3630
3627
  "su-switch--readonly": e.readonly
3631
3628
  }
3632
- ]), y = n(() => {
3629
+ ]), y = r(() => {
3633
3630
  const p = {
3634
3631
  role: "switch",
3635
3632
  "aria-checked": i.value
@@ -3638,10 +3635,10 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3638
3635
  }), w = () => {
3639
3636
  if (e.disabled || e.readonly) return;
3640
3637
  const p = !i.value;
3641
- i.value = p, r("change", p);
3638
+ i.value = p, n("change", p);
3642
3639
  }, k = (p) => {
3643
- ["Enter", " "].includes(p.key) && (p.preventDefault(), w()), r("keydown", p);
3644
- }, R = (p) => r("focus", p), V = (p) => r("blur", p);
3640
+ ["Enter", " "].includes(p.key) && (p.preventDefault(), w()), n("keydown", p);
3641
+ }, R = (p) => n("focus", p), V = (p) => n("blur", p);
3645
3642
  return s({
3646
3643
  switchRef: c,
3647
3644
  handleToggle: w
@@ -3711,7 +3708,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3711
3708
  }, Ps = { class: "su-slider-mark-label" }, Es = ["id", "tabindex"], Ts = ["id", "tabindex"], Hs = {
3712
3709
  key: 2,
3713
3710
  class: "su-slider-after"
3714
- }, Ks = /* @__PURE__ */ N({
3711
+ }, Ks = /* @__PURE__ */ Y({
3715
3712
  __name: "Slider",
3716
3713
  props: /* @__PURE__ */ J({
3717
3714
  min: { default: 0 },
@@ -3746,14 +3743,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3746
3743
  }),
3747
3744
  emits: /* @__PURE__ */ J(["change", "input", "focus", "blur", "keydown"], ["update:modelValue"]),
3748
3745
  setup(a, { expose: s, emit: t }) {
3749
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = T(), c = T(), u = T(), f = T(), y = T(!1), w = T(null), k = T(!1), R = T(!1), V = "slider-" + he(), p = n(() => $.id || V), h = n(() => Array.isArray(i.value)), M = n({
3746
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = T(), c = T(), u = T(), f = T(), y = T(!1), w = T(null), k = T(!1), R = T(!1), V = "slider-" + he(), p = r(() => $.id || V), h = r(() => Array.isArray(i.value)), M = r({
3750
3747
  get() {
3751
3748
  return i.value === void 0 || i.value === null ? e.min : i.value;
3752
3749
  },
3753
3750
  set(m) {
3754
- i.value = m, r("change", m), r("input", m);
3751
+ i.value = m, n("change", m), n("input", m);
3755
3752
  }
3756
- }), D = n(() => h.value ? M.value[0] : M.value), v = n(() => h.value ? M.value[1] : M.value), B = (m) => e.formatValue ? e.formatValue(m) : m.toString(), L = n(() => (D.value - e.min) / (e.max - e.min) * 100), P = n(() => (v.value - e.min) / (e.max - e.min) * 100), le = n(() => [
3753
+ }), D = r(() => h.value ? M.value[0] : M.value), v = r(() => h.value ? M.value[1] : M.value), B = (m) => e.formatValue ? e.formatValue(m) : m.toString(), L = r(() => (D.value - e.min) / (e.max - e.min) * 100), P = r(() => (v.value - e.min) / (e.max - e.min) * 100), le = r(() => [
3757
3754
  "su-slider-container",
3758
3755
  `su-slider-container--${e.size}`,
3759
3756
  `su-slider-container--${e.state}`,
@@ -3764,7 +3761,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3764
3761
  "su-slider-container--dual": h.value,
3765
3762
  "su-slider-container--dragging": y.value
3766
3763
  }
3767
- ]), ne = n(() => [
3764
+ ]), ne = r(() => [
3768
3765
  "su-slider-track",
3769
3766
  `su-slider-track--${e.size}`,
3770
3767
  `su-slider-track--${e.state}`,
@@ -3856,23 +3853,23 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3856
3853
  default:
3857
3854
  return;
3858
3855
  }
3859
- ae(O, g), r("keydown", m);
3856
+ ae(O, g), n("keydown", m);
3860
3857
  }, z = (m, g = "min") => {
3861
- e.tooltip !== "none" && (g === "min" ? k.value = !0 : R.value = !0), r("focus", m);
3858
+ e.tooltip !== "none" && (g === "min" ? k.value = !0 : R.value = !0), n("focus", m);
3862
3859
  }, C = (m, g = "min") => {
3863
- e.tooltip !== "none" && (g === "min" ? k.value = !1 : R.value = !1), r("blur", m);
3860
+ e.tooltip !== "none" && (g === "min" ? k.value = !1 : R.value = !1), n("blur", m);
3864
3861
  }, S = (m = "min") => {
3865
3862
  e.tooltip !== "none" && !e.disabled && (m === "min" ? k.value = !0 : R.value = !0);
3866
3863
  }, Z = (m = "min") => {
3867
3864
  e.tooltip !== "none" && (m === "min" ? k.value = !1 : R.value = !1);
3868
- }, G = n(() => {
3865
+ }, G = r(() => {
3869
3866
  if (!e.showTicks) return [];
3870
3867
  const m = Math.min(21, (e.max - e.min) / e.step + 1), g = (e.max - e.min) / (m - 1);
3871
3868
  return Array.from({ length: m }, (I, O) => {
3872
3869
  const q = e.min + O * g, me = (q - e.min) / (e.max - e.min) * 100;
3873
3870
  return { value: X(q), percent: me };
3874
3871
  });
3875
- }), j = n(() => !e.marks || e.marks.length === 0 ? [] : e.marks.filter((m) => m >= e.min && m <= e.max).map((m) => {
3872
+ }), j = r(() => !e.marks || e.marks.length === 0 ? [] : e.marks.filter((m) => m >= e.min && m <= e.max).map((m) => {
3876
3873
  const g = (m - e.min) / (e.max - e.min) * 100;
3877
3874
  return { value: m, percent: g };
3878
3875
  }));
@@ -3888,7 +3885,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3888
3885
  class: K(le.value)
3889
3886
  }, [
3890
3887
  m.$slots.before ? (l(), o("div", Cs, [
3891
- Y(m.$slots, "before")
3888
+ N(m.$slots, "before")
3892
3889
  ])) : x("", !0),
3893
3890
  a.showLabels ? (l(), o("div", Is, [
3894
3891
  d("span", Ls, F(B(a.min)), 1),
@@ -3993,69 +3990,92 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
3993
3990
  ], 512)
3994
3991
  ]),
3995
3992
  m.$slots.after ? (l(), o("div", Hs, [
3996
- Y(m.$slots, "after")
3993
+ N(m.$slots, "after")
3997
3994
  ])) : x("", !0)
3998
3995
  ], 2));
3999
3996
  }
4000
- }), Os = { class: "su-form-field-wrapper" }, js = ["for"], Us = {
3997
+ }), Os = ["for"], js = {
4001
3998
  key: 0,
4002
3999
  class: "su-indicator-required",
4003
4000
  "aria-label": "requis"
4004
- }, Gs = ["id"], ge = /* @__PURE__ */ N({
4001
+ }, Us = ["id"], ge = /* @__PURE__ */ Y({
4005
4002
  __name: "FormField",
4006
4003
  props: {
4007
4004
  fieldId: {},
4008
4005
  label: {},
4009
4006
  message: { default: "" },
4007
+ size: { default: "md" },
4010
4008
  state: { default: "default" },
4011
4009
  required: { type: Boolean, default: !1 },
4012
4010
  disabled: { type: Boolean, default: !1 }
4013
4011
  },
4014
4012
  setup(a) {
4015
- const s = a, t = de(), e = "su-form-field-" + he(), i = n(() => t.id || s.fieldId || e), r = n(() => s.message ? `${i.value}-message` : void 0), $ = n(() => {
4013
+ const s = a, t = de(), e = "su-form-field-" + he(), i = r(() => t.id || s.fieldId || e), n = r(() => s.message ? `${i.value}-message` : void 0), $ = r(() => {
4016
4014
  const u = {};
4017
4015
  return s.state === "error" ? u["aria-live"] = "assertive" : (s.state === "success" || s.state === "warning") && (u["aria-live"] = "polite"), u;
4018
- }), b = n(() => [
4019
- "su-form-field-message",
4020
- `su-form-field-message--${s.state}`
4021
- ]), c = n(() => [
4022
- "su-form-field-label",
4016
+ }), b = r(() => [
4017
+ "su-form-field__message",
4018
+ `su-form-field__message--${s.state}`
4019
+ ]), c = r(() => [
4020
+ "su-form-field__label",
4023
4021
  {
4024
- "su-form-field-label--required": s.required,
4025
- "su-form-field-label--disabled": s.disabled
4022
+ "su-form-field__label--required": s.required,
4023
+ "su-form-field__label--disabled": s.disabled
4026
4024
  }
4027
4025
  ]);
4028
- return (u, f) => (l(), o("div", Os, [
4029
- a.label ? (l(), o("label", {
4030
- key: 0,
4031
- for: i.value,
4032
- class: K(c.value)
4033
- }, [
4034
- xe(F(a.label) + " ", 1),
4035
- a.required ? (l(), o("span", Us, "*")) : x("", !0)
4036
- ], 10, js)) : x("", !0),
4037
- Y(u.$slots, "default", {
4026
+ return (u, f) => (l(), o("div", {
4027
+ class: K(["su-form-field", `su-form-field--${s.size}`])
4028
+ }, [
4029
+ N(u.$slots, "label", {
4030
+ label: a.label,
4038
4031
  fieldId: i.value,
4039
- messageId: r.value
4032
+ state: a.state,
4033
+ size: a.size,
4034
+ required: a.required,
4035
+ disabled: a.disabled
4036
+ }, () => [
4037
+ a.label ? (l(), o("label", {
4038
+ key: 0,
4039
+ for: i.value,
4040
+ class: K(c.value)
4041
+ }, [
4042
+ xe(F(a.label) + " ", 1),
4043
+ a.required ? (l(), o("span", js, "*")) : x("", !0)
4044
+ ], 10, Os)) : x("", !0)
4045
+ ]),
4046
+ N(u.$slots, "default", {
4047
+ fieldId: i.value,
4048
+ messageId: n.value,
4049
+ state: a.state,
4050
+ size: a.size,
4051
+ required: a.required,
4052
+ disabled: a.disabled
4040
4053
  }),
4041
- a.message ? (l(), o("div", Q({
4042
- key: 1,
4043
- id: r.value,
4044
- class: b.value
4045
- }, $.value), F(a.message), 17, Gs)) : x("", !0)
4046
- ]));
4054
+ N(u.$slots, "message", {
4055
+ message: a.message,
4056
+ messageId: n.value,
4057
+ state: a.state,
4058
+ size: a.size
4059
+ }, () => [
4060
+ a.message ? (l(), o("div", Q({
4061
+ key: 0,
4062
+ id: n.value,
4063
+ class: b.value
4064
+ }, $.value), F(a.message), 17, Us)) : x("", !0)
4065
+ ])
4066
+ ], 2));
4047
4067
  }
4048
- }), Ke = /* @__PURE__ */ N({
4068
+ }), Oe = /* @__PURE__ */ Y({
4049
4069
  __name: "InputField",
4050
4070
  props: /* @__PURE__ */ J({
4051
4071
  fieldId: {},
4052
4072
  label: {},
4053
4073
  message: {},
4074
+ size: { default: "md" },
4054
4075
  state: { default: "default" },
4055
4076
  required: { type: Boolean, default: !1 },
4056
4077
  disabled: { type: Boolean, default: !1 },
4057
4078
  type: { default: "text" },
4058
- size: { default: "md" },
4059
4079
  readonly: { type: Boolean, default: !1 },
4060
4080
  placeholder: {},
4061
4081
  prefix: {},
@@ -4086,10 +4106,10 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4086
4106
  emits: /* @__PURE__ */ J(["input", "change", "focus", "blur", "keydown", "keyup", "prefix-click", "prefix-icon-click", "suffix-click", "suffix-icon-click"], ["update:modelValue"]),
4087
4107
  setup(a, { expose: s, emit: t }) {
4088
4108
  var D;
4089
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = "input-" + he(), c = n(() => $.id || b), u = n(() => {
4109
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = "input-" + he(), c = r(() => $.id || b), u = r(() => {
4090
4110
  const { label: v, message: B, ...L } = e;
4091
4111
  return L;
4092
- }), f = (v) => r("input", v), y = (v) => r("change", v), w = (v) => r("focus", v), k = (v) => r("blur", v), R = (v) => r("keydown", v), V = (v) => r("keyup", v), p = T();
4112
+ }), f = (v) => n("input", v), y = (v) => n("change", v), w = (v) => n("focus", v), k = (v) => n("blur", v), R = (v) => n("keydown", v), V = (v) => n("keyup", v), p = T();
4093
4113
  return s({
4094
4114
  focus: () => {
4095
4115
  var v;
@@ -4130,11 +4150,11 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4130
4150
  _: 1
4131
4151
  }, 8, ["label", "message", "state", "required", "disabled"]));
4132
4152
  }
4133
- }), Zs = { class: "su-password-wrapper" }, Ws = {
4153
+ }), Gs = { class: "su-password-wrapper" }, Zs = {
4134
4154
  class: "sr-only",
4135
4155
  "aria-live": "polite",
4136
4156
  "aria-atomic": !0
4137
- }, Ns = { key: 0 }, Ys = /* @__PURE__ */ N({
4157
+ }, Ws = { key: 0 }, Ns = /* @__PURE__ */ Y({
4138
4158
  inheritAttrs: !1,
4139
4159
  __name: "Password",
4140
4160
  props: /* @__PURE__ */ J({
@@ -4179,7 +4199,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4179
4199
  }),
4180
4200
  emits: /* @__PURE__ */ J(["validation", "input", "change", "focus", "blur", "keydown", "keyup", "toggle-visibility"], ["update:modelValue"]),
4181
4201
  setup(a, { emit: s }) {
4182
- const t = a, e = s, i = ye(a, "modelValue"), r = T(!1), $ = n(() => r.value ? "text" : "password"), b = n(() => r.value ? st : it), c = (v) => {
4202
+ const t = a, e = s, i = ye(a, "modelValue"), n = T(!1), $ = r(() => n.value ? "text" : "password"), b = r(() => n.value ? st : it), c = (v) => {
4183
4203
  const B = t.rules || {}, L = v.length, P = (v.match(/[A-Z]/g) || []).length, le = (v.match(/[a-z]/g) || []).length, ne = (v.match(/[0-9]/g) || []).length, ie = (v.match(/[^A-Za-z0-9]/g) || []).length, se = {
4184
4204
  length: {
4185
4205
  required: B.minLength || 0,
@@ -4219,7 +4239,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4219
4239
  unsatisfied: X,
4220
4240
  details: se
4221
4241
  };
4222
- }, u = n(() => c(i.value || "")), f = n(() => t.state !== "default" ? t.state : i.value ? u.value.isValid ? "success" : u.value.score < 25 ? "error" : u.value.score < 75 ? "warning" : "default" : "default"), y = n(() => ({
4242
+ }, u = r(() => c(i.value || "")), f = r(() => t.state !== "default" ? t.state : i.value ? u.value.isValid ? "success" : u.value.score < 25 ? "error" : u.value.score < 75 ? "warning" : "default" : "default"), y = r(() => ({
4223
4243
  empty: "#d1d5db",
4224
4244
  // gris
4225
4245
  weak: "#ef4444",
@@ -4231,7 +4251,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4231
4251
  strong: "#10b981"
4232
4252
  // vert
4233
4253
  })[u.value.progressState || "empty"]), w = () => {
4234
- t.disabled || t.readonly || (r.value = !r.value, e("toggle-visibility", r.value));
4254
+ t.disabled || t.readonly || (n.value = !n.value, e("toggle-visibility", n.value));
4235
4255
  }, k = () => {
4236
4256
  w();
4237
4257
  }, R = (v) => {
@@ -4249,8 +4269,8 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4249
4269
  };
4250
4270
  return $e(u, (v) => {
4251
4271
  e("validation", v);
4252
- }, { immediate: !0 }), (v, B) => (l(), o("div", Zs, [
4253
- re(Ke, {
4272
+ }, { immediate: !0 }), (v, B) => (l(), o("div", Gs, [
4273
+ re(Oe, {
4254
4274
  modelValue: i.value,
4255
4275
  "onUpdate:modelValue": B[0] || (B[0] = (L) => i.value = L),
4256
4276
  type: $.value,
@@ -4280,7 +4300,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4280
4300
  onKeyup: D,
4281
4301
  onSuffixIconClick: k
4282
4302
  }, null, 8, ["modelValue", "type", "size", "state", "disabled", "readonly", "required", "placeholder", "prefix", "prefix-icon", "suffix-icon", "text-align", "aria-label", "aria-described-by", "aria-invalid", "aria-required", "autocomplete", "min-length", "max-length", "pattern"]),
4283
- a.showProgress && i.value ? (l(), U(_e, {
4303
+ a.showProgress && i.value ? (l(), U(ea, {
4284
4304
  key: 0,
4285
4305
  modelValue: u.value.score,
4286
4306
  "onUpdate:modelValue": B[1] || (B[1] = (L) => u.value.score = L),
@@ -4288,7 +4308,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4288
4308
  color: y.value,
4289
4309
  "aria-label": `Force du mot de passe : ${u.value.score}%`
4290
4310
  }, null, 8, ["modelValue", "color", "aria-label"])) : x("", !0),
4291
- Y(v.$slots, "default", {
4311
+ N(v.$slots, "default", {
4292
4312
  validation: u.value,
4293
4313
  isValid: u.value.isValid,
4294
4314
  score: u.value.score,
@@ -4296,21 +4316,21 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4296
4316
  unsatisfied: u.value.unsatisfied,
4297
4317
  details: u.value.details
4298
4318
  }),
4299
- d("div", Ws, [
4300
- i.value ? (l(), o("span", Ns, " Mot de passe " + F(u.value.isValid ? "valide" : "invalide") + ". Force : " + F(u.value.score) + "%. " + F(u.value.satisfied.length) + " règle(s) respectée(s), " + F(u.value.unsatisfied.length) + " règle(s) non respectée(s). ", 1)) : x("", !0)
4319
+ d("div", Zs, [
4320
+ i.value ? (l(), o("span", Ws, " Mot de passe " + F(u.value.isValid ? "valide" : "invalide") + ". Force : " + F(u.value.score) + "%. " + F(u.value.satisfied.length) + " règle(s) respectée(s), " + F(u.value.unsatisfied.length) + " règle(s) non respectée(s). ", 1)) : x("", !0)
4301
4321
  ])
4302
4322
  ]));
4303
4323
  }
4304
- }), na = /* @__PURE__ */ N({
4324
+ }), na = /* @__PURE__ */ Y({
4305
4325
  __name: "TextareaField",
4306
4326
  props: /* @__PURE__ */ J({
4307
4327
  fieldId: {},
4308
4328
  label: {},
4309
4329
  message: {},
4330
+ size: { default: "md" },
4310
4331
  state: { default: "default" },
4311
4332
  required: { type: Boolean, default: !1 },
4312
4333
  disabled: { type: Boolean, default: !1 },
4313
- size: { default: "md" },
4314
4334
  readonly: { type: Boolean, default: !1 },
4315
4335
  placeholder: {},
4316
4336
  value: {},
@@ -4339,10 +4359,10 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4339
4359
  emits: /* @__PURE__ */ J(["input", "change", "focus", "blur", "keydown", "keyup"], ["update:modelValue"]),
4340
4360
  setup(a, { expose: s, emit: t }) {
4341
4361
  var D;
4342
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = "textarea-" + he(), c = n(() => $.id || b), u = n(() => {
4362
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = "textarea-" + he(), c = r(() => $.id || b), u = r(() => {
4343
4363
  const { label: v, message: B, value: L, ...P } = e;
4344
4364
  return P;
4345
- }), f = (v) => r("input", v), y = (v) => r("change", v), w = (v) => r("focus", v), k = (v) => r("blur", v), R = (v) => r("keydown", v), V = (v) => r("keyup", v), p = T();
4365
+ }), f = (v) => n("input", v), y = (v) => n("change", v), w = (v) => n("focus", v), k = (v) => n("blur", v), R = (v) => n("keydown", v), V = (v) => n("keyup", v), p = T();
4346
4366
  return s({
4347
4367
  focus: () => {
4348
4368
  var v;
@@ -4380,12 +4400,13 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4380
4400
  _: 1
4381
4401
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
4382
4402
  }
4383
- }), ra = /* @__PURE__ */ N({
4403
+ }), ra = /* @__PURE__ */ Y({
4384
4404
  __name: "SelectBoxField",
4385
4405
  props: /* @__PURE__ */ J({
4386
4406
  fieldId: {},
4387
4407
  label: {},
4388
4408
  message: {},
4409
+ size: { default: "md" },
4389
4410
  state: { default: "default" },
4390
4411
  required: { type: Boolean, default: !1 },
4391
4412
  disabled: { type: Boolean, default: !1 },
@@ -4394,7 +4415,6 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4394
4415
  multiple: { type: Boolean, default: !1 },
4395
4416
  searchable: { type: Boolean, default: !1 },
4396
4417
  clearable: { type: Boolean, default: !1 },
4397
- size: { default: "md" },
4398
4418
  readonly: { type: Boolean, default: !1 },
4399
4419
  placeholder: { default: "Sélectionnez une option..." },
4400
4420
  searchPlaceholder: { default: "Rechercher..." },
@@ -4402,7 +4422,6 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4402
4422
  noResultsText: { default: "Aucun résultat trouvé" },
4403
4423
  maxHeight: { default: "200px" },
4404
4424
  textAlign: { default: "left" },
4405
- dir: { default: "auto" },
4406
4425
  ariaInvalid: { type: Boolean },
4407
4426
  ariaRequired: { type: Boolean },
4408
4427
  maxSelectedItems: { default: void 0 },
@@ -4422,7 +4441,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4422
4441
  emits: /* @__PURE__ */ J(["change", "open", "close", "search", "focus", "blur"], ["update:modelValue"]),
4423
4442
  setup(a, { expose: s, emit: t }) {
4424
4443
  var R, V;
4425
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = "selectbox-" + he(), c = n(() => $.id || b), u = n(() => {
4444
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = "selectbox-" + he(), c = r(() => $.id || b), u = r(() => {
4426
4445
  const { label: p, message: h, ...M } = e;
4427
4446
  return M;
4428
4447
  }), f = T();
@@ -4458,29 +4477,29 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4458
4477
  "onUpdate:modelValue": h[0] || (h[0] = (v) => i.value = v),
4459
4478
  "aria-describedby": D
4460
4479
  }, { ...u.value }, {
4461
- onChange: h[1] || (h[1] = (v) => r("change", v)),
4462
- onOpen: h[2] || (h[2] = (v) => r("open")),
4463
- onClose: h[3] || (h[3] = (v) => r("close")),
4464
- onSearch: h[4] || (h[4] = (v) => r("search", v)),
4465
- onFocus: h[5] || (h[5] = (v) => r("focus", v)),
4466
- onBlur: h[6] || (h[6] = (v) => r("blur", v))
4480
+ onChange: h[1] || (h[1] = (v) => n("change", v)),
4481
+ onOpen: h[2] || (h[2] = (v) => n("open")),
4482
+ onClose: h[3] || (h[3] = (v) => n("close")),
4483
+ onSearch: h[4] || (h[4] = (v) => n("search", v)),
4484
+ onFocus: h[5] || (h[5] = (v) => n("focus", v)),
4485
+ onBlur: h[6] || (h[6] = (v) => n("blur", v))
4467
4486
  }), null, 16, ["id", "modelValue", "aria-describedby"])
4468
4487
  ]),
4469
4488
  _: 1
4470
4489
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
4471
4490
  }
4472
- }), ua = /* @__PURE__ */ N({
4491
+ }), ua = /* @__PURE__ */ Y({
4473
4492
  __name: "RadioGroupField",
4474
4493
  props: /* @__PURE__ */ J({
4475
4494
  fieldId: {},
4476
4495
  label: {},
4477
4496
  message: {},
4497
+ size: { default: "md" },
4478
4498
  state: { default: "default" },
4479
4499
  required: { type: Boolean, default: !1 },
4480
4500
  disabled: { type: Boolean, default: !1 },
4481
4501
  options: { default: () => [] },
4482
4502
  name: {},
4483
- size: { default: "md" },
4484
4503
  displayType: { default: "default" },
4485
4504
  direction: { default: "vertical" },
4486
4505
  maxHeight: { default: null },
@@ -4499,7 +4518,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4499
4518
  }),
4500
4519
  emits: /* @__PURE__ */ J(["change", "focus", "blur"], ["update:modelValue"]),
4501
4520
  setup(a, { emit: s }) {
4502
- const t = a, e = ye(a, "modelValue"), i = s, r = de(), $ = "radio-group-" + he(), b = n(() => r.id || $), c = n(() => {
4521
+ const t = a, e = ye(a, "modelValue"), i = s, n = de(), $ = "radio-group-" + he(), b = r(() => n.id || $), c = r(() => {
4503
4522
  const { label: w, message: k, ...R } = t;
4504
4523
  return R;
4505
4524
  }), u = (w) => {
@@ -4531,17 +4550,17 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4531
4550
  _: 1
4532
4551
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
4533
4552
  }
4534
- }), da = /* @__PURE__ */ N({
4553
+ }), da = /* @__PURE__ */ Y({
4535
4554
  __name: "CheckboxGroupField",
4536
4555
  props: /* @__PURE__ */ J({
4537
4556
  fieldId: {},
4538
4557
  label: {},
4539
4558
  message: {},
4559
+ size: { default: "md" },
4540
4560
  state: { default: "default" },
4541
4561
  required: { type: Boolean, default: !1 },
4542
4562
  disabled: { type: Boolean, default: !1 },
4543
4563
  options: { default: () => [] },
4544
- size: { default: "md" },
4545
4564
  displayType: { default: "default" },
4546
4565
  direction: { default: "vertical" },
4547
4566
  maxSelections: {},
@@ -4561,12 +4580,12 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4561
4580
  }),
4562
4581
  emits: /* @__PURE__ */ J(["change", "focus", "blur"], ["update:modelValue"]),
4563
4582
  setup(a) {
4564
- const s = a, t = ye(a, "modelValue"), e = de(), i = "checkbox-group-" + he(), r = n(() => e.id || i), $ = n(() => {
4583
+ const s = a, t = ye(a, "modelValue"), e = de(), i = "checkbox-group-" + he(), n = r(() => e.id || i), $ = r(() => {
4565
4584
  const { label: b, message: c, ...u } = s;
4566
4585
  return u;
4567
4586
  });
4568
4587
  return (b, c) => (l(), U(ge, {
4569
- "field-id": r.value,
4588
+ "field-id": n.value,
4570
4589
  label: a.label,
4571
4590
  message: a.message,
4572
4591
  state: a.state,
@@ -4587,12 +4606,13 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4587
4606
  _: 1
4588
4607
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
4589
4608
  }
4590
- }), ca = /* @__PURE__ */ N({
4609
+ }), ca = /* @__PURE__ */ Y({
4591
4610
  __name: "SwitchField",
4592
4611
  props: /* @__PURE__ */ J({
4593
4612
  fieldId: {},
4594
4613
  label: {},
4595
4614
  message: {},
4615
+ size: { default: "md" },
4596
4616
  state: { default: "default" },
4597
4617
  required: { type: Boolean, default: !1 },
4598
4618
  disabled: { type: Boolean, default: !1 },
@@ -4600,7 +4620,6 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4600
4620
  rightLabel: {},
4601
4621
  leftIcon: {},
4602
4622
  rightIcon: {},
4603
- size: { default: "md" },
4604
4623
  readonly: { type: Boolean, default: !1 },
4605
4624
  ariaLabel: {},
4606
4625
  ariaLabelledBy: {},
@@ -4617,7 +4636,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4617
4636
  }),
4618
4637
  emits: /* @__PURE__ */ J(["change", "focus", "blur", "keydown"], ["update:modelValue"]),
4619
4638
  setup(a, { emit: s }) {
4620
- const t = a, e = ye(a, "modelValue"), i = s, r = de(), $ = "switch-" + he(), b = n(() => r.id || $), c = n(() => {
4639
+ const t = a, e = ye(a, "modelValue"), i = s, n = de(), $ = "switch-" + he(), b = r(() => n.id || $), c = r(() => {
4621
4640
  const { label: u, message: f, ...y } = t;
4622
4641
  return y;
4623
4642
  });
@@ -4645,31 +4664,31 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4645
4664
  _: 1
4646
4665
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
4647
4666
  }
4648
- }), Xs = {
4667
+ }), Ys = {
4649
4668
  key: 0,
4650
4669
  class: "su-slider__before"
4651
- }, Qs = {
4670
+ }, Xs = {
4652
4671
  key: 1,
4653
4672
  class: "su-slider__labels"
4654
- }, Js = { class: "su-slider-label su-slider-label--min" }, _s = { class: "su-slider-label su-slider-label--max" }, ei = { class: "su-slider__wrapper" }, ai = {
4673
+ }, Qs = { class: "su-slider-label su-slider-label--min" }, Js = { class: "su-slider-label su-slider-label--max" }, _s = { class: "su-slider__wrapper" }, ei = {
4655
4674
  key: 0,
4656
4675
  class: "su-slider-value"
4657
- }, ti = {
4676
+ }, ai = {
4658
4677
  key: 0,
4659
4678
  class: "su-slider-value-display"
4660
- }, li = {
4679
+ }, ti = {
4661
4680
  key: 1,
4662
4681
  class: "su-slider-value-dual"
4663
- }, si = { class: "su-slider-value-min" }, ii = { class: "su-slider-value-max" }, oi = ["aria-describedby"], ni = {
4682
+ }, li = { class: "su-slider-value-min" }, si = { class: "su-slider-value-max" }, ii = ["aria-describedby"], oi = {
4664
4683
  key: 0,
4665
4684
  class: "su-slider-ticks"
4666
- }, ri = {
4685
+ }, ni = {
4667
4686
  key: 1,
4668
4687
  class: "su-slider-marks"
4669
- }, ui = { class: "su-slider-mark-label" }, di = ["id", "tabindex"], ci = ["id", "tabindex"], fi = {
4688
+ }, ri = { class: "su-slider-mark-label" }, ui = ["id", "tabindex"], di = ["id", "tabindex"], ci = {
4670
4689
  key: 2,
4671
4690
  class: "su-slider__after"
4672
- }, fa = /* @__PURE__ */ N({
4691
+ }, fa = /* @__PURE__ */ Y({
4673
4692
  __name: "SliderField",
4674
4693
  props: /* @__PURE__ */ J({
4675
4694
  min: { default: 0 },
@@ -4704,14 +4723,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4704
4723
  }),
4705
4724
  emits: /* @__PURE__ */ J(["change", "input", "focus", "blur", "keydown"], ["update:modelValue"]),
4706
4725
  setup(a, { expose: s, emit: t }) {
4707
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = T(), c = T(), u = T(), f = T(), y = T(!1), w = T(null), k = T(!1), R = T(!1), V = "slider-" + he(), p = n(() => $.id || V), h = n(() => Array.isArray(i.value)), M = n({
4726
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = T(), c = T(), u = T(), f = T(), y = T(!1), w = T(null), k = T(!1), R = T(!1), V = "slider-" + he(), p = r(() => $.id || V), h = r(() => Array.isArray(i.value)), M = r({
4708
4727
  get() {
4709
4728
  return i.value === void 0 || i.value === null ? e.min : i.value;
4710
4729
  },
4711
4730
  set(m) {
4712
- i.value = m, r("change", m), r("input", m);
4731
+ i.value = m, n("change", m), n("input", m);
4713
4732
  }
4714
- }), D = n(() => h.value ? M.value[0] : M.value), v = n(() => h.value ? M.value[1] : M.value), B = (m) => e.formatValue ? e.formatValue(m) : m.toString(), L = n(() => (D.value - e.min) / (e.max - e.min) * 100), P = n(() => (v.value - e.min) / (e.max - e.min) * 100), le = n(() => [
4733
+ }), D = r(() => h.value ? M.value[0] : M.value), v = r(() => h.value ? M.value[1] : M.value), B = (m) => e.formatValue ? e.formatValue(m) : m.toString(), L = r(() => (D.value - e.min) / (e.max - e.min) * 100), P = r(() => (v.value - e.min) / (e.max - e.min) * 100), le = r(() => [
4715
4734
  "su-slider__container",
4716
4735
  `su-slider__container--${e.size}`,
4717
4736
  `su-slider__container--${e.state}`,
@@ -4722,7 +4741,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4722
4741
  "su-slider__container--dual": h.value,
4723
4742
  "su-slider__container--dragging": y.value
4724
4743
  }
4725
- ]), ne = n(() => [
4744
+ ]), ne = r(() => [
4726
4745
  "su-slider-track",
4727
4746
  `su-slider-track--${e.size}`,
4728
4747
  `su-slider-track--${e.state}`,
@@ -4814,23 +4833,23 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4814
4833
  default:
4815
4834
  return;
4816
4835
  }
4817
- ae(O, g), r("keydown", m);
4836
+ ae(O, g), n("keydown", m);
4818
4837
  }, z = (m, g = "min") => {
4819
- e.tooltip !== "none" && (g === "min" ? k.value = !0 : R.value = !0), r("focus", m);
4838
+ e.tooltip !== "none" && (g === "min" ? k.value = !0 : R.value = !0), n("focus", m);
4820
4839
  }, C = (m, g = "min") => {
4821
- e.tooltip !== "none" && (g === "min" ? k.value = !1 : R.value = !1), r("blur", m);
4840
+ e.tooltip !== "none" && (g === "min" ? k.value = !1 : R.value = !1), n("blur", m);
4822
4841
  }, S = (m = "min") => {
4823
4842
  e.tooltip !== "none" && !e.disabled && (m === "min" ? k.value = !0 : R.value = !0);
4824
4843
  }, Z = (m = "min") => {
4825
4844
  e.tooltip !== "none" && (m === "min" ? k.value = !1 : R.value = !1);
4826
- }, G = n(() => {
4845
+ }, G = r(() => {
4827
4846
  if (!e.showTicks) return [];
4828
4847
  const m = Math.min(21, (e.max - e.min) / e.step + 1), g = (e.max - e.min) / (m - 1);
4829
4848
  return Array.from({ length: m }, (I, O) => {
4830
4849
  const q = e.min + O * g, me = (q - e.min) / (e.max - e.min) * 100;
4831
4850
  return { value: X(q), percent: me };
4832
4851
  });
4833
- }), j = n(() => !e.marks || e.marks.length === 0 ? [] : e.marks.filter((m) => m >= e.min && m <= e.max).map((m) => {
4852
+ }), j = r(() => !e.marks || e.marks.length === 0 ? [] : e.marks.filter((m) => m >= e.min && m <= e.max).map((m) => {
4834
4853
  const g = (m - e.min) / (e.max - e.min) * 100;
4835
4854
  return { value: m, percent: g };
4836
4855
  }));
@@ -4854,20 +4873,20 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4854
4873
  d("div", {
4855
4874
  class: K(["su-slider", le.value])
4856
4875
  }, [
4857
- m.$slots.before ? (l(), o("div", Xs, [
4858
- Y(m.$slots, "before")
4876
+ m.$slots.before ? (l(), o("div", Ys, [
4877
+ N(m.$slots, "before")
4859
4878
  ])) : x("", !0),
4860
- a.showLabels ? (l(), o("div", Qs, [
4861
- d("span", Js, F(B(a.min)), 1),
4862
- d("span", _s, F(B(a.max)), 1)
4879
+ a.showLabels ? (l(), o("div", Xs, [
4880
+ d("span", Qs, F(B(a.min)), 1),
4881
+ d("span", Js, F(B(a.max)), 1)
4863
4882
  ])) : x("", !0),
4864
- d("div", ei, [
4865
- a.showValue && a.tooltip === "none" ? (l(), o("div", ai, [
4866
- h.value ? (l(), o("div", li, [
4867
- d("span", si, F(B(D.value)), 1),
4883
+ d("div", _s, [
4884
+ a.showValue && a.tooltip === "none" ? (l(), o("div", ei, [
4885
+ h.value ? (l(), o("div", ti, [
4886
+ d("span", li, F(B(D.value)), 1),
4868
4887
  g[12] || (g[12] = d("span", { class: "su-slider-value-separator" }, "-", -1)),
4869
- d("span", ii, F(B(v.value)), 1)
4870
- ])) : (l(), o("span", ti, F(B(D.value)), 1))
4888
+ d("span", si, F(B(v.value)), 1)
4889
+ ])) : (l(), o("span", ai, F(B(D.value)), 1))
4871
4890
  ])) : x("", !0),
4872
4891
  d("div", {
4873
4892
  ref_key: "sliderRef",
@@ -4888,7 +4907,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4888
4907
  [a.orientation === "horizontal" ? "width" : "height"]: `${h.value ? Math.abs(P.value - L.value) : Math.abs(L.value)}%`
4889
4908
  })
4890
4909
  }, null, 4),
4891
- a.showTicks ? (l(), o("div", ni, [
4910
+ a.showTicks ? (l(), o("div", oi, [
4892
4911
  (l(!0), o(_, null, ue(G.value, (q) => (l(), o("div", {
4893
4912
  key: q.value,
4894
4913
  class: "su-slider-tick",
@@ -4897,7 +4916,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4897
4916
  })
4898
4917
  }, null, 4))), 128))
4899
4918
  ])) : x("", !0),
4900
- j.value.length > 0 ? (l(), o("div", ri, [
4919
+ j.value.length > 0 ? (l(), o("div", ni, [
4901
4920
  (l(!0), o(_, null, ue(j.value, (q) => (l(), o("div", {
4902
4921
  key: q.value,
4903
4922
  class: "su-slider-mark",
@@ -4906,7 +4925,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4906
4925
  })
4907
4926
  }, [
4908
4927
  g[13] || (g[13] = d("div", { class: "su-slider-mark-dot" }, null, -1)),
4909
- d("div", ui, F(B(q.value)), 1)
4928
+ d("div", ri, F(B(q.value)), 1)
4910
4929
  ], 4))), 128))
4911
4930
  ])) : x("", !0),
4912
4931
  d("div", Q({
@@ -4931,7 +4950,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4931
4950
  key: 0,
4932
4951
  class: K(["su-slider-tooltip", `su-slider-tooltip--${a.tooltip}`])
4933
4952
  }, F(B(D.value)), 3)) : x("", !0)
4934
- ], 16, di),
4953
+ ], 16, ui),
4935
4954
  h.value ? (l(), o("div", Q({
4936
4955
  key: 2,
4937
4956
  id: `${I}-max`,
@@ -4955,33 +4974,33 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
4955
4974
  key: 0,
4956
4975
  class: K(["su-slider-tooltip", `su-slider-tooltip--${a.tooltip}`])
4957
4976
  }, F(B(v.value)), 3)) : x("", !0)
4958
- ], 16, ci)) : x("", !0)
4977
+ ], 16, di)) : x("", !0)
4959
4978
  ], 2)
4960
- ], 8, oi)
4979
+ ], 8, ii)
4961
4980
  ]),
4962
- m.$slots.after ? (l(), o("div", fi, [
4963
- Y(m.$slots, "after")
4981
+ m.$slots.after ? (l(), o("div", ci, [
4982
+ N(m.$slots, "after")
4964
4983
  ])) : x("", !0)
4965
4984
  ], 2)
4966
4985
  ]),
4967
4986
  _: 3
4968
4987
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
4969
4988
  }
4970
- }), vi = ["id", "accept", "multiple", "disabled", "required", "aria-describedby"], mi = ["tabindex", "aria-label", "aria-busy"], bi = {
4989
+ }), fi = ["id", "accept", "multiple", "disabled", "required", "aria-describedby"], vi = ["tabindex", "aria-label", "aria-busy"], mi = {
4971
4990
  key: 0,
4972
4991
  class: "su-file-upload-loading",
4973
4992
  "aria-hidden": "true"
4974
- }, hi = { class: "su-file-upload-text" }, yi = { class: "su-file-upload-primary-text" }, pi = { class: "su-file-upload-secondary-text" }, gi = { key: 0 }, ki = { key: 0 }, xi = { key: 1 }, $i = ["aria-label"], wi = { class: "su-file-upload-item-preview" }, Bi = ["src", "alt"], Ci = { class: "su-file-upload-item-info" }, Ii = { class: "su-file-upload-item-name" }, Li = { class: "su-file-upload-item-details" }, zi = { class: "su-file-upload-item-size" }, Di = {
4993
+ }, bi = { class: "su-file-upload-text" }, hi = { class: "su-file-upload-primary-text" }, yi = { class: "su-file-upload-secondary-text" }, pi = { key: 0 }, gi = { key: 0 }, ki = { key: 1 }, xi = ["aria-label"], $i = { class: "su-file-upload-item-preview" }, wi = ["src", "alt"], Bi = { class: "su-file-upload-item-info" }, Ci = { class: "su-file-upload-item-name" }, Ii = { class: "su-file-upload-item-details" }, Li = { class: "su-file-upload-item-size" }, zi = {
4975
4994
  key: 0,
4976
4995
  class: "su-file-upload-item-progress"
4977
- }, Vi = {
4996
+ }, Di = {
4978
4997
  key: 1,
4979
4998
  class: "su-file-upload-item-error"
4980
- }, Mi = { class: "su-file-upload-item-status" }, qi = {
4999
+ }, Vi = { class: "su-file-upload-item-status" }, Mi = {
4981
5000
  key: 2,
4982
5001
  class: "su-file-upload-spinner",
4983
5002
  "aria-hidden": "true"
4984
- }, Ri = ["aria-label", "onClick"], Ai = ["aria-valuenow", "aria-label"], va = /* @__PURE__ */ N({
5003
+ }, qi = ["aria-label", "onClick"], Ri = ["aria-valuenow", "aria-label"], va = /* @__PURE__ */ Y({
4985
5004
  __name: "FileUploadField",
4986
5005
  props: /* @__PURE__ */ J({
4987
5006
  variant: { default: "default" },
@@ -5018,7 +5037,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5018
5037
  }),
5019
5038
  emits: /* @__PURE__ */ J(["change", "upload", "remove", "error", "focus", "blur"], ["update:modelValue"]),
5020
5039
  setup(a, { expose: s, emit: t }) {
5021
- const e = a, i = ye(a, "modelValue"), r = t, $ = de(), b = T(), c = T(), u = T(!1), f = T(0), y = "file-upload-" + he(), w = n(() => $.id || y), k = n(() => Array.isArray(i.value) ? i.value : []), R = n(() => [
5040
+ const e = a, i = ye(a, "modelValue"), n = t, $ = de(), b = T(), c = T(), u = T(!1), f = T(0), y = "file-upload-" + he(), w = r(() => $.id || y), k = r(() => Array.isArray(i.value) ? i.value : []), R = r(() => [
5022
5041
  "su-file-upload-container",
5023
5042
  `su-file-upload-container--${e.variant}`,
5024
5043
  `su-file-upload-container--${e.size}`,
@@ -5029,7 +5048,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5029
5048
  "su-file-upload-container--dragging": u.value,
5030
5049
  "su-file-upload-container--has-files": k.value.length > 0
5031
5050
  }
5032
- ]), V = n(() => [
5051
+ ]), V = r(() => [
5033
5052
  "su-file-upload-dropzone",
5034
5053
  `su-file-upload-dropzone--${e.variant}`,
5035
5054
  `su-file-upload-dropzone--${e.size}`,
@@ -5039,7 +5058,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5039
5058
  "su-file-upload-dropzone--readonly": e.readonly,
5040
5059
  "su-file-upload-dropzone--dragging": u.value
5041
5060
  }
5042
- ]), p = n(() => {
5061
+ ]), p = r(() => {
5043
5062
  const C = {};
5044
5063
  if (e.ariaLabel && (C["aria-label"] = e.ariaLabel), e.ariaDescribedBy) {
5045
5064
  const S = [e.ariaDescribedBy].filter(Boolean).join(" ");
@@ -5050,7 +5069,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5050
5069
  if (C === 0) return "0 B";
5051
5070
  const S = 1024, Z = ["B", "KB", "MB", "GB"], G = Math.floor(Math.log(C) / Math.log(S));
5052
5071
  return parseFloat((C / Math.pow(S, G)).toFixed(1)) + " " + Z[G];
5053
- }, M = (C) => C.type.startsWith("image/") ? Qe : Xe, D = (C) => `${C}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, v = (C) => C.type.startsWith("image/"), B = (C) => new Promise((S) => {
5072
+ }, M = (C) => C.type.startsWith("image/") ? Je : Qe, D = (C) => `${C}-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, v = (C) => C.type.startsWith("image/"), B = (C) => new Promise((S) => {
5054
5073
  if (!v(C)) {
5055
5074
  S("");
5056
5075
  return;
@@ -5073,14 +5092,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5073
5092
  const S = Array.from(C), Z = k.value;
5074
5093
  if (e.maxFiles && Z.length + S.length > e.maxFiles) {
5075
5094
  const j = `Nombre maximum de fichiers dépassé (${e.maxFiles})`;
5076
- r("error", j), ce(j, "assertive");
5095
+ n("error", j), ce(j, "assertive");
5077
5096
  return;
5078
5097
  }
5079
5098
  const G = [];
5080
5099
  for (const j of S) {
5081
5100
  const A = L(j);
5082
5101
  if (A) {
5083
- r("error", A, j), ce(A, "assertive");
5102
+ n("error", A, j), ce(A, "assertive");
5084
5103
  continue;
5085
5104
  }
5086
5105
  const m = {
@@ -5101,14 +5120,14 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5101
5120
  }
5102
5121
  if (G.length > 0) {
5103
5122
  const j = e.multiple ? [...Z, ...G] : G;
5104
- i.value = j, r("change", j);
5123
+ i.value = j, n("change", j);
5105
5124
  const A = G.length === 1 ? `Fichier "${G[0].name}" ajouté` : `${G.length} fichiers ajoutés`;
5106
- ce(A), G.forEach((m) => r("upload", m));
5125
+ ce(A), G.forEach((m) => n("upload", m));
5107
5126
  }
5108
5127
  }, le = (C) => {
5109
5128
  if (e.disabled || e.readonly) return;
5110
5129
  const S = k.value.filter((Z) => Z.id !== C.id);
5111
- i.value = S, r("change", S), r("remove", C), ce(`Fichier "${C.name}" supprimé`);
5130
+ i.value = S, n("change", S), n("remove", C), ce(`Fichier "${C.name}" supprimé`);
5112
5131
  }, ne = (C) => {
5113
5132
  const S = C.target;
5114
5133
  S.files && S.files.length > 0 && P(S.files), S.value = "";
@@ -5118,9 +5137,9 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5118
5137
  }, se = (C) => {
5119
5138
  (C.key === "Enter" || C.key === " ") && (C.preventDefault(), ie());
5120
5139
  }, H = (C) => {
5121
- r("focus", C);
5140
+ n("focus", C);
5122
5141
  }, X = (C) => {
5123
- r("blur", C);
5142
+ n("blur", C);
5124
5143
  }, E = (C) => {
5125
5144
  C.preventDefault(), C.stopPropagation(), !(e.disabled || e.readonly) && (f.value++, f.value === 1 && (u.value = !0));
5126
5145
  }, ae = (C) => {
@@ -5140,7 +5159,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5140
5159
  (C = c.value) == null || C.focus();
5141
5160
  },
5142
5161
  clear: () => {
5143
- e.disabled || e.readonly || (i.value = [], r("change", []), ce("Tous les fichiers ont été supprimés"));
5162
+ e.disabled || e.readonly || (i.value = [], n("change", []), ce("Tous les fichiers ont été supprimés"));
5144
5163
  },
5145
5164
  fileInputRef: b,
5146
5165
  dropZoneRef: c
@@ -5171,7 +5190,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5171
5190
  onChange: ne,
5172
5191
  onFocus: H,
5173
5192
  onBlur: X
5174
- }), null, 16, vi),
5193
+ }), null, 16, fi),
5175
5194
  d("div", {
5176
5195
  ref_key: "dropZoneRef",
5177
5196
  ref: c,
@@ -5187,11 +5206,11 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5187
5206
  onDragover: fe,
5188
5207
  onDrop: W
5189
5208
  }, [
5190
- re(oe(Ye), {
5209
+ re(oe(Xe), {
5191
5210
  class: K(["su-file-upload-icon", { "su-file-upload-icon--dragging": u.value }]),
5192
5211
  "aria-hidden": "true"
5193
5212
  }, null, 8, ["class"]),
5194
- a.loading ? (l(), o("div", bi, [...S[0] || (S[0] = [
5213
+ a.loading ? (l(), o("div", mi, [...S[0] || (S[0] = [
5195
5214
  d("svg", {
5196
5215
  class: "su-spinner",
5197
5216
  viewBox: "0 0 24 24"
@@ -5213,17 +5232,17 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5213
5232
  })
5214
5233
  ], -1)
5215
5234
  ])])) : x("", !0),
5216
- d("div", hi, [
5217
- d("p", yi, F(a.loading ? "Chargement..." : u.value ? a.dragText : a.placeholder), 1),
5218
- d("p", pi, [
5235
+ d("div", bi, [
5236
+ d("p", hi, F(a.loading ? "Chargement..." : u.value ? a.dragText : a.placeholder), 1),
5237
+ d("p", yi, [
5219
5238
  xe(F(a.loading ? "Veuillez patienter" : a.browseText) + " ", 1),
5220
- a.accept || a.maxSize ? (l(), o("span", gi, [
5221
- a.accept ? (l(), o("span", ki, " • " + F(a.accept), 1)) : x("", !0),
5222
- a.maxSize ? (l(), o("span", xi, " • Max " + F(h(a.maxSize)), 1)) : x("", !0)
5239
+ a.accept || a.maxSize ? (l(), o("span", pi, [
5240
+ a.accept ? (l(), o("span", gi, " • " + F(a.accept), 1)) : x("", !0),
5241
+ a.maxSize ? (l(), o("span", ki, " • Max " + F(h(a.maxSize)), 1)) : x("", !0)
5223
5242
  ])) : x("", !0)
5224
5243
  ])
5225
5244
  ])
5226
- ], 42, mi),
5245
+ ], 42, vi),
5227
5246
  a.showFileList && k.value.length > 0 ? (l(), o("div", {
5228
5247
  key: 0,
5229
5248
  class: "su-file-upload-list",
@@ -5235,27 +5254,27 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5235
5254
  class: K(["su-file-upload-item", `su-file-upload-item--${j.status}`]),
5236
5255
  role: "listitem"
5237
5256
  }, [
5238
- d("div", wi, [
5257
+ d("div", $i, [
5239
5258
  j.preview ? (l(), o("img", {
5240
5259
  key: 0,
5241
5260
  src: j.preview,
5242
5261
  alt: `Aperçu de ${j.name}`,
5243
5262
  class: "su-file-upload-preview-image"
5244
- }, null, 8, Bi)) : (l(), U(ee(M(j.file)), {
5263
+ }, null, 8, wi)) : (l(), U(ee(M(j.file)), {
5245
5264
  key: 1,
5246
5265
  class: "su-file-upload-item-icon",
5247
5266
  "aria-hidden": "true"
5248
5267
  }))
5249
5268
  ]),
5250
- d("div", Ci, [
5251
- d("div", Ii, F(j.name), 1),
5252
- d("div", Li, [
5253
- d("span", zi, F(h(j.size)), 1),
5254
- j.status === "uploading" && j.progress !== void 0 ? (l(), o("span", Di, F(j.progress) + "% ", 1)) : x("", !0),
5255
- j.error ? (l(), o("span", Vi, F(j.error), 1)) : x("", !0)
5269
+ d("div", Bi, [
5270
+ d("div", Ci, F(j.name), 1),
5271
+ d("div", Ii, [
5272
+ d("span", Li, F(h(j.size)), 1),
5273
+ j.status === "uploading" && j.progress !== void 0 ? (l(), o("span", zi, F(j.progress) + "% ", 1)) : x("", !0),
5274
+ j.error ? (l(), o("span", Di, F(j.error), 1)) : x("", !0)
5256
5275
  ])
5257
5276
  ]),
5258
- d("div", Mi, [
5277
+ d("div", Vi, [
5259
5278
  j.status === "success" ? (l(), U(oe(Ee), {
5260
5279
  key: 0,
5261
5280
  class: "su-file-upload-status-icon su-file-upload-status-icon--success",
@@ -5264,7 +5283,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5264
5283
  key: 1,
5265
5284
  class: "su-file-upload-status-icon su-file-upload-status-icon--error",
5266
5285
  "aria-hidden": "true"
5267
- })) : j.status === "uploading" ? (l(), o("div", qi, [...S[1] || (S[1] = [
5286
+ })) : j.status === "uploading" ? (l(), o("div", Mi, [...S[1] || (S[1] = [
5268
5287
  d("svg", {
5269
5288
  class: "su-spinner",
5270
5289
  viewBox: "0 0 24 24"
@@ -5298,7 +5317,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5298
5317
  class: "su-file-upload-remove-icon",
5299
5318
  "aria-hidden": "true"
5300
5319
  })
5301
- ], 8, Ri)) : j.status === "uploading" && a.showProgress ? (l(), o("div", {
5320
+ ], 8, qi)) : j.status === "uploading" && a.showProgress ? (l(), o("div", {
5302
5321
  key: 1,
5303
5322
  class: "su-file-upload-progress-bar",
5304
5323
  role: "progressbar",
@@ -5311,21 +5330,21 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5311
5330
  class: "su-file-upload-progress-fill",
5312
5331
  style: te({ width: `${j.progress || 0}%` })
5313
5332
  }, null, 4)
5314
- ], 8, Ai)) : x("", !0)
5333
+ ], 8, Ri)) : x("", !0)
5315
5334
  ], 2))), 128))
5316
- ], 8, $i)) : x("", !0)
5335
+ ], 8, xi)) : x("", !0)
5317
5336
  ], 2)
5318
5337
  ]),
5319
5338
  _: 1
5320
5339
  }, 8, ["field-id", "label", "message", "state", "required", "disabled"]));
5321
5340
  }
5322
- }), Si = {
5341
+ }), Ai = {
5323
5342
  key: 0,
5324
5343
  class: "su-form-fields-head"
5325
- }, Fi = { class: "su-form-fields-content" }, Pi = {
5344
+ }, Si = { class: "su-form-fields-content" }, Fi = {
5326
5345
  key: 1,
5327
5346
  class: "su-form-fields-footer"
5328
- }, Ei = /* @__PURE__ */ N({
5347
+ }, Pi = /* @__PURE__ */ Y({
5329
5348
  __name: "FormFields",
5330
5349
  props: {
5331
5350
  gap: { default: "md" },
@@ -5344,7 +5363,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5344
5363
  },
5345
5364
  setup(a) {
5346
5365
  const s = a, t = Ie(), e = [
5347
- Ke,
5366
+ Oe,
5348
5367
  ra,
5349
5368
  ua,
5350
5369
  da,
@@ -5352,12 +5371,12 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5352
5371
  va,
5353
5372
  na,
5354
5373
  fa
5355
- ], i = n(() => [
5374
+ ], i = r(() => [
5356
5375
  "su-form-fields",
5357
5376
  `su-form-fields--gap-${s.gap}`,
5358
5377
  `su-form-fields--section-gap-${s.sectionGap}`,
5359
5378
  `su-form-fields--${s.direction}`
5360
- ]), r = n(() => {
5379
+ ]), n = r(() => {
5361
5380
  var u;
5362
5381
  if (!(t != null && t.default)) return [];
5363
5382
  const b = ((u = t == null ? void 0 : t.default) == null ? void 0 : u.call(t)) ?? [], c = [];
@@ -5371,26 +5390,26 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5371
5390
  console.warn("FormFields expects only form field components as children. Found:", f.type);
5372
5391
  }
5373
5392
  return c;
5374
- }), $ = n(() => {
5393
+ }), $ = r(() => {
5375
5394
  const b = {};
5376
5395
  return s.ariaLabel && (b["aria-label"] = s.ariaLabel), s.ariaDescribedBy && (b["aria-describedby"] = s.ariaDescribedBy), s.role && (b.role = s.role), b;
5377
5396
  });
5378
5397
  return (b, c) => (l(), o("div", Q({ class: i.value }, $.value), [
5379
- b.$slots.head ? (l(), o("div", Si, [
5380
- Y(b.$slots, "head")
5398
+ b.$slots.head ? (l(), o("div", Ai, [
5399
+ N(b.$slots, "head")
5381
5400
  ])) : x("", !0),
5382
- d("div", Fi, [
5383
- (l(!0), o(_, null, ue(r.value, (u, f) => (l(), U(ee(u), { key: f }))), 128))
5401
+ d("div", Si, [
5402
+ (l(!0), o(_, null, ue(n.value, (u, f) => (l(), U(ee(u), { key: f }))), 128))
5384
5403
  ]),
5385
- b.$slots.footer ? (l(), o("div", Pi, [
5386
- Y(b.$slots, "footer")
5404
+ b.$slots.footer ? (l(), o("div", Fi, [
5405
+ N(b.$slots, "footer")
5387
5406
  ])) : x("", !0)
5388
5407
  ], 16));
5389
5408
  }
5390
- }), Ti = Symbol("SurgeuiTheme"), Hi = {}, ji = {
5409
+ }), Ei = Symbol("SurgeuiTheme"), Ti = {}, Oi = {
5391
5410
  install(a, s = {}) {
5392
- const { prefix: t = "Su", theme: e = {} } = s, i = { ...Hi, ...e }, r = document.documentElement, { button: $, link: b } = i;
5393
- if (a.provide(Ti, i), typeof document < "u" && (i != null && i.textPrimaryColor && r.style.setProperty("--su-text-primary-color", `${i == null ? void 0 : i.textPrimaryColor}`), i != null && i.textSecondaryColor && r.style.setProperty("--su-text-secondary-color", `${i == null ? void 0 : i.textSecondaryColor}`), i != null && i.textTeriaryColor && r.style.setProperty("--su-text-tertiary-color", `${i == null ? void 0 : i.textTeriaryColor}`), $ && (r.style.setProperty("--su-custom-button-bg", $.bg), r.style.setProperty("--su-custom-button-color", $.color), r.style.setProperty("--su-custom-button-border", $.border), r.style.setProperty("--su-custom-button-hover-bg", $.hoverBackground), r.style.setProperty("--su-custom-button-hover-shadow", $.hoverShadow)), b && (r.style.setProperty("--su-custom-link-color", b.color), r.style.setProperty("--su-custom-link-hover-color", b.hoverColor), r.style.setProperty("--su-custom-link-hover-bg-color", b.hoverBackground), r.style.setProperty("--su-custom-link-active-color", b.activeColor))), i != null && i.linkVariant) {
5411
+ const { prefix: t = "Su", theme: e = {} } = s, i = { ...Ti, ...e }, n = document.documentElement, { button: $, link: b } = i;
5412
+ if (a.provide(Ei, i), typeof document < "u" && (i != null && i.textPrimaryColor && n.style.setProperty("--su-text-primary-color", `${i == null ? void 0 : i.textPrimaryColor}`), i != null && i.textSecondaryColor && n.style.setProperty("--su-text-secondary-color", `${i == null ? void 0 : i.textSecondaryColor}`), i != null && i.textTeriaryColor && n.style.setProperty("--su-text-tertiary-color", `${i == null ? void 0 : i.textTeriaryColor}`), $ && (n.style.setProperty("--su-custom-button-bg", $.bg), n.style.setProperty("--su-custom-button-color", $.color), n.style.setProperty("--su-custom-button-border", $.border), n.style.setProperty("--su-custom-button-hover-bg", $.hoverBackground), n.style.setProperty("--su-custom-button-hover-shadow", $.hoverShadow)), b && (n.style.setProperty("--su-custom-link-color", b.color), n.style.setProperty("--su-custom-link-hover-color", b.hoverColor), n.style.setProperty("--su-custom-link-hover-bg-color", b.hoverBackground), n.style.setProperty("--su-custom-link-active-color", b.activeColor))), i != null && i.linkVariant) {
5394
5413
  const u = {
5395
5414
  default: {
5396
5415
  color: "var(--su-link-variant-default-color)",
@@ -5413,7 +5432,7 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5413
5432
  activeColor: "var(--su-link-variant-muted-active-color)"
5414
5433
  }
5415
5434
  }[i == null ? void 0 : i.linkVariant];
5416
- u && (r.style.setProperty("--su-link-variant-default-color", u.color), r.style.setProperty("--su-link-variant-default-hover-color", u.hoverColor), r.style.setProperty("--su-link-variant-default-active-color", u.activeColor));
5435
+ u && (n.style.setProperty("--su-link-variant-default-color", u.color), n.style.setProperty("--su-link-variant-default-hover-color", u.hoverColor), n.style.setProperty("--su-link-variant-default-active-color", u.activeColor));
5417
5436
  }
5418
5437
  if (i != null && i.linkSize) {
5419
5438
  const u = {
@@ -5421,13 +5440,13 @@ const At = ["aria-live", "aria-atomic"], St = { class: "su-alert__icon-wrapper"
5421
5440
  md: "md",
5422
5441
  lg: "lg"
5423
5442
  }[i == null ? void 0 : i.linkSize];
5424
- u && (r.style.setProperty("--su-link-size-md-font-size", `var(--su-link-size-${u}-font-size)`), r.style.setProperty("--su-link-size-md-line-height", `var(--su-link-size-${u}-line-height)`), r.style.setProperty("--su-link-size-md-padding", `var(--su-link-size-${u}-padding)`), r.style.setProperty("--su-link-size-md-icon-size", `var(--su-link-size-${u}-icon-size)`), r.style.setProperty("--su-link-size-md-icon-only-padding", `var(--su-link-size-${u}-icon-only-padding)`), r.style.setProperty("--su-link-size-md-icon-only-size", `var(--su-link-size-${u}-icon-only-size)`));
5443
+ u && (n.style.setProperty("--su-link-size-md-font-size", `var(--su-link-size-${u}-font-size)`), n.style.setProperty("--su-link-size-md-line-height", `var(--su-link-size-${u}-line-height)`), n.style.setProperty("--su-link-size-md-padding", `var(--su-link-size-${u}-padding)`), n.style.setProperty("--su-link-size-md-icon-size", `var(--su-link-size-${u}-icon-size)`), n.style.setProperty("--su-link-size-md-icon-only-padding", `var(--su-link-size-${u}-icon-only-padding)`), n.style.setProperty("--su-link-size-md-icon-only-size", `var(--su-link-size-${u}-icon-only-size)`));
5425
5444
  }
5426
- i != null && i.linkUnderline && r.style.setProperty("--su-link-default-underline", i == null ? void 0 : i.linkUnderline), i != null && i.dialogDisplay && r.style.setProperty("--su-dialog-default-display", i == null ? void 0 : i.dialogDisplay), a.component(`${t}Icon`, ya), a.component(`${t}Heading`, xa), a.component(`${t}Panel`, Ia), a.component(`${t}Badge`, We), a.component(`${t}Dialog`, vt), a.component(`${t}Image`, Ze), a.component(`${t}Avatar`, Ne), a.component(`${t}AvatarGroup`, Za), a.component(`${t}Tabs`, pt), a.component(`${t}Accordion`, Lt), a.component(`${t}AccordionItem`, Je), a.component(`${t}Progress`, _e), a.component(`${t}Spinner`, Pe), a.component(`${t}Spinner`, Tt), a.component(`${t}Button`, Me), a.component(`${t}ButtonGroup`, _t), a.component(`${t}LinkGroup`, Jt), a.component(`${t}FloatButton`, ll), a.component(`${t}Dropdown`, Qt), a.component(`${t}Input`, aa), a.component(`${t}Textarea`, ta), a.component(`${t}SelectBox`, la), a.component(`${t}RadioGroup`, sa), a.component(`${t}CheckboxGroup`, ia), a.component(`${t}FileUpload`, ks), a.component(`${t}Switch`, oa), a.component(`${t}Slider`, Ks), a.component(`${t}Password`, Ys), a.component(`${t}FormField`, ge), a.component(`${t}InputField`, Ke), a.component(`${t}TextareaField`, na), a.component(`${t}SelectBoxField`, ra), a.component(`${t}RadioGroupField`, ua), a.component(`${t}CheckboxGroupField`, da), a.component(`${t}SwitchField`, ca), a.component(`${t}SliderField`, fa), a.component(`${t}FileUploadField`, va), a.component(`${t}FormFields`, Ei);
5445
+ i != null && i.linkUnderline && n.style.setProperty("--su-link-default-underline", i == null ? void 0 : i.linkUnderline), i != null && i.dialogDisplay && n.style.setProperty("--su-dialog-default-display", i == null ? void 0 : i.dialogDisplay), a.component(`${t}Icon`, ya), a.component(`${t}Heading`, xa), a.component(`${t}Panel`, Ia), a.component(`${t}Badge`, Ne), a.component(`${t}Dialog`, vt), a.component(`${t}Image`, We), a.component(`${t}Avatar`, Ye), a.component(`${t}AvatarGroup`, Za), a.component(`${t}Tabs`, pt), a.component(`${t}Accordion`, Lt), a.component(`${t}AccordionItem`, _e), a.component(`${t}Progress`, ea), a.component(`${t}Spinner`, Pe), a.component(`${t}Spinner`, Tt), a.component(`${t}Button`, Me), a.component(`${t}ButtonGroup`, _t), a.component(`${t}Link`, Ke), a.component(`${t}LinkGroup`, Jt), a.component(`${t}FloatButton`, ll), a.component(`${t}Dropdown`, Qt), a.component(`${t}Input`, aa), a.component(`${t}Textarea`, ta), a.component(`${t}SelectBox`, la), a.component(`${t}RadioGroup`, sa), a.component(`${t}CheckboxGroup`, ia), a.component(`${t}FileUpload`, ks), a.component(`${t}Switch`, oa), a.component(`${t}Slider`, Ks), a.component(`${t}Password`, Ns), a.component(`${t}FormField`, ge), a.component(`${t}InputField`, Oe), a.component(`${t}TextareaField`, na), a.component(`${t}SelectBoxField`, ra), a.component(`${t}RadioGroupField`, ua), a.component(`${t}CheckboxGroupField`, da), a.component(`${t}SwitchField`, ca), a.component(`${t}SliderField`, fa), a.component(`${t}FileUploadField`, va), a.component(`${t}FormFields`, Pi);
5427
5446
  }
5428
5447
  };
5429
5448
  export {
5430
- Oi as $,
5449
+ Ki as $,
5431
5450
  Lt as A,
5432
5451
  ll as B,
5433
5452
  Qt as C,
@@ -5440,8 +5459,8 @@ export {
5440
5459
  ks as J,
5441
5460
  oa as K,
5442
5461
  Ks as L,
5443
- Ys as M,
5444
- Ke as N,
5462
+ Ns as M,
5463
+ Oe as N,
5445
5464
  ra as O,
5446
5465
  Ia as P,
5447
5466
  ua as Q,
@@ -5453,32 +5472,32 @@ export {
5453
5472
  na as W,
5454
5473
  fa as X,
5455
5474
  ge as Y,
5456
- Ei as Z,
5475
+ Pi as Z,
5457
5476
  ya as _,
5458
5477
  Ee as a,
5459
- ji as a0,
5478
+ Oi as a0,
5460
5479
  Ve as b,
5461
5480
  Te as c,
5462
- Ye as d,
5463
- Xe as e,
5481
+ Xe as d,
5482
+ Qe as e,
5464
5483
  He as f,
5465
5484
  lt as g,
5466
5485
  st as h,
5467
5486
  it as i,
5468
- Oe as j,
5487
+ je as j,
5469
5488
  ot as k,
5470
- Qe as l,
5489
+ Je as l,
5471
5490
  we as m,
5472
- Ze as n,
5473
- Ne as o,
5491
+ We as n,
5492
+ Ye as o,
5474
5493
  Za as p,
5475
- We as q,
5494
+ Ne as q,
5476
5495
  tt as r,
5477
5496
  vt as s,
5478
- _e as t,
5479
- Je as u,
5497
+ ea as t,
5498
+ _e as u,
5480
5499
  Tt as v,
5481
- ea as w,
5500
+ Ke as w,
5482
5501
  Jt as x,
5483
5502
  Me as y,
5484
5503
  _t as z