@vue/devtools-ui 7.3.6 → 7.3.8

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,16 +1,20 @@
1
1
  // @unocss-include
2
2
 
3
- import { u as te, a as T, b as ae, o as U, r as oe, c as re, d as ne, e as le } from "./vendor-XKDuzWDy.js";
4
- import { Dropdown as se, VClosePopper as x, Tooltip as ie } from "floating-vue";
5
- import { vTooltip as bt } from "floating-vue";
6
- import { openBlock as d, createElementBlock as v, createElementVNode as m, defineComponent as y, useAttrs as de, computed as k, useSlots as K, createBlock as w, resolveDynamicComponent as Y, mergeProps as D, withCtx as f, renderSlot as g, unref as b, createCommentVNode as $, normalizeClass as h, ref as S, onMounted as P, createVNode as _, Transition as F, normalizeStyle as L, toDisplayString as C, h as ue, render as W, normalizeProps as q, guardReactiveProps as X, nextTick as G, watchEffect as I, Teleport as J, createTextVNode as B, withDirectives as N, isRef as R, vModelDynamic as ce, provide as pe, createSlots as Q, inject as me, Fragment as j, renderList as H, withModifiers as fe } from "vue";
7
- import { i as ge } from "./ic-icons-data-stfsGcEC.js";
8
- const A = (n, a) => {
3
+ /* empty css */
4
+ import { Dropdown as ae, VClosePopper as Y, Tooltip as re } from "floating-vue";
5
+ import { vTooltip as Pt } from "floating-vue";
6
+ /* empty css */
7
+ import { openBlock as d, createElementBlock as f, createElementVNode as m, defineComponent as y, useAttrs as ne, computed as k, useSlots as q, createBlock as w, resolveDynamicComponent as X, mergeProps as D, withCtx as g, renderSlot as v, unref as b, createCommentVNode as $, normalizeClass as h, ref as S, onMounted as E, createVNode as _, Transition as H, normalizeStyle as N, toDisplayString as V, h as le, render as U, normalizeProps as G, guardReactiveProps as J, nextTick as W, watchEffect as P, Teleport as Q, createTextVNode as B, withDirectives as A, isRef as O, vModelDynamic as se, provide as ie, createSlots as Z, inject as de, Fragment as z, renderList as F, withModifiers as ue, shallowRef as ce } from "vue";
8
+ import { useColorMode as pe, useVModel as T, useScrollLock as me, onKeyStroke as ee, refDebounced as fe, refWithControl as ge, useToggle as ve, useElementSize as be } from "@vueuse/core";
9
+ import { i as he } from "./ic-icons-data-B4q1VTSq.js";
10
+ import { createHighlighterCore as ye } from "shiki/core";
11
+ import ke from "shiki/wasm";
12
+ const j = (n, o) => {
9
13
  const e = n.__vccOpts || n;
10
- for (const [u, t] of a)
11
- e[u] = t;
14
+ for (const [s, t] of o)
15
+ e[s] = t;
12
16
  return e;
13
- }, ve = {}, be = { class: "h-3 w-3 $ui-inline-fcc" }, he = /* @__PURE__ */ m("svg", {
17
+ }, we = {}, $e = { class: "h-3 w-3 $ui-inline-fcc" }, _e = /* @__PURE__ */ m("svg", {
14
18
  class: "animate-spin",
15
19
  xmlns: "http://www.w3.org/2000/svg",
16
20
  fill: "none",
@@ -29,13 +33,13 @@ const A = (n, a) => {
29
33
  fill: "currentColor",
30
34
  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"
31
35
  })
32
- ], -1), ye = [
33
- he
36
+ ], -1), Ce = [
37
+ _e
34
38
  ];
