@versini/sassysaint 7.1.1 → 7.1.3
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.Cx-e5bZ5.js → App.B8bK5ZIi.js} +1602 -1597
- package/dist/chunks/{ChatBubbleAssistant.B02s8tZ4.js → ChatBubbleAssistant.dbLXBq32.js} +731 -721
- package/dist/chunks/{HeaderEntry.rgTf-RhA.js → HeaderEntry.D0eWiSSF.js} +451 -469
- package/dist/chunks/{MarkdownWithExtra.DO2ytP63.js → MarkdownWithExtra.DlCzaBhE.js} +2 -2
- package/dist/chunks/{index.B2XPWk2Q.js → index.Bgfx5ihk.js} +259 -244
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as D, Fragment as Re } from "react/jsx-runtime";
|
|
2
|
-
import X, { createContext as sr, useReducer as
|
|
2
|
+
import X, { createContext as sr, useReducer as It, useRef as x, useCallback as q, useEffect as Y, useContext as St, useSyncExternalStore as ir, useLayoutEffect as Ne, useMemo as Le, useState as z, useId as _t, lazy as cr, Suspense as lr } from "react";
|
|
3
3
|
import p 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, We = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
5
|
/*!
|
|
@@ -176,7 +176,7 @@ async function fr(e) {
|
|
|
176
176
|
try {
|
|
177
177
|
d = o.getPublicKeyAlgorithm();
|
|
178
178
|
} catch (c) {
|
|
179
|
-
|
|
179
|
+
Be("getPublicKeyAlgorithm()", c);
|
|
180
180
|
}
|
|
181
181
|
let h;
|
|
182
182
|
if (typeof o.getPublicKey == "function")
|
|
@@ -184,14 +184,14 @@ async function fr(e) {
|
|
|
184
184
|
const c = o.getPublicKey();
|
|
185
185
|
c !== null && (h = G(c));
|
|
186
186
|
} catch (c) {
|
|
187
|
-
|
|
187
|
+
Be("getPublicKey()", c);
|
|
188
188
|
}
|
|
189
189
|
let f;
|
|
190
190
|
if (typeof o.getAuthenticatorData == "function")
|
|
191
191
|
try {
|
|
192
192
|
f = G(o.getAuthenticatorData());
|
|
193
193
|
} catch (c) {
|
|
194
|
-
|
|
194
|
+
Be("getAuthenticatorData()", c);
|
|
195
195
|
}
|
|
196
196
|
return {
|
|
197
197
|
id: a,
|
|
@@ -209,7 +209,7 @@ async function fr(e) {
|
|
|
209
209
|
authenticatorAttachment: Nt(r.authenticatorAttachment)
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Be(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
|
}
|
|
@@ -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 Tr = (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 Ir = (e) => {
|
|
|
368
368
|
let t = e;
|
|
369
369
|
t instanceof Uint8Array && (t = ye.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
|
|
370
370
|
try {
|
|
371
|
-
return
|
|
371
|
+
return Tr(t);
|
|
372
372
|
} catch {
|
|
373
373
|
throw new TypeError("The input to be decoded is not correctly encoded.");
|
|
374
374
|
}
|
|
@@ -404,12 +404,12 @@ let W = class extends P {
|
|
|
404
404
|
}
|
|
405
405
|
};
|
|
406
406
|
W.code = "ERR_JOSE_NOT_SUPPORTED";
|
|
407
|
-
class
|
|
407
|
+
class Ir extends P {
|
|
408
408
|
constructor(t = "decryption operation failed", r) {
|
|
409
409
|
super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
|
|
412
|
+
Ir.code = "ERR_JWE_DECRYPTION_FAILED";
|
|
413
413
|
class Sr extends P {
|
|
414
414
|
constructor() {
|
|
415
415
|
super(...arguments), this.code = "ERR_JWE_INVALID";
|
|
@@ -470,7 +470,7 @@ function j(e, t = "algorithm.name") {
|
|
|
470
470
|
function we(e, t) {
|
|
471
471
|
return e.name === t;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ve(e) {
|
|
474
474
|
return parseInt(e.name.slice(4), 10);
|
|
475
475
|
}
|
|
476
476
|
function vr(e) {
|
|
@@ -503,7 +503,7 @@ function Cr(e, t, ...r) {
|
|
|
503
503
|
if (!we(e.algorithm, "HMAC"))
|
|
504
504
|
throw j("HMAC");
|
|
505
505
|
const a = parseInt(t.slice(2), 10);
|
|
506
|
-
if (
|
|
506
|
+
if (Ve(e.algorithm.hash) !== a)
|
|
507
507
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
508
508
|
break;
|
|
509
509
|
}
|
|
@@ -513,7 +513,7 @@ function Cr(e, t, ...r) {
|
|
|
513
513
|
if (!we(e.algorithm, "RSASSA-PKCS1-v1_5"))
|
|
514
514
|
throw j("RSASSA-PKCS1-v1_5");
|
|
515
515
|
const a = parseInt(t.slice(2), 10);
|
|
516
|
-
if (
|
|
516
|
+
if (Ve(e.algorithm.hash) !== a)
|
|
517
517
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
518
518
|
break;
|
|
519
519
|
}
|
|
@@ -523,7 +523,7 @@ function Cr(e, t, ...r) {
|
|
|
523
523
|
if (!we(e.algorithm, "RSA-PSS"))
|
|
524
524
|
throw j("RSA-PSS");
|
|
525
525
|
const a = parseInt(t.slice(2), 10);
|
|
526
|
-
if (
|
|
526
|
+
if (Ve(e.algorithm.hash) !== a)
|
|
527
527
|
throw j(`SHA-${a}`, "algorithm.hash");
|
|
528
528
|
break;
|
|
529
529
|
}
|
|
@@ -737,7 +737,7 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
737
737
|
default:
|
|
738
738
|
throw new W("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
|
|
739
739
|
}
|
|
740
|
-
},
|
|
740
|
+
}, Br = async (e, t, r, a, n) => {
|
|
741
741
|
let o, s;
|
|
742
742
|
const i = new Uint8Array(atob(r.replace(e, "")).split("").map((d) => d.charCodeAt(0)));
|
|
743
743
|
switch (a) {
|
|
@@ -784,11 +784,11 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
|
|
|
784
784
|
throw new W('Invalid or unsupported "alg" (Algorithm) value');
|
|
785
785
|
}
|
|
786
786
|
return Me.subtle.importKey(t, i, o, !1, s);
|
|
787
|
-
},
|
|
787
|
+
}, Vr = (e, t, r) => Br(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
|
|
788
788
|
async function Jr(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
793
|
async function Gr(e, t) {
|
|
794
794
|
if (!he(e))
|
|
@@ -1196,18 +1196,18 @@ async function ba(e) {
|
|
|
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 ft = (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),
|
|
1208
|
+
window.localStorage.removeItem(e), Bt(e, null);
|
|
1209
1209
|
}, gt = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
1210
|
-
function
|
|
1210
|
+
function Te({
|
|
1211
1211
|
key: e,
|
|
1212
1212
|
initialValue: t
|
|
1213
1213
|
}) {
|
|
@@ -1237,18 +1237,18 @@ function Ie({
|
|
|
1237
1237
|
const R = [];
|
|
1238
1238
|
for (let e = 0; e < 256; ++e)
|
|
1239
1239
|
R.push((e + 256).toString(16).slice(1));
|
|
1240
|
-
function
|
|
1240
|
+
function Ta(e, t = 0) {
|
|
1241
1241
|
return (R[e[t + 0]] + R[e[t + 1]] + R[e[t + 2]] + R[e[t + 3]] + "-" + R[e[t + 4]] + R[e[t + 5]] + "-" + R[e[t + 6]] + R[e[t + 7]] + "-" + R[e[t + 8]] + R[e[t + 9]] + "-" + R[e[t + 10]] + R[e[t + 11]] + R[e[t + 12]] + R[e[t + 13]] + R[e[t + 14]] + R[e[t + 15]]).toLowerCase();
|
|
1242
1242
|
}
|
|
1243
1243
|
let Ge;
|
|
1244
|
-
const
|
|
1244
|
+
const Ia = new Uint8Array(16);
|
|
1245
1245
|
function Sa() {
|
|
1246
1246
|
if (!Ge) {
|
|
1247
1247
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1248
1248
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1249
1249
|
Ge = crypto.getRandomValues.bind(crypto);
|
|
1250
1250
|
}
|
|
1251
|
-
return Ge(
|
|
1251
|
+
return Ge(Ia);
|
|
1252
1252
|
}
|
|
1253
1253
|
const _a = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: _a };
|
|
1254
1254
|
function Ye(e, t, r) {
|
|
@@ -1256,12 +1256,12 @@ function Ye(e, t, r) {
|
|
|
1256
1256
|
return yt.randomUUID();
|
|
1257
1257
|
e = e || {};
|
|
1258
1258
|
const a = e.random || (e.rng || Sa)();
|
|
1259
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1259
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ta(a);
|
|
1260
1260
|
}
|
|
1261
1261
|
const ie = "Your session has expired. For your security, please log in again to continue.", ka = "Your session has been successfully terminated.", Fe = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", Ra = "You forgot to wrap your component in <AuthProvider>.", Oe = {
|
|
1262
1262
|
dev: "https://auth.gizmette.local.com:3003",
|
|
1263
1263
|
prod: "https://mylogin.gizmette.com/auth"
|
|
1264
|
-
},
|
|
1264
|
+
}, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Vt = "LOGOUT", be = "success", F = "failure", Jt = "include", Gt = "POST", Yt = "application/json", Se = {
|
|
1265
1265
|
GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
|
|
1266
1266
|
$clientId: String!,
|
|
1267
1267
|
$username: String!,
|
|
@@ -1650,7 +1650,7 @@ const La = (e) => q(
|
|
|
1650
1650
|
user: t.payload.user,
|
|
1651
1651
|
authenticationType: t.payload.authenticationType,
|
|
1652
1652
|
logoutReason: ""
|
|
1653
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1653
|
+
} : (t == null ? void 0 : t.type) === Vt ? {
|
|
1654
1654
|
...e,
|
|
1655
1655
|
isLoading: !1,
|
|
1656
1656
|
isAuthenticated: !1,
|
|
@@ -1664,20 +1664,20 @@ const La = (e) => q(
|
|
|
1664
1664
|
domain: a = "",
|
|
1665
1665
|
debug: n = !1
|
|
1666
1666
|
}) => {
|
|
1667
|
-
const [o, s] =
|
|
1667
|
+
const [o, s] = It(Ma, {
|
|
1668
1668
|
...jt,
|
|
1669
1669
|
debug: n
|
|
1670
|
-
}), i = La(n), d = x(!1), [h, f, , u] =
|
|
1671
|
-
key: `${
|
|
1672
|
-
}), [c, m, , y] =
|
|
1673
|
-
key: `${
|
|
1674
|
-
}), [w,
|
|
1670
|
+
}), i = La(n), d = x(!1), [h, f, , u] = Te({
|
|
1671
|
+
key: `${Ie}::${r}::@@user@@`
|
|
1672
|
+
}), [c, m, , y] = Te({
|
|
1673
|
+
key: `${Ie}::${r}::@@access@@`
|
|
1674
|
+
}), [w, T, , k] = Te(
|
|
1675
1675
|
{
|
|
1676
|
-
key: `${
|
|
1676
|
+
key: `${Ie}::${r}::@@refresh@@`
|
|
1677
1677
|
}
|
|
1678
|
-
), [Q, L, , Z] =
|
|
1679
|
-
key: `${
|
|
1680
|
-
}), $ = new Da(c, w),
|
|
1678
|
+
), [Q, L, , Z] = Te({
|
|
1679
|
+
key: `${Ie}::${r}::@@nonce@@`
|
|
1680
|
+
}), $ = new Da(c, w), B = q(() => {
|
|
1681
1681
|
i("removeLocalStorage: removing local storage"), u(), y(), k(), Z();
|
|
1682
1682
|
}, [
|
|
1683
1683
|
y,
|
|
@@ -1691,13 +1691,13 @@ const La = (e) => q(
|
|
|
1691
1691
|
"removeStateAndLocalStorage: removing state and local storage with reason: ",
|
|
1692
1692
|
g
|
|
1693
1693
|
), s({
|
|
1694
|
-
type:
|
|
1694
|
+
type: Vt,
|
|
1695
1695
|
payload: {
|
|
1696
1696
|
logoutReason: g || ie
|
|
1697
1697
|
}
|
|
1698
|
-
}),
|
|
1698
|
+
}), B(), s({ type: fe, payload: { isLoading: !1 } });
|
|
1699
1699
|
},
|
|
1700
|
-
[
|
|
1700
|
+
[B, i]
|
|
1701
1701
|
), S = q(
|
|
1702
1702
|
async (g) => {
|
|
1703
1703
|
i("invalidateAndLogout: invalidating and logging out");
|
|
@@ -1739,7 +1739,7 @@ const La = (e) => q(
|
|
|
1739
1739
|
};
|
|
1740
1740
|
}, [o.isLoading, h, S, i]);
|
|
1741
1741
|
const M = async (g, E) => {
|
|
1742
|
-
s({ type: fe, payload: { isLoading: !0 } }),
|
|
1742
|
+
s({ type: fe, payload: { isLoading: !0 } }), B();
|
|
1743
1743
|
const b = Ye();
|
|
1744
1744
|
L(b), i("login: Logging in with password");
|
|
1745
1745
|
const { code_verifier: ae, code_challenge: or } = await ba(), st = await Oa({
|
|
@@ -1760,7 +1760,7 @@ const La = (e) => q(
|
|
|
1760
1760
|
domain: a,
|
|
1761
1761
|
ua: navigator.userAgent
|
|
1762
1762
|
});
|
|
1763
|
-
return ne.status ? (f(ne.idToken), m(ne.accessToken),
|
|
1763
|
+
return ne.status ? (f(ne.idToken), m(ne.accessToken), T(ne.refreshToken), s({
|
|
1764
1764
|
type: ke,
|
|
1765
1765
|
payload: {
|
|
1766
1766
|
authenticationType: me.CODE,
|
|
@@ -1775,7 +1775,7 @@ const La = (e) => q(
|
|
|
1775
1775
|
return !1;
|
|
1776
1776
|
}, K = async (g) => {
|
|
1777
1777
|
g == null || g.preventDefault(), await S(ka);
|
|
1778
|
-
},
|
|
1778
|
+
}, I = async () => {
|
|
1779
1779
|
const { isAuthenticated: g, user: E } = o;
|
|
1780
1780
|
try {
|
|
1781
1781
|
if (g && E && E.userId) {
|
|
@@ -1792,7 +1792,7 @@ const La = (e) => q(
|
|
|
1792
1792
|
nonce: Q,
|
|
1793
1793
|
domain: a
|
|
1794
1794
|
});
|
|
1795
|
-
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken),
|
|
1795
|
+
return b.status && b.status === "success" && b.newAccessToken ? (m(b.newAccessToken), T(b.newRefreshToken), b.newAccessToken) : (i(
|
|
1796
1796
|
"getAccessToken: invalid refresh token, need to re-authenticate"
|
|
1797
1797
|
), await S(ie), "");
|
|
1798
1798
|
}
|
|
@@ -1844,8 +1844,8 @@ const La = (e) => q(
|
|
|
1844
1844
|
}), !1;
|
|
1845
1845
|
}
|
|
1846
1846
|
return !1;
|
|
1847
|
-
},
|
|
1848
|
-
s({ type: fe, payload: { isLoading: !0 } }),
|
|
1847
|
+
}, V = async () => {
|
|
1848
|
+
s({ type: fe, payload: { isLoading: !0 } }), B();
|
|
1849
1849
|
const g = Ye();
|
|
1850
1850
|
L(g), i("loginWithPasskey");
|
|
1851
1851
|
const E = Ye();
|
|
@@ -1874,7 +1874,7 @@ const La = (e) => q(
|
|
|
1874
1874
|
sessionExpiration: t,
|
|
1875
1875
|
ua: navigator.userAgent
|
|
1876
1876
|
}
|
|
1877
|
-
}), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken),
|
|
1877
|
+
}), b.data.status === be ? (f(b.data.idToken), m(b.data.accessToken), T(b.data.refreshToken), s({
|
|
1878
1878
|
type: ke,
|
|
1879
1879
|
payload: {
|
|
1880
1880
|
authenticationType: me.PASSKEY,
|
|
@@ -1909,15 +1909,15 @@ const La = (e) => q(
|
|
|
1909
1909
|
...o,
|
|
1910
1910
|
login: M,
|
|
1911
1911
|
logout: K,
|
|
1912
|
-
getAccessToken:
|
|
1912
|
+
getAccessToken: I,
|
|
1913
1913
|
getIdToken: C,
|
|
1914
1914
|
registeringForPasskey: O,
|
|
1915
|
-
loginWithPasskey:
|
|
1915
|
+
loginWithPasskey: V
|
|
1916
1916
|
},
|
|
1917
1917
|
children: e
|
|
1918
1918
|
}
|
|
1919
1919
|
) });
|
|
1920
|
-
}, qt = (e = zt) => St(e),
|
|
1920
|
+
}, qt = (e = zt) => St(e), wo = "user", To = "assistant", Io = "system", So = "internal", _o = "hidden", ko = "I'm having trouble right now. Please try again later.", Ao = "OpenAI", Ro = "OpenAI", No = "Anthropic", vo = "action-search", xo = "action-sort", Co = "action-toggle-prompt", Oo = "action-reset-prompt", Po = "sassy-saint-", Do = "details", Lo = "search", $o = "sort", Mo = "private-disclosure", Uo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ko = 10, Ho = 30, Wo = "av-prompt", Bo = "av-prompt-editable", Vo = "size-5 sm:size-4", bt = (e) => Number.isFinite(e) ? e : 0;
|
|
1921
1921
|
function Ha(e) {
|
|
1922
1922
|
return {
|
|
1923
1923
|
days: Math.trunc(e / 864e5),
|
|
@@ -1940,7 +1940,7 @@ function Wa(e) {
|
|
|
1940
1940
|
nanoseconds: 0n
|
|
1941
1941
|
};
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Ba(e) {
|
|
1944
1944
|
switch (typeof e) {
|
|
1945
1945
|
case "number": {
|
|
1946
1946
|
if (Number.isFinite(e))
|
|
@@ -1952,7 +1952,7 @@ function Va(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, Ja = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 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))
|
|
@@ -1965,7 +1965,7 @@ function Fa(e, t) {
|
|
|
1965
1965
|
const c = Math.floor(f * 10 ** u + Ga);
|
|
1966
1966
|
return (Math.round(c) / 10 ** u).toFixed(u);
|
|
1967
1967
|
}, s = (f, u, c, m) => {
|
|
1968
|
-
if (!((n.length === 0 || !t.colonNotation) &&
|
|
1968
|
+
if (!((n.length === 0 || !t.colonNotation) && Va(f) && !(t.colonNotation && c === "m"))) {
|
|
1969
1969
|
if (m ?? (m = String(f)), t.colonNotation) {
|
|
1970
1970
|
const y = m.includes(".") ? m.split(".")[0].length : m.length, w = n.length > 0 ? 2 : 1;
|
|
1971
1971
|
m = "0".repeat(Math.max(0, w - y)) + m;
|
|
@@ -1973,14 +1973,14 @@ function Fa(e, t) {
|
|
|
1973
1973
|
m += t.verbose ? " " + Ja(u, f) : c;
|
|
1974
1974
|
n.push(m);
|
|
1975
1975
|
}
|
|
1976
|
-
}, i =
|
|
1976
|
+
}, i = Ba(e), d = BigInt(i.days);
|
|
1977
1977
|
if (t.hideYearAndDays ? s(BigInt(d) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(d, "day", "d") : (s(d / 365n, "year", "y"), s(d % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
|
|
1978
1978
|
if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
|
|
1979
1979
|
const f = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), m = Number(i.nanoseconds);
|
|
1980
1980
|
if (s(f, "second", "s"), t.formatSubMilliseconds)
|
|
1981
1981
|
s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(m, "nanosecond", "ns");
|
|
1982
1982
|
else {
|
|
1983
|
-
const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0,
|
|
1983
|
+
const y = u + c / 1e3 + m / 1e6, w = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, T = y >= 1 ? Math.round(y) : Math.ceil(y), k = w ? y.toFixed(w) : T;
|
|
1984
1984
|
s(
|
|
1985
1985
|
Number.parseFloat(k),
|
|
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 ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com",
|
|
2000
|
+
const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com", Jo = async () => {
|
|
2001
2001
|
const e = {
|
|
2002
2002
|
/**
|
|
2003
2003
|
* A boolean value that indicates the application would
|
|
@@ -2046,10 +2046,15 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2046
2046
|
e
|
|
2047
2047
|
);
|
|
2048
2048
|
});
|
|
2049
|
-
},
|
|
2049
|
+
}, Go = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
|
|
2050
2050
|
/* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
|
|
2051
2051
|
/* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
|
|
2052
|
-
] }) }, `${e}-${r}`)) : null,
|
|
2052
|
+
] }) }, `${e}-${r}`)) : null, Yo = new Intl.NumberFormat("en", {
|
|
2053
|
+
style: "decimal",
|
|
2054
|
+
signDisplay: "never",
|
|
2055
|
+
minimumFractionDigits: 0,
|
|
2056
|
+
maximumFractionDigits: 0
|
|
2057
|
+
}), Fo = (e) => e > 0 ? Fa(e, {
|
|
2053
2058
|
secondsDecimalDigits: 2,
|
|
2054
2059
|
unitCount: 2
|
|
2055
2060
|
}) : "N/A", Xa = ({
|
|
@@ -2061,12 +2066,15 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2061
2066
|
t
|
|
2062
2067
|
), Qa = ({
|
|
2063
2068
|
extraClass: e
|
|
2064
|
-
}) => p("px-2 sm:px-0", e),
|
|
2069
|
+
}) => p("px-2 sm:px-0", e), jo = (e, t) => t === 1 ? e : `${e}s`, zo = (e, t) => {
|
|
2065
2070
|
let r;
|
|
2066
2071
|
return (...a) => {
|
|
2067
2072
|
window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
|
|
2068
2073
|
};
|
|
2069
|
-
}, Za = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__),
|
|
2074
|
+
}, Za = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), en = () => window.innerWidth < 403, qo = () => {
|
|
2075
|
+
const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = en(), a = navigator.maxTouchPoints > 1;
|
|
2076
|
+
return e && t && r && a;
|
|
2077
|
+
}, Et = "av-button", Ke = "icon", at = "button", Ze = "link", tn = ({
|
|
2070
2078
|
type: e,
|
|
2071
2079
|
size: t,
|
|
2072
2080
|
labelRight: r,
|
|
@@ -2102,7 +2110,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2102
2110
|
"h-12": t === "large" && o && (r || a)
|
|
2103
2111
|
});
|
|
2104
2112
|
}
|
|
2105
|
-
},
|
|
2113
|
+
}, rn = ({
|
|
2106
2114
|
type: e,
|
|
2107
2115
|
size: t,
|
|
2108
2116
|
labelRight: r,
|
|
@@ -2125,7 +2133,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2125
2133
|
[s]: t === "large" && (r || a)
|
|
2126
2134
|
});
|
|
2127
2135
|
}
|
|
2128
|
-
},
|
|
2136
|
+
}, an = ({
|
|
2129
2137
|
mode: e,
|
|
2130
2138
|
noBackground: t,
|
|
2131
2139
|
noTruncate: r,
|
|
@@ -2161,7 +2169,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2161
2169
|
return p("not-prose text-copy-lighter", {
|
|
2162
2170
|
truncate: !r
|
|
2163
2171
|
});
|
|
2164
|
-
},
|
|
2172
|
+
}, nn = ({
|
|
2165
2173
|
mode: e,
|
|
2166
2174
|
noBackground: t,
|
|
2167
2175
|
variant: r
|
|
@@ -2191,13 +2199,13 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2191
2199
|
if (r === "selected")
|
|
2192
2200
|
return "bg-action-selected-dark";
|
|
2193
2201
|
}
|
|
2194
|
-
},
|
|
2202
|
+
}, on = ({
|
|
2195
2203
|
radius: e
|
|
2196
2204
|
}) => p({
|
|
2197
2205
|
"rounded-full": e === "large",
|
|
2198
2206
|
"rounded-md": e === "medium",
|
|
2199
2207
|
"rounded-sm": e === "small"
|
|
2200
|
-
}),
|
|
2208
|
+
}), sn = ({
|
|
2201
2209
|
mode: e,
|
|
2202
2210
|
disabled: t,
|
|
2203
2211
|
variant: r
|
|
@@ -2227,7 +2235,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2227
2235
|
});
|
|
2228
2236
|
if (r === "selected")
|
|
2229
2237
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2230
|
-
},
|
|
2238
|
+
}, cn = ({
|
|
2231
2239
|
mode: e,
|
|
2232
2240
|
disabled: t,
|
|
2233
2241
|
variant: r
|
|
@@ -2257,7 +2265,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2257
2265
|
});
|
|
2258
2266
|
if (r === "selected")
|
|
2259
2267
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2260
|
-
},
|
|
2268
|
+
}, ln = ({
|
|
2261
2269
|
mode: e,
|
|
2262
2270
|
noBorder: t,
|
|
2263
2271
|
variant: r
|
|
@@ -2287,14 +2295,14 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2287
2295
|
});
|
|
2288
2296
|
if (r === "selected")
|
|
2289
2297
|
return "border border-border-selected-dark";
|
|
2290
|
-
},
|
|
2298
|
+
}, dn = ({
|
|
2291
2299
|
focusMode: e
|
|
2292
2300
|
}) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2293
2301
|
"focus:outline-focus-dark": e === "dark",
|
|
2294
2302
|
"focus:outline-focus-light": e === "light",
|
|
2295
2303
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
2296
2304
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
2297
|
-
}),
|
|
2305
|
+
}), un = ({
|
|
2298
2306
|
mode: e,
|
|
2299
2307
|
raw: t,
|
|
2300
2308
|
iconClassName: r
|
|
@@ -2306,7 +2314,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2306
2314
|
"dark:text-copy-accent-dark": e === "system"
|
|
2307
2315
|
},
|
|
2308
2316
|
r
|
|
2309
|
-
),
|
|
2317
|
+
), mn = ({
|
|
2310
2318
|
animated: e
|
|
2311
2319
|
}) => p({
|
|
2312
2320
|
"transition-opacity duration-300 ease-in": e
|
|
@@ -2327,39 +2335,39 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2327
2335
|
noTruncate: m,
|
|
2328
2336
|
align: y,
|
|
2329
2337
|
radius: w,
|
|
2330
|
-
animated:
|
|
2338
|
+
animated: T
|
|
2331
2339
|
}) => (c || (c = "primary"), r ? p(Et, t) : p(
|
|
2332
2340
|
Et,
|
|
2333
|
-
|
|
2341
|
+
an({
|
|
2334
2342
|
mode: a,
|
|
2335
2343
|
variant: c,
|
|
2336
2344
|
noBackground: u,
|
|
2337
2345
|
noTruncate: m
|
|
2338
2346
|
}),
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2347
|
+
nn({ mode: a, noBackground: u, variant: c }),
|
|
2348
|
+
on({ radius: w }),
|
|
2349
|
+
tn({
|
|
2342
2350
|
type: e,
|
|
2343
2351
|
size: i,
|
|
2344
2352
|
labelRight: h,
|
|
2345
2353
|
labelLeft: f,
|
|
2346
2354
|
align: y,
|
|
2347
|
-
animated:
|
|
2355
|
+
animated: T
|
|
2348
2356
|
}),
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
on({ mode: a, variant: c, disabled: o }),
|
|
2357
|
+
rn({ type: e, size: i, labelRight: h, labelLeft: f }),
|
|
2358
|
+
ln({ mode: a, variant: c, noBorder: d }),
|
|
2359
|
+
dn({ focusMode: n }),
|
|
2353
2360
|
sn({ mode: a, variant: c, disabled: o }),
|
|
2361
|
+
cn({ mode: a, variant: c, disabled: o }),
|
|
2354
2362
|
{
|
|
2355
2363
|
"w-full": s,
|
|
2356
2364
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
2357
2365
|
},
|
|
2358
2366
|
p({
|
|
2359
|
-
"transition-[width] duration-300 ease-in-out": e === Ke &&
|
|
2367
|
+
"transition-[width] duration-300 ease-in-out": e === Ke && T
|
|
2360
2368
|
}),
|
|
2361
2369
|
t
|
|
2362
|
-
)),
|
|
2370
|
+
)), hn = (e, t, r) => {
|
|
2363
2371
|
var a;
|
|
2364
2372
|
!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);
|
|
2365
2373
|
}, nt = X.forwardRef((e, t) => {
|
|
@@ -2369,7 +2377,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
|
|
|
2369
2377
|
{
|
|
2370
2378
|
ref: t,
|
|
2371
2379
|
onClick: (o) => {
|
|
2372
|
-
|
|
2380
|
+
hn(o, a, r);
|
|
2373
2381
|
},
|
|
2374
2382
|
...n
|
|
2375
2383
|
}
|
|
@@ -2419,13 +2427,13 @@ const Qt = X.forwardRef(
|
|
|
2419
2427
|
}
|
|
2420
2428
|
);
|
|
2421
2429
|
Qt.displayName = "Button";
|
|
2422
|
-
function
|
|
2430
|
+
function pn() {
|
|
2423
2431
|
const e = x(!1);
|
|
2424
2432
|
return Y(() => (e.current = !0, () => {
|
|
2425
2433
|
e.current = !1;
|
|
2426
2434
|
}), []), q(() => e.current, []);
|
|
2427
2435
|
}
|
|
2428
|
-
function
|
|
2436
|
+
function fn(e) {
|
|
2429
2437
|
return Le(() => e.every((t) => t == null) ? () => {
|
|
2430
2438
|
} : (t) => {
|
|
2431
2439
|
e.forEach((r) => {
|
|
@@ -2433,7 +2441,7 @@ function pn(e) {
|
|
|
2433
2441
|
});
|
|
2434
2442
|
}, e);
|
|
2435
2443
|
}
|
|
2436
|
-
const
|
|
2444
|
+
const gn = {
|
|
2437
2445
|
x: 0,
|
|
2438
2446
|
y: 0,
|
|
2439
2447
|
width: 0,
|
|
@@ -2444,7 +2452,7 @@ const fn = {
|
|
|
2444
2452
|
right: 0
|
|
2445
2453
|
};
|
|
2446
2454
|
function je(e) {
|
|
2447
|
-
const t =
|
|
2455
|
+
const t = pn(), r = x(0), a = x(null), [n, o] = z(gn), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
2448
2456
|
const d = i[0];
|
|
2449
2457
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
2450
2458
|
a.current && t() && o(d.contentRect);
|
|
@@ -2454,21 +2462,21 @@ function je(e) {
|
|
|
2454
2462
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
2455
2463
|
}), [s, e]), [a, n];
|
|
2456
2464
|
}
|
|
2457
|
-
const
|
|
2465
|
+
const yn = {
|
|
2458
2466
|
small: 24,
|
|
2459
2467
|
// w-6
|
|
2460
2468
|
medium: 32,
|
|
2461
2469
|
// w-8
|
|
2462
2470
|
large: 48
|
|
2463
2471
|
// w-12
|
|
2464
|
-
},
|
|
2472
|
+
}, bn = {
|
|
2465
2473
|
small: 8 * 2,
|
|
2466
2474
|
// px-2 x 2
|
|
2467
2475
|
medium: 12 * 2,
|
|
2468
2476
|
// px-3 x 2
|
|
2469
2477
|
large: 16 * 2
|
|
2470
2478
|
// px-4 x 2
|
|
2471
|
-
},
|
|
2479
|
+
}, En = 2, Pe = X.forwardRef(
|
|
2472
2480
|
({
|
|
2473
2481
|
children: e,
|
|
2474
2482
|
disabled: t = !1,
|
|
@@ -2486,13 +2494,13 @@ const gn = {
|
|
|
2486
2494
|
labelLeft: m,
|
|
2487
2495
|
noBackground: y = !1,
|
|
2488
2496
|
align: w = "center",
|
|
2489
|
-
radius:
|
|
2497
|
+
radius: T = "large",
|
|
2490
2498
|
variant: k = "primary",
|
|
2491
2499
|
iconClassName: Q,
|
|
2492
2500
|
animated: L = !1,
|
|
2493
2501
|
...Z
|
|
2494
2502
|
}, $) => {
|
|
2495
|
-
const
|
|
2503
|
+
const B = Xt({
|
|
2496
2504
|
type: Ke,
|
|
2497
2505
|
mode: r,
|
|
2498
2506
|
focusMode: a,
|
|
@@ -2506,28 +2514,28 @@ const gn = {
|
|
|
2506
2514
|
labelLeft: m,
|
|
2507
2515
|
noBackground: y,
|
|
2508
2516
|
align: w,
|
|
2509
|
-
radius:
|
|
2517
|
+
radius: T,
|
|
2510
2518
|
variant: k,
|
|
2511
2519
|
animated: L
|
|
2512
|
-
}), U =
|
|
2520
|
+
}), U = un({ mode: r, raw: i, iconClassName: Q }), S = mn({ animated: L }), [M, K] = je(), [I, C] = je(), [O, V] = je(), g = x(0), E = x(null), b = fn([$, E]);
|
|
2513
2521
|
return Ne(() => {
|
|
2514
|
-
O && O.current && L && (g.current =
|
|
2515
|
-
}, [
|
|
2516
|
-
E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (
|
|
2522
|
+
O && O.current && L && (g.current = V.width + bn[u] + (d ? 0 : En));
|
|
2523
|
+
}, [V, O, u, d, L]), Ne(() => {
|
|
2524
|
+
E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (M.current && (M.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${yn[u]}px`));
|
|
2517
2525
|
}, [
|
|
2518
2526
|
K,
|
|
2519
2527
|
c,
|
|
2520
2528
|
M,
|
|
2521
2529
|
C,
|
|
2522
2530
|
m,
|
|
2523
|
-
|
|
2531
|
+
I,
|
|
2524
2532
|
u,
|
|
2525
2533
|
L
|
|
2526
2534
|
]), /* @__PURE__ */ D(
|
|
2527
2535
|
nt,
|
|
2528
2536
|
{
|
|
2529
2537
|
ref: b,
|
|
2530
|
-
className:
|
|
2538
|
+
className: B,
|
|
2531
2539
|
disabled: t,
|
|
2532
2540
|
type: s,
|
|
2533
2541
|
"aria-label": h || f,
|
|
@@ -2537,7 +2545,7 @@ const gn = {
|
|
|
2537
2545
|
wt,
|
|
2538
2546
|
{
|
|
2539
2547
|
label: m,
|
|
2540
|
-
labelRef:
|
|
2548
|
+
labelRef: I,
|
|
2541
2549
|
labelClass: S,
|
|
2542
2550
|
labelInnerClass: "pr-2"
|
|
2543
2551
|
}
|
|
@@ -2576,7 +2584,7 @@ try {
|
|
|
2576
2584
|
});
|
|
2577
2585
|
} catch {
|
|
2578
2586
|
}
|
|
2579
|
-
const
|
|
2587
|
+
const wn = X.forwardRef(
|
|
2580
2588
|
({
|
|
2581
2589
|
children: e,
|
|
2582
2590
|
mode: t = "system",
|
|
@@ -2614,7 +2622,7 @@ const En = X.forwardRef(
|
|
|
2614
2622
|
) });
|
|
2615
2623
|
}
|
|
2616
2624
|
);
|
|
2617
|
-
|
|
2625
|
+
wn.displayName = "ButtonSort";
|
|
2618
2626
|
/*!
|
|
2619
2627
|
@versini/ui-card v3.0.13
|
|
2620
2628
|
© 2025 gizmette.com
|
|
@@ -2629,7 +2637,7 @@ try {
|
|
|
2629
2637
|
} catch {
|
|
2630
2638
|
}
|
|
2631
2639
|
const Ae = "av-card";
|
|
2632
|
-
function
|
|
2640
|
+
function Tn(e) {
|
|
2633
2641
|
const t = _t();
|
|
2634
2642
|
return `${e}${t}`;
|
|
2635
2643
|
}
|
|
@@ -2673,7 +2681,7 @@ const In = ({
|
|
|
2673
2681
|
footer: f
|
|
2674
2682
|
};
|
|
2675
2683
|
};
|
|
2676
|
-
function
|
|
2684
|
+
function Sn({
|
|
2677
2685
|
id: e,
|
|
2678
2686
|
content: t,
|
|
2679
2687
|
userAriaLabelledby: r,
|
|
@@ -2681,7 +2689,7 @@ function Tn({
|
|
|
2681
2689
|
}) {
|
|
2682
2690
|
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;
|
|
2683
2691
|
}
|
|
2684
|
-
const
|
|
2692
|
+
const _n = ({
|
|
2685
2693
|
header: e,
|
|
2686
2694
|
headerClassName: t,
|
|
2687
2695
|
footer: r,
|
|
@@ -2696,7 +2704,7 @@ const Sn = ({
|
|
|
2696
2704
|
...u
|
|
2697
2705
|
}) => {
|
|
2698
2706
|
let c = null, m = null;
|
|
2699
|
-
const y = typeof e == "string", w =
|
|
2707
|
+
const y = typeof e == "string", w = Tn(Ae), T = In({
|
|
2700
2708
|
className: o,
|
|
2701
2709
|
headerClassName: t,
|
|
2702
2710
|
bodyClassName: s,
|
|
@@ -2705,26 +2713,26 @@ const Sn = ({
|
|
|
2705
2713
|
compact: h,
|
|
2706
2714
|
noBorder: f
|
|
2707
2715
|
});
|
|
2708
|
-
return y ? (c = w, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = w, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className:
|
|
2716
|
+
return y ? (c = w, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = w, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: T.wrapper, children: /* @__PURE__ */ D(
|
|
2709
2717
|
"section",
|
|
2710
2718
|
{
|
|
2711
2719
|
...m && {
|
|
2712
2720
|
"aria-labelledby": m
|
|
2713
2721
|
},
|
|
2714
|
-
className:
|
|
2722
|
+
className: T.body,
|
|
2715
2723
|
...u,
|
|
2716
2724
|
children: [
|
|
2717
2725
|
/* @__PURE__ */ l(
|
|
2718
|
-
|
|
2726
|
+
Sn,
|
|
2719
2727
|
{
|
|
2720
2728
|
...c && { id: c },
|
|
2721
2729
|
content: e,
|
|
2722
|
-
className:
|
|
2730
|
+
className: T.header,
|
|
2723
2731
|
userAriaLabelledby: i
|
|
2724
2732
|
}
|
|
2725
2733
|
),
|
|
2726
2734
|
/* @__PURE__ */ l("div", { children: n }),
|
|
2727
|
-
r ? /* @__PURE__ */ l("div", { className:
|
|
2735
|
+
r ? /* @__PURE__ */ l("div", { className: T.footer, children: r }) : null
|
|
2728
2736
|
]
|
|
2729
2737
|
}
|
|
2730
2738
|
) });
|
|
@@ -2771,7 +2779,7 @@ try {
|
|
|
2771
2779
|
});
|
|
2772
2780
|
} catch {
|
|
2773
2781
|
}
|
|
2774
|
-
const
|
|
2782
|
+
const kn = ({
|
|
2775
2783
|
className: e,
|
|
2776
2784
|
viewBox: t,
|
|
2777
2785
|
title: r,
|
|
@@ -2788,7 +2796,7 @@ const _n = ({
|
|
|
2788
2796
|
...n,
|
|
2789
2797
|
children: /* @__PURE__ */ l("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
|
|
2790
2798
|
}
|
|
2791
|
-
),
|
|
2799
|
+
), An = ({
|
|
2792
2800
|
className: e,
|
|
2793
2801
|
viewBox: t,
|
|
2794
2802
|
title: r,
|
|
@@ -2814,7 +2822,7 @@ const _n = ({
|
|
|
2814
2822
|
/* @__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.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
|
|
2815
2823
|
]
|
|
2816
2824
|
}
|
|
2817
|
-
),
|
|
2825
|
+
), Rn = ({
|
|
2818
2826
|
className: e,
|
|
2819
2827
|
viewBox: t,
|
|
2820
2828
|
title: r,
|
|
@@ -2850,7 +2858,7 @@ const _n = ({
|
|
|
2850
2858
|
]
|
|
2851
2859
|
}
|
|
2852
2860
|
);
|
|
2853
|
-
},
|
|
2861
|
+
}, Nn = ({
|
|
2854
2862
|
className: e,
|
|
2855
2863
|
viewBox: t,
|
|
2856
2864
|
title: r,
|
|
@@ -2903,7 +2911,7 @@ try {
|
|
|
2903
2911
|
});
|
|
2904
2912
|
} catch {
|
|
2905
2913
|
}
|
|
2906
|
-
const
|
|
2914
|
+
const vn = "av-main", xn = ({
|
|
2907
2915
|
children: e,
|
|
2908
2916
|
className: t,
|
|
2909
2917
|
raw: r = !1,
|
|
@@ -2911,7 +2919,7 @@ const Nn = "av-main", vn = ({
|
|
|
2911
2919
|
noPadding: n = !1
|
|
2912
2920
|
}) => {
|
|
2913
2921
|
const o = p(
|
|
2914
|
-
|
|
2922
|
+
vn,
|
|
2915
2923
|
{
|
|
2916
2924
|
"mt-2 sm:mt-3": !r && !a,
|
|
2917
2925
|
"p-2": !r && !n,
|
|
@@ -2920,10 +2928,10 @@ const Nn = "av-main", vn = ({
|
|
|
2920
2928
|
t
|
|
2921
2929
|
);
|
|
2922
2930
|
return /* @__PURE__ */ l("main", { className: o, children: e });
|
|
2923
|
-
},
|
|
2931
|
+
}, Cn = "av-flexgrid", _e = "av-flexgrid-item", De = 0.25, et = X.createContext({
|
|
2924
2932
|
columnGap: 0,
|
|
2925
2933
|
rowGap: 0
|
|
2926
|
-
}),
|
|
2934
|
+
}), On = ({
|
|
2927
2935
|
children: e,
|
|
2928
2936
|
className: t,
|
|
2929
2937
|
columnGap: r = 1,
|
|
@@ -2949,7 +2957,7 @@ const Nn = "av-main", vn = ({
|
|
|
2949
2957
|
marginLeft: r * -1 * De + "rem",
|
|
2950
2958
|
marginTop: a * -1 * De + "rem"
|
|
2951
2959
|
}, u = p(
|
|
2952
|
-
|
|
2960
|
+
Cn,
|
|
2953
2961
|
"box-border flex flex-wrap"
|
|
2954
2962
|
), c = { columnGap: r, rowGap: a };
|
|
2955
2963
|
return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(et.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(et.Provider, { value: c, children: e }) });
|
|
@@ -3026,7 +3034,7 @@ const Nn = "av-main", vn = ({
|
|
|
3026
3034
|
"lg:basis-full": e === 12 && t === "lg",
|
|
3027
3035
|
"xl:basis-full": e === 12 && t === "xl",
|
|
3028
3036
|
"2xl:basis-full": e === 12 && t === "2xl"
|
|
3029
|
-
}),
|
|
3037
|
+
}), Pn = ({
|
|
3030
3038
|
className: e,
|
|
3031
3039
|
span: t
|
|
3032
3040
|
}) => {
|
|
@@ -3058,7 +3066,7 @@ const Nn = "av-main", vn = ({
|
|
|
3058
3066
|
const { columnGap: n, rowGap: o } = St(et), s = {
|
|
3059
3067
|
paddingLeft: n * De + "rem",
|
|
3060
3068
|
paddingTop: o * De + "rem"
|
|
3061
|
-
}, i =
|
|
3069
|
+
}, i = Pn({
|
|
3062
3070
|
className: t,
|
|
3063
3071
|
span: r
|
|
3064
3072
|
});
|
|
@@ -3077,14 +3085,14 @@ try {
|
|
|
3077
3085
|
});
|
|
3078
3086
|
} catch {
|
|
3079
3087
|
}
|
|
3080
|
-
const Zt = "av-text-input",
|
|
3081
|
-
function
|
|
3088
|
+
const Zt = "av-text-input", Dn = "av-text-input-wrapper", qe = "av-text-input-helper-text";
|
|
3089
|
+
function Ln() {
|
|
3082
3090
|
const e = x(!1);
|
|
3083
3091
|
return Y(() => (e.current = !0, () => {
|
|
3084
3092
|
e.current = !1;
|
|
3085
3093
|
}), []), q(() => e.current, []);
|
|
3086
3094
|
}
|
|
3087
|
-
const
|
|
3095
|
+
const $n = {
|
|
3088
3096
|
x: 0,
|
|
3089
3097
|
y: 0,
|
|
3090
3098
|
width: 0,
|
|
@@ -3094,8 +3102,8 @@ const Ln = {
|
|
|
3094
3102
|
bottom: 0,
|
|
3095
3103
|
right: 0
|
|
3096
3104
|
};
|
|
3097
|
-
function
|
|
3098
|
-
const t =
|
|
3105
|
+
function Mn(e) {
|
|
3106
|
+
const t = Ln(), r = x(0), a = x(null), [n, o] = z($n), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
3099
3107
|
const d = i[0];
|
|
3100
3108
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3101
3109
|
a.current && t() && o(d.contentRect);
|
|
@@ -3105,7 +3113,7 @@ function $n(e) {
|
|
|
3105
3113
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
3106
3114
|
}), [s, e]), [a, n];
|
|
3107
3115
|
}
|
|
3108
|
-
function
|
|
3116
|
+
function Un(e) {
|
|
3109
3117
|
const t = _t();
|
|
3110
3118
|
if (!e)
|
|
3111
3119
|
return t;
|
|
@@ -3116,7 +3124,7 @@ function Mn(e) {
|
|
|
3116
3124
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
3117
3125
|
}
|
|
3118
3126
|
}
|
|
3119
|
-
const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT",
|
|
3127
|
+
const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Kn = {
|
|
3120
3128
|
alert: null,
|
|
3121
3129
|
alertdialog: null,
|
|
3122
3130
|
log: "polite",
|
|
@@ -3124,7 +3132,7 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
|
|
|
3124
3132
|
progressbar: null,
|
|
3125
3133
|
status: "polite",
|
|
3126
3134
|
timer: "assertive"
|
|
3127
|
-
},
|
|
3135
|
+
}, Hn = (e, t) => {
|
|
3128
3136
|
switch (t == null ? void 0 : t.type) {
|
|
3129
3137
|
case er:
|
|
3130
3138
|
return {
|
|
@@ -3139,14 +3147,14 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
|
|
|
3139
3147
|
default:
|
|
3140
3148
|
return e;
|
|
3141
3149
|
}
|
|
3142
|
-
},
|
|
3150
|
+
}, Wn = ({
|
|
3143
3151
|
onAnnouncementClear: e,
|
|
3144
3152
|
dispatch: t
|
|
3145
3153
|
}) => {
|
|
3146
3154
|
t({
|
|
3147
3155
|
type: tr
|
|
3148
3156
|
}), typeof e == "function" && e();
|
|
3149
|
-
},
|
|
3157
|
+
}, Tt = ({
|
|
3150
3158
|
children: e,
|
|
3151
3159
|
clearAnnouncementDelay: t,
|
|
3152
3160
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -3157,13 +3165,13 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
|
|
|
3157
3165
|
type: er,
|
|
3158
3166
|
payload: e
|
|
3159
3167
|
}), t && (r.current = setTimeout(
|
|
3160
|
-
() =>
|
|
3168
|
+
() => Wn({
|
|
3161
3169
|
onAnnouncementClear: a,
|
|
3162
3170
|
dispatch: n
|
|
3163
3171
|
}),
|
|
3164
3172
|
t
|
|
3165
3173
|
));
|
|
3166
|
-
},
|
|
3174
|
+
}, Bn = ({
|
|
3167
3175
|
children: e,
|
|
3168
3176
|
announcementTimeoutRef: t,
|
|
3169
3177
|
announcementDelay: r,
|
|
@@ -3172,13 +3180,13 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
|
|
|
3172
3180
|
onAnnouncementClear: o,
|
|
3173
3181
|
dispatch: s
|
|
3174
3182
|
}) => {
|
|
3175
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
3183
|
+
clearTimeout(t.current), r ? t.current = setTimeout(Tt, r, {
|
|
3176
3184
|
children: e,
|
|
3177
3185
|
clearAnnouncementDelay: a,
|
|
3178
3186
|
clearAnnouncementTimeoutRef: n,
|
|
3179
3187
|
onAnnouncementClear: o,
|
|
3180
3188
|
dispatch: s
|
|
3181
|
-
}) :
|
|
3189
|
+
}) : Tt({
|
|
3182
3190
|
children: e,
|
|
3183
3191
|
clearAnnouncementDelay: a,
|
|
3184
3192
|
clearAnnouncementTimeoutRef: n,
|
|
@@ -3197,12 +3205,12 @@ function rr({
|
|
|
3197
3205
|
visible: i,
|
|
3198
3206
|
...d
|
|
3199
3207
|
}) {
|
|
3200
|
-
const h = x(null), f = x(null), [u, c] =
|
|
3208
|
+
const h = x(null), f = x(null), [u, c] = It(Hn, {
|
|
3201
3209
|
announcement: null
|
|
3202
3210
|
});
|
|
3203
3211
|
let m = r;
|
|
3204
|
-
typeof m > "u" && (m = a ?
|
|
3205
|
-
|
|
3212
|
+
typeof m > "u" && (m = a ? Kn[a] : "assertive"), Y(() => {
|
|
3213
|
+
Bn({
|
|
3206
3214
|
announcementTimeoutRef: h,
|
|
3207
3215
|
announcementDelay: n,
|
|
3208
3216
|
children: e,
|
|
@@ -3251,14 +3259,14 @@ const Vn = ({
|
|
|
3251
3259
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
3252
3260
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
3253
3261
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
3254
|
-
}),
|
|
3262
|
+
}), Jn = ({
|
|
3255
3263
|
focusMode: e
|
|
3256
3264
|
}) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
3257
3265
|
"focus:outline-focus-dark": e === "dark",
|
|
3258
3266
|
"focus:outline-focus-light": e === "light",
|
|
3259
3267
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
3260
3268
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
3261
|
-
}),
|
|
3269
|
+
}), Gn = ({
|
|
3262
3270
|
noBorder: e,
|
|
3263
3271
|
error: t
|
|
3264
3272
|
}) => p("border-2", {
|
|
@@ -3266,7 +3274,7 @@ const Vn = ({
|
|
|
3266
3274
|
"focus:border-border-dark": !e && t,
|
|
3267
3275
|
"border-border-error-dark": !e && t,
|
|
3268
3276
|
"border-transparent": e
|
|
3269
|
-
}),
|
|
3277
|
+
}), Yn = ({
|
|
3270
3278
|
disabled: e,
|
|
3271
3279
|
raw: t,
|
|
3272
3280
|
error: r,
|
|
@@ -3290,7 +3298,7 @@ const Vn = ({
|
|
|
3290
3298
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
|
|
3291
3299
|
"text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
|
|
3292
3300
|
});
|
|
3293
|
-
},
|
|
3301
|
+
}, Fn = ({
|
|
3294
3302
|
error: e,
|
|
3295
3303
|
raw: t,
|
|
3296
3304
|
mode: r,
|
|
@@ -3317,7 +3325,7 @@ const Vn = ({
|
|
|
3317
3325
|
"text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
|
|
3318
3326
|
"dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
|
|
3319
3327
|
});
|
|
3320
|
-
},
|
|
3328
|
+
}, jn = ({
|
|
3321
3329
|
className: e,
|
|
3322
3330
|
inputClassName: t,
|
|
3323
3331
|
raw: r,
|
|
@@ -3331,7 +3339,7 @@ const Vn = ({
|
|
|
3331
3339
|
}) => {
|
|
3332
3340
|
const f = r ? e : p(
|
|
3333
3341
|
"relative flex w-full flex-col justify-center",
|
|
3334
|
-
|
|
3342
|
+
Dn,
|
|
3335
3343
|
e
|
|
3336
3344
|
);
|
|
3337
3345
|
let u = "";
|
|
@@ -3357,30 +3365,30 @@ const Vn = ({
|
|
|
3357
3365
|
u,
|
|
3358
3366
|
"rounded-md text-base px-4",
|
|
3359
3367
|
Vn({ mode: s }),
|
|
3360
|
-
|
|
3361
|
-
|
|
3368
|
+
Jn({ focusMode: i }),
|
|
3369
|
+
Gn({ noBorder: n, error: o }),
|
|
3362
3370
|
{
|
|
3363
3371
|
"disabled:cursor-not-allowed disabled:opacity-50": a
|
|
3364
3372
|
},
|
|
3365
3373
|
t
|
|
3366
|
-
), m = r ? void 0 : "sr-only", y =
|
|
3374
|
+
), m = r ? void 0 : "sr-only", y = Yn({
|
|
3367
3375
|
disabled: a,
|
|
3368
3376
|
raw: r,
|
|
3369
3377
|
error: o,
|
|
3370
3378
|
mode: s
|
|
3371
|
-
}), w =
|
|
3379
|
+
}), w = Fn({
|
|
3372
3380
|
error: o,
|
|
3373
3381
|
raw: r,
|
|
3374
3382
|
mode: s,
|
|
3375
3383
|
disabled: a
|
|
3376
|
-
}),
|
|
3384
|
+
}), T = r ? void 0 : p("absolute right-3", h);
|
|
3377
3385
|
return {
|
|
3378
3386
|
wrapper: f,
|
|
3379
3387
|
input: c,
|
|
3380
3388
|
accessibleLabel: m,
|
|
3381
3389
|
visibleLabel: y,
|
|
3382
3390
|
helperText: w,
|
|
3383
|
-
rightElement:
|
|
3391
|
+
rightElement: T
|
|
3384
3392
|
};
|
|
3385
3393
|
}, ot = X.forwardRef(
|
|
3386
3394
|
({
|
|
@@ -3400,17 +3408,17 @@ const Vn = ({
|
|
|
3400
3408
|
type: m = "text",
|
|
3401
3409
|
helperText: y = "",
|
|
3402
3410
|
rightElement: w,
|
|
3403
|
-
rightElementClassName:
|
|
3411
|
+
rightElementClassName: T,
|
|
3404
3412
|
size: k = "md",
|
|
3405
3413
|
...Q
|
|
3406
3414
|
}, L) => {
|
|
3407
|
-
const [Z, $] =
|
|
3415
|
+
const [Z, $] = Mn(), [B, U] = z(0), S = Un({ id: e, prefix: `${Zt}-` }), M = `${t} error, ${y}`, K = x(null), I = x(null), C = {
|
|
3408
3416
|
xs: { label: "-25px", helperText: "30px" },
|
|
3409
3417
|
sm: { label: "-29px", helperText: "34px" },
|
|
3410
3418
|
md: { label: "-33px", helperText: "38px" },
|
|
3411
3419
|
lg: { label: "-15px", helperText: "22px" },
|
|
3412
3420
|
xl: { label: "-19px", helperText: "25px" }
|
|
3413
|
-
}, O =
|
|
3421
|
+
}, O = jn({
|
|
3414
3422
|
className: o,
|
|
3415
3423
|
inputClassName: s,
|
|
3416
3424
|
error: a,
|
|
@@ -3420,14 +3428,14 @@ const Vn = ({
|
|
|
3420
3428
|
noBorder: f,
|
|
3421
3429
|
mode: i,
|
|
3422
3430
|
size: k,
|
|
3423
|
-
rightElementClassName:
|
|
3431
|
+
rightElementClassName: T
|
|
3424
3432
|
});
|
|
3425
3433
|
return Ne(() => {
|
|
3426
3434
|
$ && $.width && U($.width + 18 + 10);
|
|
3427
3435
|
}, [$]), Ne(() => {
|
|
3428
|
-
var
|
|
3436
|
+
var V, g;
|
|
3429
3437
|
const { label: E, helperText: b } = C[k];
|
|
3430
|
-
(
|
|
3438
|
+
(V = K == null ? void 0 : K.current) == null || V.style.setProperty("--av-text-input-label", E), (g = I == null ? void 0 : I.current) == null || g.style.setProperty(
|
|
3431
3439
|
"--av-text-input-helper-text",
|
|
3432
3440
|
b
|
|
3433
3441
|
);
|
|
@@ -3453,7 +3461,7 @@ const Vn = ({
|
|
|
3453
3461
|
className: O.input,
|
|
3454
3462
|
...y && { "aria-describedby": `${S}-helper` },
|
|
3455
3463
|
...a && { "aria-invalid": "true" },
|
|
3456
|
-
...w && !n && { style: { paddingRight:
|
|
3464
|
+
...w && !n && { style: { paddingRight: B } },
|
|
3457
3465
|
...Q
|
|
3458
3466
|
}
|
|
3459
3467
|
),
|
|
@@ -3470,7 +3478,7 @@ const Vn = ({
|
|
|
3470
3478
|
y && /* @__PURE__ */ l(
|
|
3471
3479
|
"div",
|
|
3472
3480
|
{
|
|
3473
|
-
ref:
|
|
3481
|
+
ref: I,
|
|
3474
3482
|
id: `${S}-helper`,
|
|
3475
3483
|
className: O.helperText,
|
|
3476
3484
|
children: y
|
|
@@ -3489,7 +3497,7 @@ const Vn = ({
|
|
|
3489
3497
|
}
|
|
3490
3498
|
);
|
|
3491
3499
|
ot.displayName = "TextInput";
|
|
3492
|
-
function
|
|
3500
|
+
function zn(e) {
|
|
3493
3501
|
return Le(() => e.every((t) => t == null) ? () => {
|
|
3494
3502
|
} : (t) => {
|
|
3495
3503
|
e.forEach((r) => {
|
|
@@ -3497,7 +3505,7 @@ function jn(e) {
|
|
|
3497
3505
|
});
|
|
3498
3506
|
}, e);
|
|
3499
3507
|
}
|
|
3500
|
-
const
|
|
3508
|
+
const qn = 500, Xn = 5e3, Qn = 2e4, ar = X.forwardRef(
|
|
3501
3509
|
({
|
|
3502
3510
|
name: e,
|
|
3503
3511
|
disabled: t,
|
|
@@ -3514,32 +3522,32 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
|
|
|
3514
3522
|
const [c, m] = z(!0), [y, w] = z({
|
|
3515
3523
|
message: null,
|
|
3516
3524
|
politeness: null
|
|
3517
|
-
}),
|
|
3518
|
-
k.current && clearTimeout(k.current),
|
|
3519
|
-
|
|
3520
|
-
announcementTimeout:
|
|
3525
|
+
}), T = x(!0), k = x(null), Q = x(null), L = zn([u, Q]), Z = c ? "Show" : "Hide", $ = () => {
|
|
3526
|
+
k.current && clearTimeout(k.current), T.current || (k.current = setTimeout(() => {
|
|
3527
|
+
T.current = !0, m(!0), w({
|
|
3528
|
+
announcementTimeout: Xn,
|
|
3521
3529
|
politeness: "polite",
|
|
3522
3530
|
message: `${r} hiding characters`
|
|
3523
3531
|
}), n && n(!0);
|
|
3524
|
-
},
|
|
3525
|
-
},
|
|
3526
|
-
|
|
3527
|
-
const C = !
|
|
3528
|
-
|
|
3529
|
-
announcementTimeout:
|
|
3532
|
+
}, Qn));
|
|
3533
|
+
}, B = (I) => {
|
|
3534
|
+
I.preventDefault();
|
|
3535
|
+
const C = !T.current;
|
|
3536
|
+
T.current = C, $(), m(C), w({
|
|
3537
|
+
announcementTimeout: qn,
|
|
3530
3538
|
politeness: "assertive",
|
|
3531
3539
|
message: C ? "Characters hidden" : "Characters showing"
|
|
3532
3540
|
}), n && n(C);
|
|
3533
|
-
}, U = (
|
|
3541
|
+
}, U = (I) => {
|
|
3534
3542
|
var C;
|
|
3535
|
-
const { relatedTarget: O } =
|
|
3536
|
-
|
|
3537
|
-
}, S = (
|
|
3538
|
-
$(), s && s(
|
|
3539
|
-
}, M = (
|
|
3540
|
-
$(), i && i(
|
|
3541
|
-
}, K = (
|
|
3542
|
-
$(), o && o(
|
|
3543
|
+
const { relatedTarget: O } = I, V = (C = Q.current) == null ? void 0 : C.parentElement;
|
|
3544
|
+
V != null && V.contains(O) || d && d();
|
|
3545
|
+
}, S = (I) => {
|
|
3546
|
+
$(), s && s(I), U(I);
|
|
3547
|
+
}, M = (I) => {
|
|
3548
|
+
$(), i && i(I);
|
|
3549
|
+
}, K = (I) => {
|
|
3550
|
+
$(), o && o(I);
|
|
3543
3551
|
};
|
|
3544
3552
|
return Y(() => () => {
|
|
3545
3553
|
k.current && clearTimeout(k.current);
|
|
@@ -3559,7 +3567,7 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
|
|
|
3559
3567
|
rightElement: X.cloneElement(h, {
|
|
3560
3568
|
ref: u,
|
|
3561
3569
|
label: Z,
|
|
3562
|
-
onClick:
|
|
3570
|
+
onClick: B,
|
|
3563
3571
|
onBlur: U,
|
|
3564
3572
|
disabled: t
|
|
3565
3573
|
}),
|
|
@@ -3592,7 +3600,7 @@ try {
|
|
|
3592
3600
|
});
|
|
3593
3601
|
} catch {
|
|
3594
3602
|
}
|
|
3595
|
-
const
|
|
3603
|
+
const Zn = "ASK! ME! ANYTHING!", nr = "Callisto", eo = "Log in", to = "Sign in with a Passkey", Xo = "Log out", ro = "Password", Qo = "Profile", Zo = "Settings", es = "Chat history", ts = "About", rs = "Type your question here", as = "{{clipboard}}", ns = `Sometimes, ${nr} hallucinates. Review important details.`, os = "Prompts are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder {{clipboard}} to automatically insert the content of your clipboard.", ss = {
|
|
3596
3604
|
PREFERENCES: {
|
|
3597
3605
|
TITLE: "User profile",
|
|
3598
3606
|
NAME: "Name",
|
|
@@ -3625,16 +3633,20 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3625
3633
|
PROVIDER: "AI model",
|
|
3626
3634
|
PLUGIN: "Plugin"
|
|
3627
3635
|
},
|
|
3628
|
-
|
|
3629
|
-
TITLE: "
|
|
3636
|
+
SETTINGS_PROMPTS: {
|
|
3637
|
+
TITLE: "Prompts"
|
|
3638
|
+
},
|
|
3639
|
+
SETTINGS_DETAILS: {
|
|
3640
|
+
TITLE: "Chat Details",
|
|
3641
|
+
INSTRUCTION: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more."
|
|
3630
3642
|
}
|
|
3631
|
-
},
|
|
3632
|
-
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(
|
|
3643
|
+
}, ao = () => /* @__PURE__ */ D("div", { className: "flex items-center justify-center", children: [
|
|
3644
|
+
/* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(kn, {}) }),
|
|
3633
3645
|
/* @__PURE__ */ D("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
|
|
3634
3646
|
/* @__PURE__ */ l("h1", { children: nr }),
|
|
3635
|
-
/* @__PURE__ */ l("h2", { children:
|
|
3647
|
+
/* @__PURE__ */ l("h2", { children: Zn })
|
|
3636
3648
|
] })
|
|
3637
|
-
] }),
|
|
3649
|
+
] }), no = () => {
|
|
3638
3650
|
const { login: e, logoutReason: t, loginWithPasskey: r } = qt(), [a, n] = z(""), [o, s] = z(""), [i, d] = z(!0), [h, f] = z({
|
|
3639
3651
|
username: "",
|
|
3640
3652
|
password: ""
|
|
@@ -3650,7 +3662,7 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3650
3662
|
}), Y(() => {
|
|
3651
3663
|
t && s(t);
|
|
3652
3664
|
}, [t]), /* @__PURE__ */ l(Re, { children: /* @__PURE__ */ D(
|
|
3653
|
-
|
|
3665
|
+
xn,
|
|
3654
3666
|
{
|
|
3655
3667
|
className: Qa({
|
|
3656
3668
|
extraClass: "mt-5"
|
|
@@ -3664,10 +3676,10 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3664
3676
|
className: Xa({
|
|
3665
3677
|
extraClass: "rounded-md"
|
|
3666
3678
|
}),
|
|
3667
|
-
children: /* @__PURE__ */ l(
|
|
3679
|
+
children: /* @__PURE__ */ l(ao, {})
|
|
3668
3680
|
}
|
|
3669
3681
|
),
|
|
3670
|
-
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(
|
|
3682
|
+
/* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(On, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ D(_n, { mode: "dark", children: [
|
|
3671
3683
|
/* @__PURE__ */ l(re, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
|
|
3672
3684
|
/* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
|
|
3673
3685
|
ot,
|
|
@@ -3701,14 +3713,14 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3701
3713
|
mode: "dark",
|
|
3702
3714
|
focusMode: "light",
|
|
3703
3715
|
name: "password",
|
|
3704
|
-
label:
|
|
3716
|
+
label: ro,
|
|
3705
3717
|
rightElement: /* @__PURE__ */ l(
|
|
3706
3718
|
Pe,
|
|
3707
3719
|
{
|
|
3708
3720
|
focusMode: "light",
|
|
3709
3721
|
mode: "dark",
|
|
3710
3722
|
label: i ? "Show" : "Hide",
|
|
3711
|
-
children: i ? /* @__PURE__ */ l(
|
|
3723
|
+
children: i ? /* @__PURE__ */ l(Nn, {}) : /* @__PURE__ */ l(An, {})
|
|
3712
3724
|
}
|
|
3713
3725
|
),
|
|
3714
3726
|
onMaskChange: d,
|
|
@@ -3731,7 +3743,7 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3731
3743
|
noBorder: !0,
|
|
3732
3744
|
type: "submit",
|
|
3733
3745
|
className: "mt-7",
|
|
3734
|
-
children:
|
|
3746
|
+
children: eo
|
|
3735
3747
|
}
|
|
3736
3748
|
) }),
|
|
3737
3749
|
!Za() && /* @__PURE__ */ D(Re, { children: [
|
|
@@ -3744,9 +3756,9 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3744
3756
|
focusMode: "light",
|
|
3745
3757
|
fullWidth: !0,
|
|
3746
3758
|
className: "mb-4",
|
|
3747
|
-
labelRight:
|
|
3759
|
+
labelRight: to,
|
|
3748
3760
|
onClick: r,
|
|
3749
|
-
children: /* @__PURE__ */ l(
|
|
3761
|
+
children: /* @__PURE__ */ l(Rn, { size: "size-7" })
|
|
3750
3762
|
}
|
|
3751
3763
|
) })
|
|
3752
3764
|
] })
|
|
@@ -3754,71 +3766,74 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
|
|
|
3754
3766
|
]
|
|
3755
3767
|
}
|
|
3756
3768
|
) });
|
|
3757
|
-
},
|
|
3769
|
+
}, oo = new URL(document.location.href).searchParams, so = !!oo.get("debug") || !1, io = cr(() => import(
|
|
3758
3770
|
/* webpackChunkName: "LazyApp" */
|
|
3759
|
-
"./App.
|
|
3760
|
-
).then((e) => e.App)),
|
|
3771
|
+
"./App.B8bK5ZIi.js"
|
|
3772
|
+
).then((e) => e.App)), co = ({ isComponent: e }) => {
|
|
3761
3773
|
const { isAuthenticated: t } = qt();
|
|
3762
|
-
return t ? /* @__PURE__ */ l(lr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(
|
|
3763
|
-
},
|
|
3774
|
+
return t ? /* @__PURE__ */ l(lr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(io, { isComponent: e }) }) : /* @__PURE__ */ l(no, {});
|
|
3775
|
+
}, lo = ({
|
|
3764
3776
|
isComponent: e = !1,
|
|
3765
3777
|
domain: t = qa
|
|
3766
|
-
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug:
|
|
3778
|
+
}) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: so, children: /* @__PURE__ */ l(co, { isComponent: e }) }), is = ({ domain: e }) => /* @__PURE__ */ l(lo, { isComponent: !0, domain: e });
|
|
3767
3779
|
export {
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3780
|
+
ts as ABOUT_TITLE,
|
|
3781
|
+
Oo as ACTION_RESET_PROMPT,
|
|
3782
|
+
vo as ACTION_SEARCH,
|
|
3783
|
+
xo as ACTION_SORT,
|
|
3784
|
+
Co as ACTION_TOGGLE_PROMPT,
|
|
3773
3785
|
nr as APP_NAME,
|
|
3774
3786
|
Qt as C,
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3787
|
+
ss as CARDS,
|
|
3788
|
+
as as CLIPBOARD_PROMPT,
|
|
3789
|
+
Ao as DEFAULT_AI_PROVIDER,
|
|
3778
3790
|
Vo as DEFAULT_ICON_ACTION_SIZE,
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3791
|
+
ko as ERROR_MESSAGE,
|
|
3792
|
+
ns as FOOTER_DISCLAIMER,
|
|
3793
|
+
es as HISTORY_TITLE,
|
|
3794
|
+
Ho as INFINITE_SCROLL_LIMIT,
|
|
3795
|
+
Ko as INFINITE_SCROLL_THRESHOLD,
|
|
3796
|
+
On as L,
|
|
3797
|
+
Do as LOCAL_STORAGE_CHAT_DETAILS,
|
|
3798
|
+
Po as LOCAL_STORAGE_PREFIX,
|
|
3799
|
+
Mo as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
|
|
3800
|
+
Lo as LOCAL_STORAGE_SEARCH,
|
|
3801
|
+
$o as LOCAL_STORAGE_SORT,
|
|
3802
|
+
Xo as LOG_OUT,
|
|
3803
|
+
ao as Logo,
|
|
3792
3804
|
me as M,
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3805
|
+
Qo as PROFILE_TITLE,
|
|
3806
|
+
os as PROMPTS_DESCRIPTION,
|
|
3807
|
+
Wo as PROMPT_CLASSNAME,
|
|
3808
|
+
Bo as PROMPT_EDITABLE_AREA_CLASSNAME,
|
|
3809
|
+
No as PROVIDER_ANTHROPIC,
|
|
3810
|
+
Ro as PROVIDER_OPENAI,
|
|
3811
|
+
_n as R,
|
|
3812
|
+
To as ROLE_ASSISTANT,
|
|
3813
|
+
_o as ROLE_HIDDEN,
|
|
3814
|
+
So as ROLE_INTERNAL,
|
|
3803
3815
|
Io as ROLE_SYSTEM,
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3816
|
+
wo as ROLE_USER,
|
|
3817
|
+
Zo as SETTINGS_TITLE,
|
|
3818
|
+
Uo as STATS_SEPARATOR,
|
|
3819
|
+
is as SassySaint,
|
|
3820
|
+
rs as TYPE_QUESTION,
|
|
3821
|
+
zo as debounce,
|
|
3822
|
+
Fo as durationFormatter,
|
|
3811
3823
|
He as f,
|
|
3812
3824
|
ot as fe,
|
|
3813
|
-
|
|
3825
|
+
Jo as getCurrentGeoLocation,
|
|
3814
3826
|
Qa as getMainPaddingClass,
|
|
3815
3827
|
Xa as getMessageContaintWrapperClass,
|
|
3816
3828
|
Za as isElectron,
|
|
3829
|
+
en as isProbablyMobile,
|
|
3830
|
+
qo as isProbablyiPhone,
|
|
3817
3831
|
re as j,
|
|
3818
|
-
|
|
3819
|
-
Yo as
|
|
3820
|
-
|
|
3832
|
+
Rn as l,
|
|
3833
|
+
Yo as numberFormatter,
|
|
3834
|
+
jo as pluralize,
|
|
3835
|
+
xn as r,
|
|
3821
3836
|
Pe as re,
|
|
3822
|
-
|
|
3837
|
+
Go as renderDataAsList,
|
|
3823
3838
|
qt as un
|
|
3824
3839
|
};
|