@versini/sassysaint 1.0.12 → 1.0.13

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as S, Fragment as me } from "react/jsx-runtime";
2
- import W, { createContext as br, useReducer as vt, useRef as L, useCallback as q, useEffect as V, useContext as St, useSyncExternalStore as wr, useId as It, useMemo as At, useState as j, useLayoutEffect as Er, lazy as kt, Suspense as _t } from "react";
2
+ import W, { createContext as br, useReducer as vt, useRef as M, useCallback as q, useEffect as V, useContext as St, useSyncExternalStore as wr, useId as It, useMemo as At, useState as j, useLayoutEffect as Er, lazy as kt, Suspense as _t } from "react";
3
3
  import f from "clsx";
4
4
  var Tr = Object.defineProperty, vr = (e, t, r) => t in e ? Tr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t, r) => vr(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
@@ -15,7 +15,7 @@ try {
15
15
  });
16
16
  } catch {
17
17
  }
18
- function M(e) {
18
+ function L(e) {
19
19
  const t = new Uint8Array(e);
20
20
  let r = "";
21
21
  for (const n of t)
@@ -141,8 +141,8 @@ class Ir {
141
141
  }
142
142
  }
143
143
  }
144
- const Ct = new Ir(), Ar = ["cross-platform", "platform"];
145
- function xt(e) {
144
+ const xt = new Ir(), Ar = ["cross-platform", "platform"];
145
+ function Ct(e) {
146
146
  if (e && !(Ar.indexOf(e) < 0))
147
147
  return e;
148
148
  }
@@ -159,7 +159,7 @@ async function kr(e) {
159
159
  },
160
160
  excludeCredentials: (h = e.excludeCredentials) == null ? void 0 : h.map(Rt)
161
161
  } };
162
- t.signal = Ct.createNewAbortSignal();
162
+ t.signal = xt.createNewAbortSignal();
163
163
  let r;
