@neuctra/authix 1.1.48 → 1.1.49

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.
@@ -118,14 +118,14 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, i) => {
118
118
  function(r, s, a) {
119
119
  return s.toUpperCase() + a;
120
120
  }
121
- ), ht = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = oe("RegExp"), Bt = (t, e) => {
121
+ ), ht = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Mr = oe("RegExp"), Wt = (t, e) => {
122
122
  const r = Object.getOwnPropertyDescriptors(t), s = {};
123
123
  Re(r, (a, i) => {
124
124
  let o;
125
125
  (o = e(a, i, t)) !== !1 && (s[i] = o || a);
126
126
  }), Object.defineProperties(t, s);
127
- }, Br = (t) => {
128
- Bt(t, (e, r) => {
127
+ }, Wr = (t) => {
128
+ Wt(t, (e, r) => {
129
129
  if (re(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
130
130
  return !1;
131
131
  const s = t[r];
@@ -139,7 +139,7 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Re(e, (a, i) => {
139
139
  });
140
140
  }
141
141
  });
142
- }, Wr = (t, e) => {
142
+ }, Br = (t, e) => {
143
143
  const r = {}, s = (a) => {
144
144
  a.forEach((i) => {
145
145
  r[i] = !0;
@@ -170,14 +170,14 @@ const Kr = (t) => {
170
170
  return s;
171
171
  };
172
172
  return r(t, 0);
173
- }, Jr = oe("AsyncFunction"), Gr = (t) => t && (Te(t) || re(t)) && re(t.then) && re(t.catch), Wt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: a, data: i }) => {
173
+ }, Jr = oe("AsyncFunction"), Gr = (t) => t && (Te(t) || re(t)) && re(t.then) && re(t.catch), Bt = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: a, data: i }) => {
174
174
  a === fe && i === r && s.length && s.shift()();
175
175
  }, !1), (a) => {
176
176
  s.push(a), fe.postMessage(r, "*");
177
177
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
178
178
  typeof setImmediate == "function",
179
179
  re(fe.postMessage)
180
- ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Wt, Zr = (t) => t != null && re(t[Fe]), p = {
180
+ ), Xr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Bt, Zr = (t) => t != null && re(t[Fe]), p = {
181
181
  isArray: we,
182
182
  isArrayBuffer: Lt,
183
183
  isBuffer: Ce,
@@ -220,9 +220,9 @@ const Kr = (t) => {
220
220
  hasOwnProperty: ht,
221
221
  hasOwnProp: ht,
222
222
  // an alias to avoid ESLint no-prototype-builtins detection
223
- reduceDescriptors: Bt,
224
- freezeMethods: Br,
225
- toObjectSet: Wr,
223
+ reduceDescriptors: Wt,
224
+ freezeMethods: Wr,
225
+ toObjectSet: Br,
226
226
  toCamelCase: qr,
227
227
  noop: Hr,
228
228
  toFiniteNumber: Vr,
@@ -233,7 +233,7 @@ const Kr = (t) => {
233
233
  toJSONObject: Kr,
234
234
  isAsyncFn: Jr,
235
235
  isThenable: Gr,
236
- setImmediate: Wt,
236
+ setImmediate: Bt,
237
237
  asap: Xr,
238
238
  isIterable: Zr
239
239
  };
@@ -307,7 +307,7 @@ function en(t) {
307
307
  const tn = p.toFlatObject(p, {}, null, function(e) {
308
308
  return /^is[A-Z]/.test(e);
309
309
  });
310
- function Be(t, e, r) {
310
+ function We(t, e, r) {
311
311
  if (!p.isObject(t))
312
312
  throw new TypeError("target must be an object");
313
313
  e = e || new FormData(), r = p.toFlatObject(r, {
@@ -385,7 +385,7 @@ function mt(t) {
385
385
  });
386
386
  }
387
387
  function at(t, e) {
388
- this._pairs = [], t && Be(t, this, e);
388
+ this._pairs = [], t && We(t, this, e);
389
389
  }
390
390
  const Kt = at.prototype;
391
391
  Kt.append = function(e, r) {
@@ -496,7 +496,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", cn
496
496
  ...on
497
497
  };
498
498
  function pn(t, e) {
499
- return Be(t, new ee.classes.URLSearchParams(), {
499
+ return We(t, new ee.classes.URLSearchParams(), {
500
500
  visitor: function(r, s, a, i) {
501
501
  return ee.isNode && p.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
502
502
  },
@@ -559,7 +559,7 @@ const Ie = {
559
559
  return pn(e, this.formSerializer).toString();
560
560
  if ((l = p.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
561
561
  const h = this.env && this.env.FormData;
562
- return Be(
562
+ return We(
563
563
  l ? { "files[]": e } : e,
564
564
  h && new h(),
565
565
  this.formSerializer
@@ -1229,7 +1229,7 @@ const tr = (t) => {
1229
1229
  responseType: I,
1230
1230
  headers: v,
1231
1231
  withCredentials: D = "same-origin",
1232
- fetchOptions: B
1232
+ fetchOptions: W
1233
1233
  } = tr(u), F = e || fetch;
1234
1234
  I = I ? (I + "").toLowerCase() : "text";
1235
1235
  let V = On([R, z && z.toAbortSignal()], C), Z = null;
@@ -1254,7 +1254,7 @@ const tr = (t) => {
1254
1254
  }
1255
1255
  p.isString(D) || (D = D ? "include" : "omit");
1256
1256
  const A = i && "credentials" in r.prototype, O = {
1257
- ...B,
1257
+ ...W,
1258
1258
  signal: V,
1259
1259
  method: m.toUpperCase(),
1260
1260
  headers: v.normalize().toJSON(),
@@ -1263,7 +1263,7 @@ const tr = (t) => {
1263
1263
  credentials: A ? D : void 0
1264
1264
  };
1265
1265
  Z = i && new r(j, O);
1266
- let K = await (i ? F(Z, B) : F(j, O));
1266
+ let K = await (i ? F(Z, W) : F(j, O));
1267
1267
  const Q = c && (I === "stream" || I === "response");
1268
1268
  if (c && (q || Q && T)) {
1269
1269
  const f = {};
@@ -1384,14 +1384,14 @@ function It(t) {
1384
1384
  ), s.response.headers = ne.from(s.response.headers))), Promise.reject(s);
1385
1385
  });
1386
1386
  }
1387
- const sr = "1.12.2", We = {};
1387
+ const sr = "1.12.2", Be = {};
1388
1388
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
1389
- We[t] = function(s) {
1389
+ Be[t] = function(s) {
1390
1390
  return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
1391
1391
  };
1392
1392
  });
1393
1393
  const Pt = {};
1394
- We.transitional = function(e, r, s) {
1394
+ Be.transitional = function(e, r, s) {
1395
1395
  function a(i, o) {
1396
1396
  return "[Axios v" + sr + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
1397
1397
  }
@@ -1409,7 +1409,7 @@ We.transitional = function(e, r, s) {
1409
1409
  )), e ? e(i, o, l) : !0;
1410
1410
  };
1411
1411
  };
1412
- We.spelling = function(e) {
1412
+ Be.spelling = function(e) {
1413
1413
  return (r, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
1414
1414
  };
1415
1415
  function Ln(t, e, r) {
@@ -1431,7 +1431,7 @@ function Ln(t, e, r) {
1431
1431
  }
1432
1432
  const _e = {
1433
1433
  assertOptions: Ln,
1434
- validators: We
1434
+ validators: Be
1435
1435
  }, ie = _e.validators;
1436
1436
  let xe = class {
1437
1437
  constructor(e) {
@@ -1718,7 +1718,7 @@ M.CanceledError = je;
1718
1718
  M.CancelToken = Fn;
1719
1719
  M.isCancel = Zt;
1720
1720
  M.VERSION = sr;
1721
- M.toFormData = Be;
1721
+ M.toFormData = We;
1722
1722
  M.AxiosError = L;
1723
1723
  M.Cancel = M.CanceledError;
1724
1724
  M.all = function(e) {
@@ -1829,34 +1829,22 @@ class pa {
1829
1829
  });
1830
1830
  }
1831
1831
  /**
1832
- * 🔐 Check current authentication session
1833
- * Uses stored token and validates it with backend
1832
+ * 🔐 Check current authentication session (cookie-based)
1833
+ * Relies on HTTP-only auth cookie
1834
1834
  */
1835
1835
  async checkSession() {
1836
1836
  if (typeof window > "u")
1837
1837
  return console.warn("[Authix] checkSession called on server"), { authenticated: !1 };
1838
- let e = null;
1839
1838
  try {
1840
- e = localStorage.getItem("authix_token");
1841
- } catch (r) {
1842
- return console.error("[Authix] Failed to access localStorage:", r), { authenticated: !1 };
1843
- }
1844
- if (!e || e === "undefined" || e === "null")
1845
- return console.info("[Authix] No auth token found"), { authenticated: !1 };
1846
- try {
1847
- const r = await this.request(
1839
+ const e = await this.request(
1848
1840
  "GET",
1849
- "/users/session",
1850
- void 0,
1851
- {
1852
- Authorization: `Bearer ${e}`
1853
- }
1841
+ "/users/session"
1854
1842
  );
1855
- return !r || typeof r.authenticated != "boolean" ? (console.warn("[Authix] Invalid session response format:", r), { authenticated: !1 }) : r;
1856
- } catch (r) {
1843
+ return !e || typeof e.authenticated != "boolean" ? (console.warn("[Authix] Invalid session response format:", e), { authenticated: !1 }) : e;
1844
+ } catch (e) {
1857
1845
  return console.error("[Authix] Session check failed", {
1858
- message: r?.message,
1859
- error: r
1846
+ message: e?.message,
1847
+ error: e
1860
1848
  }), { authenticated: !1 };
1861
1849
  }
1862
1850
  }
@@ -2225,7 +2213,7 @@ var Ae = { exports: {} }, ke = {};
2225
2213
  * LICENSE file in the root directory of this source tree.
2226
2214
  */
2227
2215
  var Ot;
2228
- function Bn() {
2216
+ function Wn() {
2229
2217
  if (Ot) return ke;
2230
2218
  Ot = 1;
2231
2219
  var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
@@ -2257,7 +2245,7 @@ var Ee = {};
2257
2245
  * LICENSE file in the root directory of this source tree.
2258
2246
  */
2259
2247
  var At;
2260
- function Wn() {
2248
+ function Bn() {
2261
2249
  return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
2262
2250
  function t(f) {
2263
2251
  if (f == null) return null;
@@ -2275,7 +2263,7 @@ function Wn() {
2275
2263
  return "Suspense";
2276
2264
  case I:
2277
2265
  return "SuspenseList";
2278
- case B:
2266
+ case W:
2279
2267
  return "Activity";
2280
2268
  }
2281
2269
  if (typeof f == "object")
@@ -2452,7 +2440,7 @@ React keys must be passed directly to JSX without using spread:
2452
2440
  function b(f) {
2453
2441
  return typeof f == "object" && f !== null && f.$$typeof === u;
2454
2442
  }
2455
- var w = Le, u = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), C = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, T = Array.isArray, J = console.createTask ? console.createTask : function() {
2443
+ var w = Le, u = Symbol.for("react.transitional.element"), j = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), $ = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), z = Symbol.for("react.consumer"), C = Symbol.for("react.context"), q = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), F = Symbol.for("react.client.reference"), V = w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Z = Object.prototype.hasOwnProperty, T = Array.isArray, J = console.createTask ? console.createTask : function() {
2456
2444
  return null;
2457
2445
  };
2458
2446
  w = {
@@ -2489,7 +2477,7 @@ React keys must be passed directly to JSX without using spread:
2489
2477
  }
2490
2478
  var zt;
2491
2479
  function Hn() {
2492
- return zt || (zt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Bn() : Ae.exports = Wn()), Ae.exports;
2480
+ return zt || (zt = 1, process.env.NODE_ENV === "production" ? Ae.exports = Wn() : Ae.exports = Bn()), Ae.exports;
2493
2481
  }
2494
2482
  var n = Hn();
2495
2483
  const Vn = async (t, e) => {
@@ -2622,7 +2610,7 @@ const Xn = Nt(
2622
2610
  * This source code is licensed under the ISC license.
2623
2611
  * See the LICENSE file in the root directory of this source tree.
2624
2612
  */
2625
- const W = (t, e) => {
2613
+ const B = (t, e) => {
2626
2614
  const r = Nt(
2627
2615
  ({ className: s, ...a }, i) => Xe(Xn, {
2628
2616
  ref: i,
@@ -2652,14 +2640,14 @@ const Zn = [
2652
2640
  }
2653
2641
  ],
2654
2642
  ["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
2655
- ], nt = W("camera", Zn);
2643
+ ], nt = B("camera", Zn);
2656
2644
  /**
2657
2645
  * @license lucide-react v0.544.0 - ISC
2658
2646
  *
2659
2647
  * This source code is licensed under the ISC license.
2660
2648
  * See the LICENSE file in the root directory of this source tree.
2661
2649
  */
2662
- const Qn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], es = W("chevron-down", Qn);
2650
+ const Qn = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], es = B("chevron-down", Qn);
2663
2651
  /**
2664
2652
  * @license lucide-react v0.544.0 - ISC
2665
2653
  *
@@ -2670,7 +2658,7 @@ const ts = [
2670
2658
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2671
2659
  ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
2672
2660
  ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
2673
- ], le = W("circle-alert", ts);
2661
+ ], le = B("circle-alert", ts);
2674
2662
  /**
2675
2663
  * @license lucide-react v0.544.0 - ISC
2676
2664
  *
@@ -2680,7 +2668,7 @@ const ts = [
2680
2668
  const rs = [
2681
2669
  ["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
2682
2670
  ["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
2683
- ], de = W("circle-check-big", rs);
2671
+ ], de = B("circle-check-big", rs);
2684
2672
  /**
2685
2673
  * @license lucide-react v0.544.0 - ISC
2686
2674
  *
@@ -2690,7 +2678,7 @@ const rs = [
2690
2678
  const ns = [
2691
2679
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
2692
2680
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
2693
- ], Ge = W("circle-check", ns);
2681
+ ], Ge = B("circle-check", ns);
2694
2682
  /**
2695
2683
  * @license lucide-react v0.544.0 - ISC
2696
2684
  *
@@ -2701,7 +2689,7 @@ const ss = [
2701
2689
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
2702
2690
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
2703
2691
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
2704
- ], as = W("database", ss);
2692
+ ], as = B("database", ss);
2705
2693
  /**
2706
2694
  * @license lucide-react v0.544.0 - ISC
2707
2695
  *
@@ -2712,7 +2700,7 @@ const os = [
2712
2700
  ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
2713
2701
  ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
2714
2702
  ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
2715
- ], is = W("ellipsis-vertical", os);
2703
+ ], is = B("ellipsis-vertical", os);
2716
2704
  /**
2717
2705
  * @license lucide-react v0.544.0 - ISC
2718
2706
  *
@@ -2736,7 +2724,7 @@ const ls = [
2736
2724
  }
2737
2725
  ],
2738
2726
  ["path", { d: "m2 2 20 20", key: "1ooewy" }]
2739
- ], it = W("eye-off", ls);
2727
+ ], it = B("eye-off", ls);
2740
2728
  /**
2741
2729
  * @license lucide-react v0.544.0 - ISC
2742
2730
  *
@@ -2752,7 +2740,7 @@ const ds = [
2752
2740
  }
2753
2741
  ],
2754
2742
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2755
- ], lt = W("eye", ds);
2743
+ ], lt = B("eye", ds);
2756
2744
  /**
2757
2745
  * @license lucide-react v0.544.0 - ISC
2758
2746
  *
@@ -2768,7 +2756,7 @@ const cs = [
2768
2756
  key: "r6nss1"
2769
2757
  }
2770
2758
  ]
2771
- ], us = W("house", cs);
2759
+ ], us = B("house", cs);
2772
2760
  /**
2773
2761
  * @license lucide-react v0.544.0 - ISC
2774
2762
  *
@@ -2779,7 +2767,7 @@ const ps = [
2779
2767
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
2780
2768
  ["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
2781
2769
  ["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
2782
- ], lr = W("image", ps);
2770
+ ], lr = B("image", ps);
2783
2771
  /**
2784
2772
  * @license lucide-react v0.544.0 - ISC
2785
2773
  *
@@ -2795,7 +2783,7 @@ const fs = [
2795
2783
  }
2796
2784
  ],
2797
2785
  ["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
2798
- ], dr = W("key-round", fs);
2786
+ ], dr = B("key-round", fs);
2799
2787
  /**
2800
2788
  * @license lucide-react v0.544.0 - ISC
2801
2789
  *
@@ -2806,7 +2794,7 @@ const xs = [
2806
2794
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
2807
2795
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
2808
2796
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
2809
- ], dt = W("key", xs);
2797
+ ], dt = B("key", xs);
2810
2798
  /**
2811
2799
  * @license lucide-react v0.544.0 - ISC
2812
2800
  *
@@ -2817,14 +2805,14 @@ const hs = [
2817
2805
  ["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
2818
2806
  ["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
2819
2807
  ["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
2820
- ], gs = W("link-2", hs);
2808
+ ], gs = B("link-2", hs);
2821
2809
  /**
2822
2810
  * @license lucide-react v0.544.0 - ISC
2823
2811
  *
2824
2812
  * This source code is licensed under the ISC license.
2825
2813
  * See the LICENSE file in the root directory of this source tree.
2826
2814
  */
2827
- const ms = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ae = W("loader-circle", ms);
2815
+ const ms = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ae = B("loader-circle", ms);
2828
2816
  /**
2829
2817
  * @license lucide-react v0.544.0 - ISC
2830
2818
  *
@@ -2840,7 +2828,7 @@ const ys = [
2840
2828
  ["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
2841
2829
  ["path", { d: "M2 12h4", key: "j09sii" }],
2842
2830
  ["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
2843
- ], bs = W("loader", ys);
2831
+ ], bs = B("loader", ys);
2844
2832
  /**
2845
2833
  * @license lucide-react v0.544.0 - ISC
2846
2834
  *
@@ -2850,7 +2838,7 @@ const ys = [
2850
2838
  const ws = [
2851
2839
  ["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
2852
2840
  ["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
2853
- ], me = W("lock", ws);
2841
+ ], me = B("lock", ws);
2854
2842
  /**
2855
2843
  * @license lucide-react v0.544.0 - ISC
2856
2844
  *
@@ -2861,7 +2849,7 @@ const js = [
2861
2849
  ["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
2862
2850
  ["path", { d: "M21 12H9", key: "dn1m92" }],
2863
2851
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
2864
- ], ct = W("log-out", js);
2852
+ ], ct = B("log-out", js);
2865
2853
  /**
2866
2854
  * @license lucide-react v0.544.0 - ISC
2867
2855
  *
@@ -2871,7 +2859,7 @@ const js = [
2871
2859
  const vs = [
2872
2860
  ["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
2873
2861
  ["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
2874
- ], ce = W("mail", vs);
2862
+ ], ce = B("mail", vs);
2875
2863
  /**
2876
2864
  * @license lucide-react v0.544.0 - ISC
2877
2865
  *
@@ -2887,7 +2875,7 @@ const Ss = [
2887
2875
  }
2888
2876
  ],
2889
2877
  ["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
2890
- ], ks = W("map-pin", Ss);
2878
+ ], ks = B("map-pin", Ss);
2891
2879
  /**
2892
2880
  * @license lucide-react v0.544.0 - ISC
2893
2881
  *
@@ -2903,7 +2891,7 @@ const Es = [
2903
2891
  key: "1a8usu"
2904
2892
  }
2905
2893
  ]
2906
- ], Cs = W("pen-line", Es);
2894
+ ], Cs = B("pen-line", Es);
2907
2895
  /**
2908
2896
  * @license lucide-react v0.544.0 - ISC
2909
2897
  *
@@ -2918,7 +2906,7 @@ const Ts = [
2918
2906
  key: "9njp5v"
2919
2907
  }
2920
2908
  ]
2921
- ], Rs = W("phone", Ts);
2909
+ ], Rs = B("phone", Ts);
2922
2910
  /**
2923
2911
  * @license lucide-react v0.544.0 - ISC
2924
2912
  *
@@ -2935,7 +2923,7 @@ const Is = [
2935
2923
  ],
2936
2924
  ["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
2937
2925
  ["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
2938
- ], Ps = W("save", Is);
2926
+ ], Ps = B("save", Is);
2939
2927
  /**
2940
2928
  * @license lucide-react v0.544.0 - ISC
2941
2929
  *
@@ -2951,7 +2939,7 @@ const Os = [
2951
2939
  }
2952
2940
  ],
2953
2941
  ["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
2954
- ], ut = W("send", Os);
2942
+ ], ut = B("send", Os);
2955
2943
  /**
2956
2944
  * @license lucide-react v0.544.0 - ISC
2957
2945
  *
@@ -2967,7 +2955,7 @@ const As = [
2967
2955
  }
2968
2956
  ],
2969
2957
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
2970
- ], zs = W("settings", As);
2958
+ ], zs = B("settings", As);
2971
2959
  /**
2972
2960
  * @license lucide-react v0.544.0 - ISC
2973
2961
  *
@@ -2982,7 +2970,7 @@ const $s = [
2982
2970
  key: "oel41y"
2983
2971
  }
2984
2972
  ]
2985
- ], cr = W("shield", $s);
2973
+ ], cr = B("shield", $s);
2986
2974
  /**
2987
2975
  * @license lucide-react v0.544.0 - ISC
2988
2976
  *
@@ -2995,7 +2983,7 @@ const _s = [
2995
2983
  ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
2996
2984
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
2997
2985
  ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
2998
- ], Ne = W("trash-2", _s);
2986
+ ], Ne = B("trash-2", _s);
2999
2987
  /**
3000
2988
  * @license lucide-react v0.544.0 - ISC
3001
2989
  *
@@ -3012,7 +3000,7 @@ const Ns = [
3012
3000
  ],
3013
3001
  ["path", { d: "M12 9v4", key: "juzpu7" }],
3014
3002
  ["path", { d: "M12 17h.01", key: "p32p05" }]
3015
- ], _t = W("triangle-alert", Ns);
3003
+ ], _t = B("triangle-alert", Ns);
3016
3004
  /**
3017
3005
  * @license lucide-react v0.544.0 - ISC
3018
3006
  *
@@ -3024,7 +3012,7 @@ const Ds = [
3024
3012
  ["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
3025
3013
  ["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
3026
3014
  ["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
3027
- ], Us = W("user-x", Ds);
3015
+ ], Us = B("user-x", Ds);
3028
3016
  /**
3029
3017
  * @license lucide-react v0.544.0 - ISC
3030
3018
  *
@@ -3034,7 +3022,7 @@ const Ds = [
3034
3022
  const Ls = [
3035
3023
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
3036
3024
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
3037
- ], be = W("user", Ls);
3025
+ ], be = B("user", Ls);
3038
3026
  /**
3039
3027
  * @license lucide-react v0.544.0 - ISC
3040
3028
  *
@@ -3044,7 +3032,7 @@ const Ls = [
3044
3032
  const Fs = [
3045
3033
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3046
3034
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3047
- ], Pe = W("x", Fs), De = {
3035
+ ], Pe = B("x", Fs), De = {
3048
3036
  baseUrl: "",
3049
3037
  apiKey: "",
3050
3038
  appId: ""
@@ -3077,7 +3065,7 @@ const Fs = [
3077
3065
  password: "",
3078
3066
  role: d.length ? d[0] : "user",
3079
3067
  ...h && { avatarUrl: "" }
3080
- }, [R, z] = P($), [C, q] = P(!1), [g, I] = P(!1), [v, D] = P(null), [B, F] = P({}), [V, Z] = P(!1), T = l ? "#ffffff" : "#111827", J = l ? "#a1a1aa" : "#6b7280", A = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", O = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3068
+ }, [R, z] = P($), [C, q] = P(!1), [g, I] = P(!1), [v, D] = P(null), [W, F] = P({}), [V, Z] = P(!1), T = l ? "#ffffff" : "#111827", J = l ? "#a1a1aa" : "#6b7280", A = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", O = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
3081
3069
  Le.useEffect(() => {
3082
3070
  if (typeof window < "u") {
3083
3071
  const S = () => Z(window.innerWidth < 768);
@@ -3086,7 +3074,7 @@ const Fs = [
3086
3074
  }, []);
3087
3075
  const K = (S) => {
3088
3076
  const { name: x, value: k } = S.target;
3089
- z((_) => ({ ..._, [x]: k })), B[x] && F((_) => ({ ..._, [x]: void 0 }));
3077
+ z((_) => ({ ..._, [x]: k })), W[x] && F((_) => ({ ..._, [x]: void 0 }));
3090
3078
  }, Q = () => {
3091
3079
  const S = {};
3092
3080
  return R.name.trim() || (S.name = "Name is required"), R.email.trim() ? /\S+@\S+\.\S+/.test(R.email) || (S.email = "Invalid email address") : S.email = "Email is required", R.password ? R.password.length < 6 && (S.password = "Password must be at least 6 characters") : S.password = "Password is required", F(S), Object.keys(S).length === 0;
@@ -3371,12 +3359,12 @@ const Fs = [
3371
3359
  onChange: K,
3372
3360
  style: {
3373
3361
  ...f,
3374
- borderColor: B.name ? "#ef4444" : O
3362
+ borderColor: W.name ? "#ef4444" : O
3375
3363
  }
3376
3364
  }
3377
3365
  )
3378
3366
  ] }),
3379
- B.name && /* @__PURE__ */ n.jsx(
3367
+ W.name && /* @__PURE__ */ n.jsx(
3380
3368
  "span",
3381
3369
  {
3382
3370
  style: {
@@ -3384,7 +3372,7 @@ const Fs = [
3384
3372
  fontSize: "12px",
3385
3373
  marginTop: "2px"
3386
3374
  },
3387
- children: B.name
3375
+ children: W.name
3388
3376
  }
3389
3377
  )
3390
3378
  ] }),
@@ -3426,12 +3414,12 @@ const Fs = [
3426
3414
  onChange: K,
3427
3415
  style: {
3428
3416
  ...f,
3429
- borderColor: B.email ? "#ef4444" : O
3417
+ borderColor: W.email ? "#ef4444" : O
3430
3418
  }
3431
3419
  }
3432
3420
  )
3433
3421
  ] }),
3434
- B.email && /* @__PURE__ */ n.jsx(
3422
+ W.email && /* @__PURE__ */ n.jsx(
3435
3423
  "span",
3436
3424
  {
3437
3425
  style: {
@@ -3439,7 +3427,7 @@ const Fs = [
3439
3427
  fontSize: "12px",
3440
3428
  marginTop: "2px"
3441
3429
  },
3442
- children: B.email
3430
+ children: W.email
3443
3431
  }
3444
3432
  )
3445
3433
  ] }),
@@ -3481,7 +3469,7 @@ const Fs = [
3481
3469
  onChange: K,
3482
3470
  style: {
3483
3471
  ...f,
3484
- borderColor: B.password ? "#ef4444" : O
3472
+ borderColor: W.password ? "#ef4444" : O
3485
3473
  }
3486
3474
  }
3487
3475
  ),
@@ -3505,7 +3493,7 @@ const Fs = [
3505
3493
  }
3506
3494
  )
3507
3495
  ] }),
3508
- B.password && /* @__PURE__ */ n.jsx(
3496
+ W.password && /* @__PURE__ */ n.jsx(
3509
3497
  "span",
3510
3498
  {
3511
3499
  style: {
@@ -3513,7 +3501,7 @@ const Fs = [
3513
3501
  fontSize: "12px",
3514
3502
  marginTop: "2px"
3515
3503
  },
3516
- children: B.password
3504
+ children: W.password
3517
3505
  }
3518
3506
  )
3519
3507
  ] }),
@@ -3712,7 +3700,7 @@ const Fs = [
3712
3700
  onSuccess: d,
3713
3701
  onError: c
3714
3702
  }) => {
3715
- const { baseUrl: y, apiKey: b, appId: w } = ge(), [u, j] = P("login"), [m, $] = P(1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(null), [v, D] = P(""), [B, F] = P(""), [V, Z] = P({
3703
+ const { baseUrl: y, apiKey: b, appId: w } = ge(), [u, j] = P("login"), [m, $] = P(1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(null), [v, D] = P(""), [W, F] = P(""), [V, Z] = P({
3716
3704
  email: "",
3717
3705
  otp: "",
3718
3706
  newPassword: "",
@@ -3728,7 +3716,7 @@ const Fs = [
3728
3716
  _.preventDefault(), q(!0), I(null);
3729
3717
  try {
3730
3718
  const N = await qs(
3731
- { email: v, password: B, appId: w },
3719
+ { email: v, password: W, appId: w },
3732
3720
  { baseUrl: y, apiKey: b }
3733
3721
  );
3734
3722
  I({ type: "success", text: `Welcome ${N.name}` }), d?.(N);
@@ -3961,7 +3949,7 @@ const Fs = [
3961
3949
  id: "login-password",
3962
3950
  type: R ? "text" : "password",
3963
3951
  placeholder: "Enter your password",
3964
- value: B,
3952
+ value: W,
3965
3953
  onChange: (_) => F(_.target.value),
3966
3954
  style: k
3967
3955
  }
@@ -5210,7 +5198,7 @@ const Fs = [
5210
5198
  ]
5211
5199
  }
5212
5200
  );
5213
- }, Bs = ({
5201
+ }, Ws = ({
5214
5202
  isOpen: t,
5215
5203
  onClose: e,
5216
5204
  onUpdate: r,
@@ -5662,7 +5650,7 @@ const Fs = [
5662
5650
  ]
5663
5651
  }
5664
5652
  );
5665
- }, Ws = ({
5653
+ }, Bs = ({
5666
5654
  isOpen: t,
5667
5655
  onClose: e,
5668
5656
  onSuccess: r,
@@ -5687,8 +5675,8 @@ const Fs = [
5687
5675
  return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
5688
5676
  }, []), !t) return null;
5689
5677
  const z = (v) => {
5690
- const { name: D, value: B } = v.target;
5691
- c((F) => ({ ...F, [D]: B })), y[D] && b((F) => ({ ...F, [D]: "" }));
5678
+ const { name: D, value: W } = v.target;
5679
+ c((F) => ({ ...F, [D]: W })), y[D] && b((F) => ({ ...F, [D]: "" }));
5692
5680
  }, C = (v) => {
5693
5681
  m((D) => ({ ...D, [v]: !D[v] }));
5694
5682
  }, q = () => {
@@ -5855,7 +5843,7 @@ const Fs = [
5855
5843
  }
5856
5844
  ),
5857
5845
  /* @__PURE__ */ n.jsxs("form", { onSubmit: g, children: [
5858
- I.map(({ field: v, label: D, icon: B }) => /* @__PURE__ */ n.jsxs(
5846
+ I.map(({ field: v, label: D, icon: W }) => /* @__PURE__ */ n.jsxs(
5859
5847
  "div",
5860
5848
  {
5861
5849
  style: {
@@ -5890,7 +5878,7 @@ const Fs = [
5890
5878
  color: i.textTertiary,
5891
5879
  zIndex: 2
5892
5880
  },
5893
- children: B
5881
+ children: W
5894
5882
  }
5895
5883
  ),
5896
5884
  /* @__PURE__ */ n.jsx(
@@ -6399,7 +6387,7 @@ const Fs = [
6399
6387
  onVerify: i,
6400
6388
  primaryColor: o = "#00C212"
6401
6389
  }) => {
6402
- const { baseUrl: l, apiKey: h, appId: d } = ge(), [c, y] = P(null), [b, w] = P(e), [u, j] = P(!0), [m, $] = P(!1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(!1), [v, D] = P(!1), [B, F] = P(!1), [V, Z] = P(!1), [T, J] = P(!1), [A, O] = P(null), [K, Q] = P(!1), [G, f] = P({
6390
+ const { baseUrl: l, apiKey: h, appId: d } = ge(), [c, y] = P(null), [b, w] = P(e), [u, j] = P(!0), [m, $] = P(!1), [R, z] = P(!1), [C, q] = P(!1), [g, I] = P(!1), [v, D] = P(!1), [W, F] = P(!1), [V, Z] = P(!1), [T, J] = P(!1), [A, O] = P(null), [K, Q] = P(!1), [G, f] = P({
6403
6391
  email: "",
6404
6392
  otp: "",
6405
6393
  appId: d
@@ -7454,7 +7442,7 @@ const Fs = [
7454
7442
  }
7455
7443
  ),
7456
7444
  /* @__PURE__ */ n.jsx(
7457
- Bs,
7445
+ Ws,
7458
7446
  {
7459
7447
  isOpen: C,
7460
7448
  onClose: () => {
@@ -7465,7 +7453,7 @@ const Fs = [
7465
7453
  }
7466
7454
  ),
7467
7455
  /* @__PURE__ */ n.jsx(
7468
- Ws,
7456
+ Bs,
7469
7457
  {
7470
7458
  baseUrl: l,
7471
7459
  apiKey: h,
@@ -7496,7 +7484,7 @@ const Fs = [
7496
7484
  /* @__PURE__ */ n.jsx(
7497
7485
  Hs,
7498
7486
  {
7499
- isOpen: B,
7487
+ isOpen: W,
7500
7488
  onClose: () => {
7501
7489
  F(!1), x(!1), f({ email: b?.email || "", otp: "", appId: d });
7502
7490
  },
@@ -7623,7 +7611,7 @@ const Fs = [
7623
7611
  viewProfileLabel: w = "View Profile",
7624
7612
  logoutLabel: u = "Sign Out"
7625
7613
  }) => {
7626
- const { baseUrl: j, apiKey: m, appId: $ } = ge(), [R, z] = P(!1), [C, q] = P(null), [g, I] = P(!0), [v, D] = P(null), B = xt(null), F = xt(null), [V, Z] = P(!1), [T, J] = P(!1);
7614
+ const { baseUrl: j, apiKey: m, appId: $ } = ge(), [R, z] = P(!1), [C, q] = P(null), [g, I] = P(!0), [v, D] = P(null), W = xt(null), F = xt(null), [V, Z] = P(!1), [T, J] = P(!1);
7627
7615
  te(() => {
7628
7616
  if (typeof window > "u") return;
7629
7617
  const x = () => {
@@ -7669,7 +7657,7 @@ const Fs = [
7669
7657
  if (typeof window > "u" || typeof document > "u")
7670
7658
  return;
7671
7659
  const x = (N) => {
7672
- B.current && !B.current.contains(N.target) && !F.current?.contains(N.target) && z(!1);
7660
+ W.current && !W.current.contains(N.target) && !F.current?.contains(N.target) && z(!1);
7673
7661
  }, k = (N) => {
7674
7662
  N.key === "Escape" && z(!1);
7675
7663
  }, _ = () => {
@@ -7920,7 +7908,7 @@ const Fs = [
7920
7908
  "div",
7921
7909
  {
7922
7910
  style: O.wrapper,
7923
- ref: B,
7911
+ ref: W,
7924
7912
  className: i,
7925
7913
  role: "menu",
7926
7914
  "aria-label": "User menu",
@@ -8191,8 +8179,8 @@ const Fs = [
8191
8179
  otp: "",
8192
8180
  appId: a
8193
8181
  }), [d, c] = P(!1), [y, b] = P(!1), [w, u] = P(null), j = (g, I) => {
8194
- let v = parseInt(g.replace("#", ""), 16), D = (v >> 16) + I, B = (v >> 8 & 255) + I, F = (v & 255) + I;
8195
- return D = Math.min(255, Math.max(0, D)), B = Math.min(255, Math.max(0, B)), F = Math.min(255, Math.max(0, F)), `#${(F | B << 8 | D << 16).toString(16).padStart(6, "0")}`;
8182
+ let v = parseInt(g.replace("#", ""), 16), D = (v >> 16) + I, W = (v >> 8 & 255) + I, F = (v & 255) + I;
8183
+ return D = Math.min(255, Math.max(0, D)), W = Math.min(255, Math.max(0, W)), F = Math.min(255, Math.max(0, F)), `#${(F | W << 8 | D << 16).toString(16).padStart(6, "0")}`;
8196
8184
  }, m = e ? {
8197
8185
  surface: "#09090b",
8198
8186
  surfaceLight: "#27272a",