@maltjoy/core-vue 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/core-vue.js CHANGED
@@ -5,12 +5,12 @@ function $t(e) {
5
5
  return;
6
6
  const l = t.getBoundingClientRect(), o = "joy-ripple-effect";
7
7
  let n;
8
- const i = t.querySelector(`.${o}`);
9
- i || (n = document.createElement("span"), n.classList.add(o));
10
- const a = i || n;
8
+ const r = t.querySelector(`.${o}`);
9
+ r || (n = document.createElement("span"), n.classList.add(o));
10
+ const a = r || n;
11
11
  t.prepend(a);
12
- const r = Math.sqrt(Math.pow(l.width, 2) + Math.pow(l.height, 2)) * 2;
13
- a.style.width = a.style.height = `${r}px`, a.style.left = `${e.clientX - l.left}px`, a.style.top = `${e.clientY - l.top}px`;
12
+ const i = Math.sqrt(Math.pow(l.width, 2) + Math.pow(l.height, 2)) * 2;
13
+ a.style.width = a.style.height = `${i}px`, a.style.left = `${e.clientX - l.left}px`, a.style.top = `${e.clientY - l.top}px`;
14
14
  }
15
15
  const Rt = {
16
16
  mounted: (e) => {
@@ -28,26 +28,26 @@ function Jo(e, t) {
28
28
  const l = Eo, o = [];
29
29
  if (!e || typeof e != "string")
30
30
  return o;
31
- let n = "", i, a;
32
- for (const r of e) {
33
- const s = l.includes(r);
31
+ let n = "", r, a;
32
+ for (const i of e) {
33
+ const s = l.includes(i);
34
34
  if (s === !0) {
35
- o.push(n), n = "", i = void 0;
35
+ o.push(n), n = "", r = void 0;
36
36
  continue;
37
37
  }
38
- const d = zo(r);
38
+ const d = zo(i);
39
39
  if (a === !1) {
40
- if (i === !1 && d === !0) {
41
- o.push(n), n = r, i = d;
40
+ if (r === !1 && d === !0) {
41
+ o.push(n), n = i, r = d;
42
42
  continue;
43
43
  }
44
- if (i === !0 && d === !1 && n.length > 1) {
44
+ if (r === !0 && d === !1 && n.length > 1) {
45
45
  const p = n.at(-1);
46
- o.push(n.slice(0, Math.max(0, n.length - 1))), n = p + r, i = d;
46
+ o.push(n.slice(0, Math.max(0, n.length - 1))), n = p + i, r = d;
47
47
  continue;
48
48
  }
49
49
  }
50
- n += r, i = d, a = s;
50
+ n += i, r = d, a = s;
51
51
  }
52
52
  return o.push(n), o;
53
53
  }
@@ -200,14 +200,14 @@ const Fo = ["role", "tabindex", "aria-label", "title"], R = /* @__PURE__ */ L({
200
200
  },
201
201
  setup(e, { expose: t }) {
202
202
  const l = e, o = C(!0);
203
- let n, i;
204
- const a = "joy-snackbar-" + Xe(), r = V(() => Nt(l.level));
203
+ let n, r;
204
+ const a = "joy-snackbar-" + Xe(), i = V(() => Nt(l.level));
205
205
  function s() {
206
206
  var b;
207
207
  (b = l.bus) == null || b.emit("snackbar:action-click");
208
208
  }
209
209
  function d() {
210
- n && clearTimeout(n), i && clearTimeout(i);
210
+ n && clearTimeout(n), r && clearTimeout(r);
211
211
  }
212
212
  function p() {
213
213
  var b;
@@ -220,7 +220,7 @@ const Fo = ["role", "tabindex", "aria-label", "title"], R = /* @__PURE__ */ L({
220
220
  n = setTimeout(u, l.duration), m();
221
221
  }
222
222
  function m() {
223
- i = setTimeout(function() {
223
+ r = setTimeout(function() {
224
224
  var b;
225
225
  (b = l.bus) == null || b.emit("snackbar:hide");
226
226
  }, l.duration + 300);
@@ -250,7 +250,7 @@ const Fo = ["role", "tabindex", "aria-label", "title"], R = /* @__PURE__ */ L({
250
250
  v("div", Oo, [
251
251
  O(R, {
252
252
  color: "white",
253
- name: r.value,
253
+ name: i.value,
254
254
  size: "small"
255
255
  }, null, 8, ["name"])
256
256
  ]),
@@ -331,7 +331,7 @@ function Wt(e = { appendTo: "body", defaultMountSelector: qt }) {
331
331
  `, document.head.appendChild(l), document.getElementById(t.id) === null && (e.appendTo === "body" ? document.body.appendChild(t) : (o = document.body.querySelector(e.appendTo)) == null || o.appendChild(t));
332
332
  }
333
333
  function Us(e) {
334
- var i, a;
334
+ var r, a;
335
335
  He++;
336
336
  let t, l;
337
337
  const o = Uo();
@@ -343,9 +343,9 @@ function Us(e) {
343
343
  })
344
344
  );
345
345
  const n = document.createElement("div");
346
- return n.classList.add("joy-snackbar__shell"), l = `${Go}${He}`, n.id = l, e.snackbarHostId ? (i = document.getElementById(e.snackbarHostId)) == null || i.appendChild(n) : (a = document.getElementById(qt)) == null || a.appendChild(n), t.use(Yo).mount("#" + l), Ht.push(t), o.on("snackbar:hide", () => {
347
- var r;
348
- t.unmount(), (r = document.getElementById(l)) == null || r.remove();
346
+ return n.classList.add("joy-snackbar__shell"), l = `${Go}${He}`, n.id = l, e.snackbarHostId ? (r = document.getElementById(e.snackbarHostId)) == null || r.appendChild(n) : (a = document.getElementById(qt)) == null || a.appendChild(n), t.use(Yo).mount("#" + l), Ht.push(t), o.on("snackbar:hide", () => {
347
+ var i;
348
+ t.unmount(), (i = document.getElementById(l)) == null || i.remove();
349
349
  }), {
350
350
  snackbarEventBus: o,
351
351
  snackbarApp: t
@@ -409,9 +409,9 @@ const Ko = { class: "joy-admin-banner" }, Zo = { class: "joy-admin-banner__label
409
409
  },
410
410
  emits: ["click"],
411
411
  setup(e, { expose: t, emit: l }) {
412
- const o = l, n = e, i = V(() => n.size === "large" ? "medium" : n.size === "medium" ? "small" : n.size === "small" ? "xsmall" : "xxsmall"), a = V(() => n.link ? {
412
+ const o = l, n = e, r = V(() => n.size === "large" ? "medium" : n.size === "medium" ? "small" : n.size === "small" ? "xsmall" : "xxsmall"), a = V(() => n.link ? {
413
413
  type: "button"
414
- } : null), r = V(() => ({
414
+ } : null), i = V(() => ({
415
415
  "joy-avatar": !0,
416
416
  "joy-avatar__link": n.link,
417
417
  "joy-avatar__placeholder": s.value,
@@ -442,7 +442,7 @@ const Ko = { class: "joy-admin-banner" }, Zo = { class: "joy-admin-banner__label
442
442
  }, [
443
443
  (c(), T(Z(u.link ? "button" : "div"), H(a.value, {
444
444
  title: u.fullName,
445
- class: [r.value],
445
+ class: [i.value],
446
446
  onClick: p
447
447
  }), {
448
448
  default: z(() => [
@@ -450,7 +450,7 @@ const Ko = { class: "joy-admin-banner" }, Zo = { class: "joy-admin-banner__label
450
450
  key: 0,
451
451
  name: u.placeholder,
452
452
  color: "neutral-50",
453
- size: i.value
453
+ size: r.value
454
454
  }, null, 8, ["name", "size"])) : _("", !0),
455
455
  u.photoUrl ? (c(), g("img", {
456
456
  key: 1,
@@ -633,7 +633,7 @@ const fn = { class: "joy-badge-level" }, pn = {
633
633
  }
634
634
  });
635
635
  return (o, n) => (c(), g("span", fn, [
636
- e.type === q(X).SUPER_MALTER ? (c(!0), g(W, { key: 0 }, U(e.superMalterLevel, (i, a) => (c(), g("svg", {
636
+ e.type === q(X).SUPER_MALTER ? (c(!0), g(W, { key: 0 }, U(e.superMalterLevel, (r, a) => (c(), g("svg", {
637
637
  key: a,
638
638
  class: "joy-badge-level__supermalter",
639
639
  xmlns: "http://www.w3.org/2000/svg",
@@ -733,7 +733,7 @@ const fn = { class: "joy-badge-level" }, pn = {
733
733
  let n = "1 0";
734
734
  return t.width && (n += ` ${t.width}`), n;
735
735
  });
736
- return (n, i) => (c(), g("div", {
736
+ return (n, r) => (c(), g("div", {
737
737
  "aria-hidden": "true",
738
738
  class: I({
739
739
  "joy-block-skeleton": !0,
@@ -804,7 +804,7 @@ const fn = { class: "joy-badge-level" }, pn = {
804
804
  }
805
805
  },
806
806
  setup(e, { expose: t }) {
807
- const l = e, o = be(), n = Fe() + "--JoyButton", i = V(() => {
807
+ const l = e, o = be(), n = Fe() + "--JoyButton", r = V(() => {
808
808
  switch (l.size) {
809
809
  case "xxsmall":
810
810
  return "xxsmall";
@@ -818,7 +818,7 @@ const fn = { class: "joy-badge-level" }, pn = {
818
818
  return "small";
819
819
  }
820
820
  }), a = V(() => ["ghost", "secondary"].includes(l.variant) ? "teal" : "white");
821
- return t({ generatedId: n }), (r, s) => {
821
+ return t({ generatedId: n }), (i, s) => {
822
822
  const d = ct("joy-ripple");
823
823
  return Ke((c(), T(Z(q(o).href ? "a" : "button"), {
824
824
  id: e.id,
@@ -833,14 +833,14 @@ const fn = { class: "joy-badge-level" }, pn = {
833
833
  "joy-button_loading": e.loading
834
834
  }
835
835
  ]),
836
- "aria-labelledby": (r.$slots.default || e.label) && n
836
+ "aria-labelledby": (i.$slots.default || e.label) && n
837
837
  }, {
838
838
  default: z(() => [
839
839
  e.icon && e.iconPosition === "left" ? (c(), T(R, {
840
840
  key: 0,
841
841
  class: "joy-button_icon joy-button_icon--left",
842
842
  name: e.icon,
843
- size: i.value,
843
+ size: r.value,
844
844
  "aria-hidden": "true"
845
845
  }, null, 8, ["name", "size"])) : _("", !0),
846
846
  e.loading ? (c(), T(Ut, {
@@ -851,7 +851,7 @@ const fn = { class: "joy-badge-level" }, pn = {
851
851
  id: n,
852
852
  class: "joy-button--slot"
853
853
  }, [
854
- w(r.$slots, "default", {}, () => [
854
+ w(i.$slots, "default", {}, () => [
855
855
  D(J(e.label), 1)
856
856
  ], !0)
857
857
  ]),
@@ -859,7 +859,7 @@ const fn = { class: "joy-badge-level" }, pn = {
859
859
  key: 2,
860
860
  class: "joy-button_icon joy-button_icon--right",
861
861
  name: e.icon,
862
- size: i.value,
862
+ size: r.value,
863
863
  "aria-hidden": "true"
864
864
  }, null, 8, ["name", "size"])) : _("", !0)
865
865
  ]),
@@ -901,16 +901,16 @@ function je(...e) {
901
901
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([l, o, n] = e, t = yt) : [t, l, o, n] = e, !t)
902
902
  return Le;
903
903
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
904
- const i = [], a = () => {
905
- i.forEach((p) => p()), i.length = 0;
906
- }, r = (p, u, f, m) => (p.addEventListener(u, f, m), () => p.removeEventListener(u, f, m)), s = K(
904
+ const r = [], a = () => {
905
+ r.forEach((p) => p()), r.length = 0;
906
+ }, i = (p, u, f, m) => (p.addEventListener(u, f, m), () => p.removeEventListener(u, f, m)), s = K(
907
907
  () => [_e(t), me(n)],
908
908
  ([p, u]) => {
909
909
  if (a(), !p)
910
910
  return;
911
911
  const f = Gt(u) ? { ...u } : u;
912
- i.push(
913
- ...l.flatMap((m) => o.map((y) => r(p, m, y, f)))
912
+ r.push(
913
+ ...l.flatMap((m) => o.map((y) => i(p, m, y, f)))
914
914
  );
915
915
  },
916
916
  { immediate: !0, flush: "post" }
@@ -921,11 +921,11 @@ function je(...e) {
921
921
  }
922
922
  let Vt = !1;
923
923
  function Sn(e, t, l = {}) {
924
- const { window: o = yt, ignore: n = [], capture: i = !0, detectIframe: a = !1 } = l;
924
+ const { window: o = yt, ignore: n = [], capture: r = !0, detectIframe: a = !1 } = l;
925
925
  if (!o)
926
926
  return Le;
927
927
  at && !Vt && (Vt = !0, Array.from(o.document.body.children).forEach((f) => f.addEventListener("click", Le)), o.document.documentElement.addEventListener("click", Le));
928
- let r = !0;
928
+ let i = !0;
929
929
  const s = (f) => n.some((m) => {
930
930
  if (typeof m == "string")
931
931
  return Array.from(o.document.querySelectorAll(m)).some((y) => y === f.target || f.composedPath().includes(y));
@@ -937,16 +937,16 @@ function Sn(e, t, l = {}) {
937
937
  je(o, "click", (f) => {
938
938
  const m = _e(e);
939
939
  if (!(!m || m === f.target || f.composedPath().includes(m))) {
940
- if (f.detail === 0 && (r = !s(f)), !r) {
941
- r = !0;
940
+ if (f.detail === 0 && (i = !s(f)), !i) {
941
+ i = !0;
942
942
  return;
943
943
  }
944
944
  t(f);
945
945
  }
946
- }, { passive: !0, capture: i }),
946
+ }, { passive: !0, capture: r }),
947
947
  je(o, "pointerdown", (f) => {
948
948
  const m = _e(e);
949
- r = !s(f) && !!(m && !f.composedPath().includes(m));
949
+ i = !s(f) && !!(m && !f.composedPath().includes(m));
950
950
  }, { passive: !0 }),
951
951
  a && je(o, "blur", (f) => {
952
952
  setTimeout(() => {
@@ -970,9 +970,9 @@ function Vn(e) {
970
970
  }
971
971
  function Tn(e, t = {}) {
972
972
  const l = C(!1), o = Ot(null);
973
- let n = 0, i = !0;
973
+ let n = 0, r = !0;
974
974
  if (et) {
975
- const a = typeof t == "function" ? { onDrop: t } : t, r = (s) => {
975
+ const a = typeof t == "function" ? { onDrop: t } : t, i = (s) => {
976
976
  var d, p;
977
977
  const u = Array.from((p = (d = s.dataTransfer) == null ? void 0 : d.files) != null ? p : []);
978
978
  return o.value = u.length === 0 ? null : u;
@@ -982,19 +982,19 @@ function Tn(e, t = {}) {
982
982
  const u = Array.from(((d = s == null ? void 0 : s.dataTransfer) == null ? void 0 : d.items) || []).map((f) => f.kind === "file" ? f.type : null).filter(_n);
983
983
  if (a.dataTypes && s.dataTransfer) {
984
984
  const f = q(a.dataTypes);
985
- if (i = typeof f == "function" ? f(u) : f ? f.some((m) => u.includes(m)) : !0, !i)
985
+ if (r = typeof f == "function" ? f(u) : f ? f.some((m) => u.includes(m)) : !0, !r)
986
986
  return;
987
987
  }
988
- s.preventDefault(), n += 1, l.value = !0, (p = a.onEnter) == null || p.call(a, r(s), s);
988
+ s.preventDefault(), n += 1, l.value = !0, (p = a.onEnter) == null || p.call(a, i(s), s);
989
989
  }), je(e, "dragover", (s) => {
990
990
  var d;
991
- i && (s.preventDefault(), (d = a.onOver) == null || d.call(a, r(s), s));
991
+ r && (s.preventDefault(), (d = a.onOver) == null || d.call(a, i(s), s));
992
992
  }), je(e, "dragleave", (s) => {
993
993
  var d;
994
- i && (s.preventDefault(), n -= 1, n === 0 && (l.value = !1), (d = a.onLeave) == null || d.call(a, r(s), s));
994
+ r && (s.preventDefault(), n -= 1, n === 0 && (l.value = !1), (d = a.onLeave) == null || d.call(a, i(s), s));
995
995
  }), je(e, "drop", (s) => {
996
996
  var d;
997
- s.preventDefault(), n = 0, l.value = !1, (d = a.onDrop) == null || d.call(a, r(s), s);
997
+ s.preventDefault(), n = 0, l.value = !1, (d = a.onDrop) == null || d.call(a, i(s), s);
998
998
  });
999
999
  }
1000
1000
  return {
@@ -1004,21 +1004,21 @@ function Tn(e, t = {}) {
1004
1004
  }
1005
1005
  function xn(e, t, l = {}) {
1006
1006
  const { window: o = yt, ...n } = l;
1007
- let i;
1008
- const a = Vn(() => o && "ResizeObserver" in o), r = () => {
1009
- i && (i.disconnect(), i = void 0);
1007
+ let r;
1008
+ const a = Vn(() => o && "ResizeObserver" in o), i = () => {
1009
+ r && (r.disconnect(), r = void 0);
1010
1010
  }, s = V(() => Array.isArray(e) ? e.map((u) => _e(u)) : [_e(e)]), d = K(
1011
1011
  s,
1012
1012
  (u) => {
1013
- if (r(), a.value && o) {
1014
- i = new ResizeObserver(t);
1013
+ if (i(), a.value && o) {
1014
+ r = new ResizeObserver(t);
1015
1015
  for (const f of u)
1016
- f && i.observe(f, n);
1016
+ f && r.observe(f, n);
1017
1017
  }
1018
1018
  },
1019
1019
  { immediate: !0, flush: "post" }
1020
1020
  ), p = () => {
1021
- r(), d();
1021
+ i(), d();
1022
1022
  };
1023
1023
  return Qe(p), {
1024
1024
  isSupported: a,
@@ -1027,13 +1027,13 @@ function xn(e, t, l = {}) {
1027
1027
  }
1028
1028
  function In(e) {
1029
1029
  var t;
1030
- const l = C(e == null ? void 0 : e.element), o = C(e == null ? void 0 : e.input), n = (t = e == null ? void 0 : e.styleProp) != null ? t : "height", i = C(1);
1030
+ const l = C(e == null ? void 0 : e.element), o = C(e == null ? void 0 : e.input), n = (t = e == null ? void 0 : e.styleProp) != null ? t : "height", r = C(1);
1031
1031
  function a() {
1032
- var r, s;
1032
+ var i, s;
1033
1033
  if (!l.value)
1034
1034
  return;
1035
1035
  let d = "";
1036
- l.value.style[n] = "1px", i.value = (r = l.value) == null ? void 0 : r.scrollHeight, e != null && e.styleTarget ? me(e.styleTarget).style[n] = `${i.value}px` : d = `${i.value}px`, l.value.style[n] = d, (s = e == null ? void 0 : e.onResize) == null || s.call(e);
1036
+ l.value.style[n] = "1px", r.value = (i = l.value) == null ? void 0 : i.scrollHeight, e != null && e.styleTarget ? me(e.styleTarget).style[n] = `${r.value}px` : d = `${r.value}px`, l.value.style[n] = d, (s = e == null ? void 0 : e.onResize) == null || s.call(e);
1037
1037
  }
1038
1038
  return K([o, l], () => Me(a), { immediate: !0 }), xn(l, () => a()), e != null && e.watch && K(e.watch, a, { immediate: !0, deep: !0 }), {
1039
1039
  textarea: l,
@@ -1066,16 +1066,16 @@ function An(...e) {
1066
1066
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([l, o, n] = e, t = Bn) : [t, l, o, n] = e, !t)
1067
1067
  return Le;
1068
1068
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
1069
- const i = [], a = () => {
1070
- i.forEach((p) => p()), i.length = 0;
1071
- }, r = (p, u, f, m) => (p.addEventListener(u, f, m), () => p.removeEventListener(u, f, m)), s = K(
1069
+ const r = [], a = () => {
1070
+ r.forEach((p) => p()), r.length = 0;
1071
+ }, i = (p, u, f, m) => (p.addEventListener(u, f, m), () => p.removeEventListener(u, f, m)), s = K(
1072
1072
  () => [Ln(t), me(n)],
1073
1073
  ([p, u]) => {
1074
1074
  if (a(), !p)
1075
1075
  return;
1076
1076
  const f = Gt(u) ? { ...u } : u;
1077
- i.push(
1078
- ...l.flatMap((m) => o.map((y) => r(p, m, y, f)))
1077
+ r.push(
1078
+ ...l.flatMap((m) => o.map((y) => i(p, m, y, f)))
1079
1079
  );
1080
1080
  },
1081
1081
  { immediate: !0, flush: "post" }
@@ -1104,8 +1104,8 @@ const Ne = /* @__PURE__ */ new WeakMap();
1104
1104
  function zn(e, t = !1) {
1105
1105
  const l = C(t);
1106
1106
  let o = null, n;
1107
- K($n(e), (r) => {
1108
- const s = lt(me(r));
1107
+ K($n(e), (i) => {
1108
+ const s = lt(me(i));
1109
1109
  if (s) {
1110
1110
  const d = s;
1111
1111
  Ne.get(d) || Ne.set(d, n), l.value && (d.style.overflow = "hidden");
@@ -1113,27 +1113,27 @@ function zn(e, t = !1) {
1113
1113
  }, {
1114
1114
  immediate: !0
1115
1115
  });
1116
- const i = () => {
1117
- const r = lt(me(e));
1118
- !r || l.value || (at && (o = An(
1119
- r,
1116
+ const r = () => {
1117
+ const i = lt(me(e));
1118
+ !i || l.value || (at && (o = An(
1119
+ i,
1120
1120
  "touchmove",
1121
1121
  (s) => {
1122
1122
  En(s);
1123
1123
  },
1124
1124
  { passive: !1 }
1125
- )), r.style.overflow = "hidden", l.value = !0);
1125
+ )), i.style.overflow = "hidden", l.value = !0);
1126
1126
  }, a = () => {
1127
- var r;
1127
+ var i;
1128
1128
  const s = lt(me(e));
1129
- !s || !l.value || (at && (o == null || o()), s.style.overflow = (r = Ne.get(s)) != null ? r : "", Ne.delete(s), l.value = !1);
1129
+ !s || !l.value || (at && (o == null || o()), s.style.overflow = (i = Ne.get(s)) != null ? i : "", Ne.delete(s), l.value = !1);
1130
1130
  };
1131
1131
  return Qe(a), V({
1132
1132
  get() {
1133
1133
  return l.value;
1134
1134
  },
1135
- set(r) {
1136
- r ? i() : a();
1135
+ set(i) {
1136
+ i ? r() : a();
1137
1137
  }
1138
1138
  });
1139
1139
  }
@@ -1145,7 +1145,7 @@ function Jn() {
1145
1145
  return;
1146
1146
  e = !0;
1147
1147
  const n = zn(l, o.value);
1148
- K(t, (i) => n.value = i);
1148
+ K(t, (r) => n.value = r);
1149
1149
  };
1150
1150
  }
1151
1151
  Jn();
@@ -1161,10 +1161,10 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1161
1161
  },
1162
1162
  emits: ["bottom-sheet:close"],
1163
1163
  setup(e, { expose: t, emit: l }) {
1164
- const o = e, n = be(), i = V(() => {
1165
- if (r.value)
1164
+ const o = e, n = be(), r = V(() => {
1165
+ if (i.value)
1166
1166
  return n;
1167
- }), a = l, r = C(!1), s = C(!1), d = C(o.open), p = C(!1), u = C();
1167
+ }), a = l, i = C(!1), s = C(!1), d = C(o.open), p = C(!1), u = C();
1168
1168
  let f = 0;
1169
1169
  function m() {
1170
1170
  d.value = !0, P();
@@ -1207,17 +1207,17 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1207
1207
  k === !0 ? m() : y();
1208
1208
  }
1209
1209
  ), te(() => {
1210
- r.value = !0, o.open && P();
1210
+ i.value = !0, o.open && P();
1211
1211
  }), t({
1212
1212
  hide: y,
1213
1213
  show: m,
1214
1214
  isOpen: d,
1215
1215
  moveContainer: E
1216
- }), (k, N) => r.value ? (c(), T(ze, {
1216
+ }), (k, N) => i.value ? (c(), T(ze, {
1217
1217
  key: 0,
1218
1218
  to: k.teleport
1219
1219
  }, [
1220
- d.value ? (c(), g("div", H({ key: 0 }, i.value, {
1220
+ d.value ? (c(), g("div", H({ key: 0 }, r.value, {
1221
1221
  class: [
1222
1222
  "joy-bottom-sheet",
1223
1223
  {
@@ -1273,14 +1273,14 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1273
1273
  },
1274
1274
  emits: ["click"],
1275
1275
  setup(e, { emit: t }) {
1276
- const l = e, o = t, n = V(() => l.bottomSheet), i = G(), a = V(() => i.default());
1277
- function r() {
1276
+ const l = e, o = t, n = V(() => l.bottomSheet), r = G(), a = V(() => r.default());
1277
+ function i() {
1278
1278
  var s;
1279
1279
  o("click"), (s = n.value) == null || s.show();
1280
1280
  }
1281
1281
  return (s, d) => (c(!0), g(W, null, U(a.value, (p) => (c(), T(Z(p), {
1282
1282
  key: p,
1283
- onClick: r
1283
+ onClick: i
1284
1284
  }))), 128));
1285
1285
  }
1286
1286
  }), On = { class: "joy-checkbox__wrapper" }, Dn = { class: "joy-checkbox__input-wrapper" }, Rn = ["id", "name", "disabled", "checked", "required", "value", "indeterminate"], Nn = { class: "joy-checkbox__content-wrapper" }, qn = { class: "joy-checkbox__content" }, Hn = /* @__PURE__ */ L({
@@ -1335,10 +1335,10 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1335
1335
  },
1336
1336
  emits: ["update:checked", "focus", "blur"],
1337
1337
  setup(e, { expose: t, emit: l }) {
1338
- const o = l, n = e, i = C(), a = C(n.indeterminate), r = C(n.invalid), s = C(!1), d = {
1338
+ const o = l, n = e, r = C(), a = C(n.indeterminate), i = C(n.invalid), s = C(!1), d = {
1339
1339
  onChange: (p) => {
1340
1340
  const u = p.target.checked;
1341
- a.value = !1, r.value = !1, o("update:checked", u);
1341
+ a.value = !1, i.value = !1, o("update:checked", u);
1342
1342
  },
1343
1343
  onFocus: () => {
1344
1344
  s.value = !0, o("focus");
@@ -1357,7 +1357,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1357
1357
  "joy-checkbox__checked": e.checked,
1358
1358
  "joy-checkbox__indeterminate": a.value,
1359
1359
  "joy-checkbox__disabled": e.disabled,
1360
- "joy-checkbox__invalid": r.value,
1360
+ "joy-checkbox__invalid": i.value,
1361
1361
  "joy-checkbox__focusing": s.value && e.displayFocus
1362
1362
  }
1363
1363
  ])
@@ -1366,7 +1366,8 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1366
1366
  v("input", {
1367
1367
  id: e.id,
1368
1368
  ref_key: "input",
1369
- ref: i,
1369
+ ref: r,
1370
+ "data-joy-form-field": "",
1370
1371
  type: "checkbox",
1371
1372
  class: "joy-checkbox__input",
1372
1373
  name: e.name,
@@ -1394,7 +1395,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1394
1395
  ], 2)
1395
1396
  ]));
1396
1397
  }
1397
- }), Kt = /* @__PURE__ */ A(Hn, [["__scopeId", "data-v-2ea79197"]]), Wn = ["id"], Un = { class: "joy-collapse-item__header-right" }, Gn = {
1398
+ }), Kt = /* @__PURE__ */ A(Hn, [["__scopeId", "data-v-5365d871"]]), Wn = ["id"], Un = { class: "joy-collapse-item__header-right" }, Gn = {
1398
1399
  key: 0,
1399
1400
  class: "joy-collapse-item__summary___subheader"
1400
1401
  }, Yn = { class: "joy-collapse-item__summary___preview" }, Kn = ["aria-labelledby"], Zn = /* @__PURE__ */ L({
@@ -1429,28 +1430,28 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1429
1430
  },
1430
1431
  emits: ["collapse-item:open", "collapse-item:close"],
1431
1432
  setup(e, { expose: t, emit: l }) {
1432
- const o = e, n = l, i = C(o.open), a = C(!1);
1433
+ const o = e, n = l, r = C(o.open), a = C(!1);
1433
1434
  K(
1434
1435
  () => o.open,
1435
1436
  (d) => {
1436
- i.value = d;
1437
+ r.value = d;
1437
1438
  }
1438
1439
  );
1439
- function r() {
1440
- i.value = !i.value, s();
1440
+ function i() {
1441
+ r.value = !r.value, s();
1441
1442
  }
1442
1443
  function s() {
1443
- i.value ? n("collapse-item:open") : n("collapse-item:close");
1444
+ r.value ? n("collapse-item:open") : n("collapse-item:close");
1444
1445
  }
1445
1446
  return t({
1446
- isOpen: i,
1447
- onToggle: r,
1447
+ isOpen: r,
1448
+ onToggle: i,
1448
1449
  props: o
1449
1450
  }), (d, p) => (c(), g("div", {
1450
1451
  class: I([
1451
1452
  "joy-collapse-item",
1452
1453
  {
1453
- "joy-collapse-item--open": i.value,
1454
+ "joy-collapse-item--open": r.value,
1454
1455
  "joy-collapse-item--outline": e.mode === "outline",
1455
1456
  "joy-collapse-item--focusing": a.value
1456
1457
  }
@@ -1460,8 +1461,8 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1460
1461
  role: "button",
1461
1462
  tabindex: "0",
1462
1463
  class: "joy-collapse-item__summary",
1463
- onClick: r,
1464
- onKeydown: Oe(r, ["enter"]),
1464
+ onClick: i,
1465
+ onKeydown: Oe(i, ["enter"]),
1465
1466
  onFocus: p[0] || (p[0] = (u) => a.value = !0),
1466
1467
  onBlur: p[1] || (p[1] = (u) => a.value = !1)
1467
1468
  }, [
@@ -1489,14 +1490,14 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1489
1490
  w(d.$slots, "collapse-preview")
1490
1491
  ])
1491
1492
  ], 32),
1492
- i.value ? (c(), g("div", {
1493
+ r.value ? (c(), g("div", {
1493
1494
  key: 0,
1494
1495
  role: "region",
1495
1496
  "aria-labelledby": e.id,
1496
1497
  class: I([
1497
1498
  "joy-collapse-item__detail",
1498
1499
  {
1499
- "joy-collapse-item__detail--open": i.value
1500
+ "joy-collapse-item__detail--open": r.value
1500
1501
  }
1501
1502
  ])
1502
1503
  }, [
@@ -1529,8 +1530,8 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1529
1530
  },
1530
1531
  emits: ["update:modelValue"],
1531
1532
  setup(e, { expose: t, emit: l }) {
1532
- const o = e, n = C(o.modelValue), i = G(), a = l, r = V(() => {
1533
- const y = i.default();
1533
+ const o = e, n = C(o.modelValue), r = G(), a = l, i = V(() => {
1534
+ const y = r.default();
1534
1535
  return y.length === 1 && typeof y[0].type != "object" ? y[0].children.filter(s) : y.filter(s);
1535
1536
  });
1536
1537
  function s(y) {
@@ -1563,10 +1564,10 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1563
1564
  getValForModel: m,
1564
1565
  isItem: s,
1565
1566
  isOpen: p,
1566
- items: r,
1567
+ items: i,
1567
1568
  openedCollapseItem: n
1568
1569
  }), (y, b) => (c(), g("div", Qn, [
1569
- (c(!0), g(W, null, U(r.value, (h) => (c(), T(Xn, H({ ref_for: !0 }, h.props, {
1570
+ (c(!0), g(W, null, U(i.value, (h) => (c(), T(Xn, H({ ref_for: !0 }, h.props, {
1570
1571
  key: h.props.id,
1571
1572
  open: p(h),
1572
1573
  mode: e.mode,
@@ -1647,6 +1648,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1647
1648
  },
1648
1649
  setup(e) {
1649
1650
  return (t, l) => (c(), g("div", {
1651
+ "data-joy-form-error": "",
1650
1652
  "aria-hidden": e.visible,
1651
1653
  class: I(["joy-form-error", { "joy-has-error": e.visible }]),
1652
1654
  role: "alert"
@@ -1662,7 +1664,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1662
1664
  ])
1663
1665
  ], 10, nl));
1664
1666
  }
1665
- }), tt = /* @__PURE__ */ A(ll, [["__scopeId", "data-v-deb60895"]]), al = {
1667
+ }), tt = /* @__PURE__ */ A(ll, [["__scopeId", "data-v-d4e96d51"]]), al = {
1666
1668
  key: 0,
1667
1669
  class: "joy-label-required"
1668
1670
  }, rl = {
@@ -1690,6 +1692,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1690
1692
  },
1691
1693
  setup(e) {
1692
1694
  return (t, l) => (c(), T(Z(e.tagName), H({
1695
+ "data-joy-form-label": "",
1693
1696
  class: ["joy-label", `joy-label--${e.size}`]
1694
1697
  }, t.$attrs), {
1695
1698
  default: z(() => [
@@ -1702,7 +1705,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1702
1705
  _: 3
1703
1706
  }, 16, ["class"]));
1704
1707
  }
1705
- }), Ve = /* @__PURE__ */ A(il, [["__scopeId", "data-v-f48de041"]]);
1708
+ }), Ve = /* @__PURE__ */ A(il, [["__scopeId", "data-v-b7569c8b"]]);
1706
1709
  function sl(e) {
1707
1710
  const t = () => e();
1708
1711
  te(() => {
@@ -1794,8 +1797,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
1794
1797
  },
1795
1798
  emits: ["update:modelValue"],
1796
1799
  setup(e, { expose: t, emit: l }) {
1797
- const o = l, n = e, i = C(!1), a = C(!1), r = C();
1798
- vt(r, n.autofocus);
1800
+ const o = l, n = e, r = C(!1), a = C(!1), i = C();
1801
+ vt(i, n.autofocus);
1799
1802
  function s() {
1800
1803
  const h = u(!1);
1801
1804
  h >= 0 ? o("update:modelValue", h <= n.min ? n.min : h) : o("update:modelValue", 0), p();
@@ -1805,7 +1808,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
1805
1808
  n.max && h <= n.max ? o("update:modelValue", h >= n.max ? n.max : h) : n.max && h > n.max ? o("update:modelValue", n.max) : o("update:modelValue", h), p();
1806
1809
  }
1807
1810
  function p() {
1808
- i.value = !f();
1811
+ r.value = !f();
1809
1812
  }
1810
1813
  function u(h = !0) {
1811
1814
  const $ = n.step.toString().split("."), j = $.length === 2 ? $[1].length : 0;
@@ -1822,7 +1825,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
1822
1825
  }
1823
1826
  const b = {
1824
1827
  onInput: (h) => {
1825
- o("update:modelValue", +h.target.value || 0), i.value = !1;
1828
+ o("update:modelValue", +h.target.value || 0), r.value = !1;
1826
1829
  },
1827
1830
  onFocus: () => {
1828
1831
  a.value = !0;
@@ -1864,12 +1867,13 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
1864
1867
  v("input", H({
1865
1868
  id: e.id,
1866
1869
  ref_key: "input",
1867
- ref: r,
1870
+ ref: i,
1871
+ "data-joy-form-field": "",
1868
1872
  type: "number",
1869
- class: { "joy-counter__invalid": e.invalid || i.value },
1873
+ class: { "joy-counter__invalid": e.invalid || r.value },
1870
1874
  min: e.min,
1871
1875
  max: e.max,
1872
- "aria-invalid": e.invalid || i.value,
1876
+ "aria-invalid": e.invalid || r.value,
1873
1877
  name: e.name,
1874
1878
  required: e.required,
1875
1879
  step: "any",
@@ -1898,7 +1902,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
1898
1902
  ], 2)
1899
1903
  ]));
1900
1904
  }
1901
- }), nu = /* @__PURE__ */ A(vl, [["__scopeId", "data-v-556fd173"]]), hl = /* @__PURE__ */ L({
1905
+ }), nu = /* @__PURE__ */ A(vl, [["__scopeId", "data-v-3e354b87"]]), hl = /* @__PURE__ */ L({
1902
1906
  __name: "VJoyWrapper",
1903
1907
  props: {
1904
1908
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2055,13 +2059,13 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2055
2059
  },
2056
2060
  emits: ["dialog:open", "dialog:after-open", "dialog:hide", "dialog:after-hide", "dialog:before-unmount", "dialog:confirm"],
2057
2061
  setup(e, { expose: t, emit: l }) {
2058
- const o = e, n = l, i = Fe() + "--JoyDialog", a = G(), r = C(!1), s = C(), d = C(o.open), p = be(), u = V(() => {
2059
- if (r.value)
2062
+ const o = e, n = l, r = Fe() + "--JoyDialog", a = G(), i = C(!1), s = C(), d = C(o.open), p = be(), u = V(() => {
2063
+ if (i.value)
2060
2064
  return p;
2061
2065
  }), f = V(() => {
2062
2066
  const B = a["dialog-cancel"] || a["dialog-confirm"], P = o.cancelText || o.confirmText;
2063
2067
  return !!B || !!P;
2064
- }), y = V(() => o.id || i).value + "-header";
2068
+ }), y = V(() => o.id || r).value + "-header";
2065
2069
  function b() {
2066
2070
  !o.patternConfirm && h();
2067
2071
  }
@@ -2081,7 +2085,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2081
2085
  n("dialog:after-hide");
2082
2086
  }
2083
2087
  return te(async () => {
2084
- r.value = !0;
2088
+ i.value = !0;
2085
2089
  }), Je(() => {
2086
2090
  d.value === !0 && (n("dialog:before-unmount"), ye(!1));
2087
2091
  }), t({
@@ -2089,7 +2093,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2089
2093
  hide: h,
2090
2094
  isOpen: d,
2091
2095
  show: $
2092
- }), (B, P) => r.value ? (c(), T(ze, {
2096
+ }), (B, P) => i.value ? (c(), T(ze, {
2093
2097
  key: 0,
2094
2098
  to: e.teleport,
2095
2099
  disabled: e.disableTeleport
@@ -2104,7 +2108,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2104
2108
  }, {
2105
2109
  default: z(() => [
2106
2110
  d.value ? (c(), g("div", H({ key: 0 }, u.value, {
2107
- id: e.id || i,
2111
+ id: e.id || r,
2108
2112
  ref_key: "dialogRef",
2109
2113
  ref: s,
2110
2114
  role: "dialog",
@@ -2237,14 +2241,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2237
2241
  },
2238
2242
  emits: ["click"],
2239
2243
  setup(e, { emit: t }) {
2240
- const l = e, o = V(() => l.dialog), n = t, i = G(), a = V(() => i.default());
2241
- async function r() {
2244
+ const l = e, o = V(() => l.dialog), n = t, r = G(), a = V(() => r.default());
2245
+ async function i() {
2242
2246
  var s;
2243
2247
  n("click"), await ((s = o.value) == null ? void 0 : s.show());
2244
2248
  }
2245
2249
  return (s, d) => (c(!0), g(W, null, U(a.value, (p) => (c(), T(Z(p), {
2246
2250
  key: p,
2247
- onClick: r
2251
+ onClick: i
2248
2252
  }))), 128));
2249
2253
  }
2250
2254
  }), Vl = ["id"], Tl = { class: "joy-drawer__inner" }, xl = { class: "joy-drawer--header" }, Il = {
@@ -2319,13 +2323,13 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2319
2323
  },
2320
2324
  emits: ["drawer:open", "drawer:after-open", "drawer:hide", "drawer:after-hide", "drawer:before-unmount", "drawer:confirm"],
2321
2325
  setup(e, { expose: t, emit: l }) {
2322
- const o = e, n = l, i = Fe() + "--JoyDrawer", a = G(), r = C(!1), s = C(), d = C(o.open), p = be(), u = V(() => {
2323
- if (r.value)
2326
+ const o = e, n = l, r = Fe() + "--JoyDrawer", a = G(), i = C(!1), s = C(), d = C(o.open), p = be(), u = V(() => {
2327
+ if (i.value)
2324
2328
  return p;
2325
2329
  }), f = V(() => {
2326
2330
  const E = a["drawer-cancel"] || a["drawer-confirm"], B = o.cancelText || o.confirmText;
2327
2331
  return !!E || !!B;
2328
- }), m = V(() => o.id || i), y = m.value + "-header";
2332
+ }), m = V(() => o.id || r), y = m.value + "-header";
2329
2333
  async function b(E = { fireHideEvent: !0 }) {
2330
2334
  o.demoMode || o.onBeforeHide && !await o.onBeforeHide() || (d.value = !1, await Me(), ye(!1), E.fireHideEvent && n("drawer:hide"));
2331
2335
  }
@@ -2342,7 +2346,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2342
2346
  n("drawer:after-hide");
2343
2347
  }
2344
2348
  return te(() => {
2345
- r.value = !0;
2349
+ i.value = !0;
2346
2350
  }), Je(() => {
2347
2351
  d.value === !0 && (n("drawer:before-unmount"), ye(!1));
2348
2352
  }), t({
@@ -2350,7 +2354,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2350
2354
  hide: b,
2351
2355
  isOpen: d,
2352
2356
  show: h
2353
- }), (E, B) => r.value ? (c(), T(ze, {
2357
+ }), (E, B) => i.value ? (c(), T(ze, {
2354
2358
  key: 0,
2355
2359
  to: e.teleport,
2356
2360
  disabled: e.disableTeleport
@@ -2486,14 +2490,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2486
2490
  },
2487
2491
  emits: ["click"],
2488
2492
  setup(e, { emit: t }) {
2489
- const l = e, o = t, n = V(() => l.drawer), i = G(), a = V(() => i.default());
2490
- async function r() {
2493
+ const l = e, o = t, n = V(() => l.drawer), r = G(), a = V(() => r.default());
2494
+ async function i() {
2491
2495
  var s;
2492
2496
  o("click"), await ((s = n.value) == null ? void 0 : s.show());
2493
2497
  }
2494
2498
  return (s, d) => (c(!0), g(W, null, U(a.value, (p) => (c(), T(Z(p), {
2495
2499
  key: p,
2496
- onClick: r
2500
+ onClick: i
2497
2501
  }))), 128));
2498
2502
  }
2499
2503
  }), Al = {
@@ -2546,17 +2550,17 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2546
2550
  },
2547
2551
  emits: ["update:modelValue", "close:dropdownList", "reset"],
2548
2552
  setup(e, { expose: t, emit: l }) {
2549
- const o = l, n = e, i = C(), a = V(() => (y) => !n.modelValue || !y.value && !y.id ? !1 : n.modelValue === y.value || n.modelValue === y.id);
2550
- function r(y) {
2553
+ const o = l, n = e, r = C(), a = V(() => (y) => !n.modelValue || !y.value && !y.id ? !1 : n.modelValue === y.value || n.modelValue === y.id);
2554
+ function i(y) {
2551
2555
  y.disabled || o("update:modelValue", y.value || y.id);
2552
2556
  }
2553
2557
  function s() {
2554
2558
  var y;
2555
- return Array.from(((y = i.value) == null ? void 0 : y.querySelectorAll("li")) || []);
2559
+ return Array.from(((y = r.value) == null ? void 0 : y.querySelectorAll("li")) || []);
2556
2560
  }
2557
2561
  function d() {
2558
2562
  const y = s().find((b) => b.getAttribute("aria-selected") === "true");
2559
- y && (y.focus(), i.value.scrollTo({
2563
+ y && (y.focus(), r.value.scrollTo({
2560
2564
  top: y.offsetTop
2561
2565
  }));
2562
2566
  }
@@ -2565,8 +2569,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2565
2569
  }
2566
2570
  function u(y) {
2567
2571
  var b;
2568
- if (!(i.value && !i.value.contains(document.activeElement) || !i.value)) {
2569
- if ((y.key === "Escape" || y.key === "Tab") && o("close:dropdownList"), (y.key === "Enter" || y.key === "enter") && (y.preventDefault(), p() && ((b = i.value) != null && b.contains(p())))) {
2572
+ if (!(r.value && !r.value.contains(document.activeElement) || !r.value)) {
2573
+ if ((y.key === "Escape" || y.key === "Tab") && o("close:dropdownList"), (y.key === "Enter" || y.key === "enter") && (y.preventDefault(), p() && ((b = r.value) != null && b.contains(p())))) {
2570
2574
  const h = p();
2571
2575
  if (!h)
2572
2576
  return;
@@ -2618,7 +2622,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2618
2622
  e.options.length ? (c(), g("ul", {
2619
2623
  key: 0,
2620
2624
  ref_key: "listbox",
2621
- ref: i,
2625
+ ref: r,
2622
2626
  role: "listbox",
2623
2627
  "aria-expanded": "true",
2624
2628
  "aria-label": e.ariaLabel,
@@ -2643,7 +2647,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2643
2647
  "aria-label": h.label,
2644
2648
  ".dataModel": h.value || h.id,
2645
2649
  role: "option",
2646
- onClick: ($) => r(h)
2650
+ onClick: ($) => i(h)
2647
2651
  }, [
2648
2652
  w(y.$slots, "label", H({ ref_for: !0 }, h), () => [
2649
2653
  v("span", null, J(h.label), 1)
@@ -2744,14 +2748,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2744
2748
  },
2745
2749
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide", "dropdown:reset"],
2746
2750
  setup(e, { expose: t, emit: l }) {
2747
- const o = l, n = e, i = C(!1), a = C(null), r = C(), s = C(null), d = C(null), p = C(!1), u = "joy-dropdown--" + Xe();
2751
+ const o = l, n = e, r = C(!1), a = C(null), i = C(), s = C(null), d = C(null), p = C(!1), u = "joy-dropdown--" + Xe();
2748
2752
  Ze("VJoyDropdownContext", n);
2749
2753
  const f = {
2750
- ignore: [r, ".joy-dropdown__list"]
2754
+ ignore: [i, ".joy-dropdown__list"]
2751
2755
  };
2752
2756
  let m = null;
2753
2757
  K(
2754
- () => i.value,
2758
+ () => r.value,
2755
2759
  (k) => {
2756
2760
  k && Po(s);
2757
2761
  },
@@ -2765,14 +2769,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2765
2769
  });
2766
2770
  function b() {
2767
2771
  m && clearTimeout(m), p.value = !0, m = setTimeout(() => {
2768
- i.value = !1, p.value = !1, o("dropdown:hide");
2772
+ r.value = !1, p.value = !1, o("dropdown:hide");
2769
2773
  }, 300);
2770
2774
  }
2771
2775
  function h() {
2772
- p.value = !1, m && clearTimeout(m), i.value = !0, o("dropdown:open");
2776
+ p.value = !1, m && clearTimeout(m), r.value = !0, o("dropdown:open");
2773
2777
  }
2774
2778
  function $(k) {
2775
- k.stopPropagation(), i.value ? j() : h(), d.value = k.target;
2779
+ k.stopPropagation(), r.value ? j() : h(), d.value = k.target;
2776
2780
  }
2777
2781
  function j() {
2778
2782
  b(), x();
@@ -2787,12 +2791,12 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2787
2791
  o("dropdown:reset");
2788
2792
  }
2789
2793
  function P() {
2790
- !r.value || !r.value.children.length || (r.value.children[0].id = u);
2794
+ !i.value || !i.value.children.length || (i.value.children[0].id = u);
2791
2795
  }
2792
2796
  return sl(b), te(() => {
2793
2797
  P();
2794
2798
  }), t({
2795
- showDropdownList: i,
2799
+ showDropdownList: r,
2796
2800
  generatedId: u
2797
2801
  }), (k, N) => (c(), T(q(mt), {
2798
2802
  ref_key: "dropdown",
@@ -2804,14 +2808,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2804
2808
  default: z(() => [
2805
2809
  v("div", {
2806
2810
  ref_key: "button",
2807
- ref: r,
2811
+ ref: i,
2808
2812
  class: "joy-dropdown__button",
2809
2813
  "data-testid": "dropdown-trigger",
2810
2814
  onClick: $
2811
2815
  }, [
2812
2816
  w(k.$slots, "dropdown-button", {}, void 0, !0)
2813
2817
  ], 512),
2814
- i.value ? (c(), g("div", {
2818
+ r.value ? (c(), g("div", {
2815
2819
  key: 0,
2816
2820
  ref_key: "list",
2817
2821
  ref: s,
@@ -2940,7 +2944,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2940
2944
  icon: "pen",
2941
2945
  title: o.updateLabel,
2942
2946
  "aria-label": o.updateLabel,
2943
- onClick: n[0] || (n[0] = (i) => o.$emit("update"))
2947
+ onClick: n[0] || (n[0] = (r) => o.$emit("update"))
2944
2948
  }, null, 8, ["title", "aria-label"]),
2945
2949
  O(ne, {
2946
2950
  circle: "",
@@ -2949,7 +2953,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2949
2953
  icon: "trash",
2950
2954
  title: o.deleteLabel,
2951
2955
  "aria-label": o.deleteLabel,
2952
- onClick: n[1] || (n[1] = (i) => o.$emit("delete"))
2956
+ onClick: n[1] || (n[1] = (r) => o.$emit("delete"))
2953
2957
  }, null, 8, ["title", "aria-label"])
2954
2958
  ]),
2955
2959
  _: 3
@@ -2982,7 +2986,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2982
2986
  }),
2983
2987
  emits: ["update:modelValue"],
2984
2988
  setup(e, { expose: t }) {
2985
- const l = G(), o = e, n = xo(e, "modelValue"), i = C(y(n.value)), a = C(), r = C(), s = C(), { isOverDropZone: d } = Tn(r, {
2989
+ const l = G(), o = e, n = xo(e, "modelValue"), r = C(y(n.value)), a = C(), i = C(), s = C(), { isOverDropZone: d } = Tn(i, {
2986
2990
  onDrop: x
2987
2991
  }), p = V(() => n.value.filter((S) => S instanceof File)), u = V(() => o.multiple || p.value.length === 0 ? void 0 : b(p.value[0]));
2988
2992
  function f(S) {
@@ -3023,7 +3027,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3023
3027
  a.value = S, s.value && s.value.click();
3024
3028
  }
3025
3029
  function B(S) {
3026
- i.value = y(S), n.value = S;
3030
+ r.value = y(S), n.value = S;
3027
3031
  }
3028
3032
  function P(S) {
3029
3033
  B(n.value.filter((M) => M !== S));
@@ -3039,17 +3043,17 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3039
3043
  B([M]);
3040
3044
  }
3041
3045
  return t({
3042
- invalid: i
3046
+ invalid: r
3043
3047
  }), (S, M) => (c(), g("div", {
3044
3048
  class: I(["joy-dropzone", {
3045
3049
  "joy-dropzone--dragover": q(d),
3046
- "joy-dropzone--invalid": i.value,
3050
+ "joy-dropzone--invalid": r.value,
3047
3051
  "joy-dropzone--empty": n.value.length === 0
3048
3052
  }])
3049
3053
  }, [
3050
3054
  v("div", {
3051
3055
  ref_key: "dropzoneAreaRef",
3052
- ref: r,
3056
+ ref: i,
3053
3057
  class: "joy-dropzone__area"
3054
3058
  }, [
3055
3059
  v("input", {
@@ -3160,13 +3164,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3160
3164
  emits: ["filter"],
3161
3165
  setup(e, { emit: t }) {
3162
3166
  const l = e, o = t, n = Ce("VJoyDropdownContext", null);
3163
- function i() {
3167
+ function r() {
3164
3168
  o("filter", l.value);
3165
3169
  }
3166
- return (a, r) => (c(), g("button", {
3170
+ return (a, i) => (c(), g("button", {
3167
3171
  type: "button",
3172
+ "data-joy-form-field": "",
3168
3173
  class: I(["joy-filter-bar-button", { "joy-filter-bar-button--active": e.active }]),
3169
- onClick: i
3174
+ onClick: r
3170
3175
  }, [
3171
3176
  D(J(e.label) + " ", 1),
3172
3177
  w(a.$slots, "default", {}, void 0, !0),
@@ -3179,7 +3184,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3179
3184
  })) : _("", !0)
3180
3185
  ], 2));
3181
3186
  }
3182
- }), cu = /* @__PURE__ */ A(na, [["__scopeId", "data-v-cfb21c78"]]), la = /* @__PURE__ */ L({
3187
+ }), cu = /* @__PURE__ */ A(na, [["__scopeId", "data-v-fcd9cacd"]]), la = /* @__PURE__ */ L({
3183
3188
  __name: "VJoyFormFieldSkeleton",
3184
3189
  props: {
3185
3190
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -3200,15 +3205,15 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3200
3205
  },
3201
3206
  setup(e, { expose: t }) {
3202
3207
  const l = e, o = Ce("VJoyWrapperContext", {}), n = V(() => {
3203
- const i = o.direction === "column" ? "auto" : null;
3208
+ const r = o.direction === "column" ? "auto" : null;
3204
3209
  if (!l.width && l.flex === "1") {
3205
3210
  const s = ["1", "0"];
3206
- return i && s.push(i), s.join(" ");
3211
+ return r && s.push(r), s.join(" ");
3207
3212
  }
3208
- const a = [l.flex || "1", "0"], r = l.width || i;
3209
- return r && a.push(r), a.join(" ");
3213
+ const a = [l.flex || "1", "0"], i = l.width || r;
3214
+ return i && a.push(i), a.join(" ");
3210
3215
  });
3211
- return t({ flexStyle: n }), (i, a) => (c(), g("div", {
3216
+ return t({ flexStyle: n }), (r, a) => (c(), g("div", {
3212
3217
  "aria-hidden": "true",
3213
3218
  class: I(["joy-form-skeleton", `joy-form-skeleton--${e.size}`]),
3214
3219
  style: ee({
@@ -3217,7 +3222,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3217
3222
  })
3218
3223
  }, null, 6));
3219
3224
  }
3220
- }), fu = /* @__PURE__ */ A(la, [["__scopeId", "data-v-235a3b9e"]]), aa = { class: "joy-funnel__header" }, ra = { class: "funnel__header__inner" }, ia = /* @__PURE__ */ L({
3225
+ }), fu = /* @__PURE__ */ A(la, [["__scopeId", "data-v-3004f370"]]), aa = { class: "joy-funnel__header" }, ra = { class: "funnel__header__inner" }, ia = /* @__PURE__ */ L({
3221
3226
  __name: "VJoyFunnel",
3222
3227
  props: {
3223
3228
  /**
@@ -3239,15 +3244,15 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3239
3244
  setup(e, { expose: t }) {
3240
3245
  const l = C(!0), o = G(), n = C(!0);
3241
3246
  Ze("VJoyStepperShowLabels", n);
3242
- function i(s) {
3247
+ function r(s) {
3243
3248
  const d = s.currentTarget;
3244
3249
  l.value = d.scrollTop === 0, a.value && !l.value ? n.value = !1 : a.value && l.value && (n.value = !0);
3245
3250
  }
3246
- const a = V(() => !!o["funnel-stepper"]), r = V(() => o["funnel-footer"] ? o["funnel-footer"]().length > 0 : !1);
3251
+ const a = V(() => !!o["funnel-stepper"]), i = V(() => o["funnel-footer"] ? o["funnel-footer"]().length > 0 : !1);
3247
3252
  return t({
3248
3253
  scrollOnTop: l,
3249
3254
  hasStepperSlot: a,
3250
- hasFooterSlot: r
3255
+ hasFooterSlot: i
3251
3256
  }), (s, d) => (c(), g("div", {
3252
3257
  class: I([
3253
3258
  "joy-funnel",
@@ -3267,7 +3272,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3267
3272
  "joy-funnel__shapes",
3268
3273
  {
3269
3274
  "joy-funnel__shapes--strategy": e.profile === "strategy",
3270
- "joy-funnel__shapes--no-footer": !r.value
3275
+ "joy-funnel__shapes--no-footer": !i.value
3271
3276
  }
3272
3277
  ])
3273
3278
  }, d[0] || (d[0] = [
@@ -3280,7 +3285,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3280
3285
  ], 2),
3281
3286
  v("div", {
3282
3287
  class: "joy-funnel__scrollable",
3283
- onScroll: i
3288
+ onScroll: r
3284
3289
  }, [
3285
3290
  v("div", {
3286
3291
  class: I(["joy-funnel__content", { "joy-funnel__content--medium": e.layoutWidth === "medium" }])
@@ -3344,7 +3349,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3344
3349
  const l = e, o = V(() => l.icon ? l.icon : Nt(l.level));
3345
3350
  return t({
3346
3351
  getRelevantIcon: o
3347
- }), (n, i) => (c(), g("div", {
3352
+ }), (n, r) => (c(), g("div", {
3348
3353
  class: I([
3349
3354
  "joy-highlight",
3350
3355
  `joy-highlight_${e.level}`,
@@ -3417,8 +3422,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3417
3422
  },
3418
3423
  emits: ["update:modelValue"],
3419
3424
  setup(e, { expose: t, emit: l }) {
3420
- const o = e, n = l, i = G(), a = C(o.modelValue), r = V(() => {
3421
- const u = i.default();
3425
+ const o = e, n = l, r = G(), a = C(o.modelValue), i = V(() => {
3426
+ const u = r.default();
3422
3427
  return u.length === 1 && typeof u[0].type != "object" ? u[0].children.filter(d) : u.filter(d);
3423
3428
  });
3424
3429
  function s(u) {
@@ -3437,12 +3442,12 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3437
3442
  u !== f && (a.value = u);
3438
3443
  }
3439
3444
  ), t({
3440
- indicators: r,
3445
+ indicators: i,
3441
3446
  isSelected: s
3442
3447
  }), (u, f) => (c(), g("ul", {
3443
3448
  class: I(["joy-indicators", `joy-indicators--${e.variant}`])
3444
3449
  }, [
3445
- (c(!0), g(W, null, U(r.value, (m) => (c(), T(ja, H({
3450
+ (c(!0), g(W, null, U(i.value, (m) => (c(), T(ja, H({
3446
3451
  key: m.props.value,
3447
3452
  ref_for: !0
3448
3453
  }, { ...m.props, variant: e.variant }, {
@@ -3528,9 +3533,9 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3528
3533
  },
3529
3534
  emits: ["update:modelValue"],
3530
3535
  setup(e, { expose: t, emit: l }) {
3531
- const o = l, n = e, i = Ce("VJoyWrapperContext", {}), a = C(), r = C(), s = be(), d = G(), p = C(!1), u = C(!1);
3536
+ const o = l, n = e, r = Ce("VJoyWrapperContext", {}), a = C(), i = C(), s = be(), d = G(), p = C(!1), u = C(!1);
3532
3537
  vt(a, n.autofocus);
3533
- const f = V(() => typeof n.modelValue == "number" || !n.clearable || n.unit || !n.modelValue ? !1 : n.modelValue.length > 0 && !n.unit), m = V(() => d.default && d.default()), y = V(() => Object.keys(i).length > 0), b = C(n.type), h = V(() => n.type === "password" && !!n.modelValue);
3538
+ const f = V(() => typeof n.modelValue == "number" || !n.clearable || n.unit || !n.modelValue ? !1 : n.modelValue.length > 0 && !n.unit), m = V(() => d.default && d.default()), y = V(() => Object.keys(r).length > 0), b = C(n.type), h = V(() => n.type === "password" && !!n.modelValue);
3534
3539
  Io(() => {
3535
3540
  b.value = n.unit ? "number" : n.type;
3536
3541
  });
@@ -3567,7 +3572,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3567
3572
  focus: $
3568
3573
  }), (x, E) => (c(), g("div", {
3569
3574
  ref_key: "root",
3570
- ref: r,
3575
+ ref: i,
3571
3576
  class: I([`joy-input--${n.size}`])
3572
3577
  }, [
3573
3578
  v("div", {
@@ -3611,6 +3616,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3611
3616
  id: e.id || e.name,
3612
3617
  ref_key: "input",
3613
3618
  ref: a,
3619
+ "data-joy-form-field": "",
3614
3620
  name: e.name,
3615
3621
  required: e.required,
3616
3622
  disabled: e.disabled,
@@ -3663,7 +3669,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3663
3669
  ], 2)
3664
3670
  ], 2));
3665
3671
  }
3666
- }), gu = /* @__PURE__ */ A(Ca, [["__scopeId", "data-v-aa5a992c"]]), Va = { class: "joy-link__text" }, Ta = /* @__PURE__ */ L({
3672
+ }), gu = /* @__PURE__ */ A(Ca, [["__scopeId", "data-v-aff0578c"]]), Va = { class: "joy-link__text" }, Ta = /* @__PURE__ */ L({
3667
3673
  __name: "VJoyLink",
3668
3674
  props: {
3669
3675
  href: {
@@ -3757,11 +3763,11 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3757
3763
  setup(e, { expose: t, emit: l }) {
3758
3764
  const o = l, n = C();
3759
3765
  C(0);
3760
- const i = C();
3766
+ const r = C();
3761
3767
  function a(u) {
3762
3768
  u.disabled || o("selectItem", u);
3763
3769
  }
3764
- function r() {
3770
+ function i() {
3765
3771
  var u;
3766
3772
  return Array.from(((u = n.value) == null ? void 0 : u.querySelectorAll("li")) || []).filter((f) => f.getAttribute("aria-disabled") !== "true");
3767
3773
  }
@@ -3769,16 +3775,16 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3769
3775
  return u.id || Xe();
3770
3776
  }
3771
3777
  function d() {
3772
- return r().find((u) => u === document.activeElement);
3778
+ return i().find((u) => u === document.activeElement);
3773
3779
  }
3774
3780
  function p(u) {
3775
- if (d() && u.key === " " && u.preventDefault(), u.key === "Tab" && (i.value = void 0), ["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key)) {
3781
+ if (d() && u.key === " " && u.preventDefault(), u.key === "Tab" && (r.value = void 0), ["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key)) {
3776
3782
  u.preventDefault();
3777
- const f = r(), m = d();
3783
+ const f = i(), m = d();
3778
3784
  let y = f.indexOf(m);
3779
3785
  if (u.key === "ArrowDown" ? y++ : u.key === "ArrowUp" ? y-- : u.key === "Home" ? y = 0 : u.key === "End" && (y = f.length - 1), y < 0 && (y = 0), y > f.length - 1)
3780
3786
  return;
3781
- i.value = f[y].id, f[y].focus();
3787
+ r.value = f[y].id, f[y].focus();
3782
3788
  }
3783
3789
  if (u.key === "Enter") {
3784
3790
  const f = d();
@@ -3789,8 +3795,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3789
3795
  }
3790
3796
  }
3791
3797
  return t({
3792
- activeMenuItemId: i,
3793
- getItems: r,
3798
+ activeMenuItemId: r,
3799
+ getItems: i,
3794
3800
  getItemId: s,
3795
3801
  getFocusedItem: d
3796
3802
  }), (u, f) => {
@@ -3799,7 +3805,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3799
3805
  ref_key: "menu",
3800
3806
  ref: n,
3801
3807
  class: "joy-menu-list joy-menu-list__items",
3802
- "aria-activedescendant": i.value,
3808
+ "aria-activedescendant": r.value,
3803
3809
  "aria-label": e.ariaLabel,
3804
3810
  role: "menu",
3805
3811
  onKeydown: p
@@ -3854,9 +3860,9 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3854
3860
  },
3855
3861
  emits: ["click"],
3856
3862
  setup(e, { expose: t, emit: l }) {
3857
- const o = l, n = be(), i = e, a = V(() => i.type !== "a" && i.type !== "button" ? i.linkProps : { ...n, href: i.href });
3858
- function r() {
3859
- i.disabled || o("click");
3863
+ const o = l, n = be(), r = e, a = V(() => r.type !== "a" && r.type !== "button" ? r.linkProps : { ...n, href: r.href });
3864
+ function i() {
3865
+ r.disabled || o("click");
3860
3866
  }
3861
3867
  return t({
3862
3868
  getProps: a
@@ -3877,7 +3883,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3877
3883
  }
3878
3884
  ],
3879
3885
  type: s.type === "button" ? "button" : null,
3880
- onClick: r
3886
+ onClick: i
3881
3887
  }), {
3882
3888
  default: z(() => [
3883
3889
  s.icon ? (c(), T(R, {
@@ -3917,11 +3923,11 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3917
3923
  function n(a) {
3918
3924
  return o.value.includes(a.value);
3919
3925
  }
3920
- function i(a, r) {
3926
+ function r(a, i) {
3921
3927
  let s = [...o.value || []];
3922
- r ? s.push(a) : s.splice(s.indexOf(a), 1), l("update:value", s);
3928
+ i ? s.push(a) : s.splice(s.indexOf(a), 1), l("update:value", s);
3923
3929
  }
3924
- return (a, r) => (c(), g("fieldset", {
3930
+ return (a, i) => (c(), g("fieldset", {
3925
3931
  id: a.id,
3926
3932
  class: "joy-multi-checkbox__wrapper"
3927
3933
  }, [
@@ -3944,7 +3950,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3944
3950
  name: s.name,
3945
3951
  value: s.value,
3946
3952
  checked: n(s),
3947
- "onUpdate:checked": (d) => i(s.value, d)
3953
+ "onUpdate:checked": (d) => r(s.value, d)
3948
3954
  }, {
3949
3955
  default: z(() => [
3950
3956
  w(a.$slots, "checkbox", H({ ref_for: !0 }, s), () => [
@@ -4021,8 +4027,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4021
4027
  const l = e, o = t, n = V(() => {
4022
4028
  const p = a.value.length;
4023
4029
  return a.value[p - 1] !== a.value[p - 2] + 1;
4024
- }), i = V(() => a.value[0] !== a.value[1] - 1), a = V(() => l.totalPages === 1 ? [1] : l.totalPages < Wa ? s(2, l.totalPages - 1) : d(l.currentPage));
4025
- function r(p, u) {
4030
+ }), r = V(() => a.value[0] !== a.value[1] - 1), a = V(() => l.totalPages === 1 ? [1] : l.totalPages < Wa ? s(2, l.totalPages - 1) : d(l.currentPage));
4031
+ function i(p, u) {
4026
4032
  l.currentPage === 1 && u === "prev" || l.currentPage === l.totalPages && u === "next" || o("update:current-page", p);
4027
4033
  }
4028
4034
  function s(p, u) {
@@ -4045,7 +4051,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4045
4051
  v("ul", null, [
4046
4052
  v("li", {
4047
4053
  class: "joy-pagination__item joy-pagination__previous",
4048
- onClick: u[0] || (u[0] = (f) => r(e.currentPage - 1, "prev"))
4054
+ onClick: u[0] || (u[0] = (f) => i(e.currentPage - 1, "prev"))
4049
4055
  }, [
4050
4056
  w(p.$slots, "pagination-prev", {}, () => [
4051
4057
  O(It, {
@@ -4062,10 +4068,10 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4062
4068
  "joy-pagination__item": !0,
4063
4069
  "joy-pagination__page": !0,
4064
4070
  current: f === e.currentPage,
4065
- "joy-pagination__separator joy-pagination__separator-after": e.totalPages > 1 && f === 1 && i.value,
4071
+ "joy-pagination__separator joy-pagination__separator-after": e.totalPages > 1 && f === 1 && r.value,
4066
4072
  "joy-pagination__separator joy-pagination__separator-before": e.totalPages > 1 && f === e.totalPages && n.value
4067
4073
  }),
4068
- onClick: (m) => r(f)
4074
+ onClick: (m) => i(f)
4069
4075
  }, [
4070
4076
  w(p.$slots, "page", H({ ref_for: !0 }, { page: f }), () => [
4071
4077
  v("button", {
@@ -4078,7 +4084,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4078
4084
  ]),
4079
4085
  v("li", {
4080
4086
  class: "joy-pagination__next",
4081
- onClick: u[1] || (u[1] = (f) => r(e.currentPage + 1, "next"))
4087
+ onClick: u[1] || (u[1] = (f) => i(e.currentPage + 1, "next"))
4082
4088
  }, [
4083
4089
  w(p.$slots, "pagination-next", {}, () => [
4084
4090
  O(It, {
@@ -4168,8 +4174,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4168
4174
  }
4169
4175
  },
4170
4176
  setup(e) {
4171
- const t = Ce("VJoyWrapperContext", {}), l = V(() => Object.keys(t).length > 0), o = G(), n = C(), i = V(() => !!o["panel-title"] || !!o["panel-subtitle"] || !!o["panel-title-action"]);
4172
- return (a, r) => (c(), g("section", {
4177
+ const t = Ce("VJoyWrapperContext", {}), l = V(() => Object.keys(t).length > 0), o = G(), n = C(), r = V(() => !!o["panel-title"] || !!o["panel-subtitle"] || !!o["panel-title-action"]);
4178
+ return (a, i) => (c(), g("section", {
4173
4179
  ref_key: "panel",
4174
4180
  ref: n,
4175
4181
  style: ee({ flex: e.flex }),
@@ -4183,7 +4189,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4183
4189
  }
4184
4190
  ])
4185
4191
  }, [
4186
- i.value ? (c(), g("header", Za, [
4192
+ r.value ? (c(), g("header", Za, [
4187
4193
  o["panel-title"] ? (c(), g("div", {
4188
4194
  key: 0,
4189
4195
  class: I(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
@@ -4273,9 +4279,9 @@ function bt(e) {
4273
4279
  }
4274
4280
  function yr(e, t, l) {
4275
4281
  l === void 0 && (l = !1);
4276
- const o = De(e), n = bt(e), i = gt(n);
4282
+ const o = De(e), n = bt(e), r = gt(n);
4277
4283
  let a = n === "x" ? o === (l ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
4278
- return t.reference[i] > t.floating[i] && (a = Ue(a)), [a, Ue(a)];
4284
+ return t.reference[r] > t.floating[r] && (a = Ue(a)), [a, Ue(a)];
4279
4285
  }
4280
4286
  function mr(e) {
4281
4287
  const t = Ue(e);
@@ -4285,22 +4291,22 @@ function st(e) {
4285
4291
  return e.replace(/start|end/g, (t) => pr[t]);
4286
4292
  }
4287
4293
  function vr(e, t, l) {
4288
- const o = ["left", "right"], n = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
4294
+ const o = ["left", "right"], n = ["right", "left"], r = ["top", "bottom"], a = ["bottom", "top"];
4289
4295
  switch (e) {
4290
4296
  case "top":
4291
4297
  case "bottom":
4292
4298
  return l ? t ? n : o : t ? o : n;
4293
4299
  case "left":
4294
4300
  case "right":
4295
- return t ? i : a;
4301
+ return t ? r : a;
4296
4302
  default:
4297
4303
  return [];
4298
4304
  }
4299
4305
  }
4300
4306
  function hr(e, t, l, o) {
4301
4307
  const n = De(e);
4302
- let i = vr(ve(e), l === "start", o);
4303
- return n && (i = i.map((a) => a + "-" + n), t && (i = i.concat(i.map(st)))), i;
4308
+ let r = vr(ve(e), l === "start", o);
4309
+ return n && (r = r.map((a) => a + "-" + n), t && (r = r.concat(r.map(st)))), r;
4304
4310
  }
4305
4311
  function Ue(e) {
4306
4312
  return e.replace(/left|right|bottom|top/g, (t) => fr[t]);
@@ -4345,7 +4351,7 @@ function Lt(e, t, l) {
4345
4351
  reference: o,
4346
4352
  floating: n
4347
4353
  } = e;
4348
- const i = $e(t), a = bt(t), r = gt(a), s = ve(t), d = i === "y", p = o.x + o.width / 2 - n.width / 2, u = o.y + o.height / 2 - n.height / 2, f = o[r] / 2 - n[r] / 2;
4354
+ const r = $e(t), a = bt(t), i = gt(a), s = ve(t), d = r === "y", p = o.x + o.width / 2 - n.width / 2, u = o.y + o.height / 2 - n.height / 2, f = o[i] / 2 - n[i] / 2;
4349
4355
  let m;
4350
4356
  switch (s) {
4351
4357
  case "top":
@@ -4392,9 +4398,9 @@ const br = async (e, t, l) => {
4392
4398
  const {
4393
4399
  placement: o = "bottom",
4394
4400
  strategy: n = "absolute",
4395
- middleware: i = [],
4401
+ middleware: r = [],
4396
4402
  platform: a
4397
- } = l, r = i.filter(Boolean), s = await (a.isRTL == null ? void 0 : a.isRTL(t));
4403
+ } = l, i = r.filter(Boolean), s = await (a.isRTL == null ? void 0 : a.isRTL(t));
4398
4404
  let d = await a.getElementRects({
4399
4405
  reference: e,
4400
4406
  floating: t,
@@ -4403,11 +4409,11 @@ const br = async (e, t, l) => {
4403
4409
  x: p,
4404
4410
  y: u
4405
4411
  } = Lt(d, o, s), f = o, m = {}, y = 0;
4406
- for (let b = 0; b < r.length; b++) {
4412
+ for (let b = 0; b < i.length; b++) {
4407
4413
  const {
4408
4414
  name: h,
4409
4415
  fn: $
4410
- } = r[b], {
4416
+ } = i[b], {
4411
4417
  x: j,
4412
4418
  y: x,
4413
4419
  data: E,
@@ -4455,9 +4461,9 @@ async function eo(e, t) {
4455
4461
  const {
4456
4462
  x: o,
4457
4463
  y: n,
4458
- platform: i,
4464
+ platform: r,
4459
4465
  rects: a,
4460
- elements: r,
4466
+ elements: i,
4461
4467
  strategy: s
4462
4468
  } = e, {
4463
4469
  boundary: d = "clippingAncestors",
@@ -4465,8 +4471,8 @@ async function eo(e, t) {
4465
4471
  elementContext: u = "floating",
4466
4472
  altBoundary: f = !1,
4467
4473
  padding: m = 0
4468
- } = ke(t, e), y = Qt(m), h = r[f ? u === "floating" ? "reference" : "floating" : u], $ = Ge(await i.getClippingRect({
4469
- element: (l = await (i.isElement == null ? void 0 : i.isElement(h))) == null || l ? h : h.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(r.floating)),
4474
+ } = ke(t, e), y = Qt(m), h = i[f ? u === "floating" ? "reference" : "floating" : u], $ = Ge(await r.getClippingRect({
4475
+ element: (l = await (r.isElement == null ? void 0 : r.isElement(h))) == null || l ? h : h.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(i.floating)),
4470
4476
  boundary: d,
4471
4477
  rootBoundary: p,
4472
4478
  strategy: s
@@ -4475,14 +4481,14 @@ async function eo(e, t) {
4475
4481
  y: n,
4476
4482
  width: a.floating.width,
4477
4483
  height: a.floating.height
4478
- } : a.reference, x = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(r.floating)), E = await (i.isElement == null ? void 0 : i.isElement(x)) ? await (i.getScale == null ? void 0 : i.getScale(x)) || {
4484
+ } : a.reference, x = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), E = await (r.isElement == null ? void 0 : r.isElement(x)) ? await (r.getScale == null ? void 0 : r.getScale(x)) || {
4479
4485
  x: 1,
4480
4486
  y: 1
4481
4487
  } : {
4482
4488
  x: 1,
4483
4489
  y: 1
4484
- }, B = Ge(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
4485
- elements: r,
4490
+ }, B = Ge(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
4491
+ elements: i,
4486
4492
  rect: j,
4487
4493
  offsetParent: x,
4488
4494
  strategy: s
@@ -4502,9 +4508,9 @@ const wr = (e) => ({
4502
4508
  x: l,
4503
4509
  y: o,
4504
4510
  placement: n,
4505
- rects: i,
4511
+ rects: r,
4506
4512
  platform: a,
4507
- elements: r,
4513
+ elements: i,
4508
4514
  middlewareData: s
4509
4515
  } = t, {
4510
4516
  element: d,
@@ -4515,10 +4521,10 @@ const wr = (e) => ({
4515
4521
  const u = Qt(p), f = {
4516
4522
  x: l,
4517
4523
  y: o
4518
- }, m = bt(n), y = gt(m), b = await a.getDimensions(d), h = m === "y", $ = h ? "top" : "left", j = h ? "bottom" : "right", x = h ? "clientHeight" : "clientWidth", E = i.reference[y] + i.reference[m] - f[m] - i.floating[y], B = f[m] - i.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
4524
+ }, m = bt(n), y = gt(m), b = await a.getDimensions(d), h = m === "y", $ = h ? "top" : "left", j = h ? "bottom" : "right", x = h ? "clientHeight" : "clientWidth", E = r.reference[y] + r.reference[m] - f[m] - r.floating[y], B = f[m] - r.reference[m], P = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(d));
4519
4525
  let k = P ? P[x] : 0;
4520
- (!k || !await (a.isElement == null ? void 0 : a.isElement(P))) && (k = r.floating[x] || i.floating[y]);
4521
- const N = E / 2 - B / 2, S = k / 2 - b[y] / 2 - 1, M = rt(u[$], S), F = rt(u[j], S), Y = M, se = k - b[y] - F, Q = k / 2 - b[y] / 2 + N, Te = it(Y, Q, se), ue = !s.arrow && De(n) != null && Q !== Te && i.reference[y] / 2 - (Q < Y ? M : F) - b[y] / 2 < 0, ae = ue ? Q < Y ? Q - Y : Q - se : 0;
4526
+ (!k || !await (a.isElement == null ? void 0 : a.isElement(P))) && (k = i.floating[x] || r.floating[y]);
4527
+ const N = E / 2 - B / 2, S = k / 2 - b[y] / 2 - 1, M = rt(u[$], S), F = rt(u[j], S), Y = M, se = k - b[y] - F, Q = k / 2 - b[y] / 2 + N, Te = it(Y, Q, se), ue = !s.arrow && De(n) != null && Q !== Te && r.reference[y] / 2 - (Q < Y ? M : F) - b[y] / 2 < 0, ae = ue ? Q < Y ? Q - Y : Q - se : 0;
4522
4528
  return {
4523
4529
  [m]: f[m] + ae,
4524
4530
  data: {
@@ -4539,9 +4545,9 @@ const wr = (e) => ({
4539
4545
  var l, o;
4540
4546
  const {
4541
4547
  placement: n,
4542
- middlewareData: i,
4548
+ middlewareData: r,
4543
4549
  rects: a,
4544
- initialPlacement: r,
4550
+ initialPlacement: i,
4545
4551
  platform: s,
4546
4552
  elements: d
4547
4553
  } = t, {
@@ -4553,12 +4559,12 @@ const wr = (e) => ({
4553
4559
  flipAlignment: b = !0,
4554
4560
  ...h
4555
4561
  } = ke(e, t);
4556
- if ((l = i.arrow) != null && l.alignmentOffset)
4562
+ if ((l = r.arrow) != null && l.alignmentOffset)
4557
4563
  return {};
4558
- const $ = ve(n), j = $e(r), x = ve(r) === r, E = await (s.isRTL == null ? void 0 : s.isRTL(d.floating)), B = f || (x || !b ? [Ue(r)] : mr(r)), P = y !== "none";
4559
- !f && P && B.push(...hr(r, b, y, E));
4560
- const k = [r, ...B], N = await eo(t, h), S = [];
4561
- let M = ((o = i.flip) == null ? void 0 : o.overflows) || [];
4564
+ const $ = ve(n), j = $e(i), x = ve(i) === i, E = await (s.isRTL == null ? void 0 : s.isRTL(d.floating)), B = f || (x || !b ? [Ue(i)] : mr(i)), P = y !== "none";
4565
+ !f && P && B.push(...hr(i, b, y, E));
4566
+ const k = [i, ...B], N = await eo(t, h), S = [];
4567
+ let M = ((o = r.flip) == null ? void 0 : o.overflows) || [];
4562
4568
  if (p && S.push(N[$]), u) {
4563
4569
  const Q = yr(n, a, E);
4564
4570
  S.push(N[Q[0]], N[Q[1]]);
@@ -4568,7 +4574,7 @@ const wr = (e) => ({
4568
4574
  overflows: S
4569
4575
  }], !S.every((Q) => Q <= 0)) {
4570
4576
  var F, Y;
4571
- const Q = (((F = i.flip) == null ? void 0 : F.index) || 0) + 1, Te = k[Q];
4577
+ const Q = (((F = r.flip) == null ? void 0 : F.index) || 0) + 1, Te = k[Q];
4572
4578
  if (Te)
4573
4579
  return {
4574
4580
  data: {
@@ -4597,7 +4603,7 @@ const wr = (e) => ({
4597
4603
  break;
4598
4604
  }
4599
4605
  case "initialPlacement":
4600
- ue = r;
4606
+ ue = i;
4601
4607
  break;
4602
4608
  }
4603
4609
  if (n !== ue)
@@ -4616,7 +4622,7 @@ async function _r(e, t) {
4616
4622
  placement: l,
4617
4623
  platform: o,
4618
4624
  elements: n
4619
- } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), a = ve(l), r = De(l), s = $e(l) === "y", d = ["left", "top"].includes(a) ? -1 : 1, p = i && s ? -1 : 1, u = ke(t, e);
4625
+ } = e, r = await (o.isRTL == null ? void 0 : o.isRTL(n.floating)), a = ve(l), i = De(l), s = $e(l) === "y", d = ["left", "top"].includes(a) ? -1 : 1, p = r && s ? -1 : 1, u = ke(t, e);
4620
4626
  let {
4621
4627
  mainAxis: f,
4622
4628
  crossAxis: m,
@@ -4631,7 +4637,7 @@ async function _r(e, t) {
4631
4637
  alignmentAxis: null,
4632
4638
  ...u
4633
4639
  };
4634
- return r && typeof y == "number" && (m = r === "end" ? y * -1 : y), s ? {
4640
+ return i && typeof y == "number" && (m = i === "end" ? y * -1 : y), s ? {
4635
4641
  x: m * p,
4636
4642
  y: f * d
4637
4643
  } : {
@@ -4647,13 +4653,13 @@ const oo = function(e) {
4647
4653
  var l, o;
4648
4654
  const {
4649
4655
  x: n,
4650
- y: i,
4656
+ y: r,
4651
4657
  placement: a,
4652
- middlewareData: r
4658
+ middlewareData: i
4653
4659
  } = t, s = await _r(t, e);
4654
- return a === ((l = r.offset) == null ? void 0 : l.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
4660
+ return a === ((l = i.offset) == null ? void 0 : l.placement) && (o = i.arrow) != null && o.alignmentOffset ? {} : {
4655
4661
  x: n + s.x,
4656
- y: i + s.y,
4662
+ y: r + s.y,
4657
4663
  data: {
4658
4664
  ...s,
4659
4665
  placement: a
@@ -4671,9 +4677,9 @@ const oo = function(e) {
4671
4677
  y: o,
4672
4678
  placement: n
4673
4679
  } = t, {
4674
- mainAxis: i = !0,
4680
+ mainAxis: r = !0,
4675
4681
  crossAxis: a = !1,
4676
- limiter: r = {
4682
+ limiter: i = {
4677
4683
  fn: (h) => {
4678
4684
  let {
4679
4685
  x: $,
@@ -4691,7 +4697,7 @@ const oo = function(e) {
4691
4697
  y: o
4692
4698
  }, p = await eo(t, s), u = $e(ve(n)), f = ht(u);
4693
4699
  let m = d[f], y = d[u];
4694
- if (i) {
4700
+ if (r) {
4695
4701
  const h = f === "y" ? "top" : "left", $ = f === "y" ? "bottom" : "right", j = m + p[h], x = m - p[$];
4696
4702
  m = it(j, m, x);
4697
4703
  }
@@ -4699,7 +4705,7 @@ const oo = function(e) {
4699
4705
  const h = u === "y" ? "top" : "left", $ = u === "y" ? "bottom" : "right", j = y + p[h], x = y - p[$];
4700
4706
  y = it(j, y, x);
4701
4707
  }
4702
- const b = r.fn({
4708
+ const b = i.fn({
4703
4709
  ...t,
4704
4710
  [f]: m,
4705
4711
  [u]: y
@@ -4721,10 +4727,10 @@ const oo = function(e) {
4721
4727
  x: l,
4722
4728
  y: o,
4723
4729
  placement: n,
4724
- rects: i,
4730
+ rects: r,
4725
4731
  middlewareData: a
4726
4732
  } = t, {
4727
- offset: r = 0,
4733
+ offset: i = 0,
4728
4734
  mainAxis: s = !0,
4729
4735
  crossAxis: d = !0
4730
4736
  } = ke(e, t), p = {
@@ -4732,7 +4738,7 @@ const oo = function(e) {
4732
4738
  y: o
4733
4739
  }, u = $e(n), f = ht(u);
4734
4740
  let m = p[f], y = p[u];
4735
- const b = ke(r, t), h = typeof b == "number" ? {
4741
+ const b = ke(i, t), h = typeof b == "number" ? {
4736
4742
  mainAxis: b,
4737
4743
  crossAxis: 0
4738
4744
  } : {
@@ -4741,12 +4747,12 @@ const oo = function(e) {
4741
4747
  ...b
4742
4748
  };
4743
4749
  if (s) {
4744
- const x = f === "y" ? "height" : "width", E = i.reference[f] - i.floating[x] + h.mainAxis, B = i.reference[f] + i.reference[x] - h.mainAxis;
4750
+ const x = f === "y" ? "height" : "width", E = r.reference[f] - r.floating[x] + h.mainAxis, B = r.reference[f] + r.reference[x] - h.mainAxis;
4745
4751
  m < E ? m = E : m > B && (m = B);
4746
4752
  }
4747
4753
  if (d) {
4748
4754
  var $, j;
4749
- const x = f === "y" ? "width" : "height", E = ["top", "left"].includes(ve(n)), B = i.reference[u] - i.floating[x] + (E && (($ = a.offset) == null ? void 0 : $[u]) || 0) + (E ? 0 : h.crossAxis), P = i.reference[u] + i.reference[x] + (E ? 0 : ((j = a.offset) == null ? void 0 : j[u]) || 0) - (E ? h.crossAxis : 0);
4755
+ const x = f === "y" ? "width" : "height", E = ["top", "left"].includes(ve(n)), B = r.reference[u] - r.floating[x] + (E && (($ = a.offset) == null ? void 0 : $[u]) || 0) + (E ? 0 : h.crossAxis), P = r.reference[u] + r.reference[x] + (E ? 0 : ((j = a.offset) == null ? void 0 : j[u]) || 0) - (E ? h.crossAxis : 0);
4750
4756
  y < B ? y = B : y > P && (y = P);
4751
4757
  }
4752
4758
  return {
@@ -4844,17 +4850,17 @@ function ro(e) {
4844
4850
  function Pe(e, t, l) {
4845
4851
  var o;
4846
4852
  t === void 0 && (t = []), l === void 0 && (l = !0);
4847
- const n = ro(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), a = oe(n);
4848
- return i ? t.concat(a, a.visualViewport || [], Re(n) ? n : [], a.frameElement && l ? Pe(a.frameElement) : []) : t.concat(n, Pe(n, [], l));
4853
+ const n = ro(e), r = n === ((o = e.ownerDocument) == null ? void 0 : o.body), a = oe(n);
4854
+ return r ? t.concat(a, a.visualViewport || [], Re(n) ? n : [], a.frameElement && l ? Pe(a.frameElement) : []) : t.concat(n, Pe(n, [], l));
4849
4855
  }
4850
4856
  function io(e) {
4851
4857
  const t = le(e);
4852
4858
  let l = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
4853
- const n = ie(e), i = n ? e.offsetWidth : l, a = n ? e.offsetHeight : o, r = Ye(l) !== i || Ye(o) !== a;
4854
- return r && (l = i, o = a), {
4859
+ const n = ie(e), r = n ? e.offsetWidth : l, a = n ? e.offsetHeight : o, i = Ye(l) !== r || Ye(o) !== a;
4860
+ return i && (l = r, o = a), {
4855
4861
  width: l,
4856
4862
  height: o,
4857
- $: r
4863
+ $: i
4858
4864
  };
4859
4865
  }
4860
4866
  function jt(e) {
@@ -4867,12 +4873,12 @@ function Ae(e) {
4867
4873
  const l = t.getBoundingClientRect(), {
4868
4874
  width: o,
4869
4875
  height: n,
4870
- $: i
4876
+ $: r
4871
4877
  } = io(t);
4872
- let a = (i ? Ye(l.width) : l.width) / o, r = (i ? Ye(l.height) : l.height) / n;
4873
- return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
4878
+ let a = (r ? Ye(l.width) : l.width) / o, i = (r ? Ye(l.height) : l.height) / n;
4879
+ return (!a || !Number.isFinite(a)) && (a = 1), (!i || !Number.isFinite(i)) && (i = 1), {
4874
4880
  x: a,
4875
- y: r
4881
+ y: i
4876
4882
  };
4877
4883
  }
4878
4884
  const $r = /* @__PURE__ */ he(0);
@@ -4888,13 +4894,13 @@ function Sr(e, t, l) {
4888
4894
  }
4889
4895
  function Se(e, t, l, o) {
4890
4896
  t === void 0 && (t = !1), l === void 0 && (l = !1);
4891
- const n = e.getBoundingClientRect(), i = jt(e);
4897
+ const n = e.getBoundingClientRect(), r = jt(e);
4892
4898
  let a = he(1);
4893
4899
  t && (o ? de(o) && (a = Ae(o)) : a = Ae(e));
4894
- const r = Sr(i, l, o) ? so(i) : he(0);
4895
- let s = (n.left + r.x) / a.x, d = (n.top + r.y) / a.y, p = n.width / a.x, u = n.height / a.y;
4896
- if (i) {
4897
- const f = oe(i), m = o && de(o) ? oe(o) : o;
4900
+ const i = Sr(r, l, o) ? so(r) : he(0);
4901
+ let s = (n.left + i.x) / a.x, d = (n.top + i.y) / a.y, p = n.width / a.x, u = n.height / a.y;
4902
+ if (r) {
4903
+ const f = oe(r), m = o && de(o) ? oe(o) : o;
4898
4904
  let y = f.frameElement;
4899
4905
  for (; y && o && m !== f; ) {
4900
4906
  const b = Ae(y), h = y.getBoundingClientRect(), $ = le(y), j = h.left + (y.clientLeft + parseFloat($.paddingLeft)) * b.x, x = h.top + (y.clientTop + parseFloat($.paddingTop)) * b.y;
@@ -4914,23 +4920,23 @@ function Cr(e) {
4914
4920
  offsetParent: l,
4915
4921
  strategy: o
4916
4922
  } = e;
4917
- const n = ie(l), i = ce(l);
4918
- if (l === i)
4923
+ const n = ie(l), r = ce(l);
4924
+ if (l === r)
4919
4925
  return t;
4920
4926
  let a = {
4921
4927
  scrollLeft: 0,
4922
4928
  scrollTop: 0
4923
- }, r = he(1);
4929
+ }, i = he(1);
4924
4930
  const s = he(0);
4925
- if ((n || !n && o !== "fixed") && ((ge(l) !== "body" || Re(i)) && (a = nt(l)), ie(l))) {
4931
+ if ((n || !n && o !== "fixed") && ((ge(l) !== "body" || Re(r)) && (a = nt(l)), ie(l))) {
4926
4932
  const d = Se(l);
4927
- r = Ae(l), s.x = d.x + l.clientLeft, s.y = d.y + l.clientTop;
4933
+ i = Ae(l), s.x = d.x + l.clientLeft, s.y = d.y + l.clientTop;
4928
4934
  }
4929
4935
  return {
4930
- width: t.width * r.x,
4931
- height: t.height * r.y,
4932
- x: t.x * r.x - a.scrollLeft * r.x + s.x,
4933
- y: t.y * r.y - a.scrollTop * r.y + s.y
4936
+ width: t.width * i.x,
4937
+ height: t.height * i.y,
4938
+ x: t.x * i.x - a.scrollLeft * i.x + s.x,
4939
+ y: t.y * i.y - a.scrollTop * i.y + s.y
4934
4940
  };
4935
4941
  }
4936
4942
  function Vr(e) {
@@ -4940,36 +4946,36 @@ function uo(e) {
4940
4946
  return Se(ce(e)).left + nt(e).scrollLeft;
4941
4947
  }
4942
4948
  function Tr(e) {
4943
- const t = ce(e), l = nt(e), o = e.ownerDocument.body, n = Be(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = Be(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
4949
+ const t = ce(e), l = nt(e), o = e.ownerDocument.body, n = Be(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), r = Be(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
4944
4950
  let a = -l.scrollLeft + uo(e);
4945
- const r = -l.scrollTop;
4951
+ const i = -l.scrollTop;
4946
4952
  return le(o).direction === "rtl" && (a += Be(t.clientWidth, o.clientWidth) - n), {
4947
4953
  width: n,
4948
- height: i,
4954
+ height: r,
4949
4955
  x: a,
4950
- y: r
4956
+ y: i
4951
4957
  };
4952
4958
  }
4953
4959
  function xr(e, t) {
4954
4960
  const l = oe(e), o = ce(e), n = l.visualViewport;
4955
- let i = o.clientWidth, a = o.clientHeight, r = 0, s = 0;
4961
+ let r = o.clientWidth, a = o.clientHeight, i = 0, s = 0;
4956
4962
  if (n) {
4957
- i = n.width, a = n.height;
4963
+ r = n.width, a = n.height;
4958
4964
  const d = _t();
4959
- (!d || d && t === "fixed") && (r = n.offsetLeft, s = n.offsetTop);
4965
+ (!d || d && t === "fixed") && (i = n.offsetLeft, s = n.offsetTop);
4960
4966
  }
4961
4967
  return {
4962
- width: i,
4968
+ width: r,
4963
4969
  height: a,
4964
- x: r,
4970
+ x: i,
4965
4971
  y: s
4966
4972
  };
4967
4973
  }
4968
4974
  function Ir(e, t) {
4969
- const l = Se(e, !0, t === "fixed"), o = l.top + e.clientTop, n = l.left + e.clientLeft, i = ie(e) ? Ae(e) : he(1), a = e.clientWidth * i.x, r = e.clientHeight * i.y, s = n * i.x, d = o * i.y;
4975
+ const l = Se(e, !0, t === "fixed"), o = l.top + e.clientTop, n = l.left + e.clientLeft, r = ie(e) ? Ae(e) : he(1), a = e.clientWidth * r.x, i = e.clientHeight * r.y, s = n * r.x, d = o * r.y;
4970
4976
  return {
4971
4977
  width: a,
4972
- height: r,
4978
+ height: i,
4973
4979
  x: s,
4974
4980
  y: d
4975
4981
  };
@@ -5000,12 +5006,12 @@ function Lr(e, t) {
5000
5006
  const l = t.get(e);
5001
5007
  if (l)
5002
5008
  return l;
5003
- let o = Pe(e, [], !1).filter((r) => de(r) && ge(r) !== "body"), n = null;
5004
- const i = le(e).position === "fixed";
5005
- let a = i ? Ee(e) : e;
5009
+ let o = Pe(e, [], !1).filter((i) => de(i) && ge(i) !== "body"), n = null;
5010
+ const r = le(e).position === "fixed";
5011
+ let a = r ? Ee(e) : e;
5006
5012
  for (; de(a) && !ot(a); ) {
5007
- const r = le(a), s = wt(a);
5008
- !s && r.position === "fixed" && (n = null), (i ? !s && !n : !s && r.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Re(a) && !s && co(e, a)) ? o = o.filter((p) => p !== a) : n = r, a = Ee(a);
5013
+ const i = le(a), s = wt(a);
5014
+ !s && i.position === "fixed" && (n = null), (r ? !s && !n : !s && i.position === "static" && !!n && ["absolute", "fixed"].includes(n.position) || Re(a) && !s && co(e, a)) ? o = o.filter((p) => p !== a) : n = i, a = Ee(a);
5009
5015
  }
5010
5016
  return t.set(e, o), o;
5011
5017
  }
@@ -5016,10 +5022,10 @@ function Br(e) {
5016
5022
  rootBoundary: o,
5017
5023
  strategy: n
5018
5024
  } = e;
5019
- const a = [...l === "clippingAncestors" ? Lr(t, this._c) : [].concat(l), o], r = a[0], s = a.reduce((d, p) => {
5025
+ const a = [...l === "clippingAncestors" ? Lr(t, this._c) : [].concat(l), o], i = a[0], s = a.reduce((d, p) => {
5020
5026
  const u = At(t, p, n);
5021
5027
  return d.top = Be(u.top, d.top), d.right = ut(u.right, d.right), d.bottom = ut(u.bottom, d.bottom), d.left = Be(u.left, d.left), d;
5022
- }, At(t, r, n));
5028
+ }, At(t, i, n));
5023
5029
  return {
5024
5030
  width: s.right - s.left,
5025
5031
  height: s.bottom - s.top,
@@ -5031,20 +5037,20 @@ function Ar(e) {
5031
5037
  return io(e);
5032
5038
  }
5033
5039
  function Er(e, t, l) {
5034
- const o = ie(t), n = ce(t), i = l === "fixed", a = Se(e, !0, i, t);
5035
- let r = {
5040
+ const o = ie(t), n = ce(t), r = l === "fixed", a = Se(e, !0, r, t);
5041
+ let i = {
5036
5042
  scrollLeft: 0,
5037
5043
  scrollTop: 0
5038
5044
  };
5039
5045
  const s = he(0);
5040
- if (o || !o && !i)
5041
- if ((ge(t) !== "body" || Re(n)) && (r = nt(t)), o) {
5042
- const d = Se(t, !0, i, t);
5046
+ if (o || !o && !r)
5047
+ if ((ge(t) !== "body" || Re(n)) && (i = nt(t)), o) {
5048
+ const d = Se(t, !0, r, t);
5043
5049
  s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
5044
5050
  } else n && (s.x = uo(n));
5045
5051
  return {
5046
- x: a.left + r.scrollLeft - s.x,
5047
- y: a.top + r.scrollTop - s.y,
5052
+ x: a.left + i.scrollLeft - s.x,
5053
+ y: a.top + i.scrollTop - s.y,
5048
5054
  width: a.width,
5049
5055
  height: a.height
5050
5056
  };
@@ -5067,13 +5073,13 @@ const zr = async function(e) {
5067
5073
  floating: l,
5068
5074
  strategy: o
5069
5075
  } = e;
5070
- const n = this.getOffsetParent || fo, i = this.getDimensions;
5076
+ const n = this.getOffsetParent || fo, r = this.getDimensions;
5071
5077
  return {
5072
5078
  reference: Er(t, await n(l), o),
5073
5079
  floating: {
5074
5080
  x: 0,
5075
5081
  y: 0,
5076
- ...await i(l)
5082
+ ...await r(l)
5077
5083
  }
5078
5084
  };
5079
5085
  };
@@ -5095,18 +5101,18 @@ const Mr = {
5095
5101
  function Pr(e, t) {
5096
5102
  let l = null, o;
5097
5103
  const n = ce(e);
5098
- function i() {
5104
+ function r() {
5099
5105
  clearTimeout(o), l && l.disconnect(), l = null;
5100
5106
  }
5101
- function a(r, s) {
5102
- r === void 0 && (r = !1), s === void 0 && (s = 1), i();
5107
+ function a(i, s) {
5108
+ i === void 0 && (i = !1), s === void 0 && (s = 1), r();
5103
5109
  const {
5104
5110
  left: d,
5105
5111
  top: p,
5106
5112
  width: u,
5107
5113
  height: f
5108
5114
  } = e.getBoundingClientRect();
5109
- if (r || t(), !u || !f)
5115
+ if (i || t(), !u || !f)
5110
5116
  return;
5111
5117
  const m = qe(p), y = qe(n.clientWidth - (d + u)), b = qe(n.clientHeight - (p + f)), h = qe(d), j = {
5112
5118
  rootMargin: -m + "px " + -y + "px " + -b + "px " + -h + "px",
@@ -5135,23 +5141,23 @@ function Pr(e, t) {
5135
5141
  }
5136
5142
  l.observe(e);
5137
5143
  }
5138
- return a(!0), i;
5144
+ return a(!0), r;
5139
5145
  }
5140
5146
  function Fr(e, t, l, o) {
5141
5147
  o === void 0 && (o = {});
5142
5148
  const {
5143
5149
  ancestorScroll: n = !0,
5144
- ancestorResize: i = !0,
5150
+ ancestorResize: r = !0,
5145
5151
  elementResize: a = typeof ResizeObserver == "function",
5146
- layoutShift: r = typeof IntersectionObserver == "function",
5152
+ layoutShift: i = typeof IntersectionObserver == "function",
5147
5153
  animationFrame: s = !1
5148
- } = o, d = jt(e), p = n || i ? [...d ? Pe(d) : [], ...Pe(t)] : [];
5154
+ } = o, d = jt(e), p = n || r ? [...d ? Pe(d) : [], ...Pe(t)] : [];
5149
5155
  p.forEach(($) => {
5150
5156
  n && $.addEventListener("scroll", l, {
5151
5157
  passive: !0
5152
- }), i && $.addEventListener("resize", l);
5158
+ }), r && $.addEventListener("resize", l);
5153
5159
  });
5154
- const u = d && r ? Pr(d, l) : null;
5160
+ const u = d && i ? Pr(d, l) : null;
5155
5161
  let f = -1, m = null;
5156
5162
  a && (m = new ResizeObserver(($) => {
5157
5163
  let [j] = $;
@@ -5167,7 +5173,7 @@ function Fr(e, t, l, o) {
5167
5173
  }
5168
5174
  return l(), () => {
5169
5175
  p.forEach(($) => {
5170
- n && $.removeEventListener("scroll", l), i && $.removeEventListener("resize", l);
5176
+ n && $.removeEventListener("scroll", l), r && $.removeEventListener("resize", l);
5171
5177
  }), u && u(), m && m.disconnect(), m = null, s && cancelAnimationFrame(y);
5172
5178
  };
5173
5179
  }
@@ -5175,13 +5181,13 @@ const Or = (e, t, l) => {
5175
5181
  const o = /* @__PURE__ */ new Map(), n = {
5176
5182
  platform: Mr,
5177
5183
  ...l
5178
- }, i = {
5184
+ }, r = {
5179
5185
  ...n.platform,
5180
5186
  _c: o
5181
5187
  };
5182
5188
  return br(e, t, {
5183
5189
  ...n,
5184
- platform: i
5190
+ platform: r
5185
5191
  });
5186
5192
  };
5187
5193
  function Dr(e) {
@@ -5232,16 +5238,16 @@ function vo(e, t, l) {
5232
5238
  const o = l.whileElementsMounted, n = V(() => {
5233
5239
  var k;
5234
5240
  return (k = Ie(l.open)) != null ? k : !0;
5235
- }), i = V(() => Ie(l.middleware)), a = V(() => {
5241
+ }), r = V(() => Ie(l.middleware)), a = V(() => {
5236
5242
  var k;
5237
5243
  return (k = Ie(l.placement)) != null ? k : "bottom";
5238
- }), r = V(() => {
5244
+ }), i = V(() => {
5239
5245
  var k;
5240
5246
  return (k = Ie(l.strategy)) != null ? k : "absolute";
5241
5247
  }), s = V(() => {
5242
5248
  var k;
5243
5249
  return (k = Ie(l.transform)) != null ? k : !0;
5244
- }), d = V(() => dt(e.value)), p = V(() => dt(t.value)), u = C(0), f = C(0), m = C(r.value), y = C(a.value), b = Ot({}), h = C(!1), $ = V(() => {
5250
+ }), d = V(() => dt(e.value)), p = V(() => dt(t.value)), u = C(0), f = C(0), m = C(i.value), y = C(a.value), b = Ot({}), h = C(!1), $ = V(() => {
5245
5251
  const k = {
5246
5252
  position: m.value,
5247
5253
  left: "0",
@@ -5265,9 +5271,9 @@ function vo(e, t, l) {
5265
5271
  let j;
5266
5272
  function x() {
5267
5273
  d.value == null || p.value == null || Or(d.value, p.value, {
5268
- middleware: i.value,
5274
+ middleware: r.value,
5269
5275
  placement: a.value,
5270
- strategy: r.value
5276
+ strategy: i.value
5271
5277
  }).then((k) => {
5272
5278
  u.value = k.x, f.value = k.y, m.value = k.strategy, y.value = k.placement, b.value = k.middlewareData, h.value = !0;
5273
5279
  });
@@ -5288,7 +5294,7 @@ function vo(e, t, l) {
5288
5294
  function P() {
5289
5295
  n.value || (h.value = !1);
5290
5296
  }
5291
- return K([i, a, r], x, {
5297
+ return K([r, a, i], x, {
5292
5298
  flush: "sync"
5293
5299
  }), K([d, p], B, {
5294
5300
  flush: "sync"
@@ -5336,7 +5342,7 @@ const qr = () => {
5336
5342
  },
5337
5343
  emits: ["product-tour:hide"],
5338
5344
  setup(e, { expose: t, emit: l }) {
5339
- const o = l, n = e, { clearProductTourRef: i } = ho, a = C(null), r = C(null), s = C(null), d = C(null), p = C(null), u = C(n.open), f = C(), m = C(
5345
+ const o = l, n = e, { clearProductTourRef: r } = ho, a = C(null), i = C(null), s = C(null), d = C(null), p = C(null), u = C(n.open), f = C(), m = C(
5340
5346
  vo(s, a, {
5341
5347
  placement: n.position,
5342
5348
  whileElementsMounted(...k) {
@@ -5377,13 +5383,13 @@ const qr = () => {
5377
5383
  }), (k = m.value) == null || k.update(), u.value = !0);
5378
5384
  }
5379
5385
  function h() {
5380
- u.value = !1, i(), P(), o("product-tour:hide");
5386
+ u.value = !1, r(), P(), o("product-tour:hide");
5381
5387
  }
5382
5388
  function $(k) {
5383
5389
  s.value && (k.disableOverlay || j(), x(k.elementToHighlight));
5384
5390
  }
5385
5391
  function j() {
5386
- r.value = document.createElement("div"), r.value.classList.add("joy-product-tour__overlay"), r.value.addEventListener("click", h, { once: !0 }), r.value.style.position = "fixed", r.value.style.top = "0", r.value.style.left = "0", r.value.style.width = "100%", r.value.style.height = "100%", r.value.style.zIndex = "var(--joy-core-z-index-backdrop)", document.querySelector("body").appendChild(r.value);
5392
+ i.value = document.createElement("div"), i.value.classList.add("joy-product-tour__overlay"), i.value.addEventListener("click", h, { once: !0 }), i.value.style.position = "fixed", i.value.style.top = "0", i.value.style.left = "0", i.value.style.width = "100%", i.value.style.height = "100%", i.value.style.zIndex = "var(--joy-core-z-index-backdrop)", document.querySelector("body").appendChild(i.value);
5387
5393
  }
5388
5394
  function x(k) {
5389
5395
  k && (k.style.position = "relative", k.style.zIndex = "calc(var(--joy-core-z-index-backdrop) + 1)", d.value = O(dr), p.value = document.createElement("div"), p.value.classList.add(Yr), document.body.appendChild(p.value), kt(d.value, p.value), E());
@@ -5395,7 +5401,7 @@ const qr = () => {
5395
5401
  p.value.style.left = `calc(${window.scrollX + k - n.spotlightPadding}px`, p.value.style.top = `${window.scrollY + N - n.spotlightPadding}px`, p.value.style.width = `${M}px`, p.value.style.height = `${S}px`, p.value.style.position = "absolute", p.value.style.padding = n.spotlightPadding + "px", p.value.style.boxSizing = "content-box";
5396
5402
  }
5397
5403
  function B() {
5398
- r.value && r.value.remove();
5404
+ i.value && i.value.remove();
5399
5405
  }
5400
5406
  function P() {
5401
5407
  B(), s.value && (s.value.style.position = "", s.value.style.zIndex = ""), p.value && (kt(null, p.value), p.value.remove());
@@ -5502,7 +5508,7 @@ const qr = () => {
5502
5508
  },
5503
5509
  emits: ["product-tour:hide"],
5504
5510
  setup(e, { expose: t, emit: l }) {
5505
- const o = C(!1), n = e, i = l, { storeProductTourRef: a, clearProductTourRef: r } = ho, s = C(), d = be(), p = V(() => {
5511
+ const o = C(!1), n = e, r = l, { storeProductTourRef: a, clearProductTourRef: i } = ho, s = C(), d = be(), p = V(() => {
5506
5512
  if (o.value)
5507
5513
  return d;
5508
5514
  });
@@ -5510,11 +5516,11 @@ const qr = () => {
5510
5516
  a(s.value);
5511
5517
  }
5512
5518
  function f() {
5513
- i("product-tour:hide");
5519
+ r("product-tour:hide");
5514
5520
  }
5515
5521
  function m(y = { fireHideEvent: !1 }) {
5516
5522
  var b;
5517
- (b = s.value) == null || b.hide(), r(), y.fireHideEvent && f();
5523
+ (b = s.value) == null || b.hide(), i(), y.fireHideEvent && f();
5518
5524
  }
5519
5525
  return te(() => {
5520
5526
  o.value = !0, n.open && a(s.value);
@@ -5556,14 +5562,14 @@ const qr = () => {
5556
5562
  },
5557
5563
  emits: ["click"],
5558
5564
  setup(e, { emit: t }) {
5559
- const l = e, o = t, n = V(() => l.productTour), i = G(), a = V(() => i.default());
5560
- async function r() {
5565
+ const l = e, o = t, n = V(() => l.productTour), r = G(), a = V(() => r.default());
5566
+ async function i() {
5561
5567
  var s;
5562
5568
  o("click"), n.value && ((s = n.value) == null || s.show());
5563
5569
  }
5564
5570
  return (s, d) => (c(!0), g(W, null, U(a.value, (p) => (c(), T(Z(p), {
5565
5571
  key: p,
5566
- onClick: r
5572
+ onClick: i
5567
5573
  }))), 128));
5568
5574
  }
5569
5575
  }), Xr = { class: "joy-progress-bar-wrapper" }, Qr = {
@@ -5602,14 +5608,14 @@ const qr = () => {
5602
5608
  }
5603
5609
  },
5604
5610
  setup(e, { expose: t }) {
5605
- const l = e, o = C(0), n = V(() => i());
5606
- function i() {
5611
+ const l = e, o = C(0), n = V(() => r());
5612
+ function r() {
5607
5613
  return l.percentage ? o.value = l.percentage : l.currentStep && l.steps ? o.value = Math.round(l.currentStep / l.steps * 100) : o.value = 0, o.value < 0 && (o.value = 0), o.value > 100 && (o.value = 100), o.value + "%";
5608
5614
  }
5609
5615
  return t({
5610
5616
  computeInnerWidth: n,
5611
5617
  computedPercentage: o
5612
- }), (a, r) => (c(), T(re, {
5618
+ }), (a, i) => (c(), T(re, {
5613
5619
  wrap: "nowrap",
5614
5620
  "column-gap": "1",
5615
5621
  align: "center",
@@ -5659,9 +5665,9 @@ const qr = () => {
5659
5665
  },
5660
5666
  emits: ["update:modelValue"],
5661
5667
  setup(e, { expose: t, emit: l }) {
5662
- const o = l, n = e, i = C(!1), a = C(!1), r = C(null), s = C(null), d = G(), p = V(() => !n.modelValue || !n.value ? !1 : n.modelValue === n.value);
5668
+ const o = l, n = e, r = C(!1), a = C(!1), i = C(null), s = C(null), d = G(), p = V(() => !n.modelValue || !n.value ? !1 : n.modelValue === n.value);
5663
5669
  function u() {
5664
- i.value = !!d["expandable-content"] && p.value;
5670
+ r.value = !!d["expandable-content"] && p.value;
5665
5671
  }
5666
5672
  function f() {
5667
5673
  o("update:modelValue", n.value), u();
@@ -5682,10 +5688,10 @@ const qr = () => {
5682
5688
  }
5683
5689
  ), t({
5684
5690
  checked: p,
5685
- isExpanded: i
5691
+ isExpanded: r
5686
5692
  }), (b, h) => (c(), g("label", {
5687
5693
  ref_key: "root",
5688
- ref: r,
5694
+ ref: i,
5689
5695
  class: I([
5690
5696
  "joy-radio",
5691
5697
  `joy-radio--${e.theme}`,
@@ -5699,6 +5705,7 @@ const qr = () => {
5699
5705
  }, [
5700
5706
  v("input", {
5701
5707
  id: e.id,
5708
+ "data-joy-form-field": "",
5702
5709
  type: "radio",
5703
5710
  value: e.value,
5704
5711
  checked: p.value,
@@ -5722,7 +5729,7 @@ const qr = () => {
5722
5729
  v("div", {
5723
5730
  ref_key: "expandableElement",
5724
5731
  ref: s,
5725
- class: I(["joy-radio-expandable", { "joy-radio-expandable--expanded": i.value }])
5732
+ class: I(["joy-radio-expandable", { "joy-radio-expandable--expanded": r.value }])
5726
5733
  }, [
5727
5734
  w(b.$slots, "expandable-content", {}, void 0, !0)
5728
5735
  ], 2),
@@ -5732,7 +5739,7 @@ const qr = () => {
5732
5739
  ])
5733
5740
  ], 2));
5734
5741
  }
5735
- }), Iu = /* @__PURE__ */ A(ii, [["__scopeId", "data-v-d00642b4"]]), si = ["form", "name"], ui = /* @__PURE__ */ L({
5742
+ }), Iu = /* @__PURE__ */ A(ii, [["__scopeId", "data-v-c5b11e4c"]]), si = ["form", "name"], ui = /* @__PURE__ */ L({
5736
5743
  __name: "VJoyRadioGroup",
5737
5744
  props: {
5738
5745
  direction: { default: "horizontal" },
@@ -5775,29 +5782,29 @@ const qr = () => {
5775
5782
  },
5776
5783
  setup(e, { expose: t }) {
5777
5784
  const l = e, o = be(), n = V(() => {
5778
- let i = [], a = 0.24, r = 0.75;
5785
+ let r = [], a = 0.24, i = 0.75;
5779
5786
  for (let s = 0; s < 5; s++)
5780
- l.ratingValue > a ? i.push(l.ratingValue < r ? "half" : "full") : i.push("empty"), a += 1, r += 1;
5781
- return i;
5787
+ l.ratingValue > a ? r.push(l.ratingValue < i ? "half" : "full") : r.push("empty"), a += 1, i += 1;
5788
+ return r;
5782
5789
  });
5783
5790
  return t({
5784
5791
  setStars: n
5785
- }), (i, a) => (c(), g("div", {
5792
+ }), (r, a) => (c(), g("div", {
5786
5793
  role: "img",
5787
5794
  class: "joy-rating-stars__wrapper",
5788
5795
  "aria-label": q(o).ariaLabel || `Rating: ${e.ratingValue} out of 5`
5789
5796
  }, [
5790
5797
  v("ul", ci, [
5791
- (c(!0), g(W, null, U(n.value, (r, s) => (c(), g("li", {
5798
+ (c(!0), g(W, null, U(n.value, (i, s) => (c(), g("li", {
5792
5799
  key: s,
5793
5800
  class: I([`joy-rating-stars--${e.size}`])
5794
5801
  }, [
5795
- r === "full" ? (c(), T(R, {
5802
+ i === "full" ? (c(), T(R, {
5796
5803
  key: 0,
5797
5804
  "aria-hidden": "true",
5798
5805
  name: "star-fill",
5799
5806
  color: "quaternary"
5800
- })) : r === "half" ? (c(), T(R, {
5807
+ })) : i === "half" ? (c(), T(R, {
5801
5808
  key: 1,
5802
5809
  "aria-hidden": "true",
5803
5810
  name: "star-half",
@@ -5811,7 +5818,7 @@ const qr = () => {
5811
5818
  ], 2))), 128))
5812
5819
  ]),
5813
5820
  v("div", fi, [
5814
- w(i.$slots, "rating-stars-content", {}, () => [
5821
+ w(r.$slots, "rating-stars-content", {}, () => [
5815
5822
  e.reviewCount ? (c(), g("span", pi, "(" + J(e.reviewCount) + ")", 1)) : _("", !0)
5816
5823
  ], !0)
5817
5824
  ])
@@ -5865,28 +5872,28 @@ const qr = () => {
5865
5872
  },
5866
5873
  emits: ["update:modelValue"],
5867
5874
  setup(e, { expose: t, emit: l }) {
5868
- const o = e, n = l, i = G(), a = V(() => {
5869
- const b = i.default();
5875
+ const o = e, n = l, r = G(), a = V(() => {
5876
+ const b = (r == null ? void 0 : r.default) && (r == null ? void 0 : r.default());
5870
5877
  let h = [];
5871
5878
  return b.forEach(($) => {
5872
- if (r($))
5879
+ if (i($))
5873
5880
  h.push($);
5874
5881
  else {
5875
5882
  const j = $.children;
5876
5883
  if (typeof j == "string" || !j.length)
5877
5884
  return;
5878
- const x = j.filter(r);
5885
+ const x = j.filter(i);
5879
5886
  h = [...h, ...x];
5880
5887
  }
5881
5888
  }), h;
5882
5889
  });
5883
- function r(b) {
5890
+ function i(b) {
5884
5891
  return (b == null ? void 0 : b.type) === "option";
5885
5892
  }
5886
5893
  const s = C(), d = C(), p = C(!1), u = V(() => o.labelSize ? o.labelSize : o.size !== "medium" ? "small" : "medium");
5887
5894
  te(() => {
5888
5895
  var $;
5889
- const b = i["select-label"] && i["select-label"]();
5896
+ const b = r["select-label"] && r["select-label"]();
5890
5897
  if (!b || !b.length)
5891
5898
  return;
5892
5899
  const h = b[0];
@@ -5944,6 +5951,7 @@ const qr = () => {
5944
5951
  id: e.id || e.name,
5945
5952
  ref_key: "select",
5946
5953
  ref: d,
5954
+ "data-joy-form-field": "",
5947
5955
  class: "joy-select",
5948
5956
  name: e.name,
5949
5957
  "aria-label": e.label ? void 0 : e.ariaLabel,
@@ -5971,7 +5979,7 @@ const qr = () => {
5971
5979
  ], 2)
5972
5980
  ], 512));
5973
5981
  }
5974
- }), Bu = /* @__PURE__ */ A(gi, [["__scopeId", "data-v-b92cc9ce"]]), bi = ["aria-disabled"], wi = ["id", "value", "checked", "disabled", "required", "name"], _i = { class: "joy-selectable-item__label" }, ji = /* @__PURE__ */ L({
5982
+ }), Bu = /* @__PURE__ */ A(gi, [["__scopeId", "data-v-8811eaf5"]]), bi = ["aria-disabled"], wi = ["id", "value", "checked", "disabled", "required", "name"], _i = { class: "joy-selectable-item__label" }, ji = /* @__PURE__ */ L({
5975
5983
  __name: "VJoySelectableItem",
5976
5984
  props: {
5977
5985
  disabled: { type: Boolean, default: !1 },
@@ -5988,7 +5996,7 @@ const qr = () => {
5988
5996
  },
5989
5997
  emits: ["update:checked"],
5990
5998
  setup(e, { emit: t }) {
5991
- const l = t, o = Fe() + "--JoySelectableItem", n = e, i = C(), a = C(!1), r = n.multiple ? "div" : "label", s = V(() => n.id || o), d = {
5999
+ const l = t, o = Fe() + "--JoySelectableItem", n = e, r = C(), a = C(!1), i = n.multiple ? "div" : "label", s = V(() => n.id || o), d = {
5992
6000
  onRadioChange: () => {
5993
6001
  l("update:checked", n.value);
5994
6002
  },
@@ -6023,7 +6031,8 @@ const qr = () => {
6023
6031
  key: 0,
6024
6032
  id: s.value,
6025
6033
  ref_key: "inputRadio",
6026
- ref: i,
6034
+ ref: r,
6035
+ "data-joy-form-field": "",
6027
6036
  type: "radio",
6028
6037
  value: u.value,
6029
6038
  checked: u.checked,
@@ -6037,7 +6046,7 @@ const qr = () => {
6037
6046
  onBlur: f[2] || (f[2] = //@ts-ignore
6038
6047
  (...m) => d.onBlur && d.onBlur(...m))
6039
6048
  }, null, 40, wi)),
6040
- (c(), T(Z(q(r)), {
6049
+ (c(), T(Z(q(i)), {
6041
6050
  for: s.value,
6042
6051
  class: I([
6043
6052
  "joy-selectable-item",
@@ -6086,7 +6095,7 @@ const qr = () => {
6086
6095
  }, 8, ["for", "class", "onClick"]))
6087
6096
  ], 10, bi));
6088
6097
  }
6089
- }), ki = /* @__PURE__ */ A(ji, [["__scopeId", "data-v-a721b2f2"]]), $i = ["id"], Si = /* @__PURE__ */ L({
6098
+ }), ki = /* @__PURE__ */ A(ji, [["__scopeId", "data-v-1bc198e0"]]), $i = ["id"], Si = /* @__PURE__ */ L({
6090
6099
  __name: "VJoySelectableItemGroup",
6091
6100
  props: {
6092
6101
  options: {},
@@ -6107,31 +6116,31 @@ const qr = () => {
6107
6116
  emits: ["update:value"],
6108
6117
  setup(e, { emit: t }) {
6109
6118
  const l = t, o = e;
6110
- function n(r) {
6111
- return typeof o.value == "string" ? o.value === a(r) : (o.value || []).includes(a(r));
6119
+ function n(i) {
6120
+ return typeof o.value == "string" ? o.value === a(i) : (o.value || []).includes(a(i));
6112
6121
  }
6113
- function i(r, s) {
6122
+ function r(i, s) {
6114
6123
  if (!o.multiple)
6115
6124
  return l("update:value", s);
6116
6125
  let d = [...o.value || []];
6117
- s && typeof s == "boolean" ? d.push(r) : d.splice(d.indexOf(r), 1), l("update:value", d);
6126
+ s && typeof s == "boolean" ? d.push(i) : d.splice(d.indexOf(i), 1), l("update:value", d);
6118
6127
  }
6119
- function a(r) {
6120
- return o.valueKey && Object.prototype.hasOwnProperty.call(r, o.valueKey) ? r[o.valueKey] : r.value;
6128
+ function a(i) {
6129
+ return o.valueKey && Object.prototype.hasOwnProperty.call(i, o.valueKey) ? i[o.valueKey] : i.value;
6121
6130
  }
6122
- return (r, s) => (c(), g("fieldset", {
6123
- id: r.id,
6131
+ return (i, s) => (c(), g("fieldset", {
6132
+ id: i.id,
6124
6133
  class: "joy-selectable-item-group__wrapper"
6125
6134
  }, [
6126
- r.label ? (c(), T(Ve, {
6135
+ i.label ? (c(), T(Ve, {
6127
6136
  key: 0,
6128
6137
  "tag-name": "legend",
6129
- required: r.required && r.requiredMark,
6130
- "optional-label": r.optionalLabel,
6131
- size: r.labelSize
6138
+ required: i.required && i.requiredMark,
6139
+ "optional-label": i.optionalLabel,
6140
+ size: i.labelSize
6132
6141
  }, {
6133
6142
  default: z(() => [
6134
- D(J(r.label), 1)
6143
+ D(J(i.label), 1)
6135
6144
  ]),
6136
6145
  _: 1
6137
6146
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
@@ -6139,27 +6148,27 @@ const qr = () => {
6139
6148
  class: I([
6140
6149
  "joy-selectable-item-group",
6141
6150
  {
6142
- "joy-selectable-item-group--multiple": r.multiple,
6143
- "joy-selectable-item-group--single": !r.multiple,
6144
- "joy-selectable-item-group--full": r.fullWidth,
6145
- "joy-selectable-item-group--invalid": r.invalid
6151
+ "joy-selectable-item-group--multiple": i.multiple,
6152
+ "joy-selectable-item-group--single": !i.multiple,
6153
+ "joy-selectable-item-group--full": i.fullWidth,
6154
+ "joy-selectable-item-group--invalid": i.invalid
6146
6155
  }
6147
6156
  ])
6148
6157
  }, [
6149
- (c(!0), g(W, null, U(r.options, (d) => (c(), T(ki, H({ ref_for: !0 }, d.attrs, {
6158
+ (c(!0), g(W, null, U(i.options, (d) => (c(), T(ki, H({ ref_for: !0 }, d.attrs, {
6150
6159
  id: d.id,
6151
6160
  key: d.id,
6152
6161
  name: d.name,
6153
6162
  disabled: d.disabled,
6154
6163
  value: a(d),
6155
- multiple: r.multiple,
6164
+ multiple: i.multiple,
6156
6165
  checked: n(d),
6157
- invalid: r.invalid,
6158
- "onUpdate:checked": (p) => i(a(d), p)
6166
+ invalid: i.invalid,
6167
+ "onUpdate:checked": (p) => r(a(d), p)
6159
6168
  }), pt({
6160
6169
  default: z(() => [
6161
- w(r.$slots, "item", H({ ref_for: !0 }, d), () => [
6162
- D(J(r.labelKey && d[r.labelKey] || d.label), 1)
6170
+ w(i.$slots, "item", H({ ref_for: !0 }, d), () => [
6171
+ D(J(i.labelKey && d[i.labelKey] || d.label), 1)
6163
6172
  ], !0)
6164
6173
  ]),
6165
6174
  _: 2
@@ -6173,9 +6182,9 @@ const qr = () => {
6173
6182
  } : void 0
6174
6183
  ]), 1040, ["id", "name", "disabled", "value", "multiple", "checked", "invalid", "onUpdate:checked"]))), 128))
6175
6184
  ], 2),
6176
- r.errorMessage && r.invalid ? (c(), T(tt, {
6185
+ i.errorMessage && i.invalid ? (c(), T(tt, {
6177
6186
  key: 1,
6178
- "no-html-error-text": r.errorMessage,
6187
+ "no-html-error-text": i.errorMessage,
6179
6188
  class: "joy-mt-2"
6180
6189
  }, null, 8, ["no-html-error-text"])) : _("", !0)
6181
6190
  ], 8, $i));
@@ -6236,7 +6245,7 @@ const qr = () => {
6236
6245
  },
6237
6246
  emits: ["update:subSteps"],
6238
6247
  setup(e, { expose: t, emit: l }) {
6239
- const o = e, n = l, i = C(0.1), a = V(() => o.completed ? "100%" : r.value ? o.subSteps <= 1 || o.currentSubStep === 1 ? "10%" : (Math.min(o.currentSubStep / o.subSteps - i.value, 1 - i.value) * 100).toFixed(1) + "%" : "0%"), r = V(() => o.currentSubStep > 0);
6248
+ const o = e, n = l, r = C(0.1), a = V(() => o.completed ? "100%" : i.value ? o.subSteps <= 1 || o.currentSubStep === 1 ? "10%" : (Math.min(o.currentSubStep / o.subSteps - r.value, 1 - r.value) * 100).toFixed(1) + "%" : "0%"), i = V(() => o.currentSubStep > 0);
6240
6249
  function s(d) {
6241
6250
  d <= 0 && console.warn("subSteps must be equal or greater than 1"), n("update:subSteps");
6242
6251
  }
@@ -6249,7 +6258,7 @@ const qr = () => {
6249
6258
  `joy-step--size-${e.size}`,
6250
6259
  {
6251
6260
  "joy-step--completed": e.completed,
6252
- "joy-step--ongoing": r.value
6261
+ "joy-step--ongoing": i.value
6253
6262
  }
6254
6263
  ])
6255
6264
  }, [
@@ -6284,7 +6293,7 @@ const qr = () => {
6284
6293
  }
6285
6294
  },
6286
6295
  setup(e, { expose: t }) {
6287
- const l = e, o = G(), n = Ce("VJoyStepperShowLabels", !0), i = V(() => {
6296
+ const l = e, o = G(), n = Ce("VJoyStepperShowLabels", !0), r = V(() => {
6288
6297
  const f = o.default();
6289
6298
  return f.length === 1 && typeof f[0].type != "object" ? f[0].children.filter(a) : f.filter(a);
6290
6299
  });
@@ -6292,16 +6301,16 @@ const qr = () => {
6292
6301
  var m;
6293
6302
  return ((m = f.type) == null ? void 0 : m.__name) === "VJoyStep";
6294
6303
  }
6295
- const r = V(() => l.step > 0 ? i.value[l.step - 1] : i.value[0]), s = V(() => r.value.props === null ? !1 : l.subStep <= 0 || l.subStep > p.value), d = V(() => s.value && r.value.props ? r.value.props["sub-steps"] : l.subStep), p = V(() => r.value.props === null ? r.value.type.props.subSteps.default : r.value.props["sub-steps"]);
6304
+ const i = V(() => l.step > 0 ? r.value[l.step - 1] : r.value[0]), s = V(() => i.value.props === null ? !1 : l.subStep <= 0 || l.subStep > p.value), d = V(() => s.value && i.value.props ? i.value.props["sub-steps"] : l.subStep), p = V(() => i.value.props === null ? i.value.type.props.subSteps.default : i.value.props["sub-steps"]);
6296
6305
  function u(f) {
6297
6306
  return f !== l.step - 1 ? 0 : d.value;
6298
6307
  }
6299
6308
  return t({
6300
6309
  currentItemSubStep: d,
6301
- steps: i,
6310
+ steps: r,
6302
6311
  invalidSubStepValue: s
6303
6312
  }), (f, m) => (c(), g("div", Bi, [
6304
- (c(!0), g(W, null, U(i.value, (y, b) => {
6313
+ (c(!0), g(W, null, U(r.value, (y, b) => {
6305
6314
  var h;
6306
6315
  return c(), T(Li, H({ ref_for: !0 }, y.props, {
6307
6316
  key: (h = y.props) == null ? void 0 : h.id,
@@ -6352,7 +6361,7 @@ const qr = () => {
6352
6361
  },
6353
6362
  setup(e) {
6354
6363
  const t = e, l = Ce("VJoyTabs", C("")), o = V(() => l.value === t.tab);
6355
- return (n, i) => (c(), g("div", {
6364
+ return (n, r) => (c(), g("div", {
6356
6365
  id: `joy-tab-${e.tab}`,
6357
6366
  role: "tabpanel",
6358
6367
  "aria-hidden": o.value ? void 0 : "true",
@@ -6406,20 +6415,20 @@ const qr = () => {
6406
6415
  emits: ["changeTab"],
6407
6416
  setup(e, { emit: t }) {
6408
6417
  const l = e, o = t, n = V(() => typeof l.notifications == "number");
6409
- function i() {
6418
+ function r() {
6410
6419
  o("changeTab");
6411
6420
  }
6412
- function a(r) {
6413
- (r.code === "Enter" || r.code === "NumpadEnter") && o("changeTab");
6421
+ function a(i) {
6422
+ (i.code === "Enter" || i.code === "NumpadEnter") && o("changeTab");
6414
6423
  }
6415
- return (r, s) => (c(), g("a", {
6424
+ return (i, s) => (c(), g("a", {
6416
6425
  id: `joy-tab-${e.tab}`,
6417
6426
  href: e.href,
6418
6427
  "aria-selected": e.selected ? "true" : "false",
6419
6428
  "aria-controls": `job-tab-${e.tab}`,
6420
6429
  tabindex: "0",
6421
6430
  role: "tab",
6422
- onClick: i,
6431
+ onClick: r,
6423
6432
  onKeydown: s[0] || (s[0] = (d) => a(d))
6424
6433
  }, [
6425
6434
  v("div", {
@@ -6429,7 +6438,7 @@ const qr = () => {
6429
6438
  })
6430
6439
  }, [
6431
6440
  v("button", Mi, [
6432
- w(r.$slots, "default", {}, () => [
6441
+ w(i.$slots, "default", {}, () => [
6433
6442
  D(J(e.label), 1)
6434
6443
  ], !0),
6435
6444
  n.value ? (c(), T(cn, {
@@ -6452,10 +6461,10 @@ const qr = () => {
6452
6461
  },
6453
6462
  emits: ["update:selected-tab"],
6454
6463
  setup(e, { expose: t, emit: l }) {
6455
- const o = e, n = l, i = G(), a = C(o.selectedTab);
6464
+ const o = e, n = l, r = G(), a = C(o.selectedTab);
6456
6465
  Ze("VJoyTabs", a);
6457
- const r = C(null), s = C(null), d = C(!1), p = C(!1), u = V(() => {
6458
- const h = i.default();
6466
+ const i = C(null), s = C(null), d = C(!1), p = C(!1), u = V(() => {
6467
+ const h = r.default();
6459
6468
  return h.length === 1 && typeof h[0].type != "object" ? h[0].children.filter(f) : h.filter(f);
6460
6469
  });
6461
6470
  function f(h) {
@@ -6466,7 +6475,7 @@ const qr = () => {
6466
6475
  return h.props.tab === a.value;
6467
6476
  }
6468
6477
  function y() {
6469
- s.value && r.value && s.value.scrollWidth > r.value.offsetWidth ? (p.value = s.value.scrollLeft > 0, d.value = s.value.scrollLeft + r.value.offsetWidth < s.value.scrollWidth) : (p.value = !1, d.value = !1);
6478
+ s.value && i.value && s.value.scrollWidth > i.value.offsetWidth ? (p.value = s.value.scrollLeft > 0, d.value = s.value.scrollLeft + i.value.offsetWidth < s.value.scrollWidth) : (p.value = !1, d.value = !1);
6470
6479
  }
6471
6480
  function b(h, $ = !0) {
6472
6481
  h && $ && (a.value = h, n("update:selected-tab", h));
@@ -6488,7 +6497,7 @@ const qr = () => {
6488
6497
  }), (h, $) => (c(), g("div", Oi, [
6489
6498
  v("div", {
6490
6499
  ref_key: "buttonListWrapper",
6491
- ref: r,
6500
+ ref: i,
6492
6501
  class: I({
6493
6502
  "joy-tabs-buttons__wrapper": !0,
6494
6503
  "joy-tabs-buttons__wrapper--scroll-end": d.value,
@@ -6546,7 +6555,7 @@ const qr = () => {
6546
6555
  },
6547
6556
  emits: ["selected", "remove", "click"],
6548
6557
  setup(e, { emit: t }) {
6549
- const l = ["primary", "secondary"], o = t, n = e, i = V(() => ({
6558
+ const l = ["primary", "secondary"], o = t, n = e, r = V(() => ({
6550
6559
  "joy-tag": !0,
6551
6560
  "joy-tag__selected": n.selected,
6552
6561
  "joy-tag__selectable": n.selectable || n.link,
@@ -6555,7 +6564,7 @@ const qr = () => {
6555
6564
  "joy-tag__disabled": n.disabled,
6556
6565
  ["joy-tag__" + n.size]: !0,
6557
6566
  ["joy-tag__" + n.variant]: !0
6558
- })), a = Fe() + "--JoyTag", r = V(() => n.id || a);
6567
+ })), a = Fe() + "--JoyTag", i = V(() => n.id || a);
6559
6568
  function s() {
6560
6569
  o("remove", { value: n.value });
6561
6570
  }
@@ -6563,8 +6572,8 @@ const qr = () => {
6563
6572
  n.disabled || (o("click"), n.selectable && l.includes(n.variant) && o("selected", { selected: !n.selected, value: n.value }));
6564
6573
  }
6565
6574
  return (p, u) => (c(), g("span", {
6566
- id: r.value,
6567
- class: I([i.value]),
6575
+ id: i.value,
6576
+ class: I([r.value]),
6568
6577
  role: p.link || p.selectable ? "button" : void 0,
6569
6578
  onClick: d
6570
6579
  }, [
@@ -6616,14 +6625,14 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6616
6625
  },
6617
6626
  emits: ["update:modelValue", "validation:error"],
6618
6627
  setup(e, { expose: t, emit: l }) {
6619
- const o = e, n = l, i = C(o.modelValue), a = C(!1), r = C(null), s = C(o.invalid), d = C(null), p = V(() => o.validation === "email"), u = V(() => p.value && d.value === "INVALID_EMAIL" && !!o.invalidEmailError), f = V(() => d.value === "DUPLICATED_ENTRY" && !!o.duplicationError), m = V(() => s.value && (!!u.value || !!f.value));
6628
+ const o = e, n = l, r = C(o.modelValue), a = C(!1), i = C(null), s = C(o.invalid), d = C(null), p = V(() => o.validation === "email"), u = V(() => p.value && d.value === "INVALID_EMAIL" && !!o.invalidEmailError), f = V(() => d.value === "DUPLICATED_ENTRY" && !!o.duplicationError), m = V(() => s.value && (!!u.value || !!f.value));
6620
6629
  function y() {
6621
6630
  p.value && s.value === !0 && (d.value = we.INVALID_EMAIL);
6622
6631
  }
6623
6632
  function b() {
6624
6633
  var F;
6625
- const S = i.value.map((Y) => Y.trim());
6626
- return S.filter((Y, se) => S.indexOf(Y) !== se).length ? !0 : (F = r.value) != null && F.value ? S.includes(r.value.value.trim()) : !1;
6634
+ const S = r.value.map((Y) => Y.trim());
6635
+ return S.filter((Y, se) => S.indexOf(Y) !== se).length ? !0 : (F = i.value) != null && F.value ? S.includes(i.value.value.trim()) : !1;
6627
6636
  }
6628
6637
  function h() {
6629
6638
  b() && (d.value = we.DUPLICATED_ENTRY);
@@ -6631,14 +6640,14 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6631
6640
  function $(S) {
6632
6641
  var M;
6633
6642
  if (["Backspace"].includes(S.key)) {
6634
- if (((M = r.value) == null ? void 0 : M.value) !== "")
6643
+ if (((M = i.value) == null ? void 0 : M.value) !== "")
6635
6644
  return;
6636
- i.value.pop(), n("update:modelValue", i.value), p.value && N();
6645
+ r.value.pop(), n("update:modelValue", r.value), p.value && N();
6637
6646
  }
6638
6647
  }
6639
6648
  function j() {
6640
6649
  var S, M;
6641
- (S = r.value) != null && S.value && (i.value = [...i.value, (M = r.value) == null ? void 0 : M.value], r.value.value = "", n("update:modelValue", i.value));
6650
+ (S = i.value) != null && S.value && (r.value = [...r.value, (M = i.value) == null ? void 0 : M.value], i.value.value = "", n("update:modelValue", r.value));
6642
6651
  }
6643
6652
  function x(S) {
6644
6653
  var M;
@@ -6647,7 +6656,7 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6647
6656
  if (S.preventDefault(), N(), b()) {
6648
6657
  n("validation:error", we.DUPLICATED_ENTRY);
6649
6658
  return;
6650
- } else if ((M = r.value) != null && M.value && !Jt(r.value.value)) {
6659
+ } else if ((M = i.value) != null && M.value && !Jt(i.value.value)) {
6651
6660
  n("validation:error", we.INVALID_EMAIL);
6652
6661
  return;
6653
6662
  }
@@ -6670,14 +6679,14 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6670
6679
  }
6671
6680
  function P(S) {
6672
6681
  var M;
6673
- i.value = i.value.filter((F) => F !== S.value), n("update:modelValue", i.value), (M = r.value) == null || M.focus(), N();
6682
+ r.value = r.value.filter((F) => F !== S.value), n("update:modelValue", r.value), (M = i.value) == null || M.focus(), N();
6674
6683
  }
6675
6684
  function k() {
6676
6685
  var M, F;
6677
6686
  let S = !1;
6678
6687
  if (p.value) {
6679
- let Y = i.value;
6680
- (M = r.value) != null && M.value && (Y = [...Y, (F = r.value) == null ? void 0 : F.value]), S = !Jt(Y);
6688
+ let Y = r.value;
6689
+ (M = i.value) != null && M.value && (Y = [...Y, (F = i.value) == null ? void 0 : F.value]), S = !Jt(Y);
6681
6690
  }
6682
6691
  s.value = S || b(), !S && b() && (d.value = null);
6683
6692
  }
@@ -6713,7 +6722,7 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6713
6722
  }
6714
6723
  ])
6715
6724
  }, [
6716
- (c(!0), g(W, null, U(i.value, (F) => (c(), T(go, {
6725
+ (c(!0), g(W, null, U(r.value, (F) => (c(), T(go, {
6717
6726
  key: F,
6718
6727
  variant: S.variant,
6719
6728
  removable: !0,
@@ -6730,7 +6739,8 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6730
6739
  v("input", {
6731
6740
  id: S.name,
6732
6741
  ref_key: "inputEl",
6733
- ref: r,
6742
+ ref: i,
6743
+ "data-joy-form-field": "",
6734
6744
  type: "text",
6735
6745
  name: S.name,
6736
6746
  placeholder: S.placeholder,
@@ -6753,7 +6763,7 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6753
6763
  })) : _("", !0)
6754
6764
  ]));
6755
6765
  }
6756
- }), Pu = /* @__PURE__ */ A(Gi, [["__scopeId", "data-v-f00760e9"]]), Yi = /* @__PURE__ */ L({
6766
+ }), Pu = /* @__PURE__ */ A(Gi, [["__scopeId", "data-v-8124eb68"]]), Yi = /* @__PURE__ */ L({
6757
6767
  __name: "VJoyTagsList",
6758
6768
  props: {
6759
6769
  align: {
@@ -6793,13 +6803,13 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6793
6803
  var p;
6794
6804
  return o.removable ? !1 : (p = o.modelValue) == null ? void 0 : p.includes(d.value);
6795
6805
  }
6796
- function i(d) {
6806
+ function r(d) {
6797
6807
  return !o.modelValue || o.removable || d.removable ? !1 : d.selectable !== void 0 ? d.selectable : o.selectable;
6798
6808
  }
6799
6809
  function a(d) {
6800
6810
  return d.removable !== void 0 ? d.removable : o.removable;
6801
6811
  }
6802
- function r(d, p) {
6812
+ function i(d, p) {
6803
6813
  let u = [];
6804
6814
  d.selected && !n(p) ? u = [...o.modelValue || [], p.value] : u = (o.modelValue || []).filter((f) => f !== p.value), l("update:modelValue", u);
6805
6815
  }
@@ -6813,17 +6823,17 @@ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholde
6813
6823
  key: u.value || u.label,
6814
6824
  ref_for: !0
6815
6825
  }, u, {
6816
- selectable: i(u),
6826
+ selectable: r(u),
6817
6827
  removable: a(u),
6818
6828
  variant: u.variant ? u.variant : e.variant,
6819
6829
  selected: n(u),
6820
6830
  onRemove: s,
6821
- onSelected: (f) => r(f, u)
6831
+ onSelected: (f) => i(f, u)
6822
6832
  }), {
6823
6833
  default: z(() => [
6824
6834
  w(d.$slots, "tag", H({ ref_for: !0 }, {
6825
6835
  ...u,
6826
- selectable: i(u),
6836
+ selectable: r(u),
6827
6837
  selected: n(u),
6828
6838
  removable: a(u)
6829
6839
  }), void 0, !0)
@@ -6883,7 +6893,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
6883
6893
  },
6884
6894
  setup(e) {
6885
6895
  const t = e, l = G(), o = V(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"] || !!l["template-actions"]);
6886
- return (n, i) => (c(), g("div", {
6896
+ return (n, r) => (c(), g("div", {
6887
6897
  class: I(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
6888
6898
  }, [
6889
6899
  e.shapes ? (c(), T(Qi, { key: 0 })) : _("", !0),
@@ -7020,11 +7030,11 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7020
7030
  },
7021
7031
  emits: ["update:modelValue"],
7022
7032
  setup(e, { expose: t, emit: l }) {
7023
- const o = l, n = e, i = G(), a = C(), { triggerResize: r } = In({
7033
+ const o = l, n = e, r = G(), a = C(), { triggerResize: i } = In({
7024
7034
  element: n.autogrow ? a : void 0
7025
7035
  }), s = C(!1), d = C(!1);
7026
7036
  vt(a, n.autofocus);
7027
- const p = V(() => n.maxlength ? n.modelValue.length > n.maxlength : !1), u = V(() => n.minlength ? n.modelValue.length < n.minlength : !1), f = V(() => !!(n.label || i.default)), m = {
7037
+ const p = V(() => n.maxlength ? n.modelValue.length > n.maxlength : !1), u = V(() => n.minlength ? n.modelValue.length < n.minlength : !1), f = V(() => !!(n.label || r.default)), m = {
7028
7038
  onInput: (y) => {
7029
7039
  n.modelModifiers.lazy || o("update:modelValue", y.target.value), m.triggerResize();
7030
7040
  },
@@ -7041,7 +7051,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7041
7051
  * Here we store the function in an object to more easily test it with vitest.
7042
7052
  * There is an issue when we try to use spyOn vm object directly.
7043
7053
  * */
7044
- triggerResize: r
7054
+ triggerResize: i
7045
7055
  };
7046
7056
  return K(
7047
7057
  () => n.modelValue,
@@ -7053,7 +7063,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7053
7063
  isInvalid: s,
7054
7064
  valueOverMaxlength: p,
7055
7065
  valueUnderMinlength: u,
7056
- triggerResize: r,
7066
+ triggerResize: i,
7057
7067
  eventHandlers: m
7058
7068
  }), (y, b) => (c(), g("div", {
7059
7069
  "aria-disabled": e.disabled,
@@ -7086,6 +7096,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7086
7096
  id: e.id,
7087
7097
  ref_key: "textarea",
7088
7098
  ref: a,
7099
+ "data-joy-form-field": "",
7089
7100
  class: "joy-native-textarea",
7090
7101
  disabled: e.disabled,
7091
7102
  name: e.name,
@@ -7122,7 +7133,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7122
7133
  ])) : _("", !0)
7123
7134
  ], 10, cs));
7124
7135
  }
7125
- }), Ru = /* @__PURE__ */ A(vs, [["__scopeId", "data-v-52e4553a"]]), hs = /* @__PURE__ */ L({
7136
+ }), Ru = /* @__PURE__ */ A(vs, [["__scopeId", "data-v-c0a7c534"]]), hs = /* @__PURE__ */ L({
7126
7137
  __name: "VJoyTitleBrand",
7127
7138
  props: {
7128
7139
  tag: { default: "p" }
@@ -7179,8 +7190,8 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7179
7190
  const l = t;
7180
7191
  G();
7181
7192
  const o = C(!1), n = {
7182
- onChange: (i) => {
7183
- const a = i.target.checked;
7193
+ onChange: (r) => {
7194
+ const a = r.target.checked;
7184
7195
  l("update:modelValue", a);
7185
7196
  },
7186
7197
  onFocus: () => {
@@ -7190,7 +7201,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7190
7201
  o.value = !1;
7191
7202
  }
7192
7203
  };
7193
- return (i, a) => (c(), g("div", gs, [
7204
+ return (r, a) => (c(), g("div", gs, [
7194
7205
  v("label", {
7195
7206
  class: I([
7196
7207
  "joy-toggle",
@@ -7204,6 +7215,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7204
7215
  }, [
7205
7216
  v("input", {
7206
7217
  ref: "input",
7218
+ "data-joy-form-field": "",
7207
7219
  type: "checkbox",
7208
7220
  class: "joy-toggle__input",
7209
7221
  role: "checkbox",
@@ -7214,16 +7226,16 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7214
7226
  "aria-checked": e.modelValue,
7215
7227
  value: e.value,
7216
7228
  onChange: a[0] || (a[0] = //@ts-ignore
7217
- (...r) => n.onChange && n.onChange(...r)),
7229
+ (...i) => n.onChange && n.onChange(...i)),
7218
7230
  onFocus: a[1] || (a[1] = //@ts-ignore
7219
- (...r) => n.onFocus && n.onFocus(...r)),
7231
+ (...i) => n.onFocus && n.onFocus(...i)),
7220
7232
  onBlur: a[2] || (a[2] = //@ts-ignore
7221
- (...r) => n.onBlur && n.onBlur(...r))
7233
+ (...i) => n.onBlur && n.onBlur(...i))
7222
7234
  }, null, 40, bs),
7223
7235
  v("p", ws, [
7224
7236
  a[4] || (a[4] = v("span", { class: "joy-toggle__symbol" }, null, -1)),
7225
7237
  v("span", _s, [
7226
- w(i.$slots, "default", {}, () => [
7238
+ w(r.$slots, "default", {}, () => [
7227
7239
  D(J(e.label), 1)
7228
7240
  ], !0)
7229
7241
  ]),
@@ -7249,7 +7261,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7249
7261
  ], 2)
7250
7262
  ]));
7251
7263
  }
7252
- }), qu = /* @__PURE__ */ A(ks, [["__scopeId", "data-v-9f8d9f48"]]), $s = ["aria-describedby"], Ss = ["id"], Cs = /* @__PURE__ */ L({
7264
+ }), qu = /* @__PURE__ */ A(ks, [["__scopeId", "data-v-df289167"]]), $s = ["aria-describedby"], Ss = ["id"], Cs = /* @__PURE__ */ L({
7253
7265
  __name: "VJoyTooltip",
7254
7266
  props: {
7255
7267
  /** If you are 100% sure the content you want to inject does not contain anything that could lead to any XSS, use this */
@@ -7295,8 +7307,8 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7295
7307
  }
7296
7308
  },
7297
7309
  setup(e, { expose: t }) {
7298
- const l = G(), o = e, n = C(!1), i = C(null), a = C(null), r = C(null), s = C(), d = C(
7299
- vo(i, r, {
7310
+ const l = G(), o = e, n = C(!1), r = C(null), a = C(null), i = C(null), s = C(), d = C(
7311
+ vo(r, i, {
7300
7312
  placement: o.placement,
7301
7313
  transform: !1,
7302
7314
  middleware: [
@@ -7351,7 +7363,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7351
7363
  n.value = !1;
7352
7364
  }), t({
7353
7365
  tooltipVisible: n,
7354
- tooltip: r
7366
+ tooltip: i
7355
7367
  }), ($, j) => (c(), T(q(mt), {
7356
7368
  ref: "tooltipClickOutside",
7357
7369
  class: "joy-tooltip__click-outside",
@@ -7363,7 +7375,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7363
7375
  return [
7364
7376
  v("div", {
7365
7377
  ref_key: "tooltipWrapper",
7366
- ref: i,
7378
+ ref: r,
7367
7379
  class: "joy-tooltip__wrapper",
7368
7380
  "aria-describedby": e.id,
7369
7381
  onClick: y,
@@ -7377,7 +7389,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7377
7389
  key: 0,
7378
7390
  id: e.id,
7379
7391
  ref_key: "tooltip",
7380
- ref: r,
7392
+ ref: i,
7381
7393
  role: "tooltip",
7382
7394
  class: I([
7383
7395
  "joy-tooltip__content",
@@ -7493,7 +7505,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7493
7505
  setup(e) {
7494
7506
  const l = C(e.open);
7495
7507
  return (o, n) => {
7496
- const i = ct("joy-ripple");
7508
+ const r = ct("joy-ripple");
7497
7509
  return Ke((c(), g("button", H(o.$attrs, {
7498
7510
  type: "button",
7499
7511
  class: "joy-walkthrough-trigger joy-bgcolor-neutral-60 joy-core-radius-5",
@@ -7515,7 +7527,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7515
7527
  name: l.value ? "chevron-down" : "chevron-up"
7516
7528
  }, null, 8, ["name"])
7517
7529
  ], 16)), [
7518
- [i]
7530
+ [r]
7519
7531
  ]);
7520
7532
  };
7521
7533
  }
@@ -7542,8 +7554,8 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7542
7554
  emits: ["hide", "hide:header", "hide:footer"],
7543
7555
  setup(e, { expose: t, emit: l }) {
7544
7556
  const o = e, n = l;
7545
- let i = null;
7546
- const a = C(o.open), r = C(!1);
7557
+ let r = null;
7558
+ const a = C(o.open), i = C(!1);
7547
7559
  function s() {
7548
7560
  a.value ? u() : a.value = !0;
7549
7561
  }
@@ -7554,8 +7566,8 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7554
7566
  u(), n("hide"), n("hide:footer");
7555
7567
  }
7556
7568
  function u() {
7557
- i && clearTimeout(i), r.value = !0, i = setTimeout(() => {
7558
- a.value = !1, r.value = !1;
7569
+ r && clearTimeout(r), i.value = !0, r = setTimeout(() => {
7570
+ a.value = !1, i.value = !1;
7559
7571
  }, 200);
7560
7572
  }
7561
7573
  return K(
@@ -7573,7 +7585,7 @@ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46
7573
7585
  class: I(["joy-walkthrough joy-core-radius-4", { "joy-walkthrough--collapsed": !a.value }])
7574
7586
  }, [
7575
7587
  a.value ? (c(), g("div", H({ key: 0 }, f.$attrs, {
7576
- class: ["joy-walkthrough-modal joy-core-elevation-4", { "joy-walkthrough-modal--hiding": r.value }]
7588
+ class: ["joy-walkthrough-modal joy-core-elevation-4", { "joy-walkthrough-modal--hiding": i.value }]
7577
7589
  }), [
7578
7590
  O(re, {
7579
7591
  "no-margin": "",