@maltjoy/core-vue 3.9.0 → 3.9.2

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/joy-vue.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as $, openBlock as m, createElementBlock as p, normalizeClass as w, renderSlot as h, createTextVNode as C, toDisplayString as I, createElementVNode as b, useAttrs as Me, computed as L, createBlock as x, resolveDynamicComponent as ce, unref as k, withCtx as B, createCommentVNode as _, ref as g, createVNode as N, mergeProps as Y, getCurrentScope as nt, onScopeDispose as at, getCurrentInstance as it, onMounted as X, nextTick as Ne, watch as J, h as rt, reactive as te, onBeforeUnmount as He, normalizeStyle as Z, Fragment as fe, renderList as ye, normalizeProps as ve, guardReactiveProps as me, Teleport as st, createSlots as We, useSlots as G, onBeforeMount as ut, inject as dt, provide as ct, pushScopeId as ft, popScopeId as yt } from "vue";
2
- const vt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], mt = /* @__PURE__ */ $({
1
+ import { defineComponent as V, openBlock as m, createElementBlock as p, normalizeClass as w, renderSlot as h, createTextVNode as C, toDisplayString as I, createElementVNode as b, useAttrs as Me, computed as B, createBlock as O, resolveDynamicComponent as fe, unref as $, withCtx as E, createCommentVNode as _, ref as g, createVNode as M, mergeProps as ee, getCurrentScope as at, onScopeDispose as it, getCurrentInstance as rt, onMounted as K, nextTick as Ne, watch as L, h as st, reactive as ne, onBeforeUnmount as He, normalizeStyle as X, Fragment as ye, renderList as ve, normalizeProps as me, guardReactiveProps as pe, Teleport as ut, createSlots as We, useSlots as Q, onBeforeMount as dt, inject as ct, provide as ft, pushScopeId as yt, popScopeId as vt } from "vue";
2
+ const mt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], pt = /* @__PURE__ */ V({
3
3
  __name: "VJoyBadge",
4
4
  props: {
5
5
  /**
@@ -22,43 +22,43 @@ const vt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue
22
22
  variant: {
23
23
  type: String,
24
24
  validator(e) {
25
- return vt.includes(e);
25
+ return mt.includes(e);
26
26
  }
27
27
  }
28
28
  },
29
29
  setup(e) {
30
- return (l, t) => (m(), p("span", {
30
+ return (t, l) => (m(), p("span", {
31
31
  class: w(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
32
32
  role: "status"
33
33
  }, [
34
- h(l.$slots, "default", {}, () => [
34
+ h(t.$slots, "default", {}, () => [
35
35
  C(I(e.label), 1)
36
36
  ], !0)
37
37
  ], 2));
38
38
  }
39
39
  });
40
- const V = (e, l) => {
41
- const t = e.__vccOpts || e;
42
- for (const [o, n] of l)
43
- t[o] = n;
44
- return t;
45
- }, pt = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-1ed08e27"]]), ht = ["teal", "white"], gt = /* @__PURE__ */ $({
40
+ const x = (e, t) => {
41
+ const l = e.__vccOpts || e;
42
+ for (const [o, n] of t)
43
+ l[o] = n;
44
+ return l;
45
+ }, ht = /* @__PURE__ */ x(pt, [["__scopeId", "data-v-1ed08e27"]]), gt = ["teal", "white"], bt = /* @__PURE__ */ V({
46
46
  __name: "VJoySpinner",
47
47
  props: {
48
48
  color: {
49
49
  type: String,
50
50
  validator(e) {
51
- return ht.includes(e);
51
+ return gt.includes(e);
52
52
  }
53
53
  }
54
54
  },
55
55
  setup(e) {
56
- return (l, t) => (m(), p("div", {
56
+ return (t, l) => (m(), p("div", {
57
57
  class: w(["joy-spinner", `joy-spinner_${e.color}`])
58
58
  }, null, 2));
59
59
  }
60
60
  });
61
- const pe = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-616a29d0"]]), R = /* @__PURE__ */ $({
61
+ const he = /* @__PURE__ */ x(bt, [["__scopeId", "data-v-616a29d0"]]), F = /* @__PURE__ */ V({
62
62
  __name: "VJoyIcon",
63
63
  props: {
64
64
  name: {
@@ -75,7 +75,7 @@ const pe = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-616a29d0"]]), R = /* @__
75
75
  }
76
76
  },
77
77
  setup(e) {
78
- return (l, t) => (m(), p("span", {
78
+ return (t, l) => (m(), p("span", {
79
79
  class: w(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
80
80
  }, [
81
81
  b("i", {
@@ -84,7 +84,7 @@ const pe = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-616a29d0"]]), R = /* @__
84
84
  ], 2));
85
85
  }
86
86
  });
87
- const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warning", "error"], wt = ["main", "admin", "ghost", "white"], St = [...bt, ...wt], jt = ["large", "medium", "small", "xsmall", "xxsmall"], kt = { class: "joy-button--slot" }, $t = /* @__PURE__ */ $({
87
+ const _t = ["primary", "secondary"], wt = ["neutral", "success", "info", "warning", "error"], St = ["main", "admin", "ghost", "white"], jt = [..._t, ...St], kt = ["large", "medium", "small", "xsmall", "xxsmall"], $t = { class: "joy-button--slot" }, Vt = /* @__PURE__ */ V({
88
88
  __name: "VJoyButton",
89
89
  props: {
90
90
  /**
@@ -120,7 +120,7 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
120
120
  type: String,
121
121
  default: "primary",
122
122
  validator(e) {
123
- return St.includes(e);
123
+ return jt.includes(e);
124
124
  }
125
125
  },
126
126
  /** Button or Link size */
@@ -128,13 +128,13 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
128
128
  type: String,
129
129
  default: "medium",
130
130
  validator(e) {
131
- return jt.includes(e);
131
+ return kt.includes(e);
132
132
  }
133
133
  }
134
134
  },
135
135
  setup(e) {
136
- const l = e, t = Me(), o = L(() => {
137
- switch (l.size) {
136
+ const t = e, l = Me(), o = B(() => {
137
+ switch (t.size) {
138
138
  case "xxsmall":
139
139
  return "xxsmall";
140
140
  case "xsmall":
@@ -144,10 +144,10 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
144
144
  default:
145
145
  return "small";
146
146
  }
147
- }), n = L(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
148
- return (r, s) => (m(), x(ce(k(t).href ? "a" : "button"), {
149
- disabled: e.loading || k(t).disabled,
150
- type: k(t).type || "button",
147
+ }), n = B(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
148
+ return (r, s) => (m(), O(fe($(l).href ? "a" : "button"), {
149
+ disabled: e.loading || $(l).disabled,
150
+ type: $(l).type || "button",
151
151
  class: w([
152
152
  "joy-button",
153
153
  `joy-button_${e.variant}`,
@@ -158,23 +158,23 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
158
158
  }
159
159
  ])
160
160
  }, {
161
- default: B(() => [
162
- e.icon && e.iconPosition === "left" ? (m(), x(R, {
161
+ default: E(() => [
162
+ e.icon && e.iconPosition === "left" ? (m(), O(F, {
163
163
  key: 0,
164
164
  class: "joy-button_icon joy-button_icon--left",
165
165
  name: e.icon,
166
166
  size: o.value
167
167
  }, null, 8, ["name", "size"])) : _("", !0),
168
- e.loading ? (m(), x(pe, {
168
+ e.loading ? (m(), O(he, {
169
169
  key: 1,
170
170
  color: n.value
171
171
  }, null, 8, ["color"])) : _("", !0),
172
- b("span", kt, [
172
+ b("span", $t, [
173
173
  h(r.$slots, "default", {}, () => [
174
174
  C(I(e.label), 1)
175
175
  ], !0)
176
176
  ]),
177
- e.icon && e.iconPosition === "right" ? (m(), x(R, {
177
+ e.icon && e.iconPosition === "right" ? (m(), O(F, {
178
178
  key: 2,
179
179
  class: "joy-button_icon joy-button_icon--right",
180
180
  name: e.icon,
@@ -185,7 +185,7 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
185
185
  }, 8, ["disabled", "type", "class"]));
186
186
  }
187
187
  });
188
- const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["aria-checked", "aria-hidden"], xt = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, Bt = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ $({
188
+ const Ue = /* @__PURE__ */ x(Vt, [["__scopeId", "data-v-ae0676bb"]]), xt = ["aria-checked", "aria-hidden"], Ot = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Bt = { class: "joy-checkbox__content-wrapper" }, Et = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ V({
189
189
  __name: "VJoyCheckbox",
190
190
  props: {
191
191
  /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
@@ -239,20 +239,20 @@ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
239
239
  }
240
240
  },
241
241
  emits: ["update:checked", "focus", "blur"],
242
- setup(e, { expose: l, emit: t }) {
243
- const o = e, n = g(), r = g(o.indeterminate), s = g(o.invalid), i = g(!1), c = {
242
+ setup(e, { expose: t, emit: l }) {
243
+ const o = e, n = g(), r = g(o.indeterminate), s = g(o.invalid), a = g(!1), f = {
244
244
  onChange: (y) => {
245
245
  const u = y.target.checked;
246
- r.value = !1, s.value = !1, t("update:checked", u);
246
+ r.value = !1, s.value = !1, l("update:checked", u);
247
247
  },
248
248
  onFocus: () => {
249
- i.value = !0, t("focus");
249
+ a.value = !0, l("focus");
250
250
  },
251
251
  onBlur: () => {
252
- i.value = !1, t("blur");
252
+ a.value = !1, l("blur");
253
253
  }
254
254
  };
255
- return l({
255
+ return t({
256
256
  isIndeterminate: r
257
257
  }), (y, u) => (m(), p("div", {
258
258
  class: "joy-checkbox__wrapper",
@@ -267,11 +267,11 @@ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
267
267
  "joy-checkbox__indeterminate": r.value,
268
268
  "joy-checkbox__disabled": e.disabled,
269
269
  "joy-checkbox__invalid": s.value,
270
- "joy-checkbox__focusing": i.value && e.displayFocus
270
+ "joy-checkbox__focusing": a.value && e.displayFocus
271
271
  }
272
272
  ])
273
273
  }, [
274
- b("div", xt, [
274
+ b("div", Ot, [
275
275
  b("input", {
276
276
  id: e.id,
277
277
  ref_key: "input",
@@ -287,32 +287,32 @@ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
287
287
  value: e.value,
288
288
  indeterminate: r.value,
289
289
  onChange: u[0] || (u[0] = //@ts-ignore
290
- (...v) => c.onChange && c.onChange(...v)),
290
+ (...v) => f.onChange && f.onChange(...v)),
291
291
  onFocus: u[1] || (u[1] = //@ts-ignore
292
- (...v) => c.onFocus && c.onFocus(...v)),
292
+ (...v) => f.onFocus && f.onFocus(...v)),
293
293
  onBlur: u[2] || (u[2] = //@ts-ignore
294
- (...v) => c.onBlur && c.onBlur(...v))
294
+ (...v) => f.onBlur && f.onBlur(...v))
295
295
  }, null, 40, It)
296
296
  ]),
297
- b("div", Ot, [
297
+ b("div", Bt, [
298
298
  h(y.$slots, "default", {}, () => [
299
299
  C(I(e.label), 1)
300
300
  ], !0),
301
- b("div", Bt, [
301
+ b("div", Et, [
302
302
  h(y.$slots, "checkbox-content", {}, void 0, !0)
303
303
  ])
304
304
  ])
305
305
  ], 2)
306
- ], 8, Vt));
306
+ ], 8, xt));
307
307
  }
308
308
  });
309
- const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Et = { class: "joy-counter" }, Ct = ["aria-label", "disabled"], Jt = { class: "joy-counter__input-wrapper" }, Pt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], qt = ["aria-label", "disabled"], Tt = {
309
+ const ge = /* @__PURE__ */ x(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Ct = { class: "joy-counter" }, Jt = ["aria-label", "disabled"], Pt = { class: "joy-counter__input-wrapper" }, Tt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], qt = ["aria-label", "disabled"], zt = {
310
310
  key: 0,
311
311
  class: "joy-counter_error"
312
- }, zt = {
312
+ }, At = {
313
313
  inheritAttrs: !1
314
- }, At = /* @__PURE__ */ $({
315
- ...zt,
314
+ }, Ft = /* @__PURE__ */ V({
315
+ ...At,
316
316
  __name: "VJoyCounter",
317
317
  props: {
318
318
  /** Removes any interactivity */
@@ -378,54 +378,54 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Et = { cla
378
378
  }
379
379
  },
380
380
  emits: ["update:modelValue"],
381
- setup(e, { expose: l, emit: t }) {
381
+ setup(e, { expose: t, emit: l }) {
382
382
  const o = e, n = g(!1), r = g(!1);
383
383
  function s() {
384
384
  const d = y(!1);
385
- d >= 0 ? t("update:modelValue", d <= o.min ? o.min : d) : t("update:modelValue", 0), c();
385
+ d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), f();
386
386
  }
387
- function i() {
387
+ function a() {
388
388
  const d = y();
389
- o.max && d <= o.max ? t("update:modelValue", d >= o.max ? o.max : d) : o.max && d > o.max ? t("update:modelValue", o.max) : t("update:modelValue", d), c();
389
+ o.max && d <= o.max ? l("update:modelValue", d >= o.max ? o.max : d) : o.max && d > o.max ? l("update:modelValue", o.max) : l("update:modelValue", d), f();
390
390
  }
391
- function c() {
391
+ function f() {
392
392
  n.value = !u();
393
393
  }
394
394
  function y(d = !0) {
395
- const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
396
- return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
395
+ const S = o.step.toString().split("."), j = S.length === 2 ? S[1].length : 0;
396
+ return parseFloat(d ? (o.modelValue + o.step).toFixed(j) : (o.modelValue - o.step).toFixed(j));
397
397
  }
398
398
  function u() {
399
- return v() && a();
399
+ return v() && i();
400
400
  }
401
401
  function v() {
402
402
  return !o.max || o.modelValue <= o.max;
403
403
  }
404
- function a() {
404
+ function i() {
405
405
  return o.min <= o.modelValue;
406
406
  }
407
- const f = {
407
+ const c = {
408
408
  onInput: (d) => {
409
- t("update:modelValue", +d.target.value || 0), n.value = !1;
409
+ l("update:modelValue", +d.target.value || 0), n.value = !1;
410
410
  },
411
411
  onFocus: () => {
412
412
  r.value = !0;
413
413
  },
414
414
  onBlur: () => {
415
- r.value = !1, c();
415
+ r.value = !1, f();
416
416
  }
417
417
  };
418
- return l({
418
+ return t({
419
419
  props: o
420
- }), (d, j) => (m(), p("div", Et, [
421
- e.label ? (m(), x(k(W), {
420
+ }), (d, S) => (m(), p("div", Ct, [
421
+ e.label ? (m(), O($(W), {
422
422
  key: 0,
423
423
  for: e.id,
424
424
  required: e.required && e.requiredMark,
425
425
  "optional-label": e.optionalLabel,
426
426
  size: e.labelSize
427
427
  }, {
428
- default: B(() => [
428
+ default: E(() => [
429
429
  h(d.$slots, "default", {}, () => [
430
430
  C(I(e.label), 1)
431
431
  ], !0)
@@ -442,10 +442,10 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Et = { cla
442
442
  disabled: e.modelValue <= e.min,
443
443
  onClick: s
444
444
  }, [
445
- N(k(R), { name: "minus" })
446
- ], 8, Ct),
447
- b("div", Jt, [
448
- b("input", Y({
445
+ M($(F), { name: "minus" })
446
+ ], 8, Jt),
447
+ b("div", Pt, [
448
+ b("input", ee({
449
449
  id: e.id,
450
450
  ref: "input",
451
451
  type: "number",
@@ -458,186 +458,186 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-27cc9d8c"]]), Et = { cla
458
458
  step: "any",
459
459
  value: e.modelValue
460
460
  }, d.$attrs, {
461
- onInput: j[0] || (j[0] = //@ts-ignore
462
- (...S) => f.onInput && f.onInput(...S)),
463
- onBlur: j[1] || (j[1] = //@ts-ignore
464
- (...S) => f.onBlur && f.onBlur(...S)),
465
- onFocus: j[2] || (j[2] = //@ts-ignore
466
- (...S) => f.onFocus && f.onFocus(...S))
467
- }), null, 16, Pt)
461
+ onInput: S[0] || (S[0] = //@ts-ignore
462
+ (...j) => c.onInput && c.onInput(...j)),
463
+ onBlur: S[1] || (S[1] = //@ts-ignore
464
+ (...j) => c.onBlur && c.onBlur(...j)),
465
+ onFocus: S[2] || (S[2] = //@ts-ignore
466
+ (...j) => c.onFocus && c.onFocus(...j))
467
+ }), null, 16, Tt)
468
468
  ]),
469
469
  b("button", {
470
470
  class: "joy-counter__increment",
471
471
  type: "button",
472
472
  "aria-label": e.labelIncrement,
473
473
  disabled: e.max ? e.modelValue >= e.max : !1,
474
- onClick: i
474
+ onClick: a
475
475
  }, [
476
- N(k(R), { name: "add" })
476
+ M($(F), { name: "add" })
477
477
  ], 8, qt),
478
- e.invalid && e.errorMessage ? (m(), p("div", Tt, [
479
- N(k(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
478
+ e.invalid && e.errorMessage ? (m(), p("div", zt, [
479
+ M($(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
480
480
  ])) : _("", !0)
481
481
  ], 2)
482
482
  ]));
483
483
  }
484
484
  });
485
- const Ft = /* @__PURE__ */ V(At, [["__scopeId", "data-v-a59ac0ad"]]);
485
+ const Dt = /* @__PURE__ */ x(Ft, [["__scopeId", "data-v-a59ac0ad"]]);
486
486
  var we;
487
- const K = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
488
- }, le = K && ((we = window == null ? void 0 : window.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
489
- function P(e) {
490
- return typeof e == "function" ? e() : k(e);
487
+ const Y = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
488
+ }, ae = Y && ((we = window == null ? void 0 : window.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
489
+ function T(e) {
490
+ return typeof e == "function" ? e() : $(e);
491
491
  }
492
- function Ke(e, l) {
493
- function t(...o) {
492
+ function Ke(e, t) {
493
+ function l(...o) {
494
494
  return new Promise((n, r) => {
495
- Promise.resolve(e(() => l.apply(this, o), { fn: l, thisArg: this, args: o })).then(n).catch(r);
495
+ Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
496
496
  });
497
497
  }
498
- return t;
498
+ return l;
499
499
  }
500
- function Dt(e, l = {}) {
501
- let t, o, n = z;
502
- const r = (i) => {
503
- clearTimeout(i), n(), n = z;
500
+ function Rt(e, t = {}) {
501
+ let l, o, n = z;
502
+ const r = (a) => {
503
+ clearTimeout(a), n(), n = z;
504
504
  };
505
- return (i) => {
506
- const c = P(e), y = P(l.maxWait);
507
- return t && r(t), c <= 0 || y !== void 0 && y <= 0 ? (o && (r(o), o = null), Promise.resolve(i())) : new Promise((u, v) => {
508
- n = l.rejectOnCancel ? v : u, y && !o && (o = setTimeout(() => {
509
- t && r(t), o = null, u(i());
510
- }, y)), t = setTimeout(() => {
511
- o && r(o), o = null, u(i());
512
- }, c);
505
+ return (a) => {
506
+ const f = T(e), y = T(t.maxWait);
507
+ return l && r(l), f <= 0 || y !== void 0 && y <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
508
+ n = t.rejectOnCancel ? v : u, y && !o && (o = setTimeout(() => {
509
+ l && r(l), o = null, u(a());
510
+ }, y)), l = setTimeout(() => {
511
+ o && r(o), o = null, u(a());
512
+ }, f);
513
513
  });
514
514
  };
515
515
  }
516
- function Rt(e, l = !0, t = !0, o = !1) {
517
- let n = 0, r, s = !0, i = z, c;
516
+ function Mt(e, t = !0, l = !0, o = !1) {
517
+ let n = 0, r, s = !0, a = z, f;
518
518
  const y = () => {
519
- r && (clearTimeout(r), r = void 0, i(), i = z);
519
+ r && (clearTimeout(r), r = void 0, a(), a = z);
520
520
  };
521
521
  return (v) => {
522
- const a = P(e), f = Date.now() - n, d = () => c = v();
523
- return y(), a <= 0 ? (n = Date.now(), d()) : (f > a && (t || !s) ? (n = Date.now(), d()) : l && (c = new Promise((j, S) => {
524
- i = o ? S : j, r = setTimeout(() => {
525
- n = Date.now(), s = !0, j(d()), y();
526
- }, Math.max(0, a - f));
527
- })), !t && !r && (r = setTimeout(() => s = !0, a)), s = !1, c);
522
+ const i = T(e), c = Date.now() - n, d = () => f = v();
523
+ return y(), i <= 0 ? (n = Date.now(), d()) : (c > i && (l || !s) ? (n = Date.now(), d()) : t && (f = new Promise((S, j) => {
524
+ a = o ? j : S, r = setTimeout(() => {
525
+ n = Date.now(), s = !0, S(d()), y();
526
+ }, Math.max(0, i - c));
527
+ })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, f);
528
528
  };
529
529
  }
530
- const M = {
530
+ const R = {
531
531
  mounted: "mounted",
532
532
  updated: "updated",
533
533
  unmounted: "unmounted"
534
534
  };
535
- function Mt(e) {
535
+ function Nt(e) {
536
536
  return e;
537
537
  }
538
- function Q(e) {
539
- return nt() ? (at(e), !0) : !1;
538
+ function Z(e) {
539
+ return at() ? (it(e), !0) : !1;
540
540
  }
541
- function Nt(e, l = 200, t = {}) {
542
- return Ke(Dt(l, t), e);
541
+ function Ht(e, t = 200, l = {}) {
542
+ return Ke(Rt(t, l), e);
543
543
  }
544
- function Ht(e, l = 200, t = !1, o = !0, n = !1) {
545
- return Ke(Rt(l, t, o, n), e);
544
+ function Wt(e, t = 200, l = !1, o = !0, n = !1) {
545
+ return Ke(Mt(t, l, o, n), e);
546
546
  }
547
- function Wt(e) {
548
- return typeof e == "function" ? L(e) : g(e);
547
+ function Ut(e) {
548
+ return typeof e == "function" ? B(e) : g(e);
549
549
  }
550
- function Qe(e, l = !0) {
551
- it() ? X(e) : l ? e() : Ne(e);
550
+ function Qe(e, t = !0) {
551
+ rt() ? K(e) : t ? e() : Ne(e);
552
552
  }
553
- function U(e) {
554
- var l;
555
- const t = P(e);
556
- return (l = t == null ? void 0 : t.$el) != null ? l : t;
553
+ function G(e) {
554
+ var t;
555
+ const l = T(e);
556
+ return (t = l == null ? void 0 : l.$el) != null ? t : l;
557
557
  }
558
- const ge = K ? window : void 0;
559
- K && window.document;
560
- K && window.navigator;
561
- K && window.location;
562
- function ae(...e) {
563
- let l, t, o, n;
564
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([t, o, n] = e, l = ge) : [l, t, o, n] = e, !l)
558
+ const be = Y ? window : void 0;
559
+ Y && window.document;
560
+ Y && window.navigator;
561
+ Y && window.location;
562
+ function ie(...e) {
563
+ let t, l, o, n;
564
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
565
565
  return z;
566
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
566
+ Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
567
567
  const r = [], s = () => {
568
568
  r.forEach((u) => u()), r.length = 0;
569
- }, i = (u, v, a, f) => (u.addEventListener(v, a, f), () => u.removeEventListener(v, a, f)), c = J(() => [U(l), P(n)], ([u, v]) => {
570
- s(), u && r.push(...t.flatMap((a) => o.map((f) => i(u, a, f, v))));
569
+ }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), f = L(() => [G(t), T(n)], ([u, v]) => {
570
+ s(), u && r.push(...l.flatMap((i) => o.map((c) => a(u, i, c, v))));
571
571
  }, { immediate: !0, flush: "post" }), y = () => {
572
- c(), s();
572
+ f(), s();
573
573
  };
574
- return Q(y), y;
574
+ return Z(y), y;
575
575
  }
576
576
  let Se = !1;
577
- function Ut(e, l, t = {}) {
578
- const { window: o = ge, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = t;
577
+ function Gt(e, t, l = {}) {
578
+ const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
579
579
  if (!o)
580
580
  return;
581
- le && !Se && (Se = !0, Array.from(o.document.body.children).forEach((a) => a.addEventListener("click", z)));
582
- let i = !0;
583
- const c = (a) => n.some((f) => {
584
- if (typeof f == "string")
585
- return Array.from(o.document.querySelectorAll(f)).some((d) => d === a.target || a.composedPath().includes(d));
581
+ ae && !Se && (Se = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
582
+ let a = !0;
583
+ const f = (i) => n.some((c) => {
584
+ if (typeof c == "string")
585
+ return Array.from(o.document.querySelectorAll(c)).some((d) => d === i.target || i.composedPath().includes(d));
586
586
  {
587
- const d = U(f);
588
- return d && (a.target === d || a.composedPath().includes(d));
587
+ const d = G(c);
588
+ return d && (i.target === d || i.composedPath().includes(d));
589
589
  }
590
590
  }), u = [
591
- ae(o, "click", (a) => {
592
- const f = U(e);
593
- if (!(!f || f === a.target || a.composedPath().includes(f))) {
594
- if (a.detail === 0 && (i = !c(a)), !i) {
595
- i = !0;
591
+ ie(o, "click", (i) => {
592
+ const c = G(e);
593
+ if (!(!c || c === i.target || i.composedPath().includes(c))) {
594
+ if (i.detail === 0 && (a = !f(i)), !a) {
595
+ a = !0;
596
596
  return;
597
597
  }
598
- l(a);
598
+ t(i);
599
599
  }
600
600
  }, { passive: !0, capture: r }),
601
- ae(o, "pointerdown", (a) => {
602
- const f = U(e);
603
- f && (i = !a.composedPath().includes(f) && !c(a));
601
+ ie(o, "pointerdown", (i) => {
602
+ const c = G(e);
603
+ c && (a = !i.composedPath().includes(c) && !f(i));
604
604
  }, { passive: !0 }),
605
- s && ae(o, "blur", (a) => {
606
- var f;
607
- const d = U(e);
608
- ((f = o.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && l(a);
605
+ s && ie(o, "blur", (i) => {
606
+ var c;
607
+ const d = G(e);
608
+ ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
609
609
  })
610
610
  ].filter(Boolean);
611
- return () => u.forEach((a) => a());
611
+ return () => u.forEach((i) => i());
612
612
  }
613
- function Gt(e, l = !1) {
614
- const t = g(), o = () => t.value = Boolean(e());
615
- return o(), Qe(o, l), t;
613
+ function Kt(e, t = !1) {
614
+ const l = g(), o = () => l.value = Boolean(e());
615
+ return o(), Qe(o, t), l;
616
616
  }
617
- const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
618
- ie[re] = ie[re] || {};
619
- ie[re];
620
- var je = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, Qt = Object.prototype.propertyIsEnumerable, Zt = (e, l) => {
621
- var t = {};
617
+ const re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, se = "__vueuse_ssr_handlers__";
618
+ re[se] = re[se] || {};
619
+ re[se];
620
+ var je = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Zt = (e, t) => {
621
+ var l = {};
622
622
  for (var o in e)
623
- Kt.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
623
+ Qt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
624
624
  if (e != null && je)
625
625
  for (var o of je(e))
626
- l.indexOf(o) < 0 && Qt.call(e, o) && (t[o] = e[o]);
627
- return t;
626
+ t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
627
+ return l;
628
628
  };
629
- function Yt(e, l, t = {}) {
630
- const o = t, { window: n = ge } = o, r = Zt(o, ["window"]);
629
+ function Xt(e, t, l = {}) {
630
+ const o = l, { window: n = be } = o, r = Zt(o, ["window"]);
631
631
  let s;
632
- const i = Gt(() => n && "ResizeObserver" in n), c = () => {
632
+ const a = Kt(() => n && "ResizeObserver" in n), f = () => {
633
633
  s && (s.disconnect(), s = void 0);
634
- }, y = J(() => U(e), (v) => {
635
- c(), i.value && n && v && (s = new ResizeObserver(l), s.observe(v, r));
634
+ }, y = L(() => G(e), (v) => {
635
+ f(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
636
636
  }, { immediate: !0, flush: "post" }), u = () => {
637
- c(), y();
637
+ f(), y();
638
638
  };
639
- return Q(u), {
640
- isSupported: i,
639
+ return Z(u), {
640
+ isSupported: a,
641
641
  stop: u
642
642
  };
643
643
  }
@@ -645,27 +645,27 @@ var ke;
645
645
  (function(e) {
646
646
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
647
647
  })(ke || (ke = {}));
648
- function Xt(e) {
649
- const l = g(e == null ? void 0 : e.element), t = g(e == null ? void 0 : e.input);
648
+ function el(e) {
649
+ const t = g(e == null ? void 0 : e.element), l = g(e == null ? void 0 : e.input);
650
650
  function o() {
651
651
  var n, r;
652
- l.value && (l.value.style.height = "1px", l.value.style.height = `${(n = l.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
652
+ t.value && (t.value.style.height = "1px", t.value.style.height = `${(n = t.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
653
653
  }
654
- return J([t, l], o, { immediate: !0 }), Yt(l, () => o()), e != null && e.watch && J(e.watch, o, { immediate: !0, deep: !0 }), {
655
- textarea: l,
656
- input: t,
654
+ return L([l, t], o, { immediate: !0 }), Xt(t, () => o()), e != null && e.watch && L(e.watch, o, { immediate: !0, deep: !0 }), {
655
+ textarea: t,
656
+ input: l,
657
657
  triggerResize: o
658
658
  };
659
659
  }
660
- var el = Object.defineProperty, $e = Object.getOwnPropertySymbols, tl = Object.prototype.hasOwnProperty, ll = Object.prototype.propertyIsEnumerable, Ve = (e, l, t) => l in e ? el(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ol = (e, l) => {
661
- for (var t in l || (l = {}))
662
- tl.call(l, t) && Ve(e, t, l[t]);
660
+ var tl = Object.defineProperty, $e = Object.getOwnPropertySymbols, ll = Object.prototype.hasOwnProperty, ol = Object.prototype.propertyIsEnumerable, Ve = (e, t, l) => t in e ? tl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, nl = (e, t) => {
661
+ for (var l in t || (t = {}))
662
+ ll.call(t, l) && Ve(e, l, t[l]);
663
663
  if ($e)
664
- for (var t of $e(l))
665
- ll.call(l, t) && Ve(e, t, l[t]);
664
+ for (var l of $e(t))
665
+ ol.call(t, l) && Ve(e, l, t[l]);
666
666
  return e;
667
667
  };
668
- const nl = {
668
+ const al = {
669
669
  easeInSine: [0.12, 0, 0.39, 0],
670
670
  easeOutSine: [0.61, 1, 0.88, 1],
671
671
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -691,207 +691,207 @@ const nl = {
691
691
  easeOutBack: [0.34, 1.56, 0.64, 1],
692
692
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
693
693
  };
694
- ol({
695
- linear: Mt
696
- }, nl);
697
- const al = /* @__PURE__ */ $({
694
+ nl({
695
+ linear: Nt
696
+ }, al);
697
+ const il = /* @__PURE__ */ V({
698
698
  name: "OnClickOutside",
699
699
  props: ["as", "options"],
700
700
  emits: ["trigger"],
701
- setup(e, { slots: l, emit: t }) {
701
+ setup(e, { slots: t, emit: l }) {
702
702
  const o = g();
703
- return Ut(o, (n) => {
704
- t("trigger", n);
703
+ return Gt(o, (n) => {
704
+ l("trigger", n);
705
705
  }, e.options), () => {
706
- if (l.default)
707
- return rt(e.as || "div", { ref: o }, l.default());
706
+ if (t.default)
707
+ return st(e.as || "div", { ref: o }, t.default());
708
708
  };
709
709
  }
710
710
  });
711
711
  function q(e) {
712
- var l;
713
- const t = P(e);
714
- return (l = t == null ? void 0 : t.$el) != null ? l : t;
712
+ var t;
713
+ const l = T(e);
714
+ return (t = l == null ? void 0 : l.$el) != null ? t : l;
715
715
  }
716
- const H = K ? window : void 0;
716
+ const H = Y ? window : void 0;
717
717
  function A(...e) {
718
- let l, t, o, n;
719
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([t, o, n] = e, l = H) : [l, t, o, n] = e, !l)
718
+ let t, l, o, n;
719
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = H) : [t, l, o, n] = e, !t)
720
720
  return z;
721
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
721
+ Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
722
722
  const r = [], s = () => {
723
723
  r.forEach((u) => u()), r.length = 0;
724
- }, i = (u, v, a, f) => (u.addEventListener(v, a, f), () => u.removeEventListener(v, a, f)), c = J(() => [q(l), P(n)], ([u, v]) => {
725
- s(), u && r.push(...t.flatMap((a) => o.map((f) => i(u, a, f, v))));
724
+ }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), f = L(() => [q(t), T(n)], ([u, v]) => {
725
+ s(), u && r.push(...l.flatMap((i) => o.map((c) => a(u, i, c, v))));
726
726
  }, { immediate: !0, flush: "post" }), y = () => {
727
- c(), s();
727
+ f(), s();
728
728
  };
729
- return Q(y), y;
729
+ return Z(y), y;
730
730
  }
731
731
  let xe = !1;
732
- function Ie(e, l, t = {}) {
733
- const { window: o = H, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = t;
732
+ function Oe(e, t, l = {}) {
733
+ const { window: o = H, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
734
734
  if (!o)
735
735
  return;
736
- le && !xe && (xe = !0, Array.from(o.document.body.children).forEach((a) => a.addEventListener("click", z)));
737
- let i = !0;
738
- const c = (a) => n.some((f) => {
739
- if (typeof f == "string")
740
- return Array.from(o.document.querySelectorAll(f)).some((d) => d === a.target || a.composedPath().includes(d));
736
+ ae && !xe && (xe = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
737
+ let a = !0;
738
+ const f = (i) => n.some((c) => {
739
+ if (typeof c == "string")
740
+ return Array.from(o.document.querySelectorAll(c)).some((d) => d === i.target || i.composedPath().includes(d));
741
741
  {
742
- const d = q(f);
743
- return d && (a.target === d || a.composedPath().includes(d));
742
+ const d = q(c);
743
+ return d && (i.target === d || i.composedPath().includes(d));
744
744
  }
745
745
  }), u = [
746
- A(o, "click", (a) => {
747
- const f = q(e);
748
- if (!(!f || f === a.target || a.composedPath().includes(f))) {
749
- if (a.detail === 0 && (i = !c(a)), !i) {
750
- i = !0;
746
+ A(o, "click", (i) => {
747
+ const c = q(e);
748
+ if (!(!c || c === i.target || i.composedPath().includes(c))) {
749
+ if (i.detail === 0 && (a = !f(i)), !a) {
750
+ a = !0;
751
751
  return;
752
752
  }
753
- l(a);
753
+ t(i);
754
754
  }
755
755
  }, { passive: !0, capture: r }),
756
- A(o, "pointerdown", (a) => {
757
- const f = q(e);
758
- f && (i = !a.composedPath().includes(f) && !c(a));
756
+ A(o, "pointerdown", (i) => {
757
+ const c = q(e);
758
+ c && (a = !i.composedPath().includes(c) && !f(i));
759
759
  }, { passive: !0 }),
760
- s && A(o, "blur", (a) => {
761
- var f;
760
+ s && A(o, "blur", (i) => {
761
+ var c;
762
762
  const d = q(e);
763
- ((f = o.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && l(a);
763
+ ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
764
764
  })
765
765
  ].filter(Boolean);
766
- return () => u.forEach((a) => a());
766
+ return () => u.forEach((i) => i());
767
767
  }
768
- M.mounted + "", M.unmounted + "";
769
- const il = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
770
- function Oe(...e) {
771
- let l, t, o = {};
772
- e.length === 3 ? (l = e[0], t = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], o = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
773
- const { target: n = H, eventName: r = "keydown", passive: s = !1 } = o, i = il(l);
768
+ R.mounted + "", R.unmounted + "";
769
+ const rl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
770
+ function Ie(...e) {
771
+ let t, l, o = {};
772
+ e.length === 3 ? (t = e[0], l = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, l = e[0], o = e[1]) : (t = e[0], l = e[1]) : (t = !0, l = e[0]);
773
+ const { target: n = H, eventName: r = "keydown", passive: s = !1 } = o, a = rl(t);
774
774
  return A(n, r, (y) => {
775
- i(y) && t(y);
775
+ a(y) && l(y);
776
776
  }, s);
777
777
  }
778
- var rl = Object.defineProperty, Be = Object.getOwnPropertySymbols, sl = Object.prototype.hasOwnProperty, ul = Object.prototype.propertyIsEnumerable, Le = (e, l, t) => l in e ? rl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, dl = (e, l) => {
779
- for (var t in l || (l = {}))
780
- sl.call(l, t) && Le(e, t, l[t]);
778
+ var sl = Object.defineProperty, Be = Object.getOwnPropertySymbols, ul = Object.prototype.hasOwnProperty, dl = Object.prototype.propertyIsEnumerable, Ee = (e, t, l) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, cl = (e, t) => {
779
+ for (var l in t || (t = {}))
780
+ ul.call(t, l) && Ee(e, l, t[l]);
781
781
  if (Be)
782
- for (var t of Be(l))
783
- ul.call(l, t) && Le(e, t, l[t]);
782
+ for (var l of Be(t))
783
+ dl.call(t, l) && Ee(e, l, t[l]);
784
784
  return e;
785
785
  };
786
- M.mounted + "";
787
- const cl = 500;
788
- function Ee(e, l, t) {
786
+ R.mounted + "";
787
+ const fl = 500;
788
+ function Le(e, t, l) {
789
789
  var o, n;
790
- const r = L(() => q(e));
790
+ const r = B(() => q(e));
791
791
  let s;
792
- function i() {
792
+ function a() {
793
793
  s && (clearTimeout(s), s = void 0);
794
794
  }
795
- function c(u) {
796
- var v, a, f, d;
797
- (v = t == null ? void 0 : t.modifiers) != null && v.self && u.target !== r.value || (i(), (a = t == null ? void 0 : t.modifiers) != null && a.prevent && u.preventDefault(), (f = t == null ? void 0 : t.modifiers) != null && f.stop && u.stopPropagation(), s = setTimeout(() => l(u), (d = t == null ? void 0 : t.delay) != null ? d : cl));
795
+ function f(u) {
796
+ var v, i, c, d;
797
+ (v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== r.value || (a(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && u.preventDefault(), (c = l == null ? void 0 : l.modifiers) != null && c.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d : fl));
798
798
  }
799
799
  const y = {
800
- capture: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.capture,
801
- once: (n = t == null ? void 0 : t.modifiers) == null ? void 0 : n.once
800
+ capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
801
+ once: (n = l == null ? void 0 : l.modifiers) == null ? void 0 : n.once
802
802
  };
803
- A(r, "pointerdown", c, y), A(r, "pointerup", i, y), A(r, "pointerleave", i, y);
803
+ A(r, "pointerdown", f, y), A(r, "pointerup", a, y), A(r, "pointerleave", a, y);
804
804
  }
805
- M.mounted + "";
806
- const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
807
- se[ue] = se[ue] || {};
808
- se[ue];
809
- function Ze(e, l = !1) {
810
- const t = g(), o = () => t.value = Boolean(e());
811
- return o(), Qe(o, l), t;
805
+ R.mounted + "";
806
+ const ue = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, de = "__vueuse_ssr_handlers__";
807
+ ue[de] = ue[de] || {};
808
+ ue[de];
809
+ function Ye(e, t = !1) {
810
+ const l = g(), o = () => l.value = Boolean(e());
811
+ return o(), Qe(o, t), l;
812
812
  }
813
- function fl(e, l = {}) {
814
- const t = l ? l.delayEnter : 0, o = l ? l.delayLeave : 0, n = g(!1);
813
+ function yl(e, t = {}) {
814
+ const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = g(!1);
815
815
  let r;
816
- const s = (i) => {
817
- const c = i ? t : o;
818
- r && (clearTimeout(r), r = void 0), c ? r = setTimeout(() => n.value = i, c) : n.value = i;
816
+ const s = (a) => {
817
+ const f = a ? l : o;
818
+ r && (clearTimeout(r), r = void 0), f ? r = setTimeout(() => n.value = a, f) : n.value = a;
819
819
  };
820
820
  return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
821
821
  }
822
- M.mounted + "";
823
- var Ce = Object.getOwnPropertySymbols, yl = Object.prototype.hasOwnProperty, vl = Object.prototype.propertyIsEnumerable, ml = (e, l) => {
824
- var t = {};
822
+ R.mounted + "";
823
+ var Ce = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, ml = Object.prototype.propertyIsEnumerable, pl = (e, t) => {
824
+ var l = {};
825
825
  for (var o in e)
826
- yl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
826
+ vl.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
827
827
  if (e != null && Ce)
828
828
  for (var o of Ce(e))
829
- l.indexOf(o) < 0 && vl.call(e, o) && (t[o] = e[o]);
830
- return t;
829
+ t.indexOf(o) < 0 && ml.call(e, o) && (l[o] = e[o]);
830
+ return l;
831
831
  };
832
- function pl(e, l, t = {}) {
833
- const o = t, { window: n = H } = o, r = ml(o, ["window"]);
832
+ function hl(e, t, l = {}) {
833
+ const o = l, { window: n = H } = o, r = pl(o, ["window"]);
834
834
  let s;
835
- const i = Ze(() => n && "ResizeObserver" in n), c = () => {
835
+ const a = Ye(() => n && "ResizeObserver" in n), f = () => {
836
836
  s && (s.disconnect(), s = void 0);
837
- }, y = J(() => q(e), (v) => {
838
- c(), i.value && n && v && (s = new ResizeObserver(l), s.observe(v, r));
837
+ }, y = L(() => q(e), (v) => {
838
+ f(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
839
839
  }, { immediate: !0, flush: "post" }), u = () => {
840
- c(), y();
840
+ f(), y();
841
841
  };
842
- return Q(u), {
843
- isSupported: i,
842
+ return Z(u), {
843
+ isSupported: a,
844
844
  stop: u
845
845
  };
846
846
  }
847
- function hl(e, l = { width: 0, height: 0 }, t = {}) {
848
- const { window: o = H, box: n = "content-box" } = t, r = L(() => {
849
- var c, y;
850
- return (y = (c = q(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : y.includes("svg");
851
- }), s = g(l.width), i = g(l.height);
852
- return pl(e, ([c]) => {
853
- const y = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
847
+ function gl(e, t = { width: 0, height: 0 }, l = {}) {
848
+ const { window: o = H, box: n = "content-box" } = l, r = B(() => {
849
+ var f, y;
850
+ return (y = (f = q(e)) == null ? void 0 : f.namespaceURI) == null ? void 0 : y.includes("svg");
851
+ }), s = g(t.width), a = g(t.height);
852
+ return hl(e, ([f]) => {
853
+ const y = n === "border-box" ? f.borderBoxSize : n === "content-box" ? f.contentBoxSize : f.devicePixelContentBoxSize;
854
854
  if (o && r.value) {
855
855
  const u = q(e);
856
856
  if (u) {
857
857
  const v = o.getComputedStyle(u);
858
- s.value = parseFloat(v.width), i.value = parseFloat(v.height);
858
+ s.value = parseFloat(v.width), a.value = parseFloat(v.height);
859
859
  }
860
860
  } else if (y) {
861
861
  const u = Array.isArray(y) ? y : [y];
862
- s.value = u.reduce((v, { inlineSize: a }) => v + a, 0), i.value = u.reduce((v, { blockSize: a }) => v + a, 0);
862
+ s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
863
863
  } else
864
- s.value = c.contentRect.width, i.value = c.contentRect.height;
865
- }, t), J(() => q(e), (c) => {
866
- s.value = c ? l.width : 0, i.value = c ? l.height : 0;
864
+ s.value = f.contentRect.width, a.value = f.contentRect.height;
865
+ }, l), L(() => q(e), (f) => {
866
+ s.value = f ? t.width : 0, a.value = f ? t.height : 0;
867
867
  }), {
868
868
  width: s,
869
- height: i
869
+ height: a
870
870
  };
871
871
  }
872
- M.mounted + "";
873
- function Je(e, { window: l = H, scrollTarget: t } = {}) {
872
+ R.mounted + "";
873
+ function Je(e, { window: t = H, scrollTarget: l } = {}) {
874
874
  const o = g(!1), n = () => {
875
- if (!l)
875
+ if (!t)
876
876
  return;
877
- const r = l.document, s = q(e);
877
+ const r = t.document, s = q(e);
878
878
  if (!s)
879
879
  o.value = !1;
880
880
  else {
881
- const i = s.getBoundingClientRect();
882
- o.value = i.top <= (l.innerHeight || r.documentElement.clientHeight) && i.left <= (l.innerWidth || r.documentElement.clientWidth) && i.bottom >= 0 && i.right >= 0;
881
+ const a = s.getBoundingClientRect();
882
+ o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
883
883
  }
884
884
  };
885
- return J(() => q(e), () => n(), { immediate: !0, flush: "post" }), l && A(t || l, "scroll", n, {
885
+ return L(() => q(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
886
886
  capture: !1,
887
887
  passive: !0
888
888
  }), o;
889
889
  }
890
- M.mounted + "";
890
+ R.mounted + "";
891
891
  const Pe = 1;
892
- function de(e, l = {}) {
892
+ function ce(e, t = {}) {
893
893
  const {
894
- throttle: t = 0,
894
+ throttle: l = 0,
895
895
  idle: o = 200,
896
896
  onStop: n = z,
897
897
  onScroll: r = z,
@@ -901,84 +901,84 @@ function de(e, l = {}) {
901
901
  top: 0,
902
902
  bottom: 0
903
903
  },
904
- eventListenerOptions: i = {
904
+ eventListenerOptions: a = {
905
905
  capture: !1,
906
906
  passive: !0
907
907
  },
908
- behavior: c = "auto"
909
- } = l, y = g(0), u = g(0), v = L({
908
+ behavior: f = "auto"
909
+ } = t, y = g(0), u = g(0), v = B({
910
910
  get() {
911
911
  return y.value;
912
912
  },
913
- set(E) {
914
- f(E, void 0);
913
+ set(J) {
914
+ c(J, void 0);
915
915
  }
916
- }), a = L({
916
+ }), i = B({
917
917
  get() {
918
918
  return u.value;
919
919
  },
920
- set(E) {
921
- f(void 0, E);
920
+ set(J) {
921
+ c(void 0, J);
922
922
  }
923
923
  });
924
- function f(E, T) {
925
- var D, F, _e;
926
- const ne = P(e);
927
- ne && ((_e = ne instanceof Document ? document.body : ne) == null || _e.scrollTo({
928
- top: (D = P(T)) != null ? D : a.value,
929
- left: (F = P(E)) != null ? F : v.value,
930
- behavior: P(c)
924
+ function c(J, D) {
925
+ var k, P, N;
926
+ const U = T(e);
927
+ U && ((N = U instanceof Document ? document.body : U) == null || N.scrollTo({
928
+ top: (k = T(D)) != null ? k : i.value,
929
+ left: (P = T(J)) != null ? P : v.value,
930
+ behavior: T(f)
931
931
  }));
932
932
  }
933
- const d = g(!1), j = te({
933
+ const d = g(!1), S = ne({
934
934
  left: !0,
935
935
  right: !1,
936
936
  top: !0,
937
937
  bottom: !1
938
- }), S = te({
938
+ }), j = ne({
939
939
  left: !1,
940
940
  right: !1,
941
941
  top: !1,
942
942
  bottom: !1
943
- }), ee = (E) => {
944
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(E));
945
- }, oe = Nt(ee, t + o), O = (E) => {
946
- const T = E.target === document ? E.target.documentElement : E.target, D = T.scrollLeft;
947
- S.left = D < y.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) - Pe, y.value = D;
948
- let F = T.scrollTop;
949
- E.target === document && !F && (F = document.body.scrollTop), S.top = F < u.value, S.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + T.clientHeight >= T.scrollHeight - (s.bottom || 0) - Pe, u.value = F, d.value = !0, oe(E), r(E);
943
+ }), te = (J) => {
944
+ d.value && (d.value = !1, j.left = !1, j.right = !1, j.top = !1, j.bottom = !1, n(J));
945
+ }, le = Ht(te, l + o), oe = (J) => {
946
+ const D = J.target === document ? J.target.documentElement : J.target, k = D.scrollLeft;
947
+ j.left = k < y.value, j.right = k > u.value, S.left = k <= 0 + (s.left || 0), S.right = k + D.clientWidth >= D.scrollWidth - (s.right || 0) - Pe, y.value = k;
948
+ let P = D.scrollTop;
949
+ J.target === document && !P && (P = document.body.scrollTop), j.top = P < u.value, j.bottom = P > u.value, S.top = P <= 0 + (s.top || 0), S.bottom = P + D.clientHeight >= D.scrollHeight - (s.bottom || 0) - Pe, u.value = P, d.value = !0, le(J), r(J);
950
950
  };
951
- return A(e, "scroll", t ? Ht(O, t, !0, !1) : O, i), A(e, "scrollend", ee, i), {
951
+ return A(e, "scroll", l ? Wt(oe, l, !0, !1) : oe, a), A(e, "scrollend", te, a), {
952
952
  x: v,
953
- y: a,
953
+ y: i,
954
954
  isScrolling: d,
955
- arrivedState: j,
956
- directions: S
955
+ arrivedState: S,
956
+ directions: j
957
957
  };
958
958
  }
959
- var gl = Object.defineProperty, bl = Object.defineProperties, _l = Object.getOwnPropertyDescriptors, qe = Object.getOwnPropertySymbols, wl = Object.prototype.hasOwnProperty, Sl = Object.prototype.propertyIsEnumerable, Te = (e, l, t) => l in e ? gl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ze = (e, l) => {
960
- for (var t in l || (l = {}))
961
- wl.call(l, t) && Te(e, t, l[t]);
962
- if (qe)
963
- for (var t of qe(l))
964
- Sl.call(l, t) && Te(e, t, l[t]);
959
+ var bl = Object.defineProperty, _l = Object.defineProperties, wl = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, Sl = Object.prototype.hasOwnProperty, jl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? bl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, ze = (e, t) => {
960
+ for (var l in t || (t = {}))
961
+ Sl.call(t, l) && qe(e, l, t[l]);
962
+ if (Te)
963
+ for (var l of Te(t))
964
+ jl.call(t, l) && qe(e, l, t[l]);
965
965
  return e;
966
- }, jl = (e, l) => bl(e, _l(l));
967
- function Ae(e, l, t = {}) {
966
+ }, kl = (e, t) => _l(e, wl(t));
967
+ function Ae(e, t, l = {}) {
968
968
  var o, n;
969
- const r = (o = t.direction) != null ? o : "bottom", s = te(de(e, jl(ze({}, t), {
969
+ const r = (o = l.direction) != null ? o : "bottom", s = ne(ce(e, kl(ze({}, l), {
970
970
  offset: ze({
971
- [r]: (n = t.distance) != null ? n : 0
972
- }, t.offset)
971
+ [r]: (n = l.distance) != null ? n : 0
972
+ }, l.offset)
973
973
  })));
974
- J(() => s.arrivedState[r], async (i) => {
975
- var c, y;
976
- if (i) {
977
- const u = P(e), v = {
978
- height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
974
+ L(() => s.arrivedState[r], async (a) => {
975
+ var f, y;
976
+ if (a) {
977
+ const u = T(e), v = {
978
+ height: (f = u == null ? void 0 : u.scrollHeight) != null ? f : 0,
979
979
  width: (y = u == null ? void 0 : u.scrollWidth) != null ? y : 0
980
980
  };
981
- await l(s), t.preserveScrollPosition && u && Ne(() => {
981
+ await t(s), l.preserveScrollPosition && u && Ne(() => {
982
982
  u.scrollTo({
983
983
  top: u.scrollHeight - v.height,
984
984
  left: u.scrollWidth - v.width
@@ -987,108 +987,108 @@ function Ae(e, l, t = {}) {
987
987
  }
988
988
  });
989
989
  }
990
- M.mounted + "";
991
- function Fe(e, l, t = {}) {
990
+ R.mounted + "";
991
+ function Fe(e, t, l = {}) {
992
992
  const {
993
993
  root: o,
994
994
  rootMargin: n = "0px",
995
995
  threshold: r = 0.1,
996
996
  window: s = H
997
- } = t, i = Ze(() => s && "IntersectionObserver" in s);
998
- let c = z;
999
- const y = i.value ? J(() => ({
997
+ } = l, a = Ye(() => s && "IntersectionObserver" in s);
998
+ let f = z;
999
+ const y = a.value ? L(() => ({
1000
1000
  el: q(e),
1001
1001
  root: q(o)
1002
- }), ({ el: v, root: a }) => {
1003
- if (c(), !v)
1002
+ }), ({ el: v, root: i }) => {
1003
+ if (f(), !v)
1004
1004
  return;
1005
- const f = new IntersectionObserver(l, {
1006
- root: a,
1005
+ const c = new IntersectionObserver(t, {
1006
+ root: i,
1007
1007
  rootMargin: n,
1008
1008
  threshold: r
1009
1009
  });
1010
- f.observe(v), c = () => {
1011
- f.disconnect(), c = z;
1010
+ c.observe(v), f = () => {
1011
+ c.disconnect(), f = z;
1012
1012
  };
1013
1013
  }, { immediate: !0, flush: "post" }) : z, u = () => {
1014
- c(), y();
1014
+ f(), y();
1015
1015
  };
1016
- return Q(u), {
1017
- isSupported: i,
1016
+ return Z(u), {
1017
+ isSupported: a,
1018
1018
  stop: u
1019
1019
  };
1020
1020
  }
1021
- M.mounted + "";
1022
- var kl = Object.defineProperty, $l = Object.defineProperties, Vl = Object.getOwnPropertyDescriptors, De = Object.getOwnPropertySymbols, xl = Object.prototype.hasOwnProperty, Il = Object.prototype.propertyIsEnumerable, Re = (e, l, t) => l in e ? kl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Ol = (e, l) => {
1023
- for (var t in l || (l = {}))
1024
- xl.call(l, t) && Re(e, t, l[t]);
1021
+ R.mounted + "";
1022
+ var $l = Object.defineProperty, Vl = Object.defineProperties, xl = Object.getOwnPropertyDescriptors, De = Object.getOwnPropertySymbols, Ol = Object.prototype.hasOwnProperty, Il = Object.prototype.propertyIsEnumerable, Re = (e, t, l) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Bl = (e, t) => {
1023
+ for (var l in t || (t = {}))
1024
+ Ol.call(t, l) && Re(e, l, t[l]);
1025
1025
  if (De)
1026
- for (var t of De(l))
1027
- Il.call(l, t) && Re(e, t, l[t]);
1026
+ for (var l of De(t))
1027
+ Il.call(t, l) && Re(e, l, t[l]);
1028
1028
  return e;
1029
- }, Bl = (e, l) => $l(e, Vl(l));
1030
- M.mounted + "";
1031
- function Ye(e) {
1032
- const l = window.getComputedStyle(e);
1033
- if (l.overflowX === "scroll" || l.overflowY === "scroll" || l.overflowX === "auto" && e.clientHeight < e.scrollHeight || l.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1029
+ }, El = (e, t) => Vl(e, xl(t));
1030
+ R.mounted + "";
1031
+ function Ze(e) {
1032
+ const t = window.getComputedStyle(e);
1033
+ if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1034
1034
  return !0;
1035
1035
  {
1036
- const t = e.parentNode;
1037
- return !t || t.tagName === "BODY" ? !1 : Ye(t);
1036
+ const l = e.parentNode;
1037
+ return !l || l.tagName === "BODY" ? !1 : Ze(l);
1038
1038
  }
1039
1039
  }
1040
1040
  function Ll(e) {
1041
- const l = e || window.event, t = l.target;
1042
- return Ye(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1041
+ const t = e || window.event, l = t.target;
1042
+ return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1043
1043
  }
1044
- function El(e, l = !1) {
1045
- const t = g(l);
1044
+ function Cl(e, t = !1) {
1045
+ const l = g(t);
1046
1046
  let o = null, n;
1047
- J(Wt(e), (i) => {
1048
- if (i) {
1049
- const c = i;
1050
- n = c.style.overflow, t.value && (c.style.overflow = "hidden");
1047
+ L(Ut(e), (a) => {
1048
+ if (a) {
1049
+ const f = a;
1050
+ n = f.style.overflow, l.value && (f.style.overflow = "hidden");
1051
1051
  }
1052
1052
  }, {
1053
1053
  immediate: !0
1054
1054
  });
1055
1055
  const r = () => {
1056
- const i = P(e);
1057
- !i || t.value || (le && (o = A(i, "touchmove", (c) => {
1058
- Ll(c);
1059
- }, { passive: !1 })), i.style.overflow = "hidden", t.value = !0);
1056
+ const a = T(e);
1057
+ !a || l.value || (ae && (o = A(a, "touchmove", (f) => {
1058
+ Ll(f);
1059
+ }, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
1060
1060
  }, s = () => {
1061
- const i = P(e);
1062
- !i || !t.value || (le && (o == null || o()), i.style.overflow = n, t.value = !1);
1061
+ const a = T(e);
1062
+ !a || !l.value || (ae && (o == null || o()), a.style.overflow = n, l.value = !1);
1063
1063
  };
1064
- return Q(s), L({
1064
+ return Z(s), B({
1065
1065
  get() {
1066
- return t.value;
1066
+ return l.value;
1067
1067
  },
1068
- set(i) {
1069
- i ? r() : s();
1068
+ set(a) {
1069
+ a ? r() : s();
1070
1070
  }
1071
1071
  });
1072
1072
  }
1073
- const Cl = () => {
1073
+ const Jl = () => {
1074
1074
  let e = !1;
1075
- const l = g(!1);
1076
- return (t, o) => {
1077
- if (l.value = o.value, e)
1075
+ const t = g(!1);
1076
+ return (l, o) => {
1077
+ if (t.value = o.value, e)
1078
1078
  return;
1079
1079
  e = !0;
1080
- const n = El(t, o.value);
1081
- J(l, (r) => n.value = r);
1080
+ const n = Cl(l, o.value);
1081
+ L(t, (r) => n.value = r);
1082
1082
  };
1083
1083
  };
1084
- Cl();
1085
- const Xe = ["medium", "small", "xsmall"], Jl = {
1084
+ Jl();
1085
+ const Xe = ["medium", "small", "xsmall"], Pl = {
1086
1086
  key: 0,
1087
1087
  class: "joy-dropdown-list__header"
1088
- }, Pl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], ql = {
1088
+ }, Tl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], ql = {
1089
1089
  key: 1,
1090
1090
  class: "joy-dropdown-list__footer"
1091
- }, Tl = /* @__PURE__ */ $({
1091
+ }, zl = /* @__PURE__ */ V({
1092
1092
  __name: "VJoyDropdownList",
1093
1093
  props: {
1094
1094
  /**
@@ -1097,7 +1097,7 @@ const Xe = ["medium", "small", "xsmall"], Jl = {
1097
1097
  options: {
1098
1098
  type: Array,
1099
1099
  validator(e) {
1100
- return e.every((l) => Object.keys(l).includes("value") || Object.keys(l).includes("id"));
1100
+ return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
1101
1101
  },
1102
1102
  default() {
1103
1103
  return [];
@@ -1124,74 +1124,77 @@ const Xe = ["medium", "small", "xsmall"], Jl = {
1124
1124
  }
1125
1125
  },
1126
1126
  emits: ["update:modelValue", "close:dropdownList"],
1127
- setup(e, { expose: l, emit: t }) {
1128
- const o = e, n = g(), r = L(() => (a) => !o.modelValue || !a.value && !a.id ? !1 : o.modelValue === a.value || o.modelValue === a.id);
1129
- function s(a) {
1130
- a.disabled || t("update:modelValue", a.value || a.id);
1127
+ setup(e, { expose: t, emit: l }) {
1128
+ const o = e, n = g(), r = B(() => (i) => !o.modelValue || !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1129
+ function s(i) {
1130
+ i.disabled || l("update:modelValue", i.value || i.id);
1131
1131
  }
1132
- function i() {
1133
- var a;
1134
- return Array.from(((a = n.value) == null ? void 0 : a.querySelectorAll("li")) || []);
1132
+ function a() {
1133
+ var i;
1134
+ return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1135
1135
  }
1136
- function c() {
1137
- const a = i().find((f) => f.getAttribute("aria-selected") === "true");
1138
- a && (a.focus(), n.value.scrollTo({
1139
- top: a.offsetTop
1136
+ function f() {
1137
+ const i = a().find((c) => c.getAttribute("aria-selected") === "true");
1138
+ i && (i.focus(), n.value.scrollTo({
1139
+ top: i.offsetTop
1140
1140
  }));
1141
1141
  }
1142
1142
  function y() {
1143
- return i().find((a) => a === document.activeElement);
1143
+ return a().find((i) => i === document.activeElement);
1144
1144
  }
1145
- function u(a) {
1146
- var f;
1147
- if ((a.key === "Escape" || a.key === "Tab") && t("close:dropdownList"), (a.key === "Enter" || a.key === "enter") && (a.preventDefault(), y() && ((f = n.value) != null && f.contains(y())))) {
1148
- const d = y();
1149
- if (!d)
1150
- return;
1151
- if (d.querySelector("a"))
1152
- return d.querySelector("a").click();
1153
- t("update:modelValue", d.dataModel);
1154
- }
1155
- if (y() && a.key === " " && a.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(a.key)) {
1156
- const d = i(), j = y();
1157
- let S = d.indexOf(j);
1158
- if (d.length) {
1159
- a.preventDefault(), a.key === "ArrowDown" ? S++ : a.key === "ArrowUp" ? S-- : a.key === "Home" ? S = 0 : a.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), v(d[S]);
1160
- return;
1145
+ function u(i) {
1146
+ var c;
1147
+ if (!(n.value && !n.value.contains(document.activeElement) || !n.value)) {
1148
+ if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), y() && ((c = n.value) != null && c.contains(y())))) {
1149
+ const d = y();
1150
+ if (!d)
1151
+ return;
1152
+ if (d.querySelector("a"))
1153
+ return d.querySelector("a").click();
1154
+ l("update:modelValue", d.dataModel);
1155
+ }
1156
+ if (y() && i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1157
+ const d = a(), S = y();
1158
+ let j = d.indexOf(S);
1159
+ if (d.length) {
1160
+ i.preventDefault(), i.key === "ArrowDown" ? j++ : i.key === "ArrowUp" ? j-- : i.key === "Home" ? j = 0 : i.key === "End" && (j = d.length - 1), j < 0 && (j = d.length - 1), j > d.length - 1 && (j = 0), v(d[j]);
1161
+ return;
1162
+ }
1161
1163
  }
1162
1164
  }
1163
1165
  }
1164
- function v(a) {
1165
- a.focus();
1166
+ function v(i) {
1167
+ i.focus();
1166
1168
  }
1167
- return X(() => {
1168
- window.addEventListener("keydown", u), c();
1169
+ return K(() => {
1170
+ window.addEventListener("keydown", u), f();
1169
1171
  }), He(() => {
1170
1172
  window.removeEventListener("keydown", u);
1171
- }), l({
1173
+ }), t({
1172
1174
  isSelected: r
1173
- }), (a, f) => (m(), p("div", {
1175
+ }), (i, c) => (m(), p("div", {
1174
1176
  class: "joy-dropdown-list",
1175
- style: Z({ width: `${e.width}px`, "max-width": `${e.width}px` })
1177
+ style: X({ width: `${e.width}px`, "max-width": `${e.width}px` })
1176
1178
  }, [
1177
- a.$slots["dropdown-list-header"] ? (m(), p("header", Jl, [
1178
- h(a.$slots, "dropdown-list-header", {}, void 0, !0)
1179
+ i.$slots["dropdown-list-header"] ? (m(), p("header", Pl, [
1180
+ h(i.$slots, "dropdown-list-header", {}, void 0, !0)
1179
1181
  ])) : _("", !0),
1180
1182
  b("div", {
1181
- class: w(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": a.$slots["dropdown-list-items"] }]),
1182
- style: Z({ "max-height": `${e.height}px` })
1183
+ class: w(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1184
+ style: X({ "max-height": `${e.height}px` })
1183
1185
  }, [
1184
- h(a.$slots, "dropdown-list-items", {}, void 0, !0),
1186
+ h(i.$slots, "dropdown-list-items", {}, void 0, !0),
1185
1187
  e.options.length ? (m(), p("ul", {
1186
1188
  key: 0,
1187
1189
  ref_key: "listbox",
1188
1190
  ref: n,
1189
- role: "listbox"
1191
+ role: "listbox",
1192
+ "aria-expanded": "true"
1190
1193
  }, [
1191
- (m(!0), p(fe, null, ye(e.options, (d) => (m(), p("li", {
1194
+ (m(!0), p(ye, null, ve(e.options, (d) => (m(), p("li", {
1192
1195
  id: d.id,
1193
1196
  key: d.label,
1194
- style: Z({ "max-width": `${e.width}px` }),
1197
+ style: X({ "max-width": `${e.width}px` }),
1195
1198
  class: w([
1196
1199
  "joy-dropdown-list__item",
1197
1200
  `joy-dropdown-list__item--${e.size}`,
@@ -1200,37 +1203,76 @@ const Xe = ["medium", "small", "xsmall"], Jl = {
1200
1203
  "joy-dropdown-list__item--disabled": d.disabled
1201
1204
  }
1202
1205
  ]),
1203
- tabindex: d.disabled ? void 0 : 0,
1206
+ tabindex: d.disabled ? void 0 : -1,
1204
1207
  "aria-disabled": d.disabled,
1205
1208
  "aria-selected": r.value(d),
1206
1209
  title: d.label,
1207
1210
  "aria-label": d.label,
1208
1211
  ".dataModel": d.value || d.id,
1209
1212
  role: "option",
1210
- onClick: (j) => s(d)
1213
+ onClick: (S) => s(d)
1211
1214
  }, [
1212
- h(a.$slots, "label", ve(me(d)), () => [
1215
+ h(i.$slots, "label", me(pe(d)), () => [
1213
1216
  b("span", null, I(d.label), 1)
1214
1217
  ], !0)
1215
- ], 14, Pl))), 128))
1218
+ ], 14, Tl))), 128))
1216
1219
  ], 512)) : _("", !0)
1217
1220
  ], 6),
1218
- a.$slots["dropdown-list-footer"] ? (m(), p("footer", ql, [
1219
- h(a.$slots, "dropdown-list-footer", {}, void 0, !0)
1221
+ i.$slots["dropdown-list-footer"] ? (m(), p("footer", ql, [
1222
+ h(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1220
1223
  ])) : _("", !0)
1221
1224
  ], 4));
1222
1225
  }
1223
1226
  });
1224
- const et = /* @__PURE__ */ V(Tl, [["__scopeId", "data-v-0a25fc40"]]);
1225
- function zl(e) {
1226
- const l = () => e();
1227
- X(() => {
1228
- window.addEventListener("resize", l);
1227
+ const et = /* @__PURE__ */ x(zl, [["__scopeId", "data-v-cd3f6251"]]);
1228
+ function Al(e) {
1229
+ const t = () => e();
1230
+ K(() => {
1231
+ window.addEventListener("resize", t);
1229
1232
  }), He(() => {
1230
- window.removeEventListener("resize", l);
1233
+ window.removeEventListener("resize", t);
1231
1234
  });
1232
1235
  }
1233
- const Al = /* @__PURE__ */ $({
1236
+ const Fl = ["JOY-DRAWER", "JOY-DIALOG", "JOY-BOTTOM-SHEET"];
1237
+ function Dl(e) {
1238
+ let t = e.value.parentElement, l = !1;
1239
+ for (; t != null && t.parentElement; )
1240
+ Fl.includes(t == null ? void 0 : t.tagName) && (l = !0), t = t.parentElement;
1241
+ return l;
1242
+ }
1243
+ function Rl(e) {
1244
+ const t = g(!1);
1245
+ return K(() => {
1246
+ t.value = Dl(e);
1247
+ }), {
1248
+ isInOverlay: t
1249
+ };
1250
+ }
1251
+ function Ml(e) {
1252
+ let t;
1253
+ switch (e) {
1254
+ case "error":
1255
+ t = "warning-triangle";
1256
+ break;
1257
+ case "success":
1258
+ t = "check";
1259
+ break;
1260
+ default:
1261
+ t = "info-circle";
1262
+ }
1263
+ return t;
1264
+ }
1265
+ function Nl(e) {
1266
+ if (!e) {
1267
+ console.warn("Missing ref element for focusOnFirstFocusableFormField use");
1268
+ return;
1269
+ }
1270
+ let t = ["input", "textarea", "select"];
1271
+ const l = (e.value ?? e).querySelectorAll(t.join(","));
1272
+ if (l.length)
1273
+ return l[0].focus();
1274
+ }
1275
+ const Hl = /* @__PURE__ */ V({
1234
1276
  __name: "VJoyDropdown",
1235
1277
  props: {
1236
1278
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1270,7 +1312,7 @@ const Al = /* @__PURE__ */ $({
1270
1312
  options: {
1271
1313
  type: Array,
1272
1314
  validator(e) {
1273
- return e.every((t) => Object.keys(t).includes("label"));
1315
+ return e.every((l) => Object.keys(l).includes("label"));
1274
1316
  },
1275
1317
  default() {
1276
1318
  return [];
@@ -1310,110 +1352,128 @@ const Al = /* @__PURE__ */ $({
1310
1352
  }
1311
1353
  },
1312
1354
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1313
- setup(e, { expose: l, emit: t }) {
1314
- const o = e, n = g(!1), r = g(null), s = g(), i = g(null), c = g(null), y = g(!1), u = {
1355
+ setup(e, { expose: t, emit: l }) {
1356
+ const o = e, n = g(!1), r = g(null), s = g(), a = g(null), { isInOverlay: f } = Rl(s), y = g(null), u = g(!1), v = {
1315
1357
  ignore: [s, ".joy-dropdown__list"]
1316
1358
  };
1317
- let v = null;
1318
- const a = te({
1359
+ let i = null;
1360
+ L(
1361
+ () => n.value,
1362
+ (k) => {
1363
+ k && Nl(a);
1364
+ },
1365
+ { flush: "post" }
1366
+ );
1367
+ const c = ne({
1319
1368
  left: "auto",
1320
1369
  top: "0px",
1321
- right: "auto"
1322
- });
1323
- function f() {
1324
- v && clearTimeout(v), y.value = !0, v = setTimeout(() => {
1325
- n.value = !1, y.value = !1, t("dropdown:hide");
1370
+ right: "auto",
1371
+ zIndex: void 0,
1372
+ position: void 0
1373
+ }), d = B(() => ({
1374
+ position: c.position,
1375
+ top: c.top,
1376
+ left: c.left,
1377
+ zIndex: c.zIndex
1378
+ }));
1379
+ function S() {
1380
+ i && clearTimeout(i), u.value = !0, i = setTimeout(() => {
1381
+ n.value = !1, u.value = !1, l("dropdown:hide");
1326
1382
  }, 300);
1327
1383
  }
1328
- function d(O) {
1329
- y.value = !1, v && clearTimeout(v), ee(), c.value = O.target, n.value = !0, t("dropdown:open");
1384
+ function j(k) {
1385
+ u.value = !1, i && clearTimeout(i), J(), oe(), y.value = k.target, n.value = !0, l("dropdown:open");
1330
1386
  }
1331
- function j() {
1332
- f(), S();
1387
+ function te() {
1388
+ S(), le();
1333
1389
  }
1334
- function S() {
1335
- c.value && c.value.focus();
1390
+ function le() {
1391
+ y.value && y.value.focus();
1392
+ }
1393
+ function oe() {
1394
+ f.value && (c.zIndex = "9999", c.position = "fixed");
1336
1395
  }
1337
- function ee() {
1338
- const O = s.value.getBoundingClientRect(), E = document.documentElement.scrollTop + O.top, T = O.height, D = O.left, F = O.width;
1339
- o.justify === "left" ? a.left = D + "px" : a.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? a.top = E + T + parseInt(o.dropdownGap) + "px" : a.top = E - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1396
+ function J() {
1397
+ const k = s.value.getBoundingClientRect();
1398
+ let P = 0;
1399
+ f.value ? P = document.documentElement.offsetTop + k.top : P = document.documentElement.scrollTop + k.top;
1400
+ const N = k.height, U = k.left, nt = k.width;
1401
+ o.justify === "left" ? c.left = U + "px" : c.left = U + nt - parseInt(o.width) + "px", o.direction === "down" ? c.top = P + N + parseInt(o.dropdownGap) + "px" : c.top = P - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1340
1402
  }
1341
- function oe(O) {
1342
- t("update:modelValue", O), o.closeOnSelect && (f(), S());
1403
+ function D(k) {
1404
+ l("update:modelValue", k), o.closeOnSelect && (S(), le());
1343
1405
  }
1344
- return zl(f), l({
1406
+ return Al(S), t({
1407
+ coords: c,
1345
1408
  showDropdownList: n
1346
- }), (O, E) => (m(), x(k(al), {
1409
+ }), (k, P) => (m(), O($(il), {
1347
1410
  ref_key: "dropdown",
1348
1411
  ref: r,
1349
- options: u,
1412
+ options: v,
1350
1413
  class: "joy-dropdown",
1351
- onTrigger: f
1414
+ onTrigger: S
1352
1415
  }, {
1353
- default: B(() => [
1416
+ default: E(() => [
1354
1417
  b("div", {
1355
1418
  ref_key: "button",
1356
1419
  ref: s,
1357
1420
  class: "joy-dropdown__button",
1358
- onClick: d
1421
+ onClick: j
1359
1422
  }, [
1360
- h(O.$slots, "dropdown-button", {}, void 0, !0)
1423
+ h(k.$slots, "dropdown-button", {}, void 0, !0)
1361
1424
  ], 512),
1362
- (m(), x(st, {
1425
+ (m(), O(ut, {
1363
1426
  to: e.appendTo,
1364
1427
  disabled: e.disableTeleport
1365
1428
  }, [
1366
1429
  n.value ? (m(), p("div", {
1367
1430
  key: 0,
1368
1431
  ref_key: "list",
1369
- ref: i,
1432
+ ref: a,
1370
1433
  class: w([
1371
1434
  "joy-dropdown__list",
1372
1435
  `joy-dropdown__list--${e.direction}`,
1373
1436
  {
1374
- "joy-dropdown__list--visible": !y.value,
1375
- "joy-dropdown__list--hiding": y.value
1437
+ "joy-dropdown__list--visible": !u.value,
1438
+ "joy-dropdown__list--hiding": u.value
1376
1439
  }
1377
1440
  ]),
1378
- style: Z({
1379
- top: a.top,
1380
- left: a.left
1381
- })
1441
+ style: X(d.value)
1382
1442
  }, [
1383
- N(et, {
1443
+ M(et, {
1384
1444
  "model-value": e.modelValue,
1385
1445
  options: e.options,
1386
1446
  size: e.size,
1387
1447
  width: e.width,
1388
1448
  height: e.height,
1389
- "onUpdate:modelValue": oe,
1390
- "onClose:dropdownList": j
1449
+ "onUpdate:modelValue": D,
1450
+ "onClose:dropdownList": te
1391
1451
  }, We({
1392
- label: B((T) => [
1393
- h(O.$slots, "dropdown-item", ve(me(T)), () => [
1394
- b("span", null, I(T.label), 1)
1452
+ label: E((N) => [
1453
+ h(k.$slots, "dropdown-item", me(pe(N)), () => [
1454
+ b("span", null, I(N.label), 1)
1395
1455
  ], !0)
1396
1456
  ]),
1397
1457
  _: 2
1398
1458
  }, [
1399
- O.$slots["dropdown-header"] ? {
1459
+ k.$slots["dropdown-header"] ? {
1400
1460
  name: "dropdown-list-header",
1401
- fn: B(() => [
1402
- h(O.$slots, "dropdown-header", {}, void 0, !0)
1461
+ fn: E(() => [
1462
+ h(k.$slots, "dropdown-header", {}, void 0, !0)
1403
1463
  ]),
1404
1464
  key: "0"
1405
1465
  } : void 0,
1406
- O.$slots["dropdown-items"] ? {
1466
+ k.$slots["dropdown-items"] ? {
1407
1467
  name: "dropdown-list-items",
1408
- fn: B(() => [
1409
- h(O.$slots, "dropdown-items", {}, void 0, !0)
1468
+ fn: E(() => [
1469
+ h(k.$slots, "dropdown-items", {}, void 0, !0)
1410
1470
  ]),
1411
1471
  key: "1"
1412
1472
  } : void 0,
1413
- O.$slots["dropdown-footer"] ? {
1473
+ k.$slots["dropdown-footer"] ? {
1414
1474
  name: "dropdown-list-footer",
1415
- fn: B(() => [
1416
- h(O.$slots, "dropdown-footer", {}, void 0, !0)
1475
+ fn: E(() => [
1476
+ h(k.$slots, "dropdown-footer", {}, void 0, !0)
1417
1477
  ]),
1418
1478
  key: "2"
1419
1479
  } : void 0
@@ -1425,7 +1485,7 @@ const Al = /* @__PURE__ */ $({
1425
1485
  }, 512));
1426
1486
  }
1427
1487
  });
1428
- const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-4d9d2251"]]), Dl = ["aria-hidden"], Rl = /* @__PURE__ */ $({
1488
+ const Wl = /* @__PURE__ */ x(Hl, [["__scopeId", "data-v-194e09e1"]]), Ul = ["aria-hidden"], Gl = /* @__PURE__ */ V({
1429
1489
  __name: "VJoyFormError",
1430
1490
  props: {
1431
1491
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1437,39 +1497,24 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-4d9d2251"]]), Dl = ["ari
1437
1497
  noHtmlErrorText: String
1438
1498
  },
1439
1499
  setup(e) {
1440
- return (l, t) => (m(), p("div", {
1500
+ return (t, l) => (m(), p("div", {
1441
1501
  "aria-hidden": e.visible,
1442
1502
  class: w(["joy-form-error", { "joy-has-error": e.visible }]),
1443
1503
  role: "alert"
1444
1504
  }, [
1445
- N(R, {
1505
+ M(F, {
1446
1506
  class: "joy-icon-error",
1447
1507
  name: "warning-triangle"
1448
1508
  }),
1449
1509
  b("div", null, [
1450
- h(l.$slots, "default", {}, () => [
1510
+ h(t.$slots, "default", {}, () => [
1451
1511
  C(I(e.noHtmlErrorText), 1)
1452
1512
  ], !0)
1453
1513
  ])
1454
- ], 10, Dl));
1514
+ ], 10, Ul));
1455
1515
  }
1456
1516
  });
1457
- const tt = /* @__PURE__ */ V(Rl, [["__scopeId", "data-v-581fd33b"]]);
1458
- function Ml(e) {
1459
- let l;
1460
- switch (e) {
1461
- case "error":
1462
- l = "warning-triangle";
1463
- break;
1464
- case "success":
1465
- l = "check";
1466
- break;
1467
- default:
1468
- l = "info-circle";
1469
- }
1470
- return l;
1471
- }
1472
- const Nl = [..._t], Hl = { class: "joy-highlight--text" }, Wl = { key: 0 }, Ul = /* @__PURE__ */ $({
1517
+ const tt = /* @__PURE__ */ x(Gl, [["__scopeId", "data-v-581fd33b"]]), Kl = [...wt], Ql = { class: "joy-highlight--text" }, Yl = { key: 0 }, Zl = /* @__PURE__ */ V({
1473
1518
  __name: "VJoyHighlight",
1474
1519
  props: {
1475
1520
  accent: {
@@ -1487,13 +1532,13 @@ const Nl = [..._t], Hl = { class: "joy-highlight--text" }, Wl = { key: 0 }, Ul =
1487
1532
  type: String,
1488
1533
  default: "neutral",
1489
1534
  validator(e) {
1490
- return Nl.includes(e);
1535
+ return Kl.includes(e);
1491
1536
  }
1492
1537
  }
1493
1538
  },
1494
- setup(e, { expose: l }) {
1495
- const t = e, o = L(() => t.icon ? t.icon : Ml(t.level));
1496
- return l({
1539
+ setup(e, { expose: t }) {
1540
+ const l = e, o = B(() => l.icon ? l.icon : Ml(l.level));
1541
+ return t({
1497
1542
  getRelevantIcon: o
1498
1543
  }), (n, r) => (m(), p("div", {
1499
1544
  class: w([
@@ -1505,12 +1550,12 @@ const Nl = [..._t], Hl = { class: "joy-highlight--text" }, Wl = { key: 0 }, Ul =
1505
1550
  }
1506
1551
  ])
1507
1552
  }, [
1508
- e.displayIcon ? (m(), x(R, {
1553
+ e.displayIcon ? (m(), O(F, {
1509
1554
  key: 0,
1510
1555
  name: o.value
1511
1556
  }, null, 8, ["name"])) : _("", !0),
1512
- b("div", Hl, [
1513
- n.$slots["highlight-title"] ? (m(), p("strong", Wl, [
1557
+ b("div", Ql, [
1558
+ n.$slots["highlight-title"] ? (m(), p("strong", Yl, [
1514
1559
  h(n.$slots, "highlight-title", {}, void 0, !0)
1515
1560
  ])) : _("", !0),
1516
1561
  h(n.$slots, "default", {}, void 0, !0)
@@ -1518,20 +1563,20 @@ const Nl = [..._t], Hl = { class: "joy-highlight--text" }, Wl = { key: 0 }, Ul =
1518
1563
  ], 2));
1519
1564
  }
1520
1565
  });
1521
- const Gl = /* @__PURE__ */ V(Ul, [["__scopeId", "data-v-ba5e6101"]]), Kl = ["small", "medium", "large"], Ql = {
1566
+ const Xl = /* @__PURE__ */ x(Zl, [["__scopeId", "data-v-ba5e6101"]]), eo = ["small", "medium", "large"], to = {
1522
1567
  key: 0,
1523
1568
  class: "joy-label-required"
1524
- }, Zl = {
1569
+ }, lo = {
1525
1570
  key: 1,
1526
1571
  class: "joy-label-optional"
1527
- }, Yl = /* @__PURE__ */ $({
1572
+ }, oo = /* @__PURE__ */ V({
1528
1573
  __name: "VJoyLabel",
1529
1574
  props: {
1530
1575
  size: {
1531
1576
  type: String,
1532
1577
  default: "medium",
1533
1578
  validator(e) {
1534
- return Kl.includes(e);
1579
+ return eo.includes(e);
1535
1580
  }
1536
1581
  },
1537
1582
  tagName: {
@@ -1548,21 +1593,21 @@ const Gl = /* @__PURE__ */ V(Ul, [["__scopeId", "data-v-ba5e6101"]]), Kl = ["sma
1548
1593
  text: String
1549
1594
  },
1550
1595
  setup(e) {
1551
- return (l, t) => (m(), x(ce(e.tagName), Y({
1596
+ return (t, l) => (m(), O(fe(e.tagName), ee({
1552
1597
  class: ["joy-label", `joy-label--${e.size}`]
1553
- }, l.$attrs), {
1554
- default: B(() => [
1555
- h(l.$slots, "default", {}, () => [
1598
+ }, t.$attrs), {
1599
+ default: E(() => [
1600
+ h(t.$slots, "default", {}, () => [
1556
1601
  C(I(e.text), 1)
1557
1602
  ], !0),
1558
- e.required ? (m(), p("span", Ql, "*")) : _("", !0),
1559
- e.optionalLabel ? (m(), p("span", Zl, "- " + I(e.optionalLabel), 1)) : _("", !0)
1603
+ e.required ? (m(), p("span", to, "*")) : _("", !0),
1604
+ e.optionalLabel ? (m(), p("span", lo, "- " + I(e.optionalLabel), 1)) : _("", !0)
1560
1605
  ]),
1561
1606
  _: 3
1562
1607
  }, 16, ["class"]));
1563
1608
  }
1564
1609
  });
1565
- const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["large", "medium", "small"], eo = ["id", "required", "disabled", "type", "value"], to = ["data-unit"], lo = /* @__PURE__ */ $({
1610
+ const W = /* @__PURE__ */ x(oo, [["__scopeId", "data-v-1265214a"]]), no = ["large", "medium", "small"], ao = ["id", "required", "disabled", "type", "value"], io = ["data-unit"], ro = /* @__PURE__ */ V({
1566
1611
  inheritAttrs: !1,
1567
1612
  __name: "VJoyInput",
1568
1613
  props: {
@@ -1615,62 +1660,65 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1615
1660
  type: String,
1616
1661
  default: "medium",
1617
1662
  validator(e) {
1618
- return Xl.includes(e);
1663
+ return no.includes(e);
1619
1664
  }
1620
1665
  },
1621
- type: String,
1666
+ type: {
1667
+ type: String,
1668
+ default: "text"
1669
+ },
1622
1670
  /** Adds a legend like symbol on the right of the component. Made for number based values */
1623
1671
  unit: String
1624
1672
  },
1625
1673
  emits: ["update:modelValue"],
1626
- setup(e, { emit: l }) {
1627
- const t = e, o = g(), n = g(), r = Me(), s = G(), i = g(!1), c = L(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), y = L(() => s.default && s.default()), u = L(() => {
1628
- var f, d;
1629
- return !!((f = n.value) != null && f.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1630
- }), v = g(t.type);
1631
- ut(() => {
1632
- v.value = t.unit ? "number" : t.unit || "text";
1674
+ setup(e, { emit: t }) {
1675
+ const l = e, o = g(), n = g(), r = Me(), s = Q(), a = g(!1), f = B(() => typeof l.modelValue == "number" || !l.clearable || l.unit || !l.modelValue ? !1 : l.modelValue.length > 0 && !l.unit), y = B(() => s.default && s.default()), u = B(() => {
1676
+ var c, d;
1677
+ return !!((c = n.value) != null && c.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1678
+ }), v = g(l.type);
1679
+ dt(() => {
1680
+ v.value = l.unit ? "number" : l.type;
1633
1681
  });
1634
- const a = {
1682
+ const i = {
1635
1683
  onFocus: () => {
1636
- i.value = !0;
1684
+ a.value = !0;
1637
1685
  },
1638
1686
  onBlur: () => {
1639
- i.value = !1;
1687
+ a.value = !1;
1640
1688
  },
1641
- onInput: (f) => {
1642
- let d = f.target.value;
1643
- l("update:modelValue", d);
1689
+ onInput: (c) => {
1690
+ let d = c.target.value;
1691
+ t("update:modelValue", d);
1644
1692
  },
1645
1693
  clearValue: () => {
1646
- t.disabled || l("update:modelValue", "");
1694
+ l.disabled || t("update:modelValue", "");
1647
1695
  }
1648
1696
  };
1649
- return (f, d) => (m(), p("div", {
1697
+ return (c, d) => (m(), p("div", {
1650
1698
  ref_key: "root",
1651
1699
  ref: n,
1652
- class: w([`joy-input--${t.size}`])
1700
+ class: w([`joy-input--${l.size}`])
1653
1701
  }, [
1654
1702
  b("div", {
1655
1703
  class: w([
1656
1704
  "joy-input",
1657
1705
  {
1658
- "joy-input--focusing": i.value,
1706
+ "joy-input--focusing": a.value,
1659
1707
  "joy-input--disabled": e.disabled,
1660
1708
  "joy-input--invalid": e.invalid,
1661
- "joy-input--valid": !e.invalid && !k(r).disabled
1709
+ "joy-input--valid": !e.invalid && !$(r).disabled
1662
1710
  }
1663
1711
  ])
1664
1712
  }, [
1665
- y.value || e.label ? (m(), x(W, {
1713
+ y.value || e.label ? (m(), O(W, {
1666
1714
  key: 0,
1667
1715
  for: e.name,
1668
1716
  required: e.required && e.requiredMark,
1669
1717
  "optional-label": e.optionalLabel,
1670
1718
  size: e.labelSize
1671
1719
  }, {
1672
- default: B(() => [
1673
- h(f.$slots, "default", {}, () => [
1720
+ default: E(() => [
1721
+ h(c.$slots, "default", {}, () => [
1674
1722
  C(I(e.label), 1)
1675
1723
  ], !0)
1676
1724
  ]),
@@ -1687,8 +1735,8 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1687
1735
  }
1688
1736
  ])
1689
1737
  }, [
1690
- b("input", Y(f.$attrs, {
1691
- id: t.name,
1738
+ b("input", ee(c.$attrs, {
1739
+ id: l.name,
1692
1740
  ref_key: "input",
1693
1741
  ref: o,
1694
1742
  required: e.required,
@@ -1702,22 +1750,22 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1702
1750
  type: v.value,
1703
1751
  value: e.modelValue,
1704
1752
  onFocus: d[0] || (d[0] = //@ts-ignore
1705
- (...j) => a.onFocus && a.onFocus(...j)),
1753
+ (...S) => i.onFocus && i.onFocus(...S)),
1706
1754
  onBlur: d[1] || (d[1] = //@ts-ignore
1707
- (...j) => a.onBlur && a.onBlur(...j)),
1755
+ (...S) => i.onBlur && i.onBlur(...S)),
1708
1756
  onInput: d[2] || (d[2] = //@ts-ignore
1709
- (...j) => a.onInput && a.onInput(...j))
1710
- }), null, 16, eo),
1711
- c.value ? (m(), x(Ue, {
1757
+ (...S) => i.onInput && i.onInput(...S))
1758
+ }), null, 16, ao),
1759
+ f.value ? (m(), O(Ue, {
1712
1760
  key: 0,
1713
1761
  class: "joy-input--clear",
1714
1762
  circle: "",
1715
1763
  variant: "ghost",
1716
1764
  size: "xxsmall",
1717
1765
  icon: "cross",
1718
- onClick: a.clearValue
1766
+ onClick: i.clearValue
1719
1767
  }, null, 8, ["onClick"])) : _("", !0),
1720
- e.icon && !e.clearable ? (m(), x(R, {
1768
+ e.icon ? (m(), O(F, {
1721
1769
  key: 1,
1722
1770
  role: "img",
1723
1771
  class: "joy-input--decorative-icon",
@@ -1727,13 +1775,13 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1727
1775
  key: 2,
1728
1776
  "data-unit": e.unit,
1729
1777
  class: "joy-input--unit"
1730
- }, null, 8, to)) : _("", !0)
1778
+ }, null, 8, io)) : _("", !0)
1731
1779
  ], 2)
1732
1780
  ], 2)
1733
1781
  ], 2));
1734
1782
  }
1735
1783
  });
1736
- const oo = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-46a69828"]]), no = ["teal", "white"], ao = ["href"], io = /* @__PURE__ */ $({
1784
+ const so = /* @__PURE__ */ x(ro, [["__scopeId", "data-v-ba3aad9d"]]), uo = ["teal", "white"], co = ["href"], fo = /* @__PURE__ */ V({
1737
1785
  __name: "VJoyLink",
1738
1786
  props: {
1739
1787
  href: {
@@ -1744,39 +1792,37 @@ const oo = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-46a69828"]]), no = ["tea
1744
1792
  type: String,
1745
1793
  default: "teal",
1746
1794
  validator(e) {
1747
- return no.includes(e);
1795
+ return uo.includes(e);
1748
1796
  }
1749
1797
  },
1750
- icon: {
1751
- type: String
1752
- },
1798
+ icon: String,
1753
1799
  text: String
1754
1800
  },
1755
1801
  setup(e) {
1756
- return (l, t) => (m(), p("a", Y({ href: e.href }, l.$attrs, {
1802
+ return (t, l) => (m(), p("a", ee({ href: e.href }, t.$attrs, {
1757
1803
  class: ["joy-link", `joy-link_${e.color}`]
1758
1804
  }), [
1759
- e.icon ? (m(), x(R, {
1805
+ e.icon ? (m(), O(F, {
1760
1806
  key: 0,
1761
1807
  name: e.icon
1762
1808
  }, null, 8, ["name"])) : _("", !0),
1763
- h(l.$slots, "default", {}, () => [
1809
+ h(t.$slots, "default", {}, () => [
1764
1810
  C(I(e.text), 1)
1765
1811
  ], !0)
1766
- ], 16, ao));
1812
+ ], 16, co));
1767
1813
  }
1768
1814
  });
1769
- const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-a8db21c2"]]), so = ["id"], uo = {
1815
+ const yo = /* @__PURE__ */ x(fo, [["__scopeId", "data-v-76f0342e"]]), vo = ["id"], mo = {
1770
1816
  class: /* @__PURE__ */ w(["joy-multi-checkbox"])
1771
- }, co = /* @__PURE__ */ $({
1817
+ }, po = /* @__PURE__ */ V({
1772
1818
  __name: "VJoyMultiCheckbox",
1773
1819
  props: {
1774
1820
  options: {
1775
1821
  type: Array,
1776
1822
  required: !0,
1777
1823
  validator(e) {
1778
- const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
1779
- return l && t;
1824
+ const t = e.every((o) => Object.keys(o).includes("value")), l = e.every((o) => Object.keys(o).includes("label"));
1825
+ return t && l;
1780
1826
  }
1781
1827
  },
1782
1828
  id: String,
@@ -1802,64 +1848,64 @@ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-a8db21c2"]]), so = ["id"
1802
1848
  }
1803
1849
  },
1804
1850
  emits: ["update:value"],
1805
- setup(e, { emit: l }) {
1806
- const t = e;
1851
+ setup(e, { emit: t }) {
1852
+ const l = e;
1807
1853
  function o(r) {
1808
- return t.value.includes(r.value);
1854
+ return l.value.includes(r.value);
1809
1855
  }
1810
1856
  function n(r, s) {
1811
- let i = [...t.value || []];
1812
- s ? i.push(r) : i.splice(i.indexOf(r), 1), l("update:value", i);
1857
+ let a = [...l.value || []];
1858
+ s ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
1813
1859
  }
1814
1860
  return (r, s) => (m(), p("fieldset", {
1815
1861
  id: e.id,
1816
1862
  class: "joy-multi-checkbox__wrapper"
1817
1863
  }, [
1818
- e.label ? (m(), x(k(W), {
1864
+ e.label ? (m(), O($(W), {
1819
1865
  key: 0,
1820
1866
  "tag-name": "legend",
1821
1867
  required: e.required && e.requiredMark,
1822
1868
  "optional-label": e.optionalLabel,
1823
1869
  size: e.labelSize
1824
1870
  }, {
1825
- default: B(() => [
1871
+ default: E(() => [
1826
1872
  C(I(e.label), 1)
1827
1873
  ]),
1828
1874
  _: 1
1829
1875
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
1830
- b("div", uo, [
1831
- (m(!0), p(fe, null, ye(e.options, (i) => (m(), x(k(he), {
1832
- id: i.id,
1833
- key: i.id,
1834
- name: i.name,
1835
- value: i.value,
1836
- checked: o(i),
1837
- "onUpdate:checked": (c) => n(i.value, c)
1876
+ b("div", mo, [
1877
+ (m(!0), p(ye, null, ve(e.options, (a) => (m(), O($(ge), {
1878
+ id: a.id,
1879
+ key: a.id,
1880
+ name: a.name,
1881
+ value: a.value,
1882
+ checked: o(a),
1883
+ "onUpdate:checked": (f) => n(a.value, f)
1838
1884
  }, {
1839
- default: B(() => [
1840
- h(r.$slots, "checkbox", ve(me(i)), () => [
1841
- C(I(i.label), 1)
1885
+ default: E(() => [
1886
+ h(r.$slots, "checkbox", me(pe(a)), () => [
1887
+ C(I(a.label), 1)
1842
1888
  ], !0)
1843
1889
  ]),
1844
1890
  _: 2
1845
1891
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1846
1892
  ])
1847
- ], 8, so));
1893
+ ], 8, vo));
1848
1894
  }
1849
1895
  });
1850
- const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["small", "medium", "large"], vo = ["small", "large"], mo = {
1896
+ const ho = /* @__PURE__ */ x(po, [["__scopeId", "data-v-47574ced"]]), go = ["small", "medium", "large"], bo = ["small", "large"], _o = {
1851
1897
  key: 0,
1852
1898
  class: /* @__PURE__ */ w(["joy-panel__header"])
1853
- }, po = {
1899
+ }, wo = {
1854
1900
  key: 1,
1855
1901
  class: "joy-panel__header-action"
1856
- }, ho = {
1902
+ }, So = {
1857
1903
  key: 2,
1858
1904
  class: "joy-panel__header-subtitle"
1859
- }, go = { class: "joy-panel__body" }, bo = {
1905
+ }, jo = { class: "joy-panel__body" }, ko = {
1860
1906
  key: 1,
1861
1907
  class: "joy-panel__footer"
1862
- }, _o = /* @__PURE__ */ $({
1908
+ }, $o = /* @__PURE__ */ V({
1863
1909
  __name: "VJoyPanel",
1864
1910
  props: {
1865
1911
  flex: {
@@ -1873,14 +1919,14 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1873
1919
  type: String,
1874
1920
  default: "medium",
1875
1921
  validator(e) {
1876
- return yo.includes(e);
1922
+ return go.includes(e);
1877
1923
  }
1878
1924
  },
1879
1925
  titleSize: {
1880
1926
  type: String,
1881
1927
  default: "large",
1882
1928
  validator(e) {
1883
- return vo.includes(e);
1929
+ return bo.includes(e);
1884
1930
  }
1885
1931
  },
1886
1932
  loading: {
@@ -1893,46 +1939,46 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1893
1939
  }
1894
1940
  },
1895
1941
  setup(e) {
1896
- const l = dt("VJoyWrapperContext", {}), t = L(() => Object.keys(l).length > 0), o = G(), n = g(), r = L(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1897
- return (s, i) => (m(), p("section", {
1942
+ const t = ct("VJoyWrapperContext", {}), l = B(() => Object.keys(t).length > 0), o = Q(), n = g(), r = B(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1943
+ return (s, a) => (m(), p("section", {
1898
1944
  ref_key: "panel",
1899
1945
  ref: n,
1900
- style: Z({ flex: e.flex }),
1946
+ style: X({ flex: e.flex }),
1901
1947
  class: w([
1902
1948
  "joy-panel",
1903
1949
  `joy-panel--${e.padding}`,
1904
1950
  {
1905
- "joy-panel--no-margin": e.noMargin || t.value,
1951
+ "joy-panel--no-margin": e.noMargin || l.value,
1906
1952
  "joy-panel--loading": e.loading
1907
1953
  }
1908
1954
  ])
1909
1955
  }, [
1910
- r.value ? (m(), p("header", mo, [
1911
- k(o)["panel-title"] ? (m(), p("div", {
1956
+ r.value ? (m(), p("header", _o, [
1957
+ $(o)["panel-title"] ? (m(), p("div", {
1912
1958
  key: 0,
1913
1959
  class: w(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1914
1960
  }, [
1915
1961
  h(s.$slots, "panel-title", {}, void 0, !0)
1916
1962
  ], 2)) : _("", !0),
1917
- k(o)["panel-title-action"] ? (m(), p("div", po, [
1963
+ $(o)["panel-title-action"] ? (m(), p("div", wo, [
1918
1964
  h(s.$slots, "panel-title-action", {}, void 0, !0)
1919
1965
  ])) : _("", !0),
1920
- k(o)["panel-subtitle"] ? (m(), p("div", ho, [
1966
+ $(o)["panel-subtitle"] ? (m(), p("div", So, [
1921
1967
  h(s.$slots, "panel-subtitle", {}, void 0, !0)
1922
1968
  ])) : _("", !0)
1923
1969
  ])) : _("", !0),
1924
- b("div", go, [
1970
+ b("div", jo, [
1925
1971
  h(s.$slots, "panel-body", {}, void 0, !0)
1926
1972
  ]),
1927
- k(o)["panel-action"] ? (m(), p("footer", bo, [
1973
+ $(o)["panel-action"] ? (m(), p("footer", ko, [
1928
1974
  h(s.$slots, "panel-action", {}, void 0, !0)
1929
1975
  ])) : _("", !0),
1930
- e.loading ? (m(), x(k(be), {
1976
+ e.loading ? (m(), O($(_e), {
1931
1977
  key: 2,
1932
1978
  overlay: "",
1933
1979
  color: e.loadingColor
1934
1980
  }, {
1935
- content: B(() => [
1981
+ content: E(() => [
1936
1982
  h(s.$slots, "panel-loader-content", {}, void 0, !0)
1937
1983
  ]),
1938
1984
  _: 3
@@ -1940,27 +1986,27 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["sma
1940
1986
  ], 6));
1941
1987
  }
1942
1988
  });
1943
- const wo = /* @__PURE__ */ V(_o, [["__scopeId", "data-v-2e3a2baa"]]), So = { class: "joy-panel-section" }, jo = {
1989
+ const Vo = /* @__PURE__ */ x($o, [["__scopeId", "data-v-2e3a2baa"]]), xo = { class: "joy-panel-section" }, Oo = {
1944
1990
  key: 0,
1945
1991
  class: "joy-panel-section__title"
1946
- }, ko = {
1992
+ }, Io = {
1947
1993
  key: 1,
1948
1994
  class: "joy-panel-section__content"
1949
- }, $o = /* @__PURE__ */ $({
1995
+ }, Bo = /* @__PURE__ */ V({
1950
1996
  __name: "VJoyPanelSection",
1951
1997
  setup(e) {
1952
- const l = G();
1953
- return (t, o) => (m(), p("div", So, [
1954
- k(l)["panel-section-title"] ? (m(), p("div", jo, [
1955
- h(t.$slots, "panel-section-title", {}, void 0, !0)
1998
+ const t = Q();
1999
+ return (l, o) => (m(), p("div", xo, [
2000
+ $(t)["panel-section-title"] ? (m(), p("div", Oo, [
2001
+ h(l.$slots, "panel-section-title", {}, void 0, !0)
1956
2002
  ])) : _("", !0),
1957
- k(l)["panel-section-content"] ? (m(), p("div", ko, [
1958
- h(t.$slots, "panel-section-content", {}, void 0, !0)
2003
+ $(t)["panel-section-content"] ? (m(), p("div", Io, [
2004
+ h(l.$slots, "panel-section-content", {}, void 0, !0)
1959
2005
  ])) : _("", !0)
1960
2006
  ]));
1961
2007
  }
1962
2008
  });
1963
- const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id", "value", "checked", "disabled", "required", "name"], Io = { class: "joy-radio-label" }, Oo = { class: "joy-radio-content__wrapper" }, Bo = { class: "joy-radio-content" }, Lo = /* @__PURE__ */ $({
2009
+ const Eo = /* @__PURE__ */ x(Bo, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id", "value", "checked", "disabled", "required", "name"], Co = { class: "joy-radio-label" }, Jo = { class: "joy-radio-content__wrapper" }, Po = { class: "joy-radio-content" }, To = /* @__PURE__ */ V({
1964
2010
  __name: "VJoyRadio",
1965
2011
  props: {
1966
2012
  disabled: {
@@ -1995,32 +2041,32 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
1995
2041
  }
1996
2042
  },
1997
2043
  emits: ["update:modelValue"],
1998
- setup(e, { expose: l, emit: t }) {
1999
- const o = e, n = g(!1), r = g(!1), s = g(null), i = g(null), c = G(), y = L(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
2044
+ setup(e, { expose: t, emit: l }) {
2045
+ const o = e, n = g(!1), r = g(!1), s = g(null), a = g(null), f = Q(), y = B(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
2000
2046
  function u() {
2001
- n.value = !!c["expandable-content"] && y.value;
2047
+ n.value = !!f["expandable-content"] && y.value;
2002
2048
  }
2003
2049
  function v() {
2004
- t("update:modelValue", o.value), u();
2050
+ l("update:modelValue", o.value), u();
2005
2051
  }
2006
- X(() => {
2052
+ K(() => {
2007
2053
  o.theme === "outline" && u();
2008
2054
  });
2009
- function a() {
2055
+ function i() {
2010
2056
  r.value = !0;
2011
2057
  }
2012
- function f() {
2058
+ function c() {
2013
2059
  r.value = !1;
2014
2060
  }
2015
- return J(
2061
+ return L(
2016
2062
  () => o.modelValue,
2017
2063
  () => {
2018
2064
  u();
2019
2065
  }
2020
- ), l({
2066
+ ), t({
2021
2067
  checked: y,
2022
2068
  isExpanded: n
2023
- }), (d, j) => (m(), p("label", {
2069
+ }), (d, S) => (m(), p("label", {
2024
2070
  ref_key: "root",
2025
2071
  ref: s,
2026
2072
  class: w([
@@ -2044,19 +2090,19 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
2044
2090
  required: e.required,
2045
2091
  name: e.name,
2046
2092
  onChange: v,
2047
- onFocus: a,
2048
- onBlur: f
2049
- }, null, 40, xo),
2050
- b("span", Io, [
2093
+ onFocus: i,
2094
+ onBlur: c
2095
+ }, null, 40, Lo),
2096
+ b("span", Co, [
2051
2097
  h(d.$slots, "default", {}, void 0, !0)
2052
2098
  ]),
2053
- b("div", Oo, [
2054
- b("div", Bo, [
2099
+ b("div", Jo, [
2100
+ b("div", Po, [
2055
2101
  h(d.$slots, "radio-content", {}, void 0, !0)
2056
2102
  ]),
2057
2103
  b("div", {
2058
2104
  ref_key: "expandableElement",
2059
- ref: i,
2105
+ ref: a,
2060
2106
  class: w(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
2061
2107
  }, [
2062
2108
  h(d.$slots, "expandable-content", {}, void 0, !0)
@@ -2065,7 +2111,7 @@ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-d88510ab"]]), xo = ["id"
2065
2111
  ], 2));
2066
2112
  }
2067
2113
  });
2068
- const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-24cea99b"]]), Co = ["form", "name"], Jo = /* @__PURE__ */ $({
2114
+ const qo = /* @__PURE__ */ x(To, [["__scopeId", "data-v-24cea99b"]]), zo = ["form", "name"], Ao = /* @__PURE__ */ V({
2069
2115
  __name: "VJoyRadioGroup",
2070
2116
  props: {
2071
2117
  /**
@@ -2086,26 +2132,26 @@ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-24cea99b"]]), Co = ["for
2086
2132
  }
2087
2133
  },
2088
2134
  setup(e) {
2089
- return (l, t) => (m(), p("fieldset", {
2135
+ return (t, l) => (m(), p("fieldset", {
2090
2136
  ref: "root",
2091
2137
  class: "joy-radio-group-fieldset",
2092
2138
  role: "radiogroup",
2093
2139
  form: e.form,
2094
2140
  name: e.name
2095
2141
  }, [
2096
- h(l.$slots, "radio-group-legend", {}, void 0, !0),
2142
+ h(t.$slots, "radio-group-legend", {}, void 0, !0),
2097
2143
  b("div", {
2098
2144
  class: w(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2099
2145
  }, [
2100
- h(l.$slots, "default", {}, void 0, !0)
2146
+ h(t.$slots, "default", {}, void 0, !0)
2101
2147
  ], 2)
2102
- ], 8, Co));
2148
+ ], 8, zo));
2103
2149
  }
2104
2150
  });
2105
- const Po = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-a77e7f95"]]), qo = { class: "joy-screen-loader__content" }, To = {
2151
+ const Fo = /* @__PURE__ */ x(Ao, [["__scopeId", "data-v-a77e7f95"]]), Do = { class: "joy-screen-loader__content" }, Ro = {
2106
2152
  key: 0,
2107
2153
  class: "joy-screen-loader__content"
2108
- }, zo = /* @__PURE__ */ $({
2154
+ }, Mo = /* @__PURE__ */ V({
2109
2155
  __name: "VJoyScreenLoader",
2110
2156
  props: {
2111
2157
  /** Light or dark. Changes the spinner and background color */
@@ -2120,23 +2166,23 @@ const Po = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-a77e7f95"]]), qo = { cla
2120
2166
  }
2121
2167
  },
2122
2168
  setup(e) {
2123
- return (l, t) => (m(), p("div", {
2169
+ return (t, l) => (m(), p("div", {
2124
2170
  class: w(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2125
2171
  }, [
2126
- b("div", qo, [
2127
- h(l.$slots, "spinner", {}, () => [
2128
- N(pe, {
2172
+ b("div", Do, [
2173
+ h(t.$slots, "spinner", {}, () => [
2174
+ M(he, {
2129
2175
  color: e.color === "dark" ? "white" : "teal"
2130
2176
  }, null, 8, ["color"])
2131
2177
  ], !0),
2132
- l.$slots.content ? (m(), p("div", To, [
2133
- h(l.$slots, "content", {}, void 0, !0)
2178
+ t.$slots.content ? (m(), p("div", Ro, [
2179
+ h(t.$slots, "content", {}, void 0, !0)
2134
2180
  ])) : _("", !0)
2135
2181
  ])
2136
2182
  ], 2));
2137
2183
  }
2138
2184
  });
2139
- const be = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id", "name", "aria-invalid", "required", "disabled", "value"], Fo = /* @__PURE__ */ $({
2185
+ const _e = /* @__PURE__ */ x(Mo, [["__scopeId", "data-v-5c4f6d7f"]]), No = ["id", "name", "aria-invalid", "required", "disabled", "value"], Ho = /* @__PURE__ */ V({
2140
2186
  __name: "VJoySelect",
2141
2187
  props: {
2142
2188
  disabled: {
@@ -2179,26 +2225,26 @@ const be = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2179
2225
  // ...TEXT_BASED_PROPS,
2180
2226
  },
2181
2227
  emits: ["update:modelValue"],
2182
- setup(e, { emit: l }) {
2183
- const t = e, o = g(), n = g(), r = G(), s = g(!1), i = L(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
2184
- X(() => {
2185
- var f;
2228
+ setup(e, { emit: t }) {
2229
+ const l = e, o = g(), n = g(), r = Q(), s = g(!1), a = B(() => l.labelSize ? l.labelSize : l.size !== "medium" ? "small" : "medium");
2230
+ K(() => {
2231
+ var c;
2186
2232
  const v = r.label && r.label();
2187
2233
  if (!v || !v.length)
2188
2234
  return;
2189
- const a = v[0];
2190
- if (a.type === "JoyLabel") {
2191
- const d = (f = a.props) == null ? void 0 : f.for;
2235
+ const i = v[0];
2236
+ if (i.type === "JoyLabel") {
2237
+ const d = (c = i.props) == null ? void 0 : c.for;
2192
2238
  if (!d) {
2193
2239
  console.warn("JoyLabel for attribute is missing");
2194
2240
  return;
2195
2241
  }
2196
- d !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2242
+ d !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2197
2243
  }
2198
2244
  });
2199
- function c(v) {
2200
- const a = v.target.value;
2201
- l("update:modelValue", a);
2245
+ function f(v) {
2246
+ const i = v.target.value;
2247
+ t("update:modelValue", i);
2202
2248
  }
2203
2249
  function y() {
2204
2250
  s.value = !0;
@@ -2206,19 +2252,19 @@ const be = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2206
2252
  function u() {
2207
2253
  s.value = !1;
2208
2254
  }
2209
- return (v, a) => (m(), p("div", {
2255
+ return (v, i) => (m(), p("div", {
2210
2256
  ref_key: "root",
2211
2257
  ref: o
2212
2258
  }, [
2213
2259
  h(v.$slots, "select-label", {}, () => [
2214
- e.label ? (m(), x(W, {
2260
+ e.label ? (m(), O(W, {
2215
2261
  key: 0,
2216
2262
  required: e.required && e.requiredMark,
2217
2263
  "optional-label": e.optionalLabel,
2218
2264
  for: e.id || e.name,
2219
- size: i.value
2265
+ size: a.value
2220
2266
  }, {
2221
- default: B(() => [
2267
+ default: E(() => [
2222
2268
  C(I(e.label), 1)
2223
2269
  ]),
2224
2270
  _: 1
@@ -2245,13 +2291,13 @@ const be = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2245
2291
  required: e.required,
2246
2292
  disabled: e.disabled,
2247
2293
  value: e.modelValue,
2248
- onInput: c,
2294
+ onInput: f,
2249
2295
  onFocus: y,
2250
2296
  onBlur: u
2251
2297
  }, [
2252
2298
  h(v.$slots, "default", {}, void 0, !0)
2253
- ], 40, Ao),
2254
- N(R, {
2299
+ ], 40, No),
2300
+ M(F, {
2255
2301
  class: "joy-select__chevron",
2256
2302
  name: "chevron-down"
2257
2303
  })
@@ -2259,7 +2305,7 @@ const be = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id"
2259
2305
  ], 512));
2260
2306
  }
2261
2307
  });
2262
- const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["aria-disabled"], Mo = ["id", "value", "checked", "disabled", "required", "name"], No = /* @__PURE__ */ $({
2308
+ const Wo = /* @__PURE__ */ x(Ho, [["__scopeId", "data-v-18112ea4"]]), Uo = ["aria-disabled"], Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = /* @__PURE__ */ V({
2263
2309
  __name: "VJoySelectableItem",
2264
2310
  props: {
2265
2311
  disabled: {
@@ -2295,16 +2341,16 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["ari
2295
2341
  }
2296
2342
  },
2297
2343
  emits: ["update:checked"],
2298
- setup(e, { emit: l }) {
2299
- const t = e, o = g(t.checked), n = g(), r = g(!1), s = t.multiple ? "div" : "label", i = {
2344
+ setup(e, { emit: t }) {
2345
+ const l = e, o = g(l.checked), n = g(), r = g(!1), s = l.multiple ? "div" : "label", a = {
2300
2346
  onRadioChange: () => {
2301
- l("update:checked", t.value);
2347
+ t("update:checked", l.value);
2302
2348
  },
2303
2349
  onClick: () => {
2304
- t.checked && !t.multiple && l("update:checked", "");
2350
+ l.checked && !l.multiple && t("update:checked", "");
2305
2351
  },
2306
2352
  onLabelClick: (y) => {
2307
- t.multiple || y.stopPropagation();
2353
+ l.multiple || y.stopPropagation();
2308
2354
  },
2309
2355
  onFocus: () => {
2310
2356
  r.value = !0;
@@ -2313,8 +2359,8 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["ari
2313
2359
  r.value = !1;
2314
2360
  }
2315
2361
  };
2316
- function c(y) {
2317
- l("update:checked", y);
2362
+ function f(y) {
2363
+ t("update:checked", y);
2318
2364
  }
2319
2365
  return (y, u) => (m(), p("div", {
2320
2366
  class: w([
@@ -2325,7 +2371,7 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["ari
2325
2371
  ]),
2326
2372
  "aria-disabled": e.disabled,
2327
2373
  onClick: u[4] || (u[4] = //@ts-ignore
2328
- (...v) => i.onClick && i.onClick(...v))
2374
+ (...v) => a.onClick && a.onClick(...v))
2329
2375
  }, [
2330
2376
  e.multiple ? _("", !0) : (m(), p("input", {
2331
2377
  key: 0,
@@ -2339,13 +2385,13 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["ari
2339
2385
  required: e.required,
2340
2386
  name: e.name,
2341
2387
  onChange: u[0] || (u[0] = //@ts-ignore
2342
- (...v) => i.onRadioChange && i.onRadioChange(...v)),
2388
+ (...v) => a.onRadioChange && a.onRadioChange(...v)),
2343
2389
  onFocus: u[1] || (u[1] = //@ts-ignore
2344
- (...v) => i.onFocus && i.onFocus(...v)),
2390
+ (...v) => a.onFocus && a.onFocus(...v)),
2345
2391
  onBlur: u[2] || (u[2] = //@ts-ignore
2346
- (...v) => i.onBlur && i.onBlur(...v))
2347
- }, null, 40, Mo)),
2348
- (m(), x(ce(k(s)), {
2392
+ (...v) => a.onBlur && a.onBlur(...v))
2393
+ }, null, 40, Go)),
2394
+ (m(), O(fe($(s)), {
2349
2395
  for: e.id,
2350
2396
  class: w([
2351
2397
  "joy-selectable-item",
@@ -2356,26 +2402,26 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["ari
2356
2402
  "joy-selectable-item--single": !e.multiple
2357
2403
  }
2358
2404
  ]),
2359
- onClick: i.onLabelClick
2405
+ onClick: a.onLabelClick
2360
2406
  }, {
2361
- default: B(() => [
2362
- e.multiple ? (m(), x(k(he), {
2407
+ default: E(() => [
2408
+ e.multiple ? (m(), O($(ge), {
2363
2409
  key: 0,
2364
2410
  id: e.id,
2365
2411
  checked: o.value,
2366
2412
  "onUpdate:checked": [
2367
2413
  u[3] || (u[3] = (v) => o.value = v),
2368
- c
2414
+ f
2369
2415
  ],
2370
2416
  disabled: e.disabled,
2371
2417
  value: e.value,
2372
2418
  name: e.name,
2373
2419
  "display-focus": !1,
2374
2420
  required: e.required,
2375
- onFocus: i.onFocus,
2376
- onBlur: i.onBlur
2421
+ onFocus: a.onFocus,
2422
+ onBlur: a.onBlur
2377
2423
  }, {
2378
- default: B(() => [
2424
+ default: E(() => [
2379
2425
  h(y.$slots, "default", {}, void 0, !0)
2380
2426
  ]),
2381
2427
  _: 3
@@ -2389,18 +2435,18 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-18112ea4"]]), Ro = ["ari
2389
2435
  ]),
2390
2436
  _: 3
2391
2437
  }, 8, ["for", "class", "onClick"]))
2392
- ], 10, Ro));
2438
+ ], 10, Uo));
2393
2439
  }
2394
2440
  });
2395
- const lt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"], Wo = /* @__PURE__ */ $({
2441
+ const lt = /* @__PURE__ */ x(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"], Yo = /* @__PURE__ */ V({
2396
2442
  __name: "VJoySelectableItemGroup",
2397
2443
  props: {
2398
2444
  options: {
2399
2445
  type: Array,
2400
2446
  required: !0,
2401
2447
  validator(e) {
2402
- const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
2403
- return l && t;
2448
+ const t = e.every((o) => Object.keys(o).includes("value")), l = e.every((o) => Object.keys(o).includes("label"));
2449
+ return t && l;
2404
2450
  }
2405
2451
  },
2406
2452
  id: String,
@@ -2432,29 +2478,29 @@ const lt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"
2432
2478
  }
2433
2479
  },
2434
2480
  emits: ["update:value"],
2435
- setup(e, { emit: l }) {
2436
- const t = e;
2481
+ setup(e, { emit: t }) {
2482
+ const l = e;
2437
2483
  function o(r) {
2438
- return typeof t.value == "string" ? t.value === r.value : (t.value || []).includes(r.value);
2484
+ return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
2439
2485
  }
2440
2486
  function n(r, s) {
2441
- if (!t.multiple)
2442
- return l("update:value", s);
2443
- let i = [...t.value || []];
2444
- s && typeof s == "boolean" ? i.push(r) : i.splice(i.indexOf(r), 1), l("update:value", i);
2487
+ if (!l.multiple)
2488
+ return t("update:value", s);
2489
+ let a = [...l.value || []];
2490
+ s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
2445
2491
  }
2446
2492
  return (r, s) => (m(), p("fieldset", {
2447
2493
  id: e.id,
2448
2494
  class: "joy-selectable-item-group__wrapper"
2449
2495
  }, [
2450
- e.label ? (m(), x(k(W), {
2496
+ e.label ? (m(), O($(W), {
2451
2497
  key: 0,
2452
2498
  "tag-name": "legend",
2453
2499
  required: e.required && e.requiredMark,
2454
2500
  "optional-label": e.optionalLabel,
2455
2501
  size: e.labelSize
2456
2502
  }, {
2457
- default: B(() => [
2503
+ default: E(() => [
2458
2504
  C(I(e.label), 1)
2459
2505
  ]),
2460
2506
  _: 1
@@ -2469,34 +2515,34 @@ const lt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"
2469
2515
  }
2470
2516
  ])
2471
2517
  }, [
2472
- (m(!0), p(fe, null, ye(e.options, (i) => (m(), x(k(lt), {
2473
- id: i.id,
2474
- key: i.id,
2475
- name: i.name,
2476
- disabled: i.disabled,
2477
- value: i.value,
2518
+ (m(!0), p(ye, null, ve(e.options, (a) => (m(), O($(lt), {
2519
+ id: a.id,
2520
+ key: a.id,
2521
+ name: a.name,
2522
+ disabled: a.disabled,
2523
+ value: a.value,
2478
2524
  multiple: e.multiple,
2479
- checked: o(i),
2480
- "onUpdate:checked": (c) => n(i.value, c)
2525
+ checked: o(a),
2526
+ "onUpdate:checked": (f) => n(a.value, f)
2481
2527
  }, We({
2482
- default: B(() => [
2483
- C(I(i.label) + " ", 1)
2528
+ default: E(() => [
2529
+ C(I(a.label) + " ", 1)
2484
2530
  ]),
2485
2531
  _: 2
2486
2532
  }, [
2487
- i.subLabel ? {
2533
+ a.subLabel ? {
2488
2534
  name: "selectable-item-sublabel",
2489
- fn: B(() => [
2490
- C(I(i.subLabel), 1)
2535
+ fn: E(() => [
2536
+ C(I(a.subLabel), 1)
2491
2537
  ]),
2492
2538
  key: "0"
2493
2539
  } : void 0
2494
2540
  ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2495
2541
  ], 2)
2496
- ], 8, Ho));
2542
+ ], 8, Qo));
2497
2543
  }
2498
2544
  });
2499
- const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-0730aed0"]]), Go = /* @__PURE__ */ $({
2545
+ const Zo = /* @__PURE__ */ x(Yo, [["__scopeId", "data-v-0730aed0"]]), Xo = /* @__PURE__ */ V({
2500
2546
  __name: "VJoyWrapper",
2501
2547
  props: {
2502
2548
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2530,7 +2576,7 @@ const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-0730aed0"]]), Go = /* @_
2530
2576
  }
2531
2577
  },
2532
2578
  setup(e) {
2533
- return ct("VJoyWrapperContext", e), (t, o) => (m(), p("div", {
2579
+ return ft("VJoyWrapperContext", e), (l, o) => (m(), p("div", {
2534
2580
  class: w([
2535
2581
  "joy-wrapper",
2536
2582
  `joy-wrapper--justify-${e.justify}`,
@@ -2541,32 +2587,32 @@ const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-0730aed0"]]), Go = /* @_
2541
2587
  { "joy-wrapper--has-margin": !e.noMargin }
2542
2588
  ])
2543
2589
  }, [
2544
- h(t.$slots, "default", {}, void 0, !0)
2590
+ h(l.$slots, "default", {}, void 0, !0)
2545
2591
  ], 2));
2546
2592
  }
2547
2593
  });
2548
- const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { class: "joy-template__wrapper" }, Zo = {
2594
+ const en = /* @__PURE__ */ x(Xo, [["__scopeId", "data-v-e2f29698"]]), tn = { class: "joy-template__wrapper" }, ln = {
2549
2595
  key: 0,
2550
2596
  class: "joy-template__heading"
2551
- }, Yo = {
2597
+ }, on = {
2552
2598
  key: 0,
2553
2599
  class: "joy-template-slot-back"
2554
- }, Xo = { class: "joy-template__heading___headings" }, en = {
2600
+ }, nn = { class: "joy-template__heading___headings" }, an = {
2555
2601
  key: 0,
2556
2602
  class: "joy-template-slot-title"
2557
- }, tn = {
2603
+ }, rn = {
2558
2604
  key: 1,
2559
2605
  class: "joy-template-slot-subtitle"
2560
- }, ln = {
2606
+ }, sn = {
2561
2607
  key: 1,
2562
2608
  class: "joy-template-slot-actions"
2563
- }, on = {
2609
+ }, un = {
2564
2610
  key: 0,
2565
2611
  class: "joy-template-slot-main"
2566
- }, nn = {
2612
+ }, dn = {
2567
2613
  key: 1,
2568
2614
  class: "joy-template-slot-sidebar"
2569
- }, an = /* @__PURE__ */ $({
2615
+ }, cn = /* @__PURE__ */ V({
2570
2616
  __name: "VJoyTemplate",
2571
2617
  props: {
2572
2618
  full: { type: Boolean, default: !1 },
@@ -2581,24 +2627,24 @@ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { cla
2581
2627
  }
2582
2628
  },
2583
2629
  setup(e) {
2584
- const l = e, t = G(), o = L(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
2630
+ const t = e, l = Q(), o = B(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"] || !!l["template-actions"]);
2585
2631
  return (n, r) => (m(), p("main", {
2586
2632
  class: w(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
2587
2633
  }, [
2588
- b("div", Qo, [
2589
- o.value ? (m(), p("div", Zo, [
2590
- k(t)["template-back"] ? (m(), p("div", Yo, [
2634
+ b("div", tn, [
2635
+ o.value ? (m(), p("div", ln, [
2636
+ $(l)["template-back"] ? (m(), p("div", on, [
2591
2637
  h(n.$slots, "template-back", {}, void 0, !0)
2592
2638
  ])) : _("", !0),
2593
- b("div", Xo, [
2594
- k(t)["template-title"] ? (m(), p("div", en, [
2639
+ b("div", nn, [
2640
+ $(l)["template-title"] ? (m(), p("div", an, [
2595
2641
  h(n.$slots, "template-title", {}, void 0, !0)
2596
2642
  ])) : _("", !0),
2597
- k(t)["template-subtitle"] ? (m(), p("div", tn, [
2643
+ $(l)["template-subtitle"] ? (m(), p("div", rn, [
2598
2644
  h(n.$slots, "template-subtitle", {}, void 0, !0)
2599
2645
  ])) : _("", !0)
2600
2646
  ]),
2601
- k(t)["template-actions"] ? (m(), p("div", ln, [
2647
+ $(l)["template-actions"] ? (m(), p("div", sn, [
2602
2648
  h(n.$slots, "template-actions", {}, void 0, !0)
2603
2649
  ])) : _("", !0)
2604
2650
  ])) : _("", !0),
@@ -2606,24 +2652,24 @@ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { cla
2606
2652
  class: w([
2607
2653
  "joy-template__content",
2608
2654
  {
2609
- "joy-template__content--reverse": l.sidebar === "left"
2655
+ "joy-template__content--reverse": t.sidebar === "left"
2610
2656
  }
2611
2657
  ])
2612
2658
  }, [
2613
- n.$slots["template-main"] ? (m(), p("div", on, [
2659
+ n.$slots["template-main"] ? (m(), p("div", un, [
2614
2660
  h(n.$slots, "template-main", {}, void 0, !0)
2615
2661
  ])) : _("", !0),
2616
- n.$slots["template-sidebar"] ? (m(), p("div", nn, [
2662
+ n.$slots["template-sidebar"] ? (m(), p("div", dn, [
2617
2663
  h(n.$slots, "template-sidebar", {}, void 0, !0)
2618
2664
  ])) : _("", !0)
2619
2665
  ], 2)
2620
2666
  ]),
2621
- e.loading ? (m(), x(be, {
2667
+ e.loading ? (m(), O(_e, {
2622
2668
  key: 0,
2623
2669
  overlay: "",
2624
2670
  color: e.loadingColor
2625
2671
  }, {
2626
- content: B(() => [
2672
+ content: E(() => [
2627
2673
  h(n.$slots, "template-loader-content", {}, void 0, !0)
2628
2674
  ]),
2629
2675
  _: 3
@@ -2631,13 +2677,13 @@ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { cla
2631
2677
  ], 2));
2632
2678
  }
2633
2679
  });
2634
- const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["aria-disabled"], un = { class: "joy-textarea_wrapper" }, dn = ["id", "disabled", "name", "required", "minlength", "value"], cn = {
2680
+ const fn = /* @__PURE__ */ x(cn, [["__scopeId", "data-v-a2355e4b"]]), yn = ["aria-disabled"], vn = { class: "joy-textarea_wrapper" }, mn = ["id", "disabled", "name", "required", "minlength", "value"], pn = {
2635
2681
  key: 0,
2636
2682
  class: "joy-textarea_helpers"
2637
- }, fn = {
2683
+ }, hn = {
2638
2684
  inheritAttrs: !1
2639
- }, yn = /* @__PURE__ */ $({
2640
- ...fn,
2685
+ }, gn = /* @__PURE__ */ V({
2686
+ ...hn,
2641
2687
  __name: "VJoyTextarea",
2642
2688
  props: {
2643
2689
  disabled: {
@@ -2685,25 +2731,25 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2685
2731
  }
2686
2732
  },
2687
2733
  emits: ["update:modelValue"],
2688
- setup(e, { expose: l, emit: t }) {
2689
- const o = e, n = g(), { triggerResize: r } = Xt({
2734
+ setup(e, { expose: t, emit: l }) {
2735
+ const o = e, n = g(), { triggerResize: r } = el({
2690
2736
  element: o.autogrow ? n : void 0
2691
- }), s = g(!1), i = g(!1), c = L(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), y = L(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2737
+ }), s = g(!1), a = g(!1), f = B(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), y = B(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2692
2738
  onInput: (v) => {
2693
- t("update:modelValue", v.target.value), r();
2739
+ l("update:modelValue", v.target.value), r();
2694
2740
  },
2695
2741
  onBlur: () => {
2696
- i.value = !1, s.value = c.value || y.value;
2742
+ a.value = !1, s.value = f.value || y.value;
2697
2743
  },
2698
2744
  onFocus: () => {
2699
- i.value = !0;
2745
+ a.value = !0;
2700
2746
  }
2701
2747
  };
2702
- return l({
2748
+ return t({
2703
2749
  isInvalid: s,
2704
- valueOverMaxlength: c,
2750
+ valueOverMaxlength: f,
2705
2751
  valueUnderMinlength: y
2706
- }), (v, a) => (m(), p("div", {
2752
+ }), (v, i) => (m(), p("div", {
2707
2753
  "aria-disabled": e.disabled,
2708
2754
  class: w([
2709
2755
  "joy-textarea",
@@ -2711,25 +2757,25 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2711
2757
  "joy-textarea_invalid": s.value || e.invalid,
2712
2758
  "joy-textarea_disabled": e.disabled,
2713
2759
  "joy-textarea_autogrow": e.autogrow,
2714
- "joy-textarea_focusing": i.value
2760
+ "joy-textarea_focusing": a.value
2715
2761
  }
2716
2762
  ])
2717
2763
  }, [
2718
- N(k(W), {
2764
+ M($(W), {
2719
2765
  for: e.id,
2720
2766
  required: e.required && e.requiredMark,
2721
2767
  "optional-label": e.optionalLabel,
2722
2768
  size: e.labelSize
2723
2769
  }, {
2724
- default: B(() => [
2770
+ default: E(() => [
2725
2771
  h(v.$slots, "default", {}, () => [
2726
2772
  C(I(e.label), 1)
2727
2773
  ], !0)
2728
2774
  ]),
2729
2775
  _: 3
2730
2776
  }, 8, ["for", "required", "optional-label", "size"]),
2731
- b("div", un, [
2732
- b("textarea", Y(v.$attrs, {
2777
+ b("div", vn, [
2778
+ b("textarea", ee(v.$attrs, {
2733
2779
  id: e.id,
2734
2780
  ref_key: "textarea",
2735
2781
  ref: n,
@@ -2739,20 +2785,20 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2739
2785
  required: e.required,
2740
2786
  minlength: e.minlength,
2741
2787
  value: e.modelValue,
2742
- onInput: a[0] || (a[0] = //@ts-ignore
2743
- (...f) => u.onInput && u.onInput(...f)),
2744
- onFocus: a[1] || (a[1] = //@ts-ignore
2745
- (...f) => u.onFocus && u.onFocus(...f)),
2746
- onBlur: a[2] || (a[2] = //@ts-ignore
2747
- (...f) => u.onBlur && u.onBlur(...f))
2748
- }), null, 16, dn)
2788
+ onInput: i[0] || (i[0] = //@ts-ignore
2789
+ (...c) => u.onInput && u.onInput(...c)),
2790
+ onFocus: i[1] || (i[1] = //@ts-ignore
2791
+ (...c) => u.onFocus && u.onFocus(...c)),
2792
+ onBlur: i[2] || (i[2] = //@ts-ignore
2793
+ (...c) => u.onBlur && u.onBlur(...c))
2794
+ }), null, 16, mn)
2749
2795
  ]),
2750
- e.minlength || e.maxlength ? (m(), p("div", cn, [
2796
+ e.minlength || e.maxlength ? (m(), p("div", pn, [
2751
2797
  e.minlength ? (m(), p("p", {
2752
2798
  key: 0,
2753
2799
  class: w(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2754
2800
  }, [
2755
- y.value ? _("", !0) : (m(), x(R, {
2801
+ y.value ? _("", !0) : (m(), O(F, {
2756
2802
  key: 0,
2757
2803
  name: "check",
2758
2804
  color: "neutral",
@@ -2762,13 +2808,13 @@ const rn = /* @__PURE__ */ V(an, [["__scopeId", "data-v-a2355e4b"]]), sn = ["ari
2762
2808
  ], 2)) : _("", !0),
2763
2809
  e.maxlength ? (m(), p("p", {
2764
2810
  key: 1,
2765
- class: w(["joy-textarea-count", { "joy-textarea-count-invalid": c.value }])
2811
+ class: w(["joy-textarea-count", { "joy-textarea-count-invalid": f.value }])
2766
2812
  }, I(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
2767
2813
  ])) : _("", !0)
2768
- ], 10, sn));
2814
+ ], 10, yn));
2769
2815
  }
2770
2816
  });
2771
- const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) => (ft("data-v-cf79d999"), e = e(), yt(), e), mn = { class: "joy-toggle__wrapper" }, pn = ["name", "disabled", "checked", "required", "aria-checked", "value"], hn = { class: "joy-toggle__content" }, gn = /* @__PURE__ */ ot(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), bn = { class: "joy-toggle__content-label" }, _n = /* @__PURE__ */ ot(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
2817
+ const bn = /* @__PURE__ */ x(gn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) => (yt("data-v-cf79d999"), e = e(), vt(), e), _n = { class: "joy-toggle__wrapper" }, wn = ["name", "disabled", "checked", "required", "aria-checked", "value"], Sn = { class: "joy-toggle__content" }, jn = /* @__PURE__ */ ot(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), kn = { class: "joy-toggle__content-label" }, $n = /* @__PURE__ */ ot(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
2772
2818
  /* @__PURE__ */ b("svg", {
2773
2819
  width: "18",
2774
2820
  height: "10",
@@ -2781,7 +2827,7 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2781
2827
  fill: "currentColor"
2782
2828
  })
2783
2829
  ])
2784
- ], -1)), wn = /* @__PURE__ */ $({
2830
+ ], -1)), Vn = /* @__PURE__ */ V({
2785
2831
  __name: "VJoyToggle",
2786
2832
  props: {
2787
2833
  modelValue: {
@@ -2814,27 +2860,27 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2814
2860
  label: String
2815
2861
  },
2816
2862
  emits: ["update:modelValue"],
2817
- setup(e, { emit: l }) {
2818
- const t = g(!1), o = {
2863
+ setup(e, { emit: t }) {
2864
+ const l = g(!1), o = {
2819
2865
  onChange: (n) => {
2820
2866
  const r = n.target.checked;
2821
- l("update:modelValue", r);
2867
+ t("update:modelValue", r);
2822
2868
  },
2823
2869
  onFocus: () => {
2824
- t.value = !0;
2870
+ l.value = !0;
2825
2871
  },
2826
2872
  onBlur: () => {
2827
- t.value = !1;
2873
+ l.value = !1;
2828
2874
  }
2829
2875
  };
2830
- return (n, r) => (m(), p("div", mn, [
2876
+ return (n, r) => (m(), p("div", _n, [
2831
2877
  b("label", {
2832
2878
  class: w([
2833
2879
  "joy-toggle",
2834
2880
  {
2835
2881
  "joy-toggle__checked": e.modelValue,
2836
2882
  "joy-toggle__disabled": e.disabled,
2837
- "joy-toggle__focusing": t.value
2883
+ "joy-toggle__focusing": l.value
2838
2884
  }
2839
2885
  ])
2840
2886
  }, [
@@ -2855,81 +2901,81 @@ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2855
2901
  (...s) => o.onFocus && o.onFocus(...s)),
2856
2902
  onBlur: r[2] || (r[2] = //@ts-ignore
2857
2903
  (...s) => o.onBlur && o.onBlur(...s))
2858
- }, null, 40, pn),
2859
- b("p", hn, [
2860
- gn,
2861
- b("span", bn, [
2904
+ }, null, 40, wn),
2905
+ b("p", Sn, [
2906
+ jn,
2907
+ b("span", kn, [
2862
2908
  h(n.$slots, "default", {}, () => [
2863
2909
  C(I(e.label), 1)
2864
2910
  ], !0)
2865
2911
  ]),
2866
- _n
2912
+ $n
2867
2913
  ])
2868
2914
  ], 2)
2869
2915
  ]));
2870
2916
  }
2871
2917
  });
2872
- const Sn = /* @__PURE__ */ V(wn, [["__scopeId", "data-v-cf79d999"]]), jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2918
+ const xn = /* @__PURE__ */ x(Vn, [["__scopeId", "data-v-cf79d999"]]), On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2873
2919
  __proto__: null,
2874
- VJoyBadge: pt,
2920
+ VJoyBadge: ht,
2875
2921
  VJoyButton: Ue,
2876
- VJoyCheckbox: he,
2877
- VJoyCounter: Ft,
2878
- VJoyDropdown: Fl,
2922
+ VJoyCheckbox: ge,
2923
+ VJoyCounter: Dt,
2924
+ VJoyDropdown: Wl,
2879
2925
  VJoyDropdownList: et,
2880
2926
  VJoyFormError: tt,
2881
- VJoyHighlight: Gl,
2882
- VJoyIcon: R,
2883
- VJoyInput: oo,
2927
+ VJoyHighlight: Xl,
2928
+ VJoyIcon: F,
2929
+ VJoyInput: so,
2884
2930
  VJoyLabel: W,
2885
- VJoyLink: ro,
2886
- VJoyMultiCheckbox: fo,
2887
- VJoyPanel: wo,
2888
- VJoyPanelSection: Vo,
2889
- VJoyRadio: Eo,
2890
- VJoyRadioGroup: Po,
2891
- VJoyScreenLoader: be,
2892
- VJoySelect: Do,
2931
+ VJoyLink: yo,
2932
+ VJoyMultiCheckbox: ho,
2933
+ VJoyPanel: Vo,
2934
+ VJoyPanelSection: Eo,
2935
+ VJoyRadio: qo,
2936
+ VJoyRadioGroup: Fo,
2937
+ VJoyScreenLoader: _e,
2938
+ VJoySelect: Wo,
2893
2939
  VJoySelectableItem: lt,
2894
- VJoySelectableItemGroup: Uo,
2895
- VJoySpinner: pe,
2896
- VJoyTemplate: rn,
2897
- VJoyTextarea: vn,
2898
- VJoyToggle: Sn,
2899
- VJoyWrapper: Ko
2900
- }, Symbol.toStringTag, { value: "Module" })), $n = {
2940
+ VJoySelectableItemGroup: Zo,
2941
+ VJoySpinner: he,
2942
+ VJoyTemplate: fn,
2943
+ VJoyTextarea: bn,
2944
+ VJoyToggle: xn,
2945
+ VJoyWrapper: en
2946
+ }, Symbol.toStringTag, { value: "Module" })), Bn = {
2901
2947
  install: (e) => {
2902
- Object.entries(jn).forEach(([l, t]) => {
2903
- e.component(l, t);
2948
+ Object.entries(On).forEach(([t, l]) => {
2949
+ e.component(t, l);
2904
2950
  });
2905
2951
  }
2906
2952
  };
2907
2953
  export {
2908
- $n as JoyVuePlugin,
2909
- pt as VJoyBadge,
2954
+ Bn as JoyVuePlugin,
2955
+ ht as VJoyBadge,
2910
2956
  Ue as VJoyButton,
2911
- he as VJoyCheckbox,
2912
- Ft as VJoyCounter,
2913
- Fl as VJoyDropdown,
2957
+ ge as VJoyCheckbox,
2958
+ Dt as VJoyCounter,
2959
+ Wl as VJoyDropdown,
2914
2960
  et as VJoyDropdownList,
2915
2961
  tt as VJoyFormError,
2916
- Gl as VJoyHighlight,
2917
- R as VJoyIcon,
2918
- oo as VJoyInput,
2962
+ Xl as VJoyHighlight,
2963
+ F as VJoyIcon,
2964
+ so as VJoyInput,
2919
2965
  W as VJoyLabel,
2920
- ro as VJoyLink,
2921
- fo as VJoyMultiCheckbox,
2922
- wo as VJoyPanel,
2923
- Vo as VJoyPanelSection,
2924
- Eo as VJoyRadio,
2925
- Po as VJoyRadioGroup,
2926
- be as VJoyScreenLoader,
2927
- Do as VJoySelect,
2966
+ yo as VJoyLink,
2967
+ ho as VJoyMultiCheckbox,
2968
+ Vo as VJoyPanel,
2969
+ Eo as VJoyPanelSection,
2970
+ qo as VJoyRadio,
2971
+ Fo as VJoyRadioGroup,
2972
+ _e as VJoyScreenLoader,
2973
+ Wo as VJoySelect,
2928
2974
  lt as VJoySelectableItem,
2929
- Uo as VJoySelectableItemGroup,
2930
- pe as VJoySpinner,
2931
- rn as VJoyTemplate,
2932
- vn as VJoyTextarea,
2933
- Sn as VJoyToggle,
2934
- Ko as VJoyWrapper
2975
+ Zo as VJoySelectableItemGroup,
2976
+ he as VJoySpinner,
2977
+ fn as VJoyTemplate,
2978
+ bn as VJoyTextarea,
2979
+ xn as VJoyToggle,
2980
+ en as VJoyWrapper
2935
2981
  };