@vue/devtools-ui 7.1.0 → 7.1.1

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