@neuctra/authix 1.0.21 → 1.1.1

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 zt, { forwardRef as _t, createElement as Ze, useState as P, useEffect as ie, useRef as ut } from "react";
1
+ import At, { forwardRef as _t, createElement as Ze, useState as I, useEffect as ie, useRef as ut } from "react";
2
2
  function Nt(e, t) {
3
3
  return function() {
4
4
  return e.apply(t, arguments);
@@ -87,11 +87,11 @@ const Rr = (e, t, r, { allOwnKeys: s } = {}) => (Ie(t, (o, i) => {
87
87
  e = r !== !1 && ot(e);
88
88
  } while (e && (!r || r(e, t)) && e !== Object.prototype);
89
89
  return t;
90
- }, Ar = (e, t, r) => {
90
+ }, zr = (e, t, r) => {
91
91
  e = String(e), (r === void 0 || r > e.length) && (r = e.length), r -= t.length;
92
92
  const s = e.indexOf(t, r);
93
93
  return s !== -1 && s === r;
94
- }, zr = (e) => {
94
+ }, Ar = (e) => {
95
95
  if (!e) return null;
96
96
  if (je(e)) return e;
97
97
  let t = e.length;
@@ -212,8 +212,8 @@ const Hr = (e) => {
212
212
  toFlatObject: Or,
213
213
  kindOf: Me,
214
214
  kindOfTest: oe,
215
- endsWith: Ar,
216
- toArray: zr,
215
+ endsWith: zr,
216
+ toArray: Ar,
217
217
  forEachEntry: Nr,
218
218
  matchAll: $r,
219
219
  isHTMLForm: Ur,
@@ -237,10 +237,10 @@ const Hr = (e) => {
237
237
  asap: Kr,
238
238
  isIterable: Jr
239
239
  };
240
- function z(e, t, r, s, o) {
240
+ function A(e, t, r, s, o) {
241
241
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), r && (this.config = r), s && (this.request = s), o && (this.response = o, this.status = o.status ? o.status : null);
242
242
  }
243
- u.inherits(z, Error, {
243
+ u.inherits(A, Error, {
244
244
  toJSON: function() {
245
245
  return {
246
246
  // Standard
@@ -261,7 +261,7 @@ u.inherits(z, Error, {
261
261
  };
262
262
  }
263
263
  });
264
- const Wt = z.prototype, qt = {};
264
+ const Wt = A.prototype, qt = {};
265
265
  [
266
266
  "ERR_BAD_OPTION_VALUE",
267
267
  "ERR_BAD_OPTION",
@@ -279,15 +279,15 @@ const Wt = z.prototype, qt = {};
279
279
  ].forEach((e) => {
280
280
  qt[e] = { value: e };
281
281
  });
282
- Object.defineProperties(z, qt);
282
+ Object.defineProperties(A, qt);
283
283
  Object.defineProperty(Wt, "isAxiosError", { value: !0 });
284
- z.from = (e, t, r, s, o, i) => {
284
+ A.from = (e, t, r, s, o, i) => {
285
285
  const a = Object.create(Wt);
286
286
  u.toFlatObject(e, a, function(c) {
287
287
  return c !== Error.prototype;
288
288
  }, (p) => p !== "isAxiosError");
289
289
  const l = e && e.message ? e.message : "Error", h = t == null && e ? e.code : t;
290
- return z.call(a, l, h, r, s, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a;
290
+ return A.call(a, l, h, r, s, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", i && Object.assign(a, i), a;
291
291
  };
292
292
  const Xr = null;
293
293
  function et(e) {
@@ -327,7 +327,7 @@ function We(e, t, r) {
327
327
  if (u.isBoolean(d))
328
328
  return d.toString();
329
329
  if (!h && u.isBlob(d))
330
- throw new z("Blob is not supported. Use a Buffer instead.");
330
+ throw new A("Blob is not supported. Use a Buffer instead.");
331
331
  return u.isArrayBuffer(d) || u.isTypedArray(d) ? h && typeof Blob == "function" ? new Blob([d]) : Buffer.from(d) : d;
332
332
  }
333
333
  function c(d, b, g) {
@@ -336,11 +336,11 @@ function We(e, t, r) {
336
336
  if (u.endsWith(b, "{}"))
337
337
  b = s ? b : b.slice(0, -2), d = JSON.stringify(d);
338
338
  else if (u.isArray(d) && Gr(d) || (u.isFileList(d) || u.endsWith(b, "[]")) && ($ = u.toArray(d)))
339
- return b = Ht(b), $.forEach(function(O, C) {
340
- !(u.isUndefined(O) || O === null) && t.append(
339
+ return b = Ht(b), $.forEach(function(P, E) {
340
+ !(u.isUndefined(P) || P === null) && t.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- a === !0 ? ft([b], C, i) : a === null ? b : b + "[]",
343
- p(O)
342
+ a === !0 ? ft([b], E, i) : a === null ? b : b + "[]",
343
+ p(P)
344
344
  );
345
345
  }), !1;
346
346
  }
@@ -578,7 +578,7 @@ const Pe = {
578
578
  return JSON.parse(t, this.parseReviver);
579
579
  } catch (l) {
580
580
  if (a)
581
- throw l.name === "SyntaxError" ? z.from(l, z.ERR_BAD_RESPONSE, this, null, this.response) : l;
581
+ throw l.name === "SyntaxError" ? A.from(l, A.ERR_BAD_RESPONSE, this, null, this.response) : l;
582
582
  }
583
583
  }
584
584
  return t;
@@ -821,16 +821,16 @@ function Xt(e) {
821
821
  return !!(e && e.__CANCEL__);
822
822
  }
823
823
  function ve(e, t, r) {
824
- z.call(this, e ?? "canceled", z.ERR_CANCELED, t, r), this.name = "CanceledError";
824
+ A.call(this, e ?? "canceled", A.ERR_CANCELED, t, r), this.name = "CanceledError";
825
825
  }
826
- u.inherits(ve, z, {
826
+ u.inherits(ve, A, {
827
827
  __CANCEL__: !0
828
828
  });
829
829
  function Gt(e, t, r) {
830
830
  const s = r.config.validateStatus;
831
- !r.status || !s || s(r.status) ? e(r) : t(new z(
831
+ !r.status || !s || s(r.status) ? e(r) : t(new A(
832
832
  "Request failed with status code " + r.status,
833
- [z.ERR_BAD_REQUEST, z.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
833
+ [A.ERR_BAD_REQUEST, A.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
834
834
  r.config,
835
835
  r.request,
836
836
  r
@@ -1034,46 +1034,46 @@ const Qt = (e) => {
1034
1034
  function $() {
1035
1035
  if (!g)
1036
1036
  return;
1037
- const O = re.from(
1037
+ const P = re.from(
1038
1038
  "getAllResponseHeaders" in g && g.getAllResponseHeaders()
1039
- ), M = {
1039
+ ), L = {
1040
1040
  data: !l || l === "text" || l === "json" ? g.responseText : g.response,
1041
1041
  status: g.status,
1042
1042
  statusText: g.statusText,
1043
- headers: O,
1043
+ headers: P,
1044
1044
  config: e,
1045
1045
  request: g
1046
1046
  };
1047
- Gt(function(A) {
1048
- r(A), b();
1049
- }, function(A) {
1050
- s(A), b();
1051
- }, M), g = null;
1047
+ Gt(function(O) {
1048
+ r(O), b();
1049
+ }, function(O) {
1050
+ s(O), b();
1051
+ }, L), g = null;
1052
1052
  }
1053
1053
  "onloadend" in g ? g.onloadend = $ : g.onreadystatechange = function() {
1054
1054
  !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout($);
1055
1055
  }, g.onabort = function() {
1056
- g && (s(new z("Request aborted", z.ECONNABORTED, e, g)), g = null);
1057
- }, g.onerror = function(C) {
1058
- const M = C && C.message ? C.message : "Network Error", y = new z(M, z.ERR_NETWORK, e, g);
1059
- y.event = C || null, s(y), g = null;
1056
+ g && (s(new A("Request aborted", A.ECONNABORTED, e, g)), g = null);
1057
+ }, g.onerror = function(E) {
1058
+ const L = E && E.message ? E.message : "Network Error", y = new A(L, A.ERR_NETWORK, e, g);
1059
+ y.event = E || null, s(y), g = null;
1060
1060
  }, g.ontimeout = function() {
1061
- let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1062
- const M = o.transitional || Kt;
1063
- o.timeoutErrorMessage && (C = o.timeoutErrorMessage), s(new z(
1064
- C,
1065
- M.clarifyTimeoutError ? z.ETIMEDOUT : z.ECONNABORTED,
1061
+ let E = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1062
+ const L = o.transitional || Kt;
1063
+ o.timeoutErrorMessage && (E = o.timeoutErrorMessage), s(new A(
1064
+ E,
1065
+ L.clarifyTimeoutError ? A.ETIMEDOUT : A.ECONNABORTED,
1066
1066
  e,
1067
1067
  g
1068
1068
  )), g = null;
1069
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in g && u.forEach(a.toJSON(), function(C, M) {
1070
- g.setRequestHeader(M, C);
1071
- }), u.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), p && ([R, d] = Fe(p, !0), g.addEventListener("progress", R)), h && g.upload && ([m, v] = Fe(h), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (O) => {
1072
- g && (s(!O || O.type ? new ve(null, e, g) : O), g.abort(), g = null);
1069
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in g && u.forEach(a.toJSON(), function(E, L) {
1070
+ g.setRequestHeader(L, E);
1071
+ }), u.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), p && ([R, d] = Fe(p, !0), g.addEventListener("progress", R)), h && g.upload && ([m, v] = Fe(h), g.upload.addEventListener("progress", m), g.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (c = (P) => {
1072
+ g && (s(!P || P.type ? new ve(null, e, g) : P), g.abort(), g = null);
1073
1073
  }, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
1074
1074
  const _ = bn(o.url);
1075
1075
  if (_ && ee.protocols.indexOf(_) === -1) {
1076
- s(new z("Unsupported protocol " + _ + ":", z.ERR_BAD_REQUEST, e));
1076
+ s(new A("Unsupported protocol " + _ + ":", A.ERR_BAD_REQUEST, e));
1077
1077
  return;
1078
1078
  }
1079
1079
  g.send(i || null);
@@ -1086,11 +1086,11 @@ const Qt = (e) => {
1086
1086
  if (!o) {
1087
1087
  o = !0, l();
1088
1088
  const c = p instanceof Error ? p : this.reason;
1089
- s.abort(c instanceof z ? c : new ve(c instanceof Error ? c.message : c));
1089
+ s.abort(c instanceof A ? c : new ve(c instanceof Error ? c.message : c));
1090
1090
  }
1091
1091
  };
1092
1092
  let a = t && setTimeout(() => {
1093
- a = null, i(new z(`timeout ${t} of ms exceeded`, z.ETIMEDOUT));
1093
+ a = null, i(new A(`timeout ${t} of ms exceeded`, A.ETIMEDOUT));
1094
1094
  }, t);
1095
1095
  const l = () => {
1096
1096
  e && (a && clearTimeout(a), a = null, e.forEach((p) => {
@@ -1158,7 +1158,7 @@ const Qt = (e) => {
1158
1158
  }, {
1159
1159
  highWaterMark: 2
1160
1160
  });
1161
- }, jt = 64 * 1024, { isFunction: Ae } = u, An = (({ Request: e, Response: t }) => ({
1161
+ }, jt = 64 * 1024, { isFunction: ze } = u, zn = (({ Request: e, Response: t }) => ({
1162
1162
  Request: e,
1163
1163
  Response: t
1164
1164
  }))(u.global), {
@@ -1170,14 +1170,14 @@ const Qt = (e) => {
1170
1170
  } catch {
1171
1171
  return !1;
1172
1172
  }
1173
- }, zn = (e) => {
1173
+ }, An = (e) => {
1174
1174
  e = u.merge.call({
1175
1175
  skipUndefined: !0
1176
- }, An, e);
1177
- const { fetch: t, Request: r, Response: s } = e, o = t ? Ae(t) : typeof fetch == "function", i = Ae(r), a = Ae(s);
1176
+ }, zn, e);
1177
+ const { fetch: t, Request: r, Response: s } = e, o = t ? ze(t) : typeof fetch == "function", i = ze(r), a = ze(s);
1178
1178
  if (!o)
1179
1179
  return !1;
1180
- const l = o && Ae(vt), h = o && (typeof St == "function" ? /* @__PURE__ */ ((d) => (b) => d.encode(b))(new St()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), p = i && l && kt(() => {
1180
+ const l = o && ze(vt), h = o && (typeof St == "function" ? /* @__PURE__ */ ((d) => (b) => d.encode(b))(new St()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), p = i && l && kt(() => {
1181
1181
  let d = !1;
1182
1182
  const b = new r(ee.origin, {
1183
1183
  body: new vt(),
@@ -1195,7 +1195,7 @@ const Qt = (e) => {
1195
1195
  let $ = b && b[d];
1196
1196
  if ($)
1197
1197
  return $.call(b);
1198
- throw new z(`Response type '${d}' is not supported`, z.ERR_NOT_SUPPORT, g);
1198
+ throw new A(`Response type '${d}' is not supported`, A.ERR_NOT_SUPPORT, g);
1199
1199
  });
1200
1200
  });
1201
1201
  const R = async (d) => {
@@ -1222,69 +1222,69 @@ const Qt = (e) => {
1222
1222
  method: g,
1223
1223
  data: $,
1224
1224
  signal: _,
1225
- cancelToken: O,
1226
- timeout: C,
1227
- onDownloadProgress: M,
1225
+ cancelToken: P,
1226
+ timeout: E,
1227
+ onDownloadProgress: L,
1228
1228
  onUploadProgress: y,
1229
- responseType: A,
1229
+ responseType: O,
1230
1230
  headers: w,
1231
1231
  withCredentials: D = "same-origin",
1232
1232
  fetchOptions: K
1233
1233
  } = Qt(d), U = t || fetch;
1234
- A = A ? (A + "").toLowerCase() : "text";
1235
- let Y = Rn([_, O && O.toAbortSignal()], C), Q = null;
1236
- const k = Y && Y.unsubscribe && (() => {
1234
+ O = O ? (O + "").toLowerCase() : "text";
1235
+ let Y = Rn([_, P && P.toAbortSignal()], E), Q = null;
1236
+ const S = Y && Y.unsubscribe && (() => {
1237
1237
  Y.unsubscribe();
1238
1238
  });
1239
1239
  let Z;
1240
1240
  try {
1241
1241
  if (y && p && g !== "get" && g !== "head" && (Z = await v(w, $)) !== 0) {
1242
- let E = new r(b, {
1242
+ let k = new r(b, {
1243
1243
  method: "POST",
1244
1244
  body: $,
1245
1245
  duplex: "half"
1246
1246
  }), N;
1247
- if (u.isFormData($) && (N = E.headers.get("content-type")) && w.setContentType(N), E.body) {
1247
+ if (u.isFormData($) && (N = k.headers.get("content-type")) && w.setContentType(N), k.body) {
1248
1248
  const [B, f] = mt(
1249
1249
  Z,
1250
1250
  Fe(yt(y))
1251
1251
  );
1252
- $ = wt(E.body, jt, B, f);
1252
+ $ = wt(k.body, jt, B, f);
1253
1253
  }
1254
1254
  }
1255
1255
  u.isString(D) || (D = D ? "include" : "omit");
1256
- const L = i && "credentials" in r.prototype, F = {
1256
+ const M = i && "credentials" in r.prototype, F = {
1257
1257
  ...K,
1258
1258
  signal: Y,
1259
1259
  method: g.toUpperCase(),
1260
1260
  headers: w.normalize().toJSON(),
1261
1261
  body: $,
1262
1262
  duplex: "half",
1263
- credentials: L ? D : void 0
1263
+ credentials: M ? D : void 0
1264
1264
  };
1265
1265
  Q = i && new r(b, F);
1266
1266
  let T = await (i ? U(Q, K) : U(b, F));
1267
- const V = c && (A === "stream" || A === "response");
1268
- if (c && (M || V && k)) {
1269
- const E = {};
1267
+ const V = c && (O === "stream" || O === "response");
1268
+ if (c && (L || V && S)) {
1269
+ const k = {};
1270
1270
  ["status", "statusText", "headers"].forEach((j) => {
1271
- E[j] = T[j];
1271
+ k[j] = T[j];
1272
1272
  });
1273
- const N = u.toFiniteNumber(T.headers.get("content-length")), [B, f] = M && mt(
1273
+ const N = u.toFiniteNumber(T.headers.get("content-length")), [B, f] = L && mt(
1274
1274
  N,
1275
- Fe(yt(M), !0)
1275
+ Fe(yt(L), !0)
1276
1276
  ) || [];
1277
1277
  T = new s(
1278
1278
  wt(T.body, jt, B, () => {
1279
- f && f(), k && k();
1279
+ f && f(), S && S();
1280
1280
  }),
1281
- E
1281
+ k
1282
1282
  );
1283
1283
  }
1284
- A = A || "text";
1285
- let x = await m[u.findKey(m, A) || "text"](T, d);
1286
- return !V && k && k(), await new Promise((E, N) => {
1287
- Gt(E, N, {
1284
+ O = O || "text";
1285
+ let x = await m[u.findKey(m, O) || "text"](T, d);
1286
+ return !V && S && S(), await new Promise((k, N) => {
1287
+ Gt(k, N, {
1288
1288
  data: x,
1289
1289
  headers: re.from(T.headers),
1290
1290
  status: T.status,
@@ -1293,13 +1293,13 @@ const Qt = (e) => {
1293
1293
  request: Q
1294
1294
  });
1295
1295
  });
1296
- } catch (L) {
1297
- throw k && k(), L && L.name === "TypeError" && /Load failed|fetch/i.test(L.message) ? Object.assign(
1298
- new z("Network Error", z.ERR_NETWORK, d, Q),
1296
+ } catch (M) {
1297
+ throw S && S(), M && M.name === "TypeError" && /Load failed|fetch/i.test(M.message) ? Object.assign(
1298
+ new A("Network Error", A.ERR_NETWORK, d, Q),
1299
1299
  {
1300
- cause: L.cause || L
1300
+ cause: M.cause || M
1301
1301
  }
1302
- ) : z.from(L, L && L.code, d, Q);
1302
+ ) : A.from(M, M && M.code, d, Q);
1303
1303
  }
1304
1304
  };
1305
1305
  }, _n = /* @__PURE__ */ new Map(), er = (e) => {
@@ -1311,7 +1311,7 @@ const Qt = (e) => {
1311
1311
  ];
1312
1312
  let a = i.length, l = a, h, p, c = _n;
1313
1313
  for (; l--; )
1314
- h = i[l], p = c.get(h), p === void 0 && c.set(h, p = l ? /* @__PURE__ */ new Map() : zn(t)), c = p;
1314
+ h = i[l], p = c.get(h), p === void 0 && c.set(h, p = l ? /* @__PURE__ */ new Map() : An(t)), c = p;
1315
1315
  return p;
1316
1316
  };
1317
1317
  er();
@@ -1341,7 +1341,7 @@ const Et = (e) => `- ${e}`, Nn = (e) => u.isFunction(e) || e === null || e === !
1341
1341
  s = e[a];
1342
1342
  let l;
1343
1343
  if (o = s, !Nn(s) && (o = rt[(l = String(s)).toLowerCase()], o === void 0))
1344
- throw new z(`Unknown adapter '${l}'`);
1344
+ throw new A(`Unknown adapter '${l}'`);
1345
1345
  if (o && (u.isFunction(o) || (o = o.get(t))))
1346
1346
  break;
1347
1347
  i[l || "#" + a] = o;
@@ -1353,7 +1353,7 @@ const Et = (e) => `- ${e}`, Nn = (e) => u.isFunction(e) || e === null || e === !
1353
1353
  let l = r ? a.length > 1 ? `since :
1354
1354
  ` + a.map(Et).join(`
1355
1355
  `) : " " + Et(a[0]) : "as no adapter specified";
1356
- throw new z(
1356
+ throw new A(
1357
1357
  "There is no suitable adapter to dispatch the request " + l,
1358
1358
  "ERR_NOT_SUPPORT"
1359
1359
  );
@@ -1397,9 +1397,9 @@ qe.transitional = function(t, r, s) {
1397
1397
  }
1398
1398
  return (i, a, l) => {
1399
1399
  if (t === !1)
1400
- throw new z(
1400
+ throw new A(
1401
1401
  o(a, " has been removed" + (r ? " in " + r : "")),
1402
- z.ERR_DEPRECATED
1402
+ A.ERR_DEPRECATED
1403
1403
  );
1404
1404
  return r && !Tt[a] && (Tt[a] = !0, console.warn(
1405
1405
  o(
@@ -1414,7 +1414,7 @@ qe.spelling = function(t) {
1414
1414
  };
1415
1415
  function $n(e, t, r) {
1416
1416
  if (typeof e != "object")
1417
- throw new z("options must be an object", z.ERR_BAD_OPTION_VALUE);
1417
+ throw new A("options must be an object", A.ERR_BAD_OPTION_VALUE);
1418
1418
  const s = Object.keys(e);
1419
1419
  let o = s.length;
1420
1420
  for (; o-- > 0; ) {
@@ -1422,11 +1422,11 @@ function $n(e, t, r) {
1422
1422
  if (a) {
1423
1423
  const l = e[i], h = l === void 0 || a(l, i, e);
1424
1424
  if (h !== !0)
1425
- throw new z("option " + i + " must be " + h, z.ERR_BAD_OPTION_VALUE);
1425
+ throw new A("option " + i + " must be " + h, A.ERR_BAD_OPTION_VALUE);
1426
1426
  continue;
1427
1427
  }
1428
1428
  if (r !== !0)
1429
- throw new z("Unknown option " + i, z.ERR_BAD_OPTION);
1429
+ throw new A("Unknown option " + i, A.ERR_BAD_OPTION);
1430
1430
  }
1431
1431
  }
1432
1432
  const $e = {
@@ -1719,7 +1719,7 @@ W.CancelToken = Un;
1719
1719
  W.isCancel = Xt;
1720
1720
  W.VERSION = rr;
1721
1721
  W.toFormData = We;
1722
- W.AxiosError = z;
1722
+ W.AxiosError = A;
1723
1723
  W.Cancel = W.CanceledError;
1724
1724
  W.all = function(t) {
1725
1725
  return Promise.all(t);
@@ -1991,7 +1991,7 @@ class uo {
1991
1991
  return this.request("DELETE", `/users/${r}/data/${s}`);
1992
1992
  }
1993
1993
  }
1994
- var ze = { exports: {} }, Ee = {};
1994
+ var Ae = { exports: {} }, Ee = {};
1995
1995
  /**
1996
1996
  * @license React
1997
1997
  * react-jsx-runtime.production.js
@@ -2048,7 +2048,7 @@ function Mn() {
2048
2048
  return "Profiler";
2049
2049
  case g:
2050
2050
  return "StrictMode";
2051
- case M:
2051
+ case L:
2052
2052
  return "Suspense";
2053
2053
  case y:
2054
2054
  return "SuspenseList";
@@ -2061,19 +2061,19 @@ function Mn() {
2061
2061
  ), x.$$typeof) {
2062
2062
  case d:
2063
2063
  return "Portal";
2064
- case O:
2064
+ case P:
2065
2065
  return (x.displayName || "Context") + ".Provider";
2066
2066
  case _:
2067
2067
  return (x._context.displayName || "Context") + ".Consumer";
2068
- case C:
2069
- var E = x.render;
2070
- return x = x.displayName, x || (x = E.displayName || E.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
2071
- case A:
2072
- return E = x.displayName || null, E !== null ? E : e(x.type) || "Memo";
2068
+ case E:
2069
+ var k = x.render;
2070
+ return x = x.displayName, x || (x = k.displayName || k.name || "", x = x !== "" ? "ForwardRef(" + x + ")" : "ForwardRef"), x;
2071
+ case O:
2072
+ return k = x.displayName || null, k !== null ? k : e(x.type) || "Memo";
2073
2073
  case w:
2074
- E = x._payload, x = x._init;
2074
+ k = x._payload, x = x._init;
2075
2075
  try {
2076
- return e(x(E));
2076
+ return e(x(k));
2077
2077
  } catch {
2078
2078
  }
2079
2079
  }
@@ -2085,15 +2085,15 @@ function Mn() {
2085
2085
  function r(x) {
2086
2086
  try {
2087
2087
  t(x);
2088
- var E = !1;
2088
+ var k = !1;
2089
2089
  } catch {
2090
- E = !0;
2090
+ k = !0;
2091
2091
  }
2092
- if (E) {
2093
- E = console;
2094
- var N = E.error, B = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
2092
+ if (k) {
2093
+ k = console;
2094
+ var N = k.error, B = typeof Symbol == "function" && Symbol.toStringTag && x[Symbol.toStringTag] || x.constructor.name || "Object";
2095
2095
  return N.call(
2096
- E,
2096
+ k,
2097
2097
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2098
2098
  B
2099
2099
  ), t(x);
@@ -2104,8 +2104,8 @@ function Mn() {
2104
2104
  if (typeof x == "object" && x !== null && x.$$typeof === w)
2105
2105
  return "<...>";
2106
2106
  try {
2107
- var E = e(x);
2108
- return E ? "<" + E + ">" : "<...>";
2107
+ var k = e(x);
2108
+ return k ? "<" + k + ">" : "<...>";
2109
2109
  } catch {
2110
2110
  return "<...>";
2111
2111
  }
@@ -2119,16 +2119,16 @@ function Mn() {
2119
2119
  }
2120
2120
  function a(x) {
2121
2121
  if (Y.call(x, "key")) {
2122
- var E = Object.getOwnPropertyDescriptor(x, "key").get;
2123
- if (E && E.isReactWarning) return !1;
2122
+ var k = Object.getOwnPropertyDescriptor(x, "key").get;
2123
+ if (k && k.isReactWarning) return !1;
2124
2124
  }
2125
2125
  return x.key !== void 0;
2126
2126
  }
2127
- function l(x, E) {
2127
+ function l(x, k) {
2128
2128
  function N() {
2129
2129
  Z || (Z = !0, console.error(
2130
2130
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
2131
- E
2131
+ k
2132
2132
  ));
2133
2133
  }
2134
2134
  N.isReactWarning = !0, Object.defineProperty(x, "key", {
@@ -2138,15 +2138,15 @@ function Mn() {
2138
2138
  }
2139
2139
  function h() {
2140
2140
  var x = e(this.type);
2141
- return L[x] || (L[x] = !0, console.error(
2141
+ return M[x] || (M[x] = !0, console.error(
2142
2142
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
2143
2143
  )), x = this.props.ref, x !== void 0 ? x : null;
2144
2144
  }
2145
- function p(x, E, N, B, f, j, J, ne) {
2145
+ function p(x, k, N, B, f, j, J, ne) {
2146
2146
  return N = j.ref, x = {
2147
2147
  $$typeof: v,
2148
2148
  type: x,
2149
- key: E,
2149
+ key: k,
2150
2150
  props: j,
2151
2151
  _owner: f
2152
2152
  }, (N !== void 0 ? N : null) !== null ? Object.defineProperty(x, "ref", {
@@ -2174,8 +2174,8 @@ function Mn() {
2174
2174
  value: ne
2175
2175
  }), Object.freeze && (Object.freeze(x.props), Object.freeze(x)), x;
2176
2176
  }
2177
- function c(x, E, N, B, f, j, J, ne) {
2178
- var X = E.children;
2177
+ function c(x, k, N, B, f, j, J, ne) {
2178
+ var X = k.children;
2179
2179
  if (X !== void 0)
2180
2180
  if (B)
2181
2181
  if (Q(X)) {
@@ -2187,9 +2187,9 @@ function Mn() {
2187
2187
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2188
2188
  );
2189
2189
  else m(X);
2190
- if (Y.call(E, "key")) {
2190
+ if (Y.call(k, "key")) {
2191
2191
  X = e(x);
2192
- var se = Object.keys(E).filter(function(me) {
2192
+ var se = Object.keys(k).filter(function(me) {
2193
2193
  return me !== "key";
2194
2194
  });
2195
2195
  B = 0 < se.length ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}", V[X + B] || (se = 0 < se.length ? "{" + se.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -2205,11 +2205,11 @@ React keys must be passed directly to JSX without using spread:
2205
2205
  X
2206
2206
  ), V[X + B] = !0);
2207
2207
  }
2208
- if (X = null, N !== void 0 && (r(N), X = "" + N), a(E) && (r(E.key), X = "" + E.key), "key" in E) {
2208
+ if (X = null, N !== void 0 && (r(N), X = "" + N), a(k) && (r(k.key), X = "" + k.key), "key" in k) {
2209
2209
  N = {};
2210
- for (var le in E)
2211
- le !== "key" && (N[le] = E[le]);
2212
- } else N = E;
2210
+ for (var le in k)
2211
+ le !== "key" && (N[le] = k[le]);
2212
+ } else N = k;
2213
2213
  return X && l(
2214
2214
  N,
2215
2215
  typeof x == "function" ? x.displayName || x.name || "Unknown" : x
@@ -2227,7 +2227,7 @@ React keys must be passed directly to JSX without using spread:
2227
2227
  function m(x) {
2228
2228
  typeof x == "object" && x !== null && x.$$typeof === v && x._store && (x._store.validated = 1);
2229
2229
  }
2230
- var R = zt, v = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), O = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), A = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), U = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, Q = Array.isArray, k = console.createTask ? console.createTask : function() {
2230
+ var R = At, v = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), P = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), L = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), O = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), U = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, Q = Array.isArray, S = console.createTask ? console.createTask : function() {
2231
2231
  return null;
2232
2232
  };
2233
2233
  R = {
@@ -2235,40 +2235,40 @@ React keys must be passed directly to JSX without using spread:
2235
2235
  return x();
2236
2236
  }
2237
2237
  };
2238
- var Z, L = {}, F = R.react_stack_bottom_frame.bind(
2238
+ var Z, M = {}, F = R.react_stack_bottom_frame.bind(
2239
2239
  R,
2240
2240
  i
2241
- )(), T = k(s(i)), V = {};
2242
- Ce.Fragment = b, Ce.jsx = function(x, E, N, B, f) {
2241
+ )(), T = S(s(i)), V = {};
2242
+ Ce.Fragment = b, Ce.jsx = function(x, k, N, B, f) {
2243
2243
  var j = 1e4 > U.recentlyCreatedOwnerStacks++;
2244
2244
  return c(
2245
2245
  x,
2246
- E,
2246
+ k,
2247
2247
  N,
2248
2248
  !1,
2249
2249
  B,
2250
2250
  f,
2251
2251
  j ? Error("react-stack-top-frame") : F,
2252
- j ? k(s(x)) : T
2252
+ j ? S(s(x)) : T
2253
2253
  );
2254
- }, Ce.jsxs = function(x, E, N, B, f) {
2254
+ }, Ce.jsxs = function(x, k, N, B, f) {
2255
2255
  var j = 1e4 > U.recentlyCreatedOwnerStacks++;
2256
2256
  return c(
2257
2257
  x,
2258
- E,
2258
+ k,
2259
2259
  N,
2260
2260
  !0,
2261
2261
  B,
2262
2262
  f,
2263
2263
  j ? Error("react-stack-top-frame") : F,
2264
- j ? k(s(x)) : T
2264
+ j ? S(s(x)) : T
2265
2265
  );
2266
2266
  };
2267
2267
  })()), Ce;
2268
2268
  }
2269
2269
  var Pt;
2270
2270
  function Bn() {
2271
- return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? ze.exports = Ln() : ze.exports = Mn()), ze.exports;
2271
+ return Pt || (Pt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Ln() : Ae.exports = Mn()), Ae.exports;
2272
2272
  }
2273
2273
  var n = Bn();
2274
2274
  const Wn = async (e, t) => {
@@ -2768,20 +2768,20 @@ const Os = [
2768
2768
  * This source code is licensed under the ISC license.
2769
2769
  * See the LICENSE file in the root directory of this source tree.
2770
2770
  */
2771
- const As = [
2771
+ const zs = [
2772
2772
  ["path", { d: "M10 11v6", key: "nco0om" }],
2773
2773
  ["path", { d: "M14 11v6", key: "outv1u" }],
2774
2774
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
2775
2775
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
2776
2776
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
2777
- ], Ue = q("trash-2", As);
2777
+ ], Ue = q("trash-2", zs);
2778
2778
  /**
2779
2779
  * @license lucide-react v0.544.0 - ISC
2780
2780
  *
2781
2781
  * This source code is licensed under the ISC license.
2782
2782
  * See the LICENSE file in the root directory of this source tree.
2783
2783
  */
2784
- const zs = [
2784
+ const As = [
2785
2785
  [
2786
2786
  "path",
2787
2787
  {
@@ -2791,7 +2791,7 @@ const zs = [
2791
2791
  ],
2792
2792
  ["path", { d: "M12 9v4", key: "juzpu7" }],
2793
2793
  ["path", { d: "M12 17h.01", key: "p32p05" }]
2794
- ], At = q("triangle-alert", zs);
2794
+ ], zt = q("triangle-alert", As);
2795
2795
  /**
2796
2796
  * @license lucide-react v0.544.0 - ISC
2797
2797
  *
@@ -2851,33 +2851,33 @@ const Us = [
2851
2851
  email: "",
2852
2852
  password: "",
2853
2853
  ...h && { avatarUrl: "" }
2854
- }, [g, $] = P(b), [_, O] = P(!1), [C, M] = P(!1), [y, A] = P(null), [w, D] = P({}), K = typeof window < "u" ? window.innerWidth < 768 : !1, U = l ? "#ffffff" : "#111827", Y = l ? "#a1a1aa" : "#6b7280", Q = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", k = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", Z = (V) => {
2855
- const { name: x, value: E } = V.target;
2856
- $((N) => ({ ...N, [x]: E })), w[x] && D((N) => ({ ...N, [x]: void 0 }));
2857
- }, L = () => {
2854
+ }, [g, $] = I(b), [_, P] = I(!1), [E, L] = I(!1), [y, O] = I(null), [w, D] = I({}), K = typeof window < "u" ? window.innerWidth < 768 : !1, U = l ? "#ffffff" : "#111827", Y = l ? "#a1a1aa" : "#6b7280", Q = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", S = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", Z = (V) => {
2855
+ const { name: x, value: k } = V.target;
2856
+ $((N) => ({ ...N, [x]: k })), w[x] && D((N) => ({ ...N, [x]: void 0 }));
2857
+ }, M = () => {
2858
2858
  const V = {};
2859
2859
  return g.name.trim() || (V.name = "Name is required"), g.email.trim() ? /\S+@\S+\.\S+/.test(g.email) || (V.email = "Invalid email address") : V.email = "Email is required", g.password ? g.password.length < 6 && (V.password = "Password must be at least 6 characters") : V.password = "Password is required", D(V), Object.keys(V).length === 0;
2860
2860
  }, F = async (V) => {
2861
- if (V.preventDefault(), !!L()) {
2862
- M(!0), A(null);
2861
+ if (V.preventDefault(), !!M()) {
2862
+ L(!0), O(null);
2863
2863
  try {
2864
2864
  const x = {
2865
2865
  ...g,
2866
2866
  appId: d
2867
- }, E = await Wn(x, { baseUrl: R, apiKey: v });
2868
- A({ type: "success", text: "Account created successfully!" }), c && c(E);
2867
+ }, k = await Wn(x, { baseUrl: R, apiKey: v });
2868
+ O({ type: "success", text: "Account created successfully!" }), c && c(k);
2869
2869
  } catch (x) {
2870
- const E = x.message || "Signup failed. Please try again.";
2871
- A({ type: "error", text: E }), m && m(x);
2870
+ const k = x.message || "Signup failed. Please try again.";
2871
+ O({ type: "error", text: k }), m && m(x);
2872
2872
  } finally {
2873
- M(!1);
2873
+ L(!1);
2874
2874
  }
2875
2875
  }
2876
2876
  }, T = {
2877
2877
  width: "100%",
2878
2878
  padding: K ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
2879
2879
  backgroundColor: Q,
2880
- border: `1px solid ${k}`,
2880
+ border: `1px solid ${S}`,
2881
2881
  borderRadius: "10px",
2882
2882
  color: U,
2883
2883
  fontSize: "15px",
@@ -3031,7 +3031,7 @@ const Us = [
3031
3031
  onChange: Z,
3032
3032
  style: {
3033
3033
  ...T,
3034
- borderColor: w.name ? "#ef4444" : k
3034
+ borderColor: w.name ? "#ef4444" : S
3035
3035
  }
3036
3036
  }
3037
3037
  )
@@ -3086,7 +3086,7 @@ const Us = [
3086
3086
  onChange: Z,
3087
3087
  style: {
3088
3088
  ...T,
3089
- borderColor: w.email ? "#ef4444" : k
3089
+ borderColor: w.email ? "#ef4444" : S
3090
3090
  }
3091
3091
  }
3092
3092
  )
@@ -3141,7 +3141,7 @@ const Us = [
3141
3141
  onChange: Z,
3142
3142
  style: {
3143
3143
  ...T,
3144
- borderColor: w.password ? "#ef4444" : k
3144
+ borderColor: w.password ? "#ef4444" : S
3145
3145
  }
3146
3146
  }
3147
3147
  ),
@@ -3149,7 +3149,7 @@ const Us = [
3149
3149
  "button",
3150
3150
  {
3151
3151
  type: "button",
3152
- onClick: () => O(!_),
3152
+ onClick: () => P(!_),
3153
3153
  style: {
3154
3154
  position: "absolute",
3155
3155
  right: "14px",
@@ -3270,7 +3270,7 @@ const Us = [
3270
3270
  "button",
3271
3271
  {
3272
3272
  type: "submit",
3273
- disabled: C,
3273
+ disabled: E,
3274
3274
  style: {
3275
3275
  padding: "12px",
3276
3276
  background: a,
@@ -3279,14 +3279,14 @@ const Us = [
3279
3279
  borderRadius: "10px",
3280
3280
  fontSize: "14px",
3281
3281
  fontWeight: 600,
3282
- cursor: C ? "not-allowed" : "pointer",
3283
- opacity: C ? 0.7 : 1,
3282
+ cursor: E ? "not-allowed" : "pointer",
3283
+ opacity: E ? 0.7 : 1,
3284
3284
  display: "flex",
3285
3285
  alignItems: "center",
3286
3286
  justifyContent: "center",
3287
3287
  gap: "8px"
3288
3288
  },
3289
- children: C ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3289
+ children: E ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3290
3290
  /* @__PURE__ */ n.jsx(
3291
3291
  gs,
3292
3292
  {
@@ -3367,29 +3367,29 @@ const Us = [
3367
3367
  onSuccess: p,
3368
3368
  onError: c
3369
3369
  }) => {
3370
- const { baseUrl: m, apiKey: R, appId: v } = Se(), [d, b] = P("login"), [g, $] = P(1), [_, O] = P(!1), [C, M] = P(!1), [y, A] = P(null), [w, D] = P(""), [K, U] = P(""), [Y, Q] = P({
3370
+ const { baseUrl: m, apiKey: R, appId: v } = Se(), [d, b] = I("login"), [g, $] = I(1), [_, P] = I(!1), [E, L] = I(!1), [y, O] = I(null), [w, D] = I(""), [K, U] = I(""), [Y, Q] = I({
3371
3371
  email: "",
3372
3372
  otp: "",
3373
3373
  newPassword: "",
3374
3374
  appId: v
3375
- }), k = window.innerWidth < 768, Z = l ? "#ffffff" : "#111827", L = l ? "#a1a1aa" : "#6b7280", F = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", V = async (f) => {
3376
- f.preventDefault(), M(!0), A(null);
3375
+ }), S = window.innerWidth < 768, Z = l ? "#ffffff" : "#111827", M = l ? "#a1a1aa" : "#6b7280", F = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", V = async (f) => {
3376
+ f.preventDefault(), L(!0), O(null);
3377
3377
  try {
3378
3378
  const j = await Ds(
3379
3379
  { email: w, password: K, appId: v },
3380
3380
  { baseUrl: m, apiKey: R }
3381
3381
  );
3382
- A({ type: "success", text: `Welcome ${j.name}` }), p?.(j);
3382
+ O({ type: "success", text: `Welcome ${j.name}` }), p?.(j);
3383
3383
  } catch (j) {
3384
3384
  const J = j.message || "Login failed";
3385
- A({ type: "error", text: J }), c?.(j);
3385
+ O({ type: "error", text: J }), c?.(j);
3386
3386
  } finally {
3387
- M(!1);
3387
+ L(!1);
3388
3388
  }
3389
3389
  }, x = (f) => {
3390
3390
  Q({ ...Y, [f.target.name]: f.target.value });
3391
- }, E = async (f) => {
3392
- f.preventDefault(), M(!0), A(null);
3391
+ }, k = async (f) => {
3392
+ f.preventDefault(), L(!0), O(null);
3393
3393
  try {
3394
3394
  const j = await W.post(
3395
3395
  `${m}/users/forgot-password`,
@@ -3399,38 +3399,38 @@ const Us = [
3399
3399
  },
3400
3400
  { headers: { "x-api-key": R } }
3401
3401
  );
3402
- j.data.success ? ($(2), A({ type: "success", text: "OTP sent to your email" })) : A({
3402
+ j.data.success ? ($(2), O({ type: "success", text: "OTP sent to your email" })) : O({
3403
3403
  type: "error",
3404
3404
  text: j.data.message || "Failed to send OTP"
3405
3405
  });
3406
3406
  } catch (j) {
3407
- A({
3407
+ O({
3408
3408
  type: "error",
3409
3409
  text: j.response?.data?.message || "Something went wrong"
3410
3410
  });
3411
3411
  } finally {
3412
- M(!1);
3412
+ L(!1);
3413
3413
  }
3414
3414
  }, N = async (f) => {
3415
- f.preventDefault(), M(!0), A(null);
3415
+ f.preventDefault(), L(!0), O(null);
3416
3416
  try {
3417
3417
  const j = await W.post(
3418
3418
  `${m}/users/reset-password`,
3419
3419
  Y,
3420
3420
  { headers: { "x-api-key": R } }
3421
3421
  );
3422
- j.data.success ? (A({ type: "success", text: "Password reset successfully!" }), $(1), Q({ email: "", otp: "", newPassword: "", appId: v }), b("login")) : A({ type: "error", text: j.data.message || "Reset failed" });
3422
+ j.data.success ? (O({ type: "success", text: "Password reset successfully!" }), $(1), Q({ email: "", otp: "", newPassword: "", appId: v }), b("login")) : O({ type: "error", text: j.data.message || "Reset failed" });
3423
3423
  } catch (j) {
3424
- A({
3424
+ O({
3425
3425
  type: "error",
3426
3426
  text: j.response?.data?.message || "Something went wrong"
3427
3427
  });
3428
3428
  } finally {
3429
- M(!1);
3429
+ L(!1);
3430
3430
  }
3431
3431
  }, B = {
3432
3432
  width: "100%",
3433
- padding: k ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3433
+ padding: S ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3434
3434
  backgroundColor: F,
3435
3435
  border: `1px solid ${T}`,
3436
3436
  borderRadius: "10px",
@@ -3451,15 +3451,15 @@ const Us = [
3451
3451
  "div",
3452
3452
  {
3453
3453
  style: {
3454
- minWidth: k ? "320px" : "380px",
3455
- maxWidth: k ? "340px" : "390px",
3454
+ minWidth: S ? "320px" : "380px",
3455
+ maxWidth: S ? "340px" : "390px",
3456
3456
  width: "100%",
3457
3457
  display: "flex",
3458
3458
  flexDirection: "column",
3459
3459
  borderRadius: "10px",
3460
3460
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3461
3461
  backgroundColor: l ? "#000000" : "#ffffff",
3462
- padding: k ? "30px 24px" : "18px 28px"
3462
+ padding: S ? "30px 24px" : "18px 28px"
3463
3463
  },
3464
3464
  children: [
3465
3465
  /* @__PURE__ */ n.jsxs(
@@ -3504,7 +3504,7 @@ const Us = [
3504
3504
  {
3505
3505
  style: {
3506
3506
  fontSize: "14px",
3507
- color: L
3507
+ color: M
3508
3508
  },
3509
3509
  children: d === "login" ? s : "Follow the steps to reset your password"
3510
3510
  }
@@ -3545,7 +3545,7 @@ const Us = [
3545
3545
  left: "14px",
3546
3546
  top: "50%",
3547
3547
  transform: "translateY(-50%)",
3548
- color: L
3548
+ color: M
3549
3549
  }
3550
3550
  }
3551
3551
  ),
@@ -3591,7 +3591,7 @@ const Us = [
3591
3591
  left: "14px",
3592
3592
  top: "50%",
3593
3593
  transform: "translateY(-50%)",
3594
- color: L
3594
+ color: M
3595
3595
  }
3596
3596
  }
3597
3597
  ),
@@ -3610,7 +3610,7 @@ const Us = [
3610
3610
  "button",
3611
3611
  {
3612
3612
  type: "button",
3613
- onClick: () => O(!_),
3613
+ onClick: () => P(!_),
3614
3614
  style: {
3615
3615
  position: "absolute",
3616
3616
  right: "14px",
@@ -3619,7 +3619,7 @@ const Us = [
3619
3619
  transform: "translateY(-50%)",
3620
3620
  background: "transparent",
3621
3621
  border: "none",
3622
- color: L,
3622
+ color: M,
3623
3623
  cursor: "pointer"
3624
3624
  },
3625
3625
  children: _ ? /* @__PURE__ */ n.jsx(lt, { size: 20 }) : /* @__PURE__ */ n.jsx(ct, { size: 20 })
@@ -3672,7 +3672,7 @@ const Us = [
3672
3672
  "button",
3673
3673
  {
3674
3674
  type: "submit",
3675
- disabled: C,
3675
+ disabled: E,
3676
3676
  style: {
3677
3677
  padding: "12px",
3678
3678
  background: a,
@@ -3682,7 +3682,7 @@ const Us = [
3682
3682
  fontSize: "14px",
3683
3683
  fontWeight: 600
3684
3684
  },
3685
- children: C ? "Signing In..." : "Sign In"
3685
+ children: E ? "Signing In..." : "Sign In"
3686
3686
  }
3687
3687
  )
3688
3688
  ]
@@ -3691,7 +3691,7 @@ const Us = [
3691
3691
  d === "forgot" && /* @__PURE__ */ n.jsxs(
3692
3692
  "form",
3693
3693
  {
3694
- onSubmit: g === 1 ? E : N,
3694
+ onSubmit: g === 1 ? k : N,
3695
3695
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3696
3696
  children: [
3697
3697
  g === 1 ? /* @__PURE__ */ n.jsxs(
@@ -3721,7 +3721,7 @@ const Us = [
3721
3721
  left: "14px",
3722
3722
  top: "50%",
3723
3723
  transform: "translateY(-50%)",
3724
- color: L
3724
+ color: M
3725
3725
  }
3726
3726
  }
3727
3727
  ),
@@ -3772,7 +3772,7 @@ const Us = [
3772
3772
  left: "14px",
3773
3773
  top: "50%",
3774
3774
  transform: "translateY(-50%)",
3775
- color: L
3775
+ color: M
3776
3776
  }
3777
3777
  }
3778
3778
  ),
@@ -3823,7 +3823,7 @@ const Us = [
3823
3823
  left: "14px",
3824
3824
  top: "50%",
3825
3825
  transform: "translateY(-50%)",
3826
- color: L
3826
+ color: M
3827
3827
  }
3828
3828
  }
3829
3829
  ),
@@ -3848,7 +3848,7 @@ const Us = [
3848
3848
  "button",
3849
3849
  {
3850
3850
  type: "submit",
3851
- disabled: C,
3851
+ disabled: E,
3852
3852
  style: {
3853
3853
  padding: "12px",
3854
3854
  background: a,
@@ -3858,7 +3858,7 @@ const Us = [
3858
3858
  borderRadius: "10px",
3859
3859
  fontWeight: 600
3860
3860
  },
3861
- children: C ? "Please wait..." : g === 1 ? "Send Reset OTP" : "Reset Password"
3861
+ children: E ? "Please wait..." : g === 1 ? "Send Reset OTP" : "Reset Password"
3862
3862
  }
3863
3863
  ),
3864
3864
  /* @__PURE__ */ n.jsx(
@@ -3872,7 +3872,7 @@ const Us = [
3872
3872
  background: "none",
3873
3873
  border: "none",
3874
3874
  fontSize: "14px",
3875
- color: L,
3875
+ color: M,
3876
3876
  marginTop: "6px",
3877
3877
  cursor: "pointer"
3878
3878
  },
@@ -3909,7 +3909,7 @@ const Us = [
3909
3909
  style: {
3910
3910
  textAlign: "center",
3911
3911
  fontSize: "12px",
3912
- color: L,
3912
+ color: M,
3913
3913
  marginTop: "16px",
3914
3914
  padding: "0 4px"
3915
3915
  },
@@ -3978,7 +3978,7 @@ const Us = [
3978
3978
  token: i,
3979
3979
  colors: a
3980
3980
  }) => {
3981
- const { baseUrl: l, apiKey: h, appId: p } = Se(), [c, m] = P(!1), [R, v] = P(""), [d, b] = P("warning"), [g, $] = P(!1);
3981
+ const { baseUrl: l, apiKey: h, appId: p } = Se(), [c, m] = I(!1), [R, v] = I(""), [d, b] = I("warning"), [g, $] = I(!1);
3982
3982
  if (ie(() => {
3983
3983
  const y = () => {
3984
3984
  $(window.innerWidth < 640);
@@ -4002,9 +4002,9 @@ const Us = [
4002
4002
  } finally {
4003
4003
  m(!1);
4004
4004
  }
4005
- }, O = R.toLowerCase() === "delete my account", C = (y) => {
4005
+ }, P = R.toLowerCase() === "delete my account", E = (y) => {
4006
4006
  y.target === y.currentTarget && d !== "processing" && d !== "success" && t();
4007
- }, M = () => {
4007
+ }, L = () => {
4008
4008
  switch (d) {
4009
4009
  case "warning":
4010
4010
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
@@ -4116,7 +4116,7 @@ const Us = [
4116
4116
  display: "flex",
4117
4117
  alignItems: "flex-start"
4118
4118
  },
4119
- children: /* @__PURE__ */ n.jsx(At, { size: 24 })
4119
+ children: /* @__PURE__ */ n.jsx(zt, { size: 24 })
4120
4120
  }
4121
4121
  ),
4122
4122
  /* @__PURE__ */ n.jsxs("div", { style: { flex: 1 }, children: [
@@ -4153,7 +4153,7 @@ const Us = [
4153
4153
  icon: /* @__PURE__ */ n.jsx(dt, { size: 16 }),
4154
4154
  text: "You will lose access to all services"
4155
4155
  }
4156
- ].map((y, A) => /* @__PURE__ */ n.jsxs(
4156
+ ].map((y, O) => /* @__PURE__ */ n.jsxs(
4157
4157
  "div",
4158
4158
  {
4159
4159
  style: {
@@ -4168,7 +4168,7 @@ const Us = [
4168
4168
  /* @__PURE__ */ n.jsx("span", { children: y.text })
4169
4169
  ]
4170
4170
  },
4171
- A
4171
+ O
4172
4172
  ))
4173
4173
  }
4174
4174
  )
@@ -4277,7 +4277,7 @@ const Us = [
4277
4277
  color: "white",
4278
4278
  flexShrink: 0
4279
4279
  },
4280
- children: /* @__PURE__ */ n.jsx(At, { size: 24 })
4280
+ children: /* @__PURE__ */ n.jsx(zt, { size: 24 })
4281
4281
  }
4282
4282
  ),
4283
4283
  /* @__PURE__ */ n.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ n.jsx(
@@ -4326,7 +4326,7 @@ const Us = [
4326
4326
  width: "100%",
4327
4327
  padding: "14px 16px",
4328
4328
  borderRadius: "10px",
4329
- border: `2px solid ${O ? a.success : a.error}`,
4329
+ border: `2px solid ${P ? a.success : a.error}`,
4330
4330
  backgroundColor: "transparent",
4331
4331
  color: a.textPrimary,
4332
4332
  fontSize: "15px",
@@ -4343,7 +4343,7 @@ const Us = [
4343
4343
  autoFocus: !0
4344
4344
  }
4345
4345
  ),
4346
- O && /* @__PURE__ */ n.jsxs(
4346
+ P && /* @__PURE__ */ n.jsxs(
4347
4347
  "div",
4348
4348
  {
4349
4349
  style: {
@@ -4405,7 +4405,7 @@ const Us = [
4405
4405
  "button",
4406
4406
  {
4407
4407
  onClick: _,
4408
- disabled: !O || c,
4408
+ disabled: !P || c,
4409
4409
  style: {
4410
4410
  padding: "10px 24px",
4411
4411
  borderRadius: "10px",
@@ -4414,22 +4414,22 @@ const Us = [
4414
4414
  color: "white",
4415
4415
  fontSize: "14px",
4416
4416
  fontWeight: 600,
4417
- cursor: !O || c ? "not-allowed" : "pointer",
4417
+ cursor: !P || c ? "not-allowed" : "pointer",
4418
4418
  flex: g ? "none" : 1,
4419
4419
  minWidth: g ? "100%" : "140px",
4420
- opacity: !O || c ? 0.6 : 1,
4420
+ opacity: !P || c ? 0.6 : 1,
4421
4421
  display: "flex",
4422
4422
  alignItems: "center",
4423
4423
  justifyContent: "center",
4424
4424
  gap: "8px",
4425
4425
  transition: "all 0.2s ease",
4426
- boxShadow: !O || c ? "none" : "0 4px 12px rgba(239, 68, 68, 0.4)"
4426
+ boxShadow: !P || c ? "none" : "0 4px 12px rgba(239, 68, 68, 0.4)"
4427
4427
  },
4428
4428
  onMouseOver: (y) => {
4429
- O && !c && (y.currentTarget.style.transform = "translateY(-1px)", y.currentTarget.style.boxShadow = "0 6px 20px rgba(239, 68, 68, 0.5)");
4429
+ P && !c && (y.currentTarget.style.transform = "translateY(-1px)", y.currentTarget.style.boxShadow = "0 6px 20px rgba(239, 68, 68, 0.5)");
4430
4430
  },
4431
4431
  onMouseOut: (y) => {
4432
- O && !c && (y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
4432
+ P && !c && (y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
4433
4433
  },
4434
4434
  children: [
4435
4435
  /* @__PURE__ */ n.jsx(Ue, { size: 16 }),
@@ -4520,7 +4520,7 @@ const Us = [
4520
4520
  { text: "Removing your data", active: !0 },
4521
4521
  { text: "Closing active sessions", active: !1 },
4522
4522
  { text: "Finalizing deletion", active: !1 }
4523
- ].map((y, A) => /* @__PURE__ */ n.jsxs(
4523
+ ].map((y, O) => /* @__PURE__ */ n.jsxs(
4524
4524
  "div",
4525
4525
  {
4526
4526
  style: {
@@ -4559,7 +4559,7 @@ const Us = [
4559
4559
  )
4560
4560
  ]
4561
4561
  },
4562
- A
4562
+ O
4563
4563
  ))
4564
4564
  }
4565
4565
  ) }),
@@ -4746,7 +4746,7 @@ const Us = [
4746
4746
  zIndex: 1e4,
4747
4747
  animation: "fadeIn 0.3s ease-out"
4748
4748
  },
4749
- onClick: C,
4749
+ onClick: E,
4750
4750
  children: [
4751
4751
  /* @__PURE__ */ n.jsx(
4752
4752
  "div",
@@ -4762,7 +4762,7 @@ const Us = [
4762
4762
  animation: "scaleIn 0.3s ease-out"
4763
4763
  },
4764
4764
  className: "delete-modal-container",
4765
- children: M()
4765
+ children: L()
4766
4766
  }
4767
4767
  ),
4768
4768
  /* @__PURE__ */ n.jsx("style", { children: `
@@ -4829,7 +4829,7 @@ const Us = [
4829
4829
  onUpdate: r,
4830
4830
  colors: s
4831
4831
  }) => {
4832
- const [o, i] = P(""), [a, l] = P(!1), [h, p] = P(!1), [c, m] = P({ isValid: !1, message: "", type: null });
4832
+ const [o, i] = I(""), [a, l] = I(!1), [h, p] = I(!1), [c, m] = I({ isValid: !1, message: "", type: null });
4833
4833
  if (ie(() => {
4834
4834
  const d = () => {
4835
4835
  p(window.innerWidth < 640);
@@ -5282,31 +5282,31 @@ const Us = [
5282
5282
  userId: o,
5283
5283
  colors: i
5284
5284
  }) => {
5285
- const { baseUrl: a, apiKey: l, appId: h } = Se(), [p, c] = P({
5285
+ const { baseUrl: a, apiKey: l, appId: h } = Se(), [p, c] = I({
5286
5286
  currentPassword: "",
5287
5287
  newPassword: "",
5288
5288
  confirmPassword: ""
5289
- }), [m, R] = P({}), [v, d] = P(!1), [b, g] = P({
5289
+ }), [m, R] = I({}), [v, d] = I(!1), [b, g] = I({
5290
5290
  currentPassword: !1,
5291
5291
  newPassword: !1,
5292
5292
  confirmPassword: !1
5293
- }), [$, _] = P(!1);
5294
- if (zt.useEffect(() => {
5293
+ }), [$, _] = I(!1);
5294
+ if (At.useEffect(() => {
5295
5295
  const w = () => {
5296
5296
  _(window.innerWidth < 640);
5297
5297
  };
5298
5298
  return w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w);
5299
5299
  }, []), !e) return null;
5300
- const O = (w) => {
5300
+ const P = (w) => {
5301
5301
  const { name: D, value: K } = w.target;
5302
5302
  c((U) => ({ ...U, [D]: K })), m[D] && R((U) => ({ ...U, [D]: "" }));
5303
- }, C = (w) => {
5303
+ }, E = (w) => {
5304
5304
  g((D) => ({ ...D, [w]: !D[w] }));
5305
- }, M = () => {
5305
+ }, L = () => {
5306
5306
  const w = {};
5307
5307
  return p.currentPassword || (w.currentPassword = "Current password is required"), p.newPassword ? p.newPassword.length < 6 && (w.newPassword = "Password must be at least 6 characters") : w.newPassword = "New password is required", p.newPassword !== p.confirmPassword && (w.confirmPassword = "Passwords do not match"), R(w), Object.keys(w).length === 0;
5308
5308
  }, y = async (w) => {
5309
- if (w.preventDefault(), !!M()) {
5309
+ if (w.preventDefault(), !!L()) {
5310
5310
  d(!0);
5311
5311
  try {
5312
5312
  const { data: D } = await W.put(
@@ -5333,7 +5333,7 @@ const Us = [
5333
5333
  d(!1);
5334
5334
  }
5335
5335
  }
5336
- }, A = [
5336
+ }, O = [
5337
5337
  {
5338
5338
  field: "currentPassword",
5339
5339
  label: "Current Password",
@@ -5466,7 +5466,7 @@ const Us = [
5466
5466
  }
5467
5467
  ),
5468
5468
  /* @__PURE__ */ n.jsxs("form", { onSubmit: y, children: [
5469
- A.map(({ field: w, label: D, icon: K }) => /* @__PURE__ */ n.jsxs(
5469
+ O.map(({ field: w, label: D, icon: K }) => /* @__PURE__ */ n.jsxs(
5470
5470
  "div",
5471
5471
  {
5472
5472
  style: {
@@ -5512,7 +5512,7 @@ const Us = [
5512
5512
  name: w,
5513
5513
  placeholder: `Enter ${D.toLowerCase()}`,
5514
5514
  value: p[w],
5515
- onChange: O,
5515
+ onChange: P,
5516
5516
  style: {
5517
5517
  width: "100%",
5518
5518
  padding: "14px 48px 14px 44px",
@@ -5537,7 +5537,7 @@ const Us = [
5537
5537
  "button",
5538
5538
  {
5539
5539
  type: "button",
5540
- onClick: () => C(w),
5540
+ onClick: () => E(w),
5541
5541
  style: {
5542
5542
  position: "absolute",
5543
5543
  right: "14px",
@@ -6010,26 +6010,26 @@ const Us = [
6010
6010
  onVerify: i,
6011
6011
  primaryColor: a = "#00C212"
6012
6012
  }) => {
6013
- const { baseUrl: l, apiKey: h, appId: p } = Se(), [c, m] = P(t), [R, v] = P(!0), [d, b] = P(!1), [g, $] = P(!1), [_, O] = P(!1), [C, M] = P(!1), [y, A] = P(!1), [w, D] = P(!1), [K, U] = P(!1), [Y, Q] = P(!1), [k, Z] = P(null), [L, F] = P(!1), [T, V] = P({
6013
+ const { baseUrl: l, apiKey: h, appId: p } = Se(), [c, m] = I(t), [R, v] = I(!0), [d, b] = I(!1), [g, $] = I(!1), [_, P] = I(!1), [E, L] = I(!1), [y, O] = I(!1), [w, D] = I(!1), [K, U] = I(!1), [Y, Q] = I(!1), [S, Z] = I(null), [M, F] = I(!1), [T, V] = I({
6014
6014
  email: "",
6015
6015
  otp: "",
6016
6016
  appId: p
6017
- }), [x, E] = P(!1), [N, B] = P(!1), f = (S, H) => {
6018
- Z({ type: S, message: H }), setTimeout(() => Z(null), 3e3);
6017
+ }), [x, k] = I(!1), [N, B] = I(!1), f = (C, H) => {
6018
+ Z({ type: C, message: H }), setTimeout(() => Z(null), 3e3);
6019
6019
  }, j = () => {
6020
6020
  Q(!0);
6021
- const S = setTimeout(() => {
6021
+ const C = setTimeout(() => {
6022
6022
  U(!1), Q(!1);
6023
6023
  }, 150);
6024
- return () => clearTimeout(S);
6024
+ return () => clearTimeout(C);
6025
6025
  };
6026
6026
  ie(() => {
6027
- const S = (H) => {
6027
+ const C = (H) => {
6028
6028
  const G = document.querySelector(".dropdown-container");
6029
6029
  G && !G.contains(H.target) && j();
6030
6030
  };
6031
- return K && document.addEventListener("mousedown", S), () => {
6032
- document.removeEventListener("mousedown", S);
6031
+ return K && document.addEventListener("mousedown", C), () => {
6032
+ document.removeEventListener("mousedown", C);
6033
6033
  };
6034
6034
  }, [K]);
6035
6035
  const J = async () => {
@@ -6039,21 +6039,21 @@ const Us = [
6039
6039
  }
6040
6040
  try {
6041
6041
  B(!0);
6042
- const S = await W.post(
6042
+ const C = await W.post(
6043
6043
  `${l}/users/send-verify-otp/${c?.id}`,
6044
6044
  { email: T.email },
6045
6045
  {
6046
6046
  headers: { "x-api-key": h, "x-app-id": p }
6047
6047
  }
6048
6048
  );
6049
- S.data.success ? (f("success", S.data.message || "OTP sent to email!"), E(!0)) : f("error", S.data.message || "Failed to send OTP");
6050
- } catch (S) {
6051
- f("error", S.response?.data?.message || "Server error");
6049
+ C.data.success ? (f("success", C.data.message || "OTP sent to email!"), k(!0)) : f("error", C.data.message || "Failed to send OTP");
6050
+ } catch (C) {
6051
+ f("error", C.response?.data?.message || "Server error");
6052
6052
  } finally {
6053
6053
  B(!1);
6054
6054
  }
6055
- }, ne = async (S) => {
6056
- if (S.preventDefault(), !T.email || !T.otp) {
6055
+ }, ne = async (C) => {
6056
+ if (C.preventDefault(), !T.email || !T.otp) {
6057
6057
  f("error", "Please fill in all fields");
6058
6058
  return;
6059
6059
  }
@@ -6071,7 +6071,7 @@ const Us = [
6071
6071
  JSON.stringify({ ...G, token: e })
6072
6072
  ), typeof i == "function" && i(G);
6073
6073
  }
6074
- V({ email: "", otp: "", appId: p }), E(!1), D(!1);
6074
+ V({ email: "", otp: "", appId: p }), k(!1), D(!1);
6075
6075
  } else
6076
6076
  f("error", H.data.message || "Verification failed");
6077
6077
  } catch (H) {
@@ -6082,10 +6082,10 @@ const Us = [
6082
6082
  } finally {
6083
6083
  B(!1);
6084
6084
  }
6085
- }, X = async (S) => {
6085
+ }, X = async (C) => {
6086
6086
  if (!c) return !1;
6087
6087
  try {
6088
- const H = { ...c, avatarUrl: S }, { data: G } = await W.put(
6088
+ const H = { ...c, avatarUrl: C }, { data: G } = await W.put(
6089
6089
  `${l}/users/update/${c.id}`,
6090
6090
  H,
6091
6091
  { headers: { "x-api-key": h } }
@@ -6101,25 +6101,25 @@ const Us = [
6101
6101
  if (c) {
6102
6102
  $(!0);
6103
6103
  try {
6104
- const { data: S } = await W.put(
6104
+ const { data: C } = await W.put(
6105
6105
  `${l}/users/update/${c.id}`,
6106
6106
  c,
6107
6107
  { headers: { "x-api-key": h } }
6108
6108
  );
6109
- S.success ? (m(S.user), b(!1), localStorage.setItem(
6109
+ C.success ? (m(C.user), b(!1), localStorage.setItem(
6110
6110
  "userInfo",
6111
- JSON.stringify({ ...S.user, token: e })
6112
- ), f("success", "Profile updated successfully")) : f("error", S.message);
6113
- } catch (S) {
6114
- console.error(S), f("error", "Update failed");
6111
+ JSON.stringify({ ...C.user, token: e })
6112
+ ), f("success", "Profile updated successfully")) : f("error", C.message);
6113
+ } catch (C) {
6114
+ console.error(C), f("error", "Update failed");
6115
6115
  } finally {
6116
6116
  $(!1);
6117
6117
  }
6118
6118
  }
6119
- }, le = async (S) => {
6119
+ }, le = async (C) => {
6120
6120
  try {
6121
6121
  const { data: H } = await W.get(
6122
- `${l}/users/check-user/${S}?appId=${p}`,
6122
+ `${l}/users/check-user/${C}?appId=${p}`,
6123
6123
  { headers: { "x-api-key": h } }
6124
6124
  );
6125
6125
  (!H.success || !H.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), m(null));
@@ -6141,12 +6141,12 @@ const Us = [
6141
6141
  }
6142
6142
  })();
6143
6143
  }, [t]), ie(() => {
6144
- c?.email && V((S) => ({ ...S, email: c.email }));
6144
+ c?.email && V((C) => ({ ...C, email: c.email }));
6145
6145
  }, [c?.email]);
6146
- const me = (S, H) => {
6147
- let G = parseInt(S.replace("#", ""), 16), ue = (G >> 16) + H, Ve = (G >> 8 & 255) + H, Ye = (G & 255) + H;
6146
+ const me = (C, H) => {
6147
+ let G = parseInt(C.replace("#", ""), 16), ue = (G >> 16) + H, Ve = (G >> 8 & 255) + H, Ye = (G & 255) + H;
6148
6148
  return ue = Math.min(255, Math.max(0, ue)), Ve = Math.min(255, Math.max(0, Ve)), Ye = Math.min(255, Math.max(0, Ye)), `#${(Ye | Ve << 8 | ue << 16).toString(16).padStart(6, "0")}`;
6149
- }, I = r ? {
6149
+ }, z = r ? {
6150
6150
  background: "#000000",
6151
6151
  surface: "#09090b",
6152
6152
  surfaceLight: "#27272a",
@@ -6185,7 +6185,7 @@ const Us = [
6185
6185
  display: "flex",
6186
6186
  alignItems: "center",
6187
6187
  justifyContent: "center",
6188
- color: I.textPrimary,
6188
+ color: z.textPrimary,
6189
6189
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6190
6190
  },
6191
6191
  children: /* @__PURE__ */ n.jsxs(
@@ -6203,12 +6203,12 @@ const Us = [
6203
6203
  de,
6204
6204
  {
6205
6205
  size: 40,
6206
- color: I.accent,
6206
+ color: z.accent,
6207
6207
  style: { animation: "spin 1s linear infinite" },
6208
6208
  "aria-hidden": "true"
6209
6209
  }
6210
6210
  ),
6211
- /* @__PURE__ */ n.jsx("p", { style: { color: I.textTertiary, margin: 0 }, children: "Loading your profile..." })
6211
+ /* @__PURE__ */ n.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "Loading your profile..." })
6212
6212
  ]
6213
6213
  }
6214
6214
  )
@@ -6224,7 +6224,7 @@ const Us = [
6224
6224
  display: "flex",
6225
6225
  alignItems: "center",
6226
6226
  justifyContent: "center",
6227
- color: I.textPrimary,
6227
+ color: z.textPrimary,
6228
6228
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
6229
6229
  },
6230
6230
  children: /* @__PURE__ */ n.jsxs(
@@ -6238,8 +6238,8 @@ const Us = [
6238
6238
  textAlign: "center"
6239
6239
  },
6240
6240
  children: [
6241
- /* @__PURE__ */ n.jsx(ce, { size: 40, color: I.error, "aria-hidden": "true" }),
6242
- /* @__PURE__ */ n.jsx("p", { style: { color: I.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6241
+ /* @__PURE__ */ n.jsx(ce, { size: 40, color: z.error, "aria-hidden": "true" }),
6242
+ /* @__PURE__ */ n.jsx("p", { style: { color: z.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6243
6243
  ]
6244
6244
  }
6245
6245
  )
@@ -6283,13 +6283,13 @@ const Us = [
6283
6283
  display: "flex",
6284
6284
  alignItems: "center",
6285
6285
  justifyContent: "center",
6286
- color: I.textPrimary,
6286
+ color: z.textPrimary,
6287
6287
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
6288
6288
  lineHeight: 1.5,
6289
6289
  minHeight: "80vh"
6290
6290
  },
6291
6291
  children: [
6292
- k && /* @__PURE__ */ n.jsxs(
6292
+ S && /* @__PURE__ */ n.jsxs(
6293
6293
  "div",
6294
6294
  {
6295
6295
  style: {
@@ -6309,7 +6309,7 @@ const Us = [
6309
6309
  fontWeight: 500,
6310
6310
  maxWidth: "400px",
6311
6311
  animation: "slideIn 0.3s ease-out",
6312
- ...k.type === "success" ? {
6312
+ ...S.type === "success" ? {
6313
6313
  backgroundColor: r ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
6314
6314
  borderColor: r ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)",
6315
6315
  color: r ? "#34d399" : "#059669"
@@ -6322,8 +6322,8 @@ const Us = [
6322
6322
  role: "alert",
6323
6323
  "aria-live": "polite",
6324
6324
  children: [
6325
- k.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 20, "aria-hidden": "true" }),
6326
- k.message
6325
+ S.type === "success" ? /* @__PURE__ */ n.jsx(xe, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ce, { size: 20, "aria-hidden": "true" }),
6326
+ S.message
6327
6327
  ]
6328
6328
  }
6329
6329
  ),
@@ -6369,7 +6369,7 @@ const Us = [
6369
6369
  "section",
6370
6370
  {
6371
6371
  style: {
6372
- backgroundColor: I.surface,
6372
+ backgroundColor: z.surface,
6373
6373
  borderRadius: "16px",
6374
6374
  position: "relative",
6375
6375
  padding: "24px",
@@ -6423,7 +6423,7 @@ const Us = [
6423
6423
  borderRadius: "50%",
6424
6424
  objectFit: "cover",
6425
6425
  boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
6426
- border: `3px solid ${I.border}`
6426
+ border: `3px solid ${z.border}`
6427
6427
  },
6428
6428
  width: 128,
6429
6429
  height: 128,
@@ -6433,12 +6433,12 @@ const Us = [
6433
6433
  /* @__PURE__ */ n.jsx(
6434
6434
  "button",
6435
6435
  {
6436
- onClick: () => O(!0),
6436
+ onClick: () => P(!0),
6437
6437
  style: {
6438
6438
  position: "absolute",
6439
6439
  bottom: "8px",
6440
6440
  right: "8px",
6441
- backgroundColor: I.accent,
6441
+ backgroundColor: z.accent,
6442
6442
  color: "white",
6443
6443
  padding: "8px",
6444
6444
  borderRadius: "50%",
@@ -6465,7 +6465,7 @@ const Us = [
6465
6465
  fontSize: "24px",
6466
6466
  fontWeight: 600,
6467
6467
  margin: "0 0 4px 0",
6468
- color: I.textPrimary
6468
+ color: z.textPrimary
6469
6469
  },
6470
6470
  children: c.name
6471
6471
  }
@@ -6474,7 +6474,7 @@ const Us = [
6474
6474
  "p",
6475
6475
  {
6476
6476
  style: {
6477
- color: I.textTertiary,
6477
+ color: z.textTertiary,
6478
6478
  margin: "0 0 8px 0"
6479
6479
  },
6480
6480
  children: c.email
@@ -6485,7 +6485,7 @@ const Us = [
6485
6485
  {
6486
6486
  style: {
6487
6487
  backgroundColor: c.isVerified ? r ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : r ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
6488
- color: c.isVerified ? I.success : I.warning,
6488
+ color: c.isVerified ? z.success : z.warning,
6489
6489
  border: `1px solid ${c.isVerified ? r ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : r ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
6490
6490
  padding: "6px 12px",
6491
6491
  borderRadius: "20px",
@@ -6519,9 +6519,9 @@ const Us = [
6519
6519
  {
6520
6520
  onClick: () => b(!1),
6521
6521
  style: {
6522
- backgroundColor: I.surfaceLight,
6523
- border: `1px solid ${I.border}`,
6524
- color: I.textPrimary,
6522
+ backgroundColor: z.surfaceLight,
6523
+ border: `1px solid ${z.border}`,
6524
+ color: z.textPrimary,
6525
6525
  padding: "10px 20px",
6526
6526
  borderRadius: "6px",
6527
6527
  borderStyle: "solid",
@@ -6549,7 +6549,7 @@ const Us = [
6549
6549
  onClick: se,
6550
6550
  disabled: g,
6551
6551
  style: {
6552
- background: `linear-gradient(to right, ${I.accent}, ${I.accentHover})`,
6552
+ background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
6553
6553
  opacity: g ? 0.7 : 1,
6554
6554
  color: "white",
6555
6555
  padding: "10px 20px",
@@ -6586,7 +6586,7 @@ const Us = [
6586
6586
  {
6587
6587
  onClick: () => b(!0),
6588
6588
  style: {
6589
- background: `linear-gradient(to right, ${I.accent}, ${I.accentHover})`,
6589
+ background: `linear-gradient(to right, ${z.accent}, ${z.accentHover})`,
6590
6590
  color: "white",
6591
6591
  padding: "10px 20px",
6592
6592
  borderRadius: "6px",
@@ -6609,13 +6609,50 @@ const Us = [
6609
6609
  ]
6610
6610
  }
6611
6611
  ),
6612
+ !c.isVerified && /* @__PURE__ */ n.jsxs(
6613
+ "button",
6614
+ {
6615
+ onClick: () => D(!0),
6616
+ disabled: M,
6617
+ style: {
6618
+ background: "linear-gradient(to right, #fbbf24, #f59e0b)",
6619
+ // amber gradient
6620
+ color: "white",
6621
+ padding: "10px 20px",
6622
+ borderRadius: "6px",
6623
+ border: "none",
6624
+ cursor: M ? "not-allowed" : "pointer",
6625
+ transition: "all 0.2s ease",
6626
+ fontSize: "12px",
6627
+ fontWeight: 500,
6628
+ display: "flex",
6629
+ alignItems: "center",
6630
+ justifyContent: "center",
6631
+ gap: "8px",
6632
+ minHeight: "36px",
6633
+ opacity: M ? 0.7 : 1,
6634
+ flex: window.innerWidth < 1024 ? "1" : "auto"
6635
+ },
6636
+ children: [
6637
+ M ? /* @__PURE__ */ n.jsx(
6638
+ de,
6639
+ {
6640
+ size: 14,
6641
+ style: { animation: "spin 1s linear infinite" },
6642
+ "aria-hidden": "true"
6643
+ }
6644
+ ) : /* @__PURE__ */ n.jsx(cr, { size: 14, "aria-hidden": "true" }),
6645
+ M ? "Sending..." : "Verify Email"
6646
+ ]
6647
+ }
6648
+ ),
6612
6649
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
6613
6650
  /* @__PURE__ */ n.jsxs(
6614
6651
  "button",
6615
6652
  {
6616
6653
  style: {
6617
- backgroundColor: I.surfaceLight,
6618
- color: I.textPrimary,
6654
+ backgroundColor: z.surfaceLight,
6655
+ color: z.textPrimary,
6619
6656
  padding: "10px 20px",
6620
6657
  borderRadius: "6px",
6621
6658
  border: "none",
@@ -6646,15 +6683,12 @@ const Us = [
6646
6683
  style: {
6647
6684
  position: "absolute",
6648
6685
  bottom: "100%",
6649
- // 👈 appears above the button
6650
6686
  left: 0,
6651
6687
  right: 0,
6652
- backgroundColor: I.surface,
6653
- border: `1px solid ${I.border}`,
6688
+ backgroundColor: z.surface,
6689
+ border: `1px solid ${z.border}`,
6654
6690
  borderRadius: "12px 12px 0 0",
6655
- // 👈 more drawer-like (rounded top)
6656
6691
  boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
6657
- // 👈 softer shadow
6658
6692
  zIndex: 200,
6659
6693
  marginBottom: "6px",
6660
6694
  overflow: "hidden",
@@ -6665,14 +6699,14 @@ const Us = [
6665
6699
  "button",
6666
6700
  {
6667
6701
  onClick: () => {
6668
- M(!0), j();
6702
+ L(!0), j();
6669
6703
  },
6670
6704
  style: {
6671
6705
  width: "100%",
6672
6706
  padding: "14px 18px",
6673
6707
  backgroundColor: "transparent",
6674
6708
  border: "none",
6675
- color: I.textPrimary,
6709
+ color: z.textPrimary,
6676
6710
  cursor: "pointer",
6677
6711
  transition: "all 0.2s ease",
6678
6712
  fontSize: "13px",
@@ -6682,54 +6716,14 @@ const Us = [
6682
6716
  gap: "8px",
6683
6717
  textAlign: "left"
6684
6718
  },
6685
- onMouseEnter: (S) => S.currentTarget.style.backgroundColor = I.surfaceLight,
6686
- onMouseLeave: (S) => S.currentTarget.style.backgroundColor = "transparent",
6719
+ onMouseEnter: (C) => C.currentTarget.style.backgroundColor = z.surfaceLight,
6720
+ onMouseLeave: (C) => C.currentTarget.style.backgroundColor = "transparent",
6687
6721
  children: [
6688
6722
  /* @__PURE__ */ n.jsx(lr, { size: 14, "aria-hidden": "true" }),
6689
6723
  "Change Password"
6690
6724
  ]
6691
6725
  }
6692
6726
  ),
6693
- !c.isVerified && /* @__PURE__ */ n.jsxs(
6694
- "button",
6695
- {
6696
- onClick: () => {
6697
- D(!0), j();
6698
- },
6699
- disabled: L,
6700
- style: {
6701
- width: "100%",
6702
- padding: "14px 18px",
6703
- backgroundColor: "transparent",
6704
- border: "none",
6705
- color: L ? I.textTertiary : I.warning,
6706
- cursor: L ? "not-allowed" : "pointer",
6707
- transition: "all 0.2s ease",
6708
- fontSize: "13px",
6709
- fontWeight: 500,
6710
- display: "flex",
6711
- alignItems: "center",
6712
- gap: "8px",
6713
- textAlign: "left",
6714
- opacity: L ? 0.6 : 1
6715
- },
6716
- onMouseEnter: (S) => {
6717
- L || (S.currentTarget.style.backgroundColor = I.surfaceLight);
6718
- },
6719
- onMouseLeave: (S) => S.currentTarget.style.backgroundColor = "transparent",
6720
- children: [
6721
- L ? /* @__PURE__ */ n.jsx(
6722
- de,
6723
- {
6724
- size: 14,
6725
- style: { animation: "spin 1s linear infinite" },
6726
- "aria-hidden": "true"
6727
- }
6728
- ) : /* @__PURE__ */ n.jsx(cr, { size: 14, "aria-hidden": "true" }),
6729
- L ? "Sending..." : "Verify Email"
6730
- ]
6731
- }
6732
- ),
6733
6727
  o && /* @__PURE__ */ n.jsxs(
6734
6728
  "button",
6735
6729
  {
@@ -6751,10 +6745,10 @@ const Us = [
6751
6745
  gap: "8px",
6752
6746
  textAlign: "left"
6753
6747
  },
6754
- onMouseEnter: (S) => {
6755
- S.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6748
+ onMouseEnter: (C) => {
6749
+ C.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6756
6750
  },
6757
- onMouseLeave: (S) => S.currentTarget.style.backgroundColor = "transparent",
6751
+ onMouseLeave: (C) => C.currentTarget.style.backgroundColor = "transparent",
6758
6752
  children: [
6759
6753
  /* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
6760
6754
  "Logout"
@@ -6765,7 +6759,7 @@ const Us = [
6765
6759
  "button",
6766
6760
  {
6767
6761
  onClick: () => {
6768
- A(!0), j();
6762
+ O(!0), j();
6769
6763
  },
6770
6764
  style: {
6771
6765
  width: "100%",
@@ -6782,10 +6776,10 @@ const Us = [
6782
6776
  gap: "8px",
6783
6777
  textAlign: "left"
6784
6778
  },
6785
- onMouseEnter: (S) => {
6786
- S.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6779
+ onMouseEnter: (C) => {
6780
+ C.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
6787
6781
  },
6788
- onMouseLeave: (S) => S.currentTarget.style.backgroundColor = "transparent",
6782
+ onMouseLeave: (C) => C.currentTarget.style.backgroundColor = "transparent",
6789
6783
  children: [
6790
6784
  /* @__PURE__ */ n.jsx(Ue, { size: 14, "aria-hidden": "true" }),
6791
6785
  "Delete Account"
@@ -6816,7 +6810,7 @@ const Us = [
6816
6810
  "section",
6817
6811
  {
6818
6812
  style: {
6819
- backgroundColor: I.surface,
6813
+ backgroundColor: z.surface,
6820
6814
  borderRadius: "16px",
6821
6815
  padding: "24px",
6822
6816
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -6829,7 +6823,7 @@ const Us = [
6829
6823
  fontSize: "20px",
6830
6824
  fontWeight: 600,
6831
6825
  margin: "0 0 24px 0",
6832
- color: I.textSecondary,
6826
+ color: z.textSecondary,
6833
6827
  display: "flex",
6834
6828
  alignItems: "center",
6835
6829
  gap: "8px"
@@ -6852,8 +6846,8 @@ const Us = [
6852
6846
  gap: "20px"
6853
6847
  }
6854
6848
  },
6855
- children: He.map((S) => {
6856
- const H = S.icon;
6849
+ children: He.map((C) => {
6850
+ const H = C.icon;
6857
6851
  return /* @__PURE__ */ n.jsxs(
6858
6852
  "div",
6859
6853
  {
@@ -6867,7 +6861,7 @@ const Us = [
6867
6861
  "label",
6868
6862
  {
6869
6863
  style: {
6870
- color: I.textTertiary,
6864
+ color: z.textTertiary,
6871
6865
  fontSize: "12px",
6872
6866
  fontWeight: 500,
6873
6867
  display: "flex",
@@ -6876,16 +6870,16 @@ const Us = [
6876
6870
  },
6877
6871
  children: [
6878
6872
  /* @__PURE__ */ n.jsx(H, { size: 16, "aria-hidden": "true" }),
6879
- S.label
6873
+ C.label
6880
6874
  ]
6881
6875
  }
6882
6876
  ),
6883
6877
  d ? /* @__PURE__ */ n.jsx(
6884
6878
  "input",
6885
6879
  {
6886
- type: S.type,
6887
- name: S.name,
6888
- value: c[S.name],
6880
+ type: C.type,
6881
+ name: C.name,
6882
+ value: c[C.name],
6889
6883
  onChange: (G) => m(
6890
6884
  (ue) => ue && { ...ue, [G.target.name]: G.target.value }
6891
6885
  ),
@@ -6894,7 +6888,7 @@ const Us = [
6894
6888
  borderRadius: "8px",
6895
6889
  border: `1px solid ${a}`,
6896
6890
  backgroundColor: "transparent",
6897
- color: I.textPrimary,
6891
+ color: z.textPrimary,
6898
6892
  fontSize: "12px",
6899
6893
  outline: "none",
6900
6894
  transition: "border-color 0.2s ease",
@@ -6902,8 +6896,8 @@ const Us = [
6902
6896
  width: "100%",
6903
6897
  boxSizing: "border-box"
6904
6898
  },
6905
- placeholder: `Enter ${S.label.toLowerCase()}`,
6906
- "aria-label": S.label
6899
+ placeholder: `Enter ${C.label.toLowerCase()}`,
6900
+ "aria-label": C.label
6907
6901
  }
6908
6902
  ) : /* @__PURE__ */ n.jsx(
6909
6903
  "div",
@@ -6917,15 +6911,15 @@ const Us = [
6917
6911
  display: "flex",
6918
6912
  alignItems: "center",
6919
6913
  boxSizing: "border-box",
6920
- color: I.textPrimary,
6914
+ color: z.textPrimary,
6921
6915
  backgroundColor: r ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
6922
6916
  },
6923
- children: S.value
6917
+ children: C.value
6924
6918
  }
6925
6919
  )
6926
6920
  ]
6927
6921
  },
6928
- S.name
6922
+ C.name
6929
6923
  );
6930
6924
  })
6931
6925
  }
@@ -6937,7 +6931,7 @@ const Us = [
6937
6931
  "section",
6938
6932
  {
6939
6933
  style: {
6940
- backgroundColor: I.surface,
6934
+ backgroundColor: z.surface,
6941
6935
  borderRadius: "16px",
6942
6936
  padding: "30px 24px",
6943
6937
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
@@ -6950,7 +6944,7 @@ const Us = [
6950
6944
  fontSize: "20px",
6951
6945
  fontWeight: 600,
6952
6946
  margin: "0 0 24px 0",
6953
- color: I.textSecondary,
6947
+ color: z.textSecondary,
6954
6948
  display: "flex",
6955
6949
  alignItems: "center",
6956
6950
  gap: "8px"
@@ -6987,7 +6981,7 @@ const Us = [
6987
6981
  display: "flex",
6988
6982
  alignItems: "center",
6989
6983
  gap: "12px",
6990
- color: I.textSecondary
6984
+ color: z.textSecondary
6991
6985
  },
6992
6986
  children: [
6993
6987
  /* @__PURE__ */ n.jsx(ge, { size: 16, "aria-hidden": "true" }),
@@ -7008,11 +7002,11 @@ const Us = [
7008
7002
  gap: "6px",
7009
7003
  ...c.isVerified ? {
7010
7004
  backgroundColor: r ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
7011
- color: I.success,
7005
+ color: z.success,
7012
7006
  border: `1px solid ${r ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
7013
7007
  } : {
7014
7008
  backgroundColor: r ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
7015
- color: I.warning,
7009
+ color: z.warning,
7016
7010
  border: `1px solid ${r ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
7017
7011
  }
7018
7012
  },
@@ -7040,7 +7034,7 @@ const Us = [
7040
7034
  "p",
7041
7035
  {
7042
7036
  style: {
7043
- color: I.textTertiary,
7037
+ color: z.textTertiary,
7044
7038
  fontSize: "12px",
7045
7039
  margin: 0
7046
7040
  },
@@ -7068,10 +7062,10 @@ const Us = [
7068
7062
  {
7069
7063
  isOpen: _,
7070
7064
  onClose: () => {
7071
- O(!1);
7065
+ P(!1);
7072
7066
  },
7073
7067
  onUpdate: X,
7074
- colors: I
7068
+ colors: z
7075
7069
  }
7076
7070
  ),
7077
7071
  /* @__PURE__ */ n.jsx(
@@ -7081,11 +7075,11 @@ const Us = [
7081
7075
  apiKey: h,
7082
7076
  appId: p,
7083
7077
  userId: c.id,
7084
- isOpen: C,
7085
- onClose: () => M(!1),
7086
- onSuccess: (S) => f("success", S),
7087
- onError: (S) => f("error", S),
7088
- colors: I
7078
+ isOpen: E,
7079
+ onClose: () => L(!1),
7080
+ onSuccess: (C) => f("success", C),
7081
+ onError: (C) => f("error", C),
7082
+ colors: z
7089
7083
  }
7090
7084
  ),
7091
7085
  /* @__PURE__ */ n.jsx(
@@ -7097,10 +7091,10 @@ const Us = [
7097
7091
  userId: c.id,
7098
7092
  token: e,
7099
7093
  isOpen: y,
7100
- onClose: () => A(!1),
7101
- onSuccess: (S) => f("success", S),
7102
- onError: (S) => f("error", S),
7103
- colors: I
7094
+ onClose: () => O(!1),
7095
+ onSuccess: (C) => f("success", C),
7096
+ onError: (C) => f("error", C),
7097
+ colors: z
7104
7098
  }
7105
7099
  ),
7106
7100
  /* @__PURE__ */ n.jsx(
@@ -7108,7 +7102,7 @@ const Us = [
7108
7102
  {
7109
7103
  isOpen: w,
7110
7104
  onClose: () => {
7111
- D(!1), E(!1), V({ email: c?.email || "", otp: "", appId: p });
7105
+ D(!1), k(!1), V({ email: c?.email || "", otp: "", appId: p });
7112
7106
  },
7113
7107
  onVerify: ne,
7114
7108
  onSendOTP: J,
@@ -7117,7 +7111,7 @@ const Us = [
7117
7111
  otpSent: x,
7118
7112
  verifying: N,
7119
7113
  user: c,
7120
- colors: I,
7114
+ colors: z,
7121
7115
  darkMode: r
7122
7116
  }
7123
7117
  ),
@@ -7233,14 +7227,14 @@ const Us = [
7233
7227
  viewProfileLabel: v = "View Profile",
7234
7228
  logoutLabel: d = "Sign Out"
7235
7229
  }) => {
7236
- const { baseUrl: b, apiKey: g, appId: $ } = Se(), [_, O] = P(!1), [C, M] = P(null), [y, A] = P(!0), [w, D] = P(null), K = ut(null), U = ut(null), [Y, Q] = P(!1), [k, Z] = P(!1);
7230
+ const { baseUrl: b, apiKey: g, appId: $ } = Se(), [_, P] = I(!1), [E, L] = I(null), [y, O] = I(!0), [w, D] = I(null), K = ut(null), U = ut(null), [Y, Q] = I(!1), [S, Z] = I(!1);
7237
7231
  ie(() => {
7238
7232
  const f = () => {
7239
7233
  Z(window.innerWidth < 768);
7240
7234
  };
7241
7235
  return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
7242
7236
  }, []);
7243
- const L = async (f) => {
7237
+ const M = async (f) => {
7244
7238
  try {
7245
7239
  if (!f)
7246
7240
  throw new Error("Invalid user ID");
@@ -7252,20 +7246,20 @@ const Us = [
7252
7246
  // 10 second timeout
7253
7247
  }
7254
7248
  );
7255
- (!j.success || !j.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), M(null), D("Session expired"));
7249
+ (!j.success || !j.exists) && (console.warn("User not found, clearing session..."), localStorage.removeItem("userInfo"), L(null), D("Session expired"));
7256
7250
  } catch (j) {
7257
7251
  console.error("User validation failed:", j);
7258
7252
  const J = j.response?.status === 404 ? "User not found" : j.code === "NETWORK_ERROR" ? "Network error" : "Validation failed";
7259
- D(J), j.response?.status === 404 && (localStorage.removeItem("userInfo"), M(null));
7253
+ D(J), j.response?.status === 404 && (localStorage.removeItem("userInfo"), L(null));
7260
7254
  }
7261
7255
  };
7262
7256
  ie(() => {
7263
7257
  (async () => {
7264
7258
  try {
7265
- if (A(!0), D(null), o) {
7259
+ if (O(!0), D(null), o) {
7266
7260
  if (!o.id || !o.name || !o.email)
7267
7261
  throw new Error("Invalid user data provided");
7268
- M(o), await L(o.id);
7262
+ L(o), await M(o.id);
7269
7263
  } else {
7270
7264
  const j = localStorage.getItem("userInfo");
7271
7265
  if (j)
@@ -7273,7 +7267,7 @@ const Us = [
7273
7267
  const J = JSON.parse(j);
7274
7268
  if (!J.id || !J.name || !J.email)
7275
7269
  throw new Error("Invalid stored user data");
7276
- M(J), await L(J.id);
7270
+ L(J), await M(J.id);
7277
7271
  } catch (J) {
7278
7272
  console.error("Failed to parse stored user data:", J), localStorage.removeItem("userInfo"), D("Invalid user data");
7279
7273
  }
@@ -7281,24 +7275,24 @@ const Us = [
7281
7275
  } catch (j) {
7282
7276
  console.error("User initialization failed:", j), D(j.message || "Failed to load user");
7283
7277
  } finally {
7284
- A(!1);
7278
+ O(!1);
7285
7279
  }
7286
7280
  })();
7287
7281
  }, [o]), ie(() => {
7288
7282
  const f = () => {
7289
7283
  if (_ && U.current) {
7290
- const j = U.current.getBoundingClientRect(), J = window.innerWidth, ne = window.innerHeight, X = 280, se = 300, le = J - j.right, me = j.left, I = ne - j.bottom, He = le >= X || le > me;
7291
- Q(He), I < se && j.top > se;
7284
+ const j = U.current.getBoundingClientRect(), J = window.innerWidth, ne = window.innerHeight, X = 280, se = 300, le = J - j.right, me = j.left, z = ne - j.bottom, He = le >= X || le > me;
7285
+ Q(He), z < se && j.top > se;
7292
7286
  }
7293
7287
  };
7294
7288
  return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
7295
7289
  }, [_]), ie(() => {
7296
7290
  const f = (ne) => {
7297
- K.current && !K.current.contains(ne.target) && !U.current?.contains(ne.target) && O(!1);
7291
+ K.current && !K.current.contains(ne.target) && !U.current?.contains(ne.target) && P(!1);
7298
7292
  }, j = (ne) => {
7299
- ne.key === "Escape" && O(!1);
7293
+ ne.key === "Escape" && P(!1);
7300
7294
  }, J = () => {
7301
- _ && O(!1);
7295
+ _ && P(!1);
7302
7296
  };
7303
7297
  return _ && (document.addEventListener("mousedown", f), document.addEventListener("keydown", j), window.addEventListener("scroll", J, { passive: !0 })), () => {
7304
7298
  document.removeEventListener("mousedown", f), document.removeEventListener("keydown", j), window.removeEventListener("scroll", J);
@@ -7336,19 +7330,19 @@ const Us = [
7336
7330
  avatarButton: {
7337
7331
  display: "flex",
7338
7332
  alignItems: "center",
7339
- gap: k ? "6px" : "8px",
7340
- padding: k ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
7333
+ gap: S ? "6px" : "8px",
7334
+ padding: S ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
7341
7335
  borderRadius: "24px",
7342
7336
  backgroundColor: F.surface,
7343
7337
  cursor: "pointer",
7344
7338
  transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
7345
- minWidth: k ? "auto" : "140px",
7346
- maxWidth: k ? "200px" : "none",
7339
+ minWidth: S ? "auto" : "140px",
7340
+ maxWidth: S ? "200px" : "none",
7347
7341
  outline: "none"
7348
7342
  },
7349
7343
  avatarImage: {
7350
- width: k ? "28px" : "32px",
7351
- height: k ? "28px" : "32px",
7344
+ width: S ? "28px" : "32px",
7345
+ height: S ? "28px" : "32px",
7352
7346
  borderRadius: "50%",
7353
7347
  objectFit: "cover",
7354
7348
  border: `2px solid ${F.borderLight}`,
@@ -7363,23 +7357,23 @@ const Us = [
7363
7357
  overflow: "hidden"
7364
7358
  },
7365
7359
  userName: {
7366
- fontSize: k ? "13px" : "14px",
7360
+ fontSize: S ? "13px" : "14px",
7367
7361
  fontWeight: 600,
7368
7362
  color: F.textPrimary,
7369
7363
  lineHeight: "1.2",
7370
7364
  whiteSpace: "nowrap",
7371
7365
  overflow: "hidden",
7372
7366
  textOverflow: "ellipsis",
7373
- maxWidth: k ? "80px" : "120px"
7367
+ maxWidth: S ? "80px" : "120px"
7374
7368
  },
7375
7369
  userEmail: {
7376
- fontSize: k ? "11px" : "12px",
7370
+ fontSize: S ? "11px" : "12px",
7377
7371
  color: F.textTertiary,
7378
7372
  lineHeight: "1.2",
7379
7373
  whiteSpace: "nowrap",
7380
7374
  overflow: "hidden",
7381
7375
  textOverflow: "ellipsis",
7382
- maxWidth: k ? "80px" : "120px"
7376
+ maxWidth: S ? "80px" : "120px"
7383
7377
  },
7384
7378
  chevron: {
7385
7379
  transition: "transform 0.2s ease",
@@ -7408,7 +7402,7 @@ const Us = [
7408
7402
  overflow: "hidden"
7409
7403
  },
7410
7404
  dropdownSection: {
7411
- padding: k ? "10px 12px" : "0px 16px",
7405
+ padding: S ? "10px 12px" : "0px 16px",
7412
7406
  "&:last-child": {
7413
7407
  borderBottom: "none"
7414
7408
  }
@@ -7416,12 +7410,12 @@ const Us = [
7416
7410
  userSection: {
7417
7411
  display: "flex",
7418
7412
  alignItems: "center",
7419
- gap: k ? "10px" : "12px",
7420
- padding: k ? "14px" : "16px"
7413
+ gap: S ? "10px" : "12px",
7414
+ padding: S ? "14px" : "16px"
7421
7415
  },
7422
7416
  dropdownAvatar: {
7423
- width: k ? "40px" : "48px",
7424
- height: k ? "40px" : "48px",
7417
+ width: S ? "40px" : "48px",
7418
+ height: S ? "40px" : "48px",
7425
7419
  borderRadius: "50%",
7426
7420
  objectFit: "cover",
7427
7421
  border: `2px solid ${F.borderLight}`,
@@ -7434,7 +7428,7 @@ const Us = [
7434
7428
  minWidth: 0
7435
7429
  },
7436
7430
  dropdownUserName: {
7437
- fontSize: k ? "15px" : "16px",
7431
+ fontSize: S ? "15px" : "16px",
7438
7432
  fontWeight: 600,
7439
7433
  color: F.textPrimary,
7440
7434
  lineHeight: "1.2",
@@ -7443,7 +7437,7 @@ const Us = [
7443
7437
  textOverflow: "ellipsis"
7444
7438
  },
7445
7439
  dropdownUserEmail: {
7446
- fontSize: k ? "13px" : "14px",
7440
+ fontSize: S ? "13px" : "14px",
7447
7441
  color: F.textSecondary,
7448
7442
  lineHeight: "1.2",
7449
7443
  overflow: "hidden",
@@ -7452,8 +7446,8 @@ const Us = [
7452
7446
  menuItem: {
7453
7447
  display: "flex",
7454
7448
  alignItems: "center",
7455
- gap: k ? "10px" : "12px",
7456
- padding: k ? "10px 12px" : "12px 16px",
7449
+ gap: S ? "10px" : "12px",
7450
+ padding: S ? "10px 12px" : "12px 16px",
7457
7451
  borderRadius: "8px",
7458
7452
  cursor: "pointer",
7459
7453
  transition: "all 0.15s ease",
@@ -7462,7 +7456,7 @@ const Us = [
7462
7456
  border: "none",
7463
7457
  background: "none",
7464
7458
  width: "100%",
7465
- fontSize: k ? "13px" : "14px",
7459
+ fontSize: S ? "13px" : "14px",
7466
7460
  textAlign: "left",
7467
7461
  outline: "none"
7468
7462
  },
@@ -7470,38 +7464,38 @@ const Us = [
7470
7464
  flex: 1
7471
7465
  },
7472
7466
  icon: {
7473
- width: k ? "16px" : "18px",
7474
- height: k ? "16px" : "18px",
7467
+ width: S ? "16px" : "18px",
7468
+ height: S ? "16px" : "18px",
7475
7469
  color: F.textSecondary,
7476
7470
  flexShrink: 0
7477
7471
  },
7478
7472
  logoutButton: {
7479
7473
  display: "flex",
7480
7474
  alignItems: "center",
7481
- gap: k ? "10px" : "12px",
7482
- padding: k ? "10px 12px" : "12px 16px",
7475
+ gap: S ? "10px" : "12px",
7476
+ padding: S ? "10px 12px" : "12px 16px",
7483
7477
  borderRadius: "8px",
7484
7478
  cursor: "pointer",
7485
7479
  transition: "all 0.15s ease",
7486
7480
  background: "none",
7487
7481
  border: "none",
7488
7482
  width: "100%",
7489
- fontSize: k ? "13px" : "14px",
7483
+ fontSize: S ? "13px" : "14px",
7490
7484
  color: F.error,
7491
7485
  textAlign: "left",
7492
7486
  outline: "none"
7493
7487
  },
7494
7488
  loadingText: {
7495
- padding: k ? "16px 12px" : "20px 16px",
7489
+ padding: S ? "16px 12px" : "20px 16px",
7496
7490
  textAlign: "center",
7497
7491
  color: F.textSecondary,
7498
- fontSize: k ? "13px" : "14px"
7492
+ fontSize: S ? "13px" : "14px"
7499
7493
  },
7500
7494
  errorState: {
7501
- padding: k ? "16px 12px" : "20px 16px",
7495
+ padding: S ? "16px 12px" : "20px 16px",
7502
7496
  textAlign: "center",
7503
7497
  color: F.textSecondary,
7504
- fontSize: k ? "13px" : "14px",
7498
+ fontSize: S ? "13px" : "14px",
7505
7499
  display: "flex",
7506
7500
  alignItems: "center",
7507
7501
  justifyContent: "center",
@@ -7521,20 +7515,20 @@ const Us = [
7521
7515
  transition: "background-color 0.2s ease"
7522
7516
  }
7523
7517
  }, V = () => {
7524
- D(null), A(!0);
7518
+ D(null), O(!0);
7525
7519
  const f = localStorage.getItem("userInfo");
7526
7520
  if (f)
7527
7521
  try {
7528
7522
  const j = JSON.parse(f);
7529
- M(j), L(j.id);
7523
+ L(j), M(j.id);
7530
7524
  } catch {
7531
7525
  D("Invalid user data");
7532
7526
  }
7533
- A(!1);
7527
+ O(!1);
7534
7528
  }, x = (f, j) => {
7535
7529
  (f.key === "Enter" || f.key === " ") && (f.preventDefault(), j());
7536
- }, E = () => a || C?.profileUrl, N = () => {
7537
- const f = E();
7530
+ }, k = () => a || E?.profileUrl, N = () => {
7531
+ const f = k();
7538
7532
  f && window.open(f, "_self", "noopener,noreferrer");
7539
7533
  }, B = () => {
7540
7534
  l && window.open(l, "_self", "noopener,noreferrer");
@@ -7552,21 +7546,21 @@ const Us = [
7552
7546
  "div",
7553
7547
  {
7554
7548
  ref: U,
7555
- onClick: () => O((f) => !f),
7556
- onKeyDown: (f) => x(f, () => O((j) => !j)),
7549
+ onClick: () => P((f) => !f),
7550
+ onKeyDown: (f) => x(f, () => P((j) => !j)),
7557
7551
  tabIndex: 0,
7558
7552
  role: "button",
7559
7553
  "aria-haspopup": "true",
7560
7554
  "aria-expanded": _,
7561
7555
  "aria-label": "Toggle user menu",
7562
- children: C?.avatarUrl ? /* @__PURE__ */ n.jsx(
7556
+ children: E?.avatarUrl ? /* @__PURE__ */ n.jsx(
7563
7557
  "img",
7564
7558
  {
7565
- src: C.avatarUrl,
7566
- alt: `${C?.name || "User"}'s avatar`,
7559
+ src: E.avatarUrl,
7560
+ alt: `${E?.name || "User"}'s avatar`,
7567
7561
  style: {
7568
- width: k ? "34px" : "40px",
7569
- height: k ? "34px" : "40px",
7562
+ width: S ? "34px" : "40px",
7563
+ height: S ? "34px" : "40px",
7570
7564
  borderRadius: "50%",
7571
7565
  objectFit: "cover",
7572
7566
  border: `2px solid ${F.borderLight}`,
@@ -7576,7 +7570,7 @@ const Us = [
7576
7570
  onError: (f) => {
7577
7571
  const j = f.target;
7578
7572
  j.onerror = null, j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7579
- C?.name || "User"
7573
+ E?.name || "User"
7580
7574
  )}`;
7581
7575
  }
7582
7576
  }
@@ -7584,12 +7578,12 @@ const Us = [
7584
7578
  "img",
7585
7579
  {
7586
7580
  src: `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7587
- C?.name || "User"
7581
+ E?.name || "User"
7588
7582
  )}`,
7589
7583
  alt: "Default user avatar",
7590
7584
  style: {
7591
- width: k ? "34px" : "40px",
7592
- height: k ? "34px" : "40px",
7585
+ width: S ? "34px" : "40px",
7586
+ height: S ? "34px" : "40px",
7593
7587
  borderRadius: "50%",
7594
7588
  objectFit: "cover",
7595
7589
  border: `2px solid ${F.borderLight}`,
@@ -7604,8 +7598,8 @@ const Us = [
7604
7598
  {
7605
7599
  ref: U,
7606
7600
  style: T.avatarButton,
7607
- onClick: () => O((f) => !f),
7608
- onKeyDown: (f) => x(f, () => O((j) => !j)),
7601
+ onClick: () => P((f) => !f),
7602
+ onKeyDown: (f) => x(f, () => P((j) => !j)),
7609
7603
  tabIndex: 0,
7610
7604
  role: "button",
7611
7605
  "aria-haspopup": "true",
@@ -7621,11 +7615,11 @@ const Us = [
7621
7615
  f.currentTarget.style.outline = "none";
7622
7616
  },
7623
7617
  children: [
7624
- C?.avatarUrl ? /* @__PURE__ */ n.jsx(
7618
+ E?.avatarUrl ? /* @__PURE__ */ n.jsx(
7625
7619
  "img",
7626
7620
  {
7627
- src: C.avatarUrl,
7628
- alt: `${C.name}'s avatar`,
7621
+ src: E.avatarUrl,
7622
+ alt: `${E.name}'s avatar`,
7629
7623
  style: T.avatarImage,
7630
7624
  loading: "lazy",
7631
7625
  onError: (f) => {
@@ -7642,14 +7636,14 @@ const Us = [
7642
7636
  loading: "lazy"
7643
7637
  }
7644
7638
  ),
7645
- !k && /* @__PURE__ */ n.jsxs("div", { style: T.userInfo, children: [
7646
- /* @__PURE__ */ n.jsx("div", { style: T.userName, title: C?.name, children: C?.name || "Guest" }),
7647
- C?.email && /* @__PURE__ */ n.jsx("div", { style: T.userEmail, title: C.email, children: C.email })
7639
+ !S && /* @__PURE__ */ n.jsxs("div", { style: T.userInfo, children: [
7640
+ /* @__PURE__ */ n.jsx("div", { style: T.userName, title: E?.name, children: E?.name || "Guest" }),
7641
+ E?.email && /* @__PURE__ */ n.jsx("div", { style: T.userEmail, title: E.email, children: E.email })
7648
7642
  ] }),
7649
7643
  /* @__PURE__ */ n.jsx(
7650
7644
  Gn,
7651
7645
  {
7652
- size: k ? 14 : 16,
7646
+ size: S ? 14 : 16,
7653
7647
  style: T.chevron,
7654
7648
  "aria-hidden": "true"
7655
7649
  }
@@ -7657,36 +7651,36 @@ const Us = [
7657
7651
  ]
7658
7652
  }
7659
7653
  ),
7660
- _ && /* @__PURE__ */ n.jsx("div", { style: T.dropdown, role: "menu", "aria-label": "User options", children: y ? /* @__PURE__ */ n.jsx("div", { style: T.loadingText, role: "status", "aria-live": "polite", children: "Loading user information..." }) : C ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7654
+ _ && /* @__PURE__ */ n.jsx("div", { style: T.dropdown, role: "menu", "aria-label": "User options", children: y ? /* @__PURE__ */ n.jsx("div", { style: T.loadingText, role: "status", "aria-live": "polite", children: "Loading user information..." }) : E ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7661
7655
  /* @__PURE__ */ n.jsxs("div", { style: T.userSection, children: [
7662
- C?.avatarUrl ? /* @__PURE__ */ n.jsx(
7656
+ E?.avatarUrl ? /* @__PURE__ */ n.jsx(
7663
7657
  "img",
7664
7658
  {
7665
- src: C.avatarUrl,
7666
- alt: `${C.name}'s profile picture`,
7659
+ src: E.avatarUrl,
7660
+ alt: `${E.name}'s profile picture`,
7667
7661
  style: T.dropdownAvatar,
7668
7662
  loading: "lazy",
7669
7663
  onError: (f) => {
7670
7664
  const j = f.target;
7671
- j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`;
7665
+ j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${E.name}`;
7672
7666
  }
7673
7667
  }
7674
7668
  ) : /* @__PURE__ */ n.jsx(
7675
7669
  "img",
7676
7670
  {
7677
- src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
7678
- alt: `${C.name}'s default avatar`,
7671
+ src: `https://api.dicebear.com/9.x/initials/svg?seed=${E.name}`,
7672
+ alt: `${E.name}'s default avatar`,
7679
7673
  style: T.dropdownAvatar,
7680
7674
  loading: "lazy"
7681
7675
  }
7682
7676
  ),
7683
7677
  /* @__PURE__ */ n.jsxs("div", { style: T.dropdownUserInfo, children: [
7684
- /* @__PURE__ */ n.jsx("div", { style: T.dropdownUserName, title: C.name, children: C.name }),
7685
- /* @__PURE__ */ n.jsx("div", { style: T.dropdownUserEmail, title: C.email, children: C.email })
7678
+ /* @__PURE__ */ n.jsx("div", { style: T.dropdownUserName, title: E.name, children: E.name }),
7679
+ /* @__PURE__ */ n.jsx("div", { style: T.dropdownUserEmail, title: E.email, children: E.email })
7686
7680
  ] })
7687
7681
  ] }),
7688
7682
  /* @__PURE__ */ n.jsxs("div", { style: T.dropdownSection, children: [
7689
- h && E() && /* @__PURE__ */ n.jsxs(
7683
+ h && k() && /* @__PURE__ */ n.jsxs(
7690
7684
  "button",
7691
7685
  {
7692
7686
  style: T.menuItem,
@@ -7726,10 +7720,10 @@ const Us = [
7726
7720
  ]
7727
7721
  }
7728
7722
  ),
7729
- c && C.profileUrl && /* @__PURE__ */ n.jsxs(
7723
+ c && E.profileUrl && /* @__PURE__ */ n.jsxs(
7730
7724
  "a",
7731
7725
  {
7732
- href: C.profileUrl,
7726
+ href: E.profileUrl,
7733
7727
  target: "_self",
7734
7728
  rel: "noopener noreferrer",
7735
7729
  style: T.menuItem,