@maltjoy/core-vue 5.0.0-alpha.1 → 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
  ]),
@@ -309,7 +309,7 @@ const Yo = {
309
309
  typeof window < "u" && Wt(), e.directive("joy-ripple", Rt);
310
310
  }
311
311
  };
312
- function Ks() {
312
+ function Ws() {
313
313
  He = 0, Ht = [];
314
314
  }
315
315
  function Wt(e = { appendTo: "body", defaultMountSelector: qt }) {
@@ -330,8 +330,8 @@ function Wt(e = { appendTo: "body", defaultMountSelector: qt }) {
330
330
  }
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
- function Zs(e) {
334
- var i, a;
333
+ function Us(e) {
334
+ var r, a;
335
335
  He++;
336
336
  let t, l;
337
337
  const o = Uo();
@@ -343,9 +343,9 @@ function Zs(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
@@ -364,7 +364,7 @@ const Ko = { class: "joy-admin-banner" }, Zo = { class: "joy-admin-banner__label
364
364
  ])
365
365
  ]));
366
366
  }
367
- }), Xs = /* @__PURE__ */ A(Xo, [["__scopeId", "data-v-77d28117"]]), Qo = ["title"], en = /* @__PURE__ */ L({
367
+ }), Gs = /* @__PURE__ */ A(Xo, [["__scopeId", "data-v-77d28117"]]), Qo = ["title"], en = /* @__PURE__ */ L({
368
368
  __name: "VJoyAvailability",
369
369
  props: {
370
370
  label: {},
@@ -389,7 +389,7 @@ const Ko = { class: "joy-admin-banner" }, Zo = { class: "joy-admin-banner__label
389
389
  ], 64)) : _("", !0)
390
390
  ], 10, Qo));
391
391
  }
392
- }), Qs = /* @__PURE__ */ A(en, [["__scopeId", "data-v-b3bb9092"]]), tn = ["src", "title", "alt", "loading"], on = {
392
+ }), Ys = /* @__PURE__ */ A(en, [["__scopeId", "data-v-b3bb9092"]]), tn = ["src", "title", "alt", "loading"], on = {
393
393
  key: 0,
394
394
  class: "joy-avatar__strategy"
395
395
  }, nn = ["height"], ln = /* @__PURE__ */ L({
@@ -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,
@@ -501,7 +501,7 @@ const Ko = { class: "joy-admin-banner" }, Zo = { class: "joy-admin-banner__label
501
501
  w(t.$slots, "default", {}, void 0, !0)
502
502
  ], 2));
503
503
  }
504
- }), eu = /* @__PURE__ */ A(rn, [["__scopeId", "data-v-c985cccf"]]), sn = { key: 0 }, un = /* @__PURE__ */ L({
504
+ }), Ks = /* @__PURE__ */ A(rn, [["__scopeId", "data-v-c985cccf"]]), sn = { key: 0 }, un = /* @__PURE__ */ L({
505
505
  __name: "VJoyDot",
506
506
  props: {
507
507
  number: Number,
@@ -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",
@@ -709,7 +709,7 @@ const fn = { class: "joy-badge-level" }, pn = {
709
709
  ], 2)
710
710
  ]));
711
711
  }
712
- }), tu = /* @__PURE__ */ A(hn, [["__scopeId", "data-v-08a5e2c8"]]), gn = /* @__PURE__ */ L({
712
+ }), Zs = /* @__PURE__ */ A(hn, [["__scopeId", "data-v-08a5e2c8"]]), gn = /* @__PURE__ */ L({
713
713
  __name: "VJoyBlockSkeleton",
714
714
  props: {
715
715
  /** If you want to use it properly you need to set fixed width and height */
@@ -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,
@@ -746,7 +746,7 @@ const fn = { class: "joy-badge-level" }, pn = {
746
746
  })
747
747
  }, null, 6));
748
748
  }
749
- }), ou = /* @__PURE__ */ A(gn, [["__scopeId", "data-v-4da2c7cb"]]), bn = /* @__PURE__ */ L({
749
+ }), Xs = /* @__PURE__ */ A(gn, [["__scopeId", "data-v-4da2c7cb"]]), bn = /* @__PURE__ */ L({
750
750
  __name: "VJoySpinner",
751
751
  props: {
752
752
  color: {
@@ -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
  {
@@ -1266,21 +1266,21 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1266
1266
  ], 16)) : _("", !0)
1267
1267
  ], 8, ["to"])) : _("", !0);
1268
1268
  }
1269
- }), nu = /* @__PURE__ */ A(Fn, [["__scopeId", "data-v-098e6a23"]]), lu = /* @__PURE__ */ L({
1269
+ }), Qs = /* @__PURE__ */ A(Fn, [["__scopeId", "data-v-098e6a23"]]), eu = /* @__PURE__ */ L({
1270
1270
  __name: "VJoyBottomSheetTrigger",
1271
1271
  props: {
1272
1272
  bottomSheet: {}
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,
@@ -1586,7 +1587,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1586
1587
  }, 1040, ["open", "mode", "onCollapseItem:open", "onCollapseItem:close"]))), 128))
1587
1588
  ]));
1588
1589
  }
1589
- }), au = /* @__PURE__ */ A(el, [["__scopeId", "data-v-35744932"]]), tl = ["src", "alt", "title", "loading"], ol = /* @__PURE__ */ L({
1590
+ }), tu = /* @__PURE__ */ A(el, [["__scopeId", "data-v-35744932"]]), tl = ["src", "alt", "title", "loading"], ol = /* @__PURE__ */ L({
1590
1591
  __name: "VJoyCompanyAvatar",
1591
1592
  props: {
1592
1593
  /** Inject the URL of your image. Fallback will be the icon */
@@ -1634,7 +1635,7 @@ const Mn = { class: "joy-bottom-sheet_content" }, Pn = { class: "joy-bottom-shee
1634
1635
  }, null, 8, ["size"]))
1635
1636
  ], 2));
1636
1637
  }
1637
- }), ru = /* @__PURE__ */ A(ol, [["__scopeId", "data-v-2f1289c1"]]), nl = ["aria-hidden"], ll = /* @__PURE__ */ L({
1638
+ }), ou = /* @__PURE__ */ A(ol, [["__scopeId", "data-v-2f1289c1"]]), nl = ["aria-hidden"], ll = /* @__PURE__ */ L({
1638
1639
  __name: "VJoyFormError",
1639
1640
  props: {
1640
1641
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -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
- }), iu = /* @__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",
@@ -2230,21 +2234,21 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2230
2234
  })
2231
2235
  ], 8, ["to", "disabled"])) : _("", !0);
2232
2236
  }
2233
- }), su = /* @__PURE__ */ A(Cl, [["__scopeId", "data-v-0f773f72"]]), uu = /* @__PURE__ */ L({
2237
+ }), lu = /* @__PURE__ */ A(Cl, [["__scopeId", "data-v-0f773f72"]]), au = /* @__PURE__ */ L({
2234
2238
  __name: "VJoyDialogTrigger",
2235
2239
  props: {
2236
2240
  dialog: {}
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
@@ -2479,21 +2483,21 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2479
2483
  })
2480
2484
  ], 8, ["to", "disabled"])) : _("", !0);
2481
2485
  }
2482
- }), du = /* @__PURE__ */ A(Bl, [["__scopeId", "data-v-056f6134"]]), cu = /* @__PURE__ */ L({
2486
+ }), ru = /* @__PURE__ */ A(Bl, [["__scopeId", "data-v-056f6134"]]), iu = /* @__PURE__ */ L({
2483
2487
  __name: "VJoyDrawerTrigger",
2484
2488
  props: {
2485
2489
  drawer: {}
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,
@@ -2873,7 +2877,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
2873
2877
  _: 3
2874
2878
  }, 512));
2875
2879
  }
2876
- }), fu = /* @__PURE__ */ A(Fl, [["__scopeId", "data-v-8d25933f"]]), Ol = { class: "joy-dropzone__icon-wrapper" }, Dl = /* @__PURE__ */ L({
2880
+ }), su = /* @__PURE__ */ A(Fl, [["__scopeId", "data-v-8d25933f"]]), Ol = { class: "joy-dropzone__icon-wrapper" }, Dl = /* @__PURE__ */ L({
2877
2881
  __name: "VJoyDropzoneIcon",
2878
2882
  props: {
2879
2883
  name: { type: String, required: !0 }
@@ -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", {
@@ -3125,7 +3129,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3125
3129
  }, null, 8, ["no-html-error-text"])) : _("", !0)
3126
3130
  ], 2));
3127
3131
  }
3128
- }), pu = /* @__PURE__ */ A(Ql, [["__scopeId", "data-v-bf95ba80"]]), ea = ["aria-label"], ta = { class: "joy-filter-bar__wrapper" }, oa = /* @__PURE__ */ L({
3132
+ }), uu = /* @__PURE__ */ A(Ql, [["__scopeId", "data-v-bf95ba80"]]), ea = ["aria-label"], ta = { class: "joy-filter-bar__wrapper" }, oa = /* @__PURE__ */ L({
3129
3133
  __name: "VJoyFilterBar",
3130
3134
  props: {
3131
3135
  /** To give a label to the whole component */
@@ -3142,7 +3146,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3142
3146
  ])
3143
3147
  ], 8, ea));
3144
3148
  }
3145
- }), yu = /* @__PURE__ */ A(oa, [["__scopeId", "data-v-cb769d05"]]), na = /* @__PURE__ */ L({
3149
+ }), du = /* @__PURE__ */ A(oa, [["__scopeId", "data-v-cb769d05"]]), na = /* @__PURE__ */ L({
3146
3150
  __name: "VJoyFilterBarButton",
3147
3151
  props: {
3148
3152
  /** Label to inject inside the button */
@@ -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
- }), mu = /* @__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
- }), vu = /* @__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" }])
@@ -3290,7 +3295,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3290
3295
  ], 32)
3291
3296
  ], 2));
3292
3297
  }
3293
- }), hu = /* @__PURE__ */ A(ia, [["__scopeId", "data-v-e2fccb79"]]), sa = { class: "joy-funnel-footer" }, ua = { class: "joy-funnel-footer__left" }, da = { class: "joy-funnel-footer__right" }, ca = /* @__PURE__ */ L({
3298
+ }), pu = /* @__PURE__ */ A(ia, [["__scopeId", "data-v-e2fccb79"]]), sa = { class: "joy-funnel-footer" }, ua = { class: "joy-funnel-footer__left" }, da = { class: "joy-funnel-footer__right" }, ca = /* @__PURE__ */ L({
3294
3299
  __name: "VJoyFunnelFooter",
3295
3300
  setup(e) {
3296
3301
  return (t, l) => (c(), g("footer", sa, [
@@ -3302,7 +3307,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3302
3307
  ])
3303
3308
  ]));
3304
3309
  }
3305
- }), gu = /* @__PURE__ */ A(ca, [["__scopeId", "data-v-bdeeb2bd"]]), fa = { class: "joy-funnel-header" }, pa = { class: "joy-funnel-header__left" }, ya = { class: "joy-funnel-header__right" }, ma = /* @__PURE__ */ L({
3310
+ }), yu = /* @__PURE__ */ A(ca, [["__scopeId", "data-v-bdeeb2bd"]]), fa = { class: "joy-funnel-header" }, pa = { class: "joy-funnel-header__left" }, ya = { class: "joy-funnel-header__right" }, ma = /* @__PURE__ */ L({
3306
3311
  __name: "VJoyFunnelHeader",
3307
3312
  setup(e) {
3308
3313
  return (t, l) => (c(), g("header", fa, [
@@ -3314,19 +3319,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3314
3319
  ])
3315
3320
  ]));
3316
3321
  }
3317
- }), bu = /* @__PURE__ */ A(ma, [["__scopeId", "data-v-d9804793"]]), va = { class: "joy-header" }, ha = { class: "joy-header__left" }, ga = { class: "joy-header__right" }, ba = /* @__PURE__ */ L({
3318
- __name: "VJoyHeader",
3319
- setup(e) {
3320
- return (t, l) => (c(), g("header", va, [
3321
- v("div", ha, [
3322
- w(t.$slots, "header-left", {}, void 0, !0)
3323
- ]),
3324
- v("div", ga, [
3325
- w(t.$slots, "header-right", {}, void 0, !0)
3326
- ])
3327
- ]));
3328
- }
3329
- }), wu = /* @__PURE__ */ A(ba, [["__scopeId", "data-v-7928856e"]]), wa = { class: "joy-highlight__decorator" }, _a = { class: "joy-highlight__text" }, ja = { key: 0 }, ka = /* @__PURE__ */ L({
3322
+ }), mu = /* @__PURE__ */ A(ma, [["__scopeId", "data-v-d9804793"]]), va = { class: "joy-highlight__decorator" }, ha = { class: "joy-highlight__text" }, ga = { key: 0 }, ba = /* @__PURE__ */ L({
3330
3323
  __name: "VJoyHighlight",
3331
3324
  props: {
3332
3325
  accent: {
@@ -3356,7 +3349,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3356
3349
  const l = e, o = V(() => l.icon ? l.icon : Nt(l.level));
3357
3350
  return t({
3358
3351
  getRelevantIcon: o
3359
- }), (n, i) => (c(), g("div", {
3352
+ }), (n, r) => (c(), g("div", {
3360
3353
  class: I([
3361
3354
  "joy-highlight",
3362
3355
  `joy-highlight_${e.level}`,
@@ -3367,7 +3360,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3367
3360
  }
3368
3361
  ])
3369
3362
  }, [
3370
- v("div", wa, [
3363
+ v("div", va, [
3371
3364
  w(n.$slots, "highlight-decorator", {}, () => [
3372
3365
  e.displayIcon ? (c(), T(R, {
3373
3366
  key: 0,
@@ -3375,15 +3368,15 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3375
3368
  }, null, 8, ["name"])) : _("", !0)
3376
3369
  ], !0)
3377
3370
  ]),
3378
- v("div", _a, [
3379
- n.$slots["highlight-title"] ? (c(), g("strong", ja, [
3371
+ v("div", ha, [
3372
+ n.$slots["highlight-title"] ? (c(), g("strong", ga, [
3380
3373
  w(n.$slots, "highlight-title", {}, void 0, !0)
3381
3374
  ])) : _("", !0),
3382
3375
  w(n.$slots, "default", {}, void 0, !0)
3383
3376
  ])
3384
3377
  ], 2));
3385
3378
  }
3386
- }), _u = /* @__PURE__ */ A(ka, [["__scopeId", "data-v-e5c2ff23"]]), $a = ["aria-label"], Sa = /* @__PURE__ */ L({
3379
+ }), vu = /* @__PURE__ */ A(ba, [["__scopeId", "data-v-e5c2ff23"]]), wa = ["aria-label"], _a = /* @__PURE__ */ L({
3387
3380
  __name: "VJoyIndicator",
3388
3381
  props: {
3389
3382
  /** Value is used for the parent v-model. Mandatory */
@@ -3413,10 +3406,10 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3413
3406
  type: "button",
3414
3407
  class: I(["joy-indicator--button", { "joy-indicator--button-selected": e.selected }]),
3415
3408
  "aria-label": e.ariaLabel || e.value.toString()
3416
- }, null, 10, $a)
3409
+ }, null, 10, wa)
3417
3410
  ], 2));
3418
3411
  }
3419
- }), Ca = /* @__PURE__ */ A(Sa, [["__scopeId", "data-v-88a82b4f"]]), Va = /* @__PURE__ */ L({
3412
+ }), ja = /* @__PURE__ */ A(_a, [["__scopeId", "data-v-88a82b4f"]]), ka = /* @__PURE__ */ L({
3420
3413
  __name: "VJoyIndicators",
3421
3414
  props: {
3422
3415
  variant: {
@@ -3429,8 +3422,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3429
3422
  },
3430
3423
  emits: ["update:modelValue"],
3431
3424
  setup(e, { expose: t, emit: l }) {
3432
- const o = e, n = l, i = G(), a = C(o.modelValue), r = V(() => {
3433
- const u = i.default();
3425
+ const o = e, n = l, r = G(), a = C(o.modelValue), i = V(() => {
3426
+ const u = r.default();
3434
3427
  return u.length === 1 && typeof u[0].type != "object" ? u[0].children.filter(d) : u.filter(d);
3435
3428
  });
3436
3429
  function s(u) {
@@ -3449,12 +3442,12 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3449
3442
  u !== f && (a.value = u);
3450
3443
  }
3451
3444
  ), t({
3452
- indicators: r,
3445
+ indicators: i,
3453
3446
  isSelected: s
3454
3447
  }), (u, f) => (c(), g("ul", {
3455
3448
  class: I(["joy-indicators", `joy-indicators--${e.variant}`])
3456
3449
  }, [
3457
- (c(!0), g(W, null, U(r.value, (m) => (c(), T(Ca, H({
3450
+ (c(!0), g(W, null, U(i.value, (m) => (c(), T(ja, H({
3458
3451
  key: m.props.value,
3459
3452
  ref_for: !0
3460
3453
  }, { ...m.props, variant: e.variant }, {
@@ -3463,7 +3456,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3463
3456
  }), null, 16, ["selected", "onClick"]))), 128))
3464
3457
  ], 2));
3465
3458
  }
3466
- }), ju = /* @__PURE__ */ A(Va, [["__scopeId", "data-v-f2dd63e9"]]), Ta = ["id", "name", "required", "disabled", "readonly", "type", "value"], xa = ["data-unit"], Ia = /* @__PURE__ */ L({
3459
+ }), hu = /* @__PURE__ */ A(ka, [["__scopeId", "data-v-f2dd63e9"]]), $a = ["id", "name", "required", "disabled", "readonly", "type", "value"], Sa = ["data-unit"], Ca = /* @__PURE__ */ L({
3467
3460
  inheritAttrs: !1,
3468
3461
  __name: "VJoyInput",
3469
3462
  props: {
@@ -3540,9 +3533,9 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3540
3533
  },
3541
3534
  emits: ["update:modelValue"],
3542
3535
  setup(e, { expose: t, emit: l }) {
3543
- 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);
3544
3537
  vt(a, n.autofocus);
3545
- 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);
3546
3539
  Io(() => {
3547
3540
  b.value = n.unit ? "number" : n.type;
3548
3541
  });
@@ -3579,7 +3572,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3579
3572
  focus: $
3580
3573
  }), (x, E) => (c(), g("div", {
3581
3574
  ref_key: "root",
3582
- ref: r,
3575
+ ref: i,
3583
3576
  class: I([`joy-input--${n.size}`])
3584
3577
  }, [
3585
3578
  v("div", {
@@ -3623,6 +3616,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3623
3616
  id: e.id || e.name,
3624
3617
  ref_key: "input",
3625
3618
  ref: a,
3619
+ "data-joy-form-field": "",
3626
3620
  name: e.name,
3627
3621
  required: e.required,
3628
3622
  disabled: e.disabled,
@@ -3645,7 +3639,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3645
3639
  (...B) => j.onChange && j.onChange(...B)),
3646
3640
  onWheel: E[4] || (E[4] = //@ts-ignore
3647
3641
  (...B) => j.onWheelScroll && j.onWheelScroll(...B))
3648
- }), null, 16, Ta),
3642
+ }), null, 16, $a),
3649
3643
  f.value ? (c(), T(ne, {
3650
3644
  key: 0,
3651
3645
  class: "joy-input--clear",
@@ -3670,12 +3664,12 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3670
3664
  key: 3,
3671
3665
  "data-unit": e.unit,
3672
3666
  class: "joy-input--unit"
3673
- }, null, 8, xa)) : _("", !0)
3667
+ }, null, 8, Sa)) : _("", !0)
3674
3668
  ], 2)
3675
3669
  ], 2)
3676
3670
  ], 2));
3677
3671
  }
