@versini/sassysaint 5.1.3 → 5.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.Da6BVUYy.js → App.DVd22A7h.js} +3 -3
- package/dist/chunks/{LazyHeader.rYQgZPSI.js → LazyHeader.ChGYAocD.js} +4 -4
- package/dist/chunks/{LazyMarkdownWithExtra.8gJ4kHmJ.js → LazyMarkdownWithExtra.oW3Pc5wQ.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.CDMHbVPp.js → LazyMessageAssistant.BcING2GM.js} +4 -4
- package/dist/chunks/{index.lZ9DXn26.js → index.DuOyoYqm.js} +1 -1
- package/dist/chunks/{index.BuZgDoDD.js → index.QOymzv8v.js} +420 -417
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import W, { createContext as cr, useReducer as It, useRef as $, useCallback as
|
|
3
|
-
import
|
|
1
|
+
import { jsx as l, jsxs as v, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
+
import W, { createContext as cr, useReducer as It, useRef as $, useCallback as q, useEffect as Q, useContext as At, useSyncExternalStore as lr, useId as kt, useState as j, useLayoutEffect as st, useMemo as St, lazy as _t, Suspense as Rt } from "react";
|
|
3
|
+
import f from "clsx";
|
|
4
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, He = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
6
|
-
@versini/auth-provider v7.3.
|
|
6
|
+
@versini/auth-provider v7.3.3
|
|
7
7
|
© 2024 gizmette.com
|
|
8
8
|
*/
|
|
9
9
|
try {
|
|
10
10
|
window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
|
|
11
|
-
version: "7.3.
|
|
12
|
-
buildTime: "09/
|
|
11
|
+
version: "7.3.3",
|
|
12
|
+
buildTime: "09/30/2024 01:36 PM EDT",
|
|
13
13
|
homepage: "https://github.com/aversini/auth-client",
|
|
14
14
|
license: "MIT"
|
|
15
15
|
});
|
|
@@ -163,8 +163,8 @@ async function gr(e) {
|
|
|
163
163
|
let r;
|
|
164
164
|
try {
|
|
165
165
|
r = await navigator.credentials.create(t);
|
|
166
|
-
} catch (
|
|
167
|
-
throw mr({ error:
|
|
166
|
+
} catch (c) {
|
|
167
|
+
throw mr({ error: c, options: t });
|
|
168
168
|
}
|
|
169
169
|
if (!r)
|
|
170
170
|
throw new Error("Registration was not completed");
|
|
@@ -175,23 +175,23 @@ async function gr(e) {
|
|
|
175
175
|
if (typeof o.getPublicKeyAlgorithm == "function")
|
|
176
176
|
try {
|
|
177
177
|
u = o.getPublicKeyAlgorithm();
|
|
178
|
-
} catch (
|
|
179
|
-
We("getPublicKeyAlgorithm()",
|
|
178
|
+
} catch (c) {
|
|
179
|
+
We("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
181
|
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
183
183
|
try {
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
} catch (
|
|
187
|
-
We("getPublicKey()",
|
|
184
|
+
const c = o.getPublicKey();
|
|
185
|
+
c !== null && (h = K(c));
|
|
186
|
+
} catch (c) {
|
|
187
|
+
We("getPublicKey()", c);
|
|
188
188
|
}
|
|
189
189
|
let p;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
192
|
p = K(o.getAuthenticatorData());
|
|
193
|
-
} catch (
|
|
194
|
-
We("getAuthenticatorData()",
|
|
193
|
+
} catch (c) {
|
|
194
|
+
We("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
@@ -261,11 +261,11 @@ function yr({ error: e, options: t }) {
|
|
|
261
261
|
return e;
|
|
262
262
|
}
|
|
263
263
|
async function br(e, t = !1) {
|
|
264
|
-
var m,
|
|
264
|
+
var m, c;
|
|
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 = (
|
|
268
|
+
((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(Nt));
|
|
269
269
|
const a = {
|
|
270
270
|
...e,
|
|
271
271
|
challenge: xe(e.challenge),
|
|
@@ -304,13 +304,13 @@ async function br(e, t = !1) {
|
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
306
|
/*!
|
|
307
|
-
@versini/auth-common v4.1.
|
|
307
|
+
@versini/auth-common v4.1.3
|
|
308
308
|
© 2024 gizmette.com
|
|
309
309
|
*/
|
|
310
310
|
try {
|
|
311
311
|
window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
|
|
312
|
-
version: "4.1.
|
|
313
|
-
buildTime: "09/
|
|
312
|
+
version: "4.1.3",
|
|
313
|
+
buildTime: "09/30/2024 01:36 PM EDT",
|
|
314
314
|
homepage: "https://github.com/aversini/auth-client",
|
|
315
315
|
license: "MIT"
|
|
316
316
|
});
|
|
@@ -364,7 +364,7 @@ const Tr = (e) => {
|
|
|
364
364
|
for (let a = 0; a < t.length; a++)
|
|
365
365
|
r[a] = t.charCodeAt(a);
|
|
366
366
|
return r;
|
|
367
|
-
},
|
|
367
|
+
}, X = (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 {
|
|
@@ -373,7 +373,7 @@ const Tr = (e) => {
|
|
|
373
373
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
374
374
|
}
|
|
375
375
|
};
|
|
376
|
-
let
|
|
376
|
+
let te = class extends Error {
|
|
377
377
|
static get code() {
|
|
378
378
|
return "ERR_JOSE_GENERIC";
|
|
379
379
|
}
|
|
@@ -381,7 +381,7 @@ let Z = class extends Error {
|
|
|
381
381
|
var r;
|
|
382
382
|
super(t), this.code = "ERR_JOSE_GENERIC", this.name = this.constructor.name, (r = Error.captureStackTrace) == null || r.call(Error, this, this.constructor);
|
|
383
383
|
}
|
|
384
|
-
}, U = class extends
|
|
384
|
+
}, U = class extends te {
|
|
385
385
|
static get code() {
|
|
386
386
|
return "ERR_JWT_CLAIM_VALIDATION_FAILED";
|
|
387
387
|
}
|
|
@@ -389,7 +389,7 @@ let Z = class extends Error {
|
|
|
389
389
|
super(t), this.code = "ERR_JWT_CLAIM_VALIDATION_FAILED", this.claim = a, this.reason = n, this.payload = r;
|
|
390
390
|
}
|
|
391
391
|
};
|
|
392
|
-
class it extends
|
|
392
|
+
class it extends te {
|
|
393
393
|
static get code() {
|
|
394
394
|
return "ERR_JWT_EXPIRED";
|
|
395
395
|
}
|
|
@@ -397,7 +397,7 @@ class it extends Z {
|
|
|
397
397
|
super(t), this.code = "ERR_JWT_EXPIRED", this.claim = a, this.reason = n, this.payload = r;
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
class vr extends
|
|
400
|
+
class vr extends te {
|
|
401
401
|
constructor() {
|
|
402
402
|
super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
403
403
|
}
|
|
@@ -405,21 +405,21 @@ class vr extends Z {
|
|
|
405
405
|
return "ERR_JOSE_ALG_NOT_ALLOWED";
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
let H = class extends
|
|
408
|
+
let H = class extends te {
|
|
409
409
|
constructor() {
|
|
410
410
|
super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
411
411
|
}
|
|
412
412
|
static get code() {
|
|
413
413
|
return "ERR_JOSE_NOT_SUPPORTED";
|
|
414
414
|
}
|
|
415
|
-
}, S = class extends
|
|
415
|
+
}, S = class extends te {
|
|
416
416
|
constructor() {
|
|
417
417
|
super(...arguments), this.code = "ERR_JWS_INVALID";
|
|
418
418
|
}
|
|
419
419
|
static get code() {
|
|
420
420
|
return "ERR_JWS_INVALID";
|
|
421
421
|
}
|
|
422
|
-
},
|
|
422
|
+
}, Y = class extends te {
|
|
423
423
|
constructor() {
|
|
424
424
|
super(...arguments), this.code = "ERR_JWT_INVALID";
|
|
425
425
|
}
|
|
@@ -427,7 +427,7 @@ let H = class extends Z {
|
|
|
427
427
|
return "ERR_JWT_INVALID";
|
|
428
428
|
}
|
|
429
429
|
};
|
|
430
|
-
class Ir extends
|
|
430
|
+
class Ir extends te {
|
|
431
431
|
constructor() {
|
|
432
432
|
super(...arguments), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED", this.message = "signature verification failed";
|
|
433
433
|
}
|
|
@@ -435,7 +435,7 @@ class Ir extends Z {
|
|
|
435
435
|
return "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function J(e, t = "algorithm.name") {
|
|
439
439
|
return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
|
|
440
440
|
}
|
|
441
441
|
function Te(e, t) {
|
|
@@ -444,7 +444,7 @@ function Te(e, t) {
|
|
|
444
444
|
function Be(e) {
|
|
445
445
|
return parseInt(e.name.slice(4), 10);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function Ar(e) {
|
|
448
448
|
switch (e) {
|
|
449
449
|
case "ES256":
|
|
450
450
|
return "P-256";
|
|
@@ -456,7 +456,7 @@ function kr(e) {
|
|
|
456
456
|
throw new Error("unreachable");
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
function
|
|
459
|
+
function kr(e, t) {
|
|
460
460
|
if (t.length && !t.some((r) => e.usages.includes(r))) {
|
|
461
461
|
let r = "CryptoKey does not support this operation, its usages must include ";
|
|
462
462
|
if (t.length > 2) {
|
|
@@ -472,51 +472,51 @@ function Sr(e, t, ...r) {
|
|
|
472
472
|
case "HS384":
|
|
473
473
|
case "HS512": {
|
|
474
474
|
if (!Te(e.algorithm, "HMAC"))
|
|
475
|
-
throw
|
|
475
|
+
throw J("HMAC");
|
|
476
476
|
const a = parseInt(t.slice(2), 10);
|
|
477
477
|
if (Be(e.algorithm.hash) !== a)
|
|
478
|
-
throw
|
|
478
|
+
throw J(`SHA-${a}`, "algorithm.hash");
|
|
479
479
|
break;
|
|
480
480
|
}
|
|
481
481
|
case "RS256":
|
|
482
482
|
case "RS384":
|
|
483
483
|
case "RS512": {
|
|
484
484
|
if (!Te(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
485
|
-
throw
|
|
485
|
+
throw J("RSASSA-PKCS1-v1_5");
|
|
486
486
|
const a = parseInt(t.slice(2), 10);
|
|
487
487
|
if (Be(e.algorithm.hash) !== a)
|
|
488
|
-
throw
|
|
488
|
+
throw J(`SHA-${a}`, "algorithm.hash");
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
case "PS256":
|
|
492
492
|
case "PS384":
|
|
493
493
|
case "PS512": {
|
|
494
494
|
if (!Te(e.algorithm, "RSA-PSS"))
|
|
495
|
-
throw
|
|
495
|
+
throw J("RSA-PSS");
|
|
496
496
|
const a = parseInt(t.slice(2), 10);
|
|
497
497
|
if (Be(e.algorithm.hash) !== a)
|
|
498
|
-
throw
|
|
498
|
+
throw J(`SHA-${a}`, "algorithm.hash");
|
|
499
499
|
break;
|
|
500
500
|
}
|
|
501
501
|
case "EdDSA": {
|
|
502
502
|
if (e.algorithm.name !== "Ed25519" && e.algorithm.name !== "Ed448")
|
|
503
|
-
throw
|
|
503
|
+
throw J("Ed25519 or Ed448");
|
|
504
504
|
break;
|
|
505
505
|
}
|
|
506
506
|
case "ES256":
|
|
507
507
|
case "ES384":
|
|
508
508
|
case "ES512": {
|
|
509
509
|
if (!Te(e.algorithm, "ECDSA"))
|
|
510
|
-
throw
|
|
511
|
-
const a =
|
|
510
|
+
throw J("ECDSA");
|
|
511
|
+
const a = Ar(t);
|
|
512
512
|
if (e.algorithm.namedCurve !== a)
|
|
513
|
-
throw
|
|
513
|
+
throw J(a, "algorithm.namedCurve");
|
|
514
514
|
break;
|
|
515
515
|
}
|
|
516
516
|
default:
|
|
517
517
|
throw new TypeError("CryptoKey does not support this operation");
|
|
518
518
|
}
|
|
519
|
-
|
|
519
|
+
kr(e, r);
|
|
520
520
|
}
|
|
521
521
|
function $t(e, t, ...r) {
|
|
522
522
|
var a;
|
|
@@ -662,7 +662,7 @@ const Ut = async (e) => {
|
|
|
662
662
|
e.key_ops ?? r
|
|
663
663
|
], n = { ...e };
|
|
664
664
|
return delete n.alg, delete n.use, Le.subtle.importKey("jwk", n, ...a);
|
|
665
|
-
}, Kt = (e) =>
|
|
665
|
+
}, Kt = (e) => X(e);
|
|
666
666
|
let ae, ne;
|
|
667
667
|
const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Oe = async (e, t, r, a, n = !1) => {
|
|
668
668
|
let o = e.get(t);
|
|
@@ -675,35 +675,35 @@ const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
675
675
|
let r = e.export({ format: "jwk" });
|
|
676
676
|
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()), Oe(ne, e, r, t));
|
|
677
677
|
}
|
|
678
|
-
return he(e) ? e.k ?
|
|
678
|
+
return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Oe(ne, e, e, t, !0)) : e;
|
|
679
679
|
}, $r = (e, t) => {
|
|
680
680
|
if (Ht(e)) {
|
|
681
681
|
let r = e.export({ format: "jwk" });
|
|
682
682
|
return r.k ? Kt(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, r, t));
|
|
683
683
|
}
|
|
684
|
-
return he(e) ? e.k ?
|
|
685
|
-
}, Lr = { normalizePublicKey: Dr, normalizePrivateKey: $r },
|
|
684
|
+
return he(e) ? e.k ? X(e.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), Oe(ae, e, e, t, !0)) : e;
|
|
685
|
+
}, Lr = { normalizePublicKey: Dr, normalizePrivateKey: $r }, z = (e, t, r = 0) => {
|
|
686
686
|
r === 0 && (t.unshift(t.length), t.unshift(6));
|
|
687
687
|
const a = e.indexOf(t[0], r);
|
|
688
688
|
if (a === -1)
|
|
689
689
|
return !1;
|
|
690
690
|
const n = e.subarray(a, a + t.length);
|
|
691
|
-
return n.length !== t.length ? !1 : n.every((o, s) => o === t[s]) ||
|
|
691
|
+
return n.length !== t.length ? !1 : n.every((o, s) => o === t[s]) || z(e, t, a + 1);
|
|
692
692
|
}, lt = (e) => {
|
|
693
693
|
switch (!0) {
|
|
694
|
-
case
|
|
694
|
+
case z(e, [42, 134, 72, 206, 61, 3, 1, 7]):
|
|
695
695
|
return "P-256";
|
|
696
|
-
case
|
|
696
|
+
case z(e, [43, 129, 4, 0, 34]):
|
|
697
697
|
return "P-384";
|
|
698
|
-
case
|
|
698
|
+
case z(e, [43, 129, 4, 0, 35]):
|
|
699
699
|
return "P-521";
|
|
700
|
-
case
|
|
700
|
+
case z(e, [43, 101, 110]):
|
|
701
701
|
return "X25519";
|
|
702
|
-
case
|
|
702
|
+
case z(e, [43, 101, 111]):
|
|
703
703
|
return "X448";
|
|
704
|
-
case
|
|
704
|
+
case z(e, [43, 101, 112]):
|
|
705
705
|
return "Ed25519";
|
|
706
|
-
case
|
|
706
|
+
case z(e, [43, 101, 113]):
|
|
707
707
|
return "Ed448";
|
|
708
708
|
default:
|
|
709
709
|
throw new H("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
@@ -768,7 +768,7 @@ async function Hr(e, t) {
|
|
|
768
768
|
case "oct":
|
|
769
769
|
if (typeof e.k != "string" || !e.k)
|
|
770
770
|
throw new TypeError('missing "k" (Key Value) Parameter value');
|
|
771
|
-
return
|
|
771
|
+
return X(e.k);
|
|
772
772
|
case "RSA":
|
|
773
773
|
if (e.oth !== void 0)
|
|
774
774
|
throw new H('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
|
|
@@ -916,8 +916,8 @@ async function zr(e, t, r) {
|
|
|
916
916
|
let a = {};
|
|
917
917
|
if (e.protected)
|
|
918
918
|
try {
|
|
919
|
-
const
|
|
920
|
-
a = JSON.parse(be.decode(
|
|
919
|
+
const y = X(e.protected);
|
|
920
|
+
a = JSON.parse(be.decode(y));
|
|
921
921
|
} catch {
|
|
922
922
|
throw new S("JWS Protected Header is invalid");
|
|
923
923
|
}
|
|
@@ -946,21 +946,21 @@ async function zr(e, t, r) {
|
|
|
946
946
|
const p = wr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
|
|
947
947
|
let m;
|
|
948
948
|
try {
|
|
949
|
-
m =
|
|
949
|
+
m = X(e.signature);
|
|
950
950
|
} catch {
|
|
951
951
|
throw new S("Failed to base64url decode the signature");
|
|
952
952
|
}
|
|
953
953
|
if (!await Fr(i, t, m, p))
|
|
954
954
|
throw new Ir();
|
|
955
|
-
let
|
|
955
|
+
let c;
|
|
956
956
|
if (s)
|
|
957
957
|
try {
|
|
958
|
-
|
|
958
|
+
c = X(e.payload);
|
|
959
959
|
} catch {
|
|
960
960
|
throw new S("Failed to base64url decode the payload");
|
|
961
961
|
}
|
|
962
|
-
else typeof e.payload == "string" ?
|
|
963
|
-
const d = { payload:
|
|
962
|
+
else typeof e.payload == "string" ? c = we.encode(e.payload) : c = e.payload;
|
|
963
|
+
const d = { payload: c };
|
|
964
964
|
return e.protected !== void 0 && (d.protectedHeader = a), e.header !== void 0 && (d.unprotectedHeader = e.header), h ? { ...d, key: t } : d;
|
|
965
965
|
}
|
|
966
966
|
async function jr(e, t, r) {
|
|
@@ -1022,15 +1022,15 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
|
|
|
1022
1022
|
} catch {
|
|
1023
1023
|
}
|
|
1024
1024
|
if (!me(a))
|
|
1025
|
-
throw new
|
|
1025
|
+
throw new Y("JWT Claims Set must be a top-level JSON object");
|
|
1026
1026
|
const { typ: n } = r;
|
|
1027
1027
|
if (n && (typeof e.typ != "string" || mt(e.typ) !== mt(n)))
|
|
1028
1028
|
throw new U('unexpected "typ" JWT header value', a, "typ", "check_failed");
|
|
1029
1029
|
const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge: h } = r, p = [...o];
|
|
1030
1030
|
h !== void 0 && p.push("iat"), u !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
|
|
1031
|
-
for (const
|
|
1032
|
-
if (!(
|
|
1033
|
-
throw new U(`missing required "${
|
|
1031
|
+
for (const y of new Set(p.reverse()))
|
|
1032
|
+
if (!(y in a))
|
|
1033
|
+
throw new U(`missing required "${y}" claim`, a, y, "missing");
|
|
1034
1034
|
if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
|
|
1035
1035
|
throw new U('unexpected "iss" claim value', a, "iss", "check_failed");
|
|
1036
1036
|
if (i && a.sub !== i)
|
|
@@ -1051,7 +1051,7 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
|
|
|
1051
1051
|
default:
|
|
1052
1052
|
throw new TypeError("Invalid clockTolerance option type");
|
|
1053
1053
|
}
|
|
1054
|
-
const { currentDate:
|
|
1054
|
+
const { currentDate: c } = r, d = qr(c || /* @__PURE__ */ new Date());
|
|
1055
1055
|
if ((a.iat !== void 0 || h) && typeof a.iat != "number")
|
|
1056
1056
|
throw new U('"iat" claim must be a number', a, "iat", "invalid");
|
|
1057
1057
|
if (a.nbf !== void 0) {
|
|
@@ -1067,10 +1067,10 @@ const qr = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
|
|
|
1067
1067
|
throw new it('"exp" claim timestamp check failed', a, "exp", "check_failed");
|
|
1068
1068
|
}
|
|
1069
1069
|
if (h) {
|
|
1070
|
-
const
|
|
1071
|
-
if (
|
|
1070
|
+
const y = d - a.iat, b = typeof h == "number" ? h : ut(h);
|
|
1071
|
+
if (y - m > b)
|
|
1072
1072
|
throw new it('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
|
|
1073
|
-
if (
|
|
1073
|
+
if (y < 0 - m)
|
|
1074
1074
|
throw new U('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
|
|
1075
1075
|
}
|
|
1076
1076
|
return a;
|
|
@@ -1079,35 +1079,35 @@ async function ra(e, t, r) {
|
|
|
1079
1079
|
var a;
|
|
1080
1080
|
const n = await jr(e, t, r);
|
|
1081
1081
|
if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
|
|
1082
|
-
throw new
|
|
1082
|
+
throw new Y("JWTs MUST NOT use unencoded payload");
|
|
1083
1083
|
const o = { payload: ta(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
|
|
1084
1084
|
return typeof t == "function" ? { ...o, key: n.key } : o;
|
|
1085
1085
|
}
|
|
1086
|
-
const aa =
|
|
1086
|
+
const aa = X;
|
|
1087
1087
|
function na(e) {
|
|
1088
1088
|
if (typeof e != "string")
|
|
1089
|
-
throw new
|
|
1089
|
+
throw new Y("JWTs must use Compact JWS serialization, JWT must be a string");
|
|
1090
1090
|
const { 1: t, length: r } = e.split(".");
|
|
1091
1091
|
if (r === 5)
|
|
1092
|
-
throw new
|
|
1092
|
+
throw new Y("Only JWTs using Compact JWS serialization can be decoded");
|
|
1093
1093
|
if (r !== 3)
|
|
1094
|
-
throw new
|
|
1094
|
+
throw new Y("Invalid JWT");
|
|
1095
1095
|
if (!t)
|
|
1096
|
-
throw new
|
|
1096
|
+
throw new Y("JWTs must contain a payload");
|
|
1097
1097
|
let a;
|
|
1098
1098
|
try {
|
|
1099
1099
|
a = aa(t);
|
|
1100
1100
|
} catch {
|
|
1101
|
-
throw new
|
|
1101
|
+
throw new Y("Failed to base64url decode the payload");
|
|
1102
1102
|
}
|
|
1103
1103
|
let n;
|
|
1104
1104
|
try {
|
|
1105
1105
|
n = JSON.parse(be.decode(a));
|
|
1106
1106
|
} catch {
|
|
1107
|
-
throw new
|
|
1107
|
+
throw new Y("Failed to parse the decoded payload as JSON");
|
|
1108
1108
|
}
|
|
1109
1109
|
if (!me(n))
|
|
1110
|
-
throw new
|
|
1110
|
+
throw new Y("Invalid JWT Claims Set");
|
|
1111
1111
|
return n;
|
|
1112
1112
|
}
|
|
1113
1113
|
const fe = async (e) => {
|
|
@@ -1126,11 +1126,11 @@ const fe = async (e) => {
|
|
|
1126
1126
|
return;
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
|
-
var
|
|
1129
|
+
var A = [];
|
|
1130
1130
|
for (var Ge = 0; Ge < 256; ++Ge)
|
|
1131
|
-
|
|
1131
|
+
A.push((Ge + 256).toString(16).slice(1));
|
|
1132
1132
|
function sa(e, t = 0) {
|
|
1133
|
-
return (
|
|
1133
|
+
return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
|
|
1134
1134
|
}
|
|
1135
1135
|
var ve, ia = new Uint8Array(16);
|
|
1136
1136
|
function ca() {
|
|
@@ -1182,7 +1182,7 @@ function Ie({
|
|
|
1182
1182
|
key: e,
|
|
1183
1183
|
initialValue: t
|
|
1184
1184
|
}) {
|
|
1185
|
-
const r = lr(ga, () => yt(e)), a =
|
|
1185
|
+
const r = lr(ga, () => yt(e)), a = q(
|
|
1186
1186
|
(s) => {
|
|
1187
1187
|
try {
|
|
1188
1188
|
const i = typeof s == "function" ? s(JSON.parse(r)) : s;
|
|
@@ -1192,12 +1192,12 @@ function Ie({
|
|
|
1192
1192
|
}
|
|
1193
1193
|
},
|
|
1194
1194
|
[e, r]
|
|
1195
|
-
), n =
|
|
1195
|
+
), n = q(() => {
|
|
1196
1196
|
a(t);
|
|
1197
|
-
}, [t, a]), o =
|
|
1197
|
+
}, [t, a]), o = q(() => {
|
|
1198
1198
|
a(null);
|
|
1199
1199
|
}, [a]);
|
|
1200
|
-
return
|
|
1200
|
+
return Q(() => {
|
|
1201
1201
|
try {
|
|
1202
1202
|
yt(e) === null && typeof t < "u" && ft(e, t);
|
|
1203
1203
|
} catch (s) {
|
|
@@ -1205,17 +1205,17 @@ function Ie({
|
|
|
1205
1205
|
}
|
|
1206
1206
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
1207
1207
|
}
|
|
1208
|
-
var
|
|
1208
|
+
var k = [];
|
|
1209
1209
|
for (var Ve = 0; Ve < 256; ++Ve)
|
|
1210
|
-
|
|
1210
|
+
k.push((Ve + 256).toString(16).slice(1));
|
|
1211
1211
|
function fa(e, t = 0) {
|
|
1212
|
-
return (
|
|
1212
|
+
return (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
|
|
1213
1213
|
}
|
|
1214
|
-
var
|
|
1214
|
+
var Ae, ya = new Uint8Array(16);
|
|
1215
1215
|
function ba() {
|
|
1216
|
-
if (!
|
|
1216
|
+
if (!Ae && (Ae = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Ae))
|
|
1217
1217
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1218
|
-
return
|
|
1218
|
+
return Ae(ya);
|
|
1219
1219
|
}
|
|
1220
1220
|
var Ea = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
1221
1221
|
const bt = {
|
|
@@ -1231,7 +1231,7 @@ function Je(e, t, r) {
|
|
|
1231
1231
|
const oe = "Your session has expired. For your security, please log in again to continue.", wa = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", Ta = "Error getting access token, please re-authenticate.", va = "You forgot to wrap your component in <AuthProvider>.", Pe = {
|
|
1232
1232
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1233
1233
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1234
|
-
},
|
|
1234
|
+
}, ke = "@@auth@@", ge = "LOADING", Re = "LOGIN", Jt = "LOGOUT", Ee = "success", B = "failure", Yt = "include", Ft = "POST", zt = "application/json", Se = {
|
|
1235
1235
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1236
1236
|
$clientId: String!,
|
|
1237
1237
|
$username: String!,
|
|
@@ -1397,14 +1397,14 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1397
1397
|
logoutReason: "",
|
|
1398
1398
|
debug: !1,
|
|
1399
1399
|
authenticationType: ""
|
|
1400
|
-
},
|
|
1400
|
+
}, Aa = (e) => {
|
|
1401
1401
|
try {
|
|
1402
1402
|
const t = oa(e);
|
|
1403
1403
|
return t ? t[_.USER_ID_KEY] : "";
|
|
1404
1404
|
} catch {
|
|
1405
1405
|
return "";
|
|
1406
1406
|
}
|
|
1407
|
-
},
|
|
1407
|
+
}, ka = async ({
|
|
1408
1408
|
userId: e,
|
|
1409
1409
|
clientId: t,
|
|
1410
1410
|
domain: r,
|
|
@@ -1456,13 +1456,13 @@ const oe = "Your session has expired. For your security, please log in again to
|
|
|
1456
1456
|
domain: u,
|
|
1457
1457
|
ua: h
|
|
1458
1458
|
}
|
|
1459
|
-
}),
|
|
1460
|
-
return
|
|
1459
|
+
}), c = await fe((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
|
|
1460
|
+
return c && c.payload[_.USER_ID_KEY] !== "" && c.payload[_.NONCE_KEY] === a ? {
|
|
1461
1461
|
idToken: m.data.idToken,
|
|
1462
1462
|
accessToken: m.data.accessToken,
|
|
1463
1463
|
refreshToken: m.data.refreshToken,
|
|
1464
|
-
userId:
|
|
1465
|
-
email:
|
|
1464
|
+
userId: c.payload[_.USER_ID_KEY],
|
|
1465
|
+
email: c.payload[_.EMAIL_KEY],
|
|
1466
1466
|
status: !0
|
|
1467
1467
|
} : {
|
|
1468
1468
|
status: !1
|
|
@@ -1588,7 +1588,7 @@ class Na {
|
|
|
1588
1588
|
};
|
|
1589
1589
|
}
|
|
1590
1590
|
}
|
|
1591
|
-
const xa = (e) =>
|
|
1591
|
+
const xa = (e) => q(
|
|
1592
1592
|
(...t) => {
|
|
1593
1593
|
e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
|
|
1594
1594
|
},
|
|
@@ -1638,24 +1638,24 @@ const xa = (e) => z(
|
|
|
1638
1638
|
...qt,
|
|
1639
1639
|
debug: n
|
|
1640
1640
|
}), i = xa(n), u = $(!1), [h, p, , m] = Ie({
|
|
1641
|
-
key: `${
|
|
1642
|
-
}), [
|
|
1643
|
-
key: `${
|
|
1641
|
+
key: `${ke}::${r}::@@user@@`
|
|
1642
|
+
}), [c, d, , y] = Ie({
|
|
1643
|
+
key: `${ke}::${r}::@@access@@`
|
|
1644
1644
|
}), [b, I, , w] = Ie(
|
|
1645
1645
|
{
|
|
1646
|
-
key: `${
|
|
1646
|
+
key: `${ke}::${r}::@@refresh@@`
|
|
1647
1647
|
}
|
|
1648
|
-
), [
|
|
1649
|
-
key: `${
|
|
1650
|
-
}),
|
|
1651
|
-
i("removeLocalStorage: removing local storage"), m(),
|
|
1648
|
+
), [C, P, , L] = Ie({
|
|
1649
|
+
key: `${ke}::${r}::@@nonce@@`
|
|
1650
|
+
}), Z = new Na(c, b), R = q(() => {
|
|
1651
|
+
i("removeLocalStorage: removing local storage"), m(), y(), w(), L();
|
|
1652
1652
|
}, [
|
|
1653
|
-
|
|
1653
|
+
y,
|
|
1654
1654
|
m,
|
|
1655
1655
|
L,
|
|
1656
1656
|
w,
|
|
1657
1657
|
i
|
|
1658
|
-
]), G =
|
|
1658
|
+
]), G = q(
|
|
1659
1659
|
(g) => {
|
|
1660
1660
|
i(
|
|
1661
1661
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
@@ -1665,16 +1665,16 @@ const xa = (e) => z(
|
|
|
1665
1665
|
payload: {
|
|
1666
1666
|
logoutReason: g || oe
|
|
1667
1667
|
}
|
|
1668
|
-
}),
|
|
1668
|
+
}), R(), s({ type: ge, payload: { isLoading: !1 } });
|
|
1669
1669
|
},
|
|
1670
|
-
[
|
|
1671
|
-
),
|
|
1670
|
+
[R, i]
|
|
1671
|
+
), O = q(
|
|
1672
1672
|
async (g) => {
|
|
1673
1673
|
i("invalidateAndLogout: invalidating and logging out");
|
|
1674
|
-
const { user: T } = o, E = (T == null ? void 0 : T.userId) ||
|
|
1674
|
+
const { user: T } = o, E = (T == null ? void 0 : T.userId) || Aa(h);
|
|
1675
1675
|
E || i(
|
|
1676
1676
|
"invalidateAndLogout: user cannot be identified, logging out without userId"
|
|
1677
|
-
), await
|
|
1677
|
+
), await ka({
|
|
1678
1678
|
userId: E,
|
|
1679
1679
|
clientId: r,
|
|
1680
1680
|
domain: a,
|
|
@@ -1683,7 +1683,7 @@ const xa = (e) => z(
|
|
|
1683
1683
|
},
|
|
1684
1684
|
[h, o, r, a, G, i]
|
|
1685
1685
|
);
|
|
1686
|
-
|
|
1686
|
+
Q(() => {
|
|
1687
1687
|
if (!u.current)
|
|
1688
1688
|
return o.isLoading && h !== null ? (async () => {
|
|
1689
1689
|
try {
|
|
@@ -1698,21 +1698,21 @@ const xa = (e) => z(
|
|
|
1698
1698
|
email: g.payload[_.EMAIL_KEY]
|
|
1699
1699
|
}
|
|
1700
1700
|
}
|
|
1701
|
-
})) : (i("useEffect: invalid JWT, invalidating and logging out"), await
|
|
1701
|
+
})) : (i("useEffect: invalid JWT, invalidating and logging out"), await O(oe));
|
|
1702
1702
|
} catch {
|
|
1703
1703
|
i(
|
|
1704
1704
|
"useEffect: exception validating JWT, invalidating and logging out"
|
|
1705
|
-
), await
|
|
1705
|
+
), await O(oe);
|
|
1706
1706
|
}
|
|
1707
1707
|
})() : (i("useEffect: setting the loading state to false"), s({ type: ge, payload: { isLoading: !1 } })), () => {
|
|
1708
1708
|
u.current = !0;
|
|
1709
1709
|
};
|
|
1710
|
-
}, [o.isLoading, h,
|
|
1711
|
-
const
|
|
1712
|
-
s({ type: ge, payload: { isLoading: !0 } }),
|
|
1710
|
+
}, [o.isLoading, h, O, i]);
|
|
1711
|
+
const V = async (g, T) => {
|
|
1712
|
+
s({ type: ge, payload: { isLoading: !0 } }), R();
|
|
1713
1713
|
const E = Je();
|
|
1714
|
-
|
|
1715
|
-
const { code_verifier:
|
|
1714
|
+
P(E), i("login: Logging in with password");
|
|
1715
|
+
const { code_verifier: F, code_challenge: ir } = await ha(), ot = await _a({
|
|
1716
1716
|
nonce: E,
|
|
1717
1717
|
clientId: r,
|
|
1718
1718
|
code_challenge: ir
|
|
@@ -1726,7 +1726,7 @@ const xa = (e) => z(
|
|
|
1726
1726
|
nonce: E,
|
|
1727
1727
|
type: ue.CODE,
|
|
1728
1728
|
code: ot.data,
|
|
1729
|
-
code_verifier:
|
|
1729
|
+
code_verifier: F,
|
|
1730
1730
|
domain: a,
|
|
1731
1731
|
ua: navigator.userAgent
|
|
1732
1732
|
});
|
|
@@ -1743,41 +1743,41 @@ const xa = (e) => z(
|
|
|
1743
1743
|
}), !0) : (G(Ye), !1);
|
|
1744
1744
|
}
|
|
1745
1745
|
return !1;
|
|
1746
|
-
},
|
|
1747
|
-
g == null || g.preventDefault(), await
|
|
1748
|
-
},
|
|
1746
|
+
}, pe = async (g) => {
|
|
1747
|
+
g == null || g.preventDefault(), await O(wa);
|
|
1748
|
+
}, ee = async () => {
|
|
1749
1749
|
const { isAuthenticated: g, user: T } = o;
|
|
1750
1750
|
try {
|
|
1751
1751
|
if (g && T && T.userId) {
|
|
1752
|
-
if (
|
|
1752
|
+
if (c) {
|
|
1753
1753
|
i("getAccessToken");
|
|
1754
|
-
const
|
|
1755
|
-
if (
|
|
1756
|
-
return
|
|
1754
|
+
const F = await fe(c);
|
|
1755
|
+
if (F && F.payload[_.USER_ID_KEY] !== "")
|
|
1756
|
+
return c;
|
|
1757
1757
|
}
|
|
1758
1758
|
i("getAccessToken: invalid access token, trying to refresh it");
|
|
1759
|
-
const E = await
|
|
1759
|
+
const E = await Z.refreshtoken({
|
|
1760
1760
|
clientId: r,
|
|
1761
1761
|
userId: T.userId,
|
|
1762
|
-
nonce:
|
|
1762
|
+
nonce: C,
|
|
1763
1763
|
domain: a
|
|
1764
1764
|
});
|
|
1765
1765
|
return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken), I(E.newRefreshToken), E.newAccessToken) : (i(
|
|
1766
1766
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1767
|
-
), await
|
|
1767
|
+
), await O(oe), "");
|
|
1768
1768
|
}
|
|
1769
1769
|
return i(
|
|
1770
1770
|
"getAccessToken: user is not authenticated, cannot get access token"
|
|
1771
|
-
), await
|
|
1771
|
+
), await O(oe), "";
|
|
1772
1772
|
} catch {
|
|
1773
1773
|
return i(
|
|
1774
1774
|
"getAccessToken: exception occurred, invalidating and logging out"
|
|
1775
|
-
), await
|
|
1775
|
+
), await O(Ta), "";
|
|
1776
1776
|
}
|
|
1777
|
-
},
|
|
1777
|
+
}, N = () => o.isAuthenticated && h ? h : "", D = async () => {
|
|
1778
1778
|
const { user: g } = o;
|
|
1779
1779
|
let T = await ie({
|
|
1780
|
-
accessToken:
|
|
1780
|
+
accessToken: c,
|
|
1781
1781
|
clientId: r,
|
|
1782
1782
|
type: se.GET_REGISTRATION_OPTIONS,
|
|
1783
1783
|
params: {
|
|
@@ -1790,7 +1790,7 @@ const xa = (e) => z(
|
|
|
1790
1790
|
try {
|
|
1791
1791
|
const E = await gr(T.data);
|
|
1792
1792
|
return T = await ie({
|
|
1793
|
-
accessToken:
|
|
1793
|
+
accessToken: c,
|
|
1794
1794
|
clientId: r,
|
|
1795
1795
|
type: se.VERIFY_REGISTRATION,
|
|
1796
1796
|
params: {
|
|
@@ -1802,7 +1802,7 @@ const xa = (e) => z(
|
|
|
1802
1802
|
}), !!(T.status && T.data.length > 0);
|
|
1803
1803
|
} catch {
|
|
1804
1804
|
return await ie({
|
|
1805
|
-
accessToken:
|
|
1805
|
+
accessToken: c,
|
|
1806
1806
|
clientId: r,
|
|
1807
1807
|
type: se.VERIFY_REGISTRATION,
|
|
1808
1808
|
params: {
|
|
@@ -1814,13 +1814,13 @@ const xa = (e) => z(
|
|
|
1814
1814
|
}), !1;
|
|
1815
1815
|
}
|
|
1816
1816
|
return !1;
|
|
1817
|
-
},
|
|
1818
|
-
s({ type: ge, payload: { isLoading: !0 } }),
|
|
1817
|
+
}, M = async () => {
|
|
1818
|
+
s({ type: ge, payload: { isLoading: !0 } }), R();
|
|
1819
1819
|
const g = Je();
|
|
1820
|
-
|
|
1820
|
+
P(g), i("loginWithPasskey");
|
|
1821
1821
|
const T = Je();
|
|
1822
1822
|
let E = await ie({
|
|
1823
|
-
accessToken:
|
|
1823
|
+
accessToken: c,
|
|
1824
1824
|
clientId: r,
|
|
1825
1825
|
type: se.GET_AUTHENTICATION_OPTIONS,
|
|
1826
1826
|
params: {
|
|
@@ -1830,15 +1830,15 @@ const xa = (e) => z(
|
|
|
1830
1830
|
});
|
|
1831
1831
|
if (E.status)
|
|
1832
1832
|
try {
|
|
1833
|
-
const
|
|
1833
|
+
const F = await br(E.data);
|
|
1834
1834
|
return E = await ie({
|
|
1835
|
-
accessToken:
|
|
1835
|
+
accessToken: c,
|
|
1836
1836
|
clientId: r,
|
|
1837
1837
|
type: se.VERIFY_AUTHENTICATION,
|
|
1838
1838
|
params: {
|
|
1839
1839
|
clientId: r,
|
|
1840
1840
|
id: T,
|
|
1841
|
-
authentication:
|
|
1841
|
+
authentication: F,
|
|
1842
1842
|
nonce: g,
|
|
1843
1843
|
domain: a,
|
|
1844
1844
|
sessionExpiration: t,
|
|
@@ -1857,7 +1857,7 @@ const xa = (e) => z(
|
|
|
1857
1857
|
}), !0) : (G(Ye), !1);
|
|
1858
1858
|
} catch {
|
|
1859
1859
|
return await ie({
|
|
1860
|
-
accessToken:
|
|
1860
|
+
accessToken: c,
|
|
1861
1861
|
clientId: r,
|
|
1862
1862
|
type: se.VERIFY_AUTHENTICATION,
|
|
1863
1863
|
params: {
|
|
@@ -1872,22 +1872,22 @@ const xa = (e) => z(
|
|
|
1872
1872
|
}
|
|
1873
1873
|
return !1;
|
|
1874
1874
|
};
|
|
1875
|
-
return /* @__PURE__ */
|
|
1875
|
+
return /* @__PURE__ */ l(Ca.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
|
|
1876
1876
|
Xt.Provider,
|
|
1877
1877
|
{
|
|
1878
1878
|
value: {
|
|
1879
1879
|
...o,
|
|
1880
|
-
login:
|
|
1881
|
-
logout:
|
|
1882
|
-
getAccessToken:
|
|
1883
|
-
getIdToken:
|
|
1884
|
-
registeringForPasskey:
|
|
1885
|
-
loginWithPasskey:
|
|
1880
|
+
login: V,
|
|
1881
|
+
logout: pe,
|
|
1882
|
+
getAccessToken: ee,
|
|
1883
|
+
getIdToken: N,
|
|
1884
|
+
registeringForPasskey: D,
|
|
1885
|
+
loginWithPasskey: M
|
|
1886
1886
|
},
|
|
1887
1887
|
children: e
|
|
1888
1888
|
}
|
|
1889
1889
|
) });
|
|
1890
|
-
}, et = (e = Xt) =>
|
|
1890
|
+
}, et = (e = Xt) => At(e), mo = "user", ho = "assistant", po = "system", go = "internal", fo = "hidden", yo = "I'm having trouble right now. Please try again later.", bo = "gpt-4", Eo = 128e3, wo = "action-message", To = "action-reset", vo = "action-model", Io = "action-restore", Ao = "action-streaming", ko = "action-search", So = "action-sort", _o = "action-toggle-tag", Ro = "action-reset-tags", Fe = {
|
|
1891
1891
|
SUMMARIZE_ARTICLE: "summarize-article",
|
|
1892
1892
|
PROOFREAD_CONTENT: "proofread-content",
|
|
1893
1893
|
REPHRASE_CONTENT: "rephrase-content"
|
|
@@ -1946,24 +1946,24 @@ function Ba(e, t) {
|
|
|
1946
1946
|
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);
|
|
1947
1947
|
let n = [];
|
|
1948
1948
|
const o = (p, m) => {
|
|
1949
|
-
const
|
|
1950
|
-
return (Math.round(
|
|
1951
|
-
}, s = (p, m,
|
|
1952
|
-
if (!((n.length === 0 || !t.colonNotation) && Ua(p) && !(t.colonNotation &&
|
|
1949
|
+
const c = Math.floor(p * 10 ** m + Ha);
|
|
1950
|
+
return (Math.round(c) / 10 ** m).toFixed(m);
|
|
1951
|
+
}, s = (p, m, c, d) => {
|
|
1952
|
+
if (!((n.length === 0 || !t.colonNotation) && Ua(p) && !(t.colonNotation && c === "m"))) {
|
|
1953
1953
|
if (d ?? (d = String(p)), t.colonNotation) {
|
|
1954
|
-
const
|
|
1955
|
-
d = "0".repeat(Math.max(0, b -
|
|
1954
|
+
const y = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
|
|
1955
|
+
d = "0".repeat(Math.max(0, b - y)) + d;
|
|
1956
1956
|
} else
|
|
1957
|
-
d += t.verbose ? " " + Ka(m, p) :
|
|
1957
|
+
d += t.verbose ? " " + Ka(m, p) : c;
|
|
1958
1958
|
n.push(d);
|
|
1959
1959
|
}
|
|
1960
1960
|
}, i = Ma(e), u = BigInt(i.days);
|
|
1961
1961
|
if (s(u / 365n, "year", "y"), s(u % 365n, "day", "d"), s(Number(i.hours), "hour", "h"), s(Number(i.minutes), "minute", "m"), t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1962
|
-
const p = Number(i.seconds), m = Number(i.milliseconds),
|
|
1962
|
+
const p = Number(i.seconds), m = Number(i.milliseconds), c = Number(i.microseconds), d = Number(i.nanoseconds);
|
|
1963
1963
|
if (s(p, "second", "s"), t.formatSubMilliseconds)
|
|
1964
|
-
s(m, "millisecond", "ms"), s(
|
|
1964
|
+
s(m, "millisecond", "ms"), s(c, "microsecond", "µs"), s(d, "nanosecond", "ns");
|
|
1965
1965
|
else {
|
|
1966
|
-
const
|
|
1966
|
+
const y = m + c / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, I = y >= 1 ? Math.round(y) : Math.ceil(y), w = b ? y.toFixed(b) : I;
|
|
1967
1967
|
s(
|
|
1968
1968
|
Number.parseFloat(w),
|
|
1969
1969
|
"millisecond",
|
|
@@ -1972,7 +1972,7 @@ function Ba(e, t) {
|
|
|
1972
1972
|
);
|
|
1973
1973
|
}
|
|
1974
1974
|
} else {
|
|
1975
|
-
const p = (r ? Number(e % Wa) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1,
|
|
1975
|
+
const p = (r ? Number(e % Wa) : e) / 1e3 % 60, m = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(p, m), d = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
|
|
1976
1976
|
s(Number.parseFloat(d), "second", "s", d);
|
|
1977
1977
|
}
|
|
1978
1978
|
if (n.length === 0)
|
|
@@ -2029,9 +2029,9 @@ const Ga = process.env.NODE_ENV === "production", tt = !Ga, Va = tt ? "gizmette.
|
|
|
2029
2029
|
e
|
|
2030
2030
|
);
|
|
2031
2031
|
});
|
|
2032
|
-
}, Ho = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2032
|
+
}, Ho = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ v("div", { className: "flex items-center justify-between", children: [
|
|
2033
|
+
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2034
|
+
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2035
2035
|
] }) }, `${e}-${r}`)) : null;
|
|
2036
2036
|
function Wo({
|
|
2037
2037
|
data: e,
|
|
@@ -2053,7 +2053,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2053
2053
|
}), Vo = (e) => e > 0 ? Ba(e, {
|
|
2054
2054
|
secondsDecimalDigits: 2,
|
|
2055
2055
|
unitCount: 2
|
|
2056
|
-
}) : "N/A", Ja = (e) =>
|
|
2056
|
+
}) : "N/A", Ja = (e) => f(
|
|
2057
2057
|
"flex-1 space-y-6 overflow-y-auto rounded-md bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
|
|
2058
2058
|
e || tt ? "pt-4" : "pt-10"
|
|
2059
2059
|
), Jo = (e, t) => t === 1 ? e : `${e}s`, wt = "av-button", Ya = (e) => {
|
|
@@ -2075,19 +2075,19 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2075
2075
|
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";
|
|
2076
2076
|
switch (e) {
|
|
2077
2077
|
case Qt:
|
|
2078
|
-
return
|
|
2078
|
+
return f("px-4", {
|
|
2079
2079
|
[o]: t === "small",
|
|
2080
2080
|
[s]: t === "medium",
|
|
2081
2081
|
[i]: t === "large"
|
|
2082
2082
|
});
|
|
2083
2083
|
case Fa:
|
|
2084
|
-
return
|
|
2084
|
+
return f("px-4 text-center", {
|
|
2085
2085
|
[o]: t === "small",
|
|
2086
2086
|
[s]: t === "medium",
|
|
2087
2087
|
[i]: t === "large"
|
|
2088
2088
|
});
|
|
2089
2089
|
case rt:
|
|
2090
|
-
return
|
|
2090
|
+
return f("inline-flex items-center", {
|
|
2091
2091
|
"justify-center": n === "center",
|
|
2092
2092
|
"justify-start": n === "left",
|
|
2093
2093
|
"justify-end": n === "right",
|
|
@@ -2108,7 +2108,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2108
2108
|
if (t)
|
|
2109
2109
|
return "not-prose rounded-full";
|
|
2110
2110
|
if (a === "primary")
|
|
2111
|
-
return
|
|
2111
|
+
return f("not-prose rounded-full", {
|
|
2112
2112
|
truncate: !r,
|
|
2113
2113
|
"bg-action-dark text-copy-light": e === "dark",
|
|
2114
2114
|
"bg-action-light text-copy-lighter": e === "light",
|
|
@@ -2116,7 +2116,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2116
2116
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
2117
2117
|
});
|
|
2118
2118
|
if (a === "secondary")
|
|
2119
|
-
return
|
|
2119
|
+
return f("not-prose rounded-full", {
|
|
2120
2120
|
truncate: !r,
|
|
2121
2121
|
"bg-action-dark text-copy-light": e === "light",
|
|
2122
2122
|
"bg-action-light text-copy-lighter": e === "dark",
|
|
@@ -2124,7 +2124,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2124
2124
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
2125
2125
|
});
|
|
2126
2126
|
if (a === "danger")
|
|
2127
|
-
return
|
|
2127
|
+
return f("not-prose rounded-full", {
|
|
2128
2128
|
truncate: !r,
|
|
2129
2129
|
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
2130
2130
|
"bg-action-danger-light text-copy-lighter": e === "light",
|
|
@@ -2139,21 +2139,21 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2139
2139
|
if (t)
|
|
2140
2140
|
return "";
|
|
2141
2141
|
if (r === "primary")
|
|
2142
|
-
return
|
|
2142
|
+
return f("hover:text-copy-light-hover", {
|
|
2143
2143
|
"hover:bg-action-dark-hover": e === "dark",
|
|
2144
2144
|
"hover:bg-action-light-hover": e === "light",
|
|
2145
2145
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
2146
2146
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
2147
2147
|
});
|
|
2148
2148
|
if (r === "secondary")
|
|
2149
|
-
return
|
|
2149
|
+
return f("hover:text-copy-light-hover", {
|
|
2150
2150
|
"hover:bg-action-dark-hover": e === "light",
|
|
2151
2151
|
"hover:bg-action-light-hover": e === "dark",
|
|
2152
2152
|
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
2153
2153
|
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
2154
2154
|
});
|
|
2155
2155
|
if (r === "danger")
|
|
2156
|
-
return
|
|
2156
|
+
return f("hover:text-copy-light-hover", {
|
|
2157
2157
|
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
2158
2158
|
"hover:bg-action-danger-light-hover": e === "light",
|
|
2159
2159
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
@@ -2167,21 +2167,21 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2167
2167
|
if (t)
|
|
2168
2168
|
return "";
|
|
2169
2169
|
if (r === "primary")
|
|
2170
|
-
return
|
|
2170
|
+
return f("active:text-copy-light-active", {
|
|
2171
2171
|
"active:bg-action-dark-active": e === "dark",
|
|
2172
2172
|
"active:bg-action-light-active": e === "light",
|
|
2173
2173
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
2174
2174
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
2175
2175
|
});
|
|
2176
2176
|
if (r === "secondary")
|
|
2177
|
-
return
|
|
2177
|
+
return f("active:text-copy-light-active", {
|
|
2178
2178
|
"active:bg-action-dark-active": e === "light",
|
|
2179
2179
|
"active:bg-action-light-active": e === "dark",
|
|
2180
2180
|
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
2181
2181
|
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
2182
2182
|
});
|
|
2183
2183
|
if (r === "danger")
|
|
2184
|
-
return
|
|
2184
|
+
return f("active:text-copy-lighter-active", {
|
|
2185
2185
|
"active:bg-action-danger-dark-active": e === "dark",
|
|
2186
2186
|
"active:bg-action-danger-light-active": e === "light",
|
|
2187
2187
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
@@ -2195,27 +2195,27 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2195
2195
|
if (t)
|
|
2196
2196
|
return "border border-transparent";
|
|
2197
2197
|
if (r === "primary")
|
|
2198
|
-
return
|
|
2198
|
+
return f("border", {
|
|
2199
2199
|
"border-border-dark": e === "dark",
|
|
2200
2200
|
"border-border-accent": e === "light",
|
|
2201
2201
|
"border-border-dark dark:border-border-accent": e === "system",
|
|
2202
2202
|
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
2203
2203
|
});
|
|
2204
2204
|
if (r === "secondary")
|
|
2205
|
-
return
|
|
2205
|
+
return f("border", {
|
|
2206
2206
|
"border-border-dark": e === "light",
|
|
2207
2207
|
"border-border-accent": e === "dark",
|
|
2208
2208
|
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
2209
2209
|
"border-border-accent dark:border-border-dark": e === "system"
|
|
2210
2210
|
});
|
|
2211
2211
|
if (r === "danger")
|
|
2212
|
-
return
|
|
2212
|
+
return f("border", {
|
|
2213
2213
|
"border-border-danger-dark": e === "dark",
|
|
2214
2214
|
"border-border-danger-medium": e === "light",
|
|
2215
2215
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
2216
2216
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
2217
2217
|
});
|
|
2218
|
-
}, Za = ({ focusMode: e }) =>
|
|
2218
|
+
}, Za = ({ focusMode: e }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2219
2219
|
"focus:outline-focus-dark": e === "dark",
|
|
2220
2220
|
"focus:outline-focus-light": e === "light",
|
|
2221
2221
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -2233,15 +2233,15 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2233
2233
|
labelRight: h,
|
|
2234
2234
|
labelLeft: p,
|
|
2235
2235
|
spacing: m,
|
|
2236
|
-
noBackground:
|
|
2236
|
+
noBackground: c,
|
|
2237
2237
|
variant: d,
|
|
2238
|
-
noTruncate:
|
|
2238
|
+
noTruncate: y,
|
|
2239
2239
|
align: b
|
|
2240
|
-
}) => (d || (d = "primary"), r ?
|
|
2240
|
+
}) => (d || (d = "primary"), r ? f(wt, t) : f(
|
|
2241
2241
|
wt,
|
|
2242
2242
|
t,
|
|
2243
2243
|
Ya(m),
|
|
2244
|
-
ja({ mode: a, variant: d, noBackground:
|
|
2244
|
+
ja({ mode: a, variant: d, noBackground: c, noTruncate: y }),
|
|
2245
2245
|
za({ type: e, size: i, labelRight: h, labelLeft: p, align: b }),
|
|
2246
2246
|
Qa({ mode: a, variant: d, noBorder: u }),
|
|
2247
2247
|
Za({ focusMode: n }),
|
|
@@ -2256,7 +2256,7 @@ const Bo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
|
|
|
2256
2256
|
!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);
|
|
2257
2257
|
}, Ue = W.forwardRef((e, t) => {
|
|
2258
2258
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
2259
|
-
return /* @__PURE__ */
|
|
2259
|
+
return /* @__PURE__ */ l(
|
|
2260
2260
|
"button",
|
|
2261
2261
|
{
|
|
2262
2262
|
ref: t,
|
|
@@ -2282,9 +2282,9 @@ const Zt = W.forwardRef(
|
|
|
2282
2282
|
spacing: h,
|
|
2283
2283
|
variant: p = "primary",
|
|
2284
2284
|
noTruncate: m = !1,
|
|
2285
|
-
...
|
|
2285
|
+
...c
|
|
2286
2286
|
}, d) => {
|
|
2287
|
-
const
|
|
2287
|
+
const y = at({
|
|
2288
2288
|
type: Qt,
|
|
2289
2289
|
mode: r,
|
|
2290
2290
|
focusMode: a,
|
|
@@ -2298,13 +2298,13 @@ const Zt = W.forwardRef(
|
|
|
2298
2298
|
variant: p,
|
|
2299
2299
|
noTruncate: m
|
|
2300
2300
|
});
|
|
2301
|
-
return /* @__PURE__ */
|
|
2301
|
+
return /* @__PURE__ */ l(
|
|
2302
2302
|
Ue,
|
|
2303
2303
|
{
|
|
2304
2304
|
ref: d,
|
|
2305
|
-
className:
|
|
2305
|
+
className: y,
|
|
2306
2306
|
disabled: t,
|
|
2307
|
-
...
|
|
2307
|
+
...c,
|
|
2308
2308
|
children: e
|
|
2309
2309
|
}
|
|
2310
2310
|
);
|
|
@@ -2325,14 +2325,14 @@ const Xe = W.forwardRef(
|
|
|
2325
2325
|
"aria-label": h,
|
|
2326
2326
|
label: p,
|
|
2327
2327
|
size: m = "medium",
|
|
2328
|
-
labelRight:
|
|
2328
|
+
labelRight: c,
|
|
2329
2329
|
labelLeft: d,
|
|
2330
|
-
spacing:
|
|
2330
|
+
spacing: y,
|
|
2331
2331
|
noBackground: b = !1,
|
|
2332
2332
|
align: I = "center",
|
|
2333
2333
|
...w
|
|
2334
|
-
},
|
|
2335
|
-
const
|
|
2334
|
+
}, C) => {
|
|
2335
|
+
const P = at({
|
|
2336
2336
|
type: rt,
|
|
2337
2337
|
mode: r,
|
|
2338
2338
|
focusMode: a,
|
|
@@ -2342,12 +2342,12 @@ const Xe = W.forwardRef(
|
|
|
2342
2342
|
className: o,
|
|
2343
2343
|
noBorder: u,
|
|
2344
2344
|
size: m,
|
|
2345
|
-
labelRight:
|
|
2345
|
+
labelRight: c,
|
|
2346
2346
|
labelLeft: d,
|
|
2347
|
-
spacing:
|
|
2347
|
+
spacing: y,
|
|
2348
2348
|
noBackground: b,
|
|
2349
2349
|
align: I
|
|
2350
|
-
}), L =
|
|
2350
|
+
}), L = f({
|
|
2351
2351
|
"text-copy-accent-dark": r === "light" && !i,
|
|
2352
2352
|
"text-copy-light": r === "dark" && !i,
|
|
2353
2353
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
|
|
@@ -2356,16 +2356,16 @@ const Xe = W.forwardRef(
|
|
|
2356
2356
|
return /* @__PURE__ */ v(
|
|
2357
2357
|
Ue,
|
|
2358
2358
|
{
|
|
2359
|
-
ref:
|
|
2360
|
-
className:
|
|
2359
|
+
ref: C,
|
|
2360
|
+
className: P,
|
|
2361
2361
|
disabled: t,
|
|
2362
2362
|
type: s,
|
|
2363
2363
|
"aria-label": h || p,
|
|
2364
2364
|
...w,
|
|
2365
2365
|
children: [
|
|
2366
|
-
d && /* @__PURE__ */
|
|
2367
|
-
/* @__PURE__ */
|
|
2368
|
-
|
|
2366
|
+
d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
|
|
2367
|
+
/* @__PURE__ */ l("div", { className: L, children: e }),
|
|
2368
|
+
c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
|
|
2369
2369
|
]
|
|
2370
2370
|
}
|
|
2371
2371
|
);
|
|
@@ -2399,14 +2399,14 @@ const tn = W.forwardRef(
|
|
|
2399
2399
|
"aria-label": h,
|
|
2400
2400
|
label: p,
|
|
2401
2401
|
size: m = "medium",
|
|
2402
|
-
labelRight:
|
|
2402
|
+
labelRight: c,
|
|
2403
2403
|
labelLeft: d,
|
|
2404
|
-
spacing:
|
|
2404
|
+
spacing: y,
|
|
2405
2405
|
noBackground: b = !1,
|
|
2406
2406
|
align: I = "center",
|
|
2407
2407
|
active: w = !1,
|
|
2408
|
-
...
|
|
2409
|
-
},
|
|
2408
|
+
...C
|
|
2409
|
+
}, P) => {
|
|
2410
2410
|
const L = at({
|
|
2411
2411
|
type: rt,
|
|
2412
2412
|
mode: r,
|
|
@@ -2417,17 +2417,17 @@ const tn = W.forwardRef(
|
|
|
2417
2417
|
className: o,
|
|
2418
2418
|
noBorder: u,
|
|
2419
2419
|
size: m,
|
|
2420
|
-
labelRight:
|
|
2420
|
+
labelRight: c,
|
|
2421
2421
|
labelLeft: d,
|
|
2422
|
-
spacing:
|
|
2422
|
+
spacing: y,
|
|
2423
2423
|
noBackground: b,
|
|
2424
2424
|
align: I
|
|
2425
|
-
}),
|
|
2425
|
+
}), Z = f({
|
|
2426
2426
|
"text-copy-accent-dark": r === "light" && !i,
|
|
2427
2427
|
"text-copy-light": r === "dark" && !i,
|
|
2428
2428
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
|
|
2429
2429
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !i
|
|
2430
|
-
}),
|
|
2430
|
+
}), R = w ? f(
|
|
2431
2431
|
"relative",
|
|
2432
2432
|
"focus-within:static",
|
|
2433
2433
|
"focus-within:after:border-transparent",
|
|
@@ -2444,19 +2444,19 @@ const tn = W.forwardRef(
|
|
|
2444
2444
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
2445
2445
|
}
|
|
2446
2446
|
) : "";
|
|
2447
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ l("div", { className: R, children: /* @__PURE__ */ v(
|
|
2448
2448
|
Ue,
|
|
2449
2449
|
{
|
|
2450
|
-
ref:
|
|
2450
|
+
ref: P,
|
|
2451
2451
|
className: L,
|
|
2452
2452
|
disabled: t,
|
|
2453
2453
|
type: s,
|
|
2454
2454
|
"aria-label": h || p,
|
|
2455
|
-
...
|
|
2455
|
+
...C,
|
|
2456
2456
|
children: [
|
|
2457
|
-
d && /* @__PURE__ */
|
|
2458
|
-
/* @__PURE__ */
|
|
2459
|
-
|
|
2457
|
+
d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
|
|
2458
|
+
/* @__PURE__ */ l("div", { className: Z, children: e }),
|
|
2459
|
+
c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
|
|
2460
2460
|
]
|
|
2461
2461
|
}
|
|
2462
2462
|
) });
|
|
@@ -2478,7 +2478,7 @@ try {
|
|
|
2478
2478
|
}
|
|
2479
2479
|
const Ne = "av-card";
|
|
2480
2480
|
function rn(e) {
|
|
2481
|
-
const t =
|
|
2481
|
+
const t = kt();
|
|
2482
2482
|
return `${e}${t}`;
|
|
2483
2483
|
}
|
|
2484
2484
|
const an = (e) => {
|
|
@@ -2500,7 +2500,7 @@ const an = (e) => {
|
|
|
2500
2500
|
compact: s,
|
|
2501
2501
|
noBorder: i
|
|
2502
2502
|
}) => {
|
|
2503
|
-
const u =
|
|
2503
|
+
const u = f(
|
|
2504
2504
|
Ne,
|
|
2505
2505
|
e,
|
|
2506
2506
|
"rounded-md",
|
|
@@ -2516,7 +2516,7 @@ const an = (e) => {
|
|
|
2516
2516
|
"border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": o === "system",
|
|
2517
2517
|
"border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": o === "alt-system"
|
|
2518
2518
|
}
|
|
2519
|
-
), h = t ||
|
|
2519
|
+
), h = t || f(`${Ne}__header mt-0 border-b-2`, {
|
|
2520
2520
|
"text-copy-light border-border-accent": o === "darker",
|
|
2521
2521
|
"border-border-accent": o === "dark",
|
|
2522
2522
|
"border-border-medium": o === "light",
|
|
@@ -2524,7 +2524,7 @@ const an = (e) => {
|
|
|
2524
2524
|
"border-border-accent dark:border-border-medium": o === "alt-system",
|
|
2525
2525
|
"mb-4": !s,
|
|
2526
2526
|
"mb-2": s
|
|
2527
|
-
}), p =
|
|
2527
|
+
}), p = f(r), m = a || f(`${Ne}__footer pt-2`);
|
|
2528
2528
|
return {
|
|
2529
2529
|
wrapper: u,
|
|
2530
2530
|
header: h,
|
|
@@ -2538,7 +2538,7 @@ function on({
|
|
|
2538
2538
|
userAriaLabelledby: r,
|
|
2539
2539
|
className: a
|
|
2540
2540
|
}) {
|
|
2541
|
-
return typeof t == "string" ? /* @__PURE__ */
|
|
2541
|
+
return typeof t == "string" ? /* @__PURE__ */ l("h2", { id: e, className: a, children: t }) : r ? /* @__PURE__ */ l("div", { className: a, children: t }) : t ? /* @__PURE__ */ l("div", { className: a, id: e, children: t }) : null;
|
|
2542
2542
|
}
|
|
2543
2543
|
const sn = ({
|
|
2544
2544
|
header: e,
|
|
@@ -2553,9 +2553,9 @@ const sn = ({
|
|
|
2553
2553
|
mode: h = "system",
|
|
2554
2554
|
compact: p = !1,
|
|
2555
2555
|
noBorder: m = !1,
|
|
2556
|
-
...
|
|
2556
|
+
...c
|
|
2557
2557
|
}) => {
|
|
2558
|
-
let d = null,
|
|
2558
|
+
let d = null, y = null;
|
|
2559
2559
|
const b = typeof e == "string", I = rn(Ne), w = nn({
|
|
2560
2560
|
className: o,
|
|
2561
2561
|
headerClassName: t,
|
|
@@ -2566,16 +2566,16 @@ const sn = ({
|
|
|
2566
2566
|
compact: p,
|
|
2567
2567
|
noBorder: m
|
|
2568
2568
|
});
|
|
2569
|
-
return b ? (d = I,
|
|
2569
|
+
return b ? (d = I, y = d) : !b && e && i ? (d = null, y = i) : !b && e && !i ? (d = I, y = d) : (d = null, y = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ v(
|
|
2570
2570
|
"section",
|
|
2571
2571
|
{
|
|
2572
|
-
...
|
|
2573
|
-
"aria-labelledby":
|
|
2572
|
+
...y && {
|
|
2573
|
+
"aria-labelledby": y
|
|
2574
2574
|
},
|
|
2575
2575
|
className: w.body,
|
|
2576
|
-
...
|
|
2576
|
+
...c,
|
|
2577
2577
|
children: [
|
|
2578
|
-
/* @__PURE__ */
|
|
2578
|
+
/* @__PURE__ */ l(
|
|
2579
2579
|
on,
|
|
2580
2580
|
{
|
|
2581
2581
|
...d && { id: d },
|
|
@@ -2584,8 +2584,8 @@ const sn = ({
|
|
|
2584
2584
|
userAriaLabelledby: i
|
|
2585
2585
|
}
|
|
2586
2586
|
),
|
|
2587
|
-
/* @__PURE__ */
|
|
2588
|
-
r ? /* @__PURE__ */
|
|
2587
|
+
/* @__PURE__ */ l("div", { children: n }),
|
|
2588
|
+
r ? /* @__PURE__ */ l("div", { className: w.footer, children: r }) : null
|
|
2589
2589
|
]
|
|
2590
2590
|
}
|
|
2591
2591
|
) });
|
|
@@ -2610,12 +2610,12 @@ const sn = ({
|
|
|
2610
2610
|
semantic: u = !1,
|
|
2611
2611
|
...h
|
|
2612
2612
|
}) => {
|
|
2613
|
-
const p = cn(s), m =
|
|
2613
|
+
const p = cn(s), m = f(
|
|
2614
2614
|
p,
|
|
2615
2615
|
a || o
|
|
2616
2616
|
);
|
|
2617
2617
|
return /* @__PURE__ */ v(ye, { children: [
|
|
2618
|
-
/* @__PURE__ */
|
|
2618
|
+
/* @__PURE__ */ l(
|
|
2619
2619
|
"svg",
|
|
2620
2620
|
{
|
|
2621
2621
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2629,7 +2629,7 @@ const sn = ({
|
|
|
2629
2629
|
children: e
|
|
2630
2630
|
}
|
|
2631
2631
|
),
|
|
2632
|
-
i && u && /* @__PURE__ */
|
|
2632
|
+
i && u && /* @__PURE__ */ l("span", { className: "sr-only", children: i })
|
|
2633
2633
|
] });
|
|
2634
2634
|
};
|
|
2635
2635
|
/*!
|
|
@@ -2650,7 +2650,7 @@ const ln = ({
|
|
|
2650
2650
|
viewBox: t,
|
|
2651
2651
|
spacing: r,
|
|
2652
2652
|
...a
|
|
2653
|
-
}) => /* @__PURE__ */
|
|
2653
|
+
}) => /* @__PURE__ */ l(
|
|
2654
2654
|
Ke,
|
|
2655
2655
|
{
|
|
2656
2656
|
defaultViewBox: "0 0 1200 500",
|
|
@@ -2660,7 +2660,7 @@ const ln = ({
|
|
|
2660
2660
|
spacing: r,
|
|
2661
2661
|
title: "Sassy Dog",
|
|
2662
2662
|
...a,
|
|
2663
|
-
children: /* @__PURE__ */
|
|
2663
|
+
children: /* @__PURE__ */ l("g", { transform: "matrix(11.9092 0 0 11.9092 470.0017 250.0009)", id: "879221", children: /* @__PURE__ */ l(
|
|
2664
2664
|
"path",
|
|
2665
2665
|
{
|
|
2666
2666
|
vectorEffect: "non-scaling-stroke",
|
|
@@ -2688,14 +2688,14 @@ const ln = ({
|
|
|
2688
2688
|
title: a || "Hide",
|
|
2689
2689
|
...o,
|
|
2690
2690
|
children: [
|
|
2691
|
-
/* @__PURE__ */
|
|
2691
|
+
/* @__PURE__ */ l(
|
|
2692
2692
|
"path",
|
|
2693
2693
|
{
|
|
2694
2694
|
opacity: n ? "1" : "0.4",
|
|
2695
2695
|
d: "M360.8 380.3C339.4 392.8 314.6 400 288 400c-79.5 0-144-64.5-144-144c0-14.5 2.1-28.5 6.1-41.7L63.5 146c-29.4 34.7-49.9 70.8-61.1 97.6c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480c56.1 0 104.4-17.8 144.5-43.2l-71.7-56.5zM198.5 252.4c-3.7 .8-6.7 3.7-6.5 7.7c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9c1.9-.5 3.9-1.1 5.7-1.7l-120-94.6zm89-52.4l94.8 74.3c2.7-13.9 2.4-28.6-1.5-43.2c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 2.7-.2 5.4-.5 8zM432 256c0 17.7-3.2 34.6-9 50.2l84.1 65.9c32.3-36.6 54.6-75.4 66.4-103.9c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32c-60 0-111.1 20.3-152.8 48.7L207 136.9c23.1-15.7 51-24.9 81-24.9c79.5 0 144 64.5 144 144z"
|
|
2696
2696
|
}
|
|
2697
2697
|
),
|
|
2698
|
-
/* @__PURE__ */
|
|
2698
|
+
/* @__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" })
|
|
2699
2699
|
]
|
|
2700
2700
|
}
|
|
2701
2701
|
), un = ({
|
|
@@ -2718,22 +2718,22 @@ const ln = ({
|
|
|
2718
2718
|
title: a || "Passkey",
|
|
2719
2719
|
...o,
|
|
2720
2720
|
children: [
|
|
2721
|
-
/* @__PURE__ */
|
|
2721
|
+
/* @__PURE__ */ l(
|
|
2722
2722
|
"path",
|
|
2723
2723
|
{
|
|
2724
2724
|
opacity: s,
|
|
2725
2725
|
d: "M172.32,96.79c0,13.78-8.48,25.5-20.29,29.78l7.14,11.83l-10.57,13l10.57,12.71l-17.04,22.87l-12.01-12.82 v-25.9v-22.56c-10.68-4.85-18.15-15.97-18.15-28.91c0-17.4,13.51-31.51,30.18-31.51C158.81,65.28,172.32,79.39,172.32,96.79z M142.14,101.61c4.02,0,7.28-3.4,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61s-7.28,3.4-7.28,7.61 C134.85,98.21,138.12,101.61,142.14,101.61z"
|
|
2726
2726
|
}
|
|
2727
2727
|
),
|
|
2728
|
-
/* @__PURE__ */
|
|
2728
|
+
/* @__PURE__ */ l(
|
|
2729
2729
|
"path",
|
|
2730
2730
|
{
|
|
2731
2731
|
opacity: s,
|
|
2732
2732
|
d: "M172.41,96.88c0,13.62-8.25,25.23-19.83,29.67l6.58,11.84l-9.73,13l9.73,12.71l-17.03,23.05v-25.9v-32.77 v-26.87c4.02,0,7.28-3.41,7.28-7.6c0-4.2-3.26-7.61-7.28-7.61V65.28C158.86,65.28,172.41,79.43,172.41,96.88z"
|
|
2733
2733
|
}
|
|
2734
2734
|
),
|
|
2735
|
-
/* @__PURE__ */
|
|
2736
|
-
/* @__PURE__ */
|
|
2735
|
+
/* @__PURE__ */ l("path", { d: "M120.24,131.43c-9.75-8-16.3-20.3-17.2-34.27H50.8c-10.96,0-19.84,9.01-19.84,20.13v25.17 c0,5.56,4.44,10.07,9.92,10.07h69.44c5.48,0,9.92-4.51,9.92-10.07V131.43z" }),
|
|
2736
|
+
/* @__PURE__ */ l("path", { d: "M73.16,91.13c-2.42-0.46-4.82-0.89-7.11-1.86C57.4,85.64,52.36,78.95,50.73,69.5 c-1.12-6.47-0.59-12.87,2.03-18.92c3.72-8.6,10.39-13.26,19.15-14.84c5.24-0.94,10.46-0.73,15.5,1.15 c7.59,2.82,12.68,8.26,15.03,16.24c2.38,8.05,2.03,16.1-1.56,23.72c-3.72,7.96-10.21,12.23-18.42,13.9 c-0.68,0.14-1.37,0.27-2.05,0.41C78,91.13,75.58,91.13,73.16,91.13z" })
|
|
2737
2737
|
]
|
|
2738
2738
|
}
|
|
2739
2739
|
);
|
|
@@ -2755,14 +2755,14 @@ const ln = ({
|
|
|
2755
2755
|
title: a || "Show",
|
|
2756
2756
|
...o,
|
|
2757
2757
|
children: [
|
|
2758
|
-
/* @__PURE__ */
|
|
2758
|
+
/* @__PURE__ */ l(
|
|
2759
2759
|
"path",
|
|
2760
2760
|
{
|
|
2761
2761
|
opacity: n ? "1" : "0.4",
|
|
2762
2762
|
d: "M95.4 112.6C142.5 68.8 207.2 32 288 32s145.5 36.8 192.6 80.6c46.8 43.5 78.1 95.4 93 131.1c3.3 7.9 3.3 16.7 0 24.6c-14.9 35.7-46.2 87.7-93 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.6-80.6C48.6 356 17.3 304 2.5 268.3c-3.3-7.9-3.3-16.7 0-24.6C17.3 208 48.6 156 95.4 112.6zM288 400a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"
|
|
2763
2763
|
}
|
|
2764
2764
|
),
|
|
2765
|
-
/* @__PURE__ */
|
|
2765
|
+
/* @__PURE__ */ l("path", { d: "M224 256c35.3 0 64-28.7 64-64c0-7.1-1.2-13.9-3.3-20.3c-1.8-5.5 1.6-11.9 7.4-11.7c40.8 1.7 77.5 29.6 88.6 71.1c13.7 51.2-16.7 103.9-67.9 117.6s-103.9-16.7-117.6-67.9c-1.9-6.9-2.9-13.9-3.2-20.7c-.3-5.8 6.1-9.2 11.7-7.4c6.4 2.1 13.2 3.3 20.3 3.3z" })
|
|
2766
2766
|
]
|
|
2767
2767
|
}
|
|
2768
2768
|
);
|
|
@@ -2807,10 +2807,10 @@ const hn = "av-main", pn = (e) => {
|
|
|
2807
2807
|
raw: r = !1,
|
|
2808
2808
|
spacing: a
|
|
2809
2809
|
}) => {
|
|
2810
|
-
const n =
|
|
2810
|
+
const n = f(t, hn, pn(a), {
|
|
2811
2811
|
"mt-2 flex w-full flex-col p-2 sm:mt-3 md:mx-auto md:max-w-4xl": !r
|
|
2812
2812
|
});
|
|
2813
|
-
return /* @__PURE__ */
|
|
2813
|
+
return /* @__PURE__ */ l("main", { className: n, children: e });
|
|
2814
2814
|
}, fn = (e) => {
|
|
2815
2815
|
let t = "";
|
|
2816
2816
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -2849,13 +2849,13 @@ const hn = "av-main", pn = (e) => {
|
|
|
2849
2849
|
*/
|
|
2850
2850
|
marginLeft: r * -1 * De + "rem",
|
|
2851
2851
|
marginTop: a * -1 * De + "rem"
|
|
2852
|
-
},
|
|
2852
|
+
}, c = f(
|
|
2853
2853
|
yn,
|
|
2854
2854
|
t,
|
|
2855
2855
|
"box-border flex flex-wrap"
|
|
2856
|
-
), d = { columnGap: r, rowGap: a },
|
|
2857
|
-
return /* @__PURE__ */
|
|
2858
|
-
}, ze = (e, t) =>
|
|
2856
|
+
), d = { columnGap: r, rowGap: a }, y = h ? "div" : W.Fragment;
|
|
2857
|
+
return /* @__PURE__ */ l(y, { ...h ? { className: fn(h) } : {}, children: /* @__PURE__ */ l("div", { className: c, style: m, ...p, children: /* @__PURE__ */ l(er.Provider, { value: d, children: e }) }) });
|
|
2858
|
+
}, ze = (e, t) => f({
|
|
2859
2859
|
"basis-1/12": e === 1 && !t,
|
|
2860
2860
|
"sm:basis-1/12": e === 1 && t === "sm",
|
|
2861
2861
|
"md:basis-1/12": e === 1 && t === "md",
|
|
@@ -2933,18 +2933,18 @@ const hn = "av-main", pn = (e) => {
|
|
|
2933
2933
|
span: t
|
|
2934
2934
|
}) => {
|
|
2935
2935
|
if (!t)
|
|
2936
|
-
return
|
|
2936
|
+
return f(e, _e, "box-border basis-auto");
|
|
2937
2937
|
if (typeof t == "number")
|
|
2938
|
-
return
|
|
2938
|
+
return f(e, _e, "box-border max-w-full", {
|
|
2939
2939
|
[`${ze(t)}`]: !0
|
|
2940
2940
|
});
|
|
2941
2941
|
if (typeof t == "string")
|
|
2942
|
-
return
|
|
2942
|
+
return f(e, _e, "box-border basis-auto", {
|
|
2943
2943
|
"max-w-full grow": t === "auto"
|
|
2944
2944
|
});
|
|
2945
2945
|
if (typeof t == "object") {
|
|
2946
2946
|
const r = Object.entries(t).map(([a, n]) => a === "fallback" ? ze(n) : ze(n, a));
|
|
2947
|
-
return
|
|
2947
|
+
return f(
|
|
2948
2948
|
e,
|
|
2949
2949
|
_e,
|
|
2950
2950
|
"box-border",
|
|
@@ -2957,14 +2957,14 @@ const hn = "av-main", pn = (e) => {
|
|
|
2957
2957
|
span: r,
|
|
2958
2958
|
...a
|
|
2959
2959
|
}) => {
|
|
2960
|
-
const { columnGap: n, rowGap: o } =
|
|
2960
|
+
const { columnGap: n, rowGap: o } = At(er), s = {
|
|
2961
2961
|
paddingLeft: n * De + "rem",
|
|
2962
2962
|
paddingTop: o * De + "rem"
|
|
2963
2963
|
}, i = bn({
|
|
2964
2964
|
className: t,
|
|
2965
2965
|
span: r
|
|
2966
2966
|
});
|
|
2967
|
-
return /* @__PURE__ */
|
|
2967
|
+
return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
|
|
2968
2968
|
};
|
|
2969
2969
|
/*!
|
|
2970
2970
|
@versini/ui-system v1.4.19
|
|
@@ -2982,9 +2982,9 @@ try {
|
|
|
2982
2982
|
const tr = "av-text-input", En = "av-text-input-wrapper", je = "av-text-input-helper-text";
|
|
2983
2983
|
function wn() {
|
|
2984
2984
|
const e = $(!1);
|
|
2985
|
-
return
|
|
2985
|
+
return Q(() => (e.current = !0, () => {
|
|
2986
2986
|
e.current = !1;
|
|
2987
|
-
}), []),
|
|
2987
|
+
}), []), q(() => e.current, []);
|
|
2988
2988
|
}
|
|
2989
2989
|
const Tn = {
|
|
2990
2990
|
x: 0,
|
|
@@ -2997,18 +2997,18 @@ const Tn = {
|
|
|
2997
2997
|
right: 0
|
|
2998
2998
|
};
|
|
2999
2999
|
function vn(e) {
|
|
3000
|
-
const t = wn(), r = $(0), a = $(null), [n, o] =
|
|
3000
|
+
const t = wn(), r = $(0), a = $(null), [n, o] = j(Tn), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3001
3001
|
const u = i[0];
|
|
3002
3002
|
u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3003
3003
|
a.current && t() && o(u.contentRect);
|
|
3004
3004
|
}));
|
|
3005
3005
|
}), [t]);
|
|
3006
|
-
return
|
|
3006
|
+
return Q(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
|
3007
3007
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
3008
3008
|
}), [s, e]), [a, n];
|
|
3009
3009
|
}
|
|
3010
3010
|
function In(e) {
|
|
3011
|
-
const t =
|
|
3011
|
+
const t = kt();
|
|
3012
3012
|
if (!e)
|
|
3013
3013
|
return t;
|
|
3014
3014
|
if (typeof e == "number" || typeof e == "string")
|
|
@@ -3018,7 +3018,7 @@ function In(e) {
|
|
|
3018
3018
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
3019
3019
|
}
|
|
3020
3020
|
}
|
|
3021
|
-
const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT",
|
|
3021
|
+
const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", An = {
|
|
3022
3022
|
alert: null,
|
|
3023
3023
|
alertdialog: null,
|
|
3024
3024
|
log: "polite",
|
|
@@ -3026,7 +3026,7 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", kn = {
|
|
|
3026
3026
|
progressbar: null,
|
|
3027
3027
|
status: "polite",
|
|
3028
3028
|
timer: "assertive"
|
|
3029
|
-
},
|
|
3029
|
+
}, kn = (e, t) => {
|
|
3030
3030
|
switch (t == null ? void 0 : t.type) {
|
|
3031
3031
|
case rr:
|
|
3032
3032
|
return {
|
|
@@ -3099,11 +3099,11 @@ function nr({
|
|
|
3099
3099
|
visible: i,
|
|
3100
3100
|
...u
|
|
3101
3101
|
}) {
|
|
3102
|
-
const h = $(), p = $(), [m,
|
|
3102
|
+
const h = $(), p = $(), [m, c] = It(kn, {
|
|
3103
3103
|
announcement: null
|
|
3104
3104
|
});
|
|
3105
3105
|
let d = r;
|
|
3106
|
-
typeof d > "u" && (d = a ?
|
|
3106
|
+
typeof d > "u" && (d = a ? An[a] : "assertive"), Q(() => {
|
|
3107
3107
|
_n({
|
|
3108
3108
|
announcementTimeoutRef: h,
|
|
3109
3109
|
announcementDelay: n,
|
|
@@ -3111,7 +3111,7 @@ function nr({
|
|
|
3111
3111
|
clearAnnouncementDelay: o,
|
|
3112
3112
|
clearAnnouncementTimeoutRef: p,
|
|
3113
3113
|
onAnnouncementClear: s,
|
|
3114
|
-
dispatch:
|
|
3114
|
+
dispatch: c
|
|
3115
3115
|
});
|
|
3116
3116
|
}, [
|
|
3117
3117
|
e,
|
|
@@ -3119,15 +3119,15 @@ function nr({
|
|
|
3119
3119
|
o,
|
|
3120
3120
|
s
|
|
3121
3121
|
]);
|
|
3122
|
-
const
|
|
3122
|
+
const y = f(t, {
|
|
3123
3123
|
"sr-only": !i
|
|
3124
3124
|
});
|
|
3125
|
-
return /* @__PURE__ */
|
|
3125
|
+
return /* @__PURE__ */ l(
|
|
3126
3126
|
"div",
|
|
3127
3127
|
{
|
|
3128
3128
|
"aria-live": d,
|
|
3129
3129
|
...a && { role: a },
|
|
3130
|
-
className:
|
|
3130
|
+
className: y,
|
|
3131
3131
|
...u,
|
|
3132
3132
|
children: m.announcement
|
|
3133
3133
|
}
|
|
@@ -3150,7 +3150,7 @@ const Rn = (e) => {
|
|
|
3150
3150
|
try {
|
|
3151
3151
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
3152
3152
|
version: "1.4.17",
|
|
3153
|
-
buildTime: "09/
|
|
3153
|
+
buildTime: "09/30/2024 09:27 AM EDT",
|
|
3154
3154
|
homepage: "https://github.com/aversini/ui-components",
|
|
3155
3155
|
license: "MIT"
|
|
3156
3156
|
});
|
|
@@ -3158,14 +3158,14 @@ try {
|
|
|
3158
3158
|
}
|
|
3159
3159
|
const Nn = ({
|
|
3160
3160
|
mode: e
|
|
3161
|
-
}) =>
|
|
3161
|
+
}) => f({
|
|
3162
3162
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
3163
3163
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
3164
3164
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
3165
3165
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
3166
3166
|
}), xn = ({
|
|
3167
3167
|
focusMode: e
|
|
3168
|
-
}) =>
|
|
3168
|
+
}) => f("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
3169
3169
|
"focus:outline-focus-dark": e === "dark",
|
|
3170
3170
|
"focus:outline-focus-light": e === "light",
|
|
3171
3171
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
@@ -3173,7 +3173,7 @@ const Nn = ({
|
|
|
3173
3173
|
}), Cn = ({
|
|
3174
3174
|
noBorder: e,
|
|
3175
3175
|
error: t
|
|
3176
|
-
}) =>
|
|
3176
|
+
}) => f("border-2", {
|
|
3177
3177
|
"border-border-dark": !e && !t,
|
|
3178
3178
|
"focus:border-border-dark": !e && t,
|
|
3179
3179
|
"border-border-error-dark": !e && t,
|
|
@@ -3187,16 +3187,16 @@ const Nn = ({
|
|
|
3187
3187
|
if (t)
|
|
3188
3188
|
return "";
|
|
3189
3189
|
if (e)
|
|
3190
|
-
return
|
|
3190
|
+
return f("absolute px-2 cursor-not-allowed opacity-50 font-medium");
|
|
3191
3191
|
if (!r)
|
|
3192
|
-
return
|
|
3192
|
+
return f("absolute px-2 cursor-text font-medium", {
|
|
3193
3193
|
"text-copy-lighter": a === "dark",
|
|
3194
3194
|
"text-copy-dark": a === "light",
|
|
3195
3195
|
"text-copy-dark dark:text-copy-lighter": a === "system",
|
|
3196
3196
|
"text-copy-lighter dark:text-copy-dark": a === "alt-system"
|
|
3197
3197
|
});
|
|
3198
3198
|
if (r)
|
|
3199
|
-
return
|
|
3199
|
+
return f("absolute px-2 cursor-text font-medium", {
|
|
3200
3200
|
"text-copy-lighter": a === "dark",
|
|
3201
3201
|
"text-copy-error-dark": a === "light",
|
|
3202
3202
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
|
|
@@ -3211,19 +3211,19 @@ const Nn = ({
|
|
|
3211
3211
|
if (t)
|
|
3212
3212
|
return "";
|
|
3213
3213
|
if (a)
|
|
3214
|
-
return
|
|
3214
|
+
return f(
|
|
3215
3215
|
je,
|
|
3216
3216
|
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
3217
3217
|
);
|
|
3218
3218
|
if (!e)
|
|
3219
|
-
return
|
|
3219
|
+
return f(je, "absolute px-2 font-medium", {
|
|
3220
3220
|
"text-copy-lighter": r === "dark",
|
|
3221
3221
|
"text-copy-dark": r === "light",
|
|
3222
3222
|
"text-copy-dark dark:text-copy-lighter": r === "system",
|
|
3223
3223
|
"text-copy-lighter dark:text-copy-dark": r === "alt-system"
|
|
3224
3224
|
});
|
|
3225
3225
|
if (e)
|
|
3226
|
-
return
|
|
3226
|
+
return f(je, "absolute px-2 font-medium", {
|
|
3227
3227
|
"text-copy-error-light bg-surface-darker": r === "dark",
|
|
3228
3228
|
"text-copy-error-dark": r === "light",
|
|
3229
3229
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
@@ -3239,36 +3239,37 @@ const Nn = ({
|
|
|
3239
3239
|
spacing: s,
|
|
3240
3240
|
mode: i,
|
|
3241
3241
|
focusMode: u,
|
|
3242
|
-
size: h
|
|
3242
|
+
size: h,
|
|
3243
|
+
rightElementClassName: p
|
|
3243
3244
|
}) => {
|
|
3244
|
-
const
|
|
3245
|
+
const m = r ? e : f(
|
|
3245
3246
|
"relative flex w-full flex-col justify-center",
|
|
3246
3247
|
En,
|
|
3247
3248
|
e,
|
|
3248
3249
|
Rn(s)
|
|
3249
3250
|
);
|
|
3250
|
-
let
|
|
3251
|
+
let c = "";
|
|
3251
3252
|
switch (h) {
|
|
3252
3253
|
case "xs":
|
|
3253
|
-
|
|
3254
|
+
c = "h-8";
|
|
3254
3255
|
break;
|
|
3255
3256
|
case "sm":
|
|
3256
|
-
|
|
3257
|
+
c = "h-10";
|
|
3257
3258
|
break;
|
|
3258
3259
|
case "lg":
|
|
3259
|
-
|
|
3260
|
+
c = "h-14";
|
|
3260
3261
|
break;
|
|
3261
3262
|
case "xl":
|
|
3262
|
-
|
|
3263
|
+
c = "h-16";
|
|
3263
3264
|
break;
|
|
3264
3265
|
default:
|
|
3265
|
-
|
|
3266
|
+
c = "h-12";
|
|
3266
3267
|
break;
|
|
3267
3268
|
}
|
|
3268
|
-
const
|
|
3269
|
+
const d = r ? f(t) : f(
|
|
3269
3270
|
tr,
|
|
3270
3271
|
t,
|
|
3271
|
-
|
|
3272
|
+
c,
|
|
3272
3273
|
"rounded-md text-base px-4",
|
|
3273
3274
|
Nn({ mode: i }),
|
|
3274
3275
|
xn({ focusMode: u }),
|
|
@@ -3276,24 +3277,24 @@ const Nn = ({
|
|
|
3276
3277
|
{
|
|
3277
3278
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
3278
3279
|
}
|
|
3279
|
-
),
|
|
3280
|
+
), y = r ? void 0 : "sr-only", b = On({
|
|
3280
3281
|
disabled: a,
|
|
3281
3282
|
raw: r,
|
|
3282
3283
|
error: o,
|
|
3283
3284
|
mode: i
|
|
3284
|
-
}),
|
|
3285
|
+
}), I = Pn({
|
|
3285
3286
|
error: o,
|
|
3286
3287
|
raw: r,
|
|
3287
3288
|
mode: i,
|
|
3288
3289
|
disabled: a
|
|
3289
|
-
});
|
|
3290
|
+
}), w = r ? void 0 : f("absolute right-3", p);
|
|
3290
3291
|
return {
|
|
3291
|
-
wrapper:
|
|
3292
|
-
input:
|
|
3293
|
-
accessibleLabel:
|
|
3294
|
-
visibleLabel:
|
|
3295
|
-
helperText:
|
|
3296
|
-
rightElement:
|
|
3292
|
+
wrapper: m,
|
|
3293
|
+
input: d,
|
|
3294
|
+
accessibleLabel: y,
|
|
3295
|
+
visibleLabel: b,
|
|
3296
|
+
helperText: I,
|
|
3297
|
+
rightElement: w
|
|
3297
3298
|
};
|
|
3298
3299
|
}, nt = W.forwardRef(
|
|
3299
3300
|
({
|
|
@@ -3309,21 +3310,22 @@ const Nn = ({
|
|
|
3309
3310
|
disabled: h = !1,
|
|
3310
3311
|
noBorder: p = !1,
|
|
3311
3312
|
labelId: m,
|
|
3312
|
-
labelHidden:
|
|
3313
|
+
labelHidden: c = !1,
|
|
3313
3314
|
type: d = "text",
|
|
3314
|
-
helperText:
|
|
3315
|
+
helperText: y = "",
|
|
3315
3316
|
rightElement: b,
|
|
3316
|
-
|
|
3317
|
-
|
|
3317
|
+
rightElementClassName: I,
|
|
3318
|
+
spacing: w,
|
|
3319
|
+
size: C = "md",
|
|
3318
3320
|
...P
|
|
3319
|
-
},
|
|
3320
|
-
const [
|
|
3321
|
+
}, L) => {
|
|
3322
|
+
const [Z, R] = vn(), [G, O] = j(0), V = In({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${y}`, ee = $(null), N = $(null), D = {
|
|
3321
3323
|
xs: { label: "-25px", helperText: "30px" },
|
|
3322
3324
|
sm: { label: "-29px", helperText: "34px" },
|
|
3323
3325
|
md: { label: "-33px", helperText: "38px" },
|
|
3324
3326
|
lg: { label: "-15px", helperText: "22px" },
|
|
3325
3327
|
xl: { label: "-19px", helperText: "25px" }
|
|
3326
|
-
},
|
|
3328
|
+
}, M = Dn({
|
|
3327
3329
|
className: o,
|
|
3328
3330
|
inputClassName: s,
|
|
3329
3331
|
error: a,
|
|
@@ -3331,73 +3333,74 @@ const Nn = ({
|
|
|
3331
3333
|
focusMode: u,
|
|
3332
3334
|
disabled: h,
|
|
3333
3335
|
noBorder: p,
|
|
3334
|
-
spacing:
|
|
3336
|
+
spacing: w,
|
|
3335
3337
|
mode: i,
|
|
3336
|
-
size:
|
|
3338
|
+
size: C,
|
|
3339
|
+
rightElementClassName: I
|
|
3337
3340
|
});
|
|
3338
3341
|
return st(() => {
|
|
3339
|
-
|
|
3340
|
-
}, [
|
|
3341
|
-
var
|
|
3342
|
-
const { label:
|
|
3343
|
-
(
|
|
3342
|
+
R && R.width && O(R.width + 18 + 10);
|
|
3343
|
+
}, [R]), st(() => {
|
|
3344
|
+
var g, T;
|
|
3345
|
+
const { label: E, helperText: F } = D[C];
|
|
3346
|
+
(g = ee == null ? void 0 : ee.current) == null || g.style.setProperty("--av-text-input-label", E), (T = N == null ? void 0 : N.current) == null || T.style.setProperty(
|
|
3344
3347
|
"--av-text-input-helper-text",
|
|
3345
|
-
|
|
3348
|
+
F
|
|
3346
3349
|
);
|
|
3347
|
-
}, [
|
|
3348
|
-
/* @__PURE__ */
|
|
3350
|
+
}, [C]), /* @__PURE__ */ v("div", { className: M.wrapper, children: [
|
|
3351
|
+
/* @__PURE__ */ l(
|
|
3349
3352
|
"label",
|
|
3350
3353
|
{
|
|
3351
|
-
htmlFor:
|
|
3354
|
+
htmlFor: V,
|
|
3352
3355
|
id: m,
|
|
3353
|
-
className:
|
|
3356
|
+
className: M.accessibleLabel,
|
|
3354
3357
|
children: r
|
|
3355
3358
|
}
|
|
3356
3359
|
),
|
|
3357
|
-
/* @__PURE__ */
|
|
3360
|
+
/* @__PURE__ */ l(
|
|
3358
3361
|
"input",
|
|
3359
3362
|
{
|
|
3360
|
-
ref:
|
|
3361
|
-
id:
|
|
3363
|
+
ref: L,
|
|
3364
|
+
id: V,
|
|
3362
3365
|
name: t,
|
|
3363
3366
|
type: d,
|
|
3364
3367
|
disabled: h,
|
|
3365
3368
|
placeholder: n ? void 0 : " ",
|
|
3366
|
-
className:
|
|
3367
|
-
...
|
|
3369
|
+
className: M.input,
|
|
3370
|
+
...y && { "aria-describedby": `${V}-helper` },
|
|
3368
3371
|
...a && { "aria-invalid": "true" },
|
|
3369
|
-
...b && !n && { style: { paddingRight:
|
|
3372
|
+
...b && !n && { style: { paddingRight: G } },
|
|
3370
3373
|
...P
|
|
3371
3374
|
}
|
|
3372
3375
|
),
|
|
3373
|
-
!n && !
|
|
3376
|
+
!n && !c && /* @__PURE__ */ l(
|
|
3374
3377
|
"label",
|
|
3375
3378
|
{
|
|
3376
|
-
ref:
|
|
3379
|
+
ref: ee,
|
|
3377
3380
|
"aria-hidden": !0,
|
|
3378
|
-
htmlFor:
|
|
3379
|
-
className:
|
|
3381
|
+
htmlFor: V,
|
|
3382
|
+
className: M.visibleLabel,
|
|
3380
3383
|
children: r
|
|
3381
3384
|
}
|
|
3382
3385
|
),
|
|
3383
|
-
|
|
3386
|
+
y && /* @__PURE__ */ l(
|
|
3384
3387
|
"div",
|
|
3385
3388
|
{
|
|
3386
|
-
ref:
|
|
3387
|
-
id: `${
|
|
3388
|
-
className:
|
|
3389
|
-
children:
|
|
3389
|
+
ref: N,
|
|
3390
|
+
id: `${V}-helper`,
|
|
3391
|
+
className: M.helperText,
|
|
3392
|
+
children: y
|
|
3390
3393
|
}
|
|
3391
3394
|
),
|
|
3392
|
-
b && /* @__PURE__ */
|
|
3395
|
+
b && /* @__PURE__ */ l(
|
|
3393
3396
|
"div",
|
|
3394
3397
|
{
|
|
3395
|
-
ref:
|
|
3396
|
-
className:
|
|
3398
|
+
ref: Z,
|
|
3399
|
+
className: M.rightElement,
|
|
3397
3400
|
children: b
|
|
3398
3401
|
}
|
|
3399
3402
|
),
|
|
3400
|
-
a &&
|
|
3403
|
+
a && y && /* @__PURE__ */ l(nr, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
|
|
3401
3404
|
] });
|
|
3402
3405
|
}
|
|
3403
3406
|
);
|
|
@@ -3424,41 +3427,41 @@ const Ln = 500, Mn = 5e3, Un = 2e4, or = W.forwardRef(
|
|
|
3424
3427
|
rightElement: h,
|
|
3425
3428
|
spacing: p,
|
|
3426
3429
|
...m
|
|
3427
|
-
},
|
|
3428
|
-
const [d,
|
|
3430
|
+
}, c) => {
|
|
3431
|
+
const [d, y] = j(!0), [b, I] = j({
|
|
3429
3432
|
message: null,
|
|
3430
3433
|
politeness: null
|
|
3431
|
-
}), w = $(!0),
|
|
3432
|
-
clearTimeout(
|
|
3433
|
-
w.current = !0,
|
|
3434
|
+
}), w = $(!0), C = $(), P = $(null), L = $n([c, P]), Z = d ? "Show" : "Hide", R = () => {
|
|
3435
|
+
clearTimeout(C.current), w.current || (C.current = window.setTimeout(() => {
|
|
3436
|
+
w.current = !0, y(!0), I({
|
|
3434
3437
|
announcementTimeout: Mn,
|
|
3435
3438
|
politeness: "polite",
|
|
3436
3439
|
message: `${r} hiding characters`
|
|
3437
3440
|
}), n && n(!0);
|
|
3438
3441
|
}, Un));
|
|
3439
|
-
}, G = (
|
|
3440
|
-
|
|
3441
|
-
const
|
|
3442
|
-
w.current =
|
|
3442
|
+
}, G = (N) => {
|
|
3443
|
+
N.preventDefault();
|
|
3444
|
+
const D = !w.current;
|
|
3445
|
+
w.current = D, R(), y(D), I({
|
|
3443
3446
|
announcementTimeout: Ln,
|
|
3444
3447
|
politeness: "assertive",
|
|
3445
|
-
message:
|
|
3446
|
-
}), n && n(
|
|
3447
|
-
},
|
|
3448
|
-
var
|
|
3449
|
-
const { relatedTarget:
|
|
3450
|
-
g != null && g.contains(
|
|
3451
|
-
},
|
|
3452
|
-
|
|
3453
|
-
},
|
|
3454
|
-
|
|
3455
|
-
},
|
|
3456
|
-
|
|
3448
|
+
message: D ? "Characters hidden" : "Characters showing"
|
|
3449
|
+
}), n && n(D);
|
|
3450
|
+
}, O = (N) => {
|
|
3451
|
+
var D;
|
|
3452
|
+
const { relatedTarget: M } = N, g = (D = P.current) == null ? void 0 : D.parentElement;
|
|
3453
|
+
g != null && g.contains(M) || u && u();
|
|
3454
|
+
}, V = (N) => {
|
|
3455
|
+
R(), s && s(N), O(N);
|
|
3456
|
+
}, pe = (N) => {
|
|
3457
|
+
R(), i && i(N);
|
|
3458
|
+
}, ee = (N) => {
|
|
3459
|
+
R(), o && o(N);
|
|
3457
3460
|
};
|
|
3458
|
-
return
|
|
3459
|
-
clearTimeout(
|
|
3461
|
+
return Q(() => () => {
|
|
3462
|
+
clearTimeout(C.current);
|
|
3460
3463
|
}, []), /* @__PURE__ */ v(ye, { children: [
|
|
3461
|
-
/* @__PURE__ */
|
|
3464
|
+
/* @__PURE__ */ l(
|
|
3462
3465
|
nt,
|
|
3463
3466
|
{
|
|
3464
3467
|
ref: L,
|
|
@@ -3468,20 +3471,20 @@ const Ln = 500, Mn = 5e3, Un = 2e4, or = W.forwardRef(
|
|
|
3468
3471
|
type: d ? "password" : "text",
|
|
3469
3472
|
disabled: t,
|
|
3470
3473
|
spacing: p,
|
|
3471
|
-
onBlur:
|
|
3472
|
-
onFocus:
|
|
3473
|
-
onChange:
|
|
3474
|
+
onBlur: V,
|
|
3475
|
+
onFocus: pe,
|
|
3476
|
+
onChange: ee,
|
|
3474
3477
|
rightElement: W.cloneElement(h, {
|
|
3475
|
-
ref:
|
|
3476
|
-
label:
|
|
3478
|
+
ref: c,
|
|
3479
|
+
label: Z,
|
|
3477
3480
|
onClick: G,
|
|
3478
|
-
onBlur:
|
|
3481
|
+
onBlur: O,
|
|
3479
3482
|
disabled: t
|
|
3480
3483
|
}),
|
|
3481
3484
|
...m
|
|
3482
3485
|
}
|
|
3483
3486
|
),
|
|
3484
|
-
/* @__PURE__ */
|
|
3487
|
+
/* @__PURE__ */ l(
|
|
3485
3488
|
nr,
|
|
3486
3489
|
{
|
|
3487
3490
|
role: "status",
|
|
@@ -3495,13 +3498,13 @@ const Ln = 500, Mn = 5e3, Un = 2e4, or = W.forwardRef(
|
|
|
3495
3498
|
);
|
|
3496
3499
|
or.displayName = "TextInputMask";
|
|
3497
3500
|
/*!
|
|
3498
|
-
@versini/ui-textinput v1.
|
|
3501
|
+
@versini/ui-textinput v1.2.0
|
|
3499
3502
|
© 2024 gizmette.com
|
|
3500
3503
|
*/
|
|
3501
3504
|
try {
|
|
3502
3505
|
window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
|
|
3503
|
-
version: "1.
|
|
3504
|
-
buildTime: "09/
|
|
3506
|
+
version: "1.2.0",
|
|
3507
|
+
buildTime: "09/30/2024 09:28 AM EDT",
|
|
3505
3508
|
homepage: "https://github.com/aversini/ui-components",
|
|
3506
3509
|
license: "MIT"
|
|
3507
3510
|
});
|
|
@@ -3577,7 +3580,7 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3577
3580
|
spacing: o,
|
|
3578
3581
|
raw: s = !1
|
|
3579
3582
|
}) => {
|
|
3580
|
-
const i =
|
|
3583
|
+
const i = f(Jn, e, Yn(o), {
|
|
3581
3584
|
"text-copy-dark": !s && t === "dark",
|
|
3582
3585
|
"text-copy-lighter": !s && t === "light",
|
|
3583
3586
|
"text-copy-dark dark:text-copy-lighter": !s && t === "system",
|
|
@@ -3586,19 +3589,19 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3586
3589
|
"mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !s
|
|
3587
3590
|
});
|
|
3588
3591
|
return /* @__PURE__ */ v("footer", { className: i, children: [
|
|
3589
|
-
r && /* @__PURE__ */
|
|
3590
|
-
a && /* @__PURE__ */
|
|
3592
|
+
r && /* @__PURE__ */ l("div", { children: r }),
|
|
3593
|
+
a && /* @__PURE__ */ l("div", { children: a })
|
|
3591
3594
|
] });
|
|
3592
3595
|
}, zn = ({
|
|
3593
3596
|
serverStats: e
|
|
3594
|
-
}) => /* @__PURE__ */
|
|
3597
|
+
}) => /* @__PURE__ */ l(
|
|
3595
3598
|
Fn,
|
|
3596
3599
|
{
|
|
3597
3600
|
mode: "light",
|
|
3598
3601
|
row1: /* @__PURE__ */ v("div", { children: [
|
|
3599
3602
|
sr,
|
|
3600
3603
|
" v",
|
|
3601
|
-
"4.5.
|
|
3604
|
+
"4.5.3",
|
|
3602
3605
|
" - ",
|
|
3603
3606
|
Vn,
|
|
3604
3607
|
tt && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
|
|
@@ -3613,42 +3616,42 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3613
3616
|
), jn = _t(
|
|
3614
3617
|
() => import(
|
|
3615
3618
|
/* webpackChunkName: "LazyHeader" */
|
|
3616
|
-
"./LazyHeader.
|
|
3619
|
+
"./LazyHeader.ChGYAocD.js"
|
|
3617
3620
|
)
|
|
3618
3621
|
), qn = () => {
|
|
3619
3622
|
const { isAuthenticated: e } = et();
|
|
3620
3623
|
return /* @__PURE__ */ v(ye, { children: [
|
|
3621
|
-
e && /* @__PURE__ */
|
|
3624
|
+
e && /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(jn, {}) }),
|
|
3622
3625
|
/* @__PURE__ */ v("div", { className: "flex items-center justify-center", children: [
|
|
3623
|
-
/* @__PURE__ */
|
|
3626
|
+
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(ln, {}) }),
|
|
3624
3627
|
/* @__PURE__ */ v("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3625
|
-
/* @__PURE__ */
|
|
3626
|
-
/* @__PURE__ */
|
|
3628
|
+
/* @__PURE__ */ l("h1", { children: sr }),
|
|
3629
|
+
/* @__PURE__ */ l("h2", { children: Kn })
|
|
3627
3630
|
] })
|
|
3628
3631
|
] })
|
|
3629
3632
|
] });
|
|
3630
3633
|
}, Xn = () => {
|
|
3631
|
-
const { login: e, logoutReason: t, loginWithPasskey: r } = et(), [a, n] =
|
|
3634
|
+
const { login: e, logoutReason: t, loginWithPasskey: r } = et(), [a, n] = j(""), [o, s] = j(""), [i, u] = j(!0), [h, p] = j({
|
|
3632
3635
|
username: "",
|
|
3633
3636
|
password: ""
|
|
3634
|
-
}), m = async (
|
|
3635
|
-
|
|
3637
|
+
}), m = async (c) => {
|
|
3638
|
+
c.preventDefault(), await e(h.username, h.password) || (s(""), n("Invalid username or password"));
|
|
3636
3639
|
};
|
|
3637
|
-
return
|
|
3638
|
-
var
|
|
3639
|
-
(
|
|
3640
|
+
return Q(() => {
|
|
3641
|
+
var c;
|
|
3642
|
+
(c = document.getElementById("logo")) == null || c.classList.add("fadeOut"), setTimeout(() => {
|
|
3640
3643
|
var d;
|
|
3641
3644
|
(d = document.getElementById("root")) == null || d.classList.replace("app-hidden", "fadeIn");
|
|
3642
3645
|
}, 500);
|
|
3643
|
-
}),
|
|
3646
|
+
}), Q(() => {
|
|
3644
3647
|
t && s(t);
|
|
3645
3648
|
}, [t]), /* @__PURE__ */ v(ye, { children: [
|
|
3646
3649
|
/* @__PURE__ */ v(gn, { children: [
|
|
3647
|
-
/* @__PURE__ */
|
|
3650
|
+
/* @__PURE__ */ l("div", { className: Ja(), children: /* @__PURE__ */ l(qn, {}) }),
|
|
3648
3651
|
/* @__PURE__ */ v("form", { className: "mt-5", onSubmit: m, children: [
|
|
3649
|
-
/* @__PURE__ */
|
|
3650
|
-
/* @__PURE__ */
|
|
3651
|
-
/* @__PURE__ */
|
|
3652
|
+
/* @__PURE__ */ l(Tt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ v(sn, { mode: "dark", children: [
|
|
3653
|
+
/* @__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 }) }),
|
|
3654
|
+
/* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
|
|
3652
3655
|
nt,
|
|
3653
3656
|
{
|
|
3654
3657
|
required: !0,
|
|
@@ -3659,16 +3662,16 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3659
3662
|
focusMode: "light",
|
|
3660
3663
|
name: "username",
|
|
3661
3664
|
label: "Username",
|
|
3662
|
-
onChange: (
|
|
3665
|
+
onChange: (c) => {
|
|
3663
3666
|
p({
|
|
3664
3667
|
...h,
|
|
3665
|
-
username:
|
|
3668
|
+
username: c.target.value
|
|
3666
3669
|
}), n("");
|
|
3667
3670
|
},
|
|
3668
3671
|
error: a !== ""
|
|
3669
3672
|
}
|
|
3670
3673
|
) }),
|
|
3671
|
-
/* @__PURE__ */
|
|
3674
|
+
/* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
|
|
3672
3675
|
or,
|
|
3673
3676
|
{
|
|
3674
3677
|
required: !0,
|
|
@@ -3679,19 +3682,19 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3679
3682
|
focusMode: "light",
|
|
3680
3683
|
name: "password",
|
|
3681
3684
|
label: Gn,
|
|
3682
|
-
rightElement: /* @__PURE__ */
|
|
3685
|
+
rightElement: /* @__PURE__ */ l(Xe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(mn, {}) : /* @__PURE__ */ l(dn, {}) }),
|
|
3683
3686
|
onMaskChange: u,
|
|
3684
|
-
onChange: (
|
|
3687
|
+
onChange: (c) => {
|
|
3685
3688
|
p({
|
|
3686
3689
|
...h,
|
|
3687
|
-
password:
|
|
3690
|
+
password: c.target.value
|
|
3688
3691
|
}), n("");
|
|
3689
3692
|
},
|
|
3690
3693
|
error: a !== "",
|
|
3691
3694
|
helperText: a
|
|
3692
3695
|
}
|
|
3693
3696
|
) }),
|
|
3694
|
-
/* @__PURE__ */
|
|
3697
|
+
/* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
|
|
3695
3698
|
Zt,
|
|
3696
3699
|
{
|
|
3697
3700
|
mode: "light",
|
|
@@ -3704,8 +3707,8 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3704
3707
|
}
|
|
3705
3708
|
) })
|
|
3706
3709
|
] }) }) }),
|
|
3707
|
-
/* @__PURE__ */
|
|
3708
|
-
/* @__PURE__ */
|
|
3710
|
+
/* @__PURE__ */ l("div", { className: "text-center text-copy-light", children: "or" }),
|
|
3711
|
+
/* @__PURE__ */ l(Tt, { alignHorizontal: "center", children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ l(
|
|
3709
3712
|
Xe,
|
|
3710
3713
|
{
|
|
3711
3714
|
mode: "dark",
|
|
@@ -3715,23 +3718,23 @@ const Jn = "av-footer", Yn = (e) => {
|
|
|
3715
3718
|
className: "mb-4 mt-1",
|
|
3716
3719
|
labelRight: Bn,
|
|
3717
3720
|
onClick: r,
|
|
3718
|
-
children: /* @__PURE__ */
|
|
3721
|
+
children: /* @__PURE__ */ l(un, { className: "size-7" })
|
|
3719
3722
|
}
|
|
3720
3723
|
) }) })
|
|
3721
3724
|
] })
|
|
3722
3725
|
] }),
|
|
3723
|
-
/* @__PURE__ */
|
|
3726
|
+
/* @__PURE__ */ l(zn, {})
|
|
3724
3727
|
] });
|
|
3725
3728
|
}, Qn = new URL(document.location.href).searchParams, Zn = !!Qn.get("debug") || !1, eo = _t(() => import(
|
|
3726
3729
|
/* webpackChunkName: "LazyApp" */
|
|
3727
|
-
"./App.
|
|
3730
|
+
"./App.DVd22A7h.js"
|
|
3728
3731
|
).then((e) => e.App)), to = ({ isComponent: e }) => {
|
|
3729
3732
|
const { isAuthenticated: t } = et();
|
|
3730
|
-
return t ? /* @__PURE__ */
|
|
3733
|
+
return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(eo, { isComponent: e }) }) : /* @__PURE__ */ l(Xn, {});
|
|
3731
3734
|
}, ro = ({
|
|
3732
3735
|
isComponent: e = !1,
|
|
3733
3736
|
domain: t = Va
|
|
3734
|
-
}) => /* @__PURE__ */
|
|
3737
|
+
}) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Pa, { clientId: Da, domain: t, debug: Zn, children: /* @__PURE__ */ l(to, { isComponent: e }) }) }), as = ({ domain: e }) => /* @__PURE__ */ l(ro, { isComponent: !0, domain: e });
|
|
3735
3738
|
export {
|
|
3736
3739
|
Xo as ABOUT_TITLE,
|
|
3737
3740
|
wo as ACTION_MESSAGE,
|
|
@@ -3739,9 +3742,9 @@ export {
|
|
|
3739
3742
|
To as ACTION_RESET,
|
|
3740
3743
|
Ro as ACTION_RESET_TAGS,
|
|
3741
3744
|
Io as ACTION_RESTORE,
|
|
3742
|
-
|
|
3745
|
+
ko as ACTION_SEARCH,
|
|
3743
3746
|
So as ACTION_SORT,
|
|
3744
|
-
|
|
3747
|
+
Ao as ACTION_STREAMING,
|
|
3745
3748
|
_o as ACTION_TOGGLE_TAG,
|
|
3746
3749
|
zn as AppFooter,
|
|
3747
3750
|
es as CANCEL,
|
|
@@ -3787,11 +3790,11 @@ export {
|
|
|
3787
3790
|
Ja as getMessageContaintWrapperClass,
|
|
3788
3791
|
Bo as isLastMessageFromRole,
|
|
3789
3792
|
le as j,
|
|
3793
|
+
nt as me,
|
|
3790
3794
|
Go as numberFormatter,
|
|
3791
3795
|
Jo as pluralize,
|
|
3792
3796
|
Ho as renderDataAsList,
|
|
3793
3797
|
et as rn,
|
|
3794
3798
|
Uo as truncate,
|
|
3795
|
-
un as v
|
|
3796
|
-
nt as ye
|
|
3799
|
+
un as v
|
|
3797
3800
|
};
|