@neuctra/authix 1.1.75 → 1.1.76

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.
@@ -61,7 +61,7 @@ function Lt(t, e) {
61
61
  return i;
62
62
  return null;
63
63
  }
64
- const xe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qt = (t) => !ye(t) && t !== xe;
64
+ const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, qt = (t) => !ye(t) && t !== fe;
65
65
  function Ze() {
66
66
  const { caseless: t, skipUndefined: e } = qt(this) && this || {}, r = {}, s = (i, o) => {
67
67
  const a = t && Lt(r, o) || o;
@@ -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) => (xe.addEventListener("message", ({ source: i, data: o }) => {
174
- i === xe && o === r && s.length && s.shift()();
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 }) => {
174
+ i === fe && o === r && s.length && s.shift()();
175
175
  }, !1), (i) => {
176
- s.push(i), xe.postMessage(r, "*");
176
+ s.push(i), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
178
  typeof setImmediate == "function",
179
- re(xe.postMessage)
180
- ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(xe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[qe]), f = {
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 = {
181
181
  isArray: we,
182
182
  isArrayBuffer: $t,
183
183
  isBuffer: Re,
@@ -227,7 +227,7 @@ const Kr = (t) => {
227
227
  noop: Hr,
228
228
  toFiniteNumber: Vr,
229
229
  findKey: Lt,
230
- global: xe,
230
+ global: fe,
231
231
  isContextDefined: qt,
232
232
  isSpecCompliantForm: Yr,
233
233
  toJSONObject: Kr,
@@ -285,7 +285,7 @@ $.from = (t, e, r, s, i, o) => {
285
285
  const a = Object.create(Bt);
286
286
  f.toFlatObject(t, a, function(d) {
287
287
  return d !== Error.prototype;
288
- }, (p) => p !== "isAxiosError");
288
+ }, (u) => u !== "isAxiosError");
289
289
  const c = t && t.message ? t.message : "Error", h = e == null && t ? t.code : e;
290
290
  return $.call(a, c, h, r, s, i), t && a.cause == null && Object.defineProperty(a, "cause", { value: t, configurable: !0 }), a.name = t && t.name || "Error", o && Object.assign(a, o), a;
291
291
  };
@@ -320,42 +320,42 @@ function Be(t, e, r) {
320
320
  const s = r.metaTokens, i = r.visitor || d, o = r.dots, a = r.indexes, h = (r.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
321
321
  if (!f.isFunction(i))
322
322
  throw new TypeError("visitor must be a function");
323
- function p(u) {
324
- if (u === null) return "";
325
- if (f.isDate(u))
326
- return u.toISOString();
327
- if (f.isBoolean(u))
328
- return u.toString();
329
- if (!h && f.isBlob(u))
323
+ function u(p) {
324
+ if (p === null) return "";
325
+ if (f.isDate(p))
326
+ return p.toISOString();
327
+ if (f.isBoolean(p))
328
+ return p.toString();
329
+ if (!h && f.isBlob(p))
330
330
  throw new $("Blob is not supported. Use a Buffer instead.");
331
- return f.isArrayBuffer(u) || f.isTypedArray(u) ? h && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
331
+ return f.isArrayBuffer(p) || f.isTypedArray(p) ? h && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
332
332
  }
333
- function d(u, w, x) {
334
- let C = u;
335
- if (u && !x && typeof u == "object") {
333
+ function d(p, w, x) {
334
+ let C = p;
335
+ if (p && !x && typeof p == "object") {
336
336
  if (f.endsWith(w, "{}"))
337
- w = s ? w : w.slice(0, -2), u = JSON.stringify(u);
338
- else if (f.isArray(u) && en(u) || (f.isFileList(u) || f.endsWith(w, "[]")) && (C = f.toArray(u)))
337
+ w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
338
+ else if (f.isArray(p) && en(p) || (f.isFileList(p) || f.endsWith(w, "[]")) && (C = f.toArray(p)))
339
339
  return w = Vt(w), C.forEach(function(A, y) {
340
340
  !(f.isUndefined(A) || A === null) && e.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
342
  a === !0 ? ht([w], y, o) : a === null ? w : w + "[]",
343
- p(A)
343
+ u(A)
344
344
  );
345
345
  }), !1;
346
346
  }
347
- return Qe(u) ? !0 : (e.append(ht(x, w, o), p(u)), !1);
347
+ return Qe(p) ? !0 : (e.append(ht(x, w, o), u(p)), !1);
348
348
  }
349
349
  const m = [], P = Object.assign(tn, {
350
350
  defaultVisitor: d,
351
- convertValue: p,
351
+ convertValue: u,
352
352
  isVisitable: Qe
353
353
  });
354
- function O(u, w) {
355
- if (!f.isUndefined(u)) {
356
- if (m.indexOf(u) !== -1)
354
+ function O(p, w) {
355
+ if (!f.isUndefined(p)) {
356
+ if (m.indexOf(p) !== -1)
357
357
  throw Error("Circular reference detected in " + w.join("."));
358
- m.push(u), f.forEach(u, function(C, T) {
358
+ m.push(p), f.forEach(p, function(C, T) {
359
359
  (!(f.isUndefined(C) || C === null) && i.call(
360
360
  e,
361
361
  C,
@@ -679,24 +679,24 @@ let ne = class {
679
679
  }
680
680
  set(e, r, s) {
681
681
  const i = this;
682
- function o(c, h, p) {
682
+ function o(c, h, u) {
683
683
  const d = ke(h);
684
684
  if (!d)
685
685
  throw new Error("header name must be a non-empty string");
686
686
  const m = f.findKey(i, d);
687
- (!m || i[m] === void 0 || p === !0 || p === void 0 && i[m] !== !1) && (i[m || h] = Ne(c));
687
+ (!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || h] = Ne(c));
688
688
  }
689
- const a = (c, h) => f.forEach(c, (p, d) => o(p, d, h));
689
+ const a = (c, h) => f.forEach(c, (u, d) => o(u, d, h));
690
690
  if (f.isPlainObject(e) || e instanceof this.constructor)
691
691
  a(e, r);
692
692
  else if (f.isString(e) && (e = e.trim()) && !bn(e))
693
693
  a(gn(e), r);
694
694
  else if (f.isObject(e) && f.isIterable(e)) {
695
- let c = {}, h, p;
695
+ let c = {}, h, u;
696
696
  for (const d of e) {
697
697
  if (!f.isArray(d))
698
698
  throw TypeError("Object iterator must return a key-value pair");
699
- c[p = d[0]] = (h = c[p]) ? f.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
699
+ c[u = d[0]] = (h = c[u]) ? f.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
700
700
  }
701
701
  a(c, r);
702
702
  } else
@@ -845,25 +845,25 @@ function Sn(t, e) {
845
845
  const r = new Array(t), s = new Array(t);
846
846
  let i = 0, o = 0, a;
847
847
  return e = e !== void 0 ? e : 1e3, function(h) {
848
- const p = Date.now(), d = s[o];
849
- a || (a = p), r[i] = h, s[i] = p;
848
+ const u = Date.now(), d = s[o];
849
+ a || (a = u), r[i] = h, s[i] = u;
850
850
  let m = o, P = 0;
851
851
  for (; m !== i; )
852
852
  P += r[m++], m = m % t;
853
- if (i = (i + 1) % t, i === o && (o = (o + 1) % t), p - a < e)
853
+ if (i = (i + 1) % t, i === o && (o = (o + 1) % t), u - a < e)
854
854
  return;
855
- const O = d && p - d;
855
+ const O = d && u - d;
856
856
  return O ? Math.round(P * 1e3 / O) : void 0;
857
857
  };
858
858
  }
859
859
  function kn(t, e) {
860
860
  let r = 0, s = 1e3 / e, i, o;
861
- const a = (p, d = Date.now()) => {
862
- r = d, i = null, o && (clearTimeout(o), o = null), t(...p);
861
+ const a = (u, d = Date.now()) => {
862
+ r = d, i = null, o && (clearTimeout(o), o = null), t(...u);
863
863
  };
864
- return [(...p) => {
864
+ return [(...u) => {
865
865
  const d = Date.now(), m = d - r;
866
- m >= s ? a(p, d) : (i = p, o || (o = setTimeout(() => {
866
+ m >= s ? a(u, d) : (i = u, o || (o = setTimeout(() => {
867
867
  o = null, a(i);
868
868
  }, s - m)));
869
869
  }, () => i && a(i)];
@@ -872,15 +872,15 @@ const Le = (t, e, r = 3) => {
872
872
  let s = 0;
873
873
  const i = Sn(50, 250);
874
874
  return kn((o) => {
875
- const a = o.loaded, c = o.lengthComputable ? o.total : void 0, h = a - s, p = i(h), d = a <= c;
875
+ const a = o.loaded, c = o.lengthComputable ? o.total : void 0, h = a - s, u = i(h), d = a <= c;
876
876
  s = a;
877
877
  const m = {
878
878
  loaded: a,
879
879
  total: c,
880
880
  progress: c ? a / c : void 0,
881
881
  bytes: h,
882
- rate: p || void 0,
883
- estimated: p && c && d ? (c - a) / p : void 0,
882
+ rate: u || void 0,
883
+ estimated: u && c && d ? (c - a) / u : void 0,
884
884
  event: o,
885
885
  lengthComputable: c != null,
886
886
  [e ? "download" : "upload"]: !0
@@ -935,33 +935,33 @@ function Qt(t, e, r) {
935
935
  return t && (s || r == !1) ? Rn(t, e) : e;
936
936
  }
937
937
  const jt = (t) => t instanceof ne ? { ...t } : t;
938
- function me(t, e) {
938
+ function he(t, e) {
939
939
  e = e || {};
940
940
  const r = {};
941
- function s(p, d, m, P) {
942
- return f.isPlainObject(p) && f.isPlainObject(d) ? f.merge.call({ caseless: P }, p, d) : f.isPlainObject(d) ? f.merge({}, d) : f.isArray(d) ? d.slice() : d;
941
+ function s(u, d, m, P) {
942
+ return f.isPlainObject(u) && f.isPlainObject(d) ? f.merge.call({ caseless: P }, u, d) : f.isPlainObject(d) ? f.merge({}, d) : f.isArray(d) ? d.slice() : d;
943
943
  }
944
- function i(p, d, m, P) {
944
+ function i(u, d, m, P) {
945
945
  if (f.isUndefined(d)) {
946
- if (!f.isUndefined(p))
947
- return s(void 0, p, m, P);
948
- } else return s(p, d, m, P);
946
+ if (!f.isUndefined(u))
947
+ return s(void 0, u, m, P);
948
+ } else return s(u, d, m, P);
949
949
  }
950
- function o(p, d) {
950
+ function o(u, d) {
951
951
  if (!f.isUndefined(d))
952
952
  return s(void 0, d);
953
953
  }
954
- function a(p, d) {
954
+ function a(u, d) {
955
955
  if (f.isUndefined(d)) {
956
- if (!f.isUndefined(p))
957
- return s(void 0, p);
956
+ if (!f.isUndefined(u))
957
+ return s(void 0, u);
958
958
  } else return s(void 0, d);
959
959
  }
960
- function c(p, d, m) {
960
+ function c(u, d, m) {
961
961
  if (m in e)
962
- return s(p, d);
962
+ return s(u, d);
963
963
  if (m in t)
964
- return s(void 0, p);
964
+ return s(void 0, u);
965
965
  }
966
966
  const h = {
967
967
  url: o,
@@ -992,7 +992,7 @@ function me(t, e) {
992
992
  socketPath: a,
993
993
  responseEncoding: a,
994
994
  validateStatus: c,
995
- headers: (p, d, m) => i(jt(p), jt(d), m, !0)
995
+ headers: (u, d, m) => i(jt(u), jt(d), m, !0)
996
996
  };
997
997
  return f.forEach(Object.keys({ ...t, ...e }), function(d) {
998
998
  const m = h[d] || i, P = m(t[d], e[d], d);
@@ -1000,7 +1000,7 @@ function me(t, e) {
1000
1000
  }), r;
1001
1001
  }
1002
1002
  const er = (t) => {
1003
- const e = me({}, t);
1003
+ const e = he({}, t);
1004
1004
  let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: o, headers: a, auth: c } = e;
1005
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(
1006
1006
  "Authorization",
@@ -1009,9 +1009,9 @@ const er = (t) => {
1009
1009
  if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
1010
1010
  a.setContentType(void 0);
1011
1011
  else if (f.isFunction(r.getHeaders)) {
1012
- const h = r.getHeaders(), p = ["content-type", "content-length"];
1012
+ const h = r.getHeaders(), u = ["content-type", "content-length"];
1013
1013
  Object.entries(h).forEach(([d, m]) => {
1014
- p.includes(d.toLowerCase()) && a.set(d, m);
1014
+ u.includes(d.toLowerCase()) && a.set(d, m);
1015
1015
  });
1016
1016
  }
1017
1017
  }
@@ -1025,9 +1025,9 @@ const er = (t) => {
1025
1025
  const i = er(t);
1026
1026
  let o = i.data;
1027
1027
  const a = ne.from(i.headers).normalize();
1028
- let { responseType: c, onUploadProgress: h, onDownloadProgress: p } = i, d, m, P, O, u;
1028
+ let { responseType: c, onUploadProgress: h, onDownloadProgress: u } = i, d, m, P, O, p;
1029
1029
  function w() {
1030
- O && O(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
1030
+ O && O(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
1031
1031
  }
1032
1032
  let x = new XMLHttpRequest();
1033
1033
  x.open(i.method.toUpperCase(), i.url, !0), x.timeout = i.timeout;
@@ -1068,7 +1068,7 @@ const er = (t) => {
1068
1068
  )), x = null;
1069
1069
  }, o === void 0 && a.setContentType(null), "setRequestHeader" in x && f.forEach(a.toJSON(), function(y, _) {
1070
1070
  x.setRequestHeader(_, y);
1071
- }), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), p && ([P, u] = Le(p, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = Le(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
1071
+ }), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), u && ([P, p] = Le(u, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = Le(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
1072
1072
  x && (s(!A || A.type ? new je(null, t, x) : A), x.abort(), x = null);
1073
1073
  }, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
1074
1074
  const T = vn(i.url);
@@ -1082,10 +1082,10 @@ const er = (t) => {
1082
1082
  const { length: r } = t = t ? t.filter(Boolean) : [];
1083
1083
  if (e || r) {
1084
1084
  let s = new AbortController(), i;
1085
- const o = function(p) {
1085
+ const o = function(u) {
1086
1086
  if (!i) {
1087
1087
  i = !0, c();
1088
- const d = p instanceof Error ? p : this.reason;
1088
+ const d = u instanceof Error ? u : this.reason;
1089
1089
  s.abort(d instanceof $ ? d : new je(d instanceof Error ? d.message : d));
1090
1090
  }
1091
1091
  };
@@ -1093,11 +1093,11 @@ const er = (t) => {
1093
1093
  a = null, o(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
1094
1094
  }, e);
1095
1095
  const c = () => {
1096
- t && (a && clearTimeout(a), a = null, t.forEach((p) => {
1097
- p.unsubscribe ? p.unsubscribe(o) : p.removeEventListener("abort", o);
1096
+ t && (a && clearTimeout(a), a = null, t.forEach((u) => {
1097
+ u.unsubscribe ? u.unsubscribe(o) : u.removeEventListener("abort", o);
1098
1098
  }), t = null);
1099
1099
  };
1100
- t.forEach((p) => p.addEventListener("abort", o));
1100
+ t.forEach((u) => u.addEventListener("abort", o));
1101
1101
  const { signal: h } = s;
1102
1102
  return h.unsubscribe = () => f.asap(c), h;
1103
1103
  }
@@ -1137,8 +1137,8 @@ const er = (t) => {
1137
1137
  return new ReadableStream({
1138
1138
  async pull(h) {
1139
1139
  try {
1140
- const { done: p, value: d } = await i.next();
1141
- if (p) {
1140
+ const { done: u, value: d } = await i.next();
1141
+ if (u) {
1142
1142
  c(), h.close();
1143
1143
  return;
1144
1144
  }
@@ -1148,8 +1148,8 @@ const er = (t) => {
1148
1148
  r(P);
1149
1149
  }
1150
1150
  h.enqueue(new Uint8Array(d));
1151
- } catch (p) {
1152
- throw c(p), p;
1151
+ } catch (u) {
1152
+ throw c(u), u;
1153
1153
  }
1154
1154
  },
1155
1155
  cancel(h) {
@@ -1177,46 +1177,46 @@ const er = (t) => {
1177
1177
  const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", o = Ae(r), a = Ae(s);
1178
1178
  if (!i)
1179
1179
  return !1;
1180
- const c = i && Ae(kt), h = i && (typeof Et == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new Et()) : async (u) => new Uint8Array(await new r(u).arrayBuffer())), p = o && c && Ct(() => {
1181
- let u = !1;
1180
+ const c = i && Ae(kt), h = i && (typeof Et == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Et()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), u = o && c && Ct(() => {
1181
+ let p = !1;
1182
1182
  const w = new r(ee.origin, {
1183
1183
  body: new kt(),
1184
1184
  method: "POST",
1185
1185
  get duplex() {
1186
- return u = !0, "half";
1186
+ return p = !0, "half";
1187
1187
  }
1188
1188
  }).headers.has("Content-Type");
1189
- return u && !w;
1189
+ return p && !w;
1190
1190
  }), d = a && c && Ct(() => f.isReadableStream(new s("").body)), m = {
1191
- stream: d && ((u) => u.body)
1191
+ stream: d && ((p) => p.body)
1192
1192
  };
1193
- i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
1194
- !m[u] && (m[u] = (w, x) => {
1195
- let C = w && w[u];
1193
+ i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
1194
+ !m[p] && (m[p] = (w, x) => {
1195
+ let C = w && w[p];
1196
1196
  if (C)
1197
1197
  return C.call(w);
1198
- throw new $(`Response type '${u}' is not supported`, $.ERR_NOT_SUPPORT, x);
1198
+ throw new $(`Response type '${p}' is not supported`, $.ERR_NOT_SUPPORT, x);
1199
1199
  });
1200
1200
  });
1201
- const P = async (u) => {
1202
- if (u == null)
1201
+ const P = async (p) => {
1202
+ if (p == null)
1203
1203
  return 0;
1204
- if (f.isBlob(u))
1205
- return u.size;
1206
- if (f.isSpecCompliantForm(u))
1204
+ if (f.isBlob(p))
1205
+ return p.size;
1206
+ if (f.isSpecCompliantForm(p))
1207
1207
  return (await new r(ee.origin, {
1208
1208
  method: "POST",
1209
- body: u
1209
+ body: p
1210
1210
  }).arrayBuffer()).byteLength;
1211
- if (f.isArrayBufferView(u) || f.isArrayBuffer(u))
1212
- return u.byteLength;
1213
- if (f.isURLSearchParams(u) && (u = u + ""), f.isString(u))
1214
- return (await h(u)).byteLength;
1215
- }, O = async (u, w) => {
1216
- const x = f.toFiniteNumber(u.getContentLength());
1211
+ if (f.isArrayBufferView(p) || f.isArrayBuffer(p))
1212
+ return p.byteLength;
1213
+ if (f.isURLSearchParams(p) && (p = p + ""), f.isString(p))
1214
+ return (await h(p)).byteLength;
1215
+ }, O = async (p, w) => {
1216
+ const x = f.toFiniteNumber(p.getContentLength());
1217
1217
  return x ?? P(w);
1218
1218
  };
1219
- return async (u) => {
1219
+ return async (p) => {
1220
1220
  let {
1221
1221
  url: w,
1222
1222
  method: x,
@@ -1230,7 +1230,7 @@ const er = (t) => {
1230
1230
  headers: F,
1231
1231
  withCredentials: U = "same-origin",
1232
1232
  fetchOptions: M
1233
- } = er(u), X = e || fetch;
1233
+ } = er(p), X = e || fetch;
1234
1234
  v = v ? (v + "").toLowerCase() : "text";
1235
1235
  let E = On([T, A && A.toAbortSignal()], y), V = null;
1236
1236
  const z = E && E.unsubscribe && (() => {
@@ -1238,7 +1238,7 @@ const er = (t) => {
1238
1238
  });
1239
1239
  let I;
1240
1240
  try {
1241
- if (g && p && x !== "get" && x !== "head" && (I = await O(F, C)) !== 0) {
1241
+ if (g && u && x !== "get" && x !== "head" && (I = await O(F, C)) !== 0) {
1242
1242
  let l = new r(w, {
1243
1243
  method: "POST",
1244
1244
  body: C,
@@ -1282,24 +1282,24 @@ const er = (t) => {
1282
1282
  );
1283
1283
  }
1284
1284
  v = v || "text";
1285
- let L = await m[f.findKey(m, v) || "text"](B, u);
1285
+ let L = await m[f.findKey(m, v) || "text"](B, p);
1286
1286
  return !K && z && z(), await new Promise((l, b) => {
1287
1287
  Zt(l, b, {
1288
1288
  data: L,
1289
1289
  headers: ne.from(B.headers),
1290
1290
  status: B.status,
1291
1291
  statusText: B.statusText,
1292
- config: u,
1292
+ config: p,
1293
1293
  request: V
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 $("Network Error", $.ERR_NETWORK, u, V),
1298
+ new $("Network Error", $.ERR_NETWORK, p, V),
1299
1299
  {
1300
1300
  cause: W.cause || W
1301
1301
  }
1302
- ) : $.from(W, W && W.code, u, V);
1302
+ ) : $.from(W, W && W.code, p, V);
1303
1303
  }
1304
1304
  };
1305
1305
  }, Dn = /* @__PURE__ */ new Map(), tr = (t) => {
@@ -1309,10 +1309,10 @@ const er = (t) => {
1309
1309
  i,
1310
1310
  r
1311
1311
  ];
1312
- let a = o.length, c = a, h, p, d = Dn;
1312
+ let a = o.length, c = a, h, u, d = Dn;
1313
1313
  for (; c--; )
1314
- h = o[c], p = d.get(h), p === void 0 && d.set(h, p = c ? /* @__PURE__ */ new Map() : Nn(e)), d = p;
1315
- return p;
1314
+ h = o[c], u = d.get(h), u === void 0 && d.set(h, u = c ? /* @__PURE__ */ new Map() : Nn(e)), d = u;
1315
+ return u;
1316
1316
  };
1317
1317
  tr();
1318
1318
  const tt = {
@@ -1348,7 +1348,7 @@ const Tt = (t) => `- ${t}`, $n = (t) => f.isFunction(t) || t === null || t === !
1348
1348
  }
1349
1349
  if (!i) {
1350
1350
  const a = Object.entries(o).map(
1351
- ([h, p]) => `adapter ${h} ` + (p === !1 ? "is not supported by the environment" : "is not available in the build")
1351
+ ([h, u]) => `adapter ${h} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
1352
1352
  );
1353
1353
  let c = r ? a.length > 1 ? `since :
1354
1354
  ` + a.map(Tt).join(`
@@ -1433,7 +1433,7 @@ const De = {
1433
1433
  assertOptions: Fn,
1434
1434
  validators: He
1435
1435
  }, ce = De.validators;
1436
- let he = class {
1436
+ let xe = class {
1437
1437
  constructor(e) {
1438
1438
  this.defaults = e || {}, this.interceptors = {
1439
1439
  request: new gt(),
@@ -1466,7 +1466,7 @@ let he = class {
1466
1466
  }
1467
1467
  }
1468
1468
  _request(e, r) {
1469
- typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = me(this.defaults, r);
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 && De.assertOptions(s, {
1472
1472
  silentJSONParsing: ce.transitional(ce.boolean),
@@ -1487,8 +1487,8 @@ let he = class {
1487
1487
  );
1488
1488
  o && f.forEach(
1489
1489
  ["delete", "get", "head", "post", "put", "patch", "common"],
1490
- (u) => {
1491
- delete o[u];
1490
+ (p) => {
1491
+ delete o[p];
1492
1492
  }
1493
1493
  ), r.headers = ne.concat(a, o);
1494
1494
  const c = [];
@@ -1496,23 +1496,23 @@ let he = class {
1496
1496
  this.interceptors.request.forEach(function(w) {
1497
1497
  typeof w.runWhen == "function" && w.runWhen(r) === !1 || (h = h && w.synchronous, c.unshift(w.fulfilled, w.rejected));
1498
1498
  });
1499
- const p = [];
1499
+ const u = [];
1500
1500
  this.interceptors.response.forEach(function(w) {
1501
- p.push(w.fulfilled, w.rejected);
1501
+ u.push(w.fulfilled, w.rejected);
1502
1502
  });
1503
1503
  let d, m = 0, P;
1504
1504
  if (!h) {
1505
- const u = [Rt.bind(this), void 0];
1506
- for (u.unshift(...c), u.push(...p), P = u.length, d = Promise.resolve(r); m < P; )
1507
- d = d.then(u[m++], u[m++]);
1505
+ const p = [Rt.bind(this), void 0];
1506
+ for (p.unshift(...c), p.push(...u), P = p.length, d = Promise.resolve(r); m < P; )
1507
+ d = d.then(p[m++], p[m++]);
1508
1508
  return d;
1509
1509
  }
1510
1510
  P = c.length;
1511
1511
  let O = r;
1512
1512
  for (; m < P; ) {
1513
- const u = c[m++], w = c[m++];
1513
+ const p = c[m++], w = c[m++];
1514
1514
  try {
1515
- O = u(O);
1515
+ O = p(O);
1516
1516
  } catch (x) {
1517
1517
  w.call(this, x);
1518
1518
  break;
@@ -1520,22 +1520,22 @@ let he = class {
1520
1520
  }
1521
1521
  try {
1522
1522
  d = Rt.call(this, O);
1523
- } catch (u) {
1524
- return Promise.reject(u);
1523
+ } catch (p) {
1524
+ return Promise.reject(p);
1525
1525
  }
1526
- for (m = 0, P = p.length; m < P; )
1527
- d = d.then(p[m++], p[m++]);
1526
+ for (m = 0, P = u.length; m < P; )
1527
+ d = d.then(u[m++], u[m++]);
1528
1528
  return d;
1529
1529
  }
1530
1530
  getUri(e) {
1531
- e = me(this.defaults, e);
1531
+ e = he(this.defaults, e);
1532
1532
  const r = Qt(e.baseURL, e.url, e.allowAbsoluteUrls);
1533
1533
  return Kt(r, e.params, e.paramsSerializer);
1534
1534
  }
1535
1535
  };
1536
1536
  f.forEach(["delete", "get", "head", "options"], function(e) {
1537
- he.prototype[e] = function(r, s) {
1538
- return this.request(me(s || {}, {
1537
+ xe.prototype[e] = function(r, s) {
1538
+ return this.request(he(s || {}, {
1539
1539
  method: e,
1540
1540
  url: r,
1541
1541
  data: (s || {}).data
@@ -1545,7 +1545,7 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
1545
1545
  f.forEach(["post", "put", "patch"], function(e) {
1546
1546
  function r(s) {
1547
1547
  return function(o, a, c) {
1548
- return this.request(me(c || {}, {
1548
+ return this.request(he(c || {}, {
1549
1549
  method: e,
1550
1550
  headers: s ? {
1551
1551
  "Content-Type": "multipart/form-data"
@@ -1555,7 +1555,7 @@ f.forEach(["post", "put", "patch"], function(e) {
1555
1555
  }));
1556
1556
  };
1557
1557
  }
1558
- he.prototype[e] = r(), he.prototype[e + "Form"] = r(!0);
1558
+ xe.prototype[e] = r(), xe.prototype[e + "Form"] = r(!0);
1559
1559
  });
1560
1560
  let Ln = class sr {
1561
1561
  constructor(e) {
@@ -1707,13 +1707,13 @@ Object.entries(rt).forEach(([t, e]) => {
1707
1707
  rt[e] = t;
1708
1708
  });
1709
1709
  function ir(t) {
1710
- const e = new he(t), r = Nt(he.prototype.request, e);
1711
- return f.extend(r, he.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1712
- return ir(me(t, i));
1710
+ const e = new xe(t), r = Nt(xe.prototype.request, e);
1711
+ return f.extend(r, xe.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
1712
+ return ir(he(t, i));
1713
1713
  }, r;
1714
1714
  }
1715
1715
  const J = ir(Oe);
1716
- J.Axios = he;
1716
+ J.Axios = xe;
1717
1717
  J.CanceledError = je;
1718
1718
  J.CancelToken = Ln;
1719
1719
  J.isCancel = Xt;
@@ -1726,7 +1726,7 @@ J.all = function(e) {
1726
1726
  };
1727
1727
  J.spread = qn;
1728
1728
  J.isAxiosError = Mn;
1729
- J.mergeConfig = me;
1729
+ J.mergeConfig = he;
1730
1730
  J.AxiosHeaders = ne;
1731
1731
  J.formToJSON = (t) => Gt(f.isHTMLForm(t) ? new FormData(t) : t);
1732
1732
  J.getAdapter = rr.getAdapter;
@@ -2399,10 +2399,10 @@ function Bn() {
2399
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."
2400
2400
  )), l = this.props.ref, l !== void 0 ? l : null;
2401
2401
  }
2402
- function p(l, b, S, j, G, pe) {
2402
+ function u(l, b, S, j, G, ue) {
2403
2403
  var Y = S.ref;
2404
2404
  return l = {
2405
- $$typeof: u,
2405
+ $$typeof: p,
2406
2406
  type: l,
2407
2407
  key: b,
2408
2408
  props: S,
@@ -2429,10 +2429,10 @@ function Bn() {
2429
2429
  configurable: !1,
2430
2430
  enumerable: !1,
2431
2431
  writable: !0,
2432
- value: pe
2432
+ value: ue
2433
2433
  }), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
2434
2434
  }
2435
- function d(l, b, S, j, G, pe) {
2435
+ function d(l, b, S, j, G, ue) {
2436
2436
  var Y = b.children;
2437
2437
  if (Y !== void 0)
2438
2438
  if (j)
@@ -2471,22 +2471,22 @@ React keys must be passed directly to JSX without using spread:
2471
2471
  return Y && c(
2472
2472
  S,
2473
2473
  typeof l == "function" ? l.displayName || l.name || "Unknown" : l
2474
- ), p(
2474
+ ), u(
2475
2475
  l,
2476
2476
  Y,
2477
2477
  S,
2478
2478
  i(),
2479
2479
  G,
2480
- pe
2480
+ ue
2481
2481
  );
2482
2482
  }
2483
2483
  function m(l) {
2484
2484
  P(l) ? l._store && (l._store.validated = 1) : typeof l == "object" && l !== null && l.$$typeof === U && (l._payload.status === "fulfilled" ? P(l._payload.value) && l._payload.value._store && (l._payload.value._store.validated = 1) : l._store && (l._store.validated = 1));
2485
2485
  }
2486
2486
  function P(l) {
2487
- return typeof l == "object" && l !== null && l.$$typeof === u;
2487
+ return typeof l == "object" && l !== null && l.$$typeof === p;
2488
2488
  }
2489
- var O = Te, u = 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, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
2490
2490
  return null;
2491
2491
  };
2492
2492
  O = {
@@ -2590,7 +2590,7 @@ const Gn = Ut(
2590
2590
  ...c
2591
2591
  },
2592
2592
  [
2593
- ...a.map(([p, d]) => Xe(p, d)),
2593
+ ...a.map(([u, d]) => Xe(u, d)),
2594
2594
  ...Array.isArray(o) ? o : [o]
2595
2595
  ]
2596
2596
  )
@@ -2866,7 +2866,7 @@ const vs = [
2866
2866
  const Ss = [
2867
2867
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2868
2868
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2869
- ], fe = q("mail", Ss);
2869
+ ], pe = q("mail", Ss);
2870
2870
  /**
2871
2871
  * @license lucide-react v0.544.0 - ISC
2872
2872
  *
@@ -3042,7 +3042,7 @@ const qs = [
3042
3042
  ], ze = q("x", qs), dr = pr(null), pi = ({
3043
3043
  authix: t,
3044
3044
  children: e
3045
- }) => /* @__PURE__ */ n.jsx(dr.Provider, { value: t, children: e }), ue = () => {
3045
+ }) => /* @__PURE__ */ n.jsx(dr.Provider, { value: t, children: e }), me = () => {
3046
3046
  const t = fr(dr);
3047
3047
  if (!t)
3048
3048
  throw new Error("useAuthix must be used inside <AuthixProvider />");
@@ -3058,7 +3058,7 @@ const qs = [
3058
3058
  darkMode: c = !0,
3059
3059
  // Only avatar is optional
3060
3060
  showAvatar: h = !1,
3061
- roles: p = [],
3061
+ roles: u = [],
3062
3062
  // 🔥 FIXED
3063
3063
  showRoleSelector: d = !1,
3064
3064
  // 🔥 FIXED
@@ -3066,11 +3066,11 @@ const qs = [
3066
3066
  onSuccess: P,
3067
3067
  onError: O
3068
3068
  }) => {
3069
- const u = ue(), w = {
3069
+ const p = me(), w = {
3070
3070
  name: "",
3071
3071
  email: "",
3072
3072
  password: "",
3073
- role: p.length ? p[0] : "user",
3073
+ role: u.length ? u[0] : "user",
3074
3074
  ...h && { avatarUrl: "" }
3075
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", 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)";
3076
3076
  Te.useEffect(() => {
@@ -3095,7 +3095,7 @@ const qs = [
3095
3095
  password: x.password,
3096
3096
  role: x.role,
3097
3097
  ...x.avatarUrl ? { avatarUrl: x.avatarUrl } : {}
3098
- }, b = await u.signupUser(l);
3098
+ }, b = await p.signupUser(l);
3099
3099
  b.success ? (v({
3100
3100
  type: "success",
3101
3101
  text: b.message || "Account created successfully!"
@@ -3237,7 +3237,7 @@ const qs = [
3237
3237
  onSubmit: B,
3238
3238
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3239
3239
  children: [
3240
- d && p && p.length === 2 && /* @__PURE__ */ n.jsxs(
3240
+ d && u && u.length === 2 && /* @__PURE__ */ n.jsxs(
3241
3241
  "div",
3242
3242
  {
3243
3243
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -3282,7 +3282,7 @@ const qs = [
3282
3282
  // subtle shadow
3283
3283
  borderRadius: "10px",
3284
3284
  transition: "transform 0.3s ease, background-color 0.3s ease",
3285
- transform: x.role === p[1] ? "translateX(100%)" : "translateX(0)",
3285
+ transform: x.role === u[1] ? "translateX(100%)" : "translateX(0)",
3286
3286
  zIndex: 0
3287
3287
  }
3288
3288
  }
@@ -3291,43 +3291,43 @@ const qs = [
3291
3291
  "button",
3292
3292
  {
3293
3293
  type: "button",
3294
- onClick: () => C((L) => ({ ...L, role: p[0] })),
3294
+ onClick: () => C((L) => ({ ...L, role: u[0] })),
3295
3295
  style: {
3296
3296
  flex: 1,
3297
3297
  zIndex: 10,
3298
3298
  border: "none",
3299
3299
  background: "transparent",
3300
- color: x.role === p[0] ? o : c ? "#9ca3af" : "#6b7280",
3300
+ color: x.role === u[0] ? o : c ? "#9ca3af" : "#6b7280",
3301
3301
  // theme-aware inactive color
3302
- fontWeight: x.role === p[0] ? 600 : 500,
3302
+ fontWeight: x.role === u[0] ? 600 : 500,
3303
3303
  fontSize: "14px",
3304
3304
  display: "flex",
3305
3305
  alignItems: "center",
3306
3306
  justifyContent: "center",
3307
3307
  transition: "color 0.2s ease"
3308
3308
  },
3309
- children: p[0].charAt(0).toUpperCase() + p[0].slice(1)
3309
+ children: u[0].charAt(0).toUpperCase() + u[0].slice(1)
3310
3310
  }
3311
3311
  ),
3312
3312
  /* @__PURE__ */ n.jsx(
3313
3313
  "button",
3314
3314
  {
3315
3315
  type: "button",
3316
- onClick: () => C((L) => ({ ...L, role: p[1] })),
3316
+ onClick: () => C((L) => ({ ...L, role: u[1] })),
3317
3317
  style: {
3318
3318
  flex: 1,
3319
3319
  zIndex: 10,
3320
3320
  border: "none",
3321
3321
  background: "transparent",
3322
- color: x.role === p[1] ? o : c ? "#9ca3af" : "#6b7280",
3323
- fontWeight: x.role === p[1] ? 600 : 500,
3322
+ color: x.role === u[1] ? o : c ? "#9ca3af" : "#6b7280",
3323
+ fontWeight: x.role === u[1] ? 600 : 500,
3324
3324
  fontSize: "14px",
3325
3325
  display: "flex",
3326
3326
  alignItems: "center",
3327
3327
  justifyContent: "center",
3328
3328
  transition: "color 0.2s ease"
3329
3329
  },
3330
- children: p[1].charAt(0).toUpperCase() + p[1].slice(1)
3330
+ children: u[1].charAt(0).toUpperCase() + u[1].slice(1)
3331
3331
  }
3332
3332
  )
3333
3333
  ]
@@ -3406,7 +3406,7 @@ const qs = [
3406
3406
  ),
3407
3407
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3408
3408
  /* @__PURE__ */ n.jsx(
3409
- fe,
3409
+ pe,
3410
3410
  {
3411
3411
  size: 20,
3412
3412
  style: {
@@ -3683,10 +3683,10 @@ const qs = [
3683
3683
  gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
3684
3684
  darkMode: c = !0,
3685
3685
  signupUrl: h,
3686
- onSuccess: p,
3686
+ onSuccess: u,
3687
3687
  onError: d
3688
3688
  }) => {
3689
- const m = ue(), [P, O] = R("login"), [u, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, v] = R(""), [F, U] = R(""), [M, X] = R({
3689
+ const m = me(), [P, O] = R("login"), [p, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, v] = R(""), [F, U] = R(""), [M, X] = R({
3690
3690
  email: "",
3691
3691
  otp: "",
3692
3692
  newPassword: ""
@@ -3703,7 +3703,7 @@ const qs = [
3703
3703
  const j = await m.loginUser({ email: g, password: F }), { user: G } = j;
3704
3704
  if (!G)
3705
3705
  throw new Error(j.message || "Login failed");
3706
- _({ type: "success", text: `Welcome ${G.name}` }), p?.(G);
3706
+ _({ type: "success", text: `Welcome ${G.name}` }), u?.(G);
3707
3707
  } catch (j) {
3708
3708
  const G = j.message || "Login failed";
3709
3709
  _({ type: "error", text: G }), d?.(j);
@@ -3829,7 +3829,7 @@ const qs = [
3829
3829
  color: z,
3830
3830
  margin: 0
3831
3831
  },
3832
- children: P === "login" ? r : u === 1 ? "Forgot Password" : "Reset Password"
3832
+ children: P === "login" ? r : p === 1 ? "Forgot Password" : "Reset Password"
3833
3833
  }
3834
3834
  ),
3835
3835
  /* @__PURE__ */ n.jsx(
@@ -3870,7 +3870,7 @@ const qs = [
3870
3870
  ),
3871
3871
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
3872
3872
  /* @__PURE__ */ n.jsx(
3873
- fe,
3873
+ pe,
3874
3874
  {
3875
3875
  size: 20,
3876
3876
  style: {
@@ -4024,10 +4024,10 @@ const qs = [
4024
4024
  P === "forgot" && /* @__PURE__ */ n.jsxs(
4025
4025
  "form",
4026
4026
  {
4027
- onSubmit: u === 1 ? L : l,
4027
+ onSubmit: p === 1 ? L : l,
4028
4028
  style: { display: "flex", flexDirection: "column", gap: "14px" },
4029
4029
  children: [
4030
- u === 1 ? /* @__PURE__ */ n.jsxs(
4030
+ p === 1 ? /* @__PURE__ */ n.jsxs(
4031
4031
  "div",
4032
4032
  {
4033
4033
  style: { display: "flex", flexDirection: "column", gap: "4px" },
@@ -4046,7 +4046,7 @@ const qs = [
4046
4046
  ),
4047
4047
  /* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
4048
4048
  /* @__PURE__ */ n.jsx(
4049
- fe,
4049
+ pe,
4050
4050
  {
4051
4051
  size: 20,
4052
4052
  style: {
@@ -4191,7 +4191,7 @@ const qs = [
4191
4191
  borderRadius: "10px",
4192
4192
  fontWeight: 600
4193
4193
  },
4194
- children: T ? "Please wait..." : u === 1 ? "Send Reset OTP" : "Reset Password"
4194
+ children: T ? "Please wait..." : p === 1 ? "Send Reset OTP" : "Reset Password"
4195
4195
  }
4196
4196
  ),
4197
4197
  /* @__PURE__ */ n.jsx(
@@ -4262,40 +4262,30 @@ const qs = [
4262
4262
  children: t,
4263
4263
  fallback: e = null
4264
4264
  }) => {
4265
- const r = ue(), [s, i] = R(!1), [o, a] = R(null);
4265
+ const [r, s] = R(!1), [i, o] = R(null);
4266
4266
  if (te(() => {
4267
- i(!0);
4268
- const p = document.cookie.split(";").map((m) => m.trim()).some((m) => m.startsWith("authix_session="));
4269
- a(!!p), (async () => {
4270
- try {
4271
- const m = await r.checkUserSession();
4272
- a(!!m?.authenticated);
4273
- } catch {
4274
- a(!1);
4275
- }
4276
- })();
4277
- }, [r]), !s) return null;
4278
- const c = (h) => typeof h == "function" ? h() : h;
4279
- return o === null ? c(e) ?? null : o ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : c(e);
4267
+ s(!0);
4268
+ const h = document.cookie.split(";").map((u) => u.trim()).some(
4269
+ (u) => u.startsWith("authix_session=")
4270
+ );
4271
+ o(h);
4272
+ }, []), !r) return null;
4273
+ const a = (c) => typeof c == "function" ? c() : c;
4274
+ return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
4280
4275
  }, mi = ({
4281
4276
  children: t,
4282
4277
  fallback: e = null
4283
4278
  }) => {
4284
- const r = ue(), [s, i] = R(!1), [o, a] = R(null);
4279
+ const [r, s] = R(!1), [i, o] = R(null);
4285
4280
  if (te(() => {
4286
- i(!0);
4287
- const p = document.cookie.split(";").map((m) => m.trim()).some((m) => m.startsWith("authix_session="));
4288
- a(!p), (async () => {
4289
- try {
4290
- const m = await r.checkUserSession();
4291
- a(!m?.authenticated);
4292
- } catch {
4293
- a(!0);
4294
- }
4295
- })();
4296
- }, [r]), !s) return null;
4297
- const c = (h) => typeof h == "function" ? h() : h;
4298
- return o === null ? c(e) ?? null : o ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : c(e);
4281
+ s(!0);
4282
+ const h = document.cookie.split(";").map((u) => u.trim()).some(
4283
+ (u) => u.startsWith("authix_session=")
4284
+ );
4285
+ o(!h);
4286
+ }, []), !r) return null;
4287
+ const a = (c) => typeof c == "function" ? c() : c;
4288
+ return i === null ? a(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : a(e);
4299
4289
  }, Ms = ({
4300
4290
  isOpen: t,
4301
4291
  onClose: e,
@@ -4305,7 +4295,7 @@ const qs = [
4305
4295
  token: o,
4306
4296
  colors: a
4307
4297
  }) => {
4308
- const c = ue(), [h, p] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [u, w] = R(!1);
4298
+ const c = me(), [h, u] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [p, w] = R(!1);
4309
4299
  if (te(() => {
4310
4300
  if (typeof window > "u") return;
4311
4301
  const y = () => {
@@ -4314,7 +4304,7 @@ const qs = [
4314
4304
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
4315
4305
  }, []), !t) return null;
4316
4306
  const x = async () => {
4317
- p(!0), O("processing");
4307
+ u(!0), O("processing");
4318
4308
  try {
4319
4309
  const y = await c.deleteUser({
4320
4310
  userId: i
@@ -4325,7 +4315,7 @@ const qs = [
4325
4315
  } catch (y) {
4326
4316
  s(y.response?.data?.message || "Something went wrong"), O("warning");
4327
4317
  } finally {
4328
- p(!1);
4318
+ u(!1);
4329
4319
  }
4330
4320
  }, C = d.toLowerCase() === "delete my account", T = (y) => {
4331
4321
  y.target === y.currentTarget && P !== "processing" && P !== "success" && e();
@@ -4507,7 +4497,7 @@ const qs = [
4507
4497
  style: {
4508
4498
  display: "flex",
4509
4499
  gap: "12px",
4510
- flexDirection: u ? "column-reverse" : "row",
4500
+ flexDirection: p ? "column-reverse" : "row",
4511
4501
  justifyContent: "flex-end",
4512
4502
  alignItems: "stretch"
4513
4503
  },
@@ -4525,8 +4515,8 @@ const qs = [
4525
4515
  fontSize: "14px",
4526
4516
  fontWeight: 500,
4527
4517
  cursor: "pointer",
4528
- flex: u ? "none" : 1,
4529
- minWidth: u ? "100%" : "120px",
4518
+ flex: p ? "none" : 1,
4519
+ minWidth: p ? "100%" : "120px",
4530
4520
  transition: "all 0.2s ease"
4531
4521
  },
4532
4522
  onMouseOver: (y) => {
@@ -4551,8 +4541,8 @@ const qs = [
4551
4541
  fontSize: "14px",
4552
4542
  fontWeight: 600,
4553
4543
  cursor: "pointer",
4554
- flex: u ? "none" : 1,
4555
- minWidth: u ? "100%" : "140px",
4544
+ flex: p ? "none" : 1,
4545
+ minWidth: p ? "100%" : "140px",
4556
4546
  display: "flex",
4557
4547
  alignItems: "center",
4558
4548
  justifyContent: "center",
@@ -4713,8 +4703,8 @@ const qs = [
4713
4703
  fontSize: "14px",
4714
4704
  fontWeight: 500,
4715
4705
  cursor: "pointer",
4716
- flex: u ? "none" : 1,
4717
- minWidth: u ? "100%" : "120px",
4706
+ flex: p ? "none" : 1,
4707
+ minWidth: p ? "100%" : "120px",
4718
4708
  transition: "all 0.2s ease"
4719
4709
  },
4720
4710
  onMouseOver: (y) => {
@@ -4740,8 +4730,8 @@ const qs = [
4740
4730
  fontSize: "14px",
4741
4731
  fontWeight: 600,
4742
4732
  cursor: !C || h ? "not-allowed" : "pointer",
4743
- flex: u ? "none" : 1,
4744
- minWidth: u ? "100%" : "140px",
4733
+ flex: p ? "none" : 1,
4734
+ minWidth: p ? "100%" : "140px",
4745
4735
  opacity: !C || h ? 0.6 : 1,
4746
4736
  display: "flex",
4747
4737
  alignItems: "center",
@@ -5154,20 +5144,20 @@ const qs = [
5154
5144
  onUpdate: r,
5155
5145
  colors: s
5156
5146
  }) => {
5157
- const [i, o] = R(""), [a, c] = R(!1), [h, p] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5147
+ const [i, o] = R(""), [a, c] = R(!1), [h, u] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
5158
5148
  if (te(() => {
5159
5149
  if (typeof window > "u") return;
5160
- const u = () => {
5161
- p(window.innerWidth < 640);
5150
+ const p = () => {
5151
+ u(window.innerWidth < 640);
5162
5152
  };
5163
- return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
5153
+ return p(), window.addEventListener("resize", p), () => window.removeEventListener("resize", p);
5164
5154
  }, []), te(() => {
5165
5155
  if (!i.trim()) {
5166
5156
  m({ isValid: !1, message: "", type: null });
5167
5157
  return;
5168
5158
  }
5169
5159
  try {
5170
- const u = new URL(i), w = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(u.pathname);
5160
+ const p = new URL(i), w = /\.(jpg|jpeg|png|gif|webp|svg)$/i.test(p.pathname);
5171
5161
  m(w ? {
5172
5162
  isValid: !0,
5173
5163
  message: "Valid image URL",
@@ -5194,8 +5184,8 @@ const qs = [
5194
5184
  c(!1);
5195
5185
  }
5196
5186
  }
5197
- }, O = (u) => {
5198
- u.target === u.currentTarget && e();
5187
+ }, O = (p) => {
5188
+ p.target === p.currentTarget && e();
5199
5189
  };
5200
5190
  return /* @__PURE__ */ n.jsxs(
5201
5191
  "div",
@@ -5302,11 +5292,11 @@ const qs = [
5302
5292
  flexShrink: 0,
5303
5293
  transition: "all 0.2s ease"
5304
5294
  },
5305
- onMouseOver: (u) => {
5306
- u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.color = s.textPrimary;
5295
+ onMouseOver: (p) => {
5296
+ p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.color = s.textPrimary;
5307
5297
  },
5308
- onMouseOut: (u) => {
5309
- u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.color = s.textTertiary;
5298
+ onMouseOut: (p) => {
5299
+ p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.color = s.textTertiary;
5310
5300
  },
5311
5301
  children: /* @__PURE__ */ n.jsx(ze, { size: 20 })
5312
5302
  }
@@ -5351,7 +5341,7 @@ const qs = [
5351
5341
  id: "avatar-url",
5352
5342
  placeholder: "https://example.com/your-avatar.jpg",
5353
5343
  value: i,
5354
- onChange: (u) => o(u.target.value),
5344
+ onChange: (p) => o(p.target.value),
5355
5345
  style: {
5356
5346
  width: "100%",
5357
5347
  padding: "14px 16px",
@@ -5365,11 +5355,11 @@ const qs = [
5365
5355
  transition: "all 0.2s ease",
5366
5356
  boxSizing: "border-box"
5367
5357
  },
5368
- onFocus: (u) => {
5369
- u.target.style.borderColor = s.accent, u.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5358
+ onFocus: (p) => {
5359
+ p.target.style.borderColor = s.accent, p.target.style.boxShadow = `0 0 0 3px ${s.accent}20`;
5370
5360
  },
5371
- onBlur: (u) => {
5372
- u.target.style.borderColor = d.type === "error" ? s.error : d.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
5361
+ onBlur: (p) => {
5362
+ p.target.style.borderColor = d.type === "error" ? s.error : d.type === "success" ? s.success : s.border, p.target.style.boxShadow = "none";
5373
5363
  },
5374
5364
  disabled: a
5375
5365
  }
@@ -5444,8 +5434,8 @@ const qs = [
5444
5434
  border: `2px solid ${s.success}40`,
5445
5435
  margin: "0 auto"
5446
5436
  },
5447
- onError: (u) => {
5448
- u.currentTarget.style.display = "none";
5437
+ onError: (p) => {
5438
+ p.currentTarget.style.display = "none";
5449
5439
  }
5450
5440
  }
5451
5441
  )
@@ -5486,11 +5476,11 @@ const qs = [
5486
5476
  opacity: a ? 0.6 : 1,
5487
5477
  transition: "all 0.2s ease"
5488
5478
  },
5489
- onMouseOver: (u) => {
5490
- a || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
5479
+ onMouseOver: (p) => {
5480
+ a || (p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.transform = "translateY(-1px)");
5491
5481
  },
5492
- onMouseOut: (u) => {
5493
- a || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
5482
+ onMouseOut: (p) => {
5483
+ a || (p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.transform = "translateY(0)");
5494
5484
  },
5495
5485
  children: "Cancel"
5496
5486
  }
@@ -5519,11 +5509,11 @@ const qs = [
5519
5509
  transition: "all 0.2s ease",
5520
5510
  boxShadow: a || !d.isValid ? "none" : `0 4px 12px ${s.accent}40`
5521
5511
  },
5522
- onMouseOver: (u) => {
5523
- !a && d.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5512
+ onMouseOver: (p) => {
5513
+ !a && d.isValid && (p.currentTarget.style.transform = "translateY(-1px)", p.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
5524
5514
  },
5525
- onMouseOut: (u) => {
5526
- !a && d.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5515
+ onMouseOut: (p) => {
5516
+ !a && d.isValid && (p.currentTarget.style.transform = "translateY(0)", p.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
5527
5517
  },
5528
5518
  children: a ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
5529
5519
  /* @__PURE__ */ n.jsx(
@@ -5608,11 +5598,11 @@ const qs = [
5608
5598
  userId: i,
5609
5599
  colors: o
5610
5600
  }) => {
5611
- const a = ue(), [c, h] = R({
5601
+ const a = me(), [c, h] = R({
5612
5602
  currentPassword: "",
5613
5603
  newPassword: "",
5614
5604
  confirmPassword: ""
5615
- }), [p, d] = R({}), [m, P] = R(!1), [O, u] = R({
5605
+ }), [u, d] = R({}), [m, P] = R(!1), [O, p] = R({
5616
5606
  currentPassword: !1,
5617
5607
  newPassword: !1,
5618
5608
  confirmPassword: !1
@@ -5626,9 +5616,9 @@ const qs = [
5626
5616
  }, []), !t) return null;
5627
5617
  const C = (g) => {
5628
5618
  const { name: v, value: F } = g.target;
5629
- h((U) => ({ ...U, [v]: F })), p[v] && d((U) => ({ ...U, [v]: "" }));
5619
+ h((U) => ({ ...U, [v]: F })), u[v] && d((U) => ({ ...U, [v]: "" }));
5630
5620
  }, T = (g) => {
5631
- u((v) => ({ ...v, [g]: !v[g] }));
5621
+ p((v) => ({ ...v, [g]: !v[g] }));
5632
5622
  }, A = () => {
5633
5623
  const g = {};
5634
5624
  return c.currentPassword || (g.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (g.newPassword = "Password must be at least 6 characters") : g.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (g.confirmPassword = "Passwords do not match"), d(g), Object.keys(g).length === 0;
@@ -5836,7 +5826,7 @@ const qs = [
5836
5826
  width: "100%",
5837
5827
  padding: "14px 48px 14px 44px",
5838
5828
  borderRadius: "10px",
5839
- border: `1.5px solid ${p[g] ? o.error : o.border}`,
5829
+ border: `1.5px solid ${u[g] ? o.error : o.border}`,
5840
5830
  backgroundColor: "transparent",
5841
5831
  color: o.textPrimary,
5842
5832
  fontSize: "15px",
@@ -5848,7 +5838,7 @@ const qs = [
5848
5838
  U.target.style.borderColor = o.accent, U.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
5849
5839
  },
5850
5840
  onBlur: (U) => {
5851
- U.target.style.borderColor = p[g] ? o.error : o.border, U.target.style.boxShadow = "none";
5841
+ U.target.style.borderColor = u[g] ? o.error : o.border, U.target.style.boxShadow = "none";
5852
5842
  }
5853
5843
  }
5854
5844
  ),
@@ -5884,7 +5874,7 @@ const qs = [
5884
5874
  }
5885
5875
  )
5886
5876
  ] }),
5887
- p[g] && /* @__PURE__ */ n.jsxs(
5877
+ u[g] && /* @__PURE__ */ n.jsxs(
5888
5878
  "div",
5889
5879
  {
5890
5880
  style: {
@@ -5897,7 +5887,7 @@ const qs = [
5897
5887
  },
5898
5888
  children: [
5899
5889
  /* @__PURE__ */ n.jsx("span", { style: { fontSize: "16px" }, children: "⚠" }),
5900
- p[g]
5890
+ u[g]
5901
5891
  ]
5902
5892
  }
5903
5893
  )
@@ -6047,7 +6037,7 @@ const qs = [
6047
6037
  otpSent: a,
6048
6038
  verifying: c,
6049
6039
  user: h,
6050
- colors: p,
6040
+ colors: u,
6051
6041
  darkMode: d
6052
6042
  }) => {
6053
6043
  if (!t) return null;
@@ -6067,18 +6057,18 @@ const qs = [
6067
6057
  {
6068
6058
  className: "verify-email-modal",
6069
6059
  style: {
6070
- backgroundColor: p.surface,
6071
- border: `1px solid ${p.border}`
6060
+ backgroundColor: u.surface,
6061
+ border: `1px solid ${u.border}`
6072
6062
  },
6073
6063
  children: [
6074
6064
  /* @__PURE__ */ n.jsxs("div", { className: "modal-header", children: [
6075
- /* @__PURE__ */ n.jsx("h3", { style: { color: p.textPrimary }, children: "Verify Your Email" }),
6065
+ /* @__PURE__ */ n.jsx("h3", { style: { color: u.textPrimary }, children: "Verify Your Email" }),
6076
6066
  /* @__PURE__ */ n.jsx(
6077
6067
  "button",
6078
6068
  {
6079
6069
  onClick: m,
6080
6070
  className: "close-btn",
6081
- style: { color: p.textTertiary },
6071
+ style: { color: u.textTertiary },
6082
6072
  "aria-label": "Close verification modal",
6083
6073
  children: /* @__PURE__ */ n.jsx(ze, { size: 20, "aria-hidden": "true" })
6084
6074
  }
@@ -6086,9 +6076,9 @@ const qs = [
6086
6076
  ] }),
6087
6077
  /* @__PURE__ */ n.jsxs("form", { className: "verify-form", onSubmit: r, children: [
6088
6078
  /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6089
- /* @__PURE__ */ n.jsx("label", { style: { color: p.textSecondary }, children: "Email" }),
6079
+ /* @__PURE__ */ n.jsx("label", { style: { color: u.textSecondary }, children: "Email" }),
6090
6080
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6091
- /* @__PURE__ */ n.jsx(fe, { size: 18, style: { color: p.textTertiary }, "aria-hidden": "true" }),
6081
+ /* @__PURE__ */ n.jsx(pe, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
6092
6082
  /* @__PURE__ */ n.jsx(
6093
6083
  "input",
6094
6084
  {
@@ -6097,9 +6087,9 @@ const qs = [
6097
6087
  onChange: (P) => o((O) => ({ ...O, email: P.target.value })),
6098
6088
  placeholder: "Enter your email",
6099
6089
  style: {
6100
- backgroundColor: p.surfaceLight,
6101
- color: p.textPrimary,
6102
- borderColor: p.border
6090
+ backgroundColor: u.surfaceLight,
6091
+ color: u.textPrimary,
6092
+ borderColor: u.border
6103
6093
  },
6104
6094
  required: !0,
6105
6095
  "aria-required": "true",
@@ -6109,9 +6099,9 @@ const qs = [
6109
6099
  ] })
6110
6100
  ] }),
6111
6101
  a && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
6112
- /* @__PURE__ */ n.jsx("label", { style: { color: p.textSecondary }, children: "OTP" }),
6102
+ /* @__PURE__ */ n.jsx("label", { style: { color: u.textSecondary }, children: "OTP" }),
6113
6103
  /* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
6114
- /* @__PURE__ */ n.jsx(lr, { size: 18, style: { color: p.textTertiary }, "aria-hidden": "true" }),
6104
+ /* @__PURE__ */ n.jsx(lr, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
6115
6105
  /* @__PURE__ */ n.jsx(
6116
6106
  "input",
6117
6107
  {
@@ -6120,9 +6110,9 @@ const qs = [
6120
6110
  onChange: (P) => o((O) => ({ ...O, otp: P.target.value })),
6121
6111
  placeholder: "Enter OTP",
6122
6112
  style: {
6123
- backgroundColor: p.surfaceLight,
6124
- color: p.textPrimary,
6125
- borderColor: p.border
6113
+ backgroundColor: u.surfaceLight,
6114
+ color: u.textPrimary,
6115
+ borderColor: u.border
6126
6116
  },
6127
6117
  required: !0,
6128
6118
  "aria-required": "true",
@@ -6138,7 +6128,7 @@ const qs = [
6138
6128
  disabled: c,
6139
6129
  className: "btn-primary",
6140
6130
  style: {
6141
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6131
+ background: `linear-gradient(to right, ${u.accent}, ${u.accentHover})`,
6142
6132
  opacity: c ? 0.7 : 1
6143
6133
  },
6144
6134
  "aria-label": c ? "Verifying email" : "Verify email",
@@ -6155,7 +6145,7 @@ const qs = [
6155
6145
  disabled: c,
6156
6146
  className: "btn-primary",
6157
6147
  style: {
6158
- background: `linear-gradient(to right, ${p.accent}, ${p.accentHover})`,
6148
+ background: `linear-gradient(to right, ${u.accent}, ${u.accentHover})`,
6159
6149
  opacity: c ? 0.7 : 1
6160
6150
  },
6161
6151
  "aria-label": c ? "Sending OTP" : "Send OTP",
@@ -6262,8 +6252,8 @@ const qs = [
6262
6252
  }
6263
6253
 
6264
6254
  .input-container input:focus {
6265
- border-color: ${p.accent};
6266
- box-shadow: 0 0 0 3px ${p.accent}20;
6255
+ border-color: ${u.accent};
6256
+ box-shadow: 0 0 0 3px ${u.accent}20;
6267
6257
  }
6268
6258
 
6269
6259
  .modal-actions {
@@ -6329,13 +6319,13 @@ const qs = [
6329
6319
  onVerify: o,
6330
6320
  primaryColor: a = "#00C212"
6331
6321
  }) => {
6332
- const c = ue(), [h, p] = R(null), [d, m] = R(e), [P, O] = R(!0), [u, 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, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
6333
6323
  email: "",
6334
6324
  otp: ""
6335
6325
  }), [L, l] = R(!1), [b, S] = R(!1);
6336
6326
  te(() => {
6337
6327
  if (typeof window < "u") {
6338
- const k = () => p(window.innerWidth);
6328
+ const k = () => u(window.innerWidth);
6339
6329
  return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
6340
6330
  }
6341
6331
  }, []);
@@ -6357,7 +6347,7 @@ const qs = [
6357
6347
  document.removeEventListener("mousedown", k);
6358
6348
  };
6359
6349
  }, [M]);
6360
- const pe = async () => {
6350
+ const ue = async () => {
6361
6351
  if (!B.email || !/\S+@\S+\.\S+/.test(B.email)) {
6362
6352
  j("error", "Please enter a valid email");
6363
6353
  return;
@@ -6606,7 +6596,7 @@ const qs = [
6606
6596
  value: d.email,
6607
6597
  name: "email",
6608
6598
  type: "email",
6609
- icon: fe
6599
+ icon: pe
6610
6600
  },
6611
6601
  {
6612
6602
  label: "Phone Number",
@@ -6861,7 +6851,7 @@ const qs = [
6861
6851
  flexDirection: "column",
6862
6852
  gap: "6px"
6863
6853
  },
6864
- children: u ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6854
+ children: p ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
6865
6855
  /* @__PURE__ */ n.jsxs(
6866
6856
  "button",
6867
6857
  {
@@ -7222,7 +7212,7 @@ const qs = [
7222
7212
  ]
7223
7213
  }
7224
7214
  ),
7225
- u ? /* @__PURE__ */ n.jsx(
7215
+ p ? /* @__PURE__ */ n.jsx(
7226
7216
  "input",
7227
7217
  {
7228
7218
  type: k.type,
@@ -7332,7 +7322,7 @@ const qs = [
7332
7322
  color: D.textSecondary
7333
7323
  },
7334
7324
  children: [
7335
- /* @__PURE__ */ n.jsx(fe, { size: 16, "aria-hidden": "true" }),
7325
+ /* @__PURE__ */ n.jsx(pe, { size: 16, "aria-hidden": "true" }),
7336
7326
  /* @__PURE__ */ n.jsx("span", { children: "Email Verification" })
7337
7327
  ]
7338
7328
  }
@@ -7447,7 +7437,7 @@ const qs = [
7447
7437
  U(!1), l(!1), K({ email: d?.email || "", otp: "" });
7448
7438
  },
7449
7439
  onVerify: Y,
7450
- onSendOTP: pe,
7440
+ onSendOTP: ue,
7451
7441
  verifyFormData: B,
7452
7442
  setVerifyFormData: K,
7453
7443
  otpSent: L,
@@ -7561,15 +7551,15 @@ const qs = [
7561
7551
  settingsUrl: c,
7562
7552
  // Menu item visibility with defaults
7563
7553
  showProfileMenuItem: h = !0,
7564
- showSettingsMenuItem: p = !0,
7554
+ showSettingsMenuItem: u = !0,
7565
7555
  showViewProfileMenuItem: d = !0,
7566
7556
  // Custom labels with defaults
7567
7557
  profileLabel: m = "My Profile",
7568
7558
  settingsLabel: P = "Settings",
7569
7559
  viewProfileLabel: O = "View Profile",
7570
- logoutLabel: u = "Sign Out"
7560
+ logoutLabel: p = "Sign Out"
7571
7561
  }) => {
7572
- const w = ue(), [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);
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, V] = R(!1);
7573
7563
  te(() => {
7574
7564
  if (typeof window > "u") return;
7575
7565
  const l = () => {
@@ -7611,9 +7601,9 @@ const qs = [
7611
7601
  if (typeof window > "u") return;
7612
7602
  const l = () => {
7613
7603
  if (!x || !U.current) return;
7614
- const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, pe = S - b.right, Y = b.left;
7604
+ const b = U.current.getBoundingClientRect(), S = window.innerWidth, j = window.innerHeight, G = 280, ue = S - b.right, Y = b.left;
7615
7605
  j - b.bottom;
7616
- const oe = pe >= G || pe > Y;
7606
+ const oe = ue >= G || ue > Y;
7617
7607
  X(oe);
7618
7608
  };
7619
7609
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
@@ -8048,7 +8038,7 @@ const qs = [
8048
8038
  ]
8049
8039
  }
8050
8040
  ),
8051
- p && c && /* @__PURE__ */ n.jsxs(
8041
+ u && c && /* @__PURE__ */ n.jsxs(
8052
8042
  "button",
8053
8043
  {
8054
8044
  style: I.menuItem,
@@ -8084,7 +8074,7 @@ const qs = [
8084
8074
  role: "menuitem",
8085
8075
  tabIndex: 0,
8086
8076
  children: [
8087
- /* @__PURE__ */ n.jsx(fe, { style: I.icon, "aria-hidden": "true" }),
8077
+ /* @__PURE__ */ n.jsx(pe, { style: I.icon, "aria-hidden": "true" }),
8088
8078
  /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: O })
8089
8079
  ]
8090
8080
  }
@@ -8112,7 +8102,7 @@ const qs = [
8112
8102
  "aria-hidden": "true"
8113
8103
  }
8114
8104
  ),
8115
- /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: u })
8105
+ /* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: p })
8116
8106
  ]
8117
8107
  }
8118
8108
  ) })
@@ -8151,7 +8141,7 @@ const qs = [
8151
8141
  primaryColor: r = "#00C212",
8152
8142
  onVerify: s
8153
8143
  }) => {
8154
- const i = ue();
8144
+ const i = me();
8155
8145
  if (!t)
8156
8146
  return /* @__PURE__ */ n.jsxs(
8157
8147
  "div",
@@ -8178,7 +8168,7 @@ const qs = [
8178
8168
  const [o, a] = R(!1), [c, h] = R({
8179
8169
  email: t?.email || "",
8180
8170
  otp: ""
8181
- }), [p, d] = R(!1), [m, P] = R(!1), [O, u] = R(null);
8171
+ }), [u, d] = R(!1), [m, P] = R(!1), [O, p] = R(null);
8182
8172
  Te.useEffect(() => {
8183
8173
  if (typeof window < "u") {
8184
8174
  const g = () => a(window.innerWidth < 768);
@@ -8213,7 +8203,7 @@ const qs = [
8213
8203
  t?.email && h((g) => ({ ...g, email: t.email }));
8214
8204
  }, [t?.email]);
8215
8205
  const C = (g, v) => {
8216
- u({ type: g, message: v }), setTimeout(() => u(null), 3e3);
8206
+ p({ type: g, message: v }), setTimeout(() => p(null), 3e3);
8217
8207
  }, T = async () => {
8218
8208
  if (!c.email || !/\S+@\S+\.\S+/.test(c.email)) {
8219
8209
  C("error", "Please enter a valid email");
@@ -8374,7 +8364,7 @@ const qs = [
8374
8364
  },
8375
8365
  children: [
8376
8366
  /* @__PURE__ */ n.jsx(
8377
- fe,
8367
+ pe,
8378
8368
  {
8379
8369
  size: 18,
8380
8370
  style: {
@@ -8414,7 +8404,7 @@ const qs = [
8414
8404
  }
8415
8405
  )
8416
8406
  ] }),
8417
- p && /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8407
+ u && /* @__PURE__ */ n.jsxs("div", { style: { display: "flex", flexDirection: "column", gap: 4 }, children: [
8418
8408
  /* @__PURE__ */ n.jsxs(
8419
8409
  "div",
8420
8410
  {
@@ -8464,7 +8454,7 @@ const qs = [
8464
8454
  }
8465
8455
  )
8466
8456
  ] }),
8467
- /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: p ? /* @__PURE__ */ n.jsxs(
8457
+ /* @__PURE__ */ n.jsx("div", { style: { display: "flex", gap: 12 }, children: u ? /* @__PURE__ */ n.jsxs(
8468
8458
  "button",
8469
8459
  {
8470
8460
  type: "submit",