@maltjoy/core-vue 1.0.0-beta.4 → 1.0.0-beta.6

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
@@ -32,8 +32,8 @@ const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
32
32
  });
33
33
  const V = (e, t) => {
34
34
  const l = e.__vccOpts || e;
35
- for (const [o, a] of t)
36
- l[o] = a;
35
+ for (const [o, n] of t)
36
+ l[o] = n;
37
37
  return l;
38
38
  }, ft = /* @__PURE__ */ V(ct, [["__scopeId", "data-v-c0310e42"]]), yt = ["teal", "white"], vt = /* @__PURE__ */ $({
39
39
  __name: "VJoySpinner",
@@ -51,7 +51,7 @@ const V = (e, t) => {
51
51
  }, null, 2));
52
52
  }
53
53
  });
54
- const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...mt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = /* @__PURE__ */ $({
54
+ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...mt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = ["name", "size"], jt = /* @__PURE__ */ $({
55
55
  __name: "VJoyButton",
56
56
  props: {
57
57
  /**
@@ -64,6 +64,11 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
64
64
  },
65
65
  /** Name of the icon, placed before the text */
66
66
  icon: String,
67
+ /** Left to the text or right */
68
+ iconPosition: {
69
+ type: String,
70
+ default: "left"
71
+ },
67
72
  /** Change the component's state and display a JoySpinner. */
68
73
  loading: {
69
74
  type: Boolean,
@@ -90,7 +95,7 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
90
95
  const t = e, l = Re(), o = x(() => {
91
96
  switch (t.size) {
92
97
  case "xxsmall":
93
- return "xsmall";
98
+ return "xxsmall";
94
99
  case "xsmall":
95
100
  return "xxsmall";
96
101
  case "small":
@@ -98,8 +103,8 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
98
103
  default:
99
104
  return "small";
100
105
  }
101
- }), a = x(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
102
- return (i, s) => (m(), q(ce(_(l).href ? "a" : "button"), {
106
+ }), n = x(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
107
+ return (r, s) => (m(), q(ce(_(l).href ? "a" : "button"), {
103
108
  disabled: e.loading || _(l).disabled,
104
109
  class: k([
105
110
  "joy-button",
@@ -112,25 +117,33 @@ const He = /* @__PURE__ */ V(vt, [["__scopeId", "data-v-616a29d0"]]), mt = ["pri
112
117
  ])
113
118
  }, {
114
119
  default: L(() => [
115
- e.icon ? (m(), p("joy-icon", {
120
+ e.icon && e.iconPosition === "left" ? (m(), p("joy-icon", {
116
121
  key: 0,
122
+ class: "joy-button_icon joy-button_icon--left",
117
123
  name: e.icon,
118
124
  size: _(o),
119
125
  lazy: !1
120
126
  }, null, 8, _t)) : w("", !0),
121
127
  e.loading ? (m(), q(He, {
122
128
  key: 1,
123
- color: _(a)
129
+ color: _(n)
124
130
  }, null, 8, ["color"])) : w("", !0),
125
131
  h("span", wt, [
126
- g(i.$slots, "default", {}, void 0, !0)
127
- ])
132
+ g(r.$slots, "default", {}, void 0, !0)
133
+ ]),
134
+ e.icon && e.iconPosition === "right" ? (m(), p("joy-icon", {
135
+ key: 2,
136
+ class: "joy-button_icon joy-button_icon--right",
137
+ name: e.icon,
138
+ size: _(o),
139
+ lazy: !1
140
+ }, null, 8, St)) : w("", !0)
128
141
  ]),
129
142
  _: 3
130
143
  }, 8, ["disabled", "class"]));
131
144
  }
132
145
  });
133
- const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["aria-checked", "aria-hidden"], $t = { class: "joy-checkbox__input-wrapper" }, Vt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], xt = { class: "joy-checkbox__content-wrapper" }, Ot = { class: "joy-checkbox__content" }, It = /* @__PURE__ */ $({
146
+ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-5e0e1d63"]]), $t = ["aria-checked", "aria-hidden"], Vt = { class: "joy-checkbox__input-wrapper" }, xt = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Ot = { class: "joy-checkbox__content-wrapper" }, It = { class: "joy-checkbox__content" }, Bt = /* @__PURE__ */ $({
134
147
  __name: "VJoyCheckbox",
135
148
  props: {
136
149
  /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
@@ -178,10 +191,10 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
178
191
  },
179
192
  emits: ["update:checked", "focus", "blur"],
180
193
  setup(e, { expose: t, emit: l }) {
181
- const o = e, a = b(), i = b(o.indeterminate), s = b(!1), n = {
194
+ const o = e, n = b(), r = b(o.indeterminate), s = b(!1), a = {
182
195
  onChange: (c) => {
183
196
  const f = c.target.checked;
184
- i.value = !1, l("update:checked", f);
197
+ r.value = !1, l("update:checked", f);
185
198
  },
186
199
  onFocus: () => {
187
200
  s.value = !0, l("focus");
@@ -191,7 +204,7 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
191
204
  }
192
205
  };
193
206
  return t({
194
- isIndeterminate: i
207
+ isIndeterminate: r
195
208
  }), (c, f) => (m(), p("div", {
196
209
  "aria-checked": e.checked,
197
210
  "aria-hidden": e.disabled
@@ -201,16 +214,16 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
201
214
  "joy-checkbox",
202
215
  {
203
216
  "joy-checkbox__checked": e.checked,
204
- "joy-checkbox__indeterminate": i.value,
217
+ "joy-checkbox__indeterminate": r.value,
205
218
  "joy-checkbox__focusing": s.value && e.displayFocus
206
219
  }
207
220
  ])
208
221
  }, [
209
- h("div", $t, [
222
+ h("div", Vt, [
210
223
  h("input", {
211
224
  id: e.id,
212
225
  ref_key: "input",
213
- ref: a,
226
+ ref: n,
214
227
  type: "checkbox",
215
228
  class: "joy-checkbox__input",
216
229
  role: "checkbox",
@@ -220,43 +233,43 @@ const jt = /* @__PURE__ */ V(St, [["__scopeId", "data-v-ff4bd9af"]]), kt = ["ari
220
233
  required: e.required,
221
234
  "aria-checked": e.checked,
222
235
  value: e.value,
223
- indeterminate: i.value,
236
+ indeterminate: r.value,
224
237
  onChange: f[0] || (f[0] = //@ts-ignore
225
- (...u) => n.onChange && n.onChange(...u)),
238
+ (...u) => a.onChange && a.onChange(...u)),
226
239
  onFocus: f[1] || (f[1] = //@ts-ignore
227
- (...u) => n.onFocus && n.onFocus(...u)),
240
+ (...u) => a.onFocus && a.onFocus(...u)),
228
241
  onBlur: f[2] || (f[2] = //@ts-ignore
229
- (...u) => n.onBlur && n.onBlur(...u))
230
- }, null, 40, Vt)
242
+ (...u) => a.onBlur && a.onBlur(...u))
243
+ }, null, 40, xt)
231
244
  ]),
232
- h("div", xt, [
245
+ h("div", Ot, [
233
246
  g(c.$slots, "default", {}, () => [
234
247
  J(I(e.label), 1)
235
248
  ], !0),
236
- h("div", Ot, [
249
+ h("div", It, [
237
250
  g(c.$slots, "checkbox-content", {}, void 0, !0)
238
251
  ])
239
252
  ])
240
253
  ], 2)
241
- ], 8, kt));
254
+ ], 8, $t));
242
255
  }
243
256
  });
244
- const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Bt = { class: "joy-counter" }, Lt = ["aria-label", "disabled"], Et = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
257
+ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-a39797a6"]]), We = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Lt = { class: "joy-counter" }, Et = ["aria-label", "disabled"], Pt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
245
258
  name: "minus",
246
259
  color: "teal",
247
260
  lazy: !1
248
261
  }, null, -1)), Ct = [
249
- Et
250
- ], Pt = { class: "joy-counter__input-wrapper" }, Jt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], qt = ["aria-label", "disabled"], Tt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
262
+ Pt
263
+ ], Jt = { class: "joy-counter__input-wrapper" }, qt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], zt = /* @__PURE__ */ We(() => /* @__PURE__ */ h("joy-icon", {
251
264
  name: "add",
252
265
  lazy: !1,
253
266
  color: "teal"
254
- }, null, -1)), zt = [
255
- Tt
256
- ], At = {
267
+ }, null, -1)), At = [
268
+ zt
269
+ ], Ft = {
257
270
  key: 0,
258
271
  class: "joy-counter_error"
259
- }, Ft = /* @__PURE__ */ $({
272
+ }, Dt = /* @__PURE__ */ $({
260
273
  __name: "VJoyCounter",
261
274
  props: {
262
275
  /** Removes any interactivity */
@@ -323,45 +336,45 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
323
336
  },
324
337
  emits: ["update:modelValue"],
325
338
  setup(e, { expose: t, emit: l }) {
326
- const o = e, a = b(!1), i = b(!1);
339
+ const o = e, n = b(!1), r = b(!1);
327
340
  function s() {
328
341
  const d = f(!1);
329
342
  d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), c();
330
343
  }
331
- function n() {
344
+ function a() {
332
345
  const d = f();
333
346
  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();
334
347
  }
335
348
  function c() {
336
- a.value = !u();
349
+ n.value = !u();
337
350
  }
338
351
  function f(d = !0) {
339
352
  const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
340
353
  return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
341
354
  }
342
355
  function u() {
343
- return v() && r();
356
+ return v() && i();
344
357
  }
345
358
  function v() {
346
359
  return !o.max || o.modelValue <= o.max;
347
360
  }
348
- function r() {
361
+ function i() {
349
362
  return o.min <= o.modelValue;
350
363
  }
351
364
  const y = {
352
365
  onInput: (d) => {
353
- l("update:modelValue", +d.target.value || 0), a.value = !1;
366
+ l("update:modelValue", +d.target.value || 0), n.value = !1;
354
367
  },
355
368
  onFocus: () => {
356
- i.value = !0;
369
+ r.value = !0;
357
370
  },
358
371
  onBlur: () => {
359
- i.value = !1, c();
372
+ r.value = !1, c();
360
373
  }
361
374
  };
362
375
  return t({
363
376
  props: o
364
- }), (d, j) => (m(), p("div", Bt, [
377
+ }), (d, j) => (m(), p("div", Lt, [
365
378
  e.label ? (m(), q(_(N), {
366
379
  key: 0,
367
380
  for: e.id,
@@ -377,7 +390,7 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
377
390
  _: 3
378
391
  }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
379
392
  h("div", {
380
- class: k(["joy-counter__wrapper", { "joy-counter--focusing": i.value }])
393
+ class: k(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
381
394
  }, [
382
395
  h("button", {
383
396
  class: "joy-counter__decrement",
@@ -385,16 +398,16 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
385
398
  "aria-label": e.labelDecrement,
386
399
  disabled: e.modelValue <= e.min,
387
400
  onClick: s
388
- }, Ct, 8, Lt),
389
- h("div", Pt, [
401
+ }, Ct, 8, Et),
402
+ h("div", Jt, [
390
403
  h("input", Q({
391
404
  id: e.id,
392
405
  ref: "input",
393
406
  type: "number",
394
- class: { "joy-counter__invalid": e.invalid || a.value },
407
+ class: { "joy-counter__invalid": e.invalid || n.value },
395
408
  min: e.min,
396
409
  max: e.max,
397
- "aria-invalid": e.invalid || a.value,
410
+ "aria-invalid": e.invalid || n.value,
398
411
  name: e.name,
399
412
  required: e.required,
400
413
  step: "any",
@@ -406,65 +419,65 @@ const he = /* @__PURE__ */ V(It, [["__scopeId", "data-v-a39797a6"]]), We = (e) =
406
419
  (...S) => y.onBlur && y.onBlur(...S)),
407
420
  onFocus: j[2] || (j[2] = //@ts-ignore
408
421
  (...S) => y.onFocus && y.onFocus(...S))
409
- }), null, 16, Jt)
422
+ }), null, 16, qt)
410
423
  ]),
411
424
  h("button", {
412
425
  class: "joy-counter__increment",
413
426
  type: "button",
414
427
  "aria-label": e.labelIncrement,
415
428
  disabled: e.max ? e.modelValue >= e.max : !1,
416
- onClick: n
417
- }, zt, 8, qt),
418
- e.invalid && e.errorMessage ? (m(), p("div", At, [
429
+ onClick: a
430
+ }, At, 8, Tt),
431
+ e.invalid && e.errorMessage ? (m(), p("div", Ft, [
419
432
  fe(_(et), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
420
433
  ])) : w("", !0)
421
434
  ], 2)
422
435
  ]));
423
436
  }
424
437
  });
425
- const Dt = /* @__PURE__ */ V(Ft, [["__scopeId", "data-v-0d1ab3f2"]]);
438
+ const Rt = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-0d1ab3f2"]]);
426
439
  var _e;
427
440
  const U = typeof window < "u", Ue = (e) => typeof e == "string", z = () => {
428
441
  }, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
429
- function C(e) {
442
+ function P(e) {
430
443
  return typeof e == "function" ? e() : _(e);
431
444
  }
432
445
  function Ge(e, t) {
433
446
  function l(...o) {
434
- return new Promise((a, i) => {
435
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(a).catch(i);
447
+ return new Promise((n, r) => {
448
+ Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
436
449
  });
437
450
  }
438
451
  return l;
439
452
  }
440
- function Rt(e, t = {}) {
441
- let l, o, a = z;
442
- const i = (n) => {
443
- clearTimeout(n), a(), a = z;
453
+ function Mt(e, t = {}) {
454
+ let l, o, n = z;
455
+ const r = (a) => {
456
+ clearTimeout(a), n(), n = z;
444
457
  };
445
- return (n) => {
446
- const c = C(e), f = C(t.maxWait);
447
- return l && i(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (i(o), o = null), Promise.resolve(n())) : new Promise((u, v) => {
448
- a = t.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
449
- l && i(l), o = null, u(n());
458
+ return (a) => {
459
+ const c = P(e), f = P(t.maxWait);
460
+ return l && r(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
461
+ n = t.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
462
+ l && r(l), o = null, u(a());
450
463
  }, f)), l = setTimeout(() => {
451
- o && i(o), o = null, u(n());
464
+ o && r(o), o = null, u(a());
452
465
  }, c);
453
466
  });
454
467
  };
455
468
  }
456
- function Mt(e, t = !0, l = !0, o = !1) {
457
- let a = 0, i, s = !0, n = z, c;
469
+ function Nt(e, t = !0, l = !0, o = !1) {
470
+ let n = 0, r, s = !0, a = z, c;
458
471
  const f = () => {
459
- i && (clearTimeout(i), i = void 0, n(), n = z);
472
+ r && (clearTimeout(r), r = void 0, a(), a = z);
460
473
  };
461
474
  return (v) => {
462
- const r = C(e), y = Date.now() - a, d = () => c = v();
463
- return f(), r <= 0 ? (a = Date.now(), d()) : (y > r && (l || !s) ? (a = Date.now(), d()) : t && (c = new Promise((j, S) => {
464
- n = o ? S : j, i = setTimeout(() => {
465
- a = Date.now(), s = !0, j(d()), f();
466
- }, Math.max(0, r - y));
467
- })), !l && !i && (i = setTimeout(() => s = !0, r)), s = !1, c);
475
+ const i = P(e), y = Date.now() - n, d = () => c = v();
476
+ return f(), i <= 0 ? (n = Date.now(), d()) : (y > i && (l || !s) ? (n = Date.now(), d()) : t && (c = new Promise((j, S) => {
477
+ a = o ? S : j, r = setTimeout(() => {
478
+ n = Date.now(), s = !0, j(d()), f();
479
+ }, Math.max(0, i - y));
480
+ })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, c);
468
481
  };
469
482
  }
470
483
  const R = {
@@ -472,19 +485,19 @@ const R = {
472
485
  updated: "updated",
473
486
  unmounted: "unmounted"
474
487
  };
475
- function Nt(e) {
488
+ function Ht(e) {
476
489
  return e;
477
490
  }
478
491
  function G(e) {
479
492
  return ot() ? (nt(e), !0) : !1;
480
493
  }
481
- function Ht(e, t = 200, l = {}) {
482
- return Ge(Rt(t, l), e);
494
+ function Wt(e, t = 200, l = {}) {
495
+ return Ge(Mt(t, l), e);
483
496
  }
484
- function Wt(e, t = 200, l = !1, o = !0, a = !1) {
485
- return Ge(Mt(t, l, o, a), e);
497
+ function Ut(e, t = 200, l = !1, o = !0, n = !1) {
498
+ return Ge(Nt(t, l, o, n), e);
486
499
  }
487
- function Ut(e) {
500
+ function Gt(e) {
488
501
  return typeof e == "function" ? x(e) : b(e);
489
502
  }
490
503
  function Ke(e, t = !0) {
@@ -492,7 +505,7 @@ function Ke(e, t = !0) {
492
505
  }
493
506
  function H(e) {
494
507
  var t;
495
- const l = C(e);
508
+ const l = P(e);
496
509
  return (t = l == null ? void 0 : l.$el) != null ? t : l;
497
510
  }
498
511
  const be = U ? window : void 0;
@@ -500,84 +513,84 @@ U && window.document;
500
513
  U && window.navigator;
501
514
  U && window.location;
502
515
  function ae(...e) {
503
- let t, l, o, a;
504
- if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = be) : [t, l, o, a] = e, !t)
516
+ let t, l, o, n;
517
+ if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
505
518
  return z;
506
519
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
507
- const i = [], s = () => {
508
- i.forEach((u) => u()), i.length = 0;
509
- }, n = (u, v, r, y) => (u.addEventListener(v, r, y), () => u.removeEventListener(v, r, y)), c = B(() => [H(t), C(a)], ([u, v]) => {
510
- s(), u && i.push(...l.flatMap((r) => o.map((y) => n(u, r, y, v))));
520
+ const r = [], s = () => {
521
+ r.forEach((u) => u()), r.length = 0;
522
+ }, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [H(t), P(n)], ([u, v]) => {
523
+ s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
511
524
  }, { immediate: !0, flush: "post" }), f = () => {
512
525
  c(), s();
513
526
  };
514
527
  return G(f), f;
515
528
  }
516
529
  let we = !1;
517
- function Gt(e, t, l = {}) {
518
- const { window: o = be, ignore: a = [], capture: i = !0, detectIframe: s = !1 } = l;
530
+ function Kt(e, t, l = {}) {
531
+ const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
519
532
  if (!o)
520
533
  return;
521
- ee && !we && (we = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", z)));
522
- let n = !0;
523
- const c = (r) => a.some((y) => {
534
+ ee && !we && (we = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
535
+ let a = !0;
536
+ const c = (i) => n.some((y) => {
524
537
  if (typeof y == "string")
525
- return Array.from(o.document.querySelectorAll(y)).some((d) => d === r.target || r.composedPath().includes(d));
538
+ return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
526
539
  {
527
540
  const d = H(y);
528
- return d && (r.target === d || r.composedPath().includes(d));
541
+ return d && (i.target === d || i.composedPath().includes(d));
529
542
  }
530
543
  }), u = [
531
- ae(o, "click", (r) => {
544
+ ae(o, "click", (i) => {
532
545
  const y = H(e);
533
- if (!(!y || y === r.target || r.composedPath().includes(y))) {
534
- if (r.detail === 0 && (n = !c(r)), !n) {
535
- n = !0;
546
+ if (!(!y || y === i.target || i.composedPath().includes(y))) {
547
+ if (i.detail === 0 && (a = !c(i)), !a) {
548
+ a = !0;
536
549
  return;
537
550
  }
538
- t(r);
551
+ t(i);
539
552
  }
540
- }, { passive: !0, capture: i }),
541
- ae(o, "pointerdown", (r) => {
553
+ }, { passive: !0, capture: r }),
554
+ ae(o, "pointerdown", (i) => {
542
555
  const y = H(e);
543
- y && (n = !r.composedPath().includes(y) && !c(r));
556
+ y && (a = !i.composedPath().includes(y) && !c(i));
544
557
  }, { passive: !0 }),
545
- s && ae(o, "blur", (r) => {
558
+ s && ae(o, "blur", (i) => {
546
559
  var y;
547
560
  const d = H(e);
548
- ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(r);
561
+ ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
549
562
  })
550
563
  ].filter(Boolean);
551
- return () => u.forEach((r) => r());
564
+ return () => u.forEach((i) => i());
552
565
  }
553
- function Kt(e, t = !1) {
566
+ function Qt(e, t = !1) {
554
567
  const l = b(), o = () => l.value = Boolean(e());
555
568
  return o(), Ke(o, t), l;
556
569
  }
557
570
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
558
571
  ie[re] = ie[re] || {};
559
572
  ie[re];
560
- var Se = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, Yt = (e, t) => {
573
+ var Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Xt = (e, t) => {
561
574
  var l = {};
562
575
  for (var o in e)
563
- Qt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
576
+ Zt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
564
577
  if (e != null && Se)
565
578
  for (var o of Se(e))
566
- t.indexOf(o) < 0 && Zt.call(e, o) && (l[o] = e[o]);
579
+ t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
567
580
  return l;
568
581
  };
569
- function Xt(e, t, l = {}) {
570
- const o = l, { window: a = be } = o, i = Yt(o, ["window"]);
582
+ function el(e, t, l = {}) {
583
+ const o = l, { window: n = be } = o, r = Xt(o, ["window"]);
571
584
  let s;
572
- const n = Kt(() => a && "ResizeObserver" in a), c = () => {
585
+ const a = Qt(() => n && "ResizeObserver" in n), c = () => {
573
586
  s && (s.disconnect(), s = void 0);
574
587
  }, f = B(() => H(e), (v) => {
575
- c(), n.value && a && v && (s = new ResizeObserver(t), s.observe(v, i));
588
+ c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
576
589
  }, { immediate: !0, flush: "post" }), u = () => {
577
590
  c(), f();
578
591
  };
579
592
  return G(u), {
580
- isSupported: n,
593
+ isSupported: a,
581
594
  stop: u
582
595
  };
583
596
  }
@@ -585,27 +598,27 @@ var je;
585
598
  (function(e) {
586
599
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
587
600
  })(je || (je = {}));
588
- function el(e) {
601
+ function tl(e) {
589
602
  const t = b(e == null ? void 0 : e.element), l = b(e == null ? void 0 : e.input);
590
603
  function o() {
591
- var a, i;
592
- t.value && (t.value.style.height = "1px", t.value.style.height = `${(a = t.value) == null ? void 0 : a.scrollHeight}px`, (i = e == null ? void 0 : e.onResize) == null || i.call(e));
604
+ var n, r;
605
+ 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));
593
606
  }
594
- return B([l, t], o, { immediate: !0 }), Xt(t, () => o()), e != null && e.watch && B(e.watch, o, { immediate: !0, deep: !0 }), {
607
+ return B([l, t], o, { immediate: !0 }), el(t, () => o()), e != null && e.watch && B(e.watch, o, { immediate: !0, deep: !0 }), {
595
608
  textarea: t,
596
609
  input: l,
597
610
  triggerResize: o
598
611
  };
599
612
  }
600
- var tl = Object.defineProperty, ke = Object.getOwnPropertySymbols, ll = Object.prototype.hasOwnProperty, ol = Object.prototype.propertyIsEnumerable, $e = (e, t, l) => t in e ? tl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, nl = (e, t) => {
613
+ var ll = Object.defineProperty, ke = Object.getOwnPropertySymbols, ol = Object.prototype.hasOwnProperty, nl = Object.prototype.propertyIsEnumerable, $e = (e, t, l) => t in e ? ll(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, al = (e, t) => {
601
614
  for (var l in t || (t = {}))
602
- ll.call(t, l) && $e(e, l, t[l]);
615
+ ol.call(t, l) && $e(e, l, t[l]);
603
616
  if (ke)
604
617
  for (var l of ke(t))
605
- ol.call(t, l) && $e(e, l, t[l]);
618
+ nl.call(t, l) && $e(e, l, t[l]);
606
619
  return e;
607
620
  };
608
- const al = {
621
+ const il = {
609
622
  easeInSine: [0.12, 0, 0.39, 0],
610
623
  easeOutSine: [0.61, 1, 0.88, 1],
611
624
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -631,38 +644,38 @@ const al = {
631
644
  easeOutBack: [0.34, 1.56, 0.64, 1],
632
645
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
633
646
  };
634
- nl({
635
- linear: Nt
636
- }, al);
637
- const il = /* @__PURE__ */ $({
647
+ al({
648
+ linear: Ht
649
+ }, il);
650
+ const rl = /* @__PURE__ */ $({
638
651
  name: "OnClickOutside",
639
652
  props: ["as", "options"],
640
653
  emits: ["trigger"],
641
654
  setup(e, { slots: t, emit: l }) {
642
655
  const o = b();
643
- return Gt(o, (a) => {
644
- l("trigger", a);
656
+ return Kt(o, (n) => {
657
+ l("trigger", n);
645
658
  }, e.options), () => {
646
659
  if (t.default)
647
660
  return it(e.as || "div", { ref: o }, t.default());
648
661
  };
649
662
  }
650
663
  });
651
- function P(e) {
664
+ function C(e) {
652
665
  var t;
653
- const l = C(e);
666
+ const l = P(e);
654
667
  return (t = l == null ? void 0 : l.$el) != null ? t : l;
655
668
  }
656
669
  const M = U ? window : void 0;
657
670
  function A(...e) {
658
- let t, l, o, a;
659
- if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, a] = e, t = M) : [t, l, o, a] = e, !t)
671
+ let t, l, o, n;
672
+ if (Ue(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = M) : [t, l, o, n] = e, !t)
660
673
  return z;
661
674
  Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
662
- const i = [], s = () => {
663
- i.forEach((u) => u()), i.length = 0;
664
- }, n = (u, v, r, y) => (u.addEventListener(v, r, y), () => u.removeEventListener(v, r, y)), c = B(() => [P(t), C(a)], ([u, v]) => {
665
- s(), u && i.push(...l.flatMap((r) => o.map((y) => n(u, r, y, v))));
675
+ const r = [], s = () => {
676
+ r.forEach((u) => u()), r.length = 0;
677
+ }, a = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = B(() => [C(t), P(n)], ([u, v]) => {
678
+ s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, v))));
666
679
  }, { immediate: !0, flush: "post" }), f = () => {
667
680
  c(), s();
668
681
  };
@@ -670,77 +683,77 @@ function A(...e) {
670
683
  }
671
684
  let Ve = !1;
672
685
  function xe(e, t, l = {}) {
673
- const { window: o = M, ignore: a = [], capture: i = !0, detectIframe: s = !1 } = l;
686
+ const { window: o = M, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
674
687
  if (!o)
675
688
  return;
676
- ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((r) => r.addEventListener("click", z)));
677
- let n = !0;
678
- const c = (r) => a.some((y) => {
689
+ ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
690
+ let a = !0;
691
+ const c = (i) => n.some((y) => {
679
692
  if (typeof y == "string")
680
- return Array.from(o.document.querySelectorAll(y)).some((d) => d === r.target || r.composedPath().includes(d));
693
+ return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
681
694
  {
682
- const d = P(y);
683
- return d && (r.target === d || r.composedPath().includes(d));
695
+ const d = C(y);
696
+ return d && (i.target === d || i.composedPath().includes(d));
684
697
  }
685
698
  }), u = [
686
- A(o, "click", (r) => {
687
- const y = P(e);
688
- if (!(!y || y === r.target || r.composedPath().includes(y))) {
689
- if (r.detail === 0 && (n = !c(r)), !n) {
690
- n = !0;
699
+ A(o, "click", (i) => {
700
+ const y = C(e);
701
+ if (!(!y || y === i.target || i.composedPath().includes(y))) {
702
+ if (i.detail === 0 && (a = !c(i)), !a) {
703
+ a = !0;
691
704
  return;
692
705
  }
693
- t(r);
706
+ t(i);
694
707
  }
695
- }, { passive: !0, capture: i }),
696
- A(o, "pointerdown", (r) => {
697
- const y = P(e);
698
- y && (n = !r.composedPath().includes(y) && !c(r));
708
+ }, { passive: !0, capture: r }),
709
+ A(o, "pointerdown", (i) => {
710
+ const y = C(e);
711
+ y && (a = !i.composedPath().includes(y) && !c(i));
699
712
  }, { passive: !0 }),
700
- s && A(o, "blur", (r) => {
713
+ s && A(o, "blur", (i) => {
701
714
  var y;
702
- const d = P(e);
703
- ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(r);
715
+ const d = C(e);
716
+ ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
704
717
  })
705
718
  ].filter(Boolean);
706
- return () => u.forEach((r) => r());
719
+ return () => u.forEach((i) => i());
707
720
  }
708
721
  R.mounted + "", R.unmounted + "";
709
- const rl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
722
+ const sl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
710
723
  function Oe(...e) {
711
724
  let t, l, o = {};
712
725
  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]);
713
- const { target: a = M, eventName: i = "keydown", passive: s = !1 } = o, n = rl(t);
714
- return A(a, i, (f) => {
715
- n(f) && l(f);
726
+ const { target: n = M, eventName: r = "keydown", passive: s = !1 } = o, a = sl(t);
727
+ return A(n, r, (f) => {
728
+ a(f) && l(f);
716
729
  }, s);
717
730
  }
718
- var sl = Object.defineProperty, Ie = Object.getOwnPropertySymbols, ul = Object.prototype.hasOwnProperty, dl = Object.prototype.propertyIsEnumerable, Be = (e, t, l) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, cl = (e, t) => {
731
+ var ul = Object.defineProperty, Ie = Object.getOwnPropertySymbols, dl = Object.prototype.hasOwnProperty, cl = Object.prototype.propertyIsEnumerable, Be = (e, t, l) => t in e ? ul(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, fl = (e, t) => {
719
732
  for (var l in t || (t = {}))
720
- ul.call(t, l) && Be(e, l, t[l]);
733
+ dl.call(t, l) && Be(e, l, t[l]);
721
734
  if (Ie)
722
735
  for (var l of Ie(t))
723
- dl.call(t, l) && Be(e, l, t[l]);
736
+ cl.call(t, l) && Be(e, l, t[l]);
724
737
  return e;
725
738
  };
726
739
  R.mounted + "";
727
- const fl = 500;
740
+ const yl = 500;
728
741
  function Le(e, t, l) {
729
- var o, a;
730
- const i = x(() => P(e));
742
+ var o, n;
743
+ const r = x(() => C(e));
731
744
  let s;
732
- function n() {
745
+ function a() {
733
746
  s && (clearTimeout(s), s = void 0);
734
747
  }
735
748
  function c(u) {
736
- var v, r, y, d;
737
- (v = l == null ? void 0 : l.modifiers) != null && v.self && u.target !== i.value || (n(), (r = l == null ? void 0 : l.modifiers) != null && r.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 : fl));
749
+ var v, i, y, d;
750
+ (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(), (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 : yl));
738
751
  }
739
752
  const f = {
740
753
  capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
741
- once: (a = l == null ? void 0 : l.modifiers) == null ? void 0 : a.once
754
+ once: (n = l == null ? void 0 : l.modifiers) == null ? void 0 : n.once
742
755
  };
743
- A(i, "pointerdown", c, f), A(i, "pointerup", n, f), A(i, "pointerleave", n, f);
756
+ A(r, "pointerdown", c, f), A(r, "pointerup", a, f), A(r, "pointerleave", a, f);
744
757
  }
745
758
  R.mounted + "";
746
759
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
@@ -750,98 +763,98 @@ function Qe(e, t = !1) {
750
763
  const l = b(), o = () => l.value = Boolean(e());
751
764
  return o(), Ke(o, t), l;
752
765
  }
753
- function yl(e, t = {}) {
754
- const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, a = b(!1);
755
- let i;
756
- const s = (n) => {
757
- const c = n ? l : o;
758
- i && (clearTimeout(i), i = void 0), c ? i = setTimeout(() => a.value = n, c) : a.value = n;
766
+ function vl(e, t = {}) {
767
+ const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = b(!1);
768
+ let r;
769
+ const s = (a) => {
770
+ const c = a ? l : o;
771
+ r && (clearTimeout(r), r = void 0), c ? r = setTimeout(() => n.value = a, c) : n.value = a;
759
772
  };
760
- return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), a;
773
+ return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
761
774
  }
762
775
  R.mounted + "";
763
- var Ee = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, ml = Object.prototype.propertyIsEnumerable, pl = (e, t) => {
776
+ var Ee = Object.getOwnPropertySymbols, ml = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable, hl = (e, t) => {
764
777
  var l = {};
765
778
  for (var o in e)
766
- vl.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
779
+ ml.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
767
780
  if (e != null && Ee)
768
781
  for (var o of Ee(e))
769
- t.indexOf(o) < 0 && ml.call(e, o) && (l[o] = e[o]);
782
+ t.indexOf(o) < 0 && pl.call(e, o) && (l[o] = e[o]);
770
783
  return l;
771
784
  };
772
- function hl(e, t, l = {}) {
773
- const o = l, { window: a = M } = o, i = pl(o, ["window"]);
785
+ function bl(e, t, l = {}) {
786
+ const o = l, { window: n = M } = o, r = hl(o, ["window"]);
774
787
  let s;
775
- const n = Qe(() => a && "ResizeObserver" in a), c = () => {
788
+ const a = Qe(() => n && "ResizeObserver" in n), c = () => {
776
789
  s && (s.disconnect(), s = void 0);
777
- }, f = B(() => P(e), (v) => {
778
- c(), n.value && a && v && (s = new ResizeObserver(t), s.observe(v, i));
790
+ }, f = B(() => C(e), (v) => {
791
+ c(), a.value && n && v && (s = new ResizeObserver(t), s.observe(v, r));
779
792
  }, { immediate: !0, flush: "post" }), u = () => {
780
793
  c(), f();
781
794
  };
782
795
  return G(u), {
783
- isSupported: n,
796
+ isSupported: a,
784
797
  stop: u
785
798
  };
786
799
  }
787
- function bl(e, t = { width: 0, height: 0 }, l = {}) {
788
- const { window: o = M, box: a = "content-box" } = l, i = x(() => {
800
+ function gl(e, t = { width: 0, height: 0 }, l = {}) {
801
+ const { window: o = M, box: n = "content-box" } = l, r = x(() => {
789
802
  var c, f;
790
- return (f = (c = P(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
791
- }), s = b(t.width), n = b(t.height);
792
- return hl(e, ([c]) => {
793
- const f = a === "border-box" ? c.borderBoxSize : a === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
794
- if (o && i.value) {
795
- const u = P(e);
803
+ return (f = (c = C(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
804
+ }), s = b(t.width), a = b(t.height);
805
+ return bl(e, ([c]) => {
806
+ const f = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
807
+ if (o && r.value) {
808
+ const u = C(e);
796
809
  if (u) {
797
810
  const v = o.getComputedStyle(u);
798
- s.value = parseFloat(v.width), n.value = parseFloat(v.height);
811
+ s.value = parseFloat(v.width), a.value = parseFloat(v.height);
799
812
  }
800
813
  } else if (f) {
801
814
  const u = Array.isArray(f) ? f : [f];
802
- s.value = u.reduce((v, { inlineSize: r }) => v + r, 0), n.value = u.reduce((v, { blockSize: r }) => v + r, 0);
815
+ s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
803
816
  } else
804
- s.value = c.contentRect.width, n.value = c.contentRect.height;
805
- }, l), B(() => P(e), (c) => {
806
- s.value = c ? t.width : 0, n.value = c ? t.height : 0;
817
+ s.value = c.contentRect.width, a.value = c.contentRect.height;
818
+ }, l), B(() => C(e), (c) => {
819
+ s.value = c ? t.width : 0, a.value = c ? t.height : 0;
807
820
  }), {
808
821
  width: s,
809
- height: n
822
+ height: a
810
823
  };
811
824
  }
812
825
  R.mounted + "";
813
- function Ce(e, { window: t = M, scrollTarget: l } = {}) {
814
- const o = b(!1), a = () => {
826
+ function Pe(e, { window: t = M, scrollTarget: l } = {}) {
827
+ const o = b(!1), n = () => {
815
828
  if (!t)
816
829
  return;
817
- const i = t.document, s = P(e);
830
+ const r = t.document, s = C(e);
818
831
  if (!s)
819
832
  o.value = !1;
820
833
  else {
821
- const n = s.getBoundingClientRect();
822
- o.value = n.top <= (t.innerHeight || i.documentElement.clientHeight) && n.left <= (t.innerWidth || i.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
834
+ const a = s.getBoundingClientRect();
835
+ o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
823
836
  }
824
837
  };
825
- return B(() => P(e), () => a(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", a, {
838
+ return B(() => C(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
826
839
  capture: !1,
827
840
  passive: !0
828
841
  }), o;
829
842
  }
830
843
  R.mounted + "";
831
- const Pe = 1;
844
+ const Ce = 1;
832
845
  function de(e, t = {}) {
833
846
  const {
834
847
  throttle: l = 0,
835
848
  idle: o = 200,
836
- onStop: a = z,
837
- onScroll: i = z,
849
+ onStop: n = z,
850
+ onScroll: r = z,
838
851
  offset: s = {
839
852
  left: 0,
840
853
  right: 0,
841
854
  top: 0,
842
855
  bottom: 0
843
856
  },
844
- eventListenerOptions: n = {
857
+ eventListenerOptions: a = {
845
858
  capture: !1,
846
859
  passive: !0
847
860
  },
@@ -853,7 +866,7 @@ function de(e, t = {}) {
853
866
  set(O) {
854
867
  y(O, void 0);
855
868
  }
856
- }), r = x({
869
+ }), i = x({
857
870
  get() {
858
871
  return u.value;
859
872
  },
@@ -863,11 +876,11 @@ function de(e, t = {}) {
863
876
  });
864
877
  function y(O, T) {
865
878
  var D, F, ge;
866
- const ne = C(e);
879
+ const ne = P(e);
867
880
  ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
868
- top: (D = C(T)) != null ? D : r.value,
869
- left: (F = C(O)) != null ? F : v.value,
870
- behavior: C(c)
881
+ top: (D = P(T)) != null ? D : i.value,
882
+ left: (F = P(O)) != null ? F : v.value,
883
+ behavior: P(c)
871
884
  }));
872
885
  }
873
886
  const d = b(!1), j = X({
@@ -881,40 +894,40 @@ function de(e, t = {}) {
881
894
  top: !1,
882
895
  bottom: !1
883
896
  }), Y = (O) => {
884
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, a(O));
885
- }, oe = Ht(Y, l + o), E = (O) => {
897
+ d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(O));
898
+ }, oe = Wt(Y, l + o), E = (O) => {
886
899
  const T = O.target === document ? O.target.documentElement : O.target, D = T.scrollLeft;
887
- S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) - Pe, f.value = D;
900
+ S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + T.clientWidth >= T.scrollWidth - (s.right || 0) - Ce, f.value = D;
888
901
  let F = T.scrollTop;
889
- O.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(O), i(O);
902
+ O.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) - Ce, u.value = F, d.value = !0, oe(O), r(O);
890
903
  };
891
- return A(e, "scroll", l ? Wt(E, l, !0, !1) : E, n), A(e, "scrollend", Y, n), {
904
+ return A(e, "scroll", l ? Ut(E, l, !0, !1) : E, a), A(e, "scrollend", Y, a), {
892
905
  x: v,
893
- y: r,
906
+ y: i,
894
907
  isScrolling: d,
895
908
  arrivedState: j,
896
909
  directions: S
897
910
  };
898
911
  }
899
- var gl = Object.defineProperty, _l = Object.defineProperties, wl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, Sl = Object.prototype.hasOwnProperty, jl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? gl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Te = (e, t) => {
912
+ var _l = Object.defineProperty, wl = Object.defineProperties, Sl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, jl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable, qe = (e, t, l) => t in e ? _l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Te = (e, t) => {
900
913
  for (var l in t || (t = {}))
901
- Sl.call(t, l) && qe(e, l, t[l]);
914
+ jl.call(t, l) && qe(e, l, t[l]);
902
915
  if (Je)
903
916
  for (var l of Je(t))
904
- jl.call(t, l) && qe(e, l, t[l]);
917
+ kl.call(t, l) && qe(e, l, t[l]);
905
918
  return e;
906
- }, kl = (e, t) => _l(e, wl(t));
919
+ }, $l = (e, t) => wl(e, Sl(t));
907
920
  function ze(e, t, l = {}) {
908
- var o, a;
909
- const i = (o = l.direction) != null ? o : "bottom", s = X(de(e, kl(Te({}, l), {
921
+ var o, n;
922
+ const r = (o = l.direction) != null ? o : "bottom", s = X(de(e, $l(Te({}, l), {
910
923
  offset: Te({
911
- [i]: (a = l.distance) != null ? a : 0
924
+ [r]: (n = l.distance) != null ? n : 0
912
925
  }, l.offset)
913
926
  })));
914
- B(() => s.arrivedState[i], async (n) => {
927
+ B(() => s.arrivedState[r], async (a) => {
915
928
  var c, f;
916
- if (n) {
917
- const u = C(e), v = {
929
+ if (a) {
930
+ const u = P(e), v = {
918
931
  height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
919
932
  width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
920
933
  };
@@ -931,21 +944,21 @@ R.mounted + "";
931
944
  function Ae(e, t, l = {}) {
932
945
  const {
933
946
  root: o,
934
- rootMargin: a = "0px",
935
- threshold: i = 0.1,
947
+ rootMargin: n = "0px",
948
+ threshold: r = 0.1,
936
949
  window: s = M
937
- } = l, n = Qe(() => s && "IntersectionObserver" in s);
950
+ } = l, a = Qe(() => s && "IntersectionObserver" in s);
938
951
  let c = z;
939
- const f = n.value ? B(() => ({
940
- el: P(e),
941
- root: P(o)
942
- }), ({ el: v, root: r }) => {
952
+ const f = a.value ? B(() => ({
953
+ el: C(e),
954
+ root: C(o)
955
+ }), ({ el: v, root: i }) => {
943
956
  if (c(), !v)
944
957
  return;
945
958
  const y = new IntersectionObserver(t, {
946
- root: r,
947
- rootMargin: a,
948
- threshold: i
959
+ root: i,
960
+ rootMargin: n,
961
+ threshold: r
949
962
  });
950
963
  y.observe(v), c = () => {
951
964
  y.disconnect(), c = z;
@@ -954,19 +967,19 @@ function Ae(e, t, l = {}) {
954
967
  c(), f();
955
968
  };
956
969
  return G(u), {
957
- isSupported: n,
970
+ isSupported: a,
958
971
  stop: u
959
972
  };
960
973
  }
961
974
  R.mounted + "";
962
- var $l = Object.defineProperty, Vl = Object.defineProperties, xl = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Ol = Object.prototype.hasOwnProperty, Il = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? $l(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Bl = (e, t) => {
975
+ var Vl = Object.defineProperty, xl = Object.defineProperties, Ol = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, Il = Object.prototype.hasOwnProperty, Bl = Object.prototype.propertyIsEnumerable, De = (e, t, l) => t in e ? Vl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l, Ll = (e, t) => {
963
976
  for (var l in t || (t = {}))
964
- Ol.call(t, l) && De(e, l, t[l]);
977
+ Il.call(t, l) && De(e, l, t[l]);
965
978
  if (Fe)
966
979
  for (var l of Fe(t))
967
- Il.call(t, l) && De(e, l, t[l]);
980
+ Bl.call(t, l) && De(e, l, t[l]);
968
981
  return e;
969
- }, Ll = (e, t) => Vl(e, xl(t));
982
+ }, El = (e, t) => xl(e, Ol(t));
970
983
  R.mounted + "";
971
984
  function Ze(e) {
972
985
  const t = window.getComputedStyle(e);
@@ -977,61 +990,64 @@ function Ze(e) {
977
990
  return !l || l.tagName === "BODY" ? !1 : Ze(l);
978
991
  }
979
992
  }
980
- function El(e) {
993
+ function Pl(e) {
981
994
  const t = e || window.event, l = t.target;
982
995
  return Ze(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
983
996
  }
984
997
  function Cl(e, t = !1) {
985
998
  const l = b(t);
986
- let o = null, a;
987
- B(Ut(e), (n) => {
988
- if (n) {
989
- const c = n;
990
- a = c.style.overflow, l.value && (c.style.overflow = "hidden");
999
+ let o = null, n;
1000
+ B(Gt(e), (a) => {
1001
+ if (a) {
1002
+ const c = a;
1003
+ n = c.style.overflow, l.value && (c.style.overflow = "hidden");
991
1004
  }
992
1005
  }, {
993
1006
  immediate: !0
994
1007
  });
995
- const i = () => {
996
- const n = C(e);
997
- !n || l.value || (ee && (o = A(n, "touchmove", (c) => {
998
- El(c);
999
- }, { passive: !1 })), n.style.overflow = "hidden", l.value = !0);
1008
+ const r = () => {
1009
+ const a = P(e);
1010
+ !a || l.value || (ee && (o = A(a, "touchmove", (c) => {
1011
+ Pl(c);
1012
+ }, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
1000
1013
  }, s = () => {
1001
- const n = C(e);
1002
- !n || !l.value || (ee && (o == null || o()), n.style.overflow = a, l.value = !1);
1014
+ const a = P(e);
1015
+ !a || !l.value || (ee && (o == null || o()), a.style.overflow = n, l.value = !1);
1003
1016
  };
1004
1017
  return G(s), x({
1005
1018
  get() {
1006
1019
  return l.value;
1007
1020
  },
1008
- set(n) {
1009
- n ? i() : s();
1021
+ set(a) {
1022
+ a ? r() : s();
1010
1023
  }
1011
1024
  });
1012
1025
  }
1013
- const Pl = () => {
1026
+ const Jl = () => {
1014
1027
  let e = !1;
1015
1028
  const t = b(!1);
1016
1029
  return (l, o) => {
1017
1030
  if (t.value = o.value, e)
1018
1031
  return;
1019
1032
  e = !0;
1020
- const a = Cl(l, o.value);
1021
- B(t, (i) => a.value = i);
1033
+ const n = Cl(l, o.value);
1034
+ B(t, (r) => n.value = r);
1022
1035
  };
1023
1036
  };
1024
- Pl();
1025
- const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataLabel", "onClick"], ql = {
1037
+ Jl();
1038
+ const Ye = ["medium", "small"], ql = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Tl = {
1026
1039
  key: 0,
1027
1040
  class: "joy-dropdown-list__footer"
1028
- }, Tl = /* @__PURE__ */ $({
1041
+ }, zl = /* @__PURE__ */ $({
1029
1042
  __name: "VJoyDropdownList",
1030
1043
  props: {
1044
+ /**
1045
+ * In order to make it work with v-model, you need to pass for each option, a value or an ID.
1046
+ */
1031
1047
  options: {
1032
1048
  type: Array,
1033
1049
  validator(e) {
1034
- return e.every((l) => Object.keys(l).includes("label"));
1050
+ return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
1035
1051
  },
1036
1052
  default() {
1037
1053
  return [];
@@ -1058,58 +1074,58 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
1058
1074
  },
1059
1075
  emits: ["update:modelValue", "close:dropdownList"],
1060
1076
  setup(e, { expose: t, emit: l }) {
1061
- const o = e, a = b(), i = x(() => (r) => !o.modelValue && !r.value ? !1 : o.modelValue === r.label || o.modelValue === r.value);
1062
- function s(r) {
1063
- r.disabled || l("update:modelValue", r.label);
1077
+ const o = e, n = b(), r = x(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1078
+ function s(i) {
1079
+ i.disabled || l("update:modelValue", i.value || i.id);
1064
1080
  }
1065
- function n() {
1066
- var r;
1067
- return Array.from(((r = a.value) == null ? void 0 : r.querySelectorAll("li")) || []);
1081
+ function a() {
1082
+ var i;
1083
+ return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1068
1084
  }
1069
1085
  function c() {
1070
- const r = n().find((y) => y.getAttribute("aria-selected") === "true");
1071
- r && (r.focus(), a.value.scrollTo({
1072
- top: r.offsetTop
1086
+ const i = a().find((y) => y.getAttribute("aria-selected") === "true");
1087
+ i && (i.focus(), n.value.scrollTo({
1088
+ top: i.offsetTop
1073
1089
  }));
1074
1090
  }
1075
1091
  function f() {
1076
- return n().find((r) => r === document.activeElement);
1092
+ return a().find((i) => i === document.activeElement);
1077
1093
  }
1078
- function u(r) {
1094
+ function u(i) {
1079
1095
  var y;
1080
- if ((r.key === "Escape" || r.key === "Tab") && l("close:dropdownList"), (r.key === "Enter" || r.key === "enter") && (r.preventDefault(), f() && ((y = a.value) != null && y.contains(f())))) {
1096
+ if ((i.key === "Escape" || i.key === "Tab") && l("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), f() && ((y = n.value) != null && y.contains(f())))) {
1081
1097
  const d = f();
1082
1098
  if (!d)
1083
1099
  return;
1084
1100
  if (d.querySelector("a"))
1085
1101
  return d.querySelector("a").click();
1086
- l("update:modelValue", d.dataLabel);
1102
+ l("update:modelValue", d.dataModel);
1087
1103
  }
1088
- if (r.key === " " && r.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key)) {
1089
- const d = n(), j = f();
1104
+ if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1105
+ const d = a(), j = f();
1090
1106
  let S = d.indexOf(j);
1091
1107
  if (d.length) {
1092
- r.preventDefault(), r.key === "ArrowDown" ? S++ : r.key === "ArrowUp" ? S-- : r.key === "Home" ? S = 0 : r.key === "End" && (S = d.length - 1), S < 0 && (S = 0), S > d.length - 1 && (S = 0), v(d[S]);
1108
+ 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]);
1093
1109
  return;
1094
1110
  }
1095
1111
  }
1096
1112
  }
1097
- function v(r) {
1098
- r.focus();
1113
+ function v(i) {
1114
+ i.focus();
1099
1115
  }
1100
1116
  return Z(() => {
1101
1117
  window.addEventListener("keydown", u), c();
1102
1118
  }), Ne(() => {
1103
1119
  window.removeEventListener("keydown", u);
1104
1120
  }), t({
1105
- isSelected: i
1106
- }), (r, y) => (m(), p("div", {
1121
+ isSelected: r
1122
+ }), (i, y) => (m(), p("div", {
1107
1123
  class: "joy-dropdown-list",
1108
- style: K({ "max-width": `${e.width}px`, "max-height": `${e.height}px` })
1124
+ style: K({ width: `${e.width}px`, "max-width": `${e.width}px`, "max-height": `${e.height}px` })
1109
1125
  }, [
1110
1126
  h("ul", {
1111
1127
  ref_key: "listbox",
1112
- ref: a,
1128
+ ref: n,
1113
1129
  role: "listbox",
1114
1130
  class: "joy-dropdown-list__items",
1115
1131
  style: K({ "max-height": `${e.height}px` })
@@ -1122,32 +1138,32 @@ const Ye = ["medium", "small"], Jl = ["id", "tabindex", "aria-disabled", "aria-s
1122
1138
  "joy-dropdown-list__item",
1123
1139
  `joy-dropdown-list__item--${e.size}`,
1124
1140
  {
1125
- "joy-dropdown-list__item--selected": _(i)(d),
1141
+ "joy-dropdown-list__item--selected": _(r)(d),
1126
1142
  "joy-dropdown-list__item--disabled": d.disabled
1127
1143
  }
1128
1144
  ]),
1129
1145
  tabindex: d.disabled ? void 0 : 0,
1130
1146
  "aria-disabled": d.disabled,
1131
- "aria-selected": _(i)(d),
1147
+ "aria-selected": _(r)(d),
1132
1148
  title: d.label,
1133
1149
  "aria-label": d.label,
1134
- ".dataLabel": d.value || d.label,
1150
+ ".dataModel": d.value || d.id,
1135
1151
  role: "option",
1136
1152
  onClick: (j) => s(d)
1137
1153
  }, [
1138
- g(r.$slots, "label", me(pe(d)), () => [
1154
+ g(i.$slots, "label", me(pe(d)), () => [
1139
1155
  h("span", null, I(d.label), 1)
1140
1156
  ], !0)
1141
- ], 14, Jl))), 128))
1157
+ ], 14, ql))), 128))
1142
1158
  ], 4),
1143
- r.$slots.footer ? (m(), p("footer", ql, [
1144
- g(r.$slots, "footer", {}, void 0, !0)
1159
+ i.$slots.footer ? (m(), p("footer", Tl, [
1160
+ g(i.$slots, "footer", {}, void 0, !0)
1145
1161
  ])) : w("", !0)
1146
1162
  ], 4));
1147
1163
  }
1148
1164
  });
1149
- const Xe = /* @__PURE__ */ V(Tl, [["__scopeId", "data-v-5ab31622"]]);
1150
- function zl(e) {
1165
+ const Xe = /* @__PURE__ */ V(zl, [["__scopeId", "data-v-af851385"]]);
1166
+ function Al(e) {
1151
1167
  const t = () => e();
1152
1168
  Z(() => {
1153
1169
  window.addEventListener("resize", t);
@@ -1155,7 +1171,7 @@ function zl(e) {
1155
1171
  window.removeEventListener("resize", t);
1156
1172
  });
1157
1173
  }
1158
- const Al = /* @__PURE__ */ $({
1174
+ const Fl = /* @__PURE__ */ $({
1159
1175
  __name: "VJoyDropdown",
1160
1176
  props: {
1161
1177
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1232,24 +1248,24 @@ const Al = /* @__PURE__ */ $({
1232
1248
  default: "300"
1233
1249
  }
1234
1250
  },
1235
- emits: ["update:modelValue"],
1251
+ emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1236
1252
  setup(e, { expose: t, emit: l }) {
1237
- const o = e, a = b(!1), i = b(null), s = b(), n = b(null), c = b(null), f = b(!1), u = {
1253
+ const o = e, n = b(!1), r = b(null), s = b(), a = b(null), c = b(null), f = b(!1), u = {
1238
1254
  ignore: [s, ".joy-dropdown__list"]
1239
1255
  };
1240
1256
  let v = null;
1241
- const r = X({
1257
+ const i = X({
1242
1258
  left: "auto",
1243
1259
  top: "0px",
1244
1260
  right: "auto"
1245
1261
  });
1246
1262
  function y() {
1247
1263
  v && clearTimeout(v), f.value = !0, v = setTimeout(() => {
1248
- a.value = !1, f.value = !1;
1264
+ n.value = !1, f.value = !1, l("dropdown:hide");
1249
1265
  }, 300);
1250
1266
  }
1251
1267
  function d(E) {
1252
- f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, a.value = !0;
1268
+ f.value = !1, v && clearTimeout(v), Y(), c.value = E.target, n.value = !0, l("dropdown:open");
1253
1269
  }
1254
1270
  function j() {
1255
1271
  y(), S();
@@ -1259,16 +1275,16 @@ const Al = /* @__PURE__ */ $({
1259
1275
  }
1260
1276
  function Y() {
1261
1277
  const E = s.value.getBoundingClientRect(), O = document.documentElement.scrollTop + E.top, T = E.height, D = E.left, F = E.width;
1262
- o.justify === "left" ? r.left = D + "px" : r.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? r.top = O + T + parseInt(o.dropdownGap) + "px" : r.top = O - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1278
+ o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = O + T + parseInt(o.dropdownGap) + "px" : i.top = O - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1263
1279
  }
1264
1280
  function oe(E) {
1265
1281
  l("update:modelValue", E), o.closeOnSelect && (y(), S());
1266
1282
  }
1267
- return zl(y), t({
1268
- showDropdownList: a
1269
- }), (E, O) => (m(), q(_(il), {
1283
+ return Al(y), t({
1284
+ showDropdownList: n
1285
+ }), (E, O) => (m(), q(_(rl), {
1270
1286
  ref_key: "dropdown",
1271
- ref: i,
1287
+ ref: r,
1272
1288
  options: u,
1273
1289
  class: "joy-dropdown",
1274
1290
  onTrigger: y
@@ -1286,10 +1302,10 @@ const Al = /* @__PURE__ */ $({
1286
1302
  to: e.appendTo,
1287
1303
  disabled: e.disableTeleport
1288
1304
  }, [
1289
- a.value ? (m(), p("div", {
1305
+ n.value ? (m(), p("div", {
1290
1306
  key: 0,
1291
1307
  ref_key: "list",
1292
- ref: n,
1308
+ ref: a,
1293
1309
  class: k([
1294
1310
  "joy-dropdown__list",
1295
1311
  `joy-dropdown__list--${e.direction}`,
@@ -1299,8 +1315,8 @@ const Al = /* @__PURE__ */ $({
1299
1315
  }
1300
1316
  ]),
1301
1317
  style: K({
1302
- top: r.top,
1303
- left: r.left
1318
+ top: i.top,
1319
+ left: i.left
1304
1320
  })
1305
1321
  }, [
1306
1322
  fe(Xe, {
@@ -1326,10 +1342,10 @@ const Al = /* @__PURE__ */ $({
1326
1342
  }, 512));
1327
1343
  }
1328
1344
  });
1329
- const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-49159b35"]]), Dl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Rl = ["aria-hidden"], Ml = /* @__PURE__ */ Dl(() => /* @__PURE__ */ h("joy-icon", {
1345
+ const Dl = /* @__PURE__ */ V(Fl, [["__scopeId", "data-v-6caf97fb"]]), Rl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Ml = ["aria-hidden"], Nl = /* @__PURE__ */ Rl(() => /* @__PURE__ */ h("joy-icon", {
1330
1346
  "custom-class": "joy-icon-error",
1331
1347
  name: "warning-triangle"
1332
- }, null, -1)), Nl = /* @__PURE__ */ $({
1348
+ }, null, -1)), Hl = /* @__PURE__ */ $({
1333
1349
  __name: "VJoyFormError",
1334
1350
  props: {
1335
1351
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1346,17 +1362,17 @@ const Fl = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-49159b35"]]), Dl = (e) =
1346
1362
  class: k(["joy-form-error", { "joy-has-error": e.visible }]),
1347
1363
  role: "alert"
1348
1364
  }, [
1349
- Ml,
1365
+ Nl,
1350
1366
  h("div", null, [
1351
1367
  g(t.$slots, "default", {}, () => [
1352
1368
  J(I(e.noHtmlErrorText), 1)
1353
1369
  ], !0)
1354
1370
  ])
1355
- ], 10, Rl));
1371
+ ], 10, Ml));
1356
1372
  }
1357
1373
  });
1358
- const et = /* @__PURE__ */ V(Nl, [["__scopeId", "data-v-50e209d6"]]);
1359
- function Hl(e) {
1374
+ const et = /* @__PURE__ */ V(Hl, [["__scopeId", "data-v-50e209d6"]]);
1375
+ function Wl(e) {
1360
1376
  let t;
1361
1377
  switch (e) {
1362
1378
  case "error":
@@ -1370,7 +1386,7 @@ function Hl(e) {
1370
1386
  }
1371
1387
  return t;
1372
1388
  }
1373
- const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /* @__PURE__ */ $({
1389
+ const Ul = [...pt], Gl = ["name"], Kl = { class: "joy-highlight--text" }, Ql = /* @__PURE__ */ $({
1374
1390
  __name: "VJoyHighlight",
1375
1391
  props: {
1376
1392
  accent: {
@@ -1386,51 +1402,51 @@ const Wl = [...pt], Ul = ["name"], Gl = { class: "joy-highlight--text" }, Kl = /
1386
1402
  type: String,
1387
1403
  default: "neutral",
1388
1404
  validator(e) {
1389
- return Wl.includes(e);
1405
+ return Ul.includes(e);
1390
1406
  }
1391
1407
  }
1392
1408
  },
1393
1409
  setup(e, { expose: t }) {
1394
- const l = e, o = x(() => l.icon ? l.icon : Hl(l.level));
1410
+ const l = e, o = x(() => l.icon ? l.icon : Wl(l.level));
1395
1411
  return t({
1396
1412
  getRelevantIcon: o
1397
- }), (a, i) => (m(), p("div", {
1413
+ }), (n, r) => (m(), p("div", {
1398
1414
  class: k([
1399
1415
  "joy-highlight",
1400
1416
  `joy-highlight_${e.level}`,
1401
1417
  {
1402
1418
  "joy-highlight__accent": e.accent,
1403
- "joy-highlight__titled": a.$slots["highlight-title"]
1419
+ "joy-highlight__titled": n.$slots["highlight-title"]
1404
1420
  }
1405
1421
  ])
1406
1422
  }, [
1407
1423
  e.displayIcon ? (m(), p("joy-icon", {
1408
1424
  key: 0,
1409
1425
  name: _(o)
1410
- }, null, 8, Ul)) : w("", !0),
1411
- h("div", Gl, [
1426
+ }, null, 8, Gl)) : w("", !0),
1427
+ h("div", Kl, [
1412
1428
  h("strong", null, [
1413
- g(a.$slots, "highlight-title", {}, void 0, !0)
1429
+ g(n.$slots, "highlight-title", {}, void 0, !0)
1414
1430
  ]),
1415
- g(a.$slots, "default", {}, void 0, !0)
1431
+ g(n.$slots, "default", {}, void 0, !0)
1416
1432
  ])
1417
1433
  ], 2));
1418
1434
  }
1419
1435
  });
1420
- const Ql = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-a0ff7a60"]]), Zl = ["small", "medium", "large"], Yl = {
1436
+ const Zl = /* @__PURE__ */ V(Ql, [["__scopeId", "data-v-a0ff7a60"]]), Yl = ["small", "medium", "large"], Xl = {
1421
1437
  key: 0,
1422
1438
  class: "joy-label-required"
1423
- }, Xl = {
1439
+ }, eo = {
1424
1440
  key: 1,
1425
1441
  class: "joy-label-optional"
1426
- }, eo = /* @__PURE__ */ $({
1442
+ }, to = /* @__PURE__ */ $({
1427
1443
  __name: "VJoyLabel",
1428
1444
  props: {
1429
1445
  size: {
1430
1446
  type: String,
1431
1447
  default: "medium",
1432
1448
  validator(e) {
1433
- return Zl.includes(e);
1449
+ return Yl.includes(e);
1434
1450
  }
1435
1451
  },
1436
1452
  tagName: {
@@ -1451,14 +1467,14 @@ const Ql = /* @__PURE__ */ V(Kl, [["__scopeId", "data-v-a0ff7a60"]]), Zl = ["sma
1451
1467
  }, t.$attrs), {
1452
1468
  default: L(() => [
1453
1469
  g(t.$slots, "default", {}, void 0, !0),
1454
- e.required ? (m(), p("span", Yl, "*")) : w("", !0),
1455
- e.optionalLabel ? (m(), p("span", Xl, "- " + I(e.optionalLabel), 1)) : w("", !0)
1470
+ e.required ? (m(), p("span", Xl, "*")) : w("", !0),
1471
+ e.optionalLabel ? (m(), p("span", eo, "- " + I(e.optionalLabel), 1)) : w("", !0)
1456
1472
  ]),
1457
1473
  _: 3
1458
1474
  }, 16, ["class"]));
1459
1475
  }
1460
1476
  });
1461
- const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["large", "medium", "small"], lo = ["id", "disabled", "type", "value"], oo = ["name"], no = ["data-unit"], ao = /* @__PURE__ */ $({
1477
+ const N = /* @__PURE__ */ V(to, [["__scopeId", "data-v-1e682734"]]), lo = ["large", "medium", "small"], oo = ["id", "disabled", "type", "value"], no = ["name"], ao = ["data-unit"], io = /* @__PURE__ */ $({
1462
1478
  __name: "VJoyInput",
1463
1479
  props: {
1464
1480
  disabled: {
@@ -1509,7 +1525,7 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1509
1525
  type: String,
1510
1526
  default: "medium",
1511
1527
  validator(e) {
1512
- return to.includes(e);
1528
+ return lo.includes(e);
1513
1529
  }
1514
1530
  },
1515
1531
  type: String,
@@ -1518,19 +1534,19 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1518
1534
  },
1519
1535
  emits: ["update:modelValue"],
1520
1536
  setup(e, { emit: t }) {
1521
- const l = e, o = b(), a = b(), i = Re(), s = W(), n = b(!1), c = x(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = x(() => s.default && s.default()), u = x(() => {
1537
+ const l = e, o = b(), n = b(), r = Re(), s = W(), a = b(!1), c = x(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = x(() => s.default && s.default()), u = x(() => {
1522
1538
  var y, d;
1523
- return !!((y = a.value) != null && y.closest("joy-wrapper")) || !!((d = a.value) != null && d.closest(".joy-wrapper"));
1539
+ return !!((y = n.value) != null && y.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1524
1540
  }), v = b(l.type);
1525
1541
  st(() => {
1526
1542
  v.value = l.unit ? "number" : l.unit || "text";
1527
1543
  });
1528
- const r = {
1544
+ const i = {
1529
1545
  onFocus: () => {
1530
- n.value = !0;
1546
+ a.value = !0;
1531
1547
  },
1532
1548
  onBlur: () => {
1533
- n.value = !1;
1549
+ a.value = !1;
1534
1550
  },
1535
1551
  onInput: (y) => {
1536
1552
  let d = y.target.value;
@@ -1542,17 +1558,17 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1542
1558
  };
1543
1559
  return (y, d) => (m(), p("div", {
1544
1560
  ref_key: "root",
1545
- ref: a,
1561
+ ref: n,
1546
1562
  class: k([`joy-input--${l.size}`])
1547
1563
  }, [
1548
1564
  h("div", {
1549
1565
  class: k([
1550
1566
  "joy-input",
1551
1567
  {
1552
- "joy-input--focusing": n.value,
1568
+ "joy-input--focusing": a.value,
1553
1569
  "joy-input--disabled": e.disabled,
1554
1570
  "joy-input--invalid": e.invalid,
1555
- "joy-input--valid": !e.invalid && !_(i).disabled
1571
+ "joy-input--valid": !e.invalid && !_(r).disabled
1556
1572
  }
1557
1573
  ])
1558
1574
  }, [
@@ -1595,37 +1611,37 @@ const N = /* @__PURE__ */ V(eo, [["__scopeId", "data-v-1e682734"]]), to = ["larg
1595
1611
  type: v.value,
1596
1612
  value: e.modelValue,
1597
1613
  onFocus: d[0] || (d[0] = //@ts-ignore
1598
- (...j) => r.onFocus && r.onFocus(...j)),
1614
+ (...j) => i.onFocus && i.onFocus(...j)),
1599
1615
  onBlur: d[1] || (d[1] = //@ts-ignore
1600
- (...j) => r.onBlur && r.onBlur(...j)),
1616
+ (...j) => i.onBlur && i.onBlur(...j)),
1601
1617
  onInput: d[2] || (d[2] = //@ts-ignore
1602
- (...j) => r.onInput && r.onInput(...j))
1603
- }), null, 16, lo),
1618
+ (...j) => i.onInput && i.onInput(...j))
1619
+ }), null, 16, oo),
1604
1620
  _(c) ? (m(), p("joy-icon", {
1605
1621
  key: 0,
1606
1622
  size: "xxsmall",
1607
1623
  name: "cross",
1608
1624
  class: "joy-input--clear",
1609
1625
  onClick: d[3] || (d[3] = //@ts-ignore
1610
- (...j) => r.clearValue && r.clearValue(...j))
1626
+ (...j) => i.clearValue && i.clearValue(...j))
1611
1627
  })) : w("", !0),
1612
1628
  e.icon && !e.clearable ? (m(), p("joy-icon", {
1613
1629
  key: 1,
1614
1630
  role: "img",
1615
1631
  class: "joy-input--decorative-icon",
1616
1632
  name: e.icon
1617
- }, null, 8, oo)) : w("", !0),
1633
+ }, null, 8, no)) : w("", !0),
1618
1634
  e.unit ? (m(), p("div", {
1619
1635
  key: 2,
1620
1636
  "data-unit": e.unit,
1621
1637
  class: "joy-input--unit"
1622
- }, null, 8, no)) : w("", !0)
1638
+ }, null, 8, ao)) : w("", !0)
1623
1639
  ], 2)
1624
1640
  ], 2)
1625
1641
  ], 2));
1626
1642
  }
1627
1643
  });
1628
- const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["teal", "white"], so = ["href"], uo = ["color", "name"], co = /* @__PURE__ */ $({
1644
+ const ro = /* @__PURE__ */ V(io, [["__scopeId", "data-v-8258d6d7"]]), so = ["teal", "white"], uo = ["href"], co = ["color", "name"], fo = /* @__PURE__ */ $({
1629
1645
  __name: "VJoyLink",
1630
1646
  props: {
1631
1647
  href: {
@@ -1636,28 +1652,28 @@ const io = /* @__PURE__ */ V(ao, [["__scopeId", "data-v-8258d6d7"]]), ro = ["tea
1636
1652
  type: String,
1637
1653
  default: "teal",
1638
1654
  validator(e) {
1639
- return ro.includes(e);
1655
+ return so.includes(e);
1640
1656
  }
1641
1657
  },
1642
1658
  icon: String
1643
1659
  },
1644
1660
  setup(e) {
1645
1661
  const t = e, l = x(() => t.color === "white" ? "white" : "teal");
1646
- return (o, a) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
1662
+ return (o, n) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
1647
1663
  class: ["joy-link", `joy-link_${e.color}`]
1648
1664
  }), [
1649
1665
  e.icon ? (m(), p("joy-icon", {
1650
1666
  key: 0,
1651
1667
  color: _(l),
1652
1668
  name: e.icon
1653
- }, null, 8, uo)) : w("", !0),
1669
+ }, null, 8, co)) : w("", !0),
1654
1670
  g(o.$slots, "default", {}, void 0, !0)
1655
- ], 16, so));
1671
+ ], 16, uo));
1656
1672
  }
1657
1673
  });
1658
- const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"], vo = {
1674
+ const yo = /* @__PURE__ */ V(fo, [["__scopeId", "data-v-7ef59bc8"]]), vo = ["id"], mo = {
1659
1675
  class: /* @__PURE__ */ k(["joy-multi-checkbox"])
1660
- }, mo = /* @__PURE__ */ $({
1676
+ }, po = /* @__PURE__ */ $({
1661
1677
  __name: "VJoyMultiCheckbox",
1662
1678
  props: {
1663
1679
  options: {
@@ -1697,14 +1713,14 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
1697
1713
  emits: ["update:value"],
1698
1714
  setup(e, { emit: t }) {
1699
1715
  const l = e;
1700
- function o(i) {
1701
- return l.value.includes(i.value);
1716
+ function o(r) {
1717
+ return l.value.includes(r.value);
1702
1718
  }
1703
- function a(i, s) {
1704
- let n = [...l.value || []];
1705
- s ? n.push(i) : n.splice(n.indexOf(i), 1), t("update:value", n);
1719
+ function n(r, s) {
1720
+ let a = [...l.value || []];
1721
+ s ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
1706
1722
  }
1707
- return (i, s) => (m(), p("fieldset", {
1723
+ return (r, s) => (m(), p("fieldset", {
1708
1724
  id: e.id,
1709
1725
  class: "joy-multi-checkbox__wrapper"
1710
1726
  }, [
@@ -1720,42 +1736,42 @@ const fo = /* @__PURE__ */ V(co, [["__scopeId", "data-v-7ef59bc8"]]), yo = ["id"
1720
1736
  ]),
1721
1737
  _: 1
1722
1738
  }, 8, ["required", "optional-label", "size"])) : w("", !0),
1723
- h("div", vo, [
1724
- (m(!0), p(ye, null, ve(e.options, (n) => (m(), q(_(he), {
1725
- id: n.id,
1726
- key: n.id,
1727
- name: n.name,
1728
- value: n.value,
1729
- checked: o(n),
1730
- "onUpdate:checked": (c) => a(n.value, c)
1739
+ h("div", mo, [
1740
+ (m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(he), {
1741
+ id: a.id,
1742
+ key: a.id,
1743
+ name: a.name,
1744
+ value: a.value,
1745
+ checked: o(a),
1746
+ "onUpdate:checked": (c) => n(a.value, c)
1731
1747
  }, {
1732
1748
  default: L(() => [
1733
- g(i.$slots, "checkbox", me(pe(n)), () => [
1734
- J(I(n.label), 1)
1749
+ g(r.$slots, "checkbox", me(pe(a)), () => [
1750
+ J(I(a.label), 1)
1735
1751
  ], !0)
1736
1752
  ]),
1737
1753
  _: 2
1738
1754
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1739
1755
  ])
1740
- ], 8, yo));
1756
+ ], 8, vo));
1741
1757
  }
1742
1758
  });
1743
- const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["small", "medium", "large"], bo = {
1759
+ const ho = /* @__PURE__ */ V(po, [["__scopeId", "data-v-f4301a1f"]]), bo = ["small", "medium", "large"], go = {
1744
1760
  key: 0,
1745
1761
  class: /* @__PURE__ */ k(["joy-panel__header"])
1746
- }, go = {
1762
+ }, _o = {
1747
1763
  key: 0,
1748
1764
  class: "joy-panel__header-title"
1749
- }, _o = {
1765
+ }, wo = {
1750
1766
  key: 1,
1751
1767
  class: "joy-panel__header-action"
1752
- }, wo = {
1768
+ }, So = {
1753
1769
  key: 2,
1754
1770
  class: "joy-panel__header-subtitle"
1755
- }, So = { class: "joy-panel__body" }, jo = {
1771
+ }, jo = { class: "joy-panel__body" }, ko = {
1756
1772
  key: 1,
1757
1773
  class: "joy-panel__footer"
1758
- }, ko = /* @__PURE__ */ $({
1774
+ }, $o = /* @__PURE__ */ $({
1759
1775
  __name: "VJoyPanel",
1760
1776
  props: {
1761
1777
  flex: {
@@ -1769,62 +1785,59 @@ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-f4301a1f"]]), ho = ["sma
1769
1785
  type: String,
1770
1786
  default: "medium",
1771
1787
  validator(e) {
1772
- return ho.includes(e);
1788
+ return bo.includes(e);
1773
1789
  }
1774
1790
  }
1775
1791
  },
1776
1792
  setup(e) {
1777
- const t = W(), l = b(), o = x(() => {
1778
- var i;
1779
- return (i = l.value) == null ? void 0 : i.closest(".joy-wrapper");
1780
- }), a = x(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
1781
- return (i, s) => (m(), p("section", {
1793
+ const t = W(), l = b(), o = x(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
1794
+ return (n, r) => (m(), p("section", {
1782
1795
  ref_key: "panel",
1783
1796
  ref: l,
1784
1797
  style: K({ flex: e.flex }),
1785
- class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin || _(o) }])
1798
+ class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin }])
1786
1799
  }, [
1787
- _(a) ? (m(), p("header", bo, [
1788
- _(t)["panel-title"] ? (m(), p("div", go, [
1789
- g(i.$slots, "panel-title", {}, void 0, !0)
1800
+ _(o) ? (m(), p("header", go, [
1801
+ _(t)["panel-title"] ? (m(), p("div", _o, [
1802
+ g(n.$slots, "panel-title", {}, void 0, !0)
1790
1803
  ])) : w("", !0),
1791
- _(t)["panel-action"] ? (m(), p("div", _o, [
1792
- g(i.$slots, "panel-title-action", {}, void 0, !0)
1804
+ _(t)["panel-title-action"] ? (m(), p("div", wo, [
1805
+ g(n.$slots, "panel-title-action", {}, void 0, !0)
1793
1806
  ])) : w("", !0),
1794
- _(t)["panel-subtitle"] ? (m(), p("div", wo, [
1795
- g(i.$slots, "panel-subtitle", {}, void 0, !0)
1807
+ _(t)["panel-subtitle"] ? (m(), p("div", So, [
1808
+ g(n.$slots, "panel-subtitle", {}, void 0, !0)
1796
1809
  ])) : w("", !0)
1797
1810
  ])) : w("", !0),
1798
- h("div", So, [
1799
- g(i.$slots, "panel-body", {}, void 0, !0)
1811
+ h("div", jo, [
1812
+ g(n.$slots, "panel-body", {}, void 0, !0)
1800
1813
  ]),
1801
- _(t)["panel-action"] ? (m(), p("footer", jo, [
1802
- g(i.$slots, "panel-action", {}, void 0, !0)
1814
+ _(t)["panel-action"] ? (m(), p("footer", ko, [
1815
+ g(n.$slots, "panel-action", {}, void 0, !0)
1803
1816
  ])) : w("", !0)
1804
1817
  ], 6));
1805
1818
  }
1806
1819
  });
1807
- const $o = /* @__PURE__ */ V(ko, [["__scopeId", "data-v-54ce815b"]]), Vo = { class: "joy-panel-section" }, xo = {
1820
+ const Vo = /* @__PURE__ */ V($o, [["__scopeId", "data-v-1aadee0b"]]), xo = { class: "joy-panel-section" }, Oo = {
1808
1821
  key: 0,
1809
1822
  class: "joy-panel-section__title"
1810
- }, Oo = {
1823
+ }, Io = {
1811
1824
  key: 1,
1812
1825
  class: "joy-panel-section__content"
1813
- }, Io = /* @__PURE__ */ $({
1826
+ }, Bo = /* @__PURE__ */ $({
1814
1827
  __name: "VJoyPanelSection",
1815
1828
  setup(e) {
1816
1829
  const t = W();
1817
- return (l, o) => (m(), p("div", Vo, [
1818
- _(t)["panel-section-title"] ? (m(), p("div", xo, [
1830
+ return (l, o) => (m(), p("div", xo, [
1831
+ _(t)["panel-section-title"] ? (m(), p("div", Oo, [
1819
1832
  g(l.$slots, "panel-section-title", {}, void 0, !0)
1820
1833
  ])) : w("", !0),
1821
- _(t)["panel-section-content"] ? (m(), p("div", Oo, [
1834
+ _(t)["panel-section-content"] ? (m(), p("div", Io, [
1822
1835
  g(l.$slots, "panel-section-content", {}, void 0, !0)
1823
1836
  ])) : w("", !0)
1824
1837
  ]));
1825
1838
  }
1826
1839
  });
1827
- const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id", "value", "checked", "disabled", "required", "name"], Eo = { class: "joy-radio-label" }, Co = { class: "joy-radio-content__wrapper" }, Po = { class: "joy-radio-content" }, Jo = /* @__PURE__ */ $({
1840
+ const Lo = /* @__PURE__ */ V(Bo, [["__scopeId", "data-v-d88510ab"]]), Eo = ["id", "value", "checked", "disabled", "required", "name"], Po = { class: "joy-radio-label" }, Co = { class: "joy-radio-content__wrapper" }, Jo = { class: "joy-radio-content" }, qo = /* @__PURE__ */ $({
1828
1841
  __name: "VJoyRadio",
1829
1842
  props: {
1830
1843
  disabled: {
@@ -1860,9 +1873,9 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1860
1873
  },
1861
1874
  emits: ["update:modelValue"],
1862
1875
  setup(e, { expose: t, emit: l }) {
1863
- const o = e, a = b(!1), i = b(!1), s = b(null), n = b(null), c = W(), f = x(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1876
+ const o = e, n = b(!1), r = b(!1), s = b(null), a = b(null), c = W(), f = x(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1864
1877
  function u() {
1865
- a.value = !!c["expandable-content"] && f.value;
1878
+ n.value = !!c["expandable-content"] && f.value;
1866
1879
  }
1867
1880
  function v() {
1868
1881
  l("update:modelValue", o.value), u();
@@ -1870,11 +1883,11 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1870
1883
  Z(() => {
1871
1884
  o.theme === "outline" && u();
1872
1885
  });
1873
- function r() {
1874
- i.value = !0;
1886
+ function i() {
1887
+ r.value = !0;
1875
1888
  }
1876
1889
  function y() {
1877
- i.value = !1;
1890
+ r.value = !1;
1878
1891
  }
1879
1892
  return B(
1880
1893
  () => o.modelValue,
@@ -1883,7 +1896,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1883
1896
  }
1884
1897
  ), t({
1885
1898
  checked: f,
1886
- isExpanded: a
1899
+ isExpanded: n
1887
1900
  }), (d, j) => (m(), p("label", {
1888
1901
  ref_key: "root",
1889
1902
  ref: s,
@@ -1894,8 +1907,8 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1894
1907
  "joy-radio--checked": _(f),
1895
1908
  "joy-radio--disabled": e.disabled,
1896
1909
  "joy-radio--invalid": e.invalid,
1897
- "joy-radio--outline-focus": i.value && e.theme === "outline",
1898
- "joy-radio--focus": i.value && e.theme === "default"
1910
+ "joy-radio--outline-focus": r.value && e.theme === "outline",
1911
+ "joy-radio--focus": r.value && e.theme === "default"
1899
1912
  }
1900
1913
  ])
1901
1914
  }, [
@@ -1908,20 +1921,20 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1908
1921
  required: e.required,
1909
1922
  name: e.name,
1910
1923
  onChange: v,
1911
- onFocus: r,
1924
+ onFocus: i,
1912
1925
  onBlur: y
1913
- }, null, 40, Lo),
1914
- h("span", Eo, [
1926
+ }, null, 40, Eo),
1927
+ h("span", Po, [
1915
1928
  g(d.$slots, "default", {}, void 0, !0)
1916
1929
  ]),
1917
1930
  h("div", Co, [
1918
- h("div", Po, [
1931
+ h("div", Jo, [
1919
1932
  g(d.$slots, "radio-content", {}, void 0, !0)
1920
1933
  ]),
1921
1934
  h("div", {
1922
1935
  ref_key: "expandableElement",
1923
- ref: n,
1924
- class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
1936
+ ref: a,
1937
+ class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
1925
1938
  }, [
1926
1939
  g(d.$slots, "expandable-content", {}, void 0, !0)
1927
1940
  ], 2)
@@ -1929,7 +1942,7 @@ const Bo = /* @__PURE__ */ V(Io, [["__scopeId", "data-v-d88510ab"]]), Lo = ["id"
1929
1942
  ], 2));
1930
1943
  }
1931
1944
  });
1932
- const qo = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-24cea99b"]]), To = ["form", "name"], zo = /* @__PURE__ */ $({
1945
+ const To = /* @__PURE__ */ V(qo, [["__scopeId", "data-v-24cea99b"]]), zo = ["form", "name"], Ao = /* @__PURE__ */ $({
1933
1946
  __name: "VJoyRadioGroup",
1934
1947
  props: {
1935
1948
  direction: {
@@ -1957,13 +1970,13 @@ const qo = /* @__PURE__ */ V(Jo, [["__scopeId", "data-v-24cea99b"]]), To = ["for
1957
1970
  }, [
1958
1971
  g(t.$slots, "default", {}, void 0, !0)
1959
1972
  ], 2)
1960
- ], 8, To));
1973
+ ], 8, zo));
1961
1974
  }
1962
1975
  });
1963
- const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) => (te("data-v-d251a432"), e = e(), le(), e), Do = ["id", "name", "aria-invalid", "required", "disabled", "value"], Ro = /* @__PURE__ */ Fo(() => /* @__PURE__ */ h("joy-icon", {
1976
+ const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-de56c3c4"]]), Do = (e) => (te("data-v-d251a432"), e = e(), le(), e), Ro = ["id", "name", "aria-invalid", "required", "disabled", "value"], Mo = /* @__PURE__ */ Do(() => /* @__PURE__ */ h("joy-icon", {
1964
1977
  class: "joy-select__chevron",
1965
1978
  name: "chevron-down"
1966
- }, null, -1)), Mo = /* @__PURE__ */ $({
1979
+ }, null, -1)), No = /* @__PURE__ */ $({
1967
1980
  __name: "VJoySelect",
1968
1981
  props: {
1969
1982
  disabled: {
@@ -2004,15 +2017,15 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
2004
2017
  },
2005
2018
  emits: ["update:modelValue"],
2006
2019
  setup(e, { emit: t }) {
2007
- const l = e, o = b(), a = b(), i = W(), s = b(!1);
2020
+ const l = e, o = b(), n = b(), r = W(), s = b(!1);
2008
2021
  Z(() => {
2009
- var r;
2010
- const u = i.label && i.label();
2022
+ var i;
2023
+ const u = r.label && r.label();
2011
2024
  if (!u || !u.length)
2012
2025
  return;
2013
2026
  const v = u[0];
2014
2027
  if (v.type === "JoyLabel") {
2015
- const y = (r = v.props) == null ? void 0 : r.for;
2028
+ const y = (i = v.props) == null ? void 0 : i.for;
2016
2029
  if (!y) {
2017
2030
  console.warn("JoyLabel for attribute is missing");
2018
2031
  return;
@@ -2020,7 +2033,7 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
2020
2033
  y !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2021
2034
  }
2022
2035
  });
2023
- function n(u) {
2036
+ function a(u) {
2024
2037
  const v = u.target.value;
2025
2038
  t("update:modelValue", v);
2026
2039
  }
@@ -2059,25 +2072,25 @@ const Ao = /* @__PURE__ */ V(zo, [["__scopeId", "data-v-de56c3c4"]]), Fo = (e) =
2059
2072
  h("select", {
2060
2073
  id: e.id || e.name,
2061
2074
  ref_key: "select",
2062
- ref: a,
2075
+ ref: n,
2063
2076
  class: "joy-select",
2064
2077
  name: e.name,
2065
2078
  "aria-invalid": e.invalid,
2066
2079
  required: e.required,
2067
2080
  disabled: e.disabled,
2068
2081
  value: e.modelValue,
2069
- onInput: n,
2082
+ onInput: a,
2070
2083
  onFocus: c,
2071
2084
  onBlur: f
2072
2085
  }, [
2073
2086
  g(u.$slots, "default", {}, void 0, !0)
2074
- ], 40, Do),
2075
- Ro
2087
+ ], 40, Ro),
2088
+ Mo
2076
2089
  ], 2)
2077
2090
  ], 512));
2078
2091
  }
2079
2092
  });
2080
- const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["aria-disabled"], Wo = ["id", "value", "checked", "disabled", "required", "name"], Uo = /* @__PURE__ */ $({
2093
+ const Ho = /* @__PURE__ */ V(No, [["__scopeId", "data-v-d251a432"]]), Wo = ["aria-disabled"], Uo = ["id", "value", "checked", "disabled", "required", "name"], Go = /* @__PURE__ */ $({
2081
2094
  __name: "VJoySelectableItem",
2082
2095
  props: {
2083
2096
  disabled: {
@@ -2114,7 +2127,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2114
2127
  },
2115
2128
  emits: ["update:checked"],
2116
2129
  setup(e, { emit: t }) {
2117
- const l = e, o = b(l.checked), a = b(), i = b(!1), s = l.multiple ? "div" : "label", n = {
2130
+ const l = e, o = b(l.checked), n = b(), r = b(!1), s = l.multiple ? "div" : "label", a = {
2118
2131
  onRadioChange: () => {
2119
2132
  t("update:checked", l.value);
2120
2133
  },
@@ -2125,10 +2138,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2125
2138
  l.multiple || f.stopPropagation();
2126
2139
  },
2127
2140
  onFocus: () => {
2128
- i.value = !0;
2141
+ r.value = !0;
2129
2142
  },
2130
2143
  onBlur: () => {
2131
- i.value = !1;
2144
+ r.value = !1;
2132
2145
  }
2133
2146
  };
2134
2147
  function c(f) {
@@ -2138,18 +2151,18 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2138
2151
  class: k([
2139
2152
  "joy-selectable-item__wrapper",
2140
2153
  {
2141
- "joy-selectable-item--focusing": i.value
2154
+ "joy-selectable-item--focusing": r.value
2142
2155
  }
2143
2156
  ]),
2144
2157
  "aria-disabled": e.disabled,
2145
2158
  onClick: u[4] || (u[4] = //@ts-ignore
2146
- (...v) => n.onClick && n.onClick(...v))
2159
+ (...v) => a.onClick && a.onClick(...v))
2147
2160
  }, [
2148
2161
  e.multiple ? w("", !0) : (m(), p("input", {
2149
2162
  key: 0,
2150
2163
  id: e.id,
2151
2164
  ref_key: "inputRadio",
2152
- ref: a,
2165
+ ref: n,
2153
2166
  type: "radio",
2154
2167
  value: e.value,
2155
2168
  checked: e.checked,
@@ -2157,12 +2170,12 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2157
2170
  required: e.required,
2158
2171
  name: e.name,
2159
2172
  onChange: u[0] || (u[0] = //@ts-ignore
2160
- (...v) => n.onRadioChange && n.onRadioChange(...v)),
2173
+ (...v) => a.onRadioChange && a.onRadioChange(...v)),
2161
2174
  onFocus: u[1] || (u[1] = //@ts-ignore
2162
- (...v) => n.onFocus && n.onFocus(...v)),
2175
+ (...v) => a.onFocus && a.onFocus(...v)),
2163
2176
  onBlur: u[2] || (u[2] = //@ts-ignore
2164
- (...v) => n.onBlur && n.onBlur(...v))
2165
- }, null, 40, Wo)),
2177
+ (...v) => a.onBlur && a.onBlur(...v))
2178
+ }, null, 40, Uo)),
2166
2179
  (m(), q(ce(_(s)), {
2167
2180
  for: e.id,
2168
2181
  class: k([
@@ -2174,7 +2187,7 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2174
2187
  "joy-selectable-item--single": !e.multiple
2175
2188
  }
2176
2189
  ]),
2177
- onClick: n.onLabelClick
2190
+ onClick: a.onLabelClick
2178
2191
  }, {
2179
2192
  default: L(() => [
2180
2193
  e.multiple ? (m(), q(_(he), {
@@ -2190,8 +2203,8 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2190
2203
  name: e.name,
2191
2204
  "display-focus": !1,
2192
2205
  required: e.required,
2193
- onFocus: n.onFocus,
2194
- onBlur: n.onBlur
2206
+ onFocus: a.onFocus,
2207
+ onBlur: a.onBlur
2195
2208
  }, {
2196
2209
  default: L(() => [
2197
2210
  g(f.$slots, "default", {}, void 0, !0)
@@ -2207,10 +2220,10 @@ const No = /* @__PURE__ */ V(Mo, [["__scopeId", "data-v-d251a432"]]), Ho = ["ari
2207
2220
  ]),
2208
2221
  _: 3
2209
2222
  }, 8, ["for", "class", "onClick"]))
2210
- ], 10, Ho));
2223
+ ], 10, Wo));
2211
2224
  }
2212
2225
  });
2213
- const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"], Ko = /* @__PURE__ */ $({
2226
+ const tt = /* @__PURE__ */ V(Go, [["__scopeId", "data-v-cb2531c0"]]), Ko = ["id"], Qo = /* @__PURE__ */ $({
2214
2227
  __name: "VJoySelectableItemGroup",
2215
2228
  props: {
2216
2229
  options: {
@@ -2252,16 +2265,16 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
2252
2265
  emits: ["update:value"],
2253
2266
  setup(e, { emit: t }) {
2254
2267
  const l = e;
2255
- function o(i) {
2256
- return typeof l.value == "string" ? l.value === i.value : (l.value || []).includes(i.value);
2268
+ function o(r) {
2269
+ return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
2257
2270
  }
2258
- function a(i, s) {
2271
+ function n(r, s) {
2259
2272
  if (!l.multiple)
2260
2273
  return t("update:value", s);
2261
- let n = [...l.value || []];
2262
- s && typeof s == "boolean" ? n.push(i) : n.splice(n.indexOf(i), 1), t("update:value", n);
2274
+ let a = [...l.value || []];
2275
+ s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
2263
2276
  }
2264
- return (i, s) => (m(), p("fieldset", {
2277
+ return (r, s) => (m(), p("fieldset", {
2265
2278
  id: e.id,
2266
2279
  class: "joy-selectable-item-group__wrapper"
2267
2280
  }, [
@@ -2287,33 +2300,33 @@ const tt = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-cb2531c0"]]), Go = ["id"
2287
2300
  }
2288
2301
  ])
2289
2302
  }, [
2290
- (m(!0), p(ye, null, ve(e.options, (n) => (m(), q(_(tt), {
2291
- id: n.id,
2292
- key: n.id,
2293
- name: n.name,
2294
- value: n.value,
2303
+ (m(!0), p(ye, null, ve(e.options, (a) => (m(), q(_(tt), {
2304
+ id: a.id,
2305
+ key: a.id,
2306
+ name: a.name,
2307
+ value: a.value,
2295
2308
  multiple: e.multiple,
2296
- checked: o(n),
2297
- "onUpdate:checked": (c) => a(n.value, c)
2309
+ checked: o(a),
2310
+ "onUpdate:checked": (c) => n(a.value, c)
2298
2311
  }, ut({
2299
2312
  default: L(() => [
2300
- J(I(n.label) + " ", 1)
2313
+ J(I(a.label) + " ", 1)
2301
2314
  ]),
2302
2315
  _: 2
2303
2316
  }, [
2304
- n.subLabel ? {
2317
+ a.subLabel ? {
2305
2318
  name: "selectable-item-sublabel",
2306
2319
  fn: L(() => [
2307
- J(I(n.subLabel), 1)
2320
+ J(I(a.subLabel), 1)
2308
2321
  ]),
2309
2322
  key: "0"
2310
2323
  } : void 0
2311
2324
  ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2312
2325
  ], 2)
2313
- ], 8, Go));
2326
+ ], 8, Ko));
2314
2327
  }
2315
2328
  });
2316
- const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @__PURE__ */ $({
2329
+ const Zo = /* @__PURE__ */ V(Qo, [["__scopeId", "data-v-3ba17434"]]), Yo = /* @__PURE__ */ $({
2317
2330
  __name: "VJoyWrapper",
2318
2331
  props: {
2319
2332
  justify: {
@@ -2352,25 +2365,25 @@ const Qo = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-3ba17434"]]), Zo = /* @_
2352
2365
  ], 2));
2353
2366
  }
2354
2367
  });
2355
- const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { class: "joy-template__wrapper" }, en = {
2368
+ const Xo = /* @__PURE__ */ V(Yo, [["__scopeId", "data-v-477e149b"]]), en = { class: "joy-template__wrapper" }, tn = {
2356
2369
  key: 0,
2357
2370
  class: "joy-template__heading"
2358
- }, tn = {
2371
+ }, ln = {
2359
2372
  key: 0,
2360
2373
  class: "joy-template-slot-back"
2361
- }, ln = { class: "joy-template__heading___headings" }, on = {
2374
+ }, on = { class: "joy-template__heading___headings" }, nn = {
2362
2375
  key: 0,
2363
2376
  class: "joy-template-slot-title"
2364
- }, nn = {
2377
+ }, an = {
2365
2378
  key: 1,
2366
2379
  class: "joy-template-slot-subtitle"
2367
- }, an = {
2380
+ }, rn = {
2368
2381
  key: 0,
2369
2382
  class: "joy-template-slot-main"
2370
- }, rn = {
2383
+ }, sn = {
2371
2384
  key: 1,
2372
2385
  class: "joy-template-slot-sidebar"
2373
- }, sn = /* @__PURE__ */ $({
2386
+ }, un = /* @__PURE__ */ $({
2374
2387
  __name: "VJoyTemplate",
2375
2388
  props: {
2376
2389
  full: { type: Boolean, default: !1 },
@@ -2378,20 +2391,20 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
2378
2391
  },
2379
2392
  setup(e) {
2380
2393
  const t = e, l = W(), o = x(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"]);
2381
- return (a, i) => (m(), p("main", {
2394
+ return (n, r) => (m(), p("main", {
2382
2395
  class: k(["joy-template", { "joy-template--full": t.full }])
2383
2396
  }, [
2384
- h("div", Xo, [
2385
- _(o) ? (m(), p("div", en, [
2386
- _(l)["template-back"] ? (m(), p("div", tn, [
2387
- g(a.$slots, "template-back", {}, void 0, !0)
2397
+ h("div", en, [
2398
+ _(o) ? (m(), p("div", tn, [
2399
+ _(l)["template-back"] ? (m(), p("div", ln, [
2400
+ g(n.$slots, "template-back", {}, void 0, !0)
2388
2401
  ])) : w("", !0),
2389
- h("div", ln, [
2390
- _(l)["template-title"] ? (m(), p("div", on, [
2391
- g(a.$slots, "template-title", {}, void 0, !0)
2402
+ h("div", on, [
2403
+ _(l)["template-title"] ? (m(), p("div", nn, [
2404
+ g(n.$slots, "template-title", {}, void 0, !0)
2392
2405
  ])) : w("", !0),
2393
- _(l)["template-subtitle"] ? (m(), p("div", nn, [
2394
- g(a.$slots, "template-subtitle", {}, void 0, !0)
2406
+ _(l)["template-subtitle"] ? (m(), p("div", an, [
2407
+ g(n.$slots, "template-subtitle", {}, void 0, !0)
2395
2408
  ])) : w("", !0)
2396
2409
  ])
2397
2410
  ])) : w("", !0),
@@ -2403,26 +2416,26 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-477e149b"]]), Xo = { cla
2403
2416
  }
2404
2417
  ])
2405
2418
  }, [
2406
- a.$slots["template-main"] ? (m(), p("div", an, [
2407
- g(a.$slots, "template-main", {}, void 0, !0)
2419
+ n.$slots["template-main"] ? (m(), p("div", rn, [
2420
+ g(n.$slots, "template-main", {}, void 0, !0)
2408
2421
  ])) : w("", !0),
2409
- a.$slots["template-sidebar"] ? (m(), p("div", rn, [
2410
- g(a.$slots, "template-sidebar", {}, void 0, !0)
2422
+ n.$slots["template-sidebar"] ? (m(), p("div", sn, [
2423
+ g(n.$slots, "template-sidebar", {}, void 0, !0)
2411
2424
  ])) : w("", !0)
2412
2425
  ], 2)
2413
2426
  ])
2414
2427
  ], 2));
2415
2428
  }
2416
2429
  });
2417
- const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["aria-disabled"], cn = { class: "joy-textarea_wrapper" }, fn = ["id", "disabled", "name", "required", "minlength", "value"], yn = {
2430
+ const dn = /* @__PURE__ */ V(un, [["__scopeId", "data-v-f891bd85"]]), cn = ["aria-disabled"], fn = { class: "joy-textarea_wrapper" }, yn = ["id", "disabled", "name", "required", "minlength", "value"], vn = {
2418
2431
  key: 0,
2419
2432
  class: "joy-textarea_helpers"
2420
- }, vn = {
2433
+ }, mn = {
2421
2434
  key: 0,
2422
2435
  name: "check",
2423
2436
  color: "grey",
2424
2437
  size: "xxsmall"
2425
- }, mn = /* @__PURE__ */ $({
2438
+ }, pn = /* @__PURE__ */ $({
2426
2439
  __name: "VJoyTextarea",
2427
2440
  props: {
2428
2441
  disabled: {
@@ -2471,24 +2484,24 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2471
2484
  },
2472
2485
  emits: ["update:modelValue"],
2473
2486
  setup(e, { expose: t, emit: l }) {
2474
- const o = e, a = b(), { triggerResize: i } = el({
2475
- element: o.autogrow ? a : void 0
2476
- }), s = b(!1), n = b(!1), c = x(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = x(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2487
+ const o = e, n = b(), { triggerResize: r } = tl({
2488
+ element: o.autogrow ? n : void 0
2489
+ }), s = b(!1), a = b(!1), c = x(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = x(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2477
2490
  onInput: (v) => {
2478
- l("update:modelValue", v.target.value), i();
2491
+ l("update:modelValue", v.target.value), r();
2479
2492
  },
2480
2493
  onBlur: () => {
2481
- n.value = !1, s.value = c.value || f.value;
2494
+ a.value = !1, s.value = c.value || f.value;
2482
2495
  },
2483
2496
  onFocus: () => {
2484
- n.value = !0;
2497
+ a.value = !0;
2485
2498
  }
2486
2499
  };
2487
2500
  return t({
2488
2501
  isInvalid: s,
2489
2502
  valueOverMaxlength: c,
2490
2503
  valueUnderMinlength: f
2491
- }), (v, r) => (m(), p("div", {
2504
+ }), (v, i) => (m(), p("div", {
2492
2505
  "aria-disabled": e.disabled,
2493
2506
  class: k([
2494
2507
  "joy-textarea",
@@ -2496,7 +2509,7 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2496
2509
  "joy-textarea_invalid": s.value || e.invalid,
2497
2510
  "joy-textarea_disabled": e.disabled,
2498
2511
  "joy-textarea_autogrow": e.autogrow,
2499
- "joy-textarea_focusing": n.value
2512
+ "joy-textarea_focusing": a.value
2500
2513
  }
2501
2514
  ])
2502
2515
  }, [
@@ -2513,31 +2526,31 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2513
2526
  ]),
2514
2527
  _: 3
2515
2528
  }, 8, ["for", "required", "optional-label", "size"]),
2516
- h("div", cn, [
2529
+ h("div", fn, [
2517
2530
  h("textarea", Q(v.$attrs, {
2518
2531
  id: e.id,
2519
2532
  ref_key: "textarea",
2520
- ref: a,
2533
+ ref: n,
2521
2534
  class: "joy-native-textarea",
2522
2535
  disabled: e.disabled,
2523
2536
  name: e.name,
2524
2537
  required: e.required,
2525
2538
  minlength: e.minlength,
2526
2539
  value: e.modelValue,
2527
- onInput: r[0] || (r[0] = //@ts-ignore
2540
+ onInput: i[0] || (i[0] = //@ts-ignore
2528
2541
  (...y) => u.onInput && u.onInput(...y)),
2529
- onFocus: r[1] || (r[1] = //@ts-ignore
2542
+ onFocus: i[1] || (i[1] = //@ts-ignore
2530
2543
  (...y) => u.onFocus && u.onFocus(...y)),
2531
- onBlur: r[2] || (r[2] = //@ts-ignore
2544
+ onBlur: i[2] || (i[2] = //@ts-ignore
2532
2545
  (...y) => u.onBlur && u.onBlur(...y))
2533
- }), null, 16, fn)
2546
+ }), null, 16, yn)
2534
2547
  ]),
2535
- e.minlength || e.maxlength ? (m(), p("div", yn, [
2548
+ e.minlength || e.maxlength ? (m(), p("div", vn, [
2536
2549
  e.minlength ? (m(), p("p", {
2537
2550
  key: 0,
2538
2551
  class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2539
2552
  }, [
2540
- _(f) ? w("", !0) : (m(), p("joy-icon", vn)),
2553
+ _(f) ? w("", !0) : (m(), p("joy-icon", mn)),
2541
2554
  J(" " + I(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2542
2555
  ], 2)) : w("", !0),
2543
2556
  e.maxlength ? (m(), p("p", {
@@ -2545,10 +2558,10 @@ const un = /* @__PURE__ */ V(sn, [["__scopeId", "data-v-f891bd85"]]), dn = ["ari
2545
2558
  class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
2546
2559
  }, I(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2547
2560
  ])) : w("", !0)
2548
- ], 10, dn));
2561
+ ], 10, cn));
2549
2562
  }
2550
2563
  });
2551
- const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) => (te("data-v-cf79d999"), e = e(), le(), e), hn = { class: "joy-toggle__wrapper" }, bn = ["name", "disabled", "checked", "required", "aria-checked", "value"], gn = { class: "joy-toggle__content" }, _n = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), wn = { class: "joy-toggle__content-label" }, Sn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2564
+ const hn = /* @__PURE__ */ V(pn, [["__scopeId", "data-v-1496c389"]]), lt = (e) => (te("data-v-cf79d999"), e = e(), le(), e), bn = { class: "joy-toggle__wrapper" }, gn = ["name", "disabled", "checked", "required", "aria-checked", "value"], _n = { class: "joy-toggle__content" }, wn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), Sn = { class: "joy-toggle__content-label" }, jn = /* @__PURE__ */ lt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2552
2565
  /* @__PURE__ */ h("svg", {
2553
2566
  width: "18",
2554
2567
  height: "10",
@@ -2561,7 +2574,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2561
2574
  fill: "currentColor"
2562
2575
  })
2563
2576
  ])
2564
- ], -1)), jn = /* @__PURE__ */ $({
2577
+ ], -1)), kn = /* @__PURE__ */ $({
2565
2578
  __name: "VJoyToggle",
2566
2579
  props: {
2567
2580
  modelValue: {
@@ -2596,9 +2609,9 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2596
2609
  emits: ["update:modelValue"],
2597
2610
  setup(e, { emit: t }) {
2598
2611
  const l = b(!1), o = {
2599
- onChange: (a) => {
2600
- const i = a.target.checked;
2601
- t("update:modelValue", i);
2612
+ onChange: (n) => {
2613
+ const r = n.target.checked;
2614
+ t("update:modelValue", r);
2602
2615
  },
2603
2616
  onFocus: () => {
2604
2617
  l.value = !0;
@@ -2607,7 +2620,7 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2607
2620
  l.value = !1;
2608
2621
  }
2609
2622
  };
2610
- return (a, i) => (m(), p("div", hn, [
2623
+ return (n, r) => (m(), p("div", bn, [
2611
2624
  h("label", {
2612
2625
  class: k([
2613
2626
  "joy-toggle",
@@ -2629,83 +2642,83 @@ const pn = /* @__PURE__ */ V(mn, [["__scopeId", "data-v-1496c389"]]), lt = (e) =
2629
2642
  required: e.required,
2630
2643
  "aria-checked": e.modelValue,
2631
2644
  value: e.value,
2632
- onChange: i[0] || (i[0] = //@ts-ignore
2645
+ onChange: r[0] || (r[0] = //@ts-ignore
2633
2646
  (...s) => o.onChange && o.onChange(...s)),
2634
- onFocus: i[1] || (i[1] = //@ts-ignore
2647
+ onFocus: r[1] || (r[1] = //@ts-ignore
2635
2648
  (...s) => o.onFocus && o.onFocus(...s)),
2636
- onBlur: i[2] || (i[2] = //@ts-ignore
2649
+ onBlur: r[2] || (r[2] = //@ts-ignore
2637
2650
  (...s) => o.onBlur && o.onBlur(...s))
2638
- }, null, 40, bn),
2639
- h("p", gn, [
2640
- _n,
2641
- h("span", wn, [
2642
- g(a.$slots, "default", {}, () => [
2651
+ }, null, 40, gn),
2652
+ h("p", _n, [
2653
+ wn,
2654
+ h("span", Sn, [
2655
+ g(n.$slots, "default", {}, () => [
2643
2656
  J(I(e.label), 1)
2644
2657
  ], !0)
2645
2658
  ]),
2646
- Sn
2659
+ jn
2647
2660
  ])
2648
2661
  ], 2)
2649
2662
  ]));
2650
2663
  }
2651
2664
  });
2652
- const kn = /* @__PURE__ */ V(jn, [["__scopeId", "data-v-cf79d999"]]), $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2665
+ const $n = /* @__PURE__ */ V(kn, [["__scopeId", "data-v-cf79d999"]]), Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2653
2666
  __proto__: null,
2654
2667
  VJoyBadge: ft,
2655
- VJoyButton: jt,
2668
+ VJoyButton: kt,
2656
2669
  VJoyCheckbox: he,
2657
- VJoyCounter: Dt,
2658
- VJoyDropdown: Fl,
2670
+ VJoyCounter: Rt,
2671
+ VJoyDropdown: Dl,
2659
2672
  VJoyDropdownList: Xe,
2660
2673
  VJoyFormError: et,
2661
- VJoyHighlight: Ql,
2662
- VJoyInput: io,
2674
+ VJoyHighlight: Zl,
2675
+ VJoyInput: ro,
2663
2676
  VJoyLabel: N,
2664
- VJoyLink: fo,
2665
- VJoyMultiCheckbox: po,
2666
- VJoyPanel: $o,
2667
- VJoyPanelSection: Bo,
2668
- VJoyRadio: qo,
2669
- VJoyRadioGroup: Ao,
2670
- VJoySelect: No,
2677
+ VJoyLink: yo,
2678
+ VJoyMultiCheckbox: ho,
2679
+ VJoyPanel: Vo,
2680
+ VJoyPanelSection: Lo,
2681
+ VJoyRadio: To,
2682
+ VJoyRadioGroup: Fo,
2683
+ VJoySelect: Ho,
2671
2684
  VJoySelectableItem: tt,
2672
- VJoySelectableItemGroup: Qo,
2685
+ VJoySelectableItemGroup: Zo,
2673
2686
  VJoySpinner: He,
2674
- VJoyTemplate: un,
2675
- VJoyTextarea: pn,
2676
- VJoyToggle: kn,
2677
- VJoyWrapper: Yo
2678
- }, Symbol.toStringTag, { value: "Module" })), xn = {
2687
+ VJoyTemplate: dn,
2688
+ VJoyTextarea: hn,
2689
+ VJoyToggle: $n,
2690
+ VJoyWrapper: Xo
2691
+ }, Symbol.toStringTag, { value: "Module" })), On = {
2679
2692
  install: (e) => {
2680
- Object.entries($n).forEach(([t, l]) => {
2693
+ Object.entries(Vn).forEach(([t, l]) => {
2681
2694
  e.component(t, l);
2682
2695
  });
2683
2696
  }
2684
2697
  };
2685
2698
  export {
2686
- xn as JoyVuePlugin,
2699
+ On as JoyVuePlugin,
2687
2700
  ft as VJoyBadge,
2688
- jt as VJoyButton,
2701
+ kt as VJoyButton,
2689
2702
  he as VJoyCheckbox,
2690
- Dt as VJoyCounter,
2691
- Fl as VJoyDropdown,
2703
+ Rt as VJoyCounter,
2704
+ Dl as VJoyDropdown,
2692
2705
  Xe as VJoyDropdownList,
2693
2706
  et as VJoyFormError,
2694
- Ql as VJoyHighlight,
2695
- io as VJoyInput,
2707
+ Zl as VJoyHighlight,
2708
+ ro as VJoyInput,
2696
2709
  N as VJoyLabel,
2697
- fo as VJoyLink,
2698
- po as VJoyMultiCheckbox,
2699
- $o as VJoyPanel,
2700
- Bo as VJoyPanelSection,
2701
- qo as VJoyRadio,
2702
- Ao as VJoyRadioGroup,
2703
- No as VJoySelect,
2710
+ yo as VJoyLink,
2711
+ ho as VJoyMultiCheckbox,
2712
+ Vo as VJoyPanel,
2713
+ Lo as VJoyPanelSection,
2714
+ To as VJoyRadio,
2715
+ Fo as VJoyRadioGroup,
2716
+ Ho as VJoySelect,
2704
2717
  tt as VJoySelectableItem,
2705
- Qo as VJoySelectableItemGroup,
2718
+ Zo as VJoySelectableItemGroup,
2706
2719
  He as VJoySpinner,
2707
- un as VJoyTemplate,
2708
- pn as VJoyTextarea,
2709
- kn as VJoyToggle,
2710
- Yo as VJoyWrapper
2720
+ dn as VJoyTemplate,
2721
+ hn as VJoyTextarea,
2722
+ $n as VJoyToggle,
2723
+ Xo as VJoyWrapper
2711
2724
  };