@vue/devtools-ui 7.0.15 → 7.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,14 +1,14 @@
1
1
  // @unocss-include
2
2
 
3
- import { Dropdown as Re, VClosePopper as $e, Tooltip as We } from "floating-vue";
4
- import { VTooltip as $o } from "floating-vue";
5
- import { openBlock as p, createElementBlock as $, createElementVNode as b, defineComponent as D, useAttrs as ze, computed as _, useSlots as _e, createBlock as M, resolveDynamicComponent as Ce, mergeProps as q, withCtx as y, renderSlot as w, unref as k, createCommentVNode as E, normalizeClass as S, ref as T, watch as R, customRef as Ve, isRef as Q, getCurrentScope as je, onScopeDispose as Ie, toRef as He, readonly as Se, onMounted as Y, nextTick as Z, getCurrentInstance as ue, shallowRef as Je, watchEffect as X, normalizeProps as de, guardReactiveProps as ce, Teleport as Be, createVNode as x, Transition as fe, normalizeStyle as pe, createTextVNode as j, toDisplayString as I, withDirectives as me, vModelDynamic as Ue, provide as Ge, createSlots as Te, inject as Ke, Fragment as he, renderList as be, withModifiers as Ye, h as Xe, render as ye } from "vue";
6
- const ve = (e, o) => {
3
+ import { Dropdown as Re, VClosePopper as _e, Tooltip as ze } from "floating-vue";
4
+ import { VTooltip as _o } from "floating-vue";
5
+ import { openBlock as p, createElementBlock as $, createElementVNode as b, defineComponent as T, useAttrs as je, computed as _, useSlots as Ce, createBlock as M, resolveDynamicComponent as Ve, mergeProps as Q, withCtx as y, renderSlot as w, unref as k, createCommentVNode as E, normalizeClass as V, ref as B, watch as L, customRef as Se, isRef as Z, getCurrentScope as Ie, onScopeDispose as He, toRef as Je, readonly as Be, onMounted as Y, nextTick as ee, getCurrentInstance as de, shallowRef as Ue, watchEffect as q, normalizeProps as ce, guardReactiveProps as fe, Teleport as Te, createVNode as W, Transition as pe, normalizeStyle as me, createTextVNode as I, toDisplayString as H, withDirectives as ve, vModelDynamic as Ge, provide as Ke, createSlots as De, inject as Ye, Fragment as be, renderList as ye, withModifiers as Xe, h as qe, render as we } from "vue";
6
+ const ge = (e, o) => {
7
7
  const t = e.__vccOpts || e;
8
8
  for (const [a, n] of o)
9
9
  t[a] = n;
10
10
  return t;
11
- }, qe = {}, Qe = { class: "h-3 w-3 $ui-inline-fcc" }, Ze = /* @__PURE__ */ b("svg", {
11
+ }, Qe = {}, Ze = { class: "h-3 w-3 $ui-inline-fcc" }, et = /* @__PURE__ */ b("svg", {
12
12
  class: "animate-spin",
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
14
  fill: "none",
@@ -27,13 +27,13 @@ const ve = (e, o) => {
27
27
  fill: "currentColor",
28
28
  d: "M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"
29
29
  })
30
- ], -1), et = [
31
- Ze
30
+ ], -1), tt = [
31
+ et
32
32
  ];
