@versini/sassysaint 5.4.3 → 5.4.5

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.
@@ -1,17 +1,17 @@
1
1
  import { jsx as s, jsxs as v, Fragment as O } from "react/jsx-runtime";
2
- import { g as Ne, ACTION_RESTORE as we, ACTION_MESSAGE as R, ROLE_ASSISTANT as E, ACTION_RESET as ne, ACTION_MODEL as ie, ACTION_ENGINE as se, ACTION_STREAMING as de, ACTION_SORT as Ie, ACTION_SEARCH as Ee, ACTION_SET_TAGS as le, ACTION_RESET_TAGS as ce, ACTION_TOGGLE_TAG as ge, AppContext as $, TagsContext as H, un as U, b as Ce, j as Re, R as ue, isLastMessageFromRole as me, O as Se, TOOLBOX as Y, ROLE_INTERNAL as j, ROLE_USER as P, ROLE_SYSTEM as Be, ROLE_HIDDEN as Ae, DEFAULT_AI_ENGINE as M, STATS_SEPARATOR as q, CLIPBOARD_TAG as X, TYPE_QUESTION as Me, SEND as Le, ERROR_MESSAGE as Oe, getMessageContaintWrapperClass as $e, MessagesContainerHeader as Ue, HistoryContext as ze, d as Ve, AppFooter as De, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as Pe, LOCAL_STORAGE_SORT as He } from "./index.C2RuFHK-.js";
3
- import { serviceCall as he, SERVICE_TYPES as pe, n as je, restCall as Ge, we as We, E as Q, f as Fe } from "./index.CnlfkUg1.js";
4
- import C, { useContext as S, useState as A, useRef as B, useEffect as _, lazy as Ke, Suspense as Z, useReducer as V } from "react";
2
+ import { g as Ie, ACTION_RESTORE as Ne, ACTION_MESSAGE as C, ROLE_ASSISTANT as S, ACTION_RESET as ie, ACTION_MODEL as ne, ACTION_ENGINE as se, ACTION_STREAMING as de, ACTION_SORT as we, ACTION_SEARCH as Se, ACTION_SET_TAGS as le, ACTION_RESET_TAGS as ce, ACTION_TOGGLE_TAG as ge, AppContext as U, TagsContext as G, un as $, b as Ee, j as Ce, R as ue, isLastMessageFromRole as me, O as Re, TOOLBOX as Y, ROLE_INTERNAL as j, ROLE_USER as D, ROLE_SYSTEM as Be, ROLE_HIDDEN as Me, DEFAULT_AI_ENGINE as A, STATS_SEPARATOR as q, CLIPBOARD_TAG as X, TYPE_QUESTION as Ae, SEND as Le, ERROR_MESSAGE as Oe, getMessageContaintWrapperClass as Ue, MessagesContainerHeader as $e, HistoryContext as Ve, c as ze, AppFooter as Pe, LOCAL_STORAGE_PREFIX as J, LOCAL_STORAGE_SEARCH as De, LOCAL_STORAGE_SORT as Ge } from "./index.Cul7Y08v.js";
3
+ import { serviceCall as he, SERVICE_TYPES as pe, m as je, restCall as He, $e as We, E as Q, y as Fe } from "./index.CTGK59bg.js";
4
+ import E, { useContext as R, useState as M, useRef as B, useEffect as T, lazy as Ke, Suspense as Z, useReducer as z } from "react";
5
5
  import l from "clsx";
6
6
  const Ye = ({
7
7
  className: e,
8
8
  viewBox: t,
9
9
  spacing: r,
10
10
  title: a,
11
- monotone: n,
11
+ monotone: i,
12
12
  ...o
13
13
  }) => /* @__PURE__ */ s(
14
- Ne,
14
+ Ie,
15
15
  {
16
16
  defaultViewBox: "0 0 384 512",
17
17
  defaultClassName: "size-5",
@@ -30,20 +30,20 @@ function qe(e) {
30
30
  meta: t.includes("meta"),
31
31
  mod: t.includes("mod"),
32
32
  shift: t.includes("shift")
33
- }, a = ["alt", "ctrl", "meta", "shift", "mod"], n = t.find((o) => !a.includes(o));
33
+ }, a = ["alt", "ctrl", "meta", "shift", "mod"], i = t.find((o) => !a.includes(o));
34
34
  return {
35
35
  ...r,
36
- key: n
36
+ key: i
37
37
  };
38
38
  }
39
39
  function Xe(e, t) {
40
- const { alt: r, ctrl: a, meta: n, mod: o, shift: c, key: d } = e, { altKey: m, ctrlKey: g, metaKey: p, shiftKey: u, key: b } = t;
40
+ const { alt: r, ctrl: a, meta: i, mod: o, shift: c, key: d } = e, { altKey: m, ctrlKey: g, metaKey: p, shiftKey: u, key: b } = t;
41
41
  if (r !== m)
42
42
  return !1;
43
43
  if (o) {
44
44
  if (!g && !p)
45
45
  return !1;
46
- } else if (a !== g || n !== p)
46
+ } else if (a !== g || i !== p)
47
47
  return !1;
48
48
  return c !== u ? !1 : !!(d && (b.toLowerCase() === d.toLowerCase() || t.code.replace("Key", "").toLowerCase() === d.toLowerCase()));
49
49
  }
