@roku-ui/vue 0.1.2 → 0.3.0

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,67 @@
1
- import { defineComponent as $, computed as m, useAttrs as ht, openBlock as g, createBlock as D, resolveDynamicComponent as _e, mergeProps as Pe, unref as l, withCtx as J, renderSlot as H, createCommentVNode as z, getCurrentScope as pt, onScopeDispose as mt, onMounted as se, nextTick as gt, getCurrentInstance as Qe, watch as ie, ref as v, mergeModels as ee, useModel as me, watchEffect as X, createElementBlock as y, createElementVNode as M, normalizeClass as w, withModifiers as Ze, normalizeStyle as T, Fragment as te, renderList as fe, toDisplayString as re, withDirectives as Je, vModelCheckbox as bt, reactive as vt, inject as et, provide as Fe, createTextVNode as yt, Teleport as wt, createVNode as We, Transition as _t, withKeys as xt, useSlots as kt, isRef as Mt } from "vue";
2
- const St = /* @__PURE__ */ $({
1
+ import { defineComponent as x, openBlock as m, createElementBlock as b, createElementVNode as _, normalizeStyle as R, renderSlot as $, computed as v, ref as g, onMounted as ee, Fragment as oe, createBlock as O, resolveDynamicComponent as ue, mergeProps as we, unref as c, createCommentVNode as A, withCtx as L, normalizeClass as y, mergeModels as Y, useModel as K, inject as Qe, watchEffect as G, provide as We, useAttrs as bt, withDirectives as Ie, vModelText as gt, createVNode as ve, Teleport as yt, Transition as Je, getCurrentScope as wt, onScopeDispose as _t, nextTick as xt, getCurrentInstance as et, watch as de, shallowRef as kt, readonly as St, useSlots as Mt, toDisplayString as ae, renderList as be, withModifiers as tt, withKeys as $t, reactive as Ct, createTextVNode as At, vModelCheckbox as Tt, isRef as Rt } from "vue";
2
+ const An = /* @__PURE__ */ x({
3
+ __name: "AspectRatio",
4
+ props: {
5
+ ratio: { default: 1 }
6
+ },
7
+ setup(e) {
8
+ return (t, r) => (m(), b("div", null, [
9
+ _("div", {
10
+ style: R({
11
+ "--ar-ratio": t.ratio
12
+ }),
13
+ class: "before:content-[''] before:block before:h-0 before:pb-[calc((1/var(--ar-ratio,1))*100%)] children:absolute children:w-full children:h-full relative children:top-0"
14
+ }, [
15
+ $(t.$slots, "default")
16
+ ], 4)
17
+ ]));
18
+ }
19
+ }), zt = /* @__PURE__ */ x({
20
+ __name: "Avatar",
21
+ props: {
22
+ is: { default: "img" },
23
+ src: {},
24
+ size: { default: "md" },
25
+ style: {},
26
+ class: {}
27
+ },
28
+ setup(e) {
29
+ const t = e, r = v(() => {
30
+ switch (t.size) {
31
+ case "sm":
32
+ return "--size: 1.5rem;";
33
+ case "md":
34
+ return "--size: 2rem;";
35
+ case "lg":
36
+ return "--size: 3rem;";
37
+ default:
38
+ return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `--size: ${t.size}rem;` : `--size: ${t.size};`;
39
+ }
40
+ }), n = g(!1), a = g(null);
41
+ function o() {
42
+ n.value = !0;
43
+ }
44
+ return ee(() => {
45
+ var s;
46
+ (s = a.value) != null && s.complete && o();
47
+ }), (s, i) => (m(), b(oe, null, [
48
+ s.src ? (m(), O(ue(s.is), we({
49
+ key: 0,
50
+ ref_key: "img",
51
+ ref: a,
52
+ style: [s.style, c(r)],
53
+ placeholder: "",
54
+ src: s.src,
55
+ class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !c(n) }, t.class]]
56
+ }, s.$attrs, { onLoad: o }), null, 16, ["style", "src", "class"])) : A("", !0),
57
+ c(n) ? A("", !0) : (m(), b("div", {
58
+ key: 1,
59
+ class: "h-[var(--size)] w-[var(--size)] animate-pulse rounded-full bg-surface-high object-cover border-transparent",
60
+ style: R([s.style, c(r)])
61
+ }, null, 4))
62
+ ], 64));
63
+ }
64
+ }), rt = /* @__PURE__ */ x({
3
65
  __name: "Btn",
4
66
  props: {
5
67
  type: { default: "button" },
@@ -10,10 +72,11 @@ const St = /* @__PURE__ */ $({
10
72
  variant: {},
11
73
  color: {},
12
74
  animate: { type: Boolean },
13
- rounded: { default: "md" }
75
+ rounded: { default: "md" },
76
+ disabled: { type: Boolean, default: !1 }
14
77
  },
15
78
  setup(e) {
16
- const t = e, r = m(() => {
79
+ const t = e, r = v(() => {
17
80
  switch (t.rounded) {
18
81
  case "none":
19
82
  return "rounded-none";
@@ -26,7 +89,7 @@ const St = /* @__PURE__ */ $({
26
89
  case "full":
27
90
  return "rounded-full";
28
91
  }
29
- }), n = m(() => {
92
+ }), n = v(() => {
30
93
  switch (t.size) {
31
94
  case "sm":
32
95
  return {
@@ -44,7 +107,7 @@ const St = /* @__PURE__ */ $({
44
107
  iconContent: "h-10 w-10 p-3"
45
108
  };
46
109
  }
47
- }), o = m(() => {
110
+ }), a = v(() => {
48
111
  switch (t.variant) {
49
112
  case "filled":
50
113
  switch (t.color) {
@@ -116,393 +179,144 @@ const St = /* @__PURE__ */ $({
116
179
  default:
117
180
  return "btn-default";
118
181
  }
119
- }), a = ht();
120
- return (s, i) => (g(), D(_e(s.is), Pe({
121
- "data-size": s.size,
122
- type: s.type,
182
+ });
183
+ return (o, s) => (m(), O(ue(o.is), we({
184
+ "data-size": o.size,
185
+ type: o.type,
123
186
  class: ["flex items-center justify-center gap-1 decoration-none", [
124
- l(o),
125
- l(r),
126
- s.icon ? l(n).iconContent : l(n).normalContent,
187
+ c(a),
188
+ c(r),
189
+ o.icon ? c(n).iconContent : c(n).normalContent,
127
190
  {
128
- "filter-grayscale": l(a).disabled,
129
- "active:translate-y-0.25": !l(a).disabled && s.pressEffect === "translate",
130
- "active:scale-98": !l(a).disabled && s.pressEffect === "scale",
131
- "transition-all": s.animate
191
+ "filter-grayscale pointer-events-none": o.disabled,
192
+ "active:translate-y-0.25": o.pressEffect === "translate",
193
+ "active:scale-98": o.pressEffect === "scale",
194
+ "transition-all": o.animate
132
195
  }
133
196
  ]]
134
- }, s.$attrs), {
135
- default: J(() => [
136
- s.$slots.leftSection ? H(s.$slots, "leftSection", { key: 0 }) : z("", !0),
137
- H(s.$slots, "default"),
138
- s.$slots.rightSection ? H(s.$slots, "rightSection", { key: 1 }) : z("", !0)
197
+ }, o.$attrs, { tabindex: "-1" }), {
198
+ default: L(() => [
199
+ o.$slots.leftSection ? $(o.$slots, "leftSection", { key: 0 }) : A("", !0),
200
+ $(o.$slots, "default"),
201
+ o.$slots.rightSection ? $(o.$slots, "rightSection", { key: 1 }) : A("", !0)
139
202
  ]),
140
203
  _: 3
141
204
  }, 16, ["data-size", "type", "class"]));
142
205
  }
143
- });
144
- function Ne(e) {
145
- return pt() ? (mt(e), !0) : !1;
146
- }
147
- function He(e) {
148
- return typeof e == "function" ? e() : l(e);
149
- }
150
- const be = typeof window < "u" && typeof document < "u";
151
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
152
- const At = Object.prototype.toString, Ct = (e) => At.call(e) === "[object Object]", $t = () => {
153
- };
154
- function Tt(e) {
155
- return e || Qe();
156
- }
157
- function zt(e, t = !0, r) {
158
- Tt() ? se(e, r) : t ? e() : gt(e);
159
- }
160
- function q(e) {
161
- var t;
162
- const r = He(e);
163
- return (t = r == null ? void 0 : r.$el) != null ? t : r;
164
- }
165
- const xe = be ? window : void 0;
166
- function Y(...e) {
167
- let t, r, n, o;
168
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, o] = e, t = xe) : [t, r, n, o] = e, !t)
169
- return $t;
170
- Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
171
- const a = [], s = () => {
172
- a.forEach((f) => f()), a.length = 0;
173
- }, i = (f, u, p, b) => (f.addEventListener(u, p, b), () => f.removeEventListener(u, p, b)), c = ie(
174
- () => [q(t), He(o)],
175
- ([f, u]) => {
176
- if (s(), !f)
177
- return;
178
- const p = Ct(u) ? { ...u } : u;
179
- a.push(
180
- ...r.flatMap((b) => n.map((k) => i(f, b, k, p)))
181
- );
182
- },
183
- { immediate: !0, flush: "post" }
184
- ), d = () => {
185
- c(), s();
186
- };
187
- return Ne(d), d;
188
- }
189
- function Rt(e) {
190
- return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
191
- }
192
- function Ae(...e) {
193
- let t, r, n = {};
194
- 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]);
195
- const {
196
- target: o = xe,
197
- eventName: a = "keydown",
198
- passive: s = !1,
199
- dedupe: i = !1
200
- } = n, c = Rt(t);
201
- return Y(o, a, (f) => {
202
- f.repeat && He(i) || c(f) && r(f);
203
- }, s);
204
- }
205
- function Et() {
206
- const e = v(!1);
207
- return Qe() && se(() => {
208
- e.value = !0;
209
- }), e;
210
- }
211
- function tt(e) {
212
- const t = Et();
213
- return m(() => (t.value, !!e()));
214
- }
215
- function Pt(e, t, r = {}) {
216
- const { window: n = xe, ...o } = r;
217
- let a;
218
- const s = tt(() => n && "MutationObserver" in n), i = () => {
219
- a && (a.disconnect(), a = void 0);
220
- }, c = ie(
221
- () => q(e),
222
- (u) => {
223
- i(), s.value && n && u && (a = new MutationObserver(t), a.observe(u, o));
224
- },
225
- { immediate: !0 }
226
- ), d = () => a == null ? void 0 : a.takeRecords(), f = () => {
227
- i(), c();
228
- };
229
- return Ne(f), {
230
- isSupported: s,
231
- stop: f,
232
- takeRecords: d
233
- };
234
- }
235
- function Nt(e, t, r = {}) {
236
- const { window: n = xe, ...o } = r;
237
- let a;
238
- const s = tt(() => n && "ResizeObserver" in n), i = () => {
239
- a && (a.disconnect(), a = void 0);
240
- }, c = m(() => Array.isArray(e) ? e.map((u) => q(u)) : [q(e)]), d = ie(
241
- c,
242
- (u) => {
243
- if (i(), s.value && n) {
244
- a = new ResizeObserver(t);
245
- for (const p of u)
246
- p && a.observe(p, o);
247
- }
248
- },
249
- { immediate: !0, flush: "post", deep: !0 }
250
- ), f = () => {
251
- i(), d();
252
- };
253
- return Ne(f), {
254
- isSupported: s,
255
- stop: f
256
- };
257
- }
258
- function Ht(e, t = {}) {
259
- const {
260
- reset: r = !0,
261
- windowResize: n = !0,
262
- windowScroll: o = !0,
263
- immediate: a = !0
264
- } = t, s = v(0), i = v(0), c = v(0), d = v(0), f = v(0), u = v(0), p = v(0), b = v(0);
265
- function k() {
266
- const S = q(e);
267
- if (!S) {
268
- r && (s.value = 0, i.value = 0, c.value = 0, d.value = 0, f.value = 0, u.value = 0, p.value = 0, b.value = 0);
269
- return;
270
- }
271
- const C = S.getBoundingClientRect();
272
- s.value = C.height, i.value = C.bottom, c.value = C.left, d.value = C.right, f.value = C.top, u.value = C.width, p.value = C.x, b.value = C.y;
273
- }
274
- return Nt(e, k), ie(() => q(e), (S) => !S && k()), Pt(e, k, {
275
- attributeFilter: ["style", "class"]
276
- }), o && Y("scroll", k, { capture: !0, passive: !0 }), n && Y("resize", k, { passive: !0 }), zt(() => {
277
- a && k();
278
- }), {
279
- height: s,
280
- bottom: i,
281
- left: c,
282
- right: d,
283
- top: f,
284
- width: u,
285
- x: p,
286
- y: b,
287
- update: k
288
- };
289
- }
290
- function It(e, t = {}) {
291
- const { initialValue: r = !1, focusVisible: n = !1 } = t, o = v(!1), a = m(() => q(e));
292
- Y(a, "focus", (i) => {
293
- var c, d;
294
- (!n || (d = (c = i.target).matches) != null && d.call(c, ":focus-visible")) && (o.value = !0);
295
- }), Y(a, "blur", () => o.value = !1);
296
- const s = m({
297
- get: () => o.value,
298
- set(i) {
299
- var c, d;
300
- !i && o.value ? (c = a.value) == null || c.blur() : i && !o.value && ((d = a.value) == null || d.focus());
301
- }
302
- });
303
- return ie(
304
- a,
305
- () => {
306
- s.value = r;
307
- },
308
- { immediate: !0, flush: "post" }
309
- ), { focused: s };
310
- }
311
- const Ot = { class: "relative inline-block" }, rn = /* @__PURE__ */ $({
312
- __name: "Slider",
313
- props: /* @__PURE__ */ ee({
314
- size: { default: "md" },
315
- animate: { type: Boolean, default: !1 },
316
- width: { default: 12 },
317
- options: {},
318
- min: { default: 0 },
319
- max: { default: 100 },
320
- step: { default: 1 },
321
- tickNum: {},
322
- color: { default: "primary" }
323
- }, {
324
- modelValue: {
325
- default: void 0
326
- },
327
- modelModifiers: {}
328
- }),
329
- emits: ["update:modelValue"],
206
+ }), Bt = (e, t) => {
207
+ const r = e.__vccOpts || e;
208
+ for (const [n, a] of t)
209
+ r[n] = a;
210
+ return r;
211
+ }, Et = {}, Ot = { class: "flex flex-col gap-4 container" };
212
+ function Pt(e, t) {
213
+ return m(), b("div", Ot, [
214
+ $(e.$slots, "default")
215
+ ]);
216
+ }
217
+ const Tn = /* @__PURE__ */ Bt(Et, [["render", Pt]]), Rn = /* @__PURE__ */ x({
218
+ __name: "ChatMessage",
219
+ props: {
220
+ avatar: {},
221
+ position: { default: "left" },
222
+ color: {},
223
+ variant: { default: "default" },
224
+ withBorder: { type: Boolean, default: !1 }
225
+ },
330
226
  setup(e) {
331
- const t = e;
332
- function r(A, R, E) {
333
- const I = [];
334
- for (let G = A; G <= R; G += E)
335
- I.push(G);
336
- return I[I.length - 1] !== R && I.push(R), I;
337
- }
338
- function n(A, R) {
339
- const E = [];
340
- E.push(R[0]);
341
- const I = (R.length - 1) / (A - 1);
342
- for (let G = 1; G < A - 1; G++)
343
- E.push(R[Math.round(G * I)]);
344
- return E.push(R[R.length - 1]), E;
345
- }
346
- const o = m(() => t.options ? t.options.length : t.tickNum ?? 0), a = m(() => t.options === void 0 ? r(t.min, t.max, t.step) : t.options), s = m(() => n(o.value, a.value)), i = me(e, "modelValue"), c = m(() => a.value.length ?? 0), d = v(a.value.includes(i.value) ? a.value.indexOf(i.value) : 0);
347
- function f(A) {
348
- return a.value.indexOf(A);
349
- }
350
- const u = m(() => {
351
- switch (t.color) {
352
- case "primary":
353
- return "bg-primary-container";
354
- case "secondary":
355
- return "bg-secondary-container";
356
- case "tertiary":
357
- return "bg-tertiary-container";
358
- case "error":
359
- return "bg-error-container";
360
- }
361
- }), p = m(() => `dark:bg-white bg-${t.color}-container`), b = m(() => {
362
- switch (t.color) {
363
- case "primary":
364
- return "dark:bg-primary-container bg-white";
365
- case "secondary":
366
- return "dark:bg-secondary-container bg-white";
367
- case "tertiary":
368
- return "dark:bg-tertiary-container bg-white";
369
- case "error":
370
- return "dark:bg-error-container bg-white";
371
- }
372
- });
373
- X(() => {
374
- i.value = a.value[d.value];
375
- });
376
- const k = v(), S = v(), C = Ht(k), le = v(!1);
377
- function ce(A) {
378
- if (!le.value)
379
- return;
380
- if (!(A.buttons === 1)) {
381
- le.value = !1;
382
- return;
383
- }
384
- A.preventDefault(), A.stopPropagation();
385
- const { clientX: E } = A, I = C.left.value, ft = C.right.value - I, Se = Math.round((E - I) / ft * (c.value - 1));
386
- Se < 0 || Se > c.value - 1 || (d.value = Se);
387
- }
388
- X(() => {
389
- d.value = f(i.value);
390
- });
391
- function _(A) {
392
- A.preventDefault(), A.stopPropagation(), le.value = !0, ce(A);
393
- }
394
- Y(k, "pointerdown", _), se(() => {
395
- Y(document, "pointermove", ce), d.value = Math.max(0, f(i.value));
396
- });
397
- const O = m(() => {
398
- switch (t.size) {
399
- case "sm":
400
- return {
401
- wrapper: "h-2",
402
- innerWrapper: "px-0.5 h-1",
403
- content: "h-1",
404
- tick: "h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",
405
- indicator: "h-2 w-2 -translate-x-1 -translate-y-1",
406
- indicatorInner: "h-1 w-1 -translate-x-0.5 -translate-y-0.5",
407
- progress: "-mx-0.5"
408
- };
409
- case "md":
410
- return {
411
- wrapper: "h-4",
412
- innerWrapper: "px-1 h-2",
413
- content: "h-2",
414
- tick: "h-1 w-1 -translate-x-0.5 -translate-y-0.5",
415
- indicator: "h-4 w-4 -translate-x-2 -translate-y-2",
416
- indicatorInner: "h-2 w-2 -translate-x-1 -translate-y-1",
417
- progress: "-mx-1"
418
- };
419
- case "lg":
420
- return {
421
- wrapper: "h-6",
422
- innerWrapper: "px-1.5 h-3",
423
- content: "h-3",
424
- tick: "h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",
425
- indicator: "h-6 w-6 -translate-x-3 -translate-y-3",
426
- indicatorInner: "h-3 w-3 -translate-x-1.5 -translate-y-1.5",
427
- progress: "-mx-1.5"
428
- };
227
+ const t = e, r = v(() => {
228
+ switch (t.variant) {
229
+ case "default":
230
+ return "bg-surface-base";
231
+ case "fill":
232
+ switch (t.color) {
233
+ case "secondary":
234
+ return "bg-secondary-container text-secondary-on";
235
+ case "tertiary":
236
+ return "bg-tertiary-container text-tertiary-on";
237
+ case "error":
238
+ return "bg-error-container text-error-on";
239
+ default:
240
+ return "bg-primary-container text-primary-on";
241
+ }
242
+ case "transparent":
243
+ return "bg-transparent";
429
244
  }
430
- }), j = m(() => t.animate ? {
431
- indicator: "transition-left",
432
- progress: "transition-width"
433
- } : {
434
- indicator: "",
435
- progress: ""
436
245
  });
437
- return (A, R) => (g(), y("div", Ot, [
438
- M("div", {
439
- ref_key: "wrapper",
440
- ref: k,
441
- type: "size",
442
- class: w(["flex cursor-pointer items-center", l(O).wrapper]),
443
- onTouchmove: R[0] || (R[0] = Ze(() => {
444
- }, ["prevent"]))
246
+ return (n, a) => {
247
+ const o = zt;
248
+ return m(), b("div", {
249
+ class: y(["flex gap-2", [
250
+ {
251
+ "flex-row-reverse": n.position === "right",
252
+ "flex-row": n.position === "left"
253
+ }
254
+ ]])
445
255
  }, [
446
- M("div", {
447
- class: w(["rounded-full bg-surface-lowest transition-background-color,border-color,color", l(O).innerWrapper])
256
+ n.$slots.avatar ? $(n.$slots, "avatar", { key: 0 }) : n.avatar ? (m(), O(o, {
257
+ key: 1,
258
+ src: n.avatar
259
+ }, null, 8, ["src"])) : A("", !0),
260
+ _("div", {
261
+ class: y(["rounded-xl px-3 py-2 transition-background-color,border-color", [
262
+ {
263
+ "rounded-tr": n.position === "right",
264
+ "rounded-tl": n.position === "left",
265
+ border: n.withBorder
266
+ },
267
+ c(r)
268
+ ]])
448
269
  }, [
449
- M("div", {
450
- class: w(["relative flex", l(O).content]),
451
- style: T({
452
- width: `${t.width}rem`
453
- })
454
- }, [
455
- (g(!0), y(te, null, fe(l(s), (E) => (g(), y("div", {
456
- key: E,
457
- style: T({
458
- left: `${f(E) / (l(c) - 1) * 100}%`
459
- }),
460
- class: w(["absolute top-50% rounded-full bg-white", l(O).tick])
461
- }, null, 6))), 128)),
462
- M("div", {
463
- ref_key: "indicator",
464
- ref: S,
465
- class: w(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [l(O).indicator, l(j).indicator, l(p)]]),
466
- style: T({
467
- left: `${l(d) / (l(c) - 1) * 100}%`
468
- })
469
- }, [
470
- M("div", {
471
- class: w(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [l(O).indicatorInner, l(b)]])
472
- }, null, 2)
473
- ], 6),
474
- M("div", {
475
- class: w(["pointer-events-none h-full rounded-full", [l(O).progress, l(j).progress, l(u)]]),
476
- style: T({
477
- width: `${l(d) / (l(c) - 1) * 100}%`
478
- })
479
- }, null, 6)
480
- ], 6)
270
+ $(n.$slots, "default")
481
271
  ], 2)
482
- ], 34),
483
- M("div", {
484
- class: "relative mx-1 h-1em text-xs text-surface-onlow",
485
- style: T({
486
- width: `${t.width}rem`
487
- })
272
+ ], 2);
273
+ };
274
+ }
275
+ }), It = { class: "flex gap-2 self-center w-full text-center" }, zn = /* @__PURE__ */ x({
276
+ __name: "ChatSystem",
277
+ props: {
278
+ position: {},
279
+ color: {},
280
+ variant: { default: "default" },
281
+ withBorder: { type: Boolean, default: !1 }
282
+ },
283
+ setup(e) {
284
+ const t = e, r = v(() => {
285
+ switch (t.variant) {
286
+ case "default":
287
+ return "bg-surface-base";
288
+ case "fill":
289
+ switch (t.color) {
290
+ case "secondary":
291
+ return "bg-secondary-container text-secondary-on";
292
+ case "tertiary":
293
+ return "bg-tertiary-container text-tertiary-on";
294
+ case "error":
295
+ return "bg-error-container text-error-on";
296
+ default:
297
+ return "bg-primary-container text-primary-on";
298
+ }
299
+ case "transparent":
300
+ return "bg-transparent";
301
+ }
302
+ });
303
+ return (n, a) => (m(), b("div", It, [
304
+ _("div", {
305
+ class: y(["rounded-xl px-3 py-2 w-full transition-background-color,border-color", [
306
+ c(r)
307
+ ]])
488
308
  }, [
489
- (g(!0), y(te, null, fe(l(s), (E, I) => (g(), y("div", {
490
- key: I,
491
- style: T({
492
- left: `${f(E) / (l(c) - 1) * 100}%`
493
- }),
494
- class: w(["absolute w-auto flex rounded-full -translate-x-50%", l(O).tick])
495
- }, re(E), 7))), 128))
496
- ], 4)
309
+ $(n.$slots, "default")
310
+ ], 2)
497
311
  ]));
498
312
  }
499
313
  });
500
- function ge(e) {
501
- return m(
502
- () => ({ style: Bt(e.rounded), class: "rounded-[var(--r-rounded)]" })
314
+ function te(e) {
315
+ return v(
316
+ () => ({ style: Nt(e.rounded), class: "rounded-[var(--r-rounded)]" })
503
317
  );
504
318
  }
505
- function Bt(e) {
319
+ function Nt(e) {
506
320
  const t = /^-?\d*\.?\d+(px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;
507
321
  switch (e) {
508
322
  case "none":
@@ -519,152 +333,78 @@ function Bt(e) {
519
333
  return typeof e == "string" && t.test(e) ? `--r-rounded: ${e};` : typeof e == "number" || !Number.isNaN(Number(e)) ? `--r-rounded: ${e}rem;` : "rounded-[var(--r-rounded)]";
520
334
  }
521
335
  }
522
- const Vt = ["id"], Ft = ["for"], Wt = ["for"], Lt = /* @__PURE__ */ $({
523
- inheritAttrs: !1,
524
- __name: "Switch",
525
- props: /* @__PURE__ */ ee({
336
+ const Bn = /* @__PURE__ */ x({
337
+ __name: "Chip",
338
+ props: /* @__PURE__ */ Y({
339
+ is: { default: "img" },
340
+ src: {},
526
341
  size: { default: "md" },
527
- animate: { type: Boolean, default: !0 },
528
- options: {},
529
- label: {},
530
- id: {},
531
- rounded: { default: "full" },
532
- color: { default: "primary" },
533
- disabled: { type: Boolean },
534
- offIcon: {},
535
- onIcon: {}
342
+ style: {},
343
+ class: {},
344
+ rounded: { default: "full" }
536
345
  }, {
537
- modelValue: { type: Boolean },
346
+ modelValue: { type: Boolean, default: void 0 },
538
347
  modelModifiers: {}
539
348
  }),
540
349
  emits: ["update:modelValue"],
541
350
  setup(e) {
542
- const t = e, r = me(e, "modelValue"), n = v(null), o = v(!1), a = m(() => {
351
+ const t = e, r = K(e, "modelValue"), n = te(t), a = v(() => {
543
352
  switch (t.size) {
544
353
  case "sm":
545
- return {
546
- icon: "text-xs mx-0.5",
547
- wrapper: "h-4 w-8",
548
- indicator: o.value ? "h-3 w-4" : "h-3 w-3",
549
- inactive: "left-[calc(0.125rem-1px)]",
550
- active: o.value ? "left-[calc(0.875rem-1px)]" : "left-[calc(1.125rem-1px)]"
551
- };
354
+ return "px-3 text-sm h-6";
552
355
  case "md":
553
- return {
554
- icon: "text-sm mx-1",
555
- wrapper: "h-6 w-12",
556
- indicator: o.value ? "h-4 w-5" : "h-4 w-4",
557
- inactive: "left-[calc(0.25rem-1px)]",
558
- active: o.value ? "left-[calc(1.5rem-1px)]" : "left-[calc(1.75rem-1px)]"
559
- };
356
+ return "px-6 h-8 text-base";
560
357
  case "lg":
561
- return {
562
- icon: "text-lg mx-2",
563
- wrapper: "h-8 w-16",
564
- indicator: o.value ? "h-6 w-8" : "h-6 w-6",
565
- inactive: "left-[calc(0.25rem-1px)]",
566
- active: o.value ? "left-[calc(1.75rem-1px)]" : "left-[calc(2.25rem-1px)]"
567
- };
568
- }
569
- }), s = m(() => t.animate ? {
570
- indicator: "transition-all",
571
- progress: "transition-width"
572
- } : {
573
- indicator: "",
574
- progress: ""
575
- });
576
- function i() {
577
- const u = v("");
578
- return se(() => {
579
- t.id ? u.value = t.id : u.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
580
- }), u;
581
- }
582
- const c = i(), d = m(() => {
583
- let u = "bg-primary-container";
584
- switch (t.color) {
585
- case "secondary":
586
- u = "bg-secondary-7";
587
- break;
588
- case "tertiary":
589
- u = "bg-tertiary-7";
590
- break;
591
- case "error":
592
- u = "bg-error-7";
593
- break;
358
+ return "px-8 h-10 text-lg";
594
359
  }
595
- return {
596
- wrapper: r.value ? `border border-transparent ${u}` : "bg-surface-lowest border border-surface-border-low",
597
- indicator: t.disabled ? "bg-surface-high" : "bg-white text-primary-container"
598
- };
599
- }), f = ge(t);
600
- return (u, p) => (g(), y("div", {
601
- role: "switch",
602
- class: w(["relative flex items-center gap-2", {
603
- "pointer-events-none filter-grayscale op60": t.disabled
604
- }])
360
+ }), o = v(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = v(() => r.value !== void 0), i = v(() => s.value ? "cursor-pointer" : "");
361
+ return (l, u) => (m(), b("span", {
362
+ class: y(["inline-flex items-center gap-1", [c(n).class, c(a), c(o), c(i)]]),
363
+ style: R([c(n).style]),
364
+ onPointerup: u[0] || (u[0] = (d) => c(s) && (r.value = !r.value))
605
365
  }, [
606
- Je(M("input", Pe({
607
- id: l(c),
608
- "onUpdate:modelValue": p[0] || (p[0] = (b) => r.value = b)
609
- }, u.$attrs, {
610
- class: "hidden",
611
- type: "checkbox"
612
- }), null, 16, Vt), [
613
- [bt, r.value]
614
- ]),
615
- M("label", {
616
- class: "leading-0 cursor-pointer!",
617
- for: l(c)
618
- }, [
619
- M("div", {
620
- ref_key: "wrapper",
621
- ref: n,
622
- class: w([[l(a).wrapper, l(d).wrapper, l(f).class], "relative inline-block transition-all"]),
623
- style: T([l(f).style]),
624
- onPointerdown: p[1] || (p[1] = (b) => o.value = !0),
625
- onPointerup: p[2] || (p[2] = (b) => o.value = !1),
626
- onPointerleave: p[3] || (p[3] = (b) => o.value = !1),
627
- onPointerenter: p[4] || (p[4] = (b) => b.buttons === 1 && (o.value = !0))
628
- }, [
629
- M("div", {
630
- class: w(["absolute top-50% -translate-y-50%", [l(a).indicator, l(d).indicator, l(s).indicator, r.value ? l(a).active : l(a).inactive, l(f).class]]),
631
- style: T([l(f).style])
632
- }, null, 6),
633
- M("i", {
634
- class: w(["absolute top-1/2 -translate-y-50%", [l(a).icon, {
635
- [`left-0 text-${u.color}-on`]: r.value,
636
- "right-0 text-surface-on ": !r.value,
637
- [u.onIcon ?? ""]: r.value && u.onIcon,
638
- [u.offIcon ?? ""]: !r.value && u.offIcon
639
- }]])
640
- }, null, 2)
641
- ], 38)
642
- ], 8, Ft),
643
- u.label ? (g(), y("label", {
644
- key: 0,
645
- for: l(c)
646
- }, re(u.label), 9, Wt)) : z("", !0)
647
- ], 2));
366
+ l.$slots.leftSection ? $(l.$slots, "leftSection", { key: 0 }) : A("", !0),
367
+ $(l.$slots, "default"),
368
+ l.$slots.rightSection ? $(l.$slots, "rightSection", { key: 1 }) : A("", !0)
369
+ ], 38));
370
+ }
371
+ }), Ht = /* @__PURE__ */ x({
372
+ __name: "ColorSwatch",
373
+ props: {
374
+ color: {},
375
+ is: { default: "div" },
376
+ withBorder: { type: Boolean, default: !1 }
377
+ },
378
+ setup(e) {
379
+ return (t, r) => (m(), O(ue(t.is), {
380
+ class: y(["h-6 w-6 border rounded-full", [{
381
+ "border border-surface-border-base": t.withBorder,
382
+ "border border-transparent": !t.withBorder
383
+ }]]),
384
+ style: R({
385
+ backgroundColor: t.color
386
+ })
387
+ }, null, 8, ["class", "style"]));
648
388
  }
649
389
  });
650
- function ve(e) {
390
+ function _e(e) {
651
391
  "@babel/helpers - typeof";
652
- return ve = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
392
+ return _e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
653
393
  return typeof t;
654
394
  } : function(t) {
655
395
  return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
656
- }, ve(e);
396
+ }, _e(e);
657
397
  }
658
- var Dt = /^\s+/, jt = /\s+$/;
659
- function h(e, t) {
660
- if (e = e || "", t = t || {}, e instanceof h)
398
+ var Vt = /^\s+/, Dt = /\s+$/;
399
+ function p(e, t) {
400
+ if (e = e || "", t = t || {}, e instanceof p)
661
401
  return e;
662
- if (!(this instanceof h))
663
- return new h(e, t);
664
- var r = Gt(e);
402
+ if (!(this instanceof p))
403
+ return new p(e, t);
404
+ var r = Ft(e);
665
405
  this._originalInput = e, this._r = r.r, this._g = r.g, this._b = r.b, this._a = r.a, this._roundA = Math.round(100 * this._a) / 100, this._format = t.format || r.format, this._gradientType = t.gradientType, this._r < 1 && (this._r = Math.round(this._r)), this._g < 1 && (this._g = Math.round(this._g)), this._b < 1 && (this._b = Math.round(this._b)), this._ok = r.ok;
666
406
  }
667
- h.prototype = {
407
+ p.prototype = {
668
408
  isDark: function() {
669
409
  return this.getBrightness() < 128;
670
410
  },
@@ -688,14 +428,14 @@ h.prototype = {
688
428
  return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
689
429
  },
690
430
  getLuminance: function() {
691
- var t = this.toRgb(), r, n, o, a, s, i;
692
- return r = t.r / 255, n = t.g / 255, o = t.b / 255, r <= 0.03928 ? a = r / 12.92 : a = 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), o <= 0.03928 ? i = o / 12.92 : i = Math.pow((o + 0.055) / 1.055, 2.4), 0.2126 * a + 0.7152 * s + 0.0722 * i;
431
+ var t = this.toRgb(), r, n, a, o, s, i;
432
+ 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;
693
433
  },
694
434
  setAlpha: function(t) {
695
- return this._a = rt(t), this._roundA = Math.round(100 * this._a) / 100, this;
435
+ return this._a = nt(t), this._roundA = Math.round(100 * this._a) / 100, this;
696
436
  },
697
437
  toHsv: function() {
698
- var t = De(this._r, this._g, this._b);
438
+ var t = je(this._r, this._g, this._b);
699
439
  return {
700
440
  h: t.h * 360,
701
441
  s: t.s,
@@ -704,8 +444,8 @@ h.prototype = {
704
444
  };
705
445
  },
706
446
  toHsvString: function() {
707
- var t = De(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.v * 100);
708
- return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + o + "%)" : "hsva(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
447
+ var t = je(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.v * 100);
448
+ return this._a == 1 ? "hsv(" + r + ", " + n + "%, " + a + "%)" : "hsva(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
709
449
  },
710
450
  toHsl: function() {
711
451
  var t = Le(this._r, this._g, this._b);
@@ -717,17 +457,17 @@ h.prototype = {
717
457
  };
718
458
  },
719
459
  toHslString: function() {
720
- var t = Le(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), o = Math.round(t.l * 100);
721
- return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + o + "%)" : "hsla(" + r + ", " + n + "%, " + o + "%, " + this._roundA + ")";
460
+ var t = Le(this._r, this._g, this._b), r = Math.round(t.h * 360), n = Math.round(t.s * 100), a = Math.round(t.l * 100);
461
+ return this._a == 1 ? "hsl(" + r + ", " + n + "%, " + a + "%)" : "hsla(" + r + ", " + n + "%, " + a + "%, " + this._roundA + ")";
722
462
  },
723
463
  toHex: function(t) {
724
- return je(this._r, this._g, this._b, t);
464
+ return Ue(this._r, this._g, this._b, t);
725
465
  },
726
466
  toHexString: function(t) {
727
467
  return "#" + this.toHex(t);
728
468
  },
729
469
  toHex8: function(t) {
730
- return Yt(this._r, this._g, this._b, this._a, t);
470
+ return Ut(this._r, this._g, this._b, this._a, t);
731
471
  },
732
472
  toHex8String: function(t) {
733
473
  return "#" + this.toHex8(t);
@@ -745,102 +485,102 @@ h.prototype = {
745
485
  },
746
486
  toPercentageRgb: function() {
747
487
  return {
748
- r: Math.round(x(this._r, 255) * 100) + "%",
749
- g: Math.round(x(this._g, 255) * 100) + "%",
750
- b: Math.round(x(this._b, 255) * 100) + "%",
488
+ r: Math.round(S(this._r, 255) * 100) + "%",
489
+ g: Math.round(S(this._g, 255) * 100) + "%",
490
+ b: Math.round(S(this._b, 255) * 100) + "%",
751
491
  a: this._a
752
492
  };
753
493
  },
754
494
  toPercentageRgbString: function() {
755
- return this._a == 1 ? "rgb(" + Math.round(x(this._r, 255) * 100) + "%, " + Math.round(x(this._g, 255) * 100) + "%, " + Math.round(x(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(x(this._r, 255) * 100) + "%, " + Math.round(x(this._g, 255) * 100) + "%, " + Math.round(x(this._b, 255) * 100) + "%, " + this._roundA + ")";
495
+ return this._a == 1 ? "rgb(" + Math.round(S(this._r, 255) * 100) + "%, " + Math.round(S(this._g, 255) * 100) + "%, " + Math.round(S(this._b, 255) * 100) + "%)" : "rgba(" + Math.round(S(this._r, 255) * 100) + "%, " + Math.round(S(this._g, 255) * 100) + "%, " + Math.round(S(this._b, 255) * 100) + "%, " + this._roundA + ")";
756
496
  },
757
497
  toName: function() {
758
- return this._a === 0 ? "transparent" : this._a < 1 ? !1 : ir[je(this._r, this._g, this._b, !0)] || !1;
498
+ return this._a === 0 ? "transparent" : this._a < 1 ? !1 : nr[Ue(this._r, this._g, this._b, !0)] || !1;
759
499
  },
760
500
  toFilter: function(t) {
761
- var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r, o = this._gradientType ? "GradientType = 1, " : "";
501
+ var r = "#" + Ge(this._r, this._g, this._b, this._a), n = r, a = this._gradientType ? "GradientType = 1, " : "";
762
502
  if (t) {
763
- var a = h(t);
764
- n = "#" + Ge(a._r, a._g, a._b, a._a);
503
+ var o = p(t);
504
+ n = "#" + Ge(o._r, o._g, o._b, o._a);
765
505
  }
766
- return "progid:DXImageTransform.Microsoft.gradient(" + o + "startColorstr=" + r + ",endColorstr=" + n + ")";
506
+ return "progid:DXImageTransform.Microsoft.gradient(" + a + "startColorstr=" + r + ",endColorstr=" + n + ")";
767
507
  },
768
508
  toString: function(t) {
769
509
  var r = !!t;
770
510
  t = t || this._format;
771
- var n = !1, o = this._a < 1 && this._a >= 0, a = !r && o && (t === "hex" || t === "hex6" || t === "hex3" || t === "hex4" || t === "hex8" || t === "name");
772
- return a ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
511
+ var n = !1, a = this._a < 1 && this._a >= 0, o = !r && a && (t === "hex" || t === "hex6" || t === "hex3" || t === "hex4" || t === "hex8" || t === "name");
512
+ return o ? t === "name" && this._a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (n = this.toRgbString()), t === "prgb" && (n = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (n = this.toHexString()), t === "hex3" && (n = this.toHexString(!0)), t === "hex4" && (n = this.toHex8String(!0)), t === "hex8" && (n = this.toHex8String()), t === "name" && (n = this.toName()), t === "hsl" && (n = this.toHslString()), t === "hsv" && (n = this.toHsvString()), n || this.toHexString());
773
513
  },
774
514
  clone: function() {
775
- return h(this.toString());
515
+ return p(this.toString());
776
516
  },
777
517
  _applyModification: function(t, r) {
778
518
  var n = t.apply(null, [this].concat([].slice.call(r)));
779
519
  return this._r = n._r, this._g = n._g, this._b = n._b, this.setAlpha(n._a), this;
780
520
  },
781
521
  lighten: function() {
782
- return this._applyModification(Jt, arguments);
522
+ return this._applyModification(Yt, arguments);
783
523
  },
784
524
  brighten: function() {
785
- return this._applyModification(er, arguments);
525
+ return this._applyModification(Zt, arguments);
786
526
  },
787
527
  darken: function() {
788
- return this._applyModification(tr, arguments);
528
+ return this._applyModification(Kt, arguments);
789
529
  },
790
530
  desaturate: function() {
791
- return this._applyModification(Kt, arguments);
531
+ return this._applyModification(Gt, arguments);
792
532
  },
793
533
  saturate: function() {
794
- return this._applyModification(Qt, arguments);
534
+ return this._applyModification(qt, arguments);
795
535
  },
796
536
  greyscale: function() {
797
- return this._applyModification(Zt, arguments);
537
+ return this._applyModification(Xt, arguments);
798
538
  },
799
539
  spin: function() {
800
- return this._applyModification(rr, arguments);
540
+ return this._applyModification(Qt, arguments);
801
541
  },
802
542
  _applyCombination: function(t, r) {
803
543
  return t.apply(null, [this].concat([].slice.call(r)));
804
544
  },
805
545
  analogous: function() {
806
- return this._applyCombination(ar, arguments);
546
+ return this._applyCombination(tr, arguments);
807
547
  },
808
548
  complement: function() {
809
- return this._applyCombination(nr, arguments);
549
+ return this._applyCombination(Jt, arguments);
810
550
  },
811
551
  monochromatic: function() {
812
- return this._applyCombination(sr, arguments);
552
+ return this._applyCombination(rr, arguments);
813
553
  },
814
554
  splitcomplement: function() {
815
- return this._applyCombination(or, arguments);
555
+ return this._applyCombination(er, arguments);
816
556
  },
817
557
  // Disabled until https://github.com/bgrins/TinyColor/issues/254
818
558
  // polyad: function (number) {
819
559
  // return this._applyCombination(polyad, [number]);
820
560
  // },
821
561
  triad: function() {
822
- return this._applyCombination(Ue, [3]);
562
+ return this._applyCombination(qe, [3]);
823
563
  },
824
564
  tetrad: function() {
825
- return this._applyCombination(Ue, [4]);
565
+ return this._applyCombination(qe, [4]);
826
566
  }
827
567
  };
828
- h.fromRatio = function(e, t) {
829
- if (ve(e) == "object") {
568
+ p.fromRatio = function(e, t) {
569
+ if (_e(e) == "object") {
830
570
  var r = {};
831
571
  for (var n in e)
832
- e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = ue(e[n]));
572
+ e.hasOwnProperty(n) && (n === "a" ? r[n] = e[n] : r[n] = he(e[n]));
833
573
  e = r;
834
574
  }
835
- return h(e, t);
575
+ return p(e, t);
836
576
  };
837
- function Gt(e) {
577
+ function Ft(e) {
838
578
  var t = {
839
579
  r: 0,
840
580
  g: 0,
841
581
  b: 0
842
- }, r = 1, n = null, o = null, a = null, s = !1, i = !1;
843
- return typeof e == "string" && (e = dr(e)), ve(e) == "object" && (W(e.r) && W(e.g) && W(e.b) ? (t = Ut(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : W(e.h) && W(e.s) && W(e.v) ? (n = ue(e.s), o = ue(e.v), t = qt(e.h, n, o), s = !0, i = "hsv") : W(e.h) && W(e.s) && W(e.l) && (n = ue(e.s), a = ue(e.l), t = Xt(e.h, n, a), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = rt(r), {
582
+ }, r = 1, n = null, a = null, o = null, s = !1, i = !1;
583
+ return typeof e == "string" && (e = ir(e)), _e(e) == "object" && (j(e.r) && j(e.g) && j(e.b) ? (t = Wt(e.r, e.g, e.b), s = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : j(e.h) && j(e.s) && j(e.v) ? (n = he(e.s), a = he(e.v), t = jt(e.h, n, a), s = !0, i = "hsv") : j(e.h) && j(e.s) && j(e.l) && (n = he(e.s), o = he(e.l), t = Lt(e.h, n, o), s = !0, i = "hsl"), e.hasOwnProperty("a") && (r = e.a)), r = nt(r), {
844
584
  ok: s,
845
585
  format: e.format || i,
846
586
  r: Math.min(255, Math.max(t.r, 0)),
@@ -849,230 +589,230 @@ function Gt(e) {
849
589
  a: r
850
590
  };
851
591
  }
852
- function Ut(e, t, r) {
592
+ function Wt(e, t, r) {
853
593
  return {
854
- r: x(e, 255) * 255,
855
- g: x(t, 255) * 255,
856
- b: x(r, 255) * 255
594
+ r: S(e, 255) * 255,
595
+ g: S(t, 255) * 255,
596
+ b: S(r, 255) * 255
857
597
  };
858
598
  }
859
599
  function Le(e, t, r) {
860
- e = x(e, 255), t = x(t, 255), r = x(r, 255);
861
- var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = (n + o) / 2;
862
- if (n == o)
863
- a = s = 0;
600
+ e = S(e, 255), t = S(t, 255), r = S(r, 255);
601
+ var n = Math.max(e, t, r), a = Math.min(e, t, r), o, s, i = (n + a) / 2;
602
+ if (n == a)
603
+ o = s = 0;
864
604
  else {
865
- var c = n - o;
866
- switch (s = i > 0.5 ? c / (2 - n - o) : c / (n + o), n) {
605
+ var l = n - a;
606
+ switch (s = i > 0.5 ? l / (2 - n - a) : l / (n + a), n) {
867
607
  case e:
868
- a = (t - r) / c + (t < r ? 6 : 0);
608
+ o = (t - r) / l + (t < r ? 6 : 0);
869
609
  break;
870
610
  case t:
871
- a = (r - e) / c + 2;
611
+ o = (r - e) / l + 2;
872
612
  break;
873
613
  case r:
874
- a = (e - t) / c + 4;
614
+ o = (e - t) / l + 4;
875
615
  break;
876
616
  }
877
- a /= 6;
617
+ o /= 6;
878
618
  }
879
619
  return {
880
- h: a,
620
+ h: o,
881
621
  s,
882
622
  l: i
883
623
  };
884
624
  }
885
- function Xt(e, t, r) {
886
- var n, o, a;
887
- e = x(e, 360), t = x(t, 100), r = x(r, 100);
888
- function s(d, f, u) {
889
- return u < 0 && (u += 1), u > 1 && (u -= 1), u < 1 / 6 ? d + (f - d) * 6 * u : u < 1 / 2 ? f : u < 2 / 3 ? d + (f - d) * (2 / 3 - u) * 6 : d;
625
+ function Lt(e, t, r) {
626
+ var n, a, o;
627
+ e = S(e, 360), t = S(t, 100), r = S(r, 100);
628
+ function s(u, d, f) {
629
+ return f < 0 && (f += 1), f > 1 && (f -= 1), f < 1 / 6 ? u + (d - u) * 6 * f : f < 1 / 2 ? d : f < 2 / 3 ? u + (d - u) * (2 / 3 - f) * 6 : u;
890
630
  }
891
631
  if (t === 0)
892
- n = o = a = r;
632
+ n = a = o = r;
893
633
  else {
894
- var i = r < 0.5 ? r * (1 + t) : r + t - r * t, c = 2 * r - i;
895
- n = s(c, i, e + 1 / 3), o = s(c, i, e), a = s(c, i, e - 1 / 3);
634
+ var i = r < 0.5 ? r * (1 + t) : r + t - r * t, l = 2 * r - i;
635
+ n = s(l, i, e + 1 / 3), a = s(l, i, e), o = s(l, i, e - 1 / 3);
896
636
  }
897
637
  return {
898
638
  r: n * 255,
899
- g: o * 255,
900
- b: a * 255
639
+ g: a * 255,
640
+ b: o * 255
901
641
  };
902
642
  }
903
- function De(e, t, r) {
904
- e = x(e, 255), t = x(t, 255), r = x(r, 255);
905
- var n = Math.max(e, t, r), o = Math.min(e, t, r), a, s, i = n, c = n - o;
906
- if (s = n === 0 ? 0 : c / n, n == o)
907
- a = 0;
643
+ function je(e, t, r) {
644
+ e = S(e, 255), t = S(t, 255), r = S(r, 255);
645
+ var n = Math.max(e, t, r), a = Math.min(e, t, r), o, s, i = n, l = n - a;
646
+ if (s = n === 0 ? 0 : l / n, n == a)
647
+ o = 0;
908
648
  else {
909
649
  switch (n) {
910
650
  case e:
911
- a = (t - r) / c + (t < r ? 6 : 0);
651
+ o = (t - r) / l + (t < r ? 6 : 0);
912
652
  break;
913
653
  case t:
914
- a = (r - e) / c + 2;
654
+ o = (r - e) / l + 2;
915
655
  break;
916
656
  case r:
917
- a = (e - t) / c + 4;
657
+ o = (e - t) / l + 4;
918
658
  break;
919
659
  }
920
- a /= 6;
660
+ o /= 6;
921
661
  }
922
662
  return {
923
- h: a,
663
+ h: o,
924
664
  s,
925
665
  v: i
926
666
  };
927
667
  }
928
- function qt(e, t, r) {
929
- e = x(e, 360) * 6, t = x(t, 100), r = x(r, 100);
930
- var n = Math.floor(e), o = e - n, a = r * (1 - t), s = r * (1 - o * t), i = r * (1 - (1 - o) * t), c = n % 6, d = [r, s, a, a, i, r][c], f = [i, r, r, s, a, a][c], u = [a, a, i, r, r, s][c];
668
+ function jt(e, t, r) {
669
+ e = S(e, 360) * 6, t = S(t, 100), r = S(r, 100);
670
+ var n = Math.floor(e), a = e - n, o = r * (1 - t), s = r * (1 - a * t), i = r * (1 - (1 - a) * t), l = n % 6, u = [r, s, o, o, i, r][l], d = [i, r, r, s, o, o][l], f = [o, o, i, r, r, s][l];
931
671
  return {
932
- r: d * 255,
933
- g: f * 255,
934
- b: u * 255
672
+ r: u * 255,
673
+ g: d * 255,
674
+ b: f * 255
935
675
  };
936
676
  }
937
- function je(e, t, r, n) {
938
- var o = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
939
- return n && 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[0].charAt(0) + o[1].charAt(0) + o[2].charAt(0) : o.join("");
677
+ function Ue(e, t, r, n) {
678
+ var a = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
679
+ 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("");
940
680
  }
941
- function Yt(e, t, r, n, o) {
942
- var a = [V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16)), V(nt(n))];
943
- return o && 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[3].charAt(0) == a[3].charAt(1) ? a[0].charAt(0) + a[1].charAt(0) + a[2].charAt(0) + a[3].charAt(0) : a.join("");
681
+ function Ut(e, t, r, n, a) {
682
+ var o = [D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16)), D(ot(n))];
683
+ 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("");
944
684
  }
945
685
  function Ge(e, t, r, n) {
946
- var o = [V(nt(n)), V(Math.round(e).toString(16)), V(Math.round(t).toString(16)), V(Math.round(r).toString(16))];
947
- return o.join("");
686
+ var a = [D(ot(n)), D(Math.round(e).toString(16)), D(Math.round(t).toString(16)), D(Math.round(r).toString(16))];
687
+ return a.join("");
948
688
  }
949
- h.equals = function(e, t) {
950
- return !e || !t ? !1 : h(e).toRgbString() == h(t).toRgbString();
689
+ p.equals = function(e, t) {
690
+ return !e || !t ? !1 : p(e).toRgbString() == p(t).toRgbString();
951
691
  };
952
- h.random = function() {
953
- return h.fromRatio({
692
+ p.random = function() {
693
+ return p.fromRatio({
954
694
  r: Math.random(),
955
695
  g: Math.random(),
956
696
  b: Math.random()
957
697
  });
958
698
  };
959
- function Kt(e, t) {
699
+ function Gt(e, t) {
960
700
  t = t === 0 ? 0 : t || 10;
961
- var r = h(e).toHsl();
962
- return r.s -= t / 100, r.s = ke(r.s), h(r);
701
+ var r = p(e).toHsl();
702
+ return r.s -= t / 100, r.s = Se(r.s), p(r);
963
703
  }
964
- function Qt(e, t) {
704
+ function qt(e, t) {
965
705
  t = t === 0 ? 0 : t || 10;
966
- var r = h(e).toHsl();
967
- return r.s += t / 100, r.s = ke(r.s), h(r);
706
+ var r = p(e).toHsl();
707
+ return r.s += t / 100, r.s = Se(r.s), p(r);
968
708
  }
969
- function Zt(e) {
970
- return h(e).desaturate(100);
709
+ function Xt(e) {
710
+ return p(e).desaturate(100);
971
711
  }
972
- function Jt(e, t) {
712
+ function Yt(e, t) {
973
713
  t = t === 0 ? 0 : t || 10;
974
- var r = h(e).toHsl();
975
- return r.l += t / 100, r.l = ke(r.l), h(r);
714
+ var r = p(e).toHsl();
715
+ return r.l += t / 100, r.l = Se(r.l), p(r);
976
716
  }
977
- function er(e, t) {
717
+ function Zt(e, t) {
978
718
  t = t === 0 ? 0 : t || 10;
979
- var r = h(e).toRgb();
980
- return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), h(r);
719
+ var r = p(e).toRgb();
720
+ return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), p(r);
981
721
  }
982
- function tr(e, t) {
722
+ function Kt(e, t) {
983
723
  t = t === 0 ? 0 : t || 10;
984
- var r = h(e).toHsl();
985
- return r.l -= t / 100, r.l = ke(r.l), h(r);
724
+ var r = p(e).toHsl();
725
+ return r.l -= t / 100, r.l = Se(r.l), p(r);
986
726
  }
987
- function rr(e, t) {
988
- var r = h(e).toHsl(), n = (r.h + t) % 360;
989
- return r.h = n < 0 ? 360 + n : n, h(r);
727
+ function Qt(e, t) {
728
+ var r = p(e).toHsl(), n = (r.h + t) % 360;
729
+ return r.h = n < 0 ? 360 + n : n, p(r);
990
730
  }
991
- function nr(e) {
992
- var t = h(e).toHsl();
993
- return t.h = (t.h + 180) % 360, h(t);
731
+ function Jt(e) {
732
+ var t = p(e).toHsl();
733
+ return t.h = (t.h + 180) % 360, p(t);
994
734
  }
995
- function Ue(e, t) {
735
+ function qe(e, t) {
996
736
  if (isNaN(t) || t <= 0)
997
737
  throw new Error("Argument to polyad must be a positive number");
998
- for (var r = h(e).toHsl(), n = [h(e)], o = 360 / t, a = 1; a < t; a++)
999
- n.push(h({
1000
- h: (r.h + a * o) % 360,
738
+ for (var r = p(e).toHsl(), n = [p(e)], a = 360 / t, o = 1; o < t; o++)
739
+ n.push(p({
740
+ h: (r.h + o * a) % 360,
1001
741
  s: r.s,
1002
742
  l: r.l
1003
743
  }));
1004
744
  return n;
1005
745
  }
1006
- function or(e) {
1007
- var t = h(e).toHsl(), r = t.h;
1008
- return [h(e), h({
746
+ function er(e) {
747
+ var t = p(e).toHsl(), r = t.h;
748
+ return [p(e), p({
1009
749
  h: (r + 72) % 360,
1010
750
  s: t.s,
1011
751
  l: t.l
1012
- }), h({
752
+ }), p({
1013
753
  h: (r + 216) % 360,
1014
754
  s: t.s,
1015
755
  l: t.l
1016
756
  })];
1017
757
  }
1018
- function ar(e, t, r) {
758
+ function tr(e, t, r) {
1019
759
  t = t || 6, r = r || 30;
1020
- var n = h(e).toHsl(), o = 360 / r, a = [h(e)];
1021
- for (n.h = (n.h - (o * t >> 1) + 720) % 360; --t; )
1022
- n.h = (n.h + o) % 360, a.push(h(n));
1023
- return a;
760
+ var n = p(e).toHsl(), a = 360 / r, o = [p(e)];
761
+ for (n.h = (n.h - (a * t >> 1) + 720) % 360; --t; )
762
+ n.h = (n.h + a) % 360, o.push(p(n));
763
+ return o;
1024
764
  }
1025
- function sr(e, t) {
765
+ function rr(e, t) {
1026
766
  t = t || 6;
1027
- for (var r = h(e).toHsv(), n = r.h, o = r.s, a = r.v, s = [], i = 1 / t; t--; )
1028
- s.push(h({
767
+ for (var r = p(e).toHsv(), n = r.h, a = r.s, o = r.v, s = [], i = 1 / t; t--; )
768
+ s.push(p({
1029
769
  h: n,
1030
- s: o,
1031
- v: a
1032
- })), a = (a + i) % 1;
770
+ s: a,
771
+ v: o
772
+ })), o = (o + i) % 1;
1033
773
  return s;
1034
774
  }
1035
- h.mix = function(e, t, r) {
775
+ p.mix = function(e, t, r) {
1036
776
  r = r === 0 ? 0 : r || 50;
1037
- var n = h(e).toRgb(), o = h(t).toRgb(), a = r / 100, s = {
1038
- r: (o.r - n.r) * a + n.r,
1039
- g: (o.g - n.g) * a + n.g,
1040
- b: (o.b - n.b) * a + n.b,
1041
- a: (o.a - n.a) * a + n.a
777
+ var n = p(e).toRgb(), a = p(t).toRgb(), o = r / 100, s = {
778
+ r: (a.r - n.r) * o + n.r,
779
+ g: (a.g - n.g) * o + n.g,
780
+ b: (a.b - n.b) * o + n.b,
781
+ a: (a.a - n.a) * o + n.a
1042
782
  };
1043
- return h(s);
783
+ return p(s);
1044
784
  };
1045
- h.readability = function(e, t) {
1046
- var r = h(e), n = h(t);
785
+ p.readability = function(e, t) {
786
+ var r = p(e), n = p(t);
1047
787
  return (Math.max(r.getLuminance(), n.getLuminance()) + 0.05) / (Math.min(r.getLuminance(), n.getLuminance()) + 0.05);
1048
788
  };
1049
- h.isReadable = function(e, t, r) {
1050
- var n = h.readability(e, t), o, a;
1051
- switch (a = !1, o = fr(r), o.level + o.size) {
789
+ p.isReadable = function(e, t, r) {
790
+ var n = p.readability(e, t), a, o;
791
+ switch (o = !1, a = lr(r), a.level + a.size) {
1052
792
  case "AAsmall":
1053
793
  case "AAAlarge":
1054
- a = n >= 4.5;
794
+ o = n >= 4.5;
1055
795
  break;
1056
796
  case "AAlarge":
1057
- a = n >= 3;
797
+ o = n >= 3;
1058
798
  break;
1059
799
  case "AAAsmall":
1060
- a = n >= 7;
800
+ o = n >= 7;
1061
801
  break;
1062
802
  }
1063
- return a;
803
+ return o;
1064
804
  };
1065
- h.mostReadable = function(e, t, r) {
1066
- var n = null, o = 0, a, s, i, c;
1067
- r = r || {}, s = r.includeFallbackColors, i = r.level, c = r.size;
1068
- for (var d = 0; d < t.length; d++)
1069
- a = h.readability(e, t[d]), a > o && (o = a, n = h(t[d]));
1070
- return h.isReadable(e, n, {
805
+ p.mostReadable = function(e, t, r) {
806
+ var n = null, a = 0, o, s, i, l;
807
+ r = r || {}, s = r.includeFallbackColors, i = r.level, l = r.size;
808
+ for (var u = 0; u < t.length; u++)
809
+ o = p.readability(e, t[u]), o > a && (a = o, n = p(t[u]));
810
+ return p.isReadable(e, n, {
1071
811
  level: i,
1072
- size: c
1073
- }) || !s ? n : (r.includeFallbackColors = !1, h.mostReadable(e, ["#fff", "#000"], r));
812
+ size: l
813
+ }) || !s ? n : (r.includeFallbackColors = !1, p.mostReadable(e, ["#fff", "#000"], r));
1074
814
  };
1075
- var $e = h.names = {
815
+ var ze = p.names = {
1076
816
  aliceblue: "f0f8ff",
1077
817
  antiquewhite: "faebd7",
1078
818
  aqua: "0ff",
@@ -1222,69 +962,69 @@ var $e = h.names = {
1222
962
  whitesmoke: "f5f5f5",
1223
963
  yellow: "ff0",
1224
964
  yellowgreen: "9acd32"
1225
- }, ir = h.hexNames = lr($e);
1226
- function lr(e) {
965
+ }, nr = p.hexNames = or(ze);
966
+ function or(e) {
1227
967
  var t = {};
1228
968
  for (var r in e)
1229
969
  e.hasOwnProperty(r) && (t[e[r]] = r);
1230
970
  return t;
1231
971
  }
1232
- function rt(e) {
972
+ function nt(e) {
1233
973
  return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
1234
974
  }
1235
- function x(e, t) {
1236
- cr(e) && (e = "100%");
1237
- var r = ur(e);
975
+ function S(e, t) {
976
+ ar(e) && (e = "100%");
977
+ var r = sr(e);
1238
978
  return e = Math.min(t, Math.max(0, parseFloat(e))), r && (e = parseInt(e * t, 10) / 100), Math.abs(e - t) < 1e-6 ? 1 : e % t / parseFloat(t);
1239
979
  }
1240
- function ke(e) {
980
+ function Se(e) {
1241
981
  return Math.min(1, Math.max(0, e));
1242
982
  }
1243
- function N(e) {
983
+ function I(e) {
1244
984
  return parseInt(e, 16);
1245
985
  }
1246
- function cr(e) {
986
+ function ar(e) {
1247
987
  return typeof e == "string" && e.indexOf(".") != -1 && parseFloat(e) === 1;
1248
988
  }
1249
- function ur(e) {
989
+ function sr(e) {
1250
990
  return typeof e == "string" && e.indexOf("%") != -1;
1251
991
  }
1252
- function V(e) {
992
+ function D(e) {
1253
993
  return e.length == 1 ? "0" + e : "" + e;
1254
994
  }
1255
- function ue(e) {
995
+ function he(e) {
1256
996
  return e <= 1 && (e = e * 100 + "%"), e;
1257
997
  }
1258
- function nt(e) {
998
+ function ot(e) {
1259
999
  return Math.round(parseFloat(e) * 255).toString(16);
1260
1000
  }
1261
1001
  function Xe(e) {
1262
- return N(e) / 255;
1002
+ return I(e) / 255;
1263
1003
  }
1264
- var B = function() {
1265
- var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", o = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1004
+ var V = function() {
1005
+ var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", a = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
1266
1006
  return {
1267
1007
  CSS_UNIT: new RegExp(r),
1268
1008
  rgb: new RegExp("rgb" + n),
1269
- rgba: new RegExp("rgba" + o),
1009
+ rgba: new RegExp("rgba" + a),
1270
1010
  hsl: new RegExp("hsl" + n),
1271
- hsla: new RegExp("hsla" + o),
1011
+ hsla: new RegExp("hsla" + a),
1272
1012
  hsv: new RegExp("hsv" + n),
1273
- hsva: new RegExp("hsva" + o),
1013
+ hsva: new RegExp("hsva" + a),
1274
1014
  hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1275
1015
  hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
1276
1016
  hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
1277
1017
  hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
1278
1018
  };
1279
1019
  }();
1280
- function W(e) {
1281
- return !!B.CSS_UNIT.exec(e);
1020
+ function j(e) {
1021
+ return !!V.CSS_UNIT.exec(e);
1282
1022
  }
1283
- function dr(e) {
1284
- e = e.replace(Dt, "").replace(jt, "").toLowerCase();
1023
+ function ir(e) {
1024
+ e = e.replace(Vt, "").replace(Dt, "").toLowerCase();
1285
1025
  var t = !1;
1286
- if ($e[e])
1287
- e = $e[e], t = !0;
1026
+ if (ze[e])
1027
+ e = ze[e], t = !0;
1288
1028
  else if (e == "transparent")
1289
1029
  return {
1290
1030
  r: 0,
@@ -1294,58 +1034,58 @@ function dr(e) {
1294
1034
  format: "name"
1295
1035
  };
1296
1036
  var r;
1297
- return (r = B.rgb.exec(e)) ? {
1037
+ return (r = V.rgb.exec(e)) ? {
1298
1038
  r: r[1],
1299
1039
  g: r[2],
1300
1040
  b: r[3]
1301
- } : (r = B.rgba.exec(e)) ? {
1041
+ } : (r = V.rgba.exec(e)) ? {
1302
1042
  r: r[1],
1303
1043
  g: r[2],
1304
1044
  b: r[3],
1305
1045
  a: r[4]
1306
- } : (r = B.hsl.exec(e)) ? {
1046
+ } : (r = V.hsl.exec(e)) ? {
1307
1047
  h: r[1],
1308
1048
  s: r[2],
1309
1049
  l: r[3]
1310
- } : (r = B.hsla.exec(e)) ? {
1050
+ } : (r = V.hsla.exec(e)) ? {
1311
1051
  h: r[1],
1312
1052
  s: r[2],
1313
1053
  l: r[3],
1314
1054
  a: r[4]
1315
- } : (r = B.hsv.exec(e)) ? {
1055
+ } : (r = V.hsv.exec(e)) ? {
1316
1056
  h: r[1],
1317
1057
  s: r[2],
1318
1058
  v: r[3]
1319
- } : (r = B.hsva.exec(e)) ? {
1059
+ } : (r = V.hsva.exec(e)) ? {
1320
1060
  h: r[1],
1321
1061
  s: r[2],
1322
1062
  v: r[3],
1323
1063
  a: r[4]
1324
- } : (r = B.hex8.exec(e)) ? {
1325
- r: N(r[1]),
1326
- g: N(r[2]),
1327
- b: N(r[3]),
1064
+ } : (r = V.hex8.exec(e)) ? {
1065
+ r: I(r[1]),
1066
+ g: I(r[2]),
1067
+ b: I(r[3]),
1328
1068
  a: Xe(r[4]),
1329
1069
  format: t ? "name" : "hex8"
1330
- } : (r = B.hex6.exec(e)) ? {
1331
- r: N(r[1]),
1332
- g: N(r[2]),
1333
- b: N(r[3]),
1070
+ } : (r = V.hex6.exec(e)) ? {
1071
+ r: I(r[1]),
1072
+ g: I(r[2]),
1073
+ b: I(r[3]),
1334
1074
  format: t ? "name" : "hex"
1335
- } : (r = B.hex4.exec(e)) ? {
1336
- r: N(r[1] + "" + r[1]),
1337
- g: N(r[2] + "" + r[2]),
1338
- b: N(r[3] + "" + r[3]),
1075
+ } : (r = V.hex4.exec(e)) ? {
1076
+ r: I(r[1] + "" + r[1]),
1077
+ g: I(r[2] + "" + r[2]),
1078
+ b: I(r[3] + "" + r[3]),
1339
1079
  a: Xe(r[4] + "" + r[4]),
1340
1080
  format: t ? "name" : "hex8"
1341
- } : (r = B.hex3.exec(e)) ? {
1342
- r: N(r[1] + "" + r[1]),
1343
- g: N(r[2] + "" + r[2]),
1344
- b: N(r[3] + "" + r[3]),
1081
+ } : (r = V.hex3.exec(e)) ? {
1082
+ r: I(r[1] + "" + r[1]),
1083
+ g: I(r[2] + "" + r[2]),
1084
+ b: I(r[3] + "" + r[3]),
1345
1085
  format: t ? "name" : "hex"
1346
1086
  } : !1;
1347
1087
  }
1348
- function fr(e) {
1088
+ function lr(e) {
1349
1089
  var t, r;
1350
1090
  return e = e || {
1351
1091
  level: "AA",
@@ -1355,50 +1095,10 @@ function fr(e) {
1355
1095
  size: r
1356
1096
  };
1357
1097
  }
1358
- const ot = {
1359
- primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
1360
- secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
1361
- tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
1362
- error: ["#ffeaea", "#fcd5d5", "#f2a8a9", "#ea7a7a", "#e25353", "#de3939", "#dd2b2b", "#c41e1f", "#af171a", "#9a0913", "#450a0a"],
1363
- surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#121212"]
1364
- }, Te = {
1365
- name: "dark",
1366
- scheme: "dark",
1367
- colors: ot
1368
- }, hr = {
1369
- name: "light",
1370
- scheme: "light",
1371
- colors: ot
1372
- }, nn = Symbol("Notifications"), at = vt([]);
1373
- function pr() {
1374
- return at;
1375
- }
1376
- class on {
1377
- static show(t) {
1378
- t.hash = Math.random().toString(36), at.push(t);
1379
- }
1380
- }
1381
- const ze = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28], qe = [0.32, 0.16, 0.08, 0.04, 0, 0, 0.04, 0.08, 0.16, 0.32, 0.64];
1382
- function mr(e) {
1383
- const t = h(e).toHsl().l;
1384
- return ze.reduce(
1385
- (r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
1386
- );
1387
- }
1388
- function gr(e) {
1389
- const t = h(e), r = mr(t), n = ze.findIndex((a) => a === r), o = ze.map((a) => {
1390
- const s = h({ h: t.toHsl().h, s: t.toHsl().s, l: a }), i = qe[n] - qe[n];
1391
- return i >= 0 ? s.saturate(i * 100) : s.desaturate(i * -100), s;
1392
- });
1393
- return { baseColorIndex: n, colors: o.map((a) => a.toHexString()) };
1394
- }
1395
- function an(e) {
1396
- return gr(e).colors;
1397
- }
1398
- function br() {
1098
+ function cr() {
1399
1099
  if (typeof window > "u")
1400
- return v("dark");
1401
- const e = v(document.documentElement.dataset.scheme);
1100
+ return g("dark");
1101
+ const e = g(document.documentElement.dataset.scheme);
1402
1102
  return new MutationObserver((r) => {
1403
1103
  r.forEach((n) => {
1404
1104
  n.type === "attributes" && n.attributeName === "data-scheme" && (e.value = document.documentElement.dataset.scheme);
@@ -1408,37 +1108,37 @@ function br() {
1408
1108
  attributeFilter: ["data-scheme"]
1409
1109
  }), e;
1410
1110
  }
1411
- function sn() {
1412
- return et("currentThemeScheme", null);
1111
+ function En() {
1112
+ return Qe("currentThemeScheme", null);
1413
1113
  }
1414
- function vr() {
1415
- return et("currentTheme", v(Te));
1114
+ function ur() {
1115
+ return Qe("currentTheme", g(Oe));
1416
1116
  }
1417
- function st(e, t = !0) {
1418
- const r = v(e), n = v(e.scheme), o = br();
1419
- X(() => {
1420
- o.value && (n.value = o.value);
1421
- }), Fe("currentTheme", r), Fe("currentThemeScheme", n);
1117
+ function at(e, t = !0) {
1118
+ const r = g(e), n = g(e.scheme), a = cr();
1119
+ G(() => {
1120
+ a.value && (n.value = a.value);
1121
+ }), We("currentTheme", r), We("currentThemeScheme", n);
1422
1122
  const s = {
1423
- ...Object.keys(r.value.colors).map((f) => {
1424
- const u = f;
1425
- return r.value.colors[u].reduce((b, k, S) => {
1426
- const C = h(k).toRgb();
1427
- return b[`--r-color-${u}-${S}`] = `${C.r} ${C.g} ${C.b}`, b;
1123
+ ...Object.keys(r.value.colors).map((u) => {
1124
+ const d = u;
1125
+ return r.value.colors[d].reduce((h, w, C) => {
1126
+ const M = p(w).toRgb();
1127
+ return h[`--r-color-${d}-${C}`] = `${M.r} ${M.g} ${M.b}`, h;
1428
1128
  }, {});
1429
- }).reduce((f, u) => ({
1430
- ...f,
1431
- ...u
1129
+ }).reduce((u, d) => ({
1130
+ ...u,
1131
+ ...d
1432
1132
  }), {})
1433
1133
  }, i = {
1434
- "color-scheme": n.value,
1435
1134
  "font-family": "'Roboto', sans-serif",
1436
1135
  "background-color": "rgb(var(--r-color-surface-lowest))",
1437
1136
  color: "rgb(var(--r-color-surface-on))"
1438
- }, c = m(() => {
1137
+ }, l = v(() => {
1439
1138
  if (t)
1440
1139
  return {};
1441
- switch (e.scheme) {
1140
+ const { scheme: u } = e;
1141
+ switch (u) {
1442
1142
  case "dark":
1443
1143
  return {
1444
1144
  colorScheme: "dark",
@@ -1496,220 +1196,661 @@ function st(e, t = !0) {
1496
1196
  return {
1497
1197
  ...s,
1498
1198
  ...i,
1499
- ...c.value
1199
+ ...l.value
1500
1200
  };
1501
1201
  }
1502
- const ln = /* @__PURE__ */ $({
1503
- __name: "RokuProvider",
1202
+ function st(e) {
1203
+ const t = g("");
1204
+ return ee(() => {
1205
+ e.id ? t.value = e.id : t.value = `switch-${Math.random().toString(36).slice(2)}-${Date.now().toString(36)}`;
1206
+ }), t;
1207
+ }
1208
+ const dr = ["id"], fr = ["for"], On = /* @__PURE__ */ x({
1209
+ __name: "ColorInput",
1504
1210
  props: {
1505
- is: { default: "div" },
1506
- theme: { default() {
1507
- return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Te : hr;
1508
- } }
1211
+ modelValue: {},
1212
+ modelModifiers: {}
1509
1213
  },
1214
+ emits: ["update:modelValue"],
1510
1215
  setup(e) {
1511
- const t = e, r = v(0), n = v(0);
1512
- be && new ResizeObserver(() => {
1513
- const i = window.innerWidth - document.body.clientWidth;
1514
- i !== 0 && (r.value = i), n.value = i;
1515
- }).observe(document.body);
1516
- const o = m(() => n.value === r.value ? "0px" : `${r.value}px`), a = st(t.theme);
1517
- return (s, i) => (g(), D(_e(s.is), {
1518
- style: T([
1519
- l(a),
1520
- { paddingRight: l(o) }
1521
- ]),
1522
- class: "text-surface-on transition-background-color,border-color,color"
1523
- }, {
1524
- default: J(() => [
1525
- H(s.$slots, "default")
1526
- ]),
1527
- _: 3
1528
- }, 8, ["style"]));
1216
+ const t = K(e, "modelValue"), r = bt(), n = st(r), a = g(null);
1217
+ return (o, s) => {
1218
+ const i = Ht;
1219
+ return m(), b("div", null, [
1220
+ Ie(_("input", {
1221
+ id: c(n),
1222
+ ref_key: "input",
1223
+ ref: a,
1224
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => t.value = l),
1225
+ type: "color",
1226
+ class: "absolute opacity-0 pointer-events-none"
1227
+ }, null, 8, dr), [
1228
+ [gt, t.value]
1229
+ ]),
1230
+ _("label", { for: c(n) }, [
1231
+ ve(i, {
1232
+ class: "cursor-pointer",
1233
+ color: t.value ?? "#222"
1234
+ }, null, 8, ["color"])
1235
+ ], 8, fr)
1236
+ ]);
1237
+ };
1529
1238
  }
1530
- }), yr = { class: "w-full flex items-center" }, wr = ["placeholder", "value"], _r = /* @__PURE__ */ M("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), xr = {
1531
- key: 0,
1532
- class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
1533
- }, kr = ["onPointerdown", "onHover"], Mr = { key: 0 }, Sr = /* @__PURE__ */ M("i", { class: "i-tabler-check h-3 w-3" }, null, -1), Ar = [
1534
- Sr
1535
- ], cn = /* @__PURE__ */ $({
1536
- __name: "Select",
1537
- props: /* @__PURE__ */ ee({
1538
- options: { default() {
1539
- return [];
1540
- } },
1541
- size: { default: "md" },
1542
- noneText: { default: "No options" },
1543
- placeholder: { default: "" }
1239
+ }), pr = ["data-scheme", "data-theme"], hr = /* @__PURE__ */ x({
1240
+ __name: "ThemeProvider",
1241
+ props: {
1242
+ theme: {}
1243
+ },
1244
+ setup(e) {
1245
+ const r = at(e.theme, !1);
1246
+ return (n, a) => (m(), b("div", {
1247
+ style: R([c(r)]),
1248
+ "data-scheme": n.theme.scheme,
1249
+ "data-theme": n.theme.name
1250
+ }, [
1251
+ $(n.$slots, "default")
1252
+ ], 12, pr));
1253
+ }
1254
+ }), it = /* @__PURE__ */ x({
1255
+ __name: "FullscreenOverlay",
1256
+ props: /* @__PURE__ */ Y({
1257
+ persistent: { type: Boolean, default: !1 },
1258
+ blur: { type: [String, Boolean], default: !1 },
1259
+ wrapperClass: {}
1544
1260
  }, {
1545
- modelValue: { default: void 0 },
1261
+ modelValue: { type: Boolean },
1546
1262
  modelModifiers: {}
1547
1263
  }),
1548
- emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
1549
- setup(e, { emit: t }) {
1550
- const r = e, n = t, o = me(e, "modelValue"), a = v(null), s = v(null), { focused: i } = It(a), c = m(() => r.options.map((_) => S(_)).indexOf(o.value)), d = v(-1), f = v(-1);
1551
- X(() => {
1552
- i.value || (f.value = -1);
1553
- }), X(() => {
1554
- o.value = S(r.options[c.value]);
1555
- }), ie(o, () => {
1556
- n("change", o.value);
1557
- });
1558
- const u = r.options, p = m(() => u[c.value]), b = m(() => k(p.value));
1559
- function k(_) {
1560
- if (_)
1561
- return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.label;
1562
- }
1563
- function S(_) {
1564
- if (_)
1565
- return typeof _ == "string" || typeof _ == "symbol" || typeof _ == "number" ? _ : _.id;
1566
- }
1567
- Ae("ArrowDown", (_) => {
1568
- i.value && (_.preventDefault(), f.value = (f.value + 1) % u.length);
1569
- }), Ae("ArrowUp", (_) => {
1570
- i.value && (_.preventDefault(), f.value = (f.value - 1 + u.length) % u.length);
1571
- }), Ae("Enter", () => {
1572
- i.value && f.value !== -1 && (o.value = S(u[f.value]), i.value = !1);
1573
- });
1574
- function C(_) {
1575
- if (!i.value) {
1576
- i.value = !0;
1577
- return;
1578
- }
1579
- o.value = S(_), i.value = !1;
1264
+ emits: ["update:modelValue"],
1265
+ setup(e) {
1266
+ const t = e, r = K(e, "modelValue"), n = g(null);
1267
+ function a(i) {
1268
+ t.persistent || i.target === n.value && (r.value = !1);
1580
1269
  }
1581
- const le = m(() => ({
1582
- input: "container-base focus:border-primary-container"
1583
- })), ce = m(() => {
1584
- switch (r.size) {
1270
+ const o = v(() => {
1271
+ switch (t.blur) {
1585
1272
  case "sm":
1586
- return {
1587
- wrapper: "h-6 w-full py-1 pl-1.5 pr-6 text-sm",
1588
- dropdown: "text-sm children:py-1"
1589
- };
1273
+ return "backdrop-blur-sm";
1274
+ case "md":
1275
+ case !0:
1276
+ return "backdrop-blur-md";
1590
1277
  case "lg":
1591
- return {
1592
- wrapper: "h-10 w-full py-2 pl-3 pr-10 text-lg",
1593
- dropdown: "text-lg children:py-2"
1594
- };
1278
+ return "backdrop-blur-lg";
1595
1279
  default:
1596
- return {
1597
- wrapper: "h-8 w-full py-1 pl-2 pr-8 text-base",
1598
- dropdown: "text-base children:py-1"
1599
- };
1280
+ return "";
1600
1281
  }
1601
1282
  });
1602
- return (_, O) => (g(), y("div", {
1603
- ref_key: "wrapperRef",
1604
- ref: s,
1605
- class: "r-select-wrapper relative"
1606
- }, [
1607
- M("div", yr, [
1608
- M("input", {
1609
- ref_key: "inputRef",
1610
- ref: a,
1611
- class: w([[l(le).input, l(ce).wrapper], "r-select-input cursor-pointer border rounded outline-none"]),
1612
- placeholder: _.placeholder,
1613
- readonly: "",
1614
- value: l(b),
1615
- "aria-haspopup": "listbox",
1616
- autocomplete: "off",
1617
- onFocus: O[0] || (O[0] = (j) => i.value = !0)
1618
- }, null, 42, wr),
1619
- _r
1620
- ]),
1621
- l(i) ? (g(), y("div", {
1622
- key: 0,
1623
- class: w([l(ce).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
1624
- }, [
1625
- l(u).length === 0 ? (g(), y("div", xr, re(_.noneText), 1)) : (g(!0), y(te, { key: 1 }, fe(l(u), (j, A) => (g(), y("div", {
1626
- key: S(j),
1627
- class: w([{
1628
- "hover:bg-surface-high": l(f) !== A,
1629
- "container-filled-primary": l(f) === A
1630
- }, "flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),
1631
- onPointerdown: (R) => C(j),
1632
- onHover: (R) => d.value = A
1633
- }, [
1634
- yt(re(k(j)) + " ", 1),
1635
- j === l(p) ? (g(), y("div", Mr, Ar)) : z("", !0)
1636
- ], 42, kr))), 128))
1637
- ], 2)) : z("", !0)
1638
- ], 512));
1283
+ G(() => {
1284
+ r.value ? document.body.style.overflow = "hidden" : setTimeout(() => {
1285
+ document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1286
+ }, 300);
1287
+ });
1288
+ const s = ur();
1289
+ return (i, l) => {
1290
+ const u = hr;
1291
+ return m(), O(yt, { to: "body" }, [
1292
+ ve(u, { theme: c(s) }, {
1293
+ default: L(() => [
1294
+ _("div", {
1295
+ ref_key: "wrapperRef",
1296
+ ref: n,
1297
+ class: y(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full bg-surface-lowest/50 transition-all duration-300 md:items-center", [o.value, i.wrapperClass, {
1298
+ "op0 pointer-events-none": !r.value,
1299
+ op100: r.value
1300
+ }]]),
1301
+ onClick: a
1302
+ }, [
1303
+ $(i.$slots, "default")
1304
+ ], 2)
1305
+ ]),
1306
+ _: 3
1307
+ }, 8, ["theme"])
1308
+ ]);
1309
+ };
1639
1310
  }
1640
- }), Cr = ["value", "placeholder", "type"], $r = /* @__PURE__ */ $({
1641
- __name: "TextField",
1642
- props: {
1643
- modelValue: {},
1644
- onChange: {},
1645
- color: { default: "primary" },
1646
- error: { type: Boolean },
1647
- disabled: { type: Boolean },
1648
- rounded: { default: "md" },
1649
- size: { default: "md" },
1650
- password: { type: Boolean },
1651
- placeholder: {}
1652
- },
1653
- emits: ["change", "update:modelValue", "input", "click", "pointerdown", "pointerup"],
1654
- setup(e, { expose: t, emit: r }) {
1655
- const n = e, o = r, a = m(() => {
1656
- switch (n.size) {
1657
- case "sm":
1658
- return {
1659
- base: "h-6 px-2 py-1 text-xs"
1660
- };
1661
- case "md":
1662
- return {
1663
- base: "h-8 px-3 py-1 text-sm"
1664
- };
1665
- case "lg":
1666
- return {
1667
- base: "h-10 px-4 py-2 text-base"
1668
- };
1669
- }
1670
- }), s = m(() => {
1671
- if (n.error)
1672
- return "text-error-container bg-surface-base border-error-container focus:border-error-container";
1673
- switch (n.color) {
1674
- case "secondary":
1675
- return "text-surface-on bg-surface-base border-surface-border-base focus:border-secondary-container";
1676
- case "tertiary":
1677
- return "text-surface-on bg-surface-base border-surface-border-base focus:border-tertiary-container";
1678
- case "error":
1679
- return "text-surface-on bg-surface-base border-surface-border-base focus:border-error-container";
1680
- case "primary":
1681
- default:
1682
- return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
1683
- }
1684
- }), i = m(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), c = ge(n), d = v(null);
1685
- function f(u) {
1686
- var p;
1687
- o("update:modelValue", ((p = u.target) == null ? void 0 : p.value) ?? ""), o("input", u);
1311
+ }), mr = { class: "flex justify-end p-4 md:px-6 md:py-4 md:pb-0" }, vr = /* @__PURE__ */ _("i", { class: "i-tabler-x" }, null, -1), br = { class: "flex flex-col items-center justify-center h-full px-4 md:px-6" }, Pn = /* @__PURE__ */ x({
1312
+ __name: "Drawer",
1313
+ props: /* @__PURE__ */ Y({
1314
+ persistent: { type: Boolean, default: !1 },
1315
+ blur: { type: [String, Boolean], default: !1 },
1316
+ position: { default: "left" }
1317
+ }, {
1318
+ modelValue: { type: Boolean },
1319
+ modelModifiers: {}
1320
+ }),
1321
+ emits: ["update:modelValue"],
1322
+ setup(e) {
1323
+ const t = e, r = K(e, "modelValue");
1324
+ return G(() => {
1325
+ r.value ? document.body.style.overflow = "hidden" : setTimeout(() => {
1326
+ document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1327
+ }, 300);
1328
+ }), (n, a) => {
1329
+ const o = rt, s = it;
1330
+ return m(), O(s, {
1331
+ modelValue: r.value,
1332
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => r.value = i),
1333
+ blur: t.blur,
1334
+ persistent: t.persistent
1335
+ }, {
1336
+ default: L(() => [
1337
+ ve(Je, {
1338
+ "enter-from-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
1339
+ "enter-to-class": (n.position === "left", "translate-x-0"),
1340
+ "leave-from-class": (n.position === "left", "translate-x-0"),
1341
+ "leave-to-class": n.position === "left" ? "-translate-x-1/1" : "translate-x-1/1",
1342
+ "enter-active-class": "transition ease-out duration-300",
1343
+ "leave-active-class": "transition ease-in duration-200"
1344
+ }, {
1345
+ default: L(() => [
1346
+ r.value ? (m(), b("div", {
1347
+ key: 0,
1348
+ class: y(["h-full bg-surface-low md:w-md w-full fixed", n.position === "left" ? "left-0" : "right-0"])
1349
+ }, [
1350
+ _("div", mr, [
1351
+ ve(o, {
1352
+ icon: "",
1353
+ variant: "transparent",
1354
+ class: "text-surface-on hover:text-surface-on",
1355
+ onPointerup: a[0] || (a[0] = (i) => r.value = !1)
1356
+ }, {
1357
+ default: L(() => [
1358
+ vr
1359
+ ]),
1360
+ _: 1
1361
+ })
1362
+ ]),
1363
+ _("div", br, [
1364
+ $(n.$slots, "default")
1365
+ ])
1366
+ ], 2)) : A("", !0)
1367
+ ]),
1368
+ _: 3
1369
+ }, 8, ["enter-from-class", "enter-to-class", "leave-from-class", "leave-to-class"])
1370
+ ]),
1371
+ _: 3
1372
+ }, 8, ["modelValue", "blur", "persistent"]);
1373
+ };
1374
+ }
1375
+ });
1376
+ function Me(e) {
1377
+ return wt() ? (_t(e), !0) : !1;
1378
+ }
1379
+ function gr() {
1380
+ const e = /* @__PURE__ */ new Set(), t = (a) => {
1381
+ e.delete(a);
1382
+ };
1383
+ return {
1384
+ on: (a) => {
1385
+ e.add(a);
1386
+ const o = () => t(a);
1387
+ return Me(o), {
1388
+ off: o
1389
+ };
1390
+ },
1391
+ off: t,
1392
+ trigger: (...a) => Promise.all(Array.from(e).map((o) => o(...a)))
1393
+ };
1394
+ }
1395
+ function Ne(e) {
1396
+ return typeof e == "function" ? e() : c(e);
1397
+ }
1398
+ const se = typeof window < "u" && typeof document < "u";
1399
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
1400
+ const yr = (e) => e != null, wr = Object.prototype.toString, _r = (e) => wr.call(e) === "[object Object]", xr = () => {
1401
+ }, kr = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
1402
+ function Sr(e) {
1403
+ return e || et();
1404
+ }
1405
+ function Mr(e, t = !0, r) {
1406
+ Sr() ? ee(e, r) : t ? e() : xt(e);
1407
+ }
1408
+ function Q(e) {
1409
+ var t;
1410
+ const r = Ne(e);
1411
+ return (t = r == null ? void 0 : r.$el) != null ? t : r;
1412
+ }
1413
+ const $e = se ? window : void 0, $r = se ? window.document : void 0;
1414
+ function F(...e) {
1415
+ let t, r, n, a;
1416
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([r, n, a] = e, t = $e) : [t, r, n, a] = e, !t)
1417
+ return xr;
1418
+ Array.isArray(r) || (r = [r]), Array.isArray(n) || (n = [n]);
1419
+ const o = [], s = () => {
1420
+ o.forEach((d) => d()), o.length = 0;
1421
+ }, i = (d, f, h, w) => (d.addEventListener(f, h, w), () => d.removeEventListener(f, h, w)), l = de(
1422
+ () => [Q(t), Ne(a)],
1423
+ ([d, f]) => {
1424
+ if (s(), !d)
1425
+ return;
1426
+ const h = _r(f) ? { ...f } : f;
1427
+ o.push(
1428
+ ...r.flatMap((w) => n.map((C) => i(d, w, C, h)))
1429
+ );
1430
+ },
1431
+ { immediate: !0, flush: "post" }
1432
+ ), u = () => {
1433
+ l(), s();
1434
+ };
1435
+ return Me(u), u;
1436
+ }
1437
+ function Cr(e) {
1438
+ return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
1439
+ }
1440
+ function Te(...e) {
1441
+ let t, r, n = {};
1442
+ 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]);
1443
+ const {
1444
+ target: a = $e,
1445
+ eventName: o = "keydown",
1446
+ passive: s = !1,
1447
+ dedupe: i = !1
1448
+ } = n, l = Cr(t);
1449
+ return F(a, o, (d) => {
1450
+ d.repeat && Ne(i) || l(d) && r(d);
1451
+ }, s);
1452
+ }
1453
+ function Ar() {
1454
+ const e = g(!1);
1455
+ return et() && ee(() => {
1456
+ e.value = !0;
1457
+ }), e;
1458
+ }
1459
+ function lt(e) {
1460
+ const t = Ar();
1461
+ return v(() => (t.value, !!e()));
1462
+ }
1463
+ function Tr(e, t, r = {}) {
1464
+ const { window: n = $e, ...a } = r;
1465
+ let o;
1466
+ const s = lt(() => n && "MutationObserver" in n), i = () => {
1467
+ o && (o.disconnect(), o = void 0);
1468
+ }, l = de(
1469
+ () => Q(e),
1470
+ (f) => {
1471
+ i(), s.value && n && f && (o = new MutationObserver(t), o.observe(f, a));
1472
+ },
1473
+ { immediate: !0 }
1474
+ ), u = () => o == null ? void 0 : o.takeRecords(), d = () => {
1475
+ i(), l();
1476
+ };
1477
+ return Me(d), {
1478
+ isSupported: s,
1479
+ stop: d,
1480
+ takeRecords: u
1481
+ };
1482
+ }
1483
+ function Rr(e, t = {}) {
1484
+ const r = g(!1), n = kt(null);
1485
+ let a = 0, o = !0;
1486
+ if (se) {
1487
+ const s = typeof t == "function" ? { onDrop: t } : t, i = (l) => {
1488
+ var u, d;
1489
+ const f = Array.from((d = (u = l.dataTransfer) == null ? void 0 : u.files) != null ? d : []);
1490
+ return n.value = f.length === 0 ? null : f;
1491
+ };
1492
+ F(e, "dragenter", (l) => {
1493
+ var u, d;
1494
+ const f = Array.from(((u = l == null ? void 0 : l.dataTransfer) == null ? void 0 : u.items) || []).map((h) => h.kind === "file" ? h.type : null).filter(yr);
1495
+ if (s.dataTypes && l.dataTransfer) {
1496
+ const h = c(s.dataTypes);
1497
+ if (o = typeof h == "function" ? h(f) : h ? h.some((w) => f.includes(w)) : !0, !o)
1498
+ return;
1499
+ }
1500
+ l.preventDefault(), a += 1, r.value = !0, (d = s.onEnter) == null || d.call(s, i(l), l);
1501
+ }), F(e, "dragover", (l) => {
1502
+ var u;
1503
+ o && (l.preventDefault(), (u = s.onOver) == null || u.call(s, i(l), l));
1504
+ }), F(e, "dragleave", (l) => {
1505
+ var u;
1506
+ o && (l.preventDefault(), a -= 1, a === 0 && (r.value = !1), (u = s.onLeave) == null || u.call(s, i(l), l));
1507
+ }), F(e, "drop", (l) => {
1508
+ var u;
1509
+ l.preventDefault(), a = 0, r.value = !1, (u = s.onDrop) == null || u.call(s, i(l), l);
1510
+ });
1511
+ }
1512
+ return {
1513
+ files: n,
1514
+ isOverDropZone: r
1515
+ };
1516
+ }
1517
+ function zr(e, t, r = {}) {
1518
+ const { window: n = $e, ...a } = r;
1519
+ let o;
1520
+ const s = lt(() => n && "ResizeObserver" in n), i = () => {
1521
+ o && (o.disconnect(), o = void 0);
1522
+ }, l = v(() => Array.isArray(e) ? e.map((f) => Q(f)) : [Q(e)]), u = de(
1523
+ l,
1524
+ (f) => {
1525
+ if (i(), s.value && n) {
1526
+ o = new ResizeObserver(t);
1527
+ for (const h of f)
1528
+ h && o.observe(h, a);
1529
+ }
1530
+ },
1531
+ { immediate: !0, flush: "post", deep: !0 }
1532
+ ), d = () => {
1533
+ i(), u();
1534
+ };
1535
+ return Me(d), {
1536
+ isSupported: s,
1537
+ stop: d
1538
+ };
1539
+ }
1540
+ function Br(e, t = {}) {
1541
+ const {
1542
+ reset: r = !0,
1543
+ windowResize: n = !0,
1544
+ windowScroll: a = !0,
1545
+ immediate: o = !0
1546
+ } = t, s = g(0), i = g(0), l = g(0), u = g(0), d = g(0), f = g(0), h = g(0), w = g(0);
1547
+ function C() {
1548
+ const M = Q(e);
1549
+ if (!M) {
1550
+ r && (s.value = 0, i.value = 0, l.value = 0, u.value = 0, d.value = 0, f.value = 0, h.value = 0, w.value = 0);
1551
+ return;
1688
1552
  }
1689
- return t({
1690
- el: d
1691
- }), (u, p) => (g(), y("input", {
1692
- ref_key: "input",
1693
- ref: d,
1694
- value: u.modelValue,
1695
- class: w(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [l(s), l(i), l(c).class, l(a).base]]),
1696
- style: T([l(c).style]),
1697
- placeholder: u.placeholder,
1698
- type: n.password ? "password" : "text",
1699
- onChange: p[0] || (p[0] = (b) => u.$emit("change", b)),
1700
- onInput: f,
1701
- onClick: p[1] || (p[1] = (b) => u.$emit("click", b)),
1702
- onPointerdown: p[2] || (p[2] = (b) => u.$emit("pointerdown", b)),
1703
- onPointerup: p[3] || (p[3] = (b) => u.$emit("pointerup", b))
1704
- }, null, 46, Cr));
1553
+ const P = M.getBoundingClientRect();
1554
+ s.value = P.height, i.value = P.bottom, l.value = P.left, u.value = P.right, d.value = P.top, f.value = P.width, h.value = P.x, w.value = P.y;
1555
+ }
1556
+ return zr(e, C), de(() => Q(e), (M) => !M && C()), Tr(e, C, {
1557
+ attributeFilter: ["style", "class"]
1558
+ }), a && F("scroll", C, { capture: !0, passive: !0 }), n && F("resize", C, { passive: !0 }), Mr(() => {
1559
+ o && C();
1560
+ }), {
1561
+ height: s,
1562
+ bottom: i,
1563
+ left: l,
1564
+ right: u,
1565
+ top: d,
1566
+ width: f,
1567
+ x: h,
1568
+ y: w,
1569
+ update: C
1570
+ };
1571
+ }
1572
+ const Er = {
1573
+ multiple: !0,
1574
+ accept: "*",
1575
+ reset: !1,
1576
+ directory: !1
1577
+ };
1578
+ function Or(e = {}) {
1579
+ const {
1580
+ document: t = $r
1581
+ } = e, r = g(null), { on: n, trigger: a } = gr();
1582
+ let o;
1583
+ t && (o = t.createElement("input"), o.type = "file", o.onchange = (l) => {
1584
+ const u = l.target;
1585
+ r.value = u.files, a(r.value);
1586
+ });
1587
+ const s = () => {
1588
+ r.value = null, o && (o.value = "", a(null));
1589
+ }, i = (l) => {
1590
+ if (!o)
1591
+ return;
1592
+ const u = {
1593
+ ...Er,
1594
+ ...e,
1595
+ ...l
1596
+ };
1597
+ o.multiple = u.multiple, o.accept = u.accept, o.webkitdirectory = u.directory, kr(u, "capture") && (o.capture = u.capture), u.reset && s(), o.click();
1598
+ };
1599
+ return {
1600
+ files: St(r),
1601
+ open: i,
1602
+ reset: s,
1603
+ onChange: n
1604
+ };
1605
+ }
1606
+ function Pr(e, t = {}) {
1607
+ const { initialValue: r = !1, focusVisible: n = !1 } = t, a = g(!1), o = v(() => Q(e));
1608
+ F(o, "focus", (i) => {
1609
+ var l, u;
1610
+ (!n || (u = (l = i.target).matches) != null && u.call(l, ":focus-visible")) && (a.value = !0);
1611
+ }), F(o, "blur", () => a.value = !1);
1612
+ const s = v({
1613
+ get: () => a.value,
1614
+ set(i) {
1615
+ var l, u;
1616
+ !i && a.value ? (l = o.value) == null || l.blur() : i && !a.value && ((u = o.value) == null || u.focus());
1617
+ }
1618
+ });
1619
+ return de(
1620
+ o,
1621
+ () => {
1622
+ s.value = r;
1623
+ },
1624
+ { immediate: !0, flush: "post" }
1625
+ ), { focused: s };
1626
+ }
1627
+ const In = /* @__PURE__ */ x({
1628
+ __name: "Dropzone",
1629
+ props: {
1630
+ dashed: { type: Boolean, default: !0 },
1631
+ accept: { default: "*" }
1632
+ },
1633
+ emits: ["drop"],
1634
+ setup(e, { emit: t }) {
1635
+ const r = e, n = t, a = g(), { onChange: o, open: s } = Or({
1636
+ accept: r.accept
1637
+ });
1638
+ o((l) => {
1639
+ l ? n("drop", Array.from(l)) : n("drop", null);
1640
+ });
1641
+ const { isOverDropZone: i } = Rr(a, {
1642
+ onDrop: (l) => {
1643
+ n("drop", l);
1644
+ }
1645
+ });
1646
+ return (l, u) => (m(), b("div", {
1647
+ ref_key: "dropZoneRef",
1648
+ ref: a,
1649
+ class: y([{
1650
+ "": c(i),
1651
+ " bg-surface-low": !c(i),
1652
+ "border-dashed": l.dashed
1653
+ }, "w-full h-full flex items-center justify-center cursor-pointer rounded"]),
1654
+ onPointerup: u[0] || (u[0] = () => c(s)())
1655
+ }, [
1656
+ $(l.$slots, "default")
1657
+ ], 34));
1658
+ }
1659
+ }), Nn = /* @__PURE__ */ x({
1660
+ __name: "Image",
1661
+ props: {
1662
+ is: { default: "img" },
1663
+ src: {},
1664
+ style: {},
1665
+ class: {},
1666
+ width: {},
1667
+ maxWidth: {},
1668
+ height: {},
1669
+ maxHeight: {},
1670
+ rounded: { default: "md" }
1671
+ },
1672
+ setup(e) {
1673
+ const t = e, r = g(!1), n = g(null);
1674
+ function a() {
1675
+ r.value = !0;
1676
+ }
1677
+ ee(() => {
1678
+ var s;
1679
+ (s = n.value) != null && s.complete && a();
1680
+ });
1681
+ const o = te(t);
1682
+ return (s, i) => (m(), b("div", {
1683
+ style: R({
1684
+ height: s.height,
1685
+ width: s.width,
1686
+ maxHeight: s.maxHeight,
1687
+ maxWidth: s.maxWidth
1688
+ })
1689
+ }, [
1690
+ s.src ? (m(), O(ue(s.is), we({
1691
+ key: 0,
1692
+ ref_key: "img",
1693
+ ref: n,
1694
+ style: [
1695
+ s.style,
1696
+ c(o).style
1697
+ ],
1698
+ src: s.src,
1699
+ class: ["object-cover w-full h-full", [
1700
+ t.class,
1701
+ c(o).class,
1702
+ {
1703
+ hidden: !c(r)
1704
+ }
1705
+ ]]
1706
+ }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : A("", !0),
1707
+ c(r) ? A("", !0) : (m(), b("div", {
1708
+ key: 1,
1709
+ class: y(["animate-pulse bg-surface-high object-cover border-transparent w-full h-full", [
1710
+ t.class,
1711
+ c(o).class
1712
+ ]]),
1713
+ style: R([
1714
+ s.style,
1715
+ c(o).style
1716
+ ])
1717
+ }, null, 6))
1718
+ ], 4));
1719
+ }
1720
+ }), Ir = { class: "relative" }, Hn = /* @__PURE__ */ x({
1721
+ __name: "Indicator",
1722
+ props: {
1723
+ color: { default: "primary" },
1724
+ size: { default: "md" },
1725
+ position: { default: "top-right" },
1726
+ ping: { type: Boolean }
1727
+ },
1728
+ setup(e) {
1729
+ const t = e, r = v(() => {
1730
+ switch (t.size) {
1731
+ case "sm":
1732
+ return "w-2 h-2";
1733
+ case "md":
1734
+ return "w-3 h-3";
1735
+ case "lg":
1736
+ return "w-4 h-4";
1737
+ default:
1738
+ return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
1739
+ }
1740
+ }), n = Mt(), a = v(() => {
1741
+ if (!n.label)
1742
+ return "";
1743
+ switch (t.size) {
1744
+ case "sm":
1745
+ return "text-sm children:px-1.5";
1746
+ case "md":
1747
+ return "text-md children:px-2";
1748
+ case "lg":
1749
+ return "text-lg children:px-2.5";
1750
+ }
1751
+ }), o = v(() => {
1752
+ switch (t.position) {
1753
+ case "top-left":
1754
+ return "top-0 left-0 -translate-x-1/2 -translate-y-1/2";
1755
+ case "top-right":
1756
+ return "top-0 right-0 translate-x-1/2 -translate-y-1/2";
1757
+ case "bottom-left":
1758
+ return "bottom-0 left-0 -translate-x-1/2 translate-y-1/2";
1759
+ case "bottom-right":
1760
+ return "bottom-0 right-0 translate-x-1/2 translate-y-1/2";
1761
+ }
1762
+ }), s = v(() => {
1763
+ switch (t.color) {
1764
+ case "primary":
1765
+ return "bg-primary-container text-primary-on";
1766
+ case "secondary":
1767
+ return "bg-secondary-container text-secondary-on";
1768
+ case "tertiary":
1769
+ return "bg-tertiary-container text-tertiary-on";
1770
+ case "error":
1771
+ return "bg-error-container text-error-on";
1772
+ }
1773
+ });
1774
+ return (i, l) => (m(), b("div", Ir, [
1775
+ _("div", {
1776
+ class: y([[c(o), c(a)], "absolute z-1"])
1777
+ }, [
1778
+ t.ping ? (m(), b("div", {
1779
+ key: 0,
1780
+ class: y(["absolute animate-ping rounded-full border-2 border-transparent box-content", [
1781
+ {
1782
+ [c(r)]: !i.$slots.label
1783
+ },
1784
+ c(s)
1785
+ ]])
1786
+ }, [
1787
+ i.$slots.label ? $(i.$slots, "label", { key: 0 }) : A("", !0)
1788
+ ], 2)) : A("", !0),
1789
+ _("div", {
1790
+ class: y(["top-0 rounded-full border-2 border-surface-low box-content", [
1791
+ {
1792
+ [c(r)]: !i.$slots.label
1793
+ },
1794
+ c(s)
1795
+ ]])
1796
+ }, [
1797
+ i.$slots.label ? $(i.$slots, "label", { key: 0 }) : A("", !0)
1798
+ ], 2)
1799
+ ], 2),
1800
+ $(i.$slots, "default")
1801
+ ]));
1802
+ }
1803
+ }), Vn = /* @__PURE__ */ x({
1804
+ __name: "Modal",
1805
+ props: /* @__PURE__ */ Y({
1806
+ persistent: { type: Boolean, default: !1 },
1807
+ blur: { type: [String, Boolean], default: !1 }
1808
+ }, {
1809
+ modelValue: { type: Boolean },
1810
+ modelModifiers: {}
1811
+ }),
1812
+ emits: ["update:modelValue"],
1813
+ setup(e) {
1814
+ const t = e, r = K(e, "modelValue");
1815
+ return G(() => {
1816
+ r.value ? document.body.style.overflow = "hidden" : setTimeout(() => {
1817
+ document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1818
+ }, 300);
1819
+ }), (n, a) => {
1820
+ const o = it;
1821
+ return m(), O(o, {
1822
+ modelValue: r.value,
1823
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => r.value = s),
1824
+ blur: t.blur,
1825
+ persistent: t.persistent,
1826
+ "wrapper-class": "flex items-end justify-center"
1827
+ }, {
1828
+ default: L(() => [
1829
+ ve(Je, {
1830
+ "enter-from-class": "translate-y-1/2",
1831
+ "enter-to-class": "translate-y-0",
1832
+ "leave-from-class": "translate-y-0",
1833
+ "leave-to-class": "translate-y-1/2",
1834
+ "enter-active-class": "transition ease-out duration-300",
1835
+ "leave-active-class": "transition ease-in duration-200"
1836
+ }, {
1837
+ default: L(() => [
1838
+ r.value ? $(n.$slots, "default", { key: 0 }) : A("", !0)
1839
+ ]),
1840
+ _: 3
1841
+ })
1842
+ ]),
1843
+ _: 3
1844
+ }, 8, ["modelValue", "blur", "persistent"]);
1845
+ };
1705
1846
  }
1706
- }), Tr = {
1847
+ }), Nr = {
1707
1848
  key: 0,
1708
1849
  class: "i-tabler-loader-2 h-container w-container shrink-0 animate-spin"
1709
- }, zr = { key: 1 }, Rr = { class: "grow-1" }, Er = {
1850
+ }, Hr = { key: 1 }, Vr = { class: "grow-1" }, Dr = {
1710
1851
  key: 1,
1711
1852
  class: "text-sm text-surface-container"
1712
- }, Pr = /* @__PURE__ */ M("i", { class: "i-tabler-x" }, null, -1), Nr = /* @__PURE__ */ $({
1853
+ }, Fr = /* @__PURE__ */ _("i", { class: "i-tabler-x" }, null, -1), Wr = /* @__PURE__ */ x({
1713
1854
  __name: "Notification",
1714
1855
  props: {
1715
1856
  title: {},
@@ -1722,7 +1863,7 @@ const ln = /* @__PURE__ */ $({
1722
1863
  },
1723
1864
  emits: ["close"],
1724
1865
  setup(e) {
1725
- const t = e, r = m(() => {
1866
+ const t = e, r = v(() => {
1726
1867
  switch (t.color) {
1727
1868
  case "secondary":
1728
1869
  return "bg-secondary-container";
@@ -1733,7 +1874,7 @@ const ln = /* @__PURE__ */ $({
1733
1874
  default:
1734
1875
  return "bg-primary-container";
1735
1876
  }
1736
- }), n = m(() => {
1877
+ }), n = v(() => {
1737
1878
  switch (t.color) {
1738
1879
  case "secondary":
1739
1880
  return "text-secondary-container";
@@ -1745,237 +1886,154 @@ const ln = /* @__PURE__ */ $({
1745
1886
  return "text-primary-container";
1746
1887
  }
1747
1888
  });
1748
- return (o, a) => {
1749
- const s = St;
1750
- return g(), y("div", {
1751
- class: w(["relative max-w-100 min-h-16 min-w-80 w-full flex items-center gap-2 container-low rounded p-3", [
1752
- { "border-0": !o.withBorder }
1889
+ return (a, o) => {
1890
+ const s = rt;
1891
+ return m(), b("div", {
1892
+ class: y(["relative max-w-100 min-h-16 min-w-80 w-full flex items-center gap-2 container-low rounded p-3", [
1893
+ { "border-0": !a.withBorder }
1753
1894
  ]])
1754
1895
  }, [
1755
- o.icon ? (g(), y("div", {
1896
+ a.icon ? (m(), b("div", {
1756
1897
  key: 0,
1757
- class: w(["leading-0", l(n)])
1898
+ class: y(["leading-0", c(n)])
1758
1899
  }, [
1759
- o.loading ? (g(), y("i", Tr)) : (g(), y("i", {
1900
+ a.loading ? (m(), b("i", Nr)) : (m(), b("i", {
1760
1901
  key: 1,
1761
- class: w(["h-container w-container shrink-0", o.icon])
1902
+ class: y(["h-container w-container shrink-0", a.icon])
1762
1903
  }, null, 2))
1763
- ], 2)) : (g(), y("div", zr, [
1764
- M("div", {
1765
- class: w(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
1766
- "animate-pulse": o.loading
1767
- }, l(r)]])
1904
+ ], 2)) : (m(), b("div", Hr, [
1905
+ _("div", {
1906
+ class: y(["absolute left-[0.25rem] top-[0.25rem] h-[calc(100%-0.5rem)] w-1 rounded-full", [{
1907
+ "animate-pulse": a.loading
1908
+ }, c(r)]])
1768
1909
  }, null, 2)
1769
1910
  ])),
1770
- M("div", Rr, [
1771
- o.title ? (g(), y("div", {
1911
+ _("div", Vr, [
1912
+ a.title ? (m(), b("div", {
1772
1913
  key: 0,
1773
- class: w([l(n), "text-base"])
1774
- }, re(o.title), 3)) : z("", !0),
1775
- o.message ? (g(), y("div", Er, re(o.message), 1)) : z("", !0)
1914
+ class: y([c(n), "text-base"])
1915
+ }, ae(a.title), 3)) : A("", !0),
1916
+ a.message ? (m(), b("div", Dr, ae(a.message), 1)) : A("", !0)
1776
1917
  ]),
1777
- o.closeable ? (g(), D(s, {
1918
+ a.closeable ? (m(), O(s, {
1778
1919
  key: 2,
1779
1920
  icon: "",
1780
1921
  variant: "transparent",
1781
1922
  class: "text-surface-on hover:text-surface-on",
1782
- onClick: a[0] || (a[0] = (i) => o.$emit("close"))
1923
+ onClick: o[0] || (o[0] = (i) => a.$emit("close"))
1783
1924
  }, {
1784
- default: J(() => [
1785
- Pr
1925
+ default: L(() => [
1926
+ Fr
1786
1927
  ]),
1787
1928
  _: 1
1788
- })) : z("", !0)
1929
+ })) : A("", !0)
1789
1930
  ], 2);
1790
1931
  };
1791
1932
  }
1792
- }), Hr = ["data-scheme", "data-theme"], Ir = /* @__PURE__ */ $({
1793
- __name: "ThemeProvider",
1794
- props: {
1795
- theme: {}
1796
- },
1797
- setup(e) {
1798
- const r = st(e.theme, !1);
1799
- return (n, o) => (g(), y("div", {
1800
- style: T([l(r)]),
1801
- "data-scheme": n.theme.scheme,
1802
- "data-theme": n.theme.name
1803
- }, [
1804
- H(n.$slots, "default")
1805
- ], 12, Hr));
1806
- }
1807
- }), un = /* @__PURE__ */ $({
1808
- __name: "Modal",
1809
- props: /* @__PURE__ */ ee({
1810
- persistent: { type: Boolean, default: !1 },
1811
- blur: { type: [String, Boolean] }
1933
+ }), ct = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), me = /* @__PURE__ */ new WeakSet();
1934
+ let Z, He = 0, Ve = 0;
1935
+ const U = "__aa_tgt", ge = "__aa_del", ke = "__aa_new", jr = (e) => {
1936
+ const t = Yr(e);
1937
+ t && t.forEach((r) => Zr(r));
1938
+ }, Ur = (e) => {
1939
+ e.forEach((t) => {
1940
+ t.target === Z && qr(), E.has(t.target) && re(t.target);
1941
+ });
1942
+ };
1943
+ function Gr(e) {
1944
+ const t = Be.get(e);
1945
+ t == null || t.disconnect();
1946
+ let r = E.get(e), n = 0;
1947
+ const a = 5;
1948
+ r || (r = ce(e), E.set(e, r));
1949
+ const { offsetWidth: o, offsetHeight: s } = Z, l = [
1950
+ r.top - a,
1951
+ o - (r.left + a + r.width),
1952
+ s - (r.top + a + r.height),
1953
+ r.left - a
1954
+ ].map((d) => `${-1 * Math.floor(d)}px`).join(" "), u = new IntersectionObserver(() => {
1955
+ ++n > 1 && re(e);
1812
1956
  }, {
1813
- modelValue: { type: Boolean },
1814
- modelModifiers: {}
1815
- }),
1816
- emits: ["update:modelValue"],
1817
- setup(e) {
1818
- const t = e, r = me(e, "modelValue"), n = v(null);
1819
- function o(i) {
1820
- t.persistent || i.target === n.value && (r.value = !1);
1821
- }
1822
- const a = m(() => {
1823
- switch (t.blur) {
1824
- case "sm":
1825
- return "backdrop-blur-sm";
1826
- case "md":
1827
- case !0:
1828
- return "backdrop-blur-md";
1829
- case "lg":
1830
- return "backdrop-blur-lg";
1831
- default:
1832
- return "";
1833
- }
1834
- });
1835
- X(() => {
1836
- r.value ? document.body.style.overflow = "hidden" : setTimeout(() => {
1837
- document.querySelector(".modal-wrapper.op100") || (document.body.style.overflow = "", document.body.style.marginRight = "");
1838
- }, 300);
1839
- });
1840
- const s = vr();
1841
- return (i, c) => {
1842
- const d = Ir;
1843
- return g(), D(wt, { to: "body" }, [
1844
- We(d, { theme: l(s) }, {
1845
- default: J(() => [
1846
- M("div", {
1847
- ref_key: "wrapperRef",
1848
- ref: n,
1849
- class: w(["modal-wrapper fixed left-0 top-0 z-100 h-full w-full flex items-end justify-center bg-surface-lowest/50 transition-all duration-300 md:items-center", [a.value, {
1850
- "op0 pointer-events-none": !r.value,
1851
- op100: r.value
1852
- }]]),
1853
- onClick: o
1854
- }, [
1855
- We(_t, {
1856
- "enter-from-class": "translate-y-1/2",
1857
- "enter-to-class": "translate-y-0",
1858
- "leave-from-class": "translate-y-0",
1859
- "leave-to-class": "translate-y-1/2",
1860
- "enter-active-class": "transition ease-out duration-300",
1861
- "leave-active-class": "transition ease-in duration-200"
1862
- }, {
1863
- default: J(() => [
1864
- r.value ? H(i.$slots, "default", { key: 0 }) : z("", !0)
1865
- ]),
1866
- _: 3
1867
- })
1868
- ], 2)
1869
- ]),
1870
- _: 3
1871
- }, 8, ["theme"])
1872
- ]);
1873
- };
1874
- }
1875
- }), it = /* @__PURE__ */ new Set(), P = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Or = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), ye = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakSet();
1876
- let U, Ie = 0, Oe = 0;
1877
- const L = "__aa_tgt", he = "__aa_del", we = "__aa_new", Br = (e) => {
1878
- const t = Dr(e);
1879
- t && t.forEach((r) => jr(r));
1880
- }, Vr = (e) => {
1881
- e.forEach((t) => {
1882
- t.target === U && Wr(), P.has(t.target) && Q(t.target);
1883
- });
1884
- };
1885
- function Fr(e) {
1886
- const t = Re.get(e);
1887
- t == null || t.disconnect();
1888
- let r = P.get(e), n = 0;
1889
- const o = 5;
1890
- r || (r = ae(e), P.set(e, r));
1891
- const { offsetWidth: a, offsetHeight: s } = U, c = [
1892
- r.top - o,
1893
- a - (r.left + o + r.width),
1894
- s - (r.top + o + r.height),
1895
- r.left - o
1896
- ].map((f) => `${-1 * Math.floor(f)}px`).join(" "), d = new IntersectionObserver(() => {
1897
- ++n > 1 && Q(e);
1898
- }, {
1899
- root: U,
1900
- threshold: 1,
1901
- rootMargin: c
1902
- });
1903
- d.observe(e), Re.set(e, d);
1904
- }
1905
- function Q(e) {
1906
- clearTimeout(ye.get(e));
1907
- const t = Me(e), r = pe(t) ? 500 : t.duration;
1908
- ye.set(e, setTimeout(async () => {
1909
- const n = K.get(e);
1910
- try {
1911
- await (n == null ? void 0 : n.finished), P.set(e, ae(e)), Fr(e);
1912
- } catch {
1957
+ root: Z,
1958
+ threshold: 1,
1959
+ rootMargin: l
1960
+ });
1961
+ u.observe(e), Be.set(e, u);
1962
+ }
1963
+ function re(e) {
1964
+ clearTimeout(xe.get(e));
1965
+ const t = Ce(e), r = ye(t) ? 500 : t.duration;
1966
+ xe.set(e, setTimeout(async () => {
1967
+ const n = J.get(e);
1968
+ try {
1969
+ await (n == null ? void 0 : n.finished), E.set(e, ce(e)), Gr(e);
1970
+ } catch {
1913
1971
  }
1914
1972
  }, r));
1915
1973
  }
1916
- function Wr() {
1917
- clearTimeout(ye.get(U)), ye.set(U, setTimeout(() => {
1918
- it.forEach((e) => dt(e, (t) => lt(() => Q(t))));
1974
+ function qr() {
1975
+ clearTimeout(xe.get(Z)), xe.set(Z, setTimeout(() => {
1976
+ ct.forEach((e) => pt(e, (t) => ut(() => re(t))));
1919
1977
  }, 100));
1920
1978
  }
1921
- function Lr(e) {
1979
+ function Xr(e) {
1922
1980
  setTimeout(() => {
1923
- Or.set(e, setInterval(() => lt(Q.bind(null, e)), 2e3));
1981
+ Lr.set(e, setInterval(() => ut(re.bind(null, e)), 2e3));
1924
1982
  }, Math.round(2e3 * Math.random()));
1925
1983
  }
1926
- function lt(e) {
1984
+ function ut(e) {
1927
1985
  typeof requestIdleCallback == "function" ? requestIdleCallback(() => e()) : requestAnimationFrame(() => e());
1928
1986
  }
1929
- let Ee, Z;
1930
- typeof window < "u" && (U = document.documentElement, Ee = new MutationObserver(Br), Z = new ResizeObserver(Vr), window.addEventListener("scroll", () => {
1931
- Oe = window.scrollY, Ie = window.scrollX;
1932
- }), Z.observe(U));
1933
- function Dr(e) {
1934
- return e.reduce((n, o) => [
1987
+ let Ee, ne;
1988
+ typeof window < "u" && (Z = document.documentElement, Ee = new MutationObserver(jr), ne = new ResizeObserver(Ur), window.addEventListener("scroll", () => {
1989
+ Ve = window.scrollY, He = window.scrollX;
1990
+ }), ne.observe(Z));
1991
+ function Yr(e) {
1992
+ return e.reduce((n, a) => [
1935
1993
  ...n,
1936
- ...Array.from(o.addedNodes),
1937
- ...Array.from(o.removedNodes)
1938
- ], []).every((n) => n.nodeName === "#comment") ? !1 : e.reduce((n, o) => {
1994
+ ...Array.from(a.addedNodes),
1995
+ ...Array.from(a.removedNodes)
1996
+ ], []).every((n) => n.nodeName === "#comment") ? !1 : e.reduce((n, a) => {
1939
1997
  if (n === !1)
1940
1998
  return !1;
1941
- if (o.target instanceof Element) {
1942
- if (Ce(o.target), !n.has(o.target)) {
1943
- n.add(o.target);
1944
- for (let a = 0; a < o.target.children.length; a++) {
1945
- const s = o.target.children.item(a);
1999
+ if (a.target instanceof Element) {
2000
+ if (Re(a.target), !n.has(a.target)) {
2001
+ n.add(a.target);
2002
+ for (let o = 0; o < a.target.children.length; o++) {
2003
+ const s = a.target.children.item(o);
1946
2004
  if (s) {
1947
- if (he in s)
2005
+ if (ge in s)
1948
2006
  return !1;
1949
- Ce(o.target, s), n.add(s);
2007
+ Re(a.target, s), n.add(s);
1950
2008
  }
1951
2009
  }
1952
2010
  }
1953
- if (o.removedNodes.length)
1954
- for (let a = 0; a < o.removedNodes.length; a++) {
1955
- const s = o.removedNodes[a];
1956
- if (he in s)
2011
+ if (a.removedNodes.length)
2012
+ for (let o = 0; o < a.removedNodes.length; o++) {
2013
+ const s = a.removedNodes[o];
2014
+ if (ge in s)
1957
2015
  return !1;
1958
- s instanceof Element && (n.add(s), Ce(o.target, s), ne.set(s, [
1959
- o.previousSibling,
1960
- o.nextSibling
2016
+ s instanceof Element && (n.add(s), Re(a.target, s), ie.set(s, [
2017
+ a.previousSibling,
2018
+ a.nextSibling
1961
2019
  ]));
1962
2020
  }
1963
2021
  }
1964
2022
  return n;
1965
2023
  }, /* @__PURE__ */ new Set());
1966
2024
  }
1967
- function Ce(e, t) {
1968
- !t && !(L in e) ? Object.defineProperty(e, L, { value: e }) : t && !(L in t) && Object.defineProperty(t, L, { value: e });
2025
+ function Re(e, t) {
2026
+ !t && !(U in e) ? Object.defineProperty(e, U, { value: e }) : t && !(U in t) && Object.defineProperty(t, U, { value: e });
1969
2027
  }
1970
- function jr(e) {
2028
+ function Zr(e) {
1971
2029
  var t;
1972
- const r = e.isConnected, n = P.has(e);
1973
- r && ne.has(e) && ne.delete(e), K.has(e) && ((t = K.get(e)) === null || t === void 0 || t.cancel()), we in e ? Ye(e) : n && r ? Ur(e) : n && !r ? Xr(e) : Ye(e);
2030
+ const r = e.isConnected, n = E.has(e);
2031
+ r && ie.has(e) && ie.delete(e), J.has(e) && ((t = J.get(e)) === null || t === void 0 || t.cancel()), ke in e ? Ye(e) : n && r ? Qr(e) : n && !r ? Jr(e) : Ye(e);
1974
2032
  }
1975
- function F(e) {
2033
+ function W(e) {
1976
2034
  return Number(e.replace(/[^0-9.\-]/g, ""));
1977
2035
  }
1978
- function Gr(e) {
2036
+ function Kr(e) {
1979
2037
  let t = e.parentElement;
1980
2038
  for (; t; ) {
1981
2039
  if (t.scrollLeft || t.scrollTop)
@@ -1984,8 +2042,8 @@ function Gr(e) {
1984
2042
  }
1985
2043
  return { x: 0, y: 0 };
1986
2044
  }
1987
- function ae(e) {
1988
- const t = e.getBoundingClientRect(), { x: r, y: n } = Gr(e);
2045
+ function ce(e) {
2046
+ const t = e.getBoundingClientRect(), { x: r, y: n } = Kr(e);
1989
2047
  return {
1990
2048
  top: t.top + n,
1991
2049
  left: t.left + r,
@@ -1993,69 +2051,69 @@ function ae(e) {
1993
2051
  height: t.height
1994
2052
  };
1995
2053
  }
1996
- function ct(e, t, r) {
1997
- let n = t.width, o = t.height, a = r.width, s = r.height;
2054
+ function dt(e, t, r) {
2055
+ let n = t.width, a = t.height, o = r.width, s = r.height;
1998
2056
  const i = getComputedStyle(e);
1999
2057
  if (i.getPropertyValue("box-sizing") === "content-box") {
2000
- const d = F(i.paddingTop) + F(i.paddingBottom) + F(i.borderTopWidth) + F(i.borderBottomWidth), f = F(i.paddingLeft) + F(i.paddingRight) + F(i.borderRightWidth) + F(i.borderLeftWidth);
2001
- n -= f, a -= f, o -= d, s -= d;
2058
+ const u = W(i.paddingTop) + W(i.paddingBottom) + W(i.borderTopWidth) + W(i.borderBottomWidth), d = W(i.paddingLeft) + W(i.paddingRight) + W(i.borderRightWidth) + W(i.borderLeftWidth);
2059
+ n -= d, o -= d, a -= u, s -= u;
2002
2060
  }
2003
- return [n, a, o, s].map(Math.round);
2061
+ return [n, o, a, s].map(Math.round);
2004
2062
  }
2005
- function Me(e) {
2006
- return L in e && oe.has(e[L]) ? oe.get(e[L]) : { duration: 250, easing: "ease-in-out" };
2063
+ function Ce(e) {
2064
+ return U in e && le.has(e[U]) ? le.get(e[U]) : { duration: 250, easing: "ease-in-out" };
2007
2065
  }
2008
- function ut(e) {
2009
- if (L in e)
2010
- return e[L];
2066
+ function ft(e) {
2067
+ if (U in e)
2068
+ return e[U];
2011
2069
  }
2012
- function Be(e) {
2013
- const t = ut(e);
2014
- return t ? de.has(t) : !1;
2070
+ function De(e) {
2071
+ const t = ft(e);
2072
+ return t ? me.has(t) : !1;
2015
2073
  }
2016
- function dt(e, ...t) {
2017
- t.forEach((r) => r(e, oe.has(e)));
2074
+ function pt(e, ...t) {
2075
+ t.forEach((r) => r(e, le.has(e)));
2018
2076
  for (let r = 0; r < e.children.length; r++) {
2019
2077
  const n = e.children.item(r);
2020
- n && t.forEach((o) => o(n, oe.has(n)));
2078
+ n && t.forEach((a) => a(n, le.has(n)));
2021
2079
  }
2022
2080
  }
2023
- function Ve(e) {
2081
+ function Fe(e) {
2024
2082
  return Array.isArray(e) ? e : [e];
2025
2083
  }
2026
- function pe(e) {
2084
+ function ye(e) {
2027
2085
  return typeof e == "function";
2028
2086
  }
2029
- function Ur(e) {
2030
- const t = P.get(e), r = ae(e);
2031
- if (!Be(e))
2032
- return P.set(e, r);
2087
+ function Qr(e) {
2088
+ const t = E.get(e), r = ce(e);
2089
+ if (!De(e))
2090
+ return E.set(e, r);
2033
2091
  let n;
2034
2092
  if (!t)
2035
2093
  return;
2036
- const o = Me(e);
2037
- if (typeof o != "function") {
2038
- const a = t.left - r.left, s = t.top - r.top, [i, c, d, f] = ct(e, t, r), u = {
2039
- transform: `translate(${a}px, ${s}px)`
2040
- }, p = {
2094
+ const a = Ce(e);
2095
+ if (typeof a != "function") {
2096
+ const o = t.left - r.left, s = t.top - r.top, [i, l, u, d] = dt(e, t, r), f = {
2097
+ transform: `translate(${o}px, ${s}px)`
2098
+ }, h = {
2041
2099
  transform: "translate(0, 0)"
2042
2100
  };
2043
- i !== c && (u.width = `${i}px`, p.width = `${c}px`), d !== f && (u.height = `${d}px`, p.height = `${f}px`), n = e.animate([u, p], {
2044
- duration: o.duration,
2045
- easing: o.easing
2101
+ i !== l && (f.width = `${i}px`, h.width = `${l}px`), u !== d && (f.height = `${u}px`, h.height = `${d}px`), n = e.animate([f, h], {
2102
+ duration: a.duration,
2103
+ easing: a.easing
2046
2104
  });
2047
2105
  } else {
2048
- const [a] = Ve(o(e, "remain", t, r));
2049
- n = new Animation(a), n.play();
2106
+ const [o] = Fe(a(e, "remain", t, r));
2107
+ n = new Animation(o), n.play();
2050
2108
  }
2051
- K.set(e, n), P.set(e, r), n.addEventListener("finish", Q.bind(null, e));
2109
+ J.set(e, n), E.set(e, r), n.addEventListener("finish", re.bind(null, e));
2052
2110
  }
2053
2111
  function Ye(e) {
2054
- we in e && delete e[we];
2055
- const t = ae(e);
2056
- P.set(e, t);
2057
- const r = Me(e);
2058
- if (!Be(e))
2112
+ ke in e && delete e[ke];
2113
+ const t = ce(e);
2114
+ E.set(e, t);
2115
+ const r = Ce(e);
2116
+ if (!De(e))
2059
2117
  return;
2060
2118
  let n;
2061
2119
  if (typeof r != "function")
@@ -2068,43 +2126,43 @@ function Ye(e) {
2068
2126
  easing: "ease-in"
2069
2127
  });
2070
2128
  else {
2071
- const [o] = Ve(r(e, "add", t));
2072
- n = new Animation(o), n.play();
2129
+ const [a] = Fe(r(e, "add", t));
2130
+ n = new Animation(a), n.play();
2073
2131
  }
2074
- K.set(e, n), n.addEventListener("finish", Q.bind(null, e));
2132
+ J.set(e, n), n.addEventListener("finish", re.bind(null, e));
2075
2133
  }
2076
- function Ke(e, t) {
2134
+ function Ze(e, t) {
2077
2135
  var r;
2078
- e.remove(), P.delete(e), ne.delete(e), K.delete(e), (r = Re.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2079
- if (he in e && delete e[he], Object.defineProperty(e, we, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2136
+ e.remove(), E.delete(e), ie.delete(e), J.delete(e), (r = Be.get(e)) === null || r === void 0 || r.disconnect(), setTimeout(() => {
2137
+ if (ge in e && delete e[ge], Object.defineProperty(e, ke, { value: !0, configurable: !0 }), t && e instanceof HTMLElement)
2080
2138
  for (const n in t)
2081
2139
  e.style[n] = "";
2082
2140
  }, 0);
2083
2141
  }
2084
- function Xr(e) {
2142
+ function Jr(e) {
2085
2143
  var t;
2086
- if (!ne.has(e) || !P.has(e))
2144
+ if (!ie.has(e) || !E.has(e))
2087
2145
  return;
2088
- const [r, n] = ne.get(e);
2089
- Object.defineProperty(e, he, { value: !0, configurable: !0 });
2090
- const o = window.scrollX, a = window.scrollY;
2091
- if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = ut(e)) === null || t === void 0 || t.appendChild(e), !Be(e))
2092
- return Ke(e);
2093
- const [s, i, c, d] = Yr(e), f = Me(e), u = P.get(e);
2094
- (o !== Ie || a !== Oe) && qr(e, o, a, f);
2095
- let p, b = {
2146
+ const [r, n] = ie.get(e);
2147
+ Object.defineProperty(e, ge, { value: !0, configurable: !0 });
2148
+ const a = window.scrollX, o = window.scrollY;
2149
+ if (n && n.parentNode && n.parentNode instanceof Element ? n.parentNode.insertBefore(e, n) : r && r.parentNode ? r.parentNode.appendChild(e) : (t = ft(e)) === null || t === void 0 || t.appendChild(e), !De(e))
2150
+ return Ze(e);
2151
+ const [s, i, l, u] = tn(e), d = Ce(e), f = E.get(e);
2152
+ (a !== He || o !== Ve) && en(e, a, o, d);
2153
+ let h, w = {
2096
2154
  position: "absolute",
2097
2155
  top: `${s}px`,
2098
2156
  left: `${i}px`,
2099
- width: `${c}px`,
2100
- height: `${d}px`,
2157
+ width: `${l}px`,
2158
+ height: `${u}px`,
2101
2159
  margin: "0",
2102
2160
  pointerEvents: "none",
2103
2161
  transformOrigin: "center",
2104
2162
  zIndex: "100"
2105
2163
  };
2106
- if (!pe(f))
2107
- Object.assign(e.style, b), p = e.animate([
2164
+ if (!ye(d))
2165
+ Object.assign(e.style, w), h = e.animate([
2108
2166
  {
2109
2167
  transform: "scale(1)",
2110
2168
  opacity: 1
@@ -2113,84 +2171,212 @@ function Xr(e) {
2113
2171
  transform: "scale(.98)",
2114
2172
  opacity: 0
2115
2173
  }
2116
- ], { duration: f.duration, easing: "ease-out" });
2174
+ ], { duration: d.duration, easing: "ease-out" });
2117
2175
  else {
2118
- const [k, S] = Ve(f(e, "remove", u));
2119
- (S == null ? void 0 : S.styleReset) !== !1 && (b = (S == null ? void 0 : S.styleReset) || b, Object.assign(e.style, b)), p = new Animation(k), p.play();
2176
+ const [C, M] = Fe(d(e, "remove", f));
2177
+ (M == null ? void 0 : M.styleReset) !== !1 && (w = (M == null ? void 0 : M.styleReset) || w, Object.assign(e.style, w)), h = new Animation(C), h.play();
2120
2178
  }
2121
- K.set(e, p), p.addEventListener("finish", Ke.bind(null, e, b));
2179
+ J.set(e, h), h.addEventListener("finish", Ze.bind(null, e, w));
2122
2180
  }
2123
- function qr(e, t, r, n) {
2124
- const o = Ie - t, a = Oe - r, s = document.documentElement.style.scrollBehavior;
2125
- if (getComputedStyle(U).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + o, window.scrollY + a), !e.parentElement)
2181
+ function en(e, t, r, n) {
2182
+ const a = He - t, o = Ve - r, s = document.documentElement.style.scrollBehavior;
2183
+ if (getComputedStyle(Z).scrollBehavior === "smooth" && (document.documentElement.style.scrollBehavior = "auto"), window.scrollTo(window.scrollX + a, window.scrollY + o), !e.parentElement)
2126
2184
  return;
2127
- const c = e.parentElement;
2128
- let d = c.clientHeight, f = c.clientWidth;
2129
- const u = performance.now();
2130
- function p() {
2185
+ const l = e.parentElement;
2186
+ let u = l.clientHeight, d = l.clientWidth;
2187
+ const f = performance.now();
2188
+ function h() {
2131
2189
  requestAnimationFrame(() => {
2132
- if (!pe(n)) {
2133
- const b = d - c.clientHeight, k = f - c.clientWidth;
2134
- u + n.duration > performance.now() ? (window.scrollTo({
2135
- left: window.scrollX - k,
2136
- top: window.scrollY - b
2137
- }), d = c.clientHeight, f = c.clientWidth, p()) : document.documentElement.style.scrollBehavior = s;
2190
+ if (!ye(n)) {
2191
+ const w = u - l.clientHeight, C = d - l.clientWidth;
2192
+ f + n.duration > performance.now() ? (window.scrollTo({
2193
+ left: window.scrollX - C,
2194
+ top: window.scrollY - w
2195
+ }), u = l.clientHeight, d = l.clientWidth, h()) : document.documentElement.style.scrollBehavior = s;
2138
2196
  }
2139
2197
  });
2140
2198
  }
2141
- p();
2142
- }
2143
- function Yr(e) {
2144
- const t = P.get(e), [r, , n] = ct(e, t, ae(e));
2145
- let o = e.parentElement;
2146
- for (; o && (getComputedStyle(o).position === "static" || o instanceof HTMLBodyElement); )
2147
- o = o.parentElement;
2148
- o || (o = document.body);
2149
- const a = getComputedStyle(o), s = P.get(o) || ae(o), i = Math.round(t.top - s.top) - F(a.borderTopWidth), c = Math.round(t.left - s.left) - F(a.borderLeftWidth);
2150
- return [i, c, r, n];
2151
- }
2152
- function Kr(e, t = {}) {
2153
- return Ee && Z && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !pe(t) && !t.disrespectUserMotionPreference || (de.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), dt(e, Q, Lr, (o) => Z == null ? void 0 : Z.observe(o)), pe(t) ? oe.set(e, t) : oe.set(e, { duration: 250, easing: "ease-in-out", ...t }), Ee.observe(e, { childList: !0 }), it.add(e))), Object.freeze({
2199
+ h();
2200
+ }
2201
+ function tn(e) {
2202
+ const t = E.get(e), [r, , n] = dt(e, t, ce(e));
2203
+ let a = e.parentElement;
2204
+ for (; a && (getComputedStyle(a).position === "static" || a instanceof HTMLBodyElement); )
2205
+ a = a.parentElement;
2206
+ a || (a = document.body);
2207
+ const o = getComputedStyle(a), s = E.get(a) || ce(a), i = Math.round(t.top - s.top) - W(o.borderTopWidth), l = Math.round(t.left - s.left) - W(o.borderLeftWidth);
2208
+ return [i, l, r, n];
2209
+ }
2210
+ function rn(e, t = {}) {
2211
+ return Ee && ne && (window.matchMedia("(prefers-reduced-motion: reduce)").matches && !ye(t) && !t.disrespectUserMotionPreference || (me.add(e), getComputedStyle(e).position === "static" && Object.assign(e.style, { position: "relative" }), pt(e, re, Xr, (a) => ne == null ? void 0 : ne.observe(a)), ye(t) ? le.set(e, t) : le.set(e, { duration: 250, easing: "ease-in-out", ...t }), Ee.observe(e, { childList: !0 }), ct.add(e))), Object.freeze({
2154
2212
  parent: e,
2155
2213
  enable: () => {
2156
- de.add(e);
2214
+ me.add(e);
2157
2215
  },
2158
2216
  disable: () => {
2159
- de.delete(e);
2217
+ me.delete(e);
2160
2218
  },
2161
- isEnabled: () => de.has(e)
2219
+ isEnabled: () => me.has(e)
2162
2220
  });
2163
2221
  }
2164
- const Qr = {
2222
+ const nn = {
2165
2223
  mounted: (e, t) => {
2166
- Kr(e, t.value || {});
2224
+ rn(e, t.value || {});
2167
2225
  },
2168
2226
  // ignore ssr see #96:
2169
2227
  getSSRProps: () => ({})
2170
- }, Zr = { class: "fixed z-20 flex flex-col gap-2 p-2" }, dn = /* @__PURE__ */ $({
2228
+ }, on = { class: "fixed z-20 flex flex-col gap-2 p-2" }, Dn = /* @__PURE__ */ x({
2171
2229
  __name: "NotificationSystem",
2172
2230
  setup(e) {
2173
- const t = pr();
2231
+ const t = dn();
2174
2232
  return (r, n) => {
2175
- const o = Nr;
2176
- return Je((g(), y("div", Zr, [
2177
- (g(!0), y(te, null, fe(l(t), (a) => (g(), D(o, {
2178
- key: a.hash,
2233
+ const a = Wr;
2234
+ return Ie((m(), b("div", on, [
2235
+ (m(!0), b(oe, null, be(c(t), (o) => (m(), O(a, {
2236
+ key: o.hash,
2179
2237
  closeable: "",
2180
2238
  "with-border": "",
2181
- title: a.title,
2182
- message: a.message,
2183
- icon: a.icon,
2184
- loading: a.loading,
2185
- color: a.color,
2186
- onClose: (s) => l(t).splice(l(t).indexOf(a), 1)
2239
+ title: o.title,
2240
+ message: o.message,
2241
+ icon: o.icon,
2242
+ loading: o.loading,
2243
+ color: o.color,
2244
+ onClose: (s) => c(t).splice(c(t).indexOf(o), 1)
2187
2245
  }, null, 8, ["title", "message", "icon", "loading", "color", "onClose"]))), 128))
2188
2246
  ])), [
2189
- [l(Qr)]
2247
+ [c(nn)]
2190
2248
  ]);
2191
2249
  };
2192
2250
  }
2193
- }), Jr = { class: "flex gap-2" }, fn = /* @__PURE__ */ $({
2251
+ }), an = { class: "relative" }, Fn = /* @__PURE__ */ x({
2252
+ __name: "Overlay",
2253
+ props: {
2254
+ blur: { type: [Boolean, String], default: !1 },
2255
+ rounded: { default: "none" },
2256
+ opacity: { default: 30 },
2257
+ color: { default: "black" }
2258
+ },
2259
+ setup(e) {
2260
+ const t = e, r = v(() => {
2261
+ switch (t.blur) {
2262
+ case "sm":
2263
+ return "backdrop-blur-sm";
2264
+ case "md":
2265
+ case !0:
2266
+ return "backdrop-blur-md";
2267
+ case "lg":
2268
+ return "backdrop-blur-lg";
2269
+ default:
2270
+ return "123";
2271
+ }
2272
+ }), n = te(t), a = g(null), o = p(t.color).toRgb(), s = v(() => ({
2273
+ backgroundColor: `rgba(${o.r}, ${o.g}, ${o.b}, ${t.opacity / 100})`
2274
+ }));
2275
+ return (i, l) => (m(), b("div", an, [
2276
+ $(i.$slots, "default"),
2277
+ _("div", we(i.$attrs, {
2278
+ ref_key: "wrapperRef",
2279
+ ref: a,
2280
+ class: [[c(r), c(n).class], "absolute top-0 left-0 w-full h-full md:items-center overflow-hidden"],
2281
+ style: [c(n).style, c(s)]
2282
+ }), [
2283
+ $(i.$slots, "content")
2284
+ ], 16)
2285
+ ]));
2286
+ }
2287
+ }), Wn = /* @__PURE__ */ x({
2288
+ __name: "Paper",
2289
+ props: {
2290
+ size: { default: "md" },
2291
+ rounded: { default: "md" },
2292
+ withBorder: { type: Boolean, default: !1 },
2293
+ is: { default: "div" }
2294
+ },
2295
+ setup(e) {
2296
+ const r = te(e);
2297
+ return (n, a) => (m(), O(ue(n.is), {
2298
+ class: y(["container-low rounded-lg p-4", [
2299
+ {
2300
+ "border-transparent": !n.withBorder
2301
+ },
2302
+ c(r).class
2303
+ ]]),
2304
+ style: R([c(r).style])
2305
+ }, {
2306
+ default: L(() => [
2307
+ $(n.$slots, "default")
2308
+ ]),
2309
+ _: 3
2310
+ }, 8, ["class", "style"]));
2311
+ }
2312
+ }), sn = ["value", "placeholder", "type"], ln = /* @__PURE__ */ x({
2313
+ __name: "TextField",
2314
+ props: {
2315
+ modelValue: {},
2316
+ onChange: {},
2317
+ color: { default: "primary" },
2318
+ error: { type: Boolean },
2319
+ disabled: { type: Boolean },
2320
+ rounded: { default: "md" },
2321
+ size: { default: "md" },
2322
+ password: { type: Boolean },
2323
+ placeholder: {}
2324
+ },
2325
+ emits: ["change", "update:modelValue", "input", "click", "pointerdown", "pointerup"],
2326
+ setup(e, { expose: t, emit: r }) {
2327
+ const n = e, a = r, o = v(() => {
2328
+ switch (n.size) {
2329
+ case "sm":
2330
+ return {
2331
+ base: "h-6 px-2 py-1 text-xs"
2332
+ };
2333
+ case "md":
2334
+ return {
2335
+ base: "h-8 px-3 py-1 text-sm"
2336
+ };
2337
+ case "lg":
2338
+ return {
2339
+ base: "h-10 px-4 py-2 text-base"
2340
+ };
2341
+ }
2342
+ }), s = v(() => {
2343
+ if (n.error)
2344
+ return "text-error-container bg-surface-base border-error-container focus:border-error-container";
2345
+ switch (n.color) {
2346
+ case "secondary":
2347
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-secondary-container";
2348
+ case "tertiary":
2349
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-tertiary-container";
2350
+ case "error":
2351
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-error-container";
2352
+ case "primary":
2353
+ default:
2354
+ return "text-surface-on bg-surface-base border-surface-border-base focus:border-primary-container";
2355
+ }
2356
+ }), i = v(() => n.disabled ? "pointer-events-none filter grayscale opacity-60" : ""), l = te(n), u = g(null);
2357
+ function d(f) {
2358
+ var h;
2359
+ a("update:modelValue", ((h = f.target) == null ? void 0 : h.value) ?? ""), a("input", f);
2360
+ }
2361
+ return t({
2362
+ el: u
2363
+ }), (f, h) => (m(), b("input", {
2364
+ ref_key: "input",
2365
+ ref: u,
2366
+ value: f.modelValue,
2367
+ tabindex: "-1",
2368
+ class: y(["bg-back-2 border px-2 py-1 outline-none transition-background-color,border-color,color", [c(s), c(i), c(l).class, c(o).base]]),
2369
+ style: R([c(l).style]),
2370
+ placeholder: f.placeholder,
2371
+ type: n.password ? "password" : "text",
2372
+ onChange: h[0] || (h[0] = (w) => f.$emit("change", w)),
2373
+ onInput: d,
2374
+ onClick: h[1] || (h[1] = (w) => f.$emit("click", w)),
2375
+ onPointerdown: h[2] || (h[2] = (w) => f.$emit("pointerdown", w)),
2376
+ onPointerup: h[3] || (h[3] = (w) => f.$emit("pointerup", w))
2377
+ }, null, 46, sn));
2378
+ }
2379
+ }), cn = { class: "flex gap-2" }, Ln = /* @__PURE__ */ x({
2194
2380
  __name: "PinInput",
2195
2381
  props: {
2196
2382
  modelValue: {},
@@ -2199,36 +2385,37 @@ const Qr = {
2199
2385
  password: { type: Boolean }
2200
2386
  },
2201
2387
  setup(e) {
2202
- const t = e, r = v([]);
2203
- function n(a) {
2204
- a.preventDefault(), a.stopPropagation();
2205
- const s = r.value.findIndex((c) => c.el === a.target), i = a.target.value ?? "";
2206
- a.target.value = "", Array.from(i).forEach((c, d) => {
2207
- s + d >= r.value.length || (r.value[s + d].el.value = c, s + d + 1 < r.value.length ? (r.value[s + d + 1].el.focus(), r.value[s + d + 1].el.select()) : r.value[s + d].el.blur());
2388
+ const t = e, r = g([]);
2389
+ function n(o) {
2390
+ o.preventDefault(), o.stopPropagation();
2391
+ const s = r.value.findIndex((l) => l.el === o.target), i = o.target.value ?? "";
2392
+ o.target.value = "", Array.from(i).forEach((l, u) => {
2393
+ s + u >= r.value.length || (r.value[s + u].el.value = l, s + u + 1 < r.value.length ? (r.value[s + u + 1].el.focus(), r.value[s + u + 1].el.select()) : r.value[s + u].el.blur());
2208
2394
  });
2209
2395
  }
2210
- function o(a) {
2211
- a.preventDefault(), a.stopPropagation();
2212
- const s = a.target.value !== "";
2213
- a.target.value = "";
2214
- const i = r.value.findIndex((c) => c.el === a.target);
2396
+ function a(o) {
2397
+ o.preventDefault(), o.stopPropagation();
2398
+ const s = o.target.value !== "";
2399
+ o.target.value = "";
2400
+ const i = r.value.findIndex((l) => l.el === o.target);
2215
2401
  i !== 0 && (r.value[i - 1].el.focus(), r.value[i - 1].el.select(), s || (r.value[i - 1].el.value = ""));
2216
2402
  }
2217
- return (a, s) => (g(), y("div", Jr, [
2218
- (g(!0), y(te, null, fe(t.length, (i) => (g(), D(l($r), {
2403
+ return (o, s) => (m(), b("div", cn, [
2404
+ (m(!0), b(oe, null, be(t.length, (i) => (m(), O(ln, {
2219
2405
  ref_for: !0,
2220
2406
  ref_key: "inputs",
2221
2407
  ref: r,
2222
2408
  key: i,
2223
- class: "h-8 w-8 text-center",
2409
+ class: "w-8 text-center",
2410
+ style: { padding: "0" },
2224
2411
  password: t.password,
2225
- onPointerup: s[0] || (s[0] = (c) => c.target.select()),
2226
- onInput: Ze(n, ["stop", "prevent"]),
2227
- onKeydown: xt(o, ["backspace"])
2412
+ onPointerup: s[0] || (s[0] = (l) => l.target.select()),
2413
+ onInput: tt(n, ["stop", "prevent"]),
2414
+ onKeydown: $t(a, ["backspace"])
2228
2415
  }, null, 8, ["password"]))), 128))
2229
2416
  ]));
2230
2417
  }
2231
- }), hn = /* @__PURE__ */ $({
2418
+ }), jn = /* @__PURE__ */ x({
2232
2419
  __name: "Progress",
2233
2420
  props: {
2234
2421
  value: { default: 0 },
@@ -2240,7 +2427,7 @@ const Qr = {
2240
2427
  loading: { type: Boolean, default: !1 }
2241
2428
  },
2242
2429
  setup(e) {
2243
- const t = e, r = m(() => {
2430
+ const t = e, r = v(() => {
2244
2431
  switch (t.size) {
2245
2432
  case "sm":
2246
2433
  return "h-0.25";
@@ -2249,7 +2436,7 @@ const Qr = {
2249
2436
  case "lg":
2250
2437
  return "h-1";
2251
2438
  }
2252
- }), n = m(() => {
2439
+ }), n = v(() => {
2253
2440
  switch (t.color) {
2254
2441
  case "primary":
2255
2442
  return "bg-primary-container";
@@ -2260,262 +2447,576 @@ const Qr = {
2260
2447
  case "error":
2261
2448
  return "bg-error-7";
2262
2449
  }
2263
- }), o = ge(t);
2264
- return (a, s) => (g(), y("div", {
2265
- class: w(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [l(r), l(o).class]]),
2266
- style: T([l(o).style])
2450
+ }), a = te(t);
2451
+ return (o, s) => (m(), b("div", {
2452
+ class: y(["relative w-full self-center overflow-hidden bg-surface-high transition-background-color,border-color,color", [c(r), c(a).class]]),
2453
+ style: R([c(a).style])
2267
2454
  }, [
2268
- a.loading ? (g(), y("div", {
2455
+ o.loading ? (m(), b("div", {
2269
2456
  key: 1,
2270
- class: w(["loading-progress h-full", [l(n)]])
2271
- }, null, 2)) : (g(), y("div", {
2457
+ class: y(["loading-progress h-full", [c(n)]])
2458
+ }, null, 2)) : (m(), b("div", {
2272
2459
  key: 0,
2273
- class: w(["h-full", [l(n)]]),
2274
- style: T([{
2275
- width: `${(a.value - a.min) / (a.max - a.min) * 100}%`
2460
+ class: y(["h-full", [c(n)]]),
2461
+ style: R([{
2462
+ width: `${(o.value - o.min) / (o.max - o.min) * 100}%`
2276
2463
  }])
2277
2464
  }, null, 6))
2278
2465
  ], 6));
2279
2466
  }
2280
- }), en = { class: "relative" }, pn = /* @__PURE__ */ $({
2281
- __name: "Indicator",
2467
+ }), ht = {
2468
+ primary: ["#e5f7ff", "#d3ebfa", "#a9d4f1", "#7cbde9", "#57a9e0", "#3f9cdc", "#3096dc", "#1f82c4", "#0f73b0", "#00649c", "#082f49"],
2469
+ secondary: ["#e9fbf0", "#dcf1e3", "#badfc7", "#96cea9", "#77bf90", "#63b580", "#58b077", "#479a64", "#3b8a58", "#2c7749", "#022c22"],
2470
+ tertiary: ["#fff7e1", "#ffedcd", "#fcd99e", "#f9c46b", "#f7b23f", "#f6a724", "#f5a113", "#da8c04", "#c37d00", "#aa6a00", "#572508"],
2471
+ error: ["#ffeaea", "#fcd5d5", "#f2a8a9", "#ea7a7a", "#e25353", "#de3939", "#dd2b2b", "#c41e1f", "#af171a", "#9a0913", "#450a0a"],
2472
+ surface: ["#fafafa", "#f5f5f5", "#e5e5e5", "#d4d4d4", "#a3a3a3", "#737373", "#525252", "#404040", "#262626", "#171717", "#121212"]
2473
+ }, Oe = {
2474
+ name: "dark",
2475
+ scheme: "dark",
2476
+ colors: ht
2477
+ }, un = {
2478
+ name: "light",
2479
+ scheme: "light",
2480
+ colors: ht
2481
+ }, Un = Symbol("Notifications"), mt = Ct([]);
2482
+ function dn() {
2483
+ return mt;
2484
+ }
2485
+ class Gn {
2486
+ static show(t) {
2487
+ t.hash = Math.random().toString(36), mt.push(t);
2488
+ }
2489
+ }
2490
+ const Pe = [0.96, 0.907, 0.805, 0.697, 0.605, 0.547, 0.518, 0.445, 0.395, 0.34, 0.28], Ke = [0.32, 0.16, 0.08, 0.04, 0, 0, 0.04, 0.08, 0.16, 0.32, 0.64];
2491
+ function fn(e) {
2492
+ const t = p(e).toHsl().l;
2493
+ return Pe.reduce(
2494
+ (r, n) => Math.abs(n - t) < Math.abs(r - t) ? n : r
2495
+ );
2496
+ }
2497
+ function pn(e) {
2498
+ const t = p(e), r = fn(t), n = Pe.findIndex((o) => o === r), a = Pe.map((o) => {
2499
+ const s = p({ h: t.toHsl().h, s: t.toHsl().s, l: o }), i = Ke[n] - Ke[n];
2500
+ return i >= 0 ? s.saturate(i * 100) : s.desaturate(i * -100), s;
2501
+ });
2502
+ return { baseColorIndex: n, colors: a.map((o) => o.toHexString()) };
2503
+ }
2504
+ function qn(e) {
2505
+ return pn(e).colors;
2506
+ }
2507
+ const Xn = /* @__PURE__ */ x({
2508
+ __name: "RokuProvider",
2282
2509
  props: {
2283
- color: { default: "primary" },
2284
- size: { default: "md" },
2285
- position: { default: "top-right" },
2286
- ping: { type: Boolean }
2510
+ is: { default: "div" },
2511
+ theme: { default() {
2512
+ return typeof window > "u" || document.documentElement.dataset.scheme === "dark" ? Oe : un;
2513
+ } }
2287
2514
  },
2288
2515
  setup(e) {
2289
- const t = e, r = m(() => {
2290
- switch (t.size) {
2291
- case "sm":
2292
- return "w-2 h-2";
2293
- case "md":
2294
- return "w-3 h-3";
2295
- case "lg":
2296
- return "w-4 h-4";
2297
- default:
2298
- return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `w-${t.size} h-${t.size}` : t.size;
2516
+ const t = e, r = g(0), n = g(0);
2517
+ se && new ResizeObserver(() => {
2518
+ const i = window.innerWidth - document.body.clientWidth;
2519
+ i !== 0 && (r.value = i), n.value = i;
2520
+ }).observe(document.body);
2521
+ const a = v(() => n.value === r.value ? "0px" : `${r.value}px`), o = at(t.theme);
2522
+ return (s, i) => (m(), O(ue(s.is), {
2523
+ style: R([
2524
+ c(o),
2525
+ { paddingRight: c(a) }
2526
+ ]),
2527
+ class: "text-surface-on transition-background-color,border-color,color"
2528
+ }, {
2529
+ default: L(() => [
2530
+ $(s.$slots, "default")
2531
+ ]),
2532
+ _: 3
2533
+ }, 8, ["style"]));
2534
+ }
2535
+ }), hn = { class: "w-full flex items-center" }, mn = ["placeholder", "value"], vn = /* @__PURE__ */ _("i", { class: "i-tabler-chevron-down pointer-events-none absolute right-2" }, null, -1), bn = {
2536
+ key: 0,
2537
+ class: "flex cursor-default items-center justify-between gap-2 rounded p-1 px-2"
2538
+ }, gn = ["onPointerdown", "onHover"], yn = { key: 0 }, wn = /* @__PURE__ */ _("i", { class: "i-tabler-check h-3 w-3" }, null, -1), _n = [
2539
+ wn
2540
+ ], Yn = /* @__PURE__ */ x({
2541
+ __name: "Select",
2542
+ props: /* @__PURE__ */ Y({
2543
+ options: { default() {
2544
+ return [];
2545
+ } },
2546
+ size: { default: "md" },
2547
+ noneText: { default: "No options" },
2548
+ placeholder: { default: "" }
2549
+ }, {
2550
+ modelValue: { default: void 0 },
2551
+ modelModifiers: {}
2552
+ }),
2553
+ emits: /* @__PURE__ */ Y(["change"], ["update:modelValue"]),
2554
+ setup(e, { emit: t }) {
2555
+ const r = e, n = t, a = K(e, "modelValue"), o = g(null), s = g(null), { focused: i } = Pr(o), l = v(() => r.options.map((k) => M(k)).indexOf(a.value)), u = g(-1), d = g(-1);
2556
+ G(() => {
2557
+ i.value || (d.value = -1);
2558
+ }), G(() => {
2559
+ a.value = M(r.options[l.value]);
2560
+ }), de(a, () => {
2561
+ n("change", a.value);
2562
+ });
2563
+ const f = r.options, h = v(() => f[l.value]), w = v(() => C(h.value));
2564
+ function C(k) {
2565
+ if (k)
2566
+ return typeof k == "string" || typeof k == "symbol" || typeof k == "number" ? k : k.label;
2567
+ }
2568
+ function M(k) {
2569
+ if (k)
2570
+ return typeof k == "string" || typeof k == "symbol" || typeof k == "number" ? k : k.id;
2571
+ }
2572
+ Te("ArrowDown", (k) => {
2573
+ i.value && (k.preventDefault(), d.value = (d.value + 1) % f.length);
2574
+ }), Te("ArrowUp", (k) => {
2575
+ i.value && (k.preventDefault(), d.value = (d.value - 1 + f.length) % f.length);
2576
+ }), Te("Enter", () => {
2577
+ i.value && d.value !== -1 && (a.value = M(f[d.value]), i.value = !1);
2578
+ });
2579
+ function P(k) {
2580
+ if (!i.value) {
2581
+ i.value = !0;
2582
+ return;
2299
2583
  }
2300
- }), n = kt(), o = m(() => {
2301
- if (!n.label)
2302
- return "";
2303
- switch (t.size) {
2584
+ a.value = M(k), i.value = !1;
2585
+ }
2586
+ const fe = v(() => ({
2587
+ input: "container-base focus:border-primary-container"
2588
+ })), pe = v(() => {
2589
+ switch (r.size) {
2304
2590
  case "sm":
2305
- return "text-sm children:px-1.5";
2306
- case "md":
2307
- return "text-md children:px-2";
2591
+ return {
2592
+ wrapper: "h-6 w-full py-1 pl-1.5 pr-6 text-sm",
2593
+ dropdown: "text-sm children:py-1"
2594
+ };
2308
2595
  case "lg":
2309
- return "text-lg children:px-2.5";
2596
+ return {
2597
+ wrapper: "h-10 w-full py-2 pl-3 pr-10 text-lg",
2598
+ dropdown: "text-lg children:py-2"
2599
+ };
2600
+ default:
2601
+ return {
2602
+ wrapper: "h-8 w-full py-1 pl-2 pr-8 text-base",
2603
+ dropdown: "text-base children:py-1"
2604
+ };
2310
2605
  }
2311
- }), a = m(() => {
2312
- switch (t.position) {
2313
- case "top-left":
2314
- return "top-0 left-0 -translate-x-1/2 -translate-y-1/2";
2315
- case "top-right":
2316
- return "top-0 right-0 translate-x-1/2 -translate-y-1/2";
2317
- case "bottom-left":
2318
- return "bottom-0 left-0 -translate-x-1/2 translate-y-1/2";
2319
- case "bottom-right":
2320
- return "bottom-0 right-0 translate-x-1/2 translate-y-1/2";
2606
+ });
2607
+ return (k, H) => (m(), b("div", {
2608
+ ref_key: "wrapperRef",
2609
+ ref: s,
2610
+ class: "r-select-wrapper relative"
2611
+ }, [
2612
+ _("div", hn, [
2613
+ _("input", {
2614
+ ref_key: "inputRef",
2615
+ ref: o,
2616
+ class: y([[c(fe).input, c(pe).wrapper], "r-select-input cursor-pointer border rounded outline-none"]),
2617
+ placeholder: k.placeholder,
2618
+ readonly: "",
2619
+ value: c(w),
2620
+ "aria-haspopup": "listbox",
2621
+ autocomplete: "off",
2622
+ tabindex: "-1",
2623
+ onFocus: H[0] || (H[0] = (q) => i.value = !0)
2624
+ }, null, 42, mn),
2625
+ vn
2626
+ ]),
2627
+ c(i) ? (m(), b("div", {
2628
+ key: 0,
2629
+ class: y([c(pe).dropdown, "absolute z-1 mt-2 w-full flex-col overflow-hidden border container-base rounded p-1"])
2630
+ }, [
2631
+ c(f).length === 0 ? (m(), b("div", bn, ae(k.noneText), 1)) : (m(!0), b(oe, { key: 1 }, be(c(f), (q, T) => (m(), b("div", {
2632
+ key: M(q),
2633
+ class: y([{
2634
+ "hover:bg-surface-high": c(d) !== T,
2635
+ "container-filled-primary": c(d) === T
2636
+ }, "flex cursor-pointer items-center justify-between gap-2 rounded p-1 px-2"]),
2637
+ onPointerdown: (z) => P(q),
2638
+ onHover: (z) => u.value = T
2639
+ }, [
2640
+ At(ae(C(q)) + " ", 1),
2641
+ q === c(h) ? (m(), b("div", yn, _n)) : A("", !0)
2642
+ ], 42, gn))), 128))
2643
+ ], 2)) : A("", !0)
2644
+ ], 512));
2645
+ }
2646
+ }), xn = { class: "relative inline-block w-full" }, Zn = /* @__PURE__ */ x({
2647
+ __name: "Slider",
2648
+ props: /* @__PURE__ */ Y({
2649
+ size: { default: "md" },
2650
+ animate: { type: Boolean, default: !1 },
2651
+ width: {},
2652
+ options: {},
2653
+ min: { default: 0 },
2654
+ max: { default: 100 },
2655
+ step: { default: 1 },
2656
+ tickNum: {},
2657
+ color: { default: "primary" },
2658
+ minWidth: { default: 12 }
2659
+ }, {
2660
+ modelValue: {
2661
+ default: void 0
2662
+ },
2663
+ modelModifiers: {}
2664
+ }),
2665
+ emits: ["update:modelValue"],
2666
+ setup(e) {
2667
+ const t = e;
2668
+ function r(T, z, B) {
2669
+ const N = [];
2670
+ for (let X = T; X <= z; X += B)
2671
+ N.push(X);
2672
+ return N[N.length - 1] !== z && N.push(z), N;
2673
+ }
2674
+ function n(T, z) {
2675
+ const B = [];
2676
+ B.push(z[0]);
2677
+ const N = (z.length - 1) / (T - 1);
2678
+ for (let X = 1; X < T - 1; X++)
2679
+ B.push(z[Math.round(X * N)]);
2680
+ return B.push(z[z.length - 1]), B;
2681
+ }
2682
+ 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 = K(e, "modelValue"), l = v(() => o.value.length ?? 0), u = g(o.value.includes(i.value) ? o.value.indexOf(i.value) : 0);
2683
+ function d(T) {
2684
+ return o.value.indexOf(T);
2685
+ }
2686
+ const f = v(() => {
2687
+ switch (t.color) {
2688
+ case "primary":
2689
+ return "bg-primary-container";
2690
+ case "secondary":
2691
+ return "bg-secondary-container";
2692
+ case "tertiary":
2693
+ return "bg-tertiary-container";
2694
+ case "error":
2695
+ return "bg-error-container";
2321
2696
  }
2322
- }), s = m(() => {
2697
+ }), h = v(() => `dark:bg-white bg-${t.color}-container`), w = v(() => {
2323
2698
  switch (t.color) {
2324
2699
  case "primary":
2325
- return "bg-primary-container text-primary-on";
2700
+ return "dark:bg-primary-container bg-white";
2326
2701
  case "secondary":
2327
- return "bg-secondary-container text-secondary-on";
2702
+ return "dark:bg-secondary-container bg-white";
2328
2703
  case "tertiary":
2329
- return "bg-tertiary-container text-tertiary-on";
2704
+ return "dark:bg-tertiary-container bg-white";
2330
2705
  case "error":
2331
- return "bg-error-container text-error-on";
2706
+ return "dark:bg-error-container bg-white";
2332
2707
  }
2333
2708
  });
2334
- return (i, c) => (g(), y("div", en, [
2335
- M("div", {
2336
- class: w([[l(a), l(o)], "absolute z-1"])
2709
+ G(() => {
2710
+ i.value = o.value[u.value];
2711
+ });
2712
+ const C = g(), M = g(), P = Br(C), fe = g(!1);
2713
+ function pe(T) {
2714
+ if (!fe.value)
2715
+ return;
2716
+ if (!(T.buttons === 1)) {
2717
+ fe.value = !1;
2718
+ return;
2719
+ }
2720
+ T.preventDefault(), T.stopPropagation();
2721
+ const { clientX: B } = T, N = P.left.value, vt = P.right.value - N, Ae = Math.round((B - N) / vt * (l.value - 1));
2722
+ Ae < 0 || Ae > l.value - 1 || (u.value = Ae);
2723
+ }
2724
+ G(() => {
2725
+ u.value = d(i.value);
2726
+ });
2727
+ function k(T) {
2728
+ T.preventDefault(), T.stopPropagation(), fe.value = !0, pe(T);
2729
+ }
2730
+ F(C, "pointerdown", k), ee(() => {
2731
+ F(document, "pointermove", pe), u.value = Math.max(0, d(i.value));
2732
+ });
2733
+ const H = v(() => {
2734
+ switch (t.size) {
2735
+ case "sm":
2736
+ return {
2737
+ wrapper: "h-2",
2738
+ innerWrapper: "px-0.5 h-1",
2739
+ content: "h-1",
2740
+ tick: "h-0.5 w-0.5 -translate-x-0.25 -translate-y-0.25",
2741
+ indicator: "h-2 w-2 -translate-x-1 -translate-y-1",
2742
+ indicatorInner: "h-1 w-1 -translate-x-0.5 -translate-y-0.5",
2743
+ progress: "-mx-0.5"
2744
+ };
2745
+ case "md":
2746
+ return {
2747
+ wrapper: "h-4",
2748
+ innerWrapper: "px-1 h-2",
2749
+ content: "h-2",
2750
+ tick: "h-1 w-1 -translate-x-0.5 -translate-y-0.5",
2751
+ indicator: "h-4 w-4 -translate-x-2 -translate-y-2",
2752
+ indicatorInner: "h-2 w-2 -translate-x-1 -translate-y-1",
2753
+ progress: "-mx-1"
2754
+ };
2755
+ case "lg":
2756
+ return {
2757
+ wrapper: "h-6",
2758
+ innerWrapper: "px-1.5 h-3",
2759
+ content: "h-3",
2760
+ tick: "h-1.5 w-1.5 -translate-x-0.75 -translate-y-0.75",
2761
+ indicator: "h-6 w-6 -translate-x-3 -translate-y-3",
2762
+ indicatorInner: "h-3 w-3 -translate-x-1.5 -translate-y-1.5",
2763
+ progress: "-mx-1.5"
2764
+ };
2765
+ }
2766
+ }), q = v(() => t.animate ? {
2767
+ indicator: "transition-left",
2768
+ progress: "transition-width"
2769
+ } : {
2770
+ indicator: "",
2771
+ progress: ""
2772
+ });
2773
+ return (T, z) => (m(), b("div", xn, [
2774
+ _("div", {
2775
+ ref_key: "wrapper",
2776
+ ref: C,
2777
+ type: "size",
2778
+ class: y(["flex w-full cursor-pointer items-center", c(H).wrapper]),
2779
+ onTouchmove: z[0] || (z[0] = tt(() => {
2780
+ }, ["prevent"]))
2337
2781
  }, [
2338
- t.ping ? (g(), y("div", {
2339
- key: 0,
2340
- class: w(["absolute animate-ping rounded-full border-2 border-transparent box-content", [
2341
- {
2342
- [l(r)]: !i.$slots.label
2343
- },
2344
- l(s)
2345
- ]])
2346
- }, [
2347
- i.$slots.label ? H(i.$slots, "label", { key: 0 }) : z("", !0)
2348
- ], 2)) : z("", !0),
2349
- M("div", {
2350
- class: w(["top-0 rounded-full border-2 border-surface-low box-content", [
2351
- {
2352
- [l(r)]: !i.$slots.label
2353
- },
2354
- l(s)
2355
- ]])
2782
+ _("div", {
2783
+ class: y(["rounded-full w-full bg-surface-lowest transition-background-color,border-color,color", c(H).innerWrapper])
2356
2784
  }, [
2357
- i.$slots.label ? H(i.$slots, "label", { key: 0 }) : z("", !0)
2785
+ _("div", {
2786
+ class: y(["relative flex", c(H).content]),
2787
+ style: R({
2788
+ width: `${t.width}rem`,
2789
+ minWidth: `${t.minWidth}rem`
2790
+ })
2791
+ }, [
2792
+ (m(!0), b(oe, null, be(c(s), (B) => (m(), b("div", {
2793
+ key: B,
2794
+ style: R({
2795
+ left: `${d(B) / (c(l) - 1) * 100}%`
2796
+ }),
2797
+ class: y(["absolute top-50% rounded-full bg-white", c(H).tick])
2798
+ }, null, 6))), 128)),
2799
+ c(u) !== -1 ? (m(), b("div", {
2800
+ key: 0,
2801
+ ref_key: "indicator",
2802
+ ref: M,
2803
+ class: y(["absolute top-50% cursor-pointer rounded-full transition-background-color,border-color,color", [c(H).indicator, c(q).indicator, c(h)]]),
2804
+ style: R({
2805
+ left: `${c(u) / (c(l) - 1) * 100}%`
2806
+ })
2807
+ }, [
2808
+ _("div", {
2809
+ class: y(["pointer-events-none absolute left-50% top-50% rounded-full transition-background-color,border-color,color", [c(H).indicatorInner, c(w)]])
2810
+ }, null, 2)
2811
+ ], 6)) : A("", !0),
2812
+ _("div", {
2813
+ class: y(["pointer-events-none h-full rounded-full", [c(H).progress, c(q).progress, c(f)]]),
2814
+ style: R({
2815
+ width: `${c(u) / (c(l) - 1) * 100}%`
2816
+ })
2817
+ }, null, 6)
2818
+ ], 6)
2358
2819
  ], 2)
2359
- ], 2),
2360
- H(i.$slots, "default")
2820
+ ], 34),
2821
+ _("div", {
2822
+ class: "relative mx-1 h-1em text-xs text-surface-onlow",
2823
+ style: R({
2824
+ width: `${t.width}rem`
2825
+ })
2826
+ }, [
2827
+ (m(!0), b(oe, null, be(c(s), (B, N) => (m(), b("div", {
2828
+ key: N,
2829
+ style: R({
2830
+ left: `${d(B) / (c(l) - 1) * 100}%`
2831
+ }),
2832
+ class: y(["absolute w-auto flex rounded-full -translate-x-50%", c(H).tick])
2833
+ }, ae(B), 7))), 128))
2834
+ ], 4)
2361
2835
  ]));
2362
2836
  }
2363
- }), mn = /* @__PURE__ */ $({
2364
- __name: "Chip",
2365
- props: /* @__PURE__ */ ee({
2366
- is: { default: "img" },
2367
- src: {},
2837
+ }), kn = ["id"], Sn = ["for"], Mn = ["for"], $n = /* @__PURE__ */ x({
2838
+ inheritAttrs: !1,
2839
+ __name: "Switch",
2840
+ props: /* @__PURE__ */ Y({
2368
2841
  size: { default: "md" },
2369
- style: {},
2370
- class: {},
2371
- rounded: { default: "full" }
2842
+ animate: { type: Boolean, default: !0 },
2843
+ options: {},
2844
+ label: {},
2845
+ id: {},
2846
+ rounded: { default: "full" },
2847
+ color: { default: "primary" },
2848
+ disabled: { type: Boolean },
2849
+ offIcon: {},
2850
+ onIcon: {}
2372
2851
  }, {
2373
- modelValue: { type: Boolean, default: void 0 },
2852
+ modelValue: { type: Boolean },
2374
2853
  modelModifiers: {}
2375
2854
  }),
2376
2855
  emits: ["update:modelValue"],
2377
2856
  setup(e) {
2378
- const t = e, r = me(e, "modelValue"), n = ge(t), o = m(() => {
2857
+ const t = e, r = K(e, "modelValue"), n = g(null), a = g(!1), o = v(() => {
2379
2858
  switch (t.size) {
2380
2859
  case "sm":
2381
- return "px-3 text-sm h-6";
2860
+ return {
2861
+ icon: "text-xs mx-0.5",
2862
+ wrapper: "h-4 w-8",
2863
+ indicator: a.value ? "h-3 w-4" : "h-3 w-3",
2864
+ inactive: "left-[calc(0.125rem-1px)]",
2865
+ active: a.value ? "left-[calc(0.875rem-1px)]" : "left-[calc(1.125rem-1px)]"
2866
+ };
2382
2867
  case "md":
2383
- return "px-6 h-8 text-base";
2868
+ return {
2869
+ icon: "text-sm mx-1",
2870
+ wrapper: "h-6 w-12",
2871
+ indicator: a.value ? "h-4 w-5" : "h-4 w-4",
2872
+ inactive: "left-[calc(0.25rem-1px)]",
2873
+ active: a.value ? "left-[calc(1.5rem-1px)]" : "left-[calc(1.75rem-1px)]"
2874
+ };
2384
2875
  case "lg":
2385
- return "px-8 h-10 text-lg";
2876
+ return {
2877
+ icon: "text-lg mx-2",
2878
+ wrapper: "h-8 w-16",
2879
+ indicator: a.value ? "h-6 w-8" : "h-6 w-6",
2880
+ inactive: "left-[calc(0.25rem-1px)]",
2881
+ active: a.value ? "left-[calc(1.75rem-1px)]" : "left-[calc(2.25rem-1px)]"
2882
+ };
2386
2883
  }
2387
- }), a = m(() => r.value ? "container-filled-primary border-transparent" : "container-base"), s = m(() => r.value !== void 0), i = m(() => s.value ? "cursor-pointer" : "");
2388
- return (c, d) => (g(), y("span", {
2389
- class: w(["inline-flex items-center gap-1", [l(n).class, l(o), l(a), l(i)]]),
2390
- style: T([l(n).style]),
2391
- onPointerup: d[0] || (d[0] = (f) => l(s) && (r.value = !r.value))
2392
- }, [
2393
- c.$slots.leftSection ? H(c.$slots, "leftSection", { key: 0 }) : z("", !0),
2394
- H(c.$slots, "default"),
2395
- c.$slots.rightSection ? H(c.$slots, "rightSection", { key: 1 }) : z("", !0)
2396
- ], 38));
2397
- }
2398
- }), gn = /* @__PURE__ */ $({
2399
- __name: "Avatar",
2400
- props: {
2401
- is: { default: "img" },
2402
- src: {},
2403
- size: { default: "md" },
2404
- style: {},
2405
- class: {}
2406
- },
2407
- setup(e) {
2408
- const t = e, r = m(() => {
2409
- switch (t.size) {
2410
- case "sm":
2411
- return "--size: 1.5rem;";
2412
- case "md":
2413
- return "--size: 2rem;";
2414
- case "lg":
2415
- return "--size: 3rem;";
2416
- default:
2417
- return typeof t.size == "number" || !Number.isNaN(Number(t.size)) ? `--size: ${t.size}rem;` : `--size: ${t.size};`;
2884
+ }), s = v(() => t.animate ? {
2885
+ indicator: "transition-all",
2886
+ progress: "transition-width"
2887
+ } : {
2888
+ indicator: "",
2889
+ progress: ""
2890
+ }), i = st(t), l = v(() => {
2891
+ let d = "bg-primary-container";
2892
+ switch (t.color) {
2893
+ case "secondary":
2894
+ d = "bg-secondary-7";
2895
+ break;
2896
+ case "tertiary":
2897
+ d = "bg-tertiary-7";
2898
+ break;
2899
+ case "error":
2900
+ d = "bg-error-7";
2901
+ break;
2418
2902
  }
2419
- }), n = v(!1), o = v(null);
2420
- function a() {
2421
- n.value = !0;
2422
- }
2423
- return se(() => {
2424
- var s;
2425
- (s = o.value) != null && s.complete && a();
2426
- }), (s, i) => (g(), y(te, null, [
2427
- s.src ? (g(), D(_e(s.is), Pe({
2903
+ return {
2904
+ wrapper: r.value ? `border border-transparent ${d}` : "bg-surface-lowest border border-surface-border-low",
2905
+ indicator: t.disabled ? "bg-surface-high" : "bg-white text-primary-container"
2906
+ };
2907
+ }), u = te(t);
2908
+ return (d, f) => (m(), b("div", {
2909
+ role: "switch",
2910
+ class: y(["relative flex items-center gap-2", {
2911
+ "pointer-events-none filter-grayscale op60": t.disabled
2912
+ }])
2913
+ }, [
2914
+ Ie(_("input", we({
2915
+ id: c(i),
2916
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => r.value = h)
2917
+ }, d.$attrs, {
2918
+ class: "hidden",
2919
+ type: "checkbox"
2920
+ }), null, 16, kn), [
2921
+ [Tt, r.value]
2922
+ ]),
2923
+ _("label", {
2924
+ class: "leading-0 cursor-pointer!",
2925
+ for: c(i)
2926
+ }, [
2927
+ _("div", {
2928
+ ref_key: "wrapper",
2929
+ ref: n,
2930
+ class: y([[c(o).wrapper, c(l).wrapper, c(u).class], "relative inline-block transition-all"]),
2931
+ style: R([c(u).style]),
2932
+ onPointerdown: f[1] || (f[1] = (h) => a.value = !0),
2933
+ onPointerup: f[2] || (f[2] = (h) => a.value = !1),
2934
+ onPointerleave: f[3] || (f[3] = (h) => a.value = !1),
2935
+ onPointerenter: f[4] || (f[4] = (h) => h.buttons === 1 && (a.value = !0))
2936
+ }, [
2937
+ _("div", {
2938
+ class: y(["absolute top-50% -translate-y-50%", [c(o).indicator, c(l).indicator, c(s).indicator, r.value ? c(o).active : c(o).inactive, c(u).class]]),
2939
+ style: R([c(u).style])
2940
+ }, null, 6),
2941
+ _("i", {
2942
+ class: y(["absolute top-1/2 -translate-y-50%", [c(o).icon, {
2943
+ [`left-0 text-${d.color}-on`]: r.value,
2944
+ "right-0 text-surface-on ": !r.value,
2945
+ [d.onIcon ?? ""]: r.value && d.onIcon,
2946
+ [d.offIcon ?? ""]: !r.value && d.offIcon
2947
+ }]])
2948
+ }, null, 2)
2949
+ ], 38)
2950
+ ], 8, Sn),
2951
+ d.label ? (m(), b("label", {
2428
2952
  key: 0,
2429
- ref_key: "img",
2430
- ref: o,
2431
- style: [s.style, l(r)],
2432
- placeholder: "",
2433
- src: s.src,
2434
- class: ["h-[var(--size)] w-[var(--size)] rounded-full object-cover", [{ hidden: !l(n) }, t.class]]
2435
- }, s.$attrs, { onLoad: a }), null, 16, ["style", "src", "class"])) : z("", !0),
2436
- l(n) ? z("", !0) : (g(), y("div", {
2437
- key: 1,
2438
- class: "h-[var(--size)] w-[var(--size)] animate-pulse rounded-full bg-surface-high object-cover border-transparent",
2439
- style: T([s.style, l(r)])
2440
- }, null, 4))
2441
- ], 64));
2953
+ for: c(i)
2954
+ }, ae(d.label), 9, Mn)) : A("", !0)
2955
+ ], 2));
2442
2956
  }
2443
- }), bn = /* @__PURE__ */ $({
2957
+ }), Kn = /* @__PURE__ */ x({
2444
2958
  __name: "ThemeSwitch",
2445
2959
  setup(e) {
2446
- const t = v(void 0);
2447
- return X(() => {
2448
- be && (t.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
2449
- }), se(() => {
2450
- if (be) {
2960
+ const t = g(void 0);
2961
+ return G(() => {
2962
+ se && (t.value === !0 ? (document.documentElement.setAttribute("data-scheme", "dark"), localStorage.setItem("scheme", "dark")) : t.value === !1 && (document.documentElement.setAttribute("data-scheme", "light"), localStorage.setItem("scheme", "light")));
2963
+ }), ee(() => {
2964
+ if (se) {
2451
2965
  const r = localStorage.getItem("scheme");
2452
2966
  r === "dark" ? t.value = !0 : r === "light" ? t.value = !1 : t.value = window.matchMedia("(prefers-color-scheme: dark)").matches;
2453
2967
  }
2454
2968
  }), (r, n) => {
2455
- const o = Lt;
2456
- return g(), D(o, {
2457
- modelValue: l(t),
2458
- "onUpdate:modelValue": n[0] || (n[0] = (a) => Mt(t) ? t.value = a : null),
2969
+ const a = $n;
2970
+ return m(), O(a, {
2971
+ modelValue: c(t),
2972
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => Rt(t) ? t.value = o : null),
2459
2973
  color: "secondary",
2460
2974
  "on-icon": "i-tabler-moon",
2461
2975
  "off-icon": "i-tabler-sun"
2462
2976
  }, null, 8, ["modelValue"]);
2463
2977
  };
2464
2978
  }
2465
- }), vn = /* @__PURE__ */ $({
2466
- __name: "Paper",
2467
- props: {
2468
- size: { default: "md" },
2469
- rounded: { default: "md" },
2470
- withBorder: { type: Boolean, default: !1 },
2471
- is: { default: "div" }
2472
- },
2473
- setup(e) {
2474
- const r = ge(e);
2475
- return (n, o) => (g(), D(_e(n.is), {
2476
- class: w(["container-low rounded-lg p-4", [
2477
- {
2478
- "border-transparent": !n.withBorder
2479
- },
2480
- l(r).class
2481
- ]]),
2482
- style: T([l(r).style])
2483
- }, {
2484
- default: J(() => [
2485
- H(n.$slots, "default")
2486
- ]),
2487
- _: 3
2488
- }, 8, ["class", "style"]));
2489
- }
2490
2979
  });
2491
2980
  export {
2492
- gn as Avatar,
2493
- St as Btn,
2494
- mn as Chip,
2495
- pn as Indicator,
2496
- un as Modal,
2497
- Nr as Notification,
2498
- dn as NotificationSystem,
2499
- on as Notifications,
2500
- vn as Paper,
2501
- fn as PinInput,
2502
- hn as Progress,
2503
- ln as RokuProvider,
2504
- cn as Select,
2505
- rn as Slider,
2506
- Lt as Switch,
2507
- $r as TextField,
2508
- Ir as ThemeProvider,
2509
- bn as ThemeSwitch,
2510
- Te as darkTheme,
2511
- an as generateColors,
2512
- gr as generateColorsMap,
2513
- hr as lightTheme,
2514
- nn as notificationsSymbol,
2515
- ot as themeColors,
2516
- vr as useCurrentTheme,
2517
- sn as useCurrentThemeScheme,
2518
- pr as useNotifications,
2519
- br as useRootTheme,
2520
- st as useThemeStyles
2981
+ An as AspectRatio,
2982
+ zt as Avatar,
2983
+ rt as Btn,
2984
+ Tn as ChatContainer,
2985
+ Rn as ChatMessage,
2986
+ zn as ChatSystem,
2987
+ Bn as Chip,
2988
+ On as ColorInput,
2989
+ Ht as ColorSwatch,
2990
+ Pn as Drawer,
2991
+ In as Dropzone,
2992
+ it as FullscreenOverlay,
2993
+ Nn as Image,
2994
+ Hn as Indicator,
2995
+ Vn as Modal,
2996
+ Wr as Notification,
2997
+ Dn as NotificationSystem,
2998
+ Gn as Notifications,
2999
+ Fn as Overlay,
3000
+ Wn as Paper,
3001
+ Ln as PinInput,
3002
+ jn as Progress,
3003
+ Xn as RokuProvider,
3004
+ Yn as Select,
3005
+ Zn as Slider,
3006
+ $n as Switch,
3007
+ ln as TextField,
3008
+ hr as ThemeProvider,
3009
+ Kn as ThemeSwitch,
3010
+ Oe as darkTheme,
3011
+ qn as generateColors,
3012
+ pn as generateColorsMap,
3013
+ un as lightTheme,
3014
+ Un as notificationsSymbol,
3015
+ ht as themeColors,
3016
+ ur as useCurrentTheme,
3017
+ En as useCurrentThemeScheme,
3018
+ st as useId,
3019
+ dn as useNotifications,
3020
+ cr as useRootTheme,
3021
+ at as useThemeStyles
2521
3022
  };