33
- function tt(e, o) {
34
- return p(), $("div", Qe, et);
33
+ function ot(e, o) {
34
+ return p(), $("div", Ze, tt);
35
35
  }
36
- const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__PURE__ */ D({
36
+ const Oe = /* @__PURE__ */ ge(Qe, [["render", ot]]), nt = { key: 2 }, K = /* @__PURE__ */ T({
37
37
  inheritAttrs: !1,
38
38
  __name: "Button",
39
39
  props: {
@@ -47,15 +47,15 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
47
47
  },
48
48
  emits: ["click"],
49
49
  setup(e, { emit: o }) {
50
- const t = e, a = o, n = ze(), s = _(() => n.to ? "router-link" : n.href ? "a" : "button"), r = _(() => t.loading || t.disabled);
51
- function i(u) {
50
+ const t = e, a = o, n = je(), l = _(() => n.to ? "router-link" : n.href ? "a" : "button"), r = _(() => t.loading || t.disabled);
51
+ function s(u) {
52
52
  if (r.value) {
53
53
  u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation();
54
54
  return;
55
55
  }
56
56
  a("click", u);
57
57
  }
58
- const l = {
58
+ const i = {
59
59
  common: {
60
60
  default: "active:bg-primary-100-darker dark:active:bg-gray-800-darker",
61
61
  primary: "active:bg-primary-500-darker",
@@ -92,12 +92,12 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
92
92
  info: "hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",
93
93
  success: "hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"
94
94
  }
95
- }, d = _e(), c = _(() => t.flat ? l.flat[t.type] : t.outlined ? l.outlined[t.type] : l.normal[t.type]);
96
- return (u, f) => (p(), M(Ce(s.value), q(u.$attrs, {
95
+ }, c = Ce(), d = _(() => t.flat ? i.flat[t.type] : t.outlined ? i.outlined[t.type] : i.normal[t.type]);
96
+ return (u, f) => (p(), M(Ve(l.value), Q(u.$attrs, {
97
97
  role: "button",
98
98
  "aria-disabled": r.value,
99
99
  class: ["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition", [
100
- [l.common[t.type]],
100
+ [i.common[t.type]],
101
101
  {
102
102
  "rounded-full": t.round === "full",
103
103
  "$ui-base-br": t.round === "normal",
@@ -107,20 +107,20 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
107
107
  [
108
108
  u.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
109
109
  u.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
110
- c.value
110
+ d.value
111
111
  ]
112
112
  ]],
113
- onClickCapture: i
113
+ onClickCapture: s
114
114
  }), {
115
115
  default: y(() => [
116
- u.loading ? (p(), M(De, {
116
+ u.loading ? (p(), M(Oe, {
117
117
  key: 0,
118
118
  class: "mt0.5 h-full w3"
119
119
  })) : w(u.$slots, "icon", {
120
120
  key: 1,
121
121
  class: "h-full w3 $ui-inline-fcc"
122
122
  }),
123
- k(d).default ? (p(), $("div", ot, [
123
+ k(c).default ? (p(), $("div", nt, [
124
124
  w(u.$slots, "default")
125
125
  ])) : E("", !0),
126
126
  w(u.$slots, "icon-right")
@@ -128,13 +128,13 @@ const De = /* @__PURE__ */ ve(qe, [["render", tt]]), ot = { key: 2 }, K = /* @__
128
128
  _: 3
129
129
  }, 16, ["aria-disabled", "class"]));
130
130
  }
131
- }), nt = {}, rt = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
132
- function at(e, o) {
133
- return p(), $("span", rt, [
131
+ }), rt = {}, at = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
132
+ function lt(e, o) {
133
+ return p(), $("span", at, [
134
134
  w(e.$slots, "default")
135
135
  ]);
136
136
  }
137
- const so = /* @__PURE__ */ ve(nt, [["render", at]]), ie = /* @__PURE__ */ D({
137
+ const io = /* @__PURE__ */ ge(rt, [["render", lt]]), ue = /* @__PURE__ */ T({
138
138
  __name: "Icon",
139
139
  props: {
140
140
  icon: {},
@@ -142,259 +142,259 @@ const so = /* @__PURE__ */ ve(nt, [["render", at]]), ie = /* @__PURE__ */ D({
142
142
  action: { type: Boolean, default: !1 }
143
143
  },
144
144
  setup(e) {
145
- return (o, t) => (p(), M(Ce(o.inline ? "span" : "div"), {
146
- class: S(["$ui-base", [o.icon, o.action ? "cursor-pointer hover:op50" : ""]])
145
+ return (o, t) => (p(), M(Ve(o.inline ? "span" : "div"), {
146
+ class: V(["$ui-base", [o.icon, o.action ? "cursor-pointer hover:op50" : ""]])
147
147
  }, null, 8, ["class"]));
148
148
  }
149
149
  });
150
- function ae(e) {
151
- return je() ? (Ie(e), !0) : !1;
150
+ function le(e) {
151
+ return Ie() ? (He(e), !0) : !1;
152
152
  }
153
- function lt(e, o, { enumerable: t = !1, unwrap: a = !0 } = {}) {
154
- for (const [n, s] of Object.entries(o))
155
- n !== "value" && (Q(s) && a ? Object.defineProperty(e, n, {
153
+ function st(e, o, { enumerable: t = !1, unwrap: a = !0 } = {}) {
154
+ for (const [n, l] of Object.entries(o))
155
+ n !== "value" && (Z(l) && a ? Object.defineProperty(e, n, {
156
156
  get() {
157
- return s.value;
157
+ return l.value;
158
158
  },
159
159
  set(r) {
160
- s.value = r;
160
+ l.value = r;
161
161
  },
162
162
  enumerable: t
163
- }) : Object.defineProperty(e, n, { value: s, enumerable: t }));
163
+ }) : Object.defineProperty(e, n, { value: l, enumerable: t }));
164
164
  return e;
165
165
  }
166
166
  function N(e) {
167
167
  return typeof e == "function" ? e() : k(e);
168
168
  }
169
- const Oe = typeof window < "u" && typeof document < "u";
169
+ const Me = typeof window < "u" && typeof document < "u";
170
170
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
171
- const st = (e) => typeof e < "u", it = Object.prototype.toString, ut = (e) => it.call(e) === "[object Object]", ne = () => {
172
- }, we = /* @__PURE__ */ dt();
173
- function dt() {
171
+ const it = (e) => typeof e < "u", ut = Object.prototype.toString, dt = (e) => ut.call(e) === "[object Object]", re = () => {
172
+ }, ke = /* @__PURE__ */ ct();
173
+ function ct() {
174
174
  var e, o;
175
- return Oe && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
175
+ return Me && ((e = window == null ? void 0 : window.navigator) == null ? void 0 : e.userAgent) && (/iP(ad|hone|od)/.test(window.navigator.userAgent) || ((o = window == null ? void 0 : window.navigator) == null ? void 0 : o.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window == null ? void 0 : window.navigator.userAgent));
176
176
  }
177
- function Me(e, o) {
177
+ function Ae(e, o) {
178
178
  function t(...a) {
179
- return new Promise((n, s) => {
180
- Promise.resolve(e(() => o.apply(this, a), { fn: o, thisArg: this, args: a })).then(n).catch(s);
179
+ return new Promise((n, l) => {
180
+ Promise.resolve(e(() => o.apply(this, a), { fn: o, thisArg: this, args: a })).then(n).catch(l);
181
181
  });
182
182
  }
183
183
  return t;
184
184
  }
185
- const Ae = (e) => e();
186
- function ct(e, o = {}) {
187
- let t, a, n = ne;
188
- const s = (i) => {
189
- clearTimeout(i), n(), n = ne;
185
+ const Ee = (e) => e();
186
+ function ft(e, o = {}) {
187
+ let t, a, n = re;
188
+ const l = (s) => {
189
+ clearTimeout(s), n(), n = re;
190
190
  };
191
- return (i) => {
192
- const l = N(e), d = N(o.maxWait);
193
- return t && s(t), l <= 0 || d !== void 0 && d <= 0 ? (a && (s(a), a = null), Promise.resolve(i())) : new Promise((c, u) => {
194
- n = o.rejectOnCancel ? u : c, d && !a && (a = setTimeout(() => {
195
- t && s(t), a = null, c(i());
196
- }, d)), t = setTimeout(() => {
197
- a && s(a), a = null, c(i());
198
- }, l);
191
+ return (s) => {
192
+ const i = N(e), c = N(o.maxWait);
193
+ return t && l(t), i <= 0 || c !== void 0 && c <= 0 ? (a && (l(a), a = null), Promise.resolve(s())) : new Promise((d, u) => {
194
+ n = o.rejectOnCancel ? u : d, c && !a && (a = setTimeout(() => {
195
+ t && l(t), a = null, d(s());
196
+ }, c)), t = setTimeout(() => {
197
+ a && l(a), a = null, d(s());
198
+ }, i);
199
199
  });
200
200
  };
201
201
  }
202
- function ft(e = Ae) {
203
- const o = T(!0);
202
+ function pt(e = Ee) {
203
+ const o = B(!0);
204
204
  function t() {
205
205
  o.value = !1;
206
206
  }
207
207
  function a() {
208
208
  o.value = !0;
209
209
  }
210
- const n = (...s) => {
211
- o.value && e(...s);
210
+ const n = (...l) => {
211
+ o.value && e(...l);
212
212
  };
213
- return { isActive: Se(o), pause: t, resume: a, eventFilter: n };
213
+ return { isActive: Be(o), pause: t, resume: a, eventFilter: n };
214
214
  }
215
- function pt(e) {
216
- return e || ue();
215
+ function mt(e) {
216
+ return e || de();
217
217
  }
218
- function Ee(...e) {
218
+ function Ne(...e) {
219
219
  if (e.length !== 1)
220
- return He(...e);
220
+ return Je(...e);
221
221
  const o = e[0];
222
- return typeof o == "function" ? Se(Ve(() => ({ get: o, set: ne }))) : T(o);
222
+ return typeof o == "function" ? Be(Se(() => ({ get: o, set: re }))) : B(o);
223
223
  }
224
- function mt(e, o = 200, t = {}) {
225
- return Me(
226
- ct(o, t),
224
+ function vt(e, o = 200, t = {}) {
225
+ return Ae(
226
+ ft(o, t),
227
227
  e
228
228
  );
229
229
  }
230
- function vt(e, o = 200, t = {}) {
231
- const a = T(e.value), n = mt(() => {
230
+ function gt(e, o = 200, t = {}) {
231
+ const a = B(e.value), n = vt(() => {
232
232
  a.value = e.value;
233
233
  }, o, t);
234
- return R(e, () => n()), a;
234
+ return L(e, () => n()), a;
235
235
  }
236
- function gt(e, o = {}) {
236
+ function ht(e, o = {}) {
237
237
  let t = e, a, n;
238
- const s = Ve((f, m) => (a = f, n = m, {
238
+ const l = Se((f, m) => (a = f, n = m, {
239
239
  get() {
240
240
  return r();
241
241
  },
242
242
  set(g) {
243
- i(g);
243
+ s(g);
244
244
  }
245
245
  }));
246
246
  function r(f = !0) {
247
247
  return f && a(), t;
248
248
  }
249
- function i(f, m = !0) {
249
+ function s(f, m = !0) {
250
250
  var g, h;
251
251
  if (f === t)
252
252
  return;
253
- const O = t;
254
- ((g = o.onBeforeChange) == null ? void 0 : g.call(o, f, O)) !== !1 && (t = f, (h = o.onChanged) == null || h.call(o, f, O), m && n());
253
+ const D = t;
254
+ ((g = o.onBeforeChange) == null ? void 0 : g.call(o, f, D)) !== !1 && (t = f, (h = o.onChanged) == null || h.call(o, f, D), m && n());
255
255
  }
256
- return lt(
257
- s,
256
+ return st(
257
+ l,
258
258
  {
259
259
  get: r,
260
- set: i,
260
+ set: s,
261
261
  untrackedGet: () => r(!1),
262
- silentSet: (f) => i(f, !1),
262
+ silentSet: (f) => s(f, !1),
263
263
  peek: () => r(!1),
264
- lay: (f) => i(f, !1)
264
+ lay: (f) => s(f, !1)
265
265
  },
266
266
  { enumerable: !0 }
267
267
  );
268
268
  }
269
- function ht(e, o, t = {}) {
269
+ function bt(e, o, t = {}) {
270
270
  const {
271
- eventFilter: a = Ae,
271
+ eventFilter: a = Ee,
272
272
  ...n
273
273
  } = t;
274
- return R(
274
+ return L(
275
275
  e,
276
- Me(
276
+ Ae(
277
277
  a,
278
278
  o
279
279
  ),
280
280
  n
281
281
  );
282
282
  }
283
- function bt(e, o, t = {}) {
283
+ function yt(e, o, t = {}) {
284
284
  const {
285
285
  eventFilter: a,
286
286
  ...n
287
- } = t, { eventFilter: s, pause: r, resume: i, isActive: l } = ft(a);
288
- return { stop: ht(
287
+ } = t, { eventFilter: l, pause: r, resume: s, isActive: i } = pt(a);
288
+ return { stop: bt(
289
289
  e,
290
290
  o,
291
291
  {
292
292
  ...n,
293
- eventFilter: s
293
+ eventFilter: l
294
294
  }
295
- ), pause: r, resume: i, isActive: l };
295
+ ), pause: r, resume: s, isActive: i };
296
296
  }
297
- function ge(e, o = !0, t) {
298
- pt() ? Y(e, t) : o ? e() : Z(e);
297
+ function he(e, o = !0, t) {
298
+ mt() ? Y(e, t) : o ? e() : ee(e);
299
299
  }
300
- function yt(e = !1, o = {}) {
300
+ function wt(e = !1, o = {}) {
301
301
  const {
302
302
  truthyValue: t = !0,
303
303
  falsyValue: a = !1
304
- } = o, n = Q(e), s = T(e);
305
- function r(i) {
304
+ } = o, n = Z(e), l = B(e);
305
+ function r(s) {
306
306
  if (arguments.length)
307
- return s.value = i, s.value;
307
+ return l.value = s, l.value;
308
308
  {
309
- const l = N(t);
310
- return s.value = s.value === l ? N(a) : l, s.value;
309
+ const i = N(t);
310
+ return l.value = l.value === i ? N(a) : i, l.value;
311
311
  }
312
312
  }
313
- return n ? r : [s, r];
313
+ return n ? r : [l, r];
314
314
  }
315
- function z(e) {
315
+ function j(e) {
316
316
  var o;
317
317
  const t = N(e);
318
318
  return (o = t == null ? void 0 : t.$el) != null ? o : t;
319
319
  }
320
- const H = Oe ? window : void 0;
321
- function re(...e) {
320
+ const J = Me ? window : void 0;
321
+ function ae(...e) {
322
322
  let o, t, a, n;
323
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, a, n] = e, o = H) : [o, t, a, n] = e, !o)
324
- return ne;
323
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, a, n] = e, o = J) : [o, t, a, n] = e, !o)
324
+ return re;
325
325
  Array.isArray(t) || (t = [t]), Array.isArray(a) || (a = [a]);
326
- const s = [], r = () => {
327
- s.forEach((c) => c()), s.length = 0;
328
- }, i = (c, u, f, m) => (c.addEventListener(u, f, m), () => c.removeEventListener(u, f, m)), l = R(
329
- () => [z(o), N(n)],
330
- ([c, u]) => {
331
- if (r(), !c)
326
+ const l = [], r = () => {
327
+ l.forEach((d) => d()), l.length = 0;
328
+ }, s = (d, u, f, m) => (d.addEventListener(u, f, m), () => d.removeEventListener(u, f, m)), i = L(
329
+ () => [j(o), N(n)],
330
+ ([d, u]) => {
331
+ if (r(), !d)
332
332
  return;
333
- const f = ut(u) ? { ...u } : u;
334
- s.push(
335
- ...t.flatMap((m) => a.map((g) => i(c, m, g, f)))
333
+ const f = dt(u) ? { ...u } : u;
334
+ l.push(
335
+ ...t.flatMap((m) => a.map((g) => s(d, m, g, f)))
336
336
  );
337
337
  },
338
338
  { immediate: !0, flush: "post" }
339
- ), d = () => {
340
- l(), r();
339
+ ), c = () => {
340
+ i(), r();
341
341
  };
342
- return ae(d), d;
342
+ return le(c), c;
343
343
  }
344
- function wt(e) {
344
+ function kt(e) {
345
345
  return typeof e == "function" ? e : typeof e == "string" ? (o) => o.key === e : Array.isArray(e) ? (o) => e.includes(o.key) : () => !0;
346
346
  }
347
- function Ne(...e) {
347
+ function Pe(...e) {
348
348
  let o, t, a = {};
349
349
  e.length === 3 ? (o = e[0], t = e[1], a = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (o = !0, t = e[0], a = e[1]) : (o = e[0], t = e[1]) : (o = !0, t = e[0]);
350
350
  const {
351
- target: n = H,
352
- eventName: s = "keydown",
351
+ target: n = J,
352
+ eventName: l = "keydown",
353
353
  passive: r = !1,
354
- dedupe: i = !1
355
- } = a, l = wt(o);
356
- return re(n, s, (c) => {
357
- c.repeat && N(i) || l(c) && t(c);
354
+ dedupe: s = !1
355
+ } = a, i = kt(o);
356
+ return ae(n, l, (d) => {
357
+ d.repeat && N(s) || i(d) && t(d);
358
358
  }, r);
359
359
  }
360
- function kt() {
361
- const e = T(!1);
362
- return ue() && Y(() => {
360
+ function $t() {
361
+ const e = B(!1), o = de();
362
+ return o && Y(() => {
363
363
  e.value = !0;
364
- }), e;
364
+ }, o), e;
365
365
  }
366
- function Pe(e) {
367
- const o = kt();
366
+ function We(e) {
367
+ const o = $t();
368
368
  return _(() => (o.value, !!e()));
369
369
  }
370
- function $t(e, o = {}) {
371
- const { window: t = H } = o, a = Pe(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
370
+ function _t(e, o = {}) {
371
+ const { window: t = J } = o, a = We(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
372
372
  let n;
373
- const s = T(!1), r = (d) => {
374
- s.value = d.matches;
375
- }, i = () => {
373
+ const l = B(!1), r = (c) => {
374
+ l.value = c.matches;
375
+ }, s = () => {
376
376
  n && ("removeEventListener" in n ? n.removeEventListener("change", r) : n.removeListener(r));
377
- }, l = X(() => {
378
- a.value && (i(), n = t.matchMedia(N(e)), "addEventListener" in n ? n.addEventListener("change", r) : n.addListener(r), s.value = n.matches);
377
+ }, i = q(() => {
378
+ a.value && (s(), n = t.matchMedia(N(e)), "addEventListener" in n ? n.addEventListener("change", r) : n.addListener(r), l.value = n.matches);
379
379
  });
380
- return ae(() => {
381
- l(), i(), n = void 0;
382
- }), s;
380
+ return le(() => {
381
+ i(), s(), n = void 0;
382
+ }), l;
383
383
  }
384
- function _t(e) {
384
+ function Ct(e) {
385
385
  return JSON.parse(JSON.stringify(e));
386
386
  }
387
- const ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, te = "__vueuse_ssr_handlers__", Ct = /* @__PURE__ */ Vt();
388
- function Vt() {
389
- return te in ee || (ee[te] = ee[te] || {}), ee[te];
387
+ const te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, oe = "__vueuse_ssr_handlers__", Vt = /* @__PURE__ */ St();
388
+ function St() {
389
+ return oe in te || (te[oe] = te[oe] || {}), te[oe];
390
390
  }
391
391
  function xe(e, o) {
392
- return Ct[e] || o;
392
+ return Vt[e] || o;
393
393
  }
394
- function St(e) {
394
+ function Bt(e) {
395
395
  return e == null ? "any" : e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof Date ? "date" : typeof e == "boolean" ? "boolean" : typeof e == "string" ? "string" : typeof e == "object" ? "object" : Number.isNaN(e) ? "any" : "number";
396
396
  }
397
- const Bt = {
397
+ const Tt = {
398
398
  boolean: {
399
399
  read: (e) => e === "true",
400
400
  write: (e) => String(e)
@@ -427,222 +427,227 @@ const Bt = {
427
427
  read: (e) => new Date(e),
428
428
  write: (e) => e.toISOString()
429
429
  }
430
- }, ke = "vueuse-storage";
431
- function Tt(e, o, t, a = {}) {
430
+ }, $e = "vueuse-storage";
431
+ function Dt(e, o, t, a = {}) {
432
432
  var n;
433
433
  const {
434
- flush: s = "pre",
434
+ flush: l = "pre",
435
435
  deep: r = !0,
436
- listenToStorageChanges: i = !0,
437
- writeDefaults: l = !0,
438
- mergeDefaults: d = !1,
439
- shallow: c,
440
- window: u = H,
436
+ listenToStorageChanges: s = !0,
437
+ writeDefaults: i = !0,
438
+ mergeDefaults: c = !1,
439
+ shallow: d,
440
+ window: u = J,
441
441
  eventFilter: f,
442
442
  onError: m = (v) => {
443
443
  console.error(v);
444
444
  },
445
445
  initOnMounted: g
446
- } = a, h = (c ? Je : T)(typeof o == "function" ? o() : o);
446
+ } = a, h = (d ? Ue : B)(typeof o == "function" ? o() : o);
447
447
  if (!t)
448
448
  try {
449
449
  t = xe("getDefaultStorage", () => {
450
450
  var v;
451
- return (v = H) == null ? void 0 : v.localStorage;
451
+ return (v = J) == null ? void 0 : v.localStorage;
452
452
  })();
453
453
  } catch (v) {
454
454
  m(v);
455
455
  }
456
456
  if (!t)
457
457
  return h;
458
- const O = N(o), W = St(O), P = (n = a.serializer) != null ? n : Bt[W], { pause: B, resume: C } = bt(
458
+ const D = N(o), R = Bt(D), P = (n = a.serializer) != null ? n : Tt[R], { pause: S, resume: C } = yt(
459
459
  h,
460
- () => A(h.value),
461
- { flush: s, deep: r, eventFilter: f }
460
+ () => F(h.value),
461
+ { flush: l, deep: r, eventFilter: f }
462
462
  );
463
- return u && i && ge(() => {
464
- re(u, "storage", F), re(u, ke, G), g && F();
465
- }), g || F(), h;
466
- function A(v) {
463
+ u && s && he(() => {
464
+ ae(u, "storage", x), ae(u, $e, X), g && x();
465
+ }), g || x();
466
+ function A(v, O) {
467
+ u && u.dispatchEvent(new CustomEvent($e, {
468
+ detail: {
469
+ key: e,
470
+ oldValue: v,
471
+ newValue: O,
472
+ storageArea: t
473
+ }
474
+ }));
475
+ }
476
+ function F(v) {
467
477
  try {
478
+ const O = t.getItem(e);
468
479
  if (v == null)
469
- t.removeItem(e);
480
+ A(O, null), t.removeItem(e);
470
481
  else {
471
- const V = P.write(v), U = t.getItem(e);
472
- U !== V && (t.setItem(e, V), u && u.dispatchEvent(new CustomEvent(ke, {
473
- detail: {
474
- key: e,
475
- oldValue: U,
476
- newValue: V,
477
- storageArea: t
478
- }
479
- })));
482
+ const z = P.write(v);
483
+ O !== z && (t.setItem(e, z), A(O, z));
480
484
  }
481
- } catch (V) {
482
- m(V);
485
+ } catch (O) {
486
+ m(O);
483
487
  }
484
488
  }
485
- function L(v) {
486
- const V = v ? v.newValue : t.getItem(e);
487
- if (V == null)
488
- return l && O != null && t.setItem(e, P.write(O)), O;
489
- if (!v && d) {
490
- const U = P.read(V);
491
- return typeof d == "function" ? d(U, O) : W === "object" && !Array.isArray(U) ? { ...O, ...U } : U;
492
- } else
493
- return typeof V != "string" ? V : P.read(V);
494
- }
495
489
  function G(v) {
496
- F(v.detail);
490
+ const O = v ? v.newValue : t.getItem(e);
491
+ if (O == null)
492
+ return i && D != null && t.setItem(e, P.write(D)), D;
493
+ if (!v && c) {
494
+ const z = P.read(O);
495
+ return typeof c == "function" ? c(z, D) : R === "object" && !Array.isArray(z) ? { ...D, ...z } : z;
496
+ } else
497
+ return typeof O != "string" ? O : P.read(O);
497
498
  }
498
- function F(v) {
499
+ function x(v) {
499
500
  if (!(v && v.storageArea !== t)) {
500
501
  if (v && v.key == null) {
501
- h.value = O;
502
+ h.value = D;
502
503
  return;
503
504
  }
504
505
  if (!(v && v.key !== e)) {
505
- B();
506
+ S();
506
507
  try {
507
- (v == null ? void 0 : v.newValue) !== P.write(h.value) && (h.value = L(v));
508
- } catch (V) {
509
- m(V);
508
+ (v == null ? void 0 : v.newValue) !== P.write(h.value) && (h.value = G(v));
509
+ } catch (O) {
510
+ m(O);
510
511
  } finally {
511
- v ? Z(C) : C();
512
+ v ? ee(C) : C();
512
513
  }
513
514
  }
514
515
  }
515
516
  }
517
+ function X(v) {
518
+ x(v.detail);
519
+ }
520
+ return h;
516
521
  }
517
- function Dt(e) {
518
- return $t("(prefers-color-scheme: dark)", e);
522
+ function Ot(e) {
523
+ return _t("(prefers-color-scheme: dark)", e);
519
524
  }
520
- function Ot(e = {}) {
525
+ function Mt(e = {}) {
521
526
  const {
522
527
  selector: o = "html",
523
528
  attribute: t = "class",
524
529
  initialValue: a = "auto",
525
- window: n = H,
526
- storage: s,
530
+ window: n = J,
531
+ storage: l,
527
532
  storageKey: r = "vueuse-color-scheme",
528
- listenToStorageChanges: i = !0,
529
- storageRef: l,
530
- emitAuto: d,
531
- disableTransition: c = !0
533
+ listenToStorageChanges: s = !0,
534
+ storageRef: i,
535
+ emitAuto: c,
536
+ disableTransition: d = !0
532
537
  } = e, u = {
533
538
  auto: "",
534
539
  light: "light",
535
540
  dark: "dark",
536
541
  ...e.modes || {}
537
- }, f = Dt({ window: n }), m = _(() => f.value ? "dark" : "light"), g = l || (r == null ? Ee(a) : Tt(r, a, s, { window: n, listenToStorageChanges: i })), h = _(() => g.value === "auto" ? m.value : g.value), O = xe(
542
+ }, f = Ot({ window: n }), m = _(() => f.value ? "dark" : "light"), g = i || (r == null ? Ne(a) : Dt(r, a, l, { window: n, listenToStorageChanges: s })), h = _(() => g.value === "auto" ? m.value : g.value), D = xe(
538
543
  "updateHTMLAttrs",
539
- (C, A, L) => {
540
- const G = typeof C == "string" ? n == null ? void 0 : n.document.querySelector(C) : z(C);
544
+ (C, A, F) => {
545
+ const G = typeof C == "string" ? n == null ? void 0 : n.document.querySelector(C) : j(C);
541
546
  if (!G)
542
547
  return;
543
- let F;
544
- if (c) {
545
- F = n.document.createElement("style");
546
- const v = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
547
- F.appendChild(document.createTextNode(v)), n.document.head.appendChild(F);
548
+ let x;
549
+ if (d) {
550
+ x = n.document.createElement("style");
551
+ const X = "*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";
552
+ x.appendChild(document.createTextNode(X)), n.document.head.appendChild(x);
548
553
  }
549
554
  if (A === "class") {
550
- const v = L.split(/\s/g);
551
- Object.values(u).flatMap((V) => (V || "").split(/\s/g)).filter(Boolean).forEach((V) => {
552
- v.includes(V) ? G.classList.add(V) : G.classList.remove(V);
555
+ const X = F.split(/\s/g);
556
+ Object.values(u).flatMap((v) => (v || "").split(/\s/g)).filter(Boolean).forEach((v) => {
557
+ X.includes(v) ? G.classList.add(v) : G.classList.remove(v);
553
558
  });
554
559
  } else
555
- G.setAttribute(A, L);
556
- c && (n.getComputedStyle(F).opacity, document.head.removeChild(F));
560
+ G.setAttribute(A, F);
561
+ d && (n.getComputedStyle(x).opacity, document.head.removeChild(x));
557
562
  }
558
563
  );
559
- function W(C) {
564
+ function R(C) {
560
565
  var A;
561
- O(o, t, (A = u[C]) != null ? A : C);
566
+ D(o, t, (A = u[C]) != null ? A : C);
562
567
  }
563
568
  function P(C) {
564
- e.onChanged ? e.onChanged(C, W) : W(C);
569
+ e.onChanged ? e.onChanged(C, R) : R(C);
565
570
  }
566
- R(h, P, { flush: "post", immediate: !0 }), ge(() => P(h.value));
567
- const B = _({
571
+ L(h, P, { flush: "post", immediate: !0 }), he(() => P(h.value));
572
+ const S = _({
568
573
  get() {
569
- return d ? g.value : h.value;
574
+ return c ? g.value : h.value;
570
575
  },
571
576
  set(C) {
572
577
  g.value = C;
573
578
  }
574
579
  });
575
580
  try {
576
- return Object.assign(B, { store: g, system: m, state: h });
581
+ return Object.assign(S, { store: g, system: m, state: h });
577
582
  } catch {
578
- return B;
583
+ return S;
579
584
  }
580
585
  }
581
- function Mt(e, o, t = {}) {
582
- const { window: a = H, ...n } = t;
583
- let s;
584
- const r = Pe(() => a && "ResizeObserver" in a), i = () => {
585
- s && (s.disconnect(), s = void 0);
586
- }, l = _(() => Array.isArray(e) ? e.map((u) => z(u)) : [z(e)]), d = R(
587
- l,
586
+ function At(e, o, t = {}) {
587
+ const { window: a = J, ...n } = t;
588
+ let l;
589
+ const r = We(() => a && "ResizeObserver" in a), s = () => {
590
+ l && (l.disconnect(), l = void 0);
591
+ }, i = _(() => Array.isArray(e) ? e.map((u) => j(u)) : [j(e)]), c = L(
592
+ i,
588
593
  (u) => {
589
- if (i(), r.value && a) {
590
- s = new ResizeObserver(o);
594
+ if (s(), r.value && a) {
595
+ l = new ResizeObserver(o);
591
596
  for (const f of u)
592
- f && s.observe(f, n);
597
+ f && l.observe(f, n);
593
598
  }
594
599
  },
595
- { immediate: !0, flush: "post", deep: !0 }
596
- ), c = () => {
597
- i(), d();
600
+ { immediate: !0, flush: "post" }
601
+ ), d = () => {
602
+ s(), c();
598
603
  };
599
- return ae(c), {
604
+ return le(d), {
600
605
  isSupported: r,
601
- stop: c
606
+ stop: d
602
607
  };
603
608
  }
604
- function At(e, o = { width: 0, height: 0 }, t = {}) {
605
- const { window: a = H, box: n = "content-box" } = t, s = _(() => {
609
+ function Et(e, o = { width: 0, height: 0 }, t = {}) {
610
+ const { window: a = J, box: n = "content-box" } = t, l = _(() => {
606
611
  var u, f;
607
- return (f = (u = z(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : f.includes("svg");
608
- }), r = T(o.width), i = T(o.height), { stop: l } = Mt(
612
+ return (f = (u = j(e)) == null ? void 0 : u.namespaceURI) == null ? void 0 : f.includes("svg");
613
+ }), r = B(o.width), s = B(o.height), { stop: i } = At(
609
614
  e,
610
615
  ([u]) => {
611
616
  const f = n === "border-box" ? u.borderBoxSize : n === "content-box" ? u.contentBoxSize : u.devicePixelContentBoxSize;
612
- if (a && s.value) {
613
- const m = z(e);
617
+ if (a && l.value) {
618
+ const m = j(e);
614
619
  if (m) {
615
620
  const g = a.getComputedStyle(m);
616
- r.value = Number.parseFloat(g.width), i.value = Number.parseFloat(g.height);
621
+ r.value = Number.parseFloat(g.width), s.value = Number.parseFloat(g.height);
617
622
  }
618
623
  } else if (f) {
619
624
  const m = Array.isArray(f) ? f : [f];
620
- r.value = m.reduce((g, { inlineSize: h }) => g + h, 0), i.value = m.reduce((g, { blockSize: h }) => g + h, 0);
625
+ r.value = m.reduce((g, { inlineSize: h }) => g + h, 0), s.value = m.reduce((g, { blockSize: h }) => g + h, 0);
621
626
  } else
622
- r.value = u.contentRect.width, i.value = u.contentRect.height;
627
+ r.value = u.contentRect.width, s.value = u.contentRect.height;
623
628
  },
624
629
  t
625
630
  );
626
- ge(() => {
627
- const u = z(e);
628
- u && (r.value = "offsetWidth" in u ? u.offsetWidth : o.width, i.value = "offsetHeight" in u ? u.offsetHeight : o.height);
631
+ he(() => {
632
+ const u = j(e);
633
+ u && (r.value = "offsetWidth" in u ? u.offsetWidth : o.width, s.value = "offsetHeight" in u ? u.offsetHeight : o.height);
629
634
  });
630
- const d = R(
631
- () => z(e),
635
+ const c = L(
636
+ () => j(e),
632
637
  (u) => {
633
- r.value = u ? o.width : 0, i.value = u ? o.height : 0;
638
+ r.value = u ? o.width : 0, s.value = u ? o.height : 0;
634
639
  }
635
640
  );
636
- function c() {
637
- l(), d();
641
+ function d() {
642
+ i(), c();
638
643
  }
639
644
  return {
640
645
  width: r,
641
- height: i,
642
- stop: c
646
+ height: s,
647
+ stop: d
643
648
  };
644
649
  }
645
- function le(e) {
650
+ function se(e) {
646
651
  return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
647
652
  }
648
653
  function Fe(e) {
@@ -654,88 +659,88 @@ function Fe(e) {
654
659
  return !t || t.tagName === "BODY" ? !1 : Fe(t);
655
660
  }
656
661
  }
657
- function Et(e) {
662
+ function Nt(e) {
658
663
  const o = e || window.event, t = o.target;
659
664
  return Fe(t) ? !1 : o.touches.length > 1 ? !0 : (o.preventDefault && o.preventDefault(), !1);
660
665
  }
661
- const oe = /* @__PURE__ */ new WeakMap();
662
- function Nt(e, o = !1) {
663
- const t = T(o);
664
- let a = null, n;
665
- R(Ee(e), (i) => {
666
- const l = le(N(i));
667
- if (l) {
668
- const d = l;
669
- oe.get(d) || oe.set(d, n), t.value && (d.style.overflow = "hidden");
666
+ const ne = /* @__PURE__ */ new WeakMap();
667
+ function Pt(e, o = !1) {
668
+ const t = B(o);
669
+ let a = null;
670
+ L(Ne(e), (r) => {
671
+ const s = se(N(r));
672
+ if (s) {
673
+ const i = s;
674
+ ne.get(i) || ne.set(i, i.style.overflow), t.value && (i.style.overflow = "hidden");
670
675
  }
671
676
  }, {
672
677
  immediate: !0
673
678
  });
674
- const s = () => {
675
- const i = le(N(e));
676
- !i || t.value || (we && (a = re(
677
- i,
679
+ const n = () => {
680
+ const r = se(N(e));
681
+ !r || t.value || (ke && (a = ae(
682
+ r,
678
683
  "touchmove",
679
- (l) => {
680
- Et(l);
684
+ (s) => {
685
+ Nt(s);
681
686
  },
682
687
  { passive: !1 }
683
- )), i.style.overflow = "hidden", t.value = !0);
684
- }, r = () => {
685
- var i;
686
- const l = le(N(e));
687
- !l || !t.value || (we && (a == null || a()), l.style.overflow = (i = oe.get(l)) != null ? i : "", oe.delete(l), t.value = !1);
688
+ )), r.style.overflow = "hidden", t.value = !0);
689
+ }, l = () => {
690
+ var r;
691
+ const s = se(N(e));
692
+ !s || !t.value || (ke && (a == null || a()), s.style.overflow = (r = ne.get(s)) != null ? r : "", ne.delete(s), t.value = !1);
688
693
  };
689
- return ae(r), _({
694
+ return le(l), _({
690
695
  get() {
691
696
  return t.value;
692
697
  },
693
- set(i) {
694
- i ? s() : r();
698
+ set(r) {
699
+ r ? n() : l();
695
700
  }
696
701
  });
697
702
  }
698
- function J(e, o, t, a = {}) {
699
- var n, s, r;
703
+ function U(e, o, t, a = {}) {
704
+ var n, l, r;
700
705
  const {
701
- clone: i = !1,
702
- passive: l = !1,
703
- eventName: d,
704
- deep: c = !1,
706
+ clone: s = !1,
707
+ passive: i = !1,
708
+ eventName: c,
709
+ deep: d = !1,
705
710
  defaultValue: u,
706
711
  shouldEmit: f
707
- } = a, m = ue(), g = t || (m == null ? void 0 : m.emit) || ((n = m == null ? void 0 : m.$emit) == null ? void 0 : n.bind(m)) || ((r = (s = m == null ? void 0 : m.proxy) == null ? void 0 : s.$emit) == null ? void 0 : r.bind(m == null ? void 0 : m.proxy));
708
- let h = d;
712
+ } = a, m = de(), g = t || (m == null ? void 0 : m.emit) || ((n = m == null ? void 0 : m.$emit) == null ? void 0 : n.bind(m)) || ((r = (l = m == null ? void 0 : m.proxy) == null ? void 0 : l.$emit) == null ? void 0 : r.bind(m == null ? void 0 : m.proxy));
713
+ let h = c;
709
714
  o || (o = "modelValue"), h = h || `update:${o.toString()}`;
710
- const O = (B) => i ? typeof i == "function" ? i(B) : _t(B) : B, W = () => st(e[o]) ? O(e[o]) : u, P = (B) => {
711
- f ? f(B) && g(h, B) : g(h, B);
715
+ const D = (S) => s ? typeof s == "function" ? s(S) : Ct(S) : S, R = () => it(e[o]) ? D(e[o]) : u, P = (S) => {
716
+ f ? f(S) && g(h, S) : g(h, S);
712
717
  };
713
- if (l) {
714
- const B = W(), C = T(B);
718
+ if (i) {
719
+ const S = R(), C = B(S);
715
720
  let A = !1;
716
- return R(
721
+ return L(
717
722
  () => e[o],
718
- (L) => {
719
- A || (A = !0, C.value = O(L), Z(() => A = !1));
723
+ (F) => {
724
+ A || (A = !0, C.value = D(F), ee(() => A = !1));
720
725
  }
721
- ), R(
726
+ ), L(
722
727
  C,
723
- (L) => {
724
- !A && (L !== e[o] || c) && P(L);
728
+ (F) => {
729
+ !A && (F !== e[o] || d) && P(F);
725
730
  },
726
- { deep: c }
731
+ { deep: d }
727
732
  ), C;
728
733
  } else
729
734
  return _({
730
735
  get() {
731
- return W();
736
+ return R();
732
737
  },
733
- set(B) {
734
- P(B);
738
+ set(S) {
739
+ P(S);
735
740
  }
736
741
  });
737
742
  }
738
- const Pt = { class: "$ui-dark-toggle-vtr" }, io = /* @__PURE__ */ D({
743
+ const Wt = { class: "$ui-dark-toggle-vtr" }, uo = /* @__PURE__ */ T({
739
744
  __name: "DarkToggle",
740
745
  props: {
741
746
  isDark: { type: Boolean, default: !1 },
@@ -743,30 +748,30 @@ const Pt = { class: "$ui-dark-toggle-vtr" }, io = /* @__PURE__ */ D({
743
748
  animationDuration: { default: 400 }
744
749
  },
745
750
  setup(e) {
746
- const o = e, t = J(o, "isDark"), a = Ot({
751
+ const o = e, t = U(o, "isDark"), a = Mt({
747
752
  initialValue: t.value ? "dark" : "light",
748
- onChanged: (i) => {
749
- t.value = i === "dark";
753
+ onChanged: (s) => {
754
+ t.value = s === "dark";
750
755
  }
751
756
  }), n = _({
752
757
  get: () => a.value === "dark",
753
- set: (i) => a.value = i ? "dark" : "light"
754
- }), s = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
755
- function r(i) {
756
- if (!s || !i || !o.animation) {
758
+ set: (s) => a.value = s ? "dark" : "light"
759
+ }), l = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
760
+ function r(s) {
761
+ if (!l || !s || !o.animation) {
757
762
  n.value = !n.value;
758
763
  return;
759
764
  }
760
- const l = i.clientX, d = i.clientY, c = Math.hypot(
761
- Math.max(l, innerWidth - l),
762
- Math.max(d, innerHeight - d)
765
+ const i = s.clientX, c = s.clientY, d = Math.hypot(
766
+ Math.max(i, innerWidth - i),
767
+ Math.max(c, innerHeight - c)
763
768
  );
764
769
  document.startViewTransition(async () => {
765
- n.value = !n.value, await Z();
770
+ n.value = !n.value, await ee();
766
771
  }).ready.then(() => {
767
772
  const f = [
768
- `circle(0px at ${l}px ${d}px)`,
769
- `circle(${c}px at ${l}px ${d}px)`
773
+ `circle(0px at ${i}px ${c}px)`,
774
+ `circle(${d}px at ${i}px ${c}px)`
770
775
  ];
771
776
  document.documentElement.animate(
772
777
  {
@@ -780,8 +785,8 @@ const Pt = { class: "$ui-dark-toggle-vtr" }, io = /* @__PURE__ */ D({
780
785
  );
781
786
  });
782
787
  }
783
- return (i, l) => (p(), $("span", Pt, [
784
- w(i.$slots, "default", de(ce({ mode: k(a), isDark: n.value, toggle: r })))
788
+ return (s, i) => (p(), $("span", Wt, [
789
+ w(s.$slots, "default", ce(fe({ mode: k(a), isDark: n.value, toggle: r })))
785
790
  ]));
786
791
  }
787
792
  }), xt = {}, Ft = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
@@ -790,7 +795,7 @@ function Lt(e, o) {
790
795
  w(e.$slots, "default")
791
796
  ]);
792
797
  }
793
- const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
798
+ const co = /* @__PURE__ */ ge(xt, [["render", Lt]]), Le = /* @__PURE__ */ T({
794
799
  __name: "Overlay",
795
800
  props: {
796
801
  dim: { type: Boolean },
@@ -798,7 +803,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
798
803
  },
799
804
  setup(e) {
800
805
  return (o, t) => (p(), $("div", {
801
- class: S(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
806
+ class: V(["fixed left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
802
807
  o.dim ? "bg-opacity-50!" : "bg-opacity-0!",
803
808
  o.blur ? "backdrop-blur-sm" : ""
804
809
  ]])
@@ -806,9 +811,9 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
806
811
  w(o.$slots, "default")
807
812
  ], 2));
808
813
  }
809
- }), Rt = { class: "h7.5 w-full $ui-fbc" }, Wt = { class: "text-4.5" }, zt = /* @__PURE__ */ b("div", { class: "i-carbon-close" }, null, -1), jt = [
810
- zt
811
- ], It = { class: "content transition-all transition-duration-300" }, Ht = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, Jt = { class: "$ui-fcc" }, Ut = /* @__PURE__ */ D({
814
+ }), Rt = { class: "h7.5 w-full $ui-fbc" }, zt = { class: "text-4.5" }, jt = /* @__PURE__ */ b("div", { class: "i-carbon-close" }, null, -1), It = [
815
+ jt
816
+ ], Ht = { class: "content transition-all transition-duration-300" }, Jt = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, Ut = { class: "$ui-fcc" }, Gt = /* @__PURE__ */ T({
812
817
  __name: "Dialog",
813
818
  props: {
814
819
  modelValue: { type: Boolean, default: !1 },
@@ -823,22 +828,22 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
823
828
  },
824
829
  emits: ["close", "update:modelValue"],
825
830
  setup(e, { emit: o }) {
826
- const t = e, n = J(t, "modelValue", o, { passive: !0 }), s = Nt(() => window.document.documentElement);
827
- X(() => {
828
- n.value ? s.value = !0 : s.value = !1;
831
+ const t = e, n = U(t, "modelValue", o, { passive: !0 }), l = Pt(() => window.document.documentElement);
832
+ q(() => {
833
+ n.value ? l.value = !0 : l.value = !1;
829
834
  });
830
835
  function r() {
831
836
  n.value && t.autoClose && (n.value = !1);
832
837
  }
833
- Ne("Escape", () => {
838
+ Pe("Escape", () => {
834
839
  r();
835
840
  });
836
- const i = T(!1);
837
- return Y(() => i.value = !0), (l, d) => i.value || l.mountTo === "body" ? (p(), M(Be, {
841
+ const s = B(!1);
842
+ return Y(() => s.value = !0), (i, c) => s.value || i.mountTo === "body" ? (p(), M(Te, {
838
843
  key: 0,
839
- to: l.mountTo
844
+ to: i.mountTo
840
845
  }, [
841
- x(fe, {
846
+ W(pe, {
842
847
  "enter-from-class": "opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0",
843
848
  "enter-to-class": "opacity-100 [&_.modal]:scale-100",
844
849
  "leave-from-class": "opacity-100 [&_.modal]:scale-100",
@@ -847,42 +852,42 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
847
852
  default: y(() => [
848
853
  k(n) ? (p(), M(Le, {
849
854
  key: 0,
850
- dim: l.dim,
851
- blur: l.blur
855
+ dim: i.dim,
856
+ blur: i.blur
852
857
  }, {
853
858
  default: y(() => [
854
859
  b("div", {
855
860
  class: "modal relative grid grid-rows-[1.875rem_1fr_2.5rem] $ui-base max-h-[calc(100vh-6.25rem)] max-w-[calc(100vw-6.25rem)] min-h-6.25rem min-w-12.5rem gap-2.5 rounded-md bg-white px6 py4.5 color-gray-800 shadow-2xl transition-transform transition-duration-300 dark:bg-gray-900 dark:color-gray-200",
856
- style: pe({
861
+ style: me({
857
862
  width: t.width,
858
863
  height: t.height
859
864
  })
860
865
  }, [
861
866
  b("div", Rt, [
862
- b("div", Wt, [
863
- w(l.$slots, "title", {}, () => [
864
- j(I(t.title), 1)
867
+ b("div", zt, [
868
+ w(i.$slots, "title", {}, () => [
869
+ I(H(t.title), 1)
865
870
  ])
866
871
  ]),
867
- l.closable ? (p(), $("div", {
872
+ i.closable ? (p(), $("div", {
868
873
  key: 0,
869
874
  class: "h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",
870
875
  onClick: r
871
- }, jt)) : E("", !0)
872
- ]),
873
- b("div", It, [
874
- w(l.$slots, "default")
876
+ }, It)) : E("", !0)
875
877
  ]),
876
878
  b("div", Ht, [
877
- w(l.$slots, "footer", {}, () => [
878
- w(l.$slots, "footer", {}, () => [
879
- b("div", Jt, [
880
- x(K, {
879
+ w(i.$slots, "default")
880
+ ]),
881
+ b("div", Jt, [
882
+ w(i.$slots, "footer", {}, () => [
883
+ w(i.$slots, "footer", {}, () => [
884
+ b("div", Ut, [
885
+ W(K, {
881
886
  type: "primary",
882
887
  onClick: r
883
888
  }, {
884
889
  default: y(() => [
885
- j(" close ")
890
+ I(" close ")
886
891
  ]),
887
892
  _: 1
888
893
  })
@@ -899,10 +904,10 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
899
904
  })
900
905
  ], 8, ["to"])) : E("", !0);
901
906
  }
902
- }), Gt = ["type", "placeholder", "disabled"], Kt = {
907
+ }), Kt = ["type", "placeholder", "disabled"], Yt = {
903
908
  key: 3,
904
909
  class: "pointer-events-none absolute bottom--0.25 left-50% right-50% z-9999 h-0.75 bg-primary-500 opacity-0 transition-all duration-240 group-[&.focused]:left-0 group-[&.focused]:right-0 group-[&.focused]:opacity-100 group-[&.accent.focused]:bg-accent-500"
905
- }, se = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", Yt = /* @__PURE__ */ D({
910
+ }, ie = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", Xt = /* @__PURE__ */ T({
906
911
  __name: "Input",
907
912
  props: {
908
913
  modelValue: {},
@@ -919,26 +924,26 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
919
924
  },
920
925
  emits: ["update:modelValue", "updateFocused", "keyTab"],
921
926
  setup(e, { emit: o }) {
922
- const t = e, a = o, n = J(t, "modelValue", a), s = vt(_(() => t.loading), t.loadingDebounceTime), r = gt(!1, {
927
+ const t = e, a = o, n = U(t, "modelValue", a), l = gt(_(() => t.loading), t.loadingDebounceTime), r = ht(!1, {
923
928
  onChanged(u) {
924
929
  a("updateFocused", u);
925
930
  }
926
- }), i = _(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), l = _(() => t.disabled || s.value), d = T();
927
- let c = !1;
928
- return X(() => {
929
- s.value && r.value ? c = !0 : !s.value && c && (c = !1, Z(() => {
931
+ }), s = _(() => t.variant === "flat" || t.variant === "warning" || t.disabled || t.readonly), i = _(() => t.disabled || l.value), c = B();
932
+ let d = !1;
933
+ return q(() => {
934
+ l.value && r.value ? d = !0 : !l.value && d && (d = !1, ee(() => {
930
935
  r.value = !0;
931
936
  }));
932
937
  }), Y(() => {
933
938
  t.autoFocus && (r.value = !0);
934
- }), X(() => {
939
+ }), q(() => {
935
940
  var u;
936
- r.value && ((u = d.value) == null || u.focus());
941
+ r.value && ((u = c.value) == null || u.focus());
937
942
  }), (u, f) => (p(), $("div", {
938
- class: S(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100", [
943
+ class: V(["group relative w-50 w-auto flex items-center justify-between gap-0.5 overflow-hidden b-1 rounded-1 px3 py-0.75 color-gray-800 dark:color-gray-100", [
939
944
  {
940
945
  "border-none bg-transparent group": u.variant === "flat",
941
- "cursor-not-allowed opacity-50": l.value,
946
+ "cursor-not-allowed opacity-50": i.value,
942
947
  accent: u.variant === "accent",
943
948
  focused: k(r)
944
949
  },
@@ -952,37 +957,37 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
952
957
  }, [
953
958
  u.leftIcon ? (p(), $("div", {
954
959
  key: 0,
955
- class: S(se)
960
+ class: V(ie)
956
961
  }, [
957
- x(ie, { icon: u.leftIcon }, null, 8, ["icon"])
962
+ W(ue, { icon: u.leftIcon }, null, 8, ["icon"])
958
963
  ])) : E("", !0),
959
- me(b("input", {
964
+ ve(b("input", {
960
965
  ref_key: "inputRef",
961
- ref: d,
962
- "onUpdate:modelValue": f[0] || (f[0] = (m) => Q(n) ? n.value = m : null),
966
+ ref: c,
967
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => Z(n) ? n.value = m : null),
963
968
  class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
964
969
  type: t.password ? "password" : "text",
965
970
  placeholder: u.placeholder,
966
- disabled: l.value || u.readonly,
971
+ disabled: i.value || u.readonly,
967
972
  onBlur: f[1] || (f[1] = (m) => r.value = !1)
968
- }, null, 40, Gt), [
969
- [Ue, k(n)]
973
+ }, null, 40, Kt), [
974
+ [Ge, k(n)]
970
975
  ]),
971
- k(s) ? (p(), $("div", {
976
+ k(l) ? (p(), $("div", {
972
977
  key: 1,
973
- class: S(se)
978
+ class: V(ie)
974
979
  }, [
975
- x(De)
980
+ W(Oe)
976
981
  ])) : u.rightIcon ? (p(), $("div", {
977
982
  key: 2,
978
- class: S(se)
983
+ class: V(ie)
979
984
  }, [
980
- x(ie, { icon: u.rightIcon }, null, 8, ["icon"])
985
+ W(ue, { icon: u.rightIcon }, null, 8, ["icon"])
981
986
  ])) : E("", !0),
982
- i.value ? E("", !0) : (p(), $("div", Kt))
987
+ s.value ? E("", !0) : (p(), $("div", Yt))
983
988
  ], 2));
984
989
  }
985
- }), Xt = { class: "$ui-base" }, co = /* @__PURE__ */ D({
990
+ }), qt = { class: "$ui-base" }, fo = /* @__PURE__ */ T({
986
991
  __name: "FormField",
987
992
  props: {
988
993
  modelValue: {},
@@ -993,39 +998,39 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
993
998
  },
994
999
  emits: ["update:modelValue"],
995
1000
  setup(e, { emit: o }) {
996
- const t = e, n = J(t, "modelValue", o), s = T(!1), r = _(() => t.message && t.message.length && t.showMessage), i = {
1001
+ const t = e, n = U(t, "modelValue", o), l = B(!1), r = _(() => t.message && t.message.length && t.showMessage), s = {
997
1002
  normal: "color-gray-600 dark:color-gray-400",
998
1003
  warning: "color-warning-500 dark:color-warning-200",
999
1004
  danger: "color-danger-500 dark:color-danger-200",
1000
1005
  success: "color-primary-700 dark:color-primary-500"
1001
- }, l = {
1006
+ }, i = {
1002
1007
  warning: "i-bx:bxs-error",
1003
1008
  danger: "i-ic-round-error",
1004
1009
  success: "i-ep:success-filled"
1005
1010
  };
1006
- return (d, c) => (p(), $("div", Xt, [
1007
- x(Yt, {
1011
+ return (c, d) => (p(), $("div", qt, [
1012
+ W(Xt, {
1008
1013
  modelValue: k(n),
1009
- "onUpdate:modelValue": c[0] || (c[0] = (u) => Q(n) ? n.value = u : null),
1010
- placeholder: d.placeholder,
1011
- onUpdateFocused: c[1] || (c[1] = (u) => s.value = u)
1014
+ "onUpdate:modelValue": d[0] || (d[0] = (u) => Z(n) ? n.value = u : null),
1015
+ placeholder: c.placeholder,
1016
+ onUpdateFocused: d[1] || (d[1] = (u) => l.value = u)
1012
1017
  }, null, 8, ["modelValue", "placeholder"]),
1013
1018
  b("div", {
1014
- class: S(["mt2 $ui-base text-3.5", [
1015
- i[d.status],
1016
- { "opacity-65": !s.value }
1019
+ class: V(["mt2 $ui-base text-3.5", [
1020
+ s[c.status],
1021
+ { "opacity-65": !l.value }
1017
1022
  ]])
1018
1023
  }, [
1019
- d.status !== "normal" && r.value ? (p(), M(ie, {
1024
+ c.status !== "normal" && r.value ? (p(), M(ue, {
1020
1025
  key: 0,
1021
1026
  inline: "",
1022
- icon: l[d.status]
1027
+ icon: i[c.status]
1023
1028
  }, null, 8, ["icon"])) : E("", !0),
1024
- j(" " + I(r.value ? d.message : ""), 1)
1029
+ I(" " + H(r.value ? c.message : ""), 1)
1025
1030
  ], 2)
1026
1031
  ]));
1027
1032
  }
1028
- }), qt = { class: "overflow-hidden rounded-lg shadow-lg" }, Qt = /* @__PURE__ */ b("div", { class: "p2 opacity-40" }, " Empty... ", -1), Zt = /* @__PURE__ */ D({
1033
+ }), Qt = { class: "overflow-hidden rounded-lg shadow-lg" }, Zt = /* @__PURE__ */ b("div", { class: "p2 opacity-40" }, " Empty... ", -1), eo = /* @__PURE__ */ T({
1029
1034
  __name: "Dropdown",
1030
1035
  props: {
1031
1036
  label: {},
@@ -1041,7 +1046,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1041
1046
  emits: ["update:visible"],
1042
1047
  setup(e) {
1043
1048
  const o = e;
1044
- return Ge("$ui-dropdown-disabled", _(() => o.disabled)), (t, a) => (p(), M(k(Re), {
1049
+ return Ke("$ui-dropdown-disabled", _(() => o.disabled)), (t, a) => (p(), M(k(Re), {
1045
1050
  disabled: t.disabled,
1046
1051
  class: "inline-block w-auto",
1047
1052
  shown: t.shown,
@@ -1055,18 +1060,18 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1055
1060
  })
1056
1061
  }, {
1057
1062
  popper: y(({ hide: n }) => [
1058
- b("div", qt, [
1059
- w(t.$slots, "popper", de(ce({ hide: n })), () => [
1060
- Qt
1063
+ b("div", Qt, [
1064
+ w(t.$slots, "popper", ce(fe({ hide: n })), () => [
1065
+ Zt
1061
1066
  ])
1062
1067
  ])
1063
1068
  ]),
1064
1069
  default: y(() => [
1065
1070
  w(t.$slots, "default", {}, () => [
1066
- x(K, q({
1071
+ W(K, Q({
1067
1072
  ...t.buttonProps,
1068
1073
  disabled: t.disabled
1069
- }, { class: t.buttonClass }), Te({
1074
+ }, { class: t.buttonClass }), De({
1070
1075
  icon: y(() => [
1071
1076
  w(t.$slots, "button-icon")
1072
1077
  ]),
@@ -1078,7 +1083,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1078
1083
  t.label ? {
1079
1084
  name: "default",
1080
1085
  fn: y(() => [
1081
- j(I(t.label), 1)
1086
+ I(H(t.label), 1)
1082
1087
  ]),
1083
1088
  key: "0"
1084
1089
  } : void 0
@@ -1088,7 +1093,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1088
1093
  _: 3
1089
1094
  }, 8, ["disabled", "shown", "triggers", "distance", "placement", "skidding"]));
1090
1095
  }
1091
- }), fo = /* @__PURE__ */ D({
1096
+ }), po = /* @__PURE__ */ T({
1092
1097
  __name: "DropdownButton",
1093
1098
  props: {
1094
1099
  type: {},
@@ -1101,8 +1106,8 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1101
1106
  keepOpen: { type: Boolean, default: !1 }
1102
1107
  },
1103
1108
  setup(e) {
1104
- const o = e, t = Ke("$ui-dropdown-disabled", void 0);
1105
- return (a, n) => me((p(), M(K, q({
1109
+ const o = e, t = Ye("$ui-dropdown-disabled", void 0);
1110
+ return (a, n) => ve((p(), M(K, Q({
1106
1111
  ...o,
1107
1112
  round: !1
1108
1113
  }, {
@@ -1117,10 +1122,10 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1117
1122
  ]),
1118
1123
  _: 3
1119
1124
  }, 16, ["disabled"])), [
1120
- [k($e)]
1125
+ [k(_e)]
1121
1126
  ]);
1122
1127
  }
1123
- }), eo = { class: "$ui-fec gap2.5" }, po = /* @__PURE__ */ D({
1128
+ }), to = { class: "$ui-fec gap2.5" }, mo = /* @__PURE__ */ T({
1124
1129
  __name: "Confirm",
1125
1130
  props: {
1126
1131
  modelValue: { type: Boolean },
@@ -1135,42 +1140,42 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1135
1140
  },
1136
1141
  emits: ["update:modelValue", "confirm", "cancel", "close"],
1137
1142
  setup(e, { emit: o }) {
1138
- const t = e, a = o, n = J(t, "modelValue", a);
1139
- X(() => {
1143
+ const t = e, a = o, n = U(t, "modelValue", a);
1144
+ q(() => {
1140
1145
  n.value || a("close");
1141
1146
  });
1142
- function s(r = !1) {
1147
+ function l(r = !1) {
1143
1148
  (t.autoClose || r) && (n.value = !1);
1144
1149
  }
1145
- return (r, i) => (p(), M(Ut, {
1150
+ return (r, s) => (p(), M(Gt, {
1146
1151
  modelValue: k(n),
1147
- "onUpdate:modelValue": i[2] || (i[2] = (l) => Q(n) ? n.value = l : null),
1152
+ "onUpdate:modelValue": s[2] || (s[2] = (i) => Z(n) ? n.value = i : null),
1148
1153
  width: r.width,
1149
1154
  height: r.height,
1150
1155
  title: r.title,
1151
1156
  closable: !1
1152
1157
  }, {
1153
1158
  footer: y(() => [
1154
- b("div", eo, [
1155
- x(K, {
1156
- onClick: i[0] || (i[0] = () => {
1157
- a("cancel"), s(!0);
1159
+ b("div", to, [
1160
+ W(K, {
1161
+ onClick: s[0] || (s[0] = () => {
1162
+ a("cancel"), l(!0);
1158
1163
  })
1159
1164
  }, {
1160
1165
  default: y(() => [
1161
- j(I(r.cancelText), 1)
1166
+ I(H(r.cancelText), 1)
1162
1167
  ]),
1163
1168
  _: 1
1164
1169
  }),
1165
- x(K, {
1170
+ W(K, {
1166
1171
  loading: r.loading,
1167
1172
  type: "primary",
1168
- onClick: i[1] || (i[1] = () => {
1169
- a("confirm"), s();
1173
+ onClick: s[1] || (s[1] = () => {
1174
+ a("confirm"), l();
1170
1175
  })
1171
1176
  }, {
1172
1177
  default: y(() => [
1173
- j(I(r.confirmText), 1)
1178
+ I(H(r.confirmText), 1)
1174
1179
  ]),
1175
1180
  _: 1
1176
1181
  }, 8, ["loading"])
@@ -1178,13 +1183,13 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1178
1183
  ]),
1179
1184
  default: y(() => [
1180
1185
  w(r.$slots, "default", { class: "h-auto w-auto" }, () => [
1181
- j(I(r.content), 1)
1186
+ I(H(r.content), 1)
1182
1187
  ])
1183
1188
  ]),
1184
1189
  _: 3
1185
1190
  }, 8, ["modelValue", "width", "height", "title"]));
1186
1191
  }
1187
- }), to = { class: "m1 min-w-35 w-auto flex flex-col" }, oo = ["onClick"], no = /* @__PURE__ */ b("div", { class: "i-mdi-chevron-down" }, null, -1), mo = /* @__PURE__ */ D({
1192
+ }), oo = { class: "m1 min-w-35 w-auto flex flex-col" }, no = ["onClick"], ro = /* @__PURE__ */ b("div", { class: "i-mdi-chevron-down" }, null, -1), vo = /* @__PURE__ */ T({
1188
1193
  __name: "Select",
1189
1194
  props: {
1190
1195
  modelValue: {},
@@ -1198,65 +1203,65 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1198
1203
  },
1199
1204
  emits: ["update:modelValue"],
1200
1205
  setup(e, { emit: o }) {
1201
- const t = e, a = o, n = _e(), s = _({
1206
+ const t = e, a = o, n = Ce(), l = _({
1202
1207
  get: () => t.modelValue,
1203
- set: (l) => a("update:modelValue", l)
1208
+ set: (i) => a("update:modelValue", i)
1204
1209
  }), r = _(() => {
1205
- const l = t.options.find((d) => d.value === s.value);
1206
- return l != null && l.label ? t.labelRenderer(l.label) : t.placeholder;
1210
+ const i = t.options.find((c) => c.value === l.value);
1211
+ return i != null && i.label ? t.labelRenderer(i.label) : t.placeholder;
1207
1212
  });
1208
- function i(l) {
1209
- t.multiple ? s.value = s.value.includes(l.value) ? s.value.filter((d) => d !== l.value) : [...s.value, l.value] : s.value = l.value;
1213
+ function s(i) {
1214
+ t.multiple ? l.value = l.value.includes(i.value) ? l.value.filter((c) => c !== i.value) : [...l.value, i.value] : l.value = i.value;
1210
1215
  }
1211
- return (l, d) => (p(), M(Zt, q({ label: r.value }, {
1212
- buttonProps: l.buttonProps,
1213
- disabled: l.disabled
1214
- }), Te({
1216
+ return (i, c) => (p(), M(eo, Q({ label: r.value }, {
1217
+ buttonProps: i.buttonProps,
1218
+ disabled: i.disabled
1219
+ }), De({
1215
1220
  popper: y(() => [
1216
- b("div", to, [
1217
- k(n).item ? (p(!0), $(he, { key: 0 }, be(l.options, (c) => (p(), $("div", {
1218
- key: c.value,
1221
+ b("div", oo, [
1222
+ k(n).item ? (p(!0), $(be, { key: 0 }, ye(i.options, (d) => (p(), $("div", {
1223
+ key: d.value,
1219
1224
  class: "cursor-pointer",
1220
- onClick: (u) => i(c)
1225
+ onClick: (u) => s(d)
1221
1226
  }, [
1222
- w(l.$slots, "item", de(ce({
1223
- item: c,
1224
- active: l.multiple ? s.value.includes(c.value) : c.value === s.value,
1225
- disabled: l.disabled
1227
+ w(i.$slots, "item", ce(fe({
1228
+ item: d,
1229
+ active: i.multiple ? l.value.includes(d.value) : d.value === l.value,
1230
+ disabled: i.disabled
1226
1231
  })))
1227
- ], 8, oo))), 128)) : (p(!0), $(he, { key: 1 }, be(l.options, (c) => me((p(), M(K, {
1228
- key: c.value,
1229
- disabled: l.disabled,
1232
+ ], 8, no))), 128)) : (p(!0), $(be, { key: 1 }, ye(i.options, (d) => ve((p(), M(K, {
1233
+ key: d.value,
1234
+ disabled: i.disabled,
1230
1235
  round: "normal",
1231
- class: S(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
1232
- active: l.multiple ? s.value.includes(c.value) : c.value === s.value
1236
+ class: V(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
1237
+ active: i.multiple ? l.value.includes(d.value) : d.value === l.value
1233
1238
  }]),
1234
- onClick: (u) => i(c)
1239
+ onClick: (u) => s(d)
1235
1240
  }, {
1236
1241
  default: y(() => [
1237
- j(I(c.label), 1)
1242
+ I(H(d.label), 1)
1238
1243
  ]),
1239
1244
  _: 2
1240
1245
  }, 1032, ["disabled", "class", "onClick"])), [
1241
- [k($e), l.autoClose]
1246
+ [k(_e), i.autoClose]
1242
1247
  ])), 128))
1243
1248
  ])
1244
1249
  ]),
1245
1250
  "button-icon-right": y(() => [
1246
- no
1251
+ ro
1247
1252
  ]),
1248
1253
  _: 2
1249
1254
  }, [
1250
1255
  k(n).button ? {
1251
1256
  name: "default",
1252
1257
  fn: y(() => [
1253
- w(l.$slots, "button")
1258
+ w(i.$slots, "button")
1254
1259
  ]),
1255
1260
  key: "0"
1256
1261
  } : void 0
1257
1262
  ]), 1040, ["label"]));
1258
1263
  }
1259
- }), vo = /* @__PURE__ */ D({
1264
+ }), go = /* @__PURE__ */ T({
1260
1265
  __name: "Switch",
1261
1266
  props: {
1262
1267
  modelValue: { type: Boolean },
@@ -1264,22 +1269,22 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1264
1269
  },
1265
1270
  emits: ["update:modelValue"],
1266
1271
  setup(e, { emit: o }) {
1267
- const n = J(e, "modelValue", o), s = yt(n);
1268
- return (r, i) => (p(), $("div", {
1269
- class: S([[
1272
+ const n = U(e, "modelValue", o), l = wt(n);
1273
+ return (r, s) => (p(), $("div", {
1274
+ class: V([[
1270
1275
  r.disabled ? "cursor-not-allowed" : "cursor-pointer"
1271
1276
  ], "$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),
1272
1277
  role: "checkbox",
1273
- onClick: i[0] || (i[0] = (l) => !r.disabled && k(s)())
1278
+ onClick: s[0] || (s[0] = (i) => !r.disabled && k(l)())
1274
1279
  }, [
1275
1280
  w(r.$slots, "default"),
1276
1281
  b("div", {
1277
- class: S([{
1282
+ class: V([{
1278
1283
  selected: k(n)
1279
1284
  }, "group relative $ui-base h4 w8 rounded-2 bg-primary-100 transition-colors dark:bg-gray-700 [&.selected]:bg-primary-500!"])
1280
1285
  }, [
1281
1286
  b("div", {
1282
- class: S(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white", [
1287
+ class: V(["h4 w4 rounded-full bg-primary-800 transition-transform group-[&.selected]:transform-translate-x-4 dark:bg-white", [
1283
1288
  { "group-hover:opacity-75 group-active:scale-85": !r.disabled },
1284
1289
  { "opacity-65": r.disabled }
1285
1290
  ]])
@@ -1287,7 +1292,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1287
1292
  ], 2)
1288
1293
  ], 2));
1289
1294
  }
1290
- }), go = /* @__PURE__ */ D({
1295
+ }), ho = /* @__PURE__ */ T({
1291
1296
  __name: "Checkbox",
1292
1297
  props: {
1293
1298
  modelValue: { type: Boolean },
@@ -1295,21 +1300,21 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1295
1300
  },
1296
1301
  emits: ["update:modelValue"],
1297
1302
  setup(e, { emit: o }) {
1298
- const n = J(e, "modelValue", o);
1299
- return (s, r) => (p(), $("div", {
1300
- class: S(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
1301
- k(n) ? s.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
1303
+ const n = U(e, "modelValue", o);
1304
+ return (l, r) => (p(), $("div", {
1305
+ class: V(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
1306
+ k(n) ? l.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
1302
1307
  ]]),
1303
- onClick: r[0] || (r[0] = (i) => n.value = !k(n))
1308
+ onClick: r[0] || (r[0] = (s) => n.value = !k(n))
1304
1309
  }, [
1305
1310
  b("div", {
1306
- class: S([[
1311
+ class: V([[
1307
1312
  k(n) ? "opacity-100" : "opacity-0"
1308
1313
  ], "h-60% w-35% transform-translate-y--0.25 transform-rotate-45 border-width-[0_0.125rem_0.125rem_0] border-white border-solid transition-opacity duration-200 ease-in-out"])
1309
1314
  }, null, 2)
1310
1315
  ], 2));
1311
1316
  }
1312
- }), ho = /* @__PURE__ */ D({
1317
+ }), bo = /* @__PURE__ */ T({
1313
1318
  __name: "Drawer",
1314
1319
  props: {
1315
1320
  modelValue: { type: Boolean },
@@ -1326,7 +1331,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1326
1331
  },
1327
1332
  emits: ["update:modelValue", "close"],
1328
1333
  setup(e, { emit: o }) {
1329
- const t = e, a = o, { height: n } = At(() => typeof t.top == "string" ? document.querySelector(t.top) : t.top, void 0, { box: "border-box" }), s = J(t, "modelValue", a), r = {
1334
+ const t = e, a = o, { height: n } = Et(() => typeof t.top == "string" ? document.querySelector(t.top) : t.top, void 0, { box: "border-box" }), l = U(t, "modelValue", a), r = {
1330
1335
  left: {
1331
1336
  class: "left-0 h-full b-r",
1332
1337
  transition: "[&_.drawer]:translate-x--100%"
@@ -1344,44 +1349,44 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1344
1349
  transition: "[&_.drawer]:translate-y-100%"
1345
1350
  }
1346
1351
  };
1347
- Ne("Escape", () => {
1348
- t.closable && (s.value = !1);
1352
+ Pe("Escape", () => {
1353
+ t.closable && (l.value = !1);
1349
1354
  });
1350
- const i = _(() => r[t.placement]), l = T(!1);
1351
- return Y(() => l.value = !0), (d, c) => l.value || d.mountTo === "body" ? (p(), M(Be, {
1355
+ const s = _(() => r[t.placement]), i = B(!1);
1356
+ return Y(() => i.value = !0), (c, d) => i.value || c.mountTo === "body" ? (p(), M(Te, {
1352
1357
  key: 0,
1353
- to: d.mountTo
1358
+ to: c.mountTo
1354
1359
  }, [
1355
- x(fe, {
1356
- "enter-from-class": `${i.value.transition}`,
1357
- "leave-to-class": `${i.value.transition}`
1360
+ W(pe, {
1361
+ "enter-from-class": `${s.value.transition}`,
1362
+ "leave-to-class": `${s.value.transition}`
1358
1363
  }, {
1359
1364
  default: y(() => [
1360
- k(s) ? (p(), M(Le, {
1365
+ k(l) ? (p(), M(Le, {
1361
1366
  key: 0,
1362
- class: S({
1363
- "pointer-events-none": d.permanent
1367
+ class: V({
1368
+ "pointer-events-none": c.permanent
1364
1369
  }),
1365
- dim: d.dim,
1366
- blur: d.blur,
1367
- onClick: c[2] || (c[2] = (u) => d.closeOutside && d.closable && (s.value = !1))
1370
+ dim: c.dim,
1371
+ blur: c.blur,
1372
+ onClick: d[2] || (d[2] = (u) => c.closeOutside && c.closable && (l.value = !1))
1368
1373
  }, {
1369
1374
  default: y(() => [
1370
1375
  b("div", {
1371
- class: S([[i.value.class, d.contentClass ?? "", d.contentBlur ? "$ui-glass-effect" : "$ui-bg-base"], "drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),
1372
- style: pe({
1373
- top: d.placement === "bottom" ? "auto" : `${k(n)}px`,
1374
- height: ["top", "bottom"].includes(d.placement) ? "auto" : `calc(100% - ${k(n)}px)`
1376
+ class: V([[s.value.class, c.contentClass ?? "", c.contentBlur ? "$ui-glass-effect" : "$ui-bg-base"], "drawer pointer-events-auto absolute min-w-25 of-auto $ui-border-base transition-transform transition-duration-300"]),
1377
+ style: me({
1378
+ top: c.placement === "bottom" ? "auto" : `${k(n)}px`,
1379
+ height: ["top", "bottom"].includes(c.placement) ? "auto" : `calc(100% - ${k(n)}px)`
1375
1380
  }),
1376
- onClick: c[1] || (c[1] = Ye(() => {
1381
+ onClick: d[1] || (d[1] = Xe(() => {
1377
1382
  }, ["stop"]))
1378
1383
  }, [
1379
- d.closable ? (p(), $("div", {
1384
+ c.closable ? (p(), $("div", {
1380
1385
  key: 0,
1381
1386
  class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
1382
- onClick: c[0] || (c[0] = (u) => s.value = !1)
1387
+ onClick: d[0] || (d[0] = (u) => l.value = !1)
1383
1388
  })) : E("", !0),
1384
- w(d.$slots, "default")
1389
+ w(c.$slots, "default")
1385
1390
  ], 6)
1386
1391
  ]),
1387
1392
  _: 3
@@ -1391,7 +1396,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1391
1396
  }, 8, ["enter-from-class", "leave-to-class"])
1392
1397
  ], 8, ["to"])) : E("", !0);
1393
1398
  }
1394
- }), ro = /* @__PURE__ */ D({
1399
+ }), ao = /* @__PURE__ */ T({
1395
1400
  __name: "Notification",
1396
1401
  props: {
1397
1402
  message: {},
@@ -1412,40 +1417,40 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1412
1417
  info: "text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",
1413
1418
  warning: "text-amber-4 border-amber-2 dark:border-amber-4",
1414
1419
  error: "text-red-4 border-red-2 dark:border-red-4"
1415
- }, n = T(!1);
1420
+ }, n = B(!1);
1416
1421
  Y(() => {
1417
1422
  n.value = !0, setTimeout(() => {
1418
1423
  n.value = !1;
1419
1424
  }, o.duration);
1420
1425
  });
1421
- const s = _(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
1422
- return (r, i) => (p(), $("div", {
1423
- class: S(["fixed left-0 right-0 $ui-z-max-override text-center", [
1426
+ const l = _(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
1427
+ return (r, s) => (p(), $("div", {
1428
+ class: V(["fixed left-0 right-0 $ui-z-max-override text-center", [
1424
1429
  { "top-0": r.placement.startsWith("top") },
1425
1430
  { "bottom-0": r.placement.startsWith("bottom") }
1426
1431
  ]])
1427
1432
  }, [
1428
- x(fe, {
1429
- "enter-from-class": s.value,
1430
- "leave-to-class": s.value,
1431
- onAfterLeave: i[0] || (i[0] = () => {
1432
- var l;
1433
- n.value || (l = r.onClose) == null || l.call(r);
1433
+ W(pe, {
1434
+ "enter-from-class": l.value,
1435
+ "leave-to-class": l.value,
1436
+ onAfterLeave: s[0] || (s[0] = () => {
1437
+ var i;
1438
+ n.value || (i = r.onClose) == null || i.call(r);
1434
1439
  })
1435
1440
  }, {
1436
1441
  default: y(() => [
1437
1442
  n.value ? (p(), $("div", {
1438
1443
  key: 0,
1439
1444
  class: "flex transition-all duration-300",
1440
- style: pe({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
1445
+ style: me({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
1441
1446
  }, [
1442
1447
  b("div", {
1443
- class: S(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, a[r.type]]])
1448
+ class: V(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, a[r.type]]])
1444
1449
  }, [
1445
1450
  b("div", {
1446
- class: S(t[r.type])
1451
+ class: V(t[r.type])
1447
1452
  }, null, 2),
1448
- b("div", null, I(r.message), 1)
1453
+ b("div", null, H(r.message), 1)
1449
1454
  ], 2)
1450
1455
  ], 4)) : E("", !0)
1451
1456
  ]),
@@ -1453,7 +1458,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1453
1458
  }, 8, ["enter-from-class", "leave-to-class"])
1454
1459
  ], 2));
1455
1460
  }
1456
- }), bo = /* @__PURE__ */ D({
1461
+ }), yo = /* @__PURE__ */ T({
1457
1462
  __name: "Tooltip",
1458
1463
  props: {
1459
1464
  trigger: {},
@@ -1464,7 +1469,7 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1464
1469
  shown: { type: Boolean }
1465
1470
  },
1466
1471
  setup(e) {
1467
- return (o, t) => (p(), M(k(We), q({
1472
+ return (o, t) => (p(), M(k(ze), Q({
1468
1473
  disabled: o.disabled,
1469
1474
  placement: o.placement
1470
1475
  }, o.$attrs), {
@@ -1478,39 +1483,39 @@ const uo = /* @__PURE__ */ ve(xt, [["render", Lt]]), Le = /* @__PURE__ */ D({
1478
1483
  }, 16, ["disabled", "placement"]));
1479
1484
  }
1480
1485
  });
1481
- function yo(e) {
1486
+ function wo(e) {
1482
1487
  const o = document.createElement("div");
1483
1488
  o.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(o);
1484
1489
  const t = e.onClose;
1485
1490
  function a() {
1486
- ye(null, o);
1491
+ we(null, o);
1487
1492
  }
1488
1493
  e.onClose = () => {
1489
1494
  a(), t == null || t(), document.body.removeChild(o);
1490
1495
  };
1491
- const n = Xe(ro, e);
1492
- ye(n, o);
1496
+ const n = qe(ao, e);
1497
+ we(n, o);
1493
1498
  }
1494
1499
  export {
1495
- $o as VTooltip,
1496
- so as VueBadge,
1500
+ _o as VTooltip,
1501
+ io as VueBadge,
1497
1502
  K as VueButton,
1498
- uo as VueCard,
1499
- go as VueCheckbox,
1500
- po as VueConfirm,
1501
- io as VueDarkToggle,
1502
- Ut as VueDialog,
1503
- ho as VueDrawer,
1504
- Zt as VueDropdown,
1505
- fo as VueDropdownButton,
1506
- co as VueFormField,
1507
- ie as VueIcon,
1508
- Yt as VueInput,
1509
- De as VueLoadingIndicator,
1510
- ro as VueNotification,
1503
+ co as VueCard,
1504
+ ho as VueCheckbox,
1505
+ mo as VueConfirm,
1506
+ uo as VueDarkToggle,
1507
+ Gt as VueDialog,
1508
+ bo as VueDrawer,
1509
+ eo as VueDropdown,
1510
+ po as VueDropdownButton,
1511
+ fo as VueFormField,
1512
+ ue as VueIcon,
1513
+ Xt as VueInput,
1514
+ Oe as VueLoadingIndicator,
1515
+ ao as VueNotification,
1511
1516
  Le as VueOverlay,
1512
- mo as VueSelect,
1513
- vo as VueSwitch,
1514
- bo as VueTooltip,
1515
- yo as showVueNotification
1517
+ vo as VueSelect,
1518
+ go as VueSwitch,
1519
+ yo as VueTooltip,
1520
+ wo as showVueNotification
1516
1521
  };