@versini/sassysaint 5.4.3 → 5.4.5
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/{LazyApp.BuqWs8m7.js → LazyApp.C-ghWo2j.js} +351 -297
- package/dist/chunks/{LazyHeader.D57r_E9S.js → LazyHeader.CHy11tdF.js} +792 -737
- package/dist/chunks/{LazyMarkdownWithExtra.DTnPCsyx.js → LazyMarkdownWithExtra.CRBiqKQo.js} +3 -3
- package/dist/chunks/{LazyMessageAssistant.D5CSB7UV.js → LazyMessageAssistant.ByDEgy53.js} +195 -181
- package/dist/chunks/{index.CnlfkUg1.js → index.CTGK59bg.js} +359 -307
- package/dist/chunks/{index.C2RuFHK-.js → index.Cul7Y08v.js} +644 -543
- package/dist/chunks/index.DaIz2ggm.CWKMlVvg.js +99 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/index.MEUopFRx.6qFMhBMt.js +0 -258
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as l, jsxs as
|
|
2
|
-
import P, { createContext as cr, useReducer as
|
|
3
|
-
import
|
|
4
|
-
var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r,
|
|
1
|
+
import { jsx as l, jsxs as _, Fragment as fe } from "react/jsx-runtime";
|
|
2
|
+
import P, { createContext as cr, useReducer as _t, useRef as K, useCallback as X, useEffect as Z, useContext as Xe, useSyncExternalStore as lr, useId as Tt, useState as q, useLayoutEffect as st, useMemo as St, lazy as vt, Suspense as At } from "react";
|
|
3
|
+
import y from "clsx";
|
|
4
|
+
var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
6
6
|
@versini/auth-provider v7.4.0
|
|
7
7
|
© 2024 gizmette.com
|
|
@@ -15,7 +15,7 @@ try {
|
|
|
15
15
|
});
|
|
16
16
|
} catch {
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function V(e) {
|
|
19
19
|
const t = new Uint8Array(e);
|
|
20
20
|
let r = "";
|
|
21
21
|
for (const a of t)
|
|
@@ -31,7 +31,7 @@ function Ne(e) {
|
|
|
31
31
|
function Qe() {
|
|
32
32
|
return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function kt(e) {
|
|
35
35
|
const { id: t } = e;
|
|
36
36
|
return {
|
|
37
37
|
...e,
|
|
@@ -157,7 +157,7 @@ async function gr(e) {
|
|
|
157
157
|
...e.user,
|
|
158
158
|
id: Ne(e.user.id)
|
|
159
159
|
},
|
|
160
|
-
excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(
|
|
160
|
+
excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(kt)
|
|
161
161
|
} };
|
|
162
162
|
t.signal = Rt.createNewAbortSignal();
|
|
163
163
|
let r;
|
|
@@ -176,29 +176,29 @@ async function gr(e) {
|
|
|
176
176
|
try {
|
|
177
177
|
u = o.getPublicKeyAlgorithm();
|
|
178
178
|
} catch (c) {
|
|
179
|
-
|
|
179
|
+
Ke("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
181
|
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
183
183
|
try {
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
|
-
c !== null && (h =
|
|
185
|
+
c !== null && (h = V(c));
|
|
186
186
|
} catch (c) {
|
|
187
|
-
|
|
187
|
+
Ke("getPublicKey()", c);
|
|
188
188
|
}
|
|
189
189
|
let p;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
|
-
p =
|
|
192
|
+
p = V(o.getAuthenticatorData());
|
|
193
193
|
} catch (c) {
|
|
194
|
-
|
|
194
|
+
Ke("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
198
|
-
rawId:
|
|
198
|
+
rawId: V(n),
|
|
199
199
|
response: {
|
|
200
|
-
attestationObject:
|
|
201
|
-
clientDataJSON:
|
|
200
|
+
attestationObject: V(o.attestationObject),
|
|
201
|
+
clientDataJSON: V(o.clientDataJSON),
|
|
202
202
|
transports: i,
|
|
203
203
|
publicKeyAlgorithm: u,
|
|
204
204
|
publicKey: h,
|
|
@@ -209,17 +209,17 @@ async function gr(e) {
|
|
|
209
209
|
authenticatorAttachment: xt(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
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 yr() {
|
|
217
217
|
if (!Qe())
|
|
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 fr({ error: e, options: t }) {
|
|
223
223
|
const { publicKey: r } = t;
|
|
224
224
|
if (!r)
|
|
225
225
|
throw Error("options was missing required publicKey property");
|
|
@@ -265,14 +265,14 @@ async function br(e, t = !1) {
|
|
|
265
265
|
if (!Qe())
|
|
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 = (c = e.allowCredentials) == null ? void 0 : c.map(
|
|
268
|
+
((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(kt));
|
|
269
269
|
const a = {
|
|
270
270
|
...e,
|
|
271
271
|
challenge: Ne(e.challenge),
|
|
272
272
|
allowCredentials: r
|
|
273
273
|
}, n = {};
|
|
274
274
|
if (t) {
|
|
275
|
-
if (!await
|
|
275
|
+
if (!await yr())
|
|
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,19 +283,19 @@ async function br(e, t = !1) {
|
|
|
283
283
|
try {
|
|
284
284
|
o = await navigator.credentials.get(n);
|
|
285
285
|
} catch (d) {
|
|
286
|
-
throw
|
|
286
|
+
throw fr({ error: d, options: n });
|
|
287
287
|
}
|
|
288
288
|
if (!o)
|
|
289
289
|
throw new Error("Authentication was not completed");
|
|
290
290
|
const { id: s, rawId: i, response: u, type: h } = o;
|
|
291
291
|
let p;
|
|
292
|
-
return u.userHandle && (p =
|
|
292
|
+
return u.userHandle && (p = V(u.userHandle)), {
|
|
293
293
|
id: s,
|
|
294
|
-
rawId:
|
|
294
|
+
rawId: V(i),
|
|
295
295
|
response: {
|
|
296
|
-
authenticatorData:
|
|
297
|
-
clientDataJSON:
|
|
298
|
-
signature:
|
|
296
|
+
authenticatorData: V(u.authenticatorData),
|
|
297
|
+
clientDataJSON: V(u.clientDataJSON),
|
|
298
|
+
signature: V(u.signature),
|
|
299
299
|
userHandle: p
|
|
300
300
|
},
|
|
301
301
|
type: h,
|
|
@@ -325,7 +325,7 @@ const ue = {
|
|
|
325
325
|
PASSKEY: "passkey"
|
|
326
326
|
}, Ct = {
|
|
327
327
|
CLIENT_ID: "X-Auth-ClientId"
|
|
328
|
-
},
|
|
328
|
+
}, k = {
|
|
329
329
|
ALG: "RS256",
|
|
330
330
|
USER_ID_KEY: "sub",
|
|
331
331
|
USERNAME_KEY: "username",
|
|
@@ -359,7 +359,7 @@ function wr(...e) {
|
|
|
359
359
|
r.set(n, a), a += n.length;
|
|
360
360
|
return r;
|
|
361
361
|
}
|
|
362
|
-
const
|
|
362
|
+
const Ir = (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 Tr = (e) => {
|
|
|
368
368
|
let t = e;
|
|
369
369
|
t instanceof Uint8Array && (t = be.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
371
|
+
return Ir(t);
|
|
372
372
|
} catch {
|
|
373
373
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
374
374
|
}
|
|
@@ -380,12 +380,12 @@ let O = class extends Error {
|
|
|
380
380
|
}
|
|
381
381
|
};
|
|
382
382
|
O.code = "ERR_JOSE_GENERIC";
|
|
383
|
-
let
|
|
383
|
+
let M = class extends O {
|
|
384
384
|
constructor(t, r, a = "unspecified", n = "unspecified") {
|
|
385
385
|
super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_CLAIM_VALIDATION_FAILED", this.claim = a, this.reason = n, this.payload = r;
|
|
386
386
|
}
|
|
387
387
|
};
|
|
388
|
-
|
|
388
|
+
M.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
|
|
389
389
|
class ze extends O {
|
|
390
390
|
constructor(t, r, a = "unspecified", n = "unspecified") {
|
|
391
391
|
super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_EXPIRED", this.claim = a, this.reason = n, this.payload = r;
|
|
@@ -398,36 +398,36 @@ class Pt extends O {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
Pt.code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
401
|
-
let
|
|
401
|
+
let U = class extends O {
|
|
402
402
|
constructor() {
|
|
403
403
|
super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
|
-
|
|
407
|
-
class
|
|
406
|
+
U.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
407
|
+
class _r extends O {
|
|
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
|
+
_r.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
413
|
+
class Tr extends O {
|
|
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 O {
|
|
420
420
|
constructor() {
|
|
421
421
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
S.code = "ERR_JWS_INVALID";
|
|
425
|
-
let
|
|
425
|
+
let W = class extends O {
|
|
426
426
|
constructor() {
|
|
427
427
|
super(...arguments), this.code = "ERR_JWT_INVALID";
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
|
-
|
|
430
|
+
W.code = "ERR_JWT_INVALID";
|
|
431
431
|
class Sr extends O {
|
|
432
432
|
constructor() {
|
|
433
433
|
super(...arguments), this.code = "ERR_JWK_INVALID";
|
|
@@ -440,18 +440,18 @@ class vr extends O {
|
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
vr.code = "ERR_JWKS_INVALID";
|
|
443
|
-
class
|
|
443
|
+
class Ar extends O {
|
|
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
|
+
Ar.code = "ERR_JWKS_NO_MATCHING_KEY";
|
|
449
|
+
class kr extends O {
|
|
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
|
-
|
|
454
|
+
kr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
|
|
455
455
|
class Nr extends O {
|
|
456
456
|
constructor(t = "request timed out", r) {
|
|
457
457
|
super(t, r), this.code = "ERR_JWKS_TIMEOUT";
|
|
@@ -467,10 +467,10 @@ Dt.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
|
467
467
|
function F(e, t = "algorithm.name") {
|
|
468
468
|
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function Ie(e, t) {
|
|
471
471
|
return e.name === t;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function He(e) {
|
|
474
474
|
return parseInt(e.name.slice(4), 10);
|
|
475
475
|
}
|
|
476
476
|
function Rr(e) {
|
|
@@ -500,30 +500,30 @@ function Cr(e, t, ...r) {
|
|
|
500
500
|
case "HS256":
|
|
501
501
|
case "HS384":
|
|
502
502
|
case "HS512": {
|
|
503
|
-
if (!
|
|
503
|
+
if (!Ie(e.algorithm, "HMAC"))
|
|
504
504
|
throw F("HMAC");
|
|
505
505
|
const a = parseInt(t.slice(2), 10);
|
|
506
|
-
if (
|
|
506
|
+
if (He(e.algorithm.hash) !== a)
|
|
507
507
|
throw F(`SHA-${a}`, "algorithm.hash");
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
510
510
|
case "RS256":
|
|
511
511
|
case "RS384":
|
|
512
512
|
case "RS512": {
|
|
513
|
-
if (!
|
|
513
|
+
if (!Ie(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
514
514
|
throw F("RSASSA-PKCS1-v1_5");
|
|
515
515
|
const a = parseInt(t.slice(2), 10);
|
|
516
|
-
if (
|
|
516
|
+
if (He(e.algorithm.hash) !== a)
|
|
517
517
|
throw F(`SHA-${a}`, "algorithm.hash");
|
|
518
518
|
break;
|
|
519
519
|
}
|
|
520
520
|
case "PS256":
|
|
521
521
|
case "PS384":
|
|
522
522
|
case "PS512": {
|
|
523
|
-
if (!
|
|
523
|
+
if (!Ie(e.algorithm, "RSA-PSS"))
|
|
524
524
|
throw F("RSA-PSS");
|
|
525
525
|
const a = parseInt(t.slice(2), 10);
|
|
526
|
-
if (
|
|
526
|
+
if (He(e.algorithm.hash) !== a)
|
|
527
527
|
throw F(`SHA-${a}`, "algorithm.hash");
|
|
528
528
|
break;
|
|
529
529
|
}
|
|
@@ -535,7 +535,7 @@ function Cr(e, t, ...r) {
|
|
|
535
535
|
case "ES256":
|
|
536
536
|
case "ES384":
|
|
537
537
|
case "ES512": {
|
|
538
|
-
if (!
|
|
538
|
+
if (!Ie(e.algorithm, "ECDSA"))
|
|
539
539
|
throw F("ECDSA");
|
|
540
540
|
const a = Rr(t);
|
|
541
541
|
if (e.algorithm.namedCurve !== a)
|
|
@@ -547,7 +547,7 @@ function Cr(e, t, ...r) {
|
|
|
547
547
|
}
|
|
548
548
|
xr(e, r);
|
|
549
549
|
}
|
|
550
|
-
function
|
|
550
|
+
function $t(e, t, ...r) {
|
|
551
551
|
var a;
|
|
552
552
|
if (r = r.filter(Boolean), r.length > 2) {
|
|
553
553
|
const n = r.pop();
|
|
@@ -555,11 +555,11 @@ function Lt(e, t, ...r) {
|
|
|
555
555
|
} else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
|
|
556
556
|
return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
|
|
557
557
|
}
|
|
558
|
-
const it = (e, ...t) =>
|
|
559
|
-
function
|
|
560
|
-
return
|
|
558
|
+
const it = (e, ...t) => $t("Key must be ", e, ...t);
|
|
559
|
+
function Lt(e, t, ...r) {
|
|
560
|
+
return $t(`Key for the ${e} algorithm must be `, t, ...r);
|
|
561
561
|
}
|
|
562
|
-
const
|
|
562
|
+
const Mt = (e) => Ot(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"], Or = (...e) => {
|
|
563
563
|
const t = e.filter(Boolean);
|
|
564
564
|
if (t.length === 0 || t.length === 1)
|
|
565
565
|
return !0;
|
|
@@ -601,16 +601,16 @@ const Dr = (e, t) => {
|
|
|
601
601
|
function he(e) {
|
|
602
602
|
return me(e) && typeof e.kty == "string";
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function $r(e) {
|
|
605
605
|
return e.kty !== "oct" && typeof e.d == "string";
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Lr(e) {
|
|
608
608
|
return e.kty !== "oct" && typeof e.d > "u";
|
|
609
609
|
}
|
|
610
|
-
function
|
|
610
|
+
function Mr(e) {
|
|
611
611
|
return he(e) && e.kty === "oct" && typeof e.k == "string";
|
|
612
612
|
}
|
|
613
|
-
function
|
|
613
|
+
function Ur(e) {
|
|
614
614
|
let t, r;
|
|
615
615
|
switch (e.kty) {
|
|
616
616
|
case "RSA": {
|
|
@@ -635,7 +635,7 @@ function Kr(e) {
|
|
|
635
635
|
}, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
|
|
636
636
|
break;
|
|
637
637
|
default:
|
|
638
|
-
throw new
|
|
638
|
+
throw new U('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
639
639
|
}
|
|
640
640
|
break;
|
|
641
641
|
}
|
|
@@ -657,7 +657,7 @@ function Kr(e) {
|
|
|
657
657
|
t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
|
|
658
658
|
break;
|
|
659
659
|
default:
|
|
660
|
-
throw new
|
|
660
|
+
throw new U('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
661
661
|
}
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
@@ -673,45 +673,45 @@ function Kr(e) {
|
|
|
673
673
|
t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
|
|
674
674
|
break;
|
|
675
675
|
default:
|
|
676
|
-
throw new
|
|
676
|
+
throw new U('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
|
|
677
677
|
}
|
|
678
678
|
break;
|
|
679
679
|
}
|
|
680
680
|
default:
|
|
681
|
-
throw new
|
|
681
|
+
throw new U('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
|
|
682
682
|
}
|
|
683
683
|
return { algorithm: t, keyUsages: r };
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const Ut = 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 } = Ur(e), a = [
|
|
689
689
|
t,
|
|
690
690
|
e.ext ?? !1,
|
|
691
691
|
e.key_ops ?? r
|
|
692
692
|
], n = { ...e };
|
|
693
693
|
return delete n.alg, delete n.use, De.subtle.importKey("jwk", n, ...a);
|
|
694
|
-
},
|
|
694
|
+
}, Kt = (e) => Q(e);
|
|
695
695
|
let ae, ne;
|
|
696
|
-
const
|
|
696
|
+
const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = async (e, t, r, a, n = !1) => {
|
|
697
697
|
let o = e.get(t);
|
|
698
698
|
if (o != null && o[a])
|
|
699
699
|
return o[a];
|
|
700
|
-
const s = await
|
|
700
|
+
const s = await Ut({ ...r, alg: a });
|
|
701
701
|
return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
|
|
702
|
-
},
|
|
703
|
-
if (
|
|
702
|
+
}, Kr = (e, t) => {
|
|
703
|
+
if (Ht(e)) {
|
|
704
704
|
let r = e.export({ format: "jwk" });
|
|
705
|
-
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ?
|
|
705
|
+
return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Kt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, r, t));
|
|
706
706
|
}
|
|
707
707
|
return he(e) ? e.k ? Q(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, e, t, !0)) : e;
|
|
708
|
-
},
|
|
709
|
-
if (
|
|
708
|
+
}, Hr = (e, t) => {
|
|
709
|
+
if (Ht(e)) {
|
|
710
710
|
let r = e.export({ format: "jwk" });
|
|
711
|
-
return r.k ?
|
|
711
|
+
return r.k ? Kt(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, r, t));
|
|
712
712
|
}
|
|
713
713
|
return he(e) ? e.k ? Q(e.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, e, t, !0)) : e;
|
|
714
|
-
},
|
|
714
|
+
}, Gr = { normalizePublicKey: Kr, normalizePrivateKey: Hr }, j = (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)
|
|
@@ -735,9 +735,9 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
735
735
|
case j(e, [43, 101, 113]):
|
|
736
736
|
return "Ed448";
|
|
737
737
|
default:
|
|
738
|
-
throw new
|
|
738
|
+
throw new U("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
739
739
|
}
|
|
740
|
-
},
|
|
740
|
+
}, Wr = async (e, t, r, a, n) => {
|
|
741
741
|
let o, s;
|
|
742
742
|
const i = new Uint8Array(atob(r.replace(e, "")).split("").map((u) => u.charCodeAt(0)));
|
|
743
743
|
switch (a) {
|
|
@@ -781,16 +781,16 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
781
781
|
o = { name: ct(i) }, s = ["verify"];
|
|
782
782
|
break;
|
|
783
783
|
default:
|
|
784
|
-
throw new
|
|
784
|
+
throw new U('Invalid or unsupported "alg" (Algorithm) value');
|
|
785
785
|
}
|
|
786
786
|
return De.subtle.importKey(t, i, o, !1, s);
|
|
787
|
-
},
|
|
788
|
-
async function
|
|
787
|
+
}, Vr = (e, t, r) => Wr(/(?:-----(?: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 Vr(e, t);
|
|
792
792
|
}
|
|
793
|
-
async function
|
|
793
|
+
async function Jr(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) {
|
|
@@ -800,12 +800,12 @@ async function Vr(e, t) {
|
|
|
800
800
|
return Q(e.k);
|
|
801
801
|
case "RSA":
|
|
802
802
|
if (e.oth !== void 0)
|
|
803
|
-
throw new
|
|
803
|
+
throw new U('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
|
|
804
804
|
case "EC":
|
|
805
805
|
case "OKP":
|
|
806
|
-
return
|
|
806
|
+
return Ut({ ...e, alg: t });
|
|
807
807
|
default:
|
|
808
|
-
throw new
|
|
808
|
+
throw new U('Unsupported "kty" (Key Type) Parameter value');
|
|
809
809
|
}
|
|
810
810
|
}
|
|
811
811
|
const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) => {
|
|
@@ -820,12 +820,12 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
|
|
|
820
820
|
}, Yr = (e, t, r, a) => {
|
|
821
821
|
if (!(t instanceof Uint8Array)) {
|
|
822
822
|
if (a && he(t)) {
|
|
823
|
-
if (
|
|
823
|
+
if (Mr(t) && je(e, t, r))
|
|
824
824
|
return;
|
|
825
825
|
throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
|
|
826
826
|
}
|
|
827
|
-
if (!
|
|
828
|
-
throw new TypeError(
|
|
827
|
+
if (!Mt(t))
|
|
828
|
+
throw new TypeError(Lt(e, t, ...Re, "Uint8Array", a ? "JSON Web Key" : null));
|
|
829
829
|
if (t.type !== "secret")
|
|
830
830
|
throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
|
|
831
831
|
}
|
|
@@ -833,16 +833,16 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
|
|
|
833
833
|
if (a && he(t))
|
|
834
834
|
switch (r) {
|
|
835
835
|
case "sign":
|
|
836
|
-
if (
|
|
836
|
+
if ($r(t) && je(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 (Lr(t) && je(e, t, r))
|
|
841
841
|
return;
|
|
842
842
|
throw new TypeError("JSON Web Key for this operation be a public JWK");
|
|
843
843
|
}
|
|
844
|
-
if (!
|
|
845
|
-
throw new TypeError(
|
|
844
|
+
if (!Mt(t))
|
|
845
|
+
throw new TypeError(Lt(e, t, ...Re, a ? "JSON Web Key" : null));
|
|
846
846
|
if (t.type === "secret")
|
|
847
847
|
throw new TypeError(`${de(t)} instances for asymmetric algorithms must not be of type "secret"`);
|
|
848
848
|
if (r === "sign" && t.type === "public")
|
|
@@ -854,11 +854,11 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
|
|
|
854
854
|
if (t.algorithm && r === "encrypt" && t.type === "private")
|
|
855
855
|
throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
|
|
856
856
|
};
|
|
857
|
-
function
|
|
857
|
+
function Gt(e, t, r, a) {
|
|
858
858
|
t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Yr(t, r, a, e) : Fr(t, r, a, e);
|
|
859
859
|
}
|
|
860
|
-
|
|
861
|
-
const lt =
|
|
860
|
+
Gt.bind(void 0, !1);
|
|
861
|
+
const lt = Gt.bind(void 0, !0);
|
|
862
862
|
function zr(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');
|
|
@@ -870,7 +870,7 @@ function zr(e, t, r, a, n) {
|
|
|
870
870
|
r !== void 0 ? o = new Map([...Object.entries(r), ...t.entries()]) : o = t;
|
|
871
871
|
for (const s of a.crit) {
|
|
872
872
|
if (!o.has(s))
|
|
873
|
-
throw new
|
|
873
|
+
throw new U(`Extension Header Parameter "${s}" is not recognized`);
|
|
874
874
|
if (n[s] === void 0)
|
|
875
875
|
throw new e(`Extension Header Parameter "${s}" is missing`);
|
|
876
876
|
if (o.get(s) && a[s] === void 0)
|
|
@@ -906,11 +906,11 @@ function qr(e, t) {
|
|
|
906
906
|
case "EdDSA":
|
|
907
907
|
return { name: t.name };
|
|
908
908
|
default:
|
|
909
|
-
throw new
|
|
909
|
+
throw new U(`alg ${e} is not supported either by JOSE or your javascript runtime`);
|
|
910
910
|
}
|
|
911
911
|
}
|
|
912
912
|
async function Xr(e, t, r) {
|
|
913
|
-
if (t = await
|
|
913
|
+
if (t = await Gr.normalizePublicKey(t, e), Ot(t))
|
|
914
914
|
return Cr(t, e, r), t;
|
|
915
915
|
if (t instanceof Uint8Array) {
|
|
916
916
|
if (!e.startsWith("HS"))
|
|
@@ -945,8 +945,8 @@ async function Zr(e, t, r) {
|
|
|
945
945
|
let a = {};
|
|
946
946
|
if (e.protected)
|
|
947
947
|
try {
|
|
948
|
-
const
|
|
949
|
-
a = JSON.parse(be.decode(
|
|
948
|
+
const f = Q(e.protected);
|
|
949
|
+
a = JSON.parse(be.decode(f));
|
|
950
950
|
} catch {
|
|
951
951
|
throw new S("JWS Protected Header is invalid");
|
|
952
952
|
}
|
|
@@ -962,7 +962,7 @@ async function Zr(e, t, r) {
|
|
|
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 u =
|
|
965
|
+
const u = jr("algorithms", r.algorithms);
|
|
966
966
|
if (u && !u.has(i))
|
|
967
967
|
throw new Pt('"alg" (Algorithm) Header Parameter value not allowed');
|
|
968
968
|
if (s) {
|
|
@@ -971,7 +971,7 @@ async function Zr(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, lt(i, t, "verify"), he(t) && (t = await
|
|
974
|
+
typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), he(t) && (t = await Jr(t, i))) : lt(i, t, "verify");
|
|
975
975
|
const p = wr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
|
|
976
976
|
let m;
|
|
977
977
|
try {
|
|
@@ -1001,7 +1001,7 @@ async function ea(e, t, r) {
|
|
|
1001
1001
|
const i = await Zr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
|
|
1002
1002
|
return typeof t == "function" ? { ...u, key: i.key } : u;
|
|
1003
1003
|
}
|
|
1004
|
-
const ta = (e) => Math.floor(e.getTime() / 1e3),
|
|
1004
|
+
const ta = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Vt = Wt * 60, Ze = Vt * 24, ra = Ze * 7, aa = Ze * 365.25, na = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, dt = (e) => {
|
|
1005
1005
|
const t = na.exec(e);
|
|
1006
1006
|
if (!t || t[4] && t[1])
|
|
1007
1007
|
throw new TypeError("Invalid time period format");
|
|
@@ -1020,14 +1020,14 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
|
|
|
1020
1020
|
case "min":
|
|
1021
1021
|
case "mins":
|
|
1022
1022
|
case "m":
|
|
1023
|
-
n = Math.round(r *
|
|
1023
|
+
n = Math.round(r * Wt);
|
|
1024
1024
|
break;
|
|
1025
1025
|
case "hour":
|
|
1026
1026
|
case "hours":
|
|
1027
1027
|
case "hr":
|
|
1028
1028
|
case "hrs":
|
|
1029
1029
|
case "h":
|
|
1030
|
-
n = Math.round(r *
|
|
1030
|
+
n = Math.round(r * Vt);
|
|
1031
1031
|
break;
|
|
1032
1032
|
case "day":
|
|
1033
1033
|
case "days":
|
|
@@ -1051,21 +1051,21 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
|
|
|
1051
1051
|
} catch {
|
|
1052
1052
|
}
|
|
1053
1053
|
if (!me(a))
|
|
1054
|
-
throw new
|
|
1054
|
+
throw new W("JWT Claims Set must be a top-level JSON object");
|
|
1055
1055
|
const { typ: n } = r;
|
|
1056
1056
|
if (n && (typeof e.typ != "string" || ut(e.typ) !== ut(n)))
|
|
1057
|
-
throw new
|
|
1057
|
+
throw new M('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
1058
1058
|
const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge: h } = r, p = [...o];
|
|
1059
1059
|
h !== void 0 && p.push("iat"), u !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
|
|
1060
|
-
for (const
|
|
1061
|
-
if (!(
|
|
1062
|
-
throw new
|
|
1060
|
+
for (const f of new Set(p.reverse()))
|
|
1061
|
+
if (!(f in a))
|
|
1062
|
+
throw new M(`missing required "${f}" claim`, a, f, "missing");
|
|
1063
1063
|
if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
|
|
1064
|
-
throw new
|
|
1064
|
+
throw new M('unexpected "iss" claim value', a, "iss", "check_failed");
|
|
1065
1065
|
if (i && a.sub !== i)
|
|
1066
|
-
throw new
|
|
1066
|
+
throw new M('unexpected "sub" claim value', a, "sub", "check_failed");
|
|
1067
1067
|
if (u && !oa(a.aud, typeof u == "string" ? [u] : u))
|
|
1068
|
-
throw new
|
|
1068
|
+
throw new M('unexpected "aud" claim value', a, "aud", "check_failed");
|
|
1069
1069
|
let m;
|
|
1070
1070
|
switch (typeof r.clockTolerance) {
|
|
1071
1071
|
case "string":
|
|
@@ -1082,25 +1082,25 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
|
|
|
1082
1082
|
}
|
|
1083
1083
|
const { currentDate: c } = r, d = ta(c || /* @__PURE__ */ new Date());
|
|
1084
1084
|
if ((a.iat !== void 0 || h) && typeof a.iat != "number")
|
|
1085
|
-
throw new
|
|
1085
|
+
throw new M('"iat" claim must be a number', a, "iat", "invalid");
|
|
1086
1086
|
if (a.nbf !== void 0) {
|
|
1087
1087
|
if (typeof a.nbf != "number")
|
|
1088
|
-
throw new
|
|
1088
|
+
throw new M('"nbf" claim must be a number', a, "nbf", "invalid");
|
|
1089
1089
|
if (a.nbf > d + m)
|
|
1090
|
-
throw new
|
|
1090
|
+
throw new M('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
|
|
1091
1091
|
}
|
|
1092
1092
|
if (a.exp !== void 0) {
|
|
1093
1093
|
if (typeof a.exp != "number")
|
|
1094
|
-
throw new
|
|
1094
|
+
throw new M('"exp" claim must be a number', a, "exp", "invalid");
|
|
1095
1095
|
if (a.exp <= d - m)
|
|
1096
1096
|
throw new ze('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
1097
1097
|
}
|
|
1098
1098
|
if (h) {
|
|
1099
|
-
const
|
|
1100
|
-
if (
|
|
1099
|
+
const f = d - a.iat, b = typeof h == "number" ? h : dt(h);
|
|
1100
|
+
if (f - m > b)
|
|
1101
1101
|
throw new ze('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
1102
|
-
if (
|
|
1103
|
-
throw new
|
|
1102
|
+
if (f < 0 - m)
|
|
1103
|
+
throw new M('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
|
|
1104
1104
|
}
|
|
1105
1105
|
return a;
|
|
1106
1106
|
};
|
|
@@ -1108,42 +1108,42 @@ async function ia(e, t, r) {
|
|
|
1108
1108
|
var a;
|
|
1109
1109
|
const n = await ea(e, t, r);
|
|
1110
1110
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
|
1111
|
-
throw new
|
|
1111
|
+
throw new W("JWTs MUST NOT use unencoded payload");
|
|
1112
1112
|
const o = { payload: sa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
|
1113
1113
|
return typeof t == "function" ? { ...o, key: n.key } : o;
|
|
1114
1114
|
}
|
|
1115
1115
|
const ca = Q;
|
|
1116
1116
|
function la(e) {
|
|
1117
1117
|
if (typeof e != "string")
|
|
1118
|
-
throw new
|
|
1118
|
+
throw new W("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1119
1119
|
const { 1: t, length: r } = e.split(".");
|
|
1120
1120
|
if (r === 5)
|
|
1121
|
-
throw new
|
|
1121
|
+
throw new W("Only JWTs using Compact JWS serialization can be decoded");
|
|
1122
1122
|
if (r !== 3)
|
|
1123
|
-
throw new
|
|
1123
|
+
throw new W("Invalid JWT");
|
|
1124
1124
|
if (!t)
|
|
1125
|
-
throw new
|
|
1125
|
+
throw new W("JWTs must contain a payload");
|
|
1126
1126
|
let a;
|
|
1127
1127
|
try {
|
|
1128
1128
|
a = ca(t);
|
|
1129
1129
|
} catch {
|
|
1130
|
-
throw new
|
|
1130
|
+
throw new W("Failed to base64url decode the payload");
|
|
1131
1131
|
}
|
|
1132
1132
|
let n;
|
|
1133
1133
|
try {
|
|
1134
1134
|
n = JSON.parse(be.decode(a));
|
|
1135
1135
|
} catch {
|
|
1136
|
-
throw new
|
|
1136
|
+
throw new W("Failed to parse the decoded payload as JSON");
|
|
1137
1137
|
}
|
|
1138
1138
|
if (!me(n))
|
|
1139
|
-
throw new
|
|
1139
|
+
throw new W("Invalid JWT Claims Set");
|
|
1140
1140
|
return n;
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1142
|
+
const ye = async (e) => {
|
|
1143
1143
|
try {
|
|
1144
|
-
const t =
|
|
1144
|
+
const t = k.ALG, r = await Br(Er, t);
|
|
1145
1145
|
return await ia(e, r, {
|
|
1146
|
-
issuer:
|
|
1146
|
+
issuer: k.ISSUER
|
|
1147
1147
|
});
|
|
1148
1148
|
} catch {
|
|
1149
1149
|
return;
|
|
@@ -1160,15 +1160,15 @@ for (let e = 0; e < 256; ++e)
|
|
|
1160
1160
|
function ua(e, t = 0) {
|
|
1161
1161
|
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();
|
|
1162
1162
|
}
|
|
1163
|
-
let
|
|
1163
|
+
let Ge;
|
|
1164
1164
|
const ma = new Uint8Array(16);
|
|
1165
1165
|
function ha() {
|
|
1166
|
-
if (!
|
|
1166
|
+
if (!Ge) {
|
|
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
|
+
Ge = crypto.getRandomValues.bind(crypto);
|
|
1170
1170
|
}
|
|
1171
|
-
return
|
|
1171
|
+
return Ge(ma);
|
|
1172
1172
|
}
|
|
1173
1173
|
const pa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: pa };
|
|
1174
1174
|
function ht(e, t, r) {
|
|
@@ -1178,40 +1178,40 @@ function ht(e, t, r) {
|
|
|
1178
1178
|
const a = e.random || (e.rng || ha)();
|
|
1179
1179
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
|
|
1180
1180
|
}
|
|
1181
|
-
const pt = globalThis.crypto, ga = (e) => `${ht()}${ht()}`.slice(0, e),
|
|
1181
|
+
const pt = globalThis.crypto, ga = (e) => `${ht()}${ht()}`.slice(0, e), ya = (e) => btoa(
|
|
1182
1182
|
[...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
|
|
1183
1183
|
);
|
|
1184
|
-
async function
|
|
1184
|
+
async function fa(e) {
|
|
1185
1185
|
if (!pt.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 pt.subtle.digest("SHA-256", t);
|
|
1190
|
-
return
|
|
1190
|
+
return ya(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
1191
1191
|
}
|
|
1192
1192
|
async function ba(e) {
|
|
1193
|
-
const t = ga(43), r = await
|
|
1193
|
+
const t = ga(43), r = await fa(t);
|
|
1194
1194
|
return {
|
|
1195
1195
|
code_verifier: t,
|
|
1196
1196
|
code_challenge: r
|
|
1197
1197
|
};
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function Bt(e, t) {
|
|
1200
1200
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
1201
1201
|
}
|
|
1202
1202
|
const gt = (e, t) => {
|
|
1203
1203
|
const r = JSON.stringify(
|
|
1204
1204
|
typeof t == "function" ? t() : t
|
|
1205
1205
|
);
|
|
1206
|
-
window.localStorage.setItem(e, r),
|
|
1206
|
+
window.localStorage.setItem(e, r), Bt(e, r);
|
|
1207
1207
|
}, Ea = (e) => {
|
|
1208
|
-
window.localStorage.removeItem(e),
|
|
1209
|
-
},
|
|
1210
|
-
function
|
|
1208
|
+
window.localStorage.removeItem(e), Bt(e, null);
|
|
1209
|
+
}, yt = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
1210
|
+
function _e({
|
|
1211
1211
|
key: e,
|
|
1212
1212
|
initialValue: t
|
|
1213
1213
|
}) {
|
|
1214
|
-
const r = lr(wa, () =>
|
|
1214
|
+
const r = lr(wa, () => yt(e)), a = X(
|
|
1215
1215
|
(s) => {
|
|
1216
1216
|
try {
|
|
1217
1217
|
const i = typeof s == "function" ? s(JSON.parse(r)) : s;
|
|
@@ -1228,40 +1228,40 @@ function Ie({
|
|
|
1228
1228
|
}, [a]);
|
|
1229
1229
|
return Z(() => {
|
|
1230
1230
|
try {
|
|
1231
|
-
|
|
1231
|
+
yt(e) === null && typeof t < "u" && gt(e, t);
|
|
1232
1232
|
} catch (s) {
|
|
1233
1233
|
console.warn(s);
|
|
1234
1234
|
}
|
|
1235
1235
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
1236
1236
|
}
|
|
1237
|
-
const
|
|
1237
|
+
const A = [];
|
|
1238
1238
|
for (let e = 0; e < 256; ++e)
|
|
1239
|
-
|
|
1240
|
-
function
|
|
1241
|
-
return (
|
|
1242
|
-
}
|
|
1243
|
-
let
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1246
|
-
if (!
|
|
1239
|
+
A.push((e + 256).toString(16).slice(1));
|
|
1240
|
+
function Ia(e, t = 0) {
|
|
1241
|
+
return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
|
|
1242
|
+
}
|
|
1243
|
+
let We;
|
|
1244
|
+
const _a = new Uint8Array(16);
|
|
1245
|
+
function Ta() {
|
|
1246
|
+
if (!We) {
|
|
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
|
+
We = crypto.getRandomValues.bind(crypto);
|
|
1250
1250
|
}
|
|
1251
|
-
return
|
|
1251
|
+
return We(_a);
|
|
1252
1252
|
}
|
|
1253
|
-
const Sa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
1254
|
-
function
|
|
1255
|
-
if (
|
|
1256
|
-
return
|
|
1253
|
+
const Sa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ft = { randomUUID: Sa };
|
|
1254
|
+
function Ve(e, t, r) {
|
|
1255
|
+
if (ft.randomUUID && !t && !e)
|
|
1256
|
+
return ft.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, Ia(a);
|
|
1260
1260
|
}
|
|
1261
|
-
const oe = "Your session has expired. For your security, please log in again to continue.", va = "Your session has been successfully terminated.",
|
|
1261
|
+
const oe = "Your session has expired. For your security, please log in again to continue.", va = "Your session has been successfully terminated.", Be = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", ka = "You forgot to wrap your component in <AuthProvider>.", Ce = {
|
|
1262
1262
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1263
1263
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1264
|
-
},
|
|
1264
|
+
}, Te = "@@auth@@", ge = "LOADING", Ae = "LOGIN", Jt = "LOGOUT", Ee = "success", B = "failure", Yt = "include", Ft = "POST", zt = "application/json", Se = {
|
|
1265
1265
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1266
1266
|
$clientId: String!,
|
|
1267
1267
|
$username: String!,
|
|
@@ -1383,16 +1383,16 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1383
1383
|
}
|
|
1384
1384
|
);
|
|
1385
1385
|
if (o.status !== 200)
|
|
1386
|
-
return { status:
|
|
1386
|
+
return { status: B, data: [] };
|
|
1387
1387
|
const { data: s } = await o.json();
|
|
1388
1388
|
return {
|
|
1389
1389
|
status: Ee,
|
|
1390
1390
|
data: s[t.method]
|
|
1391
1391
|
};
|
|
1392
1392
|
} catch (n) {
|
|
1393
|
-
return console.error(n), { status:
|
|
1393
|
+
return console.error(n), { status: B, data: [] };
|
|
1394
1394
|
}
|
|
1395
|
-
},
|
|
1395
|
+
}, $e = async ({
|
|
1396
1396
|
type: e,
|
|
1397
1397
|
clientId: t,
|
|
1398
1398
|
params: r = {}
|
|
@@ -1411,14 +1411,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1411
1411
|
}
|
|
1412
1412
|
);
|
|
1413
1413
|
if (a.status !== 200)
|
|
1414
|
-
return { status:
|
|
1414
|
+
return { status: B, data: [] };
|
|
1415
1415
|
const { data: n } = await a.json();
|
|
1416
1416
|
return {
|
|
1417
1417
|
status: Ee,
|
|
1418
1418
|
data: n || []
|
|
1419
1419
|
};
|
|
1420
1420
|
} catch (a) {
|
|
1421
|
-
return console.error(a), { status:
|
|
1421
|
+
return console.error(a), { status: B, data: [] };
|
|
1422
1422
|
}
|
|
1423
1423
|
}, Na = process.env.NODE_ENV === "production", jt = !Na, qt = {
|
|
1424
1424
|
isLoading: !0,
|
|
@@ -1430,7 +1430,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1430
1430
|
}, Ra = (e) => {
|
|
1431
1431
|
try {
|
|
1432
1432
|
const t = da(e);
|
|
1433
|
-
return t ? t[
|
|
1433
|
+
return t ? t[k.USER_ID_KEY] : "";
|
|
1434
1434
|
} catch {
|
|
1435
1435
|
return "";
|
|
1436
1436
|
}
|
|
@@ -1443,7 +1443,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1443
1443
|
var n;
|
|
1444
1444
|
try {
|
|
1445
1445
|
return {
|
|
1446
|
-
status: ((n = await
|
|
1446
|
+
status: ((n = await $e({
|
|
1447
1447
|
type: Pe.LOGOUT,
|
|
1448
1448
|
clientId: t,
|
|
1449
1449
|
params: {
|
|
@@ -1451,11 +1451,11 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1451
1451
|
domain: r,
|
|
1452
1452
|
idToken: a
|
|
1453
1453
|
}
|
|
1454
|
-
})) == null ? void 0 : n.status) ||
|
|
1454
|
+
})) == null ? void 0 : n.status) || B
|
|
1455
1455
|
};
|
|
1456
1456
|
} catch {
|
|
1457
1457
|
return {
|
|
1458
|
-
status:
|
|
1458
|
+
status: B
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
1461
|
}, Ca = async ({
|
|
@@ -1472,7 +1472,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1472
1472
|
}) => {
|
|
1473
1473
|
var p;
|
|
1474
1474
|
try {
|
|
1475
|
-
const m = await
|
|
1475
|
+
const m = await $e({
|
|
1476
1476
|
type: Pe.LOGIN,
|
|
1477
1477
|
clientId: r,
|
|
1478
1478
|
params: {
|
|
@@ -1486,13 +1486,13 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1486
1486
|
domain: u,
|
|
1487
1487
|
ua: h
|
|
1488
1488
|
}
|
|
1489
|
-
}), c = await
|
|
1490
|
-
return c && c.payload[
|
|
1489
|
+
}), c = await ye((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
|
|
1490
|
+
return c && c.payload[k.USER_ID_KEY] !== "" && c.payload[k.NONCE_KEY] === a ? {
|
|
1491
1491
|
idToken: m.data.idToken,
|
|
1492
1492
|
accessToken: m.data.accessToken,
|
|
1493
1493
|
refreshToken: m.data.refreshToken,
|
|
1494
|
-
userId: c.payload[
|
|
1495
|
-
email: c.payload[
|
|
1494
|
+
userId: c.payload[k.USER_ID_KEY],
|
|
1495
|
+
email: c.payload[k.EMAIL_KEY],
|
|
1496
1496
|
status: !0
|
|
1497
1497
|
} : {
|
|
1498
1498
|
status: !1
|
|
@@ -1509,7 +1509,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1509
1509
|
}) => {
|
|
1510
1510
|
var a;
|
|
1511
1511
|
try {
|
|
1512
|
-
const n = await
|
|
1512
|
+
const n = await $e({
|
|
1513
1513
|
type: Pe.CODE,
|
|
1514
1514
|
clientId: t,
|
|
1515
1515
|
params: {
|
|
@@ -1522,12 +1522,12 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1522
1522
|
status: Ee,
|
|
1523
1523
|
data: n.data.code
|
|
1524
1524
|
} : {
|
|
1525
|
-
status:
|
|
1525
|
+
status: B,
|
|
1526
1526
|
data: ""
|
|
1527
1527
|
};
|
|
1528
1528
|
} catch {
|
|
1529
1529
|
return {
|
|
1530
|
-
status:
|
|
1530
|
+
status: B,
|
|
1531
1531
|
data: ""
|
|
1532
1532
|
};
|
|
1533
1533
|
}
|
|
@@ -1541,7 +1541,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1541
1541
|
}) => {
|
|
1542
1542
|
var s;
|
|
1543
1543
|
try {
|
|
1544
|
-
const i = await
|
|
1544
|
+
const i = await $e({
|
|
1545
1545
|
type: Pe.REFRESH,
|
|
1546
1546
|
clientId: e,
|
|
1547
1547
|
params: {
|
|
@@ -1552,11 +1552,11 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1552
1552
|
accessToken: n,
|
|
1553
1553
|
domain: o
|
|
1554
1554
|
}
|
|
1555
|
-
}), u = await
|
|
1556
|
-
return u && u.payload[
|
|
1555
|
+
}), u = await ye((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
|
|
1556
|
+
return u && u.payload[k.USER_ID_KEY] !== "" && u.payload[k.NONCE_KEY] === r ? {
|
|
1557
1557
|
accessToken: i.data.accessToken,
|
|
1558
1558
|
refreshToken: i.data.refreshToken,
|
|
1559
|
-
userId: u.payload[
|
|
1559
|
+
userId: u.payload[k.USER_ID_KEY],
|
|
1560
1560
|
status: !0
|
|
1561
1561
|
} : {
|
|
1562
1562
|
status: !1
|
|
@@ -1569,7 +1569,7 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1569
1569
|
};
|
|
1570
1570
|
class Da {
|
|
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
|
}
|
|
1574
1574
|
async refreshtoken({
|
|
1575
1575
|
clientId: t,
|
|
@@ -1595,8 +1595,8 @@ class Da {
|
|
|
1595
1595
|
nonce: a,
|
|
1596
1596
|
domain: n
|
|
1597
1597
|
}) {
|
|
1598
|
-
const o = await
|
|
1599
|
-
if (o && o.payload[
|
|
1598
|
+
const o = await ye(this.refreshToken);
|
|
1599
|
+
if (o && o.payload[k.USER_ID_KEY] !== "") {
|
|
1600
1600
|
const s = await Pa({
|
|
1601
1601
|
clientId: t,
|
|
1602
1602
|
userId: r,
|
|
@@ -1610,21 +1610,21 @@ class Da {
|
|
|
1610
1610
|
newAccessToken: s.accessToken,
|
|
1611
1611
|
newRefreshToken: s.refreshToken
|
|
1612
1612
|
}) : {
|
|
1613
|
-
status:
|
|
1613
|
+
status: B
|
|
1614
1614
|
};
|
|
1615
1615
|
} else
|
|
1616
1616
|
return {
|
|
1617
|
-
status:
|
|
1617
|
+
status: B
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
}
|
|
1621
|
-
const
|
|
1621
|
+
const $a = (e) => X(
|
|
1622
1622
|
(...t) => {
|
|
1623
1623
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
1624
1624
|
},
|
|
1625
1625
|
[e]
|
|
1626
1626
|
), ce = () => {
|
|
1627
|
-
throw new Error(
|
|
1627
|
+
throw new Error(ka);
|
|
1628
1628
|
}, Xt = cr({
|
|
1629
1629
|
isAuthenticated: !1,
|
|
1630
1630
|
isLoading: !1,
|
|
@@ -1636,62 +1636,62 @@ const La = (e) => X(
|
|
|
1636
1636
|
loginWithPasskey: ce,
|
|
1637
1637
|
logoutReason: "",
|
|
1638
1638
|
authenticationType: ""
|
|
1639
|
-
}),
|
|
1639
|
+
}), La = P.createContext({
|
|
1640
1640
|
state: qt,
|
|
1641
1641
|
dispatch: () => {
|
|
1642
1642
|
}
|
|
1643
|
-
}),
|
|
1643
|
+
}), Ma = (e, t) => (t == null ? void 0 : t.type) === ge ? {
|
|
1644
1644
|
...e,
|
|
1645
1645
|
isLoading: t.payload.isLoading
|
|
1646
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1646
|
+
} : (t == null ? void 0 : t.type) === Ae ? {
|
|
1647
1647
|
...e,
|
|
1648
1648
|
isLoading: !1,
|
|
1649
1649
|
isAuthenticated: !0,
|
|
1650
1650
|
user: t.payload.user,
|
|
1651
1651
|
authenticationType: t.payload.authenticationType,
|
|
1652
1652
|
logoutReason: ""
|
|
1653
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1653
|
+
} : (t == null ? void 0 : t.type) === Jt ? {
|
|
1654
1654
|
...e,
|
|
1655
1655
|
isLoading: !1,
|
|
1656
1656
|
isAuthenticated: !1,
|
|
1657
1657
|
user: void 0,
|
|
1658
1658
|
authenticationType: "",
|
|
1659
1659
|
logoutReason: t.payload.logoutReason
|
|
1660
|
-
} : e,
|
|
1660
|
+
} : e, Ua = ({
|
|
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] =
|
|
1667
|
+
const [o, s] = _t(Ma, {
|
|
1668
1668
|
...qt,
|
|
1669
1669
|
debug: n
|
|
1670
|
-
}), i =
|
|
1671
|
-
key: `${
|
|
1672
|
-
}), [c, d, ,
|
|
1673
|
-
key: `${
|
|
1674
|
-
}), [b,
|
|
1670
|
+
}), i = $a(n), u = K(!1), [h, p, , m] = _e({
|
|
1671
|
+
key: `${Te}::${r}::@@user@@`
|
|
1672
|
+
}), [c, d, , f] = _e({
|
|
1673
|
+
key: `${Te}::${r}::@@access@@`
|
|
1674
|
+
}), [b, T, , w] = _e(
|
|
1675
1675
|
{
|
|
1676
|
-
key: `${
|
|
1676
|
+
key: `${Te}::${r}::@@refresh@@`
|
|
1677
1677
|
}
|
|
1678
|
-
), [C,
|
|
1679
|
-
key: `${
|
|
1678
|
+
), [C, $, , H] = _e({
|
|
1679
|
+
key: `${Te}::${r}::@@nonce@@`
|
|
1680
1680
|
}), ee = new Da(c, b), N = X(() => {
|
|
1681
|
-
i("removeLocalStorage: removing local storage"), m(),
|
|
1681
|
+
i("removeLocalStorage: removing local storage"), m(), f(), w(), H();
|
|
1682
1682
|
}, [
|
|
1683
|
-
|
|
1683
|
+
f,
|
|
1684
1684
|
m,
|
|
1685
|
-
|
|
1685
|
+
H,
|
|
1686
1686
|
w,
|
|
1687
1687
|
i
|
|
1688
|
-
]),
|
|
1688
|
+
]), J = X(
|
|
1689
1689
|
(g) => {
|
|
1690
1690
|
i(
|
|
1691
1691
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
1692
1692
|
g
|
|
1693
1693
|
), s({
|
|
1694
|
-
type:
|
|
1694
|
+
type: Jt,
|
|
1695
1695
|
payload: {
|
|
1696
1696
|
logoutReason: g || oe
|
|
1697
1697
|
}
|
|
@@ -1701,7 +1701,7 @@ const La = (e) => X(
|
|
|
1701
1701
|
), D = X(
|
|
1702
1702
|
async (g) => {
|
|
1703
1703
|
i("invalidateAndLogout: invalidating and logging out");
|
|
1704
|
-
const { user:
|
|
1704
|
+
const { user: I } = o, E = (I == null ? void 0 : I.userId) || Ra(h);
|
|
1705
1705
|
E || i(
|
|
1706
1706
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1707
1707
|
), await xa({
|
|
@@ -1709,23 +1709,23 @@ const La = (e) => X(
|
|
|
1709
1709
|
clientId: r,
|
|
1710
1710
|
domain: a,
|
|
1711
1711
|
idToken: h
|
|
1712
|
-
}),
|
|
1712
|
+
}), J(g || oe);
|
|
1713
1713
|
},
|
|
1714
|
-
[h, o, r, a,
|
|
1714
|
+
[h, o, r, a, J, i]
|
|
1715
1715
|
);
|
|
1716
1716
|
Z(() => {
|
|
1717
1717
|
if (!u.current)
|
|
1718
1718
|
return o.isLoading && h !== null ? (async () => {
|
|
1719
1719
|
try {
|
|
1720
|
-
const g = await
|
|
1721
|
-
g && g.payload[
|
|
1722
|
-
type:
|
|
1720
|
+
const g = await ye(h);
|
|
1721
|
+
g && g.payload[k.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
|
|
1722
|
+
type: Ae,
|
|
1723
1723
|
payload: {
|
|
1724
|
-
authenticationType: g.payload[
|
|
1724
|
+
authenticationType: g.payload[k.AUTH_TYPE_KEY],
|
|
1725
1725
|
user: {
|
|
1726
|
-
userId: g.payload[
|
|
1727
|
-
username: g.payload[
|
|
1728
|
-
email: g.payload[
|
|
1726
|
+
userId: g.payload[k.USER_ID_KEY],
|
|
1727
|
+
username: g.payload[k.USERNAME_KEY],
|
|
1728
|
+
email: g.payload[k.EMAIL_KEY]
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
})) : (i("useEffect: invalid JWT, invalidating and logging out"), await D(oe));
|
|
@@ -1738,10 +1738,10 @@ const La = (e) => X(
|
|
|
1738
1738
|
u.current = !0;
|
|
1739
1739
|
};
|
|
1740
1740
|
}, [o.isLoading, h, D, i]);
|
|
1741
|
-
const Y = async (g,
|
|
1741
|
+
const Y = async (g, I) => {
|
|
1742
1742
|
s({ type: ge, payload: { isLoading: !0 } }), N();
|
|
1743
|
-
const E =
|
|
1744
|
-
|
|
1743
|
+
const E = Ve();
|
|
1744
|
+
$(E), i("login: Logging in with password");
|
|
1745
1745
|
const { code_verifier: z, code_challenge: ir } = await ba(), ot = await Oa({
|
|
1746
1746
|
nonce: E,
|
|
1747
1747
|
clientId: r,
|
|
@@ -1750,7 +1750,7 @@ const La = (e) => X(
|
|
|
1750
1750
|
if (ot.status) {
|
|
1751
1751
|
const re = await Ca({
|
|
1752
1752
|
username: g,
|
|
1753
|
-
password:
|
|
1753
|
+
password: I,
|
|
1754
1754
|
clientId: r,
|
|
1755
1755
|
sessionExpiration: t,
|
|
1756
1756
|
nonce: E,
|
|
@@ -1760,8 +1760,8 @@ const La = (e) => X(
|
|
|
1760
1760
|
domain: a,
|
|
1761
1761
|
ua: navigator.userAgent
|
|
1762
1762
|
});
|
|
1763
|
-
return re.status ? (p(re.idToken), d(re.accessToken),
|
|
1764
|
-
type:
|
|
1763
|
+
return re.status ? (p(re.idToken), d(re.accessToken), T(re.refreshToken), s({
|
|
1764
|
+
type: Ae,
|
|
1765
1765
|
payload: {
|
|
1766
1766
|
authenticationType: ue.CODE,
|
|
1767
1767
|
user: {
|
|
@@ -1770,29 +1770,29 @@ const La = (e) => X(
|
|
|
1770
1770
|
email: re.email
|
|
1771
1771
|
}
|
|
1772
1772
|
}
|
|
1773
|
-
}), !0) : (
|
|
1773
|
+
}), !0) : (J(Be), !1);
|
|
1774
1774
|
}
|
|
1775
1775
|
return !1;
|
|
1776
1776
|
}, pe = async (g) => {
|
|
1777
1777
|
g == null || g.preventDefault(), await D(va);
|
|
1778
1778
|
}, te = async () => {
|
|
1779
|
-
const { isAuthenticated: g, user:
|
|
1779
|
+
const { isAuthenticated: g, user: I } = o;
|
|
1780
1780
|
try {
|
|
1781
|
-
if (g &&
|
|
1781
|
+
if (g && I && I.userId) {
|
|
1782
1782
|
if (c) {
|
|
1783
1783
|
i("getAccessToken");
|
|
1784
|
-
const z = await
|
|
1785
|
-
if (z && z.payload[
|
|
1784
|
+
const z = await ye(c);
|
|
1785
|
+
if (z && z.payload[k.USER_ID_KEY] !== "")
|
|
1786
1786
|
return c;
|
|
1787
1787
|
}
|
|
1788
1788
|
i("getAccessToken: invalid access token, trying to refresh it");
|
|
1789
1789
|
const E = await ee.refreshtoken({
|
|
1790
1790
|
clientId: r,
|
|
1791
|
-
userId:
|
|
1791
|
+
userId: I.userId,
|
|
1792
1792
|
nonce: C,
|
|
1793
1793
|
domain: a
|
|
1794
1794
|
});
|
|
1795
|
-
return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken),
|
|
1795
|
+
return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken), T(E.newRefreshToken), E.newAccessToken) : (i(
|
|
1796
1796
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1797
1797
|
), await D(oe), "");
|
|
1798
1798
|
}
|
|
@@ -1802,11 +1802,11 @@ const La = (e) => X(
|
|
|
1802
1802
|
} catch {
|
|
1803
1803
|
return i(
|
|
1804
1804
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1805
|
-
), await D(
|
|
1805
|
+
), await D(Aa), "";
|
|
1806
1806
|
}
|
|
1807
|
-
}, R = () => o.isAuthenticated && h ? h : "",
|
|
1807
|
+
}, R = () => o.isAuthenticated && h ? h : "", L = async () => {
|
|
1808
1808
|
const { user: g } = o;
|
|
1809
|
-
let
|
|
1809
|
+
let I = await ie({
|
|
1810
1810
|
accessToken: c,
|
|
1811
1811
|
clientId: r,
|
|
1812
1812
|
type: se.GET_REGISTRATION_OPTIONS,
|
|
@@ -1816,10 +1816,10 @@ const La = (e) => X(
|
|
|
1816
1816
|
username: g == null ? void 0 : g.username
|
|
1817
1817
|
}
|
|
1818
1818
|
});
|
|
1819
|
-
if (
|
|
1819
|
+
if (I.status)
|
|
1820
1820
|
try {
|
|
1821
|
-
const E = await gr(
|
|
1822
|
-
return
|
|
1821
|
+
const E = await gr(I.data);
|
|
1822
|
+
return I = await ie({
|
|
1823
1823
|
accessToken: c,
|
|
1824
1824
|
clientId: r,
|
|
1825
1825
|
type: se.VERIFY_REGISTRATION,
|
|
@@ -1829,7 +1829,7 @@ const La = (e) => X(
|
|
|
1829
1829
|
username: g == null ? void 0 : g.username,
|
|
1830
1830
|
registration: E
|
|
1831
1831
|
}
|
|
1832
|
-
}), !!(
|
|
1832
|
+
}), !!(I.status && I.data.length > 0);
|
|
1833
1833
|
} catch {
|
|
1834
1834
|
return await ie({
|
|
1835
1835
|
accessToken: c,
|
|
@@ -1844,17 +1844,17 @@ const La = (e) => X(
|
|
|
1844
1844
|
}), !1;
|
|
1845
1845
|
}
|
|
1846
1846
|
return !1;
|
|
1847
|
-
},
|
|
1847
|
+
}, G = async () => {
|
|
1848
1848
|
s({ type: ge, payload: { isLoading: !0 } }), N();
|
|
1849
|
-
const g =
|
|
1850
|
-
|
|
1851
|
-
const
|
|
1849
|
+
const g = Ve();
|
|
1850
|
+
$(g), i("loginWithPasskey");
|
|
1851
|
+
const I = Ve();
|
|
1852
1852
|
let E = await ie({
|
|
1853
1853
|
accessToken: c,
|
|
1854
1854
|
clientId: r,
|
|
1855
1855
|
type: se.GET_AUTHENTICATION_OPTIONS,
|
|
1856
1856
|
params: {
|
|
1857
|
-
id:
|
|
1857
|
+
id: I,
|
|
1858
1858
|
clientId: r
|
|
1859
1859
|
}
|
|
1860
1860
|
});
|
|
@@ -1867,15 +1867,15 @@ const La = (e) => X(
|
|
|
1867
1867
|
type: se.VERIFY_AUTHENTICATION,
|
|
1868
1868
|
params: {
|
|
1869
1869
|
clientId: r,
|
|
1870
|
-
id:
|
|
1870
|
+
id: I,
|
|
1871
1871
|
authentication: z,
|
|
1872
1872
|
nonce: g,
|
|
1873
1873
|
domain: a,
|
|
1874
1874
|
sessionExpiration: t,
|
|
1875
1875
|
ua: navigator.userAgent
|
|
1876
1876
|
}
|
|
1877
|
-
}), E.data.status === Ee ? (p(E.data.idToken), d(E.data.accessToken),
|
|
1878
|
-
type:
|
|
1877
|
+
}), E.data.status === Ee ? (p(E.data.idToken), d(E.data.accessToken), T(E.data.refreshToken), s({
|
|
1878
|
+
type: Ae,
|
|
1879
1879
|
payload: {
|
|
1880
1880
|
authenticationType: ue.PASSKEY,
|
|
1881
1881
|
user: {
|
|
@@ -1884,7 +1884,7 @@ const La = (e) => X(
|
|
|
1884
1884
|
email: E.data.email
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
|
-
}), !0) : (
|
|
1887
|
+
}), !0) : (J(Be), !1);
|
|
1888
1888
|
} catch {
|
|
1889
1889
|
return await ie({
|
|
1890
1890
|
accessToken: c,
|
|
@@ -1892,17 +1892,17 @@ const La = (e) => X(
|
|
|
1892
1892
|
type: se.VERIFY_AUTHENTICATION,
|
|
1893
1893
|
params: {
|
|
1894
1894
|
clientId: r,
|
|
1895
|
-
id:
|
|
1895
|
+
id: I,
|
|
1896
1896
|
authentication: {},
|
|
1897
1897
|
nonce: g,
|
|
1898
1898
|
domain: a,
|
|
1899
1899
|
sessionExpiration: t
|
|
1900
1900
|
}
|
|
1901
|
-
}),
|
|
1901
|
+
}), J(Be), !1;
|
|
1902
1902
|
}
|
|
1903
1903
|
return !1;
|
|
1904
1904
|
};
|
|
1905
|
-
return /* @__PURE__ */ l(
|
|
1905
|
+
return /* @__PURE__ */ l(La.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
|
|
1906
1906
|
Xt.Provider,
|
|
1907
1907
|
{
|
|
1908
1908
|
value: {
|
|
@@ -1911,14 +1911,14 @@ const La = (e) => X(
|
|
|
1911
1911
|
logout: pe,
|
|
1912
1912
|
getAccessToken: te,
|
|
1913
1913
|
getIdToken: R,
|
|
1914
|
-
registeringForPasskey:
|
|
1915
|
-
loginWithPasskey:
|
|
1914
|
+
registeringForPasskey: L,
|
|
1915
|
+
loginWithPasskey: G
|
|
1916
1916
|
},
|
|
1917
1917
|
children: e
|
|
1918
1918
|
}
|
|
1919
1919
|
) });
|
|
1920
|
-
}, et = (e = Xt) => Xe(e), Eo = "user", wo = "assistant",
|
|
1921
|
-
function
|
|
1920
|
+
}, et = (e = Xt) => Xe(e), Eo = "user", wo = "assistant", Io = "system", _o = "internal", To = "hidden", So = "I'm having trouble right now. Please try again later.", Je = "OpenAI", vo = "OpenAI", Ao = "Anthropic", ko = 128e3, No = "action-message", Ro = "action-reset", xo = "action-model", Co = "action-restore", Oo = "action-streaming", Po = "action-engine", Do = "action-search", $o = "action-sort", Lo = "action-toggle-tag", Mo = "action-reset-tags", Uo = "action-set-tags", Ko = "sassy-saint-", Ho = "details", Go = "search", Wo = "sort", Vo = "engine-toggle", Bo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", bt = (e) => Number.isFinite(e) ? e : 0;
|
|
1921
|
+
function Ha(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(bt(e * 1e6) % 1e3)
|
|
1930
1930
|
};
|
|
1931
1931
|
}
|
|
1932
|
-
function
|
|
1932
|
+
function Ga(e) {
|
|
1933
1933
|
return {
|
|
1934
1934
|
days: e / 86400000n,
|
|
1935
1935
|
hours: e / 3600000n % 24n,
|
|
@@ -1940,19 +1940,19 @@ function Wa(e) {
|
|
|
1940
1940
|
nanoseconds: 0n
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Wa(e) {
|
|
1944
1944
|
switch (typeof e) {
|
|
1945
1945
|
case "number": {
|
|
1946
1946
|
if (Number.isFinite(e))
|
|
1947
|
-
return
|
|
1947
|
+
return Ha(e);
|
|
1948
1948
|
break;
|
|
1949
1949
|
}
|
|
1950
1950
|
case "bigint":
|
|
1951
|
-
return
|
|
1951
|
+
return Ga(e);
|
|
1952
1952
|
}
|
|
1953
1953
|
throw new TypeError("Expected a finite number or bigint");
|
|
1954
1954
|
}
|
|
1955
|
-
const
|
|
1955
|
+
const Va = (e) => e === 0 || e === 0n, Ba = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ja = 1e-7, Ya = 24n * 60n * 60n * 1000n;
|
|
1956
1956
|
function Fa(e, t) {
|
|
1957
1957
|
const r = typeof e == "bigint";
|
|
1958
1958
|
if (!r && !Number.isFinite(e))
|
|
@@ -1962,25 +1962,25 @@ function Fa(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, m) => {
|
|
1965
|
-
const c = Math.floor(p * 10 ** m +
|
|
1965
|
+
const c = Math.floor(p * 10 ** m + Ja);
|
|
1966
1966
|
return (Math.round(c) / 10 ** m).toFixed(m);
|
|
1967
1967
|
}, s = (p, m, c, d) => {
|
|
1968
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
1968
|
+
if (!((n.length === 0 || !t.colonNotation) && Va(p) && !(t.colonNotation && c === "m"))) {
|
|
1969
1969
|
if (d ?? (d = String(p)), t.colonNotation) {
|
|
1970
|
-
const
|
|
1971
|
-
d = "0".repeat(Math.max(0, b -
|
|
1970
|
+
const f = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
|
|
1971
|
+
d = "0".repeat(Math.max(0, b - f)) + d;
|
|
1972
1972
|
} else
|
|
1973
|
-
d += t.verbose ? " " +
|
|
1973
|
+
d += t.verbose ? " " + Ba(m, p) : c;
|
|
1974
1974
|
n.push(d);
|
|
1975
1975
|
}
|
|
1976
|
-
}, i =
|
|
1976
|
+
}, i = Wa(e), u = BigInt(i.days);
|
|
1977
1977
|
if (t.hideYearAndDays ? s(BigInt(u) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(u, "day", "d") : (s(u / 365n, "year", "y"), s(u % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
|
|
1978
1978
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1979
1979
|
const p = Number(i.seconds), m = Number(i.milliseconds), c = Number(i.microseconds), d = Number(i.nanoseconds);
|
|
1980
1980
|
if (s(p, "second", "s"), t.formatSubMilliseconds)
|
|
1981
1981
|
s(m, "millisecond", "ms"), s(c, "microsecond", "µs"), s(d, "nanosecond", "ns");
|
|
1982
1982
|
else {
|
|
1983
|
-
const
|
|
1983
|
+
const f = m + c / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, T = f >= 1 ? Math.round(f) : Math.ceil(f), w = b ? f.toFixed(b) : T;
|
|
1984
1984
|
s(
|
|
1985
1985
|
Number.parseFloat(w),
|
|
1986
1986
|
"millisecond",
|
|
@@ -1997,7 +1997,7 @@ function Fa(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 za = process.env.NODE_ENV === "production", tt = !za, ja = tt ? "gizmette.local.com" : "gizmette.com",
|
|
2000
|
+
const za = process.env.NODE_ENV === "production", tt = !za, ja = tt ? "gizmette.local.com" : "gizmette.com", Jo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Yo = async () => {
|
|
2001
2001
|
const e = {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* A boolean value that indicates the application would
|
|
@@ -2046,7 +2046,7 @@ const za = process.env.NODE_ENV === "production", tt = !za, ja = tt ? "gizmette.
|
|
|
2046
2046
|
e
|
|
2047
2047
|
);
|
|
2048
2048
|
});
|
|
2049
|
-
}, Fo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */
|
|
2049
|
+
}, Fo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ _("div", { className: "flex items-center justify-between", children: [
|
|
2050
2050
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2051
2051
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2052
2052
|
] }) }, `${e}-${r}`)) : null;
|
|
@@ -2070,10 +2070,29 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2070
2070
|
}), Xo = (e) => e > 0 ? Fa(e, {
|
|
2071
2071
|
secondsDecimalDigits: 2,
|
|
2072
2072
|
unitCount: 2
|
|
2073
|
-
}) : "N/A", qa = (e) =>
|
|
2073
|
+
}) : "N/A", qa = (e) => y(
|
|
2074
2074
|
"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",
|
|
2075
2075
|
e || tt ? "pt-4" : "pt-10"
|
|
2076
|
-
), Qo = (e, t) => t === 1 ? e : `${e}s`,
|
|
2076
|
+
), Qo = (e, t) => t === 1 ? e : `${e}s`, Zo = (e, t) => {
|
|
2077
|
+
let r;
|
|
2078
|
+
return (...a) => {
|
|
2079
|
+
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
2080
|
+
};
|
|
2081
|
+
}, Et = "av-button";
|
|
2082
|
+
/*!
|
|
2083
|
+
@versini/ui-spacing v1.1.0
|
|
2084
|
+
© 2024 gizmette.com
|
|
2085
|
+
*/
|
|
2086
|
+
try {
|
|
2087
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
2088
|
+
version: "1.1.0",
|
|
2089
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2090
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
2091
|
+
license: "MIT"
|
|
2092
|
+
});
|
|
2093
|
+
} catch {
|
|
2094
|
+
}
|
|
2095
|
+
const Xa = (e) => {
|
|
2077
2096
|
let t = "";
|
|
2078
2097
|
if (typeof e == "number" || typeof e == "string")
|
|
2079
2098
|
t = "m-" + e;
|
|
@@ -2092,19 +2111,19 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2092
2111
|
const o = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", i = "text-lg font-medium max-h-12 py-2";
|
|
2093
2112
|
switch (e) {
|
|
2094
2113
|
case Qt:
|
|
2095
|
-
return
|
|
2114
|
+
return y("px-4", {
|
|
2096
2115
|
[o]: t === "small",
|
|
2097
2116
|
[s]: t === "medium",
|
|
2098
2117
|
[i]: t === "large"
|
|
2099
2118
|
});
|
|
2100
2119
|
case Qa:
|
|
2101
|
-
return
|
|
2120
|
+
return y("px-4 text-center", {
|
|
2102
2121
|
[o]: t === "small",
|
|
2103
2122
|
[s]: t === "medium",
|
|
2104
2123
|
[i]: t === "large"
|
|
2105
2124
|
});
|
|
2106
2125
|
case rt:
|
|
2107
|
-
return
|
|
2126
|
+
return y("inline-flex items-center", {
|
|
2108
2127
|
"justify-center": n === "center",
|
|
2109
2128
|
"justify-start": n === "left",
|
|
2110
2129
|
"justify-end": n === "right",
|
|
@@ -2125,7 +2144,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2125
2144
|
if (t)
|
|
2126
2145
|
return "not-prose rounded-full";
|
|
2127
2146
|
if (a === "primary")
|
|
2128
|
-
return
|
|
2147
|
+
return y("not-prose rounded-full", {
|
|
2129
2148
|
truncate: !r,
|
|
2130
2149
|
"bg-action-dark text-copy-light": e === "dark",
|
|
2131
2150
|
"bg-action-light text-copy-lighter": e === "light",
|
|
@@ -2133,7 +2152,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2133
2152
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
2134
2153
|
});
|
|
2135
2154
|
if (a === "secondary")
|
|
2136
|
-
return
|
|
2155
|
+
return y("not-prose rounded-full", {
|
|
2137
2156
|
truncate: !r,
|
|
2138
2157
|
"bg-action-dark text-copy-light": e === "light",
|
|
2139
2158
|
"bg-action-light text-copy-lighter": e === "dark",
|
|
@@ -2141,7 +2160,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2141
2160
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
2142
2161
|
});
|
|
2143
2162
|
if (a === "danger")
|
|
2144
|
-
return
|
|
2163
|
+
return y("not-prose rounded-full", {
|
|
2145
2164
|
truncate: !r,
|
|
2146
2165
|
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
2147
2166
|
"bg-action-danger-light text-copy-lighter": e === "light",
|
|
@@ -2156,21 +2175,21 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2156
2175
|
if (t)
|
|
2157
2176
|
return "";
|
|
2158
2177
|
if (r === "primary")
|
|
2159
|
-
return
|
|
2178
|
+
return y("hover:text-copy-light-hover", {
|
|
2160
2179
|
"hover:bg-action-dark-hover": e === "dark",
|
|
2161
2180
|
"hover:bg-action-light-hover": e === "light",
|
|
2162
2181
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
2163
2182
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
2164
2183
|
});
|
|
2165
2184
|
if (r === "secondary")
|
|
2166
|
-
return
|
|
2185
|
+
return y("hover:text-copy-light-hover", {
|
|
2167
2186
|
"hover:bg-action-dark-hover": e === "light",
|
|
2168
2187
|
"hover:bg-action-light-hover": e === "dark",
|
|
2169
2188
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
2170
2189
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
2171
2190
|
});
|
|
2172
2191
|
if (r === "danger")
|
|
2173
|
-
return
|
|
2192
|
+
return y("hover:text-copy-light-hover", {
|
|
2174
2193
|
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
2175
2194
|
"hover:bg-action-danger-light-hover": e === "light",
|
|
2176
2195
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
@@ -2184,21 +2203,21 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2184
2203
|
if (t)
|
|
2185
2204
|
return "";
|
|
2186
2205
|
if (r === "primary")
|
|
2187
|
-
return
|
|
2206
|
+
return y("active:text-copy-light-active", {
|
|
2188
2207
|
"active:bg-action-dark-active": e === "dark",
|
|
2189
2208
|
"active:bg-action-light-active": e === "light",
|
|
2190
2209
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
2191
2210
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
2192
2211
|
});
|
|
2193
2212
|
if (r === "secondary")
|
|
2194
|
-
return
|
|
2213
|
+
return y("active:text-copy-light-active", {
|
|
2195
2214
|
"active:bg-action-dark-active": e === "light",
|
|
2196
2215
|
"active:bg-action-light-active": e === "dark",
|
|
2197
2216
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
2198
2217
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
2199
2218
|
});
|
|
2200
2219
|
if (r === "danger")
|
|
2201
|
-
return
|
|
2220
|
+
return y("active:text-copy-lighter-active", {
|
|
2202
2221
|
"active:bg-action-danger-dark-active": e === "dark",
|
|
2203
2222
|
"active:bg-action-danger-light-active": e === "light",
|
|
2204
2223
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
@@ -2212,27 +2231,27 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2212
2231
|
if (t)
|
|
2213
2232
|
return "border border-transparent";
|
|
2214
2233
|
if (r === "primary")
|
|
2215
|
-
return
|
|
2234
|
+
return y("border", {
|
|
2216
2235
|
"border-border-dark": e === "dark",
|
|
2217
2236
|
"border-border-accent": e === "light",
|
|
2218
2237
|
"border-border-dark dark:border-border-accent": e === "system",
|
|
2219
2238
|
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
2220
2239
|
});
|
|
2221
2240
|
if (r === "secondary")
|
|
2222
|
-
return
|
|
2241
|
+
return y("border", {
|
|
2223
2242
|
"border-border-dark": e === "light",
|
|
2224
2243
|
"border-border-accent": e === "dark",
|
|
2225
2244
|
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
2226
2245
|
"border-border-accent dark:border-border-dark": e === "system"
|
|
2227
2246
|
});
|
|
2228
2247
|
if (r === "danger")
|
|
2229
|
-
return
|
|
2248
|
+
return y("border", {
|
|
2230
2249
|
"border-border-danger-dark": e === "dark",
|
|
2231
2250
|
"border-border-danger-medium": e === "light",
|
|
2232
2251
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
2233
2252
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
2234
2253
|
});
|
|
2235
|
-
}, nn = ({ focusMode: e }) =>
|
|
2254
|
+
}, nn = ({ focusMode: e }) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2236
2255
|
"focus:outline-focus-dark": e === "dark",
|
|
2237
2256
|
"focus:outline-focus-light": e === "light",
|
|
2238
2257
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -2252,13 +2271,13 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2252
2271
|
spacing: m,
|
|
2253
2272
|
noBackground: c,
|
|
2254
2273
|
variant: d,
|
|
2255
|
-
noTruncate:
|
|
2274
|
+
noTruncate: f,
|
|
2256
2275
|
align: b
|
|
2257
|
-
}) => (d || (d = "primary"), r ?
|
|
2276
|
+
}) => (d || (d = "primary"), r ? y(Et, t) : y(
|
|
2258
2277
|
Et,
|
|
2259
2278
|
t,
|
|
2260
2279
|
Xa(m),
|
|
2261
|
-
en({ mode: a, variant: d, noBackground: c, noTruncate:
|
|
2280
|
+
en({ mode: a, variant: d, noBackground: c, noTruncate: f }),
|
|
2262
2281
|
Za({ type: e, size: i, labelRight: h, labelLeft: p, align: b }),
|
|
2263
2282
|
an({ mode: a, variant: d, noBorder: u }),
|
|
2264
2283
|
nn({ focusMode: n }),
|
|
@@ -2271,7 +2290,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2271
2290
|
)), on = (e, t, r) => {
|
|
2272
2291
|
var a;
|
|
2273
2292
|
!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);
|
|
2274
|
-
},
|
|
2293
|
+
}, Le = P.forwardRef((e, t) => {
|
|
2275
2294
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
2276
2295
|
return /* @__PURE__ */ l(
|
|
2277
2296
|
"button",
|
|
@@ -2284,7 +2303,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2284
2303
|
}
|
|
2285
2304
|
);
|
|
2286
2305
|
});
|
|
2287
|
-
|
|
2306
|
+
Le.displayName = "BaseButton";
|
|
2288
2307
|
const Zt = P.forwardRef(
|
|
2289
2308
|
({
|
|
2290
2309
|
children: e,
|
|
@@ -2301,7 +2320,7 @@ const Zt = P.forwardRef(
|
|
|
2301
2320
|
noTruncate: m = !1,
|
|
2302
2321
|
...c
|
|
2303
2322
|
}, d) => {
|
|
2304
|
-
const
|
|
2323
|
+
const f = at({
|
|
2305
2324
|
type: Qt,
|
|
2306
2325
|
mode: r,
|
|
2307
2326
|
focusMode: a,
|
|
@@ -2316,10 +2335,10 @@ const Zt = P.forwardRef(
|
|
|
2316
2335
|
noTruncate: m
|
|
2317
2336
|
});
|
|
2318
2337
|
return /* @__PURE__ */ l(
|
|
2319
|
-
|
|
2338
|
+
Le,
|
|
2320
2339
|
{
|
|
2321
2340
|
ref: d,
|
|
2322
|
-
className:
|
|
2341
|
+
className: f,
|
|
2323
2342
|
disabled: t,
|
|
2324
2343
|
...c,
|
|
2325
2344
|
children: e
|
|
@@ -2344,12 +2363,12 @@ const qe = P.forwardRef(
|
|
|
2344
2363
|
size: m = "medium",
|
|
2345
2364
|
labelRight: c,
|
|
2346
2365
|
labelLeft: d,
|
|
2347
|
-
spacing:
|
|
2366
|
+
spacing: f,
|
|
2348
2367
|
noBackground: b = !1,
|
|
2349
|
-
align:
|
|
2368
|
+
align: T = "center",
|
|
2350
2369
|
...w
|
|
2351
2370
|
}, C) => {
|
|
2352
|
-
const
|
|
2371
|
+
const $ = at({
|
|
2353
2372
|
type: rt,
|
|
2354
2373
|
mode: r,
|
|
2355
2374
|
focusMode: a,
|
|
@@ -2361,27 +2380,27 @@ const qe = P.forwardRef(
|
|
|
2361
2380
|
size: m,
|
|
2362
2381
|
labelRight: c,
|
|
2363
2382
|
labelLeft: d,
|
|
2364
|
-
spacing:
|
|
2383
|
+
spacing: f,
|
|
2365
2384
|
noBackground: b,
|
|
2366
|
-
align:
|
|
2367
|
-
}),
|
|
2385
|
+
align: T
|
|
2386
|
+
}), H = y({
|
|
2368
2387
|
"text-copy-accent-dark": r === "light" && !i,
|
|
2369
2388
|
"text-copy-light": r === "dark" && !i,
|
|
2370
2389
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
|
|
2371
2390
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !i
|
|
2372
2391
|
});
|
|
2373
|
-
return /* @__PURE__ */
|
|
2374
|
-
|
|
2392
|
+
return /* @__PURE__ */ _(
|
|
2393
|
+
Le,
|
|
2375
2394
|
{
|
|
2376
2395
|
ref: C,
|
|
2377
|
-
className:
|
|
2396
|
+
className: $,
|
|
2378
2397
|
disabled: t,
|
|
2379
2398
|
type: s,
|
|
2380
2399
|
"aria-label": h || p,
|
|
2381
2400
|
...w,
|
|
2382
2401
|
children: [
|
|
2383
2402
|
d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
|
|
2384
|
-
/* @__PURE__ */ l("div", { className:
|
|
2403
|
+
/* @__PURE__ */ l("div", { className: H, children: e }),
|
|
2385
2404
|
c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
|
|
2386
2405
|
]
|
|
2387
2406
|
}
|
|
@@ -2390,13 +2409,13 @@ const qe = P.forwardRef(
|
|
|
2390
2409
|
);
|
|
2391
2410
|
qe.displayName = "ButtonIcon";
|
|
2392
2411
|
/*!
|
|
2393
|
-
@versini/ui-button v1.
|
|
2412
|
+
@versini/ui-button v1.6.0
|
|
2394
2413
|
© 2024 gizmette.com
|
|
2395
2414
|
*/
|
|
2396
2415
|
try {
|
|
2397
2416
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2398
|
-
version: "1.
|
|
2399
|
-
buildTime: "12/
|
|
2417
|
+
version: "1.6.0",
|
|
2418
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2400
2419
|
homepage: "https://github.com/aversini/ui-components",
|
|
2401
2420
|
license: "MIT"
|
|
2402
2421
|
});
|
|
@@ -2418,13 +2437,13 @@ const sn = P.forwardRef(
|
|
|
2418
2437
|
size: m = "medium",
|
|
2419
2438
|
labelRight: c,
|
|
2420
2439
|
labelLeft: d,
|
|
2421
|
-
spacing:
|
|
2440
|
+
spacing: f,
|
|
2422
2441
|
noBackground: b = !1,
|
|
2423
|
-
align:
|
|
2442
|
+
align: T = "center",
|
|
2424
2443
|
active: w = !1,
|
|
2425
2444
|
...C
|
|
2426
|
-
},
|
|
2427
|
-
const
|
|
2445
|
+
}, $) => {
|
|
2446
|
+
const H = at({
|
|
2428
2447
|
type: rt,
|
|
2429
2448
|
mode: r,
|
|
2430
2449
|
focusMode: a,
|
|
@@ -2436,15 +2455,15 @@ const sn = P.forwardRef(
|
|
|
2436
2455
|
size: m,
|
|
2437
2456
|
labelRight: c,
|
|
2438
2457
|
labelLeft: d,
|
|
2439
|
-
spacing:
|
|
2458
|
+
spacing: f,
|
|
2440
2459
|
noBackground: b,
|
|
2441
|
-
align:
|
|
2442
|
-
}), ee =
|
|
2460
|
+
align: T
|
|
2461
|
+
}), ee = y({
|
|
2443
2462
|
"text-copy-accent-dark": r === "light" && !i,
|
|
2444
2463
|
"text-copy-light": r === "dark" && !i,
|
|
2445
2464
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
|
|
2446
2465
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !i
|
|
2447
|
-
}), N = w ?
|
|
2466
|
+
}), N = w ? y(
|
|
2448
2467
|
"relative",
|
|
2449
2468
|
"focus-within:static",
|
|
2450
2469
|
"focus-within:after:border-transparent",
|
|
@@ -2461,11 +2480,11 @@ const sn = P.forwardRef(
|
|
|
2461
2480
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
2462
2481
|
}
|
|
2463
2482
|
) : "";
|
|
2464
|
-
return /* @__PURE__ */ l("div", { className: N, children: /* @__PURE__ */
|
|
2465
|
-
|
|
2483
|
+
return /* @__PURE__ */ l("div", { className: N, children: /* @__PURE__ */ _(
|
|
2484
|
+
Le,
|
|
2466
2485
|
{
|
|
2467
|
-
ref:
|
|
2468
|
-
className:
|
|
2486
|
+
ref: $,
|
|
2487
|
+
className: H,
|
|
2469
2488
|
disabled: t,
|
|
2470
2489
|
type: s,
|
|
2471
2490
|
"aria-label": h || p,
|
|
@@ -2481,23 +2500,36 @@ const sn = P.forwardRef(
|
|
|
2481
2500
|
);
|
|
2482
2501
|
sn.displayName = "ButtonSort";
|
|
2483
2502
|
/*!
|
|
2484
|
-
@versini/ui-card v1.
|
|
2503
|
+
@versini/ui-card v1.4.0
|
|
2485
2504
|
© 2024 gizmette.com
|
|
2486
2505
|
*/
|
|
2487
2506
|
try {
|
|
2488
2507
|
window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
|
|
2489
|
-
version: "1.
|
|
2490
|
-
buildTime: "12/
|
|
2508
|
+
version: "1.4.0",
|
|
2509
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2491
2510
|
homepage: "https://github.com/aversini/ui-components",
|
|
2492
2511
|
license: "MIT"
|
|
2493
2512
|
});
|
|
2494
2513
|
} catch {
|
|
2495
2514
|
}
|
|
2496
|
-
const
|
|
2515
|
+
const ke = "av-card";
|
|
2497
2516
|
function cn(e) {
|
|
2498
|
-
const t =
|
|
2517
|
+
const t = Tt();
|
|
2499
2518
|
return `${e}${t}`;
|
|
2500
2519
|
}
|
|
2520
|
+
/*!
|
|
2521
|
+
@versini/ui-spacing v1.1.0
|
|
2522
|
+
© 2024 gizmette.com
|
|
2523
|
+
*/
|
|
2524
|
+
try {
|
|
2525
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
2526
|
+
version: "1.1.0",
|
|
2527
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2528
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
2529
|
+
license: "MIT"
|
|
2530
|
+
});
|
|
2531
|
+
} catch {
|
|
2532
|
+
}
|
|
2501
2533
|
const ln = (e) => {
|
|
2502
2534
|
let t = "";
|
|
2503
2535
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -2517,8 +2549,8 @@ const ln = (e) => {
|
|
|
2517
2549
|
compact: s,
|
|
2518
2550
|
noBorder: i
|
|
2519
2551
|
}) => {
|
|
2520
|
-
const u =
|
|
2521
|
-
|
|
2552
|
+
const u = y(
|
|
2553
|
+
ke,
|
|
2522
2554
|
e,
|
|
2523
2555
|
"rounded-md",
|
|
2524
2556
|
ln(n),
|
|
@@ -2533,7 +2565,7 @@ const ln = (e) => {
|
|
|
2533
2565
|
"border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": o === "system",
|
|
2534
2566
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": o === "alt-system"
|
|
2535
2567
|
}
|
|
2536
|
-
), h = t ||
|
|
2568
|
+
), h = t || y(`${ke}__header mt-0 border-b-2`, {
|
|
2537
2569
|
"text-copy-light border-border-accent": o === "darker",
|
|
2538
2570
|
"border-border-accent": o === "dark",
|
|
2539
2571
|
"border-border-medium": o === "light",
|
|
@@ -2541,7 +2573,7 @@ const ln = (e) => {
|
|
|
2541
2573
|
"border-border-accent dark:border-border-medium": o === "alt-system",
|
|
2542
2574
|
"mb-4": !s,
|
|
2543
2575
|
"mb-2": s
|
|
2544
|
-
}), p =
|
|
2576
|
+
}), p = y(r), m = a || y(`${ke}__footer pt-2`);
|
|
2545
2577
|
return {
|
|
2546
2578
|
wrapper: u,
|
|
2547
2579
|
header: h,
|
|
@@ -2572,8 +2604,8 @@ const mn = ({
|
|
|
2572
2604
|
noBorder: m = !1,
|
|
2573
2605
|
...c
|
|
2574
2606
|
}) => {
|
|
2575
|
-
let d = null,
|
|
2576
|
-
const b = typeof e == "string",
|
|
2607
|
+
let d = null, f = null;
|
|
2608
|
+
const b = typeof e == "string", T = cn(ke), w = dn({
|
|
2577
2609
|
className: o,
|
|
2578
2610
|
headerClassName: t,
|
|
2579
2611
|
bodyClassName: s,
|
|
@@ -2583,11 +2615,11 @@ const mn = ({
|
|
|
2583
2615
|
compact: p,
|
|
2584
2616
|
noBorder: m
|
|
2585
2617
|
});
|
|
2586
|
-
return b ? (d =
|
|
2618
|
+
return b ? (d = T, f = d) : !b && e && i ? (d = null, f = i) : !b && e && !i ? (d = T, f = d) : (d = null, f = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ _(
|
|
2587
2619
|
"section",
|
|
2588
2620
|
{
|
|
2589
|
-
...
|
|
2590
|
-
"aria-labelledby":
|
|
2621
|
+
...f && {
|
|
2622
|
+
"aria-labelledby": f
|
|
2591
2623
|
},
|
|
2592
2624
|
className: w.body,
|
|
2593
2625
|
...c,
|
|
@@ -2606,7 +2638,21 @@ const mn = ({
|
|
|
2606
2638
|
]
|
|
2607
2639
|
}
|
|
2608
2640
|
) });
|
|
2609
|
-
}
|
|
2641
|
+
};
|
|
2642
|
+
/*!
|
|
2643
|
+
@versini/ui-spacing v1.1.0
|
|
2644
|
+
© 2024 gizmette.com
|
|
2645
|
+
*/
|
|
2646
|
+
try {
|
|
2647
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
2648
|
+
version: "1.1.0",
|
|
2649
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2650
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
2651
|
+
license: "MIT"
|
|
2652
|
+
});
|
|
2653
|
+
} catch {
|
|
2654
|
+
}
|
|
2655
|
+
const hn = (e) => {
|
|
2610
2656
|
let t = "";
|
|
2611
2657
|
if (typeof e == "number" || typeof e == "string")
|
|
2612
2658
|
t = "m-" + e;
|
|
@@ -2615,7 +2661,7 @@ const mn = ({
|
|
|
2615
2661
|
(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(" ");
|
|
2616
2662
|
}
|
|
2617
2663
|
return t;
|
|
2618
|
-
},
|
|
2664
|
+
}, Me = ({
|
|
2619
2665
|
children: e,
|
|
2620
2666
|
fill: t,
|
|
2621
2667
|
viewBox: r,
|
|
@@ -2627,11 +2673,11 @@ const mn = ({
|
|
|
2627
2673
|
semantic: u = !1,
|
|
2628
2674
|
...h
|
|
2629
2675
|
}) => {
|
|
2630
|
-
const p = hn(s), m =
|
|
2676
|
+
const p = hn(s), m = y(
|
|
2631
2677
|
p,
|
|
2632
2678
|
a || o
|
|
2633
2679
|
);
|
|
2634
|
-
return /* @__PURE__ */
|
|
2680
|
+
return /* @__PURE__ */ _(fe, { children: [
|
|
2635
2681
|
/* @__PURE__ */ l(
|
|
2636
2682
|
"svg",
|
|
2637
2683
|
{
|
|
@@ -2650,13 +2696,13 @@ const mn = ({
|
|
|
2650
2696
|
] });
|
|
2651
2697
|
};
|
|
2652
2698
|
/*!
|
|
2653
|
-
@versini/ui-
|
|
2699
|
+
@versini/ui-svgicon v1.1.0
|
|
2654
2700
|
© 2024 gizmette.com
|
|
2655
2701
|
*/
|
|
2656
2702
|
try {
|
|
2657
|
-
window.
|
|
2658
|
-
version: "1.
|
|
2659
|
-
buildTime: "12/
|
|
2703
|
+
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2704
|
+
version: "1.1.0",
|
|
2705
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2660
2706
|
homepage: "https://github.com/aversini/ui-components",
|
|
2661
2707
|
license: "MIT"
|
|
2662
2708
|
});
|
|
@@ -2668,7 +2714,7 @@ const pn = ({
|
|
|
2668
2714
|
spacing: r,
|
|
2669
2715
|
...a
|
|
2670
2716
|
}) => /* @__PURE__ */ l(
|
|
2671
|
-
|
|
2717
|
+
Me,
|
|
2672
2718
|
{
|
|
2673
2719
|
defaultViewBox: "0 0 1200 500",
|
|
2674
2720
|
defaultClassName: "w-full",
|
|
@@ -2694,8 +2740,8 @@ const pn = ({
|
|
|
2694
2740
|
title: a,
|
|
2695
2741
|
monotone: n,
|
|
2696
2742
|
...o
|
|
2697
|
-
}) => /* @__PURE__ */
|
|
2698
|
-
|
|
2743
|
+
}) => /* @__PURE__ */ _(
|
|
2744
|
+
Me,
|
|
2699
2745
|
{
|
|
2700
2746
|
defaultViewBox: "0 0 640 512",
|
|
2701
2747
|
defaultClassName: "size-5",
|
|
@@ -2715,7 +2761,7 @@ const pn = ({
|
|
|
2715
2761
|
/* @__PURE__ */ l("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1L9.2 42.9C-1.2 34.7-3.1 19.6 5.1 9.2z" })
|
|
2716
2762
|
]
|
|
2717
2763
|
}
|
|
2718
|
-
),
|
|
2764
|
+
), yn = ({
|
|
2719
2765
|
className: e,
|
|
2720
2766
|
viewBox: t,
|
|
2721
2767
|
spacing: r,
|
|
@@ -2724,8 +2770,8 @@ const pn = ({
|
|
|
2724
2770
|
...o
|
|
2725
2771
|
}) => {
|
|
2726
2772
|
const s = n ? "1" : "0.4";
|
|
2727
|
-
return /* @__PURE__ */
|
|
2728
|
-
|
|
2773
|
+
return /* @__PURE__ */ _(
|
|
2774
|
+
Me,
|
|
2729
2775
|
{
|
|
2730
2776
|
defaultViewBox: "0 0 190 190",
|
|
2731
2777
|
defaultClassName: "size-5",
|
|
@@ -2754,15 +2800,15 @@ const pn = ({
|
|
|
2754
2800
|
]
|
|
2755
2801
|
}
|
|
2756
2802
|
);
|
|
2757
|
-
},
|
|
2803
|
+
}, fn = ({
|
|
2758
2804
|
className: e,
|
|
2759
2805
|
viewBox: t,
|
|
2760
2806
|
spacing: r,
|
|
2761
2807
|
title: a,
|
|
2762
2808
|
monotone: n,
|
|
2763
2809
|
...o
|
|
2764
|
-
}) => /* @__PURE__ */
|
|
2765
|
-
|
|
2810
|
+
}) => /* @__PURE__ */ _(
|
|
2811
|
+
Me,
|
|
2766
2812
|
{
|
|
2767
2813
|
defaultViewBox: "0 0 576 512",
|
|
2768
2814
|
defaultClassName: "size-5",
|
|
@@ -2784,32 +2830,46 @@ const pn = ({
|
|
|
2784
2830
|
}
|
|
2785
2831
|
);
|
|
2786
2832
|
/*!
|
|
2787
|
-
@versini/ui-icons v1.
|
|
2833
|
+
@versini/ui-icons v1.19.0
|
|
2788
2834
|
© 2024 gizmette.com
|
|
2789
2835
|
*/
|
|
2790
2836
|
try {
|
|
2791
2837
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2792
|
-
version: "1.
|
|
2793
|
-
buildTime: "12/
|
|
2838
|
+
version: "1.19.0",
|
|
2839
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2794
2840
|
homepage: "https://github.com/aversini/ui-components",
|
|
2795
2841
|
license: "MIT"
|
|
2796
2842
|
});
|
|
2797
2843
|
} catch {
|
|
2798
2844
|
}
|
|
2799
2845
|
/*!
|
|
2800
|
-
@versini/ui-main v1.
|
|
2846
|
+
@versini/ui-main v1.4.0
|
|
2801
2847
|
© 2024 gizmette.com
|
|
2802
2848
|
*/
|
|
2803
2849
|
try {
|
|
2804
2850
|
window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
|
|
2805
|
-
version: "1.
|
|
2806
|
-
buildTime: "12/
|
|
2851
|
+
version: "1.4.0",
|
|
2852
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2807
2853
|
homepage: "https://github.com/aversini/ui-components",
|
|
2808
2854
|
license: "MIT"
|
|
2809
2855
|
});
|
|
2810
2856
|
} catch {
|
|
2811
2857
|
}
|
|
2812
|
-
const bn = "av-main"
|
|
2858
|
+
const bn = "av-main";
|
|
2859
|
+
/*!
|
|
2860
|
+
@versini/ui-spacing v1.1.0
|
|
2861
|
+
© 2024 gizmette.com
|
|
2862
|
+
*/
|
|
2863
|
+
try {
|
|
2864
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
2865
|
+
version: "1.1.0",
|
|
2866
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2867
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
2868
|
+
license: "MIT"
|
|
2869
|
+
});
|
|
2870
|
+
} catch {
|
|
2871
|
+
}
|
|
2872
|
+
const En = (e) => {
|
|
2813
2873
|
let t = "";
|
|
2814
2874
|
if (typeof e == "number" || typeof e == "string")
|
|
2815
2875
|
t = "m-" + e;
|
|
@@ -2824,11 +2884,25 @@ const bn = "av-main", En = (e) => {
|
|
|
2824
2884
|
raw: r = !1,
|
|
2825
2885
|
spacing: a
|
|
2826
2886
|
}) => {
|
|
2827
|
-
const n =
|
|
2887
|
+
const n = y(t, bn, En(a), {
|
|
2828
2888
|
"mt-2 flex w-full flex-col p-2 sm:mt-3 md:mx-auto md:max-w-4xl": !r
|
|
2829
2889
|
});
|
|
2830
2890
|
return /* @__PURE__ */ l("main", { className: n, children: e });
|
|
2831
|
-
}
|
|
2891
|
+
};
|
|
2892
|
+
/*!
|
|
2893
|
+
@versini/ui-spacing v1.1.0
|
|
2894
|
+
© 2024 gizmette.com
|
|
2895
|
+
*/
|
|
2896
|
+
try {
|
|
2897
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
2898
|
+
version: "1.1.0",
|
|
2899
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2900
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
2901
|
+
license: "MIT"
|
|
2902
|
+
});
|
|
2903
|
+
} catch {
|
|
2904
|
+
}
|
|
2905
|
+
const In = (e) => {
|
|
2832
2906
|
let t = "";
|
|
2833
2907
|
if (typeof e == "number" || typeof e == "string")
|
|
2834
2908
|
t = "m-" + e;
|
|
@@ -2837,7 +2911,7 @@ const bn = "av-main", En = (e) => {
|
|
|
2837
2911
|
(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(" ");
|
|
2838
2912
|
}
|
|
2839
2913
|
return t;
|
|
2840
|
-
},
|
|
2914
|
+
}, _n = "av-flexgrid", ve = "av-flexgrid-item", Oe = 0.25, er = P.createContext({
|
|
2841
2915
|
columnGap: 0,
|
|
2842
2916
|
rowGap: 0
|
|
2843
2917
|
}), wt = ({
|
|
@@ -2866,13 +2940,13 @@ const bn = "av-main", En = (e) => {
|
|
|
2866
2940
|
*/
|
|
2867
2941
|
marginLeft: r * -1 * Oe + "rem",
|
|
2868
2942
|
marginTop: a * -1 * Oe + "rem"
|
|
2869
|
-
}, c =
|
|
2870
|
-
|
|
2943
|
+
}, c = y(
|
|
2944
|
+
_n,
|
|
2871
2945
|
t,
|
|
2872
2946
|
"box-border flex flex-wrap"
|
|
2873
|
-
), d = { columnGap: r, rowGap: a },
|
|
2874
|
-
return /* @__PURE__ */ l(
|
|
2875
|
-
}, Ye = (e, t) =>
|
|
2947
|
+
), d = { columnGap: r, rowGap: a }, f = h ? "div" : P.Fragment;
|
|
2948
|
+
return /* @__PURE__ */ l(f, { ...h ? { className: In(h) } : {}, children: /* @__PURE__ */ l("div", { className: c, style: m, ...p, children: /* @__PURE__ */ l(er.Provider, { value: d, children: e }) }) });
|
|
2949
|
+
}, Ye = (e, t) => y({
|
|
2876
2950
|
"basis-1/12": e === 1 && !t,
|
|
2877
2951
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
2878
2952
|
"md:basis-1/12": e === 1 && t === "md",
|
|
@@ -2945,23 +3019,23 @@ const bn = "av-main", En = (e) => {
|
|
|
2945
3019
|
"lg:basis-full": e === 12 && t === "lg",
|
|
2946
3020
|
"xl:basis-full": e === 12 && t === "xl",
|
|
2947
3021
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
2948
|
-
}),
|
|
3022
|
+
}), Tn = ({
|
|
2949
3023
|
className: e,
|
|
2950
3024
|
span: t
|
|
2951
3025
|
}) => {
|
|
2952
3026
|
if (!t)
|
|
2953
|
-
return
|
|
3027
|
+
return y(e, ve, "box-border basis-auto");
|
|
2954
3028
|
if (typeof t == "number")
|
|
2955
|
-
return
|
|
3029
|
+
return y(e, ve, "box-border max-w-full", {
|
|
2956
3030
|
[`${Ye(t)}`]: !0
|
|
2957
3031
|
});
|
|
2958
3032
|
if (typeof t == "string")
|
|
2959
|
-
return
|
|
3033
|
+
return y(e, ve, "box-border basis-auto", {
|
|
2960
3034
|
"max-w-full grow": t === "auto"
|
|
2961
3035
|
});
|
|
2962
3036
|
if (typeof t == "object") {
|
|
2963
3037
|
const r = Object.entries(t).map(([a, n]) => a === "fallback" ? Ye(n) : Ye(n, a));
|
|
2964
|
-
return
|
|
3038
|
+
return y(
|
|
2965
3039
|
e,
|
|
2966
3040
|
ve,
|
|
2967
3041
|
"box-border",
|
|
@@ -2977,20 +3051,20 @@ const bn = "av-main", En = (e) => {
|
|
|
2977
3051
|
const { columnGap: n, rowGap: o } = Xe(er), s = {
|
|
2978
3052
|
paddingLeft: n * Oe + "rem",
|
|
2979
3053
|
paddingTop: o * Oe + "rem"
|
|
2980
|
-
}, i =
|
|
3054
|
+
}, i = Tn({
|
|
2981
3055
|
className: t,
|
|
2982
3056
|
span: r
|
|
2983
3057
|
});
|
|
2984
3058
|
return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
|
|
2985
3059
|
};
|
|
2986
3060
|
/*!
|
|
2987
|
-
@versini/ui-system v1.
|
|
3061
|
+
@versini/ui-system v1.8.0
|
|
2988
3062
|
© 2024 gizmette.com
|
|
2989
3063
|
*/
|
|
2990
3064
|
try {
|
|
2991
3065
|
window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
|
|
2992
|
-
version: "1.
|
|
2993
|
-
buildTime: "12/
|
|
3066
|
+
version: "1.8.0",
|
|
3067
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
2994
3068
|
homepage: "https://github.com/aversini/ui-components",
|
|
2995
3069
|
license: "MIT"
|
|
2996
3070
|
});
|
|
@@ -2998,12 +3072,12 @@ try {
|
|
|
2998
3072
|
}
|
|
2999
3073
|
const tr = "av-text-input", Sn = "av-text-input-wrapper", Fe = "av-text-input-helper-text";
|
|
3000
3074
|
function vn() {
|
|
3001
|
-
const e =
|
|
3075
|
+
const e = K(!1);
|
|
3002
3076
|
return Z(() => (e.current = !0, () => {
|
|
3003
3077
|
e.current = !1;
|
|
3004
3078
|
}), []), X(() => e.current, []);
|
|
3005
3079
|
}
|
|
3006
|
-
const
|
|
3080
|
+
const An = {
|
|
3007
3081
|
x: 0,
|
|
3008
3082
|
y: 0,
|
|
3009
3083
|
width: 0,
|
|
@@ -3013,8 +3087,8 @@ const kn = {
|
|
|
3013
3087
|
bottom: 0,
|
|
3014
3088
|
right: 0
|
|
3015
3089
|
};
|
|
3016
|
-
function
|
|
3017
|
-
const t = vn(), r =
|
|
3090
|
+
function kn(e) {
|
|
3091
|
+
const t = vn(), r = K(0), a = K(null), [n, o] = q(An), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3018
3092
|
const u = i[0];
|
|
3019
3093
|
u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3020
3094
|
a.current && t() && o(u.contentRect);
|
|
@@ -3025,7 +3099,7 @@ function An(e) {
|
|
|
3025
3099
|
}), [s, e]), [a, n];
|
|
3026
3100
|
}
|
|
3027
3101
|
function Nn(e) {
|
|
3028
|
-
const t =
|
|
3102
|
+
const t = Tt();
|
|
3029
3103
|
if (!e)
|
|
3030
3104
|
return t;
|
|
3031
3105
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -3065,7 +3139,7 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", Rn = {
|
|
|
3065
3139
|
t({
|
|
3066
3140
|
type: ar
|
|
3067
3141
|
}), typeof e == "function" && e();
|
|
3068
|
-
},
|
|
3142
|
+
}, It = ({
|
|
3069
3143
|
children: e,
|
|
3070
3144
|
clearAnnouncementDelay: t,
|
|
3071
3145
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -3091,13 +3165,13 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", Rn = {
|
|
|
3091
3165
|
onAnnouncementClear: o,
|
|
3092
3166
|
dispatch: s
|
|
3093
3167
|
}) => {
|
|
3094
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
3168
|
+
clearTimeout(t.current), r ? t.current = setTimeout(It, r, {
|
|
3095
3169
|
children: e,
|
|
3096
3170
|
clearAnnouncementDelay: a,
|
|
3097
3171
|
clearAnnouncementTimeoutRef: n,
|
|
3098
3172
|
onAnnouncementClear: o,
|
|
3099
3173
|
dispatch: s
|
|
3100
|
-
}) :
|
|
3174
|
+
}) : It({
|
|
3101
3175
|
children: e,
|
|
3102
3176
|
clearAnnouncementDelay: a,
|
|
3103
3177
|
clearAnnouncementTimeoutRef: n,
|
|
@@ -3116,7 +3190,7 @@ function nr({
|
|
|
3116
3190
|
visible: i,
|
|
3117
3191
|
...u
|
|
3118
3192
|
}) {
|
|
3119
|
-
const h =
|
|
3193
|
+
const h = K(null), p = K(null), [m, c] = _t(xn, {
|
|
3120
3194
|
announcement: null
|
|
3121
3195
|
});
|
|
3122
3196
|
let d = r;
|
|
@@ -3136,7 +3210,7 @@ function nr({
|
|
|
3136
3210
|
o,
|
|
3137
3211
|
s
|
|
3138
3212
|
]);
|
|
3139
|
-
const
|
|
3213
|
+
const f = y(t, {
|
|
3140
3214
|
"sr-only": !i
|
|
3141
3215
|
});
|
|
3142
3216
|
return /* @__PURE__ */ l(
|
|
@@ -3144,58 +3218,70 @@ function nr({
|
|
|
3144
3218
|
{
|
|
3145
3219
|
"aria-live": d,
|
|
3146
3220
|
...a && { role: a },
|
|
3147
|
-
className:
|
|
3221
|
+
className: f,
|
|
3148
3222
|
...u,
|
|
3149
3223
|
children: m.announcement
|
|
3150
3224
|
}
|
|
3151
3225
|
);
|
|
3152
3226
|
}
|
|
3153
|
-
const Pn = (e) => {
|
|
3154
|
-
let t = "";
|
|
3155
|
-
if (typeof e == "number" || typeof e == "string")
|
|
3156
|
-
t = "m-" + e;
|
|
3157
|
-
else {
|
|
3158
|
-
const r = [];
|
|
3159
|
-
(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(" ");
|
|
3160
|
-
}
|
|
3161
|
-
return t;
|
|
3162
|
-
};
|
|
3163
3227
|
/*!
|
|
3164
|
-
@versini/ui-
|
|
3228
|
+
@versini/ui-liveregion v1.2.0
|
|
3229
|
+
© 2024 gizmette.com
|
|
3230
|
+
*/
|
|
3231
|
+
try {
|
|
3232
|
+
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
3233
|
+
version: "1.2.0",
|
|
3234
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
3235
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
3236
|
+
license: "MIT"
|
|
3237
|
+
});
|
|
3238
|
+
} catch {
|
|
3239
|
+
}
|
|
3240
|
+
/*!
|
|
3241
|
+
@versini/ui-spacing v1.1.0
|
|
3165
3242
|
© 2024 gizmette.com
|
|
3166
3243
|
*/
|
|
3167
3244
|
try {
|
|
3168
|
-
window.
|
|
3169
|
-
version: "1.
|
|
3170
|
-
buildTime: "12/
|
|
3245
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
3246
|
+
version: "1.1.0",
|
|
3247
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
3171
3248
|
homepage: "https://github.com/aversini/ui-components",
|
|
3172
3249
|
license: "MIT"
|
|
3173
3250
|
});
|
|
3174
3251
|
} catch {
|
|
3175
3252
|
}
|
|
3176
|
-
const
|
|
3253
|
+
const Pn = (e) => {
|
|
3254
|
+
let t = "";
|
|
3255
|
+
if (typeof e == "number" || typeof e == "string")
|
|
3256
|
+
t = "m-" + e;
|
|
3257
|
+
else {
|
|
3258
|
+
const r = [];
|
|
3259
|
+
(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(" ");
|
|
3260
|
+
}
|
|
3261
|
+
return t;
|
|
3262
|
+
}, Dn = ({
|
|
3177
3263
|
mode: e
|
|
3178
|
-
}) =>
|
|
3264
|
+
}) => y({
|
|
3179
3265
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
3180
3266
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
3181
3267
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
3182
3268
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
3183
|
-
}),
|
|
3269
|
+
}), $n = ({
|
|
3184
3270
|
focusMode: e
|
|
3185
|
-
}) =>
|
|
3271
|
+
}) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
3186
3272
|
"focus:outline-focus-dark": e === "dark",
|
|
3187
3273
|
"focus:outline-focus-light": e === "light",
|
|
3188
3274
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
3189
3275
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
3190
|
-
}),
|
|
3276
|
+
}), Ln = ({
|
|
3191
3277
|
noBorder: e,
|
|
3192
3278
|
error: t
|
|
3193
|
-
}) =>
|
|
3279
|
+
}) => y("border-2", {
|
|
3194
3280
|
"border-border-dark": !e && !t,
|
|
3195
3281
|
"focus:border-border-dark": !e && t,
|
|
3196
3282
|
"border-border-error-dark": !e && t,
|
|
3197
3283
|
"border-transparent": e
|
|
3198
|
-
}),
|
|
3284
|
+
}), Mn = ({
|
|
3199
3285
|
disabled: e,
|
|
3200
3286
|
raw: t,
|
|
3201
3287
|
error: r,
|
|
@@ -3204,22 +3290,22 @@ const Dn = ({
|
|
|
3204
3290
|
if (t)
|
|
3205
3291
|
return "";
|
|
3206
3292
|
if (e)
|
|
3207
|
-
return
|
|
3293
|
+
return y("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
3208
3294
|
if (!r)
|
|
3209
|
-
return
|
|
3295
|
+
return y("absolute px-2 cursor-text font-medium", {
|
|
3210
3296
|
"text-copy-lighter": a === "dark",
|
|
3211
3297
|
"text-copy-dark": a === "light",
|
|
3212
3298
|
"text-copy-dark dark:text-copy-lighter": a === "system",
|
|
3213
3299
|
"text-copy-lighter dark:text-copy-dark": a === "alt-system"
|
|
3214
3300
|
});
|
|
3215
3301
|
if (r)
|
|
3216
|
-
return
|
|
3302
|
+
return y("absolute px-2 cursor-text font-medium", {
|
|
3217
3303
|
"text-copy-lighter": a === "dark",
|
|
3218
3304
|
"text-copy-error-dark": a === "light",
|
|
3219
3305
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
|
|
3220
3306
|
"text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
|
|
3221
3307
|
});
|
|
3222
|
-
},
|
|
3308
|
+
}, Un = ({
|
|
3223
3309
|
error: e,
|
|
3224
3310
|
raw: t,
|
|
3225
3311
|
mode: r,
|
|
@@ -3228,25 +3314,25 @@ const Dn = ({
|
|
|
3228
3314
|
if (t)
|
|
3229
3315
|
return "";
|
|
3230
3316
|
if (a)
|
|
3231
|
-
return
|
|
3317
|
+
return y(
|
|
3232
3318
|
Fe,
|
|
3233
3319
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
3234
3320
|
);
|
|
3235
3321
|
if (!e)
|
|
3236
|
-
return
|
|
3322
|
+
return y(Fe, "absolute px-2 font-medium", {
|
|
3237
3323
|
"text-copy-lighter": r === "dark",
|
|
3238
3324
|
"text-copy-dark": r === "light",
|
|
3239
3325
|
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
3240
3326
|
"text-copy-lighter dark:text-copy-dark": r === "alt-system"
|
|
3241
3327
|
});
|
|
3242
3328
|
if (e)
|
|
3243
|
-
return
|
|
3329
|
+
return y(Fe, "absolute px-2 font-medium", {
|
|
3244
3330
|
"text-copy-error-light bg-surface-darker": r === "dark",
|
|
3245
3331
|
"text-copy-error-dark": r === "light",
|
|
3246
3332
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
3247
3333
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
3248
3334
|
});
|
|
3249
|
-
},
|
|
3335
|
+
}, Kn = ({
|
|
3250
3336
|
className: e,
|
|
3251
3337
|
inputClassName: t,
|
|
3252
3338
|
raw: r,
|
|
@@ -3259,7 +3345,7 @@ const Dn = ({
|
|
|
3259
3345
|
size: h,
|
|
3260
3346
|
rightElementClassName: p
|
|
3261
3347
|
}) => {
|
|
3262
|
-
const m = r ? e :
|
|
3348
|
+
const m = r ? e : y(
|
|
3263
3349
|
"relative flex w-full flex-col justify-center",
|
|
3264
3350
|
Sn,
|
|
3265
3351
|
e,
|
|
@@ -3283,34 +3369,34 @@ const Dn = ({
|
|
|
3283
3369
|
c = "h-12";
|
|
3284
3370
|
break;
|
|
3285
3371
|
}
|
|
3286
|
-
const d = r ?
|
|
3372
|
+
const d = r ? y(t) : y(
|
|
3287
3373
|
tr,
|
|
3288
3374
|
t,
|
|
3289
3375
|
c,
|
|
3290
3376
|
"rounded-md text-base px-4",
|
|
3291
3377
|
Dn({ mode: i }),
|
|
3292
|
-
|
|
3293
|
-
|
|
3378
|
+
$n({ focusMode: u }),
|
|
3379
|
+
Ln({ noBorder: n, error: o }),
|
|
3294
3380
|
{
|
|
3295
3381
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
3296
3382
|
}
|
|
3297
|
-
),
|
|
3383
|
+
), f = r ? void 0 : "sr-only", b = Mn({
|
|
3298
3384
|
disabled: a,
|
|
3299
3385
|
raw: r,
|
|
3300
3386
|
error: o,
|
|
3301
3387
|
mode: i
|
|
3302
|
-
}),
|
|
3388
|
+
}), T = Un({
|
|
3303
3389
|
error: o,
|
|
3304
3390
|
raw: r,
|
|
3305
3391
|
mode: i,
|
|
3306
3392
|
disabled: a
|
|
3307
|
-
}), w = r ? void 0 :
|
|
3393
|
+
}), w = r ? void 0 : y("absolute right-3", p);
|
|
3308
3394
|
return {
|
|
3309
3395
|
wrapper: m,
|
|
3310
3396
|
input: d,
|
|
3311
|
-
accessibleLabel:
|
|
3397
|
+
accessibleLabel: f,
|
|
3312
3398
|
visibleLabel: b,
|
|
3313
|
-
helperText:
|
|
3399
|
+
helperText: T,
|
|
3314
3400
|
rightElement: w
|
|
3315
3401
|
};
|
|
3316
3402
|
}, nt = P.forwardRef(
|
|
@@ -3329,20 +3415,20 @@ const Dn = ({
|
|
|
3329
3415
|
labelId: m,
|
|
3330
3416
|
labelHidden: c = !1,
|
|
3331
3417
|
type: d = "text",
|
|
3332
|
-
helperText:
|
|
3418
|
+
helperText: f = "",
|
|
3333
3419
|
rightElement: b,
|
|
3334
|
-
rightElementClassName:
|
|
3420
|
+
rightElementClassName: T,
|
|
3335
3421
|
spacing: w,
|
|
3336
3422
|
size: C = "md",
|
|
3337
|
-
|
|
3338
|
-
},
|
|
3339
|
-
const [ee, N] =
|
|
3423
|
+
...$
|
|
3424
|
+
}, H) => {
|
|
3425
|
+
const [ee, N] = kn(), [J, D] = q(0), Y = Nn({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${f}`, te = K(null), R = K(null), L = {
|
|
3340
3426
|
xs: { label: "-25px", helperText: "30px" },
|
|
3341
3427
|
sm: { label: "-29px", helperText: "34px" },
|
|
3342
3428
|
md: { label: "-33px", helperText: "38px" },
|
|
3343
3429
|
lg: { label: "-15px", helperText: "22px" },
|
|
3344
3430
|
xl: { label: "-19px", helperText: "25px" }
|
|
3345
|
-
},
|
|
3431
|
+
}, G = Kn({
|
|
3346
3432
|
className: o,
|
|
3347
3433
|
inputClassName: s,
|
|
3348
3434
|
error: a,
|
|
@@ -3353,41 +3439,41 @@ const Dn = ({
|
|
|
3353
3439
|
spacing: w,
|
|
3354
3440
|
mode: i,
|
|
3355
3441
|
size: C,
|
|
3356
|
-
rightElementClassName:
|
|
3442
|
+
rightElementClassName: T
|
|
3357
3443
|
});
|
|
3358
3444
|
return st(() => {
|
|
3359
3445
|
N && N.width && D(N.width + 18 + 10);
|
|
3360
3446
|
}, [N]), st(() => {
|
|
3361
|
-
var g,
|
|
3362
|
-
const { label: E, helperText: z } =
|
|
3363
|
-
(g = te == null ? void 0 : te.current) == null || g.style.setProperty("--av-text-input-label", E), (
|
|
3447
|
+
var g, I;
|
|
3448
|
+
const { label: E, helperText: z } = L[C];
|
|
3449
|
+
(g = te == null ? void 0 : te.current) == null || g.style.setProperty("--av-text-input-label", E), (I = R == null ? void 0 : R.current) == null || I.style.setProperty(
|
|
3364
3450
|
"--av-text-input-helper-text",
|
|
3365
3451
|
z
|
|
3366
3452
|
);
|
|
3367
|
-
}, [C]), /* @__PURE__ */
|
|
3453
|
+
}, [C]), /* @__PURE__ */ _("div", { className: G.wrapper, children: [
|
|
3368
3454
|
/* @__PURE__ */ l(
|
|
3369
3455
|
"label",
|
|
3370
3456
|
{
|
|
3371
3457
|
htmlFor: Y,
|
|
3372
3458
|
id: m,
|
|
3373
|
-
className:
|
|
3459
|
+
className: G.accessibleLabel,
|
|
3374
3460
|
children: r
|
|
3375
3461
|
}
|
|
3376
3462
|
),
|
|
3377
3463
|
/* @__PURE__ */ l(
|
|
3378
3464
|
"input",
|
|
3379
3465
|
{
|
|
3380
|
-
ref:
|
|
3466
|
+
ref: H,
|
|
3381
3467
|
id: Y,
|
|
3382
3468
|
name: t,
|
|
3383
3469
|
type: d,
|
|
3384
3470
|
disabled: h,
|
|
3385
3471
|
placeholder: n ? void 0 : " ",
|
|
3386
|
-
className:
|
|
3387
|
-
...
|
|
3472
|
+
className: G.input,
|
|
3473
|
+
...f && { "aria-describedby": `${Y}-helper` },
|
|
3388
3474
|
...a && { "aria-invalid": "true" },
|
|
3389
|
-
...b && !n && { style: { paddingRight:
|
|
3390
|
-
|
|
3475
|
+
...b && !n && { style: { paddingRight: J } },
|
|
3476
|
+
...$
|
|
3391
3477
|
}
|
|
3392
3478
|
),
|
|
3393
3479
|
!n && !c && /* @__PURE__ */ l(
|
|
@@ -3396,33 +3482,33 @@ const Dn = ({
|
|
|
3396
3482
|
ref: te,
|
|
3397
3483
|
"aria-hidden": !0,
|
|
3398
3484
|
htmlFor: Y,
|
|
3399
|
-
className:
|
|
3485
|
+
className: G.visibleLabel,
|
|
3400
3486
|
children: r
|
|
3401
3487
|
}
|
|
3402
3488
|
),
|
|
3403
|
-
|
|
3489
|
+
f && /* @__PURE__ */ l(
|
|
3404
3490
|
"div",
|
|
3405
3491
|
{
|
|
3406
3492
|
ref: R,
|
|
3407
3493
|
id: `${Y}-helper`,
|
|
3408
|
-
className:
|
|
3409
|
-
children:
|
|
3494
|
+
className: G.helperText,
|
|
3495
|
+
children: f
|
|
3410
3496
|
}
|
|
3411
3497
|
),
|
|
3412
3498
|
b && /* @__PURE__ */ l(
|
|
3413
3499
|
"div",
|
|
3414
3500
|
{
|
|
3415
3501
|
ref: ee,
|
|
3416
|
-
className:
|
|
3502
|
+
className: G.rightElement,
|
|
3417
3503
|
children: b
|
|
3418
3504
|
}
|
|
3419
3505
|
),
|
|
3420
|
-
a &&
|
|
3506
|
+
a && f && /* @__PURE__ */ l(nr, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
|
|
3421
3507
|
] });
|
|
3422
3508
|
}
|
|
3423
3509
|
);
|
|
3424
3510
|
nt.displayName = "TextInput";
|
|
3425
|
-
function
|
|
3511
|
+
function Hn(e) {
|
|
3426
3512
|
return St(() => e.every((t) => t == null) ? () => {
|
|
3427
3513
|
} : (t) => {
|
|
3428
3514
|
e.forEach((r) => {
|
|
@@ -3430,7 +3516,7 @@ function $n(e) {
|
|
|
3430
3516
|
});
|
|
3431
3517
|
}, e);
|
|
3432
3518
|
}
|
|
3433
|
-
const
|
|
3519
|
+
const Gn = 500, Wn = 5e3, Vn = 2e4, or = P.forwardRef(
|
|
3434
3520
|
({
|
|
3435
3521
|
name: e,
|
|
3436
3522
|
disabled: t,
|
|
@@ -3445,29 +3531,29 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
|
|
|
3445
3531
|
spacing: p,
|
|
3446
3532
|
...m
|
|
3447
3533
|
}, c) => {
|
|
3448
|
-
const [d,
|
|
3534
|
+
const [d, f] = q(!0), [b, T] = q({
|
|
3449
3535
|
message: null,
|
|
3450
3536
|
politeness: null
|
|
3451
|
-
}), w =
|
|
3537
|
+
}), w = K(!0), C = K(null), $ = K(null), H = Hn([c, $]), ee = d ? "Show" : "Hide", N = () => {
|
|
3452
3538
|
C.current && clearTimeout(C.current), w.current || (C.current = setTimeout(() => {
|
|
3453
|
-
w.current = !0,
|
|
3454
|
-
announcementTimeout:
|
|
3539
|
+
w.current = !0, f(!0), T({
|
|
3540
|
+
announcementTimeout: Wn,
|
|
3455
3541
|
politeness: "polite",
|
|
3456
3542
|
message: `${r} hiding characters`
|
|
3457
3543
|
}), n && n(!0);
|
|
3458
|
-
},
|
|
3459
|
-
},
|
|
3544
|
+
}, Vn));
|
|
3545
|
+
}, J = (R) => {
|
|
3460
3546
|
R.preventDefault();
|
|
3461
|
-
const
|
|
3462
|
-
w.current =
|
|
3463
|
-
announcementTimeout:
|
|
3547
|
+
const L = !w.current;
|
|
3548
|
+
w.current = L, N(), f(L), T({
|
|
3549
|
+
announcementTimeout: Gn,
|
|
3464
3550
|
politeness: "assertive",
|
|
3465
|
-
message:
|
|
3466
|
-
}), n && n(
|
|
3551
|
+
message: L ? "Characters hidden" : "Characters showing"
|
|
3552
|
+
}), n && n(L);
|
|
3467
3553
|
}, D = (R) => {
|
|
3468
|
-
var
|
|
3469
|
-
const { relatedTarget:
|
|
3470
|
-
g != null && g.contains(
|
|
3554
|
+
var L;
|
|
3555
|
+
const { relatedTarget: G } = R, g = (L = $.current) == null ? void 0 : L.parentElement;
|
|
3556
|
+
g != null && g.contains(G) || u && u();
|
|
3471
3557
|
}, Y = (R) => {
|
|
3472
3558
|
N(), s && s(R), D(R);
|
|
3473
3559
|
}, pe = (R) => {
|
|
@@ -3477,11 +3563,11 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
|
|
|
3477
3563
|
};
|
|
3478
3564
|
return Z(() => () => {
|
|
3479
3565
|
C.current && clearTimeout(C.current);
|
|
3480
|
-
}, []), /* @__PURE__ */
|
|
3566
|
+
}, []), /* @__PURE__ */ _(fe, { children: [
|
|
3481
3567
|
/* @__PURE__ */ l(
|
|
3482
3568
|
nt,
|
|
3483
3569
|
{
|
|
3484
|
-
ref:
|
|
3570
|
+
ref: H,
|
|
3485
3571
|
name: e,
|
|
3486
3572
|
label: r,
|
|
3487
3573
|
labelHidden: a,
|
|
@@ -3494,7 +3580,7 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
|
|
|
3494
3580
|
rightElement: P.cloneElement(h, {
|
|
3495
3581
|
ref: c,
|
|
3496
3582
|
label: ee,
|
|
3497
|
-
onClick:
|
|
3583
|
+
onClick: J,
|
|
3498
3584
|
onBlur: D,
|
|
3499
3585
|
disabled: t
|
|
3500
3586
|
}),
|
|
@@ -3515,26 +3601,26 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
|
|
|
3515
3601
|
);
|
|
3516
3602
|
or.displayName = "TextInputMask";
|
|
3517
3603
|
/*!
|
|
3518
|
-
@versini/ui-textinput v1.
|
|
3604
|
+
@versini/ui-textinput v1.6.0
|
|
3519
3605
|
© 2024 gizmette.com
|
|
3520
3606
|
*/
|
|
3521
3607
|
try {
|
|
3522
3608
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
3523
|
-
version: "1.
|
|
3524
|
-
buildTime: "12/
|
|
3609
|
+
version: "1.6.0",
|
|
3610
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
3525
3611
|
homepage: "https://github.com/aversini/ui-components",
|
|
3526
3612
|
license: "MIT"
|
|
3527
3613
|
});
|
|
3528
3614
|
} catch {
|
|
3529
3615
|
}
|
|
3530
|
-
const
|
|
3616
|
+
const Bn = "ASK! ME! ANYTHING!", sr = "LeeLou", Jn = "gizmette.com", Yn = "Log in", Fn = "Sign in with a Passkey", es = "Log out", zn = "Password", jn = "Powered by ", ts = "Send", rs = "Profile", as = "Statistics", ns = "Chat history", os = "About", ss = "Type your question here", is = "<clipboard>", cs = {
|
|
3531
3617
|
ACTION_WHILE_STREAMING: {
|
|
3532
3618
|
content: "Cancel chat"
|
|
3533
3619
|
},
|
|
3534
3620
|
ACTION_WHILE_NOT_STREAMING: {
|
|
3535
3621
|
content: "New chat"
|
|
3536
3622
|
}
|
|
3537
|
-
},
|
|
3623
|
+
}, ls = "N/A", ds = "Tags 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.", us = {
|
|
3538
3624
|
PREFERENCES: {
|
|
3539
3625
|
TITLE: "User settings",
|
|
3540
3626
|
NAME: "Name",
|
|
@@ -3570,19 +3656,33 @@ const Jn = "ASK! ME! ANYTHING!", sr = "LeeLou", Vn = "gizmette.com", Yn = "Log i
|
|
|
3570
3656
|
}
|
|
3571
3657
|
};
|
|
3572
3658
|
/*!
|
|
3573
|
-
@versini/ui-footer v1.
|
|
3659
|
+
@versini/ui-footer v1.4.0
|
|
3574
3660
|
© 2024 gizmette.com
|
|
3575
3661
|
*/
|
|
3576
3662
|
try {
|
|
3577
3663
|
window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
|
|
3578
|
-
version: "1.
|
|
3579
|
-
buildTime: "12/
|
|
3664
|
+
version: "1.4.0",
|
|
3665
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
3666
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
3667
|
+
license: "MIT"
|
|
3668
|
+
});
|
|
3669
|
+
} catch {
|
|
3670
|
+
}
|
|
3671
|
+
const qn = "av-footer";
|
|
3672
|
+
/*!
|
|
3673
|
+
@versini/ui-spacing v1.1.0
|
|
3674
|
+
© 2024 gizmette.com
|
|
3675
|
+
*/
|
|
3676
|
+
try {
|
|
3677
|
+
window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
|
|
3678
|
+
version: "1.1.0",
|
|
3679
|
+
buildTime: "12/26/2024 06:05 PM EST",
|
|
3580
3680
|
homepage: "https://github.com/aversini/ui-components",
|
|
3581
3681
|
license: "MIT"
|
|
3582
3682
|
});
|
|
3583
3683
|
} catch {
|
|
3584
3684
|
}
|
|
3585
|
-
const
|
|
3685
|
+
const Xn = (e) => {
|
|
3586
3686
|
let t = "";
|
|
3587
3687
|
if (typeof e == "number" || typeof e == "string")
|
|
3588
3688
|
t = "m-" + e;
|
|
@@ -3600,7 +3700,7 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3600
3700
|
spacing: o,
|
|
3601
3701
|
raw: s = !1
|
|
3602
3702
|
}) => {
|
|
3603
|
-
const i =
|
|
3703
|
+
const i = y(qn, e, Xn(o), {
|
|
3604
3704
|
"text-copy-dark": !s && t === "dark",
|
|
3605
3705
|
"text-copy-lighter": !s && t === "light",
|
|
3606
3706
|
"text-copy-dark dark:text-copy-lighter": !s && t === "system",
|
|
@@ -3608,15 +3708,15 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3608
3708
|
"mb-[100px]": !n && !s,
|
|
3609
3709
|
"mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !s
|
|
3610
3710
|
});
|
|
3611
|
-
return /* @__PURE__ */
|
|
3711
|
+
return /* @__PURE__ */ _("footer", { className: i, children: [
|
|
3612
3712
|
r && /* @__PURE__ */ l("div", { children: r }),
|
|
3613
3713
|
a && /* @__PURE__ */ l("div", { children: a })
|
|
3614
3714
|
] });
|
|
3615
3715
|
}, Zn = P.createContext({
|
|
3616
3716
|
state: {
|
|
3617
3717
|
id: "",
|
|
3618
|
-
model:
|
|
3619
|
-
engine:
|
|
3718
|
+
model: Je,
|
|
3719
|
+
engine: Je,
|
|
3620
3720
|
usage: 0,
|
|
3621
3721
|
messages: [],
|
|
3622
3722
|
isComponent: !1,
|
|
@@ -3628,14 +3728,14 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3628
3728
|
version: "",
|
|
3629
3729
|
models: [],
|
|
3630
3730
|
plugins: [],
|
|
3631
|
-
engine:
|
|
3731
|
+
engine: Je,
|
|
3632
3732
|
engines: []
|
|
3633
3733
|
}
|
|
3634
|
-
}),
|
|
3734
|
+
}), ms = P.createContext({
|
|
3635
3735
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
3636
3736
|
dispatch: () => {
|
|
3637
3737
|
}
|
|
3638
|
-
}),
|
|
3738
|
+
}), hs = P.createContext({
|
|
3639
3739
|
state: { tag: "" },
|
|
3640
3740
|
dispatch: () => {
|
|
3641
3741
|
}
|
|
@@ -3647,37 +3747,37 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3647
3747
|
Qn,
|
|
3648
3748
|
{
|
|
3649
3749
|
mode: "light",
|
|
3650
|
-
row1: /* @__PURE__ */
|
|
3750
|
+
row1: /* @__PURE__ */ _("div", { children: [
|
|
3651
3751
|
sr,
|
|
3652
3752
|
" v",
|
|
3653
|
-
"5.8.
|
|
3753
|
+
"5.8.2",
|
|
3654
3754
|
" - ",
|
|
3655
3755
|
jn,
|
|
3656
3756
|
t && t.engine,
|
|
3657
3757
|
tt && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
3658
3758
|
] }),
|
|
3659
|
-
row2: /* @__PURE__ */
|
|
3759
|
+
row2: /* @__PURE__ */ _("div", { children: [
|
|
3660
3760
|
"© ",
|
|
3661
3761
|
(/* @__PURE__ */ new Date()).getFullYear(),
|
|
3662
3762
|
" ",
|
|
3663
|
-
|
|
3763
|
+
Jn
|
|
3664
3764
|
] })
|
|
3665
3765
|
}
|
|
3666
3766
|
);
|
|
3667
3767
|
}, to = vt(
|
|
3668
3768
|
() => import(
|
|
3669
3769
|
/* webpackChunkName: "LazyHeader" */
|
|
3670
|
-
"./LazyHeader.
|
|
3770
|
+
"./LazyHeader.CHy11tdF.js"
|
|
3671
3771
|
)
|
|
3672
3772
|
), ro = () => {
|
|
3673
3773
|
const { isAuthenticated: e } = et();
|
|
3674
|
-
return /* @__PURE__ */
|
|
3675
|
-
e && /* @__PURE__ */ l(
|
|
3676
|
-
/* @__PURE__ */
|
|
3774
|
+
return /* @__PURE__ */ _(fe, { children: [
|
|
3775
|
+
e && /* @__PURE__ */ l(At, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(to, {}) }),
|
|
3776
|
+
/* @__PURE__ */ _("div", { className: "flex items-center justify-center", children: [
|
|
3677
3777
|
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(pn, {}) }),
|
|
3678
|
-
/* @__PURE__ */
|
|
3778
|
+
/* @__PURE__ */ _("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3679
3779
|
/* @__PURE__ */ l("h1", { children: sr }),
|
|
3680
|
-
/* @__PURE__ */ l("h2", { children:
|
|
3780
|
+
/* @__PURE__ */ l("h2", { children: Bn })
|
|
3681
3781
|
] })
|
|
3682
3782
|
] })
|
|
3683
3783
|
] });
|
|
@@ -3696,11 +3796,11 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3696
3796
|
}, 500);
|
|
3697
3797
|
}), Z(() => {
|
|
3698
3798
|
t && s(t);
|
|
3699
|
-
}, [t]), /* @__PURE__ */
|
|
3700
|
-
/* @__PURE__ */
|
|
3799
|
+
}, [t]), /* @__PURE__ */ _(fe, { children: [
|
|
3800
|
+
/* @__PURE__ */ _(wn, { children: [
|
|
3701
3801
|
/* @__PURE__ */ l("div", { className: qa(), children: /* @__PURE__ */ l(ro, {}) }),
|
|
3702
|
-
/* @__PURE__ */
|
|
3703
|
-
/* @__PURE__ */ l(wt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */
|
|
3802
|
+
/* @__PURE__ */ _("form", { className: "mt-5", onSubmit: m, children: [
|
|
3803
|
+
/* @__PURE__ */ l(wt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ _(mn, { mode: "dark", children: [
|
|
3704
3804
|
/* @__PURE__ */ l(le, { span: 12, children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
|
|
3705
3805
|
/* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
|
|
3706
3806
|
nt,
|
|
@@ -3733,7 +3833,7 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3733
3833
|
focusMode: "light",
|
|
3734
3834
|
name: "password",
|
|
3735
3835
|
label: zn,
|
|
3736
|
-
rightElement: /* @__PURE__ */ l(qe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(
|
|
3836
|
+
rightElement: /* @__PURE__ */ l(qe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(fn, {}) : /* @__PURE__ */ l(gn, {}) }),
|
|
3737
3837
|
onMaskChange: u,
|
|
3738
3838
|
onChange: (c) => {
|
|
3739
3839
|
p({
|
|
@@ -3769,7 +3869,7 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3769
3869
|
className: "mb-4 mt-1",
|
|
3770
3870
|
labelRight: Fn,
|
|
3771
3871
|
onClick: r,
|
|
3772
|
-
children: /* @__PURE__ */ l(
|
|
3872
|
+
children: /* @__PURE__ */ l(yn, { className: "size-7" })
|
|
3773
3873
|
}
|
|
3774
3874
|
) }) })
|
|
3775
3875
|
] })
|
|
@@ -3779,80 +3879,81 @@ const qn = "av-footer", Xn = (e) => {
|
|
|
3779
3879
|
}, no = new URL(document.location.href).searchParams, oo = !!no.get("debug") || !1, so = vt(
|
|
3780
3880
|
() => import(
|
|
3781
3881
|
/* webpackChunkName: "LazyApp" */
|
|
3782
|
-
"./LazyApp.
|
|
3882
|
+
"./LazyApp.C-ghWo2j.js"
|
|
3783
3883
|
).then((e) => e.LazyApp)
|
|
3784
3884
|
), io = ({ isComponent: e }) => {
|
|
3785
3885
|
const { isAuthenticated: t } = et();
|
|
3786
|
-
return t ? /* @__PURE__ */ l(
|
|
3886
|
+
return t ? /* @__PURE__ */ l(At, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(so, { isComponent: e }) }) : /* @__PURE__ */ l(ao, {});
|
|
3787
3887
|
}, co = ({
|
|
3788
3888
|
isComponent: e = !1,
|
|
3789
3889
|
domain: t = ja
|
|
3790
|
-
}) => /* @__PURE__ */ l(
|
|
3890
|
+
}) => /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }) }), ps = ({ domain: e }) => /* @__PURE__ */ l(co, { isComponent: !0, domain: e });
|
|
3791
3891
|
export {
|
|
3792
|
-
|
|
3892
|
+
os as ABOUT_TITLE,
|
|
3793
3893
|
Po as ACTION_ENGINE,
|
|
3794
3894
|
No as ACTION_MESSAGE,
|
|
3795
3895
|
xo as ACTION_MODEL,
|
|
3796
3896
|
Ro as ACTION_RESET,
|
|
3797
|
-
|
|
3897
|
+
Mo as ACTION_RESET_TAGS,
|
|
3798
3898
|
Co as ACTION_RESTORE,
|
|
3799
3899
|
Do as ACTION_SEARCH,
|
|
3800
|
-
|
|
3801
|
-
|
|
3900
|
+
Uo as ACTION_SET_TAGS,
|
|
3901
|
+
$o as ACTION_SORT,
|
|
3802
3902
|
Oo as ACTION_STREAMING,
|
|
3803
|
-
|
|
3903
|
+
Lo as ACTION_TOGGLE_TAG,
|
|
3804
3904
|
sr as APP_NAME,
|
|
3805
3905
|
Zn as AppContext,
|
|
3806
3906
|
eo as AppFooter,
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3907
|
+
us as CARDS,
|
|
3908
|
+
is as CLIPBOARD_TAG,
|
|
3909
|
+
Je as DEFAULT_AI_ENGINE,
|
|
3810
3910
|
mn as E,
|
|
3811
|
-
|
|
3911
|
+
Ao as ENGINE_ANTHROPIC,
|
|
3812
3912
|
vo as ENGINE_OPENAI,
|
|
3813
3913
|
So as ERROR_MESSAGE,
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3914
|
+
ko as GPT4_MAX_TOKENS,
|
|
3915
|
+
ns as HISTORY_TITLE,
|
|
3916
|
+
ms as HistoryContext,
|
|
3917
|
+
Ho as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3918
|
+
Vo as LOCAL_STORAGE_ENGINE_TOGGLE,
|
|
3919
|
+
Ko as LOCAL_STORAGE_PREFIX,
|
|
3920
|
+
Go as LOCAL_STORAGE_SEARCH,
|
|
3921
|
+
Wo as LOCAL_STORAGE_SORT,
|
|
3922
|
+
es as LOG_OUT,
|
|
3823
3923
|
ue as M,
|
|
3824
3924
|
ro as MessagesContainerHeader,
|
|
3825
|
-
|
|
3925
|
+
ls as NA,
|
|
3826
3926
|
qe as O,
|
|
3827
|
-
|
|
3927
|
+
rs as PROFILE_TITLE,
|
|
3828
3928
|
Zt as R,
|
|
3829
3929
|
wo as ROLE_ASSISTANT,
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3930
|
+
To as ROLE_HIDDEN,
|
|
3931
|
+
_o as ROLE_INTERNAL,
|
|
3932
|
+
Io as ROLE_SYSTEM,
|
|
3833
3933
|
Eo as ROLE_USER,
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3934
|
+
ts as SEND,
|
|
3935
|
+
as as STATS,
|
|
3936
|
+
Bo as STATS_SEPARATOR,
|
|
3937
|
+
ps as SassySaint,
|
|
3938
|
+
ds as TAGS_DESCRIPTION,
|
|
3939
|
+
cs as TOOLBOX,
|
|
3940
|
+
ss as TYPE_QUESTION,
|
|
3941
|
+
hs as TagsContext,
|
|
3842
3942
|
wt as b,
|
|
3843
|
-
wn as
|
|
3943
|
+
wn as c,
|
|
3944
|
+
Zo as debounce,
|
|
3844
3945
|
Xo as durationFormatter,
|
|
3845
3946
|
zo as extractAverage,
|
|
3846
|
-
|
|
3947
|
+
nt as fe,
|
|
3948
|
+
Me as g,
|
|
3847
3949
|
Yo as getCurrentGeoLocation,
|
|
3848
3950
|
qa as getMessageContaintWrapperClass,
|
|
3849
3951
|
jo as isLastMessageFromRole,
|
|
3850
3952
|
le as j,
|
|
3851
|
-
nt as me,
|
|
3852
3953
|
qo as numberFormatter,
|
|
3853
3954
|
Qo as pluralize,
|
|
3854
3955
|
Fo as renderDataAsList,
|
|
3855
|
-
|
|
3956
|
+
Jo as truncate,
|
|
3856
3957
|
et as un,
|
|
3857
|
-
|
|
3958
|
+
yn as v
|
|
3858
3959
|
};
|