@maltjoy/core-vue 3.15.1 → 3.15.3

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 $, computed as V, openBlock as s, createElementBlock as m, normalizeClass as S, createElementVNode as _, Fragment as H, createTextVNode as B, toDisplayString as L, createCommentVNode as h, createBlock as C, resolveDynamicComponent as oe, mergeProps as K, withCtx as O, pushScopeId as se, popScopeId as ue, renderSlot as g, unref as j, renderList as U, createStaticVNode as tt, useAttrs as we, ref as w, createVNode as R, getCurrentScope as _t, onScopeDispose as ht, getCurrentInstance as gt, onMounted as Q, nextTick as lt, watch as P, h as bt, reactive as pe, onBeforeUnmount as Se, normalizeStyle as Z, normalizeProps as $e, guardReactiveProps as je, provide as ke, createSlots as at, inject as de, useSlots as Y, onBeforeMount as wt, withModifiers as St } from "vue";
2
- const $t = ["title"], jt = /* @__PURE__ */ $({
1
+ import { defineComponent as j, computed as V, openBlock as d, createElementBlock as m, normalizeClass as S, createElementVNode as _, Fragment as D, createTextVNode as B, toDisplayString as C, createCommentVNode as b, createBlock as x, resolveDynamicComponent as ne, mergeProps as Z, withCtx as O, pushScopeId as he, popScopeId as we, renderSlot as g, unref as k, renderList as G, createStaticVNode as lt, useAttrs as Se, resolveDirective as _t, withDirectives as bt, ref as w, createVNode as R, getCurrentScope as gt, onScopeDispose as ht, getCurrentInstance as wt, onMounted as Q, nextTick as at, watch as E, h as St, reactive as ve, onBeforeUnmount as je, normalizeStyle as K, normalizeProps as se, guardReactiveProps as ue, provide as $e, createSlots as nt, inject as de, useSlots as Y, onBeforeMount as jt, withModifiers as $t } from "vue";
2
+ const kt = ["title"], Vt = /* @__PURE__ */ j({
3
3
  __name: "VJoyAvailability",
4
4
  props: {
5
5
  /** Don't fill it and you'll only have the colored dot */
@@ -19,25 +19,25 @@ const $t = ["title"], jt = /* @__PURE__ */ $({
19
19
  "joy-availability--partial": l.isPartial,
20
20
  [l.status]: !0
21
21
  }));
22
- return (a, o) => (s(), m("div", {
22
+ return (a, n) => (d(), m("div", {
23
23
  class: S(["joy-availability", { "joy-availability-has-label": !!e.label }]),
24
24
  title: e.label || void 0
25
25
  }, [
26
26
  _("span", {
27
27
  class: S(t.value)
28
28
  }, null, 2),
29
- e.label ? (s(), m(H, { key: 0 }, [
30
- B(L(e.label), 1)
31
- ], 64)) : h("", !0)
32
- ], 10, $t));
29
+ e.label ? (d(), m(D, { key: 0 }, [
30
+ B(C(e.label), 1)
31
+ ], 64)) : b("", !0)
32
+ ], 10, kt));
33
33
  }
34
34
  });
35
- const k = (e, l) => {
35
+ const $ = (e, l) => {
36
36
  const t = e.__vccOpts || e;
37
- for (const [a, o] of l)
38
- t[a] = o;
37
+ for (const [a, n] of l)
38
+ t[a] = n;
39
39
  return t;
40
- }, kt = /* @__PURE__ */ k(jt, [["__scopeId", "data-v-34b760ee"]]), E = /* @__PURE__ */ $({
40
+ }, xt = /* @__PURE__ */ $(Vt, [["__scopeId", "data-v-34b760ee"]]), T = /* @__PURE__ */ j({
41
41
  __name: "VJoyIcon",
42
42
  props: {
43
43
  name: {
@@ -54,7 +54,7 @@ const k = (e, l) => {
54
54
  }
55
55
  },
56
56
  setup(e) {
57
- return (l, t) => (s(), m("span", {
57
+ return (l, t) => (d(), m("span", {
58
58
  class: S(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
59
59
  }, [
60
60
  _("i", {
@@ -63,18 +63,18 @@ const k = (e, l) => {
63
63
  ], 2));
64
64
  }
65
65
  });
66
- const Vt = (e) => (se("data-v-b3dcdecc"), e = e(), ue(), e), xt = {
66
+ const It = (e) => (he("data-v-b3dcdecc"), e = e(), we(), e), Ct = {
67
67
  ref: "avatarEl",
68
68
  class: "joy-avatar__wrapper"
69
- }, Ct = ["src", "title", "alt"], Lt = {
69
+ }, Lt = ["src", "title", "alt"], Bt = {
70
70
  key: 0,
71
71
  class: "joy-avatar__strategy"
72
- }, It = ["height"], Bt = /* @__PURE__ */ Vt(() => /* @__PURE__ */ _("path", {
72
+ }, Ot = ["height"], Tt = /* @__PURE__ */ It(() => /* @__PURE__ */ _("path", {
73
73
  d: "M6.40531 15.88C5.29156 15.88 4.31531 15.6737 3.47656 15.2612C2.63781 14.8487 1.98469 14.2644 1.51719 13.5081C1.04969 12.7519 0.809061 11.8719 0.795311 10.8681L4.01281 10.3525C4.01281 11.2188 4.25344 11.9131 4.73469 12.4356C5.21594 12.9581 5.82781 13.2194 6.57031 13.2194C7.16156 13.2194 7.63594 13.0612 7.99344 12.745C8.36469 12.4288 8.55031 12.0231 8.55031 11.5281C8.55031 11.1156 8.40594 10.7719 8.11719 10.4969C7.84219 10.2081 7.38844 9.95375 6.75594 9.73375L4.96156 9.15625C3.65531 8.7575 2.70656 8.21438 2.11531 7.52687C1.53781 6.83937 1.24906 5.93187 1.24906 4.80437C1.24906 3.47062 1.68219 2.39812 2.54844 1.58687C3.41469 0.775624 4.63156 0.369999 6.19906 0.369999C7.65656 0.369999 8.83219 0.768749 9.72594 1.56625C10.6197 2.35 11.0803 3.41562 11.1078 4.76312L7.97281 5.36125C7.98656 4.64625 7.82156 4.07562 7.47781 3.64937C7.13406 3.20937 6.68719 2.98937 6.13719 2.98937C5.65594 2.98937 5.26406 3.14062 4.96156 3.44313C4.65906 3.73187 4.50781 4.10312 4.50781 4.55687C4.50781 4.99687 4.64531 5.36125 4.92031 5.65C5.20906 5.925 5.67656 6.15875 6.32281 6.35125L8.03469 6.92875C9.36844 7.3275 10.3309 7.87063 10.9222 8.55812C11.5272 9.23188 11.8297 10.1325 11.8297 11.26C11.8297 12.1538 11.6166 12.9513 11.1903 13.6525C10.7641 14.3538 10.1453 14.9038 9.33406 15.3025C8.52281 15.6875 7.54656 15.88 6.40531 15.88Z",
74
74
  fill: "#F7F7F5"
75
- }, null, -1)), Ot = [
76
- Bt
77
- ], Tt = /* @__PURE__ */ $({
75
+ }, null, -1)), Jt = [
76
+ Tt
77
+ ], Et = /* @__PURE__ */ j({
78
78
  __name: "VJoyAvatar",
79
79
  props: {
80
80
  /** 3 different sizes of avatar */
@@ -103,77 +103,77 @@ const Vt = (e) => (se("data-v-b3dcdecc"), e = e(), ue(), e), xt = {
103
103
  },
104
104
  emits: ["click"],
105
105
  setup(e, { expose: l, emit: t }) {
106
- const a = e, o = V(() => a.size === "large" ? "medium" : a.size === "medium" ? "small" : a.size === "small" ? "xsmall" : "small"), i = V(() => a.link ? {
106
+ const a = e, n = V(() => a.size === "large" ? "medium" : a.size === "medium" ? "small" : a.size === "small" ? "xsmall" : "small"), r = V(() => a.link ? {
107
107
  type: "button"
108
- } : null), r = V(() => ({
108
+ } : null), i = V(() => ({
109
109
  "joy-avatar": !0,
110
110
  "joy-avatar__link": a.link,
111
- "joy-avatar__placeholder": n.value,
111
+ "joy-avatar__placeholder": o.value,
112
112
  [`joy-avatar__${a.size}`]: !0,
113
113
  [`joy-avatar__${a.color}`]: !0
114
- })), n = V(() => !a.fullName && !a.photoUrl && !a.totalNumber), c = V(() => {
115
- function d(f) {
116
- return f.replace(/[';,:()]/g, "").charAt(0);
114
+ })), o = V(() => !a.fullName && !a.photoUrl && !a.totalNumber), y = V(() => {
115
+ function f(c) {
116
+ return c.replace(/[';,:()]/g, "").charAt(0);
117
117
  }
118
- let y = a.fullName.split(" ");
119
- return y = y.slice(0, 2), y.forEach((f, u) => {
120
- y[u] = d(f);
121
- }), y.join("").toUpperCase();
118
+ let u = a.fullName.split(" ");
119
+ return u = u.slice(0, 2), u.forEach((c, s) => {
120
+ u[s] = f(c);
121
+ }), u.join("").toUpperCase();
122
122
  });
123
- function v() {
123
+ function p() {
124
124
  t("click");
125
125
  }
126
126
  return l({
127
- isAnonymous: n,
128
- initials: c
129
- }), (d, y) => (s(), m("div", xt, [
130
- (s(), C(oe(e.link ? "button" : "div"), K(i.value, {
131
- class: [r.value],
132
- onClick: v
127
+ isAnonymous: o,
128
+ initials: y
129
+ }), (f, u) => (d(), m("div", Ct, [
130
+ (d(), x(ne(e.link ? "button" : "div"), Z(r.value, {
131
+ class: [i.value],
132
+ onClick: p
133
133
  }), {
134
134
  default: O(() => [
135
- n.value ? (s(), C(E, {
135
+ o.value ? (d(), x(T, {
136
136
  key: 0,
137
137
  name: "user-photo",
138
138
  color: "white",
139
- size: o.value
140
- }, null, 8, ["size"])) : h("", !0),
141
- e.photoUrl ? (s(), m("img", {
139
+ size: n.value
140
+ }, null, 8, ["size"])) : b("", !0),
141
+ e.photoUrl ? (d(), m("img", {
142
142
  key: 1,
143
143
  src: e.photoUrl,
144
144
  title: e.fullName,
145
145
  alt: e.fullName || "",
146
146
  loading: "lazy"
147
- }, null, 8, Ct)) : h("", !0),
148
- e.fullName ? (s(), m(H, { key: 2 }, [
149
- B(L(c.value), 1)
150
- ], 64)) : h("", !0),
151
- e.totalNumber ? (s(), m(H, { key: 3 }, [
152
- B(L("+" + e.totalNumber), 1)
153
- ], 64)) : h("", !0)
147
+ }, null, 8, Lt)) : b("", !0),
148
+ e.fullName ? (d(), m(D, { key: 2 }, [
149
+ B(C(y.value), 1)
150
+ ], 64)) : b("", !0),
151
+ e.totalNumber ? (d(), m(D, { key: 3 }, [
152
+ B(C("+" + e.totalNumber), 1)
153
+ ], 64)) : b("", !0)
154
154
  ]),
155
155
  _: 1
156
156
  }, 16, ["class"])),
157
- e.profile === "strategy" ? (s(), m("span", Lt, [
158
- (s(), m("svg", {
157
+ e.profile === "strategy" ? (d(), m("span", Bt, [
158
+ (d(), m("svg", {
159
159
  width: "12",
160
160
  height: e.size === "small" ? "10" : "16",
161
161
  viewBox: "0 0 12 16",
162
162
  fill: "none",
163
163
  xmlns: "http://www.w3.org/2000/svg"
164
- }, Ot, 8, It))
165
- ])) : h("", !0)
164
+ }, Jt, 8, Ot))
165
+ ])) : b("", !0)
166
166
  ], 512));
167
167
  }
168
168
  });
169
- const Pt = /* @__PURE__ */ k(Tt, [["__scopeId", "data-v-b3dcdecc"]]), Jt = /* @__PURE__ */ $({
169
+ const Pt = /* @__PURE__ */ $(Et, [["__scopeId", "data-v-b3dcdecc"]]), At = /* @__PURE__ */ j({
170
170
  __name: "VJoyAvatarsList",
171
171
  props: {
172
172
  /** Renders a compact list of avatars */
173
173
  compress: Boolean
174
174
  },
175
175
  setup(e) {
176
- return (l, t) => (s(), m("div", {
176
+ return (l, t) => (d(), m("div", {
177
177
  ref: "avatarsList",
178
178
  class: S(["joy-avatars-list", { "joy-avatars-list--compressed": e.compress }])
179
179
  }, [
@@ -181,7 +181,7 @@ const Pt = /* @__PURE__ */ k(Tt, [["__scopeId", "data-v-b3dcdecc"]]), Jt = /* @_
181
181
  ], 2));
182
182
  }
183
183
  });
184
- const Et = /* @__PURE__ */ k(Jt, [["__scopeId", "data-v-46e4547e"]]), zt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], At = /* @__PURE__ */ $({
184
+ const zt = /* @__PURE__ */ $(At, [["__scopeId", "data-v-46e4547e"]]), qt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], Ft = /* @__PURE__ */ j({
185
185
  __name: "VJoyBadge",
186
186
  props: {
187
187
  /**
@@ -204,48 +204,48 @@ const Et = /* @__PURE__ */ k(Jt, [["__scopeId", "data-v-46e4547e"]]), zt = ["inf
204
204
  variant: {
205
205
  type: String,
206
206
  validator(e) {
207
- return zt.includes(e);
207
+ return qt.includes(e);
208
208
  }
209
209
  }
210
210
  },
211
211
  setup(e) {
212
- return (l, t) => (s(), m("span", {
212
+ return (l, t) => (d(), m("span", {
213
213
  class: S(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
214
214
  role: "status"
215
215
  }, [
216
216
  g(l.$slots, "default", {}, () => [
217
- B(L(e.label), 1)
217
+ B(C(e.label), 1)
218
218
  ], !0)
219
219
  ], 2));
220
220
  }
221
221
  });
222
- const Ft = /* @__PURE__ */ k(At, [["__scopeId", "data-v-1ed08e27"]]);
223
- var J = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "highpotential", e.HIGH_POTENTIAL_AUTO = "high-potential-auto", e.MALT_LINKER = "maltlinker", e.NEW = "new", e.SUPER_MALTER = "supermalter", e.VERIFIED = "verified", e))(J || {}), ie = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "program_high-potential", e))(ie || {});
224
- const D = (e) => (se("data-v-f258a344"), e = e(), ue(), e), qt = { class: "joy-badge-level" }, Nt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
222
+ const Mt = /* @__PURE__ */ $(Ft, [["__scopeId", "data-v-1ed08e27"]]);
223
+ var P = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "highpotential", e.HIGH_POTENTIAL_AUTO = "high-potential-auto", e.MALT_LINKER = "maltlinker", e.NEW = "new", e.SUPER_MALTER = "supermalter", e.VERIFIED = "verified", e))(P || {}), re = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "program_high-potential", e))(re || {});
224
+ const H = (e) => (he("data-v-f258a344"), e = e(), we(), e), Nt = { class: "joy-badge-level" }, Rt = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
225
225
  fill: "#264FFA",
226
226
  d: "M5.71533 12.2962 11.4243 18l.0049-11.45716-5.71387 5.75336Z"
227
- }, null, -1)), Mt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
227
+ }, null, -1)), Dt = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
228
228
  fill: "#FC5757",
229
229
  d: "M.00195312 6.54284.00671145 18 5.7158 12.2962.00195312 6.54284Z"
230
- }, null, -1)), Rt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
230
+ }, null, -1)), Ht = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
231
231
  fill: "#FFC200",
232
232
  d: "M11.4289 5.68249c-.0059-1.52434-.6069-2.9554-1.69067-4.02851C8.95862.882797 7.99681.362073 6.9506.132677 6.95037.132599 6.95021.132599 6.94998.132521c-.04337-.009516-.08681-.018408-.13041-.02691-.0057-.001092-.01147-.002184-.01724-.003276-.0383-.0073317-.07675-.0142735-.11529-.0208255-.01068-.001794-.02144-.00351-.03213-.005304-.03385-.0055379-.06778-.0108418-.10179-.0158338-.01505-.002184-.03011-.0042121-.04516-.0063181-.03011-.0041339-.06022-.008112-.0904-.0117779-.01857-.002262-.03721-.0042901-.05577-.006396C6.33472.0328377 6.30766.029952 6.28051.0273 6.25914.025194 6.23769.0233999 6.21624.0215279 6.19144.0194219 6.16671.017316 6.14183.015522 6.11851.013806 6.09511.0123239 6.07171.0109199 6.04831.00951588 6.02483.00811199 6.00135.006942 5.9771.00577201 5.95276.00483616 5.92842.00397816 5.90541.00312017 5.8824.00234019 5.85931.00179419c-.02433-.00062399-.04874-.0009362-.07316-.0012482C5.76267.000234 5.73912 0 5.71564 0c-.02355 0-.04703.000234-.07051.000546-.02442.000312-.04883.0006242-.07316.00124819-.02309.000546-.0461.00140398-.06911.00218397-.02434.000858-.04859.00179385-.07293.00296384-.02348.00116999-.04696.00257388-.07036.0039779-.0234.001404-.0468.0028861-.07012.0046021-.0248.001794-.0496.0038999-.07441.0060059-.02145.001872-.0429.0036661-.06427.0057721-.02714.002652-.05421.0055377-.08135.0085797-.01857.0021059-.03721.004134-.05577.006396-.03019.0036659-.06037.007644-.09048.0117779-.01506.002106-.03011.0041341-.04516.0063181-.03401.004992-.06794.0102959-.10179.0158338-.01077.001794-.02145.00351-.03214.005304-.03853.006552-.07699.0134938-.11528.0208255-.00578.001092-.01155.002184-.01724.003276-.0436.008502-.08705.017394-.13041.02691-.00024.000078-.00047.000078-.00071.000156C3.43424.361995 2.4725.882719 1.6929 1.65398.609098 2.72702.00811193 4.15815.00218397 5.68249L0 6.15064l.00171623.39226L5.71556 12.2962l5.71384-5.7533.0017-.39202-.0022-.46839Z"
233
- }, null, -1)), Ht = [
234
- Nt,
235
- Mt,
236
- Rt
237
- ], Dt = {
233
+ }, null, -1)), Wt = [
234
+ Rt,
235
+ Dt,
236
+ Ht
237
+ ], Ut = {
238
238
  key: 1,
239
239
  class: "joy-badge-level__highpotential",
240
240
  xmlns: "http://www.w3.org/2000/svg",
241
241
  fill: "none",
242
242
  viewBox: "0 0 12 14"
243
- }, Wt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("g", { "clip-path": "url(#a)" }, [
243
+ }, Gt = /* @__PURE__ */ H(() => /* @__PURE__ */ _("g", { "clip-path": "url(#a)" }, [
244
244
  /* @__PURE__ */ _("path", {
245
245
  fill: "#FFC200",
246
246
  d: "M.00241952 6.50818C.00887156 4.89669.639559 3.38347 1.77754 2.24877c.8186-.8155 1.82835-1.366202 2.926-1.608251h.00081c.04516-.009747.09113-.019494.1371-.028429.00565-.001625.0121-.002437.01775-.004061.04032-.008123.08065-.015433.12097-.021931.0113-.001624.02259-.004061.03388-.005686.03548-.005685.07097-.011371.10726-.016245.01613-.002436.03146-.004873.04759-.006498.03064-.004873.0629-.008934.09436-.012995.01935-.002437.03871-.004874.05887-.006498.02823-.003249.05646-.006498.08549-.008935.02178-.002437.04436-.004874.06694-.006498.02581-.002437.05242-.004061.07823-.006498.0242-.001625.0492-.003249.07339-.004874.0242-.001624.0492-.003249.0742-.004061.02581-.001624.05081-.002437.07662-.003249.0242-.000812.04839-.001624.07259-.002437C5.87539.500812 5.9004.500812 5.92621.5h.07419c.0242 0 .0492 0 .0734.000812.0258 0 .05161.000812.07661.001625.0242.000812.04839.001624.07259.002436.02581 0 .05162.001625.07742.002437.02501.000812.0492.002437.0742.004061.0242.001625.0492.003249.07339.004874.02581.001624.05243.004061.07824.006498.02177.001624.04435.004061.06694.006498.02822.002437.05645.005686.08549.008935.01935.002436.03871.004061.05887.006498.03145.004061.06291.008122.09436.012183.01613.002437.03145.004874.04758.00731.03549.004874.07098.01056.10646.017058.01129.001624.02259.003249.03388.004873.04032.00731.08065.014621.12097.021931.00565.000812.0121.002436.01775.003249.04597.009747.09194.018681.1371.029241h.00081c1.09846.242861 2.1082.792751 2.92604 1.608251 1.1379 1.1347 1.7686 2.64792 1.7751 4.25941L12 7.00284l-.0016.41506L6.0004 13.5.00161301 7.4179 0 7.00284l.00241952-.49466Z"
247
247
  })
248
- ], -1)), Gt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("defs", null, [
248
+ ], -1)), Kt = /* @__PURE__ */ H(() => /* @__PURE__ */ _("defs", null, [
249
249
  /* @__PURE__ */ _("clipPath", { id: "a" }, [
250
250
  /* @__PURE__ */ _("path", {
251
251
  fill: "#fff",
@@ -253,52 +253,52 @@ const D = (e) => (se("data-v-f258a344"), e = e(), ue(), e), qt = { class: "joy-b
253
253
  transform: "translate(0 .5)"
254
254
  })
255
255
  ])
256
- ], -1)), Ut = [
257
- Wt,
258
- Gt
259
- ], Zt = {
256
+ ], -1)), Zt = [
257
+ Gt,
258
+ Kt
259
+ ], Qt = {
260
260
  key: 2,
261
261
  class: "joy-badge-level__high-potential-auto",
262
262
  xmlns: "http://www.w3.org/2000/svg",
263
263
  viewBox: "0 0 64 64",
264
264
  "enable-background": "new 0 0 64 64"
265
- }, Kt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
265
+ }, Yt = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
266
266
  fill: "#EF4E16",
267
267
  d: "M60 23.913s-8.76-2.903-14.05 1.058C44.256 17.449 45.203 8.674 34.688 2c-.712 9.413-12.856 9.891-15.691 22.005-1.86-3.319-2.227-7.716-9.28-9.871C11.615 25.513.415 31.3 5.199 47.68c2.699 9.246 12.72 13.651 21.047 14.217 16.527 1.123 31.896-6.848 32.258-24.148.155-7.437-2.975-8.343 1.496-13.836z"
268
- }, null, -1)), Qt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
268
+ }, null, -1)), Xt = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
269
269
  fill: "#F9B700",
270
270
  d: "M53.226 32.962c-6.012-.063-5.458 2.387-9.883 3.896-3.212-5.842-.067-13.682-10.056-19.364.066 10.625-7.32 7.313-10.414 17.456-3.758-2.145-1.943-6.888-9.256-8.89 4.042 6.349-.99 7.542-3.526 13.335-5.093 11.632 7.181 19.813 16.548 20.382 13.019.793 25.124-4.834 25.408-17.048.122-5.25-2.342-5.888 1.179-9.767z"
271
- }, null, -1)), Yt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
271
+ }, null, -1)), el = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
272
272
  fill: "#FFE463",
273
273
  d: "M47.616 41.169c-4.47-.041-4.061 1.522-7.351 2.484-2.391-3.727-.051-8.729-7.479-12.354.049 6.778-5.446 4.666-7.746 11.137-2.795-1.368-1.447-4.395-6.885-5.672 3.006 4.051-.735 4.812-2.621 8.508-3.791 7.421 5.339 12.64 12.307 13.003 9.683.506 18.686-3.084 18.896-10.876.093-3.348-1.741-3.755.879-6.23z"
274
- }, null, -1)), Xt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("path", {
274
+ }, null, -1)), tl = /* @__PURE__ */ H(() => /* @__PURE__ */ _("path", {
275
275
  fill: "#FFF7D1",
276
276
  d: "M37.182 54.939c0 2.188-12.427 2.188-12.427 0 0-5.849 12.427-5.849 12.427 0z"
277
- }, null, -1)), el = [
278
- Kt,
279
- Qt,
277
+ }, null, -1)), ll = [
280
278
  Yt,
281
- Xt
282
- ], tl = {
279
+ Xt,
280
+ el,
281
+ tl
282
+ ], al = {
283
283
  key: 3,
284
284
  class: "joy-badge-level__maltlinker",
285
285
  xmlns: "http://www.w3.org/2000/svg",
286
286
  fill: "none",
287
287
  viewBox: "0 0 22 10"
288
- }, ll = /* @__PURE__ */ tt('<g clip-path="url(#a)" data-v-f258a344><path fill="var(--joy-color-tertiary-10)" d="M4.919 9.893c-1.32-.005-2.558-.526-3.487-1.464C.764 7.754.313 6.922.115 6.016v-.001c-.008-.037-.016-.074-.024-.112 0-.005-.001-.01-.002-.015-.006-.033-.012-.066-.018-.1C.069 5.779.068 5.77.066 5.76c-.005-.029-.009-.058-.014-.088-.002-.013-.003-.026-.005-.039-.004-.026-.007-.052-.01-.078l-.006-.048C.028 5.483.026 5.46.024 5.436.022 5.418.02 5.399.019 5.381c-.002-.022-.004-.043-.006-.065-.001-.02-.003-.04-.004-.061-.001-.02-.002-.041-.003-.061-.001-.02-.002-.041-.003-.062-.001-.02-.001-.04-.002-.06 0-.021 0-.043-.001-.064v-.122c0-.021.001-.042.001-.063 0-.02.001-.04.002-.06L.006 4.7c.001-.02.002-.041.003-.061.001-.02.002-.04.004-.061.002-.021.003-.043.005-.064.002-.019.004-.037.006-.056.002-.024.005-.047.007-.07l.006-.048c.003-.026.007-.052.01-.078.002-.014.003-.027.005-.04.004-.029.009-.059.014-.088.002-.009.003-.019.005-.028.006-.033.012-.067.018-.1l.003-.015c.007-.038.015-.075.023-.113v-.001c.198-.904.649-1.737 1.317-2.412C2.361.527 3.6.007 4.919.002L5.324 0l.34.001 4.98 4.946-4.98 4.946-.34.002-.405-.002Z" data-v-f258a344></path><path fill="var(--joy-color-brand-primary-50)" d="M16.3651.002c1.319.005 2.558.525 3.487 1.463.668.675 1.118 1.507 1.317 2.413v.001c.008.038.016.075.023.113l.003.015c.006.033.012.066.018.1.002.009.003.019.005.028.005.029.009.059.014.088.002.013.004.026.005.039.004.026.007.052.01.078l.006.048c.003.023.005.047.007.07.002.019.003.037.005.056.002.021.004.043.005.064.001.02.003.04.004.061.001.02.002.041.003.061l.003.063c.001.02.001.04.002.06.001.021.001.042.001.063v.122c0 .021-.001.042-.001.063 0 .02-.001.04-.002.06l-.003.063c-.001.02-.002.041-.003.061-.001.02-.002.04-.004.061-.002.021-.003.043-.005.064-.002.019-.003.037-.005.056-.002.024-.005.047-.007.07l-.006.048c-.003.026-.007.052-.01.078-.002.013-.004.026-.005.039-.004.029-.009.059-.014.088-.002.009-.003.019-.005.028-.006.033-.012.067-.018.1l-.003.015c-.007.038-.015.075-.023.113v.001c-.199.906-.649 1.738-1.317 2.413-.929.938-2.168 1.458-3.487 1.463l-.405.002-.34-.001-4.98-4.946 4.98-4.946.339-.001.406.002Z" data-v-f258a344></path></g><defs data-v-f258a344><clipPath id="a" data-v-f258a344><path fill="#fff" d="M0 0h21.283v9.895H0z" data-v-f258a344></path></clipPath></defs>', 2), al = [
289
- ll
290
- ], ol = {
288
+ }, nl = /* @__PURE__ */ lt('<g clip-path="url(#a)" data-v-f258a344><path fill="var(--joy-color-tertiary-10)" d="M4.919 9.893c-1.32-.005-2.558-.526-3.487-1.464C.764 7.754.313 6.922.115 6.016v-.001c-.008-.037-.016-.074-.024-.112 0-.005-.001-.01-.002-.015-.006-.033-.012-.066-.018-.1C.069 5.779.068 5.77.066 5.76c-.005-.029-.009-.058-.014-.088-.002-.013-.003-.026-.005-.039-.004-.026-.007-.052-.01-.078l-.006-.048C.028 5.483.026 5.46.024 5.436.022 5.418.02 5.399.019 5.381c-.002-.022-.004-.043-.006-.065-.001-.02-.003-.04-.004-.061-.001-.02-.002-.041-.003-.061-.001-.02-.002-.041-.003-.062-.001-.02-.001-.04-.002-.06 0-.021 0-.043-.001-.064v-.122c0-.021.001-.042.001-.063 0-.02.001-.04.002-.06L.006 4.7c.001-.02.002-.041.003-.061.001-.02.002-.04.004-.061.002-.021.003-.043.005-.064.002-.019.004-.037.006-.056.002-.024.005-.047.007-.07l.006-.048c.003-.026.007-.052.01-.078.002-.014.003-.027.005-.04.004-.029.009-.059.014-.088.002-.009.003-.019.005-.028.006-.033.012-.067.018-.1l.003-.015c.007-.038.015-.075.023-.113v-.001c.198-.904.649-1.737 1.317-2.412C2.361.527 3.6.007 4.919.002L5.324 0l.34.001 4.98 4.946-4.98 4.946-.34.002-.405-.002Z" data-v-f258a344></path><path fill="var(--joy-color-brand-primary-50)" d="M16.3651.002c1.319.005 2.558.525 3.487 1.463.668.675 1.118 1.507 1.317 2.413v.001c.008.038.016.075.023.113l.003.015c.006.033.012.066.018.1.002.009.003.019.005.028.005.029.009.059.014.088.002.013.004.026.005.039.004.026.007.052.01.078l.006.048c.003.023.005.047.007.07.002.019.003.037.005.056.002.021.004.043.005.064.001.02.003.04.004.061.001.02.002.041.003.061l.003.063c.001.02.001.04.002.06.001.021.001.042.001.063v.122c0 .021-.001.042-.001.063 0 .02-.001.04-.002.06l-.003.063c-.001.02-.002.041-.003.061-.001.02-.002.04-.004.061-.002.021-.003.043-.005.064-.002.019-.003.037-.005.056-.002.024-.005.047-.007.07l-.006.048c-.003.026-.007.052-.01.078-.002.013-.004.026-.005.039-.004.029-.009.059-.014.088-.002.009-.003.019-.005.028-.006.033-.012.067-.018.1l-.003.015c-.007.038-.015.075-.023.113v.001c-.199.906-.649 1.738-1.317 2.413-.929.938-2.168 1.458-3.487 1.463l-.405.002-.34-.001-4.98-4.946 4.98-4.946.339-.001.406.002Z" data-v-f258a344></path></g><defs data-v-f258a344><clipPath id="a" data-v-f258a344><path fill="#fff" d="M0 0h21.283v9.895H0z" data-v-f258a344></path></clipPath></defs>', 2), ol = [
289
+ nl
290
+ ], rl = {
291
291
  key: 4,
292
292
  class: "joy-badge-level__highpotential-program",
293
293
  xmlns: "http://www.w3.org/2000/svg",
294
294
  fill: "none",
295
295
  viewBox: "0 0 12 14"
296
- }, nl = /* @__PURE__ */ D(() => /* @__PURE__ */ _("g", { "clip-path": "url(#a)" }, [
296
+ }, il = /* @__PURE__ */ H(() => /* @__PURE__ */ _("g", { "clip-path": "url(#a)" }, [
297
297
  /* @__PURE__ */ _("path", {
298
298
  fill: "#FFC200",
299
299
  d: "M.00241952 6.50818C.00887156 4.89669.639559 3.38347 1.77754 2.24877c.8186-.8155 1.82835-1.366202 2.926-1.608251h.00081c.04516-.009747.09113-.019494.1371-.028429.00565-.001625.0121-.002437.01775-.004061.04032-.008123.08065-.015433.12097-.021931.0113-.001624.02259-.004061.03388-.005686.03548-.005685.07097-.011371.10726-.016245.01613-.002436.03146-.004873.04759-.006498.03064-.004873.0629-.008934.09436-.012995.01935-.002437.03871-.004874.05887-.006498.02823-.003249.05646-.006498.08549-.008935.02178-.002437.04436-.004874.06694-.006498.02581-.002437.05242-.004061.07823-.006498.0242-.001625.0492-.003249.07339-.004874.0242-.001624.0492-.003249.0742-.004061.02581-.001624.05081-.002437.07662-.003249.0242-.000812.04839-.001624.07259-.002437C5.87539.500812 5.9004.500812 5.92621.5h.07419c.0242 0 .0492 0 .0734.000812.0258 0 .05161.000812.07661.001625.0242.000812.04839.001624.07259.002436.02581 0 .05162.001625.07742.002437.02501.000812.0492.002437.0742.004061.0242.001625.0492.003249.07339.004874.02581.001624.05243.004061.07824.006498.02177.001624.04435.004061.06694.006498.02822.002437.05645.005686.08549.008935.01935.002436.03871.004061.05887.006498.03145.004061.06291.008122.09436.012183.01613.002437.03145.004874.04758.00731.03549.004874.07098.01056.10646.017058.01129.001624.02259.003249.03388.004873.04032.00731.08065.014621.12097.021931.00565.000812.0121.002436.01775.003249.04597.009747.09194.018681.1371.029241h.00081c1.09846.242861 2.1082.792751 2.92604 1.608251 1.1379 1.1347 1.7686 2.64792 1.7751 4.25941L12 7.00284l-.0016.41506L6.0004 13.5.00161301 7.4179 0 7.00284l.00241952-.49466Z"
300
300
  })
301
- ], -1)), il = /* @__PURE__ */ D(() => /* @__PURE__ */ _("defs", null, [
301
+ ], -1)), sl = /* @__PURE__ */ H(() => /* @__PURE__ */ _("defs", null, [
302
302
  /* @__PURE__ */ _("clipPath", { id: "a" }, [
303
303
  /* @__PURE__ */ _("path", {
304
304
  fill: "#fff",
@@ -306,10 +306,10 @@ const D = (e) => (se("data-v-f258a344"), e = e(), ue(), e), qt = { class: "joy-b
306
306
  transform: "translate(0 .5)"
307
307
  })
308
308
  ])
309
- ], -1)), rl = [
310
- nl,
311
- il
312
- ], sl = /* @__PURE__ */ $({
309
+ ], -1)), ul = [
310
+ il,
311
+ sl
312
+ ], dl = /* @__PURE__ */ j({
313
313
  __name: "VJoyBadgeLevel",
314
314
  props: {
315
315
  /** Badge type. HIGH_POTENTIAL, SUPERMALTER, etc... */
@@ -331,70 +331,70 @@ const D = (e) => (se("data-v-f258a344"), e = e(), ue(), e), qt = { class: "joy-b
331
331
  setup(e) {
332
332
  const l = e, t = V(() => {
333
333
  switch (l.type) {
334
- case ie.HIGH_POTENTIAL:
335
- case J.HIGH_POTENTIAL:
334
+ case re.HIGH_POTENTIAL:
335
+ case P.HIGH_POTENTIAL:
336
336
  return "High Potential";
337
- case J.HIGH_POTENTIAL_AUTO:
337
+ case P.HIGH_POTENTIAL_AUTO:
338
338
  return "High Potential Auto";
339
- case J.MALT_LINKER:
339
+ case P.MALT_LINKER:
340
340
  return "Malt Linker";
341
- case J.NEW:
341
+ case P.NEW:
342
342
  return "New";
343
- case J.SUPER_MALTER:
343
+ case P.SUPER_MALTER:
344
344
  return "Supermalter";
345
- case J.VERIFIED:
345
+ case P.VERIFIED:
346
346
  return "Verified";
347
347
  default:
348
348
  return "Supermalter";
349
349
  }
350
350
  });
351
- return (a, o) => (s(), m("span", qt, [
352
- e.type === j(J).SUPER_MALTER ? (s(!0), m(H, { key: 0 }, U(e.superMalterLevel, (i, r) => (s(), m("svg", {
353
- key: r,
351
+ return (a, n) => (d(), m("span", Nt, [
352
+ e.type === k(P).SUPER_MALTER ? (d(!0), m(D, { key: 0 }, G(e.superMalterLevel, (r, i) => (d(), m("svg", {
353
+ key: i,
354
354
  class: "joy-badge-level__supermalter",
355
355
  xmlns: "http://www.w3.org/2000/svg",
356
356
  fill: "none",
357
357
  viewBox: "0 0 12 18"
358
- }, Ht))), 128)) : h("", !0),
359
- e.type === j(J).HIGH_POTENTIAL ? (s(), m("svg", Dt, Ut)) : h("", !0),
360
- e.type === j(J).HIGH_POTENTIAL_AUTO ? (s(), m("svg", Zt, el)) : h("", !0),
361
- e.type === j(J).MALT_LINKER ? (s(), m("svg", tl, al)) : h("", !0),
362
- e.type === j(ie).HIGH_POTENTIAL ? (s(), m("svg", ol, rl)) : h("", !0),
358
+ }, Wt))), 128)) : b("", !0),
359
+ e.type === k(P).HIGH_POTENTIAL ? (d(), m("svg", Ut, Zt)) : b("", !0),
360
+ e.type === k(P).HIGH_POTENTIAL_AUTO ? (d(), m("svg", Qt, ll)) : b("", !0),
361
+ e.type === k(P).MALT_LINKER ? (d(), m("svg", al, ol)) : b("", !0),
362
+ e.type === k(re).HIGH_POTENTIAL ? (d(), m("svg", rl, ul)) : b("", !0),
363
363
  _("span", {
364
364
  class: S([
365
365
  {
366
366
  "joy-badge-level__tag": e.visibleText,
367
- red: e.type === j(J).NEW || e.type === j(J).MALT_LINKER || e.type === j(J).HIGH_POTENTIAL_AUTO,
368
- blue: e.type === j(ie).HIGH_POTENTIAL || e.type === j(J).HIGH_POTENTIAL || e.type === j(J).SUPER_MALTER,
369
- turquoise: e.type === j(J).VERIFIED
367
+ red: e.type === k(P).NEW || e.type === k(P).MALT_LINKER || e.type === k(P).HIGH_POTENTIAL_AUTO,
368
+ blue: e.type === k(re).HIGH_POTENTIAL || e.type === k(P).HIGH_POTENTIAL || e.type === k(P).SUPER_MALTER,
369
+ turquoise: e.type === k(P).VERIFIED
370
370
  }
371
371
  ])
372
372
  }, [
373
373
  e.visibleText ? g(a.$slots, "default", { key: 0 }, () => [
374
- B(L(t.value), 1)
375
- ], !0) : h("", !0)
374
+ B(C(t.value), 1)
375
+ ], !0) : b("", !0)
376
376
  ], 2)
377
377
  ]));
378
378
  }
379
379
  });
380
- const ul = /* @__PURE__ */ k(sl, [["__scopeId", "data-v-f258a344"]]), dl = ["teal", "white"], cl = /* @__PURE__ */ $({
380
+ const cl = /* @__PURE__ */ $(dl, [["__scopeId", "data-v-f258a344"]]), fl = ["teal", "white"], yl = /* @__PURE__ */ j({
381
381
  __name: "VJoySpinner",
382
382
  props: {
383
383
  color: {
384
384
  type: String,
385
385
  validator(e) {
386
- return dl.includes(e);
386
+ return fl.includes(e);
387
387
  }
388
388
  }
389
389
  },
390
390
  setup(e) {
391
- return (l, t) => (s(), m("div", {
391
+ return (l, t) => (d(), m("div", {
392
392
  class: S(["joy-spinner", `joy-spinner_${e.color}`])
393
393
  }, null, 2));
394
394
  }
395
395
  });
396
- const Ve = /* @__PURE__ */ k(cl, [["__scopeId", "data-v-616a29d0"]]), fl = ["primary", "secondary"], yl = ["neutral", "success", "info", "warning", "error"], vl = ["main", "admin", "ghost", "white"], pl = [...fl, ...vl], ml = ["large", "medium", "small", "xsmall", "xxsmall"];
397
- function _l(e) {
396
+ const ke = /* @__PURE__ */ $(yl, [["__scopeId", "data-v-616a29d0"]]), vl = ["primary", "secondary"], pl = ["neutral", "success", "info", "warning", "error"], ml = ["main", "admin", "ghost", "white"], _l = [...vl, ...ml], bl = ["large", "medium", "small", "xsmall", "xxsmall"];
397
+ function gl(e) {
398
398
  let l;
399
399
  switch (e) {
400
400
  case "error":
@@ -418,9 +418,9 @@ function hl(e) {
418
418
  if (t.length)
419
419
  return t[0].focus();
420
420
  }
421
- const ot = function(e = 10) {
421
+ const Ve = function(e = 10) {
422
422
  return Math.random().toString(36).substring(2, e + 2);
423
- }, gl = /* @__PURE__ */ $({
423
+ }, wl = /* @__PURE__ */ j({
424
424
  __name: "VJoyButton",
425
425
  props: {
426
426
  /**
@@ -456,7 +456,7 @@ const ot = function(e = 10) {
456
456
  type: String,
457
457
  default: "primary",
458
458
  validator(e) {
459
- return pl.includes(e);
459
+ return _l.includes(e);
460
460
  }
461
461
  },
462
462
  /** Button or Link size */
@@ -464,12 +464,12 @@ const ot = function(e = 10) {
464
464
  type: String,
465
465
  default: "medium",
466
466
  validator(e) {
467
- return ml.includes(e);
467
+ return bl.includes(e);
468
468
  }
469
469
  }
470
470
  },
471
471
  setup(e, { expose: l }) {
472
- const t = e, a = we(), o = "joy-button--" + ot(), i = V(() => {
472
+ const t = e, a = Se(), n = "joy-button--" + Ve(), r = V(() => {
473
473
  switch (t.size) {
474
474
  case "xxsmall":
475
475
  return "xxsmall";
@@ -480,54 +480,59 @@ const ot = function(e = 10) {
480
480
  default:
481
481
  return "small";
482
482
  }
483
- }), r = V(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
484
- return l({ randomId: o }), (n, c) => (s(), C(oe(j(a).href ? "a" : "button"), {
485
- disabled: e.loading || j(a).disabled,
486
- type: j(a).type || "button",
487
- class: S([
488
- "joy-button",
489
- `joy-button_${e.variant}`,
490
- `joy-button_${e.size}`,
491
- {
492
- "joy-button_circle": e.circle,
493
- "joy-button_loading": e.loading
494
- }
495
- ]),
496
- "aria-labelledby": (n.$slots.default || e.label) && o
497
- }, {
498
- default: O(() => [
499
- e.icon && e.iconPosition === "left" ? (s(), C(E, {
500
- key: 0,
501
- class: "joy-button_icon joy-button_icon--left",
502
- name: e.icon,
503
- size: i.value,
504
- "aria-hidden": "true"
505
- }, null, 8, ["name", "size"])) : h("", !0),
506
- e.loading ? (s(), C(Ve, {
507
- key: 1,
508
- color: r.value
509
- }, null, 8, ["color"])) : h("", !0),
510
- _("span", {
511
- id: o,
512
- class: "joy-button--slot"
513
- }, [
514
- g(n.$slots, "default", {}, () => [
515
- B(L(e.label), 1)
516
- ], !0)
483
+ }), i = V(() => ["white", "ghost", "secondary"].includes(t.variant) ? "teal" : "white");
484
+ return l({ randomId: n }), (o, y) => {
485
+ const p = _t("joy-ripple");
486
+ return bt((d(), x(ne(k(a).href ? "a" : "button"), {
487
+ disabled: e.loading || k(a).disabled,
488
+ type: k(a).type || "button",
489
+ class: S([
490
+ "joy-button",
491
+ `joy-button_${e.variant}`,
492
+ `joy-button_${e.size}`,
493
+ {
494
+ "joy-button_circle": e.circle,
495
+ "joy-button_loading": e.loading
496
+ }
517
497
  ]),
518
- e.icon && e.iconPosition === "right" ? (s(), C(E, {
519
- key: 2,
520
- class: "joy-button_icon joy-button_icon--right",
521
- name: e.icon,
522
- size: i.value,
523
- "aria-hidden": "true"
524
- }, null, 8, ["name", "size"])) : h("", !0)
525
- ]),
526
- _: 3
527
- }, 8, ["disabled", "type", "class", "aria-labelledby"]));
498
+ "aria-labelledby": (o.$slots.default || e.label) && n
499
+ }, {
500
+ default: O(() => [
501
+ e.icon && e.iconPosition === "left" ? (d(), x(T, {
502
+ key: 0,
503
+ class: "joy-button_icon joy-button_icon--left",
504
+ name: e.icon,
505
+ size: r.value,
506
+ "aria-hidden": "true"
507
+ }, null, 8, ["name", "size"])) : b("", !0),
508
+ e.loading ? (d(), x(ke, {
509
+ key: 1,
510
+ color: i.value
511
+ }, null, 8, ["color"])) : b("", !0),
512
+ _("span", {
513
+ id: n,
514
+ class: "joy-button--slot"
515
+ }, [
516
+ g(o.$slots, "default", {}, () => [
517
+ B(C(e.label), 1)
518
+ ], !0)
519
+ ]),
520
+ e.icon && e.iconPosition === "right" ? (d(), x(T, {
521
+ key: 2,
522
+ class: "joy-button_icon joy-button_icon--right",
523
+ name: e.icon,
524
+ size: r.value,
525
+ "aria-hidden": "true"
526
+ }, null, 8, ["name", "size"])) : b("", !0)
527
+ ]),
528
+ _: 3
529
+ }, 8, ["disabled", "type", "class", "aria-labelledby"])), [
530
+ [p]
531
+ ]);
532
+ };
528
533
  }
529
534
  });
530
- const xe = /* @__PURE__ */ k(gl, [["__scopeId", "data-v-a1870b08"]]), bl = ["aria-checked", "aria-hidden"], wl = { class: "joy-checkbox__input-wrapper" }, Sl = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], $l = { class: "joy-checkbox__content-wrapper" }, jl = { class: "joy-checkbox__content" }, kl = /* @__PURE__ */ $({
535
+ const xe = /* @__PURE__ */ $(wl, [["__scopeId", "data-v-a31d0dc4"]]), Sl = ["aria-checked", "aria-hidden"], jl = { class: "joy-checkbox__input-wrapper" }, $l = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], kl = { class: "joy-checkbox__content-wrapper" }, Vl = { class: "joy-checkbox__content" }, xl = /* @__PURE__ */ j({
531
536
  __name: "VJoyCheckbox",
532
537
  props: {
533
538
  /** 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 */
@@ -582,21 +587,21 @@ const xe = /* @__PURE__ */ k(gl, [["__scopeId", "data-v-a1870b08"]]), bl = ["ari
582
587
  },
583
588
  emits: ["update:checked", "focus", "blur"],
584
589
  setup(e, { expose: l, emit: t }) {
585
- const a = e, o = w(), i = w(a.indeterminate), r = w(a.invalid), n = w(!1), c = {
586
- onChange: (v) => {
587
- const d = v.target.checked;
588
- i.value = !1, r.value = !1, t("update:checked", d);
590
+ const a = e, n = w(), r = w(a.indeterminate), i = w(a.invalid), o = w(!1), y = {
591
+ onChange: (p) => {
592
+ const f = p.target.checked;
593
+ r.value = !1, i.value = !1, t("update:checked", f);
589
594
  },
590
595
  onFocus: () => {
591
- n.value = !0, t("focus");
596
+ o.value = !0, t("focus");
592
597
  },
593
598
  onBlur: () => {
594
- n.value = !1, t("blur");
599
+ o.value = !1, t("blur");
595
600
  }
596
601
  };
597
602
  return l({
598
- isIndeterminate: i
599
- }), (v, d) => (s(), m("div", {
603
+ isIndeterminate: r
604
+ }), (p, f) => (d(), m("div", {
600
605
  class: "joy-checkbox__wrapper",
601
606
  "aria-checked": e.checked,
602
607
  "aria-hidden": e.disabled
@@ -606,18 +611,18 @@ const xe = /* @__PURE__ */ k(gl, [["__scopeId", "data-v-a1870b08"]]), bl = ["ari
606
611
  "joy-checkbox",
607
612
  {
608
613
  "joy-checkbox__checked": e.checked,
609
- "joy-checkbox__indeterminate": i.value,
614
+ "joy-checkbox__indeterminate": r.value,
610
615
  "joy-checkbox__disabled": e.disabled,
611
- "joy-checkbox__invalid": r.value,
612
- "joy-checkbox__focusing": n.value && e.displayFocus
616
+ "joy-checkbox__invalid": i.value,
617
+ "joy-checkbox__focusing": o.value && e.displayFocus
613
618
  }
614
619
  ])
615
620
  }, [
616
- _("div", wl, [
621
+ _("div", jl, [
617
622
  _("input", {
618
623
  id: e.id,
619
624
  ref_key: "input",
620
- ref: o,
625
+ ref: n,
621
626
  type: "checkbox",
622
627
  class: "joy-checkbox__input",
623
628
  role: "checkbox",
@@ -627,28 +632,28 @@ const xe = /* @__PURE__ */ k(gl, [["__scopeId", "data-v-a1870b08"]]), bl = ["ari
627
632
  required: e.required,
628
633
  "aria-checked": e.checked,
629
634
  value: e.value,
630
- indeterminate: i.value,
631
- onChange: d[0] || (d[0] = //@ts-ignore
632
- (...y) => c.onChange && c.onChange(...y)),
633
- onFocus: d[1] || (d[1] = //@ts-ignore
634
- (...y) => c.onFocus && c.onFocus(...y)),
635
- onBlur: d[2] || (d[2] = //@ts-ignore
636
- (...y) => c.onBlur && c.onBlur(...y))
637
- }, null, 40, Sl)
635
+ indeterminate: r.value,
636
+ onChange: f[0] || (f[0] = //@ts-ignore
637
+ (...u) => y.onChange && y.onChange(...u)),
638
+ onFocus: f[1] || (f[1] = //@ts-ignore
639
+ (...u) => y.onFocus && y.onFocus(...u)),
640
+ onBlur: f[2] || (f[2] = //@ts-ignore
641
+ (...u) => y.onBlur && y.onBlur(...u))
642
+ }, null, 40, $l)
638
643
  ]),
639
- _("div", $l, [
640
- g(v.$slots, "default", {}, () => [
641
- B(L(e.label), 1)
644
+ _("div", kl, [
645
+ g(p.$slots, "default", {}, () => [
646
+ B(C(e.label), 1)
642
647
  ], !0),
643
- _("div", jl, [
644
- g(v.$slots, "checkbox-content", {}, void 0, !0)
648
+ _("div", Vl, [
649
+ g(p.$slots, "checkbox-content", {}, void 0, !0)
645
650
  ])
646
651
  ])
647
652
  ], 2)
648
- ], 8, bl));
653
+ ], 8, Sl));
649
654
  }
650
655
  });
651
- const Ce = /* @__PURE__ */ k(kl, [["__scopeId", "data-v-27cc9d8c"]]), Vl = ["src", "alt", "title"], xl = /* @__PURE__ */ $({
656
+ const Ie = /* @__PURE__ */ $(xl, [["__scopeId", "data-v-27cc9d8c"]]), Il = ["src", "alt", "title"], Cl = /* @__PURE__ */ j({
652
657
  __name: "VJoyCompanyAvatar",
653
658
  props: {
654
659
  imgSrc: String,
@@ -672,15 +677,15 @@ const Ce = /* @__PURE__ */ k(kl, [["__scopeId", "data-v-27cc9d8c"]]), Vl = ["src
672
677
  return "xsmall";
673
678
  }
674
679
  });
675
- return (a, o) => (s(), m("div", {
680
+ return (a, n) => (d(), m("div", {
676
681
  class: S(["joy-company-avatar", `joy-company-avatar--${e.size}`])
677
682
  }, [
678
- e.imgSrc ? (s(), m("img", {
683
+ e.imgSrc ? (d(), m("img", {
679
684
  key: 0,
680
685
  src: e.imgSrc,
681
686
  alt: e.imgAlt || e.companyName,
682
687
  title: e.companyName
683
- }, null, 8, Vl)) : (s(), C(j(E), {
688
+ }, null, 8, Il)) : (d(), x(k(T), {
684
689
  key: 1,
685
690
  name: "company-placeholder",
686
691
  size: t.value
@@ -688,13 +693,13 @@ const Ce = /* @__PURE__ */ k(kl, [["__scopeId", "data-v-27cc9d8c"]]), Vl = ["src
688
693
  ], 2));
689
694
  }
690
695
  });
691
- const Cl = /* @__PURE__ */ k(xl, [["__scopeId", "data-v-7ab52b19"]]), Ll = { class: "joy-counter" }, Il = ["aria-label", "disabled"], Bl = { class: "joy-counter__input-wrapper" }, Ol = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Tl = ["aria-label", "disabled"], Pl = {
696
+ const Ll = /* @__PURE__ */ $(Cl, [["__scopeId", "data-v-7ab52b19"]]), Bl = { class: "joy-counter" }, Ol = ["aria-label", "disabled"], Tl = { class: "joy-counter__input-wrapper" }, Jl = ["id", "min", "max", "aria-invalid", "name", "required", "value"], El = ["aria-label", "disabled"], Pl = {
692
697
  key: 0,
693
698
  class: "joy-counter_error"
694
- }, Jl = {
699
+ }, Al = {
695
700
  inheritAttrs: !1
696
- }, El = /* @__PURE__ */ $({
697
- ...Jl,
701
+ }, zl = /* @__PURE__ */ j({
702
+ ...Al,
698
703
  __name: "VJoyCounter",
699
704
  props: {
700
705
  /** Removes any interactivity */
@@ -761,46 +766,46 @@ const Cl = /* @__PURE__ */ k(xl, [["__scopeId", "data-v-7ab52b19"]]), Ll = { cla
761
766
  },
762
767
  emits: ["update:modelValue"],
763
768
  setup(e, { expose: l, emit: t }) {
764
- const a = e, o = w(!1), i = w(!1);
765
- function r() {
766
- const p = v(!1);
767
- p >= 0 ? t("update:modelValue", p <= a.min ? a.min : p) : t("update:modelValue", 0), c();
769
+ const a = e, n = w(!1), r = w(!1);
770
+ function i() {
771
+ const v = p(!1);
772
+ v >= 0 ? t("update:modelValue", v <= a.min ? a.min : v) : t("update:modelValue", 0), y();
768
773
  }
769
- function n() {
770
- const p = v();
771
- a.max && p <= a.max ? t("update:modelValue", p >= a.max ? a.max : p) : a.max && p > a.max ? t("update:modelValue", a.max) : t("update:modelValue", p), c();
774
+ function o() {
775
+ const v = p();
776
+ a.max && v <= a.max ? t("update:modelValue", v >= a.max ? a.max : v) : a.max && v > a.max ? t("update:modelValue", a.max) : t("update:modelValue", v), y();
772
777
  }
773
- function c() {
774
- o.value = !d();
778
+ function y() {
779
+ n.value = !f();
775
780
  }
776
- function v(p = !0) {
777
- const b = a.step.toString().split("."), x = b.length === 2 ? b[1].length : 0;
778
- return parseFloat(p ? (a.modelValue + a.step).toFixed(x) : (a.modelValue - a.step).toFixed(x));
781
+ function p(v = !0) {
782
+ const h = a.step.toString().split("."), I = h.length === 2 ? h[1].length : 0;
783
+ return parseFloat(v ? (a.modelValue + a.step).toFixed(I) : (a.modelValue - a.step).toFixed(I));
779
784
  }
780
- function d() {
781
- return y() && f();
785
+ function f() {
786
+ return u() && c();
782
787
  }
783
- function y() {
788
+ function u() {
784
789
  return !a.max || a.modelValue <= a.max;
785
790
  }
786
- function f() {
791
+ function c() {
787
792
  return a.min <= a.modelValue;
788
793
  }
789
- const u = {
790
- onInput: (p) => {
791
- t("update:modelValue", +p.target.value || 0), o.value = !1;
794
+ const s = {
795
+ onInput: (v) => {
796
+ t("update:modelValue", +v.target.value || 0), n.value = !1;
792
797
  },
793
798
  onFocus: () => {
794
- i.value = !0;
799
+ r.value = !0;
795
800
  },
796
801
  onBlur: () => {
797
- i.value = !1, c();
802
+ r.value = !1, y();
798
803
  }
799
804
  };
800
805
  return l({
801
806
  props: a
802
- }), (p, b) => (s(), m("div", Ll, [
803
- e.label ? (s(), C(j(ee), {
807
+ }), (v, h) => (d(), m("div", Bl, [
808
+ e.label ? (d(), x(k(ee), {
804
809
  key: 0,
805
810
  for: e.id,
806
811
  required: e.required && e.requiredMark,
@@ -808,63 +813,63 @@ const Cl = /* @__PURE__ */ k(xl, [["__scopeId", "data-v-7ab52b19"]]), Ll = { cla
808
813
  size: e.labelSize
809
814
  }, {
810
815
  default: O(() => [
811
- g(p.$slots, "default", {}, () => [
812
- B(L(e.label), 1)
816
+ g(v.$slots, "default", {}, () => [
817
+ B(C(e.label), 1)
813
818
  ], !0)
814
819
  ]),
815
820
  _: 3
816
- }, 8, ["for", "required", "optional-label", "size"])) : h("", !0),
821
+ }, 8, ["for", "required", "optional-label", "size"])) : b("", !0),
817
822
  _("div", {
818
- class: S(["joy-counter__wrapper", { "joy-counter--focusing": i.value }])
823
+ class: S(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
819
824
  }, [
820
825
  _("button", {
821
826
  class: "joy-counter__decrement",
822
827
  type: "button",
823
828
  "aria-label": e.labelDecrement,
824
829
  disabled: e.modelValue <= e.min,
825
- onClick: r
830
+ onClick: i
826
831
  }, [
827
- R(j(E), { name: "minus" })
828
- ], 8, Il),
829
- _("div", Bl, [
830
- _("input", K({
832
+ R(k(T), { name: "minus" })
833
+ ], 8, Ol),
834
+ _("div", Tl, [
835
+ _("input", Z({
831
836
  id: e.id,
832
837
  ref: "input",
833
838
  type: "number",
834
- class: { "joy-counter__invalid": e.invalid || o.value },
839
+ class: { "joy-counter__invalid": e.invalid || n.value },
835
840
  min: e.min,
836
841
  max: e.max,
837
- "aria-invalid": e.invalid || o.value,
842
+ "aria-invalid": e.invalid || n.value,
838
843
  name: e.name,
839
844
  required: e.required,
840
845
  step: "any",
841
846
  value: e.modelValue
842
- }, p.$attrs, {
843
- onInput: b[0] || (b[0] = //@ts-ignore
844
- (...x) => u.onInput && u.onInput(...x)),
845
- onBlur: b[1] || (b[1] = //@ts-ignore
846
- (...x) => u.onBlur && u.onBlur(...x)),
847
- onFocus: b[2] || (b[2] = //@ts-ignore
848
- (...x) => u.onFocus && u.onFocus(...x))
849
- }), null, 16, Ol)
847
+ }, v.$attrs, {
848
+ onInput: h[0] || (h[0] = //@ts-ignore
849
+ (...I) => s.onInput && s.onInput(...I)),
850
+ onBlur: h[1] || (h[1] = //@ts-ignore
851
+ (...I) => s.onBlur && s.onBlur(...I)),
852
+ onFocus: h[2] || (h[2] = //@ts-ignore
853
+ (...I) => s.onFocus && s.onFocus(...I))
854
+ }), null, 16, Jl)
850
855
  ]),
851
856
  _("button", {
852
857
  class: "joy-counter__increment",
853
858
  type: "button",
854
859
  "aria-label": e.labelIncrement,
855
860
  disabled: e.max ? e.modelValue >= e.max : !1,
856
- onClick: n
861
+ onClick: o
857
862
  }, [
858
- R(j(E), { name: "add" })
859
- ], 8, Tl),
860
- e.invalid && e.errorMessage ? (s(), m("div", Pl, [
861
- R(j(ft), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
862
- ])) : h("", !0)
863
+ R(k(T), { name: "add" })
864
+ ], 8, El),
865
+ e.invalid && e.errorMessage ? (d(), m("div", Pl, [
866
+ R(k(ft), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
867
+ ])) : b("", !0)
863
868
  ], 2)
864
869
  ]));
865
870
  }
866
871
  });
867
- const zl = /* @__PURE__ */ k(El, [["__scopeId", "data-v-a59ac0ad"]]), Al = ["disabled"], Fl = { class: "joy-divider-cta--icon" }, ql = { class: "joy-divider-cta--content" }, Nl = { class: "joy-divider-cta--content---title" }, Ml = /* @__PURE__ */ $({
872
+ const ql = /* @__PURE__ */ $(zl, [["__scopeId", "data-v-a59ac0ad"]]), Fl = ["disabled"], Ml = { class: "joy-divider-cta--icon" }, Nl = { class: "joy-divider-cta--content" }, Rl = { class: "joy-divider-cta--content---title" }, Dl = /* @__PURE__ */ j({
868
873
  __name: "VJoyDividerCta",
869
874
  props: {
870
875
  disabled: {
@@ -873,66 +878,66 @@ const zl = /* @__PURE__ */ k(El, [["__scopeId", "data-v-a59ac0ad"]]), Al = ["dis
873
878
  }
874
879
  },
875
880
  setup(e) {
876
- return (l, t) => (s(), m("button", {
881
+ return (l, t) => (d(), m("button", {
877
882
  type: "button",
878
883
  class: S(["joy-divider-cta", { "joy-divider-cta__disabled": e.disabled }]),
879
884
  disabled: e.disabled
880
885
  }, [
881
- _("div", Fl, [
882
- R(E, { name: "add" })
886
+ _("div", Ml, [
887
+ R(T, { name: "add" })
883
888
  ]),
884
- _("div", ql, [
885
- _("p", Nl, [
889
+ _("div", Nl, [
890
+ _("p", Rl, [
886
891
  g(l.$slots, "default", {}, void 0, !0)
887
892
  ]),
888
893
  g(l.$slots, "divider-content", {}, void 0, !0)
889
894
  ])
890
- ], 10, Al));
895
+ ], 10, Fl));
891
896
  }
892
897
  });
893
- const Rl = /* @__PURE__ */ k(Ml, [["__scopeId", "data-v-a3d693c3"]]);
898
+ const Hl = /* @__PURE__ */ $(Dl, [["__scopeId", "data-v-a3d693c3"]]);
894
899
  var Oe;
895
- const le = typeof window < "u", nt = (e) => typeof e == "string", N = () => {
896
- }, re = le && ((Oe = window == null ? void 0 : window.navigator) == null ? void 0 : Oe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
897
- function A(e) {
898
- return typeof e == "function" ? e() : j(e);
900
+ const le = typeof window < "u", ot = (e) => typeof e == "string", M = () => {
901
+ }, ie = le && ((Oe = window == null ? void 0 : window.navigator) == null ? void 0 : Oe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
902
+ function z(e) {
903
+ return typeof e == "function" ? e() : k(e);
899
904
  }
900
- function it(e, l) {
905
+ function rt(e, l) {
901
906
  function t(...a) {
902
- return new Promise((o, i) => {
903
- Promise.resolve(e(() => l.apply(this, a), { fn: l, thisArg: this, args: a })).then(o).catch(i);
907
+ return new Promise((n, r) => {
908
+ Promise.resolve(e(() => l.apply(this, a), { fn: l, thisArg: this, args: a })).then(n).catch(r);
904
909
  });
905
910
  }
906
911
  return t;
907
912
  }
908
- function Hl(e, l = {}) {
909
- let t, a, o = N;
910
- const i = (n) => {
911
- clearTimeout(n), o(), o = N;
913
+ function Wl(e, l = {}) {
914
+ let t, a, n = M;
915
+ const r = (o) => {
916
+ clearTimeout(o), n(), n = M;
912
917
  };
913
- return (n) => {
914
- const c = A(e), v = A(l.maxWait);
915
- return t && i(t), c <= 0 || v !== void 0 && v <= 0 ? (a && (i(a), a = null), Promise.resolve(n())) : new Promise((d, y) => {
916
- o = l.rejectOnCancel ? y : d, v && !a && (a = setTimeout(() => {
917
- t && i(t), a = null, d(n());
918
- }, v)), t = setTimeout(() => {
919
- a && i(a), a = null, d(n());
920
- }, c);
918
+ return (o) => {
919
+ const y = z(e), p = z(l.maxWait);
920
+ return t && r(t), y <= 0 || p !== void 0 && p <= 0 ? (a && (r(a), a = null), Promise.resolve(o())) : new Promise((f, u) => {
921
+ n = l.rejectOnCancel ? u : f, p && !a && (a = setTimeout(() => {
922
+ t && r(t), a = null, f(o());
923
+ }, p)), t = setTimeout(() => {
924
+ a && r(a), a = null, f(o());
925
+ }, y);
921
926
  });
922
927
  };
923
928
  }
924
- function Dl(e, l = !0, t = !0, a = !1) {
925
- let o = 0, i, r = !0, n = N, c;
926
- const v = () => {
927
- i && (clearTimeout(i), i = void 0, n(), n = N);
929
+ function Ul(e, l = !0, t = !0, a = !1) {
930
+ let n = 0, r, i = !0, o = M, y;
931
+ const p = () => {
932
+ r && (clearTimeout(r), r = void 0, o(), o = M);
928
933
  };
929
- return (y) => {
930
- const f = A(e), u = Date.now() - o, p = () => c = y();
931
- return v(), f <= 0 ? (o = Date.now(), p()) : (u > f && (t || !r) ? (o = Date.now(), p()) : l && (c = new Promise((b, x) => {
932
- n = a ? x : b, i = setTimeout(() => {
933
- o = Date.now(), r = !0, b(p()), v();
934
- }, Math.max(0, f - u));
935
- })), !t && !i && (i = setTimeout(() => r = !0, f)), r = !1, c);
934
+ return (u) => {
935
+ const c = z(e), s = Date.now() - n, v = () => y = u();
936
+ return p(), c <= 0 ? (n = Date.now(), v()) : (s > c && (t || !i) ? (n = Date.now(), v()) : l && (y = new Promise((h, I) => {
937
+ o = a ? I : h, r = setTimeout(() => {
938
+ n = Date.now(), i = !0, h(v()), p();
939
+ }, Math.max(0, c - s));
940
+ })), !t && !r && (r = setTimeout(() => i = !0, c)), i = !1, y);
936
941
  };
937
942
  }
938
943
  const W = {
@@ -940,140 +945,140 @@ const W = {
940
945
  updated: "updated",
941
946
  unmounted: "unmounted"
942
947
  };
943
- function Wl(e) {
948
+ function Gl(e) {
944
949
  return e;
945
950
  }
946
951
  function ae(e) {
947
- return _t() ? (ht(e), !0) : !1;
952
+ return gt() ? (ht(e), !0) : !1;
948
953
  }
949
- function Gl(e, l = 200, t = {}) {
950
- return it(Hl(l, t), e);
954
+ function Kl(e, l = 200, t = {}) {
955
+ return rt(Wl(l, t), e);
951
956
  }
952
- function Ul(e, l = 200, t = !1, a = !0, o = !1) {
953
- return it(Dl(l, t, a, o), e);
957
+ function Zl(e, l = 200, t = !1, a = !0, n = !1) {
958
+ return rt(Ul(l, t, a, n), e);
954
959
  }
955
- function Zl(e) {
960
+ function Ql(e) {
956
961
  return typeof e == "function" ? V(e) : w(e);
957
962
  }
958
- function rt(e, l = !0) {
959
- gt() ? Q(e) : l ? e() : lt(e);
963
+ function it(e, l = !0) {
964
+ wt() ? Q(e) : l ? e() : at(e);
960
965
  }
961
966
  function te(e) {
962
967
  var l;
963
- const t = A(e);
968
+ const t = z(e);
964
969
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
965
970
  }
966
- const Le = le ? window : void 0;
971
+ const Ce = le ? window : void 0;
967
972
  le && window.document;
968
973
  le && window.navigator;
969
974
  le && window.location;
970
- function ve(...e) {
971
- let l, t, a, o;
972
- if (nt(e[0]) || Array.isArray(e[0]) ? ([t, a, o] = e, l = Le) : [l, t, a, o] = e, !l)
973
- return N;
975
+ function ye(...e) {
976
+ let l, t, a, n;
977
+ if (ot(e[0]) || Array.isArray(e[0]) ? ([t, a, n] = e, l = Ce) : [l, t, a, n] = e, !l)
978
+ return M;
974
979
  Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
975
- const i = [], r = () => {
976
- i.forEach((d) => d()), i.length = 0;
977
- }, n = (d, y, f, u) => (d.addEventListener(y, f, u), () => d.removeEventListener(y, f, u)), c = P(() => [te(l), A(o)], ([d, y]) => {
978
- r(), d && i.push(...t.flatMap((f) => a.map((u) => n(d, f, u, y))));
979
- }, { immediate: !0, flush: "post" }), v = () => {
980
- c(), r();
980
+ const r = [], i = () => {
981
+ r.forEach((f) => f()), r.length = 0;
982
+ }, o = (f, u, c, s) => (f.addEventListener(u, c, s), () => f.removeEventListener(u, c, s)), y = E(() => [te(l), z(n)], ([f, u]) => {
983
+ i(), f && r.push(...t.flatMap((c) => a.map((s) => o(f, c, s, u))));
984
+ }, { immediate: !0, flush: "post" }), p = () => {
985
+ y(), i();
981
986
  };
982
- return ae(v), v;
987
+ return ae(p), p;
983
988
  }
984
989
  let Te = !1;
985
- function Kl(e, l, t = {}) {
986
- const { window: a = Le, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
990
+ function Yl(e, l, t = {}) {
991
+ const { window: a = Ce, ignore: n = [], capture: r = !0, detectIframe: i = !1 } = t;
987
992
  if (!a)
988
993
  return;
989
- re && !Te && (Te = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", N)));
990
- let n = !0;
991
- const c = (f) => o.some((u) => {
992
- if (typeof u == "string")
993
- return Array.from(a.document.querySelectorAll(u)).some((p) => p === f.target || f.composedPath().includes(p));
994
+ ie && !Te && (Te = !0, Array.from(a.document.body.children).forEach((c) => c.addEventListener("click", M)));
995
+ let o = !0;
996
+ const y = (c) => n.some((s) => {
997
+ if (typeof s == "string")
998
+ return Array.from(a.document.querySelectorAll(s)).some((v) => v === c.target || c.composedPath().includes(v));
994
999
  {
995
- const p = te(u);
996
- return p && (f.target === p || f.composedPath().includes(p));
1000
+ const v = te(s);
1001
+ return v && (c.target === v || c.composedPath().includes(v));
997
1002
  }
998
- }), d = [
999
- ve(a, "click", (f) => {
1000
- const u = te(e);
1001
- if (!(!u || u === f.target || f.composedPath().includes(u))) {
1002
- if (f.detail === 0 && (n = !c(f)), !n) {
1003
- n = !0;
1003
+ }), f = [
1004
+ ye(a, "click", (c) => {
1005
+ const s = te(e);
1006
+ if (!(!s || s === c.target || c.composedPath().includes(s))) {
1007
+ if (c.detail === 0 && (o = !y(c)), !o) {
1008
+ o = !0;
1004
1009
  return;
1005
1010
  }
1006
- l(f);
1011
+ l(c);
1007
1012
  }
1008
- }, { passive: !0, capture: i }),
1009
- ve(a, "pointerdown", (f) => {
1010
- const u = te(e);
1011
- u && (n = !f.composedPath().includes(u) && !c(f));
1013
+ }, { passive: !0, capture: r }),
1014
+ ye(a, "pointerdown", (c) => {
1015
+ const s = te(e);
1016
+ s && (o = !c.composedPath().includes(s) && !y(c));
1012
1017
  }, { passive: !0 }),
1013
- r && ve(a, "blur", (f) => {
1014
- var u;
1015
- const p = te(e);
1016
- ((u = a.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
1018
+ i && ye(a, "blur", (c) => {
1019
+ var s;
1020
+ const v = te(e);
1021
+ ((s = a.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(v != null && v.contains(a.document.activeElement)) && l(c);
1017
1022
  })
1018
1023
  ].filter(Boolean);
1019
- return () => d.forEach((f) => f());
1024
+ return () => f.forEach((c) => c());
1020
1025
  }
1021
- function Ql(e, l = !1) {
1026
+ function Xl(e, l = !1) {
1022
1027
  const t = w(), a = () => t.value = Boolean(e());
1023
- return a(), rt(a, l), t;
1028
+ return a(), it(a, l), t;
1024
1029
  }
1025
- const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _e = "__vueuse_ssr_handlers__";
1026
- me[_e] = me[_e] || {};
1027
- me[_e];
1028
- var Pe = Object.getOwnPropertySymbols, Yl = Object.prototype.hasOwnProperty, Xl = Object.prototype.propertyIsEnumerable, ea = (e, l) => {
1030
+ const pe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, me = "__vueuse_ssr_handlers__";
1031
+ pe[me] = pe[me] || {};
1032
+ pe[me];
1033
+ var Je = Object.getOwnPropertySymbols, ea = Object.prototype.hasOwnProperty, ta = Object.prototype.propertyIsEnumerable, la = (e, l) => {
1029
1034
  var t = {};
1030
1035
  for (var a in e)
1031
- Yl.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1032
- if (e != null && Pe)
1033
- for (var a of Pe(e))
1034
- l.indexOf(a) < 0 && Xl.call(e, a) && (t[a] = e[a]);
1036
+ ea.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1037
+ if (e != null && Je)
1038
+ for (var a of Je(e))
1039
+ l.indexOf(a) < 0 && ta.call(e, a) && (t[a] = e[a]);
1035
1040
  return t;
1036
1041
  };
1037
- function ta(e, l, t = {}) {
1038
- const a = t, { window: o = Le } = a, i = ea(a, ["window"]);
1039
- let r;
1040
- const n = Ql(() => o && "ResizeObserver" in o), c = () => {
1041
- r && (r.disconnect(), r = void 0);
1042
- }, v = P(() => te(e), (y) => {
1043
- c(), n.value && o && y && (r = new ResizeObserver(l), r.observe(y, i));
1044
- }, { immediate: !0, flush: "post" }), d = () => {
1045
- c(), v();
1042
+ function aa(e, l, t = {}) {
1043
+ const a = t, { window: n = Ce } = a, r = la(a, ["window"]);
1044
+ let i;
1045
+ const o = Xl(() => n && "ResizeObserver" in n), y = () => {
1046
+ i && (i.disconnect(), i = void 0);
1047
+ }, p = E(() => te(e), (u) => {
1048
+ y(), o.value && n && u && (i = new ResizeObserver(l), i.observe(u, r));
1049
+ }, { immediate: !0, flush: "post" }), f = () => {
1050
+ y(), p();
1046
1051
  };
1047
- return ae(d), {
1048
- isSupported: n,
1049
- stop: d
1052
+ return ae(f), {
1053
+ isSupported: o,
1054
+ stop: f
1050
1055
  };
1051
1056
  }
1052
- var Je;
1057
+ var Ee;
1053
1058
  (function(e) {
1054
1059
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1055
- })(Je || (Je = {}));
1056
- function la(e) {
1060
+ })(Ee || (Ee = {}));
1061
+ function na(e) {
1057
1062
  const l = w(e == null ? void 0 : e.element), t = w(e == null ? void 0 : e.input);
1058
1063
  function a() {
1059
- var o, i;
1060
- l.value && (l.value.style.height = "1px", l.value.style.height = `${(o = l.value) == null ? void 0 : o.scrollHeight}px`, (i = e == null ? void 0 : e.onResize) == null || i.call(e));
1064
+ var n, r;
1065
+ l.value && (l.value.style.height = "1px", l.value.style.height = `${(n = l.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
1061
1066
  }
1062
- return P([t, l], a, { immediate: !0 }), ta(l, () => a()), e != null && e.watch && P(e.watch, a, { immediate: !0, deep: !0 }), {
1067
+ return E([t, l], a, { immediate: !0 }), aa(l, () => a()), e != null && e.watch && E(e.watch, a, { immediate: !0, deep: !0 }), {
1063
1068
  textarea: l,
1064
1069
  input: t,
1065
1070
  triggerResize: a
1066
1071
  };
1067
1072
  }
1068
- var aa = Object.defineProperty, Ee = Object.getOwnPropertySymbols, oa = Object.prototype.hasOwnProperty, na = Object.prototype.propertyIsEnumerable, ze = (e, l, t) => l in e ? aa(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ia = (e, l) => {
1073
+ var oa = Object.defineProperty, Pe = Object.getOwnPropertySymbols, ra = Object.prototype.hasOwnProperty, ia = Object.prototype.propertyIsEnumerable, Ae = (e, l, t) => l in e ? oa(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, sa = (e, l) => {
1069
1074
  for (var t in l || (l = {}))
1070
- oa.call(l, t) && ze(e, t, l[t]);
1071
- if (Ee)
1072
- for (var t of Ee(l))
1073
- na.call(l, t) && ze(e, t, l[t]);
1075
+ ra.call(l, t) && Ae(e, t, l[t]);
1076
+ if (Pe)
1077
+ for (var t of Pe(l))
1078
+ ia.call(l, t) && Ae(e, t, l[t]);
1074
1079
  return e;
1075
1080
  };
1076
- const ra = {
1081
+ const ua = {
1077
1082
  easeInSine: [0.12, 0, 0.39, 0],
1078
1083
  easeOutSine: [0.61, 1, 0.88, 1],
1079
1084
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1099,297 +1104,297 @@ const ra = {
1099
1104
  easeOutBack: [0.34, 1.56, 0.64, 1],
1100
1105
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1101
1106
  };
1102
- ia({
1103
- linear: Wl
1104
- }, ra);
1105
- const sa = /* @__PURE__ */ $({
1107
+ sa({
1108
+ linear: Gl
1109
+ }, ua);
1110
+ const da = /* @__PURE__ */ j({
1106
1111
  name: "OnClickOutside",
1107
1112
  props: ["as", "options"],
1108
1113
  emits: ["trigger"],
1109
1114
  setup(e, { slots: l, emit: t }) {
1110
1115
  const a = w();
1111
- return Kl(a, (o) => {
1112
- t("trigger", o);
1116
+ return Yl(a, (n) => {
1117
+ t("trigger", n);
1113
1118
  }, e.options), () => {
1114
1119
  if (l.default)
1115
- return bt(e.as || "div", { ref: a }, l.default());
1120
+ return St(e.as || "div", { ref: a }, l.default());
1116
1121
  };
1117
1122
  }
1118
1123
  });
1119
- function F(e) {
1124
+ function q(e) {
1120
1125
  var l;
1121
- const t = A(e);
1126
+ const t = z(e);
1122
1127
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
1123
1128
  }
1124
1129
  const X = le ? window : void 0;
1125
- function M(...e) {
1126
- let l, t, a, o;
1127
- if (nt(e[0]) || Array.isArray(e[0]) ? ([t, a, o] = e, l = X) : [l, t, a, o] = e, !l)
1128
- return N;
1130
+ function N(...e) {
1131
+ let l, t, a, n;
1132
+ if (ot(e[0]) || Array.isArray(e[0]) ? ([t, a, n] = e, l = X) : [l, t, a, n] = e, !l)
1133
+ return M;
1129
1134
  Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
1130
- const i = [], r = () => {
1131
- i.forEach((d) => d()), i.length = 0;
1132
- }, n = (d, y, f, u) => (d.addEventListener(y, f, u), () => d.removeEventListener(y, f, u)), c = P(() => [F(l), A(o)], ([d, y]) => {
1133
- r(), d && i.push(...t.flatMap((f) => a.map((u) => n(d, f, u, y))));
1134
- }, { immediate: !0, flush: "post" }), v = () => {
1135
- c(), r();
1135
+ const r = [], i = () => {
1136
+ r.forEach((f) => f()), r.length = 0;
1137
+ }, o = (f, u, c, s) => (f.addEventListener(u, c, s), () => f.removeEventListener(u, c, s)), y = E(() => [q(l), z(n)], ([f, u]) => {
1138
+ i(), f && r.push(...t.flatMap((c) => a.map((s) => o(f, c, s, u))));
1139
+ }, { immediate: !0, flush: "post" }), p = () => {
1140
+ y(), i();
1136
1141
  };
1137
- return ae(v), v;
1142
+ return ae(p), p;
1138
1143
  }
1139
- let Ae = !1;
1140
- function Fe(e, l, t = {}) {
1141
- const { window: a = X, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
1144
+ let ze = !1;
1145
+ function qe(e, l, t = {}) {
1146
+ const { window: a = X, ignore: n = [], capture: r = !0, detectIframe: i = !1 } = t;
1142
1147
  if (!a)
1143
1148
  return;
1144
- re && !Ae && (Ae = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", N)));
1145
- let n = !0;
1146
- const c = (f) => o.some((u) => {
1147
- if (typeof u == "string")
1148
- return Array.from(a.document.querySelectorAll(u)).some((p) => p === f.target || f.composedPath().includes(p));
1149
+ ie && !ze && (ze = !0, Array.from(a.document.body.children).forEach((c) => c.addEventListener("click", M)));
1150
+ let o = !0;
1151
+ const y = (c) => n.some((s) => {
1152
+ if (typeof s == "string")
1153
+ return Array.from(a.document.querySelectorAll(s)).some((v) => v === c.target || c.composedPath().includes(v));
1149
1154
  {
1150
- const p = F(u);
1151
- return p && (f.target === p || f.composedPath().includes(p));
1155
+ const v = q(s);
1156
+ return v && (c.target === v || c.composedPath().includes(v));
1152
1157
  }
1153
- }), d = [
1154
- M(a, "click", (f) => {
1155
- const u = F(e);
1156
- if (!(!u || u === f.target || f.composedPath().includes(u))) {
1157
- if (f.detail === 0 && (n = !c(f)), !n) {
1158
- n = !0;
1158
+ }), f = [
1159
+ N(a, "click", (c) => {
1160
+ const s = q(e);
1161
+ if (!(!s || s === c.target || c.composedPath().includes(s))) {
1162
+ if (c.detail === 0 && (o = !y(c)), !o) {
1163
+ o = !0;
1159
1164
  return;
1160
1165
  }
1161
- l(f);
1166
+ l(c);
1162
1167
  }
1163
- }, { passive: !0, capture: i }),
1164
- M(a, "pointerdown", (f) => {
1165
- const u = F(e);
1166
- u && (n = !f.composedPath().includes(u) && !c(f));
1168
+ }, { passive: !0, capture: r }),
1169
+ N(a, "pointerdown", (c) => {
1170
+ const s = q(e);
1171
+ s && (o = !c.composedPath().includes(s) && !y(c));
1167
1172
  }, { passive: !0 }),
1168
- r && M(a, "blur", (f) => {
1169
- var u;
1170
- const p = F(e);
1171
- ((u = a.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
1173
+ i && N(a, "blur", (c) => {
1174
+ var s;
1175
+ const v = q(e);
1176
+ ((s = a.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(v != null && v.contains(a.document.activeElement)) && l(c);
1172
1177
  })
1173
1178
  ].filter(Boolean);
1174
- return () => d.forEach((f) => f());
1179
+ return () => f.forEach((c) => c());
1175
1180
  }
1176
1181
  W.mounted + "", W.unmounted + "";
1177
- const ua = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
1178
- function qe(...e) {
1182
+ const ca = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
1183
+ function Fe(...e) {
1179
1184
  let l, t, a = {};
1180
1185
  e.length === 3 ? (l = e[0], t = e[1], a = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], a = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
1181
- const { target: o = X, eventName: i = "keydown", passive: r = !1 } = a, n = ua(l);
1182
- return M(o, i, (v) => {
1183
- n(v) && t(v);
1184
- }, r);
1186
+ const { target: n = X, eventName: r = "keydown", passive: i = !1 } = a, o = ca(l);
1187
+ return N(n, r, (p) => {
1188
+ o(p) && t(p);
1189
+ }, i);
1185
1190
  }
1186
- var da = Object.defineProperty, Ne = Object.getOwnPropertySymbols, ca = Object.prototype.hasOwnProperty, fa = Object.prototype.propertyIsEnumerable, Me = (e, l, t) => l in e ? da(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ya = (e, l) => {
1191
+ var fa = Object.defineProperty, Me = Object.getOwnPropertySymbols, ya = Object.prototype.hasOwnProperty, va = Object.prototype.propertyIsEnumerable, Ne = (e, l, t) => l in e ? fa(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, pa = (e, l) => {
1187
1192
  for (var t in l || (l = {}))
1188
- ca.call(l, t) && Me(e, t, l[t]);
1189
- if (Ne)
1190
- for (var t of Ne(l))
1191
- fa.call(l, t) && Me(e, t, l[t]);
1193
+ ya.call(l, t) && Ne(e, t, l[t]);
1194
+ if (Me)
1195
+ for (var t of Me(l))
1196
+ va.call(l, t) && Ne(e, t, l[t]);
1192
1197
  return e;
1193
1198
  };
1194
1199
  W.mounted + "";
1195
- const va = 500;
1200
+ const ma = 500;
1196
1201
  function Re(e, l, t) {
1197
- var a, o;
1198
- const i = V(() => F(e));
1199
- let r;
1200
- function n() {
1201
- r && (clearTimeout(r), r = void 0);
1202
+ var a, n;
1203
+ const r = V(() => q(e));
1204
+ let i;
1205
+ function o() {
1206
+ i && (clearTimeout(i), i = void 0);
1202
1207
  }
1203
- function c(d) {
1204
- var y, f, u, p;
1205
- (y = t == null ? void 0 : t.modifiers) != null && y.self && d.target !== i.value || (n(), (f = t == null ? void 0 : t.modifiers) != null && f.prevent && d.preventDefault(), (u = t == null ? void 0 : t.modifiers) != null && u.stop && d.stopPropagation(), r = setTimeout(() => l(d), (p = t == null ? void 0 : t.delay) != null ? p : va));
1208
+ function y(f) {
1209
+ var u, c, s, v;
1210
+ (u = t == null ? void 0 : t.modifiers) != null && u.self && f.target !== r.value || (o(), (c = t == null ? void 0 : t.modifiers) != null && c.prevent && f.preventDefault(), (s = t == null ? void 0 : t.modifiers) != null && s.stop && f.stopPropagation(), i = setTimeout(() => l(f), (v = t == null ? void 0 : t.delay) != null ? v : ma));
1206
1211
  }
1207
- const v = {
1212
+ const p = {
1208
1213
  capture: (a = t == null ? void 0 : t.modifiers) == null ? void 0 : a.capture,
1209
- once: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.once
1214
+ once: (n = t == null ? void 0 : t.modifiers) == null ? void 0 : n.once
1210
1215
  };
1211
- M(i, "pointerdown", c, v), M(i, "pointerup", n, v), M(i, "pointerleave", n, v);
1216
+ N(r, "pointerdown", y, p), N(r, "pointerup", o, p), N(r, "pointerleave", o, p);
1212
1217
  }
1213
1218
  W.mounted + "";
1214
- const he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
1215
- he[ge] = he[ge] || {};
1216
- he[ge];
1219
+ const _e = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, be = "__vueuse_ssr_handlers__";
1220
+ _e[be] = _e[be] || {};
1221
+ _e[be];
1217
1222
  function st(e, l = !1) {
1218
1223
  const t = w(), a = () => t.value = Boolean(e());
1219
- return a(), rt(a, l), t;
1224
+ return a(), it(a, l), t;
1220
1225
  }
1221
- function pa(e, l = {}) {
1222
- const t = l ? l.delayEnter : 0, a = l ? l.delayLeave : 0, o = w(!1);
1223
- let i;
1224
- const r = (n) => {
1225
- const c = n ? t : a;
1226
- i && (clearTimeout(i), i = void 0), c ? i = setTimeout(() => o.value = n, c) : o.value = n;
1226
+ function _a(e, l = {}) {
1227
+ const t = l ? l.delayEnter : 0, a = l ? l.delayLeave : 0, n = w(!1);
1228
+ let r;
1229
+ const i = (o) => {
1230
+ const y = o ? t : a;
1231
+ r && (clearTimeout(r), r = void 0), y ? r = setTimeout(() => n.value = o, y) : n.value = o;
1227
1232
  };
1228
- return window && (M(e, "mouseenter", () => r(!0), { passive: !0 }), M(e, "mouseleave", () => r(!1), { passive: !0 })), o;
1233
+ return window && (N(e, "mouseenter", () => i(!0), { passive: !0 }), N(e, "mouseleave", () => i(!1), { passive: !0 })), n;
1229
1234
  }
1230
1235
  W.mounted + "";
1231
- var He = Object.getOwnPropertySymbols, ma = Object.prototype.hasOwnProperty, _a = Object.prototype.propertyIsEnumerable, ha = (e, l) => {
1236
+ var De = Object.getOwnPropertySymbols, ba = Object.prototype.hasOwnProperty, ga = Object.prototype.propertyIsEnumerable, ha = (e, l) => {
1232
1237
  var t = {};
1233
1238
  for (var a in e)
1234
- ma.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1235
- if (e != null && He)
1236
- for (var a of He(e))
1237
- l.indexOf(a) < 0 && _a.call(e, a) && (t[a] = e[a]);
1239
+ ba.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1240
+ if (e != null && De)
1241
+ for (var a of De(e))
1242
+ l.indexOf(a) < 0 && ga.call(e, a) && (t[a] = e[a]);
1238
1243
  return t;
1239
1244
  };
1240
- function ga(e, l, t = {}) {
1241
- const a = t, { window: o = X } = a, i = ha(a, ["window"]);
1242
- let r;
1243
- const n = st(() => o && "ResizeObserver" in o), c = () => {
1244
- r && (r.disconnect(), r = void 0);
1245
- }, v = P(() => F(e), (y) => {
1246
- c(), n.value && o && y && (r = new ResizeObserver(l), r.observe(y, i));
1247
- }, { immediate: !0, flush: "post" }), d = () => {
1248
- c(), v();
1245
+ function wa(e, l, t = {}) {
1246
+ const a = t, { window: n = X } = a, r = ha(a, ["window"]);
1247
+ let i;
1248
+ const o = st(() => n && "ResizeObserver" in n), y = () => {
1249
+ i && (i.disconnect(), i = void 0);
1250
+ }, p = E(() => q(e), (u) => {
1251
+ y(), o.value && n && u && (i = new ResizeObserver(l), i.observe(u, r));
1252
+ }, { immediate: !0, flush: "post" }), f = () => {
1253
+ y(), p();
1249
1254
  };
1250
- return ae(d), {
1251
- isSupported: n,
1252
- stop: d
1255
+ return ae(f), {
1256
+ isSupported: o,
1257
+ stop: f
1253
1258
  };
1254
1259
  }
1255
- function ba(e, l = { width: 0, height: 0 }, t = {}) {
1256
- const { window: a = X, box: o = "content-box" } = t, i = V(() => {
1257
- var c, v;
1258
- return (v = (c = F(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : v.includes("svg");
1259
- }), r = w(l.width), n = w(l.height);
1260
- return ga(e, ([c]) => {
1261
- const v = o === "border-box" ? c.borderBoxSize : o === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
1262
- if (a && i.value) {
1263
- const d = F(e);
1264
- if (d) {
1265
- const y = a.getComputedStyle(d);
1266
- r.value = parseFloat(y.width), n.value = parseFloat(y.height);
1260
+ function Sa(e, l = { width: 0, height: 0 }, t = {}) {
1261
+ const { window: a = X, box: n = "content-box" } = t, r = V(() => {
1262
+ var y, p;
1263
+ return (p = (y = q(e)) == null ? void 0 : y.namespaceURI) == null ? void 0 : p.includes("svg");
1264
+ }), i = w(l.width), o = w(l.height);
1265
+ return wa(e, ([y]) => {
1266
+ const p = n === "border-box" ? y.borderBoxSize : n === "content-box" ? y.contentBoxSize : y.devicePixelContentBoxSize;
1267
+ if (a && r.value) {
1268
+ const f = q(e);
1269
+ if (f) {
1270
+ const u = a.getComputedStyle(f);
1271
+ i.value = parseFloat(u.width), o.value = parseFloat(u.height);
1267
1272
  }
1268
- } else if (v) {
1269
- const d = Array.isArray(v) ? v : [v];
1270
- r.value = d.reduce((y, { inlineSize: f }) => y + f, 0), n.value = d.reduce((y, { blockSize: f }) => y + f, 0);
1273
+ } else if (p) {
1274
+ const f = Array.isArray(p) ? p : [p];
1275
+ i.value = f.reduce((u, { inlineSize: c }) => u + c, 0), o.value = f.reduce((u, { blockSize: c }) => u + c, 0);
1271
1276
  } else
1272
- r.value = c.contentRect.width, n.value = c.contentRect.height;
1273
- }, t), P(() => F(e), (c) => {
1274
- r.value = c ? l.width : 0, n.value = c ? l.height : 0;
1277
+ i.value = y.contentRect.width, o.value = y.contentRect.height;
1278
+ }, t), E(() => q(e), (y) => {
1279
+ i.value = y ? l.width : 0, o.value = y ? l.height : 0;
1275
1280
  }), {
1276
- width: r,
1277
- height: n
1281
+ width: i,
1282
+ height: o
1278
1283
  };
1279
1284
  }
1280
1285
  W.mounted + "";
1281
- function De(e, { window: l = X, scrollTarget: t } = {}) {
1282
- const a = w(!1), o = () => {
1286
+ function He(e, { window: l = X, scrollTarget: t } = {}) {
1287
+ const a = w(!1), n = () => {
1283
1288
  if (!l)
1284
1289
  return;
1285
- const i = l.document, r = F(e);
1286
- if (!r)
1290
+ const r = l.document, i = q(e);
1291
+ if (!i)
1287
1292
  a.value = !1;
1288
1293
  else {
1289
- const n = r.getBoundingClientRect();
1290
- a.value = n.top <= (l.innerHeight || i.documentElement.clientHeight) && n.left <= (l.innerWidth || i.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
1294
+ const o = i.getBoundingClientRect();
1295
+ a.value = o.top <= (l.innerHeight || r.documentElement.clientHeight) && o.left <= (l.innerWidth || r.documentElement.clientWidth) && o.bottom >= 0 && o.right >= 0;
1291
1296
  }
1292
1297
  };
1293
- return P(() => F(e), () => o(), { immediate: !0, flush: "post" }), l && M(t || l, "scroll", o, {
1298
+ return E(() => q(e), () => n(), { immediate: !0, flush: "post" }), l && N(t || l, "scroll", n, {
1294
1299
  capture: !1,
1295
1300
  passive: !0
1296
1301
  }), a;
1297
1302
  }
1298
1303
  W.mounted + "";
1299
1304
  const We = 1;
1300
- function be(e, l = {}) {
1305
+ function ge(e, l = {}) {
1301
1306
  const {
1302
1307
  throttle: t = 0,
1303
1308
  idle: a = 200,
1304
- onStop: o = N,
1305
- onScroll: i = N,
1306
- offset: r = {
1309
+ onStop: n = M,
1310
+ onScroll: r = M,
1311
+ offset: i = {
1307
1312
  left: 0,
1308
1313
  right: 0,
1309
1314
  top: 0,
1310
1315
  bottom: 0
1311
1316
  },
1312
- eventListenerOptions: n = {
1317
+ eventListenerOptions: o = {
1313
1318
  capture: !1,
1314
1319
  passive: !0
1315
1320
  },
1316
- behavior: c = "auto"
1317
- } = l, v = w(0), d = w(0), y = V({
1321
+ behavior: y = "auto"
1322
+ } = l, p = w(0), f = w(0), u = V({
1318
1323
  get() {
1319
- return v.value;
1324
+ return p.value;
1320
1325
  },
1321
- set(z) {
1322
- u(z, void 0);
1326
+ set(A) {
1327
+ s(A, void 0);
1323
1328
  }
1324
- }), f = V({
1329
+ }), c = V({
1325
1330
  get() {
1326
- return d.value;
1331
+ return f.value;
1327
1332
  },
1328
- set(z) {
1329
- u(void 0, z);
1333
+ set(A) {
1334
+ s(void 0, A);
1330
1335
  }
1331
1336
  });
1332
- function u(z, I) {
1333
- var G, q, Be;
1334
- const ye = A(e);
1335
- ye && ((Be = ye instanceof Document ? document.body : ye) == null || Be.scrollTo({
1336
- top: (G = A(I)) != null ? G : f.value,
1337
- left: (q = A(z)) != null ? q : y.value,
1338
- behavior: A(c)
1337
+ function s(A, L) {
1338
+ var U, F, Be;
1339
+ const fe = z(e);
1340
+ fe && ((Be = fe instanceof Document ? document.body : fe) == null || Be.scrollTo({
1341
+ top: (U = z(L)) != null ? U : c.value,
1342
+ left: (F = z(A)) != null ? F : u.value,
1343
+ behavior: z(y)
1339
1344
  }));
1340
1345
  }
1341
- const p = w(!1), b = pe({
1346
+ const v = w(!1), h = ve({
1342
1347
  left: !0,
1343
1348
  right: !1,
1344
1349
  top: !0,
1345
1350
  bottom: !1
1346
- }), x = pe({
1351
+ }), I = ve({
1347
1352
  left: !1,
1348
1353
  right: !1,
1349
1354
  top: !1,
1350
1355
  bottom: !1
1351
- }), T = (z) => {
1352
- p.value && (p.value = !1, x.left = !1, x.right = !1, x.top = !1, x.bottom = !1, o(z));
1353
- }, fe = Gl(T, t + a), ne = (z) => {
1354
- const I = z.target === document ? z.target.documentElement : z.target, G = I.scrollLeft;
1355
- x.left = G < v.value, x.right = G > d.value, b.left = G <= 0 + (r.left || 0), b.right = G + I.clientWidth >= I.scrollWidth - (r.right || 0) - We, v.value = G;
1356
- let q = I.scrollTop;
1357
- z.target === document && !q && (q = document.body.scrollTop), x.top = q < d.value, x.bottom = q > d.value, b.top = q <= 0 + (r.top || 0), b.bottom = q + I.clientHeight >= I.scrollHeight - (r.bottom || 0) - We, d.value = q, p.value = !0, fe(z), i(z);
1356
+ }), J = (A) => {
1357
+ v.value && (v.value = !1, I.left = !1, I.right = !1, I.top = !1, I.bottom = !1, n(A));
1358
+ }, ce = Kl(J, t + a), oe = (A) => {
1359
+ const L = A.target === document ? A.target.documentElement : A.target, U = L.scrollLeft;
1360
+ I.left = U < p.value, I.right = U > f.value, h.left = U <= 0 + (i.left || 0), h.right = U + L.clientWidth >= L.scrollWidth - (i.right || 0) - We, p.value = U;
1361
+ let F = L.scrollTop;
1362
+ A.target === document && !F && (F = document.body.scrollTop), I.top = F < f.value, I.bottom = F > f.value, h.top = F <= 0 + (i.top || 0), h.bottom = F + L.clientHeight >= L.scrollHeight - (i.bottom || 0) - We, f.value = F, v.value = !0, ce(A), r(A);
1358
1363
  };
1359
- return M(e, "scroll", t ? Ul(ne, t, !0, !1) : ne, n), M(e, "scrollend", T, n), {
1360
- x: y,
1361
- y: f,
1362
- isScrolling: p,
1363
- arrivedState: b,
1364
- directions: x
1364
+ return N(e, "scroll", t ? Zl(oe, t, !0, !1) : oe, o), N(e, "scrollend", J, o), {
1365
+ x: u,
1366
+ y: c,
1367
+ isScrolling: v,
1368
+ arrivedState: h,
1369
+ directions: I
1365
1370
  };
1366
1371
  }
1367
- var wa = Object.defineProperty, Sa = Object.defineProperties, $a = Object.getOwnPropertyDescriptors, Ge = Object.getOwnPropertySymbols, ja = Object.prototype.hasOwnProperty, ka = Object.prototype.propertyIsEnumerable, Ue = (e, l, t) => l in e ? wa(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Ze = (e, l) => {
1372
+ var ja = Object.defineProperty, $a = Object.defineProperties, ka = Object.getOwnPropertyDescriptors, Ue = Object.getOwnPropertySymbols, Va = Object.prototype.hasOwnProperty, xa = Object.prototype.propertyIsEnumerable, Ge = (e, l, t) => l in e ? ja(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Ke = (e, l) => {
1368
1373
  for (var t in l || (l = {}))
1369
- ja.call(l, t) && Ue(e, t, l[t]);
1370
- if (Ge)
1371
- for (var t of Ge(l))
1372
- ka.call(l, t) && Ue(e, t, l[t]);
1374
+ Va.call(l, t) && Ge(e, t, l[t]);
1375
+ if (Ue)
1376
+ for (var t of Ue(l))
1377
+ xa.call(l, t) && Ge(e, t, l[t]);
1373
1378
  return e;
1374
- }, Va = (e, l) => Sa(e, $a(l));
1375
- function Ke(e, l, t = {}) {
1376
- var a, o;
1377
- const i = (a = t.direction) != null ? a : "bottom", r = pe(be(e, Va(Ze({}, t), {
1378
- offset: Ze({
1379
- [i]: (o = t.distance) != null ? o : 0
1379
+ }, Ia = (e, l) => $a(e, ka(l));
1380
+ function Ze(e, l, t = {}) {
1381
+ var a, n;
1382
+ const r = (a = t.direction) != null ? a : "bottom", i = ve(ge(e, Ia(Ke({}, t), {
1383
+ offset: Ke({
1384
+ [r]: (n = t.distance) != null ? n : 0
1380
1385
  }, t.offset)
1381
1386
  })));
1382
- P(() => r.arrivedState[i], async (n) => {
1383
- var c, v;
1384
- if (n) {
1385
- const d = A(e), y = {
1386
- height: (c = d == null ? void 0 : d.scrollHeight) != null ? c : 0,
1387
- width: (v = d == null ? void 0 : d.scrollWidth) != null ? v : 0
1387
+ E(() => i.arrivedState[r], async (o) => {
1388
+ var y, p;
1389
+ if (o) {
1390
+ const f = z(e), u = {
1391
+ height: (y = f == null ? void 0 : f.scrollHeight) != null ? y : 0,
1392
+ width: (p = f == null ? void 0 : f.scrollWidth) != null ? p : 0
1388
1393
  };
1389
- await l(r), t.preserveScrollPosition && d && lt(() => {
1390
- d.scrollTo({
1391
- top: d.scrollHeight - y.height,
1392
- left: d.scrollWidth - y.width
1394
+ await l(i), t.preserveScrollPosition && f && at(() => {
1395
+ f.scrollTo({
1396
+ top: f.scrollHeight - u.height,
1397
+ left: f.scrollWidth - u.width
1393
1398
  });
1394
1399
  });
1395
1400
  }
@@ -1399,42 +1404,42 @@ W.mounted + "";
1399
1404
  function Qe(e, l, t = {}) {
1400
1405
  const {
1401
1406
  root: a,
1402
- rootMargin: o = "0px",
1403
- threshold: i = 0.1,
1404
- window: r = X
1405
- } = t, n = st(() => r && "IntersectionObserver" in r);
1406
- let c = N;
1407
- const v = n.value ? P(() => ({
1408
- el: F(e),
1409
- root: F(a)
1410
- }), ({ el: y, root: f }) => {
1411
- if (c(), !y)
1407
+ rootMargin: n = "0px",
1408
+ threshold: r = 0.1,
1409
+ window: i = X
1410
+ } = t, o = st(() => i && "IntersectionObserver" in i);
1411
+ let y = M;
1412
+ const p = o.value ? E(() => ({
1413
+ el: q(e),
1414
+ root: q(a)
1415
+ }), ({ el: u, root: c }) => {
1416
+ if (y(), !u)
1412
1417
  return;
1413
- const u = new IntersectionObserver(l, {
1414
- root: f,
1415
- rootMargin: o,
1416
- threshold: i
1418
+ const s = new IntersectionObserver(l, {
1419
+ root: c,
1420
+ rootMargin: n,
1421
+ threshold: r
1417
1422
  });
1418
- u.observe(y), c = () => {
1419
- u.disconnect(), c = N;
1423
+ s.observe(u), y = () => {
1424
+ s.disconnect(), y = M;
1420
1425
  };
1421
- }, { immediate: !0, flush: "post" }) : N, d = () => {
1422
- c(), v();
1426
+ }, { immediate: !0, flush: "post" }) : M, f = () => {
1427
+ y(), p();
1423
1428
  };
1424
- return ae(d), {
1425
- isSupported: n,
1426
- stop: d
1429
+ return ae(f), {
1430
+ isSupported: o,
1431
+ stop: f
1427
1432
  };
1428
1433
  }
1429
1434
  W.mounted + "";
1430
- var xa = Object.defineProperty, Ca = Object.defineProperties, La = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Ia = Object.prototype.hasOwnProperty, Ba = Object.prototype.propertyIsEnumerable, Xe = (e, l, t) => l in e ? xa(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Oa = (e, l) => {
1435
+ var Ca = Object.defineProperty, La = Object.defineProperties, Ba = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Oa = Object.prototype.hasOwnProperty, Ta = Object.prototype.propertyIsEnumerable, Xe = (e, l, t) => l in e ? Ca(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Ja = (e, l) => {
1431
1436
  for (var t in l || (l = {}))
1432
- Ia.call(l, t) && Xe(e, t, l[t]);
1437
+ Oa.call(l, t) && Xe(e, t, l[t]);
1433
1438
  if (Ye)
1434
1439
  for (var t of Ye(l))
1435
- Ba.call(l, t) && Xe(e, t, l[t]);
1440
+ Ta.call(l, t) && Xe(e, t, l[t]);
1436
1441
  return e;
1437
- }, Ta = (e, l) => Ca(e, La(l));
1442
+ }, Ea = (e, l) => La(e, Ba(l));
1438
1443
  W.mounted + "";
1439
1444
  function ut(e) {
1440
1445
  const l = window.getComputedStyle(e);
@@ -1449,54 +1454,54 @@ function Pa(e) {
1449
1454
  const l = e || window.event, t = l.target;
1450
1455
  return ut(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1451
1456
  }
1452
- function Ja(e, l = !1) {
1457
+ function Aa(e, l = !1) {
1453
1458
  const t = w(l);
1454
- let a = null, o;
1455
- P(Zl(e), (n) => {
1456
- if (n) {
1457
- const c = n;
1458
- o = c.style.overflow, t.value && (c.style.overflow = "hidden");
1459
+ let a = null, n;
1460
+ E(Ql(e), (o) => {
1461
+ if (o) {
1462
+ const y = o;
1463
+ n = y.style.overflow, t.value && (y.style.overflow = "hidden");
1459
1464
  }
1460
1465
  }, {
1461
1466
  immediate: !0
1462
1467
  });
1463
- const i = () => {
1464
- const n = A(e);
1465
- !n || t.value || (re && (a = M(n, "touchmove", (c) => {
1466
- Pa(c);
1467
- }, { passive: !1 })), n.style.overflow = "hidden", t.value = !0);
1468
- }, r = () => {
1469
- const n = A(e);
1470
- !n || !t.value || (re && (a == null || a()), n.style.overflow = o, t.value = !1);
1468
+ const r = () => {
1469
+ const o = z(e);
1470
+ !o || t.value || (ie && (a = N(o, "touchmove", (y) => {
1471
+ Pa(y);
1472
+ }, { passive: !1 })), o.style.overflow = "hidden", t.value = !0);
1473
+ }, i = () => {
1474
+ const o = z(e);
1475
+ !o || !t.value || (ie && (a == null || a()), o.style.overflow = n, t.value = !1);
1471
1476
  };
1472
- return ae(r), V({
1477
+ return ae(i), V({
1473
1478
  get() {
1474
1479
  return t.value;
1475
1480
  },
1476
- set(n) {
1477
- n ? i() : r();
1481
+ set(o) {
1482
+ o ? r() : i();
1478
1483
  }
1479
1484
  });
1480
1485
  }
1481
- const Ea = () => {
1486
+ const za = () => {
1482
1487
  let e = !1;
1483
1488
  const l = w(!1);
1484
1489
  return (t, a) => {
1485
1490
  if (l.value = a.value, e)
1486
1491
  return;
1487
1492
  e = !0;
1488
- const o = Ja(t, a.value);
1489
- P(l, (i) => o.value = i);
1493
+ const n = Aa(t, a.value);
1494
+ E(l, (r) => n.value = r);
1490
1495
  };
1491
1496
  };
1492
- Ea();
1493
- const dt = ["medium", "small", "xsmall"], za = {
1497
+ za();
1498
+ const dt = ["medium", "small", "xsmall"], qa = {
1494
1499
  key: 0,
1495
1500
  class: "joy-dropdown-list__header"
1496
- }, Aa = ["aria-label", "aria-labelledby"], Fa = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], qa = {
1501
+ }, Fa = ["aria-label", "aria-labelledby"], Ma = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Na = {
1497
1502
  key: 1,
1498
1503
  class: "joy-dropdown-list__footer"
1499
- }, Na = /* @__PURE__ */ $({
1504
+ }, Ra = /* @__PURE__ */ j({
1500
1505
  __name: "VJoyDropdownList",
1501
1506
  props: {
1502
1507
  /**
@@ -1546,127 +1551,127 @@ const dt = ["medium", "small", "xsmall"], za = {
1546
1551
  },
1547
1552
  emits: ["update:modelValue", "close:dropdownList", "reset"],
1548
1553
  setup(e, { expose: l, emit: t }) {
1549
- const a = e, o = w(), i = V(() => (u) => !a.modelValue || !u.value && !u.id ? !1 : a.modelValue === u.value || a.modelValue === u.id);
1550
- function r(u) {
1551
- u.disabled || t("update:modelValue", u.value || u.id);
1554
+ const a = e, n = w(), r = V(() => (s) => !a.modelValue || !s.value && !s.id ? !1 : a.modelValue === s.value || a.modelValue === s.id);
1555
+ function i(s) {
1556
+ s.disabled || t("update:modelValue", s.value || s.id);
1552
1557
  }
1553
- function n() {
1554
- var u;
1555
- return Array.from(((u = o.value) == null ? void 0 : u.querySelectorAll("li")) || []);
1558
+ function o() {
1559
+ var s;
1560
+ return Array.from(((s = n.value) == null ? void 0 : s.querySelectorAll("li")) || []);
1556
1561
  }
1557
- function c() {
1558
- const u = n().find((p) => p.getAttribute("aria-selected") === "true");
1559
- u && (u.focus(), o.value.scrollTo({
1560
- top: u.offsetTop
1562
+ function y() {
1563
+ const s = o().find((v) => v.getAttribute("aria-selected") === "true");
1564
+ s && (s.focus(), n.value.scrollTo({
1565
+ top: s.offsetTop
1561
1566
  }));
1562
1567
  }
1563
- function v() {
1564
- return n().find((u) => u === document.activeElement);
1568
+ function p() {
1569
+ return o().find((s) => s === document.activeElement);
1565
1570
  }
1566
- function d(u) {
1567
- var p;
1568
- if (!(o.value && !o.value.contains(document.activeElement) || !o.value)) {
1569
- if ((u.key === "Escape" || u.key === "Tab") && t("close:dropdownList"), (u.key === "Enter" || u.key === "enter") && (u.preventDefault(), v() && ((p = o.value) != null && p.contains(v())))) {
1570
- const b = v();
1571
- if (!b)
1571
+ function f(s) {
1572
+ var v;
1573
+ if (!(n.value && !n.value.contains(document.activeElement) || !n.value)) {
1574
+ if ((s.key === "Escape" || s.key === "Tab") && t("close:dropdownList"), (s.key === "Enter" || s.key === "enter") && (s.preventDefault(), p() && ((v = n.value) != null && v.contains(p())))) {
1575
+ const h = p();
1576
+ if (!h)
1572
1577
  return;
1573
- if (b.querySelector("a"))
1574
- return b.querySelector("a").click();
1575
- t("update:modelValue", b.dataModel);
1578
+ if (h.querySelector("a"))
1579
+ return h.querySelector("a").click();
1580
+ t("update:modelValue", h.dataModel);
1576
1581
  }
1577
- if (v() && u.key === " " && u.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key)) {
1578
- const b = n(), x = v();
1579
- let T = b.indexOf(x);
1580
- if (b.length) {
1581
- u.preventDefault(), u.key === "ArrowDown" ? T++ : u.key === "ArrowUp" ? T-- : u.key === "Home" ? T = 0 : u.key === "End" && (T = b.length - 1), T < 0 && (T = b.length - 1), T > b.length - 1 && (T = 0), y(b[T]);
1582
+ if (p() && s.key === " " && s.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key)) {
1583
+ const h = o(), I = p();
1584
+ let J = h.indexOf(I);
1585
+ if (h.length) {
1586
+ s.preventDefault(), s.key === "ArrowDown" ? J++ : s.key === "ArrowUp" ? J-- : s.key === "Home" ? J = 0 : s.key === "End" && (J = h.length - 1), J < 0 && (J = h.length - 1), J > h.length - 1 && (J = 0), u(h[J]);
1582
1587
  return;
1583
1588
  }
1584
1589
  }
1585
1590
  }
1586
1591
  }
1587
- function y(u) {
1588
- u.focus();
1592
+ function u(s) {
1593
+ s.focus();
1589
1594
  }
1590
- function f() {
1595
+ function c() {
1591
1596
  t("reset");
1592
1597
  }
1593
1598
  return Q(() => {
1594
- window.addEventListener("keydown", d), c();
1595
- }), Se(() => {
1596
- window.removeEventListener("keydown", d);
1599
+ window.addEventListener("keydown", f), y();
1600
+ }), je(() => {
1601
+ window.removeEventListener("keydown", f);
1597
1602
  }), l({
1598
- isSelected: i
1599
- }), (u, p) => (s(), m("div", {
1603
+ isSelected: r
1604
+ }), (s, v) => (d(), m("div", {
1600
1605
  class: "joy-dropdown-list",
1601
- style: Z({ width: `${e.width}px`, "max-width": `${e.width}px` })
1606
+ style: K({ width: `${e.width}px`, "max-width": `${e.width}px` })
1602
1607
  }, [
1603
- u.$slots["dropdown-list-header"] || e.reset ? (s(), m("header", za, [
1604
- e.reset ? (s(), m("button", {
1608
+ s.$slots["dropdown-list-header"] || e.reset ? (d(), m("header", qa, [
1609
+ e.reset ? (d(), m("button", {
1605
1610
  key: 0,
1606
1611
  type: "button",
1607
1612
  class: "joy-dropdown-list__reset",
1608
- onClick: f
1609
- }, L(e.resetLabel || "Reset"), 1)) : h("", !0),
1610
- g(u.$slots, "dropdown-list-header", {}, void 0, !0)
1611
- ])) : h("", !0),
1613
+ onClick: c
1614
+ }, C(e.resetLabel || "Reset"), 1)) : b("", !0),
1615
+ g(s.$slots, "dropdown-list-header", {}, void 0, !0)
1616
+ ])) : b("", !0),
1612
1617
  _("div", {
1613
1618
  tabindex: "0",
1614
- class: S(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": u.$slots["dropdown-list-items"] }]),
1615
- style: Z({ "max-height": `${e.height}px` })
1619
+ class: S(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": s.$slots["dropdown-list-items"] }]),
1620
+ style: K({ "max-height": `${e.height}px` })
1616
1621
  }, [
1617
- g(u.$slots, "dropdown-list-items", {}, void 0, !0),
1618
- e.options.length ? (s(), m("ul", {
1622
+ g(s.$slots, "dropdown-list-items", {}, void 0, !0),
1623
+ e.options.length ? (d(), m("ul", {
1619
1624
  key: 0,
1620
1625
  ref_key: "listbox",
1621
- ref: o,
1626
+ ref: n,
1622
1627
  role: "listbox",
1623
1628
  "aria-expanded": "true",
1624
1629
  "aria-label": e.ariaLabel,
1625
1630
  "aria-labelledby": e.ariaLabelledBy
1626
1631
  }, [
1627
- (s(!0), m(H, null, U(e.options, (b) => (s(), m("li", {
1628
- id: b.id,
1629
- key: b.label,
1630
- style: Z({ "max-width": `${e.width}px` }),
1632
+ (d(!0), m(D, null, G(e.options, (h) => (d(), m("li", {
1633
+ id: h.id,
1634
+ key: h.label,
1635
+ style: K({ "max-width": `${e.width}px` }),
1631
1636
  class: S([
1632
1637
  "joy-dropdown-list__item",
1633
1638
  `joy-dropdown-list__item--${e.size}`,
1634
1639
  {
1635
- "joy-dropdown-list__item--selected": i.value(b),
1636
- "joy-dropdown-list__item--disabled": b.disabled
1640
+ "joy-dropdown-list__item--selected": r.value(h),
1641
+ "joy-dropdown-list__item--disabled": h.disabled
1637
1642
  }
1638
1643
  ]),
1639
- tabindex: b.disabled ? void 0 : -1,
1640
- "aria-disabled": b.disabled,
1641
- "aria-selected": i.value(b),
1642
- title: b.label,
1643
- "aria-label": b.label,
1644
- ".dataModel": b.value || b.id,
1644
+ tabindex: h.disabled ? void 0 : -1,
1645
+ "aria-disabled": h.disabled,
1646
+ "aria-selected": r.value(h),
1647
+ title: h.label,
1648
+ "aria-label": h.label,
1649
+ ".dataModel": h.value || h.id,
1645
1650
  role: "option",
1646
- onClick: (x) => r(b)
1651
+ onClick: (I) => i(h)
1647
1652
  }, [
1648
- g(u.$slots, "label", $e(je(b)), () => [
1649
- _("span", null, L(b.label), 1)
1653
+ g(s.$slots, "label", se(ue(h)), () => [
1654
+ _("span", null, C(h.label), 1)
1650
1655
  ], !0)
1651
- ], 14, Fa))), 128))
1652
- ], 8, Aa)) : h("", !0)
1656
+ ], 14, Ma))), 128))
1657
+ ], 8, Fa)) : b("", !0)
1653
1658
  ], 6),
1654
- u.$slots["dropdown-list-footer"] ? (s(), m("footer", qa, [
1655
- g(u.$slots, "dropdown-list-footer", {}, void 0, !0)
1656
- ])) : h("", !0)
1659
+ s.$slots["dropdown-list-footer"] ? (d(), m("footer", Na, [
1660
+ g(s.$slots, "dropdown-list-footer", {}, void 0, !0)
1661
+ ])) : b("", !0)
1657
1662
  ], 4));
1658
1663
  }
1659
1664
  });
1660
- const ct = /* @__PURE__ */ k(Na, [["__scopeId", "data-v-f46e79bc"]]);
1661
- function Ma(e) {
1665
+ const ct = /* @__PURE__ */ $(Ra, [["__scopeId", "data-v-f46e79bc"]]);
1666
+ function Da(e) {
1662
1667
  const l = () => e();
1663
1668
  Q(() => {
1664
1669
  window.addEventListener("resize", l);
1665
- }), Se(() => {
1670
+ }), je(() => {
1666
1671
  window.removeEventListener("resize", l);
1667
1672
  });
1668
1673
  }
1669
- const Ra = /* @__PURE__ */ $({
1674
+ const Ha = /* @__PURE__ */ j({
1670
1675
  __name: "VJoyDropdown",
1671
1676
  props: {
1672
1677
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1760,84 +1765,84 @@ const Ra = /* @__PURE__ */ $({
1760
1765
  },
1761
1766
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide", "dropdown:reset"],
1762
1767
  setup(e, { expose: l, emit: t }) {
1763
- const a = e, o = w(!1), i = w(null), r = w(), n = w(null), c = w(null), v = w(!1), d = "joy-dropdown--" + ot();
1764
- ke("VJoyDropdownContext", a);
1765
- const y = {
1766
- ignore: [r, ".joy-dropdown__list"]
1768
+ const a = e, n = w(!1), r = w(null), i = w(), o = w(null), y = w(null), p = w(!1), f = "joy-dropdown--" + Ve();
1769
+ $e("VJoyDropdownContext", a);
1770
+ const u = {
1771
+ ignore: [i, ".joy-dropdown__list"]
1767
1772
  };
1768
- let f = null;
1769
- P(
1770
- () => o.value,
1771
- (I) => {
1772
- I && hl(n);
1773
+ let c = null;
1774
+ E(
1775
+ () => n.value,
1776
+ (L) => {
1777
+ L && hl(o);
1773
1778
  },
1774
1779
  { flush: "post" }
1775
1780
  );
1776
- const u = V(() => {
1777
- let I = `${a.dropdownGap}px`;
1778
- return a.direction === "up" && (I = "-" + I), {
1779
- marginTop: I
1781
+ const s = V(() => {
1782
+ let L = `${a.dropdownGap}px`;
1783
+ return a.direction === "up" && (L = "-" + L), {
1784
+ marginTop: L
1780
1785
  };
1781
1786
  });
1782
- function p() {
1783
- f && clearTimeout(f), v.value = !0, f = setTimeout(() => {
1784
- o.value = !1, v.value = !1, t("dropdown:hide");
1787
+ function v() {
1788
+ c && clearTimeout(c), p.value = !0, c = setTimeout(() => {
1789
+ n.value = !1, p.value = !1, t("dropdown:hide");
1785
1790
  }, 300);
1786
1791
  }
1787
- function b(I) {
1788
- v.value = !1, f && clearTimeout(f), c.value = I.target, o.value = !0, t("dropdown:open");
1792
+ function h(L) {
1793
+ p.value = !1, c && clearTimeout(c), y.value = L.target, n.value = !0, t("dropdown:open");
1789
1794
  }
1790
- function x() {
1791
- p(), T();
1795
+ function I() {
1796
+ v(), J();
1792
1797
  }
1793
- function T() {
1794
- c.value && c.value.focus();
1798
+ function J() {
1799
+ y.value && y.value.focus();
1795
1800
  }
1796
- function fe(I) {
1797
- t("update:modelValue", I), a.closeOnSelect && (p(), T());
1801
+ function ce(L) {
1802
+ t("update:modelValue", L), a.closeOnSelect && (v(), J());
1798
1803
  }
1799
- function ne() {
1804
+ function oe() {
1800
1805
  t("dropdown:reset");
1801
1806
  }
1802
- function z() {
1803
- !r.value || !r.value.children.length || (r.value.children[0].id = d);
1807
+ function A() {
1808
+ !i.value || !i.value.children.length || (i.value.children[0].id = f);
1804
1809
  }
1805
- return Ma(p), Q(() => {
1806
- z();
1810
+ return Da(v), Q(() => {
1811
+ A();
1807
1812
  }), l({
1808
- showDropdownList: o,
1809
- generatedId: d
1810
- }), (I, G) => (s(), C(j(sa), {
1813
+ showDropdownList: n,
1814
+ generatedId: f
1815
+ }), (L, U) => (d(), x(k(da), {
1811
1816
  ref_key: "dropdown",
1812
- ref: i,
1813
- options: y,
1817
+ ref: r,
1818
+ options: u,
1814
1819
  class: "joy-dropdown",
1815
- onTrigger: p
1820
+ onTrigger: v
1816
1821
  }, {
1817
1822
  default: O(() => [
1818
1823
  _("div", {
1819
1824
  ref_key: "button",
1820
- ref: r,
1825
+ ref: i,
1821
1826
  class: "joy-dropdown__button",
1822
1827
  "data-testid": "dropdown-trigger",
1823
- onClick: b
1828
+ onClick: h
1824
1829
  }, [
1825
- g(I.$slots, "dropdown-button", {}, void 0, !0)
1830
+ g(L.$slots, "dropdown-button", {}, void 0, !0)
1826
1831
  ], 512),
1827
- o.value ? (s(), m("div", {
1832
+ n.value ? (d(), m("div", {
1828
1833
  key: 0,
1829
1834
  ref_key: "list",
1830
- ref: n,
1835
+ ref: o,
1831
1836
  class: S([
1832
1837
  "joy-dropdown__list",
1833
1838
  `joy-dropdown__list--${e.justify}`,
1834
1839
  `joy-dropdown__list--${e.direction}`,
1835
1840
  {
1836
- "joy-dropdown__list--visible": !v.value,
1837
- "joy-dropdown__list--hiding": v.value
1841
+ "joy-dropdown__list--visible": !p.value,
1842
+ "joy-dropdown__list--hiding": p.value
1838
1843
  }
1839
1844
  ]),
1840
- style: Z(u.value)
1845
+ style: K(s.value)
1841
1846
  }, [
1842
1847
  R(ct, {
1843
1848
  "model-value": e.modelValue,
@@ -1847,64 +1852,64 @@ const Ra = /* @__PURE__ */ $({
1847
1852
  height: e.height,
1848
1853
  reset: e.reset,
1849
1854
  "reset-label": e.resetLabel,
1850
- "aria-labelled-by": d,
1851
- "onUpdate:modelValue": fe,
1852
- "onClose:dropdownList": x,
1853
- onReset: ne
1854
- }, at({
1855
- label: O((q) => [
1856
- g(I.$slots, "dropdown-item", $e(je(q)), () => [
1857
- _("span", null, L(q.label), 1)
1855
+ "aria-labelled-by": f,
1856
+ "onUpdate:modelValue": ce,
1857
+ "onClose:dropdownList": I,
1858
+ onReset: oe
1859
+ }, nt({
1860
+ label: O((F) => [
1861
+ g(L.$slots, "dropdown-item", se(ue(F)), () => [
1862
+ _("span", null, C(F.label), 1)
1858
1863
  ], !0)
1859
1864
  ]),
1860
1865
  _: 2
1861
1866
  }, [
1862
- I.$slots["dropdown-header"] ? {
1867
+ L.$slots["dropdown-header"] ? {
1863
1868
  name: "dropdown-list-header",
1864
1869
  fn: O(() => [
1865
- g(I.$slots, "dropdown-header", {}, void 0, !0)
1870
+ g(L.$slots, "dropdown-header", {}, void 0, !0)
1866
1871
  ]),
1867
1872
  key: "0"
1868
1873
  } : void 0,
1869
- I.$slots["dropdown-items"] ? {
1874
+ L.$slots["dropdown-items"] ? {
1870
1875
  name: "dropdown-list-items",
1871
1876
  fn: O(() => [
1872
- g(I.$slots, "dropdown-items", {}, void 0, !0)
1877
+ g(L.$slots, "dropdown-items", {}, void 0, !0)
1873
1878
  ]),
1874
1879
  key: "1"
1875
1880
  } : void 0,
1876
- I.$slots["dropdown-footer"] ? {
1881
+ L.$slots["dropdown-footer"] ? {
1877
1882
  name: "dropdown-list-footer",
1878
1883
  fn: O(() => [
1879
- g(I.$slots, "dropdown-footer", {}, void 0, !0)
1884
+ g(L.$slots, "dropdown-footer", {}, void 0, !0)
1880
1885
  ]),
1881
1886
  key: "2"
1882
1887
  } : void 0
1883
1888
  ]), 1032, ["model-value", "options", "size", "width", "height", "reset", "reset-label"])
1884
- ], 6)) : h("", !0)
1889
+ ], 6)) : b("", !0)
1885
1890
  ]),
1886
1891
  _: 3
1887
1892
  }, 512));
1888
1893
  }
1889
1894
  });
1890
- const Ha = /* @__PURE__ */ k(Ra, [["__scopeId", "data-v-df017105"]]), Da = ["aria-label"], Wa = { class: "joy-filter-bar__wrapper" }, Ga = /* @__PURE__ */ $({
1895
+ const Wa = /* @__PURE__ */ $(Ha, [["__scopeId", "data-v-df017105"]]), Ua = ["aria-label"], Ga = { class: "joy-filter-bar__wrapper" }, Ka = /* @__PURE__ */ j({
1891
1896
  __name: "VJoyFilterBar",
1892
1897
  props: {
1893
1898
  ariaLabel: String
1894
1899
  },
1895
1900
  setup(e) {
1896
- return (l, t) => (s(), m("div", {
1901
+ return (l, t) => (d(), m("div", {
1897
1902
  class: "joy-filter-bar",
1898
1903
  role: "group",
1899
1904
  "aria-label": e.ariaLabel || "Filter bar"
1900
1905
  }, [
1901
- _("div", Wa, [
1906
+ _("div", Ga, [
1902
1907
  g(l.$slots, "default", {}, void 0, !0)
1903
1908
  ])
1904
- ], 8, Da));
1909
+ ], 8, Ua));
1905
1910
  }
1906
1911
  });
1907
- const Ua = /* @__PURE__ */ k(Ga, [["__scopeId", "data-v-114f8274"]]), Za = /* @__PURE__ */ $({
1912
+ const Za = /* @__PURE__ */ $(Ka, [["__scopeId", "data-v-114f8274"]]), Qa = /* @__PURE__ */ j({
1908
1913
  __name: "VJoyFilterBarButton",
1909
1914
  props: {
1910
1915
  label: String,
@@ -1920,27 +1925,27 @@ const Ua = /* @__PURE__ */ k(Ga, [["__scopeId", "data-v-114f8274"]]), Za = /* @_
1920
1925
  emits: ["filter"],
1921
1926
  setup(e, { emit: l }) {
1922
1927
  const t = e, a = de("VJoyDropdownContext", null);
1923
- function o() {
1928
+ function n() {
1924
1929
  l("filter", t.value);
1925
1930
  }
1926
- return (i, r) => (s(), m("button", {
1931
+ return (r, i) => (d(), m("button", {
1927
1932
  type: "button",
1928
1933
  class: S(["joy-filter-bar-button", { "joy-filter-bar-button--active": e.active }]),
1929
- onClick: o
1934
+ onClick: n
1930
1935
  }, [
1931
- B(L(e.label) + " ", 1),
1932
- g(i.$slots, "default", {}, void 0, !0),
1933
- j(a) ? (s(), C(E, {
1936
+ B(C(e.label) + " ", 1),
1937
+ g(r.$slots, "default", {}, void 0, !0),
1938
+ k(a) ? (d(), x(T, {
1934
1939
  key: 0,
1935
1940
  class: "joy-filter-bar-button__icon",
1936
1941
  name: "chevron-down",
1937
1942
  size: "xxsmall",
1938
1943
  color: "neutral"
1939
- })) : h("", !0)
1944
+ })) : b("", !0)
1940
1945
  ], 2));
1941
1946
  }
1942
1947
  });
1943
- const Ka = /* @__PURE__ */ k(Za, [["__scopeId", "data-v-8f87fed1"]]), Qa = ["aria-hidden"], Ya = /* @__PURE__ */ $({
1948
+ const Ya = /* @__PURE__ */ $(Qa, [["__scopeId", "data-v-8f87fed1"]]), Xa = ["aria-hidden"], en = /* @__PURE__ */ j({
1944
1949
  __name: "VJoyFormError",
1945
1950
  props: {
1946
1951
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1952,24 +1957,24 @@ const Ka = /* @__PURE__ */ k(Za, [["__scopeId", "data-v-8f87fed1"]]), Qa = ["ari
1952
1957
  noHtmlErrorText: String
1953
1958
  },
1954
1959
  setup(e) {
1955
- return (l, t) => (s(), m("div", {
1960
+ return (l, t) => (d(), m("div", {
1956
1961
  "aria-hidden": e.visible,
1957
1962
  class: S(["joy-form-error", { "joy-has-error": e.visible }]),
1958
1963
  role: "alert"
1959
1964
  }, [
1960
- R(E, {
1965
+ R(T, {
1961
1966
  class: "joy-icon-error",
1962
1967
  name: "warning-triangle"
1963
1968
  }),
1964
1969
  _("div", null, [
1965
1970
  g(l.$slots, "default", {}, () => [
1966
- B(L(e.noHtmlErrorText), 1)
1971
+ B(C(e.noHtmlErrorText), 1)
1967
1972
  ], !0)
1968
1973
  ])
1969
- ], 10, Qa));
1974
+ ], 10, Xa));
1970
1975
  }
1971
1976
  });
1972
- const ft = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = /* @__PURE__ */ $({
1977
+ const ft = /* @__PURE__ */ $(en, [["__scopeId", "data-v-581fd33b"]]), tn = /* @__PURE__ */ j({
1973
1978
  __name: "VJoyFormFieldSkeleton",
1974
1979
  props: {
1975
1980
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1989,26 +1994,26 @@ const ft = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = /* @_
1989
1994
  }
1990
1995
  },
1991
1996
  setup(e, { expose: l }) {
1992
- const t = e, a = de("VJoyWrapperContext", {}), o = V(() => {
1993
- const i = a.direction === "column" ? "auto" : null;
1997
+ const t = e, a = de("VJoyWrapperContext", {}), n = V(() => {
1998
+ const r = a.direction === "column" ? "auto" : null;
1994
1999
  if (!t.width && t.flex === "1") {
1995
- const c = ["1", "0"];
1996
- return i && c.push(i), c.join(" ");
2000
+ const y = ["1", "0"];
2001
+ return r && y.push(r), y.join(" ");
1997
2002
  }
1998
- const r = [t.flex || "1", "0"], n = t.width || i;
1999
- return n && r.push(n), r.join(" ");
2003
+ const i = [t.flex || "1", "0"], o = t.width || r;
2004
+ return o && i.push(o), i.join(" ");
2000
2005
  });
2001
- return l({ flexStyle: o }), (i, r) => (s(), m("div", {
2006
+ return l({ flexStyle: n }), (r, i) => (d(), m("div", {
2002
2007
  "aria-hidden": "true",
2003
2008
  class: S(["joy-form-skeleton", `joy-form-skeleton--${e.size}`]),
2004
- style: Z({
2009
+ style: K({
2005
2010
  "max-width": e.width,
2006
- flex: o.value
2011
+ flex: n.value
2007
2012
  })
2008
2013
  }, null, 6));
2009
2014
  }
2010
2015
  });
2011
- const eo = /* @__PURE__ */ k(Xa, [["__scopeId", "data-v-8a4ecbad"]]), to = [...yl], lo = { class: "joy-highlight--text" }, ao = { key: 0 }, oo = /* @__PURE__ */ $({
2016
+ const ln = /* @__PURE__ */ $(tn, [["__scopeId", "data-v-8a4ecbad"]]), an = [...pl], nn = { class: "joy-highlight--text" }, on = { key: 0 }, rn = /* @__PURE__ */ j({
2012
2017
  __name: "VJoyHighlight",
2013
2018
  props: {
2014
2019
  accent: {
@@ -2026,51 +2031,51 @@ const eo = /* @__PURE__ */ k(Xa, [["__scopeId", "data-v-8a4ecbad"]]), to = [...y
2026
2031
  type: String,
2027
2032
  default: "neutral",
2028
2033
  validator(e) {
2029
- return to.includes(e);
2034
+ return an.includes(e);
2030
2035
  }
2031
2036
  }
2032
2037
  },
2033
2038
  setup(e, { expose: l }) {
2034
- const t = e, a = V(() => t.icon ? t.icon : _l(t.level));
2039
+ const t = e, a = V(() => t.icon ? t.icon : gl(t.level));
2035
2040
  return l({
2036
2041
  getRelevantIcon: a
2037
- }), (o, i) => (s(), m("div", {
2042
+ }), (n, r) => (d(), m("div", {
2038
2043
  class: S([
2039
2044
  "joy-highlight",
2040
2045
  `joy-highlight_${e.level}`,
2041
2046
  {
2042
2047
  "joy-highlight__accent": e.accent,
2043
- "joy-highlight__titled": o.$slots["highlight-title"]
2048
+ "joy-highlight__titled": n.$slots["highlight-title"]
2044
2049
  }
2045
2050
  ])
2046
2051
  }, [
2047
- e.displayIcon ? (s(), C(E, {
2052
+ e.displayIcon ? (d(), x(T, {
2048
2053
  key: 0,
2049
2054
  name: a.value
2050
- }, null, 8, ["name"])) : h("", !0),
2051
- _("div", lo, [
2052
- o.$slots["highlight-title"] ? (s(), m("strong", ao, [
2053
- g(o.$slots, "highlight-title", {}, void 0, !0)
2054
- ])) : h("", !0),
2055
- g(o.$slots, "default", {}, void 0, !0)
2055
+ }, null, 8, ["name"])) : b("", !0),
2056
+ _("div", nn, [
2057
+ n.$slots["highlight-title"] ? (d(), m("strong", on, [
2058
+ g(n.$slots, "highlight-title", {}, void 0, !0)
2059
+ ])) : b("", !0),
2060
+ g(n.$slots, "default", {}, void 0, !0)
2056
2061
  ])
2057
2062
  ], 2));
2058
2063
  }
2059
2064
  });
2060
- const no = /* @__PURE__ */ k(oo, [["__scopeId", "data-v-ba5e6101"]]), io = ["small", "medium", "large"], ro = {
2065
+ const sn = /* @__PURE__ */ $(rn, [["__scopeId", "data-v-ba5e6101"]]), un = ["small", "medium", "large"], dn = {
2061
2066
  key: 0,
2062
2067
  class: "joy-label-required"
2063
- }, so = {
2068
+ }, cn = {
2064
2069
  key: 1,
2065
2070
  class: "joy-label-optional"
2066
- }, uo = /* @__PURE__ */ $({
2071
+ }, fn = /* @__PURE__ */ j({
2067
2072
  __name: "VJoyLabel",
2068
2073
  props: {
2069
2074
  size: {
2070
2075
  type: String,
2071
2076
  default: "medium",
2072
2077
  validator(e) {
2073
- return io.includes(e);
2078
+ return un.includes(e);
2074
2079
  }
2075
2080
  },
2076
2081
  tagName: {
@@ -2087,21 +2092,21 @@ const no = /* @__PURE__ */ k(oo, [["__scopeId", "data-v-ba5e6101"]]), io = ["sma
2087
2092
  text: String
2088
2093
  },
2089
2094
  setup(e) {
2090
- return (l, t) => (s(), C(oe(e.tagName), K({
2095
+ return (l, t) => (d(), x(ne(e.tagName), Z({
2091
2096
  class: ["joy-label", `joy-label--${e.size}`]
2092
2097
  }, l.$attrs), {
2093
2098
  default: O(() => [
2094
2099
  g(l.$slots, "default", {}, () => [
2095
- B(L(e.text), 1)
2100
+ B(C(e.text), 1)
2096
2101
  ], !0),
2097
- e.required ? (s(), m("span", ro, "*")) : h("", !0),
2098
- e.optionalLabel ? (s(), m("span", so, "- " + L(e.optionalLabel), 1)) : h("", !0)
2102
+ e.required ? (d(), m("span", dn, "*")) : b("", !0),
2103
+ e.optionalLabel ? (d(), m("span", cn, "- " + C(e.optionalLabel), 1)) : b("", !0)
2099
2104
  ]),
2100
2105
  _: 3
2101
2106
  }, 16, ["class"]));
2102
2107
  }
2103
2108
  });
2104
- const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["large", "medium", "small"], fo = ["id", "required", "disabled", "type", "value"], yo = ["data-unit"], vo = /* @__PURE__ */ $({
2109
+ const ee = /* @__PURE__ */ $(fn, [["__scopeId", "data-v-1265214a"]]), yn = ["large", "medium", "small"], vn = ["id", "required", "disabled", "type", "value"], pn = ["data-unit"], mn = /* @__PURE__ */ j({
2105
2110
  inheritAttrs: !1,
2106
2111
  __name: "VJoyInput",
2107
2112
  props: {
@@ -2159,7 +2164,7 @@ const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["lar
2159
2164
  type: String,
2160
2165
  default: "medium",
2161
2166
  validator(e) {
2162
- return co.includes(e);
2167
+ return yn.includes(e);
2163
2168
  }
2164
2169
  },
2165
2170
  type: {
@@ -2171,49 +2176,49 @@ const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["lar
2171
2176
  },
2172
2177
  emits: ["update:modelValue"],
2173
2178
  setup(e, { emit: l }) {
2174
- const t = e, a = w(), o = w(), i = we(), r = Y(), n = w(!1), c = V(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), v = V(() => r.default && r.default()), d = V(() => {
2175
- var u, p;
2176
- return !!((u = o.value) != null && u.closest("joy-wrapper")) || !!((p = o.value) != null && p.closest(".joy-wrapper"));
2177
- }), y = w(t.type);
2178
- wt(() => {
2179
- y.value = t.unit ? "number" : t.type;
2179
+ const t = e, a = w(), n = w(), r = Se(), i = Y(), o = w(!1), y = V(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), p = V(() => i.default && i.default()), f = V(() => {
2180
+ var s, v;
2181
+ return !!((s = n.value) != null && s.closest("joy-wrapper")) || !!((v = n.value) != null && v.closest(".joy-wrapper"));
2182
+ }), u = w(t.type);
2183
+ jt(() => {
2184
+ u.value = t.unit ? "number" : t.type;
2180
2185
  });
2181
- const f = {
2186
+ const c = {
2182
2187
  onFocus: () => {
2183
- n.value = !0;
2188
+ o.value = !0;
2184
2189
  },
2185
2190
  onBlur: () => {
2186
- n.value = !1;
2191
+ o.value = !1;
2187
2192
  },
2188
- onInput: (u) => {
2189
- let p = u.target.value;
2190
- t.modelModifiers.lazy || l("update:modelValue", p);
2193
+ onInput: (s) => {
2194
+ let v = s.target.value;
2195
+ t.modelModifiers.lazy || l("update:modelValue", v);
2191
2196
  },
2192
- onChange: (u) => {
2193
- let p = u.target.value;
2194
- t.modelModifiers.lazy && l("update:modelValue", p);
2197
+ onChange: (s) => {
2198
+ let v = s.target.value;
2199
+ t.modelModifiers.lazy && l("update:modelValue", v);
2195
2200
  },
2196
2201
  clearValue: () => {
2197
2202
  t.disabled || l("update:modelValue", "");
2198
2203
  }
2199
2204
  };
2200
- return (u, p) => (s(), m("div", {
2205
+ return (s, v) => (d(), m("div", {
2201
2206
  ref_key: "root",
2202
- ref: o,
2207
+ ref: n,
2203
2208
  class: S([`joy-input--${t.size}`])
2204
2209
  }, [
2205
2210
  _("div", {
2206
2211
  class: S([
2207
2212
  "joy-input",
2208
2213
  {
2209
- "joy-input--focusing": n.value,
2214
+ "joy-input--focusing": o.value,
2210
2215
  "joy-input--disabled": e.disabled,
2211
2216
  "joy-input--invalid": e.invalid,
2212
- "joy-input--valid": !e.invalid && !j(i).disabled
2217
+ "joy-input--valid": !e.invalid && !k(r).disabled
2213
2218
  }
2214
2219
  ])
2215
2220
  }, [
2216
- v.value || e.label ? (s(), C(ee, {
2221
+ p.value || e.label ? (d(), x(ee, {
2217
2222
  key: 0,
2218
2223
  for: e.name,
2219
2224
  required: e.required && e.requiredMark,
@@ -2221,12 +2226,12 @@ const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["lar
2221
2226
  size: e.labelSize
2222
2227
  }, {
2223
2228
  default: O(() => [
2224
- g(u.$slots, "default", {}, () => [
2225
- B(L(e.label), 1)
2229
+ g(s.$slots, "default", {}, () => [
2230
+ B(C(e.label), 1)
2226
2231
  ], !0)
2227
2232
  ]),
2228
2233
  _: 3
2229
- }, 8, ["for", "required", "optional-label", "size"])) : h("", !0),
2234
+ }, 8, ["for", "required", "optional-label", "size"])) : b("", !0),
2230
2235
  _("div", {
2231
2236
  class: S([
2232
2237
  "joy-input--wrapper",
@@ -2234,11 +2239,11 @@ const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["lar
2234
2239
  "joy-input--wrapper-has-icon": !!e.icon,
2235
2240
  "joy-input--wrapper---clearable": e.clearable,
2236
2241
  "joy-input--wrapper-unit": !!e.unit,
2237
- "joy-input--wrapper-margin": !d.value
2242
+ "joy-input--wrapper-margin": !f.value
2238
2243
  }
2239
2244
  ])
2240
2245
  }, [
2241
- _("input", K(u.$attrs, {
2246
+ _("input", Z(s.$attrs, {
2242
2247
  id: t.name,
2243
2248
  ref_key: "input",
2244
2249
  ref: a,
@@ -2250,42 +2255,42 @@ const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["lar
2250
2255
  "joy-input--field-invalid": e.invalid
2251
2256
  }
2252
2257
  ],
2253
- type: y.value,
2258
+ type: u.value,
2254
2259
  value: e.modelValue,
2255
- onFocus: p[0] || (p[0] = //@ts-ignore
2256
- (...b) => f.onFocus && f.onFocus(...b)),
2257
- onBlur: p[1] || (p[1] = //@ts-ignore
2258
- (...b) => f.onBlur && f.onBlur(...b)),
2259
- onInput: p[2] || (p[2] = //@ts-ignore
2260
- (...b) => f.onInput && f.onInput(...b)),
2261
- onChange: p[3] || (p[3] = //@ts-ignore
2262
- (...b) => f.onChange && f.onChange(...b))
2263
- }), null, 16, fo),
2264
- c.value ? (s(), C(xe, {
2260
+ onFocus: v[0] || (v[0] = //@ts-ignore
2261
+ (...h) => c.onFocus && c.onFocus(...h)),
2262
+ onBlur: v[1] || (v[1] = //@ts-ignore
2263
+ (...h) => c.onBlur && c.onBlur(...h)),
2264
+ onInput: v[2] || (v[2] = //@ts-ignore
2265
+ (...h) => c.onInput && c.onInput(...h)),
2266
+ onChange: v[3] || (v[3] = //@ts-ignore
2267
+ (...h) => c.onChange && c.onChange(...h))
2268
+ }), null, 16, vn),
2269
+ y.value ? (d(), x(xe, {
2265
2270
  key: 0,
2266
2271
  class: "joy-input--clear",
2267
2272
  circle: "",
2268
2273
  variant: "ghost",
2269
2274
  size: "xxsmall",
2270
2275
  icon: "cross",
2271
- onClick: f.clearValue
2272
- }, null, 8, ["onClick"])) : h("", !0),
2273
- e.icon ? (s(), C(E, {
2276
+ onClick: c.clearValue
2277
+ }, null, 8, ["onClick"])) : b("", !0),
2278
+ e.icon ? (d(), x(T, {
2274
2279
  key: 1,
2275
2280
  class: "joy-input--decorative-icon",
2276
2281
  name: e.icon
2277
- }, null, 8, ["name"])) : h("", !0),
2278
- e.unit ? (s(), m("div", {
2282
+ }, null, 8, ["name"])) : b("", !0),
2283
+ e.unit ? (d(), m("div", {
2279
2284
  key: 2,
2280
2285
  "data-unit": e.unit,
2281
2286
  class: "joy-input--unit"
2282
- }, null, 8, yo)) : h("", !0)
2287
+ }, null, 8, pn)) : b("", !0)
2283
2288
  ], 2)
2284
2289
  ], 2)
2285
2290
  ], 2));
2286
2291
  }
2287
2292
  });
2288
- const po = /* @__PURE__ */ k(vo, [["__scopeId", "data-v-9f3d7271"]]), mo = ["teal", "white"], _o = ["href"], ho = /* @__PURE__ */ $({
2293
+ const _n = /* @__PURE__ */ $(mn, [["__scopeId", "data-v-9f3d7271"]]), bn = ["teal", "white"], gn = ["href"], hn = /* @__PURE__ */ j({
2289
2294
  __name: "VJoyLink",
2290
2295
  props: {
2291
2296
  href: {
@@ -2296,29 +2301,128 @@ const po = /* @__PURE__ */ k(vo, [["__scopeId", "data-v-9f3d7271"]]), mo = ["tea
2296
2301
  type: String,
2297
2302
  default: "teal",
2298
2303
  validator(e) {
2299
- return mo.includes(e);
2304
+ return bn.includes(e);
2300
2305
  }
2301
2306
  },
2302
2307
  icon: String,
2303
2308
  text: String
2304
2309
  },
2305
2310
  setup(e) {
2306
- return (l, t) => (s(), m("a", K({ href: e.href }, l.$attrs, {
2311
+ return (l, t) => (d(), m("a", Z({ href: e.href }, l.$attrs, {
2307
2312
  class: ["joy-link", `joy-link_${e.color}`]
2308
2313
  }), [
2309
- e.icon ? (s(), C(E, {
2314
+ e.icon ? (d(), x(T, {
2310
2315
  key: 0,
2311
2316
  name: e.icon
2312
- }, null, 8, ["name"])) : h("", !0),
2317
+ }, null, 8, ["name"])) : b("", !0),
2313
2318
  g(l.$slots, "default", {}, () => [
2314
- B(L(e.text), 1)
2319
+ B(C(e.text), 1)
2315
2320
  ], !0)
2316
- ], 16, _o));
2321
+ ], 16, gn));
2322
+ }
2323
+ });
2324
+ const wn = /* @__PURE__ */ $(hn, [["__scopeId", "data-v-76f0342e"]]), Sn = ["tabindex", "aria-activedescendant", "aria-label"], jn = ["id", "aria-disabled", "aria-current", "title", "aria-label", ".dataModel", "onClick"], $n = { "aria-hidden": "true" }, kn = /* @__PURE__ */ j({
2325
+ __name: "VJoyMenu",
2326
+ props: {
2327
+ /**
2328
+ * In order to make it work with v-model, you need to pass for each option, a value or an ID.
2329
+ */
2330
+ items: {
2331
+ type: Array,
2332
+ default() {
2333
+ return [];
2334
+ }
2335
+ },
2336
+ modelValue: {
2337
+ type: String
2338
+ },
2339
+ ariaLabel: {
2340
+ type: String
2341
+ }
2342
+ },
2343
+ emits: ["selectItem"],
2344
+ setup(e, { expose: l, emit: t }) {
2345
+ const a = w(), n = w(0), r = w();
2346
+ function i(u) {
2347
+ u.disabled || t("selectItem", u);
2348
+ }
2349
+ function o() {
2350
+ var u;
2351
+ return Array.from(((u = a.value) == null ? void 0 : u.querySelectorAll("li")) || []).filter((c) => c.getAttribute("aria-disabled") !== "true");
2352
+ }
2353
+ function y(u) {
2354
+ return u.id || Ve();
2355
+ }
2356
+ function p() {
2357
+ return o().find((u) => u === document.activeElement);
2358
+ }
2359
+ function f(u) {
2360
+ if (p() && u.key === " " && u.preventDefault(), u.key === "Tab" && (r.value = void 0), ["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key)) {
2361
+ u.preventDefault();
2362
+ const c = o(), s = p();
2363
+ let v = c.indexOf(s);
2364
+ if (u.key === "ArrowDown" ? v++ : u.key === "ArrowUp" ? v-- : u.key === "Home" ? v = 0 : u.key === "End" && (v = c.length - 1), v < 0 && (v = 0), v > c.length - 1)
2365
+ return;
2366
+ r.value = c[v].id, c[v].focus();
2367
+ }
2368
+ if (u.key === "Enter") {
2369
+ const c = p();
2370
+ if (!c)
2371
+ return;
2372
+ const s = c.querySelector("a");
2373
+ c && s ? s.click() : c.click();
2374
+ }
2375
+ }
2376
+ return l({
2377
+ activeMenuItemId: r,
2378
+ getItems: o,
2379
+ getItemId: y,
2380
+ getFocusedItem: p
2381
+ }), (u, c) => (d(), m("ul", {
2382
+ ref_key: "menu",
2383
+ ref: a,
2384
+ class: "joy-menu-list joy-menu-list__items",
2385
+ tabindex: n.value,
2386
+ "aria-activedescendant": r.value,
2387
+ "aria-label": e.ariaLabel,
2388
+ role: "menu",
2389
+ onKeydown: f
2390
+ }, [
2391
+ (d(!0), m(D, null, G(e.items, (s) => (d(), m("li", {
2392
+ id: y(s),
2393
+ key: s.label,
2394
+ class: S([
2395
+ "joy-menu-list__item",
2396
+ {
2397
+ "joy-menu-list__item--current": s.current,
2398
+ "joy-menu-list__item--disabled": s.disabled
2399
+ }
2400
+ ]),
2401
+ tabindex: "-1",
2402
+ "aria-disabled": s.disabled,
2403
+ "aria-current": s.current,
2404
+ title: s.label,
2405
+ "aria-label": s.label,
2406
+ ".dataModel": s.value || s.id,
2407
+ role: "menuitem",
2408
+ onClick: (v) => i(s)
2409
+ }, [
2410
+ _("div", $n, [
2411
+ g(u.$slots, "menu-item", se(ue(s)), () => [
2412
+ s.icon ? (d(), x(T, {
2413
+ key: 0,
2414
+ name: s.icon
2415
+ }, null, 8, ["name"])) : b("", !0),
2416
+ _("span", null, C(s.label), 1)
2417
+ ], !0)
2418
+ ])
2419
+ ], 10, jn))), 128))
2420
+ ], 40, Sn));
2317
2421
  }
2318
2422
  });
2319
- const go = /* @__PURE__ */ k(ho, [["__scopeId", "data-v-76f0342e"]]), bo = ["id"], wo = {
2423
+ const Vn = /* @__PURE__ */ $(kn, [["__scopeId", "data-v-4391a0bd"]]), xn = ["id"], In = {
2320
2424
  class: /* @__PURE__ */ S(["joy-multi-checkbox"])
2321
- }, So = /* @__PURE__ */ $({
2425
+ }, Cn = /* @__PURE__ */ j({
2322
2426
  __name: "VJoyMultiCheckbox",
2323
2427
  props: {
2324
2428
  options: {
@@ -2354,18 +2458,18 @@ const go = /* @__PURE__ */ k(ho, [["__scopeId", "data-v-76f0342e"]]), bo = ["id"
2354
2458
  emits: ["update:value"],
2355
2459
  setup(e, { emit: l }) {
2356
2460
  const t = e;
2357
- function a(i) {
2358
- return t.value.includes(i.value);
2461
+ function a(r) {
2462
+ return t.value.includes(r.value);
2359
2463
  }
2360
- function o(i, r) {
2361
- let n = [...t.value || []];
2362
- r ? n.push(i) : n.splice(n.indexOf(i), 1), l("update:value", n);
2464
+ function n(r, i) {
2465
+ let o = [...t.value || []];
2466
+ i ? o.push(r) : o.splice(o.indexOf(r), 1), l("update:value", o);
2363
2467
  }
2364
- return (i, r) => (s(), m("fieldset", {
2468
+ return (r, i) => (d(), m("fieldset", {
2365
2469
  id: e.id,
2366
2470
  class: "joy-multi-checkbox__wrapper"
2367
2471
  }, [
2368
- e.label ? (s(), C(j(ee), {
2472
+ e.label ? (d(), x(k(ee), {
2369
2473
  key: 0,
2370
2474
  "tag-name": "legend",
2371
2475
  required: e.required && e.requiredMark,
@@ -2373,31 +2477,31 @@ const go = /* @__PURE__ */ k(ho, [["__scopeId", "data-v-76f0342e"]]), bo = ["id"
2373
2477
  size: e.labelSize
2374
2478
  }, {
2375
2479
  default: O(() => [
2376
- B(L(e.label), 1)
2480
+ B(C(e.label), 1)
2377
2481
  ]),
2378
2482
  _: 1
2379
- }, 8, ["required", "optional-label", "size"])) : h("", !0),
2380
- _("div", wo, [
2381
- (s(!0), m(H, null, U(e.options, (n) => (s(), C(j(Ce), {
2382
- id: n.id,
2383
- key: n.id,
2384
- name: n.name,
2385
- value: n.value,
2386
- checked: a(n),
2387
- "onUpdate:checked": (c) => o(n.value, c)
2483
+ }, 8, ["required", "optional-label", "size"])) : b("", !0),
2484
+ _("div", In, [
2485
+ (d(!0), m(D, null, G(e.options, (o) => (d(), x(k(Ie), {
2486
+ id: o.id,
2487
+ key: o.id,
2488
+ name: o.name,
2489
+ value: o.value,
2490
+ checked: a(o),
2491
+ "onUpdate:checked": (y) => n(o.value, y)
2388
2492
  }, {
2389
2493
  default: O(() => [
2390
- g(i.$slots, "checkbox", $e(je(n)), () => [
2391
- B(L(n.label), 1)
2494
+ g(r.$slots, "checkbox", se(ue(o)), () => [
2495
+ B(C(o.label), 1)
2392
2496
  ], !0)
2393
2497
  ]),
2394
2498
  _: 2
2395
2499
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
2396
2500
  ])
2397
- ], 8, bo));
2501
+ ], 8, xn));
2398
2502
  }
2399
2503
  });
2400
- const $o = /* @__PURE__ */ k(So, [["__scopeId", "data-v-47574ced"]]), et = /* @__PURE__ */ $({
2504
+ const Ln = /* @__PURE__ */ $(Cn, [["__scopeId", "data-v-47574ced"]]), et = /* @__PURE__ */ j({
2401
2505
  __name: "PaginationIcon",
2402
2506
  props: {
2403
2507
  label: {
@@ -2415,7 +2519,7 @@ const $o = /* @__PURE__ */ k(So, [["__scopeId", "data-v-47574ced"]]), et = /* @_
2415
2519
  },
2416
2520
  emits: ["click"],
2417
2521
  setup(e) {
2418
- return (l, t) => (s(), C(xe, {
2522
+ return (l, t) => (d(), x(xe, {
2419
2523
  class: "joy-pagination__icon",
2420
2524
  "aria-label": e.label,
2421
2525
  title: e.label,
@@ -2428,7 +2532,7 @@ const $o = /* @__PURE__ */ k(So, [["__scopeId", "data-v-47574ced"]]), et = /* @_
2428
2532
  onClick: t[0] || (t[0] = (a) => l.$emit("click", a))
2429
2533
  }, null, 8, ["aria-label", "title", "icon", "disabled"]));
2430
2534
  }
2431
- }), jo = ["aria-label", "data-current"], ko = { class: "joy-pagination__previous" }, Vo = ["aria-current", "onClick"], xo = { class: "joy-pagination__next" }, Co = 6, Lo = /* @__PURE__ */ $({
2535
+ }), Bn = ["aria-label", "data-current"], On = { class: "joy-pagination__previous" }, Tn = ["aria-current", "onClick"], Jn = { class: "joy-pagination__next" }, En = 6, Pn = /* @__PURE__ */ j({
2432
2536
  __name: "VJoyPagination",
2433
2537
  props: {
2434
2538
  /** Current page number */
@@ -2460,82 +2564,82 @@ const $o = /* @__PURE__ */ k(So, [["__scopeId", "data-v-47574ced"]]), et = /* @_
2460
2564
  emits: ["update:current-page"],
2461
2565
  setup(e, { emit: l }) {
2462
2566
  const t = e, a = V(() => {
2463
- const v = i.value.length;
2464
- return i.value[v - 1] !== i.value[v - 2] + 1;
2465
- }), o = V(() => i.value[0] !== i.value[1] - 1), i = V(() => t.totalPages < Co ? n(2, t.totalPages - 1) : c(t.currentPage));
2466
- function r(v) {
2467
- l("update:current-page", v);
2567
+ const p = r.value.length;
2568
+ return r.value[p - 1] !== r.value[p - 2] + 1;
2569
+ }), n = V(() => r.value[0] !== r.value[1] - 1), r = V(() => t.totalPages < En ? o(2, t.totalPages - 1) : y(t.currentPage));
2570
+ function i(p) {
2571
+ l("update:current-page", p);
2468
2572
  }
2469
- function n(v, d) {
2470
- const y = [];
2471
- y.push(1);
2472
- for (let f = v; f <= d; f++)
2473
- y.push(f);
2474
- return y.push(t.totalPages), y;
2573
+ function o(p, f) {
2574
+ const u = [];
2575
+ u.push(1);
2576
+ for (let c = p; c <= f; c++)
2577
+ u.push(c);
2578
+ return u.push(t.totalPages), u;
2475
2579
  }
2476
- function c(v) {
2477
- let d = v - 2, y = v + 1;
2478
- return d <= 1 && (d = 2, y = 5), y >= t.totalPages && (y = t.totalPages - 1, d = y - 3), n(d, y);
2580
+ function y(p) {
2581
+ let f = p - 2, u = p + 1;
2582
+ return f <= 1 && (f = 2, u = 5), u >= t.totalPages && (u = t.totalPages - 1, f = u - 3), o(f, u);
2479
2583
  }
2480
- return (v, d) => (s(), m("nav", {
2584
+ return (p, f) => (d(), m("nav", {
2481
2585
  role: "navigation",
2482
2586
  "aria-label": e.labelPagination,
2483
2587
  class: "joy-pagination",
2484
2588
  "data-current": e.currentPage
2485
2589
  }, [
2486
2590
  _("ul", null, [
2487
- _("li", ko, [
2488
- g(v.$slots, "pagination-prev", {}, () => [
2591
+ _("li", On, [
2592
+ g(p.$slots, "pagination-prev", {}, () => [
2489
2593
  R(et, {
2490
2594
  label: e.labelPrev,
2491
2595
  disabled: e.currentPage === 1,
2492
- onClick: d[0] || (d[0] = (y) => r(e.currentPage - 1))
2596
+ onClick: f[0] || (f[0] = (u) => i(e.currentPage - 1))
2493
2597
  }, null, 8, ["label", "disabled"])
2494
2598
  ], !0)
2495
2599
  ]),
2496
2600
  _("li", null, [
2497
2601
  _("ul", null, [
2498
- (s(!0), m(H, null, U(i.value, (y) => (s(), m("li", { key: y }, [
2602
+ (d(!0), m(D, null, G(r.value, (u) => (d(), m("li", { key: u }, [
2499
2603
  _("button", {
2500
2604
  type: "button",
2501
- "aria-current": y === e.currentPage ? "true" : "false",
2605
+ "aria-current": u === e.currentPage ? "true" : "false",
2502
2606
  class: S({
2503
- current: y === e.currentPage,
2504
- "joy-pagination__separator joy-pagination__separator-after": y === 1 && o.value,
2505
- "joy-pagination__separator joy-pagination__separator-before": y === e.totalPages && a.value
2607
+ current: u === e.currentPage,
2608
+ "joy-pagination__separator joy-pagination__separator-after": u === 1 && n.value,
2609
+ "joy-pagination__separator joy-pagination__separator-before": u === e.totalPages && a.value
2506
2610
  }),
2507
- onClick: (f) => r(y)
2508
- }, L(y), 11, Vo)
2611
+ onClick: (c) => i(u)
2612
+ }, C(u), 11, Tn)
2509
2613
  ]))), 128))
2510
2614
  ])
2511
2615
  ]),
2512
- _("li", xo, [
2513
- g(v.$slots, "pagination-next", {}, () => [
2616
+ _("li", Jn, [
2617
+ g(p.$slots, "pagination-next", {}, () => [
2514
2618
  R(et, {
2515
2619
  next: "",
2516
2620
  label: e.labelNext,
2517
2621
  disabled: e.currentPage === e.totalPages,
2518
- onClick: d[1] || (d[1] = (y) => r(e.currentPage + 1))
2622
+ onClick: f[1] || (f[1] = (u) => i(e.currentPage + 1))
2519
2623
  }, null, 8, ["label", "disabled"])
2520
2624
  ], !0)
2521
2625
  ])
2522
2626
  ])
2523
- ], 8, jo));
2627
+ ], 8, Bn));
2524
2628
  }
2525
2629
  });
2526
- const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-e5b57944"]]), Bo = ["small", "medium", "large"], Oo = ["small", "large"], To = {
2630
+ const An = /* @__PURE__ */ $(Pn, [["__scopeId", "data-v-e5b57944"]]), zn = ["small", "medium", "large"], qn = ["small", "large"], Fn = {
2527
2631
  key: 0,
2528
2632
  class: /* @__PURE__ */ S(["joy-panel__header"])
2529
- }, Po = {
2633
+ }, Mn = {
2530
2634
  key: 1,
2531
2635
  class: "joy-panel__header-action"
2532
- }, Jo = {
2636
+ }, Nn = {
2533
2637
  key: 2,
2534
2638
  class: "joy-panel__header-subtitle"
2535
- }, Eo = { class: "joy-panel__body" }, zo = {
2639
+ }, Rn = { class: "joy-panel__body" }, Dn = {
2536
2640
  key: 1,
2537
2641
  class: "joy-panel__footer"
2538
- }, Ao = /* @__PURE__ */ $({
2642
+ }, Hn = /* @__PURE__ */ j({
2539
2643
  __name: "VJoyPanel",
2540
2644
  props: {
2541
2645
  flex: {
@@ -2549,14 +2653,14 @@ const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-e5b57944"]]), Bo = ["sma
2549
2653
  type: String,
2550
2654
  default: "medium",
2551
2655
  validator(e) {
2552
- return Bo.includes(e);
2656
+ return zn.includes(e);
2553
2657
  }
2554
2658
  },
2555
2659
  titleSize: {
2556
2660
  type: String,
2557
2661
  default: "large",
2558
2662
  validator(e) {
2559
- return Oo.includes(e);
2663
+ return qn.includes(e);
2560
2664
  }
2561
2665
  },
2562
2666
  loading: {
@@ -2569,11 +2673,11 @@ const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-e5b57944"]]), Bo = ["sma
2569
2673
  }
2570
2674
  },
2571
2675
  setup(e) {
2572
- const l = de("VJoyWrapperContext", {}), t = V(() => Object.keys(l).length > 0), a = Y(), o = w(), i = V(() => a["panel-title"] || a["panel-subtitle"] || a["panel-title-action"]);
2573
- return (r, n) => (s(), m("section", {
2676
+ const l = de("VJoyWrapperContext", {}), t = V(() => Object.keys(l).length > 0), a = Y(), n = w(), r = V(() => a["panel-title"] || a["panel-subtitle"] || a["panel-title-action"]);
2677
+ return (i, o) => (d(), m("section", {
2574
2678
  ref_key: "panel",
2575
- ref: o,
2576
- style: Z({ flex: e.flex }),
2679
+ ref: n,
2680
+ style: K({ flex: e.flex }),
2577
2681
  class: S([
2578
2682
  "joy-panel",
2579
2683
  `joy-panel--${e.padding}`,
@@ -2583,60 +2687,60 @@ const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-e5b57944"]]), Bo = ["sma
2583
2687
  }
2584
2688
  ])
2585
2689
  }, [
2586
- i.value ? (s(), m("header", To, [
2587
- j(a)["panel-title"] ? (s(), m("div", {
2690
+ r.value ? (d(), m("header", Fn, [
2691
+ k(a)["panel-title"] ? (d(), m("div", {
2588
2692
  key: 0,
2589
2693
  class: S(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
2590
2694
  }, [
2591
- g(r.$slots, "panel-title", {}, void 0, !0)
2592
- ], 2)) : h("", !0),
2593
- j(a)["panel-title-action"] ? (s(), m("div", Po, [
2594
- g(r.$slots, "panel-title-action", {}, void 0, !0)
2595
- ])) : h("", !0),
2596
- j(a)["panel-subtitle"] ? (s(), m("div", Jo, [
2597
- g(r.$slots, "panel-subtitle", {}, void 0, !0)
2598
- ])) : h("", !0)
2599
- ])) : h("", !0),
2600
- _("div", Eo, [
2601
- g(r.$slots, "panel-body", {}, void 0, !0)
2695
+ g(i.$slots, "panel-title", {}, void 0, !0)
2696
+ ], 2)) : b("", !0),
2697
+ k(a)["panel-title-action"] ? (d(), m("div", Mn, [
2698
+ g(i.$slots, "panel-title-action", {}, void 0, !0)
2699
+ ])) : b("", !0),
2700
+ k(a)["panel-subtitle"] ? (d(), m("div", Nn, [
2701
+ g(i.$slots, "panel-subtitle", {}, void 0, !0)
2702
+ ])) : b("", !0)
2703
+ ])) : b("", !0),
2704
+ _("div", Rn, [
2705
+ g(i.$slots, "panel-body", {}, void 0, !0)
2602
2706
  ]),
2603
- j(a)["panel-action"] ? (s(), m("footer", zo, [
2604
- g(r.$slots, "panel-action", {}, void 0, !0)
2605
- ])) : h("", !0),
2606
- e.loading ? (s(), C(j(Ie), {
2707
+ k(a)["panel-action"] ? (d(), m("footer", Dn, [
2708
+ g(i.$slots, "panel-action", {}, void 0, !0)
2709
+ ])) : b("", !0),
2710
+ e.loading ? (d(), x(k(Le), {
2607
2711
  key: 2,
2608
2712
  overlay: "",
2609
2713
  color: e.loadingColor
2610
2714
  }, {
2611
2715
  content: O(() => [
2612
- g(r.$slots, "panel-loader-content", {}, void 0, !0)
2716
+ g(i.$slots, "panel-loader-content", {}, void 0, !0)
2613
2717
  ]),
2614
2718
  _: 3
2615
- }, 8, ["color"])) : h("", !0)
2719
+ }, 8, ["color"])) : b("", !0)
2616
2720
  ], 6));
2617
2721
  }
2618
2722
  });
2619
- const Fo = /* @__PURE__ */ k(Ao, [["__scopeId", "data-v-2e3a2baa"]]), qo = { class: "joy-panel-section" }, No = {
2723
+ const Wn = /* @__PURE__ */ $(Hn, [["__scopeId", "data-v-2e3a2baa"]]), Un = { class: "joy-panel-section" }, Gn = {
2620
2724
  key: 0,
2621
2725
  class: "joy-panel-section__title"
2622
- }, Mo = {
2726
+ }, Kn = {
2623
2727
  key: 1,
2624
2728
  class: "joy-panel-section__content"
2625
- }, Ro = /* @__PURE__ */ $({
2729
+ }, Zn = /* @__PURE__ */ j({
2626
2730
  __name: "VJoyPanelSection",
2627
2731
  setup(e) {
2628
2732
  const l = Y();
2629
- return (t, a) => (s(), m("div", qo, [
2630
- j(l)["panel-section-title"] ? (s(), m("div", No, [
2733
+ return (t, a) => (d(), m("div", Un, [
2734
+ k(l)["panel-section-title"] ? (d(), m("div", Gn, [
2631
2735
  g(t.$slots, "panel-section-title", {}, void 0, !0)
2632
- ])) : h("", !0),
2633
- j(l)["panel-section-content"] ? (s(), m("div", Mo, [
2736
+ ])) : b("", !0),
2737
+ k(l)["panel-section-content"] ? (d(), m("div", Kn, [
2634
2738
  g(t.$slots, "panel-section-content", {}, void 0, !0)
2635
- ])) : h("", !0)
2739
+ ])) : b("", !0)
2636
2740
  ]));
2637
2741
  }
2638
2742
  });
2639
- const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-d88510ab"]]), Do = { class: "joy-progress-bar-wrapper" }, Wo = /* @__PURE__ */ $({
2743
+ const Qn = /* @__PURE__ */ $(Zn, [["__scopeId", "data-v-d88510ab"]]), Yn = { class: "joy-progress-bar-wrapper" }, Xn = /* @__PURE__ */ j({
2640
2744
  __name: "VJoyProgressBar",
2641
2745
  props: {
2642
2746
  color: {
@@ -2663,22 +2767,22 @@ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-d88510ab"]]), Do = { cla
2663
2767
  }
2664
2768
  },
2665
2769
  setup(e, { expose: l }) {
2666
- const t = e, a = w(0), o = V(() => i());
2667
- function i() {
2770
+ const t = e, a = w(0), n = V(() => r());
2771
+ function r() {
2668
2772
  return t.percentage ? a.value = t.percentage : t.currentStep && t.steps ? a.value = Math.round(t.currentStep / t.steps * 100) : a.value = 0, a.value < 0 && (a.value = 0), a.value > 100 && (a.value = 100), a.value + "%";
2669
2773
  }
2670
2774
  return l({
2671
- computeInnerWidth: o,
2775
+ computeInnerWidth: n,
2672
2776
  computedPercentage: a
2673
- }), (r, n) => (s(), m("div", Do, [
2777
+ }), (i, o) => (d(), m("div", Yn, [
2674
2778
  _("div", {
2675
2779
  class: S(["joy-progress-bar-inner", `joy-progress-bar-inner_${e.color}`]),
2676
- style: Z({ width: o.value })
2780
+ style: K({ width: n.value })
2677
2781
  }, null, 6)
2678
2782
  ]));
2679
2783
  }
2680
2784
  });
2681
- const Go = /* @__PURE__ */ k(Wo, [["__scopeId", "data-v-a28eae43"]]), Uo = ["id", "value", "checked", "disabled", "required", "name"], Zo = { class: "joy-radio-label" }, Ko = { class: "joy-radio-content__wrapper" }, Qo = { class: "joy-radio-content" }, Yo = /* @__PURE__ */ $({
2785
+ const eo = /* @__PURE__ */ $(Xn, [["__scopeId", "data-v-a28eae43"]]), to = ["id", "value", "checked", "disabled", "required", "name"], lo = { class: "joy-radio-label" }, ao = { class: "joy-radio-content__wrapper" }, no = { class: "joy-radio-content" }, oo = /* @__PURE__ */ j({
2682
2786
  __name: "VJoyRadio",
2683
2787
  props: {
2684
2788
  disabled: {
@@ -2714,42 +2818,42 @@ const Go = /* @__PURE__ */ k(Wo, [["__scopeId", "data-v-a28eae43"]]), Uo = ["id"
2714
2818
  },
2715
2819
  emits: ["update:modelValue"],
2716
2820
  setup(e, { expose: l, emit: t }) {
2717
- const a = e, o = w(!1), i = w(!1), r = w(null), n = w(null), c = Y(), v = V(() => !a.modelValue || !a.value ? !1 : a.modelValue === a.value);
2718
- function d() {
2719
- o.value = !!c["expandable-content"] && v.value;
2821
+ const a = e, n = w(!1), r = w(!1), i = w(null), o = w(null), y = Y(), p = V(() => !a.modelValue || !a.value ? !1 : a.modelValue === a.value);
2822
+ function f() {
2823
+ n.value = !!y["expandable-content"] && p.value;
2720
2824
  }
2721
- function y() {
2722
- t("update:modelValue", a.value), d();
2825
+ function u() {
2826
+ t("update:modelValue", a.value), f();
2723
2827
  }
2724
2828
  Q(() => {
2725
- a.theme === "outline" && d();
2829
+ a.theme === "outline" && f();
2726
2830
  });
2727
- function f() {
2728
- i.value = !0;
2831
+ function c() {
2832
+ r.value = !0;
2729
2833
  }
2730
- function u() {
2731
- i.value = !1;
2834
+ function s() {
2835
+ r.value = !1;
2732
2836
  }
2733
- return P(
2837
+ return E(
2734
2838
  () => a.modelValue,
2735
2839
  () => {
2736
- d();
2840
+ f();
2737
2841
  }
2738
2842
  ), l({
2739
- checked: v,
2740
- isExpanded: o
2741
- }), (p, b) => (s(), m("label", {
2843
+ checked: p,
2844
+ isExpanded: n
2845
+ }), (v, h) => (d(), m("label", {
2742
2846
  ref_key: "root",
2743
- ref: r,
2847
+ ref: i,
2744
2848
  class: S([
2745
2849
  "joy-radio",
2746
2850
  `joy-radio--${e.theme}`,
2747
2851
  {
2748
- "joy-radio--checked": v.value,
2852
+ "joy-radio--checked": p.value,
2749
2853
  "joy-radio--disabled": e.disabled,
2750
2854
  "joy-radio--invalid": e.invalid,
2751
- "joy-radio--outline-focus": i.value && e.theme === "outline",
2752
- "joy-radio--focus": i.value && e.theme === "default"
2855
+ "joy-radio--outline-focus": r.value && e.theme === "outline",
2856
+ "joy-radio--focus": r.value && e.theme === "default"
2753
2857
  }
2754
2858
  ])
2755
2859
  }, [
@@ -2757,33 +2861,33 @@ const Go = /* @__PURE__ */ k(Wo, [["__scopeId", "data-v-a28eae43"]]), Uo = ["id"
2757
2861
  id: e.id,
2758
2862
  type: "radio",
2759
2863
  value: e.value,
2760
- checked: v.value,
2864
+ checked: p.value,
2761
2865
  disabled: e.disabled,
2762
2866
  required: e.required,
2763
2867
  name: e.name,
2764
- onChange: y,
2765
- onFocus: f,
2766
- onBlur: u
2767
- }, null, 40, Uo),
2768
- _("span", Zo, [
2769
- g(p.$slots, "default", {}, void 0, !0)
2868
+ onChange: u,
2869
+ onFocus: c,
2870
+ onBlur: s
2871
+ }, null, 40, to),
2872
+ _("span", lo, [
2873
+ g(v.$slots, "default", {}, void 0, !0)
2770
2874
  ]),
2771
- _("div", Ko, [
2772
- _("div", Qo, [
2773
- g(p.$slots, "radio-content", {}, void 0, !0)
2875
+ _("div", ao, [
2876
+ _("div", no, [
2877
+ g(v.$slots, "radio-content", {}, void 0, !0)
2774
2878
  ]),
2775
2879
  _("div", {
2776
2880
  ref_key: "expandableElement",
2777
- ref: n,
2778
- class: S(["joy-radio-expandable", { "joy-radio-expandable--expanded": o.value }])
2881
+ ref: o,
2882
+ class: S(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
2779
2883
  }, [
2780
- g(p.$slots, "expandable-content", {}, void 0, !0)
2884
+ g(v.$slots, "expandable-content", {}, void 0, !0)
2781
2885
  ], 2)
2782
2886
  ])
2783
2887
  ], 2));
2784
2888
  }
2785
2889
  });
2786
- const Xo = /* @__PURE__ */ k(Yo, [["__scopeId", "data-v-24cea99b"]]), en = ["form", "name"], tn = /* @__PURE__ */ $({
2890
+ const ro = /* @__PURE__ */ $(oo, [["__scopeId", "data-v-24cea99b"]]), io = ["form", "name"], so = /* @__PURE__ */ j({
2787
2891
  __name: "VJoyRadioGroup",
2788
2892
  props: {
2789
2893
  /**
@@ -2804,7 +2908,7 @@ const Xo = /* @__PURE__ */ k(Yo, [["__scopeId", "data-v-24cea99b"]]), en = ["for
2804
2908
  }
2805
2909
  },
2806
2910
  setup(e) {
2807
- return (l, t) => (s(), m("fieldset", {
2911
+ return (l, t) => (d(), m("fieldset", {
2808
2912
  ref: "root",
2809
2913
  class: "joy-radio-group-fieldset",
2810
2914
  role: "radiogroup",
@@ -2817,35 +2921,10 @@ const Xo = /* @__PURE__ */ k(Yo, [["__scopeId", "data-v-24cea99b"]]), en = ["for
2817
2921
  }, [
2818
2922
  g(l.$slots, "default", {}, void 0, !0)
2819
2923
  ], 2)
2820
- ], 8, en));
2924
+ ], 8, io));
2821
2925
  }
2822
2926
  });
2823
- const ln = /* @__PURE__ */ k(tn, [["__scopeId", "data-v-a77e7f95"]]), ce = (e) => (se("data-v-adbf7701"), e = e(), ue(), e), an = ["ariaLabel"], on = { class: "joy-rating-stars" }, nn = ["width", "height"], rn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2824
- d: "M8.51738 0.317102L10.8968 5.03115L15.4764 5.48484C15.7915 5.51103 16.0257 5.78767 15.9995 6.10274C15.9882 6.2386 15.9288 6.36597 15.832 6.46193L12.063 10.1975L13.4604 15.2735C13.5424 15.5821 13.3586 15.8987 13.05 15.9806C12.9134 16.0169 12.7682 16.0019 12.6419 15.9384L7.99897 13.6393L3.36244 15.9355C3.07717 16.079 2.72963 15.964 2.58619 15.6787C2.52268 15.5524 2.50765 15.4073 2.54393 15.2706L3.94129 10.1946L0.169485 6.45908C-0.0550713 6.23653 -0.0566948 5.87408 0.165859 5.64952C0.261822 5.55269 0.389191 5.49329 0.525048 5.482L5.10469 5.0283L7.48056 0.317103C7.62715 0.0307927 7.97809 -0.0824695 8.2644 0.0641246C8.37318 0.119821 8.46168 0.208323 8.51738 0.317102Z",
2825
- fill: "#FFC200"
2826
- }, null, -1)), sn = [
2827
- rn
2828
- ], un = ["width", "height"], dn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2829
- d: "M9.51738 1.3171L11.8968 6.03115L16.4764 6.48484C16.7915 6.51103 17.0257 6.78767 16.9995 7.10274C16.9882 7.2386 16.9288 7.36597 16.832 7.46193L13.063 11.1975L14.4604 16.2735C14.5424 16.5821 14.3586 16.8987 14.05 16.9806C13.9134 17.0169 13.7682 17.0019 13.6419 16.9384L8.99897 14.6393L4.36244 16.9355C4.07717 17.079 3.72963 16.964 3.58619 16.6787C3.52268 16.5524 3.50765 16.4073 3.54393 16.2706L4.94129 11.1946L1.16949 7.45908C0.944928 7.23653 0.943304 6.87408 1.16586 6.64952C1.26182 6.55269 1.38919 6.49329 1.52505 6.482L6.10469 6.0283L8.48056 1.3171C8.62715 1.03079 8.97809 0.917532 9.2644 1.06412C9.37318 1.11982 9.46168 1.20832 9.51738 1.3171Z",
2830
- stroke: "#FFC200",
2831
- "stroke-width": "1.5",
2832
- "stroke-linecap": "round",
2833
- "stroke-linejoin": "round"
2834
- }, null, -1)), cn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2835
- d: "M4.36243 16.9355L8.99897 14.6393V1C8.78748 1.00017 8.58356 1.11591 8.48055 1.3171L6.10469 6.0283L1.52504 6.482C1.38919 6.49329 1.26182 6.55269 1.16586 6.64952C0.943301 6.87408 0.944925 7.23653 1.16948 7.45908L4.94129 11.1946L3.54393 16.2706C3.50765 16.4073 3.52268 16.5524 3.58618 16.6787C3.72963 16.964 4.07717 17.079 4.36243 16.9355Z",
2836
- fill: "#FFC200"
2837
- }, null, -1)), fn = [
2838
- dn,
2839
- cn
2840
- ], yn = ["width", "height"], vn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2841
- d: "M11.5746 6.09904C11.6613 6.27083 11.8298 6.38638 12.0213 6.40535L16.8867 6.88741L16.8867 6.88748L16.8956 6.88821C16.9207 6.8903 16.9394 6.91236 16.9373 6.93758C16.9364 6.94846 16.9317 6.95863 16.9239 6.96629L16.9239 6.9663L12.9198 10.9353C12.7754 11.0784 12.7195 11.2882 12.7734 11.4841L14.2569 16.8736C14.2635 16.9009 14.2471 16.9285 14.2199 16.9358C14.2077 16.939 14.1948 16.9377 14.1835 16.932L14.1804 16.9304L9.24773 14.4877C9.09041 14.4098 8.90575 14.4098 8.74844 14.4877L3.82259 16.9274L3.82259 16.9274L3.81953 16.929C3.79405 16.9418 3.76297 16.9315 3.75011 16.906C3.7446 16.895 3.74316 16.8824 3.74605 16.8705L5.22955 11.4811C5.2835 11.2851 5.2275 11.0752 5.08306 10.9321L1.07604 6.96327C1.07601 6.96323 1.07597 6.9632 1.07593 6.96316C1.0581 6.94537 1.05801 6.91646 1.07575 6.89856C1.08341 6.89083 1.09357 6.88609 1.1044 6.88519L1.1044 6.88526L1.11327 6.88438L5.97868 6.40233C6.17024 6.38335 6.3388 6.26773 6.42547 6.09584L8.94803 1.09326C8.94815 1.09302 8.94827 1.09279 8.9484 1.09255C8.96278 1.06539 8.99633 1.05479 9.02371 1.06881C9.03399 1.07407 9.0424 1.08237 9.04781 1.09259C9.04793 1.09281 9.04804 1.09303 9.04816 1.09326L11.5746 6.09904Z",
2842
- stroke: "#E0DED9",
2843
- "stroke-width": "1.5",
2844
- "stroke-linecap": "round",
2845
- "stroke-linejoin": "round"
2846
- }, null, -1)), pn = [
2847
- vn
2848
- ], mn = { class: "joy-rating-stars__content" }, _n = { key: 0 }, hn = /* @__PURE__ */ $({
2927
+ const uo = /* @__PURE__ */ $(so, [["__scopeId", "data-v-a77e7f95"]]), co = ["ariaLabel"], fo = { class: "joy-rating-stars" }, yo = { class: "joy-rating-stars__content" }, vo = { key: 0 }, po = /* @__PURE__ */ j({
2849
2928
  __name: "VJoyRatingStars",
2850
2929
  props: {
2851
2930
  ratingValue: {
@@ -2862,74 +2941,54 @@ const ln = /* @__PURE__ */ k(tn, [["__scopeId", "data-v-a77e7f95"]]), ce = (e) =
2862
2941
  }
2863
2942
  },
2864
2943
  setup(e, { expose: l }) {
2865
- const t = e, a = we(), o = V(() => {
2866
- switch (t.size) {
2867
- case "large":
2868
- return 17;
2869
- case "medium":
2870
- return 14;
2871
- case "small":
2872
- return 11;
2873
- default:
2874
- return 14;
2875
- }
2876
- }), i = V(() => {
2877
- let r = [], n = 0.24, c = 0.75;
2878
- for (let v = 0; v < 5; v++)
2879
- t.ratingValue > n ? r.push(t.ratingValue < c ? "half" : "full") : r.push("empty"), n += 1, c += 1;
2944
+ const t = e, a = Se(), n = V(() => {
2945
+ let r = [], i = 0.24, o = 0.75;
2946
+ for (let y = 0; y < 5; y++)
2947
+ t.ratingValue > i ? r.push(t.ratingValue < o ? "half" : "full") : r.push("empty"), i += 1, o += 1;
2880
2948
  return r;
2881
2949
  });
2882
2950
  return l({
2883
- setStars: i
2884
- }), (r, n) => (s(), m("div", {
2951
+ setStars: n
2952
+ }), (r, i) => (d(), m("div", {
2885
2953
  role: "img",
2886
2954
  class: "joy-rating-stars__wrapper",
2887
- ariaLabel: j(a).ariaLabel || `Rating: ${e.ratingValue} out of 5`
2955
+ ariaLabel: k(a).ariaLabel || `Rating: ${e.ratingValue} out of 5`
2888
2956
  }, [
2889
- _("ul", on, [
2890
- (s(!0), m(H, null, U(i.value, (c, v) => (s(), m("li", { key: v }, [
2891
- c === "full" ? (s(), m("svg", {
2957
+ _("ul", fo, [
2958
+ (d(!0), m(D, null, G(n.value, (o, y) => (d(), m("li", {
2959
+ key: y,
2960
+ class: S([`joy-rating-stars--${e.size}`])
2961
+ }, [
2962
+ o === "full" ? (d(), x(T, {
2892
2963
  key: 0,
2893
2964
  "aria-hidden": "true",
2894
- class: "star-full",
2895
- width: o.value,
2896
- height: o.value,
2897
- viewBox: "0 0 17 17",
2898
- fill: "none",
2899
- xmlns: "http://www.w3.org/2000/svg"
2900
- }, sn, 8, nn)) : c === "half" ? (s(), m("svg", {
2965
+ name: "star-fill",
2966
+ color: "quaternary"
2967
+ })) : o === "half" ? (d(), x(T, {
2901
2968
  key: 1,
2902
2969
  "aria-hidden": "true",
2903
- class: "star-half",
2904
- width: o.value,
2905
- height: o.value,
2906
- viewBox: "0 0 17 17",
2907
- xmlns: "http://www.w3.org/2000/svg",
2908
- fill: "none"
2909
- }, fn, 8, un)) : (s(), m("svg", {
2970
+ name: "star-half",
2971
+ color: "quaternary"
2972
+ })) : (d(), x(T, {
2910
2973
  key: 2,
2911
- class: "star-empty",
2912
2974
  "aria-hidden": "true",
2913
- width: o.value,
2914
- height: o.value,
2915
- viewBox: "0 0 17 17",
2916
- fill: "none",
2917
- xmlns: "http://www.w3.org/2000/svg"
2918
- }, pn, 8, yn))
2919
- ]))), 128))
2975
+ name: "star",
2976
+ color: "quaternary"
2977
+ }))
2978
+ ], 2))), 128))
2920
2979
  ]),
2921
- _("div", mn, [
2980
+ _("div", yo, [
2922
2981
  g(r.$slots, "rating-stars-content", {}, () => [
2923
- e.reviewCount ? (s(), m("span", _n, "(" + L(e.reviewCount) + ")", 1)) : h("", !0)
2982
+ e.reviewCount ? (d(), m("span", vo, "(" + C(e.reviewCount) + ")", 1)) : b("", !0)
2924
2983
  ], !0)
2925
2984
  ])
2926
- ], 8, an));
2985
+ ], 8, co));
2927
2986
  }
2928
2987
  });
2929
- const gn = /* @__PURE__ */ k(hn, [["__scopeId", "data-v-adbf7701"]]), bn = { class: "joy-screen-loader__content" }, wn = {
2988
+ const mo = /* @__PURE__ */ $(po, [["__scopeId", "data-v-23927e1e"]]), _o = { class: "joy-screen-loader__content" }, bo = {
2930
2989
  key: 0,
2931
2990
  class: "joy-screen-loader__content"
2932
- }, Sn = /* @__PURE__ */ $({
2991
+ }, go = /* @__PURE__ */ j({
2933
2992
  __name: "VJoyScreenLoader",
2934
2993
  props: {
2935
2994
  /** Light or dark. Changes the spinner and background color */
@@ -2944,23 +3003,23 @@ const gn = /* @__PURE__ */ k(hn, [["__scopeId", "data-v-adbf7701"]]), bn = { cla
2944
3003
  }
2945
3004
  },
2946
3005
  setup(e) {
2947
- return (l, t) => (s(), m("div", {
3006
+ return (l, t) => (d(), m("div", {
2948
3007
  class: S(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2949
3008
  }, [
2950
- _("div", bn, [
3009
+ _("div", _o, [
2951
3010
  g(l.$slots, "spinner", {}, () => [
2952
- R(Ve, {
3011
+ R(ke, {
2953
3012
  color: e.color === "dark" ? "white" : "teal"
2954
3013
  }, null, 8, ["color"])
2955
3014
  ], !0),
2956
- l.$slots.content ? (s(), m("div", wn, [
3015
+ l.$slots.content ? (d(), m("div", bo, [
2957
3016
  g(l.$slots, "content", {}, void 0, !0)
2958
- ])) : h("", !0)
3017
+ ])) : b("", !0)
2959
3018
  ])
2960
3019
  ], 2));
2961
3020
  }
2962
3021
  });
2963
- const Ie = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-5c4f6d7f"]]), $n = ["id", "name", "aria-invalid", "required", "disabled", "value"], jn = /* @__PURE__ */ $({
3022
+ const Le = /* @__PURE__ */ $(go, [["__scopeId", "data-v-5c4f6d7f"]]), ho = ["id", "name", "aria-invalid", "required", "disabled", "value"], wo = /* @__PURE__ */ j({
2964
3023
  __name: "VJoySelect",
2965
3024
  props: {
2966
3025
  disabled: {
@@ -3003,49 +3062,49 @@ const Ie = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-5c4f6d7f"]]), $n = ["id"
3003
3062
  },
3004
3063
  emits: ["update:modelValue"],
3005
3064
  setup(e, { emit: l }) {
3006
- const t = e, a = w(), o = w(), i = Y(), r = w(!1), n = V(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
3065
+ const t = e, a = w(), n = w(), r = Y(), i = w(!1), o = V(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
3007
3066
  Q(() => {
3008
- var u;
3009
- const y = i.label && i.label();
3010
- if (!y || !y.length)
3067
+ var s;
3068
+ const u = r.label && r.label();
3069
+ if (!u || !u.length)
3011
3070
  return;
3012
- const f = y[0];
3013
- if (f.type === "JoyLabel") {
3014
- const p = (u = f.props) == null ? void 0 : u.for;
3015
- if (!p) {
3071
+ const c = u[0];
3072
+ if (c.type === "JoyLabel") {
3073
+ const v = (s = c.props) == null ? void 0 : s.for;
3074
+ if (!v) {
3016
3075
  console.warn("JoyLabel for attribute is missing");
3017
3076
  return;
3018
3077
  }
3019
- p !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
3078
+ v !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
3020
3079
  }
3021
3080
  });
3022
- function c(y) {
3023
- const f = y.target.value;
3024
- l("update:modelValue", f);
3081
+ function y(u) {
3082
+ const c = u.target.value;
3083
+ l("update:modelValue", c);
3025
3084
  }
3026
- function v() {
3027
- r.value = !0;
3085
+ function p() {
3086
+ i.value = !0;
3028
3087
  }
3029
- function d() {
3030
- r.value = !1;
3088
+ function f() {
3089
+ i.value = !1;
3031
3090
  }
3032
- return (y, f) => (s(), m("div", {
3091
+ return (u, c) => (d(), m("div", {
3033
3092
  ref_key: "root",
3034
3093
  ref: a
3035
3094
  }, [
3036
- g(y.$slots, "select-label", {}, () => [
3037
- e.label ? (s(), C(ee, {
3095
+ g(u.$slots, "select-label", {}, () => [
3096
+ e.label ? (d(), x(ee, {
3038
3097
  key: 0,
3039
3098
  required: e.required && e.requiredMark,
3040
3099
  "optional-label": e.optionalLabel,
3041
3100
  for: e.id || e.name,
3042
- size: n.value
3101
+ size: o.value
3043
3102
  }, {
3044
3103
  default: O(() => [
3045
- B(L(e.label), 1)
3104
+ B(C(e.label), 1)
3046
3105
  ]),
3047
3106
  _: 1
3048
- }, 8, ["required", "optional-label", "for", "size"])) : h("", !0)
3107
+ }, 8, ["required", "optional-label", "for", "size"])) : b("", !0)
3049
3108
  ], !0),
3050
3109
  _("div", {
3051
3110
  class: S([
@@ -3054,27 +3113,27 @@ const Ie = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-5c4f6d7f"]]), $n = ["id"
3054
3113
  "joy-select__wrapper": !0,
3055
3114
  "joy-select--invalid": e.invalid,
3056
3115
  "joy-select--disabled": e.disabled,
3057
- "joy-select--focusing": r.value
3116
+ "joy-select--focusing": i.value
3058
3117
  }
3059
3118
  ])
3060
3119
  }, [
3061
3120
  _("select", {
3062
3121
  id: e.id || e.name,
3063
3122
  ref_key: "select",
3064
- ref: o,
3123
+ ref: n,
3065
3124
  class: "joy-select",
3066
3125
  name: e.name,
3067
3126
  "aria-invalid": e.invalid,
3068
3127
  required: e.required,
3069
3128
  disabled: e.disabled,
3070
3129
  value: e.modelValue,
3071
- onChange: c,
3072
- onFocus: v,
3073
- onBlur: d
3130
+ onChange: y,
3131
+ onFocus: p,
3132
+ onBlur: f
3074
3133
  }, [
3075
- g(y.$slots, "default", {}, void 0, !0)
3076
- ], 40, $n),
3077
- R(E, {
3134
+ g(u.$slots, "default", {}, void 0, !0)
3135
+ ], 40, ho),
3136
+ R(T, {
3078
3137
  class: "joy-select__chevron",
3079
3138
  name: "chevron-down"
3080
3139
  })
@@ -3082,7 +3141,7 @@ const Ie = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-5c4f6d7f"]]), $n = ["id"
3082
3141
  ], 512));
3083
3142
  }
3084
3143
  });
3085
- const kn = /* @__PURE__ */ k(jn, [["__scopeId", "data-v-3e9d2dae"]]), Vn = ["aria-disabled"], xn = ["id", "value", "checked", "disabled", "required", "name"], Cn = /* @__PURE__ */ $({
3144
+ const So = /* @__PURE__ */ $(wo, [["__scopeId", "data-v-3e9d2dae"]]), jo = ["aria-disabled"], $o = ["id", "value", "checked", "disabled", "required", "name"], ko = /* @__PURE__ */ j({
3086
3145
  __name: "VJoySelectableItem",
3087
3146
  props: {
3088
3147
  disabled: {
@@ -3119,56 +3178,56 @@ const kn = /* @__PURE__ */ k(jn, [["__scopeId", "data-v-3e9d2dae"]]), Vn = ["ari
3119
3178
  },
3120
3179
  emits: ["update:checked"],
3121
3180
  setup(e, { emit: l }) {
3122
- const t = e, a = w(t.checked), o = w(), i = w(!1), r = t.multiple ? "div" : "label", n = {
3181
+ const t = e, a = w(t.checked), n = w(), r = w(!1), i = t.multiple ? "div" : "label", o = {
3123
3182
  onRadioChange: () => {
3124
3183
  l("update:checked", t.value);
3125
3184
  },
3126
3185
  onClick: () => {
3127
3186
  t.checked && !t.multiple && l("update:checked", "");
3128
3187
  },
3129
- onLabelClick: (v) => {
3130
- t.multiple || v.stopPropagation();
3188
+ onLabelClick: (p) => {
3189
+ t.multiple || p.stopPropagation();
3131
3190
  },
3132
3191
  onFocus: () => {
3133
- i.value = !0;
3192
+ r.value = !0;
3134
3193
  },
3135
3194
  onBlur: () => {
3136
- i.value = !1;
3195
+ r.value = !1;
3137
3196
  }
3138
3197
  };
3139
- function c(v) {
3140
- l("update:checked", v);
3198
+ function y(p) {
3199
+ l("update:checked", p);
3141
3200
  }
3142
- return (v, d) => (s(), m("div", {
3201
+ return (p, f) => (d(), m("div", {
3143
3202
  class: S([
3144
3203
  "joy-selectable-item__wrapper",
3145
3204
  {
3146
- "joy-selectable-item--focusing": i.value
3205
+ "joy-selectable-item--focusing": r.value
3147
3206
  }
3148
3207
  ]),
3149
3208
  "aria-disabled": e.disabled,
3150
- onClick: d[4] || (d[4] = //@ts-ignore
3151
- (...y) => n.onClick && n.onClick(...y))
3209
+ onClick: f[4] || (f[4] = //@ts-ignore
3210
+ (...u) => o.onClick && o.onClick(...u))
3152
3211
  }, [
3153
- e.multiple ? h("", !0) : (s(), m("input", {
3212
+ e.multiple ? b("", !0) : (d(), m("input", {
3154
3213
  key: 0,
3155
3214
  id: e.id,
3156
3215
  ref_key: "inputRadio",
3157
- ref: o,
3216
+ ref: n,
3158
3217
  type: "radio",
3159
3218
  value: e.value,
3160
3219
  checked: e.checked,
3161
3220
  disabled: e.disabled,
3162
3221
  required: e.required,
3163
3222
  name: e.name,
3164
- onChange: d[0] || (d[0] = //@ts-ignore
3165
- (...y) => n.onRadioChange && n.onRadioChange(...y)),
3166
- onFocus: d[1] || (d[1] = //@ts-ignore
3167
- (...y) => n.onFocus && n.onFocus(...y)),
3168
- onBlur: d[2] || (d[2] = //@ts-ignore
3169
- (...y) => n.onBlur && n.onBlur(...y))
3170
- }, null, 40, xn)),
3171
- (s(), C(oe(j(r)), {
3223
+ onChange: f[0] || (f[0] = //@ts-ignore
3224
+ (...u) => o.onRadioChange && o.onRadioChange(...u)),
3225
+ onFocus: f[1] || (f[1] = //@ts-ignore
3226
+ (...u) => o.onFocus && o.onFocus(...u)),
3227
+ onBlur: f[2] || (f[2] = //@ts-ignore
3228
+ (...u) => o.onBlur && o.onBlur(...u))
3229
+ }, null, 40, $o)),
3230
+ (d(), x(ne(k(i)), {
3172
3231
  for: e.id,
3173
3232
  class: S([
3174
3233
  "joy-selectable-item",
@@ -3179,43 +3238,43 @@ const kn = /* @__PURE__ */ k(jn, [["__scopeId", "data-v-3e9d2dae"]]), Vn = ["ari
3179
3238
  "joy-selectable-item--single": !e.multiple
3180
3239
  }
3181
3240
  ]),
3182
- onClick: n.onLabelClick
3241
+ onClick: o.onLabelClick
3183
3242
  }, {
3184
3243
  default: O(() => [
3185
- e.multiple ? (s(), C(j(Ce), {
3244
+ e.multiple ? (d(), x(k(Ie), {
3186
3245
  key: 0,
3187
3246
  id: e.id,
3188
3247
  checked: a.value,
3189
3248
  "onUpdate:checked": [
3190
- d[3] || (d[3] = (y) => a.value = y),
3191
- c
3249
+ f[3] || (f[3] = (u) => a.value = u),
3250
+ y
3192
3251
  ],
3193
3252
  disabled: e.disabled,
3194
3253
  value: e.value,
3195
3254
  name: e.name,
3196
3255
  "display-focus": !1,
3197
3256
  required: e.required,
3198
- onFocus: n.onFocus,
3199
- onBlur: n.onBlur
3257
+ onFocus: o.onFocus,
3258
+ onBlur: o.onBlur
3200
3259
  }, {
3201
3260
  default: O(() => [
3202
- g(v.$slots, "default", {}, void 0, !0)
3261
+ g(p.$slots, "default", {}, void 0, !0)
3203
3262
  ]),
3204
3263
  _: 3
3205
- }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : h("", !0),
3206
- e.multiple ? h("", !0) : g(v.$slots, "default", { key: 1 }, void 0, !0),
3264
+ }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : b("", !0),
3265
+ e.multiple ? b("", !0) : g(p.$slots, "default", { key: 1 }, void 0, !0),
3207
3266
  _("div", {
3208
- class: S([{ "joy-selectable-item__sublabel": v.$slots["selectable-item-sublabel"] }])
3267
+ class: S([{ "joy-selectable-item__sublabel": p.$slots["selectable-item-sublabel"] }])
3209
3268
  }, [
3210
- g(v.$slots, "selectable-item-sublabel", {}, void 0, !0)
3269
+ g(p.$slots, "selectable-item-sublabel", {}, void 0, !0)
3211
3270
  ], 2)
3212
3271
  ]),
3213
3272
  _: 3
3214
3273
  }, 8, ["for", "class", "onClick"]))
3215
- ], 10, Vn));
3274
+ ], 10, jo));
3216
3275
  }
3217
3276
  });
3218
- const yt = /* @__PURE__ */ k(Cn, [["__scopeId", "data-v-cb2531c0"]]), Ln = ["id"], In = /* @__PURE__ */ $({
3277
+ const yt = /* @__PURE__ */ $(ko, [["__scopeId", "data-v-cb2531c0"]]), Vo = ["id"], xo = /* @__PURE__ */ j({
3219
3278
  __name: "VJoySelectableItemGroup",
3220
3279
  props: {
3221
3280
  options: {
@@ -3257,20 +3316,20 @@ const yt = /* @__PURE__ */ k(Cn, [["__scopeId", "data-v-cb2531c0"]]), Ln = ["id"
3257
3316
  emits: ["update:value"],
3258
3317
  setup(e, { emit: l }) {
3259
3318
  const t = e;
3260
- function a(i) {
3261
- return typeof t.value == "string" ? t.value === i.value : (t.value || []).includes(i.value);
3319
+ function a(r) {
3320
+ return typeof t.value == "string" ? t.value === r.value : (t.value || []).includes(r.value);
3262
3321
  }
3263
- function o(i, r) {
3322
+ function n(r, i) {
3264
3323
  if (!t.multiple)
3265
- return l("update:value", r);
3266
- let n = [...t.value || []];
3267
- r && typeof r == "boolean" ? n.push(i) : n.splice(n.indexOf(i), 1), l("update:value", n);
3324
+ return l("update:value", i);
3325
+ let o = [...t.value || []];
3326
+ i && typeof i == "boolean" ? o.push(r) : o.splice(o.indexOf(r), 1), l("update:value", o);
3268
3327
  }
3269
- return (i, r) => (s(), m("fieldset", {
3328
+ return (r, i) => (d(), m("fieldset", {
3270
3329
  id: e.id,
3271
3330
  class: "joy-selectable-item-group__wrapper"
3272
3331
  }, [
3273
- e.label ? (s(), C(j(ee), {
3332
+ e.label ? (d(), x(k(ee), {
3274
3333
  key: 0,
3275
3334
  "tag-name": "legend",
3276
3335
  required: e.required && e.requiredMark,
@@ -3278,10 +3337,10 @@ const yt = /* @__PURE__ */ k(Cn, [["__scopeId", "data-v-cb2531c0"]]), Ln = ["id"
3278
3337
  size: e.labelSize
3279
3338
  }, {
3280
3339
  default: O(() => [
3281
- B(L(e.label), 1)
3340
+ B(C(e.label), 1)
3282
3341
  ]),
3283
3342
  _: 1
3284
- }, 8, ["required", "optional-label", "size"])) : h("", !0),
3343
+ }, 8, ["required", "optional-label", "size"])) : b("", !0),
3285
3344
  _("div", {
3286
3345
  class: S([
3287
3346
  "joy-selectable-item-group",
@@ -3292,34 +3351,34 @@ const yt = /* @__PURE__ */ k(Cn, [["__scopeId", "data-v-cb2531c0"]]), Ln = ["id"
3292
3351
  }
3293
3352
  ])
3294
3353
  }, [
3295
- (s(!0), m(H, null, U(e.options, (n) => (s(), C(j(yt), {
3296
- id: n.id,
3297
- key: n.id,
3298
- name: n.name,
3299
- disabled: n.disabled,
3300
- value: n.value,
3354
+ (d(!0), m(D, null, G(e.options, (o) => (d(), x(k(yt), {
3355
+ id: o.id,
3356
+ key: o.id,
3357
+ name: o.name,
3358
+ disabled: o.disabled,
3359
+ value: o.value,
3301
3360
  multiple: e.multiple,
3302
- checked: a(n),
3303
- "onUpdate:checked": (c) => o(n.value, c)
3304
- }, at({
3361
+ checked: a(o),
3362
+ "onUpdate:checked": (y) => n(o.value, y)
3363
+ }, nt({
3305
3364
  default: O(() => [
3306
- B(L(n.label) + " ", 1)
3365
+ B(C(o.label) + " ", 1)
3307
3366
  ]),
3308
3367
  _: 2
3309
3368
  }, [
3310
- n.subLabel ? {
3369
+ o.subLabel ? {
3311
3370
  name: "selectable-item-sublabel",
3312
3371
  fn: O(() => [
3313
- B(L(n.subLabel), 1)
3372
+ B(C(o.subLabel), 1)
3314
3373
  ]),
3315
3374
  key: "0"
3316
3375
  } : void 0
3317
3376
  ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
3318
3377
  ], 2)
3319
- ], 8, Ln));
3378
+ ], 8, Vo));
3320
3379
  }
3321
3380
  });
3322
- const Bn = /* @__PURE__ */ k(In, [["__scopeId", "data-v-0730aed0"]]), On = /* @__PURE__ */ $({
3381
+ const Io = /* @__PURE__ */ $(xo, [["__scopeId", "data-v-0730aed0"]]), Co = /* @__PURE__ */ j({
3323
3382
  __name: "VJoySeparator",
3324
3383
  props: {
3325
3384
  /** Main text to apply in the central area */
@@ -3332,78 +3391,17 @@ const Bn = /* @__PURE__ */ k(In, [["__scopeId", "data-v-0730aed0"]]), On = /* @_
3332
3391
  }
3333
3392
  },
3334
3393
  setup(e) {
3335
- return (l, t) => (s(), m("div", {
3394
+ return (l, t) => (d(), m("div", {
3336
3395
  class: S(["joy-separator", { "joy-separator__small": e.size === "small" }])
3337
3396
  }, [
3338
- _("span", null, L(e.text), 1)
3339
- ], 2));
3340
- }
3341
- });
3342
- const Tn = /* @__PURE__ */ k(On, [["__scopeId", "data-v-d83b1859"]]), Pn = /* @__PURE__ */ $({
3343
- __name: "VJoyWrapper",
3344
- props: {
3345
- /** Horizontal spread. Refers to CSS flex justify-content. */
3346
- justify: {
3347
- type: String,
3348
- default: "flex-start"
3349
- },
3350
- /** Vertical spread. Refers to CSS flex align-items. */
3351
- align: {
3352
- type: String,
3353
- default: "center"
3354
- },
3355
- /** Vertical flex, or horizontal. Refers to CSS flex-direction */
3356
- direction: {
3357
- type: String,
3358
- default: "row"
3359
- },
3360
- /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
3361
- wrap: {
3362
- type: String,
3363
- default: "wrap"
3364
- },
3365
- /** Applies a flex-grow to children in order to stretch them all along horizontal space */
3366
- itemStretch: {
3367
- type: Boolean
3368
- },
3369
- /** Removes the default bottom margin applied to the wrapper */
3370
- noMargin: {
3371
- type: Boolean,
3372
- default: !1
3373
- },
3374
- /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
3375
- columnGap: {
3376
- type: String,
3377
- default: "4"
3378
- },
3379
- /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
3380
- rowGap: {
3381
- type: String,
3382
- default: "8"
3383
- }
3384
- },
3385
- setup(e) {
3386
- return ke("VJoyWrapperContext", e), (t, a) => (s(), m("div", {
3387
- class: S([
3388
- "joy-wrapper",
3389
- `joy-wrapper--justify-${e.justify}`,
3390
- `joy-wrapper--align-${e.align}`,
3391
- `joy-wrapper--direction-${e.direction}`,
3392
- `joy-wrapper--wrap-${e.wrap}`,
3393
- `joy-wrapper--row-gap-${e.rowGap}`,
3394
- `joy-wrapper--column-gap-${e.columnGap}`,
3395
- { "joy-wrapper--item-stretch": e.itemStretch },
3396
- { "joy-wrapper--has-margin": !e.noMargin }
3397
- ])
3398
- }, [
3399
- g(t.$slots, "default", {}, void 0, !0)
3397
+ _("span", null, C(e.text), 1)
3400
3398
  ], 2));
3401
3399
  }
3402
3400
  });
3403
- const Jn = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-8a6c4326"]]), En = ["id", "href", "aria-selected", "aria-controls"], zn = {
3401
+ const Lo = /* @__PURE__ */ $(Co, [["__scopeId", "data-v-d83b1859"]]), Bo = ["id", "href", "aria-selected", "aria-controls"], Oo = {
3404
3402
  type: "button",
3405
3403
  tabindex: "-1"
3406
- }, An = /* @__PURE__ */ $({
3404
+ }, To = /* @__PURE__ */ j({
3407
3405
  __name: "TabButton",
3408
3406
  props: {
3409
3407
  /**
@@ -3440,10 +3438,10 @@ const Jn = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-8a6c4326"]]), En = ["id"
3440
3438
  function t() {
3441
3439
  l("changeTab");
3442
3440
  }
3443
- function a(o) {
3444
- (o.code === "Enter" || o.code === "NumpadEnter") && l("changeTab");
3441
+ function a(n) {
3442
+ (n.code === "Enter" || n.code === "NumpadEnter") && l("changeTab");
3445
3443
  }
3446
- return (o, i) => (s(), m("a", {
3444
+ return (n, r) => (d(), m("a", {
3447
3445
  id: `joy-tab-${e.tab}`,
3448
3446
  href: e.href,
3449
3447
  "aria-selected": e.selected ? "true" : "false",
@@ -3451,7 +3449,7 @@ const Jn = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-8a6c4326"]]), En = ["id"
3451
3449
  tabindex: "0",
3452
3450
  role: "tab",
3453
3451
  onClick: t,
3454
- onKeydown: i[0] || (i[0] = (r) => a(r))
3452
+ onKeydown: r[0] || (r[0] = (i) => a(i))
3455
3453
  }, [
3456
3454
  _("div", {
3457
3455
  part: "tab-button",
@@ -3460,18 +3458,18 @@ const Jn = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-8a6c4326"]]), En = ["id"
3460
3458
  "joy-tab-button__selected": e.selected
3461
3459
  })
3462
3460
  }, [
3463
- _("button", zn, [
3461
+ _("button", Oo, [
3464
3462
  _("div", null, [
3465
- g(o.$slots, "default", {}, () => [
3466
- B(L(e.label), 1)
3463
+ g(n.$slots, "default", {}, () => [
3464
+ B(C(e.label), 1)
3467
3465
  ], !0)
3468
3466
  ])
3469
3467
  ])
3470
3468
  ], 2)
3471
- ], 40, En));
3469
+ ], 40, Bo));
3472
3470
  }
3473
3471
  });
3474
- const Fn = /* @__PURE__ */ k(An, [["__scopeId", "data-v-b1e62ec8"]]), qn = { class: "joy-tabs" }, Nn = /* @__PURE__ */ $({
3472
+ const Jo = /* @__PURE__ */ $(To, [["__scopeId", "data-v-b1e62ec8"]]), Eo = { class: "joy-tabs" }, Po = /* @__PURE__ */ j({
3475
3473
  __name: "VJoyTabs",
3476
3474
  props: {
3477
3475
  /** Use this prop to activate a specific tab by default by giving its name */
@@ -3481,62 +3479,62 @@ const Fn = /* @__PURE__ */ k(An, [["__scopeId", "data-v-b1e62ec8"]]), qn = { cla
3481
3479
  },
3482
3480
  emits: ["update:selected-tab"],
3483
3481
  setup(e, { emit: l }) {
3484
- const t = e, a = Y(), o = w(t.selectedTab), i = w(null), r = w(null), n = w(!1), c = w(!1), v = V(() => a.default().filter(d));
3485
- function d(p) {
3486
- var b;
3487
- return ((b = p == null ? void 0 : p.type) == null ? void 0 : b.__name) === "VJoyTab";
3482
+ const t = e, a = Y(), n = w(t.selectedTab), r = w(null), i = w(null), o = w(!1), y = w(!1), p = V(() => a.default().filter(f));
3483
+ function f(v) {
3484
+ var h;
3485
+ return ((h = v == null ? void 0 : v.type) == null ? void 0 : h.__name) === "VJoyTab";
3488
3486
  }
3489
- function y(p) {
3490
- return p.props.tab === o.value;
3487
+ function u(v) {
3488
+ return v.props.tab === n.value;
3491
3489
  }
3492
- function f() {
3493
- r.value && i.value && r.value.scrollWidth > i.value.offsetWidth ? (c.value = r.value.scrollLeft > 0, n.value = r.value.scrollLeft + i.value.offsetWidth < r.value.scrollWidth) : (c.value = !1, n.value = !1);
3490
+ function c() {
3491
+ i.value && r.value && i.value.scrollWidth > r.value.offsetWidth ? (y.value = i.value.scrollLeft > 0, o.value = i.value.scrollLeft + r.value.offsetWidth < i.value.scrollWidth) : (y.value = !1, o.value = !1);
3494
3492
  }
3495
- function u(p, b = !0) {
3496
- p && b && (o.value = p, ke("VJoyTabs", o), l("update:selected-tab", p));
3493
+ function s(v, h = !0) {
3494
+ v && h && (n.value = v, $e("VJoyTabs", n), l("update:selected-tab", v));
3497
3495
  }
3498
- return P(
3496
+ return E(
3499
3497
  () => t.selectedTab,
3500
- (p) => {
3501
- p && u(p);
3498
+ (v) => {
3499
+ v && s(v);
3502
3500
  },
3503
3501
  { immediate: !0 }
3504
3502
  ), Q(() => {
3505
- var p;
3506
- f(), (p = r.value) == null || p.addEventListener("scroll", f);
3507
- }), Se(() => {
3508
- var p;
3509
- (p = r.value) == null || p.removeEventListener("scroll", f);
3510
- }), (p, b) => (s(), m("div", qn, [
3503
+ var v;
3504
+ c(), (v = i.value) == null || v.addEventListener("scroll", c);
3505
+ }), je(() => {
3506
+ var v;
3507
+ (v = i.value) == null || v.removeEventListener("scroll", c);
3508
+ }), (v, h) => (d(), m("div", Eo, [
3511
3509
  _("div", {
3512
3510
  ref_key: "buttonListWrapper",
3513
- ref: i,
3511
+ ref: r,
3514
3512
  class: S({
3515
3513
  "joy-tabs-buttons__wrapper": !0,
3516
- "joy-tabs-buttons__wrapper--scroll-end": n.value,
3517
- "joy-tabs-buttons__wrapper--scroll-start": c.value
3514
+ "joy-tabs-buttons__wrapper--scroll-end": o.value,
3515
+ "joy-tabs-buttons__wrapper--scroll-start": y.value
3518
3516
  })
3519
3517
  }, [
3520
3518
  _("div", {
3521
3519
  ref_key: "buttonList",
3522
- ref: r,
3520
+ ref: i,
3523
3521
  class: "joy-tabs-buttons",
3524
3522
  role: "tablist"
3525
3523
  }, [
3526
- (s(!0), m(H, null, U(v.value, (x) => (s(), m("div", {
3527
- key: x.props.tab
3524
+ (d(!0), m(D, null, G(p.value, (I) => (d(), m("div", {
3525
+ key: I.props.tab
3528
3526
  }, [
3529
- R(Fn, {
3530
- tab: x.props.tab,
3531
- label: x.props.label,
3532
- href: x.props.href,
3533
- selected: y(x),
3534
- onChangeTab: (T) => u(x.props.tab, !x.props.href)
3527
+ R(Jo, {
3528
+ tab: I.props.tab,
3529
+ label: I.props.label,
3530
+ href: I.props.href,
3531
+ selected: u(I),
3532
+ onChangeTab: (J) => s(I.props.tab, !I.props.href)
3535
3533
  }, {
3536
3534
  default: O(() => {
3537
- var T;
3535
+ var J;
3538
3536
  return [
3539
- (T = x.children) != null && T.header ? (s(), C(oe(x.children.header), { key: 0 })) : h("", !0)
3537
+ (J = I.children) != null && J.header ? (d(), x(ne(I.children.header), { key: 0 })) : b("", !0)
3540
3538
  ];
3541
3539
  }),
3542
3540
  _: 2
@@ -3545,12 +3543,12 @@ const Fn = /* @__PURE__ */ k(An, [["__scopeId", "data-v-b1e62ec8"]]), qn = { cla
3545
3543
  ], 512)
3546
3544
  ], 2),
3547
3545
  _("div", null, [
3548
- g(p.$slots, "default", {}, void 0, !0)
3546
+ g(v.$slots, "default", {}, void 0, !0)
3549
3547
  ])
3550
3548
  ]));
3551
3549
  }
3552
3550
  });
3553
- const Mn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-e3dffafe"]]), Rn = ["id", "aria-hidden", "aria-labelledby"], Hn = /* @__PURE__ */ $({
3551
+ const Ao = /* @__PURE__ */ $(Po, [["__scopeId", "data-v-e3dffafe"]]), zo = ["id", "aria-hidden", "aria-labelledby"], qo = /* @__PURE__ */ j({
3554
3552
  __name: "VJoyTab",
3555
3553
  props: {
3556
3554
  /**
@@ -3578,7 +3576,7 @@ const Mn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-e3dffafe"]]), Rn = ["id"
3578
3576
  },
3579
3577
  setup(e) {
3580
3578
  const l = e, t = de("VJoyTabs", w("")), a = V(() => t.value === l.tab);
3581
- return (o, i) => (s(), m("div", {
3579
+ return (n, r) => (d(), m("div", {
3582
3580
  id: `joy-tab-${e.tab}`,
3583
3581
  role: "tabpanel",
3584
3582
  "aria-hidden": a.value ? void 0 : "true",
@@ -3588,11 +3586,11 @@ const Mn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-e3dffafe"]]), Rn = ["id"
3588
3586
  "joy-tab__selected": a.value
3589
3587
  })
3590
3588
  }, [
3591
- g(o.$slots, "default", {}, void 0, !0)
3592
- ], 10, Rn));
3589
+ g(n.$slots, "default", {}, void 0, !0)
3590
+ ], 10, zo));
3593
3591
  }
3594
3592
  });
3595
- const Dn = /* @__PURE__ */ k(Hn, [["__scopeId", "data-v-47a75127"]]), Wn = ["role"], Gn = /* @__PURE__ */ $({
3593
+ const Fo = /* @__PURE__ */ $(qo, [["__scopeId", "data-v-47a75127"]]), Mo = ["role"], No = /* @__PURE__ */ j({
3596
3594
  __name: "VJoyTag",
3597
3595
  props: {
3598
3596
  /** Text injected within the tag */
@@ -3631,7 +3629,7 @@ const Dn = /* @__PURE__ */ k(Hn, [["__scopeId", "data-v-47a75127"]]), Wn = ["rol
3631
3629
  },
3632
3630
  emits: ["selected", "remove", "click"],
3633
3631
  setup(e, { emit: l }) {
3634
- const t = e, a = ["primary", "secondary"], o = V(() => ({
3632
+ const t = e, a = ["primary", "secondary"], n = V(() => ({
3635
3633
  "joy-tag": !0,
3636
3634
  "joy-tag__selected": t.selected,
3637
3635
  "joy-tag__selectable": t.selectable || t.link,
@@ -3639,35 +3637,35 @@ const Dn = /* @__PURE__ */ k(Hn, [["__scopeId", "data-v-47a75127"]]), Wn = ["rol
3639
3637
  ["joy-tag__" + t.size]: !0,
3640
3638
  ["joy-tag__" + t.variant]: !0
3641
3639
  }));
3642
- function i() {
3640
+ function r() {
3643
3641
  l("remove", { value: t.value });
3644
3642
  }
3645
- function r() {
3643
+ function i() {
3646
3644
  l("click"), t.selectable && a.includes(t.variant) && l("selected", { selected: !t.selected, value: t.value });
3647
3645
  }
3648
- return (n, c) => (s(), m("span", {
3649
- class: S([o.value]),
3646
+ return (o, y) => (d(), m("span", {
3647
+ class: S([n.value]),
3650
3648
  role: e.link || e.selectable ? "button" : void 0,
3651
- onClick: r
3649
+ onClick: i
3652
3650
  }, [
3653
- e.draggable ? (s(), C(E, {
3651
+ e.draggable ? (d(), x(T, {
3654
3652
  key: 0,
3655
3653
  class: "joy-tag__drag",
3656
3654
  name: "drag",
3657
3655
  size: "xxsmall"
3658
- })) : h("", !0),
3659
- B(" " + L(e.label) + " ", 1),
3660
- e.removable ? (s(), C(E, {
3656
+ })) : b("", !0),
3657
+ B(" " + C(e.label) + " ", 1),
3658
+ e.removable ? (d(), x(T, {
3661
3659
  key: 1,
3662
3660
  class: "joy-tag__removable",
3663
3661
  name: "cross",
3664
3662
  size: "xxsmall",
3665
- onClick: St(i, ["stop"])
3666
- }, null, 8, ["onClick"])) : h("", !0)
3667
- ], 10, Wn));
3663
+ onClick: $t(r, ["stop"])
3664
+ }, null, 8, ["onClick"])) : b("", !0)
3665
+ ], 10, Mo));
3668
3666
  }
3669
3667
  });
3670
- const vt = /* @__PURE__ */ k(Gn, [["__scopeId", "data-v-01b9f7cc"]]), Un = /* @__PURE__ */ $({
3668
+ const vt = /* @__PURE__ */ $(No, [["__scopeId", "data-v-01b9f7cc"]]), Ro = /* @__PURE__ */ j({
3671
3669
  __name: "VJoyTagsList",
3672
3670
  props: {
3673
3671
  align: {
@@ -3693,63 +3691,63 @@ const vt = /* @__PURE__ */ k(Gn, [["__scopeId", "data-v-01b9f7cc"]]), Un = /* @_
3693
3691
  emits: ["update:modelValue", "removeTag"],
3694
3692
  setup(e, { emit: l }) {
3695
3693
  const t = e;
3696
- function a(r) {
3697
- var n;
3698
- return t.removable ? !1 : (n = t.modelValue) == null ? void 0 : n.includes(r.value);
3694
+ function a(i) {
3695
+ var o;
3696
+ return t.removable ? !1 : (o = t.modelValue) == null ? void 0 : o.includes(i.value);
3699
3697
  }
3700
- function o(r, n) {
3701
- let c = [];
3702
- r.selected && !a(n) ? c = [...t.modelValue || [], n.value] : c = (t.modelValue || []).filter((v) => v !== n.value), l("update:modelValue", c);
3698
+ function n(i, o) {
3699
+ let y = [];
3700
+ i.selected && !a(o) ? y = [...t.modelValue || [], o.value] : y = (t.modelValue || []).filter((p) => p !== o.value), l("update:modelValue", y);
3703
3701
  }
3704
- function i(r) {
3705
- l("removeTag", r.value);
3702
+ function r(i) {
3703
+ l("removeTag", i.value);
3706
3704
  }
3707
- return (r, n) => (s(), m("div", {
3705
+ return (i, o) => (d(), m("div", {
3708
3706
  class: S(["joy-tags-list", `joy-tags-list--${e.align}`])
3709
3707
  }, [
3710
- (s(!0), m(H, null, U(e.tags, (c) => (s(), C(j(vt), K({
3711
- key: c.value,
3708
+ (d(!0), m(D, null, G(e.tags, (y) => (d(), x(k(vt), Z({
3709
+ key: y.value,
3712
3710
  selectable: !!e.modelValue && !e.removable
3713
- }, c, {
3711
+ }, y, {
3714
3712
  removable: e.removable,
3715
- selected: a(c),
3716
- onRemove: i,
3717
- onSelected: (v) => o(v, c)
3713
+ selected: a(y),
3714
+ onRemove: r,
3715
+ onSelected: (p) => n(p, y)
3718
3716
  }), null, 16, ["selectable", "removable", "selected", "onSelected"]))), 128))
3719
3717
  ], 2));
3720
3718
  }
3721
3719
  });
3722
- const Zn = /* @__PURE__ */ k(Un, [["__scopeId", "data-v-510c6367"]]);
3723
- const Kn = {}, Qn = {
3720
+ const Do = /* @__PURE__ */ $(Ro, [["__scopeId", "data-v-510c6367"]]);
3721
+ const Ho = {}, Wo = {
3724
3722
  class: /* @__PURE__ */ S(["joy-template-shape__shapes"])
3725
- }, Yn = /* @__PURE__ */ tt('<div class="shapes__wrapper" data-v-8b258f92><div class="shape_1" data-v-8b258f92></div><div class="shape_2" data-v-8b258f92></div><div class="shape_3" data-v-8b258f92></div><div class="shape_4" data-v-8b258f92></div></div>', 1), Xn = [
3726
- Yn
3723
+ }, Uo = /* @__PURE__ */ lt('<div class="shapes__wrapper" data-v-8b258f92><div class="shape_1" data-v-8b258f92></div><div class="shape_2" data-v-8b258f92></div><div class="shape_3" data-v-8b258f92></div><div class="shape_4" data-v-8b258f92></div></div>', 1), Go = [
3724
+ Uo
3727
3725
  ];
3728
- function ei(e, l) {
3729
- return s(), m("div", Qn, Xn);
3726
+ function Ko(e, l) {
3727
+ return d(), m("div", Wo, Go);
3730
3728
  }
3731
- const pt = /* @__PURE__ */ k(Kn, [["render", ei], ["__scopeId", "data-v-8b258f92"]]), ti = { class: "joy-template__wrapper" }, li = {
3729
+ const pt = /* @__PURE__ */ $(Ho, [["render", Ko], ["__scopeId", "data-v-8b258f92"]]), Zo = { class: "joy-template__wrapper" }, Qo = {
3732
3730
  key: 0,
3733
3731
  class: "joy-template__heading"
3734
- }, ai = {
3732
+ }, Yo = {
3735
3733
  key: 0,
3736
3734
  class: "joy-template-slot-back"
3737
- }, oi = { class: "joy-template__heading___headings" }, ni = {
3735
+ }, Xo = { class: "joy-template__heading___headings" }, er = {
3738
3736
  key: 0,
3739
3737
  class: "joy-template-slot-title"
3740
- }, ii = {
3738
+ }, tr = {
3741
3739
  key: 1,
3742
3740
  class: "joy-template-slot-subtitle"
3743
- }, ri = {
3741
+ }, lr = {
3744
3742
  key: 1,
3745
3743
  class: "joy-template-slot-actions"
3746
- }, si = {
3744
+ }, ar = {
3747
3745
  key: 0,
3748
3746
  class: "joy-template-slot-main"
3749
- }, ui = {
3747
+ }, nr = {
3750
3748
  key: 1,
3751
3749
  class: "joy-template-slot-sidebar"
3752
- }, di = /* @__PURE__ */ $({
3750
+ }, or = /* @__PURE__ */ j({
3753
3751
  __name: "VJoyTemplate",
3754
3752
  props: {
3755
3753
  full: { type: Boolean, default: !1 },
@@ -3769,27 +3767,27 @@ const pt = /* @__PURE__ */ k(Kn, [["render", ei], ["__scopeId", "data-v-8b258f92
3769
3767
  },
3770
3768
  setup(e) {
3771
3769
  const l = e, t = Y(), a = V(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
3772
- return (o, i) => (s(), m("main", {
3770
+ return (n, r) => (d(), m("main", {
3773
3771
  class: S(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
3774
3772
  }, [
3775
- e.shapes ? (s(), C(pt, { key: 0 })) : h("", !0),
3776
- _("div", ti, [
3777
- a.value ? (s(), m("div", li, [
3778
- j(t)["template-back"] ? (s(), m("div", ai, [
3779
- g(o.$slots, "template-back", {}, void 0, !0)
3780
- ])) : h("", !0),
3781
- _("div", oi, [
3782
- j(t)["template-title"] ? (s(), m("div", ni, [
3783
- g(o.$slots, "template-title", {}, void 0, !0)
3784
- ])) : h("", !0),
3785
- j(t)["template-subtitle"] ? (s(), m("div", ii, [
3786
- g(o.$slots, "template-subtitle", {}, void 0, !0)
3787
- ])) : h("", !0)
3773
+ e.shapes ? (d(), x(pt, { key: 0 })) : b("", !0),
3774
+ _("div", Zo, [
3775
+ a.value ? (d(), m("div", Qo, [
3776
+ k(t)["template-back"] ? (d(), m("div", Yo, [
3777
+ g(n.$slots, "template-back", {}, void 0, !0)
3778
+ ])) : b("", !0),
3779
+ _("div", Xo, [
3780
+ k(t)["template-title"] ? (d(), m("div", er, [
3781
+ g(n.$slots, "template-title", {}, void 0, !0)
3782
+ ])) : b("", !0),
3783
+ k(t)["template-subtitle"] ? (d(), m("div", tr, [
3784
+ g(n.$slots, "template-subtitle", {}, void 0, !0)
3785
+ ])) : b("", !0)
3788
3786
  ]),
3789
- j(t)["template-actions"] ? (s(), m("div", ri, [
3790
- g(o.$slots, "template-actions", {}, void 0, !0)
3791
- ])) : h("", !0)
3792
- ])) : h("", !0),
3787
+ k(t)["template-actions"] ? (d(), m("div", lr, [
3788
+ g(n.$slots, "template-actions", {}, void 0, !0)
3789
+ ])) : b("", !0)
3790
+ ])) : b("", !0),
3793
3791
  _("div", {
3794
3792
  class: S([
3795
3793
  "joy-template__content",
@@ -3798,34 +3796,34 @@ const pt = /* @__PURE__ */ k(Kn, [["render", ei], ["__scopeId", "data-v-8b258f92
3798
3796
  }
3799
3797
  ])
3800
3798
  }, [
3801
- o.$slots["template-main"] ? (s(), m("div", si, [
3802
- g(o.$slots, "template-main", {}, void 0, !0)
3803
- ])) : h("", !0),
3804
- o.$slots["template-sidebar"] ? (s(), m("div", ui, [
3805
- g(o.$slots, "template-sidebar", {}, void 0, !0)
3806
- ])) : h("", !0)
3799
+ n.$slots["template-main"] ? (d(), m("div", ar, [
3800
+ g(n.$slots, "template-main", {}, void 0, !0)
3801
+ ])) : b("", !0),
3802
+ n.$slots["template-sidebar"] ? (d(), m("div", nr, [
3803
+ g(n.$slots, "template-sidebar", {}, void 0, !0)
3804
+ ])) : b("", !0)
3807
3805
  ], 2)
3808
3806
  ]),
3809
- e.loading ? (s(), C(Ie, {
3807
+ e.loading ? (d(), x(Le, {
3810
3808
  key: 1,
3811
3809
  overlay: "",
3812
3810
  color: e.loadingColor
3813
3811
  }, {
3814
3812
  content: O(() => [
3815
- g(o.$slots, "template-loader-content", {}, void 0, !0)
3813
+ g(n.$slots, "template-loader-content", {}, void 0, !0)
3816
3814
  ]),
3817
3815
  _: 3
3818
- }, 8, ["color"])) : h("", !0)
3816
+ }, 8, ["color"])) : b("", !0)
3819
3817
  ], 2));
3820
3818
  }
3821
3819
  });
3822
- const ci = /* @__PURE__ */ k(di, [["__scopeId", "data-v-750153b6"]]), fi = ["aria-disabled"], yi = { class: "joy-textarea_wrapper" }, vi = ["id", "disabled", "name", "required", "minlength", "value"], pi = {
3820
+ const rr = /* @__PURE__ */ $(or, [["__scopeId", "data-v-750153b6"]]), ir = ["aria-disabled"], sr = { class: "joy-textarea_wrapper" }, ur = ["id", "disabled", "name", "required", "minlength", "value"], dr = {
3823
3821
  key: 0,
3824
3822
  class: "joy-textarea_helpers"
3825
- }, mi = {
3823
+ }, cr = {
3826
3824
  inheritAttrs: !1
3827
- }, _i = /* @__PURE__ */ $({
3828
- ...mi,
3825
+ }, fr = /* @__PURE__ */ j({
3826
+ ...cr,
3829
3827
  __name: "VJoyTextarea",
3830
3828
  props: {
3831
3829
  disabled: {
@@ -3879,94 +3877,94 @@ const ci = /* @__PURE__ */ k(di, [["__scopeId", "data-v-750153b6"]]), fi = ["ari
3879
3877
  },
3880
3878
  emits: ["update:modelValue"],
3881
3879
  setup(e, { expose: l, emit: t }) {
3882
- const a = e, o = w(), { triggerResize: i } = la({
3883
- element: a.autogrow ? o : void 0
3884
- }), r = w(!1), n = w(!1), c = V(() => a.maxlength ? a.modelValue.length > a.maxlength : !1), v = V(() => a.minlength ? a.modelValue.length < a.minlength : !1), d = {
3885
- onInput: (y) => {
3886
- a.modelModifiers.lazy || t("update:modelValue", y.target.value), i();
3880
+ const a = e, n = w(), { triggerResize: r } = na({
3881
+ element: a.autogrow ? n : void 0
3882
+ }), i = w(!1), o = w(!1), y = V(() => a.maxlength ? a.modelValue.length > a.maxlength : !1), p = V(() => a.minlength ? a.modelValue.length < a.minlength : !1), f = {
3883
+ onInput: (u) => {
3884
+ a.modelModifiers.lazy || t("update:modelValue", u.target.value), r();
3887
3885
  },
3888
- onChange: (y) => {
3889
- a.modelModifiers.lazy && t("update:modelValue", y.target.value);
3886
+ onChange: (u) => {
3887
+ a.modelModifiers.lazy && t("update:modelValue", u.target.value);
3890
3888
  },
3891
3889
  onBlur: () => {
3892
- n.value = !1, r.value = c.value || v.value;
3890
+ o.value = !1, i.value = y.value || p.value;
3893
3891
  },
3894
3892
  onFocus: () => {
3895
- n.value = !0;
3893
+ o.value = !0;
3896
3894
  }
3897
3895
  };
3898
3896
  return l({
3899
- isInvalid: r,
3900
- valueOverMaxlength: c,
3901
- valueUnderMinlength: v
3902
- }), (y, f) => (s(), m("div", {
3897
+ isInvalid: i,
3898
+ valueOverMaxlength: y,
3899
+ valueUnderMinlength: p
3900
+ }), (u, c) => (d(), m("div", {
3903
3901
  "aria-disabled": e.disabled,
3904
3902
  class: S([
3905
3903
  "joy-textarea",
3906
3904
  {
3907
- "joy-textarea_invalid": r.value || e.invalid,
3905
+ "joy-textarea_invalid": i.value || e.invalid,
3908
3906
  "joy-textarea_disabled": e.disabled,
3909
3907
  "joy-textarea_autogrow": e.autogrow,
3910
- "joy-textarea_focusing": n.value
3908
+ "joy-textarea_focusing": o.value
3911
3909
  }
3912
3910
  ])
3913
3911
  }, [
3914
- R(j(ee), {
3912
+ R(k(ee), {
3915
3913
  for: e.id,
3916
3914
  required: e.required && e.requiredMark,
3917
3915
  "optional-label": e.optionalLabel,
3918
3916
  size: e.labelSize
3919
3917
  }, {
3920
3918
  default: O(() => [
3921
- g(y.$slots, "default", {}, () => [
3922
- B(L(e.label), 1)
3919
+ g(u.$slots, "default", {}, () => [
3920
+ B(C(e.label), 1)
3923
3921
  ], !0)
3924
3922
  ]),
3925
3923
  _: 3
3926
3924
  }, 8, ["for", "required", "optional-label", "size"]),
3927
- _("div", yi, [
3928
- _("textarea", K(y.$attrs, {
3925
+ _("div", sr, [
3926
+ _("textarea", Z(u.$attrs, {
3929
3927
  id: e.id,
3930
3928
  ref_key: "textarea",
3931
- ref: o,
3929
+ ref: n,
3932
3930
  class: "joy-native-textarea",
3933
3931
  disabled: e.disabled,
3934
3932
  name: e.name,
3935
3933
  required: e.required,
3936
3934
  minlength: e.minlength,
3937
3935
  value: e.modelValue,
3938
- onInput: f[0] || (f[0] = //@ts-ignore
3939
- (...u) => d.onInput && d.onInput(...u)),
3940
- onChange: f[1] || (f[1] = //@ts-ignore
3941
- (...u) => d.onChange && d.onChange(...u)),
3942
- onFocus: f[2] || (f[2] = //@ts-ignore
3943
- (...u) => d.onFocus && d.onFocus(...u)),
3944
- onBlur: f[3] || (f[3] = //@ts-ignore
3945
- (...u) => d.onBlur && d.onBlur(...u))
3946
- }), null, 16, vi)
3936
+ onInput: c[0] || (c[0] = //@ts-ignore
3937
+ (...s) => f.onInput && f.onInput(...s)),
3938
+ onChange: c[1] || (c[1] = //@ts-ignore
3939
+ (...s) => f.onChange && f.onChange(...s)),
3940
+ onFocus: c[2] || (c[2] = //@ts-ignore
3941
+ (...s) => f.onFocus && f.onFocus(...s)),
3942
+ onBlur: c[3] || (c[3] = //@ts-ignore
3943
+ (...s) => f.onBlur && f.onBlur(...s))
3944
+ }), null, 16, ur)
3947
3945
  ]),
3948
- e.minlength || e.maxlength ? (s(), m("div", pi, [
3949
- e.minlength ? (s(), m("p", {
3946
+ e.minlength || e.maxlength ? (d(), m("div", dr, [
3947
+ e.minlength ? (d(), m("p", {
3950
3948
  key: 0,
3951
3949
  class: S(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
3952
3950
  }, [
3953
- v.value ? h("", !0) : (s(), C(E, {
3951
+ p.value ? b("", !0) : (d(), x(T, {
3954
3952
  key: 0,
3955
3953
  name: "check",
3956
3954
  color: "neutral",
3957
3955
  size: "xxsmall"
3958
3956
  })),
3959
- B(" " + L(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3960
- ], 2)) : h("", !0),
3961
- e.maxlength ? (s(), m("p", {
3957
+ B(" " + C(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3958
+ ], 2)) : b("", !0),
3959
+ e.maxlength ? (d(), m("p", {
3962
3960
  key: 1,
3963
- class: S(["joy-textarea-count", { "joy-textarea-count-invalid": c.value }])
3964
- }, L(e.modelValue.length + "/" + e.maxlength), 3)) : h("", !0)
3965
- ])) : h("", !0)
3966
- ], 10, fi));
3961
+ class: S(["joy-textarea-count", { "joy-textarea-count-invalid": y.value }])
3962
+ }, C(e.modelValue.length + "/" + e.maxlength), 3)) : b("", !0)
3963
+ ])) : b("", !0)
3964
+ ], 10, ir));
3967
3965
  }
3968
3966
  });
3969
- const hi = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-1d2165ca"]]), mt = (e) => (se("data-v-cf79d999"), e = e(), ue(), e), gi = { class: "joy-toggle__wrapper" }, bi = ["name", "disabled", "checked", "required", "aria-checked", "value"], wi = { class: "joy-toggle__content" }, Si = /* @__PURE__ */ mt(() => /* @__PURE__ */ _("span", { class: "joy-toggle__symbol" }, null, -1)), $i = { class: "joy-toggle__content-label" }, ji = /* @__PURE__ */ mt(() => /* @__PURE__ */ _("span", { class: "joy-toggle__smile" }, [
3967
+ const yr = /* @__PURE__ */ $(fr, [["__scopeId", "data-v-1d2165ca"]]), mt = (e) => (he("data-v-cf79d999"), e = e(), we(), e), vr = { class: "joy-toggle__wrapper" }, pr = ["name", "disabled", "checked", "required", "aria-checked", "value"], mr = { class: "joy-toggle__content" }, _r = /* @__PURE__ */ mt(() => /* @__PURE__ */ _("span", { class: "joy-toggle__symbol" }, null, -1)), br = { class: "joy-toggle__content-label" }, gr = /* @__PURE__ */ mt(() => /* @__PURE__ */ _("span", { class: "joy-toggle__smile" }, [
3970
3968
  /* @__PURE__ */ _("svg", {
3971
3969
  width: "18",
3972
3970
  height: "10",
@@ -3979,7 +3977,7 @@ const hi = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-1d2165ca"]]), mt = (e) =
3979
3977
  fill: "currentColor"
3980
3978
  })
3981
3979
  ])
3982
- ], -1)), ki = /* @__PURE__ */ $({
3980
+ ], -1)), hr = /* @__PURE__ */ j({
3983
3981
  __name: "VJoyToggle",
3984
3982
  props: {
3985
3983
  modelValue: {
@@ -4014,9 +4012,9 @@ const hi = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-1d2165ca"]]), mt = (e) =
4014
4012
  emits: ["update:modelValue"],
4015
4013
  setup(e, { emit: l }) {
4016
4014
  const t = w(!1), a = {
4017
- onChange: (o) => {
4018
- const i = o.target.checked;
4019
- l("update:modelValue", i);
4015
+ onChange: (n) => {
4016
+ const r = n.target.checked;
4017
+ l("update:modelValue", r);
4020
4018
  },
4021
4019
  onFocus: () => {
4022
4020
  t.value = !0;
@@ -4025,7 +4023,7 @@ const hi = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-1d2165ca"]]), mt = (e) =
4025
4023
  t.value = !1;
4026
4024
  }
4027
4025
  };
4028
- return (o, i) => (s(), m("div", gi, [
4026
+ return (n, r) => (d(), m("div", vr, [
4029
4027
  _("label", {
4030
4028
  class: S([
4031
4029
  "joy-toggle",
@@ -4047,123 +4045,207 @@ const hi = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-1d2165ca"]]), mt = (e) =
4047
4045
  required: e.required,
4048
4046
  "aria-checked": e.modelValue,
4049
4047
  value: e.value,
4050
- onChange: i[0] || (i[0] = //@ts-ignore
4051
- (...r) => a.onChange && a.onChange(...r)),
4052
- onFocus: i[1] || (i[1] = //@ts-ignore
4053
- (...r) => a.onFocus && a.onFocus(...r)),
4054
- onBlur: i[2] || (i[2] = //@ts-ignore
4055
- (...r) => a.onBlur && a.onBlur(...r))
4056
- }, null, 40, bi),
4057
- _("p", wi, [
4058
- Si,
4059
- _("span", $i, [
4060
- g(o.$slots, "default", {}, () => [
4061
- B(L(e.label), 1)
4048
+ onChange: r[0] || (r[0] = //@ts-ignore
4049
+ (...i) => a.onChange && a.onChange(...i)),
4050
+ onFocus: r[1] || (r[1] = //@ts-ignore
4051
+ (...i) => a.onFocus && a.onFocus(...i)),
4052
+ onBlur: r[2] || (r[2] = //@ts-ignore
4053
+ (...i) => a.onBlur && a.onBlur(...i))
4054
+ }, null, 40, pr),
4055
+ _("p", mr, [
4056
+ _r,
4057
+ _("span", br, [
4058
+ g(n.$slots, "default", {}, () => [
4059
+ B(C(e.label), 1)
4062
4060
  ], !0)
4063
4061
  ]),
4064
- ji
4062
+ gr
4065
4063
  ])
4066
4064
  ], 2)
4067
4065
  ]));
4068
4066
  }
4069
4067
  });
4070
- const Vi = /* @__PURE__ */ k(ki, [["__scopeId", "data-v-cf79d999"]]), xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4068
+ const wr = /* @__PURE__ */ $(hr, [["__scopeId", "data-v-cf79d999"]]), Sr = /* @__PURE__ */ j({
4069
+ __name: "VJoyWrapper",
4070
+ props: {
4071
+ /** Horizontal spread. Refers to CSS flex justify-content. */
4072
+ justify: {
4073
+ type: String,
4074
+ default: "flex-start"
4075
+ },
4076
+ /** Vertical spread. Refers to CSS flex align-items. */
4077
+ align: {
4078
+ type: String,
4079
+ default: "center"
4080
+ },
4081
+ /** Vertical flex, or horizontal. Refers to CSS flex-direction */
4082
+ direction: {
4083
+ type: String,
4084
+ default: "row"
4085
+ },
4086
+ /** Automatically sets new line if there are not enough horizontal space. Refers to CSS flex-wrap */
4087
+ wrap: {
4088
+ type: String,
4089
+ default: "wrap"
4090
+ },
4091
+ /** Applies a flex-grow to children in order to stretch them all along horizontal space */
4092
+ itemStretch: {
4093
+ type: Boolean
4094
+ },
4095
+ /** Removes the default bottom margin applied to the wrapper */
4096
+ noMargin: {
4097
+ type: Boolean,
4098
+ default: !1
4099
+ },
4100
+ /** Gap between the columns. Refers to CSS column-gap. Value is based on spacing tokens. */
4101
+ columnGap: {
4102
+ type: String,
4103
+ default: "4"
4104
+ },
4105
+ /** Gap between the rows. Refers to CSS row-gap. Value is based on spacing tokens. */
4106
+ rowGap: {
4107
+ type: String,
4108
+ default: "8"
4109
+ }
4110
+ },
4111
+ setup(e) {
4112
+ return $e("VJoyWrapperContext", e), (t, a) => (d(), m("div", {
4113
+ class: S([
4114
+ "joy-wrapper",
4115
+ `joy-wrapper--justify-${e.justify}`,
4116
+ `joy-wrapper--align-${e.align}`,
4117
+ `joy-wrapper--direction-${e.direction}`,
4118
+ `joy-wrapper--wrap-${e.wrap}`,
4119
+ `joy-wrapper--row-gap-${e.rowGap}`,
4120
+ `joy-wrapper--column-gap-${e.columnGap}`,
4121
+ { "joy-wrapper--item-stretch": e.itemStretch },
4122
+ { "joy-wrapper--has-margin": !e.noMargin }
4123
+ ])
4124
+ }, [
4125
+ g(t.$slots, "default", {}, void 0, !0)
4126
+ ], 2));
4127
+ }
4128
+ });
4129
+ const jr = /* @__PURE__ */ $(Sr, [["__scopeId", "data-v-8a6c4326"]]), $r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4071
4130
  __proto__: null,
4072
- VJoyAvailability: kt,
4131
+ VJoyAvailability: xt,
4073
4132
  VJoyAvatar: Pt,
4074
- VJoyAvatarsList: Et,
4075
- VJoyBadge: Ft,
4076
- VJoyBadgeLevel: ul,
4133
+ VJoyAvatarsList: zt,
4134
+ VJoyBadge: Mt,
4135
+ VJoyBadgeLevel: cl,
4077
4136
  VJoyButton: xe,
4078
- VJoyCheckbox: Ce,
4079
- VJoyCompanyAvatar: Cl,
4080
- VJoyCounter: zl,
4081
- VJoyDividerCta: Rl,
4082
- VJoyDropdown: Ha,
4137
+ VJoyCheckbox: Ie,
4138
+ VJoyCompanyAvatar: Ll,
4139
+ VJoyCounter: ql,
4140
+ VJoyDividerCta: Hl,
4141
+ VJoyDropdown: Wa,
4083
4142
  VJoyDropdownList: ct,
4084
- VJoyFilterBar: Ua,
4085
- VJoyFilterBarButton: Ka,
4143
+ VJoyFilterBar: Za,
4144
+ VJoyFilterBarButton: Ya,
4086
4145
  VJoyFormError: ft,
4087
- VJoyFormFieldSkeleton: eo,
4088
- VJoyHighlight: no,
4089
- VJoyIcon: E,
4090
- VJoyInput: po,
4146
+ VJoyFormFieldSkeleton: ln,
4147
+ VJoyHighlight: sn,
4148
+ VJoyIcon: T,
4149
+ VJoyInput: _n,
4091
4150
  VJoyLabel: ee,
4092
- VJoyLink: go,
4093
- VJoyMultiCheckbox: $o,
4094
- VJoyPagination: Io,
4095
- VJoyPanel: Fo,
4096
- VJoyPanelSection: Ho,
4097
- VJoyProgressBar: Go,
4098
- VJoyRadio: Xo,
4099
- VJoyRadioGroup: ln,
4100
- VJoyRatingStars: gn,
4101
- VJoyScreenLoader: Ie,
4102
- VJoySelect: kn,
4151
+ VJoyLink: wn,
4152
+ VJoyMenu: Vn,
4153
+ VJoyMultiCheckbox: Ln,
4154
+ VJoyPagination: An,
4155
+ VJoyPanel: Wn,
4156
+ VJoyPanelSection: Qn,
4157
+ VJoyProgressBar: eo,
4158
+ VJoyRadio: ro,
4159
+ VJoyRadioGroup: uo,
4160
+ VJoyRatingStars: mo,
4161
+ VJoyScreenLoader: Le,
4162
+ VJoySelect: So,
4103
4163
  VJoySelectableItem: yt,
4104
- VJoySelectableItemGroup: Bn,
4105
- VJoySeparator: Tn,
4106
- VJoySpinner: Ve,
4107
- VJoyTab: Dn,
4108
- VJoyTabs: Mn,
4164
+ VJoySelectableItemGroup: Io,
4165
+ VJoySeparator: Lo,
4166
+ VJoySpinner: ke,
4167
+ VJoyTab: Fo,
4168
+ VJoyTabs: Ao,
4109
4169
  VJoyTag: vt,
4110
- VJoyTagsList: Zn,
4111
- VJoyTemplate: ci,
4170
+ VJoyTagsList: Do,
4171
+ VJoyTemplate: rr,
4112
4172
  VJoyTemplateShape: pt,
4113
- VJoyTextarea: hi,
4114
- VJoyToggle: Vi,
4115
- VJoyWrapper: Jn
4116
- }, Symbol.toStringTag, { value: "Module" })), Li = {
4173
+ VJoyTextarea: yr,
4174
+ VJoyToggle: wr,
4175
+ VJoyWrapper: jr
4176
+ }, Symbol.toStringTag, { value: "Module" }));
4177
+ function tt(e) {
4178
+ const l = e.target;
4179
+ if (!l)
4180
+ return;
4181
+ const t = l.getBoundingClientRect(), a = "joy-ripple-effect";
4182
+ let n;
4183
+ const r = l.querySelector(`.${a}`);
4184
+ r || (n = document.createElement("span"), n.classList.add(a));
4185
+ const i = r || n;
4186
+ l.prepend(i);
4187
+ const o = Math.sqrt(Math.pow(t.width, 2) + Math.pow(t.height, 2)) * 2;
4188
+ i.style.width = i.style.height = `${o}px`, i.style.left = `${e.clientX - t.left}px`, i.style.top = `${e.clientY - t.top}px`;
4189
+ }
4190
+ const kr = {
4191
+ mounted: (e) => {
4192
+ e.addEventListener("click", tt);
4193
+ },
4194
+ beforeUnmount: (e) => {
4195
+ e.removeEventListener("click", tt);
4196
+ }
4197
+ }, xr = {
4117
4198
  install: (e) => {
4118
- Object.entries(xi).forEach(([l, t]) => {
4199
+ Object.entries($r).forEach(([l, t]) => {
4119
4200
  e.component(l, t);
4120
- });
4201
+ }), e.directive("joy-ripple", kr);
4121
4202
  }
4122
4203
  };
4123
4204
  export {
4124
- Li as JoyVuePlugin,
4125
- kt as VJoyAvailability,
4205
+ xr as JoyVuePlugin,
4206
+ xt as VJoyAvailability,
4126
4207
  Pt as VJoyAvatar,
4127
- Et as VJoyAvatarsList,
4128
- Ft as VJoyBadge,
4129
- ul as VJoyBadgeLevel,
4208
+ zt as VJoyAvatarsList,
4209
+ Mt as VJoyBadge,
4210
+ cl as VJoyBadgeLevel,
4130
4211
  xe as VJoyButton,
4131
- Ce as VJoyCheckbox,
4132
- Cl as VJoyCompanyAvatar,
4133
- zl as VJoyCounter,
4134
- Rl as VJoyDividerCta,
4135
- Ha as VJoyDropdown,
4212
+ Ie as VJoyCheckbox,
4213
+ Ll as VJoyCompanyAvatar,
4214
+ ql as VJoyCounter,
4215
+ Hl as VJoyDividerCta,
4216
+ Wa as VJoyDropdown,
4136
4217
  ct as VJoyDropdownList,
4137
- Ua as VJoyFilterBar,
4138
- Ka as VJoyFilterBarButton,
4218
+ Za as VJoyFilterBar,
4219
+ Ya as VJoyFilterBarButton,
4139
4220
  ft as VJoyFormError,
4140
- eo as VJoyFormFieldSkeleton,
4141
- no as VJoyHighlight,
4142
- E as VJoyIcon,
4143
- po as VJoyInput,
4221
+ ln as VJoyFormFieldSkeleton,
4222
+ sn as VJoyHighlight,
4223
+ T as VJoyIcon,
4224
+ _n as VJoyInput,
4144
4225
  ee as VJoyLabel,
4145
- go as VJoyLink,
4146
- $o as VJoyMultiCheckbox,
4147
- Io as VJoyPagination,
4148
- Fo as VJoyPanel,
4149
- Ho as VJoyPanelSection,
4150
- Go as VJoyProgressBar,
4151
- Xo as VJoyRadio,
4152
- ln as VJoyRadioGroup,
4153
- gn as VJoyRatingStars,
4154
- Ie as VJoyScreenLoader,
4155
- kn as VJoySelect,
4226
+ wn as VJoyLink,
4227
+ Vn as VJoyMenu,
4228
+ Ln as VJoyMultiCheckbox,
4229
+ An as VJoyPagination,
4230
+ Wn as VJoyPanel,
4231
+ Qn as VJoyPanelSection,
4232
+ eo as VJoyProgressBar,
4233
+ ro as VJoyRadio,
4234
+ uo as VJoyRadioGroup,
4235
+ mo as VJoyRatingStars,
4236
+ Le as VJoyScreenLoader,
4237
+ So as VJoySelect,
4156
4238
  yt as VJoySelectableItem,
4157
- Bn as VJoySelectableItemGroup,
4158
- Tn as VJoySeparator,
4159
- Ve as VJoySpinner,
4160
- Dn as VJoyTab,
4161
- Mn as VJoyTabs,
4239
+ Io as VJoySelectableItemGroup,
4240
+ Lo as VJoySeparator,
4241
+ ke as VJoySpinner,
4242
+ Fo as VJoyTab,
4243
+ Ao as VJoyTabs,
4162
4244
  vt as VJoyTag,
4163
- Zn as VJoyTagsList,
4164
- ci as VJoyTemplate,
4245
+ Do as VJoyTagsList,
4246
+ rr as VJoyTemplate,
4165
4247
  pt as VJoyTemplateShape,
4166
- hi as VJoyTextarea,
4167
- Vi as VJoyToggle,
4168
- Jn as VJoyWrapper
4248
+ yr as VJoyTextarea,
4249
+ wr as VJoyToggle,
4250
+ jr as VJoyWrapper
4169
4251
  };