@maltjoy/core-vue 3.11.0 → 3.13.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 k, computed as I, openBlock as y, createElementBlock as p, normalizeClass as w, createElementVNode as b, Fragment as H, createTextVNode as L, toDisplayString as C, createCommentVNode as g, createBlock as O, resolveDynamicComponent as re, mergeProps as W, withCtx as B, pushScopeId as Re, popScopeId as De, renderSlot as h, useAttrs as He, unref as x, ref as _, createVNode as R, getCurrentScope as st, onScopeDispose as ut, getCurrentInstance as dt, onMounted as Y, nextTick as We, watch as E, h as ct, reactive as ne, onBeforeUnmount as Ue, normalizeStyle as te, renderList as se, normalizeProps as me, guardReactiveProps as pe, Teleport as ft, createSlots as Ge, useSlots as Z, onBeforeMount as yt, inject as vt, provide as mt, withModifiers as pt } from "vue";
2
- const gt = ["title"], ht = /* @__PURE__ */ k({
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({
3
3
  __name: "VJoyAvailability",
4
4
  props: {
5
5
  /** Don't fill it and you'll only have the colored dot */
@@ -14,30 +14,30 @@ const gt = ["title"], ht = /* @__PURE__ */ k({
14
14
  isPartial: Boolean
15
15
  },
16
16
  setup(e) {
17
- const l = e, t = I(() => ({
17
+ const l = e, t = V(() => ({
18
18
  "joy-availability__dot": !0,
19
19
  "joy-availability--partial": l.isPartial,
20
20
  [l.status]: !0
21
21
  }));
22
- return (o, n) => (y(), p("div", {
23
- class: w(["joy-availability", { "joy-availability-has-label": !!e.label }]),
22
+ return (a, o) => (u(), m("div", {
23
+ class: S(["joy-availability", { "joy-availability-has-label": !!e.label }]),
24
24
  title: e.label || void 0
25
25
  }, [
26
- b("span", {
27
- class: w(t.value)
26
+ h("span", {
27
+ class: S(t.value)
28
28
  }, null, 2),
29
- e.label ? (y(), p(H, { key: 0 }, [
30
- L(C(e.label), 1)
31
- ], 64)) : g("", !0)
32
- ], 10, gt));
29
+ e.label ? (u(), m(W, { key: 0 }, [
30
+ O(C(e.label), 1)
31
+ ], 64)) : _("", !0)
32
+ ], 10, wt));
33
33
  }
34
34
  });
35
- const $ = (e, l) => {
35
+ const k = (e, l) => {
36
36
  const t = e.__vccOpts || e;
37
- for (const [o, n] of l)
38
- t[o] = n;
37
+ for (const [a, o] of l)
38
+ t[a] = o;
39
39
  return t;
40
- }, bt = /* @__PURE__ */ $(ht, [["__scopeId", "data-v-34b760ee"]]), q = /* @__PURE__ */ k({
40
+ }, $t = /* @__PURE__ */ k(St, [["__scopeId", "data-v-34b760ee"]]), J = /* @__PURE__ */ j({
41
41
  __name: "VJoyIcon",
42
42
  props: {
43
43
  name: {
@@ -54,27 +54,27 @@ const $ = (e, l) => {
54
54
  }
55
55
  },
56
56
  setup(e) {
57
- return (l, t) => (y(), p("span", {
58
- class: w(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
57
+ return (l, t) => (u(), m("span", {
58
+ class: S(["joy-icon", `joy-icon--${e.color}`, `joy-icon--${e.size}`])
59
59
  }, [
60
- b("i", {
61
- class: w(["icon", `icon-${e.name}`])
60
+ h("i", {
61
+ class: S(["icon", `icon-${e.name}`])
62
62
  }, null, 2)
63
63
  ], 2));
64
64
  }
65
65
  });
66
- const _t = (e) => (Re("data-v-b3dcdecc"), e = e(), De(), e), wt = {
66
+ const jt = (e) => (se("data-v-b3dcdecc"), e = e(), ue(), e), kt = {
67
67
  ref: "avatarEl",
68
68
  class: "joy-avatar__wrapper"
69
- }, St = ["src", "title", "alt"], jt = {
69
+ }, Vt = ["src", "title", "alt"], xt = {
70
70
  key: 0,
71
71
  class: "joy-avatar__strategy"
72
- }, kt = ["height"], $t = /* @__PURE__ */ _t(() => /* @__PURE__ */ b("path", {
72
+ }, Ct = ["height"], Lt = /* @__PURE__ */ jt(() => /* @__PURE__ */ h("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)), Vt = [
76
- $t
77
- ], xt = /* @__PURE__ */ k({
75
+ }, null, -1)), It = [
76
+ Lt
77
+ ], Ot = /* @__PURE__ */ j({
78
78
  __name: "VJoyAvatar",
79
79
  props: {
80
80
  /** 3 different sizes of avatar */
@@ -103,85 +103,85 @@ const _t = (e) => (Re("data-v-b3dcdecc"), e = e(), De(), e), wt = {
103
103
  },
104
104
  emits: ["click"],
105
105
  setup(e, { expose: l, emit: t }) {
106
- const o = e, n = I(() => o.size === "large" ? "medium" : o.size === "medium" ? "small" : o.size === "small" ? "xsmall" : "small"), r = I(() => o.link ? {
106
+ const a = e, o = V(() => a.size === "large" ? "medium" : a.size === "medium" ? "small" : a.size === "small" ? "xsmall" : "small"), i = V(() => a.link ? {
107
107
  type: "button"
108
- } : null), s = I(() => ({
108
+ } : null), r = V(() => ({
109
109
  "joy-avatar": !0,
110
- "joy-avatar__link": o.link,
111
- "joy-avatar__placeholder": a.value,
112
- [`joy-avatar__${o.size}`]: !0,
113
- [`joy-avatar__${o.color}`]: !0
114
- })), a = I(() => !o.fullName && !o.photoUrl && !o.totalNumber), d = I(() => {
115
- function u(i) {
116
- return i.replace(/[';,:()]/g, "").charAt(0);
110
+ "joy-avatar__link": a.link,
111
+ "joy-avatar__placeholder": n.value,
112
+ [`joy-avatar__${a.size}`]: !0,
113
+ [`joy-avatar__${a.color}`]: !0
114
+ })), n = V(() => !a.fullName && !a.photoUrl && !a.totalNumber), d = V(() => {
115
+ function c(f) {
116
+ return f.replace(/[';,:()]/g, "").charAt(0);
117
117
  }
118
- let v = o.fullName.split(" ");
119
- return v = v.slice(0, 2), v.forEach((i, c) => {
120
- v[c] = u(i);
118
+ let v = a.fullName.split(" ");
119
+ return v = v.slice(0, 2), v.forEach((f, s) => {
120
+ v[s] = c(f);
121
121
  }), v.join("").toUpperCase();
122
122
  });
123
- function m() {
123
+ function y() {
124
124
  t("click");
125
125
  }
126
126
  return l({
127
- isAnonymous: a,
127
+ isAnonymous: n,
128
128
  initials: d
129
- }), (u, v) => (y(), p("div", wt, [
130
- (y(), O(re(e.link ? "button" : "div"), W(r.value, {
131
- class: [s.value],
132
- onClick: m
129
+ }), (c, v) => (u(), m("div", kt, [
130
+ (u(), x(re(e.link ? "button" : "div"), G(i.value, {
131
+ class: [r.value],
132
+ onClick: y
133
133
  }), {
134
134
  default: B(() => [
135
- a.value ? (y(), O(q, {
135
+ n.value ? (u(), x(J, {
136
136
  key: 0,
137
137
  name: "user-photo",
138
138
  color: "white",
139
- size: n.value
140
- }, null, 8, ["size"])) : g("", !0),
141
- e.photoUrl ? (y(), p("img", {
139
+ size: o.value
140
+ }, null, 8, ["size"])) : _("", !0),
141
+ e.photoUrl ? (u(), 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, St)) : g("", !0),
148
- e.fullName ? (y(), p(H, { key: 2 }, [
149
- L(C(d.value), 1)
150
- ], 64)) : g("", !0),
151
- e.totalNumber ? (y(), p(H, { key: 3 }, [
152
- L(C("+" + e.totalNumber), 1)
153
- ], 64)) : g("", !0)
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)
154
154
  ]),
155
155
  _: 1
156
156
  }, 16, ["class"])),
157
- e.profile === "strategy" ? (y(), p("span", jt, [
158
- (y(), p("svg", {
157
+ e.profile === "strategy" ? (u(), m("span", xt, [
158
+ (u(), 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
- }, Vt, 8, kt))
165
- ])) : g("", !0)
164
+ }, It, 8, Ct))
165
+ ])) : _("", !0)
166
166
  ], 512));
167
167
  }
168
168
  });
169
- const It = /* @__PURE__ */ $(xt, [["__scopeId", "data-v-b3dcdecc"]]), Ot = /* @__PURE__ */ k({
169
+ const Bt = /* @__PURE__ */ k(Ot, [["__scopeId", "data-v-b3dcdecc"]]), Et = /* @__PURE__ */ j({
170
170
  __name: "VJoyAvatarsList",
171
171
  props: {
172
172
  /** Renders a compact list of avatars */
173
173
  compress: Boolean
174
174
  },
175
175
  setup(e) {
176
- return (l, t) => (y(), p("div", {
176
+ return (l, t) => (u(), m("div", {
177
177
  ref: "avatarsList",
178
- class: w(["joy-avatars-list", { "joy-avatars-list--compressed": e.compress }])
178
+ class: S(["joy-avatars-list", { "joy-avatars-list--compressed": e.compress }])
179
179
  }, [
180
- h(l.$slots, "default", {}, void 0, !0)
180
+ g(l.$slots, "default", {}, void 0, !0)
181
181
  ], 2));
182
182
  }
183
183
  });
184
- const Ct = /* @__PURE__ */ $(Ot, [["__scopeId", "data-v-46e4547e"]]), Bt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], Lt = /* @__PURE__ */ k({
184
+ const Tt = /* @__PURE__ */ k(Et, [["__scopeId", "data-v-46e4547e"]]), Jt = ["info", "gray", "green", "orange", "red", "teal", "pink", "dark-blue", "yellow"], Pt = /* @__PURE__ */ j({
185
185
  __name: "VJoyBadge",
186
186
  props: {
187
187
  /**
@@ -204,38 +204,196 @@ const Ct = /* @__PURE__ */ $(Ot, [["__scopeId", "data-v-46e4547e"]]), Bt = ["inf
204
204
  variant: {
205
205
  type: String,
206
206
  validator(e) {
207
- return Bt.includes(e);
207
+ return Jt.includes(e);
208
208
  }
209
209
  }
210
210
  },
211
211
  setup(e) {
212
- return (l, t) => (y(), p("span", {
213
- class: w(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
212
+ return (l, t) => (u(), m("span", {
213
+ class: S(["joy-badge", `joy-badge__${e.variant}`, { "joy-badge--with-bulletpoint": e.bulletpoint }]),
214
214
  role: "status"
215
215
  }, [
216
- h(l.$slots, "default", {}, () => [
217
- L(C(e.label), 1)
216
+ g(l.$slots, "default", {}, () => [
217
+ O(C(e.label), 1)
218
218
  ], !0)
219
219
  ], 2));
220
220
  }
221
221
  });
222
- const Et = /* @__PURE__ */ $(Lt, [["__scopeId", "data-v-1ed08e27"]]), Jt = ["teal", "white"], zt = /* @__PURE__ */ k({
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", {
225
+ fill: "#264FFA",
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", {
228
+ fill: "#FC5757",
229
+ d: "M.00195312 6.54284.00671145 18 5.7158 12.2962.00195312 6.54284Z"
230
+ }, null, -1)), Mt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
231
+ fill: "#FFC200",
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 = {
238
+ key: 1,
239
+ class: "joy-badge-level__highpotential",
240
+ xmlns: "http://www.w3.org/2000/svg",
241
+ fill: "none",
242
+ viewBox: "0 0 12 14"
243
+ }, Ht = /* @__PURE__ */ R(() => /* @__PURE__ */ h("g", { "clip-path": "url(#a)" }, [
244
+ /* @__PURE__ */ h("path", {
245
+ fill: "#FFC200",
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
+ })
248
+ ], -1)), Dt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("defs", null, [
249
+ /* @__PURE__ */ h("clipPath", { id: "a" }, [
250
+ /* @__PURE__ */ h("path", {
251
+ fill: "#fff",
252
+ d: "M0 0h12v13H0z",
253
+ transform: "translate(0 .5)"
254
+ })
255
+ ])
256
+ ], -1)), Ut = [
257
+ Ht,
258
+ Dt
259
+ ], Wt = {
260
+ key: 2,
261
+ class: "joy-badge-level__high-potential-auto",
262
+ xmlns: "http://www.w3.org/2000/svg",
263
+ viewBox: "0 0 64 64",
264
+ "enable-background": "new 0 0 64 64"
265
+ }, Gt = /* @__PURE__ */ R(() => /* @__PURE__ */ h("path", {
266
+ fill: "#EF4E16",
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", {
269
+ fill: "#F9B700",
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", {
272
+ fill: "#FFE463",
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", {
275
+ fill: "#FFF7D1",
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,
280
+ Kt,
281
+ Qt
282
+ ], Xt = {
283
+ key: 3,
284
+ class: "joy-badge-level__maltlinker",
285
+ xmlns: "http://www.w3.org/2000/svg",
286
+ fill: "none",
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 = {
291
+ key: 4,
292
+ class: "joy-badge-level__highpotential-program",
293
+ xmlns: "http://www.w3.org/2000/svg",
294
+ fill: "none",
295
+ viewBox: "0 0 12 14"
296
+ }, al = /* @__PURE__ */ R(() => /* @__PURE__ */ h("g", { "clip-path": "url(#a)" }, [
297
+ /* @__PURE__ */ h("path", {
298
+ fill: "#FFC200",
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
+ })
301
+ ], -1)), ol = /* @__PURE__ */ R(() => /* @__PURE__ */ h("defs", null, [
302
+ /* @__PURE__ */ h("clipPath", { id: "a" }, [
303
+ /* @__PURE__ */ h("path", {
304
+ fill: "#fff",
305
+ d: "M0 0h12v13H0z",
306
+ transform: "translate(0 .5)"
307
+ })
308
+ ])
309
+ ], -1)), nl = [
310
+ al,
311
+ ol
312
+ ], il = /* @__PURE__ */ j({
313
+ __name: "VJoyBadgeLevel",
314
+ props: {
315
+ /** Badge type. HIGH_POTENTIAL, SUPERMALTER, etc... */
316
+ type: {
317
+ type: String,
318
+ required: !0
319
+ },
320
+ /** If supermalter type is given, specify the level (from 1 to 3) */
321
+ superMalterLevel: {
322
+ type: Number,
323
+ default: 1
324
+ },
325
+ /** Display the default badge label */
326
+ visibleText: {
327
+ type: Boolean,
328
+ default: !0
329
+ }
330
+ },
331
+ setup(e) {
332
+ const l = e, t = V(() => {
333
+ switch (l.type) {
334
+ case ne.HIGH_POTENTIAL:
335
+ case T.HIGH_POTENTIAL:
336
+ return "High Potential";
337
+ case T.HIGH_POTENTIAL_AUTO:
338
+ return "High Potential Auto";
339
+ case T.MALT_LINKER:
340
+ return "Malt Linker";
341
+ case T.NEW:
342
+ return "New";
343
+ case T.SUPER_MALTER:
344
+ return "Supermalter";
345
+ case T.VERIFIED:
346
+ return "Verified";
347
+ default:
348
+ return "Supermalter";
349
+ }
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", {
353
+ key: r,
354
+ class: "joy-badge-level__supermalter",
355
+ xmlns: "http://www.w3.org/2000/svg",
356
+ fill: "none",
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", {
364
+ class: S([
365
+ {
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
370
+ }
371
+ ])
372
+ }, [
373
+ e.visibleText ? g(a.$slots, "default", { key: 0 }, () => [
374
+ O(C(t.value), 1)
375
+ ], !0) : _("", !0)
376
+ ], 2)
377
+ ]));
378
+ }
379
+ });
380
+ const rl = /* @__PURE__ */ k(il, [["__scopeId", "data-v-f258a344"]]), sl = ["teal", "white"], ul = /* @__PURE__ */ j({
223
381
  __name: "VJoySpinner",
224
382
  props: {
225
383
  color: {
226
384
  type: String,
227
385
  validator(e) {
228
- return Jt.includes(e);
386
+ return sl.includes(e);
229
387
  }
230
388
  }
231
389
  },
232
390
  setup(e) {
233
- return (l, t) => (y(), p("div", {
234
- class: w(["joy-spinner", `joy-spinner_${e.color}`])
391
+ return (l, t) => (u(), m("div", {
392
+ class: S(["joy-spinner", `joy-spinner_${e.color}`])
235
393
  }, null, 2));
236
394
  }
237
395
  });
238
- const ge = /* @__PURE__ */ $(zt, [["__scopeId", "data-v-616a29d0"]]), Tt = ["primary", "secondary"], Pt = ["neutral", "success", "info", "warning", "error"], qt = ["main", "admin", "ghost", "white"], At = [...Tt, ...qt], Ft = ["large", "medium", "small", "xsmall", "xxsmall"], Mt = { class: "joy-button--slot" }, Nt = /* @__PURE__ */ k({
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({
239
397
  __name: "VJoyButton",
240
398
  props: {
241
399
  /**
@@ -271,7 +429,7 @@ const ge = /* @__PURE__ */ $(zt, [["__scopeId", "data-v-616a29d0"]]), Tt = ["pri
271
429
  type: String,
272
430
  default: "primary",
273
431
  validator(e) {
274
- return At.includes(e);
432
+ return yl.includes(e);
275
433
  }
276
434
  },
277
435
  /** Button or Link size */
@@ -279,12 +437,12 @@ const ge = /* @__PURE__ */ $(zt, [["__scopeId", "data-v-616a29d0"]]), Tt = ["pri
279
437
  type: String,
280
438
  default: "medium",
281
439
  validator(e) {
282
- return Ft.includes(e);
440
+ return vl.includes(e);
283
441
  }
284
442
  }
285
443
  },
286
444
  setup(e) {
287
- const l = e, t = He(), o = I(() => {
445
+ const l = e, t = be(), a = V(() => {
288
446
  switch (l.size) {
289
447
  case "xxsmall":
290
448
  return "xxsmall";
@@ -295,11 +453,11 @@ const ge = /* @__PURE__ */ $(zt, [["__scopeId", "data-v-616a29d0"]]), Tt = ["pri
295
453
  default:
296
454
  return "small";
297
455
  }
298
- }), n = I(() => ["white", "ghost", "secondary"].includes(l.variant) ? "teal" : "white");
299
- return (r, s) => (y(), O(re(x(t).href ? "a" : "button"), {
300
- disabled: e.loading || x(t).disabled,
301
- type: x(t).type || "button",
302
- class: w([
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",
460
+ class: S([
303
461
  "joy-button",
304
462
  `joy-button_${e.variant}`,
305
463
  `joy-button_${e.size}`,
@@ -310,33 +468,33 @@ const ge = /* @__PURE__ */ $(zt, [["__scopeId", "data-v-616a29d0"]]), Tt = ["pri
310
468
  ])
311
469
  }, {
312
470
  default: B(() => [
313
- e.icon && e.iconPosition === "left" ? (y(), O(q, {
471
+ e.icon && e.iconPosition === "left" ? (u(), x(J, {
314
472
  key: 0,
315
473
  class: "joy-button_icon joy-button_icon--left",
316
474
  name: e.icon,
317
- size: o.value
318
- }, null, 8, ["name", "size"])) : g("", !0),
319
- e.loading ? (y(), O(ge, {
475
+ size: a.value
476
+ }, null, 8, ["name", "size"])) : _("", !0),
477
+ e.loading ? (u(), x($e, {
320
478
  key: 1,
321
- color: n.value
322
- }, null, 8, ["color"])) : g("", !0),
323
- b("span", Mt, [
324
- h(r.$slots, "default", {}, () => [
325
- L(C(e.label), 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)
326
484
  ], !0)
327
485
  ]),
328
- e.icon && e.iconPosition === "right" ? (y(), O(q, {
486
+ e.icon && e.iconPosition === "right" ? (u(), x(J, {
329
487
  key: 2,
330
488
  class: "joy-button_icon joy-button_icon--right",
331
489
  name: e.icon,
332
- size: o.value
333
- }, null, 8, ["name", "size"])) : g("", !0)
490
+ size: a.value
491
+ }, null, 8, ["name", "size"])) : _("", !0)
334
492
  ]),
335
493
  _: 3
336
494
  }, 8, ["disabled", "type", "class"]));
337
495
  }
338
496
  });
339
- const Ke = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-ae0676bb"]]), Rt = ["aria-checked", "aria-hidden"], Dt = { class: "joy-checkbox__input-wrapper" }, Ht = ["id", "name", "disabled", "checked", "required", "aria-checked", "value", "indeterminate"], Wt = { class: "joy-checkbox__content-wrapper" }, Ut = { class: "joy-checkbox__content" }, Gt = /* @__PURE__ */ k({
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({
340
498
  __name: "VJoyCheckbox",
341
499
  props: {
342
500
  /** 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 */
@@ -391,42 +549,42 @@ const Ke = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-ae0676bb"]]), Rt = ["ari
391
549
  },
392
550
  emits: ["update:checked", "focus", "blur"],
393
551
  setup(e, { expose: l, emit: t }) {
394
- const o = e, n = _(), r = _(o.indeterminate), s = _(o.invalid), a = _(!1), d = {
395
- onChange: (m) => {
396
- const u = m.target.checked;
397
- r.value = !1, s.value = !1, t("update:checked", u);
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);
398
556
  },
399
557
  onFocus: () => {
400
- a.value = !0, t("focus");
558
+ n.value = !0, t("focus");
401
559
  },
402
560
  onBlur: () => {
403
- a.value = !1, t("blur");
561
+ n.value = !1, t("blur");
404
562
  }
405
563
  };
406
564
  return l({
407
- isIndeterminate: r
408
- }), (m, u) => (y(), p("div", {
565
+ isIndeterminate: i
566
+ }), (y, c) => (u(), m("div", {
409
567
  class: "joy-checkbox__wrapper",
410
568
  "aria-checked": e.checked,
411
569
  "aria-hidden": e.disabled
412
570
  }, [
413
- b("label", {
414
- class: w([
571
+ h("label", {
572
+ class: S([
415
573
  "joy-checkbox",
416
574
  {
417
575
  "joy-checkbox__checked": e.checked,
418
- "joy-checkbox__indeterminate": r.value,
576
+ "joy-checkbox__indeterminate": i.value,
419
577
  "joy-checkbox__disabled": e.disabled,
420
- "joy-checkbox__invalid": s.value,
421
- "joy-checkbox__focusing": a.value && e.displayFocus
578
+ "joy-checkbox__invalid": r.value,
579
+ "joy-checkbox__focusing": n.value && e.displayFocus
422
580
  }
423
581
  ])
424
582
  }, [
425
- b("div", Dt, [
426
- b("input", {
583
+ h("div", _l, [
584
+ h("input", {
427
585
  id: e.id,
428
586
  ref_key: "input",
429
- ref: n,
587
+ ref: o,
430
588
  type: "checkbox",
431
589
  class: "joy-checkbox__input",
432
590
  role: "checkbox",
@@ -436,34 +594,74 @@ const Ke = /* @__PURE__ */ $(Nt, [["__scopeId", "data-v-ae0676bb"]]), Rt = ["ari
436
594
  required: e.required,
437
595
  "aria-checked": e.checked,
438
596
  value: e.value,
439
- indeterminate: r.value,
440
- onChange: u[0] || (u[0] = //@ts-ignore
597
+ indeterminate: i.value,
598
+ onChange: c[0] || (c[0] = //@ts-ignore
441
599
  (...v) => d.onChange && d.onChange(...v)),
442
- onFocus: u[1] || (u[1] = //@ts-ignore
600
+ onFocus: c[1] || (c[1] = //@ts-ignore
443
601
  (...v) => d.onFocus && d.onFocus(...v)),
444
- onBlur: u[2] || (u[2] = //@ts-ignore
602
+ onBlur: c[2] || (c[2] = //@ts-ignore
445
603
  (...v) => d.onBlur && d.onBlur(...v))
446
- }, null, 40, Ht)
604
+ }, null, 40, gl)
447
605
  ]),
448
- b("div", Wt, [
449
- h(m.$slots, "default", {}, () => [
450
- L(C(e.label), 1)
606
+ h("div", bl, [
607
+ g(y.$slots, "default", {}, () => [
608
+ O(C(e.label), 1)
451
609
  ], !0),
452
- b("div", Ut, [
453
- h(m.$slots, "checkbox-content", {}, void 0, !0)
610
+ h("div", wl, [
611
+ g(y.$slots, "checkbox-content", {}, void 0, !0)
454
612
  ])
455
613
  ])
456
614
  ], 2)
457
- ], 8, Rt));
615
+ ], 8, hl));
458
616
  }
459
617
  });
460
- const he = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-27cc9d8c"]]), Kt = { class: "joy-counter" }, Qt = ["aria-label", "disabled"], Yt = { class: "joy-counter__input-wrapper" }, Zt = ["id", "min", "max", "aria-invalid", "name", "required", "value"], Xt = ["aria-label", "disabled"], el = {
618
+ const je = /* @__PURE__ */ k(Sl, [["__scopeId", "data-v-27cc9d8c"]]), $l = ["src", "alt", "title"], jl = /* @__PURE__ */ j({
619
+ __name: "VJoyCompanyAvatar",
620
+ props: {
621
+ imgSrc: String,
622
+ imgAlt: String,
623
+ companyName: String,
624
+ size: {
625
+ type: String,
626
+ default: "large"
627
+ }
628
+ },
629
+ setup(e) {
630
+ const l = e, t = V(() => {
631
+ switch (l.size) {
632
+ case "large":
633
+ return "small";
634
+ case "medium":
635
+ return "xsmall";
636
+ case "small":
637
+ return "xxsmall";
638
+ default:
639
+ return "xsmall";
640
+ }
641
+ });
642
+ return (a, o) => (u(), m("div", {
643
+ class: S(["joy-company-avatar", `joy-company-avatar--${e.size}`])
644
+ }, [
645
+ e.imgSrc ? (u(), m("img", {
646
+ key: 0,
647
+ src: e.imgSrc,
648
+ alt: e.imgAlt || e.companyName,
649
+ title: e.companyName
650
+ }, null, 8, $l)) : (u(), x($(J), {
651
+ key: 1,
652
+ name: "company-placeholder",
653
+ size: t.value
654
+ }, null, 8, ["size"]))
655
+ ], 2));
656
+ }
657
+ });
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 = {
461
659
  key: 0,
462
660
  class: "joy-counter_error"
463
- }, tl = {
661
+ }, Bl = {
464
662
  inheritAttrs: !1
465
- }, ll = /* @__PURE__ */ k({
466
- ...tl,
663
+ }, El = /* @__PURE__ */ j({
664
+ ...Bl,
467
665
  __name: "VJoyCounter",
468
666
  props: {
469
667
  /** Removes any interactivity */
@@ -530,46 +728,46 @@ const he = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-27cc9d8c"]]), Kt = { cla
530
728
  },
531
729
  emits: ["update:modelValue"],
532
730
  setup(e, { expose: l, emit: t }) {
533
- const o = e, n = _(!1), r = _(!1);
534
- function s() {
535
- const f = m(!1);
536
- f >= 0 ? t("update:modelValue", f <= o.min ? o.min : f) : t("update:modelValue", 0), d();
731
+ const a = e, o = w(!1), i = w(!1);
732
+ function r() {
733
+ const p = y(!1);
734
+ p >= 0 ? t("update:modelValue", p <= a.min ? a.min : p) : t("update:modelValue", 0), d();
537
735
  }
538
- function a() {
539
- const f = m();
540
- o.max && f <= o.max ? t("update:modelValue", f >= o.max ? o.max : f) : o.max && f > o.max ? t("update:modelValue", o.max) : t("update:modelValue", f), d();
736
+ 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();
541
739
  }
542
740
  function d() {
543
- n.value = !u();
741
+ o.value = !c();
544
742
  }
545
- function m(f = !0) {
546
- const S = o.step.toString().split("."), j = S.length === 2 ? S[1].length : 0;
547
- return parseFloat(f ? (o.modelValue + o.step).toFixed(j) : (o.modelValue - o.step).toFixed(j));
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));
548
746
  }
549
- function u() {
550
- return v() && i();
747
+ function c() {
748
+ return v() && f();
551
749
  }
552
750
  function v() {
553
- return !o.max || o.modelValue <= o.max;
751
+ return !a.max || a.modelValue <= a.max;
554
752
  }
555
- function i() {
556
- return o.min <= o.modelValue;
753
+ function f() {
754
+ return a.min <= a.modelValue;
557
755
  }
558
- const c = {
559
- onInput: (f) => {
560
- t("update:modelValue", +f.target.value || 0), n.value = !1;
756
+ const s = {
757
+ onInput: (p) => {
758
+ t("update:modelValue", +p.target.value || 0), o.value = !1;
561
759
  },
562
760
  onFocus: () => {
563
- r.value = !0;
761
+ i.value = !0;
564
762
  },
565
763
  onBlur: () => {
566
- r.value = !1, d();
764
+ i.value = !1, d();
567
765
  }
568
766
  };
569
767
  return l({
570
- props: o
571
- }), (f, S) => (y(), p("div", Kt, [
572
- e.label ? (y(), O(x(G), {
768
+ props: a
769
+ }), (p, b) => (u(), m("div", Vl, [
770
+ e.label ? (u(), x($(K), {
573
771
  key: 0,
574
772
  for: e.id,
575
773
  required: e.required && e.requiredMark,
@@ -577,246 +775,272 @@ const he = /* @__PURE__ */ $(Gt, [["__scopeId", "data-v-27cc9d8c"]]), Kt = { cla
577
775
  size: e.labelSize
578
776
  }, {
579
777
  default: B(() => [
580
- h(f.$slots, "default", {}, () => [
581
- L(C(e.label), 1)
778
+ g(p.$slots, "default", {}, () => [
779
+ O(C(e.label), 1)
582
780
  ], !0)
583
781
  ]),
584
782
  _: 3
585
- }, 8, ["for", "required", "optional-label", "size"])) : g("", !0),
586
- b("div", {
587
- class: w(["joy-counter__wrapper", { "joy-counter--focusing": r.value }])
783
+ }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
784
+ h("div", {
785
+ class: S(["joy-counter__wrapper", { "joy-counter--focusing": i.value }])
588
786
  }, [
589
- b("button", {
787
+ h("button", {
590
788
  class: "joy-counter__decrement",
591
789
  type: "button",
592
790
  "aria-label": e.labelDecrement,
593
791
  disabled: e.modelValue <= e.min,
594
- onClick: s
792
+ onClick: r
595
793
  }, [
596
- R(x(q), { name: "minus" })
597
- ], 8, Qt),
598
- b("div", Yt, [
599
- b("input", W({
794
+ U($(J), { name: "minus" })
795
+ ], 8, xl),
796
+ h("div", Cl, [
797
+ h("input", G({
600
798
  id: e.id,
601
799
  ref: "input",
602
800
  type: "number",
603
- class: { "joy-counter__invalid": e.invalid || n.value },
801
+ class: { "joy-counter__invalid": e.invalid || o.value },
604
802
  min: e.min,
605
803
  max: e.max,
606
- "aria-invalid": e.invalid || n.value,
804
+ "aria-invalid": e.invalid || o.value,
607
805
  name: e.name,
608
806
  required: e.required,
609
807
  step: "any",
610
808
  value: e.modelValue
611
- }, f.$attrs, {
612
- onInput: S[0] || (S[0] = //@ts-ignore
613
- (...j) => c.onInput && c.onInput(...j)),
614
- onBlur: S[1] || (S[1] = //@ts-ignore
615
- (...j) => c.onBlur && c.onBlur(...j)),
616
- onFocus: S[2] || (S[2] = //@ts-ignore
617
- (...j) => c.onFocus && c.onFocus(...j))
618
- }), null, 16, Zt)
809
+ }, p.$attrs, {
810
+ onInput: b[0] || (b[0] = //@ts-ignore
811
+ (...I) => s.onInput && s.onInput(...I)),
812
+ onBlur: b[1] || (b[1] = //@ts-ignore
813
+ (...I) => s.onBlur && s.onBlur(...I)),
814
+ onFocus: b[2] || (b[2] = //@ts-ignore
815
+ (...I) => s.onFocus && s.onFocus(...I))
816
+ }), null, 16, Ll)
619
817
  ]),
620
- b("button", {
818
+ h("button", {
621
819
  class: "joy-counter__increment",
622
820
  type: "button",
623
821
  "aria-label": e.labelIncrement,
624
822
  disabled: e.max ? e.modelValue >= e.max : !1,
625
- onClick: a
823
+ onClick: n
626
824
  }, [
627
- R(x(q), { name: "add" })
628
- ], 8, Xt),
629
- e.invalid && e.errorMessage ? (y(), p("div", el, [
630
- R(x(ot), { "no-html-error-text": e.errorMessage }, null, 8, ["no-html-error-text"])
631
- ])) : g("", !0)
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)
632
830
  ], 2)
633
831
  ]));
634
832
  }
635
833
  });
636
- const ol = /* @__PURE__ */ $(ll, [["__scopeId", "data-v-a59ac0ad"]]);
637
- var we;
638
- const X = typeof window < "u", Qe = (e) => typeof e == "string", A = () => {
639
- }, ie = X && ((we = window == null ? void 0 : window.navigator) == null ? void 0 : we.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
640
- function T(e) {
641
- return typeof e == "function" ? e() : x(e);
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({
835
+ __name: "VJoyDividerCta",
836
+ props: {
837
+ disabled: {
838
+ type: Boolean,
839
+ default: !1
840
+ }
841
+ },
842
+ setup(e) {
843
+ return (l, t) => (u(), m("button", {
844
+ type: "button",
845
+ class: S(["joy-divider-cta", { "joy-divider-cta__disabled": e.disabled }]),
846
+ disabled: e.disabled
847
+ }, [
848
+ h("div", Pl, [
849
+ U(J, { name: "add" })
850
+ ]),
851
+ h("div", zl, [
852
+ h("p", Al, [
853
+ g(l.$slots, "default", {}, void 0, !0)
854
+ ]),
855
+ g(l.$slots, "divider-content", {}, void 0, !0)
856
+ ])
857
+ ], 10, Jl));
858
+ }
859
+ });
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);
864
+ function A(e) {
865
+ return typeof e == "function" ? e() : $(e);
642
866
  }
643
- function Ye(e, l) {
644
- function t(...o) {
645
- return new Promise((n, r) => {
646
- Promise.resolve(e(() => l.apply(this, o), { fn: l, thisArg: this, args: o })).then(n).catch(r);
867
+ function ot(e, l) {
868
+ function t(...a) {
869
+ return new Promise((o, i) => {
870
+ Promise.resolve(e(() => l.apply(this, a), { fn: l, thisArg: this, args: a })).then(o).catch(i);
647
871
  });
648
872
  }
649
873
  return t;
650
874
  }
651
- function al(e, l = {}) {
652
- let t, o, n = A;
653
- const r = (a) => {
654
- clearTimeout(a), n(), n = A;
875
+ function Ml(e, l = {}) {
876
+ let t, a, o = M;
877
+ const i = (n) => {
878
+ clearTimeout(n), o(), o = M;
655
879
  };
656
- return (a) => {
657
- const d = T(e), m = T(l.maxWait);
658
- return t && r(t), d <= 0 || m !== void 0 && m <= 0 ? (o && (r(o), o = null), Promise.resolve(a())) : new Promise((u, v) => {
659
- n = l.rejectOnCancel ? v : u, m && !o && (o = setTimeout(() => {
660
- t && r(t), o = null, u(a());
661
- }, m)), t = setTimeout(() => {
662
- o && r(o), o = null, u(a());
880
+ 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());
663
887
  }, d);
664
888
  });
665
889
  };
666
890
  }
667
- function nl(e, l = !0, t = !0, o = !1) {
668
- let n = 0, r, s = !0, a = A, d;
669
- const m = () => {
670
- r && (clearTimeout(r), r = void 0, a(), a = A);
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);
671
895
  };
672
896
  return (v) => {
673
- const i = T(e), c = Date.now() - n, f = () => d = v();
674
- return m(), i <= 0 ? (n = Date.now(), f()) : (c > i && (t || !s) ? (n = Date.now(), f()) : l && (d = new Promise((S, j) => {
675
- a = o ? j : S, r = setTimeout(() => {
676
- n = Date.now(), s = !0, S(f()), m();
677
- }, Math.max(0, i - c));
678
- })), !t && !r && (r = setTimeout(() => s = !0, i)), s = !1, d);
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);
679
903
  };
680
904
  }
681
- const N = {
905
+ const H = {
682
906
  mounted: "mounted",
683
907
  updated: "updated",
684
908
  unmounted: "unmounted"
685
909
  };
686
- function il(e) {
910
+ function Rl(e) {
687
911
  return e;
688
912
  }
689
- function ee(e) {
690
- return st() ? (ut(e), !0) : !1;
913
+ function le(e) {
914
+ return mt() ? (pt(e), !0) : !1;
691
915
  }
692
- function rl(e, l = 200, t = {}) {
693
- return Ye(al(l, t), e);
916
+ function Hl(e, l = 200, t = {}) {
917
+ return ot(Ml(l, t), e);
694
918
  }
695
- function sl(e, l = 200, t = !1, o = !0, n = !1) {
696
- return Ye(nl(l, t, o, n), e);
919
+ function Dl(e, l = 200, t = !1, a = !0, o = !1) {
920
+ return ot(Nl(l, t, a, o), e);
697
921
  }
698
- function ul(e) {
699
- return typeof e == "function" ? I(e) : _(e);
922
+ function Ul(e) {
923
+ return typeof e == "function" ? V(e) : w(e);
700
924
  }
701
- function Ze(e, l = !0) {
702
- dt() ? Y(e) : l ? e() : We(e);
925
+ function nt(e, l = !0) {
926
+ ht() ? X(e) : l ? e() : Qe(e);
703
927
  }
704
928
  function Q(e) {
705
929
  var l;
706
- const t = T(e);
930
+ const t = A(e);
707
931
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
708
932
  }
709
- const be = X ? window : void 0;
710
- X && window.document;
711
- X && window.navigator;
712
- X && window.location;
713
- function ue(...e) {
714
- let l, t, o, n;
715
- if (Qe(e[0]) || Array.isArray(e[0]) ? ([t, o, n] = e, l = be) : [l, t, o, n] = e, !l)
716
- return A;
717
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
718
- const r = [], s = () => {
719
- r.forEach((u) => u()), r.length = 0;
720
- }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), d = E(() => [Q(l), T(n)], ([u, v]) => {
721
- s(), u && r.push(...t.flatMap((i) => o.map((c) => a(u, i, c, v))));
722
- }, { immediate: !0, flush: "post" }), m = () => {
723
- d(), s();
933
+ const ke = te ? window : void 0;
934
+ te && window.document;
935
+ te && window.navigator;
936
+ te && window.location;
937
+ function ye(...e) {
938
+ 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;
941
+ Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
942
+ 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();
724
948
  };
725
- return ee(m), m;
949
+ return le(y), y;
726
950
  }
727
- let Se = !1;
728
- function dl(e, l, t = {}) {
729
- const { window: o = be, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = t;
730
- if (!o)
951
+ let Le = !1;
952
+ function Wl(e, l, t = {}) {
953
+ const { window: a = ke, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
954
+ if (!a)
731
955
  return;
732
- ie && !Se && (Se = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", A)));
733
- let a = !0;
734
- const d = (i) => n.some((c) => {
735
- if (typeof c == "string")
736
- return Array.from(o.document.querySelectorAll(c)).some((f) => f === i.target || i.composedPath().includes(f));
956
+ ie && !Le && (Le = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", M)));
957
+ 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));
737
961
  {
738
- const f = Q(c);
739
- return f && (i.target === f || i.composedPath().includes(f));
740
- }
741
- }), u = [
742
- ue(o, "click", (i) => {
743
- const c = Q(e);
744
- if (!(!c || c === i.target || i.composedPath().includes(c))) {
745
- if (i.detail === 0 && (a = !d(i)), !a) {
746
- a = !0;
962
+ const p = Q(s);
963
+ return p && (f.target === p || f.composedPath().includes(p));
964
+ }
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) {
970
+ n = !0;
747
971
  return;
748
972
  }
749
- l(i);
973
+ l(f);
750
974
  }
751
- }, { passive: !0, capture: r }),
752
- ue(o, "pointerdown", (i) => {
753
- const c = Q(e);
754
- c && (a = !i.composedPath().includes(c) && !d(i));
975
+ }, { passive: !0, capture: i }),
976
+ ye(a, "pointerdown", (f) => {
977
+ const s = Q(e);
978
+ s && (n = !f.composedPath().includes(s) && !d(f));
755
979
  }, { passive: !0 }),
756
- s && ue(o, "blur", (i) => {
757
- var c;
758
- const f = Q(e);
759
- ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && l(i);
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);
760
984
  })
761
985
  ].filter(Boolean);
762
- return () => u.forEach((i) => i());
986
+ return () => c.forEach((f) => f());
763
987
  }
764
- function cl(e, l = !1) {
765
- const t = _(), o = () => t.value = Boolean(e());
766
- return o(), Ze(o, l), t;
988
+ function Gl(e, l = !1) {
989
+ const t = w(), a = () => t.value = Boolean(e());
990
+ return a(), nt(a, l), t;
767
991
  }
768
- const de = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ce = "__vueuse_ssr_handlers__";
769
- de[ce] = de[ce] || {};
770
- de[ce];
771
- var je = Object.getOwnPropertySymbols, fl = Object.prototype.hasOwnProperty, yl = Object.prototype.propertyIsEnumerable, vl = (e, l) => {
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) => {
772
996
  var t = {};
773
- for (var o in e)
774
- fl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
775
- if (e != null && je)
776
- for (var o of je(e))
777
- l.indexOf(o) < 0 && yl.call(e, o) && (t[o] = e[o]);
997
+ 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]);
778
1002
  return t;
779
1003
  };
780
- function ml(e, l, t = {}) {
781
- const o = t, { window: n = be } = o, r = vl(o, ["window"]);
782
- let s;
783
- const a = cl(() => n && "ResizeObserver" in n), d = () => {
784
- s && (s.disconnect(), s = void 0);
785
- }, m = E(() => Q(e), (v) => {
786
- d(), a.value && n && v && (s = new ResizeObserver(l), s.observe(v, r));
787
- }, { immediate: !0, flush: "post" }), u = () => {
788
- d(), m();
1004
+ function Yl(e, l, t = {}) {
1005
+ const a = t, { window: o = ke } = a, i = Ql(a, ["window"]);
1006
+ let r;
1007
+ const n = Gl(() => o && "ResizeObserver" in o), d = () => {
1008
+ 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();
789
1013
  };
790
- return ee(u), {
791
- isSupported: a,
792
- stop: u
1014
+ return le(c), {
1015
+ isSupported: n,
1016
+ stop: c
793
1017
  };
794
1018
  }
795
- var ke;
1019
+ var Oe;
796
1020
  (function(e) {
797
1021
  e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
798
- })(ke || (ke = {}));
799
- function pl(e) {
800
- const l = _(e == null ? void 0 : e.element), t = _(e == null ? void 0 : e.input);
801
- function o() {
802
- var n, r;
803
- l.value && (l.value.style.height = "1px", l.value.style.height = `${(n = l.value) == null ? void 0 : n.scrollHeight}px`, (r = e == null ? void 0 : e.onResize) == null || r.call(e));
1022
+ })(Oe || (Oe = {}));
1023
+ function Xl(e) {
1024
+ const l = w(e == null ? void 0 : e.element), t = w(e == null ? void 0 : e.input);
1025
+ function a() {
1026
+ var o, i;
1027
+ 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));
804
1028
  }
805
- return E([t, l], o, { immediate: !0 }), ml(l, () => o()), e != null && e.watch && E(e.watch, o, { immediate: !0, deep: !0 }), {
1029
+ return E([t, l], a, { immediate: !0 }), Yl(l, () => a()), e != null && e.watch && E(e.watch, a, { immediate: !0, deep: !0 }), {
806
1030
  textarea: l,
807
1031
  input: t,
808
- triggerResize: o
1032
+ triggerResize: a
809
1033
  };
810
1034
  }
811
- var gl = Object.defineProperty, $e = Object.getOwnPropertySymbols, hl = Object.prototype.hasOwnProperty, bl = Object.prototype.propertyIsEnumerable, Ve = (e, l, t) => l in e ? gl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, _l = (e, l) => {
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) => {
812
1036
  for (var t in l || (l = {}))
813
- hl.call(l, t) && Ve(e, t, l[t]);
814
- if ($e)
815
- for (var t of $e(l))
816
- bl.call(l, t) && Ve(e, t, l[t]);
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]);
817
1041
  return e;
818
1042
  };
819
- const wl = {
1043
+ const oa = {
820
1044
  easeInSine: [0.12, 0, 0.39, 0],
821
1045
  easeOutSine: [0.61, 1, 0.88, 1],
822
1046
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -842,404 +1066,404 @@ const wl = {
842
1066
  easeOutBack: [0.34, 1.56, 0.64, 1],
843
1067
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
844
1068
  };
845
- _l({
846
- linear: il
847
- }, wl);
848
- const Sl = /* @__PURE__ */ k({
1069
+ aa({
1070
+ linear: Rl
1071
+ }, oa);
1072
+ const na = /* @__PURE__ */ j({
849
1073
  name: "OnClickOutside",
850
1074
  props: ["as", "options"],
851
1075
  emits: ["trigger"],
852
1076
  setup(e, { slots: l, emit: t }) {
853
- const o = _();
854
- return dl(o, (n) => {
855
- t("trigger", n);
1077
+ const a = w();
1078
+ return Wl(a, (o) => {
1079
+ t("trigger", o);
856
1080
  }, e.options), () => {
857
1081
  if (l.default)
858
- return ct(e.as || "div", { ref: o }, l.default());
1082
+ return _t(e.as || "div", { ref: a }, l.default());
859
1083
  };
860
1084
  }
861
1085
  });
862
- function P(e) {
1086
+ function F(e) {
863
1087
  var l;
864
- const t = T(e);
1088
+ const t = A(e);
865
1089
  return (l = t == null ? void 0 : t.$el) != null ? l : t;
866
1090
  }
867
- const U = X ? window : void 0;
868
- function F(...e) {
869
- let l, t, o, n;
870
- if (Qe(e[0]) || Array.isArray(e[0]) ? ([t, o, n] = e, l = U) : [l, t, o, n] = e, !l)
871
- return A;
872
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
873
- const r = [], s = () => {
874
- r.forEach((u) => u()), r.length = 0;
875
- }, a = (u, v, i, c) => (u.addEventListener(v, i, c), () => u.removeEventListener(v, i, c)), d = E(() => [P(l), T(n)], ([u, v]) => {
876
- s(), u && r.push(...t.flatMap((i) => o.map((c) => a(u, i, c, v))));
877
- }, { immediate: !0, flush: "post" }), m = () => {
878
- d(), s();
1091
+ const Z = te ? window : void 0;
1092
+ function N(...e) {
1093
+ 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;
1096
+ Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
1097
+ 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();
879
1103
  };
880
- return ee(m), m;
1104
+ return le(y), y;
881
1105
  }
882
- let xe = !1;
883
- function Ie(e, l, t = {}) {
884
- const { window: o = U, ignore: n = [], capture: r = !0, detectIframe: s = !1 } = t;
885
- if (!o)
1106
+ let Te = !1;
1107
+ function Je(e, l, t = {}) {
1108
+ const { window: a = Z, ignore: o = [], capture: i = !0, detectIframe: r = !1 } = t;
1109
+ if (!a)
886
1110
  return;
887
- ie && !xe && (xe = !0, Array.from(o.document.body.children).forEach((i) => i.addEventListener("click", A)));
888
- let a = !0;
889
- const d = (i) => n.some((c) => {
890
- if (typeof c == "string")
891
- return Array.from(o.document.querySelectorAll(c)).some((f) => f === i.target || i.composedPath().includes(f));
1111
+ ie && !Te && (Te = !0, Array.from(a.document.body.children).forEach((f) => f.addEventListener("click", M)));
1112
+ 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));
892
1116
  {
893
- const f = P(c);
894
- return f && (i.target === f || i.composedPath().includes(f));
895
- }
896
- }), u = [
897
- F(o, "click", (i) => {
898
- const c = P(e);
899
- if (!(!c || c === i.target || i.composedPath().includes(c))) {
900
- if (i.detail === 0 && (a = !d(i)), !a) {
901
- a = !0;
1117
+ const p = F(s);
1118
+ return p && (f.target === p || f.composedPath().includes(p));
1119
+ }
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) {
1125
+ n = !0;
902
1126
  return;
903
1127
  }
904
- l(i);
1128
+ l(f);
905
1129
  }
906
- }, { passive: !0, capture: r }),
907
- F(o, "pointerdown", (i) => {
908
- const c = P(e);
909
- c && (a = !i.composedPath().includes(c) && !d(i));
1130
+ }, { passive: !0, capture: i }),
1131
+ N(a, "pointerdown", (f) => {
1132
+ const s = F(e);
1133
+ s && (n = !f.composedPath().includes(s) && !d(f));
910
1134
  }, { passive: !0 }),
911
- s && F(o, "blur", (i) => {
912
- var c;
913
- const f = P(e);
914
- ((c = o.document.activeElement) == null ? void 0 : c.tagName) === "IFRAME" && !(f != null && f.contains(o.document.activeElement)) && l(i);
1135
+ r && N(a, "blur", (f) => {
1136
+ var s;
1137
+ const p = F(e);
1138
+ ((s = a.document.activeElement) == null ? void 0 : s.tagName) === "IFRAME" && !(p != null && p.contains(a.document.activeElement)) && l(f);
915
1139
  })
916
1140
  ].filter(Boolean);
917
- return () => u.forEach((i) => i());
1141
+ return () => c.forEach((f) => f());
918
1142
  }
919
- N.mounted + "", N.unmounted + "";
920
- const jl = (e) => typeof e == "function" ? e : typeof e == "string" ? (l) => l.key === e : Array.isArray(e) ? (l) => e.includes(l.key) : () => !0;
921
- function Oe(...e) {
922
- let l, t, o = {};
923
- e.length === 3 ? (l = e[0], t = e[1], o = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (l = !0, t = e[0], o = e[1]) : (l = e[0], t = e[1]) : (l = !0, t = e[0]);
924
- const { target: n = U, eventName: r = "keydown", passive: s = !1 } = o, a = jl(l);
925
- return F(n, r, (m) => {
926
- a(m) && t(m);
927
- }, s);
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) {
1146
+ let l, t, a = {};
1147
+ 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);
1151
+ }, r);
928
1152
  }
929
- var kl = Object.defineProperty, Ce = Object.getOwnPropertySymbols, $l = Object.prototype.hasOwnProperty, Vl = Object.prototype.propertyIsEnumerable, Be = (e, l, t) => l in e ? kl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, xl = (e, l) => {
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) => {
930
1154
  for (var t in l || (l = {}))
931
- $l.call(l, t) && Be(e, t, l[t]);
932
- if (Ce)
933
- for (var t of Ce(l))
934
- Vl.call(l, t) && Be(e, t, l[t]);
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]);
935
1159
  return e;
936
1160
  };
937
- N.mounted + "";
938
- const Il = 500;
939
- function Le(e, l, t) {
940
- var o, n;
941
- const r = I(() => P(e));
942
- let s;
943
- function a() {
944
- s && (clearTimeout(s), s = void 0);
1161
+ H.mounted + "";
1162
+ const ca = 500;
1163
+ function Fe(e, l, t) {
1164
+ var a, o;
1165
+ const i = V(() => F(e));
1166
+ let r;
1167
+ function n() {
1168
+ r && (clearTimeout(r), r = void 0);
945
1169
  }
946
- function d(u) {
947
- var v, i, c, f;
948
- (v = t == null ? void 0 : t.modifiers) != null && v.self && u.target !== r.value || (a(), (i = t == null ? void 0 : t.modifiers) != null && i.prevent && u.preventDefault(), (c = t == null ? void 0 : t.modifiers) != null && c.stop && u.stopPropagation(), s = setTimeout(() => l(u), (f = t == null ? void 0 : t.delay) != null ? f : Il));
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));
949
1173
  }
950
- const m = {
951
- capture: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.capture,
952
- once: (n = t == null ? void 0 : t.modifiers) == null ? void 0 : n.once
1174
+ const y = {
1175
+ capture: (a = t == null ? void 0 : t.modifiers) == null ? void 0 : a.capture,
1176
+ once: (o = t == null ? void 0 : t.modifiers) == null ? void 0 : o.once
953
1177
  };
954
- F(r, "pointerdown", d, m), F(r, "pointerup", a, m), F(r, "pointerleave", a, m);
1178
+ N(i, "pointerdown", d, y), N(i, "pointerup", n, y), N(i, "pointerleave", n, y);
955
1179
  }
956
- N.mounted + "";
957
- const fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, ye = "__vueuse_ssr_handlers__";
958
- fe[ye] = fe[ye] || {};
959
- fe[ye];
960
- function Xe(e, l = !1) {
961
- const t = _(), o = () => t.value = Boolean(e());
962
- return o(), Ze(o, l), t;
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) {
1185
+ const t = w(), a = () => t.value = Boolean(e());
1186
+ return a(), nt(a, l), t;
963
1187
  }
964
- function Ol(e, l = {}) {
965
- const t = l ? l.delayEnter : 0, o = l ? l.delayLeave : 0, n = _(!1);
966
- let r;
967
- const s = (a) => {
968
- const d = a ? t : o;
969
- r && (clearTimeout(r), r = void 0), d ? r = setTimeout(() => n.value = a, d) : n.value = a;
1188
+ function fa(e, l = {}) {
1189
+ const t = l ? l.delayEnter : 0, a = l ? l.delayLeave : 0, o = w(!1);
1190
+ let i;
1191
+ 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;
970
1194
  };
971
- return window && (F(e, "mouseenter", () => s(!0), { passive: !0 }), F(e, "mouseleave", () => s(!1), { passive: !0 })), n;
1195
+ return window && (N(e, "mouseenter", () => r(!0), { passive: !0 }), N(e, "mouseleave", () => r(!1), { passive: !0 })), o;
972
1196
  }
973
- N.mounted + "";
974
- var Ee = Object.getOwnPropertySymbols, Cl = Object.prototype.hasOwnProperty, Bl = Object.prototype.propertyIsEnumerable, Ll = (e, l) => {
1197
+ H.mounted + "";
1198
+ var qe = Object.getOwnPropertySymbols, ya = Object.prototype.hasOwnProperty, va = Object.prototype.propertyIsEnumerable, ma = (e, l) => {
975
1199
  var t = {};
976
- for (var o in e)
977
- Cl.call(e, o) && l.indexOf(o) < 0 && (t[o] = e[o]);
978
- if (e != null && Ee)
979
- for (var o of Ee(e))
980
- l.indexOf(o) < 0 && Bl.call(e, o) && (t[o] = e[o]);
1200
+ 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]);
981
1205
  return t;
982
1206
  };
983
- function El(e, l, t = {}) {
984
- const o = t, { window: n = U } = o, r = Ll(o, ["window"]);
985
- let s;
986
- const a = Xe(() => n && "ResizeObserver" in n), d = () => {
987
- s && (s.disconnect(), s = void 0);
988
- }, m = E(() => P(e), (v) => {
989
- d(), a.value && n && v && (s = new ResizeObserver(l), s.observe(v, r));
990
- }, { immediate: !0, flush: "post" }), u = () => {
991
- d(), m();
1207
+ function pa(e, l, t = {}) {
1208
+ const a = t, { window: o = Z } = a, i = ma(a, ["window"]);
1209
+ let r;
1210
+ const n = it(() => o && "ResizeObserver" in o), d = () => {
1211
+ 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();
992
1216
  };
993
- return ee(u), {
994
- isSupported: a,
995
- stop: u
1217
+ return le(c), {
1218
+ isSupported: n,
1219
+ stop: c
996
1220
  };
997
1221
  }
998
- function Jl(e, l = { width: 0, height: 0 }, t = {}) {
999
- const { window: o = U, box: n = "content-box" } = t, r = I(() => {
1000
- var d, m;
1001
- return (m = (d = P(e)) == null ? void 0 : d.namespaceURI) == null ? void 0 : m.includes("svg");
1002
- }), s = _(l.width), a = _(l.height);
1003
- return El(e, ([d]) => {
1004
- const m = n === "border-box" ? d.borderBoxSize : n === "content-box" ? d.contentBoxSize : d.devicePixelContentBoxSize;
1005
- if (o && r.value) {
1006
- const u = P(e);
1007
- if (u) {
1008
- const v = o.getComputedStyle(u);
1009
- s.value = parseFloat(v.width), a.value = parseFloat(v.height);
1222
+ 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");
1226
+ }), 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;
1229
+ 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);
1010
1234
  }
1011
- } else if (m) {
1012
- const u = Array.isArray(m) ? m : [m];
1013
- s.value = u.reduce((v, { inlineSize: i }) => v + i, 0), a.value = u.reduce((v, { blockSize: i }) => v + i, 0);
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);
1014
1238
  } else
1015
- s.value = d.contentRect.width, a.value = d.contentRect.height;
1016
- }, t), E(() => P(e), (d) => {
1017
- s.value = d ? l.width : 0, a.value = d ? l.height : 0;
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;
1018
1242
  }), {
1019
- width: s,
1020
- height: a
1243
+ width: r,
1244
+ height: n
1021
1245
  };
1022
1246
  }
1023
- N.mounted + "";
1024
- function Je(e, { window: l = U, scrollTarget: t } = {}) {
1025
- const o = _(!1), n = () => {
1247
+ H.mounted + "";
1248
+ function Me(e, { window: l = Z, scrollTarget: t } = {}) {
1249
+ const a = w(!1), o = () => {
1026
1250
  if (!l)
1027
1251
  return;
1028
- const r = l.document, s = P(e);
1029
- if (!s)
1030
- o.value = !1;
1252
+ const i = l.document, r = F(e);
1253
+ if (!r)
1254
+ a.value = !1;
1031
1255
  else {
1032
- const a = s.getBoundingClientRect();
1033
- o.value = a.top <= (l.innerHeight || r.documentElement.clientHeight) && a.left <= (l.innerWidth || r.documentElement.clientWidth) && a.bottom >= 0 && a.right >= 0;
1256
+ const n = r.getBoundingClientRect();
1257
+ a.value = n.top <= (l.innerHeight || i.documentElement.clientHeight) && n.left <= (l.innerWidth || i.documentElement.clientWidth) && n.bottom >= 0 && n.right >= 0;
1034
1258
  }
1035
1259
  };
1036
- return E(() => P(e), () => n(), { immediate: !0, flush: "post" }), l && F(t || l, "scroll", n, {
1260
+ return E(() => F(e), () => o(), { immediate: !0, flush: "post" }), l && N(t || l, "scroll", o, {
1037
1261
  capture: !1,
1038
1262
  passive: !0
1039
- }), o;
1263
+ }), a;
1040
1264
  }
1041
- N.mounted + "";
1042
- const ze = 1;
1043
- function ve(e, l = {}) {
1265
+ H.mounted + "";
1266
+ const Ne = 1;
1267
+ function ge(e, l = {}) {
1044
1268
  const {
1045
1269
  throttle: t = 0,
1046
- idle: o = 200,
1047
- onStop: n = A,
1048
- onScroll: r = A,
1049
- offset: s = {
1270
+ idle: a = 200,
1271
+ onStop: o = M,
1272
+ onScroll: i = M,
1273
+ offset: r = {
1050
1274
  left: 0,
1051
1275
  right: 0,
1052
1276
  top: 0,
1053
1277
  bottom: 0
1054
1278
  },
1055
- eventListenerOptions: a = {
1279
+ eventListenerOptions: n = {
1056
1280
  capture: !1,
1057
1281
  passive: !0
1058
1282
  },
1059
1283
  behavior: d = "auto"
1060
- } = l, m = _(0), u = _(0), v = I({
1284
+ } = l, y = w(0), c = w(0), v = V({
1061
1285
  get() {
1062
- return m.value;
1286
+ return y.value;
1063
1287
  },
1064
- set(J) {
1065
- c(J, void 0);
1288
+ set(P) {
1289
+ s(P, void 0);
1066
1290
  }
1067
- }), i = I({
1291
+ }), f = V({
1068
1292
  get() {
1069
- return u.value;
1293
+ return c.value;
1070
1294
  },
1071
- set(J) {
1072
- c(void 0, J);
1295
+ set(P) {
1296
+ s(void 0, P);
1073
1297
  }
1074
1298
  });
1075
- function c(J, M) {
1076
- var V, z, D;
1077
- const K = T(e);
1078
- K && ((D = K instanceof Document ? document.body : K) == null || D.scrollTo({
1079
- top: (V = T(M)) != null ? V : i.value,
1080
- left: (z = T(J)) != null ? z : v.value,
1081
- behavior: T(d)
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)
1082
1306
  }));
1083
1307
  }
1084
- const f = _(!1), S = ne({
1308
+ const p = w(!1), b = ve({
1085
1309
  left: !0,
1086
1310
  right: !1,
1087
1311
  top: !0,
1088
1312
  bottom: !1
1089
- }), j = ne({
1313
+ }), I = ve({
1090
1314
  left: !1,
1091
1315
  right: !1,
1092
1316
  top: !1,
1093
1317
  bottom: !1
1094
- }), le = (J) => {
1095
- f.value && (f.value = !1, j.left = !1, j.right = !1, j.top = !1, j.bottom = !1, n(J));
1096
- }, oe = rl(le, t + o), ae = (J) => {
1097
- const M = J.target === document ? J.target.documentElement : J.target, V = M.scrollLeft;
1098
- j.left = V < m.value, j.right = V > u.value, S.left = V <= 0 + (s.left || 0), S.right = V + M.clientWidth >= M.scrollWidth - (s.right || 0) - ze, m.value = V;
1099
- let z = M.scrollTop;
1100
- J.target === document && !z && (z = document.body.scrollTop), j.top = z < u.value, j.bottom = z > u.value, S.top = z <= 0 + (s.top || 0), S.bottom = z + M.clientHeight >= M.scrollHeight - (s.bottom || 0) - ze, u.value = z, f.value = !0, oe(J), r(J);
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);
1101
1325
  };
1102
- return F(e, "scroll", t ? sl(ae, t, !0, !1) : ae, a), F(e, "scrollend", le, a), {
1326
+ return N(e, "scroll", t ? Dl(oe, t, !0, !1) : oe, n), N(e, "scrollend", z, n), {
1103
1327
  x: v,
1104
- y: i,
1105
- isScrolling: f,
1106
- arrivedState: S,
1107
- directions: j
1328
+ y: f,
1329
+ isScrolling: p,
1330
+ arrivedState: b,
1331
+ directions: I
1108
1332
  };
1109
1333
  }
1110
- var zl = Object.defineProperty, Tl = Object.defineProperties, Pl = Object.getOwnPropertyDescriptors, Te = Object.getOwnPropertySymbols, ql = Object.prototype.hasOwnProperty, Al = Object.prototype.propertyIsEnumerable, Pe = (e, l, t) => l in e ? zl(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, qe = (e, l) => {
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) => {
1111
1335
  for (var t in l || (l = {}))
1112
- ql.call(l, t) && Pe(e, t, l[t]);
1113
- if (Te)
1114
- for (var t of Te(l))
1115
- Al.call(l, t) && Pe(e, t, l[t]);
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]);
1116
1340
  return e;
1117
- }, Fl = (e, l) => Tl(e, Pl(l));
1118
- function Ae(e, l, t = {}) {
1119
- var o, n;
1120
- const r = (o = t.direction) != null ? o : "bottom", s = ne(ve(e, Fl(qe({}, t), {
1121
- offset: qe({
1122
- [r]: (n = t.distance) != null ? n : 0
1341
+ }, $a = (e, l) => ga(e, ba(l));
1342
+ function Ue(e, l, t = {}) {
1343
+ var a, o;
1344
+ const i = (a = t.direction) != null ? a : "bottom", r = ve(ge(e, $a(De({}, t), {
1345
+ offset: De({
1346
+ [i]: (o = t.distance) != null ? o : 0
1123
1347
  }, t.offset)
1124
1348
  })));
1125
- E(() => s.arrivedState[r], async (a) => {
1126
- var d, m;
1127
- if (a) {
1128
- const u = T(e), v = {
1129
- height: (d = u == null ? void 0 : u.scrollHeight) != null ? d : 0,
1130
- width: (m = u == null ? void 0 : u.scrollWidth) != null ? m : 0
1349
+ E(() => r.arrivedState[i], async (n) => {
1350
+ var d, y;
1351
+ 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
1131
1355
  };
1132
- await l(s), t.preserveScrollPosition && u && We(() => {
1133
- u.scrollTo({
1134
- top: u.scrollHeight - v.height,
1135
- left: u.scrollWidth - v.width
1356
+ await l(r), t.preserveScrollPosition && c && Qe(() => {
1357
+ c.scrollTo({
1358
+ top: c.scrollHeight - v.height,
1359
+ left: c.scrollWidth - v.width
1136
1360
  });
1137
1361
  });
1138
1362
  }
1139
1363
  });
1140
1364
  }
1141
- N.mounted + "";
1142
- function Fe(e, l, t = {}) {
1365
+ H.mounted + "";
1366
+ function We(e, l, t = {}) {
1143
1367
  const {
1144
- root: o,
1145
- rootMargin: n = "0px",
1146
- threshold: r = 0.1,
1147
- window: s = U
1148
- } = t, a = Xe(() => s && "IntersectionObserver" in s);
1149
- let d = A;
1150
- const m = a.value ? E(() => ({
1151
- el: P(e),
1152
- root: P(o)
1153
- }), ({ el: v, root: i }) => {
1368
+ root: a,
1369
+ rootMargin: o = "0px",
1370
+ 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(() => ({
1375
+ el: F(e),
1376
+ root: F(a)
1377
+ }), ({ el: v, root: f }) => {
1154
1378
  if (d(), !v)
1155
1379
  return;
1156
- const c = new IntersectionObserver(l, {
1157
- root: i,
1158
- rootMargin: n,
1159
- threshold: r
1380
+ const s = new IntersectionObserver(l, {
1381
+ root: f,
1382
+ rootMargin: o,
1383
+ threshold: i
1160
1384
  });
1161
- c.observe(v), d = () => {
1162
- c.disconnect(), d = A;
1385
+ s.observe(v), d = () => {
1386
+ s.disconnect(), d = M;
1163
1387
  };
1164
- }, { immediate: !0, flush: "post" }) : A, u = () => {
1165
- d(), m();
1388
+ }, { immediate: !0, flush: "post" }) : M, c = () => {
1389
+ d(), y();
1166
1390
  };
1167
- return ee(u), {
1168
- isSupported: a,
1169
- stop: u
1391
+ return le(c), {
1392
+ isSupported: n,
1393
+ stop: c
1170
1394
  };
1171
1395
  }
1172
- N.mounted + "";
1173
- var Ml = Object.defineProperty, Nl = Object.defineProperties, Rl = Object.getOwnPropertyDescriptors, Me = Object.getOwnPropertySymbols, Dl = Object.prototype.hasOwnProperty, Hl = Object.prototype.propertyIsEnumerable, Ne = (e, l, t) => l in e ? Ml(e, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[l] = t, Wl = (e, l) => {
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) => {
1174
1398
  for (var t in l || (l = {}))
1175
- Dl.call(l, t) && Ne(e, t, l[t]);
1176
- if (Me)
1177
- for (var t of Me(l))
1178
- Hl.call(l, t) && Ne(e, t, l[t]);
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]);
1179
1403
  return e;
1180
- }, Ul = (e, l) => Nl(e, Rl(l));
1181
- N.mounted + "";
1182
- function et(e) {
1404
+ }, Ia = (e, l) => ka(e, Va(l));
1405
+ H.mounted + "";
1406
+ function rt(e) {
1183
1407
  const l = window.getComputedStyle(e);
1184
1408
  if (l.overflowX === "scroll" || l.overflowY === "scroll" || l.overflowX === "auto" && e.clientHeight < e.scrollHeight || l.overflowY === "auto" && e.clientWidth < e.scrollWidth)
1185
1409
  return !0;
1186
1410
  {
1187
1411
  const t = e.parentNode;
1188
- return !t || t.tagName === "BODY" ? !1 : et(t);
1412
+ return !t || t.tagName === "BODY" ? !1 : rt(t);
1189
1413
  }
1190
1414
  }
1191
- function Gl(e) {
1415
+ function Oa(e) {
1192
1416
  const l = e || window.event, t = l.target;
1193
- return et(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1417
+ return rt(t) ? !1 : l.touches.length > 1 ? !0 : (l.preventDefault && l.preventDefault(), !1);
1194
1418
  }
1195
- function Kl(e, l = !1) {
1196
- const t = _(l);
1197
- let o = null, n;
1198
- E(ul(e), (a) => {
1199
- if (a) {
1200
- const d = a;
1201
- n = d.style.overflow, t.value && (d.style.overflow = "hidden");
1419
+ function Ba(e, l = !1) {
1420
+ const t = w(l);
1421
+ let a = null, o;
1422
+ E(Ul(e), (n) => {
1423
+ if (n) {
1424
+ const d = n;
1425
+ o = d.style.overflow, t.value && (d.style.overflow = "hidden");
1202
1426
  }
1203
1427
  }, {
1204
1428
  immediate: !0
1205
1429
  });
1206
- const r = () => {
1207
- const a = T(e);
1208
- !a || t.value || (ie && (o = F(a, "touchmove", (d) => {
1209
- Gl(d);
1210
- }, { passive: !1 })), a.style.overflow = "hidden", t.value = !0);
1211
- }, s = () => {
1212
- const a = T(e);
1213
- !a || !t.value || (ie && (o == null || o()), a.style.overflow = n, t.value = !1);
1430
+ const i = () => {
1431
+ const n = A(e);
1432
+ !n || t.value || (ie && (a = N(n, "touchmove", (d) => {
1433
+ Oa(d);
1434
+ }, { passive: !1 })), n.style.overflow = "hidden", t.value = !0);
1435
+ }, r = () => {
1436
+ const n = A(e);
1437
+ !n || !t.value || (ie && (a == null || a()), n.style.overflow = o, t.value = !1);
1214
1438
  };
1215
- return ee(s), I({
1439
+ return le(r), V({
1216
1440
  get() {
1217
1441
  return t.value;
1218
1442
  },
1219
- set(a) {
1220
- a ? r() : s();
1443
+ set(n) {
1444
+ n ? i() : r();
1221
1445
  }
1222
1446
  });
1223
1447
  }
1224
- const Ql = () => {
1448
+ const Ea = () => {
1225
1449
  let e = !1;
1226
- const l = _(!1);
1227
- return (t, o) => {
1228
- if (l.value = o.value, e)
1450
+ const l = w(!1);
1451
+ return (t, a) => {
1452
+ if (l.value = a.value, e)
1229
1453
  return;
1230
1454
  e = !0;
1231
- const n = Kl(t, o.value);
1232
- E(l, (r) => n.value = r);
1455
+ const o = Ba(t, a.value);
1456
+ E(l, (i) => o.value = i);
1233
1457
  };
1234
1458
  };
1235
- Ql();
1236
- const tt = ["medium", "small", "xsmall"], Yl = {
1459
+ Ea();
1460
+ const st = ["medium", "small", "xsmall"], Ta = {
1237
1461
  key: 0,
1238
1462
  class: "joy-dropdown-list__header"
1239
- }, Zl = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], Xl = {
1463
+ }, Ja = ["aria-label", "aria-labelledby"], Pa = ["id", "tabindex", "aria-disabled", "aria-selected", "title", "aria-label", ".dataModel", "onClick"], za = {
1240
1464
  key: 1,
1241
1465
  class: "joy-dropdown-list__footer"
1242
- }, eo = /* @__PURE__ */ k({
1466
+ }, Aa = /* @__PURE__ */ j({
1243
1467
  __name: "VJoyDropdownList",
1244
1468
  props: {
1245
1469
  /**
@@ -1259,7 +1483,7 @@ const tt = ["medium", "small", "xsmall"], Yl = {
1259
1483
  type: String,
1260
1484
  default: "medium",
1261
1485
  validator(e) {
1262
- return tt.includes(e);
1486
+ return st.includes(e);
1263
1487
  }
1264
1488
  },
1265
1489
  modelValue: {
@@ -1272,134 +1496,144 @@ const tt = ["medium", "small", "xsmall"], Yl = {
1272
1496
  height: {
1273
1497
  type: String,
1274
1498
  default: "300"
1499
+ },
1500
+ reset: {
1501
+ type: Boolean,
1502
+ default: !1
1503
+ },
1504
+ resetLabel: {
1505
+ type: String
1506
+ },
1507
+ ariaLabelledBy: {
1508
+ type: String
1509
+ },
1510
+ ariaLabel: {
1511
+ type: String
1275
1512
  }
1276
1513
  },
1277
- emits: ["update:modelValue", "close:dropdownList"],
1514
+ emits: ["update:modelValue", "close:dropdownList", "reset"],
1278
1515
  setup(e, { expose: l, emit: t }) {
1279
- const o = e, n = _(), r = I(() => (i) => !o.modelValue || !i.value && !i.id ? !1 : o.modelValue === i.value || o.modelValue === i.id);
1280
- function s(i) {
1281
- i.disabled || t("update:modelValue", i.value || i.id);
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);
1282
1519
  }
1283
- function a() {
1284
- var i;
1285
- return Array.from(((i = n.value) == null ? void 0 : i.querySelectorAll("li")) || []);
1520
+ function n() {
1521
+ var s;
1522
+ return Array.from(((s = o.value) == null ? void 0 : s.querySelectorAll("li")) || []);
1286
1523
  }
1287
1524
  function d() {
1288
- const i = a().find((c) => c.getAttribute("aria-selected") === "true");
1289
- i && (i.focus(), n.value.scrollTo({
1290
- top: i.offsetTop
1525
+ const s = n().find((p) => p.getAttribute("aria-selected") === "true");
1526
+ s && (s.focus(), o.value.scrollTo({
1527
+ top: s.offsetTop
1291
1528
  }));
1292
1529
  }
1293
- function m() {
1294
- return a().find((i) => i === document.activeElement);
1530
+ function y() {
1531
+ return n().find((s) => s === document.activeElement);
1295
1532
  }
1296
- function u(i) {
1297
- var c;
1298
- if (!(n.value && !n.value.contains(document.activeElement) || !n.value)) {
1299
- if ((i.key === "Escape" || i.key === "Tab") && t("close:dropdownList"), (i.key === "Enter" || i.key === "enter") && (i.preventDefault(), m() && ((c = n.value) != null && c.contains(m())))) {
1300
- const f = m();
1301
- if (!f)
1533
+ function c(s) {
1534
+ var p;
1535
+ 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();
1538
+ if (!b)
1302
1539
  return;
1303
- if (f.querySelector("a"))
1304
- return f.querySelector("a").click();
1305
- t("update:modelValue", f.dataModel);
1540
+ if (b.querySelector("a"))
1541
+ return b.querySelector("a").click();
1542
+ t("update:modelValue", b.dataModel);
1306
1543
  }
1307
- if (m() && i.key === " " && i.preventDefault(), ["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) {
1308
- const f = a(), S = m();
1309
- let j = f.indexOf(S);
1310
- if (f.length) {
1311
- i.preventDefault(), i.key === "ArrowDown" ? j++ : i.key === "ArrowUp" ? j-- : i.key === "Home" ? j = 0 : i.key === "End" && (j = f.length - 1), j < 0 && (j = f.length - 1), j > f.length - 1 && (j = 0), v(f[j]);
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);
1547
+ 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]);
1312
1549
  return;
1313
1550
  }
1314
1551
  }
1315
1552
  }
1316
1553
  }
1317
- function v(i) {
1318
- i.focus();
1554
+ function v(s) {
1555
+ s.focus();
1556
+ }
1557
+ function f() {
1558
+ t("reset");
1319
1559
  }
1320
- return Y(() => {
1321
- window.addEventListener("keydown", u), d();
1322
- }), Ue(() => {
1323
- window.removeEventListener("keydown", u);
1560
+ return X(() => {
1561
+ window.addEventListener("keydown", c), d();
1562
+ }), Ye(() => {
1563
+ window.removeEventListener("keydown", c);
1324
1564
  }), l({
1325
- isSelected: r
1326
- }), (i, c) => (y(), p("div", {
1565
+ isSelected: i
1566
+ }), (s, p) => (u(), m("div", {
1327
1567
  class: "joy-dropdown-list",
1328
- style: te({ width: `${e.width}px`, "max-width": `${e.width}px` })
1568
+ style: ae({ width: `${e.width}px`, "max-width": `${e.width}px` })
1329
1569
  }, [
1330
- i.$slots["dropdown-list-header"] ? (y(), p("header", Yl, [
1331
- h(i.$slots, "dropdown-list-header", {}, void 0, !0)
1332
- ])) : g("", !0),
1333
- b("div", {
1334
- class: w(["joy-dropdown-list__items", { "joy-dropdown-list__items-slotted": i.$slots["dropdown-list-items"] }]),
1335
- style: te({ "max-height": `${e.height}px` })
1570
+ s.$slots["dropdown-list-header"] || e.reset ? (u(), m("header", Ta, [
1571
+ e.reset ? (u(), m("button", {
1572
+ key: 0,
1573
+ type: "button",
1574
+ class: "joy-dropdown-list__reset",
1575
+ onClick: f
1576
+ }, C(e.resetLabel || "Reset"), 1)) : _("", !0),
1577
+ g(s.$slots, "dropdown-list-header", {}, void 0, !0)
1578
+ ])) : _("", !0),
1579
+ h("div", {
1580
+ 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` })
1336
1583
  }, [
1337
- h(i.$slots, "dropdown-list-items", {}, void 0, !0),
1338
- e.options.length ? (y(), p("ul", {
1584
+ g(s.$slots, "dropdown-list-items", {}, void 0, !0),
1585
+ e.options.length ? (u(), m("ul", {
1339
1586
  key: 0,
1340
1587
  ref_key: "listbox",
1341
- ref: n,
1588
+ ref: o,
1342
1589
  role: "listbox",
1343
- "aria-expanded": "true"
1590
+ "aria-expanded": "true",
1591
+ "aria-label": e.ariaLabel,
1592
+ "aria-labelledby": e.ariaLabelledBy
1344
1593
  }, [
1345
- (y(!0), p(H, null, se(e.options, (f) => (y(), p("li", {
1346
- id: f.id,
1347
- key: f.label,
1348
- style: te({ "max-width": `${e.width}px` }),
1349
- class: w([
1594
+ (u(!0), m(W, null, Y(e.options, (b) => (u(), m("li", {
1595
+ id: b.id,
1596
+ key: b.label,
1597
+ style: ae({ "max-width": `${e.width}px` }),
1598
+ class: S([
1350
1599
  "joy-dropdown-list__item",
1351
1600
  `joy-dropdown-list__item--${e.size}`,
1352
1601
  {
1353
- "joy-dropdown-list__item--selected": r.value(f),
1354
- "joy-dropdown-list__item--disabled": f.disabled
1602
+ "joy-dropdown-list__item--selected": i.value(b),
1603
+ "joy-dropdown-list__item--disabled": b.disabled
1355
1604
  }
1356
1605
  ]),
1357
- tabindex: f.disabled ? void 0 : -1,
1358
- "aria-disabled": f.disabled,
1359
- "aria-selected": r.value(f),
1360
- title: f.label,
1361
- "aria-label": f.label,
1362
- ".dataModel": f.value || f.id,
1606
+ tabindex: b.disabled ? void 0 : -1,
1607
+ "aria-disabled": b.disabled,
1608
+ "aria-selected": i.value(b),
1609
+ title: b.label,
1610
+ "aria-label": b.label,
1611
+ ".dataModel": b.value || b.id,
1363
1612
  role: "option",
1364
- onClick: (S) => s(f)
1613
+ onClick: (I) => r(b)
1365
1614
  }, [
1366
- h(i.$slots, "label", me(pe(f)), () => [
1367
- b("span", null, C(f.label), 1)
1615
+ g(s.$slots, "label", we(Se(b)), () => [
1616
+ h("span", null, C(b.label), 1)
1368
1617
  ], !0)
1369
- ], 14, Zl))), 128))
1370
- ], 512)) : g("", !0)
1618
+ ], 14, Pa))), 128))
1619
+ ], 8, Ja)) : _("", !0)
1371
1620
  ], 6),
1372
- i.$slots["dropdown-list-footer"] ? (y(), p("footer", Xl, [
1373
- h(i.$slots, "dropdown-list-footer", {}, void 0, !0)
1374
- ])) : g("", !0)
1621
+ s.$slots["dropdown-list-footer"] ? (u(), m("footer", za, [
1622
+ g(s.$slots, "dropdown-list-footer", {}, void 0, !0)
1623
+ ])) : _("", !0)
1375
1624
  ], 4));
1376
1625
  }
1377
1626
  });
1378
- const lt = /* @__PURE__ */ $(eo, [["__scopeId", "data-v-cd3f6251"]]);
1379
- function to(e) {
1627
+ const ut = /* @__PURE__ */ k(Aa, [["__scopeId", "data-v-f46e79bc"]]);
1628
+ function Fa(e) {
1380
1629
  const l = () => e();
1381
- Y(() => {
1630
+ X(() => {
1382
1631
  window.addEventListener("resize", l);
1383
- }), Ue(() => {
1632
+ }), Ye(() => {
1384
1633
  window.removeEventListener("resize", l);
1385
1634
  });
1386
1635
  }
1387
- const lo = ["JOY-DRAWER", "JOY-DIALOG", "JOY-BOTTOM-SHEET"];
1388
- function oo(e) {
1389
- let l = e.value.parentElement, t = !1;
1390
- for (; l != null && l.parentElement; )
1391
- lo.includes(l == null ? void 0 : l.tagName) && (t = !0), l = l.parentElement;
1392
- return t;
1393
- }
1394
- function ao(e) {
1395
- const l = _(!1);
1396
- return Y(() => {
1397
- l.value = oo(e);
1398
- }), {
1399
- isInOverlay: l
1400
- };
1401
- }
1402
- function no(e) {
1636
+ function qa(e) {
1403
1637
  let l;
1404
1638
  switch (e) {
1405
1639
  case "error":
@@ -1413,7 +1647,7 @@ function no(e) {
1413
1647
  }
1414
1648
  return l;
1415
1649
  }
1416
- function io(e) {
1650
+ function Ma(e) {
1417
1651
  if (!e) {
1418
1652
  console.warn("Missing ref element for focusOnFirstFocusableFormField use");
1419
1653
  return;
@@ -1423,7 +1657,8 @@ function io(e) {
1423
1657
  if (t.length)
1424
1658
  return t[0].focus();
1425
1659
  }
1426
- const ro = /* @__PURE__ */ k({
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({
1427
1662
  __name: "VJoyDropdown",
1428
1663
  props: {
1429
1664
  /** DOM valid selector to give to Vue3 Teleport "to" property */
@@ -1473,9 +1708,10 @@ const ro = /* @__PURE__ */ k({
1473
1708
  type: String,
1474
1709
  default: "medium",
1475
1710
  validator(e) {
1476
- return tt.includes(e);
1711
+ return st.includes(e);
1477
1712
  }
1478
1713
  },
1714
+ /** Use v-model */
1479
1715
  modelValue: {
1480
1716
  type: String,
1481
1717
  default: ""
@@ -1485,7 +1721,7 @@ const ro = /* @__PURE__ */ k({
1485
1721
  */
1486
1722
  dropdownGap: {
1487
1723
  type: String,
1488
- default: "16"
1724
+ default: "12"
1489
1725
  },
1490
1726
  /**
1491
1727
  * Max-width of the dropdown list
@@ -1500,143 +1736,203 @@ const ro = /* @__PURE__ */ k({
1500
1736
  height: {
1501
1737
  type: String,
1502
1738
  default: "300"
1739
+ },
1740
+ /**
1741
+ * Display a reset CTA on top of the dropdown list. Useful when using a VJoyMultiCheckbox.
1742
+ * Please note that is does not automatically apply changes to you models, it simply fires a **dropdown:reset** custom event
1743
+ * */
1744
+ reset: {
1745
+ type: Boolean,
1746
+ default: !1
1747
+ },
1748
+ /** Label of the reset CTA. Depends on reset property activation */
1749
+ resetLabel: {
1750
+ type: String
1503
1751
  }
1504
1752
  },
1505
- emits: ["update:modelValue", "dropdown:open", "dropdown:hide"],
1753
+ emits: ["update:modelValue", "dropdown:open", "dropdown:hide", "dropdown:reset"],
1506
1754
  setup(e, { expose: l, emit: t }) {
1507
- const o = e, n = _(!1), r = _(null), s = _(), a = _(null), { isInOverlay: d } = ao(s), m = _(null), u = _(!1), v = {
1508
- ignore: [s, ".joy-dropdown__list"]
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 = {
1758
+ ignore: [r, ".joy-dropdown__list"]
1509
1759
  };
1510
- let i = null;
1760
+ let f = null;
1511
1761
  E(
1512
- () => n.value,
1513
- (V) => {
1514
- V && io(a);
1762
+ () => o.value,
1763
+ (L) => {
1764
+ L && Ma(n);
1515
1765
  },
1516
1766
  { flush: "post" }
1517
1767
  );
1518
- const c = ne({
1519
- left: "auto",
1520
- top: "0px",
1521
- right: "auto",
1522
- zIndex: void 0,
1523
- position: void 0
1524
- }), f = I(() => ({
1525
- position: c.position,
1526
- top: c.top,
1527
- left: c.left,
1528
- zIndex: c.zIndex
1529
- }));
1530
- function S() {
1531
- i && clearTimeout(i), u.value = !0, i = setTimeout(() => {
1532
- n.value = !1, u.value = !1, t("dropdown:hide");
1768
+ const s = V(() => {
1769
+ let L = `${a.dropdownGap}px`;
1770
+ return a.direction === "up" && (L = "-" + L), {
1771
+ marginTop: L
1772
+ };
1773
+ });
1774
+ function p() {
1775
+ f && clearTimeout(f), y.value = !0, f = setTimeout(() => {
1776
+ o.value = !1, y.value = !1, t("dropdown:hide");
1533
1777
  }, 300);
1534
1778
  }
1535
- function j(V) {
1536
- u.value = !1, i && clearTimeout(i), J(), ae(), m.value = V.target, n.value = !0, t("dropdown:open");
1779
+ function b(L) {
1780
+ y.value = !1, f && clearTimeout(f), d.value = L.target, o.value = !0, t("dropdown:open");
1537
1781
  }
1538
- function le() {
1539
- S(), oe();
1782
+ function I() {
1783
+ p(), z();
1540
1784
  }
1541
- function oe() {
1542
- m.value && m.value.focus();
1785
+ function z() {
1786
+ d.value && d.value.focus();
1543
1787
  }
1544
- function ae() {
1545
- d.value && (c.zIndex = "9999", c.position = "fixed");
1788
+ function ce(L) {
1789
+ t("update:modelValue", L), a.closeOnSelect && (p(), z());
1546
1790
  }
1547
- function J() {
1548
- const V = s.value.getBoundingClientRect();
1549
- let z = 0;
1550
- d.value ? z = document.documentElement.offsetTop + V.top : z = document.documentElement.scrollTop + V.top;
1551
- const D = V.height, K = V.left, rt = V.width;
1552
- o.justify === "left" ? c.left = K + "px" : c.left = K + rt - parseInt(o.width) + "px", o.direction === "down" ? c.top = z + D + parseInt(o.dropdownGap) + "px" : c.top = z - (parseInt(o.height) + parseInt(o.dropdownGap)) + "px";
1791
+ function oe() {
1792
+ t("dropdown:reset");
1553
1793
  }
1554
- function M(V) {
1555
- t("update:modelValue", V), o.closeOnSelect && (S(), oe());
1794
+ function P() {
1795
+ !r.value || !r.value.children.length || (r.value.children[0].id = c);
1556
1796
  }
1557
- return to(S), l({
1558
- coords: c,
1559
- showDropdownList: n
1560
- }), (V, z) => (y(), O(x(Sl), {
1797
+ return Fa(p), X(() => {
1798
+ P();
1799
+ }), l({
1800
+ showDropdownList: o,
1801
+ generatedId: c
1802
+ }), (L, D) => (u(), x($(na), {
1561
1803
  ref_key: "dropdown",
1562
- ref: r,
1804
+ ref: i,
1563
1805
  options: v,
1564
1806
  class: "joy-dropdown",
1565
- onTrigger: S
1807
+ onTrigger: p
1566
1808
  }, {
1567
1809
  default: B(() => [
1568
- b("div", {
1810
+ h("div", {
1569
1811
  ref_key: "button",
1570
- ref: s,
1812
+ ref: r,
1571
1813
  class: "joy-dropdown__button",
1572
- onClick: j
1814
+ "data-testid": "dropdown-trigger",
1815
+ onClick: b
1573
1816
  }, [
1574
- h(V.$slots, "dropdown-button", {}, void 0, !0)
1817
+ g(L.$slots, "dropdown-button", {}, void 0, !0)
1575
1818
  ], 512),
1576
- (y(), O(ft, {
1577
- to: e.appendTo,
1578
- disabled: e.disableTeleport
1819
+ o.value ? (u(), m("div", {
1820
+ key: 0,
1821
+ ref_key: "list",
1822
+ ref: n,
1823
+ class: S([
1824
+ "joy-dropdown__list",
1825
+ `joy-dropdown__list--${e.justify}`,
1826
+ `joy-dropdown__list--${e.direction}`,
1827
+ {
1828
+ "joy-dropdown__list--visible": !y.value,
1829
+ "joy-dropdown__list--hiding": y.value
1830
+ }
1831
+ ]),
1832
+ style: ae(s.value)
1579
1833
  }, [
1580
- n.value ? (y(), p("div", {
1581
- key: 0,
1582
- ref_key: "list",
1583
- ref: a,
1584
- class: w([
1585
- "joy-dropdown__list",
1586
- `joy-dropdown__list--${e.direction}`,
1587
- {
1588
- "joy-dropdown__list--visible": !u.value,
1589
- "joy-dropdown__list--hiding": u.value
1590
- }
1834
+ U(ut, {
1835
+ "model-value": e.modelValue,
1836
+ options: e.options,
1837
+ size: e.size,
1838
+ width: e.width,
1839
+ height: e.height,
1840
+ reset: e.reset,
1841
+ "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)
1850
+ ], !0)
1591
1851
  ]),
1592
- style: te(f.value)
1852
+ _: 2
1593
1853
  }, [
1594
- R(lt, {
1595
- "model-value": e.modelValue,
1596
- options: e.options,
1597
- size: e.size,
1598
- width: e.width,
1599
- height: e.height,
1600
- "onUpdate:modelValue": M,
1601
- "onClose:dropdownList": le
1602
- }, Ge({
1603
- label: B((D) => [
1604
- h(V.$slots, "dropdown-item", me(pe(D)), () => [
1605
- b("span", null, C(D.label), 1)
1606
- ], !0)
1854
+ L.$slots["dropdown-header"] ? {
1855
+ name: "dropdown-list-header",
1856
+ fn: B(() => [
1857
+ g(L.$slots, "dropdown-header", {}, void 0, !0)
1858
+ ]),
1859
+ key: "0"
1860
+ } : void 0,
1861
+ L.$slots["dropdown-items"] ? {
1862
+ name: "dropdown-list-items",
1863
+ fn: B(() => [
1864
+ g(L.$slots, "dropdown-items", {}, void 0, !0)
1607
1865
  ]),
1608
- _: 2
1609
- }, [
1610
- V.$slots["dropdown-header"] ? {
1611
- name: "dropdown-list-header",
1612
- fn: B(() => [
1613
- h(V.$slots, "dropdown-header", {}, void 0, !0)
1614
- ]),
1615
- key: "0"
1616
- } : void 0,
1617
- V.$slots["dropdown-items"] ? {
1618
- name: "dropdown-list-items",
1619
- fn: B(() => [
1620
- h(V.$slots, "dropdown-items", {}, void 0, !0)
1621
- ]),
1622
- key: "1"
1623
- } : void 0,
1624
- V.$slots["dropdown-footer"] ? {
1625
- name: "dropdown-list-footer",
1626
- fn: B(() => [
1627
- h(V.$slots, "dropdown-footer", {}, void 0, !0)
1628
- ]),
1629
- key: "2"
1630
- } : void 0
1631
- ]), 1032, ["model-value", "options", "size", "width", "height"])
1632
- ], 6)) : g("", !0)
1633
- ], 8, ["to", "disabled"]))
1866
+ key: "1"
1867
+ } : void 0,
1868
+ L.$slots["dropdown-footer"] ? {
1869
+ name: "dropdown-list-footer",
1870
+ fn: B(() => [
1871
+ g(L.$slots, "dropdown-footer", {}, void 0, !0)
1872
+ ]),
1873
+ key: "2"
1874
+ } : void 0
1875
+ ]), 1032, ["model-value", "options", "size", "width", "height", "reset", "reset-label"])
1876
+ ], 6)) : _("", !0)
1634
1877
  ]),
1635
1878
  _: 3
1636
1879
  }, 512));
1637
1880
  }
1638
1881
  });
1639
- const so = /* @__PURE__ */ $(ro, [["__scopeId", "data-v-194e09e1"]]), uo = ["aria-hidden"], co = /* @__PURE__ */ k({
1882
+ const Ha = /* @__PURE__ */ k(Ra, [["__scopeId", "data-v-887e17ba"]]), Da = ["aria-label"], Ua = { class: "joy-filter-bar__wrapper" }, Wa = /* @__PURE__ */ j({
1883
+ __name: "VJoyFilterBar",
1884
+ props: {
1885
+ ariaLabel: String
1886
+ },
1887
+ setup(e) {
1888
+ return (l, t) => (u(), m("div", {
1889
+ class: "joy-filter-bar",
1890
+ role: "group",
1891
+ "aria-label": e.ariaLabel || "Filter bar"
1892
+ }, [
1893
+ h("div", Ua, [
1894
+ g(l.$slots, "default", {}, void 0, !0)
1895
+ ])
1896
+ ], 8, Da));
1897
+ }
1898
+ });
1899
+ const Ga = /* @__PURE__ */ k(Wa, [["__scopeId", "data-v-114f8274"]]), Za = /* @__PURE__ */ j({
1900
+ __name: "VJoyFilterBarButton",
1901
+ props: {
1902
+ label: String,
1903
+ value: {
1904
+ type: String,
1905
+ required: !0
1906
+ },
1907
+ active: {
1908
+ type: Boolean,
1909
+ default: !1
1910
+ }
1911
+ },
1912
+ emits: ["filter"],
1913
+ setup(e, { emit: l }) {
1914
+ const t = e, a = tt("VJoyDropdownContext", null);
1915
+ function o() {
1916
+ l("filter", t.value);
1917
+ }
1918
+ return (i, r) => (u(), m("button", {
1919
+ type: "button",
1920
+ class: S(["joy-filter-bar-button", { "joy-filter-bar-button--active": e.active }]),
1921
+ onClick: o
1922
+ }, [
1923
+ O(C(e.label) + " ", 1),
1924
+ g(i.$slots, "default", {}, void 0, !0),
1925
+ $(a) ? (u(), x(J, {
1926
+ key: 0,
1927
+ class: "joy-filter-bar-button__icon",
1928
+ name: "chevron-down",
1929
+ size: "xxsmall",
1930
+ color: "neutral"
1931
+ })) : _("", !0)
1932
+ ], 2));
1933
+ }
1934
+ });
1935
+ const Ka = /* @__PURE__ */ k(Za, [["__scopeId", "data-v-8f87fed1"]]), Qa = ["aria-hidden"], Ya = /* @__PURE__ */ j({
1640
1936
  __name: "VJoyFormError",
1641
1937
  props: {
1642
1938
  /** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
@@ -1648,24 +1944,24 @@ const so = /* @__PURE__ */ $(ro, [["__scopeId", "data-v-194e09e1"]]), uo = ["ari
1648
1944
  noHtmlErrorText: String
1649
1945
  },
1650
1946
  setup(e) {
1651
- return (l, t) => (y(), p("div", {
1947
+ return (l, t) => (u(), m("div", {
1652
1948
  "aria-hidden": e.visible,
1653
- class: w(["joy-form-error", { "joy-has-error": e.visible }]),
1949
+ class: S(["joy-form-error", { "joy-has-error": e.visible }]),
1654
1950
  role: "alert"
1655
1951
  }, [
1656
- R(q, {
1952
+ U(J, {
1657
1953
  class: "joy-icon-error",
1658
1954
  name: "warning-triangle"
1659
1955
  }),
1660
- b("div", null, [
1661
- h(l.$slots, "default", {}, () => [
1662
- L(C(e.noHtmlErrorText), 1)
1956
+ h("div", null, [
1957
+ g(l.$slots, "default", {}, () => [
1958
+ O(C(e.noHtmlErrorText), 1)
1663
1959
  ], !0)
1664
1960
  ])
1665
- ], 10, uo));
1961
+ ], 10, Qa));
1666
1962
  }
1667
1963
  });
1668
- const ot = /* @__PURE__ */ $(co, [["__scopeId", "data-v-581fd33b"]]), fo = [...Pt], yo = { class: "joy-highlight--text" }, vo = { key: 0 }, mo = /* @__PURE__ */ k({
1964
+ const dt = /* @__PURE__ */ k(Ya, [["__scopeId", "data-v-581fd33b"]]), Xa = [...cl], eo = { class: "joy-highlight--text" }, to = { key: 0 }, lo = /* @__PURE__ */ j({
1669
1965
  __name: "VJoyHighlight",
1670
1966
  props: {
1671
1967
  accent: {
@@ -1683,51 +1979,51 @@ const ot = /* @__PURE__ */ $(co, [["__scopeId", "data-v-581fd33b"]]), fo = [...P
1683
1979
  type: String,
1684
1980
  default: "neutral",
1685
1981
  validator(e) {
1686
- return fo.includes(e);
1982
+ return Xa.includes(e);
1687
1983
  }
1688
1984
  }
1689
1985
  },
1690
1986
  setup(e, { expose: l }) {
1691
- const t = e, o = I(() => t.icon ? t.icon : no(t.level));
1987
+ const t = e, a = V(() => t.icon ? t.icon : qa(t.level));
1692
1988
  return l({
1693
- getRelevantIcon: o
1694
- }), (n, r) => (y(), p("div", {
1695
- class: w([
1989
+ getRelevantIcon: a
1990
+ }), (o, i) => (u(), m("div", {
1991
+ class: S([
1696
1992
  "joy-highlight",
1697
1993
  `joy-highlight_${e.level}`,
1698
1994
  {
1699
1995
  "joy-highlight__accent": e.accent,
1700
- "joy-highlight__titled": n.$slots["highlight-title"]
1996
+ "joy-highlight__titled": o.$slots["highlight-title"]
1701
1997
  }
1702
1998
  ])
1703
1999
  }, [
1704
- e.displayIcon ? (y(), O(q, {
2000
+ e.displayIcon ? (u(), x(J, {
1705
2001
  key: 0,
1706
- name: o.value
1707
- }, null, 8, ["name"])) : g("", !0),
1708
- b("div", yo, [
1709
- n.$slots["highlight-title"] ? (y(), p("strong", vo, [
1710
- h(n.$slots, "highlight-title", {}, void 0, !0)
1711
- ])) : g("", !0),
1712
- h(n.$slots, "default", {}, void 0, !0)
2002
+ name: a.value
2003
+ }, null, 8, ["name"])) : _("", !0),
2004
+ h("div", eo, [
2005
+ o.$slots["highlight-title"] ? (u(), m("strong", to, [
2006
+ g(o.$slots, "highlight-title", {}, void 0, !0)
2007
+ ])) : _("", !0),
2008
+ g(o.$slots, "default", {}, void 0, !0)
1713
2009
  ])
1714
2010
  ], 2));
1715
2011
  }
1716
2012
  });
1717
- const po = /* @__PURE__ */ $(mo, [["__scopeId", "data-v-ba5e6101"]]), go = ["small", "medium", "large"], ho = {
2013
+ const ao = /* @__PURE__ */ k(lo, [["__scopeId", "data-v-ba5e6101"]]), oo = ["small", "medium", "large"], no = {
1718
2014
  key: 0,
1719
2015
  class: "joy-label-required"
1720
- }, bo = {
2016
+ }, io = {
1721
2017
  key: 1,
1722
2018
  class: "joy-label-optional"
1723
- }, _o = /* @__PURE__ */ k({
2019
+ }, ro = /* @__PURE__ */ j({
1724
2020
  __name: "VJoyLabel",
1725
2021
  props: {
1726
2022
  size: {
1727
2023
  type: String,
1728
2024
  default: "medium",
1729
2025
  validator(e) {
1730
- return go.includes(e);
2026
+ return oo.includes(e);
1731
2027
  }
1732
2028
  },
1733
2029
  tagName: {
@@ -1744,21 +2040,21 @@ const po = /* @__PURE__ */ $(mo, [["__scopeId", "data-v-ba5e6101"]]), go = ["sma
1744
2040
  text: String
1745
2041
  },
1746
2042
  setup(e) {
1747
- return (l, t) => (y(), O(re(e.tagName), W({
2043
+ return (l, t) => (u(), x(re(e.tagName), G({
1748
2044
  class: ["joy-label", `joy-label--${e.size}`]
1749
2045
  }, l.$attrs), {
1750
2046
  default: B(() => [
1751
- h(l.$slots, "default", {}, () => [
1752
- L(C(e.text), 1)
2047
+ g(l.$slots, "default", {}, () => [
2048
+ O(C(e.text), 1)
1753
2049
  ], !0),
1754
- e.required ? (y(), p("span", ho, "*")) : g("", !0),
1755
- e.optionalLabel ? (y(), p("span", bo, "- " + C(e.optionalLabel), 1)) : g("", !0)
2050
+ e.required ? (u(), m("span", no, "*")) : _("", !0),
2051
+ e.optionalLabel ? (u(), m("span", io, "- " + C(e.optionalLabel), 1)) : _("", !0)
1756
2052
  ]),
1757
2053
  _: 3
1758
2054
  }, 16, ["class"]));
1759
2055
  }
1760
2056
  });
1761
- const G = /* @__PURE__ */ $(_o, [["__scopeId", "data-v-1265214a"]]), wo = ["large", "medium", "small"], So = ["id", "required", "disabled", "type", "value"], jo = ["data-unit"], ko = /* @__PURE__ */ k({
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({
1762
2058
  inheritAttrs: !1,
1763
2059
  __name: "VJoyInput",
1764
2060
  props: {
@@ -1816,7 +2112,7 @@ const G = /* @__PURE__ */ $(_o, [["__scopeId", "data-v-1265214a"]]), wo = ["larg
1816
2112
  type: String,
1817
2113
  default: "medium",
1818
2114
  validator(e) {
1819
- return wo.includes(e);
2115
+ return so.includes(e);
1820
2116
  }
1821
2117
  },
1822
2118
  type: {
@@ -1828,49 +2124,49 @@ const G = /* @__PURE__ */ $(_o, [["__scopeId", "data-v-1265214a"]]), wo = ["larg
1828
2124
  },
1829
2125
  emits: ["update:modelValue"],
1830
2126
  setup(e, { emit: l }) {
1831
- const t = e, o = _(), n = _(), r = He(), s = Z(), a = _(!1), d = I(() => typeof t.modelValue == "number" || !t.clearable || t.unit || !t.modelValue ? !1 : t.modelValue.length > 0 && !t.unit), m = I(() => s.default && s.default()), u = I(() => {
1832
- var c, f;
1833
- return !!((c = n.value) != null && c.closest("joy-wrapper")) || !!((f = n.value) != null && f.closest(".joy-wrapper"));
1834
- }), v = _(t.type);
1835
- yt(() => {
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(() => {
1836
2132
  v.value = t.unit ? "number" : t.type;
1837
2133
  });
1838
- const i = {
2134
+ const f = {
1839
2135
  onFocus: () => {
1840
- a.value = !0;
2136
+ n.value = !0;
1841
2137
  },
1842
2138
  onBlur: () => {
1843
- a.value = !1;
2139
+ n.value = !1;
1844
2140
  },
1845
- onInput: (c) => {
1846
- let f = c.target.value;
1847
- t.modelModifiers.lazy || l("update:modelValue", f);
2141
+ onInput: (s) => {
2142
+ let p = s.target.value;
2143
+ t.modelModifiers.lazy || l("update:modelValue", p);
1848
2144
  },
1849
- onChange: (c) => {
1850
- let f = c.target.value;
1851
- t.modelModifiers.lazy && l("update:modelValue", f);
2145
+ onChange: (s) => {
2146
+ let p = s.target.value;
2147
+ t.modelModifiers.lazy && l("update:modelValue", p);
1852
2148
  },
1853
2149
  clearValue: () => {
1854
2150
  t.disabled || l("update:modelValue", "");
1855
2151
  }
1856
2152
  };
1857
- return (c, f) => (y(), p("div", {
2153
+ return (s, p) => (u(), m("div", {
1858
2154
  ref_key: "root",
1859
- ref: n,
1860
- class: w([`joy-input--${t.size}`])
2155
+ ref: o,
2156
+ class: S([`joy-input--${t.size}`])
1861
2157
  }, [
1862
- b("div", {
1863
- class: w([
2158
+ h("div", {
2159
+ class: S([
1864
2160
  "joy-input",
1865
2161
  {
1866
- "joy-input--focusing": a.value,
2162
+ "joy-input--focusing": n.value,
1867
2163
  "joy-input--disabled": e.disabled,
1868
2164
  "joy-input--invalid": e.invalid,
1869
- "joy-input--valid": !e.invalid && !x(r).disabled
2165
+ "joy-input--valid": !e.invalid && !$(i).disabled
1870
2166
  }
1871
2167
  ])
1872
2168
  }, [
1873
- m.value || e.label ? (y(), O(G, {
2169
+ y.value || e.label ? (u(), x(K, {
1874
2170
  key: 0,
1875
2171
  for: e.name,
1876
2172
  required: e.required && e.requiredMark,
@@ -1878,27 +2174,27 @@ const G = /* @__PURE__ */ $(_o, [["__scopeId", "data-v-1265214a"]]), wo = ["larg
1878
2174
  size: e.labelSize
1879
2175
  }, {
1880
2176
  default: B(() => [
1881
- h(c.$slots, "default", {}, () => [
1882
- L(C(e.label), 1)
2177
+ g(s.$slots, "default", {}, () => [
2178
+ O(C(e.label), 1)
1883
2179
  ], !0)
1884
2180
  ]),
1885
2181
  _: 3
1886
- }, 8, ["for", "required", "optional-label", "size"])) : g("", !0),
1887
- b("div", {
1888
- class: w([
2182
+ }, 8, ["for", "required", "optional-label", "size"])) : _("", !0),
2183
+ h("div", {
2184
+ class: S([
1889
2185
  "joy-input--wrapper",
1890
2186
  {
1891
2187
  "joy-input--wrapper-has-icon": !!e.icon,
1892
2188
  "joy-input--wrapper---clearable": e.clearable,
1893
2189
  "joy-input--wrapper-unit": !!e.unit,
1894
- "joy-input--wrapper-margin": !u.value
2190
+ "joy-input--wrapper-margin": !c.value
1895
2191
  }
1896
2192
  ])
1897
2193
  }, [
1898
- b("input", W(c.$attrs, {
2194
+ h("input", G(s.$attrs, {
1899
2195
  id: t.name,
1900
2196
  ref_key: "input",
1901
- ref: o,
2197
+ ref: a,
1902
2198
  required: e.required,
1903
2199
  disabled: e.disabled,
1904
2200
  class: [
@@ -1909,41 +2205,40 @@ const G = /* @__PURE__ */ $(_o, [["__scopeId", "data-v-1265214a"]]), wo = ["larg
1909
2205
  ],
1910
2206
  type: v.value,
1911
2207
  value: e.modelValue,
1912
- onFocus: f[0] || (f[0] = //@ts-ignore
1913
- (...S) => i.onFocus && i.onFocus(...S)),
1914
- onBlur: f[1] || (f[1] = //@ts-ignore
1915
- (...S) => i.onBlur && i.onBlur(...S)),
1916
- onInput: f[2] || (f[2] = //@ts-ignore
1917
- (...S) => i.onInput && i.onInput(...S)),
1918
- onChange: f[3] || (f[3] = //@ts-ignore
1919
- (...S) => i.onChange && i.onChange(...S))
1920
- }), null, 16, So),
1921
- d.value ? (y(), O(Ke, {
2208
+ onFocus: p[0] || (p[0] = //@ts-ignore
2209
+ (...b) => f.onFocus && f.onFocus(...b)),
2210
+ onBlur: p[1] || (p[1] = //@ts-ignore
2211
+ (...b) => f.onBlur && f.onBlur(...b)),
2212
+ onInput: p[2] || (p[2] = //@ts-ignore
2213
+ (...b) => f.onInput && f.onInput(...b)),
2214
+ onChange: p[3] || (p[3] = //@ts-ignore
2215
+ (...b) => f.onChange && f.onChange(...b))
2216
+ }), null, 16, uo),
2217
+ d.value ? (u(), x(lt, {
1922
2218
  key: 0,
1923
2219
  class: "joy-input--clear",
1924
2220
  circle: "",
1925
2221
  variant: "ghost",
1926
2222
  size: "xxsmall",
1927
2223
  icon: "cross",
1928
- onClick: i.clearValue
1929
- }, null, 8, ["onClick"])) : g("", !0),
1930
- e.icon ? (y(), O(q, {
2224
+ onClick: f.clearValue
2225
+ }, null, 8, ["onClick"])) : _("", !0),
2226
+ e.icon ? (u(), x(J, {
1931
2227
  key: 1,
1932
- role: "img",
1933
2228
  class: "joy-input--decorative-icon",
1934
2229
  name: e.icon
1935
- }, null, 8, ["name"])) : g("", !0),
1936
- e.unit ? (y(), p("div", {
2230
+ }, null, 8, ["name"])) : _("", !0),
2231
+ e.unit ? (u(), m("div", {
1937
2232
  key: 2,
1938
2233
  "data-unit": e.unit,
1939
2234
  class: "joy-input--unit"
1940
- }, null, 8, jo)) : g("", !0)
2235
+ }, null, 8, co)) : _("", !0)
1941
2236
  ], 2)
1942
2237
  ], 2)
1943
2238
  ], 2));
1944
2239
  }
1945
2240
  });
1946
- const $o = /* @__PURE__ */ $(ko, [["__scopeId", "data-v-a49577c6"]]), Vo = ["teal", "white"], xo = ["href"], Io = /* @__PURE__ */ k({
2241
+ const yo = /* @__PURE__ */ k(fo, [["__scopeId", "data-v-534f3025"]]), vo = ["teal", "white"], mo = ["href"], po = /* @__PURE__ */ j({
1947
2242
  __name: "VJoyLink",
1948
2243
  props: {
1949
2244
  href: {
@@ -1954,36 +2249,36 @@ const $o = /* @__PURE__ */ $(ko, [["__scopeId", "data-v-a49577c6"]]), Vo = ["tea
1954
2249
  type: String,
1955
2250
  default: "teal",
1956
2251
  validator(e) {
1957
- return Vo.includes(e);
2252
+ return vo.includes(e);
1958
2253
  }
1959
2254
  },
1960
2255
  icon: String,
1961
2256
  text: String
1962
2257
  },
1963
2258
  setup(e) {
1964
- return (l, t) => (y(), p("a", W({ href: e.href }, l.$attrs, {
2259
+ return (l, t) => (u(), m("a", G({ href: e.href }, l.$attrs, {
1965
2260
  class: ["joy-link", `joy-link_${e.color}`]
1966
2261
  }), [
1967
- e.icon ? (y(), O(q, {
2262
+ e.icon ? (u(), x(J, {
1968
2263
  key: 0,
1969
2264
  name: e.icon
1970
- }, null, 8, ["name"])) : g("", !0),
1971
- h(l.$slots, "default", {}, () => [
1972
- L(C(e.text), 1)
2265
+ }, null, 8, ["name"])) : _("", !0),
2266
+ g(l.$slots, "default", {}, () => [
2267
+ O(C(e.text), 1)
1973
2268
  ], !0)
1974
- ], 16, xo));
2269
+ ], 16, mo));
1975
2270
  }
1976
2271
  });
1977
- const Oo = /* @__PURE__ */ $(Io, [["__scopeId", "data-v-76f0342e"]]), Co = ["id"], Bo = {
1978
- class: /* @__PURE__ */ w(["joy-multi-checkbox"])
1979
- }, Lo = /* @__PURE__ */ k({
2272
+ const ho = /* @__PURE__ */ k(po, [["__scopeId", "data-v-76f0342e"]]), _o = ["id"], go = {
2273
+ class: /* @__PURE__ */ S(["joy-multi-checkbox"])
2274
+ }, bo = /* @__PURE__ */ j({
1980
2275
  __name: "VJoyMultiCheckbox",
1981
2276
  props: {
1982
2277
  options: {
1983
2278
  type: Array,
1984
2279
  required: !0,
1985
2280
  validator(e) {
1986
- const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
2281
+ const l = e.every((a) => Object.keys(a).includes("value")), t = e.every((a) => Object.keys(a).includes("label"));
1987
2282
  return l && t;
1988
2283
  }
1989
2284
  },
@@ -2012,18 +2307,18 @@ const Oo = /* @__PURE__ */ $(Io, [["__scopeId", "data-v-76f0342e"]]), Co = ["id"
2012
2307
  emits: ["update:value"],
2013
2308
  setup(e, { emit: l }) {
2014
2309
  const t = e;
2015
- function o(r) {
2016
- return t.value.includes(r.value);
2310
+ function a(i) {
2311
+ return t.value.includes(i.value);
2017
2312
  }
2018
- function n(r, s) {
2019
- let a = [...t.value || []];
2020
- s ? a.push(r) : a.splice(a.indexOf(r), 1), l("update:value", a);
2313
+ function o(i, r) {
2314
+ let n = [...t.value || []];
2315
+ r ? n.push(i) : n.splice(n.indexOf(i), 1), l("update:value", n);
2021
2316
  }
2022
- return (r, s) => (y(), p("fieldset", {
2317
+ return (i, r) => (u(), m("fieldset", {
2023
2318
  id: e.id,
2024
2319
  class: "joy-multi-checkbox__wrapper"
2025
2320
  }, [
2026
- e.label ? (y(), O(x(G), {
2321
+ e.label ? (u(), x($(K), {
2027
2322
  key: 0,
2028
2323
  "tag-name": "legend",
2029
2324
  required: e.required && e.requiredMark,
@@ -2031,43 +2326,43 @@ const Oo = /* @__PURE__ */ $(Io, [["__scopeId", "data-v-76f0342e"]]), Co = ["id"
2031
2326
  size: e.labelSize
2032
2327
  }, {
2033
2328
  default: B(() => [
2034
- L(C(e.label), 1)
2329
+ O(C(e.label), 1)
2035
2330
  ]),
2036
2331
  _: 1
2037
- }, 8, ["required", "optional-label", "size"])) : g("", !0),
2038
- b("div", Bo, [
2039
- (y(!0), p(H, null, se(e.options, (a) => (y(), O(x(he), {
2040
- id: a.id,
2041
- key: a.id,
2042
- name: a.name,
2043
- value: a.value,
2044
- checked: o(a),
2045
- "onUpdate:checked": (d) => n(a.value, d)
2332
+ }, 8, ["required", "optional-label", "size"])) : _("", !0),
2333
+ h("div", go, [
2334
+ (u(!0), m(W, null, Y(e.options, (n) => (u(), x($(je), {
2335
+ id: n.id,
2336
+ key: n.id,
2337
+ name: n.name,
2338
+ value: n.value,
2339
+ checked: a(n),
2340
+ "onUpdate:checked": (d) => o(n.value, d)
2046
2341
  }, {
2047
2342
  default: B(() => [
2048
- h(r.$slots, "checkbox", me(pe(a)), () => [
2049
- L(C(a.label), 1)
2343
+ g(i.$slots, "checkbox", we(Se(n)), () => [
2344
+ O(C(n.label), 1)
2050
2345
  ], !0)
2051
2346
  ]),
2052
2347
  _: 2
2053
2348
  }, 1032, ["id", "name", "value", "checked", "onUpdate:checked"]))), 128))
2054
2349
  ])
2055
- ], 8, Co));
2350
+ ], 8, _o));
2056
2351
  }
2057
2352
  });
2058
- const Eo = /* @__PURE__ */ $(Lo, [["__scopeId", "data-v-47574ced"]]), Jo = ["small", "medium", "large"], zo = ["small", "large"], To = {
2353
+ const wo = /* @__PURE__ */ k(bo, [["__scopeId", "data-v-47574ced"]]), So = ["small", "medium", "large"], $o = ["small", "large"], jo = {
2059
2354
  key: 0,
2060
- class: /* @__PURE__ */ w(["joy-panel__header"])
2061
- }, Po = {
2355
+ class: /* @__PURE__ */ S(["joy-panel__header"])
2356
+ }, ko = {
2062
2357
  key: 1,
2063
2358
  class: "joy-panel__header-action"
2064
- }, qo = {
2359
+ }, Vo = {
2065
2360
  key: 2,
2066
2361
  class: "joy-panel__header-subtitle"
2067
- }, Ao = { class: "joy-panel__body" }, Fo = {
2362
+ }, xo = { class: "joy-panel__body" }, Co = {
2068
2363
  key: 1,
2069
2364
  class: "joy-panel__footer"
2070
- }, Mo = /* @__PURE__ */ k({
2365
+ }, Lo = /* @__PURE__ */ j({
2071
2366
  __name: "VJoyPanel",
2072
2367
  props: {
2073
2368
  flex: {
@@ -2081,14 +2376,14 @@ const Eo = /* @__PURE__ */ $(Lo, [["__scopeId", "data-v-47574ced"]]), Jo = ["sma
2081
2376
  type: String,
2082
2377
  default: "medium",
2083
2378
  validator(e) {
2084
- return Jo.includes(e);
2379
+ return So.includes(e);
2085
2380
  }
2086
2381
  },
2087
2382
  titleSize: {
2088
2383
  type: String,
2089
2384
  default: "large",
2090
2385
  validator(e) {
2091
- return zo.includes(e);
2386
+ return $o.includes(e);
2092
2387
  }
2093
2388
  },
2094
2389
  loading: {
@@ -2101,12 +2396,12 @@ const Eo = /* @__PURE__ */ $(Lo, [["__scopeId", "data-v-47574ced"]]), Jo = ["sma
2101
2396
  }
2102
2397
  },
2103
2398
  setup(e) {
2104
- const l = vt("VJoyWrapperContext", {}), t = I(() => Object.keys(l).length > 0), o = Z(), n = _(), r = I(() => o["panel-title"] || o["panel-subtitle"] || o["panel-title-action"]);
2105
- return (s, a) => (y(), p("section", {
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", {
2106
2401
  ref_key: "panel",
2107
- ref: n,
2108
- style: te({ flex: e.flex }),
2109
- class: w([
2402
+ ref: o,
2403
+ style: ae({ flex: e.flex }),
2404
+ class: S([
2110
2405
  "joy-panel",
2111
2406
  `joy-panel--${e.padding}`,
2112
2407
  {
@@ -2115,60 +2410,60 @@ const Eo = /* @__PURE__ */ $(Lo, [["__scopeId", "data-v-47574ced"]]), Jo = ["sma
2115
2410
  }
2116
2411
  ])
2117
2412
  }, [
2118
- r.value ? (y(), p("header", To, [
2119
- x(o)["panel-title"] ? (y(), p("div", {
2413
+ i.value ? (u(), m("header", jo, [
2414
+ $(a)["panel-title"] ? (u(), m("div", {
2120
2415
  key: 0,
2121
- class: w(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
2416
+ class: S(["joy-panel__header-title", `joy-panel__header-title--${e.titleSize}`])
2122
2417
  }, [
2123
- h(s.$slots, "panel-title", {}, void 0, !0)
2124
- ], 2)) : g("", !0),
2125
- x(o)["panel-title-action"] ? (y(), p("div", Po, [
2126
- h(s.$slots, "panel-title-action", {}, void 0, !0)
2127
- ])) : g("", !0),
2128
- x(o)["panel-subtitle"] ? (y(), p("div", qo, [
2129
- h(s.$slots, "panel-subtitle", {}, void 0, !0)
2130
- ])) : g("", !0)
2131
- ])) : g("", !0),
2132
- b("div", Ao, [
2133
- h(s.$slots, "panel-body", {}, void 0, !0)
2418
+ g(r.$slots, "panel-title", {}, void 0, !0)
2419
+ ], 2)) : _("", !0),
2420
+ $(a)["panel-title-action"] ? (u(), m("div", ko, [
2421
+ g(r.$slots, "panel-title-action", {}, void 0, !0)
2422
+ ])) : _("", !0),
2423
+ $(a)["panel-subtitle"] ? (u(), m("div", Vo, [
2424
+ g(r.$slots, "panel-subtitle", {}, void 0, !0)
2425
+ ])) : _("", !0)
2426
+ ])) : _("", !0),
2427
+ h("div", xo, [
2428
+ g(r.$slots, "panel-body", {}, void 0, !0)
2134
2429
  ]),
2135
- x(o)["panel-action"] ? (y(), p("footer", Fo, [
2136
- h(s.$slots, "panel-action", {}, void 0, !0)
2137
- ])) : g("", !0),
2138
- e.loading ? (y(), O(x(_e), {
2430
+ $(a)["panel-action"] ? (u(), m("footer", Co, [
2431
+ g(r.$slots, "panel-action", {}, void 0, !0)
2432
+ ])) : _("", !0),
2433
+ e.loading ? (u(), x($(Ve), {
2139
2434
  key: 2,
2140
2435
  overlay: "",
2141
2436
  color: e.loadingColor
2142
2437
  }, {
2143
2438
  content: B(() => [
2144
- h(s.$slots, "panel-loader-content", {}, void 0, !0)
2439
+ g(r.$slots, "panel-loader-content", {}, void 0, !0)
2145
2440
  ]),
2146
2441
  _: 3
2147
- }, 8, ["color"])) : g("", !0)
2442
+ }, 8, ["color"])) : _("", !0)
2148
2443
  ], 6));
2149
2444
  }
2150
2445
  });
2151
- const No = /* @__PURE__ */ $(Mo, [["__scopeId", "data-v-2e3a2baa"]]), Ro = { class: "joy-panel-section" }, Do = {
2446
+ const Io = /* @__PURE__ */ k(Lo, [["__scopeId", "data-v-2e3a2baa"]]), Oo = { class: "joy-panel-section" }, Bo = {
2152
2447
  key: 0,
2153
2448
  class: "joy-panel-section__title"
2154
- }, Ho = {
2449
+ }, Eo = {
2155
2450
  key: 1,
2156
2451
  class: "joy-panel-section__content"
2157
- }, Wo = /* @__PURE__ */ k({
2452
+ }, To = /* @__PURE__ */ j({
2158
2453
  __name: "VJoyPanelSection",
2159
2454
  setup(e) {
2160
- const l = Z();
2161
- return (t, o) => (y(), p("div", Ro, [
2162
- x(l)["panel-section-title"] ? (y(), p("div", Do, [
2163
- h(t.$slots, "panel-section-title", {}, void 0, !0)
2164
- ])) : g("", !0),
2165
- x(l)["panel-section-content"] ? (y(), p("div", Ho, [
2166
- h(t.$slots, "panel-section-content", {}, void 0, !0)
2167
- ])) : g("", !0)
2455
+ const l = ee();
2456
+ return (t, a) => (u(), m("div", Oo, [
2457
+ $(l)["panel-section-title"] ? (u(), m("div", Bo, [
2458
+ g(t.$slots, "panel-section-title", {}, void 0, !0)
2459
+ ])) : _("", !0),
2460
+ $(l)["panel-section-content"] ? (u(), m("div", Eo, [
2461
+ g(t.$slots, "panel-section-content", {}, void 0, !0)
2462
+ ])) : _("", !0)
2168
2463
  ]));
2169
2464
  }
2170
2465
  });
2171
- const Uo = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-d88510ab"]]), Go = ["id", "value", "checked", "disabled", "required", "name"], Ko = { class: "joy-radio-label" }, Qo = { class: "joy-radio-content__wrapper" }, Yo = { class: "joy-radio-content" }, Zo = /* @__PURE__ */ k({
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({
2172
2467
  __name: "VJoyRadio",
2173
2468
  props: {
2174
2469
  disabled: {
@@ -2204,76 +2499,76 @@ const Uo = /* @__PURE__ */ $(Wo, [["__scopeId", "data-v-d88510ab"]]), Go = ["id"
2204
2499
  },
2205
2500
  emits: ["update:modelValue"],
2206
2501
  setup(e, { expose: l, emit: t }) {
2207
- const o = e, n = _(!1), r = _(!1), s = _(null), a = _(null), d = Z(), m = I(() => !o.modelValue || !o.value ? !1 : o.modelValue === o.value);
2208
- function u() {
2209
- n.value = !!d["expandable-content"] && m.value;
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;
2210
2505
  }
2211
2506
  function v() {
2212
- t("update:modelValue", o.value), u();
2507
+ t("update:modelValue", a.value), c();
2213
2508
  }
2214
- Y(() => {
2215
- o.theme === "outline" && u();
2509
+ X(() => {
2510
+ a.theme === "outline" && c();
2216
2511
  });
2217
- function i() {
2218
- r.value = !0;
2512
+ function f() {
2513
+ i.value = !0;
2219
2514
  }
2220
- function c() {
2221
- r.value = !1;
2515
+ function s() {
2516
+ i.value = !1;
2222
2517
  }
2223
2518
  return E(
2224
- () => o.modelValue,
2519
+ () => a.modelValue,
2225
2520
  () => {
2226
- u();
2521
+ c();
2227
2522
  }
2228
2523
  ), l({
2229
- checked: m,
2230
- isExpanded: n
2231
- }), (f, S) => (y(), p("label", {
2524
+ checked: y,
2525
+ isExpanded: o
2526
+ }), (p, b) => (u(), m("label", {
2232
2527
  ref_key: "root",
2233
- ref: s,
2234
- class: w([
2528
+ ref: r,
2529
+ class: S([
2235
2530
  "joy-radio",
2236
2531
  `joy-radio--${e.theme}`,
2237
2532
  {
2238
- "joy-radio--checked": m.value,
2533
+ "joy-radio--checked": y.value,
2239
2534
  "joy-radio--disabled": e.disabled,
2240
2535
  "joy-radio--invalid": e.invalid,
2241
- "joy-radio--outline-focus": r.value && e.theme === "outline",
2242
- "joy-radio--focus": r.value && e.theme === "default"
2536
+ "joy-radio--outline-focus": i.value && e.theme === "outline",
2537
+ "joy-radio--focus": i.value && e.theme === "default"
2243
2538
  }
2244
2539
  ])
2245
2540
  }, [
2246
- b("input", {
2541
+ h("input", {
2247
2542
  id: e.id,
2248
2543
  type: "radio",
2249
2544
  value: e.value,
2250
- checked: m.value,
2545
+ checked: y.value,
2251
2546
  disabled: e.disabled,
2252
2547
  required: e.required,
2253
2548
  name: e.name,
2254
2549
  onChange: v,
2255
- onFocus: i,
2256
- onBlur: c
2257
- }, null, 40, Go),
2258
- b("span", Ko, [
2259
- h(f.$slots, "default", {}, void 0, !0)
2550
+ onFocus: f,
2551
+ onBlur: s
2552
+ }, null, 40, Po),
2553
+ h("span", zo, [
2554
+ g(p.$slots, "default", {}, void 0, !0)
2260
2555
  ]),
2261
- b("div", Qo, [
2262
- b("div", Yo, [
2263
- h(f.$slots, "radio-content", {}, void 0, !0)
2556
+ h("div", Ao, [
2557
+ h("div", Fo, [
2558
+ g(p.$slots, "radio-content", {}, void 0, !0)
2264
2559
  ]),
2265
- b("div", {
2560
+ h("div", {
2266
2561
  ref_key: "expandableElement",
2267
- ref: a,
2268
- class: w(["joy-radio-expandable", { "joy-radio-expandable--expanded": n.value }])
2562
+ ref: n,
2563
+ class: S(["joy-radio-expandable", { "joy-radio-expandable--expanded": o.value }])
2269
2564
  }, [
2270
- h(f.$slots, "expandable-content", {}, void 0, !0)
2565
+ g(p.$slots, "expandable-content", {}, void 0, !0)
2271
2566
  ], 2)
2272
2567
  ])
2273
2568
  ], 2));
2274
2569
  }
2275
2570
  });
2276
- const Xo = /* @__PURE__ */ $(Zo, [["__scopeId", "data-v-24cea99b"]]), ea = ["form", "name"], ta = /* @__PURE__ */ k({
2571
+ const Mo = /* @__PURE__ */ k(qo, [["__scopeId", "data-v-24cea99b"]]), No = ["form", "name"], Ro = /* @__PURE__ */ j({
2277
2572
  __name: "VJoyRadioGroup",
2278
2573
  props: {
2279
2574
  /**
@@ -2294,26 +2589,132 @@ const Xo = /* @__PURE__ */ $(Zo, [["__scopeId", "data-v-24cea99b"]]), ea = ["for
2294
2589
  }
2295
2590
  },
2296
2591
  setup(e) {
2297
- return (l, t) => (y(), p("fieldset", {
2592
+ return (l, t) => (u(), m("fieldset", {
2298
2593
  ref: "root",
2299
2594
  class: "joy-radio-group-fieldset",
2300
2595
  role: "radiogroup",
2301
2596
  form: e.form,
2302
2597
  name: e.name
2303
2598
  }, [
2304
- h(l.$slots, "radio-group-legend", {}, void 0, !0),
2305
- b("div", {
2306
- class: w(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2599
+ g(l.$slots, "radio-group-legend", {}, void 0, !0),
2600
+ h("div", {
2601
+ class: S(["joy-radio-group-container", `joy-radio-group-${e.direction}`])
2307
2602
  }, [
2308
- h(l.$slots, "default", {}, void 0, !0)
2603
+ g(l.$slots, "default", {}, void 0, !0)
2309
2604
  ], 2)
2310
- ], 8, ea));
2605
+ ], 8, No));
2606
+ }
2607
+ });
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", {
2609
+ 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
+ fill: "#FFC200"
2611
+ }, null, -1)), Zo = [
2612
+ Go
2613
+ ], Ko = ["width", "height"], Qo = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2614
+ 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
+ stroke: "#FFC200",
2616
+ "stroke-width": "1.5",
2617
+ "stroke-linecap": "round",
2618
+ "stroke-linejoin": "round"
2619
+ }, null, -1)), Yo = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2620
+ 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
+ fill: "#FFC200"
2622
+ }, null, -1)), Xo = [
2623
+ Qo,
2624
+ Yo
2625
+ ], en = ["width", "height"], tn = /* @__PURE__ */ de(() => /* @__PURE__ */ h("path", {
2626
+ 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
+ stroke: "#E0DED9",
2628
+ "stroke-width": "1.5",
2629
+ "stroke-linecap": "round",
2630
+ "stroke-linejoin": "round"
2631
+ }, null, -1)), ln = [
2632
+ tn
2633
+ ], an = { class: "joy-rating-stars__content" }, on = { key: 0 }, nn = /* @__PURE__ */ j({
2634
+ __name: "VJoyRatingStars",
2635
+ props: {
2636
+ ratingValue: {
2637
+ type: Number,
2638
+ default: 0
2639
+ },
2640
+ reviewCount: {
2641
+ type: Number,
2642
+ default: 0
2643
+ },
2644
+ size: {
2645
+ type: String,
2646
+ default: "medium"
2647
+ }
2648
+ },
2649
+ setup(e, { expose: l }) {
2650
+ const t = e, a = be(), o = V(() => {
2651
+ switch (t.size) {
2652
+ case "large":
2653
+ return 17;
2654
+ case "medium":
2655
+ return 14;
2656
+ case "small":
2657
+ return 11;
2658
+ default:
2659
+ return 14;
2660
+ }
2661
+ }), 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;
2665
+ return r;
2666
+ });
2667
+ return l({
2668
+ setStars: i
2669
+ }), (r, n) => (u(), m("div", {
2670
+ role: "img",
2671
+ class: "joy-rating-stars__wrapper",
2672
+ ariaLabel: $(a).ariaLabel || `Rating: ${e.ratingValue} out of 5`
2673
+ }, [
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", {
2677
+ key: 0,
2678
+ "aria-hidden": "true",
2679
+ class: "star-full",
2680
+ width: o.value,
2681
+ height: o.value,
2682
+ viewBox: "0 0 17 17",
2683
+ fill: "none",
2684
+ xmlns: "http://www.w3.org/2000/svg"
2685
+ }, Zo, 8, Wo)) : d === "half" ? (u(), m("svg", {
2686
+ key: 1,
2687
+ "aria-hidden": "true",
2688
+ class: "star-half",
2689
+ width: o.value,
2690
+ height: o.value,
2691
+ viewBox: "0 0 17 17",
2692
+ xmlns: "http://www.w3.org/2000/svg",
2693
+ fill: "none"
2694
+ }, Xo, 8, Ko)) : (u(), m("svg", {
2695
+ key: 2,
2696
+ class: "star-empty",
2697
+ "aria-hidden": "true",
2698
+ width: o.value,
2699
+ height: o.value,
2700
+ viewBox: "0 0 17 17",
2701
+ fill: "none",
2702
+ xmlns: "http://www.w3.org/2000/svg"
2703
+ }, ln, 8, en))
2704
+ ]))), 128))
2705
+ ]),
2706
+ h("div", an, [
2707
+ g(r.$slots, "rating-stars-content", {}, () => [
2708
+ e.reviewCount ? (u(), m("span", on, "(" + C(e.reviewCount) + ")", 1)) : _("", !0)
2709
+ ], !0)
2710
+ ])
2711
+ ], 8, Do));
2311
2712
  }
2312
2713
  });
2313
- const la = /* @__PURE__ */ $(ta, [["__scopeId", "data-v-a77e7f95"]]), oa = { class: "joy-screen-loader__content" }, aa = {
2714
+ const rn = /* @__PURE__ */ k(nn, [["__scopeId", "data-v-adbf7701"]]), sn = { class: "joy-screen-loader__content" }, un = {
2314
2715
  key: 0,
2315
2716
  class: "joy-screen-loader__content"
2316
- }, na = /* @__PURE__ */ k({
2717
+ }, dn = /* @__PURE__ */ j({
2317
2718
  __name: "VJoyScreenLoader",
2318
2719
  props: {
2319
2720
  /** Light or dark. Changes the spinner and background color */
@@ -2328,23 +2729,23 @@ const la = /* @__PURE__ */ $(ta, [["__scopeId", "data-v-a77e7f95"]]), oa = { cla
2328
2729
  }
2329
2730
  },
2330
2731
  setup(e) {
2331
- return (l, t) => (y(), p("div", {
2332
- class: w(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2732
+ return (l, t) => (u(), m("div", {
2733
+ class: S(["joy-screen-loader", `joy-screen-loader--${e.color}`, { "joy-screen-loader--overlay": e.overlay }])
2333
2734
  }, [
2334
- b("div", oa, [
2335
- h(l.$slots, "spinner", {}, () => [
2336
- R(ge, {
2735
+ h("div", sn, [
2736
+ g(l.$slots, "spinner", {}, () => [
2737
+ U($e, {
2337
2738
  color: e.color === "dark" ? "white" : "teal"
2338
2739
  }, null, 8, ["color"])
2339
2740
  ], !0),
2340
- l.$slots.content ? (y(), p("div", aa, [
2341
- h(l.$slots, "content", {}, void 0, !0)
2342
- ])) : g("", !0)
2741
+ l.$slots.content ? (u(), m("div", un, [
2742
+ g(l.$slots, "content", {}, void 0, !0)
2743
+ ])) : _("", !0)
2343
2744
  ])
2344
2745
  ], 2));
2345
2746
  }
2346
2747
  });
2347
- const _e = /* @__PURE__ */ $(na, [["__scopeId", "data-v-5c4f6d7f"]]), ia = ["id", "name", "aria-invalid", "required", "disabled", "value"], ra = /* @__PURE__ */ k({
2748
+ const Ve = /* @__PURE__ */ k(dn, [["__scopeId", "data-v-5c4f6d7f"]]), cn = ["id", "name", "aria-invalid", "required", "disabled", "value"], fn = /* @__PURE__ */ j({
2348
2749
  __name: "VJoySelect",
2349
2750
  props: {
2350
2751
  disabled: {
@@ -2375,7 +2776,7 @@ const _e = /* @__PURE__ */ $(na, [["__scopeId", "data-v-5c4f6d7f"]]), ia = ["id"
2375
2776
  type: Boolean,
2376
2777
  default: !1
2377
2778
  },
2378
- // ...LABEL_BASED_PROPS,
2779
+ /** Made to use the built-in v-model */
2379
2780
  modelValue: {
2380
2781
  type: [String, Number]
2381
2782
  },
@@ -2387,65 +2788,65 @@ const _e = /* @__PURE__ */ $(na, [["__scopeId", "data-v-5c4f6d7f"]]), ia = ["id"
2387
2788
  },
2388
2789
  emits: ["update:modelValue"],
2389
2790
  setup(e, { emit: l }) {
2390
- const t = e, o = _(), n = _(), r = Z(), s = _(!1), a = I(() => t.labelSize ? t.labelSize : t.size !== "medium" ? "small" : "medium");
2391
- Y(() => {
2392
- var c;
2393
- const v = r.label && r.label();
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();
2394
2795
  if (!v || !v.length)
2395
2796
  return;
2396
- const i = v[0];
2397
- if (i.type === "JoyLabel") {
2398
- const f = (c = i.props) == null ? void 0 : c.for;
2399
- if (!f) {
2797
+ const f = v[0];
2798
+ if (f.type === "JoyLabel") {
2799
+ const p = (s = f.props) == null ? void 0 : s.for;
2800
+ if (!p) {
2400
2801
  console.warn("JoyLabel for attribute is missing");
2401
2802
  return;
2402
2803
  }
2403
- f !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2804
+ p !== t.id && console.warn("JoyLabel for attribute does not match with JoySelect id");
2404
2805
  }
2405
2806
  });
2406
2807
  function d(v) {
2407
- const i = v.target.value;
2408
- l("update:modelValue", i);
2808
+ const f = v.target.value;
2809
+ l("update:modelValue", f);
2409
2810
  }
2410
- function m() {
2411
- s.value = !0;
2811
+ function y() {
2812
+ r.value = !0;
2412
2813
  }
2413
- function u() {
2414
- s.value = !1;
2814
+ function c() {
2815
+ r.value = !1;
2415
2816
  }
2416
- return (v, i) => (y(), p("div", {
2817
+ return (v, f) => (u(), m("div", {
2417
2818
  ref_key: "root",
2418
- ref: o
2819
+ ref: a
2419
2820
  }, [
2420
- h(v.$slots, "select-label", {}, () => [
2421
- e.label ? (y(), O(G, {
2821
+ g(v.$slots, "select-label", {}, () => [
2822
+ e.label ? (u(), x(K, {
2422
2823
  key: 0,
2423
2824
  required: e.required && e.requiredMark,
2424
2825
  "optional-label": e.optionalLabel,
2425
2826
  for: e.id || e.name,
2426
- size: a.value
2827
+ size: n.value
2427
2828
  }, {
2428
2829
  default: B(() => [
2429
- L(C(e.label), 1)
2830
+ O(C(e.label), 1)
2430
2831
  ]),
2431
2832
  _: 1
2432
- }, 8, ["required", "optional-label", "for", "size"])) : g("", !0)
2833
+ }, 8, ["required", "optional-label", "for", "size"])) : _("", !0)
2433
2834
  ], !0),
2434
- b("div", {
2435
- class: w([
2835
+ h("div", {
2836
+ class: S([
2436
2837
  `joy-select--${e.size}`,
2437
2838
  {
2438
2839
  "joy-select__wrapper": !0,
2439
2840
  "joy-select--invalid": e.invalid,
2440
2841
  "joy-select--disabled": e.disabled,
2441
- "joy-select--focusing": s.value
2842
+ "joy-select--focusing": r.value
2442
2843
  }
2443
2844
  ])
2444
2845
  }, [
2445
- b("select", {
2846
+ h("select", {
2446
2847
  id: e.id || e.name,
2447
2848
  ref_key: "select",
2448
- ref: n,
2849
+ ref: o,
2449
2850
  class: "joy-select",
2450
2851
  name: e.name,
2451
2852
  "aria-invalid": e.invalid,
@@ -2453,12 +2854,12 @@ const _e = /* @__PURE__ */ $(na, [["__scopeId", "data-v-5c4f6d7f"]]), ia = ["id"
2453
2854
  disabled: e.disabled,
2454
2855
  value: e.modelValue,
2455
2856
  onInput: d,
2456
- onFocus: m,
2457
- onBlur: u
2857
+ onFocus: y,
2858
+ onBlur: c
2458
2859
  }, [
2459
- h(v.$slots, "default", {}, void 0, !0)
2460
- ], 40, ia),
2461
- R(q, {
2860
+ g(v.$slots, "default", {}, void 0, !0)
2861
+ ], 40, cn),
2862
+ U(J, {
2462
2863
  class: "joy-select__chevron",
2463
2864
  name: "chevron-down"
2464
2865
  })
@@ -2466,7 +2867,7 @@ const _e = /* @__PURE__ */ $(na, [["__scopeId", "data-v-5c4f6d7f"]]), ia = ["id"
2466
2867
  ], 512));
2467
2868
  }
2468
2869
  });
2469
- const sa = /* @__PURE__ */ $(ra, [["__scopeId", "data-v-b8f98cc8"]]), ua = ["aria-disabled"], da = ["id", "value", "checked", "disabled", "required", "name"], ca = /* @__PURE__ */ k({
2870
+ const yn = /* @__PURE__ */ k(fn, [["__scopeId", "data-v-26bd5a41"]]), vn = ["aria-disabled"], mn = ["id", "value", "checked", "disabled", "required", "name"], pn = /* @__PURE__ */ j({
2470
2871
  __name: "VJoySelectableItem",
2471
2872
  props: {
2472
2873
  disabled: {
@@ -2503,58 +2904,58 @@ const sa = /* @__PURE__ */ $(ra, [["__scopeId", "data-v-b8f98cc8"]]), ua = ["ari
2503
2904
  },
2504
2905
  emits: ["update:checked"],
2505
2906
  setup(e, { emit: l }) {
2506
- const t = e, o = _(t.checked), n = _(), r = _(!1), s = t.multiple ? "div" : "label", a = {
2907
+ const t = e, a = w(t.checked), o = w(), i = w(!1), r = t.multiple ? "div" : "label", n = {
2507
2908
  onRadioChange: () => {
2508
2909
  l("update:checked", t.value);
2509
2910
  },
2510
2911
  onClick: () => {
2511
2912
  t.checked && !t.multiple && l("update:checked", "");
2512
2913
  },
2513
- onLabelClick: (m) => {
2514
- t.multiple || m.stopPropagation();
2914
+ onLabelClick: (y) => {
2915
+ t.multiple || y.stopPropagation();
2515
2916
  },
2516
2917
  onFocus: () => {
2517
- r.value = !0;
2918
+ i.value = !0;
2518
2919
  },
2519
2920
  onBlur: () => {
2520
- r.value = !1;
2921
+ i.value = !1;
2521
2922
  }
2522
2923
  };
2523
- function d(m) {
2524
- l("update:checked", m);
2924
+ function d(y) {
2925
+ l("update:checked", y);
2525
2926
  }
2526
- return (m, u) => (y(), p("div", {
2527
- class: w([
2927
+ return (y, c) => (u(), m("div", {
2928
+ class: S([
2528
2929
  "joy-selectable-item__wrapper",
2529
2930
  {
2530
- "joy-selectable-item--focusing": r.value
2931
+ "joy-selectable-item--focusing": i.value
2531
2932
  }
2532
2933
  ]),
2533
2934
  "aria-disabled": e.disabled,
2534
- onClick: u[4] || (u[4] = //@ts-ignore
2535
- (...v) => a.onClick && a.onClick(...v))
2935
+ onClick: c[4] || (c[4] = //@ts-ignore
2936
+ (...v) => n.onClick && n.onClick(...v))
2536
2937
  }, [
2537
- e.multiple ? g("", !0) : (y(), p("input", {
2938
+ e.multiple ? _("", !0) : (u(), m("input", {
2538
2939
  key: 0,
2539
2940
  id: e.id,
2540
2941
  ref_key: "inputRadio",
2541
- ref: n,
2942
+ ref: o,
2542
2943
  type: "radio",
2543
2944
  value: e.value,
2544
2945
  checked: e.checked,
2545
2946
  disabled: e.disabled,
2546
2947
  required: e.required,
2547
2948
  name: e.name,
2548
- onChange: u[0] || (u[0] = //@ts-ignore
2549
- (...v) => a.onRadioChange && a.onRadioChange(...v)),
2550
- onFocus: u[1] || (u[1] = //@ts-ignore
2551
- (...v) => a.onFocus && a.onFocus(...v)),
2552
- onBlur: u[2] || (u[2] = //@ts-ignore
2553
- (...v) => a.onBlur && a.onBlur(...v))
2554
- }, null, 40, da)),
2555
- (y(), O(re(x(s)), {
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)), {
2556
2957
  for: e.id,
2557
- class: w([
2958
+ class: S([
2558
2959
  "joy-selectable-item",
2559
2960
  {
2560
2961
  "joy-selectable-item--disabled": e.disabled,
@@ -2563,15 +2964,15 @@ const sa = /* @__PURE__ */ $(ra, [["__scopeId", "data-v-b8f98cc8"]]), ua = ["ari
2563
2964
  "joy-selectable-item--single": !e.multiple
2564
2965
  }
2565
2966
  ]),
2566
- onClick: a.onLabelClick
2967
+ onClick: n.onLabelClick
2567
2968
  }, {
2568
2969
  default: B(() => [
2569
- e.multiple ? (y(), O(x(he), {
2970
+ e.multiple ? (u(), x($(je), {
2570
2971
  key: 0,
2571
2972
  id: e.id,
2572
- checked: o.value,
2973
+ checked: a.value,
2573
2974
  "onUpdate:checked": [
2574
- u[3] || (u[3] = (v) => o.value = v),
2975
+ c[3] || (c[3] = (v) => a.value = v),
2575
2976
  d
2576
2977
  ],
2577
2978
  disabled: e.disabled,
@@ -2579,34 +2980,34 @@ const sa = /* @__PURE__ */ $(ra, [["__scopeId", "data-v-b8f98cc8"]]), ua = ["ari
2579
2980
  name: e.name,
2580
2981
  "display-focus": !1,
2581
2982
  required: e.required,
2582
- onFocus: a.onFocus,
2583
- onBlur: a.onBlur
2983
+ onFocus: n.onFocus,
2984
+ onBlur: n.onBlur
2584
2985
  }, {
2585
2986
  default: B(() => [
2586
- h(m.$slots, "default", {}, void 0, !0)
2987
+ g(y.$slots, "default", {}, void 0, !0)
2587
2988
  ]),
2588
2989
  _: 3
2589
- }, 8, ["id", "checked", "disabled", "value", "name", "required", "onFocus", "onBlur"])) : g("", !0),
2590
- e.multiple ? g("", !0) : h(m.$slots, "default", { key: 1 }, void 0, !0),
2591
- b("div", {
2592
- class: w([{ "joy-selectable-item__sublabel": m.$slots["selectable-item-sublabel"] }])
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"] }])
2593
2994
  }, [
2594
- h(m.$slots, "selectable-item-sublabel", {}, void 0, !0)
2995
+ g(y.$slots, "selectable-item-sublabel", {}, void 0, !0)
2595
2996
  ], 2)
2596
2997
  ]),
2597
2998
  _: 3
2598
2999
  }, 8, ["for", "class", "onClick"]))
2599
- ], 10, ua));
3000
+ ], 10, vn));
2600
3001
  }
2601
3002
  });
2602
- const at = /* @__PURE__ */ $(ca, [["__scopeId", "data-v-cb2531c0"]]), fa = ["id"], ya = /* @__PURE__ */ k({
3003
+ const ct = /* @__PURE__ */ k(pn, [["__scopeId", "data-v-cb2531c0"]]), hn = ["id"], _n = /* @__PURE__ */ j({
2603
3004
  __name: "VJoySelectableItemGroup",
2604
3005
  props: {
2605
3006
  options: {
2606
3007
  type: Array,
2607
3008
  required: !0,
2608
3009
  validator(e) {
2609
- const l = e.every((o) => Object.keys(o).includes("value")), t = e.every((o) => Object.keys(o).includes("label"));
3010
+ const l = e.every((a) => Object.keys(a).includes("value")), t = e.every((a) => Object.keys(a).includes("label"));
2610
3011
  return l && t;
2611
3012
  }
2612
3013
  },
@@ -2641,20 +3042,20 @@ const at = /* @__PURE__ */ $(ca, [["__scopeId", "data-v-cb2531c0"]]), fa = ["id"
2641
3042
  emits: ["update:value"],
2642
3043
  setup(e, { emit: l }) {
2643
3044
  const t = e;
2644
- function o(r) {
2645
- return typeof t.value == "string" ? t.value === r.value : (t.value || []).includes(r.value);
3045
+ function a(i) {
3046
+ return typeof t.value == "string" ? t.value === i.value : (t.value || []).includes(i.value);
2646
3047
  }
2647
- function n(r, s) {
3048
+ function o(i, r) {
2648
3049
  if (!t.multiple)
2649
- return l("update:value", s);
2650
- let a = [...t.value || []];
2651
- s && typeof s == "boolean" ? a.push(r) : a.splice(a.indexOf(r), 1), l("update:value", a);
3050
+ return l("update:value", r);
3051
+ let n = [...t.value || []];
3052
+ r && typeof r == "boolean" ? n.push(i) : n.splice(n.indexOf(i), 1), l("update:value", n);
2652
3053
  }
2653
- return (r, s) => (y(), p("fieldset", {
3054
+ return (i, r) => (u(), m("fieldset", {
2654
3055
  id: e.id,
2655
3056
  class: "joy-selectable-item-group__wrapper"
2656
3057
  }, [
2657
- e.label ? (y(), O(x(G), {
3058
+ e.label ? (u(), x($(K), {
2658
3059
  key: 0,
2659
3060
  "tag-name": "legend",
2660
3061
  required: e.required && e.requiredMark,
@@ -2662,12 +3063,12 @@ const at = /* @__PURE__ */ $(ca, [["__scopeId", "data-v-cb2531c0"]]), fa = ["id"
2662
3063
  size: e.labelSize
2663
3064
  }, {
2664
3065
  default: B(() => [
2665
- L(C(e.label), 1)
3066
+ O(C(e.label), 1)
2666
3067
  ]),
2667
3068
  _: 1
2668
- }, 8, ["required", "optional-label", "size"])) : g("", !0),
2669
- b("div", {
2670
- class: w([
3069
+ }, 8, ["required", "optional-label", "size"])) : _("", !0),
3070
+ h("div", {
3071
+ class: S([
2671
3072
  "joy-selectable-item-group",
2672
3073
  {
2673
3074
  "joy-selectable-item-group--multiple": e.multiple,
@@ -2676,34 +3077,54 @@ const at = /* @__PURE__ */ $(ca, [["__scopeId", "data-v-cb2531c0"]]), fa = ["id"
2676
3077
  }
2677
3078
  ])
2678
3079
  }, [
2679
- (y(!0), p(H, null, se(e.options, (a) => (y(), O(x(at), {
2680
- id: a.id,
2681
- key: a.id,
2682
- name: a.name,
2683
- disabled: a.disabled,
2684
- value: a.value,
3080
+ (u(!0), m(W, null, Y(e.options, (n) => (u(), x($(ct), {
3081
+ id: n.id,
3082
+ key: n.id,
3083
+ name: n.name,
3084
+ disabled: n.disabled,
3085
+ value: n.value,
2685
3086
  multiple: e.multiple,
2686
- checked: o(a),
2687
- "onUpdate:checked": (d) => n(a.value, d)
2688
- }, Ge({
3087
+ checked: a(n),
3088
+ "onUpdate:checked": (d) => o(n.value, d)
3089
+ }, et({
2689
3090
  default: B(() => [
2690
- L(C(a.label) + " ", 1)
3091
+ O(C(n.label) + " ", 1)
2691
3092
  ]),
2692
3093
  _: 2
2693
3094
  }, [
2694
- a.subLabel ? {
3095
+ n.subLabel ? {
2695
3096
  name: "selectable-item-sublabel",
2696
3097
  fn: B(() => [
2697
- L(C(a.subLabel), 1)
3098
+ O(C(n.subLabel), 1)
2698
3099
  ]),
2699
3100
  key: "0"
2700
3101
  } : void 0
2701
3102
  ]), 1032, ["id", "name", "disabled", "value", "multiple", "checked", "onUpdate:checked"]))), 128))
2702
3103
  ], 2)
2703
- ], 8, fa));
3104
+ ], 8, hn));
3105
+ }
3106
+ });
3107
+ const gn = /* @__PURE__ */ k(_n, [["__scopeId", "data-v-0730aed0"]]), bn = /* @__PURE__ */ j({
3108
+ __name: "VJoySeparator",
3109
+ props: {
3110
+ /** Main text to apply in the central area */
3111
+ text: {
3112
+ type: String
3113
+ },
3114
+ size: {
3115
+ type: String,
3116
+ default: "default"
3117
+ }
3118
+ },
3119
+ setup(e) {
3120
+ return (l, t) => (u(), m("div", {
3121
+ class: S(["joy-separator", { "joy-separator__small": e.size === "small" }])
3122
+ }, [
3123
+ h("span", null, C(e.text), 1)
3124
+ ], 2));
2704
3125
  }
2705
3126
  });
2706
- const va = /* @__PURE__ */ $(ya, [["__scopeId", "data-v-0730aed0"]]), ma = /* @__PURE__ */ k({
3127
+ const wn = /* @__PURE__ */ k(bn, [["__scopeId", "data-v-d83b1859"]]), Sn = /* @__PURE__ */ j({
2707
3128
  __name: "VJoyWrapper",
2708
3129
  props: {
2709
3130
  /** Horizontal spread. Refers to CSS flex justify-content. */
@@ -2747,8 +3168,8 @@ const va = /* @__PURE__ */ $(ya, [["__scopeId", "data-v-0730aed0"]]), ma = /* @_
2747
3168
  }
2748
3169
  },
2749
3170
  setup(e) {
2750
- return mt("VJoyWrapperContext", e), (t, o) => (y(), p("div", {
2751
- class: w([
3171
+ return Xe("VJoyWrapperContext", e), (t, a) => (u(), m("div", {
3172
+ class: S([
2752
3173
  "joy-wrapper",
2753
3174
  `joy-wrapper--justify-${e.justify}`,
2754
3175
  `joy-wrapper--align-${e.align}`,
@@ -2760,11 +3181,11 @@ const va = /* @__PURE__ */ $(ya, [["__scopeId", "data-v-0730aed0"]]), ma = /* @_
2760
3181
  { "joy-wrapper--has-margin": !e.noMargin }
2761
3182
  ])
2762
3183
  }, [
2763
- h(t.$slots, "default", {}, void 0, !0)
3184
+ g(t.$slots, "default", {}, void 0, !0)
2764
3185
  ], 2));
2765
3186
  }
2766
3187
  });
2767
- const pa = /* @__PURE__ */ $(ma, [["__scopeId", "data-v-8a6c4326"]]), ga = ["role"], ha = /* @__PURE__ */ k({
3188
+ const $n = /* @__PURE__ */ k(Sn, [["__scopeId", "data-v-8a6c4326"]]), jn = ["role"], kn = /* @__PURE__ */ j({
2768
3189
  __name: "VJoyTag",
2769
3190
  props: {
2770
3191
  /** Text injected within the tag */
@@ -2803,7 +3224,7 @@ const pa = /* @__PURE__ */ $(ma, [["__scopeId", "data-v-8a6c4326"]]), ga = ["rol
2803
3224
  },
2804
3225
  emits: ["selected", "remove", "click"],
2805
3226
  setup(e, { emit: l }) {
2806
- const t = e, o = ["primary", "secondary"], n = I(() => ({
3227
+ const t = e, a = ["primary", "secondary"], o = V(() => ({
2807
3228
  "joy-tag": !0,
2808
3229
  "joy-tag__selected": t.selected,
2809
3230
  "joy-tag__selectable": t.selectable || t.link,
@@ -2811,35 +3232,35 @@ const pa = /* @__PURE__ */ $(ma, [["__scopeId", "data-v-8a6c4326"]]), ga = ["rol
2811
3232
  ["joy-tag__" + t.size]: !0,
2812
3233
  ["joy-tag__" + t.variant]: !0
2813
3234
  }));
2814
- function r() {
3235
+ function i() {
2815
3236
  l("remove", { value: t.value });
2816
3237
  }
2817
- function s() {
2818
- l("click"), t.selectable && o.includes(t.variant) && l("selected", { selected: !t.selected, value: t.value });
3238
+ function r() {
3239
+ l("click"), t.selectable && a.includes(t.variant) && l("selected", { selected: !t.selected, value: t.value });
2819
3240
  }
2820
- return (a, d) => (y(), p("span", {
2821
- class: w([n.value]),
3241
+ return (n, d) => (u(), m("span", {
3242
+ class: S([o.value]),
2822
3243
  role: e.link || e.selectable ? "button" : void 0,
2823
- onClick: s
3244
+ onClick: r
2824
3245
  }, [
2825
- e.draggable ? (y(), O(q, {
3246
+ e.draggable ? (u(), x(J, {
2826
3247
  key: 0,
2827
3248
  class: "joy-tag__drag",
2828
3249
  name: "drag",
2829
3250
  size: "xxsmall"
2830
- })) : g("", !0),
2831
- L(" " + C(e.label) + " ", 1),
2832
- e.removable ? (y(), O(q, {
3251
+ })) : _("", !0),
3252
+ O(" " + C(e.label) + " ", 1),
3253
+ e.removable ? (u(), x(J, {
2833
3254
  key: 1,
2834
3255
  class: "joy-tag__removable",
2835
3256
  name: "cross",
2836
3257
  size: "xxsmall",
2837
- onClick: pt(r, ["stop"])
2838
- }, null, 8, ["onClick"])) : g("", !0)
2839
- ], 10, ga));
3258
+ onClick: bt(i, ["stop"])
3259
+ }, null, 8, ["onClick"])) : _("", !0)
3260
+ ], 10, jn));
2840
3261
  }
2841
3262
  });
2842
- const nt = /* @__PURE__ */ $(ha, [["__scopeId", "data-v-01b9f7cc"]]), ba = /* @__PURE__ */ k({
3263
+ const ft = /* @__PURE__ */ k(kn, [["__scopeId", "data-v-01b9f7cc"]]), Vn = /* @__PURE__ */ j({
2843
3264
  __name: "VJoyTagsList",
2844
3265
  props: {
2845
3266
  align: {
@@ -2865,54 +3286,63 @@ const nt = /* @__PURE__ */ $(ha, [["__scopeId", "data-v-01b9f7cc"]]), ba = /* @_
2865
3286
  emits: ["update:modelValue", "removeTag"],
2866
3287
  setup(e, { emit: l }) {
2867
3288
  const t = e;
2868
- function o(s) {
2869
- var a;
2870
- return t.removable ? !1 : (a = t.modelValue) == null ? void 0 : a.includes(s.value);
3289
+ function a(r) {
3290
+ var n;
3291
+ return t.removable ? !1 : (n = t.modelValue) == null ? void 0 : n.includes(r.value);
2871
3292
  }
2872
- function n(s, a) {
3293
+ function o(r, n) {
2873
3294
  let d = [];
2874
- s.selected && !o(a) ? d = [...t.modelValue || [], a.value] : d = (t.modelValue || []).filter((m) => m !== a.value), l("update:modelValue", d);
3295
+ r.selected && !a(n) ? d = [...t.modelValue || [], n.value] : d = (t.modelValue || []).filter((y) => y !== n.value), l("update:modelValue", d);
2875
3296
  }
2876
- function r(s) {
2877
- l("removeTag", s.value);
3297
+ function i(r) {
3298
+ l("removeTag", r.value);
2878
3299
  }
2879
- return (s, a) => (y(), p("div", {
2880
- class: w(["joy-tags-list", `joy-tags-list--${e.align}`])
3300
+ return (r, n) => (u(), m("div", {
3301
+ class: S(["joy-tags-list", `joy-tags-list--${e.align}`])
2881
3302
  }, [
2882
- (y(!0), p(H, null, se(e.tags, (d) => (y(), O(x(nt), W({
3303
+ (u(!0), m(W, null, Y(e.tags, (d) => (u(), x($(ft), G({
2883
3304
  key: d.value,
2884
3305
  selectable: !!e.modelValue && !e.removable
2885
3306
  }, d, {
2886
3307
  removable: e.removable,
2887
- selected: o(d),
2888
- onRemove: r,
2889
- onSelected: (m) => n(m, d)
3308
+ selected: a(d),
3309
+ onRemove: i,
3310
+ onSelected: (y) => o(y, d)
2890
3311
  }), null, 16, ["selectable", "removable", "selected", "onSelected"]))), 128))
2891
3312
  ], 2));
2892
3313
  }
2893
3314
  });
2894
- const _a = /* @__PURE__ */ $(ba, [["__scopeId", "data-v-510c6367"]]), wa = { class: "joy-template__wrapper" }, Sa = {
3315
+ const xn = /* @__PURE__ */ k(Vn, [["__scopeId", "data-v-510c6367"]]);
3316
+ const Cn = {}, Ln = {
3317
+ 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
3320
+ ];
3321
+ function Bn(e, l) {
3322
+ return u(), m("div", Ln, On);
3323
+ }
3324
+ const yt = /* @__PURE__ */ k(Cn, [["render", Bn], ["__scopeId", "data-v-8b258f92"]]), En = { class: "joy-template__wrapper" }, Tn = {
2895
3325
  key: 0,
2896
3326
  class: "joy-template__heading"
2897
- }, ja = {
3327
+ }, Jn = {
2898
3328
  key: 0,
2899
3329
  class: "joy-template-slot-back"
2900
- }, ka = { class: "joy-template__heading___headings" }, $a = {
3330
+ }, Pn = { class: "joy-template__heading___headings" }, zn = {
2901
3331
  key: 0,
2902
3332
  class: "joy-template-slot-title"
2903
- }, Va = {
3333
+ }, An = {
2904
3334
  key: 1,
2905
3335
  class: "joy-template-slot-subtitle"
2906
- }, xa = {
3336
+ }, Fn = {
2907
3337
  key: 1,
2908
3338
  class: "joy-template-slot-actions"
2909
- }, Ia = {
3339
+ }, qn = {
2910
3340
  key: 0,
2911
3341
  class: "joy-template-slot-main"
2912
- }, Oa = {
3342
+ }, Mn = {
2913
3343
  key: 1,
2914
3344
  class: "joy-template-slot-sidebar"
2915
- }, Ca = /* @__PURE__ */ k({
3345
+ }, Nn = /* @__PURE__ */ j({
2916
3346
  __name: "VJoyTemplate",
2917
3347
  props: {
2918
3348
  full: { type: Boolean, default: !1 },
@@ -2924,66 +3354,71 @@ const _a = /* @__PURE__ */ $(ba, [["__scopeId", "data-v-510c6367"]]), wa = { cla
2924
3354
  loadingColor: {
2925
3355
  type: String,
2926
3356
  default: "light"
3357
+ },
3358
+ shapes: {
3359
+ type: Boolean,
3360
+ default: !1
2927
3361
  }
2928
3362
  },
2929
3363
  setup(e) {
2930
- const l = e, t = Z(), o = I(() => !!t["template-back"] || !!t["template-title"] || !!t["template-subtitle"] || !!t["template-actions"]);
2931
- return (n, r) => (y(), p("main", {
2932
- class: w(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
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", {
3366
+ class: S(["joy-template", { "joy-template--full": e.full, "joy-template--loading": e.loading }])
2933
3367
  }, [
2934
- b("div", wa, [
2935
- o.value ? (y(), p("div", Sa, [
2936
- x(t)["template-back"] ? (y(), p("div", ja, [
2937
- h(n.$slots, "template-back", {}, void 0, !0)
2938
- ])) : g("", !0),
2939
- b("div", ka, [
2940
- x(t)["template-title"] ? (y(), p("div", $a, [
2941
- h(n.$slots, "template-title", {}, void 0, !0)
2942
- ])) : g("", !0),
2943
- x(t)["template-subtitle"] ? (y(), p("div", Va, [
2944
- h(n.$slots, "template-subtitle", {}, void 0, !0)
2945
- ])) : g("", !0)
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, [
3372
+ g(o.$slots, "template-back", {}, void 0, !0)
3373
+ ])) : _("", !0),
3374
+ h("div", Pn, [
3375
+ $(t)["template-title"] ? (u(), m("div", zn, [
3376
+ g(o.$slots, "template-title", {}, void 0, !0)
3377
+ ])) : _("", !0),
3378
+ $(t)["template-subtitle"] ? (u(), m("div", An, [
3379
+ g(o.$slots, "template-subtitle", {}, void 0, !0)
3380
+ ])) : _("", !0)
2946
3381
  ]),
2947
- x(t)["template-actions"] ? (y(), p("div", xa, [
2948
- h(n.$slots, "template-actions", {}, void 0, !0)
2949
- ])) : g("", !0)
2950
- ])) : g("", !0),
2951
- b("div", {
2952
- class: w([
3382
+ $(t)["template-actions"] ? (u(), m("div", Fn, [
3383
+ g(o.$slots, "template-actions", {}, void 0, !0)
3384
+ ])) : _("", !0)
3385
+ ])) : _("", !0),
3386
+ h("div", {
3387
+ class: S([
2953
3388
  "joy-template__content",
2954
3389
  {
2955
3390
  "joy-template__content--reverse": l.sidebar === "left"
2956
3391
  }
2957
3392
  ])
2958
3393
  }, [
2959
- n.$slots["template-main"] ? (y(), p("div", Ia, [
2960
- h(n.$slots, "template-main", {}, void 0, !0)
2961
- ])) : g("", !0),
2962
- n.$slots["template-sidebar"] ? (y(), p("div", Oa, [
2963
- h(n.$slots, "template-sidebar", {}, void 0, !0)
2964
- ])) : g("", !0)
3394
+ o.$slots["template-main"] ? (u(), m("div", qn, [
3395
+ g(o.$slots, "template-main", {}, void 0, !0)
3396
+ ])) : _("", !0),
3397
+ o.$slots["template-sidebar"] ? (u(), m("div", Mn, [
3398
+ g(o.$slots, "template-sidebar", {}, void 0, !0)
3399
+ ])) : _("", !0)
2965
3400
  ], 2)
2966
3401
  ]),
2967
- e.loading ? (y(), O(_e, {
2968
- key: 0,
3402
+ e.loading ? (u(), x(Ve, {
3403
+ key: 1,
2969
3404
  overlay: "",
2970
3405
  color: e.loadingColor
2971
3406
  }, {
2972
3407
  content: B(() => [
2973
- h(n.$slots, "template-loader-content", {}, void 0, !0)
3408
+ g(o.$slots, "template-loader-content", {}, void 0, !0)
2974
3409
  ]),
2975
3410
  _: 3
2976
- }, 8, ["color"])) : g("", !0)
3411
+ }, 8, ["color"])) : _("", !0)
2977
3412
  ], 2));
2978
3413
  }
2979
3414
  });
2980
- const Ba = /* @__PURE__ */ $(Ca, [["__scopeId", "data-v-a2355e4b"]]), La = ["aria-disabled"], Ea = { class: "joy-textarea_wrapper" }, Ja = ["id", "disabled", "name", "required", "minlength", "value"], za = {
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 = {
2981
3416
  key: 0,
2982
3417
  class: "joy-textarea_helpers"
2983
- }, Ta = {
3418
+ }, Gn = {
2984
3419
  inheritAttrs: !1
2985
- }, Pa = /* @__PURE__ */ k({
2986
- ...Ta,
3420
+ }, Zn = /* @__PURE__ */ j({
3421
+ ...Gn,
2987
3422
  __name: "VJoyTextarea",
2988
3423
  props: {
2989
3424
  disabled: {
@@ -3037,107 +3472,107 @@ const Ba = /* @__PURE__ */ $(Ca, [["__scopeId", "data-v-a2355e4b"]]), La = ["ari
3037
3472
  },
3038
3473
  emits: ["update:modelValue"],
3039
3474
  setup(e, { expose: l, emit: t }) {
3040
- const o = e, n = _(), { triggerResize: r } = pl({
3041
- element: o.autogrow ? n : void 0
3042
- }), s = _(!1), a = _(!1), d = I(() => o.maxlength ? o.modelValue.length > o.maxlength : !1), m = I(() => o.minlength ? o.modelValue.length < o.minlength : !1), u = {
3475
+ const a = e, o = w(), { triggerResize: i } = Xl({
3476
+ 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 = {
3043
3478
  onInput: (v) => {
3044
- o.modelModifiers.lazy || t("update:modelValue", v.target.value), r();
3479
+ a.modelModifiers.lazy || t("update:modelValue", v.target.value), i();
3045
3480
  },
3046
3481
  onChange: (v) => {
3047
- o.modelModifiers.lazy && t("update:modelValue", v.target.value);
3482
+ a.modelModifiers.lazy && t("update:modelValue", v.target.value);
3048
3483
  },
3049
3484
  onBlur: () => {
3050
- a.value = !1, s.value = d.value || m.value;
3485
+ n.value = !1, r.value = d.value || y.value;
3051
3486
  },
3052
3487
  onFocus: () => {
3053
- a.value = !0;
3488
+ n.value = !0;
3054
3489
  }
3055
3490
  };
3056
3491
  return l({
3057
- isInvalid: s,
3492
+ isInvalid: r,
3058
3493
  valueOverMaxlength: d,
3059
- valueUnderMinlength: m
3060
- }), (v, i) => (y(), p("div", {
3494
+ valueUnderMinlength: y
3495
+ }), (v, f) => (u(), m("div", {
3061
3496
  "aria-disabled": e.disabled,
3062
- class: w([
3497
+ class: S([
3063
3498
  "joy-textarea",
3064
3499
  {
3065
- "joy-textarea_invalid": s.value || e.invalid,
3500
+ "joy-textarea_invalid": r.value || e.invalid,
3066
3501
  "joy-textarea_disabled": e.disabled,
3067
3502
  "joy-textarea_autogrow": e.autogrow,
3068
- "joy-textarea_focusing": a.value
3503
+ "joy-textarea_focusing": n.value
3069
3504
  }
3070
3505
  ])
3071
3506
  }, [
3072
- R(x(G), {
3507
+ U($(K), {
3073
3508
  for: e.id,
3074
3509
  required: e.required && e.requiredMark,
3075
3510
  "optional-label": e.optionalLabel,
3076
3511
  size: e.labelSize
3077
3512
  }, {
3078
3513
  default: B(() => [
3079
- h(v.$slots, "default", {}, () => [
3080
- L(C(e.label), 1)
3514
+ g(v.$slots, "default", {}, () => [
3515
+ O(C(e.label), 1)
3081
3516
  ], !0)
3082
3517
  ]),
3083
3518
  _: 3
3084
3519
  }, 8, ["for", "required", "optional-label", "size"]),
3085
- b("div", Ea, [
3086
- b("textarea", W(v.$attrs, {
3520
+ h("div", Dn, [
3521
+ h("textarea", G(v.$attrs, {
3087
3522
  id: e.id,
3088
3523
  ref_key: "textarea",
3089
- ref: n,
3524
+ ref: o,
3090
3525
  class: "joy-native-textarea",
3091
3526
  disabled: e.disabled,
3092
3527
  name: e.name,
3093
3528
  required: e.required,
3094
3529
  minlength: e.minlength,
3095
3530
  value: e.modelValue,
3096
- onInput: i[0] || (i[0] = //@ts-ignore
3097
- (...c) => u.onInput && u.onInput(...c)),
3098
- onChange: i[1] || (i[1] = //@ts-ignore
3099
- (...c) => u.onChange && u.onChange(...c)),
3100
- onFocus: i[2] || (i[2] = //@ts-ignore
3101
- (...c) => u.onFocus && u.onFocus(...c)),
3102
- onBlur: i[3] || (i[3] = //@ts-ignore
3103
- (...c) => u.onBlur && u.onBlur(...c))
3104
- }), null, 16, Ja)
3531
+ onInput: f[0] || (f[0] = //@ts-ignore
3532
+ (...s) => c.onInput && c.onInput(...s)),
3533
+ onChange: f[1] || (f[1] = //@ts-ignore
3534
+ (...s) => c.onChange && c.onChange(...s)),
3535
+ onFocus: f[2] || (f[2] = //@ts-ignore
3536
+ (...s) => c.onFocus && c.onFocus(...s)),
3537
+ onBlur: f[3] || (f[3] = //@ts-ignore
3538
+ (...s) => c.onBlur && c.onBlur(...s))
3539
+ }), null, 16, Un)
3105
3540
  ]),
3106
- e.minlength || e.maxlength ? (y(), p("div", za, [
3107
- e.minlength ? (y(), p("p", {
3541
+ e.minlength || e.maxlength ? (u(), m("div", Wn, [
3542
+ e.minlength ? (u(), m("p", {
3108
3543
  key: 0,
3109
- class: w(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
3544
+ class: S(["joy-textarea-min", { "joy-textarea-min-invalid": e.invalid }])
3110
3545
  }, [
3111
- m.value ? g("", !0) : (y(), O(q, {
3546
+ y.value ? _("", !0) : (u(), x(J, {
3112
3547
  key: 0,
3113
3548
  name: "check",
3114
3549
  color: "neutral",
3115
3550
  size: "xxsmall"
3116
3551
  })),
3117
- L(" " + C(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3118
- ], 2)) : g("", !0),
3119
- e.maxlength ? (y(), p("p", {
3552
+ O(" " + C(e.minlengthLabel || `Minimum ${e.minlength} characters`), 1)
3553
+ ], 2)) : _("", !0),
3554
+ e.maxlength ? (u(), m("p", {
3120
3555
  key: 1,
3121
- class: w(["joy-textarea-count", { "joy-textarea-count-invalid": d.value }])
3122
- }, C(e.modelValue.length + "/" + e.maxlength), 3)) : g("", !0)
3123
- ])) : g("", !0)
3124
- ], 10, La));
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));
3125
3560
  }
3126
3561
  });
3127
- const qa = /* @__PURE__ */ $(Pa, [["__scopeId", "data-v-1d2165ca"]]), it = (e) => (Re("data-v-cf79d999"), e = e(), De(), e), Aa = { class: "joy-toggle__wrapper" }, Fa = ["name", "disabled", "checked", "required", "aria-checked", "value"], Ma = { class: "joy-toggle__content" }, Na = /* @__PURE__ */ it(() => /* @__PURE__ */ b("span", { class: "joy-toggle__symbol" }, null, -1)), Ra = { class: "joy-toggle__content-label" }, Da = /* @__PURE__ */ it(() => /* @__PURE__ */ b("span", { class: "joy-toggle__smile" }, [
3128
- /* @__PURE__ */ b("svg", {
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", {
3129
3564
  width: "18",
3130
3565
  height: "10",
3131
3566
  viewBox: "0 0 18 10",
3132
3567
  fill: "currentColor",
3133
3568
  xmlns: "http://www.w3.org/2000/svg"
3134
3569
  }, [
3135
- /* @__PURE__ */ b("path", {
3570
+ /* @__PURE__ */ h("path", {
3136
3571
  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",
3137
3572
  fill: "currentColor"
3138
3573
  })
3139
3574
  ])
3140
- ], -1)), Ha = /* @__PURE__ */ k({
3575
+ ], -1)), ai = /* @__PURE__ */ j({
3141
3576
  __name: "VJoyToggle",
3142
3577
  props: {
3143
3578
  modelValue: {
@@ -3171,10 +3606,10 @@ const qa = /* @__PURE__ */ $(Pa, [["__scopeId", "data-v-1d2165ca"]]), it = (e) =
3171
3606
  },
3172
3607
  emits: ["update:modelValue"],
3173
3608
  setup(e, { emit: l }) {
3174
- const t = _(!1), o = {
3175
- onChange: (n) => {
3176
- const r = n.target.checked;
3177
- l("update:modelValue", r);
3609
+ const t = w(!1), a = {
3610
+ onChange: (o) => {
3611
+ const i = o.target.checked;
3612
+ l("update:modelValue", i);
3178
3613
  },
3179
3614
  onFocus: () => {
3180
3615
  t.value = !0;
@@ -3183,9 +3618,9 @@ const qa = /* @__PURE__ */ $(Pa, [["__scopeId", "data-v-1d2165ca"]]), it = (e) =
3183
3618
  t.value = !1;
3184
3619
  }
3185
3620
  };
3186
- return (n, r) => (y(), p("div", Aa, [
3187
- b("label", {
3188
- class: w([
3621
+ return (o, i) => (u(), m("div", Qn, [
3622
+ h("label", {
3623
+ class: S([
3189
3624
  "joy-toggle",
3190
3625
  {
3191
3626
  "joy-toggle__checked": e.modelValue,
@@ -3194,7 +3629,7 @@ const qa = /* @__PURE__ */ $(Pa, [["__scopeId", "data-v-1d2165ca"]]), it = (e) =
3194
3629
  }
3195
3630
  ])
3196
3631
  }, [
3197
- b("input", {
3632
+ h("input", {
3198
3633
  ref: "input",
3199
3634
  type: "checkbox",
3200
3635
  class: "joy-toggle__input",
@@ -3205,97 +3640,113 @@ const qa = /* @__PURE__ */ $(Pa, [["__scopeId", "data-v-1d2165ca"]]), it = (e) =
3205
3640
  required: e.required,
3206
3641
  "aria-checked": e.modelValue,
3207
3642
  value: e.value,
3208
- onChange: r[0] || (r[0] = //@ts-ignore
3209
- (...s) => o.onChange && o.onChange(...s)),
3210
- onFocus: r[1] || (r[1] = //@ts-ignore
3211
- (...s) => o.onFocus && o.onFocus(...s)),
3212
- onBlur: r[2] || (r[2] = //@ts-ignore
3213
- (...s) => o.onBlur && o.onBlur(...s))
3214
- }, null, 40, Fa),
3215
- b("p", Ma, [
3216
- Na,
3217
- b("span", Ra, [
3218
- h(n.$slots, "default", {}, () => [
3219
- L(C(e.label), 1)
3643
+ onChange: i[0] || (i[0] = //@ts-ignore
3644
+ (...r) => a.onChange && a.onChange(...r)),
3645
+ onFocus: i[1] || (i[1] = //@ts-ignore
3646
+ (...r) => a.onFocus && a.onFocus(...r)),
3647
+ onBlur: i[2] || (i[2] = //@ts-ignore
3648
+ (...r) => a.onBlur && a.onBlur(...r))
3649
+ }, null, 40, Yn),
3650
+ h("p", Xn, [
3651
+ ei,
3652
+ h("span", ti, [
3653
+ g(o.$slots, "default", {}, () => [
3654
+ O(C(e.label), 1)
3220
3655
  ], !0)
3221
3656
  ]),
3222
- Da
3657
+ li
3223
3658
  ])
3224
3659
  ], 2)
3225
3660
  ]));
3226
3661
  }
3227
3662
  });
3228
- const Wa = /* @__PURE__ */ $(Ha, [["__scopeId", "data-v-cf79d999"]]), Ua = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3663
+ const oi = /* @__PURE__ */ k(ai, [["__scopeId", "data-v-cf79d999"]]), ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3229
3664
  __proto__: null,
3230
- VJoyAvailability: bt,
3231
- VJoyAvatar: It,
3232
- VJoyAvatarsList: Ct,
3233
- VJoyBadge: Et,
3234
- VJoyButton: Ke,
3235
- VJoyCheckbox: he,
3236
- VJoyCounter: ol,
3237
- VJoyDropdown: so,
3238
- VJoyDropdownList: lt,
3239
- VJoyFormError: ot,
3240
- VJoyHighlight: po,
3241
- VJoyIcon: q,
3242
- VJoyInput: $o,
3243
- VJoyLabel: G,
3244
- VJoyLink: Oo,
3245
- VJoyMultiCheckbox: Eo,
3246
- VJoyPanel: No,
3247
- VJoyPanelSection: Uo,
3248
- VJoyRadio: Xo,
3249
- VJoyRadioGroup: la,
3250
- VJoyScreenLoader: _e,
3251
- VJoySelect: sa,
3252
- VJoySelectableItem: at,
3253
- VJoySelectableItemGroup: va,
3254
- VJoySpinner: ge,
3255
- VJoyTag: nt,
3256
- VJoyTagsList: _a,
3257
- VJoyTemplate: Ba,
3258
- VJoyTextarea: qa,
3259
- VJoyToggle: Wa,
3260
- VJoyWrapper: pa
3261
- }, Symbol.toStringTag, { value: "Module" })), Ka = {
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,
3675
+ VJoyDropdown: Ha,
3676
+ VJoyDropdownList: ut,
3677
+ VJoyFilterBar: Ga,
3678
+ 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 = {
3262
3705
  install: (e) => {
3263
- Object.entries(Ua).forEach(([l, t]) => {
3706
+ Object.entries(ni).forEach(([l, t]) => {
3264
3707
  e.component(l, t);
3265
3708
  });
3266
3709
  }
3267
3710
  };
3268
3711
  export {
3269
- Ka as JoyVuePlugin,
3270
- bt as VJoyAvailability,
3271
- It as VJoyAvatar,
3272
- Ct as VJoyAvatarsList,
3273
- Et as VJoyBadge,
3274
- Ke as VJoyButton,
3275
- he as VJoyCheckbox,
3276
- ol as VJoyCounter,
3277
- so as VJoyDropdown,
3278
- lt as VJoyDropdownList,
3279
- ot as VJoyFormError,
3280
- po as VJoyHighlight,
3281
- q as VJoyIcon,
3282
- $o as VJoyInput,
3283
- G as VJoyLabel,
3284
- Oo as VJoyLink,
3285
- Eo as VJoyMultiCheckbox,
3286
- No as VJoyPanel,
3287
- Uo as VJoyPanelSection,
3288
- Xo as VJoyRadio,
3289
- la as VJoyRadioGroup,
3290
- _e as VJoyScreenLoader,
3291
- sa as VJoySelect,
3292
- at as VJoySelectableItem,
3293
- va as VJoySelectableItemGroup,
3294
- ge as VJoySpinner,
3295
- nt as VJoyTag,
3296
- _a as VJoyTagsList,
3297
- Ba as VJoyTemplate,
3298
- qa as VJoyTextarea,
3299
- Wa as VJoyToggle,
3300
- pa as VJoyWrapper
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,
3723
+ Ha as VJoyDropdown,
3724
+ ut as VJoyDropdownList,
3725
+ Ga as VJoyFilterBar,
3726
+ 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
3301
3752
  };