@maltjoy/core-vue 3.5.3 → 3.6.0

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