3678
- }), ku = /* @__PURE__ */ A(Ia, [["__scopeId", "data-v-aa5a992c"]]), La = { class: "joy-link__text" }, Ba = /* @__PURE__ */ L({
3672
+ }), gu = /* @__PURE__ */ A(Ca, [["__scopeId", "data-v-aff0578c"]]), Va = { class: "joy-link__text" }, Ta = /* @__PURE__ */ L({
3679
3673
  __name: "VJoyLink",
3680
3674
  props: {
3681
3675
  href: {
@@ -3701,7 +3695,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3701
3695
  key: 0,
3702
3696
  name: e.icon
3703
3697
  }, null, 8, ["name"])) : _("", !0),
3704
- v("span", La, [
3698
+ v("span", Va, [
3705
3699
  w(t.$slots, "default", {}, () => [
3706
3700
  D(J(e.text), 1)
3707
3701
  ], !0)
@@ -3710,7 +3704,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3710
3704
  _: 3
3711
3705
  }, 16, ["href", "class", "type"]));
3712
3706
  }
3713
- }), $u = /* @__PURE__ */ A(Ba, [["__scopeId", "data-v-19a65db4"]]), Aa = { class: "joy-list-item__left" }, Ea = { class: "joy-font-primary-300 joy-m-0" }, za = { class: "joy-list-item__right" }, Ja = /* @__PURE__ */ L({
3707
+ }), bu = /* @__PURE__ */ A(Ta, [["__scopeId", "data-v-19a65db4"]]), xa = { class: "joy-list-item__left" }, Ia = { class: "joy-font-primary-300 joy-m-0" }, La = { class: "joy-list-item__right" }, Ba = /* @__PURE__ */ L({
3714
3708
  __name: "VJoyListItem",
3715
3709
  props: {
3716
3710
  icon: {}
@@ -3728,17 +3722,17 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3728
3722
  justify: "space-between"
3729
3723
  }, {
3730
3724
  default: z(() => [
3731
- v("div", Aa, [
3725
+ v("div", xa, [
3732
3726
  t.icon ? (c(), T(R, {
3733
3727
  key: 0,
3734
3728
  class: "joy-p-3 joy-list-item__left-icon",
3735
3729
  name: t.icon
3736
3730
  }, null, 8, ["name"])) : _("", !0),
3737
- v("p", Ea, [
3731
+ v("p", Ia, [
3738
3732
  w(t.$slots, "list-item-left", {}, void 0, !0)
3739
3733
  ])
3740
3734
  ]),
3741
- v("div", za, [
3735
+ v("div", La, [
3742
3736
  w(t.$slots, "list-item-right", {}, void 0, !0)
3743
3737
  ])
3744
3738
  ]),
@@ -3746,7 +3740,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3746
3740
  })
3747
3741
  ]));
3748
3742
  }
3749
- }), Su = /* @__PURE__ */ A(Ja, [["__scopeId", "data-v-6c3750f0"]]), Ma = ["aria-activedescendant", "aria-label"], Pa = ["aria-disabled", "aria-current", "title", "aria-label", ".dataModel", "onClick"], Fa = { "aria-hidden": "true" }, Oa = /* @__PURE__ */ L({
3743
+ }), wu = /* @__PURE__ */ A(Ba, [["__scopeId", "data-v-6c3750f0"]]), Aa = ["aria-activedescendant", "aria-label"], Ea = ["aria-disabled", "aria-current", "title", "aria-label", ".dataModel", "onClick"], za = { "aria-hidden": "true" }, Ja = /* @__PURE__ */ L({
3750
3744
  __name: "VJoyMenu",
3751
3745
  props: {
3752
3746
  /**
@@ -3769,11 +3763,11 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3769
3763
  setup(e, { expose: t, emit: l }) {
3770
3764
  const o = l, n = C();
3771
3765
  C(0);
3772
- const i = C();
3766
+ const r = C();
3773
3767
  function a(u) {
3774
3768
  u.disabled || o("selectItem", u);
3775
3769
  }
3776
- function r() {
3770
+ function i() {
3777
3771
  var u;
3778
3772
  return Array.from(((u = n.value) == null ? void 0 : u.querySelectorAll("li")) || []).filter((f) => f.getAttribute("aria-disabled") !== "true");
3779
3773
  }
@@ -3781,16 +3775,16 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3781
3775
  return u.id || Xe();
3782
3776
  }
3783
3777
  function d() {
3784
- return r().find((u) => u === document.activeElement);
3778
+ return i().find((u) => u === document.activeElement);
3785
3779
  }
3786
3780
  function p(u) {
3787
- 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)) {
3788
3782
  u.preventDefault();
3789
- const f = r(), m = d();
3783
+ const f = i(), m = d();
3790
3784
  let y = f.indexOf(m);
3791
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)
3792
3786
  return;
3793
- i.value = f[y].id, f[y].focus();
3787
+ r.value = f[y].id, f[y].focus();
3794
3788
  }
3795
3789
  if (u.key === "Enter") {
3796
3790
  const f = d();
@@ -3801,8 +3795,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3801
3795
  }
3802
3796
  }
3803
3797
  return t({
3804
- activeMenuItemId: i,
3805
- getItems: r,
3798
+ activeMenuItemId: r,
3799
+ getItems: i,
3806
3800
  getItemId: s,
3807
3801
  getFocusedItem: d
3808
3802
  }), (u, f) => {
@@ -3811,7 +3805,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3811
3805
  ref_key: "menu",
3812
3806
  ref: n,
3813
3807
  class: "joy-menu-list joy-menu-list__items",
3814
- "aria-activedescendant": i.value,
3808
+ "aria-activedescendant": r.value,
3815
3809
  "aria-label": e.ariaLabel,
3816
3810
  role: "menu",
3817
3811
  onKeydown: p
@@ -3835,7 +3829,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3835
3829
  role: "menuitem",
3836
3830
  onClick: (b) => a(y)
3837
3831
  }, [
3838
- v("div", Fa, [
3832
+ v("div", za, [
3839
3833
  w(u.$slots, "menu-item", H({ ref_for: !0 }, y), () => [
3840
3834
  y.icon ? (c(), T(R, {
3841
3835
  key: 0,
@@ -3844,13 +3838,13 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3844
3838
  v("span", null, J(y.label), 1)
3845
3839
  ], !0)
3846
3840
  ])
3847
- ], 42, Pa)), [
3841
+ ], 42, Ea)), [
3848
3842
  [m, { id: s(y) }]
3849
3843
  ])), 128))
3850
- ], 40, Ma);
3844
+ ], 40, Aa);
3851
3845
  };
3852
3846
  }
3853
- }), Cu = /* @__PURE__ */ A(Oa, [["__scopeId", "data-v-b76ae1e8"]]), Da = ["aria-disabled", "aria-current", "title", "aria-label"], Ra = { class: "joy-menu-item__label joy-font-primary-400" }, Na = /* @__PURE__ */ L({
3847
+ }), _u = /* @__PURE__ */ A(Ja, [["__scopeId", "data-v-b76ae1e8"]]), Ma = ["aria-disabled", "aria-current", "title", "aria-label"], Pa = { class: "joy-menu-item__label joy-font-primary-400" }, Fa = /* @__PURE__ */ L({
3854
3848
  inheritAttrs: !1,
3855
3849
  __name: "VJoyMenuItem",
3856
3850
  props: {
@@ -3866,9 +3860,9 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3866
3860
  },
3867
3861
  emits: ["click"],
3868
3862
  setup(e, { expose: t, emit: l }) {
3869
- const o = l, n = be(), i = e, a = V(() => i.type !== "a" && i.type !== "button" ? i.linkProps : { ...n, href: i.href });
3870
- function r() {
3871
- 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");
3872
3866
  }
3873
3867
  return t({
3874
3868
  getProps: a
@@ -3889,7 +3883,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3889
3883
  }
3890
3884
  ],
3891
3885
  type: s.type === "button" ? "button" : null,
3892
- onClick: r
3886
+ onClick: i
3893
3887
  }), {
3894
3888
  default: z(() => [
3895
3889
  s.icon ? (c(), T(R, {
@@ -3897,7 +3891,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3897
3891
  class: "joy-menu-item__icon-left",
3898
3892
  name: s.icon
3899
3893
  }, null, 8, ["name"])) : _("", !0),
3900
- v("span", Ra, J(s.label), 1),
3894
+ v("span", Pa, J(s.label), 1),
3901
3895
  s.status ? (c(), T(R, {
3902
3896
  key: 1,
3903
3897
  class: "joy-menu-item__icon-right",
@@ -3907,11 +3901,11 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3907
3901
  ]),
3908
3902
  _: 1
3909
3903
  }, 16, ["class", "type"]))
3910
- ], 8, Da));
3904
+ ], 8, Ma));
3911
3905
  }
3912
- }), Vu = /* @__PURE__ */ A(Na, [["__scopeId", "data-v-283b560c"]]), qa = ["id"], Ha = {
3906
+ }), ju = /* @__PURE__ */ A(Fa, [["__scopeId", "data-v-283b560c"]]), Oa = ["id"], Da = {
3913
3907
  class: /* @__PURE__ */ I(["joy-multi-checkbox"])
3914
- }, Wa = /* @__PURE__ */ L({
3908
+ }, Ra = /* @__PURE__ */ L({
3915
3909
  __name: "VJoyMultiCheckbox",
3916
3910
  props: {
3917
3911
  options: {},
@@ -3929,11 +3923,11 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3929
3923
  function n(a) {
3930
3924
  return o.value.includes(a.value);
3931
3925
  }
3932
- function i(a, r) {
3926
+ function r(a, i) {
3933
3927
  let s = [...o.value || []];
3934
- 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);
3935
3929
  }
3936
- return (a, r) => (c(), g("fieldset", {
3930
+ return (a, i) => (c(), g("fieldset", {
3937
3931
  id: a.id,
3938
3932
  class: "joy-multi-checkbox__wrapper"
3939
3933
  }, [
@@ -3949,14 +3943,14 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3949
3943
  ]),
3950
3944
  _: 1
3951
3945
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
3952
- v("div", Ha, [
3946
+ v("div", Da, [
3953
3947
  (c(!0), g(W, null, U(a.options, (s) => (c(), T(Kt, {
3954
3948
  id: s.id,
3955
3949
  key: s.id,
3956
3950
  name: s.name,
3957
3951
  value: s.value,
3958
3952
  checked: n(s),
3959
- "onUpdate:checked": (d) => i(s.value, d)
3953
+ "onUpdate:checked": (d) => r(s.value, d)
3960
3954
  }, {
3961
3955
  default: z(() => [
3962
3956
  w(a.$slots, "checkbox", H({ ref_for: !0 }, s), () => [
@@ -3966,9 +3960,9 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3966
3960
  _: 2
3967
3961
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
3968
3962
  ])
3969
- ], 8, qa));
3963
+ ], 8, Oa));
3970
3964
  }
3971
- }), Tu = /* @__PURE__ */ A(Wa, [["__scopeId", "data-v-c82c5828"]]), It = /* @__PURE__ */ L({
3965
+ }), ku = /* @__PURE__ */ A(Ra, [["__scopeId", "data-v-c82c5828"]]), It = /* @__PURE__ */ L({
3972
3966
  __name: "PaginationIcon",
3973
3967
  props: {
3974
3968
  label: {
@@ -3999,7 +3993,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
3999
3993
  onClick: l[0] || (l[0] = (o) => t.$emit("click"))
4000
3994
  }, null, 8, ["label", "title", "icon", "disabled"]));
4001
3995
  }
4002
- }), Ua = ["aria-label", "data-current"], Ga = ["onClick"], Ya = ["aria-current"], Ka = 6, Za = /* @__PURE__ */ L({
3996
+ }), Na = ["aria-label", "data-current"], qa = ["onClick"], Ha = ["aria-current"], Wa = 6, Ua = /* @__PURE__ */ L({
4003
3997
  __name: "VJoyPagination",
4004
3998
  props: {
4005
3999
  /** Current page number */
@@ -4033,8 +4027,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4033
4027
  const l = e, o = t, n = V(() => {
4034
4028
  const p = a.value.length;
4035
4029
  return a.value[p - 1] !== a.value[p - 2] + 1;
4036
- }), i = V(() => a.value[0] !== a.value[1] - 1), a = V(() => l.totalPages === 1 ? [1] : l.totalPages < Ka ? s(2, l.totalPages - 1) : d(l.currentPage));
4037
- 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) {
4038
4032
  l.currentPage === 1 && u === "prev" || l.currentPage === l.totalPages && u === "next" || o("update:current-page", p);
4039
4033
  }
4040
4034
  function s(p, u) {
@@ -4057,7 +4051,7 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4057
4051
  v("ul", null, [
4058
4052
  v("li", {
4059
4053
  class: "joy-pagination__item joy-pagination__previous",
4060
- onClick: u[0] || (u[0] = (f) => r(e.currentPage - 1, "prev"))
4054
+ onClick: u[0] || (u[0] = (f) => i(e.currentPage - 1, "prev"))
4061
4055
  }, [
4062
4056
  w(p.$slots, "pagination-prev", {}, () => [
4063
4057
  O(It, {
@@ -4074,23 +4068,23 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4074
4068
  "joy-pagination__item": !0,
4075
4069
  "joy-pagination__page": !0,
4076
4070
  current: f === e.currentPage,
4077
- "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,
4078
4072
  "joy-pagination__separator joy-pagination__separator-before": e.totalPages > 1 && f === e.totalPages && n.value
4079
4073
  }),
4080
- onClick: (m) => r(f)
4074
+ onClick: (m) => i(f)
4081
4075
  }, [
4082
4076
  w(p.$slots, "page", H({ ref_for: !0 }, { page: f }), () => [
4083
4077
  v("button", {
4084
4078
  type: "button",
4085
4079
  "aria-current": f === e.currentPage ? "true" : "false"
4086
- }, J(f), 9, Ya)
4080
+ }, J(f), 9, Ha)
4087
4081
  ], !0)
4088
- ], 10, Ga))), 128))
4082
+ ], 10, qa))), 128))
4089
4083
  ])
4090
4084
  ]),
4091
4085
  v("li", {
4092
4086
  class: "joy-pagination__next",
4093
- onClick: u[1] || (u[1] = (f) => r(e.currentPage + 1, "next"))
4087
+ onClick: u[1] || (u[1] = (f) => i(e.currentPage + 1, "next"))
4094
4088
  }, [
4095
4089
  w(p.$slots, "pagination-next", {}, () => [
4096
4090
  O(It, {
@@ -4101,12 +4095,12 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4101
4095
  ], !0)
4102
4096
  ])
4103
4097
  ])
4104
- ], 8, Ua));
4098
+ ], 8, Na));
4105
4099
  }