164
164
  try {
165
165
  r = await navigator.credentials.create(t);
@@ -182,23 +182,23 @@ async function kr(e) {
182
182
  if (typeof o.getPublicKey == "function")
183
183
  try {
184
184
  const u = o.getPublicKey();
185
- u !== null && (g = M(u));
185
+ u !== null && (g = L(u));
186
186
  } catch (u) {
187
187
  Ge("getPublicKey()", u);
188
188
  }
189
189
  let p;
190
190
  if (typeof o.getAuthenticatorData == "function")
191
191
  try {
192
- p = M(o.getAuthenticatorData());
192
+ p = L(o.getAuthenticatorData());
193
193
  } catch (u) {
194
194
  Ge("getAuthenticatorData()", u);
195
195
  }
196
196
  return {
197
197
  id: n,
198
- rawId: M(a),
198
+ rawId: L(a),
199
199
  response: {
200
- attestationObject: M(o.attestationObject),
201
- clientDataJSON: M(o.clientDataJSON),
200
+ attestationObject: L(o.attestationObject),
201
+ clientDataJSON: L(o.clientDataJSON),
202
202
  transports: i,
203
203
  publicKeyAlgorithm: d,
204
204
  publicKey: g,
@@ -206,7 +206,7 @@ async function kr(e) {
206
206
  },
207
207
  type: s,
208
208
  clientExtensionResults: r.getClientExtensionResults(),
209
- authenticatorAttachment: xt(r.authenticatorAttachment)
209
+ authenticatorAttachment: Ct(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
212
  function Ge(e, t) {
@@ -278,7 +278,7 @@ async function Nr(e, t = !1) {
278
278
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
279
279
  a.mediation = "conditional", n.allowCredentials = [];
280
280
  }
281
- a.publicKey = n, a.signal = Ct.createNewAbortSignal();
281
+ a.publicKey = n, a.signal = xt.createNewAbortSignal();
282
282
  let o;
283
283
  try {
284
284
  o = await navigator.credentials.get(a);
@@ -289,18 +289,18 @@ async function Nr(e, t = !1) {
289
289
  throw new Error("Authentication was not completed");
290
290
  const { id: s, rawId: i, response: d, type: g } = o;
291
291
  let p;
292
- return d.userHandle && (p = M(d.userHandle)), {
292
+ return d.userHandle && (p = L(d.userHandle)), {
293
293
  id: s,
294
- rawId: M(i),
294
+ rawId: L(i),
295
295
  response: {
296
- authenticatorData: M(d.authenticatorData),
297
- clientDataJSON: M(d.clientDataJSON),
298
- signature: M(d.signature),
296
+ authenticatorData: L(d.authenticatorData),
297
+ clientDataJSON: L(d.clientDataJSON),
298
+ signature: L(d.signature),
299
299
  userHandle: p
300
300
  },
301
301
  type: g,
302
302
  clientExtensionResults: o.getClientExtensionResults(),
303
- authenticatorAttachment: xt(o.authenticatorAttachment)
303
+ authenticatorAttachment: Ct(o.authenticatorAttachment)
304
304
  };
305
305
  }
306
306
  /*!
@@ -336,7 +336,7 @@ const Q = {
336
336
  CREATED_AT_KEY: "iat",
337
337
  SCOPES_KEY: "scopes",
338
338
  ISSUER: "gizmette.com"
339
- }, Cr = `-----BEGIN PUBLIC KEY-----
339
+ }, xr = `-----BEGIN PUBLIC KEY-----
340
340
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
341
341
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
342
342
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -344,12 +344,12 @@ aMwPFOIcJH+rKfFgNcHLcaS5syp7zU1ANwZ+trgR+DifBr8TLVkBynmNeTyhDm2+
344
344
  l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
345
345
  sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
346
346
  awIDAQAB
347
- -----END PUBLIC KEY-----`, xe = {
347
+ -----END PUBLIC KEY-----`, Ce = {
348
348
  AUTHENTICATE: "authenticate",
349
349
  CODE: "code",
350
350
  LOGOUT: "logout"
351
351
  }, Oe = crypto, Pt = (e) => e instanceof CryptoKey, ge = new TextEncoder(), he = new TextDecoder();
352
- function xr(...e) {
352
+ function Cr(...e) {
353
353
  const t = e.reduce((a, { length: o }) => a + o, 0), r = new Uint8Array(t);
354
354
  let n = 0;
355
355
  for (const a of e)
@@ -452,7 +452,7 @@ function $r(e) {
452
452
  throw new Error("unreachable");
453
453
  }
454
454
  }
455
- function Mr(e, t) {
455
+ function Lr(e, t) {
456
456
  if (t.length && !t.some((r) => e.usages.includes(r))) {
457
457
  let r = "CryptoKey does not support this operation, its usages must include ";
458
458
  if (t.length > 2) {
@@ -462,7 +462,7 @@ function Mr(e, t) {
462
462
  throw new TypeError(r);
463
463
  }
464
464
  }
465
- function Lr(e, t, ...r) {
465
+ function Mr(e, t, ...r) {
466
466
  switch (t) {
467
467
  case "HS256":
468
468
  case "HS384":
@@ -512,7 +512,7 @@ function Lr(e, t, ...r) {
512
512
  default:
513
513
  throw new TypeError("CryptoKey does not support this operation");
514
514
  }
515
- Mr(e, r);
515
+ Lr(e, r);
516
516
  }
517
517
  function Dt(e, t, ...r) {
518
518
  var n;
@@ -526,7 +526,7 @@ const ot = (e, ...t) => Dt("Key must be ", e, ...t);
526
526
  function $t(e, t, ...r) {
527
527
  return Dt(`Key for the ${e} algorithm must be `, t, ...r);
528
528
  }
529
- const Mt = (e) => Pt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", _e = ["CryptoKey"], Ur = (...e) => {
529
+ const Lt = (e) => Pt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", _e = ["CryptoKey"], Ur = (...e) => {
530
530
  const t = e.filter(Boolean);
531
531
  if (t.length === 0 || t.length === 1)
532
532
  return !0;
@@ -646,7 +646,7 @@ const Br = async (e) => {
646
646
  e.key_ops ?? r
647
647
  ], a = { ...e };
648
648
  return delete a.alg, delete a.use, Oe.subtle.importKey("jwk", a, ...n);
649
- }, Lt = (e) => de(e);
649
+ }, Mt = (e) => de(e);
650
650
  let We, Ve;
651
651
  const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ht = async (e, t, r, n) => {
652
652
  let a = e.get(t);
@@ -657,13 +657,13 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
657
657
  }, Wr = (e, t) => {
658
658
  if (Ut(e)) {
659
659
  let r = e.export({ format: "jwk" });
660
- return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Lt(r.k) : (Ve || (Ve = /* @__PURE__ */ new WeakMap()), Ht(Ve, e, r, t));
660
+ return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (Ve || (Ve = /* @__PURE__ */ new WeakMap()), Ht(Ve, e, r, t));
661
661
  }
662
662
  return e;
663
663
  }, Vr = (e, t) => {
664
664
  if (Ut(e)) {
665
665
  let r = e.export({ format: "jwk" });
666
- return r.k ? Lt(r.k) : (We || (We = /* @__PURE__ */ new WeakMap()), Ht(We, e, r, t));
666
+ return r.k ? Mt(r.k) : (We || (We = /* @__PURE__ */ new WeakMap()), Ht(We, e, r, t));
667
667
  }
668
668
  return e;
669
669
  }, Fr = { normalizePublicKey: Wr, normalizePrivateKey: Vr }, Y = (e, t, r = 0) => {
@@ -747,13 +747,13 @@ async function jr(e, t, r) {
747
747
  }
748
748
  const Ie = (e) => e == null ? void 0 : e[Symbol.toStringTag], zr = (e, t) => {
749
749
  if (!(t instanceof Uint8Array)) {
750
- if (!Mt(t))
750
+ if (!Lt(t))
751
751
  throw new TypeError($t(e, t, ..._e, "Uint8Array"));
752
752
  if (t.type !== "secret")
753
753
  throw new TypeError(`${Ie(t)} instances for symmetric algorithms must be of type "secret"`);
754
754
  }
755
755
  }, qr = (e, t, r) => {
756
- if (!Mt(t))
756
+ if (!Lt(t))
757
757
  throw new TypeError($t(e, t, ..._e));
758
758
  if (t.type === "secret")
759
759
  throw new TypeError(`${Ie(t)} instances for asymmetric algorithms must not be of type "secret"`);
@@ -816,7 +816,7 @@ function en(e, t) {
816
816
  }
817
817
  async function tn(e, t, r) {
818
818
  if (t = await Fr.normalizePublicKey(t, e), Pt(t))
819
- return Lr(t, e, r), t;
819
+ return Mr(t, e, r), t;
820
820
  if (t instanceof Uint8Array) {
821
821
  if (!e.startsWith("HS"))
822
822
  throw new TypeError(ot(t, ..._e));
@@ -877,7 +877,7 @@ async function nn(e, t, r) {
877
877
  throw new k("JWS Payload must be a string or an Uint8Array instance");
878
878
  let g = !1;
879
879
  typeof t == "function" && (t = await t(n, e), g = !0), Qr(i, t, "verify");
880
- const p = xr(ge.encode(e.protected ?? ""), ge.encode("."), typeof e.payload == "string" ? ge.encode(e.payload) : e.payload);
880
+ const p = Cr(ge.encode(e.protected ?? ""), ge.encode("."), typeof e.payload == "string" ? ge.encode(e.payload) : e.payload);
881
881
  let h;
882
882
  try {
883
883
  h = de(e.signature);
@@ -1046,7 +1046,7 @@ function pn(e) {
1046
1046
  }
1047
1047
  const ue = async (e) => {
1048
1048
  try {
1049
- const t = N.ALG, r = await jr(Cr, t);
1049
+ const t = N.ALG, r = await jr(xr, t);
1050
1050
  return await mn(e, r, {
1051
1051
  issuer: N.ISSUER
1052
1052
  });
@@ -1162,7 +1162,7 @@ function Ye(e, t, r) {
1162
1162
  var n = e.random || (e.rng || Rn)();
1163
1163
  return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, kn(n);
1164
1164
  }
1165
- const ee = "Your session has expired. For your security, please log in again to continue.", Cn = "Your session has been successfully terminated.", Ee = "Login failed. Please try again.", xn = "Error getting access token, please re-authenticate.", On = "You forgot to wrap your component in <AuthProvider>.", Ne = {
1165
+ const ee = "Your session has expired. For your security, please log in again to continue.", xn = "Your session has been successfully terminated.", Ee = "Login failed. Please try again.", Cn = "Error getting access token, please re-authenticate.", On = "You forgot to wrap your component in <AuthProvider>.", Ne = {
1166
1166
  dev: "https://auth.gizmette.local.com:3003",
1167
1167
  prod: "https://mylogin.gizmette.com/auth"
1168
1168
  }, Te = "@@auth@@", ce = "LOADING", le = "LOGIN", Wt = "LOGOUT", Pe = "success", U = "failure", Vt = "include", Ft = "POST", Jt = "application/json", ve = {
@@ -1302,7 +1302,7 @@ const $n = {
1302
1302
  maxChannels: 0,
1303
1303
  channelCountMode: ""
1304
1304
  }
1305
- }, Mn = async (e) => new Promise((t) => {
1305
+ }, Ln = async (e) => new Promise((t) => {
1306
1306
  try {
1307
1307
  const r = new window.OfflineAudioContext(1, 5e3, 44100), n = r.createBufferSource(), a = r.createOscillator();
1308
1308
  a.frequency.value = 1e3;
@@ -1328,7 +1328,7 @@ const $n = {
1328
1328
  }
1329
1329
  });
1330
1330
  }
1331
- }), jt = { browser: "" }, Ln = async (e) => typeof navigator > "u" ? jt : { browser: navigator.userAgent }, zt = {
1331
+ }), jt = { browser: "" }, Mn = async (e) => typeof navigator > "u" ? jt : { browser: navigator.userAgent }, zt = {
1332
1332
  canvas: {
1333
1333
  data: ""
1334
1334
  }
@@ -1572,8 +1572,8 @@ const ta = async (e) => {
1572
1572
  }, ra = async (e) => {
1573
1573
  try {
1574
1574
  return Promise.all([
1575
- Mn(),
1576
1575
  Ln(),
1576
+ Mn(),
1577
1577
  Un(),
1578
1578
  Fn(),
1579
1579
  qn(),
@@ -1704,7 +1704,7 @@ const ta = async (e) => {
1704
1704
  try {
1705
1705
  return {
1706
1706
  status: ((s = await De({
1707
- type: xe.LOGOUT,
1707
+ type: Ce.LOGOUT,
1708
1708
  clientId: a,
1709
1709
  params: {
1710
1710
  userId: e,
@@ -1735,7 +1735,7 @@ const ta = async (e) => {
1735
1735
  var p;
1736
1736
  try {
1737
1737
  const h = await De({
1738
- type: xe.AUTHENTICATE,
1738
+ type: Ce.AUTHENTICATE,
1739
1739
  clientId: r,
1740
1740
  params: {
1741
1741
  type: a || Q.ID_AND_ACCESS_TOKEN,
@@ -1771,7 +1771,7 @@ const ta = async (e) => {
1771
1771
  var n;
1772
1772
  try {
1773
1773
  const a = await De({
1774
- type: xe.CODE,
1774
+ type: Ce.CODE,
1775
1775
  clientId: t,
1776
1776
  params: {
1777
1777
  type: Q.CODE,
@@ -1803,7 +1803,7 @@ const ta = async (e) => {
1803
1803
  var s;
1804
1804
  try {
1805
1805
  const i = await De({
1806
- type: xe.AUTHENTICATE,
1806
+ type: Ce.AUTHENTICATE,
1807
1807
  clientId: e,
1808
1808
  params: {
1809
1809
  type: Q.REFRESH_TOKEN,
@@ -1935,7 +1935,7 @@ const da = (e) => q(
1935
1935
  const [o, s] = vt(ma, {
1936
1936
  ...tr,
1937
1937
  debug: a
1938
- }), i = da(a), d = L(!1), g = L(""), [p, h, , u] = be({
1938
+ }), i = da(a), d = M(!1), g = M(""), [p, h, , u] = be({
1939
1939
  key: `${Te}::${r}::@@user@@`
1940
1940
  }), [c, m, , b] = be({
1941
1941
  key: `${Te}::${r}::@@access@@`
@@ -1945,7 +1945,7 @@ const da = (e) => q(
1945
1945
  }
1946
1946
  ), [F, O, , Z] = be({
1947
1947
  key: `${Te}::${r}::@@nonce@@`
1948
- }), J = new la(c, w), C = q(() => {
1948
+ }), J = new la(c, w), x = q(() => {
1949
1949
  i("removeLocalStorage: removing local storage"), u(), b(), D(), Z();
1950
1950
  }, [
1951
1951
  b,
@@ -1963,9 +1963,9 @@ const da = (e) => q(
1963
1963
  payload: {
1964
1964
  logoutReason: y || ee
1965
1965
  }
1966
- }), C(), s({ type: ce, payload: { isLoading: !1 } });
1966
+ }), x(), s({ type: ce, payload: { isLoading: !1 } });
1967
1967
  },
1968
- [C, i]
1968
+ [x, i]
1969
1969
  ), _ = q(
1970
1970
  async (y) => {
1971
1971
  i("invalidateAndLogout: invalidating and logging out");
@@ -2018,8 +2018,8 @@ const da = (e) => q(
2018
2018
  d.current = !0;
2019
2019
  };
2020
2020
  }, [o.isLoading, p, _, i]);
2021
- const Le = async (y, v, E = Q.CODE) => {
2022
- s({ type: ce, payload: { isLoading: !0 } }), C();
2021
+ const Me = async (y, v, E = Q.CODE) => {
2022
+ s({ type: ce, payload: { isLoading: !0 } }), x();
2023
2023
  const K = Ye();
2024
2024
  if (O(K), i("login: Logging in with type: ", E), E === Q.CODE) {
2025
2025
  const { code_verifier: fr, code_challenge: yr } = await Sn(), nt = await ia({
@@ -2074,8 +2074,8 @@ const da = (e) => q(
2074
2074
  }
2075
2075
  }), !0) : (P(Ee), !1);
2076
2076
  }, Ue = async (y) => {
2077
- y == null || y.preventDefault(), await _(Cn);
2078
- }, x = async () => {
2077
+ y == null || y.preventDefault(), await _(xn);
2078
+ }, C = async () => {
2079
2079
  const { isAuthenticated: y, user: v } = o;
2080
2080
  try {
2081
2081
  if (y && v && v.userId) {
@@ -2102,7 +2102,7 @@ const da = (e) => q(
2102
2102
  } catch {
2103
2103
  return i(
2104
2104
  "getAccessToken: exception occurred, invalidating and logging out"
2105
- ), await _(xn), "";
2105
+ ), await _(Cn), "";
2106
2106
  }
2107
2107
  }, H = () => o.isAuthenticated && p ? p : "", He = async () => {
2108
2108
  const { user: y } = o;
@@ -2145,7 +2145,7 @@ const da = (e) => q(
2145
2145
  }
2146
2146
  return !1;
2147
2147
  }, pe = async () => {
2148
- s({ type: ce, payload: { isLoading: !0 } }), C();
2148
+ s({ type: ce, payload: { isLoading: !0 } }), x();
2149
2149
  const y = Ye();
2150
2150
  O(y), i("loginWithPasskey");
2151
2151
  const v = Ye();
@@ -2204,9 +2204,9 @@ const da = (e) => q(
2204
2204
  {
2205
2205
  value: {
2206
2206
  ...o,
2207
- login: Le,
2207
+ login: Me,
2208
2208
  logout: Ue,
2209
- getAccessToken: x,
2209
+ getAccessToken: C,
2210
2210
  getIdToken: H,
2211
2211
  registeringForPasskey: He,
2212
2212
  loginWithPasskey: pe
@@ -2430,7 +2430,7 @@ const gs = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2430
2430
  "h-12 px-4 text-lg font-medium": t === "large" && (r || n)
2431
2431
  });
2432
2432
  }
2433
- }, Ca = ({
2433
+ }, xa = ({
2434
2434
  mode: e,
2435
2435
  noBackground: t,
2436
2436
  noTruncate: r,
@@ -2462,7 +2462,7 @@ const gs = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2462
2462
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
2463
2463
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
2464
2464
  });
2465
- }, xa = ({
2465
+ }, Ca = ({
2466
2466
  mode: e,
2467
2467
  disabled: t,
2468
2468
  variant: r
@@ -2572,11 +2572,11 @@ const gs = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2572
2572
  wt,
2573
2573
  t,
2574
2574
  $e(h),
2575
- Ca({ mode: n, variant: c, noBackground: u, noTruncate: m }),
2575
+ xa({ mode: n, variant: c, noBackground: u, noTruncate: m }),
2576
2576
  Na({ type: e, size: i, labelRight: g, labelLeft: p, align: b }),
2577
2577
  Pa({ mode: n, variant: c, noBorder: d }),
2578
2578
  Da({ focusMode: a }),
2579
- xa({ mode: n, variant: c, disabled: o }),
2579
+ Ca({ mode: n, variant: c, disabled: o }),
2580
2580
  Oa({ mode: n, variant: c, disabled: o }),
2581
2581
  {
2582
2582
  "w-full": s,
@@ -2705,11 +2705,11 @@ const cr = W.forwardRef(
2705
2705
  }
2706
2706
  );
2707
2707
  cr.displayName = "Button";
2708
- function Ma(e) {
2708
+ function La(e) {
2709
2709
  const t = It();
2710
2710
  return `${e}${t}`;
2711
2711
  }
2712
- const La = ({
2712
+ const Ma = ({
2713
2713
  className: e,
2714
2714
  headerClassName: t,
2715
2715
  bodyClassName: r,
@@ -2775,7 +2775,7 @@ const Ha = ({
2775
2775
  ...u
2776
2776
  }) => {
2777
2777
  let c = null, m = null;
2778
- const b = typeof e == "string", w = Ma(Ae), T = La({
2778
+ const b = typeof e == "string", w = La(Ae), T = Ma({
2779
2779
  className: o,
2780
2780
  headerClassName: t,
2781
2781
  bodyClassName: s,
@@ -2953,7 +2953,7 @@ function ur({
2953
2953
  visible: i,
2954
2954
  ...d
2955
2955
  }) {
2956
- const g = L(), p = L(), [h, u] = vt(Fa, {
2956
+ const g = M(), p = M(), [h, u] = vt(Fa, {
2957
2957
  announcement: null
2958
2958
  });
2959
2959
  let c = r;
@@ -3011,7 +3011,7 @@ const ja = (e) => {
3011
3011
  return t;
3012
3012
  }, mr = "av-text-input", za = "av-text-input-wrapper", je = "av-text-input-helper-text", Ss = "av-text-area", Is = "av-text-area-wrapper", As = "av-text-area-helper-text", ks = "av-text-area__control--right", _s = "av-toggle";
3013
3013
  function qa() {
3014
- const e = L(!1);
3014
+ const e = M(!1);
3015
3015
  return V(() => (e.current = !0, () => {
3016
3016
  e.current = !1;
3017
3017
  }), []), q(() => e.current, []);
@@ -3027,7 +3027,7 @@ const Qa = {
3027
3027
  right: 0
3028
3028
  };
3029
3029
  function Xa(e) {
3030
- const t = qa(), r = L(0), n = L(null), [a, o] = j(Qa), s = At(
3030
+ const t = qa(), r = M(0), n = M(null), [a, o] = j(Qa), s = At(
3031
3031
  () => typeof window < "u" ? new ResizeObserver((i) => {
3032
3032
  const d = i[0];
3033
3033
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
@@ -3179,7 +3179,7 @@ const Za = ({
3179
3179
  spacing: w,
3180
3180
  ...T
3181
3181
  }, D) => {
3182
- const [F, O] = Xa(), [Z, J] = j(0), C = Wa({ id: e, prefix: `${mr}-` }), P = `${t} error, ${m}`, _ = ao({
3182
+ const [F, O] = Xa(), [Z, J] = j(0), x = Wa({ id: e, prefix: `${mr}-` }), P = `${t} error, ${m}`, _ = ao({
3183
3183
  className: o,
3184
3184
  inputClassName: s,
3185
3185
  error: n,
@@ -3196,7 +3196,7 @@ const Za = ({
3196
3196
  /* @__PURE__ */ l(
3197
3197
  "label",
3198
3198
  {
3199
- htmlFor: C,
3199
+ htmlFor: x,
3200
3200
  id: h,
3201
3201
  className: _.accessibleLabel,
3202
3202
  children: r
@@ -3206,13 +3206,13 @@ const Za = ({
3206
3206
  "input",
3207
3207
  {
3208
3208
  ref: D,
3209
- id: C,
3209
+ id: x,
3210
3210
  name: t,
3211
3211
  type: c,
3212
3212
  disabled: g,
3213
3213
  placeholder: a ? void 0 : " ",
3214
3214
  className: _.input,
3215
- ...m && { "aria-describedby": `${C}-helper` },
3215
+ ...m && { "aria-describedby": `${x}-helper` },
3216
3216
  ...n && { "aria-invalid": "true" },
3217
3217
  ...b && !a && { style: { paddingRight: Z } },
3218
3218
  ...T
@@ -3222,7 +3222,7 @@ const Za = ({
3222
3222
  "label",
3223
3223
  {
3224
3224
  "aria-hidden": !0,
3225
- htmlFor: C,
3225
+ htmlFor: x,
3226
3226
  className: _.visibleLabel,
3227
3227
  children: r
3228
3228
  }
@@ -3230,7 +3230,7 @@ const Za = ({
3230
3230
  m && /* @__PURE__ */ l(
3231
3231
  "div",
3232
3232
  {
3233
- id: `${C}-helper`,
3233
+ id: `${x}-helper`,
3234
3234
  className: _.helperText,
3235
3235
  children: m
3236
3236
  }
@@ -3266,7 +3266,7 @@ const oo = 500, so = 5e3, io = 2e4, hr = W.forwardRef(
3266
3266
  const [c, m] = j(!0), [b, w] = j({
3267
3267
  message: null,
3268
3268
  politeness: null
3269
- }), T = L(!0), D = L(), F = L(null), O = Ba([u, F]), Z = c ? "Show" : "Hide", J = () => {
3269
+ }), T = M(!0), D = M(), F = M(null), O = Ba([u, F]), Z = c ? "Show" : "Hide", J = () => {
3270
3270
  clearTimeout(D.current), T.current || (D.current = window.setTimeout(() => {
3271
3271
  T.current = !0, m(!0), w({
3272
3272
  announcementTimeout: so,
@@ -3274,24 +3274,24 @@ const oo = 500, so = 5e3, io = 2e4, hr = W.forwardRef(
3274
3274
  message: `${r} hiding characters`
3275
3275
  }), a && a(!0);
3276
3276
  }, io));
3277
- }, C = (x) => {
3278
- x.preventDefault();
3277
+ }, x = (C) => {
3278
+ C.preventDefault();
3279
3279
  const H = !T.current;
3280
3280
  T.current = H, J(), m(H), w({
3281
3281
  announcementTimeout: oo,
3282
3282
  politeness: "assertive",
3283
3283
  message: H ? "Characters hidden" : "Characters showing"
3284
3284
  }), a && a(H);
3285
- }, P = (x) => {
3285
+ }, P = (C) => {
3286
3286
  var H;
3287
- const { relatedTarget: He } = x, pe = (H = F.current) == null ? void 0 : H.parentElement;
3287
+ const { relatedTarget: He } = C, pe = (H = F.current) == null ? void 0 : H.parentElement;
3288
3288
  pe != null && pe.contains(He) || d && d();
3289
- }, _ = (x) => {
3290
- J(), s && s(x), P(x);
3291
- }, Le = (x) => {
3292
- J(), i && i(x);
3293
- }, Ue = (x) => {
3294
- J(), o && o(x);
3289
+ }, _ = (C) => {
3290
+ J(), s && s(C), P(C);
3291
+ }, Me = (C) => {
3292
+ J(), i && i(C);
3293
+ }, Ue = (C) => {
3294
+ J(), o && o(C);
3295
3295
  };
3296
3296
  return V(() => () => {
3297
3297
  clearTimeout(D.current);
@@ -3307,12 +3307,12 @@ const oo = 500, so = 5e3, io = 2e4, hr = W.forwardRef(
3307
3307
  disabled: t,
3308
3308
  spacing: p,
3309
3309
  onBlur: _,
3310
- onFocus: Le,
3310
+ onFocus: Me,
3311
3311
  onChange: Ue,
3312
3312
  rightElement: W.cloneElement(g, {
3313
3313
  ref: u,
3314
3314
  label: Z,
3315
- onClick: C,
3315
+ onClick: x,
3316
3316
  onBlur: P,
3317
3317
  disabled: t
3318
3318
  }),
@@ -3354,7 +3354,7 @@ const co = (e) => {
3354
3354
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
3355
3355
  }
3356
3356
  return t;
3357
- }, Me = ({
3357
+ }, Le = ({
3358
3358
  children: e,
3359
3359
  fill: t,
3360
3360
  viewBox: r,
@@ -3407,7 +3407,7 @@ const lo = ({
3407
3407
  spacing: r,
3408
3408
  ...n
3409
3409
  }) => /* @__PURE__ */ l(
3410
- Me,
3410
+ Le,
3411
3411
  {
3412
3412
  defaultViewBox: "0 0 1200 500",
3413
3413
  defaultClassName: "w-full",
@@ -3434,7 +3434,7 @@ const lo = ({
3434
3434
  monotone: a,
3435
3435
  ...o
3436
3436
  }) => /* @__PURE__ */ S(
3437
- Me,
3437
+ Le,
3438
3438
  {
3439
3439
  defaultViewBox: "0 0 640 512",
3440
3440
  defaultClassName: "size-5",
@@ -3462,7 +3462,7 @@ const lo = ({
3462
3462
  monotone: a,
3463
3463
  ...o
3464
3464
  }) => /* @__PURE__ */ S(
3465
- Me,
3465
+ Le,
3466
3466
  {
3467
3467
  defaultViewBox: "0 0 512 512",
3468
3468
  defaultClassName: "size-5",
@@ -3497,7 +3497,7 @@ const lo = ({
3497
3497
  monotone: a,
3498
3498
  ...o
3499
3499
  }) => /* @__PURE__ */ S(
3500
- Me,
3500
+ Le,
3501
3501
  {
3502
3502
  defaultViewBox: "0 0 576 512",
3503
3503
  defaultClassName: "size-5",
@@ -3540,7 +3540,7 @@ const po = (e) => {
3540
3540
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
3541
3541
  }
3542
3542
  return t;
3543
- }, go = "av-flexgrid", Se = "av-flexgrid-item", Ce = 0.25, pr = W.createContext({
3543
+ }, go = "av-flexgrid", Se = "av-flexgrid-item", xe = 0.25, pr = W.createContext({
3544
3544
  columnGap: 0,
3545
3545
  rowGap: 0
3546
3546
  }), Tt = ({
@@ -3567,8 +3567,8 @@ const po = (e) => {
3567
3567
  * by the columnGap and rowGap that will be applied
3568
3568
  * to all FlexgridItems (see context and paddings).
3569
3569
  */
3570
- marginLeft: r * -1 * Ce + "rem",
3571
- marginTop: n * -1 * Ce + "rem"
3570
+ marginLeft: r * -1 * xe + "rem",
3571
+ marginTop: n * -1 * xe + "rem"
3572
3572
  }, u = f(
3573
3573
  go,
3574
3574
  t,
@@ -3678,8 +3678,8 @@ const po = (e) => {
3678
3678
  ...n
3679
3679
  }) => {
3680
3680
  const { columnGap: a, rowGap: o } = St(pr), s = {
3681
- paddingLeft: a * Ce + "rem",
3682
- paddingTop: o * Ce + "rem"
3681
+ paddingLeft: a * xe + "rem",
3682
+ paddingTop: o * xe + "rem"
3683
3683
  }, i = fo({
3684
3684
  className: t,
3685
3685
  span: r
@@ -3699,13 +3699,13 @@ try {
3699
3699
  });
3700
3700
  } catch {
3701
3701
  }
3702
- const yo = "ASK! ME! ANYTHING!", gr = "Sassy Saint", bo = "gizmette.com", wo = "Log in", Eo = "Sign in with a Passkey", Rs = "Log out", To = "Password", vo = "Powered by OpenAI", Ns = "Send", Cs = "Profile", xs = "Statistics", Os = "Chat history", Ps = "About", Ds = "Type your question here", $s = "Clear chat", Ms = "Cancel chat", Ls = "N/A", Us = {
3702
+ const yo = "ASK! ME! ANYTHING!", gr = "Sassy Saint", bo = "gizmette.com", wo = "Log in", Eo = "Sign in with a Passkey", Rs = "Log out", To = "Password", vo = "Powered by OpenAI", Ns = "Send", xs = "Profile", Cs = "Statistics", Os = "Chat history", Ps = "About", Ds = "Type your question here", $s = "Clear chat", Ls = "Cancel chat", Ms = "N/A", Us = {
3703
3703
  PREFERENCES: {
3704
3704
  TITLE: "User preferences",
3705
3705
  NAME: "Name",
3706
3706
  EMAIL: "Email",
3707
3707
  ENGINE_DETAILS: "Show message statistics",
3708
- LOCATION: "Current location",
3708
+ LOCATION: "Location",
3709
3709
  MODEL_TYPE: "Use GPT model 4"
3710
3710
  },
3711
3711
  CURRENT_STATISTICS: {
@@ -3740,7 +3740,7 @@ const yo = "ASK! ME! ANYTHING!", gr = "Sassy Saint", bo = "gizmette.com", wo = "
3740
3740
  row1: /* @__PURE__ */ S("div", { children: [
3741
3741
  gr,
3742
3742
  " v",
3743
- "3.4.6",
3743
+ "3.4.8",
3744
3744
  " - ",
3745
3745
  vo,
3746
3746
  et && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
@@ -3752,7 +3752,7 @@ const yo = "ASK! ME! ANYTHING!", gr = "Sassy Saint", bo = "gizmette.com", wo = "
3752
3752
  bo
3753
3753
  ] })
3754
3754
  }
3755
- ), Io = kt(() => import("./LazyHeader.Cn4krbeU.js")), Ao = () => {
3755
+ ), Io = kt(() => import("./LazyHeader.CDeNMEns.js")), Ao = () => {
3756
3756
  const { isAuthenticated: e } = Ze();
3757
3757
  return /* @__PURE__ */ S(me, { children: [
3758
3758
  e && /* @__PURE__ */ l(_t, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Io, {}) }),
@@ -3863,14 +3863,14 @@ const yo = "ASK! ME! ANYTHING!", gr = "Sassy Saint", bo = "gizmette.com", wo = "
3863
3863
  ] }),
3864
3864
  /* @__PURE__ */ l(So, {})
3865
3865
  ] });
3866
- }, _o = new URL(document.location.href).searchParams, Ro = !!_o.get("debug") || !1, No = kt(() => import("./App.nuKvm0UW.js").then((e) => e.App)), Co = ({ isComponent: e }) => {
3866
+ }, _o = new URL(document.location.href).searchParams, Ro = !!_o.get("debug") || !1, No = kt(() => import("./App.WT_JMB-P.js").then((e) => e.App)), xo = ({ isComponent: e }) => {
3867
3867
  const { isAuthenticated: t } = Ze();
3868
3868
  return t ? /* @__PURE__ */ l(_t, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(No, { isComponent: e }) }) : /* @__PURE__ */ l(ko, {});
3869
- }, xo = ({
3869
+ }, Co = ({
3870
3870
  isComponent: e = !1,
3871
3871
  domain: t = Ia
3872
- }) => /* @__PURE__ */ l(me, { children: /* @__PURE__ */ l(ha, { clientId: pa, domain: t, debug: Ro, children: /* @__PURE__ */ l(Co, { isComponent: e }) }) }), Oo = ({ domain: e }) => /* @__PURE__ */ l(xo, { isComponent: !0, domain: e });
3873
- Oo.displayName = "SassySaint-3.4.6";
3872
+ }) => /* @__PURE__ */ l(me, { children: /* @__PURE__ */ l(ha, { clientId: pa, domain: t, debug: Ro, children: /* @__PURE__ */ l(xo, { isComponent: e }) }) }), Oo = ({ domain: e }) => /* @__PURE__ */ l(Co, { isComponent: !0, domain: e });
3873
+ Oo.displayName = "SassySaint-3.4.8";
3874
3874
  export {
3875
3875
  ir as A,
3876
3876
  Ps as ABOUT_TITLE,
@@ -3883,7 +3883,7 @@ export {
3883
3883
  rs as ACTION_SORT,
3884
3884
  es as ACTION_STREAMING,
3885
3885
  So as AppFooter,
3886
- Ms as CANCEL,
3886
+ Ls as CANCEL,
3887
3887
  Us as CARDS,
3888
3888
  $s as CLEAR,
3889
3889
  Jo as ERROR_MESSAGE,
@@ -3901,9 +3901,9 @@ export {
3901
3901
  Ao as MessagesContainerHeader,
3902
3902
  Es as N,
3903
3903
  Ha as N$1,
3904
- Ls as NA,
3904
+ Ms as NA,
3905
3905
  qe as O,
3906
- Cs as PROFILE_TITLE,
3906
+ xs as PROFILE_TITLE,
3907
3907
  Bo as ROLE_ASSISTANT,
3908
3908
  Fo as ROLE_HIDDEN,
3909
3909
  Vo as ROLE_INTERNAL,
@@ -3911,7 +3911,7 @@ export {
3911
3911
  Go as ROLE_USER,
3912
3912
  $e as S,
3913
3913
  Ns as SEND,
3914
- xs as STATS,
3914
+ Cs as STATS,
3915
3915
  cs as STATS_SEPARATOR,
3916
3916
  Oo as SassySaint,
3917
3917
  Ds as TYPE_QUESTION,
@@ -3929,7 +3929,7 @@ export {
3929
3929
  or as f,
3930
3930
  Ba as f$1,
3931
3931
  mo as f$2,
3932
- Me as g,
3932
+ Le as g,
3933
3933
  ms as getCurrentGeoLocation,
3934
3934
  Aa as getMessageContaintWrapperClass,
3935
3935
  tt as i,