@neuctra/authix 1.1.78 → 1.1.80

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 Te, { forwardRef as Ut, createElement as Xe, createContext as pr, useContext as fr, useState as R, useEffect as te, useRef as ft } from "react";
1
+ import Te, { forwardRef as Ut, createElement as Xe, createContext as pr, useContext as fr, useState as R, useEffect as re, useRef as ft } from "react";
2
2
  function Nt(t, e) {
3
3
  return function() {
4
4
  return t.apply(e, arguments);
@@ -7,16 +7,16 @@ function Nt(t, e) {
7
7
  const { toString: xr } = Object.prototype, { getPrototypeOf: st } = Object, { iterator: qe, toStringTag: $t } = Symbol, Me = /* @__PURE__ */ ((t) => (e) => {
8
8
  const r = xr.call(e);
9
9
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
10
- })(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), We = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = We("undefined");
10
+ })(/* @__PURE__ */ Object.create(null)), oe = (t) => (t = t.toLowerCase(), (e) => Me(e) === t), We = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = We("undefined");
11
11
  function Re(t) {
12
- return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && re(t.constructor.isBuffer) && t.constructor.isBuffer(t);
12
+ return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && ne(t.constructor.isBuffer) && t.constructor.isBuffer(t);
13
13
  }
14
- const Dt = ae("ArrayBuffer");
14
+ const Dt = oe("ArrayBuffer");
15
15
  function hr(t) {
16
16
  let e;
17
17
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Dt(t.buffer), e;
18
18
  }
19
- const mr = We("string"), re = We("function"), Ft = We("number"), Pe = (t) => t !== null && typeof t == "object", gr = (t) => t === !0 || t === !1, Ue = (t) => {
19
+ const mr = We("string"), ne = We("function"), Ft = We("number"), Pe = (t) => t !== null && typeof t == "object", gr = (t) => t === !0 || t === !1, Ue = (t) => {
20
20
  if (Me(t) !== "object")
21
21
  return !1;
22
22
  const e = st(t);
@@ -29,11 +29,11 @@ const mr = We("string"), re = We("function"), Ft = We("number"), Pe = (t) => t !
29
29
  } catch {
30
30
  return !1;
31
31
  }
32
- }, br = ae("Date"), wr = ae("File"), jr = ae("Blob"), vr = ae("FileList"), Sr = (t) => Pe(t) && re(t.pipe), kr = (t) => {
32
+ }, br = oe("Date"), wr = oe("File"), jr = oe("Blob"), vr = oe("FileList"), Sr = (t) => Pe(t) && ne(t.pipe), kr = (t) => {
33
33
  let e;
34
- return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
35
- e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
36
- }, Er = ae("URLSearchParams"), [Cr, Tr, Rr, Pr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
34
+ return t && (typeof FormData == "function" && t instanceof FormData || ne(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
35
+ e === "object" && ne(t.toString) && t.toString() === "[object FormData]"));
36
+ }, Er = oe("URLSearchParams"), [Cr, Tr, Rr, Pr] = ["ReadableStream", "Request", "Response", "Headers"].map(oe), Ir = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
37
37
  function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
38
38
  if (t === null || typeof t > "u")
39
39
  return;
@@ -72,7 +72,7 @@ function Ze() {
72
72
  return r;
73
73
  }
74
74
  const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
75
- r && re(i) ? t[o] = Nt(i, r) : t[o] = i;
75
+ r && ne(i) ? t[o] = Nt(i, r) : t[o] = i;
76
76
  }, { allOwnKeys: s }), t), zr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ar = (t, e, r, s) => {
77
77
  t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
78
78
  value: e.prototype
@@ -113,12 +113,12 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
113
113
  for (; (r = t.exec(e)) !== null; )
114
114
  s.push(r);
115
115
  return s;
116
- }, Lr = ae("HTMLFormElement"), qr = (t) => t.toLowerCase().replace(
116
+ }, Lr = oe("HTMLFormElement"), qr = (t) => t.toLowerCase().replace(
117
117
  /[-_\s]([a-z\d])(\w*)/g,
118
118
  function(r, s, i) {
119
119
  return s.toUpperCase() + i;
120
120
  }
121
- ), xt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = ae("RegExp"), Mt = (t, e) => {
121
+ ), xt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = oe("RegExp"), Mt = (t, e) => {
122
122
  const r = Object.getOwnPropertyDescriptors(t), s = {};
123
123
  Ie(r, (i, o) => {
124
124
  let a;
@@ -126,10 +126,10 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
126
126
  }), Object.defineProperties(t, s);
127
127
  }, Wr = (t) => {
128
128
  Mt(t, (e, r) => {
129
- if (re(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
129
+ if (ne(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
130
130
  return !1;
131
131
  const s = t[r];
132
- if (re(s)) {
132
+ if (ne(s)) {
133
133
  if (e.enumerable = !1, "writable" in e) {
134
134
  e.writable = !1;
135
135
  return;
@@ -149,7 +149,7 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
149
149
  }, Hr = () => {
150
150
  }, Vr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
151
151
  function Yr(t) {
152
- return !!(t && re(t.append) && t[$t] === "FormData" && t[qe]);
152
+ return !!(t && ne(t.append) && t[$t] === "FormData" && t[qe]);
153
153
  }
154
154
  const Kr = (t) => {
155
155
  const e = new Array(10), r = (s, i) => {
@@ -170,14 +170,14 @@ const Kr = (t) => {
170
170
  return s;
171
171
  };
172
172
  return r(t, 0);
173
- }, Jr = ae("AsyncFunction"), Gr = (t) => t && (Pe(t) || re(t)) && re(t.then) && re(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: i, data: o }) => {
173
+ }, Jr = oe("AsyncFunction"), Gr = (t) => t && (Pe(t) || ne(t)) && ne(t.then) && ne(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: i, data: o }) => {
174
174
  i === fe && o === r && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
176
  s.push(i), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
178
  typeof setImmediate == "function",
179
- re(fe.postMessage)
180
- ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[qe]), f = {
179
+ ne(fe.postMessage)
180
+ ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && ne(t[qe]), f = {
181
181
  isArray: we,
182
182
  isArrayBuffer: Dt,
183
183
  isBuffer: Re,
@@ -198,7 +198,7 @@ const Kr = (t) => {
198
198
  isFile: wr,
199
199
  isBlob: jr,
200
200
  isRegExp: Mr,
201
- isFunction: re,
201
+ isFunction: ne,
202
202
  isStream: Sr,
203
203
  isURLSearchParams: Er,
204
204
  isTypedArray: $r,
@@ -211,7 +211,7 @@ const Kr = (t) => {
211
211
  inherits: Ar,
212
212
  toFlatObject: _r,
213
213
  kindOf: Me,
214
- kindOfTest: ae,
214
+ kindOfTest: oe,
215
215
  endsWith: Ur,
216
216
  toArray: Nr,
217
217
  forEachEntry: Dr,
@@ -673,7 +673,7 @@ function jn(t, e) {
673
673
  });
674
674
  });
675
675
  }
676
- let ne = class {
676
+ let se = class {
677
677
  constructor(e) {
678
678
  e && this.set(e);
679
679
  }
@@ -799,8 +799,8 @@ let ne = class {
799
799
  return f.isArray(e) ? e.forEach(o) : o(e), this;
800
800
  }
801
801
  };
802
- ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
- f.reduceDescriptors(ne.prototype, ({ value: t }, e) => {
802
+ se.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
803
+ f.reduceDescriptors(se.prototype, ({ value: t }, e) => {
804
804
  let r = e[0].toUpperCase() + e.slice(1);
805
805
  return {
806
806
  get: () => t,
@@ -809,9 +809,9 @@ f.reduceDescriptors(ne.prototype, ({ value: t }, e) => {
809
809
  }
810
810
  };
811
811
  });
812
- f.freezeMethods(ne);
812
+ f.freezeMethods(se);
813
813
  function Ke(t, e) {
814
- const r = this || Oe, s = e || r, i = ne.from(s.headers);
814
+ const r = this || Oe, s = e || r, i = se.from(s.headers);
815
815
  let o = s.data;
816
816
  return f.forEach(t, function(c) {
817
817
  o = c.call(r, o, i.normalize(), e ? e.status : void 0);
@@ -934,7 +934,7 @@ function Qt(t, e, r) {
934
934
  let s = !Tn(e);
935
935
  return t && (s || r == !1) ? Rn(t, e) : e;
936
936
  }
937
- const jt = (t) => t instanceof ne ? { ...t } : t;
937
+ const jt = (t) => t instanceof se ? { ...t } : t;
938
938
  function he(t, e) {
939
939
  e = e || {};
940
940
  const r = {};
@@ -1002,7 +1002,7 @@ function he(t, e) {
1002
1002
  const er = (t) => {
1003
1003
  const e = he({}, t);
1004
1004
  let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: o, headers: a, auth: c } = e;
1005
- if (e.headers = a = ne.from(a), e.url = Kt(Qt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && a.set(
1005
+ if (e.headers = a = se.from(a), e.url = Kt(Qt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && a.set(
1006
1006
  "Authorization",
1007
1007
  "Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
1008
1008
  ), f.isFormData(r)) {
@@ -1024,7 +1024,7 @@ const er = (t) => {
1024
1024
  return new Promise(function(r, s) {
1025
1025
  const i = er(t);
1026
1026
  let o = i.data;
1027
- const a = ne.from(i.headers).normalize();
1027
+ const a = se.from(i.headers).normalize();
1028
1028
  let { responseType: c, onUploadProgress: h, onDownloadProgress: u } = i, d, m, P, O, p;
1029
1029
  function w() {
1030
1030
  O && O(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
@@ -1034,7 +1034,7 @@ const er = (t) => {
1034
1034
  function C() {
1035
1035
  if (!x)
1036
1036
  return;
1037
- const A = ne.from(
1037
+ const A = se.from(
1038
1038
  "getAllResponseHeaders" in x && x.getAllResponseHeaders()
1039
1039
  ), _ = {
1040
1040
  data: !c || c === "text" || c === "json" ? x.responseText : x.response,
@@ -1232,7 +1232,7 @@ const er = (t) => {
1232
1232
  fetchOptions: M
1233
1233
  } = er(p), X = e || fetch;
1234
1234
  v = v ? (v + "").toLowerCase() : "text";
1235
- let E = On([T, A && A.toAbortSignal()], y), V = null;
1235
+ let E = On([T, A && A.toAbortSignal()], y), Y = null;
1236
1236
  const z = E && E.unsubscribe && (() => {
1237
1237
  E.unsubscribe();
1238
1238
  });
@@ -1262,8 +1262,8 @@ const er = (t) => {
1262
1262
  duplex: "half",
1263
1263
  credentials: W ? U : void 0
1264
1264
  };
1265
- V = o && new r(w, Z);
1266
- let B = await (o ? X(V, M) : X(w, Z));
1265
+ Y = o && new r(w, Z);
1266
+ let B = await (o ? X(Y, M) : X(w, Z));
1267
1267
  const K = d && (v === "stream" || v === "response");
1268
1268
  if (d && (_ || K && z)) {
1269
1269
  const l = {};
@@ -1286,20 +1286,20 @@ const er = (t) => {
1286
1286
  return !K && z && z(), await new Promise((l, b) => {
1287
1287
  Zt(l, b, {
1288
1288
  data: L,
1289
- headers: ne.from(B.headers),
1289
+ headers: se.from(B.headers),
1290
1290
  status: B.status,
1291
1291
  statusText: B.statusText,
1292
1292
  config: p,
1293
- request: V
1293
+ request: Y
1294
1294
  });
1295
1295
  });
1296
1296
  } catch (W) {
1297
1297
  throw z && z(), W && W.name === "TypeError" && /Load failed|fetch/i.test(W.message) ? Object.assign(
1298
- new D("Network Error", D.ERR_NETWORK, p, V),
1298
+ new D("Network Error", D.ERR_NETWORK, p, Y),
1299
1299
  {
1300
1300
  cause: W.cause || W
1301
1301
  }
1302
- ) : D.from(W, W && W.code, p, V);
1302
+ ) : D.from(W, W && W.code, p, Y);
1303
1303
  }
1304
1304
  };
1305
1305
  }, $n = /* @__PURE__ */ new Map(), tr = (t) => {
@@ -1367,7 +1367,7 @@ function Je(t) {
1367
1367
  throw new je(null, t);
1368
1368
  }
1369
1369
  function Rt(t) {
1370
- return Je(t), t.headers = ne.from(t.headers), t.data = Ke.call(
1370
+ return Je(t), t.headers = se.from(t.headers), t.data = Ke.call(
1371
1371
  t,
1372
1372
  t.transformRequest
1373
1373
  ), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), rr.getAdapter(t.adapter || Oe.adapter, t)(t).then(function(s) {
@@ -1375,13 +1375,13 @@ function Rt(t) {
1375
1375
  t,
1376
1376
  t.transformResponse,
1377
1377
  s
1378
- ), s.headers = ne.from(s.headers), s;
1378
+ ), s.headers = se.from(s.headers), s;
1379
1379
  }, function(s) {
1380
1380
  return Xt(s) || (Je(t), s && s.response && (s.response.data = Ke.call(
1381
1381
  t,
1382
1382
  t.transformResponse,
1383
1383
  s.response
1384
- ), s.response.headers = ne.from(s.response.headers))), Promise.reject(s);
1384
+ ), s.response.headers = se.from(s.response.headers))), Promise.reject(s);
1385
1385
  });
1386
1386
  }
1387
1387
  const nr = "1.12.2", He = {};
@@ -1432,7 +1432,7 @@ function Fn(t, e, r) {
1432
1432
  const $e = {
1433
1433
  assertOptions: Fn,
1434
1434
  validators: He
1435
- }, ce = $e.validators;
1435
+ }, de = $e.validators;
1436
1436
  let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
@@ -1469,17 +1469,17 @@ let xe = class {
1469
1469
  typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
1470
1470
  const { transitional: s, paramsSerializer: i, headers: o } = r;
1471
1471
  s !== void 0 && $e.assertOptions(s, {
1472
- silentJSONParsing: ce.transitional(ce.boolean),
1473
- forcedJSONParsing: ce.transitional(ce.boolean),
1474
- clarifyTimeoutError: ce.transitional(ce.boolean)
1472
+ silentJSONParsing: de.transitional(de.boolean),
1473
+ forcedJSONParsing: de.transitional(de.boolean),
1474
+ clarifyTimeoutError: de.transitional(de.boolean)
1475
1475
  }, !1), i != null && (f.isFunction(i) ? r.paramsSerializer = {
1476
1476
  serialize: i
1477
1477
  } : $e.assertOptions(i, {
1478
- encode: ce.function,
1479
- serialize: ce.function
1478
+ encode: de.function,
1479
+ serialize: de.function
1480
1480
  }, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), $e.assertOptions(r, {
1481
- baseUrl: ce.spelling("baseURL"),
1482
- withXsrfToken: ce.spelling("withXSRFToken")
1481
+ baseUrl: de.spelling("baseURL"),
1482
+ withXsrfToken: de.spelling("withXSRFToken")
1483
1483
  }, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
1484
1484
  let a = o && f.merge(
1485
1485
  o.common,
@@ -1490,7 +1490,7 @@ let xe = class {
1490
1490
  (p) => {
1491
1491
  delete o[p];
1492
1492
  }
1493
- ), r.headers = ne.concat(a, o);
1493
+ ), r.headers = se.concat(a, o);
1494
1494
  const c = [];
1495
1495
  let h = !0;
1496
1496
  this.interceptors.request.forEach(function(w) {
@@ -1727,7 +1727,7 @@ J.all = function(e) {
1727
1727
  J.spread = qn;
1728
1728
  J.isAxiosError = Mn;
1729
1729
  J.mergeConfig = he;
1730
- J.AxiosHeaders = ne;
1730
+ J.AxiosHeaders = se;
1731
1731
  J.formToJSON = (t) => Gt(f.isHTMLForm(t) ? new FormData(t) : t);
1732
1732
  J.getAdapter = rr.getAdapter;
1733
1733
  J.HttpStatusCode = rt;
@@ -1914,16 +1914,15 @@ class ui {
1914
1914
  if (typeof window > "u")
1915
1915
  return { authenticated: !1 };
1916
1916
  try {
1917
- const e = await this.request(
1917
+ return await this.request(
1918
1918
  "GET",
1919
1919
  "/users/session",
1920
1920
  void 0,
1921
1921
  {},
1922
1922
  !0
1923
1923
  );
1924
- return e.authenticated ? document.cookie = `a_s_b=true; path=/; max-age=${1440 * 60}; Secure; SameSite=Lax` : document.cookie = "a_s_b=; path=/; max-age=0", e;
1925
1924
  } catch {
1926
- return document.cookie = "a_s_b=; path=/; max-age=0", { authenticated: !1 };
1925
+ return { authenticated: !1 };
1927
1926
  }
1928
1927
  }
1929
1928
  /**
@@ -2376,7 +2375,7 @@ function Bn() {
2376
2375
  return Error("react-stack-top-frame");
2377
2376
  }
2378
2377
  function a(l) {
2379
- if (V.call(l, "key")) {
2378
+ if (Y.call(l, "key")) {
2380
2379
  var b = Object.getOwnPropertyDescriptor(l, "key").get;
2381
2380
  if (b && b.isReactWarning) return !1;
2382
2381
  }
@@ -2400,15 +2399,15 @@ function Bn() {
2400
2399
  "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."
2401
2400
  )), l = this.props.ref, l !== void 0 ? l : null;
2402
2401
  }
2403
- function u(l, b, S, j, G, ue) {
2404
- var Y = S.ref;
2402
+ function u(l, b, S, j, G, le) {
2403
+ var H = S.ref;
2405
2404
  return l = {
2406
2405
  $$typeof: p,
2407
2406
  type: l,
2408
2407
  key: b,
2409
2408
  props: S,
2410
2409
  _owner: j
2411
- }, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(l, "ref", {
2410
+ }, (H !== void 0 ? H : null) !== null ? Object.defineProperty(l, "ref", {
2412
2411
  enumerable: !1,
2413
2412
  get: h
2414
2413
  }) : Object.defineProperty(l, "ref", { enumerable: !1, value: null }), l._store = {}, Object.defineProperty(l._store, "validated", {
@@ -2430,28 +2429,28 @@ function Bn() {
2430
2429
  configurable: !1,
2431
2430
  enumerable: !1,
2432
2431
  writable: !0,
2433
- value: ue
2432
+ value: le
2434
2433
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2435
2434
  }
2436
- function d(l, b, S, j, G, ue) {
2437
- var Y = b.children;
2438
- if (Y !== void 0)
2435
+ function d(l, b, S, j, G, le) {
2436
+ var H = b.children;
2437
+ if (H !== void 0)
2439
2438
  if (j)
2440
- if (z(Y)) {
2441
- for (j = 0; j < Y.length; j++)
2442
- m(Y[j]);
2443
- Object.freeze && Object.freeze(Y);
2439
+ if (z(H)) {
2440
+ for (j = 0; j < H.length; j++)
2441
+ m(H[j]);
2442
+ Object.freeze && Object.freeze(H);
2444
2443
  } else
2445
2444
  console.error(
2446
2445
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2447
2446
  );
2448
- else m(Y);
2449
- if (V.call(b, "key")) {
2450
- Y = t(l);
2451
- var oe = Object.keys(b).filter(function(Ve) {
2447
+ else m(H);
2448
+ if (Y.call(b, "key")) {
2449
+ H = t(l);
2450
+ var te = Object.keys(b).filter(function(Ve) {
2452
2451
  return Ve !== "key";
2453
2452
  });
2454
- j = 0 < oe.length ? "{key: someKey, " + oe.join(": ..., ") + ": ...}" : "{key: someKey}", L[Y + j] || (oe = 0 < oe.length ? "{" + oe.join(": ..., ") + ": ...}" : "{}", console.error(
2453
+ j = 0 < te.length ? "{key: someKey, " + te.join(": ..., ") + ": ...}" : "{key: someKey}", L[H + j] || (te = 0 < te.length ? "{" + te.join(": ..., ") + ": ...}" : "{}", console.error(
2455
2454
  `A props object containing a "key" prop is being spread into JSX:
2456
2455
  let props = %s;
2457
2456
  <%s {...props} />
@@ -2459,26 +2458,26 @@ React keys must be passed directly to JSX without using spread:
2459
2458
  let props = %s;
2460
2459
  <%s key={someKey} {...props} />`,
2461
2460
  j,
2462
- Y,
2463
- oe,
2464
- Y
2465
- ), L[Y + j] = !0);
2461
+ H,
2462
+ te,
2463
+ H
2464
+ ), L[H + j] = !0);
2466
2465
  }
2467
- if (Y = null, S !== void 0 && (r(S), Y = "" + S), a(b) && (r(b.key), Y = "" + b.key), "key" in b) {
2466
+ if (H = null, S !== void 0 && (r(S), H = "" + S), a(b) && (r(b.key), H = "" + b.key), "key" in b) {
2468
2467
  S = {};
2469
2468
  for (var ve in b)
2470
2469
  ve !== "key" && (S[ve] = b[ve]);
2471
2470
  } else S = b;
2472
- return Y && c(
2471
+ return H && c(
2473
2472
  S,
2474
2473
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2475
2474
  ), u(
2476
2475
  l,
2477
- Y,
2476
+ H,
2478
2477
  S,
2479
2478
  i(),
2480
2479
  G,
2481
- ue
2480
+ le
2482
2481
  );
2483
2482
  }
2484
2483
  function m(l) {
@@ -2487,7 +2486,7 @@ React keys must be passed directly to JSX without using spread:
2487
2486
  function P(l) {
2488
2487
  return typeof l == "object" && l !== null && l.$$typeof === p;
2489
2488
  }
2490
- var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), E = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2489
+ var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), E = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2491
2490
  return null;
2492
2491
  };
2493
2492
  O = {
@@ -2666,7 +2665,7 @@ const rs = [
2666
2665
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2667
2666
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2668
2667
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2669
- ], se = q("circle-alert", rs);
2668
+ ], ie = q("circle-alert", rs);
2670
2669
  /**
2671
2670
  * @license lucide-react v0.544.0 - ISC
2672
2671
  *
@@ -2676,7 +2675,7 @@ const rs = [
2676
2675
  const ns = [
2677
2676
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2678
2677
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2679
- ], de = q("circle-check-big", ns);
2678
+ ], ue = q("circle-check-big", ns);
2680
2679
  /**
2681
2680
  * @license lucide-react v0.544.0 - ISC
2682
2681
  *
@@ -2820,7 +2819,7 @@ const ms = [
2820
2819
  * This source code is licensed under the ISC license.
2821
2820
  * See the LICENSE file in the root directory of this source tree.
2822
2821
  */
2823
- const ys = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ie = q("loader-circle", ys);
2822
+ const ys = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ae = q("loader-circle", ys);
2824
2823
  /**
2825
2824
  * @license lucide-react v0.544.0 - ISC
2826
2825
  *
@@ -3073,7 +3072,7 @@ const qs = [
3073
3072
  password: "",
3074
3073
  role: u.length ? u[0] : "user",
3075
3074
  ...h && { avatarUrl: "" }
3076
- }, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1), E = c ? "#ffffff" : "#111827", V = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3075
+ }, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1), E = c ? "#ffffff" : "#111827", Y = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3077
3076
  Te.useEffect(() => {
3078
3077
  if (typeof window < "u") {
3079
3078
  const L = () => X(window.innerWidth < 768);
@@ -3196,7 +3195,7 @@ const qs = [
3196
3195
  {
3197
3196
  style: {
3198
3197
  fontSize: "14px",
3199
- color: V
3198
+ color: Y
3200
3199
  },
3201
3200
  children: s
3202
3201
  }
@@ -3360,7 +3359,7 @@ const qs = [
3360
3359
  left: "14px",
3361
3360
  top: "50%",
3362
3361
  transform: "translateY(-50%)",
3363
- color: V
3362
+ color: Y
3364
3363
  }
3365
3364
  }
3366
3365
  ),
@@ -3415,7 +3414,7 @@ const qs = [
3415
3414
  left: "14px",
3416
3415
  top: "50%",
3417
3416
  transform: "translateY(-50%)",
3418
- color: V
3417
+ color: Y
3419
3418
  }
3420
3419
  }
3421
3420
  ),
@@ -3470,7 +3469,7 @@ const qs = [
3470
3469
  left: "14px",
3471
3470
  top: "50%",
3472
3471
  transform: "translateY(-50%)",
3473
- color: V
3472
+ color: Y
3474
3473
  }
3475
3474
  }
3476
3475
  ),
@@ -3501,7 +3500,7 @@ const qs = [
3501
3500
  transform: "translateY(-50%)",
3502
3501
  background: "transparent",
3503
3502
  border: "none",
3504
- color: V,
3503
+ color: Y,
3505
3504
  cursor: "pointer",
3506
3505
  padding: "4px"
3507
3506
  },
@@ -3548,7 +3547,7 @@ const qs = [
3548
3547
  left: "14px",
3549
3548
  top: "50%",
3550
3549
  transform: "translateY(-50%)",
3551
- color: V
3550
+ color: Y
3552
3551
  }
3553
3552
  }
3554
3553
  ),
@@ -3605,7 +3604,7 @@ const qs = [
3605
3604
  color: g.type === "success" ? o : "#ef4444"
3606
3605
  },
3607
3606
  children: [
3608
- g.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(se, { size: 20 }),
3607
+ g.type === "success" ? /* @__PURE__ */ n.jsx(ue, { size: 20 }) : /* @__PURE__ */ n.jsx(ie, { size: 20 }),
3609
3608
  /* @__PURE__ */ n.jsx("span", { children: g.text })
3610
3609
  ]
3611
3610
  }
@@ -3651,7 +3650,7 @@ const qs = [
3651
3650
  style: {
3652
3651
  textAlign: "center",
3653
3652
  fontSize: "12px",
3654
- color: V,
3653
+ color: Y,
3655
3654
  marginTop: "16px",
3656
3655
  padding: "0 4px"
3657
3656
  },
@@ -3691,10 +3690,10 @@ const qs = [
3691
3690
  email: "",
3692
3691
  otp: "",
3693
3692
  newPassword: ""
3694
- }), [E, V] = R(!1), z = c ? "#ffffff" : "#111827", I = c ? "#a1a1aa" : "#6b7280", W = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", Z = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3693
+ }), [E, Y] = R(!1), z = c ? "#ffffff" : "#111827", I = c ? "#a1a1aa" : "#6b7280", W = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", Z = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3695
3694
  Te.useEffect(() => {
3696
3695
  if (typeof window < "u") {
3697
- const S = () => V(window.innerWidth < 768);
3696
+ const S = () => Y(window.innerWidth < 768);
3698
3697
  return S(), window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
3699
3698
  }
3700
3699
  }, []);
@@ -3704,6 +3703,10 @@ const qs = [
3704
3703
  const j = await m.loginUser({ email: g, password: F }), { user: G } = j;
3705
3704
  if (!G)
3706
3705
  throw new Error(j.message || "Login failed");
3706
+ if (typeof document < "u") {
3707
+ const le = "a_s_b", H = "true", te = /* @__PURE__ */ new Date();
3708
+ te.setTime(te.getTime() + 3600 * 1e3), document.cookie = `${le}=${H}; path=/; expires=${te.toUTCString()}; SameSite=Lax`;
3709
+ }
3707
3710
  _({ type: "success", text: `Welcome ${G.name}` }), u?.(G);
3708
3711
  } catch (j) {
3709
3712
  const G = j.message || "Login failed";
@@ -4232,7 +4235,7 @@ const qs = [
4232
4235
  color: y.type === "success" ? o : "#ef4444"
4233
4236
  },
4234
4237
  children: [
4235
- y.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(se, { size: 20 }),
4238
+ y.type === "success" ? /* @__PURE__ */ n.jsx(ue, { size: 20 }) : /* @__PURE__ */ n.jsx(ie, { size: 20 }),
4236
4239
  /* @__PURE__ */ n.jsx("span", { children: y.text })
4237
4240
  ]
4238
4241
  }
@@ -4264,7 +4267,7 @@ const qs = [
4264
4267
  fallback: e = null
4265
4268
  }) => {
4266
4269
  const [r, s] = R(!1), [i, o] = R(null);
4267
- if (te(() => {
4270
+ if (re(() => {
4268
4271
  s(!0);
4269
4272
  const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
4270
4273
  o(h?.split("=")[1] === "true");
@@ -4276,7 +4279,7 @@ const qs = [
4276
4279
  fallback: e = null
4277
4280
  }) => {
4278
4281
  const [r, s] = R(!1), [i, o] = R(null);
4279
- if (te(() => {
4282
+ if (re(() => {
4280
4283
  s(!0);
4281
4284
  const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
4282
4285
  o(h?.split("=")[1] !== "true");
@@ -4293,7 +4296,7 @@ const qs = [
4293
4296
  colors: a
4294
4297
  }) => {
4295
4298
  const c = me(), [h, u] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [p, w] = R(!1);
4296
- if (te(() => {
4299
+ if (re(() => {
4297
4300
  if (typeof window > "u") return;
4298
4301
  const y = () => {
4299
4302
  w(window.innerWidth < 640);
@@ -4780,7 +4783,7 @@ const qs = [
4780
4783
  flexShrink: 0
4781
4784
  },
4782
4785
  children: /* @__PURE__ */ n.jsx(
4783
- ie,
4786
+ ae,
4784
4787
  {
4785
4788
  size: 20,
4786
4789
  style: {
@@ -5027,7 +5030,7 @@ const qs = [
5027
5030
  },
5028
5031
  children: [
5029
5032
  /* @__PURE__ */ n.jsx(
5030
- ie,
5033
+ ae,
5031
5034
  {
5032
5035
  size: 16,
5033
5036
  style: {
@@ -5142,13 +5145,13 @@ const qs = [
5142
5145
  colors: s
5143
5146
  }) => {
5144
5147
  const [i, o] = R(""), [a, c] = R(!1), [h, u] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5145
- if (te(() => {
5148
+ if (re(() => {
5146
5149
  if (typeof window > "u") return;
5147
5150
  const p = () => {
5148
5151
  u(window.innerWidth < 640);
5149
5152
  };
5150
5153
  return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
5151
- }, []), te(() => {
5154
+ }, []), re(() => {
5152
5155
  if (!i.trim()) {
5153
5156
  m({ isValid: !1, message: "", type: null });
5154
5157
  return;
@@ -5387,9 +5390,9 @@ const qs = [
5387
5390
  color: d.type === "success" ? s.success : d.type === "error" ? s.error : s.textTertiary
5388
5391
  },
5389
5392
  children: [
5390
- d.type === "success" && /* @__PURE__ */ n.jsx(de, { size: 14 }),
5391
- d.type === "error" && /* @__PURE__ */ n.jsx(se, { size: 14 }),
5392
- d.type === "warning" && /* @__PURE__ */ n.jsx(se, { size: 14 }),
5393
+ d.type === "success" && /* @__PURE__ */ n.jsx(ue, { size: 14 }),
5394
+ d.type === "error" && /* @__PURE__ */ n.jsx(ie, { size: 14 }),
5395
+ d.type === "warning" && /* @__PURE__ */ n.jsx(ie, { size: 14 }),
5393
5396
  d.message
5394
5397
  ]
5395
5398
  }
@@ -5514,7 +5517,7 @@ const qs = [
5514
5517
  },
5515
5518
  children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5516
5519
  /* @__PURE__ */ n.jsx(
5517
- ie,
5520
+ ae,
5518
5521
  {
5519
5522
  size: 16,
5520
5523
  style: {
@@ -5964,7 +5967,7 @@ const qs = [
5964
5967
  },
5965
5968
  children: m ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5966
5969
  /* @__PURE__ */ n.jsx(
5967
- ie,
5970
+ ae,
5968
5971
  {
5969
5972
  size: 16,
5970
5973
  style: {
@@ -6130,7 +6133,7 @@ const qs = [
6130
6133
  },
6131
6134
  "aria-label": c ? "Verifying email" : "Verify email",
6132
6135
  children: [
6133
- c ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }),
6136
+ c ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ue, { size: 16, "aria-hidden": "true" }),
6134
6137
  c ? "Verifying..." : "Verify Email"
6135
6138
  ]
6136
6139
  }
@@ -6147,7 +6150,7 @@ const qs = [
6147
6150
  },
6148
6151
  "aria-label": c ? "Sending OTP" : "Send OTP",
6149
6152
  children: [
6150
- c ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ut, { size: 16, "aria-hidden": "true" }),
6153
+ c ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ut, { size: 16, "aria-hidden": "true" }),
6151
6154
  c ? "Sending..." : "Send OTP"
6152
6155
  ]
6153
6156
  }
@@ -6316,11 +6319,11 @@ const qs = [
6316
6319
  onVerify: o,
6317
6320
  primaryColor: a = "#00C212"
6318
6321
  }) => {
6319
- const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [E, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6322
+ const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [E, Y] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6320
6323
  email: "",
6321
6324
  otp: ""
6322
6325
  }), [L, l] = R(!1), [b, S] = R(!1);
6323
- te(() => {
6326
+ re(() => {
6324
6327
  if (typeof window < "u") {
6325
6328
  const k = () => u(window.innerWidth);
6326
6329
  return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
@@ -6329,22 +6332,22 @@ const qs = [
6329
6332
  const j = (k, N) => {
6330
6333
  I({ type: k, message: N }), setTimeout(() => I(null), 3e3);
6331
6334
  }, G = () => {
6332
- V(!0);
6335
+ Y(!0);
6333
6336
  const k = setTimeout(() => {
6334
- X(!1), V(!1);
6337
+ X(!1), Y(!1);
6335
6338
  }, 150);
6336
6339
  return () => clearTimeout(k);
6337
6340
  };
6338
- te(() => {
6341
+ re(() => {
6339
6342
  const k = (N) => {
6340
- const H = document.querySelector(".dropdown-container");
6341
- H && !H.contains(N.target) && G();
6343
+ const V = document.querySelector(".dropdown-container");
6344
+ V && !V.contains(N.target) && G();
6342
6345
  };
6343
6346
  return M && document.addEventListener("mousedown", k), () => {
6344
6347
  document.removeEventListener("mousedown", k);
6345
6348
  };
6346
6349
  }, [M]);
6347
- const ue = async () => {
6350
+ const le = async () => {
6348
6351
  if (!B.email || !/\S+@\S+\.\S+/.test(B.email)) {
6349
6352
  j("error", "Please enter a valid email");
6350
6353
  return;
@@ -6358,15 +6361,15 @@ const qs = [
6358
6361
  const k = await c.requestEmailVerificationOTP({
6359
6362
  userId: d.id,
6360
6363
  email: B.email
6361
- }), N = k?.data?.success ?? k?.success, H = k?.data?.message ?? k?.message;
6362
- N ? (j("success", H || "OTP sent to email!"), l(!0)) : j("error", H || "Failed to send OTP");
6364
+ }), N = k?.data?.success ?? k?.success, V = k?.data?.message ?? k?.message;
6365
+ N ? (j("success", V || "OTP sent to email!"), l(!0)) : j("error", V || "Failed to send OTP");
6363
6366
  } catch (k) {
6364
6367
  const N = k?.response?.data?.message || k?.message || "Server error";
6365
6368
  j("error", N);
6366
6369
  } finally {
6367
6370
  S(!1);
6368
6371
  }
6369
- }, Y = async (k) => {
6372
+ }, H = async (k) => {
6370
6373
  if (k.preventDefault(), !B.email || !B.otp) {
6371
6374
  j("error", "Please fill in all fields");
6372
6375
  return;
@@ -6380,25 +6383,25 @@ const qs = [
6380
6383
  const N = await c.verifyEmail({
6381
6384
  email: B.email,
6382
6385
  otp: B.otp
6383
- }), H = N?.data?.success ?? N?.success, Q = N?.data?.message ?? N?.message;
6384
- if (H) {
6386
+ }), V = N?.data?.success ?? N?.success, Q = N?.data?.message ?? N?.message;
6387
+ if (V) {
6385
6388
  j("success", Q || "Email verified!");
6386
- const le = { ...d, isVerified: !0 };
6387
- m(le);
6389
+ const ce = { ...d, isVerified: !0 };
6390
+ m(ce);
6388
6391
  const Se = d?.token ?? "";
6389
6392
  localStorage.setItem(
6390
6393
  "userInfo",
6391
- JSON.stringify({ ...le, token: Se })
6392
- ), typeof o == "function" && o(le), K({ email: le.email, otp: "" }), l(!1), U?.(!1);
6394
+ JSON.stringify({ ...ce, token: Se })
6395
+ ), typeof o == "function" && o(ce), K({ email: ce.email, otp: "" }), l(!1), U?.(!1);
6393
6396
  } else
6394
6397
  j("error", Q || "Verification failed");
6395
6398
  } catch (N) {
6396
- const H = N?.response?.data?.message || N?.message || "Something went wrong";
6397
- j("error", H);
6399
+ const V = N?.response?.data?.message || N?.message || "Something went wrong";
6400
+ j("error", V);
6398
6401
  } finally {
6399
6402
  S(!1);
6400
6403
  }
6401
- }, oe = async (k) => {
6404
+ }, te = async (k) => {
6402
6405
  if (!d) return !1;
6403
6406
  try {
6404
6407
  const N = await c.updateUser({
@@ -6406,14 +6409,14 @@ const qs = [
6406
6409
  avatarUrl: k
6407
6410
  });
6408
6411
  if (N?.success) {
6409
- const H = {
6412
+ const V = {
6410
6413
  ...d,
6411
6414
  // 🔒 keep existing auth fields
6412
6415
  ...N.user,
6413
6416
  // 🔁 merge backend response if present
6414
6417
  avatarUrl: k
6415
6418
  };
6416
- return m(H), j("success", "Avatar updated successfully!"), !0;
6419
+ return m(V), j("success", "Avatar updated successfully!"), !0;
6417
6420
  }
6418
6421
  return j("error", N?.message || "Failed to update avatar"), !1;
6419
6422
  } catch (N) {
@@ -6428,16 +6431,16 @@ const qs = [
6428
6431
  ...d
6429
6432
  });
6430
6433
  if (N.success && N.user) {
6431
- const H = N.user.email !== k, Q = {
6434
+ const V = N.user.email !== k, Q = {
6432
6435
  ...d,
6433
6436
  // keep old state
6434
6437
  ...N.user,
6435
6438
  // overwrite updated fields
6436
- isVerified: H ? !1 : d.isVerified
6439
+ isVerified: V ? !1 : d.isVerified
6437
6440
  };
6438
6441
  m(Q), localStorage.setItem("userInfo", JSON.stringify(Q)), j(
6439
6442
  "success",
6440
- H ? "Email updated. Please verify your new email." : "Profile updated successfully"
6443
+ V ? "Email updated. Please verify your new email." : "Profile updated successfully"
6441
6444
  ), w(!1);
6442
6445
  } else
6443
6446
  j("error", N.message || "Update failed");
@@ -6455,16 +6458,16 @@ const qs = [
6455
6458
  console.error("⚠️ User validation request failed:", N);
6456
6459
  }
6457
6460
  };
6458
- te(() => {
6461
+ re(() => {
6459
6462
  (async () => {
6460
6463
  try {
6461
6464
  O(!0);
6462
6465
  const N = await c.checkUserSession();
6463
6466
  if (N.user?.id) {
6464
- const H = N.user.id, Q = await c.getUserProfile({ userId: H });
6467
+ const V = N.user.id, Q = await c.getUserProfile({ userId: V });
6465
6468
  if (Q.user) {
6466
- const le = Q.user;
6467
- m(le), Ve(H);
6469
+ const ce = Q.user;
6470
+ m(ce), Ve(V);
6468
6471
  } else
6469
6472
  m(null), localStorage.removeItem("userInfo");
6470
6473
  } else
@@ -6475,12 +6478,12 @@ const qs = [
6475
6478
  O(!1);
6476
6479
  }
6477
6480
  })();
6478
- }, [e]), te(() => {
6481
+ }, [e]), re(() => {
6479
6482
  d?.email && K((k) => ({ ...k, email: d.email }));
6480
6483
  }, [d?.email]);
6481
6484
  const pt = (k, N) => {
6482
- let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) + N, le = (H >> 8 & 255) + N, Se = (H & 255) + N;
6483
- return Q = Math.min(255, Math.max(0, Q)), le = Math.min(255, Math.max(0, le)), Se = Math.min(255, Math.max(0, Se)), `#${(Se | le << 8 | Q << 16).toString(16).padStart(6, "0")}`;
6485
+ let V = parseInt(k.replace("#", ""), 16), Q = (V >> 16) + N, ce = (V >> 8 & 255) + N, Se = (V & 255) + N;
6486
+ return Q = Math.min(255, Math.max(0, Q)), ce = Math.min(255, Math.max(0, ce)), Se = Math.min(255, Math.max(0, Se)), `#${(Se | ce << 8 | Q << 16).toString(16).padStart(6, "0")}`;
6484
6487
  }, $ = r ? {
6485
6488
  background: "#000000",
6486
6489
  surface: "#09090b",
@@ -6535,7 +6538,7 @@ const qs = [
6535
6538
  },
6536
6539
  children: [
6537
6540
  /* @__PURE__ */ n.jsx(
6538
- ie,
6541
+ ae,
6539
6542
  {
6540
6543
  size: 40,
6541
6544
  color: $.accent,
@@ -6573,7 +6576,7 @@ const qs = [
6573
6576
  textAlign: "center"
6574
6577
  },
6575
6578
  children: [
6576
- /* @__PURE__ */ n.jsx(se, { size: 40, color: $.error, "aria-hidden": "true" }),
6579
+ /* @__PURE__ */ n.jsx(ie, { size: 40, color: $.error, "aria-hidden": "true" }),
6577
6580
  /* @__PURE__ */ n.jsx("p", { style: { color: $.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
6578
6581
  ]
6579
6582
  }
@@ -6657,7 +6660,7 @@ const qs = [
6657
6660
  role: "alert",
6658
6661
  "aria-live": "polite",
6659
6662
  children: [
6660
- z.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(se, { size: 20, "aria-hidden": "true" }),
6663
+ z.type === "success" ? /* @__PURE__ */ n.jsx(ue, { size: 20, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ie, { size: 20, "aria-hidden": "true" }),
6661
6664
  z.message
6662
6665
  ]
6663
6666
  }
@@ -6832,7 +6835,7 @@ const qs = [
6832
6835
  marginTop: "8px"
6833
6836
  },
6834
6837
  children: [
6835
- d.isVerified ? /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(se, { size: 16, "aria-hidden": "true" }),
6838
+ d.isVerified ? /* @__PURE__ */ n.jsx(ue, { size: 16, "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ie, { size: 16, "aria-hidden": "true" }),
6836
6839
  d.isVerified ? "Email Verified" : "Not Verified"
6837
6840
  ]
6838
6841
  }
@@ -6904,7 +6907,7 @@ const qs = [
6904
6907
  },
6905
6908
  children: [
6906
6909
  x ? /* @__PURE__ */ n.jsx(
6907
- ie,
6910
+ ae,
6908
6911
  {
6909
6912
  size: 16,
6910
6913
  style: { animation: "spin 1s linear infinite" },
@@ -6970,7 +6973,7 @@ const qs = [
6970
6973
  },
6971
6974
  children: [
6972
6975
  W ? /* @__PURE__ */ n.jsx(
6973
- ie,
6976
+ ae,
6974
6977
  {
6975
6978
  size: 14,
6976
6979
  style: { animation: "spin 1s linear infinite" },
@@ -7215,8 +7218,8 @@ const qs = [
7215
7218
  type: k.type,
7216
7219
  name: k.name,
7217
7220
  value: d[k.name],
7218
- onChange: (H) => m(
7219
- (Q) => Q && { ...Q, [H.target.name]: H.target.value }
7221
+ onChange: (V) => m(
7222
+ (Q) => Q && { ...Q, [V.target.name]: V.target.value }
7220
7223
  ),
7221
7224
  style: {
7222
7225
  padding: "12px",
@@ -7346,10 +7349,10 @@ const qs = [
7346
7349
  }
7347
7350
  },
7348
7351
  children: d.isVerified ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7349
- /* @__PURE__ */ n.jsx(de, { size: 16, "aria-hidden": "true" }),
7352
+ /* @__PURE__ */ n.jsx(ue, { size: 16, "aria-hidden": "true" }),
7350
7353
  "Verified"
7351
7354
  ] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7352
- /* @__PURE__ */ n.jsx(se, { size: 16, "aria-hidden": "true" }),
7355
+ /* @__PURE__ */ n.jsx(ie, { size: 16, "aria-hidden": "true" }),
7353
7356
  "Not Verified"
7354
7357
  ] })
7355
7358
  }
@@ -7399,7 +7402,7 @@ const qs = [
7399
7402
  onClose: () => {
7400
7403
  A(!1);
7401
7404
  },
7402
- onUpdate: oe,
7405
+ onUpdate: te,
7403
7406
  colors: $
7404
7407
  }
7405
7408
  ),
@@ -7433,8 +7436,8 @@ const qs = [
7433
7436
  onClose: () => {
7434
7437
  U(!1), l(!1), K({ email: d?.email || "", otp: "" });
7435
7438
  },
7436
- onVerify: Y,
7437
- onSendOTP: ue,
7439
+ onVerify: H,
7440
+ onSendOTP: le,
7438
7441
  verifyFormData: B,
7439
7442
  setVerifyFormData: K,
7440
7443
  otpSent: L,
@@ -7556,14 +7559,14 @@ const qs = [
7556
7559
  viewProfileLabel: O = "View Profile",
7557
7560
  logoutLabel: p = "Sign Out"
7558
7561
  }) => {
7559
- const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [E, V] = R(!1);
7560
- te(() => {
7562
+ const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [E, Y] = R(!1);
7563
+ re(() => {
7561
7564
  if (typeof window > "u") return;
7562
7565
  const l = () => {
7563
- V(window.innerWidth < 768);
7566
+ Y(window.innerWidth < 768);
7564
7567
  };
7565
7568
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
7566
- }, []), te(() => {
7569
+ }, []), re(() => {
7567
7570
  let l = !0;
7568
7571
  return (async () => {
7569
7572
  try {
@@ -7594,17 +7597,17 @@ const qs = [
7594
7597
  })(), () => {
7595
7598
  l = !1;
7596
7599
  };
7597
- }, [i, w]), te(() => {
7600
+ }, [i, w]), re(() => {
7598
7601
  if (typeof window > "u") return;
7599
7602
  const l = () => {
7600
7603
  if (!x || !U.current) return;
7601
- const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, ue = S - b.right, Y = b.left;
7604
+ const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, le = S - b.right, H = b.left;
7602
7605
  j - b.bottom;
7603
- const oe = ue >= G || ue > Y;
7604
- X(oe);
7606
+ const te = le >= G || le > H;
7607
+ X(te);
7605
7608
  };
7606
7609
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
7607
- }, [x]), te(() => {
7610
+ }, [x]), re(() => {
7608
7611
  if (typeof window > "u" || typeof document > "u")
7609
7612
  return;
7610
7613
  const l = (j) => {
@@ -8109,7 +8112,7 @@ const qs = [
8109
8112
  {
8110
8113
  style: { display: "flex", alignItems: "center", gap: "8px" },
8111
8114
  children: [
8112
- /* @__PURE__ */ n.jsx(se, { size: 16, "aria-hidden": "true" }),
8115
+ /* @__PURE__ */ n.jsx(ie, { size: 16, "aria-hidden": "true" }),
8113
8116
  /* @__PURE__ */ n.jsx("span", { children: g || "Not signed in" })
8114
8117
  ]
8115
8118
  }
@@ -8157,7 +8160,7 @@ const qs = [
8157
8160
  gap: 5
8158
8161
  },
8159
8162
  children: [
8160
- /* @__PURE__ */ n.jsx(se, { size: 24, style: { marginBottom: 8 } }),
8163
+ /* @__PURE__ */ n.jsx(ie, { size: 24, style: { marginBottom: 8 } }),
8161
8164
  /* @__PURE__ */ n.jsx("p", { style: { margin: 0 }, children: "User data is required to verify email." })
8162
8165
  ]
8163
8166
  }
@@ -8196,7 +8199,7 @@ const qs = [
8196
8199
  success: w(r, 0),
8197
8200
  warning: "#d97706"
8198
8201
  };
8199
- te(() => {
8202
+ re(() => {
8200
8203
  t?.email && h((g) => ({ ...g, email: t.email }));
8201
8204
  }, [t?.email]);
8202
8205
  const C = (g, v) => {
@@ -8345,7 +8348,7 @@ const qs = [
8345
8348
  gap: 8
8346
8349
  },
8347
8350
  children: [
8348
- O.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 16 }) : /* @__PURE__ */ n.jsx(se, { size: 16 }),
8351
+ O.type === "success" ? /* @__PURE__ */ n.jsx(ue, { size: 16 }) : /* @__PURE__ */ n.jsx(ie, { size: 16 }),
8349
8352
  O.message
8350
8353
  ]
8351
8354
  }
@@ -8463,7 +8466,7 @@ const qs = [
8463
8466
  fontSize: 14
8464
8467
  },
8465
8468
  children: [
8466
- m ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(de, { size: 16 }),
8469
+ m ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ue, { size: 16 }),
8467
8470
  m ? "Verifying..." : "Verify Email"
8468
8471
  ]
8469
8472
  }
@@ -8480,7 +8483,7 @@ const qs = [
8480
8483
  fontSize: 14
8481
8484
  },
8482
8485
  children: [
8483
- m ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8486
+ m ? /* @__PURE__ */ n.jsx(ae, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ut, { size: 16 }),
8484
8487
  m ? "Sending..." : "Send OTP"
8485
8488
  ]
8486
8489
  }