@maltjoy/core-vue 3.7.5 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/joy-vue.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as $, openBlock as v, createElementBlock as p, normalizeClass as w, renderSlot as h, createTextVNode as C, toDisplayString as I, createElementVNode as g, useAttrs as Me, computed as L, createBlock as x, resolveDynamicComponent as ce, unref as k, withCtx as B, createCommentVNode as _, ref as b, 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";
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
2
  const vt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], mt = /* @__PURE__ */ $({
3
3
  __name: "VJoyBadge",
4
4
  props: {
@@ -27,7 +27,7 @@ const vt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue
27
27
  }
28
28
  },
29
29
  setup(e) {
30
- return (t, l) => (v(), 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
  }, [
@@ -39,8 +39,8 @@ const vt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue
39
39
  });
40
40
  const V = (e, t) => {
41
41
  const l = e.__vccOpts || e;
42
- for (const [o, a] of t)
43
- l[o] = a;
42
+ for (const [o, n] of t)
43
+ l[o] = n;
44
44
  return l;
45
45
  }, pt = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-1ed08e27"]]), ht = ["teal", "white"], gt = /* @__PURE__ */ $({
46
46
  __name: "VJoySpinner",
@@ -53,7 +53,7 @@ const V = (e, t) => {
53
53
  }
54
54
  },
