@reinosoft-ui/core 0.1.11 → 0.1.13

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,5 +1,5 @@
1
- import { defineComponent as S, ref as p, computed as L, watch as Y, onMounted as te, createElementBlock as m, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as W, createCommentVNode as K, withDirectives as He, createElementVNode as y, vShow as qe, mergeProps as he, onUnmounted as ye, Fragment as ae, withKeys as ve, unref as I, toDisplayString as U, renderList as de, createBlock as J, Transition as xe, withCtx as G, withModifiers as le, nextTick as Me, mergeModels as ne, useModel as me, useId as ie, provide as Ce, createVNode as P, createTextVNode as pe, onBeforeUnmount as _e, Teleport as Re, resolveDynamicComponent as Ie, useAttrs as Ne, inject as se, h as F, useSlots as ze, resolveComponent as pt, vModelRadio as bt, vModelDynamic as gt, reactive as ot, TransitionGroup as Ct, createApp as ht, shallowRef as yt } from "vue";
2
- const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Mt = /* @__PURE__ */ S({
1
+ import { defineComponent as R, ref as m, computed as x, watch as Y, onMounted as te, createElementBlock as f, openBlock as v, normalizeStyle as ge, normalizeClass as re, renderSlot as U, createCommentVNode as F, withDirectives as He, createElementVNode as y, vShow as Oe, mergeProps as he, onUnmounted as ye, Fragment as ae, withKeys as fe, unref as B, toDisplayString as P, renderList as de, createBlock as G, Transition as xe, withCtx as X, withModifiers as oe, nextTick as Me, mergeModels as ne, useModel as me, useId as ie, provide as Ce, createVNode as K, createTextVNode as pe, onBeforeUnmount as Ve, Teleport as _e, resolveDynamicComponent as Ie, useAttrs as qe, inject as le, h as z, useSlots as Ne, resolveComponent as mt, vModelRadio as pt, vModelDynamic as bt, reactive as nt, TransitionGroup as gt, createApp as Ct, shallowRef as ht } from "vue";
2
+ const yt = ["aria-busy"], kt = ["aria-label"], wt = ["src", "srcset", "sizes", "alt", "aria-hidden", "loading", "decoding"], Lt = /* @__PURE__ */ R({
3
3
  __name: "Image",
4
4
  props: {
5
5
  src: {},
@@ -15,7 +15,7 @@ const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "
15
15
  },
16
16
  emits: ["loaded", "error"],
17
17
  setup(e, { emit: n }) {
18
- const t = e, a = n, s = p(t.src), r = p(), i = p("loading"), o = L(() => t.ratio ? {
18
+ const t = e, a = n, s = m(t.src), r = m(), i = m("loading"), o = x(() => t.ratio ? {
19
19
  aspectRatio: typeof t.ratio == "number" ? `${t.ratio}` : t.ratio
20
20
  } : void 0), l = () => {
21
21
  i.value = "loaded", a("loaded");
@@ -31,7 +31,7 @@ const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "
31
31
  (d) => {
32
32
  s.value = d, i.value = "loading";
33
33
  }
34
- ), te(() => r.value?.complete && r.value.naturalWidth > 0 && (i.value = "loaded")), (d, g) => (v(), m("div", {
34
+ ), te(() => r.value?.complete && r.value.naturalWidth > 0 && (i.value = "loaded")), (d, g) => (v(), f("div", {
35
35
  class: re(["ui-image", {
36
36
  "is-loading": i.value === "loading",
37
37
  "is-error": i.value === "error",
@@ -41,18 +41,18 @@ const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "
41
41
  style: ge(o.value),
42
42
  "aria-busy": i.value === "loading" || void 0
43
43
  }, [
44
- i.value === "loading" ? W(d.$slots, "placeholder", { key: 0 }, () => [
44
+ i.value === "loading" ? U(d.$slots, "placeholder", { key: 0 }, () => [
45
45
  g[0] || (g[0] = y("div", {
46
46
  class: "ui-image__placeholder",
47
47
  "aria-hidden": "true"
48
48
  }, null, -1))
49
- ], !0) : i.value === "error" ? W(d.$slots, "fallback", { key: 1 }, () => [
49
+ ], !0) : i.value === "error" ? U(d.$slots, "fallback", { key: 1 }, () => [
50
50
  y("div", {
51
51
  class: "ui-image__fallback",
52
52
  role: "img",
53
53
  "aria-label": e.decorative ? void 0 : e.alt
54
- }, "Image not available", 8, wt)
55
- ], !0) : K("", !0),
54
+ }, "Image not available", 8, kt)
55
+ ], !0) : F("", !0),
56
56
  He(y("img", {
57
57
  ref_key: "imgRef",
58
58
  ref: r,
@@ -66,275 +66,275 @@ const kt = ["aria-busy"], wt = ["aria-label"], Lt = ["src", "srcset", "sizes", "
66
66
  decoding: e.decoding,
67
67
  onLoad: l,
68
68
  onError: c
69
- }, null, 40, Lt), [
70
- [qe, i.value !== "error"]
69
+ }, null, 40, wt), [
70
+ [Oe, i.value !== "error"]
71
71
  ])
72
- ], 14, kt));
72
+ ], 14, yt));
73
73
  }
74
- }), j = (e, n) => {
74
+ }), W = (e, n) => {
75
75
  const t = e.__vccOpts || e;
76
76
  for (const [a, s] of n)
77
77
  t[a] = s;
78
78
  return t;
79
- }, $e = /* @__PURE__ */ j(Mt, [["__scopeId", "data-v-4c5a40da"]]);
79
+ }, $e = /* @__PURE__ */ W(Lt, [["__scopeId", "data-v-4c5a40da"]]);
80
80
  $e.install = (e) => {
81
81
  e.component("Image", $e);
82
82
  };
83
- const $t = /* @__PURE__ */ S({
83
+ const Mt = /* @__PURE__ */ R({
84
84
  __name: "Button",
85
85
  setup(e, { expose: n }) {
86
- const t = p();
86
+ const t = m();
87
87
  return n({
88
88
  el: t
89
- }), (a, s) => (v(), m("button", he({
89
+ }), (a, s) => (v(), f("button", he({
90
90
  ref_key: "rootRef",
91
91
  ref: t,
92
92
  type: "button",
93
93
  class: "btn"
94
94
  }, a.$attrs), [
95
- W(a.$slots, "default", {}, void 0, !0)
95
+ U(a.$slots, "default", {}, void 0, !0)
96
96
  ], 16));
97
97
  }
98
- }), be = /* @__PURE__ */ j($t, [["__scopeId", "data-v-b46162b4"]]);
98
+ }), be = /* @__PURE__ */ W(Mt, [["__scopeId", "data-v-b46162b4"]]);
99
99
  be.install = (e) => {
100
100
  e.component("Button", be);
101
101
  };
102
- const lt = (e) => {
102
+ const ot = (e) => {
103
103
  for (; e; ) {
104
104
  if (e instanceof HTMLElement && e.dataset?.block !== void 0) return e;
105
105
  e = e.parentNode;
106
106
  }
107
107
  return null;
108
- }, xt = (e, n, t) => {
108
+ }, $t = (e, n, t) => {
109
109
  for (; e && e !== t; ) {
110
110
  if (e instanceof HTMLElement && e.tagName.toLowerCase() === n) return e;
111
111
  e = e.parentNode;
112
112
  }
113
113
  return null;
114
- }, It = (e) => e.replaceWith(...Array.from(e.childNodes)), Ht = (e = "p") => {
114
+ }, xt = (e) => e.replaceWith(...Array.from(e.childNodes)), It = (e = "p") => {
115
115
  const n = document.createElement(e);
116
116
  return n.dataset.block = "", n.innerHTML = "<br>", n;
117
- }, Xe = (e) => {
117
+ }, je = (e) => {
118
118
  const n = document.createRange(), t = window.getSelection();
119
119
  n.selectNodeContents(e), n.collapse(!0), t?.removeAllRanges(), t?.addRange(n);
120
- }, Vt = (e, n) => {
120
+ }, Ht = (e, n) => {
121
121
  if (e.shiftKey) {
122
- Rt();
122
+ _t();
123
123
  return;
124
124
  }
125
- _t(e, n);
126
- }, _t = (e, n) => {
125
+ Vt(e, n);
126
+ }, Vt = (e, n) => {
127
127
  e.preventDefault();
128
128
  const t = window.getSelection();
129
129
  if (!t || t.rangeCount === 0) return;
130
- const a = t.getRangeAt(0), s = lt(a.startContainer);
130
+ const a = t.getRangeAt(0), s = ot(a.startContainer);
131
131
  if (!s) return;
132
- const i = Ht("p");
132
+ const i = It("p");
133
133
  document.createRange().selectNodeContents(s);
134
134
  const l = a.cloneRange(), c = document.createRange();
135
135
  c.selectNodeContents(s), c.setEnd(l.startContainer, l.startOffset);
136
136
  const d = c.cloneContents(), g = document.createRange();
137
137
  g.selectNodeContents(s), g.setStart(l.startContainer, l.startOffset);
138
- const $ = g.cloneContents();
139
- s.innerHTML = "", s.appendChild(d), s.innerHTML === "" && (s.innerHTML = "<br>"), i.innerHTML = "", i.appendChild($), i.innerHTML === "" && (i.innerHTML = "<br>"), s.after(i);
140
- const M = document.createRange();
141
- M.setStart(i, 0), M.collapse(!0), t.removeAllRanges(), t.addRange(M), n?.normalize();
142
- }, Rt = () => {
138
+ const M = g.cloneContents();
139
+ s.innerHTML = "", s.appendChild(d), s.innerHTML === "" && (s.innerHTML = "<br>"), i.innerHTML = "", i.appendChild(M), i.innerHTML === "" && (i.innerHTML = "<br>"), s.after(i);
140
+ const L = document.createRange();
141
+ L.setStart(i, 0), L.collapse(!0), t.removeAllRanges(), t.addRange(L), n?.normalize();
142
+ }, _t = () => {
143
143
  const e = window.getSelection();
144
144
  if (!e || e.rangeCount === 0) return;
145
145
  const n = e.getRangeAt(0), t = document.createElement("br");
146
146
  n.insertNode(t), n.setStartAfter(t), n.collapse(!0), e.removeAllRanges(), e.addRange(n);
147
- }, Ge = (e) => {
147
+ }, Xe = (e) => {
148
148
  const n = window.getSelection();
149
149
  if (!n || n.rangeCount === 0) return;
150
- const t = n.getRangeAt(0), a = lt(t.startContainer);
150
+ const t = n.getRangeAt(0), a = ot(t.startContainer);
151
151
  if (!a || !(a.textContent === "" || a.innerHTML === "<br>")) return;
152
152
  const r = a.previousElementSibling, i = a.nextElementSibling;
153
153
  if (e.preventDefault(), !r && !i) {
154
- a.innerHTML = "<br>", Xe(a);
154
+ a.innerHTML = "<br>", je(a);
155
155
  return;
156
156
  }
157
- r && r.dataset.block !== void 0 ? (a.remove(), Bt(r)) : i && i.dataset.block !== void 0 && (a.remove(), Xe(i));
158
- }, Bt = (e) => {
157
+ r && r.dataset.block !== void 0 ? (a.remove(), Rt(r)) : i && i.dataset.block !== void 0 && (a.remove(), je(i));
158
+ }, Rt = (e) => {
159
159
  const n = document.createRange(), t = window.getSelection();
160
160
  n.selectNodeContents(e), n.collapse(!1), t?.removeAllRanges(), t?.addRange(n);
161
- }, St = (e, n) => {
162
- const t = p(null), a = n?.buttons ?? [];
163
- let s = p(null);
161
+ }, Bt = (e, n) => {
162
+ const t = m(null), a = n?.buttons ?? [];
163
+ let s = m(null);
164
164
  const r = () => {
165
- const f = e;
166
- if (!f) return;
167
- const w = window.getSelection();
168
- if (!w || w.rangeCount === 0) return;
169
- const _ = w.getRangeAt(0);
170
- f.contains(_.commonAncestorContainer) && (t.value = _.cloneRange());
171
- }, i = (f) => {
172
- const w = window.getSelection();
173
- if (!w || w.rangeCount === 0 || w.isCollapsed) return !1;
174
- const _ = w.getRangeAt(0), N = e;
175
- if (!N) return !1;
176
- const T = o(_, N), z = [];
177
- if (T.forEach((b) => {
178
- const h = b === _.startContainer ? _.startOffset : 0, E = b === _.endContainer ? _.endOffset : b.textContent.length;
179
- if (h === E) return;
180
- let X;
181
- h === 0 && E === b.textContent.length ? X = b : (X = b.splitText(h), E - h < X.textContent.length && X.splitText(E - h));
182
- const V = xt(X, f, N);
183
- if (V)
184
- It(V), z.push(X);
165
+ const p = e;
166
+ if (!p) return;
167
+ const $ = window.getSelection();
168
+ if (!$ || $.rangeCount === 0) return;
169
+ const H = $.getRangeAt(0);
170
+ p.contains(H.commonAncestorContainer) && (t.value = H.cloneRange());
171
+ }, i = (p) => {
172
+ const $ = window.getSelection();
173
+ if (!$ || $.rangeCount === 0 || $.isCollapsed) return !1;
174
+ const H = $.getRangeAt(0), q = e;
175
+ if (!q) return !1;
176
+ const S = o(H, q), N = [];
177
+ if (S.forEach((b) => {
178
+ const h = b === H.startContainer ? H.startOffset : 0, Z = b === H.endContainer ? H.endOffset : b.textContent.length;
179
+ if (h === Z) return;
180
+ let w;
181
+ h === 0 && Z === b.textContent.length ? w = b : (w = b.splitText(h), Z - h < w.textContent.length && w.splitText(Z - h));
182
+ const T = $t(w, p, q);
183
+ if (T)
184
+ xt(T), N.push(w);
185
185
  else {
186
- const A = document.createElement(f);
187
- X.replaceWith(A), A.appendChild(X), z.push(X);
186
+ const J = document.createElement(p);
187
+ w.replaceWith(J), J.appendChild(w), N.push(w);
188
188
  }
189
- }), z.length > 0) {
189
+ }), N.length > 0) {
190
190
  const b = document.createRange();
191
- b.setStart(z[0], 0);
192
- const h = z[z.length - 1];
193
- b.setEnd(h, h.textContent.length), w.removeAllRanges(), w.addRange(b), r();
191
+ b.setStart(N[0], 0);
192
+ const h = N[N.length - 1];
193
+ b.setEnd(h, h.textContent.length), $.removeAllRanges(), $.addRange(b), r();
194
194
  }
195
- return M(), u(f);
196
- }, o = (f, w) => {
197
- if (!f || !w || !(w instanceof HTMLElement)) return [];
198
- const _ = f.commonAncestorContainer, N = w.contains(_) ? w : _.nodeType === 3 ? _.parentNode : _, T = document.createTreeWalker(
199
- N,
195
+ return L(), u(p);
196
+ }, o = (p, $) => {
197
+ if (!p || !$ || !($ instanceof HTMLElement)) return [];
198
+ const H = p.commonAncestorContainer, q = $.contains(H) ? $ : H.nodeType === 3 ? H.parentNode : H, S = document.createTreeWalker(
199
+ q,
200
200
  NodeFilter.SHOW_TEXT,
201
201
  {
202
202
  acceptNode(h) {
203
- return w.contains(h) && f.intersectsNode(h) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
203
+ return $.contains(h) && p.intersectsNode(h) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
204
204
  }
205
205
  }
206
- ), z = [];
206
+ ), N = [];
207
207
  let b;
208
- for (; b = T.nextNode(); ) z.push(b);
209
- return z;
210
- }, l = (f) => {
211
- const w = window.getSelection();
212
- if (!w || w.rangeCount === 0) return !1;
213
- const _ = w.getRangeAt(0), N = c(_.startContainer);
214
- if (!N) return !1;
215
- const z = N.tagName.toLowerCase() === f.toLowerCase() ? "p" : f.toLowerCase(), b = document.createElement(z);
216
- for (z === "blockquote" && b.setAttribute("class", "rs-blockquote"), b.dataset.block = "true"; N.firstChild; ) b.appendChild(N.firstChild);
217
- N.replaceWith(b);
208
+ for (; b = S.nextNode(); ) N.push(b);
209
+ return N;
210
+ }, l = (p) => {
211
+ const $ = window.getSelection();
212
+ if (!$ || $.rangeCount === 0) return !1;
213
+ const H = $.getRangeAt(0), q = c(H.startContainer);
214
+ if (!q) return !1;
215
+ const N = q.tagName.toLowerCase() === p.toLowerCase() ? "p" : p.toLowerCase(), b = document.createElement(N);
216
+ for (N === "blockquote" && b.setAttribute("class", "rs-blockquote"), b.dataset.block = "true"; q.firstChild; ) b.appendChild(q.firstChild);
217
+ q.replaceWith(b);
218
218
  const h = document.createRange();
219
- return h.selectNodeContents(b), w.removeAllRanges(), w.addRange(h), r(), M(), C(f);
220
- }, c = (f) => {
221
- const w = e;
222
- if (!w) return null;
223
- for (; f && f !== w; ) {
224
- if (f instanceof HTMLElement && f.dataset.block !== void 0) return f;
225
- f = f.parentNode;
219
+ return h.selectNodeContents(b), $.removeAllRanges(), $.addRange(h), r(), L(), C(p);
220
+ }, c = (p) => {
221
+ const $ = e;
222
+ if (!$) return null;
223
+ for (; p && p !== $; ) {
224
+ if (p instanceof HTMLElement && p.dataset.block !== void 0) return p;
225
+ p = p.parentNode;
226
226
  }
227
227
  return null;
228
- }, d = (f, w) => {
229
- const _ = e;
230
- if (!_) return null;
231
- for (; f && f !== _; ) {
232
- if (f instanceof HTMLElement && f.tagName.toLowerCase() === w.toLowerCase()) return f;
233
- f = f.parentNode;
228
+ }, d = (p, $) => {
229
+ const H = e;
230
+ if (!H) return null;
231
+ for (; p && p !== H; ) {
232
+ if (p instanceof HTMLElement && p.tagName.toLowerCase() === $.toLowerCase()) return p;
233
+ p = p.parentNode;
234
234
  }
235
235
  return null;
236
- }, g = (f) => {
237
- if (f.key !== "Enter" || f.shiftKey) return;
238
- const w = window.getSelection();
239
- if (!w || w.rangeCount === 0) return;
240
- const _ = w.getRangeAt(0), N = d(_.startContainer, "li");
241
- if (!N) return;
242
- f.preventDefault(), f.stopPropagation();
243
- const T = N.parentElement;
244
- if (!T) return;
245
- if (N.textContent?.trim() === "") {
236
+ }, g = (p) => {
237
+ if (p.key !== "Enter" || p.shiftKey) return;
238
+ const $ = window.getSelection();
239
+ if (!$ || $.rangeCount === 0) return;
240
+ const H = $.getRangeAt(0), q = d(H.startContainer, "li");
241
+ if (!q) return;
242
+ p.preventDefault(), p.stopPropagation();
243
+ const S = q.parentElement;
244
+ if (!S) return;
245
+ if (q.textContent?.trim() === "") {
246
246
  const h = document.createElement("p");
247
- h.dataset.block = "true", h.innerHTML = "<br>", T.after(h), N.remove(), T.children.length === 0 && T.remove(), $(h);
247
+ h.dataset.block = "true", h.innerHTML = "<br>", S.after(h), q.remove(), S.children.length === 0 && S.remove(), M(h);
248
248
  return;
249
249
  }
250
250
  const b = document.createElement("li");
251
- b.innerHTML = "<br>", N.after(b), $(b);
252
- }, $ = (f) => {
253
- const w = document.createRange(), _ = window.getSelection();
254
- w.selectNodeContents(f), w.collapse(!0), _?.removeAllRanges(), _?.addRange(w);
255
- }, M = () => {
251
+ b.innerHTML = "<br>", q.after(b), M(b);
252
+ }, M = (p) => {
253
+ const $ = document.createRange(), H = window.getSelection();
254
+ $.selectNodeContents(p), $.collapse(!0), H?.removeAllRanges(), H?.addRange($);
255
+ }, L = () => {
256
256
  e instanceof Node && e.normalize();
257
- }, u = (f) => {
258
- const w = t.value;
259
- if (!w) return !1;
260
- let _ = w.startContainer;
261
- _.nodeType === Node.TEXT_NODE && (_ = _.parentNode);
262
- const N = e;
263
- if (!N) return !1;
264
- for (; _ && _ !== N; ) {
265
- if (_ instanceof HTMLElement && _.tagName.toLowerCase() === f.toLowerCase()) return !0;
266
- _ = _.parentNode;
257
+ }, u = (p) => {
258
+ const $ = t.value;
259
+ if (!$) return !1;
260
+ let H = $.startContainer;
261
+ H.nodeType === Node.TEXT_NODE && (H = H.parentNode);
262
+ const q = e;
263
+ if (!q) return !1;
264
+ for (; H && H !== q; ) {
265
+ if (H instanceof HTMLElement && H.tagName.toLowerCase() === p.toLowerCase()) return !0;
266
+ H = H.parentNode;
267
267
  }
268
268
  return !1;
269
- }, C = (f) => {
270
- const w = t.value;
271
- if (!w) return !1;
272
- let _ = w.startContainer;
273
- _.nodeType === Node.TEXT_NODE && (_ = _.parentNode);
274
- const N = e;
275
- if (!N) return !1;
276
- for (; _ && _ !== N; ) {
277
- if (_ instanceof HTMLElement && _.dataset.block !== void 0 && _.tagName.toLowerCase() === f.toLowerCase()) return !0;
278
- _ = _.parentNode;
269
+ }, C = (p) => {
270
+ const $ = t.value;
271
+ if (!$) return !1;
272
+ let H = $.startContainer;
273
+ H.nodeType === Node.TEXT_NODE && (H = H.parentNode);
274
+ const q = e;
275
+ if (!q) return !1;
276
+ for (; H && H !== q; ) {
277
+ if (H instanceof HTMLElement && H.dataset.block !== void 0 && H.tagName.toLowerCase() === p.toLowerCase()) return !0;
278
+ H = H.parentNode;
279
279
  }
280
280
  return !1;
281
- }, H = () => {
282
- const f = e;
283
- f && f.focus();
284
- }, R = () => {
285
- const f = e;
286
- if (!f || !t.value || !f || !f.contains(t.value.commonAncestorContainer)) return;
287
- const w = window.getSelection();
288
- w && (w.removeAllRanges(), w.addRange(t.value));
289
- }, k = () => s.value?.focusFirstButton?.(), D = (f) => {
290
- const w = window.getSelection();
291
- if (!w || w.rangeCount === 0) return;
292
- const _ = w.getRangeAt(0), N = c(_.startContainer);
293
- if (!N) return;
294
- const T = _.cloneRange();
295
- T.selectNodeContents(N), T.setEnd(_.startContainer, _.startOffset);
296
- const z = T.toString().length, b = _.cloneRange();
297
- b.selectNodeContents(N), b.setEnd(_.endContainer, _.endOffset);
298
- const h = b.toString().length, E = _.collapsed, X = f(N);
299
- N.replaceWith(X);
300
- const V = document.createTreeWalker(
301
- X,
281
+ }, I = () => {
282
+ const p = e;
283
+ p && p.focus();
284
+ }, _ = () => {
285
+ const p = e;
286
+ if (!p || !t.value || !p || !p.contains(t.value.commonAncestorContainer)) return;
287
+ const $ = window.getSelection();
288
+ $ && ($.removeAllRanges(), $.addRange(t.value));
289
+ }, k = () => s.value?.focusFirstButton?.(), D = (p) => {
290
+ const $ = window.getSelection();
291
+ if (!$ || $.rangeCount === 0) return;
292
+ const H = $.getRangeAt(0), q = c(H.startContainer);
293
+ if (!q) return;
294
+ const S = H.cloneRange();
295
+ S.selectNodeContents(q), S.setEnd(H.startContainer, H.startOffset);
296
+ const N = S.toString().length, b = H.cloneRange();
297
+ b.selectNodeContents(q), b.setEnd(H.endContainer, H.endOffset);
298
+ const h = b.toString().length, Z = H.collapsed, w = p(q);
299
+ q.replaceWith(w);
300
+ const T = document.createTreeWalker(
301
+ w,
302
302
  NodeFilter.SHOW_TEXT,
303
303
  null
304
304
  );
305
- let A = 0, Q = null, fe = 0, x = null, O = 0;
306
- for (; V.nextNode(); ) {
307
- const q = V.currentNode, oe = q.textContent?.length ?? 0;
308
- !Q && A + oe >= z && (Q = q, fe = z - A), !x && A + oe >= h && (x = q, O = h - A), A += oe;
305
+ let J = 0, ce = null, V = 0, O = null, Q = 0;
306
+ for (; T.nextNode(); ) {
307
+ const j = T.currentNode, se = j.textContent?.length ?? 0;
308
+ !ce && J + se >= N && (ce = j, V = N - J), !O && J + se >= h && (O = j, Q = h - J), J += se;
309
309
  }
310
- const B = document.createRange();
311
- Q ? B.setStart(Q, fe) : B.setStart(X, 0), !E && x ? B.setEnd(x, O) : B.collapse(!0), w.removeAllRanges(), w.addRange(B), r(), M();
312
- }, Z = (f) => {
313
- const w = e.parentElement?.querySelector("#editor-status");
314
- w && (w.textContent = f, setTimeout(() => w.textContent = "", 2e3));
310
+ const A = document.createRange();
311
+ ce ? A.setStart(ce, V) : A.setStart(w, 0), !Z && O ? A.setEnd(O, Q) : A.collapse(!0), $.removeAllRanges(), $.addRange(A), r(), L();
312
+ }, E = (p) => {
313
+ const $ = e.parentElement?.querySelector("#editor-status");
314
+ $ && ($.textContent = p, setTimeout(() => $.textContent = "", 2e3));
315
315
  };
316
316
  return e.addEventListener("keydown", g, { capture: !0 }), {
317
317
  toggleInline: i,
318
318
  toggleBlock: l,
319
- normalize: M,
319
+ normalize: L,
320
320
  rootElement: e,
321
321
  saveSelection: r,
322
- restoreSelection: R,
322
+ restoreSelection: _,
323
323
  isInlineActive: u,
324
324
  isBlockActive: C,
325
- focus: H,
325
+ focus: I,
326
326
  toolbarRef: s,
327
327
  focusFirstToolbarButton: k,
328
328
  replaceCurrentBlock: D,
329
329
  buttons: a,
330
- announce: Z
330
+ announce: E
331
331
  };
332
- }, Tt = ["id", "aria-label"], At = {
332
+ }, St = ["id", "aria-label"], Tt = {
333
333
  id: "editor-status",
334
334
  class: "sr-only",
335
335
  "aria-live": "polite",
336
336
  "aria-atomic": "true"
337
- }, Zt = /* @__PURE__ */ S({
337
+ }, At = /* @__PURE__ */ R({
338
338
  __name: "EditorContent",
339
339
  props: {
340
340
  editor: {},
@@ -342,7 +342,7 @@ const lt = (e) => {
342
342
  ariaLabel: {}
343
343
  },
344
344
  setup(e, { expose: n }) {
345
- const t = e, a = p(""), s = p(null), r = (o) => {
345
+ const t = e, a = m(""), s = m(null), r = (o) => {
346
346
  if (o.ctrlKey || o.metaKey)
347
347
  switch (o.altKey && o.key === "F10" && (o.preventDefault(), t.editor?.restoreSelection(), t.editor?.focusFirstToolbarButton()), o.key.toLowerCase()) {
348
348
  case "b":
@@ -365,7 +365,7 @@ const lt = (e) => {
365
365
  };
366
366
  return te(() => document.addEventListener("selectionchange", i)), ye(() => document.removeEventListener("selectionchange", i)), n({
367
367
  getRoot: () => s
368
- }), (o, l) => (v(), m(ae, null, [
368
+ }), (o, l) => (v(), f(ae, null, [
369
369
  y("div", {
370
370
  ref_key: "rootRef",
371
371
  ref: s,
@@ -378,10 +378,10 @@ const lt = (e) => {
378
378
  "aria-describedby": "editor-help editor-status",
379
379
  onKeydown: [
380
380
  r,
381
- l[0] || (l[0] = ve((c) => I(Vt)(c, e.editor), ["enter"])),
382
- l[1] || (l[1] = ve(
381
+ l[0] || (l[0] = fe((c) => B(Ht)(c, e.editor), ["enter"])),
382
+ l[1] || (l[1] = fe(
383
383
  //@ts-ignore
384
- (...c) => I(Ge) && I(Ge)(...c),
384
+ (...c) => B(Xe) && B(Xe)(...c),
385
385
  ["backspace"]
386
386
  ))
387
387
  ],
@@ -391,15 +391,15 @@ const lt = (e) => {
391
391
  (...c) => e.editor?.saveSelection && e.editor?.saveSelection(...c))
392
392
  }, [...l[4] || (l[4] = [
393
393
  y("p", { "data-block": "" }, "Write here...", -1)
394
- ])], 40, Tt),
395
- y("div", At, U(a.value), 1),
394
+ ])], 40, St),
395
+ y("div", Tt, P(a.value), 1),
396
396
  l[5] || (l[5] = y("p", {
397
397
  id: "editor-help",
398
398
  class: "sr-only"
399
399
  }, " Use Ctrl+B for bold, Ctrl+I for italic, Alt+Ctrl+1 for heading level 1. ", -1))
400
400
  ], 64));
401
401
  }
402
- }), Et = /* @__PURE__ */ j(Zt, [["__scopeId", "data-v-445744be"]]), Dt = {
402
+ }), Zt = /* @__PURE__ */ W(At, [["__scopeId", "data-v-445744be"]]), Et = {
403
403
  viewBox: "0 0 24 24",
404
404
  paths: [
405
405
  {
@@ -411,7 +411,7 @@ const lt = (e) => {
411
411
  strokeLinecap: "round"
412
412
  }
413
413
  ]
414
- }, Ot = {
414
+ }, Dt = {
415
415
  viewBox: "0 0 24 24",
416
416
  paths: [
417
417
  {
@@ -423,7 +423,7 @@ const lt = (e) => {
423
423
  strokeLinecap: "round"
424
424
  }
425
425
  ]
426
- }, qt = {
426
+ }, Ot = {
427
427
  viewBox: "0 0 24 24",
428
428
  paths: [
429
429
  {
@@ -435,7 +435,7 @@ const lt = (e) => {
435
435
  strokeLinecap: "round"
436
436
  }
437
437
  ]
438
- }, Nt = {
438
+ }, qt = {
439
439
  viewBox: "0 0 24 24",
440
440
  paths: [
441
441
  {
@@ -448,7 +448,7 @@ const lt = (e) => {
448
448
  strokeLinejoin: "round"
449
449
  }
450
450
  ]
451
- }, zt = {
451
+ }, Nt = {
452
452
  viewBox: "0 0 24 24",
453
453
  paths: [
454
454
  {
@@ -464,7 +464,7 @@ const lt = (e) => {
464
464
  fill: "currentColor"
465
465
  }
466
466
  ]
467
- }, Ft = {
467
+ }, zt = {
468
468
  viewBox: "0 0 24 24",
469
469
  paths: [
470
470
  {
@@ -473,7 +473,7 @@ const lt = (e) => {
473
473
  fill: "currentColor"
474
474
  }
475
475
  ]
476
- }, Kt = {
476
+ }, Ft = {
477
477
  viewBox: "0 0 24 24",
478
478
  paths: [
479
479
  {
@@ -482,7 +482,7 @@ const lt = (e) => {
482
482
  fill: "currentColor"
483
483
  }
484
484
  ]
485
- }, Pt = {
485
+ }, Kt = {
486
486
  viewBox: "0 0 24 24",
487
487
  paths: [
488
488
  {
@@ -491,7 +491,7 @@ const lt = (e) => {
491
491
  fill: "currentColor"
492
492
  }
493
493
  ]
494
- }, Ut = {
494
+ }, Pt = {
495
495
  viewBox: "0 0 24 24",
496
496
  paths: [
497
497
  {
@@ -500,7 +500,7 @@ const lt = (e) => {
500
500
  fill: "currentColor"
501
501
  }
502
502
  ]
503
- }, Wt = {
503
+ }, Ut = {
504
504
  viewBox: "0 0 24 24",
505
505
  paths: [
506
506
  {
@@ -522,7 +522,7 @@ const lt = (e) => {
522
522
  fill: "currentColor"
523
523
  }
524
524
  ]
525
- }, jt = {
525
+ }, Wt = {
526
526
  viewBox: "0 0 24 24",
527
527
  paths: [
528
528
  {
@@ -535,7 +535,7 @@ const lt = (e) => {
535
535
  strokeLinejoin: "round"
536
536
  }
537
537
  ]
538
- }, Xt = {
538
+ }, jt = {
539
539
  viewBox: "0 0 24 24",
540
540
  paths: [
541
541
  {
@@ -544,7 +544,7 @@ const lt = (e) => {
544
544
  fill: "currentColor"
545
545
  }
546
546
  ]
547
- }, Gt = {
547
+ }, Xt = {
548
548
  viewBox: "0 0 24 24",
549
549
  paths: [
550
550
  {
@@ -578,7 +578,7 @@ const lt = (e) => {
578
578
  fill: "currentColor"
579
579
  }
580
580
  ]
581
- }, Jt = {
581
+ }, Gt = {
582
582
  viewBox: "0 0 24 24",
583
583
  paths: [
584
584
  {
@@ -618,7 +618,7 @@ const lt = (e) => {
618
618
  fill: "currentColor"
619
619
  }
620
620
  ]
621
- }, Yt = {
621
+ }, Jt = {
622
622
  viewBox: "0 0 24 24",
623
623
  paths: [
624
624
  {
@@ -631,7 +631,7 @@ const lt = (e) => {
631
631
  strokeLinejoin: "round"
632
632
  }
633
633
  ]
634
- }, Qt = {
634
+ }, Yt = {
635
635
  viewBox: "0 0 24 24",
636
636
  paths: [
637
637
  {
@@ -640,7 +640,7 @@ const lt = (e) => {
640
640
  fill: "currentColor"
641
641
  }
642
642
  ]
643
- }, ea = {
643
+ }, Qt = {
644
644
  viewBox: "0 0 24 24",
645
645
  paths: [
646
646
  {
@@ -666,7 +666,7 @@ const lt = (e) => {
666
666
  strokeWidth: 2
667
667
  }
668
668
  ]
669
- }, ta = {
669
+ }, ea = {
670
670
  viewBox: "0 0 24 24",
671
671
  paths: [
672
672
  {
@@ -679,7 +679,7 @@ const lt = (e) => {
679
679
  strokeLinejoin: "round"
680
680
  }
681
681
  ]
682
- }, aa = {
682
+ }, ta = {
683
683
  viewBox: "0 0 24 24",
684
684
  paths: [
685
685
  {
@@ -701,7 +701,7 @@ const lt = (e) => {
701
701
  fill: "currentColor"
702
702
  }
703
703
  ]
704
- }, na = {
704
+ }, aa = {
705
705
  viewBox: "0 0 24 24",
706
706
  paths: [
707
707
  {
@@ -715,7 +715,7 @@ const lt = (e) => {
715
715
  fill: "currentColor"
716
716
  }
717
717
  ]
718
- }, oa = {
718
+ }, na = {
719
719
  viewBox: "0 0 24 24",
720
720
  paths: [
721
721
  {
@@ -724,7 +724,7 @@ const lt = (e) => {
724
724
  fill: "currentColor"
725
725
  }
726
726
  ]
727
- }, la = {
727
+ }, oa = {
728
728
  viewBox: "0 0 24 24",
729
729
  transform: "matrix(-1,0,0,1,0,0)",
730
730
  paths: [
@@ -751,7 +751,7 @@ const lt = (e) => {
751
751
  strokeWidth: 2
752
752
  }
753
753
  ]
754
- }, sa = {
754
+ }, la = {
755
755
  viewBox: "0 0 24 24",
756
756
  paths: [
757
757
  {
@@ -763,7 +763,7 @@ const lt = (e) => {
763
763
  strokeLinecap: "round"
764
764
  }
765
765
  ]
766
- }, ra = {
766
+ }, sa = {
767
767
  viewBox: "0 0 24 24",
768
768
  paths: [
769
769
  {
@@ -772,6 +772,43 @@ const lt = (e) => {
772
772
  fill: "currentColor"
773
773
  }
774
774
  ]
775
+ }, ra = {
776
+ viewBox: "0 0 24 24",
777
+ paths: [
778
+ {
779
+ type: "path",
780
+ d: "M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2",
781
+ fill: "none",
782
+ stroke: "currentColor",
783
+ strokeWidth: 2
784
+ },
785
+ {
786
+ type: "circle",
787
+ cx: 8.5,
788
+ cy: 7.5,
789
+ r: 4,
790
+ stroke: "currentColor",
791
+ strokeWidth: 2
792
+ },
793
+ {
794
+ type: "line",
795
+ x1: 20,
796
+ y1: 8,
797
+ x2: 20,
798
+ y2: 14,
799
+ stroke: "currentColor",
800
+ strokeWidth: 2
801
+ },
802
+ {
803
+ type: "line",
804
+ x1: 23,
805
+ y1: 11,
806
+ x2: 17,
807
+ y2: 11,
808
+ stroke: "currentColor",
809
+ strokeWidth: 2
810
+ }
811
+ ]
775
812
  }, ia = {
776
813
  viewBox: "0 0 24 24",
777
814
  paths: [
@@ -928,32 +965,33 @@ const lt = (e) => {
928
965
  strokeLinejoin: "round"
929
966
  }
930
967
  ]
931
- }, Ze = {
932
- eye: Dt,
933
- star: Ot,
934
- home: Nt,
935
- edit: qt,
936
- disk: Ut,
937
- user: Wt,
938
- info: zt,
939
- sort: Pt,
940
- tick: jt,
941
- link: Ft,
942
- head: Kt,
943
- bold: Xt,
944
- oList: Gt,
945
- uList: Jt,
946
- close: Yt,
947
- clock: Qt,
948
- login: ea,
949
- image: aa,
950
- trash: ta,
951
- upload: na,
952
- italic: oa,
953
- logout: la,
954
- ticket: ra,
955
- search: sa,
968
+ }, Ae = {
969
+ eye: Et,
970
+ star: Dt,
971
+ home: qt,
972
+ edit: Ot,
973
+ disk: Pt,
974
+ user: Ut,
975
+ info: Nt,
976
+ sort: Kt,
977
+ tick: Wt,
978
+ link: zt,
979
+ head: Ft,
980
+ bold: jt,
981
+ oList: Xt,
982
+ uList: Gt,
983
+ close: Jt,
984
+ clock: Yt,
985
+ login: Qt,
986
+ image: ta,
987
+ trash: ea,
988
+ upload: aa,
989
+ italic: na,
990
+ logout: oa,
991
+ ticket: sa,
992
+ search: la,
956
993
  eyeOff: ia,
994
+ addUser: ra,
957
995
  loading: da,
958
996
  sortAsc: ua,
959
997
  profile: ca,
@@ -966,7 +1004,7 @@ const lt = (e) => {
966
1004
  shoppingBag: Ca,
967
1005
  directionDown: ha,
968
1006
  shoppingBasket: ya
969
- }, ka = ["viewBox", "transform", "width", "height"], wa = /* @__PURE__ */ S({
1007
+ }, ka = ["viewBox", "transform", "width", "height"], wa = /* @__PURE__ */ R({
970
1008
  __name: "Icon",
971
1009
  props: {
972
1010
  name: {},
@@ -974,37 +1012,37 @@ const lt = (e) => {
974
1012
  spin: { type: Boolean }
975
1013
  },
976
1014
  setup(e) {
977
- return (n, t) => (v(), m("svg", {
1015
+ return (n, t) => (v(), f("svg", {
978
1016
  xmlns: "http://www.w3.org/2000/svg",
979
1017
  class: re(["icon", { spin: e.spin }]),
980
- viewBox: I(Ze)[e.name].viewBox,
981
- transform: I(Ze)[e.name].transform || void 0,
1018
+ viewBox: B(Ae)[e.name].viewBox,
1019
+ transform: B(Ae)[e.name].transform || void 0,
982
1020
  width: e.size || 24,
983
1021
  height: e.size || 24,
984
1022
  fill: "none",
985
1023
  "aria-hidden": "true"
986
1024
  }, [
987
- (v(!0), m(ae, null, de(I(Ze)[e.name].paths, (a, s) => (v(), m(ae, { key: s }, [
988
- a.type === "path" ? (v(), m("path", he({
1025
+ (v(!0), f(ae, null, de(B(Ae)[e.name].paths, (a, s) => (v(), f(ae, { key: s }, [
1026
+ a.type === "path" ? (v(), f("path", he({
989
1027
  key: 0,
990
1028
  ref_for: !0
991
- }, a), null, 16)) : K("", !0),
992
- a.type === "circle" ? (v(), m("circle", he({
1029
+ }, a), null, 16)) : F("", !0),
1030
+ a.type === "circle" ? (v(), f("circle", he({
993
1031
  key: 1,
994
1032
  ref_for: !0
995
- }, a), null, 16)) : K("", !0),
996
- a.type === "line" ? (v(), m("line", he({
1033
+ }, a), null, 16)) : F("", !0),
1034
+ a.type === "line" ? (v(), f("line", he({
997
1035
  key: 2,
998
1036
  ref_for: !0
999
- }, a), null, 16)) : K("", !0),
1000
- a.type === "polyline" ? (v(), m("polyline", he({
1037
+ }, a), null, 16)) : F("", !0),
1038
+ a.type === "polyline" ? (v(), f("polyline", he({
1001
1039
  key: 3,
1002
1040
  ref_for: !0
1003
- }, a), null, 16)) : K("", !0)
1041
+ }, a), null, 16)) : F("", !0)
1004
1042
  ], 64))), 128))
1005
1043
  ], 10, ka));
1006
1044
  }
1007
- }), ue = /* @__PURE__ */ j(wa, [["__scopeId", "data-v-96562865"]]), La = ["aria-controls"], Ma = ["aria-pressed", "onMousedown", "aria-label"], $a = { key: 1 }, xa = /* @__PURE__ */ S({
1045
+ }), ue = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-96562865"]]), La = ["aria-controls"], Ma = ["aria-pressed", "onMousedown", "aria-label"], $a = { key: 1 }, xa = /* @__PURE__ */ R({
1008
1046
  __name: "FloatingToolbar",
1009
1047
  props: {
1010
1048
  editor: {},
@@ -1012,15 +1050,15 @@ const lt = (e) => {
1012
1050
  buttons: {}
1013
1051
  },
1014
1052
  setup(e, { expose: n }) {
1015
- const t = e, a = p(0), s = p(0), r = p(!1), i = p([]);
1053
+ const t = e, a = m(0), s = m(0), r = m(!1), i = m([]);
1016
1054
  Y(
1017
1055
  r,
1018
1056
  (u) => !u && (i.value = [])
1019
1057
  );
1020
- const o = L(() => ({
1058
+ const o = x(() => ({
1021
1059
  top: `${s.value}px`,
1022
1060
  left: `${a.value}px`
1023
- })), l = (u, C) => u && (i.value[C] = u), c = L(() => [
1061
+ })), l = (u, C) => u && (i.value[C] = u), c = x(() => [
1024
1062
  {
1025
1063
  key: "strong",
1026
1064
  label: "bold",
@@ -1072,25 +1110,25 @@ const lt = (e) => {
1072
1110
  },
1073
1111
  isActive: (u) => u.isBlockActive("blockquote")
1074
1112
  }
1075
- ]), d = L(() => [
1113
+ ]), d = x(() => [
1076
1114
  ...c.value,
1077
1115
  ...t.editor?.buttons ?? []
1078
1116
  ]), g = async () => {
1079
1117
  await Me(), i.value[0]?.focus();
1080
- }, $ = (u) => {
1081
- const C = i.value, H = C.indexOf(document.activeElement);
1118
+ }, M = (u) => {
1119
+ const C = i.value, I = C.indexOf(document.activeElement);
1082
1120
  if (u.key === "ArrowRight") {
1083
1121
  u.preventDefault();
1084
- const R = H < C.length - 1 ? H + 1 : 0;
1085
- C[R]?.focus();
1122
+ const _ = I < C.length - 1 ? I + 1 : 0;
1123
+ C[_]?.focus();
1086
1124
  }
1087
1125
  if (u.key === "ArrowLeft") {
1088
1126
  u.preventDefault();
1089
- const R = H > 0 ? H - 1 : C.length - 1;
1090
- C[R]?.focus();
1127
+ const _ = I > 0 ? I - 1 : C.length - 1;
1128
+ C[_]?.focus();
1091
1129
  }
1092
1130
  u.key === "Home" && (u.preventDefault(), C[0]?.focus()), u.key === "End" && (u.preventDefault(), C[C.length - 1]?.focus()), u.key === "Escape" && (u.preventDefault(), t.editor?.restoreSelection(), t.editor?.focus());
1093
- }, M = () => {
1131
+ }, L = () => {
1094
1132
  const u = window.getSelection();
1095
1133
  if (!u || u.rangeCount === 0) {
1096
1134
  r.value = !1;
@@ -1098,23 +1136,23 @@ const lt = (e) => {
1098
1136
  }
1099
1137
  const C = t.editor?.rootElement;
1100
1138
  if (!C) return;
1101
- const H = u.getRangeAt(0);
1102
- if (!C.contains(H.commonAncestorContainer) || u.isCollapsed) {
1139
+ const I = u.getRangeAt(0);
1140
+ if (!C.contains(I.commonAncestorContainer) || u.isCollapsed) {
1103
1141
  r.value = !1;
1104
1142
  return;
1105
1143
  }
1106
- const R = H.getBoundingClientRect();
1107
- a.value = R.left + R.width / 2, s.value = R.top - 45, r.value = !0;
1144
+ const _ = I.getBoundingClientRect();
1145
+ a.value = _.left + _.width / 2, s.value = _.top - 45, r.value = !0;
1108
1146
  };
1109
1147
  return te(() => {
1110
- document.addEventListener("selectionchange", M), window.addEventListener("scroll", M, !0), window.addEventListener("resize", M);
1148
+ document.addEventListener("selectionchange", L), window.addEventListener("scroll", L, !0), window.addEventListener("resize", L);
1111
1149
  }), ye(() => {
1112
- document.removeEventListener("selectionchange", M), window.removeEventListener("scroll", M, !0), window.removeEventListener("resize", M);
1150
+ document.removeEventListener("selectionchange", L), window.removeEventListener("scroll", L, !0), window.removeEventListener("resize", L);
1113
1151
  }), n({
1114
1152
  focusFirstButton: g
1115
- }), (u, C) => (v(), J(xe, { name: "tooltip-fade" }, {
1116
- default: G(() => [
1117
- r.value ? (v(), m("div", {
1153
+ }), (u, C) => (v(), G(xe, { name: "tooltip-fade" }, {
1154
+ default: X(() => [
1155
+ r.value ? (v(), f("div", {
1118
1156
  key: 0,
1119
1157
  class: "toolbar",
1120
1158
  role: "toolbar",
@@ -1122,31 +1160,31 @@ const lt = (e) => {
1122
1160
  "aria-controls": e.editorId,
1123
1161
  style: ge(o.value),
1124
1162
  tabindex: "-1",
1125
- onKeydown: $
1163
+ onKeydown: M
1126
1164
  }, [
1127
1165
  C[0] || (C[0] = y("div", { class: "arrow" }, null, -1)),
1128
- (v(!0), m(ae, null, de(d.value, (H, R) => (v(), m("button", {
1129
- key: H.key ?? R,
1166
+ (v(!0), f(ae, null, de(d.value, (I, _) => (v(), f("button", {
1167
+ key: I.key ?? _,
1130
1168
  type: "button",
1131
1169
  ref_for: !0,
1132
- ref: (k) => l(k, R),
1133
- class: re({ "is-active": H.isActive?.(t.editor) }),
1134
- "aria-pressed": H.isActive?.(t.editor),
1135
- onMousedown: le((k) => H.action(t.editor), ["prevent"]),
1136
- "aria-label": H.ariaLabel
1170
+ ref: (k) => l(k, _),
1171
+ class: re({ "is-active": I.isActive?.(t.editor) }),
1172
+ "aria-pressed": I.isActive?.(t.editor),
1173
+ onMousedown: oe((k) => I.action(t.editor), ["prevent"]),
1174
+ "aria-label": I.ariaLabel
1137
1175
  }, [
1138
- H.type === "icon" ? (v(), J(ue, {
1176
+ I.type === "icon" ? (v(), G(ue, {
1139
1177
  key: 0,
1140
- name: H.label,
1141
- size: H.size ?? 14
1142
- }, null, 8, ["name", "size"])) : (v(), m("span", $a, U(H.label), 1))
1178
+ name: I.label,
1179
+ size: I.size ?? 14
1180
+ }, null, 8, ["name", "size"])) : (v(), f("span", $a, P(I.label), 1))
1143
1181
  ], 42, Ma))), 128))
1144
- ], 44, La)) : K("", !0)
1182
+ ], 44, La)) : F("", !0)
1145
1183
  ]),
1146
1184
  _: 1
1147
1185
  }));
1148
1186
  }
1149
- }), Ia = /* @__PURE__ */ j(xa, [["__scopeId", "data-v-3f279ebe"]]), Ha = { class: "editor" }, Je = /* @__PURE__ */ S({
1187
+ }), Ia = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-3f279ebe"]]), Ha = { class: "editor" }, Ge = /* @__PURE__ */ R({
1150
1188
  __name: "Editor",
1151
1189
  props: /* @__PURE__ */ ne({
1152
1190
  ariaLabel: {},
@@ -1159,7 +1197,7 @@ const lt = (e) => {
1159
1197
  }),
1160
1198
  emits: ["update:modelValue"],
1161
1199
  setup(e) {
1162
- const n = me(e, "modelValue"), t = e, a = ie(), s = p(), r = p(null), i = p(null);
1200
+ const n = me(e, "modelValue"), t = e, a = ie(), s = m(), r = m(null), i = m(null);
1163
1201
  return Y(
1164
1202
  () => n.value,
1165
1203
  (o) => {
@@ -1169,28 +1207,28 @@ const lt = (e) => {
1169
1207
  ), te(() => {
1170
1208
  const l = i.value?.getRoot()?.value;
1171
1209
  if (!l) return;
1172
- r.value = St(l, { buttons: t.buttons ?? [] }), r.value && (r.value.toolbarRef = s);
1210
+ r.value = Bt(l, { buttons: t.buttons ?? [] }), r.value && (r.value.toolbarRef = s);
1173
1211
  const c = () => n.value = l.innerHTML;
1174
1212
  l.addEventListener("input", c), ye(() => l.removeEventListener("input", c));
1175
- }), Ce("announce", (o) => r.value?.announce(o)), (o, l) => (v(), m("section", Ha, [
1176
- P(Et, {
1213
+ }), Ce("announce", (o) => r.value?.announce(o)), (o, l) => (v(), f("section", Ha, [
1214
+ K(Zt, {
1177
1215
  ref_key: "contentRef",
1178
1216
  ref: i,
1179
1217
  editor: r.value,
1180
- "editor-id": I(a),
1218
+ "editor-id": B(a),
1181
1219
  "aria-label": e.ariaLabel
1182
1220
  }, null, 8, ["editor", "editor-id", "aria-label"]),
1183
- P(Ia, {
1221
+ K(Ia, {
1184
1222
  ref_key: "toolbarRef",
1185
1223
  ref: s,
1186
1224
  editor: r.value,
1187
- "editor-id": I(a)
1225
+ "editor-id": B(a)
1188
1226
  }, null, 8, ["editor", "editor-id"])
1189
1227
  ]));
1190
1228
  }
1191
1229
  });
1192
- Je.install = (e) => {
1193
- e.component("Editor", Je);
1230
+ Ge.install = (e) => {
1231
+ e.component("Editor", Ge);
1194
1232
  };
1195
1233
  const Va = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-disabled", "data-disabled", "data-dragging"], _a = ["multiple", "accept", "disabled"], Ra = {
1196
1234
  key: 1,
@@ -1215,7 +1253,7 @@ const Va = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
1215
1253
  }, Na = { class: "ui-upload__actions" }, za = {
1216
1254
  class: "sr-only",
1217
1255
  "aria-live": "polite"
1218
- }, Fa = ["id"], Ka = /* @__PURE__ */ S({
1256
+ }, Fa = ["id"], Ka = /* @__PURE__ */ R({
1219
1257
  __name: "Upload",
1220
1258
  props: /* @__PURE__ */ ne({
1221
1259
  multiple: { type: Boolean, default: !1 },
@@ -1233,11 +1271,11 @@ const Va = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
1233
1271
  }),
1234
1272
  emits: /* @__PURE__ */ ne(["select", "upload", "remove"], ["update:modelValue"]),
1235
1273
  setup(e, { emit: n }) {
1236
- const t = me(e, "modelValue"), a = e, s = n, r = p(0), i = p(""), o = p(!1), l = ie(), c = p(), d = L(() => t.value), g = L(() => a.maxSize === 1 / 0 ? "Unlimited" : N(a.maxSize)), $ = L(() => !a.disabled && (a.multiple || t.value.length === 0)), M = L(() => d.value.some((b) => b.status === "uploading")), u = () => $.value && c.value?.click(), C = () => {
1274
+ const t = me(e, "modelValue"), a = e, s = n, r = m(0), i = m(""), o = m(!1), l = ie(), c = m(), d = x(() => t.value), g = x(() => a.maxSize === 1 / 0 ? "Unlimited" : q(a.maxSize)), M = x(() => !a.disabled && (a.multiple || t.value.length === 0)), L = x(() => d.value.some((b) => b.status === "uploading")), u = () => M.value && c.value?.click(), C = () => {
1237
1275
  a.disabled || (r.value++, o.value = !0);
1238
- }, H = () => {
1276
+ }, I = () => {
1239
1277
  r.value = Math.max(0, r.value - 1), r.value === 0 && (o.value = !1);
1240
- }, R = (b) => {
1278
+ }, _ = (b) => {
1241
1279
  if (!a.disabled && !(!a.multiple && t.value.length > 0) && (r.value = 0, o.value = !1, !!b.dataTransfer)) {
1242
1280
  if (!a.multiple && b.dataTransfer?.files.length) {
1243
1281
  const h = b.dataTransfer.files[0];
@@ -1251,74 +1289,74 @@ const Va = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
1251
1289
  h.files && (D(Array.from(h.files)), h.value = "");
1252
1290
  }, D = (b) => {
1253
1291
  const h = [];
1254
- for (const X of b) {
1292
+ for (const w of b) {
1255
1293
  if (d.value.length + h.length >= a.maxFiles) break;
1256
- X.size > a.maxSize || h.push({
1294
+ w.size > a.maxSize || h.push({
1257
1295
  id: crypto.randomUUID(),
1258
- file: X,
1296
+ file: w,
1259
1297
  progress: 0,
1260
1298
  status: "idle"
1261
1299
  });
1262
1300
  }
1263
1301
  if (!h.length) return;
1264
- s("select", h.map((X) => X.file));
1265
- const E = [...d.value, ...h];
1266
- t.value = E, a.autoUpload && h.forEach(Z);
1267
- }, Z = (b) => {
1302
+ s("select", h.map((w) => w.file));
1303
+ const Z = [...d.value, ...h];
1304
+ t.value = Z, a.autoUpload && h.forEach(E);
1305
+ }, E = (b) => {
1268
1306
  const h = new AbortController();
1269
- b.progress = 0, b.error = void 0, b.status = "uploading", b.controller = h, T(`Started uploading ${b.file.name}`);
1270
- const E = () => {
1271
- h.signal.removeEventListener("abort", E);
1307
+ b.progress = 0, b.error = void 0, b.status = "uploading", b.controller = h, S(`Started uploading ${b.file.name}`);
1308
+ const Z = () => {
1309
+ h.signal.removeEventListener("abort", Z);
1272
1310
  };
1273
- h.signal.addEventListener("abort", E);
1274
- const X = {
1311
+ h.signal.addEventListener("abort", Z);
1312
+ const w = {
1275
1313
  signal: h.signal,
1276
- onProgress: (V) => {
1277
- b.progress = V, _();
1314
+ onProgress: (T) => {
1315
+ b.progress = T, H();
1278
1316
  },
1279
1317
  done: () => {
1280
- b.status = "success", b.progress = 100, b.controller = void 0, T(`Finished uploading ${b.file.name}`), _();
1318
+ b.status = "success", b.progress = 100, b.controller = void 0, S(`Finished uploading ${b.file.name}`), H();
1281
1319
  },
1282
- fail: (V) => {
1283
- b.status = "error", b.error = V, b.controller = void 0, T(`Failed to upload ${b.file.name}: ${V}`), _();
1320
+ fail: (T) => {
1321
+ b.status = "error", b.error = T, b.controller = void 0, S(`Failed to upload ${b.file.name}: ${T}`), H();
1284
1322
  }
1285
1323
  };
1286
- s("upload", b, X);
1287
- }, f = (b) => {
1288
- b.controller && (b.controller.abort(), b.status = "canceled", b.controller = void 0, T(`Canceled uploading ${b.file.name}`), _());
1289
- }, w = (b) => {
1290
- b.status !== "error" && b.status !== "canceled" || Z(b);
1291
- }, _ = () => t.value = [...d.value], N = (b) => {
1324
+ s("upload", b, w);
1325
+ }, p = (b) => {
1326
+ b.controller && (b.controller.abort(), b.status = "canceled", b.controller = void 0, S(`Canceled uploading ${b.file.name}`), H());
1327
+ }, $ = (b) => {
1328
+ b.status !== "error" && b.status !== "canceled" || E(b);
1329
+ }, H = () => t.value = [...d.value], q = (b) => {
1292
1330
  const h = ["B", "KB", "MB", "GB", "TB"];
1293
- let E = 0;
1294
- for (; b >= 1024 && E < h.length - 1; )
1295
- b /= 1024, E++;
1296
- return `${b.toFixed(2)} ${h[E]}`;
1297
- }, T = (b) => {
1331
+ let Z = 0;
1332
+ for (; b >= 1024 && Z < h.length - 1; )
1333
+ b /= 1024, Z++;
1334
+ return `${b.toFixed(2)} ${h[Z]}`;
1335
+ }, S = (b) => {
1298
1336
  i.value = "", requestAnimationFrame(() => {
1299
1337
  i.value = b;
1300
1338
  });
1301
- }, z = (b) => {
1339
+ }, N = (b) => {
1302
1340
  b.controller && b.controller.abort(), s("remove", b), t.value = d.value.filter((h) => h.id !== b.id);
1303
1341
  };
1304
- return (b, h) => (v(), m("div", {
1342
+ return (b, h) => (v(), f("div", {
1305
1343
  role: "button",
1306
1344
  class: "ui-upload",
1307
1345
  tabindex: e.disabled ? -1 : 0,
1308
1346
  "aria-label": e.ariaLabel || "File upload area",
1309
- "aria-describedby": o.value ? I(l) : void 0,
1310
- "aria-busy": M.value ? "true" : void 0,
1347
+ "aria-describedby": o.value ? B(l) : void 0,
1348
+ "aria-busy": L.value ? "true" : void 0,
1311
1349
  "aria-disabled": e.disabled ? "true" : void 0,
1312
1350
  "data-disabled": e.disabled || void 0,
1313
1351
  "data-dragging": o.value || void 0,
1314
- onClick: h[0] || (h[0] = (E) => !e.disabled && u()),
1352
+ onClick: h[0] || (h[0] = (Z) => !e.disabled && u()),
1315
1353
  onKeydown: [
1316
- h[1] || (h[1] = ve(le((E) => !e.disabled && u(), ["stop", "prevent"]), ["enter"])),
1317
- h[2] || (h[2] = ve(le((E) => !e.disabled && u(), ["prevent"]), ["space"]))
1354
+ h[1] || (h[1] = fe(oe((Z) => !e.disabled && u(), ["stop", "prevent"]), ["enter"])),
1355
+ h[2] || (h[2] = fe(oe((Z) => !e.disabled && u(), ["prevent"]), ["space"]))
1318
1356
  ],
1319
- onDragover: h[3] || (h[3] = le((E) => !e.disabled && C(), ["prevent"])),
1320
- onDragleave: H,
1321
- onDrop: h[4] || (h[4] = le((E) => !e.disabled && R(E), ["prevent"]))
1357
+ onDragover: h[3] || (h[3] = oe((Z) => !e.disabled && C(), ["prevent"])),
1358
+ onDragleave: I,
1359
+ onDrop: h[4] || (h[4] = oe((Z) => !e.disabled && _(Z), ["prevent"]))
1322
1360
  }, [
1323
1361
  y("input", {
1324
1362
  type: "file",
@@ -1330,110 +1368,110 @@ const Va = ["tabindex", "aria-label", "aria-describedby", "aria-busy", "aria-dis
1330
1368
  disabled: e.disabled,
1331
1369
  onChange: k
1332
1370
  }, null, 40, _a),
1333
- e.multiple || !e.multiple && t.value.length === 0 ? W(b.$slots, "default", {
1371
+ e.multiple || !e.multiple && t.value.length === 0 ? U(b.$slots, "default", {
1334
1372
  key: 0,
1335
1373
  dragging: o.value
1336
1374
  }, () => [
1337
- P(ue, {
1375
+ K(ue, {
1338
1376
  name: "upload",
1339
1377
  size: 32
1340
1378
  }),
1341
1379
  h[6] || (h[6] = y("p", null, "Drag and Drop files here", -1)),
1342
1380
  h[7] || (h[7] = y("span", null, "or", -1)),
1343
- P(be, {
1381
+ K(be, {
1344
1382
  type: "button",
1345
1383
  class: "btn btn-outline"
1346
1384
  }, {
1347
- default: G(() => [...h[5] || (h[5] = [
1385
+ default: X(() => [...h[5] || (h[5] = [
1348
1386
  pe("Choose File", -1)
1349
1387
  ])]),
1350
1388
  _: 1
1351
1389
  }),
1352
- y("span", null, "Maximum size: " + U(g.value), 1)
1353
- ], !0) : K("", !0),
1354
- d.value?.length ? (v(), m("ul", Ra, [
1355
- (v(!0), m(ae, null, de(d.value, (E) => (v(), m("li", {
1356
- key: E.id,
1390
+ y("span", null, "Maximum size: " + P(g.value), 1)
1391
+ ], !0) : F("", !0),
1392
+ d.value?.length ? (v(), f("ul", Ra, [
1393
+ (v(!0), f(ae, null, de(d.value, (Z) => (v(), f("li", {
1394
+ key: Z.id,
1357
1395
  class: "ui-upload__item"
1358
1396
  }, [
1359
- W(b.$slots, "file", {
1360
- file: E,
1361
- remove: () => z(E),
1362
- cancel: () => f(E),
1363
- retry: () => w(E)
1397
+ U(b.$slots, "file", {
1398
+ file: Z,
1399
+ remove: () => N(Z),
1400
+ cancel: () => p(Z),
1401
+ retry: () => $(Z)
1364
1402
  }, () => [
1365
1403
  y("div", Ba, [
1366
- y("span", Sa, U(E.file.name), 1),
1367
- y("span", Ta, U(N(E.file.size)), 1)
1404
+ y("span", Sa, P(Z.file.name), 1),
1405
+ y("span", Ta, P(q(Z.file.size)), 1)
1368
1406
  ]),
1369
- E.status === "uploading" ? (v(), m("div", Aa, [
1370
- y("span", Za, U(E.progress) + "% ", 1),
1407
+ Z.status === "uploading" ? (v(), f("div", Aa, [
1408
+ y("span", Za, P(Z.progress) + "% ", 1),
1371
1409
  y("progress", {
1372
1410
  class: "ui-upload__progress",
1373
- value: E.progress,
1411
+ value: Z.progress,
1374
1412
  max: "100",
1375
- "aria-label": `Upload progress for ${E.file.name}`
1413
+ "aria-label": `Upload progress for ${Z.file.name}`
1376
1414
  }, null, 8, Ea)
1377
- ])) : K("", !0),
1378
- E.status === "success" ? (v(), m("span", Da, " Uploaded successful ")) : K("", !0),
1379
- E.status === "error" ? (v(), m("span", Oa, U(E.error || "Upload failed"), 1)) : K("", !0),
1380
- E.status === "canceled" ? (v(), m("span", qa, " Upload canceled ")) : K("", !0),
1415
+ ])) : F("", !0),
1416
+ Z.status === "success" ? (v(), f("span", Da, " Uploaded successful ")) : F("", !0),
1417
+ Z.status === "error" ? (v(), f("span", Oa, P(Z.error || "Upload failed"), 1)) : F("", !0),
1418
+ Z.status === "canceled" ? (v(), f("span", qa, " Upload canceled ")) : F("", !0),
1381
1419
  y("div", Na, [
1382
- E.status === "uploading" ? (v(), J(be, {
1420
+ Z.status === "uploading" ? (v(), G(be, {
1383
1421
  key: 0,
1384
1422
  type: "button",
1385
1423
  class: "btn-danger btn-xs",
1386
- onClick: le((X) => f(E), ["stop"])
1424
+ onClick: oe((w) => p(Z), ["stop"])
1387
1425
  }, {
1388
- default: G(() => [...h[8] || (h[8] = [
1426
+ default: X(() => [...h[8] || (h[8] = [
1389
1427
  pe(" Cancel ", -1)
1390
1428
  ])]),
1391
1429
  _: 1
1392
- }, 8, ["onClick"])) : K("", !0),
1393
- E.status === "error" || E.status === "canceled" ? (v(), J(be, {
1430
+ }, 8, ["onClick"])) : F("", !0),
1431
+ Z.status === "error" || Z.status === "canceled" ? (v(), G(be, {
1394
1432
  key: 1,
1395
1433
  type: "button",
1396
1434
  class: "btn-info btn-xs",
1397
- onClick: le((X) => w(E), ["stop"])
1435
+ onClick: oe((w) => $(Z), ["stop"])
1398
1436
  }, {
1399
- default: G(() => [...h[9] || (h[9] = [
1437
+ default: X(() => [...h[9] || (h[9] = [
1400
1438
  pe(" Retry ", -1)
1401
1439
  ])]),
1402
1440
  _: 1
1403
- }, 8, ["onClick"])) : K("", !0),
1404
- E.status !== "uploading" ? (v(), J(be, {
1441
+ }, 8, ["onClick"])) : F("", !0),
1442
+ Z.status !== "uploading" ? (v(), G(be, {
1405
1443
  key: 2,
1406
1444
  type: "button",
1407
1445
  class: "btn-outline btn-xs",
1408
- onClick: le((X) => z(E), ["stop"]),
1446
+ onClick: oe((w) => N(Z), ["stop"]),
1409
1447
  "aria-label": "Remove file"
1410
1448
  }, {
1411
- default: G(() => [...h[10] || (h[10] = [
1449
+ default: X(() => [...h[10] || (h[10] = [
1412
1450
  pe(" Remove ", -1)
1413
1451
  ])]),
1414
1452
  _: 1
1415
- }, 8, ["onClick"])) : K("", !0)
1453
+ }, 8, ["onClick"])) : F("", !0)
1416
1454
  ])
1417
1455
  ], !0)
1418
1456
  ]))), 128))
1419
- ])) : K("", !0),
1420
- y("div", za, U(i.value), 1),
1457
+ ])) : F("", !0),
1458
+ y("div", za, P(i.value), 1),
1421
1459
  y("p", {
1422
- id: I(l),
1460
+ id: B(l),
1423
1461
  class: "sr-only"
1424
1462
  }, " Drop files to upload ", 8, Fa)
1425
1463
  ], 40, Va));
1426
1464
  }
1427
- }), Ye = /* @__PURE__ */ j(Ka, [["__scopeId", "data-v-041ff337"]]);
1428
- Ye.install = (e) => {
1429
- e.component("Upload", Ye);
1465
+ }), Je = /* @__PURE__ */ W(Ka, [["__scopeId", "data-v-041ff337"]]);
1466
+ Je.install = (e) => {
1467
+ e.component("Upload", Je);
1430
1468
  };
1431
1469
  const Pa = (e) => {
1432
1470
  const n = () => e(), t = () => e();
1433
1471
  return window.addEventListener("scroll", n, !0), window.addEventListener("resize", t), () => {
1434
1472
  window.removeEventListener("scroll", n, !0), window.removeEventListener("resize", t);
1435
1473
  };
1436
- }, Ua = ["aria-describedby", "aria-disabled", "aria-expanded"], Wa = ["aria-hidden", "data-placement"], ja = 8, Xa = 6, Ga = /* @__PURE__ */ S({
1474
+ }, Ua = ["aria-describedby", "aria-disabled", "aria-expanded"], Wa = ["aria-hidden", "data-placement"], ja = 8, Xa = 6, Ga = /* @__PURE__ */ R({
1437
1475
  __name: "Tooltip",
1438
1476
  props: {
1439
1477
  content: {},
@@ -1442,36 +1480,36 @@ const Pa = (e) => {
1442
1480
  disabled: { type: Boolean, default: !1 }
1443
1481
  },
1444
1482
  setup(e) {
1445
- const n = e, t = ja + Xa, a = p(!1), s = `tooltip-${ie()}`, r = p(null), i = p(null), o = p({});
1483
+ const n = e, t = ja + Xa, a = m(!1), s = `tooltip-${ie()}`, r = m(null), i = m(null), o = m({});
1446
1484
  let l = null, c = null, d = null;
1447
1485
  const g = () => {
1448
1486
  n.disabled || (l && (clearTimeout(l), l = null), n.delay ? l = window.setTimeout(() => {
1449
1487
  a.value = !0, l = null;
1450
1488
  }, n.delay) : a.value = !0);
1451
- }, $ = () => {
1452
- l && (clearTimeout(l), l = null), a.value = !1;
1453
1489
  }, M = () => {
1490
+ l && (clearTimeout(l), l = null), a.value = !1;
1491
+ }, L = () => {
1454
1492
  if (!r.value || !i.value) return {};
1455
- const C = r.value.getBoundingClientRect(), H = i.value.getBoundingClientRect(), R = {
1493
+ const C = r.value.getBoundingClientRect(), I = i.value.getBoundingClientRect(), _ = {
1456
1494
  position: "fixed"
1457
1495
  };
1458
1496
  switch (n.placement) {
1459
1497
  case "top":
1460
- R.left = `${C.left + C.width / 2 - H.width / 2}px`, R.top = `${C.top - H.height - t}px`;
1498
+ _.left = `${C.left + C.width / 2 - I.width / 2}px`, _.top = `${C.top - I.height - t}px`;
1461
1499
  break;
1462
1500
  case "bottom":
1463
- R.left = `${C.left + C.width / 2 - H.width / 2}px`, R.top = `${C.bottom + t}px`;
1501
+ _.left = `${C.left + C.width / 2 - I.width / 2}px`, _.top = `${C.bottom + t}px`;
1464
1502
  break;
1465
1503
  case "left":
1466
- R.left = `${C.left - H.width - t}px`, R.top = `${C.top + C.height / 2 - H.height / 2}px`;
1504
+ _.left = `${C.left - I.width - t}px`, _.top = `${C.top + C.height / 2 - I.height / 2}px`;
1467
1505
  break;
1468
1506
  case "right":
1469
- R.left = `${C.right + t}px`, R.top = `${C.top + C.height / 2 - H.height / 2}px`;
1507
+ _.left = `${C.right + t}px`, _.top = `${C.top + C.height / 2 - I.height / 2}px`;
1470
1508
  break;
1471
1509
  }
1472
- return R;
1510
+ return _;
1473
1511
  }, u = () => {
1474
- o.value = M();
1512
+ o.value = L();
1475
1513
  };
1476
1514
  return Y(a, async (C) => {
1477
1515
  if (!C) {
@@ -1479,9 +1517,9 @@ const Pa = (e) => {
1479
1517
  return;
1480
1518
  }
1481
1519
  await Me(), u(), c = Pa(u), d = new ResizeObserver(u), i.value && d.observe(i.value), r.value && d.observe(r.value);
1482
- }), _e(() => {
1520
+ }), Ve(() => {
1483
1521
  c?.(), d?.disconnect();
1484
- }), (C, H) => (v(), m(ae, null, [
1522
+ }), (C, I) => (v(), f(ae, null, [
1485
1523
  y("span", {
1486
1524
  ref_key: "triggerRef",
1487
1525
  ref: r,
@@ -1490,17 +1528,17 @@ const Pa = (e) => {
1490
1528
  "aria-disabled": e.disabled || void 0,
1491
1529
  "aria-expanded": a.value || void 0,
1492
1530
  onMouseenter: g,
1493
- onMouseleave: $,
1531
+ onMouseleave: M,
1494
1532
  onFocus: g,
1495
- onBlur: $,
1496
- onKeydown: ve($, ["esc"])
1533
+ onBlur: M,
1534
+ onKeydown: fe(M, ["esc"])
1497
1535
  }, [
1498
- W(C.$slots, "default", {}, void 0, !0)
1536
+ U(C.$slots, "default", {}, void 0, !0)
1499
1537
  ], 40, Ua),
1500
- (v(), J(Re, { to: "body" }, [
1501
- P(xe, { name: "tooltip-fade" }, {
1502
- default: G(() => [
1503
- a.value ? (v(), m("div", {
1538
+ (v(), G(_e, { to: "body" }, [
1539
+ K(xe, { name: "tooltip-fade" }, {
1540
+ default: X(() => [
1541
+ a.value ? (v(), f("div", {
1504
1542
  key: 0,
1505
1543
  ref_key: "tooltipRef",
1506
1544
  ref: i,
@@ -1512,25 +1550,25 @@ const Pa = (e) => {
1512
1550
  "data-placement": n.placement,
1513
1551
  style: ge(o.value)
1514
1552
  }, [
1515
- H[0] || (H[0] = y("div", { class: "tooltip-arrow" }, null, -1)),
1516
- W(C.$slots, "content", {}, () => [
1517
- pe(U(e.content), 1)
1553
+ I[0] || (I[0] = y("div", { class: "tooltip-arrow" }, null, -1)),
1554
+ U(C.$slots, "content", {}, () => [
1555
+ pe(P(e.content), 1)
1518
1556
  ], !0)
1519
- ], 12, Wa)) : K("", !0)
1557
+ ], 12, Wa)) : F("", !0)
1520
1558
  ]),
1521
1559
  _: 3
1522
1560
  })
1523
1561
  ]))
1524
1562
  ], 64));
1525
1563
  }
1526
- }), Qe = /* @__PURE__ */ j(Ga, [["__scopeId", "data-v-c489ef7b"]]);
1527
- Qe.install = (e) => {
1528
- e.component("Tooltip", Qe);
1564
+ }), Ye = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-c489ef7b"]]);
1565
+ Ye.install = (e) => {
1566
+ e.component("Tooltip", Ye);
1529
1567
  };
1530
1568
  const Ja = {
1531
1569
  key: 0,
1532
1570
  class: "ui-tag__icon"
1533
- }, Ya = { class: "ui-tag__label" }, Qa = ["aria-label"], en = /* @__PURE__ */ S({
1571
+ }, Ya = { class: "ui-tag__label" }, Qa = ["aria-label"], en = /* @__PURE__ */ R({
1534
1572
  __name: "Tag",
1535
1573
  props: {
1536
1574
  as: { default: "span" },
@@ -1543,17 +1581,17 @@ const Ja = {
1543
1581
  },
1544
1582
  emits: ["click", "remove"],
1545
1583
  setup(e, { emit: n }) {
1546
- const t = e, a = n, s = p(), r = L(() => t.clickable || t.as === "button" || t.as === "a"), i = L(() => [
1584
+ const t = e, a = n, s = m(), r = x(() => t.clickable || t.as === "button" || t.as === "a"), i = x(() => [
1547
1585
  `ui-tag--${t.variant}`,
1548
1586
  `ui-tag--${t.size}`,
1549
1587
  {
1550
1588
  "is-clickable": t.clickable,
1551
1589
  "is-removable": t.removable
1552
1590
  }
1553
- ]), o = L(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (d) => {
1591
+ ]), o = x(() => t.clickable && t.as !== "button" && t.as !== "a"), l = (d) => {
1554
1592
  t.disabled || !r.value || a("click", d);
1555
1593
  }, c = () => a("remove");
1556
- return (d, g) => (v(), J(Ie(e.as), {
1594
+ return (d, g) => (v(), G(Ie(e.as), {
1557
1595
  ref_key: "rootRef",
1558
1596
  ref: s,
1559
1597
  class: re(["ui-tag", i.value]),
@@ -1562,34 +1600,34 @@ const Ja = {
1562
1600
  role: o.value ? "button" : void 0,
1563
1601
  onClick: l,
1564
1602
  onKeydown: [
1565
- g[0] || (g[0] = ve(le(($) => !e.disabled && r.value && l($), ["prevent"]), ["enter"])),
1566
- g[1] || (g[1] = ve(le(($) => !e.disabled && r.value && l($), ["prevent"]), ["space"]))
1603
+ g[0] || (g[0] = fe(oe((M) => !e.disabled && r.value && l(M), ["prevent"]), ["enter"])),
1604
+ g[1] || (g[1] = fe(oe((M) => !e.disabled && r.value && l(M), ["prevent"]), ["space"]))
1567
1605
  ]
1568
1606
  }, {
1569
- default: G(() => [
1570
- d.$slots.icon ? (v(), m("span", Ja, [
1571
- W(d.$slots, "icon", {}, void 0, !0)
1572
- ])) : K("", !0),
1607
+ default: X(() => [
1608
+ d.$slots.icon ? (v(), f("span", Ja, [
1609
+ U(d.$slots, "icon", {}, void 0, !0)
1610
+ ])) : F("", !0),
1573
1611
  y("span", Ya, [
1574
- W(d.$slots, "default", {}, void 0, !0)
1612
+ U(d.$slots, "default", {}, void 0, !0)
1575
1613
  ]),
1576
- e.removable ? (v(), m("button", {
1614
+ e.removable ? (v(), f("button", {
1577
1615
  key: 1,
1578
1616
  class: "ui-tag__remove",
1579
1617
  type: "button",
1580
1618
  "aria-label": `Remove ${e.textContent}`,
1581
- onClick: le(c, ["stop"])
1619
+ onClick: oe(c, ["stop"])
1582
1620
  }, [
1583
- P(ue, {
1621
+ K(ue, {
1584
1622
  name: "close",
1585
1623
  size: 32
1586
1624
  })
1587
- ], 8, Qa)) : K("", !0)
1625
+ ], 8, Qa)) : F("", !0)
1588
1626
  ]),
1589
1627
  _: 3
1590
1628
  }, 40, ["class", "aria-disabled", "tabindex", "role"]));
1591
1629
  }
1592
- }), tn = /* @__PURE__ */ j(en, [["__scopeId", "data-v-ea48b943"]]), an = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], nn = /* @__PURE__ */ S({
1630
+ }), tn = /* @__PURE__ */ W(en, [["__scopeId", "data-v-ea48b943"]]), an = ["href", "aria-disabled", "tabindex", "target", "aria-current", "rel"], nn = /* @__PURE__ */ R({
1593
1631
  __name: "Link",
1594
1632
  props: {
1595
1633
  target: {},
@@ -1606,7 +1644,7 @@ const Ja = {
1606
1644
  }
1607
1645
  a("click", r);
1608
1646
  };
1609
- return (r, i) => (v(), m("a", {
1647
+ return (r, i) => (v(), f("a", {
1610
1648
  class: "link",
1611
1649
  href: e.disabled ? void 0 : e.href,
1612
1650
  "aria-disabled": e.disabled ? "true" : void 0,
@@ -1616,61 +1654,61 @@ const Ja = {
1616
1654
  "aria-current": e.ariaCurrent,
1617
1655
  rel: e.target === "_blank" ? "noopener noreferrer" : void 0
1618
1656
  }, [
1619
- W(r.$slots, "default", {}, void 0, !0)
1657
+ U(r.$slots, "default", {}, void 0, !0)
1620
1658
  ], 8, an));
1621
1659
  }
1622
- }), Hl = /* @__PURE__ */ j(nn, [["__scopeId", "data-v-0f5d7308"]]), Fe = (e, n, t, a) => L(() => {
1660
+ }), Hl = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-0f5d7308"]]), ze = (e, n, t, a) => x(() => {
1623
1661
  const s = [];
1624
1662
  return e.invalid && e.errorMessage && s.push(t), n.hint && s.push(a), s.length > 0 ? s.join(" ") : void 0;
1625
- }), Be = (e) => L(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), Ve = (e) => L(() => e.invalid === !0 ? "true" : void 0), st = (e) => L(() => e.disabled === !0 ? "true" : void 0), Ke = (e, n, t) => {
1663
+ }), Re = (e) => x(() => Object.keys(e).includes("required") && e.required !== "false" ? "true" : void 0), lt = (e) => x(() => e.disabled === !0 ? "true" : void 0), Fe = (e, n, t) => {
1626
1664
  n && (n.classList.add("focused"), t("focus", e));
1627
- }, Pe = (e, n, t, a) => {
1665
+ }, Ke = (e, n, t, a) => {
1628
1666
  we(n, t), t && (t?.classList.remove("focused"), a("blur", e));
1629
1667
  }, we = (e, n) => {
1630
1668
  !e || !n || (e.value.length > 0 ? n.classList.add("filled") : n.classList.remove("filled"));
1631
- }, on = ["id"], Ue = /* @__PURE__ */ S({
1669
+ }, on = ["id"], Pe = /* @__PURE__ */ R({
1632
1670
  __name: "Hint",
1633
1671
  props: {
1634
1672
  hintId: {}
1635
1673
  },
1636
1674
  setup(e) {
1637
- return (n, t) => n.$slots.default ? (v(), m("p", {
1675
+ return (n, t) => n.$slots.default ? (v(), f("p", {
1638
1676
  key: 0,
1639
1677
  id: e.hintId,
1640
1678
  class: "visually-hidden"
1641
1679
  }, [
1642
- W(n.$slots, "default")
1643
- ], 8, on)) : K("", !0);
1680
+ U(n.$slots, "default")
1681
+ ], 8, on)) : F("", !0);
1644
1682
  }
1645
- }), ln = ["id"], We = /* @__PURE__ */ S({
1683
+ }), ln = ["id"], Ue = /* @__PURE__ */ R({
1646
1684
  __name: "RequiredHint",
1647
1685
  props: {
1648
1686
  baseId: {},
1649
1687
  isRequired: {}
1650
1688
  },
1651
1689
  setup(e) {
1652
- return (n, t) => e.isRequired ? (v(), m("p", {
1690
+ return (n, t) => e.isRequired ? (v(), f("p", {
1653
1691
  key: 0,
1654
1692
  id: `${e.baseId}-required-hint`,
1655
1693
  class: "visually-hidden"
1656
- }, " Required field ", 8, ln)) : K("", !0);
1694
+ }, " Required field ", 8, ln)) : F("", !0);
1657
1695
  }
1658
- }), sn = ["id"], je = /* @__PURE__ */ S({
1696
+ }), sn = ["id"], We = /* @__PURE__ */ R({
1659
1697
  __name: "ErrorMessage",
1660
1698
  props: {
1661
1699
  errorId: {},
1662
- invalid: {},
1700
+ invalid: { type: Boolean },
1663
1701
  errorMessage: {}
1664
1702
  },
1665
1703
  setup(e) {
1666
- return (n, t) => e.invalid && e.errorMessage ? (v(), m("p", {
1704
+ return (n, t) => e.invalid && e.errorMessage ? (v(), f("p", {
1667
1705
  key: 0,
1668
1706
  id: e.errorId,
1669
1707
  class: "error-text",
1670
1708
  role: "alert"
1671
- }, U(e.errorMessage), 9, sn)) : K("", !0);
1709
+ }, P(e.errorMessage), 9, sn)) : F("", !0);
1672
1710
  }
1673
- }), rn = ["for"], un = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], dn = /* @__PURE__ */ S({
1711
+ }), rn = ["for"], un = ["id", "type", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], dn = /* @__PURE__ */ R({
1674
1712
  __name: "Input",
1675
1713
  props: /* @__PURE__ */ ne({
1676
1714
  id: {},
@@ -1686,79 +1724,79 @@ const Ja = {
1686
1724
  }),
1687
1725
  emits: /* @__PURE__ */ ne(["focus", "blur"], ["update:modelValue"]),
1688
1726
  setup(e, { emit: n }) {
1689
- const t = me(e, "modelValue"), a = e, s = n, r = Ne(), i = ie(), o = `${i}-error`, l = `${i}-hint`, c = Be(r).value, d = Ve(a).value, g = L(() => c ? `${l} ${i}-required-hint` : l), $ = L(() => a.invalid === !0 && a.errorMessage ? o : void 0), M = L(() => a.type === "password" ? R.value ? "text" : "password" : a.type), u = L(() => {
1690
- const { type: Z, ...f } = r;
1691
- return f;
1692
- }), C = p(null), H = p(null), R = p(!1), k = () => R.value = !R.value, D = (Z) => {
1693
- we(C.value, H.value);
1694
- const f = Z.target;
1695
- t.value = a.type === "number" ? Number(f.value) : f.value;
1727
+ const t = me(e, "modelValue"), a = e, s = n, r = qe(), i = ie(), o = `${i}-error`, l = `${i}-hint`, c = Re(r).value, d = x(() => c ? `${l} ${i}-required-hint` : l), g = x(() => a.invalid === !0 && a.errorMessage ? o : void 0), M = x(() => a.type === "password" ? I.value ? "text" : "password" : a.type), L = x(() => {
1728
+ const { type: D, ...E } = r;
1729
+ return E;
1730
+ }), u = m(null), C = m(null), I = m(!1), _ = () => I.value = !I.value, k = (D) => {
1731
+ we(u.value, C.value);
1732
+ const E = D.target;
1733
+ t.value = a.type === "number" ? Number(E.value) : E.value;
1696
1734
  };
1697
1735
  return te(() => {
1698
- we(C.value, H.value);
1699
- }), (Z, f) => (v(), m("div", {
1700
- class: re(["input-box", { required: I(c), error: I(d) }]),
1736
+ we(u.value, C.value);
1737
+ }), (D, E) => (v(), f("div", {
1738
+ class: re(["input-box", { required: B(c), error: e.invalid }]),
1701
1739
  ref_key: "inputBoxRef",
1702
- ref: H
1740
+ ref: C
1703
1741
  }, [
1704
1742
  y("label", {
1705
1743
  for: e.id,
1706
1744
  class: "label"
1707
- }, U(e.label), 9, rn),
1745
+ }, P(e.label), 9, rn),
1708
1746
  y("input", he({
1709
1747
  id: e.id,
1710
1748
  type: M.value
1711
- }, u.value, {
1749
+ }, L.value, {
1712
1750
  class: "input",
1713
- onInput: D,
1714
- onFocus: f[0] || (f[0] = (w) => I(Ke)(w, H.value, s)),
1715
- onBlur: f[1] || (f[1] = (w) => I(Pe)(w, C.value, H.value, s)),
1751
+ onInput: k,
1752
+ onFocus: E[0] || (E[0] = (p) => B(Fe)(p, C.value, s)),
1753
+ onBlur: E[1] || (E[1] = (p) => B(Ke)(p, u.value, C.value, s)),
1716
1754
  value: t.value,
1717
- required: I(c),
1718
- "aria-invalid": I(d),
1719
- "aria-errormessage": $.value,
1720
- "aria-describedby": I(Fe)(Z.$props, Z.$slots, o, g.value).value,
1755
+ required: B(c),
1756
+ "aria-invalid": e.invalid ? "true" : void 0,
1757
+ "aria-errormessage": g.value,
1758
+ "aria-describedby": B(ze)(D.$props, D.$slots, o, d.value).value,
1721
1759
  ref_key: "inputRef",
1722
- ref: C
1760
+ ref: u
1723
1761
  }), null, 16, un),
1724
- P(Ue, { hintId: l }, {
1725
- default: G(() => [
1726
- W(Z.$slots, "hint", {}, void 0, !0)
1762
+ K(Pe, { hintId: l }, {
1763
+ default: X(() => [
1764
+ U(D.$slots, "hint", {}, void 0, !0)
1727
1765
  ]),
1728
1766
  _: 3
1729
1767
  }),
1730
- P(We, {
1731
- baseId: I(i),
1732
- isRequired: I(c)
1768
+ K(Ue, {
1769
+ baseId: B(i),
1770
+ isRequired: B(c)
1733
1771
  }, null, 8, ["baseId", "isRequired"]),
1734
- P(je, {
1772
+ K(We, {
1735
1773
  errorId: o,
1736
- invalid: I(d),
1774
+ invalid: e.invalid,
1737
1775
  errorMessage: e.errorMessage
1738
1776
  }, null, 8, ["invalid", "errorMessage"]),
1739
- e.type === "password" ? (v(), J(be, he({ key: 0 }, Object.keys(Z.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
1777
+ e.type === "password" ? (v(), G(be, he({ key: 0 }, Object.keys(D.$attrs).includes("disabled") ? { disabled: !0 } : void 0, {
1740
1778
  type: "button",
1741
1779
  class: "btn-icon",
1742
- onClick: k,
1743
- "aria-label": R.value ? "Hide password" : "Show password"
1780
+ onClick: _,
1781
+ "aria-label": I.value ? "Hide password" : "Show password"
1744
1782
  }), {
1745
- default: G(() => [
1746
- P(ue, {
1747
- name: R.value ? "eyeOff" : "eye"
1783
+ default: X(() => [
1784
+ K(ue, {
1785
+ name: I.value ? "eyeOff" : "eye"
1748
1786
  }, null, 8, ["name"])
1749
1787
  ]),
1750
1788
  _: 1
1751
- }, 16, ["aria-label"])) : K("", !0)
1789
+ }, 16, ["aria-label"])) : F("", !0)
1752
1790
  ], 2));
1753
1791
  }
1754
- }), Vl = /* @__PURE__ */ j(dn, [["__scopeId", "data-v-7a6dcf4f"]]), cn = ["data-size", "data-shape", "aria-label", "aria-busy"], vn = {
1792
+ }), Vl = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-a4f7bb5b"]]), cn = ["data-size", "data-shape", "aria-label", "aria-busy"], vn = {
1755
1793
  key: 1,
1756
1794
  class: "ui-avatar__loading"
1757
1795
  }, fn = {
1758
1796
  key: 2,
1759
1797
  class: "ui-avatar__fallback",
1760
1798
  "aria-hidden": "true"
1761
- }, mn = /* @__PURE__ */ S({
1799
+ }, mn = /* @__PURE__ */ R({
1762
1800
  __name: "Avatar",
1763
1801
  props: {
1764
1802
  src: {},
@@ -1768,32 +1806,32 @@ const Ja = {
1768
1806
  shape: { default: "circle" }
1769
1807
  },
1770
1808
  setup(e) {
1771
- const n = e, t = p("loading"), a = L(() => n.src && t.value !== "error"), s = L(() => n.name ? n.name.split(" ").map((l) => l[0]).slice(0, 2).join("").toUpperCase() : ""), r = L(() => n.alt ? n.alt : n.name ? n.name : "Avatar"), i = () => t.value = "loaded", o = () => t.value = "error";
1809
+ const n = e, t = m("loading"), a = x(() => n.src && t.value !== "error"), s = x(() => n.name ? n.name.split(" ").map((l) => l[0]).slice(0, 2).join("").toUpperCase() : ""), r = x(() => n.alt ? n.alt : n.name ? n.name : "Avatar"), i = () => t.value = "loaded", o = () => t.value = "error";
1772
1810
  return Y(
1773
1811
  () => n.src,
1774
1812
  () => n.src && (t.value = "loading")
1775
- ), te(() => !n.src && (t.value = "error")), (l, c) => (v(), m("div", {
1813
+ ), te(() => !n.src && (t.value = "error")), (l, c) => (v(), f("div", {
1776
1814
  class: "ui-avatar",
1777
1815
  "data-size": e.size,
1778
1816
  "data-shape": e.shape,
1779
1817
  "aria-label": a.value ? void 0 : r.value,
1780
1818
  "aria-busy": t.value === "loading" || void 0
1781
1819
  }, [
1782
- a.value ? (v(), J($e, {
1820
+ a.value ? (v(), G($e, {
1783
1821
  key: 0,
1784
1822
  src: e.src,
1785
1823
  alt: e.alt ?? "",
1786
1824
  class: "ui-avatar__img",
1787
1825
  onLoad: i,
1788
1826
  onError: o
1789
- }, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), m("div", vn)) : (v(), m("div", fn, [
1790
- W(l.$slots, "default", {}, () => [
1791
- pe(U(s.value), 1)
1827
+ }, null, 8, ["src", "alt"])) : t.value === "loading" ? (v(), f("div", vn)) : (v(), f("div", fn, [
1828
+ U(l.$slots, "default", {}, () => [
1829
+ pe(P(s.value), 1)
1792
1830
  ], !0)
1793
1831
  ]))
1794
1832
  ], 8, cn));
1795
1833
  }
1796
- }), _l = /* @__PURE__ */ j(mn, [["__scopeId", "data-v-e36c822a"]]), pn = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled", "disabled"], bn = ["innerHTML"], gn = ["id", "aria-disabled", "aria-selected", "onClick"], Cn = ["innerHTML"], hn = /* @__PURE__ */ S({
1834
+ }), _l = /* @__PURE__ */ W(mn, [["__scopeId", "data-v-e36c822a"]]), pn = ["id", "aria-expanded", "aria-invalid", "aria-labelledby", "aria-required", "aria-describedby", "aria-activedescendant", "aria-disabled", "disabled"], bn = ["innerHTML"], gn = ["id", "aria-disabled", "aria-selected", "onClick"], Cn = ["innerHTML"], hn = /* @__PURE__ */ R({
1797
1835
  __name: "Select",
1798
1836
  props: /* @__PURE__ */ ne({
1799
1837
  id: {},
@@ -1807,70 +1845,70 @@ const Ja = {
1807
1845
  }),
1808
1846
  emits: /* @__PURE__ */ ne(["focus", "blur", "change", "click"], ["update:modelValue"]),
1809
1847
  setup(e, { emit: n }) {
1810
- const t = me(e, "modelValue"), a = e, s = n, r = p(!1);
1811
- Y(r, (V) => {
1812
- V ? document.addEventListener("mousedown", X) : document.removeEventListener("mousedown", X);
1848
+ const t = me(e, "modelValue"), a = e, s = n, r = m(!1);
1849
+ Y(r, (w) => {
1850
+ w ? document.addEventListener("mousedown", Z) : document.removeEventListener("mousedown", Z);
1813
1851
  });
1814
- const i = Ne(), o = p(null), l = L(() => a.id ?? ie()), c = `${l.value}-label`, d = `${l.value}-listbox`, g = `${l.value}-error`, $ = `${l.value}-hint`, M = `${l.value}-value`, u = p(null), C = p(null), H = L(() => u.value !== null ? `${d}-option-${u.value}` : void 0), R = Ve(a).value, k = Be(i).value, D = L(() => k ? `${$} ${l.value}-required-hint` : $), Z = L(() => r.value && H.value ? H.value : void 0), f = L(() => C.value !== null ? a.options[C.value]?.value : ""), w = (V) => {
1815
- const A = o.value;
1816
- A && (A.classList.add("focused"), s("focus", V));
1817
- }, _ = (V) => {
1818
- const A = V.relatedTarget, Q = o.value;
1819
- !Q || Q?.contains(A) || (Q.classList.remove("focused"), r.value = !1, s("blur", V));
1820
- }, N = (V) => {
1821
- r.value = !r.value, r.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((A) => !A.disabled)), !(!a.options || a.options.length === 0) && s("click", V);
1822
- }, T = (V, A) => {
1823
- const Q = o.value;
1824
- !Q || V.disabled || (C.value = A, u.value = A, V && V.key && V.key.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), t.value = V.key, s("change", V.key));
1825
- }, z = (V) => {
1826
- if (!r.value && ["ArrowDown", "ArrowUp"].includes(V.key)) {
1827
- r.value = !0, u.value = u.value ?? a.options.findIndex((A) => !A.disabled), V.preventDefault();
1852
+ const i = qe(), o = m(null), l = x(() => a.id ?? ie()), c = `${l.value}-label`, d = `${l.value}-listbox`, g = `${l.value}-error`, M = `${l.value}-hint`, L = `${l.value}-value`, u = m(null), C = m(null), I = x(() => u.value !== null ? `${d}-option-${u.value}` : void 0), _ = Re(i).value, k = x(() => _ ? `${M} ${l.value}-required-hint` : M), D = x(() => r.value && I.value ? I.value : void 0), E = x(() => C.value !== null ? a.options[C.value]?.value : ""), p = (w) => {
1853
+ const T = o.value;
1854
+ T && (T.classList.add("focused"), s("focus", w));
1855
+ }, $ = (w) => {
1856
+ const T = w.relatedTarget, J = o.value;
1857
+ !J || J?.contains(T) || (J.classList.remove("focused"), r.value = !1, s("blur", w));
1858
+ }, H = (w) => {
1859
+ r.value = !r.value, r.value && t.value.toString().length > 0 && (u.value = u.value ?? a.options.findIndex((T) => !T.disabled)), !(!a.options || a.options.length === 0) && s("click", w);
1860
+ }, q = (w, T) => {
1861
+ const J = o.value;
1862
+ !J || w.disabled || (C.value = T, u.value = T, w && w.key && w.key.toString().length > 0 ? J.classList.add("filled") : J.classList.remove("filled"), t.value = w.key, s("change", w.key));
1863
+ }, S = (w) => {
1864
+ if (!r.value && ["ArrowDown", "ArrowUp"].includes(w.key)) {
1865
+ r.value = !0, u.value = u.value ?? a.options.findIndex((T) => !T.disabled), w.preventDefault();
1828
1866
  return;
1829
1867
  }
1830
1868
  if (r.value) {
1831
- if (V.key === "ArrowDown" && (b(1), V.preventDefault()), V.key === "ArrowUp" && (b(-1), V.preventDefault()), V.key === "Home") {
1832
- const A = h();
1833
- A >= 0 && (u.value = A), V.preventDefault();
1869
+ if (w.key === "ArrowDown" && (N(1), w.preventDefault()), w.key === "ArrowUp" && (N(-1), w.preventDefault()), w.key === "Home") {
1870
+ const T = b();
1871
+ T >= 0 && (u.value = T), w.preventDefault();
1834
1872
  }
1835
- if (V.key === "End") {
1836
- const A = E();
1837
- A >= 0 && (u.value = A), V.preventDefault();
1873
+ if (w.key === "End") {
1874
+ const T = h();
1875
+ T >= 0 && (u.value = T), w.preventDefault();
1838
1876
  }
1839
- if (V.key === "Enter" || V.key === " ") {
1877
+ if (w.key === "Enter" || w.key === " ") {
1840
1878
  if (u.value === null) return;
1841
- const A = a.options[u.value];
1842
- if (!A || A.disabled) return;
1843
- T(A, u.value), r.value = !1, V.preventDefault();
1879
+ const T = a.options[u.value];
1880
+ if (!T || T.disabled) return;
1881
+ q(T, u.value), r.value = !1, w.preventDefault();
1844
1882
  }
1845
- V.key === "Escape" && (r.value = !1);
1883
+ w.key === "Escape" && (r.value = !1);
1846
1884
  }
1847
- }, b = (V) => {
1885
+ }, N = (w) => {
1848
1886
  if (u.value === null) return;
1849
- let A = u.value;
1887
+ let T = u.value;
1850
1888
  do
1851
- A += V;
1852
- while (A >= 0 && A < a.options.length && a.options[A]?.disabled);
1853
- A >= 0 && A < a.options.length && (u.value = A);
1854
- }, h = () => a.options.findIndex((V) => !V.disabled), E = () => [...a.options].reverse().findIndex((V) => !V.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((V) => !V.disabled) : -1, X = (V) => {
1855
- const A = o.value;
1856
- !A || A.contains(V.target) || (r.value = !1);
1889
+ T += w;
1890
+ while (T >= 0 && T < a.options.length && a.options[T]?.disabled);
1891
+ T >= 0 && T < a.options.length && (u.value = T);
1892
+ }, b = () => a.options.findIndex((w) => !w.disabled), h = () => [...a.options].reverse().findIndex((w) => !w.disabled) >= 0 ? a.options.length - 1 - [...a.options].reverse().findIndex((w) => !w.disabled) : -1, Z = (w) => {
1893
+ const T = o.value;
1894
+ !T || T.contains(w.target) || (r.value = !1);
1857
1895
  };
1858
- return _e(() => {
1859
- document.removeEventListener("mousedown", X);
1896
+ return Ve(() => {
1897
+ document.removeEventListener("mousedown", Z);
1860
1898
  }), te(() => {
1861
1899
  if (t.value.toString().length > 0) {
1862
1900
  if (!a.options || a.options.length === 0) return;
1863
- const V = a.options.findIndex((A) => A.key === t.value);
1864
- if (V > -1) {
1865
- C.value = V, u.value = V;
1866
- const A = o.value;
1867
- A && A.classList.add("filled");
1901
+ const w = a.options.findIndex((T) => T.key === t.value);
1902
+ if (w > -1) {
1903
+ C.value = w, u.value = w;
1904
+ const T = o.value;
1905
+ T && T.classList.add("filled");
1868
1906
  }
1869
1907
  }
1870
- }), (V, A) => (v(), m("div", {
1908
+ }), (w, T) => (v(), f("div", {
1871
1909
  ref_key: "selectRef",
1872
1910
  ref: o,
1873
- class: re(["select-box", { required: Object.keys(V.$attrs).includes("required"), error: e.invalid }])
1911
+ class: re(["select-box", { required: Object.keys(w.$attrs).includes("required"), error: e.invalid }])
1874
1912
  }, [
1875
1913
  y("button", {
1876
1914
  id: l.value,
@@ -1880,83 +1918,83 @@ const Ja = {
1880
1918
  "aria-haspopup": "listbox",
1881
1919
  "aria-expanded": r.value,
1882
1920
  "aria-controls": d,
1883
- "aria-invalid": I(R),
1884
- "aria-labelledby": `${c} ${M}`,
1885
- "aria-required": I(k),
1886
- "aria-describedby": I(Fe)(V.$props, V.$slots, g, D.value).value,
1887
- "aria-activedescendant": Z.value,
1888
- "aria-disabled": V.$attrs.disabled ? "true" : void 0,
1889
- disabled: V.$attrs.disabled ? "true" : void 0,
1890
- onBlur: _,
1891
- onFocus: w,
1892
- onClick: N,
1893
- onKeydown: z,
1921
+ "aria-invalid": e.invalid ? "true" : void 0,
1922
+ "aria-labelledby": `${c} ${L}`,
1923
+ "aria-required": B(_),
1924
+ "aria-describedby": B(ze)(w.$props, w.$slots, g, k.value).value,
1925
+ "aria-activedescendant": D.value,
1926
+ "aria-disabled": w.$attrs.disabled ? "true" : void 0,
1927
+ disabled: w.$attrs.disabled ? "true" : void 0,
1928
+ onBlur: $,
1929
+ onFocus: p,
1930
+ onClick: H,
1931
+ onKeydown: S,
1894
1932
  ref: "buttonRef"
1895
1933
  }, [
1896
1934
  y("span", {
1897
1935
  id: c,
1898
1936
  class: "label"
1899
- }, U(e.label), 1),
1937
+ }, P(e.label), 1),
1900
1938
  y("span", {
1901
- id: M,
1939
+ id: L,
1902
1940
  class: "selected-object",
1903
1941
  "aria-live": "polite",
1904
1942
  "aria-atomic": "true",
1905
- innerHTML: f.value
1943
+ innerHTML: E.value
1906
1944
  }, null, 8, bn),
1907
- P(ue, {
1945
+ K(ue, {
1908
1946
  name: "directionDown",
1909
1947
  "aria-hidden": "true"
1910
1948
  })
1911
1949
  ], 40, pn),
1912
- P(xe, { name: "select" }, {
1913
- default: G(() => [
1950
+ K(xe, { name: "select" }, {
1951
+ default: X(() => [
1914
1952
  He(y("ul", {
1915
1953
  id: d,
1916
1954
  role: "listbox",
1917
1955
  class: "options"
1918
1956
  }, [
1919
- (v(!0), m(ae, null, de(e.options, (Q, fe) => (v(), m("li", {
1920
- id: `${d}-option-${fe}`,
1921
- key: fe,
1957
+ (v(!0), f(ae, null, de(e.options, (J, ce) => (v(), f("li", {
1958
+ id: `${d}-option-${ce}`,
1959
+ key: ce,
1922
1960
  role: "option",
1923
- class: re(["option", { "focus-visible": u.value === fe }]),
1924
- "aria-disabled": Q.disabled,
1925
- "aria-selected": C.value === fe,
1926
- onClick: (x) => !Q.disabled && T(Q, fe)
1961
+ class: re(["option", { "focus-visible": u.value === ce }]),
1962
+ "aria-disabled": J.disabled,
1963
+ "aria-selected": C.value === ce,
1964
+ onClick: (V) => !J.disabled && q(J, ce)
1927
1965
  }, [
1928
1966
  y("div", {
1929
1967
  class: "option-value",
1930
- innerHTML: Q.value
1968
+ innerHTML: J.value
1931
1969
  }, null, 8, Cn)
1932
1970
  ], 10, gn))), 128))
1933
1971
  ], 512), [
1934
- [qe, r.value]
1972
+ [Oe, r.value]
1935
1973
  ])
1936
1974
  ]),
1937
1975
  _: 1
1938
1976
  }),
1939
- P(Ue, { hintId: $ }, {
1940
- default: G(() => [
1941
- W(V.$slots, "hint", {}, void 0, !0)
1977
+ K(Pe, { hintId: M }, {
1978
+ default: X(() => [
1979
+ U(w.$slots, "hint", {}, void 0, !0)
1942
1980
  ]),
1943
1981
  _: 3
1944
1982
  }),
1945
- P(We, {
1983
+ K(Ue, {
1946
1984
  baseId: l.value,
1947
- isRequired: I(k)
1985
+ isRequired: B(_)
1948
1986
  }, null, 8, ["baseId", "isRequired"]),
1949
- P(je, {
1987
+ K(We, {
1950
1988
  errorId: g,
1951
- invalid: I(R),
1989
+ invalid: e.invalid,
1952
1990
  errorMessage: e.errorMessage
1953
1991
  }, null, 8, ["invalid", "errorMessage"])
1954
1992
  ], 2));
1955
1993
  }
1956
- }), Rl = /* @__PURE__ */ j(hn, [["__scopeId", "data-v-a3ab3a6e"]]), yn = ["aria-label"], kn = ["onKeydown"], wn = {
1994
+ }), Rl = /* @__PURE__ */ W(hn, [["__scopeId", "data-v-7be7a049"]]), yn = ["aria-label"], kn = ["onKeydown"], wn = {
1957
1995
  key: 1,
1958
1996
  class: "rs-gallery-thumbs"
1959
- }, Ln = ["aria-selected"], Mn = ["onClick"], $n = /* @__PURE__ */ S({
1997
+ }, Ln = ["aria-selected"], Mn = ["onClick"], $n = /* @__PURE__ */ R({
1960
1998
  __name: "GalleryCarousel",
1961
1999
  props: /* @__PURE__ */ ne({
1962
2000
  images: {},
@@ -1977,25 +2015,25 @@ const Ja = {
1977
2015
  }),
1978
2016
  emits: /* @__PURE__ */ ne(["change"], ["update:modelValue"]),
1979
2017
  setup(e, { emit: n }) {
1980
- const t = me(e, "modelValue"), a = e, s = n, r = p([]), i = p("next"), o = p(null), l = `gallery-caption-${ie()}`, c = p(null), d = L(() => t.value), g = L(() => a.images[d.value]), $ = (k, D) => {
2018
+ const t = me(e, "modelValue"), a = e, s = n, r = m([]), i = m("next"), o = m(null), l = `gallery-caption-${ie()}`, c = m(null), d = x(() => t.value), g = x(() => a.images[d.value]), M = (k, D) => {
1981
2019
  k && (r.value[D] = k);
1982
- }, M = (k) => {
2020
+ }, L = (k) => {
1983
2021
  k !== d.value && (i.value = k > d.value ? "next" : "prev", t.value = k, s("change", k));
1984
2022
  }, u = () => {
1985
2023
  if (d.value === a.images.length - 1) {
1986
- a.loop && M(0);
2024
+ a.loop && L(0);
1987
2025
  return;
1988
2026
  }
1989
- M(d.value + 1);
2027
+ L(d.value + 1);
1990
2028
  }, C = () => {
1991
2029
  if (d.value === 0) {
1992
- a.loop && M(a.images.length - 1);
2030
+ a.loop && L(a.images.length - 1);
1993
2031
  return;
1994
2032
  }
1995
- M(d.value - 1);
1996
- }, H = () => {
2033
+ L(d.value - 1);
2034
+ }, I = () => {
1997
2035
  c.value && (o.value = c.value.offsetHeight);
1998
- }, R = () => {
2036
+ }, _ = () => {
1999
2037
  o.value = null;
2000
2038
  };
2001
2039
  return Y(d, async (k) => {
@@ -2008,7 +2046,7 @@ const Ja = {
2008
2046
  });
2009
2047
  }), Y(() => a.images, () => {
2010
2048
  r.value = [];
2011
- }), (k, D) => (v(), m("div", {
2049
+ }), (k, D) => (v(), f("div", {
2012
2050
  role: "region",
2013
2051
  class: "rs-gallery",
2014
2052
  "aria-roledescription": "carousel",
@@ -2023,59 +2061,59 @@ const Ja = {
2023
2061
  class: "rs-gallery-review",
2024
2062
  style: ge(o.value ? { height: `${o.value}px` } : void 0),
2025
2063
  onKeydown: [
2026
- ve(le(C, ["prevent"]), ["left"]),
2027
- ve(le(u, ["prevent"]), ["right"])
2064
+ fe(oe(C, ["prevent"]), ["left"]),
2065
+ fe(oe(u, ["prevent"]), ["right"])
2028
2066
  ]
2029
2067
  }, [
2030
- P(xe, {
2068
+ K(xe, {
2031
2069
  name: `rs-gallery-slide-${i.value}`,
2032
2070
  mode: "out-in",
2033
- onBeforeLeave: H,
2034
- onAfterEnter: R
2071
+ onBeforeLeave: I,
2072
+ onAfterEnter: _
2035
2073
  }, {
2036
- default: G(() => [
2037
- g.value ? (v(), J($e, {
2074
+ default: X(() => [
2075
+ g.value ? (v(), G($e, {
2038
2076
  key: g.value.src,
2039
2077
  src: g.value.src,
2040
2078
  alt: g.value.alt || "",
2041
2079
  transform: e.transform
2042
- }, null, 8, ["src", "alt", "transform"])) : K("", !0)
2080
+ }, null, 8, ["src", "alt", "transform"])) : F("", !0)
2043
2081
  ]),
2044
2082
  _: 1
2045
2083
  }, 8, ["name"]),
2046
- W(k.$slots, "overlay", {
2084
+ U(k.$slots, "overlay", {
2047
2085
  image: g.value,
2048
2086
  index: d.value
2049
2087
  }, void 0, !0)
2050
2088
  ], 44, kn),
2051
- g.value?.title ? (v(), m("p", {
2089
+ g.value?.title ? (v(), f("p", {
2052
2090
  key: 0,
2053
2091
  id: l,
2054
2092
  class: "rs-gallery-caption"
2055
- }, U(g.value.title), 1)) : K("", !0),
2056
- e.showThumbnails ? (v(), m("ul", wn, [
2057
- (v(!0), m(ae, null, de(e.images, (Z, f) => (v(), m("li", {
2058
- key: Z.src,
2093
+ }, P(g.value.title), 1)) : F("", !0),
2094
+ e.showThumbnails ? (v(), f("ul", wn, [
2095
+ (v(!0), f(ae, null, de(e.images, (E, p) => (v(), f("li", {
2096
+ key: E.src,
2059
2097
  ref_for: !0,
2060
- ref: (w) => $(w, f),
2061
- "aria-selected": d.value === f
2098
+ ref: ($) => M($, p),
2099
+ "aria-selected": d.value === p
2062
2100
  }, [
2063
2101
  y("button", {
2064
2102
  type: "button",
2065
- class: re(["rs-gallery-thumb", { active: d.value === f }]),
2066
- onClick: (w) => M(f)
2103
+ class: re(["rs-gallery-thumb", { active: d.value === p }]),
2104
+ onClick: ($) => L(p)
2067
2105
  }, [
2068
- P($e, {
2069
- src: Z.src,
2070
- alt: `Select image ${f + 1}`,
2106
+ K($e, {
2107
+ src: E.src,
2108
+ alt: `Select image ${p + 1}`,
2071
2109
  transform: e.transformThumbnails
2072
2110
  }, null, 8, ["src", "alt", "transform"])
2073
2111
  ], 10, Mn)
2074
2112
  ], 8, Ln))), 128))
2075
- ])) : K("", !0)
2113
+ ])) : F("", !0)
2076
2114
  ], 8, yn));
2077
2115
  }
2078
- }), rt = /* @__PURE__ */ j($n, [["__scopeId", "data-v-dcfacff6"]]), xn = ["aria-label"], In = ["onClick"], Hn = /* @__PURE__ */ S({
2116
+ }), st = /* @__PURE__ */ W($n, [["__scopeId", "data-v-dcfacff6"]]), xn = ["aria-label"], In = ["onClick"], Hn = /* @__PURE__ */ R({
2079
2117
  __name: "GalleryGrid",
2080
2118
  props: {
2081
2119
  images: {},
@@ -2090,19 +2128,19 @@ const Ja = {
2090
2128
  },
2091
2129
  emits: ["change"],
2092
2130
  setup(e) {
2093
- return (n, t) => (v(), m("div", {
2131
+ return (n, t) => (v(), f("div", {
2094
2132
  class: "rs-gallery-grid",
2095
2133
  style: ge({ "--grid-columns": e.columns, "--grid-gap": e.gap }),
2096
2134
  role: "list",
2097
2135
  "aria-label": e.ariaLabel || "Image grid gallery"
2098
2136
  }, [
2099
- (v(!0), m(ae, null, de(e.images, (a, s) => (v(), m("button", {
2137
+ (v(!0), f(ae, null, de(e.images, (a, s) => (v(), f("button", {
2100
2138
  key: a.src,
2101
2139
  type: "button",
2102
2140
  class: "grid-item",
2103
2141
  onClick: (r) => n.$emit("change", s)
2104
2142
  }, [
2105
- P($e, {
2143
+ K($e, {
2106
2144
  src: a.src,
2107
2145
  alt: a.alt || "",
2108
2146
  transform: e.transform
@@ -2110,9 +2148,9 @@ const Ja = {
2110
2148
  ], 8, In))), 128))
2111
2149
  ], 12, xn));
2112
2150
  }
2113
- }), it = /* @__PURE__ */ j(Hn, [["__scopeId", "data-v-17067a4b"]]), Se = /* @__PURE__ */ Symbol("ModalContext");
2114
- let Ee = 0, et = 0, De = null;
2115
- const Oe = S({
2151
+ }), rt = /* @__PURE__ */ W(Hn, [["__scopeId", "data-v-17067a4b"]]), Be = /* @__PURE__ */ Symbol("ModalContext");
2152
+ let Ze = 0, Qe = 0, Ee = null;
2153
+ const De = R({
2116
2154
  name: "Modal",
2117
2155
  props: {
2118
2156
  motion: {
@@ -2128,12 +2166,12 @@ const Oe = S({
2128
2166
  },
2129
2167
  emits: ["update:open", "opened", "closed"],
2130
2168
  setup(e, { emit: n, slots: t }) {
2131
- const a = p(!1), s = p(e.open), r = ie(), i = `modal-title-${r}`, o = `modal-desc-${r}`;
2169
+ const a = m(!1), s = m(e.open), r = ie(), i = `modal-title-${r}`, o = `modal-desc-${r}`;
2132
2170
  Y(() => e.open, (g) => s.value = g), Y(s, (g) => {
2133
2171
  n("update:open", g), n(g ? "opened" : "closed");
2134
2172
  });
2135
- const l = () => s.value = !1, c = L(() => e.motion), d = L(() => e.size);
2136
- return Ce(Se, {
2173
+ const l = () => s.value = !1, c = x(() => e.motion), d = x(() => e.size);
2174
+ return Ce(Be, {
2137
2175
  isOpen: s,
2138
2176
  motion: c,
2139
2177
  size: d,
@@ -2144,13 +2182,13 @@ const Oe = S({
2144
2182
  hasTitle: a
2145
2183
  }), () => t.default?.();
2146
2184
  }
2147
- }), ut = S({
2185
+ }), it = R({
2148
2186
  name: "ModalContent",
2149
2187
  setup(e, { slots: n }) {
2150
- const t = se(Se);
2188
+ const t = le(Be);
2151
2189
  if (!t) throw new Error("ModalContent components must be used inside <Modal>");
2152
- const a = p(null), s = ++Ee, r = (d) => {
2153
- d.key === "Escape" && s === Ee && t.close();
2190
+ const a = m(null), s = ++Ze, r = (d) => {
2191
+ d.key === "Escape" && s === Ze && t.close();
2154
2192
  };
2155
2193
  let i = null;
2156
2194
  const o = (d) => {
@@ -2163,43 +2201,43 @@ const Oe = S({
2163
2201
  d.setAttribute("tabindex", "-1"), d.focus();
2164
2202
  return;
2165
2203
  }
2166
- const $ = g[0], M = g[g.length - 1], u = (C) => {
2167
- C.key === "Tab" && (C.shiftKey && document.activeElement === $ ? (C.preventDefault(), M?.focus()) : !C.shiftKey && document.activeElement === M && (C.preventDefault(), $?.focus()));
2204
+ const M = g[0], L = g[g.length - 1], u = (C) => {
2205
+ C.key === "Tab" && (C.shiftKey && document.activeElement === M ? (C.preventDefault(), L?.focus()) : !C.shiftKey && document.activeElement === L && (C.preventDefault(), M?.focus()));
2168
2206
  };
2169
- d.addEventListener("keydown", u), $?.focus(), i = () => {
2207
+ d.addEventListener("keydown", u), M?.focus(), i = () => {
2170
2208
  d.removeEventListener("keydown", u), i = null;
2171
2209
  };
2172
2210
  }, l = () => {
2173
- ++et === 1 && (document.body.style.overflow = "hidden");
2211
+ ++Qe === 1 && (document.body.style.overflow = "hidden");
2174
2212
  }, c = () => {
2175
- --et === 0 && (document.body.style.overflow = "");
2213
+ --Qe === 0 && (document.body.style.overflow = "");
2176
2214
  };
2177
- return () => F(
2178
- Re,
2215
+ return () => z(
2216
+ _e,
2179
2217
  { to: "body" },
2180
- F(
2218
+ z(
2181
2219
  xe,
2182
2220
  {
2183
2221
  name: `modal-${t.motion.value}`,
2184
2222
  appear: !0,
2185
2223
  onEnter: () => {
2186
- De = document.activeElement, l();
2224
+ Ee = document.activeElement, l();
2187
2225
  },
2188
2226
  onAfterEnter: () => {
2189
2227
  a.value && (o(a.value), document.addEventListener("keydown", r));
2190
2228
  },
2191
2229
  onAfterLeave: () => {
2192
- Ee--, document.removeEventListener("keydown", r), i?.(), c(), De?.focus(), De = null;
2230
+ Ze--, document.removeEventListener("keydown", r), i?.(), c(), Ee?.focus(), Ee = null;
2193
2231
  }
2194
2232
  },
2195
2233
  {
2196
- default: () => t.isOpen.value ? F(
2234
+ default: () => t.isOpen.value ? z(
2197
2235
  "div",
2198
2236
  {
2199
2237
  class: "modal-overlay",
2200
2238
  onClick: () => t.closeOnOverlay && t.close()
2201
2239
  },
2202
- F(
2240
+ z(
2203
2241
  "div",
2204
2242
  {
2205
2243
  ref: a,
@@ -2217,34 +2255,34 @@ const Oe = S({
2217
2255
  )
2218
2256
  );
2219
2257
  }
2220
- }), dt = S({
2258
+ }), ut = R({
2221
2259
  name: "ModalTitle",
2222
2260
  setup(e, { slots: n }) {
2223
- const t = se(Se);
2261
+ const t = le(Be);
2224
2262
  if (!t) throw new Error("ModalTitle components must be used inside <Modal>");
2225
- return t.hasTitle.value = !0, () => F("h2", { id: t.labelId }, n.default?.());
2263
+ return t.hasTitle.value = !0, () => z("h2", { id: t.labelId }, n.default?.());
2226
2264
  }
2227
- }), ct = S({
2265
+ }), dt = R({
2228
2266
  name: "ModalHeader",
2229
2267
  setup(e, { slots: n }) {
2230
- return () => F("div", { class: "modal-header" }, n.default?.());
2268
+ return () => z("div", { class: "modal-header" }, n.default?.());
2231
2269
  }
2232
- }), vt = S({
2270
+ }), ct = R({
2233
2271
  name: "ModalBody",
2234
2272
  setup(e, { slots: n }) {
2235
- return () => F("div", { class: "modal-body" }, n.default?.());
2273
+ return () => z("div", { class: "modal-body" }, n.default?.());
2236
2274
  }
2237
- }), Bl = S({
2275
+ }), Bl = R({
2238
2276
  name: "ModalFooter",
2239
2277
  setup(e, { slots: n }) {
2240
- return () => F("div", { class: "modal-footer" }, n.default?.());
2278
+ return () => z("div", { class: "modal-footer" }, n.default?.());
2241
2279
  }
2242
- }), ft = S({
2280
+ }), vt = R({
2243
2281
  name: "ModalClose",
2244
2282
  setup() {
2245
- const e = se(Se);
2283
+ const e = le(Be);
2246
2284
  if (!e) throw new Error("ModalClose components must be used inside <Modal>");
2247
- return () => F(
2285
+ return () => z(
2248
2286
  "button",
2249
2287
  {
2250
2288
  class: "modal-close",
@@ -2252,16 +2290,16 @@ const Oe = S({
2252
2290
  "aria-label": "Close modal",
2253
2291
  onClick: e.close
2254
2292
  },
2255
- F(ue, { name: "close", size: 32 })
2293
+ z(ue, { name: "close", size: 32 })
2256
2294
  );
2257
2295
  }
2258
2296
  });
2259
- Object.assign(Oe, {
2297
+ Object.assign(De, {
2260
2298
  install(e) {
2261
- e.component("Modal", Oe), e.component("ModalBody", vt), e.component("ModalTitle", dt), e.component("ModalClose", ft), e.component("ModalHeader", ct), e.component("ModalContent", ut);
2299
+ e.component("Modal", De), e.component("ModalBody", ct), e.component("ModalTitle", ut), e.component("ModalClose", vt), e.component("ModalHeader", dt), e.component("ModalContent", it);
2262
2300
  }
2263
2301
  });
2264
- const Vn = /* @__PURE__ */ S({
2302
+ const Vn = /* @__PURE__ */ R({
2265
2303
  __name: "GalleryGridWithLightbox",
2266
2304
  props: {
2267
2305
  images: {},
@@ -2276,40 +2314,40 @@ const Vn = /* @__PURE__ */ S({
2276
2314
  },
2277
2315
  emits: ["change"],
2278
2316
  setup(e) {
2279
- const n = p(0), t = p(!1), a = (r) => {
2317
+ const n = m(0), t = m(!1), a = (r) => {
2280
2318
  n.value = r, t.value = !0;
2281
2319
  }, s = () => t.value = !1;
2282
- return (r, i) => (v(), m(ae, null, [
2283
- P(it, {
2320
+ return (r, i) => (v(), f(ae, null, [
2321
+ K(rt, {
2284
2322
  images: e.images,
2285
2323
  onChange: a,
2286
2324
  "aria-label": e.ariaLabel,
2287
2325
  transform: e.transform
2288
2326
  }, null, 8, ["images", "aria-label", "transform"]),
2289
- P(I(Oe), {
2327
+ K(B(De), {
2290
2328
  open: t.value,
2291
2329
  "onUpdate:open": i[2] || (i[2] = (o) => t.value = o),
2292
2330
  motion: "fade",
2293
2331
  size: "xl"
2294
2332
  }, {
2295
- default: G(() => [
2296
- P(I(ut), null, {
2297
- default: G(() => [
2298
- P(I(ct), null, {
2299
- default: G(() => [
2300
- P(I(dt), null, {
2301
- default: G(() => [...i[3] || (i[3] = [
2333
+ default: X(() => [
2334
+ K(B(it), null, {
2335
+ default: X(() => [
2336
+ K(B(dt), null, {
2337
+ default: X(() => [
2338
+ K(B(ut), null, {
2339
+ default: X(() => [...i[3] || (i[3] = [
2302
2340
  pe("Image Gallery", -1)
2303
2341
  ])]),
2304
2342
  _: 1
2305
2343
  }),
2306
- P(I(ft))
2344
+ K(B(vt))
2307
2345
  ]),
2308
2346
  _: 1
2309
2347
  }),
2310
- P(I(vt), null, {
2311
- default: G(() => [
2312
- P(rt, {
2348
+ K(B(ct), null, {
2349
+ default: X(() => [
2350
+ K(st, {
2313
2351
  modelValue: n.value,
2314
2352
  "onUpdate:modelValue": i[0] || (i[0] = (o) => n.value = o),
2315
2353
  images: e.images,
@@ -2329,7 +2367,7 @@ const Vn = /* @__PURE__ */ S({
2329
2367
  }, 8, ["open"])
2330
2368
  ], 64));
2331
2369
  }
2332
- }), _n = { class: "rs-gallery-masonry" }, Rn = /* @__PURE__ */ S({
2370
+ }), _n = { class: "rs-gallery-masonry" }, Rn = /* @__PURE__ */ R({
2333
2371
  __name: "GalleryMasonry",
2334
2372
  props: {
2335
2373
  images: {},
@@ -2343,12 +2381,12 @@ const Vn = /* @__PURE__ */ S({
2343
2381
  gap: { default: "1rem" }
2344
2382
  },
2345
2383
  setup(e) {
2346
- return (n, t) => (v(), m("div", _n, [
2347
- (v(!0), m(ae, null, de(e.images, (a) => (v(), m("button", {
2384
+ return (n, t) => (v(), f("div", _n, [
2385
+ (v(!0), f(ae, null, de(e.images, (a) => (v(), f("button", {
2348
2386
  key: a.src,
2349
2387
  class: "masonry-item"
2350
2388
  }, [
2351
- P($e, {
2389
+ K($e, {
2352
2390
  src: a.src,
2353
2391
  alt: a.alt || "",
2354
2392
  transform: e.transform
@@ -2356,11 +2394,11 @@ const Vn = /* @__PURE__ */ S({
2356
2394
  ]))), 128))
2357
2395
  ]));
2358
2396
  }
2359
- }), Bn = /* @__PURE__ */ j(Rn, [["__scopeId", "data-v-afb75845"]]), Sn = {
2397
+ }), Bn = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-afb75845"]]), Sn = {
2360
2398
  class: "rs-image-gallery",
2361
2399
  role: "region",
2362
2400
  "aria-label": "Image gallery"
2363
- }, Tn = /* @__PURE__ */ S({
2401
+ }, Tn = /* @__PURE__ */ R({
2364
2402
  __name: "ImageGallery",
2365
2403
  props: /* @__PURE__ */ ne({
2366
2404
  images: {},
@@ -2381,14 +2419,14 @@ const Vn = /* @__PURE__ */ S({
2381
2419
  }),
2382
2420
  emits: /* @__PURE__ */ ne(["change"], ["update:modelValue"]),
2383
2421
  setup(e, { emit: n }) {
2384
- const t = me(e, "modelValue"), a = n, s = L({
2422
+ const t = me(e, "modelValue"), a = n, s = x({
2385
2423
  get: () => t.value ?? 0,
2386
2424
  set: (i) => {
2387
2425
  t.value = i, a("change", i);
2388
2426
  }
2389
2427
  }), r = (i) => s.value = i;
2390
- return (i, o) => (v(), m("section", Sn, [
2391
- e.layout === "carousel" ? (v(), J(rt, {
2428
+ return (i, o) => (v(), f("section", Sn, [
2429
+ e.layout === "carousel" ? (v(), G(st, {
2392
2430
  key: 0,
2393
2431
  modelValue: s.value,
2394
2432
  "onUpdate:modelValue": o[0] || (o[0] = (l) => s.value = l),
@@ -2398,7 +2436,7 @@ const Vn = /* @__PURE__ */ S({
2398
2436
  transform: e.transform,
2399
2437
  "transform-thumbnails": e.transformThumbnails,
2400
2438
  "show-thumbnails": e.showThumbnails
2401
- }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), J(it, {
2439
+ }, null, 8, ["modelValue", "images", "loop", "aria-label", "transform", "transform-thumbnails", "show-thumbnails"])) : e.layout === "grid" ? (v(), G(rt, {
2402
2440
  key: 1,
2403
2441
  modelValue: s.value,
2404
2442
  "onUpdate:modelValue": o[1] || (o[1] = (l) => s.value = l),
@@ -2408,25 +2446,25 @@ const Vn = /* @__PURE__ */ S({
2408
2446
  gap: e.gap,
2409
2447
  transform: e.transform,
2410
2448
  "aria-label": e.ariaLabel
2411
- }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), J(Vn, {
2449
+ }, null, 8, ["modelValue", "images", "columns", "gap", "transform", "aria-label"])) : e.layout === "grid-lightbox" ? (v(), G(Vn, {
2412
2450
  key: 2,
2413
2451
  modelValue: s.value,
2414
2452
  "onUpdate:modelValue": o[2] || (o[2] = (l) => s.value = l),
2415
2453
  images: e.images,
2416
2454
  transform: e.transform,
2417
2455
  "aria-label": e.ariaLabel
2418
- }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), J(Bn, {
2456
+ }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : e.layout === "masonry" ? (v(), G(Bn, {
2419
2457
  key: 3,
2420
2458
  modelValue: s.value,
2421
2459
  "onUpdate:modelValue": o[3] || (o[3] = (l) => s.value = l),
2422
2460
  images: e.images,
2423
2461
  transform: e.transform,
2424
2462
  "aria-label": e.ariaLabel
2425
- }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : K("", !0)
2463
+ }, null, 8, ["modelValue", "images", "transform", "aria-label"])) : F("", !0)
2426
2464
  ]));
2427
2465
  }
2428
- }), tt = /* @__PURE__ */ j(Tn, [["__scopeId", "data-v-d6be1b96"]]);
2429
- tt.install = (e) => e.component("ImageGallery", tt);
2466
+ }), et = /* @__PURE__ */ W(Tn, [["__scopeId", "data-v-d6be1b96"]]);
2467
+ et.install = (e) => e.component("ImageGallery", et);
2430
2468
  const An = ["aria-busy"], Zn = {
2431
2469
  key: 0,
2432
2470
  class: "message",
@@ -2434,13 +2472,13 @@ const An = ["aria-busy"], Zn = {
2434
2472
  }, En = {
2435
2473
  class: "message sr-only",
2436
2474
  "aria-atomic": "true"
2437
- }, Dn = /* @__PURE__ */ S({
2475
+ }, Dn = /* @__PURE__ */ R({
2438
2476
  __name: "Spinner",
2439
2477
  props: {
2440
2478
  message: {}
2441
2479
  },
2442
2480
  setup(e) {
2443
- const n = e, t = p(0), a = p(null), s = p(n.message || ""), r = () => {
2481
+ const n = e, t = m(0), a = m(null), s = m(n.message || ""), r = () => {
2444
2482
  !n.message || a.value !== null || s.value.length > 0 && (a.value = window.setInterval(() => {
2445
2483
  t.value = t.value % 3 + 1, s.value = `${n.message}${".".repeat(t.value)}`;
2446
2484
  }, 750));
@@ -2452,7 +2490,7 @@ const An = ["aria-busy"], Zn = {
2452
2490
  (o, l) => {
2453
2491
  o !== l && (s.value = o || "", i());
2454
2492
  }
2455
- ), te(r), ye(i), (o, l) => (v(), m("div", {
2493
+ ), te(r), ye(i), (o, l) => (v(), f("div", {
2456
2494
  class: "spinner-container",
2457
2495
  role: "status",
2458
2496
  "aria-live": "polite",
@@ -2462,11 +2500,11 @@ const An = ["aria-busy"], Zn = {
2462
2500
  class: "spinner",
2463
2501
  "aria-hidden": "true"
2464
2502
  }, null, -1)),
2465
- e.message ? (v(), m("span", Zn, U(s.value), 1)) : K("", !0),
2466
- y("span", En, U(e.message || "Loading"), 1)
2503
+ e.message ? (v(), f("span", Zn, P(s.value), 1)) : F("", !0),
2504
+ y("span", En, P(e.message || "Loading"), 1)
2467
2505
  ], 8, An));
2468
2506
  }
2469
- }), mt = /* @__PURE__ */ j(Dn, [["__scopeId", "data-v-e61a1cf5"]]), On = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], qn = {
2507
+ }), ft = /* @__PURE__ */ W(Dn, [["__scopeId", "data-v-e61a1cf5"]]), On = ["id", "required", "checked", "disabled", "aria-invalid", "aria-disabled", "aria-checked"], qn = {
2470
2508
  class: "checkbox-control",
2471
2509
  "aria-hidden": "true"
2472
2510
  }, Nn = {
@@ -2476,7 +2514,7 @@ const An = ["aria-busy"], Zn = {
2476
2514
  key: 1,
2477
2515
  class: "indeterminate",
2478
2516
  "view-box": "0 0 16 16"
2479
- }, Fn = { class: "checkbox-label" }, Kn = /* @__PURE__ */ S({
2517
+ }, Fn = { class: "checkbox-label" }, Kn = /* @__PURE__ */ R({
2480
2518
  __name: "Checkbox",
2481
2519
  props: /* @__PURE__ */ ne({
2482
2520
  id: {},
@@ -2490,7 +2528,7 @@ const An = ["aria-busy"], Zn = {
2490
2528
  }),
2491
2529
  emits: /* @__PURE__ */ ne(["change"], ["update:modelValue"]),
2492
2530
  setup(e, { emit: n }) {
2493
- const t = n, a = me(e, "modelValue"), s = e, r = ie(), i = L(() => s.id ?? `checkbox-${r}`), o = p(null), l = Ve(s).value, c = st(s).value, d = L(() => s.required ? !0 : void 0), g = L(() => s.triState && a.value === void 0 ? "mixed" : void 0);
2531
+ const t = n, a = me(e, "modelValue"), s = e, r = ie(), i = x(() => s.id ?? `checkbox-${r}`), o = m(null), l = lt(s).value, c = x(() => s.required ? !0 : void 0), d = x(() => s.triState && a.value === void 0 ? "mixed" : void 0);
2494
2532
  Y(
2495
2533
  () => a.value,
2496
2534
  (M) => {
@@ -2498,53 +2536,53 @@ const An = ["aria-busy"], Zn = {
2498
2536
  },
2499
2537
  { immediate: !0 }
2500
2538
  );
2501
- const $ = (M) => {
2539
+ const g = (M) => {
2502
2540
  if (!s.disabled) {
2503
2541
  if (!s.triState) {
2504
- const u = M.target.checked;
2505
- a.value = u, t("change", a.value);
2542
+ const L = M.target.checked;
2543
+ a.value = L, t("change", a.value);
2506
2544
  return;
2507
2545
  }
2508
2546
  a.value === !1 ? a.value = !0 : a.value === !0 ? a.value = void 0 : a.value = !1, t("change", a.value);
2509
2547
  }
2510
2548
  };
2511
- return (M, u) => (v(), m("label", {
2512
- class: re(["checkbox-root", { required: d.value }])
2549
+ return (M, L) => (v(), f("label", {
2550
+ class: re(["checkbox-root", { required: c.value, error: e.invalid }])
2513
2551
  }, [
2514
2552
  y("input", {
2515
2553
  id: i.value,
2516
2554
  type: "checkbox",
2517
2555
  class: "checkbox",
2518
- required: d.value,
2556
+ required: c.value,
2519
2557
  checked: a.value === !0,
2520
2558
  disabled: e.disabled,
2521
- "aria-invalid": I(l),
2522
- "aria-disabled": I(c),
2523
- "aria-checked": g.value,
2524
- onClick: u[0] || (u[0] = (C) => e.triState ? $(C) : void 0),
2525
- onChange: u[1] || (u[1] = (C) => e.triState ? void 0 : $(C)),
2559
+ "aria-invalid": e.invalid ? "true" : void 0,
2560
+ "aria-disabled": B(l),
2561
+ "aria-checked": d.value,
2562
+ onClick: L[0] || (L[0] = (u) => e.triState ? g(u) : void 0),
2563
+ onChange: L[1] || (L[1] = (u) => e.triState ? void 0 : g(u)),
2526
2564
  ref_key: "inputRef",
2527
2565
  ref: o
2528
2566
  }, null, 40, On),
2529
2567
  y("span", qn, [
2530
- a.value === !0 ? (v(), m("svg", Nn, [...u[2] || (u[2] = [
2568
+ a.value === !0 ? (v(), f("svg", Nn, [...L[2] || (L[2] = [
2531
2569
  y("path", {
2532
2570
  d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
2533
2571
  fill: "currentColor"
2534
2572
  }, null, -1)
2535
- ])])) : a.value === void 0 ? (v(), m("svg", zn, [...u[3] || (u[3] = [
2573
+ ])])) : a.value === void 0 ? (v(), f("svg", zn, [...L[3] || (L[3] = [
2536
2574
  y("path", {
2537
2575
  d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
2538
2576
  fill: "currentColor"
2539
2577
  }, null, -1)
2540
- ])])) : K("", !0)
2578
+ ])])) : F("", !0)
2541
2579
  ]),
2542
2580
  y("span", Fn, [
2543
- W(M.$slots, "default", {}, void 0, !0)
2581
+ U(M.$slots, "default", {}, void 0, !0)
2544
2582
  ])
2545
2583
  ], 2));
2546
2584
  }
2547
- }), Sl = /* @__PURE__ */ j(Kn, [["__scopeId", "data-v-c5dd6f08"]]), Pn = ["for"], Un = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Wn = /* @__PURE__ */ S({
2585
+ }), Sl = /* @__PURE__ */ W(Kn, [["__scopeId", "data-v-3a0c4f73"]]), Pn = ["for"], Un = ["id", "value", "required", "aria-invalid", "aria-errormessage", "aria-describedby"], Wn = /* @__PURE__ */ R({
2548
2586
  __name: "Textarea",
2549
2587
  props: /* @__PURE__ */ ne({
2550
2588
  id: {},
@@ -2560,53 +2598,53 @@ const An = ["aria-busy"], Zn = {
2560
2598
  }),
2561
2599
  emits: /* @__PURE__ */ ne(["focus", "blur"], ["update:modelValue"]),
2562
2600
  setup(e, { emit: n }) {
2563
- const t = me(e, "modelValue"), a = Ne(), s = ze(), r = n, i = e, o = p(null), l = p(null), c = ie(), d = `${c}-error`, g = `${c}-hint`, $ = Be(a).value, M = Ve(i).value, u = L(() => $ ? `${g} ${c}-required-hint` : g), C = Fe(i, s, d, u.value).value, H = (k) => {
2601
+ const t = me(e, "modelValue"), a = qe(), s = Ne(), r = n, i = e, o = m(null), l = m(null), c = ie(), d = `${c}-error`, g = `${c}-hint`, M = Re(a).value, L = x(() => M ? `${g} ${c}-required-hint` : g), u = ze(i, s, d, L.value).value, C = (_) => {
2564
2602
  we(o.value, l.value);
2565
- const D = k.target;
2566
- t.value = i.type === "number" ? Number(D.value) : D.value;
2567
- }, R = L(() => i.invalid === !0 && i.errorMessage ? d : void 0);
2603
+ const k = _.target;
2604
+ t.value = i.type === "number" ? Number(k.value) : k.value;
2605
+ }, I = x(() => i.invalid === !0 && i.errorMessage ? d : void 0);
2568
2606
  return te(() => {
2569
2607
  we(o.value, l.value);
2570
- }), (k, D) => (v(), m("div", {
2571
- class: re(["textarea-box", { required: I($), error: I(M) }]),
2608
+ }), (_, k) => (v(), f("div", {
2609
+ class: re(["textarea-box", { required: B(M), error: e.invalid }]),
2572
2610
  ref_key: "inputBoxRef",
2573
2611
  ref: l
2574
2612
  }, [
2575
2613
  y("label", {
2576
2614
  for: e.id,
2577
2615
  class: "label"
2578
- }, U(e.label), 9, Pn),
2579
- y("textarea", he({ id: e.id }, k.$attrs, {
2616
+ }, P(e.label), 9, Pn),
2617
+ y("textarea", he({ id: e.id }, _.$attrs, {
2580
2618
  class: "custom-textarea",
2581
- onFocus: D[0] || (D[0] = (Z) => I(Ke)(Z, l.value, r)),
2582
- onBlur: D[1] || (D[1] = (Z) => I(Pe)(Z, o.value, l.value, r)),
2583
- onInput: H,
2619
+ onFocus: k[0] || (k[0] = (D) => B(Fe)(D, l.value, r)),
2620
+ onBlur: k[1] || (k[1] = (D) => B(Ke)(D, o.value, l.value, r)),
2621
+ onInput: C,
2584
2622
  value: t.value,
2585
- required: I($),
2586
- "aria-invalid": I(M),
2587
- "aria-errormessage": R.value,
2588
- "aria-describedby": I(C),
2623
+ required: B(M),
2624
+ "aria-invalid": e.invalid ? "true" : void 0,
2625
+ "aria-errormessage": I.value,
2626
+ "aria-describedby": B(u),
2589
2627
  ref_key: "textareaRef",
2590
2628
  ref: o
2591
2629
  }), " ", 16, Un),
2592
- P(Ue, { hintId: g }, {
2593
- default: G(() => [
2594
- W(k.$slots, "hint", {}, void 0, !0)
2630
+ K(Pe, { hintId: g }, {
2631
+ default: X(() => [
2632
+ U(_.$slots, "hint", {}, void 0, !0)
2595
2633
  ]),
2596
2634
  _: 3
2597
2635
  }),
2598
- P(We, {
2599
- baseId: I(c),
2600
- isRequired: I($)
2636
+ K(Ue, {
2637
+ baseId: B(c),
2638
+ isRequired: B(M)
2601
2639
  }, null, 8, ["baseId", "isRequired"]),
2602
- P(je, {
2640
+ K(We, {
2603
2641
  errorId: d,
2604
- invalid: I(M),
2642
+ invalid: e.invalid,
2605
2643
  errorMessage: e.errorMessage
2606
2644
  }, null, 8, ["invalid", "errorMessage"])
2607
2645
  ], 2));
2608
2646
  }
2609
- }), Tl = /* @__PURE__ */ j(Wn, [["__scopeId", "data-v-d5062a27"]]), jn = { key: 0 }, Xn = { key: 1 }, Gn = /* @__PURE__ */ S({
2647
+ }), Tl = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-3615613f"]]), jn = { key: 0 }, Xn = { key: 1 }, Gn = /* @__PURE__ */ R({
2610
2648
  __name: "Highlight",
2611
2649
  props: {
2612
2650
  text: {},
@@ -2619,11 +2657,11 @@ const An = ["aria-busy"], Zn = {
2619
2657
  let o = 0;
2620
2658
  return t.replace(r, (l, c) => (c > o && i.push({ text: t.slice(o, c), match: !1 }), i.push({ text: l, match: !0 }), o = c + l.length, l)), o < t.length && i.push({ text: t.slice(o), match: !1 }), i;
2621
2659
  };
2622
- return (t, a) => (v(!0), m(ae, null, de(n(e.text, e.query), (s, r) => (v(), m(ae, { key: r }, [
2623
- s.match ? (v(), m("mark", jn, U(s.text), 1)) : (v(), m("span", Xn, U(s.text), 1))
2660
+ return (t, a) => (v(!0), f(ae, null, de(n(e.text, e.query), (s, r) => (v(), f(ae, { key: r }, [
2661
+ s.match ? (v(), f("mark", jn, P(s.text), 1)) : (v(), f("span", Xn, P(s.text), 1))
2624
2662
  ], 64))), 128));
2625
2663
  }
2626
- }), Jn = /* @__PURE__ */ j(Gn, [["__scopeId", "data-v-edfa70b3"]]);
2664
+ }), Jn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-edfa70b3"]]);
2627
2665
  process.env.NODE_ENV;
2628
2666
  process.env.NODE_ENV;
2629
2667
  process.env.NODE_ENV;
@@ -2637,50 +2675,50 @@ const Qn = {
2637
2675
  key: 0,
2638
2676
  class: "ui-breadcrumb__separator",
2639
2677
  "aria-hidden": "true"
2640
- }, ao = /* @__PURE__ */ S({
2678
+ }, ao = /* @__PURE__ */ R({
2641
2679
  __name: "Breadcrumb",
2642
2680
  props: {
2643
2681
  items: {},
2644
2682
  separator: { default: "/" }
2645
2683
  },
2646
2684
  setup(e) {
2647
- const n = e, t = se(Yn), a = (o) => o === n.items.length - 1, s = (o, l) => r(o, l), r = (o, l) => a(l) || o.disabled ? "span" : o.to && t ? pt("RouterLink") : o.href ? "a" : "span", i = (o, l) => a(l) || o.disabled ? { "data-disabled": o.disabled || void 0 } : o.to ? { to: o.to } : o.href ? {
2685
+ const n = e, t = le(Yn), a = (o) => o === n.items.length - 1, s = (o, l) => r(o, l), r = (o, l) => a(l) || o.disabled ? "span" : o.to && t ? mt("RouterLink") : o.href ? "a" : "span", i = (o, l) => a(l) || o.disabled ? { "data-disabled": o.disabled || void 0 } : o.to ? { to: o.to } : o.href ? {
2648
2686
  href: o.href,
2649
2687
  target: o.external ? "_blank" : void 0,
2650
2688
  rel: o.external ? "noopener noreferrer" : void 0,
2651
2689
  "aria-label": o.external ? `${o.label} (opens in a new tab)` : void 0
2652
2690
  } : {};
2653
- return (o, l) => (v(), m("nav", Qn, [
2691
+ return (o, l) => (v(), f("nav", Qn, [
2654
2692
  y("ol", eo, [
2655
- (v(!0), m(ae, null, de(e.items, (c, d) => (v(), m("li", {
2693
+ (v(!0), f(ae, null, de(e.items, (c, d) => (v(), f("li", {
2656
2694
  key: c.to ?? c.href ?? `${c.label}-${d}`,
2657
2695
  class: "ui-breadcrumb__item"
2658
2696
  }, [
2659
- (v(), J(Ie(s(c, d)), he({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(c, d), {
2697
+ (v(), G(Ie(s(c, d)), he({ class: "ui-breadcrumb__link" }, { ref_for: !0 }, i(c, d), {
2660
2698
  "aria-posinset": d + 1,
2661
2699
  "aria-setsize": e.items.length,
2662
2700
  "aria-current": a(d) ? "page" : void 0,
2663
2701
  tabindex: a(d) || s(c, d) === "span" ? -1 : void 0
2664
2702
  }), {
2665
- default: G(() => [
2666
- pe(U(c.label), 1)
2703
+ default: X(() => [
2704
+ pe(P(c.label), 1)
2667
2705
  ]),
2668
2706
  _: 2
2669
2707
  }, 1040, ["aria-posinset", "aria-setsize", "aria-current", "tabindex"])),
2670
- a(d) ? K("", !0) : (v(), m("span", to, [
2671
- W(o.$slots, "separator", {}, () => [
2672
- pe(U(e.separator), 1)
2708
+ a(d) ? F("", !0) : (v(), f("span", to, [
2709
+ U(o.$slots, "separator", {}, () => [
2710
+ pe(P(e.separator), 1)
2673
2711
  ], !0)
2674
2712
  ]))
2675
2713
  ]))), 128))
2676
2714
  ])
2677
2715
  ]));
2678
2716
  }
2679
- }), Al = /* @__PURE__ */ j(ao, [["__scopeId", "data-v-baed1592"]]), no = ["aria-invalid", "aria-required", "disabled"], oo = { class: "sr-only" }, lo = ["name", "value", "disabled", "required"], so = {
2717
+ }), Al = /* @__PURE__ */ W(ao, [["__scopeId", "data-v-baed1592"]]), no = ["aria-invalid", "aria-required", "disabled"], oo = { class: "sr-only" }, lo = ["name", "value", "disabled", "required"], so = {
2680
2718
  key: 0,
2681
2719
  class: "radio-control",
2682
2720
  "aria-hidden": "true"
2683
- }, ro = { class: "radio-label" }, io = /* @__PURE__ */ S({
2721
+ }, ro = { class: "radio-label" }, io = /* @__PURE__ */ R({
2684
2722
  __name: "RadioButton",
2685
2723
  props: /* @__PURE__ */ ne({
2686
2724
  name: {},
@@ -2698,15 +2736,15 @@ const Qn = {
2698
2736
  }),
2699
2737
  emits: ["update:modelValue"],
2700
2738
  setup(e) {
2701
- const n = e, t = me(e, "modelValue"), a = L(() => n.invalid ? "true" : void 0), s = L(() => n.required && !n.disabled ? "true" : void 0), r = L(() => n.disabled ? !0 : void 0);
2702
- return (i, o) => (v(), m("fieldset", {
2739
+ const n = e, t = me(e, "modelValue"), a = x(() => n.invalid ? "true" : void 0), s = x(() => n.required && !n.disabled ? "true" : void 0), r = x(() => n.disabled ? !0 : void 0);
2740
+ return (i, o) => (v(), f("fieldset", {
2703
2741
  class: re(["radio-group", { "in-column": e.inColumn, btn: e.mode === "button" }]),
2704
2742
  "aria-invalid": a.value,
2705
2743
  "aria-required": s.value,
2706
2744
  disabled: r.value
2707
2745
  }, [
2708
- y("legend", oo, U(e.name), 1),
2709
- (v(!0), m(ae, null, de(e.options, (l) => (v(), m("label", {
2746
+ y("legend", oo, P(e.name), 1),
2747
+ (v(!0), f(ae, null, de(e.options, (l) => (v(), f("label", {
2710
2748
  key: l.key,
2711
2749
  class: re(["radio", { checked: t.value === l.key, disabled: e.disabled || l.disabled }])
2712
2750
  }, [
@@ -2719,14 +2757,14 @@ const Qn = {
2719
2757
  required: e.required,
2720
2758
  "onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c)
2721
2759
  }, null, 8, lo), [
2722
- [bt, t.value]
2760
+ [pt, t.value]
2723
2761
  ]),
2724
- e.mode === "standard" ? (v(), m("span", so)) : K("", !0),
2725
- y("span", ro, U(l.label), 1)
2762
+ e.mode === "standard" ? (v(), f("span", so)) : F("", !0),
2763
+ y("span", ro, P(l.label), 1)
2726
2764
  ], 2))), 128))
2727
2765
  ], 10, no));
2728
2766
  }
2729
- }), Zl = /* @__PURE__ */ j(io, [["__scopeId", "data-v-8f76f7f0"]]), uo = ["for"], co = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled"], vo = ["id", "aria-disabled", "aria-selected", "onClick"], fo = {
2767
+ }), Zl = /* @__PURE__ */ W(io, [["__scopeId", "data-v-8f76f7f0"]]), uo = ["for"], co = ["id", "type", "aria-expanded", "aria-activedescendant", "aria-required", "aria-invalid", "disabled"], vo = ["id", "aria-disabled", "aria-selected", "onClick"], fo = {
2730
2768
  class: "option-value",
2731
2769
  "aria-hidden": "true"
2732
2770
  }, mo = { class: "option-value sr-only" }, po = {
@@ -2742,7 +2780,7 @@ const Qn = {
2742
2780
  key: 0,
2743
2781
  class: "start-icon",
2744
2782
  "aria-hidden": "true"
2745
- }, yo = /* @__PURE__ */ S({
2783
+ }, yo = /* @__PURE__ */ R({
2746
2784
  __name: "Autocomplete",
2747
2785
  props: /* @__PURE__ */ ne({
2748
2786
  id: {},
@@ -2752,6 +2790,7 @@ const Qn = {
2752
2790
  disabled: { type: Boolean, default: !1 },
2753
2791
  required: {},
2754
2792
  loading: { type: Boolean },
2793
+ invalid: { type: Boolean },
2755
2794
  minChars: { default: 1 },
2756
2795
  filterable: { type: Boolean, default: !0 },
2757
2796
  showSuggestionsOnFocus: { type: Boolean, default: !1 },
@@ -2767,32 +2806,32 @@ const Qn = {
2767
2806
  }),
2768
2807
  emits: /* @__PURE__ */ ne(["change", "select", "focus", "blur"], ["update:modelValue"]),
2769
2808
  setup(e, { emit: n }) {
2770
- const t = e, a = n, s = me(e, "modelValue"), r = p(null), i = p(null), o = p(""), l = p(!1), c = p([]), d = p(null), g = p(null), $ = L(() => t.id ? `${t.id}-search-history` : "search-history"), u = `${ie()}-list`, C = L(() => d.value !== null ? `${u}-option-${d.value}` : void 0), H = L(() => l.value && C.value ? C.value : void 0), R = L(() => c.value.length > 0), k = L(() => {
2809
+ const t = e, a = n, s = me(e, "modelValue"), r = m(null), i = m(null), o = m(""), l = m(!1), c = m([]), d = m(null), g = m(null), M = x(() => t.id ? `${t.id}-search-history` : "search-history"), u = `${ie()}-list`, C = x(() => d.value !== null ? `${u}-option-${d.value}` : void 0), I = x(() => l.value && C.value ? C.value : void 0), _ = x(() => c.value.length > 0), k = x(() => {
2771
2810
  if (!t.filterable) return t.options;
2772
- const x = o.value.toLowerCase();
2773
- return t.options.filter((O) => t.getValue(O).toLowerCase().includes(x));
2774
- }), D = Ve(t).value, Z = st(t).value, f = Be(t).value;
2811
+ const V = o.value.toLowerCase();
2812
+ return t.options.filter((O) => t.getValue(O).toLowerCase().includes(V));
2813
+ }), D = lt(t).value, E = Re(t).value;
2775
2814
  Y(o, () => we(r.value, i.value)), Y(
2776
- () => $.value,
2777
- (x) => {
2778
- if (x)
2815
+ () => M.value,
2816
+ (V) => {
2817
+ if (V)
2779
2818
  try {
2780
- c.value = JSON.parse(localStorage.getItem(x) || "[]");
2819
+ c.value = JSON.parse(localStorage.getItem(V) || "[]");
2781
2820
  } catch {
2782
2821
  c.value = [];
2783
2822
  }
2784
2823
  },
2785
2824
  { immediate: !0 }
2786
- ), Y(l, async (x) => {
2787
- if (!x) {
2825
+ ), Y(l, async (V) => {
2826
+ if (!V) {
2788
2827
  d.value = null;
2789
2828
  return;
2790
2829
  }
2791
- k.value.length !== 0 && (await Me(), A());
2830
+ k.value.length !== 0 && (await Me(), T());
2792
2831
  }), Y(
2793
2832
  () => t.loading,
2794
- async (x) => {
2795
- x || l.value && k.value.length !== 0 && (await Me(), A());
2833
+ async (V) => {
2834
+ V || l.value && k.value.length !== 0 && (await Me(), T());
2796
2835
  }
2797
2836
  ), Y(
2798
2837
  () => t.options,
@@ -2800,181 +2839,181 @@ const Qn = {
2800
2839
  g.value = null;
2801
2840
  }
2802
2841
  );
2803
- const w = (x) => {
2804
- o.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), Ke(x, i.value, a);
2805
- }, _ = (x) => {
2806
- const O = x.relatedTarget;
2807
- i.value?.contains(O) || (l.value = !1, s.value ? h() : o.value = "", Pe(x, r.value, i.value, a));
2808
- }, N = (x, O) => {
2809
- const B = i.value;
2810
- if (!B || t.isDisabled(x)) return;
2811
- l.value = !1, X(o.value), g.value = O, d.value = O;
2812
- const q = t.getKey(x);
2813
- q && q.toString().length > 0 ? B.classList.add("filled") : B.classList.remove("filled"), o.value = t.getValue(x), s.value = q, a("select", q);
2814
- }, T = (x) => {
2815
- if (!l.value && ["ArrowDown", "ArrowUp"].includes(x.key)) {
2816
- l.value = !0, d.value = d.value ?? k.value.findIndex((O) => !t.isDisabled(O)), x.preventDefault();
2842
+ const p = (V) => {
2843
+ o.value.length >= t.minChars && !t.filterable && !t.loading && (l.value = !0), Fe(V, i.value, a);
2844
+ }, $ = (V) => {
2845
+ const O = V.relatedTarget;
2846
+ i.value?.contains(O) || (l.value = !1, s.value ? b() : o.value = "", Ke(V, r.value, i.value, a));
2847
+ }, H = (V, O) => {
2848
+ const Q = i.value;
2849
+ if (!Q || t.isDisabled(V)) return;
2850
+ l.value = !1, Z(o.value), g.value = O, d.value = O;
2851
+ const A = t.getKey(V);
2852
+ A && A.toString().length > 0 ? Q.classList.add("filled") : Q.classList.remove("filled"), o.value = t.getValue(V), s.value = A, a("select", A);
2853
+ }, q = (V) => {
2854
+ if (!l.value && ["ArrowDown", "ArrowUp"].includes(V.key)) {
2855
+ l.value = !0, d.value = d.value ?? k.value.findIndex((O) => !t.isDisabled(O)), V.preventDefault();
2817
2856
  return;
2818
2857
  }
2819
2858
  if (l.value) {
2820
- if (x.key === "ArrowDown" && (z(1), x.preventDefault()), x.key === "ArrowUp" && (z(-1), x.preventDefault()), x.key === "Home") {
2821
- const O = Q();
2822
- O >= 0 && (d.value = O), x.preventDefault();
2859
+ if (V.key === "ArrowDown" && (S(1), V.preventDefault()), V.key === "ArrowUp" && (S(-1), V.preventDefault()), V.key === "Home") {
2860
+ const O = J();
2861
+ O >= 0 && (d.value = O), V.preventDefault();
2823
2862
  }
2824
- if (x.key === "End") {
2825
- const O = fe();
2826
- O >= 0 && (d.value = O), x.preventDefault();
2863
+ if (V.key === "End") {
2864
+ const O = ce();
2865
+ O >= 0 && (d.value = O), V.preventDefault();
2827
2866
  }
2828
- if (x.key === "Enter") {
2867
+ if (V.key === "Enter") {
2829
2868
  if (d.value === null) return;
2830
2869
  const O = k.value[d.value];
2831
2870
  if (!O || t.isDisabled(O)) return;
2832
- N(O, d.value), l.value = !1, x.preventDefault();
2871
+ H(O, d.value), l.value = !1, V.preventDefault();
2833
2872
  }
2834
- x.key === "Escape" && (l.value = !1);
2873
+ V.key === "Escape" && (l.value = !1);
2835
2874
  }
2836
- }, z = (x) => {
2875
+ }, S = (V) => {
2837
2876
  if (d.value === null) return;
2838
2877
  let O = d.value;
2839
2878
  do
2840
- O += x;
2879
+ O += V;
2841
2880
  while (O >= 0 && O < k.value.length && t.isDisabled(k.value[O]));
2842
2881
  O >= 0 && O < k.value.length && (d.value = O);
2843
- }, b = () => {
2882
+ }, N = () => {
2844
2883
  o.value.length === 0 && (s.value = ""), we(r.value, i.value), o.value.length >= t.minChars ? (a("change", o.value), l.value = !0) : l.value = !1;
2845
- }, h = () => {
2884
+ }, b = () => {
2846
2885
  if (s.value.toString().length === 0 || !t.options || t.options.length === 0) return;
2847
- const x = t.options.findIndex((O) => t.getKey(O) === s.value);
2848
- x > -1 && (d.value = x, g.value = x, o.value = t.getValue(t.options[x]), we(r.value, i.value));
2849
- }, E = () => {
2886
+ const V = t.options.findIndex((O) => t.getKey(O) === s.value);
2887
+ V > -1 && (d.value = V, g.value = V, o.value = t.getValue(t.options[V]), we(r.value, i.value));
2888
+ }, h = () => {
2850
2889
  o.value = "", s.value = "";
2851
- }, X = (x) => {
2852
- !x || x.trim().length === 0 || (c.value = [
2853
- x,
2854
- ...c.value.filter((O) => O !== x)
2855
- ].slice(0, t.suggestionsLimit), localStorage.setItem($.value, JSON.stringify(c.value)));
2856
- }, V = (x) => {
2857
- o.value = x, b();
2858
- }, A = () => {
2859
- const x = Q();
2860
- x >= 0 && (d.value = x);
2861
- }, Q = () => k.value.findIndex((x) => !t.isDisabled(x)), fe = () => {
2862
- for (let x = k.value.length - 1; x >= 0; x--) if (!t.isDisabled(k.value[x])) return x;
2890
+ }, Z = (V) => {
2891
+ !V || V.trim().length === 0 || (c.value = [
2892
+ V,
2893
+ ...c.value.filter((O) => O !== V)
2894
+ ].slice(0, t.suggestionsLimit), localStorage.setItem(M.value, JSON.stringify(c.value)));
2895
+ }, w = (V) => {
2896
+ o.value = V, N();
2897
+ }, T = () => {
2898
+ const V = J();
2899
+ V >= 0 && (d.value = V);
2900
+ }, J = () => k.value.findIndex((V) => !t.isDisabled(V)), ce = () => {
2901
+ for (let V = k.value.length - 1; V >= 0; V--) if (!t.isDisabled(k.value[V])) return V;
2863
2902
  return -1;
2864
2903
  };
2865
2904
  return te(() => {
2866
- h(), we(r.value, i.value);
2867
- }), (x, O) => (v(), m("div", {
2868
- class: re(["autocomplete", { required: I(f), error: I(D), "has-icon": Object.keys(x.$slots).includes("icon") }]),
2905
+ b(), we(r.value, i.value);
2906
+ }), (V, O) => (v(), f("div", {
2907
+ class: re(["autocomplete", { required: B(E), error: e.invalid, "has-icon": Object.keys(V.$slots).includes("icon") }]),
2869
2908
  ref_key: "autocompleteRef",
2870
2909
  ref: i
2871
2910
  }, [
2872
2911
  y("label", {
2873
2912
  for: e.id,
2874
2913
  class: "label"
2875
- }, U(e.label), 9, uo),
2914
+ }, P(e.label), 9, uo),
2876
2915
  He(y("input", he({
2877
2916
  id: e.id,
2878
2917
  type: e.type
2879
- }, x.$attrs, {
2918
+ }, V.$attrs, {
2880
2919
  ref_key: "inputRef",
2881
2920
  ref: r,
2882
2921
  role: "combobox",
2883
2922
  "aria-autocomplete": "list",
2884
2923
  "aria-expanded": l.value,
2885
2924
  "aria-controls": u,
2886
- "aria-activedescendant": H.value,
2887
- "aria-required": I(f),
2888
- "aria-invalid": I(D),
2889
- disabled: I(Z),
2890
- "onUpdate:modelValue": O[0] || (O[0] = (B) => o.value = B),
2891
- onFocus: w,
2892
- onBlur: _,
2893
- onInput: b,
2894
- onKeydown: T
2925
+ "aria-activedescendant": I.value,
2926
+ "aria-required": B(E),
2927
+ "aria-invalid": e.invalid ? "true" : void 0,
2928
+ disabled: B(D),
2929
+ "onUpdate:modelValue": O[0] || (O[0] = (Q) => o.value = Q),
2930
+ onFocus: p,
2931
+ onBlur: $,
2932
+ onInput: N,
2933
+ onKeydown: q
2895
2934
  }), null, 16, co), [
2896
- [gt, o.value]
2935
+ [bt, o.value]
2897
2936
  ]),
2898
- P(xe, { name: "select" }, {
2899
- default: G(() => [
2937
+ K(xe, { name: "select" }, {
2938
+ default: X(() => [
2900
2939
  He(y("ul", {
2901
2940
  id: u,
2902
2941
  role: "listbox",
2903
2942
  class: "options"
2904
2943
  }, [
2905
- k.value.length > 0 ? (v(!0), m(ae, { key: 0 }, de(k.value, (B, q) => (v(), m("li", {
2906
- id: `${u}-option-${q}`,
2907
- key: e.getKey(B),
2944
+ k.value.length > 0 ? (v(!0), f(ae, { key: 0 }, de(k.value, (Q, A) => (v(), f("li", {
2945
+ id: `${u}-option-${A}`,
2946
+ key: e.getKey(Q),
2908
2947
  role: "option",
2909
- class: re(["option", { "focus-visible": d.value === q }]),
2910
- "aria-disabled": t.isDisabled(B) || void 0,
2911
- "aria-selected": q === g.value,
2912
- onMousedown: O[1] || (O[1] = le(() => {
2948
+ class: re(["option", { "focus-visible": d.value === A }]),
2949
+ "aria-disabled": t.isDisabled(Q) || void 0,
2950
+ "aria-selected": A === g.value,
2951
+ onMousedown: O[1] || (O[1] = oe(() => {
2913
2952
  }, ["prevent"])),
2914
- onClick: (oe) => !t.isDisabled(B) && N(B, q)
2953
+ onClick: (j) => !t.isDisabled(Q) && H(Q, A)
2915
2954
  }, [
2916
- t.isDisabled(B) ? K("", !0) : (v(), J(ue, {
2955
+ t.isDisabled(Q) ? F("", !0) : (v(), G(ue, {
2917
2956
  key: 0,
2918
2957
  name: "search",
2919
2958
  size: 22
2920
2959
  })),
2921
- W(x.$slots, "option", {
2922
- option: B,
2923
- value: e.getValue(B),
2960
+ U(V.$slots, "option", {
2961
+ option: Q,
2962
+ value: e.getValue(Q),
2924
2963
  query: o.value,
2925
- selected: q === g.value,
2926
- active: q === d.value
2964
+ selected: A === g.value,
2965
+ active: A === d.value
2927
2966
  }, () => [
2928
2967
  y("div", fo, [
2929
- P(Jn, {
2930
- text: e.getValue(B),
2968
+ K(Jn, {
2969
+ text: e.getValue(Q),
2931
2970
  query: o.value
2932
2971
  }, null, 8, ["text", "query"])
2933
2972
  ])
2934
2973
  ], !0),
2935
- y("div", mo, U(e.getValue(B)), 1)
2936
- ], 42, vo))), 128)) : k.value.length === 0 && !e.loading ? (v(), m("li", po, [...O[3] || (O[3] = [
2974
+ y("div", mo, P(e.getValue(Q)), 1)
2975
+ ], 42, vo))), 128)) : k.value.length === 0 && !e.loading ? (v(), f("li", po, [...O[3] || (O[3] = [
2937
2976
  y("div", { class: "option-value" }, "No results found", -1)
2938
- ])])) : (v(), J(mt, {
2977
+ ])])) : (v(), G(ft, {
2939
2978
  key: 2,
2940
2979
  "aria-live": "polite",
2941
2980
  role: "status",
2942
2981
  message: "Loading"
2943
2982
  })),
2944
- R.value ? (v(), m("li", bo, [...O[4] || (O[4] = [
2983
+ _.value ? (v(), f("li", bo, [...O[4] || (O[4] = [
2945
2984
  y("div", { class: "option-value" }, " Recents ", -1)
2946
- ])])) : K("", !0),
2947
- (v(!0), m(ae, null, de(c.value, (B) => (v(), m("li", {
2948
- key: B,
2985
+ ])])) : F("", !0),
2986
+ (v(!0), f(ae, null, de(c.value, (Q) => (v(), f("li", {
2987
+ key: Q,
2949
2988
  role: "presentation",
2950
2989
  "aria-hidden": "true",
2951
2990
  class: "option recent-item",
2952
- onClick: (q) => V(B)
2991
+ onClick: (A) => w(Q)
2953
2992
  }, [
2954
- P(ue, { name: "clock" }),
2955
- y("div", Co, U(B), 1)
2993
+ K(ue, { name: "clock" }),
2994
+ y("div", Co, P(Q), 1)
2956
2995
  ], 8, go))), 128))
2957
2996
  ], 512), [
2958
- [qe, l.value]
2997
+ [Oe, l.value]
2959
2998
  ])
2960
2999
  ]),
2961
3000
  _: 3
2962
3001
  }),
2963
- x.$slots.icon ? (v(), m("span", ho, [
2964
- W(x.$slots, "icon", {}, void 0, !0)
2965
- ])) : K("", !0),
2966
- o.value.length > 0 ? (v(), J(be, {
3002
+ V.$slots.icon ? (v(), f("span", ho, [
3003
+ U(V.$slots, "icon", {}, void 0, !0)
3004
+ ])) : F("", !0),
3005
+ o.value.length > 0 ? (v(), G(be, {
2967
3006
  key: 1,
2968
3007
  type: "button",
2969
3008
  class: "btn btn-icon",
2970
3009
  "aria-label": "Clear search query",
2971
3010
  title: "Clear search query",
2972
- onMousedown: O[2] || (O[2] = le(() => {
3011
+ onMousedown: O[2] || (O[2] = oe(() => {
2973
3012
  }, ["prevent"])),
2974
- onClick: E
3013
+ onClick: h
2975
3014
  }, {
2976
- default: G(() => [
2977
- P(ue, {
3015
+ default: X(() => [
3016
+ K(ue, {
2978
3017
  class: "clear-search",
2979
3018
  "aria-hidden": "true",
2980
3019
  name: "close",
@@ -2982,10 +3021,10 @@ const Qn = {
2982
3021
  })
2983
3022
  ]),
2984
3023
  _: 1
2985
- })) : K("", !0)
3024
+ })) : F("", !0)
2986
3025
  ], 2));
2987
3026
  }
2988
- }), El = /* @__PURE__ */ j(yo, [["__scopeId", "data-v-7fffa12c"]]), ko = 5, ce = ot({
3027
+ }), El = /* @__PURE__ */ W(yo, [["__scopeId", "data-v-aefb7615"]]), ko = 5, ve = nt({
2989
3028
  toasts: []
2990
3029
  });
2991
3030
  let wo = 0;
@@ -2996,8 +3035,8 @@ const Le = (e, n = "info") => {
2996
3035
  ...typeof e == "string" ? { description: e } : e,
2997
3036
  variant: n
2998
3037
  };
2999
- return ce.toasts.push(t), ce.toasts.length > ko && ce.toasts.shift(), t.id;
3000
- }, Lo = (e, n) => ce.toasts = ce.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t), Dl = Object.assign(
3038
+ return ve.toasts.push(t), ve.toasts.length > ko && ve.toasts.shift(), t.id;
3039
+ }, Lo = (e, n) => ve.toasts = ve.toasts.map((t) => t.id === e ? { ...t, ...n, loading: !1 } : t), Dl = Object.assign(
3001
3040
  (e) => Le(e),
3002
3041
  {
3003
3042
  update: Lo,
@@ -3006,16 +3045,16 @@ const Le = (e, n = "info") => {
3006
3045
  info: (e) => Le(e, "info"),
3007
3046
  warning: (e) => Le(e, "warning"),
3008
3047
  loading: (e) => Le({ description: e, loading: !0, variant: "info", duration: 1 / 0 }),
3009
- dismiss: (e) => ce.toasts = ce.toasts.filter((n) => n.id !== e),
3048
+ dismiss: (e) => ve.toasts = ve.toasts.filter((n) => n.id !== e),
3010
3049
  promise(e, n) {
3011
3050
  const t = Le({ loading: !0, description: n.loading, duration: 1 / 0 });
3012
- return e.then(() => ce.toasts = ce.toasts.map((a) => a.id === t ? { ...a, description: n.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => ce.toasts = ce.toasts.map((a) => a.id === t ? { ...a, description: n.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
3051
+ return e.then(() => ve.toasts = ve.toasts.map((a) => a.id === t ? { ...a, description: n.success, duration: 3e3, variant: "success", loading: !1 } : a)).catch(() => ve.toasts = ve.toasts.map((a) => a.id === t ? { ...a, description: n.error, duration: 5e3, variant: "error", loading: !1 } : a)), e;
3013
3052
  }
3014
3053
  }
3015
3054
  ), Mo = ["data-variant", "data-state", "role", "aria-describedby"], $o = { class: "content" }, xo = {
3016
3055
  key: 0,
3017
3056
  class: "progress"
3018
- }, Io = 160, Ho = /* @__PURE__ */ S({
3057
+ }, Io = 160, Ho = /* @__PURE__ */ R({
3019
3058
  __name: "ToastRoot",
3020
3059
  props: {
3021
3060
  id: {},
@@ -3025,7 +3064,7 @@ const Le = (e, n = "info") => {
3025
3064
  focus: { type: Boolean }
3026
3065
  },
3027
3066
  setup(e) {
3028
- const n = e, t = p(null), a = p("open"), s = p(100);
3067
+ const n = e, t = m(null), a = m("open"), s = m(100);
3029
3068
  let r = Date.now(), i;
3030
3069
  const o = () => {
3031
3070
  const d = Date.now() - r;
@@ -3047,9 +3086,9 @@ const Le = (e, n = "info") => {
3047
3086
  { immediate: !0 }
3048
3087
  );
3049
3088
  const c = () => {
3050
- cancelAnimationFrame(i), a.value = "closing", setTimeout(() => ce.toasts = ce.toasts.filter((d) => d.id !== n.id), Io);
3089
+ cancelAnimationFrame(i), a.value = "closing", setTimeout(() => ve.toasts = ve.toasts.filter((d) => d.id !== n.id), Io);
3051
3090
  };
3052
- return te(() => n.variant === "error" && n.focus && t.value?.focus()), _e(() => cancelAnimationFrame(i)), (d, g) => (v(), m("div", {
3091
+ return te(() => n.variant === "error" && n.focus && t.value?.focus()), Ve(() => cancelAnimationFrame(i)), (d, g) => (v(), f("div", {
3053
3092
  ref_key: "rootRef",
3054
3093
  ref: t,
3055
3094
  tabindex: "-1",
@@ -3062,15 +3101,15 @@ const Le = (e, n = "info") => {
3062
3101
  "aria-describedby": e.loading ? void 0 : `toast-desc-${e.id}`
3063
3102
  }, [
3064
3103
  y("div", $o, [
3065
- W(d.$slots, "default", {}, void 0, !0),
3066
- P(be, {
3104
+ U(d.$slots, "default", {}, void 0, !0),
3105
+ K(be, {
3067
3106
  type: "button",
3068
3107
  onClick: c,
3069
3108
  "aria-label": `Close ${e.variant} notification`,
3070
3109
  class: "btn-sm"
3071
3110
  }, {
3072
- default: G(() => [
3073
- P(ue, {
3111
+ default: X(() => [
3112
+ K(ue, {
3074
3113
  name: "close",
3075
3114
  size: 32
3076
3115
  })
@@ -3078,39 +3117,39 @@ const Le = (e, n = "info") => {
3078
3117
  _: 1
3079
3118
  }, 8, ["aria-label"])
3080
3119
  ]),
3081
- e.duration !== 1 / 0 ? (v(), m("div", xo, [
3120
+ e.duration !== 1 / 0 ? (v(), f("div", xo, [
3082
3121
  y("div", {
3083
3122
  class: "bar",
3084
3123
  style: ge({ width: s.value + "%" })
3085
3124
  }, null, 4)
3086
- ])) : K("", !0)
3125
+ ])) : F("", !0)
3087
3126
  ], 8, Mo));
3088
3127
  }
3089
- }), Vo = /* @__PURE__ */ j(Ho, [["__scopeId", "data-v-f9e75b9d"]]), _o = { class: "toast-viewport" }, Ro = { class: "toast-message" }, Bo = { key: 0 }, So = ["id"], To = /* @__PURE__ */ S({
3128
+ }), Vo = /* @__PURE__ */ W(Ho, [["__scopeId", "data-v-f9e75b9d"]]), _o = { class: "toast-viewport" }, Ro = { class: "toast-message" }, Bo = { key: 0 }, So = ["id"], To = /* @__PURE__ */ R({
3090
3129
  __name: "ToastViewport",
3091
3130
  setup(e) {
3092
- return (n, t) => (v(), J(Re, { to: "body" }, [
3131
+ return (n, t) => (v(), G(_e, { to: "body" }, [
3093
3132
  y("div", _o, [
3094
- P(Ct, { name: "toast-stack" }, {
3095
- default: G(() => [
3096
- (v(!0), m(ae, null, de(I(ce).toasts, (a) => (v(), J(Vo, {
3133
+ K(gt, { name: "toast-stack" }, {
3134
+ default: X(() => [
3135
+ (v(!0), f(ae, null, de(B(ve).toasts, (a) => (v(), G(Vo, {
3097
3136
  key: a.id,
3098
3137
  id: a.id,
3099
3138
  duration: a.duration,
3100
3139
  variant: a.variant,
3101
3140
  loading: a.loading
3102
3141
  }, {
3103
- default: G(() => [
3142
+ default: X(() => [
3104
3143
  y("div", Ro, [
3105
- a.title ? (v(), m("strong", Bo, U(a.title), 1)) : K("", !0),
3106
- a.loading ? (v(), J(mt, {
3144
+ a.title ? (v(), f("strong", Bo, P(a.title), 1)) : F("", !0),
3145
+ a.loading ? (v(), G(ft, {
3107
3146
  key: 1,
3108
3147
  message: a.description,
3109
3148
  "aria-hidden": "true"
3110
- }, null, 8, ["message"])) : (v(), m("p", {
3149
+ }, null, 8, ["message"])) : (v(), f("p", {
3111
3150
  key: 2,
3112
3151
  id: `toast-desc-${a.id}`
3113
- }, U(a.description), 9, So))
3152
+ }, P(a.description), 9, So))
3114
3153
  ])
3115
3154
  ]),
3116
3155
  _: 2
@@ -3121,18 +3160,18 @@ const Le = (e, n = "info") => {
3121
3160
  ])
3122
3161
  ]));
3123
3162
  }
3124
- }), at = /* @__PURE__ */ j(To, [["__scopeId", "data-v-afe47f2a"]]);
3125
- let nt = !1;
3163
+ }), tt = /* @__PURE__ */ W(To, [["__scopeId", "data-v-afe47f2a"]]);
3164
+ let at = !1;
3126
3165
  const Ol = {
3127
3166
  install(e, n = {}) {
3128
3167
  const { autoMount: t = !0 } = n;
3129
- if (e.component("ToastViewport", at), t && !nt && typeof window < "u") {
3130
- nt = !0;
3168
+ if (e.component("ToastViewport", tt), t && !at && typeof window < "u") {
3169
+ at = !0;
3131
3170
  const a = document.createElement("div");
3132
- a.setAttribute("data-toast-host", ""), document.body.appendChild(a), ht(at).mount(a);
3171
+ a.setAttribute("data-toast-host", ""), document.body.appendChild(a), Ct(tt).mount(a);
3133
3172
  }
3134
3173
  }
3135
- }, Ao = /* @__PURE__ */ S({
3174
+ }, Ao = /* @__PURE__ */ R({
3136
3175
  __name: "Card",
3137
3176
  props: {
3138
3177
  as: { default: "div" },
@@ -3140,69 +3179,69 @@ const Ol = {
3140
3179
  },
3141
3180
  emits: ["click"],
3142
3181
  setup(e, { emit: n }) {
3143
- const t = e, a = n, s = p(), r = p();
3182
+ const t = e, a = n, s = m(), r = m();
3144
3183
  Ce("card:labelId", s), Ce("card:descriptionId", r);
3145
- const i = L(() => t.clickable && t.as !== "button" && t.as !== "a"), o = () => t.clickable && a("click");
3146
- return (l, c) => (v(), J(Ie(e.as), {
3184
+ const i = x(() => t.clickable && t.as !== "button" && t.as !== "a"), o = () => t.clickable && a("click");
3185
+ return (l, c) => (v(), G(Ie(e.as), {
3147
3186
  class: re(["rs-card", { clickable: e.clickable }]),
3148
3187
  tabindex: i.value ? 0 : void 0,
3149
3188
  role: i.value ? "button" : void 0,
3150
3189
  onClick: o,
3151
3190
  onKeydown: [
3152
- c[0] || (c[0] = ve(le((d) => i.value && o(), ["prevent"]), ["enter"])),
3153
- c[1] || (c[1] = ve(le((d) => i.value && o(), ["prevent"]), ["space"]))
3191
+ c[0] || (c[0] = fe(oe((d) => i.value && o(), ["prevent"]), ["enter"])),
3192
+ c[1] || (c[1] = fe(oe((d) => i.value && o(), ["prevent"]), ["space"]))
3154
3193
  ],
3155
3194
  "aria-labelledby": s.value,
3156
3195
  "aria-describedby": r.value
3157
3196
  }, {
3158
- default: G(() => [
3159
- W(l.$slots, "default", {}, void 0, !0)
3197
+ default: X(() => [
3198
+ U(l.$slots, "default", {}, void 0, !0)
3160
3199
  ]),
3161
3200
  _: 3
3162
3201
  }, 40, ["class", "tabindex", "role", "aria-labelledby", "aria-describedby"]));
3163
3202
  }
3164
- }), ql = /* @__PURE__ */ j(Ao, [["__scopeId", "data-v-e892a9f2"]]), Zo = /* @__PURE__ */ S({
3203
+ }), ql = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-e892a9f2"]]), Zo = /* @__PURE__ */ R({
3165
3204
  __name: "CardHeader",
3166
3205
  props: {
3167
3206
  as: { default: "div" }
3168
3207
  },
3169
3208
  setup(e) {
3170
- const n = se("card:labelId", void 0), t = `rs-card-label-${ie()}`;
3171
- return te(() => n && (n.value = t)), (a, s) => (v(), J(Ie(e.as), {
3209
+ const n = le("card:labelId", void 0), t = `rs-card-label-${ie()}`;
3210
+ return te(() => n && (n.value = t)), (a, s) => (v(), G(Ie(e.as), {
3172
3211
  id: t,
3173
3212
  class: "rs-card-header"
3174
3213
  }, {
3175
- default: G(() => [
3176
- W(a.$slots, "default", {}, void 0, !0)
3214
+ default: X(() => [
3215
+ U(a.$slots, "default", {}, void 0, !0)
3177
3216
  ]),
3178
3217
  _: 3
3179
3218
  }));
3180
3219
  }
3181
- }), Nl = /* @__PURE__ */ j(Zo, [["__scopeId", "data-v-570794b4"]]), Eo = /* @__PURE__ */ S({
3220
+ }), Nl = /* @__PURE__ */ W(Zo, [["__scopeId", "data-v-570794b4"]]), Eo = /* @__PURE__ */ R({
3182
3221
  __name: "CardBody",
3183
3222
  setup(e) {
3184
- const n = se("card:descriptionId", void 0), t = `rs-card-desc-${ie()}`;
3185
- return te(() => n && (n.value = t)), (a, s) => (v(), m("div", {
3223
+ const n = le("card:descriptionId", void 0), t = `rs-card-desc-${ie()}`;
3224
+ return te(() => n && (n.value = t)), (a, s) => (v(), f("div", {
3186
3225
  id: t,
3187
3226
  class: "rs-card-body"
3188
3227
  }, [
3189
- W(a.$slots, "default", {}, void 0, !0)
3228
+ U(a.$slots, "default", {}, void 0, !0)
3190
3229
  ]));
3191
3230
  }
3192
- }), zl = /* @__PURE__ */ j(Eo, [["__scopeId", "data-v-f0380fda"]]), Do = /* @__PURE__ */ S({
3231
+ }), zl = /* @__PURE__ */ W(Eo, [["__scopeId", "data-v-f0380fda"]]), Do = /* @__PURE__ */ R({
3193
3232
  __name: "CardFooter",
3194
3233
  props: {
3195
3234
  as: { default: "div" }
3196
3235
  },
3197
3236
  setup(e) {
3198
- return (n, t) => (v(), J(Ie(e.as), { class: "rs-card-footer" }, {
3199
- default: G(() => [
3200
- W(n.$slots, "default", {}, void 0, !0)
3237
+ return (n, t) => (v(), G(Ie(e.as), { class: "rs-card-footer" }, {
3238
+ default: X(() => [
3239
+ U(n.$slots, "default", {}, void 0, !0)
3201
3240
  ]),
3202
3241
  _: 3
3203
3242
  }));
3204
3243
  }
3205
- }), Fl = /* @__PURE__ */ j(Do, [["__scopeId", "data-v-9b223473"]]), Oo = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], qo = {
3244
+ }), Fl = /* @__PURE__ */ W(Do, [["__scopeId", "data-v-9b223473"]]), Oo = ["data-status", "data-orientation", "data-active", "data-completed", "aria-labelledby", "tabindex", "aria-current", "aria-posinset", "aria-setsize", "aria-describedby"], qo = {
3206
3245
  key: 2,
3207
3246
  class: "icon",
3208
3247
  "aria-hidden": "true",
@@ -3218,7 +3257,7 @@ const Ol = {
3218
3257
  }, Fo = ["id"], Ko = { class: "addons" }, Po = ["id"], Uo = {
3219
3258
  key: 0,
3220
3259
  class: "slot-default"
3221
- }, Wo = /* @__PURE__ */ S({
3260
+ }, Wo = /* @__PURE__ */ R({
3222
3261
  __name: "Step",
3223
3262
  props: {
3224
3263
  title: {},
@@ -3227,13 +3266,13 @@ const Ol = {
3227
3266
  size: {}
3228
3267
  },
3229
3268
  setup(e) {
3230
- const n = e, t = se("StepsContext");
3269
+ const n = e, t = le("StepsContext");
3231
3270
  if (!t) throw new Error("Step component must be used inside Steps.");
3232
- const a = ze(), s = p(null), r = p(null), i = L(() => t.orientation ?? "horizontal");
3271
+ const a = Ne(), s = m(null), r = m(null), i = x(() => t.orientation ?? "horizontal");
3233
3272
  let o = null, l = null;
3234
- const c = se("StepIndex");
3273
+ const c = le("StepIndex");
3235
3274
  if (c == null) throw new Error("StepIndex component must be used inside Steps.");
3236
- const d = L(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), g = L(() => t?.icons?.[d.value]), $ = L(() => a.icon ? "slot" : n.icon ? n.icon : g.value), M = L(() => {
3275
+ const d = x(() => n.status ? n.status : c < t.current.value ? "completed" : c === t.current.value ? "active" : "pending"), g = x(() => t?.icons?.[d.value]), M = x(() => a.icon ? "slot" : n.icon ? n.icon : g.value), L = x(() => {
3237
3276
  switch (d.value) {
3238
3277
  case "completed":
3239
3278
  return "Stage completed";
@@ -3244,7 +3283,7 @@ const Ol = {
3244
3283
  default:
3245
3284
  return "Stage pending";
3246
3285
  }
3247
- }), u = L(() => {
3286
+ }), u = x(() => {
3248
3287
  switch (d.value) {
3249
3288
  case "completed":
3250
3289
  return "success";
@@ -3255,7 +3294,7 @@ const Ol = {
3255
3294
  default:
3256
3295
  return "default";
3257
3296
  }
3258
- }), C = L(() => n.size ?? t.size ?? "sm"), H = L(() => {
3297
+ }), C = x(() => n.size ?? t.size ?? "sm"), I = x(() => {
3259
3298
  switch (d.value) {
3260
3299
  case "completed":
3261
3300
  return "Completed";
@@ -3269,31 +3308,31 @@ const Ol = {
3269
3308
  });
3270
3309
  Y(
3271
3310
  () => d.value,
3272
- (Z) => t.registerStepStatus(c, Z),
3311
+ (E) => t.registerStepStatus(c, E),
3273
3312
  { immediate: !0 }
3274
3313
  );
3275
- const R = () => {
3314
+ const _ = () => {
3276
3315
  o == null && (o = requestAnimationFrame(() => {
3277
3316
  o = null, k();
3278
3317
  }));
3279
3318
  }, k = () => {
3280
3319
  if (!s.value || !r.value) return;
3281
- const Z = r.value.getBoundingClientRect(), f = t.stepsRef.value.getBoundingClientRect(), w = t.orientation === "vertical" ? Z.top + Z.height / 2 - f.top : Z.left + Z.width / 2 - f.left;
3282
- t.registerIndicatorCenter(c, w);
3283
- }, D = (Z) => {
3284
- const f = t.orientation === "horizontal", w = t.orientation === "vertical";
3285
- switch (Z.key) {
3320
+ const E = r.value.getBoundingClientRect(), p = t.stepsRef.value.getBoundingClientRect(), $ = t.orientation === "vertical" ? E.top + E.height / 2 - p.top : E.left + E.width / 2 - p.left;
3321
+ t.registerIndicatorCenter(c, $);
3322
+ }, D = (E) => {
3323
+ const p = t.orientation === "horizontal", $ = t.orientation === "vertical";
3324
+ switch (E.key) {
3286
3325
  case "ArrowRight":
3287
- f && t.focusNext();
3326
+ p && t.focusNext();
3288
3327
  break;
3289
3328
  case "ArrowLeft":
3290
- f && t.focusPrev();
3329
+ p && t.focusPrev();
3291
3330
  break;
3292
3331
  case "ArrowDown":
3293
- w && t.focusNext();
3332
+ $ && t.focusNext();
3294
3333
  break;
3295
3334
  case "ArrowUp":
3296
- w && t.focusPrev();
3335
+ $ && t.focusPrev();
3297
3336
  break;
3298
3337
  case "Home":
3299
3338
  t.focusFirst();
@@ -3304,17 +3343,17 @@ const Ol = {
3304
3343
  default:
3305
3344
  return;
3306
3345
  }
3307
- Z.preventDefault();
3346
+ E.preventDefault();
3308
3347
  };
3309
3348
  return te(() => {
3310
3349
  !s.value || !r.value || (requestAnimationFrame(() => {
3311
3350
  requestAnimationFrame(k);
3312
3351
  }), l = new ResizeObserver(() => {
3313
- R();
3352
+ _();
3314
3353
  }), l.observe(s.value), l.observe(r.value), t.stepsRef.value && l.observe(t.stepsRef.value), t.registerStep(s.value));
3315
3354
  }), ye(() => {
3316
3355
  l?.disconnect(), t.unregisterStep(s.value), o != null && cancelAnimationFrame(o);
3317
- }), (Z, f) => (v(), m("li", {
3356
+ }), (E, p) => (v(), f("li", {
3318
3357
  ref_key: "stepRef",
3319
3358
  ref: s,
3320
3359
  class: re(["step", `step__${C.value}`]),
@@ -3323,12 +3362,12 @@ const Ol = {
3323
3362
  "data-orientation": i.value,
3324
3363
  "data-active": d.value === "active",
3325
3364
  "data-completed": d.value === "completed",
3326
- "aria-labelledby": `step-title-${I(c)}`,
3365
+ "aria-labelledby": `step-title-${B(c)}`,
3327
3366
  tabindex: d.value === "active" ? 0 : -1,
3328
3367
  "aria-current": d.value === "active" ? "step" : void 0,
3329
- "aria-posinset": I(c) + 1,
3330
- "aria-setsize": I(t).stepsCount.value,
3331
- "aria-describedby": `step-status-${I(c)}`,
3368
+ "aria-posinset": B(c) + 1,
3369
+ "aria-setsize": B(t).stepsCount.value,
3370
+ "aria-describedby": `step-status-${B(c)}`,
3332
3371
  onKeydown: D
3333
3372
  }, [
3334
3373
  y("span", {
@@ -3337,63 +3376,63 @@ const Ol = {
3337
3376
  class: "indicator",
3338
3377
  "aria-hidden": "true"
3339
3378
  }, [
3340
- Z.$slots.icon ? W(Z.$slots, "icon", {
3379
+ E.$slots.icon ? U(E.$slots, "icon", {
3341
3380
  key: 0,
3342
3381
  status: d.value
3343
- }, void 0, !0) : $.value ? (v(), J(ue, {
3382
+ }, void 0, !0) : M.value ? (v(), G(ue, {
3344
3383
  key: 1,
3345
- name: $.value,
3384
+ name: M.value,
3346
3385
  class: "icon"
3347
- }, null, 8, ["name"])) : K("", !0),
3348
- d.value === "completed" ? (v(), m("svg", qo, [...f[0] || (f[0] = [
3386
+ }, null, 8, ["name"])) : F("", !0),
3387
+ d.value === "completed" ? (v(), f("svg", qo, [...p[0] || (p[0] = [
3349
3388
  y("path", {
3350
3389
  d: "M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z",
3351
3390
  fill: "currentColor"
3352
3391
  }, null, -1)
3353
- ])])) : d.value === "error" ? (v(), m("svg", No, [...f[1] || (f[1] = [
3392
+ ])])) : d.value === "error" ? (v(), f("svg", No, [...p[1] || (p[1] = [
3354
3393
  y("path", {
3355
3394
  d: "M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z",
3356
3395
  fill: "currentColor"
3357
3396
  }, null, -1)
3358
- ])])) : d.value === "active" ? (v(), m("span", zo)) : K("", !0)
3397
+ ])])) : d.value === "active" ? (v(), f("span", zo)) : F("", !0)
3359
3398
  ], 512),
3360
3399
  y("span", {
3361
- id: `step-status-${I(c)}`,
3400
+ id: `step-status-${B(c)}`,
3362
3401
  class: "sr-only"
3363
- }, U(M.value), 9, Fo),
3402
+ }, P(L.value), 9, Fo),
3364
3403
  y("div", Ko, [
3365
3404
  y("span", {
3366
- id: `step-title-${I(c)}`,
3405
+ id: `step-title-${B(c)}`,
3367
3406
  class: "title"
3368
- }, U(e.title), 9, Po),
3369
- P(tn, {
3407
+ }, P(e.title), 9, Po),
3408
+ K(tn, {
3370
3409
  variant: u.value,
3371
3410
  size: "sm"
3372
3411
  }, {
3373
- default: G(() => [
3374
- pe(U(H.value), 1)
3412
+ default: X(() => [
3413
+ pe(P(I.value), 1)
3375
3414
  ]),
3376
3415
  _: 1
3377
3416
  }, 8, ["variant"]),
3378
- Z.$slots.default ? (v(), m("span", Uo, [
3379
- W(Z.$slots, "default", {}, void 0, !0)
3380
- ])) : K("", !0)
3417
+ E.$slots.default ? (v(), f("span", Uo, [
3418
+ U(E.$slots, "default", {}, void 0, !0)
3419
+ ])) : F("", !0)
3381
3420
  ])
3382
3421
  ], 42, Oo));
3383
3422
  }
3384
- }), Kl = /* @__PURE__ */ j(Wo, [["__scopeId", "data-v-5c2d8caa"]]), jo = /* @__PURE__ */ S({
3423
+ }), Kl = /* @__PURE__ */ W(Wo, [["__scopeId", "data-v-5c2d8caa"]]), jo = /* @__PURE__ */ R({
3385
3424
  __name: "StepsItem",
3386
3425
  props: {
3387
3426
  index: {}
3388
3427
  },
3389
3428
  setup(e) {
3390
- return Ce("StepIndex", e.index), (t, a) => W(t.$slots, "default");
3429
+ return Ce("StepIndex", e.index), (t, a) => U(t.$slots, "default");
3391
3430
  }
3392
3431
  }), Xo = ["data-size", "data-orientation"], Go = ["data-error", "data-completed"], Jo = {
3393
3432
  "aria-live": "polite",
3394
3433
  "aria-atomic": "true",
3395
3434
  class: "sr-only"
3396
- }, Yo = /* @__PURE__ */ S({
3435
+ }, Yo = /* @__PURE__ */ R({
3397
3436
  __name: "Steps",
3398
3437
  props: /* @__PURE__ */ ne({
3399
3438
  orientation: { default: "horizontal" },
@@ -3408,13 +3447,13 @@ const Ol = {
3408
3447
  }),
3409
3448
  emits: ["update:modelValue"],
3410
3449
  setup(e) {
3411
- const n = e, t = p(0), a = ze(), s = me(e, "modelValue"), r = p([]), i = p(null), o = L(() => s.value ?? 0), l = `steps-description-${ie()}`, c = yt({}), d = ot({});
3450
+ const n = e, t = m(0), a = Ne(), s = me(e, "modelValue"), r = m([]), i = m(null), o = x(() => s.value ?? 0), l = `steps-description-${ie()}`, c = ht({}), d = nt({});
3412
3451
  let g = null;
3413
- const $ = L(() => (a.default?.() ?? [])[o.value]?.props?.title ?? ""), M = L(() => Object.entries(d).filter(([, T]) => T !== "completed").length === 0), u = L(
3452
+ const M = x(() => (a.default?.() ?? [])[o.value]?.props?.title ?? ""), L = x(() => Object.entries(d).filter(([, S]) => S !== "completed").length === 0), u = x(
3414
3453
  () => Object.values(d).includes("error")
3415
- ), C = L(() => {
3416
- const T = o.value, z = c;
3417
- if (z.value[0] == null || z.value[T] == null)
3454
+ ), C = x(() => {
3455
+ const S = o.value, N = c;
3456
+ if (N.value[0] == null || N.value[S] == null)
3418
3457
  return n.orientation === "vertical" ? {
3419
3458
  height: "100%",
3420
3459
  top: "0px"
@@ -3422,7 +3461,7 @@ const Ol = {
3422
3461
  width: "100%",
3423
3462
  left: "0px"
3424
3463
  };
3425
- const b = z.value[0], h = z.value[T];
3464
+ const b = N.value[0], h = N.value[S];
3426
3465
  return n.orientation === "vertical" ? {
3427
3466
  top: `${b}px`,
3428
3467
  height: `${h - b}px`
@@ -3430,62 +3469,62 @@ const Ol = {
3430
3469
  left: `${b}px`,
3431
3470
  width: `${h - b}px`
3432
3471
  };
3433
- }), H = L(() => {
3434
- const T = Object.values(c.value).sort((h, E) => h - E);
3435
- if (T.length < 2) return {};
3436
- const z = T[0], b = T[T.length - 1];
3472
+ }), I = x(() => {
3473
+ const S = Object.values(c.value).sort((h, Z) => h - Z);
3474
+ if (S.length < 2) return {};
3475
+ const N = S[0], b = S[S.length - 1];
3437
3476
  return n.orientation === "vertical" ? {
3438
- top: `${z}px`,
3439
- height: `${b - z}px`
3477
+ top: `${N}px`,
3478
+ height: `${b - N}px`
3440
3479
  } : {
3441
- left: `${z}px`,
3480
+ left: `${N}px`,
3442
3481
  right: `calc(100% - ${b}px)`
3443
3482
  };
3444
- }), R = (T, z) => c.value = { ...c.value, [T]: z };
3445
- function k(T) {
3446
- r.value.push(T), t.value = r.value.length;
3483
+ }), _ = (S, N) => c.value = { ...c.value, [S]: N };
3484
+ function k(S) {
3485
+ r.value.push(S), t.value = r.value.length;
3447
3486
  }
3448
- function D(T) {
3449
- r.value = r.value.filter((z) => z !== T), t.value = r.value.length;
3487
+ function D(S) {
3488
+ r.value = r.value.filter((N) => N !== S), t.value = r.value.length;
3450
3489
  }
3451
- function Z(T) {
3452
- T < 0 || T >= r.value.length || (s.value = T, r.value[T]?.focus());
3490
+ function E(S) {
3491
+ S < 0 || S >= r.value.length || (s.value = S, r.value[S]?.focus());
3453
3492
  }
3454
- function f() {
3455
- Z(s.value + 1);
3493
+ function p() {
3494
+ E(s.value + 1);
3456
3495
  }
3457
- function w() {
3458
- Z(s.value - 1);
3496
+ function $() {
3497
+ E(s.value - 1);
3459
3498
  }
3460
- function _() {
3461
- Z(0);
3499
+ function H() {
3500
+ E(0);
3462
3501
  }
3463
- function N() {
3464
- Z(t.value - 1);
3502
+ function q() {
3503
+ E(t.value - 1);
3465
3504
  }
3466
3505
  return te(() => {
3467
3506
  i.value && (g = new ResizeObserver(() => {
3468
3507
  }), g.observe(i.value));
3469
3508
  }), ye(() => g?.disconnect()), Ce("StepsContext", {
3470
- current: L(() => s.value),
3471
- update: (T) => s.value = T,
3509
+ current: x(() => s.value),
3510
+ update: (S) => s.value = S,
3472
3511
  stepsCount: t,
3473
3512
  icons: n.icons,
3474
3513
  size: n.size,
3475
3514
  orientation: n.orientation,
3476
3515
  stepStatusMap: d,
3477
3516
  stepsRef: i,
3478
- registerStepStatus: (T, z) => {
3479
- d[T] = z;
3517
+ registerStepStatus: (S, N) => {
3518
+ d[S] = N;
3480
3519
  },
3481
- registerIndicatorCenter: R,
3520
+ registerIndicatorCenter: _,
3482
3521
  registerStep: k,
3483
3522
  unregisterStep: D,
3484
- focusNext: f,
3485
- focusPrev: w,
3486
- focusFirst: _,
3487
- focusLast: N
3488
- }), (T, z) => (v(), m(ae, null, [
3523
+ focusNext: p,
3524
+ focusPrev: $,
3525
+ focusFirst: H,
3526
+ focusLast: q
3527
+ }), (S, N) => (v(), f(ae, null, [
3489
3528
  y("ol", {
3490
3529
  ref_key: "stepsRef",
3491
3530
  ref: i,
@@ -3502,43 +3541,43 @@ const Ol = {
3502
3541
  y("div", {
3503
3542
  class: "track",
3504
3543
  "aria-hidden": "true",
3505
- style: ge(H.value)
3544
+ style: ge(I.value)
3506
3545
  }, [
3507
3546
  y("div", {
3508
3547
  class: "track-progress",
3509
3548
  "data-error": u.value,
3510
- "data-completed": M.value,
3549
+ "data-completed": L.value,
3511
3550
  style: ge(C.value)
3512
3551
  }, null, 12, Go)
3513
3552
  ], 4),
3514
- (v(!0), m(ae, null, de(T.$slots.default?.(), (b, h) => (v(), J(jo, {
3553
+ (v(!0), f(ae, null, de(S.$slots.default?.(), (b, h) => (v(), G(jo, {
3515
3554
  key: h,
3516
3555
  index: h
3517
3556
  }, {
3518
- default: G(() => [
3519
- (v(), J(Ie(b)))
3557
+ default: X(() => [
3558
+ (v(), G(Ie(b)))
3520
3559
  ]),
3521
3560
  _: 2
3522
3561
  }, 1032, ["index"]))), 128))
3523
3562
  ], 8, Xo),
3524
- y("div", Jo, " Step " + U(o.value + 1) + " of " + U(t.value) + ": " + U($.value), 1)
3563
+ y("div", Jo, " Step " + P(o.value + 1) + " of " + P(t.value) + ": " + P(M.value), 1)
3525
3564
  ], 64));
3526
3565
  }
3527
- }), Pl = /* @__PURE__ */ j(Yo, [["__scopeId", "data-v-8697173d"]]), Qo = ["data-align"], el = /* @__PURE__ */ S({
3566
+ }), Pl = /* @__PURE__ */ W(Yo, [["__scopeId", "data-v-8697173d"]]), Qo = ["data-align"], el = /* @__PURE__ */ R({
3528
3567
  __name: "Timeline",
3529
3568
  props: {
3530
3569
  align: { default: "left" }
3531
3570
  },
3532
3571
  setup(e) {
3533
- return Ce("TimelineContext", e), (t, a) => (v(), m("ol", {
3572
+ return Ce("TimelineContext", e), (t, a) => (v(), f("ol", {
3534
3573
  role: "list",
3535
3574
  class: "ui-timeline",
3536
3575
  "data-align": e.align
3537
3576
  }, [
3538
- W(t.$slots, "default", {}, void 0, !0)
3577
+ U(t.$slots, "default", {}, void 0, !0)
3539
3578
  ], 8, Qo));
3540
3579
  }
3541
- }), Ul = /* @__PURE__ */ j(el, [["__scopeId", "data-v-d56deb2b"]]), tl = ["data-align", "aria-labelledby", "aria-describedby"], al = { class: "ui-timeline-content" }, nl = ["datetime"], ol = { class: "ui-timeline-date--month" }, ll = { class: "ui-timeline-date--day" }, sl = { class: "ui-timeline-date--year" }, rl = ["data-direction"], il = { class: "info" }, ul = ["id"], dl = { class: "addons" }, cl = /* @__PURE__ */ S({
3580
+ }), Ul = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d56deb2b"]]), tl = ["data-align", "aria-labelledby", "aria-describedby"], al = { class: "ui-timeline-content" }, nl = ["datetime"], ol = { class: "ui-timeline-date--month" }, ll = { class: "ui-timeline-date--day" }, sl = { class: "ui-timeline-date--year" }, rl = ["data-direction"], il = { class: "info" }, ul = ["id"], dl = { class: "addons" }, cl = /* @__PURE__ */ R({
3542
3581
  __name: "TimelineItem",
3543
3582
  props: {
3544
3583
  date: {},
@@ -3549,72 +3588,72 @@ const Ol = {
3549
3588
  titleAs: {}
3550
3589
  },
3551
3590
  setup(e) {
3552
- const n = e, t = se("TimelineContext");
3591
+ const n = e, t = le("TimelineContext");
3553
3592
  if (!t) throw new Error("TimelineItem must be used within a Timeline component");
3554
- const a = ie(), s = ie(), r = L(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (c) => {
3593
+ const a = ie(), s = ie(), r = x(() => t.align === "alternate" ? (n.index ?? 0) % 2 === 0 ? "ui-timeline-item--left" : "ui-timeline-item--right" : `ui-timeline-item--${t.align}`), i = (c) => {
3555
3594
  const d = new Date(c).getDay();
3556
3595
  return d < 10 ? `0${d}` : d;
3557
3596
  }, o = (c) => new Date(c).toLocaleString("default", { month: "short" }), l = (c) => new Date(c).getFullYear();
3558
- return (c, d) => (v(), m("li", {
3597
+ return (c, d) => (v(), f("li", {
3559
3598
  tabindex: "0",
3560
3599
  class: re([r.value, "ui-timeline-item"]),
3561
- "data-align": I(t).align,
3562
- "aria-labelledby": e.title ? I(a) : void 0,
3563
- "aria-describedby": e.description ? I(s) : void 0
3600
+ "data-align": B(t).align,
3601
+ "aria-labelledby": e.title ? B(a) : void 0,
3602
+ "aria-describedby": e.description ? B(s) : void 0
3564
3603
  }, [
3565
3604
  d[0] || (d[0] = y("div", {
3566
3605
  class: "ui-timeline-marker",
3567
3606
  "aria-hidden": "true"
3568
3607
  }, null, -1)),
3569
3608
  y("div", al, [
3570
- e.date ? (v(), m("time", {
3609
+ e.date ? (v(), f("time", {
3571
3610
  key: 0,
3572
3611
  class: "ui-timeline-date",
3573
3612
  datetime: e.date
3574
3613
  }, [
3575
- y("span", ol, U(o(e.date)), 1),
3576
- y("span", ll, U(i(e.date)), 1),
3577
- y("span", sl, U(l(e.date)), 1)
3578
- ], 8, nl)) : K("", !0),
3614
+ y("span", ol, P(o(e.date)), 1),
3615
+ y("span", ll, P(i(e.date)), 1),
3616
+ y("span", sl, P(l(e.date)), 1)
3617
+ ], 8, nl)) : F("", !0),
3579
3618
  y("div", {
3580
3619
  class: "ui-timeline-body",
3581
3620
  "data-direction": e.flexDirection
3582
3621
  }, [
3583
3622
  y("div", il, [
3584
- W(c.$slots, "title", {}, () => [
3585
- (v(), J(Ie(e.titleAs ?? "h3"), {
3586
- id: I(a),
3623
+ U(c.$slots, "title", {}, () => [
3624
+ (v(), G(Ie(e.titleAs ?? "h3"), {
3625
+ id: B(a),
3587
3626
  class: "ui-timeline-title"
3588
3627
  }, {
3589
- default: G(() => [
3590
- pe(U(e.title), 1)
3628
+ default: X(() => [
3629
+ pe(P(e.title), 1)
3591
3630
  ]),
3592
3631
  _: 1
3593
3632
  }, 8, ["id"]))
3594
3633
  ], !0),
3595
- W(c.$slots, "description", {}, () => [
3596
- e.description ? (v(), m("p", {
3634
+ U(c.$slots, "description", {}, () => [
3635
+ e.description ? (v(), f("p", {
3597
3636
  key: 0,
3598
- id: I(s),
3637
+ id: B(s),
3599
3638
  class: "ui-timeline-description"
3600
- }, U(e.description), 9, ul)) : K("", !0)
3639
+ }, P(e.description), 9, ul)) : F("", !0)
3601
3640
  ], !0)
3602
3641
  ]),
3603
3642
  y("div", dl, [
3604
- W(c.$slots, "default", {}, void 0, !0)
3643
+ U(c.$slots, "default", {}, void 0, !0)
3605
3644
  ])
3606
3645
  ], 8, rl)
3607
3646
  ])
3608
3647
  ], 10, tl));
3609
3648
  }
3610
- }), Wl = /* @__PURE__ */ j(cl, [["__scopeId", "data-v-10599410"]]), vl = ["aria-label", "aria-activedescendant"], fl = { class: "carousel-viewport" }, ml = {
3649
+ }), Wl = /* @__PURE__ */ W(cl, [["__scopeId", "data-v-10599410"]]), vl = ["aria-label", "aria-activedescendant"], fl = { class: "carousel-viewport" }, ml = {
3611
3650
  class: "sr-only",
3612
3651
  "aria-live": "polite"
3613
3652
  }, pl = {
3614
3653
  key: 0,
3615
3654
  role: "tablist",
3616
3655
  class: "carousel-indicators"
3617
- }, bl = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], gl = 0.35, Cl = 0.2, hl = /* @__PURE__ */ S({
3656
+ }, bl = ["aria-label", "aria-selected", "aria-current", "onClick", "onKeydown"], gl = 0.35, Cl = 0.2, hl = /* @__PURE__ */ R({
3618
3657
  __name: "Carousel",
3619
3658
  props: /* @__PURE__ */ ne({
3620
3659
  ariaLabel: { default: "Carousel" },
@@ -3636,77 +3675,77 @@ const Ol = {
3636
3675
  }),
3637
3676
  emits: ["update:modelValue"],
3638
3677
  setup(e) {
3639
- const n = me(e, "modelValue"), t = e, a = p(0), s = p(0), r = p(0), i = p(0), o = p(0), l = p(0), c = p(!1), d = p(!1), g = p(0), $ = p([]), M = p(1), u = p(n.value), C = p(null), H = p(null);
3640
- let R = null, k = null;
3678
+ const n = me(e, "modelValue"), t = e, a = m(0), s = m(0), r = m(0), i = m(0), o = m(0), l = m(0), c = m(!1), d = m(!1), g = m(0), M = m([]), L = m(1), u = m(n.value), C = m(null), I = m(null);
3679
+ let _ = null, k = null;
3641
3680
  Y(
3642
3681
  () => n.value,
3643
- (B) => u.value = B
3682
+ (A) => u.value = A
3644
3683
  );
3645
- const D = L(() => $.value[u.value] ?? void 0), Z = L(() => Math.floor(u.value / M.value)), f = L(() => Math.ceil(X.value / M.value)), w = L(() => Math.max(0, X.value - M.value)), _ = L(() => {
3646
- const B = u.value * (100 / M.value), q = d.value && H.value ? r.value / H.value.clientWidth * 100 : 0;
3684
+ const D = x(() => M.value[u.value] ?? void 0), E = x(() => Math.floor(u.value / L.value)), p = x(() => Math.ceil(w.value / L.value)), $ = x(() => Math.max(0, w.value - L.value)), H = x(() => {
3685
+ const A = u.value * (100 / L.value), j = d.value && I.value ? r.value / I.value.clientWidth * 100 : 0;
3647
3686
  return {
3648
- transform: `translateX(calc(-${B}% + ${q}%))`,
3687
+ transform: `translateX(calc(-${A}% + ${j}%))`,
3649
3688
  transition: d.value ? "none" : "transform 300ms ease"
3650
3689
  };
3651
- }), N = (B) => {
3652
- let q = B;
3690
+ }), q = (A) => {
3691
+ let j = A;
3653
3692
  if (t.loop) {
3654
- const oe = Math.round(B / M.value), ee = f.value;
3655
- q = (oe % ee + ee) % ee * M.value;
3693
+ const se = Math.round(A / L.value), ee = p.value;
3694
+ j = (se % ee + ee) % ee * L.value;
3656
3695
  } else
3657
- q = Math.min(
3658
- Math.max(B, 0),
3659
- w.value
3696
+ j = Math.min(
3697
+ Math.max(A, 0),
3698
+ $.value
3660
3699
  );
3661
- u.value = q, n.value = q;
3662
- }, T = () => N(u.value + M.value), z = () => N(u.value - M.value), b = (B) => {
3663
- B.key === "ArrowRight" ? T() : B.key === "ArrowLeft" && z();
3664
- }, h = (B) => ($.value.includes(B) || $.value.push(B), $.value.indexOf(B)), E = (B) => $.value = $.value.filter((q) => q !== B), X = L(() => $.value.length), V = () => {
3665
- !t.autoplay || R !== null || (R = window.setInterval(() => {
3666
- c.value || T();
3700
+ u.value = j, n.value = j;
3701
+ }, S = () => q(u.value + L.value), N = () => q(u.value - L.value), b = (A) => {
3702
+ A.key === "ArrowRight" ? S() : A.key === "ArrowLeft" && N();
3703
+ }, h = (A) => (M.value.includes(A) || M.value.push(A), M.value.indexOf(A)), Z = (A) => M.value = M.value.filter((j) => j !== A), w = x(() => M.value.length), T = () => {
3704
+ !t.autoplay || _ !== null || (_ = window.setInterval(() => {
3705
+ c.value || S();
3667
3706
  }, t.autoplayDelay));
3668
- }, A = () => {
3669
- R !== null && (clearInterval(R), R = null);
3670
- }, Q = (B) => {
3707
+ }, J = () => {
3708
+ _ !== null && (clearInterval(_), _ = null);
3709
+ }, ce = (A) => {
3671
3710
  if (typeof t.itemsPerView == "number")
3672
3711
  return t.itemsPerView;
3673
- const q = Object.entries(t.itemsPerView).map(([ee, ke]) => [Number(ee), ke]).sort((ee, ke) => ee[0] - ke[0]);
3674
- let oe = q[0]?.[1] ?? 1;
3675
- for (const [ee, ke] of q) B >= ee && (oe = ke);
3676
- return oe;
3677
- }, fe = (B) => {
3678
- B.button === 0 && (d.value = !0, s.value = B.clientX, a.value = B.clientX, l.value = B.clientX, r.value = 0, i.value = performance.now(), o.value = 0, g.value = u.value, H.value?.setPointerCapture(B.pointerId), A(), H.value.style.userSelect = "");
3679
- }, x = (B) => {
3712
+ const j = Object.entries(t.itemsPerView).map(([ee, ke]) => [Number(ee), ke]).sort((ee, ke) => ee[0] - ke[0]);
3713
+ let se = j[0]?.[1] ?? 1;
3714
+ for (const [ee, ke] of j) A >= ee && (se = ke);
3715
+ return se;
3716
+ }, V = (A) => {
3717
+ A.button === 0 && (d.value = !0, s.value = A.clientX, a.value = A.clientX, l.value = A.clientX, r.value = 0, i.value = performance.now(), o.value = 0, g.value = u.value, I.value?.setPointerCapture(A.pointerId), J(), I.value.style.userSelect = "");
3718
+ }, O = (A) => {
3680
3719
  if (!d.value) return;
3681
- const q = performance.now(), oe = B.clientX - a.value, ee = q - i.value;
3682
- ee > 0 && (o.value = oe / ee), a.value = B.clientX, i.value = q, l.value = B.clientX, r.value = l.value - s.value;
3683
- }, O = (B) => {
3720
+ const j = performance.now(), se = A.clientX - a.value, ee = j - i.value;
3721
+ ee > 0 && (o.value = se / ee), a.value = A.clientX, i.value = j, l.value = A.clientX, r.value = l.value - s.value;
3722
+ }, Q = (A) => {
3684
3723
  if (!d.value) return;
3685
- d.value = !1, H.value?.releasePointerCapture(B.pointerId), H.value.style.userSelect = "";
3686
- const q = H.value.clientWidth / M.value, oe = r.value / q;
3687
- Math.abs(o.value) > gl ? o.value < 0 ? T() : z() : Math.abs(oe) > Cl ? oe < 0 ? T() : z() : N(g.value), r.value = 0, o.value = 0, V();
3724
+ d.value = !1, I.value?.releasePointerCapture(A.pointerId), I.value.style.userSelect = "";
3725
+ const j = I.value.clientWidth / L.value, se = r.value / j;
3726
+ Math.abs(o.value) > gl ? o.value < 0 ? S() : N() : Math.abs(se) > Cl ? se < 0 ? S() : N() : q(g.value), r.value = 0, o.value = 0, T();
3688
3727
  };
3689
3728
  return te(() => {
3690
- V(), C.value && (k = new ResizeObserver((B) => {
3691
- const q = B[0]?.contentRect.width;
3692
- q !== void 0 && (M.value = Q(q));
3729
+ T(), C.value && (k = new ResizeObserver((A) => {
3730
+ const j = A[0]?.contentRect.width;
3731
+ j !== void 0 && (L.value = ce(j));
3693
3732
  }), k.observe(C.value));
3694
3733
  }), ye(() => {
3695
- A(), k?.disconnect();
3734
+ J(), k?.disconnect();
3696
3735
  }), Y(
3697
3736
  () => t.autoplay,
3698
- (B) => {
3699
- B ? V() : A();
3737
+ (A) => {
3738
+ A ? T() : J();
3700
3739
  },
3701
3740
  { immediate: !0 }
3702
- ), Y(M, () => u.value = Math.min(u.value, w.value)), Ce("CarouselContext", {
3741
+ ), Y(L, () => u.value = Math.min(u.value, $.value)), Ce("CarouselContext", {
3703
3742
  register: h,
3704
- unregister: E,
3743
+ unregister: Z,
3705
3744
  activeIndex: u,
3706
- slideCount: X,
3745
+ slideCount: w,
3707
3746
  deltaX: r,
3708
- itemsPerView: t.itemsPerView instanceof Object ? M : p(t.itemsPerView)
3709
- }), (B, q) => (v(), m("div", {
3747
+ itemsPerView: t.itemsPerView instanceof Object ? L : m(t.itemsPerView)
3748
+ }), (A, j) => (v(), f("div", {
3710
3749
  ref_key: "rootRef",
3711
3750
  ref: C,
3712
3751
  role: "region",
@@ -3715,73 +3754,73 @@ const Ol = {
3715
3754
  "aria-label": e.ariaLabel,
3716
3755
  tabindex: "0",
3717
3756
  "aria-activedescendant": D.value,
3718
- style: ge({ "--items-per-view": M.value }),
3757
+ style: ge({ "--items-per-view": L.value }),
3719
3758
  onKeydown: b,
3720
- onMouseenter: q[0] || (q[0] = (oe) => c.value = !0),
3721
- onMouseleave: q[1] || (q[1] = (oe) => c.value = !1),
3722
- onFocusin: q[2] || (q[2] = (oe) => c.value = !0),
3723
- onFocusout: q[3] || (q[3] = (oe) => c.value = !1)
3759
+ onMouseenter: j[0] || (j[0] = (se) => c.value = !0),
3760
+ onMouseleave: j[1] || (j[1] = (se) => c.value = !1),
3761
+ onFocusin: j[2] || (j[2] = (se) => c.value = !0),
3762
+ onFocusout: j[3] || (j[3] = (se) => c.value = !1)
3724
3763
  }, [
3725
- q[4] || (q[4] = y("span", {
3764
+ j[4] || (j[4] = y("span", {
3726
3765
  id: "carousel-instructions",
3727
3766
  class: "sr-only"
3728
3767
  }, " Use left and right arrow keys to navigate slides ", -1)),
3729
3768
  y("div", fl, [
3730
3769
  y("div", {
3731
3770
  ref_key: "trackRef",
3732
- ref: H,
3771
+ ref: I,
3733
3772
  class: "carousel-track",
3734
- style: ge(_.value),
3735
- onPointerdown: fe,
3736
- onPointermove: x,
3737
- onPointerup: O,
3738
- onPointercancel: O
3773
+ style: ge(H.value),
3774
+ onPointerdown: V,
3775
+ onPointermove: O,
3776
+ onPointerup: Q,
3777
+ onPointercancel: Q
3739
3778
  }, [
3740
- W(B.$slots, "default", {}, void 0, !0)
3779
+ U(A.$slots, "default", {}, void 0, !0)
3741
3780
  ], 36)
3742
3781
  ]),
3743
- y("span", ml, " Slide " + U(Math.floor(u.value / M.value) + 1) + " of " + U(f.value), 1),
3782
+ y("span", ml, " Slide " + P(Math.floor(u.value / L.value) + 1) + " of " + P(p.value), 1),
3744
3783
  y("button", {
3745
3784
  type: "button",
3746
3785
  class: "carousel-control prev",
3747
3786
  "aria-label": "Previous slide",
3748
- onClick: z
3787
+ onClick: N
3749
3788
  }, [
3750
- P(ue, { name: "directionDown" })
3789
+ K(ue, { name: "directionDown" })
3751
3790
  ]),
3752
3791
  y("button", {
3753
3792
  type: "button",
3754
3793
  class: "carousel-control next",
3755
3794
  "aria-label": "Next slide",
3756
- onClick: T
3795
+ onClick: S
3757
3796
  }, [
3758
- P(ue, { name: "directionDown" })
3797
+ K(ue, { name: "directionDown" })
3759
3798
  ]),
3760
- e.showIndicators ? (v(), m("div", pl, [
3761
- (v(!0), m(ae, null, de(f.value, (oe, ee) => (v(), m("button", {
3799
+ e.showIndicators ? (v(), f("div", pl, [
3800
+ (v(!0), f(ae, null, de(p.value, (se, ee) => (v(), f("button", {
3762
3801
  role: "tab",
3763
3802
  type: "button",
3764
3803
  key: ee,
3765
- class: re(["indicator", { active: ee === Math.floor(u.value / M.value) }]),
3804
+ class: re(["indicator", { active: ee === Math.floor(u.value / L.value) }]),
3766
3805
  "aria-label": `Go to slide ${ee + 1}`,
3767
- "aria-selected": ee === Z.value,
3768
- "aria-current": ee === Z.value,
3769
- onClick: (ke) => N(ee * M.value),
3806
+ "aria-selected": ee === E.value,
3807
+ "aria-current": ee === E.value,
3808
+ onClick: (ke) => q(ee * L.value),
3770
3809
  onKeydown: [
3771
- ve(le((ke) => N((ee - 1 + f.value) % f.value * M.value), ["prevent"]), ["left"]),
3772
- ve(le((ke) => N((ee + 1) % f.value * M.value), ["prevent"]), ["right"])
3810
+ fe(oe((ke) => q((ee - 1 + p.value) % p.value * L.value), ["prevent"]), ["left"]),
3811
+ fe(oe((ke) => q((ee + 1) % p.value * L.value), ["prevent"]), ["right"])
3773
3812
  ]
3774
3813
  }, null, 42, bl))), 128))
3775
- ])) : K("", !0)
3814
+ ])) : F("", !0)
3776
3815
  ], 44, vl));
3777
3816
  }
3778
- }), jl = /* @__PURE__ */ j(hl, [["__scopeId", "data-v-30cdfc00"]]), yl = ["aria-hidden", "aria-label"], kl = /* @__PURE__ */ S({
3817
+ }), jl = /* @__PURE__ */ W(hl, [["__scopeId", "data-v-30cdfc00"]]), yl = ["aria-hidden", "aria-label"], kl = /* @__PURE__ */ R({
3779
3818
  __name: "CarouselItem",
3780
3819
  setup(e) {
3781
- const n = se("CarouselContext");
3820
+ const n = le("CarouselContext");
3782
3821
  if (!n) throw new Error("CarouselItem must be used inside a Carousel");
3783
- const t = "carousel-item-" + ie(), a = p(0), s = L(() => Math.abs(n.deltaX.value) > 5), r = L(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
3784
- return te(() => a.value = n.register(t)), ye(() => n.unregister(t)), (i, o) => (v(), m("div", {
3822
+ const t = "carousel-item-" + ie(), a = m(0), s = x(() => Math.abs(n.deltaX.value) > 5), r = x(() => Math.floor(a.value / n.itemsPerView.value) === Math.floor(n.activeIndex.value / n.itemsPerView.value));
3823
+ return te(() => a.value = n.register(t)), ye(() => n.unregister(t)), (i, o) => (v(), f("div", {
3785
3824
  role: "group",
3786
3825
  class: "carousel-item",
3787
3826
  id: t,
@@ -3790,10 +3829,10 @@ const Ol = {
3790
3829
  "aria-label": `Slide ${a.value + 1}`,
3791
3830
  onClickCapture: o[0] || (o[0] = (l) => s.value && l.preventDefault())
3792
3831
  }, [
3793
- W(i.$slots, "default", {}, void 0, !0)
3832
+ U(i.$slots, "default", {}, void 0, !0)
3794
3833
  ], 40, yl));
3795
3834
  }
3796
- }), Xl = /* @__PURE__ */ j(kl, [["__scopeId", "data-v-a569d055"]]), Te = /* @__PURE__ */ Symbol("TabsContext"), Gl = S({
3835
+ }), Xl = /* @__PURE__ */ W(kl, [["__scopeId", "data-v-a569d055"]]), Se = /* @__PURE__ */ Symbol("TabsContext"), Gl = R({
3797
3836
  name: "Tabs",
3798
3837
  props: {
3799
3838
  modelValue: String,
@@ -3809,7 +3848,7 @@ const Ol = {
3809
3848
  },
3810
3849
  emits: ["update:modelValue"],
3811
3850
  setup(e, { emit: n, slots: t }) {
3812
- const a = p(e.modelValue ?? e.defaultValue), s = p(!1), r = p([]), i = p("forward"), o = p();
3851
+ const a = m(e.modelValue ?? e.defaultValue), s = m(!1), r = m([]), i = m("forward"), o = m();
3813
3852
  Y(a, (u) => {
3814
3853
  !u || !s.value || requestAnimationFrame(() => {
3815
3854
  document.getElementById(`tab-${u}`)?.focus(), s.value = !1;
@@ -3825,77 +3864,77 @@ const Ol = {
3825
3864
  const l = (u, C) => r.value[C] = u, c = (u) => {
3826
3865
  const C = r.value.filter(Boolean);
3827
3866
  if (!C.length) return;
3828
- const H = a.value;
3829
- if (!H) {
3867
+ const I = a.value;
3868
+ if (!I) {
3830
3869
  a.value = u, n("update:modelValue", u);
3831
3870
  return;
3832
3871
  }
3833
- const R = C.indexOf(H), k = C.indexOf(u);
3834
- if (R === -1 || k === -1) {
3872
+ const _ = C.indexOf(I), k = C.indexOf(u);
3873
+ if (_ === -1 || k === -1) {
3835
3874
  a.value = u, n("update:modelValue", u);
3836
3875
  return;
3837
3876
  }
3838
- R !== -1 && k !== -1 && (i.value = k > R ? "forward" : "backward"), H !== u && (a.value = u, n("update:modelValue", u));
3839
- }, d = L(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), g = (u) => {
3877
+ _ !== -1 && k !== -1 && (i.value = k > _ ? "forward" : "backward"), I !== u && (a.value = u, n("update:modelValue", u));
3878
+ }, d = x(() => i.value === "forward" ? "tab-slide-forward" : "tab-slide-backward"), g = (u) => {
3840
3879
  u instanceof HTMLElement && o.value && (o.value.style.height = `${u.offsetHeight}px`);
3841
- }, $ = (u) => {
3880
+ }, M = (u) => {
3842
3881
  if (u instanceof HTMLElement && o.value) {
3843
3882
  const C = u.offsetHeight;
3844
3883
  requestAnimationFrame(() => {
3845
3884
  o.value && (o.value.style.height = `${C}px`);
3846
3885
  });
3847
3886
  }
3848
- }, M = () => {
3887
+ }, L = () => {
3849
3888
  o.value && (o.value.style.height = "");
3850
3889
  };
3851
- return Ce(Te, {
3890
+ return Ce(Se, {
3852
3891
  activeValue: a,
3853
3892
  setValue: c,
3854
3893
  registerTrigger: l,
3855
3894
  direction: i,
3856
- activationMode: p(e.activationMode),
3857
- orientation: p(e.orientation),
3895
+ activationMode: m(e.activationMode),
3896
+ orientation: m(e.orientation),
3858
3897
  triggers: r,
3859
3898
  contentWrapperRef: o,
3860
3899
  focusOnChange: s
3861
3900
  }), () => {
3862
- const u = t.default?.() || [], C = [], H = [];
3901
+ const u = t.default?.() || [], C = [], I = [];
3863
3902
  u.forEach((k) => {
3864
- k.type?.name === "TabsContent" ? H.push(k) : C.push(k);
3903
+ k.type?.name === "TabsContent" ? I.push(k) : C.push(k);
3865
3904
  });
3866
- const R = H.find((k) => k.props?.value === a.value);
3905
+ const _ = I.find((k) => k.props?.value === a.value);
3867
3906
  return [
3868
3907
  ...C,
3869
- F(
3908
+ z(
3870
3909
  "div",
3871
3910
  {
3872
3911
  class: "tabs-content-wrapper",
3873
3912
  ref: o
3874
3913
  },
3875
- F(
3914
+ z(
3876
3915
  xe,
3877
3916
  {
3878
3917
  name: d.value,
3879
3918
  mode: "out-in",
3880
3919
  onBeforeLeave: g,
3881
- onEnter: $,
3882
- onAfterEnter: M
3920
+ onEnter: M,
3921
+ onAfterEnter: L
3883
3922
  },
3884
- () => R ? [F(R.type, {
3885
- ...R.props,
3886
- key: R.props.value
3887
- }, R.children)] : []
3923
+ () => _ ? [z(_.type, {
3924
+ ..._.props,
3925
+ key: _.props.value
3926
+ }, _.children)] : []
3888
3927
  )
3889
3928
  )
3890
3929
  ];
3891
3930
  };
3892
3931
  }
3893
- }), Jl = S({
3932
+ }), Jl = R({
3894
3933
  name: "TabsList",
3895
3934
  setup(e, { slots: n }) {
3896
- const t = se(Te);
3935
+ const t = le(Se);
3897
3936
  if (!t) throw new Error("TabsList components must be used inside <Tabs>");
3898
- return () => F(
3937
+ return () => z(
3899
3938
  "div",
3900
3939
  {
3901
3940
  role: "tablist",
@@ -3905,7 +3944,7 @@ const Ol = {
3905
3944
  n.default?.()
3906
3945
  );
3907
3946
  }
3908
- }), Yl = S({
3947
+ }), Yl = R({
3909
3948
  name: "TabsTrigger",
3910
3949
  props: {
3911
3950
  value: {
@@ -3922,9 +3961,9 @@ const Ol = {
3922
3961
  }
3923
3962
  },
3924
3963
  setup(e, { slots: n }) {
3925
- const t = se(Te);
3964
+ const t = le(Se);
3926
3965
  if (!t) throw new Error("TabsTrigger components must be used inside <Tabs>");
3927
- const a = L(() => t.activeValue.value === e.value), s = () => !e.disabled && t.setValue(e.value), r = (i) => {
3966
+ const a = x(() => t.activeValue.value === e.value), s = () => !e.disabled && t.setValue(e.value), r = (i) => {
3928
3967
  if (t.focusOnChange.value = !0, !["ArrowRight", "ArrowLeft", "ArrowDown", "ArrowUp", "Home", "End"].includes(i.key)) return;
3929
3968
  i.preventDefault();
3930
3969
  const l = t.triggers.value.filter(Boolean);
@@ -3951,12 +3990,12 @@ const Ol = {
3951
3990
  break;
3952
3991
  }
3953
3992
  d = (d + l.length) % l.length;
3954
- const $ = l[d];
3955
- t.activationMode.value === "auto" && t.setValue($), requestAnimationFrame(() => {
3956
- document.getElementById(`tab-${$}`)?.focus();
3993
+ const M = l[d];
3994
+ t.activationMode.value === "auto" && t.setValue(M), requestAnimationFrame(() => {
3995
+ document.getElementById(`tab-${M}`)?.focus();
3957
3996
  });
3958
3997
  };
3959
- return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ye(() => t.triggers.value[e.index] = void 0), () => F(
3998
+ return te(() => !e.disabled && t.registerTrigger(e.value, e.index)), ye(() => t.triggers.value[e.index] = void 0), () => z(
3960
3999
  be,
3961
4000
  {
3962
4001
  role: "tab",
@@ -3973,7 +4012,7 @@ const Ol = {
3973
4012
  { default: () => n.default?.() }
3974
4013
  );
3975
4014
  }
3976
- }), Ql = S({
4015
+ }), Ql = R({
3977
4016
  name: "TabsContent",
3978
4017
  props: {
3979
4018
  value: {
@@ -3982,8 +4021,8 @@ const Ol = {
3982
4021
  }
3983
4022
  },
3984
4023
  setup(e, { slots: n }) {
3985
- if (!se(Te)) throw new Error("TabsContent components must be used inside <Tabs>");
3986
- return () => F(
4024
+ if (!le(Se)) throw new Error("TabsContent components must be used inside <Tabs>");
4025
+ return () => z(
3987
4026
  "div",
3988
4027
  {
3989
4028
  id: `panel-${e.value}`,
@@ -3995,81 +4034,81 @@ const Ol = {
3995
4034
  n.default?.()
3996
4035
  );
3997
4036
  }
3998
- }), wl = { class: "ui-dropdown" }, es = /* @__PURE__ */ S({
4037
+ }), wl = { class: "ui-dropdown" }, e1 = /* @__PURE__ */ R({
3999
4038
  __name: "Dropdown",
4000
4039
  setup(e) {
4001
4040
  let n = 0;
4002
- const t = p(!1), a = p(null), s = p({}), r = `dropdown-${ie()}`, i = `${r}-menu`, o = `${r}-trigger`, l = () => t.value = !0, c = () => {
4041
+ const t = m(!1), a = m(null), s = m({}), r = `dropdown-${ie()}`, i = `${r}-menu`, o = `${r}-trigger`, l = () => t.value = !0, c = () => {
4003
4042
  t.value = !1, s.value = {}, n = 0, a.value?.focus({ preventScroll: !0 });
4004
4043
  }, d = () => t.value = !t.value, g = (k) => {
4005
4044
  const D = `dropdown-item-${n++}`;
4006
4045
  return s.value[D] = k, D;
4007
- }, $ = (k) => {
4046
+ }, M = (k) => {
4008
4047
  const D = s.value[k];
4009
4048
  D && D.focus();
4010
- }, M = () => {
4049
+ }, L = () => {
4011
4050
  const k = Object.keys(s.value)[0];
4012
- k && $(k);
4051
+ k && M(k);
4013
4052
  }, u = () => {
4014
4053
  const k = Object.keys(s.value), D = k[k.length - 1];
4015
- D && $(D);
4054
+ D && M(D);
4016
4055
  }, C = (k) => {
4017
- const D = Object.keys(s.value), Z = R(k), f = D[Z + 1];
4018
- Z >= 0 && Z < D.length - 1 && f && $(f);
4019
- }, H = (k) => {
4020
- const D = Object.keys(s.value), Z = R(k), f = D[Z - 1];
4021
- Z > 0 && f && $(f);
4022
- }, R = (k) => Object.keys(s.value).indexOf(k);
4056
+ const D = Object.keys(s.value), E = _(k), p = D[E + 1];
4057
+ E >= 0 && E < D.length - 1 && p && M(p);
4058
+ }, I = (k) => {
4059
+ const D = Object.keys(s.value), E = _(k), p = D[E - 1];
4060
+ E > 0 && p && M(p);
4061
+ }, _ = (k) => Object.keys(s.value).indexOf(k);
4023
4062
  return Ce("DropdownContext", {
4024
4063
  open: l,
4025
4064
  close: c,
4026
4065
  toggle: d,
4027
4066
  isOpen: t,
4028
4067
  registerItem: g,
4029
- focusItem: $,
4068
+ focusItem: M,
4030
4069
  focusNextItem: C,
4031
- focusPrevItem: H,
4032
- focusFirstItem: M,
4070
+ focusPrevItem: I,
4071
+ focusFirstItem: L,
4033
4072
  focusLastItem: u,
4034
4073
  triggerRef: a,
4035
4074
  menuId: i,
4036
4075
  triggerId: o
4037
- }), (k, D) => (v(), m("div", wl, [
4038
- W(k.$slots, "default")
4076
+ }), (k, D) => (v(), f("div", wl, [
4077
+ U(k.$slots, "default")
4039
4078
  ]));
4040
4079
  }
4041
- }), Ll = /* @__PURE__ */ S({
4080
+ }), Ll = /* @__PURE__ */ R({
4042
4081
  __name: "DropdownTrigger",
4043
4082
  setup(e) {
4044
- const n = se("DropdownContext");
4083
+ const n = le("DropdownContext");
4045
4084
  if (!n) throw new Error("DropdownTrigger must be used within a Dropdown");
4046
- const t = p(), a = (s) => {
4085
+ const t = m(), a = (s) => {
4047
4086
  s.key === "ArrowDown" && (s.preventDefault(), n.open(), Me(() => n.focusFirstItem())), s.key === "ArrowUp" && (s.preventDefault(), n.open(), Me(() => n.focusLastItem()));
4048
4087
  };
4049
- return te(() => n.triggerRef.value = t.value?.el), (s, r) => (v(), J(be, {
4088
+ return te(() => n.triggerRef.value = t.value?.el), (s, r) => (v(), G(be, {
4050
4089
  ref_key: "btn",
4051
4090
  ref: t,
4052
- id: I(n).triggerId,
4091
+ id: B(n).triggerId,
4053
4092
  class: "btn-outline ui-dropdown-trigger",
4054
4093
  "aria-haspopup": "menu",
4055
- "aria-controls": I(n).menuId,
4056
- "aria-expanded": I(n).isOpen.value,
4057
- onClick: I(n).toggle,
4094
+ "aria-controls": B(n).menuId,
4095
+ "aria-expanded": B(n).isOpen.value,
4096
+ onClick: B(n).toggle,
4058
4097
  onKeydown: a
4059
4098
  }, {
4060
- default: G(() => [
4061
- W(s.$slots, "default", {}, void 0, !0),
4062
- P(ue, { name: "directionDown" })
4099
+ default: X(() => [
4100
+ U(s.$slots, "default", {}, void 0, !0),
4101
+ K(ue, { name: "directionDown" })
4063
4102
  ]),
4064
4103
  _: 3
4065
4104
  }, 8, ["id", "aria-controls", "aria-expanded", "onClick"]));
4066
4105
  }
4067
- }), ts = /* @__PURE__ */ j(Ll, [["__scopeId", "data-v-b8f0b77e"]]), Ml = ["id", "aria-labelledby"], $l = /* @__PURE__ */ S({
4106
+ }), t1 = /* @__PURE__ */ W(Ll, [["__scopeId", "data-v-b8f0b77e"]]), Ml = ["id", "aria-labelledby"], $l = /* @__PURE__ */ R({
4068
4107
  __name: "DropdownMenu",
4069
4108
  setup(e) {
4070
- const n = se("DropdownContext");
4109
+ const n = le("DropdownContext");
4071
4110
  if (!n) throw new Error("DropdownMenu must be used within a Dropdown");
4072
- const t = p(), a = p({}), s = (o) => {
4111
+ const t = m(), a = m({}), s = (o) => {
4073
4112
  const l = o.target;
4074
4113
  t.value?.contains(l) || n.triggerRef.value?.contains(l) || n.close();
4075
4114
  }, r = (o) => o.key === "Escape" && n.close(), i = () => {
@@ -4096,33 +4135,33 @@ const Ol = {
4096
4135
  window.addEventListener("scroll", i, !0), window.addEventListener("resize", i);
4097
4136
  }), ye(() => {
4098
4137
  window.removeEventListener("scroll", i, !0), window.removeEventListener("resize", i);
4099
- }), (o, l) => (v(), J(Re, { to: "body" }, [
4100
- I(n).isOpen.value ? (v(), m("div", {
4138
+ }), (o, l) => (v(), G(_e, { to: "body" }, [
4139
+ B(n).isOpen.value ? (v(), f("div", {
4101
4140
  key: 0,
4102
4141
  role: "menu",
4103
4142
  ref_key: "menuRef",
4104
4143
  ref: t,
4105
4144
  style: ge(a.value),
4106
- id: I(n).menuId,
4145
+ id: B(n).menuId,
4107
4146
  "aria-orientation": "vertical",
4108
- "aria-labelledby": I(n).triggerId,
4147
+ "aria-labelledby": B(n).triggerId,
4109
4148
  class: "ui-dropdown-menu",
4110
4149
  onKeydown: r
4111
4150
  }, [
4112
- W(o.$slots, "default", {}, void 0, !0)
4113
- ], 44, Ml)) : K("", !0)
4151
+ U(o.$slots, "default", {}, void 0, !0)
4152
+ ], 44, Ml)) : F("", !0)
4114
4153
  ]));
4115
4154
  }
4116
- }), as = /* @__PURE__ */ j($l, [["__scopeId", "data-v-3b7b0ae5"]]), xl = /* @__PURE__ */ S({
4155
+ }), a1 = /* @__PURE__ */ W($l, [["__scopeId", "data-v-3b7b0ae5"]]), xl = /* @__PURE__ */ R({
4117
4156
  __name: "DropdownItem",
4118
4157
  setup(e) {
4119
- const n = se("DropdownContext");
4158
+ const n = le("DropdownContext");
4120
4159
  if (!n) throw new Error("DropdownItem must be used within a Dropdown");
4121
4160
  let t;
4122
- const a = p(), s = (r) => {
4161
+ const a = m(), s = (r) => {
4123
4162
  r.key === "ArrowDown" && (r.preventDefault(), n.focusNextItem(t)), r.key === "ArrowUp" && (r.preventDefault(), n.focusPrevItem(t)), (r.key === "Enter" || r.key === " ") && (r.preventDefault(), a.value?.click(), n.close());
4124
4163
  };
4125
- return te(() => t = n.registerItem(a.value)), (r, i) => (v(), m("div", {
4164
+ return te(() => t = n.registerItem(a.value)), (r, i) => (v(), f("div", {
4126
4165
  ref_key: "itemRef",
4127
4166
  ref: a,
4128
4167
  role: "menuitem",
@@ -4130,13 +4169,13 @@ const Ol = {
4130
4169
  tabindex: "-1",
4131
4170
  onKeydown: s,
4132
4171
  onClick: i[0] || (i[0] = //@ts-ignore
4133
- (...o) => I(n).close && I(n).close(...o)),
4172
+ (...o) => B(n).close && B(n).close(...o)),
4134
4173
  onPointerenter: i[1] || (i[1] = (o) => a.value?.focus())
4135
4174
  }, [
4136
- W(r.$slots, "default", {}, void 0, !0)
4175
+ U(r.$slots, "default", {}, void 0, !0)
4137
4176
  ], 544));
4138
4177
  }
4139
- }), ns = /* @__PURE__ */ j(xl, [["__scopeId", "data-v-69de3d9c"]]), os = S({
4178
+ }), n1 = /* @__PURE__ */ W(xl, [["__scopeId", "data-v-69de3d9c"]]), o1 = R({
4140
4179
  name: "Table",
4141
4180
  props: {
4142
4181
  columns: {
@@ -4167,7 +4206,7 @@ const Ol = {
4167
4206
  if (!o.sortable) return;
4168
4207
  const l = e.sort?.key === o.key && e.sort.direction === "asc" ? "desc" : "asc";
4169
4208
  n("update:sort", { key: o.key, direction: l });
4170
- }, s = () => window.matchMedia("(max-width: 640px)").matches, r = () => F(
4209
+ }, s = () => window.matchMedia("(max-width: 640px)").matches, r = () => z(
4171
4210
  "div",
4172
4211
  {
4173
4212
  class: "rs-table-mobile",
@@ -4175,7 +4214,7 @@ const Ol = {
4175
4214
  "aria-busy": e.loading || void 0
4176
4215
  },
4177
4216
  e.loading ? t.loading?.() ?? "Loading..." : e.data.length === 0 ? t.empty?.() ?? "No data available." : e.data.map(
4178
- (o, l) => F(
4217
+ (o, l) => z(
4179
4218
  "div",
4180
4219
  {
4181
4220
  key: o.id ?? l,
@@ -4188,16 +4227,16 @@ const Ol = {
4188
4227
  } : void 0
4189
4228
  },
4190
4229
  e.columns.map(
4191
- (c) => F(
4230
+ (c) => z(
4192
4231
  "div",
4193
4232
  { class: "rs-table-card-row" },
4194
4233
  [
4195
- F(
4234
+ z(
4196
4235
  "span",
4197
4236
  { class: "rs-table-card-label" },
4198
4237
  c.header
4199
4238
  ),
4200
- F(
4239
+ z(
4201
4240
  "span",
4202
4241
  { class: "rs-table-card-value" },
4203
4242
  t.cell?.({
@@ -4211,27 +4250,27 @@ const Ol = {
4211
4250
  )
4212
4251
  )
4213
4252
  )
4214
- ), i = () => F(
4253
+ ), i = () => z(
4215
4254
  "div",
4216
4255
  { class: "rs-table-container" },
4217
- F(
4256
+ z(
4218
4257
  "div",
4219
4258
  { class: "rs-table-scroll" },
4220
- F(
4259
+ z(
4221
4260
  "table",
4222
4261
  {
4223
4262
  class: "rs-table",
4224
4263
  "aria-busy": e.loading || void 0
4225
4264
  },
4226
4265
  [
4227
- F(
4266
+ z(
4228
4267
  "thead",
4229
4268
  null,
4230
- F(
4269
+ z(
4231
4270
  "tr",
4232
4271
  null,
4233
4272
  e.columns.map(
4234
- (o) => F(
4273
+ (o) => z(
4235
4274
  "th",
4236
4275
  {
4237
4276
  key: o.key,
@@ -4247,15 +4286,15 @@ const Ol = {
4247
4286
  } : void 0,
4248
4287
  scope: "col"
4249
4288
  },
4250
- F(
4289
+ z(
4251
4290
  "div",
4252
4291
  { class: "rs-table-th-content" },
4253
4292
  [
4254
- F(
4293
+ z(
4255
4294
  "span",
4256
4295
  o.header
4257
4296
  ),
4258
- o.sortable ? F(
4297
+ o.sortable ? z(
4259
4298
  ue,
4260
4299
  {
4261
4300
  name: e.sort?.key === o.key ? e.sort.direction === "asc" ? "sortAsc" : "sortDesc" : "sort",
@@ -4268,15 +4307,15 @@ const Ol = {
4268
4307
  )
4269
4308
  )
4270
4309
  ),
4271
- F(
4310
+ z(
4272
4311
  "tbody",
4273
4312
  null,
4274
4313
  e.loading ? [
4275
- F(
4314
+ z(
4276
4315
  "tr",
4277
4316
  null,
4278
4317
  [
4279
- F(
4318
+ z(
4280
4319
  "td",
4281
4320
  { colspan: e.columns.length },
4282
4321
  t.loading?.() ?? "Loading..."
@@ -4284,11 +4323,11 @@ const Ol = {
4284
4323
  ]
4285
4324
  )
4286
4325
  ] : e.data.length === 0 ? [
4287
- F(
4326
+ z(
4288
4327
  "tr",
4289
4328
  null,
4290
4329
  [
4291
- F(
4330
+ z(
4292
4331
  "td",
4293
4332
  { colspan: e.columns.length },
4294
4333
  t.empty?.() ?? "No data available."
@@ -4296,7 +4335,7 @@ const Ol = {
4296
4335
  ]
4297
4336
  )
4298
4337
  ] : e.data.map(
4299
- (o, l) => F(
4338
+ (o, l) => z(
4300
4339
  "tr",
4301
4340
  {
4302
4341
  key: o.id ?? l,
@@ -4309,7 +4348,7 @@ const Ol = {
4309
4348
  "data-clickable": e.rowClickable || void 0
4310
4349
  },
4311
4350
  e.columns.map(
4312
- (c) => F(
4351
+ (c) => z(
4313
4352
  "td",
4314
4353
  {
4315
4354
  key: c.key,
@@ -4333,14 +4372,14 @@ const Ol = {
4333
4372
  );
4334
4373
  return () => {
4335
4374
  const o = e.responsive === "card" || e.responsive === "auto" && s();
4336
- return F(
4375
+ return z(
4337
4376
  "div",
4338
4377
  { class: "rs-table-container" },
4339
4378
  o ? r() : i()
4340
4379
  );
4341
4380
  };
4342
4381
  }
4343
- }), Ae = /* @__PURE__ */ Symbol("AccordionContext"), ls = S({
4382
+ }), Te = /* @__PURE__ */ Symbol("AccordionContext"), l1 = R({
4344
4383
  name: "Accordion",
4345
4384
  props: {
4346
4385
  multiple: { type: Boolean, default: !1 },
@@ -4350,25 +4389,25 @@ const Ol = {
4350
4389
  }
4351
4390
  },
4352
4391
  setup(e, { slots: n }) {
4353
- const t = p([]), a = p(new Set(e.defaultOpen)), s = (g) => {
4392
+ const t = m([]), a = m(new Set(e.defaultOpen)), s = (g) => {
4354
4393
  if (a.value.has(g)) {
4355
4394
  a.value.delete(g);
4356
4395
  return;
4357
4396
  }
4358
4397
  e.multiple || a.value.clear(), a.value.add(g);
4359
4398
  }, r = (g) => {
4360
- g.disabled || t.value.includes(g) || (t.value.push(g), t.value.sort(($, M) => $.offsetTop - M.offsetTop));
4361
- }, i = (g) => t.value = t.value.filter(($) => $ !== g), o = (g) => {
4362
- const $ = t.value.indexOf(g);
4363
- t.value[($ + 1) % t.value.length]?.focus();
4399
+ g.disabled || t.value.includes(g) || (t.value.push(g), t.value.sort((M, L) => M.offsetTop - L.offsetTop));
4400
+ }, i = (g) => t.value = t.value.filter((M) => M !== g), o = (g) => {
4401
+ const M = t.value.indexOf(g);
4402
+ t.value[(M + 1) % t.value.length]?.focus();
4364
4403
  }, l = (g) => {
4365
- const $ = t.value.indexOf(g);
4366
- t.value[($ - 1 + t.value.length) % t.value.length]?.focus();
4404
+ const M = t.value.indexOf(g);
4405
+ t.value[(M - 1 + t.value.length) % t.value.length]?.focus();
4367
4406
  }, c = () => t.value[0]?.focus(), d = () => {
4368
4407
  const g = t.value;
4369
4408
  g.length && g[g.length - 1]?.focus();
4370
4409
  };
4371
- return Ce(Ae, {
4410
+ return Ce(Te, {
4372
4411
  multiple: e.multiple,
4373
4412
  openItems: a,
4374
4413
  toggle: s,
@@ -4380,17 +4419,17 @@ const Ol = {
4380
4419
  focusLast: d
4381
4420
  }), () => n.default?.();
4382
4421
  }
4383
- }), ss = S({
4422
+ }), s1 = R({
4384
4423
  name: "AccordionItem",
4385
4424
  props: {
4386
4425
  id: { type: String, required: !0 },
4387
4426
  disabled: { type: Boolean, default: !1 }
4388
4427
  },
4389
4428
  setup(e, { slots: n }) {
4390
- const t = se(Ae);
4429
+ const t = le(Te);
4391
4430
  if (!t) throw new Error("AccordionItem must be used inside Accordion");
4392
- const a = L(() => t.openItems.value.has(e.id));
4393
- return () => F(
4431
+ const a = x(() => t.openItems.value.has(e.id));
4432
+ return () => z(
4394
4433
  "div",
4395
4434
  {
4396
4435
  class: "rs-accordion-item",
@@ -4399,16 +4438,16 @@ const Ol = {
4399
4438
  n.default?.({ open: a.value })
4400
4439
  );
4401
4440
  }
4402
- }), rs = S({
4441
+ }), r1 = R({
4403
4442
  name: "AccordionHeader",
4404
4443
  props: {
4405
4444
  id: { type: String, required: !0 },
4406
4445
  disabled: { type: Boolean, default: !1 }
4407
4446
  },
4408
4447
  setup(e, { slots: n }) {
4409
- const t = se(Ae), a = p(null);
4448
+ const t = le(Te), a = m(null);
4410
4449
  if (!t) throw new Error("AccordionHeader must be used inside Accordion");
4411
- const s = L(() => t.openItems.value.has(e.id)), r = () => {
4450
+ const s = x(() => t.openItems.value.has(e.id)), r = () => {
4412
4451
  e.disabled || t.toggle?.(e.id);
4413
4452
  }, i = (o) => {
4414
4453
  if (a.value)
@@ -4429,9 +4468,9 @@ const Ol = {
4429
4468
  };
4430
4469
  return te(() => {
4431
4470
  a.value && t.registerHeader(a.value);
4432
- }), _e(() => {
4471
+ }), Ve(() => {
4433
4472
  a.value && t.unregisterHeader(a.value);
4434
- }), () => F(
4473
+ }), () => z(
4435
4474
  "button",
4436
4475
  {
4437
4476
  ref: a,
@@ -4446,29 +4485,29 @@ const Ol = {
4446
4485
  onKeydown: i
4447
4486
  },
4448
4487
  [
4449
- F(
4488
+ z(
4450
4489
  "span",
4451
4490
  { class: "rs-accordion-trigger__label" },
4452
4491
  n.default?.()
4453
4492
  ),
4454
- F(
4493
+ z(
4455
4494
  "span",
4456
4495
  { class: "rs-accordion-trigger__icon", "aria-hidden": "true" },
4457
- F(ue, { name: "directionDown" })
4496
+ z(ue, { name: "directionDown" })
4458
4497
  )
4459
4498
  ]
4460
4499
  );
4461
4500
  }
4462
- }), is = S({
4501
+ }), i1 = R({
4463
4502
  name: "AccordionPanel",
4464
4503
  props: {
4465
4504
  id: { type: String, required: !0 }
4466
4505
  },
4467
4506
  setup(e, { slots: n }) {
4468
- const t = se(Ae);
4507
+ const t = le(Te);
4469
4508
  if (!t) throw new Error("AccordionPanel must be used inside Accordion");
4470
- const a = L(() => t.openItems.value.has(e.id));
4471
- return () => F(
4509
+ const a = x(() => t.openItems.value.has(e.id));
4510
+ return () => z(
4472
4511
  "div",
4473
4512
  {
4474
4513
  id: `panel-${e.id}`,
@@ -4478,7 +4517,7 @@ const Ol = {
4478
4517
  "data-state": a.value ? "open" : "closed",
4479
4518
  "aria-labelledby": `header-${e.id}`
4480
4519
  },
4481
- F(
4520
+ z(
4482
4521
  "div",
4483
4522
  { class: "rs-accordion-panel__inner" },
4484
4523
  n.default?.()
@@ -4487,10 +4526,10 @@ const Ol = {
4487
4526
  }
4488
4527
  });
4489
4528
  export {
4490
- ls as Accordion,
4491
- rs as AccordionHeader,
4492
- ss as AccordionItem,
4493
- is as AccordionPanel,
4529
+ l1 as Accordion,
4530
+ r1 as AccordionHeader,
4531
+ s1 as AccordionItem,
4532
+ i1 as AccordionPanel,
4494
4533
  El as Autocomplete,
4495
4534
  _l as Avatar,
4496
4535
  Al as Breadcrumb,
@@ -4502,30 +4541,30 @@ export {
4502
4541
  jl as Carousel,
4503
4542
  Xl as CarouselItem,
4504
4543
  Sl as Checkbox,
4505
- es as Dropdown,
4506
- ns as DropdownItem,
4507
- as as DropdownMenu,
4508
- ts as DropdownTrigger,
4509
- Je as Editor,
4544
+ e1 as Dropdown,
4545
+ n1 as DropdownItem,
4546
+ a1 as DropdownMenu,
4547
+ t1 as DropdownTrigger,
4548
+ Ge as Editor,
4510
4549
  Jn as Highlight,
4511
4550
  ue as Icon,
4512
4551
  $e as Image,
4513
- tt as ImageGallery,
4552
+ et as ImageGallery,
4514
4553
  Vl as Input,
4515
4554
  Hl as Link,
4516
- Oe as Modal,
4517
- vt as ModalBody,
4518
- ft as ModalClose,
4519
- ut as ModalContent,
4555
+ De as Modal,
4556
+ ct as ModalBody,
4557
+ vt as ModalClose,
4558
+ it as ModalContent,
4520
4559
  Bl as ModalFooter,
4521
- ct as ModalHeader,
4522
- dt as ModalTitle,
4560
+ dt as ModalHeader,
4561
+ ut as ModalTitle,
4523
4562
  Zl as RadioButton,
4524
4563
  Rl as Select,
4525
- mt as Spinner,
4564
+ ft as Spinner,
4526
4565
  Kl as Step,
4527
4566
  Pl as Steps,
4528
- os as Table,
4567
+ o1 as Table,
4529
4568
  Gl as Tabs,
4530
4569
  Ql as TabsContent,
4531
4570
  Jl as TabsList,
@@ -4535,8 +4574,8 @@ export {
4535
4574
  Ul as Timeline,
4536
4575
  Wl as TimelineItem,
4537
4576
  Ol as ToastPlugin,
4538
- at as ToastViewport,
4539
- Qe as Tooltip,
4540
- Ye as Upload,
4577
+ tt as ToastViewport,
4578
+ Ye as Tooltip,
4579
+ Je as Upload,
4541
4580
  Dl as toast
4542
4581
  };