@vanjana/vue-ui 0.1.103 → 0.1.108

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.
@@ -1,22 +1,22 @@
1
- import { createElementBlock as g, openBlock as f, createElementVNode as x, renderSlot as j, defineComponent as T, computed as E, normalizeClass as z, createBlock as M, createCommentVNode as L, createTextVNode as Ue, unref as S, toDisplayString as D, useSlots as Ut, ref as C, onMounted as De, nextTick as me, onBeforeUnmount as Re, watch as X, resolveComponent as K, createVNode as O, normalizeStyle as G, Fragment as Z, renderList as ge, mergeModels as ee, useModel as ve, withModifiers as N, Teleport as Pe, Transition as Oe, withCtx as W, createSlots as rt, resolveDynamicComponent as Wt, mergeProps as gn, shallowRef as bn, getCurrentScope as yn, onScopeDispose as wn, shallowReadonly as Ve, render as $t, resolveDirective as Nt, withDirectives as ct, withKeys as lt, provide as _n, inject as Kt, vModelText as xn, toRef as nt, normalizeProps as kn, guardReactiveProps as Vn, TransitionGroup as En, isRef as Cn, createApp as Ln, h as $n } from "vue";
2
- import { useRouter as Sn, useRoute as Rn } from "vue-router";
3
- const B = (e, n) => {
1
+ import { createElementBlock as g, openBlock as f, createElementVNode as x, renderSlot as M, defineComponent as T, computed as C, normalizeClass as z, createBlock as P, createCommentVNode as L, createTextVNode as Ue, unref as S, toDisplayString as B, useSlots as Wt, ref as E, onMounted as Be, nextTick as me, onBeforeUnmount as Re, watch as X, resolveComponent as K, createVNode as O, normalizeStyle as G, Fragment as Z, renderList as ge, mergeModels as ee, useModel as ve, withModifiers as N, provide as Nt, Teleport as je, Transition as Oe, withCtx as W, createSlots as rt, resolveDynamicComponent as Kt, mergeProps as yn, shallowRef as wn, getCurrentScope as _n, onScopeDispose as xn, shallowReadonly as Ve, render as St, resolveDirective as Xt, withDirectives as ct, withKeys as lt, inject as ut, vModelText as kn, toRef as nt, normalizeProps as Vn, guardReactiveProps as Cn, TransitionGroup as En, isRef as Ln, createApp as $n, h as Sn } from "vue";
2
+ import { useRouter as Rn, useRoute as Tn } from "vue-router";
3
+ const D = (e, n) => {
4
4
  const t = e.__vccOpts || e;
5
5
  for (const [o, l] of n)
6
6
  t[o] = l;
7
7
  return t;
8
- }, Tn = {}, An = { class: "button-bar" }, On = { class: "left" }, Bn = { class: "right" };
9
- function Dn(e, n) {
10
- return f(), g("div", An, [
11
- x("div", On, [
12
- j(e.$slots, "left", {}, void 0, !0)
8
+ }, An = {}, On = { class: "button-bar" }, Dn = { class: "left" }, Bn = { class: "right" };
9
+ function jn(e, n) {
10
+ return f(), g("div", On, [
11
+ x("div", Dn, [
12
+ M(e.$slots, "left", {}, void 0, !0)
13
13
  ]),
14
14
  x("div", Bn, [
15
- j(e.$slots, "default", {}, void 0, !0)
15
+ M(e.$slots, "default", {}, void 0, !0)
16
16
  ])
17
17
  ]);
18
18
  }
19
- const Pn = /* @__PURE__ */ B(Tn, [["render", Dn], ["__scopeId", "data-v-45a6ed1a"]]);
19
+ const Mn = /* @__PURE__ */ D(An, [["render", jn], ["__scopeId", "data-v-45a6ed1a"]]);
20
20
  var F = /* @__PURE__ */ ((e) => (e.HOME = "fa-regular fa-house", e.DASHBOARD = "fa-solid fa-gauge", e.MENU = "fa-solid fa-bars", e.DOT_MENU = "fa-solid fa-ellipsis-vertical", e.BACK = "fa-regular fa-hand-point-left", e.LOGOUT = "fa-solid fa-right-from-bracket", e.CHEVRON_LEFT = "fa-solid fa-chevron-left", e.CHEVRON_RIGHT = "fa-solid fa-chevron-right", e.CHEVRON_UP = "fa-solid fa-chevron-up", e.CHEVRON_DOWN = "fa-solid fa-chevron-down", e.PREVIOUS = "fa-solid fa-angle-left", e.FIRST = "fa-solid fa-angles-left", e.NEXT = "fa-solid fa-angle-right", e.LAST = "fa-solid fa-angles-right", e.USER = "fa-regular fa-user-circle", e.CHARACTER = "fa-solid fa-person", e.SETTINGS = "fa-solid fa-gear", e.ADD = "fa-regular fa-plus", e.EDIT = "fa-solid fa-pen", e.REMOVE = "fa-regular fa-trash-can", e.DELETE = "fa-regular fa-trash-can", e.SHARE = "fa-solid fa-share-nodes", e.SORT = "fa-regular fa-arrow-up-arrow-down", e.CLOSE = "fa-regular fa-circle-xmark", e.SAVE = "fa-regular fa-floppy-disk", e.COPY = "fa-regular fa-copy", e.DUPLICATE = "fa-regular fa-clone", e.CUT = "fa-solid fa-scissors", e.PASTE = "fa-regular fa-clipboard", e.REFRESH = "fa-solid fa-rotate-right", e.RELOAD = "fa-solid fa-arrows-rotate", e.PRINT = "fa-solid fa-print", e.FILTER = "fa-solid fa-filter", e.UNDO = "fa-solid fa-rotate-left", e.REDO = "fa-solid fa-rotate-right", e.PIN = "fa-solid fa-thumbtack", e.EXPAND = "fa-solid fa-expand", e.COLLAPSE = "fa-solid fa-compress", e.EXTERNAL_LINK = "fa-solid fa-arrow-up-right-from-square", e.INFO = "fa-solid fa-circle-info", e.WARNING = "fa-solid fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", e.STAR = "fa-regular fa-star", e.STAR_FILLED = "fa-solid fa-star", e.HELP = "fa-regular fa-circle-question", e.QUESTION = "fa-solid fa-question", e.PROJECT = "fa-regular fa-folder-open", e.FOLDER = "fa-regular fa-folder", e.FILE_TEXT = "fa-regular fa-file-lines", e.UPLOAD = "fa-solid fa-cloud-arrow-up", e.DOWNLOAD = "fa-solid fa-cloud-arrow-down", e.ATTACHMENT = "fa-solid fa-paperclip", e.LINK = "fa-solid fa-link", e.TAG = "fa-solid fa-tag", e.TAGS = "fa-solid fa-tags", e.SEARCH = "fa-solid fa-magnifying-glass", e.MESSAGE_SQUARE = "fa-regular fa-message", e.MAIL = "fa-regular fa-envelope", e.SHOPPING_BAG = "fa-regular fa-bag-shopping", e.COMMENT = "fa-regular fa-comment", e.COMMENTS = "fa-regular fa-comments", e.CALENDAR = "fa-regular fa-calendar", e.CALENDAR_DAY = "fa-solid fa-calendar-day", e.CLOCK = "fa-regular fa-clock", e.HISTORY = "fa-solid fa-clock-rotate-left", e.LOCK = "fa-solid fa-lock", e.UNLOCK = "fa-solid fa-lock-open", e.EYE = "fa-regular fa-eye", e.EYE_SLASH = "fa-regular fa-eye-slash", e.SHIELD = "fa-solid fa-shield", e.LIST = "fa-solid fa-list", e.GRID = "fa-solid fa-grid", e.TABLE = "fa-solid fa-table", e.COLUMNS = "fa-solid fa-columns", e.BELL = "fa-regular fa-bell", e.IMAGE = "fa-regular fa-image", e))(F || {}), q = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(q || {});
21
21
  const be = /* @__PURE__ */ T({
22
22
  __name: "icon",
@@ -25,12 +25,12 @@ const be = /* @__PURE__ */ T({
25
25
  size: {}
26
26
  },
27
27
  setup(e) {
28
- const n = e, t = q.M, o = E(() => `${n.icon} ${n.size ?? t}`);
28
+ const n = e, t = q.M, o = C(() => `${n.icon} ${n.size ?? t}`);
29
29
  return (l, a) => (f(), g("i", {
30
30
  class: z(o.value)
31
31
  }, null, 2));
32
32
  }
33
- }), jn = ["disabled"], Mn = /* @__PURE__ */ T({
33
+ }), Pn = ["disabled"], Fn = /* @__PURE__ */ T({
34
34
  __name: "button",
35
35
  props: {
36
36
  label: {},
@@ -41,51 +41,51 @@ const be = /* @__PURE__ */ T({
41
41
  disabled: { type: Boolean }
42
42
  },
43
43
  setup(e) {
44
- const n = e, t = q.S, o = E(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = E(() => !n.label && !!n.icon);
44
+ const n = e, t = q.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
45
45
  return (a, i) => (f(), g("button", {
46
46
  class: z(["button", o.value, { "icon-only": l.value }]),
47
47
  disabled: e.disabled
48
48
  }, [
49
- e.icon ? (f(), M(be, {
49
+ e.icon ? (f(), P(be, {
50
50
  key: 0,
51
51
  icon: e.icon,
52
52
  size: S(t)
53
53
  }, null, 8, ["icon", "size"])) : L("", !0),
54
- Ue(" " + D(e.label), 1)
55
- ], 10, jn));
54
+ Ue(" " + B(e.label), 1)
55
+ ], 10, Pn));
56
56
  }
57
- }), ut = /* @__PURE__ */ B(Mn, [["__scopeId", "data-v-f31c33cf"]]), Fn = {
57
+ }), dt = /* @__PURE__ */ D(Fn, [["__scopeId", "data-v-f31c33cf"]]), zn = {
58
58
  key: 0,
59
59
  class: "header-actions"
60
- }, zn = { key: 0 }, In = /* @__PURE__ */ T({
60
+ }, In = { key: 0 }, Hn = /* @__PURE__ */ T({
61
61
  __name: "card",
62
62
  props: {
63
63
  header: {},
64
64
  scrollable: { type: Boolean }
65
65
  },
66
66
  setup(e) {
67
- const n = Ut();
67
+ const n = Wt();
68
68
  return (t, o) => (f(), g("div", {
69
69
  class: z(["card", { scrollable: e.scrollable }])
70
70
  }, [
71
71
  x("header", null, [
72
- x("h3", null, D(e.header), 1),
73
- S(n).headerActions ? (f(), g("span", Fn, [
74
- j(t.$slots, "headerActions", {}, void 0, !0)
72
+ x("h3", null, B(e.header), 1),
73
+ S(n).headerActions ? (f(), g("span", zn, [
74
+ M(t.$slots, "headerActions", {}, void 0, !0)
75
75
  ])) : L("", !0)
76
76
  ]),
77
77
  x("main", null, [
78
- j(t.$slots, "default", {}, void 0, !0)
78
+ M(t.$slots, "default", {}, void 0, !0)
79
79
  ]),
80
- S(n).footer ? (f(), g("footer", zn, [
81
- j(t.$slots, "footer", {}, void 0, !0)
80
+ S(n).footer ? (f(), g("footer", In, [
81
+ M(t.$slots, "footer", {}, void 0, !0)
82
82
  ])) : L("", !0)
83
83
  ], 2));
84
84
  }
85
- }), at = /* @__PURE__ */ B(In, [["__scopeId", "data-v-ec6ab562"]]), Hn = ["aria-label"], Un = {
85
+ }), at = /* @__PURE__ */ D(Hn, [["__scopeId", "data-v-ec6ab562"]]), Un = ["aria-label"], Wn = {
86
86
  key: 0,
87
87
  class: "carousel-indicators"
88
- }, Wn = /* @__PURE__ */ T({
88
+ }, Nn = /* @__PURE__ */ T({
89
89
  __name: "carousel",
90
90
  props: {
91
91
  autoplay: { type: Boolean },
@@ -96,35 +96,35 @@ const be = /* @__PURE__ */ T({
96
96
  ariaLabel: {}
97
97
  },
98
98
  setup(e) {
99
- const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, i = n.startIndex ?? 0, r = n.ariaLabel ?? "Carousel", c = C(Math.max(0, i)), s = C(null), u = C(null), d = C(0), v = C(0);
99
+ const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, i = n.startIndex ?? 0, c = n.ariaLabel ?? "Carousel", s = E(Math.max(0, i)), r = E(null), u = E(null), d = E(0), v = E(0);
100
100
  let m = !1;
101
- const p = C(0), _ = C(!1);
101
+ const p = E(0), w = E(!1);
102
102
  let h = null, y = null;
103
- const w = C(null), b = C(null), $ = () => {
104
- p.value = s.value ? s.value.children.length : 0, p.value === 0 ? c.value = 0 : c.value >= p.value && (c.value = l ? 0 : p.value - 1), I();
105
- }, P = E(() => d.value > 0 ? { transform: `translateX(${-c.value * d.value + v.value}px)` } : { transform: `translateX(-${c.value * 100}%)` }), I = () => {
106
- s.value && Array.from(s.value.children).forEach((R, ye) => {
103
+ const _ = E(null), b = E(null), $ = () => {
104
+ p.value = r.value ? r.value.children.length : 0, p.value === 0 ? s.value = 0 : s.value >= p.value && (s.value = l ? 0 : p.value - 1), I();
105
+ }, j = C(() => d.value > 0 ? { transform: `translateX(${-s.value * d.value + v.value}px)` } : { transform: `translateX(-${s.value * 100}%)` }), I = () => {
106
+ r.value && Array.from(r.value.children).forEach((R, ye) => {
107
107
  try {
108
- ye === c.value ? R.removeAttribute("aria-hidden") : R.setAttribute("aria-hidden", "true");
108
+ ye === s.value ? R.removeAttribute("aria-hidden") : R.setAttribute("aria-hidden", "true");
109
109
  } catch {
110
110
  }
111
111
  });
112
112
  }, k = () => {
113
- V(), !(!t || p.value <= 1) && (a && _.value || (h = setTimeout(() => {
113
+ V(), !(!t || p.value <= 1) && (a && w.value || (h = setTimeout(() => {
114
114
  H(), k();
115
115
  }, o)));
116
116
  }, V = () => {
117
117
  h && (clearTimeout(h), h = null);
118
118
  }, A = () => {
119
- p.value !== 0 && (c.value <= 0 ? c.value = l ? p.value - 1 : 0 : c.value--);
119
+ p.value !== 0 && (s.value <= 0 ? s.value = l ? p.value - 1 : 0 : s.value--);
120
120
  }, H = () => {
121
- p.value !== 0 && (c.value >= p.value - 1 ? c.value = l ? 0 : p.value - 1 : c.value++);
121
+ p.value !== 0 && (s.value >= p.value - 1 ? s.value = l ? 0 : p.value - 1 : s.value++);
122
122
  }, U = (R) => {
123
- R < 0 || R >= p.value || (c.value = R);
123
+ R < 0 || R >= p.value || (s.value = R);
124
124
  }, ce = () => {
125
- _.value = !0, a && V();
125
+ w.value = !0, a && V();
126
126
  }, ue = () => {
127
- _.value = !1, k();
127
+ w.value = !1, k();
128
128
  }, de = (R) => {
129
129
  R.key === "ArrowLeft" ? A() : R.key === "ArrowRight" && H();
130
130
  };
@@ -137,7 +137,7 @@ const be = /* @__PURE__ */ T({
137
137
  te > 50 ? A() : te < -50 && H(), te = 0;
138
138
  };
139
139
  let Ie = 0;
140
- const kt = (R) => {
140
+ const Vt = (R) => {
141
141
  if (R.isPrimary !== !1 && !(R.pointerType === "mouse" && R.button !== 0)) {
142
142
  m = !0, Ie = R.clientX, v.value = 0, V();
143
143
  try {
@@ -145,23 +145,23 @@ const be = /* @__PURE__ */ T({
145
145
  } catch {
146
146
  }
147
147
  }
148
- }, Vt = (R) => {
148
+ }, Ct = (R) => {
149
149
  m && (v.value = R.clientX - Ie, R.preventDefault());
150
150
  }, Et = () => {
151
151
  if (!m) return;
152
152
  m = !1;
153
153
  const R = Math.max(50, d.value * 0.15);
154
154
  v.value > R ? A() : v.value < -R && H(), v.value = 0, k();
155
- }, Ct = (R) => {
155
+ }, Lt = (R) => {
156
156
  try {
157
157
  R.target?.releasePointerCapture?.(R.pointerId);
158
158
  } catch {
159
159
  }
160
160
  Et();
161
- }, Lt = () => Et();
162
- return De(() => {
161
+ }, $t = () => Et();
162
+ return Be(() => {
163
163
  me(() => {
164
- if ($(), s.value && (y = new MutationObserver($), y.observe(s.value, { childList: !0 }), s.value.addEventListener("touchstart", ae, { passive: !0 }), s.value.addEventListener("touchmove", Y, { passive: !0 }), s.value.addEventListener("touchend", ne)), u.value) {
164
+ if ($(), r.value && (y = new MutationObserver($), y.observe(r.value, { childList: !0 }), r.value.addEventListener("touchstart", ae, { passive: !0 }), r.value.addEventListener("touchmove", Y, { passive: !0 }), r.value.addEventListener("touchend", ne)), u.value) {
165
165
  const R = () => {
166
166
  d.value = u.value ? u.value.clientWidth : 0;
167
167
  };
@@ -169,18 +169,18 @@ const be = /* @__PURE__ */ T({
169
169
  const ye = window.ResizeObserver;
170
170
  if (ye && u.value) {
171
171
  const we = new ye(() => R());
172
- we.observe(u.value), w.value = we;
172
+ we.observe(u.value), _.value = we;
173
173
  } else
174
174
  window.addEventListener("resize", R), b.value = R;
175
- u.value && (u.value.addEventListener("pointerdown", kt), u.value.addEventListener("pointermove", Vt), u.value.addEventListener("pointerup", Ct), u.value.addEventListener("pointercancel", Lt));
175
+ u.value && (u.value.addEventListener("pointerdown", Vt), u.value.addEventListener("pointermove", Ct), u.value.addEventListener("pointerup", Lt), u.value.addEventListener("pointercancel", $t));
176
176
  }
177
177
  I(), k();
178
178
  });
179
179
  }), Re(() => {
180
- V(), y && s.value && y.disconnect(), s.value && (s.value.removeEventListener("touchstart", ae), s.value.removeEventListener("touchmove", Y), s.value.removeEventListener("touchend", ne)), u.value && (w.value && w.value.disconnect && w.value.disconnect(), b.value && window.removeEventListener("resize", b.value), u.value.removeEventListener("pointerdown", kt), u.value.removeEventListener("pointermove", Vt), u.value.removeEventListener("pointerup", Ct), u.value.removeEventListener("pointercancel", Lt));
181
- }), X([c, () => p.value], () => {
180
+ V(), y && r.value && y.disconnect(), r.value && (r.value.removeEventListener("touchstart", ae), r.value.removeEventListener("touchmove", Y), r.value.removeEventListener("touchend", ne)), u.value && (_.value && _.value.disconnect && _.value.disconnect(), b.value && window.removeEventListener("resize", b.value), u.value.removeEventListener("pointerdown", Vt), u.value.removeEventListener("pointermove", Ct), u.value.removeEventListener("pointerup", Lt), u.value.removeEventListener("pointercancel", $t));
181
+ }), X([s, () => p.value], () => {
182
182
  I();
183
- }), X([() => _.value, c], () => {
183
+ }), X([() => w.value, s], () => {
184
184
  k();
185
185
  }), (R, ye) => {
186
186
  const we = K("VjButton");
@@ -188,7 +188,7 @@ const be = /* @__PURE__ */ T({
188
188
  class: "carousel",
189
189
  role: "region",
190
190
  "aria-roledescription": "carousel",
191
- "aria-label": S(r),
191
+ "aria-label": S(c),
192
192
  tabindex: "0",
193
193
  onKeydown: de,
194
194
  onMouseenter: ce,
@@ -202,10 +202,10 @@ const be = /* @__PURE__ */ T({
202
202
  x("div", {
203
203
  class: "carousel-track",
204
204
  ref_key: "track",
205
- ref: s,
206
- style: G(P.value)
205
+ ref: r,
206
+ style: G(j.value)
207
207
  }, [
208
- j(R.$slots, "default", {}, void 0, !0)
208
+ M(R.$slots, "default", {}, void 0, !0)
209
209
  ], 4)
210
210
  ], 512),
211
211
  O(we, {
@@ -222,23 +222,23 @@ const be = /* @__PURE__ */ T({
222
222
  type: "button",
223
223
  "aria-label": "Next slide"
224
224
  }, null, 8, ["icon"]),
225
- p.value > 1 ? (f(), g("div", Un, [
226
- (f(!0), g(Z, null, ge(p.value, (Te) => (f(), M(we, {
225
+ p.value > 1 ? (f(), g("div", Wn, [
226
+ (f(!0), g(Z, null, ge(p.value, (Te) => (f(), P(we, {
227
227
  key: Te - 1,
228
- class: z(["indicator", { active: Te - 1 === c.value }]),
229
- onClick: (Ai) => U(Te - 1),
230
- "aria-current": Te - 1 === c.value,
228
+ class: z(["indicator", { active: Te - 1 === s.value }]),
229
+ onClick: (Oi) => U(Te - 1),
230
+ "aria-current": Te - 1 === s.value,
231
231
  "aria-label": `Go to slide ${Te}`,
232
232
  type: "button"
233
233
  }, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
234
234
  ])) : L("", !0)
235
- ], 40, Hn);
235
+ ], 40, Un);
236
236
  };
237
237
  }
238
- }), Di = /* @__PURE__ */ B(Wn, [["__scopeId", "data-v-232abca2"]]), Nn = { class: "checkbox" }, Kn = ["checked", "disabled"], Xn = {
238
+ }), ji = /* @__PURE__ */ D(Nn, [["__scopeId", "data-v-232abca2"]]), Kn = { class: "checkbox" }, Xn = ["checked", "disabled"], Gn = {
239
239
  key: 0,
240
240
  class: "checkbox-label"
241
- }, Gn = /* @__PURE__ */ T({
241
+ }, qn = /* @__PURE__ */ T({
242
242
  __name: "checkbox",
243
243
  props: /* @__PURE__ */ ee({
244
244
  label: {},
@@ -253,14 +253,14 @@ const be = /* @__PURE__ */ T({
253
253
  const l = o.target;
254
254
  n.value = l.checked;
255
255
  };
256
- return (o, l) => (f(), g("label", Nn, [
256
+ return (o, l) => (f(), g("label", Kn, [
257
257
  x("input", {
258
258
  type: "checkbox",
259
259
  checked: n.value,
260
260
  onChange: t,
261
261
  disabled: e.disabled,
262
262
  class: "checkbox-input"
263
- }, null, 40, Kn),
263
+ }, null, 40, Xn),
264
264
  l[0] || (l[0] = x("span", { class: "checkbox-box" }, [
265
265
  x("svg", {
266
266
  class: "checkbox-icon",
@@ -278,13 +278,13 @@ const be = /* @__PURE__ */ T({
278
278
  })
279
279
  ])
280
280
  ], -1)),
281
- e.label ? (f(), g("span", Xn, D(e.label), 1)) : L("", !0)
281
+ e.label ? (f(), g("span", Gn, B(e.label), 1)) : L("", !0)
282
282
  ]));
283
283
  }
284
- }), qn = /* @__PURE__ */ B(Gn, [["__scopeId", "data-v-d44b45ff"]]), Yn = { class: "radio" }, Jn = ["checked", "disabled"], Qn = {
284
+ }), Yn = /* @__PURE__ */ D(qn, [["__scopeId", "data-v-d44b45ff"]]), Jn = { class: "radio" }, Qn = ["checked", "disabled"], Zn = {
285
285
  key: 0,
286
286
  class: "radio-label"
287
- }, Zn = /* @__PURE__ */ T({
287
+ }, eo = /* @__PURE__ */ T({
288
288
  __name: "radio",
289
289
  props: /* @__PURE__ */ ee({
290
290
  label: {},
@@ -299,24 +299,24 @@ const be = /* @__PURE__ */ T({
299
299
  const l = o.target;
300
300
  n.value = l.checked;
301
301
  };
302
- return (o, l) => (f(), g("label", Yn, [
302
+ return (o, l) => (f(), g("label", Jn, [
303
303
  x("input", {
304
304
  type: "checkbox",
305
305
  checked: n.value,
306
306
  onChange: t,
307
307
  disabled: e.disabled,
308
308
  class: "radio-input"
309
- }, null, 40, Jn),
309
+ }, null, 40, Qn),
310
310
  l[0] || (l[0] = x("span", { class: "radio-box" }, [
311
311
  x("span", {
312
312
  class: "radio-dot",
313
313
  "aria-hidden": "true"
314
314
  })
315
315
  ], -1)),
316
- e.label ? (f(), g("span", Qn, D(e.label), 1)) : L("", !0)
316
+ e.label ? (f(), g("span", Zn, B(e.label), 1)) : L("", !0)
317
317
  ]));
318
318
  }
319
- }), Pi = /* @__PURE__ */ B(Zn, [["__scopeId", "data-v-f9e4bb65"]]), eo = { class: "chip__label" }, to = /* @__PURE__ */ T({
319
+ }), Mi = /* @__PURE__ */ D(eo, [["__scopeId", "data-v-f9e4bb65"]]), to = { class: "chip__label" }, no = /* @__PURE__ */ T({
320
320
  __name: "chip",
321
321
  props: /* @__PURE__ */ ee({
322
322
  label: {},
@@ -328,23 +328,23 @@ const be = /* @__PURE__ */ T({
328
328
  }),
329
329
  emits: /* @__PURE__ */ ee(["update:modelValue", "dismiss", "click"], ["update:modelValue"]),
330
330
  setup(e, { emit: n }) {
331
- const t = e, o = ve(e, "modelValue"), l = n, a = t.dismissable ?? !1, i = E(() => {
332
- const c = {};
333
- return t.color && (c.color = `var(--on-surface-${t.color})`, c.background = `var(--surface-${t.color})`), c;
334
- }), r = () => {
331
+ const t = e, o = ve(e, "modelValue"), l = n, a = t.dismissable ?? !1, i = C(() => {
332
+ const s = {};
333
+ return t.color && (s.color = `var(--on-surface-${t.color})`, s.background = `var(--surface-${t.color})`), s;
334
+ }), c = () => {
335
335
  l("dismiss", o.value);
336
336
  };
337
- return (c, s) => (f(), g("div", {
337
+ return (s, r) => (f(), g("div", {
338
338
  class: z(["chip", { "chip--dismissable": S(a) }]),
339
339
  style: G(i.value),
340
- onClick: s[0] || (s[0] = (u) => c.$emit("click"))
340
+ onClick: r[0] || (r[0] = (u) => s.$emit("click"))
341
341
  }, [
342
- x("span", eo, D(e.label), 1),
342
+ x("span", to, B(e.label), 1),
343
343
  S(a) ? (f(), g("button", {
344
344
  key: 0,
345
345
  class: "chip__close",
346
346
  type: "button",
347
- onClick: N(r, ["stop"]),
347
+ onClick: N(c, ["stop"]),
348
348
  "aria-label": "Dismiss"
349
349
  }, [
350
350
  O(be, {
@@ -354,13 +354,13 @@ const be = /* @__PURE__ */ T({
354
354
  ])) : L("", !0)
355
355
  ], 6));
356
356
  }
357
- }), Xt = /* @__PURE__ */ B(to, [["__scopeId", "data-v-c2014a3b"]]), no = { class: "chip-group" }, oo = {
357
+ }), Gt = /* @__PURE__ */ D(no, [["__scopeId", "data-v-c2014a3b"]]), oo = { class: "chip-group" }, lo = {
358
358
  key: 0,
359
359
  class: "chip-group__label"
360
- }, lo = { class: "chip-group__container" }, ao = ["onDragover", "onDrop"], io = ["onDragstart", "onDragover", "onDragenter", "onDrop"], so = ["onDragover", "onDrop"], ro = {
360
+ }, ao = { class: "chip-group__container" }, io = ["onDragover", "onDrop"], so = ["onDragstart", "onDragover", "onDragenter", "onDrop"], ro = ["onDragover", "onDrop"], co = {
361
361
  key: 1,
362
362
  class: "chip-group__hint"
363
- }, co = /* @__PURE__ */ T({
363
+ }, uo = /* @__PURE__ */ T({
364
364
  __name: "chip-group",
365
365
  props: {
366
366
  items: { default: () => [] },
@@ -373,17 +373,17 @@ const be = /* @__PURE__ */ T({
373
373
  },
374
374
  emits: ["update:items", "reorder", "dismiss", "chip-click"],
375
375
  setup(e, { emit: n }) {
376
- const t = e, o = n, l = C(null), a = C(null);
376
+ const t = e, o = n, l = E(null), a = E(null);
377
377
  function i(h, y) {
378
378
  return typeof h == "string" ? `${h}-${y}` : h[t.itemKey] !== void 0 ? String(h[t.itemKey]) : `item-${y}`;
379
379
  }
380
- function r(h) {
380
+ function c(h) {
381
381
  return typeof h == "string" ? h : h[t.itemLabel] !== void 0 ? String(h[t.itemLabel]) : String(h.value || "");
382
382
  }
383
- function c(h, y) {
383
+ function s(h, y) {
384
384
  l.value = h, y.dataTransfer && (y.dataTransfer.effectAllowed = "move", y.dataTransfer.setData("text/plain", String(h)));
385
385
  }
386
- function s(h, y) {
386
+ function r(h, y) {
387
387
  l.value === null || l.value === h || (y.preventDefault(), y.dataTransfer && (y.dataTransfer.dropEffect = "move"));
388
388
  }
389
389
  function u(h) {
@@ -397,58 +397,58 @@ const be = /* @__PURE__ */ T({
397
397
  function m(h, y) {
398
398
  if (y.preventDefault(), l.value === null || l.value === h)
399
399
  return;
400
- const w = [...t.items], b = w[l.value];
401
- w.splice(l.value, 1), w.splice(h, 0, b), o("update:items", w), o("reorder", w);
400
+ const _ = [...t.items], b = _[l.value];
401
+ _.splice(l.value, 1), _.splice(h, 0, b), o("update:items", _), o("reorder", _);
402
402
  }
403
403
  function p() {
404
404
  l.value = null, a.value = null;
405
405
  }
406
- function _(h) {
407
- const y = t.items[h], w = t.items.filter((b, $) => $ !== h);
408
- o("update:items", w), o("dismiss", y, h);
406
+ function w(h) {
407
+ const y = t.items[h], _ = t.items.filter((b, $) => $ !== h);
408
+ o("update:items", _), o("dismiss", y, h);
409
409
  }
410
- return (h, y) => (f(), g("div", no, [
411
- e.label ? (f(), g("label", oo, D(e.label), 1)) : L("", !0),
412
- x("div", lo, [
413
- (f(!0), g(Z, null, ge(e.items, (w, b) => (f(), g(Z, {
414
- key: i(w, b)
410
+ return (h, y) => (f(), g("div", oo, [
411
+ e.label ? (f(), g("label", lo, B(e.label), 1)) : L("", !0),
412
+ x("div", ao, [
413
+ (f(!0), g(Z, null, ge(e.items, (_, b) => (f(), g(Z, {
414
+ key: i(_, b)
415
415
  }, [
416
416
  v(b, "before") ? (f(), g("div", {
417
417
  key: 0,
418
418
  class: "chip-group__drop-indicator",
419
- onDragover: N(($) => s(b, $), ["prevent"]),
419
+ onDragover: N(($) => r(b, $), ["prevent"]),
420
420
  onDrop: ($) => m(b, $)
421
- }, null, 40, ao)) : L("", !0),
421
+ }, null, 40, io)) : L("", !0),
422
422
  x("div", {
423
423
  class: z(["chip-group__item", { "chip-group__item--dragging": l.value === b }]),
424
424
  draggable: "true",
425
- onDragstart: ($) => c(b, $),
426
- onDragover: N(($) => s(b, $), ["prevent"]),
425
+ onDragstart: ($) => s(b, $),
426
+ onDragover: N(($) => r(b, $), ["prevent"]),
427
427
  onDragenter: N(($) => u(b), ["prevent"]),
428
428
  onDragleave: d,
429
429
  onDrop: ($) => m(b, $),
430
430
  onDragend: p
431
431
  }, [
432
- O(Xt, {
433
- label: r(w),
434
- dismissable: typeof w == "string" ? e.dismissable : w.dismissable ?? e.dismissable,
435
- color: typeof w == "string" ? e.color : w.color ?? e.color,
436
- onDismiss: ($) => _(b),
437
- onClick: ($) => h.$emit("chip-click", w, b)
432
+ O(Gt, {
433
+ label: c(_),
434
+ dismissable: typeof _ == "string" ? e.dismissable : _.dismissable ?? e.dismissable,
435
+ color: typeof _ == "string" ? e.color : _.color ?? e.color,
436
+ onDismiss: ($) => w(b),
437
+ onClick: ($) => h.$emit("chip-click", _, b)
438
438
  }, null, 8, ["label", "dismissable", "color", "onDismiss", "onClick"])
439
- ], 42, io),
439
+ ], 42, so),
440
440
  v(b, "after") ? (f(), g("div", {
441
441
  key: 1,
442
442
  class: "chip-group__drop-indicator",
443
- onDragover: N(($) => s(b, $), ["prevent"]),
443
+ onDragover: N(($) => r(b, $), ["prevent"]),
444
444
  onDrop: ($) => m(b, $)
445
- }, null, 40, so)) : L("", !0)
445
+ }, null, 40, ro)) : L("", !0)
446
446
  ], 64))), 128))
447
447
  ]),
448
- e.hint ? (f(), g("div", ro, D(e.hint), 1)) : L("", !0)
448
+ e.hint ? (f(), g("div", co, B(e.hint), 1)) : L("", !0)
449
449
  ]));
450
450
  }
451
- }), Gt = /* @__PURE__ */ B(co, [["__scopeId", "data-v-66199d19"]]), uo = { class: "dialog-content" }, fo = { key: 1 }, vo = { class: "dialog-footer" }, mo = /* @__PURE__ */ T({
451
+ }), qt = /* @__PURE__ */ D(uo, [["__scopeId", "data-v-66199d19"]]), Yt = /* @__PURE__ */ Symbol("VjDialogController"), fo = { class: "dialog-content" }, vo = { key: 1 }, mo = { class: "dialog-footer" }, po = /* @__PURE__ */ T({
452
452
  __name: "dialog",
453
453
  props: {
454
454
  modelValue: { type: Boolean, default: !1 },
@@ -463,52 +463,60 @@ const be = /* @__PURE__ */ T({
463
463
  closeOnBackdrop: { type: Boolean, default: !1 },
464
464
  closeOnEscape: { type: Boolean, default: !0 }
465
465
  },
466
- emits: ["update:modelValue", "confirm", "cancel", "close"],
466
+ emits: ["update:modelValue", "confirm", "cancel", "close", "resolve"],
467
467
  setup(e, { emit: n }) {
468
- const t = e, o = n, l = C(t.modelValue);
468
+ const t = e, o = n, l = E(t.modelValue);
469
469
  X(
470
470
  () => t.modelValue,
471
- (u) => l.value = u
471
+ (d) => l.value = d
472
472
  );
473
473
  const a = () => {
474
474
  l.value = !1, o("update:modelValue", !1), o("close");
475
- }, i = () => {
475
+ }, i = (d) => {
476
+ o("resolve", d), a();
477
+ }, c = () => {
476
478
  o("confirm"), a();
477
- }, r = () => {
479
+ }, s = () => {
478
480
  o("cancel"), a();
479
- }, c = () => {
481
+ };
482
+ Nt(Yt, {
483
+ close: a,
484
+ resolve: i,
485
+ cancel: s
486
+ });
487
+ const r = () => {
480
488
  t.closeOnBackdrop && a();
481
- }, s = (u) => {
482
- u.key === "Escape" && t.closeOnEscape && l.value && a();
489
+ }, u = (d) => {
490
+ d.key === "Escape" && t.closeOnEscape && l.value && a();
483
491
  };
484
- return De(() => {
485
- document.addEventListener("keydown", s);
492
+ return Be(() => {
493
+ document.addEventListener("keydown", u);
486
494
  }), Re(() => {
487
- document.removeEventListener("keydown", s);
488
- }), (u, d) => {
489
- const v = K("VjIcon"), m = K("VjButton"), p = K("VjCard");
490
- return f(), M(Pe, { to: "body" }, [
495
+ document.removeEventListener("keydown", u);
496
+ }), (d, v) => {
497
+ const m = K("VjIcon"), p = K("VjButton"), w = K("VjCard");
498
+ return f(), P(je, { to: "body" }, [
491
499
  O(Oe, { name: "dialog-fade" }, {
492
500
  default: W(() => [
493
501
  l.value ? (f(), g("div", {
494
502
  key: 0,
495
503
  class: "dialog-backdrop",
496
- onClick: c
504
+ onClick: r
497
505
  }, [
498
506
  O(Oe, { name: "dialog-scale" }, {
499
507
  default: W(() => [
500
508
  l.value ? (f(), g("div", {
501
509
  key: 0,
502
510
  class: "dialog-wrapper",
503
- onClick: d[0] || (d[0] = N(() => {
511
+ onClick: v[0] || (v[0] = N(() => {
504
512
  }, ["stop"]))
505
513
  }, [
506
- O(p, {
514
+ O(w, {
507
515
  class: "dialog-card",
508
516
  header: e.title || ""
509
517
  }, rt({
510
518
  headerActions: W(() => [
511
- O(v, {
519
+ O(m, {
512
520
  icon: S(F).CLOSE,
513
521
  size: S(q).S,
514
522
  class: "dialog-close",
@@ -516,8 +524,13 @@ const be = /* @__PURE__ */ T({
516
524
  }, null, 8, ["icon", "size"])
517
525
  ]),
518
526
  default: W(() => [
519
- x("div", uo, [
520
- e.component ? (f(), M(Wt(e.component), gn({ key: 0 }, e.componentProps, { onClose: a }), null, 16)) : e.message ? (f(), g("div", fo, D(e.message), 1)) : j(u.$slots, "default", { key: 2 }, void 0, !0)
527
+ x("div", fo, [
528
+ e.component ? (f(), P(Kt(e.component), yn({ key: 0 }, e.componentProps, {
529
+ onCancel: s,
530
+ onClose: a,
531
+ onConfirm: c,
532
+ onResolve: i
533
+ }), null, 16)) : e.message ? (f(), g("div", vo, B(e.message), 1)) : M(d.$slots, "default", { key: 2 }, void 0, !0)
521
534
  ])
522
535
  ]),
523
536
  _: 2
@@ -525,17 +538,17 @@ const be = /* @__PURE__ */ T({
525
538
  e.showFooter ? {
526
539
  name: "footer",
527
540
  fn: W(() => [
528
- x("div", vo, [
529
- j(u.$slots, "footer", {}, () => [
530
- e.showCancel ? (f(), M(m, {
541
+ x("div", mo, [
542
+ M(d.$slots, "footer", {}, () => [
543
+ e.showCancel ? (f(), P(p, {
531
544
  key: 0,
532
545
  secondary: "",
533
- onClick: r,
546
+ onClick: s,
534
547
  label: e.cancelText
535
548
  }, null, 8, ["label"])) : L("", !0),
536
- O(m, {
549
+ O(p, {
537
550
  primary: "",
538
- onClick: i,
551
+ onClick: c,
539
552
  label: e.confirmText
540
553
  }, null, 8, ["label"])
541
554
  ], !0)
@@ -555,10 +568,10 @@ const be = /* @__PURE__ */ T({
555
568
  ]);
556
569
  };
557
570
  }
558
- }), dt = /* @__PURE__ */ B(mo, [["__scopeId", "data-v-6af510b3"]]), po = { class: "vj-chip-selector" }, ho = { class: "options-grid" }, go = ["onClick"], bo = {
571
+ }), ft = /* @__PURE__ */ D(po, [["__scopeId", "data-v-29d1729b"]]), ho = { class: "vj-chip-selector" }, go = { class: "options-grid" }, bo = ["onClick"], yo = {
559
572
  key: 0,
560
573
  class: "no-options"
561
- }, yo = /* @__PURE__ */ T({
574
+ }, wo = /* @__PURE__ */ T({
562
575
  __name: "chip-selector",
563
576
  props: {
564
577
  items: { default: () => [] },
@@ -570,29 +583,29 @@ const be = /* @__PURE__ */ T({
570
583
  },
571
584
  emits: ["update:items"],
572
585
  setup(e, { emit: n }) {
573
- const t = e, o = n, l = C([...t.items]), a = C(!1), i = E(() => t.options.filter((s) => !l.value.includes(s.value)));
574
- function r(s) {
575
- const u = s;
586
+ const t = e, o = n, l = E([...t.items]), a = E(!1), i = C(() => t.options.filter((r) => !l.value.includes(r.value)));
587
+ function c(r) {
588
+ const u = r;
576
589
  l.value = u, o("update:items", u);
577
590
  }
578
- function c(s) {
579
- if (!l.value.includes(s)) {
580
- const u = [...l.value, s];
591
+ function s(r) {
592
+ if (!l.value.includes(r)) {
593
+ const u = [...l.value, r];
581
594
  l.value = u, o("update:items", u);
582
595
  }
583
596
  }
584
597
  return X(
585
598
  () => t.items,
586
- (s) => {
587
- JSON.stringify(s) !== JSON.stringify(l.value) && (l.value = [...s]);
599
+ (r) => {
600
+ JSON.stringify(r) !== JSON.stringify(l.value) && (l.value = [...r]);
588
601
  },
589
602
  { deep: !0 }
590
- ), (s, u) => (f(), g("div", po, [
591
- O(Gt, {
603
+ ), (r, u) => (f(), g("div", ho, [
604
+ O(qt, {
592
605
  items: l.value,
593
606
  "onUpdate:items": [
594
607
  u[0] || (u[0] = (d) => l.value = d),
595
- r
608
+ c
596
609
  ],
597
610
  label: e.label,
598
611
  hint: e.hint
@@ -601,68 +614,68 @@ const be = /* @__PURE__ */ T({
601
614
  type: "button",
602
615
  class: "add-button",
603
616
  onClick: u[1] || (u[1] = (d) => a.value = !0)
604
- }, D(e.addButtonText), 1),
605
- O(dt, {
617
+ }, B(e.addButtonText), 1),
618
+ O(ft, {
606
619
  modelValue: a.value,
607
620
  "onUpdate:modelValue": u[2] || (u[2] = (d) => a.value = d),
608
621
  title: e.dialogTitle || `Add ${e.label}`,
609
622
  "close-on-backdrop": ""
610
623
  }, {
611
624
  default: W(() => [
612
- x("div", ho, [
625
+ x("div", go, [
613
626
  (f(!0), g(Z, null, ge(i.value, (d) => (f(), g("button", {
614
627
  key: d.value,
615
628
  type: "button",
616
629
  class: "option-btn",
617
- onClick: (v) => c(d.value)
618
- }, "+ " + D(d.label), 9, go))), 128))
630
+ onClick: (v) => s(d.value)
631
+ }, "+ " + B(d.label), 9, bo))), 128))
619
632
  ]),
620
- i.value.length === 0 ? (f(), g("div", bo, "All options already selected")) : L("", !0)
633
+ i.value.length === 0 ? (f(), g("div", yo, "All options already selected")) : L("", !0)
621
634
  ]),
622
635
  _: 1
623
636
  }, 8, ["modelValue", "title"])
624
637
  ]));
625
638
  }
626
- }), wo = /* @__PURE__ */ B(yo, [["__scopeId", "data-v-f2e1b880"]]), $e = Math.min, J = Math.max, We = Math.round, He = Math.floor, ie = (e) => ({
639
+ }), _o = /* @__PURE__ */ D(wo, [["__scopeId", "data-v-f2e1b880"]]), $e = Math.min, J = Math.max, We = Math.round, He = Math.floor, ie = (e) => ({
627
640
  x: e,
628
641
  y: e
629
- }), _o = {
642
+ }), xo = {
630
643
  left: "right",
631
644
  right: "left",
632
645
  bottom: "top",
633
646
  top: "bottom"
634
- }, xo = {
647
+ }, ko = {
635
648
  start: "end",
636
649
  end: "start"
637
650
  };
638
- function St(e, n, t) {
651
+ function Rt(e, n, t) {
639
652
  return J(e, $e(n, t));
640
653
  }
641
- function je(e, n) {
654
+ function Me(e, n) {
642
655
  return typeof e == "function" ? e(n) : e;
643
656
  }
644
657
  function pe(e) {
645
658
  return e.split("-")[0];
646
659
  }
647
- function Me(e) {
660
+ function Pe(e) {
648
661
  return e.split("-")[1];
649
662
  }
650
- function qt(e) {
663
+ function Jt(e) {
651
664
  return e === "x" ? "y" : "x";
652
665
  }
653
- function Yt(e) {
666
+ function Qt(e) {
654
667
  return e === "y" ? "height" : "width";
655
668
  }
656
- const ko = /* @__PURE__ */ new Set(["top", "bottom"]);
669
+ const Vo = /* @__PURE__ */ new Set(["top", "bottom"]);
657
670
  function fe(e) {
658
- return ko.has(pe(e)) ? "y" : "x";
671
+ return Vo.has(pe(e)) ? "y" : "x";
659
672
  }
660
- function Jt(e) {
661
- return qt(fe(e));
673
+ function Zt(e) {
674
+ return Jt(fe(e));
662
675
  }
663
- function Vo(e, n, t) {
676
+ function Co(e, n, t) {
664
677
  t === void 0 && (t = !1);
665
- const o = Me(e), l = Jt(e), a = Yt(l);
678
+ const o = Pe(e), l = Zt(e), a = Qt(l);
666
679
  let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
667
680
  return n.reference[a] > n.floating[a] && (i = Ne(i)), [i, Ne(i)];
668
681
  }
@@ -671,30 +684,30 @@ function Eo(e) {
671
684
  return [it(e), n, it(n)];
672
685
  }
673
686
  function it(e) {
674
- return e.replace(/start|end/g, (n) => xo[n]);
687
+ return e.replace(/start|end/g, (n) => ko[n]);
675
688
  }
676
- const Rt = ["left", "right"], Tt = ["right", "left"], Co = ["top", "bottom"], Lo = ["bottom", "top"];
677
- function $o(e, n, t) {
689
+ const Tt = ["left", "right"], At = ["right", "left"], Lo = ["top", "bottom"], $o = ["bottom", "top"];
690
+ function So(e, n, t) {
678
691
  switch (e) {
679
692
  case "top":
680
693
  case "bottom":
681
- return t ? n ? Tt : Rt : n ? Rt : Tt;
694
+ return t ? n ? At : Tt : n ? Tt : At;
682
695
  case "left":
683
696
  case "right":
684
- return n ? Co : Lo;
697
+ return n ? Lo : $o;
685
698
  default:
686
699
  return [];
687
700
  }
688
701
  }
689
- function So(e, n, t, o) {
690
- const l = Me(e);
691
- let a = $o(pe(e), t === "start", o);
702
+ function Ro(e, n, t, o) {
703
+ const l = Pe(e);
704
+ let a = So(pe(e), t === "start", o);
692
705
  return l && (a = a.map((i) => i + "-" + l), n && (a = a.concat(a.map(it)))), a;
693
706
  }
694
707
  function Ne(e) {
695
- return e.replace(/left|right|bottom|top/g, (n) => _o[n]);
708
+ return e.replace(/left|right|bottom|top/g, (n) => xo[n]);
696
709
  }
697
- function Ro(e) {
710
+ function To(e) {
698
711
  return {
699
712
  top: 0,
700
713
  right: 0,
@@ -703,8 +716,8 @@ function Ro(e) {
703
716
  ...e
704
717
  };
705
718
  }
706
- function To(e) {
707
- return typeof e != "number" ? Ro(e) : {
719
+ function Ao(e) {
720
+ return typeof e != "number" ? To(e) : {
708
721
  top: e,
709
722
  right: e,
710
723
  bottom: e,
@@ -729,14 +742,14 @@ function Ke(e) {
729
742
  y: t
730
743
  };
731
744
  }
732
- function At(e, n, t) {
745
+ function Ot(e, n, t) {
733
746
  let {
734
747
  reference: o,
735
748
  floating: l
736
749
  } = e;
737
- const a = fe(n), i = Jt(n), r = Yt(i), c = pe(n), s = a === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, v = o[r] / 2 - l[r] / 2;
750
+ const a = fe(n), i = Zt(n), c = Qt(i), s = pe(n), r = a === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, v = o[c] / 2 - l[c] / 2;
738
751
  let m;
739
- switch (c) {
752
+ switch (s) {
740
753
  case "top":
741
754
  m = {
742
755
  x: u,
@@ -767,40 +780,40 @@ function At(e, n, t) {
767
780
  y: o.y
768
781
  };
769
782
  }
770
- switch (Me(n)) {
783
+ switch (Pe(n)) {
771
784
  case "start":
772
- m[i] -= v * (t && s ? -1 : 1);
785
+ m[i] -= v * (t && r ? -1 : 1);
773
786
  break;
774
787
  case "end":
775
- m[i] += v * (t && s ? -1 : 1);
788
+ m[i] += v * (t && r ? -1 : 1);
776
789
  break;
777
790
  }
778
791
  return m;
779
792
  }
780
- const Ao = async (e, n, t) => {
793
+ const Oo = async (e, n, t) => {
781
794
  const {
782
795
  placement: o = "bottom",
783
796
  strategy: l = "absolute",
784
797
  middleware: a = [],
785
798
  platform: i
786
- } = t, r = a.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(n));
787
- let s = await i.getElementRects({
799
+ } = t, c = a.filter(Boolean), s = await (i.isRTL == null ? void 0 : i.isRTL(n));
800
+ let r = await i.getElementRects({
788
801
  reference: e,
789
802
  floating: n,
790
803
  strategy: l
791
804
  }), {
792
805
  x: u,
793
806
  y: d
794
- } = At(s, o, c), v = o, m = {}, p = 0;
795
- for (let _ = 0; _ < r.length; _++) {
807
+ } = Ot(r, o, s), v = o, m = {}, p = 0;
808
+ for (let w = 0; w < c.length; w++) {
796
809
  const {
797
810
  name: h,
798
811
  fn: y
799
- } = r[_], {
800
- x: w,
812
+ } = c[w], {
813
+ x: _,
801
814
  y: b,
802
815
  data: $,
803
- reset: P
816
+ reset: j
804
817
  } = await y({
805
818
  x: u,
806
819
  y: d,
@@ -808,27 +821,27 @@ const Ao = async (e, n, t) => {
808
821
  placement: v,
809
822
  strategy: l,
810
823
  middlewareData: m,
811
- rects: s,
824
+ rects: r,
812
825
  platform: i,
813
826
  elements: {
814
827
  reference: e,
815
828
  floating: n
816
829
  }
817
830
  });
818
- u = w ?? u, d = b ?? d, m = {
831
+ u = _ ?? u, d = b ?? d, m = {
819
832
  ...m,
820
833
  [h]: {
821
834
  ...m[h],
822
835
  ...$
823
836
  }
824
- }, P && p <= 50 && (p++, typeof P == "object" && (P.placement && (v = P.placement), P.rects && (s = P.rects === !0 ? await i.getElementRects({
837
+ }, j && p <= 50 && (p++, typeof j == "object" && (j.placement && (v = j.placement), j.rects && (r = j.rects === !0 ? await i.getElementRects({
825
838
  reference: e,
826
839
  floating: n,
827
840
  strategy: l
828
- }) : P.rects), {
841
+ }) : j.rects), {
829
842
  x: u,
830
843
  y: d
831
- } = At(s, v, c)), _ = -1);
844
+ } = Ot(r, v, s)), w = -1);
832
845
  }
833
846
  return {
834
847
  x: u,
@@ -838,7 +851,7 @@ const Ao = async (e, n, t) => {
838
851
  middlewareData: m
839
852
  };
840
853
  };
841
- async function ft(e, n) {
854
+ async function vt(e, n) {
842
855
  var t;
843
856
  n === void 0 && (n = {});
844
857
  const {
@@ -846,44 +859,44 @@ async function ft(e, n) {
846
859
  y: l,
847
860
  platform: a,
848
861
  rects: i,
849
- elements: r,
850
- strategy: c
862
+ elements: c,
863
+ strategy: s
851
864
  } = e, {
852
- boundary: s = "clippingAncestors",
865
+ boundary: r = "clippingAncestors",
853
866
  rootBoundary: u = "viewport",
854
867
  elementContext: d = "floating",
855
868
  altBoundary: v = !1,
856
869
  padding: m = 0
857
- } = je(n, e), p = To(m), h = r[v ? d === "floating" ? "reference" : "floating" : d], y = Ke(await a.getClippingRect({
858
- element: (t = await (a.isElement == null ? void 0 : a.isElement(h))) == null || t ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(r.floating)),
859
- boundary: s,
870
+ } = Me(n, e), p = Ao(m), h = c[v ? d === "floating" ? "reference" : "floating" : d], y = Ke(await a.getClippingRect({
871
+ element: (t = await (a.isElement == null ? void 0 : a.isElement(h))) == null || t ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
872
+ boundary: r,
860
873
  rootBoundary: u,
861
- strategy: c
862
- })), w = d === "floating" ? {
874
+ strategy: s
875
+ })), _ = d === "floating" ? {
863
876
  x: o,
864
877
  y: l,
865
878
  width: i.floating.width,
866
879
  height: i.floating.height
867
- } : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(r.floating)), $ = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
880
+ } : i.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c.floating)), $ = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
868
881
  x: 1,
869
882
  y: 1
870
883
  } : {
871
884
  x: 1,
872
885
  y: 1
873
- }, P = Ke(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
874
- elements: r,
875
- rect: w,
886
+ }, j = Ke(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
887
+ elements: c,
888
+ rect: _,
876
889
  offsetParent: b,
877
- strategy: c
878
- }) : w);
890
+ strategy: s
891
+ }) : _);
879
892
  return {
880
- top: (y.top - P.top + p.top) / $.y,
881
- bottom: (P.bottom - y.bottom + p.bottom) / $.y,
882
- left: (y.left - P.left + p.left) / $.x,
883
- right: (P.right - y.right + p.right) / $.x
893
+ top: (y.top - j.top + p.top) / $.y,
894
+ bottom: (j.bottom - y.bottom + p.bottom) / $.y,
895
+ left: (y.left - j.left + p.left) / $.x,
896
+ right: (j.right - y.right + p.right) / $.x
884
897
  };
885
898
  }
886
- const Oo = function(e) {
899
+ const Do = function(e) {
887
900
  return e === void 0 && (e = {}), {
888
901
  name: "flip",
889
902
  options: e,
@@ -893,26 +906,26 @@ const Oo = function(e) {
893
906
  placement: l,
894
907
  middlewareData: a,
895
908
  rects: i,
896
- initialPlacement: r,
897
- platform: c,
898
- elements: s
909
+ initialPlacement: c,
910
+ platform: s,
911
+ elements: r
899
912
  } = n, {
900
913
  mainAxis: u = !0,
901
914
  crossAxis: d = !0,
902
915
  fallbackPlacements: v,
903
916
  fallbackStrategy: m = "bestFit",
904
917
  fallbackAxisSideDirection: p = "none",
905
- flipAlignment: _ = !0,
918
+ flipAlignment: w = !0,
906
919
  ...h
907
- } = je(e, n);
920
+ } = Me(e, n);
908
921
  if ((t = a.arrow) != null && t.alignmentOffset)
909
922
  return {};
910
- const y = pe(l), w = fe(r), b = pe(r) === r, $ = await (c.isRTL == null ? void 0 : c.isRTL(s.floating)), P = v || (b || !_ ? [Ne(r)] : Eo(r)), I = p !== "none";
911
- !v && I && P.push(...So(r, _, p, $));
912
- const k = [r, ...P], V = await ft(n, h), A = [];
923
+ const y = pe(l), _ = fe(c), b = pe(c) === c, $ = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), j = v || (b || !w ? [Ne(c)] : Eo(c)), I = p !== "none";
924
+ !v && I && j.push(...Ro(c, w, p, $));
925
+ const k = [c, ...j], V = await vt(n, h), A = [];
913
926
  let H = ((o = a.flip) == null ? void 0 : o.overflows) || [];
914
927
  if (u && A.push(V[y]), d) {
915
- const de = Vo(l, i, $);
928
+ const de = Co(l, i, $);
916
929
  A.push(V[de[0]], V[de[1]]);
917
930
  }
918
931
  if (H = [...H, {
@@ -921,9 +934,9 @@ const Oo = function(e) {
921
934
  }], !A.every((de) => de <= 0)) {
922
935
  var U, ce;
923
936
  const de = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, ke = k[de];
924
- if (ke && (!(d === "alignment" ? w !== fe(ke) : !1) || // We leave the current main axis only if every placement on that axis
937
+ if (ke && (!(d === "alignment" ? _ !== fe(ke) : !1) || // We leave the current main axis only if every placement on that axis
925
938
  // overflows the main axis.
926
- H.every((Y) => fe(Y.placement) === w ? Y.overflows[0] > 0 : !0)))
939
+ H.every((Y) => fe(Y.placement) === _ ? Y.overflows[0] > 0 : !0)))
927
940
  return {
928
941
  data: {
929
942
  index: de,
@@ -941,7 +954,7 @@ const Oo = function(e) {
941
954
  const ae = (ue = H.filter((Y) => {
942
955
  if (I) {
943
956
  const ne = fe(Y.placement);
944
- return ne === w || // Create a bias to the `y` side axis due to horizontal
957
+ return ne === _ || // Create a bias to the `y` side axis due to horizontal
945
958
  // reading directions favoring greater width.
946
959
  ne === "y";
947
960
  }
@@ -951,7 +964,7 @@ const Oo = function(e) {
951
964
  break;
952
965
  }
953
966
  case "initialPlacement":
954
- te = r;
967
+ te = c;
955
968
  break;
956
969
  }
957
970
  if (l !== te)
@@ -965,12 +978,12 @@ const Oo = function(e) {
965
978
  }
966
979
  };
967
980
  }, Bo = /* @__PURE__ */ new Set(["left", "top"]);
968
- async function Do(e, n) {
981
+ async function jo(e, n) {
969
982
  const {
970
983
  placement: t,
971
984
  platform: o,
972
985
  elements: l
973
- } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = pe(t), r = Me(t), c = fe(t) === "y", s = Bo.has(i) ? -1 : 1, u = a && c ? -1 : 1, d = je(n, e);
986
+ } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = pe(t), c = Pe(t), s = fe(t) === "y", r = Bo.has(i) ? -1 : 1, u = a && s ? -1 : 1, d = Me(n, e);
974
987
  let {
975
988
  mainAxis: v,
976
989
  crossAxis: m,
@@ -984,15 +997,15 @@ async function Do(e, n) {
984
997
  crossAxis: d.crossAxis || 0,
985
998
  alignmentAxis: d.alignmentAxis
986
999
  };
987
- return r && typeof p == "number" && (m = r === "end" ? p * -1 : p), c ? {
1000
+ return c && typeof p == "number" && (m = c === "end" ? p * -1 : p), s ? {
988
1001
  x: m * u,
989
- y: v * s
1002
+ y: v * r
990
1003
  } : {
991
- x: v * s,
1004
+ x: v * r,
992
1005
  y: m * u
993
1006
  };
994
1007
  }
995
- const Po = function(e) {
1008
+ const Mo = function(e) {
996
1009
  return e === void 0 && (e = 0), {
997
1010
  name: "offset",
998
1011
  options: e,
@@ -1002,19 +1015,19 @@ const Po = function(e) {
1002
1015
  x: l,
1003
1016
  y: a,
1004
1017
  placement: i,
1005
- middlewareData: r
1006
- } = n, c = await Do(n, e);
1007
- return i === ((t = r.offset) == null ? void 0 : t.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
1008
- x: l + c.x,
1009
- y: a + c.y,
1018
+ middlewareData: c
1019
+ } = n, s = await jo(n, e);
1020
+ return i === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
1021
+ x: l + s.x,
1022
+ y: a + s.y,
1010
1023
  data: {
1011
- ...c,
1024
+ ...s,
1012
1025
  placement: i
1013
1026
  }
1014
1027
  };
1015
1028
  }
1016
1029
  };
1017
- }, jo = function(e) {
1030
+ }, Po = function(e) {
1018
1031
  return e === void 0 && (e = {}), {
1019
1032
  name: "shift",
1020
1033
  options: e,
@@ -1026,42 +1039,42 @@ const Po = function(e) {
1026
1039
  } = n, {
1027
1040
  mainAxis: a = !0,
1028
1041
  crossAxis: i = !1,
1029
- limiter: r = {
1042
+ limiter: c = {
1030
1043
  fn: (h) => {
1031
1044
  let {
1032
1045
  x: y,
1033
- y: w
1046
+ y: _
1034
1047
  } = h;
1035
1048
  return {
1036
1049
  x: y,
1037
- y: w
1050
+ y: _
1038
1051
  };
1039
1052
  }
1040
1053
  },
1041
- ...c
1042
- } = je(e, n), s = {
1054
+ ...s
1055
+ } = Me(e, n), r = {
1043
1056
  x: t,
1044
1057
  y: o
1045
- }, u = await ft(n, c), d = fe(pe(l)), v = qt(d);
1046
- let m = s[v], p = s[d];
1058
+ }, u = await vt(n, s), d = fe(pe(l)), v = Jt(d);
1059
+ let m = r[v], p = r[d];
1047
1060
  if (a) {
1048
- const h = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", w = m + u[h], b = m - u[y];
1049
- m = St(w, m, b);
1061
+ const h = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", _ = m + u[h], b = m - u[y];
1062
+ m = Rt(_, m, b);
1050
1063
  }
1051
1064
  if (i) {
1052
- const h = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = p + u[h], b = p - u[y];
1053
- p = St(w, p, b);
1065
+ const h = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", _ = p + u[h], b = p - u[y];
1066
+ p = Rt(_, p, b);
1054
1067
  }
1055
- const _ = r.fn({
1068
+ const w = c.fn({
1056
1069
  ...n,
1057
1070
  [v]: m,
1058
1071
  [d]: p
1059
1072
  });
1060
1073
  return {
1061
- ..._,
1074
+ ...w,
1062
1075
  data: {
1063
- x: _.x - t,
1064
- y: _.y - o,
1076
+ x: w.x - t,
1077
+ y: w.y - o,
1065
1078
  enabled: {
1066
1079
  [v]: a,
1067
1080
  [d]: i
@@ -1070,7 +1083,7 @@ const Po = function(e) {
1070
1083
  };
1071
1084
  }
1072
1085
  };
1073
- }, Mo = function(e) {
1086
+ }, Fo = function(e) {
1074
1087
  return e === void 0 && (e = {}), {
1075
1088
  name: "size",
1076
1089
  options: e,
@@ -1080,30 +1093,30 @@ const Po = function(e) {
1080
1093
  placement: l,
1081
1094
  rects: a,
1082
1095
  platform: i,
1083
- elements: r
1096
+ elements: c
1084
1097
  } = n, {
1085
- apply: c = () => {
1098
+ apply: s = () => {
1086
1099
  },
1087
- ...s
1088
- } = je(e, n), u = await ft(n, s), d = pe(l), v = Me(l), m = fe(l) === "y", {
1100
+ ...r
1101
+ } = Me(e, n), u = await vt(n, r), d = pe(l), v = Pe(l), m = fe(l) === "y", {
1089
1102
  width: p,
1090
- height: _
1103
+ height: w
1091
1104
  } = a.floating;
1092
1105
  let h, y;
1093
- d === "top" || d === "bottom" ? (h = d, y = v === (await (i.isRTL == null ? void 0 : i.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = v === "end" ? "top" : "bottom");
1094
- const w = _ - u.top - u.bottom, b = p - u.left - u.right, $ = $e(_ - u[h], w), P = $e(p - u[y], b), I = !n.middlewareData.shift;
1095
- let k = $, V = P;
1096
- if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = b), (o = n.middlewareData.shift) != null && o.enabled.y && (k = w), I && !v) {
1106
+ d === "top" || d === "bottom" ? (h = d, y = v === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = v === "end" ? "top" : "bottom");
1107
+ const _ = w - u.top - u.bottom, b = p - u.left - u.right, $ = $e(w - u[h], _), j = $e(p - u[y], b), I = !n.middlewareData.shift;
1108
+ let k = $, V = j;
1109
+ if ((t = n.middlewareData.shift) != null && t.enabled.x && (V = b), (o = n.middlewareData.shift) != null && o.enabled.y && (k = _), I && !v) {
1097
1110
  const H = J(u.left, 0), U = J(u.right, 0), ce = J(u.top, 0), ue = J(u.bottom, 0);
1098
- m ? V = p - 2 * (H !== 0 || U !== 0 ? H + U : J(u.left, u.right)) : k = _ - 2 * (ce !== 0 || ue !== 0 ? ce + ue : J(u.top, u.bottom));
1111
+ m ? V = p - 2 * (H !== 0 || U !== 0 ? H + U : J(u.left, u.right)) : k = w - 2 * (ce !== 0 || ue !== 0 ? ce + ue : J(u.top, u.bottom));
1099
1112
  }
1100
- await c({
1113
+ await s({
1101
1114
  ...n,
1102
1115
  availableWidth: V,
1103
1116
  availableHeight: k
1104
1117
  });
1105
- const A = await i.getDimensions(r.floating);
1106
- return p !== A.width || _ !== A.height ? {
1118
+ const A = await i.getDimensions(c.floating);
1119
+ return p !== A.width || w !== A.height ? {
1107
1120
  reset: {
1108
1121
  rects: !0
1109
1122
  }
@@ -1115,7 +1128,7 @@ function Ge() {
1115
1128
  return typeof window < "u";
1116
1129
  }
1117
1130
  function xe(e) {
1118
- return vt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1131
+ return mt(e) ? (e.nodeName || "").toLowerCase() : "#document";
1119
1132
  }
1120
1133
  function Q(e) {
1121
1134
  var n;
@@ -1123,9 +1136,9 @@ function Q(e) {
1123
1136
  }
1124
1137
  function re(e) {
1125
1138
  var n;
1126
- return (n = (vt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
1139
+ return (n = (mt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
1127
1140
  }
1128
- function vt(e) {
1141
+ function mt(e) {
1129
1142
  return Ge() ? e instanceof Node || e instanceof Q(e).Node : !1;
1130
1143
  }
1131
1144
  function oe(e) {
@@ -1134,10 +1147,10 @@ function oe(e) {
1134
1147
  function se(e) {
1135
1148
  return Ge() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
1136
1149
  }
1137
- function Ot(e) {
1150
+ function Dt(e) {
1138
1151
  return !Ge() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
1139
1152
  }
1140
- const Fo = /* @__PURE__ */ new Set(["inline", "contents"]);
1153
+ const zo = /* @__PURE__ */ new Set(["inline", "contents"]);
1141
1154
  function Fe(e) {
1142
1155
  const {
1143
1156
  overflow: n,
@@ -1145,15 +1158,15 @@ function Fe(e) {
1145
1158
  overflowY: o,
1146
1159
  display: l
1147
1160
  } = le(e);
1148
- return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Fo.has(l);
1161
+ return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !zo.has(l);
1149
1162
  }
1150
- const zo = /* @__PURE__ */ new Set(["table", "td", "th"]);
1151
- function Io(e) {
1152
- return zo.has(xe(e));
1163
+ const Io = /* @__PURE__ */ new Set(["table", "td", "th"]);
1164
+ function Ho(e) {
1165
+ return Io.has(xe(e));
1153
1166
  }
1154
- const Ho = [":popover-open", ":modal"];
1167
+ const Uo = [":popover-open", ":modal"];
1155
1168
  function qe(e) {
1156
- return Ho.some((n) => {
1169
+ return Uo.some((n) => {
1157
1170
  try {
1158
1171
  return e.matches(n);
1159
1172
  } catch {
@@ -1161,15 +1174,15 @@ function qe(e) {
1161
1174
  }
1162
1175
  });
1163
1176
  }
1164
- const Uo = ["transform", "translate", "scale", "rotate", "perspective"], Wo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], No = ["paint", "layout", "strict", "content"];
1165
- function mt(e) {
1166
- const n = pt(), t = oe(e) ? le(e) : e;
1167
- return Uo.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || Wo.some((o) => (t.willChange || "").includes(o)) || No.some((o) => (t.contain || "").includes(o));
1177
+ const Wo = ["transform", "translate", "scale", "rotate", "perspective"], No = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ko = ["paint", "layout", "strict", "content"];
1178
+ function pt(e) {
1179
+ const n = ht(), t = oe(e) ? le(e) : e;
1180
+ return Wo.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || No.some((o) => (t.willChange || "").includes(o)) || Ko.some((o) => (t.contain || "").includes(o));
1168
1181
  }
1169
- function Ko(e) {
1182
+ function Xo(e) {
1170
1183
  let n = he(e);
1171
1184
  for (; se(n) && !Se(n); ) {
1172
- if (mt(n))
1185
+ if (pt(n))
1173
1186
  return n;
1174
1187
  if (qe(n))
1175
1188
  return null;
@@ -1177,12 +1190,12 @@ function Ko(e) {
1177
1190
  }
1178
1191
  return null;
1179
1192
  }
1180
- function pt() {
1193
+ function ht() {
1181
1194
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
1182
1195
  }
1183
- const Xo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1196
+ const Go = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1184
1197
  function Se(e) {
1185
- return Xo.has(xe(e));
1198
+ return Go.has(xe(e));
1186
1199
  }
1187
1200
  function le(e) {
1188
1201
  return Q(e).getComputedStyle(e);
@@ -1203,182 +1216,182 @@ function he(e) {
1203
1216
  // Step into the shadow DOM of the parent of a slotted node.
1204
1217
  e.assignedSlot || // DOM Element detected.
1205
1218
  e.parentNode || // ShadowRoot detected.
1206
- Ot(e) && e.host || // Fallback.
1219
+ Dt(e) && e.host || // Fallback.
1207
1220
  re(e)
1208
1221
  );
1209
- return Ot(n) ? n.host : n;
1222
+ return Dt(n) ? n.host : n;
1210
1223
  }
1211
- function Qt(e) {
1224
+ function en(e) {
1212
1225
  const n = he(e);
1213
- return Se(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : se(n) && Fe(n) ? n : Qt(n);
1226
+ return Se(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : se(n) && Fe(n) ? n : en(n);
1214
1227
  }
1215
- function Be(e, n, t) {
1228
+ function De(e, n, t) {
1216
1229
  var o;
1217
1230
  n === void 0 && (n = []), t === void 0 && (t = !0);
1218
- const l = Qt(e), a = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = Q(l);
1231
+ const l = en(e), a = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = Q(l);
1219
1232
  if (a) {
1220
- const r = st(i);
1221
- return n.concat(i, i.visualViewport || [], Fe(l) ? l : [], r && t ? Be(r) : []);
1233
+ const c = st(i);
1234
+ return n.concat(i, i.visualViewport || [], Fe(l) ? l : [], c && t ? De(c) : []);
1222
1235
  }
1223
- return n.concat(l, Be(l, [], t));
1236
+ return n.concat(l, De(l, [], t));
1224
1237
  }
1225
1238
  function st(e) {
1226
1239
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
1227
1240
  }
1228
- function Zt(e) {
1241
+ function tn(e) {
1229
1242
  const n = le(e);
1230
1243
  let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
1231
- const l = se(e), a = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, r = We(t) !== a || We(o) !== i;
1232
- return r && (t = a, o = i), {
1244
+ const l = se(e), a = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, c = We(t) !== a || We(o) !== i;
1245
+ return c && (t = a, o = i), {
1233
1246
  width: t,
1234
1247
  height: o,
1235
- $: r
1248
+ $: c
1236
1249
  };
1237
1250
  }
1238
- function ht(e) {
1251
+ function gt(e) {
1239
1252
  return oe(e) ? e : e.contextElement;
1240
1253
  }
1241
- function Ce(e) {
1242
- const n = ht(e);
1254
+ function Ee(e) {
1255
+ const n = gt(e);
1243
1256
  if (!se(n))
1244
1257
  return ie(1);
1245
1258
  const t = n.getBoundingClientRect(), {
1246
1259
  width: o,
1247
1260
  height: l,
1248
1261
  $: a
1249
- } = Zt(n);
1250
- let i = (a ? We(t.width) : t.width) / o, r = (a ? We(t.height) : t.height) / l;
1251
- return (!i || !Number.isFinite(i)) && (i = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1262
+ } = tn(n);
1263
+ let i = (a ? We(t.width) : t.width) / o, c = (a ? We(t.height) : t.height) / l;
1264
+ return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1252
1265
  x: i,
1253
- y: r
1266
+ y: c
1254
1267
  };
1255
1268
  }
1256
- const Go = /* @__PURE__ */ ie(0);
1257
- function en(e) {
1269
+ const qo = /* @__PURE__ */ ie(0);
1270
+ function nn(e) {
1258
1271
  const n = Q(e);
1259
- return !pt() || !n.visualViewport ? Go : {
1272
+ return !ht() || !n.visualViewport ? qo : {
1260
1273
  x: n.visualViewport.offsetLeft,
1261
1274
  y: n.visualViewport.offsetTop
1262
1275
  };
1263
1276
  }
1264
- function qo(e, n, t) {
1277
+ function Yo(e, n, t) {
1265
1278
  return n === void 0 && (n = !1), !t || n && t !== Q(e) ? !1 : n;
1266
1279
  }
1267
1280
  function _e(e, n, t, o) {
1268
1281
  n === void 0 && (n = !1), t === void 0 && (t = !1);
1269
- const l = e.getBoundingClientRect(), a = ht(e);
1282
+ const l = e.getBoundingClientRect(), a = gt(e);
1270
1283
  let i = ie(1);
1271
- n && (o ? oe(o) && (i = Ce(o)) : i = Ce(e));
1272
- const r = qo(a, t, o) ? en(a) : ie(0);
1273
- let c = (l.left + r.x) / i.x, s = (l.top + r.y) / i.y, u = l.width / i.x, d = l.height / i.y;
1284
+ n && (o ? oe(o) && (i = Ee(o)) : i = Ee(e));
1285
+ const c = Yo(a, t, o) ? nn(a) : ie(0);
1286
+ let s = (l.left + c.x) / i.x, r = (l.top + c.y) / i.y, u = l.width / i.x, d = l.height / i.y;
1274
1287
  if (a) {
1275
1288
  const v = Q(a), m = o && oe(o) ? Q(o) : o;
1276
- let p = v, _ = st(p);
1277
- for (; _ && o && m !== p; ) {
1278
- const h = Ce(_), y = _.getBoundingClientRect(), w = le(_), b = y.left + (_.clientLeft + parseFloat(w.paddingLeft)) * h.x, $ = y.top + (_.clientTop + parseFloat(w.paddingTop)) * h.y;
1279
- c *= h.x, s *= h.y, u *= h.x, d *= h.y, c += b, s += $, p = Q(_), _ = st(p);
1289
+ let p = v, w = st(p);
1290
+ for (; w && o && m !== p; ) {
1291
+ const h = Ee(w), y = w.getBoundingClientRect(), _ = le(w), b = y.left + (w.clientLeft + parseFloat(_.paddingLeft)) * h.x, $ = y.top + (w.clientTop + parseFloat(_.paddingTop)) * h.y;
1292
+ s *= h.x, r *= h.y, u *= h.x, d *= h.y, s += b, r += $, p = Q(w), w = st(p);
1280
1293
  }
1281
1294
  }
1282
1295
  return Ke({
1283
1296
  width: u,
1284
1297
  height: d,
1285
- x: c,
1286
- y: s
1298
+ x: s,
1299
+ y: r
1287
1300
  });
1288
1301
  }
1289
1302
  function Je(e, n) {
1290
1303
  const t = Ye(e).scrollLeft;
1291
1304
  return n ? n.left + t : _e(re(e)).left + t;
1292
1305
  }
1293
- function tn(e, n) {
1306
+ function on(e, n) {
1294
1307
  const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Je(e, t), l = t.top + n.scrollTop;
1295
1308
  return {
1296
1309
  x: o,
1297
1310
  y: l
1298
1311
  };
1299
1312
  }
1300
- function Yo(e) {
1313
+ function Jo(e) {
1301
1314
  let {
1302
1315
  elements: n,
1303
1316
  rect: t,
1304
1317
  offsetParent: o,
1305
1318
  strategy: l
1306
1319
  } = e;
1307
- const a = l === "fixed", i = re(o), r = n ? qe(n.floating) : !1;
1308
- if (o === i || r && a)
1320
+ const a = l === "fixed", i = re(o), c = n ? qe(n.floating) : !1;
1321
+ if (o === i || c && a)
1309
1322
  return t;
1310
- let c = {
1323
+ let s = {
1311
1324
  scrollLeft: 0,
1312
1325
  scrollTop: 0
1313
- }, s = ie(1);
1326
+ }, r = ie(1);
1314
1327
  const u = ie(0), d = se(o);
1315
- if ((d || !d && !a) && ((xe(o) !== "body" || Fe(i)) && (c = Ye(o)), se(o))) {
1328
+ if ((d || !d && !a) && ((xe(o) !== "body" || Fe(i)) && (s = Ye(o)), se(o))) {
1316
1329
  const m = _e(o);
1317
- s = Ce(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
1330
+ r = Ee(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
1318
1331
  }
1319
- const v = i && !d && !a ? tn(i, c) : ie(0);
1332
+ const v = i && !d && !a ? on(i, s) : ie(0);
1320
1333
  return {
1321
- width: t.width * s.x,
1322
- height: t.height * s.y,
1323
- x: t.x * s.x - c.scrollLeft * s.x + u.x + v.x,
1324
- y: t.y * s.y - c.scrollTop * s.y + u.y + v.y
1334
+ width: t.width * r.x,
1335
+ height: t.height * r.y,
1336
+ x: t.x * r.x - s.scrollLeft * r.x + u.x + v.x,
1337
+ y: t.y * r.y - s.scrollTop * r.y + u.y + v.y
1325
1338
  };
1326
1339
  }
1327
- function Jo(e) {
1340
+ function Qo(e) {
1328
1341
  return Array.from(e.getClientRects());
1329
1342
  }
1330
- function Qo(e) {
1343
+ function Zo(e) {
1331
1344
  const n = re(e), t = Ye(e), o = e.ownerDocument.body, l = J(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), a = J(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1332
1345
  let i = -t.scrollLeft + Je(e);
1333
- const r = -t.scrollTop;
1346
+ const c = -t.scrollTop;
1334
1347
  return le(o).direction === "rtl" && (i += J(n.clientWidth, o.clientWidth) - l), {
1335
1348
  width: l,
1336
1349
  height: a,
1337
1350
  x: i,
1338
- y: r
1351
+ y: c
1339
1352
  };
1340
1353
  }
1341
1354
  const Bt = 25;
1342
- function Zo(e, n) {
1355
+ function el(e, n) {
1343
1356
  const t = Q(e), o = re(e), l = t.visualViewport;
1344
- let a = o.clientWidth, i = o.clientHeight, r = 0, c = 0;
1357
+ let a = o.clientWidth, i = o.clientHeight, c = 0, s = 0;
1345
1358
  if (l) {
1346
1359
  a = l.width, i = l.height;
1347
- const u = pt();
1348
- (!u || u && n === "fixed") && (r = l.offsetLeft, c = l.offsetTop);
1360
+ const u = ht();
1361
+ (!u || u && n === "fixed") && (c = l.offsetLeft, s = l.offsetTop);
1349
1362
  }
1350
- const s = Je(o);
1351
- if (s <= 0) {
1363
+ const r = Je(o);
1364
+ if (r <= 0) {
1352
1365
  const u = o.ownerDocument, d = u.body, v = getComputedStyle(d), m = u.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - m);
1353
1366
  p <= Bt && (a -= p);
1354
- } else s <= Bt && (a += s);
1367
+ } else r <= Bt && (a += r);
1355
1368
  return {
1356
1369
  width: a,
1357
1370
  height: i,
1358
- x: r,
1359
- y: c
1371
+ x: c,
1372
+ y: s
1360
1373
  };
1361
1374
  }
1362
- const el = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1363
- function tl(e, n) {
1364
- const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = se(e) ? Ce(e) : ie(1), i = e.clientWidth * a.x, r = e.clientHeight * a.y, c = l * a.x, s = o * a.y;
1375
+ const tl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1376
+ function nl(e, n) {
1377
+ const t = _e(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = se(e) ? Ee(e) : ie(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y, s = l * a.x, r = o * a.y;
1365
1378
  return {
1366
1379
  width: i,
1367
- height: r,
1368
- x: c,
1369
- y: s
1380
+ height: c,
1381
+ x: s,
1382
+ y: r
1370
1383
  };
1371
1384
  }
1372
- function Dt(e, n, t) {
1385
+ function jt(e, n, t) {
1373
1386
  let o;
1374
1387
  if (n === "viewport")
1375
- o = Zo(e, t);
1388
+ o = el(e, t);
1376
1389
  else if (n === "document")
1377
- o = Qo(re(e));
1390
+ o = Zo(re(e));
1378
1391
  else if (oe(n))
1379
- o = tl(n, t);
1392
+ o = nl(n, t);
1380
1393
  else {
1381
- const l = en(e);
1394
+ const l = nn(e);
1382
1395
  o = {
1383
1396
  x: n.x - l.x,
1384
1397
  y: n.y - l.y,
@@ -1388,68 +1401,68 @@ function Dt(e, n, t) {
1388
1401
  }
1389
1402
  return Ke(o);
1390
1403
  }
1391
- function nn(e, n) {
1404
+ function ln(e, n) {
1392
1405
  const t = he(e);
1393
- return t === n || !oe(t) || Se(t) ? !1 : le(t).position === "fixed" || nn(t, n);
1406
+ return t === n || !oe(t) || Se(t) ? !1 : le(t).position === "fixed" || ln(t, n);
1394
1407
  }
1395
- function nl(e, n) {
1408
+ function ol(e, n) {
1396
1409
  const t = n.get(e);
1397
1410
  if (t)
1398
1411
  return t;
1399
- let o = Be(e, [], !1).filter((r) => oe(r) && xe(r) !== "body"), l = null;
1412
+ let o = De(e, [], !1).filter((c) => oe(c) && xe(c) !== "body"), l = null;
1400
1413
  const a = le(e).position === "fixed";
1401
1414
  let i = a ? he(e) : e;
1402
1415
  for (; oe(i) && !Se(i); ) {
1403
- const r = le(i), c = mt(i);
1404
- !c && r.position === "fixed" && (l = null), (a ? !c && !l : !c && r.position === "static" && !!l && el.has(l.position) || Fe(i) && !c && nn(e, i)) ? o = o.filter((u) => u !== i) : l = r, i = he(i);
1416
+ const c = le(i), s = pt(i);
1417
+ !s && c.position === "fixed" && (l = null), (a ? !s && !l : !s && c.position === "static" && !!l && tl.has(l.position) || Fe(i) && !s && ln(e, i)) ? o = o.filter((u) => u !== i) : l = c, i = he(i);
1405
1418
  }
1406
1419
  return n.set(e, o), o;
1407
1420
  }
1408
- function ol(e) {
1421
+ function ll(e) {
1409
1422
  let {
1410
1423
  element: n,
1411
1424
  boundary: t,
1412
1425
  rootBoundary: o,
1413
1426
  strategy: l
1414
1427
  } = e;
1415
- const i = [...t === "clippingAncestors" ? qe(n) ? [] : nl(n, this._c) : [].concat(t), o], r = i[0], c = i.reduce((s, u) => {
1416
- const d = Dt(n, u, l);
1417
- return s.top = J(d.top, s.top), s.right = $e(d.right, s.right), s.bottom = $e(d.bottom, s.bottom), s.left = J(d.left, s.left), s;
1418
- }, Dt(n, r, l));
1428
+ const i = [...t === "clippingAncestors" ? qe(n) ? [] : ol(n, this._c) : [].concat(t), o], c = i[0], s = i.reduce((r, u) => {
1429
+ const d = jt(n, u, l);
1430
+ return r.top = J(d.top, r.top), r.right = $e(d.right, r.right), r.bottom = $e(d.bottom, r.bottom), r.left = J(d.left, r.left), r;
1431
+ }, jt(n, c, l));
1419
1432
  return {
1420
- width: c.right - c.left,
1421
- height: c.bottom - c.top,
1422
- x: c.left,
1423
- y: c.top
1433
+ width: s.right - s.left,
1434
+ height: s.bottom - s.top,
1435
+ x: s.left,
1436
+ y: s.top
1424
1437
  };
1425
1438
  }
1426
- function ll(e) {
1439
+ function al(e) {
1427
1440
  const {
1428
1441
  width: n,
1429
1442
  height: t
1430
- } = Zt(e);
1443
+ } = tn(e);
1431
1444
  return {
1432
1445
  width: n,
1433
1446
  height: t
1434
1447
  };
1435
1448
  }
1436
- function al(e, n, t) {
1449
+ function il(e, n, t) {
1437
1450
  const o = se(n), l = re(n), a = t === "fixed", i = _e(e, !0, a, n);
1438
- let r = {
1451
+ let c = {
1439
1452
  scrollLeft: 0,
1440
1453
  scrollTop: 0
1441
1454
  };
1442
- const c = ie(0);
1443
- function s() {
1444
- c.x = Je(l);
1455
+ const s = ie(0);
1456
+ function r() {
1457
+ s.x = Je(l);
1445
1458
  }
1446
1459
  if (o || !o && !a)
1447
- if ((xe(n) !== "body" || Fe(l)) && (r = Ye(n)), o) {
1460
+ if ((xe(n) !== "body" || Fe(l)) && (c = Ye(n)), o) {
1448
1461
  const m = _e(n, !0, a, n);
1449
- c.x = m.x + n.clientLeft, c.y = m.y + n.clientTop;
1450
- } else l && s();
1451
- a && !o && l && s();
1452
- const u = l && !o && !a ? tn(l, r) : ie(0), d = i.left + r.scrollLeft - c.x - u.x, v = i.top + r.scrollTop - c.y - u.y;
1462
+ s.x = m.x + n.clientLeft, s.y = m.y + n.clientTop;
1463
+ } else l && r();
1464
+ a && !o && l && r();
1465
+ const u = l && !o && !a ? on(l, c) : ie(0), d = i.left + c.scrollLeft - s.x - u.x, v = i.top + c.scrollTop - s.y - u.y;
1453
1466
  return {
1454
1467
  x: d,
1455
1468
  y: v,
@@ -1460,7 +1473,7 @@ function al(e, n, t) {
1460
1473
  function ot(e) {
1461
1474
  return le(e).position === "static";
1462
1475
  }
1463
- function Pt(e, n) {
1476
+ function Mt(e, n) {
1464
1477
  if (!se(e) || le(e).position === "fixed")
1465
1478
  return null;
1466
1479
  if (n)
@@ -1468,7 +1481,7 @@ function Pt(e, n) {
1468
1481
  let t = e.offsetParent;
1469
1482
  return re(e) === t && (t = t.ownerDocument.body), t;
1470
1483
  }
1471
- function on(e, n) {
1484
+ function an(e, n) {
1472
1485
  const t = Q(e);
1473
1486
  if (qe(e))
1474
1487
  return t;
@@ -1481,15 +1494,15 @@ function on(e, n) {
1481
1494
  }
1482
1495
  return t;
1483
1496
  }
1484
- let o = Pt(e, n);
1485
- for (; o && Io(o) && ot(o); )
1486
- o = Pt(o, n);
1487
- return o && Se(o) && ot(o) && !mt(o) ? t : o || Ko(e) || t;
1497
+ let o = Mt(e, n);
1498
+ for (; o && Ho(o) && ot(o); )
1499
+ o = Mt(o, n);
1500
+ return o && Se(o) && ot(o) && !pt(o) ? t : o || Xo(e) || t;
1488
1501
  }
1489
- const il = async function(e) {
1490
- const n = this.getOffsetParent || on, t = this.getDimensions, o = await t(e.floating);
1502
+ const sl = async function(e) {
1503
+ const n = this.getOffsetParent || an, t = this.getDimensions, o = await t(e.floating);
1491
1504
  return {
1492
- reference: al(e.reference, await n(e.floating), e.strategy),
1505
+ reference: il(e.reference, await n(e.floating), e.strategy),
1493
1506
  floating: {
1494
1507
  x: 0,
1495
1508
  y: 0,
@@ -1498,65 +1511,65 @@ const il = async function(e) {
1498
1511
  }
1499
1512
  };
1500
1513
  };
1501
- function sl(e) {
1514
+ function rl(e) {
1502
1515
  return le(e).direction === "rtl";
1503
1516
  }
1504
- const rl = {
1505
- convertOffsetParentRelativeRectToViewportRelativeRect: Yo,
1517
+ const cl = {
1518
+ convertOffsetParentRelativeRectToViewportRelativeRect: Jo,
1506
1519
  getDocumentElement: re,
1507
- getClippingRect: ol,
1508
- getOffsetParent: on,
1509
- getElementRects: il,
1510
- getClientRects: Jo,
1511
- getDimensions: ll,
1512
- getScale: Ce,
1520
+ getClippingRect: ll,
1521
+ getOffsetParent: an,
1522
+ getElementRects: sl,
1523
+ getClientRects: Qo,
1524
+ getDimensions: al,
1525
+ getScale: Ee,
1513
1526
  isElement: oe,
1514
- isRTL: sl
1527
+ isRTL: rl
1515
1528
  };
1516
- function ln(e, n) {
1529
+ function sn(e, n) {
1517
1530
  return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
1518
1531
  }
1519
- function cl(e, n) {
1532
+ function ul(e, n) {
1520
1533
  let t = null, o;
1521
1534
  const l = re(e);
1522
1535
  function a() {
1523
- var r;
1524
- clearTimeout(o), (r = t) == null || r.disconnect(), t = null;
1536
+ var c;
1537
+ clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
1525
1538
  }
1526
- function i(r, c) {
1527
- r === void 0 && (r = !1), c === void 0 && (c = 1), a();
1528
- const s = e.getBoundingClientRect(), {
1539
+ function i(c, s) {
1540
+ c === void 0 && (c = !1), s === void 0 && (s = 1), a();
1541
+ const r = e.getBoundingClientRect(), {
1529
1542
  left: u,
1530
1543
  top: d,
1531
1544
  width: v,
1532
1545
  height: m
1533
- } = s;
1534
- if (r || n(), !v || !m)
1546
+ } = r;
1547
+ if (c || n(), !v || !m)
1535
1548
  return;
1536
- const p = He(d), _ = He(l.clientWidth - (u + v)), h = He(l.clientHeight - (d + m)), y = He(u), b = {
1537
- rootMargin: -p + "px " + -_ + "px " + -h + "px " + -y + "px",
1538
- threshold: J(0, $e(1, c)) || 1
1549
+ const p = He(d), w = He(l.clientWidth - (u + v)), h = He(l.clientHeight - (d + m)), y = He(u), b = {
1550
+ rootMargin: -p + "px " + -w + "px " + -h + "px " + -y + "px",
1551
+ threshold: J(0, $e(1, s)) || 1
1539
1552
  };
1540
1553
  let $ = !0;
1541
- function P(I) {
1554
+ function j(I) {
1542
1555
  const k = I[0].intersectionRatio;
1543
- if (k !== c) {
1556
+ if (k !== s) {
1544
1557
  if (!$)
1545
1558
  return i();
1546
1559
  k ? i(!1, k) : o = setTimeout(() => {
1547
1560
  i(!1, 1e-7);
1548
1561
  }, 1e3);
1549
1562
  }
1550
- k === 1 && !ln(s, e.getBoundingClientRect()) && i(), $ = !1;
1563
+ k === 1 && !sn(r, e.getBoundingClientRect()) && i(), $ = !1;
1551
1564
  }
1552
1565
  try {
1553
- t = new IntersectionObserver(P, {
1566
+ t = new IntersectionObserver(j, {
1554
1567
  ...b,
1555
1568
  // Handle <iframe>s
1556
1569
  root: l.ownerDocument
1557
1570
  });
1558
1571
  } catch {
1559
- t = new IntersectionObserver(P, b);
1572
+ t = new IntersectionObserver(j, b);
1560
1573
  }
1561
1574
  t.observe(e);
1562
1575
  }
@@ -1568,84 +1581,84 @@ function Qe(e, n, t, o) {
1568
1581
  ancestorScroll: l = !0,
1569
1582
  ancestorResize: a = !0,
1570
1583
  elementResize: i = typeof ResizeObserver == "function",
1571
- layoutShift: r = typeof IntersectionObserver == "function",
1572
- animationFrame: c = !1
1573
- } = o, s = ht(e), u = l || a ? [...s ? Be(s) : [], ...Be(n)] : [];
1584
+ layoutShift: c = typeof IntersectionObserver == "function",
1585
+ animationFrame: s = !1
1586
+ } = o, r = gt(e), u = l || a ? [...r ? De(r) : [], ...De(n)] : [];
1574
1587
  u.forEach((y) => {
1575
1588
  l && y.addEventListener("scroll", t, {
1576
1589
  passive: !0
1577
1590
  }), a && y.addEventListener("resize", t);
1578
1591
  });
1579
- const d = s && r ? cl(s, t) : null;
1592
+ const d = r && c ? ul(r, t) : null;
1580
1593
  let v = -1, m = null;
1581
1594
  i && (m = new ResizeObserver((y) => {
1582
- let [w] = y;
1583
- w && w.target === s && m && (m.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1595
+ let [_] = y;
1596
+ _ && _.target === r && m && (m.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1584
1597
  var b;
1585
1598
  (b = m) == null || b.observe(n);
1586
1599
  })), t();
1587
- }), s && !c && m.observe(s), m.observe(n));
1588
- let p, _ = c ? _e(e) : null;
1589
- c && h();
1600
+ }), r && !s && m.observe(r), m.observe(n));
1601
+ let p, w = s ? _e(e) : null;
1602
+ s && h();
1590
1603
  function h() {
1591
1604
  const y = _e(e);
1592
- _ && !ln(_, y) && t(), _ = y, p = requestAnimationFrame(h);
1605
+ w && !sn(w, y) && t(), w = y, p = requestAnimationFrame(h);
1593
1606
  }
1594
1607
  return t(), () => {
1595
1608
  var y;
1596
- u.forEach((w) => {
1597
- l && w.removeEventListener("scroll", t), a && w.removeEventListener("resize", t);
1598
- }), d?.(), (y = m) == null || y.disconnect(), m = null, c && cancelAnimationFrame(p);
1609
+ u.forEach((_) => {
1610
+ l && _.removeEventListener("scroll", t), a && _.removeEventListener("resize", t);
1611
+ }), d?.(), (y = m) == null || y.disconnect(), m = null, s && cancelAnimationFrame(p);
1599
1612
  };
1600
1613
  }
1601
- const Ze = Po, et = jo, tt = Oo, ul = Mo, an = (e, n, t) => {
1614
+ const Ze = Mo, et = Po, tt = Do, dl = Fo, rn = (e, n, t) => {
1602
1615
  const o = /* @__PURE__ */ new Map(), l = {
1603
- platform: rl,
1616
+ platform: cl,
1604
1617
  ...t
1605
1618
  }, a = {
1606
1619
  ...l.platform,
1607
1620
  _c: o
1608
1621
  };
1609
- return Ao(e, n, {
1622
+ return Oo(e, n, {
1610
1623
  ...l,
1611
1624
  platform: a
1612
1625
  });
1613
1626
  };
1614
- function dl(e) {
1627
+ function fl(e) {
1615
1628
  return e != null && typeof e == "object" && "$el" in e;
1616
1629
  }
1617
- function jt(e) {
1618
- if (dl(e)) {
1630
+ function Pt(e) {
1631
+ if (fl(e)) {
1619
1632
  const n = e.$el;
1620
- return vt(n) && xe(n) === "#comment" ? null : n;
1633
+ return mt(n) && xe(n) === "#comment" ? null : n;
1621
1634
  }
1622
1635
  return e;
1623
1636
  }
1624
1637
  function Ae(e) {
1625
1638
  return typeof e == "function" ? e() : S(e);
1626
1639
  }
1627
- function sn(e) {
1640
+ function cn(e) {
1628
1641
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1629
1642
  }
1630
- function Mt(e, n) {
1631
- const t = sn(e);
1643
+ function Ft(e, n) {
1644
+ const t = cn(e);
1632
1645
  return Math.round(n * t) / t;
1633
1646
  }
1634
- function gt(e, n, t) {
1647
+ function bt(e, n, t) {
1635
1648
  t === void 0 && (t = {});
1636
- const o = t.whileElementsMounted, l = E(() => {
1649
+ const o = t.whileElementsMounted, l = C(() => {
1637
1650
  var k;
1638
1651
  return (k = Ae(t.open)) != null ? k : !0;
1639
- }), a = E(() => Ae(t.middleware)), i = E(() => {
1652
+ }), a = C(() => Ae(t.middleware)), i = C(() => {
1640
1653
  var k;
1641
1654
  return (k = Ae(t.placement)) != null ? k : "bottom";
1642
- }), r = E(() => {
1655
+ }), c = C(() => {
1643
1656
  var k;
1644
1657
  return (k = Ae(t.strategy)) != null ? k : "absolute";
1645
- }), c = E(() => {
1658
+ }), s = C(() => {
1646
1659
  var k;
1647
1660
  return (k = Ae(t.transform)) != null ? k : !0;
1648
- }), s = E(() => jt(e.value)), u = E(() => jt(n.value)), d = C(0), v = C(0), m = C(r.value), p = C(i.value), _ = bn({}), h = C(!1), y = E(() => {
1661
+ }), r = C(() => Pt(e.value)), u = C(() => Pt(n.value)), d = E(0), v = E(0), m = E(c.value), p = E(i.value), w = wn({}), h = E(!1), y = C(() => {
1649
1662
  const k = {
1650
1663
  position: m.value,
1651
1664
  left: "0",
@@ -1653,11 +1666,11 @@ function gt(e, n, t) {
1653
1666
  };
1654
1667
  if (!u.value)
1655
1668
  return k;
1656
- const V = Mt(u.value, d.value), A = Mt(u.value, v.value);
1657
- return c.value ? {
1669
+ const V = Ft(u.value, d.value), A = Ft(u.value, v.value);
1670
+ return s.value ? {
1658
1671
  ...k,
1659
1672
  transform: "translate(" + V + "px, " + A + "px)",
1660
- ...sn(u.value) >= 1.5 && {
1673
+ ...cn(u.value) >= 1.5 && {
1661
1674
  willChange: "transform"
1662
1675
  }
1663
1676
  } : {
@@ -1666,70 +1679,70 @@ function gt(e, n, t) {
1666
1679
  top: A + "px"
1667
1680
  };
1668
1681
  });
1669
- let w;
1682
+ let _;
1670
1683
  function b() {
1671
- if (s.value == null || u.value == null)
1684
+ if (r.value == null || u.value == null)
1672
1685
  return;
1673
1686
  const k = l.value;
1674
- an(s.value, u.value, {
1687
+ rn(r.value, u.value, {
1675
1688
  middleware: a.value,
1676
1689
  placement: i.value,
1677
- strategy: r.value
1690
+ strategy: c.value
1678
1691
  }).then((V) => {
1679
- d.value = V.x, v.value = V.y, m.value = V.strategy, p.value = V.placement, _.value = V.middlewareData, h.value = k !== !1;
1692
+ d.value = V.x, v.value = V.y, m.value = V.strategy, p.value = V.placement, w.value = V.middlewareData, h.value = k !== !1;
1680
1693
  });
1681
1694
  }
1682
1695
  function $() {
1683
- typeof w == "function" && (w(), w = void 0);
1696
+ typeof _ == "function" && (_(), _ = void 0);
1684
1697
  }
1685
- function P() {
1698
+ function j() {
1686
1699
  if ($(), o === void 0) {
1687
1700
  b();
1688
1701
  return;
1689
1702
  }
1690
- if (s.value != null && u.value != null) {
1691
- w = o(s.value, u.value, b);
1703
+ if (r.value != null && u.value != null) {
1704
+ _ = o(r.value, u.value, b);
1692
1705
  return;
1693
1706
  }
1694
1707
  }
1695
1708
  function I() {
1696
1709
  l.value || (h.value = !1);
1697
1710
  }
1698
- return X([a, i, r, l], b, {
1711
+ return X([a, i, c, l], b, {
1699
1712
  flush: "sync"
1700
- }), X([s, u], P, {
1713
+ }), X([r, u], j, {
1701
1714
  flush: "sync"
1702
1715
  }), X(l, I, {
1703
1716
  flush: "sync"
1704
- }), yn() && wn($), {
1717
+ }), _n() && xn($), {
1705
1718
  x: Ve(d),
1706
1719
  y: Ve(v),
1707
1720
  strategy: Ve(m),
1708
1721
  placement: Ve(p),
1709
- middlewareData: Ve(_),
1722
+ middlewareData: Ve(w),
1710
1723
  isPositioned: Ve(h),
1711
1724
  floatingStyles: y,
1712
1725
  update: b
1713
1726
  };
1714
1727
  }
1715
- const fl = /* @__PURE__ */ T({
1728
+ const vl = /* @__PURE__ */ T({
1716
1729
  inheritAttrs: !1,
1717
1730
  __name: "dot-menu",
1718
1731
  props: {
1719
1732
  icon: {}
1720
1733
  },
1721
1734
  setup(e) {
1722
- const n = e, t = C(!1), o = C(null), l = C(null), a = E(() => n.icon ?? F.DOT_MENU), { floatingStyles: i } = gt(o, l, {
1735
+ const n = e, t = E(!1), o = E(null), l = E(null), a = C(() => n.icon ?? F.DOT_MENU), { floatingStyles: i } = bt(o, l, {
1723
1736
  placement: "bottom-end",
1724
1737
  middleware: [Ze(8), tt(), et({ padding: 8 })],
1725
1738
  whileElementsMounted: Qe
1726
- }), r = () => {
1739
+ }), c = () => {
1727
1740
  t.value = !t.value;
1728
- }, c = () => {
1741
+ }, s = () => {
1729
1742
  t.value = !1;
1730
- }, s = (u) => {
1743
+ }, r = (u) => {
1731
1744
  const d = u.target;
1732
- d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && c();
1745
+ d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && s();
1733
1746
  };
1734
1747
  return (u, d) => {
1735
1748
  const v = K("VjButton"), m = K("VjMenu");
@@ -1743,21 +1756,21 @@ const fl = /* @__PURE__ */ T({
1743
1756
  class: "dot-menu",
1744
1757
  tertiary: "",
1745
1758
  icon: a.value,
1746
- onClick: r
1759
+ onClick: c
1747
1760
  }, null, 8, ["icon"]),
1748
1761
  O(Oe, { name: "menu" }, {
1749
1762
  default: W(() => [
1750
- t.value ? (f(), M(m, {
1763
+ t.value ? (f(), P(m, {
1751
1764
  key: 0,
1752
1765
  ref_key: "floatingRef",
1753
1766
  ref: l,
1754
1767
  style: G(S(i)),
1755
1768
  class: "menu-dropdown",
1756
- onClose: c,
1757
- onClickCapture: s
1769
+ onClose: s,
1770
+ onClickCapture: r
1758
1771
  }, {
1759
1772
  default: W(() => [
1760
- j(u.$slots, "default", {}, void 0, !0)
1773
+ M(u.$slots, "default", {}, void 0, !0)
1761
1774
  ]),
1762
1775
  _: 3
1763
1776
  }, 8, ["style"])) : L("", !0)
@@ -1765,17 +1778,17 @@ const fl = /* @__PURE__ */ T({
1765
1778
  _: 3
1766
1779
  })
1767
1780
  ], 2),
1768
- (f(), M(Pe, { to: "body" }, [
1781
+ (f(), P(je, { to: "body" }, [
1769
1782
  t.value ? (f(), g("div", {
1770
1783
  key: 0,
1771
1784
  class: "menu-backdrop",
1772
- onClick: c
1785
+ onClick: s
1773
1786
  })) : L("", !0)
1774
1787
  ]))
1775
1788
  ], 64);
1776
1789
  };
1777
1790
  }
1778
- }), vl = /* @__PURE__ */ B(fl, [["__scopeId", "data-v-3c400bfd"]]), ml = /* @__PURE__ */ T({
1791
+ }), ml = /* @__PURE__ */ D(vl, [["__scopeId", "data-v-3c400bfd"]]), pl = /* @__PURE__ */ T({
1779
1792
  __name: "link-button",
1780
1793
  props: {
1781
1794
  label: {},
@@ -1787,27 +1800,27 @@ const fl = /* @__PURE__ */ T({
1787
1800
  disabled: { type: Boolean }
1788
1801
  },
1789
1802
  setup(e) {
1790
- const n = e, t = q.S, o = E(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
1803
+ const n = e, t = q.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
1791
1804
  return (l, a) => {
1792
1805
  const i = K("router-link");
1793
- return f(), M(i, {
1806
+ return f(), P(i, {
1794
1807
  to: e.to,
1795
1808
  class: z(["button", o.value]),
1796
1809
  disabled: e.disabled
1797
1810
  }, {
1798
1811
  default: W(() => [
1799
- e.icon ? (f(), M(be, {
1812
+ e.icon ? (f(), P(be, {
1800
1813
  key: 0,
1801
1814
  icon: e.icon,
1802
1815
  size: S(t)
1803
1816
  }, null, 8, ["icon", "size"])) : L("", !0),
1804
- Ue(" " + D(e.label), 1)
1817
+ Ue(" " + B(e.label), 1)
1805
1818
  ]),
1806
1819
  _: 1
1807
1820
  }, 8, ["to", "class", "disabled"]);
1808
1821
  };
1809
1822
  }
1810
- }), pl = /* @__PURE__ */ B(ml, [["__scopeId", "data-v-bd3cf2f5"]]), hl = ["disabled"], gl = { class: "menu-action--icon" }, bl = /* @__PURE__ */ T({
1823
+ }), hl = /* @__PURE__ */ D(pl, [["__scopeId", "data-v-bd3cf2f5"]]), gl = ["disabled"], bl = { class: "menu-action--icon" }, yl = /* @__PURE__ */ T({
1811
1824
  __name: "menu-action",
1812
1825
  props: {
1813
1826
  label: {},
@@ -1820,30 +1833,30 @@ const fl = /* @__PURE__ */ T({
1820
1833
  class: "menu-action button tertiary",
1821
1834
  disabled: e.disabled
1822
1835
  }, [
1823
- x("span", gl, [
1824
- e.icon ? (f(), M(be, {
1836
+ x("span", bl, [
1837
+ e.icon ? (f(), P(be, {
1825
1838
  key: 0,
1826
1839
  icon: e.icon,
1827
1840
  size: S(n)
1828
1841
  }, null, 8, ["icon", "size"])) : L("", !0)
1829
1842
  ]),
1830
- x("span", null, D(e.label), 1)
1831
- ], 8, hl));
1843
+ x("span", null, B(e.label), 1)
1844
+ ], 8, gl));
1832
1845
  }
1833
- }), yl = /* @__PURE__ */ B(bl, [["__scopeId", "data-v-07850995"]]), wl = {}, _l = { class: "menu" };
1834
- function xl(e, n) {
1835
- return f(), g("div", _l, [
1836
- j(e.$slots, "default", {}, void 0, !0)
1846
+ }), wl = /* @__PURE__ */ D(yl, [["__scopeId", "data-v-07850995"]]), _l = {}, xl = { class: "menu" };
1847
+ function kl(e, n) {
1848
+ return f(), g("div", xl, [
1849
+ M(e.$slots, "default", {}, void 0, !0)
1837
1850
  ]);
1838
1851
  }
1839
- const kl = /* @__PURE__ */ B(wl, [["render", xl], ["__scopeId", "data-v-259fec08"]]), Vl = {
1852
+ const Vl = /* @__PURE__ */ D(_l, [["render", kl], ["__scopeId", "data-v-259fec08"]]), Cl = {
1840
1853
  mounted(e) {
1841
1854
  e.classList.add("compact");
1842
1855
  },
1843
1856
  unmounted(e) {
1844
1857
  e.classList.remove("compact");
1845
1858
  }
1846
- }, rn = [
1859
+ }, un = [
1847
1860
  'input:not([disabled]):not([type="hidden"])',
1848
1861
  "select:not([disabled])",
1849
1862
  "textarea:not([disabled])",
@@ -1853,16 +1866,16 @@ const kl = /* @__PURE__ */ B(wl, [["render", xl], ["__scopeId", "data-v-259fec08
1853
1866
  '[contenteditable="true"]'
1854
1867
  ].join(", ");
1855
1868
  function El(e) {
1856
- const n = e.querySelectorAll(rn);
1869
+ const n = e.querySelectorAll(un);
1857
1870
  for (const t of Array.from(n))
1858
1871
  if (t.offsetParent !== null || t.getClientRects().length > 0)
1859
1872
  return t;
1860
1873
  return null;
1861
1874
  }
1862
- const Cl = {
1875
+ const Ll = {
1863
1876
  mounted(e, n) {
1864
1877
  const t = typeof n.value == "number" ? n.value : 0, o = () => {
1865
- if (e.matches(rn)) {
1878
+ if (e.matches(un)) {
1866
1879
  e.focus();
1867
1880
  return;
1868
1881
  }
@@ -1872,7 +1885,7 @@ const Cl = {
1872
1885
  t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
1873
1886
  }
1874
1887
  };
1875
- class bt {
1888
+ class yt {
1876
1889
  static _instance = null;
1877
1890
  observer = null;
1878
1891
  targets = /* @__PURE__ */ new Map();
@@ -1880,7 +1893,7 @@ class bt {
1880
1893
  this.init();
1881
1894
  }
1882
1895
  static get instance() {
1883
- return this._instance || (this._instance = new bt()), this._instance;
1896
+ return this._instance || (this._instance = new yt()), this._instance;
1884
1897
  }
1885
1898
  init() {
1886
1899
  typeof window < "u" && "ResizeObserver" in window ? this.observer = new ResizeObserver((n) => {
@@ -1903,15 +1916,15 @@ class bt {
1903
1916
  for (const i of t.callbacks)
1904
1917
  try {
1905
1918
  i(o, l, a);
1906
- } catch (r) {
1907
- console.error("resize callback error", r);
1919
+ } catch (c) {
1920
+ console.error("resize callback error", c);
1908
1921
  }
1909
1922
  if (t.breakpoints) {
1910
- const i = Object.keys(t.breakpoints).map((c) => Number(c)).filter((c) => !Number.isNaN(c)).sort((c, s) => c - s);
1911
- let r;
1912
- for (const c of i)
1913
- o >= c && (r = t.breakpoints[c]);
1914
- r !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), r && n.target.classList.add(r), t.currentClass = r);
1923
+ const i = Object.keys(t.breakpoints).map((s) => Number(s)).filter((s) => !Number.isNaN(s)).sort((s, r) => s - r);
1924
+ let c;
1925
+ for (const s of i)
1926
+ o >= s && (c = t.breakpoints[s]);
1927
+ c !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), c && n.target.classList.add(c), t.currentClass = c);
1915
1928
  }
1916
1929
  }
1917
1930
  observe(n, t, o) {
@@ -1925,8 +1938,8 @@ class bt {
1925
1938
  if (o?.immediate) {
1926
1939
  const a = n.getBoundingClientRect(), i = { target: n, contentRect: a };
1927
1940
  if (this.handleEntry(i), t) {
1928
- const r = a.width, c = a.height;
1929
- t(r, c, n);
1941
+ const c = a.width, s = a.height;
1942
+ t(c, s, n);
1930
1943
  }
1931
1944
  }
1932
1945
  }
@@ -1935,37 +1948,37 @@ class bt {
1935
1948
  o && (t && o.callbacks.delete(t), (!t || o.callbacks.size === 0) && (this.targets.delete(n), this.observer && this.observer.unobserve(n), o.currentClass && n.classList && n.classList.remove(o.currentClass)));
1936
1949
  }
1937
1950
  }
1938
- const Ee = bt.instance, Ll = {
1951
+ const Ce = yt.instance, $l = {
1939
1952
  mounted(e, n) {
1940
1953
  const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, a = typeof t == "object" && !!t?.immediate, i = e;
1941
- i.__resize_cb = o, i.__resize_breakpoints = l, o && Ee.observe(e, o, { breakpoints: l, immediate: a });
1954
+ i.__resize_cb = o, i.__resize_breakpoints = l, o && Ce.observe(e, o, { breakpoints: l, immediate: a });
1942
1955
  },
1943
1956
  updated(e, n) {
1944
- const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, a = n.value, i = typeof a == "function" ? a : a?.onResize, r = typeof a == "object" && a?.breakpoints ? a.breakpoints : void 0;
1957
+ const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, a = n.value, i = typeof a == "function" ? a : a?.onResize, c = typeof a == "object" && a?.breakpoints ? a.breakpoints : void 0;
1945
1958
  if (o !== i) {
1946
- o && Ee.unobserve(e, o), i && Ee.observe(e, i, { breakpoints: r, immediate: !!(a && typeof a == "object" && a.immediate) }), t.__resize_cb = i, t.__resize_breakpoints = r;
1959
+ o && Ce.unobserve(e, o), i && Ce.observe(e, i, { breakpoints: c, immediate: !!(a && typeof a == "object" && a.immediate) }), t.__resize_cb = i, t.__resize_breakpoints = c;
1947
1960
  return;
1948
1961
  }
1949
- JSON.stringify(l || {}) !== JSON.stringify(r || {}) && (o && Ee.unobserve(e, o), i && Ee.observe(e, i, { breakpoints: r, immediate: !0 }), t.__resize_breakpoints = r);
1962
+ JSON.stringify(l || {}) !== JSON.stringify(c || {}) && (o && Ce.unobserve(e, o), i && Ce.observe(e, i, { breakpoints: c, immediate: !0 }), t.__resize_breakpoints = c);
1950
1963
  },
1951
1964
  unmounted(e) {
1952
1965
  const n = e, t = n.__resize_cb;
1953
- t && Ee.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
1966
+ t && Ce.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
1954
1967
  }
1955
- }, $l = {}, Sl = { class: "spinner" };
1956
- function Rl(e, n) {
1957
- return f(), g("div", Sl);
1968
+ }, Sl = {}, Rl = { class: "spinner" };
1969
+ function Tl(e, n) {
1970
+ return f(), g("div", Rl);
1958
1971
  }
1959
- const cn = /* @__PURE__ */ B($l, [["render", Rl], ["__scopeId", "data-v-b957fb82"]]), Tl = 200, Al = 120;
1960
- function Ft(e, n) {
1972
+ const dn = /* @__PURE__ */ D(Sl, [["render", Tl], ["__scopeId", "data-v-b957fb82"]]), Al = 200, Ol = 120;
1973
+ function zt(e, n) {
1961
1974
  const t = n.querySelector(".vj-loading-inner");
1962
1975
  if (!t) return;
1963
1976
  const o = e.clientHeight || e.getBoundingClientRect().height;
1964
1977
  t.classList.remove("vj-loading-inner--small", "vj-loading-inner--minimal");
1965
1978
  const l = t.querySelector(".vj-loading-text");
1966
- l && l.classList.remove("vj-loading-text--hidden"), o <= Al ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= Tl && t.classList.add("vj-loading-inner--small");
1979
+ l && l.classList.remove("vj-loading-text--hidden"), o <= Ol ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= Al && t.classList.add("vj-loading-inner--small");
1967
1980
  }
1968
- const Ol = {
1981
+ const Dl = {
1969
1982
  mounted(e, n) {
1970
1983
  let t, o;
1971
1984
  if (typeof n.value == "object" && n.value !== null) {
@@ -1977,12 +1990,12 @@ const Ol = {
1977
1990
  (l.position === "static" || !l.position) && (a.originalPosition = e.style.position, e.style.position = "relative");
1978
1991
  const i = a.overlay;
1979
1992
  i.className = "vj-loading-overlay", t || i.classList.add("vj-loading-overlay--hidden");
1980
- const r = document.createElement("div"), c = document.createElement("div");
1981
- c.className = "vj-loading-inner", c.appendChild(r);
1982
- let s;
1983
- o && (s = document.createElement("div"), s.className = "vj-loading-text", s.textContent = o, c.appendChild(s)), i.appendChild(c), Ft(e, i);
1984
- const u = O(cn);
1985
- $t(u, r), a.spinnerVnode = u, a.spinnerContainer = r, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(i);
1993
+ const c = document.createElement("div"), s = document.createElement("div");
1994
+ s.className = "vj-loading-inner", s.appendChild(c);
1995
+ let r;
1996
+ o && (r = document.createElement("div"), r.className = "vj-loading-text", r.textContent = o, s.appendChild(r)), i.appendChild(s), zt(e, i);
1997
+ const u = O(dn);
1998
+ St(u, c), a.spinnerVnode = u, a.spinnerContainer = c, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(i);
1986
1999
  const d = e;
1987
2000
  d.__vjLoading = a;
1988
2001
  },
@@ -1992,29 +2005,29 @@ const Ol = {
1992
2005
  const { overlay: l } = o;
1993
2006
  let a, i;
1994
2007
  if (typeof n.value == "object" && n.value !== null) {
1995
- const c = n.value;
1996
- a = !!(c.active ?? !0), i = c.text;
2008
+ const s = n.value;
2009
+ a = !!(s.active ?? !0), i = s.text;
1997
2010
  } else
1998
2011
  a = !!n.value, i = void 0;
1999
2012
  a ? (l.classList.remove("vj-loading-overlay--hidden"), e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none") : (l.classList.add("vj-loading-overlay--hidden"), e.removeAttribute("aria-busy"), e.style.pointerEvents = "");
2000
- const r = l.querySelector(".vj-loading-inner");
2001
- if (r) {
2002
- const c = r.querySelector(".vj-loading-text");
2003
- if (c)
2004
- i ? c.textContent = i : c.remove();
2013
+ const c = l.querySelector(".vj-loading-inner");
2014
+ if (c) {
2015
+ const s = c.querySelector(".vj-loading-text");
2016
+ if (s)
2017
+ i ? s.textContent = i : s.remove();
2005
2018
  else if (i) {
2006
- const s = document.createElement("div");
2007
- s.className = "vj-loading-text", s.textContent = i, r.appendChild(s);
2019
+ const r = document.createElement("div");
2020
+ r.className = "vj-loading-text", r.textContent = i, c.appendChild(r);
2008
2021
  }
2009
2022
  }
2010
- Ft(e, l);
2023
+ zt(e, l);
2011
2024
  },
2012
2025
  unmounted(e) {
2013
2026
  const n = e, t = n.__vjLoading;
2014
2027
  if (!t) return;
2015
2028
  const { overlay: o, originalPosition: l } = t;
2016
2029
  try {
2017
- t.spinnerContainer && $t(null, t.spinnerContainer);
2030
+ t.spinnerContainer && St(null, t.spinnerContainer);
2018
2031
  } catch {
2019
2032
  }
2020
2033
  o && o.parentElement === e && e.removeChild(o), l !== void 0 && (e.style.position = l), n.__vjLoading = void 0;
@@ -2023,30 +2036,30 @@ const Ol = {
2023
2036
  const n = document.createElement("div");
2024
2037
  return n.className = "vj-tooltip", n.setAttribute("role", "tooltip"), n.style.position = "absolute", n.style.top = "0", n.style.left = "0", n.style.pointerEvents = "none", n.style.zIndex = "10000", n.textContent = e, n;
2025
2038
  };
2026
- function zt(e) {
2039
+ function It(e) {
2027
2040
  if (!e) return { content: "", placement: "top", delay: 200 };
2028
2041
  if (typeof e.value == "string") return { content: e.value, placement: "top", delay: 200 };
2029
2042
  const t = e.value || {}, o = t.placement ?? "top";
2030
2043
  return { content: t.content ?? "", placement: o, delay: t.delay ?? 200 };
2031
2044
  }
2032
- const un = {
2045
+ const fn = {
2033
2046
  mounted(e, n) {
2034
- const t = zt(n), o = Bl(t.content);
2047
+ const t = It(n), o = Bl(t.content);
2035
2048
  document.body.appendChild(o);
2036
2049
  const l = { tooltip: o, cleanup: void 0, showTimer: null, hideTimer: null }, a = async () => {
2037
- const m = await an(e, o, {
2050
+ const m = await rn(e, o, {
2038
2051
  placement: t.placement,
2039
2052
  middleware: [Ze(6), tt(), et({ padding: 8 })]
2040
- }), { x: p, y: _ } = m;
2053
+ }), { x: p, y: w } = m;
2041
2054
  Object.assign(o.style, {
2042
2055
  left: `${p}px`,
2043
- top: `${_}px`
2056
+ top: `${w}px`
2044
2057
  });
2045
2058
  }, i = () => {
2046
2059
  l.hideTimer && window.clearTimeout(l.hideTimer), l.showTimer = window.setTimeout(() => {
2047
2060
  o.classList.add("vj-tooltip--visible"), a(), l.cleanup = Qe(e, o, a);
2048
2061
  }, t.delay);
2049
- }, r = () => {
2062
+ }, c = () => {
2050
2063
  l.showTimer && window.clearTimeout(l.showTimer), l.hideTimer = window.setTimeout(() => {
2051
2064
  if (o.classList.remove("vj-tooltip--visible"), l.cleanup) {
2052
2065
  try {
@@ -2056,21 +2069,21 @@ const un = {
2056
2069
  l.cleanup = void 0;
2057
2070
  }
2058
2071
  }, 50);
2059
- }, c = (m) => {
2060
- i();
2061
2072
  }, s = (m) => {
2062
- r();
2063
- }, u = () => i(), d = () => r(), v = (m) => {
2073
+ i();
2074
+ }, r = (m) => {
2075
+ c();
2076
+ }, u = () => i(), d = () => c(), v = (m) => {
2064
2077
  m.pointerType === "touch" && (i(), l.docHandler = (p) => {
2065
- !o.contains(p.target) && !e.contains(p.target) && (r(), document.removeEventListener("pointerdown", l.docHandler), l.docHandler = void 0);
2078
+ !o.contains(p.target) && !e.contains(p.target) && (c(), document.removeEventListener("pointerdown", l.docHandler), l.docHandler = void 0);
2066
2079
  }, document.addEventListener("pointerdown", l.docHandler));
2067
2080
  };
2068
- e.addEventListener("pointerenter", c), e.addEventListener("pointerleave", s), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown", v), l.onPointerEnter = c, l.onPointerLeave = s, l.onFocus = u, l.onBlur = d, l.onPointerDown = v, e.__vjTooltip = l;
2081
+ e.addEventListener("pointerenter", s), e.addEventListener("pointerleave", r), e.addEventListener("focus", u), e.addEventListener("blur", d), e.addEventListener("pointerdown", v), l.onPointerEnter = s, l.onPointerLeave = r, l.onFocus = u, l.onBlur = d, l.onPointerDown = v, e.__vjTooltip = l;
2069
2082
  },
2070
2083
  updated(e, n) {
2071
2084
  const t = e.__vjTooltip;
2072
2085
  if (!t) return;
2073
- const o = zt(n);
2086
+ const o = It(n);
2074
2087
  t.tooltip.textContent = o.content;
2075
2088
  },
2076
2089
  unmounted(e) {
@@ -2083,7 +2096,7 @@ const un = {
2083
2096
  n.tooltip && n.tooltip.parentElement && n.tooltip.parentElement.removeChild(n.tooltip), n.onPointerEnter && e.removeEventListener("pointerenter", n.onPointerEnter), n.onPointerLeave && e.removeEventListener("pointerleave", n.onPointerLeave), n.onFocus && e.removeEventListener("focus", n.onFocus), n.onBlur && e.removeEventListener("blur", n.onBlur), n.onPointerDown && e.removeEventListener("pointerdown", n.onPointerDown), n.docHandler && document.removeEventListener("pointerdown", n.docHandler), e.__vjTooltip = void 0;
2084
2097
  }
2085
2098
  }
2086
- }, Dl = { class: "notification__icon" }, Pl = { class: "notification__message" }, jl = { class: "notification__title" }, Ml = { class: "notification__text" }, Fl = /* @__PURE__ */ T({
2099
+ }, jl = { class: "notification__icon" }, Ml = { class: "notification__message" }, Pl = { class: "notification__title" }, Fl = { class: "notification__text" }, zl = /* @__PURE__ */ T({
2087
2100
  __name: "notification",
2088
2101
  props: {
2089
2102
  type: {},
@@ -2092,7 +2105,7 @@ const un = {
2092
2105
  },
2093
2106
  emits: ["close"],
2094
2107
  setup(e, { emit: n }) {
2095
- const t = e, o = n, l = E(() => {
2108
+ const t = e, o = n, l = C(() => {
2096
2109
  switch (t.type) {
2097
2110
  case "success":
2098
2111
  return F.CHECK;
@@ -2106,18 +2119,18 @@ const un = {
2106
2119
  }), a = () => {
2107
2120
  o("close");
2108
2121
  };
2109
- return (i, r) => (f(), g("div", {
2122
+ return (i, c) => (f(), g("div", {
2110
2123
  class: z(["notification", `notification--${e.type}`]),
2111
2124
  onClick: a
2112
2125
  }, [
2113
- x("div", Dl, [
2126
+ x("div", jl, [
2114
2127
  O(be, { icon: l.value }, null, 8, ["icon"])
2115
2128
  ]),
2116
- x("div", Pl, [
2117
- x("div", jl, D(e.title), 1),
2118
- x("div", Ml, D(e.message), 1)
2129
+ x("div", Ml, [
2130
+ x("div", Pl, B(e.title), 1),
2131
+ x("div", Fl, B(e.message), 1)
2119
2132
  ]),
2120
- O(ut, {
2133
+ O(dt, {
2121
2134
  class: "notification__close compact",
2122
2135
  icon: S(F).CLOSE,
2123
2136
  onClick: N(a, ["stop"]),
@@ -2125,17 +2138,17 @@ const un = {
2125
2138
  }, null, 8, ["icon"])
2126
2139
  ], 2));
2127
2140
  }
2128
- }), yt = /* @__PURE__ */ B(Fl, [["__scopeId", "data-v-ca4451c0"]]), zl = { class: "page" }, Il = { class: "header-left" }, Hl = { class: "header-titles" }, Ul = { key: 0 }, Wl = { class: "header-actions" }, Nl = {
2141
+ }), wt = /* @__PURE__ */ D(zl, [["__scopeId", "data-v-ca4451c0"]]), Il = { class: "page" }, Hl = { class: "header-left" }, Ul = { class: "header-titles" }, Wl = { key: 0 }, Nl = { class: "header-actions" }, Kl = {
2129
2142
  key: 0,
2130
2143
  class: "page-error"
2131
- }, Kl = {
2144
+ }, Xl = {
2132
2145
  key: 1,
2133
2146
  class: "contents"
2134
- }, Xl = {
2147
+ }, Gl = {
2135
2148
  key: 2,
2136
2149
  class: "actions"
2137
- }, Gl = { key: 3 }, ql = { key: 0 }, Yl = /* @__PURE__ */ T({
2138
- directives: { loading: Ol },
2150
+ }, ql = { key: 3 }, Yl = { key: 0 }, Jl = /* @__PURE__ */ T({
2151
+ directives: { loading: Dl },
2139
2152
  __name: "page",
2140
2153
  props: {
2141
2154
  title: {},
@@ -2148,62 +2161,62 @@ const un = {
2148
2161
  },
2149
2162
  emits: ["back"],
2150
2163
  setup(e, { emit: n }) {
2151
- const t = e, o = E(() => t.flow?.running?.value ?? !1), l = E(() => t.flow?.error?.value ?? null), a = E(() => t.errorMessage ?? (l.value ? String(l.value) : null));
2152
- return (i, r) => {
2153
- const c = K("VjButton"), s = Nt("loading");
2154
- return ct((f(), g("div", zl, [
2164
+ const t = e, o = C(() => t.flow?.running?.value ?? !1), l = C(() => t.flow?.error?.value ?? null), a = C(() => t.errorMessage ?? (l.value ? String(l.value) : null));
2165
+ return (i, c) => {
2166
+ const s = K("VjButton"), r = Xt("loading");
2167
+ return ct((f(), g("div", Il, [
2155
2168
  x("header", null, [
2156
- x("div", Il, [
2157
- e.backLabel ? (f(), M(c, {
2169
+ x("div", Hl, [
2170
+ e.backLabel ? (f(), P(s, {
2158
2171
  key: 0,
2159
2172
  tertiary: "",
2160
2173
  icon: S(F).BACK,
2161
- onClick: r[0] || (r[0] = (u) => i.$emit("back")),
2174
+ onClick: c[0] || (c[0] = (u) => i.$emit("back")),
2162
2175
  size: "small"
2163
2176
  }, null, 8, ["icon"])) : L("", !0),
2164
- x("div", Hl, [
2165
- x("h1", null, D(e.title), 1),
2166
- e.subTitle ? (f(), g("h2", Ul, D(e.subTitle), 1)) : L("", !0)
2177
+ x("div", Ul, [
2178
+ x("h1", null, B(e.title), 1),
2179
+ e.subTitle ? (f(), g("h2", Wl, B(e.subTitle), 1)) : L("", !0)
2167
2180
  ])
2168
2181
  ]),
2169
- x("div", Wl, [
2170
- j(i.$slots, "headerActions", {}, void 0, !0)
2182
+ x("div", Nl, [
2183
+ M(i.$slots, "headerActions", {}, void 0, !0)
2171
2184
  ])
2172
2185
  ]),
2173
2186
  x("main", {
2174
2187
  class: z({ scrollable: e.scrollable })
2175
2188
  }, [
2176
- a.value ? (f(), g("div", Nl, [
2177
- j(i.$slots, "error", {}, () => [
2178
- O(yt, {
2189
+ a.value ? (f(), g("div", Kl, [
2190
+ M(i.$slots, "error", {}, () => [
2191
+ O(wt, {
2179
2192
  type: "error",
2180
2193
  title: a.value,
2181
2194
  message: a.value
2182
2195
  }, null, 8, ["title", "message"])
2183
2196
  ], !0)
2184
2197
  ])) : L("", !0),
2185
- a.value ? L("", !0) : (f(), g("div", Kl, [
2186
- j(i.$slots, "default", {}, void 0, !0)
2187
- ])),
2188
2198
  a.value ? L("", !0) : (f(), g("div", Xl, [
2189
- j(i.$slots, "actions", {}, void 0, !0)
2199
+ M(i.$slots, "default", {}, void 0, !0)
2190
2200
  ])),
2191
- i.$slots.flexFooter ? (f(), g("footer", Gl, [
2192
- j(i.$slots, "flexFooter", {}, void 0, !0)
2201
+ a.value ? L("", !0) : (f(), g("div", Gl, [
2202
+ M(i.$slots, "actions", {}, void 0, !0)
2203
+ ])),
2204
+ i.$slots.flexFooter ? (f(), g("footer", ql, [
2205
+ M(i.$slots, "flexFooter", {}, void 0, !0)
2193
2206
  ])) : L("", !0)
2194
2207
  ], 2),
2195
- i.$slots.footer ? (f(), g("footer", ql, [
2196
- j(i.$slots, "footer", {}, void 0, !0)
2208
+ i.$slots.footer ? (f(), g("footer", Yl, [
2209
+ M(i.$slots, "footer", {}, void 0, !0)
2197
2210
  ])) : L("", !0)
2198
2211
  ])), [
2199
- [s, { active: o.value, text: t.loadingMessage }]
2212
+ [r, { active: o.value, text: t.loadingMessage }]
2200
2213
  ]);
2201
2214
  };
2202
2215
  }
2203
- }), Jl = /* @__PURE__ */ B(Yl, [["__scopeId", "data-v-3e724555"]]), Ql = {
2216
+ }), Ql = /* @__PURE__ */ D(Jl, [["__scopeId", "data-v-3e724555"]]), Zl = {
2204
2217
  class: "paginator-info",
2205
2218
  "aria-live": "polite"
2206
- }, Zl = /* @__PURE__ */ T({
2219
+ }, ea = /* @__PURE__ */ T({
2207
2220
  __name: "paginator",
2208
2221
  props: /* @__PURE__ */ ee({
2209
2222
  totalItems: {},
@@ -2215,25 +2228,25 @@ const un = {
2215
2228
  }),
2216
2229
  emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
2217
2230
  setup(e, { emit: n }) {
2218
- const t = e, o = ve(e, "modelValue"), l = n, a = E(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), i = E(() => Math.min(Math.max(1, o.value ?? 1), a.value)), r = E(() => i.value), c = E(() => i.value <= 1), s = E(() => i.value >= a.value), u = E(() => t.labels?.item ?? "Eintrag"), d = E(() => t.labels?.of ?? "von"), v = (y) => {
2219
- const w = Math.min(Math.max(1, Math.floor(y)), a.value);
2220
- w !== o.value && (o.value = w, l("change", w));
2221
- }, m = () => v(1), p = () => v(i.value - 1), _ = () => v(i.value + 1), h = () => v(a.value);
2231
+ const t = e, o = ve(e, "modelValue"), l = n, a = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), i = C(() => Math.min(Math.max(1, o.value ?? 1), a.value)), c = C(() => i.value), s = C(() => i.value <= 1), r = C(() => i.value >= a.value), u = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), v = (y) => {
2232
+ const _ = Math.min(Math.max(1, Math.floor(y)), a.value);
2233
+ _ !== o.value && (o.value = _, l("change", _));
2234
+ }, m = () => v(1), p = () => v(i.value - 1), w = () => v(i.value + 1), h = () => v(a.value);
2222
2235
  return X([() => t.totalItems, () => t.pageSize], () => {
2223
2236
  o.value > a.value && v(a.value);
2224
- }), (y, w) => {
2237
+ }), (y, _) => {
2225
2238
  const b = K("VjButton");
2226
2239
  return f(), g("nav", {
2227
2240
  class: "paginator",
2228
2241
  "aria-label": "Pagination",
2229
- onKeydown: w[0] || (w[0] = lt(N(() => {
2242
+ onKeydown: _[0] || (_[0] = lt(N(() => {
2230
2243
  }, ["prevent"]), ["enter"]))
2231
2244
  }, [
2232
2245
  O(b, {
2233
2246
  tertiary: "",
2234
2247
  class: "paginator-btn",
2235
2248
  icon: S(F).FIRST,
2236
- disabled: c.value,
2249
+ disabled: s.value,
2237
2250
  onClick: m,
2238
2251
  "aria-label": "First page"
2239
2252
  }, null, 8, ["icon", "disabled"]),
@@ -2241,37 +2254,37 @@ const un = {
2241
2254
  tertiary: "",
2242
2255
  class: "paginator-btn",
2243
2256
  icon: S(F).PREVIOUS,
2244
- disabled: c.value,
2257
+ disabled: s.value,
2245
2258
  onClick: p,
2246
2259
  "aria-label": "Previous page"
2247
2260
  }, null, 8, ["icon", "disabled"]),
2248
- j(y.$slots, "info", {
2261
+ M(y.$slots, "info", {
2249
2262
  current: i.value,
2250
2263
  totalPages: a.value,
2251
2264
  goTo: v
2252
2265
  }, () => [
2253
- x("div", Ql, D(u.value) + " " + D(r.value) + " " + D(d.value) + " " + D(a.value), 1)
2266
+ x("div", Zl, B(u.value) + " " + B(c.value) + " " + B(d.value) + " " + B(a.value), 1)
2254
2267
  ], !0),
2255
2268
  O(b, {
2256
2269
  tertiary: "",
2257
2270
  class: "paginator-btn",
2258
2271
  icon: S(F).NEXT,
2259
- disabled: s.value,
2260
- onClick: _,
2272
+ disabled: r.value,
2273
+ onClick: w,
2261
2274
  "aria-label": "Next page"
2262
2275
  }, null, 8, ["icon", "disabled"]),
2263
2276
  O(b, {
2264
2277
  tertiary: "",
2265
2278
  class: "paginator-btn",
2266
2279
  icon: S(F).LAST,
2267
- disabled: s.value,
2280
+ disabled: r.value,
2268
2281
  onClick: h,
2269
2282
  "aria-label": "Last page"
2270
2283
  }, null, 8, ["icon", "disabled"])
2271
2284
  ], 32);
2272
2285
  };
2273
2286
  }
2274
- }), ea = /* @__PURE__ */ B(Zl, [["__scopeId", "data-v-b6fa8efe"]]), ta = { class: "search-field" }, na = ["value", "placeholder"], oa = /* @__PURE__ */ T({
2287
+ }), ta = /* @__PURE__ */ D(ea, [["__scopeId", "data-v-b6fa8efe"]]), na = { class: "search-field" }, oa = ["value", "placeholder"], la = /* @__PURE__ */ T({
2275
2288
  __name: "search-field",
2276
2289
  props: /* @__PURE__ */ ee({
2277
2290
  placeholder: { default: "Search..." }
@@ -2285,11 +2298,11 @@ const un = {
2285
2298
  n.value = a.target.value;
2286
2299
  }, o = () => {
2287
2300
  n.value = "";
2288
- }, l = E(() => !n.value);
2301
+ }, l = C(() => !n.value);
2289
2302
  return (a, i) => {
2290
- const r = K("VjIcon");
2291
- return f(), g("div", ta, [
2292
- O(r, {
2303
+ const c = K("VjIcon");
2304
+ return f(), g("div", na, [
2305
+ O(c, {
2293
2306
  icon: S(F).SEARCH,
2294
2307
  size: S(q).S
2295
2308
  }, null, 8, ["icon", "size"]),
@@ -2298,8 +2311,8 @@ const un = {
2298
2311
  onInput: t,
2299
2312
  type: "text",
2300
2313
  placeholder: e.placeholder
2301
- }, null, 40, na),
2302
- O(r, {
2314
+ }, null, 40, oa),
2315
+ O(c, {
2303
2316
  class: z(["reset", { invisible: l.value }]),
2304
2317
  icon: S(F).CLOSE,
2305
2318
  size: S(q).S,
@@ -2308,7 +2321,7 @@ const un = {
2308
2321
  ]);
2309
2322
  };
2310
2323
  }
2311
- }), la = /* @__PURE__ */ B(oa, [["__scopeId", "data-v-2771c8ed"]]), aa = /* @__PURE__ */ T({
2324
+ }), aa = /* @__PURE__ */ D(la, [["__scopeId", "data-v-2771c8ed"]]), ia = /* @__PURE__ */ T({
2312
2325
  __name: "separator",
2313
2326
  props: {
2314
2327
  vertical: { type: Boolean }
@@ -2318,10 +2331,10 @@ const un = {
2318
2331
  class: z(["separator", { vertical: e.vertical }])
2319
2332
  }, null, 2));
2320
2333
  }
2321
- }), ia = /* @__PURE__ */ B(aa, [["__scopeId", "data-v-e354bb4e"]]), sa = { class: "tab-view" }, ra = {
2334
+ }), sa = /* @__PURE__ */ D(ia, [["__scopeId", "data-v-e354bb4e"]]), ra = { class: "tab-view" }, ca = {
2322
2335
  ref: "headerRef",
2323
2336
  class: "tab-view-header"
2324
- }, ca = ["onClick"], ua = { class: "tab-view-content" }, da = /* @__PURE__ */ T({
2337
+ }, ua = ["onClick"], da = { class: "tab-view-content" }, fa = /* @__PURE__ */ T({
2325
2338
  __name: "tab-view",
2326
2339
  props: {
2327
2340
  modelValue: {},
@@ -2329,72 +2342,72 @@ const un = {
2329
2342
  },
2330
2343
  emits: ["update:modelValue"],
2331
2344
  setup(e) {
2332
- const n = ve(e, "modelValue"), t = C([]), o = C([]), l = C({
2345
+ const n = ve(e, "modelValue"), t = E([]), o = E([]), l = E({
2333
2346
  width: "0px",
2334
2347
  transform: "translateX(0px)"
2335
- }), a = (s, u) => {
2336
- s && (o.value[u] = s);
2348
+ }), a = (r, u) => {
2349
+ r && (o.value[u] = r);
2337
2350
  }, i = () => {
2338
- const s = t.value.findIndex((u) => u.name === n.value);
2339
- if (s >= 0 && o.value[s]) {
2340
- const u = o.value[s], d = u.offsetWidth, v = u.offsetLeft;
2351
+ const r = t.value.findIndex((u) => u.name === n.value);
2352
+ if (r >= 0 && o.value[r]) {
2353
+ const u = o.value[r], d = u.offsetWidth, v = u.offsetLeft;
2341
2354
  l.value = {
2342
2355
  width: `${d}px`,
2343
2356
  transform: `translateX(${v}px)`
2344
2357
  };
2345
2358
  }
2346
- }, r = (s, u) => {
2347
- t.value.find((d) => d.name === s) || (t.value.push({ name: s, label: u }), me(() => {
2348
- !n.value && t.value.length === 1 && (n.value = s), i();
2359
+ }, c = (r, u) => {
2360
+ t.value.find((d) => d.name === r) || (t.value.push({ name: r, label: u }), me(() => {
2361
+ !n.value && t.value.length === 1 && (n.value = r), i();
2349
2362
  }));
2350
- }, c = (s) => {
2351
- n.value = s;
2363
+ }, s = (r) => {
2364
+ n.value = r;
2352
2365
  };
2353
2366
  return X(n, () => {
2354
2367
  me(() => {
2355
2368
  i();
2356
2369
  });
2357
- }), _n("tabView", {
2370
+ }), Nt("tabView", {
2358
2371
  activeTab: () => n.value,
2359
- registerTab: r
2360
- }), (s, u) => (f(), g("div", sa, [
2361
- x("div", ra, [
2372
+ registerTab: c
2373
+ }), (r, u) => (f(), g("div", ra, [
2374
+ x("div", ca, [
2362
2375
  (f(!0), g(Z, null, ge(t.value, (d, v) => (f(), g("div", {
2363
2376
  key: d.name,
2364
2377
  ref_for: !0,
2365
2378
  ref: (m) => a(m, v),
2366
2379
  class: z(["tab-button", { active: n.value === d.name }]),
2367
- onClick: (m) => c(d.name)
2368
- }, D(d.label), 11, ca))), 128)),
2380
+ onClick: (m) => s(d.name)
2381
+ }, B(d.label), 11, ua))), 128)),
2369
2382
  u[0] || (u[0] = x("div", { class: "tab-line" }, null, -1)),
2370
2383
  x("div", {
2371
2384
  class: "tab-indicator",
2372
2385
  style: G(l.value)
2373
2386
  }, null, 4)
2374
2387
  ], 512),
2375
- x("div", ua, [
2376
- j(s.$slots, "default", {}, void 0, !0)
2388
+ x("div", da, [
2389
+ M(r.$slots, "default", {}, void 0, !0)
2377
2390
  ])
2378
2391
  ]));
2379
2392
  }
2380
- }), fa = /* @__PURE__ */ B(da, [["__scopeId", "data-v-3d4ee454"]]), va = {
2393
+ }), va = /* @__PURE__ */ D(fa, [["__scopeId", "data-v-3d4ee454"]]), ma = {
2381
2394
  key: 0,
2382
2395
  class: "tab"
2383
- }, ma = /* @__PURE__ */ T({
2396
+ }, pa = /* @__PURE__ */ T({
2384
2397
  __name: "tab",
2385
2398
  props: {
2386
2399
  name: {},
2387
2400
  label: {}
2388
2401
  },
2389
2402
  setup(e) {
2390
- const n = e, t = Kt("tabView"), o = E(() => t?.activeTab() === n.name);
2391
- return De(() => {
2403
+ const n = e, t = ut("tabView"), o = C(() => t?.activeTab() === n.name);
2404
+ return Be(() => {
2392
2405
  t?.registerTab(n.name, n.label);
2393
- }), (l, a) => o.value ? (f(), g("div", va, [
2394
- j(l.$slots, "default")
2406
+ }), (l, a) => o.value ? (f(), g("div", ma, [
2407
+ M(l.$slots, "default")
2395
2408
  ])) : L("", !0);
2396
2409
  }
2397
- }), pa = ["onKeydown"], ha = /* @__PURE__ */ T({
2410
+ }), ha = ["onKeydown"], ga = /* @__PURE__ */ T({
2398
2411
  __name: "editable-label",
2399
2412
  props: {
2400
2413
  modelValue: {},
@@ -2402,12 +2415,12 @@ const un = {
2402
2415
  },
2403
2416
  emits: ["update:modelValue", "edit"],
2404
2417
  setup(e, { emit: n }) {
2405
- const t = e, o = n, l = E(() => t.modelValue ?? ""), a = C(l.value), i = C(!1), r = C(!1), c = C(null), s = E(() => !!t.showIcon);
2418
+ const t = e, o = n, l = C(() => t.modelValue ?? ""), a = E(l.value), i = E(!1), c = E(!1), s = E(null), r = C(() => !!t.showIcon);
2406
2419
  X(l, (m) => {
2407
2420
  a.value = m;
2408
2421
  });
2409
2422
  function u() {
2410
- i.value = !0, me(() => c.value?.focus());
2423
+ i.value = !0, me(() => s.value?.focus());
2411
2424
  }
2412
2425
  function d() {
2413
2426
  i.value = !1, a.value !== l.value && (o("update:modelValue", a.value), o("edit", a.value));
@@ -2417,29 +2430,29 @@ const un = {
2417
2430
  }
2418
2431
  return (m, p) => (f(), g("span", {
2419
2432
  class: z(["vj-editable-label", { editing: i.value }]),
2420
- onMouseenter: p[1] || (p[1] = (_) => r.value = !0),
2421
- onMouseleave: p[2] || (p[2] = (_) => r.value = !1)
2433
+ onMouseenter: p[1] || (p[1] = (w) => c.value = !0),
2434
+ onMouseleave: p[2] || (p[2] = (w) => c.value = !1)
2422
2435
  }, [
2423
2436
  i.value ? ct((f(), g("input", {
2424
2437
  key: 1,
2425
2438
  ref_key: "inputRef",
2426
- ref: c,
2439
+ ref: s,
2427
2440
  class: "edit-input",
2428
- "onUpdate:modelValue": p[0] || (p[0] = (_) => a.value = _),
2441
+ "onUpdate:modelValue": p[0] || (p[0] = (w) => a.value = w),
2429
2442
  onKeydown: [
2430
2443
  lt(N(d, ["prevent"]), ["enter"]),
2431
2444
  lt(N(v, ["prevent"]), ["esc"])
2432
2445
  ],
2433
2446
  onBlur: d
2434
- }, null, 40, pa)), [
2435
- [xn, a.value]
2447
+ }, null, 40, ha)), [
2448
+ [kn, a.value]
2436
2449
  ]) : (f(), g(Z, { key: 0 }, [
2437
2450
  x("span", {
2438
2451
  class: "label-text",
2439
2452
  onClick: u,
2440
2453
  title: "Click to edit"
2441
- }, D(l.value), 1),
2442
- r.value || s.value ? (f(), g("span", {
2454
+ }, B(l.value), 1),
2455
+ c.value || r.value ? (f(), g("span", {
2443
2456
  key: 0,
2444
2457
  class: "edit-icon",
2445
2458
  onClick: N(u, ["stop"])
@@ -2451,7 +2464,7 @@ const un = {
2451
2464
  ], 64))
2452
2465
  ], 34));
2453
2466
  }
2454
- }), ji = /* @__PURE__ */ B(ha, [["__scopeId", "data-v-cdc52c5b"]]), ga = "200% 200%", ba = /* @__PURE__ */ T({
2467
+ }), Pi = /* @__PURE__ */ D(ga, [["__scopeId", "data-v-cdc52c5b"]]), ba = "200% 200%", ya = /* @__PURE__ */ T({
2455
2468
  __name: "skeleton",
2456
2469
  props: {
2457
2470
  width: {},
@@ -2459,38 +2472,46 @@ const un = {
2459
2472
  borderRadius: {}
2460
2473
  },
2461
2474
  setup(e) {
2462
- const n = e, t = E(() => n.width ?? "100%"), o = E(() => n.height ?? "16px"), l = E(() => n.borderRadius ?? "4px");
2475
+ const n = e, t = C(() => n.width ?? "100%"), o = C(() => n.height ?? "16px"), l = C(() => n.borderRadius ?? "4px");
2463
2476
  return (a, i) => (f(), g("div", {
2464
2477
  class: "vj-skeleton",
2465
2478
  style: G({
2466
2479
  width: t.value,
2467
2480
  height: o.value,
2468
2481
  borderRadius: l.value,
2469
- backgroundSize: ga
2482
+ backgroundSize: ba
2470
2483
  }),
2471
2484
  "aria-hidden": "true"
2472
2485
  }, null, 4));
2473
2486
  }
2474
- }), ya = /* @__PURE__ */ B(ba, [["__scopeId", "data-v-ac05e016"]]), wa = /* @__PURE__ */ T({
2487
+ }), wa = /* @__PURE__ */ D(ya, [["__scopeId", "data-v-ac05e016"]]), _a = /* @__PURE__ */ T({
2475
2488
  __name: "amount-bar",
2476
2489
  props: {
2477
2490
  amount: {},
2478
2491
  maxAmount: {},
2479
- segments: {}
2492
+ segments: {},
2493
+ colorMode: { default: "monochrome" }
2480
2494
  },
2481
2495
  setup(e) {
2482
- const n = e, t = E(() => n.amount / n.maxAmount * 100), o = (a) => {
2496
+ const n = e, t = C(() => n.amount / n.maxAmount * 100), o = (a) => {
2483
2497
  if (!n.segments) return !1;
2484
- const i = 100 / n.segments, r = a * i;
2485
- return t.value > r;
2498
+ const i = 100 / n.segments, c = a * i;
2499
+ return t.value > c;
2486
2500
  }, l = (a) => (160 - a / (n.segments - 1 || 1) * 160).toString();
2487
2501
  return (a, i) => (f(), g("div", {
2488
- class: z(["amount-bar", { "amount-bar--segmented": e.segments }])
2502
+ class: z([
2503
+ "amount-bar",
2504
+ {
2505
+ "amount-bar--segmented": e.segments,
2506
+ "amount-bar--hue-gradient": e.segments && e.colorMode === "hue-gradient",
2507
+ "amount-bar--monochrome": e.segments && e.colorMode === "monochrome"
2508
+ }
2509
+ ])
2489
2510
  }, [
2490
- e.segments ? (f(!0), g(Z, { key: 0 }, ge(Array.from({ length: e.segments }), (r, c) => (f(), g("div", {
2491
- key: c,
2492
- class: z(["amount-bar__segment", { "amount-bar__segment--filled": o(c) }]),
2493
- style: G({ "--segment-hue": l(c) })
2511
+ e.segments ? (f(!0), g(Z, { key: 0 }, ge(Array.from({ length: e.segments }), (c, s) => (f(), g("div", {
2512
+ key: s,
2513
+ class: z(["amount-bar__segment", { "amount-bar__segment--filled": o(s) }]),
2514
+ style: G(o(s) && e.colorMode === "hue-gradient" ? { backgroundColor: `hsl(${l(s)}, 100%, 45%)` } : {})
2494
2515
  }, null, 6))), 128)) : (f(), g("div", {
2495
2516
  key: 1,
2496
2517
  class: "amount-bar__fill",
@@ -2498,44 +2519,44 @@ const un = {
2498
2519
  }, null, 4))
2499
2520
  ], 2));
2500
2521
  }
2501
- }), _a = /* @__PURE__ */ B(wa, [["__scopeId", "data-v-f85c6d8c"]]), dn = {
2522
+ }), xa = /* @__PURE__ */ D(_a, [["__scopeId", "data-v-7e89d03f"]]), vn = {
2502
2523
  form: {
2503
2524
  labelPosition: "inline",
2504
2525
  appearance: "bordered"
2505
2526
  }
2506
2527
  };
2507
2528
  let Xe = {};
2508
- function Mi(e) {
2529
+ function Fi(e) {
2509
2530
  Xe = {
2510
2531
  ...Xe,
2511
2532
  ...e,
2512
2533
  form: {
2513
- ...dn.form,
2534
+ ...vn.form,
2514
2535
  ...e.form
2515
2536
  }
2516
2537
  };
2517
2538
  }
2518
- function It() {
2539
+ function Ht() {
2519
2540
  return {
2520
2541
  form: {
2521
- ...dn.form,
2542
+ ...vn.form,
2522
2543
  ...Xe.form
2523
2544
  }
2524
2545
  };
2525
2546
  }
2526
- function Fi() {
2547
+ function zi() {
2527
2548
  Xe = {};
2528
2549
  }
2529
- const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-field__wrapper" }, Ea = ["for"], Ca = {
2550
+ const ka = ["data-colspan", "data-newline"], Va = ["for"], Ca = { class: "form-field__wrapper" }, Ea = ["for"], La = {
2530
2551
  key: 1,
2531
2552
  class: "form-field__error"
2532
- }, La = {
2553
+ }, $a = {
2533
2554
  key: 2,
2534
2555
  class: "form-field__help",
2535
2556
  type: "button",
2536
2557
  "aria-label": "Hilfe"
2537
- }, $a = /* @__PURE__ */ T({
2538
- directives: { tooltip: un },
2558
+ }, Sa = /* @__PURE__ */ T({
2559
+ directives: { tooltip: fn },
2539
2560
  __name: "form-field",
2540
2561
  props: {
2541
2562
  modelValue: {},
@@ -2553,17 +2574,17 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2553
2574
  },
2554
2575
  emits: ["update:modelValue", "focus", "blur"],
2555
2576
  setup(e, { emit: n }) {
2556
- const t = e, o = n, l = C(t.modelValue), a = C(!1), i = E(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), r = E(() => t.labelPosition ?? It().form.labelPosition), c = E(() => t.appearance ?? It().form.appearance);
2577
+ const t = e, o = n, l = E(t.modelValue), a = E(!1), i = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), c = C(() => t.labelPosition ?? Ht().form.labelPosition), s = C(() => t.appearance ?? Ht().form.appearance);
2557
2578
  X(
2558
2579
  () => t.modelValue,
2559
2580
  (p) => l.value = p
2560
2581
  );
2561
- const s = E(() => {
2562
- if (r.value === "outline")
2582
+ const r = C(() => {
2583
+ if (c.value === "outline")
2563
2584
  return !0;
2564
2585
  const p = l.value !== "" && l.value !== null && l.value !== void 0;
2565
2586
  return a.value || p;
2566
- }), u = E(() => r.value === "outline" || s.value ? t.placeholder : "");
2587
+ }), u = C(() => c.value === "outline" || r.value ? t.placeholder : "");
2567
2588
  function d(p) {
2568
2589
  const h = p.target.value;
2569
2590
  l.value = h, o("update:modelValue", h);
@@ -2574,13 +2595,13 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2574
2595
  function m(p) {
2575
2596
  a.value = !1, o("blur", p);
2576
2597
  }
2577
- return (p, _) => {
2578
- const h = K("VjIcon"), y = Nt("tooltip");
2598
+ return (p, w) => {
2599
+ const h = K("VjIcon"), y = Xt("tooltip");
2579
2600
  return f(), g("div", {
2580
2601
  class: z([
2581
2602
  "form-field",
2582
- `form-field--${r.value}`,
2583
2603
  `form-field--${c.value}`,
2604
+ `form-field--${s.value}`,
2584
2605
  { disabled: e.disabled },
2585
2606
  { labelless: !e.label },
2586
2607
  { error: !!e.error }
@@ -2589,13 +2610,13 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2589
2610
  "data-newline": t.spanRow || t.newLine ? "true" : void 0,
2590
2611
  style: G(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
2591
2612
  }, [
2592
- e.label && r.value === "outline" ? (f(), g("label", {
2613
+ e.label && c.value === "outline" ? (f(), g("label", {
2593
2614
  key: 0,
2594
2615
  for: i.value,
2595
2616
  class: "form-field__label-outline"
2596
- }, D(e.label), 9, ka)) : L("", !0),
2597
- x("div", Va, [
2598
- j(p.$slots, "control", {
2617
+ }, B(e.label), 9, Va)) : L("", !0),
2618
+ x("div", Ca, [
2619
+ M(p.$slots, "control", {
2599
2620
  id: i.value,
2600
2621
  value: l.value,
2601
2622
  onInput: d,
@@ -2604,40 +2625,40 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2604
2625
  disabled: e.disabled,
2605
2626
  placeholder: u.value
2606
2627
  }, void 0, !0),
2607
- e.label && r.value === "inline" ? (f(), g("label", {
2628
+ e.label && c.value === "inline" ? (f(), g("label", {
2608
2629
  key: 0,
2609
2630
  for: i.value,
2610
- class: z(["form-field__label", { "form-field__label--float": s.value }])
2611
- }, D(e.label), 11, Ea)) : L("", !0)
2631
+ class: z(["form-field__label", { "form-field__label--float": r.value }])
2632
+ }, B(e.label), 11, Ea)) : L("", !0)
2612
2633
  ]),
2613
- e.error ? (f(), g("div", Ca, D(e.error), 1)) : L("", !0),
2614
- t.helpText ? ct((f(), g("button", La, [
2634
+ e.error ? (f(), g("div", La, B(e.error), 1)) : L("", !0),
2635
+ t.helpText ? ct((f(), g("button", $a, [
2615
2636
  O(h, {
2616
2637
  icon: S(F).HELP
2617
2638
  }, null, 8, ["icon"])
2618
2639
  ])), [
2619
2640
  [y, t.helpText]
2620
2641
  ]) : L("", !0)
2621
- ], 14, xa);
2642
+ ], 14, ka);
2622
2643
  };
2623
2644
  }
2624
- }), ze = /* @__PURE__ */ B($a, [["__scopeId", "data-v-19959d5e"]]), Sa = /* @__PURE__ */ T({
2645
+ }), ze = /* @__PURE__ */ D(Sa, [["__scopeId", "data-v-19959d5e"]]), Ra = /* @__PURE__ */ T({
2625
2646
  __name: "form-layout",
2626
2647
  props: {
2627
2648
  columns: { type: Number, default: 4 },
2628
2649
  gap: { type: String, default: "0.75rem" }
2629
2650
  },
2630
2651
  setup(e) {
2631
- const n = e, t = C(null);
2652
+ const n = e, t = E(null);
2632
2653
  let o = null;
2633
2654
  function l() {
2634
2655
  if (!t.value) return;
2635
2656
  Array.from(t.value.children).forEach((i) => {
2636
- const r = i.getAttribute("data-colspan"), c = r ? Math.max(1, Number(r) || 1) : 1, s = i.getAttribute("data-newline");
2637
- s !== null && s !== "false" ? i.style.gridColumn = "1 / -1" : i.style.gridColumn = `span ${c}`;
2657
+ const c = i.getAttribute("data-colspan"), s = c ? Math.max(1, Number(c) || 1) : 1, r = i.getAttribute("data-newline");
2658
+ r !== null && r !== "false" ? i.style.gridColumn = "1 / -1" : i.style.gridColumn = `span ${s}`;
2638
2659
  });
2639
2660
  }
2640
- return De(() => {
2661
+ return Be(() => {
2641
2662
  me(() => {
2642
2663
  l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
2643
2664
  });
@@ -2655,28 +2676,28 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2655
2676
  class: "form-layout",
2656
2677
  style: G({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
2657
2678
  }, [
2658
- j(a.$slots, "default", {}, void 0, !0)
2679
+ M(a.$slots, "default", {}, void 0, !0)
2659
2680
  ], 4));
2660
2681
  }
2661
- }), Ra = /* @__PURE__ */ B(Sa, [["__scopeId", "data-v-96f62ab7"]]), Ta = {
2682
+ }), Ta = /* @__PURE__ */ D(Ra, [["__scopeId", "data-v-96f62ab7"]]), Aa = {
2662
2683
  key: 0,
2663
2684
  class: "form-section__title",
2664
2685
  "data-newline": ""
2665
- }, Aa = /* @__PURE__ */ T({
2686
+ }, Oa = /* @__PURE__ */ T({
2666
2687
  __name: "form-section",
2667
2688
  props: {
2668
2689
  title: {}
2669
2690
  },
2670
2691
  setup(e) {
2671
2692
  return (n, t) => (f(), g(Z, null, [
2672
- e.title ? (f(), g("h3", Ta, D(e.title), 1)) : L("", !0),
2673
- j(n.$slots, "default", {}, void 0, !0)
2693
+ e.title ? (f(), g("h3", Aa, B(e.title), 1)) : L("", !0),
2694
+ M(n.$slots, "default", {}, void 0, !0)
2674
2695
  ], 64));
2675
2696
  }
2676
- }), Oa = /* @__PURE__ */ B(Aa, [["__scopeId", "data-v-69cff1d0"]]), Ba = ["id", "disabled"], Da = { class: "select-value" }, Pa = {
2697
+ }), Da = /* @__PURE__ */ D(Oa, [["__scopeId", "data-v-69cff1d0"]]), Ba = ["id", "disabled"], ja = { class: "select-value" }, Ma = {
2677
2698
  key: 1,
2678
2699
  class: "select-placeholder"
2679
- }, ja = { class: "select-options" }, Ma = ["onClick", "onMouseenter"], Fa = /* @__PURE__ */ T({
2700
+ }, Pa = { class: "select-options" }, Fa = ["onClick", "onMouseenter"], za = /* @__PURE__ */ T({
2680
2701
  inheritAttrs: !1,
2681
2702
  __name: "select",
2682
2703
  props: /* @__PURE__ */ ee({
@@ -2694,13 +2715,13 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2694
2715
  }),
2695
2716
  emits: ["update:modelValue"],
2696
2717
  setup(e, { expose: n }) {
2697
- const t = e, o = ve(e, "modelValue"), l = C(!1), a = C(-1), i = C(null), r = C(null), c = C(null), { floatingStyles: s } = gt(r, c, {
2718
+ const t = e, o = ve(e, "modelValue"), l = E(!1), a = E(-1), i = E(null), c = E(null), s = E(null), { floatingStyles: r } = bt(c, s, {
2698
2719
  placement: "bottom-start",
2699
2720
  middleware: [
2700
2721
  Ze(4),
2701
2722
  tt(),
2702
2723
  et({ padding: 8 }),
2703
- ul({
2724
+ dl({
2704
2725
  apply({ rects: b, elements: $ }) {
2705
2726
  Object.assign($.floating.style, {
2706
2727
  minWidth: `${b.reference.width}px`
@@ -2709,28 +2730,28 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2709
2730
  })
2710
2731
  ],
2711
2732
  whileElementsMounted: Qe
2712
- }), u = (b) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(b) : String(b[t.optionLabel]) : String(b), d = (b) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(b) : b[t.optionValue] : b, v = E(() => t.options.find((b) => d(b) === o.value)), m = (b) => d(b) === o.value, p = () => {
2733
+ }), u = (b) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(b) : String(b[t.optionLabel]) : String(b), d = (b) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(b) : b[t.optionValue] : b, v = C(() => t.options.find((b) => d(b) === o.value)), m = (b) => d(b) === o.value, p = () => {
2713
2734
  t.disabled || (l.value = !l.value);
2714
- }, _ = () => {
2735
+ }, w = () => {
2715
2736
  l.value = !1, a.value = -1;
2716
2737
  }, h = (b) => {
2717
- o.value = d(b), _();
2738
+ o.value = d(b), w();
2718
2739
  }, y = () => {
2719
2740
  o.value = void 0;
2720
- }, w = (b) => {
2721
- l.value && i.value && !i.value.contains(b.target) && _();
2741
+ }, _ = (b) => {
2742
+ l.value && i.value && !i.value.contains(b.target) && w();
2722
2743
  };
2723
- return De(() => {
2724
- document.addEventListener("click", w);
2744
+ return Be(() => {
2745
+ document.addEventListener("click", _);
2725
2746
  }), Re(() => {
2726
- document.removeEventListener("click", w);
2747
+ document.removeEventListener("click", _);
2727
2748
  }), X(l, (b) => {
2728
2749
  b && v.value && (a.value = t.options.findIndex(($) => m($)));
2729
2750
  }), n({
2730
- focus: () => r.value?.focus(),
2731
- blur: () => r.value?.blur()
2751
+ focus: () => c.value?.focus(),
2752
+ blur: () => c.value?.blur()
2732
2753
  }), (b, $) => {
2733
- const P = K("VjIcon");
2754
+ const j = K("VjIcon");
2734
2755
  return f(), g(Z, null, [
2735
2756
  x("div", {
2736
2757
  ref_key: "selectRef",
@@ -2739,35 +2760,35 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2739
2760
  }, [
2740
2761
  x("button", {
2741
2762
  ref_key: "buttonRef",
2742
- ref: r,
2763
+ ref: c,
2743
2764
  type: "button",
2744
2765
  class: "select-trigger",
2745
2766
  id: t.id,
2746
2767
  onClick: p,
2747
2768
  disabled: e.disabled
2748
2769
  }, [
2749
- t.icon ? (f(), M(P, {
2770
+ t.icon ? (f(), P(j, {
2750
2771
  key: 0,
2751
2772
  icon: t.icon,
2752
2773
  size: S(q).S,
2753
2774
  class: "select-icon-left"
2754
2775
  }, null, 8, ["icon", "size"])) : L("", !0),
2755
- x("span", Da, [
2756
- v.value ? j(b.$slots, "selected", {
2776
+ x("span", ja, [
2777
+ v.value ? M(b.$slots, "selected", {
2757
2778
  key: 0,
2758
2779
  option: v.value
2759
2780
  }, () => [
2760
- Ue(D(u(v.value)), 1)
2761
- ], !0) : (f(), g("span", Pa, D(e.placeholder), 1))
2781
+ Ue(B(u(v.value)), 1)
2782
+ ], !0) : (f(), g("span", Ma, B(e.placeholder), 1))
2762
2783
  ]),
2763
- t.clearable && v.value && !e.disabled ? (f(), M(P, {
2784
+ t.clearable && v.value && !e.disabled ? (f(), P(j, {
2764
2785
  key: 1,
2765
2786
  icon: S(F).CLOSE,
2766
2787
  size: S(q).S,
2767
2788
  class: "select-clear-icon",
2768
2789
  onClick: N(y, ["stop"])
2769
2790
  }, null, 8, ["icon", "size"])) : L("", !0),
2770
- O(P, {
2791
+ O(j, {
2771
2792
  icon: S(F).CHEVRON_DOWN,
2772
2793
  size: S(q).S,
2773
2794
  class: z(["select-icon-right", { open: l.value }])
@@ -2778,41 +2799,41 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2778
2799
  l.value ? (f(), g("div", {
2779
2800
  key: 0,
2780
2801
  ref_key: "floatingRef",
2781
- ref: c,
2782
- style: G(S(s)),
2802
+ ref: s,
2803
+ style: G(S(r)),
2783
2804
  class: "select-dropdown"
2784
2805
  }, [
2785
- x("div", ja, [
2806
+ x("div", Pa, [
2786
2807
  (f(!0), g(Z, null, ge(e.options, (I, k) => (f(), g("div", {
2787
2808
  key: String(d(I)),
2788
2809
  class: z(["select-option", { selected: m(I), highlighted: a.value === k }]),
2789
2810
  onClick: (V) => h(I),
2790
2811
  onMouseenter: (V) => a.value = k
2791
2812
  }, [
2792
- j(b.$slots, "option", {
2813
+ M(b.$slots, "option", {
2793
2814
  option: I,
2794
2815
  selected: m(I)
2795
2816
  }, () => [
2796
- Ue(D(u(I)), 1)
2817
+ Ue(B(u(I)), 1)
2797
2818
  ], !0)
2798
- ], 42, Ma))), 128))
2819
+ ], 42, Fa))), 128))
2799
2820
  ])
2800
2821
  ], 4)) : L("", !0)
2801
2822
  ]),
2802
2823
  _: 3
2803
2824
  })
2804
2825
  ], 2),
2805
- (f(), M(Pe, { to: "body" }, [
2826
+ (f(), P(je, { to: "body" }, [
2806
2827
  l.value ? (f(), g("div", {
2807
2828
  key: 0,
2808
2829
  class: "select-backdrop",
2809
- onClick: _
2830
+ onClick: w
2810
2831
  })) : L("", !0)
2811
2832
  ]))
2812
2833
  ], 64);
2813
2834
  };
2814
2835
  }
2815
- }), fn = /* @__PURE__ */ B(Fa, [["__scopeId", "data-v-fc22f0e9"]]), za = /* @__PURE__ */ T({
2836
+ }), mn = /* @__PURE__ */ D(za, [["__scopeId", "data-v-fc22f0e9"]]), Ia = /* @__PURE__ */ T({
2816
2837
  __name: "input-select",
2817
2838
  props: {
2818
2839
  modelValue: {},
@@ -2831,7 +2852,7 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2831
2852
  },
2832
2853
  emits: ["update:modelValue", "input", "focus", "blur"],
2833
2854
  setup(e, { emit: n }) {
2834
- const t = e, o = n, l = C(t.modelValue);
2855
+ const t = e, o = n, l = E(t.modelValue);
2835
2856
  X(
2836
2857
  () => t.modelValue,
2837
2858
  (i) => {
@@ -2841,7 +2862,7 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2841
2862
  const a = (i) => {
2842
2863
  l.value = i, o("update:modelValue", i);
2843
2864
  };
2844
- return (i, r) => (f(), M(ze, {
2865
+ return (i, c) => (f(), P(ze, {
2845
2866
  modelValue: l.value,
2846
2867
  "onUpdate:modelValue": a,
2847
2868
  label: t.label,
@@ -2856,17 +2877,17 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2856
2877
  labelPosition: t.labelPosition,
2857
2878
  appearance: t.appearance
2858
2879
  }, {
2859
- control: W(({ id: c, disabled: s, placeholder: u }) => [
2860
- O(fn, {
2861
- id: c,
2880
+ control: W(({ id: s, disabled: r, placeholder: u }) => [
2881
+ O(mn, {
2882
+ id: s,
2862
2883
  modelValue: l.value,
2863
2884
  "onUpdate:modelValue": [
2864
- r[0] || (r[0] = (d) => l.value = d),
2885
+ c[0] || (c[0] = (d) => l.value = d),
2865
2886
  a
2866
2887
  ],
2867
2888
  options: t.options,
2868
2889
  placeholder: u,
2869
- disabled: s,
2890
+ disabled: r,
2870
2891
  "option-label": (d) => d.label,
2871
2892
  "option-value": (d) => d.value,
2872
2893
  clearable: ""
@@ -2874,14 +2895,14 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2874
2895
  i.$slots.selected ? {
2875
2896
  name: "selected",
2876
2897
  fn: W(({ option: d }) => [
2877
- j(i.$slots, "selected", { option: d })
2898
+ M(i.$slots, "selected", { option: d })
2878
2899
  ]),
2879
2900
  key: "0"
2880
2901
  } : void 0,
2881
2902
  i.$slots.option ? {
2882
2903
  name: "option",
2883
2904
  fn: W(({ option: d }) => [
2884
- j(i.$slots, "option", { option: d })
2905
+ M(i.$slots, "option", { option: d })
2885
2906
  ]),
2886
2907
  key: "1"
2887
2908
  } : void 0
@@ -2890,7 +2911,7 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2890
2911
  _: 3
2891
2912
  }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
2892
2913
  }
2893
- }), Ia = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Ha = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Ua = /* @__PURE__ */ T({
2914
+ }), Ha = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Ua = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Wa = /* @__PURE__ */ T({
2894
2915
  __name: "slider",
2895
2916
  props: {
2896
2917
  modelValue: { default: void 0 },
@@ -2901,72 +2922,72 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2901
2922
  },
2902
2923
  emits: ["update:modelValue", "change"],
2903
2924
  setup(e, { emit: n }) {
2904
- const t = e, o = n, l = C(null), a = C(!1), i = C(!1), r = (k, V, A) => Math.min(Math.max(k, V), A), c = C(
2925
+ const t = e, o = n, l = E(null), a = E(!1), i = E(!1), c = (k, V, A) => Math.min(Math.max(k, V), A), s = E(
2905
2926
  t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
2906
- ), s = C(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
2927
+ ), r = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
2907
2928
  X(
2908
2929
  () => t.modelValue,
2909
2930
  (k) => {
2910
- t.range ? Array.isArray(k) && (c.value = r(k[0], t.min, t.max), s.value = r(k[1], t.min, t.max)) : typeof k == "number" && (c.value = r(k, t.min, t.max));
2931
+ t.range ? Array.isArray(k) && (s.value = c(k[0], t.min, t.max), r.value = c(k[1], t.min, t.max)) : typeof k == "number" && (s.value = c(k, t.min, t.max));
2911
2932
  },
2912
2933
  { immediate: !0 }
2913
2934
  );
2914
- const u = (k) => (k - t.min) / (t.max - t.min) * 100, d = E(() => ({ left: `${u(c.value)}%` })), v = E(() => ({ left: `${u(s.value)}%` })), m = E(() => {
2915
- if (!t.range) return { width: `${u(c.value)}%`, left: "0%" };
2916
- const k = u(c.value), V = u(s.value);
2935
+ const u = (k) => (k - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${u(s.value)}%` })), v = C(() => ({ left: `${u(r.value)}%` })), m = C(() => {
2936
+ if (!t.range) return { width: `${u(s.value)}%`, left: "0%" };
2937
+ const k = u(s.value), V = u(r.value);
2917
2938
  return { left: `${k}%`, width: `${Math.max(0, V - k)}%` };
2918
2939
  });
2919
- let p = null, _ = null;
2940
+ let p = null, w = null;
2920
2941
  const h = async (k, V) => {
2921
- p = k, _ = V.pointerId, k === "low" ? a.value = !0 : i.value = !0;
2942
+ p = k, w = V.pointerId, k === "low" ? a.value = !0 : i.value = !0;
2922
2943
  try {
2923
2944
  V.target.setPointerCapture(V.pointerId);
2924
2945
  } catch {
2925
2946
  }
2926
- window.addEventListener("pointermove", w), window.addEventListener("pointerup", y);
2947
+ window.addEventListener("pointermove", _), window.addEventListener("pointerup", y);
2927
2948
  }, y = (k) => {
2928
- if (_ != null && k)
2949
+ if (w != null && k)
2929
2950
  try {
2930
2951
  k.target.releasePointerCapture(k.pointerId);
2931
2952
  } catch {
2932
2953
  }
2933
- p = null, _ = null, a.value = !1, i.value = !1, window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", y), P();
2934
- }, w = (k) => {
2954
+ p = null, w = null, a.value = !1, i.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", y), j();
2955
+ }, _ = (k) => {
2935
2956
  if (!p || !l.value) return;
2936
- const V = l.value.getBoundingClientRect(), A = r(k.clientX - V.left, 0, V.width), H = t.min + A / V.width * (t.max - t.min), U = Math.round(H / t.step) * t.step;
2937
- p === "low" ? t.range ? c.value = Math.min(U, s.value) : c.value = r(U, t.min, t.max) : p === "high" && (s.value = Math.max(U, c.value));
2957
+ const V = l.value.getBoundingClientRect(), A = c(k.clientX - V.left, 0, V.width), H = t.min + A / V.width * (t.max - t.min), U = Math.round(H / t.step) * t.step;
2958
+ p === "low" ? t.range ? s.value = Math.min(U, r.value) : s.value = c(U, t.min, t.max) : p === "high" && (r.value = Math.max(U, s.value));
2938
2959
  }, b = (k) => {
2939
2960
  if (!l.value) return;
2940
- const V = l.value.getBoundingClientRect(), A = r(k.clientX - V.left, 0, V.width), H = t.min + A / V.width * (t.max - t.min), U = Math.round(H / t.step) * t.step;
2961
+ const V = l.value.getBoundingClientRect(), A = c(k.clientX - V.left, 0, V.width), H = t.min + A / V.width * (t.max - t.min), U = Math.round(H / t.step) * t.step;
2941
2962
  if (t.range) {
2942
- const ce = Math.abs(U - c.value), ue = Math.abs(U - s.value);
2943
- ce <= ue ? c.value = Math.min(U, s.value) : s.value = Math.max(U, c.value);
2963
+ const ce = Math.abs(U - s.value), ue = Math.abs(U - r.value);
2964
+ ce <= ue ? s.value = Math.min(U, r.value) : r.value = Math.max(U, s.value);
2944
2965
  } else
2945
- c.value = r(U, t.min, t.max);
2946
- P();
2966
+ s.value = c(U, t.min, t.max);
2967
+ j();
2947
2968
  }, $ = (k, V) => {
2948
2969
  const A = t.step, H = V.key === "ArrowLeft" || V.key === "ArrowDown" ? -1 : V.key === "ArrowRight" || V.key === "ArrowUp" ? 1 : 0;
2949
2970
  if (H) {
2950
2971
  if (k === "low") {
2951
- const U = r(c.value + H * A, t.min, t.range ? s.value : t.max);
2952
- c.value = U, a.value = !0, setTimeout(() => a.value = !1, 800);
2972
+ const U = c(s.value + H * A, t.min, t.range ? r.value : t.max);
2973
+ s.value = U, a.value = !0, setTimeout(() => a.value = !1, 800);
2953
2974
  } else {
2954
- const U = r(s.value + H * A, t.range ? c.value : t.max, t.max);
2955
- s.value = U, i.value = !0, setTimeout(() => i.value = !1, 800);
2975
+ const U = c(r.value + H * A, t.range ? s.value : t.max, t.max);
2976
+ r.value = U, i.value = !0, setTimeout(() => i.value = !1, 800);
2956
2977
  }
2957
- P();
2978
+ j();
2958
2979
  }
2959
- }, P = () => {
2960
- t.range ? (o("update:modelValue", [c.value, s.value]), o("change", [c.value, s.value])) : (o("update:modelValue", c.value), o("change", c.value));
2980
+ }, j = () => {
2981
+ t.range ? (o("update:modelValue", [s.value, r.value]), o("change", [s.value, r.value])) : (o("update:modelValue", s.value), o("change", s.value));
2961
2982
  };
2962
2983
  Re(() => {
2963
- window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", y);
2984
+ window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", y);
2964
2985
  }), X([() => t.min, () => t.max], () => {
2965
- c.value = r(c.value, t.min, t.max), s.value = r(s.value, t.min, t.max);
2986
+ s.value = c(s.value, t.min, t.max), r.value = c(r.value, t.min, t.max);
2966
2987
  });
2967
- const I = E(() => t.range);
2988
+ const I = C(() => t.range);
2968
2989
  return me(() => {
2969
- t.modelValue === void 0 && (t.range ? o("update:modelValue", [c.value, s.value]) : o("update:modelValue", c.value));
2990
+ t.modelValue === void 0 && (t.range ? o("update:modelValue", [s.value, r.value]) : o("update:modelValue", s.value));
2970
2991
  }), (k, V) => (f(), g("div", {
2971
2992
  class: "vj-slider",
2972
2993
  onPointerdown: V[8] || (V[8] = N(() => {
@@ -2986,13 +3007,13 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
2986
3007
  key: 0,
2987
3008
  class: "tooltip",
2988
3009
  style: G({ left: d.value.left })
2989
- }, D(c.value), 5)) : L("", !0),
3010
+ }, B(s.value), 5)) : L("", !0),
2990
3011
  x("button", {
2991
3012
  class: "handle low",
2992
3013
  style: G(d.value),
2993
3014
  "aria-valuemin": e.min,
2994
3015
  "aria-valuemax": e.max,
2995
- "aria-valuenow": c.value,
3016
+ "aria-valuenow": s.value,
2996
3017
  "aria-label": I.value ? "Lower value" : "Value",
2997
3018
  onPointerdown: V[0] || (V[0] = N((A) => h("low", A), ["prevent"])),
2998
3019
  onFocus: V[1] || (V[1] = (A) => a.value = !0),
@@ -3000,19 +3021,19 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3000
3021
  onKeydown: V[3] || (V[3] = N((A) => $("low", A), ["stop", "prevent"])),
3001
3022
  role: "slider",
3002
3023
  tabindex: "0"
3003
- }, null, 44, Ia),
3024
+ }, null, 44, Ha),
3004
3025
  I.value && i.value ? (f(), g("div", {
3005
3026
  key: 1,
3006
3027
  class: "tooltip",
3007
3028
  style: G({ left: v.value.left })
3008
- }, D(s.value), 5)) : L("", !0),
3029
+ }, B(r.value), 5)) : L("", !0),
3009
3030
  I.value ? (f(), g("button", {
3010
3031
  key: 2,
3011
3032
  class: "handle high",
3012
3033
  style: G(v.value),
3013
3034
  "aria-valuemin": e.min,
3014
3035
  "aria-valuemax": e.max,
3015
- "aria-valuenow": s.value,
3036
+ "aria-valuenow": r.value,
3016
3037
  "aria-label": "Upper value",
3017
3038
  onPointerdown: V[4] || (V[4] = N((A) => h("high", A), ["prevent"])),
3018
3039
  onFocus: V[5] || (V[5] = (A) => i.value = !0),
@@ -3020,11 +3041,11 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3020
3041
  onKeydown: V[7] || (V[7] = N((A) => $("high", A), ["stop", "prevent"])),
3021
3042
  role: "slider",
3022
3043
  tabindex: "0"
3023
- }, null, 44, Ha)) : L("", !0)
3044
+ }, null, 44, Ua)) : L("", !0)
3024
3045
  ], 512)
3025
3046
  ], 32));
3026
3047
  }
3027
- }), Wa = /* @__PURE__ */ B(Ua, [["__scopeId", "data-v-d47c7475"]]), Na = ["onFocusin", "onFocusout"], Ka = /* @__PURE__ */ T({
3048
+ }), Na = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-d47c7475"]]), Ka = ["onFocusin", "onFocusout"], Xa = /* @__PURE__ */ T({
3028
3049
  __name: "input-slider",
3029
3050
  props: {
3030
3051
  modelValue: {},
@@ -3045,11 +3066,11 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3045
3066
  },
3046
3067
  emits: ["update:modelValue", "input", "focus", "blur"],
3047
3068
  setup(e, { emit: n }) {
3048
- const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), a = C(Number.isNaN(l) ? 0 : l), i = (r) => {
3049
- const c = typeof r == "number" ? r : Number(r ?? 0);
3050
- a.value = Number.isNaN(c) ? 0 : c, o("update:modelValue", a.value), o("input", a.value);
3069
+ const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), a = E(Number.isNaN(l) ? 0 : l), i = (c) => {
3070
+ const s = typeof c == "number" ? c : Number(c ?? 0);
3071
+ a.value = Number.isNaN(s) ? 0 : s, o("update:modelValue", a.value), o("input", a.value);
3051
3072
  };
3052
- return (r, c) => (f(), M(ze, {
3073
+ return (c, s) => (f(), P(ze, {
3053
3074
  modelValue: a.value,
3054
3075
  "onUpdate:modelValue": i,
3055
3076
  label: t.label,
@@ -3061,28 +3082,28 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3061
3082
  spanRow: t.spanRow,
3062
3083
  error: t.error
3063
3084
  }, {
3064
- control: W(({ id: s, disabled: u, placeholder: d, onFocus: v, onBlur: m }) => [
3085
+ control: W(({ id: r, disabled: u, placeholder: d, onFocus: v, onBlur: m }) => [
3065
3086
  x("div", {
3066
3087
  class: "input-slider__control",
3067
3088
  onFocusin: v,
3068
3089
  onFocusout: m
3069
3090
  }, [
3070
- O(Wa, {
3071
- id: s,
3091
+ O(Na, {
3092
+ id: r,
3072
3093
  modelValue: a.value,
3073
- "onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p),
3094
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => a.value = p),
3074
3095
  min: t.min,
3075
3096
  max: t.max,
3076
3097
  step: t.step,
3077
3098
  range: !1,
3078
3099
  disabled: u
3079
3100
  }, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
3080
- ], 40, Na)
3101
+ ], 40, Ka)
3081
3102
  ]),
3082
3103
  _: 1
3083
3104
  }, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
3084
3105
  }
3085
- }), Xa = /* @__PURE__ */ B(Ka, [["__scopeId", "data-v-051e6d17"]]), Ga = { class: "textarea" }, qa = ["value", "placeholder", "disabled", "rows"], Ya = /* @__PURE__ */ T({
3106
+ }), Ga = /* @__PURE__ */ D(Xa, [["__scopeId", "data-v-051e6d17"]]), qa = { class: "textarea" }, Ya = ["value", "placeholder", "disabled", "rows"], Ja = /* @__PURE__ */ T({
3086
3107
  __name: "textarea",
3087
3108
  props: /* @__PURE__ */ ee({
3088
3109
  icon: {},
@@ -3096,19 +3117,19 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3096
3117
  }),
3097
3118
  emits: /* @__PURE__ */ ee(["focus", "blur"], ["update:modelValue"]),
3098
3119
  setup(e, { emit: n }) {
3099
- const t = n, o = ve(e, "modelValue"), l = (s) => {
3100
- o.value = s.target.value;
3120
+ const t = n, o = ve(e, "modelValue"), l = (r) => {
3121
+ o.value = r.target.value;
3101
3122
  }, a = () => {
3102
3123
  o.value = "";
3103
- }, i = (s) => {
3104
- t("focus", s);
3105
- }, r = (s) => {
3106
- t("blur", s);
3107
- }, c = E(() => !o.value);
3108
- return (s, u) => {
3124
+ }, i = (r) => {
3125
+ t("focus", r);
3126
+ }, c = (r) => {
3127
+ t("blur", r);
3128
+ }, s = C(() => !o.value);
3129
+ return (r, u) => {
3109
3130
  const d = K("VjIcon");
3110
- return f(), g("div", Ga, [
3111
- e.icon ? (f(), M(d, {
3131
+ return f(), g("div", qa, [
3132
+ e.icon ? (f(), P(d, {
3112
3133
  key: 0,
3113
3134
  icon: e.icon,
3114
3135
  size: S(q).S,
@@ -3118,14 +3139,14 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3118
3139
  value: o.value,
3119
3140
  onInput: l,
3120
3141
  onFocus: i,
3121
- onBlur: r,
3142
+ onBlur: c,
3122
3143
  placeholder: e.placeholder,
3123
3144
  disabled: e.disabled,
3124
3145
  rows: e.rows
3125
- }, null, 40, qa),
3126
- e.clearable && !e.disabled ? (f(), M(d, {
3146
+ }, null, 40, Ya),
3147
+ e.clearable && !e.disabled ? (f(), P(d, {
3127
3148
  key: 1,
3128
- class: z(["clear-icon", { invisible: c.value }]),
3149
+ class: z(["clear-icon", { invisible: s.value }]),
3129
3150
  icon: S(F).CLOSE,
3130
3151
  size: S(q).S,
3131
3152
  onClick: a
@@ -3133,7 +3154,7 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3133
3154
  ]);
3134
3155
  };
3135
3156
  }
3136
- }), vn = /* @__PURE__ */ B(Ya, [["__scopeId", "data-v-2ea43716"]]), Ja = /* @__PURE__ */ T({
3157
+ }), pn = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-2ea43716"]]), Qa = /* @__PURE__ */ T({
3137
3158
  __name: "input-text-area",
3138
3159
  props: {
3139
3160
  modelValue: {},
@@ -3152,18 +3173,18 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3152
3173
  },
3153
3174
  emits: ["update:modelValue", "input", "focus", "blur"],
3154
3175
  setup(e, { emit: n }) {
3155
- const t = e, o = n, l = (u) => o("update:modelValue", u), a = (u) => o("input", u), i = (u) => o("focus", u), r = (u) => o("blur", u), c = (u) => {
3176
+ const t = e, o = n, l = (u) => o("update:modelValue", u), a = (u) => o("input", u), i = (u) => o("focus", u), c = (u) => o("blur", u), s = (u) => {
3156
3177
  l(u ?? "");
3157
- }, s = E(() => {
3178
+ }, r = C(() => {
3158
3179
  const u = t.modelValue;
3159
3180
  return u == null ? "" : String(u);
3160
3181
  });
3161
- return (u, d) => (f(), M(ze, {
3182
+ return (u, d) => (f(), P(ze, {
3162
3183
  modelValue: t.modelValue,
3163
3184
  "onUpdate:modelValue": l,
3164
3185
  onInput: a,
3165
3186
  onFocus: i,
3166
- onBlur: r,
3187
+ onBlur: c,
3167
3188
  label: t.label,
3168
3189
  id: t.id,
3169
3190
  placeholder: t.placeholder,
@@ -3176,16 +3197,16 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3176
3197
  helpText: t.helpText,
3177
3198
  appearance: t.appearance
3178
3199
  }, {
3179
- control: W(({ id: v, disabled: m, placeholder: p, onFocus: _, onBlur: h }) => [
3180
- O(vn, {
3200
+ control: W(({ id: v, disabled: m, placeholder: p, onFocus: w, onBlur: h }) => [
3201
+ O(pn, {
3181
3202
  id: v,
3182
- modelValue: s.value,
3183
- "onUpdate:modelValue": c,
3203
+ modelValue: r.value,
3204
+ "onUpdate:modelValue": s,
3184
3205
  onFocus: (y) => {
3185
- _(y), i(y);
3206
+ w(y), i(y);
3186
3207
  },
3187
3208
  onBlur: (y) => {
3188
- h(y), r(y);
3209
+ h(y), c(y);
3189
3210
  },
3190
3211
  placeholder: p,
3191
3212
  disabled: m,
@@ -3196,7 +3217,7 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3196
3217
  _: 1
3197
3218
  }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error", "helpText", "appearance"]));
3198
3219
  }
3199
- }), Qa = { class: "input" }, Za = ["value", "type", "placeholder", "disabled"], ei = /* @__PURE__ */ T({
3220
+ }), Za = { class: "input" }, ei = ["value", "type", "placeholder", "disabled"], ti = /* @__PURE__ */ T({
3200
3221
  __name: "input",
3201
3222
  props: /* @__PURE__ */ ee({
3202
3223
  icon: {},
@@ -3210,19 +3231,19 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3210
3231
  }),
3211
3232
  emits: /* @__PURE__ */ ee(["focus", "blur"], ["update:modelValue"]),
3212
3233
  setup(e, { emit: n }) {
3213
- const t = n, o = ve(e, "modelValue"), l = (s) => {
3214
- o.value = s.target.value;
3234
+ const t = n, o = ve(e, "modelValue"), l = (r) => {
3235
+ o.value = r.target.value;
3215
3236
  }, a = () => {
3216
3237
  o.value = "";
3217
- }, i = (s) => {
3218
- t("focus", s);
3219
- }, r = (s) => {
3220
- t("blur", s);
3221
- }, c = E(() => !o.value);
3222
- return (s, u) => {
3238
+ }, i = (r) => {
3239
+ t("focus", r);
3240
+ }, c = (r) => {
3241
+ t("blur", r);
3242
+ }, s = C(() => !o.value);
3243
+ return (r, u) => {
3223
3244
  const d = K("VjIcon");
3224
- return f(), g("div", Qa, [
3225
- e.icon ? (f(), M(d, {
3245
+ return f(), g("div", Za, [
3246
+ e.icon ? (f(), P(d, {
3226
3247
  key: 0,
3227
3248
  icon: e.icon,
3228
3249
  size: S(q).S
@@ -3231,14 +3252,14 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3231
3252
  value: o.value,
3232
3253
  onInput: l,
3233
3254
  onFocus: i,
3234
- onBlur: r,
3255
+ onBlur: c,
3235
3256
  type: e.type,
3236
3257
  placeholder: e.placeholder,
3237
3258
  disabled: e.disabled
3238
- }, null, 40, Za),
3239
- e.clearable && !e.disabled ? (f(), M(d, {
3259
+ }, null, 40, ei),
3260
+ e.clearable && !e.disabled ? (f(), P(d, {
3240
3261
  key: 1,
3241
- class: z(["clear-icon", { invisible: c.value }]),
3262
+ class: z(["clear-icon", { invisible: s.value }]),
3242
3263
  icon: S(F).CLOSE,
3243
3264
  size: S(q).S,
3244
3265
  onClick: a
@@ -3246,7 +3267,7 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3246
3267
  ]);
3247
3268
  };
3248
3269
  }
3249
- }), mn = /* @__PURE__ */ B(ei, [["__scopeId", "data-v-3187d49c"]]), ti = /* @__PURE__ */ T({
3270
+ }), hn = /* @__PURE__ */ D(ti, [["__scopeId", "data-v-3187d49c"]]), ni = /* @__PURE__ */ T({
3250
3271
  __name: "input-text",
3251
3272
  props: {
3252
3273
  modelValue: {},
@@ -3265,15 +3286,15 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3265
3286
  },
3266
3287
  emits: ["update:modelValue", "input", "focus", "blur"],
3267
3288
  setup(e, { emit: n }) {
3268
- const t = e, o = n, l = (s) => o("update:modelValue", s), a = (s) => o("input", s), i = (s) => o("focus", s), r = (s) => o("blur", s), c = (s) => {
3269
- l(s ?? "");
3289
+ const t = e, o = n, l = (r) => o("update:modelValue", r), a = (r) => o("input", r), i = (r) => o("focus", r), c = (r) => o("blur", r), s = (r) => {
3290
+ l(r ?? "");
3270
3291
  };
3271
- return (s, u) => (f(), M(ze, {
3292
+ return (r, u) => (f(), P(ze, {
3272
3293
  modelValue: e.modelValue,
3273
3294
  "onUpdate:modelValue": l,
3274
3295
  onInput: a,
3275
3296
  onFocus: i,
3276
- onBlur: r,
3297
+ onBlur: c,
3277
3298
  label: e.label,
3278
3299
  id: e.id,
3279
3300
  placeholder: e.placeholder,
@@ -3286,17 +3307,17 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3286
3307
  labelPosition: e.labelPosition,
3287
3308
  appearance: e.appearance
3288
3309
  }, {
3289
- control: W(({ id: d, disabled: v, placeholder: m, onFocus: p, onBlur: _ }) => [
3290
- O(mn, {
3310
+ control: W(({ id: d, disabled: v, placeholder: m, onFocus: p, onBlur: w }) => [
3311
+ O(hn, {
3291
3312
  id: d,
3292
3313
  modelValue: e.modelValue,
3293
3314
  type: e.type,
3294
- "onUpdate:modelValue": c,
3315
+ "onUpdate:modelValue": s,
3295
3316
  onFocus: (h) => {
3296
3317
  p(h), i(h);
3297
3318
  },
3298
3319
  onBlur: (h) => {
3299
- _(h), r(h);
3320
+ w(h), c(h);
3300
3321
  },
3301
3322
  placeholder: m,
3302
3323
  disabled: v,
@@ -3306,10 +3327,10 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3306
3327
  _: 1
3307
3328
  }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "helpText", "labelPosition", "appearance"]));
3308
3329
  }
3309
- }), ni = { class: "shell-navigation-item" }, oi = { class: "shell-navigation-item-label" }, li = {
3330
+ }), oi = { class: "shell-navigation-item" }, li = { class: "shell-navigation-item-label" }, ai = {
3310
3331
  key: 1,
3311
3332
  class: "shell-navigation-item-link"
3312
- }, ai = ["aria-expanded"], ii = { class: "shell-navigation-item-label" }, si = /* @__PURE__ */ T({
3333
+ }, ii = ["aria-expanded"], si = { class: "shell-navigation-item-label" }, ri = /* @__PURE__ */ T({
3313
3334
  __name: "shell-navigation-item",
3314
3335
  props: {
3315
3336
  label: {},
@@ -3317,30 +3338,30 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3317
3338
  to: {}
3318
3339
  },
3319
3340
  setup(e) {
3320
- const n = Ut(), t = E(() => !!n.default), o = C(!1), l = C(null), a = C(null), { floatingStyles: i } = gt(l, a, {
3341
+ const n = Wt(), t = C(() => !!n.default), o = E(!1), l = E(null), a = E(null), { floatingStyles: i } = bt(l, a, {
3321
3342
  placement: "right-start",
3322
3343
  middleware: [Ze(8), tt(), et({ padding: 8 })],
3323
3344
  whileElementsMounted: Qe
3324
- }), r = (v) => {
3345
+ }), c = (v) => {
3325
3346
  t.value && (o.value = !o.value);
3326
- }, c = () => {
3347
+ }, s = () => {
3327
3348
  o.value = !1;
3328
- }, s = (v) => {
3329
- c();
3349
+ }, r = (v) => {
3350
+ s();
3330
3351
  }, u = (v) => {
3331
- (v.key === "Escape" || v.key === "Esc") && c();
3352
+ (v.key === "Escape" || v.key === "Esc") && s();
3332
3353
  }, d = (v) => {
3333
3354
  const m = v.target;
3334
- m && (l.value && l.value.contains(m) || a.value && a.value.contains(m) || c());
3355
+ m && (l.value && l.value.contains(m) || a.value && a.value.contains(m) || s());
3335
3356
  };
3336
3357
  return X(o, (v) => {
3337
3358
  v ? (window.addEventListener("keydown", u), window.addEventListener("pointerdown", d)) : (window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d));
3338
3359
  }), Re(() => {
3339
3360
  window.removeEventListener("keydown", u), window.removeEventListener("pointerdown", d);
3340
3361
  }), (v, m) => {
3341
- const p = K("VjIcon"), _ = K("RouterLink"), h = K("VjMenu");
3342
- return f(), g("li", ni, [
3343
- e.to ? (f(), M(_, {
3362
+ const p = K("VjIcon"), w = K("RouterLink"), h = K("VjMenu");
3363
+ return f(), g("li", oi, [
3364
+ e.to ? (f(), P(w, {
3344
3365
  key: 0,
3345
3366
  to: e.to,
3346
3367
  class: "shell-navigation-item-link"
@@ -3350,15 +3371,15 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3350
3371
  icon: e.icon,
3351
3372
  class: "shell-navigation-item-icon"
3352
3373
  }, null, 8, ["icon"]),
3353
- x("label", oi, D(e.label), 1)
3374
+ x("label", li, B(e.label), 1)
3354
3375
  ]),
3355
3376
  _: 1
3356
- }, 8, ["to"])) : (f(), g("div", li, [
3377
+ }, 8, ["to"])) : (f(), g("div", ai, [
3357
3378
  x("button", {
3358
3379
  ref_key: "buttonRef",
3359
3380
  ref: l,
3360
3381
  class: "shell-navigation-item-button",
3361
- onClick: N(r, ["stop"]),
3382
+ onClick: N(c, ["stop"]),
3362
3383
  "aria-expanded": o.value,
3363
3384
  type: "button"
3364
3385
  }, [
@@ -3366,71 +3387,71 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3366
3387
  icon: e.icon,
3367
3388
  class: "shell-navigation-item-icon"
3368
3389
  }, null, 8, ["icon"]),
3369
- x("label", ii, D(e.label), 1)
3370
- ], 8, ai),
3390
+ x("label", si, B(e.label), 1)
3391
+ ], 8, ii),
3371
3392
  O(Oe, { name: "menu" }, {
3372
3393
  default: W(() => [
3373
- o.value ? (f(), M(h, {
3394
+ o.value ? (f(), P(h, {
3374
3395
  key: 0,
3375
3396
  ref_key: "floatingRef",
3376
3397
  ref: a,
3377
3398
  style: G(S(i)),
3378
3399
  class: "shell-navigation-item-menu",
3379
- onClose: c,
3380
- onClick: N(s, ["stop"])
3400
+ onClose: s,
3401
+ onClick: N(r, ["stop"])
3381
3402
  }, {
3382
3403
  default: W(() => [
3383
- j(v.$slots, "default", {}, void 0, !0)
3404
+ M(v.$slots, "default", {}, void 0, !0)
3384
3405
  ]),
3385
3406
  _: 3
3386
3407
  }, 8, ["style"])) : L("", !0)
3387
3408
  ]),
3388
3409
  _: 3
3389
3410
  }),
3390
- (f(), M(Pe, { to: "body" }, [
3411
+ (f(), P(je, { to: "body" }, [
3391
3412
  o.value ? (f(), g("div", {
3392
3413
  key: 0,
3393
3414
  class: "menu-backdrop",
3394
- onClick: c
3415
+ onClick: s
3395
3416
  })) : L("", !0)
3396
3417
  ]))
3397
3418
  ]))
3398
3419
  ]);
3399
3420
  };
3400
3421
  }
3401
- }), ri = /* @__PURE__ */ B(si, [["__scopeId", "data-v-3a50d1c2"]]), ci = { class: "navigation-top" }, ui = {
3422
+ }), ci = /* @__PURE__ */ D(ri, [["__scopeId", "data-v-3a50d1c2"]]), ui = { class: "navigation-top" }, di = {
3402
3423
  key: 0,
3403
3424
  class: "navigation-bottom"
3404
- }, di = /* @__PURE__ */ T({
3425
+ }, fi = /* @__PURE__ */ T({
3405
3426
  __name: "shell-navigation",
3406
3427
  setup(e) {
3407
- const n = Kt(xi, Vi()), t = E(() => n.showLabels);
3428
+ const n = ut(ki, Ci()), t = C(() => n.showLabels);
3408
3429
  return (o, l) => {
3409
3430
  const a = K("VjShellNavigationItem");
3410
3431
  return f(), g("nav", {
3411
3432
  class: z(["shell-navigation", { "with-labels": t.value }])
3412
3433
  }, [
3413
- x("ul", ci, [
3414
- S(n).hasParent && S(n).backRoute.value ? (f(), M(a, {
3434
+ x("ul", ui, [
3435
+ S(n).hasParent && S(n).backRoute.value ? (f(), P(a, {
3415
3436
  key: 0,
3416
3437
  to: S(n).backRoute.value,
3417
3438
  label: "BACK",
3418
3439
  icon: S(F).HOME
3419
3440
  }, null, 8, ["to", "icon"])) : L("", !0),
3420
- (f(!0), g(Z, null, ge(S(n).childRoutes.value, (i) => (f(), M(a, {
3441
+ (f(!0), g(Z, null, ge(S(n).childRoutes.value, (i) => (f(), P(a, {
3421
3442
  key: i.name,
3422
3443
  to: { name: i.name },
3423
3444
  label: i.meta.label,
3424
3445
  icon: i.meta.icon ?? S(F).HOME
3425
3446
  }, null, 8, ["to", "label", "icon"]))), 128))
3426
3447
  ]),
3427
- o.$slots.fixed ? (f(), g("ul", ui, [
3428
- j(o.$slots, "fixed", {}, void 0, !0)
3448
+ o.$slots.fixed ? (f(), g("ul", di, [
3449
+ M(o.$slots, "fixed", {}, void 0, !0)
3429
3450
  ])) : L("", !0)
3430
3451
  ], 2);
3431
3452
  };
3432
3453
  }
3433
- }), pn = /* @__PURE__ */ B(di, [["__scopeId", "data-v-306cfc22"]]), fi = { class: "shell" }, vi = { class: "shell-title" }, mi = ["src"], pi = { class: "header-actions" }, hi = /* @__PURE__ */ T({
3454
+ }), gn = /* @__PURE__ */ D(fi, [["__scopeId", "data-v-306cfc22"]]), vi = { class: "shell" }, mi = { class: "shell-title" }, pi = ["src"], hi = { class: "header-actions" }, gi = /* @__PURE__ */ T({
3434
3455
  __name: "shell",
3435
3456
  props: {
3436
3457
  title: {},
@@ -3438,56 +3459,56 @@ const xa = ["data-colspan", "data-newline"], ka = ["for"], Va = { class: "form-f
3438
3459
  showNavigation: { type: Boolean }
3439
3460
  },
3440
3461
  setup(e) {
3441
- const n = Si(), t = nt(n, "asideComponent"), o = nt(n, "hasAside"), l = nt(n, "asideData"), a = E(() => {
3462
+ const n = Ri(), t = nt(n, "asideComponent"), o = nt(n, "hasAside"), l = nt(n, "asideData"), a = C(() => {
3442
3463
  const i = l.value;
3443
3464
  return i && typeof i == "object" ? i : {};
3444
3465
  });
3445
- return (i, r) => {
3446
- const c = K("router-view");
3447
- return f(), g("div", fi, [
3466
+ return (i, c) => {
3467
+ const s = K("router-view");
3468
+ return f(), g("div", vi, [
3448
3469
  x("header", null, [
3449
- x("span", vi, [
3470
+ x("span", mi, [
3450
3471
  e.icon ? (f(), g("img", {
3451
3472
  key: 0,
3452
3473
  src: e.icon,
3453
3474
  alt: "Shell Icon"
3454
- }, null, 8, mi)) : L("", !0),
3455
- x("h1", null, D(e.title), 1)
3475
+ }, null, 8, pi)) : L("", !0),
3476
+ x("h1", null, B(e.title), 1)
3456
3477
  ]),
3457
- x("div", pi, [
3458
- j(i.$slots, "header-actions", {}, void 0, !0)
3478
+ x("div", hi, [
3479
+ M(i.$slots, "header-actions", {}, void 0, !0)
3459
3480
  ])
3460
3481
  ]),
3461
3482
  x("div", {
3462
3483
  class: z(["shell-content", { "with-navigation": e.showNavigation }])
3463
3484
  }, [
3464
- e.showNavigation ? (f(), M(S(pn), { key: 0 }, rt({ _: 2 }, [
3485
+ e.showNavigation ? (f(), P(S(gn), { key: 0 }, rt({ _: 2 }, [
3465
3486
  i.$slots?.["navigation-fixed"] ? {
3466
3487
  name: "fixed",
3467
3488
  fn: W(() => [
3468
- j(i.$slots, "navigation-fixed", {}, void 0, !0)
3489
+ M(i.$slots, "navigation-fixed", {}, void 0, !0)
3469
3490
  ]),
3470
3491
  key: "0"
3471
3492
  } : void 0
3472
3493
  ]), 1024)) : L("", !0),
3473
3494
  x("main", null, [
3474
- j(i.$slots, "default", {}, () => [
3475
- O(c)
3495
+ M(i.$slots, "default", {}, () => [
3496
+ O(s)
3476
3497
  ], !0)
3477
3498
  ]),
3478
3499
  x("aside", {
3479
3500
  class: z({ "aside-visible": o.value })
3480
3501
  }, [
3481
- (f(), M(Wt(t.value), kn(Vn(a.value)), null, 16))
3502
+ (f(), P(Kt(t.value), Vn(Cn(a.value)), null, 16))
3482
3503
  ], 2)
3483
3504
  ], 2),
3484
- r[0] || (r[0] = x("footer", null, null, -1))
3505
+ c[0] || (c[0] = x("footer", null, null, -1))
3485
3506
  ]);
3486
3507
  };
3487
3508
  }
3488
- }), gi = /* @__PURE__ */ B(hi, [["__scopeId", "data-v-4dfd0097"]]);
3489
- class bi {
3490
- notifications = C([]);
3509
+ }), bi = /* @__PURE__ */ D(gi, [["__scopeId", "data-v-4dfd0097"]]);
3510
+ class yi {
3511
+ notifications = E([]);
3491
3512
  notificationIdCounter = 0;
3492
3513
  /**
3493
3514
  * Gibt die reaktive Liste der Notifications zurück
@@ -3503,14 +3524,14 @@ class bi {
3503
3524
  * @returns Die ID der Notification
3504
3525
  */
3505
3526
  show(n, t, o, l) {
3506
- const a = `notification-${++this.notificationIdCounter}-${Date.now()}`, i = n === "error" ? void 0 : l ?? 5e3, r = {
3527
+ const a = `notification-${++this.notificationIdCounter}-${Date.now()}`, i = n === "error" ? void 0 : l ?? 5e3, c = {
3507
3528
  id: a,
3508
3529
  type: n,
3509
3530
  title: t,
3510
3531
  message: o,
3511
3532
  duration: i
3512
3533
  };
3513
- return this.notifications.value.unshift(r), i && setTimeout(() => {
3534
+ return this.notifications.value.unshift(c), i && setTimeout(() => {
3514
3535
  this.remove(a);
3515
3536
  }, i), a;
3516
3537
  }
@@ -3552,15 +3573,15 @@ class bi {
3552
3573
  this.notifications.value = [];
3553
3574
  }
3554
3575
  }
3555
- const Ht = new bi(), yi = { class: "notifications" }, wi = /* @__PURE__ */ T({
3576
+ const Ut = new yi(), wi = { class: "notifications" }, _i = /* @__PURE__ */ T({
3556
3577
  __name: "notifications",
3557
3578
  setup(e) {
3558
- const n = Ht.getNotifications(), t = (o) => Ht.remove(o);
3559
- return (o, l) => (f(), M(Pe, { to: "body" }, [
3560
- x("div", yi, [
3579
+ const n = Ut.getNotifications(), t = (o) => Ut.remove(o);
3580
+ return (o, l) => (f(), P(je, { to: "body" }, [
3581
+ x("div", wi, [
3561
3582
  O(En, { name: "notification" }, {
3562
3583
  default: W(() => [
3563
- (f(!0), g(Z, null, ge(S(n), (a) => (f(), M(yt, {
3584
+ (f(!0), g(Z, null, ge(S(n), (a) => (f(), P(wt, {
3564
3585
  key: a.id,
3565
3586
  type: a.type,
3566
3587
  title: a.title,
@@ -3573,49 +3594,49 @@ const Ht = new bi(), yi = { class: "notifications" }, wi = /* @__PURE__ */ T({
3573
3594
  ])
3574
3595
  ]));
3575
3596
  }
3576
- }), _i = /* @__PURE__ */ B(wi, [["__scopeId", "data-v-543c499f"]]), xi = "navigationProvider";
3577
- function ki(e) {
3597
+ }), xi = /* @__PURE__ */ D(_i, [["__scopeId", "data-v-543c499f"]]), ki = "navigationProvider";
3598
+ function Vi(e) {
3578
3599
  return !!e.meta && "icon" in e.meta && "label" in e.meta;
3579
3600
  }
3580
- const Vi = () => {
3581
- const e = Sn(), n = Rn(), t = !0, o = E(() => {
3601
+ const Ci = () => {
3602
+ const e = Rn(), n = Tn(), t = !0, o = C(() => {
3582
3603
  const u = e.getRoutes();
3583
3604
  return u.filter((d) => d.path !== "/" && !u.some((v) => v.children?.some((m) => m.name === d.name)));
3584
- }), l = E(() => {
3605
+ }), l = C(() => {
3585
3606
  const u = n.matched;
3586
3607
  return u.length ? u[u.length - 1] : null;
3587
- }), a = E(() => {
3608
+ }), a = C(() => {
3588
3609
  const u = n.matched;
3589
3610
  return u.length > 1 ? u[u.length - 2] : null;
3590
- }), i = E(() => !!(l.value?.children?.length || a.value)), r = E(() => l.value?.children?.length ? l.value : a.value?.children?.length ? a.value : null), c = E(() => {
3591
- if (!r.value) return null;
3592
- const d = e.getRoutes().find((v) => v.children?.some((m) => m.name === r.value.name));
3611
+ }), i = C(() => !!(l.value?.children?.length || a.value)), c = C(() => l.value?.children?.length ? l.value : a.value?.children?.length ? a.value : null), s = C(() => {
3612
+ if (!c.value) return null;
3613
+ const d = e.getRoutes().find((v) => v.children?.some((m) => m.name === c.value.name));
3593
3614
  return d ? { name: d.name } : { path: "/" };
3594
- }), s = E(() => {
3615
+ }), r = C(() => {
3595
3616
  let u = [];
3596
- return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(ki);
3617
+ return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(Vi);
3597
3618
  });
3598
3619
  return {
3599
3620
  hasParent: i,
3600
- backRoute: c,
3601
- childRoutes: s,
3621
+ backRoute: s,
3622
+ childRoutes: r,
3602
3623
  showLabels: t
3603
3624
  };
3604
- }, zi = (e, n = !0, t = void 0) => {
3605
- const o = Cn(e) ? e : C(e), l = !!t, a = C(t || null);
3625
+ }, Ii = (e, n = !0, t = void 0) => {
3626
+ const o = Ln(e) ? e : E(e), l = !!t, a = E(t || null);
3606
3627
  return {
3607
3628
  hasParent: l,
3608
3629
  backRoute: a,
3609
3630
  childRoutes: o,
3610
3631
  showLabels: n
3611
3632
  };
3612
- }, wt = C(!1), _t = C(null), xt = C(null);
3633
+ }, _t = E(!1), xt = E(null), kt = E(null);
3613
3634
  let Le = [];
3614
- const hn = (e) => (Le.push(e), () => {
3635
+ const bn = (e) => (Le.push(e), () => {
3615
3636
  Le = Le.filter((n) => n !== e);
3616
- }), Ei = (e, n) => (Le = [], _t.value = e, xt.value = n ?? null, wt.value = !0, {
3617
- onClose: (t) => hn(t)
3618
- }), Ci = (e) => {
3637
+ }), Ei = (e, n) => (Le = [], xt.value = e, kt.value = n ?? null, _t.value = !0, {
3638
+ onClose: (t) => bn(t)
3639
+ }), Li = (e) => {
3619
3640
  try {
3620
3641
  Le.forEach((n) => {
3621
3642
  try {
@@ -3625,18 +3646,18 @@ const hn = (e) => (Le.push(e), () => {
3625
3646
  }
3626
3647
  });
3627
3648
  } finally {
3628
- wt.value = !1, setTimeout(Li, 1e3);
3649
+ _t.value = !1, setTimeout($i, 1e3);
3629
3650
  }
3630
- }, Li = () => {
3631
- Le = [], _t.value = null, xt.value = null;
3632
- }, $i = {
3633
- asideComponent: _t,
3634
- asideData: xt,
3651
+ }, $i = () => {
3652
+ Le = [], xt.value = null, kt.value = null;
3653
+ }, Si = {
3654
+ asideComponent: xt,
3655
+ asideData: kt,
3635
3656
  showAside: Ei,
3636
- closeAside: Ci,
3637
- onAsideClose: hn,
3638
- hasAside: wt
3639
- }, Si = () => $i, Ii = (e, n) => {
3657
+ closeAside: Li,
3658
+ onAsideClose: bn,
3659
+ hasAside: _t
3660
+ }, Ri = () => Si, Hi = (e, n) => {
3640
3661
  let t = null;
3641
3662
  return (...l) => {
3642
3663
  t && clearTimeout(t), t = setTimeout(() => {
@@ -3644,7 +3665,7 @@ const hn = (e) => (Le.push(e), () => {
3644
3665
  }, n);
3645
3666
  };
3646
3667
  };
3647
- class Ri {
3668
+ class Ti {
3648
3669
  containerElement = null;
3649
3670
  apps = [];
3650
3671
  mainApp = null;
@@ -3654,6 +3675,9 @@ class Ri {
3654
3675
  ensureContainer() {
3655
3676
  return this.containerElement || (this.containerElement = document.createElement("div"), this.containerElement.id = "vj-dialog-container", document.body.appendChild(this.containerElement)), this.containerElement;
3656
3677
  }
3678
+ inheritAppContext(n) {
3679
+ this.mainApp && (Object.assign(n.config.globalProperties, this.mainApp.config.globalProperties), Object.assign(n._context.provides, this.mainApp._context.provides), Object.assign(n._context.components, this.mainApp._context.components), Object.assign(n._context.directives, this.mainApp._context.directives), Object.assign(n.config.compilerOptions, this.mainApp.config.compilerOptions), n.config.errorHandler = this.mainApp.config.errorHandler, n.config.warnHandler = this.mainApp.config.warnHandler, n.config.performance = this.mainApp.config.performance, n.config.optionMergeStrategies = this.mainApp.config.optionMergeStrategies, n._context.mixins.push(...this.mainApp._context.mixins));
3680
+ }
3657
3681
  open(n) {
3658
3682
  return new Promise((t) => {
3659
3683
  const o = this.ensureContainer(), l = document.createElement("div");
@@ -3661,12 +3685,12 @@ class Ri {
3661
3685
  let a = !1;
3662
3686
  const i = () => {
3663
3687
  a || (a = !0, setTimeout(() => {
3664
- const c = this.apps.find((s) => s.element === l);
3665
- c && (c.app.unmount(), this.apps = this.apps.filter((s) => s !== c)), l.remove();
3688
+ const s = this.apps.find((r) => r.element === l);
3689
+ s && (s.app.unmount(), this.apps = this.apps.filter((r) => r !== s)), l.remove();
3666
3690
  }, 300));
3667
- }, r = Ln({
3691
+ }, c = $n({
3668
3692
  setup() {
3669
- return () => $n(dt, {
3693
+ return () => Sn(ft, {
3670
3694
  modelValue: !0,
3671
3695
  title: n.title,
3672
3696
  message: n.message,
@@ -3684,13 +3708,16 @@ class Ri {
3684
3708
  onCancel: () => {
3685
3709
  t(!1), i();
3686
3710
  },
3711
+ onResolve: (s) => {
3712
+ t(s), i();
3713
+ },
3687
3714
  onClose: () => {
3688
3715
  a || t(!1), i();
3689
3716
  }
3690
3717
  });
3691
3718
  }
3692
3719
  });
3693
- this.mainApp && (Object.assign(r.config.globalProperties, this.mainApp.config.globalProperties), Object.assign(r._context.provides, this.mainApp._context.provides)), r.component("VjCard", at), r.component("VjIcon", be), r.component("VjButton", ut), r.mount(l), this.apps.push({ app: r, element: l });
3720
+ this.inheritAppContext(c), c.component("VjCard", at), c.component("VjIcon", be), c.component("VjButton", dt), c.mount(l), this.apps.push({ app: c, element: l });
3694
3721
  });
3695
3722
  }
3696
3723
  confirm(n) {
@@ -3718,20 +3745,26 @@ class Ri {
3718
3745
  }), this.apps = [];
3719
3746
  }
3720
3747
  }
3721
- const Ti = new Ri();
3722
- function Hi() {
3723
- return Ti;
3748
+ const Ai = new Ti();
3749
+ function Ui() {
3750
+ return Ai;
3751
+ }
3752
+ function Wi() {
3753
+ const e = ut(Yt, null);
3754
+ if (!e)
3755
+ throw new Error("useDialogController must be used inside a dialog component.");
3756
+ return e;
3724
3757
  }
3725
- const Ui = () => {
3726
- const e = C(!1), n = C(null), t = () => {
3758
+ const Ni = () => {
3759
+ const e = E(!1), n = E(null), t = () => {
3727
3760
  n.value = null;
3728
3761
  };
3729
3762
  class o {
3730
3763
  inner;
3731
3764
  defaultValue;
3732
3765
  handlers = [];
3733
- constructor(i, r) {
3734
- this.inner = i, this.defaultValue = r;
3766
+ constructor(i, c) {
3767
+ this.inner = i, this.defaultValue = c;
3735
3768
  }
3736
3769
  onError(i) {
3737
3770
  return this.handlers.push(i), this;
@@ -3742,11 +3775,11 @@ const Ui = () => {
3742
3775
  return await this.inner();
3743
3776
  } catch (i) {
3744
3777
  n.value = i;
3745
- for (const r of this.handlers)
3778
+ for (const c of this.handlers)
3746
3779
  try {
3747
- r(i);
3748
- } catch (c) {
3749
- console.error("onError handler failed", c);
3780
+ c(i);
3781
+ } catch (s) {
3782
+ console.error("onError handler failed", s);
3750
3783
  }
3751
3784
  if (this.defaultValue !== void 0) return this.defaultValue;
3752
3785
  throw i;
@@ -3754,78 +3787,80 @@ const Ui = () => {
3754
3787
  e.value = !1;
3755
3788
  }
3756
3789
  }
3757
- then(i, r) {
3758
- return this.exec().then(i, r);
3790
+ then(i, c) {
3791
+ return this.exec().then(i, c);
3759
3792
  }
3760
3793
  }
3761
3794
  function l(a, i) {
3762
3795
  return new o(a, i);
3763
3796
  }
3764
3797
  return { run: l, running: e, error: n, clearError: t };
3765
- }, Wi = {
3798
+ }, Ki = {
3766
3799
  install(e) {
3767
- e.component("VjAmountBar", _a), e.component("VjButton", ut), e.component("VjButtonBar", Pn), e.component("VjCard", at), e.component("VjChip", Xt), e.component("VjChipGroup", Gt), e.component("VjChipSelector", wo), e.component("VjCarousel", at), e.component("VjCheckbox", qn), e.component("VjDotMenu", vl), e.component("VjDialog", dt), e.component("VjIcon", be), e.component("VjLinkButton", pl), e.component("VjMenu", kl), e.component("VjMenuAction", yl), e.component("VjPage", Jl), e.component("VjPaginator", ea), e.component("VjTab", ma), e.component("VjTabView", fa), e.component("VjSkeleton", ya), e.component("VjSpinner", cn), e.component("VjNotifications", _i), e.component("VjNotification", yt), e.component("VjInput", mn), e.component("VjSelect", fn), e.component("VjTextArea", vn), e.component("VjFormField", ze), e.component("VjFormLayout", Ra), e.component("VjFormSection", Oa), e.component("VjInputText", ti), e.component("VjInputTextArea", Ja), e.component("VjInputSelect", za), e.component("VjInputSlider", Xa), e.component("VjShellNavigation", pn), e.component("VjShellNavigationItem", ri), e.component("VjShell", gi), e.component("VjSearchField", la), e.component("VjSeparator", ia), e.directive("focus", Cl), e.directive("resize", Ll), e.directive("compact", Vl), e.directive("tooltip", un);
3800
+ e.component("VjAmountBar", xa), e.component("VjButton", dt), e.component("VjButtonBar", Mn), e.component("VjCard", at), e.component("VjChip", Gt), e.component("VjChipGroup", qt), e.component("VjChipSelector", _o), e.component("VjCarousel", at), e.component("VjCheckbox", Yn), e.component("VjDotMenu", ml), e.component("VjDialog", ft), e.component("VjIcon", be), e.component("VjLinkButton", hl), e.component("VjMenu", Vl), e.component("VjMenuAction", wl), e.component("VjPage", Ql), e.component("VjPaginator", ta), e.component("VjTab", pa), e.component("VjTabView", va), e.component("VjSkeleton", wa), e.component("VjSpinner", dn), e.component("VjNotifications", xi), e.component("VjNotification", wt), e.component("VjInput", hn), e.component("VjSelect", mn), e.component("VjTextArea", pn), e.component("VjFormField", ze), e.component("VjFormLayout", Ta), e.component("VjFormSection", Da), e.component("VjInputText", ni), e.component("VjInputTextArea", Qa), e.component("VjInputSelect", Ia), e.component("VjInputSlider", Ga), e.component("VjShellNavigation", gn), e.component("VjShellNavigationItem", ci), e.component("VjShell", bi), e.component("VjSearchField", aa), e.component("VjSeparator", sa), e.directive("focus", Ll), e.directive("resize", $l), e.directive("compact", Cl), e.directive("tooltip", fn);
3768
3801
  }
3769
3802
  };
3770
3803
  export {
3771
- _a as AmountBar,
3772
- ut as Button,
3773
- Pn as ButtonBar,
3804
+ xa as AmountBar,
3805
+ dt as Button,
3806
+ Mn as ButtonBar,
3774
3807
  at as Card,
3775
- Di as Carousel,
3776
- qn as Checkbox,
3777
- Xt as Chip,
3778
- Gt as ChipGroup,
3779
- wo as ChipSelector,
3780
- dt as Dialog,
3781
- vl as DotMenu,
3782
- ji as EditableLabel,
3783
- Cl as FocusFirstDirective,
3808
+ ji as Carousel,
3809
+ Yn as Checkbox,
3810
+ Gt as Chip,
3811
+ qt as ChipGroup,
3812
+ _o as ChipSelector,
3813
+ ft as Dialog,
3814
+ ml as DotMenu,
3815
+ Pi as EditableLabel,
3816
+ Ll as FocusFirstDirective,
3784
3817
  ze as FormField,
3785
- Ra as FormLayout,
3786
- Oa as FormSection,
3818
+ Ta as FormLayout,
3819
+ Da as FormSection,
3787
3820
  be as Icon,
3788
3821
  F as IconNames,
3789
3822
  q as IconSize,
3790
- mn as Input,
3791
- za as InputSelect,
3792
- Xa as InputSlider,
3793
- ti as InputText,
3794
- Ja as InputTextArea,
3795
- pl as LinkButton,
3796
- Ol as LoadingDirective,
3797
- kl as Menu,
3798
- yl as MenuAction,
3799
- yt as NotificationComponent,
3800
- _i as Notifications,
3801
- Jl as Page,
3802
- ea as Paginator,
3803
- Pi as Radio,
3804
- Ll as ResizeDirective,
3805
- la as SearchField,
3806
- fn as Select,
3807
- ia as Separator,
3808
- gi as Shell,
3809
- pn as ShellNavigation,
3810
- ri as ShellNavigationItem,
3811
- ya as Skeleton,
3812
- cn as Spinner,
3813
- ma as Tab,
3814
- fa as TabView,
3815
- vn as TextArea,
3816
- un as TooltipDirective,
3817
- Wi as VjComponents,
3818
- xi as VjNavigationProviderKey,
3819
- Vl as compactDirective,
3820
- Mi as configureVueUI,
3821
- Ti as dialogService,
3822
- It as getVueUIConfig,
3823
- Ht as notificationService,
3824
- Fi as resetVueUIConfig,
3825
- Si as useAsideService,
3826
- Ii as useDebounce,
3827
- Hi as useDialog,
3828
- Ui as useFlow,
3829
- Vi as useRouterNavigationProvider,
3830
- zi as useStaticNavigationProvider
3823
+ hn as Input,
3824
+ Ia as InputSelect,
3825
+ Ga as InputSlider,
3826
+ ni as InputText,
3827
+ Qa as InputTextArea,
3828
+ hl as LinkButton,
3829
+ Dl as LoadingDirective,
3830
+ Vl as Menu,
3831
+ wl as MenuAction,
3832
+ wt as NotificationComponent,
3833
+ xi as Notifications,
3834
+ Ql as Page,
3835
+ ta as Paginator,
3836
+ Mi as Radio,
3837
+ $l as ResizeDirective,
3838
+ aa as SearchField,
3839
+ mn as Select,
3840
+ sa as Separator,
3841
+ bi as Shell,
3842
+ gn as ShellNavigation,
3843
+ ci as ShellNavigationItem,
3844
+ wa as Skeleton,
3845
+ dn as Spinner,
3846
+ pa as Tab,
3847
+ va as TabView,
3848
+ pn as TextArea,
3849
+ fn as TooltipDirective,
3850
+ Ki as VjComponents,
3851
+ Yt as VjDialogControllerKey,
3852
+ ki as VjNavigationProviderKey,
3853
+ Cl as compactDirective,
3854
+ Fi as configureVueUI,
3855
+ Ai as dialogService,
3856
+ Ht as getVueUIConfig,
3857
+ Ut as notificationService,
3858
+ zi as resetVueUIConfig,
3859
+ Ri as useAsideService,
3860
+ Hi as useDebounce,
3861
+ Ui as useDialog,
3862
+ Wi as useDialogController,
3863
+ Ni as useFlow,
3864
+ Ci as useRouterNavigationProvider,
3865
+ Ii as useStaticNavigationProvider
3831
3866
  };