@maltjoy/core-vue 1.0.0-beta.10 → 1.0.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/joy-vue.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as $, openBlock as v, createElementBlock as p, normalizeClass as k, renderSlot as b, createTextVNode as E, toDisplayString as x, useAttrs as Re, computed as I, createBlock as q, resolveDynamicComponent as ce, unref as w, withCtx as L, createCommentVNode as _, createElementVNode as h, ref as g, mergeProps as Q, createVNode as fe, pushScopeId as te, popScopeId as le, getCurrentScope as nt, onScopeDispose as at, getCurrentInstance as it, onMounted as Z, nextTick as Me, watch as P, h as rt, reactive as X, onBeforeUnmount as Ne, normalizeStyle as K, Fragment as ye, renderList as me, normalizeProps as ve, guardReactiveProps as pe, Teleport as st, createSlots as He, useSlots as W, onBeforeMount as ut } from "vue";
2
- const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink", "dark-blue", "yellow"], ct = /* @__PURE__ */ $({
1
+ import { defineComponent as $, openBlock as m, createElementBlock as p, normalizeClass as k, renderSlot as b, createTextVNode as L, toDisplayString as x, useAttrs as Re, computed as I, createBlock as T, resolveDynamicComponent as ce, unref as _, withCtx as E, createCommentVNode as w, createElementVNode as h, ref as g, mergeProps as Q, createVNode as fe, pushScopeId as te, popScopeId as le, getCurrentScope as nt, onScopeDispose as at, getCurrentInstance as it, onMounted as Z, nextTick as Me, watch as C, h as rt, reactive as X, onBeforeUnmount as Ne, normalizeStyle as K, Fragment as ye, renderList as ve, normalizeProps as me, guardReactiveProps as pe, Teleport as st, createSlots as He, useSlots as W, onBeforeMount as ut, inject as dt, provide as ct } from "vue";
2
+ const ft = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink", "dark-blue", "yellow"], yt = /* @__PURE__ */ $({
3
3
  __name: "VJoyBadge",
