@versini/sassysaint 5.1.4 → 5.1.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,120 +1,120 @@
1
- import { jsxs as y, Fragment as D, jsx as i } from "react/jsx-runtime";
2
- import { LOCAL_STORAGE_PREFIX as A, b as Te, j, R as M, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as se, CANCEL as _e, CLEAR as Ne, ACTION_RESET as de, ACTION_TOGGLE_TAG as le, ROLE_ASSISTANT as R, ROLE_INTERNAL as Y, ROLE_USER as W, rn as q, ROLE_SYSTEM as we, ROLE_HIDDEN as Ee, MODEL_GPT4 as ce, STATS_SEPARATOR as ee, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ce, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Ie, getMessageContaintWrapperClass as Se, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Ae, ACTION_RESTORE as Oe, d as Le, AppFooter as $e, LOCAL_STORAGE_SEARCH as Ue, LOCAL_STORAGE_SORT as Ve } from "./index.QOymzv8v.js";
3
- import { AppContext as P, TagsContext as Z, E as $, restCall as ze, we as De, serviceCall as Pe, SERVICE_TYPES as He, HistoryContext as je, f as Ge } from "./index.DuOyoYqm.js";
4
- import S, { useContext as U, useRef as I, useEffect as E, useState as H, lazy as Fe, Suspense as te, useReducer as G } from "react";
1
+ import { jsxs as v, Fragment as H, jsx as i } from "react/jsx-runtime";
2
+ import { AppContext as j, TagsContext as q, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as Z, ROLE_USER as Y, rn as J, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.CYw7R4Su.js";
3
+ import { E as $, restCall as He, we as je, serviceCall as Pe, SERVICE_TYPES as Ge, f as Fe } from "./index.B6C-bgBL.js";
4
+ import S, { useContext as U, useRef as R, useEffect as E, useState as P, lazy as We, Suspense as re, useReducer as F } from "react";
5
5
  import s from "clsx";
6
- var f = [];
7
- for (var F = 0; F < 256; ++F)
8
- f.push((F + 256).toString(16).slice(1));
9
- function We(e, t = 0) {
10
- 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();
6
+ var y = [];
7
+ for (var W = 0; W < 256; ++W)
8
+ y.push((W + 256).toString(16).slice(1));
9
+ function Ye(e, t = 0) {
10
+ 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();
11
11
  }
12
- var V, Ye = new Uint8Array(16);
13
- function qe() {
12
+ var V, qe = new Uint8Array(16);
13
+ function Ze() {
14
14
  if (!V && (V = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !V))
15
15
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
- return V(Ye);
16
+ return V(qe);
17
17
  }
18
- var Ze = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
19
- const re = {
20
- randomUUID: Ze
18
+ var Je = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
19
+ const ae = {
20
+ randomUUID: Je
21
21
  };
22
- function J(e, t, r) {
23
- if (re.randomUUID && !t && !e)
24
- return re.randomUUID();
22
+ function K(e, t, r) {
23
+ if (ae.randomUUID && !t && !e)
24
+ return ae.randomUUID();
25
25
  e = e || {};
26
- var a = e.random || (e.rng || qe)();
27
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, We(a);
26
+ var a = e.random || (e.rng || Ze)();
27
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ye(a);
28
28
  }
29
- const Je = () => {
30
- const { dispatch: e, state: t } = U(P), { dispatch: r } = U(Z), a = "mt-2 flex justify-center rounded-md", n = I(null), o = I(!1), [g] = $({
31
- key: A + "summarize-article",
29
+ const Ke = () => {
30
+ const { dispatch: e, state: t } = U(j), { dispatch: r } = U(q), a = "mt-2 flex justify-center rounded-md", n = R(null), o = R(!1), [l] = $({
31
+ key: M + "summarize-article",
32
32
  initialValue: !1
33
33
  }), [d] = $({
34
- key: A + "proofread-content",
34
+ key: M + "proofread-content",
35
35
  initialValue: !1
36
- }), [p] = $({
37
- key: A + "rephrase-content",
36
+ }), [b] = $({
37
+ key: M + "rephrase-content",
38
38
  initialValue: !1
39
- }), u = (c) => {
40
- c.preventDefault(), e({
41
- type: de
39
+ }), m = (g) => {
40
+ g.preventDefault(), e({
41
+ type: le
42
42
  });
43
43
  };
44
44
  E(() => {
45
45
  (t == null ? void 0 : t.streaming) === !0 && !o.current && n.current && (o.current = !0, n.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (o.current = !1);
46
46
  }, [t]);
47
- const m = (c, h) => {
48
- c.preventDefault(), r({
49
- type: le,
47
+ const p = (g, c) => {
48
+ g.preventDefault(), r({
49
+ type: ce,
50
50
  payload: {
51
- tag: h
51
+ tag: c
52
52
  }
53
53
  });
54
54
  };
55
- return /* @__PURE__ */ y(D, { children: [
56
- /* @__PURE__ */ y(Te, { alignHorizontal: "center", columnGap: 2, children: [
57
- /* @__PURE__ */ i(j, { children: g && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
58
- M,
55
+ return /* @__PURE__ */ v(H, { children: [
56
+ /* @__PURE__ */ v(_e, { alignHorizontal: "center", columnGap: 2, children: [
57
+ /* @__PURE__ */ i(G, { children: l && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
58
+ B,
59
59
  {
60
60
  noBorder: !0,
61
61
  mode: "dark",
62
62
  focusMode: "light",
63
63
  size: "small",
64
- onClick: (c) => m(c, C.SUMMARIZE_ARTICLE),
64
+ onClick: (g) => p(g, C.SUMMARIZE_ARTICLE),
65
65
  children: O[C.SUMMARIZE_ARTICLE].label
66
66
  }
67
67
  ) }) }),
68
- /* @__PURE__ */ i(j, { children: d && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
69
- M,
68
+ /* @__PURE__ */ i(G, { children: d && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
69
+ B,
70
70
  {
71
71
  noBorder: !0,
72
72
  mode: "dark",
73
73
  focusMode: "light",
74
74
  size: "small",
75
- onClick: (c) => m(c, C.PROOFREAD_CONTENT),
75
+ onClick: (g) => p(g, C.PROOFREAD_CONTENT),
76
76
  children: O[C.PROOFREAD_CONTENT].label
77
77
  }
78
78
  ) }) }),
79
- /* @__PURE__ */ i(j, { children: p && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
80
- M,
79
+ /* @__PURE__ */ i(G, { children: b && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
80
+ B,
81
81
  {
82
82
  noBorder: !0,
83
83
  mode: "dark",
84
84
  focusMode: "light",
85
85
  size: "small",
86
- onClick: (c) => m(c, C.REPHRASE_CONTENT),
86
+ onClick: (g) => p(g, C.REPHRASE_CONTENT),
87
87
  children: O[C.REPHRASE_CONTENT].label
88
88
  }
89
89
  ) }) })
90
90
  ] }),
91
- se(R, t) && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
92
- M,
91
+ de(I, t) && /* @__PURE__ */ i("div", { className: a, children: /* @__PURE__ */ i(
92
+ B,
93
93
  {
94
94
  noBorder: !0,
95
95
  mode: "dark",
96
96
  focusMode: "light",
97
97
  ref: n,
98
- onClick: u,
99
- children: t != null && t.streaming ? _e : Ne
98
+ onClick: m,
99
+ children: t != null && t.streaming ? Ne : we
100
100
  }
101
101
  ) })
102
102
  ] });
103
103
  };
104
104
  /*!
105
- @versini/ui-bubble v1.0.10
105
+ @versini/ui-bubble v1.0.11
106
106
  © 2024 gizmette.com
107
107
  */
108
108
  try {
109
109
  window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
110
- version: "1.0.10",
111
- buildTime: "09/28/2024 06:29 PM EDT",
110
+ version: "1.0.11",
111
+ buildTime: "10/02/2024 09:58 AM EDT",
112
112
  homepage: "https://github.com/aversini/ui-components",
113
113
  license: "MIT"
114
114
  });
115
115
  } catch {
116
116
  }
117
- const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
117
+ const Qe = "av-bubble", oe = "av-button", Xe = (e) => {
118
118
  let t = "";
119
119
  if (typeof e == "number" || typeof e == "string")
120
120
  t = "m-" + e;
@@ -123,28 +123,28 @@ const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
123
123
  (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(" ");
124
124
  }
125
125
  return t;
126
- }, K = "icon", Xe = "button", et = "link", tt = ({
126
+ }, Q = "icon", et = "button", tt = "link", rt = ({
127
127
  type: e,
128
128
  size: t,
129
129
  labelRight: r,
130
130
  labelLeft: a,
131
131
  align: n
132
132
  }) => {
133
- const o = "text-sm font-medium max-h-8 py-0", g = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
133
+ const o = "text-sm font-medium max-h-8 py-0", l = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
134
134
  switch (e) {
135
- case Xe:
135
+ case et:
136
136
  return s("px-4", {
137
137
  [o]: t === "small",
138
- [g]: t === "medium",
138
+ [l]: t === "medium",
139
139
  [d]: t === "large"
140
140
  });
141
- case et:
141
+ case tt:
142
142
  return s("px-4 text-center", {
143
143
  [o]: t === "small",
144
- [g]: t === "medium",
144
+ [l]: t === "medium",
145
145
  [d]: t === "large"
146
146
  });
147
- case K:
147
+ case Q:
148
148
  return s("inline-flex items-center", {
149
149
  "justify-center": n === "center",
150
150
  "justify-start": n === "left",
@@ -157,7 +157,7 @@ const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
157
157
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
158
158
  });
159
159
  }
160
- }, rt = ({
160
+ }, at = ({
161
161
  mode: e,
162
162
  noBackground: t,
163
163
  noTruncate: r,
@@ -189,7 +189,7 @@ const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
189
189
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
190
190
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
191
191
  });
192
- }, at = ({
192
+ }, ot = ({
193
193
  mode: e,
194
194
  disabled: t,
195
195
  variant: r
@@ -217,7 +217,7 @@ const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
217
217
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
218
218
  "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
219
219
  });
220
- }, ot = ({
220
+ }, it = ({
221
221
  mode: e,
222
222
  disabled: t,
223
223
  variant: r
@@ -245,7 +245,7 @@ const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
245
245
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
246
246
  "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
247
247
  });
248
- }, it = ({
248
+ }, nt = ({
249
249
  mode: e,
250
250
  noBorder: t,
251
251
  variant: r
@@ -273,60 +273,60 @@ const Ke = "av-bubble", ae = "av-button", Qe = (e) => {
273
273
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
274
274
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
275
275
  });
276
- }, nt = ({ focusMode: e }) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
276
+ }, st = ({ focusMode: e }) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
277
277
  "focus:outline-focus-dark": e === "dark",
278
278
  "focus:outline-focus-light": e === "light",
279
279
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
280
280
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
281
- }), he = ({
281
+ }), pe = ({
282
282
  type: e,
283
283
  className: t,
284
284
  raw: r,
285
285
  mode: a,
286
286
  focusMode: n,
287
287
  disabled: o,
288
- fullWidth: g,
288
+ fullWidth: l,
289
289
  size: d,
290
- noBorder: p,
291
- labelRight: u,
292
- labelLeft: m,
293
- spacing: c,
294
- noBackground: h,
295
- variant: l,
296
- noTruncate: b,
297
- align: v
298
- }) => (l || (l = "primary"), r ? s(ae, t) : s(
299
- ae,
290
+ noBorder: b,
291
+ labelRight: m,
292
+ labelLeft: p,
293
+ spacing: g,
294
+ noBackground: c,
295
+ variant: u,
296
+ noTruncate: h,
297
+ align: f
298
+ }) => (u || (u = "primary"), r ? s(oe, t) : s(
299
+ oe,
300
300
  t,
301
- Qe(c),
302
- rt({ mode: a, variant: l, noBackground: h, noTruncate: b }),
303
- tt({ type: e, size: d, labelRight: u, labelLeft: m, align: v }),
304
- it({ mode: a, variant: l, noBorder: p }),
305
- nt({ focusMode: n }),
306
- at({ mode: a, variant: l, disabled: o }),
307
- ot({ mode: a, variant: l, disabled: o }),
301
+ Xe(g),
302
+ at({ mode: a, variant: u, noBackground: c, noTruncate: h }),
303
+ rt({ type: e, size: d, labelRight: m, labelLeft: p, align: f }),
304
+ nt({ mode: a, variant: u, noBorder: b }),
305
+ st({ focusMode: n }),
306
+ ot({ mode: a, variant: u, disabled: o }),
307
+ it({ mode: a, variant: u, disabled: o }),
308
308
  {
309
- "w-full": g,
309
+ "w-full": l,
310
310
  "disabled:cursor-not-allowed disabled:opacity-50": o
311
311
  }
312
- )), st = (e, t, r) => {
312
+ )), dt = (e, t, r) => {
313
313
  var a;
314
314
  !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);
315
- }, Q = S.forwardRef((e, t) => {
315
+ }, X = S.forwardRef((e, t) => {
316
316
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
317
317
  return /* @__PURE__ */ i(
318
318
  "button",
319
319
  {
320
320
  ref: t,
321
321
  onClick: (o) => {
322
- st(o, a, r);
322
+ dt(o, a, r);
323
323
  },
324
324
  ...n
325
325
  }
326
326
  );
327
327
  });
328
- Q.displayName = "BaseButton";
329
- const pe = S.forwardRef(
328
+ X.displayName = "BaseButton";
329
+ const be = S.forwardRef(
330
330
  ({
331
331
  children: e,
332
332
  disabled: t = !1,
@@ -334,33 +334,33 @@ const pe = S.forwardRef(
334
334
  focusMode: a = "system",
335
335
  fullWidth: n = !1,
336
336
  className: o,
337
- type: g = "button",
337
+ type: l = "button",
338
338
  raw: d = !1,
339
- noBorder: p = !1,
340
- "aria-label": u,
341
- label: m,
342
- size: c = "medium",
343
- labelRight: h,
344
- labelLeft: l,
345
- spacing: b,
346
- noBackground: v = !1,
339
+ noBorder: b = !1,
340
+ "aria-label": m,
341
+ label: p,
342
+ size: g = "medium",
343
+ labelRight: c,
344
+ labelLeft: u,
345
+ spacing: h,
346
+ noBackground: f = !1,
347
347
  align: _ = "center",
348
348
  ...N
349
349
  }, w) => {
350
- const k = he({
351
- type: K,
350
+ const k = pe({
351
+ type: Q,
352
352
  mode: r,
353
353
  focusMode: a,
354
354
  fullWidth: n,
355
355
  disabled: t,
356
356
  raw: d,
357
357
  className: o,
358
- noBorder: p,
359
- size: c,
360
- labelRight: h,
361
- labelLeft: l,
362
- spacing: b,
363
- noBackground: v,
358
+ noBorder: b,
359
+ size: g,
360
+ labelRight: c,
361
+ labelLeft: u,
362
+ spacing: h,
363
+ noBackground: f,
364
364
  align: _
365
365
  }), x = s({
366
366
  "text-copy-accent-dark": r === "light" && !d,
@@ -368,25 +368,25 @@ const pe = S.forwardRef(
368
368
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
369
369
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !d
370
370
  });
371
- return /* @__PURE__ */ y(
372
- Q,
371
+ return /* @__PURE__ */ v(
372
+ X,
373
373
  {
374
374
  ref: w,
375
375
  className: k,
376
376
  disabled: t,
377
- type: g,
378
- "aria-label": u || m,
377
+ type: l,
378
+ "aria-label": m || p,
379
379
  ...N,
380
380
  children: [
381
- l && /* @__PURE__ */ i("span", { className: "pr-2", children: l }),
381
+ u && /* @__PURE__ */ i("span", { className: "pr-2", children: u }),
382
382
  /* @__PURE__ */ i("div", { className: x, children: e }),
383
- h && /* @__PURE__ */ i("span", { className: "pl-2", children: h })
383
+ c && /* @__PURE__ */ i("span", { className: "pl-2", children: c })
384
384
  ]
385
385
  }
386
386
  );
387
387
  }
388
388
  );
389
- pe.displayName = "ButtonIcon";
389
+ be.displayName = "ButtonIcon";
390
390
  /*!
391
391
  @versini/ui-button v1.1.10
392
392
  © 2024 gizmette.com
@@ -394,13 +394,13 @@ pe.displayName = "ButtonIcon";
394
394
  try {
395
395
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
396
396
  version: "1.1.10",
397
- buildTime: "09/28/2024 06:29 PM EDT",
397
+ buildTime: "10/02/2024 09:57 AM EDT",
398
398
  homepage: "https://github.com/aversini/ui-components",
399
399
  license: "MIT"
400
400
  });
401
401
  } catch {
402
402
  }
403
- const dt = S.forwardRef(
403
+ const lt = S.forwardRef(
404
404
  ({
405
405
  children: e,
406
406
  disabled: t = !1,
@@ -408,36 +408,36 @@ const dt = S.forwardRef(
408
408
  focusMode: a = "system",
409
409
  fullWidth: n = !1,
410
410
  className: o,
411
- type: g = "button",
411
+ type: l = "button",
412
412
  raw: d = !1,
413
- noBorder: p = !1,
414
- "aria-label": u,
415
- label: m,
416
- size: c = "medium",
417
- labelRight: h,
418
- labelLeft: l,
419
- spacing: b,
420
- noBackground: v = !1,
413
+ noBorder: b = !1,
414
+ "aria-label": m,
415
+ label: p,
416
+ size: g = "medium",
417
+ labelRight: c,
418
+ labelLeft: u,
419
+ spacing: h,
420
+ noBackground: f = !1,
421
421
  align: _ = "center",
422
422
  active: N = !1,
423
423
  ...w
424
424
  }, k) => {
425
- const x = he({
426
- type: K,
425
+ const x = pe({
426
+ type: Q,
427
427
  mode: r,
428
428
  focusMode: a,
429
429
  fullWidth: n,
430
430
  disabled: t,
431
431
  raw: d,
432
432
  className: o,
433
- noBorder: p,
434
- size: c,
435
- labelRight: h,
436
- labelLeft: l,
437
- spacing: b,
438
- noBackground: v,
433
+ noBorder: b,
434
+ size: g,
435
+ labelRight: c,
436
+ labelLeft: u,
437
+ spacing: h,
438
+ noBackground: f,
439
439
  align: _
440
- }), B = s({
440
+ }), A = s({
441
441
  "text-copy-accent-dark": r === "light" && !d,
442
442
  "text-copy-light": r === "dark" && !d,
443
443
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
@@ -459,26 +459,26 @@ const dt = S.forwardRef(
459
459
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
460
460
  }
461
461
  ) : "";
462
- return /* @__PURE__ */ i("div", { className: T, children: /* @__PURE__ */ y(
463
- Q,
462
+ return /* @__PURE__ */ i("div", { className: T, children: /* @__PURE__ */ v(
463
+ X,
464
464
  {
465
465
  ref: k,
466
466
  className: x,
467
467
  disabled: t,
468
- type: g,
469
- "aria-label": u || m,
468
+ type: l,
469
+ "aria-label": m || p,
470
470
  ...w,
471
471
  children: [
472
- l && /* @__PURE__ */ i("span", { className: "pr-2", children: l }),
473
- /* @__PURE__ */ i("div", { className: B, children: e }),
474
- h && /* @__PURE__ */ i("span", { className: "pl-2", children: h })
472
+ u && /* @__PURE__ */ i("span", { className: "pr-2", children: u }),
473
+ /* @__PURE__ */ i("div", { className: A, children: e }),
474
+ c && /* @__PURE__ */ i("span", { className: "pl-2", children: c })
475
475
  ]
476
476
  }
477
477
  ) });
478
478
  }
479
479
  );
480
- dt.displayName = "ButtonSort";
481
- const lt = (e) => {
480
+ lt.displayName = "ButtonSort";
481
+ const ct = (e) => {
482
482
  let t = "";
483
483
  if (typeof e == "number" || typeof e == "string")
484
484
  t = "m-" + e;
@@ -487,38 +487,38 @@ const lt = (e) => {
487
487
  (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(" ");
488
488
  }
489
489
  return t;
490
- }, be = ({
490
+ }, ye = ({
491
491
  children: e,
492
492
  fill: t,
493
493
  viewBox: r,
494
494
  className: a,
495
495
  defaultViewBox: n,
496
496
  defaultClassName: o,
497
- spacing: g,
497
+ spacing: l,
498
498
  title: d,
499
- semantic: p = !1,
500
- ...u
499
+ semantic: b = !1,
500
+ ...m
501
501
  }) => {
502
- const m = lt(g), c = s(
503
- m,
502
+ const p = ct(l), g = s(
503
+ p,
504
504
  a || o
505
505
  );
506
- return /* @__PURE__ */ y(D, { children: [
506
+ return /* @__PURE__ */ v(H, { children: [
507
507
  /* @__PURE__ */ i(
508
508
  "svg",
509
509
  {
510
510
  xmlns: "http://www.w3.org/2000/svg",
511
- className: c,
511
+ className: g,
512
512
  viewBox: r || n,
513
513
  fill: t || "currentColor",
514
514
  role: "img",
515
- "aria-hidden": !p,
515
+ "aria-hidden": !b,
516
516
  focusable: !1,
517
- ...u,
517
+ ...m,
518
518
  children: e
519
519
  }
520
520
  ),
521
- d && p && /* @__PURE__ */ i("span", { className: "sr-only", children: d })
521
+ d && b && /* @__PURE__ */ i("span", { className: "sr-only", children: d })
522
522
  ] });
523
523
  };
524
524
  /*!
@@ -528,21 +528,21 @@ const lt = (e) => {
528
528
  try {
529
529
  window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
530
530
  version: "1.4.17",
531
- buildTime: "09/28/2024 06:29 PM EDT",
531
+ buildTime: "10/02/2024 09:57 AM EDT",
532
532
  homepage: "https://github.com/aversini/ui-components",
533
533
  license: "MIT"
534
534
  });
535
535
  } catch {
536
536
  }
537
- const ct = ({
537
+ const gt = ({
538
538
  className: e,
539
539
  viewBox: t,
540
540
  spacing: r,
541
541
  title: a,
542
542
  monotone: n,
543
543
  ...o
544
- }) => /* @__PURE__ */ y(
545
- be,
544
+ }) => /* @__PURE__ */ v(
545
+ ye,
546
546
  {
547
547
  defaultViewBox: "0 0 448 512",
548
548
  defaultClassName: "size-5",
@@ -562,7 +562,7 @@ const ct = ({
562
562
  /* @__PURE__ */ i("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" })
563
563
  ]
564
564
  }
565
- ), gt = ({
565
+ ), ut = ({
566
566
  className: e,
567
567
  viewBox: t,
568
568
  spacing: r,
@@ -570,7 +570,7 @@ const ct = ({
570
570
  monotone: n,
571
571
  ...o
572
572
  }) => /* @__PURE__ */ i(
573
- be,
573
+ ye,
574
574
  {
575
575
  defaultViewBox: "0 0 512 512",
576
576
  defaultClassName: "size-5",
@@ -583,19 +583,19 @@ const ct = ({
583
583
  }
584
584
  );
585
585
  /*!
586
- @versini/ui-icons v1.13.1
586
+ @versini/ui-icons v1.14.0
587
587
  © 2024 gizmette.com
588
588
  */
589
589
  try {
590
590
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
591
- version: "1.13.1",
592
- buildTime: "09/28/2024 06:29 PM EDT",
591
+ version: "1.14.0",
592
+ buildTime: "10/02/2024 09:57 AM EDT",
593
593
  homepage: "https://github.com/aversini/ui-components",
594
594
  license: "MIT"
595
595
  });
596
596
  } catch {
597
597
  }
598
- const ut = (e) => {
598
+ const mt = (e) => {
599
599
  let t = "";
600
600
  if (typeof e == "number" || typeof e == "string")
601
601
  t = "m-" + e;
@@ -604,15 +604,15 @@ const ut = (e) => {
604
604
  (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(" ");
605
605
  }
606
606
  return t;
607
- }, mt = () => "p-4 sm:max-w-md md:max-w-2xl", ht = ({ kind: e }) => s({
607
+ }, ht = () => "p-4 sm:max-w-md md:max-w-2xl", pt = ({ kind: e }) => s({
608
608
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
609
609
  "bg-surface-accent": e === "right"
610
- }), pt = ({ kind: e }) => s(
610
+ }), bt = ({ kind: e }) => s(
611
611
  "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",
612
612
  {
613
613
  "text-copy-lighter": e === "right"
614
614
  }
615
- ), bt = ({ kind: e }) => s("rounded-b-xl", {
615
+ ), yt = ({ kind: e }) => s("rounded-b-xl", {
616
616
  "rounded-tr-xl": e === "left",
617
617
  "rounded-tl-xl": e === "right"
618
618
  }), ft = ({
@@ -622,19 +622,19 @@ const ut = (e) => {
622
622
  }) => {
623
623
  const a = s(
624
624
  t,
625
- Ke,
625
+ Qe,
626
626
  "flex items-start",
627
- ut(r),
627
+ mt(r),
628
628
  {
629
629
  "flex-row-reverse": e === "right"
630
630
  }
631
631
  ), n = s(
632
632
  "flex flex-col empty:hidden",
633
- mt(),
633
+ ht(),
634
+ bt({ kind: e }),
634
635
  pt({ kind: e }),
635
- ht({ kind: e }),
636
- bt({ kind: e })
637
- ), o = "pr-2 pt-1 text-end text-xs text-copy-light", g = s("flex flex-col-reverse gap-2 sm:flex-row", {
636
+ yt({ kind: e })
637
+ ), o = "pr-2 pt-1 text-end text-xs text-copy-light", l = s("flex flex-col-reverse gap-2 sm:flex-row", {
638
638
  "ml-2": e === "left",
639
639
  "mr-2": e === "right"
640
640
  });
@@ -642,55 +642,55 @@ const ut = (e) => {
642
642
  wrapper: a,
643
643
  main: n,
644
644
  footer: o,
645
- copyButton: g
645
+ copyButton: l
646
646
  };
647
- }, yt = ({
647
+ }, vt = ({
648
648
  children: e,
649
649
  kind: t = "left",
650
650
  className: r,
651
651
  footer: a,
652
652
  rawFooter: n,
653
653
  copyToClipboard: o,
654
- copyToClipboardFocusMode: g = "system",
654
+ copyToClipboardFocusMode: l = "system",
655
655
  copyToClipboardMode: d = "system",
656
- spacing: p
656
+ spacing: b
657
657
  }) => {
658
- const [u, m] = H(!1), c = ft({ kind: t, className: r, spacing: p }), h = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), l = () => {
659
- m(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
658
+ const [m, p] = P(!1), g = ft({ kind: t, className: r, spacing: b }), c = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), u = () => {
659
+ p(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
660
660
  };
661
661
  return E(() => {
662
- let b;
663
- return u && (b = window.setTimeout(() => {
664
- m(!1);
662
+ let h;
663
+ return m && (h = window.setTimeout(() => {
664
+ p(!1);
665
665
  }, 3e3)), () => {
666
- clearTimeout(b);
666
+ clearTimeout(h);
667
667
  };
668
- }, [u]), /* @__PURE__ */ y("div", { className: c.wrapper, children: [
669
- /* @__PURE__ */ y("div", { children: [
670
- /* @__PURE__ */ i("div", { className: c.main, children: e }),
671
- a && Object.keys(a).map((b) => a[b] ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ y("p", { className: c.footer, children: [
672
- b,
668
+ }, [m]), /* @__PURE__ */ v("div", { className: g.wrapper, children: [
669
+ /* @__PURE__ */ v("div", { children: [
670
+ /* @__PURE__ */ i("div", { className: g.main, children: e }),
671
+ a && Object.keys(a).map((h) => a[h] ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: g.footer, children: [
672
+ h,
673
673
  ": ",
674
- a[b]
675
- ] }) }, `-${b}`) : null),
674
+ a[h]
675
+ ] }) }, `-${h}`) : null),
676
676
  n && n
677
677
  ] }),
678
- h && /* @__PURE__ */ i("div", { className: c.copyButton, children: /* @__PURE__ */ i(
679
- pe,
678
+ c && /* @__PURE__ */ i("div", { className: g.copyButton, children: /* @__PURE__ */ i(
679
+ be,
680
680
  {
681
681
  noBorder: !0,
682
682
  noBackground: !0,
683
683
  size: "small",
684
684
  mode: d,
685
- focusMode: g,
686
- label: u ? "Copied to clipboard" : "Copy to clipboard",
687
- onClick: l,
688
- disabled: u,
689
- children: u ? /* @__PURE__ */ i(ct, { className: "size-3" }) : /* @__PURE__ */ i(gt, { className: "size-3" })
685
+ focusMode: l,
686
+ label: m ? "Copied to clipboard" : "Copy to clipboard",
687
+ onClick: u,
688
+ disabled: m,
689
+ children: m ? /* @__PURE__ */ i(gt, { className: "size-3" }) : /* @__PURE__ */ i(ut, { className: "size-3" })
690
690
  }
691
691
  ) })
692
692
  ] });
693
- }, oe = "av-button", vt = (e) => {
693
+ }, ie = "av-button", kt = (e) => {
694
694
  let t = "";
695
695
  if (typeof e == "number" || typeof e == "string")
696
696
  t = "m-" + e;
@@ -699,25 +699,25 @@ const ut = (e) => {
699
699
  (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(" ");
700
700
  }
701
701
  return t;
702
- }, fe = "icon", ye = "button", kt = "link", xt = ({
702
+ }, fe = "icon", ve = "button", xt = "link", Tt = ({
703
703
  type: e,
704
704
  size: t,
705
705
  labelRight: r,
706
706
  labelLeft: a,
707
707
  align: n
708
708
  }) => {
709
- const o = "text-sm font-medium max-h-8 py-0", g = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
709
+ const o = "text-sm font-medium max-h-8 py-0", l = "text-base font-medium max-h-9 py-1", d = "text-lg font-medium max-h-12 py-2";
710
710
  switch (e) {
711
- case ye:
711
+ case ve:
712
712
  return s("px-4", {
713
713
  [o]: t === "small",
714
- [g]: t === "medium",
714
+ [l]: t === "medium",
715
715
  [d]: t === "large"
716
716
  });
717
- case kt:
717
+ case xt:
718
718
  return s("px-4 text-center", {
719
719
  [o]: t === "small",
720
- [g]: t === "medium",
720
+ [l]: t === "medium",
721
721
  [d]: t === "large"
722
722
  });
723
723
  case fe:
@@ -733,7 +733,7 @@ const ut = (e) => {
733
733
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
734
734
  });
735
735
  }
736
- }, Tt = ({
736
+ }, _t = ({
737
737
  mode: e,
738
738
  noBackground: t,
739
739
  noTruncate: r,
@@ -765,7 +765,7 @@ const ut = (e) => {
765
765
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
766
766
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
767
767
  });
768
- }, _t = ({
768
+ }, Nt = ({
769
769
  mode: e,
770
770
  disabled: t,
771
771
  variant: r
@@ -793,7 +793,7 @@ const ut = (e) => {
793
793
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
794
794
  "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
795
795
  });
796
- }, Nt = ({
796
+ }, wt = ({
797
797
  mode: e,
798
798
  disabled: t,
799
799
  variant: r
@@ -821,7 +821,7 @@ const ut = (e) => {
821
821
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
822
822
  "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
823
823
  });
824
- }, wt = ({
824
+ }, Et = ({
825
825
  mode: e,
826
826
  noBorder: t,
827
827
  variant: r
@@ -849,60 +849,60 @@ const ut = (e) => {
849
849
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
850
850
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
851
851
  });
852
- }, Et = ({ focusMode: e }) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
852
+ }, Ct = ({ focusMode: e }) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
853
853
  "focus:outline-focus-dark": e === "dark",
854
854
  "focus:outline-focus-light": e === "light",
855
855
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
856
856
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
857
- }), ve = ({
857
+ }), ke = ({
858
858
  type: e,
859
859
  className: t,
860
860
  raw: r,
861
861
  mode: a,
862
862
  focusMode: n,
863
863
  disabled: o,
864
- fullWidth: g,
864
+ fullWidth: l,
865
865
  size: d,
866
- noBorder: p,
867
- labelRight: u,
868
- labelLeft: m,
869
- spacing: c,
870
- noBackground: h,
871
- variant: l,
872
- noTruncate: b,
873
- align: v
874
- }) => (l || (l = "primary"), r ? s(oe, t) : s(
875
- oe,
866
+ noBorder: b,
867
+ labelRight: m,
868
+ labelLeft: p,
869
+ spacing: g,
870
+ noBackground: c,
871
+ variant: u,
872
+ noTruncate: h,
873
+ align: f
874
+ }) => (u || (u = "primary"), r ? s(ie, t) : s(
875
+ ie,
876
876
  t,
877
- vt(c),
878
- Tt({ mode: a, variant: l, noBackground: h, noTruncate: b }),
879
- xt({ type: e, size: d, labelRight: u, labelLeft: m, align: v }),
880
- wt({ mode: a, variant: l, noBorder: p }),
881
- Et({ focusMode: n }),
882
- _t({ mode: a, variant: l, disabled: o }),
883
- Nt({ mode: a, variant: l, disabled: o }),
877
+ kt(g),
878
+ _t({ mode: a, variant: u, noBackground: c, noTruncate: h }),
879
+ Tt({ type: e, size: d, labelRight: m, labelLeft: p, align: f }),
880
+ Et({ mode: a, variant: u, noBorder: b }),
881
+ Ct({ focusMode: n }),
882
+ Nt({ mode: a, variant: u, disabled: o }),
883
+ wt({ mode: a, variant: u, disabled: o }),
884
884
  {
885
- "w-full": g,
885
+ "w-full": l,
886
886
  "disabled:cursor-not-allowed disabled:opacity-50": o
887
887
  }
888
- )), Ct = (e, t, r) => {
888
+ )), It = (e, t, r) => {
889
889
  var a;
890
890
  !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);
891
- }, X = S.forwardRef((e, t) => {
891
+ }, ee = S.forwardRef((e, t) => {
892
892
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
893
893
  return /* @__PURE__ */ i(
894
894
  "button",
895
895
  {
896
896
  ref: t,
897
897
  onClick: (o) => {
898
- Ct(o, a, r);
898
+ It(o, a, r);
899
899
  },
900
900
  ...n
901
901
  }
902
902
  );
903
903
  });
904
- X.displayName = "BaseButton";
905
- const ke = S.forwardRef(
904
+ ee.displayName = "BaseButton";
905
+ const xe = S.forwardRef(
906
906
  ({
907
907
  children: e,
908
908
  disabled: t = !1,
@@ -910,41 +910,41 @@ const ke = S.forwardRef(
910
910
  focusMode: a = "system",
911
911
  fullWidth: n = !1,
912
912
  className: o,
913
- size: g = "medium",
913
+ size: l = "medium",
914
914
  raw: d = !1,
915
- noBorder: p = !1,
916
- spacing: u,
917
- variant: m = "primary",
918
- noTruncate: c = !1,
919
- ...h
920
- }, l) => {
921
- const b = ve({
922
- type: ye,
915
+ noBorder: b = !1,
916
+ spacing: m,
917
+ variant: p = "primary",
918
+ noTruncate: g = !1,
919
+ ...c
920
+ }, u) => {
921
+ const h = ke({
922
+ type: ve,
923
923
  mode: r,
924
924
  focusMode: a,
925
925
  fullWidth: n,
926
926
  disabled: t,
927
927
  raw: d,
928
928
  className: o,
929
- size: g,
930
- noBorder: p,
931
- spacing: u,
932
- variant: m,
933
- noTruncate: c
929
+ size: l,
930
+ noBorder: b,
931
+ spacing: m,
932
+ variant: p,
933
+ noTruncate: g
934
934
  });
935
935
  return /* @__PURE__ */ i(
936
- X,
936
+ ee,
937
937
  {
938
- ref: l,
939
- className: b,
938
+ ref: u,
939
+ className: h,
940
940
  disabled: t,
941
- ...h,
941
+ ...c,
942
942
  children: e
943
943
  }
944
944
  );
945
945
  }
946
946
  );
947
- ke.displayName = "Button";
947
+ xe.displayName = "Button";
948
948
  /*!
949
949
  @versini/ui-button v1.1.10
950
950
  © 2024 gizmette.com
@@ -966,21 +966,21 @@ const Rt = S.forwardRef(
966
966
  focusMode: a = "system",
967
967
  fullWidth: n = !1,
968
968
  className: o,
969
- type: g = "button",
969
+ type: l = "button",
970
970
  raw: d = !1,
971
- noBorder: p = !1,
972
- "aria-label": u,
973
- label: m,
974
- size: c = "medium",
975
- labelRight: h,
976
- labelLeft: l,
977
- spacing: b,
978
- noBackground: v = !1,
971
+ noBorder: b = !1,
972
+ "aria-label": m,
973
+ label: p,
974
+ size: g = "medium",
975
+ labelRight: c,
976
+ labelLeft: u,
977
+ spacing: h,
978
+ noBackground: f = !1,
979
979
  align: _ = "center",
980
980
  active: N = !1,
981
981
  ...w
982
982
  }, k) => {
983
- const x = ve({
983
+ const x = ke({
984
984
  type: fe,
985
985
  mode: r,
986
986
  focusMode: a,
@@ -988,14 +988,14 @@ const Rt = S.forwardRef(
988
988
  disabled: t,
989
989
  raw: d,
990
990
  className: o,
991
- noBorder: p,
992
- size: c,
993
- labelRight: h,
994
- labelLeft: l,
995
- spacing: b,
996
- noBackground: v,
991
+ noBorder: b,
992
+ size: g,
993
+ labelRight: c,
994
+ labelLeft: u,
995
+ spacing: h,
996
+ noBackground: f,
997
997
  align: _
998
- }), B = s({
998
+ }), A = s({
999
999
  "text-copy-accent-dark": r === "light" && !d,
1000
1000
  "text-copy-light": r === "dark" && !d,
1001
1001
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !d,
@@ -1017,28 +1017,28 @@ const Rt = S.forwardRef(
1017
1017
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
1018
1018
  }
1019
1019
  ) : "";
1020
- return /* @__PURE__ */ i("div", { className: T, children: /* @__PURE__ */ y(
1021
- X,
1020
+ return /* @__PURE__ */ i("div", { className: T, children: /* @__PURE__ */ v(
1021
+ ee,
1022
1022
  {
1023
1023
  ref: k,
1024
1024
  className: x,
1025
1025
  disabled: t,
1026
- type: g,
1027
- "aria-label": u || m,
1026
+ type: l,
1027
+ "aria-label": m || p,
1028
1028
  ...w,
1029
1029
  children: [
1030
- l && /* @__PURE__ */ i("span", { className: "pr-2", children: l }),
1031
- /* @__PURE__ */ i("div", { className: B, children: e }),
1032
- h && /* @__PURE__ */ i("span", { className: "pl-2", children: h })
1030
+ u && /* @__PURE__ */ i("span", { className: "pr-2", children: u }),
1031
+ /* @__PURE__ */ i("div", { className: A, children: e }),
1032
+ c && /* @__PURE__ */ i("span", { className: "pl-2", children: c })
1033
1033
  ]
1034
1034
  }
1035
1035
  ) });
1036
1036
  }
1037
1037
  );
1038
1038
  Rt.displayName = "ButtonSort";
1039
- const It = 200, St = ({
1039
+ const St = 200, At = ({
1040
1040
  string: e,
1041
- idealLength: t = It
1041
+ idealLength: t = St
1042
1042
  }) => {
1043
1043
  if (e.length <= t)
1044
1044
  return { string: e, isTruncated: !1 };
@@ -1055,24 +1055,24 @@ const It = 200, St = ({
1055
1055
  mode: r = "system",
1056
1056
  focusMode: a = "system"
1057
1057
  }) => {
1058
- const [n, o] = H(!1);
1058
+ const [n, o] = P(!1);
1059
1059
  if (typeof e != "string")
1060
1060
  return e;
1061
- const { string: g, isTruncated: d } = St({
1061
+ const { string: l, isTruncated: d } = At({
1062
1062
  string: e,
1063
1063
  idealLength: t
1064
1064
  });
1065
- return /* @__PURE__ */ y("span", { children: [
1066
- n ? e : g,
1065
+ return /* @__PURE__ */ v("span", { children: [
1066
+ n ? e : l,
1067
1067
  d && /* @__PURE__ */ i(
1068
- ke,
1068
+ xe,
1069
1069
  {
1070
1070
  mode: r,
1071
1071
  focusMode: a,
1072
1072
  spacing: { l: 2 },
1073
1073
  size: "small",
1074
- onClick: (p) => {
1075
- p.preventDefault(), o(!n);
1074
+ onClick: (b) => {
1075
+ b.preventDefault(), o(!n);
1076
1076
  },
1077
1077
  children: n ? "less..." : "more..."
1078
1078
  }
@@ -1092,25 +1092,25 @@ try {
1092
1092
  });
1093
1093
  } catch {
1094
1094
  }
1095
- const ie = Fe(
1095
+ const ne = We(
1096
1096
  () => import(
1097
1097
  /* webpackChunkName: "LazyMessageAssistant" */
1098
- "./LazyMessageAssistant.BcING2GM.js"
1098
+ "./LazyMessageAssistant.cqGNC6SU.js"
1099
1099
  ).then((e) => e.LazyMessageAssistant)
1100
1100
  ), Mt = () => {
1101
- const { state: e } = U(P);
1102
- return /* @__PURE__ */ y(D, { children: [
1101
+ const { state: e } = U(j);
1102
+ return /* @__PURE__ */ v(H, { children: [
1103
1103
  e && e.messages.length > 0 && e.messages.map((t, r) => {
1104
- const { role: a, content: n, name: o, processingTime: g } = t.message;
1105
- return (a === R || a === Y) && n ? /* @__PURE__ */ i(te, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
1106
- ie,
1104
+ const { role: a, content: n, name: o, processingTime: l } = t.message;
1105
+ return (a === I || a === Z) && n ? /* @__PURE__ */ i(re, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
1106
+ ne,
1107
1107
  {
1108
1108
  name: o,
1109
- processingTime: g,
1109
+ processingTime: l,
1110
1110
  children: n
1111
1111
  }
1112
- ) }, `${r}-${a}`) : a === W && n ? /* @__PURE__ */ i(
1113
- yt,
1112
+ ) }, `${r}-${a}`) : a === Y && n ? /* @__PURE__ */ i(
1113
+ vt,
1114
1114
  {
1115
1115
  kind: "right",
1116
1116
  copyToClipboard: n,
@@ -1120,65 +1120,65 @@ const ie = Fe(
1120
1120
  `${r}-${a}`
1121
1121
  ) : null;
1122
1122
  }),
1123
- se(W, e) && /* @__PURE__ */ i(te, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(ie, { loading: !0 }) })
1123
+ de(Y, e) && /* @__PURE__ */ i(re, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(ne, { loading: !0 }) })
1124
1124
  ] });
1125
- }, z = (e, t) => {
1125
+ }, D = (e, t) => {
1126
1126
  e({
1127
1127
  type: me,
1128
1128
  payload: {
1129
1129
  streaming: t
1130
1130
  }
1131
1131
  });
1132
- }, ne = (e) => {
1133
- z(e, !1), e({
1132
+ }, se = (e) => {
1133
+ D(e, !1), e({
1134
1134
  type: L,
1135
1135
  payload: {
1136
1136
  message: {
1137
- role: Y,
1138
- content: Ie
1137
+ role: Z,
1138
+ content: Se
1139
1139
  }
1140
1140
  }
1141
1141
  });
1142
- }, At = () => {
1143
- const { state: e, dispatch: t } = U(P), { state: r, dispatch: a } = U(Z), [n, o] = H(""), { getAccessToken: g, user: d } = q(), p = I(!1), u = I(null), m = I(
1142
+ }, Ot = () => {
1143
+ const { state: e, dispatch: t } = U(j), { state: r, dispatch: a } = U(q), [n, o] = P(""), { getAccessToken: l, user: d } = J(), b = R(!1), m = R(null), p = R(
1144
1144
  null
1145
1145
  );
1146
1146
  E(() => {
1147
1147
  (async () => {
1148
- var l;
1148
+ var u;
1149
1149
  if (!e || e.messages.length === 0) {
1150
- (l = m == null ? void 0 : m.current) == null || l.cancel();
1150
+ (u = p == null ? void 0 : p.current) == null || u.cancel();
1151
1151
  return;
1152
1152
  }
1153
- const h = e.messages[e.messages.length - 1];
1154
- if (!(e.messages.length === 0 || h.message.role === R || h.message.role === we || h.message.role === Y || h.message.role === Ee))
1153
+ const c = e.messages[e.messages.length - 1];
1154
+ if (!(e.messages.length === 0 || c.message.role === I || c.message.role === Ee || c.message.role === Z || c.message.role === Ce))
1155
1155
  try {
1156
- const b = await ze({
1157
- accessToken: await g(),
1156
+ const h = await He({
1157
+ accessToken: await l(),
1158
1158
  name: "generate",
1159
1159
  data: {
1160
1160
  messages: e.messages,
1161
- model: ce,
1161
+ model: e.engine || z,
1162
1162
  user: (d == null ? void 0 : d.username) || "",
1163
1163
  id: e.id,
1164
1164
  usage: e.usage
1165
1165
  }
1166
1166
  });
1167
- if (b && b.ok) {
1168
- const v = J();
1169
- m.current = b.body.getReader();
1167
+ if (h && h.ok) {
1168
+ const f = K();
1169
+ p.current = h.body.getReader();
1170
1170
  const _ = new TextDecoder();
1171
1171
  for (; ; ) {
1172
- z(t, !0);
1173
- const { done: N, value: w } = await m.current.read();
1172
+ D(t, !0);
1173
+ const { done: N, value: w } = await p.current.read();
1174
1174
  if (N) {
1175
- z(t, !1);
1175
+ D(t, !1);
1176
1176
  break;
1177
1177
  }
1178
- const k = _.decode(w, { stream: !0 }), x = k.indexOf(ee);
1178
+ const k = _.decode(w, { stream: !0 }), x = k.indexOf(te);
1179
1179
  if (x !== -1) {
1180
- const B = k.substring(0, x), T = JSON.parse(
1181
- k.substring(x + ee.length)
1180
+ const A = k.substring(0, x), T = JSON.parse(
1181
+ k.substring(x + te.length)
1182
1182
  );
1183
1183
  t({
1184
1184
  type: ge,
@@ -1190,14 +1190,14 @@ const ie = Fe(
1190
1190
  type: L,
1191
1191
  payload: {
1192
1192
  message: {
1193
- content: B,
1194
- role: R,
1195
- messageId: v,
1193
+ content: A,
1194
+ role: I,
1195
+ messageId: f,
1196
1196
  processingTime: T.processingTime,
1197
1197
  name: T.name
1198
1198
  }
1199
1199
  }
1200
- }), z(t, !1);
1200
+ }), D(t, !1);
1201
1201
  break;
1202
1202
  } else
1203
1203
  t({
@@ -1205,51 +1205,51 @@ const ie = Fe(
1205
1205
  payload: {
1206
1206
  message: {
1207
1207
  content: k,
1208
- role: R,
1209
- messageId: v
1208
+ role: I,
1209
+ messageId: f
1210
1210
  }
1211
1211
  }
1212
1212
  });
1213
1213
  }
1214
1214
  } else
1215
- ne(t);
1216
- } catch (b) {
1217
- console.error(b), ne(t);
1215
+ se(t);
1216
+ } catch (h) {
1217
+ console.error(h), se(t);
1218
1218
  }
1219
1219
  })();
1220
1220
  }, [e == null ? void 0 : e.messages]);
1221
- const c = async (h) => {
1222
- h.preventDefault(), t({
1221
+ const g = async (c) => {
1222
+ c.preventDefault(), t({
1223
1223
  type: L,
1224
1224
  payload: {
1225
1225
  message: {
1226
- role: W,
1226
+ role: Y,
1227
1227
  content: n
1228
1228
  }
1229
1229
  }
1230
1230
  }), o("");
1231
1231
  };
1232
1232
  return E(() => {
1233
- (e == null ? void 0 : e.streaming) === !1 && !p.current && u.current && (p.current = !0, u.current.focus()), (e == null ? void 0 : e.streaming) === !0 && p.current === !0 && (p.current = !1);
1233
+ (e == null ? void 0 : e.streaming) === !1 && !b.current && m.current && (b.current = !0, m.current.focus()), (e == null ? void 0 : e.streaming) === !0 && b.current === !0 && (b.current = !1);
1234
1234
  }, [e]), E(() => {
1235
- r.tag !== "" && O[r.tag] && (o(O[r.tag].content), u.current && u.current.focus(), a({
1235
+ r.tag !== "" && O[r.tag] && (o(O[r.tag].content), m.current && m.current.focus(), a({
1236
1236
  type: ue
1237
1237
  }));
1238
- }, [r, a]), /* @__PURE__ */ i("form", { className: "mt-2", onSubmit: c, children: /* @__PURE__ */ i(
1239
- De,
1238
+ }, [r, a]), /* @__PURE__ */ i("form", { className: "mt-2", onSubmit: g, children: /* @__PURE__ */ i(
1239
+ je,
1240
1240
  {
1241
1241
  mode: "dark",
1242
1242
  focusMode: "light",
1243
- ref: u,
1243
+ ref: m,
1244
1244
  name: "chat-input",
1245
- label: Ce,
1245
+ label: Ie,
1246
1246
  helperText: "Press ENTER to add a new line",
1247
1247
  helperTextOnFocus: !0,
1248
1248
  required: !0,
1249
1249
  value: n,
1250
- onChange: (h) => o(h.target.value),
1250
+ onChange: (c) => o(c.target.value),
1251
1251
  rightElement: /* @__PURE__ */ i(
1252
- M,
1252
+ B,
1253
1253
  {
1254
1254
  disabled: e == null ? void 0 : e.streaming,
1255
1255
  noBorder: !0,
@@ -1261,30 +1261,30 @@ const ie = Fe(
1261
1261
  )
1262
1262
  }
1263
1263
  ) });
1264
- }, Ot = () => {
1265
- const { isAuthenticated: e } = q(), t = Se(e);
1266
- return /* @__PURE__ */ y(D, { children: [
1267
- /* @__PURE__ */ y("div", { className: t, children: [
1264
+ }, Lt = () => {
1265
+ const { isAuthenticated: e } = J(), t = Ae(e);
1266
+ return /* @__PURE__ */ v(H, { children: [
1267
+ /* @__PURE__ */ v("div", { className: t, children: [
1268
1268
  /* @__PURE__ */ i(Be, {}),
1269
1269
  /* @__PURE__ */ i(Mt, {})
1270
1270
  ] }),
1271
- /* @__PURE__ */ i(Je, {}),
1272
- /* @__PURE__ */ i(At, {})
1271
+ /* @__PURE__ */ i(Ke, {}),
1272
+ /* @__PURE__ */ i(Ot, {})
1273
1273
  ] });
1274
- }, Lt = (e, t) => (t == null ? void 0 : t.type) === le ? {
1274
+ }, $t = (e, t) => (t == null ? void 0 : t.type) === ce ? {
1275
1275
  tag: t.payload.tag
1276
1276
  } : (t == null ? void 0 : t.type) === ue ? {
1277
1277
  tag: ""
1278
- } : e, $t = (e, t) => (t == null ? void 0 : t.type) === Me ? {
1278
+ } : e, Ut = (e, t) => (t == null ? void 0 : t.type) === Me ? {
1279
1279
  searchString: t.payload.searchString,
1280
1280
  sortedCell: e.sortedCell,
1281
1281
  sortDirection: e.sortDirection
1282
- } : (t == null ? void 0 : t.type) === Ae ? {
1282
+ } : (t == null ? void 0 : t.type) === Oe ? {
1283
1283
  searchString: e.searchString,
1284
1284
  sortedCell: t.payload.sortedCell,
1285
1285
  sortDirection: t.payload.sortDirection
1286
- } : e, Ut = (e, t) => {
1287
- if ((t == null ? void 0 : t.type) === Oe) {
1286
+ } : e, Vt = (e, t) => {
1287
+ if ((t == null ? void 0 : t.type) === Le) {
1288
1288
  const r = t.payload.messages.map((a) => ({
1289
1289
  message: {
1290
1290
  role: a.role,
@@ -1298,44 +1298,47 @@ const ie = Fe(
1298
1298
  model: t.payload.model,
1299
1299
  usage: t.payload.usage,
1300
1300
  isComponent: e.isComponent,
1301
- messages: r
1301
+ messages: r,
1302
+ engine: e.engine
1302
1303
  };
1303
1304
  }
1304
1305
  if ((t == null ? void 0 : t.type) === L) {
1305
- const r = t.payload.message.role, a = t.payload.message.content, n = t.payload.message.name, o = t.payload.message.processingTime, g = t.payload.message.messageId;
1306
+ const r = t.payload.message.role, a = t.payload.message.content, n = t.payload.message.name, o = t.payload.message.processingTime, l = t.payload.message.messageId;
1306
1307
  if (r !== "") {
1307
1308
  const d = {
1308
1309
  role: r,
1309
1310
  content: a,
1310
1311
  name: n,
1311
1312
  processingTime: o,
1312
- messageId: g
1313
+ messageId: l
1313
1314
  };
1314
- if (r === R) {
1315
- const p = e.messages.findIndex(
1316
- (u) => u.message.messageId === g
1315
+ if (r === I) {
1316
+ const b = e.messages.findIndex(
1317
+ (m) => m.message.messageId === l
1317
1318
  );
1318
- if (p !== -1) {
1319
- const u = e.messages.map((m, c) => c === p ? {
1319
+ if (b !== -1) {
1320
+ const m = e.messages.map((p, g) => g === b ? {
1320
1321
  message: {
1321
- ...m.message,
1322
- content: `${m.message.content}${a}`,
1322
+ ...p.message,
1323
+ content: `${p.message.content}${a}`,
1323
1324
  processingTime: o,
1324
1325
  name: n
1325
1326
  }
1326
- } : m);
1327
+ } : p);
1327
1328
  return {
1328
1329
  id: e.id,
1329
1330
  model: e.model,
1330
1331
  usage: e.usage,
1331
1332
  isComponent: e.isComponent,
1332
- messages: u
1333
+ messages: m,
1334
+ engine: e.engine
1333
1335
  };
1334
1336
  }
1335
1337
  }
1336
1338
  return {
1337
1339
  id: e.id,
1338
1340
  model: e.model,
1341
+ engine: e.engine,
1339
1342
  usage: e.usage,
1340
1343
  isComponent: e.isComponent,
1341
1344
  messages: [
@@ -1347,88 +1350,103 @@ const ie = Fe(
1347
1350
  };
1348
1351
  }
1349
1352
  }
1350
- return (t == null ? void 0 : t.type) === de ? {
1351
- id: J(),
1353
+ return (t == null ? void 0 : t.type) === le ? {
1354
+ id: K(),
1352
1355
  model: e.model,
1356
+ engine: e.engine,
1353
1357
  usage: 0,
1354
1358
  messages: [],
1355
1359
  isComponent: e.isComponent
1356
1360
  } : (t == null ? void 0 : t.type) === ge ? {
1357
1361
  id: e.id,
1358
1362
  model: t.payload.model,
1363
+ engine: e.engine,
1359
1364
  usage: t.payload.usage,
1360
1365
  messages: e.messages,
1361
1366
  isComponent: e.isComponent
1367
+ } : (t == null ? void 0 : t.type) === he ? {
1368
+ ...e,
1369
+ engine: t.payload.engine
1362
1370
  } : (t == null ? void 0 : t.type) === me ? {
1363
1371
  ...e,
1364
1372
  streaming: t.payload.streaming
1365
1373
  } : e;
1366
1374
  };
1367
- function xe({ isComponent: e = !1 }) {
1368
- const t = I(!1), { getAccessToken: r } = q(), [a] = $({
1369
- key: A + Ue,
1375
+ function Te({ isComponent: e = !1 }) {
1376
+ const t = R(!1), { getAccessToken: r, user: a } = J(), [n] = $({
1377
+ key: M + ze,
1370
1378
  initialValue: ""
1371
- }), [n] = $({
1372
- key: A + Ve,
1373
- initialValue: Ge.ASC
1374
- }), [o, g] = G(Ut, {
1375
- id: J(),
1376
- model: ce,
1379
+ }), [o] = $({
1380
+ key: M + De,
1381
+ initialValue: Fe.ASC
1382
+ }), [l, d] = F(Vt, {
1383
+ id: K(),
1384
+ model: z,
1385
+ engine: z,
1377
1386
  usage: 0,
1378
1387
  messages: [],
1379
1388
  isComponent: e
1380
- }), [d, p] = G($t, {
1381
- searchString: a,
1389
+ }), [b, m] = F(Ut, {
1390
+ searchString: n,
1382
1391
  sortedCell: "timestamp",
1383
- sortDirection: n
1384
- }), [u, m] = G(Lt, {
1392
+ sortDirection: o
1393
+ }), [p, g] = F($t, {
1385
1394
  tag: ""
1386
- }), [c, h] = H({
1395
+ }), [c, u] = P({
1387
1396
  version: "",
1388
1397
  models: [],
1389
- plugins: []
1398
+ plugins: [],
1399
+ engine: z
1390
1400
  });
1391
1401
  return E(() => {
1392
1402
  c.version !== "" || t.current || (async () => {
1393
1403
  try {
1394
1404
  t.current = !0;
1395
- const l = await Pe({
1405
+ const h = await Pe({
1396
1406
  accessToken: await r(),
1397
- type: He.ABOUT
1407
+ type: Ge.ABOUT,
1408
+ params: {
1409
+ user: a == null ? void 0 : a.username
1410
+ }
1398
1411
  });
1399
- t.current = !1, l.status === 200 && h(l.data);
1412
+ t.current = !1, h.status === 200 && (u(h.data), d({
1413
+ type: he,
1414
+ payload: {
1415
+ engine: h.data.engine
1416
+ }
1417
+ }));
1400
1418
  } catch {
1401
1419
  }
1402
1420
  })();
1403
- }, [c, r]), E(() => {
1404
- var l;
1405
- (l = document.getElementById("logo")) == null || l.classList.add("fadeOut"), setTimeout(() => {
1406
- var b;
1407
- (b = document.getElementById("root")) == null || b.classList.replace("app-hidden", "fadeIn");
1421
+ }, [c, r, a]), E(() => {
1422
+ var h;
1423
+ (h = document.getElementById("logo")) == null || h.classList.add("fadeOut"), setTimeout(() => {
1424
+ var f;
1425
+ (f = document.getElementById("root")) == null || f.classList.replace("app-hidden", "fadeIn");
1408
1426
  }, 500);
1409
- }), /* @__PURE__ */ i(P.Provider, { value: { state: o, dispatch: g, serverStats: c }, children: /* @__PURE__ */ i(
1410
- je.Provider,
1427
+ }), /* @__PURE__ */ i(j.Provider, { value: { state: l, dispatch: d, serverStats: c }, children: /* @__PURE__ */ i(
1428
+ $e.Provider,
1411
1429
  {
1412
1430
  value: {
1413
- state: d,
1414
- dispatch: p
1431
+ state: b,
1432
+ dispatch: m
1415
1433
  },
1416
- children: /* @__PURE__ */ y(
1417
- Z.Provider,
1434
+ children: /* @__PURE__ */ v(
1435
+ q.Provider,
1418
1436
  {
1419
- value: { state: u, dispatch: m },
1437
+ value: { state: p, dispatch: g },
1420
1438
  children: [
1421
- /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(Ot, {}) }),
1422
- /* @__PURE__ */ i($e, { serverStats: c })
1439
+ /* @__PURE__ */ i(Ue, { children: /* @__PURE__ */ i(Lt, {}) }),
1440
+ /* @__PURE__ */ i(Ve, { serverStats: c })
1423
1441
  ]
1424
1442
  }
1425
1443
  )
1426
1444
  }
1427
1445
  ) });
1428
1446
  }
1429
- xe.displayName = "App";
1430
- const jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: xe }, Symbol.toStringTag, { value: "Module" }));
1447
+ Te.displayName = "App";
1448
+ const Gt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Te }, Symbol.toStringTag, { value: "Module" }));
1431
1449
  export {
1432
- jt as App,
1433
- yt as le
1450
+ Gt as App,
1451
+ vt as le
1434
1452
  };