@versini/sassysaint 4.3.3 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.Dkjj-6lf.js → App.siyG3dXp.js} +3 -3
- package/dist/chunks/{LazyHeader.B0DWuoW8.js → LazyHeader.DhjF1UU_.js} +43 -43
- package/dist/chunks/{LazyMarkdownWithExtra.B6ArTFcZ.js → LazyMarkdownWithExtra.DFoA9rL3.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.6l2ElKdb.js → LazyMessageAssistant.DslyySBZ.js} +4 -4
- package/dist/chunks/{index.Bzt9pToY.AYXUeiUe.js → index.BA5202H5.EyL55e8c.js} +2 -2
- package/dist/chunks/{index.Bd1O6OvY.js → index.DW-8fMRN.js} +10 -10
- package/dist/chunks/{useLocalStorage.BJF_XPk2.js → useLocalStorage.CHGtMHE-.js} +98 -98
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as n, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { O as re, s as ne, S as te, isLastMessageFromRole as G, x as q, CANCEL as oe, CLEAR as ae, ACTION_RESET as Y, ROLE_ASSISTANT as h, ROLE_INTERNAL as w, ROLE_USER as I, qr as L, ROLE_SYSTEM as le, ROLE_HIDDEN as ce, MODEL_GPT4 as J, STATS_SEPARATOR as V, ACTION_MODEL as Q, ACTION_MESSAGE as x, TYPE_QUESTION as de, SEND as ie, ACTION_STREAMING as W, ERROR_MESSAGE as me, getMessageContaintWrapperClass as pe, MessagesContainerHeader as ue, ACTION_SEARCH as ge, ACTION_SORT as ye, ACTION_RESTORE as fe, c as he, AppFooter as Ce, LOCAL_STORAGE_PREFIX as H, LOCAL_STORAGE_SEARCH as Te, LOCAL_STORAGE_SORT as Se } from "./index.
|
|
3
|
-
import { g as X, AppContext as N, restCall as xe, Tt as Ee, E as z, serviceCall as ve, SERVICE_TYPES as be, HistoryContext as Ae, k as Re } from "./useLocalStorage.
|
|
2
|
+
import { O as re, s as ne, S as te, isLastMessageFromRole as G, x as q, CANCEL as oe, CLEAR as ae, ACTION_RESET as Y, ROLE_ASSISTANT as h, ROLE_INTERNAL as w, ROLE_USER as I, qr as L, ROLE_SYSTEM as le, ROLE_HIDDEN as ce, MODEL_GPT4 as J, STATS_SEPARATOR as V, ACTION_MODEL as Q, ACTION_MESSAGE as x, TYPE_QUESTION as de, SEND as ie, ACTION_STREAMING as W, ERROR_MESSAGE as me, getMessageContaintWrapperClass as pe, MessagesContainerHeader as ue, ACTION_SEARCH as ge, ACTION_SORT as ye, ACTION_RESTORE as fe, c as he, AppFooter as Ce, LOCAL_STORAGE_PREFIX as H, LOCAL_STORAGE_SEARCH as Te, LOCAL_STORAGE_SORT as Se } from "./index.DW-8fMRN.js";
|
|
3
|
+
import { g as X, AppContext as N, restCall as xe, Tt as Ee, E as z, serviceCall as ve, SERVICE_TYPES as be, HistoryContext as Ae, k as Re } from "./useLocalStorage.CHGtMHE-.js";
|
|
4
4
|
import { useState as M, useEffect as S, useContext as _, useRef as C, lazy as Ne, Suspense as B, useReducer as U } from "react";
|
|
5
5
|
import T from "clsx";
|
|
6
6
|
const ke = ({
|
|
@@ -179,7 +179,7 @@ const Ue = () => {
|
|
|
179
179
|
children: s != null && s.streaming ? oe : ae
|
|
180
180
|
}
|
|
181
181
|
) }) : null;
|
|
182
|
-
}, F = Ne(() => import("./LazyMessageAssistant.
|
|
182
|
+
}, F = Ne(() => import("./LazyMessageAssistant.DslyySBZ.js").then((e) => e.LazyMessageAssistant)), $e = () => {
|
|
183
183
|
const { state: e } = _(N);
|
|
184
184
|
return /* @__PURE__ */ f(j, { children: [
|
|
185
185
|
e && e.messages.length > 0 && e.messages.map((s, o) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as d, jsx as t, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { O as B, i$1 as le, N as de, p as De, o as Oe, g as
|
|
2
|
+
import { O as B, i$1 as le, N as de, p as De, o as Oe, g as I, N$1 as R, CARDS as f, renderDataAsList as j, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Pe, durationFormatter as Ce, NA as Ve, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, qr as V, STATS as Te, b as re, j$1 as P, x as z, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as oe, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as qe, HISTORY_TITLE as Je, getCurrentGeoLocation as Qe, LOCAL_STORAGE_CHAT_DETAILS as Ze, W as et, v as ue, PROFILE_TITLE as tt, LOG_OUT as me } from "./index.DW-8fMRN.js";
|
|
3
3
|
import * as ne from "react";
|
|
4
4
|
import ot, { forwardRef as Ne, useState as T, useRef as Y, useContext as _, useEffect as D, Suspense as at, lazy as nt, useId as st, useMemo as rt } from "react";
|
|
5
|
-
import { g as ct, AppContext as Z, serviceCall as H, SERVICE_TYPES as L, HistoryContext as Se, E as ie, k as
|
|
5
|
+
import { g as ct, AppContext as Z, serviceCall as H, SERVICE_TYPES as L, HistoryContext as Se, E as ie, k as x, et as it, at as lt, lt as ae, J as M, ct as dt, st as ut, rt as mt, Tt as he } from "./useLocalStorage.CHGtMHE-.js";
|
|
6
6
|
import b from "clsx";
|
|
7
|
-
import { useFloatingTree as Ee, useFloatingNodeId as ht, useListItem as ye, useFloating as pt, offset as ft, flip as gt, shift as Ct, autoUpdate as Tt, useClick as Nt, useRole as St, useDismiss as Et, useListNavigation as yt, useTypeahead as wt, useInteractions as bt, useMergeRefs as we, FloatingNode as kt, FloatingList as
|
|
7
|
+
import { useFloatingTree as Ee, useFloatingNodeId as ht, useListItem as ye, useFloating as pt, offset as ft, flip as gt, shift as Ct, autoUpdate as Tt, useClick as Nt, useRole as St, useDismiss as Et, useListNavigation as yt, useTypeahead as wt, useInteractions as bt, useMergeRefs as we, FloatingNode as kt, FloatingList as xt, FloatingPortal as It, FloatingFocusManager as vt, FloatingTree as At } from "@floating-ui/react";
|
|
8
8
|
const se = ne.createContext({
|
|
9
9
|
getItemProps: () => ({}),
|
|
10
10
|
activeIndex: null,
|
|
@@ -37,8 +37,8 @@ const se = ne.createContext({
|
|
|
37
37
|
focusMode: m = "system",
|
|
38
38
|
...c
|
|
39
39
|
}, i) => {
|
|
40
|
-
const [u, g] = T(!1), [N, C] = T(!1), [p, y] = T(null), k = Y([]), h = Y([]), S = _(se), E = Ee(),
|
|
41
|
-
nodeId:
|
|
40
|
+
const [u, g] = T(!1), [N, C] = T(!1), [p, y] = T(null), k = Y([]), h = Y([]), S = _(se), E = Ee(), v = ht(), ee = ye(), { floatingStyles: te, refs: X, context: A } = pt({
|
|
41
|
+
nodeId: v,
|
|
42
42
|
open: u,
|
|
43
43
|
onOpenChange: (G) => {
|
|
44
44
|
g(G), s == null || s(G);
|
|
@@ -51,7 +51,7 @@ const se = ne.createContext({
|
|
|
51
51
|
event: "mousedown",
|
|
52
52
|
toggle: !0,
|
|
53
53
|
ignoreMouse: !1
|
|
54
|
-
}), $ = St(A, { role: "menu" }),
|
|
54
|
+
}), $ = St(A, { role: "menu" }), Ie = Et(A, { bubbles: !0 }), ve = yt(A, {
|
|
55
55
|
listRef: k,
|
|
56
56
|
activeIndex: p,
|
|
57
57
|
nested: !1,
|
|
@@ -61,7 +61,7 @@ const se = ne.createContext({
|
|
|
61
61
|
listRef: h,
|
|
62
62
|
onMatch: u ? y : void 0,
|
|
63
63
|
activeIndex: p
|
|
64
|
-
}), { getReferenceProps: Me, getFloatingProps: Re, getItemProps: He } = bt([q, $,
|
|
64
|
+
}), { getReferenceProps: Me, getFloatingProps: Re, getItemProps: He } = bt([q, $, Ie, ve, Ae]), Le = pe(e) === "Button" || pe(e) === "ButtonIcon", _e = ot.cloneElement(e, {
|
|
65
65
|
mode: l,
|
|
66
66
|
focusMode: m,
|
|
67
67
|
spacing: r,
|
|
@@ -86,8 +86,8 @@ const se = ne.createContext({
|
|
|
86
86
|
E.events.off("click", G);
|
|
87
87
|
};
|
|
88
88
|
}, [E, s]), D(() => {
|
|
89
|
-
u && E && E.events.emit("menuopen", { nodeId:
|
|
90
|
-
}, [E, u,
|
|
89
|
+
u && E && E.events.emit("menuopen", { nodeId: v });
|
|
90
|
+
}, [E, u, v]), /* @__PURE__ */ d(kt, { id: v, children: [
|
|
91
91
|
_e,
|
|
92
92
|
/* @__PURE__ */ t(
|
|
93
93
|
se.Provider,
|
|
@@ -99,8 +99,8 @@ const se = ne.createContext({
|
|
|
99
99
|
setHasFocusInside: C,
|
|
100
100
|
isOpen: u
|
|
101
101
|
},
|
|
102
|
-
children: /* @__PURE__ */ t(
|
|
103
|
-
|
|
102
|
+
children: /* @__PURE__ */ t(xt, { elementsRef: k, labelsRef: h, children: u && /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(
|
|
103
|
+
vt,
|
|
104
104
|
{
|
|
105
105
|
context: A,
|
|
106
106
|
modal: !1,
|
|
@@ -192,12 +192,12 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
192
192
|
"border-border-dark": a === "dark" && o === J,
|
|
193
193
|
"border-border-accent": a === "light" && o === J
|
|
194
194
|
}),
|
|
195
|
-
content: "flex flex-grow flex-col py-2 sm:py-4 px-4",
|
|
196
|
-
footer: "flex flex-grow flex-col p-4",
|
|
197
|
-
header: "p-4 mb-0",
|
|
198
|
-
close: "p-4"
|
|
195
|
+
content: "flex flex-grow flex-col py-2 sm:py-4 sm:px-4 px-2",
|
|
196
|
+
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
|
197
|
+
header: "sm:p-4 mb-0 p-2",
|
|
198
|
+
close: "sm:p-4 p-2"
|
|
199
199
|
}), W = (e) => nt(
|
|
200
|
-
() => import("./index.
|
|
200
|
+
() => import("./index.BA5202H5.EyL55e8c.js").then((o) => ({
|
|
201
201
|
default: o[e]
|
|
202
202
|
}))
|
|
203
203
|
), Lt = W("Modal"), _t = W("ModalClose"), Dt = W("ModalContent"), Ot = W("ModalDescription"), zt = W("ModalHeading"), F = ({
|
|
@@ -347,7 +347,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
347
347
|
monotone: s,
|
|
348
348
|
...r
|
|
349
349
|
}) => /* @__PURE__ */ d(
|
|
350
|
-
|
|
350
|
+
I,
|
|
351
351
|
{
|
|
352
352
|
defaultViewBox: "0 0 512 512",
|
|
353
353
|
defaultClassName: "size-5",
|
|
@@ -375,7 +375,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
375
375
|
monotone: s,
|
|
376
376
|
...r
|
|
377
377
|
}) => /* @__PURE__ */ d(
|
|
378
|
-
|
|
378
|
+
I,
|
|
379
379
|
{
|
|
380
380
|
defaultViewBox: "0 0 448 512",
|
|
381
381
|
defaultClassName: "size-5",
|
|
@@ -403,7 +403,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
403
403
|
monotone: s,
|
|
404
404
|
...r
|
|
405
405
|
}) => /* @__PURE__ */ d(
|
|
406
|
-
|
|
406
|
+
I,
|
|
407
407
|
{
|
|
408
408
|
defaultViewBox: "0 0 448 512",
|
|
409
409
|
defaultClassName: "size-5",
|
|
@@ -431,7 +431,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
431
431
|
monotone: s,
|
|
432
432
|
...r
|
|
433
433
|
}) => /* @__PURE__ */ d(
|
|
434
|
-
|
|
434
|
+
I,
|
|
435
435
|
{
|
|
436
436
|
defaultViewBox: "0 0 512 512",
|
|
437
437
|
defaultClassName: "size-5",
|
|
@@ -459,7 +459,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
459
459
|
monotone: s,
|
|
460
460
|
...r
|
|
461
461
|
}) => /* @__PURE__ */ d(
|
|
462
|
-
|
|
462
|
+
I,
|
|
463
463
|
{
|
|
464
464
|
defaultViewBox: "0 0 512 512",
|
|
465
465
|
defaultClassName: "size-5",
|
|
@@ -487,7 +487,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
487
487
|
monotone: s,
|
|
488
488
|
...r
|
|
489
489
|
}) => /* @__PURE__ */ d(
|
|
490
|
-
|
|
490
|
+
I,
|
|
491
491
|
{
|
|
492
492
|
defaultViewBox: "0 0 512 512",
|
|
493
493
|
defaultClassName: "size-5",
|
|
@@ -515,7 +515,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
515
515
|
monotone: s,
|
|
516
516
|
...r
|
|
517
517
|
}) => /* @__PURE__ */ d(
|
|
518
|
-
|
|
518
|
+
I,
|
|
519
519
|
{
|
|
520
520
|
defaultViewBox: "0 0 576 512",
|
|
521
521
|
defaultClassName: "size-5",
|
|
@@ -543,7 +543,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
543
543
|
monotone: s,
|
|
544
544
|
...r
|
|
545
545
|
}) => /* @__PURE__ */ d(
|
|
546
|
-
|
|
546
|
+
I,
|
|
547
547
|
{
|
|
548
548
|
defaultViewBox: "0 0 512 512",
|
|
549
549
|
defaultClassName: "size-5",
|
|
@@ -571,7 +571,7 @@ const Mt = ({ className: e, ...o }) => {
|
|
|
571
571
|
monotone: s,
|
|
572
572
|
...r
|
|
573
573
|
}) => /* @__PURE__ */ t(
|
|
574
|
-
|
|
574
|
+
I,
|
|
575
575
|
{
|
|
576
576
|
defaultViewBox: "0 0 448 512",
|
|
577
577
|
defaultClassName: "size-5",
|
|
@@ -595,8 +595,8 @@ const oo = ({ stats: e }) => {
|
|
|
595
595
|
header: f.ABOUT.TITLE_CLIENT,
|
|
596
596
|
className: "prose-dark dark:prose-lighter",
|
|
597
597
|
children: j(s, {
|
|
598
|
-
[f.ABOUT.VERSION]: "4.3.
|
|
599
|
-
[f.ABOUT.BUILD_TIMESTAMP]: "09/
|
|
598
|
+
[f.ABOUT.VERSION]: "4.3.4",
|
|
599
|
+
[f.ABOUT.BUILD_TIMESTAMP]: "09/09/2024 07:22 PM EDT"
|
|
600
600
|
})
|
|
601
601
|
}
|
|
602
602
|
) }),
|
|
@@ -688,7 +688,7 @@ const oo = ({ stats: e }) => {
|
|
|
688
688
|
}
|
|
689
689
|
})();
|
|
690
690
|
}, [e, r, l]), /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: Te, children: /* @__PURE__ */ t(ro, { isAuthenticated: s, stats: a }) });
|
|
691
|
-
},
|
|
691
|
+
}, xe = ({
|
|
692
692
|
showConfirmation: e,
|
|
693
693
|
setShowConfirmation: o,
|
|
694
694
|
action: a,
|
|
@@ -786,9 +786,9 @@ const mo = async (e, o, a, n) => {
|
|
|
786
786
|
(h, S) => {
|
|
787
787
|
switch (u.sortedCell) {
|
|
788
788
|
case "timestamp":
|
|
789
|
-
if (u.sortDirection ===
|
|
789
|
+
if (u.sortDirection === x.ASC)
|
|
790
790
|
return new Date(h[u.sortedCell]).getTime() - new Date(S[u.sortedCell]).getTime();
|
|
791
|
-
if (u.sortDirection ===
|
|
791
|
+
if (u.sortDirection === x.DESC)
|
|
792
792
|
return new Date(S[u.sortedCell]).getTime() - new Date(h[u.sortedCell]).getTime();
|
|
793
793
|
break;
|
|
794
794
|
default:
|
|
@@ -799,29 +799,29 @@ const mo = async (e, o, a, n) => {
|
|
|
799
799
|
), p = (h) => {
|
|
800
800
|
switch (u.sortDirection) {
|
|
801
801
|
case !1:
|
|
802
|
-
N(
|
|
802
|
+
N(x.ASC), g({
|
|
803
803
|
type: oe,
|
|
804
804
|
payload: {
|
|
805
805
|
sortedCell: h,
|
|
806
|
-
sortDirection:
|
|
806
|
+
sortDirection: x.ASC
|
|
807
807
|
}
|
|
808
808
|
});
|
|
809
809
|
break;
|
|
810
|
-
case
|
|
811
|
-
N(
|
|
810
|
+
case x.ASC:
|
|
811
|
+
N(x.DESC), g({
|
|
812
812
|
type: oe,
|
|
813
813
|
payload: {
|
|
814
814
|
sortedCell: h,
|
|
815
|
-
sortDirection:
|
|
815
|
+
sortDirection: x.DESC
|
|
816
816
|
}
|
|
817
817
|
});
|
|
818
818
|
break;
|
|
819
819
|
default:
|
|
820
|
-
N(
|
|
820
|
+
N(x.ASC), g({
|
|
821
821
|
type: oe,
|
|
822
822
|
payload: {
|
|
823
823
|
sortedCell: h,
|
|
824
|
-
sortDirection:
|
|
824
|
+
sortDirection: x.ASC
|
|
825
825
|
}
|
|
826
826
|
});
|
|
827
827
|
break;
|
|
@@ -829,7 +829,7 @@ const mo = async (e, o, a, n) => {
|
|
|
829
829
|
};
|
|
830
830
|
return /* @__PURE__ */ d(w, { children: [
|
|
831
831
|
/* @__PURE__ */ d(
|
|
832
|
-
|
|
832
|
+
xe,
|
|
833
833
|
{
|
|
834
834
|
showConfirmation: m,
|
|
835
835
|
setShowConfirmation: c,
|
|
@@ -911,12 +911,12 @@ const mo = async (e, o, a, n) => {
|
|
|
911
911
|
noBorder: !0,
|
|
912
912
|
label: "Restore chat",
|
|
913
913
|
onClick: async () => {
|
|
914
|
-
const
|
|
914
|
+
const v = await r();
|
|
915
915
|
mo(
|
|
916
916
|
h,
|
|
917
917
|
a,
|
|
918
918
|
n,
|
|
919
|
-
|
|
919
|
+
v
|
|
920
920
|
);
|
|
921
921
|
},
|
|
922
922
|
children: /* @__PURE__ */ t(eo, { className: "h-3 w-3", monotone: !0 })
|
|
@@ -1306,7 +1306,7 @@ const po = ({
|
|
|
1306
1306
|
a(!o);
|
|
1307
1307
|
}, E = () => {
|
|
1308
1308
|
s(!n);
|
|
1309
|
-
},
|
|
1309
|
+
}, v = () => {
|
|
1310
1310
|
l(!r);
|
|
1311
1311
|
}, ee = () => {
|
|
1312
1312
|
c(!m);
|
|
@@ -1344,7 +1344,7 @@ const po = ({
|
|
|
1344
1344
|
};
|
|
1345
1345
|
return /* @__PURE__ */ d(w, { children: [
|
|
1346
1346
|
/* @__PURE__ */ t(
|
|
1347
|
-
|
|
1347
|
+
xe,
|
|
1348
1348
|
{
|
|
1349
1349
|
showConfirmation: g,
|
|
1350
1350
|
setShowConfirmation: N,
|
|
@@ -1397,7 +1397,7 @@ const po = ({
|
|
|
1397
1397
|
O,
|
|
1398
1398
|
{
|
|
1399
1399
|
label: "History",
|
|
1400
|
-
onClick:
|
|
1400
|
+
onClick: v,
|
|
1401
1401
|
icon: /* @__PURE__ */ t(Jt, {})
|
|
1402
1402
|
}
|
|
1403
1403
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.DslyySBZ.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.
|
|
3
|
-
import { AppContext as Ei, E as Ai } from "./useLocalStorage.
|
|
2
|
+
import { c$1 as ot, S as at, LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.DW-8fMRN.js";
|
|
3
|
+
import { AppContext as Ei, E as Ai } from "./useLocalStorage.CHGtMHE-.js";
|
|
4
4
|
import { lazy as Ii, useContext as Ti, Suspense as Pi } from "react";
|
|
5
|
-
import { T as ut } from "./App.
|
|
5
|
+
import { T as ut } from "./App.siyG3dXp.js";
|
|
6
6
|
import cn from "clsx";
|
|
7
7
|
const Li = ({
|
|
8
8
|
spinnerRef: e,
|
|
@@ -8618,7 +8618,7 @@ function sf(e) {
|
|
|
8618
8618
|
i.push(af(n)), o.push(Tc()), l.push(Pc(n));
|
|
8619
8619
|
}
|
|
8620
8620
|
const cf = Ii(
|
|
8621
|
-
() => import("./LazyMarkdownWithExtra.
|
|
8621
|
+
() => import("./LazyMarkdownWithExtra.DFoA9rL3.js")
|
|
8622
8622
|
), In = {
|
|
8623
8623
|
MODEL: "Model",
|
|
8624
8624
|
PLUGIN: "Plugin",
|
|
@@ -3,7 +3,7 @@ import y from "clsx";
|
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { useRef as C, useReducer as M, useEffect as _, useId as x } from "react";
|
|
5
5
|
import { useMergeRefs as S, FloatingPortal as F, FloatingOverlay as O, FloatingFocusManager as P, useFloating as k, useClick as L, useDismiss as V, useRole as B, useInteractions as U } from "@floating-ui/react";
|
|
6
|
-
import { S as j } from "./index.
|
|
6
|
+
import { S as j } from "./index.DW-8fMRN.js";
|
|
7
7
|
const b = "SET_ANNOUNCEMENT", w = "CLEAR_ANNOUNCEMENT", q = {
|
|
8
8
|
alert: null,
|
|
9
9
|
alertdialog: null,
|
|
@@ -236,7 +236,7 @@ const ee = c.forwardRef(function(e, n) {
|
|
|
236
236
|
try {
|
|
237
237
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
238
238
|
version: "1.4.8",
|
|
239
|
-
buildTime: "09/
|
|
239
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
240
240
|
homepage: "https://github.com/aversini/ui-components",
|
|
241
241
|
license: "MIT"
|
|
242
242
|
});
|
|
@@ -2436,13 +2436,13 @@ const Xa = ({
|
|
|
2436
2436
|
return /* @__PURE__ */ c("main", { className: n, children: e });
|
|
2437
2437
|
};
|
|
2438
2438
|
/*!
|
|
2439
|
-
@versini/ui-components v5.21.
|
|
2439
|
+
@versini/ui-components v5.21.4
|
|
2440
2440
|
© 2024 gizmette.com
|
|
2441
2441
|
*/
|
|
2442
2442
|
try {
|
|
2443
2443
|
window.__VERSINI_UI_GLOBAL__ || (window.__VERSINI_UI_GLOBAL__ = {
|
|
2444
|
-
version: "5.21.
|
|
2445
|
-
buildTime: "09/
|
|
2444
|
+
version: "5.21.4",
|
|
2445
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
2446
2446
|
homepage: "https://github.com/aversini/ui-components",
|
|
2447
2447
|
license: "MIT"
|
|
2448
2448
|
});
|
|
@@ -2616,7 +2616,7 @@ function qt({
|
|
|
2616
2616
|
try {
|
|
2617
2617
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
2618
2618
|
version: "1.4.8",
|
|
2619
|
-
buildTime: "09/
|
|
2619
|
+
buildTime: "09/09/2024 06:06 PM EDT",
|
|
2620
2620
|
homepage: "https://github.com/aversini/ui-components",
|
|
2621
2621
|
license: "MIT"
|
|
2622
2622
|
});
|
|
@@ -2924,13 +2924,13 @@ const En = 500, wn = 5e3, Tn = 2e4, Xt = V.forwardRef(
|
|
|
2924
2924
|
);
|
|
2925
2925
|
Xt.displayName = "TextInputMask";
|
|
2926
2926
|
/*!
|
|
2927
|
-
@versini/ui-form v1.3.
|
|
2927
|
+
@versini/ui-form v1.3.10
|
|
2928
2928
|
© 2024 gizmette.com
|
|
2929
2929
|
*/
|
|
2930
2930
|
try {
|
|
2931
2931
|
window.__VERSINI_UI_FORM__ || (window.__VERSINI_UI_FORM__ = {
|
|
2932
|
-
version: "1.3.
|
|
2933
|
-
buildTime: "09/
|
|
2932
|
+
version: "1.3.10",
|
|
2933
|
+
buildTime: "09/09/2024 06:06 PM EDT",
|
|
2934
2934
|
homepage: "https://github.com/aversini/ui-components",
|
|
2935
2935
|
license: "MIT"
|
|
2936
2936
|
});
|
|
@@ -3337,7 +3337,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
|
|
|
3337
3337
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3338
3338
|
er,
|
|
3339
3339
|
" v",
|
|
3340
|
-
"4.3.
|
|
3340
|
+
"4.3.4",
|
|
3341
3341
|
" - ",
|
|
3342
3342
|
$n,
|
|
3343
3343
|
Qe && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
@@ -3349,7 +3349,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
|
|
|
3349
3349
|
Cn
|
|
3350
3350
|
] })
|
|
3351
3351
|
}
|
|
3352
|
-
), Mn = wt(() => import("./LazyHeader.
|
|
3352
|
+
), Mn = wt(() => import("./LazyHeader.DhjF1UU_.js")), Un = () => {
|
|
3353
3353
|
const { isAuthenticated: e } = qe();
|
|
3354
3354
|
return /* @__PURE__ */ I(le, { children: [
|
|
3355
3355
|
e && /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Mn, {}) }),
|
|
@@ -3456,7 +3456,7 @@ const xn = "ASK! ME! ANYTHING!", er = "Sassy Saint", Cn = "gizmette.com", On = "
|
|
|
3456
3456
|
] }),
|
|
3457
3457
|
/* @__PURE__ */ c(Ln, {})
|
|
3458
3458
|
] });
|
|
3459
|
-
}, Kn = new URL(document.location.href).searchParams, Bn = !!Kn.get("debug") || !1, Wn = wt(() => import("./App.
|
|
3459
|
+
}, Kn = new URL(document.location.href).searchParams, Bn = !!Kn.get("debug") || !1, Wn = wt(() => import("./App.siyG3dXp.js").then((e) => e.App)), Gn = ({ isComponent: e }) => {
|
|
3460
3460
|
const { isAuthenticated: t } = qe();
|
|
3461
3461
|
return t ? /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Wn, { isComponent: e }) }) : /* @__PURE__ */ c(Hn, {});
|
|
3462
3462
|
}, Vn = ({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as x, Fragment as ke, jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import i from "clsx";
|
|
3
|
-
import H, { useContext as A, useRef as
|
|
4
|
-
import { A as xe, i as we, f as
|
|
5
|
-
const
|
|
3
|
+
import H, { useContext as A, useRef as N, useState as z, useLayoutEffect as L, useEffect as ae, useSyncExternalStore as _e, useCallback as j } from "react";
|
|
4
|
+
import { A as xe, i as we, f as Ne, S as Te, f$1 as ve, V as Se, j as Ce, F as Ie, r as Ee, o as He, n as se, l as Ae, a as J, MODEL_GPT4 as Oe } from "./index.DW-8fMRN.js";
|
|
5
|
+
const Be = (e) => {
|
|
6
6
|
let r = "";
|
|
7
7
|
if (typeof e == "number" || typeof e == "string")
|
|
8
8
|
r = "m-" + e;
|
|
@@ -23,16 +23,16 @@ const $e = (e) => {
|
|
|
23
23
|
semantic: n = !1,
|
|
24
24
|
...m
|
|
25
25
|
}) => {
|
|
26
|
-
const
|
|
27
|
-
|
|
26
|
+
const u = Be(d), y = i(
|
|
27
|
+
u,
|
|
28
28
|
a || o
|
|
29
29
|
);
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ x(ke, { children: [
|
|
31
31
|
/* @__PURE__ */ c(
|
|
32
32
|
"svg",
|
|
33
33
|
{
|
|
34
34
|
xmlns: "http://www.w3.org/2000/svg",
|
|
35
|
-
className:
|
|
35
|
+
className: y,
|
|
36
36
|
viewBox: t || s,
|
|
37
37
|
fill: r || "currentColor",
|
|
38
38
|
role: "img",
|
|
@@ -52,7 +52,7 @@ const $e = (e) => {
|
|
|
52
52
|
try {
|
|
53
53
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
54
54
|
version: "1.4.8",
|
|
55
|
-
buildTime: "09/
|
|
55
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
56
56
|
homepage: "https://github.com/aversini/ui-components",
|
|
57
57
|
license: "MIT"
|
|
58
58
|
});
|
|
@@ -65,20 +65,20 @@ try {
|
|
|
65
65
|
try {
|
|
66
66
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
67
67
|
version: "1.12.0",
|
|
68
|
-
buildTime: "09/
|
|
68
|
+
buildTime: "09/09/2024 06:39 PM EDT",
|
|
69
69
|
homepage: "https://github.com/aversini/ui-components",
|
|
70
70
|
license: "MIT"
|
|
71
71
|
});
|
|
72
72
|
} catch {
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const Me = ({
|
|
75
75
|
className: e,
|
|
76
76
|
viewBox: r,
|
|
77
77
|
spacing: t,
|
|
78
78
|
title: a,
|
|
79
79
|
monotone: s,
|
|
80
80
|
...o
|
|
81
|
-
}) => /* @__PURE__ */
|
|
81
|
+
}) => /* @__PURE__ */ x(
|
|
82
82
|
Q,
|
|
83
83
|
{
|
|
84
84
|
defaultViewBox: "0 0 576 512",
|
|
@@ -99,14 +99,14 @@ const Be = ({
|
|
|
99
99
|
/* @__PURE__ */ c("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V370.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
100
100
|
]
|
|
101
101
|
}
|
|
102
|
-
),
|
|
102
|
+
), $e = ({
|
|
103
103
|
className: e,
|
|
104
104
|
viewBox: r,
|
|
105
105
|
spacing: t,
|
|
106
106
|
title: a,
|
|
107
107
|
monotone: s,
|
|
108
108
|
...o
|
|
109
|
-
}) => /* @__PURE__ */
|
|
109
|
+
}) => /* @__PURE__ */ x(
|
|
110
110
|
Q,
|
|
111
111
|
{
|
|
112
112
|
defaultViewBox: "0 0 576 512",
|
|
@@ -134,7 +134,7 @@ const Be = ({
|
|
|
134
134
|
title: a,
|
|
135
135
|
monotone: s,
|
|
136
136
|
...o
|
|
137
|
-
}) => /* @__PURE__ */
|
|
137
|
+
}) => /* @__PURE__ */ x(
|
|
138
138
|
Q,
|
|
139
139
|
{
|
|
140
140
|
defaultViewBox: "0 0 576 512",
|
|
@@ -167,18 +167,18 @@ const Be = ({
|
|
|
167
167
|
raw: l = !1,
|
|
168
168
|
noBorder: n = !1,
|
|
169
169
|
"aria-label": m,
|
|
170
|
-
label:
|
|
171
|
-
size:
|
|
172
|
-
labelRight:
|
|
170
|
+
label: u,
|
|
171
|
+
size: y = "medium",
|
|
172
|
+
labelRight: p,
|
|
173
173
|
labelLeft: _,
|
|
174
|
-
spacing:
|
|
174
|
+
spacing: g,
|
|
175
175
|
noBackground: S = !1,
|
|
176
176
|
align: C = "center",
|
|
177
177
|
active: O = !1,
|
|
178
|
-
|
|
179
|
-
},
|
|
178
|
+
...B
|
|
179
|
+
}, M) => {
|
|
180
180
|
const U = xe({
|
|
181
|
-
type:
|
|
181
|
+
type: Ne,
|
|
182
182
|
mode: t,
|
|
183
183
|
focusMode: a,
|
|
184
184
|
fullWidth: s,
|
|
@@ -186,10 +186,10 @@ const Be = ({
|
|
|
186
186
|
raw: l,
|
|
187
187
|
className: o,
|
|
188
188
|
noBorder: n,
|
|
189
|
-
size:
|
|
190
|
-
labelRight:
|
|
189
|
+
size: y,
|
|
190
|
+
labelRight: p,
|
|
191
191
|
labelLeft: _,
|
|
192
|
-
spacing:
|
|
192
|
+
spacing: g,
|
|
193
193
|
noBackground: S,
|
|
194
194
|
align: C
|
|
195
195
|
}), G = i({
|
|
@@ -214,19 +214,19 @@ const Be = ({
|
|
|
214
214
|
"after:border-table-light dark:after:border-table-dark": t === "alt-system"
|
|
215
215
|
}
|
|
216
216
|
) : "";
|
|
217
|
-
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ c("div", { className: D, children: /* @__PURE__ */ x(
|
|
218
218
|
we,
|
|
219
219
|
{
|
|
220
|
-
ref:
|
|
220
|
+
ref: M,
|
|
221
221
|
className: U,
|
|
222
222
|
disabled: r,
|
|
223
223
|
type: d,
|
|
224
|
-
"aria-label": m ||
|
|
225
|
-
|
|
224
|
+
"aria-label": m || u,
|
|
225
|
+
...B,
|
|
226
226
|
children: [
|
|
227
227
|
_ && /* @__PURE__ */ c("span", { className: "pr-2", children: _ }),
|
|
228
228
|
/* @__PURE__ */ c("div", { className: G, children: e }),
|
|
229
|
-
|
|
229
|
+
p && /* @__PURE__ */ c("span", { className: "pl-2", children: p })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
232
|
) });
|
|
@@ -239,7 +239,7 @@ const v = H.createContext({
|
|
|
239
239
|
stickyHeader: !1,
|
|
240
240
|
stickyFooter: !1,
|
|
241
241
|
compact: !1
|
|
242
|
-
}), R = "thead", Y = "tfoot",
|
|
242
|
+
}), R = "thead", Y = "tfoot", T = "tbody", V = {
|
|
243
243
|
ASC: "asc",
|
|
244
244
|
DESC: "desc"
|
|
245
245
|
}, Ve = ({
|
|
@@ -252,7 +252,7 @@ const v = H.createContext({
|
|
|
252
252
|
}) => ({
|
|
253
253
|
wrapper: i(
|
|
254
254
|
"not-prose relative w-full rounded-lg shadow-md",
|
|
255
|
-
|
|
255
|
+
Te(o),
|
|
256
256
|
{
|
|
257
257
|
"overflow-x-auto": !a && !s,
|
|
258
258
|
"overflow-y-scroll": a || s,
|
|
@@ -306,13 +306,13 @@ const v = H.createContext({
|
|
|
306
306
|
"bg-table-head-light dark:bg-table-head-dark": e === "alt-system"
|
|
307
307
|
}) : i("border-b last:border-0", r, {
|
|
308
308
|
"border-table-dark": e === "dark",
|
|
309
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": t ===
|
|
309
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": t === T && e === "dark",
|
|
310
310
|
"border-table-light": e === "light",
|
|
311
|
-
"odd:bg-table-light-odd even:bg-table-light-even": t ===
|
|
311
|
+
"odd:bg-table-light-odd even:bg-table-light-even": t === T && e === "light",
|
|
312
312
|
"border-table-dark dark:border-table-light": e === "system",
|
|
313
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t ===
|
|
313
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": t === T && e === "system",
|
|
314
314
|
"border-table-light dark:border-table-dark": e === "alt-system",
|
|
315
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t ===
|
|
315
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": t === T && e === "alt-system"
|
|
316
316
|
}), Ge = ({
|
|
317
317
|
cellWrapper: e,
|
|
318
318
|
className: r,
|
|
@@ -324,7 +324,7 @@ const v = H.createContext({
|
|
|
324
324
|
"text-copy-light dark:text-copy-dark": a === "system",
|
|
325
325
|
"text-copy-dark dark:text-copy-light": a === "alt-system",
|
|
326
326
|
"px-4 py-3": !t && (e === R || e === Y),
|
|
327
|
-
"p-4": !t && e ===
|
|
327
|
+
"p-4": !t && e === T,
|
|
328
328
|
"px-4 py-1": t
|
|
329
329
|
}), lt = ({
|
|
330
330
|
children: e,
|
|
@@ -337,16 +337,16 @@ const v = H.createContext({
|
|
|
337
337
|
maxHeight: l,
|
|
338
338
|
stickyHeader: n,
|
|
339
339
|
stickyFooter: m,
|
|
340
|
-
spacing:
|
|
341
|
-
...
|
|
340
|
+
spacing: u,
|
|
341
|
+
...y
|
|
342
342
|
}) => {
|
|
343
|
-
const
|
|
343
|
+
const p = Ve({
|
|
344
344
|
mode: r,
|
|
345
345
|
className: o,
|
|
346
346
|
wrapperClassName: d,
|
|
347
347
|
stickyHeader: n,
|
|
348
348
|
stickyFooter: m,
|
|
349
|
-
spacing:
|
|
349
|
+
spacing: u
|
|
350
350
|
});
|
|
351
351
|
return /* @__PURE__ */ c(
|
|
352
352
|
v.Provider,
|
|
@@ -355,12 +355,12 @@ const v = H.createContext({
|
|
|
355
355
|
children: /* @__PURE__ */ c(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
358
|
-
className:
|
|
358
|
+
className: p.wrapper,
|
|
359
359
|
...l && {
|
|
360
360
|
style: { maxHeight: l }
|
|
361
361
|
},
|
|
362
|
-
children: /* @__PURE__ */
|
|
363
|
-
t && /* @__PURE__ */ c("caption", { className:
|
|
362
|
+
children: /* @__PURE__ */ x("table", { className: p.table, summary: s, ...y, children: [
|
|
363
|
+
t && /* @__PURE__ */ c("caption", { className: p.caption, children: t }),
|
|
364
364
|
e
|
|
365
365
|
] })
|
|
366
366
|
}
|
|
@@ -395,7 +395,7 @@ const v = H.createContext({
|
|
|
395
395
|
return /* @__PURE__ */ c("tfoot", { className: s, ...t, children: e });
|
|
396
396
|
}, it = ({ children: e, ...r }) => {
|
|
397
397
|
const t = A(v);
|
|
398
|
-
return t.cellWrapper =
|
|
398
|
+
return t.cellWrapper = T, /* @__PURE__ */ c("tbody", { ...r, children: e });
|
|
399
399
|
}, nt = ({
|
|
400
400
|
children: e,
|
|
401
401
|
className: r,
|
|
@@ -431,7 +431,7 @@ const v = H.createContext({
|
|
|
431
431
|
sortDirection: l,
|
|
432
432
|
sortedCell: n,
|
|
433
433
|
cellId: m,
|
|
434
|
-
...
|
|
434
|
+
...u
|
|
435
435
|
}) => /* @__PURE__ */ c(
|
|
436
436
|
De,
|
|
437
437
|
{
|
|
@@ -439,7 +439,7 @@ const v = H.createContext({
|
|
|
439
439
|
className: t,
|
|
440
440
|
role: "columnheader",
|
|
441
441
|
"aria-sort": l === V.ASC && n === m ? "ascending" : l === V.DESC && n === m ? "descending" : "other",
|
|
442
|
-
...
|
|
442
|
+
...u,
|
|
443
443
|
children: /* @__PURE__ */ c(
|
|
444
444
|
oe,
|
|
445
445
|
{
|
|
@@ -452,7 +452,7 @@ const v = H.createContext({
|
|
|
452
452
|
mode: o,
|
|
453
453
|
fullWidth: !0,
|
|
454
454
|
labelRight: r,
|
|
455
|
-
children: l === V.ASC && n === m ? /* @__PURE__ */ c(Le, { className: "size-4", monotone: !0 }) : l === V.DESC && n === m ? /* @__PURE__ */ c(
|
|
455
|
+
children: l === V.ASC && n === m ? /* @__PURE__ */ c(Le, { className: "size-4", monotone: !0 }) : l === V.DESC && n === m ? /* @__PURE__ */ c($e, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ c(Me, { className: "size-4", monotone: !0 })
|
|
456
456
|
}
|
|
457
457
|
)
|
|
458
458
|
}
|
|
@@ -465,16 +465,16 @@ function Fe({
|
|
|
465
465
|
},
|
|
466
466
|
initialControlledDelay: s = 0
|
|
467
467
|
}) {
|
|
468
|
-
const o
|
|
468
|
+
const [o, d] = z(!1), [l, n] = z(
|
|
469
469
|
r !== void 0 ? r : t
|
|
470
|
-
),
|
|
471
|
-
|
|
470
|
+
), m = (u) => {
|
|
471
|
+
n(u), a == null || a(u);
|
|
472
472
|
};
|
|
473
473
|
return ae(() => {
|
|
474
|
-
(async () => e !== void 0 &&
|
|
474
|
+
(async () => e !== void 0 && !o && s > 0 && (await new Promise(
|
|
475
475
|
(u) => setTimeout(u, s)
|
|
476
|
-
),
|
|
477
|
-
}, [e, s]), e !== void 0 ? [
|
|
476
|
+
), d(!0)))();
|
|
477
|
+
}, [e, s, o]), e !== void 0 ? !o && s > 0 ? ["", a, !0] : [e, a, !0] : [l, m, !1];
|
|
478
478
|
}
|
|
479
479
|
const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", We = ({
|
|
480
480
|
mode: e
|
|
@@ -565,7 +565,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
565
565
|
Ee,
|
|
566
566
|
e,
|
|
567
567
|
He(l)
|
|
568
|
-
),
|
|
568
|
+
), u = t ? i(r) : i(
|
|
569
569
|
se,
|
|
570
570
|
r,
|
|
571
571
|
Pe(),
|
|
@@ -578,7 +578,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
578
578
|
{
|
|
579
579
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
580
580
|
}
|
|
581
|
-
),
|
|
581
|
+
), y = t ? void 0 : "sr-only", p = Je({
|
|
582
582
|
disabled: s,
|
|
583
583
|
raw: t,
|
|
584
584
|
error: d,
|
|
@@ -588,14 +588,14 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
588
588
|
raw: t,
|
|
589
589
|
mode: n,
|
|
590
590
|
disabled: s
|
|
591
|
-
}),
|
|
591
|
+
}), g = t ? void 0 : i(Ae, "absolute");
|
|
592
592
|
return {
|
|
593
593
|
wrapper: m,
|
|
594
|
-
textArea:
|
|
595
|
-
accessibleLabel:
|
|
596
|
-
visibleLabel:
|
|
594
|
+
textArea: u,
|
|
595
|
+
accessibleLabel: y,
|
|
596
|
+
visibleLabel: p,
|
|
597
597
|
helperText: _,
|
|
598
|
-
rightElement:
|
|
598
|
+
rightElement: g
|
|
599
599
|
};
|
|
600
600
|
}, Ke = ({
|
|
601
601
|
scrollHeight: e,
|
|
@@ -625,63 +625,63 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
625
625
|
mode: l = "system",
|
|
626
626
|
focusMode: n = "system",
|
|
627
627
|
value: m,
|
|
628
|
-
defaultValue:
|
|
629
|
-
disabled:
|
|
630
|
-
noBorder:
|
|
628
|
+
defaultValue: u,
|
|
629
|
+
disabled: y = !1,
|
|
630
|
+
noBorder: p = !1,
|
|
631
631
|
labelId: _,
|
|
632
|
-
helperText:
|
|
632
|
+
helperText: g = "",
|
|
633
633
|
helperTextOnFocus: S = !1,
|
|
634
634
|
rightElement: C,
|
|
635
635
|
onChange: O,
|
|
636
|
-
onFocus:
|
|
637
|
-
onBlur:
|
|
636
|
+
onFocus: B,
|
|
637
|
+
onBlur: M,
|
|
638
638
|
spacing: U,
|
|
639
639
|
...G
|
|
640
640
|
}, D) => {
|
|
641
|
-
const b =
|
|
642
|
-
!!(!S &&
|
|
643
|
-
), he = `${r} error, ${
|
|
641
|
+
const b = N(null), de = ve([D, b]), [ie, $] = Se(), F = N(80), K = N(-25), I = N(null), X = N(30), P = N(null), E = Ce({ id: e, prefix: `${se}-` }), [ne, me] = z(0), [ue, Z] = z(
|
|
642
|
+
!!(!S && g)
|
|
643
|
+
), he = `${r} error, ${g}`, w = Ye({
|
|
644
644
|
className: o,
|
|
645
645
|
textAreaClassName: d,
|
|
646
646
|
error: a,
|
|
647
647
|
raw: s,
|
|
648
648
|
focusMode: n,
|
|
649
|
-
disabled:
|
|
650
|
-
noBorder:
|
|
649
|
+
disabled: y,
|
|
650
|
+
noBorder: p,
|
|
651
651
|
spacing: U,
|
|
652
652
|
mode: l
|
|
653
653
|
}), [f, pe] = Fe({
|
|
654
654
|
value: m,
|
|
655
|
-
initialControlledDelay:
|
|
656
|
-
defaultValue:
|
|
657
|
-
onChange: (
|
|
655
|
+
initialControlledDelay: 20,
|
|
656
|
+
defaultValue: u,
|
|
657
|
+
onChange: (h) => {
|
|
658
658
|
O && O({
|
|
659
659
|
target: {
|
|
660
|
-
value:
|
|
660
|
+
value: h
|
|
661
661
|
}
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
|
-
}), ge = (
|
|
665
|
-
pe(
|
|
666
|
-
}, ye = (
|
|
667
|
-
S &&
|
|
668
|
-
}, be = (
|
|
669
|
-
S &&
|
|
664
|
+
}), ge = (h) => {
|
|
665
|
+
pe(h.target.value);
|
|
666
|
+
}, ye = (h) => {
|
|
667
|
+
S && g && Z(!0), B && B(h);
|
|
668
|
+
}, be = (h) => {
|
|
669
|
+
S && g && !f && Z(!1), M && M(h);
|
|
670
670
|
};
|
|
671
671
|
return L(() => {
|
|
672
|
-
|
|
673
|
-
}, [
|
|
672
|
+
$ && $.width && me($.width + 18 + 10);
|
|
673
|
+
}, [$]), L(() => {
|
|
674
674
|
s || b && b.current && f !== void 0 && (b.current.style.height = "inherit", b.current.style.height = b.current.scrollHeight + "px");
|
|
675
675
|
}, [f, s]), L(() => {
|
|
676
676
|
s || setTimeout(() => {
|
|
677
|
-
var
|
|
678
|
-
(
|
|
677
|
+
var h;
|
|
678
|
+
(h = I == null ? void 0 : I.current) == null || h.style.setProperty(
|
|
679
679
|
"--av-text-area-wrapper-transition",
|
|
680
680
|
f ? "none" : "all 0.2s ease-out"
|
|
681
681
|
);
|
|
682
682
|
}, 0);
|
|
683
683
|
}, [f, s]), L(() => {
|
|
684
|
-
var
|
|
684
|
+
var h, ee;
|
|
685
685
|
if (!s && b && b.current && f !== void 0) {
|
|
686
686
|
const { labelOffset: W, helperTextOffset: q, scrollHeight: fe } = Ke({
|
|
687
687
|
scrollHeight: b.current.scrollHeight,
|
|
@@ -689,7 +689,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
689
689
|
currentLabelOffset: K.current,
|
|
690
690
|
currentHelperTextOffset: X.current
|
|
691
691
|
});
|
|
692
|
-
W && (K.current = W, (
|
|
692
|
+
W && (K.current = W, (h = I == null ? void 0 : I.current) == null || h.style.setProperty(
|
|
693
693
|
"--av-text-area-label",
|
|
694
694
|
`${W}px`
|
|
695
695
|
)), q && (X.current = q, (ee = P == null ? void 0 : P.current) == null || ee.style.setProperty(
|
|
@@ -697,13 +697,13 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
697
697
|
`${q}px`
|
|
698
698
|
)), F.current = fe || F.current;
|
|
699
699
|
}
|
|
700
|
-
}, [f, s]), /* @__PURE__ */
|
|
700
|
+
}, [f, s]), /* @__PURE__ */ x("div", { className: w.wrapper, children: [
|
|
701
701
|
/* @__PURE__ */ c(
|
|
702
702
|
"label",
|
|
703
703
|
{
|
|
704
704
|
htmlFor: E,
|
|
705
705
|
id: _,
|
|
706
|
-
className:
|
|
706
|
+
className: w.accessibleLabel,
|
|
707
707
|
children: t
|
|
708
708
|
}
|
|
709
709
|
),
|
|
@@ -713,11 +713,11 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
713
713
|
ref: de,
|
|
714
714
|
id: E,
|
|
715
715
|
name: r,
|
|
716
|
-
disabled:
|
|
716
|
+
disabled: y,
|
|
717
717
|
placeholder: s ? void 0 : " ",
|
|
718
|
-
className:
|
|
718
|
+
className: w.textArea,
|
|
719
719
|
rows: 1,
|
|
720
|
-
...
|
|
720
|
+
...g && { "aria-describedby": `${E}-helper` },
|
|
721
721
|
...a && { "aria-invalid": "true" },
|
|
722
722
|
...C && !s && { style: { paddingRight: ne } },
|
|
723
723
|
value: f,
|
|
@@ -733,7 +733,7 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
733
733
|
ref: I,
|
|
734
734
|
"aria-hidden": !0,
|
|
735
735
|
htmlFor: E,
|
|
736
|
-
className:
|
|
736
|
+
className: w.visibleLabel,
|
|
737
737
|
children: t
|
|
738
738
|
}
|
|
739
739
|
),
|
|
@@ -742,19 +742,19 @@ const Pe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
742
742
|
{
|
|
743
743
|
ref: P,
|
|
744
744
|
id: `${E}-helper`,
|
|
745
|
-
className:
|
|
746
|
-
children:
|
|
745
|
+
className: w.helperText,
|
|
746
|
+
children: g
|
|
747
747
|
}
|
|
748
748
|
),
|
|
749
749
|
C && /* @__PURE__ */ c(
|
|
750
750
|
"div",
|
|
751
751
|
{
|
|
752
752
|
ref: ie,
|
|
753
|
-
className:
|
|
753
|
+
className: w.rightElement,
|
|
754
754
|
children: C
|
|
755
755
|
}
|
|
756
756
|
),
|
|
757
|
-
a &&
|
|
757
|
+
a && g && /* @__PURE__ */ c(Ie, { politeness: "polite", clearAnnouncementDelay: 500, children: he })
|
|
758
758
|
] });
|
|
759
759
|
}
|
|
760
760
|
);
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.DW-8fMRN.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v4.3.
|
|
3
|
+
@sassysaint/client v4.3.4
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "4.3.
|
|
9
|
-
buildTime: "09/
|
|
8
|
+
version: "4.3.4",
|
|
9
|
+
buildTime: "09/09/2024 07:22 PM EDT",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@sassysaint/client": "4.3.
|
|
33
|
+
"@sassysaint/client": "4.3.4",
|
|
34
34
|
"@versini/ui-styles": "1.9.5"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"**/*.css"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "ff58d90f3ca4fdbd6830bb34305ecbfff0bacb0b"
|
|
45
45
|
}
|