@versini/sassysaint 5.5.32 → 5.5.33
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.Df2lQC7R.js → App.BXAqV9_e.js} +262 -263
- package/dist/chunks/{HeaderToolbar.ClkzdP_R.js → HeaderToolbar.BoRwNEMw.js} +29 -29
- package/dist/chunks/{MarkdownWithExtra.Dtxi1OCx.js → MarkdownWithExtra.CIsHNAZk.js} +8 -8
- package/dist/chunks/{MessageAssistant.BCLp8Epo.js → MessageAssistant.DKGaNVFc.js} +6 -6
- package/dist/chunks/{index.kTiw0vKw.js → index.ObAZLC3I.js} +294 -285
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l, jsxs as O, Fragment as Qe } from "react/jsx-runtime";
|
|
2
|
-
import z, { createContext as
|
|
2
|
+
import z, { createContext as nr, useReducer as wt, useRef as M, useCallback as q, useEffect as Q, useContext as Tt, useSyncExternalStore as or, useId as It, useState as j, useLayoutEffect as ot, useMemo as St, lazy as sr, Suspense as ir } from "react";
|
|
3
3
|
import g from "clsx";
|
|
4
|
-
var
|
|
4
|
+
var cr = Object.defineProperty, lr = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t, r) => lr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
6
6
|
@versini/auth-provider v7.4.0
|
|
7
7
|
© 2024 gizmette.com
|
|
@@ -47,7 +47,7 @@ let R = 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)
|
|
@@ -125,7 +125,7 @@ function lr({ error: e, options: t }) {
|
|
|
125
125
|
}
|
|
126
126
|
return e;
|
|
127
127
|
}
|
|
128
|
-
class
|
|
128
|
+
class ur {
|
|
129
129
|
createNewAbortSignal() {
|
|
130
130
|
if (this.controller) {
|
|
131
131
|
const r = new Error("Cancelling existing WebAuthn API call for new one");
|
|
@@ -141,12 +141,12 @@ class dr {
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
const At = new
|
|
144
|
+
const At = new ur(), mr = ["cross-platform", "platform"];
|
|
145
145
|
function vt(e) {
|
|
146
|
-
if (e && !(
|
|
146
|
+
if (e && !(mr.indexOf(e) < 0))
|
|
147
147
|
return e;
|
|
148
148
|
}
|
|
149
|
-
async function
|
|
149
|
+
async function hr(e) {
|
|
150
150
|
var u;
|
|
151
151
|
if (!Ze())
|
|
152
152
|
throw new Error("WebAuthn is not supported in this browser");
|
|
@@ -164,7 +164,7 @@ async function mr(e) {
|
|
|
164
164
|
try {
|
|
165
165
|
r = await navigator.credentials.create(t);
|
|
166
166
|
} catch (c) {
|
|
167
|
-
throw
|
|
167
|
+
throw dr({ error: c, options: t });
|
|
168
168
|
}
|
|
169
169
|
if (!r)
|
|
170
170
|
throw new Error("Registration was not completed");
|
|
@@ -213,13 +213,13 @@ function Ke(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 pr() {
|
|
217
217
|
if (!Ze())
|
|
218
218
|
return new Promise((t) => t(!1));
|
|
219
219
|
const e = window.PublicKeyCredential;
|
|
220
220
|
return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(!1)) : e.isConditionalMediationAvailable();
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function gr({ error: e, options: t }) {
|
|
223
223
|
const { publicKey: r } = t;
|
|
224
224
|
if (!r)
|
|
225
225
|
throw Error("options was missing required publicKey property");
|
|
@@ -260,7 +260,7 @@ function pr({ error: e, options: t }) {
|
|
|
260
260
|
}
|
|
261
261
|
return e;
|
|
262
262
|
}
|
|
263
|
-
async function
|
|
263
|
+
async function yr(e, t = !1) {
|
|
264
264
|
var u, c;
|
|
265
265
|
if (!Ze())
|
|
266
266
|
throw new Error("WebAuthn is not supported in this browser");
|
|
@@ -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 pr())
|
|
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');
|
|
@@ -283,7 +283,7 @@ async function gr(e, t = !1) {
|
|
|
283
283
|
try {
|
|
284
284
|
o = await navigator.credentials.get(n);
|
|
285
285
|
} catch (m) {
|
|
286
|
-
throw
|
|
286
|
+
throw gr({ error: m, options: n });
|
|
287
287
|
}
|
|
288
288
|
if (!o)
|
|
289
289
|
throw new Error("Authentication was not completed");
|
|
@@ -338,7 +338,7 @@ const ue = {
|
|
|
338
338
|
SCOPES_KEY: "scopes",
|
|
339
339
|
CLIENT_ID_KEY: "aud",
|
|
340
340
|
ISSUER: "gizmette.com"
|
|
341
|
-
},
|
|
341
|
+
}, fr = `-----BEGIN PUBLIC KEY-----
|
|
342
342
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
|
|
343
343
|
w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
|
|
344
344
|
i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
|
|
@@ -352,14 +352,14 @@ awIDAQAB
|
|
|
352
352
|
LOGIN: "login",
|
|
353
353
|
REFRESH: "refresh"
|
|
354
354
|
}, Pe = crypto, Nt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), fe = new TextDecoder();
|
|
355
|
-
function
|
|
355
|
+
function br(...e) {
|
|
356
356
|
const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
|
|
357
357
|
let a = 0;
|
|
358
358
|
for (const n of e)
|
|
359
359
|
r.set(n, a), a += n.length;
|
|
360
360
|
return r;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const Er = (e) => {
|
|
363
363
|
const t = atob(e), r = new Uint8Array(t.length);
|
|
364
364
|
for (let a = 0; a < t.length; a++)
|
|
365
365
|
r[a] = t.charCodeAt(a);
|
|
@@ -368,7 +368,7 @@ const br = (e) => {
|
|
|
368
368
|
let t = e;
|
|
369
369
|
t instanceof Uint8Array && (t = fe.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
371
|
+
return Er(t);
|
|
372
372
|
} catch {
|
|
373
373
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
374
374
|
}
|
|
@@ -404,18 +404,18 @@ let L = class extends C {
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
L.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
407
|
-
class
|
|
407
|
+
class wr extends C {
|
|
408
408
|
constructor(t = "decryption operation failed", r) {
|
|
409
409
|
super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
|
|
413
|
-
class
|
|
412
|
+
wr.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
413
|
+
class Tr extends C {
|
|
414
414
|
constructor() {
|
|
415
415
|
super(...arguments), this.code = "ERR_JWE_INVALID";
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
|
-
|
|
418
|
+
Tr.code = "ERR_JWE_INVALID";
|
|
419
419
|
let S = class extends C {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
@@ -428,36 +428,36 @@ let G = class extends C {
|
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
430
|
G.code = "ERR_JWT_INVALID";
|
|
431
|
-
class
|
|
431
|
+
class Ir extends C {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(...arguments), this.code = "ERR_JWK_INVALID";
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
|
-
|
|
437
|
-
class
|
|
436
|
+
Ir.code = "ERR_JWK_INVALID";
|
|
437
|
+
class Sr extends C {
|
|
438
438
|
constructor() {
|
|
439
439
|
super(...arguments), this.code = "ERR_JWKS_INVALID";
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
|
|
443
|
-
class
|
|
442
|
+
Sr.code = "ERR_JWKS_INVALID";
|
|
443
|
+
class _r extends C {
|
|
444
444
|
constructor(t = "no applicable key found in the JSON Web Key Set", r) {
|
|
445
445
|
super(t, r), this.code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
|
|
449
|
-
class
|
|
448
|
+
_r.code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
449
|
+
class kr extends C {
|
|
450
450
|
constructor(t = "multiple matching keys found in the JSON Web Key Set", r) {
|
|
451
451
|
super(t, r), this.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
|
-
|
|
455
|
-
class
|
|
454
|
+
kr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
455
|
+
class Ar extends C {
|
|
456
456
|
constructor(t = "request timed out", r) {
|
|
457
457
|
super(t, r), this.code = "ERR_JWKS_TIMEOUT";
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
|
|
460
|
+
Ar.code = "ERR_JWKS_TIMEOUT";
|
|
461
461
|
class Ct extends C {
|
|
462
462
|
constructor(t = "signature verification failed", r) {
|
|
463
463
|
super(t, r), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
@@ -473,7 +473,7 @@ function we(e, t) {
|
|
|
473
473
|
function He(e) {
|
|
474
474
|
return parseInt(e.name.slice(4), 10);
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function vr(e) {
|
|
477
477
|
switch (e) {
|
|
478
478
|
case "ES256":
|
|
479
479
|
return "P-256";
|
|
@@ -485,7 +485,7 @@ function Ar(e) {
|
|
|
485
485
|
throw new Error("unreachable");
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Rr(e, t) {
|
|
489
489
|
if (t.length && !t.some((r) => e.usages.includes(r))) {
|
|
490
490
|
let r = "CryptoKey does not support this operation, its usages must include ";
|
|
491
491
|
if (t.length > 2) {
|
|
@@ -495,7 +495,7 @@ function vr(e, t) {
|
|
|
495
495
|
throw new TypeError(r);
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function Nr(e, t, ...r) {
|
|
499
499
|
switch (t) {
|
|
500
500
|
case "HS256":
|
|
501
501
|
case "HS384":
|
|
@@ -537,7 +537,7 @@ function Rr(e, t, ...r) {
|
|
|
537
537
|
case "ES512": {
|
|
538
538
|
if (!we(e.algorithm, "ECDSA"))
|
|
539
539
|
throw Y("ECDSA");
|
|
540
|
-
const a =
|
|
540
|
+
const a = vr(t);
|
|
541
541
|
if (e.algorithm.namedCurve !== a)
|
|
542
542
|
throw Y(a, "algorithm.namedCurve");
|
|
543
543
|
break;
|
|
@@ -545,7 +545,7 @@ function Rr(e, t, ...r) {
|
|
|
545
545
|
default:
|
|
546
546
|
throw new TypeError("CryptoKey does not support this operation");
|
|
547
547
|
}
|
|
548
|
-
|
|
548
|
+
Rr(e, r);
|
|
549
549
|
}
|
|
550
550
|
function Ot(e, t, ...r) {
|
|
551
551
|
var a;
|
|
@@ -559,7 +559,7 @@ const st = (e, ...t) => Ot("Key must be ", e, ...t);
|
|
|
559
559
|
function Pt(e, t, ...r) {
|
|
560
560
|
return Ot(`Key for the ${e} algorithm must be `, t, ...r);
|
|
561
561
|
}
|
|
562
|
-
const Dt = (e) => Nt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"],
|
|
562
|
+
const Dt = (e) => Nt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"], xr = (...e) => {
|
|
563
563
|
const t = e.filter(Boolean);
|
|
564
564
|
if (t.length === 0 || t.length === 1)
|
|
565
565
|
return !0;
|
|
@@ -578,11 +578,11 @@ const Dt = (e) => Nt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
|
|
|
578
578
|
}
|
|
579
579
|
return !0;
|
|
580
580
|
};
|
|
581
|
-
function
|
|
581
|
+
function Cr(e) {
|
|
582
582
|
return typeof e == "object" && e !== null;
|
|
583
583
|
}
|
|
584
584
|
function me(e) {
|
|
585
|
-
if (!
|
|
585
|
+
if (!Cr(e) || Object.prototype.toString.call(e) !== "[object Object]")
|
|
586
586
|
return !1;
|
|
587
587
|
if (Object.getPrototypeOf(e) === null)
|
|
588
588
|
return !0;
|
|
@@ -591,7 +591,7 @@ function me(e) {
|
|
|
591
591
|
t = Object.getPrototypeOf(t);
|
|
592
592
|
return Object.getPrototypeOf(e) === t;
|
|
593
593
|
}
|
|
594
|
-
const
|
|
594
|
+
const Or = (e, t) => {
|
|
595
595
|
if (e.startsWith("RS") || e.startsWith("PS")) {
|
|
596
596
|
const { modulusLength: r } = t.algorithm;
|
|
597
597
|
if (typeof r != "number" || r < 2048)
|
|
@@ -601,16 +601,16 @@ const Cr = (e, t) => {
|
|
|
601
601
|
function he(e) {
|
|
602
602
|
return me(e) && typeof e.kty == "string";
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function Pr(e) {
|
|
605
605
|
return e.kty !== "oct" && typeof e.d == "string";
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Dr(e) {
|
|
608
608
|
return e.kty !== "oct" && typeof e.d > "u";
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Lr(e) {
|
|
611
611
|
return he(e) && e.kty === "oct" && typeof e.k == "string";
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Mr(e) {
|
|
614
614
|
let t, r;
|
|
615
615
|
switch (e.kty) {
|
|
616
616
|
case "RSA": {
|
|
@@ -685,7 +685,7 @@ function Lr(e) {
|
|
|
685
685
|
const Lt = async (e) => {
|
|
686
686
|
if (!e.alg)
|
|
687
687
|
throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
|
|
688
|
-
const { algorithm: t, keyUsages: r } =
|
|
688
|
+
const { algorithm: t, keyUsages: r } = Mr(e), a = [
|
|
689
689
|
t,
|
|
690
690
|
e.ext ?? !1,
|
|
691
691
|
e.key_ops ?? r
|
|
@@ -699,19 +699,19 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
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
|
-
},
|
|
702
|
+
}, $r = (e, t) => {
|
|
703
703
|
if ($t(e)) {
|
|
704
704
|
let r = e.export({ format: "jwk" });
|
|
705
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
707
|
return he(e) ? e.k ? X(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ne(oe, e, e, t, !0)) : e;
|
|
708
|
-
},
|
|
708
|
+
}, Ur = (e, t) => {
|
|
709
709
|
if ($t(e)) {
|
|
710
710
|
let r = e.export({ format: "jwk" });
|
|
711
711
|
return r.k ? Mt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Ne(ne, e, r, t));
|
|
712
712
|
}
|
|
713
713
|
return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Ne(ne, e, e, t, !0)) : e;
|
|
714
|
-
},
|
|
714
|
+
}, Kr = { normalizePublicKey: $r, normalizePrivateKey: Ur }, 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)
|
|
@@ -737,7 +737,7 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
737
737
|
default:
|
|
738
738
|
throw new L("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
739
739
|
}
|
|
740
|
-
},
|
|
740
|
+
}, Hr = async (e, t, r, a, n) => {
|
|
741
741
|
let o, s;
|
|
742
742
|
const i = new Uint8Array(atob(r.replace(e, "")).split("").map((d) => d.charCodeAt(0)));
|
|
743
743
|
switch (a) {
|
|
@@ -784,13 +784,13 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
784
784
|
throw new L('Invalid or unsupported "alg" (Algorithm) value');
|
|
785
785
|
}
|
|
786
786
|
return Pe.subtle.importKey(t, i, o, !1, s);
|
|
787
|
-
},
|
|
788
|
-
async function
|
|
787
|
+
}, Wr = (e, t, r) => Hr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
|
788
|
+
async function Br(e, t, r) {
|
|
789
789
|
if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
|
|
790
790
|
throw new TypeError('"spki" must be SPKI formatted string');
|
|
791
|
-
return
|
|
791
|
+
return Wr(e, t);
|
|
792
792
|
}
|
|
793
|
-
async function
|
|
793
|
+
async function Gr(e, t) {
|
|
794
794
|
if (!me(e))
|
|
795
795
|
throw new TypeError("JWK must be an object");
|
|
796
796
|
switch (t || (t = e.alg), e.kty) {
|
|
@@ -817,10 +817,10 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Fe = (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
|
+
}, Jr = (e, t, r, a) => {
|
|
821
821
|
if (!(t instanceof Uint8Array)) {
|
|
822
822
|
if (a && he(t)) {
|
|
823
|
-
if (
|
|
823
|
+
if (Lr(t) && Fe(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');
|
|
826
826
|
}
|
|
@@ -829,15 +829,15 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Fe = (e, t, r) =>
|
|
|
829
829
|
if (t.type !== "secret")
|
|
830
830
|
throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
831
831
|
}
|
|
832
|
-
},
|
|
832
|
+
}, Vr = (e, t, r, a) => {
|
|
833
833
|
if (a && he(t))
|
|
834
834
|
switch (r) {
|
|
835
835
|
case "sign":
|
|
836
|
-
if (
|
|
836
|
+
if (Pr(t) && Fe(e, t, r))
|
|
837
837
|
return;
|
|
838
838
|
throw new TypeError("JSON Web Key for this operation be a private JWK");
|
|
839
839
|
case "verify":
|
|
840
|
-
if (
|
|
840
|
+
if (Dr(t) && Fe(e, t, r))
|
|
841
841
|
return;
|
|
842
842
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
843
843
|
}
|
|
@@ -855,11 +855,11 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], Fe = (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) ? Jr(t, r, a, e) : Vr(t, r, a, e);
|
|
859
859
|
}
|
|
860
860
|
Ut.bind(void 0, !1);
|
|
861
861
|
const ct = Ut.bind(void 0, !0);
|
|
862
|
-
function
|
|
862
|
+
function Yr(e, t, r, a, n) {
|
|
863
863
|
if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
|
|
864
864
|
throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
|
|
865
865
|
if (!a || a.crit === void 0)
|
|
@@ -878,13 +878,13 @@ function Vr(e, t, r, a, n) {
|
|
|
878
878
|
}
|
|
879
879
|
return new Set(a.crit);
|
|
880
880
|
}
|
|
881
|
-
const
|
|
881
|
+
const zr = (e, t) => {
|
|
882
882
|
if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
|
|
883
883
|
throw new TypeError(`"${e}" option must be an array of strings`);
|
|
884
884
|
if (t)
|
|
885
885
|
return new Set(t);
|
|
886
886
|
};
|
|
887
|
-
function
|
|
887
|
+
function Fr(e, t) {
|
|
888
888
|
const r = `SHA-${e.slice(-3)}`;
|
|
889
889
|
switch (e) {
|
|
890
890
|
case "HS256":
|
|
@@ -909,9 +909,9 @@ function zr(e, t) {
|
|
|
909
909
|
throw new L(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
|
-
async function
|
|
913
|
-
if (t = await
|
|
914
|
-
return
|
|
912
|
+
async function jr(e, t, r) {
|
|
913
|
+
if (t = await Kr.normalizePublicKey(t, e), Nt(t))
|
|
914
|
+
return Nr(t, e, r), t;
|
|
915
915
|
if (t instanceof Uint8Array) {
|
|
916
916
|
if (!e.startsWith("HS"))
|
|
917
917
|
throw new TypeError(st(t, ...Re));
|
|
@@ -919,17 +919,17 @@ async function Fr(e, t, r) {
|
|
|
919
919
|
}
|
|
920
920
|
throw new TypeError(st(t, ...Re, "Uint8Array", "JSON Web Key"));
|
|
921
921
|
}
|
|
922
|
-
const
|
|
923
|
-
const n = await
|
|
924
|
-
|
|
925
|
-
const o =
|
|
922
|
+
const qr = async (e, t, r, a) => {
|
|
923
|
+
const n = await jr(e, t, "verify");
|
|
924
|
+
Or(e, n);
|
|
925
|
+
const o = Fr(e, n.algorithm);
|
|
926
926
|
try {
|
|
927
927
|
return await Pe.subtle.verify(o, n, r, a);
|
|
928
928
|
} catch {
|
|
929
929
|
return !1;
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
async function
|
|
932
|
+
async function Xr(e, t, r) {
|
|
933
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)
|
|
@@ -950,19 +950,19 @@ async function qr(e, t, r) {
|
|
|
950
950
|
} catch {
|
|
951
951
|
throw new S("JWS Protected Header is invalid");
|
|
952
952
|
}
|
|
953
|
-
if (!
|
|
953
|
+
if (!xr(a, e.header))
|
|
954
954
|
throw new S("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
|
|
955
955
|
const n = {
|
|
956
956
|
...a,
|
|
957
957
|
...e.header
|
|
958
|
-
}, o =
|
|
958
|
+
}, o = Yr(S, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
|
|
959
959
|
let s = !0;
|
|
960
960
|
if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
|
|
961
961
|
throw new S('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
|
|
962
962
|
const { alg: i } = n;
|
|
963
963
|
if (typeof i != "string" || !i)
|
|
964
964
|
throw new S('JWS "alg" (Algorithm) Header Parameter missing or invalid');
|
|
965
|
-
const d =
|
|
965
|
+
const d = zr("algorithms", r.algorithms);
|
|
966
966
|
if (d && !d.has(i))
|
|
967
967
|
throw new xt('"alg" (Algorithm) Header Parameter value not allowed');
|
|
968
968
|
if (s) {
|
|
@@ -971,15 +971,15 @@ async function qr(e, t, r) {
|
|
|
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
973
|
let h = !1;
|
|
974
|
-
typeof t == "function" ? (t = await t(a, e), h = !0, ct(i, t, "verify"), he(t) && (t = await
|
|
975
|
-
const p =
|
|
974
|
+
typeof t == "function" ? (t = await t(a, e), h = !0, ct(i, t, "verify"), he(t) && (t = await Gr(t, i))) : ct(i, t, "verify");
|
|
975
|
+
const p = br(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
|
|
976
976
|
let u;
|
|
977
977
|
try {
|
|
978
978
|
u = X(e.signature);
|
|
979
979
|
} catch {
|
|
980
980
|
throw new S("Failed to base64url decode the signature");
|
|
981
981
|
}
|
|
982
|
-
if (!await
|
|
982
|
+
if (!await qr(i, t, u, p))
|
|
983
983
|
throw new Ct();
|
|
984
984
|
let c;
|
|
985
985
|
if (s)
|
|
@@ -992,17 +992,17 @@ async function qr(e, t, r) {
|
|
|
992
992
|
const m = { payload: c };
|
|
993
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
|
-
async function
|
|
995
|
+
async function Qr(e, t, r) {
|
|
996
996
|
if (e instanceof Uint8Array && (e = fe.decode(e)), typeof e != "string")
|
|
997
997
|
throw new S("Compact JWS must be a string or Uint8Array");
|
|
998
998
|
const { 0: a, 1: n, 2: o, length: s } = e.split(".");
|
|
999
999
|
if (s !== 3)
|
|
1000
1000
|
throw new S("Invalid Compact JWS");
|
|
1001
|
-
const i = await
|
|
1001
|
+
const i = await Xr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
1002
1002
|
return typeof t == "function" ? { ...d, key: i.key } : d;
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1005
|
-
const t =
|
|
1004
|
+
const Zr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht * 24, ea = et * 7, ta = et * 365.25, ra = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, lt = (e) => {
|
|
1005
|
+
const t = ra.exec(e);
|
|
1006
1006
|
if (!t || t[4] && t[1])
|
|
1007
1007
|
throw new TypeError("Invalid time period format");
|
|
1008
1008
|
const r = parseFloat(t[2]), a = t[3].toLowerCase();
|
|
@@ -1037,14 +1037,14 @@ const Qr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
|
|
|
1037
1037
|
case "week":
|
|
1038
1038
|
case "weeks":
|
|
1039
1039
|
case "w":
|
|
1040
|
-
n = Math.round(r *
|
|
1040
|
+
n = Math.round(r * ea);
|
|
1041
1041
|
break;
|
|
1042
1042
|
default:
|
|
1043
|
-
n = Math.round(r *
|
|
1043
|
+
n = Math.round(r * ta);
|
|
1044
1044
|
break;
|
|
1045
1045
|
}
|
|
1046
1046
|
return t[1] === "-" || t[4] === "ago" ? -n : n;
|
|
1047
|
-
}, dt = (e) => e.toLowerCase().replace(/^application\//, ""),
|
|
1047
|
+
}, dt = (e) => e.toLowerCase().replace(/^application\//, ""), aa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, na = (e, t, r = {}) => {
|
|
1048
1048
|
let a;
|
|
1049
1049
|
try {
|
|
1050
1050
|
a = JSON.parse(fe.decode(t));
|
|
@@ -1064,7 +1064,7 @@ const Qr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
|
|
|
1064
1064
|
throw new D('unexpected "iss" claim value', a, "iss", "check_failed");
|
|
1065
1065
|
if (i && a.sub !== i)
|
|
1066
1066
|
throw new D('unexpected "sub" claim value', a, "sub", "check_failed");
|
|
1067
|
-
if (d && !
|
|
1067
|
+
if (d && !aa(a.aud, typeof d == "string" ? [d] : d))
|
|
1068
1068
|
throw new D('unexpected "aud" claim value', a, "aud", "check_failed");
|
|
1069
1069
|
let u;
|
|
1070
1070
|
switch (typeof r.clockTolerance) {
|
|
@@ -1080,7 +1080,7 @@ 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, m =
|
|
1083
|
+
const { currentDate: c } = r, m = Zr(c || /* @__PURE__ */ new Date());
|
|
1084
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) {
|
|
@@ -1104,16 +1104,16 @@ const Qr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
|
|
|
1104
1104
|
}
|
|
1105
1105
|
return a;
|
|
1106
1106
|
};
|
|
1107
|
-
async function
|
|
1107
|
+
async function oa(e, t, r) {
|
|
1108
1108
|
var a;
|
|
1109
|
-
const n = await
|
|
1109
|
+
const n = await Qr(e, t, r);
|
|
1110
1110
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
|
1111
1111
|
throw new G("JWTs MUST NOT use unencoded payload");
|
|
1112
|
-
const o = { payload:
|
|
1112
|
+
const o = { payload: na(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
|
1113
1113
|
return typeof t == "function" ? { ...o, key: n.key } : o;
|
|
1114
1114
|
}
|
|
1115
|
-
const
|
|
1116
|
-
function
|
|
1115
|
+
const sa = X;
|
|
1116
|
+
function ia(e) {
|
|
1117
1117
|
if (typeof e != "string")
|
|
1118
1118
|
throw new G("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1119
1119
|
const { 1: t, length: r } = e.split(".");
|
|
@@ -1125,7 +1125,7 @@ function sa(e) {
|
|
|
1125
1125
|
throw new G("JWTs must contain a payload");
|
|
1126
1126
|
let a;
|
|
1127
1127
|
try {
|
|
1128
|
-
a =
|
|
1128
|
+
a = sa(t);
|
|
1129
1129
|
} catch {
|
|
1130
1130
|
throw new G("Failed to base64url decode the payload");
|
|
1131
1131
|
}
|
|
@@ -1141,56 +1141,56 @@ function sa(e) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
const ye = async (e) => {
|
|
1143
1143
|
try {
|
|
1144
|
-
const t = A.ALG, r = await
|
|
1145
|
-
return await
|
|
1144
|
+
const t = A.ALG, r = await Br(fr, t);
|
|
1145
|
+
return await oa(e, r, {
|
|
1146
1146
|
issuer: A.ISSUER
|
|
1147
1147
|
});
|
|
1148
1148
|
} catch {
|
|
1149
1149
|
return;
|
|
1150
1150
|
}
|
|
1151
|
-
},
|
|
1151
|
+
}, ca = (e) => {
|
|
1152
1152
|
try {
|
|
1153
|
-
return
|
|
1153
|
+
return ia(e);
|
|
1154
1154
|
} catch {
|
|
1155
1155
|
return;
|
|
1156
1156
|
}
|
|
1157
1157
|
}, _ = [];
|
|
1158
1158
|
for (let e = 0; e < 256; ++e)
|
|
1159
1159
|
_.push((e + 256).toString(16).slice(1));
|
|
1160
|
-
function
|
|
1160
|
+
function la(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
1163
|
let We;
|
|
1164
|
-
const
|
|
1165
|
-
function
|
|
1164
|
+
const da = new Uint8Array(16);
|
|
1165
|
+
function ua() {
|
|
1166
1166
|
if (!We) {
|
|
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
|
We = crypto.getRandomValues.bind(crypto);
|
|
1170
1170
|
}
|
|
1171
|
-
return We(
|
|
1171
|
+
return We(da);
|
|
1172
1172
|
}
|
|
1173
|
-
const
|
|
1173
|
+
const ma = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ut = { randomUUID: ma };
|
|
1174
1174
|
function mt(e, t, r) {
|
|
1175
1175
|
if (ut.randomUUID && !t && !e)
|
|
1176
1176
|
return ut.randomUUID();
|
|
1177
1177
|
e = e || {};
|
|
1178
|
-
const a = e.random || (e.rng ||
|
|
1179
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1178
|
+
const a = e.random || (e.rng || ua)();
|
|
1179
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, la(a);
|
|
1180
1180
|
}
|
|
1181
|
-
const ht = globalThis.crypto,
|
|
1181
|
+
const ht = globalThis.crypto, ha = (e) => `${mt()}${mt()}`.slice(0, e), pa = (e) => btoa(
|
|
1182
1182
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
1183
1183
|
);
|
|
1184
|
-
async function
|
|
1184
|
+
async function ga(e) {
|
|
1185
1185
|
if (!ht.subtle)
|
|
1186
1186
|
throw new Error(
|
|
1187
1187
|
"crypto.subtle is available only in secure contexts (HTTPS)."
|
|
1188
1188
|
);
|
|
1189
1189
|
const t = new TextEncoder().encode(e), r = await ht.subtle.digest("SHA-256", t);
|
|
1190
|
-
return
|
|
1190
|
+
return pa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
1191
1191
|
}
|
|
1192
|
-
async function
|
|
1193
|
-
const t =
|
|
1192
|
+
async function ya(e) {
|
|
1193
|
+
const t = ha(43), r = await ga(t);
|
|
1194
1194
|
return {
|
|
1195
1195
|
code_verifier: t,
|
|
1196
1196
|
code_challenge: r
|
|
@@ -1204,18 +1204,18 @@ const pt = (e, t) => {
|
|
|
1204
1204
|
typeof t == "function" ? t() : t
|
|
1205
1205
|
);
|
|
1206
1206
|
window.localStorage.setItem(e, r), Wt(e, r);
|
|
1207
|
-
},
|
|
1207
|
+
}, fa = (e) => {
|
|
1208
1208
|
window.localStorage.removeItem(e), Wt(e, null);
|
|
1209
|
-
}, gt = (e) => window.localStorage.getItem(e),
|
|
1209
|
+
}, gt = (e) => window.localStorage.getItem(e), ba = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
1210
1210
|
function Te({
|
|
1211
1211
|
key: e,
|
|
1212
1212
|
initialValue: t
|
|
1213
1213
|
}) {
|
|
1214
|
-
const r =
|
|
1214
|
+
const r = or(ba, () => gt(e)), a = q(
|
|
1215
1215
|
(s) => {
|
|
1216
1216
|
try {
|
|
1217
1217
|
const i = typeof s == "function" ? s(JSON.parse(r)) : s;
|
|
1218
|
-
i == null ?
|
|
1218
|
+
i == null ? fa(e) : pt(e, i);
|
|
1219
1219
|
} catch (i) {
|
|
1220
1220
|
console.warn(i);
|
|
1221
1221
|
}
|
|
@@ -1237,28 +1237,28 @@ function Te({
|
|
|
1237
1237
|
const k = [];
|
|
1238
1238
|
for (let e = 0; e < 256; ++e)
|
|
1239
1239
|
k.push((e + 256).toString(16).slice(1));
|
|
1240
|
-
function
|
|
1240
|
+
function Ea(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
1243
|
let Be;
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1244
|
+
const wa = new Uint8Array(16);
|
|
1245
|
+
function Ta() {
|
|
1246
1246
|
if (!Be) {
|
|
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
|
Be = crypto.getRandomValues.bind(crypto);
|
|
1250
1250
|
}
|
|
1251
|
-
return Be(
|
|
1251
|
+
return Be(wa);
|
|
1252
1252
|
}
|
|
1253
|
-
const
|
|
1253
|
+
const Ia = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Ia };
|
|
1254
1254
|
function Ge(e, t, r) {
|
|
1255
1255
|
if (yt.randomUUID && !t && !e)
|
|
1256
1256
|
return yt.randomUUID();
|
|
1257
1257
|
e = e || {};
|
|
1258
|
-
const a = e.random || (e.rng ||
|
|
1259
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1258
|
+
const a = e.random || (e.rng || Ta)();
|
|
1259
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ea(a);
|
|
1260
1260
|
}
|
|
1261
|
-
const se = "Your session has expired. For your security, please log in again to continue.",
|
|
1261
|
+
const se = "Your session has expired. For your security, please log in again to continue.", Sa = "Your session has been successfully terminated.", Je = "Login failed. Please try again.", _a = "Error getting access token, please re-authenticate.", ka = "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
1264
|
}, Ie = "@@auth@@", ge = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", V = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
|
|
@@ -1420,21 +1420,21 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1420
1420
|
} catch (a) {
|
|
1421
1421
|
return console.error(a), { status: V, data: [] };
|
|
1422
1422
|
}
|
|
1423
|
-
},
|
|
1423
|
+
}, Aa = process.env.NODE_ENV === "production", Yt = !Aa, zt = {
|
|
1424
1424
|
isLoading: !0,
|
|
1425
1425
|
isAuthenticated: !1,
|
|
1426
1426
|
user: void 0,
|
|
1427
1427
|
logoutReason: "",
|
|
1428
1428
|
debug: !1,
|
|
1429
1429
|
authenticationType: ""
|
|
1430
|
-
},
|
|
1430
|
+
}, va = (e) => {
|
|
1431
1431
|
try {
|
|
1432
|
-
const t =
|
|
1432
|
+
const t = ca(e);
|
|
1433
1433
|
return t ? t[A.USER_ID_KEY] : "";
|
|
1434
1434
|
} catch {
|
|
1435
1435
|
return "";
|
|
1436
1436
|
}
|
|
1437
|
-
},
|
|
1437
|
+
}, Ra = async ({
|
|
1438
1438
|
userId: e,
|
|
1439
1439
|
clientId: t,
|
|
1440
1440
|
domain: r,
|
|
@@ -1458,7 +1458,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1458
1458
|
status: V
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
},
|
|
1461
|
+
}, Na = async ({
|
|
1462
1462
|
username: e,
|
|
1463
1463
|
password: t,
|
|
1464
1464
|
clientId: r,
|
|
@@ -1502,7 +1502,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1502
1502
|
status: !1
|
|
1503
1503
|
};
|
|
1504
1504
|
}
|
|
1505
|
-
},
|
|
1505
|
+
}, xa = async ({
|
|
1506
1506
|
nonce: e,
|
|
1507
1507
|
clientId: t,
|
|
1508
1508
|
code_challenge: r
|
|
@@ -1531,7 +1531,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1531
1531
|
data: ""
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
1534
|
-
},
|
|
1534
|
+
}, Ca = async ({
|
|
1535
1535
|
clientId: e,
|
|
1536
1536
|
userId: t,
|
|
1537
1537
|
nonce: r,
|
|
@@ -1567,7 +1567,7 @@ const se = "Your session has expired. For your security, please log in again to
|
|
|
1567
1567
|
};
|
|
1568
1568
|
}
|
|
1569
1569
|
};
|
|
1570
|
-
class
|
|
1570
|
+
class Oa {
|
|
1571
1571
|
constructor(t = null, r = null) {
|
|
1572
1572
|
Ue(this, "refreshTokenPromise", null), Ue(this, "accessToken"), Ue(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
|
|
1573
1573
|
}
|
|
@@ -1597,7 +1597,7 @@ class Ca {
|
|
|
1597
1597
|
}) {
|
|
1598
1598
|
const o = await ye(this.refreshToken);
|
|
1599
1599
|
if (o && o.payload[A.USER_ID_KEY] !== "") {
|
|
1600
|
-
const s = await
|
|
1600
|
+
const s = await Ca({
|
|
1601
1601
|
clientId: t,
|
|
1602
1602
|
userId: r,
|
|
1603
1603
|
nonce: a,
|
|
@@ -1618,14 +1618,14 @@ class Ca {
|
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
|
-
const
|
|
1621
|
+
const Pa = (e) => q(
|
|
1622
1622
|
(...t) => {
|
|
1623
1623
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
1624
1624
|
},
|
|
1625
1625
|
[e]
|
|
1626
1626
|
), le = () => {
|
|
1627
|
-
throw new Error(
|
|
1628
|
-
}, Ft =
|
|
1627
|
+
throw new Error(ka);
|
|
1628
|
+
}, Ft = nr({
|
|
1629
1629
|
isAuthenticated: !1,
|
|
1630
1630
|
isLoading: !1,
|
|
1631
1631
|
login: le,
|
|
@@ -1636,11 +1636,11 @@ const Oa = (e) => q(
|
|
|
1636
1636
|
loginWithPasskey: le,
|
|
1637
1637
|
logoutReason: "",
|
|
1638
1638
|
authenticationType: ""
|
|
1639
|
-
}),
|
|
1639
|
+
}), Da = z.createContext({
|
|
1640
1640
|
state: zt,
|
|
1641
1641
|
dispatch: () => {
|
|
1642
1642
|
}
|
|
1643
|
-
}),
|
|
1643
|
+
}), La = (e, t) => (t == null ? void 0 : t.type) === ge ? {
|
|
1644
1644
|
...e,
|
|
1645
1645
|
isLoading: t.payload.isLoading
|
|
1646
1646
|
} : (t == null ? void 0 : t.type) === ke ? {
|
|
@@ -1657,17 +1657,17 @@ const Oa = (e) => q(
|
|
|
1657
1657
|
user: void 0,
|
|
1658
1658
|
authenticationType: "",
|
|
1659
1659
|
logoutReason: t.payload.logoutReason
|
|
1660
|
-
} : e,
|
|
1660
|
+
} : e, Ma = ({
|
|
1661
1661
|
children: e,
|
|
1662
1662
|
sessionExpiration: t,
|
|
1663
1663
|
clientId: r,
|
|
1664
1664
|
domain: a = "",
|
|
1665
1665
|
debug: n = !1
|
|
1666
1666
|
}) => {
|
|
1667
|
-
const [o, s] = wt(
|
|
1667
|
+
const [o, s] = wt(La, {
|
|
1668
1668
|
...zt,
|
|
1669
1669
|
debug: n
|
|
1670
|
-
}), i =
|
|
1670
|
+
}), i = Pa(n), d = M(!1), [h, p, , u] = Te({
|
|
1671
1671
|
key: `${Ie}::${r}::@@user@@`
|
|
1672
1672
|
}), [c, m, , f] = Te({
|
|
1673
1673
|
key: `${Ie}::${r}::@@access@@`
|
|
@@ -1677,7 +1677,7 @@ const Oa = (e) => q(
|
|
|
1677
1677
|
}
|
|
1678
1678
|
), [$, U, , K] = Te({
|
|
1679
1679
|
key: `${Ie}::${r}::@@nonce@@`
|
|
1680
|
-
}), N = new
|
|
1680
|
+
}), N = new Oa(c, E), H = q(() => {
|
|
1681
1681
|
i("removeLocalStorage: removing local storage"), u(), f(), I(), K();
|
|
1682
1682
|
}, [
|
|
1683
1683
|
f,
|
|
@@ -1701,10 +1701,10 @@ 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) ||
|
|
1704
|
+
const { user: T } = o, b = (T == null ? void 0 : T.userId) || va(h);
|
|
1705
1705
|
b || i(
|
|
1706
1706
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1707
|
-
), await
|
|
1707
|
+
), await Ra({
|
|
1708
1708
|
userId: b,
|
|
1709
1709
|
clientId: r,
|
|
1710
1710
|
domain: a,
|
|
@@ -1742,13 +1742,13 @@ const Oa = (e) => q(
|
|
|
1742
1742
|
s({ type: ge, payload: { isLoading: !0 } }), H();
|
|
1743
1743
|
const b = Ge();
|
|
1744
1744
|
U(b), i("login: Logging in with password");
|
|
1745
|
-
const { code_verifier: re, code_challenge:
|
|
1745
|
+
const { code_verifier: re, code_challenge: ar } = await ya(), nt = await xa({
|
|
1746
1746
|
nonce: b,
|
|
1747
1747
|
clientId: r,
|
|
1748
|
-
code_challenge:
|
|
1748
|
+
code_challenge: ar
|
|
1749
1749
|
});
|
|
1750
1750
|
if (nt.status) {
|
|
1751
|
-
const ae = await
|
|
1751
|
+
const ae = await Na({
|
|
1752
1752
|
username: y,
|
|
1753
1753
|
password: T,
|
|
1754
1754
|
clientId: r,
|
|
@@ -1774,7 +1774,7 @@ const Oa = (e) => q(
|
|
|
1774
1774
|
}
|
|
1775
1775
|
return !1;
|
|
1776
1776
|
}, Z = async (y) => {
|
|
1777
|
-
y == null || y.preventDefault(), await x(
|
|
1777
|
+
y == null || y.preventDefault(), await x(Sa);
|
|
1778
1778
|
}, v = async () => {
|
|
1779
1779
|
const { isAuthenticated: y, user: T } = o;
|
|
1780
1780
|
try {
|
|
@@ -1802,7 +1802,7 @@ const Oa = (e) => q(
|
|
|
1802
1802
|
} catch {
|
|
1803
1803
|
return i(
|
|
1804
1804
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1805
|
-
), await x(
|
|
1805
|
+
), await x(_a), "";
|
|
1806
1806
|
}
|
|
1807
1807
|
}, P = () => o.isAuthenticated && h ? h : "", B = async () => {
|
|
1808
1808
|
const { user: y } = o;
|
|
@@ -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 hr(T.data);
|
|
1822
1822
|
return T = await ce({
|
|
1823
1823
|
accessToken: c,
|
|
1824
1824
|
clientId: r,
|
|
@@ -1860,7 +1860,7 @@ const Oa = (e) => q(
|
|
|
1860
1860
|
});
|
|
1861
1861
|
if (b.status)
|
|
1862
1862
|
try {
|
|
1863
|
-
const re = await
|
|
1863
|
+
const re = await yr(b.data);
|
|
1864
1864
|
return b = await ce({
|
|
1865
1865
|
accessToken: c,
|
|
1866
1866
|
clientId: r,
|
|
@@ -1902,7 +1902,7 @@ const Oa = (e) => q(
|
|
|
1902
1902
|
}
|
|
1903
1903
|
return !1;
|
|
1904
1904
|
};
|
|
1905
|
-
return /* @__PURE__ */ l(
|
|
1905
|
+
return /* @__PURE__ */ l(Da.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
|
|
1906
1906
|
Ft.Provider,
|
|
1907
1907
|
{
|
|
1908
1908
|
value: {
|
|
@@ -1917,8 +1917,8 @@ const Oa = (e) => q(
|
|
|
1917
1917
|
children: e
|
|
1918
1918
|
}
|
|
1919
1919
|
) });
|
|
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-search", So = "action-sort", _o = "action-toggle-prompt", ko = "action-reset-prompt", Ao = "sassy-saint-", vo = "details", Ro = "search", No = "sort", xo = "==stats==",
|
|
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-search", So = "action-sort", _o = "action-toggle-prompt", ko = "action-reset-prompt", Ao = "sassy-saint-", vo = "details", Ro = "search", No = "sort", xo = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Co = 10, Oo = 30, Po = "av-prompt", Do = "av-prompt-editable", ft = (e) => Number.isFinite(e) ? e : 0;
|
|
1921
|
+
function Ua(e) {
|
|
1922
1922
|
return {
|
|
1923
1923
|
days: Math.trunc(e / 864e5),
|
|
1924
1924
|
hours: Math.trunc(e / 36e5 % 24),
|
|
@@ -1929,7 +1929,7 @@ function $a(e) {
|
|
|
1929
1929
|
nanoseconds: Math.trunc(ft(e * 1e6) % 1e3)
|
|
1930
1930
|
};
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Ka(e) {
|
|
1933
1933
|
return {
|
|
1934
1934
|
days: e / 86400000n,
|
|
1935
1935
|
hours: e / 3600000n % 24n,
|
|
@@ -1940,20 +1940,20 @@ function Ua(e) {
|
|
|
1940
1940
|
nanoseconds: 0n
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Ha(e) {
|
|
1944
1944
|
switch (typeof e) {
|
|
1945
1945
|
case "number": {
|
|
1946
1946
|
if (Number.isFinite(e))
|
|
1947
|
-
return
|
|
1947
|
+
return Ua(e);
|
|
1948
1948
|
break;
|
|
1949
1949
|
}
|
|
1950
1950
|
case "bigint":
|
|
1951
|
-
return
|
|
1951
|
+
return Ka(e);
|
|
1952
1952
|
}
|
|
1953
1953
|
throw new TypeError("Expected a finite number or bigint");
|
|
1954
1954
|
}
|
|
1955
|
-
const
|
|
1956
|
-
function
|
|
1955
|
+
const Wa = (e) => e === 0 || e === 0n, Ba = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 1e-7, Ja = 24n * 60n * 60n * 1000n;
|
|
1956
|
+
function Va(e, t) {
|
|
1957
1957
|
const r = typeof e == "bigint";
|
|
1958
1958
|
if (!r && !Number.isFinite(e))
|
|
1959
1959
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -1962,18 +1962,18 @@ 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 + Ga);
|
|
1966
1966
|
return (Math.round(c) / 10 ** u).toFixed(u);
|
|
1967
1967
|
}, s = (p, u, c, m) => {
|
|
1968
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
1968
|
+
if (!((n.length === 0 || !t.colonNotation) && Wa(p) && !(t.colonNotation && c === "m"))) {
|
|
1969
1969
|
if (m ?? (m = String(p)), t.colonNotation) {
|
|
1970
1970
|
const f = m.includes(".") ? m.split(".")[0].length : m.length, E = n.length > 0 ? 2 : 1;
|
|
1971
1971
|
m = "0".repeat(Math.max(0, E - f)) + m;
|
|
1972
1972
|
} else
|
|
1973
|
-
m += t.verbose ? " " +
|
|
1973
|
+
m += t.verbose ? " " + Ba(u, p) : c;
|
|
1974
1974
|
n.push(m);
|
|
1975
1975
|
}
|
|
1976
|
-
}, i =
|
|
1976
|
+
}, i = Ha(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
1979
|
const p = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), m = Number(i.nanoseconds);
|
|
@@ -1989,7 +1989,7 @@ function Ja(e, t) {
|
|
|
1989
1989
|
);
|
|
1990
1990
|
}
|
|
1991
1991
|
} else {
|
|
1992
|
-
const p = (r ? Number(e %
|
|
1992
|
+
const p = (r ? Number(e % Ja) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1993
1993
|
s(Number.parseFloat(m), "second", "s", m);
|
|
1994
1994
|
}
|
|
1995
1995
|
if (n.length === 0)
|
|
@@ -1997,7 +1997,7 @@ function Ja(e, t) {
|
|
|
1997
1997
|
const h = t.colonNotation ? ":" : " ";
|
|
1998
1998
|
return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
|
|
1999
1999
|
}
|
|
2000
|
-
const
|
|
2000
|
+
const Ya = process.env.NODE_ENV === "production", za = !Ya, Fa = za ? "gizmette.local.com" : "gizmette.com", Lo = async () => {
|
|
2001
2001
|
const e = {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* A boolean value that indicates the application would
|
|
@@ -2049,24 +2049,24 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2049
2049
|
}, Mo = (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
|
-
] }) }, `${e}-${r}`)) : null, $o = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Uo = (e) => e > 0 ?
|
|
2052
|
+
] }) }, `${e}-${r}`)) : null, $o = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Uo = (e) => e > 0 ? Va(e, {
|
|
2053
2053
|
secondsDecimalDigits: 2,
|
|
2054
2054
|
unitCount: 2
|
|
2055
|
-
}) : "N/A",
|
|
2055
|
+
}) : "N/A", ja = ({
|
|
2056
2056
|
isAuthenticated: e,
|
|
2057
2057
|
extraClass: t
|
|
2058
2058
|
}) => g(
|
|
2059
2059
|
"flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
|
|
2060
2060
|
e ? "pt-0" : "pt-10",
|
|
2061
2061
|
t
|
|
2062
|
-
),
|
|
2062
|
+
), qa = ({
|
|
2063
2063
|
extraClass: e
|
|
2064
2064
|
}) => g("px-2 sm:px-0", e), Ko = (e, t) => t === 1 ? e : `${e}s`, Ho = (e, t) => {
|
|
2065
2065
|
let r;
|
|
2066
2066
|
return (...a) => {
|
|
2067
2067
|
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
2068
2068
|
};
|
|
2069
|
-
}, bt = "av-button", Le = "icon", tt = "button", je = "link",
|
|
2069
|
+
}, bt = "av-button", Le = "icon", tt = "button", je = "link", Xa = ({
|
|
2070
2070
|
type: e,
|
|
2071
2071
|
size: t,
|
|
2072
2072
|
labelRight: r,
|
|
@@ -2095,7 +2095,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2095
2095
|
"h-12 px-4": t === "large" && (r || a)
|
|
2096
2096
|
});
|
|
2097
2097
|
}
|
|
2098
|
-
},
|
|
2098
|
+
}, Qa = ({
|
|
2099
2099
|
type: e,
|
|
2100
2100
|
size: t,
|
|
2101
2101
|
labelRight: r,
|
|
@@ -2118,7 +2118,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2118
2118
|
[s]: t === "large" && (r || a)
|
|
2119
2119
|
});
|
|
2120
2120
|
}
|
|
2121
|
-
},
|
|
2121
|
+
}, Za = ({
|
|
2122
2122
|
mode: e,
|
|
2123
2123
|
noBackground: t,
|
|
2124
2124
|
noTruncate: r,
|
|
@@ -2154,7 +2154,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2154
2154
|
return g("not-prose text-copy-lighter", {
|
|
2155
2155
|
truncate: !r
|
|
2156
2156
|
});
|
|
2157
|
-
},
|
|
2157
|
+
}, en = ({
|
|
2158
2158
|
mode: e,
|
|
2159
2159
|
noBackground: t,
|
|
2160
2160
|
variant: r
|
|
@@ -2184,13 +2184,13 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2184
2184
|
if (r === "selected")
|
|
2185
2185
|
return "bg-action-selected-dark";
|
|
2186
2186
|
}
|
|
2187
|
-
},
|
|
2187
|
+
}, tn = ({
|
|
2188
2188
|
radius: e
|
|
2189
2189
|
}) => g({
|
|
2190
2190
|
"rounded-full": e === "large",
|
|
2191
2191
|
"rounded-md": e === "medium",
|
|
2192
2192
|
"rounded-sm": e === "small"
|
|
2193
|
-
}),
|
|
2193
|
+
}), rn = ({
|
|
2194
2194
|
mode: e,
|
|
2195
2195
|
disabled: t,
|
|
2196
2196
|
variant: r
|
|
@@ -2220,7 +2220,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2220
2220
|
});
|
|
2221
2221
|
if (r === "selected")
|
|
2222
2222
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2223
|
-
},
|
|
2223
|
+
}, an = ({
|
|
2224
2224
|
mode: e,
|
|
2225
2225
|
disabled: t,
|
|
2226
2226
|
variant: r
|
|
@@ -2250,7 +2250,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2250
2250
|
});
|
|
2251
2251
|
if (r === "selected")
|
|
2252
2252
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2253
|
-
},
|
|
2253
|
+
}, nn = ({
|
|
2254
2254
|
mode: e,
|
|
2255
2255
|
noBorder: t,
|
|
2256
2256
|
variant: r
|
|
@@ -2280,7 +2280,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2280
2280
|
});
|
|
2281
2281
|
if (r === "selected")
|
|
2282
2282
|
return "border border-border-selected-dark";
|
|
2283
|
-
},
|
|
2283
|
+
}, on = ({
|
|
2284
2284
|
focusMode: e
|
|
2285
2285
|
}) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2286
2286
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -2306,32 +2306,32 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2306
2306
|
radius: E
|
|
2307
2307
|
}) => (c || (c = "primary"), r ? g(bt, t) : g(
|
|
2308
2308
|
bt,
|
|
2309
|
-
|
|
2309
|
+
Za({
|
|
2310
2310
|
mode: a,
|
|
2311
2311
|
variant: c,
|
|
2312
2312
|
noBackground: u,
|
|
2313
2313
|
noTruncate: m
|
|
2314
2314
|
}),
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2315
|
+
en({ mode: a, noBackground: u, variant: c }),
|
|
2316
|
+
tn({ radius: E }),
|
|
2317
|
+
Xa({
|
|
2318
2318
|
type: e,
|
|
2319
2319
|
size: i,
|
|
2320
2320
|
labelRight: h,
|
|
2321
2321
|
labelLeft: p,
|
|
2322
2322
|
align: f
|
|
2323
2323
|
}),
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
tn({ mode: a, variant: c, disabled: o }),
|
|
2324
|
+
Qa({ type: e, size: i, labelRight: h, labelLeft: p }),
|
|
2325
|
+
nn({ mode: a, variant: c, noBorder: d }),
|
|
2326
|
+
on({ focusMode: n }),
|
|
2328
2327
|
rn({ mode: a, variant: c, disabled: o }),
|
|
2328
|
+
an({ mode: a, variant: c, disabled: o }),
|
|
2329
2329
|
{
|
|
2330
2330
|
"w-full": s,
|
|
2331
2331
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
2332
2332
|
},
|
|
2333
2333
|
t
|
|
2334
|
-
)),
|
|
2334
|
+
)), sn = (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
|
}, Me = z.forwardRef((e, t) => {
|
|
@@ -2341,7 +2341,7 @@ const Va = process.env.NODE_ENV === "production", Ya = !Va, za = Ya ? "gizmette.
|
|
|
2341
2341
|
{
|
|
2342
2342
|
ref: t,
|
|
2343
2343
|
onClick: (o) => {
|
|
2344
|
-
|
|
2344
|
+
sn(o, a, r);
|
|
2345
2345
|
},
|
|
2346
2346
|
...n
|
|
2347
2347
|
}
|
|
@@ -2455,19 +2455,19 @@ const qe = z.forwardRef(
|
|
|
2455
2455
|
);
|
|
2456
2456
|
qe.displayName = "ButtonIcon";
|
|
2457
2457
|
/*!
|
|
2458
|
-
@versini/ui-button v4.0.
|
|
2458
|
+
@versini/ui-button v4.0.8
|
|
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/13/2025
|
|
2463
|
+
version: "4.0.8",
|
|
2464
|
+
buildTime: "01/13/2025 01:16 PM EST",
|
|
2465
2465
|
homepage: "https://github.com/aversini/ui-components",
|
|
2466
2466
|
license: "MIT"
|
|
2467
2467
|
});
|
|
2468
2468
|
} catch {
|
|
2469
2469
|
}
|
|
2470
|
-
const
|
|
2470
|
+
const cn = z.forwardRef(
|
|
2471
2471
|
({
|
|
2472
2472
|
children: e,
|
|
2473
2473
|
disabled: t = !1,
|
|
@@ -2544,26 +2544,26 @@ const sn = z.forwardRef(
|
|
|
2544
2544
|
) });
|
|
2545
2545
|
}
|
|
2546
2546
|
);
|
|
2547
|
-
|
|
2547
|
+
cn.displayName = "ButtonSort";
|
|
2548
2548
|
/*!
|
|
2549
|
-
@versini/ui-card v3.0.
|
|
2549
|
+
@versini/ui-card v3.0.2
|
|
2550
2550
|
© 2025 gizmette.com
|
|
2551
2551
|
*/
|
|
2552
2552
|
try {
|
|
2553
2553
|
window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
|
|
2554
|
-
version: "3.0.
|
|
2555
|
-
buildTime: "01/
|
|
2554
|
+
version: "3.0.2",
|
|
2555
|
+
buildTime: "01/13/2025 01:15 PM EST",
|
|
2556
2556
|
homepage: "https://github.com/aversini/ui-components",
|
|
2557
2557
|
license: "MIT"
|
|
2558
2558
|
});
|
|
2559
2559
|
} catch {
|
|
2560
2560
|
}
|
|
2561
2561
|
const Ae = "av-card";
|
|
2562
|
-
function
|
|
2562
|
+
function ln(e) {
|
|
2563
2563
|
const t = It();
|
|
2564
2564
|
return `${e}${t}`;
|
|
2565
2565
|
}
|
|
2566
|
-
const
|
|
2566
|
+
const dn = ({
|
|
2567
2567
|
className: e,
|
|
2568
2568
|
headerClassName: t,
|
|
2569
2569
|
bodyClassName: r,
|
|
@@ -2603,7 +2603,7 @@ const ln = ({
|
|
|
2603
2603
|
footer: p
|
|
2604
2604
|
};
|
|
2605
2605
|
};
|
|
2606
|
-
function
|
|
2606
|
+
function un({
|
|
2607
2607
|
id: e,
|
|
2608
2608
|
content: t,
|
|
2609
2609
|
userAriaLabelledby: r,
|
|
@@ -2611,7 +2611,7 @@ function dn({
|
|
|
2611
2611
|
}) {
|
|
2612
2612
|
return typeof t == "string" ? /* @__PURE__ */ l("h2", { id: e, className: a, children: t }) : r ? /* @__PURE__ */ l("div", { className: a, children: t }) : t ? /* @__PURE__ */ l("div", { className: a, id: e, children: t }) : null;
|
|
2613
2613
|
}
|
|
2614
|
-
const
|
|
2614
|
+
const mn = ({
|
|
2615
2615
|
header: e,
|
|
2616
2616
|
headerClassName: t,
|
|
2617
2617
|
footer: r,
|
|
@@ -2626,7 +2626,7 @@ const un = ({
|
|
|
2626
2626
|
...u
|
|
2627
2627
|
}) => {
|
|
2628
2628
|
let c = null, m = null;
|
|
2629
|
-
const f = typeof e == "string", E =
|
|
2629
|
+
const f = typeof e == "string", E = ln(Ae), w = dn({
|
|
2630
2630
|
className: o,
|
|
2631
2631
|
headerClassName: t,
|
|
2632
2632
|
bodyClassName: s,
|
|
@@ -2645,7 +2645,7 @@ const un = ({
|
|
|
2645
2645
|
...u,
|
|
2646
2646
|
children: [
|
|
2647
2647
|
/* @__PURE__ */ l(
|
|
2648
|
-
|
|
2648
|
+
un,
|
|
2649
2649
|
{
|
|
2650
2650
|
...c && { id: c },
|
|
2651
2651
|
content: e,
|
|
@@ -2689,19 +2689,19 @@ const un = ({
|
|
|
2689
2689
|
] });
|
|
2690
2690
|
};
|
|
2691
2691
|
/*!
|
|
2692
|
-
@versini/ui-svgicon v4.0.
|
|
2692
|
+
@versini/ui-svgicon v4.0.2
|
|
2693
2693
|
© 2025 gizmette.com
|
|
2694
2694
|
*/
|
|
2695
2695
|
try {
|
|
2696
2696
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2697
|
-
version: "4.0.
|
|
2698
|
-
buildTime: "01/13/2025
|
|
2697
|
+
version: "4.0.2",
|
|
2698
|
+
buildTime: "01/13/2025 01:15 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 hn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
2705
2705
|
$e,
|
|
2706
2706
|
{
|
|
2707
2707
|
defaultViewBox: "0 0 1200 500",
|
|
@@ -2719,7 +2719,7 @@ const mn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2719
2719
|
}
|
|
2720
2720
|
) })
|
|
2721
2721
|
}
|
|
2722
|
-
),
|
|
2722
|
+
), pn = ({
|
|
2723
2723
|
className: e,
|
|
2724
2724
|
viewBox: t,
|
|
2725
2725
|
title: r,
|
|
@@ -2752,7 +2752,7 @@ const mn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2752
2752
|
)
|
|
2753
2753
|
]
|
|
2754
2754
|
}
|
|
2755
|
-
),
|
|
2755
|
+
), gn = ({
|
|
2756
2756
|
className: e,
|
|
2757
2757
|
viewBox: t,
|
|
2758
2758
|
title: r,
|
|
@@ -2789,7 +2789,7 @@ const mn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2789
2789
|
]
|
|
2790
2790
|
}
|
|
2791
2791
|
);
|
|
2792
|
-
},
|
|
2792
|
+
}, yn = ({
|
|
2793
2793
|
className: e,
|
|
2794
2794
|
viewBox: t,
|
|
2795
2795
|
title: r,
|
|
@@ -2824,32 +2824,32 @@ const mn = ({ className: e, viewBox: t, ...r }) => /* @__PURE__ */ l(
|
|
|
2824
2824
|
}
|
|
2825
2825
|
);
|
|
2826
2826
|
/*!
|
|
2827
|
-
@versini/ui-icons v4.4.
|
|
2827
|
+
@versini/ui-icons v4.4.1
|
|
2828
2828
|
© 2025 gizmette.com
|
|
2829
2829
|
*/
|
|
2830
2830
|
try {
|
|
2831
2831
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2832
|
-
version: "4.4.
|
|
2833
|
-
buildTime: "01/13/2025
|
|
2832
|
+
version: "4.4.1",
|
|
2833
|
+
buildTime: "01/13/2025 01:15 PM EST",
|
|
2834
2834
|
homepage: "https://github.com/aversini/ui-components",
|
|
2835
2835
|
license: "MIT"
|
|
2836
2836
|
});
|
|
2837
2837
|
} catch {
|
|
2838
2838
|
}
|
|
2839
2839
|
/*!
|
|
2840
|
-
@versini/ui-main v3.0.
|
|
2840
|
+
@versini/ui-main v3.0.2
|
|
2841
2841
|
© 2025 gizmette.com
|
|
2842
2842
|
*/
|
|
2843
2843
|
try {
|
|
2844
2844
|
window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
|
|
2845
|
-
version: "3.0.
|
|
2846
|
-
buildTime: "01/
|
|
2845
|
+
version: "3.0.2",
|
|
2846
|
+
buildTime: "01/13/2025 01:15 PM EST",
|
|
2847
2847
|
homepage: "https://github.com/aversini/ui-components",
|
|
2848
2848
|
license: "MIT"
|
|
2849
2849
|
});
|
|
2850
2850
|
} catch {
|
|
2851
2851
|
}
|
|
2852
|
-
const
|
|
2852
|
+
const fn = "av-main", bn = ({
|
|
2853
2853
|
children: e,
|
|
2854
2854
|
className: t,
|
|
2855
2855
|
raw: r = !1,
|
|
@@ -2857,7 +2857,7 @@ const yn = "av-main", fn = ({
|
|
|
2857
2857
|
noPadding: n = !1
|
|
2858
2858
|
}) => {
|
|
2859
2859
|
const o = g(
|
|
2860
|
-
|
|
2860
|
+
fn,
|
|
2861
2861
|
{
|
|
2862
2862
|
"mt-2 sm:mt-3": !r && !a,
|
|
2863
2863
|
"p-2": !r && !n,
|
|
@@ -2866,10 +2866,10 @@ const yn = "av-main", fn = ({
|
|
|
2866
2866
|
t
|
|
2867
2867
|
);
|
|
2868
2868
|
return /* @__PURE__ */ l("main", { className: o, children: e });
|
|
2869
|
-
},
|
|
2869
|
+
}, En = "av-flexgrid", _e = "av-flexgrid-item", Ce = 0.25, Xe = z.createContext({
|
|
2870
2870
|
columnGap: 0,
|
|
2871
2871
|
rowGap: 0
|
|
2872
|
-
}),
|
|
2872
|
+
}), wn = ({
|
|
2873
2873
|
children: e,
|
|
2874
2874
|
className: t,
|
|
2875
2875
|
columnGap: r = 1,
|
|
@@ -2895,7 +2895,7 @@ const yn = "av-main", fn = ({
|
|
|
2895
2895
|
marginLeft: r * -1 * Ce + "rem",
|
|
2896
2896
|
marginTop: a * -1 * Ce + "rem"
|
|
2897
2897
|
}, u = g(
|
|
2898
|
-
|
|
2898
|
+
En,
|
|
2899
2899
|
"box-border flex flex-wrap"
|
|
2900
2900
|
), c = { columnGap: r, rowGap: a };
|
|
2901
2901
|
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: p, ...h, children: /* @__PURE__ */ l(Xe.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: p, ...h, children: /* @__PURE__ */ l(Xe.Provider, { value: c, children: e }) });
|
|
@@ -2972,7 +2972,7 @@ const yn = "av-main", fn = ({
|
|
|
2972
2972
|
"lg:basis-full": e === 12 && t === "lg",
|
|
2973
2973
|
"xl:basis-full": e === 12 && t === "xl",
|
|
2974
2974
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
2975
|
-
}),
|
|
2975
|
+
}), Tn = ({
|
|
2976
2976
|
className: e,
|
|
2977
2977
|
span: t
|
|
2978
2978
|
}) => {
|
|
@@ -3004,33 +3004,33 @@ const yn = "av-main", fn = ({
|
|
|
3004
3004
|
const { columnGap: n, rowGap: o } = Tt(Xe), s = {
|
|
3005
3005
|
paddingLeft: n * Ce + "rem",
|
|
3006
3006
|
paddingTop: o * Ce + "rem"
|
|
3007
|
-
}, i =
|
|
3007
|
+
}, i = Tn({
|
|
3008
3008
|
className: t,
|
|
3009
3009
|
span: r
|
|
3010
3010
|
});
|
|
3011
3011
|
return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
|
|
3012
3012
|
};
|
|
3013
3013
|
/*!
|
|
3014
|
-
@versini/ui-system v3.0.
|
|
3014
|
+
@versini/ui-system v3.0.2
|
|
3015
3015
|
© 2025 gizmette.com
|
|
3016
3016
|
*/
|
|
3017
3017
|
try {
|
|
3018
3018
|
window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
|
|
3019
|
-
version: "3.0.
|
|
3020
|
-
buildTime: "01/
|
|
3019
|
+
version: "3.0.2",
|
|
3020
|
+
buildTime: "01/13/2025 01:16 PM EST",
|
|
3021
3021
|
homepage: "https://github.com/aversini/ui-components",
|
|
3022
3022
|
license: "MIT"
|
|
3023
3023
|
});
|
|
3024
3024
|
} catch {
|
|
3025
3025
|
}
|
|
3026
|
-
const Xt = "av-text-input",
|
|
3027
|
-
function
|
|
3026
|
+
const Xt = "av-text-input", In = "av-text-input-wrapper", Ye = "av-text-input-helper-text";
|
|
3027
|
+
function Sn() {
|
|
3028
3028
|
const e = M(!1);
|
|
3029
3029
|
return Q(() => (e.current = !0, () => {
|
|
3030
3030
|
e.current = !1;
|
|
3031
3031
|
}), []), q(() => e.current, []);
|
|
3032
3032
|
}
|
|
3033
|
-
const
|
|
3033
|
+
const _n = {
|
|
3034
3034
|
x: 0,
|
|
3035
3035
|
y: 0,
|
|
3036
3036
|
width: 0,
|
|
@@ -3040,8 +3040,8 @@ const Sn = {
|
|
|
3040
3040
|
bottom: 0,
|
|
3041
3041
|
right: 0
|
|
3042
3042
|
};
|
|
3043
|
-
function
|
|
3044
|
-
const t =
|
|
3043
|
+
function kn(e) {
|
|
3044
|
+
const t = Sn(), r = M(0), a = M(null), [n, o] = j(_n), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3045
3045
|
const d = i[0];
|
|
3046
3046
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3047
3047
|
a.current && t() && o(d.contentRect);
|
|
@@ -3051,7 +3051,7 @@ function _n(e) {
|
|
|
3051
3051
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
3052
3052
|
}), [s, e]), [a, n];
|
|
3053
3053
|
}
|
|
3054
|
-
function
|
|
3054
|
+
function An(e) {
|
|
3055
3055
|
const t = It();
|
|
3056
3056
|
if (!e)
|
|
3057
3057
|
return t;
|
|
@@ -3062,7 +3062,7 @@ function kn(e) {
|
|
|
3062
3062
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
|
-
const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT",
|
|
3065
|
+
const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", vn = {
|
|
3066
3066
|
alert: null,
|
|
3067
3067
|
alertdialog: null,
|
|
3068
3068
|
log: "polite",
|
|
@@ -3070,7 +3070,7 @@ const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", An = {
|
|
|
3070
3070
|
progressbar: null,
|
|
3071
3071
|
status: "polite",
|
|
3072
3072
|
timer: "assertive"
|
|
3073
|
-
},
|
|
3073
|
+
}, Rn = (e, t) => {
|
|
3074
3074
|
switch (t == null ? void 0 : t.type) {
|
|
3075
3075
|
case Qt:
|
|
3076
3076
|
return {
|
|
@@ -3085,7 +3085,7 @@ const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", An = {
|
|
|
3085
3085
|
default:
|
|
3086
3086
|
return e;
|
|
3087
3087
|
}
|
|
3088
|
-
},
|
|
3088
|
+
}, Nn = ({
|
|
3089
3089
|
onAnnouncementClear: e,
|
|
3090
3090
|
dispatch: t
|
|
3091
3091
|
}) => {
|
|
@@ -3103,13 +3103,13 @@ const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", An = {
|
|
|
3103
3103
|
type: Qt,
|
|
3104
3104
|
payload: e
|
|
3105
3105
|
}), t && (r.current = setTimeout(
|
|
3106
|
-
() =>
|
|
3106
|
+
() => Nn({
|
|
3107
3107
|
onAnnouncementClear: a,
|
|
3108
3108
|
dispatch: n
|
|
3109
3109
|
}),
|
|
3110
3110
|
t
|
|
3111
3111
|
));
|
|
3112
|
-
},
|
|
3112
|
+
}, xn = ({
|
|
3113
3113
|
children: e,
|
|
3114
3114
|
announcementTimeoutRef: t,
|
|
3115
3115
|
announcementDelay: r,
|
|
@@ -3143,12 +3143,12 @@ function er({
|
|
|
3143
3143
|
visible: i,
|
|
3144
3144
|
...d
|
|
3145
3145
|
}) {
|
|
3146
|
-
const h = M(null), p = M(null), [u, c] = wt(
|
|
3146
|
+
const h = M(null), p = M(null), [u, c] = wt(Rn, {
|
|
3147
3147
|
announcement: null
|
|
3148
3148
|
});
|
|
3149
3149
|
let m = r;
|
|
3150
|
-
typeof m > "u" && (m = a ?
|
|
3151
|
-
|
|
3150
|
+
typeof m > "u" && (m = a ? vn[a] : "assertive"), Q(() => {
|
|
3151
|
+
xn({
|
|
3152
3152
|
announcementTimeoutRef: h,
|
|
3153
3153
|
announcementDelay: n,
|
|
3154
3154
|
children: e,
|
|
@@ -3178,33 +3178,33 @@ function er({
|
|
|
3178
3178
|
);
|
|
3179
3179
|
}
|
|
3180
3180
|
/*!
|
|
3181
|
-
@versini/ui-liveregion v1.3.
|
|
3181
|
+
@versini/ui-liveregion v1.3.2
|
|
3182
3182
|
© 2025 gizmette.com
|
|
3183
3183
|
*/
|
|
3184
3184
|
try {
|
|
3185
3185
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
3186
|
-
version: "1.3.
|
|
3187
|
-
buildTime: "01/
|
|
3186
|
+
version: "1.3.2",
|
|
3187
|
+
buildTime: "01/13/2025 01:15 PM EST",
|
|
3188
3188
|
homepage: "https://github.com/aversini/ui-components",
|
|
3189
3189
|
license: "MIT"
|
|
3190
3190
|
});
|
|
3191
3191
|
} catch {
|
|
3192
3192
|
}
|
|
3193
|
-
const
|
|
3193
|
+
const Cn = ({
|
|
3194
3194
|
mode: e
|
|
3195
3195
|
}) => g({
|
|
3196
3196
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
3197
3197
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
3198
3198
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
3199
3199
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
3200
|
-
}),
|
|
3200
|
+
}), On = ({
|
|
3201
3201
|
focusMode: e
|
|
3202
3202
|
}) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
3203
3203
|
"focus:outline-focus-dark": e === "dark",
|
|
3204
3204
|
"focus:outline-focus-light": e === "light",
|
|
3205
3205
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
3206
3206
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
3207
|
-
}),
|
|
3207
|
+
}), Pn = ({
|
|
3208
3208
|
noBorder: e,
|
|
3209
3209
|
error: t
|
|
3210
3210
|
}) => g("border-2", {
|
|
@@ -3212,7 +3212,7 @@ const xn = ({
|
|
|
3212
3212
|
"focus:border-border-dark": !e && t,
|
|
3213
3213
|
"border-border-error-dark": !e && t,
|
|
3214
3214
|
"border-transparent": e
|
|
3215
|
-
}),
|
|
3215
|
+
}), Dn = ({
|
|
3216
3216
|
disabled: e,
|
|
3217
3217
|
raw: t,
|
|
3218
3218
|
error: r,
|
|
@@ -3236,7 +3236,7 @@ const xn = ({
|
|
|
3236
3236
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
|
|
3237
3237
|
"text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
|
|
3238
3238
|
});
|
|
3239
|
-
},
|
|
3239
|
+
}, Ln = ({
|
|
3240
3240
|
error: e,
|
|
3241
3241
|
raw: t,
|
|
3242
3242
|
mode: r,
|
|
@@ -3263,7 +3263,7 @@ const xn = ({
|
|
|
3263
3263
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
3264
3264
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
3265
3265
|
});
|
|
3266
|
-
},
|
|
3266
|
+
}, Mn = ({
|
|
3267
3267
|
className: e,
|
|
3268
3268
|
inputClassName: t,
|
|
3269
3269
|
raw: r,
|
|
@@ -3277,7 +3277,7 @@ const xn = ({
|
|
|
3277
3277
|
}) => {
|
|
3278
3278
|
const p = r ? e : g(
|
|
3279
3279
|
"relative flex w-full flex-col justify-center",
|
|
3280
|
-
|
|
3280
|
+
In,
|
|
3281
3281
|
e
|
|
3282
3282
|
);
|
|
3283
3283
|
let u = "";
|
|
@@ -3302,19 +3302,19 @@ const xn = ({
|
|
|
3302
3302
|
Xt,
|
|
3303
3303
|
u,
|
|
3304
3304
|
"rounded-md text-base px-4",
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3305
|
+
Cn({ mode: s }),
|
|
3306
|
+
On({ focusMode: i }),
|
|
3307
|
+
Pn({ noBorder: n, error: o }),
|
|
3308
3308
|
{
|
|
3309
3309
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
3310
3310
|
},
|
|
3311
3311
|
t
|
|
3312
|
-
), m = r ? void 0 : "sr-only", f =
|
|
3312
|
+
), m = r ? void 0 : "sr-only", f = Dn({
|
|
3313
3313
|
disabled: a,
|
|
3314
3314
|
raw: r,
|
|
3315
3315
|
error: o,
|
|
3316
3316
|
mode: s
|
|
3317
|
-
}), E =
|
|
3317
|
+
}), E = Ln({
|
|
3318
3318
|
error: o,
|
|
3319
3319
|
raw: r,
|
|
3320
3320
|
mode: s,
|
|
@@ -3350,13 +3350,13 @@ const xn = ({
|
|
|
3350
3350
|
size: I = "md",
|
|
3351
3351
|
...$
|
|
3352
3352
|
}, U) => {
|
|
3353
|
-
const [K, N] =
|
|
3353
|
+
const [K, N] = kn(), [H, W] = j(0), x = An({ id: e, prefix: `${Xt}-` }), pe = `${t} error, ${f}`, Z = M(null), v = M(null), P = {
|
|
3354
3354
|
xs: { label: "-25px", helperText: "30px" },
|
|
3355
3355
|
sm: { label: "-29px", helperText: "34px" },
|
|
3356
3356
|
md: { label: "-33px", helperText: "38px" },
|
|
3357
3357
|
lg: { label: "-15px", helperText: "22px" },
|
|
3358
3358
|
xl: { label: "-19px", helperText: "25px" }
|
|
3359
|
-
}, B =
|
|
3359
|
+
}, B = Mn({
|
|
3360
3360
|
className: o,
|
|
3361
3361
|
inputClassName: s,
|
|
3362
3362
|
error: a,
|
|
@@ -3435,7 +3435,7 @@ const xn = ({
|
|
|
3435
3435
|
}
|
|
3436
3436
|
);
|
|
3437
3437
|
at.displayName = "TextInput";
|
|
3438
|
-
function
|
|
3438
|
+
function $n(e) {
|
|
3439
3439
|
return St(() => e.every((t) => t == null) ? () => {
|
|
3440
3440
|
} : (t) => {
|
|
3441
3441
|
e.forEach((r) => {
|
|
@@ -3443,7 +3443,7 @@ function Mn(e) {
|
|
|
3443
3443
|
});
|
|
3444
3444
|
}, e);
|
|
3445
3445
|
}
|
|
3446
|
-
const
|
|
3446
|
+
const Un = 500, Kn = 5e3, Hn = 2e4, tr = z.forwardRef(
|
|
3447
3447
|
({
|
|
3448
3448
|
name: e,
|
|
3449
3449
|
disabled: t,
|
|
@@ -3460,19 +3460,19 @@ const $n = 500, Un = 5e3, Kn = 2e4, tr = z.forwardRef(
|
|
|
3460
3460
|
const [c, m] = j(!0), [f, E] = j({
|
|
3461
3461
|
message: null,
|
|
3462
3462
|
politeness: null
|
|
3463
|
-
}), w = M(!0), I = M(null), $ = M(null), U =
|
|
3463
|
+
}), w = M(!0), I = M(null), $ = M(null), U = $n([u, $]), K = c ? "Show" : "Hide", N = () => {
|
|
3464
3464
|
I.current && clearTimeout(I.current), w.current || (I.current = setTimeout(() => {
|
|
3465
3465
|
w.current = !0, m(!0), E({
|
|
3466
|
-
announcementTimeout:
|
|
3466
|
+
announcementTimeout: Kn,
|
|
3467
3467
|
politeness: "polite",
|
|
3468
3468
|
message: `${r} hiding characters`
|
|
3469
3469
|
}), n && n(!0);
|
|
3470
|
-
},
|
|
3470
|
+
}, Hn));
|
|
3471
3471
|
}, H = (v) => {
|
|
3472
3472
|
v.preventDefault();
|
|
3473
3473
|
const P = !w.current;
|
|
3474
3474
|
w.current = P, N(), m(P), E({
|
|
3475
|
-
announcementTimeout:
|
|
3475
|
+
announcementTimeout: Un,
|
|
3476
3476
|
politeness: "assertive",
|
|
3477
3477
|
message: P ? "Characters hidden" : "Characters showing"
|
|
3478
3478
|
}), n && n(P);
|
|
@@ -3526,19 +3526,19 @@ const $n = 500, Un = 5e3, Kn = 2e4, tr = z.forwardRef(
|
|
|
3526
3526
|
);
|
|
3527
3527
|
tr.displayName = "TextInputMask";
|
|
3528
3528
|
/*!
|
|
3529
|
-
@versini/ui-textinput v3.0.
|
|
3529
|
+
@versini/ui-textinput v3.0.2
|
|
3530
3530
|
© 2025 gizmette.com
|
|
3531
3531
|
*/
|
|
3532
3532
|
try {
|
|
3533
3533
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
3534
|
-
version: "3.0.
|
|
3535
|
-
buildTime: "01/
|
|
3534
|
+
version: "3.0.2",
|
|
3535
|
+
buildTime: "01/13/2025 01:15 PM EST",
|
|
3536
3536
|
homepage: "https://github.com/aversini/ui-components",
|
|
3537
3537
|
license: "MIT"
|
|
3538
3538
|
});
|
|
3539
3539
|
} catch {
|
|
3540
3540
|
}
|
|
3541
|
-
const
|
|
3541
|
+
const Wn = "ASK! ME! ANYTHING!", rr = "Callisto", Bn = "Log in", Gn = "Sign in with a Passkey", Wo = "Log out", Jn = "Password", Bo = "Profile", Go = "Settings", Jo = "Chat history", Vo = "About", Yo = "Type your question here", zo = "{{clipboard}}", Fo = `Sometimes, ${rr} hallucinates. Review important details.`, jo = "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.", qo = {
|
|
3542
3542
|
PREFERENCES: {
|
|
3543
3543
|
TITLE: "User profile",
|
|
3544
3544
|
NAME: "Name",
|
|
@@ -3576,10 +3576,10 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Bn = "Log in", Gn = "Sign in w
|
|
|
3576
3576
|
TITLE: "AI Engine"
|
|
3577
3577
|
}
|
|
3578
3578
|
}, Vn = () => /* @__PURE__ */ O("div", { className: "flex items-center justify-center", children: [
|
|
3579
|
-
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(
|
|
3579
|
+
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(hn, {}) }),
|
|
3580
3580
|
/* @__PURE__ */ O("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3581
|
-
/* @__PURE__ */ l("h1", { children:
|
|
3582
|
-
/* @__PURE__ */ l("h2", { children:
|
|
3581
|
+
/* @__PURE__ */ l("h1", { children: rr }),
|
|
3582
|
+
/* @__PURE__ */ l("h2", { children: Wn })
|
|
3583
3583
|
] })
|
|
3584
3584
|
] }), Yn = () => {
|
|
3585
3585
|
const { login: e, logoutReason: t, loginWithPasskey: r } = jt(), [a, n] = j(""), [o, s] = j(""), [i, d] = j(!0), [h, p] = j({
|
|
@@ -3597,9 +3597,9 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Bn = "Log in", Gn = "Sign in w
|
|
|
3597
3597
|
}), Q(() => {
|
|
3598
3598
|
t && s(t);
|
|
3599
3599
|
}, [t]), /* @__PURE__ */ l(Qe, { children: /* @__PURE__ */ O(
|
|
3600
|
-
|
|
3600
|
+
bn,
|
|
3601
3601
|
{
|
|
3602
|
-
className:
|
|
3602
|
+
className: qa({
|
|
3603
3603
|
extraClass: "mt-5"
|
|
3604
3604
|
}),
|
|
3605
3605
|
noMargin: !0,
|
|
@@ -3608,13 +3608,13 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Bn = "Log in", Gn = "Sign in w
|
|
|
3608
3608
|
/* @__PURE__ */ l(
|
|
3609
3609
|
"div",
|
|
3610
3610
|
{
|
|
3611
|
-
className:
|
|
3611
|
+
className: ja({
|
|
3612
3612
|
extraClass: "rounded-md"
|
|
3613
3613
|
}),
|
|
3614
3614
|
children: /* @__PURE__ */ l(Vn, {})
|
|
3615
3615
|
}
|
|
3616
3616
|
),
|
|
3617
|
-
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(
|
|
3617
|
+
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(wn, { alignHorizontal: "center", children: /* @__PURE__ */ l(te, { span: 6, children: /* @__PURE__ */ O(mn, { mode: "dark", children: [
|
|
3618
3618
|
/* @__PURE__ */ l(te, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
|
|
3619
3619
|
/* @__PURE__ */ l(te, { span: 12, children: /* @__PURE__ */ l(
|
|
3620
3620
|
at,
|
|
@@ -3649,7 +3649,15 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Bn = "Log in", Gn = "Sign in w
|
|
|
3649
3649
|
focusMode: "light",
|
|
3650
3650
|
name: "password",
|
|
3651
3651
|
label: Jn,
|
|
3652
|
-
rightElement: /* @__PURE__ */ l(
|
|
3652
|
+
rightElement: /* @__PURE__ */ l(
|
|
3653
|
+
qe,
|
|
3654
|
+
{
|
|
3655
|
+
focusMode: "light",
|
|
3656
|
+
mode: "dark",
|
|
3657
|
+
label: i ? "Show" : "Hide",
|
|
3658
|
+
children: i ? /* @__PURE__ */ l(yn, {}) : /* @__PURE__ */ l(pn, {})
|
|
3659
|
+
}
|
|
3660
|
+
),
|
|
3653
3661
|
onMaskChange: d,
|
|
3654
3662
|
onChange: (c) => {
|
|
3655
3663
|
p({
|
|
@@ -3684,23 +3692,23 @@ const Hn = "ASK! ME! ANYTHING!", Wn = "Callisto", Bn = "Log in", Gn = "Sign in w
|
|
|
3684
3692
|
className: "mb-4",
|
|
3685
3693
|
labelRight: Gn,
|
|
3686
3694
|
onClick: r,
|
|
3687
|
-
children: /* @__PURE__ */ l(
|
|
3695
|
+
children: /* @__PURE__ */ l(gn, { size: "size-7" })
|
|
3688
3696
|
}
|
|
3689
3697
|
) })
|
|
3690
3698
|
] }) }) }) })
|
|
3691
3699
|
]
|
|
3692
3700
|
}
|
|
3693
3701
|
) });
|
|
3694
|
-
}, zn = new URL(document.location.href).searchParams, Fn = !!zn.get("debug") || !1, jn =
|
|
3702
|
+
}, zn = new URL(document.location.href).searchParams, Fn = !!zn.get("debug") || !1, jn = sr(() => import(
|
|
3695
3703
|
/* webpackChunkName: "LazyApp" */
|
|
3696
|
-
"./App.
|
|
3704
|
+
"./App.BXAqV9_e.js"
|
|
3697
3705
|
).then((e) => e.App)), qn = ({ isComponent: e }) => {
|
|
3698
3706
|
const { isAuthenticated: t } = jt();
|
|
3699
|
-
return t ? /* @__PURE__ */ l(
|
|
3707
|
+
return t ? /* @__PURE__ */ l(ir, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jn, { isComponent: e }) }) : /* @__PURE__ */ l(Yn, {});
|
|
3700
3708
|
}, Xn = ({
|
|
3701
3709
|
isComponent: e = !1,
|
|
3702
|
-
domain: t =
|
|
3703
|
-
}) => /* @__PURE__ */ l(
|
|
3710
|
+
domain: t = Fa
|
|
3711
|
+
}) => /* @__PURE__ */ l(Ma, { clientId: $a, domain: t, debug: Fn, children: /* @__PURE__ */ l(qn, { isComponent: e }) }), Xo = ({ domain: e }) => /* @__PURE__ */ l(Xn, { isComponent: !0, domain: e });
|
|
3704
3712
|
export {
|
|
3705
3713
|
Vo as ABOUT_TITLE,
|
|
3706
3714
|
fo as ACTION_MESSAGE,
|
|
@@ -3712,18 +3720,19 @@ export {
|
|
|
3712
3720
|
So as ACTION_SORT,
|
|
3713
3721
|
To as ACTION_STREAMING,
|
|
3714
3722
|
_o as ACTION_TOGGLE_PROMPT,
|
|
3715
|
-
|
|
3723
|
+
rr as APP_NAME,
|
|
3716
3724
|
qt as C,
|
|
3717
|
-
|
|
3725
|
+
qo as CARDS,
|
|
3718
3726
|
zo as CLIPBOARD_PROMPT,
|
|
3719
3727
|
po as DEFAULT_AI_ENGINE,
|
|
3720
3728
|
yo as ENGINE_ANTHROPIC,
|
|
3721
3729
|
go as ENGINE_OPENAI,
|
|
3722
3730
|
ho as ERROR_MESSAGE,
|
|
3731
|
+
Fo as FOOTER_DISCLAIMER,
|
|
3723
3732
|
Jo as HISTORY_TITLE,
|
|
3724
3733
|
Oo as INFINITE_SCROLL_LIMIT,
|
|
3725
3734
|
Co as INFINITE_SCROLL_THRESHOLD,
|
|
3726
|
-
|
|
3735
|
+
wn as L,
|
|
3727
3736
|
vo as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3728
3737
|
Ao as LOCAL_STORAGE_PREFIX,
|
|
3729
3738
|
Ro as LOCAL_STORAGE_SEARCH,
|
|
@@ -3733,10 +3742,10 @@ export {
|
|
|
3733
3742
|
ue as M,
|
|
3734
3743
|
qe as P,
|
|
3735
3744
|
Bo as PROFILE_TITLE,
|
|
3736
|
-
|
|
3745
|
+
jo as PROMPTS_DESCRIPTION,
|
|
3737
3746
|
Po as PROMPT_CLASSNAME,
|
|
3738
3747
|
Do as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
3739
|
-
|
|
3748
|
+
mn as R,
|
|
3740
3749
|
co as ROLE_ASSISTANT,
|
|
3741
3750
|
mo as ROLE_HIDDEN,
|
|
3742
3751
|
uo as ROLE_INTERNAL,
|
|
@@ -3744,20 +3753,20 @@ export {
|
|
|
3744
3753
|
io as ROLE_USER,
|
|
3745
3754
|
Go as SETTINGS_TITLE,
|
|
3746
3755
|
xo as STATS_SEPARATOR,
|
|
3747
|
-
|
|
3756
|
+
Xo as SassySaint,
|
|
3748
3757
|
Yo as TYPE_QUESTION,
|
|
3749
3758
|
Ho as debounce,
|
|
3750
3759
|
Uo as durationFormatter,
|
|
3751
3760
|
$e as g,
|
|
3752
3761
|
Lo as getCurrentGeoLocation,
|
|
3753
|
-
|
|
3754
|
-
|
|
3762
|
+
qa as getMainPaddingClass,
|
|
3763
|
+
ja as getMessageContaintWrapperClass,
|
|
3755
3764
|
$o as isLastMessageFromRole,
|
|
3756
3765
|
te as j,
|
|
3757
3766
|
Ko as pluralize,
|
|
3758
|
-
|
|
3767
|
+
bn as r,
|
|
3759
3768
|
Mo as renderDataAsList,
|
|
3760
3769
|
jt as un,
|
|
3761
3770
|
at as ye,
|
|
3762
|
-
|
|
3771
|
+
gn as z
|
|
3763
3772
|
};
|