4
4
  props: {
5
5
  /**
@@ -22,43 +22,43 @@ const dt = ["info", "gray", "green", "orange", "red", "teal", "turquoise", "pink
22
22
  variant: {
23
23
  type: String,
24
24
  validator(e) {
25
- return dt.includes(e);
25
+ return ft.includes(e);
26
26
  }
27
27
  }
28
28
  },
29
29
  setup(e) {
30
- return (t, l) => (v(), p("span", {
30
+ return (l, t) => (m(), p("span", {
31
31
  class: k(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
32
32
  role: "status"
33
33
  }, [
34
- b(t.$slots, "default", {}, () => [
35
- E(x(e.label), 1)
34
+ b(l.$slots, "default", {}, () => [
35
+ L(x(e.label), 1)
36
36
  ], !0)
37
37
  ], 2));
38
38
  }
39
39
  });
40
- const V = (e, t) => {
41
- const l = e.__vccOpts || e;
42
- for (const [o, n] of t)
43
- l[o] = n;
44
- return l;
45
- }, ft = /* @__PURE__ */ V(ct, [["__scopeId", "data-v-41907acc"]]), yt = ["teal", "white"], mt = /* @__PURE__ */ $({
40
+ const V = (e, l) => {
41
+ const t = e.__vccOpts || e;
42
+ for (const [o, a] of l)
43
+ t[o] = a;
44
+ return t;
45
+ }, vt = /* @__PURE__ */ V(yt, [["__scopeId", "data-v-41907acc"]]), mt = ["teal", "white"], pt = /* @__PURE__ */ $({
46
46
  __name: "VJoySpinner",
47
47
  props: {
48
48
  color: {
49
49
  type: String,
50
50
  validator(e) {
51
- return yt.includes(e);
51
+ return mt.includes(e);
52
52
  }
53
53
  }
54
54
  },
55
55
  setup(e) {
56
- return (t, l) => (v(), p("div", {
56
+ return (l, t) => (m(), p("div", {
57
57
  class: k(["joy-spinner", `joy-spinner_${e.color}`])
58
58
  }, null, 2));
59
59
  }
60
60
  });
61
- const We = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-616a29d0"]]), vt = ["primary", "secondary"], pt = ["neutral", "success", "info", "warning", "error"], ht = ["main", "admin", "ghost"], bt = [...vt, ...ht], gt = ["large", "medium", "small", "xsmall", "xxsmall"], _t = ["name", "size"], wt = { class: "joy-button--slot" }, St = ["name", "size"], jt = /* @__PURE__ */ $({
61
+ const We = /* @__PURE__ */ V(pt, [["__scopeId", "data-v-616a29d0"]]), ht = ["primary", "secondary"], bt = ["neutral", "success", "info", "warning", "error"], gt = ["main", "admin", "ghost"], _t = [...ht, ...gt], wt = ["large", "medium", "small", "xsmall", "xxsmall"], St = ["name", "size"], jt = { class: "joy-button--slot" }, kt = ["name", "size"], $t = /* @__PURE__ */ $({
62
62
  __name: "VJoyButton",
63
63
  props: {
64
64
  /**
@@ -92,7 +92,7 @@ const We = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-616a29d0"]]), vt = ["pri
92
92
  type: String,
93
93
  default: "primary",
94
94
  validator(e) {
95
- return bt.includes(e);
95
+ return _t.includes(e);
96
96
  }
97
97
  },
98
98
  /** Button or Link size */
@@ -100,13 +100,13 @@ const We = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-616a29d0"]]), vt = ["pri
100
100
  type: String,
101
101
  default: "medium",
102
102
  validator(e) {
103
- return gt.includes(e);
103
+ return wt.includes(e);
104
104
  }
105
105
  }
106
106
  },
107
107
  setup(e) {
108
- const t = e, l = Re(), o = I(() => {
109
- switch (t.size) {
108
+ const l = e, t = Re(), o = I(() => {
109
+ switch (l.size) {
110
110
  case "xxsmall":
111
111
  return "xxsmall";
112
112
  case "xsmall":
@@ -116,10 +116,10 @@ const We = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-616a29d0"]]), vt = ["pri
116
116
  default:
117
117
  return "small";
118
118
  }
119
- }), n = I(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
120
- return (r, s) => (v(), q(ce(w(l).href ? "a" : "button"), {
121
- disabled: e.loading || w(l).disabled,
122
- type: w(l).type || "button",
119
+ }), a = I(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
120
+ return (r, s) => (m(), T(ce(_(t).href ? "a" : "button"), {
121
+ disabled: e.loading || _(t).disabled,
122
+ type: _(t).type || "button",
123
123
  class: k([
124
124
  "joy-button",
125
125
  `joy-button_${e.variant}`,
@@ -130,36 +130,36 @@ const We = /* @__PURE__ */ V(mt, [["__scopeId", "data-v-616a29d0"]]), vt = ["pri
130
130
  }
131
131
  ])
132
132
  }, {
133
- default: L(() => [
134
- e.icon && e.iconPosition === "left" ? (v(), p("joy-icon", {
133
+ default: E(() => [
134
+ e.icon && e.iconPosition === "left" ? (m(), p("joy-icon", {
135
135
  key: 0,
136
136
  class: "joy-button_icon joy-button_icon--left",
137
137
  name: e.icon,
138
- size: w(o),
138
+ size: _(o),
139
139
  lazy: !1
140
- }, null, 8, _t)) : _("", !0),
141
- e.loading ? (v(), q(We, {
140
+ }, null, 8, St)) : w("", !0),
141
+ e.loading ? (m(), T(We, {
142
142
  key: 1,
143
- color: w(n)
144
- }, null, 8, ["color"])) : _("", !0),
145
- h("span", wt, [
143
+ color: _(a)
144
+ }, null, 8, ["color"])) : w("", !0),
145
+ h("span", jt, [
146
146
  b(r.$slots, "default", {}, () => [
147
- E(x(e.label), 1)
147
+ L(x(e.label), 1)
148
148
  ], !0)
149
149
  ]),
150
- e.icon && e.iconPosition === "right" ? (v(), p("joy-icon", {
150
+ e.icon && e.iconPosition === "right" ? (m(), p("joy-icon", {
151
151
  key: 2,
152
152
  class: "joy-button_icon joy-button_icon--right",
153
153
  name: e.icon,
154
- size: w(o),
154
+ size: _(o),
155
155
  lazy: !1
156
- }, null, 8, St)) : _("", !0)
156
+ }, null, 8, kt)) : w("", !0)
157
157
  ]),
158
158
  _: 3
159
159
  }, 8, ["disabled", "type", "class"]));
160
160
  }
161
161
  });
162
- const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-44b223fb"]]), $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__ */ $({
162
+ const Vt = /* @__PURE__ */ V($t, [["__scopeId", "data-v-44b223fb"]]), xt = ["aria-checked", "aria-hidden"], Ot = { class: "joy-checkbox__input-wrapper" }, It = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Bt = { class: "joy-checkbox__content-wrapper" }, Et = { class: "joy-checkbox__content" }, Lt = /* @__PURE__ */ $({
163
163
  __name: "VJoyCheckbox",
164
164
  props: {
165
165
  /** 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 */
@@ -206,22 +206,22 @@ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-44b223fb"]]), $t = ["ari
206
206
  }
207
207
  },
208
208
  emits: ["update:checked", "focus", "blur"],
209
- setup(e, { expose: t, emit: l }) {
210
- const o = e, n = g(), r = g(o.indeterminate), s = g(!1), a = {
209
+ setup(e, { expose: l, emit: t }) {
210
+ const o = e, a = g(), r = g(o.indeterminate), s = g(!1), n = {
211
211
  onChange: (c) => {
212
212
  const f = c.target.checked;
213
- r.value = !1, l("update:checked", f);
213
+ r.value = !1, t("update:checked", f);
214
214
  },
215
215
  onFocus: () => {
216
- s.value = !0, l("focus");
216
+ s.value = !0, t("focus");
217
217
  },
218
218
  onBlur: () => {
219
- s.value = !1, l("blur");
219
+ s.value = !1, t("blur");
220
220
  }
221
221
  };
222
- return t({
222
+ return l({
223
223
  isIndeterminate: r
224
- }), (c, f) => (v(), p("div", {
224
+ }), (c, f) => (m(), p("div", {
225
225
  class: "joy-checkbox__wrapper",
226
226
  "aria-checked": e.checked,
227
227
  "aria-hidden": e.disabled
@@ -237,11 +237,11 @@ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-44b223fb"]]), $t = ["ari
237
237
  }
238
238
  ])
239
239
  }, [
240
- h("div", Vt, [
240
+ h("div", Ot, [
241
241
  h("input", {
242
242
  id: e.id,
243
243
  ref_key: "input",
244
- ref: n,
244
+ ref: a,
245
245
  type: "checkbox",
246
246
  class: "joy-checkbox__input",
247
247
  role: "checkbox",
@@ -253,41 +253,41 @@ const kt = /* @__PURE__ */ V(jt, [["__scopeId", "data-v-44b223fb"]]), $t = ["ari
253
253
  value: e.value,
254
254
  indeterminate: r.value,
255
255
  onChange: f[0] || (f[0] = //@ts-ignore
256
- (...u) => a.onChange && a.onChange(...u)),
256
+ (...u) => n.onChange && n.onChange(...u)),
257
257
  onFocus: f[1] || (f[1] = //@ts-ignore
258
- (...u) => a.onFocus && a.onFocus(...u)),
258
+ (...u) => n.onFocus && n.onFocus(...u)),
259
259
  onBlur: f[2] || (f[2] = //@ts-ignore
260
- (...u) => a.onBlur && a.onBlur(...u))
261
- }, null, 40, xt)
260
+ (...u) => n.onBlur && n.onBlur(...u))
261
+ }, null, 40, It)
262
262
  ]),
263
- h("div", Ot, [
263
+ h("div", Bt, [
264
264
  b(c.$slots, "default", {}, () => [
265
- E(x(e.label), 1)
265
+ L(x(e.label), 1)
266
266
  ], !0),
267
- h("div", It, [
267
+ h("div", Et, [
268
268
  b(c.$slots, "checkbox-content", {}, void 0, !0)
269
269
  ])
270
270
  ])
271
271
  ], 2)
272
- ], 8, $t));
272
+ ], 8, xt));
273
273
  }
274
274
  });
275
- const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Lt = { class: "joy-counter" }, Et = ["aria-label", "disabled"], Pt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
275
+ const he = /* @__PURE__ */ V(Lt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) => (te("data-v-0d1ab3f2"), e = e(), le(), e), Ct = { class: "joy-counter" }, Pt = ["aria-label", "disabled"], Jt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
276
276
  name: "minus",
277
277
  color: "teal",
278
278
  lazy: !1
279
- }, null, -1)), Ct = [
280
- Pt
281
- ], Jt = { class: "joy-counter__input-wrapper" }, qt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tt = ["aria-label", "disabled"], zt = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
279
+ }, null, -1)), Tt = [
280
+ Jt
281
+ ], qt = { class: "joy-counter__input-wrapper" }, zt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], At = ["aria-label", "disabled"], Ft = /* @__PURE__ */ Ue(() => /* @__PURE__ */ h("joy-icon", {
282
282
  name: "add",
283
283
  lazy: !1,
284
284
  color: "teal"
285
- }, null, -1)), At = [
286
- zt
287
- ], Ft = {
285
+ }, null, -1)), Dt = [
286
+ Ft
287
+ ], Rt = {
288
288
  key: 0,
289
289
  class: "joy-counter_error"
290
- }, Dt = /* @__PURE__ */ $({
290
+ }, Mt = /* @__PURE__ */ $({
291
291
  __name: "VJoyCounter",
292
292
  props: {
293
293
  /** Removes any interactivity */
@@ -353,27 +353,27 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
353
353
  }
354
354
  },
355
355
  emits: ["update:modelValue"],
356
- setup(e, { expose: t, emit: l }) {
357
- const o = e, n = g(!1), r = g(!1);
356
+ setup(e, { expose: l, emit: t }) {
357
+ const o = e, a = g(!1), r = g(!1);
358
358
  function s() {
359
359
  const d = f(!1);
360
- d >= 0 ? l("update:modelValue", d <= o.min ? o.min : d) : l("update:modelValue", 0), c();
360
+ d >= 0 ? t("update:modelValue", d <= o.min ? o.min : d) : t("update:modelValue", 0), c();
361
361
  }
362
- function a() {
362
+ function n() {
363
363
  const d = f();
364
- 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();
364
+ o.max && d <= o.max ? t("update:modelValue", d >= o.max ? o.max : d) : o.max && d > o.max ? t("update:modelValue", o.max) : t("update:modelValue", d), c();
365
365
  }
366
366
  function c() {
367
- n.value = !u();
367
+ a.value = !u();
368
368
  }
369
369
  function f(d = !0) {
370
370
  const j = o.step.toString().split("."), S = j.length === 2 ? j[1].length : 0;
371
371
  return parseFloat(d ? (o.modelValue + o.step).toFixed(S) : (o.modelValue - o.step).toFixed(S));
372
372
  }
373
373
  function u() {
374
- return m() && i();
374
+ return v() && i();
375
375
  }
376
- function m() {
376
+ function v() {
377
377
  return !o.max || o.modelValue <= o.max;
378
378
  }
379
379
  function i() {
@@ -381,7 +381,7 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
381
381
  }
382
382
  const y = {
383
383
  onInput: (d) => {
384
- l("update:modelValue", +d.target.value || 0), n.value = !1;
384
+ t("update:modelValue", +d.target.value || 0), a.value = !1;
385
385
  },
386
386
  onFocus: () => {
387
387
  r.value = !0;
@@ -390,23 +390,23 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
390
390
  r.value = !1, c();
391
391
  }
392
392
  };
393
- return t({
393
+ return l({
394
394
  props: o
395
- }), (d, j) => (v(), p("div", Lt, [
396
- e.label ? (v(), q(w(N), {
395
+ }), (d, j) => (m(), p("div", Ct, [
396
+ e.label ? (m(), T(_(N), {
397
397
  key: 0,
398
398
  for: e.id,
399
399
  required: e.required && e.requiredMark,
400
400
  "optional-label": e.optionalLabel,
401
401
  size: e.labelSize
402
402
  }, {
403
- default: L(() => [
403
+ default: E(() => [
404
404
  b(d.$slots, "default", {}, () => [
405
- E(x(e.label), 1)
405
+ L(x(e.label), 1)
406
406
  ], !0)
407
407
  ]),
408
408
  _: 3
409
- }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
409
+ }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
410
410
  h("div", {
411
411
  class: k(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
412
412
  }, [
@@ -416,16 +416,16 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
416
416
  "aria-label": e.labelDecrement,
417
417
  disabled: e.modelValue <= e.min,
418
418
  onClick: s
419
- }, Ct, 8, Et),
420
- h("div", Jt, [
419
+ }, Tt, 8, Pt),
420
+ h("div", qt, [
421
421
  h("input", Q({
422
422
  id: e.id,
423
423
  ref: "input",
424
424
  type: "number",
425
- class: { "joy-counter__invalid": e.invalid || n.value },
425
+ class: { "joy-counter__invalid": e.invalid || a.value },
426
426
  min: e.min,
427
427
  max: e.max,
428
- "aria-invalid": e.invalid || n.value,
428
+ "aria-invalid": e.invalid || a.value,
429
429
  name: e.name,
430
430
  required: e.required,
431
431
  step: "any",
@@ -437,65 +437,65 @@ const he = /* @__PURE__ */ V(Bt, [["__scopeId", "data-v-e8b172ed"]]), Ue = (e) =
437
437
  (...S) => y.onBlur && y.onBlur(...S)),
438
438
  onFocus: j[2] || (j[2] = //@ts-ignore
439
439
  (...S) => y.onFocus && y.onFocus(...S))
440
- }), null, 16, qt)
440
+ }), null, 16, zt)
441
441
  ]),
442
442
  h("button", {
443
443
  class: "joy-counter__increment",
444
444
  type: "button",
445
445
  "aria-label": e.labelIncrement,
446
446
  disabled: e.max ? e.modelValue >= e.max : !1,
447
- onClick: a
448
- }, At, 8, Tt),
449
- e.invalid && e.errorMessage ? (v(), p("div", Ft, [
450
- fe(w(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
451
- ])) : _("", !0)
447
+ onClick: n
448
+ }, Dt, 8, At),
449
+ e.invalid && e.errorMessage ? (m(), p("div", Rt, [
450
+ fe(_(tt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
451
+ ])) : w("", !0)
452
452
  ], 2)
453
453
  ]));
454
454
  }
455
455
  });
456
- const Rt = /* @__PURE__ */ V(Dt, [["__scopeId", "data-v-0d1ab3f2"]]);
456
+ const Nt = /* @__PURE__ */ V(Mt, [["__scopeId", "data-v-0d1ab3f2"]]);
457
457
  var _e;
458
458
  const U = typeof window < "u", Ge = (e) => typeof e == "string", z = () => {
459
459
  }, ee = U && ((_e = window == null ? void 0 : window.navigator) == null ? void 0 : _e.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
460
- function C(e) {
461
- return typeof e == "function" ? e() : w(e);
460
+ function P(e) {
461
+ return typeof e == "function" ? e() : _(e);
462
462
  }
463
- function Ke(e, t) {
464
- function l(...o) {
465
- return new Promise((n, r) => {
466
- Promise.resolve(e(() => t.apply(this, o), { fn: t, thisArg: this, args: o })).then(n).catch(r);
463
+ function Ke(e, l) {
464
+ function t(...o) {
465
+ return new Promise((a, r) => {
466
+ Promise.resolve(e(() => l.apply(this, o), { fn: l, thisArg: this, args: o })).then(a).catch(r);
467
467
  });
468
468
  }
469
- return l;
469
+ return t;
470
470
  }
471
- function Mt(e, t = {}) {
472
- let l, o, n = z;
473
- const r = (a) => {
474
- clearTimeout(a), n(), n = z;
471
+ function Ht(e, l = {}) {
472
+ let t, o, a = z;
473
+ const r = (n) => {
474
+ clearTimeout(n), a(), a = z;
475
475
  };
476
- return (a) => {
477
- const c = C(e), f = C(t.maxWait);
478
- return l && r(l), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, m) => {
479
- n = t.rejectOnCancel ? m : u, f && !o && (o = setTimeout(() => {
480
- l && r(l), o = null, u(a());
481
- }, f)), l = setTimeout(() => {
482
- o && r(o), o = null, u(a());
476
+ return (n) => {
477
+ const c = P(e), f = P(l.maxWait);
478
+ return t && r(t), c <= 0 || f !== void 0 && f <= 0 ? (o && (r(o), o = null), Promise.resolve(n())) : new Promise((u, v) => {
479
+ a = l.rejectOnCancel ? v : u, f && !o && (o = setTimeout(() => {
480
+ t && r(t), o = null, u(n());
481
+ }, f)), t = setTimeout(() => {
482
+ o && r(o), o = null, u(n());
483
483
  }, c);
484
484
  });
485
485
  };
486
486
  }
487
- function Nt(e, t = !0, l = !0, o = !1) {
488
- let n = 0, r, s = !0, a = z, c;
487
+ function Wt(e, l = !0, t = !0, o = !1) {
488
+ let a = 0, r, s = !0, n = z, c;
489
489
  const f = () => {
490
- r && (clearTimeout(r), r = void 0, a(), a = z);
490
+ r && (clearTimeout(r), r = void 0, n(), n = z);
491
491
  };
492
- return (m) => {
493
- const i = C(e), y = Date.now() - n, d = () => c = m();
494
- return f(), i <= 0 ? (n = Date.now(), d()) : (y > i && (l || !s) ? (n = Date.now(), d()) : t && (c = new Promise((j, S) => {
495
- a = o ? S : j, r = setTimeout(() => {
496
- n = Date.now(), s = !0, j(d()), f();
492
+ return (v) => {
493
+ const i = P(e), y = Date.now() - a, d = () => c = v();
494
+ return f(), i <= 0 ? (a = Date.now(), d()) : (y > i && (t || !s) ? (a = Date.now(), d()) : l && (c = new Promise((j, S) => {
495
+ n = o ? S : j, r = setTimeout(() => {
496
+ a = Date.now(), s = !0, j(d()), f();
497
497
  }, Math.max(0, i - y));
498
- })), !l && !r && (r = setTimeout(() => s = !0, i)), s = !1, c);
498
+ })), !t && !r && (r = setTimeout(() => s = !0, i)), s = !1, c);
499
499
  };
500
500
  }
501
501
  const R = {
@@ -503,55 +503,55 @@ const R = {
503
503
  updated: "updated",
504
504
  unmounted: "unmounted"
505
505
  };
506
- function Ht(e) {
506
+ function Ut(e) {
507
507
  return e;
508
508
  }
509
509
  function G(e) {
510
510
  return nt() ? (at(e), !0) : !1;
511
511
  }
512
- function Wt(e, t = 200, l = {}) {
513
- return Ke(Mt(t, l), e);
512
+ function Gt(e, l = 200, t = {}) {
513
+ return Ke(Ht(l, t), e);
514
514
  }
515
- function Ut(e, t = 200, l = !1, o = !0, n = !1) {
516
- return Ke(Nt(t, l, o, n), e);
515
+ function Kt(e, l = 200, t = !1, o = !0, a = !1) {
516
+ return Ke(Wt(l, t, o, a), e);
517
517
  }
518
- function Gt(e) {
518
+ function Qt(e) {
519
519
  return typeof e == "function" ? I(e) : g(e);
520
520
  }
521
- function Qe(e, t = !0) {
522
- it() ? Z(e) : t ? e() : Me(e);
521
+ function Qe(e, l = !0) {
522
+ it() ? Z(e) : l ? e() : Me(e);
523
523
  }
524
524
  function H(e) {
525
- var t;
526
- const l = C(e);
527
- return (t = l == null ? void 0 : l.$el) != null ? t : l;
525
+ var l;
526
+ const t = P(e);
527
+ return (l = t == null ? void 0 : t.$el) != null ? l : t;
528
528
  }
529
529
  const be = U ? window : void 0;
530
530
  U && window.document;
531
531
  U && window.navigator;
532
532
  U && window.location;
533
533
  function ae(...e) {
534
- let t, l, o, n;
535
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = be) : [t, l, o, n] = e, !t)
534
+ let l, t, o, a;
535
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([t, o, a] = e, l = be) : [l, t, o, a] = e, !l)
536
536
  return z;
537
- Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
537
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
538
538
  const r = [], s = () => {
539
539
  r.forEach((u) => u()), r.length = 0;
540
- }, a = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), c = P(() => [H(t), C(n)], ([u, m]) => {
541
- s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, m))));
540
+ }, n = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = C(() => [H(l), P(a)], ([u, v]) => {
541
+ s(), u && r.push(...t.flatMap((i) => o.map((y) => n(u, i, y, v))));
542
542
  }, { immediate: !0, flush: "post" }), f = () => {
543
543
  c(), s();
544
544
  };
545
545
  return G(f), f;
546
546
  }
547
547
  let we = !1;
548
- function Kt(e, t, l = {}) {
549
- const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
548
+ function Zt(e, l, t = {}) {
549
+ const { window: o = be, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
550
550
  if (!o)
551
551
  return;
552
552
  ee && !we && (we = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
553
- let a = !0;
554
- const c = (i) => n.some((y) => {
553
+ let n = !0;
554
+ const c = (i) => a.some((y) => {
555
555
  if (typeof y == "string")
556
556
  return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
557
557
  {
@@ -562,53 +562,53 @@ function Kt(e, t, l = {}) {
562
562
  ae(o, "click", (i) => {
563
563
  const y = H(e);
564
564
  if (!(!y || y === i.target || i.composedPath().includes(y))) {
565
- if (i.detail === 0 && (a = !c(i)), !a) {
566
- a = !0;
565
+ if (i.detail === 0 && (n = !c(i)), !n) {
566
+ n = !0;
567
567
  return;
568
568
  }
569
- t(i);
569
+ l(i);
570
570
  }
571
571
  }, { passive: !0, capture: r }),
572
572
  ae(o, "pointerdown", (i) => {
573
573
  const y = H(e);
574
- y && (a = !i.composedPath().includes(y) && !c(i));
574
+ y && (n = !i.composedPath().includes(y) && !c(i));
575
575
  }, { passive: !0 }),
576
576
  s && ae(o, "blur", (i) => {
577
577
  var y;
578
578
  const d = H(e);
579
- ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
579
+ ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && l(i);
580
580
  })
581
581
  ].filter(Boolean);
582
582
  return () => u.forEach((i) => i());
583
583
  }
584
- function Qt(e, t = !1) {
585
- const l = g(), o = () => l.value = Boolean(e());
586
- return o(), Qe(o, t), l;
584
+ function Yt(e, l = !1) {
585
+ const t = g(), o = () => t.value = Boolean(e());
586
+ return o(), Qe(o, l), t;
587
587
  }
588
588
  const ie = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = "__vueuse_ssr_handlers__";
589
589
  ie[re] = ie[re] || {};
590
590
  ie[re];
591
- var Se = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, Yt = Object.prototype.propertyIsEnumerable, Xt = (e, t) => {
592
- var l = {};
591
+ var Se = Object.getOwnPropertySymbols, Xt = Object.prototype.hasOwnProperty, el = Object.prototype.propertyIsEnumerable, tl = (e, l) => {
592
+ var t = {};
593
593
  for (var o in e)
594
- Zt.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
594
+ Xt.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
595
595
  if (e != null && Se)
596
596
  for (var o of Se(e))
597
- t.indexOf(o) < 0 && Yt.call(e, o) && (l[o] = e[o]);
598
- return l;
597
+ l.indexOf(o) < 0 && el.call(e, o) && (t[o] = e[o]);
598
+ return t;
599
599
  };
600
- function el(e, t, l = {}) {
601
- const o = l, { window: n = be } = o, r = Xt(o, ["window"]);
600
+ function ll(e, l, t = {}) {
601
+ const o = t, { window: a = be } = o, r = tl(o, ["window"]);
602
602
  let s;
603
- const a = Qt(() => n && "ResizeObserver" in n), c = () => {
603
+ const n = Yt(() => a && "ResizeObserver" in a), c = () => {
604
604
  s && (s.disconnect(), s = void 0);
605
- }, f = P(() => H(e), (m) => {
606
- c(), a.value && n && m && (s = new ResizeObserver(t), s.observe(m, r));
605
+ }, f = C(() => H(e), (v) => {
606
+ c(), n.value && a && v && (s = new ResizeObserver(l), s.observe(v, r));
607
607
  }, { immediate: !0, flush: "post" }), u = () => {
608
608
  c(), f();
609
609
  };
610
610
  return G(u), {
611
- isSupported: a,
611
+ isSupported: n,
612
612
  stop: u
613
613
  };
614
614
  }
@@ -616,27 +616,27 @@ var je;
616
616
  (function(e) {
617
617
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
618
618
  })(je || (je = {}));
619
- function tl(e) {
620
- const t = g(e == null ? void 0 : e.element), l = g(e == null ? void 0 : e.input);
619
+ function ol(e) {
620
+ const l = g(e == null ? void 0 : e.element), t = g(e == null ? void 0 : e.input);
621
621
  function o() {
622
- var n, r;
623
- 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));
622
+ var a, r;
623
+ l.value && (l.value.style.height = "1px", l.value.style.height = `${(a = l.value) == null ? void 0 : a.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
624
624
  }
625
- return P([l, t], o, { immediate: !0 }), el(t, () => o()), e != null && e.watch && P(e.watch, o, { immediate: !0, deep: !0 }), {
626
- textarea: t,
627
- input: l,
625
+ return C([t, l], o, { immediate: !0 }), ll(l, () => o()), e != null && e.watch && C(e.watch, o, { immediate: !0, deep: !0 }), {
626
+ textarea: l,
627
+ input: t,
628
628
  triggerResize: o
629
629
  };
630
630
  }
631
- 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) => {
632
- for (var l in t || (t = {}))
633
- ol.call(t, l) && $e(e, l, t[l]);
631
+ var nl = Object.defineProperty, ke = Object.getOwnPropertySymbols, al = Object.prototype.hasOwnProperty, il = Object.prototype.propertyIsEnumerable, $e = (e, l, t) => l in e ? nl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, rl = (e, l) => {
632
+ for (var t in l || (l = {}))
633
+ al.call(l, t) && $e(e, t, l[t]);
634
634
  if (ke)
635
- for (var l of ke(t))
636
- nl.call(t, l) && $e(e, l, t[l]);
635
+ for (var t of ke(l))
636
+ il.call(l, t) && $e(e, t, l[t]);
637
637
  return e;
638
638
  };
639
- const il = {
639
+ const sl = {
640
640
  easeInSine: [0.12, 0, 0.39, 0],
641
641
  easeOutSine: [0.61, 1, 0.88, 1],
642
642
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -662,51 +662,51 @@ const il = {
662
662
  easeOutBack: [0.34, 1.56, 0.64, 1],
663
663
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
664
664
  };
665
- al({
666
- linear: Ht
667
- }, il);
668
- const rl = /* @__PURE__ */ $({
665
+ rl({
666
+ linear: Ut
667
+ }, sl);
668
+ const ul = /* @__PURE__ */ $({
669
669
  name: "OnClickOutside",
670
670
  props: ["as", "options"],
671
671
  emits: ["trigger"],
672
- setup(e, { slots: t, emit: l }) {
672
+ setup(e, { slots: l, emit: t }) {
673
673
  const o = g();
674
- return Kt(o, (n) => {
675
- l("trigger", n);
674
+ return Zt(o, (a) => {
675
+ t("trigger", a);
676
676
  }, e.options), () => {
677
- if (t.default)
678
- return rt(e.as || "div", { ref: o }, t.default());
677
+ if (l.default)
678
+ return rt(e.as || "div", { ref: o }, l.default());
679
679
  };
680
680
  }
681
681
  });
682
682
  function J(e) {
683
- var t;
684
- const l = C(e);
685
- return (t = l == null ? void 0 : l.$el) != null ? t : l;
683
+ var l;
684
+ const t = P(e);
685
+ return (l = t == null ? void 0 : t.$el) != null ? l : t;
686
686
  }
687
687
  const M = U ? window : void 0;
688
688
  function A(...e) {
689
- let t, l, o, n;
690
- if (Ge(e[0]) || Array.isArray(e[0]) ? ([l, o, n] = e, t = M) : [t, l, o, n] = e, !t)
689
+ let l, t, o, a;
690
+ if (Ge(e[0]) || Array.isArray(e[0]) ? ([t, o, a] = e, l = M) : [l, t, o, a] = e, !l)
691
691
  return z;
692
- Array.isArray(l) || (l = [l]), Array.isArray(o) || (o = [o]);
692
+ Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
693
693
  const r = [], s = () => {
694
694
  r.forEach((u) => u()), r.length = 0;
695
- }, a = (u, m, i, y) => (u.addEventListener(m, i, y), () => u.removeEventListener(m, i, y)), c = P(() => [J(t), C(n)], ([u, m]) => {
696
- s(), u && r.push(...l.flatMap((i) => o.map((y) => a(u, i, y, m))));
695
+ }, n = (u, v, i, y) => (u.addEventListener(v, i, y), () => u.removeEventListener(v, i, y)), c = C(() => [J(l), P(a)], ([u, v]) => {
696
+ s(), u && r.push(...t.flatMap((i) => o.map((y) => n(u, i, y, v))));
697
697
  }, { immediate: !0, flush: "post" }), f = () => {
698
698
  c(), s();
699
699
  };
700
700
  return G(f), f;
701
701
  }
702
702
  let Ve = !1;
703
- function xe(e, t, l = {}) {
704
- const { window: o = M, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = l;
703
+ function xe(e, l, t = {}) {
704
+ const { window: o = M, ignore: a = [], capture: r = !0, detectIframe: s = !1 } = t;
705
705
  if (!o)
706
706
  return;
707
707
  ee && !Ve && (Ve = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", z)));
708
- let a = !0;
709
- const c = (i) => n.some((y) => {
708
+ let n = !0;
709
+ const c = (i) => a.some((y) => {
710
710
  if (typeof y == "string")
711
711
  return Array.from(o.document.querySelectorAll(y)).some((d) => d === i.target || i.composedPath().includes(d));
712
712
  {
@@ -717,154 +717,154 @@ function xe(e, t, l = {}) {
717
717
  A(o, "click", (i) => {
718
718
  const y = J(e);
719
719
  if (!(!y || y === i.target || i.composedPath().includes(y))) {
720
- if (i.detail === 0 && (a = !c(i)), !a) {
721
- a = !0;
720
+ if (i.detail === 0 && (n = !c(i)), !n) {
721
+ n = !0;
722
722
  return;
723
723
  }
724
- t(i);
724
+ l(i);
725
725
  }
726
726
  }, { passive: !0, capture: r }),
727
727
  A(o, "pointerdown", (i) => {
728
728
  const y = J(e);
729
- y && (a = !i.composedPath().includes(y) && !c(i));
729
+ y && (n = !i.composedPath().includes(y) && !c(i));
730
730
  }, { passive: !0 }),
731
731
  s && A(o, "blur", (i) => {
732
732
  var y;
733
733
  const d = J(e);
734
- ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && t(i);
734
+ ((y = o.document.activeElement) == null ? void 0 : y.tagName) === "IFRAME" && !(d != null && d.contains(o.document.activeElement)) && l(i);
735
735
  })
736
736
  ].filter(Boolean);
737
737
  return () => u.forEach((i) => i());
738
738
  }
739
739
  R.mounted + "", R.unmounted + "";
740
- const sl = (e) => typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
740
+ const dl = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
741
741
  function Oe(...e) {
742
- let t, l, o = {};
743
- 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]);
744
- const { target: n = M, eventName: r = "keydown", passive: s = !1 } = o, a = sl(t);
745
- return A(n, r, (f) => {
746
- a(f) && l(f);
742
+ let l, t, o = {};
743
+ e.length === 3 ? (l = e[0], t = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], o = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
744
+ const { target: a = M, eventName: r = "keydown", passive: s = !1 } = o, n = dl(l);
745
+ return A(a, r, (f) => {
746
+ n(f) && t(f);
747
747
  }, s);
748
748
  }
749
- 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) => {
750
- for (var l in t || (t = {}))
751
- dl.call(t, l) && Be(e, l, t[l]);
749
+ var cl = Object.defineProperty, Ie = Object.getOwnPropertySymbols, fl = Object.prototype.hasOwnProperty, yl = Object.prototype.propertyIsEnumerable, Be = (e, l, t) => l in e ? cl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, vl = (e, l) => {
750
+ for (var t in l || (l = {}))
751
+ fl.call(l, t) && Be(e, t, l[t]);
752
752
  if (Ie)
753
- for (var l of Ie(t))
754
- cl.call(t, l) && Be(e, l, t[l]);
753
+ for (var t of Ie(l))
754
+ yl.call(l, t) && Be(e, t, l[t]);
755
755
  return e;
756
756
  };
757
757
  R.mounted + "";
758
- const yl = 500;
759
- function Le(e, t, l) {
760
- var o, n;
758
+ const ml = 500;
759
+ function Ee(e, l, t) {
760
+ var o, a;
761
761
  const r = I(() => J(e));
762
762
  let s;
763
- function a() {
763
+ function n() {
764
764
  s && (clearTimeout(s), s = void 0);
765
765
  }
766
766
  function c(u) {
767
- var m, i, y, d;
768
- (m = l == null ? void 0 : l.modifiers) != null && m.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));
767
+ var v, i, y, d;
768
+ (v = t == null ? void 0 : t.modifiers) != null && v.self && u.target !== r.value || (n(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (y = t == null ? void 0 : t.modifiers) != null && y.stop && u.stopPropagation(), s = setTimeout(() => l(u), (d = t == null ? void 0 : t.delay) != null ? d : ml));
769
769
  }
770
770
  const f = {
771
- capture: (o = l == null ? void 0 : l.modifiers) == null ? void 0 : o.capture,
772
- once: (n = l == null ? void 0 : l.modifiers) == null ? void 0 : n.once
771
+ capture: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.capture,
772
+ once: (a = t == null ? void 0 : t.modifiers) == null ? void 0 : a.once
773
773
  };
774
- A(r, "pointerdown", c, f), A(r, "pointerup", a, f), A(r, "pointerleave", a, f);
774
+ A(r, "pointerdown", c, f), A(r, "pointerup", n, f), A(r, "pointerleave", n, f);
775
775
  }
776
776
  R.mounted + "";
777
777
  const se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ue = "__vueuse_ssr_handlers__";
778
778
  se[ue] = se[ue] || {};
779
779
  se[ue];
780
- function Ze(e, t = !1) {
781
- const l = g(), o = () => l.value = Boolean(e());
782
- return o(), Qe(o, t), l;
780
+ function Ze(e, l = !1) {
781
+ const t = g(), o = () => t.value = Boolean(e());
782
+ return o(), Qe(o, l), t;
783
783
  }
784
- function ml(e, t = {}) {
785
- const l = t ? t.delayEnter : 0, o = t ? t.delayLeave : 0, n = g(!1);
784
+ function pl(e, l = {}) {
785
+ const t = l ? l.delayEnter : 0, o = l ? l.delayLeave : 0, a = g(!1);
786
786
  let r;
787
- const s = (a) => {
788
- const c = a ? l : o;
789
- r && (clearTimeout(r), r = void 0), c ? r = setTimeout(() => n.value = a, c) : n.value = a;
787
+ const s = (n) => {
788
+ const c = n ? t : o;
789
+ r && (clearTimeout(r), r = void 0), c ? r = setTimeout(() => a.value = n, c) : a.value = n;
790
790
  };
791
- return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), n;
791
+ return window && (A(e, "mouseenter", () => s(!0), { passive: !0 }), A(e, "mouseleave", () => s(!1), { passive: !0 })), a;
792
792
  }
793
793
  R.mounted + "";
794
- var Ee = Object.getOwnPropertySymbols, vl = Object.prototype.hasOwnProperty, pl = Object.prototype.propertyIsEnumerable, hl = (e, t) => {
795
- var l = {};
794
+ var Le = Object.getOwnPropertySymbols, hl = Object.prototype.hasOwnProperty, bl = Object.prototype.propertyIsEnumerable, gl = (e, l) => {
795
+ var t = {};
796
796
  for (var o in e)
797
- vl.call(e, o) && t.indexOf(o) < 0 && (l[o] = e[o]);
798
- if (e != null && Ee)
799
- for (var o of Ee(e))
800
- t.indexOf(o) < 0 && pl.call(e, o) && (l[o] = e[o]);
801
- return l;
797
+ hl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
798
+ if (e != null && Le)
799
+ for (var o of Le(e))
800
+ l.indexOf(o) < 0 && bl.call(e, o) && (t[o] = e[o]);
801
+ return t;
802
802
  };
803
- function bl(e, t, l = {}) {
804
- const o = l, { window: n = M } = o, r = hl(o, ["window"]);
803
+ function _l(e, l, t = {}) {
804
+ const o = t, { window: a = M } = o, r = gl(o, ["window"]);
805
805
  let s;
806
- const a = Ze(() => n && "ResizeObserver" in n), c = () => {
806
+ const n = Ze(() => a && "ResizeObserver" in a), c = () => {
807
807
  s && (s.disconnect(), s = void 0);
808
- }, f = P(() => J(e), (m) => {
809
- c(), a.value && n && m && (s = new ResizeObserver(t), s.observe(m, r));
808
+ }, f = C(() => J(e), (v) => {
809
+ c(), n.value && a && v && (s = new ResizeObserver(l), s.observe(v, r));
810
810
  }, { immediate: !0, flush: "post" }), u = () => {
811
811
  c(), f();
812
812
  };
813
813
  return G(u), {
814
- isSupported: a,
814
+ isSupported: n,
815
815
  stop: u
816
816
  };
817
817
  }
818
- function gl(e, t = { width: 0, height: 0 }, l = {}) {
819
- const { window: o = M, box: n = "content-box" } = l, r = I(() => {
818
+ function wl(e, l = { width: 0, height: 0 }, t = {}) {
819
+ const { window: o = M, box: a = "content-box" } = t, r = I(() => {
820
820
  var c, f;
821
821
  return (f = (c = J(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : f.includes("svg");
822
- }), s = g(t.width), a = g(t.height);
823
- return bl(e, ([c]) => {
824
- const f = n === "border-box" ? c.borderBoxSize : n === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
822
+ }), s = g(l.width), n = g(l.height);
823
+ return _l(e, ([c]) => {
824
+ const f = a === "border-box" ? c.borderBoxSize : a === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
825
825
  if (o && r.value) {
826
826
  const u = J(e);
827
827
  if (u) {
828
- const m = o.getComputedStyle(u);
829
- s.value = parseFloat(m.width), a.value = parseFloat(m.height);
828
+ const v = o.getComputedStyle(u);
829
+ s.value = parseFloat(v.width), n.value = parseFloat(v.height);
830
830
  }
831
831
  } else if (f) {
832
832
  const u = Array.isArray(f) ? f : [f];
833
- s.value = u.reduce((m, { inlineSize: i }) => m + i, 0), a.value = u.reduce((m, { blockSize: i }) => m + i, 0);
833
+ s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), n.value = u.reduce((v, { blockSize: i }) => v + i, 0);
834
834
  } else
835
- s.value = c.contentRect.width, a.value = c.contentRect.height;
836
- }, l), P(() => J(e), (c) => {
837
- s.value = c ? t.width : 0, a.value = c ? t.height : 0;
835
+ s.value = c.contentRect.width, n.value = c.contentRect.height;
836
+ }, t), C(() => J(e), (c) => {
837
+ s.value = c ? l.width : 0, n.value = c ? l.height : 0;
838
838
  }), {
839
839
  width: s,
840
- height: a
840
+ height: n
841
841
  };
842
842
  }
843
843
  R.mounted + "";
844
- function Pe(e, { window: t = M, scrollTarget: l } = {}) {
845
- const o = g(!1), n = () => {
846
- if (!t)
844
+ function Ce(e, { window: l = M, scrollTarget: t } = {}) {
845
+ const o = g(!1), a = () => {
846
+ if (!l)
847
847
  return;
848
- const r = t.document, s = J(e);
848
+ const r = l.document, s = J(e);
849
849
  if (!s)
850
850
  o.value = !1;
851
851
  else {
852
- const a = s.getBoundingClientRect();
853
- o.value = a.top <= (t.innerHeight || r.documentElement.clientHeight) && a.left <= (t.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
852
+ const n = s.getBoundingClientRect();
853
+ o.value = n.top <= (l.innerHeight || r.documentElement.clientHeight) && n.left <= (l.innerWidth || r.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
854
854
  }
855
855
  };
856
- return P(() => J(e), () => n(), { immediate: !0, flush: "post" }), t && A(l || t, "scroll", n, {
856
+ return C(() => J(e), () => a(), { immediate: !0, flush: "post" }), l && A(t || l, "scroll", a, {
857
857
  capture: !1,
858
858
  passive: !0
859
859
  }), o;
860
860
  }
861
861
  R.mounted + "";
862
- const Ce = 1;
863
- function de(e, t = {}) {
862
+ const Pe = 1;
863
+ function de(e, l = {}) {
864
864
  const {
865
- throttle: l = 0,
865
+ throttle: t = 0,
866
866
  idle: o = 200,
867
- onStop: n = z,
867
+ onStop: a = z,
868
868
  onScroll: r = z,
869
869
  offset: s = {
870
870
  left: 0,
@@ -872,12 +872,12 @@ function de(e, t = {}) {
872
872
  top: 0,
873
873
  bottom: 0
874
874
  },
875
- eventListenerOptions: a = {
875
+ eventListenerOptions: n = {
876
876
  capture: !1,
877
877
  passive: !0
878
878
  },
879
879
  behavior: c = "auto"
880
- } = t, f = g(0), u = g(0), m = I({
880
+ } = l, f = g(0), u = g(0), v = I({
881
881
  get() {
882
882
  return f.value;
883
883
  },
@@ -892,13 +892,13 @@ function de(e, t = {}) {
892
892
  y(void 0, B);
893
893
  }
894
894
  });
895
- function y(B, T) {
895
+ function y(B, q) {
896
896
  var D, F, ge;
897
- const ne = C(e);
897
+ const ne = P(e);
898
898
  ne && ((ge = ne instanceof Document ? document.body : ne) == null || ge.scrollTo({
899
- top: (D = C(T)) != null ? D : i.value,
900
- left: (F = C(B)) != null ? F : m.value,
901
- behavior: C(c)
899
+ top: (D = P(q)) != null ? D : i.value,
900
+ left: (F = P(B)) != null ? F : v.value,
901
+ behavior: P(c)
902
902
  }));
903
903
  }
904
904
  const d = g(!1), j = X({
@@ -912,154 +912,154 @@ function de(e, t = {}) {
912
912
  top: !1,
913
913
  bottom: !1
914
914
  }), Y = (B) => {
915
- d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, n(B));
916
- }, oe = Wt(Y, l + o), O = (B) => {
917
- const T = B.target === document ? B.target.documentElement : B.target, D = T.scrollLeft;
918
- 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;
919
- let F = T.scrollTop;
920
- B.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(B), r(B);
915
+ d.value && (d.value = !1, S.left = !1, S.right = !1, S.top = !1, S.bottom = !1, a(B));
916
+ }, oe = Gt(Y, t + o), O = (B) => {
917
+ const q = B.target === document ? B.target.documentElement : B.target, D = q.scrollLeft;
918
+ S.left = D < f.value, S.right = D > u.value, j.left = D <= 0 + (s.left || 0), j.right = D + q.clientWidth >= q.scrollWidth - (s.right || 0) - Pe, f.value = D;
919
+ let F = q.scrollTop;
920
+ B.target === document && !F && (F = document.body.scrollTop), S.top = F < u.value, S.bottom = F > u.value, j.top = F <= 0 + (s.top || 0), j.bottom = F + q.clientHeight >= q.scrollHeight - (s.bottom || 0) - Pe, u.value = F, d.value = !0, oe(B), r(B);
921
921
  };
922
- return A(e, "scroll", l ? Ut(O, l, !0, !1) : O, a), A(e, "scrollend", Y, a), {
923
- x: m,
922
+ return A(e, "scroll", t ? Kt(O, t, !0, !1) : O, n), A(e, "scrollend", Y, n), {
923
+ x: v,
924
924
  y: i,
925
925
  isScrolling: d,
926
926
  arrivedState: j,
927
927
  directions: S
928
928
  };
929
929
  }
930
- 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) => {
931
- for (var l in t || (t = {}))
932
- jl.call(t, l) && qe(e, l, t[l]);
930
+ var Sl = Object.defineProperty, jl = Object.defineProperties, kl = Object.getOwnPropertyDescriptors, Je = Object.getOwnPropertySymbols, $l = Object.prototype.hasOwnProperty, Vl = Object.prototype.propertyIsEnumerable, Te = (e, l, t) => l in e ? Sl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, qe = (e, l) => {
931
+ for (var t in l || (l = {}))
932
+ $l.call(l, t) && Te(e, t, l[t]);
933
933
  if (Je)
934
- for (var l of Je(t))
935
- kl.call(t, l) && qe(e, l, t[l]);
934
+ for (var t of Je(l))
935
+ Vl.call(l, t) && Te(e, t, l[t]);
936
936
  return e;
937
- }, $l = (e, t) => wl(e, Sl(t));
938
- function ze(e, t, l = {}) {
939
- var o, n;
940
- const r = (o = l.direction) != null ? o : "bottom", s = X(de(e, $l(Te({}, l), {
941
- offset: Te({
942
- [r]: (n = l.distance) != null ? n : 0
943
- }, l.offset)
937
+ }, xl = (e, l) => jl(e, kl(l));
938
+ function ze(e, l, t = {}) {
939
+ var o, a;
940
+ const r = (o = t.direction) != null ? o : "bottom", s = X(de(e, xl(qe({}, t), {
941
+ offset: qe({
942
+ [r]: (a = t.distance) != null ? a : 0
943
+ }, t.offset)
944
944
  })));
945
- P(() => s.arrivedState[r], async (a) => {
945
+ C(() => s.arrivedState[r], async (n) => {
946
946
  var c, f;
947
- if (a) {
948
- const u = C(e), m = {
947
+ if (n) {
948
+ const u = P(e), v = {
949
949
  height: (c = u == null ? void 0 : u.scrollHeight) != null ? c : 0,
950
950
  width: (f = u == null ? void 0 : u.scrollWidth) != null ? f : 0
951
951
  };
952
- await t(s), l.preserveScrollPosition && u && Me(() => {
952
+ await l(s), t.preserveScrollPosition && u && Me(() => {
953
953
  u.scrollTo({
954
- top: u.scrollHeight - m.height,
955
- left: u.scrollWidth - m.width
954
+ top: u.scrollHeight - v.height,
955
+ left: u.scrollWidth - v.width
956
956
  });
957
957
  });
958
958
  }
959
959
  });
960
960
  }
961
961
  R.mounted + "";
962
- function Ae(e, t, l = {}) {
962
+ function Ae(e, l, t = {}) {
963
963
  const {
964
964
  root: o,
965
- rootMargin: n = "0px",
965
+ rootMargin: a = "0px",
966
966
  threshold: r = 0.1,
967
967
  window: s = M
968
- } = l, a = Ze(() => s && "IntersectionObserver" in s);
968
+ } = t, n = Ze(() => s && "IntersectionObserver" in s);
969
969
  let c = z;
970
- const f = a.value ? P(() => ({
970
+ const f = n.value ? C(() => ({
971
971
  el: J(e),
972
972
  root: J(o)
973
- }), ({ el: m, root: i }) => {
974
- if (c(), !m)
973
+ }), ({ el: v, root: i }) => {
974
+ if (c(), !v)
975
975
  return;
976
- const y = new IntersectionObserver(t, {
976
+ const y = new IntersectionObserver(l, {
977
977
  root: i,
978
- rootMargin: n,
978
+ rootMargin: a,
979
979
  threshold: r
980
980
  });
981
- y.observe(m), c = () => {
981
+ y.observe(v), c = () => {
982
982
  y.disconnect(), c = z;
983
983
  };
984
984
  }, { immediate: !0, flush: "post" }) : z, u = () => {
985
985
  c(), f();
986
986
  };
987
987
  return G(u), {
988
- isSupported: a,
988
+ isSupported: n,
989
989
  stop: u
990
990
  };
991
991
  }
992
992
  R.mounted + "";
993
- 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) => {
994
- for (var l in t || (t = {}))
995
- Il.call(t, l) && De(e, l, t[l]);
993
+ var Ol = Object.defineProperty, Il = Object.defineProperties, Bl = Object.getOwnPropertyDescriptors, Fe = Object.getOwnPropertySymbols, El = Object.prototype.hasOwnProperty, Ll = Object.prototype.propertyIsEnumerable, De = (e, l, t) => l in e ? Ol(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Cl = (e, l) => {
994
+ for (var t in l || (l = {}))
995
+ El.call(l, t) && De(e, t, l[t]);
996
996
  if (Fe)
997
- for (var l of Fe(t))
998
- Bl.call(t, l) && De(e, l, t[l]);
997
+ for (var t of Fe(l))
998
+ Ll.call(l, t) && De(e, t, l[t]);
999
999
  return e;
1000
- }, El = (e, t) => xl(e, Ol(t));
1000
+ }, Pl = (e, l) => Il(e, Bl(l));
1001
1001
  R.mounted + "";
1002
1002
  function Ye(e) {
1003
- const t = window.getComputedStyle(e);
1004
- if (t.overflowX === "scroll" || t.overflowY === "scroll" || t.overflowX === "auto" && e.clientHeight < e.scrollHeight || t.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1003
+ const l = window.getComputedStyle(e);
1004
+ if (l.overflowX === "scroll" || l.overflowY === "scroll" || l.overflowX === "auto" && e.clientHeight < e.scrollHeight || l.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1005
1005
  return !0;
1006
1006
  {
1007
- const l = e.parentNode;
1008
- return !l || l.tagName === "BODY" ? !1 : Ye(l);
1007
+ const t = e.parentNode;
1008
+ return !t || t.tagName === "BODY" ? !1 : Ye(t);
1009
1009
  }
1010
1010
  }
1011
- function Pl(e) {
1012
- const t = e || window.event, l = t.target;
1013
- return Ye(l) ? !1 : t.touches.length > 1 ? !0 : (t.preventDefault && t.preventDefault(), !1);
1011
+ function Jl(e) {
1012
+ const l = e || window.event, t = l.target;
1013
+ return Ye(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1014
1014
  }
1015
- function Cl(e, t = !1) {
1016
- const l = g(t);
1017
- let o = null, n;
1018
- P(Gt(e), (a) => {
1019
- if (a) {
1020
- const c = a;
1021
- n = c.style.overflow, l.value && (c.style.overflow = "hidden");
1015
+ function Tl(e, l = !1) {
1016
+ const t = g(l);
1017
+ let o = null, a;
1018
+ C(Qt(e), (n) => {
1019
+ if (n) {
1020
+ const c = n;
1021
+ a = c.style.overflow, t.value && (c.style.overflow = "hidden");
1022
1022
  }
1023
1023
  }, {
1024
1024
  immediate: !0
1025
1025
  });
1026
1026
  const r = () => {
1027
- const a = C(e);
1028
- !a || l.value || (ee && (o = A(a, "touchmove", (c) => {
1029
- Pl(c);
1030
- }, { passive: !1 })), a.style.overflow = "hidden", l.value = !0);
1027
+ const n = P(e);
1028
+ !n || t.value || (ee && (o = A(n, "touchmove", (c) => {
1029
+ Jl(c);
1030
+ }, { passive: !1 })), n.style.overflow = "hidden", t.value = !0);
1031
1031
  }, s = () => {
1032
- const a = C(e);
1033
- !a || !l.value || (ee && (o == null || o()), a.style.overflow = n, l.value = !1);
1032
+ const n = P(e);
1033
+ !n || !t.value || (ee && (o == null || o()), n.style.overflow = a, t.value = !1);
1034
1034
  };
1035
1035
  return G(s), I({
1036
1036
  get() {
1037
- return l.value;
1037
+ return t.value;
1038
1038
  },
1039
- set(a) {
1040
- a ? r() : s();
1039
+ set(n) {
1040
+ n ? r() : s();
1041
1041
  }
1042
1042
  });
1043
1043
  }
1044
- const Jl = () => {
1044
+ const ql = () => {
1045
1045
  let e = !1;
1046
- const t = g(!1);
1047
- return (l, o) => {
1048
- if (t.value = o.value, e)
1046
+ const l = g(!1);
1047
+ return (t, o) => {
1048
+ if (l.value = o.value, e)
1049
1049
  return;
1050
1050
  e = !0;
1051
- const n = Cl(l, o.value);
1052
- P(t, (r) => n.value = r);
1051
+ const a = Tl(t, o.value);
1052
+ C(l, (r) => a.value = r);
1053
1053
  };
1054
1054
  };
1055
- Jl();
1056
- const Xe = ["medium", "small"], ql = {
1055
+ ql();
1056
+ const Xe = ["medium", "small"], zl = {
1057
1057
  key: 0,
1058
1058
  class: "joy-dropdown-list__header"
1059
- }, Tl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], zl = {
1059
+ }, Al = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Fl = {
1060
1060
  key: 1,
1061
1061
  class: "joy-dropdown-list__footer"
1062
- }, Al = /* @__PURE__ */ $({
1062
+ }, Dl = /* @__PURE__ */ $({
1063
1063
  __name: "VJoyDropdownList",
1064
1064
  props: {
1065
1065
  /**
@@ -1068,7 +1068,7 @@ const Xe = ["medium", "small"], ql = {
1068
1068
  options: {
1069
1069
  type: Array,
1070
1070
  validator(e) {
1071
- return e.every((t) => Object.keys(t).includes("value") || Object.keys(t).includes("id"));
1071
+ return e.every((l) => Object.keys(l).includes("value") || Object.keys(l).includes("id"));
1072
1072
  },
1073
1073
  default() {
1074
1074
  return [];
@@ -1094,71 +1094,71 @@ const Xe = ["medium", "small"], ql = {
1094
1094
  }
1095
1095
  },
1096
1096
  emits: ["update:modelValue", "close:dropdownList"],
1097
- setup(e, { expose: t, emit: l }) {
1098
- const o = e, n = g(), r = I(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1097
+ setup(e, { expose: l, emit: t }) {
1098
+ const o = e, a = g(), r = I(() => (i) => !o.modelValue && !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1099
1099
  function s(i) {
1100
- i.disabled || l("update:modelValue", i.value || i.id);
1100
+ i.disabled || t("update:modelValue", i.value || i.id);
1101
1101
  }
1102
- function a() {
1102
+ function n() {
1103
1103
  var i;
1104
- return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1104
+ return Array.from(((i = a.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1105
1105
  }
1106
1106
  function c() {
1107
- const i = a().find((y) => y.getAttribute("aria-selected") === "true");
1108
- i && (i.focus(), n.value.scrollTo({
1107
+ const i = n().find((y) => y.getAttribute("aria-selected") === "true");
1108
+ i && (i.focus(), a.value.scrollTo({
1109
1109
  top: i.offsetTop
1110
1110
  }));
1111
1111
  }
1112
1112
  function f() {
1113
- return a().find((i) => i === document.activeElement);
1113
+ return n().find((i) => i === document.activeElement);
1114
1114
  }
1115
1115
  function u(i) {
1116
1116
  var y;
1117
- 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())))) {
1117
+ if ((i.key === "Escape" || i.key === "Tab") && t("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), f() && ((y = a.value) != null && y.contains(f())))) {
1118
1118
  const d = f();
1119
1119
  if (!d)
1120
1120
  return;
1121
1121
  if (d.querySelector("a"))
1122
1122
  return d.querySelector("a").click();
1123
- l("update:modelValue", d.dataModel);
1123
+ t("update:modelValue", d.dataModel);
1124
1124
  }
1125
1125
  if (i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1126
- const d = a(), j = f();
1126
+ const d = n(), j = f();
1127
1127
  let S = d.indexOf(j);
1128
1128
  if (d.length) {
1129
- i.preventDefault(), i.key === "ArrowDown" ? S++ : i.key === "ArrowUp" ? S-- : i.key === "Home" ? S = 0 : i.key === "End" && (S = d.length - 1), S < 0 && (S = d.length - 1), S > d.length - 1 && (S = 0), m(d[S]);
1129
+ 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]);
1130
1130
  return;
1131
1131
  }
1132
1132
  }
1133
1133
  }
1134
- function m(i) {
1134
+ function v(i) {
1135
1135
  i.focus();
1136
1136
  }
1137
1137
  return Z(() => {
1138
1138
  window.addEventListener("keydown", u), c();
1139
1139
  }), Ne(() => {
1140
1140
  window.removeEventListener("keydown", u);
1141
- }), t({
1141
+ }), l({
1142
1142
  isSelected: r
1143
- }), (i, y) => (v(), p("div", {
1143
+ }), (i, y) => (m(), p("div", {
1144
1144
  class: "joy-dropdown-list",
1145
1145
  style: K({ width: `${e.width}px`, "max-width": `${e.width}px` })
1146
1146
  }, [
1147
- i.$slots["dropdown-list-header"] ? (v(), p("header", ql, [
1147
+ i.$slots["dropdown-list-header"] ? (m(), p("header", zl, [
1148
1148
  b(i.$slots, "dropdown-list-header", {}, void 0, !0)
1149
- ])) : _("", !0),
1149
+ ])) : w("", !0),
1150
1150
  h("div", {
1151
1151
  class: k(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1152
1152
  style: K({ "max-height": `${e.height}px` })
1153
1153
  }, [
1154
1154
  b(i.$slots, "dropdown-list-items", {}, void 0, !0),
1155
- e.options.length ? (v(), p("ul", {
1155
+ e.options.length ? (m(), p("ul", {
1156
1156
  key: 0,
1157
1157
  ref_key: "listbox",
1158
- ref: n,
1158
+ ref: a,
1159
1159
  role: "listbox"
1160
1160
  }, [
1161
- (v(!0), p(ye, null, me(e.options, (d) => (v(), p("li", {
1161
+ (m(!0), p(ye, null, ve(e.options, (d) => (m(), p("li", {
1162
1162
  id: d.id,
1163
1163
  key: d.label,
1164
1164
  style: K({ "max-width": `${e.width}px` }),
@@ -1166,41 +1166,41 @@ const Xe = ["medium", "small"], ql = {
1166
1166
  "joy-dropdown-list__item",
1167
1167
  `joy-dropdown-list__item--${e.size}`,
1168
1168
  {
1169
- "joy-dropdown-list__item--selected": w(r)(d),
1169
+ "joy-dropdown-list__item--selected": _(r)(d),
1170
1170
  "joy-dropdown-list__item--disabled": d.disabled
1171
1171
  }
1172
1172
  ]),
1173
1173
  tabindex: d.disabled ? void 0 : 0,
1174
1174
  "aria-disabled": d.disabled,
1175
- "aria-selected": w(r)(d),
1175
+ "aria-selected": _(r)(d),
1176
1176
  title: d.label,
1177
1177
  "aria-label": d.label,
1178
1178
  ".dataModel": d.value || d.id,
1179
1179
  role: "option",
1180
1180
  onClick: (j) => s(d)
1181
1181
  }, [
1182
- b(i.$slots, "label", ve(pe(d)), () => [
1182
+ b(i.$slots, "label", me(pe(d)), () => [
1183
1183
  h("span", null, x(d.label), 1)
1184
1184
  ], !0)
1185
- ], 14, Tl))), 128))
1186
- ], 512)) : _("", !0)
1185
+ ], 14, Al))), 128))
1186
+ ], 512)) : w("", !0)
1187
1187
  ], 6),
1188
- i.$slots["dropdown-list-footer"] ? (v(), p("footer", zl, [
1188
+ i.$slots["dropdown-list-footer"] ? (m(), p("footer", Fl, [
1189
1189
  b(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1190
- ])) : _("", !0)
1190
+ ])) : w("", !0)
1191
1191
  ], 4));
1192
1192
  }
1193
1193
  });
1194
- const et = /* @__PURE__ */ V(Al, [["__scopeId", "data-v-63134a7f"]]);
1195
- function Fl(e) {
1196
- const t = () => e();
1194
+ const et = /* @__PURE__ */ V(Dl, [["__scopeId", "data-v-63134a7f"]]);
1195
+ function Rl(e) {
1196
+ const l = () => e();
1197
1197
  Z(() => {
1198
- window.addEventListener("resize", t);
1198
+ window.addEventListener("resize", l);
1199
1199
  }), Ne(() => {
1200
- window.removeEventListener("resize", t);
1200
+ window.removeEventListener("resize", l);
1201
1201
  });
1202
1202
  }
1203
- const Dl = /* @__PURE__ */ $({
1203
+ const Ml = /* @__PURE__ */ $({
1204
1204
  __name: "VJoyDropdown",
1205
1205
  props: {
1206
1206
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1238,7 +1238,7 @@ const Dl = /* @__PURE__ */ $({
1238
1238
  options: {
1239
1239
  type: Array,
1240
1240
  validator(e) {
1241
- return e.every((l) => Object.keys(l).includes("label"));
1241
+ return e.every((t) => Object.keys(t).includes("label"));
1242
1242
  },
1243
1243
  default() {
1244
1244
  return [];
@@ -1278,23 +1278,23 @@ const Dl = /* @__PURE__ */ $({
1278
1278
  }
1279
1279
  },
1280
1280
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1281
- setup(e, { expose: t, emit: l }) {
1282
- const o = e, n = g(!1), r = g(null), s = g(), a = g(null), c = g(null), f = g(!1), u = {
1281
+ setup(e, { expose: l, emit: t }) {
1282
+ const o = e, a = g(!1), r = g(null), s = g(), n = g(null), c = g(null), f = g(!1), u = {
1283
1283
  ignore: [s, ".joy-dropdown__list"]
1284
1284
  };
1285
- let m = null;
1285
+ let v = null;
1286
1286
  const i = X({
1287
1287
  left: "auto",
1288
1288
  top: "0px",
1289
1289
  right: "auto"
1290
1290
  });
1291
1291
  function y() {
1292
- m && clearTimeout(m), f.value = !0, m = setTimeout(() => {
1293
- n.value = !1, f.value = !1, l("dropdown:hide");
1292
+ v && clearTimeout(v), f.value = !0, v = setTimeout(() => {
1293
+ a.value = !1, f.value = !1, t("dropdown:hide");
1294
1294
  }, 300);
1295
1295
  }
1296
1296
  function d(O) {
1297
- f.value = !1, m && clearTimeout(m), Y(), c.value = O.target, n.value = !0, l("dropdown:open");
1297
+ f.value = !1, v && clearTimeout(v), Y(), c.value = O.target, a.value = !0, t("dropdown:open");
1298
1298
  }
1299
1299
  function j() {
1300
1300
  y(), S();
@@ -1303,22 +1303,22 @@ const Dl = /* @__PURE__ */ $({
1303
1303
  c.value && c.value.focus();
1304
1304
  }
1305
1305
  function Y() {
1306
- const O = s.value.getBoundingClientRect(), B = document.documentElement.scrollTop + O.top, T = O.height, D = O.left, F = O.width;
1307
- o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = B + T + parseInt(o.dropdownGap) + "px" : i.top = B - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1306
+ const O = s.value.getBoundingClientRect(), B = document.documentElement.scrollTop + O.top, q = O.height, D = O.left, F = O.width;
1307
+ o.justify === "left" ? i.left = D + "px" : i.left = D + F - parseInt(o.width) + "px", o.direction === "down" ? i.top = B + q + parseInt(o.dropdownGap) + "px" : i.top = B - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1308
1308
  }
1309
1309
  function oe(O) {
1310
- l("update:modelValue", O), o.closeOnSelect && (y(), S());
1310
+ t("update:modelValue", O), o.closeOnSelect && (y(), S());
1311
1311
  }
1312
- return Fl(y), t({
1313
- showDropdownList: n
1314
- }), (O, B) => (v(), q(w(rl), {
1312
+ return Rl(y), l({
1313
+ showDropdownList: a
1314
+ }), (O, B) => (m(), T(_(ul), {
1315
1315
  ref_key: "dropdown",
1316
1316
  ref: r,
1317
1317
  options: u,
1318
1318
  class: "joy-dropdown",
1319
1319
  onTrigger: y
1320
1320
  }, {
1321
- default: L(() => [
1321
+ default: E(() => [
1322
1322
  h("div", {
1323
1323
  ref_key: "button",
1324
1324
  ref: s,
@@ -1327,14 +1327,14 @@ const Dl = /* @__PURE__ */ $({
1327
1327
  }, [
1328
1328
  b(O.$slots, "dropdown-button", {}, void 0, !0)
1329
1329
  ], 512),
1330
- (v(), q(st, {
1330
+ (m(), T(st, {
1331
1331
  to: e.appendTo,
1332
1332
  disabled: e.disableTeleport
1333
1333
  }, [
1334
- n.value ? (v(), p("div", {
1334
+ a.value ? (m(), p("div", {
1335
1335
  key: 0,
1336
1336
  ref_key: "list",
1337
- ref: a,
1337
+ ref: n,
1338
1338
  class: k([
1339
1339
  "joy-dropdown__list",
1340
1340
  `joy-dropdown__list--${e.direction}`,
@@ -1357,46 +1357,46 @@ const Dl = /* @__PURE__ */ $({
1357
1357
  "onUpdate:modelValue": oe,
1358
1358
  "onClose:dropdownList": j
1359
1359
  }, He({
1360
- label: L((T) => [
1361
- b(O.$slots, "dropdown-item", ve(pe(T)), () => [
1362
- h("span", null, x(T.label), 1)
1360
+ label: E((q) => [
1361
+ b(O.$slots, "dropdown-item", me(pe(q)), () => [
1362
+ h("span", null, x(q.label), 1)
1363
1363
  ], !0)
1364
1364
  ]),
1365
1365
  _: 2
1366
1366
  }, [
1367
1367
  O.$slots["dropdown-header"] ? {
1368
1368
  name: "dropdown-list-header",
1369
- fn: L(() => [
1369
+ fn: E(() => [
1370
1370
  b(O.$slots, "dropdown-header", {}, void 0, !0)
1371
1371
  ]),
1372
1372
  key: "0"
1373
1373
  } : void 0,
1374
1374
  O.$slots["dropdown-items"] ? {
1375
1375
  name: "dropdown-list-items",
1376
- fn: L(() => [
1376
+ fn: E(() => [
1377
1377
  b(O.$slots, "dropdown-items", {}, void 0, !0)
1378
1378
  ]),
1379
1379
  key: "1"
1380
1380
  } : void 0,
1381
1381
  O.$slots["dropdown-footer"] ? {
1382
1382
  name: "dropdown-list-footer",
1383
- fn: L(() => [
1383
+ fn: E(() => [
1384
1384
  b(O.$slots, "dropdown-footer", {}, void 0, !0)
1385
1385
  ]),
1386
1386
  key: "2"
1387
1387
  } : void 0
1388
1388
  ]), 1032, ["model-value", "options", "size", "width", "height"])
1389
- ], 6)) : _("", !0)
1389
+ ], 6)) : w("", !0)
1390
1390
  ], 8, ["to", "disabled"]))
1391
1391
  ]),
1392
1392
  _: 3
1393
1393
  }, 512));
1394
1394
  }
1395
1395
  });
1396
- const Rl = /* @__PURE__ */ V(Dl, [["__scopeId", "data-v-2657fbc4"]]), Ml = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Nl = ["aria-hidden"], Hl = /* @__PURE__ */ Ml(() => /* @__PURE__ */ h("joy-icon", {
1396
+ const Nl = /* @__PURE__ */ V(Ml, [["__scopeId", "data-v-2657fbc4"]]), Hl = (e) => (te("data-v-50e209d6"), e = e(), le(), e), Wl = ["aria-hidden"], Ul = /* @__PURE__ */ Hl(() => /* @__PURE__ */ h("joy-icon", {
1397
1397
  "custom-class": "joy-icon-error",
1398
1398
  name: "warning-triangle"
1399
- }, null, -1)), Wl = /* @__PURE__ */ $({
1399
+ }, null, -1)), Gl = /* @__PURE__ */ $({
1400
1400
  __name: "VJoyFormError",
1401
1401
  props: {
1402
1402
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1408,36 +1408,36 @@ const Rl = /* @__PURE__ */ V(Dl, [["__scopeId", "data-v-2657fbc4"]]), Ml = (e) =
1408
1408
  noHtmlErrorText: String
1409
1409
  },
1410
1410
  setup(e) {
1411
- return (t, l) => (v(), p("div", {
1411
+ return (l, t) => (m(), p("div", {
1412
1412
  "aria-hidden": e.visible,
1413
1413
  class: k(["joy-form-error", { "joy-has-error": e.visible }]),
1414
1414
  role: "alert"
1415
1415
  }, [
1416
- Hl,
1416
+ Ul,
1417
1417
  h("div", null, [
1418
- b(t.$slots, "default", {}, () => [
1419
- E(x(e.noHtmlErrorText), 1)
1418
+ b(l.$slots, "default", {}, () => [
1419
+ L(x(e.noHtmlErrorText), 1)
1420
1420
  ], !0)
1421
1421
  ])
1422
- ], 10, Nl));
1422
+ ], 10, Wl));
1423
1423
  }
1424
1424
  });
1425
- const tt = /* @__PURE__ */ V(Wl, [["__scopeId", "data-v-50e209d6"]]);
1426
- function Ul(e) {
1427
- let t;
1425
+ const tt = /* @__PURE__ */ V(Gl, [["__scopeId", "data-v-50e209d6"]]);
1426
+ function Kl(e) {
1427
+ let l;
1428
1428
  switch (e) {
1429
1429
  case "error":
1430
- t = "warning-triangle";
1430
+ l = "warning-triangle";
1431
1431
  break;
1432
1432
  case "success":
1433
- t = "check";
1433
+ l = "check";
1434
1434
  break;
1435
1435
  default:
1436
- t = "info-circle";
1436
+ l = "info-circle";
1437
1437
  }
1438
- return t;
1438
+ return l;
1439
1439
  }
1440
- const Gl = [...pt], Kl = ["name"], Ql = { class: "joy-highlight--text" }, Zl = /* @__PURE__ */ $({
1440
+ const Ql = [...bt], Zl = ["name"], Yl = { class: "joy-highlight--text" }, Xl = /* @__PURE__ */ $({
1441
1441
  __name: "VJoyHighlight",
1442
1442
  props: {
1443
1443
  accent: {
@@ -1453,51 +1453,51 @@ const Gl = [...pt], Kl = ["name"], Ql = { class: "joy-highlight--text" }, Zl = /
1453
1453
  type: String,
1454
1454
  default: "neutral",
1455
1455
  validator(e) {
1456
- return Gl.includes(e);
1456
+ return Ql.includes(e);
1457
1457
  }
1458
1458
  }
1459
1459
  },
1460
- setup(e, { expose: t }) {
1461
- const l = e, o = I(() => l.icon ? l.icon : Ul(l.level));
1462
- return t({
1460
+ setup(e, { expose: l }) {
1461
+ const t = e, o = I(() => t.icon ? t.icon : Kl(t.level));
1462
+ return l({
1463
1463
  getRelevantIcon: o
1464
- }), (n, r) => (v(), p("div", {
1464
+ }), (a, r) => (m(), p("div", {
1465
1465
  class: k([
1466
1466
  "joy-highlight",
1467
1467
  `joy-highlight_${e.level}`,
1468
1468
  {
1469
1469
  "joy-highlight__accent": e.accent,
1470
- "joy-highlight__titled": n.$slots["highlight-title"]
1470
+ "joy-highlight__titled": a.$slots["highlight-title"]
1471
1471
  }
1472
1472
  ])
1473
1473
  }, [
1474
- e.displayIcon ? (v(), p("joy-icon", {
1474
+ e.displayIcon ? (m(), p("joy-icon", {
1475
1475
  key: 0,
1476
- name: w(o)
1477
- }, null, 8, Kl)) : _("", !0),
1478
- h("div", Ql, [
1476
+ name: _(o)
1477
+ }, null, 8, Zl)) : w("", !0),
1478
+ h("div", Yl, [
1479
1479
  h("strong", null, [
1480
- b(n.$slots, "highlight-title", {}, void 0, !0)
1480
+ b(a.$slots, "highlight-title", {}, void 0, !0)
1481
1481
  ]),
1482
- b(n.$slots, "default", {}, void 0, !0)
1482
+ b(a.$slots, "default", {}, void 0, !0)
1483
1483
  ])
1484
1484
  ], 2));
1485
1485
  }
1486
1486
  });
1487
- const Yl = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-a0ff7a60"]]), Xl = ["small", "medium", "large"], eo = {
1487
+ const eo = /* @__PURE__ */ V(Xl, [["__scopeId", "data-v-a0ff7a60"]]), to = ["small", "medium", "large"], lo = {
1488
1488
  key: 0,
1489
1489
  class: "joy-label-required"
1490
- }, to = {
1490
+ }, oo = {
1491
1491
  key: 1,
1492
1492
  class: "joy-label-optional"
1493
- }, lo = /* @__PURE__ */ $({
1493
+ }, no = /* @__PURE__ */ $({
1494
1494
  __name: "VJoyLabel",
1495
1495
  props: {
1496
1496
  size: {
1497
1497
  type: String,
1498
1498
  default: "medium",
1499
1499
  validator(e) {
1500
- return Xl.includes(e);
1500
+ return to.includes(e);
1501
1501
  }
1502
1502
  },
1503
1503
  tagName: {
@@ -1514,21 +1514,21 @@ const Yl = /* @__PURE__ */ V(Zl, [["__scopeId", "data-v-a0ff7a60"]]), Xl = ["sma
1514
1514
  text: String
1515
1515
  },
1516
1516
  setup(e) {
1517
- return (t, l) => (v(), q(ce(e.tagName), Q({
1517
+ return (l, t) => (m(), T(ce(e.tagName), Q({
1518
1518
  class: ["joy-label", `joy-label--${e.size}`]
1519
- }, t.$attrs), {
1520
- default: L(() => [
1521
- b(t.$slots, "default", {}, () => [
1522
- E(x(e.text), 1)
1519
+ }, l.$attrs), {
1520
+ default: E(() => [
1521
+ b(l.$slots, "default", {}, () => [
1522
+ L(x(e.text), 1)
1523
1523
  ], !0),
1524
- e.required ? (v(), p("span", eo, "*")) : _("", !0),
1525
- e.optionalLabel ? (v(), p("span", to, "- " + x(e.optionalLabel), 1)) : _("", !0)
1524
+ e.required ? (m(), p("span", lo, "*")) : w("", !0),
1525
+ e.optionalLabel ? (m(), p("span", oo, "- " + x(e.optionalLabel), 1)) : w("", !0)
1526
1526
  ]),
1527
1527
  _: 3
1528
1528
  }, 16, ["class"]));
1529
1529
  }
1530
1530
  });
1531
- const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1265214a"]]), oo = ["large", "medium", "small"], no = ["id", "disabled", "type", "value"], ao = ["name"], io = ["data-unit"], ro = /* @__PURE__ */ $({
1531
+ const N = /* @__PURE__ */ V(no, [["__scopeId", "data-v-1265214a"]]), ao = ["large", "medium", "small"], io = ["id", "disabled", "type", "value"], ro = ["name"], so = ["data-unit"], uo = /* @__PURE__ */ $({
1532
1532
  __name: "VJoyInput",
1533
1533
  props: {
1534
1534
  disabled: {
@@ -1579,7 +1579,7 @@ const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1265214a"]]), oo = ["larg
1579
1579
  type: String,
1580
1580
  default: "medium",
1581
1581
  validator(e) {
1582
- return oo.includes(e);
1582
+ return ao.includes(e);
1583
1583
  }
1584
1584
  },
1585
1585
  type: String,
@@ -1587,59 +1587,59 @@ const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1265214a"]]), oo = ["larg
1587
1587
  unit: String
1588
1588
  },
1589
1589
  emits: ["update:modelValue"],
1590
- setup(e, { emit: t }) {
1591
- const l = e, o = g(), n = g(), r = Re(), s = W(), a = g(!1), c = I(() => l.clearable && l.modelValue.length > 0 && !l.unit), f = I(() => s.default && s.default()), u = I(() => {
1590
+ setup(e, { emit: l }) {
1591
+ const t = e, o = g(), a = g(), r = Re(), s = W(), n = g(!1), c = I(() => t.clearable && t.modelValue.length > 0 && !t.unit), f = I(() => s.default && s.default()), u = I(() => {
1592
1592
  var y, d;
1593
- return !!((y = n.value) != null && y.closest("joy-wrapper")) || !!((d = n.value) != null && d.closest(".joy-wrapper"));
1594
- }), m = g(l.type);
1593
+ return !!((y = a.value) != null && y.closest("joy-wrapper")) || !!((d = a.value) != null && d.closest(".joy-wrapper"));
1594
+ }), v = g(t.type);
1595
1595
  ut(() => {
1596
- m.value = l.unit ? "number" : l.unit || "text";
1596
+ v.value = t.unit ? "number" : t.unit || "text";
1597
1597
  });
1598
1598
  const i = {
1599
1599
  onFocus: () => {
1600
- a.value = !0;
1600
+ n.value = !0;
1601
1601
  },
1602
1602
  onBlur: () => {
1603
- a.value = !1;
1603
+ n.value = !1;
1604
1604
  },
1605
1605
  onInput: (y) => {
1606
1606
  let d = y.target.value;
1607
- t("update:modelValue", d);
1607
+ l("update:modelValue", d);
1608
1608
  },
1609
1609
  clearValue: () => {
1610
- l.disabled || t("update:modelValue", "");
1610
+ t.disabled || l("update:modelValue", "");
1611
1611
  }
1612
1612
  };
1613
- return (y, d) => (v(), p("div", {
1613
+ return (y, d) => (m(), p("div", {
1614
1614
  ref_key: "root",
1615
- ref: n,
1616
- class: k([`joy-input--${l.size}`])
1615
+ ref: a,
1616
+ class: k([`joy-input--${t.size}`])
1617
1617
  }, [
1618
1618
  h("div", {
1619
1619
  class: k([
1620
1620
  "joy-input",
1621
1621
  {
1622
- "joy-input--focusing": a.value,
1622
+ "joy-input--focusing": n.value,
1623
1623
  "joy-input--disabled": e.disabled,
1624
1624
  "joy-input--invalid": e.invalid,
1625
- "joy-input--valid": !e.invalid && !w(r).disabled
1625
+ "joy-input--valid": !e.invalid && !_(r).disabled
1626
1626
  }
1627
1627
  ])
1628
1628
  }, [
1629
- w(f) || e.label ? (v(), q(N, {
1629
+ _(f) || e.label ? (m(), T(N, {
1630
1630
  key: 0,
1631
1631
  for: e.name,
1632
1632
  required: e.required && e.requiredMark,
1633
1633
  "optional-label": e.optionalLabel,
1634
1634
  size: e.labelSize
1635
1635
  }, {
1636
- default: L(() => [
1636
+ default: E(() => [
1637
1637
  b(y.$slots, "default", {}, () => [
1638
- E(x(e.label), 1)
1638
+ L(x(e.label), 1)
1639
1639
  ], !0)
1640
1640
  ]),
1641
1641
  _: 3
1642
- }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
1642
+ }, 8, ["for", "required", "optional-label", "size"])) : w("", !0),
1643
1643
  h("div", {
1644
1644
  class: k([
1645
1645
  "joy-input--wrapper",
@@ -1647,12 +1647,12 @@ const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1265214a"]]), oo = ["larg
1647
1647
  "joy-input--wrapper-has-icon": !!e.icon,
1648
1648
  "joy-input--wrapper---clearable": e.clearable,
1649
1649
  "joy-input--wrapper-unit": !!e.unit,
1650
- "joy-input--wrapper-margin": !w(u)
1650
+ "joy-input--wrapper-margin": !_(u)
1651
1651
  }
1652
1652
  ])
1653
1653
  }, [
1654
1654
  h("input", Q(y.$attrs, {
1655
- id: l.name,
1655
+ id: t.name,
1656
1656
  ref_key: "input",
1657
1657
  ref: o,
1658
1658
  disabled: e.disabled,
@@ -1662,7 +1662,7 @@ const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1265214a"]]), oo = ["larg
1662
1662
  "joy-input--field-invalid": e.invalid
1663
1663
  }
1664
1664
  ],
1665
- type: m.value,
1665
+ type: v.value,
1666
1666
  value: e.modelValue,
1667
1667
  onFocus: d[0] || (d[0] = //@ts-ignore
1668
1668
  (...j) => i.onFocus && i.onFocus(...j)),
@@ -1670,32 +1670,32 @@ const N = /* @__PURE__ */ V(lo, [["__scopeId", "data-v-1265214a"]]), oo = ["larg
1670
1670
  (...j) => i.onBlur && i.onBlur(...j)),
1671
1671
  onInput: d[2] || (d[2] = //@ts-ignore
1672
1672
  (...j) => i.onInput && i.onInput(...j))
1673
- }), null, 16, no),
1674
- w(c) ? (v(), p("joy-icon", {
1673
+ }), null, 16, io),
1674
+ _(c) ? (m(), p("joy-icon", {
1675
1675
  key: 0,
1676
1676
  size: "xxsmall",
1677
1677
  name: "cross",
1678
1678
  class: "joy-input--clear",
1679
1679
  onClick: d[3] || (d[3] = //@ts-ignore
1680
1680
  (...j) => i.clearValue && i.clearValue(...j))
1681
- })) : _("", !0),
1682
- e.icon && !e.clearable ? (v(), p("joy-icon", {
1681
+ })) : w("", !0),
1682
+ e.icon && !e.clearable ? (m(), p("joy-icon", {
1683
1683
  key: 1,
1684
1684
  role: "img",
1685
1685
  class: "joy-input--decorative-icon",
1686
1686
  name: e.icon
1687
- }, null, 8, ao)) : _("", !0),
1688
- e.unit ? (v(), p("div", {
1687
+ }, null, 8, ro)) : w("", !0),
1688
+ e.unit ? (m(), p("div", {
1689
1689
  key: 2,
1690
1690
  "data-unit": e.unit,
1691
1691
  class: "joy-input--unit"
1692
- }, null, 8, io)) : _("", !0)
1692
+ }, null, 8, so)) : w("", !0)
1693
1693
  ], 2)
1694
1694
  ], 2)
1695
1695
  ], 2));
1696
1696
  }
1697
1697
  });
1698
- const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-8258d6d7"]]), uo = ["teal", "white"], co = ["href"], fo = ["color", "name"], yo = /* @__PURE__ */ $({
1698
+ const co = /* @__PURE__ */ V(uo, [["__scopeId", "data-v-8258d6d7"]]), fo = ["teal", "white"], yo = ["href"], vo = ["color", "name"], mo = /* @__PURE__ */ $({
1699
1699
  __name: "VJoyLink",
1700
1700
  props: {
1701
1701
  href: {
@@ -1706,39 +1706,39 @@ const so = /* @__PURE__ */ V(ro, [["__scopeId", "data-v-8258d6d7"]]), uo = ["tea
1706
1706
  type: String,
1707
1707
  default: "teal",
1708
1708
  validator(e) {
1709
- return uo.includes(e);
1709
+ return fo.includes(e);
1710
1710
  }
1711
1711
  },
1712
1712
  icon: String,
1713
1713
  text: String
1714
1714
  },
1715
1715
  setup(e) {
1716
- const t = e, l = I(() => t.color === "white" ? "white" : "teal");
1717
- return (o, n) => (v(), p("a", Q({ href: e.href }, o.$attrs, {
1716
+ const l = e, t = I(() => l.color === "white" ? "white" : "teal");
1717
+ return (o, a) => (m(), p("a", Q({ href: e.href }, o.$attrs, {
1718
1718
  class: ["joy-link", `joy-link_${e.color}`]
1719
1719
  }), [
1720
- e.icon ? (v(), p("joy-icon", {
1720
+ e.icon ? (m(), p("joy-icon", {
1721
1721
  key: 0,
1722
- color: w(l),
1722
+ color: _(t),
1723
1723
  name: e.icon
1724
- }, null, 8, fo)) : _("", !0),
1724
+ }, null, 8, vo)) : w("", !0),
1725
1725
  b(o.$slots, "default", {}, () => [
1726
- E(x(e.text), 1)
1726
+ L(x(e.text), 1)
1727
1727
  ], !0)
1728
- ], 16, co));
1728
+ ], 16, yo));
1729
1729
  }
1730
1730
  });
1731
- const mo = /* @__PURE__ */ V(yo, [["__scopeId", "data-v-920769ba"]]), vo = ["id"], po = {
1731
+ const po = /* @__PURE__ */ V(mo, [["__scopeId", "data-v-920769ba"]]), ho = ["id"], bo = {
1732
1732
  class: /* @__PURE__ */ k(["joy-multi-checkbox"])
1733
- }, ho = /* @__PURE__ */ $({
1733
+ }, go = /* @__PURE__ */ $({
1734
1734
  __name: "VJoyMultiCheckbox",
1735
1735
  props: {
1736
1736
  options: {
1737
1737
  type: Array,
1738
1738
  required: !0,
1739
1739
  validator(e) {
1740
- const t = e.every((o) => Object.keys(o).includes("value")), l = e.every((o) => Object.keys(o).includes("label"));
1741
- return t && l;
1740
+ const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
1741
+ return l && t;
1742
1742
  }
1743
1743
  },
1744
1744
  id: String,
@@ -1764,67 +1764,64 @@ const mo = /* @__PURE__ */ V(yo, [["__scopeId", "data-v-920769ba"]]), vo = ["id"
1764
1764
  }
1765
1765
  },
1766
1766
  emits: ["update:value"],
1767
- setup(e, { emit: t }) {
1768
- const l = e;
1767
+ setup(e, { emit: l }) {
1768
+ const t = e;
1769
1769
  function o(r) {
1770
- return l.value.includes(r.value);
1770
+ return t.value.includes(r.value);
1771
1771
  }
1772
- function n(r, s) {
1773
- let a = [...l.value || []];
1774
- s ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
1772
+ function a(r, s) {
1773
+ let n = [...t.value || []];
1774
+ s ? n.push(r) : n.splice(n.indexOf(r), 1), l("update:value", n);
1775
1775
  }
1776
- return (r, s) => (v(), p("fieldset", {
1776
+ return (r, s) => (m(), p("fieldset", {
1777
1777
  id: e.id,
1778
1778
  class: "joy-multi-checkbox__wrapper"
1779
1779
  }, [
1780
- e.label ? (v(), q(w(N), {
1780
+ e.label ? (m(), T(_(N), {
1781
1781
  key: 0,
1782
1782
  "tag-name": "legend",
1783
1783
  required: e.required && e.requiredMark,
1784
1784
  "optional-label": e.optionalLabel,
1785
1785
  size: e.labelSize
1786
1786
  }, {
1787
- default: L(() => [
1788
- E(x(e.label), 1)
1787
+ default: E(() => [
1788
+ L(x(e.label), 1)
1789
1789
  ]),
1790
1790
  _: 1
1791
- }, 8, ["required", "optional-label", "size"])) : _("", !0),
1792
- h("div", po, [
1793
- (v(!0), p(ye, null, me(e.options, (a) => (v(), q(w(he), {
1794
- id: a.id,
1795
- key: a.id,
1796
- name: a.name,
1797
- value: a.value,
1798
- checked: o(a),
1799
- "onUpdate:checked": (c) => n(a.value, c)
1791
+ }, 8, ["required", "optional-label", "size"])) : w("", !0),
1792
+ h("div", bo, [
1793
+ (m(!0), p(ye, null, ve(e.options, (n) => (m(), T(_(he), {
1794
+ id: n.id,
1795
+ key: n.id,
1796
+ name: n.name,
1797
+ value: n.value,
1798
+ checked: o(n),
1799
+ "onUpdate:checked": (c) => a(n.value, c)
1800
1800
  }, {
1801
- default: L(() => [
1802
- b(r.$slots, "checkbox", ve(pe(a)), () => [
1803
- E(x(a.label), 1)
1801
+ default: E(() => [
1802
+ b(r.$slots, "checkbox", me(pe(n)), () => [
1803
+ L(x(n.label), 1)
1804
1804
  ], !0)
1805
1805
  ]),
1806
1806
  _: 2
1807
1807
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
1808
1808
  ])
1809
- ], 8, vo));
1809
+ ], 8, ho));
1810
1810
  }
1811
1811
  });
1812
- const bo = /* @__PURE__ */ V(ho, [["__scopeId", "data-v-47574ced"]]), go = ["small", "medium", "large"], _o = {
1812
+ const _o = /* @__PURE__ */ V(go, [["__scopeId", "data-v-47574ced"]]), wo = ["small", "medium", "large"], So = ["small", "large"], jo = {
1813
1813
  key: 0,
1814
1814
  class: /* @__PURE__ */ k(["joy-panel__header"])
1815
- }, wo = {
1816
- key: 0,
1817
- class: "joy-panel__header-title"
1818
- }, So = {
1815
+ }, ko = {
1819
1816
  key: 1,
1820
1817
  class: "joy-panel__header-action"
1821
- }, jo = {
1818
+ }, $o = {
1822
1819
  key: 2,
1823
1820
  class: "joy-panel__header-subtitle"
1824
- }, ko = { class: "joy-panel__body" }, $o = {
1821
+ }, Vo = { class: "joy-panel__body" }, xo = {
1825
1822
  key: 1,
1826
1823
  class: "joy-panel__footer"
1827
- }, Vo = /* @__PURE__ */ $({
1824
+ }, Oo = /* @__PURE__ */ $({
1828
1825
  __name: "VJoyPanel",
1829
1826
  props: {
1830
1827
  flex: {
@@ -1838,59 +1835,75 @@ const bo = /* @__PURE__ */ V(ho, [["__scopeId", "data-v-47574ced"]]), go = ["sma
1838
1835
  type: String,
1839
1836
  default: "medium",
1840
1837
  validator(e) {
1841
- return go.includes(e);
1838
+ return wo.includes(e);
1839
+ }
1840
+ },
1841
+ titleSize: {
1842
+ type: String,
1843
+ default: "large",
1844
+ validator(e) {
1845
+ return So.includes(e);
1842
1846
  }
1843
1847
  }
1844
1848
  },
1845
1849
  setup(e) {
1846
- const t = W(), l = g(), o = I(() => t["panel-title"] || t["panel-subtitle"] || t["panel-title-action"]);
1847
- return (n, r) => (v(), p("section", {
1850
+ const l = dt("VJoyWrapperContext", {}), t = I(() => Object.keys(l).length > 0), o = W(), a = g(), r = I(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
1851
+ return (s, n) => (m(), p("section", {
1848
1852
  ref_key: "panel",
1849
- ref: l,
1853
+ ref: a,
1850
1854
  style: K({ flex: e.flex }),
1851
- class: k(["joy-panel", `joy-panel--${e.padding}`, { "joy-panel--no-margin": e.noMargin }])
1855
+ class: k([
1856
+ "joy-panel",
1857
+ `joy-panel--${e.padding}`,
1858
+ {
1859
+ "joy-panel--no-margin": e.noMargin || _(t)
1860
+ }
1861
+ ])
1852
1862
  }, [
1853
- w(o) ? (v(), p("header", _o, [
1854
- w(t)["panel-title"] ? (v(), p("div", wo, [
1855
- b(n.$slots, "panel-title", {}, void 0, !0)
1856
- ])) : _("", !0),
1857
- w(t)["panel-title-action"] ? (v(), p("div", So, [
1858
- b(n.$slots, "panel-title-action", {}, void 0, !0)
1859
- ])) : _("", !0),
1860
- w(t)["panel-subtitle"] ? (v(), p("div", jo, [
1861
- b(n.$slots, "panel-subtitle", {}, void 0, !0)
1862
- ])) : _("", !0)
1863
- ])) : _("", !0),
1864
- h("div", ko, [
1865
- b(n.$slots, "panel-body", {}, void 0, !0)
1863
+ _(r) ? (m(), p("header", jo, [
1864
+ _(o)["panel-title"] ? (m(), p("div", {
1865
+ key: 0,
1866
+ class: k(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
1867
+ }, [
1868
+ b(s.$slots, "panel-title", {}, void 0, !0)
1869
+ ], 2)) : w("", !0),
1870
+ _(o)["panel-title-action"] ? (m(), p("div", ko, [
1871
+ b(s.$slots, "panel-title-action", {}, void 0, !0)
1872
+ ])) : w("", !0),
1873
+ _(o)["panel-subtitle"] ? (m(), p("div", $o, [
1874
+ b(s.$slots, "panel-subtitle", {}, void 0, !0)
1875
+ ])) : w("", !0)
1876
+ ])) : w("", !0),
1877
+ h("div", Vo, [
1878
+ b(s.$slots, "panel-body", {}, void 0, !0)
1866
1879
  ]),
1867
- w(t)["panel-action"] ? (v(), p("footer", $o, [
1868
- b(n.$slots, "panel-action", {}, void 0, !0)
1869
- ])) : _("", !0)
1880
+ _(o)["panel-action"] ? (m(), p("footer", xo, [
1881
+ b(s.$slots, "panel-action", {}, void 0, !0)
1882
+ ])) : w("", !0)
1870
1883
  ], 6));
1871
1884
  }
1872
1885
  });
1873
- const xo = /* @__PURE__ */ V(Vo, [["__scopeId", "data-v-1aadee0b"]]), Oo = { class: "joy-panel-section" }, Io = {
1886
+ const Io = /* @__PURE__ */ V(Oo, [["__scopeId", "data-v-49d83306"]]), Bo = { class: "joy-panel-section" }, Eo = {
1874
1887
  key: 0,
1875
1888
  class: "joy-panel-section__title"
1876
- }, Bo = {
1889
+ }, Lo = {
1877
1890
  key: 1,
1878
1891
  class: "joy-panel-section__content"
1879
- }, Lo = /* @__PURE__ */ $({
1892
+ }, Co = /* @__PURE__ */ $({
1880
1893
  __name: "VJoyPanelSection",
1881
1894
  setup(e) {
1882
- const t = W();
1883
- return (l, o) => (v(), p("div", Oo, [
1884
- w(t)["panel-section-title"] ? (v(), p("div", Io, [
1885
- b(l.$slots, "panel-section-title", {}, void 0, !0)
1886
- ])) : _("", !0),
1887
- w(t)["panel-section-content"] ? (v(), p("div", Bo, [
1888
- b(l.$slots, "panel-section-content", {}, void 0, !0)
1889
- ])) : _("", !0)
1895
+ const l = W();
1896
+ return (t, o) => (m(), p("div", Bo, [
1897
+ _(l)["panel-section-title"] ? (m(), p("div", Eo, [
1898
+ b(t.$slots, "panel-section-title", {}, void 0, !0)
1899
+ ])) : w("", !0),
1900
+ _(l)["panel-section-content"] ? (m(), p("div", Lo, [
1901
+ b(t.$slots, "panel-section-content", {}, void 0, !0)
1902
+ ])) : w("", !0)
1890
1903
  ]));
1891
1904
  }
1892
1905
  });
1893
- const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-d88510ab"]]), Po = ["id", "value", "checked", "disabled", "required", "name"], Co = { class: "joy-radio-label" }, Jo = { class: "joy-radio-content__wrapper" }, qo = { class: "joy-radio-content" }, To = /* @__PURE__ */ $({
1906
+ const Po = /* @__PURE__ */ V(Co, [["__scopeId", "data-v-d88510ab"]]), Jo = ["id", "value", "checked", "disabled", "required", "name"], To = { class: "joy-radio-label" }, qo = { class: "joy-radio-content__wrapper" }, zo = { class: "joy-radio-content" }, Ao = /* @__PURE__ */ $({
1894
1907
  __name: "VJoyRadio",
1895
1908
  props: {
1896
1909
  disabled: {
@@ -1925,13 +1938,13 @@ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
1925
1938
  }
1926
1939
  },
1927
1940
  emits: ["update:modelValue"],
1928
- setup(e, { expose: t, emit: l }) {
1929
- const o = e, n = g(!1), r = g(!1), s = g(null), a = g(null), c = W(), f = I(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1941
+ setup(e, { expose: l, emit: t }) {
1942
+ const o = e, a = g(!1), r = g(!1), s = g(null), n = g(null), c = W(), f = I(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
1930
1943
  function u() {
1931
- n.value = !!c["expandable-content"] && f.value;
1944
+ a.value = !!c["expandable-content"] && f.value;
1932
1945
  }
1933
- function m() {
1934
- l("update:modelValue", o.value), u();
1946
+ function v() {
1947
+ t("update:modelValue", o.value), u();
1935
1948
  }
1936
1949
  Z(() => {
1937
1950
  o.theme === "outline" && u();
@@ -1942,22 +1955,22 @@ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
1942
1955
  function y() {
1943
1956
  r.value = !1;
1944
1957
  }
1945
- return P(
1958
+ return C(
1946
1959
  () => o.modelValue,
1947
1960
  () => {
1948
1961
  u();
1949
1962
  }
1950
- ), t({
1963
+ ), l({
1951
1964
  checked: f,
1952
- isExpanded: n
1953
- }), (d, j) => (v(), p("label", {
1965
+ isExpanded: a
1966
+ }), (d, j) => (m(), p("label", {
1954
1967
  ref_key: "root",
1955
1968
  ref: s,
1956
1969
  class: k([
1957
1970
  "joy-radio",
1958
1971
  `joy-radio--${e.theme}`,
1959
1972
  {
1960
- "joy-radio--checked": w(f),
1973
+ "joy-radio--checked": _(f),
1961
1974
  "joy-radio--disabled": e.disabled,
1962
1975
  "joy-radio--invalid": e.invalid,
1963
1976
  "joy-radio--outline-focus": r.value && e.theme === "outline",
@@ -1969,25 +1982,25 @@ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
1969
1982
  id: e.id,
1970
1983
  type: "radio",
1971
1984
  value: e.value,
1972
- checked: w(f),
1985
+ checked: _(f),
1973
1986
  disabled: e.disabled,
1974
1987
  required: e.required,
1975
1988
  name: e.name,
1976
- onChange: m,
1989
+ onChange: v,
1977
1990
  onFocus: i,
1978
1991
  onBlur: y
1979
- }, null, 40, Po),
1980
- h("span", Co, [
1992
+ }, null, 40, Jo),
1993
+ h("span", To, [
1981
1994
  b(d.$slots, "default", {}, void 0, !0)
1982
1995
  ]),
1983
- h("div", Jo, [
1984
- h("div", qo, [
1996
+ h("div", qo, [
1997
+ h("div", zo, [
1985
1998
  b(d.$slots, "radio-content", {}, void 0, !0)
1986
1999
  ]),
1987
2000
  h("div", {
1988
2001
  ref_key: "expandableElement",
1989
- ref: a,
1990
- class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
2002
+ ref: n,
2003
+ class: k(["joy-radio-expandable", { "joy-radio-expandable--expanded": a.value }])
1991
2004
  }, [
1992
2005
  b(d.$slots, "expandable-content", {}, void 0, !0)
1993
2006
  ], 2)
@@ -1995,7 +2008,7 @@ const Eo = /* @__PURE__ */ V(Lo, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
1995
2008
  ], 2));
1996
2009
  }
1997
2010
  });
1998
- const zo = /* @__PURE__ */ V(To, [["__scopeId", "data-v-24cea99b"]]), Ao = ["form", "name"], Fo = /* @__PURE__ */ $({
2011
+ const Fo = /* @__PURE__ */ V(Ao, [["__scopeId", "data-v-24cea99b"]]), Do = ["form", "name"], Ro = /* @__PURE__ */ $({
1999
2012
  __name: "VJoyRadioGroup",
2000
2013
  props: {
2001
2014
  direction: {
@@ -2010,26 +2023,26 @@ const zo = /* @__PURE__ */ V(To, [["__scopeId", "data-v-24cea99b"]]), Ao = ["for
2010
2023
  }
2011
2024
  },
2012
2025
  setup(e) {
2013
- return (t, l) => (v(), p("fieldset", {
2026
+ return (l, t) => (m(), p("fieldset", {
2014
2027
  ref: "root",
2015
2028
  class: "joy-radio-group-fieldset",
2016
2029
  role: "radiogroup",
2017
2030
  form: e.form,
2018
2031
  name: e.name
2019
2032
  }, [
2020
- b(t.$slots, "radio-group-legend", {}, void 0, !0),
2033
+ b(l.$slots, "radio-group-legend", {}, void 0, !0),
2021
2034
  h("div", {
2022
2035
  class: k(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2023
2036
  }, [
2024
- b(t.$slots, "default", {}, void 0, !0)
2037
+ b(l.$slots, "default", {}, void 0, !0)
2025
2038
  ], 2)
2026
- ], 8, Ao));
2039
+ ], 8, Do));
2027
2040
  }
2028
2041
  });
2029
- const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-ace1a80f"]]), Ro = (e) => (te("data-v-ab4d0113"), e = e(), le(), e), Mo = ["id", "name", "aria-invalid", "required", "disabled", "value"], No = /* @__PURE__ */ Ro(() => /* @__PURE__ */ h("joy-icon", {
2042
+ const Mo = /* @__PURE__ */ V(Ro, [["__scopeId", "data-v-ace1a80f"]]), No = (e) => (te("data-v-ab4d0113"), e = e(), le(), e), Ho = ["id", "name", "aria-invalid", "required", "disabled", "value"], Wo = /* @__PURE__ */ No(() => /* @__PURE__ */ h("joy-icon", {
2030
2043
  class: "joy-select__chevron",
2031
2044
  name: "chevron-down"
2032
- }, null, -1)), Ho = /* @__PURE__ */ $({
2045
+ }, null, -1)), Uo = /* @__PURE__ */ $({
2033
2046
  __name: "VJoySelect",
2034
2047
  props: {
2035
2048
  disabled: {
@@ -2069,26 +2082,26 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-ace1a80f"]]), Ro = (e) =
2069
2082
  // ...TEXT_BASED_PROPS,
2070
2083
  },
2071
2084
  emits: ["update:modelValue"],
2072
- setup(e, { emit: t }) {
2073
- const l = e, o = g(), n = g(), r = W(), s = g(!1);
2085
+ setup(e, { emit: l }) {
2086
+ const t = e, o = g(), a = g(), r = W(), s = g(!1);
2074
2087
  Z(() => {
2075
2088
  var i;
2076
2089
  const u = r.label && r.label();
2077
2090
  if (!u || !u.length)
2078
2091
  return;
2079
- const m = u[0];
2080
- if (m.type === "JoyLabel") {
2081
- const y = (i = m.props) == null ? void 0 : i.for;
2092
+ const v = u[0];
2093
+ if (v.type === "JoyLabel") {
2094
+ const y = (i = v.props) == null ? void 0 : i.for;
2082
2095
  if (!y) {
2083
2096
  console.warn("JoyLabel for attribute is missing");
2084
2097
  return;
2085
2098
  }
2086
- y !== l.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2099
+ y !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2087
2100
  }
2088
2101
  });
2089
- function a(u) {
2090
- const m = u.target.value;
2091
- t("update:modelValue", m);
2102
+ function n(u) {
2103
+ const v = u.target.value;
2104
+ l("update:modelValue", v);
2092
2105
  }
2093
2106
  function c() {
2094
2107
  s.value = !0;
@@ -2096,23 +2109,23 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-ace1a80f"]]), Ro = (e) =
2096
2109
  function f() {
2097
2110
  s.value = !1;
2098
2111
  }
2099
- return (u, m) => (v(), p("div", {
2112
+ return (u, v) => (m(), p("div", {
2100
2113
  ref_key: "root",
2101
2114
  ref: o
2102
2115
  }, [
2103
2116
  b(u.$slots, "select-label", {}, () => [
2104
- e.label ? (v(), q(N, {
2117
+ e.label ? (m(), T(N, {
2105
2118
  key: 0,
2106
2119
  required: e.required && e.requiredMark,
2107
2120
  "optional-label": e.optionalLabel,
2108
2121
  for: e.id || e.name,
2109
2122
  size: e.labelSize
2110
2123
  }, {
2111
- default: L(() => [
2112
- E(x(e.label), 1)
2124
+ default: E(() => [
2125
+ L(x(e.label), 1)
2113
2126
  ]),
2114
2127
  _: 1
2115
- }, 8, ["required", "optional-label", "for", "size"])) : _("", !0)
2128
+ }, 8, ["required", "optional-label", "for", "size"])) : w("", !0)
2116
2129
  ], !0),
2117
2130
  h("div", {
2118
2131
  class: k({
@@ -2125,25 +2138,25 @@ const Do = /* @__PURE__ */ V(Fo, [["__scopeId", "data-v-ace1a80f"]]), Ro = (e) =
2125
2138
  h("select", {
2126
2139
  id: e.id || e.name,
2127
2140
  ref_key: "select",
2128
- ref: n,
2141
+ ref: a,
2129
2142
  class: "joy-select",
2130
2143
  name: e.name,
2131
2144
  "aria-invalid": e.invalid,
2132
2145
  required: e.required,
2133
2146
  disabled: e.disabled,
2134
2147
  value: e.modelValue,
2135
- onInput: a,
2148
+ onInput: n,
2136
2149
  onFocus: c,
2137
2150
  onBlur: f
2138
2151
  }, [
2139
2152
  b(u.$slots, "default", {}, void 0, !0)
2140
- ], 40, Mo),
2141
- No
2153
+ ], 40, Ho),
2154
+ Wo
2142
2155
  ], 2)
2143
2156
  ], 512));
2144
2157
  }
2145
2158
  });
2146
- const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["aria-disabled"], Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = /* @__PURE__ */ $({
2159
+ const Go = /* @__PURE__ */ V(Uo, [["__scopeId", "data-v-ab4d0113"]]), Ko = ["aria-disabled"], Qo = ["id", "value", "checked", "disabled", "required", "name"], Zo = /* @__PURE__ */ $({
2147
2160
  __name: "VJoySelectableItem",
2148
2161
  props: {
2149
2162
  disabled: {
@@ -2179,16 +2192,16 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2179
2192
  }
2180
2193
  },
2181
2194
  emits: ["update:checked"],
2182
- setup(e, { emit: t }) {
2183
- const l = e, o = g(l.checked), n = g(), r = g(!1), s = l.multiple ? "div" : "label", a = {
2195
+ setup(e, { emit: l }) {
2196
+ const t = e, o = g(t.checked), a = g(), r = g(!1), s = t.multiple ? "div" : "label", n = {
2184
2197
  onRadioChange: () => {
2185
- t("update:checked", l.value);
2198
+ l("update:checked", t.value);
2186
2199
  },
2187
2200
  onClick: () => {
2188
- l.checked && !l.multiple && t("update:checked", "");
2201
+ t.checked && !t.multiple && l("update:checked", "");
2189
2202
  },
2190
2203
  onLabelClick: (f) => {
2191
- l.multiple || f.stopPropagation();
2204
+ t.multiple || f.stopPropagation();
2192
2205
  },
2193
2206
  onFocus: () => {
2194
2207
  r.value = !0;
@@ -2198,9 +2211,9 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2198
2211
  }
2199
2212
  };
2200
2213
  function c(f) {
2201
- t("update:checked", f);
2214
+ l("update:checked", f);
2202
2215
  }
2203
- return (f, u) => (v(), p("div", {
2216
+ return (f, u) => (m(), p("div", {
2204
2217
  class: k([
2205
2218
  "joy-selectable-item__wrapper",
2206
2219
  {
@@ -2209,13 +2222,13 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2209
2222
  ]),
2210
2223
  "aria-disabled": e.disabled,
2211
2224
  onClick: u[4] || (u[4] = //@ts-ignore
2212
- (...m) => a.onClick && a.onClick(...m))
2225
+ (...v) => n.onClick && n.onClick(...v))
2213
2226
  }, [
2214
- e.multiple ? _("", !0) : (v(), p("input", {
2227
+ e.multiple ? w("", !0) : (m(), p("input", {
2215
2228
  key: 0,
2216
2229
  id: e.id,
2217
2230
  ref_key: "inputRadio",
2218
- ref: n,
2231
+ ref: a,
2219
2232
  type: "radio",
2220
2233
  value: e.value,
2221
2234
  checked: e.checked,
@@ -2223,13 +2236,13 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2223
2236
  required: e.required,
2224
2237
  name: e.name,
2225
2238
  onChange: u[0] || (u[0] = //@ts-ignore
2226
- (...m) => a.onRadioChange && a.onRadioChange(...m)),
2239
+ (...v) => n.onRadioChange && n.onRadioChange(...v)),
2227
2240
  onFocus: u[1] || (u[1] = //@ts-ignore
2228
- (...m) => a.onFocus && a.onFocus(...m)),
2241
+ (...v) => n.onFocus && n.onFocus(...v)),
2229
2242
  onBlur: u[2] || (u[2] = //@ts-ignore
2230
- (...m) => a.onBlur && a.onBlur(...m))
2231
- }, null, 40, Go)),
2232
- (v(), q(ce(w(s)), {
2243
+ (...v) => n.onBlur && n.onBlur(...v))
2244
+ }, null, 40, Qo)),
2245
+ (m(), T(ce(_(s)), {
2233
2246
  for: e.id,
2234
2247
  class: k([
2235
2248
  "joy-selectable-item",
@@ -2240,15 +2253,15 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2240
2253
  "joy-selectable-item--single": !e.multiple
2241
2254
  }
2242
2255
  ]),
2243
- onClick: a.onLabelClick
2256
+ onClick: n.onLabelClick
2244
2257
  }, {
2245
- default: L(() => [
2246
- e.multiple ? (v(), q(w(he), {
2258
+ default: E(() => [
2259
+ e.multiple ? (m(), T(_(he), {
2247
2260
  key: 0,
2248
2261
  id: e.id,
2249
2262
  checked: o.value,
2250
2263
  "onUpdate:checked": [
2251
- u[3] || (u[3] = (m) => o.value = m),
2264
+ u[3] || (u[3] = (v) => o.value = v),
2252
2265
  c
2253
2266
  ],
2254
2267
  disabled: e.disabled,
@@ -2256,15 +2269,15 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2256
2269
  name: e.name,
2257
2270
  "display-focus": !1,
2258
2271
  required: e.required,
2259
- onFocus: a.onFocus,
2260
- onBlur: a.onBlur
2272
+ onFocus: n.onFocus,
2273
+ onBlur: n.onBlur
2261
2274
  }, {
2262
- default: L(() => [
2275
+ default: E(() => [
2263
2276
  b(f.$slots, "default", {}, void 0, !0)
2264
2277
  ]),
2265
2278
  _: 3
2266
- }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : _("", !0),
2267
- e.multiple ? _("", !0) : b(f.$slots, "default", { key: 1 }, void 0, !0),
2279
+ }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : w("", !0),
2280
+ e.multiple ? w("", !0) : b(f.$slots, "default", { key: 1 }, void 0, !0),
2268
2281
  h("div", {
2269
2282
  class: k([{ "joy-selectable-item__sublabel": f.$slots["selectable-item-sublabel"] }])
2270
2283
  }, [
@@ -2273,18 +2286,18 @@ const Wo = /* @__PURE__ */ V(Ho, [["__scopeId", "data-v-ab4d0113"]]), Uo = ["ari
2273
2286
  ]),
2274
2287
  _: 3
2275
2288
  }, 8, ["for", "class", "onClick"]))
2276
- ], 10, Uo));
2289
+ ], 10, Ko));
2277
2290
  }
2278
2291
  });
2279
- const lt = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"], Zo = /* @__PURE__ */ $({
2292
+ const lt = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-cb2531c0"]]), Yo = ["id"], Xo = /* @__PURE__ */ $({
2280
2293
  __name: "VJoySelectableItemGroup",
2281
2294
  props: {
2282
2295
  options: {
2283
2296
  type: Array,
2284
2297
  required: !0,
2285
2298
  validator(e) {
2286
- const t = e.every((o) => Object.keys(o).includes("value")), l = e.every((o) => Object.keys(o).includes("label"));
2287
- return t && l;
2299
+ const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
2300
+ return l && t;
2288
2301
  }
2289
2302
  },
2290
2303
  id: String,
@@ -2316,33 +2329,33 @@ const lt = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"
2316
2329
  }
2317
2330
  },
2318
2331
  emits: ["update:value"],
2319
- setup(e, { emit: t }) {
2320
- const l = e;
2332
+ setup(e, { emit: l }) {
2333
+ const t = e;
2321
2334
  function o(r) {
2322
- return typeof l.value == "string" ? l.value === r.value : (l.value || []).includes(r.value);
2335
+ return typeof t.value == "string" ? t.value === r.value : (t.value || []).includes(r.value);
2323
2336
  }
2324
- function n(r, s) {
2325
- if (!l.multiple)
2326
- return t("update:value", s);
2327
- let a = [...l.value || []];
2328
- s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), t("update:value", a);
2337
+ function a(r, s) {
2338
+ if (!t.multiple)
2339
+ return l("update:value", s);
2340
+ let n = [...t.value || []];
2341
+ s && typeof s == "boolean" ? n.push(r) : n.splice(n.indexOf(r), 1), l("update:value", n);
2329
2342
  }
2330
- return (r, s) => (v(), p("fieldset", {
2343
+ return (r, s) => (m(), p("fieldset", {
2331
2344
  id: e.id,
2332
2345
  class: "joy-selectable-item-group__wrapper"
2333
2346
  }, [
2334
- e.label ? (v(), q(w(N), {
2347
+ e.label ? (m(), T(_(N), {
2335
2348
  key: 0,
2336
2349
  "tag-name": "legend",
2337
2350
  required: e.required && e.requiredMark,
2338
2351
  "optional-label": e.optionalLabel,
2339
2352
  size: e.labelSize
2340
2353
  }, {
2341
- default: L(() => [
2342
- E(x(e.label), 1)
2354
+ default: E(() => [
2355
+ L(x(e.label), 1)
2343
2356
  ]),
2344
2357
  _: 1
2345
- }, 8, ["required", "optional-label", "size"])) : _("", !0),
2358
+ }, 8, ["required", "optional-label", "size"])) : w("", !0),
2346
2359
  h("div", {
2347
2360
  class: k([
2348
2361
  "joy-selectable-item-group",
@@ -2353,47 +2366,51 @@ const lt = /* @__PURE__ */ V(Ko, [["__scopeId", "data-v-cb2531c0"]]), Qo = ["id"
2353
2366
  }
2354
2367
  ])
2355
2368
  }, [
2356
- (v(!0), p(ye, null, me(e.options, (a) => (v(), q(w(lt), {
2357
- id: a.id,
2358
- key: a.id,
2359
- name: a.name,
2360
- value: a.value,
2369
+ (m(!0), p(ye, null, ve(e.options, (n) => (m(), T(_(lt), {
2370
+ id: n.id,
2371
+ key: n.id,
2372
+ name: n.name,
2373
+ value: n.value,
2361
2374
  multiple: e.multiple,
2362
- checked: o(a),
2363
- "onUpdate:checked": (c) => n(a.value, c)
2375
+ checked: o(n),
2376
+ "onUpdate:checked": (c) => a(n.value, c)
2364
2377
  }, He({
2365
- default: L(() => [
2366
- E(x(a.label) + " ", 1)
2378
+ default: E(() => [
2379
+ L(x(n.label) + " ", 1)
2367
2380
  ]),
2368
2381
  _: 2
2369
2382
  }, [
2370
- a.subLabel ? {
2383
+ n.subLabel ? {
2371
2384
  name: "selectable-item-sublabel",
2372
- fn: L(() => [
2373
- E(x(a.subLabel), 1)
2385
+ fn: E(() => [
2386
+ L(x(n.subLabel), 1)
2374
2387
  ]),
2375
2388
  key: "0"
2376
2389
  } : void 0
2377
2390
  ]), 1032, ["id", "name", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2378
2391
  ], 2)
2379
- ], 8, Qo));
2392
+ ], 8, Yo));
2380
2393
  }
2381
2394
  });
2382
- const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-3ba17434"]]), Xo = /* @__PURE__ */ $({
2395
+ const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-3ba17434"]]), tn = /* @__PURE__ */ $({
2383
2396
  __name: "VJoyWrapper",
2384
2397
  props: {
2398
+ /** Horizontal spread. Refers to CSS flex justify-content. */
2385
2399
  justify: {
2386
2400
  type: String,
2387
2401
  default: "flex-start"
2388
2402
  },
2403
+ /** Vertical spread. Refers to CSS flex align-items. */
2389
2404
  align: {
2390
2405
  type: String,
2391
2406
  default: "center"
2392
2407
  },
2408
+ /** Vertical flex, or horizontal. Refers to CSS flex-direction */
2393
2409
  direction: {
2394
2410
  type: String,
2395
2411
  default: "row"
2396
2412
  },
2413
+ /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
2397
2414
  wrap: {
2398
2415
  type: String,
2399
2416
  default: "wrap"
@@ -2404,7 +2421,7 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-3ba17434"]]), Xo = /* @_
2404
2421
  }
2405
2422
  },
2406
2423
  setup(e) {
2407
- return (t, l) => (v(), p("div", {
2424
+ return ct("VJoyWrapperContext", e), (t, o) => (m(), p("div", {
2408
2425
  class: k([
2409
2426
  "joy-wrapper",
2410
2427
  `joy-wrapper--justify-${e.justify}`,
@@ -2418,83 +2435,83 @@ const Yo = /* @__PURE__ */ V(Zo, [["__scopeId", "data-v-3ba17434"]]), Xo = /* @_
2418
2435
  ], 2));
2419
2436
  }
2420
2437
  });
2421
- const en = /* @__PURE__ */ V(Xo, [["__scopeId", "data-v-477e149b"]]), tn = { class: "joy-template__wrapper" }, ln = {
2438
+ const ln = /* @__PURE__ */ V(tn, [["__scopeId", "data-v-ff154744"]]), on = { class: "joy-template__wrapper" }, nn = {
2422
2439
  key: 0,
2423
2440
  class: "joy-template__heading"
2424
- }, on = {
2441
+ }, an = {
2425
2442
  key: 0,
2426
2443
  class: "joy-template-slot-back"
2427
- }, nn = { class: "joy-template__heading___headings" }, an = {
2444
+ }, rn = { class: "joy-template__heading___headings" }, sn = {
2428
2445
  key: 0,
2429
2446
  class: "joy-template-slot-title"
2430
- }, rn = {
2447
+ }, un = {
2431
2448
  key: 1,
2432
2449
  class: "joy-template-slot-subtitle"
2433
- }, sn = {
2450
+ }, dn = {
2434
2451
  key: 1,
2435
2452
  class: "joy-template-slot-actions"
2436
- }, un = {
2453
+ }, cn = {
2437
2454
  key: 0,
2438
2455
  class: "joy-template-slot-main"
2439
- }, dn = {
2456
+ }, fn = {
2440
2457
  key: 1,
2441
2458
  class: "joy-template-slot-sidebar"
2442
- }, cn = /* @__PURE__ */ $({
2459
+ }, yn = /* @__PURE__ */ $({
2443
2460
  __name: "VJoyTemplate",
2444
2461
  props: {
2445
2462
  full: { type: Boolean, default: !1 },
2446
2463
  sidebar: { type: String, default: "right" }
2447
2464
  },
2448
2465
  setup(e) {
2449
- const t = e, l = W(), o = I(() => !!l["template-back"] || !!l["template-title"] || !!l["template-subtitle"] || !l["template-actions"]);
2450
- return (n, r) => (v(), p("main", {
2451
- class: k(["joy-template", { "joy-template--full": t.full }])
2466
+ const l = e, t = W(), o = I(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
2467
+ return (a, r) => (m(), p("main", {
2468
+ class: k(["joy-template", { "joy-template--full": l.full }])
2452
2469
  }, [
2453
- h("div", tn, [
2454
- w(o) ? (v(), p("div", ln, [
2455
- w(l)["template-back"] ? (v(), p("div", on, [
2456
- b(n.$slots, "template-back", {}, void 0, !0)
2457
- ])) : _("", !0),
2458
- h("div", nn, [
2459
- w(l)["template-title"] ? (v(), p("div", an, [
2460
- b(n.$slots, "template-title", {}, void 0, !0)
2461
- ])) : _("", !0),
2462
- w(l)["template-subtitle"] ? (v(), p("div", rn, [
2463
- b(n.$slots, "template-subtitle", {}, void 0, !0)
2464
- ])) : _("", !0)
2470
+ h("div", on, [
2471
+ _(o) ? (m(), p("div", nn, [
2472
+ _(t)["template-back"] ? (m(), p("div", an, [
2473
+ b(a.$slots, "template-back", {}, void 0, !0)
2474
+ ])) : w("", !0),
2475
+ h("div", rn, [
2476
+ _(t)["template-title"] ? (m(), p("div", sn, [
2477
+ b(a.$slots, "template-title", {}, void 0, !0)
2478
+ ])) : w("", !0),
2479
+ _(t)["template-subtitle"] ? (m(), p("div", un, [
2480
+ b(a.$slots, "template-subtitle", {}, void 0, !0)
2481
+ ])) : w("", !0)
2465
2482
  ]),
2466
- w(l)["template-actions"] ? (v(), p("div", sn, [
2467
- b(n.$slots, "template-actions", {}, void 0, !0)
2468
- ])) : _("", !0)
2469
- ])) : _("", !0),
2483
+ _(t)["template-actions"] ? (m(), p("div", dn, [
2484
+ b(a.$slots, "template-actions", {}, void 0, !0)
2485
+ ])) : w("", !0)
2486
+ ])) : w("", !0),
2470
2487
  h("div", {
2471
2488
  class: k([
2472
2489
  "joy-template__content",
2473
2490
  {
2474
- "joy-template__content--reverse": t.sidebar === "left"
2491
+ "joy-template__content--reverse": l.sidebar === "left"
2475
2492
  }
2476
2493
  ])
2477
2494
  }, [
2478
- n.$slots["template-main"] ? (v(), p("div", un, [
2479
- b(n.$slots, "template-main", {}, void 0, !0)
2480
- ])) : _("", !0),
2481
- n.$slots["template-sidebar"] ? (v(), p("div", dn, [
2482
- b(n.$slots, "template-sidebar", {}, void 0, !0)
2483
- ])) : _("", !0)
2495
+ a.$slots["template-main"] ? (m(), p("div", cn, [
2496
+ b(a.$slots, "template-main", {}, void 0, !0)
2497
+ ])) : w("", !0),
2498
+ a.$slots["template-sidebar"] ? (m(), p("div", fn, [
2499
+ b(a.$slots, "template-sidebar", {}, void 0, !0)
2500
+ ])) : w("", !0)
2484
2501
  ], 2)
2485
2502
  ])
2486
2503
  ], 2));
2487
2504
  }
2488
2505
  });
2489
- const fn = /* @__PURE__ */ V(cn, [["__scopeId", "data-v-2d3f45da"]]), yn = ["aria-disabled"], mn = { class: "joy-textarea_wrapper" }, vn = ["id", "disabled", "name", "required", "minlength", "value"], pn = {
2506
+ const vn = /* @__PURE__ */ V(yn, [["__scopeId", "data-v-85e0d8cf"]]), mn = ["aria-disabled"], pn = { class: "joy-textarea_wrapper" }, hn = ["id", "disabled", "name", "required", "minlength", "value"], bn = {
2490
2507
  key: 0,
2491
2508
  class: "joy-textarea_helpers"
2492
- }, hn = {
2509
+ }, gn = {
2493
2510
  key: 0,
2494
2511
  name: "check",
2495
2512
  color: "grey",
2496
2513
  size: "xxsmall"
2497
- }, bn = /* @__PURE__ */ $({
2514
+ }, _n = /* @__PURE__ */ $({
2498
2515
  __name: "VJoyTextarea",
2499
2516
  props: {
2500
2517
  disabled: {
@@ -2542,25 +2559,25 @@ const fn = /* @__PURE__ */ V(cn, [["__scopeId", "data-v-2d3f45da"]]), yn = ["ari
2542
2559
  }
2543
2560
  },
2544
2561
  emits: ["update:modelValue"],
2545
- setup(e, { expose: t, emit: l }) {
2546
- const o = e, n = g(), { triggerResize: r } = tl({
2547
- element: o.autogrow ? n : void 0
2548
- }), s = g(!1), a = g(!1), c = I(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = I(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2549
- onInput: (m) => {
2550
- l("update:modelValue", m.target.value), r();
2562
+ setup(e, { expose: l, emit: t }) {
2563
+ const o = e, a = g(), { triggerResize: r } = ol({
2564
+ element: o.autogrow ? a : void 0
2565
+ }), s = g(!1), n = g(!1), c = I(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), f = I(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
2566
+ onInput: (v) => {
2567
+ t("update:modelValue", v.target.value), r();
2551
2568
  },
2552
2569
  onBlur: () => {
2553
- a.value = !1, s.value = c.value || f.value;
2570
+ n.value = !1, s.value = c.value || f.value;
2554
2571
  },
2555
2572
  onFocus: () => {
2556
- a.value = !0;
2573
+ n.value = !0;
2557
2574
  }
2558
2575
  };
2559
- return t({
2576
+ return l({
2560
2577
  isInvalid: s,
2561
2578
  valueOverMaxlength: c,
2562
2579
  valueUnderMinlength: f
2563
- }), (m, i) => (v(), p("div", {
2580
+ }), (v, i) => (m(), p("div", {
2564
2581
  "aria-disabled": e.disabled,
2565
2582
  class: k([
2566
2583
  "joy-textarea",
@@ -2568,28 +2585,28 @@ const fn = /* @__PURE__ */ V(cn, [["__scopeId", "data-v-2d3f45da"]]), yn = ["ari
2568
2585
  "joy-textarea_invalid": s.value || e.invalid,
2569
2586
  "joy-textarea_disabled": e.disabled,
2570
2587
  "joy-textarea_autogrow": e.autogrow,
2571
- "joy-textarea_focusing": a.value
2588
+ "joy-textarea_focusing": n.value
2572
2589
  }
2573
2590
  ])
2574
2591
  }, [
2575
- fe(w(N), {
2592
+ fe(_(N), {
2576
2593
  for: e.id,
2577
2594
  required: e.required && e.requiredMark,
2578
2595
  "optional-label": e.optionalLabel,
2579
2596
  size: e.labelSize
2580
2597
  }, {
2581
- default: L(() => [
2582
- b(m.$slots, "default", {}, () => [
2583
- E(x(e.label), 1)
2598
+ default: E(() => [
2599
+ b(v.$slots, "default", {}, () => [
2600
+ L(x(e.label), 1)
2584
2601
  ], !0)
2585
2602
  ]),
2586
2603
  _: 3
2587
2604
  }, 8, ["for", "required", "optional-label", "size"]),
2588
- h("div", mn, [
2589
- h("textarea", Q(m.$attrs, {
2605
+ h("div", pn, [
2606
+ h("textarea", Q(v.$attrs, {
2590
2607
  id: e.id,
2591
2608
  ref_key: "textarea",
2592
- ref: n,
2609
+ ref: a,
2593
2610
  class: "joy-native-textarea",
2594
2611
  disabled: e.disabled,
2595
2612
  name: e.name,
@@ -2602,25 +2619,25 @@ const fn = /* @__PURE__ */ V(cn, [["__scopeId", "data-v-2d3f45da"]]), yn = ["ari
2602
2619
  (...y) => u.onFocus && u.onFocus(...y)),
2603
2620
  onBlur: i[2] || (i[2] = //@ts-ignore
2604
2621
  (...y) => u.onBlur && u.onBlur(...y))
2605
- }), null, 16, vn)
2622
+ }), null, 16, hn)
2606
2623
  ]),
2607
- e.minlength || e.maxlength ? (v(), p("div", pn, [
2608
- e.minlength ? (v(), p("p", {
2624
+ e.minlength || e.maxlength ? (m(), p("div", bn, [
2625
+ e.minlength ? (m(), p("p", {
2609
2626
  key: 0,
2610
2627
  class: k(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
2611
2628
  }, [
2612
- w(f) ? _("", !0) : (v(), p("joy-icon", hn)),
2613
- E(" " + x(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2614
- ], 2)) : _("", !0),
2615
- e.maxlength ? (v(), p("p", {
2629
+ _(f) ? w("", !0) : (m(), p("joy-icon", gn)),
2630
+ L(" " + x(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
2631
+ ], 2)) : w("", !0),
2632
+ e.maxlength ? (m(), p("p", {
2616
2633
  key: 1,
2617
- class: k(["joy-textarea-count", { "joy-textarea-count-invalid": w(c) }])
2618
- }, x(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
2619
- ])) : _("", !0)
2620
- ], 10, yn));
2634
+ class: k(["joy-textarea-count", { "joy-textarea-count-invalid": _(c) }])
2635
+ }, x(e.modelValue.length + "/" + e.maxlength), 3)) : w("", !0)
2636
+ ])) : w("", !0)
2637
+ ], 10, mn));
2621
2638
  }
2622
2639
  });
2623
- const gn = /* @__PURE__ */ V(bn, [["__scopeId", "data-v-1496c389"]]), ot = (e) => (te("data-v-cf79d999"), e = e(), le(), e), _n = { class: "joy-toggle__wrapper" }, wn = ["name", "disabled", "checked", "required", "aria-checked", "value"], Sn = { class: "joy-toggle__content" }, jn = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), kn = { class: "joy-toggle__content-label" }, $n = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2640
+ const wn = /* @__PURE__ */ V(_n, [["__scopeId", "data-v-1496c389"]]), ot = (e) => (te("data-v-cf79d999"), e = e(), le(), e), Sn = { class: "joy-toggle__wrapper" }, jn = ["name", "disabled", "checked", "required", "aria-checked", "value"], kn = { class: "joy-toggle__content" }, $n = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), Vn = { class: "joy-toggle__content-label" }, xn = /* @__PURE__ */ ot(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
2624
2641
  /* @__PURE__ */ h("svg", {
2625
2642
  width: "18",
2626
2643
  height: "10",
@@ -2633,7 +2650,7 @@ const gn = /* @__PURE__ */ V(bn, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
2633
2650
  fill: "currentColor"
2634
2651
  })
2635
2652
  ])
2636
- ], -1)), Vn = /* @__PURE__ */ $({
2653
+ ], -1)), On = /* @__PURE__ */ $({
2637
2654
  __name: "VJoyToggle",
2638
2655
  props: {
2639
2656
  modelValue: {
@@ -2666,27 +2683,27 @@ const gn = /* @__PURE__ */ V(bn, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
2666
2683
  label: String
2667
2684
  },
2668
2685
  emits: ["update:modelValue"],
2669
- setup(e, { emit: t }) {
2670
- const l = g(!1), o = {
2671
- onChange: (n) => {
2672
- const r = n.target.checked;
2673
- t("update:modelValue", r);
2686
+ setup(e, { emit: l }) {
2687
+ const t = g(!1), o = {
2688
+ onChange: (a) => {
2689
+ const r = a.target.checked;
2690
+ l("update:modelValue", r);
2674
2691
  },
2675
2692
  onFocus: () => {
2676
- l.value = !0;
2693
+ t.value = !0;
2677
2694
  },
2678
2695
  onBlur: () => {
2679
- l.value = !1;
2696
+ t.value = !1;
2680
2697
  }
2681
2698
  };
2682
- return (n, r) => (v(), p("div", _n, [
2699
+ return (a, r) => (m(), p("div", Sn, [
2683
2700
  h("label", {
2684
2701
  class: k([
2685
2702
  "joy-toggle",
2686
2703
  {
2687
2704
  "joy-toggle__checked": e.modelValue,
2688
2705
  "joy-toggle__disabled": e.disabled,
2689
- "joy-toggle__focusing": l.value
2706
+ "joy-toggle__focusing": t.value
2690
2707
  }
2691
2708
  ])
2692
2709
  }, [
@@ -2707,77 +2724,77 @@ const gn = /* @__PURE__ */ V(bn, [["__scopeId", "data-v-1496c389"]]), ot = (e) =
2707
2724
  (...s) => o.onFocus && o.onFocus(...s)),
2708
2725
  onBlur: r[2] || (r[2] = //@ts-ignore
2709
2726
  (...s) => o.onBlur && o.onBlur(...s))
2710
- }, null, 40, wn),
2711
- h("p", Sn, [
2712
- jn,
2713
- h("span", kn, [
2714
- b(n.$slots, "default", {}, () => [
2715
- E(x(e.label), 1)
2727
+ }, null, 40, jn),
2728
+ h("p", kn, [
2729
+ $n,
2730
+ h("span", Vn, [
2731
+ b(a.$slots, "default", {}, () => [
2732
+ L(x(e.label), 1)
2716
2733
  ], !0)
2717
2734
  ]),
2718
- $n
2735
+ xn
2719
2736
  ])
2720
2737
  ], 2)
2721
2738
  ]));
2722
2739
  }
2723
2740
  });
2724
- const xn = /* @__PURE__ */ V(Vn, [["__scopeId", "data-v-cf79d999"]]), On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2741
+ const In = /* @__PURE__ */ V(On, [["__scopeId", "data-v-cf79d999"]]), Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2725
2742
  __proto__: null,
2726
- VJoyBadge: ft,
2727
- VJoyButton: kt,
2743
+ VJoyBadge: vt,
2744
+ VJoyButton: Vt,
2728
2745
  VJoyCheckbox: he,
2729
- VJoyCounter: Rt,
2730
- VJoyDropdown: Rl,
2746
+ VJoyCounter: Nt,
2747
+ VJoyDropdown: Nl,
2731
2748
  VJoyDropdownList: et,
2732
2749
  VJoyFormError: tt,
2733
- VJoyHighlight: Yl,
2734
- VJoyInput: so,
2750
+ VJoyHighlight: eo,
2751
+ VJoyInput: co,
2735
2752
  VJoyLabel: N,
2736
- VJoyLink: mo,
2737
- VJoyMultiCheckbox: bo,
2738
- VJoyPanel: xo,
2739
- VJoyPanelSection: Eo,
2740
- VJoyRadio: zo,
2741
- VJoyRadioGroup: Do,
2742
- VJoySelect: Wo,
2753
+ VJoyLink: po,
2754
+ VJoyMultiCheckbox: _o,
2755
+ VJoyPanel: Io,
2756
+ VJoyPanelSection: Po,
2757
+ VJoyRadio: Fo,
2758
+ VJoyRadioGroup: Mo,
2759
+ VJoySelect: Go,
2743
2760
  VJoySelectableItem: lt,
2744
- VJoySelectableItemGroup: Yo,
2761
+ VJoySelectableItemGroup: en,
2745
2762
  VJoySpinner: We,
2746
- VJoyTemplate: fn,
2747
- VJoyTextarea: gn,
2748
- VJoyToggle: xn,
2749
- VJoyWrapper: en
2750
- }, Symbol.toStringTag, { value: "Module" })), Bn = {
2763
+ VJoyTemplate: vn,
2764
+ VJoyTextarea: wn,
2765
+ VJoyToggle: In,
2766
+ VJoyWrapper: ln
2767
+ }, Symbol.toStringTag, { value: "Module" })), Ln = {
2751
2768
  install: (e) => {
2752
- Object.entries(On).forEach(([t, l]) => {
2753
- e.component(t, l);
2769
+ Object.entries(Bn).forEach(([l, t]) => {
2770
+ e.component(l, t);
2754
2771
  });
2755
2772
  }
2756
2773
  };
2757
2774
  export {
2758
- Bn as JoyVuePlugin,
2759
- ft as VJoyBadge,
2760
- kt as VJoyButton,
2775
+ Ln as JoyVuePlugin,
2776
+ vt as VJoyBadge,
2777
+ Vt as VJoyButton,
2761
2778
  he as VJoyCheckbox,
2762
- Rt as VJoyCounter,
2763
- Rl as VJoyDropdown,
2779
+ Nt as VJoyCounter,
2780
+ Nl as VJoyDropdown,
2764
2781
  et as VJoyDropdownList,
2765
2782
  tt as VJoyFormError,
2766
- Yl as VJoyHighlight,
2767
- so as VJoyInput,
2783
+ eo as VJoyHighlight,
2784
+ co as VJoyInput,
2768
2785
  N as VJoyLabel,
2769
- mo as VJoyLink,
2770
- bo as VJoyMultiCheckbox,
2771
- xo as VJoyPanel,
2772
- Eo as VJoyPanelSection,
2773
- zo as VJoyRadio,
2774
- Do as VJoyRadioGroup,
2775
- Wo as VJoySelect,
2786
+ po as VJoyLink,
2787
+ _o as VJoyMultiCheckbox,
2788
+ Io as VJoyPanel,
2789
+ Po as VJoyPanelSection,
2790
+ Fo as VJoyRadio,
2791
+ Mo as VJoyRadioGroup,
2792
+ Go as VJoySelect,
2776
2793
  lt as VJoySelectableItem,
2777
- Yo as VJoySelectableItemGroup,
2794
+ en as VJoySelectableItemGroup,
2778
2795
  We as VJoySpinner,
2779
- fn as VJoyTemplate,
2780
- gn as VJoyTextarea,
2781
- xn as VJoyToggle,
2782
- en as VJoyWrapper
2796
+ vn as VJoyTemplate,
2797
+ wn as VJoyTextarea,
2798
+ In as VJoyToggle,
2799
+ ln as VJoyWrapper
2783
2800
  };