55
55
  setup(e) {
56
- return (t, l) => (v(), 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
  }
@@ -75,10 +75,10 @@ const pe = /* @__PURE__ */ V(gt, [["__scopeId", "data-v-616a29d0"]]), R = /* @__
75
75
  }
76
76
  },
77
77
  setup(e) {
78
- return (t, l) => (v(), 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
- g("i", {
81
+ b("i", {
82
82
  class: w(["icon", `icon-${e.name}`])
83
83
  }, null, 2)
84
84
  ], 2));
@@ -144,8 +144,8 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
144
144
  default:
145
145
  return "small";
146
146
  }
147
- }), a = L(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
148
- return (r, s) => (v(), x(ce(k(l).href ? "a" : "button"), {
147
+ }), n = L(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
148
+ return (r, s) => (m(), x(ce(k(l).href ? "a" : "button"), {
149
149
  disabled: e.loading || k(l).disabled,
150
150
  type: k(l).type || "button",
151
151
  class: w([
@@ -159,22 +159,22 @@ const bt = ["primary", "secondary"], _t = ["neutral", "success", "info", "warnin
159
159
  ])
160
160
  }, {
161
161
  default: B(() => [
162
- e.icon && e.iconPosition === "left" ? (v(), x(R, {
162
+ e.icon && e.iconPosition === "left" ? (m(), x(R, {
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 ? (v(), x(pe, {
168
+ e.loading ? (m(), x(pe, {
169
169
  key: 1,
170
- color: a.value
170
+ color: n.value
171
171
  }, null, 8, ["color"])) : _("", !0),
172
- g("span", kt, [
172
+ b("span", kt, [
173
173
  h(r.$slots, "default", {}, () => [
174
174
  C(I(e.label), 1)
175
175
  ], !0)
176
176
  ]),
177
- e.icon && e.iconPosition === "right" ? (v(), x(R, {
177
+ e.icon && e.iconPosition === "right" ? (m(), x(R, {
178
178
  key: 2,
179
179
  class: "joy-button_icon joy-button_icon--right",
180
180
  name: e.icon,
@@ -210,6 +210,13 @@ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
210
210
  type: Boolean,
211
211
  default: !1
212
212
  },
213
+ /**
214
+ * Invalid state of the component
215
+ */
216
+ invalid: {
217
+ type: Boolean,
218
+ default: !1
219
+ },
213
220
  /** The value is used in multiselection context in order to build array of values. */
214
221
  value: {
215
222
  type: String,
@@ -233,41 +240,42 @@ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
233
240
  },
234
241
  emits: ["update:checked", "focus", "blur"],
235
242
  setup(e, { expose: t, emit: l }) {
236
- const o = e, a = b(), r = b(o.indeterminate), s = b(!1), n = {
237
- onChange: (f) => {
238
- const c = f.target.checked;
239
- r.value = !1, l("update:checked", c);
243
+ const o = e, n = g(), r = g(o.indeterminate), s = g(o.invalid), a = g(!1), c = {
244
+ onChange: (y) => {
245
+ const u = y.target.checked;
246
+ r.value = !1, s.value = !1, l("update:checked", u);
240
247
  },
241
248
  onFocus: () => {
242
- s.value = !0, l("focus");
249
+ a.value = !0, l("focus");
243
250
  },
244
251
  onBlur: () => {
245
- s.value = !1, l("blur");
252
+ a.value = !1, l("blur");
246
253
  }
247
254
  };
248
255
  return t({
249
256
  isIndeterminate: r
250
- }), (f, c) => (v(), p("div", {
257
+ }), (y, u) => (m(), p("div", {
251
258
  class: "joy-checkbox__wrapper",
252
259
  "aria-checked": e.checked,
253
260
  "aria-hidden": e.disabled
254
261
  }, [
255
- g("label", {
262
+ b("label", {
256
263
  class: w([
257
264
  "joy-checkbox",
258
265
  {
259
266
  "joy-checkbox__checked": e.checked,
260
267
  "joy-checkbox__indeterminate": r.value,
261
268
  "joy-checkbox__disabled": e.disabled,
262
- "joy-checkbox__focusing": s.value && e.displayFocus
269
+ "joy-checkbox__invalid": s.value,
270
+ "joy-checkbox__focusing": a.value && e.displayFocus
263
271
  }
264
272
  ])
265
273
  }, [
266
- g("div", xt, [
267
- g("input", {
274
+ b("div", xt, [
275
+ b("input", {
268
276
  id: e.id,
269
277
  ref_key: "input",
270
- ref: a,
278
+ ref: n,
271
279
  type: "checkbox",
272
280
  class: "joy-checkbox__input",
273
281
  role: "checkbox",
@@ -278,27 +286,27 @@ const Ue = /* @__PURE__ */ V($t, [["__scopeId", "data-v-ae0676bb"]]), Vt = ["ari
278
286
  "aria-checked": e.checked,
279
287
  value: e.value,
280
288
  indeterminate: r.value,
281
- onChange: c[0] || (c[0] = //@ts-ignore
282
- (...u) => n.onChange && n.onChange(...u)),
283
- onFocus: c[1] || (c[1] = //@ts-ignore
284
- (...u) => n.onFocus && n.onFocus(...u)),
285
- onBlur: c[2] || (c[2] = //@ts-ignore
286
- (...u) => n.onBlur && n.onBlur(...u))
289
+ onChange: u[0] || (u[0] = //@ts-ignore
290
+ (...v) => c.onChange && c.onChange(...v)),
291
+ onFocus: u[1] || (u[1] = //@ts-ignore
292
+ (...v) => c.onFocus && c.onFocus(...v)),
293
+ onBlur: u[2] || (u[2] = //@ts-ignore
294
+ (...v) => c.onBlur && c.onBlur(...v))
287
295
  }, null, 40, It)
288
296
  ]),
289
- g("div", Ot, [
290
- h(f.$slots, "default", {}, () => [
297
+ b("div", Ot, [
298
+ h(y.$slots, "default", {}, () => [
291
299
  C(I(e.label), 1)
292
300
  ], !0),
293
- g("div", Bt, [
294
- h(f.$slots, "checkbox-content", {}, void 0, !0)
301
+ b("div", Bt, [
302
+ h(y.$slots, "checkbox-content", {}, void 0, !0)
295
303
  ])
296
304
  ])
297
305
  ], 2)
298
306
  ], 8, Vt));
299
307
  }
300
308
  });
301
- const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { class: "joy-counter" }, Ct = ["aria-label", "disabled"], Jt = { class: "joy-counter__input-wrapper" }, Pt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], qt = {
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 = {
302
310
  key: 0,
303
311
  class: "joy-counter_error"
304
312
  }, zt = {
@@ -371,46 +379,46 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
371
379
  },
372
380
  emits: ["update:modelValue"],
373
381
  setup(e, { expose: t, emit: l }) {
374
- const o = e, a = b(!1), r = b(!1);
382
+ const o = e, n = g(!1), r = g(!1);
375
383
  function s() {
376
- const d = c(!1);
377
- d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), f();
384
+ const d = y(!1);
385
+ d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), c();
378
386
  }
379
- function n() {
380
- const d = c();
381
- 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();
387
+ function a() {
388
+ const d = y();
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), c();
382
390
  }
383
- function f() {
384
- a.value = !u();
391
+ function c() {
392
+ n.value = !u();
385
393
  }
386
- function c(d = !0) {
394
+ function y(d = !0) {
387
395
  const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
388
396
  return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
389
397
  }
390
398
  function u() {
391
- return m() && i();
399
+ return v() && i();
392
400
  }
393
- function m() {
401
+ function v() {
394
402
  return !o.max || o.modelValue <= o.max;
395
403
  }
396
404
  function i() {
397
405
  return o.min <= o.modelValue;
398
406
  }
399
- const y = {
407
+ const f = {
400
408
  onInput: (d) => {
401
- l("update:modelValue", +d.target.value || 0), a.value = !1;
409
+ l("update:modelValue", +d.target.value || 0), n.value = !1;
402
410
  },
403
411
  onFocus: () => {
404
412
  r.value = !0;
405
413
  },
406
414
  onBlur: () => {
407
- r.value = !1, f();
415
+ r.value = !1, c();
408
416
  }
409
417
  };
410
418
  return t({
411
419
  props: o
412
- }), (d, j) => (v(), p("div", Et, [
413
- e.label ? (v(), x(k(W), {
420
+ }), (d, j) => (m(), p("div", Et, [
421
+ e.label ? (m(), x(k(W), {
414
422
  key: 0,
415
423
  for: e.id,
416
424
  required: e.required && e.requiredMark,
@@ -424,10 +432,10 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
424
432
  ]),
425
433
  _: 3
426
434
  }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
427
- g("div", {
435
+ b("div", {
428
436
  class: w(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
429
437
  }, [
430
- g("button", {
438
+ b("button", {
431
439
  class: "joy-counter__decrement",
432
440
  type: "button",
433
441
  "aria-label": e.labelDecrement,
@@ -436,38 +444,38 @@ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Et = { cla
436
444
  }, [
437
445
  N(k(R), { name: "minus" })
438
446
  ], 8, Ct),
439
- g("div", Jt, [
440
- g("input", Y({
447
+ b("div", Jt, [
448
+ b("input", Y({
441
449
  id: e.id,
442
450
  ref: "input",
443
451
  type: "number",
444
- class: { "joy-counter__invalid": e.invalid || a.value },
452
+ class: { "joy-counter__invalid": e.invalid || n.value },
445
453
  min: e.min,
446
454
  max: e.max,
447
- "aria-invalid": e.invalid || a.value,
455
+ "aria-invalid": e.invalid || n.value,
448
456
  name: e.name,
449
457
  required: e.required,
450
458
  step: "any",
451
459
  value: e.modelValue
452
460
  }, d.$attrs, {
453
461
  onInput: j[0] || (j[0] = //@ts-ignore
454
- (...S) => y.onInput && y.onInput(...S)),
462
+ (...S) => f.onInput && f.onInput(...S)),
455
463
  onBlur: j[1] || (j[1] = //@ts-ignore
456
- (...S) => y.onBlur && y.onBlur(...S)),
464
+ (...S) => f.onBlur && f.onBlur(...S)),
457
465
  onFocus: j[2] || (j[2] = //@ts-ignore
458
- (...S) => y.onFocus && y.onFocus(...S))
466
+ (...S) => f.onFocus && f.onFocus(...S))
459
467
  }), null, 16, Pt)
460
468
  ]),
461
- g("button", {
469
+ b("button", {
462
470
  class: "joy-counter__increment",
463
471
  type: "button",
464
472
  "aria-label": e.labelIncrement,
465
473
  disabled: e.max ? e.modelValue >= e.max : !1,
466
- onClick: n
474
+ onClick: a
467
475
  }, [
468
476
  N(k(R), { name: "add" })
469
- ], 8, Tt),
470
- e.invalid && e.errorMessage ? (v(), p("div", qt, [
477
+ ], 8, qt),
478
+ e.invalid && e.errorMessage ? (m(), p("div", Tt, [
471
479
  N(k(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
472
480
  ])) : _("", !0)
473
481
  ], 2)
@@ -483,40 +491,40 @@ function P(e) {
483
491
  }
484
492
  function Ke(e, t) {
485
493
  function l(...o) {
486
- return new Promise((a, r) => {
487
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(a).catch(r);
494
+ return new Promise((n, r) => {
495
+ Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
488
496
  });
489
497
  }
490
498
  return l;
491
499
  }
492
500
  function Dt(e, t = {}) {
493
- let l, o, a = z;
494
- const r = (n) => {
495
- clearTimeout(n), a(), a = z;
501
+ let l, o, n = z;
502
+ const r = (a) => {
503
+ clearTimeout(a), n(), n = z;
496
504
  };
497
- return (n) => {
498
- const f = P(e), c = P(t.maxWait);
499
- return l && r(l), f <= 0 || c !== void 0 && c <= 0 ? (o && (r(o), o = null), Promise.resolve(n())) : new Promise((u, m) => {
500
- a = t.rejectOnCancel ? m : u, c && !o && (o = setTimeout(() => {
501
- l && r(l), o = null, u(n());
502
- }, c)), l = setTimeout(() => {
503
- o && r(o), o = null, u(n());
504
- }, f);
505
+ return (a) => {
506
+ const c = P(e), y = P(t.maxWait);
507
+ return l && r(l), c <= 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
+ }, c);
505
513
  });
506
514
  };
507
515
  }
508
516
  function Rt(e, t = !0, l = !0, o = !1) {
509
- let a = 0, r, s = !0, n = z, f;
510
- const c = () => {
511
- r && (clearTimeout(r), r = void 0, n(), n = z);
517
+ let n = 0, r, s = !0, a = z, c;
518
+ const y = () => {
519
+ r && (clearTimeout(r), r = void 0, a(), a = z);
512
520
  };
513
- return (m) => {
514
- const i = P(e), y = Date.now() - a, d = () => f = m();
515
- return c(), i <= 0 ? (a = Date.now(), d()) : (y > i && (l || !s) ? (a = Date.now(), d()) : t && (f = new Promise((j, S) => {
516
- n = o ? S : j, r = setTimeout(() => {
517
- a = Date.now(), s = !0, j(d()), c();
518
- }, Math.max(0, i - y));
519
- })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, f);
521
+ return (v) => {
522
+ const i = P(e), f = Date.now() - n, d = () => c = v();
523
+ return y(), i <= 0 ? (n = Date.now(), d()) : (f > i && (l || !s) ? (n = Date.now(), d()) : t && (c = new Promise((j, S) => {
524
+ a = o ? S : j, r = setTimeout(() => {
525
+ n = Date.now(), s = !0, j(d()), y();
526
+ }, Math.max(0, i - f));
527
+ })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, c);
520
528
  };
521
529
  }
522
530
  const M = {
@@ -533,11 +541,11 @@ function Q(e) {
533
541
  function Nt(e, t = 200, l = {}) {
534
542
  return Ke(Dt(t, l), e);
535
543
  }
536
- function Ht(e, t = 200, l = !1, o = !0, a = !1) {
537
- return Ke(Rt(t, l, o, a), e);
544
+ function Ht(e, t = 200, l = !1, o = !0, n = !1) {
545
+ return Ke(Rt(t, l, o, n), e);
538
546
  }
539
547
  function Wt(e) {
540
- return typeof e == "function" ? L(e) : b(e);
548
+ return typeof e == "function" ? L(e) : g(e);
541
549
  }
542
550
  function Qe(e, t = !0) {
543
551
  it() ? X(e) : t ? e() : Ne(e);
@@ -552,58 +560,58 @@ K && window.document;
552
560
  K && window.navigator;
553
561
  K && window.location;
554
562
  function ae(...e) {
555
- let t, l, o, a;
556
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = ge) : [t, l, o, a] = e, !t)
563
+ let t, l, o, n;
564
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = ge) : [t, l, o, n] = e, !t)
557
565
  return z;
558
566
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
559
567
  const r = [], s = () => {
560
568
  r.forEach((u) => u()), r.length = 0;
561
- }, n = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), f = J(() => [U(t), P(a)], ([u, m]) => {
562
- s(), u && r.push(...l.flatMap((i) => o.map((y) => n(u, i, y, m))));
563
- }, { immediate: !0, flush: "post" }), c = () => {
564
- f(), s();
569
+ }, a = (u, v, i, f) => (u.addEventListener(v, i, f), () => u.removeEventListener(v, i, f)), c = J(() => [U(t), P(n)], ([u, v]) => {
570
+ s(), u && r.push(...l.flatMap((i) => o.map((f) => a(u, i, f, v))));
571
+ }, { immediate: !0, flush: "post" }), y = () => {
572
+ c(), s();
565
573
  };
566
- return Q(c), c;
574
+ return Q(y), y;
567
575
  }
568
576
  let Se = !1;
569
577
  function Ut(e, t, l = {}) {
570
- const { window: o = ge, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = l;
578
+ const { window: o = ge, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
571
579
  if (!o)
572
580
  return;
573
581
  le && !Se && (Se = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
574
- let n = !0;
575
- const f = (i) => a.some((y) => {
576
- if (typeof y == "string")
577
- return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
582
+ let a = !0;
583
+ const c = (i) => n.some((f) => {
584
+ if (typeof f == "string")
585
+ return Array.from(o.document.querySelectorAll(f)).some((d) => d === i.target || i.composedPath().includes(d));
578
586
  {
579
- const d = U(y);
587
+ const d = U(f);
580
588
  return d && (i.target === d || i.composedPath().includes(d));
581
589
  }
582
590
  }), u = [
583
591
  ae(o, "click", (i) => {
584
- const y = U(e);
585
- if (!(!y || y === i.target || i.composedPath().includes(y))) {
586
- if (i.detail === 0 && (n = !f(i)), !n) {
587
- n = !0;
592
+ const f = U(e);
593
+ if (!(!f || f === i.target || i.composedPath().includes(f))) {
594
+ if (i.detail === 0 && (a = !c(i)), !a) {
595
+ a = !0;
588
596
  return;
589
597
  }
590
598
  t(i);
591
599
  }
592
600
  }, { passive: !0, capture: r }),
593
601
  ae(o, "pointerdown", (i) => {
594
- const y = U(e);
595
- y && (n = !i.composedPath().includes(y) && !f(i));
602
+ const f = U(e);
603
+ f && (a = !i.composedPath().includes(f) && !c(i));
596
604
  }, { passive: !0 }),
597
605
  s && ae(o, "blur", (i) => {
598
- var y;
606
+ var f;
599
607
  const d = U(e);
600
- ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
608
+ ((f = o.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
601
609
  })
602
610
  ].filter(Boolean);
603
611
  return () => u.forEach((i) => i());
604
612
  }
605
613
  function Gt(e, t = !1) {
606
- const l = b(), o = () => l.value = Boolean(e());
614
+ const l = g(), o = () => l.value = Boolean(e());
607
615
  return o(), Qe(o, t), l;
608
616
  }
609
617
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
@@ -619,17 +627,17 @@ var je = Object.getOwnPropertySymbols, Kt = Object.prototype.hasOwnProperty, Qt
619
627
  return l;
620
628
  };
621
629
  function Yt(e, t, l = {}) {
622
- const o = l, { window: a = ge } = o, r = Zt(o, ["window"]);
630
+ const o = l, { window: n = ge } = o, r = Zt(o, ["window"]);
623
631
  let s;
624
- const n = Gt(() => a && "ResizeObserver" in a), f = () => {
632
+ const a = Gt(() => n && "ResizeObserver" in n), c = () => {
625
633
  s && (s.disconnect(), s = void 0);
626
- }, c = J(() => U(e), (m) => {
627
- f(), n.value && a && m && (s = new ResizeObserver(t), s.observe(m, r));
634
+ }, y = J(() => U(e), (v) => {
635
+ c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
628
636
  }, { immediate: !0, flush: "post" }), u = () => {
629
- f(), c();
637
+ c(), y();
630
638
  };
631
639
  return Q(u), {
632
- isSupported: n,
640
+ isSupported: a,
633
641
  stop: u
634
642
  };
635
643
  }
@@ -638,10 +646,10 @@ var ke;
638
646
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
639
647
  })(ke || (ke = {}));
640
648
  function Xt(e) {
641
- const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
649
+ const t = g(e == null ? void 0 : e.element), l = g(e == null ? void 0 : e.input);
642
650
  function o() {
643
- var a, r;
644
- t.value && (t.value.style.height = "1px", t.value.style.height = `${(a = t.value) == null ? void 0 : a.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
651
+ var n, r;
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));
645
653
  }
646
654
  return J([l, t], o, { immediate: !0 }), Yt(t, () => o()), e != null && e.watch && J(e.watch, o, { immediate: !0, deep: !0 }), {
647
655
  textarea: t,
@@ -691,68 +699,68 @@ const al = /* @__PURE__ */ $({
691
699
  props: ["as", "options"],
692
700
  emits: ["trigger"],
693
701
  setup(e, { slots: t, emit: l }) {
694
- const o = b();
695
- return Ut(o, (a) => {
696
- l("trigger", a);
702
+ const o = g();
703
+ return Ut(o, (n) => {
704
+ l("trigger", n);
697
705
  }, e.options), () => {
698
706
  if (t.default)
699
707
  return rt(e.as || "div", { ref: o }, t.default());
700
708
  };
701
709
  }
702
710
  });
703
- function T(e) {
711
+ function q(e) {
704
712
  var t;
705
713
  const l = P(e);
706
714
  return (t = l == null ? void 0 : l.$el) != null ? t : l;
707
715
  }
708
716
  const H = K ? window : void 0;
709
717
  function A(...e) {
710
- let t, l, o, a;
711
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = H) : [t, l, o, a] = e, !t)
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)
712
720
  return z;
713
721
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
714
722
  const r = [], s = () => {
715
723
  r.forEach((u) => u()), r.length = 0;
716
- }, n = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), f = J(() => [T(t), P(a)], ([u, m]) => {
717
- s(), u && r.push(...l.flatMap((i) => o.map((y) => n(u, i, y, m))));
718
- }, { immediate: !0, flush: "post" }), c = () => {
719
- f(), s();
724
+ }, a = (u, v, i, f) => (u.addEventListener(v, i, f), () => u.removeEventListener(v, i, f)), c = J(() => [q(t), P(n)], ([u, v]) => {
725
+ s(), u && r.push(...l.flatMap((i) => o.map((f) => a(u, i, f, v))));
726
+ }, { immediate: !0, flush: "post" }), y = () => {
727
+ c(), s();
720
728
  };
721
- return Q(c), c;
729
+ return Q(y), y;
722
730
  }
723
731
  let xe = !1;
724
732
  function Ie(e, t, l = {}) {
725
- const { window: o = H, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = l;
733
+ const { window: o = H, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
726
734
  if (!o)
727
735
  return;
728
736
  le && !xe && (xe = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
729
- let n = !0;
730
- const f = (i) => a.some((y) => {
731
- if (typeof y == "string")
732
- return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
737
+ let a = !0;
738
+ const c = (i) => n.some((f) => {
739
+ if (typeof f == "string")
740
+ return Array.from(o.document.querySelectorAll(f)).some((d) => d === i.target || i.composedPath().includes(d));
733
741
  {
734
- const d = T(y);
742
+ const d = q(f);
735
743
  return d && (i.target === d || i.composedPath().includes(d));
736
744
  }
737
745
  }), u = [
738
746
  A(o, "click", (i) => {
739
- const y = T(e);
740
- if (!(!y || y === i.target || i.composedPath().includes(y))) {
741
- if (i.detail === 0 && (n = !f(i)), !n) {
742
- n = !0;
747
+ const f = q(e);
748
+ if (!(!f || f === i.target || i.composedPath().includes(f))) {
749
+ if (i.detail === 0 && (a = !c(i)), !a) {
750
+ a = !0;
743
751
  return;
744
752
  }
745
753
  t(i);
746
754
  }
747
755
  }, { passive: !0, capture: r }),
748
756
  A(o, "pointerdown", (i) => {
749
- const y = T(e);
750
- y && (n = !i.composedPath().includes(y) && !f(i));
757
+ const f = q(e);
758
+ f && (a = !i.composedPath().includes(f) && !c(i));
751
759
  }, { passive: !0 }),
752
760
  s && A(o, "blur", (i) => {
753
- var y;
754
- const d = T(e);
755
- ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
761
+ var f;
762
+ const d = q(e);
763
+ ((f = o.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
756
764
  })
757
765
  ].filter(Boolean);
758
766
  return () => u.forEach((i) => i());
@@ -762,9 +770,9 @@ const il = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.k
762
770
  function Oe(...e) {
763
771
  let t, l, o = {};
764
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]);
765
- const { target: a = H, eventName: r = "keydown", passive: s = !1 } = o, n = il(t);
766
- return A(a, r, (c) => {
767
- n(c) && l(c);
773
+ const { target: n = H, eventName: r = "keydown", passive: s = !1 } = o, a = il(t);
774
+ return A(n, r, (y) => {
775
+ a(y) && l(y);
768
776
  }, s);
769
777
  }
770
778
  var rl = Object.defineProperty, Be = Object.getOwnPropertySymbols, sl = Object.prototype.hasOwnProperty, ul = Object.prototype.propertyIsEnumerable, Le = (e, t, l) => t in e ? rl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, dl = (e, t) => {
@@ -778,38 +786,38 @@ var rl = Object.defineProperty, Be = Object.getOwnPropertySymbols, sl = Object.p
778
786
  M.mounted + "";
779
787
  const cl = 500;
780
788
  function Ee(e, t, l) {
781
- var o, a;
782
- const r = L(() => T(e));
789
+ var o, n;
790
+ const r = L(() => q(e));
783
791
  let s;
784
- function n() {
792
+ function a() {
785
793
  s && (clearTimeout(s), s = void 0);
786
794
  }
787
- function f(u) {
788
- var m, i, y, d;
789
- (m = l == null ? void 0 : l.modifiers) != null && m.self && u.target !== r.value || (n(), (i = l == null ? void 0 : l.modifiers) != null && i.prevent && u.preventDefault(), (y = l == null ? void 0 : l.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d : cl));
795
+ function c(u) {
796
+ var v, i, f, 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(), (f = l == null ? void 0 : l.modifiers) != null && f.stop && u.stopPropagation(), s = setTimeout(() => t(u), (d = l == null ? void 0 : l.delay) != null ? d : cl));
790
798
  }
791
- const c = {
799
+ const y = {
792
800
  capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
793
- once: (a = l == null ? void 0 : l.modifiers) == null ? void 0 : a.once
801
+ once: (n = l == null ? void 0 : l.modifiers) == null ? void 0 : n.once
794
802
  };
795
- A(r, "pointerdown", f, c), A(r, "pointerup", n, c), A(r, "pointerleave", n, c);
803
+ A(r, "pointerdown", c, y), A(r, "pointerup", a, y), A(r, "pointerleave", a, y);
796
804
  }
797
805
  M.mounted + "";
798
806
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
799
807
  se[ue] = se[ue] || {};
800
808
  se[ue];
801
809
  function Ze(e, t = !1) {
802
- const l = b(), o = () => l.value = Boolean(e());
810
+ const l = g(), o = () => l.value = Boolean(e());
803
811
  return o(), Qe(o, t), l;
804
812
  }
805
813
  function fl(e, t = {}) {
806
- const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, a = b(!1);
814
+ const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = g(!1);
807
815
  let r;
808
- const s = (n) => {
809
- const f = n ? l : o;
810
- r && (clearTimeout(r), r = void 0), f ? r = setTimeout(() => a.value = n, f) : a.value = n;
816
+ const s = (a) => {
817
+ const c = a ? l : o;
818
+ r && (clearTimeout(r), r = void 0), c ? r = setTimeout(() => n.value = a, c) : n.value = a;
811
819
  };
812
- return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), a;
820
+ return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
813
821
  }
814
822
  M.mounted + "";
815
823
  var Ce = Object.getOwnPropertySymbols, yl = Object.prototype.hasOwnProperty, vl = Object.prototype.propertyIsEnumerable, ml = (e, t) => {
@@ -822,59 +830,59 @@ var Ce = Object.getOwnPropertySymbols, yl = Object.prototype.hasOwnProperty, vl
822
830
  return l;
823
831
  };
824
832
  function pl(e, t, l = {}) {
825
- const o = l, { window: a = H } = o, r = ml(o, ["window"]);
833
+ const o = l, { window: n = H } = o, r = ml(o, ["window"]);
826
834
  let s;
827
- const n = Ze(() => a && "ResizeObserver" in a), f = () => {
835
+ const a = Ze(() => n && "ResizeObserver" in n), c = () => {
828
836
  s && (s.disconnect(), s = void 0);
829
- }, c = J(() => T(e), (m) => {
830
- f(), n.value && a && m && (s = new ResizeObserver(t), s.observe(m, r));
837
+ }, y = J(() => q(e), (v) => {
838
+ c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
831
839
  }, { immediate: !0, flush: "post" }), u = () => {
832
- f(), c();
840
+ c(), y();
833
841
  };
834
842
  return Q(u), {
835
- isSupported: n,
843
+ isSupported: a,
836
844
  stop: u
837
845
  };
838
846
  }
839
847
  function hl(e, t = { width: 0, height: 0 }, l = {}) {
840
- const { window: o = H, box: a = "content-box" } = l, r = L(() => {
841
- var f, c;
842
- return (c = (f = T(e)) == null ? void 0 : f.namespaceURI) == null ? void 0 : c.includes("svg");
843
- }), s = b(t.width), n = b(t.height);
844
- return pl(e, ([f]) => {
845
- const c = a === "border-box" ? f.borderBoxSize : a === "content-box" ? f.contentBoxSize : f.devicePixelContentBoxSize;
848
+ const { window: o = H, box: n = "content-box" } = l, 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(t.width), a = g(t.height);
852
+ return pl(e, ([c]) => {
853
+ const y = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
846
854
  if (o && r.value) {
847
- const u = T(e);
855
+ const u = q(e);
848
856
  if (u) {
849
- const m = o.getComputedStyle(u);
850
- s.value = parseFloat(m.width), n.value = parseFloat(m.height);
857
+ const v = o.getComputedStyle(u);
858
+ s.value = parseFloat(v.width), a.value = parseFloat(v.height);
851
859
  }
852
- } else if (c) {
853
- const u = Array.isArray(c) ? c : [c];
854
- s.value = u.reduce((m, { inlineSize: i }) => m + i, 0), n.value = u.reduce((m, { blockSize: i }) => m + i, 0);
860
+ } else if (y) {
861
+ const u = Array.isArray(y) ? y : [y];
862
+ s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
855
863
  } else
856
- s.value = f.contentRect.width, n.value = f.contentRect.height;
857
- }, l), J(() => T(e), (f) => {
858
- s.value = f ? t.width : 0, n.value = f ? t.height : 0;
864
+ s.value = c.contentRect.width, a.value = c.contentRect.height;
865
+ }, l), J(() => q(e), (c) => {
866
+ s.value = c ? t.width : 0, a.value = c ? t.height : 0;
859
867
  }), {
860
868
  width: s,
861
- height: n
869
+ height: a
862
870
  };
863
871
  }
864
872
  M.mounted + "";
865
873
  function Je(e, { window: t = H, scrollTarget: l } = {}) {
866
- const o = b(!1), a = () => {
874
+ const o = g(!1), n = () => {
867
875
  if (!t)
868
876
  return;
869
- const r = t.document, s = T(e);
877
+ const r = t.document, s = q(e);
870
878
  if (!s)
871
879
  o.value = !1;
872
880
  else {
873
- const n = s.getBoundingClientRect();
874
- o.value = n.top <= (t.innerHeight || r.documentElement.clientHeight) && n.left <= (t.innerWidth || r.documentElement.clientWidth) && n.bottom >= 0 && n.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;
875
883
  }
876
884
  };
877
- return J(() => T(e), () => a(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", a, {
885
+ return J(() => q(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
878
886
  capture: !1,
879
887
  passive: !0
880
888
  }), o;
@@ -885,7 +893,7 @@ function de(e, t = {}) {
885
893
  const {
886
894
  throttle: l = 0,
887
895
  idle: o = 200,
888
- onStop: a = z,
896
+ onStop: n = z,
889
897
  onScroll: r = z,
890
898
  offset: s = {
891
899
  left: 0,
@@ -893,36 +901,36 @@ function de(e, t = {}) {
893
901
  top: 0,
894
902
  bottom: 0
895
903
  },
896
- eventListenerOptions: n = {
904
+ eventListenerOptions: a = {
897
905
  capture: !1,
898
906
  passive: !0
899
907
  },
900
- behavior: f = "auto"
901
- } = t, c = b(0), u = b(0), m = L({
908
+ behavior: c = "auto"
909
+ } = t, y = g(0), u = g(0), v = L({
902
910
  get() {
903
- return c.value;
911
+ return y.value;
904
912
  },
905
913
  set(E) {
906
- y(E, void 0);
914
+ f(E, void 0);
907
915
  }
908
916
  }), i = L({
909
917
  get() {
910
918
  return u.value;
911
919
  },
912
920
  set(E) {
913
- y(void 0, E);
921
+ f(void 0, E);
914
922
  }
915
923
  });
916
- function y(E, q) {
924
+ function f(E, T) {
917
925
  var D, F, _e;
918
926
  const ne = P(e);
919
927
  ne && ((_e = ne instanceof Document ? document.body : ne) == null || _e.scrollTo({
920
- top: (D = P(q)) != null ? D : i.value,
921
- left: (F = P(E)) != null ? F : m.value,
922
- behavior: P(f)
928
+ top: (D = P(T)) != null ? D : i.value,
929
+ left: (F = P(E)) != null ? F : v.value,
930
+ behavior: P(c)
923
931
  }));
924
932
  }
925
- const d = b(!1), j = te({
933
+ const d = g(!1), j = te({
926
934
  left: !0,
927
935
  right: !1,
928
936
  top: !0,
@@ -933,47 +941,47 @@ function de(e, t = {}) {
933
941
  top: !1,
934
942
  bottom: !1
935
943
  }), ee = (E) => {
936
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, a(E));
944
+ d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(E));
937
945
  }, oe = Nt(ee, l + o), O = (E) => {
938
- const q = E.target === document ? E.target.documentElement : E.target, D = q.scrollLeft;
939
- S.left = D < c.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + q.clientWidth >= q.scrollWidth - (s.right || 0) - Pe, c.value = D;
940
- let F = q.scrollTop;
941
- 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 + q.clientHeight >= q.scrollHeight - (s.bottom || 0) - Pe, u.value = F, d.value = !0, oe(E), r(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);
942
950
  };
943
- return A(e, "scroll", l ? Ht(O, l, !0, !1) : O, n), A(e, "scrollend", ee, n), {
944
- x: m,
951
+ return A(e, "scroll", l ? Ht(O, l, !0, !1) : O, a), A(e, "scrollend", ee, a), {
952
+ x: v,
945
953
  y: i,
946
954
  isScrolling: d,
947
955
  arrivedState: j,
948
956
  directions: S
949
957
  };
950
958
  }
951
- var gl = Object.defineProperty, bl = Object.defineProperties, _l = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, wl = Object.prototype.hasOwnProperty, Sl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? gl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, ze = (e, t) => {
959
+ var gl = Object.defineProperty, bl = Object.defineProperties, _l = Object.getOwnPropertyDescriptors, qe = Object.getOwnPropertySymbols, wl = Object.prototype.hasOwnProperty, Sl = Object.prototype.propertyIsEnumerable, Te = (e, t, l) => t in e ? gl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, ze = (e, t) => {
952
960
  for (var l in t || (t = {}))
953
- wl.call(t, l) && qe(e, l, t[l]);
954
- if (Te)
955
- for (var l of Te(t))
956
- Sl.call(t, l) && qe(e, l, t[l]);
961
+ wl.call(t, l) && Te(e, l, t[l]);
962
+ if (qe)
963
+ for (var l of qe(t))
964
+ Sl.call(t, l) && Te(e, l, t[l]);
957
965
  return e;
958
966
  }, jl = (e, t) => bl(e, _l(t));
959
967
  function Ae(e, t, l = {}) {
960
- var o, a;
968
+ var o, n;
961
969
  const r = (o = l.direction) != null ? o : "bottom", s = te(de(e, jl(ze({}, l), {
962
970
  offset: ze({
963
- [r]: (a = l.distance) != null ? a : 0
971
+ [r]: (n = l.distance) != null ? n : 0
964
972
  }, l.offset)
965
973
  })));
966
- J(() => s.arrivedState[r], async (n) => {
967
- var f, c;
968
- if (n) {
969
- const u = P(e), m = {
970
- height: (f = u == null ? void 0 : u.scrollHeight) != null ? f : 0,
971
- width: (c = u == null ? void 0 : u.scrollWidth) != null ? c : 0
974
+ J(() => s.arrivedState[r], async (a) => {
975
+ var c, y;
976
+ if (a) {
977
+ const u = P(e), v = {
978
+ height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
979
+ width: (y = u == null ? void 0 : u.scrollWidth) != null ? y : 0
972
980
  };
973
981
  await t(s), l.preserveScrollPosition && u && Ne(() => {
974
982
  u.scrollTo({
975
- top: u.scrollHeight - m.height,
976
- left: u.scrollWidth - m.width
983
+ top: u.scrollHeight - v.height,
984
+ left: u.scrollWidth - v.width
977
985
  });
978
986
  });
979
987
  }
@@ -983,30 +991,30 @@ M.mounted + "";
983
991
  function Fe(e, t, l = {}) {
984
992
  const {
985
993
  root: o,
986
- rootMargin: a = "0px",
994
+ rootMargin: n = "0px",
987
995
  threshold: r = 0.1,
988
996
  window: s = H
989
- } = l, n = Ze(() => s && "IntersectionObserver" in s);
990
- let f = z;
991
- const c = n.value ? J(() => ({
992
- el: T(e),
993
- root: T(o)
994
- }), ({ el: m, root: i }) => {
995
- if (f(), !m)
997
+ } = l, a = Ze(() => s && "IntersectionObserver" in s);
998
+ let c = z;
999
+ const y = a.value ? J(() => ({
1000
+ el: q(e),
1001
+ root: q(o)
1002
+ }), ({ el: v, root: i }) => {
1003
+ if (c(), !v)
996
1004
  return;
997
- const y = new IntersectionObserver(t, {
1005
+ const f = new IntersectionObserver(t, {
998
1006
  root: i,
999
- rootMargin: a,
1007
+ rootMargin: n,
1000
1008
  threshold: r
1001
1009
  });
1002
- y.observe(m), f = () => {
1003
- y.disconnect(), f = z;
1010
+ f.observe(v), c = () => {
1011
+ f.disconnect(), c = z;
1004
1012
  };
1005
1013
  }, { immediate: !0, flush: "post" }) : z, u = () => {
1006
- f(), c();
1014
+ c(), y();
1007
1015
  };
1008
1016
  return Q(u), {
1009
- isSupported: n,
1017
+ isSupported: a,
1010
1018
  stop: u
1011
1019
  };
1012
1020
  }
@@ -1034,53 +1042,53 @@ function Ll(e) {
1034
1042
  return Ye(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1035
1043
  }
1036
1044
  function El(e, t = !1) {
1037
- const l = b(t);
1038
- let o = null, a;
1039
- J(Wt(e), (n) => {
1040
- if (n) {
1041
- const f = n;
1042
- a = f.style.overflow, l.value && (f.style.overflow = "hidden");
1045
+ const l = g(t);
1046
+ let o = null, n;
1047
+ J(Wt(e), (a) => {
1048
+ if (a) {
1049
+ const c = a;
1050
+ n = c.style.overflow, l.value && (c.style.overflow = "hidden");
1043
1051
  }
1044
1052
  }, {
1045
1053
  immediate: !0
1046
1054
  });
1047
1055
  const r = () => {
1048
- const n = P(e);
1049
- !n || l.value || (le && (o = A(n, "touchmove", (f) => {
1050
- Ll(f);
1051
- }, { passive: !1 })), n.style.overflow = "hidden", l.value = !0);
1056
+ const a = P(e);
1057
+ !a || l.value || (le && (o = A(a, "touchmove", (c) => {
1058
+ Ll(c);
1059
+ }, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
1052
1060
  }, s = () => {
1053
- const n = P(e);
1054
- !n || !l.value || (le && (o == null || o()), n.style.overflow = a, l.value = !1);
1061
+ const a = P(e);
1062
+ !a || !l.value || (le && (o == null || o()), a.style.overflow = n, l.value = !1);
1055
1063
  };
1056
1064
  return Q(s), L({
1057
1065
  get() {
1058
1066
  return l.value;
1059
1067
  },
1060
- set(n) {
1061
- n ? r() : s();
1068
+ set(a) {
1069
+ a ? r() : s();
1062
1070
  }
1063
1071
  });
1064
1072
  }
1065
1073
  const Cl = () => {
1066
1074
  let e = !1;
1067
- const t = b(!1);
1075
+ const t = g(!1);
1068
1076
  return (l, o) => {
1069
1077
  if (t.value = o.value, e)
1070
1078
  return;
1071
1079
  e = !0;
1072
- const a = El(l, o.value);
1073
- J(t, (r) => a.value = r);
1080
+ const n = El(l, o.value);
1081
+ J(t, (r) => n.value = r);
1074
1082
  };
1075
1083
  };
1076
1084
  Cl();
1077
1085
  const Xe = ["medium", "small"], Jl = {
1078
1086
  key: 0,
1079
1087
  class: "joy-dropdown-list__header"
1080
- }, Pl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Tl = {
1088
+ }, Pl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], ql = {
1081
1089
  key: 1,
1082
1090
  class: "joy-dropdown-list__footer"
1083
- }, ql = /* @__PURE__ */ $({
1091
+ }, Tl = /* @__PURE__ */ $({
1084
1092
  __name: "VJoyDropdownList",
1085
1093
  props: {
1086
1094
  /**
@@ -1116,70 +1124,70 @@ const Xe = ["medium", "small"], Jl = {
1116
1124
  },
1117
1125
  emits: ["update:modelValue", "close:dropdownList"],
1118
1126
  setup(e, { expose: t, emit: l }) {
1119
- const o = e, a = b(), r = L(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1127
+ const o = e, n = g(), r = L(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1120
1128
  function s(i) {
1121
1129
  i.disabled || l("update:modelValue", i.value || i.id);
1122
1130
  }
1123
- function n() {
1131
+ function a() {
1124
1132
  var i;
1125
- return Array.from(((i = a.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1133
+ return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1126
1134
  }
1127
- function f() {
1128
- const i = n().find((y) => y.getAttribute("aria-selected") === "true");
1129
- i && (i.focus(), a.value.scrollTo({
1135
+ function c() {
1136
+ const i = a().find((f) => f.getAttribute("aria-selected") === "true");
1137
+ i && (i.focus(), n.value.scrollTo({
1130
1138
  top: i.offsetTop
1131
1139
  }));
1132
1140
  }
1133
- function c() {
1134
- return n().find((i) => i === document.activeElement);
1141
+ function y() {
1142
+ return a().find((i) => i === document.activeElement);
1135
1143
  }
1136
1144
  function u(i) {
1137
- var y;
1138
- if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), c() && ((y = a.value) != null && y.contains(c())))) {
1139
- const d = c();
1145
+ var f;
1146
+ if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), y() && ((f = n.value) != null && f.contains(y())))) {
1147
+ const d = y();
1140
1148
  if (!d)
1141
1149
  return;
1142
1150
  if (d.querySelector("a"))
1143
1151
  return d.querySelector("a").click();
1144
1152
  l("update:modelValue", d.dataModel);
1145
1153
  }
1146
- if (c() && i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1147
- const d = n(), j = c();
1154
+ if (y() && i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1155
+ const d = a(), j = y();
1148
1156
  let S = d.indexOf(j);
1149
1157
  if (d.length) {
1150
- i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), m(d[S]);
1158
+ i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), v(d[S]);
1151
1159
  return;
1152
1160
  }
1153
1161
  }
1154
1162
  }
1155
- function m(i) {
1163
+ function v(i) {
1156
1164
  i.focus();
1157
1165
  }
1158
1166
  return X(() => {
1159
- window.addEventListener("keydown", u), f();
1167
+ window.addEventListener("keydown", u), c();
1160
1168
  }), He(() => {
1161
1169
  window.removeEventListener("keydown", u);
1162
1170
  }), t({
1163
1171
  isSelected: r
1164
- }), (i, y) => (v(), p("div", {
1172
+ }), (i, f) => (m(), p("div", {
1165
1173
  class: "joy-dropdown-list",
1166
1174
  style: Z({ width: `${e.width}px`, "max-width": `${e.width}px` })
1167
1175
  }, [
1168
- i.$slots["dropdown-list-header"] ? (v(), p("header", Jl, [
1176
+ i.$slots["dropdown-list-header"] ? (m(), p("header", Jl, [
1169
1177
  h(i.$slots, "dropdown-list-header", {}, void 0, !0)
1170
1178
  ])) : _("", !0),
1171
- g("div", {
1179
+ b("div", {
1172
1180
  class: w(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1173
1181
  style: Z({ "max-height": `${e.height}px` })
1174
1182
  }, [
1175
1183
  h(i.$slots, "dropdown-list-items", {}, void 0, !0),
1176
- e.options.length ? (v(), p("ul", {
1184
+ e.options.length ? (m(), p("ul", {
1177
1185
  key: 0,
1178
1186
  ref_key: "listbox",
1179
- ref: a,
1187
+ ref: n,
1180
1188
  role: "listbox"
1181
1189
  }, [
1182
- (v(!0), p(fe, null, ye(e.options, (d) => (v(), p("li", {
1190
+ (m(!0), p(fe, null, ye(e.options, (d) => (m(), p("li", {
1183
1191
  id: d.id,
1184
1192
  key: d.label,
1185
1193
  style: Z({ "max-width": `${e.width}px` }),
@@ -1201,18 +1209,18 @@ const Xe = ["medium", "small"], Jl = {
1201
1209
  onClick: (j) => s(d)
1202
1210
  }, [
1203
1211
  h(i.$slots, "label", ve(me(d)), () => [
1204
- g("span", null, I(d.label), 1)
1212
+ b("span", null, I(d.label), 1)
1205
1213
  ], !0)
1206
1214
  ], 14, Pl))), 128))
1207
1215
  ], 512)) : _("", !0)
1208
1216
  ], 6),
1209
- i.$slots["dropdown-list-footer"] ? (v(), p("footer", Tl, [
1217
+ i.$slots["dropdown-list-footer"] ? (m(), p("footer", ql, [
1210
1218
  h(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1211
1219
  ])) : _("", !0)
1212
1220
  ], 4));
1213
1221
  }
1214
1222
  });
1215
- const et = /* @__PURE__ */ V(ql, [["__scopeId", "data-v-1085f269"]]);
1223
+ const et = /* @__PURE__ */ V(Tl, [["__scopeId", "data-v-1085f269"]]);
1216
1224
  function zl(e) {
1217
1225
  const t = () => e();
1218
1226
  X(() => {
@@ -1300,47 +1308,47 @@ const Al = /* @__PURE__ */ $({
1300
1308
  },
1301
1309
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1302
1310
  setup(e, { expose: t, emit: l }) {
1303
- const o = e, a = b(!1), r = b(null), s = b(), n = b(null), f = b(null), c = b(!1), u = {
1311
+ const o = e, n = g(!1), r = g(null), s = g(), a = g(null), c = g(null), y = g(!1), u = {
1304
1312
  ignore: [s, ".joy-dropdown__list"]
1305
1313
  };
1306
- let m = null;
1314
+ let v = null;
1307
1315
  const i = te({
1308
1316
  left: "auto",
1309
1317
  top: "0px",
1310
1318
  right: "auto"
1311
1319
  });
1312
- function y() {
1313
- m && clearTimeout(m), c.value = !0, m = setTimeout(() => {
1314
- a.value = !1, c.value = !1, l("dropdown:hide");
1320
+ function f() {
1321
+ v && clearTimeout(v), y.value = !0, v = setTimeout(() => {
1322
+ n.value = !1, y.value = !1, l("dropdown:hide");
1315
1323
  }, 300);
1316
1324
  }
1317
1325
  function d(O) {
1318
- c.value = !1, m && clearTimeout(m), ee(), f.value = O.target, a.value = !0, l("dropdown:open");
1326
+ y.value = !1, v && clearTimeout(v), ee(), c.value = O.target, n.value = !0, l("dropdown:open");
1319
1327
  }
1320
1328
  function j() {
1321
- y(), S();
1329
+ f(), S();
1322
1330
  }
1323
1331
  function S() {
1324
- f.value && f.value.focus();
1332
+ c.value && c.value.focus();
1325
1333
  }
1326
1334
  function ee() {
1327
- const O = s.value.getBoundingClientRect(), E = document.documentElement.scrollTop + O.top, q = O.height, D = O.left, F = O.width;
1328
- o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = E + q + parseInt(o.dropdownGap) + "px" : i.top = E - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1335
+ const O = s.value.getBoundingClientRect(), E = document.documentElement.scrollTop + O.top, T = O.height, D = O.left, F = O.width;
1336
+ o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = E + T + parseInt(o.dropdownGap) + "px" : i.top = E - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1329
1337
  }
1330
1338
  function oe(O) {
1331
- l("update:modelValue", O), o.closeOnSelect && (y(), S());
1339
+ l("update:modelValue", O), o.closeOnSelect && (f(), S());
1332
1340
  }
1333
- return zl(y), t({
1334
- showDropdownList: a
1335
- }), (O, E) => (v(), x(k(al), {
1341
+ return zl(f), t({
1342
+ showDropdownList: n
1343
+ }), (O, E) => (m(), x(k(al), {
1336
1344
  ref_key: "dropdown",
1337
1345
  ref: r,
1338
1346
  options: u,
1339
1347
  class: "joy-dropdown",
1340
- onTrigger: y
1348
+ onTrigger: f
1341
1349
  }, {
1342
1350
  default: B(() => [
1343
- g("div", {
1351
+ b("div", {
1344
1352
  ref_key: "button",
1345
1353
  ref: s,
1346
1354
  class: "joy-dropdown__button",
@@ -1348,20 +1356,20 @@ const Al = /* @__PURE__ */ $({
1348
1356
  }, [
1349
1357
  h(O.$slots, "dropdown-button", {}, void 0, !0)
1350
1358
  ], 512),
1351
- (v(), x(st, {
1359
+ (m(), x(st, {
1352
1360
  to: e.appendTo,
1353
1361
  disabled: e.disableTeleport
1354
1362
  }, [
1355
- a.value ? (v(), p("div", {
1363
+ n.value ? (m(), p("div", {
1356
1364
  key: 0,
1357
1365
  ref_key: "list",
1358
- ref: n,
1366
+ ref: a,
1359
1367
  class: w([
1360
1368
  "joy-dropdown__list",
1361
1369
  `joy-dropdown__list--${e.direction}`,
1362
1370
  {
1363
- "joy-dropdown__list--visible": !c.value,
1364
- "joy-dropdown__list--hiding": c.value
1371
+ "joy-dropdown__list--visible": !y.value,
1372
+ "joy-dropdown__list--hiding": y.value
1365
1373
  }
1366
1374
  ]),
1367
1375
  style: Z({
@@ -1378,9 +1386,9 @@ const Al = /* @__PURE__ */ $({
1378
1386
  "onUpdate:modelValue": oe,
1379
1387
  "onClose:dropdownList": j
1380
1388
  }, We({
1381
- label: B((q) => [
1382
- h(O.$slots, "dropdown-item", ve(me(q)), () => [
1383
- g("span", null, I(q.label), 1)
1389
+ label: B((T) => [
1390
+ h(O.$slots, "dropdown-item", ve(me(T)), () => [
1391
+ b("span", null, I(T.label), 1)
1384
1392
  ], !0)
1385
1393
  ]),
1386
1394
  _: 2
@@ -1426,7 +1434,7 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-2657fbc4"]]), Dl = ["ari
1426
1434
  noHtmlErrorText: String
1427
1435
  },
1428
1436
  setup(e) {
1429
- return (t, l) => (v(), p("div", {
1437
+ return (t, l) => (m(), p("div", {
1430
1438
  "aria-hidden": e.visible,
1431
1439
  class: w(["joy-form-error", { "joy-has-error": e.visible }]),
1432
1440
  role: "alert"
@@ -1435,7 +1443,7 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-2657fbc4"]]), Dl = ["ari
1435
1443
  class: "joy-icon-error",
1436
1444
  name: "warning-triangle"
1437
1445
  }),
1438
- g("div", null, [
1446
+ b("div", null, [
1439
1447
  h(t.$slots, "default", {}, () => [
1440
1448
  C(I(e.noHtmlErrorText), 1)
1441
1449
  ], !0)
@@ -1484,25 +1492,25 @@ const Nl = [..._t], Hl = { class: "joy-highlight--text" }, Wl = { key: 0 }, Ul =
1484
1492
  const l = e, o = L(() => l.icon ? l.icon : Ml(l.level));
1485
1493
  return t({
1486
1494
  getRelevantIcon: o
1487
- }), (a, r) => (v(), p("div", {
1495
+ }), (n, r) => (m(), p("div", {
1488
1496
  class: w([
1489
1497
  "joy-highlight",
1490
1498
  `joy-highlight_${e.level}`,
1491
1499
  {
1492
1500
  "joy-highlight__accent": e.accent,
1493
- "joy-highlight__titled": a.$slots["highlight-title"]
1501
+ "joy-highlight__titled": n.$slots["highlight-title"]
1494
1502
  }
1495
1503
  ])
1496
1504
  }, [
1497
- e.displayIcon ? (v(), x(R, {
1505
+ e.displayIcon ? (m(), x(R, {
1498
1506
  key: 0,
1499
1507
  name: o.value
1500
1508
  }, null, 8, ["name"])) : _("", !0),
1501
- g("div", Hl, [
1502
- a.$slots["highlight-title"] ? (v(), p("strong", Wl, [
1503
- h(a.$slots, "highlight-title", {}, void 0, !0)
1509
+ b("div", Hl, [
1510
+ n.$slots["highlight-title"] ? (m(), p("strong", Wl, [
1511
+ h(n.$slots, "highlight-title", {}, void 0, !0)
1504
1512
  ])) : _("", !0),
1505
- h(a.$slots, "default", {}, void 0, !0)
1513
+ h(n.$slots, "default", {}, void 0, !0)
1506
1514
  ])
1507
1515
  ], 2));
1508
1516
  }
@@ -1537,24 +1545,22 @@ const Gl = /* @__PURE__ */ V(Ul, [["__scopeId", "data-v-ba5e6101"]]), Kl = ["sma
1537
1545
  text: String
1538
1546
  },
1539
1547
  setup(e) {
1540
- return (t, l) => (v(), x(ce(e.tagName), Y({
1548
+ return (t, l) => (m(), x(ce(e.tagName), Y({
1541
1549
  class: ["joy-label", `joy-label--${e.size}`]
1542
1550
  }, t.$attrs), {
1543
1551
  default: B(() => [
1544
1552
  h(t.$slots, "default", {}, () => [
1545
1553
  C(I(e.text), 1)
1546
1554
  ], !0),
1547
- e.required ? (v(), p("span", Ql, "*")) : _("", !0),
1548
- e.optionalLabel ? (v(), p("span", Zl, "- " + I(e.optionalLabel), 1)) : _("", !0)
1555
+ e.required ? (m(), p("span", Ql, "*")) : _("", !0),
1556
+ e.optionalLabel ? (m(), p("span", Zl, "- " + I(e.optionalLabel), 1)) : _("", !0)
1549
1557
  ]),
1550
1558
  _: 3
1551
1559
  }, 16, ["class"]));
1552
1560
  }
1553
1561
  });
1554
- const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["large", "medium", "small"], eo = ["id", "disabled", "type", "value"], to = ["data-unit"], lo = {
1555
- inheritAttrs: !1
1556
- }, oo = /* @__PURE__ */ $({
1557
- ...lo,
1562
+ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["large", "medium", "small"], eo = ["id", "required", "disabled", "type", "value"], to = ["data-unit"], lo = /* @__PURE__ */ $({
1563
+ inheritAttrs: !1,
1558
1564
  __name: "VJoyInput",
1559
1565
  props: {
1560
1566
  disabled: {
@@ -1615,45 +1621,45 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1615
1621
  },
1616
1622
  emits: ["update:modelValue"],
1617
1623
  setup(e, { emit: t }) {
1618
- const l = e, o = b(), a = b(), r = Me(), s = G(), n = b(!1), f = L(() => typeof l.modelValue == "number" || !l.clearable || l.unit || !l.modelValue ? !1 : l.modelValue.length > 0 && !l.unit), c = L(() => s.default && s.default()), u = L(() => {
1619
- var y, d;
1620
- return !!((y = a.value) != null && y.closest("joy-wrapper")) || !!((d = a.value) != null && d.closest(".joy-wrapper"));
1621
- }), m = b(l.type);
1624
+ const l = e, o = g(), n = g(), r = Me(), s = G(), a = g(!1), c = L(() => typeof l.modelValue == "number" || !l.clearable || l.unit || !l.modelValue ? !1 : l.modelValue.length > 0 && !l.unit), y = L(() => s.default && s.default()), u = L(() => {
1625
+ var f, d;
1626
+ return !!((f = n.value) != null && f.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1627
+ }), v = g(l.type);
1622
1628
  ut(() => {
1623
- m.value = l.unit ? "number" : l.unit || "text";
1629
+ v.value = l.unit ? "number" : l.unit || "text";
1624
1630
  });
1625
1631
  const i = {
1626
1632
  onFocus: () => {
1627
- n.value = !0;
1633
+ a.value = !0;
1628
1634
  },
1629
1635
  onBlur: () => {
1630
- n.value = !1;
1636
+ a.value = !1;
1631
1637
  },
1632
- onInput: (y) => {
1633
- let d = y.target.value;
1638
+ onInput: (f) => {
1639
+ let d = f.target.value;
1634
1640
  t("update:modelValue", d);
1635
1641
  },
1636
1642
  clearValue: () => {
1637
1643
  l.disabled || t("update:modelValue", "");
1638
1644
  }
1639
1645
  };
1640
- return (y, d) => (v(), p("div", {
1646
+ return (f, d) => (m(), p("div", {
1641
1647
  ref_key: "root",
1642
- ref: a,
1648
+ ref: n,
1643
1649
  class: w([`joy-input--${l.size}`])
1644
1650
  }, [
1645
- g("div", {
1651
+ b("div", {
1646
1652
  class: w([
1647
1653
  "joy-input",
1648
1654
  {
1649
- "joy-input--focusing": n.value,
1655
+ "joy-input--focusing": a.value,
1650
1656
  "joy-input--disabled": e.disabled,
1651
1657
  "joy-input--invalid": e.invalid,
1652
1658
  "joy-input--valid": !e.invalid && !k(r).disabled
1653
1659
  }
1654
1660
  ])
1655
1661
  }, [
1656
- c.value || e.label ? (v(), x(W, {
1662
+ y.value || e.label ? (m(), x(W, {
1657
1663
  key: 0,
1658
1664
  for: e.name,
1659
1665
  required: e.required && e.requiredMark,
@@ -1661,13 +1667,13 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1661
1667
  size: e.labelSize
1662
1668
  }, {
1663
1669
  default: B(() => [
1664
- h(y.$slots, "default", {}, () => [
1670
+ h(f.$slots, "default", {}, () => [
1665
1671
  C(I(e.label), 1)
1666
1672
  ], !0)
1667
1673
  ]),
1668
1674
  _: 3
1669
1675
  }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
1670
- g("div", {
1676
+ b("div", {
1671
1677
  class: w([
1672
1678
  "joy-input--wrapper",
1673
1679
  {
@@ -1678,10 +1684,11 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1678
1684
  }
1679
1685
  ])
1680
1686
  }, [
1681
- g("input", Y(y.$attrs, {
1687
+ b("input", Y(f.$attrs, {
1682
1688
  id: l.name,
1683
1689
  ref_key: "input",
1684
1690
  ref: o,
1691
+ required: e.required,
1685
1692
  disabled: e.disabled,
1686
1693
  class: [
1687
1694
  {
@@ -1689,7 +1696,7 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1689
1696
  "joy-input--field-invalid": e.invalid
1690
1697
  }
1691
1698
  ],
1692
- type: m.value,
1699
+ type: v.value,
1693
1700
  value: e.modelValue,
1694
1701
  onFocus: d[0] || (d[0] = //@ts-ignore
1695
1702
  (...j) => i.onFocus && i.onFocus(...j)),
@@ -1698,7 +1705,7 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1698
1705
  onInput: d[2] || (d[2] = //@ts-ignore
1699
1706
  (...j) => i.onInput && i.onInput(...j))
1700
1707
  }), null, 16, eo),
1701
- f.value ? (v(), x(Ue, {
1708
+ c.value ? (m(), x(Ue, {
1702
1709
  key: 0,
1703
1710
  class: "joy-input--clear",
1704
1711
  circle: "",
@@ -1707,13 +1714,13 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1707
1714
  icon: "cross",
1708
1715
  onClick: i.clearValue
1709
1716
  }, null, 8, ["onClick"])) : _("", !0),
1710
- e.icon && !e.clearable ? (v(), x(R, {
1717
+ e.icon && !e.clearable ? (m(), x(R, {
1711
1718
  key: 1,
1712
1719
  role: "img",
1713
1720
  class: "joy-input--decorative-icon",
1714
1721
  name: e.icon
1715
1722
  }, null, 8, ["name"])) : _("", !0),
1716
- e.unit ? (v(), p("div", {
1723
+ e.unit ? (m(), p("div", {
1717
1724
  key: 2,
1718
1725
  "data-unit": e.unit,
1719
1726
  class: "joy-input--unit"
@@ -1723,7 +1730,7 @@ const W = /* @__PURE__ */ V(Yl, [["__scopeId", "data-v-1265214a"]]), Xl = ["larg
1723
1730
  ], 2));
1724
1731
  }
1725
1732
  });
1726
- const no = /* @__PURE__ */ V(oo, [["__scopeId", "data-v-c37d9a7a"]]), ao = ["teal", "white"], io = ["href"], ro = /* @__PURE__ */ $({
1733
+ const oo = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-46a69828"]]), no = ["teal", "white"], ao = ["href"], io = /* @__PURE__ */ $({
1727
1734
  __name: "VJoyLink",
1728
1735
  props: {
1729
1736
  href: {
@@ -1734,7 +1741,7 @@ const no = /* @__PURE__ */ V(oo, [["__scopeId", "data-v-c37d9a7a"]]), ao = ["tea
1734
1741
  type: String,
1735
1742
  default: "teal",
1736
1743
  validator(e) {
1737
- return ao.includes(e);
1744
+ return no.includes(e);
1738
1745
  }
1739
1746
  },
1740
1747
  icon: {
@@ -1743,22 +1750,22 @@ const no = /* @__PURE__ */ V(oo, [["__scopeId", "data-v-c37d9a7a"]]), ao = ["tea
1743
1750
  text: String
1744
1751
  },
1745
1752
  setup(e) {
1746
- return (t, l) => (v(), p("a", Y({ href: e.href }, t.$attrs, {
1753
+ return (t, l) => (m(), p("a", Y({ href: e.href }, t.$attrs, {
1747
1754
  class: ["joy-link", `joy-link_${e.color}`]
1748
1755
  }), [
1749
- e.icon ? (v(), x(R, {
1756
+ e.icon ? (m(), x(R, {
1750
1757
  key: 0,
1751
1758
  name: e.icon
1752
1759
  }, null, 8, ["name"])) : _("", !0),
1753
1760
  h(t.$slots, "default", {}, () => [
1754
1761
  C(I(e.text), 1)
1755
1762
  ], !0)
1756
- ], 16, io));
1763
+ ], 16, ao));
1757
1764
  }
1758
1765
  });
1759
- const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-a8db21c2"]]), uo = ["id"], co = {
1766
+ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-a8db21c2"]]), so = ["id"], uo = {
1760
1767
  class: /* @__PURE__ */ w(["joy-multi-checkbox"])
1761
- }, fo = /* @__PURE__ */ $({
1768
+ }, co = /* @__PURE__ */ $({
1762
1769
  __name: "VJoyMultiCheckbox",
1763
1770
  props: {
1764
1771
  options: {
@@ -1797,15 +1804,15 @@ const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-a8db21c2"]]), uo = ["id"
1797
1804
  function o(r) {
1798
1805
  return l.value.includes(r.value);
1799
1806
  }
1800
- function a(r, s) {
1801
- let n = [...l.value || []];
1802
- s ? n.push(r) : n.splice(n.indexOf(r), 1), t("update:value", n);
1807
+ function n(r, s) {
1808
+ let a = [...l.value || []];
1809
+ s ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
1803
1810
  }
1804
- return (r, s) => (v(), p("fieldset", {
1811
+ return (r, s) => (m(), p("fieldset", {
1805
1812
  id: e.id,
1806
1813
  class: "joy-multi-checkbox__wrapper"
1807
1814
  }, [
1808
- e.label ? (v(), x(k(W), {
1815
+ e.label ? (m(), x(k(W), {
1809
1816
  key: 0,
1810
1817
  "tag-name": "legend",
1811
1818
  required: e.required && e.requiredMark,
@@ -1817,39 +1824,39 @@ const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-a8db21c2"]]), uo = ["id"
1817
1824
  ]),
1818
1825
  _: 1
1819
1826
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
1820
- g("div", co, [
1821
- (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(k(he), {
1822
- id: n.id,
1823
- key: n.id,
1824
- name: n.name,
1825
- value: n.value,
1826
- checked: o(n),
1827
- "onUpdate:checked": (f) => a(n.value, f)
1827
+ b("div", uo, [
1828
+ (m(!0), p(fe, null, ye(e.options, (a) => (m(), x(k(he), {
1829
+ id: a.id,
1830
+ key: a.id,
1831
+ name: a.name,
1832
+ value: a.value,
1833
+ checked: o(a),
1834
+ "onUpdate:checked": (c) => n(a.value, c)
1828
1835
  }, {
1829
1836
  default: B(() => [
1830
- h(r.$slots, "checkbox", ve(me(n)), () => [
1831
- C(I(n.label), 1)
1837
+ h(r.$slots, "checkbox", ve(me(a)), () => [
1838
+ C(I(a.label), 1)
1832
1839
  ], !0)
1833
1840
  ]),
1834
1841
  _: 2
1835
1842
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1836
1843
  ])
1837
- ], 8, uo));
1844
+ ], 8, so));
1838
1845
  }
1839
1846
  });
1840
- const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-47574ced"]]), vo = ["small", "medium", "large"], mo = ["small", "large"], po = {
1847
+ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-47574ced"]]), yo = ["small", "medium", "large"], vo = ["small", "large"], mo = {
1841
1848
  key: 0,
1842
1849
  class: /* @__PURE__ */ w(["joy-panel__header"])
1843
- }, ho = {
1850
+ }, po = {
1844
1851
  key: 1,
1845
1852
  class: "joy-panel__header-action"
1846
- }, go = {
1853
+ }, ho = {
1847
1854
  key: 2,
1848
1855
  class: "joy-panel__header-subtitle"
1849
- }, bo = { class: "joy-panel__body" }, _o = {
1856
+ }, go = { class: "joy-panel__body" }, bo = {
1850
1857
  key: 1,
1851
1858
  class: "joy-panel__footer"
1852
- }, wo = /* @__PURE__ */ $({
1859
+ }, _o = /* @__PURE__ */ $({
1853
1860
  __name: "VJoyPanel",
1854
1861
  props: {
1855
1862
  flex: {
@@ -1863,14 +1870,14 @@ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-47574ced"]]), vo = ["sma
1863
1870
  type: String,
1864
1871
  default: "medium",
1865
1872
  validator(e) {
1866
- return vo.includes(e);
1873
+ return yo.includes(e);
1867
1874
  }
1868
1875
  },
1869
1876
  titleSize: {
1870
1877
  type: String,
1871
1878
  default: "large",
1872
1879
  validator(e) {
1873
- return mo.includes(e);
1880
+ return vo.includes(e);
1874
1881
  }
1875
1882
  },
1876
1883
  loading: {
@@ -1883,10 +1890,10 @@ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-47574ced"]]), vo = ["sma
1883
1890
  }
1884
1891
  },
1885
1892
  setup(e) {
1886
- const t = dt("VJoyWrapperContext", {}), l = L(() => Object.keys(t).length > 0), o = G(), a = b(), r = L(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1887
- return (s, n) => (v(), p("section", {
1893
+ const t = dt("VJoyWrapperContext", {}), l = L(() => Object.keys(t).length > 0), o = G(), n = g(), r = L(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1894
+ return (s, a) => (m(), p("section", {
1888
1895
  ref_key: "panel",
1889
- ref: a,
1896
+ ref: n,
1890
1897
  style: Z({ flex: e.flex }),
1891
1898
  class: w([
1892
1899
  "joy-panel",
@@ -1897,27 +1904,27 @@ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-47574ced"]]), vo = ["sma
1897
1904
  }
1898
1905
  ])
1899
1906
  }, [
1900
- r.value ? (v(), p("header", po, [
1901
- k(o)["panel-title"] ? (v(), p("div", {
1907
+ r.value ? (m(), p("header", mo, [
1908
+ k(o)["panel-title"] ? (m(), p("div", {
1902
1909
  key: 0,
1903
1910
  class: w(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1904
1911
  }, [
1905
1912
  h(s.$slots, "panel-title", {}, void 0, !0)
1906
1913
  ], 2)) : _("", !0),
1907
- k(o)["panel-title-action"] ? (v(), p("div", ho, [
1914
+ k(o)["panel-title-action"] ? (m(), p("div", po, [
1908
1915
  h(s.$slots, "panel-title-action", {}, void 0, !0)
1909
1916
  ])) : _("", !0),
1910
- k(o)["panel-subtitle"] ? (v(), p("div", go, [
1917
+ k(o)["panel-subtitle"] ? (m(), p("div", ho, [
1911
1918
  h(s.$slots, "panel-subtitle", {}, void 0, !0)
1912
1919
  ])) : _("", !0)
1913
1920
  ])) : _("", !0),
1914
- g("div", bo, [
1921
+ b("div", go, [
1915
1922
  h(s.$slots, "panel-body", {}, void 0, !0)
1916
1923
  ]),
1917
- k(o)["panel-action"] ? (v(), p("footer", _o, [
1924
+ k(o)["panel-action"] ? (m(), p("footer", bo, [
1918
1925
  h(s.$slots, "panel-action", {}, void 0, !0)
1919
1926
  ])) : _("", !0),
1920
- e.loading ? (v(), x(k(be), {
1927
+ e.loading ? (m(), x(k(be), {
1921
1928
  key: 2,
1922
1929
  overlay: "",
1923
1930
  color: e.loadingColor
@@ -1930,27 +1937,27 @@ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-47574ced"]]), vo = ["sma
1930
1937
  ], 6));
1931
1938
  }
1932
1939
  });
1933
- const So = /* @__PURE__ */ V(wo, [["__scopeId", "data-v-2e3a2baa"]]), jo = { class: "joy-panel-section" }, ko = {
1940
+ const wo = /* @__PURE__ */ V(_o, [["__scopeId", "data-v-2e3a2baa"]]), So = { class: "joy-panel-section" }, jo = {
1934
1941
  key: 0,
1935
1942
  class: "joy-panel-section__title"
1936
- }, $o = {
1943
+ }, ko = {
1937
1944
  key: 1,
1938
1945
  class: "joy-panel-section__content"
1939
- }, Vo = /* @__PURE__ */ $({
1946
+ }, $o = /* @__PURE__ */ $({
1940
1947
  __name: "VJoyPanelSection",
1941
1948
  setup(e) {
1942
1949
  const t = G();
1943
- return (l, o) => (v(), p("div", jo, [
1944
- k(t)["panel-section-title"] ? (v(), p("div", ko, [
1950
+ return (l, o) => (m(), p("div", So, [
1951
+ k(t)["panel-section-title"] ? (m(), p("div", jo, [
1945
1952
  h(l.$slots, "panel-section-title", {}, void 0, !0)
1946
1953
  ])) : _("", !0),
1947
- k(t)["panel-section-content"] ? (v(), p("div", $o, [
1954
+ k(t)["panel-section-content"] ? (m(), p("div", ko, [
1948
1955
  h(l.$slots, "panel-section-content", {}, void 0, !0)
1949
1956
  ])) : _("", !0)
1950
1957
  ]));
1951
1958
  }
1952
1959
  });
1953
- const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id", "value", "checked", "disabled", "required", "name"], Oo = { class: "joy-radio-label" }, Bo = { class: "joy-radio-content__wrapper" }, Lo = { class: "joy-radio-content" }, Eo = /* @__PURE__ */ $({
1960
+ 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__ */ $({
1954
1961
  __name: "VJoyRadio",
1955
1962
  props: {
1956
1963
  disabled: {
@@ -1986,11 +1993,11 @@ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id"
1986
1993
  },
1987
1994
  emits: ["update:modelValue"],
1988
1995
  setup(e, { expose: t, emit: l }) {
1989
- const o = e, a = b(!1), r = b(!1), s = b(null), n = b(null), f = G(), c = L(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1996
+ const o = e, n = g(!1), r = g(!1), s = g(null), a = g(null), c = G(), y = L(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1990
1997
  function u() {
1991
- a.value = !!f["expandable-content"] && c.value;
1998
+ n.value = !!c["expandable-content"] && y.value;
1992
1999
  }
1993
- function m() {
2000
+ function v() {
1994
2001
  l("update:modelValue", o.value), u();
1995
2002
  }
1996
2003
  X(() => {
@@ -1999,7 +2006,7 @@ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id"
1999
2006
  function i() {
2000
2007
  r.value = !0;
2001
2008
  }
2002
- function y() {
2009
+ function f() {
2003
2010
  r.value = !1;
2004
2011
  }
2005
2012
  return J(
@@ -2008,16 +2015,16 @@ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id"
2008
2015
  u();
2009
2016
  }
2010
2017
  ), t({
2011
- checked: c,
2012
- isExpanded: a
2013
- }), (d, j) => (v(), p("label", {
2018
+ checked: y,
2019
+ isExpanded: n
2020
+ }), (d, j) => (m(), p("label", {
2014
2021
  ref_key: "root",
2015
2022
  ref: s,
2016
2023
  class: w([
2017
2024
  "joy-radio",
2018
2025
  `joy-radio--${e.theme}`,
2019
2026
  {
2020
- "joy-radio--checked": c.value,
2027
+ "joy-radio--checked": y.value,
2021
2028
  "joy-radio--disabled": e.disabled,
2022
2029
  "joy-radio--invalid": e.invalid,
2023
2030
  "joy-radio--outline-focus": r.value && e.theme === "outline",
@@ -2025,29 +2032,29 @@ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id"
2025
2032
  }
2026
2033
  ])
2027
2034
  }, [
2028
- g("input", {
2035
+ b("input", {
2029
2036
  id: e.id,
2030
2037
  type: "radio",
2031
2038
  value: e.value,
2032
- checked: c.value,
2039
+ checked: y.value,
2033
2040
  disabled: e.disabled,
2034
2041
  required: e.required,
2035
2042
  name: e.name,
2036
- onChange: m,
2043
+ onChange: v,
2037
2044
  onFocus: i,
2038
- onBlur: y
2039
- }, null, 40, Io),
2040
- g("span", Oo, [
2045
+ onBlur: f
2046
+ }, null, 40, xo),
2047
+ b("span", Io, [
2041
2048
  h(d.$slots, "default", {}, void 0, !0)
2042
2049
  ]),
2043
- g("div", Bo, [
2044
- g("div", Lo, [
2050
+ b("div", Oo, [
2051
+ b("div", Bo, [
2045
2052
  h(d.$slots, "radio-content", {}, void 0, !0)
2046
2053
  ]),
2047
- g("div", {
2054
+ b("div", {
2048
2055
  ref_key: "expandableElement",
2049
- ref: n,
2050
- class: w(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
2056
+ ref: a,
2057
+ class: w(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
2051
2058
  }, [
2052
2059
  h(d.$slots, "expandable-content", {}, void 0, !0)
2053
2060
  ], 2)
@@ -2055,7 +2062,7 @@ const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-d88510ab"]]), Io = ["id"
2055
2062
  ], 2));
2056
2063
  }
2057
2064
  });
2058
- const Co = /* @__PURE__ */ V(Eo, [["__scopeId", "data-v-24cea99b"]]), Jo = ["form", "name"], Po = /* @__PURE__ */ $({
2065
+ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-24cea99b"]]), Co = ["form", "name"], Jo = /* @__PURE__ */ $({
2059
2066
  __name: "VJoyRadioGroup",
2060
2067
  props: {
2061
2068
  /**
@@ -2076,7 +2083,7 @@ const Co = /* @__PURE__ */ V(Eo, [["__scopeId", "data-v-24cea99b"]]), Jo = ["for
2076
2083
  }
2077
2084
  },
2078
2085
  setup(e) {
2079
- return (t, l) => (v(), p("fieldset", {
2086
+ return (t, l) => (m(), p("fieldset", {
2080
2087
  ref: "root",
2081
2088
  class: "joy-radio-group-fieldset",
2082
2089
  role: "radiogroup",
@@ -2084,18 +2091,18 @@ const Co = /* @__PURE__ */ V(Eo, [["__scopeId", "data-v-24cea99b"]]), Jo = ["for
2084
2091
  name: e.name
2085
2092
  }, [
2086
2093
  h(t.$slots, "radio-group-legend", {}, void 0, !0),
2087
- g("div", {
2094
+ b("div", {
2088
2095
  class: w(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2089
2096
  }, [
2090
2097
  h(t.$slots, "default", {}, void 0, !0)
2091
2098
  ], 2)
2092
- ], 8, Jo));
2099
+ ], 8, Co));
2093
2100
  }
2094
2101
  });
2095
- const To = /* @__PURE__ */ V(Po, [["__scopeId", "data-v-a77e7f95"]]), qo = { class: "joy-screen-loader__content" }, zo = {
2102
+ const Po = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-a77e7f95"]]), qo = { class: "joy-screen-loader__content" }, To = {
2096
2103
  key: 0,
2097
2104
  class: "joy-screen-loader__content"
2098
- }, Ao = /* @__PURE__ */ $({
2105
+ }, zo = /* @__PURE__ */ $({
2099
2106
  __name: "VJoyScreenLoader",
2100
2107
  props: {
2101
2108
  /** Light or dark. Changes the spinner and background color */
@@ -2110,23 +2117,23 @@ const To = /* @__PURE__ */ V(Po, [["__scopeId", "data-v-a77e7f95"]]), qo = { cla
2110
2117
  }
2111
2118
  },
2112
2119
  setup(e) {
2113
- return (t, l) => (v(), p("div", {
2120
+ return (t, l) => (m(), p("div", {
2114
2121
  class: w(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2115
2122
  }, [
2116
- g("div", qo, [
2123
+ b("div", qo, [
2117
2124
  h(t.$slots, "spinner", {}, () => [
2118
2125
  N(pe, {
2119
2126
  color: e.color === "dark" ? "white" : "teal"
2120
2127
  }, null, 8, ["color"])
2121
2128
  ], !0),
2122
- t.$slots.content ? (v(), p("div", zo, [
2129
+ t.$slots.content ? (m(), p("div", To, [
2123
2130
  h(t.$slots, "content", {}, void 0, !0)
2124
2131
  ])) : _("", !0)
2125
2132
  ])
2126
2133
  ], 2));
2127
2134
  }
2128
2135
  });
2129
- const be = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-5c4f6d7f"]]), Fo = ["id", "name", "aria-invalid", "required", "disabled", "value"], Do = /* @__PURE__ */ $({
2136
+ const be = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-5c4f6d7f"]]), Ao = ["id", "name", "aria-invalid", "required", "disabled", "value"], Fo = /* @__PURE__ */ $({
2130
2137
  __name: "VJoySelect",
2131
2138
  props: {
2132
2139
  disabled: {
@@ -2167,38 +2174,38 @@ const be = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-5c4f6d7f"]]), Fo = ["id"
2167
2174
  },
2168
2175
  emits: ["update:modelValue"],
2169
2176
  setup(e, { emit: t }) {
2170
- const l = e, o = b(), a = b(), r = G(), s = b(!1);
2177
+ const l = e, o = g(), n = g(), r = G(), s = g(!1);
2171
2178
  X(() => {
2172
2179
  var i;
2173
2180
  const u = r.label && r.label();
2174
2181
  if (!u || !u.length)
2175
2182
  return;
2176
- const m = u[0];
2177
- if (m.type === "JoyLabel") {
2178
- const y = (i = m.props) == null ? void 0 : i.for;
2179
- if (!y) {
2183
+ const v = u[0];
2184
+ if (v.type === "JoyLabel") {
2185
+ const f = (i = v.props) == null ? void 0 : i.for;
2186
+ if (!f) {
2180
2187
  console.warn("JoyLabel for attribute is missing");
2181
2188
  return;
2182
2189
  }
2183
- y !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2190
+ f !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2184
2191
  }
2185
2192
  });
2186
- function n(u) {
2187
- const m = u.target.value;
2188
- t("update:modelValue", m);
2193
+ function a(u) {
2194
+ const v = u.target.value;
2195
+ t("update:modelValue", v);
2189
2196
  }
2190
- function f() {
2197
+ function c() {
2191
2198
  s.value = !0;
2192
2199
  }
2193
- function c() {
2200
+ function y() {
2194
2201
  s.value = !1;
2195
2202
  }
2196
- return (u, m) => (v(), p("div", {
2203
+ return (u, v) => (m(), p("div", {
2197
2204
  ref_key: "root",
2198
2205
  ref: o
2199
2206
  }, [
2200
2207
  h(u.$slots, "select-label", {}, () => [
2201
- e.label ? (v(), x(W, {
2208
+ e.label ? (m(), x(W, {
2202
2209
  key: 0,
2203
2210
  required: e.required && e.requiredMark,
2204
2211
  "optional-label": e.optionalLabel,
@@ -2211,7 +2218,7 @@ const be = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-5c4f6d7f"]]), Fo = ["id"
2211
2218
  _: 1
2212
2219
  }, 8, ["required", "optional-label", "for", "size"])) : _("", !0)
2213
2220
  ], !0),
2214
- g("div", {
2221
+ b("div", {
2215
2222
  class: w({
2216
2223
  "joy-select__wrapper": !0,
2217
2224
  "joy-select--invalid": e.invalid,
@@ -2219,22 +2226,22 @@ const be = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-5c4f6d7f"]]), Fo = ["id"
2219
2226
  "joy-select--focusing": s.value
2220
2227
  })
2221
2228
  }, [
2222
- g("select", {
2229
+ b("select", {
2223
2230
  id: e.id || e.name,
2224
2231
  ref_key: "select",
2225
- ref: a,
2232
+ ref: n,
2226
2233
  class: "joy-select",
2227
2234
  name: e.name,
2228
2235
  "aria-invalid": e.invalid,
2229
2236
  required: e.required,
2230
2237
  disabled: e.disabled,
2231
2238
  value: e.modelValue,
2232
- onInput: n,
2233
- onFocus: f,
2234
- onBlur: c
2239
+ onInput: a,
2240
+ onFocus: c,
2241
+ onBlur: y
2235
2242
  }, [
2236
2243
  h(u.$slots, "default", {}, void 0, !0)
2237
- ], 40, Fo),
2244
+ ], 40, Ao),
2238
2245
  N(R, {
2239
2246
  class: "joy-select__chevron",
2240
2247
  name: "chevron-down"
@@ -2243,7 +2250,7 @@ const be = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-5c4f6d7f"]]), Fo = ["id"
2243
2250
  ], 512));
2244
2251
  }
2245
2252
  });
2246
- const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["aria-disabled"], No = ["id", "value", "checked", "disabled", "required", "name"], Ho = /* @__PURE__ */ $({
2253
+ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-b1af08d1"]]), Ro = ["aria-disabled"], Mo = ["id", "value", "checked", "disabled", "required", "name"], No = /* @__PURE__ */ $({
2247
2254
  __name: "VJoySelectableItem",
2248
2255
  props: {
2249
2256
  disabled: {
@@ -2280,15 +2287,15 @@ const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["ari
2280
2287
  },
2281
2288
  emits: ["update:checked"],
2282
2289
  setup(e, { emit: t }) {
2283
- const l = e, o = b(l.checked), a = b(), r = b(!1), s = l.multiple ? "div" : "label", n = {
2290
+ const l = e, o = g(l.checked), n = g(), r = g(!1), s = l.multiple ? "div" : "label", a = {
2284
2291
  onRadioChange: () => {
2285
2292
  t("update:checked", l.value);
2286
2293
  },
2287
2294
  onClick: () => {
2288
2295
  l.checked && !l.multiple && t("update:checked", "");
2289
2296
  },
2290
- onLabelClick: (c) => {
2291
- l.multiple || c.stopPropagation();
2297
+ onLabelClick: (y) => {
2298
+ l.multiple || y.stopPropagation();
2292
2299
  },
2293
2300
  onFocus: () => {
2294
2301
  r.value = !0;
@@ -2297,10 +2304,10 @@ const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["ari
2297
2304
  r.value = !1;
2298
2305
  }
2299
2306
  };
2300
- function f(c) {
2301
- t("update:checked", c);
2307
+ function c(y) {
2308
+ t("update:checked", y);
2302
2309
  }
2303
- return (c, u) => (v(), p("div", {
2310
+ return (y, u) => (m(), p("div", {
2304
2311
  class: w([
2305
2312
  "joy-selectable-item__wrapper",
2306
2313
  {
@@ -2309,13 +2316,13 @@ const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["ari
2309
2316
  ]),
2310
2317
  "aria-disabled": e.disabled,
2311
2318
  onClick: u[4] || (u[4] = //@ts-ignore
2312
- (...m) => n.onClick && n.onClick(...m))
2319
+ (...v) => a.onClick && a.onClick(...v))
2313
2320
  }, [
2314
- e.multiple ? _("", !0) : (v(), p("input", {
2321
+ e.multiple ? _("", !0) : (m(), p("input", {
2315
2322
  key: 0,
2316
2323
  id: e.id,
2317
2324
  ref_key: "inputRadio",
2318
- ref: a,
2325
+ ref: n,
2319
2326
  type: "radio",
2320
2327
  value: e.value,
2321
2328
  checked: e.checked,
@@ -2323,13 +2330,13 @@ const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["ari
2323
2330
  required: e.required,
2324
2331
  name: e.name,
2325
2332
  onChange: u[0] || (u[0] = //@ts-ignore
2326
- (...m) => n.onRadioChange && n.onRadioChange(...m)),
2333
+ (...v) => a.onRadioChange && a.onRadioChange(...v)),
2327
2334
  onFocus: u[1] || (u[1] = //@ts-ignore
2328
- (...m) => n.onFocus && n.onFocus(...m)),
2335
+ (...v) => a.onFocus && a.onFocus(...v)),
2329
2336
  onBlur: u[2] || (u[2] = //@ts-ignore
2330
- (...m) => n.onBlur && n.onBlur(...m))
2331
- }, null, 40, No)),
2332
- (v(), x(ce(k(s)), {
2337
+ (...v) => a.onBlur && a.onBlur(...v))
2338
+ }, null, 40, Mo)),
2339
+ (m(), x(ce(k(s)), {
2333
2340
  for: e.id,
2334
2341
  class: w([
2335
2342
  "joy-selectable-item",
@@ -2340,43 +2347,43 @@ const Ro = /* @__PURE__ */ V(Do, [["__scopeId", "data-v-b1af08d1"]]), Mo = ["ari
2340
2347
  "joy-selectable-item--single": !e.multiple
2341
2348
  }
2342
2349
  ]),
2343
- onClick: n.onLabelClick
2350
+ onClick: a.onLabelClick
2344
2351
  }, {
2345
2352
  default: B(() => [
2346
- e.multiple ? (v(), x(k(he), {
2353
+ e.multiple ? (m(), x(k(he), {
2347
2354
  key: 0,
2348
2355
  id: e.id,
2349
2356
  checked: o.value,
2350
2357
  "onUpdate:checked": [
2351
- u[3] || (u[3] = (m) => o.value = m),
2352
- f
2358
+ u[3] || (u[3] = (v) => o.value = v),
2359
+ c
2353
2360
  ],
2354
2361
  disabled: e.disabled,
2355
2362
  value: e.value,
2356
2363
  name: e.name,
2357
2364
  "display-focus": !1,
2358
2365
  required: e.required,
2359
- onFocus: n.onFocus,
2360
- onBlur: n.onBlur
2366
+ onFocus: a.onFocus,
2367
+ onBlur: a.onBlur
2361
2368
  }, {
2362
2369
  default: B(() => [
2363
- h(c.$slots, "default", {}, void 0, !0)
2370
+ h(y.$slots, "default", {}, void 0, !0)
2364
2371
  ]),
2365
2372
  _: 3
2366
2373
  }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : _("", !0),
2367
- e.multiple ? _("", !0) : h(c.$slots, "default", { key: 1 }, void 0, !0),
2368
- g("div", {
2369
- class: w([{ "joy-selectable-item__sublabel": c.$slots["selectable-item-sublabel"] }])
2374
+ e.multiple ? _("", !0) : h(y.$slots, "default", { key: 1 }, void 0, !0),
2375
+ b("div", {
2376
+ class: w([{ "joy-selectable-item__sublabel": y.$slots["selectable-item-sublabel"] }])
2370
2377
  }, [
2371
- h(c.$slots, "selectable-item-sublabel", {}, void 0, !0)
2378
+ h(y.$slots, "selectable-item-sublabel", {}, void 0, !0)
2372
2379
  ], 2)
2373
2380
  ]),
2374
2381
  _: 3
2375
2382
  }, 8, ["for", "class", "onClick"]))
2376
- ], 10, Mo));
2383
+ ], 10, Ro));
2377
2384
  }
2378
2385
  });
2379
- const lt = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-cb2531c0"]]), Wo = ["id"], Uo = /* @__PURE__ */ $({
2386
+ const lt = /* @__PURE__ */ V(No, [["__scopeId", "data-v-cb2531c0"]]), Ho = ["id"], Wo = /* @__PURE__ */ $({
2380
2387
  __name: "VJoySelectableItemGroup",
2381
2388
  props: {
2382
2389
  options: {
@@ -2421,17 +2428,17 @@ const lt = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-cb2531c0"]]), Wo = ["id"
2421
2428
  function o(r) {
2422
2429
  return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
2423
2430
  }
2424
- function a(r, s) {
2431
+ function n(r, s) {
2425
2432
  if (!l.multiple)
2426
2433
  return t("update:value", s);
2427
- let n = [...l.value || []];
2428
- s && typeof s == "boolean" ? n.push(r) : n.splice(n.indexOf(r), 1), t("update:value", n);
2434
+ let a = [...l.value || []];
2435
+ s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
2429
2436
  }
2430
- return (r, s) => (v(), p("fieldset", {
2437
+ return (r, s) => (m(), p("fieldset", {
2431
2438
  id: e.id,
2432
2439
  class: "joy-selectable-item-group__wrapper"
2433
2440
  }, [
2434
- e.label ? (v(), x(k(W), {
2441
+ e.label ? (m(), x(k(W), {
2435
2442
  key: 0,
2436
2443
  "tag-name": "legend",
2437
2444
  required: e.required && e.requiredMark,
@@ -2443,7 +2450,7 @@ const lt = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-cb2531c0"]]), Wo = ["id"
2443
2450
  ]),
2444
2451
  _: 1
2445
2452
  }, 8, ["required", "optional-label", "size"])) : _("", !0),
2446
- g("div", {
2453
+ b("div", {
2447
2454
  class: w([
2448
2455
  "joy-selectable-item-group",
2449
2456
  {
@@ -2453,34 +2460,34 @@ const lt = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-cb2531c0"]]), Wo = ["id"
2453
2460
  }
2454
2461
  ])
2455
2462
  }, [
2456
- (v(!0), p(fe, null, ye(e.options, (n) => (v(), x(k(lt), {
2457
- id: n.id,
2458
- key: n.id,
2459
- name: n.name,
2460
- disabled: n.disabled,
2461
- value: n.value,
2463
+ (m(!0), p(fe, null, ye(e.options, (a) => (m(), x(k(lt), {
2464
+ id: a.id,
2465
+ key: a.id,
2466
+ name: a.name,
2467
+ disabled: a.disabled,
2468
+ value: a.value,
2462
2469
  multiple: e.multiple,
2463
- checked: o(n),
2464
- "onUpdate:checked": (f) => a(n.value, f)
2470
+ checked: o(a),
2471
+ "onUpdate:checked": (c) => n(a.value, c)
2465
2472
  }, We({
2466
2473
  default: B(() => [
2467
- C(I(n.label) + " ", 1)
2474
+ C(I(a.label) + " ", 1)
2468
2475
  ]),
2469
2476
  _: 2
2470
2477
  }, [
2471
- n.subLabel ? {
2478
+ a.subLabel ? {
2472
2479
  name: "selectable-item-sublabel",
2473
2480
  fn: B(() => [
2474
- C(I(n.subLabel), 1)
2481
+ C(I(a.subLabel), 1)
2475
2482
  ]),
2476
2483
  key: "0"
2477
2484
  } : void 0
2478
2485
  ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2479
2486
  ], 2)
2480
- ], 8, Wo));
2487
+ ], 8, Ho));
2481
2488
  }
2482
2489
  });
2483
- const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-0730aed0"]]), Ko = /* @__PURE__ */ $({
2490
+ const Uo = /* @__PURE__ */ V(Wo, [["__scopeId", "data-v-0730aed0"]]), Go = /* @__PURE__ */ $({
2484
2491
  __name: "VJoyWrapper",
2485
2492
  props: {
2486
2493
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2514,7 +2521,7 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-0730aed0"]]), Ko = /* @_
2514
2521
  }
2515
2522
  },
2516
2523
  setup(e) {
2517
- return ct("VJoyWrapperContext", e), (l, o) => (v(), p("div", {
2524
+ return ct("VJoyWrapperContext", e), (l, o) => (m(), p("div", {
2518
2525
  class: w([
2519
2526
  "joy-wrapper",
2520
2527
  `joy-wrapper--justify-${e.justify}`,
@@ -2529,28 +2536,28 @@ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-0730aed0"]]), Ko = /* @_
2529
2536
  ], 2));
2530
2537
  }
2531
2538
  });
2532
- const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-e2f29698"]]), Zo = { class: "joy-template__wrapper" }, Yo = {
2539
+ const Ko = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-e2f29698"]]), Qo = { class: "joy-template__wrapper" }, Zo = {
2533
2540
  key: 0,
2534
2541
  class: "joy-template__heading"
2535
- }, Xo = {
2542
+ }, Yo = {
2536
2543
  key: 0,
2537
2544
  class: "joy-template-slot-back"
2538
- }, en = { class: "joy-template__heading___headings" }, tn = {
2545
+ }, Xo = { class: "joy-template__heading___headings" }, en = {
2539
2546
  key: 0,
2540
2547
  class: "joy-template-slot-title"
2541
- }, ln = {
2548
+ }, tn = {
2542
2549
  key: 1,
2543
2550
  class: "joy-template-slot-subtitle"
2544
- }, on = {
2551
+ }, ln = {
2545
2552
  key: 1,
2546
2553
  class: "joy-template-slot-actions"
2547
- }, nn = {
2554
+ }, on = {
2548
2555
  key: 0,
2549
2556
  class: "joy-template-slot-main"
2550
- }, an = {
2557
+ }, nn = {
2551
2558
  key: 1,
2552
2559
  class: "joy-template-slot-sidebar"
2553
- }, rn = /* @__PURE__ */ $({
2560
+ }, an = /* @__PURE__ */ $({
2554
2561
  __name: "VJoyTemplate",
2555
2562
  props: {
2556
2563
  full: { type: Boolean, default: !1 },
@@ -2566,27 +2573,27 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-e2f29698"]]), Zo = { cla
2566
2573
  },
2567
2574
  setup(e) {
2568
2575
  const t = e, l = G(), o = L(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"] || !!l["template-actions"]);
2569
- return (a, r) => (v(), p("main", {
2576
+ return (n, r) => (m(), p("main", {
2570
2577
  class: w(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
2571
2578
  }, [
2572
- g("div", Zo, [
2573
- o.value ? (v(), p("div", Yo, [
2574
- k(l)["template-back"] ? (v(), p("div", Xo, [
2575
- h(a.$slots, "template-back", {}, void 0, !0)
2579
+ b("div", Qo, [
2580
+ o.value ? (m(), p("div", Zo, [
2581
+ k(l)["template-back"] ? (m(), p("div", Yo, [
2582
+ h(n.$slots, "template-back", {}, void 0, !0)
2576
2583
  ])) : _("", !0),
2577
- g("div", en, [
2578
- k(l)["template-title"] ? (v(), p("div", tn, [
2579
- h(a.$slots, "template-title", {}, void 0, !0)
2584
+ b("div", Xo, [
2585
+ k(l)["template-title"] ? (m(), p("div", en, [
2586
+ h(n.$slots, "template-title", {}, void 0, !0)
2580
2587
  ])) : _("", !0),
2581
- k(l)["template-subtitle"] ? (v(), p("div", ln, [
2582
- h(a.$slots, "template-subtitle", {}, void 0, !0)
2588
+ k(l)["template-subtitle"] ? (m(), p("div", tn, [
2589
+ h(n.$slots, "template-subtitle", {}, void 0, !0)
2583
2590
  ])) : _("", !0)
2584
2591
  ]),
2585
- k(l)["template-actions"] ? (v(), p("div", on, [
2586
- h(a.$slots, "template-actions", {}, void 0, !0)
2592
+ k(l)["template-actions"] ? (m(), p("div", ln, [
2593
+ h(n.$slots, "template-actions", {}, void 0, !0)
2587
2594
  ])) : _("", !0)
2588
2595
  ])) : _("", !0),
2589
- g("div", {
2596
+ b("div", {
2590
2597
  class: w([
2591
2598
  "joy-template__content",
2592
2599
  {
@@ -2594,34 +2601,34 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-e2f29698"]]), Zo = { cla
2594
2601
  }
2595
2602
  ])
2596
2603
  }, [
2597
- a.$slots["template-main"] ? (v(), p("div", nn, [
2598
- h(a.$slots, "template-main", {}, void 0, !0)
2604
+ n.$slots["template-main"] ? (m(), p("div", on, [
2605
+ h(n.$slots, "template-main", {}, void 0, !0)
2599
2606
  ])) : _("", !0),
2600
- a.$slots["template-sidebar"] ? (v(), p("div", an, [
2601
- h(a.$slots, "template-sidebar", {}, void 0, !0)
2607
+ n.$slots["template-sidebar"] ? (m(), p("div", nn, [
2608
+ h(n.$slots, "template-sidebar", {}, void 0, !0)
2602
2609
  ])) : _("", !0)
2603
2610
  ], 2)
2604
2611
  ]),
2605
- e.loading ? (v(), x(be, {
2612
+ e.loading ? (m(), x(be, {
2606
2613
  key: 0,
2607
2614
  overlay: "",
2608
2615
  color: e.loadingColor
2609
2616
  }, {
2610
2617
  content: B(() => [
2611
- h(a.$slots, "template-loader-content", {}, void 0, !0)
2618
+ h(n.$slots, "template-loader-content", {}, void 0, !0)
2612
2619
  ]),
2613
2620
  _: 3
2614
2621
  }, 8, ["color"])) : _("", !0)
2615
2622
  ], 2));
2616
2623
  }
2617
2624
  });
2618
- const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["aria-disabled"], dn = { class: "joy-textarea_wrapper" }, cn = ["id", "disabled", "name", "required", "minlength", "value"], fn = {
2625
+ 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 = {
2619
2626
  key: 0,
2620
2627
  class: "joy-textarea_helpers"
2621
- }, yn = {
2628
+ }, fn = {
2622
2629
  inheritAttrs: !1
2623
- }, vn = /* @__PURE__ */ $({
2624
- ...yn,
2630
+ }, yn = /* @__PURE__ */ $({
2631
+ ...fn,
2625
2632
  __name: "VJoyTextarea",
2626
2633
  props: {
2627
2634
  disabled: {
@@ -2670,24 +2677,24 @@ const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["ari
2670
2677
  },
2671
2678
  emits: ["update:modelValue"],
2672
2679
  setup(e, { expose: t, emit: l }) {
2673
- const o = e, a = b(), { triggerResize: r } = Xt({
2674
- element: o.autogrow ? a : void 0
2675
- }), s = b(!1), n = b(!1), f = L(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), c = L(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2676
- onInput: (m) => {
2677
- l("update:modelValue", m.target.value), r();
2680
+ const o = e, n = g(), { triggerResize: r } = Xt({
2681
+ element: o.autogrow ? n : void 0
2682
+ }), s = g(!1), a = g(!1), c = L(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), y = L(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2683
+ onInput: (v) => {
2684
+ l("update:modelValue", v.target.value), r();
2678
2685
  },
2679
2686
  onBlur: () => {
2680
- n.value = !1, s.value = f.value || c.value;
2687
+ a.value = !1, s.value = c.value || y.value;
2681
2688
  },
2682
2689
  onFocus: () => {
2683
- n.value = !0;
2690
+ a.value = !0;
2684
2691
  }
2685
2692
  };
2686
2693
  return t({
2687
2694
  isInvalid: s,
2688
- valueOverMaxlength: f,
2689
- valueUnderMinlength: c
2690
- }), (m, i) => (v(), p("div", {
2695
+ valueOverMaxlength: c,
2696
+ valueUnderMinlength: y
2697
+ }), (v, i) => (m(), p("div", {
2691
2698
  "aria-disabled": e.disabled,
2692
2699
  class: w([
2693
2700
  "joy-textarea",
@@ -2695,7 +2702,7 @@ const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["ari
2695
2702
  "joy-textarea_invalid": s.value || e.invalid,
2696
2703
  "joy-textarea_disabled": e.disabled,
2697
2704
  "joy-textarea_autogrow": e.autogrow,
2698
- "joy-textarea_focusing": n.value
2705
+ "joy-textarea_focusing": a.value
2699
2706
  }
2700
2707
  ])
2701
2708
  }, [
@@ -2706,17 +2713,17 @@ const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["ari
2706
2713
  size: e.labelSize
2707
2714
  }, {
2708
2715
  default: B(() => [
2709
- h(m.$slots, "default", {}, () => [
2716
+ h(v.$slots, "default", {}, () => [
2710
2717
  C(I(e.label), 1)
2711
2718
  ], !0)
2712
2719
  ]),
2713
2720
  _: 3
2714
2721
  }, 8, ["for", "required", "optional-label", "size"]),
2715
- g("div", dn, [
2716
- g("textarea", Y(m.$attrs, {
2722
+ b("div", un, [
2723
+ b("textarea", Y(v.$attrs, {
2717
2724
  id: e.id,
2718
2725
  ref_key: "textarea",
2719
- ref: a,
2726
+ ref: n,
2720
2727
  class: "joy-native-textarea",
2721
2728
  disabled: e.disabled,
2722
2729
  name: e.name,
@@ -2724,19 +2731,19 @@ const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["ari
2724
2731
  minlength: e.minlength,
2725
2732
  value: e.modelValue,
2726
2733
  onInput: i[0] || (i[0] = //@ts-ignore
2727
- (...y) => u.onInput && u.onInput(...y)),
2734
+ (...f) => u.onInput && u.onInput(...f)),
2728
2735
  onFocus: i[1] || (i[1] = //@ts-ignore
2729
- (...y) => u.onFocus && u.onFocus(...y)),
2736
+ (...f) => u.onFocus && u.onFocus(...f)),
2730
2737
  onBlur: i[2] || (i[2] = //@ts-ignore
2731
- (...y) => u.onBlur && u.onBlur(...y))
2732
- }), null, 16, cn)
2738
+ (...f) => u.onBlur && u.onBlur(...f))
2739
+ }), null, 16, dn)
2733
2740
  ]),
2734
- e.minlength || e.maxlength ? (v(), p("div", fn, [
2735
- e.minlength ? (v(), p("p", {
2741
+ e.minlength || e.maxlength ? (m(), p("div", cn, [
2742
+ e.minlength ? (m(), p("p", {
2736
2743
  key: 0,
2737
2744
  class: w(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2738
2745
  }, [
2739
- c.value ? _("", !0) : (v(), x(R, {
2746
+ y.value ? _("", !0) : (m(), x(R, {
2740
2747
  key: 0,
2741
2748
  name: "check",
2742
2749
  color: "neutral",
@@ -2744,28 +2751,28 @@ const sn = /* @__PURE__ */ V(rn, [["__scopeId", "data-v-a2355e4b"]]), un = ["ari
2744
2751
  })),
2745
2752
  C(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2746
2753
  ], 2)) : _("", !0),
2747
- e.maxlength ? (v(), p("p", {
2754
+ e.maxlength ? (m(), p("p", {
2748
2755
  key: 1,
2749
- class: w(["joy-textarea-count", { "joy-textarea-count-invalid": f.value }])
2756
+ class: w(["joy-textarea-count", { "joy-textarea-count-invalid": c.value }])
2750
2757
  }, I(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
2751
2758
  ])) : _("", !0)
2752
- ], 10, un));
2759
+ ], 10, sn));
2753
2760
  }
2754
2761
  });
2755
- const mn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) => (ft("data-v-cf79d999"), e = e(), yt(), e), pn = { class: "joy-toggle__wrapper" }, hn = ["name", "disabled", "checked", "required", "aria-checked", "value"], gn = { class: "joy-toggle__content" }, bn = /* @__PURE__ */ ot(() => /* @__PURE__ */ g("span", { class: "joy-toggle__symbol" }, null, -1)), _n = { class: "joy-toggle__content-label" }, wn = /* @__PURE__ */ ot(() => /* @__PURE__ */ g("span", { class: "joy-toggle__smile" }, [
2756
- /* @__PURE__ */ g("svg", {
2762
+ 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" }, [
2763
+ /* @__PURE__ */ b("svg", {
2757
2764
  width: "18",
2758
2765
  height: "10",
2759
2766
  viewBox: "0 0 18 10",
2760
2767
  fill: "currentColor",
2761
2768
  xmlns: "http://www.w3.org/2000/svg"
2762
2769
  }, [
2763
- /* @__PURE__ */ g("path", {
2770
+ /* @__PURE__ */ b("path", {
2764
2771
  d: "M9.0237 9.14856C15.7144 9.14856 17.8736 2.22231 17.9649 1.91853L17.9345 1.94891C18.1778 1.15908 17.7216 0.308485 16.9309 0.0654591C16.1402 -0.177566 15.2886 0.278108 15.0453 1.06794C14.9845 1.25021 13.5551 6.11073 8.99328 6.11073C4.43147 6.11073 3.03249 1.43248 2.97167 1.21983C2.75878 0.399622 1.90724 -0.0560541 1.11652 0.156593C0.295397 0.369241 -0.160787 1.18945 0.0520982 2.00967C0.721165 4.4703 3.48869 9.14856 9.0237 9.14856Z",
2765
2772
  fill: "currentColor"
2766
2773
  })
2767
2774
  ])
2768
- ], -1)), Sn = /* @__PURE__ */ $({
2775
+ ], -1)), wn = /* @__PURE__ */ $({
2769
2776
  __name: "VJoyToggle",
2770
2777
  props: {
2771
2778
  modelValue: {
@@ -2799,9 +2806,9 @@ const mn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2799
2806
  },
2800
2807
  emits: ["update:modelValue"],
2801
2808
  setup(e, { emit: t }) {
2802
- const l = b(!1), o = {
2803
- onChange: (a) => {
2804
- const r = a.target.checked;
2809
+ const l = g(!1), o = {
2810
+ onChange: (n) => {
2811
+ const r = n.target.checked;
2805
2812
  t("update:modelValue", r);
2806
2813
  },
2807
2814
  onFocus: () => {
@@ -2811,8 +2818,8 @@ const mn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2811
2818
  l.value = !1;
2812
2819
  }
2813
2820
  };
2814
- return (a, r) => (v(), p("div", pn, [
2815
- g("label", {
2821
+ return (n, r) => (m(), p("div", mn, [
2822
+ b("label", {
2816
2823
  class: w([
2817
2824
  "joy-toggle",
2818
2825
  {
@@ -2822,7 +2829,7 @@ const mn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2822
2829
  }
2823
2830
  ])
2824
2831
  }, [
2825
- g("input", {
2832
+ b("input", {
2826
2833
  ref: "input",
2827
2834
  type: "checkbox",
2828
2835
  class: "joy-toggle__input",
@@ -2839,21 +2846,21 @@ const mn = /* @__PURE__ */ V(vn, [["__scopeId", "data-v-d0d2c93e"]]), ot = (e) =
2839
2846
  (...s) => o.onFocus && o.onFocus(...s)),
2840
2847
  onBlur: r[2] || (r[2] = //@ts-ignore
2841
2848
  (...s) => o.onBlur && o.onBlur(...s))
2842
- }, null, 40, hn),
2843
- g("p", gn, [
2844
- bn,
2845
- g("span", _n, [
2846
- h(a.$slots, "default", {}, () => [
2849
+ }, null, 40, pn),
2850
+ b("p", hn, [
2851
+ gn,
2852
+ b("span", bn, [
2853
+ h(n.$slots, "default", {}, () => [
2847
2854
  C(I(e.label), 1)
2848
2855
  ], !0)
2849
2856
  ]),
2850
- wn
2857
+ _n
2851
2858
  ])
2852
2859
  ], 2)
2853
2860
  ]));
2854
2861
  }
2855
2862
  });
2856
- const jn = /* @__PURE__ */ V(Sn, [["__scopeId", "data-v-cf79d999"]]), kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2863
+ const Sn = /* @__PURE__ */ V(wn, [["__scopeId", "data-v-cf79d999"]]), jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2857
2864
  __proto__: null,
2858
2865
  VJoyBadge: pt,
2859
2866
  VJoyButton: Ue,
@@ -2864,32 +2871,32 @@ const jn = /* @__PURE__ */ V(Sn, [["__scopeId", "data-v-cf79d999"]]), kn = /* @_
2864
2871
  VJoyFormError: tt,
2865
2872
  VJoyHighlight: Gl,
2866
2873
  VJoyIcon: R,
2867
- VJoyInput: no,
2874
+ VJoyInput: oo,
2868
2875
  VJoyLabel: W,
2869
- VJoyLink: so,
2870
- VJoyMultiCheckbox: yo,
2871
- VJoyPanel: So,
2872
- VJoyPanelSection: xo,
2873
- VJoyRadio: Co,
2874
- VJoyRadioGroup: To,
2876
+ VJoyLink: ro,
2877
+ VJoyMultiCheckbox: fo,
2878
+ VJoyPanel: wo,
2879
+ VJoyPanelSection: Vo,
2880
+ VJoyRadio: Eo,
2881
+ VJoyRadioGroup: Po,
2875
2882
  VJoyScreenLoader: be,
2876
- VJoySelect: Ro,
2883
+ VJoySelect: Do,
2877
2884
  VJoySelectableItem: lt,
2878
- VJoySelectableItemGroup: Go,
2885
+ VJoySelectableItemGroup: Uo,
2879
2886
  VJoySpinner: pe,
2880
- VJoyTemplate: sn,
2881
- VJoyTextarea: mn,
2882
- VJoyToggle: jn,
2883
- VJoyWrapper: Qo
2884
- }, Symbol.toStringTag, { value: "Module" })), Vn = {
2887
+ VJoyTemplate: rn,
2888
+ VJoyTextarea: vn,
2889
+ VJoyToggle: Sn,
2890
+ VJoyWrapper: Ko
2891
+ }, Symbol.toStringTag, { value: "Module" })), $n = {
2885
2892
  install: (e) => {
2886
- Object.entries(kn).forEach(([t, l]) => {
2893
+ Object.entries(jn).forEach(([t, l]) => {
2887
2894
  e.component(t, l);
2888
2895
  });
2889
2896
  }
2890
2897
  };
2891
2898
  export {
2892
- Vn as JoyVuePlugin,
2899
+ $n as JoyVuePlugin,
2893
2900
  pt as VJoyBadge,
2894
2901
  Ue as VJoyButton,
2895
2902
  he as VJoyCheckbox,
@@ -2899,21 +2906,21 @@ export {
2899
2906
  tt as VJoyFormError,
2900
2907
  Gl as VJoyHighlight,
2901
2908
  R as VJoyIcon,
2902
- no as VJoyInput,
2909
+ oo as VJoyInput,
2903
2910
  W as VJoyLabel,
2904
- so as VJoyLink,
2905
- yo as VJoyMultiCheckbox,
2906
- So as VJoyPanel,
2907
- xo as VJoyPanelSection,
2908
- Co as VJoyRadio,
2909
- To as VJoyRadioGroup,
2911
+ ro as VJoyLink,
2912
+ fo as VJoyMultiCheckbox,
2913
+ wo as VJoyPanel,
2914
+ Vo as VJoyPanelSection,
2915
+ Eo as VJoyRadio,
2916
+ Po as VJoyRadioGroup,
2910
2917
  be as VJoyScreenLoader,
2911
- Ro as VJoySelect,
2918
+ Do as VJoySelect,
2912
2919
  lt as VJoySelectableItem,
2913
- Go as VJoySelectableItemGroup,
2920
+ Uo as VJoySelectableItemGroup,
2914
2921
  pe as VJoySpinner,
2915
- sn as VJoyTemplate,
2916
- mn as VJoyTextarea,
2917
- jn as VJoyToggle,
2918
- Qo as VJoyWrapper
2922
+ rn as VJoyTemplate,
2923
+ vn as VJoyTextarea,
2924
+ Sn as VJoyToggle,
2925
+ Ko as VJoyWrapper
2919
2926
  };