@vanjana/vue-ui 0.1.59 → 0.1.61

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,36 +1,36 @@
1
- import { createElementBlock as x, openBlock as v, createElementVNode as k, renderSlot as B, defineComponent as T, computed as C, normalizeClass as H, createBlock as P, createCommentVNode as L, createTextVNode as je, unref as E, toDisplayString as I, useSlots as Yt, mergeModels as ue, useModel as ye, ref as R, onMounted as Le, nextTick as he, onBeforeUnmount as Ae, watch as q, resolveComponent as W, createVNode as D, normalizeStyle as Z, Fragment as ge, renderList as We, Teleport as Ze, Transition as Ie, withCtx as K, withModifiers as de, createSlots as Jt, resolveDynamicComponent as Vt, mergeProps as Qt, shallowRef as Zt, getCurrentScope as en, onScopeDispose as tn, shallowReadonly as _e, withKeys as nn, provide as on, inject as kt, toRef as Ge, normalizeProps as ln, guardReactiveProps as an, isRef as sn, createApp as rn, h as cn } from "vue";
2
- import { useRouter as un, useRoute as dn } from "vue-router";
1
+ import { createElementBlock as x, openBlock as v, createElementVNode as k, renderSlot as T, defineComponent as B, computed as C, normalizeClass as N, createBlock as P, createCommentVNode as L, createTextVNode as ze, unref as E, toDisplayString as j, useSlots as tn, mergeModels as ue, useModel as ye, ref as R, onMounted as Ae, nextTick as he, onBeforeUnmount as Oe, watch as q, resolveComponent as U, createVNode as D, normalizeStyle as Z, Fragment as be, renderList as Xe, Teleport as tt, Transition as Ie, withCtx as W, withModifiers as de, createSlots as Rt, resolveDynamicComponent as Et, mergeProps as nn, shallowRef as on, getCurrentScope as ln, onScopeDispose as an, shallowReadonly as _e, withKeys as sn, provide as rn, inject as St, toRef as Je, normalizeProps as cn, guardReactiveProps as un, isRef as dn, createApp as fn, h as mn } from "vue";
2
+ import { useRouter as vn, useRoute as pn } from "vue-router";
3
3
  const M = (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
- }, fn = {}, mn = { class: "button-bar" }, vn = { class: "left" }, pn = { class: "right" };
9
- function hn(e, n) {
10
- return v(), x("div", mn, [
11
- k("div", vn, [
12
- B(e.$slots, "left", {}, void 0, !0)
8
+ }, hn = {}, bn = { class: "button-bar" }, gn = { class: "left" }, yn = { class: "right" };
9
+ function wn(e, n) {
10
+ return v(), x("div", bn, [
11
+ k("div", gn, [
12
+ T(e.$slots, "left", {}, void 0, !0)
13
13
  ]),
14
- k("div", pn, [
15
- B(e.$slots, "default", {}, void 0, !0)
14
+ k("div", yn, [
15
+ T(e.$slots, "default", {}, void 0, !0)
16
16
  ])
17
17
  ]);
18
18
  }
19
- const gn = /* @__PURE__ */ M(fn, [["render", hn], ["__scopeId", "data-v-45a6ed1a"]]);
20
- var N = /* @__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.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", 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.INFO = "fa-regular fa-circle-info", e.WARNING = "fa-regular fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", 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.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))(N || {}), U = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(U || {});
21
- const Oe = /* @__PURE__ */ T({
19
+ const xn = /* @__PURE__ */ M(hn, [["render", wn], ["__scopeId", "data-v-45a6ed1a"]]);
20
+ var H = /* @__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.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", 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.INFO = "fa-regular fa-circle-info", e.WARNING = "fa-regular fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", 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.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))(H || {}), X = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(X || {});
21
+ const Te = /* @__PURE__ */ B({
22
22
  __name: "icon",
23
23
  props: {
24
24
  icon: {},
25
25
  size: {}
26
26
  },
27
27
  setup(e) {
28
- const n = e, t = U.M, o = C(() => `${n.icon} ${n.size ?? t}`);
29
- return (l, a) => (v(), x("i", {
30
- class: H(o.value)
28
+ const n = e, t = X.M, o = C(() => `${n.icon} ${n.size ?? t}`);
29
+ return (l, s) => (v(), x("i", {
30
+ class: N(o.value)
31
31
  }, null, 2));
32
32
  }
33
- }), bn = ["disabled"], yn = /* @__PURE__ */ T({
33
+ }), _n = ["disabled"], Vn = /* @__PURE__ */ B({
34
34
  __name: "button",
35
35
  props: {
36
36
  label: {},
@@ -41,51 +41,51 @@ const Oe = /* @__PURE__ */ T({
41
41
  disabled: { type: Boolean }
42
42
  },
43
43
  setup(e) {
44
- const n = e, t = U.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
45
- return (a, s) => (v(), x("button", {
46
- class: H(["button", o.value, { "icon-only": l.value }]),
44
+ const n = e, t = X.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
45
+ return (s, a) => (v(), x("button", {
46
+ class: N(["button", o.value, { "icon-only": l.value }]),
47
47
  disabled: e.disabled
48
48
  }, [
49
- e.icon ? (v(), P(Oe, {
49
+ e.icon ? (v(), P(Te, {
50
50
  key: 0,
51
51
  icon: e.icon,
52
52
  size: E(t)
53
53
  }, null, 8, ["icon", "size"])) : L("", !0),
54
- je(" " + I(e.label), 1)
55
- ], 10, bn));
54
+ ze(" " + j(e.label), 1)
55
+ ], 10, _n));
56
56
  }
57
- }), Ct = /* @__PURE__ */ M(yn, [["__scopeId", "data-v-f31c33cf"]]), wn = {
57
+ }), $t = /* @__PURE__ */ M(Vn, [["__scopeId", "data-v-f31c33cf"]]), kn = {
58
58
  key: 0,
59
59
  class: "header-actions"
60
- }, xn = { key: 0 }, _n = /* @__PURE__ */ T({
60
+ }, Cn = { key: 0 }, Rn = /* @__PURE__ */ B({
61
61
  __name: "card",
62
62
  props: {
63
63
  header: {},
64
64
  scrollable: { type: Boolean }
65
65
  },
66
66
  setup(e) {
67
- const n = Yt();
67
+ const n = tn();
68
68
  return (t, o) => (v(), x("div", {
69
- class: H(["card", { scrollable: e.scrollable }])
69
+ class: N(["card", { scrollable: e.scrollable }])
70
70
  }, [
71
71
  k("header", null, [
72
- k("h3", null, I(e.header), 1),
73
- E(n).headerActions ? (v(), x("span", wn, [
74
- B(t.$slots, "headerActions", {}, void 0, !0)
72
+ k("h3", null, j(e.header), 1),
73
+ E(n).headerActions ? (v(), x("span", kn, [
74
+ T(t.$slots, "headerActions", {}, void 0, !0)
75
75
  ])) : L("", !0)
76
76
  ]),
77
77
  k("main", null, [
78
- B(t.$slots, "default", {}, void 0, !0)
78
+ T(t.$slots, "default", {}, void 0, !0)
79
79
  ]),
80
- E(n).footer ? (v(), x("footer", xn, [
81
- B(t.$slots, "footer", {}, void 0, !0)
80
+ E(n).footer ? (v(), x("footer", Cn, [
81
+ T(t.$slots, "footer", {}, void 0, !0)
82
82
  ])) : L("", !0)
83
83
  ], 2));
84
84
  }
85
- }), Rt = /* @__PURE__ */ M(_n, [["__scopeId", "data-v-ec6ab562"]]), Vn = { class: "checkbox" }, kn = ["checked", "disabled"], Cn = {
85
+ }), Lt = /* @__PURE__ */ M(Rn, [["__scopeId", "data-v-ec6ab562"]]), En = { class: "checkbox" }, Sn = ["checked", "disabled"], $n = {
86
86
  key: 0,
87
87
  class: "checkbox-label"
88
- }, Rn = /* @__PURE__ */ T({
88
+ }, Ln = /* @__PURE__ */ B({
89
89
  __name: "checkbox",
90
90
  props: /* @__PURE__ */ ue({
91
91
  label: {},
@@ -100,14 +100,14 @@ const Oe = /* @__PURE__ */ T({
100
100
  const l = o.target;
101
101
  n.value = l.checked;
102
102
  };
103
- return (o, l) => (v(), x("label", Vn, [
103
+ return (o, l) => (v(), x("label", En, [
104
104
  k("input", {
105
105
  type: "checkbox",
106
106
  checked: n.value,
107
107
  onChange: t,
108
108
  disabled: e.disabled,
109
109
  class: "checkbox-input"
110
- }, null, 40, kn),
110
+ }, null, 40, Sn),
111
111
  l[0] || (l[0] = k("span", { class: "checkbox-box" }, [
112
112
  k("svg", {
113
113
  class: "checkbox-icon",
@@ -125,13 +125,13 @@ const Oe = /* @__PURE__ */ T({
125
125
  })
126
126
  ])
127
127
  ], -1)),
128
- e.label ? (v(), x("span", Cn, I(e.label), 1)) : L("", !0)
128
+ e.label ? (v(), x("span", $n, j(e.label), 1)) : L("", !0)
129
129
  ]));
130
130
  }
131
- }), ga = /* @__PURE__ */ M(Rn, [["__scopeId", "data-v-e2d27ecb"]]), En = ["aria-label"], Sn = {
131
+ }), Ca = /* @__PURE__ */ M(Ln, [["__scopeId", "data-v-e2d27ecb"]]), An = ["aria-label"], On = {
132
132
  key: 0,
133
133
  class: "carousel-indicators"
134
- }, $n = /* @__PURE__ */ T({
134
+ }, Tn = /* @__PURE__ */ B({
135
135
  __name: "carousel",
136
136
  props: {
137
137
  autoplay: { type: Boolean },
@@ -142,99 +142,99 @@ const Oe = /* @__PURE__ */ T({
142
142
  ariaLabel: {}
143
143
  },
144
144
  setup(e) {
145
- const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, s = n.startIndex ?? 0, u = n.ariaLabel ?? "Carousel", c = R(Math.max(0, s)), r = R(null), i = R(null), d = R(0), f = R(0);
146
- let m = !1;
145
+ const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, s = n.pauseOnHover ?? !0, a = n.startIndex ?? 0, r = n.ariaLabel ?? "Carousel", i = R(Math.max(0, a)), u = R(null), c = R(null), d = R(0), m = R(0);
146
+ let f = !1;
147
147
  const p = R(0), y = R(!1);
148
148
  let V = null, w = null;
149
149
  const _ = R(null), h = R(null), O = () => {
150
- p.value = r.value ? r.value.children.length : 0, p.value === 0 ? c.value = 0 : c.value >= p.value && (c.value = l ? 0 : p.value - 1), F();
151
- }, A = C(() => d.value > 0 ? { transform: `translateX(${-c.value * d.value + f.value}px)` } : { transform: `translateX(-${c.value * 100}%)` }), F = () => {
152
- r.value && Array.from(r.value.children).forEach((S, ve) => {
150
+ p.value = u.value ? u.value.children.length : 0, p.value === 0 ? i.value = 0 : i.value >= p.value && (i.value = l ? 0 : p.value - 1), F();
151
+ }, A = C(() => d.value > 0 ? { transform: `translateX(${-i.value * d.value + m.value}px)` } : { transform: `translateX(-${i.value * 100}%)` }), F = () => {
152
+ u.value && Array.from(u.value.children).forEach((S, ve) => {
153
153
  try {
154
- ve === c.value ? S.removeAttribute("aria-hidden") : S.setAttribute("aria-hidden", "true");
154
+ ve === i.value ? S.removeAttribute("aria-hidden") : S.setAttribute("aria-hidden", "true");
155
155
  } catch {
156
156
  }
157
157
  });
158
- }, g = () => {
159
- b(), !(!t || p.value <= 1) && (a && y.value || (V = setTimeout(() => {
160
- j(), g();
161
- }, o)));
162
158
  }, b = () => {
159
+ g(), !(!t || p.value <= 1) && (s && y.value || (V = setTimeout(() => {
160
+ z(), b();
161
+ }, o)));
162
+ }, g = () => {
163
163
  V && (clearTimeout(V), V = null);
164
164
  }, $ = () => {
165
- p.value !== 0 && (c.value <= 0 ? c.value = l ? p.value - 1 : 0 : c.value--);
166
- }, j = () => {
167
- p.value !== 0 && (c.value >= p.value - 1 ? c.value = l ? 0 : p.value - 1 : c.value++);
168
- }, z = (S) => {
169
- S < 0 || S >= p.value || (c.value = S);
165
+ p.value !== 0 && (i.value <= 0 ? i.value = l ? p.value - 1 : 0 : i.value--);
166
+ }, z = () => {
167
+ p.value !== 0 && (i.value >= p.value - 1 ? i.value = l ? 0 : p.value - 1 : i.value++);
168
+ }, I = (S) => {
169
+ S < 0 || S >= p.value || (i.value = S);
170
170
  }, se = () => {
171
- y.value = !0, a && b();
171
+ y.value = !0, s && g();
172
172
  }, ie = () => {
173
- y.value = !1, g();
173
+ y.value = !1, b();
174
174
  }, re = (S) => {
175
- S.key === "ArrowLeft" ? $() : S.key === "ArrowRight" && j();
175
+ S.key === "ArrowLeft" ? $() : S.key === "ArrowRight" && z();
176
176
  };
177
177
  let xe = 0, J = 0;
178
178
  const ne = (S) => {
179
179
  xe = S.touches[0].clientX, J = 0;
180
- }, X = (S) => {
180
+ }, K = (S) => {
181
181
  J = S.touches[0].clientX - xe;
182
182
  }, Q = () => {
183
- J > 50 ? $() : J < -50 && j(), J = 0;
183
+ J > 50 ? $() : J < -50 && z(), J = 0;
184
184
  };
185
- let Fe = 0;
186
- const rt = (S) => {
185
+ let De = 0;
186
+ const dt = (S) => {
187
187
  if (S.isPrimary !== !1 && !(S.pointerType === "mouse" && S.button !== 0)) {
188
- m = !0, Fe = S.clientX, f.value = 0, b();
188
+ f = !0, De = S.clientX, m.value = 0, g();
189
189
  try {
190
190
  S.target?.setPointerCapture?.(S.pointerId);
191
191
  } catch {
192
192
  }
193
193
  }
194
- }, ct = (S) => {
195
- m && (f.value = S.clientX - Fe, S.preventDefault());
196
- }, ut = () => {
197
- if (!m) return;
198
- m = !1;
194
+ }, ft = (S) => {
195
+ f && (m.value = S.clientX - De, S.preventDefault());
196
+ }, mt = () => {
197
+ if (!f) return;
198
+ f = !1;
199
199
  const S = Math.max(50, d.value * 0.15);
200
- f.value > S ? $() : f.value < -S && j(), f.value = 0, g();
201
- }, dt = (S) => {
200
+ m.value > S ? $() : m.value < -S && z(), m.value = 0, b();
201
+ }, vt = (S) => {
202
202
  try {
203
203
  S.target?.releasePointerCapture?.(S.pointerId);
204
204
  } catch {
205
205
  }
206
- ut();
207
- }, ft = () => ut();
208
- return Le(() => {
206
+ mt();
207
+ }, pt = () => mt();
208
+ return Ae(() => {
209
209
  he(() => {
210
- if (O(), r.value && (w = new MutationObserver(O), w.observe(r.value, { childList: !0 }), r.value.addEventListener("touchstart", ne, { passive: !0 }), r.value.addEventListener("touchmove", X, { passive: !0 }), r.value.addEventListener("touchend", Q)), i.value) {
210
+ if (O(), u.value && (w = new MutationObserver(O), w.observe(u.value, { childList: !0 }), u.value.addEventListener("touchstart", ne, { passive: !0 }), u.value.addEventListener("touchmove", K, { passive: !0 }), u.value.addEventListener("touchend", Q)), c.value) {
211
211
  const S = () => {
212
- d.value = i.value ? i.value.clientWidth : 0;
212
+ d.value = c.value ? c.value.clientWidth : 0;
213
213
  };
214
214
  S();
215
215
  const ve = window.ResizeObserver;
216
- if (ve && i.value) {
216
+ if (ve && c.value) {
217
217
  const pe = new ve(() => S());
218
- pe.observe(i.value), _.value = pe;
218
+ pe.observe(c.value), _.value = pe;
219
219
  } else
220
220
  window.addEventListener("resize", S), h.value = S;
221
- i.value && (i.value.addEventListener("pointerdown", rt), i.value.addEventListener("pointermove", ct), i.value.addEventListener("pointerup", dt), i.value.addEventListener("pointercancel", ft));
221
+ c.value && (c.value.addEventListener("pointerdown", dt), c.value.addEventListener("pointermove", ft), c.value.addEventListener("pointerup", vt), c.value.addEventListener("pointercancel", pt));
222
222
  }
223
- F(), g();
223
+ F(), b();
224
224
  });
225
- }), Ae(() => {
226
- b(), w && r.value && w.disconnect(), r.value && (r.value.removeEventListener("touchstart", ne), r.value.removeEventListener("touchmove", X), r.value.removeEventListener("touchend", Q)), i.value && (_.value && _.value.disconnect && _.value.disconnect(), h.value && window.removeEventListener("resize", h.value), i.value.removeEventListener("pointerdown", rt), i.value.removeEventListener("pointermove", ct), i.value.removeEventListener("pointerup", dt), i.value.removeEventListener("pointercancel", ft));
227
- }), q([c, () => p.value], () => {
225
+ }), Oe(() => {
226
+ g(), w && u.value && w.disconnect(), u.value && (u.value.removeEventListener("touchstart", ne), u.value.removeEventListener("touchmove", K), u.value.removeEventListener("touchend", Q)), c.value && (_.value && _.value.disconnect && _.value.disconnect(), h.value && window.removeEventListener("resize", h.value), c.value.removeEventListener("pointerdown", dt), c.value.removeEventListener("pointermove", ft), c.value.removeEventListener("pointerup", vt), c.value.removeEventListener("pointercancel", pt));
227
+ }), q([i, () => p.value], () => {
228
228
  F();
229
- }), q([() => y.value, c], () => {
230
- g();
229
+ }), q([() => y.value, i], () => {
230
+ b();
231
231
  }), (S, ve) => {
232
- const pe = W("VjButton");
232
+ const pe = U("VjButton");
233
233
  return v(), x("div", {
234
234
  class: "carousel",
235
235
  role: "region",
236
236
  "aria-roledescription": "carousel",
237
- "aria-label": E(u),
237
+ "aria-label": E(r),
238
238
  tabindex: "0",
239
239
  onKeydown: re,
240
240
  onMouseenter: se,
@@ -243,45 +243,45 @@ const Oe = /* @__PURE__ */ T({
243
243
  k("div", {
244
244
  class: "carousel-window",
245
245
  ref_key: "windowRef",
246
- ref: i
246
+ ref: c
247
247
  }, [
248
248
  k("div", {
249
249
  class: "carousel-track",
250
250
  ref_key: "track",
251
- ref: r,
251
+ ref: u,
252
252
  style: Z(A.value)
253
253
  }, [
254
- B(S.$slots, "default", {}, void 0, !0)
254
+ T(S.$slots, "default", {}, void 0, !0)
255
255
  ], 4)
256
256
  ], 512),
257
257
  D(pe, {
258
258
  class: "carousel-btn prev",
259
- icon: E(N).PREVIOUS,
259
+ icon: E(H).PREVIOUS,
260
260
  onClick: $,
261
261
  type: "button",
262
262
  "aria-label": "Previous slide"
263
263
  }, null, 8, ["icon"]),
264
264
  D(pe, {
265
265
  class: "carousel-btn next",
266
- icon: E(N).NEXT,
267
- onClick: j,
266
+ icon: E(H).NEXT,
267
+ onClick: z,
268
268
  type: "button",
269
269
  "aria-label": "Next slide"
270
270
  }, null, 8, ["icon"]),
271
- p.value > 1 ? (v(), x("div", Sn, [
272
- (v(!0), x(ge, null, We(p.value, (Ee) => (v(), P(pe, {
273
- key: Ee - 1,
274
- class: H(["indicator", { active: Ee - 1 === c.value }]),
275
- onClick: (va) => z(Ee - 1),
276
- "aria-current": Ee - 1 === c.value,
277
- "aria-label": `Go to slide ${Ee}`,
271
+ p.value > 1 ? (v(), x("div", On, [
272
+ (v(!0), x(be, null, Xe(p.value, (Se) => (v(), P(pe, {
273
+ key: Se - 1,
274
+ class: N(["indicator", { active: Se - 1 === i.value }]),
275
+ onClick: (_a) => I(Se - 1),
276
+ "aria-current": Se - 1 === i.value,
277
+ "aria-label": `Go to slide ${Se}`,
278
278
  type: "button"
279
279
  }, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
280
280
  ])) : L("", !0)
281
- ], 40, En);
281
+ ], 40, An);
282
282
  };
283
283
  }
284
- }), Ln = /* @__PURE__ */ M($n, [["__scopeId", "data-v-232abca2"]]), An = { class: "dialog-content" }, On = { key: 1 }, Tn = { class: "dialog-footer" }, Bn = /* @__PURE__ */ T({
284
+ }), Bn = /* @__PURE__ */ M(Tn, [["__scopeId", "data-v-232abca2"]]), Mn = { class: "dialog-content" }, Pn = { key: 1 }, Fn = { class: "dialog-footer" }, Dn = /* @__PURE__ */ B({
285
285
  __name: "dialog",
286
286
  props: {
287
287
  modelValue: { type: Boolean, default: !1 },
@@ -301,35 +301,35 @@ const Oe = /* @__PURE__ */ T({
301
301
  const t = e, o = n, l = R(t.modelValue);
302
302
  q(
303
303
  () => t.modelValue,
304
- (i) => l.value = i
304
+ (c) => l.value = c
305
305
  );
306
- const a = () => {
306
+ const s = () => {
307
307
  l.value = !1, o("update:modelValue", !1), o("close");
308
- }, s = () => {
309
- o("confirm"), a();
310
- }, u = () => {
311
- o("cancel"), a();
312
- }, c = () => {
313
- t.closeOnBackdrop && a();
314
- }, r = (i) => {
315
- i.key === "Escape" && t.closeOnEscape && l.value && a();
308
+ }, a = () => {
309
+ o("confirm"), s();
310
+ }, r = () => {
311
+ o("cancel"), s();
312
+ }, i = () => {
313
+ t.closeOnBackdrop && s();
314
+ }, u = (c) => {
315
+ c.key === "Escape" && t.closeOnEscape && l.value && s();
316
316
  };
317
- return Le(() => {
318
- document.addEventListener("keydown", r);
319
- }), Ae(() => {
320
- document.removeEventListener("keydown", r);
321
- }), (i, d) => {
322
- const f = W("VjIcon"), m = W("VjButton"), p = W("VjCard");
323
- return v(), P(Ze, { to: "body" }, [
317
+ return Ae(() => {
318
+ document.addEventListener("keydown", u);
319
+ }), Oe(() => {
320
+ document.removeEventListener("keydown", u);
321
+ }), (c, d) => {
322
+ const m = U("VjIcon"), f = U("VjButton"), p = U("VjCard");
323
+ return v(), P(tt, { to: "body" }, [
324
324
  D(Ie, { name: "dialog-fade" }, {
325
- default: K(() => [
325
+ default: W(() => [
326
326
  l.value ? (v(), x("div", {
327
327
  key: 0,
328
328
  class: "dialog-backdrop",
329
- onClick: c
329
+ onClick: i
330
330
  }, [
331
331
  D(Ie, { name: "dialog-scale" }, {
332
- default: K(() => [
332
+ default: W(() => [
333
333
  l.value ? (v(), x("div", {
334
334
  key: 0,
335
335
  class: "dialog-wrapper",
@@ -339,36 +339,36 @@ const Oe = /* @__PURE__ */ T({
339
339
  D(p, {
340
340
  class: "dialog-card",
341
341
  header: e.title || ""
342
- }, Jt({
343
- headerActions: K(() => [
344
- D(f, {
345
- icon: E(N).CLOSE,
346
- size: E(U).S,
342
+ }, Rt({
343
+ headerActions: W(() => [
344
+ D(m, {
345
+ icon: E(H).CLOSE,
346
+ size: E(X).S,
347
347
  class: "dialog-close",
348
- onClick: a
348
+ onClick: s
349
349
  }, null, 8, ["icon", "size"])
350
350
  ]),
351
- default: K(() => [
352
- k("div", An, [
353
- e.component ? (v(), P(Vt(e.component), Qt({ key: 0 }, e.componentProps, { onClose: a }), null, 16)) : e.message ? (v(), x("div", On, I(e.message), 1)) : B(i.$slots, "default", { key: 2 }, void 0, !0)
351
+ default: W(() => [
352
+ k("div", Mn, [
353
+ e.component ? (v(), P(Et(e.component), nn({ key: 0 }, e.componentProps, { onClose: s }), null, 16)) : e.message ? (v(), x("div", Pn, j(e.message), 1)) : T(c.$slots, "default", { key: 2 }, void 0, !0)
354
354
  ])
355
355
  ]),
356
356
  _: 2
357
357
  }, [
358
358
  e.showFooter ? {
359
359
  name: "footer",
360
- fn: K(() => [
361
- k("div", Tn, [
362
- B(i.$slots, "footer", {}, () => [
363
- e.showCancel ? (v(), P(m, {
360
+ fn: W(() => [
361
+ k("div", Fn, [
362
+ T(c.$slots, "footer", {}, () => [
363
+ e.showCancel ? (v(), P(f, {
364
364
  key: 0,
365
365
  secondary: "",
366
- onClick: u,
366
+ onClick: r,
367
367
  label: e.cancelText
368
368
  }, null, 8, ["label"])) : L("", !0),
369
- D(m, {
369
+ D(f, {
370
370
  primary: "",
371
- onClick: s,
371
+ onClick: a,
372
372
  label: e.confirmText
373
373
  }, null, 8, ["label"])
374
374
  ], !0)
@@ -388,78 +388,78 @@ const Oe = /* @__PURE__ */ T({
388
388
  ]);
389
389
  };
390
390
  }
391
- }), Et = /* @__PURE__ */ M(Bn, [["__scopeId", "data-v-6af510b3"]]), Ce = Math.min, G = Math.max, ze = Math.round, De = Math.floor, oe = (e) => ({
391
+ }), At = /* @__PURE__ */ M(Dn, [["__scopeId", "data-v-6af510b3"]]), Re = Math.min, G = Math.max, Ne = Math.round, je = Math.floor, oe = (e) => ({
392
392
  x: e,
393
393
  y: e
394
- }), Mn = {
394
+ }), jn = {
395
395
  left: "right",
396
396
  right: "left",
397
397
  bottom: "top",
398
398
  top: "bottom"
399
- }, Pn = {
399
+ }, zn = {
400
400
  start: "end",
401
401
  end: "start"
402
402
  };
403
- function mt(e, n, t) {
404
- return G(e, Ce(n, t));
403
+ function ht(e, n, t) {
404
+ return G(e, Re(n, t));
405
405
  }
406
- function Te(e, n) {
406
+ function Be(e, n) {
407
407
  return typeof e == "function" ? e(n) : e;
408
408
  }
409
409
  function fe(e) {
410
410
  return e.split("-")[0];
411
411
  }
412
- function Be(e) {
412
+ function Me(e) {
413
413
  return e.split("-")[1];
414
414
  }
415
- function St(e) {
415
+ function Ot(e) {
416
416
  return e === "x" ? "y" : "x";
417
417
  }
418
- function $t(e) {
418
+ function Tt(e) {
419
419
  return e === "y" ? "height" : "width";
420
420
  }
421
- const Fn = /* @__PURE__ */ new Set(["top", "bottom"]);
421
+ const In = /* @__PURE__ */ new Set(["top", "bottom"]);
422
422
  function ce(e) {
423
- return Fn.has(fe(e)) ? "y" : "x";
423
+ return In.has(fe(e)) ? "y" : "x";
424
424
  }
425
- function Lt(e) {
426
- return St(ce(e));
425
+ function Bt(e) {
426
+ return Ot(ce(e));
427
427
  }
428
- function Dn(e, n, t) {
428
+ function Nn(e, n, t) {
429
429
  t === void 0 && (t = !1);
430
- const o = Be(e), l = Lt(e), a = $t(l);
431
- let s = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
432
- return n.reference[a] > n.floating[a] && (s = He(s)), [s, He(s)];
430
+ const o = Me(e), l = Bt(e), s = Tt(l);
431
+ let a = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
432
+ return n.reference[s] > n.floating[s] && (a = He(a)), [a, He(a)];
433
433
  }
434
- function jn(e) {
434
+ function Hn(e) {
435
435
  const n = He(e);
436
- return [Je(e), n, Je(n)];
436
+ return [Ze(e), n, Ze(n)];
437
437
  }
438
- function Je(e) {
439
- return e.replace(/start|end/g, (n) => Pn[n]);
438
+ function Ze(e) {
439
+ return e.replace(/start|end/g, (n) => zn[n]);
440
440
  }
441
- const vt = ["left", "right"], pt = ["right", "left"], In = ["top", "bottom"], zn = ["bottom", "top"];
442
- function Hn(e, n, t) {
441
+ const bt = ["left", "right"], gt = ["right", "left"], Wn = ["top", "bottom"], Un = ["bottom", "top"];
442
+ function Xn(e, n, t) {
443
443
  switch (e) {
444
444
  case "top":
445
445
  case "bottom":
446
- return t ? n ? pt : vt : n ? vt : pt;
446
+ return t ? n ? gt : bt : n ? bt : gt;
447
447
  case "left":
448
448
  case "right":
449
- return n ? In : zn;
449
+ return n ? Wn : Un;
450
450
  default:
451
451
  return [];
452
452
  }
453
453
  }
454
- function Nn(e, n, t, o) {
455
- const l = Be(e);
456
- let a = Hn(fe(e), t === "start", o);
457
- return l && (a = a.map((s) => s + "-" + l), n && (a = a.concat(a.map(Je)))), a;
454
+ function Kn(e, n, t, o) {
455
+ const l = Me(e);
456
+ let s = Xn(fe(e), t === "start", o);
457
+ return l && (s = s.map((a) => a + "-" + l), n && (s = s.concat(s.map(Ze)))), s;
458
458
  }
459
459
  function He(e) {
460
- return e.replace(/left|right|bottom|top/g, (n) => Mn[n]);
460
+ return e.replace(/left|right|bottom|top/g, (n) => jn[n]);
461
461
  }
462
- function Wn(e) {
462
+ function qn(e) {
463
463
  return {
464
464
  top: 0,
465
465
  right: 0,
@@ -468,15 +468,15 @@ function Wn(e) {
468
468
  ...e
469
469
  };
470
470
  }
471
- function Un(e) {
472
- return typeof e != "number" ? Wn(e) : {
471
+ function Gn(e) {
472
+ return typeof e != "number" ? qn(e) : {
473
473
  top: e,
474
474
  right: e,
475
475
  bottom: e,
476
476
  left: e
477
477
  };
478
478
  }
479
- function Ne(e) {
479
+ function We(e) {
480
480
  const {
481
481
  x: n,
482
482
  y: t,
@@ -494,152 +494,152 @@ function Ne(e) {
494
494
  y: t
495
495
  };
496
496
  }
497
- function ht(e, n, t) {
497
+ function yt(e, n, t) {
498
498
  let {
499
499
  reference: o,
500
500
  floating: l
501
501
  } = e;
502
- const a = ce(n), s = Lt(n), u = $t(s), c = fe(n), r = a === "y", i = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, f = o[u] / 2 - l[u] / 2;
503
- let m;
504
- switch (c) {
502
+ const s = ce(n), a = Bt(n), r = Tt(a), i = fe(n), u = s === "y", c = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, m = o[r] / 2 - l[r] / 2;
503
+ let f;
504
+ switch (i) {
505
505
  case "top":
506
- m = {
507
- x: i,
506
+ f = {
507
+ x: c,
508
508
  y: o.y - l.height
509
509
  };
510
510
  break;
511
511
  case "bottom":
512
- m = {
513
- x: i,
512
+ f = {
513
+ x: c,
514
514
  y: o.y + o.height
515
515
  };
516
516
  break;
517
517
  case "right":
518
- m = {
518
+ f = {
519
519
  x: o.x + o.width,
520
520
  y: d
521
521
  };
522
522
  break;
523
523
  case "left":
524
- m = {
524
+ f = {
525
525
  x: o.x - l.width,
526
526
  y: d
527
527
  };
528
528
  break;
529
529
  default:
530
- m = {
530
+ f = {
531
531
  x: o.x,
532
532
  y: o.y
533
533
  };
534
534
  }
535
- switch (Be(n)) {
535
+ switch (Me(n)) {
536
536
  case "start":
537
- m[s] -= f * (t && r ? -1 : 1);
537
+ f[a] -= m * (t && u ? -1 : 1);
538
538
  break;
539
539
  case "end":
540
- m[s] += f * (t && r ? -1 : 1);
540
+ f[a] += m * (t && u ? -1 : 1);
541
541
  break;
542
542
  }
543
- return m;
543
+ return f;
544
544
  }
545
- const Xn = async (e, n, t) => {
545
+ const Yn = async (e, n, t) => {
546
546
  const {
547
547
  placement: o = "bottom",
548
548
  strategy: l = "absolute",
549
- middleware: a = [],
550
- platform: s
551
- } = t, u = a.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(n));
552
- let r = await s.getElementRects({
549
+ middleware: s = [],
550
+ platform: a
551
+ } = t, r = s.filter(Boolean), i = await (a.isRTL == null ? void 0 : a.isRTL(n));
552
+ let u = await a.getElementRects({
553
553
  reference: e,
554
554
  floating: n,
555
555
  strategy: l
556
556
  }), {
557
- x: i,
557
+ x: c,
558
558
  y: d
559
- } = ht(r, o, c), f = o, m = {}, p = 0;
560
- for (let y = 0; y < u.length; y++) {
559
+ } = yt(u, o, i), m = o, f = {}, p = 0;
560
+ for (let y = 0; y < r.length; y++) {
561
561
  const {
562
562
  name: V,
563
563
  fn: w
564
- } = u[y], {
564
+ } = r[y], {
565
565
  x: _,
566
566
  y: h,
567
567
  data: O,
568
568
  reset: A
569
569
  } = await w({
570
- x: i,
570
+ x: c,
571
571
  y: d,
572
572
  initialPlacement: o,
573
- placement: f,
573
+ placement: m,
574
574
  strategy: l,
575
- middlewareData: m,
576
- rects: r,
577
- platform: s,
575
+ middlewareData: f,
576
+ rects: u,
577
+ platform: a,
578
578
  elements: {
579
579
  reference: e,
580
580
  floating: n
581
581
  }
582
582
  });
583
- i = _ ?? i, d = h ?? d, m = {
584
- ...m,
583
+ c = _ ?? c, d = h ?? d, f = {
584
+ ...f,
585
585
  [V]: {
586
- ...m[V],
586
+ ...f[V],
587
587
  ...O
588
588
  }
589
- }, A && p <= 50 && (p++, typeof A == "object" && (A.placement && (f = A.placement), A.rects && (r = A.rects === !0 ? await s.getElementRects({
589
+ }, A && p <= 50 && (p++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (u = A.rects === !0 ? await a.getElementRects({
590
590
  reference: e,
591
591
  floating: n,
592
592
  strategy: l
593
593
  }) : A.rects), {
594
- x: i,
594
+ x: c,
595
595
  y: d
596
- } = ht(r, f, c)), y = -1);
596
+ } = yt(u, m, i)), y = -1);
597
597
  }
598
598
  return {
599
- x: i,
599
+ x: c,
600
600
  y: d,
601
- placement: f,
601
+ placement: m,
602
602
  strategy: l,
603
- middlewareData: m
603
+ middlewareData: f
604
604
  };
605
605
  };
606
- async function et(e, n) {
606
+ async function nt(e, n) {
607
607
  var t;
608
608
  n === void 0 && (n = {});
609
609
  const {
610
610
  x: o,
611
611
  y: l,
612
- platform: a,
613
- rects: s,
614
- elements: u,
615
- strategy: c
612
+ platform: s,
613
+ rects: a,
614
+ elements: r,
615
+ strategy: i
616
616
  } = e, {
617
- boundary: r = "clippingAncestors",
618
- rootBoundary: i = "viewport",
617
+ boundary: u = "clippingAncestors",
618
+ rootBoundary: c = "viewport",
619
619
  elementContext: d = "floating",
620
- altBoundary: f = !1,
621
- padding: m = 0
622
- } = Te(n, e), p = Un(m), V = u[f ? d === "floating" ? "reference" : "floating" : d], w = Ne(await a.getClippingRect({
623
- element: (t = await (a.isElement == null ? void 0 : a.isElement(V))) == null || t ? V : V.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(u.floating)),
624
- boundary: r,
625
- rootBoundary: i,
626
- strategy: c
620
+ altBoundary: m = !1,
621
+ padding: f = 0
622
+ } = Be(n, e), p = Gn(f), V = r[m ? d === "floating" ? "reference" : "floating" : d], w = We(await s.getClippingRect({
623
+ element: (t = await (s.isElement == null ? void 0 : s.isElement(V))) == null || t ? V : V.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
624
+ boundary: u,
625
+ rootBoundary: c,
626
+ strategy: i
627
627
  })), _ = d === "floating" ? {
628
628
  x: o,
629
629
  y: l,
630
- width: s.floating.width,
631
- height: s.floating.height
632
- } : s.reference, h = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(u.floating)), O = await (a.isElement == null ? void 0 : a.isElement(h)) ? await (a.getScale == null ? void 0 : a.getScale(h)) || {
630
+ width: a.floating.width,
631
+ height: a.floating.height
632
+ } : a.reference, h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), O = await (s.isElement == null ? void 0 : s.isElement(h)) ? await (s.getScale == null ? void 0 : s.getScale(h)) || {
633
633
  x: 1,
634
634
  y: 1
635
635
  } : {
636
636
  x: 1,
637
637
  y: 1
638
- }, A = Ne(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
639
- elements: u,
638
+ }, A = We(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
639
+ elements: r,
640
640
  rect: _,
641
641
  offsetParent: h,
642
- strategy: c
642
+ strategy: i
643
643
  }) : _);
644
644
  return {
645
645
  top: (w.top - A.top + p.top) / O.y,
@@ -648,7 +648,7 @@ async function et(e, n) {
648
648
  right: (A.right - w.right + p.right) / O.x
649
649
  };
650
650
  }
651
- const Kn = function(e) {
651
+ const Jn = function(e) {
652
652
  return e === void 0 && (e = {}), {
653
653
  name: "flip",
654
654
  options: e,
@@ -656,67 +656,67 @@ const Kn = function(e) {
656
656
  var t, o;
657
657
  const {
658
658
  placement: l,
659
- middlewareData: a,
660
- rects: s,
661
- initialPlacement: u,
662
- platform: c,
663
- elements: r
659
+ middlewareData: s,
660
+ rects: a,
661
+ initialPlacement: r,
662
+ platform: i,
663
+ elements: u
664
664
  } = n, {
665
- mainAxis: i = !0,
665
+ mainAxis: c = !0,
666
666
  crossAxis: d = !0,
667
- fallbackPlacements: f,
668
- fallbackStrategy: m = "bestFit",
667
+ fallbackPlacements: m,
668
+ fallbackStrategy: f = "bestFit",
669
669
  fallbackAxisSideDirection: p = "none",
670
670
  flipAlignment: y = !0,
671
671
  ...V
672
- } = Te(e, n);
673
- if ((t = a.arrow) != null && t.alignmentOffset)
672
+ } = Be(e, n);
673
+ if ((t = s.arrow) != null && t.alignmentOffset)
674
674
  return {};
675
- const w = fe(l), _ = ce(u), h = fe(u) === u, O = await (c.isRTL == null ? void 0 : c.isRTL(r.floating)), A = f || (h || !y ? [He(u)] : jn(u)), F = p !== "none";
676
- !f && F && A.push(...Nn(u, y, p, O));
677
- const g = [u, ...A], b = await et(n, V), $ = [];
678
- let j = ((o = a.flip) == null ? void 0 : o.overflows) || [];
679
- if (i && $.push(b[w]), d) {
680
- const re = Dn(l, s, O);
681
- $.push(b[re[0]], b[re[1]]);
675
+ const w = fe(l), _ = ce(r), h = fe(r) === r, O = await (i.isRTL == null ? void 0 : i.isRTL(u.floating)), A = m || (h || !y ? [He(r)] : Hn(r)), F = p !== "none";
676
+ !m && F && A.push(...Kn(r, y, p, O));
677
+ const b = [r, ...A], g = await nt(n, V), $ = [];
678
+ let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
679
+ if (c && $.push(g[w]), d) {
680
+ const re = Nn(l, a, O);
681
+ $.push(g[re[0]], g[re[1]]);
682
682
  }
683
- if (j = [...j, {
683
+ if (z = [...z, {
684
684
  placement: l,
685
685
  overflows: $
686
686
  }], !$.every((re) => re <= 0)) {
687
- var z, se;
688
- const re = (((z = a.flip) == null ? void 0 : z.index) || 0) + 1, xe = g[re];
687
+ var I, se;
688
+ const re = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, xe = b[re];
689
689
  if (xe && (!(d === "alignment" ? _ !== ce(xe) : !1) || // We leave the current main axis only if every placement on that axis
690
690
  // overflows the main axis.
691
- j.every((X) => ce(X.placement) === _ ? X.overflows[0] > 0 : !0)))
691
+ z.every((K) => ce(K.placement) === _ ? K.overflows[0] > 0 : !0)))
692
692
  return {
693
693
  data: {
694
694
  index: re,
695
- overflows: j
695
+ overflows: z
696
696
  },
697
697
  reset: {
698
698
  placement: xe
699
699
  }
700
700
  };
701
- let J = (se = j.filter((ne) => ne.overflows[0] <= 0).sort((ne, X) => ne.overflows[1] - X.overflows[1])[0]) == null ? void 0 : se.placement;
701
+ let J = (se = z.filter((ne) => ne.overflows[0] <= 0).sort((ne, K) => ne.overflows[1] - K.overflows[1])[0]) == null ? void 0 : se.placement;
702
702
  if (!J)
703
- switch (m) {
703
+ switch (f) {
704
704
  case "bestFit": {
705
705
  var ie;
706
- const ne = (ie = j.filter((X) => {
706
+ const ne = (ie = z.filter((K) => {
707
707
  if (F) {
708
- const Q = ce(X.placement);
708
+ const Q = ce(K.placement);
709
709
  return Q === _ || // Create a bias to the `y` side axis due to horizontal
710
710
  // reading directions favoring greater width.
711
711
  Q === "y";
712
712
  }
713
713
  return !0;
714
- }).map((X) => [X.placement, X.overflows.filter((Q) => Q > 0).reduce((Q, Fe) => Q + Fe, 0)]).sort((X, Q) => X[1] - Q[1])[0]) == null ? void 0 : ie[0];
714
+ }).map((K) => [K.placement, K.overflows.filter((Q) => Q > 0).reduce((Q, De) => Q + De, 0)]).sort((K, Q) => K[1] - Q[1])[0]) == null ? void 0 : ie[0];
715
715
  ne && (J = ne);
716
716
  break;
717
717
  }
718
718
  case "initialPlacement":
719
- J = u;
719
+ J = r;
720
720
  break;
721
721
  }
722
722
  if (l !== J)
@@ -729,16 +729,16 @@ const Kn = function(e) {
729
729
  return {};
730
730
  }
731
731
  };
732
- }, qn = /* @__PURE__ */ new Set(["left", "top"]);
733
- async function Gn(e, n) {
732
+ }, Qn = /* @__PURE__ */ new Set(["left", "top"]);
733
+ async function Zn(e, n) {
734
734
  const {
735
735
  placement: t,
736
736
  platform: o,
737
737
  elements: l
738
- } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), s = fe(t), u = Be(t), c = ce(t) === "y", r = qn.has(s) ? -1 : 1, i = a && c ? -1 : 1, d = Te(n, e);
738
+ } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), a = fe(t), r = Me(t), i = ce(t) === "y", u = Qn.has(a) ? -1 : 1, c = s && i ? -1 : 1, d = Be(n, e);
739
739
  let {
740
- mainAxis: f,
741
- crossAxis: m,
740
+ mainAxis: m,
741
+ crossAxis: f,
742
742
  alignmentAxis: p
743
743
  } = typeof d == "number" ? {
744
744
  mainAxis: d,
@@ -749,15 +749,15 @@ async function Gn(e, n) {
749
749
  crossAxis: d.crossAxis || 0,
750
750
  alignmentAxis: d.alignmentAxis
751
751
  };
752
- return u && typeof p == "number" && (m = u === "end" ? p * -1 : p), c ? {
753
- x: m * i,
754
- y: f * r
752
+ return r && typeof p == "number" && (f = r === "end" ? p * -1 : p), i ? {
753
+ x: f * c,
754
+ y: m * u
755
755
  } : {
756
- x: f * r,
757
- y: m * i
756
+ x: m * u,
757
+ y: f * c
758
758
  };
759
759
  }
760
- const Yn = function(e) {
760
+ const eo = function(e) {
761
761
  return e === void 0 && (e = 0), {
762
762
  name: "offset",
763
763
  options: e,
@@ -765,21 +765,21 @@ const Yn = function(e) {
765
765
  var t, o;
766
766
  const {
767
767
  x: l,
768
- y: a,
769
- placement: s,
770
- middlewareData: u
771
- } = n, c = await Gn(n, e);
772
- return s === ((t = u.offset) == null ? void 0 : t.placement) && (o = u.arrow) != null && o.alignmentOffset ? {} : {
773
- x: l + c.x,
774
- y: a + c.y,
768
+ y: s,
769
+ placement: a,
770
+ middlewareData: r
771
+ } = n, i = await Zn(n, e);
772
+ return a === ((t = r.offset) == null ? void 0 : t.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
773
+ x: l + i.x,
774
+ y: s + i.y,
775
775
  data: {
776
- ...c,
777
- placement: s
776
+ ...i,
777
+ placement: a
778
778
  }
779
779
  };
780
780
  }
781
781
  };
782
- }, Jn = function(e) {
782
+ }, to = function(e) {
783
783
  return e === void 0 && (e = {}), {
784
784
  name: "shift",
785
785
  options: e,
@@ -789,9 +789,9 @@ const Yn = function(e) {
789
789
  y: o,
790
790
  placement: l
791
791
  } = n, {
792
- mainAxis: a = !0,
793
- crossAxis: s = !1,
794
- limiter: u = {
792
+ mainAxis: s = !0,
793
+ crossAxis: a = !1,
794
+ limiter: r = {
795
795
  fn: (V) => {
796
796
  let {
797
797
  x: w,
@@ -803,23 +803,23 @@ const Yn = function(e) {
803
803
  };
804
804
  }
805
805
  },
806
- ...c
807
- } = Te(e, n), r = {
806
+ ...i
807
+ } = Be(e, n), u = {
808
808
  x: t,
809
809
  y: o
810
- }, i = await et(n, c), d = ce(fe(l)), f = St(d);
811
- let m = r[f], p = r[d];
812
- if (a) {
813
- const V = f === "y" ? "top" : "left", w = f === "y" ? "bottom" : "right", _ = m + i[V], h = m - i[w];
814
- m = mt(_, m, h);
815
- }
810
+ }, c = await nt(n, i), d = ce(fe(l)), m = Ot(d);
811
+ let f = u[m], p = u[d];
816
812
  if (s) {
817
- const V = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", _ = p + i[V], h = p - i[w];
818
- p = mt(_, p, h);
813
+ const V = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", _ = f + c[V], h = f - c[w];
814
+ f = ht(_, f, h);
815
+ }
816
+ if (a) {
817
+ const V = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", _ = p + c[V], h = p - c[w];
818
+ p = ht(_, p, h);
819
819
  }
820
- const y = u.fn({
820
+ const y = r.fn({
821
821
  ...n,
822
- [f]: m,
822
+ [m]: f,
823
823
  [d]: p
824
824
  });
825
825
  return {
@@ -828,14 +828,14 @@ const Yn = function(e) {
828
828
  x: y.x - t,
829
829
  y: y.y - o,
830
830
  enabled: {
831
- [f]: a,
832
- [d]: s
831
+ [m]: s,
832
+ [d]: a
833
833
  }
834
834
  }
835
835
  };
836
836
  }
837
837
  };
838
- }, Qn = function(e) {
838
+ }, no = function(e) {
839
839
  return e === void 0 && (e = {}), {
840
840
  name: "size",
841
841
  options: e,
@@ -843,31 +843,31 @@ const Yn = function(e) {
843
843
  var t, o;
844
844
  const {
845
845
  placement: l,
846
- rects: a,
847
- platform: s,
848
- elements: u
846
+ rects: s,
847
+ platform: a,
848
+ elements: r
849
849
  } = n, {
850
- apply: c = () => {
850
+ apply: i = () => {
851
851
  },
852
- ...r
853
- } = Te(e, n), i = await et(n, r), d = fe(l), f = Be(l), m = ce(l) === "y", {
852
+ ...u
853
+ } = Be(e, n), c = await nt(n, u), d = fe(l), m = Me(l), f = ce(l) === "y", {
854
854
  width: p,
855
855
  height: y
856
- } = a.floating;
856
+ } = s.floating;
857
857
  let V, w;
858
- d === "top" || d === "bottom" ? (V = d, w = f === (await (s.isRTL == null ? void 0 : s.isRTL(u.floating)) ? "start" : "end") ? "left" : "right") : (w = d, V = f === "end" ? "top" : "bottom");
859
- const _ = y - i.top - i.bottom, h = p - i.left - i.right, O = Ce(y - i[V], _), A = Ce(p - i[w], h), F = !n.middlewareData.shift;
860
- let g = O, b = A;
861
- if ((t = n.middlewareData.shift) != null && t.enabled.x && (b = h), (o = n.middlewareData.shift) != null && o.enabled.y && (g = _), F && !f) {
862
- const j = G(i.left, 0), z = G(i.right, 0), se = G(i.top, 0), ie = G(i.bottom, 0);
863
- m ? b = p - 2 * (j !== 0 || z !== 0 ? j + z : G(i.left, i.right)) : g = y - 2 * (se !== 0 || ie !== 0 ? se + ie : G(i.top, i.bottom));
858
+ d === "top" || d === "bottom" ? (V = d, w = m === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (w = d, V = m === "end" ? "top" : "bottom");
859
+ const _ = y - c.top - c.bottom, h = p - c.left - c.right, O = Re(y - c[V], _), A = Re(p - c[w], h), F = !n.middlewareData.shift;
860
+ let b = O, g = A;
861
+ if ((t = n.middlewareData.shift) != null && t.enabled.x && (g = h), (o = n.middlewareData.shift) != null && o.enabled.y && (b = _), F && !m) {
862
+ const z = G(c.left, 0), I = G(c.right, 0), se = G(c.top, 0), ie = G(c.bottom, 0);
863
+ f ? g = p - 2 * (z !== 0 || I !== 0 ? z + I : G(c.left, c.right)) : b = y - 2 * (se !== 0 || ie !== 0 ? se + ie : G(c.top, c.bottom));
864
864
  }
865
- await c({
865
+ await i({
866
866
  ...n,
867
- availableWidth: b,
868
- availableHeight: g
867
+ availableWidth: g,
868
+ availableHeight: b
869
869
  });
870
- const $ = await s.getDimensions(u.floating);
870
+ const $ = await a.getDimensions(r.floating);
871
871
  return p !== $.width || y !== $.height ? {
872
872
  reset: {
873
873
  rects: !0
@@ -876,11 +876,11 @@ const Yn = function(e) {
876
876
  }
877
877
  };
878
878
  };
879
- function Ue() {
879
+ function Ke() {
880
880
  return typeof window < "u";
881
881
  }
882
882
  function we(e) {
883
- return tt(e) ? (e.nodeName || "").toLowerCase() : "#document";
883
+ return ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
884
884
  }
885
885
  function Y(e) {
886
886
  var n;
@@ -888,37 +888,37 @@ function Y(e) {
888
888
  }
889
889
  function ae(e) {
890
890
  var n;
891
- return (n = (tt(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
891
+ return (n = (ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
892
892
  }
893
- function tt(e) {
894
- return Ue() ? e instanceof Node || e instanceof Y(e).Node : !1;
893
+ function ot(e) {
894
+ return Ke() ? e instanceof Node || e instanceof Y(e).Node : !1;
895
895
  }
896
896
  function ee(e) {
897
- return Ue() ? e instanceof Element || e instanceof Y(e).Element : !1;
897
+ return Ke() ? e instanceof Element || e instanceof Y(e).Element : !1;
898
898
  }
899
899
  function le(e) {
900
- return Ue() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
900
+ return Ke() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
901
901
  }
902
- function gt(e) {
903
- return !Ue() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
902
+ function wt(e) {
903
+ return !Ke() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
904
904
  }
905
- const Zn = /* @__PURE__ */ new Set(["inline", "contents"]);
906
- function Me(e) {
905
+ const oo = /* @__PURE__ */ new Set(["inline", "contents"]);
906
+ function Pe(e) {
907
907
  const {
908
908
  overflow: n,
909
909
  overflowX: t,
910
910
  overflowY: o,
911
911
  display: l
912
912
  } = te(e);
913
- return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !Zn.has(l);
913
+ return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !oo.has(l);
914
914
  }
915
- const eo = /* @__PURE__ */ new Set(["table", "td", "th"]);
916
- function to(e) {
917
- return eo.has(we(e));
915
+ const lo = /* @__PURE__ */ new Set(["table", "td", "th"]);
916
+ function ao(e) {
917
+ return lo.has(we(e));
918
918
  }
919
- const no = [":popover-open", ":modal"];
920
- function Xe(e) {
921
- return no.some((n) => {
919
+ const so = [":popover-open", ":modal"];
920
+ function qe(e) {
921
+ return so.some((n) => {
922
922
  try {
923
923
  return e.matches(n);
924
924
  } catch {
@@ -926,33 +926,33 @@ function Xe(e) {
926
926
  }
927
927
  });
928
928
  }
929
- const oo = ["transform", "translate", "scale", "rotate", "perspective"], lo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], ao = ["paint", "layout", "strict", "content"];
930
- function nt(e) {
931
- const n = ot(), t = ee(e) ? te(e) : e;
932
- return oo.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) || lo.some((o) => (t.willChange || "").includes(o)) || ao.some((o) => (t.contain || "").includes(o));
929
+ const io = ["transform", "translate", "scale", "rotate", "perspective"], ro = ["transform", "translate", "scale", "rotate", "perspective", "filter"], co = ["paint", "layout", "strict", "content"];
930
+ function lt(e) {
931
+ const n = at(), t = ee(e) ? te(e) : e;
932
+ return io.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) || ro.some((o) => (t.willChange || "").includes(o)) || co.some((o) => (t.contain || "").includes(o));
933
933
  }
934
- function so(e) {
934
+ function uo(e) {
935
935
  let n = me(e);
936
- for (; le(n) && !Re(n); ) {
937
- if (nt(n))
936
+ for (; le(n) && !Ee(n); ) {
937
+ if (lt(n))
938
938
  return n;
939
- if (Xe(n))
939
+ if (qe(n))
940
940
  return null;
941
941
  n = me(n);
942
942
  }
943
943
  return null;
944
944
  }
945
- function ot() {
945
+ function at() {
946
946
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
947
947
  }
948
- const io = /* @__PURE__ */ new Set(["html", "body", "#document"]);
949
- function Re(e) {
950
- return io.has(we(e));
948
+ const fo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
949
+ function Ee(e) {
950
+ return fo.has(we(e));
951
951
  }
952
952
  function te(e) {
953
953
  return Y(e).getComputedStyle(e);
954
954
  }
955
- function Ke(e) {
955
+ function Ge(e) {
956
956
  return ee(e) ? {
957
957
  scrollLeft: e.scrollLeft,
958
958
  scrollTop: e.scrollTop
@@ -968,182 +968,182 @@ function me(e) {
968
968
  // Step into the shadow DOM of the parent of a slotted node.
969
969
  e.assignedSlot || // DOM Element detected.
970
970
  e.parentNode || // ShadowRoot detected.
971
- gt(e) && e.host || // Fallback.
971
+ wt(e) && e.host || // Fallback.
972
972
  ae(e)
973
973
  );
974
- return gt(n) ? n.host : n;
974
+ return wt(n) ? n.host : n;
975
975
  }
976
- function At(e) {
976
+ function Mt(e) {
977
977
  const n = me(e);
978
- return Re(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(n) && Me(n) ? n : At(n);
978
+ return Ee(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(n) && Pe(n) ? n : Mt(n);
979
979
  }
980
- function $e(e, n, t) {
980
+ function Le(e, n, t) {
981
981
  var o;
982
982
  n === void 0 && (n = []), t === void 0 && (t = !0);
983
- const l = At(e), a = l === ((o = e.ownerDocument) == null ? void 0 : o.body), s = Y(l);
984
- if (a) {
985
- const u = Qe(s);
986
- return n.concat(s, s.visualViewport || [], Me(l) ? l : [], u && t ? $e(u) : []);
983
+ const l = Mt(e), s = l === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Y(l);
984
+ if (s) {
985
+ const r = et(a);
986
+ return n.concat(a, a.visualViewport || [], Pe(l) ? l : [], r && t ? Le(r) : []);
987
987
  }
988
- return n.concat(l, $e(l, [], t));
988
+ return n.concat(l, Le(l, [], t));
989
989
  }
990
- function Qe(e) {
990
+ function et(e) {
991
991
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
992
992
  }
993
- function Ot(e) {
993
+ function Pt(e) {
994
994
  const n = te(e);
995
995
  let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
996
- const l = le(e), a = l ? e.offsetWidth : t, s = l ? e.offsetHeight : o, u = ze(t) !== a || ze(o) !== s;
997
- return u && (t = a, o = s), {
996
+ const l = le(e), s = l ? e.offsetWidth : t, a = l ? e.offsetHeight : o, r = Ne(t) !== s || Ne(o) !== a;
997
+ return r && (t = s, o = a), {
998
998
  width: t,
999
999
  height: o,
1000
- $: u
1000
+ $: r
1001
1001
  };
1002
1002
  }
1003
- function lt(e) {
1003
+ function st(e) {
1004
1004
  return ee(e) ? e : e.contextElement;
1005
1005
  }
1006
- function Ve(e) {
1007
- const n = lt(e);
1006
+ function ke(e) {
1007
+ const n = st(e);
1008
1008
  if (!le(n))
1009
1009
  return oe(1);
1010
1010
  const t = n.getBoundingClientRect(), {
1011
1011
  width: o,
1012
1012
  height: l,
1013
- $: a
1014
- } = Ot(n);
1015
- let s = (a ? ze(t.width) : t.width) / o, u = (a ? ze(t.height) : t.height) / l;
1016
- return (!s || !Number.isFinite(s)) && (s = 1), (!u || !Number.isFinite(u)) && (u = 1), {
1017
- x: s,
1018
- y: u
1013
+ $: s
1014
+ } = Pt(n);
1015
+ let a = (s ? Ne(t.width) : t.width) / o, r = (s ? Ne(t.height) : t.height) / l;
1016
+ return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1017
+ x: a,
1018
+ y: r
1019
1019
  };
1020
1020
  }
1021
- const ro = /* @__PURE__ */ oe(0);
1022
- function Tt(e) {
1021
+ const mo = /* @__PURE__ */ oe(0);
1022
+ function Ft(e) {
1023
1023
  const n = Y(e);
1024
- return !ot() || !n.visualViewport ? ro : {
1024
+ return !at() || !n.visualViewport ? mo : {
1025
1025
  x: n.visualViewport.offsetLeft,
1026
1026
  y: n.visualViewport.offsetTop
1027
1027
  };
1028
1028
  }
1029
- function co(e, n, t) {
1029
+ function vo(e, n, t) {
1030
1030
  return n === void 0 && (n = !1), !t || n && t !== Y(e) ? !1 : n;
1031
1031
  }
1032
- function be(e, n, t, o) {
1032
+ function ge(e, n, t, o) {
1033
1033
  n === void 0 && (n = !1), t === void 0 && (t = !1);
1034
- const l = e.getBoundingClientRect(), a = lt(e);
1035
- let s = oe(1);
1036
- n && (o ? ee(o) && (s = Ve(o)) : s = Ve(e));
1037
- const u = co(a, t, o) ? Tt(a) : oe(0);
1038
- let c = (l.left + u.x) / s.x, r = (l.top + u.y) / s.y, i = l.width / s.x, d = l.height / s.y;
1039
- if (a) {
1040
- const f = Y(a), m = o && ee(o) ? Y(o) : o;
1041
- let p = f, y = Qe(p);
1042
- for (; y && o && m !== p; ) {
1043
- const V = Ve(y), w = y.getBoundingClientRect(), _ = te(y), h = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * V.x, O = w.top + (y.clientTop + parseFloat(_.paddingTop)) * V.y;
1044
- c *= V.x, r *= V.y, i *= V.x, d *= V.y, c += h, r += O, p = Y(y), y = Qe(p);
1034
+ const l = e.getBoundingClientRect(), s = st(e);
1035
+ let a = oe(1);
1036
+ n && (o ? ee(o) && (a = ke(o)) : a = ke(e));
1037
+ const r = vo(s, t, o) ? Ft(s) : oe(0);
1038
+ let i = (l.left + r.x) / a.x, u = (l.top + r.y) / a.y, c = l.width / a.x, d = l.height / a.y;
1039
+ if (s) {
1040
+ const m = Y(s), f = o && ee(o) ? Y(o) : o;
1041
+ let p = m, y = et(p);
1042
+ for (; y && o && f !== p; ) {
1043
+ const V = ke(y), w = y.getBoundingClientRect(), _ = te(y), h = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * V.x, O = w.top + (y.clientTop + parseFloat(_.paddingTop)) * V.y;
1044
+ i *= V.x, u *= V.y, c *= V.x, d *= V.y, i += h, u += O, p = Y(y), y = et(p);
1045
1045
  }
1046
1046
  }
1047
- return Ne({
1048
- width: i,
1047
+ return We({
1048
+ width: c,
1049
1049
  height: d,
1050
- x: c,
1051
- y: r
1050
+ x: i,
1051
+ y: u
1052
1052
  });
1053
1053
  }
1054
- function qe(e, n) {
1055
- const t = Ke(e).scrollLeft;
1056
- return n ? n.left + t : be(ae(e)).left + t;
1054
+ function Ye(e, n) {
1055
+ const t = Ge(e).scrollLeft;
1056
+ return n ? n.left + t : ge(ae(e)).left + t;
1057
1057
  }
1058
- function Bt(e, n) {
1059
- const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - qe(e, t), l = t.top + n.scrollTop;
1058
+ function Dt(e, n) {
1059
+ const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Ye(e, t), l = t.top + n.scrollTop;
1060
1060
  return {
1061
1061
  x: o,
1062
1062
  y: l
1063
1063
  };
1064
1064
  }
1065
- function uo(e) {
1065
+ function po(e) {
1066
1066
  let {
1067
1067
  elements: n,
1068
1068
  rect: t,
1069
1069
  offsetParent: o,
1070
1070
  strategy: l
1071
1071
  } = e;
1072
- const a = l === "fixed", s = ae(o), u = n ? Xe(n.floating) : !1;
1073
- if (o === s || u && a)
1072
+ const s = l === "fixed", a = ae(o), r = n ? qe(n.floating) : !1;
1073
+ if (o === a || r && s)
1074
1074
  return t;
1075
- let c = {
1075
+ let i = {
1076
1076
  scrollLeft: 0,
1077
1077
  scrollTop: 0
1078
- }, r = oe(1);
1079
- const i = oe(0), d = le(o);
1080
- if ((d || !d && !a) && ((we(o) !== "body" || Me(s)) && (c = Ke(o)), le(o))) {
1081
- const m = be(o);
1082
- r = Ve(o), i.x = m.x + o.clientLeft, i.y = m.y + o.clientTop;
1078
+ }, u = oe(1);
1079
+ const c = oe(0), d = le(o);
1080
+ if ((d || !d && !s) && ((we(o) !== "body" || Pe(a)) && (i = Ge(o)), le(o))) {
1081
+ const f = ge(o);
1082
+ u = ke(o), c.x = f.x + o.clientLeft, c.y = f.y + o.clientTop;
1083
1083
  }
1084
- const f = s && !d && !a ? Bt(s, c) : oe(0);
1084
+ const m = a && !d && !s ? Dt(a, i) : oe(0);
1085
1085
  return {
1086
- width: t.width * r.x,
1087
- height: t.height * r.y,
1088
- x: t.x * r.x - c.scrollLeft * r.x + i.x + f.x,
1089
- y: t.y * r.y - c.scrollTop * r.y + i.y + f.y
1086
+ width: t.width * u.x,
1087
+ height: t.height * u.y,
1088
+ x: t.x * u.x - i.scrollLeft * u.x + c.x + m.x,
1089
+ y: t.y * u.y - i.scrollTop * u.y + c.y + m.y
1090
1090
  };
1091
1091
  }
1092
- function fo(e) {
1092
+ function ho(e) {
1093
1093
  return Array.from(e.getClientRects());
1094
1094
  }
1095
- function mo(e) {
1096
- const n = ae(e), t = Ke(e), o = e.ownerDocument.body, l = G(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), a = G(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1097
- let s = -t.scrollLeft + qe(e);
1098
- const u = -t.scrollTop;
1099
- return te(o).direction === "rtl" && (s += G(n.clientWidth, o.clientWidth) - l), {
1095
+ function bo(e) {
1096
+ const n = ae(e), t = Ge(e), o = e.ownerDocument.body, l = G(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), s = G(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1097
+ let a = -t.scrollLeft + Ye(e);
1098
+ const r = -t.scrollTop;
1099
+ return te(o).direction === "rtl" && (a += G(n.clientWidth, o.clientWidth) - l), {
1100
1100
  width: l,
1101
- height: a,
1102
- x: s,
1103
- y: u
1101
+ height: s,
1102
+ x: a,
1103
+ y: r
1104
1104
  };
1105
1105
  }
1106
- const bt = 25;
1107
- function vo(e, n) {
1106
+ const xt = 25;
1107
+ function go(e, n) {
1108
1108
  const t = Y(e), o = ae(e), l = t.visualViewport;
1109
- let a = o.clientWidth, s = o.clientHeight, u = 0, c = 0;
1109
+ let s = o.clientWidth, a = o.clientHeight, r = 0, i = 0;
1110
1110
  if (l) {
1111
- a = l.width, s = l.height;
1112
- const i = ot();
1113
- (!i || i && n === "fixed") && (u = l.offsetLeft, c = l.offsetTop);
1114
- }
1115
- const r = qe(o);
1116
- if (r <= 0) {
1117
- const i = o.ownerDocument, d = i.body, f = getComputedStyle(d), m = i.compatMode === "CSS1Compat" && parseFloat(f.marginLeft) + parseFloat(f.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - m);
1118
- p <= bt && (a -= p);
1119
- } else r <= bt && (a += r);
1111
+ s = l.width, a = l.height;
1112
+ const c = at();
1113
+ (!c || c && n === "fixed") && (r = l.offsetLeft, i = l.offsetTop);
1114
+ }
1115
+ const u = Ye(o);
1116
+ if (u <= 0) {
1117
+ const c = o.ownerDocument, d = c.body, m = getComputedStyle(d), f = c.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - f);
1118
+ p <= xt && (s -= p);
1119
+ } else u <= xt && (s += u);
1120
1120
  return {
1121
- width: a,
1122
- height: s,
1123
- x: u,
1124
- y: c
1121
+ width: s,
1122
+ height: a,
1123
+ x: r,
1124
+ y: i
1125
1125
  };
1126
1126
  }
1127
- const po = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1128
- function ho(e, n) {
1129
- const t = be(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = le(e) ? Ve(e) : oe(1), s = e.clientWidth * a.x, u = e.clientHeight * a.y, c = l * a.x, r = o * a.y;
1127
+ const yo = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1128
+ function wo(e, n) {
1129
+ const t = ge(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = le(e) ? ke(e) : oe(1), a = e.clientWidth * s.x, r = e.clientHeight * s.y, i = l * s.x, u = o * s.y;
1130
1130
  return {
1131
- width: s,
1132
- height: u,
1133
- x: c,
1134
- y: r
1131
+ width: a,
1132
+ height: r,
1133
+ x: i,
1134
+ y: u
1135
1135
  };
1136
1136
  }
1137
- function yt(e, n, t) {
1137
+ function _t(e, n, t) {
1138
1138
  let o;
1139
1139
  if (n === "viewport")
1140
- o = vo(e, t);
1140
+ o = go(e, t);
1141
1141
  else if (n === "document")
1142
- o = mo(ae(e));
1142
+ o = bo(ae(e));
1143
1143
  else if (ee(n))
1144
- o = ho(n, t);
1144
+ o = wo(n, t);
1145
1145
  else {
1146
- const l = Tt(e);
1146
+ const l = Ft(e);
1147
1147
  o = {
1148
1148
  x: n.x - l.x,
1149
1149
  y: n.y - l.y,
@@ -1151,81 +1151,81 @@ function yt(e, n, t) {
1151
1151
  height: n.height
1152
1152
  };
1153
1153
  }
1154
- return Ne(o);
1154
+ return We(o);
1155
1155
  }
1156
- function Mt(e, n) {
1156
+ function jt(e, n) {
1157
1157
  const t = me(e);
1158
- return t === n || !ee(t) || Re(t) ? !1 : te(t).position === "fixed" || Mt(t, n);
1158
+ return t === n || !ee(t) || Ee(t) ? !1 : te(t).position === "fixed" || jt(t, n);
1159
1159
  }
1160
- function go(e, n) {
1160
+ function xo(e, n) {
1161
1161
  const t = n.get(e);
1162
1162
  if (t)
1163
1163
  return t;
1164
- let o = $e(e, [], !1).filter((u) => ee(u) && we(u) !== "body"), l = null;
1165
- const a = te(e).position === "fixed";
1166
- let s = a ? me(e) : e;
1167
- for (; ee(s) && !Re(s); ) {
1168
- const u = te(s), c = nt(s);
1169
- !c && u.position === "fixed" && (l = null), (a ? !c && !l : !c && u.position === "static" && !!l && po.has(l.position) || Me(s) && !c && Mt(e, s)) ? o = o.filter((i) => i !== s) : l = u, s = me(s);
1164
+ let o = Le(e, [], !1).filter((r) => ee(r) && we(r) !== "body"), l = null;
1165
+ const s = te(e).position === "fixed";
1166
+ let a = s ? me(e) : e;
1167
+ for (; ee(a) && !Ee(a); ) {
1168
+ const r = te(a), i = lt(a);
1169
+ !i && r.position === "fixed" && (l = null), (s ? !i && !l : !i && r.position === "static" && !!l && yo.has(l.position) || Pe(a) && !i && jt(e, a)) ? o = o.filter((c) => c !== a) : l = r, a = me(a);
1170
1170
  }
1171
1171
  return n.set(e, o), o;
1172
1172
  }
1173
- function bo(e) {
1173
+ function _o(e) {
1174
1174
  let {
1175
1175
  element: n,
1176
1176
  boundary: t,
1177
1177
  rootBoundary: o,
1178
1178
  strategy: l
1179
1179
  } = e;
1180
- const s = [...t === "clippingAncestors" ? Xe(n) ? [] : go(n, this._c) : [].concat(t), o], u = s[0], c = s.reduce((r, i) => {
1181
- const d = yt(n, i, l);
1182
- return r.top = G(d.top, r.top), r.right = Ce(d.right, r.right), r.bottom = Ce(d.bottom, r.bottom), r.left = G(d.left, r.left), r;
1183
- }, yt(n, u, l));
1180
+ const a = [...t === "clippingAncestors" ? qe(n) ? [] : xo(n, this._c) : [].concat(t), o], r = a[0], i = a.reduce((u, c) => {
1181
+ const d = _t(n, c, l);
1182
+ return u.top = G(d.top, u.top), u.right = Re(d.right, u.right), u.bottom = Re(d.bottom, u.bottom), u.left = G(d.left, u.left), u;
1183
+ }, _t(n, r, l));
1184
1184
  return {
1185
- width: c.right - c.left,
1186
- height: c.bottom - c.top,
1187
- x: c.left,
1188
- y: c.top
1185
+ width: i.right - i.left,
1186
+ height: i.bottom - i.top,
1187
+ x: i.left,
1188
+ y: i.top
1189
1189
  };
1190
1190
  }
1191
- function yo(e) {
1191
+ function Vo(e) {
1192
1192
  const {
1193
1193
  width: n,
1194
1194
  height: t
1195
- } = Ot(e);
1195
+ } = Pt(e);
1196
1196
  return {
1197
1197
  width: n,
1198
1198
  height: t
1199
1199
  };
1200
1200
  }
1201
- function wo(e, n, t) {
1202
- const o = le(n), l = ae(n), a = t === "fixed", s = be(e, !0, a, n);
1203
- let u = {
1201
+ function ko(e, n, t) {
1202
+ const o = le(n), l = ae(n), s = t === "fixed", a = ge(e, !0, s, n);
1203
+ let r = {
1204
1204
  scrollLeft: 0,
1205
1205
  scrollTop: 0
1206
1206
  };
1207
- const c = oe(0);
1208
- function r() {
1209
- c.x = qe(l);
1210
- }
1211
- if (o || !o && !a)
1212
- if ((we(n) !== "body" || Me(l)) && (u = Ke(n)), o) {
1213
- const m = be(n, !0, a, n);
1214
- c.x = m.x + n.clientLeft, c.y = m.y + n.clientTop;
1215
- } else l && r();
1216
- a && !o && l && r();
1217
- const i = l && !o && !a ? Bt(l, u) : oe(0), d = s.left + u.scrollLeft - c.x - i.x, f = s.top + u.scrollTop - c.y - i.y;
1207
+ const i = oe(0);
1208
+ function u() {
1209
+ i.x = Ye(l);
1210
+ }
1211
+ if (o || !o && !s)
1212
+ if ((we(n) !== "body" || Pe(l)) && (r = Ge(n)), o) {
1213
+ const f = ge(n, !0, s, n);
1214
+ i.x = f.x + n.clientLeft, i.y = f.y + n.clientTop;
1215
+ } else l && u();
1216
+ s && !o && l && u();
1217
+ const c = l && !o && !s ? Dt(l, r) : oe(0), d = a.left + r.scrollLeft - i.x - c.x, m = a.top + r.scrollTop - i.y - c.y;
1218
1218
  return {
1219
1219
  x: d,
1220
- y: f,
1221
- width: s.width,
1222
- height: s.height
1220
+ y: m,
1221
+ width: a.width,
1222
+ height: a.height
1223
1223
  };
1224
1224
  }
1225
- function Ye(e) {
1225
+ function Qe(e) {
1226
1226
  return te(e).position === "static";
1227
1227
  }
1228
- function wt(e, n) {
1228
+ function Vt(e, n) {
1229
1229
  if (!le(e) || te(e).position === "fixed")
1230
1230
  return null;
1231
1231
  if (n)
@@ -1233,28 +1233,28 @@ function wt(e, n) {
1233
1233
  let t = e.offsetParent;
1234
1234
  return ae(e) === t && (t = t.ownerDocument.body), t;
1235
1235
  }
1236
- function Pt(e, n) {
1236
+ function zt(e, n) {
1237
1237
  const t = Y(e);
1238
- if (Xe(e))
1238
+ if (qe(e))
1239
1239
  return t;
1240
1240
  if (!le(e)) {
1241
1241
  let l = me(e);
1242
- for (; l && !Re(l); ) {
1243
- if (ee(l) && !Ye(l))
1242
+ for (; l && !Ee(l); ) {
1243
+ if (ee(l) && !Qe(l))
1244
1244
  return l;
1245
1245
  l = me(l);
1246
1246
  }
1247
1247
  return t;
1248
1248
  }
1249
- let o = wt(e, n);
1250
- for (; o && to(o) && Ye(o); )
1251
- o = wt(o, n);
1252
- return o && Re(o) && Ye(o) && !nt(o) ? t : o || so(e) || t;
1249
+ let o = Vt(e, n);
1250
+ for (; o && ao(o) && Qe(o); )
1251
+ o = Vt(o, n);
1252
+ return o && Ee(o) && Qe(o) && !lt(o) ? t : o || uo(e) || t;
1253
1253
  }
1254
- const xo = async function(e) {
1255
- const n = this.getOffsetParent || Pt, t = this.getDimensions, o = await t(e.floating);
1254
+ const Co = async function(e) {
1255
+ const n = this.getOffsetParent || zt, t = this.getDimensions, o = await t(e.floating);
1256
1256
  return {
1257
- reference: wo(e.reference, await n(e.floating), e.strategy),
1257
+ reference: ko(e.reference, await n(e.floating), e.strategy),
1258
1258
  floating: {
1259
1259
  x: 0,
1260
1260
  y: 0,
@@ -1263,56 +1263,56 @@ const xo = async function(e) {
1263
1263
  }
1264
1264
  };
1265
1265
  };
1266
- function _o(e) {
1266
+ function Ro(e) {
1267
1267
  return te(e).direction === "rtl";
1268
1268
  }
1269
- const Vo = {
1270
- convertOffsetParentRelativeRectToViewportRelativeRect: uo,
1269
+ const Eo = {
1270
+ convertOffsetParentRelativeRectToViewportRelativeRect: po,
1271
1271
  getDocumentElement: ae,
1272
- getClippingRect: bo,
1273
- getOffsetParent: Pt,
1274
- getElementRects: xo,
1275
- getClientRects: fo,
1276
- getDimensions: yo,
1277
- getScale: Ve,
1272
+ getClippingRect: _o,
1273
+ getOffsetParent: zt,
1274
+ getElementRects: Co,
1275
+ getClientRects: ho,
1276
+ getDimensions: Vo,
1277
+ getScale: ke,
1278
1278
  isElement: ee,
1279
- isRTL: _o
1279
+ isRTL: Ro
1280
1280
  };
1281
- function Ft(e, n) {
1281
+ function It(e, n) {
1282
1282
  return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
1283
1283
  }
1284
- function ko(e, n) {
1284
+ function So(e, n) {
1285
1285
  let t = null, o;
1286
1286
  const l = ae(e);
1287
- function a() {
1288
- var u;
1289
- clearTimeout(o), (u = t) == null || u.disconnect(), t = null;
1290
- }
1291
- function s(u, c) {
1292
- u === void 0 && (u = !1), c === void 0 && (c = 1), a();
1293
- const r = e.getBoundingClientRect(), {
1294
- left: i,
1287
+ function s() {
1288
+ var r;
1289
+ clearTimeout(o), (r = t) == null || r.disconnect(), t = null;
1290
+ }
1291
+ function a(r, i) {
1292
+ r === void 0 && (r = !1), i === void 0 && (i = 1), s();
1293
+ const u = e.getBoundingClientRect(), {
1294
+ left: c,
1295
1295
  top: d,
1296
- width: f,
1297
- height: m
1298
- } = r;
1299
- if (u || n(), !f || !m)
1296
+ width: m,
1297
+ height: f
1298
+ } = u;
1299
+ if (r || n(), !m || !f)
1300
1300
  return;
1301
- const p = De(d), y = De(l.clientWidth - (i + f)), V = De(l.clientHeight - (d + m)), w = De(i), h = {
1301
+ const p = je(d), y = je(l.clientWidth - (c + m)), V = je(l.clientHeight - (d + f)), w = je(c), h = {
1302
1302
  rootMargin: -p + "px " + -y + "px " + -V + "px " + -w + "px",
1303
- threshold: G(0, Ce(1, c)) || 1
1303
+ threshold: G(0, Re(1, i)) || 1
1304
1304
  };
1305
1305
  let O = !0;
1306
1306
  function A(F) {
1307
- const g = F[0].intersectionRatio;
1308
- if (g !== c) {
1307
+ const b = F[0].intersectionRatio;
1308
+ if (b !== i) {
1309
1309
  if (!O)
1310
- return s();
1311
- g ? s(!1, g) : o = setTimeout(() => {
1312
- s(!1, 1e-7);
1310
+ return a();
1311
+ b ? a(!1, b) : o = setTimeout(() => {
1312
+ a(!1, 1e-7);
1313
1313
  }, 1e3);
1314
1314
  }
1315
- g === 1 && !Ft(r, e.getBoundingClientRect()) && s(), O = !1;
1315
+ b === 1 && !It(u, e.getBoundingClientRect()) && a(), O = !1;
1316
1316
  }
1317
1317
  try {
1318
1318
  t = new IntersectionObserver(A, {
@@ -1325,123 +1325,123 @@ function ko(e, n) {
1325
1325
  }
1326
1326
  t.observe(e);
1327
1327
  }
1328
- return s(!0), a;
1328
+ return a(!0), s;
1329
1329
  }
1330
- function Dt(e, n, t, o) {
1330
+ function Nt(e, n, t, o) {
1331
1331
  o === void 0 && (o = {});
1332
1332
  const {
1333
1333
  ancestorScroll: l = !0,
1334
- ancestorResize: a = !0,
1335
- elementResize: s = typeof ResizeObserver == "function",
1336
- layoutShift: u = typeof IntersectionObserver == "function",
1337
- animationFrame: c = !1
1338
- } = o, r = lt(e), i = l || a ? [...r ? $e(r) : [], ...$e(n)] : [];
1339
- i.forEach((w) => {
1334
+ ancestorResize: s = !0,
1335
+ elementResize: a = typeof ResizeObserver == "function",
1336
+ layoutShift: r = typeof IntersectionObserver == "function",
1337
+ animationFrame: i = !1
1338
+ } = o, u = st(e), c = l || s ? [...u ? Le(u) : [], ...Le(n)] : [];
1339
+ c.forEach((w) => {
1340
1340
  l && w.addEventListener("scroll", t, {
1341
1341
  passive: !0
1342
- }), a && w.addEventListener("resize", t);
1342
+ }), s && w.addEventListener("resize", t);
1343
1343
  });
1344
- const d = r && u ? ko(r, t) : null;
1345
- let f = -1, m = null;
1346
- s && (m = new ResizeObserver((w) => {
1344
+ const d = u && r ? So(u, t) : null;
1345
+ let m = -1, f = null;
1346
+ a && (f = new ResizeObserver((w) => {
1347
1347
  let [_] = w;
1348
- _ && _.target === r && m && (m.unobserve(n), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
1348
+ _ && _.target === u && f && (f.unobserve(n), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1349
1349
  var h;
1350
- (h = m) == null || h.observe(n);
1350
+ (h = f) == null || h.observe(n);
1351
1351
  })), t();
1352
- }), r && !c && m.observe(r), m.observe(n));
1353
- let p, y = c ? be(e) : null;
1354
- c && V();
1352
+ }), u && !i && f.observe(u), f.observe(n));
1353
+ let p, y = i ? ge(e) : null;
1354
+ i && V();
1355
1355
  function V() {
1356
- const w = be(e);
1357
- y && !Ft(y, w) && t(), y = w, p = requestAnimationFrame(V);
1356
+ const w = ge(e);
1357
+ y && !It(y, w) && t(), y = w, p = requestAnimationFrame(V);
1358
1358
  }
1359
1359
  return t(), () => {
1360
1360
  var w;
1361
- i.forEach((_) => {
1362
- l && _.removeEventListener("scroll", t), a && _.removeEventListener("resize", t);
1363
- }), d?.(), (w = m) == null || w.disconnect(), m = null, c && cancelAnimationFrame(p);
1361
+ c.forEach((_) => {
1362
+ l && _.removeEventListener("scroll", t), s && _.removeEventListener("resize", t);
1363
+ }), d?.(), (w = f) == null || w.disconnect(), f = null, i && cancelAnimationFrame(p);
1364
1364
  };
1365
1365
  }
1366
- const jt = Yn, It = Jn, zt = Kn, Co = Qn, Ro = (e, n, t) => {
1366
+ const Ht = eo, Wt = to, Ut = Jn, $o = no, Lo = (e, n, t) => {
1367
1367
  const o = /* @__PURE__ */ new Map(), l = {
1368
- platform: Vo,
1368
+ platform: Eo,
1369
1369
  ...t
1370
- }, a = {
1370
+ }, s = {
1371
1371
  ...l.platform,
1372
1372
  _c: o
1373
1373
  };
1374
- return Xn(e, n, {
1374
+ return Yn(e, n, {
1375
1375
  ...l,
1376
- platform: a
1376
+ platform: s
1377
1377
  });
1378
1378
  };
1379
- function Eo(e) {
1379
+ function Ao(e) {
1380
1380
  return e != null && typeof e == "object" && "$el" in e;
1381
1381
  }
1382
- function xt(e) {
1383
- if (Eo(e)) {
1382
+ function kt(e) {
1383
+ if (Ao(e)) {
1384
1384
  const n = e.$el;
1385
- return tt(n) && we(n) === "#comment" ? null : n;
1385
+ return ot(n) && we(n) === "#comment" ? null : n;
1386
1386
  }
1387
1387
  return e;
1388
1388
  }
1389
- function Se(e) {
1389
+ function $e(e) {
1390
1390
  return typeof e == "function" ? e() : E(e);
1391
1391
  }
1392
- function Ht(e) {
1392
+ function Xt(e) {
1393
1393
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1394
1394
  }
1395
- function _t(e, n) {
1396
- const t = Ht(e);
1395
+ function Ct(e, n) {
1396
+ const t = Xt(e);
1397
1397
  return Math.round(n * t) / t;
1398
1398
  }
1399
- function Nt(e, n, t) {
1399
+ function Kt(e, n, t) {
1400
1400
  t === void 0 && (t = {});
1401
1401
  const o = t.whileElementsMounted, l = C(() => {
1402
- var g;
1403
- return (g = Se(t.open)) != null ? g : !0;
1404
- }), a = C(() => Se(t.middleware)), s = C(() => {
1405
- var g;
1406
- return (g = Se(t.placement)) != null ? g : "bottom";
1407
- }), u = C(() => {
1408
- var g;
1409
- return (g = Se(t.strategy)) != null ? g : "absolute";
1410
- }), c = C(() => {
1411
- var g;
1412
- return (g = Se(t.transform)) != null ? g : !0;
1413
- }), r = C(() => xt(e.value)), i = C(() => xt(n.value)), d = R(0), f = R(0), m = R(u.value), p = R(s.value), y = Zt({}), V = R(!1), w = C(() => {
1414
- const g = {
1415
- position: m.value,
1402
+ var b;
1403
+ return (b = $e(t.open)) != null ? b : !0;
1404
+ }), s = C(() => $e(t.middleware)), a = C(() => {
1405
+ var b;
1406
+ return (b = $e(t.placement)) != null ? b : "bottom";
1407
+ }), r = C(() => {
1408
+ var b;
1409
+ return (b = $e(t.strategy)) != null ? b : "absolute";
1410
+ }), i = C(() => {
1411
+ var b;
1412
+ return (b = $e(t.transform)) != null ? b : !0;
1413
+ }), u = C(() => kt(e.value)), c = C(() => kt(n.value)), d = R(0), m = R(0), f = R(r.value), p = R(a.value), y = on({}), V = R(!1), w = C(() => {
1414
+ const b = {
1415
+ position: f.value,
1416
1416
  left: "0",
1417
1417
  top: "0"
1418
1418
  };
1419
- if (!i.value)
1420
- return g;
1421
- const b = _t(i.value, d.value), $ = _t(i.value, f.value);
1422
- return c.value ? {
1423
- ...g,
1424
- transform: "translate(" + b + "px, " + $ + "px)",
1425
- ...Ht(i.value) >= 1.5 && {
1419
+ if (!c.value)
1420
+ return b;
1421
+ const g = Ct(c.value, d.value), $ = Ct(c.value, m.value);
1422
+ return i.value ? {
1423
+ ...b,
1424
+ transform: "translate(" + g + "px, " + $ + "px)",
1425
+ ...Xt(c.value) >= 1.5 && {
1426
1426
  willChange: "transform"
1427
1427
  }
1428
1428
  } : {
1429
- position: m.value,
1430
- left: b + "px",
1429
+ position: f.value,
1430
+ left: g + "px",
1431
1431
  top: $ + "px"
1432
1432
  };
1433
1433
  });
1434
1434
  let _;
1435
1435
  function h() {
1436
- if (r.value == null || i.value == null)
1436
+ if (u.value == null || c.value == null)
1437
1437
  return;
1438
- const g = l.value;
1439
- Ro(r.value, i.value, {
1440
- middleware: a.value,
1441
- placement: s.value,
1442
- strategy: u.value
1443
- }).then((b) => {
1444
- d.value = b.x, f.value = b.y, m.value = b.strategy, p.value = b.placement, y.value = b.middlewareData, V.value = g !== !1;
1438
+ const b = l.value;
1439
+ Lo(u.value, c.value, {
1440
+ middleware: s.value,
1441
+ placement: a.value,
1442
+ strategy: r.value
1443
+ }).then((g) => {
1444
+ d.value = g.x, m.value = g.y, f.value = g.strategy, p.value = g.placement, y.value = g.middlewareData, V.value = b !== !1;
1445
1445
  });
1446
1446
  }
1447
1447
  function O() {
@@ -1452,24 +1452,24 @@ function Nt(e, n, t) {
1452
1452
  h();
1453
1453
  return;
1454
1454
  }
1455
- if (r.value != null && i.value != null) {
1456
- _ = o(r.value, i.value, h);
1455
+ if (u.value != null && c.value != null) {
1456
+ _ = o(u.value, c.value, h);
1457
1457
  return;
1458
1458
  }
1459
1459
  }
1460
1460
  function F() {
1461
1461
  l.value || (V.value = !1);
1462
1462
  }
1463
- return q([a, s, u, l], h, {
1463
+ return q([s, a, r, l], h, {
1464
1464
  flush: "sync"
1465
- }), q([r, i], A, {
1465
+ }), q([u, c], A, {
1466
1466
  flush: "sync"
1467
1467
  }), q(l, F, {
1468
1468
  flush: "sync"
1469
- }), en() && tn(O), {
1469
+ }), ln() && an(O), {
1470
1470
  x: _e(d),
1471
- y: _e(f),
1472
- strategy: _e(m),
1471
+ y: _e(m),
1472
+ strategy: _e(f),
1473
1473
  placement: _e(p),
1474
1474
  middlewareData: _e(y),
1475
1475
  isPositioned: _e(V),
@@ -1477,48 +1477,52 @@ function Nt(e, n, t) {
1477
1477
  update: h
1478
1478
  };
1479
1479
  }
1480
- const So = /* @__PURE__ */ T({
1480
+ const Oo = /* @__PURE__ */ B({
1481
1481
  inheritAttrs: !1,
1482
1482
  __name: "dot-menu",
1483
1483
  props: {
1484
1484
  icon: {}
1485
1485
  },
1486
1486
  setup(e) {
1487
- const n = e, t = R(!1), o = R(null), l = R(null), a = C(() => n.icon ?? N.DOT_MENU), { floatingStyles: s } = Nt(o, l, {
1487
+ const n = e, t = R(!1), o = R(null), l = R(null), s = C(() => n.icon ?? H.DOT_MENU), { floatingStyles: a } = Kt(o, l, {
1488
1488
  placement: "bottom-end",
1489
- middleware: [jt(8), zt(), It({ padding: 8 })],
1490
- whileElementsMounted: Dt
1491
- }), u = () => {
1489
+ middleware: [Ht(8), Ut(), Wt({ padding: 8 })],
1490
+ whileElementsMounted: Nt
1491
+ }), r = () => {
1492
1492
  t.value = !t.value;
1493
- }, c = () => {
1493
+ }, i = () => {
1494
1494
  t.value = !1;
1495
+ }, u = (c) => {
1496
+ const d = c.target;
1497
+ d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && i();
1495
1498
  };
1496
- return (r, i) => {
1497
- const d = W("VjButton"), f = W("VjMenu");
1498
- return v(), x(ge, null, [
1499
+ return (c, d) => {
1500
+ const m = U("VjButton"), f = U("VjMenu");
1501
+ return v(), x(be, null, [
1499
1502
  k("div", {
1500
- class: H(["dot-menu-container", r.$attrs.class])
1503
+ class: N(["dot-menu-container", c.$attrs.class])
1501
1504
  }, [
1502
- D(d, {
1505
+ D(m, {
1503
1506
  ref_key: "buttonRef",
1504
1507
  ref: o,
1505
1508
  class: "dot-menu",
1506
1509
  tertiary: "",
1507
- icon: a.value,
1508
- onClick: u
1510
+ icon: s.value,
1511
+ onClick: r
1509
1512
  }, null, 8, ["icon"]),
1510
1513
  D(Ie, { name: "menu" }, {
1511
- default: K(() => [
1514
+ default: W(() => [
1512
1515
  t.value ? (v(), P(f, {
1513
1516
  key: 0,
1514
1517
  ref_key: "floatingRef",
1515
1518
  ref: l,
1516
- style: Z(E(s)),
1519
+ style: Z(E(a)),
1517
1520
  class: "menu-dropdown",
1518
- onClose: c
1521
+ onClose: i,
1522
+ onClick: u
1519
1523
  }, {
1520
- default: K(() => [
1521
- B(r.$slots, "default", {}, void 0, !0)
1524
+ default: W(() => [
1525
+ T(c.$slots, "default", {}, void 0, !0)
1522
1526
  ]),
1523
1527
  _: 3
1524
1528
  }, 8, ["style"])) : L("", !0)
@@ -1526,17 +1530,17 @@ const So = /* @__PURE__ */ T({
1526
1530
  _: 3
1527
1531
  })
1528
1532
  ], 2),
1529
- (v(), P(Ze, { to: "body" }, [
1533
+ (v(), P(tt, { to: "body" }, [
1530
1534
  t.value ? (v(), x("div", {
1531
1535
  key: 0,
1532
1536
  class: "menu-backdrop",
1533
- onClick: c
1537
+ onClick: i
1534
1538
  })) : L("", !0)
1535
1539
  ]))
1536
1540
  ], 64);
1537
1541
  };
1538
1542
  }
1539
- }), $o = /* @__PURE__ */ M(So, [["__scopeId", "data-v-f853b4ab"]]), Lo = /* @__PURE__ */ T({
1543
+ }), To = /* @__PURE__ */ M(Oo, [["__scopeId", "data-v-67bd71e4"]]), Bo = /* @__PURE__ */ B({
1540
1544
  __name: "link-button",
1541
1545
  props: {
1542
1546
  label: {},
@@ -1548,27 +1552,27 @@ const So = /* @__PURE__ */ T({
1548
1552
  disabled: { type: Boolean }
1549
1553
  },
1550
1554
  setup(e) {
1551
- const n = e, t = U.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
1552
- return (l, a) => {
1553
- const s = W("router-link");
1554
- return v(), P(s, {
1555
+ const n = e, t = X.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
1556
+ return (l, s) => {
1557
+ const a = U("router-link");
1558
+ return v(), P(a, {
1555
1559
  to: e.to,
1556
- class: H(["button", o.value]),
1560
+ class: N(["button", o.value]),
1557
1561
  disabled: e.disabled
1558
1562
  }, {
1559
- default: K(() => [
1560
- e.icon ? (v(), P(Oe, {
1563
+ default: W(() => [
1564
+ e.icon ? (v(), P(Te, {
1561
1565
  key: 0,
1562
1566
  icon: e.icon,
1563
1567
  size: E(t)
1564
1568
  }, null, 8, ["icon", "size"])) : L("", !0),
1565
- je(" " + I(e.label), 1)
1569
+ ze(" " + j(e.label), 1)
1566
1570
  ]),
1567
1571
  _: 1
1568
1572
  }, 8, ["to", "class", "disabled"]);
1569
1573
  };
1570
1574
  }
1571
- }), Ao = /* @__PURE__ */ M(Lo, [["__scopeId", "data-v-bd3cf2f5"]]), Oo = ["disabled"], To = { class: "menu-action--icon" }, Bo = /* @__PURE__ */ T({
1575
+ }), Mo = /* @__PURE__ */ M(Bo, [["__scopeId", "data-v-bd3cf2f5"]]), Po = ["disabled"], Fo = { class: "menu-action--icon" }, Do = /* @__PURE__ */ B({
1572
1576
  __name: "menu-action",
1573
1577
  props: {
1574
1578
  label: {},
@@ -1576,37 +1580,37 @@ const So = /* @__PURE__ */ T({
1576
1580
  disabled: { type: Boolean }
1577
1581
  },
1578
1582
  setup(e) {
1579
- const n = U.S;
1583
+ const n = X.S;
1580
1584
  return (t, o) => (v(), x("button", {
1581
1585
  class: "menu-action button tertiary",
1582
1586
  disabled: e.disabled
1583
1587
  }, [
1584
- k("span", To, [
1585
- e.icon ? (v(), P(Oe, {
1588
+ k("span", Fo, [
1589
+ e.icon ? (v(), P(Te, {
1586
1590
  key: 0,
1587
1591
  icon: e.icon,
1588
1592
  size: E(n)
1589
1593
  }, null, 8, ["icon", "size"])) : L("", !0)
1590
1594
  ]),
1591
- k("span", null, I(e.label), 1)
1592
- ], 8, Oo));
1595
+ k("span", null, j(e.label), 1)
1596
+ ], 8, Po));
1593
1597
  }
1594
- }), Mo = /* @__PURE__ */ M(Bo, [["__scopeId", "data-v-07850995"]]), Po = {}, Fo = { class: "menu" };
1595
- function Do(e, n) {
1596
- return v(), x("div", Fo, [
1597
- B(e.$slots, "default", {}, void 0, !0)
1598
+ }), jo = /* @__PURE__ */ M(Do, [["__scopeId", "data-v-07850995"]]), zo = {}, Io = { class: "menu" };
1599
+ function No(e, n) {
1600
+ return v(), x("div", Io, [
1601
+ T(e.$slots, "default", {}, void 0, !0)
1598
1602
  ]);
1599
1603
  }
1600
- const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08"]]), Io = { class: "page" }, zo = {
1604
+ const Ho = /* @__PURE__ */ M(zo, [["render", No], ["__scopeId", "data-v-259fec08"]]), Wo = { class: "page" }, Uo = {
1601
1605
  key: 0,
1602
1606
  class: "page-error"
1603
- }, Ho = {
1607
+ }, Xo = {
1604
1608
  key: 1,
1605
1609
  class: "contents"
1606
- }, No = {
1610
+ }, Ko = {
1607
1611
  key: 2,
1608
1612
  class: "actions"
1609
- }, Wo = { key: 3 }, Uo = { key: 0 }, Xo = /* @__PURE__ */ T({
1613
+ }, qo = { key: 3 }, Go = { key: 0 }, Yo = /* @__PURE__ */ B({
1610
1614
  __name: "page",
1611
1615
  props: {
1612
1616
  title: {},
@@ -1614,38 +1618,38 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1614
1618
  errorMessage: {}
1615
1619
  },
1616
1620
  setup(e) {
1617
- return (n, t) => (v(), x("div", Io, [
1621
+ return (n, t) => (v(), x("div", Wo, [
1618
1622
  k("header", null, [
1619
- k("h2", null, I(e.title), 1),
1623
+ k("h2", null, j(e.title), 1),
1620
1624
  k("span", null, [
1621
- B(n.$slots, "headerActions", {}, void 0, !0)
1625
+ T(n.$slots, "headerActions", {}, void 0, !0)
1622
1626
  ])
1623
1627
  ]),
1624
1628
  k("main", {
1625
- class: H({ scrollable: e.scrollable })
1629
+ class: N({ scrollable: e.scrollable })
1626
1630
  }, [
1627
- e.errorMessage ? (v(), x("div", zo, [
1628
- B(n.$slots, "error", {}, void 0, !0)
1631
+ e.errorMessage ? (v(), x("div", Uo, [
1632
+ T(n.$slots, "error", {}, void 0, !0)
1629
1633
  ])) : L("", !0),
1630
- e.errorMessage ? L("", !0) : (v(), x("div", Ho, [
1631
- B(n.$slots, "default", {}, void 0, !0)
1634
+ e.errorMessage ? L("", !0) : (v(), x("div", Xo, [
1635
+ T(n.$slots, "default", {}, void 0, !0)
1632
1636
  ])),
1633
- e.errorMessage ? L("", !0) : (v(), x("div", No, [
1634
- B(n.$slots, "actions", {}, void 0, !0)
1637
+ e.errorMessage ? L("", !0) : (v(), x("div", Ko, [
1638
+ T(n.$slots, "actions", {}, void 0, !0)
1635
1639
  ])),
1636
- n.$slots.flexFooter ? (v(), x("footer", Wo, [
1637
- B(n.$slots, "flexFooter", {}, void 0, !0)
1640
+ n.$slots.flexFooter ? (v(), x("footer", qo, [
1641
+ T(n.$slots, "flexFooter", {}, void 0, !0)
1638
1642
  ])) : L("", !0)
1639
1643
  ], 2),
1640
- n.$slots.footer ? (v(), x("footer", Uo, [
1641
- B(n.$slots, "footer", {}, void 0, !0)
1644
+ n.$slots.footer ? (v(), x("footer", Go, [
1645
+ T(n.$slots, "footer", {}, void 0, !0)
1642
1646
  ])) : L("", !0)
1643
1647
  ]));
1644
1648
  }
1645
- }), Ko = /* @__PURE__ */ M(Xo, [["__scopeId", "data-v-1618f861"]]), qo = {
1649
+ }), Jo = /* @__PURE__ */ M(Yo, [["__scopeId", "data-v-1618f861"]]), Qo = {
1646
1650
  class: "paginator-info",
1647
1651
  "aria-live": "polite"
1648
- }, Go = /* @__PURE__ */ T({
1652
+ }, Zo = /* @__PURE__ */ B({
1649
1653
  __name: "paginator",
1650
1654
  props: /* @__PURE__ */ ue({
1651
1655
  totalItems: {},
@@ -1657,63 +1661,63 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1657
1661
  }),
1658
1662
  emits: /* @__PURE__ */ ue(["change"], ["update:modelValue"]),
1659
1663
  setup(e, { emit: n }) {
1660
- const t = e, o = ye(e, "modelValue"), l = n, a = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), s = C(() => Math.min(Math.max(1, o.value ?? 1), a.value)), u = C(() => s.value), c = C(() => s.value <= 1), r = C(() => s.value >= a.value), i = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), f = (w) => {
1661
- const _ = Math.min(Math.max(1, Math.floor(w)), a.value);
1664
+ const t = e, o = ye(e, "modelValue"), l = n, s = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), a = C(() => Math.min(Math.max(1, o.value ?? 1), s.value)), r = C(() => a.value), i = C(() => a.value <= 1), u = C(() => a.value >= s.value), c = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), m = (w) => {
1665
+ const _ = Math.min(Math.max(1, Math.floor(w)), s.value);
1662
1666
  _ !== o.value && (o.value = _, l("change", _));
1663
- }, m = () => f(1), p = () => f(s.value - 1), y = () => f(s.value + 1), V = () => f(a.value);
1667
+ }, f = () => m(1), p = () => m(a.value - 1), y = () => m(a.value + 1), V = () => m(s.value);
1664
1668
  return q([() => t.totalItems, () => t.pageSize], () => {
1665
- o.value > a.value && f(a.value);
1669
+ o.value > s.value && m(s.value);
1666
1670
  }), (w, _) => {
1667
- const h = W("VjButton");
1671
+ const h = U("VjButton");
1668
1672
  return v(), x("nav", {
1669
1673
  class: "paginator",
1670
1674
  "aria-label": "Pagination",
1671
- onKeydown: _[0] || (_[0] = nn(de(() => {
1675
+ onKeydown: _[0] || (_[0] = sn(de(() => {
1672
1676
  }, ["prevent"]), ["enter"]))
1673
1677
  }, [
1674
1678
  D(h, {
1675
1679
  tertiary: "",
1676
1680
  class: "paginator-btn",
1677
- icon: E(N).FIRST,
1678
- disabled: c.value,
1679
- onClick: m,
1681
+ icon: E(H).FIRST,
1682
+ disabled: i.value,
1683
+ onClick: f,
1680
1684
  "aria-label": "First page"
1681
1685
  }, null, 8, ["icon", "disabled"]),
1682
1686
  D(h, {
1683
1687
  tertiary: "",
1684
1688
  class: "paginator-btn",
1685
- icon: E(N).PREVIOUS,
1686
- disabled: c.value,
1689
+ icon: E(H).PREVIOUS,
1690
+ disabled: i.value,
1687
1691
  onClick: p,
1688
1692
  "aria-label": "Previous page"
1689
1693
  }, null, 8, ["icon", "disabled"]),
1690
- B(w.$slots, "info", {
1691
- current: s.value,
1692
- totalPages: a.value,
1693
- goTo: f
1694
+ T(w.$slots, "info", {
1695
+ current: a.value,
1696
+ totalPages: s.value,
1697
+ goTo: m
1694
1698
  }, () => [
1695
- k("div", qo, I(i.value) + " " + I(u.value) + " " + I(d.value) + " " + I(a.value), 1)
1699
+ k("div", Qo, j(c.value) + " " + j(r.value) + " " + j(d.value) + " " + j(s.value), 1)
1696
1700
  ], !0),
1697
1701
  D(h, {
1698
1702
  tertiary: "",
1699
1703
  class: "paginator-btn",
1700
- icon: E(N).NEXT,
1701
- disabled: r.value,
1704
+ icon: E(H).NEXT,
1705
+ disabled: u.value,
1702
1706
  onClick: y,
1703
1707
  "aria-label": "Next page"
1704
1708
  }, null, 8, ["icon", "disabled"]),
1705
1709
  D(h, {
1706
1710
  tertiary: "",
1707
1711
  class: "paginator-btn",
1708
- icon: E(N).LAST,
1709
- disabled: r.value,
1712
+ icon: E(H).LAST,
1713
+ disabled: u.value,
1710
1714
  onClick: V,
1711
1715
  "aria-label": "Last page"
1712
1716
  }, null, 8, ["icon", "disabled"])
1713
1717
  ], 32);
1714
1718
  };
1715
1719
  }
1716
- }), Yo = /* @__PURE__ */ M(Go, [["__scopeId", "data-v-b6fa8efe"]]), Jo = { class: "search-field" }, Qo = ["value", "placeholder"], Zo = /* @__PURE__ */ T({
1720
+ }), el = /* @__PURE__ */ M(Zo, [["__scopeId", "data-v-b6fa8efe"]]), tl = { class: "search-field" }, nl = ["value", "placeholder"], ol = /* @__PURE__ */ B({
1717
1721
  __name: "search-field",
1718
1722
  props: /* @__PURE__ */ ue({
1719
1723
  placeholder: { default: "Search..." }
@@ -1723,47 +1727,47 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1723
1727
  }),
1724
1728
  emits: ["update:modelValue"],
1725
1729
  setup(e) {
1726
- const n = ye(e, "modelValue"), t = (a) => {
1727
- n.value = a.target.value;
1730
+ const n = ye(e, "modelValue"), t = (s) => {
1731
+ n.value = s.target.value;
1728
1732
  }, o = () => {
1729
1733
  n.value = "";
1730
1734
  }, l = C(() => !n.value);
1731
- return (a, s) => {
1732
- const u = W("VjIcon");
1733
- return v(), x("div", Jo, [
1734
- D(u, {
1735
- icon: E(N).SEARCH,
1736
- size: E(U).S
1735
+ return (s, a) => {
1736
+ const r = U("VjIcon");
1737
+ return v(), x("div", tl, [
1738
+ D(r, {
1739
+ icon: E(H).SEARCH,
1740
+ size: E(X).S
1737
1741
  }, null, 8, ["icon", "size"]),
1738
1742
  k("input", {
1739
1743
  value: n.value,
1740
1744
  onInput: t,
1741
1745
  type: "text",
1742
1746
  placeholder: e.placeholder
1743
- }, null, 40, Qo),
1744
- D(u, {
1745
- class: H(["reset", { invisible: l.value }]),
1746
- icon: E(N).CLOSE,
1747
- size: E(U).S,
1747
+ }, null, 40, nl),
1748
+ D(r, {
1749
+ class: N(["reset", { invisible: l.value }]),
1750
+ icon: E(H).CLOSE,
1751
+ size: E(X).S,
1748
1752
  onClick: o
1749
1753
  }, null, 8, ["class", "icon", "size"])
1750
1754
  ]);
1751
1755
  };
1752
1756
  }
1753
- }), el = /* @__PURE__ */ M(Zo, [["__scopeId", "data-v-2771c8ed"]]), tl = /* @__PURE__ */ T({
1757
+ }), ll = /* @__PURE__ */ M(ol, [["__scopeId", "data-v-2771c8ed"]]), al = /* @__PURE__ */ B({
1754
1758
  __name: "separator",
1755
1759
  props: {
1756
1760
  vertical: { type: Boolean }
1757
1761
  },
1758
1762
  setup(e) {
1759
1763
  return (n, t) => (v(), x("div", {
1760
- class: H(["separator", { vertical: e.vertical }])
1764
+ class: N(["separator", { vertical: e.vertical }])
1761
1765
  }, null, 2));
1762
1766
  }
1763
- }), nl = /* @__PURE__ */ M(tl, [["__scopeId", "data-v-e354bb4e"]]), ol = { class: "tab-view" }, ll = {
1767
+ }), sl = /* @__PURE__ */ M(al, [["__scopeId", "data-v-e354bb4e"]]), il = { class: "tab-view" }, rl = {
1764
1768
  ref: "headerRef",
1765
1769
  class: "tab-view-header"
1766
- }, al = ["onClick"], sl = { class: "tab-view-content" }, il = /* @__PURE__ */ T({
1770
+ }, cl = ["onClick"], ul = { class: "tab-view-content" }, dl = /* @__PURE__ */ B({
1767
1771
  __name: "tab-view",
1768
1772
  props: {
1769
1773
  modelValue: {},
@@ -1774,72 +1778,99 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1774
1778
  const n = ye(e, "modelValue"), t = R([]), o = R([]), l = R({
1775
1779
  width: "0px",
1776
1780
  transform: "translateX(0px)"
1777
- }), a = (r, i) => {
1778
- r && (o.value[i] = r);
1779
- }, s = () => {
1780
- const r = t.value.findIndex((i) => i.name === n.value);
1781
- if (r >= 0 && o.value[r]) {
1782
- const i = o.value[r], d = i.offsetWidth, f = i.offsetLeft;
1781
+ }), s = (u, c) => {
1782
+ u && (o.value[c] = u);
1783
+ }, a = () => {
1784
+ const u = t.value.findIndex((c) => c.name === n.value);
1785
+ if (u >= 0 && o.value[u]) {
1786
+ const c = o.value[u], d = c.offsetWidth, m = c.offsetLeft;
1783
1787
  l.value = {
1784
1788
  width: `${d}px`,
1785
- transform: `translateX(${f}px)`
1789
+ transform: `translateX(${m}px)`
1786
1790
  };
1787
1791
  }
1788
- }, u = (r, i) => {
1789
- t.value.find((d) => d.name === r) || (t.value.push({ name: r, label: i }), he(() => {
1790
- !n.value && t.value.length === 1 && (n.value = r), s();
1792
+ }, r = (u, c) => {
1793
+ t.value.find((d) => d.name === u) || (t.value.push({ name: u, label: c }), he(() => {
1794
+ !n.value && t.value.length === 1 && (n.value = u), a();
1791
1795
  }));
1792
- }, c = (r) => {
1793
- n.value = r;
1796
+ }, i = (u) => {
1797
+ n.value = u;
1794
1798
  };
1795
1799
  return q(n, () => {
1796
1800
  he(() => {
1797
- s();
1801
+ a();
1798
1802
  });
1799
- }), on("tabView", {
1803
+ }), rn("tabView", {
1800
1804
  activeTab: () => n.value,
1801
- registerTab: u
1802
- }), (r, i) => (v(), x("div", ol, [
1803
- k("div", ll, [
1804
- (v(!0), x(ge, null, We(t.value, (d, f) => (v(), x("div", {
1805
+ registerTab: r
1806
+ }), (u, c) => (v(), x("div", il, [
1807
+ k("div", rl, [
1808
+ (v(!0), x(be, null, Xe(t.value, (d, m) => (v(), x("div", {
1805
1809
  key: d.name,
1806
1810
  ref_for: !0,
1807
- ref: (m) => a(m, f),
1808
- class: H(["tab-button", { active: n.value === d.name }]),
1809
- onClick: (m) => c(d.name)
1810
- }, I(d.label), 11, al))), 128)),
1811
- i[0] || (i[0] = k("div", { class: "tab-line" }, null, -1)),
1811
+ ref: (f) => s(f, m),
1812
+ class: N(["tab-button", { active: n.value === d.name }]),
1813
+ onClick: (f) => i(d.name)
1814
+ }, j(d.label), 11, cl))), 128)),
1815
+ c[0] || (c[0] = k("div", { class: "tab-line" }, null, -1)),
1812
1816
  k("div", {
1813
1817
  class: "tab-indicator",
1814
1818
  style: Z(l.value)
1815
1819
  }, null, 4)
1816
1820
  ], 512),
1817
- k("div", sl, [
1818
- B(r.$slots, "default", {}, void 0, !0)
1821
+ k("div", ul, [
1822
+ T(u.$slots, "default", {}, void 0, !0)
1819
1823
  ])
1820
1824
  ]));
1821
1825
  }
1822
- }), rl = /* @__PURE__ */ M(il, [["__scopeId", "data-v-3d4ee454"]]), cl = {
1826
+ }), fl = /* @__PURE__ */ M(dl, [["__scopeId", "data-v-3d4ee454"]]), ml = {
1823
1827
  key: 0,
1824
1828
  class: "tab"
1825
- }, ul = /* @__PURE__ */ T({
1829
+ }, vl = /* @__PURE__ */ B({
1826
1830
  __name: "tab",
1827
1831
  props: {
1828
1832
  name: {},
1829
1833
  label: {}
1830
1834
  },
1831
1835
  setup(e) {
1832
- const n = e, t = kt("tabView"), o = C(() => t?.activeTab() === n.name);
1833
- return Le(() => {
1836
+ const n = e, t = St("tabView"), o = C(() => t?.activeTab() === n.name);
1837
+ return Ae(() => {
1834
1838
  t?.registerTab(n.name, n.label);
1835
- }), (l, a) => o.value ? (v(), x("div", cl, [
1836
- B(l.$slots, "default")
1839
+ }), (l, s) => o.value ? (v(), x("div", ml, [
1840
+ T(l.$slots, "default")
1837
1841
  ])) : L("", !0);
1838
1842
  }
1839
- }), dl = ["data-colspan", "data-newline"], fl = { class: "form-field__wrapper" }, ml = ["for"], vl = {
1840
- key: 0,
1843
+ }), qt = {
1844
+ form: {
1845
+ labelPosition: "inline"
1846
+ }
1847
+ };
1848
+ let Ue = {};
1849
+ function Ra(e) {
1850
+ Ue = {
1851
+ ...Ue,
1852
+ ...e,
1853
+ form: {
1854
+ ...qt.form,
1855
+ ...e.form
1856
+ }
1857
+ };
1858
+ }
1859
+ function pl() {
1860
+ return {
1861
+ form: {
1862
+ ...qt.form,
1863
+ ...Ue.form
1864
+ }
1865
+ };
1866
+ }
1867
+ function Ea() {
1868
+ Ue = {};
1869
+ }
1870
+ const hl = ["data-colspan", "data-newline"], bl = ["for"], gl = { class: "form-field__wrapper" }, yl = ["for"], wl = {
1871
+ key: 1,
1841
1872
  class: "form-field__error"
1842
- }, pl = /* @__PURE__ */ T({
1873
+ }, xl = /* @__PURE__ */ B({
1843
1874
  __name: "form-field",
1844
1875
  props: {
1845
1876
  modelValue: {},
@@ -1850,52 +1881,63 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1850
1881
  colspan: {},
1851
1882
  newLine: { type: Boolean },
1852
1883
  spanRow: { type: Boolean },
1853
- error: {}
1884
+ error: {},
1885
+ labelPosition: {}
1854
1886
  },
1855
1887
  emits: ["update:modelValue", "focus", "blur"],
1856
1888
  setup(e, { emit: n }) {
1857
- const t = e, o = n, l = R(t.modelValue), a = R(!1), s = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`);
1889
+ const t = e, o = n, l = R(t.modelValue), s = R(!1), a = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), r = C(() => t.labelPosition ?? pl().form.labelPosition);
1858
1890
  q(
1859
1891
  () => t.modelValue,
1860
1892
  (f) => l.value = f
1861
1893
  );
1862
- const u = C(() => a.value || !!l.value || !!t.placeholder), c = C(() => u.value ? t.placeholder : "");
1863
- function r(f) {
1864
- const p = f.target.value;
1865
- l.value = p, o("update:modelValue", p);
1866
- }
1867
- function i(f) {
1868
- a.value = !0, o("focus", f);
1894
+ const i = C(() => {
1895
+ if (console.log(t.labelPosition, r.value, s.value, l.value), r.value === "outline")
1896
+ return !0;
1897
+ const f = l.value !== "" && l.value !== null && l.value !== void 0;
1898
+ return s.value || f;
1899
+ }), u = C(() => r.value === "outline" || i.value ? t.placeholder : "");
1900
+ function c(f) {
1901
+ const y = f.target.value;
1902
+ l.value = y, o("update:modelValue", y);
1869
1903
  }
1870
1904
  function d(f) {
1871
- a.value = !1, o("blur", f);
1905
+ s.value = !0, o("focus", f);
1906
+ }
1907
+ function m(f) {
1908
+ s.value = !1, o("blur", f);
1872
1909
  }
1873
- return (f, m) => (v(), x("div", {
1874
- class: H(["form-field", { disabled: e.disabled }, { labelless: !e.label }, { error: !!e.error }]),
1910
+ return (f, p) => (v(), x("div", {
1911
+ class: N(["form-field", `form-field--${r.value}`, { disabled: e.disabled }, { labelless: !e.label }, { error: !!e.error }]),
1875
1912
  "data-colspan": t.spanRow ? void 0 : t.colspan,
1876
1913
  "data-newline": t.spanRow || t.newLine ? "true" : void 0,
1877
1914
  style: Z(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
1878
1915
  }, [
1879
- k("div", fl, [
1880
- B(f.$slots, "control", {
1881
- id: s.value,
1916
+ e.label && r.value === "outline" ? (v(), x("label", {
1917
+ key: 0,
1918
+ for: a.value,
1919
+ class: "form-field__label-outline"
1920
+ }, j(e.label) + " " + j(r.value), 9, bl)) : L("", !0),
1921
+ k("div", gl, [
1922
+ T(f.$slots, "control", {
1923
+ id: a.value,
1882
1924
  value: l.value,
1883
- onInput: r,
1884
- onFocus: i,
1885
- onBlur: d,
1925
+ onInput: c,
1926
+ onFocus: d,
1927
+ onBlur: m,
1886
1928
  disabled: e.disabled,
1887
- placeholder: c.value
1929
+ placeholder: u.value
1888
1930
  }, void 0, !0),
1889
- e.label ? (v(), x("label", {
1931
+ e.label && r.value === "inline" ? (v(), x("label", {
1890
1932
  key: 0,
1891
- for: s.value,
1892
- class: H(["form-field__label", { "form-field__label--float": u.value }])
1893
- }, I(e.label), 11, ml)) : L("", !0)
1933
+ for: a.value,
1934
+ class: N(["form-field__label", { "form-field__label--float": i.value }])
1935
+ }, j(e.label), 11, yl)) : L("", !0)
1894
1936
  ]),
1895
- e.error ? (v(), x("div", vl, I(e.error), 1)) : L("", !0)
1896
- ], 14, dl));
1937
+ e.error ? (v(), x("div", wl, j(e.error), 1)) : L("", !0)
1938
+ ], 14, hl));
1897
1939
  }
1898
- }), Pe = /* @__PURE__ */ M(pl, [["__scopeId", "data-v-b37aee00"]]), hl = /* @__PURE__ */ T({
1940
+ }), Fe = /* @__PURE__ */ M(xl, [["__scopeId", "data-v-4ab68d08"]]), _l = /* @__PURE__ */ B({
1899
1941
  __name: "form-layout",
1900
1942
  props: {
1901
1943
  columns: { type: Number, default: 4 },
@@ -1906,16 +1948,16 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1906
1948
  let o = null;
1907
1949
  function l() {
1908
1950
  if (!t.value) return;
1909
- Array.from(t.value.children).forEach((s) => {
1910
- const u = s.getAttribute("data-colspan"), c = u ? Math.max(1, Number(u) || 1) : 1, r = s.getAttribute("data-newline");
1911
- r !== null && r !== "false" ? s.style.gridColumn = "1 / -1" : s.style.gridColumn = `span ${c}`;
1951
+ Array.from(t.value.children).forEach((a) => {
1952
+ const r = a.getAttribute("data-colspan"), i = r ? Math.max(1, Number(r) || 1) : 1, u = a.getAttribute("data-newline");
1953
+ u !== null && u !== "false" ? a.style.gridColumn = "1 / -1" : a.style.gridColumn = `span ${i}`;
1912
1954
  });
1913
1955
  }
1914
- return Le(() => {
1956
+ return Ae(() => {
1915
1957
  he(() => {
1916
1958
  l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
1917
1959
  });
1918
- }), Ae(() => {
1960
+ }), Oe(() => {
1919
1961
  o?.disconnect();
1920
1962
  }), q(
1921
1963
  () => n.columns,
@@ -1923,34 +1965,34 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1923
1965
  ), q(
1924
1966
  () => n.gap,
1925
1967
  () => he(l)
1926
- ), (a, s) => (v(), x("div", {
1968
+ ), (s, a) => (v(), x("div", {
1927
1969
  ref_key: "container",
1928
1970
  ref: t,
1929
1971
  class: "form-layout",
1930
1972
  style: Z({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
1931
1973
  }, [
1932
- B(a.$slots, "default", {}, void 0, !0)
1974
+ T(s.$slots, "default", {}, void 0, !0)
1933
1975
  ], 4));
1934
1976
  }
1935
- }), gl = /* @__PURE__ */ M(hl, [["__scopeId", "data-v-96f62ab7"]]), bl = {
1977
+ }), Vl = /* @__PURE__ */ M(_l, [["__scopeId", "data-v-96f62ab7"]]), kl = {
1936
1978
  key: 0,
1937
1979
  class: "form-section__title",
1938
1980
  "data-newline": ""
1939
- }, yl = /* @__PURE__ */ T({
1981
+ }, Cl = /* @__PURE__ */ B({
1940
1982
  __name: "form-section",
1941
1983
  props: {
1942
1984
  title: {}
1943
1985
  },
1944
1986
  setup(e) {
1945
- return (n, t) => (v(), x(ge, null, [
1946
- e.title ? (v(), x("h3", bl, I(e.title), 1)) : L("", !0),
1947
- B(n.$slots, "default", {}, void 0, !0)
1987
+ return (n, t) => (v(), x(be, null, [
1988
+ e.title ? (v(), x("h3", kl, j(e.title), 1)) : L("", !0),
1989
+ T(n.$slots, "default", {}, void 0, !0)
1948
1990
  ], 64));
1949
1991
  }
1950
- }), wl = /* @__PURE__ */ M(yl, [["__scopeId", "data-v-69cff1d0"]]), xl = ["id", "disabled"], _l = { class: "select-value" }, Vl = {
1992
+ }), Rl = /* @__PURE__ */ M(Cl, [["__scopeId", "data-v-69cff1d0"]]), El = ["id", "disabled"], Sl = { class: "select-value" }, $l = {
1951
1993
  key: 1,
1952
1994
  class: "select-placeholder"
1953
- }, kl = { class: "select-options" }, Cl = ["onClick", "onMouseenter"], Rl = /* @__PURE__ */ T({
1995
+ }, Ll = { class: "select-options" }, Al = ["onClick", "onMouseenter"], Ol = /* @__PURE__ */ B({
1954
1996
  inheritAttrs: !1,
1955
1997
  __name: "select",
1956
1998
  props: /* @__PURE__ */ ue({
@@ -1968,13 +2010,13 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1968
2010
  }),
1969
2011
  emits: ["update:modelValue"],
1970
2012
  setup(e, { expose: n }) {
1971
- const t = e, o = ye(e, "modelValue"), l = R(!1), a = R(-1), s = R(null), u = R(null), c = R(null), { floatingStyles: r } = Nt(u, c, {
2013
+ const t = e, o = ye(e, "modelValue"), l = R(!1), s = R(-1), a = R(null), r = R(null), i = R(null), { floatingStyles: u } = Kt(r, i, {
1972
2014
  placement: "bottom-start",
1973
2015
  middleware: [
1974
- jt(4),
1975
- zt(),
1976
- It({ padding: 8 }),
1977
- Co({
2016
+ Ht(4),
2017
+ Ut(),
2018
+ Wt({ padding: 8 }),
2019
+ $o({
1978
2020
  apply({ rects: h, elements: O }) {
1979
2021
  Object.assign(O.floating.style, {
1980
2022
  minWidth: `${h.reference.width}px`
@@ -1982,38 +2024,38 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
1982
2024
  }
1983
2025
  })
1984
2026
  ],
1985
- whileElementsMounted: Dt
1986
- }), i = (h) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(h) : String(h[t.optionLabel]) : String(h), d = (h) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(h) : h[t.optionValue] : h, f = C(() => t.options.find((h) => d(h) === o.value)), m = (h) => d(h) === o.value, p = () => {
2027
+ whileElementsMounted: Nt
2028
+ }), c = (h) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(h) : String(h[t.optionLabel]) : String(h), d = (h) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(h) : h[t.optionValue] : h, m = C(() => t.options.find((h) => d(h) === o.value)), f = (h) => d(h) === o.value, p = () => {
1987
2029
  t.disabled || (l.value = !l.value);
1988
2030
  }, y = () => {
1989
- l.value = !1, a.value = -1;
2031
+ l.value = !1, s.value = -1;
1990
2032
  }, V = (h) => {
1991
2033
  o.value = d(h), y();
1992
2034
  }, w = () => {
1993
2035
  o.value = void 0;
1994
2036
  }, _ = (h) => {
1995
- l.value && s.value && !s.value.contains(h.target) && y();
2037
+ l.value && a.value && !a.value.contains(h.target) && y();
1996
2038
  };
1997
- return Le(() => {
2039
+ return Ae(() => {
1998
2040
  document.addEventListener("click", _);
1999
- }), Ae(() => {
2041
+ }), Oe(() => {
2000
2042
  document.removeEventListener("click", _);
2001
2043
  }), q(l, (h) => {
2002
- h && f.value && (a.value = t.options.findIndex((O) => m(O)));
2044
+ h && m.value && (s.value = t.options.findIndex((O) => f(O)));
2003
2045
  }), n({
2004
- focus: () => u.value?.focus(),
2005
- blur: () => u.value?.blur()
2046
+ focus: () => r.value?.focus(),
2047
+ blur: () => r.value?.blur()
2006
2048
  }), (h, O) => {
2007
- const A = W("VjIcon");
2008
- return v(), x(ge, null, [
2049
+ const A = U("VjIcon");
2050
+ return v(), x(be, null, [
2009
2051
  k("div", {
2010
2052
  ref_key: "selectRef",
2011
- ref: s,
2012
- class: H(["select", h.$attrs.class])
2053
+ ref: a,
2054
+ class: N(["select", h.$attrs.class])
2013
2055
  }, [
2014
2056
  k("button", {
2015
2057
  ref_key: "buttonRef",
2016
- ref: u,
2058
+ ref: r,
2017
2059
  type: "button",
2018
2060
  class: "select-trigger",
2019
2061
  id: t.id,
@@ -2023,60 +2065,60 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2023
2065
  t.icon ? (v(), P(A, {
2024
2066
  key: 0,
2025
2067
  icon: t.icon,
2026
- size: E(U).S,
2068
+ size: E(X).S,
2027
2069
  class: "select-icon-left"
2028
2070
  }, null, 8, ["icon", "size"])) : L("", !0),
2029
- k("span", _l, [
2030
- f.value ? B(h.$slots, "selected", {
2071
+ k("span", Sl, [
2072
+ m.value ? T(h.$slots, "selected", {
2031
2073
  key: 0,
2032
- option: f.value
2074
+ option: m.value
2033
2075
  }, () => [
2034
- je(I(i(f.value)), 1)
2035
- ], !0) : (v(), x("span", Vl, I(e.placeholder), 1))
2076
+ ze(j(c(m.value)), 1)
2077
+ ], !0) : (v(), x("span", $l, j(e.placeholder), 1))
2036
2078
  ]),
2037
- t.clearable && f.value && !e.disabled ? (v(), P(A, {
2079
+ t.clearable && m.value && !e.disabled ? (v(), P(A, {
2038
2080
  key: 1,
2039
- icon: E(N).CLOSE,
2040
- size: E(U).S,
2081
+ icon: E(H).CLOSE,
2082
+ size: E(X).S,
2041
2083
  class: "select-clear-icon",
2042
2084
  onClick: de(w, ["stop"])
2043
2085
  }, null, 8, ["icon", "size"])) : L("", !0),
2044
2086
  D(A, {
2045
- icon: E(N).CHEVRON_DOWN,
2046
- size: E(U).S,
2047
- class: H(["select-icon-right", { open: l.value }])
2087
+ icon: E(H).CHEVRON_DOWN,
2088
+ size: E(X).S,
2089
+ class: N(["select-icon-right", { open: l.value }])
2048
2090
  }, null, 8, ["icon", "size", "class"])
2049
- ], 8, xl),
2091
+ ], 8, El),
2050
2092
  D(Ie, { name: "dropdown" }, {
2051
- default: K(() => [
2093
+ default: W(() => [
2052
2094
  l.value ? (v(), x("div", {
2053
2095
  key: 0,
2054
2096
  ref_key: "floatingRef",
2055
- ref: c,
2056
- style: Z(E(r)),
2097
+ ref: i,
2098
+ style: Z(E(u)),
2057
2099
  class: "select-dropdown"
2058
2100
  }, [
2059
- k("div", kl, [
2060
- (v(!0), x(ge, null, We(e.options, (F, g) => (v(), x("div", {
2101
+ k("div", Ll, [
2102
+ (v(!0), x(be, null, Xe(e.options, (F, b) => (v(), x("div", {
2061
2103
  key: String(d(F)),
2062
- class: H(["select-option", { selected: m(F), highlighted: a.value === g }]),
2063
- onClick: (b) => V(F),
2064
- onMouseenter: (b) => a.value = g
2104
+ class: N(["select-option", { selected: f(F), highlighted: s.value === b }]),
2105
+ onClick: (g) => V(F),
2106
+ onMouseenter: (g) => s.value = b
2065
2107
  }, [
2066
- B(h.$slots, "option", {
2108
+ T(h.$slots, "option", {
2067
2109
  option: F,
2068
- selected: m(F)
2110
+ selected: f(F)
2069
2111
  }, () => [
2070
- je(I(i(F)), 1)
2112
+ ze(j(c(F)), 1)
2071
2113
  ], !0)
2072
- ], 42, Cl))), 128))
2114
+ ], 42, Al))), 128))
2073
2115
  ])
2074
2116
  ], 4)) : L("", !0)
2075
2117
  ]),
2076
2118
  _: 3
2077
2119
  })
2078
2120
  ], 2),
2079
- (v(), P(Ze, { to: "body" }, [
2121
+ (v(), P(tt, { to: "body" }, [
2080
2122
  l.value ? (v(), x("div", {
2081
2123
  key: 0,
2082
2124
  class: "select-backdrop",
@@ -2086,7 +2128,7 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2086
2128
  ], 64);
2087
2129
  };
2088
2130
  }
2089
- }), Wt = /* @__PURE__ */ M(Rl, [["__scopeId", "data-v-fc22f0e9"]]), El = /* @__PURE__ */ T({
2131
+ }), Gt = /* @__PURE__ */ M(Ol, [["__scopeId", "data-v-fc22f0e9"]]), Tl = /* @__PURE__ */ B({
2090
2132
  __name: "input-select",
2091
2133
  props: {
2092
2134
  modelValue: {},
@@ -2098,16 +2140,17 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2098
2140
  newLine: { type: Boolean },
2099
2141
  spanRow: { type: Boolean },
2100
2142
  error: {},
2143
+ labelPosition: {},
2101
2144
  options: {}
2102
2145
  },
2103
2146
  emits: ["update:modelValue", "input", "focus", "blur"],
2104
2147
  setup(e, { emit: n }) {
2105
- const t = e, o = n, l = R(t.modelValue), a = (s) => {
2106
- l.value = s, o("update:modelValue", s);
2148
+ const t = e, o = n, l = R(t.modelValue), s = (a) => {
2149
+ l.value = a, o("update:modelValue", a);
2107
2150
  };
2108
- return (s, u) => (v(), P(Pe, {
2151
+ return (a, r) => (v(), P(Fe, {
2109
2152
  modelValue: l.value,
2110
- "onUpdate:modelValue": a,
2153
+ "onUpdate:modelValue": s,
2111
2154
  label: t.label,
2112
2155
  id: t.id,
2113
2156
  placeholder: t.placeholder,
@@ -2115,28 +2158,234 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2115
2158
  colspan: t.colspan,
2116
2159
  newLine: t.newLine,
2117
2160
  spanRow: t.spanRow,
2118
- error: t.error
2161
+ error: t.error,
2162
+ labelPosition: t.labelPosition
2119
2163
  }, {
2120
- control: K(({ id: c, disabled: r, placeholder: i }) => [
2121
- D(Wt, {
2122
- id: c,
2164
+ control: W(({ id: i, disabled: u, placeholder: c }) => [
2165
+ D(Gt, {
2166
+ id: i,
2123
2167
  modelValue: l.value,
2124
2168
  "onUpdate:modelValue": [
2125
- u[0] || (u[0] = (d) => l.value = d),
2126
- a
2169
+ r[0] || (r[0] = (d) => l.value = d),
2170
+ s
2127
2171
  ],
2128
2172
  options: t.options,
2129
- placeholder: i,
2130
- disabled: r,
2173
+ placeholder: c,
2174
+ disabled: u,
2131
2175
  "option-label": (d) => d.label,
2132
2176
  "option-value": (d) => d.value,
2133
2177
  clearable: ""
2134
- }, null, 8, ["id", "modelValue", "options", "placeholder", "disabled", "option-label", "option-value"])
2178
+ }, Rt({ _: 2 }, [
2179
+ a.$slots.selected ? {
2180
+ name: "selected",
2181
+ fn: W(({ option: d }) => [
2182
+ T(a.$slots, "selected", { option: d })
2183
+ ]),
2184
+ key: "0"
2185
+ } : void 0,
2186
+ a.$slots.option ? {
2187
+ name: "option",
2188
+ fn: W(({ option: d }) => [
2189
+ T(a.$slots, "option", { option: d })
2190
+ ]),
2191
+ key: "1"
2192
+ } : void 0
2193
+ ]), 1032, ["id", "modelValue", "options", "placeholder", "disabled", "option-label", "option-value"])
2194
+ ]),
2195
+ _: 3
2196
+ }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition"]));
2197
+ }
2198
+ }), Bl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Ml = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Pl = /* @__PURE__ */ B({
2199
+ __name: "slider",
2200
+ props: {
2201
+ modelValue: { default: void 0 },
2202
+ min: { default: 0 },
2203
+ max: { default: 100 },
2204
+ step: { default: 1 },
2205
+ range: { type: Boolean, default: !1 }
2206
+ },
2207
+ emits: ["update:modelValue", "change"],
2208
+ setup(e, { emit: n }) {
2209
+ const t = e, o = n, l = R(null), s = R(!1), a = R(!1), r = (b, g, $) => Math.min(Math.max(b, g), $), i = R(
2210
+ t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
2211
+ ), u = R(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
2212
+ q(
2213
+ () => t.modelValue,
2214
+ (b) => {
2215
+ t.range ? Array.isArray(b) && (i.value = r(b[0], t.min, t.max), u.value = r(b[1], t.min, t.max)) : typeof b == "number" && (i.value = r(b, t.min, t.max));
2216
+ },
2217
+ { immediate: !0 }
2218
+ );
2219
+ const c = (b) => (b - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${c(i.value)}%` })), m = C(() => ({ left: `${c(u.value)}%` })), f = C(() => {
2220
+ if (!t.range) return { width: `${c(i.value)}%`, left: "0%" };
2221
+ const b = c(i.value), g = c(u.value);
2222
+ return { left: `${b}%`, width: `${Math.max(0, g - b)}%` };
2223
+ });
2224
+ let p = null, y = null;
2225
+ const V = async (b, g) => {
2226
+ p = b, y = g.pointerId, b === "low" ? s.value = !0 : a.value = !0;
2227
+ try {
2228
+ g.target.setPointerCapture(g.pointerId);
2229
+ } catch {
2230
+ }
2231
+ window.addEventListener("pointermove", _), window.addEventListener("pointerup", w);
2232
+ }, w = (b) => {
2233
+ if (y != null && b)
2234
+ try {
2235
+ b.target.releasePointerCapture(b.pointerId);
2236
+ } catch {
2237
+ }
2238
+ p = null, y = null, s.value = !1, a.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w), A();
2239
+ }, _ = (b) => {
2240
+ if (!p || !l.value) return;
2241
+ const g = l.value.getBoundingClientRect(), $ = r(b.clientX - g.left, 0, g.width), z = t.min + $ / g.width * (t.max - t.min), I = Math.round(z / t.step) * t.step;
2242
+ p === "low" ? t.range ? i.value = Math.min(I, u.value) : i.value = r(I, t.min, t.max) : p === "high" && (u.value = Math.max(I, i.value));
2243
+ }, h = (b) => {
2244
+ if (!l.value) return;
2245
+ const g = l.value.getBoundingClientRect(), $ = r(b.clientX - g.left, 0, g.width), z = t.min + $ / g.width * (t.max - t.min), I = Math.round(z / t.step) * t.step;
2246
+ if (t.range) {
2247
+ const se = Math.abs(I - i.value), ie = Math.abs(I - u.value);
2248
+ se <= ie ? i.value = Math.min(I, u.value) : u.value = Math.max(I, i.value);
2249
+ } else
2250
+ i.value = r(I, t.min, t.max);
2251
+ A();
2252
+ }, O = (b, g) => {
2253
+ const $ = t.step, z = g.key === "ArrowLeft" || g.key === "ArrowDown" ? -1 : g.key === "ArrowRight" || g.key === "ArrowUp" ? 1 : 0;
2254
+ if (z) {
2255
+ if (b === "low") {
2256
+ const I = r(i.value + z * $, t.min, t.range ? u.value : t.max);
2257
+ i.value = I, s.value = !0, setTimeout(() => s.value = !1, 800);
2258
+ } else {
2259
+ const I = r(u.value + z * $, t.range ? i.value : t.max, t.max);
2260
+ u.value = I, a.value = !0, setTimeout(() => a.value = !1, 800);
2261
+ }
2262
+ A();
2263
+ }
2264
+ }, A = () => {
2265
+ t.range ? (o("update:modelValue", [i.value, u.value]), o("change", [i.value, u.value])) : (o("update:modelValue", i.value), o("change", i.value));
2266
+ };
2267
+ Oe(() => {
2268
+ window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w);
2269
+ }), q([() => t.min, () => t.max], () => {
2270
+ i.value = r(i.value, t.min, t.max), u.value = r(u.value, t.min, t.max);
2271
+ });
2272
+ const F = C(() => t.range);
2273
+ return he(() => {
2274
+ t.modelValue === void 0 && (t.range ? o("update:modelValue", [i.value, u.value]) : o("update:modelValue", i.value));
2275
+ }), (b, g) => (v(), x("div", {
2276
+ class: "vj-slider",
2277
+ onPointerdown: g[8] || (g[8] = de(() => {
2278
+ }, ["stop"]))
2279
+ }, [
2280
+ k("div", {
2281
+ class: "track",
2282
+ ref_key: "track",
2283
+ ref: l,
2284
+ onClick: h
2285
+ }, [
2286
+ k("div", {
2287
+ class: "range",
2288
+ style: Z(f.value)
2289
+ }, null, 4),
2290
+ s.value ? (v(), x("div", {
2291
+ key: 0,
2292
+ class: "tooltip",
2293
+ style: Z({ left: d.value.left })
2294
+ }, j(i.value), 5)) : L("", !0),
2295
+ k("button", {
2296
+ class: "handle low",
2297
+ style: Z(d.value),
2298
+ "aria-valuemin": e.min,
2299
+ "aria-valuemax": e.max,
2300
+ "aria-valuenow": i.value,
2301
+ "aria-label": F.value ? "Lower value" : "Value",
2302
+ onPointerdown: g[0] || (g[0] = de(($) => V("low", $), ["prevent"])),
2303
+ onFocus: g[1] || (g[1] = ($) => s.value = !0),
2304
+ onBlur: g[2] || (g[2] = ($) => s.value = !1),
2305
+ onKeydown: g[3] || (g[3] = de(($) => O("low", $), ["stop", "prevent"])),
2306
+ role: "slider",
2307
+ tabindex: "0"
2308
+ }, null, 44, Bl),
2309
+ F.value && a.value ? (v(), x("div", {
2310
+ key: 1,
2311
+ class: "tooltip",
2312
+ style: Z({ left: m.value.left })
2313
+ }, j(u.value), 5)) : L("", !0),
2314
+ F.value ? (v(), x("button", {
2315
+ key: 2,
2316
+ class: "handle high",
2317
+ style: Z(m.value),
2318
+ "aria-valuemin": e.min,
2319
+ "aria-valuemax": e.max,
2320
+ "aria-valuenow": u.value,
2321
+ "aria-label": "Upper value",
2322
+ onPointerdown: g[4] || (g[4] = de(($) => V("high", $), ["prevent"])),
2323
+ onFocus: g[5] || (g[5] = ($) => a.value = !0),
2324
+ onBlur: g[6] || (g[6] = ($) => a.value = !1),
2325
+ onKeydown: g[7] || (g[7] = de(($) => O("high", $), ["stop", "prevent"])),
2326
+ role: "slider",
2327
+ tabindex: "0"
2328
+ }, null, 44, Ml)) : L("", !0)
2329
+ ], 512)
2330
+ ], 32));
2331
+ }
2332
+ }), Fl = /* @__PURE__ */ M(Pl, [["__scopeId", "data-v-d47c7475"]]), Dl = ["onFocusin", "onFocusout"], jl = /* @__PURE__ */ B({
2333
+ __name: "input-slider",
2334
+ props: {
2335
+ modelValue: {},
2336
+ label: {},
2337
+ id: {},
2338
+ placeholder: {},
2339
+ disabled: { type: Boolean },
2340
+ colspan: {},
2341
+ newLine: { type: Boolean },
2342
+ spanRow: { type: Boolean },
2343
+ error: {},
2344
+ labelPosition: {},
2345
+ min: {},
2346
+ max: {},
2347
+ step: {}
2348
+ },
2349
+ emits: ["update:modelValue", "input", "focus", "blur"],
2350
+ setup(e, { emit: n }) {
2351
+ const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), s = R(Number.isNaN(l) ? 0 : l), a = (r) => {
2352
+ const i = typeof r == "number" ? r : Number(r ?? 0);
2353
+ s.value = Number.isNaN(i) ? 0 : i, o("update:modelValue", s.value), o("input", s.value);
2354
+ };
2355
+ return (r, i) => (v(), P(Fe, {
2356
+ modelValue: s.value,
2357
+ "onUpdate:modelValue": a,
2358
+ label: t.label,
2359
+ id: t.id,
2360
+ placeholder: " ",
2361
+ disabled: t.disabled,
2362
+ colspan: t.colspan,
2363
+ newLine: t.newLine,
2364
+ spanRow: t.spanRow,
2365
+ error: t.error
2366
+ }, {
2367
+ control: W(({ id: u, disabled: c, placeholder: d, onFocus: m, onBlur: f }) => [
2368
+ k("div", {
2369
+ class: "input-slider__control",
2370
+ onFocusin: m,
2371
+ onFocusout: f
2372
+ }, [
2373
+ D(Fl, {
2374
+ id: u,
2375
+ modelValue: s.value,
2376
+ "onUpdate:modelValue": i[0] || (i[0] = (p) => s.value = p),
2377
+ min: t.min,
2378
+ max: t.max,
2379
+ step: t.step,
2380
+ range: !1,
2381
+ disabled: c
2382
+ }, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
2383
+ ], 40, Dl)
2135
2384
  ]),
2136
2385
  _: 1
2137
- }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error"]));
2386
+ }, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
2138
2387
  }
2139
- }), Sl = { class: "textarea" }, $l = ["value", "placeholder", "disabled", "rows"], Ll = /* @__PURE__ */ T({
2388
+ }), zl = /* @__PURE__ */ M(jl, [["__scopeId", "data-v-051e6d17"]]), Il = { class: "textarea" }, Nl = ["value", "placeholder", "disabled", "rows"], Hl = /* @__PURE__ */ B({
2140
2389
  __name: "textarea",
2141
2390
  props: /* @__PURE__ */ ue({
2142
2391
  icon: {},
@@ -2150,44 +2399,44 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2150
2399
  }),
2151
2400
  emits: /* @__PURE__ */ ue(["focus", "blur"], ["update:modelValue"]),
2152
2401
  setup(e, { emit: n }) {
2153
- const t = n, o = ye(e, "modelValue"), l = (r) => {
2154
- o.value = r.target.value;
2155
- }, a = () => {
2402
+ const t = n, o = ye(e, "modelValue"), l = (u) => {
2403
+ o.value = u.target.value;
2404
+ }, s = () => {
2156
2405
  o.value = "";
2157
- }, s = (r) => {
2158
- t("focus", r);
2159
- }, u = (r) => {
2160
- t("blur", r);
2161
- }, c = C(() => !o.value);
2162
- return (r, i) => {
2163
- const d = W("VjIcon");
2164
- return v(), x("div", Sl, [
2406
+ }, a = (u) => {
2407
+ t("focus", u);
2408
+ }, r = (u) => {
2409
+ t("blur", u);
2410
+ }, i = C(() => !o.value);
2411
+ return (u, c) => {
2412
+ const d = U("VjIcon");
2413
+ return v(), x("div", Il, [
2165
2414
  e.icon ? (v(), P(d, {
2166
2415
  key: 0,
2167
2416
  icon: e.icon,
2168
- size: E(U).S,
2417
+ size: E(X).S,
2169
2418
  class: "textarea-icon"
2170
2419
  }, null, 8, ["icon", "size"])) : L("", !0),
2171
2420
  k("textarea", {
2172
2421
  value: o.value,
2173
2422
  onInput: l,
2174
- onFocus: s,
2175
- onBlur: u,
2423
+ onFocus: a,
2424
+ onBlur: r,
2176
2425
  placeholder: e.placeholder,
2177
2426
  disabled: e.disabled,
2178
2427
  rows: e.rows
2179
- }, null, 40, $l),
2428
+ }, null, 40, Nl),
2180
2429
  e.clearable && !e.disabled ? (v(), P(d, {
2181
2430
  key: 1,
2182
- class: H(["clear-icon", { invisible: c.value }]),
2183
- icon: E(N).CLOSE,
2184
- size: E(U).S,
2185
- onClick: a
2431
+ class: N(["clear-icon", { invisible: i.value }]),
2432
+ icon: E(H).CLOSE,
2433
+ size: E(X).S,
2434
+ onClick: s
2186
2435
  }, null, 8, ["class", "icon", "size"])) : L("", !0)
2187
2436
  ]);
2188
2437
  };
2189
2438
  }
2190
- }), Ut = /* @__PURE__ */ M(Ll, [["__scopeId", "data-v-2ea43716"]]), Al = /* @__PURE__ */ T({
2439
+ }), Yt = /* @__PURE__ */ M(Hl, [["__scopeId", "data-v-2ea43716"]]), Wl = /* @__PURE__ */ B({
2191
2440
  __name: "input-text-area",
2192
2441
  props: {
2193
2442
  modelValue: {},
@@ -2199,22 +2448,23 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2199
2448
  newLine: { type: Boolean },
2200
2449
  spanRow: { type: Boolean },
2201
2450
  error: {},
2451
+ labelPosition: {},
2202
2452
  rows: {}
2203
2453
  },
2204
2454
  emits: ["update:modelValue", "input", "focus", "blur"],
2205
2455
  setup(e, { emit: n }) {
2206
- const t = e, o = n, l = (i) => o("update:modelValue", i), a = (i) => o("input", i), s = (i) => o("focus", i), u = (i) => o("blur", i), c = (i) => {
2207
- l(i ?? "");
2208
- }, r = C(() => {
2209
- const i = t.modelValue;
2210
- return i == null ? "" : String(i);
2456
+ const t = e, o = n, l = (c) => o("update:modelValue", c), s = (c) => o("input", c), a = (c) => o("focus", c), r = (c) => o("blur", c), i = (c) => {
2457
+ l(c ?? "");
2458
+ }, u = C(() => {
2459
+ const c = t.modelValue;
2460
+ return c == null ? "" : String(c);
2211
2461
  });
2212
- return (i, d) => (v(), P(Pe, {
2462
+ return (c, d) => (v(), P(Fe, {
2213
2463
  modelValue: t.modelValue,
2214
2464
  "onUpdate:modelValue": l,
2215
- onInput: a,
2216
- onFocus: s,
2217
- onBlur: u,
2465
+ onInput: s,
2466
+ onFocus: a,
2467
+ onBlur: r,
2218
2468
  label: t.label,
2219
2469
  id: t.id,
2220
2470
  placeholder: t.placeholder,
@@ -2222,29 +2472,30 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2222
2472
  colspan: t.colspan,
2223
2473
  newLine: t.newLine,
2224
2474
  spanRow: t.spanRow,
2475
+ labelPosition: t.labelPosition,
2225
2476
  error: t.error
2226
2477
  }, {
2227
- control: K(({ id: f, disabled: m, placeholder: p, onFocus: y, onBlur: V }) => [
2228
- D(Ut, {
2229
- id: f,
2230
- modelValue: r.value,
2231
- "onUpdate:modelValue": c,
2478
+ control: W(({ id: m, disabled: f, placeholder: p, onFocus: y, onBlur: V }) => [
2479
+ D(Yt, {
2480
+ id: m,
2481
+ modelValue: u.value,
2482
+ "onUpdate:modelValue": i,
2232
2483
  onFocus: (w) => {
2233
- y(w), s(w);
2484
+ y(w), a(w);
2234
2485
  },
2235
2486
  onBlur: (w) => {
2236
- V(w), u(w);
2487
+ V(w), r(w);
2237
2488
  },
2238
2489
  placeholder: p,
2239
- disabled: m,
2490
+ disabled: f,
2240
2491
  rows: t.rows,
2241
2492
  clearable: ""
2242
2493
  }, null, 8, ["id", "modelValue", "onFocus", "onBlur", "placeholder", "disabled", "rows"])
2243
2494
  ]),
2244
2495
  _: 1
2245
- }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error"]));
2496
+ }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error"]));
2246
2497
  }
2247
- }), Ol = { class: "input" }, Tl = ["value", "type", "placeholder", "disabled"], Bl = /* @__PURE__ */ T({
2498
+ }), Ul = { class: "input" }, Xl = ["value", "type", "placeholder", "disabled"], Kl = /* @__PURE__ */ B({
2248
2499
  __name: "input",
2249
2500
  props: /* @__PURE__ */ ue({
2250
2501
  icon: {},
@@ -2258,43 +2509,43 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2258
2509
  }),
2259
2510
  emits: /* @__PURE__ */ ue(["focus", "blur"], ["update:modelValue"]),
2260
2511
  setup(e, { emit: n }) {
2261
- const t = n, o = ye(e, "modelValue"), l = (r) => {
2262
- o.value = r.target.value;
2263
- }, a = () => {
2512
+ const t = n, o = ye(e, "modelValue"), l = (u) => {
2513
+ o.value = u.target.value;
2514
+ }, s = () => {
2264
2515
  o.value = "";
2265
- }, s = (r) => {
2266
- t("focus", r);
2267
- }, u = (r) => {
2268
- t("blur", r);
2269
- }, c = C(() => !o.value);
2270
- return (r, i) => {
2271
- const d = W("VjIcon");
2272
- return v(), x("div", Ol, [
2516
+ }, a = (u) => {
2517
+ t("focus", u);
2518
+ }, r = (u) => {
2519
+ t("blur", u);
2520
+ }, i = C(() => !o.value);
2521
+ return (u, c) => {
2522
+ const d = U("VjIcon");
2523
+ return v(), x("div", Ul, [
2273
2524
  e.icon ? (v(), P(d, {
2274
2525
  key: 0,
2275
2526
  icon: e.icon,
2276
- size: E(U).S
2527
+ size: E(X).S
2277
2528
  }, null, 8, ["icon", "size"])) : L("", !0),
2278
2529
  k("input", {
2279
2530
  value: o.value,
2280
2531
  onInput: l,
2281
- onFocus: s,
2282
- onBlur: u,
2532
+ onFocus: a,
2533
+ onBlur: r,
2283
2534
  type: e.type,
2284
2535
  placeholder: e.placeholder,
2285
2536
  disabled: e.disabled
2286
- }, null, 40, Tl),
2537
+ }, null, 40, Xl),
2287
2538
  e.clearable && !e.disabled ? (v(), P(d, {
2288
2539
  key: 1,
2289
- class: H(["clear-icon", { invisible: c.value }]),
2290
- icon: E(N).CLOSE,
2291
- size: E(U).S,
2292
- onClick: a
2540
+ class: N(["clear-icon", { invisible: i.value }]),
2541
+ icon: E(H).CLOSE,
2542
+ size: E(X).S,
2543
+ onClick: s
2293
2544
  }, null, 8, ["class", "icon", "size"])) : L("", !0)
2294
2545
  ]);
2295
2546
  };
2296
2547
  }
2297
- }), Xt = /* @__PURE__ */ M(Bl, [["__scopeId", "data-v-be574bc7"]]), Ml = /* @__PURE__ */ T({
2548
+ }), Jt = /* @__PURE__ */ M(Kl, [["__scopeId", "data-v-3187d49c"]]), ql = /* @__PURE__ */ B({
2298
2549
  __name: "input-text",
2299
2550
  props: {
2300
2551
  modelValue: {},
@@ -2305,19 +2556,21 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2305
2556
  colspan: {},
2306
2557
  newLine: { type: Boolean },
2307
2558
  spanRow: { type: Boolean },
2308
- error: {}
2559
+ error: {},
2560
+ labelPosition: {},
2561
+ type: {}
2309
2562
  },
2310
2563
  emits: ["update:modelValue", "input", "focus", "blur"],
2311
2564
  setup(e, { emit: n }) {
2312
- const t = n, o = (c) => t("update:modelValue", c), l = (c) => t("input", c), a = (c) => t("focus", c), s = (c) => t("blur", c), u = (c) => {
2313
- o(c ?? "");
2565
+ const t = n, o = (i) => t("update:modelValue", i), l = (i) => t("input", i), s = (i) => t("focus", i), a = (i) => t("blur", i), r = (i) => {
2566
+ o(i ?? "");
2314
2567
  };
2315
- return (c, r) => (v(), P(Pe, {
2568
+ return (i, u) => (v(), P(Fe, {
2316
2569
  modelValue: e.modelValue,
2317
2570
  "onUpdate:modelValue": o,
2318
2571
  onInput: l,
2319
- onFocus: a,
2320
- onBlur: s,
2572
+ onFocus: s,
2573
+ onBlur: a,
2321
2574
  label: e.label,
2322
2575
  id: e.id,
2323
2576
  placeholder: e.placeholder,
@@ -2325,28 +2578,30 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2325
2578
  colspan: e.colspan,
2326
2579
  newLine: e.newLine,
2327
2580
  spanRow: e.spanRow,
2328
- error: e.error
2581
+ error: e.error,
2582
+ labelPosition: e.labelPosition
2329
2583
  }, {
2330
- control: K(({ id: i, disabled: d, placeholder: f, onFocus: m, onBlur: p }) => [
2331
- D(Xt, {
2332
- id: i,
2584
+ control: W(({ id: c, disabled: d, placeholder: m, onFocus: f, onBlur: p }) => [
2585
+ D(Jt, {
2586
+ id: c,
2333
2587
  modelValue: e.modelValue,
2334
- "onUpdate:modelValue": u,
2588
+ type: e.type,
2589
+ "onUpdate:modelValue": r,
2335
2590
  onFocus: (y) => {
2336
- m(y), a(y);
2591
+ f(y), s(y);
2337
2592
  },
2338
2593
  onBlur: (y) => {
2339
- p(y), s(y);
2594
+ p(y), a(y);
2340
2595
  },
2341
- placeholder: f,
2596
+ placeholder: m,
2342
2597
  disabled: d,
2343
2598
  clearable: ""
2344
- }, null, 8, ["id", "modelValue", "onFocus", "onBlur", "placeholder", "disabled"])
2599
+ }, null, 8, ["id", "modelValue", "type", "onFocus", "onBlur", "placeholder", "disabled"])
2345
2600
  ]),
2346
2601
  _: 1
2347
- }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error"]));
2602
+ }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition"]));
2348
2603
  }
2349
- }), Pl = { class: "shell-navigation-item" }, Fl = { class: "shell-navigation-item-label" }, Dl = /* @__PURE__ */ T({
2604
+ }), Gl = { class: "shell-navigation-item" }, Yl = { class: "shell-navigation-item-label" }, Jl = /* @__PURE__ */ B({
2350
2605
  __name: "shell-navigation-item",
2351
2606
  props: {
2352
2607
  label: {},
@@ -2355,56 +2610,56 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2355
2610
  },
2356
2611
  setup(e) {
2357
2612
  return (n, t) => {
2358
- const o = W("VjIcon"), l = W("RouterLink");
2359
- return v(), x("li", Pl, [
2613
+ const o = U("VjIcon"), l = U("RouterLink");
2614
+ return v(), x("li", Gl, [
2360
2615
  D(l, {
2361
2616
  to: e.to,
2362
2617
  class: "shell-navigation-item-link"
2363
2618
  }, {
2364
- default: K(() => [
2619
+ default: W(() => [
2365
2620
  D(o, {
2366
2621
  icon: e.icon,
2367
2622
  class: "shell-navigation-item-icon"
2368
2623
  }, null, 8, ["icon"]),
2369
- k("label", Fl, I(e.label), 1)
2624
+ k("label", Yl, j(e.label), 1)
2370
2625
  ]),
2371
2626
  _: 1
2372
2627
  }, 8, ["to"])
2373
2628
  ]);
2374
2629
  };
2375
2630
  }
2376
- }), jl = /* @__PURE__ */ M(Dl, [["__scopeId", "data-v-d5c087be"]]), Il = { class: "navigation-top" }, zl = { class: "navigation-bottom" }, Hl = /* @__PURE__ */ T({
2631
+ }), Ql = /* @__PURE__ */ M(Jl, [["__scopeId", "data-v-d5c087be"]]), Zl = { class: "navigation-top" }, ea = { class: "navigation-bottom" }, ta = /* @__PURE__ */ B({
2377
2632
  __name: "shell-navigation",
2378
2633
  setup(e) {
2379
- const n = kt(la, sa());
2634
+ const n = St(fa, va());
2380
2635
  console.log("navigationProvider", n);
2381
2636
  const t = C(() => n.showLabels);
2382
2637
  return (o, l) => {
2383
- const a = W("VjShellNavigationItem");
2638
+ const s = U("VjShellNavigationItem");
2384
2639
  return v(), x("nav", {
2385
- class: H(["shell-navigation", { "with-labels": t.value }])
2640
+ class: N(["shell-navigation", { "with-labels": t.value }])
2386
2641
  }, [
2387
- k("ul", Il, [
2388
- E(n).hasParent && E(n).backRoute.value ? (v(), P(a, {
2642
+ k("ul", Zl, [
2643
+ E(n).hasParent && E(n).backRoute.value ? (v(), P(s, {
2389
2644
  key: 0,
2390
2645
  to: E(n).backRoute.value,
2391
2646
  label: "BACK",
2392
- icon: E(N).HOME
2647
+ icon: E(H).HOME
2393
2648
  }, null, 8, ["to", "icon"])) : L("", !0),
2394
- (v(!0), x(ge, null, We(E(n).childRoutes.value, (s) => (v(), P(a, {
2395
- key: s.name,
2396
- to: { name: s.name },
2397
- label: s.meta.label,
2398
- icon: s.meta.icon ?? E(N).HOME
2649
+ (v(!0), x(be, null, Xe(E(n).childRoutes.value, (a) => (v(), P(s, {
2650
+ key: a.name,
2651
+ to: { name: a.name },
2652
+ label: a.meta.label,
2653
+ icon: a.meta.icon ?? E(H).HOME
2399
2654
  }, null, 8, ["to", "label", "icon"]))), 128))
2400
2655
  ]),
2401
- k("ul", zl, [
2402
- B(o.$slots, "fixed", {}, void 0, !0)
2656
+ k("ul", ea, [
2657
+ T(o.$slots, "fixed", {}, void 0, !0)
2403
2658
  ])
2404
2659
  ], 2);
2405
2660
  };
2406
2661
  }
2407
- }), Kt = /* @__PURE__ */ M(Hl, [["__scopeId", "data-v-0f990f5b"]]), Nl = { class: "shell" }, Wl = { class: "shell-title" }, Ul = ["src"], Xl = { class: "header-actions" }, Kl = /* @__PURE__ */ T({
2662
+ }), Qt = /* @__PURE__ */ M(ta, [["__scopeId", "data-v-0f990f5b"]]), na = { class: "shell" }, oa = { class: "shell-title" }, la = ["src"], aa = { class: "header-actions" }, sa = /* @__PURE__ */ B({
2408
2663
  __name: "shell",
2409
2664
  props: {
2410
2665
  title: {},
@@ -2412,235 +2667,53 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2412
2667
  showNavigation: { type: Boolean }
2413
2668
  },
2414
2669
  setup(e) {
2415
- const n = da(), t = Ge(n, "asideComponent"), o = Ge(n, "hasAside"), l = Ge(n, "asideData"), a = C(() => {
2416
- const s = l.value;
2417
- return s && typeof s == "object" ? s : {};
2670
+ const n = ya(), t = Je(n, "asideComponent"), o = Je(n, "hasAside"), l = Je(n, "asideData"), s = C(() => {
2671
+ const a = l.value;
2672
+ return a && typeof a == "object" ? a : {};
2418
2673
  });
2419
- return (s, u) => {
2420
- const c = W("router-view");
2421
- return v(), x("div", Nl, [
2674
+ return (a, r) => {
2675
+ const i = U("router-view");
2676
+ return v(), x("div", na, [
2422
2677
  k("header", null, [
2423
- k("span", Wl, [
2678
+ k("span", oa, [
2424
2679
  e.icon ? (v(), x("img", {
2425
2680
  key: 0,
2426
2681
  src: e.icon,
2427
2682
  alt: "Shell Icon"
2428
- }, null, 8, Ul)) : L("", !0),
2429
- k("h1", null, I(e.title), 1)
2683
+ }, null, 8, la)) : L("", !0),
2684
+ k("h1", null, j(e.title), 1)
2430
2685
  ]),
2431
- k("div", Xl, [
2432
- B(s.$slots, "header-actions", {}, void 0, !0)
2686
+ k("div", aa, [
2687
+ T(a.$slots, "header-actions", {}, void 0, !0)
2433
2688
  ])
2434
2689
  ]),
2435
2690
  k("div", {
2436
- class: H(["shell-content", { "with-navigation": e.showNavigation }])
2691
+ class: N(["shell-content", { "with-navigation": e.showNavigation }])
2437
2692
  }, [
2438
- e.showNavigation ? (v(), P(E(Kt), { key: 0 })) : L("", !0),
2693
+ e.showNavigation ? (v(), P(E(Qt), { key: 0 })) : L("", !0),
2439
2694
  k("main", null, [
2440
- B(s.$slots, "default", {}, () => [
2441
- D(c)
2695
+ T(a.$slots, "default", {}, () => [
2696
+ D(i)
2442
2697
  ], !0)
2443
2698
  ]),
2444
2699
  k("aside", {
2445
- class: H({ "aside-visible": o.value })
2700
+ class: N({ "aside-visible": o.value })
2446
2701
  }, [
2447
- (v(), P(Vt(t.value), ln(an(a.value)), null, 16))
2702
+ (v(), P(Et(t.value), cn(un(s.value)), null, 16))
2448
2703
  ], 2)
2449
2704
  ], 2),
2450
- u[0] || (u[0] = k("footer", null, null, -1))
2705
+ r[0] || (r[0] = k("footer", null, null, -1))
2451
2706
  ]);
2452
2707
  };
2453
2708
  }
2454
- }), ql = /* @__PURE__ */ M(Kl, [["__scopeId", "data-v-336560c3"]]), Gl = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Yl = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Jl = /* @__PURE__ */ T({
2455
- __name: "slider",
2456
- props: {
2457
- modelValue: { default: void 0 },
2458
- min: { default: 0 },
2459
- max: { default: 100 },
2460
- step: { default: 1 },
2461
- range: { type: Boolean, default: !1 }
2462
- },
2463
- emits: ["update:modelValue", "change"],
2464
- setup(e, { emit: n }) {
2465
- const t = e, o = n, l = R(null), a = R(!1), s = R(!1), u = (g, b, $) => Math.min(Math.max(g, b), $), c = R(
2466
- t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
2467
- ), r = R(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
2468
- q(
2469
- () => t.modelValue,
2470
- (g) => {
2471
- t.range ? Array.isArray(g) && (c.value = u(g[0], t.min, t.max), r.value = u(g[1], t.min, t.max)) : typeof g == "number" && (c.value = u(g, t.min, t.max));
2472
- },
2473
- { immediate: !0 }
2474
- );
2475
- const i = (g) => (g - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${i(c.value)}%` })), f = C(() => ({ left: `${i(r.value)}%` })), m = C(() => {
2476
- if (!t.range) return { width: `${i(c.value)}%`, left: "0%" };
2477
- const g = i(c.value), b = i(r.value);
2478
- return { left: `${g}%`, width: `${Math.max(0, b - g)}%` };
2479
- });
2480
- let p = null, y = null;
2481
- const V = async (g, b) => {
2482
- p = g, y = b.pointerId, g === "low" ? a.value = !0 : s.value = !0;
2483
- try {
2484
- b.target.setPointerCapture(b.pointerId);
2485
- } catch {
2486
- }
2487
- window.addEventListener("pointermove", _), window.addEventListener("pointerup", w);
2488
- }, w = (g) => {
2489
- if (y != null && g)
2490
- try {
2491
- g.target.releasePointerCapture(g.pointerId);
2492
- } catch {
2493
- }
2494
- p = null, y = null, a.value = !1, s.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w), A();
2495
- }, _ = (g) => {
2496
- if (!p || !l.value) return;
2497
- const b = l.value.getBoundingClientRect(), $ = u(g.clientX - b.left, 0, b.width), j = t.min + $ / b.width * (t.max - t.min), z = Math.round(j / t.step) * t.step;
2498
- p === "low" ? t.range ? c.value = Math.min(z, r.value) : c.value = u(z, t.min, t.max) : p === "high" && (r.value = Math.max(z, c.value));
2499
- }, h = (g) => {
2500
- if (!l.value) return;
2501
- const b = l.value.getBoundingClientRect(), $ = u(g.clientX - b.left, 0, b.width), j = t.min + $ / b.width * (t.max - t.min), z = Math.round(j / t.step) * t.step;
2502
- if (t.range) {
2503
- const se = Math.abs(z - c.value), ie = Math.abs(z - r.value);
2504
- se <= ie ? c.value = Math.min(z, r.value) : r.value = Math.max(z, c.value);
2505
- } else
2506
- c.value = u(z, t.min, t.max);
2507
- A();
2508
- }, O = (g, b) => {
2509
- const $ = t.step, j = b.key === "ArrowLeft" || b.key === "ArrowDown" ? -1 : b.key === "ArrowRight" || b.key === "ArrowUp" ? 1 : 0;
2510
- if (j) {
2511
- if (g === "low") {
2512
- const z = u(c.value + j * $, t.min, t.range ? r.value : t.max);
2513
- c.value = z, a.value = !0, setTimeout(() => a.value = !1, 800);
2514
- } else {
2515
- const z = u(r.value + j * $, t.range ? c.value : t.max, t.max);
2516
- r.value = z, s.value = !0, setTimeout(() => s.value = !1, 800);
2517
- }
2518
- A();
2519
- }
2520
- }, A = () => {
2521
- t.range ? (o("update:modelValue", [c.value, r.value]), o("change", [c.value, r.value])) : (o("update:modelValue", c.value), o("change", c.value));
2522
- };
2523
- Ae(() => {
2524
- window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w);
2525
- }), q([() => t.min, () => t.max], () => {
2526
- c.value = u(c.value, t.min, t.max), r.value = u(r.value, t.min, t.max);
2527
- });
2528
- const F = C(() => t.range);
2529
- return he(() => {
2530
- t.modelValue === void 0 && (t.range ? o("update:modelValue", [c.value, r.value]) : o("update:modelValue", c.value));
2531
- }), (g, b) => (v(), x("div", {
2532
- class: "vj-slider",
2533
- onPointerdown: b[8] || (b[8] = de(() => {
2534
- }, ["stop"]))
2535
- }, [
2536
- k("div", {
2537
- class: "track",
2538
- ref_key: "track",
2539
- ref: l,
2540
- onClick: h
2541
- }, [
2542
- k("div", {
2543
- class: "range",
2544
- style: Z(m.value)
2545
- }, null, 4),
2546
- a.value ? (v(), x("div", {
2547
- key: 0,
2548
- class: "tooltip",
2549
- style: Z({ left: d.value.left })
2550
- }, I(c.value), 5)) : L("", !0),
2551
- k("button", {
2552
- class: "handle low",
2553
- style: Z(d.value),
2554
- "aria-valuemin": e.min,
2555
- "aria-valuemax": e.max,
2556
- "aria-valuenow": c.value,
2557
- "aria-label": F.value ? "Lower value" : "Value",
2558
- onPointerdown: b[0] || (b[0] = de(($) => V("low", $), ["prevent"])),
2559
- onFocus: b[1] || (b[1] = ($) => a.value = !0),
2560
- onBlur: b[2] || (b[2] = ($) => a.value = !1),
2561
- onKeydown: b[3] || (b[3] = de(($) => O("low", $), ["stop", "prevent"])),
2562
- role: "slider",
2563
- tabindex: "0"
2564
- }, null, 44, Gl),
2565
- F.value && s.value ? (v(), x("div", {
2566
- key: 1,
2567
- class: "tooltip",
2568
- style: Z({ left: f.value.left })
2569
- }, I(r.value), 5)) : L("", !0),
2570
- F.value ? (v(), x("button", {
2571
- key: 2,
2572
- class: "handle high",
2573
- style: Z(f.value),
2574
- "aria-valuemin": e.min,
2575
- "aria-valuemax": e.max,
2576
- "aria-valuenow": r.value,
2577
- "aria-label": "Upper value",
2578
- onPointerdown: b[4] || (b[4] = de(($) => V("high", $), ["prevent"])),
2579
- onFocus: b[5] || (b[5] = ($) => s.value = !0),
2580
- onBlur: b[6] || (b[6] = ($) => s.value = !1),
2581
- onKeydown: b[7] || (b[7] = de(($) => O("high", $), ["stop", "prevent"])),
2582
- role: "slider",
2583
- tabindex: "0"
2584
- }, null, 44, Yl)) : L("", !0)
2585
- ], 512)
2586
- ], 32));
2587
- }
2588
- }), Ql = /* @__PURE__ */ M(Jl, [["__scopeId", "data-v-d47c7475"]]), Zl = ["onFocusin", "onFocusout"], ea = /* @__PURE__ */ T({
2589
- __name: "input-slider",
2590
- props: {
2591
- modelValue: {},
2592
- label: {},
2593
- id: {},
2594
- placeholder: {},
2595
- disabled: { type: Boolean },
2596
- colspan: {},
2597
- newLine: { type: Boolean },
2598
- spanRow: { type: Boolean },
2599
- error: {},
2600
- min: {},
2601
- max: {},
2602
- step: {}
2709
+ }), ia = /* @__PURE__ */ M(sa, [["__scopeId", "data-v-336560c3"]]), ra = {
2710
+ mounted(e) {
2711
+ e.classList.add("compact");
2603
2712
  },
2604
- emits: ["update:modelValue", "input", "focus", "blur"],
2605
- setup(e, { emit: n }) {
2606
- const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), a = R(Number.isNaN(l) ? 0 : l), s = (u) => {
2607
- const c = typeof u == "number" ? u : Number(u ?? 0);
2608
- a.value = Number.isNaN(c) ? 0 : c, o("update:modelValue", a.value), o("input", a.value);
2609
- };
2610
- return (u, c) => (v(), P(Pe, {
2611
- modelValue: a.value,
2612
- "onUpdate:modelValue": s,
2613
- label: t.label,
2614
- id: t.id,
2615
- placeholder: " ",
2616
- disabled: t.disabled,
2617
- colspan: t.colspan,
2618
- newLine: t.newLine,
2619
- spanRow: t.spanRow,
2620
- error: t.error
2621
- }, {
2622
- control: K(({ id: r, disabled: i, placeholder: d, onFocus: f, onBlur: m }) => [
2623
- k("div", {
2624
- class: "input-slider__control",
2625
- onFocusin: f,
2626
- onFocusout: m
2627
- }, [
2628
- D(Ql, {
2629
- id: r,
2630
- modelValue: a.value,
2631
- "onUpdate:modelValue": c[0] || (c[0] = (p) => a.value = p),
2632
- min: t.min,
2633
- max: t.max,
2634
- step: t.step,
2635
- range: !1,
2636
- disabled: i
2637
- }, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
2638
- ], 40, Zl)
2639
- ]),
2640
- _: 1
2641
- }, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
2713
+ unmounted(e) {
2714
+ e.classList.remove("compact");
2642
2715
  }
2643
- }), ta = /* @__PURE__ */ M(ea, [["__scopeId", "data-v-051e6d17"]]), qt = [
2716
+ }, Zt = [
2644
2717
  'input:not([disabled]):not([type="hidden"])',
2645
2718
  "select:not([disabled])",
2646
2719
  "textarea:not([disabled])",
@@ -2649,70 +2722,151 @@ const jo = /* @__PURE__ */ M(Po, [["render", Do], ["__scopeId", "data-v-259fec08
2649
2722
  '[tabindex]:not([tabindex="-1"])',
2650
2723
  '[contenteditable="true"]'
2651
2724
  ].join(", ");
2652
- function na(e) {
2653
- const n = e.querySelectorAll(qt);
2725
+ function ca(e) {
2726
+ const n = e.querySelectorAll(Zt);
2654
2727
  for (const t of Array.from(n))
2655
2728
  if (t.offsetParent !== null || t.getClientRects().length > 0)
2656
2729
  return t;
2657
2730
  return null;
2658
2731
  }
2659
- const oa = {
2732
+ const ua = {
2660
2733
  mounted(e, n) {
2661
2734
  const t = typeof n.value == "number" ? n.value : 0, o = () => {
2662
- if (e.matches(qt)) {
2735
+ if (e.matches(Zt)) {
2663
2736
  e.focus();
2664
2737
  return;
2665
2738
  }
2666
- const l = na(e);
2739
+ const l = ca(e);
2667
2740
  l && l.focus();
2668
2741
  };
2669
2742
  t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
2670
2743
  }
2671
- }, la = "navigationProvider";
2672
- function aa(e) {
2744
+ };
2745
+ class it {
2746
+ static _instance = null;
2747
+ observer = null;
2748
+ targets = /* @__PURE__ */ new Map();
2749
+ constructor() {
2750
+ this.init();
2751
+ }
2752
+ static get instance() {
2753
+ return this._instance || (this._instance = new it()), this._instance;
2754
+ }
2755
+ init() {
2756
+ typeof window < "u" && "ResizeObserver" in window ? this.observer = new ResizeObserver((n) => {
2757
+ for (const t of n) this.handleEntry(t);
2758
+ }) : typeof window < "u" && globalThis.addEventListener("resize", this.handleWindowResize);
2759
+ }
2760
+ handleWindowResize = () => {
2761
+ for (const n of this.targets.keys()) {
2762
+ const t = n.getBoundingClientRect(), o = {
2763
+ target: n,
2764
+ contentRect: t
2765
+ };
2766
+ this.handleEntry(o);
2767
+ }
2768
+ };
2769
+ handleEntry(n) {
2770
+ const t = this.targets.get(n.target);
2771
+ if (!t) return;
2772
+ const o = n.contentRect.width, l = n.contentRect.height, s = n.target;
2773
+ for (const a of t.callbacks)
2774
+ try {
2775
+ a(o, l, s);
2776
+ } catch (r) {
2777
+ console.error("resize callback error", r);
2778
+ }
2779
+ if (t.breakpoints) {
2780
+ const a = Object.keys(t.breakpoints).map((i) => Number(i)).filter((i) => !Number.isNaN(i)).sort((i, u) => i - u);
2781
+ let r;
2782
+ for (const i of a)
2783
+ o >= i && (r = t.breakpoints[i]);
2784
+ r !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), r && n.target.classList.add(r), t.currentClass = r);
2785
+ }
2786
+ }
2787
+ observe(n, t, o) {
2788
+ const l = this.targets.get(n);
2789
+ if (l)
2790
+ t && l.callbacks.add(t), o?.breakpoints && (l.breakpoints = o.breakpoints);
2791
+ else {
2792
+ const s = /* @__PURE__ */ new Set();
2793
+ t && s.add(t), this.targets.set(n, { callbacks: s, breakpoints: o?.breakpoints }), this.observer && this.observer.observe(n);
2794
+ }
2795
+ if (o?.immediate) {
2796
+ const s = n.getBoundingClientRect(), a = { target: n, contentRect: s };
2797
+ if (this.handleEntry(a), t) {
2798
+ const r = s.width, i = s.height;
2799
+ t(r, i, n);
2800
+ }
2801
+ }
2802
+ }
2803
+ unobserve(n, t) {
2804
+ const o = this.targets.get(n);
2805
+ 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)));
2806
+ }
2807
+ }
2808
+ const Ve = it.instance, da = {
2809
+ mounted(e, n) {
2810
+ const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, s = typeof t == "object" && !!t?.immediate, a = e;
2811
+ a.__resize_cb = o, a.__resize_breakpoints = l, o && Ve.observe(e, o, { breakpoints: l, immediate: s });
2812
+ },
2813
+ updated(e, n) {
2814
+ const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, s = n.value, a = typeof s == "function" ? s : s?.onResize, r = typeof s == "object" && s?.breakpoints ? s.breakpoints : void 0;
2815
+ if (o !== a) {
2816
+ o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: r, immediate: !!(s && typeof s == "object" && s.immediate) }), t.__resize_cb = a, t.__resize_breakpoints = r;
2817
+ return;
2818
+ }
2819
+ JSON.stringify(l || {}) !== JSON.stringify(r || {}) && (o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: r, immediate: !0 }), t.__resize_breakpoints = r);
2820
+ },
2821
+ unmounted(e) {
2822
+ const n = e, t = n.__resize_cb;
2823
+ t && Ve.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
2824
+ }
2825
+ }, fa = "navigationProvider";
2826
+ function ma(e) {
2673
2827
  return !!e.meta && "icon" in e.meta && "label" in e.meta;
2674
2828
  }
2675
- const sa = () => {
2676
- const e = un(), n = dn(), t = !0, o = C(() => {
2677
- const i = e.getRoutes();
2678
- return i.filter((d) => d.path !== "/" && !i.some((f) => f.children?.some((m) => m.name === d.name)));
2829
+ const va = () => {
2830
+ const e = vn(), n = pn(), t = !0, o = C(() => {
2831
+ const c = e.getRoutes();
2832
+ return c.filter((d) => d.path !== "/" && !c.some((m) => m.children?.some((f) => f.name === d.name)));
2679
2833
  }), l = C(() => {
2680
- const i = n.matched;
2681
- return i.length ? i[i.length - 1] : null;
2682
- }), a = C(() => {
2683
- const i = n.matched;
2684
- return i.length > 1 ? i[i.length - 2] : null;
2685
- }), s = C(() => !!(l.value?.children?.length || a.value)), u = C(() => l.value?.children?.length ? l.value : a.value?.children?.length ? a.value : null), c = C(() => {
2686
- if (!u.value) return null;
2687
- const d = e.getRoutes().find((f) => f.children?.some((m) => m.name === u.value.name));
2834
+ const c = n.matched;
2835
+ return c.length ? c[c.length - 1] : null;
2836
+ }), s = C(() => {
2837
+ const c = n.matched;
2838
+ return c.length > 1 ? c[c.length - 2] : null;
2839
+ }), a = C(() => !!(l.value?.children?.length || s.value)), r = C(() => l.value?.children?.length ? l.value : s.value?.children?.length ? s.value : null), i = C(() => {
2840
+ if (!r.value) return null;
2841
+ const d = e.getRoutes().find((m) => m.children?.some((f) => f.name === r.value.name));
2688
2842
  return d ? { name: d.name } : { path: "/" };
2689
- }), r = C(() => {
2690
- let i = [];
2691
- return n.path === "/" ? i = o.value : l.value?.children?.length ? i = l.value.children : a.value?.children?.length ? i = a.value.children : i = o.value, i.filter(aa);
2843
+ }), u = C(() => {
2844
+ let c = [];
2845
+ return n.path === "/" ? c = o.value : l.value?.children?.length ? c = l.value.children : s.value?.children?.length ? c = s.value.children : c = o.value, c.filter(ma);
2692
2846
  });
2693
2847
  return {
2694
- hasParent: s,
2695
- backRoute: c,
2696
- childRoutes: r,
2848
+ hasParent: a,
2849
+ backRoute: i,
2850
+ childRoutes: u,
2697
2851
  showLabels: t
2698
2852
  };
2699
- }, ba = (e, n = !0, t = void 0) => {
2700
- const o = sn(e) ? e : R(e), l = !!t, a = R(t || null);
2853
+ }, Sa = (e, n = !0, t = void 0) => {
2854
+ const o = dn(e) ? e : R(e), l = !!t, s = R(t || null);
2701
2855
  return {
2702
2856
  hasParent: l,
2703
- backRoute: a,
2857
+ backRoute: s,
2704
2858
  childRoutes: o,
2705
2859
  showLabels: n
2706
2860
  };
2707
- }, at = R(!1), st = R(null), it = R(null);
2708
- let ke = [];
2709
- const Gt = (e) => (ke.push(e), () => {
2710
- ke = ke.filter((n) => n !== e);
2711
- }), ia = (e, n) => (ke = [], st.value = e, it.value = n ?? null, at.value = !0, {
2712
- onClose: (t) => Gt(t)
2713
- }), ra = (e) => {
2861
+ }, rt = R(!1), ct = R(null), ut = R(null);
2862
+ let Ce = [];
2863
+ const en = (e) => (Ce.push(e), () => {
2864
+ Ce = Ce.filter((n) => n !== e);
2865
+ }), pa = (e, n) => (Ce = [], ct.value = e, ut.value = n ?? null, rt.value = !0, {
2866
+ onClose: (t) => en(t)
2867
+ }), ha = (e) => {
2714
2868
  try {
2715
- ke.forEach((n) => {
2869
+ Ce.forEach((n) => {
2716
2870
  try {
2717
2871
  n(e);
2718
2872
  } catch (t) {
@@ -2720,26 +2874,66 @@ const Gt = (e) => (ke.push(e), () => {
2720
2874
  }
2721
2875
  });
2722
2876
  } finally {
2723
- at.value = !1, setTimeout(ca, 1e3);
2724
- }
2725
- }, ca = () => {
2726
- ke = [], st.value = null, it.value = null;
2727
- }, ua = {
2728
- asideComponent: st,
2729
- asideData: it,
2730
- showAside: ia,
2731
- closeAside: ra,
2732
- onAsideClose: Gt,
2733
- hasAside: at
2734
- }, da = () => ua, ya = (e, n) => {
2877
+ rt.value = !1, setTimeout(ba, 1e3);
2878
+ }
2879
+ }, ba = () => {
2880
+ Ce = [], ct.value = null, ut.value = null;
2881
+ }, ga = {
2882
+ asideComponent: ct,
2883
+ asideData: ut,
2884
+ showAside: pa,
2885
+ closeAside: ha,
2886
+ onAsideClose: en,
2887
+ hasAside: rt
2888
+ }, ya = () => ga, $a = (e, n) => {
2735
2889
  let t = null;
2736
2890
  return (...l) => {
2737
2891
  t && clearTimeout(t), t = setTimeout(() => {
2738
2892
  e(...l);
2739
2893
  }, n);
2740
2894
  };
2895
+ }, La = () => {
2896
+ const e = R(!1), n = R(null), t = () => {
2897
+ n.value = null;
2898
+ };
2899
+ class o {
2900
+ inner;
2901
+ defaultValue;
2902
+ handlers = [];
2903
+ constructor(a, r) {
2904
+ this.inner = a, this.defaultValue = r;
2905
+ }
2906
+ onError(a) {
2907
+ return this.handlers.push(a), this;
2908
+ }
2909
+ async exec() {
2910
+ n.value = null, e.value = !0;
2911
+ try {
2912
+ return await this.inner();
2913
+ } catch (a) {
2914
+ n.value = a;
2915
+ for (const r of this.handlers)
2916
+ try {
2917
+ r(a);
2918
+ } catch (i) {
2919
+ console.error("onError handler failed", i);
2920
+ }
2921
+ if (this.defaultValue !== void 0) return this.defaultValue;
2922
+ throw a;
2923
+ } finally {
2924
+ e.value = !1;
2925
+ }
2926
+ }
2927
+ then(a, r) {
2928
+ return this.exec().then(a, r);
2929
+ }
2930
+ }
2931
+ function l(s, a) {
2932
+ return new o(s, a);
2933
+ }
2934
+ return { run: l, running: e, error: n, clearError: t };
2741
2935
  };
2742
- class fa {
2936
+ class wa {
2743
2937
  containerElement = null;
2744
2938
  apps = [];
2745
2939
  ensureContainer() {
@@ -2749,15 +2943,15 @@ class fa {
2749
2943
  return new Promise((t) => {
2750
2944
  const o = this.ensureContainer(), l = document.createElement("div");
2751
2945
  o.appendChild(l);
2752
- let a = !1;
2753
- const s = () => {
2754
- a || (a = !0, setTimeout(() => {
2755
- const c = this.apps.find((r) => r.element === l);
2756
- c && (c.app.unmount(), this.apps = this.apps.filter((r) => r !== c)), l.remove();
2946
+ let s = !1;
2947
+ const a = () => {
2948
+ s || (s = !0, setTimeout(() => {
2949
+ const i = this.apps.find((u) => u.element === l);
2950
+ i && (i.app.unmount(), this.apps = this.apps.filter((u) => u !== i)), l.remove();
2757
2951
  }, 300));
2758
- }, u = rn({
2952
+ }, r = fn({
2759
2953
  setup() {
2760
- return () => cn(Et, {
2954
+ return () => mn(At, {
2761
2955
  modelValue: !0,
2762
2956
  title: n.title,
2763
2957
  message: n.message,
@@ -2770,18 +2964,18 @@ class fa {
2770
2964
  closeOnBackdrop: n.closeOnBackdrop ?? !1,
2771
2965
  closeOnEscape: n.closeOnEscape ?? !0,
2772
2966
  onConfirm: () => {
2773
- t(!0), s();
2967
+ t(!0), a();
2774
2968
  },
2775
2969
  onCancel: () => {
2776
- t(!1), s();
2970
+ t(!1), a();
2777
2971
  },
2778
2972
  onClose: () => {
2779
- a || t(!1), s();
2973
+ s || t(!1), a();
2780
2974
  }
2781
2975
  });
2782
2976
  }
2783
2977
  });
2784
- u.component("VjCard", Rt), u.component("VjIcon", Oe), u.component("VjButton", Ct), u.mount(l), this.apps.push({ app: u, element: l });
2978
+ r.component("VjCard", Lt), r.component("VjIcon", Te), r.component("VjButton", $t), r.mount(l), this.apps.push({ app: r, element: l });
2785
2979
  });
2786
2980
  }
2787
2981
  confirm(n) {
@@ -2809,54 +3003,61 @@ class fa {
2809
3003
  }), this.apps = [];
2810
3004
  }
2811
3005
  }
2812
- const ma = new fa();
2813
- function wa() {
2814
- return ma;
3006
+ const xa = new wa();
3007
+ function Aa() {
3008
+ return xa;
2815
3009
  }
2816
- const xa = {
3010
+ const Oa = {
2817
3011
  install(e) {
2818
- e.component("VjButton", Ct), e.component("VjButtonBar", gn), e.component("VjCard", Rt), e.component("VjCarousel", Ln), e.component("VjDotMenu", $o), e.component("VjIcon", Oe), e.component("VjLinkButton", Ao), e.component("VjMenu", jo), e.component("VjMenuAction", Mo), e.component("VjPage", Ko), e.component("VjPaginator", Yo), e.component("VjTab", ul), e.component("VjTabView", rl), e.component("VjDialog", Et), e.component("VjInput", Xt), e.component("VjSelect", Wt), e.component("VjTextArea", Ut), e.component("VjFormField", Pe), e.component("VjFormLayout", gl), e.component("VjFormSection", wl), e.component("VjInputText", Ml), e.component("VjInputTextArea", Al), e.component("VjInputSelect", El), e.component("VjInputSlider", ta), e.component("VjShellNavigation", Kt), e.component("VjShellNavigationItem", jl), e.component("VjShell", ql), e.component("VjSearchField", el), e.component("VjSeparator", nl), e.directive("focus", oa);
3012
+ e.component("VjButton", $t), e.component("VjButtonBar", xn), e.component("VjCard", Lt), e.component("VjCarousel", Bn), e.component("VjDotMenu", To), e.component("VjIcon", Te), e.component("VjLinkButton", Mo), e.component("VjMenu", Ho), e.component("VjMenuAction", jo), e.component("VjPage", Jo), e.component("VjPaginator", el), e.component("VjTab", vl), e.component("VjTabView", fl), e.component("VjDialog", At), e.component("VjInput", Jt), e.component("VjSelect", Gt), e.component("VjTextArea", Yt), e.component("VjFormField", Fe), e.component("VjFormLayout", Vl), e.component("VjFormSection", Rl), e.component("VjInputText", ql), e.component("VjInputTextArea", Wl), e.component("VjInputSelect", Tl), e.component("VjInputSlider", zl), e.component("VjShellNavigation", Qt), e.component("VjShellNavigationItem", Ql), e.component("VjShell", ia), e.component("VjSearchField", ll), e.component("VjSeparator", sl), e.directive("focus", ua), e.directive("resize", da), e.directive("compact", ra);
2819
3013
  }
2820
3014
  };
2821
3015
  export {
2822
- Ct as Button,
2823
- gn as ButtonBar,
2824
- Rt as Card,
2825
- Ln as Carousel,
2826
- ga as Checkbox,
2827
- Et as Dialog,
2828
- $o as DotMenu,
2829
- Pe as FormField,
2830
- gl as FormLayout,
2831
- wl as FormSection,
2832
- Oe as Icon,
2833
- N as IconNames,
2834
- U as IconSize,
2835
- Xt as Input,
2836
- El as InputSelect,
2837
- Ml as InputText,
2838
- Al as InputTextArea,
2839
- Ao as LinkButton,
2840
- jo as Menu,
2841
- Mo as MenuAction,
2842
- Ko as Page,
2843
- Yo as Paginator,
2844
- el as SearchField,
2845
- Wt as Select,
2846
- nl as Separator,
2847
- ql as Shell,
2848
- Kt as ShellNavigation,
2849
- jl as ShellNavigationItem,
2850
- ul as Tab,
2851
- rl as TabView,
2852
- Ut as TextArea,
2853
- xa as VjComponents,
2854
- la as VjNavigationProviderKey,
2855
- ma as dialogService,
2856
- da as useAsideService,
2857
- ya as useDebounce,
2858
- wa as useDialog,
2859
- sa as useRouterNavigationProvider,
2860
- ba as useStaticNavigationProvider,
2861
- oa as vFocusFirst
3016
+ $t as Button,
3017
+ xn as ButtonBar,
3018
+ Lt as Card,
3019
+ Bn as Carousel,
3020
+ Ca as Checkbox,
3021
+ At as Dialog,
3022
+ To as DotMenu,
3023
+ Fe as FormField,
3024
+ Vl as FormLayout,
3025
+ Rl as FormSection,
3026
+ Te as Icon,
3027
+ H as IconNames,
3028
+ X as IconSize,
3029
+ Jt as Input,
3030
+ Tl as InputSelect,
3031
+ zl as InputSlider,
3032
+ ql as InputText,
3033
+ Wl as InputTextArea,
3034
+ Mo as LinkButton,
3035
+ Ho as Menu,
3036
+ jo as MenuAction,
3037
+ Jo as Page,
3038
+ el as Paginator,
3039
+ ll as SearchField,
3040
+ Gt as Select,
3041
+ sl as Separator,
3042
+ ia as Shell,
3043
+ Qt as ShellNavigation,
3044
+ Ql as ShellNavigationItem,
3045
+ vl as Tab,
3046
+ fl as TabView,
3047
+ Yt as TextArea,
3048
+ Oa as VjComponents,
3049
+ fa as VjNavigationProviderKey,
3050
+ ra as compactDirective,
3051
+ Ra as configureVueUI,
3052
+ xa as dialogService,
3053
+ pl as getVueUIConfig,
3054
+ Ea as resetVueUIConfig,
3055
+ ya as useAsideService,
3056
+ $a as useDebounce,
3057
+ Aa as useDialog,
3058
+ La as useFlow,
3059
+ va as useRouterNavigationProvider,
3060
+ Sa as useStaticNavigationProvider,
3061
+ ua as vFocusFirst,
3062
+ da as vResize
2862
3063
  };