@@ -53,29 +53,29 @@ function Je(e) {
53
53
  function Qe(e) {
54
54
  return (t) => {
55
55
  const r = "nativeEvent" in t ? t.nativeEvent : t;
56
- e.forEach(([a, n, o = { preventDefault: !0 }]) => {
57
- Je(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
56
+ e.forEach(([a, i, o = { preventDefault: !0 }]) => {
57
+ Je(a)(r) && (o.preventDefault && t.preventDefault(), i(r));
58
58
  });
59
59
  };
60
60
  }
61
- const f = [];
61
+ const y = [];
62
62
  for (let e = 0; e < 256; ++e)
63
- f.push((e + 256).toString(16).slice(1));
63
+ y.push((e + 256).toString(16).slice(1));
64
64
  function Ze(e, t = 0) {
65
- return (f[e[t + 0]] + f[e[t + 1]] + f[e[t + 2]] + f[e[t + 3]] + "-" + f[e[t + 4]] + f[e[t + 5]] + "-" + f[e[t + 6]] + f[e[t + 7]] + "-" + f[e[t + 8]] + f[e[t + 9]] + "-" + f[e[t + 10]] + f[e[t + 11]] + f[e[t + 12]] + f[e[t + 13]] + f[e[t + 14]] + f[e[t + 15]]).toLowerCase();
65
+ return (y[e[t + 0]] + y[e[t + 1]] + y[e[t + 2]] + y[e[t + 3]] + "-" + y[e[t + 4]] + y[e[t + 5]] + "-" + y[e[t + 6]] + y[e[t + 7]] + "-" + y[e[t + 8]] + y[e[t + 9]] + "-" + y[e[t + 10]] + y[e[t + 11]] + y[e[t + 12]] + y[e[t + 13]] + y[e[t + 14]] + y[e[t + 15]]).toLowerCase();
66
66
  }
67
- let D;
67
+ let P;
68
68
  const et = new Uint8Array(16);
69
69
  function tt() {
70
- if (!D) {
70
+ if (!P) {
71
71
  if (typeof crypto > "u" || !crypto.getRandomValues)
72
72
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
73
- D = crypto.getRandomValues.bind(crypto);
73
+ P = crypto.getRandomValues.bind(crypto);
74
74
  }
75
- return D(et);
75
+ return P(et);
76
76
  }
77
77
  const rt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ee = { randomUUID: rt };
78
- function G(e, t, r) {
78
+ function H(e, t, r) {
79
79
  if (ee.randomUUID && !t && !e)
80
80
  return ee.randomUUID();
81
81
  e = e || {};
@@ -83,7 +83,7 @@ function G(e, t, r) {
83
83
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ze(a);
84
84
  }
85
85
  const at = (e, t) => {
86
- if ((t == null ? void 0 : t.type) === we) {
86
+ if ((t == null ? void 0 : t.type) === Ne) {
87
87
  const r = t.payload.messages.map((a) => ({
88
88
  message: {
89
89
  role: a.role,
@@ -102,17 +102,17 @@ const at = (e, t) => {
102
102
  tags: e.tags
103
103
  };
104
104
  }
105
- if ((t == null ? void 0 : t.type) === R) {
106
- const r = t.payload.message.role, a = t.payload.message.content, n = t.payload.message.name, o = t.payload.message.processingTime, c = t.payload.message.messageId;
105
+ if ((t == null ? void 0 : t.type) === C) {
106
+ const r = t.payload.message.role, a = t.payload.message.content, i = t.payload.message.name, o = t.payload.message.processingTime, c = t.payload.message.messageId;
107
107
  if (r !== "") {
108
108
  const d = {
109
109
  role: r,
110
110
  content: a,
111
- name: n,
111
+ name: i,
112
112
  processingTime: o,
113
113
  messageId: c
114
114
  };
115
- if (r === E) {
115
+ if (r === S) {
116
116
  const m = e.messages.findIndex(
117
117
  (g) => g.message.messageId === c
118
118
  );
@@ -122,7 +122,7 @@ const at = (e, t) => {
122
122
  ...p.message,
123
123
  content: `${p.message.content}${a}`,
124
124
  processingTime: o,
125
- name: n
125
+ name: i
126
126
  }
127
127
  } : p);
128
128
  return {
@@ -152,15 +152,15 @@ const at = (e, t) => {
152
152
  };
153
153
  }
154
154
  }
155
- return (t == null ? void 0 : t.type) === ne ? {
156
- id: G(),
155
+ return (t == null ? void 0 : t.type) === ie ? {
156
+ id: H(),
157
157
  model: e.model,
158
158
  engine: e.engine,
159
159
  usage: 0,
160
160
  messages: [],
161
161
  isComponent: e.isComponent,
162
162
  tags: e.tags
163
- } : (t == null ? void 0 : t.type) === ie ? {
163
+ } : (t == null ? void 0 : t.type) === ne ? {
164
164
  id: e.id,
165
165
  model: t.payload.model,
166
166
  engine: e.engine,
@@ -177,13 +177,13 @@ const at = (e, t) => {
177
177
  } : e;
178
178
  }, ot = (e, t) => {
179
179
  switch (t == null ? void 0 : t.type) {
180
- case Ee:
180
+ case Se:
181
181
  return {
182
182
  searchString: t.payload.searchString,
183
183
  sortedCell: e.sortedCell,
184
184
  sortDirection: e.sortDirection
185
185
  };
186
- case Ie:
186
+ case we:
187
187
  return {
188
188
  searchString: e.searchString,
189
189
  sortedCell: t.payload.sortedCell,
@@ -192,7 +192,7 @@ const at = (e, t) => {
192
192
  default:
193
193
  return e;
194
194
  }
195
- }, nt = (e, t) => {
195
+ }, it = (e, t) => {
196
196
  switch (t == null ? void 0 : t.type) {
197
197
  case ge:
198
198
  return {
@@ -212,27 +212,27 @@ const at = (e, t) => {
212
212
  default:
213
213
  return e;
214
214
  }
215
- }, it = () => {
216
- const { dispatch: e, state: t } = S($), { dispatch: r, state: a } = S(H), { getAccessToken: n, user: o } = U(), [c, d] = A({
215
+ }, nt = () => {
216
+ const { dispatch: e, state: t } = R(U), { dispatch: r, state: a } = R(G), { getAccessToken: i, user: o } = $(), [c, d] = M({
217
217
  loaded: !1
218
- }), m = "mt-2 flex justify-center rounded-md", g = B(null), p = B(!1), u = (i) => {
219
- i.preventDefault(), e({
220
- type: ne
218
+ }), m = "mt-2 flex justify-center rounded-md", g = B(null), p = B(!1), u = (n) => {
219
+ n.preventDefault(), e({
220
+ type: ie
221
221
  });
222
222
  };
223
- _(() => {
224
- var i;
225
- (t == null ? void 0 : t.streaming) === !0 && !p.current && g.current && (p.current = !0, g.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (p.current = !1, (i = g.current) == null || i.blur());
223
+ T(() => {
224
+ var n;
225
+ (t == null ? void 0 : t.streaming) === !0 && !p.current && g.current && (p.current = !0, g.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (p.current = !1, (n = g.current) == null || n.blur());
226
226
  }, [t]);
227
- const b = (i, h) => {
228
- i.preventDefault(), r({
227
+ const b = (n, h) => {
228
+ n.preventDefault(), r({
229
229
  type: ge,
230
230
  payload: {
231
231
  tag: h
232
232
  }
233
233
  });
234
234
  };
235
- return _(() => {
235
+ return T(() => {
236
236
  if (!o) {
237
237
  d({
238
238
  loaded: !1
@@ -241,17 +241,17 @@ const at = (e, t) => {
241
241
  }
242
242
  c.loaded || (async () => {
243
243
  try {
244
- const i = await he({
245
- accessToken: await n(),
244
+ const n = await he({
245
+ accessToken: await i(),
246
246
  type: pe.GET_USER_PREFERENCES,
247
247
  params: {
248
248
  user: o.username
249
249
  }
250
250
  });
251
- i.status === 200 && (r({
251
+ n.status === 200 && (r({
252
252
  type: le,
253
253
  payload: {
254
- tags: i.data.tags || []
254
+ tags: n.data.tags || []
255
255
  }
256
256
  }), d({
257
257
  loaded: !0
@@ -260,19 +260,19 @@ const at = (e, t) => {
260
260
  }
261
261
  })();
262
262
  }, [o]), /* @__PURE__ */ v(O, { children: [
263
- /* @__PURE__ */ s(Ce, { alignHorizontal: "center", columnGap: 2, children: c && c.loaded && a.tags && a.tags.map((i) => i.enabled && i.label && i.content && /* @__PURE__ */ s(Re, { children: /* @__PURE__ */ s("div", { className: m, children: /* @__PURE__ */ s(
263
+ /* @__PURE__ */ s(Ee, { alignHorizontal: "center", columnGap: 2, children: c && c.loaded && a.tags && a.tags.map((n) => n.enabled && n.label && n.content && /* @__PURE__ */ s(Ce, { children: /* @__PURE__ */ s("div", { className: m, children: /* @__PURE__ */ s(
264
264
  ue,
265
265
  {
266
266
  noBorder: !0,
267
267
  mode: "dark",
268
268
  focusMode: "light",
269
269
  size: "small",
270
- onClick: (h) => b(h, i.content),
271
- children: i.label
270
+ onClick: (h) => b(h, n.content),
271
+ children: n.label
272
272
  }
273
- ) }) }, `tag-button-${i.slot}`)) }),
274
- me(E, t) && /* @__PURE__ */ s("div", { className: m, children: /* @__PURE__ */ s(
275
- Se,
273
+ ) }) }, `tag-button-${n.slot}`)) }),
274
+ me(S, t) && /* @__PURE__ */ s("div", { className: m, children: /* @__PURE__ */ s(
275
+ Re,
276
276
  {
277
277
  noBorder: !0,
278
278
  mode: "dark",
@@ -286,19 +286,33 @@ const at = (e, t) => {
286
286
  ] });
287
287
  };
288
288
  /*!
289
- @versini/ui-bubble v1.1.1
289
+ @versini/ui-bubble v1.4.0
290
290
  © 2024 gizmette.com
291
291
  */
292
292
  try {
293
293
  window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
294
- version: "1.1.1",
295
- buildTime: "12/18/2024 01:22 PM EST",
294
+ version: "1.4.0",
295
+ buildTime: "12/26/2024 06:06 PM EST",
296
296
  homepage: "https://github.com/aversini/ui-components",
297
297
  license: "MIT"
298
298
  });
299
299
  } catch {
300
300
  }
301
- const st = "av-bubble", te = "av-button", dt = (e) => {
301
+ const st = "av-bubble", te = "av-button";
302
+ /*!
303
+ @versini/ui-spacing v1.1.0
304
+ © 2024 gizmette.com
305
+ */
306
+ try {
307
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
308
+ version: "1.1.0",
309
+ buildTime: "12/26/2024 06:05 PM EST",
310
+ homepage: "https://github.com/aversini/ui-components",
311
+ license: "MIT"
312
+ });
313
+ } catch {
314
+ }
315
+ const dt = (e) => {
302
316
  let t = "";
303
317
  if (typeof e == "number" || typeof e == "string")
304
318
  t = "m-" + e;
@@ -312,7 +326,7 @@ const st = "av-bubble", te = "av-button", dt = (e) => {
312
326
  size: t,
313
327
  labelRight: r,
314
328
  labelLeft: a,
315
- align: n
329
+ align: i
316
330
  }) => {
317
331
  const o = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
318
332
  switch (e) {
@@ -330,9 +344,9 @@ const st = "av-bubble", te = "av-button", dt = (e) => {
330
344
  });
331
345
  case W:
332
346
  return l("inline-flex items-center", {
333
- "justify-center": n === "center",
334
- "justify-start": n === "left",
335
- "justify-end": n === "right",
347
+ "justify-center": i === "center",
348
+ "justify-start": i === "left",
349
+ "justify-end": i === "right",
336
350
  "h-6 w-6 p-0": t === "small" && !(r || a),
337
351
  "h-6 px-4 text-sm font-medium": t === "small" && (r || a),
338
352
  "h-8 w-8 p-1": t === "medium" && !(r || a),
@@ -467,7 +481,7 @@ const st = "av-bubble", te = "av-button", dt = (e) => {
467
481
  className: t,
468
482
  raw: r,
469
483
  mode: a,
470
- focusMode: n,
484
+ focusMode: i,
471
485
  disabled: o,
472
486
  fullWidth: c,
473
487
  size: d,
@@ -476,47 +490,47 @@ const st = "av-bubble", te = "av-button", dt = (e) => {
476
490
  labelLeft: p,
477
491
  spacing: u,
478
492
  noBackground: b,
479
- variant: i,
493
+ variant: n,
480
494
  noTruncate: h,
481
- align: y
482
- }) => (i || (i = "primary"), r ? l(te, t) : l(
495
+ align: f
496
+ }) => (n || (n = "primary"), r ? l(te, t) : l(
483
497
  te,
484
498
  t,
485
499
  dt(u),
486
- ut({ mode: a, variant: i, noBackground: b, noTruncate: h }),
487
- gt({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
488
- pt({ mode: a, variant: i, noBorder: m }),
489
- bt({ focusMode: n }),
490
- mt({ mode: a, variant: i, disabled: o }),
491
- ht({ mode: a, variant: i, disabled: o }),
500
+ ut({ mode: a, variant: n, noBackground: b, noTruncate: h }),
501
+ gt({ type: e, size: d, labelRight: g, labelLeft: p, align: f }),
502
+ pt({ mode: a, variant: n, noBorder: m }),
503
+ bt({ focusMode: i }),
504
+ mt({ mode: a, variant: n, disabled: o }),
505
+ ht({ mode: a, variant: n, disabled: o }),
492
506
  {
493
507
  "w-full": c,
494
508
  "disabled:cursor-not-allowed disabled:opacity-50": o
495
509
  }
496
- )), ft = (e, t, r) => {
510
+ )), yt = (e, t, r) => {
497
511
  var a;
498
512
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
499
- }, F = C.forwardRef((e, t) => {
500
- const { onClick: r, noInternalClick: a = !1, ...n } = e;
513
+ }, F = E.forwardRef((e, t) => {
514
+ const { onClick: r, noInternalClick: a = !1, ...i } = e;
501
515
  return /* @__PURE__ */ s(
502
516
  "button",
503
517
  {
504
518
  ref: t,
505
519
  onClick: (o) => {
506
- ft(o, a, r);
520
+ yt(o, a, r);
507
521
  },
508
- ...n
522
+ ...i
509
523
  }
510
524
  );
511
525
  });
512
526
  F.displayName = "BaseButton";
513
- const fe = C.forwardRef(
527
+ const ye = E.forwardRef(
514
528
  ({
515
529
  children: e,
516
530
  disabled: t = !1,
517
531
  mode: r = "system",
518
532
  focusMode: a = "system",
519
- fullWidth: n = !1,
533
+ fullWidth: i = !1,
520
534
  className: o,
521
535
  type: c = "button",
522
536
  raw: d = !1,
@@ -525,28 +539,28 @@ const fe = C.forwardRef(
525
539
  label: p,
526
540
  size: u = "medium",
527
541
  labelRight: b,
528
- labelLeft: i,
542
+ labelLeft: n,
529
543
  spacing: h,
530
- noBackground: y = !1,
531
- align: N = "center",
532
- ...w
544
+ noBackground: f = !1,
545
+ align: I = "center",
546
+ ...N
533
547
  }, k) => {
534
- const x = be({
548
+ const _ = be({
535
549
  type: W,
536
550
  mode: r,
537
551
  focusMode: a,
538
- fullWidth: n,
552
+ fullWidth: i,
539
553
  disabled: t,
540
554
  raw: d,
541
555
  className: o,
542
556
  noBorder: m,
543
557
  size: u,
544
558
  labelRight: b,
545
- labelLeft: i,
559
+ labelLeft: n,
546
560
  spacing: h,
547
- noBackground: y,
548
- align: N
549
- }), I = l({
561
+ noBackground: f,
562
+ align: I
563
+ }), w = l({
550
564
  "text-copy-accent-dark": r === "light" && !d,
551
565
  "text-copy-light": r === "dark" && !d,
552
566
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
@@ -556,41 +570,41 @@ const fe = C.forwardRef(
556
570
  F,
557
571
  {
558
572
  ref: k,
559
- className: x,
573
+ className: _,
560
574
  disabled: t,
561
575
  type: c,
562
576
  "aria-label": g || p,
563
- ...w,
577
+ ...N,
564
578
  children: [
565
- i && /* @__PURE__ */ s("span", { className: "pr-2", children: i }),
566
- /* @__PURE__ */ s("div", { className: I, children: e }),
579
+ n && /* @__PURE__ */ s("span", { className: "pr-2", children: n }),
580
+ /* @__PURE__ */ s("div", { className: w, children: e }),
567
581
  b && /* @__PURE__ */ s("span", { className: "pl-2", children: b })
568
582
  ]
569
583
  }
570
584
  );
571
585
  }
572
586
  );
573
- fe.displayName = "ButtonIcon";
587
+ ye.displayName = "ButtonIcon";
574
588
  /*!
575
- @versini/ui-button v1.2.1
589
+ @versini/ui-button v1.6.0
576
590
  © 2024 gizmette.com
577
591
  */
578
592
  try {
579
593
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
580
- version: "1.2.1",
581
- buildTime: "12/18/2024 01:22 PM EST",
594
+ version: "1.6.0",
595
+ buildTime: "12/26/2024 06:05 PM EST",
582
596
  homepage: "https://github.com/aversini/ui-components",
583
597
  license: "MIT"
584
598
  });
585
599
  } catch {
586
600
  }
587
- const yt = C.forwardRef(
601
+ const ft = E.forwardRef(
588
602
  ({
589
603
  children: e,
590
604
  disabled: t = !1,
591
605
  mode: r = "system",
592
606
  focusMode: a = "system",
593
- fullWidth: n = !1,
607
+ fullWidth: i = !1,
594
608
  className: o,
595
609
  type: c = "button",
596
610
  raw: d = !1,
@@ -599,34 +613,34 @@ const yt = C.forwardRef(
599
613
  label: p,
600
614
  size: u = "medium",
601
615
  labelRight: b,
602
- labelLeft: i,
616
+ labelLeft: n,
603
617
  spacing: h,
604
- noBackground: y = !1,
605
- align: N = "center",
606
- active: w = !1,
618
+ noBackground: f = !1,
619
+ align: I = "center",
620
+ active: N = !1,
607
621
  ...k
608
- }, x) => {
609
- const I = be({
622
+ }, _) => {
623
+ const w = be({
610
624
  type: W,
611
625
  mode: r,
612
626
  focusMode: a,
613
- fullWidth: n,
627
+ fullWidth: i,
614
628
  disabled: t,
615
629
  raw: d,
616
630
  className: o,
617
631
  noBorder: m,
618
632
  size: u,
619
633
  labelRight: b,
620
- labelLeft: i,
634
+ labelLeft: n,
621
635
  spacing: h,
622
- noBackground: y,
623
- align: N
624
- }), T = l({
636
+ noBackground: f,
637
+ align: I
638
+ }), x = l({
625
639
  "text-copy-accent-dark": r === "light" && !d,
626
640
  "text-copy-light": r === "dark" && !d,
627
641
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
628
642
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !d
629
- }), z = w ? l(
643
+ }), V = N ? l(
630
644
  "relative",
631
645
  "focus-within:static",
632
646
  "focus-within:after:border-transparent",
@@ -643,25 +657,38 @@ const yt = C.forwardRef(
643
657
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
644
658
  }
645
659
  ) : "";
646
- return /* @__PURE__ */ s("div", { className: z, children: /* @__PURE__ */ v(
660
+ return /* @__PURE__ */ s("div", { className: V, children: /* @__PURE__ */ v(
647
661
  F,
648
662
  {
649
- ref: x,
650
- className: I,
663
+ ref: _,
664
+ className: w,
651
665
  disabled: t,
652
666
  type: c,
653
667
  "aria-label": g || p,
654
668
  ...k,
655
669
  children: [
656
- i && /* @__PURE__ */ s("span", { className: "pr-2", children: i }),
657
- /* @__PURE__ */ s("div", { className: T, children: e }),
670
+ n && /* @__PURE__ */ s("span", { className: "pr-2", children: n }),
671
+ /* @__PURE__ */ s("div", { className: x, children: e }),
658
672
  b && /* @__PURE__ */ s("span", { className: "pl-2", children: b })
659
673
  ]
660
674
  }
661
675
  ) });
662
676
  }
663
677
  );
664
- yt.displayName = "ButtonSort";
678
+ ft.displayName = "ButtonSort";
679
+ /*!
680
+ @versini/ui-spacing v1.1.0
681
+ © 2024 gizmette.com
682
+ */
683
+ try {
684
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
685
+ version: "1.1.0",
686
+ buildTime: "12/26/2024 06:05 PM EST",
687
+ homepage: "https://github.com/aversini/ui-components",
688
+ license: "MIT"
689
+ });
690
+ } catch {
691
+ }
665
692
  const vt = (e) => {
666
693
  let t = "";
667
694
  if (typeof e == "number" || typeof e == "string")
@@ -671,12 +698,12 @@ const vt = (e) => {
671
698
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
672
699
  }
673
700
  return t;
674
- }, ye = ({
701
+ }, fe = ({
675
702
  children: e,
676
703
  fill: t,
677
704
  viewBox: r,
678
705
  className: a,
679
- defaultViewBox: n,
706
+ defaultViewBox: i,
680
707
  defaultClassName: o,
681
708
  spacing: c,
682
709
  title: d,
@@ -693,7 +720,7 @@ const vt = (e) => {
693
720
  {
694
721
  xmlns: "http://www.w3.org/2000/svg",
695
722
  className: u,
696
- viewBox: r || n,
723
+ viewBox: r || i,
697
724
  fill: t || "currentColor",
698
725
  role: "img",
699
726
  "aria-hidden": !m,
@@ -706,13 +733,13 @@ const vt = (e) => {
706
733
  ] });
707
734
  };
708
735
  /*!
709
- @versini/ui-private v1.5.1
736
+ @versini/ui-svgicon v1.1.0
710
737
  © 2024 gizmette.com
711
738
  */
712
739
  try {
713
- window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
714
- version: "1.5.1",
715
- buildTime: "12/18/2024 01:22 PM EST",
740
+ window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
741
+ version: "1.1.0",
742
+ buildTime: "12/26/2024 06:05 PM EST",
716
743
  homepage: "https://github.com/aversini/ui-components",
717
744
  license: "MIT"
718
745
  });
@@ -723,10 +750,10 @@ const kt = ({
723
750
  viewBox: t,
724
751
  spacing: r,
725
752
  title: a,
726
- monotone: n,
753
+ monotone: i,
727
754
  ...o
728
755
  }) => /* @__PURE__ */ v(
729
- ye,
756
+ fe,
730
757
  {
731
758
  defaultViewBox: "0 0 448 512",
732
759
  defaultClassName: "size-5",
@@ -746,15 +773,15 @@ const kt = ({
746
773
  /* @__PURE__ */ s("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
747
774
  ]
748
775
  }
749
- ), xt = ({
776
+ ), _t = ({
750
777
  className: e,
751
778
  viewBox: t,
752
779
  spacing: r,
753
780
  title: a,
754
- monotone: n,
781
+ monotone: i,
755
782
  ...o
756
783
  }) => /* @__PURE__ */ s(
757
- ye,
784
+ fe,
758
785
  {
759
786
  defaultViewBox: "0 0 512 512",
760
787
  defaultClassName: "size-5",
@@ -767,19 +794,32 @@ const kt = ({
767
794
  }
768
795
  );
769
796
  /*!
770
- @versini/ui-icons v1.16.1
797
+ @versini/ui-icons v1.19.0
771
798
  © 2024 gizmette.com
772
799
  */
773
800
  try {
774
801
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
775
- version: "1.16.1",
776
- buildTime: "12/18/2024 01:22 PM EST",
802
+ version: "1.19.0",
803
+ buildTime: "12/26/2024 06:05 PM EST",
804
+ homepage: "https://github.com/aversini/ui-components",
805
+ license: "MIT"
806
+ });
807
+ } catch {
808
+ }
809
+ /*!
810
+ @versini/ui-spacing v1.1.0
811
+ © 2024 gizmette.com
812
+ */
813
+ try {
814
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
815
+ version: "1.1.0",
816
+ buildTime: "12/26/2024 06:05 PM EST",
777
817
  homepage: "https://github.com/aversini/ui-components",
778
818
  license: "MIT"
779
819
  });
780
820
  } catch {
781
821
  }
782
- const Tt = (e) => {
822
+ const xt = (e) => {
783
823
  let t = "";
784
824
  if (typeof e == "number" || typeof e == "string")
785
825
  t = "m-" + e;
@@ -788,18 +828,18 @@ const Tt = (e) => {
788
828
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
789
829
  }
790
830
  return t;
791
- }, _t = () => "p-4 sm:max-w-md md:max-w-2xl", Nt = ({ kind: e }) => l({
831
+ }, Tt = () => "p-4 sm:max-w-md md:max-w-2xl", It = ({ kind: e }) => l({
792
832
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
793
833
  "bg-surface-accent": e === "right"
794
- }), wt = ({ kind: e }) => l(
834
+ }), Nt = ({ kind: e }) => l(
795
835
  "prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
796
836
  {
797
837
  "text-copy-lighter": e === "right"
798
838
  }
799
- ), It = ({ kind: e }) => l("rounded-b-xl", {
839
+ ), wt = ({ kind: e }) => l("rounded-b-xl", {
800
840
  "rounded-tr-xl": e === "left",
801
841
  "rounded-tl-xl": e === "right"
802
- }), Et = ({
842
+ }), St = ({
803
843
  kind: e,
804
844
  className: t,
805
845
  spacing: r
@@ -808,41 +848,41 @@ const Tt = (e) => {
808
848
  t,
809
849
  st,
810
850
  "flex items-start",
811
- Tt(r),
851
+ xt(r),
812
852
  {
813
853
  "flex-row-reverse": e === "right"
814
854
  }
815
- ), n = l(
855
+ ), i = l(
816
856
  "flex flex-col empty:hidden",
817
- _t(),
818
- wt({ kind: e }),
857
+ Tt(),
819
858
  Nt({ kind: e }),
820
- It({ kind: e })
859
+ It({ kind: e }),
860
+ wt({ kind: e })
821
861
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", c = l("flex flex-col-reverse gap-2 sm:flex-row", {
822
862
  "ml-2": e === "left",
823
863
  "mr-2": e === "right"
824
864
  });
825
865
  return {
826
866
  wrapper: a,
827
- main: n,
867
+ main: i,
828
868
  footer: o,
829
869
  copyButton: c
830
870
  };
831
- }, Ct = ({
871
+ }, Et = ({
832
872
  children: e,
833
873
  kind: t = "left",
834
874
  className: r,
835
875
  footer: a,
836
- rawFooter: n,
876
+ rawFooter: i,
837
877
  copyToClipboard: o,
838
878
  copyToClipboardFocusMode: c = "system",
839
879
  copyToClipboardMode: d = "system",
840
880
  spacing: m
841
881
  }) => {
842
- const [g, p] = A(!1), u = Et({ kind: t, className: r, spacing: m }), b = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), i = () => {
882
+ const [g, p] = M(!1), u = St({ kind: t, className: r, spacing: m }), b = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), n = () => {
843
883
  p(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
844
884
  };
845
- return _(() => {
885
+ return T(() => {
846
886
  let h;
847
887
  return g && (h = window.setTimeout(() => {
848
888
  p(!1);
@@ -857,10 +897,10 @@ const Tt = (e) => {
857
897
  ": ",
858
898
  a[h]
859
899
  ] }) }, `-${h}`) : null),
860
- n && n
900
+ i && i
861
901
  ] }),
862
902
  b && /* @__PURE__ */ s("div", { className: u.copyButton, children: /* @__PURE__ */ s(
863
- fe,
903
+ ye,
864
904
  {
865
905
  noBorder: !0,
866
906
  noBackground: !0,
@@ -868,13 +908,27 @@ const Tt = (e) => {
868
908
  mode: d,
869
909
  focusMode: c,
870
910
  label: g ? "Copied to clipboard" : "Copy to clipboard",
871
- onClick: i,
911
+ onClick: n,
872
912
  disabled: g,
873
- children: g ? /* @__PURE__ */ s(kt, { className: "size-3" }) : /* @__PURE__ */ s(xt, { className: "size-3" })
913
+ children: g ? /* @__PURE__ */ s(kt, { className: "size-3" }) : /* @__PURE__ */ s(_t, { className: "size-3" })
874
914
  }
875
915
  ) })
876
916
  ] });
877
- }, re = "av-button", Rt = (e) => {
917
+ }, re = "av-button";
918
+ /*!
919
+ @versini/ui-spacing v1.1.0
920
+ © 2024 gizmette.com
921
+ */
922
+ try {
923
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
924
+ version: "1.1.0",
925
+ buildTime: "12/26/2024 06:05 PM EST",
926
+ homepage: "https://github.com/aversini/ui-components",
927
+ license: "MIT"
928
+ });
929
+ } catch {
930
+ }
931
+ const Ct = (e) => {
878
932
  let t = "";
879
933
  if (typeof e == "number" || typeof e == "string")
880
934
  t = "m-" + e;
@@ -883,12 +937,12 @@ const Tt = (e) => {
883
937
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
884
938
  }
885
939
  return t;
886
- }, ve = "icon", ke = "button", St = "link", Bt = ({
940
+ }, ve = "icon", ke = "button", Rt = "link", Bt = ({
887
941
  type: e,
888
942
  size: t,
889
943
  labelRight: r,
890
944
  labelLeft: a,
891
- align: n
945
+ align: i
892
946
  }) => {
893
947
  const o = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
894
948
  switch (e) {
@@ -898,7 +952,7 @@ const Tt = (e) => {
898
952
  [c]: t === "medium",
899
953
  [d]: t === "large"
900
954
  });
901
- case St:
955
+ case Rt:
902
956
  return l("px-4 text-center", {
903
957
  [o]: t === "small",
904
958
  [c]: t === "medium",
@@ -906,9 +960,9 @@ const Tt = (e) => {
906
960
  });
907
961
  case ve:
908
962
  return l("inline-flex items-center", {
909
- "justify-center": n === "center",
910
- "justify-start": n === "left",
911
- "justify-end": n === "right",
963
+ "justify-center": i === "center",
964
+ "justify-start": i === "left",
965
+ "justify-end": i === "right",
912
966
  "h-6 w-6 p-0": t === "small" && !(r || a),
913
967
  "h-6 px-4 text-sm font-medium": t === "small" && (r || a),
914
968
  "h-8 w-8 p-1": t === "medium" && !(r || a),
@@ -917,7 +971,7 @@ const Tt = (e) => {
917
971
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
918
972
  });
919
973
  }
920
- }, At = ({
974
+ }, Mt = ({
921
975
  mode: e,
922
976
  noBackground: t,
923
977
  noTruncate: r,
@@ -949,7 +1003,7 @@ const Tt = (e) => {
949
1003
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
950
1004
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
951
1005
  });
952
- }, Mt = ({
1006
+ }, At = ({
953
1007
  mode: e,
954
1008
  disabled: t,
955
1009
  variant: r
@@ -1033,17 +1087,17 @@ const Tt = (e) => {
1033
1087
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
1034
1088
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
1035
1089
  });
1036
- }, $t = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
1090
+ }, Ut = ({ focusMode: e }) => l("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
1037
1091
  "focus:outline-focus-dark": e === "dark",
1038
1092
  "focus:outline-focus-light": e === "light",
1039
1093
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1040
1094
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1041
- }), xe = ({
1095
+ }), _e = ({
1042
1096
  type: e,
1043
1097
  className: t,
1044
1098
  raw: r,
1045
1099
  mode: a,
1046
- focusMode: n,
1100
+ focusMode: i,
1047
1101
  disabled: o,
1048
1102
  fullWidth: c,
1049
1103
  size: d,
@@ -1052,47 +1106,47 @@ const Tt = (e) => {
1052
1106
  labelLeft: p,
1053
1107
  spacing: u,
1054
1108
  noBackground: b,
1055
- variant: i,
1109
+ variant: n,
1056
1110
  noTruncate: h,
1057
- align: y
1058
- }) => (i || (i = "primary"), r ? l(re, t) : l(
1111
+ align: f
1112
+ }) => (n || (n = "primary"), r ? l(re, t) : l(
1059
1113
  re,
1060
1114
  t,
1061
- Rt(u),
1062
- At({ mode: a, variant: i, noBackground: b, noTruncate: h }),
1063
- Bt({ type: e, size: d, labelRight: g, labelLeft: p, align: y }),
1064
- Ot({ mode: a, variant: i, noBorder: m }),
1065
- $t({ focusMode: n }),
1066
- Mt({ mode: a, variant: i, disabled: o }),
1067
- Lt({ mode: a, variant: i, disabled: o }),
1115
+ Ct(u),
1116
+ Mt({ mode: a, variant: n, noBackground: b, noTruncate: h }),
1117
+ Bt({ type: e, size: d, labelRight: g, labelLeft: p, align: f }),
1118
+ Ot({ mode: a, variant: n, noBorder: m }),
1119
+ Ut({ focusMode: i }),
1120
+ At({ mode: a, variant: n, disabled: o }),
1121
+ Lt({ mode: a, variant: n, disabled: o }),
1068
1122
  {
1069
1123
  "w-full": c,
1070
1124
  "disabled:cursor-not-allowed disabled:opacity-50": o
1071
1125
  }
1072
- )), Ut = (e, t, r) => {
1126
+ )), $t = (e, t, r) => {
1073
1127
  var a;
1074
1128
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
1075
- }, K = C.forwardRef((e, t) => {
1076
- const { onClick: r, noInternalClick: a = !1, ...n } = e;
1129
+ }, K = E.forwardRef((e, t) => {
1130
+ const { onClick: r, noInternalClick: a = !1, ...i } = e;
1077
1131
  return /* @__PURE__ */ s(
1078
1132
  "button",
1079
1133
  {
1080
1134
  ref: t,
1081
1135
  onClick: (o) => {
1082
- Ut(o, a, r);
1136
+ $t(o, a, r);
1083
1137
  },
1084
- ...n
1138
+ ...i
1085
1139
  }
1086
1140
  );
1087
1141
  });
1088
1142
  K.displayName = "BaseButton";
1089
- const Te = C.forwardRef(
1143
+ const xe = E.forwardRef(
1090
1144
  ({
1091
1145
  children: e,
1092
1146
  disabled: t = !1,
1093
1147
  mode: r = "system",
1094
1148
  focusMode: a = "system",
1095
- fullWidth: n = !1,
1149
+ fullWidth: i = !1,
1096
1150
  className: o,
1097
1151
  size: c = "medium",
1098
1152
  raw: d = !1,
@@ -1101,12 +1155,12 @@ const Te = C.forwardRef(
1101
1155
  variant: p = "primary",
1102
1156
  noTruncate: u = !1,
1103
1157
  ...b
1104
- }, i) => {
1105
- const h = xe({
1158
+ }, n) => {
1159
+ const h = _e({
1106
1160
  type: ke,
1107
1161
  mode: r,
1108
1162
  focusMode: a,
1109
- fullWidth: n,
1163
+ fullWidth: i,
1110
1164
  disabled: t,
1111
1165
  raw: d,
1112
1166
  className: o,
@@ -1119,7 +1173,7 @@ const Te = C.forwardRef(
1119
1173
  return /* @__PURE__ */ s(
1120
1174
  K,
1121
1175
  {
1122
- ref: i,
1176
+ ref: n,
1123
1177
  className: h,
1124
1178
  disabled: t,
1125
1179
  ...b,
@@ -1128,27 +1182,27 @@ const Te = C.forwardRef(
1128
1182
  );
1129
1183
  }
1130
1184
  );
1131
- Te.displayName = "Button";
1185
+ xe.displayName = "Button";
1132
1186
  /*!
1133
- @versini/ui-button v1.2.1
1187
+ @versini/ui-button v1.6.0
1134
1188
  © 2024 gizmette.com
1135
1189
  */
1136
1190
  try {
1137
1191
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
1138
- version: "1.2.1",
1139
- buildTime: "12/21/2024 02:25 PM EST",
1192
+ version: "1.6.0",
1193
+ buildTime: "12/26/2024 06:05 PM EST",
1140
1194
  homepage: "https://github.com/aversini/ui-components",
1141
1195
  license: "MIT"
1142
1196
  });
1143
1197
  } catch {
1144
1198
  }
1145
- const zt = C.forwardRef(
1199
+ const Vt = E.forwardRef(
1146
1200
  ({
1147
1201
  children: e,
1148
1202
  disabled: t = !1,
1149
1203
  mode: r = "system",
1150
1204
  focusMode: a = "system",
1151
- fullWidth: n = !1,
1205
+ fullWidth: i = !1,
1152
1206
  className: o,
1153
1207
  type: c = "button",
1154
1208
  raw: d = !1,
@@ -1157,34 +1211,34 @@ const zt = C.forwardRef(
1157
1211
  label: p,
1158
1212
  size: u = "medium",
1159
1213
  labelRight: b,
1160
- labelLeft: i,
1214
+ labelLeft: n,
1161
1215
  spacing: h,
1162
- noBackground: y = !1,
1163
- align: N = "center",
1164
- active: w = !1,
1216
+ noBackground: f = !1,
1217
+ align: I = "center",
1218
+ active: N = !1,
1165
1219
  ...k
1166
- }, x) => {
1167
- const I = xe({
1220
+ }, _) => {
1221
+ const w = _e({
1168
1222
  type: ve,
1169
1223
  mode: r,
1170
1224
  focusMode: a,
1171
- fullWidth: n,
1225
+ fullWidth: i,
1172
1226
  disabled: t,
1173
1227
  raw: d,
1174
1228
  className: o,
1175
1229
  noBorder: m,
1176
1230
  size: u,
1177
1231
  labelRight: b,
1178
- labelLeft: i,
1232
+ labelLeft: n,
1179
1233
  spacing: h,
1180
- noBackground: y,
1181
- align: N
1182
- }), T = l({
1234
+ noBackground: f,
1235
+ align: I
1236
+ }), x = l({
1183
1237
  "text-copy-accent-dark": r === "light" && !d,
1184
1238
  "text-copy-light": r === "dark" && !d,
1185
1239
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
1186
1240
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !d
1187
- }), z = w ? l(
1241
+ }), V = N ? l(
1188
1242
  "relative",
1189
1243
  "focus-within:static",
1190
1244
  "focus-within:after:border-transparent",
@@ -1201,28 +1255,28 @@ const zt = C.forwardRef(
1201
1255
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
1202
1256
  }
1203
1257
  ) : "";
1204
- return /* @__PURE__ */ s("div", { className: z, children: /* @__PURE__ */ v(
1258
+ return /* @__PURE__ */ s("div", { className: V, children: /* @__PURE__ */ v(
1205
1259
  K,
1206
1260
  {
1207
- ref: x,
1208
- className: I,
1261
+ ref: _,
1262
+ className: w,
1209
1263
  disabled: t,
1210
1264
  type: c,
1211
1265
  "aria-label": g || p,
1212
1266
  ...k,
1213
1267
  children: [
1214
- i && /* @__PURE__ */ s("span", { className: "pr-2", children: i }),
1215
- /* @__PURE__ */ s("div", { className: T, children: e }),
1268
+ n && /* @__PURE__ */ s("span", { className: "pr-2", children: n }),
1269
+ /* @__PURE__ */ s("div", { className: x, children: e }),
1216
1270
  b && /* @__PURE__ */ s("span", { className: "pl-2", children: b })
1217
1271
  ]
1218
1272
  }
1219
1273
  ) });
1220
1274
  }
1221
1275
  );
1222
- zt.displayName = "ButtonSort";
1223
- const Vt = 200, Dt = ({
1276
+ Vt.displayName = "ButtonSort";
1277
+ const zt = 200, Pt = ({
1224
1278
  string: e,
1225
- idealLength: t = Vt
1279
+ idealLength: t = zt
1226
1280
  }) => {
1227
1281
  if (e.length <= t)
1228
1282
  return { string: e, isTruncated: !1 };
@@ -1233,44 +1287,44 @@ const Vt = 200, Dt = ({
1233
1287
  string: e.slice(0, t + r),
1234
1288
  isTruncated: !0
1235
1289
  };
1236
- }, Pt = ({
1290
+ }, Dt = ({
1237
1291
  children: e,
1238
1292
  length: t = 200,
1239
1293
  mode: r = "system",
1240
1294
  focusMode: a = "system"
1241
1295
  }) => {
1242
- const [n, o] = A(!1);
1296
+ const [i, o] = M(!1);
1243
1297
  if (typeof e != "string")
1244
1298
  return e;
1245
- const { string: c, isTruncated: d } = Dt({
1299
+ const { string: c, isTruncated: d } = Pt({
1246
1300
  string: e,
1247
1301
  idealLength: t
1248
1302
  });
1249
1303
  return /* @__PURE__ */ v("span", { style: { wordBreak: "break-word" }, children: [
1250
- n ? e : c,
1304
+ i ? e : c,
1251
1305
  d && /* @__PURE__ */ s(
1252
- Te,
1306
+ xe,
1253
1307
  {
1254
1308
  mode: r,
1255
1309
  focusMode: a,
1256
1310
  spacing: { l: 2 },
1257
1311
  size: "small",
1258
1312
  onClick: (m) => {
1259
- m.preventDefault(), o(!n);
1313
+ m.preventDefault(), o(!i);
1260
1314
  },
1261
- children: n ? "less..." : "more..."
1315
+ children: i ? "less..." : "more..."
1262
1316
  }
1263
1317
  )
1264
1318
  ] });
1265
1319
  };
1266
1320
  /*!
1267
- @versini/ui-truncate v1.1.2
1321
+ @versini/ui-truncate v1.1.7
1268
1322
  © 2024 gizmette.com
1269
1323
  */
1270
1324
  try {
1271
1325
  window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
1272
- version: "1.1.2",
1273
- buildTime: "12/21/2024 02:25 PM EST",
1326
+ version: "1.1.7",
1327
+ buildTime: "12/26/2024 06:06 PM EST",
1274
1328
  homepage: "https://github.com/aversini/ui-components",
1275
1329
  license: "MIT"
1276
1330
  });
@@ -1279,32 +1333,32 @@ try {
1279
1333
  const ae = Ke(
1280
1334
  () => import(
1281
1335
  /* webpackChunkName: "LazyMessageAssistant" */
1282
- "./LazyMessageAssistant.D5CSB7UV.js"
1336
+ "./LazyMessageAssistant.ByDEgy53.js"
1283
1337
  ).then((e) => e.LazyMessageAssistant)
1284
- ), Ht = () => {
1285
- const { state: e } = S($);
1338
+ ), Gt = () => {
1339
+ const { state: e } = R(U);
1286
1340
  return /* @__PURE__ */ v(O, { children: [
1287
1341
  e && e.messages.length > 0 && e.messages.map((t, r) => {
1288
- const { role: a, content: n, name: o, processingTime: c } = t.message;
1289
- return (a === E || a === j) && n ? /* @__PURE__ */ s(Z, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(
1342
+ const { role: a, content: i, name: o, processingTime: c } = t.message;
1343
+ return (a === S || a === j) && i ? /* @__PURE__ */ s(Z, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(
1290
1344
  ae,
1291
1345
  {
1292
1346
  name: o,
1293
1347
  processingTime: c,
1294
- children: n
1348
+ children: i
1295
1349
  }
1296
- ) }, `${r}-${a}`) : a === P && n ? /* @__PURE__ */ s(
1297
- Ct,
1350
+ ) }, `${r}-${a}`) : a === D && i ? /* @__PURE__ */ s(
1351
+ Et,
1298
1352
  {
1299
1353
  kind: "right",
1300
- copyToClipboard: n,
1354
+ copyToClipboard: i,
1301
1355
  copyToClipboardFocusMode: "light",
1302
- children: /* @__PURE__ */ s(Pt, { mode: "light", focusMode: "light", children: n })
1356
+ children: /* @__PURE__ */ s(Dt, { mode: "light", focusMode: "light", children: i })
1303
1357
  },
1304
1358
  `${r}-${a}`
1305
1359
  ) : null;
1306
1360
  }),
1307
- me(P, e) && /* @__PURE__ */ s(Z, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(ae, { loading: !0 }) })
1361
+ me(D, e) && /* @__PURE__ */ s(Z, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(ae, { loading: !0 }) })
1308
1362
  ] });
1309
1363
  }, L = (e, t) => {
1310
1364
  e({
@@ -1315,7 +1369,7 @@ const ae = Ke(
1315
1369
  });
1316
1370
  }, oe = (e) => {
1317
1371
  L(e, !1), e({
1318
- type: R,
1372
+ type: C,
1319
1373
  payload: {
1320
1374
  message: {
1321
1375
  role: j,
@@ -1324,10 +1378,10 @@ const ae = Ke(
1324
1378
  }
1325
1379
  });
1326
1380
  }, jt = () => {
1327
- const { state: e, dispatch: t } = S($), { state: r, dispatch: a } = S(H), [n, o] = A(""), { getAccessToken: c, user: d } = U(), m = B(null), g = B(
1381
+ const { state: e, dispatch: t } = R(U), { state: r, dispatch: a } = R(G), [i, o] = M(""), { getAccessToken: c, user: d } = $(), m = B(null), g = B(
1328
1382
  null
1329
1383
  );
1330
- _(() => {
1384
+ T(() => {
1331
1385
  (async () => {
1332
1386
  var b;
1333
1387
  if (!e || e.messages.length === 0) {
@@ -1335,61 +1389,61 @@ const ae = Ke(
1335
1389
  return;
1336
1390
  }
1337
1391
  const u = e.messages[e.messages.length - 1];
1338
- if (!(e.messages.length === 0 || u.message.role === E || u.message.role === Be || u.message.role === j || u.message.role === Ae))
1392
+ if (!(e.messages.length === 0 || u.message.role === S || u.message.role === Be || u.message.role === j || u.message.role === Me))
1339
1393
  try {
1340
- const i = await Ge({
1394
+ const n = await He({
1341
1395
  accessToken: await c(),
1342
1396
  name: "generate",
1343
1397
  data: {
1344
1398
  messages: e.messages,
1345
- model: e.engine || M,
1399
+ model: e.engine || A,
1346
1400
  user: (d == null ? void 0 : d.username) || "",
1347
1401
  id: e.id,
1348
1402
  usage: e.usage
1349
1403
  }
1350
1404
  });
1351
- if (i && i.ok) {
1352
- const h = G();
1353
- g.current = i.body.getReader();
1354
- const y = new TextDecoder();
1405
+ if (n && n.ok) {
1406
+ const h = H();
1407
+ g.current = n.body.getReader();
1408
+ const f = new TextDecoder();
1355
1409
  for (; ; ) {
1356
1410
  L(t, !0);
1357
- const { done: N, value: w } = await g.current.read();
1358
- if (N) {
1411
+ const { done: I, value: N } = await g.current.read();
1412
+ if (I) {
1359
1413
  L(t, !1);
1360
1414
  break;
1361
1415
  }
1362
- const k = y.decode(w, { stream: !0 }), x = k.indexOf(q);
1363
- if (x !== -1) {
1364
- const I = k.substring(0, x), T = JSON.parse(
1365
- k.substring(x + q.length)
1416
+ const k = f.decode(N, { stream: !0 }), _ = k.indexOf(q);
1417
+ if (_ !== -1) {
1418
+ const w = k.substring(0, _), x = JSON.parse(
1419
+ k.substring(_ + q.length)
1366
1420
  );
1367
1421
  t({
1368
- type: ie,
1422
+ type: ne,
1369
1423
  payload: {
1370
- model: T.model,
1371
- usage: T.usage
1424
+ model: x.model,
1425
+ usage: x.usage
1372
1426
  }
1373
1427
  }), t({
1374
- type: R,
1428
+ type: C,
1375
1429
  payload: {
1376
1430
  message: {
1377
- content: I,
1378
- role: E,
1431
+ content: w,
1432
+ role: S,
1379
1433
  messageId: h,
1380
- processingTime: T.processingTime,
1381
- name: T.name
1434
+ processingTime: x.processingTime,
1435
+ name: x.name
1382
1436
  }
1383
1437
  }
1384
1438
  }), L(t, !1);
1385
1439
  break;
1386
1440
  } else
1387
1441
  t({
1388
- type: R,
1442
+ type: C,
1389
1443
  payload: {
1390
1444
  message: {
1391
1445
  content: k,
1392
- role: E,
1446
+ role: S,
1393
1447
  messageId: h
1394
1448
  }
1395
1449
  }
@@ -1397,32 +1451,32 @@ const ae = Ke(
1397
1451
  }
1398
1452
  } else
1399
1453
  oe(t);
1400
- } catch (i) {
1401
- console.error(i), oe(t);
1454
+ } catch (n) {
1455
+ console.error(n), oe(t);
1402
1456
  }
1403
1457
  })();
1404
1458
  }, [e == null ? void 0 : e.messages]);
1405
1459
  const p = async (u) => {
1406
1460
  u.preventDefault(), t({
1407
- type: R,
1461
+ type: C,
1408
1462
  payload: {
1409
1463
  message: {
1410
- role: P,
1411
- content: n
1464
+ role: D,
1465
+ content: i
1412
1466
  }
1413
1467
  }
1414
1468
  }), o("");
1415
1469
  };
1416
- return _(() => {
1470
+ return T(() => {
1417
1471
  if (r.tag !== "") {
1418
1472
  const u = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
1419
- u.indexOf(X) !== -1 ? navigator.clipboard.readText().then((i) => {
1420
- o(u.replace(X, i));
1473
+ u.indexOf(X) !== -1 ? navigator.clipboard.readText().then((n) => {
1474
+ o(u.replace(X, n));
1421
1475
  }) : o(u), m.current && m.current.focus(), a({
1422
1476
  type: ce
1423
1477
  });
1424
1478
  }
1425
- }, [r, a]), _(() => {
1479
+ }, [r, a]), T(() => {
1426
1480
  e && e.usage === 0 && e.messages.length === 0 && m.current && m.current.focus();
1427
1481
  }, [e]), /* @__PURE__ */ s("form", { className: "mt-2", onSubmit: p, children: /* @__PURE__ */ s(
1428
1482
  We,
@@ -1431,11 +1485,11 @@ const ae = Ke(
1431
1485
  focusMode: "light",
1432
1486
  ref: m,
1433
1487
  name: "chat-input",
1434
- label: Me,
1488
+ label: Ae,
1435
1489
  helperText: "Press ENTER to add a new line",
1436
1490
  helperTextOnFocus: !0,
1437
1491
  required: !0,
1438
- value: n,
1492
+ value: i,
1439
1493
  onChange: (u) => o(u.target.value),
1440
1494
  onKeyDown: Qe([["mod+Enter", p]]),
1441
1495
  rightElement: /* @__PURE__ */ s(
@@ -1451,47 +1505,47 @@ const ae = Ke(
1451
1505
  )
1452
1506
  }
1453
1507
  ) });
1454
- }, Gt = () => {
1455
- const { isAuthenticated: e } = U(), t = $e(e);
1508
+ }, Ht = () => {
1509
+ const { isAuthenticated: e } = $(), t = Ue(e);
1456
1510
  return /* @__PURE__ */ v(O, { children: [
1457
1511
  /* @__PURE__ */ v("div", { className: t, children: [
1458
- /* @__PURE__ */ s(Ue, {}),
1459
- /* @__PURE__ */ s(Ht, {})
1512
+ /* @__PURE__ */ s($e, {}),
1513
+ /* @__PURE__ */ s(Gt, {})
1460
1514
  ] }),
1461
- /* @__PURE__ */ s(it, {}),
1515
+ /* @__PURE__ */ s(nt, {}),
1462
1516
  /* @__PURE__ */ s(jt, {})
1463
1517
  ] });
1464
1518
  };
1465
- function _e({ isComponent: e = !1 }) {
1466
- const t = B(!1), { getAccessToken: r, user: a } = U(), [n] = Q({
1467
- key: J + Pe,
1519
+ function Te({ isComponent: e = !1 }) {
1520
+ const t = B(!1), { getAccessToken: r, user: a } = $(), [i] = Q({
1521
+ key: J + De,
1468
1522
  initialValue: ""
1469
1523
  }), [o] = Q({
1470
- key: J + He,
1524
+ key: J + Ge,
1471
1525
  initialValue: Fe.ASC
1472
- }), [c, d] = V(at, {
1473
- id: G(),
1474
- model: M,
1475
- engine: M,
1526
+ }), [c, d] = z(at, {
1527
+ id: H(),
1528
+ model: A,
1529
+ engine: A,
1476
1530
  usage: 0,
1477
1531
  messages: [],
1478
1532
  tags: [],
1479
1533
  isComponent: e
1480
- }), [m, g] = V(ot, {
1481
- searchString: n,
1534
+ }), [m, g] = z(ot, {
1535
+ searchString: i,
1482
1536
  sortedCell: "timestamp",
1483
1537
  sortDirection: o
1484
- }), [p, u] = V(nt, {
1538
+ }), [p, u] = z(it, {
1485
1539
  tag: "",
1486
1540
  tags: []
1487
- }), [b, i] = A({
1541
+ }), [b, n] = M({
1488
1542
  version: "",
1489
1543
  models: [],
1490
1544
  plugins: [],
1491
- engine: M,
1545
+ engine: A,
1492
1546
  engines: []
1493
1547
  });
1494
- return _(() => {
1548
+ return T(() => {
1495
1549
  b.version !== "" || t.current || (async () => {
1496
1550
  try {
1497
1551
  t.current = !0;
@@ -1502,7 +1556,7 @@ function _e({ isComponent: e = !1 }) {
1502
1556
  user: a == null ? void 0 : a.username
1503
1557
  }
1504
1558
  });
1505
- t.current = !1, h.status === 200 && (i(h.data), d({
1559
+ t.current = !1, h.status === 200 && (n(h.data), d({
1506
1560
  type: se,
1507
1561
  payload: {
1508
1562
  engine: h.data.engine
@@ -1511,35 +1565,35 @@ function _e({ isComponent: e = !1 }) {
1511
1565
  } catch {
1512
1566
  }
1513
1567
  })();
1514
- }, [b, r, a]), _(() => {
1568
+ }, [b, r, a]), T(() => {
1515
1569
  var h;
1516
1570
  (h = document.getElementById("logo")) == null || h.classList.add("fadeOut"), setTimeout(() => {
1517
- var y;
1518
- (y = document.getElementById("root")) == null || y.classList.replace("app-hidden", "fadeIn");
1571
+ var f;
1572
+ (f = document.getElementById("root")) == null || f.classList.replace("app-hidden", "fadeIn");
1519
1573
  }, 500);
1520
- }), /* @__PURE__ */ s($.Provider, { value: { state: c, dispatch: d, serverStats: b }, children: /* @__PURE__ */ s(
1521
- ze.Provider,
1574
+ }), /* @__PURE__ */ s(U.Provider, { value: { state: c, dispatch: d, serverStats: b }, children: /* @__PURE__ */ s(
1575
+ Ve.Provider,
1522
1576
  {
1523
1577
  value: {
1524
1578
  state: m,
1525
1579
  dispatch: g
1526
1580
  },
1527
1581
  children: /* @__PURE__ */ v(
1528
- H.Provider,
1582
+ G.Provider,
1529
1583
  {
1530
1584
  value: { state: p, dispatch: u },
1531
1585
  children: [
1532
- /* @__PURE__ */ s(Ve, { children: /* @__PURE__ */ s(Gt, {}) }),
1533
- /* @__PURE__ */ s(De, { serverStats: b })
1586
+ /* @__PURE__ */ s(ze, { children: /* @__PURE__ */ s(Ht, {}) }),
1587
+ /* @__PURE__ */ s(Pe, { serverStats: b })
1534
1588
  ]
1535
1589
  }
1536
1590
  )
1537
1591
  }
1538
1592
  ) });
1539
1593
  }
1540
- _e.displayName = "App";
1541
- const Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: _e }, Symbol.toStringTag, { value: "Module" }));
1594
+ Te.displayName = "App";
1595
+ const Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Te }, Symbol.toStringTag, { value: "Module" }));
1542
1596
  export {
1543
1597
  Xt as LazyApp,
1544
- Ct as le
1598
+ Et as le
1545
1599
  };