@versini/sassysaint 5.5.18 → 5.5.20
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.oZoXeHpk.js → App.BCrssLN1.js} +443 -424
- package/dist/chunks/{HeaderToolbar.BS7wgkaB.js → HeaderToolbar.Dcsv3jhf.js} +500 -457
- package/dist/chunks/{MarkdownWithExtra.D6_F01Wo.js → MarkdownWithExtra.Dx_iSGfx.js} +283 -276
- package/dist/chunks/{MessageAssistant.D9gVxi35.js → MessageAssistant.PRne9DXL.js} +3 -3
- package/dist/chunks/{index.Dc-g6Ljy.js → index.D4jSn1Cz.js} +249 -235
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as O, Fragment as Oe } from "react/jsx-runtime";
|
|
2
|
-
import z, { createContext as ar, useReducer as wt, useRef as
|
|
2
|
+
import z, { createContext as ar, useReducer as wt, useRef as M, useCallback as q, useEffect as Q, useContext as Tt, useSyncExternalStore as nr, useId as It, useState as j, useLayoutEffect as ot, useMemo as St, lazy as or, Suspense as sr } from "react";
|
|
3
3
|
import g from "clsx";
|
|
4
4
|
var ir = Object.defineProperty, cr = (e, t, r) => t in e ? ir(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t, r) => cr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
@@ -146,7 +146,7 @@ function vt(e) {
|
|
|
146
146
|
if (e && !(ur.indexOf(e) < 0))
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
149
|
-
async function
|
|
149
|
+
async function mr(e) {
|
|
150
150
|
var u;
|
|
151
151
|
if (!Ze())
|
|
152
152
|
throw new Error("WebAuthn is not supported in this browser");
|
|
@@ -178,11 +178,11 @@ async function hr(e) {
|
|
|
178
178
|
} catch (c) {
|
|
179
179
|
He("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
|
-
let
|
|
181
|
+
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
183
183
|
try {
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
|
-
c !== null && (
|
|
185
|
+
c !== null && (h = J(c));
|
|
186
186
|
} catch (c) {
|
|
187
187
|
He("getPublicKey()", c);
|
|
188
188
|
}
|
|
@@ -201,7 +201,7 @@ async function hr(e) {
|
|
|
201
201
|
clientDataJSON: J(o.clientDataJSON),
|
|
202
202
|
transports: i,
|
|
203
203
|
publicKeyAlgorithm: d,
|
|
204
|
-
publicKey:
|
|
204
|
+
publicKey: h,
|
|
205
205
|
authenticatorData: p
|
|
206
206
|
},
|
|
207
207
|
type: s,
|
|
@@ -213,7 +213,7 @@ function He(e, t) {
|
|
|
213
213
|
console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
214
214
|
`, t);
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function hr() {
|
|
217
217
|
if (!Ze())
|
|
218
218
|
return new Promise((t) => t(!1));
|
|
219
219
|
const e = window.PublicKeyCredential;
|
|
@@ -272,7 +272,7 @@ async function gr(e, t = !1) {
|
|
|
272
272
|
allowCredentials: r
|
|
273
273
|
}, n = {};
|
|
274
274
|
if (t) {
|
|
275
|
-
if (!await
|
|
275
|
+
if (!await hr())
|
|
276
276
|
throw Error("Browser does not support WebAuthn autofill");
|
|
277
277
|
if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1)
|
|
278
278
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
@@ -282,12 +282,12 @@ async function gr(e, t = !1) {
|
|
|
282
282
|
let o;
|
|
283
283
|
try {
|
|
284
284
|
o = await navigator.credentials.get(n);
|
|
285
|
-
} catch (
|
|
286
|
-
throw pr({ error:
|
|
285
|
+
} catch (m) {
|
|
286
|
+
throw pr({ error: m, options: n });
|
|
287
287
|
}
|
|
288
288
|
if (!o)
|
|
289
289
|
throw new Error("Authentication was not completed");
|
|
290
|
-
const { id: s, rawId: i, response: d, type:
|
|
290
|
+
const { id: s, rawId: i, response: d, type: h } = o;
|
|
291
291
|
let p;
|
|
292
292
|
return d.userHandle && (p = J(d.userHandle)), {
|
|
293
293
|
id: s,
|
|
@@ -298,7 +298,7 @@ async function gr(e, t = !1) {
|
|
|
298
298
|
signature: J(d.signature),
|
|
299
299
|
userHandle: p
|
|
300
300
|
},
|
|
301
|
-
type:
|
|
301
|
+
type: h,
|
|
302
302
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
303
303
|
authenticatorAttachment: vt(o.authenticatorAttachment)
|
|
304
304
|
};
|
|
@@ -422,12 +422,12 @@ let S = class extends C {
|
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
S.code = "ERR_JWS_INVALID";
|
|
425
|
-
let
|
|
425
|
+
let G = class extends C {
|
|
426
426
|
constructor() {
|
|
427
427
|
super(...arguments), this.code = "ERR_JWT_INVALID";
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
|
-
|
|
430
|
+
G.code = "ERR_JWT_INVALID";
|
|
431
431
|
class Tr extends C {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(...arguments), this.code = "ERR_JWK_INVALID";
|
|
@@ -581,7 +581,7 @@ const Dt = (e) => Nt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
|
|
|
581
581
|
function xr(e) {
|
|
582
582
|
return typeof e == "object" && e !== null;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function me(e) {
|
|
585
585
|
if (!xr(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
586
586
|
return !1;
|
|
587
587
|
if (Object.getPrototypeOf(e) === null)
|
|
@@ -598,8 +598,8 @@ const Cr = (e, t) => {
|
|
|
598
598
|
throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`);
|
|
599
599
|
}
|
|
600
600
|
};
|
|
601
|
-
function
|
|
602
|
-
return
|
|
601
|
+
function he(e) {
|
|
602
|
+
return me(e) && typeof e.kty == "string";
|
|
603
603
|
}
|
|
604
604
|
function Or(e) {
|
|
605
605
|
return e.kty !== "oct" && typeof e.d == "string";
|
|
@@ -608,7 +608,7 @@ function Pr(e) {
|
|
|
608
608
|
return e.kty !== "oct" && typeof e.d > "u";
|
|
609
609
|
}
|
|
610
610
|
function Dr(e) {
|
|
611
|
-
return
|
|
611
|
+
return he(e) && e.kty === "oct" && typeof e.k == "string";
|
|
612
612
|
}
|
|
613
613
|
function Lr(e) {
|
|
614
614
|
let t, r;
|
|
@@ -691,27 +691,27 @@ const Lt = async (e) => {
|
|
|
691
691
|
e.key_ops ?? r
|
|
692
692
|
], n = { ...e };
|
|
693
693
|
return delete n.alg, delete n.use, De.subtle.importKey("jwk", n, ...a);
|
|
694
|
-
},
|
|
694
|
+
}, Mt = (e) => X(e);
|
|
695
695
|
let ne, oe;
|
|
696
|
-
const
|
|
696
|
+
const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ne = async (e, t, r, a, n = !1) => {
|
|
697
697
|
let o = e.get(t);
|
|
698
698
|
if (o != null && o[a])
|
|
699
699
|
return o[a];
|
|
700
700
|
const s = await Lt({ ...r, alg: a });
|
|
701
701
|
return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
|
|
702
|
-
},
|
|
703
|
-
if (
|
|
702
|
+
}, Mr = (e, t) => {
|
|
703
|
+
if ($t(e)) {
|
|
704
704
|
let r = e.export({ format: "jwk" });
|
|
705
|
-
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ?
|
|
705
|
+
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ne(oe, e, r, t));
|
|
706
706
|
}
|
|
707
|
-
return
|
|
708
|
-
},
|
|
709
|
-
if (
|
|
707
|
+
return he(e) ? e.k ? X(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ne(oe, e, e, t, !0)) : e;
|
|
708
|
+
}, $r = (e, t) => {
|
|
709
|
+
if ($t(e)) {
|
|
710
710
|
let r = e.export({ format: "jwk" });
|
|
711
|
-
return r.k ?
|
|
711
|
+
return r.k ? Mt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Ne(ne, e, r, t));
|
|
712
712
|
}
|
|
713
|
-
return
|
|
714
|
-
}, Ur = { normalizePublicKey:
|
|
713
|
+
return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Ne(ne, e, e, t, !0)) : e;
|
|
714
|
+
}, Ur = { normalizePublicKey: Mr, normalizePrivateKey: $r }, F = (e, t, r = 0) => {
|
|
715
715
|
r === 0 && (t.unshift(t.length), t.unshift(6));
|
|
716
716
|
const a = e.indexOf(t[0], r);
|
|
717
717
|
if (a === -1)
|
|
@@ -790,8 +790,8 @@ async function Wr(e, t, r) {
|
|
|
790
790
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
791
791
|
return Hr(e, t);
|
|
792
792
|
}
|
|
793
|
-
async function
|
|
794
|
-
if (!
|
|
793
|
+
async function Br(e, t) {
|
|
794
|
+
if (!me(e))
|
|
795
795
|
throw new TypeError("JWK must be an object");
|
|
796
796
|
switch (t || (t = e.alg), e.kty) {
|
|
797
797
|
case "oct":
|
|
@@ -817,9 +817,9 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
|
|
|
817
817
|
if (t.alg !== void 0 && t.alg !== e)
|
|
818
818
|
throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
|
|
819
819
|
return !0;
|
|
820
|
-
},
|
|
820
|
+
}, Gr = (e, t, r, a) => {
|
|
821
821
|
if (!(t instanceof Uint8Array)) {
|
|
822
|
-
if (a &&
|
|
822
|
+
if (a && he(t)) {
|
|
823
823
|
if (Dr(t) && je(e, t, r))
|
|
824
824
|
return;
|
|
825
825
|
throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
|
|
@@ -830,7 +830,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
|
|
|
830
830
|
throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
831
831
|
}
|
|
832
832
|
}, Jr = (e, t, r, a) => {
|
|
833
|
-
if (a &&
|
|
833
|
+
if (a && he(t))
|
|
834
834
|
switch (r) {
|
|
835
835
|
case "sign":
|
|
836
836
|
if (Or(t) && je(e, t, r))
|
|
@@ -855,7 +855,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
|
|
|
855
855
|
throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
856
856
|
};
|
|
857
857
|
function Ut(e, t, r, a) {
|
|
858
|
-
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ?
|
|
858
|
+
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Gr(t, r, a, e) : Jr(t, r, a, e);
|
|
859
859
|
}
|
|
860
860
|
Ut.bind(void 0, !1);
|
|
861
861
|
const ct = Ut.bind(void 0, !0);
|
|
@@ -930,7 +930,7 @@ const jr = async (e, t, r, a) => {
|
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
932
|
async function qr(e, t, r) {
|
|
933
|
-
if (!
|
|
933
|
+
if (!me(e))
|
|
934
934
|
throw new S("Flattened JWS must be an object");
|
|
935
935
|
if (e.protected === void 0 && e.header === void 0)
|
|
936
936
|
throw new S('Flattened JWS must have either of the "protected" or "header" members');
|
|
@@ -940,7 +940,7 @@ async function qr(e, t, r) {
|
|
|
940
940
|
throw new S("JWS Payload missing");
|
|
941
941
|
if (typeof e.signature != "string")
|
|
942
942
|
throw new S("JWS Signature missing or incorrect type");
|
|
943
|
-
if (e.header !== void 0 && !
|
|
943
|
+
if (e.header !== void 0 && !me(e.header))
|
|
944
944
|
throw new S("JWS Unprotected Header incorrect type");
|
|
945
945
|
let a = {};
|
|
946
946
|
if (e.protected)
|
|
@@ -970,8 +970,8 @@ async function qr(e, t, r) {
|
|
|
970
970
|
throw new S("JWS Payload must be a string");
|
|
971
971
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
972
972
|
throw new S("JWS Payload must be a string or an Uint8Array instance");
|
|
973
|
-
let
|
|
974
|
-
typeof t == "function" ? (t = await t(a, e),
|
|
973
|
+
let h = !1;
|
|
974
|
+
typeof t == "function" ? (t = await t(a, e), h = !0, ct(i, t, "verify"), he(t) && (t = await Br(t, i))) : ct(i, t, "verify");
|
|
975
975
|
const p = fr(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
|
|
976
976
|
let u;
|
|
977
977
|
try {
|
|
@@ -989,8 +989,8 @@ async function qr(e, t, r) {
|
|
|
989
989
|
throw new S("Failed to base64url decode the payload");
|
|
990
990
|
}
|
|
991
991
|
else typeof e.payload == "string" ? c = Ee.encode(e.payload) : c = e.payload;
|
|
992
|
-
const
|
|
993
|
-
return e.protected !== void 0 && (
|
|
992
|
+
const m = { payload: c };
|
|
993
|
+
return e.protected !== void 0 && (m.protectedHeader = a), e.header !== void 0 && (m.unprotectedHeader = e.header), h ? { ...m, key: t } : m;
|
|
994
994
|
}
|
|
995
995
|
async function Xr(e, t, r) {
|
|
996
996
|
if (e instanceof Uint8Array && (e = fe.decode(e)), typeof e != "string")
|
|
@@ -1050,13 +1050,13 @@ const Qr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
|
|
|
1050
1050
|
a = JSON.parse(fe.decode(t));
|
|
1051
1051
|
} catch {
|
|
1052
1052
|
}
|
|
1053
|
-
if (!
|
|
1054
|
-
throw new
|
|
1053
|
+
if (!me(a))
|
|
1054
|
+
throw new G("JWT Claims Set must be a top-level JSON object");
|
|
1055
1055
|
const { typ: n } = r;
|
|
1056
1056
|
if (n && (typeof e.typ != "string" || dt(e.typ) !== dt(n)))
|
|
1057
1057
|
throw new D('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
1058
|
-
const { requiredClaims: o = [], issuer: s, subject: i, audience: d, maxTokenAge:
|
|
1059
|
-
|
|
1058
|
+
const { requiredClaims: o = [], issuer: s, subject: i, audience: d, maxTokenAge: h } = r, p = [...o];
|
|
1059
|
+
h !== void 0 && p.push("iat"), d !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
|
|
1060
1060
|
for (const f of new Set(p.reverse()))
|
|
1061
1061
|
if (!(f in a))
|
|
1062
1062
|
throw new D(`missing required "${f}" claim`, a, f, "missing");
|
|
@@ -1080,23 +1080,23 @@ const Qr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
|
|
|
1080
1080
|
default:
|
|
1081
1081
|
throw new TypeError("Invalid clockTolerance option type");
|
|
1082
1082
|
}
|
|
1083
|
-
const { currentDate: c } = r,
|
|
1084
|
-
if ((a.iat !== void 0 ||
|
|
1083
|
+
const { currentDate: c } = r, m = Qr(c || /* @__PURE__ */ new Date());
|
|
1084
|
+
if ((a.iat !== void 0 || h) && typeof a.iat != "number")
|
|
1085
1085
|
throw new D('"iat" claim must be a number', a, "iat", "invalid");
|
|
1086
1086
|
if (a.nbf !== void 0) {
|
|
1087
1087
|
if (typeof a.nbf != "number")
|
|
1088
1088
|
throw new D('"nbf" claim must be a number', a, "nbf", "invalid");
|
|
1089
|
-
if (a.nbf >
|
|
1089
|
+
if (a.nbf > m + u)
|
|
1090
1090
|
throw new D('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
|
|
1091
1091
|
}
|
|
1092
1092
|
if (a.exp !== void 0) {
|
|
1093
1093
|
if (typeof a.exp != "number")
|
|
1094
1094
|
throw new D('"exp" claim must be a number', a, "exp", "invalid");
|
|
1095
|
-
if (a.exp <=
|
|
1095
|
+
if (a.exp <= m - u)
|
|
1096
1096
|
throw new Fe('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
1097
1097
|
}
|
|
1098
|
-
if (
|
|
1099
|
-
const f =
|
|
1098
|
+
if (h) {
|
|
1099
|
+
const f = m - a.iat, E = typeof h == "number" ? h : lt(h);
|
|
1100
1100
|
if (f - u > E)
|
|
1101
1101
|
throw new Fe('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
1102
1102
|
if (f < 0 - u)
|
|
@@ -1108,35 +1108,35 @@ async function na(e, t, r) {
|
|
|
1108
1108
|
var a;
|
|
1109
1109
|
const n = await Xr(e, t, r);
|
|
1110
1110
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
|
1111
|
-
throw new
|
|
1111
|
+
throw new G("JWTs MUST NOT use unencoded payload");
|
|
1112
1112
|
const o = { payload: aa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
|
1113
1113
|
return typeof t == "function" ? { ...o, key: n.key } : o;
|
|
1114
1114
|
}
|
|
1115
1115
|
const oa = X;
|
|
1116
1116
|
function sa(e) {
|
|
1117
1117
|
if (typeof e != "string")
|
|
1118
|
-
throw new
|
|
1118
|
+
throw new G("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1119
1119
|
const { 1: t, length: r } = e.split(".");
|
|
1120
1120
|
if (r === 5)
|
|
1121
|
-
throw new
|
|
1121
|
+
throw new G("Only JWTs using Compact JWS serialization can be decoded");
|
|
1122
1122
|
if (r !== 3)
|
|
1123
|
-
throw new
|
|
1123
|
+
throw new G("Invalid JWT");
|
|
1124
1124
|
if (!t)
|
|
1125
|
-
throw new
|
|
1125
|
+
throw new G("JWTs must contain a payload");
|
|
1126
1126
|
let a;
|
|
1127
1127
|
try {
|
|
1128
1128
|
a = oa(t);
|
|
1129
1129
|
} catch {
|
|
1130
|
-
throw new
|
|
1130
|
+
throw new G("Failed to base64url decode the payload");
|
|
1131
1131
|
}
|
|
1132
1132
|
let n;
|
|
1133
1133
|
try {
|
|
1134
1134
|
n = JSON.parse(fe.decode(a));
|
|
1135
1135
|
} catch {
|
|
1136
|
-
throw new
|
|
1136
|
+
throw new G("Failed to parse the decoded payload as JSON");
|
|
1137
1137
|
}
|
|
1138
|
-
if (!
|
|
1139
|
-
throw new
|
|
1138
|
+
if (!me(n))
|
|
1139
|
+
throw new G("Invalid JWT Claims Set");
|
|
1140
1140
|
return n;
|
|
1141
1141
|
}
|
|
1142
1142
|
const ye = async (e) => {
|
|
@@ -1160,37 +1160,37 @@ for (let e = 0; e < 256; ++e)
|
|
|
1160
1160
|
function ca(e, t = 0) {
|
|
1161
1161
|
return (_[e[t + 0]] + _[e[t + 1]] + _[e[t + 2]] + _[e[t + 3]] + "-" + _[e[t + 4]] + _[e[t + 5]] + "-" + _[e[t + 6]] + _[e[t + 7]] + "-" + _[e[t + 8]] + _[e[t + 9]] + "-" + _[e[t + 10]] + _[e[t + 11]] + _[e[t + 12]] + _[e[t + 13]] + _[e[t + 14]] + _[e[t + 15]]).toLowerCase();
|
|
1162
1162
|
}
|
|
1163
|
-
let
|
|
1163
|
+
let Be;
|
|
1164
1164
|
const la = new Uint8Array(16);
|
|
1165
1165
|
function da() {
|
|
1166
|
-
if (!
|
|
1166
|
+
if (!Be) {
|
|
1167
1167
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1168
1168
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1169
|
-
|
|
1169
|
+
Be = crypto.getRandomValues.bind(crypto);
|
|
1170
1170
|
}
|
|
1171
|
-
return
|
|
1171
|
+
return Be(la);
|
|
1172
1172
|
}
|
|
1173
1173
|
const ua = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ut = { randomUUID: ua };
|
|
1174
|
-
function
|
|
1174
|
+
function mt(e, t, r) {
|
|
1175
1175
|
if (ut.randomUUID && !t && !e)
|
|
1176
1176
|
return ut.randomUUID();
|
|
1177
1177
|
e = e || {};
|
|
1178
1178
|
const a = e.random || (e.rng || da)();
|
|
1179
1179
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ca(a);
|
|
1180
1180
|
}
|
|
1181
|
-
const
|
|
1181
|
+
const ht = globalThis.crypto, ma = (e) => `${mt()}${mt()}`.slice(0, e), ha = (e) => btoa(
|
|
1182
1182
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
1183
1183
|
);
|
|
1184
1184
|
async function pa(e) {
|
|
1185
|
-
if (!
|
|
1185
|
+
if (!ht.subtle)
|
|
1186
1186
|
throw new Error(
|
|
1187
1187
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
|
1188
1188
|
);
|
|
1189
|
-
const t = new TextEncoder().encode(e), r = await
|
|
1190
|
-
return
|
|
1189
|
+
const t = new TextEncoder().encode(e), r = await ht.subtle.digest("SHA-256", t);
|
|
1190
|
+
return ha(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
1191
1191
|
}
|
|
1192
1192
|
async function ga(e) {
|
|
1193
|
-
const t =
|
|
1193
|
+
const t = ma(43), r = await pa(t);
|
|
1194
1194
|
return {
|
|
1195
1195
|
code_verifier: t,
|
|
1196
1196
|
code_challenge: r
|
|
@@ -1240,15 +1240,15 @@ for (let e = 0; e < 256; ++e)
|
|
|
1240
1240
|
function ba(e, t = 0) {
|
|
1241
1241
|
return (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
|
|
1242
1242
|
}
|
|
1243
|
-
let
|
|
1243
|
+
let Ge;
|
|
1244
1244
|
const Ea = new Uint8Array(16);
|
|
1245
1245
|
function wa() {
|
|
1246
|
-
if (!
|
|
1246
|
+
if (!Ge) {
|
|
1247
1247
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1248
1248
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1249
|
-
|
|
1249
|
+
Ge = crypto.getRandomValues.bind(crypto);
|
|
1250
1250
|
}
|
|
1251
|
-
return
|
|
1251
|
+
return Ge(Ea);
|
|
1252
1252
|
}
|
|
1253
1253
|
const Ta = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Ta };
|
|
1254
1254
|
function Je(e, t, r) {
|
|
@@ -1261,7 +1261,7 @@ function Je(e, t, r) {
|
|
|
1261
1261
|
const se = "Your session has expired. For your security, please log in again to continue.", Ia = "Your session has been successfully terminated.", Ve = "Login failed. Please try again.", Sa = "Error getting access token, please re-authenticate.", _a = "You forgot to wrap your component in <AuthProvider>.", xe = {
|
|
1262
1262
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1263
1263
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1264
|
-
}, Ie = "@@auth@@", ge = "LOADING", ke = "LOGIN",
|
|
1264
|
+
}, Ie = "@@auth@@", ge = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", V = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
|
|
1265
1265
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1266
1266
|
$clientId: String!,
|
|
1267
1267
|
$username: String!,
|
|
@@ -1369,7 +1369,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1369
1369
|
const n = `Bearer ${e}`, o = await fetch(
|
|
1370
1370
|
Yt ? `${xe.dev}/graphql` : `${xe.prod}/graphql`,
|
|
1371
1371
|
{
|
|
1372
|
-
credentials:
|
|
1372
|
+
credentials: Gt,
|
|
1373
1373
|
method: Jt,
|
|
1374
1374
|
headers: {
|
|
1375
1375
|
authorization: n,
|
|
@@ -1401,7 +1401,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1401
1401
|
const a = await fetch(
|
|
1402
1402
|
Yt ? `${xe.dev}/${e}` : `${xe.prod}/${e}`,
|
|
1403
1403
|
{
|
|
1404
|
-
credentials:
|
|
1404
|
+
credentials: Gt,
|
|
1405
1405
|
method: Jt,
|
|
1406
1406
|
headers: {
|
|
1407
1407
|
"Content-Type": Vt,
|
|
@@ -1468,7 +1468,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1468
1468
|
code: s,
|
|
1469
1469
|
code_verifier: i,
|
|
1470
1470
|
domain: d,
|
|
1471
|
-
ua:
|
|
1471
|
+
ua: h
|
|
1472
1472
|
}) => {
|
|
1473
1473
|
var p;
|
|
1474
1474
|
try {
|
|
@@ -1484,7 +1484,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1484
1484
|
code: s,
|
|
1485
1485
|
code_verifier: i,
|
|
1486
1486
|
domain: d,
|
|
1487
|
-
ua:
|
|
1487
|
+
ua: h
|
|
1488
1488
|
}
|
|
1489
1489
|
}), c = await ye((p = u == null ? void 0 : u.data) == null ? void 0 : p.idToken);
|
|
1490
1490
|
return c && c.payload[A.USER_ID_KEY] !== "" && c.payload[A.NONCE_KEY] === a ? {
|
|
@@ -1650,7 +1650,7 @@ const Oa = (e) => q(
|
|
|
1650
1650
|
user: t.payload.user,
|
|
1651
1651
|
authenticationType: t.payload.authenticationType,
|
|
1652
1652
|
logoutReason: ""
|
|
1653
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1653
|
+
} : (t == null ? void 0 : t.type) === Bt ? {
|
|
1654
1654
|
...e,
|
|
1655
1655
|
isLoading: !1,
|
|
1656
1656
|
isAuthenticated: !1,
|
|
@@ -1667,15 +1667,15 @@ const Oa = (e) => q(
|
|
|
1667
1667
|
const [o, s] = wt(Da, {
|
|
1668
1668
|
...zt,
|
|
1669
1669
|
debug: n
|
|
1670
|
-
}), i = Oa(n), d =
|
|
1670
|
+
}), i = Oa(n), d = M(!1), [h, p, , u] = Te({
|
|
1671
1671
|
key: `${Ie}::${r}::@@user@@`
|
|
1672
|
-
}), [c,
|
|
1672
|
+
}), [c, m, , f] = Te({
|
|
1673
1673
|
key: `${Ie}::${r}::@@access@@`
|
|
1674
1674
|
}), [E, w, , I] = Te(
|
|
1675
1675
|
{
|
|
1676
1676
|
key: `${Ie}::${r}::@@refresh@@`
|
|
1677
1677
|
}
|
|
1678
|
-
), [
|
|
1678
|
+
), [$, U, , K] = Te({
|
|
1679
1679
|
key: `${Ie}::${r}::@@nonce@@`
|
|
1680
1680
|
}), N = new Ca(c, E), H = q(() => {
|
|
1681
1681
|
i("removeLocalStorage: removing local storage"), u(), f(), I(), K();
|
|
@@ -1691,7 +1691,7 @@ const Oa = (e) => q(
|
|
|
1691
1691
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
1692
1692
|
y
|
|
1693
1693
|
), s({
|
|
1694
|
-
type:
|
|
1694
|
+
type: Bt,
|
|
1695
1695
|
payload: {
|
|
1696
1696
|
logoutReason: y || se
|
|
1697
1697
|
}
|
|
@@ -1701,23 +1701,23 @@ const Oa = (e) => q(
|
|
|
1701
1701
|
), x = q(
|
|
1702
1702
|
async (y) => {
|
|
1703
1703
|
i("invalidateAndLogout: invalidating and logging out");
|
|
1704
|
-
const { user: T } = o, b = (T == null ? void 0 : T.userId) || Aa(
|
|
1704
|
+
const { user: T } = o, b = (T == null ? void 0 : T.userId) || Aa(h);
|
|
1705
1705
|
b || i(
|
|
1706
1706
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1707
1707
|
), await va({
|
|
1708
1708
|
userId: b,
|
|
1709
1709
|
clientId: r,
|
|
1710
1710
|
domain: a,
|
|
1711
|
-
idToken:
|
|
1711
|
+
idToken: h
|
|
1712
1712
|
}), W(y || se);
|
|
1713
1713
|
},
|
|
1714
|
-
[
|
|
1714
|
+
[h, o, r, a, W, i]
|
|
1715
1715
|
);
|
|
1716
1716
|
Q(() => {
|
|
1717
1717
|
if (!d.current)
|
|
1718
|
-
return o.isLoading &&
|
|
1718
|
+
return o.isLoading && h !== null ? (async () => {
|
|
1719
1719
|
try {
|
|
1720
|
-
const y = await ye(
|
|
1720
|
+
const y = await ye(h);
|
|
1721
1721
|
y && y.payload[A.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
|
|
1722
1722
|
type: ke,
|
|
1723
1723
|
payload: {
|
|
@@ -1737,7 +1737,7 @@ const Oa = (e) => q(
|
|
|
1737
1737
|
})() : (i("useEffect: setting the loading state to false"), s({ type: ge, payload: { isLoading: !1 } })), () => {
|
|
1738
1738
|
d.current = !0;
|
|
1739
1739
|
};
|
|
1740
|
-
}, [o.isLoading,
|
|
1740
|
+
}, [o.isLoading, h, x, i]);
|
|
1741
1741
|
const pe = async (y, T) => {
|
|
1742
1742
|
s({ type: ge, payload: { isLoading: !0 } }), H();
|
|
1743
1743
|
const b = Je();
|
|
@@ -1760,7 +1760,7 @@ const Oa = (e) => q(
|
|
|
1760
1760
|
domain: a,
|
|
1761
1761
|
ua: navigator.userAgent
|
|
1762
1762
|
});
|
|
1763
|
-
return ae.status ? (p(ae.idToken),
|
|
1763
|
+
return ae.status ? (p(ae.idToken), m(ae.accessToken), w(ae.refreshToken), s({
|
|
1764
1764
|
type: ke,
|
|
1765
1765
|
payload: {
|
|
1766
1766
|
authenticationType: ue.CODE,
|
|
@@ -1789,10 +1789,10 @@ const Oa = (e) => q(
|
|
|
1789
1789
|
const b = await N.refreshtoken({
|
|
1790
1790
|
clientId: r,
|
|
1791
1791
|
userId: T.userId,
|
|
1792
|
-
nonce:
|
|
1792
|
+
nonce: $,
|
|
1793
1793
|
domain: a
|
|
1794
1794
|
});
|
|
1795
|
-
return b.status && b.status === "success" && b.newAccessToken ? (
|
|
1795
|
+
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken), w(b.newRefreshToken), b.newAccessToken) : (i(
|
|
1796
1796
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1797
1797
|
), await x(se), "");
|
|
1798
1798
|
}
|
|
@@ -1804,7 +1804,7 @@ const Oa = (e) => q(
|
|
|
1804
1804
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1805
1805
|
), await x(Sa), "";
|
|
1806
1806
|
}
|
|
1807
|
-
}, P = () => o.isAuthenticated &&
|
|
1807
|
+
}, P = () => o.isAuthenticated && h ? h : "", B = async () => {
|
|
1808
1808
|
const { user: y } = o;
|
|
1809
1809
|
let T = await ce({
|
|
1810
1810
|
accessToken: c,
|
|
@@ -1818,7 +1818,7 @@ const Oa = (e) => q(
|
|
|
1818
1818
|
});
|
|
1819
1819
|
if (T.status)
|
|
1820
1820
|
try {
|
|
1821
|
-
const b = await
|
|
1821
|
+
const b = await mr(T.data);
|
|
1822
1822
|
return T = await ce({
|
|
1823
1823
|
accessToken: c,
|
|
1824
1824
|
clientId: r,
|
|
@@ -1874,7 +1874,7 @@ const Oa = (e) => q(
|
|
|
1874
1874
|
sessionExpiration: t,
|
|
1875
1875
|
ua: navigator.userAgent
|
|
1876
1876
|
}
|
|
1877
|
-
}), b.data.status === be ? (p(b.data.idToken),
|
|
1877
|
+
}), b.data.status === be ? (p(b.data.idToken), m(b.data.accessToken), w(b.data.refreshToken), s({
|
|
1878
1878
|
type: ke,
|
|
1879
1879
|
payload: {
|
|
1880
1880
|
authenticationType: ue.PASSKEY,
|
|
@@ -1911,14 +1911,14 @@ const Oa = (e) => q(
|
|
|
1911
1911
|
logout: Z,
|
|
1912
1912
|
getAccessToken: v,
|
|
1913
1913
|
getIdToken: P,
|
|
1914
|
-
registeringForPasskey:
|
|
1914
|
+
registeringForPasskey: B,
|
|
1915
1915
|
loginWithPasskey: ee
|
|
1916
1916
|
},
|
|
1917
1917
|
children: e
|
|
1918
1918
|
}
|
|
1919
1919
|
) });
|
|
1920
|
-
}, jt = (e = Ft) => Tt(e), io = "user", co = "assistant", lo = "system", uo = "internal",
|
|
1921
|
-
function
|
|
1920
|
+
}, jt = (e = Ft) => Tt(e), io = "user", co = "assistant", lo = "system", uo = "internal", mo = "hidden", ho = "I'm having trouble right now. Please try again later.", po = "OpenAI", go = "OpenAI", yo = "Anthropic", fo = "action-message", bo = "action-reset", Eo = "action-model", wo = "action-restore", To = "action-streaming", Io = "action-engine", So = "action-search", _o = "action-sort", ko = "action-toggle-prompt", Ao = "action-reset-prompts", vo = "action-set-prompts", Ro = "sassy-saint-", No = "details", xo = "search", Co = "sort", Oo = "engine-toggle", Po = "==stats==", Ma = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Do = 10, Lo = 30, ft = (e) => Number.isFinite(e) ? e : 0;
|
|
1921
|
+
function $a(e) {
|
|
1922
1922
|
return {
|
|
1923
1923
|
days: Math.trunc(e / 864e5),
|
|
1924
1924
|
hours: Math.trunc(e / 36e5 % 24),
|
|
@@ -1944,7 +1944,7 @@ function Ka(e) {
|
|
|
1944
1944
|
switch (typeof e) {
|
|
1945
1945
|
case "number": {
|
|
1946
1946
|
if (Number.isFinite(e))
|
|
1947
|
-
return
|
|
1947
|
+
return $a(e);
|
|
1948
1948
|
break;
|
|
1949
1949
|
}
|
|
1950
1950
|
case "bigint":
|
|
@@ -1952,7 +1952,7 @@ function Ka(e) {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
throw new TypeError("Expected a finite number or bigint");
|
|
1954
1954
|
}
|
|
1955
|
-
const Ha = (e) => e === 0 || e === 0n, Wa = (e, t) => t === 1 || t === 1n ? e : `${e}s`,
|
|
1955
|
+
const Ha = (e) => e === 0 || e === 0n, Wa = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ba = 1e-7, Ga = 24n * 60n * 60n * 1000n;
|
|
1956
1956
|
function Ja(e, t) {
|
|
1957
1957
|
const r = typeof e == "bigint";
|
|
1958
1958
|
if (!r && !Number.isFinite(e))
|
|
@@ -1962,25 +1962,25 @@ function Ja(e, t) {
|
|
|
1962
1962
|
e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
|
|
1963
1963
|
let n = [];
|
|
1964
1964
|
const o = (p, u) => {
|
|
1965
|
-
const c = Math.floor(p * 10 ** u +
|
|
1965
|
+
const c = Math.floor(p * 10 ** u + Ba);
|
|
1966
1966
|
return (Math.round(c) / 10 ** u).toFixed(u);
|
|
1967
|
-
}, s = (p, u, c,
|
|
1967
|
+
}, s = (p, u, c, m) => {
|
|
1968
1968
|
if (!((n.length === 0 || !t.colonNotation) && Ha(p) && !(t.colonNotation && c === "m"))) {
|
|
1969
|
-
if (
|
|
1970
|
-
const f =
|
|
1971
|
-
|
|
1969
|
+
if (m ?? (m = String(p)), t.colonNotation) {
|
|
1970
|
+
const f = m.includes(".") ? m.split(".")[0].length : m.length, E = n.length > 0 ? 2 : 1;
|
|
1971
|
+
m = "0".repeat(Math.max(0, E - f)) + m;
|
|
1972
1972
|
} else
|
|
1973
|
-
|
|
1974
|
-
n.push(
|
|
1973
|
+
m += t.verbose ? " " + Wa(u, p) : c;
|
|
1974
|
+
n.push(m);
|
|
1975
1975
|
}
|
|
1976
1976
|
}, i = Ka(e), d = BigInt(i.days);
|
|
1977
1977
|
if (t.hideYearAndDays ? s(BigInt(d) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(d, "day", "d") : (s(d / 365n, "year", "y"), s(d % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
|
|
1978
1978
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1979
|
-
const p = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds),
|
|
1979
|
+
const p = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), m = Number(i.nanoseconds);
|
|
1980
1980
|
if (s(p, "second", "s"), t.formatSubMilliseconds)
|
|
1981
|
-
s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(
|
|
1981
|
+
s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(m, "nanosecond", "ns");
|
|
1982
1982
|
else {
|
|
1983
|
-
const f = u + c / 1e3 +
|
|
1983
|
+
const f = u + c / 1e3 + m / 1e6, E = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, w = f >= 1 ? Math.round(f) : Math.ceil(f), I = E ? f.toFixed(E) : w;
|
|
1984
1984
|
s(
|
|
1985
1985
|
Number.parseFloat(I),
|
|
1986
1986
|
"millisecond",
|
|
@@ -1989,15 +1989,15 @@ function Ja(e, t) {
|
|
|
1989
1989
|
);
|
|
1990
1990
|
}
|
|
1991
1991
|
} else {
|
|
1992
|
-
const p = (r ? Number(e %
|
|
1993
|
-
s(Number.parseFloat(
|
|
1992
|
+
const p = (r ? Number(e % Ga) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1993
|
+
s(Number.parseFloat(m), "second", "s", m);
|
|
1994
1994
|
}
|
|
1995
1995
|
if (n.length === 0)
|
|
1996
1996
|
return a + "0" + (t.verbose ? " milliseconds" : "ms");
|
|
1997
|
-
const
|
|
1998
|
-
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(
|
|
1997
|
+
const h = t.colonNotation ? ":" : " ";
|
|
1998
|
+
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1999
1999
|
}
|
|
2000
|
-
const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.local.com" : "gizmette.com",
|
|
2000
|
+
const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.local.com" : "gizmette.com", Mo = async () => {
|
|
2001
2001
|
const e = {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* A boolean value that indicates the application would
|
|
@@ -2046,7 +2046,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2046
2046
|
e
|
|
2047
2047
|
);
|
|
2048
2048
|
});
|
|
2049
|
-
},
|
|
2049
|
+
}, $o = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ O("div", { className: "flex items-center justify-between", children: [
|
|
2050
2050
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2051
2051
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2052
2052
|
] }) }, `${e}-${r}`)) : null, Uo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ko = (e) => e > 0 ? Ja(e, {
|
|
@@ -2066,7 +2066,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2066
2066
|
return (...a) => {
|
|
2067
2067
|
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
2068
2068
|
};
|
|
2069
|
-
}, bt = "av-button",
|
|
2069
|
+
}, bt = "av-button", Me = "icon", tt = "button", qe = "link", qa = ({
|
|
2070
2070
|
type: e,
|
|
2071
2071
|
size: t,
|
|
2072
2072
|
labelRight: r,
|
|
@@ -2082,7 +2082,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2082
2082
|
[s]: t === "medium",
|
|
2083
2083
|
[i]: t === "large"
|
|
2084
2084
|
});
|
|
2085
|
-
case
|
|
2085
|
+
case Me:
|
|
2086
2086
|
return g("inline-flex items-center", {
|
|
2087
2087
|
"justify-center": n === "center",
|
|
2088
2088
|
"justify-start": n === "left",
|
|
@@ -2111,7 +2111,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2111
2111
|
[o]: t === "medium",
|
|
2112
2112
|
[s]: t === "large"
|
|
2113
2113
|
});
|
|
2114
|
-
case
|
|
2114
|
+
case Me:
|
|
2115
2115
|
return g({
|
|
2116
2116
|
[n]: t === "small" && (r || a),
|
|
2117
2117
|
[o]: t === "medium" && (r || a),
|
|
@@ -2297,11 +2297,11 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2297
2297
|
fullWidth: s,
|
|
2298
2298
|
size: i,
|
|
2299
2299
|
noBorder: d,
|
|
2300
|
-
labelRight:
|
|
2300
|
+
labelRight: h,
|
|
2301
2301
|
labelLeft: p,
|
|
2302
2302
|
noBackground: u,
|
|
2303
2303
|
variant: c,
|
|
2304
|
-
noTruncate:
|
|
2304
|
+
noTruncate: m,
|
|
2305
2305
|
align: f,
|
|
2306
2306
|
radius: E
|
|
2307
2307
|
}) => (c || (c = "primary"), r ? g(bt, t) : g(
|
|
@@ -2310,18 +2310,18 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2310
2310
|
mode: a,
|
|
2311
2311
|
variant: c,
|
|
2312
2312
|
noBackground: u,
|
|
2313
|
-
noTruncate:
|
|
2313
|
+
noTruncate: m
|
|
2314
2314
|
}),
|
|
2315
2315
|
Za({ mode: a, noBackground: u, variant: c }),
|
|
2316
2316
|
en({ radius: E }),
|
|
2317
2317
|
qa({
|
|
2318
2318
|
type: e,
|
|
2319
2319
|
size: i,
|
|
2320
|
-
labelRight:
|
|
2320
|
+
labelRight: h,
|
|
2321
2321
|
labelLeft: p,
|
|
2322
2322
|
align: f
|
|
2323
2323
|
}),
|
|
2324
|
-
Xa({ type: e, size: i, labelRight:
|
|
2324
|
+
Xa({ type: e, size: i, labelRight: h, labelLeft: p }),
|
|
2325
2325
|
an({ mode: a, variant: c, noBorder: d }),
|
|
2326
2326
|
nn({ focusMode: n }),
|
|
2327
2327
|
tn({ mode: a, variant: c, disabled: o }),
|
|
@@ -2334,7 +2334,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2334
2334
|
)), on = (e, t, r) => {
|
|
2335
2335
|
var a;
|
|
2336
2336
|
!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);
|
|
2337
|
-
},
|
|
2337
|
+
}, $e = z.forwardRef((e, t) => {
|
|
2338
2338
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
2339
2339
|
return /* @__PURE__ */ l(
|
|
2340
2340
|
"button",
|
|
@@ -2347,7 +2347,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2347
2347
|
}
|
|
2348
2348
|
);
|
|
2349
2349
|
});
|
|
2350
|
-
|
|
2350
|
+
$e.displayName = "BaseButton";
|
|
2351
2351
|
const qt = z.forwardRef(
|
|
2352
2352
|
({
|
|
2353
2353
|
children: e,
|
|
@@ -2359,11 +2359,11 @@ const qt = z.forwardRef(
|
|
|
2359
2359
|
size: s = "medium",
|
|
2360
2360
|
raw: i = !1,
|
|
2361
2361
|
noBorder: d = !1,
|
|
2362
|
-
variant:
|
|
2362
|
+
variant: h = "primary",
|
|
2363
2363
|
noTruncate: p = !1,
|
|
2364
2364
|
radius: u = "large",
|
|
2365
2365
|
...c
|
|
2366
|
-
},
|
|
2366
|
+
}, m) => {
|
|
2367
2367
|
const f = rt({
|
|
2368
2368
|
type: tt,
|
|
2369
2369
|
mode: r,
|
|
@@ -2374,14 +2374,14 @@ const qt = z.forwardRef(
|
|
|
2374
2374
|
className: o,
|
|
2375
2375
|
size: s,
|
|
2376
2376
|
noBorder: d,
|
|
2377
|
-
variant:
|
|
2377
|
+
variant: h,
|
|
2378
2378
|
noTruncate: p,
|
|
2379
2379
|
radius: u
|
|
2380
2380
|
});
|
|
2381
2381
|
return /* @__PURE__ */ l(
|
|
2382
|
-
|
|
2382
|
+
$e,
|
|
2383
2383
|
{
|
|
2384
|
-
ref:
|
|
2384
|
+
ref: m,
|
|
2385
2385
|
className: f,
|
|
2386
2386
|
disabled: t,
|
|
2387
2387
|
...c,
|
|
@@ -2402,19 +2402,19 @@ const Xe = z.forwardRef(
|
|
|
2402
2402
|
type: s = "button",
|
|
2403
2403
|
raw: i = !1,
|
|
2404
2404
|
noBorder: d = !1,
|
|
2405
|
-
"aria-label":
|
|
2405
|
+
"aria-label": h,
|
|
2406
2406
|
label: p,
|
|
2407
2407
|
size: u = "medium",
|
|
2408
2408
|
labelRight: c,
|
|
2409
|
-
labelLeft:
|
|
2409
|
+
labelLeft: m,
|
|
2410
2410
|
noBackground: f = !1,
|
|
2411
2411
|
align: E = "center",
|
|
2412
2412
|
radius: w = "large",
|
|
2413
2413
|
variant: I = "primary",
|
|
2414
|
-
|
|
2414
|
+
...$
|
|
2415
2415
|
}, U) => {
|
|
2416
2416
|
const K = rt({
|
|
2417
|
-
type:
|
|
2417
|
+
type: Me,
|
|
2418
2418
|
mode: r,
|
|
2419
2419
|
focusMode: a,
|
|
2420
2420
|
fullWidth: n,
|
|
@@ -2424,7 +2424,7 @@ const Xe = z.forwardRef(
|
|
|
2424
2424
|
noBorder: d,
|
|
2425
2425
|
size: u,
|
|
2426
2426
|
labelRight: c,
|
|
2427
|
-
labelLeft:
|
|
2427
|
+
labelLeft: m,
|
|
2428
2428
|
noBackground: f,
|
|
2429
2429
|
align: E,
|
|
2430
2430
|
radius: w,
|
|
@@ -2436,16 +2436,16 @@ const Xe = z.forwardRef(
|
|
|
2436
2436
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !i
|
|
2437
2437
|
});
|
|
2438
2438
|
return /* @__PURE__ */ O(
|
|
2439
|
-
|
|
2439
|
+
$e,
|
|
2440
2440
|
{
|
|
2441
2441
|
ref: U,
|
|
2442
2442
|
className: K,
|
|
2443
2443
|
disabled: t,
|
|
2444
2444
|
type: s,
|
|
2445
|
-
"aria-label":
|
|
2446
|
-
|
|
2445
|
+
"aria-label": h || p,
|
|
2446
|
+
...$,
|
|
2447
2447
|
children: [
|
|
2448
|
-
|
|
2448
|
+
m && /* @__PURE__ */ l("span", { className: "pr-2", children: m }),
|
|
2449
2449
|
/* @__PURE__ */ l("div", { className: N, children: e }),
|
|
2450
2450
|
c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
|
|
2451
2451
|
]
|
|
@@ -2455,13 +2455,13 @@ const Xe = z.forwardRef(
|
|
|
2455
2455
|
);
|
|
2456
2456
|
Xe.displayName = "ButtonIcon";
|
|
2457
2457
|
/*!
|
|
2458
|
-
@versini/ui-button v4.0.
|
|
2458
|
+
@versini/ui-button v4.0.3
|
|
2459
2459
|
© 2025 gizmette.com
|
|
2460
2460
|
*/
|
|
2461
2461
|
try {
|
|
2462
2462
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2463
|
-
version: "4.0.
|
|
2464
|
-
buildTime: "01/04/2025
|
|
2463
|
+
version: "4.0.3",
|
|
2464
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2465
2465
|
homepage: "https://github.com/aversini/ui-components",
|
|
2466
2466
|
license: "MIT"
|
|
2467
2467
|
});
|
|
@@ -2478,19 +2478,19 @@ const sn = z.forwardRef(
|
|
|
2478
2478
|
type: s = "button",
|
|
2479
2479
|
raw: i = !1,
|
|
2480
2480
|
noBorder: d = !1,
|
|
2481
|
-
"aria-label":
|
|
2481
|
+
"aria-label": h,
|
|
2482
2482
|
label: p,
|
|
2483
2483
|
size: u = "medium",
|
|
2484
2484
|
labelRight: c,
|
|
2485
|
-
labelLeft:
|
|
2485
|
+
labelLeft: m,
|
|
2486
2486
|
noBackground: f = !1,
|
|
2487
2487
|
align: E = "center",
|
|
2488
2488
|
active: w = !1,
|
|
2489
2489
|
radius: I = "large",
|
|
2490
|
-
|
|
2490
|
+
...$
|
|
2491
2491
|
}, U) => {
|
|
2492
2492
|
const K = rt({
|
|
2493
|
-
type:
|
|
2493
|
+
type: Me,
|
|
2494
2494
|
mode: r,
|
|
2495
2495
|
focusMode: a,
|
|
2496
2496
|
fullWidth: n,
|
|
@@ -2500,7 +2500,7 @@ const sn = z.forwardRef(
|
|
|
2500
2500
|
noBorder: d,
|
|
2501
2501
|
size: u,
|
|
2502
2502
|
labelRight: c,
|
|
2503
|
-
labelLeft:
|
|
2503
|
+
labelLeft: m,
|
|
2504
2504
|
noBackground: f,
|
|
2505
2505
|
align: E,
|
|
2506
2506
|
radius: I
|
|
@@ -2527,16 +2527,16 @@ const sn = z.forwardRef(
|
|
|
2527
2527
|
}
|
|
2528
2528
|
) : "";
|
|
2529
2529
|
return /* @__PURE__ */ l("div", { className: H, children: /* @__PURE__ */ O(
|
|
2530
|
-
|
|
2530
|
+
$e,
|
|
2531
2531
|
{
|
|
2532
2532
|
ref: U,
|
|
2533
2533
|
className: K,
|
|
2534
2534
|
disabled: t,
|
|
2535
2535
|
type: s,
|
|
2536
|
-
"aria-label":
|
|
2537
|
-
|
|
2536
|
+
"aria-label": h || p,
|
|
2537
|
+
...$,
|
|
2538
2538
|
children: [
|
|
2539
|
-
|
|
2539
|
+
m && /* @__PURE__ */ l("span", { className: "pr-2", children: m }),
|
|
2540
2540
|
/* @__PURE__ */ l("div", { className: N, children: e }),
|
|
2541
2541
|
c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
|
|
2542
2542
|
]
|
|
@@ -2595,11 +2595,11 @@ const ln = ({
|
|
|
2595
2595
|
"border-border-accent dark:border-border-medium": n === "alt-system",
|
|
2596
2596
|
"mb-4": !o,
|
|
2597
2597
|
"mb-2": o
|
|
2598
|
-
}),
|
|
2598
|
+
}), h = g(r), p = a || g(`${Ae}__footer pt-2`);
|
|
2599
2599
|
return {
|
|
2600
2600
|
wrapper: i,
|
|
2601
2601
|
header: d,
|
|
2602
|
-
body:
|
|
2602
|
+
body: h,
|
|
2603
2603
|
footer: p
|
|
2604
2604
|
};
|
|
2605
2605
|
};
|
|
@@ -2621,25 +2621,25 @@ const un = ({
|
|
|
2621
2621
|
bodyClassName: s,
|
|
2622
2622
|
"aria-labelledby": i,
|
|
2623
2623
|
mode: d = "system",
|
|
2624
|
-
compact:
|
|
2624
|
+
compact: h = !1,
|
|
2625
2625
|
noBorder: p = !1,
|
|
2626
2626
|
...u
|
|
2627
2627
|
}) => {
|
|
2628
|
-
let c = null,
|
|
2628
|
+
let c = null, m = null;
|
|
2629
2629
|
const f = typeof e == "string", E = cn(Ae), w = ln({
|
|
2630
2630
|
className: o,
|
|
2631
2631
|
headerClassName: t,
|
|
2632
2632
|
bodyClassName: s,
|
|
2633
2633
|
footerClassName: a,
|
|
2634
2634
|
mode: d,
|
|
2635
|
-
compact:
|
|
2635
|
+
compact: h,
|
|
2636
2636
|
noBorder: p
|
|
2637
2637
|
});
|
|
2638
|
-
return f ? (c = E,
|
|
2638
|
+
return f ? (c = E, m = c) : !f && e && i ? (c = null, m = i) : !f && e && !i ? (c = E, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ O(
|
|
2639
2639
|
"section",
|
|
2640
2640
|
{
|
|
2641
|
-
...
|
|
2642
|
-
"aria-labelledby":
|
|
2641
|
+
...m && {
|
|
2642
|
+
"aria-labelledby": m
|
|
2643
2643
|
},
|
|
2644
2644
|
className: w.body,
|
|
2645
2645
|
...u,
|
|
@@ -2669,13 +2669,13 @@ const un = ({
|
|
|
2669
2669
|
semantic: i = !1,
|
|
2670
2670
|
...d
|
|
2671
2671
|
}) => {
|
|
2672
|
-
const
|
|
2672
|
+
const h = g(o, a);
|
|
2673
2673
|
return /* @__PURE__ */ O(Oe, { children: [
|
|
2674
2674
|
/* @__PURE__ */ l(
|
|
2675
2675
|
"svg",
|
|
2676
2676
|
{
|
|
2677
2677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2678
|
-
className:
|
|
2678
|
+
className: h,
|
|
2679
2679
|
viewBox: r || n,
|
|
2680
2680
|
fill: t || "currentColor",
|
|
2681
2681
|
role: "img",
|
|
@@ -2695,13 +2695,13 @@ const un = ({
|
|
|
2695
2695
|
try {
|
|
2696
2696
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2697
2697
|
version: "4.0.0",
|
|
2698
|
-
buildTime: "01/
|
|
2698
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2699
2699
|
homepage: "https://github.com/aversini/ui-components",
|
|
2700
2700
|
license: "MIT"
|
|
2701
2701
|
});
|
|
2702
2702
|
} catch {
|
|
2703
2703
|
}
|
|
2704
|
-
const
|
|
2704
|
+
const mn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
2705
2705
|
Ue,
|
|
2706
2706
|
{
|
|
2707
2707
|
defaultViewBox: "0 0 1200 500",
|
|
@@ -2719,7 +2719,7 @@ const hn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2719
2719
|
}
|
|
2720
2720
|
) })
|
|
2721
2721
|
}
|
|
2722
|
-
),
|
|
2722
|
+
), hn = ({
|
|
2723
2723
|
className: e,
|
|
2724
2724
|
viewBox: t,
|
|
2725
2725
|
title: r,
|
|
@@ -2738,11 +2738,18 @@ const hn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2738
2738
|
/* @__PURE__ */ l(
|
|
2739
2739
|
"path",
|
|
2740
2740
|
{
|
|
2741
|
+
className: "fa-secondary",
|
|
2741
2742
|
opacity: a ? "1" : "0.4",
|
|
2742
|
-
d: "
|
|
2743
|
+
d: "M0 256c0 4.2 .8 8.4 2.5 12.3C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480c56.1 0 104.4-17.8 144.5-43.2l-71.7-56.5C339.4 392.8 314.6 400 288 400c-79.5 0-144-64.5-144-144c0-14.5 2.1-28.5 6.1-41.7L63.5 146c-29.4 34.7-49.9 70.8-61.1 97.6C.8 247.6 0 251.8 0 256zM135.2 80.7L207 136.9c23.1-15.7 51-24.9 81-24.9c79.5 0 144 64.5 144 144c0 17.7-3.2 34.6-9 50.2c28 22 56.1 44 84.1 65.9c32.3-36.6 54.6-75.4 66.4-103.9c1.6-3.9 2.5-8.1 2.5-12.3s-.8-8.4-2.5-12.3c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32c-60 0-111.1 20.3-152.8 48.7zm56.8 179.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9c1.9-.5 3.9-1.1 5.7-1.7l-120-94.6c-3.7 .8-6.7 3.7-6.5 7.7zm92.7-88.4c2.1 6.4 3.3 13.2 3.3 20.3c0 2.7-.2 5.4-.5 8c31.6 24.8 63.2 49.5 94.8 74.3c2.7-13.9 2.4-28.6-1.5-43.2c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7z"
|
|
2743
2744
|
}
|
|
2744
2745
|
),
|
|
2745
|
-
/* @__PURE__ */ l(
|
|
2746
|
+
/* @__PURE__ */ l(
|
|
2747
|
+
"path",
|
|
2748
|
+
{
|
|
2749
|
+
className: "fa-primary",
|
|
2750
|
+
d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1L9.2 42.9C-1.2 34.7-3.1 19.6 5.1 9.2z"
|
|
2751
|
+
}
|
|
2752
|
+
)
|
|
2746
2753
|
]
|
|
2747
2754
|
}
|
|
2748
2755
|
), pn = ({
|
|
@@ -2801,22 +2808,29 @@ const hn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2801
2808
|
/* @__PURE__ */ l(
|
|
2802
2809
|
"path",
|
|
2803
2810
|
{
|
|
2811
|
+
className: "fa-secondary",
|
|
2804
2812
|
opacity: a ? "1" : "0.4",
|
|
2805
|
-
d: "
|
|
2813
|
+
d: "M0 256c0 4.2 .8 8.4 2.5 12.3C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c1.6-3.9 2.5-8.1 2.5-12.3s-.8-8.4-2.5-12.3c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32s-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7C.8 247.6 0 251.8 0 256zm432 0a144 144 0 1 1 -288 0 144 144 0 1 1 288 0z"
|
|
2806
2814
|
}
|
|
2807
2815
|
),
|
|
2808
|
-
/* @__PURE__ */ l(
|
|
2816
|
+
/* @__PURE__ */ l(
|
|
2817
|
+
"path",
|
|
2818
|
+
{
|
|
2819
|
+
className: "fa-primary",
|
|
2820
|
+
d: "M224 256c35.3 0 64-28.7 64-64c0-7.1-1.2-13.9-3.3-20.3c-1.8-5.5 1.6-11.9 7.4-11.7c40.8 1.7 77.5 29.6 88.6 71.1c13.7 51.2-16.7 103.9-67.9 117.6s-103.9-16.7-117.6-67.9c-1.9-6.9-2.9-13.9-3.2-20.7c-.3-5.8 6.1-9.2 11.7-7.4c6.4 2.1 13.2 3.3 20.3 3.3z"
|
|
2821
|
+
}
|
|
2822
|
+
)
|
|
2809
2823
|
]
|
|
2810
2824
|
}
|
|
2811
2825
|
);
|
|
2812
2826
|
/*!
|
|
2813
|
-
@versini/ui-icons v4.
|
|
2827
|
+
@versini/ui-icons v4.2.0
|
|
2814
2828
|
© 2025 gizmette.com
|
|
2815
2829
|
*/
|
|
2816
2830
|
try {
|
|
2817
2831
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2818
|
-
version: "4.
|
|
2819
|
-
buildTime: "01/
|
|
2832
|
+
version: "4.2.0",
|
|
2833
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2820
2834
|
homepage: "https://github.com/aversini/ui-components",
|
|
2821
2835
|
license: "MIT"
|
|
2822
2836
|
});
|
|
@@ -2865,7 +2879,7 @@ const yn = "av-main", fn = ({
|
|
|
2865
2879
|
direction: s = "row",
|
|
2866
2880
|
alignHorizontal: i = "normal",
|
|
2867
2881
|
alignVertical: d = "normal",
|
|
2868
|
-
...
|
|
2882
|
+
...h
|
|
2869
2883
|
}) => {
|
|
2870
2884
|
const p = {
|
|
2871
2885
|
flexDirection: s,
|
|
@@ -2884,7 +2898,7 @@ const yn = "av-main", fn = ({
|
|
|
2884
2898
|
bn,
|
|
2885
2899
|
"box-border flex flex-wrap"
|
|
2886
2900
|
), c = { columnGap: r, rowGap: a };
|
|
2887
|
-
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: p, ...
|
|
2901
|
+
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: p, ...h, children: /* @__PURE__ */ l(Qe.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: p, ...h, children: /* @__PURE__ */ l(Qe.Provider, { value: c, children: e }) });
|
|
2888
2902
|
}, Ye = (e, t) => g({
|
|
2889
2903
|
"basis-1/12": e === 1 && !t,
|
|
2890
2904
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
@@ -3011,7 +3025,7 @@ try {
|
|
|
3011
3025
|
}
|
|
3012
3026
|
const Xt = "av-text-input", Tn = "av-text-input-wrapper", ze = "av-text-input-helper-text";
|
|
3013
3027
|
function In() {
|
|
3014
|
-
const e =
|
|
3028
|
+
const e = M(!1);
|
|
3015
3029
|
return Q(() => (e.current = !0, () => {
|
|
3016
3030
|
e.current = !1;
|
|
3017
3031
|
}), []), q(() => e.current, []);
|
|
@@ -3027,7 +3041,7 @@ const Sn = {
|
|
|
3027
3041
|
right: 0
|
|
3028
3042
|
};
|
|
3029
3043
|
function _n(e) {
|
|
3030
|
-
const t = In(), r =
|
|
3044
|
+
const t = In(), r = M(0), a = M(null), [n, o] = j(Sn), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3031
3045
|
const d = i[0];
|
|
3032
3046
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3033
3047
|
a.current && t() && o(d.contentRect);
|
|
@@ -3129,13 +3143,13 @@ function er({
|
|
|
3129
3143
|
visible: i,
|
|
3130
3144
|
...d
|
|
3131
3145
|
}) {
|
|
3132
|
-
const
|
|
3146
|
+
const h = M(null), p = M(null), [u, c] = wt(vn, {
|
|
3133
3147
|
announcement: null
|
|
3134
3148
|
});
|
|
3135
|
-
let
|
|
3136
|
-
typeof
|
|
3149
|
+
let m = r;
|
|
3150
|
+
typeof m > "u" && (m = a ? An[a] : "assertive"), Q(() => {
|
|
3137
3151
|
Nn({
|
|
3138
|
-
announcementTimeoutRef:
|
|
3152
|
+
announcementTimeoutRef: h,
|
|
3139
3153
|
announcementDelay: n,
|
|
3140
3154
|
children: e,
|
|
3141
3155
|
clearAnnouncementDelay: o,
|
|
@@ -3155,7 +3169,7 @@ function er({
|
|
|
3155
3169
|
return /* @__PURE__ */ l(
|
|
3156
3170
|
"div",
|
|
3157
3171
|
{
|
|
3158
|
-
"aria-live":
|
|
3172
|
+
"aria-live": m,
|
|
3159
3173
|
...a && { role: a },
|
|
3160
3174
|
className: f,
|
|
3161
3175
|
...d,
|
|
@@ -3259,7 +3273,7 @@ const xn = ({
|
|
|
3259
3273
|
mode: s,
|
|
3260
3274
|
focusMode: i,
|
|
3261
3275
|
size: d,
|
|
3262
|
-
rightElementClassName:
|
|
3276
|
+
rightElementClassName: h
|
|
3263
3277
|
}) => {
|
|
3264
3278
|
const p = r ? e : g(
|
|
3265
3279
|
"relative flex w-full flex-col justify-center",
|
|
@@ -3295,7 +3309,7 @@ const xn = ({
|
|
|
3295
3309
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
3296
3310
|
},
|
|
3297
3311
|
t
|
|
3298
|
-
),
|
|
3312
|
+
), m = r ? void 0 : "sr-only", f = Pn({
|
|
3299
3313
|
disabled: a,
|
|
3300
3314
|
raw: r,
|
|
3301
3315
|
error: o,
|
|
@@ -3305,11 +3319,11 @@ const xn = ({
|
|
|
3305
3319
|
raw: r,
|
|
3306
3320
|
mode: s,
|
|
3307
3321
|
disabled: a
|
|
3308
|
-
}), w = r ? void 0 : g("absolute right-3",
|
|
3322
|
+
}), w = r ? void 0 : g("absolute right-3", h);
|
|
3309
3323
|
return {
|
|
3310
3324
|
wrapper: p,
|
|
3311
3325
|
input: c,
|
|
3312
|
-
accessibleLabel:
|
|
3326
|
+
accessibleLabel: m,
|
|
3313
3327
|
visibleLabel: f,
|
|
3314
3328
|
helperText: E,
|
|
3315
3329
|
rightElement: w
|
|
@@ -3325,30 +3339,30 @@ const xn = ({
|
|
|
3325
3339
|
inputClassName: s,
|
|
3326
3340
|
mode: i = "system",
|
|
3327
3341
|
focusMode: d = "system",
|
|
3328
|
-
disabled:
|
|
3342
|
+
disabled: h = !1,
|
|
3329
3343
|
noBorder: p = !1,
|
|
3330
3344
|
labelId: u,
|
|
3331
3345
|
labelHidden: c = !1,
|
|
3332
|
-
type:
|
|
3346
|
+
type: m = "text",
|
|
3333
3347
|
helperText: f = "",
|
|
3334
3348
|
rightElement: E,
|
|
3335
3349
|
rightElementClassName: w,
|
|
3336
3350
|
size: I = "md",
|
|
3337
|
-
|
|
3351
|
+
...$
|
|
3338
3352
|
}, U) => {
|
|
3339
|
-
const [K, N] = _n(), [H, W] = j(0), x = kn({ id: e, prefix: `${Xt}-` }), pe = `${t} error, ${f}`, Z =
|
|
3353
|
+
const [K, N] = _n(), [H, W] = j(0), x = kn({ id: e, prefix: `${Xt}-` }), pe = `${t} error, ${f}`, Z = M(null), v = M(null), P = {
|
|
3340
3354
|
xs: { label: "-25px", helperText: "30px" },
|
|
3341
3355
|
sm: { label: "-29px", helperText: "34px" },
|
|
3342
3356
|
md: { label: "-33px", helperText: "38px" },
|
|
3343
3357
|
lg: { label: "-15px", helperText: "22px" },
|
|
3344
3358
|
xl: { label: "-19px", helperText: "25px" }
|
|
3345
|
-
},
|
|
3359
|
+
}, B = Ln({
|
|
3346
3360
|
className: o,
|
|
3347
3361
|
inputClassName: s,
|
|
3348
3362
|
error: a,
|
|
3349
3363
|
raw: n,
|
|
3350
3364
|
focusMode: d,
|
|
3351
|
-
disabled:
|
|
3365
|
+
disabled: h,
|
|
3352
3366
|
noBorder: p,
|
|
3353
3367
|
mode: i,
|
|
3354
3368
|
size: I,
|
|
@@ -3363,13 +3377,13 @@ const xn = ({
|
|
|
3363
3377
|
"--av-text-input-helper-text",
|
|
3364
3378
|
b
|
|
3365
3379
|
);
|
|
3366
|
-
}, [I]), /* @__PURE__ */ O("div", { className:
|
|
3380
|
+
}, [I]), /* @__PURE__ */ O("div", { className: B.wrapper, children: [
|
|
3367
3381
|
/* @__PURE__ */ l(
|
|
3368
3382
|
"label",
|
|
3369
3383
|
{
|
|
3370
3384
|
htmlFor: x,
|
|
3371
3385
|
id: u,
|
|
3372
|
-
className:
|
|
3386
|
+
className: B.accessibleLabel,
|
|
3373
3387
|
children: r
|
|
3374
3388
|
}
|
|
3375
3389
|
),
|
|
@@ -3379,14 +3393,14 @@ const xn = ({
|
|
|
3379
3393
|
ref: U,
|
|
3380
3394
|
id: x,
|
|
3381
3395
|
name: t,
|
|
3382
|
-
type:
|
|
3383
|
-
disabled:
|
|
3396
|
+
type: m,
|
|
3397
|
+
disabled: h,
|
|
3384
3398
|
placeholder: n ? void 0 : " ",
|
|
3385
|
-
className:
|
|
3399
|
+
className: B.input,
|
|
3386
3400
|
...f && { "aria-describedby": `${x}-helper` },
|
|
3387
3401
|
...a && { "aria-invalid": "true" },
|
|
3388
3402
|
...E && !n && { style: { paddingRight: H } },
|
|
3389
|
-
|
|
3403
|
+
...$
|
|
3390
3404
|
}
|
|
3391
3405
|
),
|
|
3392
3406
|
!n && !c && /* @__PURE__ */ l(
|
|
@@ -3395,7 +3409,7 @@ const xn = ({
|
|
|
3395
3409
|
ref: Z,
|
|
3396
3410
|
"aria-hidden": !0,
|
|
3397
3411
|
htmlFor: x,
|
|
3398
|
-
className:
|
|
3412
|
+
className: B.visibleLabel,
|
|
3399
3413
|
children: r
|
|
3400
3414
|
}
|
|
3401
3415
|
),
|
|
@@ -3404,7 +3418,7 @@ const xn = ({
|
|
|
3404
3418
|
{
|
|
3405
3419
|
ref: v,
|
|
3406
3420
|
id: `${x}-helper`,
|
|
3407
|
-
className:
|
|
3421
|
+
className: B.helperText,
|
|
3408
3422
|
children: f
|
|
3409
3423
|
}
|
|
3410
3424
|
),
|
|
@@ -3412,7 +3426,7 @@ const xn = ({
|
|
|
3412
3426
|
"div",
|
|
3413
3427
|
{
|
|
3414
3428
|
ref: K,
|
|
3415
|
-
className:
|
|
3429
|
+
className: B.rightElement,
|
|
3416
3430
|
children: E
|
|
3417
3431
|
}
|
|
3418
3432
|
),
|
|
@@ -3421,7 +3435,7 @@ const xn = ({
|
|
|
3421
3435
|
}
|
|
3422
3436
|
);
|
|
3423
3437
|
at.displayName = "TextInput";
|
|
3424
|
-
function
|
|
3438
|
+
function Mn(e) {
|
|
3425
3439
|
return St(() => e.every((t) => t == null) ? () => {
|
|
3426
3440
|
} : (t) => {
|
|
3427
3441
|
e.forEach((r) => {
|
|
@@ -3429,7 +3443,7 @@ function $n(e) {
|
|
|
3429
3443
|
});
|
|
3430
3444
|
}, e);
|
|
3431
3445
|
}
|
|
3432
|
-
const
|
|
3446
|
+
const $n = 500, Un = 5e3, Kn = 2e4, tr = z.forwardRef(
|
|
3433
3447
|
({
|
|
3434
3448
|
name: e,
|
|
3435
3449
|
disabled: t,
|
|
@@ -3440,15 +3454,15 @@ const Mn = 500, Un = 5e3, Kn = 2e4, tr = z.forwardRef(
|
|
|
3440
3454
|
onBlur: s,
|
|
3441
3455
|
onFocus: i,
|
|
3442
3456
|
onTextInputMaskBlur: d,
|
|
3443
|
-
rightElement:
|
|
3457
|
+
rightElement: h,
|
|
3444
3458
|
...p
|
|
3445
3459
|
}, u) => {
|
|
3446
|
-
const [c,
|
|
3460
|
+
const [c, m] = j(!0), [f, E] = j({
|
|
3447
3461
|
message: null,
|
|
3448
3462
|
politeness: null
|
|
3449
|
-
}), w =
|
|
3463
|
+
}), w = M(!0), I = M(null), $ = M(null), U = Mn([u, $]), K = c ? "Show" : "Hide", N = () => {
|
|
3450
3464
|
I.current && clearTimeout(I.current), w.current || (I.current = setTimeout(() => {
|
|
3451
|
-
w.current = !0,
|
|
3465
|
+
w.current = !0, m(!0), E({
|
|
3452
3466
|
announcementTimeout: Un,
|
|
3453
3467
|
politeness: "polite",
|
|
3454
3468
|
message: `${r} hiding characters`
|
|
@@ -3457,15 +3471,15 @@ const Mn = 500, Un = 5e3, Kn = 2e4, tr = z.forwardRef(
|
|
|
3457
3471
|
}, H = (v) => {
|
|
3458
3472
|
v.preventDefault();
|
|
3459
3473
|
const P = !w.current;
|
|
3460
|
-
w.current = P, N(),
|
|
3461
|
-
announcementTimeout:
|
|
3474
|
+
w.current = P, N(), m(P), E({
|
|
3475
|
+
announcementTimeout: $n,
|
|
3462
3476
|
politeness: "assertive",
|
|
3463
3477
|
message: P ? "Characters hidden" : "Characters showing"
|
|
3464
3478
|
}), n && n(P);
|
|
3465
3479
|
}, W = (v) => {
|
|
3466
3480
|
var P;
|
|
3467
|
-
const { relatedTarget:
|
|
3468
|
-
ee != null && ee.contains(
|
|
3481
|
+
const { relatedTarget: B } = v, ee = (P = $.current) == null ? void 0 : P.parentElement;
|
|
3482
|
+
ee != null && ee.contains(B) || d && d();
|
|
3469
3483
|
}, x = (v) => {
|
|
3470
3484
|
N(), s && s(v), W(v);
|
|
3471
3485
|
}, pe = (v) => {
|
|
@@ -3488,7 +3502,7 @@ const Mn = 500, Un = 5e3, Kn = 2e4, tr = z.forwardRef(
|
|
|
3488
3502
|
onBlur: x,
|
|
3489
3503
|
onFocus: pe,
|
|
3490
3504
|
onChange: Z,
|
|
3491
|
-
rightElement: z.cloneElement(
|
|
3505
|
+
rightElement: z.cloneElement(h, {
|
|
3492
3506
|
ref: u,
|
|
3493
3507
|
label: K,
|
|
3494
3508
|
onClick: H,
|
|
@@ -3524,7 +3538,7 @@ try {
|
|
|
3524
3538
|
});
|
|
3525
3539
|
} catch {
|
|
3526
3540
|
}
|
|
3527
|
-
const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto",
|
|
3541
|
+
const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Bn = "Log in", Gn = "Sign in with a Passkey", Bo = "Log out", Jn = "Password", Go = "Send", Jo = "Profile", Vo = "Settings", Yo = "Chat history", zo = "About", Fo = "Type your question here", jo = "{{clipboard}}", qo = "Prompts are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder {{clipboard}} to automatically insert the content of your clipboard.", Xo = {
|
|
3528
3542
|
PREFERENCES: {
|
|
3529
3543
|
TITLE: "User profile",
|
|
3530
3544
|
NAME: "Name",
|
|
@@ -3562,23 +3576,23 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
|
|
|
3562
3576
|
TITLE: "AI Engine"
|
|
3563
3577
|
}
|
|
3564
3578
|
}, Vn = () => /* @__PURE__ */ O("div", { className: "flex items-center justify-center", children: [
|
|
3565
|
-
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(
|
|
3579
|
+
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(mn, {}) }),
|
|
3566
3580
|
/* @__PURE__ */ O("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3567
3581
|
/* @__PURE__ */ l("h1", { children: Wn }),
|
|
3568
3582
|
/* @__PURE__ */ l("h2", { children: Hn })
|
|
3569
3583
|
] })
|
|
3570
3584
|
] }), Yn = () => {
|
|
3571
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } = jt(), [a, n] = j(""), [o, s] = j(""), [i, d] = j(!0), [
|
|
3585
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = jt(), [a, n] = j(""), [o, s] = j(""), [i, d] = j(!0), [h, p] = j({
|
|
3572
3586
|
username: "",
|
|
3573
3587
|
password: ""
|
|
3574
3588
|
}), u = async (c) => {
|
|
3575
|
-
c.preventDefault(), await e(
|
|
3589
|
+
c.preventDefault(), await e(h.username, h.password) || (s(""), n("Invalid username or password"));
|
|
3576
3590
|
};
|
|
3577
3591
|
return Q(() => {
|
|
3578
3592
|
var c;
|
|
3579
3593
|
(c = document.getElementById("logo")) == null || c.classList.add("fadeOut"), setTimeout(() => {
|
|
3580
|
-
var
|
|
3581
|
-
(
|
|
3594
|
+
var m;
|
|
3595
|
+
(m = document.getElementById("root")) == null || m.classList.replace("app-hidden", "fadeIn");
|
|
3582
3596
|
}, 500);
|
|
3583
3597
|
}), Q(() => {
|
|
3584
3598
|
t && s(t);
|
|
@@ -3616,7 +3630,7 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
|
|
|
3616
3630
|
label: "Username",
|
|
3617
3631
|
onChange: (c) => {
|
|
3618
3632
|
p({
|
|
3619
|
-
...
|
|
3633
|
+
...h,
|
|
3620
3634
|
username: c.target.value
|
|
3621
3635
|
}), n("");
|
|
3622
3636
|
},
|
|
@@ -3635,11 +3649,11 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
|
|
|
3635
3649
|
focusMode: "light",
|
|
3636
3650
|
name: "password",
|
|
3637
3651
|
label: Jn,
|
|
3638
|
-
rightElement: /* @__PURE__ */ l(Xe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(gn, {}) : /* @__PURE__ */ l(
|
|
3652
|
+
rightElement: /* @__PURE__ */ l(Xe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(gn, {}) : /* @__PURE__ */ l(hn, {}) }),
|
|
3639
3653
|
onMaskChange: d,
|
|
3640
3654
|
onChange: (c) => {
|
|
3641
3655
|
p({
|
|
3642
|
-
...
|
|
3656
|
+
...h,
|
|
3643
3657
|
password: c.target.value
|
|
3644
3658
|
}), n("");
|
|
3645
3659
|
},
|
|
@@ -3656,7 +3670,7 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
|
|
|
3656
3670
|
noBorder: !0,
|
|
3657
3671
|
type: "submit",
|
|
3658
3672
|
className: "mt-7",
|
|
3659
|
-
children:
|
|
3673
|
+
children: Bn
|
|
3660
3674
|
}
|
|
3661
3675
|
) }),
|
|
3662
3676
|
/* @__PURE__ */ l(te, { span: 12, children: /* @__PURE__ */ l("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
@@ -3668,7 +3682,7 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
|
|
|
3668
3682
|
focusMode: "light",
|
|
3669
3683
|
fullWidth: !0,
|
|
3670
3684
|
className: "mb-4",
|
|
3671
|
-
labelRight:
|
|
3685
|
+
labelRight: Gn,
|
|
3672
3686
|
onClick: r,
|
|
3673
3687
|
children: /* @__PURE__ */ l(pn, { size: "size-7" })
|
|
3674
3688
|
}
|
|
@@ -3679,35 +3693,35 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Gn = "Log in", Bn = "Sign in w
|
|
|
3679
3693
|
) });
|
|
3680
3694
|
}, zn = new URL(document.location.href).searchParams, Fn = !!zn.get("debug") || !1, jn = or(() => import(
|
|
3681
3695
|
/* webpackChunkName: "LazyApp" */
|
|
3682
|
-
"./App.
|
|
3696
|
+
"./App.BCrssLN1.js"
|
|
3683
3697
|
).then((e) => e.App)), qn = ({ isComponent: e }) => {
|
|
3684
3698
|
const { isAuthenticated: t } = jt();
|
|
3685
3699
|
return t ? /* @__PURE__ */ l(sr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jn, { isComponent: e }) }) : /* @__PURE__ */ l(Yn, {});
|
|
3686
3700
|
}, Xn = ({
|
|
3687
3701
|
isComponent: e = !1,
|
|
3688
3702
|
domain: t = za
|
|
3689
|
-
}) => /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l(La, { clientId:
|
|
3703
|
+
}) => /* @__PURE__ */ l(Oe, { children: /* @__PURE__ */ l(La, { clientId: Ma, domain: t, debug: Fn, children: /* @__PURE__ */ l(qn, { isComponent: e }) }) }), Qo = ({ domain: e }) => /* @__PURE__ */ l(Xn, { isComponent: !0, domain: e });
|
|
3690
3704
|
export {
|
|
3691
3705
|
zo as ABOUT_TITLE,
|
|
3692
3706
|
Io as ACTION_ENGINE,
|
|
3693
3707
|
fo as ACTION_MESSAGE,
|
|
3694
3708
|
Eo as ACTION_MODEL,
|
|
3695
3709
|
bo as ACTION_RESET,
|
|
3696
|
-
Ao as
|
|
3710
|
+
Ao as ACTION_RESET_PROMPTS,
|
|
3697
3711
|
wo as ACTION_RESTORE,
|
|
3698
3712
|
So as ACTION_SEARCH,
|
|
3699
|
-
vo as
|
|
3713
|
+
vo as ACTION_SET_PROMPTS,
|
|
3700
3714
|
_o as ACTION_SORT,
|
|
3701
3715
|
To as ACTION_STREAMING,
|
|
3702
|
-
ko as
|
|
3716
|
+
ko as ACTION_TOGGLE_PROMPT,
|
|
3703
3717
|
Wn as APP_NAME,
|
|
3704
3718
|
qt as C,
|
|
3705
3719
|
Xo as CARDS,
|
|
3706
|
-
jo as
|
|
3720
|
+
jo as CLIPBOARD_PROMPT,
|
|
3707
3721
|
po as DEFAULT_AI_ENGINE,
|
|
3708
3722
|
yo as ENGINE_ANTHROPIC,
|
|
3709
3723
|
go as ENGINE_OPENAI,
|
|
3710
|
-
|
|
3724
|
+
ho as ERROR_MESSAGE,
|
|
3711
3725
|
Yo as HISTORY_TITLE,
|
|
3712
3726
|
Lo as INFINITE_SCROLL_LIMIT,
|
|
3713
3727
|
Do as INFINITE_SCROLL_THRESHOLD,
|
|
@@ -3717,34 +3731,34 @@ export {
|
|
|
3717
3731
|
Ro as LOCAL_STORAGE_PREFIX,
|
|
3718
3732
|
xo as LOCAL_STORAGE_SEARCH,
|
|
3719
3733
|
Co as LOCAL_STORAGE_SORT,
|
|
3720
|
-
|
|
3734
|
+
Bo as LOG_OUT,
|
|
3721
3735
|
Vn as Logo,
|
|
3722
3736
|
ue as M,
|
|
3723
3737
|
Xe as P,
|
|
3724
3738
|
Jo as PROFILE_TITLE,
|
|
3739
|
+
qo as PROMPTS_DESCRIPTION,
|
|
3725
3740
|
un as R,
|
|
3726
3741
|
co as ROLE_ASSISTANT,
|
|
3727
|
-
|
|
3742
|
+
mo as ROLE_HIDDEN,
|
|
3728
3743
|
uo as ROLE_INTERNAL,
|
|
3729
3744
|
lo as ROLE_SYSTEM,
|
|
3730
3745
|
io as ROLE_USER,
|
|
3731
|
-
|
|
3746
|
+
Go as SEND,
|
|
3732
3747
|
Vo as SETTINGS_TITLE,
|
|
3733
3748
|
Po as STATS_SEPARATOR,
|
|
3734
3749
|
Qo as SassySaint,
|
|
3735
|
-
qo as TAGS_DESCRIPTION,
|
|
3736
3750
|
Fo as TYPE_QUESTION,
|
|
3737
3751
|
Wo as debounce,
|
|
3738
3752
|
Ko as durationFormatter,
|
|
3739
3753
|
Ue as g,
|
|
3740
|
-
|
|
3754
|
+
Mo as getCurrentGeoLocation,
|
|
3741
3755
|
ja as getMainPaddingClass,
|
|
3742
3756
|
Fa as getMessageContaintWrapperClass,
|
|
3743
3757
|
Uo as isLastMessageFromRole,
|
|
3744
3758
|
te as j,
|
|
3745
3759
|
Ho as pluralize,
|
|
3746
3760
|
fn as r,
|
|
3747
|
-
|
|
3761
|
+
$o as renderDataAsList,
|
|
3748
3762
|
jt as un,
|
|
3749
3763
|
at as ye,
|
|
3750
3764
|
pn as z
|