@versini/sassysaint 5.3.4 → 5.3.6
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.DFqF-wQM.js → App.DvwCgAJX.js} +21 -21
- package/dist/chunks/{LazyHeader.Dw2gvADU.js → LazyHeader.DpTNFgtg.js} +536 -540
- package/dist/chunks/{LazyMarkdownWithExtra.BogZ-y3A.js → LazyMarkdownWithExtra.BNeDXGMl.js} +11 -11
- package/dist/chunks/{LazyMessageAssistant.BBZLMOq5.js → LazyMessageAssistant.BpwMhQ83.js} +7 -7
- package/dist/chunks/{index.D5p6GpnU.C8lskEhG.js → index.AUArUGH7.FZU7Bha5.js} +10 -10
- package/dist/chunks/{index.0OaSd9kZ.js → index.CoCFKnCo.js} +187 -186
- package/dist/chunks/{index.B3_1eKgu.js → index.DQ6ANvTz.js} +205 -199
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -42,11 +42,11 @@ function xt(e) {
|
|
|
42
42
|
function Ct(e) {
|
|
43
43
|
return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
class x extends Error {
|
|
46
46
|
constructor({ message: t, code: r, cause: a, name: n }) {
|
|
47
47
|
super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
|
|
48
48
|
}
|
|
49
|
-
}
|
|
49
|
+
}
|
|
50
50
|
function hr({ error: e, options: t }) {
|
|
51
51
|
var a, n;
|
|
52
52
|
const { publicKey: r } = t;
|
|
@@ -419,7 +419,7 @@ let G = class extends te {
|
|
|
419
419
|
static get code() {
|
|
420
420
|
return "ERR_JWS_INVALID";
|
|
421
421
|
}
|
|
422
|
-
},
|
|
422
|
+
}, Y = class extends te {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(...arguments), this.code = "ERR_JWT_INVALID";
|
|
425
425
|
}
|
|
@@ -441,7 +441,7 @@ function J(e, t = "algorithm.name") {
|
|
|
441
441
|
function Te(e, t) {
|
|
442
442
|
return e.name === t;
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Be(e) {
|
|
445
445
|
return parseInt(e.name.slice(4), 10);
|
|
446
446
|
}
|
|
447
447
|
function Sr(e) {
|
|
@@ -474,7 +474,7 @@ function _r(e, t, ...r) {
|
|
|
474
474
|
if (!Te(e.algorithm, "HMAC"))
|
|
475
475
|
throw J("HMAC");
|
|
476
476
|
const a = parseInt(t.slice(2), 10);
|
|
477
|
-
if (
|
|
477
|
+
if (Be(e.algorithm.hash) !== a)
|
|
478
478
|
throw J(`SHA-${a}`, "algorithm.hash");
|
|
479
479
|
break;
|
|
480
480
|
}
|
|
@@ -484,7 +484,7 @@ function _r(e, t, ...r) {
|
|
|
484
484
|
if (!Te(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
485
485
|
throw J("RSASSA-PKCS1-v1_5");
|
|
486
486
|
const a = parseInt(t.slice(2), 10);
|
|
487
|
-
if (
|
|
487
|
+
if (Be(e.algorithm.hash) !== a)
|
|
488
488
|
throw J(`SHA-${a}`, "algorithm.hash");
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
@@ -494,7 +494,7 @@ function _r(e, t, ...r) {
|
|
|
494
494
|
if (!Te(e.algorithm, "RSA-PSS"))
|
|
495
495
|
throw J("RSA-PSS");
|
|
496
496
|
const a = parseInt(t.slice(2), 10);
|
|
497
|
-
if (
|
|
497
|
+
if (Be(e.algorithm.hash) !== a)
|
|
498
498
|
throw J(`SHA-${a}`, "algorithm.hash");
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
@@ -788,7 +788,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
|
|
|
788
788
|
if (t.alg !== void 0 && t.alg !== e)
|
|
789
789
|
throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
|
|
790
790
|
return !0;
|
|
791
|
-
},
|
|
791
|
+
}, Br = (e, t, r, a) => {
|
|
792
792
|
if (!(t instanceof Uint8Array)) {
|
|
793
793
|
if (a && he(t)) {
|
|
794
794
|
if (Pr(t) && Xe(e, t, r))
|
|
@@ -800,7 +800,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
|
|
|
800
800
|
if (t.type !== "secret")
|
|
801
801
|
throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
802
802
|
}
|
|
803
|
-
},
|
|
803
|
+
}, Wr = (e, t, r, a) => {
|
|
804
804
|
if (a && he(t))
|
|
805
805
|
switch (r) {
|
|
806
806
|
case "sign":
|
|
@@ -825,11 +825,11 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) =>
|
|
|
825
825
|
if (t.algorithm && r === "encrypt" && t.type === "private")
|
|
826
826
|
throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
827
827
|
};
|
|
828
|
-
function
|
|
829
|
-
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ?
|
|
828
|
+
function Bt(e, t, r, a) {
|
|
829
|
+
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Br(t, r, a, e) : Wr(t, r, a, e);
|
|
830
830
|
}
|
|
831
|
-
|
|
832
|
-
const mt =
|
|
831
|
+
Bt.bind(void 0, !1);
|
|
832
|
+
const mt = Bt.bind(void 0, !0);
|
|
833
833
|
function Vr(e, t, r, a, n) {
|
|
834
834
|
if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
|
|
835
835
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
@@ -855,7 +855,7 @@ const Jr = (e, t) => {
|
|
|
855
855
|
if (t)
|
|
856
856
|
return new Set(t);
|
|
857
857
|
};
|
|
858
|
-
function
|
|
858
|
+
function Yr(e, t) {
|
|
859
859
|
const r = `SHA-${e.slice(-3)}`;
|
|
860
860
|
switch (e) {
|
|
861
861
|
case "HS256":
|
|
@@ -880,7 +880,7 @@ function Fr(e, t) {
|
|
|
880
880
|
throw new G(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
881
881
|
}
|
|
882
882
|
}
|
|
883
|
-
async function
|
|
883
|
+
async function Fr(e, t, r) {
|
|
884
884
|
if (t = await Mr.normalizePublicKey(t, e), $t(t))
|
|
885
885
|
return _r(t, e, r), t;
|
|
886
886
|
if (t instanceof Uint8Array) {
|
|
@@ -891,9 +891,9 @@ async function Yr(e, t, r) {
|
|
|
891
891
|
throw new TypeError(dt(t, ...Ce, "Uint8Array", "JSON Web Key"));
|
|
892
892
|
}
|
|
893
893
|
const zr = async (e, t, r, a) => {
|
|
894
|
-
const n = await
|
|
894
|
+
const n = await Fr(e, t, "verify");
|
|
895
895
|
xr(e, n);
|
|
896
|
-
const o =
|
|
896
|
+
const o = Yr(e, n.algorithm);
|
|
897
897
|
try {
|
|
898
898
|
return await Le.subtle.verify(o, n, r, a);
|
|
899
899
|
} catch {
|
|
@@ -972,7 +972,7 @@ async function qr(e, t, r) {
|
|
|
972
972
|
const i = await jr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
973
973
|
return typeof t == "function" ? { ...u, key: i.key } : u;
|
|
974
974
|
}
|
|
975
|
-
const Xr = (e) => Math.floor(e.getTime() / 1e3),
|
|
975
|
+
const Xr = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Vt = Wt * 60, tt = Vt * 24, Qr = tt * 7, Zr = tt * 365.25, ea = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ht = (e) => {
|
|
976
976
|
const t = ea.exec(e);
|
|
977
977
|
if (!t || t[4] && t[1])
|
|
978
978
|
throw new TypeError("Invalid time period format");
|
|
@@ -991,7 +991,7 @@ const Xr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Vt = Bt * 60, tt = Vt
|
|
|
991
991
|
case "min":
|
|
992
992
|
case "mins":
|
|
993
993
|
case "m":
|
|
994
|
-
n = Math.round(r *
|
|
994
|
+
n = Math.round(r * Wt);
|
|
995
995
|
break;
|
|
996
996
|
case "hour":
|
|
997
997
|
case "hours":
|
|
@@ -1022,7 +1022,7 @@ const Xr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Vt = Bt * 60, tt = Vt
|
|
|
1022
1022
|
} catch {
|
|
1023
1023
|
}
|
|
1024
1024
|
if (!me(a))
|
|
1025
|
-
throw new
|
|
1025
|
+
throw new Y("JWT Claims Set must be a top-level JSON object");
|
|
1026
1026
|
const { typ: n } = r;
|
|
1027
1027
|
if (n && (typeof e.typ != "string" || pt(e.typ) !== pt(n)))
|
|
1028
1028
|
throw new K('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
@@ -1079,35 +1079,35 @@ async function aa(e, t, r) {
|
|
|
1079
1079
|
var a;
|
|
1080
1080
|
const n = await qr(e, t, r);
|
|
1081
1081
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
|
1082
|
-
throw new
|
|
1082
|
+
throw new Y("JWTs MUST NOT use unencoded payload");
|
|
1083
1083
|
const o = { payload: ra(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
|
1084
1084
|
return typeof t == "function" ? { ...o, key: n.key } : o;
|
|
1085
1085
|
}
|
|
1086
1086
|
const na = X;
|
|
1087
1087
|
function oa(e) {
|
|
1088
1088
|
if (typeof e != "string")
|
|
1089
|
-
throw new
|
|
1089
|
+
throw new Y("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1090
1090
|
const { 1: t, length: r } = e.split(".");
|
|
1091
1091
|
if (r === 5)
|
|
1092
|
-
throw new
|
|
1092
|
+
throw new Y("Only JWTs using Compact JWS serialization can be decoded");
|
|
1093
1093
|
if (r !== 3)
|
|
1094
|
-
throw new
|
|
1094
|
+
throw new Y("Invalid JWT");
|
|
1095
1095
|
if (!t)
|
|
1096
|
-
throw new
|
|
1096
|
+
throw new Y("JWTs must contain a payload");
|
|
1097
1097
|
let a;
|
|
1098
1098
|
try {
|
|
1099
1099
|
a = na(t);
|
|
1100
1100
|
} catch {
|
|
1101
|
-
throw new
|
|
1101
|
+
throw new Y("Failed to base64url decode the payload");
|
|
1102
1102
|
}
|
|
1103
1103
|
let n;
|
|
1104
1104
|
try {
|
|
1105
1105
|
n = JSON.parse(be.decode(a));
|
|
1106
1106
|
} catch {
|
|
1107
|
-
throw new
|
|
1107
|
+
throw new Y("Failed to parse the decoded payload as JSON");
|
|
1108
1108
|
}
|
|
1109
1109
|
if (!me(n))
|
|
1110
|
-
throw new
|
|
1110
|
+
throw new Y("Invalid JWT Claims Set");
|
|
1111
1111
|
return n;
|
|
1112
1112
|
}
|
|
1113
1113
|
const fe = async (e) => {
|
|
@@ -1127,8 +1127,8 @@ const fe = async (e) => {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
1129
|
var A = [];
|
|
1130
|
-
for (var
|
|
1131
|
-
A.push((
|
|
1130
|
+
for (var We = 0; We < 256; ++We)
|
|
1131
|
+
A.push((We + 256).toString(16).slice(1));
|
|
1132
1132
|
function ia(e, t = 0) {
|
|
1133
1133
|
return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
|
|
1134
1134
|
}
|
|
@@ -1228,10 +1228,10 @@ function Je(e, t, r) {
|
|
|
1228
1228
|
var a = e.random || (e.rng || Ea)();
|
|
1229
1229
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ya(a);
|
|
1230
1230
|
}
|
|
1231
|
-
const oe = "Your session has expired. For your security, please log in again to continue.", Ta = "Your session has been successfully terminated.",
|
|
1231
|
+
const oe = "Your session has expired. For your security, please log in again to continue.", Ta = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", Ia = "Error getting access token, please re-authenticate.", va = "You forgot to wrap your component in <AuthProvider>.", Pe = {
|
|
1232
1232
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1233
1233
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1234
|
-
}, Se = "@@auth@@", ge = "LOADING", Ne = "LOGIN",
|
|
1234
|
+
}, Se = "@@auth@@", ge = "LOADING", Ne = "LOGIN", Yt = "LOGOUT", Ee = "success", B = "failure", Ft = "include", zt = "POST", jt = "application/json", ke = {
|
|
1235
1235
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1236
1236
|
$clientId: String!,
|
|
1237
1237
|
$username: String!,
|
|
@@ -1339,7 +1339,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1339
1339
|
const n = `Bearer ${e}`, o = await fetch(
|
|
1340
1340
|
qt ? `${Pe.dev}/graphql` : `${Pe.prod}/graphql`,
|
|
1341
1341
|
{
|
|
1342
|
-
credentials:
|
|
1342
|
+
credentials: Ft,
|
|
1343
1343
|
method: zt,
|
|
1344
1344
|
headers: {
|
|
1345
1345
|
authorization: n,
|
|
@@ -1353,14 +1353,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1353
1353
|
}
|
|
1354
1354
|
);
|
|
1355
1355
|
if (o.status !== 200)
|
|
1356
|
-
return { status:
|
|
1356
|
+
return { status: B, data: [] };
|
|
1357
1357
|
const { data: s } = await o.json();
|
|
1358
1358
|
return {
|
|
1359
1359
|
status: Ee,
|
|
1360
1360
|
data: s[t.method]
|
|
1361
1361
|
};
|
|
1362
1362
|
} catch (n) {
|
|
1363
|
-
return console.error(n), { status:
|
|
1363
|
+
return console.error(n), { status: B, data: [] };
|
|
1364
1364
|
}
|
|
1365
1365
|
}, Me = async ({
|
|
1366
1366
|
type: e,
|
|
@@ -1371,7 +1371,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1371
1371
|
const a = await fetch(
|
|
1372
1372
|
qt ? `${Pe.dev}/${e}` : `${Pe.prod}/${e}`,
|
|
1373
1373
|
{
|
|
1374
|
-
credentials:
|
|
1374
|
+
credentials: Ft,
|
|
1375
1375
|
method: zt,
|
|
1376
1376
|
headers: {
|
|
1377
1377
|
"Content-Type": jt,
|
|
@@ -1381,14 +1381,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1381
1381
|
}
|
|
1382
1382
|
);
|
|
1383
1383
|
if (a.status !== 200)
|
|
1384
|
-
return { status:
|
|
1384
|
+
return { status: B, data: [] };
|
|
1385
1385
|
const { data: n } = await a.json();
|
|
1386
1386
|
return {
|
|
1387
1387
|
status: Ee,
|
|
1388
1388
|
data: n || []
|
|
1389
1389
|
};
|
|
1390
1390
|
} catch (a) {
|
|
1391
|
-
return console.error(a), { status:
|
|
1391
|
+
return console.error(a), { status: B, data: [] };
|
|
1392
1392
|
}
|
|
1393
1393
|
}, Aa = process.env.NODE_ENV === "production", qt = !Aa, Xt = {
|
|
1394
1394
|
isLoading: !0,
|
|
@@ -1421,11 +1421,11 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1421
1421
|
domain: r,
|
|
1422
1422
|
idToken: a
|
|
1423
1423
|
}
|
|
1424
|
-
})) == null ? void 0 : n.status) ||
|
|
1424
|
+
})) == null ? void 0 : n.status) || B
|
|
1425
1425
|
};
|
|
1426
1426
|
} catch {
|
|
1427
1427
|
return {
|
|
1428
|
-
status:
|
|
1428
|
+
status: B
|
|
1429
1429
|
};
|
|
1430
1430
|
}
|
|
1431
1431
|
}, _a = async ({
|
|
@@ -1492,12 +1492,12 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1492
1492
|
status: Ee,
|
|
1493
1493
|
data: n.data.code
|
|
1494
1494
|
} : {
|
|
1495
|
-
status:
|
|
1495
|
+
status: B,
|
|
1496
1496
|
data: ""
|
|
1497
1497
|
};
|
|
1498
1498
|
} catch {
|
|
1499
1499
|
return {
|
|
1500
|
-
status:
|
|
1500
|
+
status: B,
|
|
1501
1501
|
data: ""
|
|
1502
1502
|
};
|
|
1503
1503
|
}
|
|
@@ -1580,11 +1580,11 @@ class xa {
|
|
|
1580
1580
|
newAccessToken: s.accessToken,
|
|
1581
1581
|
newRefreshToken: s.refreshToken
|
|
1582
1582
|
}) : {
|
|
1583
|
-
status:
|
|
1583
|
+
status: B
|
|
1584
1584
|
};
|
|
1585
1585
|
} else
|
|
1586
1586
|
return {
|
|
1587
|
-
status:
|
|
1587
|
+
status: B
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
@@ -1620,7 +1620,7 @@ const Ca = (e) => q(
|
|
|
1620
1620
|
user: t.payload.user,
|
|
1621
1621
|
authenticationType: t.payload.authenticationType,
|
|
1622
1622
|
logoutReason: ""
|
|
1623
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1623
|
+
} : (t == null ? void 0 : t.type) === Yt ? {
|
|
1624
1624
|
...e,
|
|
1625
1625
|
isLoading: !1,
|
|
1626
1626
|
isAuthenticated: !1,
|
|
@@ -1655,13 +1655,13 @@ const Ca = (e) => q(
|
|
|
1655
1655
|
M,
|
|
1656
1656
|
w,
|
|
1657
1657
|
i
|
|
1658
|
-
]),
|
|
1658
|
+
]), W = q(
|
|
1659
1659
|
(g) => {
|
|
1660
1660
|
i(
|
|
1661
1661
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
1662
1662
|
g
|
|
1663
1663
|
), s({
|
|
1664
|
-
type:
|
|
1664
|
+
type: Yt,
|
|
1665
1665
|
payload: {
|
|
1666
1666
|
logoutReason: g || oe
|
|
1667
1667
|
}
|
|
@@ -1679,9 +1679,9 @@ const Ca = (e) => q(
|
|
|
1679
1679
|
clientId: r,
|
|
1680
1680
|
domain: a,
|
|
1681
1681
|
idToken: h
|
|
1682
|
-
}),
|
|
1682
|
+
}), W(g || oe);
|
|
1683
1683
|
},
|
|
1684
|
-
[h, o, r, a,
|
|
1684
|
+
[h, o, r, a, W, i]
|
|
1685
1685
|
);
|
|
1686
1686
|
Q(() => {
|
|
1687
1687
|
if (!u.current)
|
|
@@ -1712,7 +1712,7 @@ const Ca = (e) => q(
|
|
|
1712
1712
|
s({ type: ge, payload: { isLoading: !0 } }), N();
|
|
1713
1713
|
const E = Je();
|
|
1714
1714
|
D(E), i("login: Logging in with password");
|
|
1715
|
-
const { code_verifier:
|
|
1715
|
+
const { code_verifier: F, code_challenge: cr } = await pa(), it = await Na({
|
|
1716
1716
|
nonce: E,
|
|
1717
1717
|
clientId: r,
|
|
1718
1718
|
code_challenge: cr
|
|
@@ -1726,7 +1726,7 @@ const Ca = (e) => q(
|
|
|
1726
1726
|
nonce: E,
|
|
1727
1727
|
type: ue.CODE,
|
|
1728
1728
|
code: it.data,
|
|
1729
|
-
code_verifier:
|
|
1729
|
+
code_verifier: F,
|
|
1730
1730
|
domain: a,
|
|
1731
1731
|
ua: navigator.userAgent
|
|
1732
1732
|
});
|
|
@@ -1740,7 +1740,7 @@ const Ca = (e) => q(
|
|
|
1740
1740
|
email: re.email
|
|
1741
1741
|
}
|
|
1742
1742
|
}
|
|
1743
|
-
}), !0) : (
|
|
1743
|
+
}), !0) : (W(Ye), !1);
|
|
1744
1744
|
}
|
|
1745
1745
|
return !1;
|
|
1746
1746
|
}, pe = async (g) => {
|
|
@@ -1751,8 +1751,8 @@ const Ca = (e) => q(
|
|
|
1751
1751
|
if (g && T && T.userId) {
|
|
1752
1752
|
if (c) {
|
|
1753
1753
|
i("getAccessToken");
|
|
1754
|
-
const
|
|
1755
|
-
if (
|
|
1754
|
+
const F = await fe(c);
|
|
1755
|
+
if (F && F.payload[_.USER_ID_KEY] !== "")
|
|
1756
1756
|
return c;
|
|
1757
1757
|
}
|
|
1758
1758
|
i("getAccessToken: invalid access token, trying to refresh it");
|
|
@@ -1830,7 +1830,7 @@ const Ca = (e) => q(
|
|
|
1830
1830
|
});
|
|
1831
1831
|
if (E.status)
|
|
1832
1832
|
try {
|
|
1833
|
-
const
|
|
1833
|
+
const F = await Er(E.data);
|
|
1834
1834
|
return E = await ie({
|
|
1835
1835
|
accessToken: c,
|
|
1836
1836
|
clientId: r,
|
|
@@ -1838,7 +1838,7 @@ const Ca = (e) => q(
|
|
|
1838
1838
|
params: {
|
|
1839
1839
|
clientId: r,
|
|
1840
1840
|
id: T,
|
|
1841
|
-
authentication:
|
|
1841
|
+
authentication: F,
|
|
1842
1842
|
nonce: g,
|
|
1843
1843
|
domain: a,
|
|
1844
1844
|
sessionExpiration: t,
|
|
@@ -1854,7 +1854,7 @@ const Ca = (e) => q(
|
|
|
1854
1854
|
email: E.data.email
|
|
1855
1855
|
}
|
|
1856
1856
|
}
|
|
1857
|
-
}), !0) : (
|
|
1857
|
+
}), !0) : (W(Ye), !1);
|
|
1858
1858
|
} catch {
|
|
1859
1859
|
return await ie({
|
|
1860
1860
|
accessToken: c,
|
|
@@ -1868,7 +1868,7 @@ const Ca = (e) => q(
|
|
|
1868
1868
|
domain: a,
|
|
1869
1869
|
sessionExpiration: t
|
|
1870
1870
|
}
|
|
1871
|
-
}),
|
|
1871
|
+
}), W(Ye), !1;
|
|
1872
1872
|
}
|
|
1873
1873
|
return !1;
|
|
1874
1874
|
};
|
|
@@ -1887,11 +1887,11 @@ const Ca = (e) => q(
|
|
|
1887
1887
|
children: e
|
|
1888
1888
|
}
|
|
1889
1889
|
) });
|
|
1890
|
-
}, rt = (e = Qt) => Ze(e),
|
|
1890
|
+
}, rt = (e = Qt) => Ze(e), po = "user", go = "assistant", fo = "system", yo = "internal", bo = "hidden", Eo = "I'm having trouble right now. Please try again later.", Fe = "OpenAI", wo = "OpenAI", To = "Anthropic", Io = 128e3, vo = "action-message", Ao = "action-reset", So = "action-model", ko = "action-restore", _o = "action-streaming", No = "action-engine", Ro = "action-search", xo = "action-sort", Co = "action-toggle-tag", Oo = "action-reset-tags", ze = {
|
|
1891
1891
|
SUMMARIZE_ARTICLE: "summarize-article",
|
|
1892
1892
|
PROOFREAD_CONTENT: "proofread-content",
|
|
1893
1893
|
REPHRASE_CONTENT: "rephrase-content"
|
|
1894
|
-
},
|
|
1894
|
+
}, Po = {
|
|
1895
1895
|
[ze.SUMMARIZE_ARTICLE]: {
|
|
1896
1896
|
label: "Summarize...",
|
|
1897
1897
|
content: "Summarize this article: "
|
|
@@ -1901,7 +1901,7 @@ const Ca = (e) => q(
|
|
|
1901
1901
|
content: "Proofread this: "
|
|
1902
1902
|
},
|
|
1903
1903
|
[ze.REPHRASE_CONTENT]: { label: "Rephrase...", content: "Rephrase this: " }
|
|
1904
|
-
},
|
|
1904
|
+
}, Do = "sassy-saint-", $o = "details", Lo = "search", Mo = "sort", Uo = "summarize-article", Ko = "proofread-content", Ho = "rephrase-content", Go = "engine-toggle", Bo = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Tt = (e) => Number.isFinite(e) ? e : 0;
|
|
1905
1905
|
function La(e) {
|
|
1906
1906
|
return {
|
|
1907
1907
|
days: Math.trunc(e / 864e5),
|
|
@@ -1936,8 +1936,8 @@ function Ua(e) {
|
|
|
1936
1936
|
}
|
|
1937
1937
|
throw new TypeError("Expected a finite number or bigint");
|
|
1938
1938
|
}
|
|
1939
|
-
const Ka = (e) => e === 0 || e === 0n, Ha = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 1e-7,
|
|
1940
|
-
function
|
|
1939
|
+
const Ka = (e) => e === 0 || e === 0n, Ha = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 1e-7, Ba = 24n * 60n * 60n * 1000n;
|
|
1940
|
+
function Wa(e, t) {
|
|
1941
1941
|
const r = typeof e == "bigint";
|
|
1942
1942
|
if (!r && !Number.isFinite(e))
|
|
1943
1943
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -1958,29 +1958,30 @@ function Ba(e, t) {
|
|
|
1958
1958
|
n.push(d);
|
|
1959
1959
|
}
|
|
1960
1960
|
}, i = Ua(e), u = BigInt(i.days);
|
|
1961
|
-
if (s(u / 365n, "year", "y"), s(u % 365n, "day", "d"), s(Number(i.hours), "hour", "h"), s(Number(i.minutes), "minute", "m"),
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1961
|
+
if (t.hideYearAndDays ? s(BigInt(u) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(u, "day", "d") : (s(u / 365n, "year", "y"), s(u % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
|
|
1962
|
+
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1963
|
+
const p = Number(i.seconds), m = Number(i.milliseconds), c = Number(i.microseconds), d = Number(i.nanoseconds);
|
|
1964
|
+
if (s(p, "second", "s"), t.formatSubMilliseconds)
|
|
1965
|
+
s(m, "millisecond", "ms"), s(c, "microsecond", "µs"), s(d, "nanosecond", "ns");
|
|
1966
|
+
else {
|
|
1967
|
+
const y = m + c / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, v = y >= 1 ? Math.round(y) : Math.ceil(y), w = b ? y.toFixed(b) : v;
|
|
1968
|
+
s(
|
|
1969
|
+
Number.parseFloat(w),
|
|
1970
|
+
"millisecond",
|
|
1971
|
+
"ms",
|
|
1972
|
+
w
|
|
1973
|
+
);
|
|
1974
|
+
}
|
|
1975
|
+
} else {
|
|
1976
|
+
const p = (r ? Number(e % Ba) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, m), d = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1977
|
+
s(Number.parseFloat(d), "second", "s", d);
|
|
1973
1978
|
}
|
|
1974
|
-
} else {
|
|
1975
|
-
const p = (r ? Number(e % Wa) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, m), d = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1976
|
-
s(Number.parseFloat(d), "second", "s", d);
|
|
1977
|
-
}
|
|
1978
1979
|
if (n.length === 0)
|
|
1979
1980
|
return a + "0" + (t.verbose ? " milliseconds" : "ms");
|
|
1980
1981
|
const h = t.colonNotation ? ":" : " ";
|
|
1981
1982
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1982
1983
|
}
|
|
1983
|
-
const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.local.com" : "gizmette.com",
|
|
1984
|
+
const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.local.com" : "gizmette.com", Wo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Vo = async () => {
|
|
1984
1985
|
const e = {
|
|
1985
1986
|
/**
|
|
1986
1987
|
* A boolean value that indicates the application would
|
|
@@ -2029,7 +2030,7 @@ const Va = process.env.NODE_ENV === "production", at = !Va, Ja = at ? "gizmette.
|
|
|
2029
2030
|
e
|
|
2030
2031
|
);
|
|
2031
2032
|
});
|
|
2032
|
-
},
|
|
2033
|
+
}, Jo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ I("div", { className: "flex items-center justify-between", children: [
|
|
2033
2034
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2034
2035
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2035
2036
|
] }) }, `${e}-${r}`)) : null;
|
|
@@ -2045,18 +2046,18 @@ function Yo({
|
|
|
2045
2046
|
);
|
|
2046
2047
|
return t(a ? a / r.length : 0);
|
|
2047
2048
|
}
|
|
2048
|
-
const
|
|
2049
|
+
const Fo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, zo = new Intl.NumberFormat("en", {
|
|
2049
2050
|
style: "decimal",
|
|
2050
2051
|
signDisplay: "never",
|
|
2051
2052
|
minimumFractionDigits: 0,
|
|
2052
2053
|
maximumFractionDigits: 0
|
|
2053
|
-
}),
|
|
2054
|
+
}), jo = (e) => e > 0 ? Wa(e, {
|
|
2054
2055
|
secondsDecimalDigits: 2,
|
|
2055
2056
|
unitCount: 2
|
|
2056
|
-
}) : "N/A",
|
|
2057
|
+
}) : "N/A", Ya = (e) => f(
|
|
2057
2058
|
"flex-1 space-y-6 overflow-y-auto rounded-md bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
|
|
2058
2059
|
e || at ? "pt-4" : "pt-10"
|
|
2059
|
-
),
|
|
2060
|
+
), qo = (e, t) => t === 1 ? e : `${e}s`, It = "av-button", Fa = (e) => {
|
|
2060
2061
|
let t = "";
|
|
2061
2062
|
if (typeof e == "number" || typeof e == "string")
|
|
2062
2063
|
t = "m-" + e;
|
|
@@ -2240,7 +2241,7 @@ const zo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2240
2241
|
}) => (d || (d = "primary"), r ? f(It, t) : f(
|
|
2241
2242
|
It,
|
|
2242
2243
|
t,
|
|
2243
|
-
|
|
2244
|
+
Fa(m),
|
|
2244
2245
|
qa({ mode: a, variant: d, noBackground: c, noTruncate: y }),
|
|
2245
2246
|
ja({ type: e, size: i, labelRight: h, labelLeft: p, align: b }),
|
|
2246
2247
|
Za({ mode: a, variant: d, noBorder: u }),
|
|
@@ -2373,13 +2374,13 @@ const Qe = O.forwardRef(
|
|
|
2373
2374
|
);
|
|
2374
2375
|
Qe.displayName = "ButtonIcon";
|
|
2375
2376
|
/*!
|
|
2376
|
-
@versini/ui-button v1.1.
|
|
2377
|
+
@versini/ui-button v1.1.11
|
|
2377
2378
|
© 2024 gizmette.com
|
|
2378
2379
|
*/
|
|
2379
2380
|
try {
|
|
2380
2381
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2381
|
-
version: "1.1.
|
|
2382
|
-
buildTime: "
|
|
2382
|
+
version: "1.1.11",
|
|
2383
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2383
2384
|
homepage: "https://github.com/aversini/ui-components",
|
|
2384
2385
|
license: "MIT"
|
|
2385
2386
|
});
|
|
@@ -2464,13 +2465,13 @@ const rn = O.forwardRef(
|
|
|
2464
2465
|
);
|
|
2465
2466
|
rn.displayName = "ButtonSort";
|
|
2466
2467
|
/*!
|
|
2467
|
-
@versini/ui-card v1.0.
|
|
2468
|
+
@versini/ui-card v1.0.10
|
|
2468
2469
|
© 2024 gizmette.com
|
|
2469
2470
|
*/
|
|
2470
2471
|
try {
|
|
2471
2472
|
window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
|
|
2472
|
-
version: "1.0.
|
|
2473
|
-
buildTime: "
|
|
2473
|
+
version: "1.0.10",
|
|
2474
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2474
2475
|
homepage: "https://github.com/aversini/ui-components",
|
|
2475
2476
|
license: "MIT"
|
|
2476
2477
|
});
|
|
@@ -2633,13 +2634,13 @@ const cn = ({
|
|
|
2633
2634
|
] });
|
|
2634
2635
|
};
|
|
2635
2636
|
/*!
|
|
2636
|
-
@versini/ui-private v1.4.
|
|
2637
|
+
@versini/ui-private v1.4.18
|
|
2637
2638
|
© 2024 gizmette.com
|
|
2638
2639
|
*/
|
|
2639
2640
|
try {
|
|
2640
2641
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
2641
|
-
version: "1.4.
|
|
2642
|
-
buildTime: "
|
|
2642
|
+
version: "1.4.18",
|
|
2643
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2643
2644
|
homepage: "https://github.com/aversini/ui-components",
|
|
2644
2645
|
license: "MIT"
|
|
2645
2646
|
});
|
|
@@ -2767,26 +2768,26 @@ const dn = ({
|
|
|
2767
2768
|
}
|
|
2768
2769
|
);
|
|
2769
2770
|
/*!
|
|
2770
|
-
@versini/ui-icons v1.15.
|
|
2771
|
+
@versini/ui-icons v1.15.2
|
|
2771
2772
|
© 2024 gizmette.com
|
|
2772
2773
|
*/
|
|
2773
2774
|
try {
|
|
2774
2775
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2775
|
-
version: "1.15.
|
|
2776
|
-
buildTime: "
|
|
2776
|
+
version: "1.15.2",
|
|
2777
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2777
2778
|
homepage: "https://github.com/aversini/ui-components",
|
|
2778
2779
|
license: "MIT"
|
|
2779
2780
|
});
|
|
2780
2781
|
} catch {
|
|
2781
2782
|
}
|
|
2782
2783
|
/*!
|
|
2783
|
-
@versini/ui-main v1.0.
|
|
2784
|
+
@versini/ui-main v1.0.9
|
|
2784
2785
|
© 2024 gizmette.com
|
|
2785
2786
|
*/
|
|
2786
2787
|
try {
|
|
2787
2788
|
window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
|
|
2788
|
-
version: "1.0.
|
|
2789
|
-
buildTime: "
|
|
2789
|
+
version: "1.0.9",
|
|
2790
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2790
2791
|
homepage: "https://github.com/aversini/ui-components",
|
|
2791
2792
|
license: "MIT"
|
|
2792
2793
|
});
|
|
@@ -2967,13 +2968,13 @@ const pn = "av-main", gn = (e) => {
|
|
|
2967
2968
|
return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
|
|
2968
2969
|
};
|
|
2969
2970
|
/*!
|
|
2970
|
-
@versini/ui-system v1.4.
|
|
2971
|
+
@versini/ui-system v1.4.20
|
|
2971
2972
|
© 2024 gizmette.com
|
|
2972
2973
|
*/
|
|
2973
2974
|
try {
|
|
2974
2975
|
window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
|
|
2975
|
-
version: "1.4.
|
|
2976
|
-
buildTime: "
|
|
2976
|
+
version: "1.4.20",
|
|
2977
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
2977
2978
|
homepage: "https://github.com/aversini/ui-components",
|
|
2978
2979
|
license: "MIT"
|
|
2979
2980
|
});
|
|
@@ -3144,13 +3145,13 @@ const Rn = (e) => {
|
|
|
3144
3145
|
return t;
|
|
3145
3146
|
};
|
|
3146
3147
|
/*!
|
|
3147
|
-
@versini/ui-private v1.4.
|
|
3148
|
+
@versini/ui-private v1.4.18
|
|
3148
3149
|
© 2024 gizmette.com
|
|
3149
3150
|
*/
|
|
3150
3151
|
try {
|
|
3151
3152
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
3152
|
-
version: "1.4.
|
|
3153
|
-
buildTime: "
|
|
3153
|
+
version: "1.4.18",
|
|
3154
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
3154
3155
|
homepage: "https://github.com/aversini/ui-components",
|
|
3155
3156
|
license: "MIT"
|
|
3156
3157
|
});
|
|
@@ -3319,7 +3320,7 @@ const xn = ({
|
|
|
3319
3320
|
size: C = "md",
|
|
3320
3321
|
...D
|
|
3321
3322
|
}, M) => {
|
|
3322
|
-
const [Z, N] = vn(), [
|
|
3323
|
+
const [Z, N] = vn(), [W, P] = j(0), V = An({ id: e, prefix: `${rr}-` }), pe = `${t} error, ${y}`, ee = L(null), R = L(null), $ = {
|
|
3323
3324
|
xs: { label: "-25px", helperText: "30px" },
|
|
3324
3325
|
sm: { label: "-29px", helperText: "34px" },
|
|
3325
3326
|
md: { label: "-33px", helperText: "38px" },
|
|
@@ -3342,10 +3343,10 @@ const xn = ({
|
|
|
3342
3343
|
N && N.width && P(N.width + 18 + 10);
|
|
3343
3344
|
}, [N]), ct(() => {
|
|
3344
3345
|
var g, T;
|
|
3345
|
-
const { label: E, helperText:
|
|
3346
|
+
const { label: E, helperText: F } = $[C];
|
|
3346
3347
|
(g = ee == null ? void 0 : ee.current) == null || g.style.setProperty("--av-text-input-label", E), (T = R == null ? void 0 : R.current) == null || T.style.setProperty(
|
|
3347
3348
|
"--av-text-input-helper-text",
|
|
3348
|
-
|
|
3349
|
+
F
|
|
3349
3350
|
);
|
|
3350
3351
|
}, [C]), /* @__PURE__ */ I("div", { className: U.wrapper, children: [
|
|
3351
3352
|
/* @__PURE__ */ l(
|
|
@@ -3369,7 +3370,7 @@ const xn = ({
|
|
|
3369
3370
|
className: U.input,
|
|
3370
3371
|
...y && { "aria-describedby": `${V}-helper` },
|
|
3371
3372
|
...a && { "aria-invalid": "true" },
|
|
3372
|
-
...b && !n && { style: { paddingRight:
|
|
3373
|
+
...b && !n && { style: { paddingRight: W } },
|
|
3373
3374
|
...D
|
|
3374
3375
|
}
|
|
3375
3376
|
),
|
|
@@ -3439,7 +3440,7 @@ const Mn = 500, Un = 5e3, Kn = 2e4, sr = O.forwardRef(
|
|
|
3439
3440
|
message: `${r} hiding characters`
|
|
3440
3441
|
}), n && n(!0);
|
|
3441
3442
|
}, Kn));
|
|
3442
|
-
},
|
|
3443
|
+
}, W = (R) => {
|
|
3443
3444
|
R.preventDefault();
|
|
3444
3445
|
const $ = !w.current;
|
|
3445
3446
|
w.current = $, N(), y($), v({
|
|
@@ -3477,7 +3478,7 @@ const Mn = 500, Un = 5e3, Kn = 2e4, sr = O.forwardRef(
|
|
|
3477
3478
|
rightElement: O.cloneElement(h, {
|
|
3478
3479
|
ref: c,
|
|
3479
3480
|
label: Z,
|
|
3480
|
-
onClick:
|
|
3481
|
+
onClick: W,
|
|
3481
3482
|
onBlur: P,
|
|
3482
3483
|
disabled: t
|
|
3483
3484
|
}),
|
|
@@ -3498,19 +3499,19 @@ const Mn = 500, Un = 5e3, Kn = 2e4, sr = O.forwardRef(
|
|
|
3498
3499
|
);
|
|
3499
3500
|
sr.displayName = "TextInputMask";
|
|
3500
3501
|
/*!
|
|
3501
|
-
@versini/ui-textinput v1.2.
|
|
3502
|
+
@versini/ui-textinput v1.2.2
|
|
3502
3503
|
© 2024 gizmette.com
|
|
3503
3504
|
*/
|
|
3504
3505
|
try {
|
|
3505
3506
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
3506
|
-
version: "1.2.
|
|
3507
|
-
buildTime: "
|
|
3507
|
+
version: "1.2.2",
|
|
3508
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
3508
3509
|
homepage: "https://github.com/aversini/ui-components",
|
|
3509
3510
|
license: "MIT"
|
|
3510
3511
|
});
|
|
3511
3512
|
} catch {
|
|
3512
3513
|
}
|
|
3513
|
-
const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint", Gn = "gizmette.com",
|
|
3514
|
+
const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint", Gn = "gizmette.com", Bn = "Log in", Wn = "Sign in with a Passkey", Xo = "Log out", Vn = "Password", Jn = "Powered by ", Qo = "Send", Zo = "Profile", es = "Statistics", ts = "Chat history", rs = "About", as = "Type your question here", ns = "Clear chat", os = "Cancel chat", ss = "N/A", is = {
|
|
3514
3515
|
TAGS: {
|
|
3515
3516
|
TITLE: "Pre-filled tags",
|
|
3516
3517
|
DESCRIPTION: "Tags are pre-filled buttons available on the main screen, to help you quickly start requests."
|
|
@@ -3550,19 +3551,19 @@ const Hn = "ASK! ME! ANYTHING!", ir = "Sassy Saint", Gn = "gizmette.com", Wn = "
|
|
|
3550
3551
|
}
|
|
3551
3552
|
};
|
|
3552
3553
|
/*!
|
|
3553
|
-
@versini/ui-footer v1.0.
|
|
3554
|
+
@versini/ui-footer v1.0.9
|
|
3554
3555
|
© 2024 gizmette.com
|
|
3555
3556
|
*/
|
|
3556
3557
|
try {
|
|
3557
3558
|
window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
|
|
3558
|
-
version: "1.0.
|
|
3559
|
-
buildTime: "
|
|
3559
|
+
version: "1.0.9",
|
|
3560
|
+
buildTime: "11/19/2024 10:59 AM EST",
|
|
3560
3561
|
homepage: "https://github.com/aversini/ui-components",
|
|
3561
3562
|
license: "MIT"
|
|
3562
3563
|
});
|
|
3563
3564
|
} catch {
|
|
3564
3565
|
}
|
|
3565
|
-
const
|
|
3566
|
+
const Yn = "av-footer", Fn = (e) => {
|
|
3566
3567
|
let t = "";
|
|
3567
3568
|
if (typeof e == "number" || typeof e == "string")
|
|
3568
3569
|
t = "m-" + e;
|
|
@@ -3580,7 +3581,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3580
3581
|
spacing: o,
|
|
3581
3582
|
raw: s = !1
|
|
3582
3583
|
}) => {
|
|
3583
|
-
const i = f(
|
|
3584
|
+
const i = f(Yn, e, Fn(o), {
|
|
3584
3585
|
"text-copy-dark": !s && t === "dark",
|
|
3585
3586
|
"text-copy-lighter": !s && t === "light",
|
|
3586
3587
|
"text-copy-dark dark:text-copy-lighter": !s && t === "system",
|
|
@@ -3595,8 +3596,8 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3595
3596
|
}, jn = O.createContext({
|
|
3596
3597
|
state: {
|
|
3597
3598
|
id: "",
|
|
3598
|
-
model:
|
|
3599
|
-
engine:
|
|
3599
|
+
model: Fe,
|
|
3600
|
+
engine: Fe,
|
|
3600
3601
|
usage: 0,
|
|
3601
3602
|
messages: [],
|
|
3602
3603
|
isComponent: !1
|
|
@@ -3607,14 +3608,14 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3607
3608
|
version: "",
|
|
3608
3609
|
models: [],
|
|
3609
3610
|
plugins: [],
|
|
3610
|
-
engine:
|
|
3611
|
+
engine: Fe,
|
|
3611
3612
|
engines: []
|
|
3612
3613
|
}
|
|
3613
|
-
}),
|
|
3614
|
+
}), cs = O.createContext({
|
|
3614
3615
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
3615
3616
|
dispatch: () => {
|
|
3616
3617
|
}
|
|
3617
|
-
}),
|
|
3618
|
+
}), ls = O.createContext({
|
|
3618
3619
|
state: { tag: "" },
|
|
3619
3620
|
dispatch: () => {
|
|
3620
3621
|
}
|
|
@@ -3629,7 +3630,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3629
3630
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3630
3631
|
ir,
|
|
3631
3632
|
" v",
|
|
3632
|
-
"5.4.
|
|
3633
|
+
"5.4.2",
|
|
3633
3634
|
" - ",
|
|
3634
3635
|
Jn,
|
|
3635
3636
|
t && t.engine,
|
|
@@ -3646,7 +3647,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3646
3647
|
}, Xn = Nt(
|
|
3647
3648
|
() => import(
|
|
3648
3649
|
/* webpackChunkName: "LazyHeader" */
|
|
3649
|
-
"./LazyHeader.
|
|
3650
|
+
"./LazyHeader.DpTNFgtg.js"
|
|
3650
3651
|
)
|
|
3651
3652
|
), Qn = () => {
|
|
3652
3653
|
const { isAuthenticated: e } = rt();
|
|
@@ -3677,7 +3678,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3677
3678
|
t && s(t);
|
|
3678
3679
|
}, [t]), /* @__PURE__ */ I(ye, { children: [
|
|
3679
3680
|
/* @__PURE__ */ I(fn, { children: [
|
|
3680
|
-
/* @__PURE__ */ l("div", { className:
|
|
3681
|
+
/* @__PURE__ */ l("div", { className: Ya(), children: /* @__PURE__ */ l(Qn, {}) }),
|
|
3681
3682
|
/* @__PURE__ */ I("form", { className: "mt-5", onSubmit: m, children: [
|
|
3682
3683
|
/* @__PURE__ */ l(vt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ I(cn, { mode: "dark", children: [
|
|
3683
3684
|
/* @__PURE__ */ l(le, { span: 12, children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
|
|
@@ -3733,7 +3734,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3733
3734
|
noBorder: !0,
|
|
3734
3735
|
type: "submit",
|
|
3735
3736
|
className: "mb-4 mt-6",
|
|
3736
|
-
children:
|
|
3737
|
+
children: Bn
|
|
3737
3738
|
}
|
|
3738
3739
|
) })
|
|
3739
3740
|
] }) }) }),
|
|
@@ -3746,7 +3747,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3746
3747
|
fullWidth: !0,
|
|
3747
3748
|
noBorder: !0,
|
|
3748
3749
|
className: "mb-4 mt-1",
|
|
3749
|
-
labelRight:
|
|
3750
|
+
labelRight: Wn,
|
|
3750
3751
|
onClick: r,
|
|
3751
3752
|
children: /* @__PURE__ */ l(mn, { className: "size-7" })
|
|
3752
3753
|
}
|
|
@@ -3757,81 +3758,81 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3757
3758
|
] });
|
|
3758
3759
|
}, eo = new URL(document.location.href).searchParams, to = !!eo.get("debug") || !1, ro = Nt(() => import(
|
|
3759
3760
|
/* webpackChunkName: "LazyApp" */
|
|
3760
|
-
"./App.
|
|
3761
|
+
"./App.DvwCgAJX.js"
|
|
3761
3762
|
).then((e) => e.App)), ao = ({ isComponent: e }) => {
|
|
3762
3763
|
const { isAuthenticated: t } = rt();
|
|
3763
3764
|
return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(ro, { isComponent: e }) }) : /* @__PURE__ */ l(Zn, {});
|
|
3764
3765
|
}, no = ({
|
|
3765
3766
|
isComponent: e = !1,
|
|
3766
3767
|
domain: t = Ja
|
|
3767
|
-
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Da, { clientId: $a, domain: t, debug: to, children: /* @__PURE__ */ l(ao, { isComponent: e }) }) }),
|
|
3768
|
+
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Da, { clientId: $a, domain: t, debug: to, children: /* @__PURE__ */ l(ao, { isComponent: e }) }) }), ds = ({ domain: e }) => /* @__PURE__ */ l(no, { isComponent: !0, domain: e });
|
|
3768
3769
|
export {
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3770
|
+
rs as ABOUT_TITLE,
|
|
3771
|
+
No as ACTION_ENGINE,
|
|
3772
|
+
vo as ACTION_MESSAGE,
|
|
3773
|
+
So as ACTION_MODEL,
|
|
3774
|
+
Ao as ACTION_RESET,
|
|
3775
|
+
Oo as ACTION_RESET_TAGS,
|
|
3776
|
+
ko as ACTION_RESTORE,
|
|
3777
|
+
Ro as ACTION_SEARCH,
|
|
3778
|
+
xo as ACTION_SORT,
|
|
3779
|
+
_o as ACTION_STREAMING,
|
|
3780
|
+
Co as ACTION_TOGGLE_TAG,
|
|
3780
3781
|
jn as AppContext,
|
|
3781
3782
|
qn as AppFooter,
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3783
|
+
os as CANCEL,
|
|
3784
|
+
is as CARDS,
|
|
3785
|
+
ns as CLEAR,
|
|
3786
|
+
Fe as DEFAULT_AI_ENGINE,
|
|
3787
|
+
cn as E,
|
|
3788
|
+
To as ENGINE_ANTHROPIC,
|
|
3789
|
+
wo as ENGINE_OPENAI,
|
|
3790
|
+
Eo as ERROR_MESSAGE,
|
|
3790
3791
|
ue as G,
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3792
|
+
Io as GPT4_MAX_TOKENS,
|
|
3793
|
+
ts as HISTORY_TITLE,
|
|
3794
|
+
cs as HistoryContext,
|
|
3795
|
+
$o as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3796
|
+
Go as LOCAL_STORAGE_ENGINE_TOGGLE,
|
|
3797
|
+
Do as LOCAL_STORAGE_PREFIX,
|
|
3798
|
+
Lo as LOCAL_STORAGE_SEARCH,
|
|
3799
|
+
Mo as LOCAL_STORAGE_SORT,
|
|
3800
|
+
Ko as LOCAL_STORAGE_TAG_PROOFREAD,
|
|
3801
|
+
Ho as LOCAL_STORAGE_TAG_REPHRASE,
|
|
3802
|
+
Uo as LOCAL_STORAGE_TAG_SUMMARIZE,
|
|
3803
|
+
Xo as LOG_OUT,
|
|
3803
3804
|
Qn as MessagesContainerHeader,
|
|
3804
|
-
|
|
3805
|
+
ss as NA,
|
|
3805
3806
|
Qe as O,
|
|
3806
|
-
|
|
3807
|
+
Zo as PROFILE_TITLE,
|
|
3807
3808
|
er as R,
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3814
|
-
|
|
3809
|
+
go as ROLE_ASSISTANT,
|
|
3810
|
+
bo as ROLE_HIDDEN,
|
|
3811
|
+
yo as ROLE_INTERNAL,
|
|
3812
|
+
fo as ROLE_SYSTEM,
|
|
3813
|
+
po as ROLE_USER,
|
|
3814
|
+
Qo as SEND,
|
|
3815
|
+
es as STATS,
|
|
3815
3816
|
Bo as STATS_SEPARATOR,
|
|
3816
|
-
|
|
3817
|
+
ds as SassySaint,
|
|
3817
3818
|
ze as TAGS,
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3819
|
+
Po as TAG_CONTENT,
|
|
3820
|
+
as as TYPE_QUESTION,
|
|
3821
|
+
ls as TagsContext,
|
|
3821
3822
|
vt as b,
|
|
3822
3823
|
fn as d,
|
|
3823
|
-
|
|
3824
|
+
jo as durationFormatter,
|
|
3824
3825
|
Yo as extractAverage,
|
|
3825
3826
|
Ke as g,
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3827
|
+
Vo as getCurrentGeoLocation,
|
|
3828
|
+
Ya as getMessageContaintWrapperClass,
|
|
3829
|
+
Fo as isLastMessageFromRole,
|
|
3829
3830
|
le as j,
|
|
3830
3831
|
st as me,
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3832
|
+
zo as numberFormatter,
|
|
3833
|
+
qo as pluralize,
|
|
3834
|
+
Jo as renderDataAsList,
|
|
3834
3835
|
rt as rn,
|
|
3835
|
-
|
|
3836
|
+
Wo as truncate,
|
|
3836
3837
|
mn as v
|
|
3837
3838
|
};
|