35
- function ke(n, a) {
36
- return d(), v("div", be, ye);
39
+ function Ve(n, o) {
40
+ return d(), f("div", $e, Ce);
37
41
  }
38
- const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PURE__ */ y({
42
+ const te = /* @__PURE__ */ j(we, [["render", Ve]]), Be = { key: 2 }, M = /* @__PURE__ */ y({
39
43
  inheritAttrs: !1,
40
44
  __name: "Button",
41
45
  props: {
@@ -48,16 +52,16 @@ const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PU
48
52
  outlined: { type: Boolean, default: !1 }
49
53
  },
50
54
  emits: ["click"],
51
- setup(n, { emit: a }) {
52
- const e = n, u = a, t = de(), l = k(() => t.to ? "router-link" : t.href ? "a" : "button"), r = k(() => e.loading || e.disabled);
53
- function s(i) {
55
+ setup(n, { emit: o }) {
56
+ const e = n, s = o, t = ne(), l = k(() => t.to ? "router-link" : t.href ? "a" : "button"), r = k(() => e.loading || e.disabled);
57
+ function i(u) {
54
58
  if (r.value) {
55
- i.preventDefault(), i.stopPropagation(), i.stopImmediatePropagation();
59
+ u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation();
56
60
  return;
57
61
  }
58
- u("click", i);
62
+ s("click", u);
59
63
  }
60
- const o = {
64
+ const a = {
61
65
  common: {
62
66
  default: "active:bg-primary-100-darker dark:active:bg-gray-800-darker",
63
67
  primary: "active:bg-primary-500-darker",
@@ -94,12 +98,12 @@ const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PU
94
98
  info: "hover:border-info-500 hover:text-info-500 active:ring-info-500:5 active:bg-info-500:5",
95
99
  success: "hover:border-primary-500 hover:text-primary-500 active:ring-primary-500:5 active:bg-primary-500:5"
96
100
  }
97
- }, c = K(), p = k(() => e.flat ? o.flat[e.type] : e.outlined ? o.outlined[e.type] : o.normal[e.type]);
98
- return (i, V) => (d(), w(Y(l.value), D(i.$attrs, {
101
+ }, c = q(), p = k(() => e.flat ? a.flat[e.type] : e.outlined ? a.outlined[e.type] : a.normal[e.type]);
102
+ return (u, C) => (d(), w(X(l.value), D(u.$attrs, {
99
103
  role: "button",
100
104
  "aria-disabled": r.value,
101
105
  class: ["$ui-base $ui-inline-fcc inline-flex cursor-pointer select-none gap1.25 py-0 no-underline $ui-transition", [
102
- [o.common[e.type]],
106
+ [a.common[e.type]],
103
107
  {
104
108
  "rounded-full": e.round === "full",
105
109
  "$ui-base-br": e.round === "normal",
@@ -107,36 +111,36 @@ const Z = /* @__PURE__ */ A(ve, [["render", ke]]), we = { key: 2 }, M = /* @__PU
107
111
  "bg-transparent": e.flat || e.outlined
108
112
  },
109
113
  [
110
- i.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
111
- i.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
114
+ u.outlined ? "b-1 $ui-border-base active:ring-3 shadow-sm" : "border-none",
115
+ u.size === "mini" ? "px1 text-3 h5.5" : "px3.5 text-3.5 h8",
112
116
  p.value
113
117
  ]
114
118
  ]],
115
- onClickCapture: s
119
+ onClickCapture: i
116
120
  }), {
117
- default: f(() => [
118
- i.loading ? (d(), w(Z, {
121
+ default: g(() => [
122
+ u.loading ? (d(), w(te, {
119
123
  key: 0,
120
124
  class: "mt0.5 h-full w3"
121
- })) : g(i.$slots, "icon", {
125
+ })) : v(u.$slots, "icon", {
122
126
  key: 1,
123
127
  class: "h-full w3 $ui-inline-fcc"
124
128
  }),
125
- b(c).default ? (d(), v("div", we, [
126
- g(i.$slots, "default")
129
+ b(c).default ? (d(), f("div", Be, [
130
+ v(u.$slots, "default")
127
131
  ])) : $("", !0),
128
- g(i.$slots, "icon-right")
132
+ v(u.$slots, "icon-right")
129
133
  ]),
130
134
  _: 3
131
135
  }, 16, ["aria-disabled", "class"]));
132
136
  }
133
- }), $e = {}, _e = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
134
- function Ve(n, a) {
135
- return d(), v("span", _e, [
136
- g(n.$slots, "default")
137
+ }), Te = {}, De = { class: "mx-0.5 $ui-base inline-block select-none whitespace-nowrap rounded px-1.5 py-0.5 text-xs" };
138
+ function Me(n, o) {
139
+ return d(), f("span", De, [
140
+ v(n.$slots, "default")
137
141
  ]);
138
142
  }
139
- const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
143
+ const vt = /* @__PURE__ */ j(Te, [["render", Me]]), R = /* @__PURE__ */ y({
140
144
  __name: "Icon",
141
145
  props: {
142
146
  icon: {},
@@ -144,11 +148,11 @@ const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
144
148
  action: { type: Boolean, default: !1 }
145
149
  },
146
150
  setup(n) {
147
- return (a, e) => (d(), w(Y(a.inline ? "span" : "div"), {
148
- class: h(["$ui-base", [a.icon, a.action ? "cursor-pointer hover:op50" : ""]])
151
+ return (o, e) => (d(), w(X(o.inline ? "span" : "div"), {
152
+ class: h(["$ui-base", [o.icon, o.action ? "cursor-pointer hover:op50" : ""]])
149
153
  }, null, 8, ["class"]));
150
154
  }
151
- }), Ce = /* @__PURE__ */ y({
155
+ }), Se = /* @__PURE__ */ y({
152
156
  __name: "Notification",
153
157
  props: {
154
158
  message: {},
@@ -159,50 +163,50 @@ const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
159
163
  onClose: {}
160
164
  },
161
165
  setup(n) {
162
- const a = n, e = {
166
+ const o = n, e = {
163
167
  success: "i-carbon-checkmark",
164
168
  info: "i-material-symbols-light-info",
165
169
  warning: "i-carbon-warning",
166
170
  error: "i-carbon-close"
167
- }, u = {
171
+ }, s = {
168
172
  success: "text-primary-500 border-primary-200 dark:text-primary-200 dark:border-primary-500",
169
173
  info: "text-blue-4 border-blue-2 dark:text-blue-2 dark:border-blue-4",
170
174
  warning: "text-amber-4 border-amber-2 dark:border-amber-4",
171
175
  error: "text-red-4 border-red-2 dark:border-red-4"
172
176
  }, t = S(!1);
173
- P(() => {
177
+ E(() => {
174
178
  t.value = !0, setTimeout(() => {
175
179
  t.value = !1;
176
- }, a.duration);
180
+ }, o.duration);
177
181
  });
178
- const l = k(() => a.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
179
- return (r, s) => (d(), v("div", {
182
+ const l = k(() => o.placement.startsWith("top") ? "translate-y--300%" : "translate-y-300%");
183
+ return (r, i) => (d(), f("div", {
180
184
  class: h(["fixed left-0 right-0 $ui-z-max-override text-center", [
181
185
  { "top-0": r.placement.startsWith("top") },
182
186
  { "bottom-0": r.placement.startsWith("bottom") }
183
187
  ]])
184
188
  }, [
185
- _(F, {
189
+ _(H, {
186
190
  "enter-from-class": l.value,
187
191
  "leave-to-class": l.value,
188
- onAfterLeave: s[0] || (s[0] = () => {
189
- var o;
190
- t.value || (o = r.onClose) == null || o.call(r);
192
+ onAfterLeave: i[0] || (i[0] = () => {
193
+ var a;
194
+ t.value || (a = r.onClose) == null || a.call(r);
191
195
  })
192
196
  }, {
193
- default: f(() => [
194
- t.value ? (d(), v("div", {
197
+ default: g(() => [
198
+ t.value ? (d(), f("div", {
195
199
  key: 0,
196
200
  class: "flex transition-all duration-300",
197
- style: L({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
201
+ style: N({ justifyContent: r.placement.includes("right") ? "right" : r.placement.includes("left") ? "left" : "center" })
198
202
  }, [
199
203
  m("div", {
200
- class: h(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, u[r.type]]])
204
+ class: h(["m3 flex-inline items-center gap2 b-1 b-1 rounded px4 py1 shadow transition-all duration-300 $ui-bg-base", [r.classes, s[r.type]]])
201
205
  }, [
202
206
  m("div", {
203
207
  class: h(e[r.type])
204
208
  }, null, 2),
205
- m("div", null, C(r.message), 1)
209
+ m("div", null, V(r.message), 1)
206
210
  ], 2)
207
211
  ], 4)) : $("", !0)
208
212
  ]),
@@ -211,31 +215,31 @@ const at = /* @__PURE__ */ A($e, [["render", Ve]]), E = /* @__PURE__ */ y({
211
215
  ], 2));
212
216
  }
213
217
  });
214
- function ot(n) {
215
- const a = document.createElement("div");
216
- a.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(a);
218
+ function bt(n) {
219
+ const o = document.createElement("div");
220
+ o.classList.add("$ui-z-max-override", "fixed"), document.body.appendChild(o);
217
221
  const e = n.onClose;
218
- function u() {
219
- W(null, a);
222
+ function s() {
223
+ U(null, o);
220
224
  }
221
225
  n.onClose = () => {
222
- u(), e == null || e(), document.body.removeChild(a);
226
+ s(), e == null || e(), document.body.removeChild(o);
223
227
  };
224
- const t = ue(Ce, n);
225
- W(t, a);
228
+ const t = le(Se, n);
229
+ U(t, o);
226
230
  }
227
- const Be = "__vue-devtools-theme__";
228
- function Te(n = {}) {
229
- const a = te({
231
+ const Ie = "__vue-devtools-theme__";
232
+ function Pe(n = {}) {
233
+ const o = pe({
230
234
  ...n,
231
- storageKey: Be
235
+ storageKey: Ie
232
236
  });
233
237
  return {
234
- colorMode: a,
235
- isDark: k(() => a.value === "dark")
238
+ colorMode: o,
239
+ isDark: k(() => o.value === "dark")
236
240
  };
237
241
  }
238
- const De = { class: "$ui-dark-toggle-vtr" }, rt = /* @__PURE__ */ y({
242
+ const ze = { class: "$ui-dark-toggle-vtr" }, ht = /* @__PURE__ */ y({
239
243
  __name: "DarkToggle",
240
244
  props: {
241
245
  isDark: { type: Boolean, default: !1 },
@@ -243,54 +247,54 @@ const De = { class: "$ui-dark-toggle-vtr" }, rt = /* @__PURE__ */ y({
243
247
  animationDuration: { default: 400 }
244
248
  },
245
249
  setup(n) {
246
- const a = n, e = T(a, "isDark"), { colorMode: u } = Te({
250
+ const o = n, e = T(o, "isDark"), { colorMode: s } = Pe({
247
251
  initialValue: e.value ? "dark" : "light",
248
- onChanged: (s) => {
249
- e.value = s === "dark";
252
+ onChanged: (i) => {
253
+ e.value = i === "dark";
250
254
  }
251
255
  }), t = k({
252
- get: () => u.value === "dark",
253
- set: (s) => u.value = s ? "dark" : "light"
256
+ get: () => s.value === "dark",
257
+ set: (i) => s.value = i ? "dark" : "light"
254
258
  }), l = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
255
- function r(s) {
256
- if (!l || !s || !a.animation) {
259
+ function r(i) {
260
+ if (!l || !i || !o.animation) {
257
261
  t.value = !t.value;
258
262
  return;
259
263
  }
260
- const o = s.clientX, c = s.clientY, p = Math.hypot(
261
- Math.max(o, innerWidth - o),
264
+ const a = i.clientX, c = i.clientY, p = Math.hypot(
265
+ Math.max(a, innerWidth - a),
262
266
  Math.max(c, innerHeight - c)
263
267
  );
264
268
  document.startViewTransition(async () => {
265
- t.value = !t.value, await G();
269
+ t.value = !t.value, await W();
266
270
  }).ready.then(() => {
267
- const V = [
268
- `circle(0px at ${o}px ${c}px)`,
269
- `circle(${p}px at ${o}px ${c}px)`
271
+ const C = [
272
+ `circle(0px at ${a}px ${c}px)`,
273
+ `circle(${p}px at ${a}px ${c}px)`
270
274
  ];
271
275
  document.documentElement.animate(
272
276
  {
273
- clipPath: t.value ? [...V].reverse() : V
277
+ clipPath: t.value ? [...C].reverse() : C
274
278
  },
275
279
  {
276
- duration: a.animationDuration,
280
+ duration: o.animationDuration,
277
281
  easing: "ease-in",
278
282
  pseudoElement: t.value ? "::view-transition-old(root)" : "::view-transition-new(root)"
279
283
  }
280
284
  );
281
285
  });
282
286
  }
283
- return (s, o) => (d(), v("span", De, [
284
- g(s.$slots, "default", q(X({ mode: b(u), isDark: t.value, toggle: r })))
287
+ return (i, a) => (d(), f("span", ze, [
288
+ v(i.$slots, "default", G(J({ mode: b(s), isDark: t.value, toggle: r })))
285
289
  ]));
286
290
  }
287
- }), Me = {}, Se = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
288
- function Ie(n, a) {
289
- return d(), v("div", Se, [
290
- g(n.$slots, "default")
291
+ }), Ee = {}, Le = { class: "$ui-base border $ui-border-base rounded shadow-sm" };
292
+ function Fe(n, o) {
293
+ return d(), f("div", Le, [
294
+ v(n.$slots, "default")
291
295
  ]);
292
296
  }
293
- const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
297
+ const yt = /* @__PURE__ */ j(Ee, [["render", Fe]]), oe = /* @__PURE__ */ y({
294
298
  __name: "Overlay",
295
299
  props: {
296
300
  dim: { type: Boolean },
@@ -298,19 +302,19 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
298
302
  position: { default: "fixed" }
299
303
  },
300
304
  setup(n) {
301
- return (a, e) => (d(), v("div", {
305
+ return (o, e) => (d(), f("div", {
302
306
  class: h(["left-0 top-0 $ui-z-max h-full w-full $ui-fcc transition-opacity transition-duration-300 $ui-bg-base", [
303
- a.dim ? "bg-opacity-50!" : "bg-opacity-0!",
304
- a.blur ? "backdrop-blur-sm" : "",
305
- a.position
307
+ o.dim ? "bg-opacity-50!" : "bg-opacity-0!",
308
+ o.blur ? "backdrop-blur-sm" : "",
309
+ o.position
306
310
  ]])
307
311
  }, [
308
- g(a.$slots, "default")
312
+ v(o.$slots, "default")
309
313
  ], 2));
310
314
  }
311
- }), Pe = { class: "h7.5 w-full $ui-fbc" }, ze = { class: "text-4.5" }, Ee = /* @__PURE__ */ m("div", { class: "i-carbon-close" }, null, -1), Fe = [
312
- Ee
313
- ], Le = { class: "content transition-all transition-duration-300" }, Ne = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, Re = { class: "$ui-fcc" }, Ae = /* @__PURE__ */ y({
315
+ }), Re = { class: "h7.5 w-full $ui-fbc" }, He = { class: "text-4.5" }, Ne = /* @__PURE__ */ m("div", { class: "i-carbon-close" }, null, -1), We = [
316
+ Ne
317
+ ], Ae = { class: "content transition-all transition-duration-300" }, Oe = { class: "footer h8 w-full transition-all transition-duration-300 delay-250" }, je = { class: "$ui-fcc" }, xe = /* @__PURE__ */ y({
314
318
  __name: "Dialog",
315
319
  props: {
316
320
  modelValue: { type: Boolean, default: !1 },
@@ -325,67 +329,67 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
325
329
  position: {}
326
330
  },
327
331
  emits: ["close", "update:modelValue"],
328
- setup(n, { emit: a }) {
329
- const e = n, t = T(e, "modelValue", a, { passive: !0 }), l = ae(() => window.document.documentElement);
330
- I(() => {
332
+ setup(n, { emit: o }) {
333
+ const e = n, t = T(e, "modelValue", o, { passive: !0 }), l = me(() => window.document.documentElement);
334
+ P(() => {
331
335
  t.value ? l.value = !0 : l.value = !1;
332
336
  });
333
337
  function r() {
334
338
  t.value && e.autoClose && (t.value = !1);
335
339
  }
336
- U("Escape", () => {
340
+ ee("Escape", () => {
337
341
  r();
338
342
  });
339
- const s = S(!1);
340
- return P(() => s.value = !0), (o, c) => s.value || o.mountTo === "body" ? (d(), w(J, {
343
+ const i = S(!1);
344
+ return E(() => i.value = !0), (a, c) => i.value || a.mountTo === "body" ? (d(), w(Q, {
341
345
  key: 0,
342
- to: o.mountTo
346
+ to: a.mountTo
343
347
  }, [
344
- _(F, {
348
+ _(H, {
345
349
  "enter-from-class": "opacity-0 [&_.modal]:scale-95 [&_.content,&_.footer]:translate-y--2.5 [&_.content,&_.footer]:opacity-0",
346
350
  "enter-to-class": "opacity-100 [&_.modal]:scale-100",
347
351
  "leave-from-class": "opacity-100 [&_.modal]:scale-100",
348
352
  "leave-to-class": "opacity-0 [&_.modal]:scale-95"
349
353
  }, {
350
- default: f(() => [
351
- b(t) ? (d(), w(ee, {
354
+ default: g(() => [
355
+ b(t) ? (d(), w(oe, {
352
356
  key: 0,
353
- dim: o.dim,
354
- blur: o.blur,
355
- position: o.position
357
+ dim: a.dim,
358
+ blur: a.blur,
359
+ position: a.position
356
360
  }, {
357
- default: f(() => [
361
+ default: g(() => [
358
362
  m("div", {
359
363
  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",
360
- style: L({
364
+ style: N({
361
365
  width: e.width,
362
366
  height: e.height
363
367
  })
364
368
  }, [
365
- m("div", Pe, [
366
- m("div", ze, [
367
- g(o.$slots, "title", {}, () => [
368
- B(C(e.title), 1)
369
+ m("div", Re, [
370
+ m("div", He, [
371
+ v(a.$slots, "title", {}, () => [
372
+ B(V(e.title), 1)
369
373
  ])
370
374
  ]),
371
- o.closable ? (d(), v("div", {
375
+ a.closable ? (d(), f("div", {
372
376
  key: 0,
373
377
  class: "h6 w6 $ui-fcc cursor-pointer rounded-full transition-colors hover:bg-primary-100 dark:hover:bg-gray-700",
374
378
  onClick: r
375
- }, Fe)) : $("", !0)
379
+ }, We)) : $("", !0)
376
380
  ]),
377
- m("div", Le, [
378
- g(o.$slots, "default")
381
+ m("div", Ae, [
382
+ v(a.$slots, "default")
379
383
  ]),
380
- m("div", Ne, [
381
- g(o.$slots, "footer", {}, () => [
382
- g(o.$slots, "footer", {}, () => [
383
- m("div", Re, [
384
+ m("div", Oe, [
385
+ v(a.$slots, "footer", {}, () => [
386
+ v(a.$slots, "footer", {}, () => [
387
+ m("div", je, [
384
388
  _(M, {
385
389
  type: "primary",
386
390
  onClick: r
387
391
  }, {
388
- default: f(() => [
392
+ default: g(() => [
389
393
  B(" close ")
390
394
  ]),
391
395
  _: 1
@@ -403,10 +407,10 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
403
407
  })
404
408
  ], 8, ["to"])) : $("", !0);
405
409
  }
406
- }), Oe = ["type", "placeholder", "disabled"], We = {
410
+ }), Ue = ["type", "placeholder", "disabled"], Ke = {
407
411
  key: 3,
408
412
  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"
409
- }, z = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", je = /* @__PURE__ */ y({
413
+ }, L = "transition-colors $ui-fcc color-gray-500 dark:color-gray-300 group-[&.focused]:color-primary-500; group-[&.accent.focused]:color-accent-500", Ye = /* @__PURE__ */ y({
410
414
  __name: "Input",
411
415
  props: {
412
416
  modelValue: {},
@@ -422,71 +426,71 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
422
426
  type: { default: "text" }
423
427
  },
424
428
  emits: ["update:modelValue", "updateFocused", "keyTab"],
425
- setup(n, { emit: a }) {
426
- const e = n, u = a, t = T(e, "modelValue", u), l = oe(k(() => e.loading), e.loadingDebounceTime), r = re(!1, {
427
- onChanged(i) {
428
- u("updateFocused", i);
429
+ setup(n, { emit: o }) {
430
+ const e = n, s = o, t = T(e, "modelValue", s), l = fe(k(() => e.loading), e.loadingDebounceTime), r = ge(!1, {
431
+ onChanged(u) {
432
+ s("updateFocused", u);
429
433
  }
430
- }), s = k(() => e.variant === "flat" || e.variant === "warning" || e.disabled || e.readonly), o = k(() => e.disabled || l.value), c = S();
434
+ }), i = k(() => e.variant === "flat" || e.variant === "warning" || e.disabled || e.readonly), a = k(() => e.disabled || l.value), c = S();
431
435
  let p = !1;
432
- return I(() => {
433
- l.value && r.value ? p = !0 : !l.value && p && (p = !1, G(() => {
436
+ return P(() => {
437
+ l.value && r.value ? p = !0 : !l.value && p && (p = !1, W(() => {
434
438
  r.value = !0;
435
439
  }));
436
- }), P(() => {
440
+ }), E(() => {
437
441
  e.autoFocus && (r.value = !0);
438
- }), I(() => {
439
- var i;
440
- r.value && ((i = c.value) == null || i.focus());
441
- }), (i, V) => (d(), v("div", {
442
+ }), P(() => {
443
+ var u;
444
+ r.value && ((u = c.value) == null || u.focus());
445
+ }), (u, C) => (d(), f("div", {
442
446
  class: h(["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", [
443
447
  {
444
- "border-none bg-transparent group": i.variant === "flat",
445
- "cursor-not-allowed opacity-50": o.value,
446
- accent: i.variant === "accent",
448
+ "border-none bg-transparent group": u.variant === "flat",
449
+ "cursor-not-allowed opacity-50": a.value,
450
+ accent: u.variant === "accent",
447
451
  focused: b(r)
448
452
  },
449
453
  [
450
- i.variant === "warning" ? "border-warning-500 dark:border-warning-300" : "border-primary-100 dark:border-gray-700"
454
+ u.variant === "warning" ? "border-warning-500 dark:border-warning-300" : "border-primary-100 dark:border-gray-700"
451
455
  ]
452
456
  ]]),
453
- onClick: V[2] || (V[2] = () => {
457
+ onClick: C[2] || (C[2] = () => {
454
458
  r.value = !0;
455
459
  })
456
460
  }, [
457
- i.leftIcon ? (d(), v("div", {
461
+ u.leftIcon ? (d(), f("div", {
458
462
  key: 0,
459
- class: h(z)
463
+ class: h(L)
460
464
  }, [
461
- _(E, { icon: i.leftIcon }, null, 8, ["icon"])
465
+ _(R, { icon: u.leftIcon }, null, 8, ["icon"])
462
466
  ])) : $("", !0),
463
- N(m("input", {
467
+ A(m("input", {
464
468
  ref_key: "inputRef",
465
469
  ref: c,
466
- "onUpdate:modelValue": V[0] || (V[0] = (O) => R(t) ? t.value = O : null),
470
+ "onUpdate:modelValue": C[0] || (C[0] = (x) => O(t) ? t.value = x : null),
467
471
  class: "$ui-base w-full bg-transparent color-inherit outline-none placeholder-color-gray-500 dark:placeholder-gray-300",
468
- type: i.type,
469
- placeholder: i.placeholder,
470
- disabled: o.value || i.readonly,
471
- onBlur: V[1] || (V[1] = (O) => r.value = !1)
472
- }, null, 40, Oe), [
473
- [ce, b(t)]
472
+ type: u.type,
473
+ placeholder: u.placeholder,
474
+ disabled: a.value || u.readonly,
475
+ onBlur: C[1] || (C[1] = (x) => r.value = !1)
476
+ }, null, 40, Ue), [
477
+ [se, b(t)]
474
478
  ]),
475
- b(l) ? (d(), v("div", {
479
+ b(l) ? (d(), f("div", {
476
480
  key: 1,
477
- class: h(z)
481
+ class: h(L)
478
482
  }, [
479
- _(Z)
480
- ])) : i.rightIcon ? (d(), v("div", {
483
+ _(te)
484
+ ])) : u.rightIcon ? (d(), f("div", {
481
485
  key: 2,
482
- class: h(z)
486
+ class: h(L)
483
487
  }, [
484
- _(E, { icon: i.rightIcon }, null, 8, ["icon"])
488
+ _(R, { icon: u.rightIcon }, null, 8, ["icon"])
485
489
  ])) : $("", !0),
486
- s.value ? $("", !0) : (d(), v("div", We))
490
+ i.value ? $("", !0) : (d(), f("div", Ke))
487
491
  ], 2));
488
492
  }
489
- }), He = { class: "$ui-base" }, lt = /* @__PURE__ */ y({
493
+ }), qe = { class: "$ui-base" }, kt = /* @__PURE__ */ y({
490
494
  __name: "FormField",
491
495
  props: {
492
496
  modelValue: {},
@@ -496,40 +500,40 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
496
500
  placeholder: {}
497
501
  },
498
502
  emits: ["update:modelValue"],
499
- setup(n, { emit: a }) {
500
- const e = n, t = T(e, "modelValue", a), l = S(!1), r = k(() => e.message && e.message.length && e.showMessage), s = {
503
+ setup(n, { emit: o }) {
504
+ const e = n, t = T(e, "modelValue", o), l = S(!1), r = k(() => e.message && e.message.length && e.showMessage), i = {
501
505
  normal: "color-gray-600 dark:color-gray-400",
502
506
  warning: "color-warning-500 dark:color-warning-200",
503
507
  danger: "color-danger-500 dark:color-danger-200",
504
508
  success: "color-primary-700 dark:color-primary-500"
505
- }, o = {
509
+ }, a = {
506
510
  warning: "i-bx:bxs-error",
507
511
  danger: "i-ic-round-error",
508
512
  success: "i-ep:success-filled"
509
513
  };
510
- return (c, p) => (d(), v("div", He, [
511
- _(je, {
514
+ return (c, p) => (d(), f("div", qe, [
515
+ _(Ye, {
512
516
  modelValue: b(t),
513
- "onUpdate:modelValue": p[0] || (p[0] = (i) => R(t) ? t.value = i : null),
517
+ "onUpdate:modelValue": p[0] || (p[0] = (u) => O(t) ? t.value = u : null),
514
518
  placeholder: c.placeholder,
515
- onUpdateFocused: p[1] || (p[1] = (i) => l.value = i)
519
+ onUpdateFocused: p[1] || (p[1] = (u) => l.value = u)
516
520
  }, null, 8, ["modelValue", "placeholder"]),
517
521
  m("div", {
518
522
  class: h(["mt2 $ui-base text-3.5", [
519
- s[c.status],
523
+ i[c.status],
520
524
  { "opacity-65": !l.value }
521
525
  ]])
522
526
  }, [
523
- c.status !== "normal" && r.value ? (d(), w(E, {
527
+ c.status !== "normal" && r.value ? (d(), w(R, {
524
528
  key: 0,
525
529
  inline: "",
526
- icon: o[c.status]
530
+ icon: a[c.status]
527
531
  }, null, 8, ["icon"])) : $("", !0),
528
- B(" " + C(r.value ? c.message : ""), 1)
532
+ B(" " + V(r.value ? c.message : ""), 1)
529
533
  ], 2)
530
534
  ]));
531
535
  }
532
- }), Ue = { class: "overflow-hidden rounded-lg shadow-lg" }, xe = /* @__PURE__ */ m("div", { class: "p2 opacity-40" }, " Empty... ", -1), Ke = /* @__PURE__ */ y({
536
+ }), Xe = { class: "overflow-hidden rounded-lg shadow-lg" }, Ge = /* @__PURE__ */ m("div", { class: "p2 opacity-40" }, " Empty... ", -1), Je = /* @__PURE__ */ y({
533
537
  __name: "Dropdown",
534
538
  props: {
535
539
  label: {},
@@ -544,8 +548,8 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
544
548
  },
545
549
  emits: ["update:visible"],
546
550
  setup(n) {
547
- const a = n;
548
- return pe("$ui-dropdown-disabled", k(() => a.disabled)), (e, u) => (d(), w(b(se), {
551
+ const o = n;
552
+ return ie("$ui-dropdown-disabled", k(() => o.disabled)), (e, s) => (d(), w(b(ae), {
549
553
  disabled: e.disabled,
550
554
  class: "inline-block w-auto",
551
555
  shown: e.shown,
@@ -553,36 +557,36 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
553
557
  distance: e.distance + 6,
554
558
  placement: e.placement,
555
559
  skidding: e.skidding,
556
- "onUpdate:shown": u[0] || (u[0] = (t) => e.$emit("update:visible", t)),
557
- onClick: u[1] || (u[1] = (t) => {
560
+ "onUpdate:shown": s[0] || (s[0] = (t) => e.$emit("update:visible", t)),
561
+ onClick: s[1] || (s[1] = (t) => {
558
562
  t.stopPropagation();
559
563
  })
560
564
  }, {
561
- popper: f(({ hide: t }) => [
562
- m("div", Ue, [
563
- g(e.$slots, "popper", q(X({ hide: t })), () => [
564
- xe
565
+ popper: g(({ hide: t }) => [
566
+ m("div", Xe, [
567
+ v(e.$slots, "popper", G(J({ hide: t })), () => [
568
+ Ge
565
569
  ])
566
570
  ])
567
571
  ]),
568
- default: f(() => [
569
- g(e.$slots, "default", {}, () => [
572
+ default: g(() => [
573
+ v(e.$slots, "default", {}, () => [
570
574
  _(M, D({
571
575
  ...e.buttonProps,
572
576
  disabled: e.disabled
573
- }, { class: e.buttonClass }), Q({
574
- icon: f(() => [
575
- g(e.$slots, "button-icon")
577
+ }, { class: e.buttonClass }), Z({
578
+ icon: g(() => [
579
+ v(e.$slots, "button-icon")
576
580
  ]),
577
- "icon-right": f(() => [
578
- g(e.$slots, "button-icon-right")
581
+ "icon-right": g(() => [
582
+ v(e.$slots, "button-icon-right")
579
583
  ]),
580
584
  _: 2
581
585
  }, [
582
586
  e.label ? {
583
587
  name: "default",
584
- fn: f(() => [
585
- B(C(e.label), 1)
588
+ fn: g(() => [
589
+ B(V(e.label), 1)
586
590
  ]),
587
591
  key: "0"
588
592
  } : void 0
@@ -592,7 +596,7 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
592
596
  _: 3
593
597
  }, 8, ["disabled", "shown", "triggers", "distance", "placement", "skidding"]));
594
598
  }
595
- }), st = /* @__PURE__ */ y({
599
+ }), wt = /* @__PURE__ */ y({
596
600
  __name: "DropdownButton",
597
601
  props: {
598
602
  type: {},
@@ -605,26 +609,26 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
605
609
  keepOpen: { type: Boolean, default: !1 }
606
610
  },
607
611
  setup(n) {
608
- const a = n, e = me("$ui-dropdown-disabled", void 0);
609
- return (u, t) => N((d(), w(M, D({
610
- ...a,
612
+ const o = n, e = de("$ui-dropdown-disabled", void 0);
613
+ return (s, t) => A((d(), w(M, D({
614
+ ...o,
611
615
  round: !1
612
616
  }, {
613
617
  disabled: b(e),
614
618
  class: "w-full justify-start transition-colors not-action:bg-transparent!"
615
619
  }), {
616
- icon: f(() => [
617
- g(u.$slots, "icon")
620
+ icon: g(() => [
621
+ v(s.$slots, "icon")
618
622
  ]),
619
- default: f(() => [
620
- g(u.$slots, "default")
623
+ default: g(() => [
624
+ v(s.$slots, "default")
621
625
  ]),
622
626
  _: 3
623
627
  }, 16, ["disabled"])), [
624
- [b(x)]
628
+ [b(Y)]
625
629
  ]);
626
630
  }
627
- }), Ye = { class: "$ui-fec gap2.5" }, it = /* @__PURE__ */ y({
631
+ }), Qe = { class: "$ui-fec gap2.5" }, $t = /* @__PURE__ */ y({
628
632
  __name: "Confirm",
629
633
  props: {
630
634
  modelValue: { type: Boolean },
@@ -638,57 +642,57 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
638
642
  autoClose: { type: Boolean, default: !0 }
639
643
  },
640
644
  emits: ["update:modelValue", "confirm", "cancel", "close"],
641
- setup(n, { emit: a }) {
642
- const e = n, u = a, t = T(e, "modelValue", u);
643
- I(() => {
644
- t.value || u("close");
645
+ setup(n, { emit: o }) {
646
+ const e = n, s = o, t = T(e, "modelValue", s);
647
+ P(() => {
648
+ t.value || s("close");
645
649
  });
646
650
  function l(r = !1) {
647
651
  (e.autoClose || r) && (t.value = !1);
648
652
  }
649
- return (r, s) => (d(), w(Ae, {
653
+ return (r, i) => (d(), w(xe, {
650
654
  modelValue: b(t),
651
- "onUpdate:modelValue": s[2] || (s[2] = (o) => R(t) ? t.value = o : null),
655
+ "onUpdate:modelValue": i[2] || (i[2] = (a) => O(t) ? t.value = a : null),
652
656
  width: r.width,
653
657
  height: r.height,
654
658
  title: r.title,
655
659
  closable: !1
656
660
  }, {
657
- footer: f(() => [
658
- m("div", Ye, [
661
+ footer: g(() => [
662
+ m("div", Qe, [
659
663
  _(M, {
660
- onClick: s[0] || (s[0] = () => {
661
- u("cancel"), l(!0);
664
+ onClick: i[0] || (i[0] = () => {
665
+ s("cancel"), l(!0);
662
666
  })
663
667
  }, {
664
- default: f(() => [
665
- B(C(r.cancelText), 1)
668
+ default: g(() => [
669
+ B(V(r.cancelText), 1)
666
670
  ]),
667
671
  _: 1
668
672
  }),
669
673
  _(M, {
670
674
  loading: r.loading,
671
675
  type: "primary",
672
- onClick: s[1] || (s[1] = () => {
673
- u("confirm"), l();
676
+ onClick: i[1] || (i[1] = () => {
677
+ s("confirm"), l();
674
678
  })
675
679
  }, {
676
- default: f(() => [
677
- B(C(r.confirmText), 1)
680
+ default: g(() => [
681
+ B(V(r.confirmText), 1)
678
682
  ]),
679
683
  _: 1
680
684
  }, 8, ["loading"])
681
685
  ])
682
686
  ]),
683
- default: f(() => [
684
- g(r.$slots, "default", { class: "h-auto w-auto" }, () => [
685
- B(C(r.content), 1)
687
+ default: g(() => [
688
+ v(r.$slots, "default", { class: "h-auto w-auto" }, () => [
689
+ B(V(r.content), 1)
686
690
  ])
687
691
  ]),
688
692
  _: 3
689
693
  }, 8, ["modelValue", "width", "height", "title"]));
690
694
  }
691
- }), qe = { class: "m1 min-w-35 w-auto flex flex-col" }, Xe = ["onClick"], Ge = /* @__PURE__ */ m("div", { class: "i-mdi-chevron-down" }, null, -1), dt = /* @__PURE__ */ y({
695
+ }), Ze = { class: "m1 min-w-35 w-auto flex flex-col" }, et = ["onClick"], tt = /* @__PURE__ */ m("div", { class: "i-mdi-chevron-down" }, null, -1), _t = /* @__PURE__ */ y({
692
696
  __name: "Select",
693
697
  props: {
694
698
  modelValue: {},
@@ -701,82 +705,82 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
701
705
  buttonProps: { default: () => ({}) }
702
706
  },
703
707
  emits: ["update:modelValue"],
704
- setup(n, { emit: a }) {
705
- const e = n, u = a, t = K(), l = k({
708
+ setup(n, { emit: o }) {
709
+ const e = n, s = o, t = q(), l = k({
706
710
  get: () => e.modelValue,
707
- set: (o) => u("update:modelValue", o)
711
+ set: (a) => s("update:modelValue", a)
708
712
  }), r = k(() => {
709
- const o = e.options.find((c) => c.value === l.value);
710
- return o != null && o.label ? e.labelRenderer(o.label) : e.placeholder;
713
+ const a = e.options.find((c) => c.value === l.value);
714
+ return a != null && a.label ? e.labelRenderer(a.label) : e.placeholder;
711
715
  });
712
- function s(o) {
713
- e.multiple ? l.value = l.value.includes(o.value) ? l.value.filter((c) => c !== o.value) : [...l.value, o.value] : l.value = o.value;
716
+ function i(a) {
717
+ e.multiple ? l.value = l.value.includes(a.value) ? l.value.filter((c) => c !== a.value) : [...l.value, a.value] : l.value = a.value;
714
718
  }
715
- return (o, c) => (d(), w(Ke, D({ label: r.value }, {
716
- buttonProps: o.buttonProps,
717
- disabled: o.disabled
718
- }), Q({
719
- popper: f(() => [
720
- m("div", qe, [
721
- b(t).item ? (d(!0), v(j, { key: 0 }, H(o.options, (p) => (d(), v("div", {
719
+ return (a, c) => (d(), w(Je, D({ label: r.value }, {
720
+ buttonProps: a.buttonProps,
721
+ disabled: a.disabled
722
+ }), Z({
723
+ popper: g(() => [
724
+ m("div", Ze, [
725
+ b(t).item ? (d(!0), f(z, { key: 0 }, F(a.options, (p) => (d(), f("div", {
722
726
  key: p.value,
723
727
  class: "cursor-pointer",
724
- onClick: (i) => s(p)
728
+ onClick: (u) => i(p)
725
729
  }, [
726
- g(o.$slots, "item", D({ ref_for: !0 }, {
730
+ v(a.$slots, "item", D({ ref_for: !0 }, {
727
731
  item: p,
728
- active: o.multiple ? l.value.includes(p.value) : p.value === l.value,
729
- disabled: o.disabled
732
+ active: a.multiple ? l.value.includes(p.value) : p.value === l.value,
733
+ disabled: a.disabled
730
734
  }))
731
- ], 8, Xe))), 128)) : (d(!0), v(j, { key: 1 }, H(o.options, (p) => N((d(), w(M, {
735
+ ], 8, et))), 128)) : (d(!0), f(z, { key: 1 }, F(a.options, (p) => A((d(), w(M, {
732
736
  key: p.value,
733
- disabled: o.disabled,
737
+ disabled: a.disabled,
734
738
  round: "normal",
735
739
  class: h(["flex-[auto_1_1] not-hover:[&:not(.active)]:bg-transparent!", {
736
- active: o.multiple ? l.value.includes(p.value) : p.value === l.value
740
+ active: a.multiple ? l.value.includes(p.value) : p.value === l.value
737
741
  }]),
738
- onClick: (i) => s(p)
742
+ onClick: (u) => i(p)
739
743
  }, {
740
- default: f(() => [
741
- B(C(p.label), 1)
744
+ default: g(() => [
745
+ B(V(p.label), 1)
742
746
  ]),
743
747
  _: 2
744
748
  }, 1032, ["disabled", "class", "onClick"])), [
745
- [b(x), o.autoClose]
749
+ [b(Y), a.autoClose]
746
750
  ])), 128))
747
751
  ])
748
752
  ]),
749
- "button-icon-right": f(() => [
750
- Ge
753
+ "button-icon-right": g(() => [
754
+ tt
751
755
  ]),
752
756
  _: 2
753
757
  }, [
754
758
  b(t).button ? {
755
759
  name: "default",
756
- fn: f(() => [
757
- g(o.$slots, "button")
760
+ fn: g(() => [
761
+ v(a.$slots, "button")
758
762
  ]),
759
763
  key: "0"
760
764
  } : void 0
761
765
  ]), 1040, ["label"]));
762
766
  }
763
- }), ut = /* @__PURE__ */ y({
767
+ }), Ct = /* @__PURE__ */ y({
764
768
  __name: "Switch",
765
769
  props: {
766
770
  modelValue: { type: Boolean },
767
771
  disabled: { type: Boolean }
768
772
  },
769
773
  emits: ["update:modelValue"],
770
- setup(n, { emit: a }) {
771
- const t = T(n, "modelValue", a), l = ne(t);
772
- return (r, s) => (d(), v("div", {
774
+ setup(n, { emit: o }) {
775
+ const t = T(n, "modelValue", o), l = ve(t);
776
+ return (r, i) => (d(), f("div", {
773
777
  class: h([[
774
778
  r.disabled ? "cursor-not-allowed" : "cursor-pointer"
775
779
  ], "$ui-base $ui-if-sc cursor-pointer select-none gap1.25 vertical-mid text-3.5"]),
776
780
  role: "checkbox",
777
- onClick: s[0] || (s[0] = (o) => !r.disabled && b(l)())
781
+ onClick: i[0] || (i[0] = (a) => !r.disabled && b(l)())
778
782
  }, [
779
- g(r.$slots, "default"),
783
+ v(r.$slots, "default"),
780
784
  m("div", {
781
785
  class: h([{
782
786
  selected: b(t)
@@ -791,20 +795,20 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
791
795
  ], 2)
792
796
  ], 2));
793
797
  }
794
- }), ct = /* @__PURE__ */ y({
798
+ }), Vt = /* @__PURE__ */ y({
795
799
  __name: "Checkbox",
796
800
  props: {
797
801
  modelValue: { type: Boolean },
798
802
  variant: { default: "normal" }
799
803
  },
800
804
  emits: ["update:modelValue"],
801
- setup(n, { emit: a }) {
802
- const t = T(n, "modelValue", a);
803
- return (l, r) => (d(), v("div", {
805
+ setup(n, { emit: o }) {
806
+ const t = T(n, "modelValue", o);
807
+ return (l, r) => (d(), f("div", {
804
808
  class: h(["relative $ui-base h5 w5 $ui-inline-fcc cursor-pointer border-0.125rem rounded-1.25 transition-colors duration-200 ease-in-out", [
805
809
  b(t) ? l.variant === "normal" ? "bg-primary-500 border-primary-200 dark:border-primary-100" : "bg-accent-500 border-accent-200 dark:border-accent-100" : ""
806
810
  ]]),
807
- onClick: r[0] || (r[0] = (s) => t.value = !b(t))
811
+ onClick: r[0] || (r[0] = (i) => t.value = !b(t))
808
812
  }, [
809
813
  m("div", {
810
814
  class: h([[
@@ -813,7 +817,7 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
813
817
  }, null, 2)
814
818
  ], 2));
815
819
  }
816
- }), pt = /* @__PURE__ */ y({
820
+ }), Bt = /* @__PURE__ */ y({
817
821
  __name: "Drawer",
818
822
  props: {
819
823
  modelValue: { type: Boolean },
@@ -830,8 +834,8 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
830
834
  position: {}
831
835
  },
832
836
  emits: ["update:modelValue", "close"],
833
- setup(n, { emit: a }) {
834
- const e = n, u = a, { height: t } = le(() => typeof e.top == "string" ? document.querySelector(e.top) : e.top, void 0, { box: "border-box" }), l = T(e, "modelValue", u), r = {
837
+ setup(n, { emit: o }) {
838
+ const e = n, s = o, { height: t } = be(() => typeof e.top == "string" ? document.querySelector(e.top) : e.top, void 0, { box: "border-box" }), l = T(e, "modelValue", s), r = {
835
839
  left: {
836
840
  class: "left-0 h-full b-r",
837
841
  transition: "[&_.drawer]:translate-x--100%"
@@ -849,20 +853,20 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
849
853
  transition: "[&_.drawer]:translate-y-100%"
850
854
  }
851
855
  };
852
- U("Escape", () => {
856
+ ee("Escape", () => {
853
857
  e.closable && (l.value = !1);
854
858
  });
855
- const s = k(() => r[e.placement]), o = S(!1);
856
- return P(() => o.value = !0), (c, p) => o.value || c.mountTo === "body" ? (d(), w(J, {
859
+ const i = k(() => r[e.placement]), a = S(!1);
860
+ return E(() => a.value = !0), (c, p) => a.value || c.mountTo === "body" ? (d(), w(Q, {
857
861
  key: 0,
858
862
  to: c.mountTo
859
863
  }, [
860
- _(F, {
861
- "enter-from-class": `${s.value.transition}`,
862
- "leave-to-class": `${s.value.transition}`
864
+ _(H, {
865
+ "enter-from-class": `${i.value.transition}`,
866
+ "leave-to-class": `${i.value.transition}`
863
867
  }, {
864
- default: f(() => [
865
- b(l) ? (d(), w(ee, {
868
+ default: g(() => [
869
+ b(l) ? (d(), w(oe, {
866
870
  key: 0,
867
871
  class: h({
868
872
  "pointer-events-none": c.permanent
@@ -870,24 +874,24 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
870
874
  dim: c.dim,
871
875
  blur: c.blur,
872
876
  position: c.position,
873
- onClick: p[2] || (p[2] = (i) => c.closeOutside && c.closable && (l.value = !1))
877
+ onClick: p[2] || (p[2] = (u) => c.closeOutside && c.closable && (l.value = !1))
874
878
  }, {
875
- default: f(() => [
879
+ default: g(() => [
876
880
  m("div", {
877
- class: h([[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"]),
878
- style: L({
881
+ class: h([[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"]),
882
+ style: N({
879
883
  top: c.placement === "bottom" ? "auto" : `${b(t)}px`,
880
884
  height: ["top", "bottom"].includes(c.placement) ? "auto" : `calc(100% - ${b(t)}px)`
881
885
  }),
882
- onClick: p[1] || (p[1] = fe(() => {
886
+ onClick: p[1] || (p[1] = ue(() => {
883
887
  }, ["stop"]))
884
888
  }, [
885
- c.closable ? (d(), v("div", {
889
+ c.closable ? (d(), f("div", {
886
890
  key: 0,
887
891
  class: "i-carbon-close absolute right-1.5 top-1.5 $ui-z-max cursor-pointer p1 text-lg $ui-text",
888
- onClick: p[0] || (p[0] = (i) => l.value = !1)
892
+ onClick: p[0] || (p[0] = (u) => l.value = !1)
889
893
  })) : $("", !0),
890
- g(c.$slots, "default")
894
+ v(c.$slots, "default")
891
895
  ], 6)
892
896
  ]),
893
897
  _: 3
@@ -897,7 +901,7 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
897
901
  }, 8, ["enter-from-class", "leave-to-class"])
898
902
  ], 8, ["to"])) : $("", !0);
899
903
  }
900
- }), mt = /* @__PURE__ */ y({
904
+ }), Tt = /* @__PURE__ */ y({
901
905
  __name: "Tooltip",
902
906
  props: {
903
907
  trigger: {},
@@ -908,59 +912,136 @@ const nt = /* @__PURE__ */ A(Me, [["render", Ie]]), ee = /* @__PURE__ */ y({
908
912
  shown: { type: Boolean }
909
913
  },
910
914
  setup(n) {
911
- return (a, e) => (d(), w(b(ie), D({
912
- disabled: a.disabled,
913
- placement: a.placement
914
- }, a.$attrs), {
915
- popper: f(() => [
916
- g(a.$slots, "popper")
915
+ return (o, e) => (d(), w(b(re), D({
916
+ disabled: o.disabled,
917
+ placement: o.placement
918
+ }, o.$attrs), {
919
+ popper: g(() => [
920
+ v(o.$slots, "popper")
917
921
  ]),
918
- default: f(() => [
919
- g(a.$slots, "default")
922
+ default: g(() => [
923
+ v(o.$slots, "default")
920
924
  ]),
921
925
  _: 3
922
926
  }, 16, ["disabled", "placement"]));
923
927
  }
924
- }), Je = ["innerHTML"], ft = /* @__PURE__ */ y({
928
+ }), ot = ["innerHTML"], Dt = /* @__PURE__ */ y({
925
929
  __name: "IcIcon",
926
930
  props: {
927
931
  name: {}
928
932
  },
929
933
  setup(n) {
930
- const a = n, e = k(() => ge[a.name] ?? "");
931
- return (u, t) => (d(), v("div", null, [
932
- (d(), v("svg", {
934
+ const o = n, e = k(() => he[o.name] ?? "");
935
+ return (s, t) => (d(), f("div", null, [
936
+ (d(), f("svg", {
933
937
  class: "custom-svg h-1em w-1em",
934
938
  xmlns: "http://www.w3.org/2000/svg",
935
939
  viewBox: "0 0 24 24",
936
940
  innerHTML: e.value
937
- }, null, 8, Je))
941
+ }, null, 8, ot))
938
942
  ]));
939
943
  }
944
+ }), I = ce();
945
+ let K = null;
946
+ function at(n, o = "text") {
947
+ var s;
948
+ !K && !I.value && (K = ye({
949
+ themes: [
950
+ import("shiki/themes/vitesse-dark.mjs"),
951
+ import("shiki/themes/vitesse-light.mjs")
952
+ ],
953
+ langs: [
954
+ import("shiki/langs/json.mjs"),
955
+ import("shiki/langs/yaml.mjs"),
956
+ import("shiki/langs/css.mjs"),
957
+ import("shiki/langs/javascript.mjs"),
958
+ import("shiki/langs/typescript.mjs"),
959
+ import("shiki/langs/vue.mjs"),
960
+ import("shiki/langs/vue-html.mjs"),
961
+ import("shiki/langs/html.mjs"),
962
+ import("shiki/langs/diff.mjs"),
963
+ import("shiki/langs/shellscript.mjs")
964
+ ],
965
+ loadWasm: ke
966
+ }).then((t) => {
967
+ I.value = t;
968
+ }));
969
+ const e = (s = I.value) == null ? void 0 : s.getLoadedLanguages().includes(o);
970
+ return e ? {
971
+ code: I.value.codeToHtml(n, {
972
+ lang: o,
973
+ themes: {
974
+ dark: "vitesse-dark",
975
+ light: "vitesse-light"
976
+ }
977
+ }),
978
+ supported: !0
979
+ } : {
980
+ code: n,
981
+ supported: e
982
+ };
983
+ }
984
+ const rt = ["innerHTML"], nt = { class: "shiki" }, lt = ["textContent"], st = /* @__PURE__ */ m("br", null, null, -1), Mt = /* @__PURE__ */ y({
985
+ __name: "CodeBlock",
986
+ props: {
987
+ code: {},
988
+ lang: {},
989
+ lines: { type: Boolean, default: !0 },
990
+ transformRendered: {}
991
+ },
992
+ emits: ["loaded"],
993
+ setup(n, { emit: o }) {
994
+ const e = n, s = o, t = k(() => {
995
+ const l = e.lang === "text" ? { code: e.code, supported: !1 } : at(e.code, e.lang) || { code: e.code, supported: !1 };
996
+ return l.supported && e.transformRendered && (l.code = e.transformRendered(l.code)), l.supported && W(() => s("loaded")), l;
997
+ });
998
+ return (l, r) => l.lang && t.value.supported ? (d(), f("pre", {
999
+ key: 0,
1000
+ class: h(["code-block", l.lines ? "code-block-lines" : ""]),
1001
+ innerHTML: t.value.code
1002
+ }, null, 10, rt)) : (d(), f("pre", {
1003
+ key: 1,
1004
+ class: h(["code-block", l.lines ? "code-block-lines" : ""])
1005
+ }, [
1006
+ m("pre", nt, [
1007
+ m("code", null, [
1008
+ (d(!0), f(z, null, F(l.code.split(`
1009
+ `), (i, a) => (d(), f(z, { key: a }, [
1010
+ m("span", {
1011
+ class: "line",
1012
+ textContent: V(i)
1013
+ }, null, 8, lt),
1014
+ st
1015
+ ], 64))), 128))
1016
+ ])
1017
+ ])
1018
+ ], 2));
1019
+ }
940
1020
  });
941
1021
  export {
942
- Be as THEME_KEY,
943
- at as VueBadge,
1022
+ Ie as THEME_KEY,
1023
+ vt as VueBadge,
944
1024
  M as VueButton,
945
- nt as VueCard,
946
- ct as VueCheckbox,
947
- it as VueConfirm,
948
- rt as VueDarkToggle,
949
- Ae as VueDialog,
950
- pt as VueDrawer,
951
- Ke as VueDropdown,
952
- st as VueDropdownButton,
953
- lt as VueFormField,
954
- ft as VueIcIcon,
955
- E as VueIcon,
956
- je as VueInput,
957
- Z as VueLoadingIndicator,
958
- Ce as VueNotification,
959
- ee as VueOverlay,
960
- dt as VueSelect,
961
- ut as VueSwitch,
962
- mt as VueTooltip,
963
- ot as showVueNotification,
964
- Te as useDevToolsColorMode,
965
- bt as vTooltip
1025
+ yt as VueCard,
1026
+ Vt as VueCheckbox,
1027
+ Mt as VueCodeBlock,
1028
+ $t as VueConfirm,
1029
+ ht as VueDarkToggle,
1030
+ xe as VueDialog,
1031
+ Bt as VueDrawer,
1032
+ Je as VueDropdown,
1033
+ wt as VueDropdownButton,
1034
+ kt as VueFormField,
1035
+ Dt as VueIcIcon,
1036
+ R as VueIcon,
1037
+ Ye as VueInput,
1038
+ te as VueLoadingIndicator,
1039
+ Se as VueNotification,
1040
+ oe as VueOverlay,
1041
+ _t as VueSelect,
1042
+ Ct as VueSwitch,
1043
+ Tt as VueTooltip,
1044
+ bt as showVueNotification,
1045
+ Pe as useDevToolsColorMode,
1046
+ Pt as vTooltip
966
1047
  };