@roku-ui/vue 0.7.2 → 0.7.3

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,5 +1,5 @@
1
- import { defineComponent as x, openBlock as h, createElementBlock as b, normalizeStyle as C, renderSlot as k, computed as m, ref as g, onMounted as ee, Fragment as K, createBlock as P, resolveDynamicComponent as ue, mergeProps as xe, unref as u, createCommentVNode as T, getCurrentScope as xt, onScopeDispose as kt, nextTick as et, getCurrentInstance as tt, watch as de, shallowRef as St, readonly as Mt, watchEffect as X, withCtx as L, normalizeClass as y, createElementVNode as w, mergeModels as W, useModel as j, inject as be, provide as ge, useAttrs as $t, withDirectives as Te, vModelText as Ct, createVNode as Z, Teleport as At, Transition as rt, useSlots as nt, toDisplayString as se, renderList as ye, vModelDynamic as Tt, withModifiers as ot, withKeys as zt, reactive as Et, vModelCheckbox as Rt, isRef as Bt, createTextVNode as Ot } from "vue";
2
- const In = /* @__PURE__ */ x({
1
+ import { defineComponent as x, openBlock as h, createElementBlock as b, normalizeStyle as T, renderSlot as S, computed as v, ref as g, onMounted as ee, Fragment as K, createBlock as P, resolveDynamicComponent as ue, mergeProps as de, unref as u, createCommentVNode as A, getCurrentScope as kt, onScopeDispose as St, nextTick as tt, getCurrentInstance as rt, watch as fe, shallowRef as Mt, readonly as $t, watchEffect as X, withCtx as L, normalizeClass as y, createElementVNode as w, mergeModels as W, useModel as j, inject as ge, provide as ye, useAttrs as nt, withDirectives as Te, vModelText as Ct, createVNode as Z, Teleport as At, Transition as ot, useSlots as at, toDisplayString as re, renderList as we, vModelDynamic as Tt, withModifiers as st, withKeys as zt, reactive as Et, vModelCheckbox as Rt, isRef as Bt, createTextVNode as Ot } from "vue";
2
+ const Dn = /* @__PURE__ */ x({
3
3
  __name: "AspectRatio",
4
4
  props: {
5
5
  ratio: { default: 1 },
@@ -10,7 +10,7 @@ const In = /* @__PURE__ */ x({
10
10
  },
11
11
  setup(e) {
12
12
  return (t, r) => (h(), b("div", {
13
- style: C({
13
+ style: T({
14
14
  "--ar-ratio": t.ratio,
15
15
  width: t.width,
16
16
  "max-width": t.maxWidth,
@@ -19,7 +19,7 @@ const In = /* @__PURE__ */ x({
19
19
  }),
20
20
  class: "relative children:absolute children:top-0 before:block before:h-0 children:h-full children:w-full before:pb-[calc((1/var(--ar-ratio,1))*100%)] before:content-['']"
21
21
  }, [
22
- k(t.$slots, "default")
22
+ S(t.$slots, "default")
23
23
  ], 4));
24
24
  }
25
25
  }), Ht = /* @__PURE__ */ x({
@@ -32,7 +32,7 @@ const In = /* @__PURE__ */ x({
32
32
  class: {}
33
33
  },
34
34
  setup(e) {
35
- const t = e, r = m(() => {
35
+ const t = e, r = v(() => {
36
36
  switch (t.size) {
37
37
  case "sm":
38
38
  return "--size: 1.5rem;";
@@ -51,7 +51,7 @@ const In = /* @__PURE__ */ x({
51
51
  var s;
52
52
  (s = a.value) != null && s.complete && o();
53
53
  }), (s, i) => (h(), b(K, null, [
54
- s.src ? (h(), P(ue(s.is), xe({
54
+ s.src ? (h(), P(ue(s.is), de({
55
55
  key: 0,
56
56
  ref_key: "img",
57
57
  ref: a,
@@ -59,17 +59,17 @@ const In = /* @__PURE__ */ x({
59
59
  placeholder: "",
60
60
  src: s.src,
61
61
  class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !u(n) }, t.class]]
62
- }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : T("", !0),
63
- u(n) ? T("", !0) : (h(), b("div", {
62
+ }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : A("", !0),
63
+ u(n) ? A("", !0) : (h(), b("div", {
64
64
  key: 1,
65
65
  class: "h-[var(--size)] w-[var(--size)] animate-pulse border-transparent rounded-full bg-surface-high object-cover",
66
- style: C([s.style, u(r)])
66
+ style: T([s.style, u(r)])
67
67
  }, null, 4))
68
68
  ], 64));
69
69
  }
70
70
  });
71
71
  function U(e) {
72
- return m(
72
+ return v(
73
73
  () => ({ style: Nt(e.rounded), class: "rounded-[var(--r-rounded)]" })
74
74
  );
75
75
  }
@@ -91,7 +91,7 @@ function Nt(e) {
91
91
  }
92
92
  }
93
93
  function ke(e) {
94
- return xt() ? (kt(e), !0) : !1;
94
+ return kt() ? (St(e), !0) : !1;
95
95
  }
96
96
  function Pt() {
97
97
  const e = /* @__PURE__ */ new Set(), t = (a) => {
@@ -117,32 +117,32 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
117
117
  const It = (e) => e != null, Vt = Object.prototype.toString, Dt = (e) => Vt.call(e) === "[object Object]", Ft = () => {
118
118
  }, Lt = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
119
119
  function Wt(e) {
120
- return e || tt();
120
+ return e || rt();
121
121
  }
122
122
  function jt(e, t = !0, r) {
123
- Wt() ? ee(e, r) : t ? e() : et(e);
123
+ Wt() ? ee(e, r) : t ? e() : tt(e);
124
124
  }
125
- function re(e) {
125
+ function ne(e) {
126
126
  var t;
127
127
  const r = ze(e);
128
128
  return (t = r == null ? void 0 : r.$el) != null ? t : r;
129
129
  }
130
- const fe = Q ? window : void 0, Ut = Q ? window.document : void 0;
130
+ const he = Q ? window : void 0, Ut = Q ? window.document : void 0;
131
131
  function N(...e) {
132
132
  let t, r, n, a;
133
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = fe) : [t, r, n, a] = e, !t)
133
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = he) : [t, r, n, a] = e, !t)
134
134
  return Ft;
135
135
  Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
136
136
  const o = [], s = () => {
137
137
  o.forEach((d) => d()), o.length = 0;
138
- }, i = (d, f, v, S) => (d.addEventListener(f, v, S), () => d.removeEventListener(f, v, S)), l = de(
139
- () => [re(t), ze(a)],
138
+ }, i = (d, f, m, k) => (d.addEventListener(f, m, k), () => d.removeEventListener(f, m, k)), l = fe(
139
+ () => [ne(t), ze(a)],
140
140
  ([d, f]) => {
141
141
  if (s(), !d)
142
142
  return;
143
- const v = Dt(f) ? { ...f } : f;
143
+ const m = Dt(f) ? { ...f } : f;
144
144
  o.push(
145
- ...r.flatMap((S) => n.map((A) => i(d, S, A, v)))
145
+ ...r.flatMap((k) => n.map(($) => i(d, k, $, m)))
146
146
  );
147
147
  },
148
148
  { immediate: !0, flush: "post" }
@@ -158,7 +158,7 @@ function te(...e) {
158
158
  let t, r, n = {};
159
159
  e.length === 3 ? (t = e[0], r = e[1], n = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, r = e[0], n = e[1]) : (t = e[0], r = e[1]) : (t = !0, r = e[0]);
160
160
  const {
161
- target: a = fe,
161
+ target: a = he,
162
162
  eventName: o = "keydown",
163
163
  passive: s = !1,
164
164
  dedupe: i = !1
@@ -169,16 +169,16 @@ function te(...e) {
169
169
  }
170
170
  function qt() {
171
171
  const e = g(!1);
172
- return tt() && ee(() => {
172
+ return rt() && ee(() => {
173
173
  e.value = !0;
174
174
  }), e;
175
175
  }
176
176
  function De(e) {
177
177
  const t = qt();
178
- return m(() => (t.value, !!e()));
178
+ return v(() => (t.value, !!e()));
179
179
  }
180
- function Ue(e, t = {}) {
181
- const { window: r = fe } = t, n = De(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
180
+ function Ge(e, t = {}) {
181
+ const { window: r = he } = t, n = De(() => r && "matchMedia" in r && typeof r.matchMedia == "function");
182
182
  let a;
183
183
  const o = g(!1), s = (c) => {
184
184
  o.value = c.matches;
@@ -192,12 +192,12 @@ function Ue(e, t = {}) {
192
192
  }), o;
193
193
  }
194
194
  function Xt(e, t, r = {}) {
195
- const { window: n = fe, ...a } = r;
195
+ const { window: n = he, ...a } = r;
196
196
  let o;
197
197
  const s = De(() => n && "MutationObserver" in n), i = () => {
198
198
  o && (o.disconnect(), o = void 0);
199
- }, l = de(
200
- () => re(e),
199
+ }, l = fe(
200
+ () => ne(e),
201
201
  (f) => {
202
202
  i(), s.value && n && f && (o = new MutationObserver(t), o.observe(f, a));
203
203
  },
@@ -212,7 +212,7 @@ function Xt(e, t, r = {}) {
212
212
  };
213
213
  }
214
214
  function Yt(e, t = {}) {
215
- const r = g(!1), n = St(null);
215
+ const r = g(!1), n = Mt(null);
216
216
  let a = 0, o = !0;
217
217
  if (Q) {
218
218
  const s = typeof t == "function" ? { onDrop: t } : t, i = (l) => {
@@ -222,10 +222,10 @@ function Yt(e, t = {}) {
222
222
  };
223
223
  N(e, "dragenter", (l) => {
224
224
  var c, d;
225
- const f = Array.from(((c = l == null ? void 0 : l.dataTransfer) == null ? void 0 : c.items) || []).map((v) => v.kind === "file" ? v.type : null).filter(It);
225
+ const f = Array.from(((c = l == null ? void 0 : l.dataTransfer) == null ? void 0 : c.items) || []).map((m) => m.kind === "file" ? m.type : null).filter(It);
226
226
  if (s.dataTypes && l.dataTransfer) {
227
- const v = u(s.dataTypes);
228
- if (o = typeof v == "function" ? v(f) : v ? v.some((S) => f.includes(S)) : !0, !o)
227
+ const m = u(s.dataTypes);
228
+ if (o = typeof m == "function" ? m(f) : m ? m.some((k) => f.includes(k)) : !0, !o)
229
229
  return;
230
230
  }
231
231
  l.preventDefault(), a += 1, r.value = !0, (d = s.onEnter) == null || d.call(s, i(l), l);
@@ -246,17 +246,17 @@ function Yt(e, t = {}) {
246
246
  };
247
247
  }
248
248
  function Zt(e, t, r = {}) {
249
- const { window: n = fe, ...a } = r;
249
+ const { window: n = he, ...a } = r;
250
250
  let o;
251
251
  const s = De(() => n && "ResizeObserver" in n), i = () => {
252
252
  o && (o.disconnect(), o = void 0);
253
- }, l = m(() => Array.isArray(e) ? e.map((f) => re(f)) : [re(e)]), c = de(
253
+ }, l = v(() => Array.isArray(e) ? e.map((f) => ne(f)) : [ne(e)]), c = fe(
254
254
  l,
255
255
  (f) => {
256
256
  if (i(), s.value && n) {
257
257
  o = new ResizeObserver(t);
258
- for (const v of f)
259
- v && o.observe(v, a);
258
+ for (const m of f)
259
+ m && o.observe(m, a);
260
260
  }
261
261
  },
262
262
  { immediate: !0, flush: "post", deep: !0 }
@@ -274,20 +274,20 @@ function Kt(e, t = {}) {
274
274
  windowResize: n = !0,
275
275
  windowScroll: a = !0,
276
276
  immediate: o = !0
277
- } = t, s = g(0), i = g(0), l = g(0), c = g(0), d = g(0), f = g(0), v = g(0), S = g(0);
278
- function A() {
279
- const z = re(e);
277
+ } = t, s = g(0), i = g(0), l = g(0), c = g(0), d = g(0), f = g(0), m = g(0), k = g(0);
278
+ function $() {
279
+ const z = ne(e);
280
280
  if (!z) {
281
- r && (s.value = 0, i.value = 0, l.value = 0, c.value = 0, d.value = 0, f.value = 0, v.value = 0, S.value = 0);
281
+ r && (s.value = 0, i.value = 0, l.value = 0, c.value = 0, d.value = 0, f.value = 0, m.value = 0, k.value = 0);
282
282
  return;
283
283
  }
284
284
  const E = z.getBoundingClientRect();
285
- s.value = E.height, i.value = E.bottom, l.value = E.left, c.value = E.right, d.value = E.top, f.value = E.width, v.value = E.x, S.value = E.y;
285
+ s.value = E.height, i.value = E.bottom, l.value = E.left, c.value = E.right, d.value = E.top, f.value = E.width, m.value = E.x, k.value = E.y;
286
286
  }
287
- return Zt(e, A), de(() => re(e), (z) => !z && A()), Xt(e, A, {
287
+ return Zt(e, $), fe(() => ne(e), (z) => !z && $()), Xt(e, $, {
288
288
  attributeFilter: ["style", "class"]
289
- }), a && N("scroll", A, { capture: !0, passive: !0 }), n && N("resize", A, { passive: !0 }), jt(() => {
290
- o && A();
289
+ }), a && N("scroll", $, { capture: !0, passive: !0 }), n && N("resize", $, { passive: !0 }), jt(() => {
290
+ o && $();
291
291
  }), {
292
292
  height: s,
293
293
  bottom: i,
@@ -295,16 +295,16 @@ function Kt(e, t = {}) {
295
295
  right: c,
296
296
  top: d,
297
297
  width: f,
298
- x: v,
299
- y: S,
300
- update: A
298
+ x: m,
299
+ y: k,
300
+ update: $
301
301
  };
302
302
  }
303
303
  function Qt(e, t = {}) {
304
304
  const {
305
305
  delayEnter: r = 0,
306
306
  delayLeave: n = 0,
307
- window: a = fe
307
+ window: a = he
308
308
  } = t, o = g(!1);
309
309
  let s;
310
310
  const i = (l) => {
@@ -341,26 +341,26 @@ function er(e = {}) {
341
341
  o.multiple = c.multiple, o.accept = c.accept, o.webkitdirectory = c.directory, Lt(c, "capture") && (o.capture = c.capture), c.reset && s(), o.click();
342
342
  };
343
343
  return {
344
- files: Mt(r),
344
+ files: $t(r),
345
345
  open: i,
346
346
  reset: s,
347
347
  onChange: n
348
348
  };
349
349
  }
350
350
  function tr(e, t = {}) {
351
- const { initialValue: r = !1, focusVisible: n = !1 } = t, a = g(!1), o = m(() => re(e));
351
+ const { initialValue: r = !1, focusVisible: n = !1 } = t, a = g(!1), o = v(() => ne(e));
352
352
  N(o, "focus", (i) => {
353
353
  var l, c;
354
354
  (!n || (c = (l = i.target).matches) != null && c.call(l, ":focus-visible")) && (a.value = !0);
355
355
  }), N(o, "blur", () => a.value = !1);
356
- const s = m({
356
+ const s = v({
357
357
  get: () => a.value,
358
358
  set(i) {
359
359
  var l, c;
360
360
  !i && a.value ? (l = o.value) == null || l.blur() : i && !a.value && ((c = o.value) == null || c.focus());
361
361
  }
362
362
  });
363
- return de(
363
+ return fe(
364
364
  o,
365
365
  () => {
366
366
  s.value = r;
@@ -369,10 +369,10 @@ function tr(e, t = {}) {
369
369
  ), { focused: s };
370
370
  }
371
371
  function rr(e) {
372
- const t = Ue("(prefers-color-scheme: light)", e), r = Ue("(prefers-color-scheme: dark)", e);
373
- return m(() => r.value ? "dark" : t.value ? "light" : "no-preference");
372
+ const t = Ge("(prefers-color-scheme: light)", e), r = Ge("(prefers-color-scheme: dark)", e);
373
+ return v(() => r.value ? "dark" : t.value ? "light" : "no-preference");
374
374
  }
375
- const at = /* @__PURE__ */ x({
375
+ const lt = /* @__PURE__ */ x({
376
376
  __name: "Btn",
377
377
  props: {
378
378
  type: { default: "button" },
@@ -388,7 +388,7 @@ const at = /* @__PURE__ */ x({
388
388
  disabled: { type: Boolean, default: !1 }
389
389
  },
390
390
  setup(e) {
391
- const t = e, r = U(t), n = m(() => {
391
+ const t = e, r = U(t), n = v(() => {
392
392
  switch (t.size) {
393
393
  case "sm":
394
394
  return {
@@ -406,7 +406,7 @@ const at = /* @__PURE__ */ x({
406
406
  iconContent: "h-10 w-10 p-3"
407
407
  };
408
408
  }
409
- }), a = g(null), o = Qt(a), s = m(() => t.hoverVariant && o.value ? t.hoverVariant : t.variant), i = m(() => {
409
+ }), a = g(null), o = Qt(a), s = v(() => t.hoverVariant && o.value ? t.hoverVariant : t.variant), i = v(() => {
410
410
  switch (s.value) {
411
411
  case "filled":
412
412
  switch (t.color) {
@@ -479,7 +479,7 @@ const at = /* @__PURE__ */ x({
479
479
  return "btn-default";
480
480
  }
481
481
  });
482
- return (l, c) => (h(), P(ue(l.is), xe({
482
+ return (l, c) => (h(), P(ue(l.is), de({
483
483
  ref_key: "btn",
484
484
  ref: a,
485
485
  "data-size": l.size,
@@ -501,9 +501,9 @@ const at = /* @__PURE__ */ x({
501
501
  disabled: l.disabled
502
502
  }, l.$attrs), {
503
503
  default: L(() => [
504
- l.$slots.leftSection ? k(l.$slots, "leftSection", { key: 0 }) : T("", !0),
505
- k(l.$slots, "default"),
506
- l.$slots.rightSection ? k(l.$slots, "rightSection", { key: 1 }) : T("", !0)
504
+ l.$slots.leftSection ? S(l.$slots, "leftSection", { key: 0 }) : A("", !0),
505
+ S(l.$slots, "default"),
506
+ l.$slots.rightSection ? S(l.$slots, "rightSection", { key: 1 }) : A("", !0)
507
507
  ]),
508
508
  _: 3
509
509
  }, 16, ["data-size", "type", "style", "class", "disabled"]));
@@ -516,10 +516,10 @@ const at = /* @__PURE__ */ x({
516
516
  }, or = {}, ar = { class: "flex flex-col gap-4 container" };
517
517
  function sr(e, t) {
518
518
  return h(), b("div", ar, [
519
- k(e.$slots, "default")
519
+ S(e.$slots, "default")
520
520
  ]);
521
521
  }
522
- const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
522
+ const Fn = /* @__PURE__ */ nr(or, [["render", sr]]), Ln = /* @__PURE__ */ x({
523
523
  __name: "ChatMessage",
524
524
  props: {
525
525
  avatar: {},
@@ -529,7 +529,7 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
529
529
  withBorder: { type: Boolean, default: !1 }
530
530
  },
531
531
  setup(e) {
532
- const t = e, r = m(() => {
532
+ const t = e, r = v(() => {
533
533
  switch (t.variant) {
534
534
  case "default":
535
535
  return "bg-surface-base";
@@ -558,10 +558,10 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
558
558
  }
559
559
  ]])
560
560
  }, [
561
- n.$slots.avatar ? k(n.$slots, "avatar", { key: 0 }) : n.avatar ? (h(), P(o, {
561
+ n.$slots.avatar ? S(n.$slots, "avatar", { key: 0 }) : n.avatar ? (h(), P(o, {
562
562
  key: 1,
563
563
  src: n.avatar
564
- }, null, 8, ["src"])) : T("", !0),
564
+ }, null, 8, ["src"])) : A("", !0),
565
565
  w("div", {
566
566
  class: y(["rounded-xl px-3 py-2 transition-background-color,border-color", [
567
567
  {
@@ -572,12 +572,12 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
572
572
  u(r)
573
573
  ]])
574
574
  }, [
575
- k(n.$slots, "default")
575
+ S(n.$slots, "default")
576
576
  ], 2)
577
577
  ], 2);
578
578
  };
579
579
  }
580
- }), lr = { class: "w-full flex self-center gap-2 text-center" }, Fn = /* @__PURE__ */ x({
580
+ }), lr = { class: "w-full flex self-center gap-2 text-center" }, Wn = /* @__PURE__ */ x({
581
581
  __name: "ChatSystem",
582
582
  props: {
583
583
  position: {},
@@ -586,7 +586,7 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
586
586
  withBorder: { type: Boolean, default: !1 }
587
587
  },
588
588
  setup(e) {
589
- const t = e, r = m(() => {
589
+ const t = e, r = v(() => {
590
590
  switch (t.variant) {
591
591
  case "default":
592
592
  return "bg-surface-base";
@@ -611,11 +611,11 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
611
611
  u(r)
612
612
  ]])
613
613
  }, [
614
- k(n.$slots, "default")
614
+ S(n.$slots, "default")
615
615
  ], 2)
616
616
  ]));
617
617
  }
618
- }), Ln = /* @__PURE__ */ x({
618
+ }), jn = /* @__PURE__ */ x({
619
619
  __name: "Chip",
620
620
  props: /* @__PURE__ */ W({
621
621
  is: { default: "img" },
@@ -630,7 +630,7 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
630
630
  }),
631
631
  emits: ["update:modelValue"],
632
632
  setup(e) {
633
- const t = e, r = j(e, "modelValue"), n = U(t), a = m(() => {
633
+ const t = e, r = j(e, "modelValue"), n = U(t), a = v(() => {
634
634
  switch (t.size) {
635
635
  case "sm":
636
636
  return "px-3 text-sm h-6";
@@ -639,15 +639,15 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
639
639
  case "lg":
640
640
  return "px-8 h-10 text-lg";
641
641
  }
642
- }), o = m(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = m(() => r.value !== void 0), i = m(() => s.value ? "cursor-pointer" : "");
642
+ }), o = v(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = v(() => r.value !== void 0), i = v(() => s.value ? "cursor-pointer" : "");
643
643
  return (l, c) => (h(), b("span", {
644
644
  class: y(["inline-flex items-center gap-1", [u(n).class, u(a), u(o), u(i)]]),
645
- style: C([u(n).style]),
645
+ style: T([u(n).style]),
646
646
  onPointerup: c[0] || (c[0] = (d) => u(s) && (r.value = !r.value))
647
647
  }, [
648
- l.$slots.leftSection ? k(l.$slots, "leftSection", { key: 0 }) : T("", !0),
649
- k(l.$slots, "default"),
650
- l.$slots.rightSection ? k(l.$slots, "rightSection", { key: 1 }) : T("", !0)
648
+ l.$slots.leftSection ? S(l.$slots, "leftSection", { key: 0 }) : A("", !0),
649
+ S(l.$slots, "default"),
650
+ l.$slots.rightSection ? S(l.$slots, "rightSection", { key: 1 }) : A("", !0)
651
651
  ], 38));
652
652
  }
653
653
  }), ir = /* @__PURE__ */ x({
@@ -663,7 +663,7 @@ const Vn = /* @__PURE__ */ nr(or, [["render", sr]]), Dn = /* @__PURE__ */ x({
663
663
  "border border-surface-border-base": t.withBorder,
664
664
  "border border-transparent": !t.withBorder
665
665
  }]]),
666
- style: C({
666
+ style: T({
667
667
  backgroundColor: t.color
668
668
  })
669
669
  }, null, 8, ["class", "style"]));
@@ -714,10 +714,10 @@ p.prototype = {
714
714
  return r = t.r / 255, n = t.g / 255, a = t.b / 255, r <= 0.03928 ? o = r / 12.92 : o = Math.pow((r + 0.055) / 1.055, 2.4), n <= 0.03928 ? s = n / 12.92 : s = Math.pow((n + 0.055) / 1.055, 2.4), a <= 0.03928 ? i = a / 12.92 : i = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * o + 0.7152 * s + 0.0722 * i;
715
715
  },
716
716
  setAlpha: function(t) {
717
- return this._a = st(t), this._roundA = Math.round(100 * this._a) / 100, this;
717
+ return this._a = it(t), this._roundA = Math.round(100 * this._a) / 100, this;
718
718
  },
719
719
  toHsv: function() {
720
- var t = qe(this._r, this._g, this._b);
720
+ var t = Xe(this._r, this._g, this._b);
721
721
  return {
722
722
  h: t.h * 360,
723
723
  s: t.s,
@@ -726,11 +726,11 @@ p.prototype = {
726
726
  };
727
727
  },
728
728
  toHsvString: function() {
729
- var t = qe(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
729
+ var t = Xe(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
730
730
  return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
731
731
  },
732
732
  toHsl: function() {
733
- var t = Ge(this._r, this._g, this._b);
733
+ var t = qe(this._r, this._g, this._b);
734
734
  return {
735
735
  h: t.h * 360,
736
736
  s: t.s,
@@ -739,11 +739,11 @@ p.prototype = {
739
739
  };
740
740
  },
741
741
  toHslString: function() {
742
- var t = Ge(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.l * 100);
742
+ var t = qe(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.l * 100);
743
743
  return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
744
744
  },
745
745
  toHex: function(t) {
746
- return Xe(this._r, this._g, this._b, t);
746
+ return Ye(this._r, this._g, this._b, t);
747
747
  },
748
748
  toHexString: function(t) {
749
749
  return "#" + this.toHex(t);
@@ -777,13 +777,13 @@ p.prototype = {
777
777
  return this._a == 1 ? "rgb(" + Math.round(M(this._r, 255) * 100) + "%, " + Math.round(M(this._g, 255) * 100) + "%, " + Math.round(M(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(M(this._r, 255) * 100) + "%, " + Math.round(M(this._g, 255) * 100) + "%, " + Math.round(M(this._b, 255) * 100) + "%, " + this._roundA + ")";
778
778
  },
779
779
  toName: function() {
780
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : Cr[Xe(this._r, this._g, this._b, !0)] || !1;
780
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : Cr[Ye(this._r, this._g, this._b, !0)] || !1;
781
781
  },
782
782
  toFilter: function(t) {
783
- var r = "#" + Ye(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
783
+ var r = "#" + Ze(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
784
784
  if (t) {
785
785
  var o = p(t);
786
- n = "#" + Ye(o._r, o._g, o._b, o._a);
786
+ n = "#" + Ze(o._r, o._g, o._b, o._a);
787
787
  }
788
788
  return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
789
789
  },
@@ -841,17 +841,17 @@ p.prototype = {
841
841
  // return this._applyCombination(polyad, [number]);
842
842
  // },
843
843
  triad: function() {
844
- return this._applyCombination(Ze, [3]);
844
+ return this._applyCombination(Ke, [3]);
845
845
  },
846
846
  tetrad: function() {
847
- return this._applyCombination(Ze, [4]);
847
+ return this._applyCombination(Ke, [4]);
848
848
  }
849
849
  };
850
850
  p.fromRatio = function(e, t) {
851
851
  if ($e(e) == "object") {
852
852
  var r = {};
853
853
  for (var n in e)
854
- e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = me(e[n]));
854
+ e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = ve(e[n]));
855
855
  e = r;
856
856
  }
857
857
  return p(e, t);
@@ -862,7 +862,7 @@ function dr(e) {
862
862
  g: 0,
863
863
  b: 0
864
864
  }, r = 1, n = null, a = null, o = null, s = !1, i = !1;
865
- return typeof e == "string" && (e = Er(e)), $e(e) == "object" && (G(e.r) && G(e.g) && G(e.b) ? (t = fr(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : G(e.h) && G(e.s) && G(e.v) ? (n = me(e.s), a = me(e.v), t = pr(e.h, n, a), s = !0, i = "hsv") : G(e.h) && G(e.s) && G(e.l) && (n = me(e.s), o = me(e.l), t = hr(e.h, n, o), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = st(r), {
865
+ return typeof e == "string" && (e = Er(e)), $e(e) == "object" && (G(e.r) && G(e.g) && G(e.b) ? (t = fr(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : G(e.h) && G(e.s) && G(e.v) ? (n = ve(e.s), a = ve(e.v), t = pr(e.h, n, a), s = !0, i = "hsv") : G(e.h) && G(e.s) && G(e.l) && (n = ve(e.s), o = ve(e.l), t = hr(e.h, n, o), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = it(r), {
866
866
  ok: s,
867
867
  format: e.format || i,
868
868
  r: Math.min(255, Math.max(t.r, 0)),
@@ -878,7 +878,7 @@ function fr(e, t, r) {
878
878
  b: M(r, 255) * 255
879
879
  };
880
880
  }
881
- function Ge(e, t, r) {
881
+ function qe(e, t, r) {
882
882
  e = M(e, 255), t = M(t, 255), r = M(r, 255);
883
883
  var n = Math.max(e, t, r), a = Math.min(e, t, r), o, s, i = (n + a) / 2;
884
884
  if (n == a)
@@ -922,7 +922,7 @@ function hr(e, t, r) {
922
922
  b: o * 255
923
923
  };
924
924
  }
925
- function qe(e, t, r) {
925
+ function Xe(e, t, r) {
926
926
  e = M(e, 255), t = M(t, 255), r = M(r, 255);
927
927
  var n = Math.max(e, t, r), a = Math.min(e, t, r), o, s, i = n, l = n - a;
928
928
  if (s = n === 0 ? 0 : l / n, n == a)
@@ -956,16 +956,16 @@ function pr(e, t, r) {
956
956
  b: f * 255
957
957
  };
958
958
  }
959
- function Xe(e, t, r, n) {
959
+ function Ye(e, t, r, n) {
960
960
  var a = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
961
961
  return n && a[0].charAt(0) == a[0].charAt(1) && a[1].charAt(0) == a[1].charAt(1) && a[2].charAt(0) == a[2].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) : a.join("");
962
962
  }
963
963
  function mr(e, t, r, n, a) {
964
- var o = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16)), D(lt(n))];
964
+ var o = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16)), D(ct(n))];
965
965
  return a && o[0].charAt(0) == o[0].charAt(1) && o[1].charAt(0) == o[1].charAt(1) && o[2].charAt(0) == o[2].charAt(1) && o[3].charAt(0) == o[3].charAt(1) ? o[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) + o[3].charAt(0) : o.join("");
966
966
  }
967
- function Ye(e, t, r, n) {
968
- var a = [D(lt(n)), D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
967
+ function Ze(e, t, r, n) {
968
+ var a = [D(ct(n)), D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
969
969
  return a.join("");
970
970
  }
971
971
  p.equals = function(e, t) {
@@ -1014,7 +1014,7 @@ function kr(e) {
1014
1014
  var t = p(e).toHsl();
1015
1015
  return t.h = (t.h + 180) % 360, p(t);
1016
1016
  }
1017
- function Ze(e, t) {
1017
+ function Ke(e, t) {
1018
1018
  if (isNaN(t) || t <= 0)
1019
1019
  throw new Error("Argument to polyad must be a positive number");
1020
1020
  for (var r = p(e).toHsl(), n = [p(e)], a = 360 / t, o = 1; o < t; o++)
@@ -1251,7 +1251,7 @@ function Ar(e) {
1251
1251
  e.hasOwnProperty(r) && (t[e[r]] = r);
1252
1252
  return t;
1253
1253
  }
1254
- function st(e) {
1254
+ function it(e) {
1255
1255
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
1256
1256
  }
1257
1257
  function M(e, t) {
@@ -1274,13 +1274,13 @@ function zr(e) {
1274
1274
  function D(e) {
1275
1275
  return e.length == 1 ? "0" + e : "" + e;
1276
1276
  }
1277
- function me(e) {
1277
+ function ve(e) {
1278
1278
  return e <= 1 && (e = e * 100 + "%"), e;
1279
1279
  }
1280
- function lt(e) {
1280
+ function ct(e) {
1281
1281
  return Math.round(parseFloat(e) * 255).toString(16);
1282
1282
  }
1283
- function Ke(e) {
1283
+ function Qe(e) {
1284
1284
  return H(e) / 255;
1285
1285
  }
1286
1286
  var V = function() {
@@ -1347,7 +1347,7 @@ function Er(e) {
1347
1347
  r: H(r[1]),
1348
1348
  g: H(r[2]),
1349
1349
  b: H(r[3]),
1350
- a: Ke(r[4]),
1350
+ a: Qe(r[4]),
1351
1351
  format: t ? "name" : "hex8"
1352
1352
  } : (r = V.hex6.exec(e)) ? {
1353
1353
  r: H(r[1]),
@@ -1358,7 +1358,7 @@ function Er(e) {
1358
1358
  r: H(r[1] + "" + r[1]),
1359
1359
  g: H(r[2] + "" + r[2]),
1360
1360
  b: H(r[3] + "" + r[3]),
1361
- a: Ke(r[4] + "" + r[4]),
1361
+ a: Qe(r[4] + "" + r[4]),
1362
1362
  format: t ? "name" : "hex8"
1363
1363
  } : (r = V.hex3.exec(e)) ? {
1364
1364
  r: H(r[1] + "" + r[1]),
@@ -1390,23 +1390,23 @@ function Br() {
1390
1390
  attributeFilter: ["data-scheme"]
1391
1391
  }), e;
1392
1392
  }
1393
- function Wn() {
1394
- return be("currentThemeScheme", null);
1393
+ function Un() {
1394
+ return ge("currentThemeScheme", null);
1395
1395
  }
1396
1396
  function Or() {
1397
- return be("currentTheme", g(Ie));
1397
+ return ge("currentTheme", g(Ie));
1398
1398
  }
1399
- function it(e, t = !0) {
1399
+ function ut(e, t = !0) {
1400
1400
  const r = g(e), n = g(e.scheme), a = Br();
1401
1401
  X(() => {
1402
1402
  a.value && (n.value = a.value);
1403
- }), ge("currentTheme", r), ge("currentThemeScheme", n);
1403
+ }), ye("currentTheme", r), ye("currentThemeScheme", n);
1404
1404
  const s = {
1405
1405
  ...Object.keys(r.value.colors).map((c) => {
1406
1406
  const d = c;
1407
- return r.value.colors[d].reduce((v, S, A) => {
1408
- const z = p(S).toRgb();
1409
- return v[`--r-color-${d}-${A}`] = `${z.r} ${z.g} ${z.b}`, v;
1407
+ return r.value.colors[d].reduce((m, k, $) => {
1408
+ const z = p(k).toRgb();
1409
+ return m[`--r-color-${d}-${$}`] = `${z.r} ${z.g} ${z.b}`, m;
1410
1410
  }, {});
1411
1411
  }).reduce((c, d) => ({
1412
1412
  ...c,
@@ -1416,7 +1416,7 @@ function it(e, t = !0) {
1416
1416
  "font-family": "'Roboto', sans-serif",
1417
1417
  "background-color": "rgb(var(--r-color-surface-lowest))",
1418
1418
  color: "rgb(var(--r-color-surface-on))"
1419
- }, l = m(() => {
1419
+ }, l = v(() => {
1420
1420
  if (t)
1421
1421
  return {};
1422
1422
  const { scheme: c } = e;
@@ -1481,17 +1481,17 @@ function it(e, t = !0) {
1481
1481
  ...l.value
1482
1482
  };
1483
1483
  }
1484
- function ct(e) {
1484
+ function Fe(e) {
1485
1485
  const t = g("");
1486
1486
  return ee(() => {
1487
1487
  e.id ? t.value = e.id : t.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
1488
1488
  }), t;
1489
1489
  }
1490
- const ut = Symbol("scheme");
1490
+ const dt = Symbol("scheme");
1491
1491
  function Hr() {
1492
- return be(ut, g("dark"));
1492
+ return ge(dt, g("dark"));
1493
1493
  }
1494
- const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1494
+ const Nr = ["id"], Pr = ["for"], Gn = /* @__PURE__ */ x({
1495
1495
  __name: "ColorInput",
1496
1496
  props: {
1497
1497
  modelValue: {},
@@ -1499,7 +1499,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1499
1499
  },
1500
1500
  emits: ["update:modelValue"],
1501
1501
  setup(e) {
1502
- const t = j(e, "modelValue"), r = $t(), n = ct(r), a = g(null);
1502
+ const t = j(e, "modelValue"), r = nt(), n = Fe(r), a = g(null);
1503
1503
  return (o, s) => {
1504
1504
  const i = ir;
1505
1505
  return h(), b("div", null, [
@@ -1528,16 +1528,16 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1528
1528
  theme: {}
1529
1529
  },
1530
1530
  setup(e) {
1531
- const r = it(e.theme, !1);
1531
+ const r = ut(e.theme, !1);
1532
1532
  return (n, a) => (h(), b("div", {
1533
- style: C([u(r)]),
1533
+ style: T([u(r)]),
1534
1534
  "data-scheme": n.theme.scheme,
1535
1535
  "data-theme": n.theme.name
1536
1536
  }, [
1537
- k(n.$slots, "default")
1537
+ S(n.$slots, "default")
1538
1538
  ], 12, Ir));
1539
1539
  }
1540
- }), dt = /* @__PURE__ */ x({
1540
+ }), ft = /* @__PURE__ */ x({
1541
1541
  __name: "FullscreenOverlay",
1542
1542
  props: /* @__PURE__ */ W({
1543
1543
  persistent: { type: Boolean, default: !1 },
@@ -1553,7 +1553,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1553
1553
  function a(c) {
1554
1554
  t.persistent || c.target === n.value && (r.value = !1);
1555
1555
  }
1556
- const o = m(() => {
1556
+ const o = v(() => {
1557
1557
  switch (t.blur) {
1558
1558
  case "sm":
1559
1559
  return "backdrop-blur-sm";
@@ -1589,7 +1589,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1589
1589
  }]]),
1590
1590
  onClick: a
1591
1591
  }, [
1592
- k(c.$slots, "default")
1592
+ S(c.$slots, "default")
1593
1593
  ], 2)
1594
1594
  ]),
1595
1595
  _: 3
@@ -1597,7 +1597,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1597
1597
  ]);
1598
1598
  };
1599
1599
  }
1600
- }), Dr = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, Fr = /* @__PURE__ */ w("i", { class: "i-tabler-x" }, null, -1), Lr = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, Un = /* @__PURE__ */ x({
1600
+ }), Dr = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, Fr = /* @__PURE__ */ w("i", { class: "i-tabler-x" }, null, -1), Lr = { class: "h-full flex flex-col items-center justify-center px-4 md:px-6" }, qn = /* @__PURE__ */ x({
1601
1601
  __name: "Drawer",
1602
1602
  props: /* @__PURE__ */ W({
1603
1603
  persistent: { type: Boolean, default: !1 },
@@ -1611,7 +1611,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1611
1611
  setup(e) {
1612
1612
  const t = e, r = j(e, "modelValue");
1613
1613
  return (n, a) => {
1614
- const o = at, s = dt;
1614
+ const o = lt, s = ft;
1615
1615
  return h(), P(s, {
1616
1616
  modelValue: r.value,
1617
1617
  "onUpdate:modelValue": a[1] || (a[1] = (i) => r.value = i),
@@ -1619,7 +1619,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1619
1619
  persistent: t.persistent
1620
1620
  }, {
1621
1621
  default: L(() => [
1622
- Z(rt, {
1622
+ Z(ot, {
1623
1623
  "enter-from-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
1624
1624
  "enter-to-class": (n.position === "left", "translate-x-0"),
1625
1625
  "leave-from-class": (n.position === "left", "translate-x-0"),
@@ -1646,9 +1646,9 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1646
1646
  })
1647
1647
  ]),
1648
1648
  w("div", Lr, [
1649
- k(n.$slots, "default")
1649
+ S(n.$slots, "default")
1650
1650
  ])
1651
- ], 2)) : T("", !0)
1651
+ ], 2)) : A("", !0)
1652
1652
  ]),
1653
1653
  _: 3
1654
1654
  }, 8, ["enter-from-class", "enter-to-class", "leave-from-class", "leave-to-class"])
@@ -1657,7 +1657,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1657
1657
  }, 8, ["modelValue", "blur", "persistent"]);
1658
1658
  };
1659
1659
  }
1660
- }), Gn = /* @__PURE__ */ x({
1660
+ }), Xn = /* @__PURE__ */ x({
1661
1661
  __name: "Dropzone",
1662
1662
  props: {
1663
1663
  dashed: { type: Boolean, default: !0 },
@@ -1686,10 +1686,10 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1686
1686
  }, "h-full w-full flex cursor-pointer items-center justify-center rounded"]),
1687
1687
  onPointerup: c[0] || (c[0] = () => u(s)())
1688
1688
  }, [
1689
- k(l.$slots, "default")
1689
+ S(l.$slots, "default")
1690
1690
  ], 34));
1691
1691
  }
1692
- }), qn = /* @__PURE__ */ x({
1692
+ }), Yn = /* @__PURE__ */ x({
1693
1693
  __name: "Image",
1694
1694
  props: {
1695
1695
  is: { default: "img" },
@@ -1713,14 +1713,14 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1713
1713
  });
1714
1714
  const o = U(t);
1715
1715
  return (s, i) => (h(), b("div", {
1716
- style: C({
1716
+ style: T({
1717
1717
  height: s.height,
1718
1718
  width: s.width,
1719
1719
  maxHeight: s.maxHeight,
1720
1720
  maxWidth: s.maxWidth
1721
1721
  })
1722
1722
  }, [
1723
- s.src ? (h(), P(ue(s.is), xe({
1723
+ s.src ? (h(), P(ue(s.is), de({
1724
1724
  key: 0,
1725
1725
  ref_key: "img",
1726
1726
  ref: n,
@@ -1736,21 +1736,21 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1736
1736
  hidden: !u(r)
1737
1737
  }
1738
1738
  ]]
1739
- }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : T("", !0),
1740
- u(r) ? T("", !0) : (h(), b("div", {
1739
+ }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : A("", !0),
1740
+ u(r) ? A("", !0) : (h(), b("div", {
1741
1741
  key: 1,
1742
1742
  class: y(["h-full w-full animate-pulse border-transparent bg-surface-high object-cover", [
1743
1743
  t.class,
1744
1744
  u(o).class
1745
1745
  ]]),
1746
- style: C([
1746
+ style: T([
1747
1747
  s.style,
1748
1748
  u(o).style
1749
1749
  ])
1750
1750
  }, null, 6))
1751
1751
  ], 4));
1752
1752
  }
1753
- }), Wr = { class: "relative" }, Xn = /* @__PURE__ */ x({
1753
+ }), Wr = { class: "relative" }, Zn = /* @__PURE__ */ x({
1754
1754
  __name: "Indicator",
1755
1755
  props: {
1756
1756
  color: { default: "primary" },
@@ -1759,7 +1759,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1759
1759
  ping: { type: Boolean }
1760
1760
  },
1761
1761
  setup(e) {
1762
- const t = e, r = m(() => {
1762
+ const t = e, r = v(() => {
1763
1763
  switch (t.size) {
1764
1764
  case "sm":
1765
1765
  return "w-2 h-2";
@@ -1770,7 +1770,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1770
1770
  default:
1771
1771
  return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
1772
1772
  }
1773
- }), n = nt(), a = m(() => {
1773
+ }), n = at(), a = v(() => {
1774
1774
  if (!n.label)
1775
1775
  return "";
1776
1776
  switch (t.size) {
@@ -1781,7 +1781,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1781
1781
  case "lg":
1782
1782
  return "text-lg children:px-2.5";
1783
1783
  }
1784
- }), o = m(() => {
1784
+ }), o = v(() => {
1785
1785
  switch (t.position) {
1786
1786
  case "top-left":
1787
1787
  return "top-0 left-0 -translate-x-1/2 -translate-y-1/2";
@@ -1792,7 +1792,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1792
1792
  case "bottom-right":
1793
1793
  return "bottom-0 right-0 translate-x-1/2 translate-y-1/2";
1794
1794
  }
1795
- }), s = m(() => {
1795
+ }), s = v(() => {
1796
1796
  switch (t.color) {
1797
1797
  case "primary":
1798
1798
  return "bg-primary-container text-primary-on";
@@ -1817,8 +1817,8 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1817
1817
  u(s)
1818
1818
  ]])
1819
1819
  }, [
1820
- i.$slots.label ? k(i.$slots, "label", { key: 0 }) : T("", !0)
1821
- ], 2)) : T("", !0),
1820
+ i.$slots.label ? S(i.$slots, "label", { key: 0 }) : A("", !0)
1821
+ ], 2)) : A("", !0),
1822
1822
  w("div", {
1823
1823
  class: y(["top-0 box-content border-2 border-surface-low rounded-full", [
1824
1824
  {
@@ -1827,13 +1827,13 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1827
1827
  u(s)
1828
1828
  ]])
1829
1829
  }, [
1830
- i.$slots.label ? k(i.$slots, "label", { key: 0 }) : T("", !0)
1830
+ i.$slots.label ? S(i.$slots, "label", { key: 0 }) : A("", !0)
1831
1831
  ], 2)
1832
1832
  ], 2),
1833
- k(i.$slots, "default")
1833
+ S(i.$slots, "default")
1834
1834
  ]));
1835
1835
  }
1836
- }), Yn = /* @__PURE__ */ x({
1836
+ }), Kn = /* @__PURE__ */ x({
1837
1837
  __name: "Modal",
1838
1838
  props: /* @__PURE__ */ W({
1839
1839
  persistent: { type: Boolean, default: !1 },
@@ -1846,7 +1846,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1846
1846
  setup(e) {
1847
1847
  const t = e, r = j(e, "modelValue");
1848
1848
  return (n, a) => {
1849
- const o = dt;
1849
+ const o = ft;
1850
1850
  return h(), P(o, {
1851
1851
  modelValue: r.value,
1852
1852
  "onUpdate:modelValue": a[0] || (a[0] = (s) => r.value = s),
@@ -1855,7 +1855,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1855
1855
  "wrapper-class": "flex items-end justify-center"
1856
1856
  }, {
1857
1857
  default: L(() => [
1858
- Z(rt, {
1858
+ Z(ot, {
1859
1859
  "enter-from-class": "translate-y-1/2",
1860
1860
  "enter-to-class": "translate-y-0",
1861
1861
  "leave-from-class": "translate-y-0",
@@ -1864,7 +1864,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1864
1864
  "leave-active-class": "transition ease-in duration-200"
1865
1865
  }, {
1866
1866
  default: L(() => [
1867
- r.value ? k(n.$slots, "default", { key: 0 }) : T("", !0)
1867
+ r.value ? S(n.$slots, "default", { key: 0 }) : A("", !0)
1868
1868
  ]),
1869
1869
  _: 3
1870
1870
  })
@@ -1894,7 +1894,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1894
1894
  },
1895
1895
  emits: ["close"],
1896
1896
  setup(e) {
1897
- const t = e, r = U(t), n = m(() => {
1897
+ const t = e, r = U(t), n = v(() => {
1898
1898
  switch (t.color) {
1899
1899
  case "secondary":
1900
1900
  return "bg-secondary-container";
@@ -1905,7 +1905,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1905
1905
  default:
1906
1906
  return "bg-primary-container";
1907
1907
  }
1908
- }), a = m(() => {
1908
+ }), a = v(() => {
1909
1909
  switch (t.color) {
1910
1910
  case "secondary":
1911
1911
  return "text-secondary-container";
@@ -1918,7 +1918,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1918
1918
  }
1919
1919
  });
1920
1920
  return (o, s) => {
1921
- const i = at;
1921
+ const i = lt;
1922
1922
  return h(), b("div", {
1923
1923
  class: y(["relative min-h-16 min-w-80 w-full flex items-center gap-2 container-low p-3", [
1924
1924
  { "border-0": !o.withBorder },
@@ -1928,7 +1928,7 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1928
1928
  "w-full": o.block
1929
1929
  }
1930
1930
  ]]),
1931
- style: C(u(r).style)
1931
+ style: T(u(r).style)
1932
1932
  }, [
1933
1933
  o.icon ? (h(), b("div", {
1934
1934
  key: 0,
@@ -1949,8 +1949,8 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1949
1949
  o.title ? (h(), b("div", {
1950
1950
  key: 0,
1951
1951
  class: y([u(a), "text-base"])
1952
- }, se(o.title), 3)) : T("", !0),
1953
- o.$slots.message ? k(o.$slots, "message", { key: 1 }) : o.message ? (h(), b("div", qr, se(o.message), 1)) : T("", !0)
1952
+ }, re(o.title), 3)) : A("", !0),
1953
+ o.$slots.message ? S(o.$slots, "message", { key: 1 }) : o.message ? (h(), b("div", qr, re(o.message), 1)) : A("", !0)
1954
1954
  ]),
1955
1955
  o.closeable ? (h(), P(i, {
1956
1956
  key: 2,
@@ -1963,18 +1963,18 @@ const Nr = ["id"], Pr = ["for"], jn = /* @__PURE__ */ x({
1963
1963
  Xr
1964
1964
  ]),
1965
1965
  _: 1
1966
- })) : T("", !0)
1966
+ })) : A("", !0)
1967
1967
  ], 6);
1968
1968
  };
1969
1969
  }
1970
- }), ft = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakSet();
1971
- let J, Fe = 0, Le = 0;
1972
- const q = "__aa_tgt", we = "__aa_del", Ae = "__aa_new", Kr = (e) => {
1970
+ }), ht = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), Zr = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakSet();
1971
+ let J, Le = 0, We = 0;
1972
+ const q = "__aa_tgt", _e = "__aa_del", Ae = "__aa_new", Kr = (e) => {
1973
1973
  const t = rn(e);
1974
1974
  t && t.forEach((r) => nn(r));
1975
1975
  }, Qr = (e) => {
1976
1976
  e.forEach((t) => {
1977
- t.target === J && en(), O.has(t.target) && oe(t.target);
1977
+ t.target === J && en(), O.has(t.target) && ae(t.target);
1978
1978
  });
1979
1979
  };
1980
1980
  function Jr(e) {
@@ -1989,7 +1989,7 @@ function Jr(e) {
1989
1989
  s - (r.top + a + r.height),
1990
1990
  r.left - a
1991
1991
  ].map((d) => `${-1 * Math.floor(d)}px`).join(" "), c = new IntersectionObserver(() => {
1992
- ++n > 1 && oe(e);
1992
+ ++n > 1 && ae(e);
1993
1993
  }, {
1994
1994
  root: J,
1995
1995
  threshold: 1,
@@ -1997,11 +1997,11 @@ function Jr(e) {
1997
1997
  });
1998
1998
  c.observe(e), Ne.set(e, c);
1999
1999
  }
2000
- function oe(e) {
2000
+ function ae(e) {
2001
2001
  clearTimeout(Ce.get(e));
2002
- const t = Re(e), r = _e(t) ? 500 : t.duration;
2002
+ const t = Re(e), r = xe(t) ? 500 : t.duration;
2003
2003
  Ce.set(e, setTimeout(async () => {
2004
- const n = ne.get(e);
2004
+ const n = oe.get(e);
2005
2005
  try {
2006
2006
  await (n == null ? void 0 : n.finished), O.set(e, ce(e)), Jr(e);
2007
2007
  } catch {
@@ -2010,21 +2010,21 @@ function oe(e) {
2010
2010
  }
2011
2011
  function en() {
2012
2012
  clearTimeout(Ce.get(J)), Ce.set(J, setTimeout(() => {
2013
- ft.forEach((e) => vt(e, (t) => ht(() => oe(t))));
2013
+ ht.forEach((e) => bt(e, (t) => pt(() => ae(t))));
2014
2014
  }, 100));
2015
2015
  }
2016
2016
  function tn(e) {
2017
2017
  setTimeout(() => {
2018
- Zr.set(e, setInterval(() => ht(oe.bind(null, e)), 2e3));
2018
+ Zr.set(e, setInterval(() => pt(ae.bind(null, e)), 2e3));
2019
2019
  }, Math.round(2e3 * Math.random()));
2020
2020
  }
2021
- function ht(e) {
2021
+ function pt(e) {
2022
2022
  typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
2023
2023
  }
2024
- let Pe, ae;
2025
- typeof window < "u" && (J = document.documentElement, Pe = new MutationObserver(Kr), ae = new ResizeObserver(Qr), window.addEventListener("scroll", () => {
2026
- Le = window.scrollY, Fe = window.scrollX;
2027
- }), ae.observe(J));
2024
+ let Pe, se;
2025
+ typeof window < "u" && (J = document.documentElement, Pe = new MutationObserver(Kr), se = new ResizeObserver(Qr), window.addEventListener("scroll", () => {
2026
+ We = window.scrollY, Le = window.scrollX;
2027
+ }), se.observe(J));
2028
2028
  function rn(e) {
2029
2029
  return e.reduce((n, a) => [
2030
2030
  ...n,
@@ -2039,7 +2039,7 @@ function rn(e) {
2039
2039
  for (let o = 0; o < a.target.children.length; o++) {
2040
2040
  const s = a.target.children.item(o);
2041
2041
  if (s) {
2042
- if (we in s)
2042
+ if (_e in s)
2043
2043
  return !1;
2044
2044
  Oe(a.target, s), n.add(s);
2045
2045
  }
@@ -2048,7 +2048,7 @@ function rn(e) {
2048
2048
  if (a.removedNodes.length)
2049
2049
  for (let o = 0; o < a.removedNodes.length; o++) {
2050
2050
  const s = a.removedNodes[o];
2051
- if (we in s)
2051
+ if (_e in s)
2052
2052
  return !1;
2053
2053
  s instanceof Element && (n.add(s), Oe(a.target, s), le.set(s, [
2054
2054
  a.previousSibling,
@@ -2065,7 +2065,7 @@ function Oe(e, t) {
2065
2065
  function nn(e) {
2066
2066
  var t;
2067
2067
  const r = e.isConnected, n = O.has(e);
2068
- r && le.has(e) && le.delete(e), ne.has(e) && ((t = ne.get(e)) === null || t === void 0 || t.cancel()), Ae in e ? Qe(e) : n && r ? an(e) : n && !r ? sn(e) : Qe(e);
2068
+ r && le.has(e) && le.delete(e), oe.has(e) && ((t = oe.get(e)) === null || t === void 0 || t.cancel()), Ae in e ? Je(e) : n && r ? an(e) : n && !r ? sn(e) : Je(e);
2069
2069
  }
2070
2070
  function F(e) {
2071
2071
  return Number(e.replace(/[^0-9.\-]/g, ""));
@@ -2088,7 +2088,7 @@ function ce(e) {
2088
2088
  height: t.height
2089
2089
  };
2090
2090
  }
2091
- function pt(e, t, r) {
2091
+ function mt(e, t, r) {
2092
2092
  let n = t.width, a = t.height, o = r.width, s = r.height;
2093
2093
  const i = getComputedStyle(e);
2094
2094
  if (i.getPropertyValue("box-sizing") === "content-box") {
@@ -2100,57 +2100,57 @@ function pt(e, t, r) {
2100
2100
  function Re(e) {
2101
2101
  return q in e && ie.has(e[q]) ? ie.get(e[q]) : { duration: 250, easing: "ease-in-out" };
2102
2102
  }
2103
- function mt(e) {
2103
+ function vt(e) {
2104
2104
  if (q in e)
2105
2105
  return e[q];
2106
2106
  }
2107
- function We(e) {
2108
- const t = mt(e);
2109
- return t ? ve.has(t) : !1;
2107
+ function je(e) {
2108
+ const t = vt(e);
2109
+ return t ? be.has(t) : !1;
2110
2110
  }
2111
- function vt(e, ...t) {
2111
+ function bt(e, ...t) {
2112
2112
  t.forEach((r) => r(e, ie.has(e)));
2113
2113
  for (let r = 0; r < e.children.length; r++) {
2114
2114
  const n = e.children.item(r);
2115
2115
  n && t.forEach((a) => a(n, ie.has(n)));
2116
2116
  }
2117
2117
  }
2118
- function je(e) {
2118
+ function Ue(e) {
2119
2119
  return Array.isArray(e) ? e : [e];
2120
2120
  }
2121
- function _e(e) {
2121
+ function xe(e) {
2122
2122
  return typeof e == "function";
2123
2123
  }
2124
2124
  function an(e) {
2125
2125
  const t = O.get(e), r = ce(e);
2126
- if (!We(e))
2126
+ if (!je(e))
2127
2127
  return O.set(e, r);
2128
2128
  let n;
2129
2129
  if (!t)
2130
2130
  return;
2131
2131
  const a = Re(e);
2132
2132
  if (typeof a != "function") {
2133
- const o = t.left - r.left, s = t.top - r.top, [i, l, c, d] = pt(e, t, r), f = {
2133
+ const o = t.left - r.left, s = t.top - r.top, [i, l, c, d] = mt(e, t, r), f = {
2134
2134
  transform: `translate(${o}px, ${s}px)`
2135
- }, v = {
2135
+ }, m = {
2136
2136
  transform: "translate(0, 0)"
2137
2137
  };
2138
- i !== l && (f.width = `${i}px`, v.width = `${l}px`), c !== d && (f.height = `${c}px`, v.height = `${d}px`), n = e.animate([f, v], {
2138
+ i !== l && (f.width = `${i}px`, m.width = `${l}px`), c !== d && (f.height = `${c}px`, m.height = `${d}px`), n = e.animate([f, m], {
2139
2139
  duration: a.duration,
2140
2140
  easing: a.easing
2141
2141
  });
2142
2142
  } else {
2143
- const [o] = je(a(e, "remain", t, r));
2143
+ const [o] = Ue(a(e, "remain", t, r));
2144
2144
  n = new Animation(o), n.play();
2145
2145
  }
2146
- ne.set(e, n), O.set(e, r), n.addEventListener("finish", oe.bind(null, e));
2146
+ oe.set(e, n), O.set(e, r), n.addEventListener("finish", ae.bind(null, e));
2147
2147
  }
2148
- function Qe(e) {
2148
+ function Je(e) {
2149
2149
  Ae in e && delete e[Ae];
2150
2150
  const t = ce(e);
2151
2151
  O.set(e, t);
2152
2152
  const r = Re(e);
2153
- if (!We(e))
2153
+ if (!je(e))
2154
2154
  return;
2155
2155
  let n;
2156
2156
  if (typeof r != "function")
@@ -2163,15 +2163,15 @@ function Qe(e) {
2163
2163
  easing: "ease-in"
2164
2164
  });
2165
2165
  else {
2166
- const [a] = je(r(e, "add", t));
2166
+ const [a] = Ue(r(e, "add", t));
2167
2167
  n = new Animation(a), n.play();
2168
2168
  }
2169
- ne.set(e, n), n.addEventListener("finish", oe.bind(null, e));
2169
+ oe.set(e, n), n.addEventListener("finish", ae.bind(null, e));
2170
2170
  }
2171
- function Je(e, t) {
2171
+ function et(e, t) {
2172
2172
  var r;
2173
- e.remove(), O.delete(e), le.delete(e), ne.delete(e), (r = Ne.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2174
- if (we in e && delete e[we], Object.defineProperty(e, Ae, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2173
+ e.remove(), O.delete(e), le.delete(e), oe.delete(e), (r = Ne.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2174
+ if (_e in e && delete e[_e], Object.defineProperty(e, Ae, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2175
2175
  for (const n in t)
2176
2176
  e.style[n] = "";
2177
2177
  }, 0);
@@ -2181,13 +2181,13 @@ function sn(e) {
2181
2181
  if (!le.has(e) || !O.has(e))
2182
2182
  return;
2183
2183
  const [r, n] = le.get(e);
2184
- Object.defineProperty(e, we, { value: !0, configurable: !0 });
2184
+ Object.defineProperty(e, _e, { value: !0, configurable: !0 });
2185
2185
  const a = window.scrollX, o = window.scrollY;
2186
- if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = mt(e)) === null || t === void 0 || t.appendChild(e), !We(e))
2187
- return Je(e);
2186
+ if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = vt(e)) === null || t === void 0 || t.appendChild(e), !je(e))
2187
+ return et(e);
2188
2188
  const [s, i, l, c] = cn(e), d = Re(e), f = O.get(e);
2189
- (a !== Fe || o !== Le) && ln(e, a, o, d);
2190
- let v, S = {
2189
+ (a !== Le || o !== We) && ln(e, a, o, d);
2190
+ let m, k = {
2191
2191
  position: "absolute",
2192
2192
  top: `${s}px`,
2193
2193
  left: `${i}px`,
@@ -2198,8 +2198,8 @@ function sn(e) {
2198
2198
  transformOrigin: "center",
2199
2199
  zIndex: "100"
2200
2200
  };
2201
- if (!_e(d))
2202
- Object.assign(e.style, S), v = e.animate([
2201
+ if (!xe(d))
2202
+ Object.assign(e.style, k), m = e.animate([
2203
2203
  {
2204
2204
  transform: "scale(1)",
2205
2205
  opacity: 1
@@ -2210,33 +2210,33 @@ function sn(e) {
2210
2210
  }
2211
2211
  ], { duration: d.duration, easing: "ease-out" });
2212
2212
  else {
2213
- const [A, z] = je(d(e, "remove", f));
2214
- (z == null ? void 0 : z.styleReset) !== !1 && (S = (z == null ? void 0 : z.styleReset) || S, Object.assign(e.style, S)), v = new Animation(A), v.play();
2213
+ const [$, z] = Ue(d(e, "remove", f));
2214
+ (z == null ? void 0 : z.styleReset) !== !1 && (k = (z == null ? void 0 : z.styleReset) || k, Object.assign(e.style, k)), m = new Animation($), m.play();
2215
2215
  }
2216
- ne.set(e, v), v.addEventListener("finish", Je.bind(null, e, S));
2216
+ oe.set(e, m), m.addEventListener("finish", et.bind(null, e, k));
2217
2217
  }
2218
2218
  function ln(e, t, r, n) {
2219
- const a = Fe - t, o = Le - r, s = document.documentElement.style.scrollBehavior;
2219
+ const a = Le - t, o = We - r, s = document.documentElement.style.scrollBehavior;
2220
2220
  if (getComputedStyle(J).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + a, window.scrollY + o), !e.parentElement)
2221
2221
  return;
2222
2222
  const l = e.parentElement;
2223
2223
  let c = l.clientHeight, d = l.clientWidth;
2224
2224
  const f = performance.now();
2225
- function v() {
2225
+ function m() {
2226
2226
  requestAnimationFrame(() => {
2227
- if (!_e(n)) {
2228
- const S = c - l.clientHeight, A = d - l.clientWidth;
2227
+ if (!xe(n)) {
2228
+ const k = c - l.clientHeight, $ = d - l.clientWidth;
2229
2229
  f + n.duration > performance.now() ? (window.scrollTo({
2230
- left: window.scrollX - A,
2231
- top: window.scrollY - S
2232
- }), c = l.clientHeight, d = l.clientWidth, v()) : document.documentElement.style.scrollBehavior = s;
2230
+ left: window.scrollX - $,
2231
+ top: window.scrollY - k
2232
+ }), c = l.clientHeight, d = l.clientWidth, m()) : document.documentElement.style.scrollBehavior = s;
2233
2233
  }
2234
2234
  });
2235
2235
  }
2236
- v();
2236
+ m();
2237
2237
  }
2238
2238
  function cn(e) {
2239
- const t = O.get(e), [r, , n] = pt(e, t, ce(e));
2239
+ const t = O.get(e), [r, , n] = mt(e, t, ce(e));
2240
2240
  let a = e.parentElement;
2241
2241
  for (; a && (getComputedStyle(a).position === "static" || a instanceof HTMLBodyElement); )
2242
2242
  a = a.parentElement;
@@ -2245,15 +2245,15 @@ function cn(e) {
2245
2245
  return [i, l, r, n];
2246
2246
  }
2247
2247
  function un(e, t = {}) {
2248
- return Pe && ae && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !_e(t) && !t.disrespectUserMotionPreference || (ve.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), vt(e, oe, tn, (a) => ae == null ? void 0 : ae.observe(a)), _e(t) ? ie.set(e, t) : ie.set(e, { duration: 250, easing: "ease-in-out", ...t }), Pe.observe(e, { childList: !0 }), ft.add(e))), Object.freeze({
2248
+ return Pe && se && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !xe(t) && !t.disrespectUserMotionPreference || (be.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), bt(e, ae, tn, (a) => se == null ? void 0 : se.observe(a)), xe(t) ? ie.set(e, t) : ie.set(e, { duration: 250, easing: "ease-in-out", ...t }), Pe.observe(e, { childList: !0 }), ht.add(e))), Object.freeze({
2249
2249
  parent: e,
2250
2250
  enable: () => {
2251
- ve.add(e);
2251
+ be.add(e);
2252
2252
  },
2253
2253
  disable: () => {
2254
- ve.delete(e);
2254
+ be.delete(e);
2255
2255
  },
2256
- isEnabled: () => ve.has(e)
2256
+ isEnabled: () => be.has(e)
2257
2257
  });
2258
2258
  }
2259
2259
  const dn = {
@@ -2262,14 +2262,14 @@ const dn = {
2262
2262
  },
2263
2263
  // ignore ssr see #96:
2264
2264
  getSSRProps: () => ({})
2265
- }, fn = { class: "fixed z-20 flex flex-col gap-2 p-2" }, Zn = /* @__PURE__ */ x({
2265
+ }, fn = { class: "fixed z-20 flex flex-col gap-2 p-2" }, Qn = /* @__PURE__ */ x({
2266
2266
  __name: "NotificationSystem",
2267
2267
  setup(e) {
2268
- const t = gn();
2268
+ const t = wn();
2269
2269
  return (r, n) => {
2270
2270
  const a = Yr;
2271
2271
  return Te((h(), b("div", fn, [
2272
- (h(!0), b(K, null, ye(u(t), (o) => (h(), P(a, {
2272
+ (h(!0), b(K, null, we(u(t), (o) => (h(), P(a, {
2273
2273
  key: o.hash,
2274
2274
  closeable: "",
2275
2275
  "with-border": "",
@@ -2285,7 +2285,7 @@ const dn = {
2285
2285
  ]);
2286
2286
  };
2287
2287
  }
2288
- }), hn = { class: "relative" }, Kn = /* @__PURE__ */ x({
2288
+ }), hn = { class: "relative" }, Jn = /* @__PURE__ */ x({
2289
2289
  __name: "Overlay",
2290
2290
  props: {
2291
2291
  blur: { type: [Boolean, String], default: !1 },
@@ -2294,7 +2294,7 @@ const dn = {
2294
2294
  color: { default: "black" }
2295
2295
  },
2296
2296
  setup(e) {
2297
- const t = e, r = m(() => {
2297
+ const t = e, r = v(() => {
2298
2298
  switch (t.blur) {
2299
2299
  case "sm":
2300
2300
  return "backdrop-blur-sm";
@@ -2306,22 +2306,22 @@ const dn = {
2306
2306
  default:
2307
2307
  return "";
2308
2308
  }
2309
- }), n = U(t), a = g(null), o = p(t.color).toRgb(), s = m(() => ({
2309
+ }), n = U(t), a = g(null), o = p(t.color).toRgb(), s = v(() => ({
2310
2310
  backgroundColor: `rgba(${o.r}, ${o.g}, ${o.b}, ${t.opacity / 100})`
2311
2311
  }));
2312
2312
  return (i, l) => (h(), b("div", hn, [
2313
- k(i.$slots, "default"),
2314
- w("div", xe(i.$attrs, {
2313
+ S(i.$slots, "default"),
2314
+ w("div", de(i.$attrs, {
2315
2315
  ref_key: "wrapperRef",
2316
2316
  ref: a,
2317
2317
  class: [[u(r), u(n).class], "absolute left-0 top-0 h-full w-full overflow-hidden md:items-center"],
2318
2318
  style: [u(n).style, u(s)]
2319
2319
  }), [
2320
- k(i.$slots, "content")
2320
+ S(i.$slots, "content")
2321
2321
  ], 16)
2322
2322
  ]));
2323
2323
  }
2324
- }), Qn = /* @__PURE__ */ x({
2324
+ }), eo = /* @__PURE__ */ x({
2325
2325
  __name: "Paper",
2326
2326
  props: {
2327
2327
  size: { default: "md" },
@@ -2338,15 +2338,15 @@ const dn = {
2338
2338
  },
2339
2339
  u(r).class
2340
2340
  ]]),
2341
- style: C([u(r).style])
2341
+ style: T([u(r).style])
2342
2342
  }, {
2343
2343
  default: L(() => [
2344
- k(n.$slots, "default")
2344
+ S(n.$slots, "default")
2345
2345
  ]),
2346
2346
  _: 3
2347
2347
  }, 8, ["class", "style"]));
2348
2348
  }
2349
- }), pn = ["placeholder", "type"], mn = /* @__PURE__ */ x({
2349
+ }), pn = ["for"], mn = { key: 1 }, vn = ["id", "placeholder", "type"], bn = /* @__PURE__ */ x({
2350
2350
  __name: "TextField",
2351
2351
  props: /* @__PURE__ */ W({
2352
2352
  onChange: {},
@@ -2356,14 +2356,15 @@ const dn = {
2356
2356
  rounded: { default: "md" },
2357
2357
  size: { default: "md" },
2358
2358
  password: { type: Boolean },
2359
- placeholder: {}
2359
+ placeholder: {},
2360
+ label: {}
2360
2361
  }, {
2361
2362
  modelValue: {},
2362
2363
  modelModifiers: {}
2363
2364
  }),
2364
2365
  emits: ["update:modelValue"],
2365
2366
  setup(e, { expose: t }) {
2366
- const r = e, n = j(e, "modelValue"), a = m(() => {
2367
+ const r = e, n = j(e, "modelValue"), a = v(() => {
2367
2368
  switch (r.size) {
2368
2369
  case "sm":
2369
2370
  return {
@@ -2378,7 +2379,16 @@ const dn = {
2378
2379
  base: "h-10 px-4 py-2 text-base"
2379
2380
  };
2380
2381
  }
2381
- }), o = m(() => {
2382
+ }), o = v(() => {
2383
+ switch (r.size) {
2384
+ case "sm":
2385
+ return "text-xs";
2386
+ case "md":
2387
+ return "text-sm";
2388
+ case "lg":
2389
+ return "md-md";
2390
+ }
2391
+ }), s = v(() => {
2382
2392
  if (r.error)
2383
2393
  return "text-error-container bg-surface-base border-error-container focus:border-error-container";
2384
2394
  switch (r.color) {
@@ -2392,22 +2402,33 @@ const dn = {
2392
2402
  default:
2393
2403
  return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
2394
2404
  }
2395
- }), s = m(() => r.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), i = U(r), l = g(null);
2396
- return t({
2397
- el: l
2398
- }), (c, d) => Te((h(), b("input", {
2399
- ref_key: "input",
2400
- ref: l,
2401
- "onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
2402
- class: y(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [u(o), u(s), u(i).class, u(a).base]]),
2403
- style: C([u(i).style]),
2404
- placeholder: c.placeholder,
2405
- type: r.password ? "password" : "text"
2406
- }, null, 14, pn)), [
2407
- [Tt, n.value]
2408
- ]);
2405
+ }), i = v(() => r.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = U(r), c = g(null);
2406
+ t({
2407
+ el: c
2408
+ });
2409
+ const d = nt(), f = Fe(d);
2410
+ return (m, k) => (h(), b("div", null, [
2411
+ m.$slots.label || m.label ? (h(), b("label", {
2412
+ key: 0,
2413
+ for: u(f),
2414
+ class: y(["mb-1 block text-surface-on", [u(o)]])
2415
+ }, [
2416
+ m.$slots.label ? S(m.$slots, "label", { key: 0 }) : (h(), b("span", mn, re(m.label), 1))
2417
+ ], 10, pn)) : A("", !0),
2418
+ Te(w("input", de({ id: u(f) }, m.$attrs, {
2419
+ ref_key: "input",
2420
+ ref: c,
2421
+ "onUpdate:modelValue": k[0] || (k[0] = ($) => n.value = $),
2422
+ class: ["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [u(s), u(i), u(l).class, u(a).base]],
2423
+ style: [u(l).style],
2424
+ placeholder: m.placeholder,
2425
+ type: r.password ? "password" : "text"
2426
+ }), null, 16, vn), [
2427
+ [Tt, n.value]
2428
+ ])
2429
+ ]));
2409
2430
  }
2410
- }), vn = { class: "flex gap-2" }, Jn = /* @__PURE__ */ x({
2431
+ }), gn = { class: "flex gap-2" }, to = /* @__PURE__ */ x({
2411
2432
  __name: "PinInput",
2412
2433
  props: {
2413
2434
  modelValue: {},
@@ -2431,8 +2452,8 @@ const dn = {
2431
2452
  const i = r.value.findIndex((l) => l.el === o.target);
2432
2453
  i !== 0 && (r.value[i - 1].el.focus(), r.value[i - 1].el.select(), s || (r.value[i - 1].el.value = ""));
2433
2454
  }
2434
- return (o, s) => (h(), b("div", vn, [
2435
- (h(!0), b(K, null, ye(t.length, (i) => (h(), P(mn, {
2455
+ return (o, s) => (h(), b("div", gn, [
2456
+ (h(!0), b(K, null, we(t.length, (i) => (h(), P(bn, {
2436
2457
  ref_for: !0,
2437
2458
  ref_key: "inputs",
2438
2459
  ref: r,
@@ -2441,12 +2462,12 @@ const dn = {
2441
2462
  style: { padding: "0" },
2442
2463
  password: t.password,
2443
2464
  onPointerup: s[0] || (s[0] = (l) => l.target.select()),
2444
- onInput: ot(n, ["stop", "prevent"]),
2465
+ onInput: st(n, ["stop", "prevent"]),
2445
2466
  onKeydown: zt(a, ["backspace"])
2446
2467
  }, null, 8, ["password"]))), 128))
2447
2468
  ]));
2448
2469
  }
2449
- }), eo = /* @__PURE__ */ x({
2470
+ }), ro = /* @__PURE__ */ x({
2450
2471
  __name: "Progress",
2451
2472
  props: {
2452
2473
  value: { default: 0 },
@@ -2458,7 +2479,7 @@ const dn = {
2458
2479
  loading: { type: Boolean, default: !1 }
2459
2480
  },
2460
2481
  setup(e) {
2461
- const t = e, r = m(() => {
2482
+ const t = e, r = v(() => {
2462
2483
  switch (t.size) {
2463
2484
  case "sm":
2464
2485
  return "h-0.25";
@@ -2467,7 +2488,7 @@ const dn = {
2467
2488
  case "lg":
2468
2489
  return "h-1";
2469
2490
  }
2470
- }), n = m(() => {
2491
+ }), n = v(() => {
2471
2492
  switch (t.color) {
2472
2493
  case "primary":
2473
2494
  return "bg-primary-container";
@@ -2481,7 +2502,7 @@ const dn = {
2481
2502
  }), a = U(t);
2482
2503
  return (o, s) => (h(), b("div", {
2483
2504
  class: y(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [u(r), u(a).class]]),
2484
- style: C([u(a).style])
2505
+ style: T([u(a).style])
2485
2506
  }, [
2486
2507
  o.loading ? (h(), b("div", {
2487
2508
  key: 1,
@@ -2489,13 +2510,13 @@ const dn = {
2489
2510
  }, null, 2)) : (h(), b("div", {
2490
2511
  key: 0,
2491
2512
  class: y(["h-full", [u(n)]]),
2492
- style: C([{
2513
+ style: T([{
2493
2514
  width: `${(Number(o.value) - Number(o.min)) / (Number(o.max) - Number(o.min)) * 100}%`
2494
2515
  }])
2495
2516
  }, null, 6))
2496
2517
  ], 6));
2497
2518
  }
2498
- }), bt = {
2519
+ }), gt = {
2499
2520
  primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
2500
2521
  secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
2501
2522
  tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
@@ -2504,43 +2525,43 @@ const dn = {
2504
2525
  }, Ie = {
2505
2526
  name: "dark",
2506
2527
  scheme: "dark",
2507
- colors: bt
2508
- }, bn = {
2528
+ colors: gt
2529
+ }, yn = {
2509
2530
  name: "light",
2510
2531
  scheme: "light",
2511
- colors: bt
2512
- }, to = Symbol("Notifications"), gt = Et([]);
2513
- function gn() {
2514
- return gt;
2532
+ colors: gt
2533
+ }, no = Symbol("Notifications"), yt = Et([]);
2534
+ function wn() {
2535
+ return yt;
2515
2536
  }
2516
- class ro {
2537
+ class oo {
2517
2538
  static show(t) {
2518
- t.hash = Math.random().toString(36), gt.push(t);
2539
+ t.hash = Math.random().toString(36), yt.push(t);
2519
2540
  }
2520
2541
  }
2521
- const yt = Symbol("tabCurrent"), wt = Symbol("direction"), Ve = [0.96, 0.96, 0.907, 0.805, 0.697, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28];
2522
- function yn(e) {
2542
+ const wt = Symbol("tabCurrent"), _t = Symbol("direction"), Ve = [0.96, 0.96, 0.907, 0.805, 0.697, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28];
2543
+ function _n(e) {
2523
2544
  const t = p(e).toHsl().l;
2524
2545
  return Ve.reduce(
2525
2546
  (r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
2526
2547
  );
2527
2548
  }
2528
- function wn(e) {
2529
- const t = p(e), r = yn(t), n = Ve.findIndex((o) => o === r), a = Ve.map((o) => {
2549
+ function xn(e) {
2550
+ const t = p(e), r = _n(t), n = Ve.findIndex((o) => o === r), a = Ve.map((o) => {
2530
2551
  const s = p({ h: t.toHsl().h, s: t.toHsl().s, l: o });
2531
2552
  return s.saturate(0 * 100), s;
2532
2553
  });
2533
2554
  return { baseColorIndex: n, colors: a.map((o) => o.toHexString()) };
2534
2555
  }
2535
- function no(e) {
2536
- return wn(e).colors;
2556
+ function ao(e) {
2557
+ return xn(e).colors;
2537
2558
  }
2538
- const oo = /* @__PURE__ */ x({
2559
+ const so = /* @__PURE__ */ x({
2539
2560
  __name: "RokuProvider",
2540
2561
  props: {
2541
2562
  is: { default: "div" },
2542
2563
  theme: { default() {
2543
- return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Ie : bn;
2564
+ return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Ie : yn;
2544
2565
  } }
2545
2566
  },
2546
2567
  setup(e) {
@@ -2556,21 +2577,21 @@ const oo = /* @__PURE__ */ x({
2556
2577
  if (!Q)
2557
2578
  return "dark";
2558
2579
  r.value === "dark" ? document.documentElement.dataset.scheme = "dark" : r.value === "light" ? document.documentElement.dataset.scheme = "light" : n.value === "dark" ? document.documentElement.dataset.scheme = "dark" : document.documentElement.dataset.scheme = "light", localStorage.setItem("scheme", document.documentElement.dataset.scheme);
2559
- }), ge(ut, r);
2560
- const a = it(t.theme);
2580
+ }), ye(dt, r);
2581
+ const a = ut(t.theme);
2561
2582
  return (o, s) => (h(), P(ue(o.is), {
2562
- style: C([
2583
+ style: T([
2563
2584
  u(a)
2564
2585
  ]),
2565
2586
  class: "text-surface-on transition-background-color,border-color,color"
2566
2587
  }, {
2567
2588
  default: L(() => [
2568
- k(o.$slots, "default")
2589
+ S(o.$slots, "default")
2569
2590
  ]),
2570
2591
  _: 3
2571
2592
  }, 8, ["style"]));
2572
2593
  }
2573
- }), _n = ["id"], xn = ["for"], kn = ["for"], Sn = /* @__PURE__ */ x({
2594
+ }), kn = ["id"], Sn = ["for"], Mn = ["for"], $n = /* @__PURE__ */ x({
2574
2595
  inheritAttrs: !1,
2575
2596
  __name: "Switch",
2576
2597
  props: /* @__PURE__ */ W({
@@ -2593,7 +2614,7 @@ const oo = /* @__PURE__ */ x({
2593
2614
  setup(e) {
2594
2615
  const t = e, r = j(e, "modelValue");
2595
2616
  t.value && (r.value = t.value);
2596
- const n = g(null), a = g(!1), o = m(() => {
2617
+ const n = g(null), a = g(!1), o = v(() => {
2597
2618
  switch (t.size) {
2598
2619
  case "sm":
2599
2620
  return {
@@ -2620,13 +2641,13 @@ const oo = /* @__PURE__ */ x({
2620
2641
  active: a.value ? "left-[calc(1.75rem-1px)]" : "left-[calc(2.25rem-1px)]"
2621
2642
  };
2622
2643
  }
2623
- }), s = m(() => t.animate ? {
2644
+ }), s = v(() => t.animate ? {
2624
2645
  indicator: "transition-all",
2625
2646
  progress: "transition-width"
2626
2647
  } : {
2627
2648
  indicator: "",
2628
2649
  progress: ""
2629
- }), i = ct(t), l = m(() => {
2650
+ }), i = Fe(t), l = v(() => {
2630
2651
  let d = "bg-primary-container";
2631
2652
  switch (t.color) {
2632
2653
  case "secondary":
@@ -2650,13 +2671,13 @@ const oo = /* @__PURE__ */ x({
2650
2671
  "pointer-events-none filter-grayscale op60": t.disabled
2651
2672
  }])
2652
2673
  }, [
2653
- Te(w("input", xe({
2674
+ Te(w("input", de({
2654
2675
  id: u(i),
2655
- "onUpdate:modelValue": f[0] || (f[0] = (v) => r.value = v)
2676
+ "onUpdate:modelValue": f[0] || (f[0] = (m) => r.value = m)
2656
2677
  }, d.$attrs, {
2657
2678
  class: "hidden",
2658
2679
  type: "checkbox"
2659
- }), null, 16, _n), [
2680
+ }), null, 16, kn), [
2660
2681
  [Rt, r.value]
2661
2682
  ]),
2662
2683
  w("label", {
@@ -2667,15 +2688,15 @@ const oo = /* @__PURE__ */ x({
2667
2688
  ref_key: "wrapper",
2668
2689
  ref: n,
2669
2690
  class: y([[u(o).wrapper, u(l).wrapper, u(c).class], "relative inline-block transition-all"]),
2670
- style: C([u(c).style]),
2671
- onPointerdown: f[1] || (f[1] = (v) => a.value = !0),
2672
- onPointerup: f[2] || (f[2] = (v) => a.value = !1),
2673
- onPointerleave: f[3] || (f[3] = (v) => a.value = !1),
2674
- onPointerenter: f[4] || (f[4] = (v) => v.buttons === 1 && (a.value = !0))
2691
+ style: T([u(c).style]),
2692
+ onPointerdown: f[1] || (f[1] = (m) => a.value = !0),
2693
+ onPointerup: f[2] || (f[2] = (m) => a.value = !1),
2694
+ onPointerleave: f[3] || (f[3] = (m) => a.value = !1),
2695
+ onPointerenter: f[4] || (f[4] = (m) => m.buttons === 1 && (a.value = !0))
2675
2696
  }, [
2676
2697
  w("div", {
2677
2698
  class: y(["absolute top-50% -translate-y-50%", [u(o).indicator, u(l).indicator, u(s).indicator, r.value ? u(o).active : u(o).inactive, u(c).class]]),
2678
- style: C([u(c).style])
2699
+ style: T([u(c).style])
2679
2700
  }, null, 6),
2680
2701
  w("i", {
2681
2702
  class: y(["absolute top-1/2 -translate-y-50%", [u(o).icon, {
@@ -2686,17 +2707,17 @@ const oo = /* @__PURE__ */ x({
2686
2707
  }]])
2687
2708
  }, null, 2)
2688
2709
  ], 38)
2689
- ], 8, xn),
2710
+ ], 8, Sn),
2690
2711
  d.label ? (h(), b("label", {
2691
2712
  key: 0,
2692
2713
  for: u(i)
2693
- }, se(d.label), 9, kn)) : T("", !0)
2714
+ }, re(d.label), 9, Mn)) : A("", !0)
2694
2715
  ], 2));
2695
2716
  }
2696
- }), Mn = { class: "dark:hidden" }, $n = { class: "light:hidden" }, ao = /* @__PURE__ */ x({
2717
+ }), Cn = { class: "dark:hidden" }, An = { class: "light:hidden" }, lo = /* @__PURE__ */ x({
2697
2718
  __name: "SchemeSwitch",
2698
2719
  setup(e) {
2699
- const t = Hr(), r = m({
2720
+ const t = Hr(), r = v({
2700
2721
  get() {
2701
2722
  return t.value === "dark";
2702
2723
  },
@@ -2714,22 +2735,22 @@ const oo = /* @__PURE__ */ x({
2714
2735
  o === "dark" ? r.value = !0 : o === "light" ? r.value = !1 : r.value = window.matchMedia("(prefers-color-scheme: dark)").matches;
2715
2736
  }
2716
2737
  n.value = !1;
2717
- }), et(() => {
2738
+ }), tt(() => {
2718
2739
  a.value = !0;
2719
2740
  }), (o, s) => {
2720
- const i = Sn;
2741
+ const i = $n;
2721
2742
  return h(), b(K, null, [
2722
2743
  w("div", {
2723
2744
  class: y({ hidden: !u(n) })
2724
2745
  }, [
2725
- w("div", Mn, [
2746
+ w("div", Cn, [
2726
2747
  Z(i, {
2727
2748
  value: !1,
2728
2749
  "on-icon": "i-line-md-moon-twotone-alt-loop",
2729
2750
  "off-icon": "i-line-md-sunny-outline-twotone-loop"
2730
2751
  })
2731
2752
  ]),
2732
- w("div", $n, [
2753
+ w("div", An, [
2733
2754
  Z(i, {
2734
2755
  value: !0,
2735
2756
  color: "secondary",
@@ -2753,12 +2774,12 @@ const oo = /* @__PURE__ */ x({
2753
2774
  ], 64);
2754
2775
  };
2755
2776
  }
2756
- }), Cn = { class: "w-full flex items-center" }, An = ["placeholder", "value"], Tn = /* @__PURE__ */ w("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), zn = {
2777
+ }), Tn = { class: "w-full flex items-center" }, zn = ["placeholder", "value"], En = /* @__PURE__ */ w("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), Rn = {
2757
2778
  key: 0,
2758
2779
  class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
2759
- }, En = ["onPointerdown", "onHover"], Rn = { key: 0 }, Bn = /* @__PURE__ */ w("i", { class: "i-tabler-check h-3 w-3" }, null, -1), On = [
2760
- Bn
2761
- ], so = /* @__PURE__ */ x({
2780
+ }, Bn = ["onPointerdown", "onHover"], On = { key: 0 }, Hn = /* @__PURE__ */ w("i", { class: "i-tabler-check h-3 w-3" }, null, -1), Nn = [
2781
+ Hn
2782
+ ], io = /* @__PURE__ */ x({
2762
2783
  __name: "Select",
2763
2784
  props: /* @__PURE__ */ W({
2764
2785
  options: { default() {
@@ -2774,15 +2795,15 @@ const oo = /* @__PURE__ */ x({
2774
2795
  }),
2775
2796
  emits: /* @__PURE__ */ W(["change"], ["update:modelValue"]),
2776
2797
  setup(e, { emit: t }) {
2777
- const r = e, n = t, a = U(r), o = j(e, "modelValue"), s = g(null), i = g(null), { focused: l } = tr(s), c = m(() => r.options.map((_) => E(_)).indexOf(o.value)), d = g(-1), f = g(-1);
2798
+ const r = e, n = t, a = U(r), o = j(e, "modelValue"), s = g(null), i = g(null), { focused: l } = tr(s), c = v(() => r.options.map((_) => E(_)).indexOf(o.value)), d = g(-1), f = g(-1);
2778
2799
  X(() => {
2779
2800
  l.value || (f.value = -1);
2780
2801
  }), X(() => {
2781
2802
  o.value = E(r.options[c.value]);
2782
- }), de(o, () => {
2803
+ }), fe(o, () => {
2783
2804
  n("change", o.value);
2784
2805
  });
2785
- const v = r.options, S = m(() => v[c.value]), A = m(() => z(S.value));
2806
+ const m = r.options, k = v(() => m[c.value]), $ = v(() => z(k.value));
2786
2807
  function z(_) {
2787
2808
  if (_)
2788
2809
  return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.label;
@@ -2792,22 +2813,22 @@ const oo = /* @__PURE__ */ x({
2792
2813
  return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.id;
2793
2814
  }
2794
2815
  te("ArrowDown", (_) => {
2795
- l.value && (_.preventDefault(), f.value = (f.value + 1) % v.length);
2816
+ l.value && (_.preventDefault(), f.value = (f.value + 1) % m.length);
2796
2817
  }), te("ArrowUp", (_) => {
2797
- l.value && (_.preventDefault(), f.value = (f.value - 1 + v.length) % v.length);
2818
+ l.value && (_.preventDefault(), f.value = (f.value - 1 + m.length) % m.length);
2798
2819
  }), te("Enter", () => {
2799
- l.value && f.value !== -1 && (o.value = E(v[f.value]), l.value = !1);
2820
+ l.value && f.value !== -1 && (o.value = E(m[f.value]), l.value = !1);
2800
2821
  });
2801
- function he(_) {
2822
+ function pe(_) {
2802
2823
  if (!l.value) {
2803
2824
  l.value = !0;
2804
2825
  return;
2805
2826
  }
2806
2827
  o.value = E(_), l.value = !1;
2807
2828
  }
2808
- const Se = m(() => ({
2829
+ const Se = v(() => ({
2809
2830
  input: "container-base focus:border-primary-container"
2810
- })), Me = m(() => {
2831
+ })), Me = v(() => {
2811
2832
  switch (r.size) {
2812
2833
  case "sm":
2813
2834
  return {
@@ -2826,46 +2847,46 @@ const oo = /* @__PURE__ */ x({
2826
2847
  };
2827
2848
  }
2828
2849
  });
2829
- return (_, pe) => (h(), b("div", {
2850
+ return (_, me) => (h(), b("div", {
2830
2851
  ref_key: "wrapperRef",
2831
2852
  ref: i,
2832
2853
  class: "r-select-wrapper relative"
2833
2854
  }, [
2834
- w("div", Cn, [
2855
+ w("div", Tn, [
2835
2856
  w("input", {
2836
2857
  ref_key: "inputRef",
2837
2858
  ref: s,
2838
2859
  class: y([[u(Se).input, u(Me).wrapper, u(a).class], "r-select-input cursor-pointer border outline-none outline-none focus-visible:outline-2"]),
2839
2860
  placeholder: _.placeholder,
2840
- style: C([u(a).style]),
2861
+ style: T([u(a).style]),
2841
2862
  readonly: "",
2842
- value: u(A),
2863
+ value: u($),
2843
2864
  "aria-haspopup": "listbox",
2844
2865
  autocomplete: "off",
2845
- onFocus: pe[0] || (pe[0] = ($) => l.value = !0)
2846
- }, null, 46, An),
2847
- Tn
2866
+ onFocus: me[0] || (me[0] = (C) => l.value = !0)
2867
+ }, null, 46, zn),
2868
+ En
2848
2869
  ]),
2849
2870
  u(l) ? (h(), b("div", {
2850
2871
  key: 0,
2851
2872
  class: y([u(Me).dropdown, "absolute z-10 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
2852
2873
  }, [
2853
- u(v).length === 0 ? (h(), b("div", zn, se(_.noneText), 1)) : (h(!0), b(K, { key: 1 }, ye(u(v), ($, R) => (h(), b("div", {
2854
- key: E($),
2874
+ u(m).length === 0 ? (h(), b("div", Rn, re(_.noneText), 1)) : (h(!0), b(K, { key: 1 }, we(u(m), (C, R) => (h(), b("div", {
2875
+ key: E(C),
2855
2876
  class: y([{
2856
2877
  "hover:bg-surface-high border-transparent": u(f) !== R,
2857
2878
  "container-filled-primary": u(f) === R
2858
2879
  }, "flex cursor-pointer items-center justify-between gap-2 border rounded p-1 px-2"]),
2859
- onPointerdown: (B) => he($),
2880
+ onPointerdown: (B) => pe(C),
2860
2881
  onHover: (B) => d.value = R
2861
2882
  }, [
2862
- Ot(se(z($)) + " ", 1),
2863
- $ === u(S) ? (h(), b("div", Rn, On)) : T("", !0)
2864
- ], 42, En))), 128))
2865
- ], 2)) : T("", !0)
2883
+ Ot(re(z(C)) + " ", 1),
2884
+ C === u(k) ? (h(), b("div", On, Nn)) : A("", !0)
2885
+ ], 42, Bn))), 128))
2886
+ ], 2)) : A("", !0)
2866
2887
  ], 512));
2867
2888
  }
2868
- }), Hn = { class: "relative inline-block w-full" }, lo = /* @__PURE__ */ x({
2889
+ }), Pn = { class: "relative inline-block w-full" }, co = /* @__PURE__ */ x({
2869
2890
  __name: "Slider",
2870
2891
  props: /* @__PURE__ */ W({
2871
2892
  size: { default: "md" },
@@ -2887,25 +2908,25 @@ const oo = /* @__PURE__ */ x({
2887
2908
  emits: ["update:modelValue"],
2888
2909
  setup(e) {
2889
2910
  const t = e;
2890
- function r($, R, B) {
2911
+ function r(C, R, B) {
2891
2912
  const I = [];
2892
- for (let Y = $; Y <= R; Y += B)
2913
+ for (let Y = C; Y <= R; Y += B)
2893
2914
  I.push(Y);
2894
2915
  return I[I.length - 1] !== R && I.push(R), I;
2895
2916
  }
2896
- function n($, R) {
2917
+ function n(C, R) {
2897
2918
  const B = [];
2898
2919
  B.push(R[0]);
2899
- const I = (R.length - 1) / ($ - 1);
2900
- for (let Y = 1; Y < $ - 1; Y++)
2920
+ const I = (R.length - 1) / (C - 1);
2921
+ for (let Y = 1; Y < C - 1; Y++)
2901
2922
  B.push(R[Math.round(Y * I)]);
2902
2923
  return B.push(R[R.length - 1]), B;
2903
2924
  }
2904
- const a = m(() => t.options ? t.options.length : t.tickNum ?? 0), o = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = m(() => n(a.value, o.value)), i = j(e, "modelValue"), l = m(() => o.value.length ?? 0), c = g(o.value.includes(i.value) ? o.value.indexOf(i.value) : 0);
2905
- function d($) {
2906
- return o.value.indexOf($);
2925
+ const a = v(() => t.options ? t.options.length : t.tickNum ?? 0), o = v(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = v(() => n(a.value, o.value)), i = j(e, "modelValue"), l = v(() => o.value.length ?? 0), c = g(o.value.includes(i.value) ? o.value.indexOf(i.value) : 0);
2926
+ function d(C) {
2927
+ return o.value.indexOf(C);
2907
2928
  }
2908
- const f = m(() => {
2929
+ const f = v(() => {
2909
2930
  switch (t.color) {
2910
2931
  case "primary":
2911
2932
  return "bg-primary-container";
@@ -2916,7 +2937,7 @@ const oo = /* @__PURE__ */ x({
2916
2937
  case "error":
2917
2938
  return "bg-error-container";
2918
2939
  }
2919
- }), v = m(() => `dark:bg-white bg-${t.color}-container`), S = m(() => {
2940
+ }), m = v(() => `dark:bg-white bg-${t.color}-container`), k = v(() => {
2920
2941
  switch (t.color) {
2921
2942
  case "primary":
2922
2943
  return "dark:bg-primary-container bg-white";
@@ -2931,16 +2952,16 @@ const oo = /* @__PURE__ */ x({
2931
2952
  X(() => {
2932
2953
  i.value = o.value[c.value];
2933
2954
  });
2934
- const A = g(), z = g(), E = Kt(A), he = g(!1);
2935
- function Se($) {
2936
- if (!he.value)
2955
+ const $ = g(), z = g(), E = Kt($), pe = g(!1);
2956
+ function Se(C) {
2957
+ if (!pe.value)
2937
2958
  return;
2938
- if (!($.buttons === 1)) {
2939
- he.value = !1;
2959
+ if (!(C.buttons === 1)) {
2960
+ pe.value = !1;
2940
2961
  return;
2941
2962
  }
2942
- $.preventDefault(), $.stopPropagation();
2943
- const { clientX: B } = $, I = E.left.value, _t = E.right.value - I, Be = Math.round((B - I) / _t * (l.value - 1));
2963
+ C.preventDefault(), C.stopPropagation();
2964
+ const { clientX: B } = C, I = E.left.value, xt = E.right.value - I, Be = Math.round((B - I) / xt * (l.value - 1));
2944
2965
  if (Be < 0) {
2945
2966
  c.value = 0;
2946
2967
  return;
@@ -2954,13 +2975,13 @@ const oo = /* @__PURE__ */ x({
2954
2975
  X(() => {
2955
2976
  c.value = d(i.value);
2956
2977
  });
2957
- function Me($) {
2958
- $.preventDefault(), $.stopPropagation(), he.value = !0, Se($);
2978
+ function Me(C) {
2979
+ C.preventDefault(), C.stopPropagation(), pe.value = !0, Se(C);
2959
2980
  }
2960
- N(A, "pointerdown", Me), ee(() => {
2981
+ N($, "pointerdown", Me), ee(() => {
2961
2982
  N(document, "pointermove", Se), c.value = Math.max(0, d(i.value));
2962
2983
  });
2963
- const _ = m(() => {
2984
+ const _ = v(() => {
2964
2985
  switch (t.size) {
2965
2986
  case "sm":
2966
2987
  return {
@@ -2993,20 +3014,20 @@ const oo = /* @__PURE__ */ x({
2993
3014
  progress: "-mx-1.5"
2994
3015
  };
2995
3016
  }
2996
- }), pe = m(() => t.animate ? {
3017
+ }), me = v(() => t.animate ? {
2997
3018
  indicator: "transition-left",
2998
3019
  progress: "transition-width"
2999
3020
  } : {
3000
3021
  indicator: "",
3001
3022
  progress: ""
3002
3023
  });
3003
- return ($, R) => (h(), b("div", Hn, [
3024
+ return (C, R) => (h(), b("div", Pn, [
3004
3025
  w("div", {
3005
3026
  ref_key: "wrapper",
3006
- ref: A,
3027
+ ref: $,
3007
3028
  type: "size",
3008
3029
  class: y(["w-full flex cursor-pointer items-center", u(_).wrapper]),
3009
- onTouchmove: R[0] || (R[0] = ot(() => {
3030
+ onTouchmove: R[0] || (R[0] = st(() => {
3010
3031
  }, ["prevent"]))
3011
3032
  }, [
3012
3033
  w("div", {
@@ -3014,14 +3035,14 @@ const oo = /* @__PURE__ */ x({
3014
3035
  }, [
3015
3036
  w("div", {
3016
3037
  class: y(["relative flex", u(_).content]),
3017
- style: C({
3038
+ style: T({
3018
3039
  width: `${t.width}rem`,
3019
3040
  minWidth: `${t.minWidth}rem`
3020
3041
  })
3021
3042
  }, [
3022
- (h(!0), b(K, null, ye(u(s), (B) => (h(), b("div", {
3043
+ (h(!0), b(K, null, we(u(s), (B) => (h(), b("div", {
3023
3044
  key: B,
3024
- style: C({
3045
+ style: T({
3025
3046
  left: `${d(B) / (u(l) - 1) * 100}%`
3026
3047
  }),
3027
3048
  class: y(["absolute top-50% rounded-full bg-white", u(_).tick])
@@ -3030,18 +3051,18 @@ const oo = /* @__PURE__ */ x({
3030
3051
  key: 0,
3031
3052
  ref_key: "indicator",
3032
3053
  ref: z,
3033
- class: y(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [u(_).indicator, u(pe).indicator, u(v)]]),
3034
- style: C({
3054
+ class: y(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [u(_).indicator, u(me).indicator, u(m)]]),
3055
+ style: T({
3035
3056
  left: `${u(c) / (u(l) - 1) * 100}%`
3036
3057
  })
3037
3058
  }, [
3038
3059
  w("div", {
3039
- class: y(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [u(_).indicatorInner, u(S)]])
3060
+ class: y(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [u(_).indicatorInner, u(k)]])
3040
3061
  }, null, 2)
3041
- ], 6)) : T("", !0),
3062
+ ], 6)) : A("", !0),
3042
3063
  w("div", {
3043
- class: y(["pointer-events-none h-full rounded-full", [u(_).progress, u(pe).progress, u(f)]]),
3044
- style: C({
3064
+ class: y(["pointer-events-none h-full rounded-full", [u(_).progress, u(me).progress, u(f)]]),
3065
+ style: T({
3045
3066
  width: `${u(c) / (u(l) - 1) * 100}%`
3046
3067
  })
3047
3068
  }, null, 6)
@@ -3050,46 +3071,46 @@ const oo = /* @__PURE__ */ x({
3050
3071
  ], 34),
3051
3072
  w("div", {
3052
3073
  class: "relative mx-1 h-1em text-xs text-surface-onlow",
3053
- style: C({
3074
+ style: T({
3054
3075
  width: `${t.width}rem`
3055
3076
  })
3056
3077
  }, [
3057
- (h(!0), b(K, null, ye(u(s), (B, I) => (h(), b("div", {
3078
+ (h(!0), b(K, null, we(u(s), (B, I) => (h(), b("div", {
3058
3079
  key: I,
3059
- style: C({
3080
+ style: T({
3060
3081
  left: `${d(B) / (u(l) - 1) * 100}%`
3061
3082
  }),
3062
3083
  class: y(["absolute w-auto flex rounded-full -translate-x-50%", u(_).tick])
3063
- }, se(B), 7))), 128))
3084
+ }, re(B), 7))), 128))
3064
3085
  ], 4)
3065
3086
  ]));
3066
3087
  }
3067
- }), Nn = { class: "h-full py-2" }, io = /* @__PURE__ */ x({
3088
+ }), In = { class: "h-full py-2" }, uo = /* @__PURE__ */ x({
3068
3089
  __name: "TabItem",
3069
3090
  props: {
3070
3091
  value: {},
3071
3092
  color: { default: "primary" }
3072
3093
  },
3073
3094
  setup(e) {
3074
- const t = e, r = be(yt, g("")), n = be(wt, m(() => "horizontal")), a = m(() => r.value === t.value);
3095
+ const t = e, r = ge(wt, g("")), n = ge(_t, v(() => "horizontal")), a = v(() => r.value === t.value);
3075
3096
  function o() {
3076
3097
  r.value = t.value;
3077
3098
  }
3078
- const s = m(() => {
3099
+ const s = v(() => {
3079
3100
  switch (n.value) {
3080
3101
  case "horizontal":
3081
3102
  return "flex-col";
3082
3103
  case "vertical":
3083
3104
  return "flex-row-reverse";
3084
3105
  }
3085
- }), i = m(() => {
3106
+ }), i = v(() => {
3086
3107
  switch (n.value) {
3087
3108
  case "horizontal":
3088
3109
  return "absolute inset-0 top-100% h-2px w-full transition-background-color,border-color,color";
3089
3110
  case "vertical":
3090
3111
  return "absolute inset-0 right-100% h-full w-2px bg-primary-container transition-background-color,border-color,color";
3091
3112
  }
3092
- }), l = m(() => a.value ? "bg-primary-container" : "bg-surface-lowest");
3113
+ }), l = v(() => a.value ? "bg-primary-container" : "bg-surface-lowest");
3093
3114
  return (c, d) => (h(), b("button", {
3094
3115
  type: "button",
3095
3116
  class: y(["relative min-w-20 flex items-center justify-center", [u(s)]]),
@@ -3102,12 +3123,12 @@ const oo = /* @__PURE__ */ x({
3102
3123
  key: 1,
3103
3124
  class: y([u(i), u(l)])
3104
3125
  }, null, 2)),
3105
- w("div", Nn, [
3106
- k(c.$slots, "default")
3126
+ w("div", In, [
3127
+ S(c.$slots, "default")
3107
3128
  ])
3108
3129
  ], 2));
3109
3130
  }
3110
- }), co = /* @__PURE__ */ x({
3131
+ }), fo = /* @__PURE__ */ x({
3111
3132
  __name: "Tabs",
3112
3133
  props: /* @__PURE__ */ W({
3113
3134
  defaultValue: {},
@@ -3118,7 +3139,7 @@ const oo = /* @__PURE__ */ x({
3118
3139
  }),
3119
3140
  emits: ["update:modelValue"],
3120
3141
  setup(e) {
3121
- const t = e, r = nt(), n = m(() => {
3142
+ const t = e, r = at(), n = v(() => {
3122
3143
  var c;
3123
3144
  const i = (c = r.default) == null ? void 0 : c.call(r);
3124
3145
  return (i == null ? void 0 : i.flatMap((d) => d.type === K ? d.children : d).filter((d) => {
@@ -3128,9 +3149,9 @@ const oo = /* @__PURE__ */ x({
3128
3149
  }), a = j(e, "modelValue");
3129
3150
  !a.value && n.value.length > 0 && (a.value = n.value[0]), ee(() => {
3130
3151
  t.defaultValue && (a.value = t.defaultValue);
3131
- }), ge(yt, a);
3132
- const o = m(() => t.direction);
3133
- ge(wt, o), te("left", () => {
3152
+ }), ye(wt, a);
3153
+ const o = v(() => t.direction);
3154
+ ye(_t, o), te("left", () => {
3134
3155
  if (t.direction !== "horizontal")
3135
3156
  return;
3136
3157
  const i = a.value ? n.value.indexOf(a.value) : 0;
@@ -3151,7 +3172,7 @@ const oo = /* @__PURE__ */ x({
3151
3172
  const i = a.value ? n.value.indexOf(a.value) : 0;
3152
3173
  i < n.value.length - 1 ? a.value = n.value[i + 1] : a.value = n.value[0];
3153
3174
  });
3154
- const s = m(() => {
3175
+ const s = v(() => {
3155
3176
  switch (t.direction) {
3156
3177
  case "horizontal":
3157
3178
  return "flex-row";
@@ -3162,56 +3183,56 @@ const oo = /* @__PURE__ */ x({
3162
3183
  return (i, l) => (h(), b("div", {
3163
3184
  class: y(["flex", [u(s)]])
3164
3185
  }, [
3165
- k(i.$slots, "default")
3186
+ S(i.$slots, "default")
3166
3187
  ], 2));
3167
3188
  }
3168
3189
  });
3169
3190
  export {
3170
- In as AspectRatio,
3191
+ Dn as AspectRatio,
3171
3192
  Ht as Avatar,
3172
- at as Btn,
3173
- Vn as ChatContainer,
3174
- Dn as ChatMessage,
3175
- Fn as ChatSystem,
3176
- Ln as Chip,
3177
- jn as ColorInput,
3193
+ lt as Btn,
3194
+ Fn as ChatContainer,
3195
+ Ln as ChatMessage,
3196
+ Wn as ChatSystem,
3197
+ jn as Chip,
3198
+ Gn as ColorInput,
3178
3199
  ir as ColorSwatch,
3179
- Un as Drawer,
3180
- Gn as Dropzone,
3181
- dt as FullscreenOverlay,
3182
- qn as Image,
3183
- Xn as Indicator,
3184
- Yn as Modal,
3200
+ qn as Drawer,
3201
+ Xn as Dropzone,
3202
+ ft as FullscreenOverlay,
3203
+ Yn as Image,
3204
+ Zn as Indicator,
3205
+ Kn as Modal,
3185
3206
  Yr as Notification,
3186
- Zn as NotificationSystem,
3187
- ro as Notifications,
3188
- Kn as Overlay,
3189
- Qn as Paper,
3190
- Jn as PinInput,
3191
- eo as Progress,
3192
- oo as RokuProvider,
3193
- ao as SchemeSwitch,
3194
- so as Select,
3195
- lo as Slider,
3196
- Sn as Switch,
3197
- io as TabItem,
3198
- co as Tabs,
3199
- mn as TextField,
3207
+ Qn as NotificationSystem,
3208
+ oo as Notifications,
3209
+ Jn as Overlay,
3210
+ eo as Paper,
3211
+ to as PinInput,
3212
+ ro as Progress,
3213
+ so as RokuProvider,
3214
+ lo as SchemeSwitch,
3215
+ io as Select,
3216
+ co as Slider,
3217
+ $n as Switch,
3218
+ uo as TabItem,
3219
+ fo as Tabs,
3220
+ bn as TextField,
3200
3221
  Vr as ThemeProvider,
3201
3222
  Ie as darkTheme,
3202
- wt as directionSymbol,
3203
- no as generateColors,
3204
- wn as generateColorsMap,
3205
- bn as lightTheme,
3206
- to as notificationsSymbol,
3207
- ut as schemeSymbol,
3208
- yt as tabCurrentSymbol,
3209
- bt as themeColors,
3223
+ _t as directionSymbol,
3224
+ ao as generateColors,
3225
+ xn as generateColorsMap,
3226
+ yn as lightTheme,
3227
+ no as notificationsSymbol,
3228
+ dt as schemeSymbol,
3229
+ wt as tabCurrentSymbol,
3230
+ gt as themeColors,
3210
3231
  Or as useCurrentTheme,
3211
- Wn as useCurrentThemeScheme,
3212
- ct as useId,
3213
- gn as useNotifications,
3232
+ Un as useCurrentThemeScheme,
3233
+ Fe as useId,
3234
+ wn as useNotifications,
3214
3235
  Br as useRootTheme,
3215
3236
  Hr as useScheme,
3216
- it as useThemeStyles
3237
+ ut as useThemeStyles
3217
3238
  };