@versini/sassysaint 2.0.1 → 4.0.2
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.DLRfFoDr.js → App.CB-l5VXS.js} +3 -3
- package/dist/chunks/{LazyHeader.D2u4G673.js → LazyHeader.BLLQsxSA.js} +5 -5
- package/dist/chunks/{LazyMarkdownWithExtra.CQ-6ZrX6.js → LazyMarkdownWithExtra.BXN0qX-X.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.68CITAPS.js → LazyMessageAssistant.BVS33a7s.js} +4 -4
- package/dist/chunks/{index.DbAx5fhD.BAkw0L0M.js → index.7JJYsiGN.DgxpdbID.js} +14 -14
- package/dist/chunks/{index.9fMyg1wm.js → index.CNfQ0lj1.js} +367 -362
- package/dist/chunks/{useLocalStorage.BJGEnXEU.js → useLocalStorage.B1r33kl_.js} +9 -9
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +4 -4
- package/dist/style.css +8 -1
- package/package.json +4 -4
|
@@ -3,13 +3,13 @@ import V, { createContext as nr, useReducer as ft, useRef as W, useCallback as z
|
|
|
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, Le = (e, t, r) => cr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
6
|
-
@versini/auth-provider v7.
|
|
6
|
+
@versini/auth-provider v7.1.1
|
|
7
7
|
© 2024 gizmette.com
|
|
8
8
|
*/
|
|
9
9
|
try {
|
|
10
10
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
11
|
-
version: "7.
|
|
12
|
-
buildTime: "08/
|
|
11
|
+
version: "7.1.1",
|
|
12
|
+
buildTime: "08/25/2024 03:19 PM EDT",
|
|
13
13
|
homepage: "https://github.com/aversini/auth-client",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
@@ -39,7 +39,7 @@ function It(e) {
|
|
|
39
39
|
transports: e.transports
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function vt(e) {
|
|
43
43
|
return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
|
|
44
44
|
}
|
|
45
45
|
let k = class extends Error {
|
|
@@ -47,7 +47,7 @@ let k = class extends Error {
|
|
|
47
47
|
super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
|
-
function
|
|
50
|
+
function dr({ error: e, options: t }) {
|
|
51
51
|
var a, n;
|
|
52
52
|
const { publicKey: r } = t;
|
|
53
53
|
if (!r)
|
|
@@ -97,7 +97,7 @@ function lr({ error: e, options: t }) {
|
|
|
97
97
|
});
|
|
98
98
|
if (e.name === "SecurityError") {
|
|
99
99
|
const o = window.location.hostname;
|
|
100
|
-
if (
|
|
100
|
+
if (vt(o)) {
|
|
101
101
|
if (r.rp.id !== o)
|
|
102
102
|
return new k({
|
|
103
103
|
message: `The RP ID "${r.rp.id}" is invalid for this domain`,
|
|
@@ -125,7 +125,7 @@ function lr({ error: e, options: t }) {
|
|
|
125
125
|
}
|
|
126
126
|
return e;
|
|
127
127
|
}
|
|
128
|
-
class
|
|
128
|
+
class lr {
|
|
129
129
|
createNewAbortSignal() {
|
|
130
130
|
if (this.controller) {
|
|
131
131
|
const r = new Error("Cancelling existing WebAuthn API call for new one");
|
|
@@ -141,8 +141,8 @@ class dr {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
const
|
|
145
|
-
function
|
|
144
|
+
const St = new lr(), ur = ["cross-platform", "platform"];
|
|
145
|
+
function At(e) {
|
|
146
146
|
if (e && !(ur.indexOf(e) < 0))
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
@@ -159,12 +159,12 @@ async function mr(e) {
|
|
|
159
159
|
},
|
|
160
160
|
excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(It)
|
|
161
161
|
} };
|
|
162
|
-
t.signal =
|
|
162
|
+
t.signal = St.createNewAbortSignal();
|
|
163
163
|
let r;
|
|
164
164
|
try {
|
|
165
165
|
r = await navigator.credentials.create(t);
|
|
166
|
-
} catch (
|
|
167
|
-
throw
|
|
166
|
+
} catch (d) {
|
|
167
|
+
throw dr({ error: d, options: t });
|
|
168
168
|
}
|
|
169
169
|
if (!r)
|
|
170
170
|
throw new Error("Registration was not completed");
|
|
@@ -175,23 +175,23 @@ async function mr(e) {
|
|
|
175
175
|
if (typeof o.getPublicKeyAlgorithm == "function")
|
|
176
176
|
try {
|
|
177
177
|
u = o.getPublicKeyAlgorithm();
|
|
178
|
-
} catch (
|
|
179
|
-
Me("getPublicKeyAlgorithm()",
|
|
178
|
+
} catch (d) {
|
|
179
|
+
Me("getPublicKeyAlgorithm()", d);
|
|
180
180
|
}
|
|
181
|
-
let
|
|
181
|
+
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
183
183
|
try {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
} catch (
|
|
187
|
-
Me("getPublicKey()",
|
|
184
|
+
const d = o.getPublicKey();
|
|
185
|
+
d !== null && (h = L(d));
|
|
186
|
+
} catch (d) {
|
|
187
|
+
Me("getPublicKey()", d);
|
|
188
188
|
}
|
|
189
|
-
let
|
|
189
|
+
let p;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
|
-
|
|
193
|
-
} catch (
|
|
194
|
-
Me("getAuthenticatorData()",
|
|
192
|
+
p = L(o.getAuthenticatorData());
|
|
193
|
+
} catch (d) {
|
|
194
|
+
Me("getAuthenticatorData()", d);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
@@ -201,12 +201,12 @@ async function mr(e) {
|
|
|
201
201
|
clientDataJSON: L(o.clientDataJSON),
|
|
202
202
|
transports: i,
|
|
203
203
|
publicKeyAlgorithm: u,
|
|
204
|
-
publicKey:
|
|
205
|
-
authenticatorData:
|
|
204
|
+
publicKey: h,
|
|
205
|
+
authenticatorData: p
|
|
206
206
|
},
|
|
207
207
|
type: s,
|
|
208
208
|
clientExtensionResults: r.getClientExtensionResults(),
|
|
209
|
-
authenticatorAttachment:
|
|
209
|
+
authenticatorAttachment: At(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
212
|
function Me(e, t) {
|
|
@@ -239,7 +239,7 @@ function pr({ error: e, options: t }) {
|
|
|
239
239
|
});
|
|
240
240
|
if (e.name === "SecurityError") {
|
|
241
241
|
const a = window.location.hostname;
|
|
242
|
-
if (
|
|
242
|
+
if (vt(a)) {
|
|
243
243
|
if (r.rpId !== a)
|
|
244
244
|
return new k({
|
|
245
245
|
message: `The RP ID "${r.rpId}" is invalid for this domain`,
|
|
@@ -261,11 +261,11 @@ function pr({ error: e, options: t }) {
|
|
|
261
261
|
return e;
|
|
262
262
|
}
|
|
263
263
|
async function gr(e, t = !1) {
|
|
264
|
-
var m,
|
|
264
|
+
var m, d;
|
|
265
265
|
if (!ze())
|
|
266
266
|
throw new Error("WebAuthn is not supported in this browser");
|
|
267
267
|
let r;
|
|
268
|
-
((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (
|
|
268
|
+
((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (d = e.allowCredentials) == null ? void 0 : d.map(It));
|
|
269
269
|
const a = {
|
|
270
270
|
...e,
|
|
271
271
|
challenge: Ie(e.challenge),
|
|
@@ -278,29 +278,29 @@ async function gr(e, t = !1) {
|
|
|
278
278
|
throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
|
|
279
279
|
n.mediation = "conditional", a.allowCredentials = [];
|
|
280
280
|
}
|
|
281
|
-
n.publicKey = a, n.signal =
|
|
281
|
+
n.publicKey = a, n.signal = St.createNewAbortSignal();
|
|
282
282
|
let o;
|
|
283
283
|
try {
|
|
284
284
|
o = await navigator.credentials.get(n);
|
|
285
|
-
} catch (
|
|
286
|
-
throw pr({ error:
|
|
285
|
+
} catch (l) {
|
|
286
|
+
throw pr({ error: l, options: n });
|
|
287
287
|
}
|
|
288
288
|
if (!o)
|
|
289
289
|
throw new Error("Authentication was not completed");
|
|
290
|
-
const { id: s, rawId: i, response: u, type:
|
|
291
|
-
let
|
|
292
|
-
return u.userHandle && (
|
|
290
|
+
const { id: s, rawId: i, response: u, type: h } = o;
|
|
291
|
+
let p;
|
|
292
|
+
return u.userHandle && (p = L(u.userHandle)), {
|
|
293
293
|
id: s,
|
|
294
294
|
rawId: L(i),
|
|
295
295
|
response: {
|
|
296
296
|
authenticatorData: L(u.authenticatorData),
|
|
297
297
|
clientDataJSON: L(u.clientDataJSON),
|
|
298
298
|
signature: L(u.signature),
|
|
299
|
-
userHandle:
|
|
299
|
+
userHandle: p
|
|
300
300
|
},
|
|
301
|
-
type:
|
|
301
|
+
type: h,
|
|
302
302
|
clientExtensionResults: o.getClientExtensionResults(),
|
|
303
|
-
authenticatorAttachment:
|
|
303
|
+
authenticatorAttachment: At(o.authenticatorAttachment)
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
/*!
|
|
@@ -310,7 +310,7 @@ async function gr(e, t = !1) {
|
|
|
310
310
|
try {
|
|
311
311
|
window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
|
|
312
312
|
version: "4.0.0",
|
|
313
|
-
buildTime: "08/
|
|
313
|
+
buildTime: "08/25/2024 03:19 PM EDT",
|
|
314
314
|
homepage: "https://github.com/aversini/auth-client",
|
|
315
315
|
license: "MIT"
|
|
316
316
|
});
|
|
@@ -350,7 +350,7 @@ awIDAQAB
|
|
|
350
350
|
LOGOUT: "logout",
|
|
351
351
|
LOGIN: "login",
|
|
352
352
|
REFRESH: "refresh"
|
|
353
|
-
}, Ne = crypto, _t = (e) => e instanceof CryptoKey, ue = new TextEncoder(),
|
|
353
|
+
}, Ne = crypto, _t = (e) => e instanceof CryptoKey, ue = new TextEncoder(), de = new TextDecoder();
|
|
354
354
|
function yr(...e) {
|
|
355
355
|
const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
|
|
356
356
|
let a = 0;
|
|
@@ -365,7 +365,7 @@ const br = (e) => {
|
|
|
365
365
|
return r;
|
|
366
366
|
}, se = (e) => {
|
|
367
367
|
let t = e;
|
|
368
|
-
t instanceof Uint8Array && (t =
|
|
368
|
+
t instanceof Uint8Array && (t = de.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
369
369
|
try {
|
|
370
370
|
return br(t);
|
|
371
371
|
} catch {
|
|
@@ -413,7 +413,7 @@ class Y extends q {
|
|
|
413
413
|
return "ERR_JOSE_NOT_SUPPORTED";
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
-
let
|
|
416
|
+
let A = class extends q {
|
|
417
417
|
constructor() {
|
|
418
418
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
419
419
|
}
|
|
@@ -467,7 +467,7 @@ function Ir(e, t) {
|
|
|
467
467
|
throw new TypeError(r);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function vr(e, t, ...r) {
|
|
471
471
|
switch (t) {
|
|
472
472
|
case "HS256":
|
|
473
473
|
case "HS384":
|
|
@@ -531,7 +531,7 @@ const rt = (e, ...t) => Rt("Key must be ", e, ...t);
|
|
|
531
531
|
function Nt(e, t, ...r) {
|
|
532
532
|
return Rt(`Key for the ${e} algorithm must be `, t, ...r);
|
|
533
533
|
}
|
|
534
|
-
const xt = (e) => _t(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
534
|
+
const xt = (e) => _t(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"], Sr = (...e) => {
|
|
535
535
|
const t = e.filter(Boolean);
|
|
536
536
|
if (t.length === 0 || t.length === 1)
|
|
537
537
|
return !0;
|
|
@@ -550,11 +550,11 @@ const xt = (e) => _t(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
|
|
|
550
550
|
}
|
|
551
551
|
return !0;
|
|
552
552
|
};
|
|
553
|
-
function
|
|
553
|
+
function Ar(e) {
|
|
554
554
|
return typeof e == "object" && e !== null;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
if (!
|
|
556
|
+
function Se(e) {
|
|
557
|
+
if (!Ar(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
558
558
|
return !1;
|
|
559
559
|
if (Object.getPrototypeOf(e) === null)
|
|
560
560
|
return !0;
|
|
@@ -753,13 +753,13 @@ async function Dr(e, t, r) {
|
|
|
753
753
|
const Ee = (e) => e == null ? void 0 : e[Symbol.toStringTag], $r = (e, t) => {
|
|
754
754
|
if (!(t instanceof Uint8Array)) {
|
|
755
755
|
if (!xt(t))
|
|
756
|
-
throw new TypeError(Nt(e, t, ...
|
|
756
|
+
throw new TypeError(Nt(e, t, ...ve, "Uint8Array"));
|
|
757
757
|
if (t.type !== "secret")
|
|
758
758
|
throw new TypeError(`${Ee(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
759
759
|
}
|
|
760
760
|
}, Lr = (e, t, r) => {
|
|
761
761
|
if (!xt(t))
|
|
762
|
-
throw new TypeError(Nt(e, t, ...
|
|
762
|
+
throw new TypeError(Nt(e, t, ...ve));
|
|
763
763
|
if (t.type === "secret")
|
|
764
764
|
throw new TypeError(`${Ee(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
765
765
|
if (t.algorithm && r === "verify" && t.type === "private")
|
|
@@ -821,13 +821,13 @@ function Kr(e, t) {
|
|
|
821
821
|
}
|
|
822
822
|
async function Br(e, t, r) {
|
|
823
823
|
if (t = await Cr.normalizePublicKey(t, e), _t(t))
|
|
824
|
-
return
|
|
824
|
+
return vr(t, e, r), t;
|
|
825
825
|
if (t instanceof Uint8Array) {
|
|
826
826
|
if (!e.startsWith("HS"))
|
|
827
|
-
throw new TypeError(rt(t, ...
|
|
827
|
+
throw new TypeError(rt(t, ...ve));
|
|
828
828
|
return Ne.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
|
|
829
829
|
}
|
|
830
|
-
throw new TypeError(rt(t, ...
|
|
830
|
+
throw new TypeError(rt(t, ...ve, "Uint8Array"));
|
|
831
831
|
}
|
|
832
832
|
const Gr = async (e, t, r, a) => {
|
|
833
833
|
const n = await Br(e, t, "verify");
|
|
@@ -840,74 +840,74 @@ const Gr = async (e, t, r, a) => {
|
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
842
|
async function Wr(e, t, r) {
|
|
843
|
-
if (!
|
|
844
|
-
throw new
|
|
843
|
+
if (!Se(e))
|
|
844
|
+
throw new A("Flattened JWS must be an object");
|
|
845
845
|
if (e.protected === void 0 && e.header === void 0)
|
|
846
|
-
throw new
|
|
846
|
+
throw new A('Flattened JWS must have either of the "protected" or "header" members');
|
|
847
847
|
if (e.protected !== void 0 && typeof e.protected != "string")
|
|
848
|
-
throw new
|
|
848
|
+
throw new A("JWS Protected Header incorrect type");
|
|
849
849
|
if (e.payload === void 0)
|
|
850
|
-
throw new
|
|
850
|
+
throw new A("JWS Payload missing");
|
|
851
851
|
if (typeof e.signature != "string")
|
|
852
|
-
throw new
|
|
853
|
-
if (e.header !== void 0 && !
|
|
854
|
-
throw new
|
|
852
|
+
throw new A("JWS Signature missing or incorrect type");
|
|
853
|
+
if (e.header !== void 0 && !Se(e.header))
|
|
854
|
+
throw new A("JWS Unprotected Header incorrect type");
|
|
855
855
|
let a = {};
|
|
856
856
|
if (e.protected)
|
|
857
857
|
try {
|
|
858
858
|
const f = se(e.protected);
|
|
859
|
-
a = JSON.parse(
|
|
859
|
+
a = JSON.parse(de.decode(f));
|
|
860
860
|
} catch {
|
|
861
|
-
throw new
|
|
861
|
+
throw new A("JWS Protected Header is invalid");
|
|
862
862
|
}
|
|
863
|
-
if (!
|
|
864
|
-
throw new
|
|
863
|
+
if (!Sr(a, e.header))
|
|
864
|
+
throw new A("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
865
865
|
const n = {
|
|
866
866
|
...a,
|
|
867
867
|
...e.header
|
|
868
|
-
}, o = Ur(
|
|
868
|
+
}, o = Ur(A, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
|
|
869
869
|
let s = !0;
|
|
870
870
|
if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
|
|
871
|
-
throw new
|
|
871
|
+
throw new A('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
872
872
|
const { alg: i } = n;
|
|
873
873
|
if (typeof i != "string" || !i)
|
|
874
|
-
throw new
|
|
874
|
+
throw new A('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
875
875
|
const u = r && Hr("algorithms", r.algorithms);
|
|
876
876
|
if (u && !u.has(i))
|
|
877
877
|
throw new Er('"alg" (Algorithm) Header Parameter value not allowed');
|
|
878
878
|
if (s) {
|
|
879
879
|
if (typeof e.payload != "string")
|
|
880
|
-
throw new
|
|
880
|
+
throw new A("JWS Payload must be a string");
|
|
881
881
|
} else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
|
|
882
|
-
throw new
|
|
883
|
-
let
|
|
884
|
-
typeof t == "function" && (t = await t(a, e),
|
|
885
|
-
const
|
|
882
|
+
throw new A("JWS Payload must be a string or an Uint8Array instance");
|
|
883
|
+
let h = !1;
|
|
884
|
+
typeof t == "function" && (t = await t(a, e), h = !0), Mr(i, t, "verify");
|
|
885
|
+
const p = yr(ue.encode(e.protected ?? ""), ue.encode("."), typeof e.payload == "string" ? ue.encode(e.payload) : e.payload);
|
|
886
886
|
let m;
|
|
887
887
|
try {
|
|
888
888
|
m = se(e.signature);
|
|
889
889
|
} catch {
|
|
890
|
-
throw new
|
|
890
|
+
throw new A("Failed to base64url decode the signature");
|
|
891
891
|
}
|
|
892
|
-
if (!await Gr(i, t, m,
|
|
892
|
+
if (!await Gr(i, t, m, p))
|
|
893
893
|
throw new wr();
|
|
894
|
-
let
|
|
894
|
+
let d;
|
|
895
895
|
if (s)
|
|
896
896
|
try {
|
|
897
|
-
|
|
897
|
+
d = se(e.payload);
|
|
898
898
|
} catch {
|
|
899
|
-
throw new
|
|
899
|
+
throw new A("Failed to base64url decode the payload");
|
|
900
900
|
}
|
|
901
|
-
else typeof e.payload == "string" ?
|
|
902
|
-
const
|
|
903
|
-
return e.protected !== void 0 && (
|
|
901
|
+
else typeof e.payload == "string" ? d = ue.encode(e.payload) : d = e.payload;
|
|
902
|
+
const l = { payload: d };
|
|
903
|
+
return e.protected !== void 0 && (l.protectedHeader = a), e.header !== void 0 && (l.unprotectedHeader = e.header), h ? { ...l, key: t } : l;
|
|
904
904
|
}
|
|
905
905
|
async function Vr(e, t, r) {
|
|
906
|
-
if (e instanceof Uint8Array && (e =
|
|
907
|
-
throw new
|
|
906
|
+
if (e instanceof Uint8Array && (e = de.decode(e)), typeof e != "string")
|
|
907
|
+
throw new A("Compact JWS must be a string or Uint8Array");
|
|
908
908
|
const { 0: a, 1: n, 2: o, length: s } = e.split(".");
|
|
909
909
|
if (s !== 3)
|
|
910
|
-
throw new
|
|
910
|
+
throw new A("Invalid Compact JWS");
|
|
911
911
|
const i = await Wr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
912
912
|
return typeof t == "function" ? { ...u, key: i.key } : u;
|
|
913
913
|
}
|
|
@@ -957,17 +957,17 @@ const Jr = (e) => Math.floor(e.getTime() / 1e3), Dt = 60, $t = Dt * 60, je = $t
|
|
|
957
957
|
}, ot = (e) => e.toLowerCase().replace(/^application\//, ""), jr = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, qr = (e, t, r = {}) => {
|
|
958
958
|
let a;
|
|
959
959
|
try {
|
|
960
|
-
a = JSON.parse(
|
|
960
|
+
a = JSON.parse(de.decode(t));
|
|
961
961
|
} catch {
|
|
962
962
|
}
|
|
963
|
-
if (!
|
|
963
|
+
if (!Se(a))
|
|
964
964
|
throw new G("JWT Claims Set must be a top-level JSON object");
|
|
965
965
|
const { typ: n } = r;
|
|
966
966
|
if (n && (typeof e.typ != "string" || ot(e.typ) !== ot(n)))
|
|
967
967
|
throw new $('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
968
|
-
const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge:
|
|
969
|
-
|
|
970
|
-
for (const f of new Set(
|
|
968
|
+
const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge: h } = r, p = [...o];
|
|
969
|
+
h !== void 0 && p.push("iat"), u !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
|
|
970
|
+
for (const f of new Set(p.reverse()))
|
|
971
971
|
if (!(f in a))
|
|
972
972
|
throw new $(`missing required "${f}" claim`, a, f, "missing");
|
|
973
973
|
if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
|
|
@@ -990,23 +990,23 @@ const Jr = (e) => Math.floor(e.getTime() / 1e3), Dt = 60, $t = Dt * 60, je = $t
|
|
|
990
990
|
default:
|
|
991
991
|
throw new TypeError("Invalid clockTolerance option type");
|
|
992
992
|
}
|
|
993
|
-
const { currentDate:
|
|
994
|
-
if ((a.iat !== void 0 ||
|
|
993
|
+
const { currentDate: d } = r, l = Jr(d || /* @__PURE__ */ new Date());
|
|
994
|
+
if ((a.iat !== void 0 || h) && typeof a.iat != "number")
|
|
995
995
|
throw new $('"iat" claim must be a number', a, "iat", "invalid");
|
|
996
996
|
if (a.nbf !== void 0) {
|
|
997
997
|
if (typeof a.nbf != "number")
|
|
998
998
|
throw new $('"nbf" claim must be a number', a, "nbf", "invalid");
|
|
999
|
-
if (a.nbf >
|
|
999
|
+
if (a.nbf > l + m)
|
|
1000
1000
|
throw new $('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
|
|
1001
1001
|
}
|
|
1002
1002
|
if (a.exp !== void 0) {
|
|
1003
1003
|
if (typeof a.exp != "number")
|
|
1004
1004
|
throw new $('"exp" claim must be a number', a, "exp", "invalid");
|
|
1005
|
-
if (a.exp <=
|
|
1005
|
+
if (a.exp <= l - m)
|
|
1006
1006
|
throw new tt('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
1007
1007
|
}
|
|
1008
|
-
if (
|
|
1009
|
-
const f =
|
|
1008
|
+
if (h) {
|
|
1009
|
+
const f = l - a.iat, E = typeof h == "number" ? h : nt(h);
|
|
1010
1010
|
if (f - m > E)
|
|
1011
1011
|
throw new tt('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
1012
1012
|
if (f < 0 - m)
|
|
@@ -1041,11 +1041,11 @@ function Zr(e) {
|
|
|
1041
1041
|
}
|
|
1042
1042
|
let n;
|
|
1043
1043
|
try {
|
|
1044
|
-
n = JSON.parse(
|
|
1044
|
+
n = JSON.parse(de.decode(a));
|
|
1045
1045
|
} catch {
|
|
1046
1046
|
throw new G("Failed to parse the decoded payload as JSON");
|
|
1047
1047
|
}
|
|
1048
|
-
if (!
|
|
1048
|
+
if (!Se(n))
|
|
1049
1049
|
throw new G("Invalid JWT Claims Set");
|
|
1050
1050
|
return n;
|
|
1051
1051
|
}
|
|
@@ -1065,11 +1065,11 @@ const ie = async (e) => {
|
|
|
1065
1065
|
return;
|
|
1066
1066
|
}
|
|
1067
1067
|
};
|
|
1068
|
-
var
|
|
1068
|
+
var v = [];
|
|
1069
1069
|
for (var Be = 0; Be < 256; ++Be)
|
|
1070
|
-
|
|
1070
|
+
v.push((Be + 256).toString(16).slice(1));
|
|
1071
1071
|
function ta(e, t = 0) {
|
|
1072
|
-
return (
|
|
1072
|
+
return (v[e[t + 0]] + v[e[t + 1]] + v[e[t + 2]] + v[e[t + 3]] + "-" + v[e[t + 4]] + v[e[t + 5]] + "-" + v[e[t + 6]] + v[e[t + 7]] + "-" + v[e[t + 8]] + v[e[t + 9]] + "-" + v[e[t + 10]] + v[e[t + 11]] + v[e[t + 12]] + v[e[t + 13]] + v[e[t + 14]] + v[e[t + 15]]).toLowerCase();
|
|
1073
1073
|
}
|
|
1074
1074
|
var he, ra = new Uint8Array(16);
|
|
1075
1075
|
function aa() {
|
|
@@ -1109,23 +1109,23 @@ async function ca(e) {
|
|
|
1109
1109
|
function Lt(e, t) {
|
|
1110
1110
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
1111
1111
|
}
|
|
1112
|
-
const
|
|
1112
|
+
const dt = (e, t) => {
|
|
1113
1113
|
const r = JSON.stringify(
|
|
1114
1114
|
typeof t == "function" ? t() : t
|
|
1115
1115
|
);
|
|
1116
1116
|
window.localStorage.setItem(e, r), Lt(e, r);
|
|
1117
|
-
},
|
|
1117
|
+
}, da = (e) => {
|
|
1118
1118
|
window.localStorage.removeItem(e), Lt(e, null);
|
|
1119
|
-
},
|
|
1119
|
+
}, lt = (e) => window.localStorage.getItem(e), la = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
1120
1120
|
function pe({
|
|
1121
1121
|
key: e,
|
|
1122
1122
|
initialValue: t
|
|
1123
1123
|
}) {
|
|
1124
|
-
const r = or(
|
|
1124
|
+
const r = or(la, () => lt(e)), a = z(
|
|
1125
1125
|
(s) => {
|
|
1126
1126
|
try {
|
|
1127
1127
|
const i = typeof s == "function" ? s(JSON.parse(r)) : s;
|
|
1128
|
-
i == null ?
|
|
1128
|
+
i == null ? da(e) : dt(e, i);
|
|
1129
1129
|
} catch (i) {
|
|
1130
1130
|
console.warn(i);
|
|
1131
1131
|
}
|
|
@@ -1138,17 +1138,17 @@ function pe({
|
|
|
1138
1138
|
}, [a]);
|
|
1139
1139
|
return j(() => {
|
|
1140
1140
|
try {
|
|
1141
|
-
|
|
1141
|
+
lt(e) === null && typeof t < "u" && dt(e, t);
|
|
1142
1142
|
} catch (s) {
|
|
1143
1143
|
console.warn(s);
|
|
1144
1144
|
}
|
|
1145
1145
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
1146
1146
|
}
|
|
1147
|
-
var
|
|
1147
|
+
var S = [];
|
|
1148
1148
|
for (var Ge = 0; Ge < 256; ++Ge)
|
|
1149
|
-
|
|
1149
|
+
S.push((Ge + 256).toString(16).slice(1));
|
|
1150
1150
|
function ua(e, t = 0) {
|
|
1151
|
-
return (
|
|
1151
|
+
return (S[e[t + 0]] + S[e[t + 1]] + S[e[t + 2]] + S[e[t + 3]] + "-" + S[e[t + 4]] + S[e[t + 5]] + "-" + S[e[t + 6]] + S[e[t + 7]] + "-" + S[e[t + 8]] + S[e[t + 9]] + "-" + S[e[t + 10]] + S[e[t + 11]] + S[e[t + 12]] + S[e[t + 13]] + S[e[t + 14]] + S[e[t + 15]]).toLowerCase();
|
|
1152
1152
|
}
|
|
1153
1153
|
var ge, ma = new Uint8Array(16);
|
|
1154
1154
|
function ha() {
|
|
@@ -1167,10 +1167,10 @@ function We(e, t, r) {
|
|
|
1167
1167
|
var a = e.random || (e.rng || ha)();
|
|
1168
1168
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
|
|
1169
1169
|
}
|
|
1170
|
-
const X = "Your session has expired. For your security, please log in again to continue.", ga = "Your session has been successfully terminated.", Ve = "Login failed. Please try again.", fa = "Error getting access token, please re-authenticate.", ya = "You forgot to wrap your component in <AuthProvider>.",
|
|
1170
|
+
const X = "Your session has expired. For your security, please log in again to continue.", ga = "Your session has been successfully terminated.", Ve = "Login failed. Please try again.", fa = "Error getting access token, please re-authenticate.", ya = "You forgot to wrap your component in <AuthProvider>.", Ae = {
|
|
1171
1171
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1172
1172
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1173
|
-
}, fe = "@@auth@@", oe = "LOADING", we = "LOGIN", Mt = "LOGOUT",
|
|
1173
|
+
}, fe = "@@auth@@", oe = "LOADING", we = "LOGIN", Mt = "LOGOUT", le = "success", M = "failure", Ut = "include", Ht = "POST", Kt = "application/json", ye = {
|
|
1174
1174
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1175
1175
|
$clientId: String!,
|
|
1176
1176
|
$username: String!,
|
|
@@ -1232,14 +1232,16 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1232
1232
|
$authentication: AuthenticationOptionsInput!,
|
|
1233
1233
|
$nonce: String!,
|
|
1234
1234
|
$domain: String,
|
|
1235
|
-
$sessionExpiration: String
|
|
1235
|
+
$sessionExpiration: String,
|
|
1236
|
+
$ua: String) {
|
|
1236
1237
|
verifyPasskeyAuthentication(
|
|
1237
1238
|
clientId: $clientId,
|
|
1238
1239
|
id: $id,
|
|
1239
1240
|
authentication: $authentication,
|
|
1240
1241
|
nonce: $nonce,
|
|
1241
1242
|
domain: $domain,
|
|
1242
|
-
sessionExpiration: $sessionExpiration
|
|
1243
|
+
sessionExpiration: $sessionExpiration,
|
|
1244
|
+
ua: $ua) {
|
|
1243
1245
|
status,
|
|
1244
1246
|
idToken,
|
|
1245
1247
|
accessToken,
|
|
@@ -1272,28 +1274,28 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1272
1274
|
params: a = {}
|
|
1273
1275
|
}) => {
|
|
1274
1276
|
try {
|
|
1275
|
-
const n =
|
|
1276
|
-
Bt ? `${
|
|
1277
|
+
const n = `Bearer ${e}`, o = await fetch(
|
|
1278
|
+
Bt ? `${Ae.dev}/graphql` : `${Ae.prod}/graphql`,
|
|
1277
1279
|
{
|
|
1278
1280
|
credentials: Ut,
|
|
1279
1281
|
method: Ht,
|
|
1280
1282
|
headers: {
|
|
1281
|
-
authorization:
|
|
1283
|
+
authorization: n,
|
|
1282
1284
|
"Content-Type": Kt,
|
|
1283
1285
|
[kt.CLIENT_ID]: `${r}`
|
|
1284
1286
|
},
|
|
1285
1287
|
body: JSON.stringify({
|
|
1286
1288
|
query: t.schema,
|
|
1287
|
-
variables:
|
|
1289
|
+
variables: a
|
|
1288
1290
|
})
|
|
1289
1291
|
}
|
|
1290
1292
|
);
|
|
1291
|
-
if (
|
|
1293
|
+
if (o.status !== 200)
|
|
1292
1294
|
return { status: M, data: [] };
|
|
1293
|
-
const { data:
|
|
1295
|
+
const { data: s } = await o.json();
|
|
1294
1296
|
return {
|
|
1295
|
-
status:
|
|
1296
|
-
data:
|
|
1297
|
+
status: le,
|
|
1298
|
+
data: s[t.method]
|
|
1297
1299
|
};
|
|
1298
1300
|
} catch (n) {
|
|
1299
1301
|
return console.error(n), { status: M, data: [] };
|
|
@@ -1305,7 +1307,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1305
1307
|
}) => {
|
|
1306
1308
|
try {
|
|
1307
1309
|
const a = await fetch(
|
|
1308
|
-
Bt ? `${
|
|
1310
|
+
Bt ? `${Ae.dev}/${e}` : `${Ae.prod}/${e}`,
|
|
1309
1311
|
{
|
|
1310
1312
|
credentials: Ut,
|
|
1311
1313
|
method: Ht,
|
|
@@ -1320,7 +1322,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1320
1322
|
return { status: M, data: [] };
|
|
1321
1323
|
const { data: n } = await a.json();
|
|
1322
1324
|
return {
|
|
1323
|
-
status:
|
|
1325
|
+
status: le,
|
|
1324
1326
|
data: n || []
|
|
1325
1327
|
};
|
|
1326
1328
|
} catch (a) {
|
|
@@ -1370,11 +1372,12 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1370
1372
|
sessionExpiration: o,
|
|
1371
1373
|
code: s,
|
|
1372
1374
|
code_verifier: i,
|
|
1373
|
-
domain: u
|
|
1375
|
+
domain: u,
|
|
1376
|
+
ua: h
|
|
1374
1377
|
}) => {
|
|
1375
1378
|
var p;
|
|
1376
1379
|
try {
|
|
1377
|
-
const
|
|
1380
|
+
const m = await xe({
|
|
1378
1381
|
type: Re.LOGIN,
|
|
1379
1382
|
clientId: r,
|
|
1380
1383
|
params: {
|
|
@@ -1385,14 +1388,15 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1385
1388
|
nonce: a,
|
|
1386
1389
|
code: s,
|
|
1387
1390
|
code_verifier: i,
|
|
1388
|
-
domain: u
|
|
1391
|
+
domain: u,
|
|
1392
|
+
ua: h
|
|
1389
1393
|
}
|
|
1390
|
-
}),
|
|
1391
|
-
return
|
|
1392
|
-
idToken:
|
|
1393
|
-
accessToken:
|
|
1394
|
-
refreshToken:
|
|
1395
|
-
userId:
|
|
1394
|
+
}), d = await ie((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
|
|
1395
|
+
return d && d.payload[R.USER_ID_KEY] !== "" && d.payload[R.NONCE_KEY] === a ? {
|
|
1396
|
+
idToken: m.data.idToken,
|
|
1397
|
+
accessToken: m.data.accessToken,
|
|
1398
|
+
refreshToken: m.data.refreshToken,
|
|
1399
|
+
userId: d.payload[R.USER_ID_KEY],
|
|
1396
1400
|
status: !0
|
|
1397
1401
|
} : {
|
|
1398
1402
|
status: !1
|
|
@@ -1419,7 +1423,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1419
1423
|
}
|
|
1420
1424
|
});
|
|
1421
1425
|
return (a = n == null ? void 0 : n.data) != null && a.code ? {
|
|
1422
|
-
status:
|
|
1426
|
+
status: le,
|
|
1423
1427
|
data: n.data.code
|
|
1424
1428
|
} : {
|
|
1425
1429
|
status: M,
|
|
@@ -1431,7 +1435,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1431
1435
|
data: ""
|
|
1432
1436
|
};
|
|
1433
1437
|
}
|
|
1434
|
-
},
|
|
1438
|
+
}, va = async ({
|
|
1435
1439
|
clientId: e,
|
|
1436
1440
|
userId: t,
|
|
1437
1441
|
nonce: r,
|
|
@@ -1467,7 +1471,7 @@ const X = "Your session has expired. For your security, please log in again to c
|
|
|
1467
1471
|
};
|
|
1468
1472
|
}
|
|
1469
1473
|
};
|
|
1470
|
-
class
|
|
1474
|
+
class Sa {
|
|
1471
1475
|
constructor(t = null, r = null) {
|
|
1472
1476
|
Le(this, "refreshTokenPromise", null), Le(this, "accessToken"), Le(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
1473
1477
|
}
|
|
@@ -1497,7 +1501,7 @@ class Aa {
|
|
|
1497
1501
|
}) {
|
|
1498
1502
|
const o = await ie(this.refreshToken);
|
|
1499
1503
|
if (o && o.payload[R.USER_ID_KEY] !== "") {
|
|
1500
|
-
const s = await
|
|
1504
|
+
const s = await va({
|
|
1501
1505
|
clientId: t,
|
|
1502
1506
|
userId: r,
|
|
1503
1507
|
nonce: a,
|
|
@@ -1506,7 +1510,7 @@ class Aa {
|
|
|
1506
1510
|
domain: n
|
|
1507
1511
|
});
|
|
1508
1512
|
return s.status ? (this.accessToken = s.accessToken, this.refreshToken = s.refreshToken, {
|
|
1509
|
-
status:
|
|
1513
|
+
status: le,
|
|
1510
1514
|
newAccessToken: s.accessToken,
|
|
1511
1515
|
newRefreshToken: s.refreshToken
|
|
1512
1516
|
}) : {
|
|
@@ -1518,7 +1522,7 @@ class Aa {
|
|
|
1518
1522
|
};
|
|
1519
1523
|
}
|
|
1520
1524
|
}
|
|
1521
|
-
const
|
|
1525
|
+
const Aa = (e) => z(
|
|
1522
1526
|
(...t) => {
|
|
1523
1527
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
1524
1528
|
},
|
|
@@ -1564,9 +1568,9 @@ const va = (e) => z(
|
|
|
1564
1568
|
const [o, s] = ft(_a, {
|
|
1565
1569
|
...Gt,
|
|
1566
1570
|
debug: n
|
|
1567
|
-
}), i =
|
|
1571
|
+
}), i = Aa(n), u = W(!1), [h, p, , m] = pe({
|
|
1568
1572
|
key: `${fe}::${r}::@@user@@`
|
|
1569
|
-
}), [
|
|
1573
|
+
}), [d, l, , f] = pe({
|
|
1570
1574
|
key: `${fe}::${r}::@@access@@`
|
|
1571
1575
|
}), [E, _, , w] = pe(
|
|
1572
1576
|
{
|
|
@@ -1574,7 +1578,7 @@ const va = (e) => z(
|
|
|
1574
1578
|
}
|
|
1575
1579
|
), [U, H, , O] = pe({
|
|
1576
1580
|
key: `${fe}::${r}::@@nonce@@`
|
|
1577
|
-
}), ae = new
|
|
1581
|
+
}), ae = new Sa(d, E), P = z(() => {
|
|
1578
1582
|
i("removeLocalStorage: removing local storage"), m(), f(), w(), O();
|
|
1579
1583
|
}, [
|
|
1580
1584
|
f,
|
|
@@ -1598,7 +1602,7 @@ const va = (e) => z(
|
|
|
1598
1602
|
), x = z(
|
|
1599
1603
|
async (y) => {
|
|
1600
1604
|
i("invalidateAndLogout: invalidating and logging out");
|
|
1601
|
-
const { user: T } = o, b = (T == null ? void 0 : T.userId) || Ea(
|
|
1605
|
+
const { user: T } = o, b = (T == null ? void 0 : T.userId) || Ea(h);
|
|
1602
1606
|
b || i(
|
|
1603
1607
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1604
1608
|
), await wa({
|
|
@@ -1607,13 +1611,13 @@ const va = (e) => z(
|
|
|
1607
1611
|
domain: a
|
|
1608
1612
|
}), N(y || X);
|
|
1609
1613
|
},
|
|
1610
|
-
[
|
|
1614
|
+
[h, o, r, a, N, i]
|
|
1611
1615
|
);
|
|
1612
1616
|
j(() => {
|
|
1613
1617
|
if (!u.current)
|
|
1614
|
-
return o.isLoading &&
|
|
1618
|
+
return o.isLoading && h !== null ? (async () => {
|
|
1615
1619
|
try {
|
|
1616
|
-
const y = await ie(
|
|
1620
|
+
const y = await ie(h);
|
|
1617
1621
|
y && y.payload[R.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
|
|
1618
1622
|
type: we,
|
|
1619
1623
|
payload: {
|
|
@@ -1631,7 +1635,7 @@ const va = (e) => z(
|
|
|
1631
1635
|
})() : (i("useEffect: setting the loading state to false"), s({ type: oe, payload: { isLoading: !1 } })), () => {
|
|
1632
1636
|
u.current = !0;
|
|
1633
1637
|
};
|
|
1634
|
-
}, [o.isLoading,
|
|
1638
|
+
}, [o.isLoading, h, x, i]);
|
|
1635
1639
|
const D = async (y, T) => {
|
|
1636
1640
|
s({ type: oe, payload: { isLoading: !0 } }), P();
|
|
1637
1641
|
const b = We();
|
|
@@ -1651,9 +1655,10 @@ const va = (e) => z(
|
|
|
1651
1655
|
type: Q,
|
|
1652
1656
|
code: et.data,
|
|
1653
1657
|
code_verifier: rr,
|
|
1654
|
-
domain: a
|
|
1658
|
+
domain: a,
|
|
1659
|
+
ua: navigator.userAgent
|
|
1655
1660
|
});
|
|
1656
|
-
return ne.status ? (
|
|
1661
|
+
return ne.status ? (p(ne.idToken), l(ne.accessToken), _(ne.refreshToken), s({
|
|
1657
1662
|
type: we,
|
|
1658
1663
|
payload: {
|
|
1659
1664
|
user: {
|
|
@@ -1670,11 +1675,11 @@ const va = (e) => z(
|
|
|
1670
1675
|
const { isAuthenticated: y, user: T } = o;
|
|
1671
1676
|
try {
|
|
1672
1677
|
if (y && T && T.userId) {
|
|
1673
|
-
if (
|
|
1678
|
+
if (d) {
|
|
1674
1679
|
i("getAccessToken");
|
|
1675
|
-
const Q = await ie(
|
|
1680
|
+
const Q = await ie(d);
|
|
1676
1681
|
if (Q && Q.payload[R.USER_ID_KEY] !== "")
|
|
1677
|
-
return
|
|
1682
|
+
return d;
|
|
1678
1683
|
}
|
|
1679
1684
|
i("getAccessToken: invalid access token, trying to refresh it");
|
|
1680
1685
|
const b = await ae.refreshtoken({
|
|
@@ -1683,7 +1688,7 @@ const va = (e) => z(
|
|
|
1683
1688
|
nonce: U,
|
|
1684
1689
|
domain: a
|
|
1685
1690
|
});
|
|
1686
|
-
return b.status && b.status === "success" && b.newAccessToken ? (
|
|
1691
|
+
return b.status && b.status === "success" && b.newAccessToken ? (l(b.newAccessToken), _(b.newRefreshToken), b.newAccessToken) : (i(
|
|
1687
1692
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1688
1693
|
), await x(X), "");
|
|
1689
1694
|
}
|
|
@@ -1695,10 +1700,10 @@ const va = (e) => z(
|
|
|
1695
1700
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1696
1701
|
), await x(fa), "";
|
|
1697
1702
|
}
|
|
1698
|
-
}, C = () => o.isAuthenticated &&
|
|
1703
|
+
}, C = () => o.isAuthenticated && h ? h : "", K = async () => {
|
|
1699
1704
|
const { user: y } = o;
|
|
1700
1705
|
let T = await ee({
|
|
1701
|
-
accessToken:
|
|
1706
|
+
accessToken: d,
|
|
1702
1707
|
clientId: r,
|
|
1703
1708
|
type: Z.GET_REGISTRATION_OPTIONS,
|
|
1704
1709
|
params: {
|
|
@@ -1711,7 +1716,7 @@ const va = (e) => z(
|
|
|
1711
1716
|
try {
|
|
1712
1717
|
const b = await mr(T.data);
|
|
1713
1718
|
return T = await ee({
|
|
1714
|
-
accessToken:
|
|
1719
|
+
accessToken: d,
|
|
1715
1720
|
clientId: r,
|
|
1716
1721
|
type: Z.VERIFY_REGISTRATION,
|
|
1717
1722
|
params: {
|
|
@@ -1723,7 +1728,7 @@ const va = (e) => z(
|
|
|
1723
1728
|
}), !!(T.status && T.data.length > 0);
|
|
1724
1729
|
} catch {
|
|
1725
1730
|
return await ee({
|
|
1726
|
-
accessToken:
|
|
1731
|
+
accessToken: d,
|
|
1727
1732
|
clientId: r,
|
|
1728
1733
|
type: Z.VERIFY_REGISTRATION,
|
|
1729
1734
|
params: {
|
|
@@ -1741,7 +1746,7 @@ const va = (e) => z(
|
|
|
1741
1746
|
H(y), i("loginWithPasskey");
|
|
1742
1747
|
const T = We();
|
|
1743
1748
|
let b = await ee({
|
|
1744
|
-
accessToken:
|
|
1749
|
+
accessToken: d,
|
|
1745
1750
|
clientId: r,
|
|
1746
1751
|
type: Z.GET_AUTHENTICATION_OPTIONS,
|
|
1747
1752
|
params: {
|
|
@@ -1753,7 +1758,7 @@ const va = (e) => z(
|
|
|
1753
1758
|
try {
|
|
1754
1759
|
const Q = await gr(b.data);
|
|
1755
1760
|
return b = await ee({
|
|
1756
|
-
accessToken:
|
|
1761
|
+
accessToken: d,
|
|
1757
1762
|
clientId: r,
|
|
1758
1763
|
type: Z.VERIFY_AUTHENTICATION,
|
|
1759
1764
|
params: {
|
|
@@ -1762,9 +1767,10 @@ const va = (e) => z(
|
|
|
1762
1767
|
authentication: Q,
|
|
1763
1768
|
nonce: y,
|
|
1764
1769
|
domain: a,
|
|
1765
|
-
sessionExpiration: t
|
|
1770
|
+
sessionExpiration: t,
|
|
1771
|
+
ua: navigator.userAgent
|
|
1766
1772
|
}
|
|
1767
|
-
}), b.data.status ===
|
|
1773
|
+
}), b.data.status === le ? (p(b.data.idToken), l(b.data.accessToken), _(b.data.refreshToken), s({
|
|
1768
1774
|
type: we,
|
|
1769
1775
|
payload: {
|
|
1770
1776
|
user: {
|
|
@@ -1775,7 +1781,7 @@ const va = (e) => z(
|
|
|
1775
1781
|
}), !0) : (N(Ve), !1);
|
|
1776
1782
|
} catch {
|
|
1777
1783
|
return await ee({
|
|
1778
|
-
accessToken:
|
|
1784
|
+
accessToken: d,
|
|
1779
1785
|
clientId: r,
|
|
1780
1786
|
type: Z.VERIFY_AUTHENTICATION,
|
|
1781
1787
|
params: {
|
|
@@ -1805,7 +1811,7 @@ const va = (e) => z(
|
|
|
1805
1811
|
children: e
|
|
1806
1812
|
}
|
|
1807
1813
|
) });
|
|
1808
|
-
}, qe = (e = Wt) => yt(e),
|
|
1814
|
+
}, qe = (e = Wt) => yt(e), eo = "user", to = "assistant", ro = "system", ao = "internal", no = "hidden", oo = "I'm having trouble right now. Please try again later.", so = "gpt-4", io = 128e3, co = "action-message", lo = "action-reset", uo = "action-model", mo = "action-restore", ho = "action-location", po = "action-streaming", go = "action-search", fo = "action-sort", yo = "sassy-saint-", bo = "details", Eo = "search", wo = "sort", To = "location", Io = "==stats==", Na = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", mt = (e) => Number.isFinite(e) ? e : 0;
|
|
1809
1815
|
function xa(e) {
|
|
1810
1816
|
return {
|
|
1811
1817
|
days: Math.trunc(e / 864e5),
|
|
@@ -1849,25 +1855,25 @@ function Ma(e, t) {
|
|
|
1849
1855
|
const a = e < 0 ? "-" : "";
|
|
1850
1856
|
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);
|
|
1851
1857
|
let n = [];
|
|
1852
|
-
const o = (
|
|
1853
|
-
const
|
|
1854
|
-
return (Math.round(
|
|
1855
|
-
}, s = (
|
|
1856
|
-
if (!((n.length === 0 || !t.colonNotation) && Pa(
|
|
1857
|
-
if (
|
|
1858
|
-
const f =
|
|
1859
|
-
|
|
1858
|
+
const o = (p, m) => {
|
|
1859
|
+
const d = Math.floor(p * 10 ** m + $a);
|
|
1860
|
+
return (Math.round(d) / 10 ** m).toFixed(m);
|
|
1861
|
+
}, s = (p, m, d, l) => {
|
|
1862
|
+
if (!((n.length === 0 || !t.colonNotation) && Pa(p) && !(t.colonNotation && d === "m"))) {
|
|
1863
|
+
if (l ?? (l = String(p)), t.colonNotation) {
|
|
1864
|
+
const f = l.includes(".") ? l.split(".")[0].length : l.length, E = n.length > 0 ? 2 : 1;
|
|
1865
|
+
l = "0".repeat(Math.max(0, E - f)) + l;
|
|
1860
1866
|
} else
|
|
1861
|
-
|
|
1862
|
-
n.push(
|
|
1867
|
+
l += t.verbose ? " " + Da(m, p) : d;
|
|
1868
|
+
n.push(l);
|
|
1863
1869
|
}
|
|
1864
1870
|
}, i = Oa(e), u = BigInt(i.days);
|
|
1865
1871
|
if (s(u / 365n, "year", "y"), s(u % 365n, "day", "d"), s(Number(i.hours), "hour", "h"), s(Number(i.minutes), "minute", "m"), t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1866
|
-
const
|
|
1867
|
-
if (s(
|
|
1868
|
-
s(m, "millisecond", "ms"), s(
|
|
1872
|
+
const p = Number(i.seconds), m = Number(i.milliseconds), d = Number(i.microseconds), l = Number(i.nanoseconds);
|
|
1873
|
+
if (s(p, "second", "s"), t.formatSubMilliseconds)
|
|
1874
|
+
s(m, "millisecond", "ms"), s(d, "microsecond", "µs"), s(l, "nanosecond", "ns");
|
|
1869
1875
|
else {
|
|
1870
|
-
const f = m +
|
|
1876
|
+
const f = m + d / 1e3 + l / 1e6, E = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, _ = f >= 1 ? Math.round(f) : Math.ceil(f), w = E ? f.toFixed(E) : _;
|
|
1871
1877
|
s(
|
|
1872
1878
|
Number.parseFloat(w),
|
|
1873
1879
|
"millisecond",
|
|
@@ -1876,15 +1882,15 @@ function Ma(e, t) {
|
|
|
1876
1882
|
);
|
|
1877
1883
|
}
|
|
1878
1884
|
} else {
|
|
1879
|
-
const
|
|
1880
|
-
s(Number.parseFloat(
|
|
1885
|
+
const p = (r ? Number(e % La) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, d = o(p, m), l = t.keepDecimalsOnWholeSeconds ? d : d.replace(/\.0+$/, "");
|
|
1886
|
+
s(Number.parseFloat(l), "second", "s", l);
|
|
1881
1887
|
}
|
|
1882
1888
|
if (n.length === 0)
|
|
1883
1889
|
return a + "0" + (t.verbose ? " milliseconds" : "ms");
|
|
1884
|
-
const
|
|
1885
|
-
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(
|
|
1890
|
+
const h = t.colonNotation ? ":" : " ";
|
|
1891
|
+
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1886
1892
|
}
|
|
1887
|
-
const Ua = process.env.NODE_ENV === "production", Qe = !Ua, Ha = Qe ? "gizmette.local.com" : "gizmette.com",
|
|
1893
|
+
const Ua = process.env.NODE_ENV === "production", Qe = !Ua, Ha = Qe ? "gizmette.local.com" : "gizmette.com", vo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Vt = (e, t) => {
|
|
1888
1894
|
const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", a = 0 | Math.abs(e), n = 0 | Math.abs(e) * 60 % 60, o = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
|
|
1889
1895
|
return {
|
|
1890
1896
|
dir: r,
|
|
@@ -1892,17 +1898,17 @@ const Ua = process.env.NODE_ENV === "production", Qe = !Ua, Ha = Qe ? "gizmette.
|
|
|
1892
1898
|
min: n,
|
|
1893
1899
|
sec: o
|
|
1894
1900
|
};
|
|
1895
|
-
},
|
|
1901
|
+
}, So = (e) => {
|
|
1896
1902
|
if (!e && e !== 0)
|
|
1897
1903
|
return "N/A";
|
|
1898
1904
|
const t = Vt(e, !1);
|
|
1899
1905
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
1900
|
-
},
|
|
1906
|
+
}, Ao = (e) => {
|
|
1901
1907
|
if (!e && e !== 0)
|
|
1902
1908
|
return "N/A";
|
|
1903
1909
|
const t = Vt(e, !0);
|
|
1904
1910
|
return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
|
|
1905
|
-
},
|
|
1911
|
+
}, ko = async () => {
|
|
1906
1912
|
const e = {
|
|
1907
1913
|
/**
|
|
1908
1914
|
* A boolean value that indicates the application would
|
|
@@ -1951,11 +1957,11 @@ const Ua = process.env.NODE_ENV === "production", Qe = !Ua, Ha = Qe ? "gizmette.
|
|
|
1951
1957
|
e
|
|
1952
1958
|
);
|
|
1953
1959
|
});
|
|
1954
|
-
},
|
|
1960
|
+
}, _o = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ c("dl", { className: "my-0", children: /* @__PURE__ */ I("div", { className: "flex items-center justify-between", children: [
|
|
1955
1961
|
/* @__PURE__ */ c("dt", { className: "inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
1956
1962
|
/* @__PURE__ */ c("dd", { className: "inline-block", children: t[r] })
|
|
1957
1963
|
] }) }, `${e}-${r}`)) : null;
|
|
1958
|
-
function
|
|
1964
|
+
function Ro({
|
|
1959
1965
|
data: e,
|
|
1960
1966
|
formatter: t = (r) => r
|
|
1961
1967
|
}) {
|
|
@@ -1967,18 +1973,18 @@ function No({
|
|
|
1967
1973
|
);
|
|
1968
1974
|
return t(a ? a / r.length : 0);
|
|
1969
1975
|
}
|
|
1970
|
-
const
|
|
1976
|
+
const No = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, xo = new Intl.NumberFormat("en", {
|
|
1971
1977
|
style: "decimal",
|
|
1972
1978
|
signDisplay: "never",
|
|
1973
1979
|
minimumFractionDigits: 0,
|
|
1974
1980
|
maximumFractionDigits: 0
|
|
1975
|
-
}),
|
|
1981
|
+
}), Co = (e) => e > 0 ? Ma(e, {
|
|
1976
1982
|
secondsDecimalDigits: 2,
|
|
1977
1983
|
unitCount: 2
|
|
1978
1984
|
}) : "N/A", Ka = (e) => g(
|
|
1979
1985
|
"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",
|
|
1980
1986
|
e || Qe ? "pt-4" : "pt-10"
|
|
1981
|
-
),
|
|
1987
|
+
), Oo = (e, t) => t === 1 ? e : `${e}s`, Ce = (e) => {
|
|
1982
1988
|
let t = "";
|
|
1983
1989
|
if (typeof e == "number" || typeof e == "string")
|
|
1984
1990
|
t = "m-" + e;
|
|
@@ -1987,7 +1993,7 @@ const xo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
1987
1993
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
1988
1994
|
}
|
|
1989
1995
|
return t;
|
|
1990
|
-
},
|
|
1996
|
+
}, Po = "av-bubble", ht = "av-button", Te = "av-card", Ba = "av-footer", Ga = "av-main", Do = "av-messagebox", $o = "av-panel", Lo = "av-spinner", Jt = "icon", Ft = "button", Wa = "link", Va = ({
|
|
1991
1997
|
type: e,
|
|
1992
1998
|
size: t,
|
|
1993
1999
|
labelRight: r,
|
|
@@ -2152,23 +2158,23 @@ const xo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2152
2158
|
fullWidth: s,
|
|
2153
2159
|
size: i,
|
|
2154
2160
|
noBorder: u,
|
|
2155
|
-
labelRight:
|
|
2156
|
-
labelLeft:
|
|
2161
|
+
labelRight: h,
|
|
2162
|
+
labelLeft: p,
|
|
2157
2163
|
spacing: m,
|
|
2158
|
-
noBackground:
|
|
2159
|
-
variant:
|
|
2164
|
+
noBackground: d,
|
|
2165
|
+
variant: l,
|
|
2160
2166
|
noTruncate: f,
|
|
2161
2167
|
align: E
|
|
2162
|
-
}) => (
|
|
2168
|
+
}) => (l || (l = "primary"), r ? g(ht, t) : g(
|
|
2163
2169
|
ht,
|
|
2164
2170
|
t,
|
|
2165
2171
|
Ce(m),
|
|
2166
|
-
Ja({ mode: a, variant:
|
|
2167
|
-
Va({ type: e, size: i, labelRight:
|
|
2168
|
-
za({ mode: a, variant:
|
|
2172
|
+
Ja({ mode: a, variant: l, noBackground: d, noTruncate: f }),
|
|
2173
|
+
Va({ type: e, size: i, labelRight: h, labelLeft: p, align: E }),
|
|
2174
|
+
za({ mode: a, variant: l, noBorder: u }),
|
|
2169
2175
|
ja({ focusMode: n }),
|
|
2170
|
-
Fa({ mode: a, variant:
|
|
2171
|
-
Ya({ mode: a, variant:
|
|
2176
|
+
Fa({ mode: a, variant: l, disabled: o }),
|
|
2177
|
+
Ya({ mode: a, variant: l, disabled: o }),
|
|
2172
2178
|
{
|
|
2173
2179
|
"w-full": s,
|
|
2174
2180
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -2203,11 +2209,11 @@ const Ye = V.forwardRef(
|
|
|
2203
2209
|
type: s = "button",
|
|
2204
2210
|
raw: i = !1,
|
|
2205
2211
|
noBorder: u = !1,
|
|
2206
|
-
"aria-label":
|
|
2207
|
-
label:
|
|
2212
|
+
"aria-label": h,
|
|
2213
|
+
label: p,
|
|
2208
2214
|
size: m = "medium",
|
|
2209
|
-
labelRight:
|
|
2210
|
-
labelLeft:
|
|
2215
|
+
labelRight: d,
|
|
2216
|
+
labelLeft: l,
|
|
2211
2217
|
spacing: f,
|
|
2212
2218
|
noBackground: E = !1,
|
|
2213
2219
|
align: _ = "center",
|
|
@@ -2223,8 +2229,8 @@ const Ye = V.forwardRef(
|
|
|
2223
2229
|
className: o,
|
|
2224
2230
|
noBorder: u,
|
|
2225
2231
|
size: m,
|
|
2226
|
-
labelRight:
|
|
2227
|
-
labelLeft:
|
|
2232
|
+
labelRight: d,
|
|
2233
|
+
labelLeft: l,
|
|
2228
2234
|
spacing: f,
|
|
2229
2235
|
noBackground: E,
|
|
2230
2236
|
align: _
|
|
@@ -2241,12 +2247,12 @@ const Ye = V.forwardRef(
|
|
|
2241
2247
|
className: H,
|
|
2242
2248
|
disabled: t,
|
|
2243
2249
|
type: s,
|
|
2244
|
-
"aria-label":
|
|
2250
|
+
"aria-label": h || p,
|
|
2245
2251
|
...w,
|
|
2246
2252
|
children: [
|
|
2247
|
-
|
|
2253
|
+
l && /* @__PURE__ */ c("span", { className: "pr-2", children: l }),
|
|
2248
2254
|
/* @__PURE__ */ c("div", { className: O, children: e }),
|
|
2249
|
-
|
|
2255
|
+
d && /* @__PURE__ */ c("span", { className: "pl-2", children: d })
|
|
2250
2256
|
]
|
|
2251
2257
|
}
|
|
2252
2258
|
);
|
|
@@ -2264,11 +2270,11 @@ const zt = V.forwardRef(
|
|
|
2264
2270
|
size: s = "medium",
|
|
2265
2271
|
raw: i = !1,
|
|
2266
2272
|
noBorder: u = !1,
|
|
2267
|
-
spacing:
|
|
2268
|
-
variant:
|
|
2273
|
+
spacing: h,
|
|
2274
|
+
variant: p = "primary",
|
|
2269
2275
|
noTruncate: m = !1,
|
|
2270
|
-
...
|
|
2271
|
-
},
|
|
2276
|
+
...d
|
|
2277
|
+
}, l) => {
|
|
2272
2278
|
const f = Yt({
|
|
2273
2279
|
type: Ft,
|
|
2274
2280
|
mode: r,
|
|
@@ -2279,17 +2285,17 @@ const zt = V.forwardRef(
|
|
|
2279
2285
|
className: o,
|
|
2280
2286
|
size: s,
|
|
2281
2287
|
noBorder: u,
|
|
2282
|
-
spacing:
|
|
2283
|
-
variant:
|
|
2288
|
+
spacing: h,
|
|
2289
|
+
variant: p,
|
|
2284
2290
|
noTruncate: m
|
|
2285
2291
|
});
|
|
2286
2292
|
return /* @__PURE__ */ c(
|
|
2287
2293
|
Xe,
|
|
2288
2294
|
{
|
|
2289
|
-
ref:
|
|
2295
|
+
ref: l,
|
|
2290
2296
|
className: f,
|
|
2291
2297
|
disabled: t,
|
|
2292
|
-
...
|
|
2298
|
+
...d,
|
|
2293
2299
|
children: e
|
|
2294
2300
|
}
|
|
2295
2301
|
);
|
|
@@ -2326,7 +2332,7 @@ const Xa = ({
|
|
|
2326
2332
|
"border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": o === "system",
|
|
2327
2333
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": o === "alt-system"
|
|
2328
2334
|
}
|
|
2329
|
-
),
|
|
2335
|
+
), h = t || g(`${Te}__header mt-0 border-b-2`, {
|
|
2330
2336
|
"text-copy-light border-border-accent": o === "darker",
|
|
2331
2337
|
"border-border-accent": o === "dark",
|
|
2332
2338
|
"border-border-medium": o === "light",
|
|
@@ -2334,11 +2340,11 @@ const Xa = ({
|
|
|
2334
2340
|
"border-border-accent dark:border-border-medium": o === "alt-system",
|
|
2335
2341
|
"mb-4": !s,
|
|
2336
2342
|
"mb-2": s
|
|
2337
|
-
}),
|
|
2343
|
+
}), p = g(r), m = a || g(`${Te}__footer pt-2`);
|
|
2338
2344
|
return {
|
|
2339
2345
|
wrapper: u,
|
|
2340
|
-
header:
|
|
2341
|
-
body:
|
|
2346
|
+
header: h,
|
|
2347
|
+
body: p,
|
|
2342
2348
|
footer: m
|
|
2343
2349
|
};
|
|
2344
2350
|
};
|
|
@@ -2360,35 +2366,35 @@ const en = ({
|
|
|
2360
2366
|
bodyClassName: s,
|
|
2361
2367
|
"aria-labelledby": i,
|
|
2362
2368
|
spacing: u,
|
|
2363
|
-
mode:
|
|
2364
|
-
compact:
|
|
2369
|
+
mode: h = "system",
|
|
2370
|
+
compact: p = !1,
|
|
2365
2371
|
noBorder: m = !1,
|
|
2366
|
-
...
|
|
2372
|
+
...d
|
|
2367
2373
|
}) => {
|
|
2368
|
-
let
|
|
2374
|
+
let l = null, f = null;
|
|
2369
2375
|
const E = typeof e == "string", _ = Qa(Te), w = Xa({
|
|
2370
2376
|
className: o,
|
|
2371
2377
|
headerClassName: t,
|
|
2372
2378
|
bodyClassName: s,
|
|
2373
2379
|
footerClassName: a,
|
|
2374
2380
|
spacing: u,
|
|
2375
|
-
mode:
|
|
2376
|
-
compact:
|
|
2381
|
+
mode: h,
|
|
2382
|
+
compact: p,
|
|
2377
2383
|
noBorder: m
|
|
2378
2384
|
});
|
|
2379
|
-
return E ? (
|
|
2385
|
+
return E ? (l = _, f = l) : !E && e && i ? (l = null, f = i) : !E && e && !i ? (l = _, f = l) : (l = null, f = i || null), /* @__PURE__ */ c("div", { className: w.wrapper, children: /* @__PURE__ */ I(
|
|
2380
2386
|
"section",
|
|
2381
2387
|
{
|
|
2382
2388
|
...f && {
|
|
2383
2389
|
"aria-labelledby": f
|
|
2384
2390
|
},
|
|
2385
2391
|
className: w.body,
|
|
2386
|
-
...
|
|
2392
|
+
...d,
|
|
2387
2393
|
children: [
|
|
2388
2394
|
/* @__PURE__ */ c(
|
|
2389
2395
|
Za,
|
|
2390
2396
|
{
|
|
2391
|
-
...
|
|
2397
|
+
...l && { id: l },
|
|
2392
2398
|
content: e,
|
|
2393
2399
|
className: w.header,
|
|
2394
2400
|
userAriaLabelledby: i
|
|
@@ -2432,13 +2438,13 @@ const en = ({
|
|
|
2432
2438
|
return /* @__PURE__ */ c("main", { className: n, children: e });
|
|
2433
2439
|
};
|
|
2434
2440
|
/*!
|
|
2435
|
-
@versini/ui-components v5.21.
|
|
2441
|
+
@versini/ui-components v5.21.2
|
|
2436
2442
|
© 2024 gizmette.com
|
|
2437
2443
|
*/
|
|
2438
2444
|
try {
|
|
2439
2445
|
window.__VERSINI_UI_GLOBAL__ || (window.__VERSINI_UI_GLOBAL__ = {
|
|
2440
|
-
version: "5.21.
|
|
2441
|
-
buildTime: "08/
|
|
2446
|
+
version: "5.21.2",
|
|
2447
|
+
buildTime: "08/25/2024 02:12 PM EDT",
|
|
2442
2448
|
homepage: "https://github.com/aversini/ui-components",
|
|
2443
2449
|
license: "MIT"
|
|
2444
2450
|
});
|
|
@@ -2510,7 +2516,7 @@ const jt = "SET_ANNOUNCEMENT", qt = "CLEAR_ANNOUNCEMENT", on = {
|
|
|
2510
2516
|
}),
|
|
2511
2517
|
t
|
|
2512
2518
|
));
|
|
2513
|
-
},
|
|
2519
|
+
}, dn = ({
|
|
2514
2520
|
children: e,
|
|
2515
2521
|
announcementTimeoutRef: t,
|
|
2516
2522
|
announcementDelay: r,
|
|
@@ -2544,19 +2550,19 @@ function Qt({
|
|
|
2544
2550
|
visible: i,
|
|
2545
2551
|
...u
|
|
2546
2552
|
}) {
|
|
2547
|
-
const
|
|
2553
|
+
const h = W(), p = W(), [m, d] = ft(sn, {
|
|
2548
2554
|
announcement: null
|
|
2549
2555
|
});
|
|
2550
|
-
let
|
|
2551
|
-
typeof
|
|
2552
|
-
|
|
2553
|
-
announcementTimeoutRef:
|
|
2556
|
+
let l = r;
|
|
2557
|
+
typeof l > "u" && (l = a ? on[a] : "assertive"), j(() => {
|
|
2558
|
+
dn({
|
|
2559
|
+
announcementTimeoutRef: h,
|
|
2554
2560
|
announcementDelay: n,
|
|
2555
2561
|
children: e,
|
|
2556
2562
|
clearAnnouncementDelay: o,
|
|
2557
|
-
clearAnnouncementTimeoutRef:
|
|
2563
|
+
clearAnnouncementTimeoutRef: p,
|
|
2558
2564
|
onAnnouncementClear: s,
|
|
2559
|
-
dispatch:
|
|
2565
|
+
dispatch: d
|
|
2560
2566
|
});
|
|
2561
2567
|
}, [
|
|
2562
2568
|
e,
|
|
@@ -2570,7 +2576,7 @@ function Qt({
|
|
|
2570
2576
|
return /* @__PURE__ */ c(
|
|
2571
2577
|
"div",
|
|
2572
2578
|
{
|
|
2573
|
-
"aria-live":
|
|
2579
|
+
"aria-live": l,
|
|
2574
2580
|
...a && { role: a },
|
|
2575
2581
|
className: f,
|
|
2576
2582
|
...u,
|
|
@@ -2591,7 +2597,7 @@ try {
|
|
|
2591
2597
|
});
|
|
2592
2598
|
} catch {
|
|
2593
2599
|
}
|
|
2594
|
-
const
|
|
2600
|
+
const ln = (e) => {
|
|
2595
2601
|
let t = "";
|
|
2596
2602
|
if (typeof e == "number" || typeof e == "string")
|
|
2597
2603
|
t = "m-" + e;
|
|
@@ -2600,7 +2606,7 @@ const dn = (e) => {
|
|
|
2600
2606
|
(e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
|
|
2601
2607
|
}
|
|
2602
2608
|
return t;
|
|
2603
|
-
}, Xt = "av-text-input", un = "av-text-input-wrapper", Je = "av-text-input-helper-text",
|
|
2609
|
+
}, Xt = "av-text-input", un = "av-text-input-wrapper", Je = "av-text-input-helper-text", Mo = "av-text-area", Uo = "av-text-area-wrapper", Ho = "av-text-area-helper-text", Ko = "av-text-area__control--right", Bo = "av-toggle";
|
|
2604
2610
|
function mn() {
|
|
2605
2611
|
const e = W(!1);
|
|
2606
2612
|
return j(() => (e.current = !0, () => {
|
|
@@ -2715,12 +2721,12 @@ const gn = ({
|
|
|
2715
2721
|
mode: i,
|
|
2716
2722
|
focusMode: u
|
|
2717
2723
|
}) => {
|
|
2718
|
-
const
|
|
2724
|
+
const h = r ? e : g(
|
|
2719
2725
|
"relative flex w-full flex-col justify-center",
|
|
2720
2726
|
un,
|
|
2721
2727
|
e,
|
|
2722
|
-
|
|
2723
|
-
),
|
|
2728
|
+
ln(s)
|
|
2729
|
+
), p = r ? g(t) : g(
|
|
2724
2730
|
Xt,
|
|
2725
2731
|
t,
|
|
2726
2732
|
"h-12 rounded-md px-4 text-base",
|
|
@@ -2730,23 +2736,23 @@ const gn = ({
|
|
|
2730
2736
|
{
|
|
2731
2737
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
2732
2738
|
}
|
|
2733
|
-
), m = r ? void 0 : "sr-only",
|
|
2739
|
+
), m = r ? void 0 : "sr-only", d = bn({
|
|
2734
2740
|
disabled: a,
|
|
2735
2741
|
raw: r,
|
|
2736
2742
|
error: o,
|
|
2737
2743
|
mode: i
|
|
2738
|
-
}),
|
|
2744
|
+
}), l = En({
|
|
2739
2745
|
error: o,
|
|
2740
2746
|
raw: r,
|
|
2741
2747
|
mode: i,
|
|
2742
2748
|
disabled: a
|
|
2743
2749
|
});
|
|
2744
2750
|
return {
|
|
2745
|
-
wrapper:
|
|
2746
|
-
input:
|
|
2751
|
+
wrapper: h,
|
|
2752
|
+
input: p,
|
|
2747
2753
|
accessibleLabel: m,
|
|
2748
|
-
visibleLabel:
|
|
2749
|
-
helperText:
|
|
2754
|
+
visibleLabel: d,
|
|
2755
|
+
helperText: l,
|
|
2750
2756
|
rightElement: r ? void 0 : "absolute right-3"
|
|
2751
2757
|
};
|
|
2752
2758
|
}, Ze = V.forwardRef(
|
|
@@ -2760,11 +2766,11 @@ const gn = ({
|
|
|
2760
2766
|
inputClassName: s,
|
|
2761
2767
|
mode: i = "system",
|
|
2762
2768
|
focusMode: u = "system",
|
|
2763
|
-
disabled:
|
|
2764
|
-
noBorder:
|
|
2769
|
+
disabled: h = !1,
|
|
2770
|
+
noBorder: p = !1,
|
|
2765
2771
|
labelId: m,
|
|
2766
|
-
labelHidden:
|
|
2767
|
-
type:
|
|
2772
|
+
labelHidden: d = !1,
|
|
2773
|
+
type: l = "text",
|
|
2768
2774
|
helperText: f = "",
|
|
2769
2775
|
rightElement: E,
|
|
2770
2776
|
spacing: _,
|
|
@@ -2776,8 +2782,8 @@ const gn = ({
|
|
|
2776
2782
|
error: a,
|
|
2777
2783
|
raw: n,
|
|
2778
2784
|
focusMode: u,
|
|
2779
|
-
disabled:
|
|
2780
|
-
noBorder:
|
|
2785
|
+
disabled: h,
|
|
2786
|
+
noBorder: p,
|
|
2781
2787
|
spacing: _,
|
|
2782
2788
|
mode: i
|
|
2783
2789
|
});
|
|
@@ -2799,8 +2805,8 @@ const gn = ({
|
|
|
2799
2805
|
ref: U,
|
|
2800
2806
|
id: N,
|
|
2801
2807
|
name: t,
|
|
2802
|
-
type:
|
|
2803
|
-
disabled:
|
|
2808
|
+
type: l,
|
|
2809
|
+
disabled: h,
|
|
2804
2810
|
placeholder: n ? void 0 : " ",
|
|
2805
2811
|
className: D.input,
|
|
2806
2812
|
...f && { "aria-describedby": `${N}-helper` },
|
|
@@ -2809,7 +2815,7 @@ const gn = ({
|
|
|
2809
2815
|
...w
|
|
2810
2816
|
}
|
|
2811
2817
|
),
|
|
2812
|
-
!n && !
|
|
2818
|
+
!n && !d && /* @__PURE__ */ c(
|
|
2813
2819
|
"label",
|
|
2814
2820
|
{
|
|
2815
2821
|
"aria-hidden": !0,
|
|
@@ -2839,7 +2845,7 @@ const gn = ({
|
|
|
2839
2845
|
}
|
|
2840
2846
|
);
|
|
2841
2847
|
Ze.displayName = "TextInput";
|
|
2842
|
-
const Tn = 500, In = 5e3,
|
|
2848
|
+
const Tn = 500, In = 5e3, vn = 2e4, Zt = V.forwardRef(
|
|
2843
2849
|
({
|
|
2844
2850
|
name: e,
|
|
2845
2851
|
disabled: t,
|
|
@@ -2850,21 +2856,21 @@ const Tn = 500, In = 5e3, Sn = 2e4, Zt = V.forwardRef(
|
|
|
2850
2856
|
onBlur: s,
|
|
2851
2857
|
onFocus: i,
|
|
2852
2858
|
onTextInputMaskBlur: u,
|
|
2853
|
-
rightElement:
|
|
2854
|
-
spacing:
|
|
2859
|
+
rightElement: h,
|
|
2860
|
+
spacing: p,
|
|
2855
2861
|
...m
|
|
2856
|
-
},
|
|
2857
|
-
const [
|
|
2862
|
+
}, d) => {
|
|
2863
|
+
const [l, f] = F(!0), [E, _] = F({
|
|
2858
2864
|
message: null,
|
|
2859
2865
|
politeness: null
|
|
2860
|
-
}), w = W(!0), U = W(), H = W(null), O = an([
|
|
2866
|
+
}), w = W(!0), U = W(), H = W(null), O = an([d, H]), ae = l ? "Show" : "Hide", P = () => {
|
|
2861
2867
|
clearTimeout(U.current), w.current || (U.current = window.setTimeout(() => {
|
|
2862
2868
|
w.current = !0, f(!0), _({
|
|
2863
2869
|
announcementTimeout: In,
|
|
2864
2870
|
politeness: "polite",
|
|
2865
2871
|
message: `${r} hiding characters`
|
|
2866
2872
|
}), n && n(!0);
|
|
2867
|
-
},
|
|
2873
|
+
}, vn));
|
|
2868
2874
|
}, N = (C) => {
|
|
2869
2875
|
C.preventDefault();
|
|
2870
2876
|
const K = !w.current;
|
|
@@ -2894,14 +2900,14 @@ const Tn = 500, In = 5e3, Sn = 2e4, Zt = V.forwardRef(
|
|
|
2894
2900
|
name: e,
|
|
2895
2901
|
label: r,
|
|
2896
2902
|
labelHidden: a,
|
|
2897
|
-
type:
|
|
2903
|
+
type: l ? "password" : "text",
|
|
2898
2904
|
disabled: t,
|
|
2899
|
-
spacing:
|
|
2905
|
+
spacing: p,
|
|
2900
2906
|
onBlur: D,
|
|
2901
2907
|
onFocus: Pe,
|
|
2902
2908
|
onChange: De,
|
|
2903
|
-
rightElement: V.cloneElement(
|
|
2904
|
-
ref:
|
|
2909
|
+
rightElement: V.cloneElement(h, {
|
|
2910
|
+
ref: d,
|
|
2905
2911
|
label: ae,
|
|
2906
2912
|
onClick: N,
|
|
2907
2913
|
onBlur: x,
|
|
@@ -2936,7 +2942,7 @@ try {
|
|
|
2936
2942
|
});
|
|
2937
2943
|
} catch {
|
|
2938
2944
|
}
|
|
2939
|
-
const
|
|
2945
|
+
const Sn = (e) => {
|
|
2940
2946
|
let t = "";
|
|
2941
2947
|
if (typeof e == "number" || typeof e == "string")
|
|
2942
2948
|
t = "m-" + e;
|
|
@@ -2955,10 +2961,10 @@ const An = (e) => {
|
|
|
2955
2961
|
spacing: s,
|
|
2956
2962
|
title: i,
|
|
2957
2963
|
semantic: u = !1,
|
|
2958
|
-
...
|
|
2964
|
+
...h
|
|
2959
2965
|
}) => {
|
|
2960
|
-
const
|
|
2961
|
-
|
|
2966
|
+
const p = Sn(s), m = g(
|
|
2967
|
+
p,
|
|
2962
2968
|
a || o
|
|
2963
2969
|
);
|
|
2964
2970
|
return /* @__PURE__ */ I(ce, { children: [
|
|
@@ -2972,7 +2978,7 @@ const An = (e) => {
|
|
|
2972
2978
|
role: "img",
|
|
2973
2979
|
"aria-hidden": !u,
|
|
2974
2980
|
focusable: !1,
|
|
2975
|
-
...
|
|
2981
|
+
...h,
|
|
2976
2982
|
children: e
|
|
2977
2983
|
}
|
|
2978
2984
|
),
|
|
@@ -2992,7 +2998,7 @@ try {
|
|
|
2992
2998
|
});
|
|
2993
2999
|
} catch {
|
|
2994
3000
|
}
|
|
2995
|
-
const
|
|
3001
|
+
const An = ({
|
|
2996
3002
|
className: e,
|
|
2997
3003
|
viewBox: t,
|
|
2998
3004
|
spacing: r,
|
|
@@ -3144,8 +3150,8 @@ const Nn = (e) => {
|
|
|
3144
3150
|
direction: s = "row",
|
|
3145
3151
|
alignHorizontal: i = "normal",
|
|
3146
3152
|
alignVertical: u = "normal",
|
|
3147
|
-
spacing:
|
|
3148
|
-
...
|
|
3153
|
+
spacing: h,
|
|
3154
|
+
...p
|
|
3149
3155
|
}) => {
|
|
3150
3156
|
const m = {
|
|
3151
3157
|
flexDirection: s,
|
|
@@ -3160,12 +3166,12 @@ const Nn = (e) => {
|
|
|
3160
3166
|
*/
|
|
3161
3167
|
marginLeft: r * -1 * ke + "rem",
|
|
3162
3168
|
marginTop: a * -1 * ke + "rem"
|
|
3163
|
-
},
|
|
3169
|
+
}, d = g(
|
|
3164
3170
|
xn,
|
|
3165
3171
|
t,
|
|
3166
3172
|
"box-border flex flex-wrap"
|
|
3167
|
-
),
|
|
3168
|
-
return /* @__PURE__ */ c(f, { ...
|
|
3173
|
+
), l = { columnGap: r, rowGap: a }, f = h ? "div" : V.Fragment;
|
|
3174
|
+
return /* @__PURE__ */ c(f, { ...h ? { className: Nn(h) } : {}, children: /* @__PURE__ */ c("div", { className: d, style: m, ...p, children: /* @__PURE__ */ c(er.Provider, { value: l, children: e }) }) });
|
|
3169
3175
|
}, Fe = (e, t) => g({
|
|
3170
3176
|
"basis-1/12": e === 1 && !t,
|
|
3171
3177
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
@@ -3278,19 +3284,19 @@ const Nn = (e) => {
|
|
|
3278
3284
|
return /* @__PURE__ */ c("div", { className: i, style: s, ...a, children: e });
|
|
3279
3285
|
};
|
|
3280
3286
|
/*!
|
|
3281
|
-
@versini/ui-system v1.4.
|
|
3287
|
+
@versini/ui-system v1.4.4
|
|
3282
3288
|
© 2024 gizmette.com
|
|
3283
3289
|
*/
|
|
3284
3290
|
try {
|
|
3285
3291
|
window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
|
|
3286
|
-
version: "1.4.
|
|
3287
|
-
buildTime: "08/
|
|
3292
|
+
version: "1.4.4",
|
|
3293
|
+
buildTime: "08/25/2024 02:12 PM EDT",
|
|
3288
3294
|
homepage: "https://github.com/aversini/ui-components",
|
|
3289
3295
|
license: "MIT"
|
|
3290
3296
|
});
|
|
3291
3297
|
} catch {
|
|
3292
3298
|
}
|
|
3293
|
-
const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "Log in", $n = "Sign in with a Passkey",
|
|
3299
|
+
const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "Log in", $n = "Sign in with a Passkey", Go = "Log out", Ln = "Password", Mn = "Powered by OpenAI", Wo = "Send", Vo = "Profile", Jo = "Statistics", Fo = "Chat history", Yo = "About", zo = "Type your question here", jo = "Clear chat", qo = "Cancel chat", Qo = "N/A", Xo = {
|
|
3294
3300
|
PREFERENCES: {
|
|
3295
3301
|
TITLE: "User preferences",
|
|
3296
3302
|
NAME: "Name",
|
|
@@ -3331,7 +3337,7 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3331
3337
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3332
3338
|
tr,
|
|
3333
3339
|
" v",
|
|
3334
|
-
"4.0.
|
|
3340
|
+
"4.0.2",
|
|
3335
3341
|
" - ",
|
|
3336
3342
|
Mn,
|
|
3337
3343
|
Qe && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
@@ -3343,12 +3349,12 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3343
3349
|
Pn
|
|
3344
3350
|
] })
|
|
3345
3351
|
}
|
|
3346
|
-
), Hn = wt(() => import("./LazyHeader.
|
|
3352
|
+
), Hn = wt(() => import("./LazyHeader.BLLQsxSA.js")), Kn = () => {
|
|
3347
3353
|
const { isAuthenticated: e } = qe();
|
|
3348
3354
|
return /* @__PURE__ */ I(ce, { children: [
|
|
3349
3355
|
e && /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Hn, {}) }),
|
|
3350
3356
|
/* @__PURE__ */ I("div", { className: "flex items-center justify-center", children: [
|
|
3351
|
-
/* @__PURE__ */ c("div", { className: "basis-1/4", children: /* @__PURE__ */ c(
|
|
3357
|
+
/* @__PURE__ */ c("div", { className: "basis-1/4", children: /* @__PURE__ */ c(An, {}) }),
|
|
3352
3358
|
/* @__PURE__ */ I("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3353
3359
|
/* @__PURE__ */ c("h1", { children: tr }),
|
|
3354
3360
|
/* @__PURE__ */ c("h2", { children: On })
|
|
@@ -3356,17 +3362,17 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3356
3362
|
] })
|
|
3357
3363
|
] });
|
|
3358
3364
|
}, Bn = () => {
|
|
3359
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } = qe(), [a, n] = F(""), [o, s] = F(""), [i, u] = F(!0), [
|
|
3365
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = qe(), [a, n] = F(""), [o, s] = F(""), [i, u] = F(!0), [h, p] = F({
|
|
3360
3366
|
username: "",
|
|
3361
3367
|
password: ""
|
|
3362
|
-
}), m = async (
|
|
3363
|
-
|
|
3368
|
+
}), m = async (d) => {
|
|
3369
|
+
d.preventDefault(), await e(h.username, h.password) || (s(""), n("Invalid username or password"));
|
|
3364
3370
|
};
|
|
3365
3371
|
return j(() => {
|
|
3366
|
-
var
|
|
3367
|
-
(
|
|
3368
|
-
var
|
|
3369
|
-
(
|
|
3372
|
+
var d;
|
|
3373
|
+
(d = document.getElementById("logo")) == null || d.classList.add("fadeOut"), setTimeout(() => {
|
|
3374
|
+
var l;
|
|
3375
|
+
(l = document.getElementById("root")) == null || l.classList.replace("app-hidden", "fadeIn");
|
|
3370
3376
|
}, 500);
|
|
3371
3377
|
}), j(() => {
|
|
3372
3378
|
t && s(t);
|
|
@@ -3387,10 +3393,10 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3387
3393
|
focusMode: "light",
|
|
3388
3394
|
name: "username",
|
|
3389
3395
|
label: "Username",
|
|
3390
|
-
onChange: (
|
|
3391
|
-
|
|
3392
|
-
...
|
|
3393
|
-
username:
|
|
3396
|
+
onChange: (d) => {
|
|
3397
|
+
p({
|
|
3398
|
+
...h,
|
|
3399
|
+
username: d.target.value
|
|
3394
3400
|
}), n("");
|
|
3395
3401
|
},
|
|
3396
3402
|
error: a !== ""
|
|
@@ -3409,10 +3415,10 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3409
3415
|
label: Ln,
|
|
3410
3416
|
rightElement: /* @__PURE__ */ c(Ye, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ c(Rn, {}) : /* @__PURE__ */ c(kn, {}) }),
|
|
3411
3417
|
onMaskChange: u,
|
|
3412
|
-
onChange: (
|
|
3413
|
-
|
|
3414
|
-
...
|
|
3415
|
-
password:
|
|
3418
|
+
onChange: (d) => {
|
|
3419
|
+
p({
|
|
3420
|
+
...h,
|
|
3421
|
+
password: d.target.value
|
|
3416
3422
|
}), n("");
|
|
3417
3423
|
},
|
|
3418
3424
|
error: a !== "",
|
|
@@ -3450,87 +3456,86 @@ const On = "ASK! ME! ANYTHING!", tr = "Sassy Saint", Pn = "gizmette.com", Dn = "
|
|
|
3450
3456
|
] }),
|
|
3451
3457
|
/* @__PURE__ */ c(Un, {})
|
|
3452
3458
|
] });
|
|
3453
|
-
}, Gn = new URL(document.location.href).searchParams, Wn = !!Gn.get("debug") || !1, Vn = wt(() => import("./App.
|
|
3459
|
+
}, Gn = new URL(document.location.href).searchParams, Wn = !!Gn.get("debug") || !1, Vn = wt(() => import("./App.CB-l5VXS.js").then((e) => e.App)), Jn = ({ isComponent: e }) => {
|
|
3454
3460
|
const { isAuthenticated: t } = qe();
|
|
3455
3461
|
return t ? /* @__PURE__ */ c(Tt, { fallback: /* @__PURE__ */ c("div", {}), children: /* @__PURE__ */ c(Vn, { isComponent: e }) }) : /* @__PURE__ */ c(Bn, {});
|
|
3456
3462
|
}, Fn = ({
|
|
3457
3463
|
isComponent: e = !1,
|
|
3458
3464
|
domain: t = Ha
|
|
3459
|
-
}) => /* @__PURE__ */ c(ce, { children: /* @__PURE__ */ c(Ra, { clientId: Na, domain: t, debug: Wn, children: /* @__PURE__ */ c(Jn, { isComponent: e }) }) }),
|
|
3460
|
-
Yn.displayName = "SassySaint-4.0.0";
|
|
3465
|
+
}) => /* @__PURE__ */ c(ce, { children: /* @__PURE__ */ c(Ra, { clientId: Na, domain: t, debug: Wn, children: /* @__PURE__ */ c(Jn, { isComponent: e }) }) }), Zo = ({ domain: e }) => /* @__PURE__ */ c(Fn, { isComponent: !0, domain: e });
|
|
3461
3466
|
export {
|
|
3462
3467
|
Yt as A,
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3468
|
+
Yo as ABOUT_TITLE,
|
|
3469
|
+
ho as ACTION_LOCATION,
|
|
3470
|
+
co as ACTION_MESSAGE,
|
|
3471
|
+
uo as ACTION_MODEL,
|
|
3472
|
+
lo as ACTION_RESET,
|
|
3473
|
+
mo as ACTION_RESTORE,
|
|
3474
|
+
go as ACTION_SEARCH,
|
|
3475
|
+
fo as ACTION_SORT,
|
|
3476
|
+
po as ACTION_STREAMING,
|
|
3472
3477
|
Un as AppFooter,
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3478
|
+
qo as CANCEL,
|
|
3479
|
+
Xo as CARDS,
|
|
3480
|
+
jo as CLEAR,
|
|
3481
|
+
oo as ERROR_MESSAGE,
|
|
3482
|
+
io as GPT4_MAX_TOKENS,
|
|
3483
|
+
Fo as HISTORY_TITLE,
|
|
3484
|
+
bo as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3485
|
+
To as LOCAL_STORAGE_LOCATION,
|
|
3486
|
+
yo as LOCAL_STORAGE_PREFIX,
|
|
3487
|
+
Eo as LOCAL_STORAGE_SEARCH,
|
|
3488
|
+
wo as LOCAL_STORAGE_SORT,
|
|
3489
|
+
Go as LOG_OUT,
|
|
3485
3490
|
nn as M,
|
|
3486
|
-
|
|
3491
|
+
so as MODEL_GPT4,
|
|
3487
3492
|
Kn as MessagesContainerHeader,
|
|
3488
|
-
|
|
3493
|
+
Do as N,
|
|
3489
3494
|
en as N$1,
|
|
3490
|
-
|
|
3495
|
+
Qo as NA,
|
|
3491
3496
|
Ye as O,
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3497
|
+
Vo as PROFILE_TITLE,
|
|
3498
|
+
to as ROLE_ASSISTANT,
|
|
3499
|
+
no as ROLE_HIDDEN,
|
|
3500
|
+
ao as ROLE_INTERNAL,
|
|
3501
|
+
ro as ROLE_SYSTEM,
|
|
3502
|
+
eo as ROLE_USER,
|
|
3498
3503
|
Ce as S,
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
+
Wo as SEND,
|
|
3505
|
+
Jo as STATS,
|
|
3506
|
+
Io as STATS_SEPARATOR,
|
|
3507
|
+
Zo as SassySaint,
|
|
3508
|
+
zo as TYPE_QUESTION,
|
|
3504
3509
|
Qt as U,
|
|
3505
3510
|
Ze as Y,
|
|
3506
|
-
|
|
3511
|
+
Ho as a,
|
|
3507
3512
|
gt as b,
|
|
3508
3513
|
rn as c,
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
+
Lo as c$1,
|
|
3515
|
+
So as convertLatitudeToDMS,
|
|
3516
|
+
Ao as convertLongitudeToDMS,
|
|
3517
|
+
Co as durationFormatter,
|
|
3518
|
+
Ro as extractAverage,
|
|
3514
3519
|
Jt as f,
|
|
3515
3520
|
an as f$1,
|
|
3516
3521
|
_n as f$2,
|
|
3517
3522
|
Oe as g,
|
|
3518
|
-
|
|
3523
|
+
ko as getCurrentGeoLocation,
|
|
3519
3524
|
Ka as getMessageContaintWrapperClass,
|
|
3520
3525
|
Xe as i,
|
|
3521
|
-
|
|
3522
|
-
|
|
3526
|
+
$o as i$1,
|
|
3527
|
+
No as isLastMessageFromRole,
|
|
3523
3528
|
re as j,
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3529
|
+
Ko as l,
|
|
3530
|
+
Mo as n,
|
|
3531
|
+
xo as numberFormatter,
|
|
3532
|
+
ln as o,
|
|
3533
|
+
Bo as p,
|
|
3534
|
+
Oo as pluralize,
|
|
3535
|
+
Uo as r,
|
|
3536
|
+
_o as renderDataAsList,
|
|
3537
|
+
Po as s,
|
|
3538
|
+
vo as truncate,
|
|
3534
3539
|
zt as x,
|
|
3535
3540
|
qe as zr
|
|
3536
3541
|
};
|