4106
- }), xu = /* @__PURE__ */ A(Za, [["__scopeId", "data-v-7e82041f"]]), Xa = { class: "joy-screen-loader__content" }, Qa = {
4100
+ }), $u = /* @__PURE__ */ A(Ua, [["__scopeId", "data-v-7e82041f"]]), Ga = { class: "joy-screen-loader__content" }, Ya = {
4107
4101
  key: 0,
4108
4102
  class: "joy-screen-loader__content"
4109
- }, er = /* @__PURE__ */ L({
4103
+ }, Ka = /* @__PURE__ */ L({
4110
4104
  __name: "VJoyScreenLoader",
4111
4105
  props: {
4112
4106
  /** Light or dark. Changes the spinner and background color */
@@ -4124,31 +4118,31 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4124
4118
  return (t, l) => (c(), g("div", {
4125
4119
  class: I(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
4126
4120
  }, [
4127
- v("div", Xa, [
4121
+ v("div", Ga, [
4128
4122
  w(t.$slots, "spinner", {}, () => [
4129
4123
  O(Ut, {
4130
4124
  color: e.color === "dark" ? "white" : "teal"
4131
4125
  }, null, 8, ["color"])
4132
4126
  ], !0),
4133
- t.$slots.content ? (c(), g("div", Qa, [
4127
+ t.$slots.content ? (c(), g("div", Ya, [
4134
4128
  w(t.$slots, "content", {}, void 0, !0)
4135
4129
  ])) : _("", !0)
4136
4130
  ])
4137
4131
  ], 2));
4138
4132
  }
4139
- }), Xt = /* @__PURE__ */ A(er, [["__scopeId", "data-v-266b7e2a"]]), tr = {
4133
+ }), Xt = /* @__PURE__ */ A(Ka, [["__scopeId", "data-v-266b7e2a"]]), Za = {
4140
4134
  key: 0,
4141
4135
  class: /* @__PURE__ */ I(["joy-panel__header"])
4142
- }, or = {
4136
+ }, Xa = {
4143
4137
  key: 1,
4144
4138
  class: "joy-panel__header-action"
4145
- }, nr = {
4139
+ }, Qa = {
4146
4140
  key: 2,
4147
4141
  class: "joy-panel__header-subtitle"
4148
- }, lr = { class: "joy-panel__body" }, ar = {
4142
+ }, er = { class: "joy-panel__body" }, tr = {
4149
4143
  key: 1,
4150
4144
  class: "joy-panel__footer"
4151
- }, rr = /* @__PURE__ */ L({
4145
+ }, or = /* @__PURE__ */ L({
4152
4146
  __name: "VJoyPanel",
4153
4147
  props: {
4154
4148
  flex: {
@@ -4180,8 +4174,8 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4180
4174
  }
4181
4175
  },
4182
4176
  setup(e) {
4183
- 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"]);
4184
- 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", {
4185
4179
  ref_key: "panel",
4186
4180
  ref: n,
4187
4181
  style: ee({ flex: e.flex }),
@@ -4195,24 +4189,24 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4195
4189
  }
4196
4190
  ])
4197
4191
  }, [
4198
- i.value ? (c(), g("header", tr, [
4192
+ r.value ? (c(), g("header", Za, [
4199
4193
  o["panel-title"] ? (c(), g("div", {
4200
4194
  key: 0,
4201
4195
  class: I(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
4202
4196
  }, [
4203
4197
  w(a.$slots, "panel-title", {}, void 0, !0)
4204
4198
  ], 2)) : _("", !0),
4205
- o["panel-title-action"] ? (c(), g("div", or, [
4199
+ o["panel-title-action"] ? (c(), g("div", Xa, [
4206
4200
  w(a.$slots, "panel-title-action", {}, void 0, !0)
4207
4201
  ])) : _("", !0),
4208
- o["panel-subtitle"] ? (c(), g("div", nr, [
4202
+ o["panel-subtitle"] ? (c(), g("div", Qa, [
4209
4203
  w(a.$slots, "panel-subtitle", {}, void 0, !0)
4210
4204
  ])) : _("", !0)
4211
4205
  ])) : _("", !0),
4212
- v("div", lr, [
4206
+ v("div", er, [
4213
4207
  w(a.$slots, "panel-body", {}, void 0, !0)
4214
4208
  ]),
4215
- o["panel-action"] ? (c(), g("footer", ar, [
4209
+ o["panel-action"] ? (c(), g("footer", tr, [
4216
4210
  w(a.$slots, "panel-action", {}, void 0, !0)
4217
4211
  ])) : _("", !0),
4218
4212
  e.loading ? (c(), T(Xt, {
@@ -4227,40 +4221,40 @@ const ul = { class: "joy-counter" }, dl = ["aria-label", "disabled"], cl = { cla
4227
4221
  }, 8, ["color"])) : _("", !0)
4228
4222
  ], 6));
4229
4223
  }
4230
- }), Iu = /* @__PURE__ */ A(rr, [["__scopeId", "data-v-bf00f207"]]), ir = { class: "joy-panel-section" }, sr = {
4224
+ }), Su = /* @__PURE__ */ A(or, [["__scopeId", "data-v-bf00f207"]]), nr = { class: "joy-panel-section" }, lr = {
4231
4225
  key: 0,
4232
4226
  class: "joy-panel-section__title"
4233
- }, ur = {
4227
+ }, ar = {
4234
4228
  key: 1,
4235
4229
  class: "joy-panel-section__content"
4236
- }, dr = /* @__PURE__ */ L({
4230
+ }, rr = /* @__PURE__ */ L({
4237
4231
  __name: "VJoyPanelSection",
4238
4232
  setup(e) {
4239
4233
  const t = G();
4240
- return (l, o) => (c(), g("div", ir, [
4241
- q(t)["panel-section-title"] ? (c(), g("div", sr, [
4234
+ return (l, o) => (c(), g("div", nr, [
4235
+ q(t)["panel-section-title"] ? (c(), g("div", lr, [
4242
4236
  w(l.$slots, "panel-section-title", {}, void 0, !0)
4243
4237
  ])) : _("", !0),
4244
- q(t)["panel-section-content"] ? (c(), g("div", ur, [
4238
+ q(t)["panel-section-content"] ? (c(), g("div", ar, [
4245
4239
  w(l.$slots, "panel-section-content", {}, void 0, !0)
4246
4240
  ])) : _("", !0)
4247
4241
  ]));
4248
4242
  }
4249
- }), Lu = /* @__PURE__ */ A(dr, [["__scopeId", "data-v-d88510ab"]]), cr = {}, fr = { class: "joy-product-tour-spotlight" };
4250
- function pr(e, t) {
4251
- return c(), g("div", fr);
4243
+ }), Cu = /* @__PURE__ */ A(rr, [["__scopeId", "data-v-d88510ab"]]), ir = {}, sr = { class: "joy-product-tour-spotlight" };
4244
+ function ur(e, t) {
4245
+ return c(), g("div", sr);
4252
4246
  }
4253
- const yr = /* @__PURE__ */ A(cr, [["render", pr], ["__scopeId", "data-v-fbaf8e78"]]), rt = Math.min, mr = Math.max, vr = {
4247
+ const dr = /* @__PURE__ */ A(ir, [["render", ur], ["__scopeId", "data-v-fbaf8e78"]]), rt = Math.min, cr = Math.max, fr = {
4254
4248
  left: "right",
4255
4249
  right: "left",
4256
4250
  bottom: "top",
4257
4251
  top: "bottom"
4258
- }, hr = {
4252
+ }, pr = {
4259
4253
  start: "end",
4260
4254
  end: "start"
4261
4255
  };
4262
4256
  function it(e, t, l) {
4263
- return mr(e, rt(t, l));
4257
+ return cr(e, rt(t, l));
4264
4258
  }
4265
4259
  function ke(e, t) {
4266
4260
  return typeof e == "function" ? e(t) : e;
@@ -4283,41 +4277,41 @@ function $e(e) {
4283
4277
  function bt(e) {
4284
4278
  return ht($e(e));
4285
4279
  }
4286
- function gr(e, t, l) {
4280
+ function yr(e, t, l) {
4287
4281
  l === void 0 && (l = !1);
4288
- const o = De(e), n = bt(e), i = gt(n);
4282
+ const o = De(e), n = bt(e), r = gt(n);
4289
4283
  let a = n === "x" ? o === (l ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
4290
- 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)];
4291
4285
  }
4292
- function br(e) {
4286
+ function mr(e) {
4293
4287
  const t = Ue(e);
4294
4288
  return [st(e), t, st(t)];
4295
4289
  }
4296
4290
  function st(e) {
4297
- return e.replace(/start|end/g, (t) => hr[t]);
4291
+ return e.replace(/start|end/g, (t) => pr[t]);
4298
4292
  }
4299
- function wr(e, t, l) {
4300
- const o = ["left", "right"], n = ["right", "left"], i = ["top", "bottom"], a = ["bottom", "top"];
4293
+ function vr(e, t, l) {
4294
+ const o = ["left", "right"], n = ["right", "left"], r = ["top", "bottom"], a = ["bottom", "top"];
4301
4295
  switch (e) {
4302
4296
  case "top":
4303
4297
  case "bottom":
4304
4298
  return l ? t ? n : o : t ? o : n;
4305
4299
  case "left":
4306
4300
  case "right":
4307
- return t ? i : a;
4301
+ return t ? r : a;
4308
4302
  default:
4309
4303
  return [];
4310
4304
  }
4311
4305
  }
4312
- function _r(e, t, l, o) {
4306
+ function hr(e, t, l, o) {
4313
4307
  const n = De(e);
4314
- let i = wr(ve(e), l === "start", o);
4315
- 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;
4316
4310
  }
4317
4311
  function Ue(e) {
4318
- return e.replace(/left|right|bottom|top/g, (t) => vr[t]);
4312
+ return e.replace(/left|right|bottom|top/g, (t) => fr[t]);
4319
4313
  }
4320
- function jr(e) {
4314
+ function gr(e) {
4321
4315
  return {
4322
4316
  top: 0,
4323
4317
  right: 0,
@@ -4327,7 +4321,7 @@ function jr(e) {
4327
4321
  };
4328
4322
  }
4329
4323
  function Qt(e) {
4330
- return typeof e != "number" ? jr(e) : {
4324
+ return typeof e != "number" ? gr(e) : {
4331
4325
  top: e,
4332
4326
  right: e,
4333
4327
  bottom: e,
@@ -4357,7 +4351,7 @@ function Lt(e, t, l) {
4357
4351
  reference: o,
4358
4352
  floating: n
4359
4353
  } = e;
4360
- 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;
4361
4355
  let m;
4362
4356
  switch (s) {
4363
4357
  case "top":
@@ -4400,13 +4394,13 @@ function Lt(e, t, l) {
4400
4394
  }
4401
4395
  return m;
4402
4396
  }
4403
- const kr = async (e, t, l) => {
4397
+ const br = async (e, t, l) => {
4404
4398
  const {
4405
4399
  placement: o = "bottom",
4406
4400
  strategy: n = "absolute",
4407
- middleware: i = [],
4401
+ middleware: r = [],
4408
4402
  platform: a
4409
- } = 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));
4410
4404
  let d = await a.getElementRects({
4411
4405
  reference: e,
4412
4406
  floating: t,
@@ -4415,11 +4409,11 @@ const kr = async (e, t, l) => {
4415
4409
  x: p,
4416
4410
  y: u
4417
4411
  } = Lt(d, o, s), f = o, m = {}, y = 0;
4418
- for (let b = 0; b < r.length; b++) {
4412
+ for (let b = 0; b < i.length; b++) {
4419
4413
  const {
4420
4414
  name: h,
4421
4415
  fn: $
4422
- } = r[b], {
4416
+ } = i[b], {
4423
4417
  x: j,
4424
4418
  y: x,
4425
4419
  data: E,
@@ -4467,9 +4461,9 @@ async function eo(e, t) {
4467
4461
  const {
4468
4462
  x: o,
4469
4463
  y: n,
4470
- platform: i,
4464
+ platform: r,
4471
4465
  rects: a,
4472
- elements: r,
4466
+ elements: i,
4473
4467
  strategy: s
4474
4468
  } = e, {
4475
4469
  boundary: d = "clippingAncestors",
@@ -4477,8 +4471,8 @@ async function eo(e, t) {
4477
4471
  elementContext: u = "floating",
4478
4472
  altBoundary: f = !1,
4479
4473
  padding: m = 0
4480
- } = ke(t, e), y = Qt(m), h = r[f ? u === "floating" ? "reference" : "floating" : u], $ = Ge(await i.getClippingRect({
4481
- 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)),
4482
4476
  boundary: d,
4483
4477
  rootBoundary: p,
4484
4478
  strategy: s
@@ -4487,14 +4481,14 @@ async function eo(e, t) {
4487
4481
  y: n,
4488
4482
  width: a.floating.width,
4489
4483
  height: a.floating.height
4490
- } : 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)) || {
4491
4485
  x: 1,
4492
4486
  y: 1
4493
4487
  } : {
4494
4488
  x: 1,
4495
4489
  y: 1
4496
- }, B = Ge(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
4497
- elements: r,
4490
+ }, B = Ge(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
4491
+ elements: i,
4498
4492
  rect: j,
4499
4493
  offsetParent: x,
4500
4494
  strategy: s
@@ -4506,7 +4500,7 @@ async function eo(e, t) {
4506
4500
  right: (B.right - $.right + y.right) / E.x
4507
4501
  };
4508
4502
  }
4509
- const $r = (e) => ({
4503
+ const wr = (e) => ({
4510
4504
  name: "arrow",
4511
4505
  options: e,
4512
4506
  async fn(t) {
@@ -4514,9 +4508,9 @@ const $r = (e) => ({
4514
4508
  x: l,
4515
4509
  y: o,
4516
4510
  placement: n,
4517
- rects: i,
4511
+ rects: r,
4518
4512
  platform: a,
4519
- elements: r,
4513
+ elements: i,
4520
4514
  middlewareData: s
4521
4515
  } = t, {
4522
4516
  element: d,
@@ -4527,10 +4521,10 @@ const $r = (e) => ({
4527
4521
  const u = Qt(p), f = {
4528
4522
  x: l,
4529
4523
  y: o
4530
- }, 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));
4531
4525
  let k = P ? P[x] : 0;
4532
- (!k || !await (a.isElement == null ? void 0 : a.isElement(P))) && (k = r.floating[x] || i.floating[y]);
4533
- 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;
4534
4528
  return {
4535
4529
  [m]: f[m] + ae,
4536
4530
  data: {
@@ -4551,9 +4545,9 @@ const $r = (e) => ({
4551
4545
  var l, o;
4552
4546
  const {
4553
4547
  placement: n,
4554
- middlewareData: i,
4548
+ middlewareData: r,
4555
4549
  rects: a,
4556
- initialPlacement: r,
4550
+ initialPlacement: i,
4557
4551
  platform: s,
4558
4552
  elements: d
4559
4553
  } = t, {
@@ -4565,14 +4559,14 @@ const $r = (e) => ({
4565
4559
  flipAlignment: b = !0,
4566
4560
  ...h
4567
4561
  } = ke(e, t);
4568
- if ((l = i.arrow) != null && l.alignmentOffset)
4562
+ if ((l = r.arrow) != null && l.alignmentOffset)
4569
4563
  return {};
4570
- 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)] : br(r)), P = y !== "none";
4571
- !f && P && B.push(..._r(r, b, y, E));
4572
- const k = [r, ...B], N = await eo(t, h), S = [];
4573
- 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) || [];
4574
4568
  if (p && S.push(N[$]), u) {
4575
- const Q = gr(n, a, E);
4569
+ const Q = yr(n, a, E);
4576
4570
  S.push(N[Q[0]], N[Q[1]]);
4577
4571
  }
4578
4572
  if (M = [...M, {
@@ -4580,7 +4574,7 @@ const $r = (e) => ({
4580
4574
  overflows: S
4581
4575
  }], !S.every((Q) => Q <= 0)) {
4582
4576
  var F, Y;
4583
- 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];
4584
4578
  if (Te)
4585
4579
  return {
4586
4580
  data: {
@@ -4609,7 +4603,7 @@ const $r = (e) => ({
4609
4603
  break;
4610
4604
  }
4611
4605
  case "initialPlacement":
4612
- ue = r;
4606
+ ue = i;
4613
4607
  break;
4614
4608
  }
4615
4609
  if (n !== ue)
@@ -4623,12 +4617,12 @@ const $r = (e) => ({
4623
4617
  }
4624
4618
  };
4625
4619
  };
4626
- async function Sr(e, t) {
4620
+ async function _r(e, t) {
4627
4621
  const {
4628
4622
  placement: l,
4629
4623
  platform: o,
4630
4624
  elements: n
4631
- } = 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);
4632
4626
  let {
4633
4627
  mainAxis: f,
4634
4628
  crossAxis: m,
@@ -4643,7 +4637,7 @@ async function Sr(e, t) {
4643
4637
  alignmentAxis: null,
4644
4638
  ...u
4645
4639
  };
4646
- 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 ? {
4647
4641
  x: m * p,
4648
4642
  y: f * d
4649
4643
  } : {
@@ -4659,13 +4653,13 @@ const oo = function(e) {
4659
4653
  var l, o;
4660
4654
  const {
4661
4655
  x: n,
4662
- y: i,
4656
+ y: r,
4663
4657
  placement: a,
4664
- middlewareData: r
4665
- } = t, s = await Sr(t, e);
4666
- return a === ((l = r.offset) == null ? void 0 : l.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
4658
+ middlewareData: i
4659
+ } = t, s = await _r(t, e);
4660
+ return a === ((l = i.offset) == null ? void 0 : l.placement) && (o = i.arrow) != null && o.alignmentOffset ? {} : {
4667
4661
  x: n + s.x,
4668
- y: i + s.y,
4662
+ y: r + s.y,
4669
4663
  data: {
4670
4664
  ...s,
4671
4665
  placement: a
@@ -4683,9 +4677,9 @@ const oo = function(e) {
4683
4677
  y: o,
4684
4678
  placement: n
4685
4679
  } = t, {
4686
- mainAxis: i = !0,
4680
+ mainAxis: r = !0,
4687
4681
  crossAxis: a = !1,
4688
- limiter: r = {
4682
+ limiter: i = {
4689
4683
  fn: (h) => {
4690
4684
  let {
4691
4685
  x: $,
@@ -4703,7 +4697,7 @@ const oo = function(e) {
4703
4697
  y: o
4704
4698
  }, p = await eo(t, s), u = $e(ve(n)), f = ht(u);
4705
4699
  let m = d[f], y = d[u];
4706
- if (i) {
4700
+ if (r) {
4707
4701
  const h = f === "y" ? "top" : "left", $ = f === "y" ? "bottom" : "right", j = m + p[h], x = m - p[$];
4708
4702
  m = it(j, m, x);
4709
4703
  }
@@ -4711,7 +4705,7 @@ const oo = function(e) {
4711
4705
  const h = u === "y" ? "top" : "left", $ = u === "y" ? "bottom" : "right", j = y + p[h], x = y - p[$];
4712
4706
  y = it(j, y, x);
4713
4707
  }
4714
- const b = r.fn({
4708
+ const b = i.fn({
4715
4709
  ...t,
4716
4710
  [f]: m,
4717
4711
  [u]: y
@@ -4733,10 +4727,10 @@ const oo = function(e) {
4733
4727
  x: l,
4734
4728
  y: o,
4735
4729
  placement: n,
4736
- rects: i,
4730
+ rects: r,
4737
4731
  middlewareData: a
4738
4732
  } = t, {
4739
- offset: r = 0,
4733
+ offset: i = 0,
4740
4734
  mainAxis: s = !0,
4741
4735
  crossAxis: d = !0
4742
4736
  } = ke(e, t), p = {
@@ -4744,7 +4738,7 @@ const oo = function(e) {
4744
4738
  y: o
4745
4739
  }, u = $e(n), f = ht(u);
4746
4740
  let m = p[f], y = p[u];
4747
- const b = ke(r, t), h = typeof b == "number" ? {
4741
+ const b = ke(i, t), h = typeof b == "number" ? {
4748
4742
  mainAxis: b,
4749
4743
  crossAxis: 0
4750
4744
  } : {
@@ -4753,12 +4747,12 @@ const oo = function(e) {
4753
4747
  ...b
4754
4748
  };
4755
4749
  if (s) {
4756
- 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;
4757
4751
  m < E ? m = E : m > B && (m = B);
4758
4752
  }
4759
4753
  if (d) {
4760
4754
  var $, j;
4761
- 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);
4762
4756
  y < B ? y = B : y > P && (y = P);
4763
4757
  }
4764
4758
  return {
@@ -4803,14 +4797,14 @@ function Re(e) {
4803
4797
  } = le(e);
4804
4798
  return /auto|scroll|overlay|hidden|clip/.test(t + o + l) && !["inline", "contents"].includes(n);
4805
4799
  }
4806
- function Cr(e) {
4800
+ function jr(e) {
4807
4801
  return ["table", "td", "th"].includes(ge(e));
4808
4802
  }
4809
4803
  function wt(e) {
4810
4804
  const t = _t(), l = le(e);
4811
4805
  return l.transform !== "none" || l.perspective !== "none" || (l.containerType ? l.containerType !== "normal" : !1) || !t && (l.backdropFilter ? l.backdropFilter !== "none" : !1) || !t && (l.filter ? l.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (l.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (l.contain || "").includes(o));
4812
4806
  }
4813
- function Vr(e) {
4807
+ function kr(e) {
4814
4808
  let t = Ee(e);
4815
4809
  for (; ie(t) && !ot(t); ) {
4816
4810
  if (wt(t))
@@ -4856,17 +4850,17 @@ function ro(e) {
4856
4850
  function Pe(e, t, l) {
4857
4851
  var o;
4858
4852
  t === void 0 && (t = []), l === void 0 && (l = !0);
4859
- const n = ro(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), a = oe(n);
4860
- 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));
4861
4855
  }
4862
4856
  function io(e) {
4863
4857
  const t = le(e);
4864
4858
  let l = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
4865
- const n = ie(e), i = n ? e.offsetWidth : l, a = n ? e.offsetHeight : o, r = Ye(l) !== i || Ye(o) !== a;
4866
- 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), {
4867
4861
  width: l,
4868
4862
  height: o,
4869
- $: r
4863
+ $: i
4870
4864
  };
4871
4865
  }
4872
4866
  function jt(e) {
@@ -4879,34 +4873,34 @@ function Ae(e) {
4879
4873
  const l = t.getBoundingClientRect(), {
4880
4874
  width: o,
4881
4875
  height: n,
4882
- $: i
4876
+ $: r
4883
4877
  } = io(t);
4884
- let a = (i ? Ye(l.width) : l.width) / o, r = (i ? Ye(l.height) : l.height) / n;
4885
- 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), {
4886
4880
  x: a,
4887
- y: r
4881
+ y: i
4888
4882
  };
4889
4883
  }
4890
- const Tr = /* @__PURE__ */ he(0);
4884
+ const $r = /* @__PURE__ */ he(0);
4891
4885
  function so(e) {
4892
4886
  const t = oe(e);
4893
- return !_t() || !t.visualViewport ? Tr : {
4887
+ return !_t() || !t.visualViewport ? $r : {
4894
4888
  x: t.visualViewport.offsetLeft,
4895
4889
  y: t.visualViewport.offsetTop
4896
4890
  };
4897
4891
  }
4898
- function xr(e, t, l) {
4892
+ function Sr(e, t, l) {
4899
4893
  return t === void 0 && (t = !1), !l || t && l !== oe(e) ? !1 : t;
4900
4894
  }
4901
4895
  function Se(e, t, l, o) {
4902
4896
  t === void 0 && (t = !1), l === void 0 && (l = !1);
4903
- const n = e.getBoundingClientRect(), i = jt(e);
4897
+ const n = e.getBoundingClientRect(), r = jt(e);
4904
4898
  let a = he(1);
4905
4899
  t && (o ? de(o) && (a = Ae(o)) : a = Ae(e));
4906
- const r = xr(i, l, o) ? so(i) : he(0);
4907
- 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;
4908
- if (i) {
4909
- 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;
4910
4904
  let y = f.frameElement;
4911
4905
  for (; y && o && m !== f; ) {
4912
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;
@@ -4920,68 +4914,68 @@ function Se(e, t, l, o) {
4920
4914
  y: d
4921
4915
  });
4922
4916
  }
4923
- function Ir(e) {
4917
+ function Cr(e) {
4924
4918
  let {
4925
4919
  rect: t,
4926
4920
  offsetParent: l,
4927
4921
  strategy: o
4928
4922
  } = e;
4929
- const n = ie(l), i = ce(l);
4930
- if (l === i)
4923
+ const n = ie(l), r = ce(l);
4924
+ if (l === r)
4931
4925
  return t;
4932
4926
  let a = {
4933
4927
  scrollLeft: 0,
4934
4928
  scrollTop: 0
4935
- }, r = he(1);
4929
+ }, i = he(1);
4936
4930
  const s = he(0);
4937
- 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))) {
4938
4932
  const d = Se(l);
4939
- 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;
4940
4934
  }
4941
4935
  return {
4942
- width: t.width * r.x,
4943
- height: t.height * r.y,
4944
- x: t.x * r.x - a.scrollLeft * r.x + s.x,
4945
- 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
4946
4940
  };
4947
4941
  }
4948
- function Lr(e) {
4942
+ function Vr(e) {
4949
4943
  return Array.from(e.getClientRects());
4950
4944
  }
4951
4945
  function uo(e) {
4952
4946
  return Se(ce(e)).left + nt(e).scrollLeft;
4953
4947
  }
4954
- function Br(e) {
4955
- 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);
4948
+ function Tr(e) {
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);
4956
4950
  let a = -l.scrollLeft + uo(e);
4957
- const r = -l.scrollTop;
4951
+ const i = -l.scrollTop;
4958
4952
  return le(o).direction === "rtl" && (a += Be(t.clientWidth, o.clientWidth) - n), {
4959
4953
  width: n,
4960
- height: i,
4954
+ height: r,
4961
4955
  x: a,
4962
- y: r
4956
+ y: i
4963
4957
  };
4964
4958
  }
4965
- function Ar(e, t) {
4959
+ function xr(e, t) {
4966
4960
  const l = oe(e), o = ce(e), n = l.visualViewport;
4967
- let i = o.clientWidth, a = o.clientHeight, r = 0, s = 0;
4961
+ let r = o.clientWidth, a = o.clientHeight, i = 0, s = 0;
4968
4962
  if (n) {
4969
- i = n.width, a = n.height;
4963
+ r = n.width, a = n.height;
4970
4964
  const d = _t();
4971
- (!d || d && t === "fixed") && (r = n.offsetLeft, s = n.offsetTop);
4965
+ (!d || d && t === "fixed") && (i = n.offsetLeft, s = n.offsetTop);
4972
4966
  }
4973
4967
  return {
4974
- width: i,
4968
+ width: r,
4975
4969
  height: a,
4976
- x: r,
4970
+ x: i,
4977
4971
  y: s
4978
4972
  };
4979
4973
  }
4980
- function Er(e, t) {
4981
- 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;
4974
+ function Ir(e, t) {
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;
4982
4976
  return {
4983
4977
  width: a,
4984
- height: r,
4978
+ height: i,
4985
4979
  x: s,
4986
4980
  y: d
4987
4981
  };
@@ -4989,11 +4983,11 @@ function Er(e, t) {
4989
4983
  function At(e, t, l) {
4990
4984
  let o;
4991
4985
  if (t === "viewport")
4992
- o = Ar(e, l);
4986
+ o = xr(e, l);
4993
4987
  else if (t === "document")
4994
- o = Br(ce(e));
4988
+ o = Tr(ce(e));
4995
4989
  else if (de(t))
4996
- o = Er(t, l);
4990
+ o = Ir(t, l);
4997
4991
  else {
4998
4992
  const n = so(e);
4999
4993
  o = {
@@ -5008,30 +5002,30 @@ function co(e, t) {
5008
5002
  const l = Ee(e);
5009
5003
  return l === t || !de(l) || ot(l) ? !1 : le(l).position === "fixed" || co(l, t);
5010
5004
  }
5011
- function zr(e, t) {
5005
+ function Lr(e, t) {
5012
5006
  const l = t.get(e);
5013
5007
  if (l)
5014
5008
  return l;
5015
- let o = Pe(e, [], !1).filter((r) => de(r) && ge(r) !== "body"), n = null;
5016
- const i = le(e).position === "fixed";
5017
- 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;
5018
5012
  for (; de(a) && !ot(a); ) {
5019
- const r = le(a), s = wt(a);
5020
- !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);
5021
5015
  }
5022
5016
  return t.set(e, o), o;
5023
5017
  }
5024
- function Jr(e) {
5018
+ function Br(e) {
5025
5019
  let {
5026
5020
  element: t,
5027
5021
  boundary: l,
5028
5022
  rootBoundary: o,
5029
5023
  strategy: n
5030
5024
  } = e;
5031
- const a = [...l === "clippingAncestors" ? zr(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) => {
5032
5026
  const u = At(t, p, n);
5033
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;
5034
- }, At(t, r, n));
5028
+ }, At(t, i, n));
5035
5029
  return {
5036
5030
  width: s.right - s.left,
5037
5031
  height: s.bottom - s.top,
@@ -5039,24 +5033,24 @@ function Jr(e) {
5039
5033
  y: s.top
5040
5034
  };
5041
5035
  }
5042
- function Mr(e) {
5036
+ function Ar(e) {
5043
5037
  return io(e);
5044
5038
  }
5045
- function Pr(e, t, l) {
5046
- const o = ie(t), n = ce(t), i = l === "fixed", a = Se(e, !0, i, t);
5047
- let r = {
5039
+ function Er(e, t, l) {
5040
+ const o = ie(t), n = ce(t), r = l === "fixed", a = Se(e, !0, r, t);
5041
+ let i = {
5048
5042
  scrollLeft: 0,
5049
5043
  scrollTop: 0
5050
5044
  };
5051
5045
  const s = he(0);
5052
- if (o || !o && !i)
5053
- if ((ge(t) !== "body" || Re(n)) && (r = nt(t)), o) {
5054
- 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);
5055
5049
  s.x = d.x + t.clientLeft, s.y = d.y + t.clientTop;
5056
5050
  } else n && (s.x = uo(n));
5057
5051
  return {
5058
- x: a.left + r.scrollLeft - s.x,
5059
- y: a.top + r.scrollTop - s.y,
5052
+ x: a.left + i.scrollLeft - s.x,
5053
+ y: a.top + i.scrollTop - s.y,
5060
5054
  width: a.width,
5061
5055
  height: a.height
5062
5056
  };
@@ -5069,56 +5063,56 @@ function fo(e, t) {
5069
5063
  if (!ie(e))
5070
5064
  return l;
5071
5065
  let o = Et(e, t);
5072
- for (; o && Cr(o) && le(o).position === "static"; )
5066
+ for (; o && jr(o) && le(o).position === "static"; )
5073
5067
  o = Et(o, t);
5074
- return o && (ge(o) === "html" || ge(o) === "body" && le(o).position === "static" && !wt(o)) ? l : o || Vr(e) || l;
5068
+ return o && (ge(o) === "html" || ge(o) === "body" && le(o).position === "static" && !wt(o)) ? l : o || kr(e) || l;
5075
5069
  }
5076
- const Fr = async function(e) {
5070
+ const zr = async function(e) {
5077
5071
  let {
5078
5072
  reference: t,
5079
5073
  floating: l,
5080
5074
  strategy: o
5081
5075
  } = e;
5082
- const n = this.getOffsetParent || fo, i = this.getDimensions;
5076
+ const n = this.getOffsetParent || fo, r = this.getDimensions;
5083
5077
  return {
5084
- reference: Pr(t, await n(l), o),
5078
+ reference: Er(t, await n(l), o),
5085
5079
  floating: {
5086
5080
  x: 0,
5087
5081
  y: 0,
5088
- ...await i(l)
5082
+ ...await r(l)
5089
5083
  }
5090
5084
  };
5091
5085
  };
5092
- function Or(e) {
5086
+ function Jr(e) {
5093
5087
  return le(e).direction === "rtl";
5094
5088
  }
5095
- const Dr = {
5096
- convertOffsetParentRelativeRectToViewportRelativeRect: Ir,
5089
+ const Mr = {
5090
+ convertOffsetParentRelativeRectToViewportRelativeRect: Cr,
5097
5091
  getDocumentElement: ce,
5098
- getClippingRect: Jr,
5092
+ getClippingRect: Br,
5099
5093
  getOffsetParent: fo,
5100
- getElementRects: Fr,
5101
- getClientRects: Lr,
5102
- getDimensions: Mr,
5094
+ getElementRects: zr,
5095
+ getClientRects: Vr,
5096
+ getDimensions: Ar,
5103
5097
  getScale: Ae,
5104
5098
  isElement: de,
5105
- isRTL: Or
5099
+ isRTL: Jr
5106
5100
  };
5107
- function Rr(e, t) {
5101
+ function Pr(e, t) {
5108
5102
  let l = null, o;
5109
5103
  const n = ce(e);
5110
- function i() {
5104
+ function r() {
5111
5105
  clearTimeout(o), l && l.disconnect(), l = null;
5112
5106
  }
5113
- function a(r, s) {
5114
- 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();
5115
5109
  const {
5116
5110
  left: d,
5117
5111
  top: p,
5118
5112
  width: u,
5119
5113
  height: f
5120
5114
  } = e.getBoundingClientRect();
5121
- if (r || t(), !u || !f)
5115
+ if (i || t(), !u || !f)
5122
5116
  return;
5123
5117
  const m = qe(p), y = qe(n.clientWidth - (d + u)), b = qe(n.clientHeight - (p + f)), h = qe(d), j = {
5124
5118
  rootMargin: -m + "px " + -y + "px " + -b + "px " + -h + "px",
@@ -5147,23 +5141,23 @@ function Rr(e, t) {
5147
5141
  }
5148
5142
  l.observe(e);
5149
5143
  }
5150
- return a(!0), i;
5144
+ return a(!0), r;
5151
5145
  }
5152
- function Nr(e, t, l, o) {
5146
+ function Fr(e, t, l, o) {
5153
5147
  o === void 0 && (o = {});
5154
5148
  const {
5155
5149
  ancestorScroll: n = !0,
5156
- ancestorResize: i = !0,
5150
+ ancestorResize: r = !0,
5157
5151
  elementResize: a = typeof ResizeObserver == "function",
5158
- layoutShift: r = typeof IntersectionObserver == "function",
5152
+ layoutShift: i = typeof IntersectionObserver == "function",
5159
5153
  animationFrame: s = !1
5160
- } = 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)] : [];
5161
5155
  p.forEach(($) => {
5162
5156
  n && $.addEventListener("scroll", l, {
5163
5157
  passive: !0
5164
- }), i && $.addEventListener("resize", l);
5158
+ }), r && $.addEventListener("resize", l);
5165
5159
  });
5166
- const u = d && r ? Rr(d, l) : null;
5160
+ const u = d && i ? Pr(d, l) : null;
5167
5161
  let f = -1, m = null;
5168
5162
  a && (m = new ResizeObserver(($) => {
5169
5163
  let [j] = $;
@@ -5179,40 +5173,40 @@ function Nr(e, t, l, o) {
5179
5173
  }
5180
5174
  return l(), () => {
5181
5175
  p.forEach(($) => {
5182
- n && $.removeEventListener("scroll", l), i && $.removeEventListener("resize", l);
5176
+ n && $.removeEventListener("scroll", l), r && $.removeEventListener("resize", l);
5183
5177
  }), u && u(), m && m.disconnect(), m = null, s && cancelAnimationFrame(y);
5184
5178
  };
5185
5179
  }
5186
- const qr = (e, t, l) => {
5180
+ const Or = (e, t, l) => {
5187
5181
  const o = /* @__PURE__ */ new Map(), n = {
5188
- platform: Dr,
5182
+ platform: Mr,
5189
5183
  ...l
5190
- }, i = {
5184
+ }, r = {
5191
5185
  ...n.platform,
5192
5186
  _c: o
5193
5187
  };
5194
- return kr(e, t, {
5188
+ return br(e, t, {
5195
5189
  ...n,
5196
- platform: i
5190
+ platform: r
5197
5191
  });
5198
5192
  };
5199
- function Hr(e) {
5193
+ function Dr(e) {
5200
5194
  return po(e) ? (e.nodeName || "").toLowerCase() : "#document";
5201
5195
  }
5202
- function Wr(e) {
5196
+ function Rr(e) {
5203
5197
  var t;
5204
5198
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5205
5199
  }
5206
5200
  function po(e) {
5207
- return e instanceof Node || e instanceof Wr(e).Node;
5201
+ return e instanceof Node || e instanceof Rr(e).Node;
5208
5202
  }
5209
- function Ur(e) {
5203
+ function Nr(e) {
5210
5204
  return e != null && typeof e == "object" && "$el" in e;
5211
5205
  }
5212
5206
  function dt(e) {
5213
- if (Ur(e)) {
5207
+ if (Nr(e)) {
5214
5208
  const t = e.$el;
5215
- return po(t) && Hr(t) === "#comment" ? null : t;
5209
+ return po(t) && Dr(t) === "#comment" ? null : t;
5216
5210
  }
5217
5211
  return e;
5218
5212
  }
@@ -5225,7 +5219,7 @@ function yo(e) {
5225
5219
  options: e,
5226
5220
  fn(t) {
5227
5221
  const l = dt(Ie(e.element));
5228
- return l == null ? {} : $r({
5222
+ return l == null ? {} : wr({
5229
5223
  element: l,
5230
5224
  padding: e.padding
5231
5225
  }).fn(t);
@@ -5244,16 +5238,16 @@ function vo(e, t, l) {
5244
5238
  const o = l.whileElementsMounted, n = V(() => {
5245
5239
  var k;
5246
5240
  return (k = Ie(l.open)) != null ? k : !0;
5247
- }), i = V(() => Ie(l.middleware)), a = V(() => {
5241
+ }), r = V(() => Ie(l.middleware)), a = V(() => {
5248
5242
  var k;
5249
5243
  return (k = Ie(l.placement)) != null ? k : "bottom";
5250
- }), r = V(() => {
5244
+ }), i = V(() => {
5251
5245
  var k;
5252
5246
  return (k = Ie(l.strategy)) != null ? k : "absolute";
5253
5247
  }), s = V(() => {
5254
5248
  var k;
5255
5249
  return (k = Ie(l.transform)) != null ? k : !0;
5256
- }), 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(() => {
5257
5251
  const k = {
5258
5252
  position: m.value,
5259
5253
  left: "0",
@@ -5276,10 +5270,10 @@ function vo(e, t, l) {
5276
5270
  });
5277
5271
  let j;
5278
5272
  function x() {
5279
- d.value == null || p.value == null || qr(d.value, p.value, {
5280
- middleware: i.value,
5273
+ d.value == null || p.value == null || Or(d.value, p.value, {
5274
+ middleware: r.value,
5281
5275
  placement: a.value,
5282
- strategy: r.value
5276
+ strategy: i.value
5283
5277
  }).then((k) => {
5284
5278
  u.value = k.x, f.value = k.y, m.value = k.strategy, y.value = k.placement, b.value = k.middlewareData, h.value = !0;
5285
5279
  });
@@ -5300,7 +5294,7 @@ function vo(e, t, l) {
5300
5294
  function P() {
5301
5295
  n.value || (h.value = !1);
5302
5296
  }
5303
- return K([i, a, r], x, {
5297
+ return K([r, a, i], x, {
5304
5298
  flush: "sync"
5305
5299
  }), K([d, p], B, {
5306
5300
  flush: "sync"
@@ -5317,7 +5311,7 @@ function vo(e, t, l) {
5317
5311
  update: x
5318
5312
  };
5319
5313
  }
5320
- const Gr = () => {
5314
+ const qr = () => {
5321
5315
  const e = C(null);
5322
5316
  return {
5323
5317
  clearProductTourRef: () => {
@@ -5329,10 +5323,10 @@ const Gr = () => {
5329
5323
  },
5330
5324
  productToursRef: e
5331
5325
  };
5332
- }, ho = Gr(), Yr = { class: "joy-product-tour__content" }, Kr = { class: "joy-product-tour__header" }, Zr = {
5326
+ }, ho = qr(), Hr = { class: "joy-product-tour__content" }, Wr = { class: "joy-product-tour__header" }, Ur = {
5333
5327
  key: 0,
5334
5328
  class: "joy-product-tour__footer"
5335
- }, Xr = { class: "joy-product-tour__footer___steps" }, Qr = "joy-product-tour-spotlight__wrapper", ei = /* @__PURE__ */ L({
5329
+ }, Gr = { class: "joy-product-tour__footer___steps" }, Yr = "joy-product-tour-spotlight__wrapper", Kr = /* @__PURE__ */ L({
5336
5330
  __name: "VJoyProductTourInner",
5337
5331
  props: {
5338
5332
  icon: {},
@@ -5348,11 +5342,11 @@ const Gr = () => {
5348
5342
  },
5349
5343
  emits: ["product-tour:hide"],
5350
5344
  setup(e, { expose: t, emit: l }) {
5351
- 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(
5352
5346
  vo(s, a, {
5353
5347
  placement: n.position,
5354
5348
  whileElementsMounted(...k) {
5355
- return Nr(...k, { ancestorResize: !0, ancestorScroll: !0, elementResize: !0 });
5349
+ return Fr(...k, { ancestorResize: !0, ancestorScroll: !0, elementResize: !0 });
5356
5350
  },
5357
5351
  transform: !1,
5358
5352
  middleware: [
@@ -5389,16 +5383,16 @@ const Gr = () => {
5389
5383
  }), (k = m.value) == null || k.update(), u.value = !0);
5390
5384
  }
5391
5385
  function h() {
5392
- u.value = !1, i(), P(), o("product-tour:hide");
5386
+ u.value = !1, r(), P(), o("product-tour:hide");
5393
5387
  }
5394
5388
  function $(k) {
5395
5389
  s.value && (k.disableOverlay || j(), x(k.elementToHighlight));
5396
5390
  }
5397
5391
  function j() {
5398
- 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);
5399
5393
  }
5400
5394
  function x(k) {
5401
- k && (k.style.position = "relative", k.style.zIndex = "calc(var(--joy-core-z-index-backdrop) + 1)", d.value = O(yr), p.value = document.createElement("div"), p.value.classList.add(Qr), document.body.appendChild(p.value), kt(d.value, p.value), E());
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());
5402
5396
  }
5403
5397
  function E() {
5404
5398
  if (!p.value)
@@ -5407,7 +5401,7 @@ const Gr = () => {
5407
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";
5408
5402
  }
5409
5403
  function B() {
5410
- r.value && r.value.remove();
5404
+ i.value && i.value.remove();
5411
5405
  }
5412
5406
  function P() {
5413
5407
  B(), s.value && (s.value.style.position = "", s.value.style.zIndex = ""), p.value && (kt(null, p.value), p.value.remove());
@@ -5466,7 +5460,7 @@ const Gr = () => {
5466
5460
  onClick: h
5467
5461
  })) : _("", !0)
5468
5462
  ], 2),
5469
- v("div", Yr, [
5463
+ v("div", Hr, [
5470
5464
  k.icon ? (c(), T(R, {
5471
5465
  key: 0,
5472
5466
  class: "joy-product-tour__content___icon",
@@ -5474,17 +5468,17 @@ const Gr = () => {
5474
5468
  size: "medium"
5475
5469
  }, null, 8, ["name"])) : _("", !0),
5476
5470
  v("div", null, [
5477
- v("div", Kr, [
5471
+ v("div", Wr, [
5478
5472
  w(k.$slots, "product-tour-header", {}, void 0, !0)
5479
5473
  ]),
5480
5474
  w(k.$slots, "product-tour-content", {}, void 0, !0)
5481
5475
  ])
5482
5476
  ]),
5483
- k.$slots["product-tour-dismiss"] || k.$slots["product-tour-next"] ? (c(), g("div", Zr, [
5477
+ k.$slots["product-tour-dismiss"] || k.$slots["product-tour-next"] ? (c(), g("div", Ur, [
5484
5478
  v("div", { onClick: h }, [
5485
5479
  w(k.$slots, "product-tour-dismiss", {}, void 0, !0)
5486
5480
  ]),
5487
- v("span", Xr, [
5481
+ v("span", Gr, [
5488
5482
  k.steps > 1 ? (c(), g(W, { key: 0 }, [
5489
5483
  D(J(k.step) + "/" + J(k.steps), 1)
5490
5484
  ], 64)) : _("", !0)
@@ -5497,7 +5491,7 @@ const Gr = () => {
5497
5491
  ]);
5498
5492
  };
5499
5493
  }
5500
- }), ti = /* @__PURE__ */ A(ei, [["__scopeId", "data-v-3f8b3a2a"]]), Bu = /* @__PURE__ */ L({
5494
+ }), Zr = /* @__PURE__ */ A(Kr, [["__scopeId", "data-v-3f8b3a2a"]]), Vu = /* @__PURE__ */ L({
5501
5495
  inheritAttrs: !1,
5502
5496
  __name: "VJoyProductTour",
5503
5497
  props: {
@@ -5514,7 +5508,7 @@ const Gr = () => {
5514
5508
  },
5515
5509
  emits: ["product-tour:hide"],
5516
5510
  setup(e, { expose: t, emit: l }) {
5517
- 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(() => {
5518
5512
  if (o.value)
5519
5513
  return d;
5520
5514
  });
@@ -5522,11 +5516,11 @@ const Gr = () => {
5522
5516
  a(s.value);
5523
5517
  }
5524
5518
  function f() {
5525
- i("product-tour:hide");
5519
+ r("product-tour:hide");
5526
5520
  }
5527
5521
  function m(y = { fireHideEvent: !1 }) {
5528
5522
  var b;
5529
- (b = s.value) == null || b.hide(), r(), y.fireHideEvent && f();
5523
+ (b = s.value) == null || b.hide(), i(), y.fireHideEvent && f();
5530
5524
  }
5531
5525
  return te(() => {
5532
5526
  o.value = !0, n.open && a(s.value);
@@ -5534,7 +5528,7 @@ const Gr = () => {
5534
5528
  show: u,
5535
5529
  hide: m
5536
5530
  }), (y, b) => (c(), T(ze, { to: "body" }, [
5537
- O(ti, H({ ...n, ...p.value }, {
5531
+ O(Zr, H({ ...n, ...p.value }, {
5538
5532
  ref_key: "productTour",
5539
5533
  ref: s,
5540
5534
  "onProductTour:hide": f
@@ -5561,27 +5555,27 @@ const Gr = () => {
5561
5555
  }, 16)
5562
5556
  ]));
5563
5557
  }
5564
- }), Au = /* @__PURE__ */ L({
5558
+ }), Tu = /* @__PURE__ */ L({
5565
5559
  __name: "VJoyProductTourTrigger",
5566
5560
  props: {
5567
5561
  productTour: {}
5568
5562
  },
5569
5563
  emits: ["click"],
5570
5564
  setup(e, { emit: t }) {
5571
- const l = e, o = t, n = V(() => l.productTour), i = G(), a = V(() => i.default());
5572
- async function r() {
5565
+ const l = e, o = t, n = V(() => l.productTour), r = G(), a = V(() => r.default());
5566
+ async function i() {
5573
5567
  var s;
5574
5568
  o("click"), n.value && ((s = n.value) == null || s.show());
5575
5569
  }
5576
5570
  return (s, d) => (c(!0), g(W, null, U(a.value, (p) => (c(), T(Z(p), {
5577
5571
  key: p,
5578
- onClick: r
5572
+ onClick: i
5579
5573
  }))), 128));
5580
5574
  }
5581
- }), oi = { class: "joy-progress-bar-wrapper" }, ni = {
5575
+ }), Xr = { class: "joy-progress-bar-wrapper" }, Qr = {
5582
5576
  key: 0,
5583
5577
  class: "joy-progress-bar-label joy-font-primary-250"
5584
- }, li = /* @__PURE__ */ L({
5578
+ }, ei = /* @__PURE__ */ L({
5585
5579
  __name: "VJoyProgressBar",
5586
5580
  props: {
5587
5581
  /** import TJoyProgressBarColors */
@@ -5614,32 +5608,32 @@ const Gr = () => {
5614
5608
  }
5615
5609
  },
5616
5610
  setup(e, { expose: t }) {
5617
- const l = e, o = C(0), n = V(() => i());
5618
- function i() {
5611
+ const l = e, o = C(0), n = V(() => r());
5612
+ function r() {
5619
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 + "%";
5620
5614
  }
5621
5615
  return t({
5622
5616
  computeInnerWidth: n,
5623
5617
  computedPercentage: o
5624
- }), (a, r) => (c(), T(re, {
5618
+ }), (a, i) => (c(), T(re, {
5625
5619
  wrap: "nowrap",
5626
5620
  "column-gap": "1",
5627
5621
  align: "center",
5628
5622
  class: I([`joy-progress-bar_${e.color}`])
5629
5623
  }, {
5630
5624
  default: z(() => [
5631
- v("div", oi, [
5625
+ v("div", Xr, [
5632
5626
  v("div", {
5633
5627
  class: "joy-progress-bar-inner",
5634
5628
  style: ee({ width: n.value })
5635
5629
  }, null, 4)
5636
5630
  ]),
5637
- e.showLabel && e.percentage ? (c(), g("span", ni, J(e.percentage + "%"), 1)) : _("", !0)
5631
+ e.showLabel && e.percentage ? (c(), g("span", Qr, J(e.percentage + "%"), 1)) : _("", !0)
5638
5632
  ]),
5639
5633
  _: 1
5640
5634
  }, 8, ["class"]));
5641
5635
  }
5642
- }), Eu = /* @__PURE__ */ A(li, [["__scopeId", "data-v-1216eff6"]]), ai = ["id", "value", "checked", "disabled", "required", "name"], ri = { class: "joy-radio-label" }, ii = { class: "joy-radio-header-right" }, si = { class: "joy-radio-sublabel" }, ui = { class: "joy-radio-content__wrapper" }, di = { class: "joy-radio-content" }, ci = /* @__PURE__ */ L({
5636
+ }), xu = /* @__PURE__ */ A(ei, [["__scopeId", "data-v-1216eff6"]]), ti = ["id", "value", "checked", "disabled", "required", "name"], oi = { class: "joy-radio-label" }, ni = { class: "joy-radio-header-right" }, li = { class: "joy-radio-sublabel" }, ai = { class: "joy-radio-content__wrapper" }, ri = { class: "joy-radio-content" }, ii = /* @__PURE__ */ L({
5643
5637
  __name: "VJoyRadio",
5644
5638
  props: {
5645
5639
  disabled: {
@@ -5671,9 +5665,9 @@ const Gr = () => {
5671
5665
  },
5672
5666
  emits: ["update:modelValue"],
5673
5667
  setup(e, { expose: t, emit: l }) {
5674
- 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);
5675
5669
  function u() {
5676
- i.value = !!d["expandable-content"] && p.value;
5670
+ r.value = !!d["expandable-content"] && p.value;
5677
5671
  }
5678
5672
  function f() {
5679
5673
  o("update:modelValue", n.value), u();
@@ -5694,10 +5688,10 @@ const Gr = () => {
5694
5688
  }
5695
5689
  ), t({
5696
5690
  checked: p,
5697
- isExpanded: i
5691
+ isExpanded: r
5698
5692
  }), (b, h) => (c(), g("label", {
5699
5693
  ref_key: "root",
5700
- ref: r,
5694
+ ref: i,
5701
5695
  class: I([
5702
5696
  "joy-radio",
5703
5697
  `joy-radio--${e.theme}`,
@@ -5711,6 +5705,7 @@ const Gr = () => {
5711
5705
  }, [
5712
5706
  v("input", {
5713
5707
  id: e.id,
5708
+ "data-joy-form-field": "",
5714
5709
  type: "radio",
5715
5710
  value: e.value,
5716
5711
  checked: p.value,
@@ -5720,31 +5715,31 @@ const Gr = () => {
5720
5715
  onChange: f,
5721
5716
  onFocus: m,
5722
5717
  onBlur: y
5723
- }, null, 40, ai),
5724
- v("span", ri, [
5718
+ }, null, 40, ti),
5719
+ v("span", oi, [
5725
5720
  w(b.$slots, "default", {}, void 0, !0),
5726
- v("div", ii, [
5721
+ v("div", ni, [
5727
5722
  w(b.$slots, "radio-header-right", {}, void 0, !0)
5728
5723
  ])
5729
5724
  ]),
5730
- v("div", si, [
5725
+ v("div", li, [
5731
5726
  w(b.$slots, "radio-sublabel", {}, void 0, !0)
5732
5727
  ]),
5733
- v("div", ui, [
5728
+ v("div", ai, [
5734
5729
  v("div", {
5735
5730
  ref_key: "expandableElement",
5736
5731
  ref: s,
5737
- class: I(["joy-radio-expandable", { "joy-radio-expandable--expanded": i.value }])
5732
+ class: I(["joy-radio-expandable", { "joy-radio-expandable--expanded": r.value }])
5738
5733
  }, [
5739
5734
  w(b.$slots, "expandable-content", {}, void 0, !0)
5740
5735
  ], 2),
5741
- v("div", di, [
5736
+ v("div", ri, [
5742
5737
  w(b.$slots, "radio-content", {}, void 0, !0)
5743
5738
  ])
5744
5739
  ])
5745
5740
  ], 2));
5746
5741
  }
5747
- }), zu = /* @__PURE__ */ A(ci, [["__scopeId", "data-v-d00642b4"]]), fi = ["form", "name"], pi = /* @__PURE__ */ L({
5742
+ }), Iu = /* @__PURE__ */ A(ii, [["__scopeId", "data-v-c5b11e4c"]]), si = ["form", "name"], ui = /* @__PURE__ */ L({
5748
5743
  __name: "VJoyRadioGroup",
5749
5744
  props: {
5750
5745
  direction: { default: "horizontal" },
@@ -5765,9 +5760,9 @@ const Gr = () => {
5765
5760
  }, [
5766
5761
  w(t.$slots, "default", {}, void 0, !0)
5767
5762
  ], 2)
5768
- ], 8, fi));
5763
+ ], 8, si));
5769
5764
  }
5770
- }), Ju = /* @__PURE__ */ A(pi, [["__scopeId", "data-v-ac4dd24e"]]), yi = ["aria-label"], mi = { class: "joy-rating-stars" }, vi = { class: "joy-rating-stars__content" }, hi = { key: 0 }, gi = /* @__PURE__ */ L({
5765
+ }), Lu = /* @__PURE__ */ A(ui, [["__scopeId", "data-v-ac4dd24e"]]), di = ["aria-label"], ci = { class: "joy-rating-stars" }, fi = { class: "joy-rating-stars__content" }, pi = { key: 0 }, yi = /* @__PURE__ */ L({
5771
5766
  __name: "VJoyRatingStars",
5772
5767
  props: {
5773
5768
  /** Between 0 and 5 */
@@ -5787,29 +5782,29 @@ const Gr = () => {
5787
5782
  },
5788
5783
  setup(e, { expose: t }) {
5789
5784
  const l = e, o = be(), n = V(() => {
5790
- let i = [], a = 0.24, r = 0.75;
5785
+ let r = [], a = 0.24, i = 0.75;
5791
5786
  for (let s = 0; s < 5; s++)
5792
- l.ratingValue > a ? i.push(l.ratingValue < r ? "half" : "full") : i.push("empty"), a += 1, r += 1;
5793
- return i;
5787
+ l.ratingValue > a ? r.push(l.ratingValue < i ? "half" : "full") : r.push("empty"), a += 1, i += 1;
5788
+ return r;
5794
5789
  });
5795
5790
  return t({
5796
5791
  setStars: n
5797
- }), (i, a) => (c(), g("div", {
5792
+ }), (r, a) => (c(), g("div", {
5798
5793
  role: "img",
5799
5794
  class: "joy-rating-stars__wrapper",
5800
5795
  "aria-label": q(o).ariaLabel || `Rating: ${e.ratingValue} out of 5`
5801
5796
  }, [
5802
- v("ul", mi, [
5803
- (c(!0), g(W, null, U(n.value, (r, s) => (c(), g("li", {
5797
+ v("ul", ci, [
5798
+ (c(!0), g(W, null, U(n.value, (i, s) => (c(), g("li", {
5804
5799
  key: s,
5805
5800
  class: I([`joy-rating-stars--${e.size}`])
5806
5801
  }, [
5807
- r === "full" ? (c(), T(R, {
5802
+ i === "full" ? (c(), T(R, {
5808
5803
  key: 0,
5809
5804
  "aria-hidden": "true",
5810
5805
  name: "star-fill",
5811
5806
  color: "quaternary"
5812
- })) : r === "half" ? (c(), T(R, {
5807
+ })) : i === "half" ? (c(), T(R, {
5813
5808
  key: 1,
5814
5809
  "aria-hidden": "true",
5815
5810
  name: "star-half",
@@ -5822,14 +5817,14 @@ const Gr = () => {
5822
5817
  }))
5823
5818
  ], 2))), 128))
5824
5819
  ]),
5825
- v("div", vi, [
5826
- w(i.$slots, "rating-stars-content", {}, () => [
5827
- e.reviewCount ? (c(), g("span", hi, "(" + J(e.reviewCount) + ")", 1)) : _("", !0)
5820
+ v("div", fi, [
5821
+ w(r.$slots, "rating-stars-content", {}, () => [
5822
+ e.reviewCount ? (c(), g("span", pi, "(" + J(e.reviewCount) + ")", 1)) : _("", !0)
5828
5823
  ], !0)
5829
5824
  ])
5830
- ], 8, yi));
5825
+ ], 8, di));
5831
5826
  }
5832
- }), bi = /* @__PURE__ */ A(gi, [["__scopeId", "data-v-df20c585"]]), wi = ["id", "name", "aria-label", "aria-invalid", "required", "disabled"], _i = ["selected"], ji = /* @__PURE__ */ L({
5827
+ }), mi = /* @__PURE__ */ A(yi, [["__scopeId", "data-v-df20c585"]]), vi = ["id", "name", "aria-label", "aria-invalid", "required", "disabled"], hi = ["selected"], gi = /* @__PURE__ */ L({
5833
5828
  __name: "VJoySelect",
5834
5829
  props: {
5835
5830
  /** aria-label is available only if 'label' property is undefined **/
@@ -5877,28 +5872,28 @@ const Gr = () => {
5877
5872
  },
5878
5873
  emits: ["update:modelValue"],
5879
5874
  setup(e, { expose: t, emit: l }) {
5880
- const o = e, n = l, i = G(), a = V(() => {
5881
- 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());
5882
5877
  let h = [];
5883
5878
  return b.forEach(($) => {
5884
- if (r($))
5879
+ if (i($))
5885
5880
  h.push($);
5886
5881
  else {
5887
5882
  const j = $.children;
5888
5883
  if (typeof j == "string" || !j.length)
5889
5884
  return;
5890
- const x = j.filter(r);
5885
+ const x = j.filter(i);
5891
5886
  h = [...h, ...x];
5892
5887
  }
5893
5888
  }), h;
5894
5889
  });
5895
- function r(b) {
5890
+ function i(b) {
5896
5891
  return (b == null ? void 0 : b.type) === "option";
5897
5892
  }
5898
5893
  const s = C(), d = C(), p = C(!1), u = V(() => o.labelSize ? o.labelSize : o.size !== "medium" ? "small" : "medium");
5899
5894
  te(() => {
5900
5895
  var $;
5901
- const b = i["select-label"] && i["select-label"]();
5896
+ const b = r["select-label"] && r["select-label"]();
5902
5897
  if (!b || !b.length)
5903
5898
  return;
5904
5899
  const h = b[0];
@@ -5956,6 +5951,7 @@ const Gr = () => {
5956
5951
  id: e.id || e.name,
5957
5952
  ref_key: "select",
5958
5953
  ref: d,
5954
+ "data-joy-form-field": "",
5959
5955
  class: "joy-select",
5960
5956
  name: e.name,
5961
5957
  "aria-label": e.label ? void 0 : e.ariaLabel,
@@ -5973,9 +5969,9 @@ const Gr = () => {
5973
5969
  ref_for: !0
5974
5970
  }, $.props, {
5975
5971
  selected: ((x = $.props) == null ? void 0 : x.value) === e.modelValue
5976
- }), J($.children), 17, _i);
5972
+ }), J($.children), 17, hi);
5977
5973
  }), 128))
5978
- ], 40, wi),
5974
+ ], 40, vi),
5979
5975
  O(R, {
5980
5976
  class: "joy-select__chevron",
5981
5977
  name: "chevron-down"
@@ -5983,7 +5979,7 @@ const Gr = () => {
5983
5979
  ], 2)
5984
5980
  ], 512));
5985
5981
  }
5986
- }), Mu = /* @__PURE__ */ A(ji, [["__scopeId", "data-v-b92cc9ce"]]), ki = ["aria-disabled"], $i = ["id", "value", "checked", "disabled", "required", "name"], Si = { class: "joy-selectable-item__label" }, Ci = /* @__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({
5987
5983
  __name: "VJoySelectableItem",
5988
5984
  props: {
5989
5985
  disabled: { type: Boolean, default: !1 },
@@ -6000,7 +5996,7 @@ const Gr = () => {
6000
5996
  },
6001
5997
  emits: ["update:checked"],
6002
5998
  setup(e, { emit: t }) {
6003
- 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 = {
6004
6000
  onRadioChange: () => {
6005
6001
  l("update:checked", n.value);
6006
6002
  },
@@ -6035,7 +6031,8 @@ const Gr = () => {
6035
6031
  key: 0,
6036
6032
  id: s.value,
6037
6033
  ref_key: "inputRadio",
6038
- ref: i,
6034
+ ref: r,
6035
+ "data-joy-form-field": "",
6039
6036
  type: "radio",
6040
6037
  value: u.value,
6041
6038
  checked: u.checked,
@@ -6048,8 +6045,8 @@ const Gr = () => {
6048
6045
  (...m) => d.onFocus && d.onFocus(...m)),
6049
6046
  onBlur: f[2] || (f[2] = //@ts-ignore
6050
6047
  (...m) => d.onBlur && d.onBlur(...m))
6051
- }, null, 40, $i)),
6052
- (c(), T(Z(q(r)), {
6048
+ }, null, 40, wi)),
6049
+ (c(), T(Z(q(i)), {
6053
6050
  for: s.value,
6054
6051
  class: I([
6055
6052
  "joy-selectable-item",
@@ -6083,7 +6080,7 @@ const Gr = () => {
6083
6080
  ]),
6084
6081
  _: 3
6085
6082
  }, 8, ["id", "checked", "disabled", "value", "name", "required", "invalid"])) : _("", !0),
6086
- v("div", Si, [
6083
+ v("div", _i, [
6087
6084
  u.multiple ? _("", !0) : w(u.$slots, "default", { key: 0 }, void 0, !0)
6088
6085
  ]),
6089
6086
  v("div", {
@@ -6096,9 +6093,9 @@ const Gr = () => {
6096
6093
  ]),
6097
6094
  _: 3
6098
6095
  }, 8, ["for", "class", "onClick"]))
6099
- ], 10, ki));
6096
+ ], 10, bi));
6100
6097
  }
6101
- }), Vi = /* @__PURE__ */ A(Ci, [["__scopeId", "data-v-a721b2f2"]]), Ti = ["id"], xi = /* @__PURE__ */ L({
6098
+ }), ki = /* @__PURE__ */ A(ji, [["__scopeId", "data-v-1bc198e0"]]), $i = ["id"], Si = /* @__PURE__ */ L({
6102
6099
  __name: "VJoySelectableItemGroup",
6103
6100
  props: {
6104
6101
  options: {},
@@ -6119,31 +6116,31 @@ const Gr = () => {
6119
6116
  emits: ["update:value"],
6120
6117
  setup(e, { emit: t }) {
6121
6118
  const l = t, o = e;
6122
- function n(r) {
6123
- 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));
6124
6121
  }
6125
- function i(r, s) {
6122
+ function r(i, s) {
6126
6123
  if (!o.multiple)
6127
6124
  return l("update:value", s);
6128
6125
  let d = [...o.value || []];
6129
- 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);
6130
6127
  }
6131
- function a(r) {
6132
- 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;
6133
6130
  }
6134
- return (r, s) => (c(), g("fieldset", {
6135
- id: r.id,
6131
+ return (i, s) => (c(), g("fieldset", {
6132
+ id: i.id,
6136
6133
  class: "joy-selectable-item-group__wrapper"
6137
6134
  }, [
6138
- r.label ? (c(), T(Ve, {
6135
+ i.label ? (c(), T(Ve, {
6139
6136
  key: 0,
6140
6137
  "tag-name": "legend",
6141
- required: r.required && r.requiredMark,
6142
- "optional-label": r.optionalLabel,
6143
- size: r.labelSize
6138
+ required: i.required && i.requiredMark,
6139
+ "optional-label": i.optionalLabel,
6140
+ size: i.labelSize
6144
6141
  }, {
6145
6142
  default: z(() => [
6146
- D(J(r.label), 1)
6143
+ D(J(i.label), 1)
6147
6144
  ]),
6148
6145
  _: 1
6149
6146
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
@@ -6151,27 +6148,27 @@ const Gr = () => {
6151
6148
  class: I([
6152
6149
  "joy-selectable-item-group",
6153
6150
  {
6154
- "joy-selectable-item-group--multiple": r.multiple,
6155
- "joy-selectable-item-group--single": !r.multiple,
6156
- "joy-selectable-item-group--full": r.fullWidth,
6157
- "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
6158
6155
  }
6159
6156
  ])
6160
6157
  }, [
6161
- (c(!0), g(W, null, U(r.options, (d) => (c(), T(Vi, 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, {
6162
6159
  id: d.id,
6163
6160
  key: d.id,
6164
6161
  name: d.name,
6165
6162
  disabled: d.disabled,
6166
6163
  value: a(d),
6167
- multiple: r.multiple,
6164
+ multiple: i.multiple,
6168
6165
  checked: n(d),
6169
- invalid: r.invalid,
6170
- "onUpdate:checked": (p) => i(a(d), p)
6166
+ invalid: i.invalid,
6167
+ "onUpdate:checked": (p) => r(a(d), p)
6171
6168
  }), pt({
6172
6169
  default: z(() => [
6173
- w(r.$slots, "item", H({ ref_for: !0 }, d), () => [
6174
- 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)
6175
6172
  ], !0)
6176
6173
  ]),
6177
6174
  _: 2
@@ -6185,14 +6182,14 @@ const Gr = () => {
6185
6182
  } : void 0
6186
6183
  ]), 1040, ["id", "name", "disabled", "value", "multiple", "checked", "invalid", "onUpdate:checked"]))), 128))
6187
6184
  ], 2),
6188
- r.errorMessage && r.invalid ? (c(), T(tt, {
6185
+ i.errorMessage && i.invalid ? (c(), T(tt, {
6189
6186
  key: 1,
6190
- "no-html-error-text": r.errorMessage,
6187
+ "no-html-error-text": i.errorMessage,
6191
6188
  class: "joy-mt-2"
6192
6189
  }, null, 8, ["no-html-error-text"])) : _("", !0)
6193
- ], 8, Ti));
6190
+ ], 8, $i));
6194
6191
  }
6195
- }), Pu = /* @__PURE__ */ A(xi, [["__scopeId", "data-v-b1ae09f7"]]), Ii = /* @__PURE__ */ L({
6192
+ }), Au = /* @__PURE__ */ A(Si, [["__scopeId", "data-v-b1ae09f7"]]), Ci = /* @__PURE__ */ L({
6196
6193
  __name: "VJoySeparator",
6197
6194
  props: {
6198
6195
  /** Main text to apply in the central area */
@@ -6211,10 +6208,10 @@ const Gr = () => {
6211
6208
  v("span", null, J(e.text), 1)
6212
6209
  ], 2));
6213
6210
  }
6214
- }), Fu = /* @__PURE__ */ A(Ii, [["__scopeId", "data-v-21db2899"]]), Li = ["id"], Bi = { class: "joy-step__stroke" }, Ai = {
6211
+ }), Eu = /* @__PURE__ */ A(Ci, [["__scopeId", "data-v-21db2899"]]), Vi = ["id"], Ti = { class: "joy-step__stroke" }, xi = {
6215
6212
  key: 0,
6216
6213
  class: "joy-step__label"
6217
- }, Ei = /* @__PURE__ */ L({
6214
+ }, Ii = /* @__PURE__ */ L({
6218
6215
  __name: "VJoyStep",
6219
6216
  props: {
6220
6217
  /** Set it to completed to change it's color */
@@ -6248,7 +6245,7 @@ const Gr = () => {
6248
6245
  },
6249
6246
  emits: ["update:subSteps"],
6250
6247
  setup(e, { expose: t, emit: l }) {
6251
- 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);
6252
6249
  function s(d) {
6253
6250
  d <= 0 && console.warn("subSteps must be equal or greater than 1"), n("update:subSteps");
6254
6251
  }
@@ -6261,11 +6258,11 @@ const Gr = () => {
6261
6258
  `joy-step--size-${e.size}`,
6262
6259
  {
6263
6260
  "joy-step--completed": e.completed,
6264
- "joy-step--ongoing": r.value
6261
+ "joy-step--ongoing": i.value
6265
6262
  }
6266
6263
  ])
6267
6264
  }, [
6268
- v("span", Bi, [
6265
+ v("span", Ti, [
6269
6266
  v("span", {
6270
6267
  class: "joy-step__stroke--filled",
6271
6268
  style: ee({ maxWidth: a.value })
@@ -6273,15 +6270,15 @@ const Gr = () => {
6273
6270
  ]),
6274
6271
  O(ft, { name: "joy-step__label" }, {
6275
6272
  default: z(() => [
6276
- e.showLabel ? (c(), g("span", Ai, [
6273
+ e.showLabel ? (c(), g("span", xi, [
6277
6274
  w(d.$slots, "default", {}, void 0, !0)
6278
6275
  ])) : _("", !0)
6279
6276
  ]),
6280
6277
  _: 3
6281
6278
  })
6282
- ], 10, Li));
6279
+ ], 10, Vi));
6283
6280
  }
6284
- }), zi = /* @__PURE__ */ A(Ei, [["__scopeId", "data-v-3820cdf3"]]), Ji = { class: "joy-stepper" }, Mi = /* @__PURE__ */ L({
6281
+ }), Li = /* @__PURE__ */ A(Ii, [["__scopeId", "data-v-3820cdf3"]]), Bi = { class: "joy-stepper" }, Ai = /* @__PURE__ */ L({
6285
6282
  __name: "VJoyStepper",
6286
6283
  props: {
6287
6284
  /** Current step value */
@@ -6296,7 +6293,7 @@ const Gr = () => {
6296
6293
  }
6297
6294
  },
6298
6295
  setup(e, { expose: t }) {
6299
- const l = e, o = G(), n = Ce("VJoyStepperShowLabels", !0), i = V(() => {
6296
+ const l = e, o = G(), n = Ce("VJoyStepperShowLabels", !0), r = V(() => {
6300
6297
  const f = o.default();
6301
6298
  return f.length === 1 && typeof f[0].type != "object" ? f[0].children.filter(a) : f.filter(a);
6302
6299
  });
@@ -6304,18 +6301,18 @@ const Gr = () => {
6304
6301
  var m;
6305
6302
  return ((m = f.type) == null ? void 0 : m.__name) === "VJoyStep";
6306
6303
  }
6307
- 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"]);
6308
6305
  function u(f) {
6309
6306
  return f !== l.step - 1 ? 0 : d.value;
6310
6307
  }
6311
6308
  return t({
6312
6309
  currentItemSubStep: d,
6313
- steps: i,
6310
+ steps: r,
6314
6311
  invalidSubStepValue: s
6315
- }), (f, m) => (c(), g("div", Ji, [
6316
- (c(!0), g(W, null, U(i.value, (y, b) => {
6312
+ }), (f, m) => (c(), g("div", Bi, [
6313
+ (c(!0), g(W, null, U(r.value, (y, b) => {
6317
6314
  var h;
6318
- return c(), T(zi, H({ ref_for: !0 }, y.props, {
6315
+ return c(), T(Li, H({ ref_for: !0 }, y.props, {
6319
6316
  key: (h = y.props) == null ? void 0 : h.id,
6320
6317
  completed: b < e.step - 1,
6321
6318
  "current-sub-step": u(b),
@@ -6332,7 +6329,7 @@ const Gr = () => {
6332
6329
  }), 128))
6333
6330
  ]));
6334
6331
  }
6335
- }), Ou = /* @__PURE__ */ A(Mi, [["__scopeId", "data-v-22705668"]]), Pi = ["id", "aria-hidden", "aria-labelledby"], Fi = /* @__PURE__ */ L({
6332
+ }), zu = /* @__PURE__ */ A(Ai, [["__scopeId", "data-v-22705668"]]), Ei = ["id", "aria-hidden", "aria-labelledby"], zi = /* @__PURE__ */ L({
6336
6333
  __name: "VJoyTab",
6337
6334
  props: {
6338
6335
  /**
@@ -6364,7 +6361,7 @@ const Gr = () => {
6364
6361
  },
6365
6362
  setup(e) {
6366
6363
  const t = e, l = Ce("VJoyTabs", C("")), o = V(() => l.value === t.tab);
6367
- return (n, i) => (c(), g("div", {
6364
+ return (n, r) => (c(), g("div", {
6368
6365
  id: `joy-tab-${e.tab}`,
6369
6366
  role: "tabpanel",
6370
6367
  "aria-hidden": o.value ? void 0 : "true",
@@ -6375,12 +6372,12 @@ const Gr = () => {
6375
6372
  })
6376
6373
  }, [
6377
6374
  w(n.$slots, "default", {}, void 0, !0)
6378
- ], 10, Pi));
6375
+ ], 10, Ei));
6379
6376
  }
6380
- }), Du = /* @__PURE__ */ A(Fi, [["__scopeId", "data-v-a76a7c92"]]), Oi = ["id", "href", "aria-selected", "aria-controls"], Di = {
6377
+ }), Ju = /* @__PURE__ */ A(zi, [["__scopeId", "data-v-a76a7c92"]]), Ji = ["id", "href", "aria-selected", "aria-controls"], Mi = {
6381
6378
  type: "button",
6382
6379
  tabindex: "-1"
6383
- }, Ri = /* @__PURE__ */ L({
6380
+ }, Pi = /* @__PURE__ */ L({
6384
6381
  __name: "TabButton",
6385
6382
  props: {
6386
6383
  /**
@@ -6418,20 +6415,20 @@ const Gr = () => {
6418
6415
  emits: ["changeTab"],
6419
6416
  setup(e, { emit: t }) {
6420
6417
  const l = e, o = t, n = V(() => typeof l.notifications == "number");
6421
- function i() {
6418
+ function r() {
6422
6419
  o("changeTab");
6423
6420
  }
6424
- function a(r) {
6425
- (r.code === "Enter" || r.code === "NumpadEnter") && o("changeTab");
6421
+ function a(i) {
6422
+ (i.code === "Enter" || i.code === "NumpadEnter") && o("changeTab");
6426
6423
  }
6427
- return (r, s) => (c(), g("a", {
6424
+ return (i, s) => (c(), g("a", {
6428
6425
  id: `joy-tab-${e.tab}`,
6429
6426
  href: e.href,
6430
6427
  "aria-selected": e.selected ? "true" : "false",
6431
6428
  "aria-controls": `job-tab-${e.tab}`,
6432
6429
  tabindex: "0",
6433
6430
  role: "tab",
6434
- onClick: i,
6431
+ onClick: r,
6435
6432
  onKeydown: s[0] || (s[0] = (d) => a(d))
6436
6433
  }, [
6437
6434
  v("div", {
@@ -6440,8 +6437,8 @@ const Gr = () => {
6440
6437
  "joy-tab-button__selected": e.selected
6441
6438
  })
6442
6439
  }, [
6443
- v("button", Di, [
6444
- w(r.$slots, "default", {}, () => [
6440
+ v("button", Mi, [
6441
+ w(i.$slots, "default", {}, () => [
6445
6442
  D(J(e.label), 1)
6446
6443
  ], !0),
6447
6444
  n.value ? (c(), T(cn, {
@@ -6452,9 +6449,9 @@ const Gr = () => {
6452
6449
  }, null, 8, ["number"])) : _("", !0)
6453
6450
  ])
6454
6451
  ], 2)
6455
- ], 40, Oi));
6452
+ ], 40, Ji));
6456
6453
  }
6457
- }), Ni = /* @__PURE__ */ A(Ri, [["__scopeId", "data-v-8424823d"]]), qi = { class: "joy-tabs" }, Hi = /* @__PURE__ */ L({
6454
+ }), Fi = /* @__PURE__ */ A(Pi, [["__scopeId", "data-v-8424823d"]]), Oi = { class: "joy-tabs" }, Di = /* @__PURE__ */ L({
6458
6455
  __name: "VJoyTabs",
6459
6456
  props: {
6460
6457
  /** Use this prop to activate a specific tab by default by giving its name */
@@ -6464,10 +6461,10 @@ const Gr = () => {
6464
6461
  },
6465
6462
  emits: ["update:selected-tab"],
6466
6463
  setup(e, { expose: t, emit: l }) {
6467
- const o = e, n = l, i = G(), a = C(o.selectedTab);
6464
+ const o = e, n = l, r = G(), a = C(o.selectedTab);
6468
6465
  Ze("VJoyTabs", a);
6469
- const r = C(null), s = C(null), d = C(!1), p = C(!1), u = V(() => {
6470
- 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();
6471
6468
  return h.length === 1 && typeof h[0].type != "object" ? h[0].children.filter(f) : h.filter(f);
6472
6469
  });
6473
6470
  function f(h) {
@@ -6478,7 +6475,7 @@ const Gr = () => {
6478
6475
  return h.props.tab === a.value;
6479
6476
  }
6480
6477
  function y() {
6481
- 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);
6482
6479
  }
6483
6480
  function b(h, $ = !0) {
6484
6481
  h && $ && (a.value = h, n("update:selected-tab", h));
@@ -6497,10 +6494,10 @@ const Gr = () => {
6497
6494
  (h = s.value) == null || h.removeEventListener("scroll", y);
6498
6495
  }), t({
6499
6496
  tabs: u
6500
- }), (h, $) => (c(), g("div", qi, [
6497
+ }), (h, $) => (c(), g("div", Oi, [
6501
6498
  v("div", {
6502
6499
  ref_key: "buttonListWrapper",
6503
- ref: r,
6500
+ ref: i,
6504
6501
  class: I({
6505
6502
  "joy-tabs-buttons__wrapper": !0,
6506
6503
  "joy-tabs-buttons__wrapper--scroll-end": d.value,
@@ -6516,7 +6513,7 @@ const Gr = () => {
6516
6513
  (c(!0), g(W, null, U(u.value, (j) => (c(), g("div", {
6517
6514
  key: j.props.tab
6518
6515
  }, [
6519
- O(Ni, {
6516
+ O(Fi, {
6520
6517
  tab: j.props.tab,
6521
6518
  label: j.props.label,
6522
6519
  href: j.props.href,
@@ -6540,7 +6537,7 @@ const Gr = () => {
6540
6537
  ])
6541
6538
  ]));
6542
6539
  }
6543
- }), Ru = /* @__PURE__ */ A(Hi, [["__scopeId", "data-v-9aea2d41"]]), Wi = ["id", "role"], Ui = /* @__PURE__ */ L({
6540
+ }), Mu = /* @__PURE__ */ A(Di, [["__scopeId", "data-v-9aea2d41"]]), Ri = ["id", "role"], Ni = /* @__PURE__ */ L({
6544
6541
  __name: "VJoyTag",
6545
6542
  props: {
6546
6543
  label: {},
@@ -6558,7 +6555,7 @@ const Gr = () => {
6558
6555
  },
6559
6556
  emits: ["selected", "remove", "click"],
6560
6557
  setup(e, { emit: t }) {
6561
- const l = ["primary", "secondary"], o = t, n = e, i = V(() => ({
6558
+ const l = ["primary", "secondary"], o = t, n = e, r = V(() => ({
6562
6559
  "joy-tag": !0,
6563
6560
  "joy-tag__selected": n.selected,
6564
6561
  "joy-tag__selectable": n.selectable || n.link,
@@ -6567,7 +6564,7 @@ const Gr = () => {
6567
6564
  "joy-tag__disabled": n.disabled,
6568
6565
  ["joy-tag__" + n.size]: !0,
6569
6566
  ["joy-tag__" + n.variant]: !0
6570
- })), a = Fe() + "--JoyTag", r = V(() => n.id || a);
6567
+ })), a = Fe() + "--JoyTag", i = V(() => n.id || a);
6571
6568
  function s() {
6572
6569
  o("remove", { value: n.value });
6573
6570
  }
@@ -6575,8 +6572,8 @@ const Gr = () => {
6575
6572
  n.disabled || (o("click"), n.selectable && l.includes(n.variant) && o("selected", { selected: !n.selected, value: n.value }));
6576
6573
  }
6577
6574
  return (p, u) => (c(), g("span", {
6578
- id: r.value,
6579
- class: I([i.value]),
6575
+ id: i.value,
6576
+ class: I([r.value]),
6580
6577
  role: p.link || p.selectable ? "button" : void 0,
6581
6578
  onClick: d
6582
6579
  }, [
@@ -6598,9 +6595,9 @@ const Gr = () => {
6598
6595
  onClick: Bo(s, ["stop"]),
6599
6596
  onKeydown: Oe(s, ["enter"])
6600
6597
  })) : _("", !0)
6601
- ], 10, Wi));
6598
+ ], 10, Ri));
6602
6599
  }
6603
- }), go = /* @__PURE__ */ A(Ui, [["__scopeId", "data-v-f672398d"]]);
6600
+ }), go = /* @__PURE__ */ A(Ni, [["__scopeId", "data-v-f672398d"]]);
6604
6601
  var we = /* @__PURE__ */ ((e) => (e.DUPLICATED_ENTRY = "DUPLICATED_ENTRY", e.INVALID_EMAIL = "INVALID_EMAIL", e))(we || {});
6605
6602
  function Jt(e) {
6606
6603
  if (!Array.isArray(e) && typeof e != "string")
@@ -6613,7 +6610,7 @@ function Jt(e) {
6613
6610
  return o;
6614
6611
  }) === void 0 : t(e);
6615
6612
  }
6616
- const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholder"], Ki = { key: 0 }, Zi = { key: 1 }, Xi = /* @__PURE__ */ L({
6613
+ const qi = { class: "joy-tags-input__wrapper" }, Hi = ["id", "name", "placeholder"], Wi = { key: 0 }, Ui = { key: 1 }, Gi = /* @__PURE__ */ L({
6617
6614
  __name: "VJoyTagsInput",
6618
6615
  props: {
6619
6616
  name: {},
@@ -6628,14 +6625,14 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6628
6625
  },
6629
6626
  emits: ["update:modelValue", "validation:error"],
6630
6627
  setup(e, { expose: t, emit: l }) {
6631
- 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));
6632
6629
  function y() {
6633
6630
  p.value && s.value === !0 && (d.value = we.INVALID_EMAIL);
6634
6631
  }
6635
6632
  function b() {
6636
6633
  var F;
6637
- const S = i.value.map((Y) => Y.trim());
6638
- 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;
6639
6636
  }
6640
6637
  function h() {
6641
6638
  b() && (d.value = we.DUPLICATED_ENTRY);
@@ -6643,14 +6640,14 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6643
6640
  function $(S) {
6644
6641
  var M;
6645
6642
  if (["Backspace"].includes(S.key)) {
6646
- if (((M = r.value) == null ? void 0 : M.value) !== "")
6643
+ if (((M = i.value) == null ? void 0 : M.value) !== "")
6647
6644
  return;
6648
- i.value.pop(), n("update:modelValue", i.value), p.value && N();
6645
+ r.value.pop(), n("update:modelValue", r.value), p.value && N();
6649
6646
  }
6650
6647
  }
6651
6648
  function j() {
6652
6649
  var S, M;
6653
- (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));
6654
6651
  }
6655
6652
  function x(S) {
6656
6653
  var M;
@@ -6659,7 +6656,7 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6659
6656
  if (S.preventDefault(), N(), b()) {
6660
6657
  n("validation:error", we.DUPLICATED_ENTRY);
6661
6658
  return;
6662
- } 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)) {
6663
6660
  n("validation:error", we.INVALID_EMAIL);
6664
6661
  return;
6665
6662
  }
@@ -6682,14 +6679,14 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6682
6679
  }
6683
6680
  function P(S) {
6684
6681
  var M;
6685
- 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();
6686
6683
  }
6687
6684
  function k() {
6688
6685
  var M, F;
6689
6686
  let S = !1;
6690
6687
  if (p.value) {
6691
- let Y = i.value;
6692
- (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);
6693
6690
  }
6694
6691
  s.value = S || b(), !S && b() && (d.value = null);
6695
6692
  }
@@ -6705,7 +6702,7 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6705
6702
  ), t({
6706
6703
  isInvalid: s,
6707
6704
  hasDuplicates: b
6708
- }), (S, M) => (c(), g("div", Gi, [
6705
+ }), (S, M) => (c(), g("div", qi, [
6709
6706
  S.$slots.default ? (c(), T(Ve, {
6710
6707
  key: 0,
6711
6708
  id: S.name,
@@ -6725,7 +6722,7 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6725
6722
  }
6726
6723
  ])
6727
6724
  }, [
6728
- (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, {
6729
6726
  key: F,
6730
6727
  variant: S.variant,
6731
6728
  removable: !0,
@@ -6742,14 +6739,15 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6742
6739
  v("input", {
6743
6740
  id: S.name,
6744
6741
  ref_key: "inputEl",
6745
- ref: r,
6742
+ ref: i,
6743
+ "data-joy-form-field": "",
6746
6744
  type: "text",
6747
6745
  name: S.name,
6748
6746
  placeholder: S.placeholder,
6749
6747
  onKeydown: x,
6750
6748
  onFocus: E,
6751
6749
  onBlur: B
6752
- }, null, 40, Yi)
6750
+ }, null, 40, Hi)
6753
6751
  ], 2),
6754
6752
  m.value ? (c(), T(tt, {
6755
6753
  key: 1,
@@ -6757,15 +6755,15 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6757
6755
  }, {
6758
6756
  default: z(() => [
6759
6757
  v("ul", null, [
6760
- f.value ? (c(), g("li", Ki, J(S.duplicationError), 1)) : _("", !0),
6761
- u.value ? (c(), g("li", Zi, J(S.invalidEmailError), 1)) : _("", !0)
6758
+ f.value ? (c(), g("li", Wi, J(S.duplicationError), 1)) : _("", !0),
6759
+ u.value ? (c(), g("li", Ui, J(S.invalidEmailError), 1)) : _("", !0)
6762
6760
  ])
6763
6761
  ]),
6764
6762
  _: 1
6765
6763
  })) : _("", !0)
6766
6764
  ]));
6767
6765
  }
6768
- }), Nu = /* @__PURE__ */ A(Xi, [["__scopeId", "data-v-f00760e9"]]), Qi = /* @__PURE__ */ L({
6766
+ }), Pu = /* @__PURE__ */ A(Gi, [["__scopeId", "data-v-8124eb68"]]), Yi = /* @__PURE__ */ L({
6769
6767
  __name: "VJoyTagsList",
6770
6768
  props: {
6771
6769
  align: {
@@ -6805,13 +6803,13 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6805
6803
  var p;
6806
6804
  return o.removable ? !1 : (p = o.modelValue) == null ? void 0 : p.includes(d.value);
6807
6805
  }
6808
- function i(d) {
6806
+ function r(d) {
6809
6807
  return !o.modelValue || o.removable || d.removable ? !1 : d.selectable !== void 0 ? d.selectable : o.selectable;
6810
6808
  }
6811
6809
  function a(d) {
6812
6810
  return d.removable !== void 0 ? d.removable : o.removable;
6813
6811
  }
6814
- function r(d, p) {
6812
+ function i(d, p) {
6815
6813
  let u = [];
6816
6814
  d.selected && !n(p) ? u = [...o.modelValue || [], p.value] : u = (o.modelValue || []).filter((f) => f !== p.value), l("update:modelValue", u);
6817
6815
  }
@@ -6825,17 +6823,17 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6825
6823
  key: u.value || u.label,
6826
6824
  ref_for: !0
6827
6825
  }, u, {
6828
- selectable: i(u),
6826
+ selectable: r(u),
6829
6827
  removable: a(u),
6830
6828
  variant: u.variant ? u.variant : e.variant,
6831
6829
  selected: n(u),
6832
6830
  onRemove: s,
6833
- onSelected: (f) => r(f, u)
6831
+ onSelected: (f) => i(f, u)
6834
6832
  }), {
6835
6833
  default: z(() => [
6836
6834
  w(d.$slots, "tag", H({ ref_for: !0 }, {
6837
6835
  ...u,
6838
- selectable: i(u),
6836
+ selectable: r(u),
6839
6837
  selected: n(u),
6840
6838
  removable: a(u)
6841
6839
  }), void 0, !0)
@@ -6844,36 +6842,36 @@ const Gi = { class: "joy-tags-input__wrapper" }, Yi = ["id", "name", "placeholde
6844
6842
  }, 1040, ["selectable", "removable", "variant", "selected", "onSelected"]))), 128))
6845
6843
  ], 2));
6846
6844
  }
6847
- }), qu = /* @__PURE__ */ A(Qi, [["__scopeId", "data-v-1d8003ef"]]), es = {}, ts = {
6845
+ }), Fu = /* @__PURE__ */ A(Yi, [["__scopeId", "data-v-1d8003ef"]]), Ki = {}, Zi = {
6848
6846
  class: /* @__PURE__ */ I(["joy-template-shape__shapes"])
6849
6847
  };
6850
- function os(e, t) {
6851
- return c(), g("div", ts, t[0] || (t[0] = [
6848
+ function Xi(e, t) {
6849
+ return c(), g("div", Zi, t[0] || (t[0] = [
6852
6850
  Dt('<div class="shapes__wrapper" data-v-da63aa46><div class="shape_1" data-v-da63aa46></div><div class="shape_2" data-v-da63aa46></div><div class="shape_3" data-v-da63aa46></div><div class="shape_4" data-v-da63aa46></div></div>', 1)
6853
6851
  ]));
6854
6852
  }
6855
- const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46"]]), ls = { class: "joy-template__wrapper" }, as = {
6853
+ const Qi = /* @__PURE__ */ A(Ki, [["render", Xi], ["__scopeId", "data-v-da63aa46"]]), es = { class: "joy-template__wrapper" }, ts = {
6856
6854
  key: 0,
6857
6855
  class: "joy-template__heading"
6858
- }, rs = {
6856
+ }, os = {
6859
6857
  key: 0,
6860
6858
  class: "joy-template-slot-back"
6861
- }, is = { class: "joy-template__heading___headings" }, ss = {
6859
+ }, ns = { class: "joy-template__heading___headings" }, ls = {
6862
6860
  key: 0,
6863
6861
  class: "joy-template-slot-title"
6864
- }, us = {
6862
+ }, as = {
6865
6863
  key: 1,
6866
6864
  class: "joy-template-slot-subtitle"
6867
- }, ds = {
6865
+ }, rs = {
6868
6866
  key: 1,
6869
6867
  class: "joy-template-slot-actions"
6870
- }, cs = {
6868
+ }, is = {
6871
6869
  key: 0,
6872
6870
  class: "joy-template-slot-main"
6873
- }, fs = {
6871
+ }, ss = {
6874
6872
  key: 1,
6875
6873
  class: "joy-template-slot-sidebar"
6876
- }, ps = /* @__PURE__ */ L({
6874
+ }, us = /* @__PURE__ */ L({
6877
6875
  __name: "VJoyTemplate",
6878
6876
  props: {
6879
6877
  /** Takes 100% of free space */
@@ -6895,24 +6893,24 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
6895
6893
  },
6896
6894
  setup(e) {
6897
6895
  const t = e, l = G(), o = V(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"] || !!l["template-actions"]);
6898
- return (n, i) => (c(), g("div", {
6896
+ return (n, r) => (c(), g("div", {
6899
6897
  class: I(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
6900
6898
  }, [
6901
- e.shapes ? (c(), T(ns, { key: 0 })) : _("", !0),
6902
- v("div", ls, [
6903
- o.value ? (c(), g("div", as, [
6904
- l["template-back"] ? (c(), g("div", rs, [
6899
+ e.shapes ? (c(), T(Qi, { key: 0 })) : _("", !0),
6900
+ v("div", es, [
6901
+ o.value ? (c(), g("div", ts, [
6902
+ l["template-back"] ? (c(), g("div", os, [
6905
6903
  w(n.$slots, "template-back", {}, void 0, !0)
6906
6904
  ])) : _("", !0),
6907
- v("div", is, [
6908
- l["template-title"] ? (c(), g("div", ss, [
6905
+ v("div", ns, [
6906
+ l["template-title"] ? (c(), g("div", ls, [
6909
6907
  w(n.$slots, "template-title", {}, void 0, !0)
6910
6908
  ])) : _("", !0),
6911
- l["template-subtitle"] ? (c(), g("div", us, [
6909
+ l["template-subtitle"] ? (c(), g("div", as, [
6912
6910
  w(n.$slots, "template-subtitle", {}, void 0, !0)
6913
6911
  ])) : _("", !0)
6914
6912
  ]),
6915
- l["template-actions"] ? (c(), g("div", ds, [
6913
+ l["template-actions"] ? (c(), g("div", rs, [
6916
6914
  w(n.$slots, "template-actions", {}, void 0, !0)
6917
6915
  ])) : _("", !0)
6918
6916
  ])) : _("", !0),
@@ -6924,10 +6922,10 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
6924
6922
  }
6925
6923
  ])
6926
6924
  }, [
6927
- n.$slots["template-main"] ? (c(), g("div", cs, [
6925
+ n.$slots["template-main"] ? (c(), g("div", is, [
6928
6926
  w(n.$slots, "template-main", {}, void 0, !0)
6929
6927
  ])) : _("", !0),
6930
- n.$slots["template-sidebar"] ? (c(), g("div", fs, [
6928
+ n.$slots["template-sidebar"] ? (c(), g("div", ss, [
6931
6929
  w(n.$slots, "template-sidebar", {}, void 0, !0)
6932
6930
  ])) : _("", !0)
6933
6931
  ], 2)
@@ -6944,7 +6942,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
6944
6942
  }, 8, ["color"])) : _("", !0)
6945
6943
  ], 2));
6946
6944
  }
6947
- }), Hu = /* @__PURE__ */ A(ps, [["__scopeId", "data-v-8e1d59ca"]]), ys = /* @__PURE__ */ L({
6945
+ }), Ou = /* @__PURE__ */ A(us, [["__scopeId", "data-v-8e1d59ca"]]), ds = /* @__PURE__ */ L({
6948
6946
  __name: "VJoyText",
6949
6947
  props: {
6950
6948
  /** Defines the tag name of the Node you want to create. By default it's a simple P tag. Lowercase only */
@@ -6968,13 +6966,13 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
6968
6966
  _: 3
6969
6967
  }, 8, ["class"]));
6970
6968
  }
6971
- }), Wu = /* @__PURE__ */ A(ys, [["__scopeId", "data-v-6295f9ec"]]), ms = ["aria-disabled"], vs = { class: "joy-textarea_wrapper" }, hs = ["id", "disabled", "name", "required", "minlength", "value"], gs = {
6969
+ }), Du = /* @__PURE__ */ A(ds, [["__scopeId", "data-v-6295f9ec"]]), cs = ["aria-disabled"], fs = { class: "joy-textarea_wrapper" }, ps = ["id", "disabled", "name", "required", "minlength", "value"], ys = {
6972
6970
  key: 1,
6973
6971
  class: "joy-textarea_helpers"
6974
- }, bs = {
6972
+ }, ms = {
6975
6973
  inheritAttrs: !1
6976
- }, ws = /* @__PURE__ */ L({
6977
- ...bs,
6974
+ }, vs = /* @__PURE__ */ L({
6975
+ ...ms,
6978
6976
  __name: "VJoyTextarea",
6979
6977
  props: {
6980
6978
  autofocus: {
@@ -7032,11 +7030,11 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7032
7030
  },
7033
7031
  emits: ["update:modelValue"],
7034
7032
  setup(e, { expose: t, emit: l }) {
7035
- 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({
7036
7034
  element: n.autogrow ? a : void 0
7037
7035
  }), s = C(!1), d = C(!1);
7038
7036
  vt(a, n.autofocus);
7039
- 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 = {
7040
7038
  onInput: (y) => {
7041
7039
  n.modelModifiers.lazy || o("update:modelValue", y.target.value), m.triggerResize();
7042
7040
  },
@@ -7053,7 +7051,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7053
7051
  * Here we store the function in an object to more easily test it with vitest.
7054
7052
  * There is an issue when we try to use spyOn vm object directly.
7055
7053
  * */
7056
- triggerResize: r
7054
+ triggerResize: i
7057
7055
  };
7058
7056
  return K(
7059
7057
  () => n.modelValue,
@@ -7065,7 +7063,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7065
7063
  isInvalid: s,
7066
7064
  valueOverMaxlength: p,
7067
7065
  valueUnderMinlength: u,
7068
- triggerResize: r,
7066
+ triggerResize: i,
7069
7067
  eventHandlers: m
7070
7068
  }), (y, b) => (c(), g("div", {
7071
7069
  "aria-disabled": e.disabled,
@@ -7093,11 +7091,12 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7093
7091
  ]),
7094
7092
  _: 3
7095
7093
  }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
7096
- v("div", vs, [
7094
+ v("div", fs, [
7097
7095
  v("textarea", H(y.$attrs, {
7098
7096
  id: e.id,
7099
7097
  ref_key: "textarea",
7100
7098
  ref: a,
7099
+ "data-joy-form-field": "",
7101
7100
  class: "joy-native-textarea",
7102
7101
  disabled: e.disabled,
7103
7102
  name: e.name,
@@ -7112,9 +7111,9 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7112
7111
  (...h) => m.onFocus && m.onFocus(...h)),
7113
7112
  onBlur: b[3] || (b[3] = //@ts-ignore
7114
7113
  (...h) => m.onBlur && m.onBlur(...h))
7115
- }), null, 16, hs)
7114
+ }), null, 16, ps)
7116
7115
  ]),
7117
- e.minlength || e.maxlength ? (c(), g("div", gs, [
7116
+ e.minlength || e.maxlength ? (c(), g("div", ys, [
7118
7117
  e.minlength ? (c(), g("p", {
7119
7118
  key: 0,
7120
7119
  class: I(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
@@ -7132,9 +7131,9 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7132
7131
  class: I(["joy-textarea-count", { "joy-textarea-count-invalid": p.value }])
7133
7132
  }, J(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
7134
7133
  ])) : _("", !0)
7135
- ], 10, ms));
7134
+ ], 10, cs));
7136
7135
  }
7137
- }), Uu = /* @__PURE__ */ A(ws, [["__scopeId", "data-v-52e4553a"]]), _s = /* @__PURE__ */ L({
7136
+ }), Ru = /* @__PURE__ */ A(vs, [["__scopeId", "data-v-c0a7c534"]]), hs = /* @__PURE__ */ L({
7138
7137
  __name: "VJoyTitleBrand",
7139
7138
  props: {
7140
7139
  tag: { default: "p" }
@@ -7147,10 +7146,10 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7147
7146
  _: 3
7148
7147
  }));
7149
7148
  }
7150
- }), Gu = /* @__PURE__ */ A(_s, [["__scopeId", "data-v-f63a2545"]]), js = { class: "joy-toggle__wrapper" }, ks = ["name", "disabled", "checked", "required", "aria-checked", "value"], $s = { class: "joy-toggle__content" }, Ss = { class: "joy-toggle__content-label" }, Cs = {
7149
+ }), Nu = /* @__PURE__ */ A(hs, [["__scopeId", "data-v-f63a2545"]]), gs = { class: "joy-toggle__wrapper" }, bs = ["name", "disabled", "checked", "required", "aria-checked", "value"], ws = { class: "joy-toggle__content" }, _s = { class: "joy-toggle__content-label" }, js = {
7151
7150
  key: 0,
7152
7151
  class: "joy-toggle__smile"
7153
- }, Vs = /* @__PURE__ */ L({
7152
+ }, ks = /* @__PURE__ */ L({
7154
7153
  __name: "VJoyToggle",
7155
7154
  props: {
7156
7155
  modelValue: {
@@ -7191,8 +7190,8 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7191
7190
  const l = t;
7192
7191
  G();
7193
7192
  const o = C(!1), n = {
7194
- onChange: (i) => {
7195
- const a = i.target.checked;
7193
+ onChange: (r) => {
7194
+ const a = r.target.checked;
7196
7195
  l("update:modelValue", a);
7197
7196
  },
7198
7197
  onFocus: () => {
@@ -7202,7 +7201,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7202
7201
  o.value = !1;
7203
7202
  }
7204
7203
  };
7205
- return (i, a) => (c(), g("div", js, [
7204
+ return (r, a) => (c(), g("div", gs, [
7206
7205
  v("label", {
7207
7206
  class: I([
7208
7207
  "joy-toggle",
@@ -7216,6 +7215,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7216
7215
  }, [
7217
7216
  v("input", {
7218
7217
  ref: "input",
7218
+ "data-joy-form-field": "",
7219
7219
  type: "checkbox",
7220
7220
  class: "joy-toggle__input",
7221
7221
  role: "checkbox",
@@ -7226,20 +7226,20 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7226
7226
  "aria-checked": e.modelValue,
7227
7227
  value: e.value,
7228
7228
  onChange: a[0] || (a[0] = //@ts-ignore
7229
- (...r) => n.onChange && n.onChange(...r)),
7229
+ (...i) => n.onChange && n.onChange(...i)),
7230
7230
  onFocus: a[1] || (a[1] = //@ts-ignore
7231
- (...r) => n.onFocus && n.onFocus(...r)),
7231
+ (...i) => n.onFocus && n.onFocus(...i)),
7232
7232
  onBlur: a[2] || (a[2] = //@ts-ignore
7233
- (...r) => n.onBlur && n.onBlur(...r))
7234
- }, null, 40, ks),
7235
- v("p", $s, [
7233
+ (...i) => n.onBlur && n.onBlur(...i))
7234
+ }, null, 40, bs),
7235
+ v("p", ws, [
7236
7236
  a[4] || (a[4] = v("span", { class: "joy-toggle__symbol" }, null, -1)),
7237
- v("span", Ss, [
7238
- w(i.$slots, "default", {}, () => [
7237
+ v("span", _s, [
7238
+ w(r.$slots, "default", {}, () => [
7239
7239
  D(J(e.label), 1)
7240
7240
  ], !0)
7241
7241
  ]),
7242
- e.variant === "default" ? (c(), g("span", Cs, a[3] || (a[3] = [
7242
+ e.variant === "default" ? (c(), g("span", js, a[3] || (a[3] = [
7243
7243
  v("svg", {
7244
7244
  width: "18",
7245
7245
  height: "10",
@@ -7261,7 +7261,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7261
7261
  ], 2)
7262
7262
  ]));
7263
7263
  }
7264
- }), Yu = /* @__PURE__ */ A(Vs, [["__scopeId", "data-v-9f8d9f48"]]), Ts = ["aria-describedby"], xs = ["id"], Is = /* @__PURE__ */ L({
7264
+ }), qu = /* @__PURE__ */ A(ks, [["__scopeId", "data-v-df289167"]]), $s = ["aria-describedby"], Ss = ["id"], Cs = /* @__PURE__ */ L({
7265
7265
  __name: "VJoyTooltip",
7266
7266
  props: {
7267
7267
  /** If you are 100% sure the content you want to inject does not contain anything that could lead to any XSS, use this */
@@ -7307,8 +7307,8 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7307
7307
  }
7308
7308
  },
7309
7309
  setup(e, { expose: t }) {
7310
- const l = G(), o = e, n = C(!1), i = C(null), a = C(null), r = C(null), s = C(), d = C(
7311
- 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, {
7312
7312
  placement: o.placement,
7313
7313
  transform: !1,
7314
7314
  middleware: [
@@ -7363,7 +7363,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7363
7363
  n.value = !1;
7364
7364
  }), t({
7365
7365
  tooltipVisible: n,
7366
- tooltip: r
7366
+ tooltip: i
7367
7367
  }), ($, j) => (c(), T(q(mt), {
7368
7368
  ref: "tooltipClickOutside",
7369
7369
  class: "joy-tooltip__click-outside",
@@ -7375,7 +7375,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7375
7375
  return [
7376
7376
  v("div", {
7377
7377
  ref_key: "tooltipWrapper",
7378
- ref: i,
7378
+ ref: r,
7379
7379
  class: "joy-tooltip__wrapper",
7380
7380
  "aria-describedby": e.id,
7381
7381
  onClick: y,
@@ -7389,7 +7389,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7389
7389
  key: 0,
7390
7390
  id: e.id,
7391
7391
  ref_key: "tooltip",
7392
- ref: r,
7392
+ ref: i,
7393
7393
  role: "tooltip",
7394
7394
  class: I([
7395
7395
  "joy-tooltip__content",
@@ -7414,15 +7414,15 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7414
7414
  D(J(e.text), 1)
7415
7415
  ], !0)
7416
7416
  ], 512)
7417
- ], 14, xs)) : _("", !0)
7417
+ ], 14, Ss)) : _("", !0)
7418
7418
  ]))
7419
- ], 40, Ts)
7419
+ ], 40, $s)
7420
7420
  ];
7421
7421
  }),
7422
7422
  _: 3
7423
7423
  }, 8, ["options"]));
7424
7424
  }
7425
- }), Ku = /* @__PURE__ */ A(Is, [["__scopeId", "data-v-4e623435"]]), Ls = { class: "joy-user-card__picture" }, Bs = { class: "joy-user-card__informations" }, As = { class: "joy-user-card__title" }, Es = { class: "joy-user-card__subtitle" }, zs = /* @__PURE__ */ L({
7425
+ }), Hu = /* @__PURE__ */ A(Cs, [["__scopeId", "data-v-4e623435"]]), Vs = { class: "joy-user-card__picture" }, Ts = { class: "joy-user-card__informations" }, xs = { class: "joy-user-card__title" }, Is = { class: "joy-user-card__subtitle" }, Ls = /* @__PURE__ */ L({
7426
7426
  __name: "VJoyUserCard",
7427
7427
  props: {
7428
7428
  /**
@@ -7455,7 +7455,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7455
7455
  title: e.fullName
7456
7456
  }, t.$attrs), {
7457
7457
  default: z(() => [
7458
- v("div", Ls, [
7458
+ v("div", Vs, [
7459
7459
  w(t.$slots, "user-card-avatar", {}, () => [
7460
7460
  O(an, {
7461
7461
  "photo-url": e.photoUrl,
@@ -7463,19 +7463,19 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7463
7463
  }, null, 8, ["photo-url", "full-name"])
7464
7464
  ], !0)
7465
7465
  ]),
7466
- v("div", Bs, [
7467
- v("p", As, [
7466
+ v("div", Ts, [
7467
+ v("p", xs, [
7468
7468
  w(t.$slots, "user-card-title", {}, () => [
7469
7469
  D(J(e.fullName), 1)
7470
7470
  ], !0)
7471
7471
  ]),
7472
- v("p", Es, [
7472
+ v("p", Is, [
7473
7473
  w(t.$slots, "user-card-subtitle", {}, () => [
7474
7474
  D(J(e.subTitle), 1)
7475
7475
  ], !0)
7476
7476
  ]),
7477
7477
  w(t.$slots, "user-card-rating-stars", {}, () => [
7478
- e.ratingValue ? (c(), T(bi, {
7478
+ e.ratingValue ? (c(), T(mi, {
7479
7479
  key: 0,
7480
7480
  "rating-value": e.ratingValue
7481
7481
  }, null, 8, ["rating-value"])) : _("", !0)
@@ -7488,13 +7488,13 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7488
7488
  _: 3
7489
7489
  }, 16, ["href", "title"]));
7490
7490
  }
7491
- }), Zu = /* @__PURE__ */ A(zs, [["__scopeId", "data-v-86acec3a"]]), Js = { class: "joy-walkthrough-trigger__content" }, Ms = {
7491
+ }), Wu = /* @__PURE__ */ A(Ls, [["__scopeId", "data-v-86acec3a"]]), Bs = { class: "joy-walkthrough-trigger__content" }, As = {
7492
7492
  key: 0,
7493
7493
  class: "joy-pr-3"
7494
- }, Ps = {
7494
+ }, Es = {
7495
7495
  key: 1,
7496
7496
  class: "joy-pl-3"
7497
- }, Fs = /* @__PURE__ */ L({
7497
+ }, zs = /* @__PURE__ */ L({
7498
7498
  __name: "VJoyWalkthroughTrigger",
7499
7499
  props: {
7500
7500
  icon: {},
@@ -7505,7 +7505,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7505
7505
  setup(e) {
7506
7506
  const l = C(e.open);
7507
7507
  return (o, n) => {
7508
- const i = ct("joy-ripple");
7508
+ const r = ct("joy-ripple");
7509
7509
  return Ke((c(), g("button", H(o.$attrs, {
7510
7510
  type: "button",
7511
7511
  class: "joy-walkthrough-trigger joy-bgcolor-neutral-60 joy-core-radius-5",
@@ -7517,9 +7517,9 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7517
7517
  class: "joy-walkthrough-trigger__icon joy-mr-3",
7518
7518
  name: o.icon
7519
7519
  }, null, 8, ["name"])) : _("", !0),
7520
- v("div", Js, [
7521
- o.title ? (c(), g("span", Ms, J(o.title), 1)) : _("", !0),
7522
- o.subtitle ? (c(), g("span", Ps, J(o.subtitle), 1)) : _("", !0)
7520
+ v("div", Bs, [
7521
+ o.title ? (c(), g("span", As, J(o.title), 1)) : _("", !0),
7522
+ o.subtitle ? (c(), g("span", Es, J(o.subtitle), 1)) : _("", !0)
7523
7523
  ]),
7524
7524
  O(R, {
7525
7525
  class: "joy-ml-3",
@@ -7527,20 +7527,20 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7527
7527
  name: l.value ? "chevron-down" : "chevron-up"
7528
7528
  }, null, 8, ["name"])
7529
7529
  ], 16)), [
7530
- [i]
7530
+ [r]
7531
7531
  ]);
7532
7532
  };
7533
7533
  }
7534
- }), Os = /* @__PURE__ */ A(Fs, [["__scopeId", "data-v-56824d11"]]), Ds = { class: "joy-walkthrough-modal__illustration" }, Rs = { class: "joy-walkthrough-modal__content___titles" }, Ns = { class: "joy-walkthrough-modal__content___title" }, qs = { class: "joy-walkthrough-modal__content___subtitle" }, Hs = {
7534
+ }), Js = /* @__PURE__ */ A(zs, [["__scopeId", "data-v-56824d11"]]), Ms = { class: "joy-walkthrough-modal__illustration" }, Ps = { class: "joy-walkthrough-modal__content___titles" }, Fs = { class: "joy-walkthrough-modal__content___title" }, Os = { class: "joy-walkthrough-modal__content___subtitle" }, Ds = {
7535
7535
  key: 0,
7536
7536
  class: "joy-mt-4"
7537
- }, Ws = {
7537
+ }, Rs = {
7538
7538
  key: 1,
7539
7539
  class: "joy-mt-4 joy-walkthrough-modal__content-inner"
7540
- }, Us = {
7540
+ }, Ns = {
7541
7541
  type: "button",
7542
7542
  class: "joy-walkthrough-modal__footer-button joy-color-secondary-50 joy-font-primary-300"
7543
- }, Gs = /* @__PURE__ */ L({
7543
+ }, qs = /* @__PURE__ */ L({
7544
7544
  __name: "VJoyWalkthrough",
7545
7545
  props: {
7546
7546
  open: { type: Boolean, default: !1 },
@@ -7554,8 +7554,8 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7554
7554
  emits: ["hide", "hide:header", "hide:footer"],
7555
7555
  setup(e, { expose: t, emit: l }) {
7556
7556
  const o = e, n = l;
7557
- let i = null;
7558
- const a = C(o.open), r = C(!1);
7557
+ let r = null;
7558
+ const a = C(o.open), i = C(!1);
7559
7559
  function s() {
7560
7560
  a.value ? u() : a.value = !0;
7561
7561
  }
@@ -7566,8 +7566,8 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7566
7566
  u(), n("hide"), n("hide:footer");
7567
7567
  }
7568
7568
  function u() {
7569
- i && clearTimeout(i), r.value = !0, i = setTimeout(() => {
7570
- a.value = !1, r.value = !1;
7569
+ r && clearTimeout(r), i.value = !0, r = setTimeout(() => {
7570
+ a.value = !1, i.value = !1;
7571
7571
  }, 200);
7572
7572
  }
7573
7573
  return K(
@@ -7585,7 +7585,7 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7585
7585
  class: I(["joy-walkthrough joy-core-radius-4", { "joy-walkthrough--collapsed": !a.value }])
7586
7586
  }, [
7587
7587
  a.value ? (c(), g("div", H({ key: 0 }, f.$attrs, {
7588
- 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 }]
7589
7589
  }), [
7590
7590
  O(re, {
7591
7591
  "no-margin": "",
@@ -7624,24 +7624,24 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7624
7624
  wrap: "nowrap"
7625
7625
  }, {
7626
7626
  default: z(() => [
7627
- v("div", Ds, [
7627
+ v("div", Ms, [
7628
7628
  w(f.$slots, "walkthrough-illustration", {}, void 0, !0)
7629
7629
  ]),
7630
- v("div", Rs, [
7631
- v("div", Ns, [
7630
+ v("div", Ps, [
7631
+ v("div", Fs, [
7632
7632
  w(f.$slots, "walkthrough-title", {}, void 0, !0)
7633
7633
  ]),
7634
- v("div", qs, [
7634
+ v("div", Os, [
7635
7635
  w(f.$slots, "walkthrough-subtitle", {}, void 0, !0)
7636
7636
  ])
7637
7637
  ])
7638
7638
  ]),
7639
7639
  _: 3
7640
7640
  }),
7641
- f.$slots["walkthrough-progress"] ? (c(), g("div", Hs, [
7641
+ f.$slots["walkthrough-progress"] ? (c(), g("div", Ds, [
7642
7642
  w(f.$slots, "walkthrough-progress", {}, void 0, !0)
7643
7643
  ])) : _("", !0),
7644
- f.$slots["walkthrough-content"] ? (c(), g("div", Ws, [
7644
+ f.$slots["walkthrough-content"] ? (c(), g("div", Rs, [
7645
7645
  w(f.$slots, "walkthrough-content", {}, void 0, !0)
7646
7646
  ])) : _("", !0)
7647
7647
  ], 2),
@@ -7650,10 +7650,10 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7650
7650
  class: "joy-walkthrough-modal__footer joy-p-6",
7651
7651
  onClick: p
7652
7652
  }, [
7653
- v("button", Us, J(f.footer), 1)
7653
+ v("button", Ns, J(f.footer), 1)
7654
7654
  ])) : _("", !0)
7655
7655
  ], 16)) : _("", !0),
7656
- a.value ? _("", !0) : (c(), T(Os, H({ key: 1 }, f.triggerAttrs, {
7656
+ a.value ? _("", !0) : (c(), T(Js, H({ key: 1 }, f.triggerAttrs, {
7657
7657
  title: f.triggerTitle,
7658
7658
  subtitle: f.triggerSubtitle,
7659
7659
  icon: f.triggerIcon,
@@ -7663,91 +7663,90 @@ const ns = /* @__PURE__ */ A(es, [["render", os], ["__scopeId", "data-v-da63aa46
7663
7663
  ], 2)
7664
7664
  ], 8, ["disabled"]));
7665
7665
  }
7666
- }), Xu = /* @__PURE__ */ A(Gs, [["__scopeId", "data-v-c1a50091"]]), Qu = {
7666
+ }), Uu = /* @__PURE__ */ A(qs, [["__scopeId", "data-v-c1a50091"]]), Gu = {
7667
7667
  install: (e) => {
7668
7668
  typeof window < "u" && Wt(), e.directive("joy-ripple", Rt), e.directive("bind-once", Mo);
7669
7669
  }
7670
7670
  };
7671
7671
  export {
7672
- Qu as JoyVueLightPlugin,
7673
- Xs as VJoyAdminBanner,
7674
- Qs as VJoyAvailability,
7672
+ Gu as JoyVueLightPlugin,
7673
+ Gs as VJoyAdminBanner,
7674
+ Ys as VJoyAvailability,
7675
7675
  an as VJoyAvatar,
7676
- eu as VJoyAvatarsList,
7676
+ Ks as VJoyAvatarsList,
7677
7677
  cn as VJoyBadge,
7678
- tu as VJoyBadgeLevel,
7679
- ou as VJoyBlockSkeleton,
7680
- nu as VJoyBottomSheet,
7681
- lu as VJoyBottomSheetTrigger,
7678
+ Zs as VJoyBadgeLevel,
7679
+ Xs as VJoyBlockSkeleton,
7680
+ Qs as VJoyBottomSheet,
7681
+ eu as VJoyBottomSheetTrigger,
7682
7682
  ne as VJoyButton,
7683
7683
  Kt as VJoyCheckbox,
7684
- au as VJoyCollapse,
7684
+ tu as VJoyCollapse,
7685
7685
  Xn as VJoyCollapseItem,
7686
- ru as VJoyCompanyAvatar,
7687
- iu as VJoyCounter,
7688
- su as VJoyDialog,
7689
- uu as VJoyDialogTrigger,
7686
+ ou as VJoyCompanyAvatar,
7687
+ nu as VJoyCounter,
7688
+ lu as VJoyDialog,
7689
+ au as VJoyDialogTrigger,
7690
7690
  Ct as VJoyDot,
7691
- du as VJoyDrawer,
7692
- cu as VJoyDrawerTrigger,
7693
- fu as VJoyDropdown,
7691
+ ru as VJoyDrawer,
7692
+ iu as VJoyDrawerTrigger,
7693
+ su as VJoyDropdown,
7694
7694
  Pl as VJoyDropdownList,
7695
- pu as VJoyDropzone,
7696
- yu as VJoyFilterBar,
7697
- mu as VJoyFilterBarButton,
7695
+ uu as VJoyDropzone,
7696
+ du as VJoyFilterBar,
7697
+ cu as VJoyFilterBarButton,
7698
7698
  tt as VJoyFormError,
7699
- vu as VJoyFormFieldSkeleton,
7700
- hu as VJoyFunnel,
7701
- gu as VJoyFunnelFooter,
7702
- bu as VJoyFunnelHeader,
7703
- wu as VJoyHeader,
7704
- _u as VJoyHighlight,
7699
+ fu as VJoyFormFieldSkeleton,
7700
+ pu as VJoyFunnel,
7701
+ yu as VJoyFunnelFooter,
7702
+ mu as VJoyFunnelHeader,
7703
+ vu as VJoyHighlight,
7705
7704
  R as VJoyIcon,
7706
- Ca as VJoyIndicator,
7707
- ju as VJoyIndicators,
7708
- ku as VJoyInput,
7705
+ ja as VJoyIndicator,
7706
+ hu as VJoyIndicators,
7707
+ gu as VJoyInput,
7709
7708
  Ve as VJoyLabel,
7710
- $u as VJoyLink,
7711
- Su as VJoyListItem,
7712
- Cu as VJoyMenu,
7713
- Vu as VJoyMenuItem,
7714
- Tu as VJoyMultiCheckbox,
7715
- xu as VJoyPagination,
7716
- Iu as VJoyPanel,
7717
- Lu as VJoyPanelSection,
7718
- Bu as VJoyProductTour,
7719
- Au as VJoyProductTourTrigger,
7720
- Eu as VJoyProgressBar,
7721
- zu as VJoyRadio,
7722
- Ju as VJoyRadioGroup,
7723
- bi as VJoyRatingStars,
7709
+ bu as VJoyLink,
7710
+ wu as VJoyListItem,
7711
+ _u as VJoyMenu,
7712
+ ju as VJoyMenuItem,
7713
+ ku as VJoyMultiCheckbox,
7714
+ $u as VJoyPagination,
7715
+ Su as VJoyPanel,
7716
+ Cu as VJoyPanelSection,
7717
+ Vu as VJoyProductTour,
7718
+ Tu as VJoyProductTourTrigger,
7719
+ xu as VJoyProgressBar,
7720
+ Iu as VJoyRadio,
7721
+ Lu as VJoyRadioGroup,
7722
+ mi as VJoyRatingStars,
7724
7723
  Xt as VJoyScreenLoader,
7725
- Mu as VJoySelect,
7726
- Vi as VJoySelectableItem,
7727
- Pu as VJoySelectableItemGroup,
7728
- Fu as VJoySeparator,
7724
+ Bu as VJoySelect,
7725
+ ki as VJoySelectableItem,
7726
+ Au as VJoySelectableItemGroup,
7727
+ Eu as VJoySeparator,
7729
7728
  Ho as VJoySnackbar,
7730
7729
  Ut as VJoySpinner,
7731
- zi as VJoyStep,
7732
- Ou as VJoyStepper,
7733
- Du as VJoyTab,
7734
- Ru as VJoyTabs,
7730
+ Li as VJoyStep,
7731
+ zu as VJoyStepper,
7732
+ Ju as VJoyTab,
7733
+ Mu as VJoyTabs,
7735
7734
  go as VJoyTag,
7736
- Nu as VJoyTagsInput,
7737
- qu as VJoyTagsList,
7738
- Hu as VJoyTemplate,
7739
- ns as VJoyTemplateShape,
7740
- Wu as VJoyText,
7741
- Uu as VJoyTextarea,
7742
- Gu as VJoyTitleBrand,
7743
- Yu as VJoyToggle,
7744
- Ku as VJoyTooltip,
7745
- Zu as VJoyUserCard,
7746
- Xu as VJoyWalkthrough,
7747
- Os as VJoyWalkthroughTrigger,
7735
+ Pu as VJoyTagsInput,
7736
+ Fu as VJoyTagsList,
7737
+ Ou as VJoyTemplate,
7738
+ Qi as VJoyTemplateShape,
7739
+ Du as VJoyText,
7740
+ Ru as VJoyTextarea,
7741
+ Nu as VJoyTitleBrand,
7742
+ qu as VJoyToggle,
7743
+ Hu as VJoyTooltip,
7744
+ Wu as VJoyUserCard,
7745
+ Uu as VJoyWalkthrough,
7746
+ Js as VJoyWalkthroughTrigger,
7748
7747
  re as VJoyWrapper,
7749
7748
  Wt as createAllSnackbarsContainer,
7750
- Zs as pushVJoySnackbar,
7751
- Ks as resetCount,
7749
+ Us as pushVJoySnackbar,
7750
+ Ws as resetCount,
7752
7751
  Rt as vJoyRipple
7753
7752
  };