@neuctra/authix 1.2.24 → 1.2.25

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,4 +1,4 @@
1
- import Ce, { forwardRef as zt, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
1
+ import Ce, { forwardRef as At, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
2
2
  function Ut(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
@@ -87,11 +87,11 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
87
87
  t = n !== !1 && nt(t);
88
88
  } while (t && (!n || n(t, e)) && t !== Object.prototype);
89
89
  return e;
90
- }, Ar = (t, e, n) => {
90
+ }, zr = (t, e, n) => {
91
91
  t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
92
92
  const s = t.indexOf(e, n);
93
93
  return s !== -1 && s === n;
94
- }, zr = (t) => {
94
+ }, Ar = (t) => {
95
95
  if (!t) return null;
96
96
  if (je(t)) return t;
97
97
  let e = t.length;
@@ -212,8 +212,8 @@ const Hr = (t) => {
212
212
  toFlatObject: Or,
213
213
  kindOf: Fe,
214
214
  kindOfTest: ae,
215
- endsWith: Ar,
216
- toArray: zr,
215
+ endsWith: zr,
216
+ toArray: Ar,
217
217
  forEachEntry: _r,
218
218
  matchAll: $r,
219
219
  isHTMLForm: Dr,
@@ -1158,7 +1158,7 @@ const Zt = (t) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, jt = 64 * 1024, { isFunction: Ae } = f, An = (({ Request: t, Response: e }) => ({
1161
+ }, jt = 64 * 1024, { isFunction: ze } = f, zn = (({ Request: t, Response: e }) => ({
1162
1162
  Request: t,
1163
1163
  Response: e
1164
1164
  }))(f.global), {
@@ -1170,14 +1170,14 @@ const Zt = (t) => {
1170
1170
  } catch {
1171
1171
  return !1;
1172
1172
  }
1173
- }, zn = (t) => {
1173
+ }, An = (t) => {
1174
1174
  t = f.merge.call({
1175
1175
  skipUndefined: !0
1176
- }, An, t);
1177
- const { fetch: e, Request: n, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", a = Ae(n), o = Ae(s);
1176
+ }, zn, t);
1177
+ const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && Ae(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), x = a && c && kt(() => {
1180
+ const c = i && ze(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), x = a && c && kt(() => {
1181
1181
  let u = !1;
1182
1182
  const w = new n(Q.origin, {
1183
1183
  body: new vt(),
@@ -1236,9 +1236,9 @@ const Zt = (t) => {
1236
1236
  const T = R && R.unsubscribe && (() => {
1237
1237
  R.unsubscribe();
1238
1238
  });
1239
- let A;
1239
+ let z;
1240
1240
  try {
1241
- if (b && x && h !== "get" && h !== "head" && (A = await E(q, I)) !== 0) {
1241
+ if (b && x && h !== "get" && h !== "head" && (z = await E(q, I)) !== 0) {
1242
1242
  let l = new n(w, {
1243
1243
  method: "POST",
1244
1244
  body: I,
@@ -1246,7 +1246,7 @@ const Zt = (t) => {
1246
1246
  }), m;
1247
1247
  if (f.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
1248
1248
  const [S, D] = gt(
1249
- A,
1249
+ z,
1250
1250
  Ne(yt(b))
1251
1251
  );
1252
1252
  I = wt(l.body, jt, S, D);
@@ -1311,7 +1311,7 @@ const Zt = (t) => {
1311
1311
  ];
1312
1312
  let o = a.length, c = o, d, x, p = Un;
1313
1313
  for (; c--; )
1314
- d = a[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() : zn(e)), p = x;
1314
+ d = a[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() : An(e)), p = x;
1315
1315
  return x;
1316
1316
  };
1317
1317
  Qt();
@@ -2200,22 +2200,27 @@ class li {
2200
2200
  );
2201
2201
  }
2202
2202
  /**
2203
- * Search all users' data by category from a specific app
2204
- * @param params requires appId and category
2203
+ * Search all users' data by keys with deep filtering inside an app
2204
+ * @param params appId, dataCategory (required), query (optional), and dynamic filters
2205
2205
  */
2206
- async searchAllUsersDataFromApp(e) {
2207
- const { dataCategory: n } = e, s = this.appId;
2208
- if (!s)
2209
- throw new Error("searchAllUsersDataFromApp: 'appId' is required");
2206
+ async searchAllUsersDataByKeys(e) {
2207
+ const { dataCategory: n, query: s, ...i } = e, a = this.appId;
2208
+ if (!a)
2209
+ throw new Error("searchAllUsersDataByKeys: 'appId' is required");
2210
2210
  if (!n)
2211
- throw new Error("searchAllUsersDataFromApp: 'category' is required");
2211
+ throw new Error("searchAllUsersDataByKeys: 'dataCategory' is required");
2212
2212
  return await this.request(
2213
2213
  "GET",
2214
- `/users/app/${encodeURIComponent(s)}/category/${encodeURIComponent(n)}`,
2214
+ `/users/${encodeURIComponent(a)}/data/searchbyref/all?${new URLSearchParams(
2215
+ {
2216
+ dataCategory: n,
2217
+ ...s ? { query: s } : {},
2218
+ ...i
2219
+ }
2220
+ ).toString()}`,
2215
2221
  void 0,
2216
2222
  {},
2217
2223
  !1
2218
- // 👈 no credentials
2219
2224
  );
2220
2225
  }
2221
2226
  // ================= APP DATA =================
@@ -2384,7 +2389,7 @@ class li {
2384
2389
  );
2385
2390
  }
2386
2391
  }
2387
- var ze = { exports: {} }, ke = {};
2392
+ var Ae = { exports: {} }, ke = {};
2388
2393
  /**
2389
2394
  * @license React
2390
2395
  * react-jsx-runtime.production.js
@@ -2583,8 +2588,8 @@ function qn() {
2583
2588
  else y(B);
2584
2589
  if (G.call(m, "key")) {
2585
2590
  B = t(l);
2586
- var le = Object.keys(m).filter(function(z) {
2587
- return z !== "key";
2591
+ var le = Object.keys(m).filter(function(A) {
2592
+ return A !== "key";
2588
2593
  });
2589
2594
  D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
2590
2595
  `A props object containing a "key" prop is being spread into JSX:
@@ -2622,7 +2627,7 @@ React keys must be passed directly to JSX without using spread:
2622
2627
  function k(l) {
2623
2628
  return typeof l == "object" && l !== null && l.$$typeof === u;
2624
2629
  }
2625
- var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, A = console.createTask ? console.createTask : function() {
2630
+ var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, z = console.createTask ? console.createTask : function() {
2626
2631
  return null;
2627
2632
  };
2628
2633
  E = {
@@ -2633,7 +2638,7 @@ React keys must be passed directly to JSX without using spread:
2633
2638
  var M, J = {}, H = E.react_stack_bottom_frame.bind(
2634
2639
  E,
2635
2640
  a
2636
- )(), L = A(s(a)), Y = {};
2641
+ )(), L = z(s(a)), Y = {};
2637
2642
  Ee.Fragment = h, Ee.jsx = function(l, m, S) {
2638
2643
  var D = 1e4 > R.recentlyCreatedOwnerStacks++;
2639
2644
  return p(
@@ -2642,7 +2647,7 @@ React keys must be passed directly to JSX without using spread:
2642
2647
  S,
2643
2648
  !1,
2644
2649
  D ? Error("react-stack-top-frame") : H,
2645
- D ? A(s(l)) : L
2650
+ D ? z(s(l)) : L
2646
2651
  );
2647
2652
  }, Ee.jsxs = function(l, m, S) {
2648
2653
  var D = 1e4 > R.recentlyCreatedOwnerStacks++;
@@ -2652,14 +2657,14 @@ React keys must be passed directly to JSX without using spread:
2652
2657
  S,
2653
2658
  !0,
2654
2659
  D ? Error("react-stack-top-frame") : H,
2655
- D ? A(s(l)) : L
2660
+ D ? z(s(l)) : L
2656
2661
  );
2657
2662
  };
2658
2663
  })()), Ee;
2659
2664
  }
2660
2665
  var It;
2661
2666
  function Mn() {
2662
- return It || (It = 1, process.env.NODE_ENV === "production" ? ze.exports = Fn() : ze.exports = qn()), ze.exports;
2667
+ return It || (It = 1, process.env.NODE_ENV === "production" ? Ae.exports = Fn() : Ae.exports = qn()), Ae.exports;
2663
2668
  }
2664
2669
  var r = Mn();
2665
2670
  /**
@@ -2702,7 +2707,7 @@ var Vn = {
2702
2707
  * This source code is licensed under the ISC license.
2703
2708
  * See the LICENSE file in the root directory of this source tree.
2704
2709
  */
2705
- const Yn = zt(
2710
+ const Yn = At(
2706
2711
  ({
2707
2712
  color: t = "currentColor",
2708
2713
  size: e = 24,
@@ -2738,7 +2743,7 @@ const Yn = zt(
2738
2743
  * See the LICENSE file in the root directory of this source tree.
2739
2744
  */
2740
2745
  const F = (t, e) => {
2741
- const n = zt(
2746
+ const n = At(
2742
2747
  ({ className: s, ...i }, a) => Je(Yn, {
2743
2748
  ref: a,
2744
2749
  iconNode: e,
@@ -3105,7 +3110,7 @@ const Is = [
3105
3110
  * This source code is licensed under the ISC license.
3106
3111
  * See the LICENSE file in the root directory of this source tree.
3107
3112
  */
3108
- const As = [
3113
+ const zs = [
3109
3114
  [
3110
3115
  "path",
3111
3116
  {
@@ -3113,20 +3118,20 @@ const As = [
3113
3118
  key: "oel41y"
3114
3119
  }
3115
3120
  ]
3116
- ], rt = F("shield", As);
3121
+ ], rt = F("shield", zs);
3117
3122
  /**
3118
3123
  * @license lucide-react v0.544.0 - ISC
3119
3124
  *
3120
3125
  * This source code is licensed under the ISC license.
3121
3126
  * See the LICENSE file in the root directory of this source tree.
3122
3127
  */
3123
- const zs = [
3128
+ const As = [
3124
3129
  ["path", { d: "M10 11v6", key: "nco0om" }],
3125
3130
  ["path", { d: "M14 11v6", key: "outv1u" }],
3126
3131
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
3127
3132
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
3128
3133
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
3129
- ], De = F("trash-2", zs);
3134
+ ], De = F("trash-2", As);
3130
3135
  /**
3131
3136
  * @license lucide-react v0.544.0 - ISC
3132
3137
  *
@@ -3143,7 +3148,7 @@ const Us = [
3143
3148
  ],
3144
3149
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3145
3150
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3146
- ], At = F("triangle-alert", Us);
3151
+ ], zt = F("triangle-alert", Us);
3147
3152
  /**
3148
3153
  * @license lucide-react v0.544.0 - ISC
3149
3154
  *
@@ -3214,7 +3219,7 @@ const Ns = [
3214
3219
  return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
3215
3220
  }
3216
3221
  }, []);
3217
- const A = (L) => {
3222
+ const z = (L) => {
3218
3223
  const { name: Y, value: l } = L.target;
3219
3224
  h((m) => ({ ...m, [Y]: l })), j[Y] && q((m) => ({ ...m, [Y]: void 0 }));
3220
3225
  }, M = () => {
@@ -3506,7 +3511,7 @@ const Ns = [
3506
3511
  name: "name",
3507
3512
  placeholder: "Enter your full name",
3508
3513
  value: w.name,
3509
- onChange: A,
3514
+ onChange: z,
3510
3515
  style: {
3511
3516
  ...H,
3512
3517
  borderColor: j.name ? "#ef4444" : T
@@ -3561,7 +3566,7 @@ const Ns = [
3561
3566
  name: "email",
3562
3567
  placeholder: "Enter your email address",
3563
3568
  value: w.email,
3564
- onChange: A,
3569
+ onChange: z,
3565
3570
  style: {
3566
3571
  ...H,
3567
3572
  borderColor: j.email ? "#ef4444" : T
@@ -3616,7 +3621,7 @@ const Ns = [
3616
3621
  name: "password",
3617
3622
  placeholder: "Create a secure password",
3618
3623
  value: w.password,
3619
- onChange: A,
3624
+ onChange: z,
3620
3625
  style: {
3621
3626
  ...H,
3622
3627
  borderColor: j.password ? "#ef4444" : T
@@ -3694,7 +3699,7 @@ const Ns = [
3694
3699
  name: "avatarUrl",
3695
3700
  placeholder: "Paste your avatar image URL",
3696
3701
  value: w.avatarUrl || "",
3697
- onChange: A,
3702
+ onChange: z,
3698
3703
  style: H
3699
3704
  }
3700
3705
  )
@@ -3824,7 +3829,7 @@ const Ns = [
3824
3829
  email: "",
3825
3830
  otp: "",
3826
3831
  newPassword: ""
3827
- }), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", A = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", M = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3832
+ }), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", z = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", M = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3828
3833
  Ce.useEffect(() => {
3829
3834
  if (typeof window < "u") {
3830
3835
  const m = () => R(window.innerWidth < 768);
@@ -3894,7 +3899,7 @@ const Ns = [
3894
3899
  }, l = {
3895
3900
  width: "100%",
3896
3901
  padding: W ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3897
- backgroundColor: A,
3902
+ backgroundColor: z,
3898
3903
  border: `1px solid ${M}`,
3899
3904
  borderRadius: "10px",
3900
3905
  color: G,
@@ -4566,7 +4571,7 @@ const Ns = [
4566
4571
  display: "flex",
4567
4572
  alignItems: "flex-start"
4568
4573
  },
4569
- children: /* @__PURE__ */ r.jsx(At, { size: 24 })
4574
+ children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4570
4575
  }
4571
4576
  ),
4572
4577
  /* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
@@ -4727,7 +4732,7 @@ const Ns = [
4727
4732
  color: "white",
4728
4733
  flexShrink: 0
4729
4734
  },
4730
- children: /* @__PURE__ */ r.jsx(At, { size: 24 })
4735
+ children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
4731
4736
  }
4732
4737
  ),
4733
4738
  /* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
@@ -6472,7 +6477,7 @@ const Ns = [
6472
6477
  onVerify: s,
6473
6478
  primaryColor: i = "#00C212"
6474
6479
  }) => {
6475
- const a = ge(), [o, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, A] = P(!1), [M, J] = P({
6480
+ const a = ge(), [o, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
6476
6481
  email: "",
6477
6482
  otp: ""
6478
6483
  }), [H, L] = P(!1), [Y, l] = P(!1);
@@ -6632,7 +6637,7 @@ const Ns = [
6632
6637
  const ye = (v, _) => {
6633
6638
  let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
6634
6639
  return Z = Math.min(255, Math.max(0, Z)), de = Math.min(255, Math.max(0, de)), Be = Math.min(255, Math.max(0, Be)), `#${(Be | de << 8 | Z << 16).toString(16).padStart(6, "0")}`;
6635
- }, z = t ? {
6640
+ }, A = t ? {
6636
6641
  background: "#000000",
6637
6642
  surface: "#09090b",
6638
6643
  surfaceLight: "#27272a",
@@ -6671,7 +6676,7 @@ const Ns = [
6671
6676
  display: "flex",
6672
6677
  alignItems: "center",
6673
6678
  justifyContent: "center",
6674
- color: z.textPrimary,
6679
+ color: A.textPrimary,
6675
6680
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6676
6681
  },
6677
6682
  children: /* @__PURE__ */ r.jsxs(
@@ -6689,12 +6694,12 @@ const Ns = [
6689
6694
  se,
6690
6695
  {
6691
6696
  size: 40,
6692
- color: z.accent,
6697
+ color: A.accent,
6693
6698
  style: { animation: "spin 1s linear infinite" },
6694
6699
  "aria-hidden": "true"
6695
6700
  }
6696
6701
  ),
6697
- /* @__PURE__ */ r.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "Loading your profile..." })
6702
+ /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "Loading your profile..." })
6698
6703
  ]
6699
6704
  }
6700
6705
  )
@@ -6710,7 +6715,7 @@ const Ns = [
6710
6715
  display: "flex",
6711
6716
  alignItems: "center",
6712
6717
  justifyContent: "center",
6713
- color: z.textPrimary,
6718
+ color: A.textPrimary,
6714
6719
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6715
6720
  },
6716
6721
  children: /* @__PURE__ */ r.jsxs(
@@ -6724,8 +6729,8 @@ const Ns = [
6724
6729
  textAlign: "center"
6725
6730
  },
6726
6731
  children: [
6727
- /* @__PURE__ */ r.jsx(ie, { size: 40, color: z.error, "aria-hidden": "true" }),
6728
- /* @__PURE__ */ r.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6732
+ /* @__PURE__ */ r.jsx(ie, { size: 40, color: A.error, "aria-hidden": "true" }),
6733
+ /* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6729
6734
  ]
6730
6735
  }
6731
6736
  )
@@ -6785,7 +6790,7 @@ const Ns = [
6785
6790
  display: "flex",
6786
6791
  alignItems: "center",
6787
6792
  justifyContent: "center",
6788
- color: z.textPrimary,
6793
+ color: A.textPrimary,
6789
6794
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6790
6795
  lineHeight: 1.5,
6791
6796
  minHeight: "80vh"
@@ -6871,7 +6876,7 @@ const Ns = [
6871
6876
  "section",
6872
6877
  {
6873
6878
  style: {
6874
- backgroundColor: z.surface,
6879
+ backgroundColor: A.surface,
6875
6880
  borderRadius: "16px",
6876
6881
  position: "relative",
6877
6882
  padding: "24px",
@@ -6925,7 +6930,7 @@ const Ns = [
6925
6930
  borderRadius: "50%",
6926
6931
  objectFit: "cover",
6927
6932
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6928
- border: `3px solid ${z.border}`
6933
+ border: `3px solid ${A.border}`
6929
6934
  },
6930
6935
  width: 128,
6931
6936
  height: 128,
@@ -6940,7 +6945,7 @@ const Ns = [
6940
6945
  position: "absolute",
6941
6946
  bottom: "8px",
6942
6947
  right: "8px",
6943
- backgroundColor: z.accent,
6948
+ backgroundColor: A.accent,
6944
6949
  color: "white",
6945
6950
  padding: "8px",
6946
6951
  borderRadius: "50%",
@@ -6967,7 +6972,7 @@ const Ns = [
6967
6972
  fontSize: "24px",
6968
6973
  fontWeight: 600,
6969
6974
  margin: "0 0 4px 0",
6970
- color: z.textPrimary
6975
+ color: A.textPrimary
6971
6976
  },
6972
6977
  children: d.name
6973
6978
  }
@@ -6979,7 +6984,7 @@ const Ns = [
6979
6984
  fontSize: "18px",
6980
6985
  fontWeight: 600,
6981
6986
  margin: "0 0 4px 0",
6982
- color: z.textTertiary
6987
+ color: A.textTertiary
6983
6988
  },
6984
6989
  children: [
6985
6990
  "@",
@@ -6991,7 +6996,7 @@ const Ns = [
6991
6996
  "p",
6992
6997
  {
6993
6998
  style: {
6994
- color: z.textTertiary,
6999
+ color: A.textTertiary,
6995
7000
  margin: "0 0 8px 0"
6996
7001
  },
6997
7002
  children: d.email
@@ -7002,7 +7007,7 @@ const Ns = [
7002
7007
  {
7003
7008
  style: {
7004
7009
  backgroundColor: d.isVerified ? t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7005
- color: d.isVerified ? z.success : z.warning,
7010
+ color: d.isVerified ? A.success : A.warning,
7006
7011
  border: `1px solid ${d.isVerified ? t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
7007
7012
  padding: "6px 12px",
7008
7013
  borderRadius: "20px",
@@ -7036,9 +7041,9 @@ const Ns = [
7036
7041
  {
7037
7042
  onClick: () => E(!1),
7038
7043
  style: {
7039
- backgroundColor: z.surfaceLight,
7040
- border: `1px solid ${z.border}`,
7041
- color: z.textPrimary,
7044
+ backgroundColor: A.surfaceLight,
7045
+ border: `1px solid ${A.border}`,
7046
+ color: A.textPrimary,
7042
7047
  padding: "10px 20px",
7043
7048
  borderRadius: "6px",
7044
7049
  borderStyle: "solid",
@@ -7066,7 +7071,7 @@ const Ns = [
7066
7071
  onClick: B,
7067
7072
  disabled: u,
7068
7073
  style: {
7069
- background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
7074
+ background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7070
7075
  opacity: u ? 0.7 : 1,
7071
7076
  color: "white",
7072
7077
  padding: "10px 20px",
@@ -7103,7 +7108,7 @@ const Ns = [
7103
7108
  {
7104
7109
  onClick: () => E(!0),
7105
7110
  style: {
7106
- background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
7111
+ background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
7107
7112
  color: "white",
7108
7113
  padding: "10px 20px",
7109
7114
  borderRadius: "6px",
@@ -7168,8 +7173,8 @@ const Ns = [
7168
7173
  "button",
7169
7174
  {
7170
7175
  style: {
7171
- backgroundColor: z.surfaceLight,
7172
- color: z.textPrimary,
7176
+ backgroundColor: A.surfaceLight,
7177
+ color: A.textPrimary,
7173
7178
  padding: "10px 20px",
7174
7179
  borderRadius: "6px",
7175
7180
  border: "none",
@@ -7202,8 +7207,8 @@ const Ns = [
7202
7207
  bottom: "100%",
7203
7208
  left: 0,
7204
7209
  right: 0,
7205
- backgroundColor: z.surface,
7206
- border: `1px solid ${z.border}`,
7210
+ backgroundColor: A.surface,
7211
+ border: `1px solid ${A.border}`,
7207
7212
  borderRadius: "12px 12px 0 0",
7208
7213
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
7209
7214
  zIndex: 200,
@@ -7223,7 +7228,7 @@ const Ns = [
7223
7228
  padding: "14px 18px",
7224
7229
  backgroundColor: "transparent",
7225
7230
  border: "none",
7226
- color: z.textPrimary,
7231
+ color: A.textPrimary,
7227
7232
  cursor: "pointer",
7228
7233
  transition: "all 0.2s ease",
7229
7234
  fontSize: "13px",
@@ -7233,7 +7238,7 @@ const Ns = [
7233
7238
  gap: "8px",
7234
7239
  textAlign: "left"
7235
7240
  },
7236
- onMouseEnter: (v) => v.currentTarget.style.backgroundColor = z.surfaceLight,
7241
+ onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
7237
7242
  onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
7238
7243
  children: [
7239
7244
  /* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
@@ -7327,7 +7332,7 @@ const Ns = [
7327
7332
  "section",
7328
7333
  {
7329
7334
  style: {
7330
- backgroundColor: z.surface,
7335
+ backgroundColor: A.surface,
7331
7336
  borderRadius: "16px",
7332
7337
  padding: "24px",
7333
7338
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7340,7 +7345,7 @@ const Ns = [
7340
7345
  fontSize: "20px",
7341
7346
  fontWeight: 600,
7342
7347
  margin: "0 0 24px 0",
7343
- color: z.textSecondary,
7348
+ color: A.textSecondary,
7344
7349
  display: "flex",
7345
7350
  alignItems: "center",
7346
7351
  gap: "8px"
@@ -7378,7 +7383,7 @@ const Ns = [
7378
7383
  "label",
7379
7384
  {
7380
7385
  style: {
7381
- color: z.textTertiary,
7386
+ color: A.textTertiary,
7382
7387
  fontSize: "12px",
7383
7388
  fontWeight: 500,
7384
7389
  display: "flex",
@@ -7405,7 +7410,7 @@ const Ns = [
7405
7410
  borderRadius: "8px",
7406
7411
  border: `1px solid ${i}`,
7407
7412
  backgroundColor: "transparent",
7408
- color: z.textPrimary,
7413
+ color: A.textPrimary,
7409
7414
  fontSize: "12px",
7410
7415
  outline: "none",
7411
7416
  transition: "border-color 0.2s ease",
@@ -7429,7 +7434,7 @@ const Ns = [
7429
7434
  display: "flex",
7430
7435
  alignItems: "center",
7431
7436
  boxSizing: "border-box",
7432
- color: z.textPrimary,
7437
+ color: A.textPrimary,
7433
7438
  backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
7434
7439
  },
7435
7440
  children: v.value
@@ -7449,7 +7454,7 @@ const Ns = [
7449
7454
  "section",
7450
7455
  {
7451
7456
  style: {
7452
- backgroundColor: z.surface,
7457
+ backgroundColor: A.surface,
7453
7458
  borderRadius: "16px",
7454
7459
  padding: "30px 24px",
7455
7460
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -7462,7 +7467,7 @@ const Ns = [
7462
7467
  fontSize: "20px",
7463
7468
  fontWeight: 600,
7464
7469
  margin: "0 0 24px 0",
7465
- color: z.textSecondary,
7470
+ color: A.textSecondary,
7466
7471
  display: "flex",
7467
7472
  alignItems: "center",
7468
7473
  gap: "8px"
@@ -7499,7 +7504,7 @@ const Ns = [
7499
7504
  display: "flex",
7500
7505
  alignItems: "center",
7501
7506
  gap: "12px",
7502
- color: z.textSecondary
7507
+ color: A.textSecondary
7503
7508
  },
7504
7509
  children: [
7505
7510
  /* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
@@ -7520,11 +7525,11 @@ const Ns = [
7520
7525
  gap: "6px",
7521
7526
  ...d.isVerified ? {
7522
7527
  backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7523
- color: z.success,
7528
+ color: A.success,
7524
7529
  border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7525
7530
  } : {
7526
7531
  backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7527
- color: z.warning,
7532
+ color: A.warning,
7528
7533
  border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7529
7534
  }
7530
7535
  },
@@ -7552,7 +7557,7 @@ const Ns = [
7552
7557
  "p",
7553
7558
  {
7554
7559
  style: {
7555
- color: z.textTertiary,
7560
+ color: A.textTertiary,
7556
7561
  fontSize: "12px",
7557
7562
  margin: 0
7558
7563
  },
@@ -7583,7 +7588,7 @@ const Ns = [
7583
7588
  I(!1);
7584
7589
  },
7585
7590
  onUpdate: oe,
7586
- colors: z
7591
+ colors: A
7587
7592
  }
7588
7593
  ),
7589
7594
  /* @__PURE__ */ r.jsx(
@@ -7594,7 +7599,7 @@ const Ns = [
7594
7599
  onClose: () => g(!1),
7595
7600
  onSuccess: (v) => m("success", v),
7596
7601
  onError: (v) => m("error", v),
7597
- colors: z
7602
+ colors: A
7598
7603
  }
7599
7604
  ),
7600
7605
  /* @__PURE__ */ r.jsx(
@@ -7605,7 +7610,7 @@ const Ns = [
7605
7610
  onClose: () => N(!1),
7606
7611
  onSuccess: (v) => m("success", v),
7607
7612
  onError: (v) => m("error", v),
7608
- colors: z
7613
+ colors: A
7609
7614
  }
7610
7615
  ),
7611
7616
  /* @__PURE__ */ r.jsx(
@@ -7622,7 +7627,7 @@ const Ns = [
7622
7627
  otpSent: H,
7623
7628
  verifying: Y,
7624
7629
  user: d,
7625
- colors: z,
7630
+ colors: A,
7626
7631
  darkMode: t
7627
7632
  }
7628
7633
  ),
@@ -7824,7 +7829,7 @@ const Ns = [
7824
7829
  accent: e,
7825
7830
  accentHover: `${e}e6`,
7826
7831
  error: "#ef4444"
7827
- }, A = {
7832
+ }, z = {
7828
7833
  wrapper: {
7829
7834
  position: "relative",
7830
7835
  display: "inline-block"
@@ -8088,7 +8093,7 @@ const Ns = [
8088
8093
  return /* @__PURE__ */ r.jsxs(
8089
8094
  "div",
8090
8095
  {
8091
- style: A.wrapper,
8096
+ style: z.wrapper,
8092
8097
  ref: q,
8093
8098
  className: a,
8094
8099
  role: "menu",
@@ -8149,7 +8154,7 @@ const Ns = [
8149
8154
  "div",
8150
8155
  {
8151
8156
  ref: O,
8152
- style: A.avatarButton,
8157
+ style: z.avatarButton,
8153
8158
  onClick: () => I((l) => !l),
8154
8159
  onKeyDown: (l) => J(l, () => I((m) => !m)),
8155
8160
  tabIndex: 0,
@@ -8172,7 +8177,7 @@ const Ns = [
8172
8177
  {
8173
8178
  src: C.avatarUrl,
8174
8179
  alt: `${C.name}'s avatar`,
8175
- style: A.avatarImage,
8180
+ style: z.avatarImage,
8176
8181
  loading: "lazy",
8177
8182
  onError: (l) => {
8178
8183
  const m = l.target;
@@ -8184,29 +8189,29 @@ const Ns = [
8184
8189
  {
8185
8190
  src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
8186
8191
  alt: "Default user avatar",
8187
- style: A.avatarImage,
8192
+ style: z.avatarImage,
8188
8193
  loading: "lazy"
8189
8194
  }
8190
8195
  ),
8191
- !R && /* @__PURE__ */ r.jsxs("div", { style: A.userInfo, children: [
8192
- /* @__PURE__ */ r.jsx("div", { style: A.userName, title: C?.name, children: C?.name || "Guest" }),
8193
- C?.email && /* @__PURE__ */ r.jsx("div", { style: A.userEmail, title: C.email, children: C.email })
8196
+ !R && /* @__PURE__ */ r.jsxs("div", { style: z.userInfo, children: [
8197
+ /* @__PURE__ */ r.jsx("div", { style: z.userName, title: C?.name, children: C?.name || "Guest" }),
8198
+ C?.email && /* @__PURE__ */ r.jsx("div", { style: z.userEmail, title: C.email, children: C.email })
8194
8199
  ] }),
8195
8200
  /* @__PURE__ */ r.jsx(
8196
8201
  Zn,
8197
8202
  {
8198
8203
  size: R ? 14 : 16,
8199
- style: A.chevron,
8204
+ style: z.chevron,
8200
8205
  "aria-hidden": "true"
8201
8206
  }
8202
8207
  )
8203
8208
  ]
8204
8209
  }
8205
8210
  ),
8206
- h && /* @__PURE__ */ r.jsx("div", { style: A.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8211
+ h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
8207
8212
  "div",
8208
8213
  {
8209
- style: A.loadingContainer,
8214
+ style: z.loadingContainer,
8210
8215
  role: "status",
8211
8216
  "aria-live": "polite",
8212
8217
  children: [
@@ -8219,23 +8224,23 @@ const Ns = [
8219
8224
  "aria-hidden": "true"
8220
8225
  }
8221
8226
  ),
8222
- /* @__PURE__ */ r.jsxs("div", { style: A.loadingSkeleton, children: [
8223
- /* @__PURE__ */ r.jsx("div", { style: A.skeletonAvatar }),
8224
- /* @__PURE__ */ r.jsxs("div", { style: A.skeletonTextBlock, children: [
8225
- /* @__PURE__ */ r.jsx("div", { style: A.skeletonLineShort }),
8226
- /* @__PURE__ */ r.jsx("div", { style: A.skeletonLineLong })
8227
+ /* @__PURE__ */ r.jsxs("div", { style: z.loadingSkeleton, children: [
8228
+ /* @__PURE__ */ r.jsx("div", { style: z.skeletonAvatar }),
8229
+ /* @__PURE__ */ r.jsxs("div", { style: z.skeletonTextBlock, children: [
8230
+ /* @__PURE__ */ r.jsx("div", { style: z.skeletonLineShort }),
8231
+ /* @__PURE__ */ r.jsx("div", { style: z.skeletonLineLong })
8227
8232
  ] })
8228
8233
  ] })
8229
8234
  ]
8230
8235
  }
8231
8236
  ) : C ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
8232
- /* @__PURE__ */ r.jsxs("div", { style: A.userSection, children: [
8237
+ /* @__PURE__ */ r.jsxs("div", { style: z.userSection, children: [
8233
8238
  C?.avatarUrl ? /* @__PURE__ */ r.jsx(
8234
8239
  "img",
8235
8240
  {
8236
8241
  src: C.avatarUrl,
8237
8242
  alt: `${C.name}'s profile picture`,
8238
- style: A.dropdownAvatar,
8243
+ style: z.dropdownAvatar,
8239
8244
  loading: "lazy",
8240
8245
  onError: (l) => {
8241
8246
  const m = l.target;
@@ -8247,20 +8252,20 @@ const Ns = [
8247
8252
  {
8248
8253
  src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
8249
8254
  alt: `${C.name}'s default avatar`,
8250
- style: A.dropdownAvatar,
8255
+ style: z.dropdownAvatar,
8251
8256
  loading: "lazy"
8252
8257
  }
8253
8258
  ),
8254
- /* @__PURE__ */ r.jsxs("div", { style: A.dropdownUserInfo, children: [
8255
- /* @__PURE__ */ r.jsx("div", { style: A.dropdownUserName, title: C.name, children: C.name }),
8256
- /* @__PURE__ */ r.jsx("div", { style: A.dropdownUserEmail, title: C.email, children: C.email })
8259
+ /* @__PURE__ */ r.jsxs("div", { style: z.dropdownUserInfo, children: [
8260
+ /* @__PURE__ */ r.jsx("div", { style: z.dropdownUserName, title: C.name, children: C.name }),
8261
+ /* @__PURE__ */ r.jsx("div", { style: z.dropdownUserEmail, title: C.email, children: C.email })
8257
8262
  ] })
8258
8263
  ] }),
8259
- /* @__PURE__ */ r.jsxs("div", { style: A.dropdownSection, children: [
8264
+ /* @__PURE__ */ r.jsxs("div", { style: z.dropdownSection, children: [
8260
8265
  d && H() && /* @__PURE__ */ r.jsxs(
8261
8266
  "button",
8262
8267
  {
8263
- style: A.menuItem,
8268
+ style: z.menuItem,
8264
8269
  onClick: L,
8265
8270
  onMouseOver: (l) => {
8266
8271
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8272,15 +8277,15 @@ const Ns = [
8272
8277
  role: "menuitem",
8273
8278
  tabIndex: 0,
8274
8279
  children: [
8275
- /* @__PURE__ */ r.jsx(he, { style: A.icon, "aria-hidden": "true" }),
8276
- /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: y })
8280
+ /* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
8281
+ /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
8277
8282
  ]
8278
8283
  }
8279
8284
  ),
8280
8285
  x && c && /* @__PURE__ */ r.jsxs(
8281
8286
  "button",
8282
8287
  {
8283
- style: A.menuItem,
8288
+ style: z.menuItem,
8284
8289
  onClick: Y,
8285
8290
  onMouseOver: (l) => {
8286
8291
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8292,8 +8297,8 @@ const Ns = [
8292
8297
  role: "menuitem",
8293
8298
  tabIndex: 0,
8294
8299
  children: [
8295
- /* @__PURE__ */ r.jsx(Os, { style: A.icon, "aria-hidden": "true" }),
8296
- /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: k })
8300
+ /* @__PURE__ */ r.jsx(Os, { style: z.icon, "aria-hidden": "true" }),
8301
+ /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: k })
8297
8302
  ]
8298
8303
  }
8299
8304
  ),
@@ -8303,7 +8308,7 @@ const Ns = [
8303
8308
  href: C.profileUrl,
8304
8309
  target: "_self",
8305
8310
  rel: "noopener noreferrer",
8306
- style: A.menuItem,
8311
+ style: z.menuItem,
8307
8312
  onMouseOver: (l) => {
8308
8313
  l.currentTarget.style.backgroundColor = T.surfaceHover;
8309
8314
  },
@@ -8313,16 +8318,16 @@ const Ns = [
8313
8318
  role: "menuitem",
8314
8319
  tabIndex: 0,
8315
8320
  children: [
8316
- /* @__PURE__ */ r.jsx(pe, { style: A.icon, "aria-hidden": "true" }),
8317
- /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: E })
8321
+ /* @__PURE__ */ r.jsx(pe, { style: z.icon, "aria-hidden": "true" }),
8322
+ /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: E })
8318
8323
  ]
8319
8324
  }
8320
8325
  )
8321
8326
  ] }),
8322
- /* @__PURE__ */ r.jsx("div", { style: A.dropdownSection, children: /* @__PURE__ */ r.jsxs(
8327
+ /* @__PURE__ */ r.jsx("div", { style: z.dropdownSection, children: /* @__PURE__ */ r.jsxs(
8323
8328
  "button",
8324
8329
  {
8325
- style: A.logoutButton,
8330
+ style: z.logoutButton,
8326
8331
  onClick: n,
8327
8332
  onMouseOver: (l) => {
8328
8333
  l.currentTarget.style.backgroundColor = T.surfaceHover;
@@ -8337,15 +8342,15 @@ const Ns = [
8337
8342
  /* @__PURE__ */ r.jsx(
8338
8343
  ct,
8339
8344
  {
8340
- style: { ...A.icon, color: T.error },
8345
+ style: { ...z.icon, color: T.error },
8341
8346
  "aria-hidden": "true"
8342
8347
  }
8343
8348
  ),
8344
- /* @__PURE__ */ r.jsx("span", { style: A.menuItemText, children: u })
8349
+ /* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: u })
8345
8350
  ]
8346
8351
  }
8347
8352
  ) })
8348
- ] }) : /* @__PURE__ */ r.jsxs("div", { style: A.errorState, role: "alert", children: [
8353
+ ] }) : /* @__PURE__ */ r.jsxs("div", { style: z.errorState, role: "alert", children: [
8349
8354
  /* @__PURE__ */ r.jsxs(
8350
8355
  "div",
8351
8356
  {
@@ -8359,7 +8364,7 @@ const Ns = [
8359
8364
  b && b !== "Not signed in" && /* @__PURE__ */ r.jsx(
8360
8365
  "button",
8361
8366
  {
8362
- style: A.retryButton,
8367
+ style: z.retryButton,
8363
8368
  onClick: M,
8364
8369
  onMouseOver: (l) => {
8365
8370
  l.currentTarget.style.backgroundColor = T.accentHover;