@maltjoy/core-vue 3.13.0 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/joy-vue.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as j, computed as V, openBlock as u, createElementBlock as m, normalizeClass as S, createElementVNode as h, Fragment as W, createTextVNode as O, toDisplayString as C, createCommentVNode as _, createBlock as x, resolveDynamicComponent as re, mergeProps as G, withCtx as B, pushScopeId as se, popScopeId as ue, renderSlot as g, unref as $, renderList as Y, createStaticVNode as Ke, useAttrs as be, ref as w, createVNode as U, getCurrentScope as mt, onScopeDispose as pt, getCurrentInstance as ht, onMounted as X, nextTick as Qe, watch as E, h as _t, reactive as ve, onBeforeUnmount as Ye, normalizeStyle as ae, normalizeProps as we, guardReactiveProps as Se, provide as Xe, createSlots as et, inject as tt, useSlots as ee, onBeforeMount as gt, withModifiers as bt } from "vue";
2
- const wt = ["title"], St = /* @__PURE__ */ j({
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 G, 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__ */ $({
3
3
  __name: "VJoyAvailability",
4
4
  props: {
5
5
  /** Don't fill it and you'll only have the colored dot */
@@ -19,17 +19,17 @@ const wt = ["title"], St = /* @__PURE__ */ j({
19
19
  "joy-availability--partial": l.isPartial,
20
20
  [l.status]: !0
21
21
  }));
22
- return (a, o) => (u(), m("div", {
22
+ return (a, o) => (s(), m("div", {
23
23
  class: S(["joy-availability", { "joy-availability-has-label": !!e.label }]),
24
24
  title: e.label || void 0
25
25
  }, [
26
- h("span", {
26
+ _("span", {
27
27
  class: S(t.value)
28
28
  }, null, 2),
29
- e.label ? (u(), m(W, { key: 0 }, [
30
- O(C(e.label), 1)
31
- ], 64)) : _("", !0)
32
- ], 10, wt));
29
+ e.label ? (s(), m(H, { key: 0 }, [
30
+ B(L(e.label), 1)
31
+ ], 64)) : h("", !0)
32
+ ], 10, $t));
33
33
  }
34
34
  });
35
35
  const k = (e, l) => {
@@ -37,7 +37,7 @@ const k = (e, l) => {
37
37
  for (const [a, o] of l)
38
38
  t[a] = o;
39
39
  return t;
40
- }, $t = /* @__PURE__ */ k(St, [["__scopeId", "data-v-34b760ee"]]), J = /* @__PURE__ */ j({
40
+ }, kt = /* @__PURE__ */ k(jt, [["__scopeId", "data-v-34b760ee"]]), E = /* @__PURE__ */ $({
41
41
  __name: "VJoyIcon",
42
42
  props: {
43
43
  name: {
@@ -54,27 +54,27 @@ const k = (e, l) => {
54
54
  }
55
55
  },
56
56
  setup(e) {
57
- return (l, t) => (u(), m("span", {
57
+ return (l, t) => (s(), m("span", {
58
58
  class: S(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
59
59
  }, [
60
- h("i", {
60
+ _("i", {
61
61
  class: S(["icon", `icon-${e.name}`])
62
62
  }, null, 2)
63
63
  ], 2));
64
64
  }
65
65
  });
66
- const jt = (e) => (se("data-v-b3dcdecc"), e = e(), ue(), e), kt = {
66
+ const Vt = (e) => (se("data-v-b3dcdecc"), e = e(), ue(), e), xt = {
67
67
  ref: "avatarEl",
68
68
  class: "joy-avatar__wrapper"
69
- }, Vt = ["src", "title", "alt"], xt = {
69
+ }, Ct = ["src", "title", "alt"], Lt = {
70
70
  key: 0,
71
71
  class: "joy-avatar__strategy"
72
- }, Ct = ["height"], Lt = /* @__PURE__ */ jt(() => /* @__PURE__ */ h("path", {
72
+ }, It = ["height"], Bt = /* @__PURE__ */ Vt(() => /* @__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)), It = [
76
- Lt
77
- ], Ot = /* @__PURE__ */ j({
75
+ }, null, -1)), Ot = [
76
+ Bt
77
+ ], Tt = /* @__PURE__ */ $({
78
78
  __name: "VJoyAvatar",
79
79
  props: {
80
80
  /** 3 different sizes of avatar */
@@ -111,69 +111,69 @@ const jt = (e) => (se("data-v-b3dcdecc"), e = e(), ue(), e), kt = {
111
111
  "joy-avatar__placeholder": n.value,
112
112
  [`joy-avatar__${a.size}`]: !0,
113
113
  [`joy-avatar__${a.color}`]: !0
114
- })), n = V(() => !a.fullName && !a.photoUrl && !a.totalNumber), d = V(() => {
115
- function c(f) {
114
+ })), n = V(() => !a.fullName && !a.photoUrl && !a.totalNumber), c = V(() => {
115
+ function d(f) {
116
116
  return f.replace(/[';,:()]/g, "").charAt(0);
117
117
  }
118
- let v = a.fullName.split(" ");
119
- return v = v.slice(0, 2), v.forEach((f, s) => {
120
- v[s] = c(f);
121
- }), v.join("").toUpperCase();
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();
122
122
  });
123
- function y() {
123
+ function v() {
124
124
  t("click");
125
125
  }
126
126
  return l({
127
127
  isAnonymous: n,
128
- initials: d
129
- }), (c, v) => (u(), m("div", kt, [
130
- (u(), x(re(e.link ? "button" : "div"), G(i.value, {
128
+ initials: c
129
+ }), (d, y) => (s(), m("div", xt, [
130
+ (s(), C(oe(e.link ? "button" : "div"), K(i.value, {
131
131
  class: [r.value],
132
- onClick: y
132
+ onClick: v
133
133
  }), {
134
- default: B(() => [
135
- n.value ? (u(), x(J, {
134
+ default: O(() => [
135
+ n.value ? (s(), C(E, {
136
136
  key: 0,
137
137
  name: "user-photo",
138
138
  color: "white",
139
139
  size: o.value
140
- }, null, 8, ["size"])) : _("", !0),
141
- e.photoUrl ? (u(), m("img", {
140
+ }, null, 8, ["size"])) : h("", !0),
141
+ e.photoUrl ? (s(), 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, Vt)) : _("", !0),
148
- e.fullName ? (u(), m(W, { key: 2 }, [
149
- O(C(d.value), 1)
150
- ], 64)) : _("", !0),
151
- e.totalNumber ? (u(), m(W, { key: 3 }, [
152
- O(C("+" + e.totalNumber), 1)
153
- ], 64)) : _("", !0)
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)
154
154
  ]),
155
155
  _: 1
156
156
  }, 16, ["class"])),
157
- e.profile === "strategy" ? (u(), m("span", xt, [
158
- (u(), m("svg", {
157
+ e.profile === "strategy" ? (s(), m("span", Lt, [
158
+ (s(), 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
- }, It, 8, Ct))
165
- ])) : _("", !0)
164
+ }, Ot, 8, It))
165
+ ])) : h("", !0)
166
166
  ], 512));
167
167
  }
168
168
  });
169
- const Bt = /* @__PURE__ */ k(Ot, [["__scopeId", "data-v-b3dcdecc"]]), Et = /* @__PURE__ */ j({
169
+ const Pt = /* @__PURE__ */ k(Tt, [["__scopeId", "data-v-b3dcdecc"]]), Jt = /* @__PURE__ */ $({
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) => (u(), m("div", {
176
+ return (l, t) => (s(), 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 Bt = /* @__PURE__ */ k(Ot, [["__scopeId", "data-v-b3dcdecc"]]), Et = /* @_
181
181
  ], 2));
182
182
  }
183
183
  });
184
- const Tt = /* @__PURE__ */ k(Et, [["__scopeId", "data-v-46e4547e"]]), Jt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], Pt = /* @__PURE__ */ j({
184
+ const Et = /* @__PURE__ */ k(Jt, [["__scopeId", "data-v-46e4547e"]]), zt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], At = /* @__PURE__ */ $({
185
185
  __name: "VJoyBadge",
186
186
  props: {
187
187
  /**
@@ -204,112 +204,112 @@ const Tt = /* @__PURE__ */ k(Et, [["__scopeId", "data-v-46e4547e"]]), Jt = ["inf
204
204
  variant: {
205
205
  type: String,
206
206
  validator(e) {
207
- return Jt.includes(e);
207
+ return zt.includes(e);
208
208
  }
209
209
  }
210
210
  },
211
211
  setup(e) {
212
- return (l, t) => (u(), m("span", {
212
+ return (l, t) => (s(), 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
- O(C(e.label), 1)
217
+ B(L(e.label), 1)
218
218
  ], !0)
219
219
  ], 2));
220
220
  }
221
221
  });
222
- const zt = /* @__PURE__ */ k(Pt, [["__scopeId", "data-v-1ed08e27"]]);
223
- var T = /* @__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))(T || {}), ne = /* @__PURE__ */ ((e) => (e.HIGH_POTENTIAL = "program_high-potential", e))(ne || {});
224
- const R = (e) => (se("data-v-f258a344"), e = e(), ue(), e), At = { class: "joy-badge-level" }, Ft = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
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", {
225
225
  fill: "#264FFA",
226
226
  d: "M5.71533 12.2962 11.4243 18l.0049-11.45716-5.71387 5.75336Z"
227
- }, null, -1)), qt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
227
+ }, null, -1)), Mt = /* @__PURE__ */ D(() => /* @__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)), Mt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
230
+ }, null, -1)), Rt = /* @__PURE__ */ D(() => /* @__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)), Nt = [
234
- Ft,
235
- qt,
236
- Mt
237
- ], Rt = {
233
+ }, null, -1)), Ht = [
234
+ Nt,
235
+ Mt,
236
+ Rt
237
+ ], Dt = {
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
- }, Ht = /* @__PURE__ */ R(() => /* @__PURE__ */ h("g", { "clip-path": "url(#a)" }, [
244
- /* @__PURE__ */ h("path", {
243
+ }, Wt = /* @__PURE__ */ D(() => /* @__PURE__ */ _("g", { "clip-path": "url(#a)" }, [
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)), Dt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("defs", null, [
249
- /* @__PURE__ */ h("clipPath", { id: "a" }, [
250
- /* @__PURE__ */ h("path", {
248
+ ], -1)), Ut = /* @__PURE__ */ D(() => /* @__PURE__ */ _("defs", null, [
249
+ /* @__PURE__ */ _("clipPath", { id: "a" }, [
250
+ /* @__PURE__ */ _("path", {
251
251
  fill: "#fff",
252
252
  d: "M0 0h12v13H0z",
253
253
  transform: "translate(0 .5)"
254
254
  })
255
255
  ])
256
- ], -1)), Ut = [
257
- Ht,
258
- Dt
259
- ], Wt = {
256
+ ], -1)), Gt = [
257
+ Wt,
258
+ Ut
259
+ ], Zt = {
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
- }, Gt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
265
+ }, Kt = /* @__PURE__ */ D(() => /* @__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)), Zt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
268
+ }, null, -1)), Qt = /* @__PURE__ */ D(() => /* @__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)), Kt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
271
+ }, null, -1)), Yt = /* @__PURE__ */ D(() => /* @__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)), Qt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
274
+ }, null, -1)), Xt = /* @__PURE__ */ D(() => /* @__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)), Yt = [
278
- Gt,
279
- Zt,
277
+ }, null, -1)), el = [
280
278
  Kt,
281
- Qt
282
- ], Xt = {
279
+ Qt,
280
+ Yt,
281
+ Xt
282
+ ], tl = {
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
- }, el = /* @__PURE__ */ Ke('<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), tl = [
289
- el
290
- ], ll = {
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 = {
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
- }, al = /* @__PURE__ */ R(() => /* @__PURE__ */ h("g", { "clip-path": "url(#a)" }, [
297
- /* @__PURE__ */ h("path", {
296
+ }, nl = /* @__PURE__ */ D(() => /* @__PURE__ */ _("g", { "clip-path": "url(#a)" }, [
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)), ol = /* @__PURE__ */ R(() => /* @__PURE__ */ h("defs", null, [
302
- /* @__PURE__ */ h("clipPath", { id: "a" }, [
303
- /* @__PURE__ */ h("path", {
301
+ ], -1)), il = /* @__PURE__ */ D(() => /* @__PURE__ */ _("defs", null, [
302
+ /* @__PURE__ */ _("clipPath", { id: "a" }, [
303
+ /* @__PURE__ */ _("path", {
304
304
  fill: "#fff",
305
305
  d: "M0 0h12v13H0z",
306
306
  transform: "translate(0 .5)"
307
307
  })
308
308
  ])
309
- ], -1)), nl = [
310
- al,
311
- ol
312
- ], il = /* @__PURE__ */ j({
309
+ ], -1)), rl = [
310
+ nl,
311
+ il
312
+ ], sl = /* @__PURE__ */ $({
313
313
  __name: "VJoyBadgeLevel",
314
314
  props: {
315
315
  /** Badge type. HIGH_POTENTIAL, SUPERMALTER, etc... */
@@ -331,69 +331,71 @@ const R = (e) => (se("data-v-f258a344"), e = e(), ue(), e), At = { class: "joy-b
331
331
  setup(e) {
332
332
  const l = e, t = V(() => {
333
333
  switch (l.type) {
334
- case ne.HIGH_POTENTIAL:
335
- case T.HIGH_POTENTIAL:
334
+ case ie.HIGH_POTENTIAL:
335
+ case J.HIGH_POTENTIAL:
336
336
  return "High Potential";
337
- case T.HIGH_POTENTIAL_AUTO:
337
+ case J.HIGH_POTENTIAL_AUTO:
338
338
  return "High Potential Auto";
339
- case T.MALT_LINKER:
339
+ case J.MALT_LINKER:
340
340
  return "Malt Linker";
341
- case T.NEW:
341
+ case J.NEW:
342
342
  return "New";
343
- case T.SUPER_MALTER:
343
+ case J.SUPER_MALTER:
344
344
  return "Supermalter";
345
- case T.VERIFIED:
345
+ case J.VERIFIED:
346
346
  return "Verified";
347
347
  default:
348
348
  return "Supermalter";
349
349
  }
350
350
  });
351
- return (a, o) => (u(), m("span", At, [
352
- e.type === $(T).SUPER_MALTER ? (u(!0), m(W, { key: 0 }, Y(e.superMalterLevel, (i, r) => (u(), m("svg", {
351
+ return (a, o) => (s(), m("span", qt, [
352
+ e.type === j(J).SUPER_MALTER ? (s(!0), m(H, { key: 0 }, G(e.superMalterLevel, (i, r) => (s(), m("svg", {
353
353
  key: r,
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
- }, Nt))), 128)) : _("", !0),
359
- e.type === $(T).HIGH_POTENTIAL ? (u(), m("svg", Rt, Ut)) : _("", !0),
360
- e.type === $(T).HIGH_POTENTIAL_AUTO ? (u(), m("svg", Wt, Yt)) : _("", !0),
361
- e.type === $(T).MALT_LINKER ? (u(), m("svg", Xt, tl)) : _("", !0),
362
- e.type === $(ne).HIGH_POTENTIAL ? (u(), m("svg", ll, nl)) : _("", !0),
363
- h("span", {
358
+ }, Ht))), 128)) : h("", !0),
359
+ e.type === j(J).HIGH_POTENTIAL ? (s(), m("svg", Dt, Gt)) : 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),
363
+ _("span", {
364
364
  class: S([
365
365
  {
366
366
  "joy-badge-level__tag": e.visibleText,
367
- red: e.type === $(T).NEW || e.type === $(T).MALT_LINKER || e.type === $(T).HIGH_POTENTIAL_AUTO,
368
- blue: e.type === $(ne).HIGH_POTENTIAL || e.type === $(T).HIGH_POTENTIAL || e.type === $(T).SUPER_MALTER,
369
- turquoise: e.type === $(T).VERIFIED
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
370
370
  }
371
371
  ])
372
372
  }, [
373
373
  e.visibleText ? g(a.$slots, "default", { key: 0 }, () => [
374
- O(C(t.value), 1)
375
- ], !0) : _("", !0)
374
+ B(L(t.value), 1)
375
+ ], !0) : h("", !0)
376
376
  ], 2)
377
377
  ]));
378
378
  }
379
379
  });
380
- const rl = /* @__PURE__ */ k(il, [["__scopeId", "data-v-f258a344"]]), sl = ["teal", "white"], ul = /* @__PURE__ */ j({
380
+ const ul = /* @__PURE__ */ k(sl, [["__scopeId", "data-v-f258a344"]]), dl = ["teal", "white"], cl = /* @__PURE__ */ $({
381
381
  __name: "VJoySpinner",
382
382
  props: {
383
383
  color: {
384
384
  type: String,
385
385
  validator(e) {
386
- return sl.includes(e);
386
+ return dl.includes(e);
387
387
  }
388
388
  }
389
389
  },
390
390
  setup(e) {
391
- return (l, t) => (u(), m("div", {
391
+ return (l, t) => (s(), m("div", {
392
392
  class: S(["joy-spinner", `joy-spinner_${e.color}`])
393
393
  }, null, 2));
394
394
  }
395
395
  });
396
- const $e = /* @__PURE__ */ k(ul, [["__scopeId", "data-v-616a29d0"]]), dl = ["primary", "secondary"], cl = ["neutral", "success", "info", "warning", "error"], fl = ["main", "admin", "ghost", "white"], yl = [...dl, ...fl], vl = ["large", "medium", "small", "xsmall", "xxsmall"], ml = { class: "joy-button--slot" }, pl = /* @__PURE__ */ j({
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
+ let ot = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((l, t) => (t &= 63, t < 36 ? l += t.toString(36) : t < 62 ? l += (t - 26).toString(36).toUpperCase() : t > 62 ? l += "-" : l += "_", l), "");
398
+ const _l = /* @__PURE__ */ $({
397
399
  __name: "VJoyButton",
398
400
  props: {
399
401
  /**
@@ -429,7 +431,7 @@ const $e = /* @__PURE__ */ k(ul, [["__scopeId", "data-v-616a29d0"]]), dl = ["pri
429
431
  type: String,
430
432
  default: "primary",
431
433
  validator(e) {
432
- return yl.includes(e);
434
+ return pl.includes(e);
433
435
  }
434
436
  },
435
437
  /** Button or Link size */
@@ -437,12 +439,12 @@ const $e = /* @__PURE__ */ k(ul, [["__scopeId", "data-v-616a29d0"]]), dl = ["pri
437
439
  type: String,
438
440
  default: "medium",
439
441
  validator(e) {
440
- return vl.includes(e);
442
+ return ml.includes(e);
441
443
  }
442
444
  }
443
445
  },
444
446
  setup(e) {
445
- const l = e, t = be(), a = V(() => {
447
+ const l = e, t = we(), a = "joy-button--" + ot(), o = V(() => {
446
448
  switch (l.size) {
447
449
  case "xxsmall":
448
450
  return "xxsmall";
@@ -453,10 +455,10 @@ const $e = /* @__PURE__ */ k(ul, [["__scopeId", "data-v-616a29d0"]]), dl = ["pri
453
455
  default:
454
456
  return "small";
455
457
  }
456
- }), o = V(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
457
- return (i, r) => (u(), x(re($(t).href ? "a" : "button"), {
458
- disabled: e.loading || $(t).disabled,
459
- type: $(t).type || "button",
458
+ }), i = V(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
459
+ return (r, n) => (s(), C(oe(j(t).href ? "a" : "button"), {
460
+ disabled: e.loading || j(t).disabled,
461
+ type: j(t).type || "button",
460
462
  class: S([
461
463
  "joy-button",
462
464
  `joy-button_${e.variant}`,
@@ -465,36 +467,42 @@ const $e = /* @__PURE__ */ k(ul, [["__scopeId", "data-v-616a29d0"]]), dl = ["pri
465
467
  "joy-button_circle": e.circle,
466
468
  "joy-button_loading": e.loading
467
469
  }
468
- ])
470
+ ]),
471
+ "aria-labelledby": (r.$slots.default || e.label) && a
469
472
  }, {
470
- default: B(() => [
471
- e.icon && e.iconPosition === "left" ? (u(), x(J, {
473
+ default: O(() => [
474
+ e.icon && e.iconPosition === "left" ? (s(), C(E, {
472
475
  key: 0,
473
476
  class: "joy-button_icon joy-button_icon--left",
474
477
  name: e.icon,
475
- size: a.value
476
- }, null, 8, ["name", "size"])) : _("", !0),
477
- e.loading ? (u(), x($e, {
478
+ size: o.value,
479
+ "aria-hidden": "true"
480
+ }, null, 8, ["name", "size"])) : h("", !0),
481
+ e.loading ? (s(), C(Ve, {
478
482
  key: 1,
479
- color: o.value
480
- }, null, 8, ["color"])) : _("", !0),
481
- h("span", ml, [
482
- g(i.$slots, "default", {}, () => [
483
- O(C(e.label), 1)
483
+ color: i.value
484
+ }, null, 8, ["color"])) : h("", !0),
485
+ _("span", {
486
+ id: a,
487
+ class: "joy-button--slot"
488
+ }, [
489
+ g(r.$slots, "default", {}, () => [
490
+ B(L(e.label), 1)
484
491
  ], !0)
485
492
  ]),
486
- e.icon && e.iconPosition === "right" ? (u(), x(J, {
493
+ e.icon && e.iconPosition === "right" ? (s(), C(E, {
487
494
  key: 2,
488
495
  class: "joy-button_icon joy-button_icon--right",
489
496
  name: e.icon,
490
- size: a.value
491
- }, null, 8, ["name", "size"])) : _("", !0)
497
+ size: o.value,
498
+ "aria-hidden": "true"
499
+ }, null, 8, ["name", "size"])) : h("", !0)
492
500
  ]),
493
501
  _: 3
494
- }, 8, ["disabled", "type", "class"]));
502
+ }, 8, ["disabled", "type", "class", "aria-labelledby"]));
495
503
  }
496
504
  });
497
- const lt = /* @__PURE__ */ k(pl, [["__scopeId", "data-v-ae0676bb"]]), hl = ["aria-checked", "aria-hidden"], _l = { class: "joy-checkbox__input-wrapper" }, gl = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], bl = { class: "joy-checkbox__content-wrapper" }, wl = { class: "joy-checkbox__content" }, Sl = /* @__PURE__ */ j({
505
+ const xe = /* @__PURE__ */ k(_l, [["__scopeId", "data-v-41fbf260"]]), hl = ["aria-checked", "aria-hidden"], gl = { class: "joy-checkbox__input-wrapper" }, bl = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], wl = { class: "joy-checkbox__content-wrapper" }, Sl = { class: "joy-checkbox__content" }, $l = /* @__PURE__ */ $({
498
506
  __name: "VJoyCheckbox",
499
507
  props: {
500
508
  /** 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 */
@@ -549,10 +557,10 @@ const lt = /* @__PURE__ */ k(pl, [["__scopeId", "data-v-ae0676bb"]]), hl = ["ari
549
557
  },
550
558
  emits: ["update:checked", "focus", "blur"],
551
559
  setup(e, { expose: l, emit: t }) {
552
- const a = e, o = w(), i = w(a.indeterminate), r = w(a.invalid), n = w(!1), d = {
553
- onChange: (y) => {
554
- const c = y.target.checked;
555
- i.value = !1, r.value = !1, t("update:checked", c);
560
+ const a = e, o = w(), i = w(a.indeterminate), r = w(a.invalid), n = w(!1), c = {
561
+ onChange: (v) => {
562
+ const d = v.target.checked;
563
+ i.value = !1, r.value = !1, t("update:checked", d);
556
564
  },
557
565
  onFocus: () => {
558
566
  n.value = !0, t("focus");
@@ -563,12 +571,12 @@ const lt = /* @__PURE__ */ k(pl, [["__scopeId", "data-v-ae0676bb"]]), hl = ["ari
563
571
  };
564
572
  return l({
565
573
  isIndeterminate: i
566
- }), (y, c) => (u(), m("div", {
574
+ }), (v, d) => (s(), m("div", {
567
575
  class: "joy-checkbox__wrapper",
568
576
  "aria-checked": e.checked,
569
577
  "aria-hidden": e.disabled
570
578
  }, [
571
- h("label", {
579
+ _("label", {
572
580
  class: S([
573
581
  "joy-checkbox",
574
582
  {
@@ -580,8 +588,8 @@ const lt = /* @__PURE__ */ k(pl, [["__scopeId", "data-v-ae0676bb"]]), hl = ["ari
580
588
  }
581
589
  ])
582
590
  }, [
583
- h("div", _l, [
584
- h("input", {
591
+ _("div", gl, [
592
+ _("input", {
585
593
  id: e.id,
586
594
  ref_key: "input",
587
595
  ref: o,
@@ -595,27 +603,27 @@ const lt = /* @__PURE__ */ k(pl, [["__scopeId", "data-v-ae0676bb"]]), hl = ["ari
595
603
  "aria-checked": e.checked,
596
604
  value: e.value,
597
605
  indeterminate: i.value,
598
- onChange: c[0] || (c[0] = //@ts-ignore
599
- (...v) => d.onChange && d.onChange(...v)),
600
- onFocus: c[1] || (c[1] = //@ts-ignore
601
- (...v) => d.onFocus && d.onFocus(...v)),
602
- onBlur: c[2] || (c[2] = //@ts-ignore
603
- (...v) => d.onBlur && d.onBlur(...v))
604
- }, null, 40, gl)
606
+ onChange: d[0] || (d[0] = //@ts-ignore
607
+ (...y) => c.onChange && c.onChange(...y)),
608
+ onFocus: d[1] || (d[1] = //@ts-ignore
609
+ (...y) => c.onFocus && c.onFocus(...y)),
610
+ onBlur: d[2] || (d[2] = //@ts-ignore
611
+ (...y) => c.onBlur && c.onBlur(...y))
612
+ }, null, 40, bl)
605
613
  ]),
606
- h("div", bl, [
607
- g(y.$slots, "default", {}, () => [
608
- O(C(e.label), 1)
614
+ _("div", wl, [
615
+ g(v.$slots, "default", {}, () => [
616
+ B(L(e.label), 1)
609
617
  ], !0),
610
- h("div", wl, [
611
- g(y.$slots, "checkbox-content", {}, void 0, !0)
618
+ _("div", Sl, [
619
+ g(v.$slots, "checkbox-content", {}, void 0, !0)
612
620
  ])
613
621
  ])
614
622
  ], 2)
615
623
  ], 8, hl));
616
624
  }
617
625
  });
618
- const je = /* @__PURE__ */ k(Sl, [["__scopeId", "data-v-27cc9d8c"]]), $l = ["src", "alt", "title"], jl = /* @__PURE__ */ j({
626
+ const Ce = /* @__PURE__ */ k($l, [["__scopeId", "data-v-27cc9d8c"]]), jl = ["src", "alt", "title"], kl = /* @__PURE__ */ $({
619
627
  __name: "VJoyCompanyAvatar",
620
628
  props: {
621
629
  imgSrc: String,
@@ -639,15 +647,15 @@ const je = /* @__PURE__ */ k(Sl, [["__scopeId", "data-v-27cc9d8c"]]), $l = ["src
639
647
  return "xsmall";
640
648
  }
641
649
  });
642
- return (a, o) => (u(), m("div", {
650
+ return (a, o) => (s(), m("div", {
643
651
  class: S(["joy-company-avatar", `joy-company-avatar--${e.size}`])
644
652
  }, [
645
- e.imgSrc ? (u(), m("img", {
653
+ e.imgSrc ? (s(), m("img", {
646
654
  key: 0,
647
655
  src: e.imgSrc,
648
656
  alt: e.imgAlt || e.companyName,
649
657
  title: e.companyName
650
- }, null, 8, $l)) : (u(), x($(J), {
658
+ }, null, 8, jl)) : (s(), C(j(E), {
651
659
  key: 1,
652
660
  name: "company-placeholder",
653
661
  size: t.value
@@ -655,13 +663,13 @@ const je = /* @__PURE__ */ k(Sl, [["__scopeId", "data-v-27cc9d8c"]]), $l = ["src
655
663
  ], 2));
656
664
  }
657
665
  });
658
- const kl = /* @__PURE__ */ k(jl, [["__scopeId", "data-v-7ab52b19"]]), Vl = { class: "joy-counter" }, xl = ["aria-label", "disabled"], Cl = { class: "joy-counter__input-wrapper" }, Ll = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Il = ["aria-label", "disabled"], Ol = {
666
+ const Vl = /* @__PURE__ */ k(kl, [["__scopeId", "data-v-7ab52b19"]]), xl = { class: "joy-counter" }, Cl = ["aria-label", "disabled"], Ll = { class: "joy-counter__input-wrapper" }, Il = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Bl = ["aria-label", "disabled"], Ol = {
659
667
  key: 0,
660
668
  class: "joy-counter_error"
661
- }, Bl = {
669
+ }, Tl = {
662
670
  inheritAttrs: !1
663
- }, El = /* @__PURE__ */ j({
664
- ...Bl,
671
+ }, Pl = /* @__PURE__ */ $({
672
+ ...Tl,
665
673
  __name: "VJoyCounter",
666
674
  props: {
667
675
  /** Removes any interactivity */
@@ -730,30 +738,30 @@ const kl = /* @__PURE__ */ k(jl, [["__scopeId", "data-v-7ab52b19"]]), Vl = { cla
730
738
  setup(e, { expose: l, emit: t }) {
731
739
  const a = e, o = w(!1), i = w(!1);
732
740
  function r() {
733
- const p = y(!1);
734
- p >= 0 ? t("update:modelValue", p <= a.min ? a.min : p) : t("update:modelValue", 0), d();
741
+ const p = v(!1);
742
+ p >= 0 ? t("update:modelValue", p <= a.min ? a.min : p) : t("update:modelValue", 0), c();
735
743
  }
736
744
  function n() {
737
- const p = y();
738
- 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), d();
745
+ const p = v();
746
+ 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();
739
747
  }
740
- function d() {
741
- o.value = !c();
748
+ function c() {
749
+ o.value = !d();
742
750
  }
743
- function y(p = !0) {
744
- const b = a.step.toString().split("."), I = b.length === 2 ? b[1].length : 0;
745
- return parseFloat(p ? (a.modelValue + a.step).toFixed(I) : (a.modelValue - a.step).toFixed(I));
751
+ function v(p = !0) {
752
+ const b = a.step.toString().split("."), x = b.length === 2 ? b[1].length : 0;
753
+ return parseFloat(p ? (a.modelValue + a.step).toFixed(x) : (a.modelValue - a.step).toFixed(x));
746
754
  }
747
- function c() {
748
- return v() && f();
755
+ function d() {
756
+ return y() && f();
749
757
  }
750
- function v() {
758
+ function y() {
751
759
  return !a.max || a.modelValue <= a.max;
752
760
  }
753
761
  function f() {
754
762
  return a.min <= a.modelValue;
755
763
  }
756
- const s = {
764
+ const u = {
757
765
  onInput: (p) => {
758
766
  t("update:modelValue", +p.target.value || 0), o.value = !1;
759
767
  },
@@ -761,40 +769,40 @@ const kl = /* @__PURE__ */ k(jl, [["__scopeId", "data-v-7ab52b19"]]), Vl = { cla
761
769
  i.value = !0;
762
770
  },
763
771
  onBlur: () => {
764
- i.value = !1, d();
772
+ i.value = !1, c();
765
773
  }
766
774
  };
767
775
  return l({
768
776
  props: a
769
- }), (p, b) => (u(), m("div", Vl, [
770
- e.label ? (u(), x($(K), {
777
+ }), (p, b) => (s(), m("div", xl, [
778
+ e.label ? (s(), C(j(ee), {
771
779
  key: 0,
772
780
  for: e.id,
773
781
  required: e.required && e.requiredMark,
774
782
  "optional-label": e.optionalLabel,
775
783
  size: e.labelSize
776
784
  }, {
777
- default: B(() => [
785
+ default: O(() => [
778
786
  g(p.$slots, "default", {}, () => [
779
- O(C(e.label), 1)
787
+ B(L(e.label), 1)
780
788
  ], !0)
781
789
  ]),
782
790
  _: 3
783
- }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
784
- h("div", {
791
+ }, 8, ["for", "required", "optional-label", "size"])) : h("", !0),
792
+ _("div", {
785
793
  class: S(["joy-counter__wrapper", { "joy-counter--focusing": i.value }])
786
794
  }, [
787
- h("button", {
795
+ _("button", {
788
796
  class: "joy-counter__decrement",
789
797
  type: "button",
790
798
  "aria-label": e.labelDecrement,
791
799
  disabled: e.modelValue <= e.min,
792
800
  onClick: r
793
801
  }, [
794
- U($(J), { name: "minus" })
795
- ], 8, xl),
796
- h("div", Cl, [
797
- h("input", G({
802
+ R(j(E), { name: "minus" })
803
+ ], 8, Cl),
804
+ _("div", Ll, [
805
+ _("input", K({
798
806
  id: e.id,
799
807
  ref: "input",
800
808
  type: "number",
@@ -808,30 +816,30 @@ const kl = /* @__PURE__ */ k(jl, [["__scopeId", "data-v-7ab52b19"]]), Vl = { cla
808
816
  value: e.modelValue
809
817
  }, p.$attrs, {
810
818
  onInput: b[0] || (b[0] = //@ts-ignore
811
- (...I) => s.onInput && s.onInput(...I)),
819
+ (...x) => u.onInput && u.onInput(...x)),
812
820
  onBlur: b[1] || (b[1] = //@ts-ignore
813
- (...I) => s.onBlur && s.onBlur(...I)),
821
+ (...x) => u.onBlur && u.onBlur(...x)),
814
822
  onFocus: b[2] || (b[2] = //@ts-ignore
815
- (...I) => s.onFocus && s.onFocus(...I))
816
- }), null, 16, Ll)
823
+ (...x) => u.onFocus && u.onFocus(...x))
824
+ }), null, 16, Il)
817
825
  ]),
818
- h("button", {
826
+ _("button", {
819
827
  class: "joy-counter__increment",
820
828
  type: "button",
821
829
  "aria-label": e.labelIncrement,
822
830
  disabled: e.max ? e.modelValue >= e.max : !1,
823
831
  onClick: n
824
832
  }, [
825
- U($(J), { name: "add" })
826
- ], 8, Il),
827
- e.invalid && e.errorMessage ? (u(), m("div", Ol, [
828
- U($(dt), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
829
- ])) : _("", !0)
833
+ R(j(E), { name: "add" })
834
+ ], 8, Bl),
835
+ e.invalid && e.errorMessage ? (s(), m("div", Ol, [
836
+ R(j(ft), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
837
+ ])) : h("", !0)
830
838
  ], 2)
831
839
  ]));
832
840
  }
833
841
  });
834
- const Tl = /* @__PURE__ */ k(El, [["__scopeId", "data-v-a59ac0ad"]]), Jl = ["disabled"], Pl = { class: "joy-divider-cta--icon" }, zl = { class: "joy-divider-cta--content" }, Al = { class: "joy-divider-cta--content---title" }, Fl = /* @__PURE__ */ j({
842
+ const Jl = /* @__PURE__ */ k(Pl, [["__scopeId", "data-v-a59ac0ad"]]), El = ["disabled"], zl = { class: "joy-divider-cta--icon" }, Al = { class: "joy-divider-cta--content" }, Fl = { class: "joy-divider-cta--content---title" }, ql = /* @__PURE__ */ $({
835
843
  __name: "VJoyDividerCta",
836
844
  props: {
837
845
  disabled: {
@@ -840,31 +848,31 @@ const Tl = /* @__PURE__ */ k(El, [["__scopeId", "data-v-a59ac0ad"]]), Jl = ["dis
840
848
  }
841
849
  },
842
850
  setup(e) {
843
- return (l, t) => (u(), m("button", {
851
+ return (l, t) => (s(), m("button", {
844
852
  type: "button",
845
853
  class: S(["joy-divider-cta", { "joy-divider-cta__disabled": e.disabled }]),
846
854
  disabled: e.disabled
847
855
  }, [
848
- h("div", Pl, [
849
- U(J, { name: "add" })
856
+ _("div", zl, [
857
+ R(E, { name: "add" })
850
858
  ]),
851
- h("div", zl, [
852
- h("p", Al, [
859
+ _("div", Al, [
860
+ _("p", Fl, [
853
861
  g(l.$slots, "default", {}, void 0, !0)
854
862
  ]),
855
863
  g(l.$slots, "divider-content", {}, void 0, !0)
856
864
  ])
857
- ], 10, Jl));
865
+ ], 10, El));
858
866
  }
859
867
  });
860
- const ql = /* @__PURE__ */ k(Fl, [["__scopeId", "data-v-a3d693c3"]]);
861
- var Ce;
862
- const te = typeof window < "u", at = (e) => typeof e == "string", M = () => {
863
- }, ie = te && ((Ce = window == null ? void 0 : window.navigator) == null ? void 0 : Ce.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
868
+ const Nl = /* @__PURE__ */ k(ql, [["__scopeId", "data-v-a3d693c3"]]);
869
+ var Oe;
870
+ const le = typeof window < "u", nt = (e) => typeof e == "string", N = () => {
871
+ }, re = le && ((Oe = window == null ? void 0 : window.navigator) == null ? void 0 : Oe.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
864
872
  function A(e) {
865
- return typeof e == "function" ? e() : $(e);
873
+ return typeof e == "function" ? e() : j(e);
866
874
  }
867
- function ot(e, l) {
875
+ function it(e, l) {
868
876
  function t(...a) {
869
877
  return new Promise((o, i) => {
870
878
  Promise.resolve(e(() => l.apply(this, a), { fn: l, thisArg: this, args: a })).then(o).catch(i);
@@ -873,174 +881,174 @@ function ot(e, l) {
873
881
  return t;
874
882
  }
875
883
  function Ml(e, l = {}) {
876
- let t, a, o = M;
884
+ let t, a, o = N;
877
885
  const i = (n) => {
878
- clearTimeout(n), o(), o = M;
886
+ clearTimeout(n), o(), o = N;
879
887
  };
880
888
  return (n) => {
881
- const d = A(e), y = A(l.maxWait);
882
- return t && i(t), d <= 0 || y !== void 0 && y <= 0 ? (a && (i(a), a = null), Promise.resolve(n())) : new Promise((c, v) => {
883
- o = l.rejectOnCancel ? v : c, y && !a && (a = setTimeout(() => {
884
- t && i(t), a = null, c(n());
885
- }, y)), t = setTimeout(() => {
886
- a && i(a), a = null, c(n());
887
- }, d);
889
+ const c = A(e), v = A(l.maxWait);
890
+ return t && i(t), c <= 0 || v !== void 0 && v <= 0 ? (a && (i(a), a = null), Promise.resolve(n())) : new Promise((d, y) => {
891
+ o = l.rejectOnCancel ? y : d, v && !a && (a = setTimeout(() => {
892
+ t && i(t), a = null, d(n());
893
+ }, v)), t = setTimeout(() => {
894
+ a && i(a), a = null, d(n());
895
+ }, c);
888
896
  });
889
897
  };
890
898
  }
891
- function Nl(e, l = !0, t = !0, a = !1) {
892
- let o = 0, i, r = !0, n = M, d;
893
- const y = () => {
894
- i && (clearTimeout(i), i = void 0, n(), n = M);
899
+ function Rl(e, l = !0, t = !0, a = !1) {
900
+ let o = 0, i, r = !0, n = N, c;
901
+ const v = () => {
902
+ i && (clearTimeout(i), i = void 0, n(), n = N);
895
903
  };
896
- return (v) => {
897
- const f = A(e), s = Date.now() - o, p = () => d = v();
898
- return y(), f <= 0 ? (o = Date.now(), p()) : (s > f && (t || !r) ? (o = Date.now(), p()) : l && (d = new Promise((b, I) => {
899
- n = a ? I : b, i = setTimeout(() => {
900
- o = Date.now(), r = !0, b(p()), y();
901
- }, Math.max(0, f - s));
902
- })), !t && !i && (i = setTimeout(() => r = !0, f)), r = !1, d);
904
+ return (y) => {
905
+ const f = A(e), u = Date.now() - o, p = () => c = y();
906
+ return v(), f <= 0 ? (o = Date.now(), p()) : (u > f && (t || !r) ? (o = Date.now(), p()) : l && (c = new Promise((b, x) => {
907
+ n = a ? x : b, i = setTimeout(() => {
908
+ o = Date.now(), r = !0, b(p()), v();
909
+ }, Math.max(0, f - u));
910
+ })), !t && !i && (i = setTimeout(() => r = !0, f)), r = !1, c);
903
911
  };
904
912
  }
905
- const H = {
913
+ const W = {
906
914
  mounted: "mounted",
907
915
  updated: "updated",
908
916
  unmounted: "unmounted"
909
917
  };
910
- function Rl(e) {
918
+ function Hl(e) {
911
919
  return e;
912
920
  }
913
- function le(e) {
914
- return mt() ? (pt(e), !0) : !1;
921
+ function ae(e) {
922
+ return _t() ? (ht(e), !0) : !1;
915
923
  }
916
- function Hl(e, l = 200, t = {}) {
917
- return ot(Ml(l, t), e);
924
+ function Dl(e, l = 200, t = {}) {
925
+ return it(Ml(l, t), e);
918
926
  }
919
- function Dl(e, l = 200, t = !1, a = !0, o = !1) {
920
- return ot(Nl(l, t, a, o), e);
927
+ function Wl(e, l = 200, t = !1, a = !0, o = !1) {
928
+ return it(Rl(l, t, a, o), e);
921
929
  }
922
930
  function Ul(e) {
923
931
  return typeof e == "function" ? V(e) : w(e);
924
932
  }
925
- function nt(e, l = !0) {
926
- ht() ? X(e) : l ? e() : Qe(e);
933
+ function rt(e, l = !0) {
934
+ gt() ? Q(e) : l ? e() : lt(e);
927
935
  }
928
- function Q(e) {
936
+ function te(e) {
929
937
  var l;
930
938
  const t = A(e);
931
939
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
932
940
  }
933
- const ke = te ? window : void 0;
934
- te && window.document;
935
- te && window.navigator;
936
- te && window.location;
937
- function ye(...e) {
941
+ const Le = le ? window : void 0;
942
+ le && window.document;
943
+ le && window.navigator;
944
+ le && window.location;
945
+ function ve(...e) {
938
946
  let l, t, a, o;
939
- if (at(e[0]) || Array.isArray(e[0]) ? ([t, a, o] = e, l = ke) : [l, t, a, o] = e, !l)
940
- return M;
947
+ if (nt(e[0]) || Array.isArray(e[0]) ? ([t, a, o] = e, l = Le) : [l, t, a, o] = e, !l)
948
+ return N;
941
949
  Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
942
950
  const i = [], r = () => {
943
- i.forEach((c) => c()), i.length = 0;
944
- }, n = (c, v, f, s) => (c.addEventListener(v, f, s), () => c.removeEventListener(v, f, s)), d = E(() => [Q(l), A(o)], ([c, v]) => {
945
- r(), c && i.push(...t.flatMap((f) => a.map((s) => n(c, f, s, v))));
946
- }, { immediate: !0, flush: "post" }), y = () => {
947
- d(), r();
951
+ i.forEach((d) => d()), i.length = 0;
952
+ }, n = (d, y, f, u) => (d.addEventListener(y, f, u), () => d.removeEventListener(y, f, u)), c = P(() => [te(l), A(o)], ([d, y]) => {
953
+ r(), d && i.push(...t.flatMap((f) => a.map((u) => n(d, f, u, y))));
954
+ }, { immediate: !0, flush: "post" }), v = () => {
955
+ c(), r();
948
956
  };
949
- return le(y), y;
957
+ return ae(v), v;
950
958
  }
951
- let Le = !1;
952
- function Wl(e, l, t = {}) {
953
- const { window: a = ke, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
959
+ let Te = !1;
960
+ function Gl(e, l, t = {}) {
961
+ const { window: a = Le, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
954
962
  if (!a)
955
963
  return;
956
- ie && !Le && (Le = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", M)));
964
+ re && !Te && (Te = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", N)));
957
965
  let n = !0;
958
- const d = (f) => o.some((s) => {
959
- if (typeof s == "string")
960
- return Array.from(a.document.querySelectorAll(s)).some((p) => p === f.target || f.composedPath().includes(p));
966
+ const c = (f) => o.some((u) => {
967
+ if (typeof u == "string")
968
+ return Array.from(a.document.querySelectorAll(u)).some((p) => p === f.target || f.composedPath().includes(p));
961
969
  {
962
- const p = Q(s);
970
+ const p = te(u);
963
971
  return p && (f.target === p || f.composedPath().includes(p));
964
972
  }
965
- }), c = [
966
- ye(a, "click", (f) => {
967
- const s = Q(e);
968
- if (!(!s || s === f.target || f.composedPath().includes(s))) {
969
- if (f.detail === 0 && (n = !d(f)), !n) {
973
+ }), d = [
974
+ ve(a, "click", (f) => {
975
+ const u = te(e);
976
+ if (!(!u || u === f.target || f.composedPath().includes(u))) {
977
+ if (f.detail === 0 && (n = !c(f)), !n) {
970
978
  n = !0;
971
979
  return;
972
980
  }
973
981
  l(f);
974
982
  }
975
983
  }, { passive: !0, capture: i }),
976
- ye(a, "pointerdown", (f) => {
977
- const s = Q(e);
978
- s && (n = !f.composedPath().includes(s) && !d(f));
984
+ ve(a, "pointerdown", (f) => {
985
+ const u = te(e);
986
+ u && (n = !f.composedPath().includes(u) && !c(f));
979
987
  }, { passive: !0 }),
980
- r && ye(a, "blur", (f) => {
981
- var s;
982
- const p = Q(e);
983
- ((s = a.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
988
+ r && ve(a, "blur", (f) => {
989
+ var u;
990
+ const p = te(e);
991
+ ((u = a.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
984
992
  })
985
993
  ].filter(Boolean);
986
- return () => c.forEach((f) => f());
994
+ return () => d.forEach((f) => f());
987
995
  }
988
- function Gl(e, l = !1) {
996
+ function Zl(e, l = !1) {
989
997
  const t = w(), a = () => t.value = Boolean(e());
990
- return a(), nt(a, l), t;
998
+ return a(), rt(a, l), t;
991
999
  }
992
- const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, pe = "__vueuse_ssr_handlers__";
993
- me[pe] = me[pe] || {};
994
- me[pe];
995
- var Ie = Object.getOwnPropertySymbols, Zl = Object.prototype.hasOwnProperty, Kl = Object.prototype.propertyIsEnumerable, Ql = (e, l) => {
1000
+ const me = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _e = "__vueuse_ssr_handlers__";
1001
+ me[_e] = me[_e] || {};
1002
+ me[_e];
1003
+ var Pe = Object.getOwnPropertySymbols, Kl = Object.prototype.hasOwnProperty, Ql = Object.prototype.propertyIsEnumerable, Yl = (e, l) => {
996
1004
  var t = {};
997
1005
  for (var a in e)
998
- Zl.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
999
- if (e != null && Ie)
1000
- for (var a of Ie(e))
1001
- l.indexOf(a) < 0 && Kl.call(e, a) && (t[a] = e[a]);
1006
+ Kl.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1007
+ if (e != null && Pe)
1008
+ for (var a of Pe(e))
1009
+ l.indexOf(a) < 0 && Ql.call(e, a) && (t[a] = e[a]);
1002
1010
  return t;
1003
1011
  };
1004
- function Yl(e, l, t = {}) {
1005
- const a = t, { window: o = ke } = a, i = Ql(a, ["window"]);
1012
+ function Xl(e, l, t = {}) {
1013
+ const a = t, { window: o = Le } = a, i = Yl(a, ["window"]);
1006
1014
  let r;
1007
- const n = Gl(() => o && "ResizeObserver" in o), d = () => {
1015
+ const n = Zl(() => o && "ResizeObserver" in o), c = () => {
1008
1016
  r && (r.disconnect(), r = void 0);
1009
- }, y = E(() => Q(e), (v) => {
1010
- d(), n.value && o && v && (r = new ResizeObserver(l), r.observe(v, i));
1011
- }, { immediate: !0, flush: "post" }), c = () => {
1012
- d(), y();
1017
+ }, v = P(() => te(e), (y) => {
1018
+ c(), n.value && o && y && (r = new ResizeObserver(l), r.observe(y, i));
1019
+ }, { immediate: !0, flush: "post" }), d = () => {
1020
+ c(), v();
1013
1021
  };
1014
- return le(c), {
1022
+ return ae(d), {
1015
1023
  isSupported: n,
1016
- stop: c
1024
+ stop: d
1017
1025
  };
1018
1026
  }
1019
- var Oe;
1027
+ var Je;
1020
1028
  (function(e) {
1021
1029
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
1022
- })(Oe || (Oe = {}));
1023
- function Xl(e) {
1030
+ })(Je || (Je = {}));
1031
+ function ea(e) {
1024
1032
  const l = w(e == null ? void 0 : e.element), t = w(e == null ? void 0 : e.input);
1025
1033
  function a() {
1026
1034
  var o, i;
1027
1035
  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));
1028
1036
  }
1029
- return E([t, l], a, { immediate: !0 }), Yl(l, () => a()), e != null && e.watch && E(e.watch, a, { immediate: !0, deep: !0 }), {
1037
+ return P([t, l], a, { immediate: !0 }), Xl(l, () => a()), e != null && e.watch && P(e.watch, a, { immediate: !0, deep: !0 }), {
1030
1038
  textarea: l,
1031
1039
  input: t,
1032
1040
  triggerResize: a
1033
1041
  };
1034
1042
  }
1035
- var ea = Object.defineProperty, Be = Object.getOwnPropertySymbols, ta = Object.prototype.hasOwnProperty, la = Object.prototype.propertyIsEnumerable, Ee = (e, l, t) => l in e ? ea(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, aa = (e, l) => {
1043
+ var ta = Object.defineProperty, Ee = Object.getOwnPropertySymbols, la = Object.prototype.hasOwnProperty, aa = Object.prototype.propertyIsEnumerable, ze = (e, l, t) => l in e ? ta(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, oa = (e, l) => {
1036
1044
  for (var t in l || (l = {}))
1037
- ta.call(l, t) && Ee(e, t, l[t]);
1038
- if (Be)
1039
- for (var t of Be(l))
1040
- la.call(l, t) && Ee(e, t, l[t]);
1045
+ la.call(l, t) && ze(e, t, l[t]);
1046
+ if (Ee)
1047
+ for (var t of Ee(l))
1048
+ aa.call(l, t) && ze(e, t, l[t]);
1041
1049
  return e;
1042
1050
  };
1043
- const oa = {
1051
+ const na = {
1044
1052
  easeInSine: [0.12, 0, 0.39, 0],
1045
1053
  easeOutSine: [0.61, 1, 0.88, 1],
1046
1054
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1066,20 +1074,20 @@ const oa = {
1066
1074
  easeOutBack: [0.34, 1.56, 0.64, 1],
1067
1075
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1068
1076
  };
1069
- aa({
1070
- linear: Rl
1071
- }, oa);
1072
- const na = /* @__PURE__ */ j({
1077
+ oa({
1078
+ linear: Hl
1079
+ }, na);
1080
+ const ia = /* @__PURE__ */ $({
1073
1081
  name: "OnClickOutside",
1074
1082
  props: ["as", "options"],
1075
1083
  emits: ["trigger"],
1076
1084
  setup(e, { slots: l, emit: t }) {
1077
1085
  const a = w();
1078
- return Wl(a, (o) => {
1086
+ return Gl(a, (o) => {
1079
1087
  t("trigger", o);
1080
1088
  }, e.options), () => {
1081
1089
  if (l.default)
1082
- return _t(e.as || "div", { ref: a }, l.default());
1090
+ return bt(e.as || "div", { ref: a }, l.default());
1083
1091
  };
1084
1092
  }
1085
1093
  });
@@ -1088,164 +1096,164 @@ function F(e) {
1088
1096
  const t = A(e);
1089
1097
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
1090
1098
  }
1091
- const Z = te ? window : void 0;
1092
- function N(...e) {
1099
+ const X = le ? window : void 0;
1100
+ function M(...e) {
1093
1101
  let l, t, a, o;
1094
- if (at(e[0]) || Array.isArray(e[0]) ? ([t, a, o] = e, l = Z) : [l, t, a, o] = e, !l)
1095
- return M;
1102
+ if (nt(e[0]) || Array.isArray(e[0]) ? ([t, a, o] = e, l = X) : [l, t, a, o] = e, !l)
1103
+ return N;
1096
1104
  Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
1097
1105
  const i = [], r = () => {
1098
- i.forEach((c) => c()), i.length = 0;
1099
- }, n = (c, v, f, s) => (c.addEventListener(v, f, s), () => c.removeEventListener(v, f, s)), d = E(() => [F(l), A(o)], ([c, v]) => {
1100
- r(), c && i.push(...t.flatMap((f) => a.map((s) => n(c, f, s, v))));
1101
- }, { immediate: !0, flush: "post" }), y = () => {
1102
- d(), r();
1106
+ i.forEach((d) => d()), i.length = 0;
1107
+ }, n = (d, y, f, u) => (d.addEventListener(y, f, u), () => d.removeEventListener(y, f, u)), c = P(() => [F(l), A(o)], ([d, y]) => {
1108
+ r(), d && i.push(...t.flatMap((f) => a.map((u) => n(d, f, u, y))));
1109
+ }, { immediate: !0, flush: "post" }), v = () => {
1110
+ c(), r();
1103
1111
  };
1104
- return le(y), y;
1112
+ return ae(v), v;
1105
1113
  }
1106
- let Te = !1;
1107
- function Je(e, l, t = {}) {
1108
- const { window: a = Z, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
1114
+ let Ae = !1;
1115
+ function Fe(e, l, t = {}) {
1116
+ const { window: a = X, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
1109
1117
  if (!a)
1110
1118
  return;
1111
- ie && !Te && (Te = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", M)));
1119
+ re && !Ae && (Ae = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", N)));
1112
1120
  let n = !0;
1113
- const d = (f) => o.some((s) => {
1114
- if (typeof s == "string")
1115
- return Array.from(a.document.querySelectorAll(s)).some((p) => p === f.target || f.composedPath().includes(p));
1121
+ const c = (f) => o.some((u) => {
1122
+ if (typeof u == "string")
1123
+ return Array.from(a.document.querySelectorAll(u)).some((p) => p === f.target || f.composedPath().includes(p));
1116
1124
  {
1117
- const p = F(s);
1125
+ const p = F(u);
1118
1126
  return p && (f.target === p || f.composedPath().includes(p));
1119
1127
  }
1120
- }), c = [
1121
- N(a, "click", (f) => {
1122
- const s = F(e);
1123
- if (!(!s || s === f.target || f.composedPath().includes(s))) {
1124
- if (f.detail === 0 && (n = !d(f)), !n) {
1128
+ }), d = [
1129
+ M(a, "click", (f) => {
1130
+ const u = F(e);
1131
+ if (!(!u || u === f.target || f.composedPath().includes(u))) {
1132
+ if (f.detail === 0 && (n = !c(f)), !n) {
1125
1133
  n = !0;
1126
1134
  return;
1127
1135
  }
1128
1136
  l(f);
1129
1137
  }
1130
1138
  }, { passive: !0, capture: i }),
1131
- N(a, "pointerdown", (f) => {
1132
- const s = F(e);
1133
- s && (n = !f.composedPath().includes(s) && !d(f));
1139
+ M(a, "pointerdown", (f) => {
1140
+ const u = F(e);
1141
+ u && (n = !f.composedPath().includes(u) && !c(f));
1134
1142
  }, { passive: !0 }),
1135
- r && N(a, "blur", (f) => {
1136
- var s;
1143
+ r && M(a, "blur", (f) => {
1144
+ var u;
1137
1145
  const p = F(e);
1138
- ((s = a.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
1146
+ ((u = a.document.activeElement) == null ? void 0 : u.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
1139
1147
  })
1140
1148
  ].filter(Boolean);
1141
- return () => c.forEach((f) => f());
1149
+ return () => d.forEach((f) => f());
1142
1150
  }
1143
- H.mounted + "", H.unmounted + "";
1144
- const ia = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
1145
- function Pe(...e) {
1151
+ W.mounted + "", W.unmounted + "";
1152
+ const ra = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
1153
+ function qe(...e) {
1146
1154
  let l, t, a = {};
1147
1155
  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]);
1148
- const { target: o = Z, eventName: i = "keydown", passive: r = !1 } = a, n = ia(l);
1149
- return N(o, i, (y) => {
1150
- n(y) && t(y);
1156
+ const { target: o = X, eventName: i = "keydown", passive: r = !1 } = a, n = ra(l);
1157
+ return M(o, i, (v) => {
1158
+ n(v) && t(v);
1151
1159
  }, r);
1152
1160
  }
1153
- var ra = Object.defineProperty, ze = Object.getOwnPropertySymbols, sa = Object.prototype.hasOwnProperty, ua = Object.prototype.propertyIsEnumerable, Ae = (e, l, t) => l in e ? ra(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, da = (e, l) => {
1161
+ var sa = Object.defineProperty, Ne = Object.getOwnPropertySymbols, ua = Object.prototype.hasOwnProperty, da = Object.prototype.propertyIsEnumerable, Me = (e, l, t) => l in e ? sa(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, ca = (e, l) => {
1154
1162
  for (var t in l || (l = {}))
1155
- sa.call(l, t) && Ae(e, t, l[t]);
1156
- if (ze)
1157
- for (var t of ze(l))
1158
- ua.call(l, t) && Ae(e, t, l[t]);
1163
+ ua.call(l, t) && Me(e, t, l[t]);
1164
+ if (Ne)
1165
+ for (var t of Ne(l))
1166
+ da.call(l, t) && Me(e, t, l[t]);
1159
1167
  return e;
1160
1168
  };
1161
- H.mounted + "";
1162
- const ca = 500;
1163
- function Fe(e, l, t) {
1169
+ W.mounted + "";
1170
+ const fa = 500;
1171
+ function Re(e, l, t) {
1164
1172
  var a, o;
1165
1173
  const i = V(() => F(e));
1166
1174
  let r;
1167
1175
  function n() {
1168
1176
  r && (clearTimeout(r), r = void 0);
1169
1177
  }
1170
- function d(c) {
1171
- var v, f, s, p;
1172
- (v = t == null ? void 0 : t.modifiers) != null && v.self && c.target !== i.value || (n(), (f = t == null ? void 0 : t.modifiers) != null && f.prevent && c.preventDefault(), (s = t == null ? void 0 : t.modifiers) != null && s.stop && c.stopPropagation(), r = setTimeout(() => l(c), (p = t == null ? void 0 : t.delay) != null ? p : ca));
1178
+ function c(d) {
1179
+ var y, f, u, p;
1180
+ (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 : fa));
1173
1181
  }
1174
- const y = {
1182
+ const v = {
1175
1183
  capture: (a = t == null ? void 0 : t.modifiers) == null ? void 0 : a.capture,
1176
1184
  once: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.once
1177
1185
  };
1178
- N(i, "pointerdown", d, y), N(i, "pointerup", n, y), N(i, "pointerleave", n, y);
1186
+ M(i, "pointerdown", c, v), M(i, "pointerup", n, v), M(i, "pointerleave", n, v);
1179
1187
  }
1180
- H.mounted + "";
1181
- const he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, _e = "__vueuse_ssr_handlers__";
1182
- he[_e] = he[_e] || {};
1183
- he[_e];
1184
- function it(e, l = !1) {
1188
+ W.mounted + "";
1189
+ const he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ge = "__vueuse_ssr_handlers__";
1190
+ he[ge] = he[ge] || {};
1191
+ he[ge];
1192
+ function st(e, l = !1) {
1185
1193
  const t = w(), a = () => t.value = Boolean(e());
1186
- return a(), nt(a, l), t;
1194
+ return a(), rt(a, l), t;
1187
1195
  }
1188
- function fa(e, l = {}) {
1196
+ function ya(e, l = {}) {
1189
1197
  const t = l ? l.delayEnter : 0, a = l ? l.delayLeave : 0, o = w(!1);
1190
1198
  let i;
1191
1199
  const r = (n) => {
1192
- const d = n ? t : a;
1193
- i && (clearTimeout(i), i = void 0), d ? i = setTimeout(() => o.value = n, d) : o.value = n;
1200
+ const c = n ? t : a;
1201
+ i && (clearTimeout(i), i = void 0), c ? i = setTimeout(() => o.value = n, c) : o.value = n;
1194
1202
  };
1195
- return window && (N(e, "mouseenter", () => r(!0), { passive: !0 }), N(e, "mouseleave", () => r(!1), { passive: !0 })), o;
1203
+ return window && (M(e, "mouseenter", () => r(!0), { passive: !0 }), M(e, "mouseleave", () => r(!1), { passive: !0 })), o;
1196
1204
  }
1197
- H.mounted + "";
1198
- var qe = Object.getOwnPropertySymbols, ya = Object.prototype.hasOwnProperty, va = Object.prototype.propertyIsEnumerable, ma = (e, l) => {
1205
+ W.mounted + "";
1206
+ var He = Object.getOwnPropertySymbols, va = Object.prototype.hasOwnProperty, pa = Object.prototype.propertyIsEnumerable, ma = (e, l) => {
1199
1207
  var t = {};
1200
1208
  for (var a in e)
1201
- ya.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1202
- if (e != null && qe)
1203
- for (var a of qe(e))
1204
- l.indexOf(a) < 0 && va.call(e, a) && (t[a] = e[a]);
1209
+ va.call(e, a) && l.indexOf(a) < 0 && (t[a] = e[a]);
1210
+ if (e != null && He)
1211
+ for (var a of He(e))
1212
+ l.indexOf(a) < 0 && pa.call(e, a) && (t[a] = e[a]);
1205
1213
  return t;
1206
1214
  };
1207
- function pa(e, l, t = {}) {
1208
- const a = t, { window: o = Z } = a, i = ma(a, ["window"]);
1215
+ function _a(e, l, t = {}) {
1216
+ const a = t, { window: o = X } = a, i = ma(a, ["window"]);
1209
1217
  let r;
1210
- const n = it(() => o && "ResizeObserver" in o), d = () => {
1218
+ const n = st(() => o && "ResizeObserver" in o), c = () => {
1211
1219
  r && (r.disconnect(), r = void 0);
1212
- }, y = E(() => F(e), (v) => {
1213
- d(), n.value && o && v && (r = new ResizeObserver(l), r.observe(v, i));
1214
- }, { immediate: !0, flush: "post" }), c = () => {
1215
- d(), y();
1220
+ }, v = P(() => F(e), (y) => {
1221
+ c(), n.value && o && y && (r = new ResizeObserver(l), r.observe(y, i));
1222
+ }, { immediate: !0, flush: "post" }), d = () => {
1223
+ c(), v();
1216
1224
  };
1217
- return le(c), {
1225
+ return ae(d), {
1218
1226
  isSupported: n,
1219
- stop: c
1227
+ stop: d
1220
1228
  };
1221
1229
  }
1222
1230
  function ha(e, l = { width: 0, height: 0 }, t = {}) {
1223
- const { window: a = Z, box: o = "content-box" } = t, i = V(() => {
1224
- var d, y;
1225
- return (y = (d = F(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : y.includes("svg");
1231
+ const { window: a = X, box: o = "content-box" } = t, i = V(() => {
1232
+ var c, v;
1233
+ return (v = (c = F(e)) == null ? void 0 : c.namespaceURI) == null ? void 0 : v.includes("svg");
1226
1234
  }), r = w(l.width), n = w(l.height);
1227
- return pa(e, ([d]) => {
1228
- const y = o === "border-box" ? d.borderBoxSize : o === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
1235
+ return _a(e, ([c]) => {
1236
+ const v = o === "border-box" ? c.borderBoxSize : o === "content-box" ? c.contentBoxSize : c.devicePixelContentBoxSize;
1229
1237
  if (a && i.value) {
1230
- const c = F(e);
1231
- if (c) {
1232
- const v = a.getComputedStyle(c);
1233
- r.value = parseFloat(v.width), n.value = parseFloat(v.height);
1238
+ const d = F(e);
1239
+ if (d) {
1240
+ const y = a.getComputedStyle(d);
1241
+ r.value = parseFloat(y.width), n.value = parseFloat(y.height);
1234
1242
  }
1235
- } else if (y) {
1236
- const c = Array.isArray(y) ? y : [y];
1237
- r.value = c.reduce((v, { inlineSize: f }) => v + f, 0), n.value = c.reduce((v, { blockSize: f }) => v + f, 0);
1243
+ } else if (v) {
1244
+ const d = Array.isArray(v) ? v : [v];
1245
+ r.value = d.reduce((y, { inlineSize: f }) => y + f, 0), n.value = d.reduce((y, { blockSize: f }) => y + f, 0);
1238
1246
  } else
1239
- r.value = d.contentRect.width, n.value = d.contentRect.height;
1240
- }, t), E(() => F(e), (d) => {
1241
- r.value = d ? l.width : 0, n.value = d ? l.height : 0;
1247
+ r.value = c.contentRect.width, n.value = c.contentRect.height;
1248
+ }, t), P(() => F(e), (c) => {
1249
+ r.value = c ? l.width : 0, n.value = c ? l.height : 0;
1242
1250
  }), {
1243
1251
  width: r,
1244
1252
  height: n
1245
1253
  };
1246
1254
  }
1247
- H.mounted + "";
1248
- function Me(e, { window: l = Z, scrollTarget: t } = {}) {
1255
+ W.mounted + "";
1256
+ function De(e, { window: l = X, scrollTarget: t } = {}) {
1249
1257
  const a = w(!1), o = () => {
1250
1258
  if (!l)
1251
1259
  return;
@@ -1257,19 +1265,19 @@ function Me(e, { window: l = Z, scrollTarget: t } = {}) {
1257
1265
  a.value = n.top <= (l.innerHeight || i.documentElement.clientHeight) && n.left <= (l.innerWidth || i.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
1258
1266
  }
1259
1267
  };
1260
- return E(() => F(e), () => o(), { immediate: !0, flush: "post" }), l && N(t || l, "scroll", o, {
1268
+ return P(() => F(e), () => o(), { immediate: !0, flush: "post" }), l && M(t || l, "scroll", o, {
1261
1269
  capture: !1,
1262
1270
  passive: !0
1263
1271
  }), a;
1264
1272
  }
1265
- H.mounted + "";
1266
- const Ne = 1;
1267
- function ge(e, l = {}) {
1273
+ W.mounted + "";
1274
+ const We = 1;
1275
+ function be(e, l = {}) {
1268
1276
  const {
1269
1277
  throttle: t = 0,
1270
1278
  idle: a = 200,
1271
- onStop: o = M,
1272
- onScroll: i = M,
1279
+ onStop: o = N,
1280
+ onScroll: i = N,
1273
1281
  offset: r = {
1274
1282
  left: 0,
1275
1283
  right: 0,
@@ -1280,163 +1288,163 @@ function ge(e, l = {}) {
1280
1288
  capture: !1,
1281
1289
  passive: !0
1282
1290
  },
1283
- behavior: d = "auto"
1284
- } = l, y = w(0), c = w(0), v = V({
1291
+ behavior: c = "auto"
1292
+ } = l, v = w(0), d = w(0), y = V({
1285
1293
  get() {
1286
- return y.value;
1294
+ return v.value;
1287
1295
  },
1288
- set(P) {
1289
- s(P, void 0);
1296
+ set(z) {
1297
+ u(z, void 0);
1290
1298
  }
1291
1299
  }), f = V({
1292
1300
  get() {
1293
- return c.value;
1301
+ return d.value;
1294
1302
  },
1295
- set(P) {
1296
- s(void 0, P);
1303
+ set(z) {
1304
+ u(void 0, z);
1297
1305
  }
1298
1306
  });
1299
- function s(P, L) {
1300
- var D, q, xe;
1301
- const fe = A(e);
1302
- fe && ((xe = fe instanceof Document ? document.body : fe) == null || xe.scrollTo({
1303
- top: (D = A(L)) != null ? D : f.value,
1304
- left: (q = A(P)) != null ? q : v.value,
1305
- behavior: A(d)
1307
+ function u(z, I) {
1308
+ var U, q, Be;
1309
+ const ye = A(e);
1310
+ ye && ((Be = ye instanceof Document ? document.body : ye) == null || Be.scrollTo({
1311
+ top: (U = A(I)) != null ? U : f.value,
1312
+ left: (q = A(z)) != null ? q : y.value,
1313
+ behavior: A(c)
1306
1314
  }));
1307
1315
  }
1308
- const p = w(!1), b = ve({
1316
+ const p = w(!1), b = pe({
1309
1317
  left: !0,
1310
1318
  right: !1,
1311
1319
  top: !0,
1312
1320
  bottom: !1
1313
- }), I = ve({
1321
+ }), x = pe({
1314
1322
  left: !1,
1315
1323
  right: !1,
1316
1324
  top: !1,
1317
1325
  bottom: !1
1318
- }), z = (P) => {
1319
- p.value && (p.value = !1, I.left = !1, I.right = !1, I.top = !1, I.bottom = !1, o(P));
1320
- }, ce = Hl(z, t + a), oe = (P) => {
1321
- const L = P.target === document ? P.target.documentElement : P.target, D = L.scrollLeft;
1322
- I.left = D < y.value, I.right = D > c.value, b.left = D <= 0 + (r.left || 0), b.right = D + L.clientWidth >= L.scrollWidth - (r.right || 0) - Ne, y.value = D;
1323
- let q = L.scrollTop;
1324
- P.target === document && !q && (q = document.body.scrollTop), I.top = q < c.value, I.bottom = q > c.value, b.top = q <= 0 + (r.top || 0), b.bottom = q + L.clientHeight >= L.scrollHeight - (r.bottom || 0) - Ne, c.value = q, p.value = !0, ce(P), i(P);
1326
+ }), T = (z) => {
1327
+ p.value && (p.value = !1, x.left = !1, x.right = !1, x.top = !1, x.bottom = !1, o(z));
1328
+ }, fe = Dl(T, t + a), ne = (z) => {
1329
+ const I = z.target === document ? z.target.documentElement : z.target, U = I.scrollLeft;
1330
+ x.left = U < v.value, x.right = U > d.value, b.left = U <= 0 + (r.left || 0), b.right = U + I.clientWidth >= I.scrollWidth - (r.right || 0) - We, v.value = U;
1331
+ let q = I.scrollTop;
1332
+ 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);
1325
1333
  };
1326
- return N(e, "scroll", t ? Dl(oe, t, !0, !1) : oe, n), N(e, "scrollend", z, n), {
1327
- x: v,
1334
+ return M(e, "scroll", t ? Wl(ne, t, !0, !1) : ne, n), M(e, "scrollend", T, n), {
1335
+ x: y,
1328
1336
  y: f,
1329
1337
  isScrolling: p,
1330
1338
  arrivedState: b,
1331
- directions: I
1339
+ directions: x
1332
1340
  };
1333
1341
  }
1334
- var _a = Object.defineProperty, ga = Object.defineProperties, ba = Object.getOwnPropertyDescriptors, Re = Object.getOwnPropertySymbols, wa = Object.prototype.hasOwnProperty, Sa = Object.prototype.propertyIsEnumerable, He = (e, l, t) => l in e ? _a(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, De = (e, l) => {
1342
+ var ga = Object.defineProperty, ba = Object.defineProperties, wa = Object.getOwnPropertyDescriptors, Ue = Object.getOwnPropertySymbols, Sa = Object.prototype.hasOwnProperty, $a = Object.prototype.propertyIsEnumerable, Ge = (e, l, t) => l in e ? ga(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Ze = (e, l) => {
1335
1343
  for (var t in l || (l = {}))
1336
- wa.call(l, t) && He(e, t, l[t]);
1337
- if (Re)
1338
- for (var t of Re(l))
1339
- Sa.call(l, t) && He(e, t, l[t]);
1344
+ Sa.call(l, t) && Ge(e, t, l[t]);
1345
+ if (Ue)
1346
+ for (var t of Ue(l))
1347
+ $a.call(l, t) && Ge(e, t, l[t]);
1340
1348
  return e;
1341
- }, $a = (e, l) => ga(e, ba(l));
1342
- function Ue(e, l, t = {}) {
1349
+ }, ja = (e, l) => ba(e, wa(l));
1350
+ function Ke(e, l, t = {}) {
1343
1351
  var a, o;
1344
- const i = (a = t.direction) != null ? a : "bottom", r = ve(ge(e, $a(De({}, t), {
1345
- offset: De({
1352
+ const i = (a = t.direction) != null ? a : "bottom", r = pe(be(e, ja(Ze({}, t), {
1353
+ offset: Ze({
1346
1354
  [i]: (o = t.distance) != null ? o : 0
1347
1355
  }, t.offset)
1348
1356
  })));
1349
- E(() => r.arrivedState[i], async (n) => {
1350
- var d, y;
1357
+ P(() => r.arrivedState[i], async (n) => {
1358
+ var c, v;
1351
1359
  if (n) {
1352
- const c = A(e), v = {
1353
- height: (d = c == null ? void 0 : c.scrollHeight) != null ? d : 0,
1354
- width: (y = c == null ? void 0 : c.scrollWidth) != null ? y : 0
1360
+ const d = A(e), y = {
1361
+ height: (c = d == null ? void 0 : d.scrollHeight) != null ? c : 0,
1362
+ width: (v = d == null ? void 0 : d.scrollWidth) != null ? v : 0
1355
1363
  };
1356
- await l(r), t.preserveScrollPosition && c && Qe(() => {
1357
- c.scrollTo({
1358
- top: c.scrollHeight - v.height,
1359
- left: c.scrollWidth - v.width
1364
+ await l(r), t.preserveScrollPosition && d && lt(() => {
1365
+ d.scrollTo({
1366
+ top: d.scrollHeight - y.height,
1367
+ left: d.scrollWidth - y.width
1360
1368
  });
1361
1369
  });
1362
1370
  }
1363
1371
  });
1364
1372
  }
1365
- H.mounted + "";
1366
- function We(e, l, t = {}) {
1373
+ W.mounted + "";
1374
+ function Qe(e, l, t = {}) {
1367
1375
  const {
1368
1376
  root: a,
1369
1377
  rootMargin: o = "0px",
1370
1378
  threshold: i = 0.1,
1371
- window: r = Z
1372
- } = t, n = it(() => r && "IntersectionObserver" in r);
1373
- let d = M;
1374
- const y = n.value ? E(() => ({
1379
+ window: r = X
1380
+ } = t, n = st(() => r && "IntersectionObserver" in r);
1381
+ let c = N;
1382
+ const v = n.value ? P(() => ({
1375
1383
  el: F(e),
1376
1384
  root: F(a)
1377
- }), ({ el: v, root: f }) => {
1378
- if (d(), !v)
1385
+ }), ({ el: y, root: f }) => {
1386
+ if (c(), !y)
1379
1387
  return;
1380
- const s = new IntersectionObserver(l, {
1388
+ const u = new IntersectionObserver(l, {
1381
1389
  root: f,
1382
1390
  rootMargin: o,
1383
1391
  threshold: i
1384
1392
  });
1385
- s.observe(v), d = () => {
1386
- s.disconnect(), d = M;
1393
+ u.observe(y), c = () => {
1394
+ u.disconnect(), c = N;
1387
1395
  };
1388
- }, { immediate: !0, flush: "post" }) : M, c = () => {
1389
- d(), y();
1396
+ }, { immediate: !0, flush: "post" }) : N, d = () => {
1397
+ c(), v();
1390
1398
  };
1391
- return le(c), {
1399
+ return ae(d), {
1392
1400
  isSupported: n,
1393
- stop: c
1401
+ stop: d
1394
1402
  };
1395
1403
  }
1396
- H.mounted + "";
1397
- var ja = Object.defineProperty, ka = Object.defineProperties, Va = Object.getOwnPropertyDescriptors, Ge = Object.getOwnPropertySymbols, xa = Object.prototype.hasOwnProperty, Ca = Object.prototype.propertyIsEnumerable, Ze = (e, l, t) => l in e ? ja(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, La = (e, l) => {
1404
+ W.mounted + "";
1405
+ var ka = Object.defineProperty, Va = Object.defineProperties, xa = Object.getOwnPropertyDescriptors, Ye = Object.getOwnPropertySymbols, Ca = Object.prototype.hasOwnProperty, La = Object.prototype.propertyIsEnumerable, Xe = (e, l, t) => l in e ? ka(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Ia = (e, l) => {
1398
1406
  for (var t in l || (l = {}))
1399
- xa.call(l, t) && Ze(e, t, l[t]);
1400
- if (Ge)
1401
- for (var t of Ge(l))
1402
- Ca.call(l, t) && Ze(e, t, l[t]);
1407
+ Ca.call(l, t) && Xe(e, t, l[t]);
1408
+ if (Ye)
1409
+ for (var t of Ye(l))
1410
+ La.call(l, t) && Xe(e, t, l[t]);
1403
1411
  return e;
1404
- }, Ia = (e, l) => ka(e, Va(l));
1405
- H.mounted + "";
1406
- function rt(e) {
1412
+ }, Ba = (e, l) => Va(e, xa(l));
1413
+ W.mounted + "";
1414
+ function ut(e) {
1407
1415
  const l = window.getComputedStyle(e);
1408
1416
  if (l.overflowX === "scroll" || l.overflowY === "scroll" || l.overflowX === "auto" && e.clientHeight < e.scrollHeight || l.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1409
1417
  return !0;
1410
1418
  {
1411
1419
  const t = e.parentNode;
1412
- return !t || t.tagName === "BODY" ? !1 : rt(t);
1420
+ return !t || t.tagName === "BODY" ? !1 : ut(t);
1413
1421
  }
1414
1422
  }
1415
1423
  function Oa(e) {
1416
1424
  const l = e || window.event, t = l.target;
1417
- return rt(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1425
+ return ut(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1418
1426
  }
1419
- function Ba(e, l = !1) {
1427
+ function Ta(e, l = !1) {
1420
1428
  const t = w(l);
1421
1429
  let a = null, o;
1422
- E(Ul(e), (n) => {
1430
+ P(Ul(e), (n) => {
1423
1431
  if (n) {
1424
- const d = n;
1425
- o = d.style.overflow, t.value && (d.style.overflow = "hidden");
1432
+ const c = n;
1433
+ o = c.style.overflow, t.value && (c.style.overflow = "hidden");
1426
1434
  }
1427
1435
  }, {
1428
1436
  immediate: !0
1429
1437
  });
1430
1438
  const i = () => {
1431
1439
  const n = A(e);
1432
- !n || t.value || (ie && (a = N(n, "touchmove", (d) => {
1433
- Oa(d);
1440
+ !n || t.value || (re && (a = M(n, "touchmove", (c) => {
1441
+ Oa(c);
1434
1442
  }, { passive: !1 })), n.style.overflow = "hidden", t.value = !0);
1435
1443
  }, r = () => {
1436
1444
  const n = A(e);
1437
- !n || !t.value || (ie && (a == null || a()), n.style.overflow = o, t.value = !1);
1445
+ !n || !t.value || (re && (a == null || a()), n.style.overflow = o, t.value = !1);
1438
1446
  };
1439
- return le(r), V({
1447
+ return ae(r), V({
1440
1448
  get() {
1441
1449
  return t.value;
1442
1450
  },
@@ -1445,25 +1453,25 @@ function Ba(e, l = !1) {
1445
1453
  }
1446
1454
  });
1447
1455
  }
1448
- const Ea = () => {
1456
+ const Pa = () => {
1449
1457
  let e = !1;
1450
1458
  const l = w(!1);
1451
1459
  return (t, a) => {
1452
1460
  if (l.value = a.value, e)
1453
1461
  return;
1454
1462
  e = !0;
1455
- const o = Ba(t, a.value);
1456
- E(l, (i) => o.value = i);
1463
+ const o = Ta(t, a.value);
1464
+ P(l, (i) => o.value = i);
1457
1465
  };
1458
1466
  };
1459
- Ea();
1460
- const st = ["medium", "small", "xsmall"], Ta = {
1467
+ Pa();
1468
+ const dt = ["medium", "small", "xsmall"], Ja = {
1461
1469
  key: 0,
1462
1470
  class: "joy-dropdown-list__header"
1463
- }, Ja = ["aria-label", "aria-labelledby"], Pa = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], za = {
1471
+ }, Ea = ["aria-label", "aria-labelledby"], za = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Aa = {
1464
1472
  key: 1,
1465
1473
  class: "joy-dropdown-list__footer"
1466
- }, Aa = /* @__PURE__ */ j({
1474
+ }, Fa = /* @__PURE__ */ $({
1467
1475
  __name: "VJoyDropdownList",
1468
1476
  props: {
1469
1477
  /**
@@ -1483,7 +1491,7 @@ const st = ["medium", "small", "xsmall"], Ta = {
1483
1491
  type: String,
1484
1492
  default: "medium",
1485
1493
  validator(e) {
1486
- return st.includes(e);
1494
+ return dt.includes(e);
1487
1495
  }
1488
1496
  },
1489
1497
  modelValue: {
@@ -1513,76 +1521,76 @@ const st = ["medium", "small", "xsmall"], Ta = {
1513
1521
  },
1514
1522
  emits: ["update:modelValue", "close:dropdownList", "reset"],
1515
1523
  setup(e, { expose: l, emit: t }) {
1516
- const a = e, o = w(), i = V(() => (s) => !a.modelValue || !s.value && !s.id ? !1 : a.modelValue === s.value || a.modelValue === s.id);
1517
- function r(s) {
1518
- s.disabled || t("update:modelValue", s.value || s.id);
1524
+ const a = e, o = w(), i = V(() => (u) => !a.modelValue || !u.value && !u.id ? !1 : a.modelValue === u.value || a.modelValue === u.id);
1525
+ function r(u) {
1526
+ u.disabled || t("update:modelValue", u.value || u.id);
1519
1527
  }
1520
1528
  function n() {
1521
- var s;
1522
- return Array.from(((s = o.value) == null ? void 0 : s.querySelectorAll("li")) || []);
1529
+ var u;
1530
+ return Array.from(((u = o.value) == null ? void 0 : u.querySelectorAll("li")) || []);
1523
1531
  }
1524
- function d() {
1525
- const s = n().find((p) => p.getAttribute("aria-selected") === "true");
1526
- s && (s.focus(), o.value.scrollTo({
1527
- top: s.offsetTop
1532
+ function c() {
1533
+ const u = n().find((p) => p.getAttribute("aria-selected") === "true");
1534
+ u && (u.focus(), o.value.scrollTo({
1535
+ top: u.offsetTop
1528
1536
  }));
1529
1537
  }
1530
- function y() {
1531
- return n().find((s) => s === document.activeElement);
1538
+ function v() {
1539
+ return n().find((u) => u === document.activeElement);
1532
1540
  }
1533
- function c(s) {
1541
+ function d(u) {
1534
1542
  var p;
1535
1543
  if (!(o.value && !o.value.contains(document.activeElement) || !o.value)) {
1536
- if ((s.key === "Escape" || s.key === "Tab") && t("close:dropdownList"), (s.key === "Enter" || s.key === "enter") && (s.preventDefault(), y() && ((p = o.value) != null && p.contains(y())))) {
1537
- const b = y();
1544
+ 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())))) {
1545
+ const b = v();
1538
1546
  if (!b)
1539
1547
  return;
1540
1548
  if (b.querySelector("a"))
1541
1549
  return b.querySelector("a").click();
1542
1550
  t("update:modelValue", b.dataModel);
1543
1551
  }
1544
- if (y() && s.key === " " && s.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key)) {
1545
- const b = n(), I = y();
1546
- let z = b.indexOf(I);
1552
+ if (v() && u.key === " " && u.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(u.key)) {
1553
+ const b = n(), x = v();
1554
+ let T = b.indexOf(x);
1547
1555
  if (b.length) {
1548
- s.preventDefault(), s.key === "ArrowDown" ? z++ : s.key === "ArrowUp" ? z-- : s.key === "Home" ? z = 0 : s.key === "End" && (z = b.length - 1), z < 0 && (z = b.length - 1), z > b.length - 1 && (z = 0), v(b[z]);
1556
+ 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]);
1549
1557
  return;
1550
1558
  }
1551
1559
  }
1552
1560
  }
1553
1561
  }
1554
- function v(s) {
1555
- s.focus();
1562
+ function y(u) {
1563
+ u.focus();
1556
1564
  }
1557
1565
  function f() {
1558
1566
  t("reset");
1559
1567
  }
1560
- return X(() => {
1561
- window.addEventListener("keydown", c), d();
1562
- }), Ye(() => {
1563
- window.removeEventListener("keydown", c);
1568
+ return Q(() => {
1569
+ window.addEventListener("keydown", d), c();
1570
+ }), Se(() => {
1571
+ window.removeEventListener("keydown", d);
1564
1572
  }), l({
1565
1573
  isSelected: i
1566
- }), (s, p) => (u(), m("div", {
1574
+ }), (u, p) => (s(), m("div", {
1567
1575
  class: "joy-dropdown-list",
1568
- style: ae({ width: `${e.width}px`, "max-width": `${e.width}px` })
1576
+ style: Z({ width: `${e.width}px`, "max-width": `${e.width}px` })
1569
1577
  }, [
1570
- s.$slots["dropdown-list-header"] || e.reset ? (u(), m("header", Ta, [
1571
- e.reset ? (u(), m("button", {
1578
+ u.$slots["dropdown-list-header"] || e.reset ? (s(), m("header", Ja, [
1579
+ e.reset ? (s(), m("button", {
1572
1580
  key: 0,
1573
1581
  type: "button",
1574
1582
  class: "joy-dropdown-list__reset",
1575
1583
  onClick: f
1576
- }, C(e.resetLabel || "Reset"), 1)) : _("", !0),
1577
- g(s.$slots, "dropdown-list-header", {}, void 0, !0)
1578
- ])) : _("", !0),
1579
- h("div", {
1584
+ }, L(e.resetLabel || "Reset"), 1)) : h("", !0),
1585
+ g(u.$slots, "dropdown-list-header", {}, void 0, !0)
1586
+ ])) : h("", !0),
1587
+ _("div", {
1580
1588
  tabindex: "0",
1581
- class: S(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": s.$slots["dropdown-list-items"] }]),
1582
- style: ae({ "max-height": `${e.height}px` })
1589
+ class: S(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": u.$slots["dropdown-list-items"] }]),
1590
+ style: Z({ "max-height": `${e.height}px` })
1583
1591
  }, [
1584
- g(s.$slots, "dropdown-list-items", {}, void 0, !0),
1585
- e.options.length ? (u(), m("ul", {
1592
+ g(u.$slots, "dropdown-list-items", {}, void 0, !0),
1593
+ e.options.length ? (s(), m("ul", {
1586
1594
  key: 0,
1587
1595
  ref_key: "listbox",
1588
1596
  ref: o,
@@ -1591,10 +1599,10 @@ const st = ["medium", "small", "xsmall"], Ta = {
1591
1599
  "aria-label": e.ariaLabel,
1592
1600
  "aria-labelledby": e.ariaLabelledBy
1593
1601
  }, [
1594
- (u(!0), m(W, null, Y(e.options, (b) => (u(), m("li", {
1602
+ (s(!0), m(H, null, G(e.options, (b) => (s(), m("li", {
1595
1603
  id: b.id,
1596
1604
  key: b.label,
1597
- style: ae({ "max-width": `${e.width}px` }),
1605
+ style: Z({ "max-width": `${e.width}px` }),
1598
1606
  class: S([
1599
1607
  "joy-dropdown-list__item",
1600
1608
  `joy-dropdown-list__item--${e.size}`,
@@ -1610,30 +1618,30 @@ const st = ["medium", "small", "xsmall"], Ta = {
1610
1618
  "aria-label": b.label,
1611
1619
  ".dataModel": b.value || b.id,
1612
1620
  role: "option",
1613
- onClick: (I) => r(b)
1621
+ onClick: (x) => r(b)
1614
1622
  }, [
1615
- g(s.$slots, "label", we(Se(b)), () => [
1616
- h("span", null, C(b.label), 1)
1623
+ g(u.$slots, "label", $e(je(b)), () => [
1624
+ _("span", null, L(b.label), 1)
1617
1625
  ], !0)
1618
- ], 14, Pa))), 128))
1619
- ], 8, Ja)) : _("", !0)
1626
+ ], 14, za))), 128))
1627
+ ], 8, Ea)) : h("", !0)
1620
1628
  ], 6),
1621
- s.$slots["dropdown-list-footer"] ? (u(), m("footer", za, [
1622
- g(s.$slots, "dropdown-list-footer", {}, void 0, !0)
1623
- ])) : _("", !0)
1629
+ u.$slots["dropdown-list-footer"] ? (s(), m("footer", Aa, [
1630
+ g(u.$slots, "dropdown-list-footer", {}, void 0, !0)
1631
+ ])) : h("", !0)
1624
1632
  ], 4));
1625
1633
  }
1626
1634
  });
1627
- const ut = /* @__PURE__ */ k(Aa, [["__scopeId", "data-v-f46e79bc"]]);
1628
- function Fa(e) {
1635
+ const ct = /* @__PURE__ */ k(Fa, [["__scopeId", "data-v-f46e79bc"]]);
1636
+ function qa(e) {
1629
1637
  const l = () => e();
1630
- X(() => {
1638
+ Q(() => {
1631
1639
  window.addEventListener("resize", l);
1632
- }), Ye(() => {
1640
+ }), Se(() => {
1633
1641
  window.removeEventListener("resize", l);
1634
1642
  });
1635
1643
  }
1636
- function qa(e) {
1644
+ function Na(e) {
1637
1645
  let l;
1638
1646
  switch (e) {
1639
1647
  case "error":
@@ -1657,8 +1665,7 @@ function Ma(e) {
1657
1665
  if (t.length)
1658
1666
  return t[0].focus();
1659
1667
  }
1660
- let Na = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((l, t) => (t &= 63, t < 36 ? l += t.toString(36) : t < 62 ? l += (t - 26).toString(36).toUpperCase() : t > 62 ? l += "-" : l += "_", l), "");
1661
- const Ra = /* @__PURE__ */ j({
1668
+ const Ra = /* @__PURE__ */ $({
1662
1669
  __name: "VJoyDropdown",
1663
1670
  props: {
1664
1671
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1708,7 +1715,7 @@ const Ra = /* @__PURE__ */ j({
1708
1715
  type: String,
1709
1716
  default: "medium",
1710
1717
  validator(e) {
1711
- return st.includes(e);
1718
+ return dt.includes(e);
1712
1719
  }
1713
1720
  },
1714
1721
  /** Use v-model */
@@ -1752,71 +1759,71 @@ const Ra = /* @__PURE__ */ j({
1752
1759
  },
1753
1760
  emits: ["update:modelValue", "dropdown:open", "dropdown:hide", "dropdown:reset"],
1754
1761
  setup(e, { expose: l, emit: t }) {
1755
- const a = e, o = w(!1), i = w(null), r = w(), n = w(null), d = w(null), y = w(!1), c = "joy-dropdown--" + Na();
1756
- Xe("VJoyDropdownContext", a);
1757
- const v = {
1762
+ const a = e, o = w(!1), i = w(null), r = w(), n = w(null), c = w(null), v = w(!1), d = "joy-dropdown--" + ot();
1763
+ ke("VJoyDropdownContext", a);
1764
+ const y = {
1758
1765
  ignore: [r, ".joy-dropdown__list"]
1759
1766
  };
1760
1767
  let f = null;
1761
- E(
1768
+ P(
1762
1769
  () => o.value,
1763
- (L) => {
1764
- L && Ma(n);
1770
+ (I) => {
1771
+ I && Ma(n);
1765
1772
  },
1766
1773
  { flush: "post" }
1767
1774
  );
1768
- const s = V(() => {
1769
- let L = `${a.dropdownGap}px`;
1770
- return a.direction === "up" && (L = "-" + L), {
1771
- marginTop: L
1775
+ const u = V(() => {
1776
+ let I = `${a.dropdownGap}px`;
1777
+ return a.direction === "up" && (I = "-" + I), {
1778
+ marginTop: I
1772
1779
  };
1773
1780
  });
1774
1781
  function p() {
1775
- f && clearTimeout(f), y.value = !0, f = setTimeout(() => {
1776
- o.value = !1, y.value = !1, t("dropdown:hide");
1782
+ f && clearTimeout(f), v.value = !0, f = setTimeout(() => {
1783
+ o.value = !1, v.value = !1, t("dropdown:hide");
1777
1784
  }, 300);
1778
1785
  }
1779
- function b(L) {
1780
- y.value = !1, f && clearTimeout(f), d.value = L.target, o.value = !0, t("dropdown:open");
1786
+ function b(I) {
1787
+ v.value = !1, f && clearTimeout(f), c.value = I.target, o.value = !0, t("dropdown:open");
1781
1788
  }
1782
- function I() {
1783
- p(), z();
1789
+ function x() {
1790
+ p(), T();
1784
1791
  }
1785
- function z() {
1786
- d.value && d.value.focus();
1792
+ function T() {
1793
+ c.value && c.value.focus();
1787
1794
  }
1788
- function ce(L) {
1789
- t("update:modelValue", L), a.closeOnSelect && (p(), z());
1795
+ function fe(I) {
1796
+ t("update:modelValue", I), a.closeOnSelect && (p(), T());
1790
1797
  }
1791
- function oe() {
1798
+ function ne() {
1792
1799
  t("dropdown:reset");
1793
1800
  }
1794
- function P() {
1795
- !r.value || !r.value.children.length || (r.value.children[0].id = c);
1801
+ function z() {
1802
+ !r.value || !r.value.children.length || (r.value.children[0].id = d);
1796
1803
  }
1797
- return Fa(p), X(() => {
1798
- P();
1804
+ return qa(p), Q(() => {
1805
+ z();
1799
1806
  }), l({
1800
1807
  showDropdownList: o,
1801
- generatedId: c
1802
- }), (L, D) => (u(), x($(na), {
1808
+ generatedId: d
1809
+ }), (I, U) => (s(), C(j(ia), {
1803
1810
  ref_key: "dropdown",
1804
1811
  ref: i,
1805
- options: v,
1812
+ options: y,
1806
1813
  class: "joy-dropdown",
1807
1814
  onTrigger: p
1808
1815
  }, {
1809
- default: B(() => [
1810
- h("div", {
1816
+ default: O(() => [
1817
+ _("div", {
1811
1818
  ref_key: "button",
1812
1819
  ref: r,
1813
1820
  class: "joy-dropdown__button",
1814
1821
  "data-testid": "dropdown-trigger",
1815
1822
  onClick: b
1816
1823
  }, [
1817
- g(L.$slots, "dropdown-button", {}, void 0, !0)
1824
+ g(I.$slots, "dropdown-button", {}, void 0, !0)
1818
1825
  ], 512),
1819
- o.value ? (u(), m("div", {
1826
+ o.value ? (s(), m("div", {
1820
1827
  key: 0,
1821
1828
  ref_key: "list",
1822
1829
  ref: n,
@@ -1825,13 +1832,13 @@ const Ra = /* @__PURE__ */ j({
1825
1832
  `joy-dropdown__list--${e.justify}`,
1826
1833
  `joy-dropdown__list--${e.direction}`,
1827
1834
  {
1828
- "joy-dropdown__list--visible": !y.value,
1829
- "joy-dropdown__list--hiding": y.value
1835
+ "joy-dropdown__list--visible": !v.value,
1836
+ "joy-dropdown__list--hiding": v.value
1830
1837
  }
1831
1838
  ]),
1832
- style: ae(s.value)
1839
+ style: Z(u.value)
1833
1840
  }, [
1834
- U(ut, {
1841
+ R(ct, {
1835
1842
  "model-value": e.modelValue,
1836
1843
  options: e.options,
1837
1844
  size: e.size,
@@ -1839,64 +1846,64 @@ const Ra = /* @__PURE__ */ j({
1839
1846
  height: e.height,
1840
1847
  reset: e.reset,
1841
1848
  "reset-label": e.resetLabel,
1842
- "aria-labelled-by": c,
1843
- "onUpdate:modelValue": ce,
1844
- "onClose:dropdownList": I,
1845
- onReset: oe
1846
- }, et({
1847
- label: B((q) => [
1848
- g(L.$slots, "dropdown-item", we(Se(q)), () => [
1849
- h("span", null, C(q.label), 1)
1849
+ "aria-labelled-by": d,
1850
+ "onUpdate:modelValue": fe,
1851
+ "onClose:dropdownList": x,
1852
+ onReset: ne
1853
+ }, at({
1854
+ label: O((q) => [
1855
+ g(I.$slots, "dropdown-item", $e(je(q)), () => [
1856
+ _("span", null, L(q.label), 1)
1850
1857
  ], !0)
1851
1858
  ]),
1852
1859
  _: 2
1853
1860
  }, [
1854
- L.$slots["dropdown-header"] ? {
1861
+ I.$slots["dropdown-header"] ? {
1855
1862
  name: "dropdown-list-header",
1856
- fn: B(() => [
1857
- g(L.$slots, "dropdown-header", {}, void 0, !0)
1863
+ fn: O(() => [
1864
+ g(I.$slots, "dropdown-header", {}, void 0, !0)
1858
1865
  ]),
1859
1866
  key: "0"
1860
1867
  } : void 0,
1861
- L.$slots["dropdown-items"] ? {
1868
+ I.$slots["dropdown-items"] ? {
1862
1869
  name: "dropdown-list-items",
1863
- fn: B(() => [
1864
- g(L.$slots, "dropdown-items", {}, void 0, !0)
1870
+ fn: O(() => [
1871
+ g(I.$slots, "dropdown-items", {}, void 0, !0)
1865
1872
  ]),
1866
1873
  key: "1"
1867
1874
  } : void 0,
1868
- L.$slots["dropdown-footer"] ? {
1875
+ I.$slots["dropdown-footer"] ? {
1869
1876
  name: "dropdown-list-footer",
1870
- fn: B(() => [
1871
- g(L.$slots, "dropdown-footer", {}, void 0, !0)
1877
+ fn: O(() => [
1878
+ g(I.$slots, "dropdown-footer", {}, void 0, !0)
1872
1879
  ]),
1873
1880
  key: "2"
1874
1881
  } : void 0
1875
1882
  ]), 1032, ["model-value", "options", "size", "width", "height", "reset", "reset-label"])
1876
- ], 6)) : _("", !0)
1883
+ ], 6)) : h("", !0)
1877
1884
  ]),
1878
1885
  _: 3
1879
1886
  }, 512));
1880
1887
  }
1881
1888
  });
1882
- const Ha = /* @__PURE__ */ k(Ra, [["__scopeId", "data-v-887e17ba"]]), Da = ["aria-label"], Ua = { class: "joy-filter-bar__wrapper" }, Wa = /* @__PURE__ */ j({
1889
+ const Ha = /* @__PURE__ */ k(Ra, [["__scopeId", "data-v-887e17ba"]]), Da = ["aria-label"], Wa = { class: "joy-filter-bar__wrapper" }, Ua = /* @__PURE__ */ $({
1883
1890
  __name: "VJoyFilterBar",
1884
1891
  props: {
1885
1892
  ariaLabel: String
1886
1893
  },
1887
1894
  setup(e) {
1888
- return (l, t) => (u(), m("div", {
1895
+ return (l, t) => (s(), m("div", {
1889
1896
  class: "joy-filter-bar",
1890
1897
  role: "group",
1891
1898
  "aria-label": e.ariaLabel || "Filter bar"
1892
1899
  }, [
1893
- h("div", Ua, [
1900
+ _("div", Wa, [
1894
1901
  g(l.$slots, "default", {}, void 0, !0)
1895
1902
  ])
1896
1903
  ], 8, Da));
1897
1904
  }
1898
1905
  });
1899
- const Ga = /* @__PURE__ */ k(Wa, [["__scopeId", "data-v-114f8274"]]), Za = /* @__PURE__ */ j({
1906
+ const Ga = /* @__PURE__ */ k(Ua, [["__scopeId", "data-v-114f8274"]]), Za = /* @__PURE__ */ $({
1900
1907
  __name: "VJoyFilterBarButton",
1901
1908
  props: {
1902
1909
  label: String,
@@ -1911,28 +1918,28 @@ const Ga = /* @__PURE__ */ k(Wa, [["__scopeId", "data-v-114f8274"]]), Za = /* @_
1911
1918
  },
1912
1919
  emits: ["filter"],
1913
1920
  setup(e, { emit: l }) {
1914
- const t = e, a = tt("VJoyDropdownContext", null);
1921
+ const t = e, a = de("VJoyDropdownContext", null);
1915
1922
  function o() {
1916
1923
  l("filter", t.value);
1917
1924
  }
1918
- return (i, r) => (u(), m("button", {
1925
+ return (i, r) => (s(), m("button", {
1919
1926
  type: "button",
1920
1927
  class: S(["joy-filter-bar-button", { "joy-filter-bar-button--active": e.active }]),
1921
1928
  onClick: o
1922
1929
  }, [
1923
- O(C(e.label) + " ", 1),
1930
+ B(L(e.label) + " ", 1),
1924
1931
  g(i.$slots, "default", {}, void 0, !0),
1925
- $(a) ? (u(), x(J, {
1932
+ j(a) ? (s(), C(E, {
1926
1933
  key: 0,
1927
1934
  class: "joy-filter-bar-button__icon",
1928
1935
  name: "chevron-down",
1929
1936
  size: "xxsmall",
1930
1937
  color: "neutral"
1931
- })) : _("", !0)
1938
+ })) : h("", !0)
1932
1939
  ], 2));
1933
1940
  }
1934
1941
  });
1935
- const Ka = /* @__PURE__ */ k(Za, [["__scopeId", "data-v-8f87fed1"]]), Qa = ["aria-hidden"], Ya = /* @__PURE__ */ j({
1942
+ const Ka = /* @__PURE__ */ k(Za, [["__scopeId", "data-v-8f87fed1"]]), Qa = ["aria-hidden"], Ya = /* @__PURE__ */ $({
1936
1943
  __name: "VJoyFormError",
1937
1944
  props: {
1938
1945
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1944,24 +1951,63 @@ const Ka = /* @__PURE__ */ k(Za, [["__scopeId", "data-v-8f87fed1"]]), Qa = ["ari
1944
1951
  noHtmlErrorText: String
1945
1952
  },
1946
1953
  setup(e) {
1947
- return (l, t) => (u(), m("div", {
1954
+ return (l, t) => (s(), m("div", {
1948
1955
  "aria-hidden": e.visible,
1949
1956
  class: S(["joy-form-error", { "joy-has-error": e.visible }]),
1950
1957
  role: "alert"
1951
1958
  }, [
1952
- U(J, {
1959
+ R(E, {
1953
1960
  class: "joy-icon-error",
1954
1961
  name: "warning-triangle"
1955
1962
  }),
1956
- h("div", null, [
1963
+ _("div", null, [
1957
1964
  g(l.$slots, "default", {}, () => [
1958
- O(C(e.noHtmlErrorText), 1)
1965
+ B(L(e.noHtmlErrorText), 1)
1959
1966
  ], !0)
1960
1967
  ])
1961
1968
  ], 10, Qa));
1962
1969
  }
1963
1970
  });
1964
- const dt = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = [...cl], eo = { class: "joy-highlight--text" }, to = { key: 0 }, lo = /* @__PURE__ */ j({
1971
+ const ft = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = /* @__PURE__ */ $({
1972
+ __name: "VJoyFormFieldSkeleton",
1973
+ props: {
1974
+ /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
1975
+ size: {
1976
+ type: String,
1977
+ default: "medium"
1978
+ },
1979
+ width: {
1980
+ type: String
1981
+ },
1982
+ /** The component is aimed to be used with a VJoyWrapper to quickly create skeleton layouts.
1983
+ * Use flex property to spread your items horizontally, by default they will all have the same width.
1984
+ */
1985
+ flex: {
1986
+ type: String,
1987
+ default: "1"
1988
+ }
1989
+ },
1990
+ setup(e, { expose: l }) {
1991
+ const t = e, a = de("VJoyWrapperContext", {}), o = V(() => {
1992
+ const i = a.direction === "column" ? "auto" : null;
1993
+ if (!t.width && t.flex === "1") {
1994
+ const c = ["1", "0"];
1995
+ return i && c.push(i), c.join(" ");
1996
+ }
1997
+ const r = [t.flex || "1", "0"], n = t.width || i;
1998
+ return n && r.push(n), r.join(" ");
1999
+ });
2000
+ return l({ flexStyle: o }), (i, r) => (s(), m("div", {
2001
+ "aria-hidden": "true",
2002
+ class: S(["joy-form-skeleton", `joy-form-skeleton--${e.size}`]),
2003
+ style: Z({
2004
+ "max-width": e.width,
2005
+ flex: o.value
2006
+ })
2007
+ }, null, 6));
2008
+ }
2009
+ });
2010
+ const eo = /* @__PURE__ */ k(Xa, [["__scopeId", "data-v-8a4ecbad"]]), to = [...yl], lo = { class: "joy-highlight--text" }, ao = { key: 0 }, oo = /* @__PURE__ */ $({
1965
2011
  __name: "VJoyHighlight",
1966
2012
  props: {
1967
2013
  accent: {
@@ -1979,15 +2025,15 @@ const dt = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = [...c
1979
2025
  type: String,
1980
2026
  default: "neutral",
1981
2027
  validator(e) {
1982
- return Xa.includes(e);
2028
+ return to.includes(e);
1983
2029
  }
1984
2030
  }
1985
2031
  },
1986
2032
  setup(e, { expose: l }) {
1987
- const t = e, a = V(() => t.icon ? t.icon : qa(t.level));
2033
+ const t = e, a = V(() => t.icon ? t.icon : Na(t.level));
1988
2034
  return l({
1989
2035
  getRelevantIcon: a
1990
- }), (o, i) => (u(), m("div", {
2036
+ }), (o, i) => (s(), m("div", {
1991
2037
  class: S([
1992
2038
  "joy-highlight",
1993
2039
  `joy-highlight_${e.level}`,
@@ -1997,33 +2043,33 @@ const dt = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = [...c
1997
2043
  }
1998
2044
  ])
1999
2045
  }, [
2000
- e.displayIcon ? (u(), x(J, {
2046
+ e.displayIcon ? (s(), C(E, {
2001
2047
  key: 0,
2002
2048
  name: a.value
2003
- }, null, 8, ["name"])) : _("", !0),
2004
- h("div", eo, [
2005
- o.$slots["highlight-title"] ? (u(), m("strong", to, [
2049
+ }, null, 8, ["name"])) : h("", !0),
2050
+ _("div", lo, [
2051
+ o.$slots["highlight-title"] ? (s(), m("strong", ao, [
2006
2052
  g(o.$slots, "highlight-title", {}, void 0, !0)
2007
- ])) : _("", !0),
2053
+ ])) : h("", !0),
2008
2054
  g(o.$slots, "default", {}, void 0, !0)
2009
2055
  ])
2010
2056
  ], 2));
2011
2057
  }
2012
2058
  });
2013
- const ao = /* @__PURE__ */ k(lo, [["__scopeId", "data-v-ba5e6101"]]), oo = ["small", "medium", "large"], no = {
2059
+ const no = /* @__PURE__ */ k(oo, [["__scopeId", "data-v-ba5e6101"]]), io = ["small", "medium", "large"], ro = {
2014
2060
  key: 0,
2015
2061
  class: "joy-label-required"
2016
- }, io = {
2062
+ }, so = {
2017
2063
  key: 1,
2018
2064
  class: "joy-label-optional"
2019
- }, ro = /* @__PURE__ */ j({
2065
+ }, uo = /* @__PURE__ */ $({
2020
2066
  __name: "VJoyLabel",
2021
2067
  props: {
2022
2068
  size: {
2023
2069
  type: String,
2024
2070
  default: "medium",
2025
2071
  validator(e) {
2026
- return oo.includes(e);
2072
+ return io.includes(e);
2027
2073
  }
2028
2074
  },
2029
2075
  tagName: {
@@ -2040,21 +2086,21 @@ const ao = /* @__PURE__ */ k(lo, [["__scopeId", "data-v-ba5e6101"]]), oo = ["sma
2040
2086
  text: String
2041
2087
  },
2042
2088
  setup(e) {
2043
- return (l, t) => (u(), x(re(e.tagName), G({
2089
+ return (l, t) => (s(), C(oe(e.tagName), K({
2044
2090
  class: ["joy-label", `joy-label--${e.size}`]
2045
2091
  }, l.$attrs), {
2046
- default: B(() => [
2092
+ default: O(() => [
2047
2093
  g(l.$slots, "default", {}, () => [
2048
- O(C(e.text), 1)
2094
+ B(L(e.text), 1)
2049
2095
  ], !0),
2050
- e.required ? (u(), m("span", no, "*")) : _("", !0),
2051
- e.optionalLabel ? (u(), m("span", io, "- " + C(e.optionalLabel), 1)) : _("", !0)
2096
+ e.required ? (s(), m("span", ro, "*")) : h("", !0),
2097
+ e.optionalLabel ? (s(), m("span", so, "- " + L(e.optionalLabel), 1)) : h("", !0)
2052
2098
  ]),
2053
2099
  _: 3
2054
2100
  }, 16, ["class"]));
2055
2101
  }
2056
2102
  });
2057
- const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["large", "medium", "small"], uo = ["id", "required", "disabled", "type", "value"], co = ["data-unit"], fo = /* @__PURE__ */ j({
2103
+ const ee = /* @__PURE__ */ k(uo, [["__scopeId", "data-v-1265214a"]]), co = ["large", "medium", "small"], fo = ["id", "required", "disabled", "type", "value"], yo = ["data-unit"], vo = /* @__PURE__ */ $({
2058
2104
  inheritAttrs: !1,
2059
2105
  __name: "VJoyInput",
2060
2106
  props: {
@@ -2112,7 +2158,7 @@ const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["larg
2112
2158
  type: String,
2113
2159
  default: "medium",
2114
2160
  validator(e) {
2115
- return so.includes(e);
2161
+ return co.includes(e);
2116
2162
  }
2117
2163
  },
2118
2164
  type: {
@@ -2124,12 +2170,12 @@ const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["larg
2124
2170
  },
2125
2171
  emits: ["update:modelValue"],
2126
2172
  setup(e, { emit: l }) {
2127
- const t = e, a = w(), o = w(), i = be(), r = ee(), n = w(!1), d = V(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), y = V(() => r.default && r.default()), c = V(() => {
2128
- var s, p;
2129
- return !!((s = o.value) != null && s.closest("joy-wrapper")) || !!((p = o.value) != null && p.closest(".joy-wrapper"));
2130
- }), v = w(t.type);
2131
- gt(() => {
2132
- v.value = t.unit ? "number" : t.type;
2173
+ 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(() => {
2174
+ var u, p;
2175
+ return !!((u = o.value) != null && u.closest("joy-wrapper")) || !!((p = o.value) != null && p.closest(".joy-wrapper"));
2176
+ }), y = w(t.type);
2177
+ wt(() => {
2178
+ y.value = t.unit ? "number" : t.type;
2133
2179
  });
2134
2180
  const f = {
2135
2181
  onFocus: () => {
@@ -2138,60 +2184,60 @@ const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["larg
2138
2184
  onBlur: () => {
2139
2185
  n.value = !1;
2140
2186
  },
2141
- onInput: (s) => {
2142
- let p = s.target.value;
2187
+ onInput: (u) => {
2188
+ let p = u.target.value;
2143
2189
  t.modelModifiers.lazy || l("update:modelValue", p);
2144
2190
  },
2145
- onChange: (s) => {
2146
- let p = s.target.value;
2191
+ onChange: (u) => {
2192
+ let p = u.target.value;
2147
2193
  t.modelModifiers.lazy && l("update:modelValue", p);
2148
2194
  },
2149
2195
  clearValue: () => {
2150
2196
  t.disabled || l("update:modelValue", "");
2151
2197
  }
2152
2198
  };
2153
- return (s, p) => (u(), m("div", {
2199
+ return (u, p) => (s(), m("div", {
2154
2200
  ref_key: "root",
2155
2201
  ref: o,
2156
2202
  class: S([`joy-input--${t.size}`])
2157
2203
  }, [
2158
- h("div", {
2204
+ _("div", {
2159
2205
  class: S([
2160
2206
  "joy-input",
2161
2207
  {
2162
2208
  "joy-input--focusing": n.value,
2163
2209
  "joy-input--disabled": e.disabled,
2164
2210
  "joy-input--invalid": e.invalid,
2165
- "joy-input--valid": !e.invalid && !$(i).disabled
2211
+ "joy-input--valid": !e.invalid && !j(i).disabled
2166
2212
  }
2167
2213
  ])
2168
2214
  }, [
2169
- y.value || e.label ? (u(), x(K, {
2215
+ v.value || e.label ? (s(), C(ee, {
2170
2216
  key: 0,
2171
2217
  for: e.name,
2172
2218
  required: e.required && e.requiredMark,
2173
2219
  "optional-label": e.optionalLabel,
2174
2220
  size: e.labelSize
2175
2221
  }, {
2176
- default: B(() => [
2177
- g(s.$slots, "default", {}, () => [
2178
- O(C(e.label), 1)
2222
+ default: O(() => [
2223
+ g(u.$slots, "default", {}, () => [
2224
+ B(L(e.label), 1)
2179
2225
  ], !0)
2180
2226
  ]),
2181
2227
  _: 3
2182
- }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
2183
- h("div", {
2228
+ }, 8, ["for", "required", "optional-label", "size"])) : h("", !0),
2229
+ _("div", {
2184
2230
  class: S([
2185
2231
  "joy-input--wrapper",
2186
2232
  {
2187
2233
  "joy-input--wrapper-has-icon": !!e.icon,
2188
2234
  "joy-input--wrapper---clearable": e.clearable,
2189
2235
  "joy-input--wrapper-unit": !!e.unit,
2190
- "joy-input--wrapper-margin": !c.value
2236
+ "joy-input--wrapper-margin": !d.value
2191
2237
  }
2192
2238
  ])
2193
2239
  }, [
2194
- h("input", G(s.$attrs, {
2240
+ _("input", K(u.$attrs, {
2195
2241
  id: t.name,
2196
2242
  ref_key: "input",
2197
2243
  ref: a,
@@ -2203,7 +2249,7 @@ const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["larg
2203
2249
  "joy-input--field-invalid": e.invalid
2204
2250
  }
2205
2251
  ],
2206
- type: v.value,
2252
+ type: y.value,
2207
2253
  value: e.modelValue,
2208
2254
  onFocus: p[0] || (p[0] = //@ts-ignore
2209
2255
  (...b) => f.onFocus && f.onFocus(...b)),
@@ -2213,8 +2259,8 @@ const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["larg
2213
2259
  (...b) => f.onInput && f.onInput(...b)),
2214
2260
  onChange: p[3] || (p[3] = //@ts-ignore
2215
2261
  (...b) => f.onChange && f.onChange(...b))
2216
- }), null, 16, uo),
2217
- d.value ? (u(), x(lt, {
2262
+ }), null, 16, fo),
2263
+ c.value ? (s(), C(xe, {
2218
2264
  key: 0,
2219
2265
  class: "joy-input--clear",
2220
2266
  circle: "",
@@ -2222,23 +2268,23 @@ const K = /* @__PURE__ */ k(ro, [["__scopeId", "data-v-1265214a"]]), so = ["larg
2222
2268
  size: "xxsmall",
2223
2269
  icon: "cross",
2224
2270
  onClick: f.clearValue
2225
- }, null, 8, ["onClick"])) : _("", !0),
2226
- e.icon ? (u(), x(J, {
2271
+ }, null, 8, ["onClick"])) : h("", !0),
2272
+ e.icon ? (s(), C(E, {
2227
2273
  key: 1,
2228
2274
  class: "joy-input--decorative-icon",
2229
2275
  name: e.icon
2230
- }, null, 8, ["name"])) : _("", !0),
2231
- e.unit ? (u(), m("div", {
2276
+ }, null, 8, ["name"])) : h("", !0),
2277
+ e.unit ? (s(), m("div", {
2232
2278
  key: 2,
2233
2279
  "data-unit": e.unit,
2234
2280
  class: "joy-input--unit"
2235
- }, null, 8, co)) : _("", !0)
2281
+ }, null, 8, yo)) : h("", !0)
2236
2282
  ], 2)
2237
2283
  ], 2)
2238
2284
  ], 2));
2239
2285
  }
2240
2286
  });
2241
- const yo = /* @__PURE__ */ k(fo, [["__scopeId", "data-v-534f3025"]]), vo = ["teal", "white"], mo = ["href"], po = /* @__PURE__ */ j({
2287
+ const po = /* @__PURE__ */ k(vo, [["__scopeId", "data-v-534f3025"]]), mo = ["teal", "white"], _o = ["href"], ho = /* @__PURE__ */ $({
2242
2288
  __name: "VJoyLink",
2243
2289
  props: {
2244
2290
  href: {
@@ -2249,29 +2295,29 @@ const yo = /* @__PURE__ */ k(fo, [["__scopeId", "data-v-534f3025"]]), vo = ["tea
2249
2295
  type: String,
2250
2296
  default: "teal",
2251
2297
  validator(e) {
2252
- return vo.includes(e);
2298
+ return mo.includes(e);
2253
2299
  }
2254
2300
  },
2255
2301
  icon: String,
2256
2302
  text: String
2257
2303
  },
2258
2304
  setup(e) {
2259
- return (l, t) => (u(), m("a", G({ href: e.href }, l.$attrs, {
2305
+ return (l, t) => (s(), m("a", K({ href: e.href }, l.$attrs, {
2260
2306
  class: ["joy-link", `joy-link_${e.color}`]
2261
2307
  }), [
2262
- e.icon ? (u(), x(J, {
2308
+ e.icon ? (s(), C(E, {
2263
2309
  key: 0,
2264
2310
  name: e.icon
2265
- }, null, 8, ["name"])) : _("", !0),
2311
+ }, null, 8, ["name"])) : h("", !0),
2266
2312
  g(l.$slots, "default", {}, () => [
2267
- O(C(e.text), 1)
2313
+ B(L(e.text), 1)
2268
2314
  ], !0)
2269
- ], 16, mo));
2315
+ ], 16, _o));
2270
2316
  }
2271
2317
  });
2272
- const ho = /* @__PURE__ */ k(po, [["__scopeId", "data-v-76f0342e"]]), _o = ["id"], go = {
2318
+ const go = /* @__PURE__ */ k(ho, [["__scopeId", "data-v-76f0342e"]]), bo = ["id"], wo = {
2273
2319
  class: /* @__PURE__ */ S(["joy-multi-checkbox"])
2274
- }, bo = /* @__PURE__ */ j({
2320
+ }, So = /* @__PURE__ */ $({
2275
2321
  __name: "VJoyMultiCheckbox",
2276
2322
  props: {
2277
2323
  options: {
@@ -2314,55 +2360,181 @@ const ho = /* @__PURE__ */ k(po, [["__scopeId", "data-v-76f0342e"]]), _o = ["id"
2314
2360
  let n = [...t.value || []];
2315
2361
  r ? n.push(i) : n.splice(n.indexOf(i), 1), l("update:value", n);
2316
2362
  }
2317
- return (i, r) => (u(), m("fieldset", {
2363
+ return (i, r) => (s(), m("fieldset", {
2318
2364
  id: e.id,
2319
2365
  class: "joy-multi-checkbox__wrapper"
2320
2366
  }, [
2321
- e.label ? (u(), x($(K), {
2367
+ e.label ? (s(), C(j(ee), {
2322
2368
  key: 0,
2323
2369
  "tag-name": "legend",
2324
2370
  required: e.required && e.requiredMark,
2325
2371
  "optional-label": e.optionalLabel,
2326
2372
  size: e.labelSize
2327
2373
  }, {
2328
- default: B(() => [
2329
- O(C(e.label), 1)
2374
+ default: O(() => [
2375
+ B(L(e.label), 1)
2330
2376
  ]),
2331
2377
  _: 1
2332
- }, 8, ["required", "optional-label", "size"])) : _("", !0),
2333
- h("div", go, [
2334
- (u(!0), m(W, null, Y(e.options, (n) => (u(), x($(je), {
2378
+ }, 8, ["required", "optional-label", "size"])) : h("", !0),
2379
+ _("div", wo, [
2380
+ (s(!0), m(H, null, G(e.options, (n) => (s(), C(j(Ce), {
2335
2381
  id: n.id,
2336
2382
  key: n.id,
2337
2383
  name: n.name,
2338
2384
  value: n.value,
2339
2385
  checked: a(n),
2340
- "onUpdate:checked": (d) => o(n.value, d)
2386
+ "onUpdate:checked": (c) => o(n.value, c)
2341
2387
  }, {
2342
- default: B(() => [
2343
- g(i.$slots, "checkbox", we(Se(n)), () => [
2344
- O(C(n.label), 1)
2388
+ default: O(() => [
2389
+ g(i.$slots, "checkbox", $e(je(n)), () => [
2390
+ B(L(n.label), 1)
2345
2391
  ], !0)
2346
2392
  ]),
2347
2393
  _: 2
2348
2394
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
2349
2395
  ])
2350
- ], 8, _o));
2396
+ ], 8, bo));
2397
+ }
2398
+ });
2399
+ const $o = /* @__PURE__ */ k(So, [["__scopeId", "data-v-47574ced"]]), et = /* @__PURE__ */ $({
2400
+ __name: "PaginationIcon",
2401
+ props: {
2402
+ label: {
2403
+ type: String,
2404
+ required: !1
2405
+ },
2406
+ next: {
2407
+ type: Boolean,
2408
+ default: !1
2409
+ },
2410
+ disabled: {
2411
+ type: Boolean,
2412
+ default: !1
2413
+ }
2414
+ },
2415
+ emits: ["click"],
2416
+ setup(e) {
2417
+ return (l, t) => (s(), C(xe, {
2418
+ class: "joy-pagination__icon",
2419
+ "aria-label": e.label,
2420
+ title: e.label,
2421
+ color: "grey",
2422
+ icon: e.next ? "chevron-right" : "chevron-left",
2423
+ variant: "ghost",
2424
+ circle: "",
2425
+ size: "xsmall",
2426
+ disabled: e.disabled,
2427
+ onClick: t[0] || (t[0] = (a) => l.$emit("click", a))
2428
+ }, null, 8, ["aria-label", "title", "icon", "disabled"]));
2429
+ }
2430
+ }), jo = ["aria-label", "data-current"], ko = { class: "joy-pagination__previous" }, Vo = ["aria-current", "onClick"], xo = { class: "joy-pagination__next" }, Co = 6, Lo = /* @__PURE__ */ $({
2431
+ __name: "VJoyPagination",
2432
+ props: {
2433
+ /** Current page number */
2434
+ currentPage: {
2435
+ type: Number,
2436
+ default: 1
2437
+ },
2438
+ /** Total number of pages in order to construct the pagination */
2439
+ totalPages: {
2440
+ type: Number,
2441
+ default: 1
2442
+ },
2443
+ /** Can be used as aria-label attribute for the full component */
2444
+ labelPagination: {
2445
+ type: String,
2446
+ required: !1
2447
+ },
2448
+ /** Can be used as title and aria-label attributes for the previous CTA */
2449
+ labelPrev: {
2450
+ type: String,
2451
+ required: !1
2452
+ },
2453
+ /** Can be used as title and aria-label attributes for the next CTA */
2454
+ labelNext: {
2455
+ type: String,
2456
+ required: !1
2457
+ }
2458
+ },
2459
+ emits: ["update:current-page"],
2460
+ setup(e, { emit: l }) {
2461
+ const t = e, a = V(() => {
2462
+ const v = i.value.length;
2463
+ return i.value[v - 1] !== i.value[v - 2] + 1;
2464
+ }), o = V(() => i.value[0] !== i.value[1] - 1), i = V(() => t.totalPages < Co ? n(2, t.totalPages - 1) : c(t.currentPage));
2465
+ function r(v) {
2466
+ l("update:current-page", v);
2467
+ }
2468
+ function n(v, d) {
2469
+ const y = [];
2470
+ y.push(1);
2471
+ for (let f = v; f <= d; f++)
2472
+ y.push(f);
2473
+ return y.push(t.totalPages), y;
2474
+ }
2475
+ function c(v) {
2476
+ let d = v - 2, y = v + 1;
2477
+ return d <= 1 && (d = 2, y = 5), y >= t.totalPages && (y = t.totalPages - 1, d = y - 3), n(d, y);
2478
+ }
2479
+ return (v, d) => (s(), m("nav", {
2480
+ role: "navigation",
2481
+ "aria-label": e.labelPagination,
2482
+ class: "joy-pagination",
2483
+ "data-current": e.currentPage
2484
+ }, [
2485
+ _("ul", null, [
2486
+ _("li", ko, [
2487
+ g(v.$slots, "pagination-prev", {}, () => [
2488
+ R(et, {
2489
+ label: e.labelPrev,
2490
+ disabled: e.currentPage === 1,
2491
+ onClick: d[0] || (d[0] = (y) => r(e.currentPage - 1))
2492
+ }, null, 8, ["label", "disabled"])
2493
+ ], !0)
2494
+ ]),
2495
+ _("li", null, [
2496
+ _("ul", null, [
2497
+ (s(!0), m(H, null, G(i.value, (y) => (s(), m("li", { key: y }, [
2498
+ _("button", {
2499
+ type: "button",
2500
+ "aria-current": y === e.currentPage ? "true" : "false",
2501
+ class: S({
2502
+ current: y === e.currentPage,
2503
+ "joy-pagination__separator joy-pagination__separator-after": y === 1 && o.value,
2504
+ "joy-pagination__separator joy-pagination__separator-before": y === e.totalPages && a.value
2505
+ }),
2506
+ onClick: (f) => r(y)
2507
+ }, L(y), 11, Vo)
2508
+ ]))), 128))
2509
+ ])
2510
+ ]),
2511
+ _("li", xo, [
2512
+ g(v.$slots, "pagination-next", {}, () => [
2513
+ R(et, {
2514
+ next: "",
2515
+ label: e.labelNext,
2516
+ disabled: e.currentPage === e.totalPages,
2517
+ onClick: d[1] || (d[1] = (y) => r(e.currentPage + 1))
2518
+ }, null, 8, ["label", "disabled"])
2519
+ ], !0)
2520
+ ])
2521
+ ])
2522
+ ], 8, jo));
2351
2523
  }
2352
2524
  });
2353
- const wo = /* @__PURE__ */ k(bo, [["__scopeId", "data-v-47574ced"]]), So = ["small", "medium", "large"], $o = ["small", "large"], jo = {
2525
+ const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-e5b57944"]]), Bo = ["small", "medium", "large"], Oo = ["small", "large"], To = {
2354
2526
  key: 0,
2355
2527
  class: /* @__PURE__ */ S(["joy-panel__header"])
2356
- }, ko = {
2528
+ }, Po = {
2357
2529
  key: 1,
2358
2530
  class: "joy-panel__header-action"
2359
- }, Vo = {
2531
+ }, Jo = {
2360
2532
  key: 2,
2361
2533
  class: "joy-panel__header-subtitle"
2362
- }, xo = { class: "joy-panel__body" }, Co = {
2534
+ }, Eo = { class: "joy-panel__body" }, zo = {
2363
2535
  key: 1,
2364
2536
  class: "joy-panel__footer"
2365
- }, Lo = /* @__PURE__ */ j({
2537
+ }, Ao = /* @__PURE__ */ $({
2366
2538
  __name: "VJoyPanel",
2367
2539
  props: {
2368
2540
  flex: {
@@ -2376,14 +2548,14 @@ const wo = /* @__PURE__ */ k(bo, [["__scopeId", "data-v-47574ced"]]), So = ["sma
2376
2548
  type: String,
2377
2549
  default: "medium",
2378
2550
  validator(e) {
2379
- return So.includes(e);
2551
+ return Bo.includes(e);
2380
2552
  }
2381
2553
  },
2382
2554
  titleSize: {
2383
2555
  type: String,
2384
2556
  default: "large",
2385
2557
  validator(e) {
2386
- return $o.includes(e);
2558
+ return Oo.includes(e);
2387
2559
  }
2388
2560
  },
2389
2561
  loading: {
@@ -2396,11 +2568,11 @@ const wo = /* @__PURE__ */ k(bo, [["__scopeId", "data-v-47574ced"]]), So = ["sma
2396
2568
  }
2397
2569
  },
2398
2570
  setup(e) {
2399
- const l = tt("VJoyWrapperContext", {}), t = V(() => Object.keys(l).length > 0), a = ee(), o = w(), i = V(() => a["panel-title"] || a["panel-subtitle"] || a["panel-title-action"]);
2400
- return (r, n) => (u(), m("section", {
2571
+ 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"]);
2572
+ return (r, n) => (s(), m("section", {
2401
2573
  ref_key: "panel",
2402
2574
  ref: o,
2403
- style: ae({ flex: e.flex }),
2575
+ style: Z({ flex: e.flex }),
2404
2576
  class: S([
2405
2577
  "joy-panel",
2406
2578
  `joy-panel--${e.padding}`,
@@ -2410,60 +2582,102 @@ const wo = /* @__PURE__ */ k(bo, [["__scopeId", "data-v-47574ced"]]), So = ["sma
2410
2582
  }
2411
2583
  ])
2412
2584
  }, [
2413
- i.value ? (u(), m("header", jo, [
2414
- $(a)["panel-title"] ? (u(), m("div", {
2585
+ i.value ? (s(), m("header", To, [
2586
+ j(a)["panel-title"] ? (s(), m("div", {
2415
2587
  key: 0,
2416
2588
  class: S(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
2417
2589
  }, [
2418
2590
  g(r.$slots, "panel-title", {}, void 0, !0)
2419
- ], 2)) : _("", !0),
2420
- $(a)["panel-title-action"] ? (u(), m("div", ko, [
2591
+ ], 2)) : h("", !0),
2592
+ j(a)["panel-title-action"] ? (s(), m("div", Po, [
2421
2593
  g(r.$slots, "panel-title-action", {}, void 0, !0)
2422
- ])) : _("", !0),
2423
- $(a)["panel-subtitle"] ? (u(), m("div", Vo, [
2594
+ ])) : h("", !0),
2595
+ j(a)["panel-subtitle"] ? (s(), m("div", Jo, [
2424
2596
  g(r.$slots, "panel-subtitle", {}, void 0, !0)
2425
- ])) : _("", !0)
2426
- ])) : _("", !0),
2427
- h("div", xo, [
2597
+ ])) : h("", !0)
2598
+ ])) : h("", !0),
2599
+ _("div", Eo, [
2428
2600
  g(r.$slots, "panel-body", {}, void 0, !0)
2429
2601
  ]),
2430
- $(a)["panel-action"] ? (u(), m("footer", Co, [
2602
+ j(a)["panel-action"] ? (s(), m("footer", zo, [
2431
2603
  g(r.$slots, "panel-action", {}, void 0, !0)
2432
- ])) : _("", !0),
2433
- e.loading ? (u(), x($(Ve), {
2604
+ ])) : h("", !0),
2605
+ e.loading ? (s(), C(j(Ie), {
2434
2606
  key: 2,
2435
2607
  overlay: "",
2436
2608
  color: e.loadingColor
2437
2609
  }, {
2438
- content: B(() => [
2610
+ content: O(() => [
2439
2611
  g(r.$slots, "panel-loader-content", {}, void 0, !0)
2440
2612
  ]),
2441
2613
  _: 3
2442
- }, 8, ["color"])) : _("", !0)
2614
+ }, 8, ["color"])) : h("", !0)
2443
2615
  ], 6));
2444
2616
  }
2445
2617
  });
2446
- const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-2e3a2baa"]]), Oo = { class: "joy-panel-section" }, Bo = {
2618
+ const Fo = /* @__PURE__ */ k(Ao, [["__scopeId", "data-v-2e3a2baa"]]), qo = { class: "joy-panel-section" }, No = {
2447
2619
  key: 0,
2448
2620
  class: "joy-panel-section__title"
2449
- }, Eo = {
2621
+ }, Mo = {
2450
2622
  key: 1,
2451
2623
  class: "joy-panel-section__content"
2452
- }, To = /* @__PURE__ */ j({
2624
+ }, Ro = /* @__PURE__ */ $({
2453
2625
  __name: "VJoyPanelSection",
2454
2626
  setup(e) {
2455
- const l = ee();
2456
- return (t, a) => (u(), m("div", Oo, [
2457
- $(l)["panel-section-title"] ? (u(), m("div", Bo, [
2627
+ const l = Y();
2628
+ return (t, a) => (s(), m("div", qo, [
2629
+ j(l)["panel-section-title"] ? (s(), m("div", No, [
2458
2630
  g(t.$slots, "panel-section-title", {}, void 0, !0)
2459
- ])) : _("", !0),
2460
- $(l)["panel-section-content"] ? (u(), m("div", Eo, [
2631
+ ])) : h("", !0),
2632
+ j(l)["panel-section-content"] ? (s(), m("div", Mo, [
2461
2633
  g(t.$slots, "panel-section-content", {}, void 0, !0)
2462
- ])) : _("", !0)
2634
+ ])) : h("", !0)
2635
+ ]));
2636
+ }
2637
+ });
2638
+ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-d88510ab"]]), Do = { class: "joy-progress-bar-wrapper" }, Wo = /* @__PURE__ */ $({
2639
+ __name: "VJoyProgressBar",
2640
+ props: {
2641
+ color: {
2642
+ type: String,
2643
+ default: "secondary"
2644
+ },
2645
+ /**
2646
+ * Total number of steps.
2647
+ */
2648
+ steps: {
2649
+ type: Number
2650
+ },
2651
+ /**
2652
+ * Current step number.
2653
+ */
2654
+ currentStep: {
2655
+ type: Number
2656
+ },
2657
+ /**
2658
+ * Progress bar percentage, percentage usage will override steps & currentStep definition.
2659
+ */
2660
+ percentage: {
2661
+ type: Number
2662
+ }
2663
+ },
2664
+ setup(e, { expose: l }) {
2665
+ const t = e, a = w(0), o = V(() => i());
2666
+ function i() {
2667
+ 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 + "%";
2668
+ }
2669
+ return l({
2670
+ computeInnerWidth: o,
2671
+ computedPercentage: a
2672
+ }), (r, n) => (s(), m("div", Do, [
2673
+ _("div", {
2674
+ class: S(["joy-progress-bar-inner", `joy-progress-bar-inner_${e.color}`]),
2675
+ style: Z({ width: o.value })
2676
+ }, null, 6)
2463
2677
  ]));
2464
2678
  }
2465
2679
  });
2466
- const Jo = /* @__PURE__ */ k(To, [["__scopeId", "data-v-d88510ab"]]), Po = ["id", "value", "checked", "disabled", "required", "name"], zo = { class: "joy-radio-label" }, Ao = { class: "joy-radio-content__wrapper" }, Fo = { class: "joy-radio-content" }, qo = /* @__PURE__ */ j({
2680
+ const Uo = /* @__PURE__ */ k(Wo, [["__scopeId", "data-v-a28eae43"]]), Go = ["id", "value", "checked", "disabled", "required", "name"], Zo = { class: "joy-radio-label" }, Ko = { class: "joy-radio-content__wrapper" }, Qo = { class: "joy-radio-content" }, Yo = /* @__PURE__ */ $({
2467
2681
  __name: "VJoyRadio",
2468
2682
  props: {
2469
2683
  disabled: {
@@ -2499,38 +2713,38 @@ const Jo = /* @__PURE__ */ k(To, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
2499
2713
  },
2500
2714
  emits: ["update:modelValue"],
2501
2715
  setup(e, { expose: l, emit: t }) {
2502
- const a = e, o = w(!1), i = w(!1), r = w(null), n = w(null), d = ee(), y = V(() => !a.modelValue || !a.value ? !1 : a.modelValue === a.value);
2503
- function c() {
2504
- o.value = !!d["expandable-content"] && y.value;
2716
+ 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);
2717
+ function d() {
2718
+ o.value = !!c["expandable-content"] && v.value;
2505
2719
  }
2506
- function v() {
2507
- t("update:modelValue", a.value), c();
2720
+ function y() {
2721
+ t("update:modelValue", a.value), d();
2508
2722
  }
2509
- X(() => {
2510
- a.theme === "outline" && c();
2723
+ Q(() => {
2724
+ a.theme === "outline" && d();
2511
2725
  });
2512
2726
  function f() {
2513
2727
  i.value = !0;
2514
2728
  }
2515
- function s() {
2729
+ function u() {
2516
2730
  i.value = !1;
2517
2731
  }
2518
- return E(
2732
+ return P(
2519
2733
  () => a.modelValue,
2520
2734
  () => {
2521
- c();
2735
+ d();
2522
2736
  }
2523
2737
  ), l({
2524
- checked: y,
2738
+ checked: v,
2525
2739
  isExpanded: o
2526
- }), (p, b) => (u(), m("label", {
2740
+ }), (p, b) => (s(), m("label", {
2527
2741
  ref_key: "root",
2528
2742
  ref: r,
2529
2743
  class: S([
2530
2744
  "joy-radio",
2531
2745
  `joy-radio--${e.theme}`,
2532
2746
  {
2533
- "joy-radio--checked": y.value,
2747
+ "joy-radio--checked": v.value,
2534
2748
  "joy-radio--disabled": e.disabled,
2535
2749
  "joy-radio--invalid": e.invalid,
2536
2750
  "joy-radio--outline-focus": i.value && e.theme === "outline",
@@ -2538,26 +2752,26 @@ const Jo = /* @__PURE__ */ k(To, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
2538
2752
  }
2539
2753
  ])
2540
2754
  }, [
2541
- h("input", {
2755
+ _("input", {
2542
2756
  id: e.id,
2543
2757
  type: "radio",
2544
2758
  value: e.value,
2545
- checked: y.value,
2759
+ checked: v.value,
2546
2760
  disabled: e.disabled,
2547
2761
  required: e.required,
2548
2762
  name: e.name,
2549
- onChange: v,
2763
+ onChange: y,
2550
2764
  onFocus: f,
2551
- onBlur: s
2552
- }, null, 40, Po),
2553
- h("span", zo, [
2765
+ onBlur: u
2766
+ }, null, 40, Go),
2767
+ _("span", Zo, [
2554
2768
  g(p.$slots, "default", {}, void 0, !0)
2555
2769
  ]),
2556
- h("div", Ao, [
2557
- h("div", Fo, [
2770
+ _("div", Ko, [
2771
+ _("div", Qo, [
2558
2772
  g(p.$slots, "radio-content", {}, void 0, !0)
2559
2773
  ]),
2560
- h("div", {
2774
+ _("div", {
2561
2775
  ref_key: "expandableElement",
2562
2776
  ref: n,
2563
2777
  class: S(["joy-radio-expandable", { "joy-radio-expandable--expanded": o.value }])
@@ -2568,7 +2782,7 @@ const Jo = /* @__PURE__ */ k(To, [["__scopeId", "data-v-d88510ab"]]), Po = ["id"
2568
2782
  ], 2));
2569
2783
  }
2570
2784
  });
2571
- const Mo = /* @__PURE__ */ k(qo, [["__scopeId", "data-v-24cea99b"]]), No = ["form", "name"], Ro = /* @__PURE__ */ j({
2785
+ const Xo = /* @__PURE__ */ k(Yo, [["__scopeId", "data-v-24cea99b"]]), en = ["form", "name"], tn = /* @__PURE__ */ $({
2572
2786
  __name: "VJoyRadioGroup",
2573
2787
  props: {
2574
2788
  /**
@@ -2589,7 +2803,7 @@ const Mo = /* @__PURE__ */ k(qo, [["__scopeId", "data-v-24cea99b"]]), No = ["for
2589
2803
  }
2590
2804
  },
2591
2805
  setup(e) {
2592
- return (l, t) => (u(), m("fieldset", {
2806
+ return (l, t) => (s(), m("fieldset", {
2593
2807
  ref: "root",
2594
2808
  class: "joy-radio-group-fieldset",
2595
2809
  role: "radiogroup",
@@ -2597,40 +2811,40 @@ const Mo = /* @__PURE__ */ k(qo, [["__scopeId", "data-v-24cea99b"]]), No = ["for
2597
2811
  name: e.name
2598
2812
  }, [
2599
2813
  g(l.$slots, "radio-group-legend", {}, void 0, !0),
2600
- h("div", {
2814
+ _("div", {
2601
2815
  class: S(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2602
2816
  }, [
2603
2817
  g(l.$slots, "default", {}, void 0, !0)
2604
2818
  ], 2)
2605
- ], 8, No));
2819
+ ], 8, en));
2606
2820
  }
2607
2821
  });
2608
- const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-a77e7f95"]]), de = (e) => (se("data-v-adbf7701"), e = e(), ue(), e), Do = ["ariaLabel"], Uo = { class: "joy-rating-stars" }, Wo = ["width", "height"], Go = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2822
+ 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", {
2609
2823
  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",
2610
2824
  fill: "#FFC200"
2611
- }, null, -1)), Zo = [
2612
- Go
2613
- ], Ko = ["width", "height"], Qo = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2825
+ }, null, -1)), sn = [
2826
+ rn
2827
+ ], un = ["width", "height"], dn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2614
2828
  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",
2615
2829
  stroke: "#FFC200",
2616
2830
  "stroke-width": "1.5",
2617
2831
  "stroke-linecap": "round",
2618
2832
  "stroke-linejoin": "round"
2619
- }, null, -1)), Yo = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2833
+ }, null, -1)), cn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2620
2834
  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",
2621
2835
  fill: "#FFC200"
2622
- }, null, -1)), Xo = [
2623
- Qo,
2624
- Yo
2625
- ], en = ["width", "height"], tn = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2836
+ }, null, -1)), fn = [
2837
+ dn,
2838
+ cn
2839
+ ], yn = ["width", "height"], vn = /* @__PURE__ */ ce(() => /* @__PURE__ */ _("path", {
2626
2840
  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",
2627
2841
  stroke: "#E0DED9",
2628
2842
  "stroke-width": "1.5",
2629
2843
  "stroke-linecap": "round",
2630
2844
  "stroke-linejoin": "round"
2631
- }, null, -1)), ln = [
2632
- tn
2633
- ], an = { class: "joy-rating-stars__content" }, on = { key: 0 }, nn = /* @__PURE__ */ j({
2845
+ }, null, -1)), pn = [
2846
+ vn
2847
+ ], mn = { class: "joy-rating-stars__content" }, _n = { key: 0 }, hn = /* @__PURE__ */ $({
2634
2848
  __name: "VJoyRatingStars",
2635
2849
  props: {
2636
2850
  ratingValue: {
@@ -2647,7 +2861,7 @@ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-a77e7f95"]]), de = (e) =
2647
2861
  }
2648
2862
  },
2649
2863
  setup(e, { expose: l }) {
2650
- const t = e, a = be(), o = V(() => {
2864
+ const t = e, a = we(), o = V(() => {
2651
2865
  switch (t.size) {
2652
2866
  case "large":
2653
2867
  return 17;
@@ -2659,21 +2873,21 @@ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-a77e7f95"]]), de = (e) =
2659
2873
  return 14;
2660
2874
  }
2661
2875
  }), i = V(() => {
2662
- let r = [], n = 0.24, d = 0.75;
2663
- for (let y = 0; y < 5; y++)
2664
- t.ratingValue > n ? r.push(t.ratingValue < d ? "half" : "full") : r.push("empty"), n += 1, d += 1;
2876
+ let r = [], n = 0.24, c = 0.75;
2877
+ for (let v = 0; v < 5; v++)
2878
+ t.ratingValue > n ? r.push(t.ratingValue < c ? "half" : "full") : r.push("empty"), n += 1, c += 1;
2665
2879
  return r;
2666
2880
  });
2667
2881
  return l({
2668
2882
  setStars: i
2669
- }), (r, n) => (u(), m("div", {
2883
+ }), (r, n) => (s(), m("div", {
2670
2884
  role: "img",
2671
2885
  class: "joy-rating-stars__wrapper",
2672
- ariaLabel: $(a).ariaLabel || `Rating: ${e.ratingValue} out of 5`
2886
+ ariaLabel: j(a).ariaLabel || `Rating: ${e.ratingValue} out of 5`
2673
2887
  }, [
2674
- h("ul", Uo, [
2675
- (u(!0), m(W, null, Y(i.value, (d, y) => (u(), m("li", { key: y }, [
2676
- d === "full" ? (u(), m("svg", {
2888
+ _("ul", on, [
2889
+ (s(!0), m(H, null, G(i.value, (c, v) => (s(), m("li", { key: v }, [
2890
+ c === "full" ? (s(), m("svg", {
2677
2891
  key: 0,
2678
2892
  "aria-hidden": "true",
2679
2893
  class: "star-full",
@@ -2682,7 +2896,7 @@ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-a77e7f95"]]), de = (e) =
2682
2896
  viewBox: "0 0 17 17",
2683
2897
  fill: "none",
2684
2898
  xmlns: "http://www.w3.org/2000/svg"
2685
- }, Zo, 8, Wo)) : d === "half" ? (u(), m("svg", {
2899
+ }, sn, 8, nn)) : c === "half" ? (s(), m("svg", {
2686
2900
  key: 1,
2687
2901
  "aria-hidden": "true",
2688
2902
  class: "star-half",
@@ -2691,7 +2905,7 @@ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-a77e7f95"]]), de = (e) =
2691
2905
  viewBox: "0 0 17 17",
2692
2906
  xmlns: "http://www.w3.org/2000/svg",
2693
2907
  fill: "none"
2694
- }, Xo, 8, Ko)) : (u(), m("svg", {
2908
+ }, fn, 8, un)) : (s(), m("svg", {
2695
2909
  key: 2,
2696
2910
  class: "star-empty",
2697
2911
  "aria-hidden": "true",
@@ -2700,21 +2914,21 @@ const Ho = /* @__PURE__ */ k(Ro, [["__scopeId", "data-v-a77e7f95"]]), de = (e) =
2700
2914
  viewBox: "0 0 17 17",
2701
2915
  fill: "none",
2702
2916
  xmlns: "http://www.w3.org/2000/svg"
2703
- }, ln, 8, en))
2917
+ }, pn, 8, yn))
2704
2918
  ]))), 128))
2705
2919
  ]),
2706
- h("div", an, [
2920
+ _("div", mn, [
2707
2921
  g(r.$slots, "rating-stars-content", {}, () => [
2708
- e.reviewCount ? (u(), m("span", on, "(" + C(e.reviewCount) + ")", 1)) : _("", !0)
2922
+ e.reviewCount ? (s(), m("span", _n, "(" + L(e.reviewCount) + ")", 1)) : h("", !0)
2709
2923
  ], !0)
2710
2924
  ])
2711
- ], 8, Do));
2925
+ ], 8, an));
2712
2926
  }
2713
2927
  });
2714
- const rn = /* @__PURE__ */ k(nn, [["__scopeId", "data-v-adbf7701"]]), sn = { class: "joy-screen-loader__content" }, un = {
2928
+ const gn = /* @__PURE__ */ k(hn, [["__scopeId", "data-v-adbf7701"]]), bn = { class: "joy-screen-loader__content" }, wn = {
2715
2929
  key: 0,
2716
2930
  class: "joy-screen-loader__content"
2717
- }, dn = /* @__PURE__ */ j({
2931
+ }, Sn = /* @__PURE__ */ $({
2718
2932
  __name: "VJoyScreenLoader",
2719
2933
  props: {
2720
2934
  /** Light or dark. Changes the spinner and background color */
@@ -2729,23 +2943,23 @@ const rn = /* @__PURE__ */ k(nn, [["__scopeId", "data-v-adbf7701"]]), sn = { cla
2729
2943
  }
2730
2944
  },
2731
2945
  setup(e) {
2732
- return (l, t) => (u(), m("div", {
2946
+ return (l, t) => (s(), m("div", {
2733
2947
  class: S(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2734
2948
  }, [
2735
- h("div", sn, [
2949
+ _("div", bn, [
2736
2950
  g(l.$slots, "spinner", {}, () => [
2737
- U($e, {
2951
+ R(Ve, {
2738
2952
  color: e.color === "dark" ? "white" : "teal"
2739
2953
  }, null, 8, ["color"])
2740
2954
  ], !0),
2741
- l.$slots.content ? (u(), m("div", un, [
2955
+ l.$slots.content ? (s(), m("div", wn, [
2742
2956
  g(l.$slots, "content", {}, void 0, !0)
2743
- ])) : _("", !0)
2957
+ ])) : h("", !0)
2744
2958
  ])
2745
2959
  ], 2));
2746
2960
  }
2747
2961
  });
2748
- const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id", "name", "aria-invalid", "required", "disabled", "value"], fn = /* @__PURE__ */ j({
2962
+ const Ie = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-5c4f6d7f"]]), $n = ["id", "name", "aria-invalid", "required", "disabled", "value"], jn = /* @__PURE__ */ $({
2749
2963
  __name: "VJoySelect",
2750
2964
  props: {
2751
2965
  disabled: {
@@ -2788,15 +3002,15 @@ const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id"
2788
3002
  },
2789
3003
  emits: ["update:modelValue"],
2790
3004
  setup(e, { emit: l }) {
2791
- const t = e, a = w(), o = w(), i = ee(), r = w(!1), n = V(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
2792
- X(() => {
2793
- var s;
2794
- const v = i.label && i.label();
2795
- if (!v || !v.length)
3005
+ const t = e, a = w(), o = w(), i = Y(), r = w(!1), n = V(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
3006
+ Q(() => {
3007
+ var u;
3008
+ const y = i.label && i.label();
3009
+ if (!y || !y.length)
2796
3010
  return;
2797
- const f = v[0];
3011
+ const f = y[0];
2798
3012
  if (f.type === "JoyLabel") {
2799
- const p = (s = f.props) == null ? void 0 : s.for;
3013
+ const p = (u = f.props) == null ? void 0 : u.for;
2800
3014
  if (!p) {
2801
3015
  console.warn("JoyLabel for attribute is missing");
2802
3016
  return;
@@ -2804,35 +3018,35 @@ const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id"
2804
3018
  p !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2805
3019
  }
2806
3020
  });
2807
- function d(v) {
2808
- const f = v.target.value;
3021
+ function c(y) {
3022
+ const f = y.target.value;
2809
3023
  l("update:modelValue", f);
2810
3024
  }
2811
- function y() {
3025
+ function v() {
2812
3026
  r.value = !0;
2813
3027
  }
2814
- function c() {
3028
+ function d() {
2815
3029
  r.value = !1;
2816
3030
  }
2817
- return (v, f) => (u(), m("div", {
3031
+ return (y, f) => (s(), m("div", {
2818
3032
  ref_key: "root",
2819
3033
  ref: a
2820
3034
  }, [
2821
- g(v.$slots, "select-label", {}, () => [
2822
- e.label ? (u(), x(K, {
3035
+ g(y.$slots, "select-label", {}, () => [
3036
+ e.label ? (s(), C(ee, {
2823
3037
  key: 0,
2824
3038
  required: e.required && e.requiredMark,
2825
3039
  "optional-label": e.optionalLabel,
2826
3040
  for: e.id || e.name,
2827
3041
  size: n.value
2828
3042
  }, {
2829
- default: B(() => [
2830
- O(C(e.label), 1)
3043
+ default: O(() => [
3044
+ B(L(e.label), 1)
2831
3045
  ]),
2832
3046
  _: 1
2833
- }, 8, ["required", "optional-label", "for", "size"])) : _("", !0)
3047
+ }, 8, ["required", "optional-label", "for", "size"])) : h("", !0)
2834
3048
  ], !0),
2835
- h("div", {
3049
+ _("div", {
2836
3050
  class: S([
2837
3051
  `joy-select--${e.size}`,
2838
3052
  {
@@ -2843,7 +3057,7 @@ const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id"
2843
3057
  }
2844
3058
  ])
2845
3059
  }, [
2846
- h("select", {
3060
+ _("select", {
2847
3061
  id: e.id || e.name,
2848
3062
  ref_key: "select",
2849
3063
  ref: o,
@@ -2853,13 +3067,13 @@ const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id"
2853
3067
  required: e.required,
2854
3068
  disabled: e.disabled,
2855
3069
  value: e.modelValue,
2856
- onInput: d,
2857
- onFocus: y,
2858
- onBlur: c
3070
+ onInput: c,
3071
+ onFocus: v,
3072
+ onBlur: d
2859
3073
  }, [
2860
- g(v.$slots, "default", {}, void 0, !0)
2861
- ], 40, cn),
2862
- U(J, {
3074
+ g(y.$slots, "default", {}, void 0, !0)
3075
+ ], 40, $n),
3076
+ R(E, {
2863
3077
  class: "joy-select__chevron",
2864
3078
  name: "chevron-down"
2865
3079
  })
@@ -2867,7 +3081,7 @@ const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id"
2867
3081
  ], 512));
2868
3082
  }
2869
3083
  });
2870
- const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["aria-disabled"], mn = ["id", "value", "checked", "disabled", "required", "name"], pn = /* @__PURE__ */ j({
3084
+ const kn = /* @__PURE__ */ k(jn, [["__scopeId", "data-v-26bd5a41"]]), Vn = ["aria-disabled"], xn = ["id", "value", "checked", "disabled", "required", "name"], Cn = /* @__PURE__ */ $({
2871
3085
  __name: "VJoySelectableItem",
2872
3086
  props: {
2873
3087
  disabled: {
@@ -2911,8 +3125,8 @@ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["ari
2911
3125
  onClick: () => {
2912
3126
  t.checked && !t.multiple && l("update:checked", "");
2913
3127
  },
2914
- onLabelClick: (y) => {
2915
- t.multiple || y.stopPropagation();
3128
+ onLabelClick: (v) => {
3129
+ t.multiple || v.stopPropagation();
2916
3130
  },
2917
3131
  onFocus: () => {
2918
3132
  i.value = !0;
@@ -2921,10 +3135,10 @@ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["ari
2921
3135
  i.value = !1;
2922
3136
  }
2923
3137
  };
2924
- function d(y) {
2925
- l("update:checked", y);
3138
+ function c(v) {
3139
+ l("update:checked", v);
2926
3140
  }
2927
- return (y, c) => (u(), m("div", {
3141
+ return (v, d) => (s(), m("div", {
2928
3142
  class: S([
2929
3143
  "joy-selectable-item__wrapper",
2930
3144
  {
@@ -2932,10 +3146,10 @@ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["ari
2932
3146
  }
2933
3147
  ]),
2934
3148
  "aria-disabled": e.disabled,
2935
- onClick: c[4] || (c[4] = //@ts-ignore
2936
- (...v) => n.onClick && n.onClick(...v))
3149
+ onClick: d[4] || (d[4] = //@ts-ignore
3150
+ (...y) => n.onClick && n.onClick(...y))
2937
3151
  }, [
2938
- e.multiple ? _("", !0) : (u(), m("input", {
3152
+ e.multiple ? h("", !0) : (s(), m("input", {
2939
3153
  key: 0,
2940
3154
  id: e.id,
2941
3155
  ref_key: "inputRadio",
@@ -2946,14 +3160,14 @@ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["ari
2946
3160
  disabled: e.disabled,
2947
3161
  required: e.required,
2948
3162
  name: e.name,
2949
- onChange: c[0] || (c[0] = //@ts-ignore
2950
- (...v) => n.onRadioChange && n.onRadioChange(...v)),
2951
- onFocus: c[1] || (c[1] = //@ts-ignore
2952
- (...v) => n.onFocus && n.onFocus(...v)),
2953
- onBlur: c[2] || (c[2] = //@ts-ignore
2954
- (...v) => n.onBlur && n.onBlur(...v))
2955
- }, null, 40, mn)),
2956
- (u(), x(re($(r)), {
3163
+ onChange: d[0] || (d[0] = //@ts-ignore
3164
+ (...y) => n.onRadioChange && n.onRadioChange(...y)),
3165
+ onFocus: d[1] || (d[1] = //@ts-ignore
3166
+ (...y) => n.onFocus && n.onFocus(...y)),
3167
+ onBlur: d[2] || (d[2] = //@ts-ignore
3168
+ (...y) => n.onBlur && n.onBlur(...y))
3169
+ }, null, 40, xn)),
3170
+ (s(), C(oe(j(r)), {
2957
3171
  for: e.id,
2958
3172
  class: S([
2959
3173
  "joy-selectable-item",
@@ -2966,14 +3180,14 @@ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["ari
2966
3180
  ]),
2967
3181
  onClick: n.onLabelClick
2968
3182
  }, {
2969
- default: B(() => [
2970
- e.multiple ? (u(), x($(je), {
3183
+ default: O(() => [
3184
+ e.multiple ? (s(), C(j(Ce), {
2971
3185
  key: 0,
2972
3186
  id: e.id,
2973
3187
  checked: a.value,
2974
3188
  "onUpdate:checked": [
2975
- c[3] || (c[3] = (v) => a.value = v),
2976
- d
3189
+ d[3] || (d[3] = (y) => a.value = y),
3190
+ c
2977
3191
  ],
2978
3192
  disabled: e.disabled,
2979
3193
  value: e.value,
@@ -2983,24 +3197,24 @@ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["ari
2983
3197
  onFocus: n.onFocus,
2984
3198
  onBlur: n.onBlur
2985
3199
  }, {
2986
- default: B(() => [
2987
- g(y.$slots, "default", {}, void 0, !0)
3200
+ default: O(() => [
3201
+ g(v.$slots, "default", {}, void 0, !0)
2988
3202
  ]),
2989
3203
  _: 3
2990
- }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : _("", !0),
2991
- e.multiple ? _("", !0) : g(y.$slots, "default", { key: 1 }, void 0, !0),
2992
- h("div", {
2993
- class: S([{ "joy-selectable-item__sublabel": y.$slots["selectable-item-sublabel"] }])
3204
+ }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : h("", !0),
3205
+ e.multiple ? h("", !0) : g(v.$slots, "default", { key: 1 }, void 0, !0),
3206
+ _("div", {
3207
+ class: S([{ "joy-selectable-item__sublabel": v.$slots["selectable-item-sublabel"] }])
2994
3208
  }, [
2995
- g(y.$slots, "selectable-item-sublabel", {}, void 0, !0)
3209
+ g(v.$slots, "selectable-item-sublabel", {}, void 0, !0)
2996
3210
  ], 2)
2997
3211
  ]),
2998
3212
  _: 3
2999
3213
  }, 8, ["for", "class", "onClick"]))
3000
- ], 10, vn));
3214
+ ], 10, Vn));
3001
3215
  }
3002
3216
  });
3003
- const ct = /* @__PURE__ */ k(pn, [["__scopeId", "data-v-cb2531c0"]]), hn = ["id"], _n = /* @__PURE__ */ j({
3217
+ const yt = /* @__PURE__ */ k(Cn, [["__scopeId", "data-v-cb2531c0"]]), Ln = ["id"], In = /* @__PURE__ */ $({
3004
3218
  __name: "VJoySelectableItemGroup",
3005
3219
  props: {
3006
3220
  options: {
@@ -3051,23 +3265,23 @@ const ct = /* @__PURE__ */ k(pn, [["__scopeId", "data-v-cb2531c0"]]), hn = ["id"
3051
3265
  let n = [...t.value || []];
3052
3266
  r && typeof r == "boolean" ? n.push(i) : n.splice(n.indexOf(i), 1), l("update:value", n);
3053
3267
  }
3054
- return (i, r) => (u(), m("fieldset", {
3268
+ return (i, r) => (s(), m("fieldset", {
3055
3269
  id: e.id,
3056
3270
  class: "joy-selectable-item-group__wrapper"
3057
3271
  }, [
3058
- e.label ? (u(), x($(K), {
3272
+ e.label ? (s(), C(j(ee), {
3059
3273
  key: 0,
3060
3274
  "tag-name": "legend",
3061
3275
  required: e.required && e.requiredMark,
3062
3276
  "optional-label": e.optionalLabel,
3063
3277
  size: e.labelSize
3064
3278
  }, {
3065
- default: B(() => [
3066
- O(C(e.label), 1)
3279
+ default: O(() => [
3280
+ B(L(e.label), 1)
3067
3281
  ]),
3068
3282
  _: 1
3069
- }, 8, ["required", "optional-label", "size"])) : _("", !0),
3070
- h("div", {
3283
+ }, 8, ["required", "optional-label", "size"])) : h("", !0),
3284
+ _("div", {
3071
3285
  class: S([
3072
3286
  "joy-selectable-item-group",
3073
3287
  {
@@ -3077,7 +3291,7 @@ const ct = /* @__PURE__ */ k(pn, [["__scopeId", "data-v-cb2531c0"]]), hn = ["id"
3077
3291
  }
3078
3292
  ])
3079
3293
  }, [
3080
- (u(!0), m(W, null, Y(e.options, (n) => (u(), x($(ct), {
3294
+ (s(!0), m(H, null, G(e.options, (n) => (s(), C(j(yt), {
3081
3295
  id: n.id,
3082
3296
  key: n.id,
3083
3297
  name: n.name,
@@ -3085,26 +3299,26 @@ const ct = /* @__PURE__ */ k(pn, [["__scopeId", "data-v-cb2531c0"]]), hn = ["id"
3085
3299
  value: n.value,
3086
3300
  multiple: e.multiple,
3087
3301
  checked: a(n),
3088
- "onUpdate:checked": (d) => o(n.value, d)
3089
- }, et({
3090
- default: B(() => [
3091
- O(C(n.label) + " ", 1)
3302
+ "onUpdate:checked": (c) => o(n.value, c)
3303
+ }, at({
3304
+ default: O(() => [
3305
+ B(L(n.label) + " ", 1)
3092
3306
  ]),
3093
3307
  _: 2
3094
3308
  }, [
3095
3309
  n.subLabel ? {
3096
3310
  name: "selectable-item-sublabel",
3097
- fn: B(() => [
3098
- O(C(n.subLabel), 1)
3311
+ fn: O(() => [
3312
+ B(L(n.subLabel), 1)
3099
3313
  ]),
3100
3314
  key: "0"
3101
3315
  } : void 0
3102
3316
  ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
3103
3317
  ], 2)
3104
- ], 8, hn));
3318
+ ], 8, Ln));
3105
3319
  }
3106
3320
  });
3107
- const gn = /* @__PURE__ */ k(_n, [["__scopeId", "data-v-0730aed0"]]), bn = /* @__PURE__ */ j({
3321
+ const Bn = /* @__PURE__ */ k(In, [["__scopeId", "data-v-0730aed0"]]), On = /* @__PURE__ */ $({
3108
3322
  __name: "VJoySeparator",
3109
3323
  props: {
3110
3324
  /** Main text to apply in the central area */
@@ -3117,14 +3331,14 @@ const gn = /* @__PURE__ */ k(_n, [["__scopeId", "data-v-0730aed0"]]), bn = /* @_
3117
3331
  }
3118
3332
  },
3119
3333
  setup(e) {
3120
- return (l, t) => (u(), m("div", {
3334
+ return (l, t) => (s(), m("div", {
3121
3335
  class: S(["joy-separator", { "joy-separator__small": e.size === "small" }])
3122
3336
  }, [
3123
- h("span", null, C(e.text), 1)
3337
+ _("span", null, L(e.text), 1)
3124
3338
  ], 2));
3125
3339
  }
3126
3340
  });
3127
- const wn = /* @__PURE__ */ k(bn, [["__scopeId", "data-v-d83b1859"]]), Sn = /* @__PURE__ */ j({
3341
+ const Tn = /* @__PURE__ */ k(On, [["__scopeId", "data-v-d83b1859"]]), Pn = /* @__PURE__ */ $({
3128
3342
  __name: "VJoyWrapper",
3129
3343
  props: {
3130
3344
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -3168,7 +3382,7 @@ const wn = /* @__PURE__ */ k(bn, [["__scopeId", "data-v-d83b1859"]]), Sn = /* @_
3168
3382
  }
3169
3383
  },
3170
3384
  setup(e) {
3171
- return Xe("VJoyWrapperContext", e), (t, a) => (u(), m("div", {
3385
+ return ke("VJoyWrapperContext", e), (t, a) => (s(), m("div", {
3172
3386
  class: S([
3173
3387
  "joy-wrapper",
3174
3388
  `joy-wrapper--justify-${e.justify}`,
@@ -3185,7 +3399,199 @@ const wn = /* @__PURE__ */ k(bn, [["__scopeId", "data-v-d83b1859"]]), Sn = /* @_
3185
3399
  ], 2));
3186
3400
  }
3187
3401
  });
3188
- const $n = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-8a6c4326"]]), jn = ["role"], kn = /* @__PURE__ */ j({
3402
+ const Jn = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-8a6c4326"]]), En = ["id", "href", "aria-selected", "aria-controls"], zn = {
3403
+ type: "button",
3404
+ tabindex: "-1"
3405
+ }, An = /* @__PURE__ */ $({
3406
+ __name: "TabButton",
3407
+ props: {
3408
+ /**
3409
+ * Boolean to change style if tabButton is selected
3410
+ */
3411
+ selected: {
3412
+ type: Boolean,
3413
+ default: !1
3414
+ },
3415
+ /**
3416
+ * Id of the tab, used for aria prop
3417
+ */
3418
+ tab: {
3419
+ type: String,
3420
+ required: !0
3421
+ },
3422
+ /**
3423
+ * Href props to send to a link. If filled, it replaces the default comportment
3424
+ */
3425
+ href: {
3426
+ type: String,
3427
+ required: !1
3428
+ },
3429
+ /**
3430
+ * Label of the button. If filled, it replaces the default slot
3431
+ */
3432
+ label: {
3433
+ type: String,
3434
+ required: !1
3435
+ }
3436
+ },
3437
+ emits: ["changeTab"],
3438
+ setup(e, { emit: l }) {
3439
+ function t() {
3440
+ l("changeTab");
3441
+ }
3442
+ function a(o) {
3443
+ (o.code === "Enter" || o.code === "NumpadEnter") && l("changeTab");
3444
+ }
3445
+ return (o, i) => (s(), m("a", {
3446
+ id: `joy-tab-${e.tab}`,
3447
+ href: e.href,
3448
+ "aria-selected": e.selected ? "true" : "false",
3449
+ "aria-controls": `job-tab-${e.tab}`,
3450
+ tabindex: "0",
3451
+ role: "tab",
3452
+ onClick: t,
3453
+ onKeydown: i[0] || (i[0] = (r) => a(r))
3454
+ }, [
3455
+ _("div", {
3456
+ part: "tab-button",
3457
+ class: S({
3458
+ "joy-tab-button": !0,
3459
+ "joy-tab-button__selected": e.selected
3460
+ })
3461
+ }, [
3462
+ _("button", zn, [
3463
+ _("div", null, [
3464
+ g(o.$slots, "default", {}, () => [
3465
+ B(L(e.label), 1)
3466
+ ], !0)
3467
+ ])
3468
+ ])
3469
+ ], 2)
3470
+ ], 40, En));
3471
+ }
3472
+ });
3473
+ const Fn = /* @__PURE__ */ k(An, [["__scopeId", "data-v-b1e62ec8"]]), qn = { class: "joy-tabs" }, Nn = /* @__PURE__ */ $({
3474
+ __name: "VJoyTabs",
3475
+ props: {
3476
+ /** Use this prop to activate a specific tab by default by giving its name */
3477
+ selectedTab: {
3478
+ type: String
3479
+ }
3480
+ },
3481
+ emits: ["update:selected-tab"],
3482
+ setup(e, { emit: l }) {
3483
+ 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));
3484
+ function d(p) {
3485
+ var b;
3486
+ return ((b = p == null ? void 0 : p.type) == null ? void 0 : b.__name) === "VJoyTab";
3487
+ }
3488
+ function y(p) {
3489
+ return p.props.tab === o.value;
3490
+ }
3491
+ function f() {
3492
+ 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);
3493
+ }
3494
+ function u(p, b = !0) {
3495
+ p && b && (o.value = p, ke("VJoyTabs", o), l("update:selected-tab", p));
3496
+ }
3497
+ return P(
3498
+ () => t.selectedTab,
3499
+ (p) => {
3500
+ p && u(p);
3501
+ },
3502
+ { immediate: !0 }
3503
+ ), Q(() => {
3504
+ var p;
3505
+ f(), (p = r.value) == null || p.addEventListener("scroll", f);
3506
+ }), Se(() => {
3507
+ var p;
3508
+ (p = r.value) == null || p.removeEventListener("scroll", f);
3509
+ }), (p, b) => (s(), m("div", qn, [
3510
+ _("div", {
3511
+ ref_key: "buttonListWrapper",
3512
+ ref: i,
3513
+ class: S({
3514
+ "joy-tabs-buttons__wrapper": !0,
3515
+ "joy-tabs-buttons__wrapper--scroll-end": n.value,
3516
+ "joy-tabs-buttons__wrapper--scroll-start": c.value
3517
+ })
3518
+ }, [
3519
+ _("div", {
3520
+ ref_key: "buttonList",
3521
+ ref: r,
3522
+ class: "joy-tabs-buttons",
3523
+ role: "tablist"
3524
+ }, [
3525
+ (s(!0), m(H, null, G(v.value, (x) => (s(), m("div", {
3526
+ key: x.props.tab
3527
+ }, [
3528
+ R(Fn, {
3529
+ tab: x.props.tab,
3530
+ label: x.props.label,
3531
+ href: x.props.href,
3532
+ selected: y(x),
3533
+ onChangeTab: (T) => u(x.props.tab, !x.props.href)
3534
+ }, {
3535
+ default: O(() => {
3536
+ var T;
3537
+ return [
3538
+ (T = x.children) != null && T.header ? (s(), C(oe(x.children.header), { key: 0 })) : h("", !0)
3539
+ ];
3540
+ }),
3541
+ _: 2
3542
+ }, 1032, ["tab", "label", "href", "selected", "onChangeTab"])
3543
+ ]))), 128))
3544
+ ], 512)
3545
+ ], 2),
3546
+ _("div", null, [
3547
+ g(p.$slots, "default", {}, void 0, !0)
3548
+ ])
3549
+ ]));
3550
+ }
3551
+ });
3552
+ const Mn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-e3dffafe"]]), Rn = ["id", "aria-hidden", "aria-labelledby"], Hn = /* @__PURE__ */ $({
3553
+ __name: "VJoyTab",
3554
+ props: {
3555
+ /**
3556
+ * A tab id or name must be provided for each `joy-tab`. It's used internally to reference
3557
+ * the selected tab
3558
+ */
3559
+ tab: {
3560
+ type: String,
3561
+ required: !0
3562
+ },
3563
+ /**
3564
+ * The title given to the button
3565
+ */
3566
+ label: {
3567
+ type: String,
3568
+ required: !0
3569
+ },
3570
+ /**
3571
+ * Allow to have a link on the button. When clicking on the button, you will be redirected to the target of the URL.
3572
+ */
3573
+ href: {
3574
+ type: String,
3575
+ required: !1
3576
+ }
3577
+ },
3578
+ setup(e) {
3579
+ const l = e, t = de("VJoyTabs", w("")), a = V(() => t.value === l.tab);
3580
+ return (o, i) => (s(), m("div", {
3581
+ id: `joy-tab-${e.tab}`,
3582
+ role: "tabpanel",
3583
+ "aria-hidden": a.value ? void 0 : "true",
3584
+ "aria-labelledby": `joy-tab-${e.tab}`,
3585
+ class: S({
3586
+ "joy-tab": !0,
3587
+ "joy-tab__selected": a.value
3588
+ })
3589
+ }, [
3590
+ g(o.$slots, "default", {}, void 0, !0)
3591
+ ], 10, Rn));
3592
+ }
3593
+ });
3594
+ const Dn = /* @__PURE__ */ k(Hn, [["__scopeId", "data-v-47a75127"]]), Wn = ["role"], Un = /* @__PURE__ */ $({
3189
3595
  __name: "VJoyTag",
3190
3596
  props: {
3191
3597
  /** Text injected within the tag */
@@ -3238,29 +3644,29 @@ const $n = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-8a6c4326"]]), jn = ["rol
3238
3644
  function r() {
3239
3645
  l("click"), t.selectable && a.includes(t.variant) && l("selected", { selected: !t.selected, value: t.value });
3240
3646
  }
3241
- return (n, d) => (u(), m("span", {
3647
+ return (n, c) => (s(), m("span", {
3242
3648
  class: S([o.value]),
3243
3649
  role: e.link || e.selectable ? "button" : void 0,
3244
3650
  onClick: r
3245
3651
  }, [
3246
- e.draggable ? (u(), x(J, {
3652
+ e.draggable ? (s(), C(E, {
3247
3653
  key: 0,
3248
3654
  class: "joy-tag__drag",
3249
3655
  name: "drag",
3250
3656
  size: "xxsmall"
3251
- })) : _("", !0),
3252
- O(" " + C(e.label) + " ", 1),
3253
- e.removable ? (u(), x(J, {
3657
+ })) : h("", !0),
3658
+ B(" " + L(e.label) + " ", 1),
3659
+ e.removable ? (s(), C(E, {
3254
3660
  key: 1,
3255
3661
  class: "joy-tag__removable",
3256
3662
  name: "cross",
3257
3663
  size: "xxsmall",
3258
- onClick: bt(i, ["stop"])
3259
- }, null, 8, ["onClick"])) : _("", !0)
3260
- ], 10, jn));
3664
+ onClick: St(i, ["stop"])
3665
+ }, null, 8, ["onClick"])) : h("", !0)
3666
+ ], 10, Wn));
3261
3667
  }
3262
3668
  });
3263
- const ft = /* @__PURE__ */ k(kn, [["__scopeId", "data-v-01b9f7cc"]]), Vn = /* @__PURE__ */ j({
3669
+ const vt = /* @__PURE__ */ k(Un, [["__scopeId", "data-v-01b9f7cc"]]), Gn = /* @__PURE__ */ $({
3264
3670
  __name: "VJoyTagsList",
3265
3671
  props: {
3266
3672
  align: {
@@ -3291,58 +3697,58 @@ const ft = /* @__PURE__ */ k(kn, [["__scopeId", "data-v-01b9f7cc"]]), Vn = /* @_
3291
3697
  return t.removable ? !1 : (n = t.modelValue) == null ? void 0 : n.includes(r.value);
3292
3698
  }
3293
3699
  function o(r, n) {
3294
- let d = [];
3295
- r.selected && !a(n) ? d = [...t.modelValue || [], n.value] : d = (t.modelValue || []).filter((y) => y !== n.value), l("update:modelValue", d);
3700
+ let c = [];
3701
+ r.selected && !a(n) ? c = [...t.modelValue || [], n.value] : c = (t.modelValue || []).filter((v) => v !== n.value), l("update:modelValue", c);
3296
3702
  }
3297
3703
  function i(r) {
3298
3704
  l("removeTag", r.value);
3299
3705
  }
3300
- return (r, n) => (u(), m("div", {
3706
+ return (r, n) => (s(), m("div", {
3301
3707
  class: S(["joy-tags-list", `joy-tags-list--${e.align}`])
3302
3708
  }, [
3303
- (u(!0), m(W, null, Y(e.tags, (d) => (u(), x($(ft), G({
3304
- key: d.value,
3709
+ (s(!0), m(H, null, G(e.tags, (c) => (s(), C(j(vt), K({
3710
+ key: c.value,
3305
3711
  selectable: !!e.modelValue && !e.removable
3306
- }, d, {
3712
+ }, c, {
3307
3713
  removable: e.removable,
3308
- selected: a(d),
3714
+ selected: a(c),
3309
3715
  onRemove: i,
3310
- onSelected: (y) => o(y, d)
3716
+ onSelected: (v) => o(v, c)
3311
3717
  }), null, 16, ["selectable", "removable", "selected", "onSelected"]))), 128))
3312
3718
  ], 2));
3313
3719
  }
3314
3720
  });
3315
- const xn = /* @__PURE__ */ k(Vn, [["__scopeId", "data-v-510c6367"]]);
3316
- const Cn = {}, Ln = {
3721
+ const Zn = /* @__PURE__ */ k(Gn, [["__scopeId", "data-v-510c6367"]]);
3722
+ const Kn = {}, Qn = {
3317
3723
  class: /* @__PURE__ */ S(["joy-template-shape__shapes"])
3318
- }, In = /* @__PURE__ */ Ke('<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), On = [
3319
- In
3724
+ }, 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 = [
3725
+ Yn
3320
3726
  ];
3321
- function Bn(e, l) {
3322
- return u(), m("div", Ln, On);
3727
+ function ei(e, l) {
3728
+ return s(), m("div", Qn, Xn);
3323
3729
  }
3324
- const yt = /* @__PURE__ */ k(Cn, [["render", Bn], ["__scopeId", "data-v-8b258f92"]]), En = { class: "joy-template__wrapper" }, Tn = {
3730
+ const pt = /* @__PURE__ */ k(Kn, [["render", ei], ["__scopeId", "data-v-8b258f92"]]), ti = { class: "joy-template__wrapper" }, li = {
3325
3731
  key: 0,
3326
3732
  class: "joy-template__heading"
3327
- }, Jn = {
3733
+ }, ai = {
3328
3734
  key: 0,
3329
3735
  class: "joy-template-slot-back"
3330
- }, Pn = { class: "joy-template__heading___headings" }, zn = {
3736
+ }, oi = { class: "joy-template__heading___headings" }, ni = {
3331
3737
  key: 0,
3332
3738
  class: "joy-template-slot-title"
3333
- }, An = {
3739
+ }, ii = {
3334
3740
  key: 1,
3335
3741
  class: "joy-template-slot-subtitle"
3336
- }, Fn = {
3742
+ }, ri = {
3337
3743
  key: 1,
3338
3744
  class: "joy-template-slot-actions"
3339
- }, qn = {
3745
+ }, si = {
3340
3746
  key: 0,
3341
3747
  class: "joy-template-slot-main"
3342
- }, Mn = {
3748
+ }, ui = {
3343
3749
  key: 1,
3344
3750
  class: "joy-template-slot-sidebar"
3345
- }, Nn = /* @__PURE__ */ j({
3751
+ }, di = /* @__PURE__ */ $({
3346
3752
  __name: "VJoyTemplate",
3347
3753
  props: {
3348
3754
  full: { type: Boolean, default: !1 },
@@ -3361,29 +3767,29 @@ const yt = /* @__PURE__ */ k(Cn, [["render", Bn], ["__scopeId", "data-v-8b258f92
3361
3767
  }
3362
3768
  },
3363
3769
  setup(e) {
3364
- const l = e, t = ee(), a = V(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
3365
- return (o, i) => (u(), m("main", {
3770
+ const l = e, t = Y(), a = V(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
3771
+ return (o, i) => (s(), m("main", {
3366
3772
  class: S(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
3367
3773
  }, [
3368
- e.shapes ? (u(), x(yt, { key: 0 })) : _("", !0),
3369
- h("div", En, [
3370
- a.value ? (u(), m("div", Tn, [
3371
- $(t)["template-back"] ? (u(), m("div", Jn, [
3774
+ e.shapes ? (s(), C(pt, { key: 0 })) : h("", !0),
3775
+ _("div", ti, [
3776
+ a.value ? (s(), m("div", li, [
3777
+ j(t)["template-back"] ? (s(), m("div", ai, [
3372
3778
  g(o.$slots, "template-back", {}, void 0, !0)
3373
- ])) : _("", !0),
3374
- h("div", Pn, [
3375
- $(t)["template-title"] ? (u(), m("div", zn, [
3779
+ ])) : h("", !0),
3780
+ _("div", oi, [
3781
+ j(t)["template-title"] ? (s(), m("div", ni, [
3376
3782
  g(o.$slots, "template-title", {}, void 0, !0)
3377
- ])) : _("", !0),
3378
- $(t)["template-subtitle"] ? (u(), m("div", An, [
3783
+ ])) : h("", !0),
3784
+ j(t)["template-subtitle"] ? (s(), m("div", ii, [
3379
3785
  g(o.$slots, "template-subtitle", {}, void 0, !0)
3380
- ])) : _("", !0)
3786
+ ])) : h("", !0)
3381
3787
  ]),
3382
- $(t)["template-actions"] ? (u(), m("div", Fn, [
3788
+ j(t)["template-actions"] ? (s(), m("div", ri, [
3383
3789
  g(o.$slots, "template-actions", {}, void 0, !0)
3384
- ])) : _("", !0)
3385
- ])) : _("", !0),
3386
- h("div", {
3790
+ ])) : h("", !0)
3791
+ ])) : h("", !0),
3792
+ _("div", {
3387
3793
  class: S([
3388
3794
  "joy-template__content",
3389
3795
  {
@@ -3391,34 +3797,34 @@ const yt = /* @__PURE__ */ k(Cn, [["render", Bn], ["__scopeId", "data-v-8b258f92
3391
3797
  }
3392
3798
  ])
3393
3799
  }, [
3394
- o.$slots["template-main"] ? (u(), m("div", qn, [
3800
+ o.$slots["template-main"] ? (s(), m("div", si, [
3395
3801
  g(o.$slots, "template-main", {}, void 0, !0)
3396
- ])) : _("", !0),
3397
- o.$slots["template-sidebar"] ? (u(), m("div", Mn, [
3802
+ ])) : h("", !0),
3803
+ o.$slots["template-sidebar"] ? (s(), m("div", ui, [
3398
3804
  g(o.$slots, "template-sidebar", {}, void 0, !0)
3399
- ])) : _("", !0)
3805
+ ])) : h("", !0)
3400
3806
  ], 2)
3401
3807
  ]),
3402
- e.loading ? (u(), x(Ve, {
3808
+ e.loading ? (s(), C(Ie, {
3403
3809
  key: 1,
3404
3810
  overlay: "",
3405
3811
  color: e.loadingColor
3406
3812
  }, {
3407
- content: B(() => [
3813
+ content: O(() => [
3408
3814
  g(o.$slots, "template-loader-content", {}, void 0, !0)
3409
3815
  ]),
3410
3816
  _: 3
3411
- }, 8, ["color"])) : _("", !0)
3817
+ }, 8, ["color"])) : h("", !0)
3412
3818
  ], 2));
3413
3819
  }
3414
3820
  });
3415
- const Rn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-750153b6"]]), Hn = ["aria-disabled"], Dn = { class: "joy-textarea_wrapper" }, Un = ["id", "disabled", "name", "required", "minlength", "value"], Wn = {
3821
+ 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 = {
3416
3822
  key: 0,
3417
3823
  class: "joy-textarea_helpers"
3418
- }, Gn = {
3824
+ }, mi = {
3419
3825
  inheritAttrs: !1
3420
- }, Zn = /* @__PURE__ */ j({
3421
- ...Gn,
3826
+ }, _i = /* @__PURE__ */ $({
3827
+ ...mi,
3422
3828
  __name: "VJoyTextarea",
3423
3829
  props: {
3424
3830
  disabled: {
@@ -3472,17 +3878,17 @@ const Rn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-750153b6"]]), Hn = ["ari
3472
3878
  },
3473
3879
  emits: ["update:modelValue"],
3474
3880
  setup(e, { expose: l, emit: t }) {
3475
- const a = e, o = w(), { triggerResize: i } = Xl({
3881
+ const a = e, o = w(), { triggerResize: i } = ea({
3476
3882
  element: a.autogrow ? o : void 0
3477
- }), r = w(!1), n = w(!1), d = V(() => a.maxlength ? a.modelValue.length > a.maxlength : !1), y = V(() => a.minlength ? a.modelValue.length < a.minlength : !1), c = {
3478
- onInput: (v) => {
3479
- a.modelModifiers.lazy || t("update:modelValue", v.target.value), i();
3883
+ }), 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 = {
3884
+ onInput: (y) => {
3885
+ a.modelModifiers.lazy || t("update:modelValue", y.target.value), i();
3480
3886
  },
3481
- onChange: (v) => {
3482
- a.modelModifiers.lazy && t("update:modelValue", v.target.value);
3887
+ onChange: (y) => {
3888
+ a.modelModifiers.lazy && t("update:modelValue", y.target.value);
3483
3889
  },
3484
3890
  onBlur: () => {
3485
- n.value = !1, r.value = d.value || y.value;
3891
+ n.value = !1, r.value = c.value || v.value;
3486
3892
  },
3487
3893
  onFocus: () => {
3488
3894
  n.value = !0;
@@ -3490,9 +3896,9 @@ const Rn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-750153b6"]]), Hn = ["ari
3490
3896
  };
3491
3897
  return l({
3492
3898
  isInvalid: r,
3493
- valueOverMaxlength: d,
3494
- valueUnderMinlength: y
3495
- }), (v, f) => (u(), m("div", {
3899
+ valueOverMaxlength: c,
3900
+ valueUnderMinlength: v
3901
+ }), (y, f) => (s(), m("div", {
3496
3902
  "aria-disabled": e.disabled,
3497
3903
  class: S([
3498
3904
  "joy-textarea",
@@ -3504,21 +3910,21 @@ const Rn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-750153b6"]]), Hn = ["ari
3504
3910
  }
3505
3911
  ])
3506
3912
  }, [
3507
- U($(K), {
3913
+ R(j(ee), {
3508
3914
  for: e.id,
3509
3915
  required: e.required && e.requiredMark,
3510
3916
  "optional-label": e.optionalLabel,
3511
3917
  size: e.labelSize
3512
3918
  }, {
3513
- default: B(() => [
3514
- g(v.$slots, "default", {}, () => [
3515
- O(C(e.label), 1)
3919
+ default: O(() => [
3920
+ g(y.$slots, "default", {}, () => [
3921
+ B(L(e.label), 1)
3516
3922
  ], !0)
3517
3923
  ]),
3518
3924
  _: 3
3519
3925
  }, 8, ["for", "required", "optional-label", "size"]),
3520
- h("div", Dn, [
3521
- h("textarea", G(v.$attrs, {
3926
+ _("div", yi, [
3927
+ _("textarea", K(y.$attrs, {
3522
3928
  id: e.id,
3523
3929
  ref_key: "textarea",
3524
3930
  ref: o,
@@ -3529,50 +3935,50 @@ const Rn = /* @__PURE__ */ k(Nn, [["__scopeId", "data-v-750153b6"]]), Hn = ["ari
3529
3935
  minlength: e.minlength,
3530
3936
  value: e.modelValue,
3531
3937
  onInput: f[0] || (f[0] = //@ts-ignore
3532
- (...s) => c.onInput && c.onInput(...s)),
3938
+ (...u) => d.onInput && d.onInput(...u)),
3533
3939
  onChange: f[1] || (f[1] = //@ts-ignore
3534
- (...s) => c.onChange && c.onChange(...s)),
3940
+ (...u) => d.onChange && d.onChange(...u)),
3535
3941
  onFocus: f[2] || (f[2] = //@ts-ignore
3536
- (...s) => c.onFocus && c.onFocus(...s)),
3942
+ (...u) => d.onFocus && d.onFocus(...u)),
3537
3943
  onBlur: f[3] || (f[3] = //@ts-ignore
3538
- (...s) => c.onBlur && c.onBlur(...s))
3539
- }), null, 16, Un)
3944
+ (...u) => d.onBlur && d.onBlur(...u))
3945
+ }), null, 16, vi)
3540
3946
  ]),
3541
- e.minlength || e.maxlength ? (u(), m("div", Wn, [
3542
- e.minlength ? (u(), m("p", {
3947
+ e.minlength || e.maxlength ? (s(), m("div", pi, [
3948
+ e.minlength ? (s(), m("p", {
3543
3949
  key: 0,
3544
3950
  class: S(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
3545
3951
  }, [
3546
- y.value ? _("", !0) : (u(), x(J, {
3952
+ v.value ? h("", !0) : (s(), C(E, {
3547
3953
  key: 0,
3548
3954
  name: "check",
3549
3955
  color: "neutral",
3550
3956
  size: "xxsmall"
3551
3957
  })),
3552
- O(" " + C(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3553
- ], 2)) : _("", !0),
3554
- e.maxlength ? (u(), m("p", {
3958
+ B(" " + L(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3959
+ ], 2)) : h("", !0),
3960
+ e.maxlength ? (s(), m("p", {
3555
3961
  key: 1,
3556
- class: S(["joy-textarea-count", { "joy-textarea-count-invalid": d.value }])
3557
- }, C(e.modelValue.length + "/" + e.maxlength), 3)) : _("", !0)
3558
- ])) : _("", !0)
3559
- ], 10, Hn));
3962
+ class: S(["joy-textarea-count", { "joy-textarea-count-invalid": c.value }])
3963
+ }, L(e.modelValue.length + "/" + e.maxlength), 3)) : h("", !0)
3964
+ ])) : h("", !0)
3965
+ ], 10, fi));
3560
3966
  }
3561
3967
  });
3562
- const Kn = /* @__PURE__ */ k(Zn, [["__scopeId", "data-v-1d2165ca"]]), vt = (e) => (se("data-v-cf79d999"), e = e(), ue(), e), Qn = { class: "joy-toggle__wrapper" }, Yn = ["name", "disabled", "checked", "required", "aria-checked", "value"], Xn = { class: "joy-toggle__content" }, ei = /* @__PURE__ */ vt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__symbol" }, null, -1)), ti = { class: "joy-toggle__content-label" }, li = /* @__PURE__ */ vt(() => /* @__PURE__ */ h("span", { class: "joy-toggle__smile" }, [
3563
- /* @__PURE__ */ h("svg", {
3968
+ 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" }, [
3969
+ /* @__PURE__ */ _("svg", {
3564
3970
  width: "18",
3565
3971
  height: "10",
3566
3972
  viewBox: "0 0 18 10",
3567
3973
  fill: "currentColor",
3568
3974
  xmlns: "http://www.w3.org/2000/svg"
3569
3975
  }, [
3570
- /* @__PURE__ */ h("path", {
3976
+ /* @__PURE__ */ _("path", {
3571
3977
  d: "M9.0237 9.14856C15.7144 9.14856 17.8736 2.22231 17.9649 1.91853L17.9345 1.94891C18.1778 1.15908 17.7216 0.308485 16.9309 0.0654591C16.1402 -0.177566 15.2886 0.278108 15.0453 1.06794C14.9845 1.25021 13.5551 6.11073 8.99328 6.11073C4.43147 6.11073 3.03249 1.43248 2.97167 1.21983C2.75878 0.399622 1.90724 -0.0560541 1.11652 0.156593C0.295397 0.369241 -0.160787 1.18945 0.0520982 2.00967C0.721165 4.4703 3.48869 9.14856 9.0237 9.14856Z",
3572
3978
  fill: "currentColor"
3573
3979
  })
3574
3980
  ])
3575
- ], -1)), ai = /* @__PURE__ */ j({
3981
+ ], -1)), ki = /* @__PURE__ */ $({
3576
3982
  __name: "VJoyToggle",
3577
3983
  props: {
3578
3984
  modelValue: {
@@ -3618,8 +4024,8 @@ const Kn = /* @__PURE__ */ k(Zn, [["__scopeId", "data-v-1d2165ca"]]), vt = (e) =
3618
4024
  t.value = !1;
3619
4025
  }
3620
4026
  };
3621
- return (o, i) => (u(), m("div", Qn, [
3622
- h("label", {
4027
+ return (o, i) => (s(), m("div", gi, [
4028
+ _("label", {
3623
4029
  class: S([
3624
4030
  "joy-toggle",
3625
4031
  {
@@ -3629,7 +4035,7 @@ const Kn = /* @__PURE__ */ k(Zn, [["__scopeId", "data-v-1d2165ca"]]), vt = (e) =
3629
4035
  }
3630
4036
  ])
3631
4037
  }, [
3632
- h("input", {
4038
+ _("input", {
3633
4039
  ref: "input",
3634
4040
  type: "checkbox",
3635
4041
  class: "joy-toggle__input",
@@ -3646,107 +4052,117 @@ const Kn = /* @__PURE__ */ k(Zn, [["__scopeId", "data-v-1d2165ca"]]), vt = (e) =
3646
4052
  (...r) => a.onFocus && a.onFocus(...r)),
3647
4053
  onBlur: i[2] || (i[2] = //@ts-ignore
3648
4054
  (...r) => a.onBlur && a.onBlur(...r))
3649
- }, null, 40, Yn),
3650
- h("p", Xn, [
3651
- ei,
3652
- h("span", ti, [
4055
+ }, null, 40, bi),
4056
+ _("p", wi, [
4057
+ Si,
4058
+ _("span", $i, [
3653
4059
  g(o.$slots, "default", {}, () => [
3654
- O(C(e.label), 1)
4060
+ B(L(e.label), 1)
3655
4061
  ], !0)
3656
4062
  ]),
3657
- li
4063
+ ji
3658
4064
  ])
3659
4065
  ], 2)
3660
4066
  ]));
3661
4067
  }
3662
4068
  });
3663
- const oi = /* @__PURE__ */ k(ai, [["__scopeId", "data-v-cf79d999"]]), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4069
+ const Vi = /* @__PURE__ */ k(ki, [["__scopeId", "data-v-cf79d999"]]), xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3664
4070
  __proto__: null,
3665
- VJoyAvailability: $t,
3666
- VJoyAvatar: Bt,
3667
- VJoyAvatarsList: Tt,
3668
- VJoyBadge: zt,
3669
- VJoyBadgeLevel: rl,
3670
- VJoyButton: lt,
3671
- VJoyCheckbox: je,
3672
- VJoyCompanyAvatar: kl,
3673
- VJoyCounter: Tl,
3674
- VJoyDividerCta: ql,
4071
+ VJoyAvailability: kt,
4072
+ VJoyAvatar: Pt,
4073
+ VJoyAvatarsList: Et,
4074
+ VJoyBadge: Ft,
4075
+ VJoyBadgeLevel: ul,
4076
+ VJoyButton: xe,
4077
+ VJoyCheckbox: Ce,
4078
+ VJoyCompanyAvatar: Vl,
4079
+ VJoyCounter: Jl,
4080
+ VJoyDividerCta: Nl,
3675
4081
  VJoyDropdown: Ha,
3676
- VJoyDropdownList: ut,
4082
+ VJoyDropdownList: ct,
3677
4083
  VJoyFilterBar: Ga,
3678
4084
  VJoyFilterBarButton: Ka,
3679
- VJoyFormError: dt,
3680
- VJoyHighlight: ao,
3681
- VJoyIcon: J,
3682
- VJoyInput: yo,
3683
- VJoyLabel: K,
3684
- VJoyLink: ho,
3685
- VJoyMultiCheckbox: wo,
3686
- VJoyPanel: Io,
3687
- VJoyPanelSection: Jo,
3688
- VJoyRadio: Mo,
3689
- VJoyRadioGroup: Ho,
3690
- VJoyRatingStars: rn,
3691
- VJoyScreenLoader: Ve,
3692
- VJoySelect: yn,
3693
- VJoySelectableItem: ct,
3694
- VJoySelectableItemGroup: gn,
3695
- VJoySeparator: wn,
3696
- VJoySpinner: $e,
3697
- VJoyTag: ft,
3698
- VJoyTagsList: xn,
3699
- VJoyTemplate: Rn,
3700
- VJoyTemplateShape: yt,
3701
- VJoyTextarea: Kn,
3702
- VJoyToggle: oi,
3703
- VJoyWrapper: $n
3704
- }, Symbol.toStringTag, { value: "Module" })), ri = {
4085
+ VJoyFormError: ft,
4086
+ VJoyFormFieldSkeleton: eo,
4087
+ VJoyHighlight: no,
4088
+ VJoyIcon: E,
4089
+ VJoyInput: po,
4090
+ VJoyLabel: ee,
4091
+ VJoyLink: go,
4092
+ VJoyMultiCheckbox: $o,
4093
+ VJoyPagination: Io,
4094
+ VJoyPanel: Fo,
4095
+ VJoyPanelSection: Ho,
4096
+ VJoyProgressBar: Uo,
4097
+ VJoyRadio: Xo,
4098
+ VJoyRadioGroup: ln,
4099
+ VJoyRatingStars: gn,
4100
+ VJoyScreenLoader: Ie,
4101
+ VJoySelect: kn,
4102
+ VJoySelectableItem: yt,
4103
+ VJoySelectableItemGroup: Bn,
4104
+ VJoySeparator: Tn,
4105
+ VJoySpinner: Ve,
4106
+ VJoyTab: Dn,
4107
+ VJoyTabs: Mn,
4108
+ VJoyTag: vt,
4109
+ VJoyTagsList: Zn,
4110
+ VJoyTemplate: ci,
4111
+ VJoyTemplateShape: pt,
4112
+ VJoyTextarea: hi,
4113
+ VJoyToggle: Vi,
4114
+ VJoyWrapper: Jn
4115
+ }, Symbol.toStringTag, { value: "Module" })), Li = {
3705
4116
  install: (e) => {
3706
- Object.entries(ni).forEach(([l, t]) => {
4117
+ Object.entries(xi).forEach(([l, t]) => {
3707
4118
  e.component(l, t);
3708
4119
  });
3709
4120
  }
3710
4121
  };
3711
4122
  export {
3712
- ri as JoyVuePlugin,
3713
- $t as VJoyAvailability,
3714
- Bt as VJoyAvatar,
3715
- Tt as VJoyAvatarsList,
3716
- zt as VJoyBadge,
3717
- rl as VJoyBadgeLevel,
3718
- lt as VJoyButton,
3719
- je as VJoyCheckbox,
3720
- kl as VJoyCompanyAvatar,
3721
- Tl as VJoyCounter,
3722
- ql as VJoyDividerCta,
4123
+ Li as JoyVuePlugin,
4124
+ kt as VJoyAvailability,
4125
+ Pt as VJoyAvatar,
4126
+ Et as VJoyAvatarsList,
4127
+ Ft as VJoyBadge,
4128
+ ul as VJoyBadgeLevel,
4129
+ xe as VJoyButton,
4130
+ Ce as VJoyCheckbox,
4131
+ Vl as VJoyCompanyAvatar,
4132
+ Jl as VJoyCounter,
4133
+ Nl as VJoyDividerCta,
3723
4134
  Ha as VJoyDropdown,
3724
- ut as VJoyDropdownList,
4135
+ ct as VJoyDropdownList,
3725
4136
  Ga as VJoyFilterBar,
3726
4137
  Ka as VJoyFilterBarButton,
3727
- dt as VJoyFormError,
3728
- ao as VJoyHighlight,
3729
- J as VJoyIcon,
3730
- yo as VJoyInput,
3731
- K as VJoyLabel,
3732
- ho as VJoyLink,
3733
- wo as VJoyMultiCheckbox,
3734
- Io as VJoyPanel,
3735
- Jo as VJoyPanelSection,
3736
- Mo as VJoyRadio,
3737
- Ho as VJoyRadioGroup,
3738
- rn as VJoyRatingStars,
3739
- Ve as VJoyScreenLoader,
3740
- yn as VJoySelect,
3741
- ct as VJoySelectableItem,
3742
- gn as VJoySelectableItemGroup,
3743
- wn as VJoySeparator,
3744
- $e as VJoySpinner,
3745
- ft as VJoyTag,
3746
- xn as VJoyTagsList,
3747
- Rn as VJoyTemplate,
3748
- yt as VJoyTemplateShape,
3749
- Kn as VJoyTextarea,
3750
- oi as VJoyToggle,
3751
- $n as VJoyWrapper
4138
+ ft as VJoyFormError,
4139
+ eo as VJoyFormFieldSkeleton,
4140
+ no as VJoyHighlight,
4141
+ E as VJoyIcon,
4142
+ po as VJoyInput,
4143
+ ee as VJoyLabel,
4144
+ go as VJoyLink,
4145
+ $o as VJoyMultiCheckbox,
4146
+ Io as VJoyPagination,
4147
+ Fo as VJoyPanel,
4148
+ Ho as VJoyPanelSection,
4149
+ Uo as VJoyProgressBar,
4150
+ Xo as VJoyRadio,
4151
+ ln as VJoyRadioGroup,
4152
+ gn as VJoyRatingStars,
4153
+ Ie as VJoyScreenLoader,
4154
+ kn as VJoySelect,
4155
+ yt as VJoySelectableItem,
4156
+ Bn as VJoySelectableItemGroup,
4157
+ Tn as VJoySeparator,
4158
+ Ve as VJoySpinner,
4159
+ Dn as VJoyTab,
4160
+ Mn as VJoyTabs,
4161
+ vt as VJoyTag,
4162
+ Zn as VJoyTagsList,
4163
+ ci as VJoyTemplate,
4164
+ pt as VJoyTemplateShape,
4165
+ hi as VJoyTextarea,
4166
+ Vi as VJoyToggle,
4167
+ Jn as VJoyWrapper
3752
4168
  };