@neuctra/authix 1.2.23 → 1.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neuctra-authix.es.js +555 -561
- package/dist/neuctra-authix.umd.js +11 -11
- package/dist/sdk/index.d.ts +8 -4
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ce, { forwardRef as
|
|
1
|
+
import Ce, { forwardRef as At, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
|
|
2
2
|
function Ut(t, e) {
|
|
3
3
|
return function() {
|
|
4
4
|
return t.apply(e, arguments);
|
|
@@ -7,11 +7,11 @@ function Ut(t, e) {
|
|
|
7
7
|
const { toString: ur } = Object.prototype, { getPrototypeOf: nt } = Object, { iterator: Le, toStringTag: _t } = Symbol, Fe = /* @__PURE__ */ ((t) => (e) => {
|
|
8
8
|
const n = ur.call(e);
|
|
9
9
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Fe(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, we = qe("undefined");
|
|
11
11
|
function Te(t) {
|
|
12
12
|
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
13
13
|
}
|
|
14
|
-
const $t =
|
|
14
|
+
const $t = ae("ArrayBuffer");
|
|
15
15
|
function pr(t) {
|
|
16
16
|
let e;
|
|
17
17
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $t(t.buffer), e;
|
|
@@ -29,11 +29,11 @@ const fr = qe("string"), te = qe("function"), Dt = qe("number"), Re = (t) => t !
|
|
|
29
29
|
} catch {
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
|
-
}, mr =
|
|
32
|
+
}, mr = ae("Date"), gr = ae("File"), yr = ae("Blob"), br = ae("FileList"), wr = (t) => Re(t) && te(t.pipe), jr = (t) => {
|
|
33
33
|
let e;
|
|
34
34
|
return t && (typeof FormData == "function" && t instanceof FormData || te(t.append) && ((e = Fe(t)) === "formdata" || // detect form-data instance
|
|
35
35
|
e === "object" && te(t.toString) && t.toString() === "[object FormData]"));
|
|
36
|
-
}, vr =
|
|
36
|
+
}, vr = ae("URLSearchParams"), [Sr, kr, Er, Cr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Tr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
37
|
function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
38
38
|
if (t === null || typeof t > "u")
|
|
39
39
|
return;
|
|
@@ -44,10 +44,10 @@ function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
44
44
|
else {
|
|
45
45
|
if (Te(t))
|
|
46
46
|
return;
|
|
47
|
-
const
|
|
47
|
+
const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), o = a.length;
|
|
48
48
|
let c;
|
|
49
|
-
for (s = 0; s <
|
|
50
|
-
c =
|
|
49
|
+
for (s = 0; s < o; s++)
|
|
50
|
+
c = a[s], e.call(null, t[c], c, t);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function Nt(t, e) {
|
|
@@ -63,35 +63,35 @@ function Nt(t, e) {
|
|
|
63
63
|
}
|
|
64
64
|
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Lt = (t) => !we(t) && t !== fe;
|
|
65
65
|
function Ge() {
|
|
66
|
-
const { caseless: t, skipUndefined: e } = Lt(this) && this || {}, n = {}, s = (i,
|
|
67
|
-
const
|
|
68
|
-
Ue(n[
|
|
66
|
+
const { caseless: t, skipUndefined: e } = Lt(this) && this || {}, n = {}, s = (i, a) => {
|
|
67
|
+
const o = t && Nt(n, a) || a;
|
|
68
|
+
Ue(n[o]) && Ue(i) ? n[o] = Ge(n[o], i) : Ue(i) ? n[o] = Ge({}, i) : je(i) ? n[o] = i.slice() : (!e || !we(i)) && (n[o] = i);
|
|
69
69
|
};
|
|
70
|
-
for (let i = 0,
|
|
70
|
+
for (let i = 0, a = arguments.length; i < a; i++)
|
|
71
71
|
arguments[i] && Pe(arguments[i], s);
|
|
72
72
|
return n;
|
|
73
73
|
}
|
|
74
|
-
const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i,
|
|
75
|
-
n && te(i) ? t[
|
|
74
|
+
const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
|
|
75
|
+
n && te(i) ? t[a] = Ut(i, n) : t[a] = i;
|
|
76
76
|
}, { allOwnKeys: s }), t), Pr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ir = (t, e, n, s) => {
|
|
77
77
|
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
78
78
|
value: e.prototype
|
|
79
79
|
}), n && Object.assign(t.prototype, n);
|
|
80
80
|
}, Or = (t, e, n, s) => {
|
|
81
|
-
let i,
|
|
81
|
+
let i, a, o;
|
|
82
82
|
const c = {};
|
|
83
83
|
if (e = e || {}, t == null) return e;
|
|
84
84
|
do {
|
|
85
|
-
for (i = Object.getOwnPropertyNames(t),
|
|
86
|
-
|
|
85
|
+
for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
|
|
86
|
+
o = i[a], (!s || s(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
|
|
87
87
|
t = n !== !1 && nt(t);
|
|
88
88
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
89
89
|
return e;
|
|
90
|
-
},
|
|
90
|
+
}, zr = (t, e, n) => {
|
|
91
91
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
92
92
|
const s = t.indexOf(e, n);
|
|
93
93
|
return s !== -1 && s === n;
|
|
94
|
-
},
|
|
94
|
+
}, Ar = (t) => {
|
|
95
95
|
if (!t) return null;
|
|
96
96
|
if (je(t)) return t;
|
|
97
97
|
let e = t.length;
|
|
@@ -104,8 +104,8 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
104
104
|
const s = (t && t[Le]).call(t);
|
|
105
105
|
let i;
|
|
106
106
|
for (; (i = s.next()) && !i.done; ) {
|
|
107
|
-
const
|
|
108
|
-
e.call(t,
|
|
107
|
+
const a = i.value;
|
|
108
|
+
e.call(t, a[0], a[1]);
|
|
109
109
|
}
|
|
110
110
|
}, $r = (t, e) => {
|
|
111
111
|
let n;
|
|
@@ -113,16 +113,16 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
113
113
|
for (; (n = t.exec(e)) !== null; )
|
|
114
114
|
s.push(n);
|
|
115
115
|
return s;
|
|
116
|
-
}, Dr =
|
|
116
|
+
}, Dr = ae("HTMLFormElement"), Nr = (t) => t.toLowerCase().replace(
|
|
117
117
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
118
118
|
function(n, s, i) {
|
|
119
119
|
return s.toUpperCase() + i;
|
|
120
120
|
}
|
|
121
|
-
), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Lr =
|
|
121
|
+
), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Lr = ae("RegExp"), Ft = (t, e) => {
|
|
122
122
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
|
123
|
-
Pe(n, (i,
|
|
124
|
-
let
|
|
125
|
-
(
|
|
123
|
+
Pe(n, (i, a) => {
|
|
124
|
+
let o;
|
|
125
|
+
(o = e(i, a, t)) !== !1 && (s[a] = o || i);
|
|
126
126
|
}), Object.defineProperties(t, s);
|
|
127
127
|
}, Fr = (t) => {
|
|
128
128
|
Ft(t, (e, n) => {
|
|
@@ -141,8 +141,8 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
141
141
|
});
|
|
142
142
|
}, qr = (t, e) => {
|
|
143
143
|
const n = {}, s = (i) => {
|
|
144
|
-
i.forEach((
|
|
145
|
-
n[
|
|
144
|
+
i.forEach((a) => {
|
|
145
|
+
n[a] = !0;
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
return je(t) ? s(t) : s(String(t).split(e)), n;
|
|
@@ -160,18 +160,18 @@ const Hr = (t) => {
|
|
|
160
160
|
return s;
|
|
161
161
|
if (!("toJSON" in s)) {
|
|
162
162
|
e[i] = s;
|
|
163
|
-
const
|
|
164
|
-
return Pe(s, (
|
|
165
|
-
const d = n(
|
|
166
|
-
!we(d) && (
|
|
167
|
-
}), e[i] = void 0,
|
|
163
|
+
const a = je(s) ? [] : {};
|
|
164
|
+
return Pe(s, (o, c) => {
|
|
165
|
+
const d = n(o, i + 1);
|
|
166
|
+
!we(d) && (a[c] = d);
|
|
167
|
+
}), e[i] = void 0, a;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
return s;
|
|
171
171
|
};
|
|
172
172
|
return n(t, 0);
|
|
173
|
-
}, Vr =
|
|
174
|
-
i === fe &&
|
|
173
|
+
}, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), qt = ((t, e) => t ? setImmediate : e ? ((n, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
|
|
174
|
+
i === fe && a === n && s.length && s.shift()();
|
|
175
175
|
}, !1), (i) => {
|
|
176
176
|
s.push(i), fe.postMessage(n, "*");
|
|
177
177
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
@@ -211,9 +211,9 @@ const Hr = (t) => {
|
|
|
211
211
|
inherits: Ir,
|
|
212
212
|
toFlatObject: Or,
|
|
213
213
|
kindOf: Fe,
|
|
214
|
-
kindOfTest:
|
|
215
|
-
endsWith:
|
|
216
|
-
toArray:
|
|
214
|
+
kindOfTest: ae,
|
|
215
|
+
endsWith: zr,
|
|
216
|
+
toArray: Ar,
|
|
217
217
|
forEachEntry: _r,
|
|
218
218
|
matchAll: $r,
|
|
219
219
|
isHTMLForm: Dr,
|
|
@@ -281,13 +281,13 @@ const Mt = $.prototype, Wt = {};
|
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperties($, Wt);
|
|
283
283
|
Object.defineProperty(Mt, "isAxiosError", { value: !0 });
|
|
284
|
-
$.from = (t, e, n, s, i,
|
|
285
|
-
const
|
|
286
|
-
f.toFlatObject(t,
|
|
284
|
+
$.from = (t, e, n, s, i, a) => {
|
|
285
|
+
const o = Object.create(Mt);
|
|
286
|
+
f.toFlatObject(t, o, function(p) {
|
|
287
287
|
return p !== Error.prototype;
|
|
288
288
|
}, (x) => x !== "isAxiosError");
|
|
289
289
|
const c = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
|
|
290
|
-
return $.call(
|
|
290
|
+
return $.call(o, c, d, n, s, i), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", a && Object.assign(o, a), o;
|
|
291
291
|
};
|
|
292
292
|
const Gr = null;
|
|
293
293
|
function Xe(t) {
|
|
@@ -297,8 +297,8 @@ function Bt(t) {
|
|
|
297
297
|
return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
298
298
|
}
|
|
299
299
|
function ft(t, e, n) {
|
|
300
|
-
return t ? t.concat(e).map(function(i,
|
|
301
|
-
return i = Bt(i), !n &&
|
|
300
|
+
return t ? t.concat(e).map(function(i, a) {
|
|
301
|
+
return i = Bt(i), !n && a ? "[" + i + "]" : i;
|
|
302
302
|
}).join(n ? "." : "") : e;
|
|
303
303
|
}
|
|
304
304
|
function Xr(t) {
|
|
@@ -317,7 +317,7 @@ function Me(t, e, n) {
|
|
|
317
317
|
}, !1, function(w, h) {
|
|
318
318
|
return !f.isUndefined(h[w]);
|
|
319
319
|
});
|
|
320
|
-
const s = n.metaTokens, i = n.visitor || p,
|
|
320
|
+
const s = n.metaTokens, i = n.visitor || p, a = n.dots, o = n.indexes, d = (n.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
323
|
function x(u) {
|
|
@@ -339,12 +339,12 @@ function Me(t, e, n) {
|
|
|
339
339
|
return w = Bt(w), I.forEach(function(g, U) {
|
|
340
340
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
|
|
342
|
+
o === !0 ? ft([w], U, a) : o === null ? w : w + "[]",
|
|
343
343
|
x(g)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return Xe(u) ? !0 : (e.append(ft(h, w,
|
|
347
|
+
return Xe(u) ? !0 : (e.append(ft(h, w, a), x(u)), !1);
|
|
348
348
|
}
|
|
349
349
|
const y = [], k = Object.assign(Zr, {
|
|
350
350
|
defaultVisitor: p,
|
|
@@ -410,10 +410,10 @@ function Vt(t, e, n) {
|
|
|
410
410
|
serialize: n
|
|
411
411
|
});
|
|
412
412
|
const i = n && n.serialize;
|
|
413
|
-
let
|
|
414
|
-
if (i ?
|
|
415
|
-
const
|
|
416
|
-
|
|
413
|
+
let a;
|
|
414
|
+
if (i ? a = i(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new st(e, n).toString(s), a) {
|
|
415
|
+
const o = t.indexOf("#");
|
|
416
|
+
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
417
417
|
}
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
@@ -483,22 +483,22 @@ const Yt = {
|
|
|
483
483
|
Blob: rn
|
|
484
484
|
},
|
|
485
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
}, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0),
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), an = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = it && window.location.href || "http://localhost", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
488
|
__proto__: null,
|
|
489
489
|
hasBrowserEnv: it,
|
|
490
490
|
hasStandardBrowserEnv: sn,
|
|
491
|
-
hasStandardBrowserWebWorkerEnv:
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: an,
|
|
492
492
|
navigator: Ze,
|
|
493
|
-
origin:
|
|
493
|
+
origin: on
|
|
494
494
|
}, Symbol.toStringTag, { value: "Module" })), Q = {
|
|
495
495
|
...ln,
|
|
496
496
|
...nn
|
|
497
497
|
};
|
|
498
498
|
function cn(t, e) {
|
|
499
499
|
return Me(t, new Q.classes.URLSearchParams(), {
|
|
500
|
-
visitor: function(n, s, i,
|
|
501
|
-
return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) :
|
|
500
|
+
visitor: function(n, s, i, a) {
|
|
501
|
+
return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
503
503
|
...e
|
|
504
504
|
});
|
|
@@ -510,17 +510,17 @@ function un(t) {
|
|
|
510
510
|
const e = {}, n = Object.keys(t);
|
|
511
511
|
let s;
|
|
512
512
|
const i = n.length;
|
|
513
|
-
let
|
|
513
|
+
let a;
|
|
514
514
|
for (s = 0; s < i; s++)
|
|
515
|
-
|
|
515
|
+
a = n[s], e[a] = t[a];
|
|
516
516
|
return e;
|
|
517
517
|
}
|
|
518
518
|
function Kt(t) {
|
|
519
|
-
function e(n, s, i,
|
|
520
|
-
let
|
|
521
|
-
if (
|
|
522
|
-
const c = Number.isFinite(+
|
|
523
|
-
return
|
|
519
|
+
function e(n, s, i, a) {
|
|
520
|
+
let o = n[a++];
|
|
521
|
+
if (o === "__proto__") return !0;
|
|
522
|
+
const c = Number.isFinite(+o), d = a >= n.length;
|
|
523
|
+
return o = !o && f.isArray(i) ? i.length : o, d ? (f.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !f.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && f.isArray(i[o]) && (i[o] = un(i[o])), !c);
|
|
524
524
|
}
|
|
525
525
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
526
526
|
const n = {};
|
|
@@ -544,8 +544,8 @@ const Ie = {
|
|
|
544
544
|
transitional: Yt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
546
|
transformRequest: [function(e, n) {
|
|
547
|
-
const s = n.getContentType() || "", i = s.indexOf("application/json") > -1,
|
|
548
|
-
if (
|
|
547
|
+
const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = f.isObject(e);
|
|
548
|
+
if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
|
|
549
549
|
return i ? JSON.stringify(Kt(e)) : e;
|
|
550
550
|
if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
|
|
551
551
|
return e;
|
|
@@ -554,7 +554,7 @@ const Ie = {
|
|
|
554
554
|
if (f.isURLSearchParams(e))
|
|
555
555
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
556
556
|
let c;
|
|
557
|
-
if (
|
|
557
|
+
if (a) {
|
|
558
558
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
559
559
|
return cn(e, this.formSerializer).toString();
|
|
560
560
|
if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
@@ -566,18 +566,18 @@ const Ie = {
|
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
return
|
|
569
|
+
return a || i ? (n.setContentType("application/json", !1), pn(e)) : e;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(e) {
|
|
572
572
|
const n = this.transitional || Ie.transitional, s = n && n.forcedJSONParsing, i = this.responseType === "json";
|
|
573
573
|
if (f.isResponse(e) || f.isReadableStream(e))
|
|
574
574
|
return e;
|
|
575
575
|
if (e && f.isString(e) && (s && !this.responseType || i)) {
|
|
576
|
-
const
|
|
576
|
+
const o = !(n && n.silentJSONParsing) && i;
|
|
577
577
|
try {
|
|
578
578
|
return JSON.parse(e, this.parseReviver);
|
|
579
579
|
} catch (c) {
|
|
580
|
-
if (
|
|
580
|
+
if (o)
|
|
581
581
|
throw c.name === "SyntaxError" ? $.from(c, $.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
@@ -631,8 +631,8 @@ const fn = f.toObjectSet([
|
|
|
631
631
|
const e = {};
|
|
632
632
|
let n, s, i;
|
|
633
633
|
return t && t.split(`
|
|
634
|
-
`).forEach(function(
|
|
635
|
-
i =
|
|
634
|
+
`).forEach(function(o) {
|
|
635
|
+
i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), s = o.substring(i + 1).trim(), !(!n || e[n] && fn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
|
|
636
636
|
}), e;
|
|
637
637
|
}, mt = Symbol("internals");
|
|
638
638
|
function Se(t) {
|
|
@@ -666,8 +666,8 @@ function yn(t, e) {
|
|
|
666
666
|
const n = f.toCamelCase(" " + e);
|
|
667
667
|
["get", "set", "has"].forEach((s) => {
|
|
668
668
|
Object.defineProperty(t, s + n, {
|
|
669
|
-
value: function(i,
|
|
670
|
-
return this[s].call(this, e, i,
|
|
669
|
+
value: function(i, a, o) {
|
|
670
|
+
return this[s].call(this, e, i, a, o);
|
|
671
671
|
},
|
|
672
672
|
configurable: !0
|
|
673
673
|
});
|
|
@@ -679,18 +679,18 @@ let re = class {
|
|
|
679
679
|
}
|
|
680
680
|
set(e, n, s) {
|
|
681
681
|
const i = this;
|
|
682
|
-
function
|
|
682
|
+
function a(c, d, x) {
|
|
683
683
|
const p = Se(d);
|
|
684
684
|
if (!p)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const y = f.findKey(i, p);
|
|
687
687
|
(!y || i[y] === void 0 || x === !0 || x === void 0 && i[y] !== !1) && (i[y || d] = _e(c));
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const o = (c, d) => f.forEach(c, (x, p) => a(x, p, d));
|
|
690
690
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
691
|
-
|
|
691
|
+
o(e, n);
|
|
692
692
|
else if (f.isString(e) && (e = e.trim()) && !mn(e))
|
|
693
|
-
|
|
693
|
+
o(xn(e), n);
|
|
694
694
|
else if (f.isObject(e) && f.isIterable(e)) {
|
|
695
695
|
let c = {}, d, x;
|
|
696
696
|
for (const p of e) {
|
|
@@ -698,9 +698,9 @@ let re = class {
|
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
699
|
c[x = p[0]] = (d = c[x]) ? f.isArray(d) ? [...d, p[1]] : [d, p[1]] : p[1];
|
|
700
700
|
}
|
|
701
|
-
|
|
701
|
+
o(c, n);
|
|
702
702
|
} else
|
|
703
|
-
e != null &&
|
|
703
|
+
e != null && a(n, e, s);
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(e, n) {
|
|
@@ -730,33 +730,33 @@ let re = class {
|
|
|
730
730
|
delete(e, n) {
|
|
731
731
|
const s = this;
|
|
732
732
|
let i = !1;
|
|
733
|
-
function o
|
|
734
|
-
if (
|
|
735
|
-
const c = f.findKey(s,
|
|
733
|
+
function a(o) {
|
|
734
|
+
if (o = Se(o), o) {
|
|
735
|
+
const c = f.findKey(s, o);
|
|
736
736
|
c && (!n || He(s, s[c], c, n)) && (delete s[c], i = !0);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
return f.isArray(e) ? e.forEach(
|
|
739
|
+
return f.isArray(e) ? e.forEach(a) : a(e), i;
|
|
740
740
|
}
|
|
741
741
|
clear(e) {
|
|
742
742
|
const n = Object.keys(this);
|
|
743
743
|
let s = n.length, i = !1;
|
|
744
744
|
for (; s--; ) {
|
|
745
|
-
const
|
|
746
|
-
(!e || He(this, this[
|
|
745
|
+
const a = n[s];
|
|
746
|
+
(!e || He(this, this[a], a, e, !0)) && (delete this[a], i = !0);
|
|
747
747
|
}
|
|
748
748
|
return i;
|
|
749
749
|
}
|
|
750
750
|
normalize(e) {
|
|
751
751
|
const n = this, s = {};
|
|
752
|
-
return f.forEach(this, (i,
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
755
|
-
n[
|
|
752
|
+
return f.forEach(this, (i, a) => {
|
|
753
|
+
const o = f.findKey(s, a);
|
|
754
|
+
if (o) {
|
|
755
|
+
n[o] = _e(i), delete n[a];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const c = e ? gn(
|
|
759
|
-
c !==
|
|
758
|
+
const c = e ? gn(a) : String(a).trim();
|
|
759
|
+
c !== a && delete n[a], n[c] = _e(i), s[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...e) {
|
|
@@ -792,11 +792,11 @@ let re = class {
|
|
|
792
792
|
const s = (this[mt] = this[mt] = {
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, i = this.prototype;
|
|
795
|
-
function o
|
|
796
|
-
const c = Se(
|
|
797
|
-
s[c] || (yn(i,
|
|
795
|
+
function a(o) {
|
|
796
|
+
const c = Se(o);
|
|
797
|
+
s[c] || (yn(i, o), s[c] = !0);
|
|
798
798
|
}
|
|
799
|
-
return f.isArray(e) ? e.forEach(
|
|
799
|
+
return f.isArray(e) ? e.forEach(a) : a(e), this;
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
@@ -812,10 +812,10 @@ f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
|
|
|
812
812
|
f.freezeMethods(re);
|
|
813
813
|
function Ve(t, e) {
|
|
814
814
|
const n = this || Ie, s = e || n, i = re.from(s.headers);
|
|
815
|
-
let
|
|
815
|
+
let a = s.data;
|
|
816
816
|
return f.forEach(t, function(c) {
|
|
817
|
-
|
|
818
|
-
}), i.normalize(),
|
|
817
|
+
a = c.call(n, a, i.normalize(), e ? e.status : void 0);
|
|
818
|
+
}), i.normalize(), a;
|
|
819
819
|
}
|
|
820
820
|
function Jt(t) {
|
|
821
821
|
return !!(t && t.__CANCEL__);
|
|
@@ -843,45 +843,45 @@ function bn(t) {
|
|
|
843
843
|
function wn(t, e) {
|
|
844
844
|
t = t || 10;
|
|
845
845
|
const n = new Array(t), s = new Array(t);
|
|
846
|
-
let i = 0,
|
|
846
|
+
let i = 0, a = 0, o;
|
|
847
847
|
return e = e !== void 0 ? e : 1e3, function(d) {
|
|
848
|
-
const x = Date.now(), p = s[
|
|
849
|
-
|
|
850
|
-
let y =
|
|
848
|
+
const x = Date.now(), p = s[a];
|
|
849
|
+
o || (o = x), n[i] = d, s[i] = x;
|
|
850
|
+
let y = a, k = 0;
|
|
851
851
|
for (; y !== i; )
|
|
852
852
|
k += n[y++], y = y % t;
|
|
853
|
-
if (i = (i + 1) % t, i ===
|
|
853
|
+
if (i = (i + 1) % t, i === a && (a = (a + 1) % t), x - o < e)
|
|
854
854
|
return;
|
|
855
855
|
const E = p && x - p;
|
|
856
856
|
return E ? Math.round(k * 1e3 / E) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
function jn(t, e) {
|
|
860
|
-
let n = 0, s = 1e3 / e, i,
|
|
861
|
-
const
|
|
862
|
-
n = p, i = null,
|
|
860
|
+
let n = 0, s = 1e3 / e, i, a;
|
|
861
|
+
const o = (x, p = Date.now()) => {
|
|
862
|
+
n = p, i = null, a && (clearTimeout(a), a = null), t(...x);
|
|
863
863
|
};
|
|
864
864
|
return [(...x) => {
|
|
865
865
|
const p = Date.now(), y = p - n;
|
|
866
|
-
y >= s ?
|
|
867
|
-
|
|
866
|
+
y >= s ? o(x, p) : (i = x, a || (a = setTimeout(() => {
|
|
867
|
+
a = null, o(i);
|
|
868
868
|
}, s - y)));
|
|
869
|
-
}, () => i &&
|
|
869
|
+
}, () => i && o(i)];
|
|
870
870
|
}
|
|
871
871
|
const Ne = (t, e, n = 3) => {
|
|
872
872
|
let s = 0;
|
|
873
873
|
const i = wn(50, 250);
|
|
874
|
-
return jn((
|
|
875
|
-
const
|
|
876
|
-
s =
|
|
874
|
+
return jn((a) => {
|
|
875
|
+
const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, x = i(d), p = o <= c;
|
|
876
|
+
s = o;
|
|
877
877
|
const y = {
|
|
878
|
-
loaded:
|
|
878
|
+
loaded: o,
|
|
879
879
|
total: c,
|
|
880
|
-
progress: c ?
|
|
880
|
+
progress: c ? o / c : void 0,
|
|
881
881
|
bytes: d,
|
|
882
882
|
rate: x || void 0,
|
|
883
|
-
estimated: x && c && p ? (c -
|
|
884
|
-
event:
|
|
883
|
+
estimated: x && c && p ? (c - o) / x : void 0,
|
|
884
|
+
event: a,
|
|
885
885
|
lengthComputable: c != null,
|
|
886
886
|
[e ? "download" : "upload"]: !0
|
|
887
887
|
};
|
|
@@ -900,9 +900,9 @@ const Ne = (t, e, n = 3) => {
|
|
|
900
900
|
) : () => !0, Sn = Q.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
|
-
write(t, e, n, s, i,
|
|
904
|
-
const
|
|
905
|
-
f.isNumber(n) &&
|
|
903
|
+
write(t, e, n, s, i, a) {
|
|
904
|
+
const o = [t + "=" + encodeURIComponent(e)];
|
|
905
|
+
f.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), f.isString(s) && o.push("path=" + s), f.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
906
906
|
},
|
|
907
907
|
read(t) {
|
|
908
908
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -947,11 +947,11 @@ function me(t, e) {
|
|
|
947
947
|
return s(void 0, x, y, k);
|
|
948
948
|
} else return s(x, p, y, k);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function a(x, p) {
|
|
951
951
|
if (!f.isUndefined(p))
|
|
952
952
|
return s(void 0, p);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function o(x, p) {
|
|
955
955
|
if (f.isUndefined(p)) {
|
|
956
956
|
if (!f.isUndefined(x))
|
|
957
957
|
return s(void 0, x);
|
|
@@ -964,33 +964,33 @@ function me(t, e) {
|
|
|
964
964
|
return s(void 0, x);
|
|
965
965
|
}
|
|
966
966
|
const d = {
|
|
967
|
-
url:
|
|
968
|
-
method:
|
|
969
|
-
data:
|
|
970
|
-
baseURL:
|
|
971
|
-
transformRequest:
|
|
972
|
-
transformResponse:
|
|
973
|
-
paramsSerializer:
|
|
974
|
-
timeout:
|
|
975
|
-
timeoutMessage:
|
|
976
|
-
withCredentials:
|
|
977
|
-
withXSRFToken:
|
|
978
|
-
adapter:
|
|
979
|
-
responseType:
|
|
980
|
-
xsrfCookieName:
|
|
981
|
-
xsrfHeaderName:
|
|
982
|
-
onUploadProgress:
|
|
983
|
-
onDownloadProgress:
|
|
984
|
-
decompress:
|
|
985
|
-
maxContentLength:
|
|
986
|
-
maxBodyLength:
|
|
987
|
-
beforeRedirect:
|
|
988
|
-
transport:
|
|
989
|
-
httpAgent:
|
|
990
|
-
httpsAgent:
|
|
991
|
-
cancelToken:
|
|
992
|
-
socketPath:
|
|
993
|
-
responseEncoding:
|
|
967
|
+
url: a,
|
|
968
|
+
method: a,
|
|
969
|
+
data: a,
|
|
970
|
+
baseURL: o,
|
|
971
|
+
transformRequest: o,
|
|
972
|
+
transformResponse: o,
|
|
973
|
+
paramsSerializer: o,
|
|
974
|
+
timeout: o,
|
|
975
|
+
timeoutMessage: o,
|
|
976
|
+
withCredentials: o,
|
|
977
|
+
withXSRFToken: o,
|
|
978
|
+
adapter: o,
|
|
979
|
+
responseType: o,
|
|
980
|
+
xsrfCookieName: o,
|
|
981
|
+
xsrfHeaderName: o,
|
|
982
|
+
onUploadProgress: o,
|
|
983
|
+
onDownloadProgress: o,
|
|
984
|
+
decompress: o,
|
|
985
|
+
maxContentLength: o,
|
|
986
|
+
maxBodyLength: o,
|
|
987
|
+
beforeRedirect: o,
|
|
988
|
+
transport: o,
|
|
989
|
+
httpAgent: o,
|
|
990
|
+
httpsAgent: o,
|
|
991
|
+
cancelToken: o,
|
|
992
|
+
socketPath: o,
|
|
993
|
+
responseEncoding: o,
|
|
994
994
|
validateStatus: c,
|
|
995
995
|
headers: (x, p, y) => i(bt(x), bt(p), y, !0)
|
|
996
996
|
};
|
|
@@ -1001,30 +1001,30 @@ function me(t, e) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
const Zt = (t) => {
|
|
1003
1003
|
const e = me({}, t);
|
|
1004
|
-
let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName:
|
|
1005
|
-
if (e.headers =
|
|
1004
|
+
let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: c } = e;
|
|
1005
|
+
if (e.headers = o = re.from(o), e.url = Vt(Xt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
|
|
1006
1006
|
"Authorization",
|
|
1007
1007
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1008
1008
|
), f.isFormData(n)) {
|
|
1009
1009
|
if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
|
|
1010
|
-
|
|
1010
|
+
o.setContentType(void 0);
|
|
1011
1011
|
else if (f.isFunction(n.getHeaders)) {
|
|
1012
1012
|
const d = n.getHeaders(), x = ["content-type", "content-length"];
|
|
1013
1013
|
Object.entries(d).forEach(([p, y]) => {
|
|
1014
|
-
x.includes(p.toLowerCase()) &&
|
|
1014
|
+
x.includes(p.toLowerCase()) && o.set(p, y);
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
if (Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
|
|
1019
|
-
const d = i &&
|
|
1020
|
-
d &&
|
|
1019
|
+
const d = i && a && Sn.read(a);
|
|
1020
|
+
d && o.set(i, d);
|
|
1021
1021
|
}
|
|
1022
1022
|
return e;
|
|
1023
1023
|
}, Cn = typeof XMLHttpRequest < "u", Tn = Cn && function(t) {
|
|
1024
1024
|
return new Promise(function(n, s) {
|
|
1025
1025
|
const i = Zt(t);
|
|
1026
|
-
let
|
|
1027
|
-
const
|
|
1026
|
+
let a = i.data;
|
|
1027
|
+
const o = re.from(i.headers).normalize();
|
|
1028
1028
|
let { responseType: c, onUploadProgress: d, onDownloadProgress: x } = i, p, y, k, E, u;
|
|
1029
1029
|
function w() {
|
|
1030
1030
|
E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(p), i.signal && i.signal.removeEventListener("abort", p);
|
|
@@ -1066,7 +1066,7 @@ const Zt = (t) => {
|
|
|
1066
1066
|
t,
|
|
1067
1067
|
h
|
|
1068
1068
|
)), h = null;
|
|
1069
|
-
},
|
|
1069
|
+
}, a === void 0 && o.setContentType(null), "setRequestHeader" in h && f.forEach(o.toJSON(), function(U, N) {
|
|
1070
1070
|
h.setRequestHeader(N, U);
|
|
1071
1071
|
}), f.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), x && ([k, u] = Ne(x, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (p = (g) => {
|
|
1072
1072
|
h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
|
|
@@ -1076,28 +1076,28 @@ const Zt = (t) => {
|
|
|
1076
1076
|
s(new $("Unsupported protocol " + C + ":", $.ERR_BAD_REQUEST, t));
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
h.send(
|
|
1079
|
+
h.send(a || null);
|
|
1080
1080
|
});
|
|
1081
1081
|
}, Rn = (t, e) => {
|
|
1082
1082
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1083
1083
|
if (e || n) {
|
|
1084
1084
|
let s = new AbortController(), i;
|
|
1085
|
-
const
|
|
1085
|
+
const a = function(x) {
|
|
1086
1086
|
if (!i) {
|
|
1087
1087
|
i = !0, c();
|
|
1088
1088
|
const p = x instanceof Error ? x : this.reason;
|
|
1089
1089
|
s.abort(p instanceof $ ? p : new ve(p instanceof Error ? p.message : p));
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
|
-
let
|
|
1093
|
-
|
|
1092
|
+
let o = e && setTimeout(() => {
|
|
1093
|
+
o = null, a(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
|
|
1094
1094
|
}, e);
|
|
1095
1095
|
const c = () => {
|
|
1096
|
-
t && (
|
|
1097
|
-
x.unsubscribe ? x.unsubscribe(
|
|
1096
|
+
t && (o && clearTimeout(o), o = null, t.forEach((x) => {
|
|
1097
|
+
x.unsubscribe ? x.unsubscribe(a) : x.removeEventListener("abort", a);
|
|
1098
1098
|
}), t = null);
|
|
1099
1099
|
};
|
|
1100
|
-
t.forEach((x) => x.addEventListener("abort",
|
|
1100
|
+
t.forEach((x) => x.addEventListener("abort", a));
|
|
1101
1101
|
const { signal: d } = s;
|
|
1102
1102
|
return d.unsubscribe = () => f.asap(c), d;
|
|
1103
1103
|
}
|
|
@@ -1131,8 +1131,8 @@ const Zt = (t) => {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
}, wt = (t, e, n, s) => {
|
|
1133
1133
|
const i = In(t, e);
|
|
1134
|
-
let
|
|
1135
|
-
|
|
1134
|
+
let a = 0, o, c = (d) => {
|
|
1135
|
+
o || (o = !0, s && s(d));
|
|
1136
1136
|
};
|
|
1137
1137
|
return new ReadableStream({
|
|
1138
1138
|
async pull(d) {
|
|
@@ -1144,7 +1144,7 @@ const Zt = (t) => {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
let y = p.byteLength;
|
|
1146
1146
|
if (n) {
|
|
1147
|
-
let k =
|
|
1147
|
+
let k = a += y;
|
|
1148
1148
|
n(k);
|
|
1149
1149
|
}
|
|
1150
1150
|
d.enqueue(new Uint8Array(p));
|
|
@@ -1158,7 +1158,7 @@ const Zt = (t) => {
|
|
|
1158
1158
|
}, {
|
|
1159
1159
|
highWaterMark: 2
|
|
1160
1160
|
});
|
|
1161
|
-
}, jt = 64 * 1024, { isFunction:
|
|
1161
|
+
}, jt = 64 * 1024, { isFunction: ze } = f, zn = (({ Request: t, Response: e }) => ({
|
|
1162
1162
|
Request: t,
|
|
1163
1163
|
Response: e
|
|
1164
1164
|
}))(f.global), {
|
|
@@ -1170,14 +1170,14 @@ const Zt = (t) => {
|
|
|
1170
1170
|
} catch {
|
|
1171
1171
|
return !1;
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, An = (t) => {
|
|
1174
1174
|
t = f.merge.call({
|
|
1175
1175
|
skipUndefined: !0
|
|
1176
|
-
},
|
|
1177
|
-
const { fetch: e, Request: n, Response: s } = t, i = e ?
|
|
1176
|
+
}, zn, t);
|
|
1177
|
+
const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
|
|
1178
1178
|
if (!i)
|
|
1179
1179
|
return !1;
|
|
1180
|
-
const c = i &&
|
|
1180
|
+
const c = i && ze(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), x = a && c && kt(() => {
|
|
1181
1181
|
let u = !1;
|
|
1182
1182
|
const w = new n(Q.origin, {
|
|
1183
1183
|
body: new vt(),
|
|
@@ -1187,7 +1187,7 @@ const Zt = (t) => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
}).headers.has("Content-Type");
|
|
1189
1189
|
return u && !w;
|
|
1190
|
-
}), p =
|
|
1190
|
+
}), p = o && c && kt(() => f.isReadableStream(new s("").body)), y = {
|
|
1191
1191
|
stream: p && ((u) => u.body)
|
|
1192
1192
|
};
|
|
1193
1193
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
@@ -1236,9 +1236,9 @@ const Zt = (t) => {
|
|
|
1236
1236
|
const T = R && R.unsubscribe && (() => {
|
|
1237
1237
|
R.unsubscribe();
|
|
1238
1238
|
});
|
|
1239
|
-
let
|
|
1239
|
+
let z;
|
|
1240
1240
|
try {
|
|
1241
|
-
if (b && x && h !== "get" && h !== "head" && (
|
|
1241
|
+
if (b && x && h !== "get" && h !== "head" && (z = await E(q, I)) !== 0) {
|
|
1242
1242
|
let l = new n(w, {
|
|
1243
1243
|
method: "POST",
|
|
1244
1244
|
body: I,
|
|
@@ -1246,14 +1246,14 @@ const Zt = (t) => {
|
|
|
1246
1246
|
}), m;
|
|
1247
1247
|
if (f.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
|
|
1248
1248
|
const [S, D] = gt(
|
|
1249
|
-
|
|
1249
|
+
z,
|
|
1250
1250
|
Ne(yt(b))
|
|
1251
1251
|
);
|
|
1252
1252
|
I = wt(l.body, jt, S, D);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
f.isString(O) || (O = O ? "include" : "omit");
|
|
1256
|
-
const M =
|
|
1256
|
+
const M = a && "credentials" in n.prototype, J = {
|
|
1257
1257
|
...X,
|
|
1258
1258
|
signal: R,
|
|
1259
1259
|
method: h.toUpperCase(),
|
|
@@ -1262,8 +1262,8 @@ const Zt = (t) => {
|
|
|
1262
1262
|
duplex: "half",
|
|
1263
1263
|
credentials: M ? O : void 0
|
|
1264
1264
|
};
|
|
1265
|
-
G =
|
|
1266
|
-
let H = await (
|
|
1265
|
+
G = a && new n(w, J);
|
|
1266
|
+
let H = await (a ? W(G, X) : W(w, J));
|
|
1267
1267
|
const L = p && (j === "stream" || j === "response");
|
|
1268
1268
|
if (p && (N || L && T)) {
|
|
1269
1269
|
const l = {};
|
|
@@ -1304,14 +1304,14 @@ const Zt = (t) => {
|
|
|
1304
1304
|
};
|
|
1305
1305
|
}, Un = /* @__PURE__ */ new Map(), Qt = (t) => {
|
|
1306
1306
|
let e = t ? t.env : {};
|
|
1307
|
-
const { fetch: n, Request: s, Response: i } = e,
|
|
1307
|
+
const { fetch: n, Request: s, Response: i } = e, a = [
|
|
1308
1308
|
s,
|
|
1309
1309
|
i,
|
|
1310
1310
|
n
|
|
1311
1311
|
];
|
|
1312
|
-
let
|
|
1312
|
+
let o = a.length, c = o, d, x, p = Un;
|
|
1313
1313
|
for (; c--; )
|
|
1314
|
-
d =
|
|
1314
|
+
d = a[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() : An(e)), p = x;
|
|
1315
1315
|
return x;
|
|
1316
1316
|
};
|
|
1317
1317
|
Qt();
|
|
@@ -1336,23 +1336,23 @@ const Et = (t) => `- ${t}`, _n = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1336
1336
|
t = f.isArray(t) ? t : [t];
|
|
1337
1337
|
const { length: n } = t;
|
|
1338
1338
|
let s, i;
|
|
1339
|
-
const
|
|
1340
|
-
for (let
|
|
1341
|
-
s = t[
|
|
1339
|
+
const a = {};
|
|
1340
|
+
for (let o = 0; o < n; o++) {
|
|
1341
|
+
s = t[o];
|
|
1342
1342
|
let c;
|
|
1343
1343
|
if (i = s, !_n(s) && (i = Qe[(c = String(s)).toLowerCase()], i === void 0))
|
|
1344
1344
|
throw new $(`Unknown adapter '${c}'`);
|
|
1345
1345
|
if (i && (f.isFunction(i) || (i = i.get(e))))
|
|
1346
1346
|
break;
|
|
1347
|
-
|
|
1347
|
+
a[c || "#" + o] = i;
|
|
1348
1348
|
}
|
|
1349
1349
|
if (!i) {
|
|
1350
|
-
const
|
|
1350
|
+
const o = Object.entries(a).map(
|
|
1351
1351
|
([d, x]) => `adapter ${d} ` + (x === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1352
1352
|
);
|
|
1353
|
-
let c = n ?
|
|
1354
|
-
` +
|
|
1355
|
-
`) : " " + Et(
|
|
1353
|
+
let c = n ? o.length > 1 ? `since :
|
|
1354
|
+
` + o.map(Et).join(`
|
|
1355
|
+
`) : " " + Et(o[0]) : "as no adapter specified";
|
|
1356
1356
|
throw new $(
|
|
1357
1357
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1358
1358
|
"ERR_NOT_SUPPORT"
|
|
@@ -1392,21 +1392,21 @@ const tr = "1.12.2", We = {};
|
|
|
1392
1392
|
});
|
|
1393
1393
|
const Tt = {};
|
|
1394
1394
|
We.transitional = function(e, n, s) {
|
|
1395
|
-
function i(
|
|
1396
|
-
return "[Axios v" + tr + "] Transitional option '" +
|
|
1395
|
+
function i(a, o) {
|
|
1396
|
+
return "[Axios v" + tr + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
|
|
1397
1397
|
}
|
|
1398
|
-
return (
|
|
1398
|
+
return (a, o, c) => {
|
|
1399
1399
|
if (e === !1)
|
|
1400
1400
|
throw new $(
|
|
1401
|
-
i(
|
|
1401
|
+
i(o, " has been removed" + (n ? " in " + n : "")),
|
|
1402
1402
|
$.ERR_DEPRECATED
|
|
1403
1403
|
);
|
|
1404
|
-
return n && !Tt[
|
|
1404
|
+
return n && !Tt[o] && (Tt[o] = !0, console.warn(
|
|
1405
1405
|
i(
|
|
1406
|
-
|
|
1406
|
+
o,
|
|
1407
1407
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1408
1408
|
)
|
|
1409
|
-
)), e ? e(
|
|
1409
|
+
)), e ? e(a, o, c) : !0;
|
|
1410
1410
|
};
|
|
1411
1411
|
};
|
|
1412
1412
|
We.spelling = function(e) {
|
|
@@ -1418,15 +1418,15 @@ function $n(t, e, n) {
|
|
|
1418
1418
|
const s = Object.keys(t);
|
|
1419
1419
|
let i = s.length;
|
|
1420
1420
|
for (; i-- > 0; ) {
|
|
1421
|
-
const
|
|
1422
|
-
if (
|
|
1423
|
-
const c = t[
|
|
1421
|
+
const a = s[i], o = e[a];
|
|
1422
|
+
if (o) {
|
|
1423
|
+
const c = t[a], d = c === void 0 || o(c, a, t);
|
|
1424
1424
|
if (d !== !0)
|
|
1425
|
-
throw new $("option " +
|
|
1425
|
+
throw new $("option " + a + " must be " + d, $.ERR_BAD_OPTION_VALUE);
|
|
1426
1426
|
continue;
|
|
1427
1427
|
}
|
|
1428
1428
|
if (n !== !0)
|
|
1429
|
-
throw new $("Unknown option " +
|
|
1429
|
+
throw new $("Unknown option " + a, $.ERR_BAD_OPTION);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
const $e = {
|
|
@@ -1455,10 +1455,10 @@ let xe = class {
|
|
|
1455
1455
|
if (s instanceof Error) {
|
|
1456
1456
|
let i = {};
|
|
1457
1457
|
Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
|
|
1458
|
-
const
|
|
1458
|
+
const a = i.stack ? i.stack.replace(/^.+\n/, "") : "";
|
|
1459
1459
|
try {
|
|
1460
|
-
s.stack ?
|
|
1461
|
-
` +
|
|
1460
|
+
s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
1461
|
+
` + a) : s.stack = a;
|
|
1462
1462
|
} catch {
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
@@ -1467,7 +1467,7 @@ let xe = class {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
_request(e, n) {
|
|
1469
1469
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = me(this.defaults, n);
|
|
1470
|
-
const { transitional: s, paramsSerializer: i, headers:
|
|
1470
|
+
const { transitional: s, paramsSerializer: i, headers: a } = n;
|
|
1471
1471
|
s !== void 0 && $e.assertOptions(s, {
|
|
1472
1472
|
silentJSONParsing: ce.transitional(ce.boolean),
|
|
1473
1473
|
forcedJSONParsing: ce.transitional(ce.boolean),
|
|
@@ -1481,16 +1481,16 @@ let xe = class {
|
|
|
1481
1481
|
baseUrl: ce.spelling("baseURL"),
|
|
1482
1482
|
withXsrfToken: ce.spelling("withXSRFToken")
|
|
1483
1483
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1486
|
-
|
|
1484
|
+
let o = a && f.merge(
|
|
1485
|
+
a.common,
|
|
1486
|
+
a[n.method]
|
|
1487
1487
|
);
|
|
1488
|
-
|
|
1488
|
+
a && f.forEach(
|
|
1489
1489
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1490
1490
|
(u) => {
|
|
1491
|
-
delete
|
|
1491
|
+
delete a[u];
|
|
1492
1492
|
}
|
|
1493
|
-
), n.headers = re.concat(
|
|
1493
|
+
), n.headers = re.concat(o, a);
|
|
1494
1494
|
const c = [];
|
|
1495
1495
|
let d = !0;
|
|
1496
1496
|
this.interceptors.request.forEach(function(w) {
|
|
@@ -1544,14 +1544,14 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
f.forEach(["post", "put", "patch"], function(e) {
|
|
1546
1546
|
function n(s) {
|
|
1547
|
-
return function(
|
|
1547
|
+
return function(a, o, c) {
|
|
1548
1548
|
return this.request(me(c || {}, {
|
|
1549
1549
|
method: e,
|
|
1550
1550
|
headers: s ? {
|
|
1551
1551
|
"Content-Type": "multipart/form-data"
|
|
1552
1552
|
} : {},
|
|
1553
|
-
url:
|
|
1554
|
-
data:
|
|
1553
|
+
url: a,
|
|
1554
|
+
data: o
|
|
1555
1555
|
}));
|
|
1556
1556
|
};
|
|
1557
1557
|
}
|
|
@@ -1562,26 +1562,26 @@ let Dn = class rr {
|
|
|
1562
1562
|
if (typeof e != "function")
|
|
1563
1563
|
throw new TypeError("executor must be a function.");
|
|
1564
1564
|
let n;
|
|
1565
|
-
this.promise = new Promise(function(
|
|
1566
|
-
n =
|
|
1565
|
+
this.promise = new Promise(function(a) {
|
|
1566
|
+
n = a;
|
|
1567
1567
|
});
|
|
1568
1568
|
const s = this;
|
|
1569
1569
|
this.promise.then((i) => {
|
|
1570
1570
|
if (!s._listeners) return;
|
|
1571
|
-
let
|
|
1572
|
-
for (;
|
|
1573
|
-
s._listeners[
|
|
1571
|
+
let a = s._listeners.length;
|
|
1572
|
+
for (; a-- > 0; )
|
|
1573
|
+
s._listeners[a](i);
|
|
1574
1574
|
s._listeners = null;
|
|
1575
1575
|
}), this.promise.then = (i) => {
|
|
1576
|
-
let
|
|
1577
|
-
const
|
|
1578
|
-
s.subscribe(c),
|
|
1576
|
+
let a;
|
|
1577
|
+
const o = new Promise((c) => {
|
|
1578
|
+
s.subscribe(c), a = c;
|
|
1579
1579
|
}).then(i);
|
|
1580
|
-
return
|
|
1581
|
-
s.unsubscribe(
|
|
1582
|
-
},
|
|
1583
|
-
}, e(function(
|
|
1584
|
-
s.reason || (s.reason = new ve(
|
|
1580
|
+
return o.cancel = function() {
|
|
1581
|
+
s.unsubscribe(a);
|
|
1582
|
+
}, o;
|
|
1583
|
+
}, e(function(a, o, c) {
|
|
1584
|
+
s.reason || (s.reason = new ve(a, o, c), n(s.reason));
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
1587
|
/**
|
|
@@ -1747,8 +1747,8 @@ const {
|
|
|
1747
1747
|
AxiosHeaders: ni,
|
|
1748
1748
|
HttpStatusCode: si,
|
|
1749
1749
|
formToJSON: ii,
|
|
1750
|
-
getAdapter:
|
|
1751
|
-
mergeConfig:
|
|
1750
|
+
getAdapter: ai,
|
|
1751
|
+
mergeConfig: oi
|
|
1752
1752
|
} = K;
|
|
1753
1753
|
class li {
|
|
1754
1754
|
baseUrl;
|
|
@@ -1781,25 +1781,25 @@ class li {
|
|
|
1781
1781
|
* @param data Optional request body
|
|
1782
1782
|
* @param extraHeaders Optional custom headers
|
|
1783
1783
|
*/
|
|
1784
|
-
async request(e, n, s, i = {},
|
|
1784
|
+
async request(e, n, s, i = {}, a = !1) {
|
|
1785
1785
|
try {
|
|
1786
|
-
const
|
|
1786
|
+
const o = {
|
|
1787
1787
|
...this.appId ? { appId: this.appId } : {},
|
|
1788
1788
|
...s || {}
|
|
1789
1789
|
};
|
|
1790
1790
|
return (await this.client.request({
|
|
1791
1791
|
url: n,
|
|
1792
1792
|
method: e,
|
|
1793
|
-
data:
|
|
1793
|
+
data: o,
|
|
1794
1794
|
headers: i,
|
|
1795
|
-
withCredentials:
|
|
1795
|
+
withCredentials: a
|
|
1796
1796
|
// 👈 override axios default
|
|
1797
1797
|
})).data;
|
|
1798
|
-
} catch (
|
|
1799
|
-
throw K.isAxiosError(
|
|
1800
|
-
message:
|
|
1801
|
-
status:
|
|
1802
|
-
} : { message:
|
|
1798
|
+
} catch (o) {
|
|
1799
|
+
throw K.isAxiosError(o) ? {
|
|
1800
|
+
message: o.response?.data?.message || o.message || "Request failed",
|
|
1801
|
+
status: o.response?.status ?? 0
|
|
1802
|
+
} : { message: o.message || "Unexpected error occurred" };
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
// ================= USERS =================
|
|
@@ -2084,7 +2084,7 @@ class li {
|
|
|
2084
2084
|
throw new Error("searchUserDataByKeys: 'userId' is required");
|
|
2085
2085
|
const i = new URLSearchParams(
|
|
2086
2086
|
Object.entries(s).reduce(
|
|
2087
|
-
(
|
|
2087
|
+
(a, [o, c]) => (c != null && (a[o] = String(c)), a),
|
|
2088
2088
|
{}
|
|
2089
2089
|
)
|
|
2090
2090
|
).toString();
|
|
@@ -2110,15 +2110,15 @@ class li {
|
|
|
2110
2110
|
* - Future filter ready
|
|
2111
2111
|
*/
|
|
2112
2112
|
async getUserData(e) {
|
|
2113
|
-
const { userId: n, limit: s = 20, cursor: i, type:
|
|
2113
|
+
const { userId: n, limit: s = 20, cursor: i, type: a } = e;
|
|
2114
2114
|
if (!n)
|
|
2115
2115
|
throw new Error("getUserData: 'userId' is required");
|
|
2116
|
-
const
|
|
2117
|
-
c.append("limit", String(s)), i && c.append("cursor", i),
|
|
2116
|
+
const o = `/users/${encodeURIComponent(n)}/data`, c = new URLSearchParams();
|
|
2117
|
+
c.append("limit", String(s)), i && c.append("cursor", i), a && c.append("type", a);
|
|
2118
2118
|
const d = c.toString();
|
|
2119
2119
|
return await this.request(
|
|
2120
2120
|
"GET",
|
|
2121
|
-
d ? `${
|
|
2121
|
+
d ? `${o}?${d}` : o,
|
|
2122
2122
|
void 0,
|
|
2123
2123
|
{},
|
|
2124
2124
|
!1
|
|
@@ -2200,22 +2200,27 @@ class li {
|
|
|
2200
2200
|
);
|
|
2201
2201
|
}
|
|
2202
2202
|
/**
|
|
2203
|
-
* Search all users' data by
|
|
2204
|
-
* @param params
|
|
2203
|
+
* Search all users' data by keys with deep filtering inside an app
|
|
2204
|
+
* @param params appId, dataCategory (required), query (optional), and dynamic filters
|
|
2205
2205
|
*/
|
|
2206
|
-
async
|
|
2207
|
-
const { dataCategory: n } = e,
|
|
2208
|
-
if (!
|
|
2209
|
-
throw new Error("
|
|
2206
|
+
async searchAllUsersDataByKeys(e) {
|
|
2207
|
+
const { dataCategory: n, query: s, ...i } = e, a = this.appId;
|
|
2208
|
+
if (!a)
|
|
2209
|
+
throw new Error("searchAllUsersDataByKeys: 'appId' is required");
|
|
2210
2210
|
if (!n)
|
|
2211
|
-
throw new Error("
|
|
2211
|
+
throw new Error("searchAllUsersDataByKeys: 'dataCategory' is required");
|
|
2212
2212
|
return await this.request(
|
|
2213
2213
|
"GET",
|
|
2214
|
-
`/users
|
|
2214
|
+
`/users/${encodeURIComponent(a)}/data/searchbyref/all?${new URLSearchParams(
|
|
2215
|
+
{
|
|
2216
|
+
dataCategory: n,
|
|
2217
|
+
...s ? { query: s } : {},
|
|
2218
|
+
...i
|
|
2219
|
+
}
|
|
2220
|
+
).toString()}`,
|
|
2215
2221
|
void 0,
|
|
2216
2222
|
{},
|
|
2217
2223
|
!1
|
|
2218
|
-
// 👈 no credentials
|
|
2219
2224
|
);
|
|
2220
2225
|
}
|
|
2221
2226
|
// ================= APP DATA =================
|
|
@@ -2249,23 +2254,12 @@ class li {
|
|
|
2249
2254
|
const n = this.appId;
|
|
2250
2255
|
if (!n)
|
|
2251
2256
|
throw new Error("getAppUsersData: 'appId' is required");
|
|
2252
|
-
const {
|
|
2253
|
-
|
|
2254
|
-
limit: i = 20,
|
|
2255
|
-
cursor: o
|
|
2256
|
-
} = e;
|
|
2257
|
-
let a = `/app/${encodeURIComponent(n)}/users-data`;
|
|
2258
|
-
s && (a += `/${encodeURIComponent(s)}`);
|
|
2257
|
+
const { category: s, limit: i = 20, cursor: a } = e;
|
|
2258
|
+
let o = `/app/${encodeURIComponent(n)}/users-data`;
|
|
2259
2259
|
const c = new URLSearchParams();
|
|
2260
|
-
c.append("limit", String(i)),
|
|
2260
|
+
s && c.append("category", s), c.append("limit", String(i)), a && c.append("cursor", a);
|
|
2261
2261
|
const d = c.toString();
|
|
2262
|
-
return d && (
|
|
2263
|
-
"GET",
|
|
2264
|
-
a,
|
|
2265
|
-
void 0,
|
|
2266
|
-
{},
|
|
2267
|
-
!1
|
|
2268
|
-
);
|
|
2262
|
+
return d && (o += `?${d}`), await this.request("GET", o, void 0, {}, !1);
|
|
2269
2263
|
}
|
|
2270
2264
|
/**
|
|
2271
2265
|
* 👥 Get all app users (Paginated + Load More + Filters)
|
|
@@ -2283,8 +2277,8 @@ class li {
|
|
|
2283
2277
|
const n = this.appId;
|
|
2284
2278
|
if (!n)
|
|
2285
2279
|
throw new Error("getAllAppUsers: 'appId' is required");
|
|
2286
|
-
const { limit: s = 20, cursor: i, search:
|
|
2287
|
-
p.append("limit", String(s)), i && p.append("cursor", i),
|
|
2280
|
+
const { limit: s = 20, cursor: i, search: a, role: o, isActive: c, isVerified: d } = e, x = `/app/${encodeURIComponent(n)}/users`, p = new URLSearchParams();
|
|
2281
|
+
p.append("limit", String(s)), i && p.append("cursor", i), a && p.append("search", a), o && p.append("role", o), typeof c == "boolean" && p.append("isActive", String(c)), typeof d == "boolean" && p.append("isVerified", String(d));
|
|
2288
2282
|
const y = p.toString();
|
|
2289
2283
|
return await this.request(
|
|
2290
2284
|
"GET",
|
|
@@ -2395,7 +2389,7 @@ class li {
|
|
|
2395
2389
|
);
|
|
2396
2390
|
}
|
|
2397
2391
|
}
|
|
2398
|
-
var
|
|
2392
|
+
var Ae = { exports: {} }, ke = {};
|
|
2399
2393
|
/**
|
|
2400
2394
|
* @license React
|
|
2401
2395
|
* react-jsx-runtime.production.js
|
|
@@ -2410,19 +2404,19 @@ function Fn() {
|
|
|
2410
2404
|
if (Rt) return ke;
|
|
2411
2405
|
Rt = 1;
|
|
2412
2406
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
2413
|
-
function n(s, i,
|
|
2414
|
-
var
|
|
2415
|
-
if (
|
|
2416
|
-
|
|
2407
|
+
function n(s, i, a) {
|
|
2408
|
+
var o = null;
|
|
2409
|
+
if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
|
|
2410
|
+
a = {};
|
|
2417
2411
|
for (var c in i)
|
|
2418
|
-
c !== "key" && (
|
|
2419
|
-
} else
|
|
2420
|
-
return i =
|
|
2412
|
+
c !== "key" && (a[c] = i[c]);
|
|
2413
|
+
} else a = i;
|
|
2414
|
+
return i = a.ref, {
|
|
2421
2415
|
$$typeof: t,
|
|
2422
2416
|
type: s,
|
|
2423
|
-
key:
|
|
2417
|
+
key: o,
|
|
2424
2418
|
ref: i !== void 0 ? i : null,
|
|
2425
|
-
props:
|
|
2419
|
+
props: a
|
|
2426
2420
|
};
|
|
2427
2421
|
}
|
|
2428
2422
|
return ke.Fragment = e, ke.jsx = n, ke.jsxs = n, ke;
|
|
@@ -2518,10 +2512,10 @@ function qn() {
|
|
|
2518
2512
|
var l = R.A;
|
|
2519
2513
|
return l === null ? null : l.getOwner();
|
|
2520
2514
|
}
|
|
2521
|
-
function
|
|
2515
|
+
function a() {
|
|
2522
2516
|
return Error("react-stack-top-frame");
|
|
2523
2517
|
}
|
|
2524
|
-
function
|
|
2518
|
+
function o(l) {
|
|
2525
2519
|
if (G.call(l, "key")) {
|
|
2526
2520
|
var m = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
2527
2521
|
if (m && m.isReactWarning) return !1;
|
|
@@ -2546,7 +2540,7 @@ function qn() {
|
|
|
2546
2540
|
"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."
|
|
2547
2541
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
2548
2542
|
}
|
|
2549
|
-
function x(l, m, S, D, ne,
|
|
2543
|
+
function x(l, m, S, D, ne, oe) {
|
|
2550
2544
|
var B = S.ref;
|
|
2551
2545
|
return l = {
|
|
2552
2546
|
$$typeof: u,
|
|
@@ -2576,10 +2570,10 @@ function qn() {
|
|
|
2576
2570
|
configurable: !1,
|
|
2577
2571
|
enumerable: !1,
|
|
2578
2572
|
writable: !0,
|
|
2579
|
-
value:
|
|
2573
|
+
value: oe
|
|
2580
2574
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
2581
2575
|
}
|
|
2582
|
-
function p(l, m, S, D, ne,
|
|
2576
|
+
function p(l, m, S, D, ne, oe) {
|
|
2583
2577
|
var B = m.children;
|
|
2584
2578
|
if (B !== void 0)
|
|
2585
2579
|
if (D)
|
|
@@ -2594,8 +2588,8 @@ function qn() {
|
|
|
2594
2588
|
else y(B);
|
|
2595
2589
|
if (G.call(m, "key")) {
|
|
2596
2590
|
B = t(l);
|
|
2597
|
-
var le = Object.keys(m).filter(function(
|
|
2598
|
-
return
|
|
2591
|
+
var le = Object.keys(m).filter(function(A) {
|
|
2592
|
+
return A !== "key";
|
|
2599
2593
|
});
|
|
2600
2594
|
D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2601
2595
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -2610,7 +2604,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2610
2604
|
B
|
|
2611
2605
|
), Y[B + D] = !0);
|
|
2612
2606
|
}
|
|
2613
|
-
if (B = null, S !== void 0 && (n(S), B = "" + S),
|
|
2607
|
+
if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
|
|
2614
2608
|
S = {};
|
|
2615
2609
|
for (var ye in m)
|
|
2616
2610
|
ye !== "key" && (S[ye] = m[ye]);
|
|
@@ -2624,7 +2618,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2624
2618
|
S,
|
|
2625
2619
|
i(),
|
|
2626
2620
|
ne,
|
|
2627
|
-
|
|
2621
|
+
oe
|
|
2628
2622
|
);
|
|
2629
2623
|
}
|
|
2630
2624
|
function y(l) {
|
|
@@ -2633,7 +2627,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2633
2627
|
function k(l) {
|
|
2634
2628
|
return typeof l == "object" && l !== null && l.$$typeof === u;
|
|
2635
2629
|
}
|
|
2636
|
-
var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray,
|
|
2630
|
+
var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
2637
2631
|
return null;
|
|
2638
2632
|
};
|
|
2639
2633
|
E = {
|
|
@@ -2643,8 +2637,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2643
2637
|
};
|
|
2644
2638
|
var M, J = {}, H = E.react_stack_bottom_frame.bind(
|
|
2645
2639
|
E,
|
|
2646
|
-
|
|
2647
|
-
)(), L =
|
|
2640
|
+
a
|
|
2641
|
+
)(), L = z(s(a)), Y = {};
|
|
2648
2642
|
Ee.Fragment = h, Ee.jsx = function(l, m, S) {
|
|
2649
2643
|
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2650
2644
|
return p(
|
|
@@ -2653,7 +2647,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2653
2647
|
S,
|
|
2654
2648
|
!1,
|
|
2655
2649
|
D ? Error("react-stack-top-frame") : H,
|
|
2656
|
-
D ?
|
|
2650
|
+
D ? z(s(l)) : L
|
|
2657
2651
|
);
|
|
2658
2652
|
}, Ee.jsxs = function(l, m, S) {
|
|
2659
2653
|
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
@@ -2663,14 +2657,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2663
2657
|
S,
|
|
2664
2658
|
!0,
|
|
2665
2659
|
D ? Error("react-stack-top-frame") : H,
|
|
2666
|
-
D ?
|
|
2660
|
+
D ? z(s(l)) : L
|
|
2667
2661
|
);
|
|
2668
2662
|
};
|
|
2669
2663
|
})()), Ee;
|
|
2670
2664
|
}
|
|
2671
2665
|
var It;
|
|
2672
2666
|
function Mn() {
|
|
2673
|
-
return It || (It = 1, process.env.NODE_ENV === "production" ?
|
|
2667
|
+
return It || (It = 1, process.env.NODE_ENV === "production" ? Ae.exports = Fn() : Ae.exports = qn()), Ae.exports;
|
|
2674
2668
|
}
|
|
2675
2669
|
var r = Mn();
|
|
2676
2670
|
/**
|
|
@@ -2713,15 +2707,15 @@ var Vn = {
|
|
|
2713
2707
|
* This source code is licensed under the ISC license.
|
|
2714
2708
|
* See the LICENSE file in the root directory of this source tree.
|
|
2715
2709
|
*/
|
|
2716
|
-
const Yn =
|
|
2710
|
+
const Yn = At(
|
|
2717
2711
|
({
|
|
2718
2712
|
color: t = "currentColor",
|
|
2719
2713
|
size: e = 24,
|
|
2720
2714
|
strokeWidth: n = 2,
|
|
2721
2715
|
absoluteStrokeWidth: s,
|
|
2722
2716
|
className: i = "",
|
|
2723
|
-
children:
|
|
2724
|
-
iconNode:
|
|
2717
|
+
children: a,
|
|
2718
|
+
iconNode: o,
|
|
2725
2719
|
...c
|
|
2726
2720
|
}, d) => Je(
|
|
2727
2721
|
"svg",
|
|
@@ -2733,12 +2727,12 @@ const Yn = zt(
|
|
|
2733
2727
|
stroke: t,
|
|
2734
2728
|
strokeWidth: s ? Number(n) * 24 / Number(e) : n,
|
|
2735
2729
|
className: sr("lucide", i),
|
|
2736
|
-
...!
|
|
2730
|
+
...!a && !Hn(c) && { "aria-hidden": "true" },
|
|
2737
2731
|
...c
|
|
2738
2732
|
},
|
|
2739
2733
|
[
|
|
2740
|
-
...
|
|
2741
|
-
...Array.isArray(
|
|
2734
|
+
...o.map(([x, p]) => Je(x, p)),
|
|
2735
|
+
...Array.isArray(a) ? a : [a]
|
|
2742
2736
|
]
|
|
2743
2737
|
)
|
|
2744
2738
|
);
|
|
@@ -2749,9 +2743,9 @@ const Yn = zt(
|
|
|
2749
2743
|
* See the LICENSE file in the root directory of this source tree.
|
|
2750
2744
|
*/
|
|
2751
2745
|
const F = (t, e) => {
|
|
2752
|
-
const n =
|
|
2753
|
-
({ className: s, ...i },
|
|
2754
|
-
ref:
|
|
2746
|
+
const n = At(
|
|
2747
|
+
({ className: s, ...i }, a) => Je(Yn, {
|
|
2748
|
+
ref: a,
|
|
2755
2749
|
iconNode: e,
|
|
2756
2750
|
className: sr(
|
|
2757
2751
|
`lucide-${Wn(Ot(t))}`,
|
|
@@ -2861,7 +2855,7 @@ const ss = [
|
|
|
2861
2855
|
* This source code is licensed under the ISC license.
|
|
2862
2856
|
* See the LICENSE file in the root directory of this source tree.
|
|
2863
2857
|
*/
|
|
2864
|
-
const
|
|
2858
|
+
const as = [
|
|
2865
2859
|
[
|
|
2866
2860
|
"path",
|
|
2867
2861
|
{
|
|
@@ -2878,14 +2872,14 @@ const os = [
|
|
|
2878
2872
|
}
|
|
2879
2873
|
],
|
|
2880
2874
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
2881
|
-
],
|
|
2875
|
+
], at = F("eye-off", as);
|
|
2882
2876
|
/**
|
|
2883
2877
|
* @license lucide-react v0.544.0 - ISC
|
|
2884
2878
|
*
|
|
2885
2879
|
* This source code is licensed under the ISC license.
|
|
2886
2880
|
* See the LICENSE file in the root directory of this source tree.
|
|
2887
2881
|
*/
|
|
2888
|
-
const
|
|
2882
|
+
const os = [
|
|
2889
2883
|
[
|
|
2890
2884
|
"path",
|
|
2891
2885
|
{
|
|
@@ -2894,7 +2888,7 @@ const as = [
|
|
|
2894
2888
|
}
|
|
2895
2889
|
],
|
|
2896
2890
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
2897
|
-
],
|
|
2891
|
+
], ot = F("eye", os);
|
|
2898
2892
|
/**
|
|
2899
2893
|
* @license lucide-react v0.544.0 - ISC
|
|
2900
2894
|
*
|
|
@@ -2937,7 +2931,7 @@ const us = [
|
|
|
2937
2931
|
}
|
|
2938
2932
|
],
|
|
2939
2933
|
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
|
|
2940
|
-
],
|
|
2934
|
+
], ar = F("key-round", us);
|
|
2941
2935
|
/**
|
|
2942
2936
|
* @license lucide-react v0.544.0 - ISC
|
|
2943
2937
|
*
|
|
@@ -3116,7 +3110,7 @@ const Is = [
|
|
|
3116
3110
|
* This source code is licensed under the ISC license.
|
|
3117
3111
|
* See the LICENSE file in the root directory of this source tree.
|
|
3118
3112
|
*/
|
|
3119
|
-
const
|
|
3113
|
+
const zs = [
|
|
3120
3114
|
[
|
|
3121
3115
|
"path",
|
|
3122
3116
|
{
|
|
@@ -3124,20 +3118,20 @@ const As = [
|
|
|
3124
3118
|
key: "oel41y"
|
|
3125
3119
|
}
|
|
3126
3120
|
]
|
|
3127
|
-
], rt = F("shield",
|
|
3121
|
+
], rt = F("shield", zs);
|
|
3128
3122
|
/**
|
|
3129
3123
|
* @license lucide-react v0.544.0 - ISC
|
|
3130
3124
|
*
|
|
3131
3125
|
* This source code is licensed under the ISC license.
|
|
3132
3126
|
* See the LICENSE file in the root directory of this source tree.
|
|
3133
3127
|
*/
|
|
3134
|
-
const
|
|
3128
|
+
const As = [
|
|
3135
3129
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
3136
3130
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
3137
3131
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
3138
3132
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3139
3133
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
3140
|
-
], De = F("trash-2",
|
|
3134
|
+
], De = F("trash-2", As);
|
|
3141
3135
|
/**
|
|
3142
3136
|
* @license lucide-react v0.544.0 - ISC
|
|
3143
3137
|
*
|
|
@@ -3154,7 +3148,7 @@ const Us = [
|
|
|
3154
3148
|
],
|
|
3155
3149
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3156
3150
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3157
|
-
],
|
|
3151
|
+
], zt = F("triangle-alert", Us);
|
|
3158
3152
|
/**
|
|
3159
3153
|
* @license lucide-react v0.544.0 - ISC
|
|
3160
3154
|
*
|
|
@@ -3186,11 +3180,11 @@ const Ds = [
|
|
|
3186
3180
|
const Ns = [
|
|
3187
3181
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3188
3182
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3189
|
-
], Oe = F("x", Ns),
|
|
3183
|
+
], Oe = F("x", Ns), or = cr(null), ci = ({
|
|
3190
3184
|
authix: t,
|
|
3191
3185
|
children: e
|
|
3192
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
3193
|
-
const t = dr(
|
|
3186
|
+
}) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
|
|
3187
|
+
const t = dr(or);
|
|
3194
3188
|
if (!t)
|
|
3195
3189
|
throw new Error("useAuthix must be used inside <AuthixProvider />");
|
|
3196
3190
|
return t;
|
|
@@ -3200,8 +3194,8 @@ const Ns = [
|
|
|
3200
3194
|
title: n = "Create Your Account",
|
|
3201
3195
|
subtitle: s = "Join our platform today",
|
|
3202
3196
|
primaryColor: i = "#00C214",
|
|
3203
|
-
gradient:
|
|
3204
|
-
darkMode:
|
|
3197
|
+
gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3198
|
+
darkMode: o = !0,
|
|
3205
3199
|
// Only avatar is optional
|
|
3206
3200
|
showAvatar: c = !1,
|
|
3207
3201
|
roles: d = [],
|
|
@@ -3218,14 +3212,14 @@ const Ns = [
|
|
|
3218
3212
|
password: "",
|
|
3219
3213
|
role: d.length ? d[0] : "user",
|
|
3220
3214
|
...c && { avatarUrl: "" }
|
|
3221
|
-
}, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W =
|
|
3215
|
+
}, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W = o ? "#ffffff" : "#111827", R = o ? "#a1a1aa" : "#6b7280", G = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
|
|
3222
3216
|
Ce.useEffect(() => {
|
|
3223
3217
|
if (typeof window < "u") {
|
|
3224
3218
|
const L = () => X(window.innerWidth < 768);
|
|
3225
3219
|
return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
|
|
3226
3220
|
}
|
|
3227
3221
|
}, []);
|
|
3228
|
-
const
|
|
3222
|
+
const z = (L) => {
|
|
3229
3223
|
const { name: Y, value: l } = L.target;
|
|
3230
3224
|
h((m) => ({ ...m, [Y]: l })), j[Y] && q((m) => ({ ...m, [Y]: void 0 }));
|
|
3231
3225
|
}, M = () => {
|
|
@@ -3287,7 +3281,7 @@ const Ns = [
|
|
|
3287
3281
|
flexDirection: "column",
|
|
3288
3282
|
borderRadius: "10px",
|
|
3289
3283
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3290
|
-
backgroundColor:
|
|
3284
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3291
3285
|
padding: O ? "30px 24px" : "20px 28px"
|
|
3292
3286
|
},
|
|
3293
3287
|
children: [
|
|
@@ -3422,9 +3416,9 @@ const Ns = [
|
|
|
3422
3416
|
left: 0,
|
|
3423
3417
|
width: "50%",
|
|
3424
3418
|
height: "100%",
|
|
3425
|
-
backgroundColor:
|
|
3419
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3426
3420
|
// dark/light background
|
|
3427
|
-
boxShadow:
|
|
3421
|
+
boxShadow: o ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
|
|
3428
3422
|
// subtle shadow
|
|
3429
3423
|
borderRadius: "10px",
|
|
3430
3424
|
transition: "transform 0.3s ease, background-color 0.3s ease",
|
|
@@ -3443,7 +3437,7 @@ const Ns = [
|
|
|
3443
3437
|
zIndex: 10,
|
|
3444
3438
|
border: "none",
|
|
3445
3439
|
background: "transparent",
|
|
3446
|
-
color: w.role === d[0] ? i :
|
|
3440
|
+
color: w.role === d[0] ? i : o ? "#9ca3af" : "#6b7280",
|
|
3447
3441
|
// theme-aware inactive color
|
|
3448
3442
|
fontWeight: w.role === d[0] ? 600 : 500,
|
|
3449
3443
|
fontSize: "14px",
|
|
@@ -3465,7 +3459,7 @@ const Ns = [
|
|
|
3465
3459
|
zIndex: 10,
|
|
3466
3460
|
border: "none",
|
|
3467
3461
|
background: "transparent",
|
|
3468
|
-
color: w.role === d[1] ? i :
|
|
3462
|
+
color: w.role === d[1] ? i : o ? "#9ca3af" : "#6b7280",
|
|
3469
3463
|
fontWeight: w.role === d[1] ? 600 : 500,
|
|
3470
3464
|
fontSize: "14px",
|
|
3471
3465
|
display: "flex",
|
|
@@ -3517,7 +3511,7 @@ const Ns = [
|
|
|
3517
3511
|
name: "name",
|
|
3518
3512
|
placeholder: "Enter your full name",
|
|
3519
3513
|
value: w.name,
|
|
3520
|
-
onChange:
|
|
3514
|
+
onChange: z,
|
|
3521
3515
|
style: {
|
|
3522
3516
|
...H,
|
|
3523
3517
|
borderColor: j.name ? "#ef4444" : T
|
|
@@ -3572,7 +3566,7 @@ const Ns = [
|
|
|
3572
3566
|
name: "email",
|
|
3573
3567
|
placeholder: "Enter your email address",
|
|
3574
3568
|
value: w.email,
|
|
3575
|
-
onChange:
|
|
3569
|
+
onChange: z,
|
|
3576
3570
|
style: {
|
|
3577
3571
|
...H,
|
|
3578
3572
|
borderColor: j.email ? "#ef4444" : T
|
|
@@ -3627,7 +3621,7 @@ const Ns = [
|
|
|
3627
3621
|
name: "password",
|
|
3628
3622
|
placeholder: "Create a secure password",
|
|
3629
3623
|
value: w.password,
|
|
3630
|
-
onChange:
|
|
3624
|
+
onChange: z,
|
|
3631
3625
|
style: {
|
|
3632
3626
|
...H,
|
|
3633
3627
|
borderColor: j.password ? "#ef4444" : T
|
|
@@ -3650,7 +3644,7 @@ const Ns = [
|
|
|
3650
3644
|
cursor: "pointer",
|
|
3651
3645
|
padding: "4px"
|
|
3652
3646
|
},
|
|
3653
|
-
children: I ? /* @__PURE__ */ r.jsx(
|
|
3647
|
+
children: I ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
|
|
3654
3648
|
}
|
|
3655
3649
|
)
|
|
3656
3650
|
] }),
|
|
@@ -3705,7 +3699,7 @@ const Ns = [
|
|
|
3705
3699
|
name: "avatarUrl",
|
|
3706
3700
|
placeholder: "Paste your avatar image URL",
|
|
3707
3701
|
value: w.avatarUrl || "",
|
|
3708
|
-
onChange:
|
|
3702
|
+
onChange: z,
|
|
3709
3703
|
style: H
|
|
3710
3704
|
}
|
|
3711
3705
|
)
|
|
@@ -3762,7 +3756,7 @@ const Ns = [
|
|
|
3762
3756
|
disabled: g,
|
|
3763
3757
|
style: {
|
|
3764
3758
|
padding: "12px",
|
|
3765
|
-
background:
|
|
3759
|
+
background: a,
|
|
3766
3760
|
color: "#fff",
|
|
3767
3761
|
border: "none",
|
|
3768
3762
|
borderRadius: "10px",
|
|
@@ -3825,8 +3819,8 @@ const Ns = [
|
|
|
3825
3819
|
title: n = "Sign In to Your Account",
|
|
3826
3820
|
subtitle: s = "Welcome back! Please enter your details",
|
|
3827
3821
|
primaryColor: i = "#00C214",
|
|
3828
|
-
gradient:
|
|
3829
|
-
darkMode:
|
|
3822
|
+
gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3823
|
+
darkMode: o = !0,
|
|
3830
3824
|
signupUrl: c,
|
|
3831
3825
|
onSuccess: d,
|
|
3832
3826
|
onError: x
|
|
@@ -3835,7 +3829,7 @@ const Ns = [
|
|
|
3835
3829
|
email: "",
|
|
3836
3830
|
otp: "",
|
|
3837
3831
|
newPassword: ""
|
|
3838
|
-
}), [W, R] = P(!1), G =
|
|
3832
|
+
}), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", z = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", M = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
|
|
3839
3833
|
Ce.useEffect(() => {
|
|
3840
3834
|
if (typeof window < "u") {
|
|
3841
3835
|
const m = () => R(window.innerWidth < 768);
|
|
@@ -3849,8 +3843,8 @@ const Ns = [
|
|
|
3849
3843
|
if (!D)
|
|
3850
3844
|
throw new Error(S.message || "Login failed");
|
|
3851
3845
|
if (typeof document < "u") {
|
|
3852
|
-
const ne = "a_s_b",
|
|
3853
|
-
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${
|
|
3846
|
+
const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
|
|
3847
|
+
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
|
|
3854
3848
|
}
|
|
3855
3849
|
U({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
|
|
3856
3850
|
} catch (S) {
|
|
@@ -3905,7 +3899,7 @@ const Ns = [
|
|
|
3905
3899
|
}, l = {
|
|
3906
3900
|
width: "100%",
|
|
3907
3901
|
padding: W ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
|
|
3908
|
-
backgroundColor:
|
|
3902
|
+
backgroundColor: z,
|
|
3909
3903
|
border: `1px solid ${M}`,
|
|
3910
3904
|
borderRadius: "10px",
|
|
3911
3905
|
color: G,
|
|
@@ -3932,7 +3926,7 @@ const Ns = [
|
|
|
3932
3926
|
flexDirection: "column",
|
|
3933
3927
|
borderRadius: "10px",
|
|
3934
3928
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3935
|
-
backgroundColor:
|
|
3929
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3936
3930
|
padding: W ? "30px 24px" : "18px 28px"
|
|
3937
3931
|
},
|
|
3938
3932
|
children: [
|
|
@@ -4012,7 +4006,7 @@ const Ns = [
|
|
|
4012
4006
|
style: {
|
|
4013
4007
|
fontSize: "14px",
|
|
4014
4008
|
fontWeight: 500,
|
|
4015
|
-
color:
|
|
4009
|
+
color: o ? "#ffffff" : "#000000"
|
|
4016
4010
|
},
|
|
4017
4011
|
children: "Email Address"
|
|
4018
4012
|
}
|
|
@@ -4058,7 +4052,7 @@ const Ns = [
|
|
|
4058
4052
|
style: {
|
|
4059
4053
|
fontSize: "14px",
|
|
4060
4054
|
fontWeight: 500,
|
|
4061
|
-
color:
|
|
4055
|
+
color: o ? "#ffffff" : "#000000"
|
|
4062
4056
|
},
|
|
4063
4057
|
children: "Password"
|
|
4064
4058
|
}
|
|
@@ -4104,7 +4098,7 @@ const Ns = [
|
|
|
4104
4098
|
color: T,
|
|
4105
4099
|
cursor: "pointer"
|
|
4106
4100
|
},
|
|
4107
|
-
children: w ? /* @__PURE__ */ r.jsx(
|
|
4101
|
+
children: w ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
|
|
4108
4102
|
}
|
|
4109
4103
|
)
|
|
4110
4104
|
] })
|
|
@@ -4157,7 +4151,7 @@ const Ns = [
|
|
|
4157
4151
|
disabled: I,
|
|
4158
4152
|
style: {
|
|
4159
4153
|
padding: "12px",
|
|
4160
|
-
background:
|
|
4154
|
+
background: a,
|
|
4161
4155
|
color: "#fff",
|
|
4162
4156
|
border: "none",
|
|
4163
4157
|
borderRadius: "10px",
|
|
@@ -4188,7 +4182,7 @@ const Ns = [
|
|
|
4188
4182
|
style: {
|
|
4189
4183
|
fontSize: "14px",
|
|
4190
4184
|
fontWeight: 500,
|
|
4191
|
-
color:
|
|
4185
|
+
color: o ? "#ffffff" : "#000000"
|
|
4192
4186
|
},
|
|
4193
4187
|
children: "Email Address"
|
|
4194
4188
|
}
|
|
@@ -4239,14 +4233,14 @@ const Ns = [
|
|
|
4239
4233
|
style: {
|
|
4240
4234
|
fontSize: "14px",
|
|
4241
4235
|
fontWeight: 500,
|
|
4242
|
-
color:
|
|
4236
|
+
color: o ? "#ffffff" : "#000000"
|
|
4243
4237
|
},
|
|
4244
4238
|
children: "One-Time Password (OTP)"
|
|
4245
4239
|
}
|
|
4246
4240
|
),
|
|
4247
4241
|
/* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
|
|
4248
4242
|
/* @__PURE__ */ r.jsx(
|
|
4249
|
-
|
|
4243
|
+
ar,
|
|
4250
4244
|
{
|
|
4251
4245
|
size: 20,
|
|
4252
4246
|
style: {
|
|
@@ -4290,7 +4284,7 @@ const Ns = [
|
|
|
4290
4284
|
style: {
|
|
4291
4285
|
fontSize: "14px",
|
|
4292
4286
|
fontWeight: 500,
|
|
4293
|
-
color:
|
|
4287
|
+
color: o ? "#ffffff" : "#000000"
|
|
4294
4288
|
},
|
|
4295
4289
|
children: "New Password"
|
|
4296
4290
|
}
|
|
@@ -4333,7 +4327,7 @@ const Ns = [
|
|
|
4333
4327
|
disabled: I,
|
|
4334
4328
|
style: {
|
|
4335
4329
|
padding: "12px",
|
|
4336
|
-
background:
|
|
4330
|
+
background: a,
|
|
4337
4331
|
color: "#fff",
|
|
4338
4332
|
border: "none",
|
|
4339
4333
|
fontSize: "14px",
|
|
@@ -4418,7 +4412,7 @@ const Ns = [
|
|
|
4418
4412
|
const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
|
|
4419
4413
|
s(c ? "authenticated" : "unauthenticated");
|
|
4420
4414
|
}, []);
|
|
4421
|
-
const i = (
|
|
4415
|
+
const i = (a) => typeof a == "function" ? a() : a;
|
|
4422
4416
|
return n === "loading" ? null : n === "unauthenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
4423
4417
|
}, fi = ({
|
|
4424
4418
|
children: t,
|
|
@@ -4431,7 +4425,7 @@ const Ns = [
|
|
|
4431
4425
|
const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
|
|
4432
4426
|
s(c ? "authenticated" : "unauthenticated");
|
|
4433
4427
|
}, []);
|
|
4434
|
-
const i = (
|
|
4428
|
+
const i = (a) => typeof a == "function" ? a() : a;
|
|
4435
4429
|
return n === "loading" ? null : n === "authenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
4436
4430
|
}, Ls = ({
|
|
4437
4431
|
isOpen: t,
|
|
@@ -4439,9 +4433,9 @@ const Ns = [
|
|
|
4439
4433
|
onSuccess: n,
|
|
4440
4434
|
onError: s,
|
|
4441
4435
|
userId: i,
|
|
4442
|
-
colors:
|
|
4436
|
+
colors: a
|
|
4443
4437
|
}) => {
|
|
4444
|
-
const
|
|
4438
|
+
const o = ge(), [c, d] = P(!1), [x, p] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
|
|
4445
4439
|
if (ee(() => {
|
|
4446
4440
|
if (typeof window > "u") return;
|
|
4447
4441
|
const g = () => {
|
|
@@ -4452,7 +4446,7 @@ const Ns = [
|
|
|
4452
4446
|
const w = async () => {
|
|
4453
4447
|
d(!0), k("processing");
|
|
4454
4448
|
try {
|
|
4455
|
-
const g = await
|
|
4449
|
+
const g = await o.deleteUser({
|
|
4456
4450
|
userId: i
|
|
4457
4451
|
});
|
|
4458
4452
|
g.success ? (n(g.message || "Account deleted successfully"), k("success"), setTimeout(() => {
|
|
@@ -4511,7 +4505,7 @@ const Ns = [
|
|
|
4511
4505
|
"h3",
|
|
4512
4506
|
{
|
|
4513
4507
|
style: {
|
|
4514
|
-
color:
|
|
4508
|
+
color: a.textPrimary,
|
|
4515
4509
|
margin: 0,
|
|
4516
4510
|
fontSize: "20px",
|
|
4517
4511
|
fontWeight: 700,
|
|
@@ -4531,7 +4525,7 @@ const Ns = [
|
|
|
4531
4525
|
style: {
|
|
4532
4526
|
background: "transparent",
|
|
4533
4527
|
border: "none",
|
|
4534
|
-
color:
|
|
4528
|
+
color: a.textTertiary,
|
|
4535
4529
|
cursor: "pointer",
|
|
4536
4530
|
padding: "8px",
|
|
4537
4531
|
borderRadius: "8px",
|
|
@@ -4544,10 +4538,10 @@ const Ns = [
|
|
|
4544
4538
|
transition: "all 0.2s ease"
|
|
4545
4539
|
},
|
|
4546
4540
|
onMouseOver: (g) => {
|
|
4547
|
-
g.currentTarget.style.backgroundColor =
|
|
4541
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
|
|
4548
4542
|
},
|
|
4549
4543
|
onMouseOut: (g) => {
|
|
4550
|
-
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color =
|
|
4544
|
+
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
|
|
4551
4545
|
},
|
|
4552
4546
|
children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
|
|
4553
4547
|
}
|
|
@@ -4562,8 +4556,8 @@ const Ns = [
|
|
|
4562
4556
|
display: "flex",
|
|
4563
4557
|
gap: "16px",
|
|
4564
4558
|
padding: "20px",
|
|
4565
|
-
background: `${
|
|
4566
|
-
border: `1px solid ${
|
|
4559
|
+
background: `${a.error}15`,
|
|
4560
|
+
border: `1px solid ${a.error}30`,
|
|
4567
4561
|
borderRadius: "12px",
|
|
4568
4562
|
marginBottom: "20px"
|
|
4569
4563
|
},
|
|
@@ -4572,12 +4566,12 @@ const Ns = [
|
|
|
4572
4566
|
"div",
|
|
4573
4567
|
{
|
|
4574
4568
|
style: {
|
|
4575
|
-
color:
|
|
4569
|
+
color: a.error,
|
|
4576
4570
|
flexShrink: 0,
|
|
4577
4571
|
display: "flex",
|
|
4578
4572
|
alignItems: "flex-start"
|
|
4579
4573
|
},
|
|
4580
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4574
|
+
children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
|
|
4581
4575
|
}
|
|
4582
4576
|
),
|
|
4583
4577
|
/* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
|
|
@@ -4585,7 +4579,7 @@ const Ns = [
|
|
|
4585
4579
|
"h4",
|
|
4586
4580
|
{
|
|
4587
4581
|
style: {
|
|
4588
|
-
color:
|
|
4582
|
+
color: a.textPrimary,
|
|
4589
4583
|
margin: "0 0 12px 0",
|
|
4590
4584
|
fontSize: "16px",
|
|
4591
4585
|
fontWeight: 600
|
|
@@ -4622,10 +4616,10 @@ const Ns = [
|
|
|
4622
4616
|
alignItems: "center",
|
|
4623
4617
|
gap: "10px",
|
|
4624
4618
|
fontSize: "14px",
|
|
4625
|
-
color:
|
|
4619
|
+
color: a.textSecondary
|
|
4626
4620
|
},
|
|
4627
4621
|
children: [
|
|
4628
|
-
/* @__PURE__ */ r.jsx("div", { style: { color:
|
|
4622
|
+
/* @__PURE__ */ r.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: g.icon }),
|
|
4629
4623
|
/* @__PURE__ */ r.jsx("span", { children: g.text })
|
|
4630
4624
|
]
|
|
4631
4625
|
},
|
|
@@ -4655,9 +4649,9 @@ const Ns = [
|
|
|
4655
4649
|
style: {
|
|
4656
4650
|
padding: "10px 24px",
|
|
4657
4651
|
borderRadius: "10px",
|
|
4658
|
-
border: `1.5px solid ${
|
|
4652
|
+
border: `1.5px solid ${a.border}`,
|
|
4659
4653
|
background: "transparent",
|
|
4660
|
-
color:
|
|
4654
|
+
color: a.textPrimary,
|
|
4661
4655
|
fontSize: "14px",
|
|
4662
4656
|
fontWeight: 500,
|
|
4663
4657
|
cursor: "pointer",
|
|
@@ -4666,7 +4660,7 @@ const Ns = [
|
|
|
4666
4660
|
transition: "all 0.2s ease"
|
|
4667
4661
|
},
|
|
4668
4662
|
onMouseOver: (g) => {
|
|
4669
|
-
g.currentTarget.style.backgroundColor =
|
|
4663
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
|
|
4670
4664
|
},
|
|
4671
4665
|
onMouseOut: (g) => {
|
|
4672
4666
|
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4738,14 +4732,14 @@ const Ns = [
|
|
|
4738
4732
|
color: "white",
|
|
4739
4733
|
flexShrink: 0
|
|
4740
4734
|
},
|
|
4741
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4735
|
+
children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
|
|
4742
4736
|
}
|
|
4743
4737
|
),
|
|
4744
4738
|
/* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
|
|
4745
4739
|
"h3",
|
|
4746
4740
|
{
|
|
4747
4741
|
style: {
|
|
4748
|
-
color:
|
|
4742
|
+
color: a.textPrimary,
|
|
4749
4743
|
margin: 0,
|
|
4750
4744
|
fontSize: "20px",
|
|
4751
4745
|
fontWeight: 700,
|
|
@@ -4762,7 +4756,7 @@ const Ns = [
|
|
|
4762
4756
|
"p",
|
|
4763
4757
|
{
|
|
4764
4758
|
style: {
|
|
4765
|
-
color:
|
|
4759
|
+
color: a.textSecondary,
|
|
4766
4760
|
marginBottom: "16px",
|
|
4767
4761
|
fontSize: "14px",
|
|
4768
4762
|
lineHeight: "1.5"
|
|
@@ -4770,7 +4764,7 @@ const Ns = [
|
|
|
4770
4764
|
children: [
|
|
4771
4765
|
"Type",
|
|
4772
4766
|
" ",
|
|
4773
|
-
/* @__PURE__ */ r.jsx("strong", { style: { color:
|
|
4767
|
+
/* @__PURE__ */ r.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
|
|
4774
4768
|
" ",
|
|
4775
4769
|
"to confirm:"
|
|
4776
4770
|
]
|
|
@@ -4787,16 +4781,16 @@ const Ns = [
|
|
|
4787
4781
|
width: "100%",
|
|
4788
4782
|
padding: "14px 16px",
|
|
4789
4783
|
borderRadius: "10px",
|
|
4790
|
-
border: `2px solid ${h ?
|
|
4784
|
+
border: `2px solid ${h ? a.success : a.error}`,
|
|
4791
4785
|
backgroundColor: "transparent",
|
|
4792
|
-
color:
|
|
4786
|
+
color: a.textPrimary,
|
|
4793
4787
|
fontSize: "15px",
|
|
4794
4788
|
outline: "none",
|
|
4795
4789
|
transition: "all 0.2s ease",
|
|
4796
4790
|
boxSizing: "border-box"
|
|
4797
4791
|
},
|
|
4798
4792
|
onFocus: (g) => {
|
|
4799
|
-
g.target.style.boxShadow = `0 0 0 3px ${
|
|
4793
|
+
g.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
4800
4794
|
},
|
|
4801
4795
|
onBlur: (g) => {
|
|
4802
4796
|
g.target.style.boxShadow = "none";
|
|
@@ -4812,7 +4806,7 @@ const Ns = [
|
|
|
4812
4806
|
alignItems: "center",
|
|
4813
4807
|
gap: "8px",
|
|
4814
4808
|
marginTop: "10px",
|
|
4815
|
-
color:
|
|
4809
|
+
color: a.success,
|
|
4816
4810
|
fontSize: "14px",
|
|
4817
4811
|
fontWeight: 500
|
|
4818
4812
|
},
|
|
@@ -4843,9 +4837,9 @@ const Ns = [
|
|
|
4843
4837
|
style: {
|
|
4844
4838
|
padding: "10px 24px",
|
|
4845
4839
|
borderRadius: "10px",
|
|
4846
|
-
border: `1.5px solid ${
|
|
4840
|
+
border: `1.5px solid ${a.border}`,
|
|
4847
4841
|
background: "transparent",
|
|
4848
|
-
color:
|
|
4842
|
+
color: a.textPrimary,
|
|
4849
4843
|
fontSize: "14px",
|
|
4850
4844
|
fontWeight: 500,
|
|
4851
4845
|
cursor: "pointer",
|
|
@@ -4854,7 +4848,7 @@ const Ns = [
|
|
|
4854
4848
|
transition: "all 0.2s ease"
|
|
4855
4849
|
},
|
|
4856
4850
|
onMouseOver: (g) => {
|
|
4857
|
-
g.currentTarget.style.backgroundColor =
|
|
4851
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
|
|
4858
4852
|
},
|
|
4859
4853
|
onMouseOut: (g) => {
|
|
4860
4854
|
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4944,7 +4938,7 @@ const Ns = [
|
|
|
4944
4938
|
"h3",
|
|
4945
4939
|
{
|
|
4946
4940
|
style: {
|
|
4947
|
-
color:
|
|
4941
|
+
color: a.textPrimary,
|
|
4948
4942
|
margin: 0,
|
|
4949
4943
|
fontSize: "20px",
|
|
4950
4944
|
fontWeight: 700,
|
|
@@ -4957,7 +4951,7 @@ const Ns = [
|
|
|
4957
4951
|
"p",
|
|
4958
4952
|
{
|
|
4959
4953
|
style: {
|
|
4960
|
-
color:
|
|
4954
|
+
color: a.textTertiary,
|
|
4961
4955
|
margin: "4px 0 0 0",
|
|
4962
4956
|
fontSize: "14px",
|
|
4963
4957
|
lineHeight: "1.4"
|
|
@@ -4991,7 +4985,7 @@ const Ns = [
|
|
|
4991
4985
|
padding: "12px",
|
|
4992
4986
|
borderRadius: "8px",
|
|
4993
4987
|
transition: "all 0.2s ease",
|
|
4994
|
-
backgroundColor: g.active ? `${
|
|
4988
|
+
backgroundColor: g.active ? `${a.accent}10` : "transparent"
|
|
4995
4989
|
},
|
|
4996
4990
|
children: [
|
|
4997
4991
|
/* @__PURE__ */ r.jsx(
|
|
@@ -5001,9 +4995,9 @@ const Ns = [
|
|
|
5001
4995
|
width: "8px",
|
|
5002
4996
|
height: "8px",
|
|
5003
4997
|
borderRadius: "50%",
|
|
5004
|
-
backgroundColor: g.active ?
|
|
4998
|
+
backgroundColor: g.active ? a.accent : a.textTertiary,
|
|
5005
4999
|
transition: "all 0.3s ease",
|
|
5006
|
-
boxShadow: g.active ? `0 0 0 4px ${
|
|
5000
|
+
boxShadow: g.active ? `0 0 0 4px ${a.accent}20` : "none"
|
|
5007
5001
|
}
|
|
5008
5002
|
}
|
|
5009
5003
|
),
|
|
@@ -5012,7 +5006,7 @@ const Ns = [
|
|
|
5012
5006
|
{
|
|
5013
5007
|
style: {
|
|
5014
5008
|
fontSize: "14px",
|
|
5015
|
-
color: g.active ?
|
|
5009
|
+
color: g.active ? a.textPrimary : a.textSecondary,
|
|
5016
5010
|
fontWeight: g.active ? 500 : 400
|
|
5017
5011
|
},
|
|
5018
5012
|
children: g.text
|
|
@@ -5032,17 +5026,17 @@ const Ns = [
|
|
|
5032
5026
|
alignItems: "center",
|
|
5033
5027
|
gap: "10px",
|
|
5034
5028
|
padding: "16px",
|
|
5035
|
-
background: `${
|
|
5029
|
+
background: `${a.accent}10`,
|
|
5036
5030
|
borderRadius: "10px",
|
|
5037
5031
|
fontSize: "14px",
|
|
5038
|
-
color:
|
|
5032
|
+
color: a.textSecondary
|
|
5039
5033
|
},
|
|
5040
5034
|
children: [
|
|
5041
5035
|
/* @__PURE__ */ r.jsx(
|
|
5042
5036
|
rt,
|
|
5043
5037
|
{
|
|
5044
5038
|
size: 18,
|
|
5045
|
-
style: { color:
|
|
5039
|
+
style: { color: a.accent, flexShrink: 0 }
|
|
5046
5040
|
}
|
|
5047
5041
|
),
|
|
5048
5042
|
/* @__PURE__ */ r.jsx("span", { children: "You will be redirected to the login page shortly" })
|
|
@@ -5084,7 +5078,7 @@ const Ns = [
|
|
|
5084
5078
|
"h3",
|
|
5085
5079
|
{
|
|
5086
5080
|
style: {
|
|
5087
|
-
color:
|
|
5081
|
+
color: a.textPrimary,
|
|
5088
5082
|
margin: 0,
|
|
5089
5083
|
fontSize: "20px",
|
|
5090
5084
|
fontWeight: 700,
|
|
@@ -5097,7 +5091,7 @@ const Ns = [
|
|
|
5097
5091
|
"p",
|
|
5098
5092
|
{
|
|
5099
5093
|
style: {
|
|
5100
|
-
color:
|
|
5094
|
+
color: a.textTertiary,
|
|
5101
5095
|
margin: "4px 0 0 0",
|
|
5102
5096
|
fontSize: "14px",
|
|
5103
5097
|
lineHeight: "1.4"
|
|
@@ -5115,8 +5109,8 @@ const Ns = [
|
|
|
5115
5109
|
style: {
|
|
5116
5110
|
textAlign: "center",
|
|
5117
5111
|
padding: "20px",
|
|
5118
|
-
background: `${
|
|
5119
|
-
border: `1px solid ${
|
|
5112
|
+
background: `${a.success}10`,
|
|
5113
|
+
border: `1px solid ${a.success}20`,
|
|
5120
5114
|
borderRadius: "12px",
|
|
5121
5115
|
marginBottom: "24px"
|
|
5122
5116
|
},
|
|
@@ -5126,7 +5120,7 @@ const Ns = [
|
|
|
5126
5120
|
{
|
|
5127
5121
|
size: 48,
|
|
5128
5122
|
style: {
|
|
5129
|
-
color:
|
|
5123
|
+
color: a.success,
|
|
5130
5124
|
marginBottom: "12px",
|
|
5131
5125
|
display: "block",
|
|
5132
5126
|
margin: "0 auto 12px auto"
|
|
@@ -5137,7 +5131,7 @@ const Ns = [
|
|
|
5137
5131
|
"p",
|
|
5138
5132
|
{
|
|
5139
5133
|
style: {
|
|
5140
|
-
color:
|
|
5134
|
+
color: a.textPrimary,
|
|
5141
5135
|
fontSize: "16px",
|
|
5142
5136
|
fontWeight: 600,
|
|
5143
5137
|
margin: "0 0 8px 0"
|
|
@@ -5149,7 +5143,7 @@ const Ns = [
|
|
|
5149
5143
|
"p",
|
|
5150
5144
|
{
|
|
5151
5145
|
style: {
|
|
5152
|
-
color:
|
|
5146
|
+
color: a.textSecondary,
|
|
5153
5147
|
fontSize: "14px",
|
|
5154
5148
|
margin: 0,
|
|
5155
5149
|
lineHeight: "1.5"
|
|
@@ -5168,10 +5162,10 @@ const Ns = [
|
|
|
5168
5162
|
alignItems: "center",
|
|
5169
5163
|
gap: "10px",
|
|
5170
5164
|
padding: "16px",
|
|
5171
|
-
background: `${
|
|
5165
|
+
background: `${a.accent}10`,
|
|
5172
5166
|
borderRadius: "10px",
|
|
5173
5167
|
fontSize: "14px",
|
|
5174
|
-
color:
|
|
5168
|
+
color: a.textSecondary,
|
|
5175
5169
|
justifyContent: "center"
|
|
5176
5170
|
},
|
|
5177
5171
|
children: [
|
|
@@ -5181,7 +5175,7 @@ const Ns = [
|
|
|
5181
5175
|
size: 16,
|
|
5182
5176
|
style: {
|
|
5183
5177
|
animation: "spin 1s linear infinite",
|
|
5184
|
-
color:
|
|
5178
|
+
color: a.accent
|
|
5185
5179
|
}
|
|
5186
5180
|
}
|
|
5187
5181
|
),
|
|
@@ -5213,8 +5207,8 @@ const Ns = [
|
|
|
5213
5207
|
"div",
|
|
5214
5208
|
{
|
|
5215
5209
|
style: {
|
|
5216
|
-
backgroundColor:
|
|
5217
|
-
border: `1px solid ${
|
|
5210
|
+
backgroundColor: a.surface,
|
|
5211
|
+
border: `1px solid ${a.border}`,
|
|
5218
5212
|
borderRadius: "20px",
|
|
5219
5213
|
width: "100%",
|
|
5220
5214
|
maxWidth: "480px",
|
|
@@ -5290,7 +5284,7 @@ const Ns = [
|
|
|
5290
5284
|
onUpdate: n,
|
|
5291
5285
|
colors: s
|
|
5292
5286
|
}) => {
|
|
5293
|
-
const [i,
|
|
5287
|
+
const [i, a] = P(""), [o, c] = P(!1), [d, x] = P(!1), [p, y] = P({ isValid: !1, message: "", type: null });
|
|
5294
5288
|
if (ee(() => {
|
|
5295
5289
|
if (typeof window > "u") return;
|
|
5296
5290
|
const u = () => {
|
|
@@ -5325,7 +5319,7 @@ const Ns = [
|
|
|
5325
5319
|
if (!(!i || !p.isValid)) {
|
|
5326
5320
|
c(!0);
|
|
5327
5321
|
try {
|
|
5328
|
-
await n(i) && (
|
|
5322
|
+
await n(i) && (a(""), e());
|
|
5329
5323
|
} finally {
|
|
5330
5324
|
c(!1);
|
|
5331
5325
|
}
|
|
@@ -5487,7 +5481,7 @@ const Ns = [
|
|
|
5487
5481
|
id: "avatar-url",
|
|
5488
5482
|
placeholder: "https://example.com/your-avatar.jpg",
|
|
5489
5483
|
value: i,
|
|
5490
|
-
onChange: (u) =>
|
|
5484
|
+
onChange: (u) => a(u.target.value),
|
|
5491
5485
|
style: {
|
|
5492
5486
|
width: "100%",
|
|
5493
5487
|
padding: "14px 16px",
|
|
@@ -5507,7 +5501,7 @@ const Ns = [
|
|
|
5507
5501
|
onBlur: (u) => {
|
|
5508
5502
|
u.target.style.borderColor = p.type === "error" ? s.error : p.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
|
|
5509
5503
|
},
|
|
5510
|
-
disabled:
|
|
5504
|
+
disabled: o
|
|
5511
5505
|
}
|
|
5512
5506
|
),
|
|
5513
5507
|
/* @__PURE__ */ r.jsx(
|
|
@@ -5607,7 +5601,7 @@ const Ns = [
|
|
|
5607
5601
|
"button",
|
|
5608
5602
|
{
|
|
5609
5603
|
onClick: e,
|
|
5610
|
-
disabled:
|
|
5604
|
+
disabled: o,
|
|
5611
5605
|
style: {
|
|
5612
5606
|
padding: "10px 24px",
|
|
5613
5607
|
borderRadius: "10px",
|
|
@@ -5616,17 +5610,17 @@ const Ns = [
|
|
|
5616
5610
|
color: s.textPrimary,
|
|
5617
5611
|
fontSize: "14px",
|
|
5618
5612
|
fontWeight: 500,
|
|
5619
|
-
cursor:
|
|
5613
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
5620
5614
|
flex: d ? "none" : 1,
|
|
5621
5615
|
minWidth: d ? "100%" : "120px",
|
|
5622
|
-
opacity:
|
|
5616
|
+
opacity: o ? 0.6 : 1,
|
|
5623
5617
|
transition: "all 0.2s ease"
|
|
5624
5618
|
},
|
|
5625
5619
|
onMouseOver: (u) => {
|
|
5626
|
-
|
|
5620
|
+
o || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
|
|
5627
5621
|
},
|
|
5628
5622
|
onMouseOut: (u) => {
|
|
5629
|
-
|
|
5623
|
+
o || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
|
|
5630
5624
|
},
|
|
5631
5625
|
children: "Cancel"
|
|
5632
5626
|
}
|
|
@@ -5635,7 +5629,7 @@ const Ns = [
|
|
|
5635
5629
|
"button",
|
|
5636
5630
|
{
|
|
5637
5631
|
onClick: k,
|
|
5638
|
-
disabled:
|
|
5632
|
+
disabled: o || !p.isValid,
|
|
5639
5633
|
style: {
|
|
5640
5634
|
padding: "10px 24px",
|
|
5641
5635
|
borderRadius: "10px",
|
|
@@ -5644,24 +5638,24 @@ const Ns = [
|
|
|
5644
5638
|
color: "#fff",
|
|
5645
5639
|
fontSize: "14px",
|
|
5646
5640
|
fontWeight: 600,
|
|
5647
|
-
cursor:
|
|
5641
|
+
cursor: o || !p.isValid ? "not-allowed" : "pointer",
|
|
5648
5642
|
flex: d ? "none" : 1,
|
|
5649
5643
|
minWidth: d ? "100%" : "140px",
|
|
5650
|
-
opacity:
|
|
5644
|
+
opacity: o || !p.isValid ? 0.6 : 1,
|
|
5651
5645
|
display: "flex",
|
|
5652
5646
|
alignItems: "center",
|
|
5653
5647
|
justifyContent: "center",
|
|
5654
5648
|
gap: "8px",
|
|
5655
5649
|
transition: "all 0.2s ease",
|
|
5656
|
-
boxShadow:
|
|
5650
|
+
boxShadow: o || !p.isValid ? "none" : `0 4px 12px ${s.accent}40`
|
|
5657
5651
|
},
|
|
5658
5652
|
onMouseOver: (u) => {
|
|
5659
|
-
!
|
|
5653
|
+
!o && p.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
|
|
5660
5654
|
},
|
|
5661
5655
|
onMouseOut: (u) => {
|
|
5662
|
-
!
|
|
5656
|
+
!o && p.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
|
|
5663
5657
|
},
|
|
5664
|
-
children:
|
|
5658
|
+
children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
5665
5659
|
/* @__PURE__ */ r.jsx(
|
|
5666
5660
|
se,
|
|
5667
5661
|
{
|
|
@@ -5742,9 +5736,9 @@ const Ns = [
|
|
|
5742
5736
|
onSuccess: n,
|
|
5743
5737
|
onError: s,
|
|
5744
5738
|
userId: i,
|
|
5745
|
-
colors:
|
|
5739
|
+
colors: a
|
|
5746
5740
|
}) => {
|
|
5747
|
-
const
|
|
5741
|
+
const o = ge(), [c, d] = P({
|
|
5748
5742
|
currentPassword: "",
|
|
5749
5743
|
newPassword: "",
|
|
5750
5744
|
confirmPassword: ""
|
|
@@ -5772,7 +5766,7 @@ const Ns = [
|
|
|
5772
5766
|
if (b.preventDefault(), !!g()) {
|
|
5773
5767
|
k(!0);
|
|
5774
5768
|
try {
|
|
5775
|
-
const { data: j } = await
|
|
5769
|
+
const { data: j } = await o.changePassword({
|
|
5776
5770
|
currentPassword: c.currentPassword,
|
|
5777
5771
|
newPassword: c.newPassword,
|
|
5778
5772
|
userId: i
|
|
@@ -5823,8 +5817,8 @@ const Ns = [
|
|
|
5823
5817
|
"div",
|
|
5824
5818
|
{
|
|
5825
5819
|
style: {
|
|
5826
|
-
backgroundColor:
|
|
5827
|
-
border: `1px solid ${
|
|
5820
|
+
backgroundColor: a.surface,
|
|
5821
|
+
border: `1px solid ${a.border}`,
|
|
5828
5822
|
borderRadius: "16px",
|
|
5829
5823
|
maxWidth: "440px",
|
|
5830
5824
|
width: "100%",
|
|
@@ -5863,11 +5857,11 @@ const Ns = [
|
|
|
5863
5857
|
width: "40px",
|
|
5864
5858
|
height: "40px",
|
|
5865
5859
|
borderRadius: "10px",
|
|
5866
|
-
background: `linear-gradient(135deg, ${
|
|
5860
|
+
background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
|
|
5867
5861
|
display: "flex",
|
|
5868
5862
|
alignItems: "center",
|
|
5869
5863
|
justifyContent: "center",
|
|
5870
|
-
color:
|
|
5864
|
+
color: a.accent,
|
|
5871
5865
|
flexShrink: 0
|
|
5872
5866
|
},
|
|
5873
5867
|
children: /* @__PURE__ */ r.jsx(be, { size: 20 })
|
|
@@ -5877,7 +5871,7 @@ const Ns = [
|
|
|
5877
5871
|
"h3",
|
|
5878
5872
|
{
|
|
5879
5873
|
style: {
|
|
5880
|
-
color:
|
|
5874
|
+
color: a.textPrimary,
|
|
5881
5875
|
margin: 0,
|
|
5882
5876
|
fontSize: "18px",
|
|
5883
5877
|
fontWeight: 600,
|
|
@@ -5897,7 +5891,7 @@ const Ns = [
|
|
|
5897
5891
|
style: {
|
|
5898
5892
|
background: "transparent",
|
|
5899
5893
|
border: "none",
|
|
5900
|
-
color:
|
|
5894
|
+
color: a.textTertiary,
|
|
5901
5895
|
cursor: "pointer",
|
|
5902
5896
|
padding: "8px",
|
|
5903
5897
|
borderRadius: "8px",
|
|
@@ -5909,10 +5903,10 @@ const Ns = [
|
|
|
5909
5903
|
justifyContent: "center"
|
|
5910
5904
|
},
|
|
5911
5905
|
onMouseOver: (b) => {
|
|
5912
|
-
b.currentTarget.style.backgroundColor =
|
|
5906
|
+
b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.color = a.textPrimary;
|
|
5913
5907
|
},
|
|
5914
5908
|
onMouseOut: (b) => {
|
|
5915
|
-
b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color =
|
|
5909
|
+
b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = a.textTertiary;
|
|
5916
5910
|
},
|
|
5917
5911
|
children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
|
|
5918
5912
|
}
|
|
@@ -5936,7 +5930,7 @@ const Ns = [
|
|
|
5936
5930
|
style: {
|
|
5937
5931
|
display: "block",
|
|
5938
5932
|
marginBottom: "8px",
|
|
5939
|
-
color:
|
|
5933
|
+
color: a.textPrimary,
|
|
5940
5934
|
fontSize: "14px",
|
|
5941
5935
|
fontWeight: 500,
|
|
5942
5936
|
lineHeight: "1.4"
|
|
@@ -5953,7 +5947,7 @@ const Ns = [
|
|
|
5953
5947
|
left: "14px",
|
|
5954
5948
|
top: "50%",
|
|
5955
5949
|
transform: "translateY(-50%)",
|
|
5956
|
-
color:
|
|
5950
|
+
color: a.textTertiary,
|
|
5957
5951
|
zIndex: 2
|
|
5958
5952
|
},
|
|
5959
5953
|
children: q
|
|
@@ -5972,19 +5966,19 @@ const Ns = [
|
|
|
5972
5966
|
width: "100%",
|
|
5973
5967
|
padding: "14px 48px 14px 44px",
|
|
5974
5968
|
borderRadius: "10px",
|
|
5975
|
-
border: `1.5px solid ${x[b] ?
|
|
5969
|
+
border: `1.5px solid ${x[b] ? a.error : a.border}`,
|
|
5976
5970
|
backgroundColor: "transparent",
|
|
5977
|
-
color:
|
|
5971
|
+
color: a.textPrimary,
|
|
5978
5972
|
fontSize: "15px",
|
|
5979
5973
|
outline: "none",
|
|
5980
5974
|
transition: "all 0.2s ease",
|
|
5981
5975
|
boxSizing: "border-box"
|
|
5982
5976
|
},
|
|
5983
5977
|
onFocus: (O) => {
|
|
5984
|
-
O.target.style.borderColor =
|
|
5978
|
+
O.target.style.borderColor = a.accent, O.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
5985
5979
|
},
|
|
5986
5980
|
onBlur: (O) => {
|
|
5987
|
-
O.target.style.borderColor = x[b] ?
|
|
5981
|
+
O.target.style.borderColor = x[b] ? a.error : a.border, O.target.style.boxShadow = "none";
|
|
5988
5982
|
}
|
|
5989
5983
|
}
|
|
5990
5984
|
),
|
|
@@ -6001,7 +5995,7 @@ const Ns = [
|
|
|
6001
5995
|
background: "transparent",
|
|
6002
5996
|
border: "none",
|
|
6003
5997
|
cursor: "pointer",
|
|
6004
|
-
color:
|
|
5998
|
+
color: a.textTertiary,
|
|
6005
5999
|
padding: "4px",
|
|
6006
6000
|
borderRadius: "4px",
|
|
6007
6001
|
width: "32px",
|
|
@@ -6011,12 +6005,12 @@ const Ns = [
|
|
|
6011
6005
|
justifyContent: "center"
|
|
6012
6006
|
},
|
|
6013
6007
|
onMouseOver: (O) => {
|
|
6014
|
-
O.currentTarget.style.backgroundColor =
|
|
6008
|
+
O.currentTarget.style.backgroundColor = a.border, O.currentTarget.style.color = a.textPrimary;
|
|
6015
6009
|
},
|
|
6016
6010
|
onMouseOut: (O) => {
|
|
6017
|
-
O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color =
|
|
6011
|
+
O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
|
|
6018
6012
|
},
|
|
6019
|
-
children: E[b] ? /* @__PURE__ */ r.jsx(
|
|
6013
|
+
children: E[b] ? /* @__PURE__ */ r.jsx(at, { size: 18 }) : /* @__PURE__ */ r.jsx(ot, { size: 18 })
|
|
6020
6014
|
}
|
|
6021
6015
|
)
|
|
6022
6016
|
] }),
|
|
@@ -6025,7 +6019,7 @@ const Ns = [
|
|
|
6025
6019
|
{
|
|
6026
6020
|
style: {
|
|
6027
6021
|
fontSize: "13px",
|
|
6028
|
-
color:
|
|
6022
|
+
color: a.error,
|
|
6029
6023
|
marginTop: "6px",
|
|
6030
6024
|
display: "flex",
|
|
6031
6025
|
alignItems: "center",
|
|
@@ -6061,9 +6055,9 @@ const Ns = [
|
|
|
6061
6055
|
style: {
|
|
6062
6056
|
padding: "14px 24px",
|
|
6063
6057
|
borderRadius: "10px",
|
|
6064
|
-
border: `1.5px solid ${
|
|
6058
|
+
border: `1.5px solid ${a.border}`,
|
|
6065
6059
|
background: "transparent",
|
|
6066
|
-
color:
|
|
6060
|
+
color: a.textPrimary,
|
|
6067
6061
|
fontSize: "14px",
|
|
6068
6062
|
fontWeight: 500,
|
|
6069
6063
|
cursor: y ? "not-allowed" : "pointer",
|
|
@@ -6073,7 +6067,7 @@ const Ns = [
|
|
|
6073
6067
|
transition: "all 0.2s ease"
|
|
6074
6068
|
},
|
|
6075
6069
|
onMouseOver: (b) => {
|
|
6076
|
-
y || (b.currentTarget.style.backgroundColor =
|
|
6070
|
+
y || (b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.transform = "translateY(-1px)");
|
|
6077
6071
|
},
|
|
6078
6072
|
onMouseOut: (b) => {
|
|
6079
6073
|
y || (b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.transform = "translateY(0)");
|
|
@@ -6090,7 +6084,7 @@ const Ns = [
|
|
|
6090
6084
|
padding: "14px 24px",
|
|
6091
6085
|
borderRadius: "10px",
|
|
6092
6086
|
border: "none",
|
|
6093
|
-
background: `linear-gradient(135deg, ${
|
|
6087
|
+
background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
|
|
6094
6088
|
color: "#fff",
|
|
6095
6089
|
fontSize: "14px",
|
|
6096
6090
|
fontWeight: 600,
|
|
@@ -6103,13 +6097,13 @@ const Ns = [
|
|
|
6103
6097
|
justifyContent: "center",
|
|
6104
6098
|
gap: "8px",
|
|
6105
6099
|
transition: "all 0.2s ease",
|
|
6106
|
-
boxShadow: y ? "none" : `0 4px 12px ${
|
|
6100
|
+
boxShadow: y ? "none" : `0 4px 12px ${a.accent}40`
|
|
6107
6101
|
},
|
|
6108
6102
|
onMouseOver: (b) => {
|
|
6109
|
-
y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${
|
|
6103
|
+
y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
|
|
6110
6104
|
},
|
|
6111
6105
|
onMouseOut: (b) => {
|
|
6112
|
-
y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${
|
|
6106
|
+
y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
|
|
6113
6107
|
},
|
|
6114
6108
|
children: y ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
6115
6109
|
/* @__PURE__ */ r.jsx(
|
|
@@ -6144,12 +6138,12 @@ const Ns = [
|
|
|
6144
6138
|
}
|
|
6145
6139
|
|
|
6146
6140
|
.change-password-modal::-webkit-scrollbar-thumb {
|
|
6147
|
-
background: ${
|
|
6141
|
+
background: ${a.border};
|
|
6148
6142
|
border-radius: 3px;
|
|
6149
6143
|
}
|
|
6150
6144
|
|
|
6151
6145
|
.change-password-modal::-webkit-scrollbar-thumb:hover {
|
|
6152
|
-
background: ${
|
|
6146
|
+
background: ${a.textTertiary};
|
|
6153
6147
|
}
|
|
6154
6148
|
|
|
6155
6149
|
/* Mobile responsiveness */
|
|
@@ -6179,8 +6173,8 @@ const Ns = [
|
|
|
6179
6173
|
onVerify: n,
|
|
6180
6174
|
onSendOTP: s,
|
|
6181
6175
|
verifyFormData: i,
|
|
6182
|
-
setVerifyFormData:
|
|
6183
|
-
otpSent:
|
|
6176
|
+
setVerifyFormData: a,
|
|
6177
|
+
otpSent: o,
|
|
6184
6178
|
verifying: c,
|
|
6185
6179
|
user: d,
|
|
6186
6180
|
colors: x,
|
|
@@ -6188,7 +6182,7 @@ const Ns = [
|
|
|
6188
6182
|
}) => {
|
|
6189
6183
|
if (!t) return null;
|
|
6190
6184
|
const y = () => {
|
|
6191
|
-
e(),
|
|
6185
|
+
e(), a({ email: d?.email || "", otp: "" });
|
|
6192
6186
|
};
|
|
6193
6187
|
return /* @__PURE__ */ r.jsxs(
|
|
6194
6188
|
"div",
|
|
@@ -6237,7 +6231,7 @@ const Ns = [
|
|
|
6237
6231
|
{
|
|
6238
6232
|
type: "email",
|
|
6239
6233
|
value: i.email,
|
|
6240
|
-
onChange: (k) =>
|
|
6234
|
+
onChange: (k) => a((E) => ({
|
|
6241
6235
|
...E,
|
|
6242
6236
|
email: k.target.value
|
|
6243
6237
|
})),
|
|
@@ -6254,11 +6248,11 @@ const Ns = [
|
|
|
6254
6248
|
)
|
|
6255
6249
|
] })
|
|
6256
6250
|
] }),
|
|
6257
|
-
|
|
6251
|
+
o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
|
|
6258
6252
|
/* @__PURE__ */ r.jsx("label", { style: { color: x.textSecondary }, children: "OTP" }),
|
|
6259
6253
|
/* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
|
|
6260
6254
|
/* @__PURE__ */ r.jsx(
|
|
6261
|
-
|
|
6255
|
+
ar,
|
|
6262
6256
|
{
|
|
6263
6257
|
size: 18,
|
|
6264
6258
|
style: { color: x.textTertiary },
|
|
@@ -6270,7 +6264,7 @@ const Ns = [
|
|
|
6270
6264
|
{
|
|
6271
6265
|
type: "text",
|
|
6272
6266
|
value: i.otp,
|
|
6273
|
-
onChange: (k) =>
|
|
6267
|
+
onChange: (k) => a((E) => ({
|
|
6274
6268
|
...E,
|
|
6275
6269
|
otp: k.target.value
|
|
6276
6270
|
})),
|
|
@@ -6287,7 +6281,7 @@ const Ns = [
|
|
|
6287
6281
|
)
|
|
6288
6282
|
] })
|
|
6289
6283
|
] }),
|
|
6290
|
-
/* @__PURE__ */ r.jsx("div", { className: "modal-actions", children:
|
|
6284
|
+
/* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ r.jsxs(
|
|
6291
6285
|
"button",
|
|
6292
6286
|
{
|
|
6293
6287
|
type: "submit",
|
|
@@ -6483,7 +6477,7 @@ const Ns = [
|
|
|
6483
6477
|
onVerify: s,
|
|
6484
6478
|
primaryColor: i = "#00C212"
|
|
6485
6479
|
}) => {
|
|
6486
|
-
const
|
|
6480
|
+
const a = ge(), [o, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
|
|
6487
6481
|
email: "",
|
|
6488
6482
|
otp: ""
|
|
6489
6483
|
}), [H, L] = P(!1), [Y, l] = P(!1);
|
|
@@ -6522,7 +6516,7 @@ const Ns = [
|
|
|
6522
6516
|
}
|
|
6523
6517
|
try {
|
|
6524
6518
|
l(!0);
|
|
6525
|
-
const v = await
|
|
6519
|
+
const v = await a.requestEmailVerificationOTP({
|
|
6526
6520
|
userId: d.id,
|
|
6527
6521
|
email: M.email
|
|
6528
6522
|
}), _ = v?.data?.success ?? v?.success, V = v?.data?.message ?? v?.message;
|
|
@@ -6544,7 +6538,7 @@ const Ns = [
|
|
|
6544
6538
|
}
|
|
6545
6539
|
try {
|
|
6546
6540
|
l(!0);
|
|
6547
|
-
const _ = await
|
|
6541
|
+
const _ = await a.verifyEmail({
|
|
6548
6542
|
email: M.email,
|
|
6549
6543
|
otp: M.otp
|
|
6550
6544
|
}), V = _?.data?.success ?? _?.success, Z = _?.data?.message ?? _?.message;
|
|
@@ -6560,10 +6554,10 @@ const Ns = [
|
|
|
6560
6554
|
} finally {
|
|
6561
6555
|
l(!1);
|
|
6562
6556
|
}
|
|
6563
|
-
},
|
|
6557
|
+
}, oe = async (v) => {
|
|
6564
6558
|
if (!d) return !1;
|
|
6565
6559
|
try {
|
|
6566
|
-
const _ = await
|
|
6560
|
+
const _ = await a.updateUser({
|
|
6567
6561
|
userId: d.id,
|
|
6568
6562
|
avatarUrl: v
|
|
6569
6563
|
});
|
|
@@ -6585,7 +6579,7 @@ const Ns = [
|
|
|
6585
6579
|
if (d) {
|
|
6586
6580
|
w(!0);
|
|
6587
6581
|
try {
|
|
6588
|
-
const v = d.email, _ = await
|
|
6582
|
+
const v = d.email, _ = await a.updateUser({
|
|
6589
6583
|
userId: d.id,
|
|
6590
6584
|
...d
|
|
6591
6585
|
});
|
|
@@ -6611,7 +6605,7 @@ const Ns = [
|
|
|
6611
6605
|
}
|
|
6612
6606
|
}, le = async (v) => {
|
|
6613
6607
|
try {
|
|
6614
|
-
const _ = await
|
|
6608
|
+
const _ = await a.checkIfUserExists(v);
|
|
6615
6609
|
_?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), x(null));
|
|
6616
6610
|
} catch (_) {
|
|
6617
6611
|
console.error("⚠️ User validation request failed:", _);
|
|
@@ -6621,9 +6615,9 @@ const Ns = [
|
|
|
6621
6615
|
(async () => {
|
|
6622
6616
|
try {
|
|
6623
6617
|
y(!0);
|
|
6624
|
-
const _ = await
|
|
6618
|
+
const _ = await a.checkUserSession();
|
|
6625
6619
|
if (_.user?.id) {
|
|
6626
|
-
const V = _.user.id, Z = await
|
|
6620
|
+
const V = _.user.id, Z = await a.getUserProfile({ userId: V });
|
|
6627
6621
|
if (Z.user) {
|
|
6628
6622
|
const de = Z.user;
|
|
6629
6623
|
x(de), le(V);
|
|
@@ -6643,7 +6637,7 @@ const Ns = [
|
|
|
6643
6637
|
const ye = (v, _) => {
|
|
6644
6638
|
let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
|
|
6645
6639
|
return Z = Math.min(255, Math.max(0, Z)), de = Math.min(255, Math.max(0, de)), Be = Math.min(255, Math.max(0, Be)), `#${(Be | de << 8 | Z << 16).toString(16).padStart(6, "0")}`;
|
|
6646
|
-
},
|
|
6640
|
+
}, A = t ? {
|
|
6647
6641
|
background: "#000000",
|
|
6648
6642
|
surface: "#09090b",
|
|
6649
6643
|
surfaceLight: "#27272a",
|
|
@@ -6682,7 +6676,7 @@ const Ns = [
|
|
|
6682
6676
|
display: "flex",
|
|
6683
6677
|
alignItems: "center",
|
|
6684
6678
|
justifyContent: "center",
|
|
6685
|
-
color:
|
|
6679
|
+
color: A.textPrimary,
|
|
6686
6680
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
|
|
6687
6681
|
},
|
|
6688
6682
|
children: /* @__PURE__ */ r.jsxs(
|
|
@@ -6700,12 +6694,12 @@ const Ns = [
|
|
|
6700
6694
|
se,
|
|
6701
6695
|
{
|
|
6702
6696
|
size: 40,
|
|
6703
|
-
color:
|
|
6697
|
+
color: A.accent,
|
|
6704
6698
|
style: { animation: "spin 1s linear infinite" },
|
|
6705
6699
|
"aria-hidden": "true"
|
|
6706
6700
|
}
|
|
6707
6701
|
),
|
|
6708
|
-
/* @__PURE__ */ r.jsx("p", { style: { color:
|
|
6702
|
+
/* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "Loading your profile..." })
|
|
6709
6703
|
]
|
|
6710
6704
|
}
|
|
6711
6705
|
)
|
|
@@ -6721,7 +6715,7 @@ const Ns = [
|
|
|
6721
6715
|
display: "flex",
|
|
6722
6716
|
alignItems: "center",
|
|
6723
6717
|
justifyContent: "center",
|
|
6724
|
-
color:
|
|
6718
|
+
color: A.textPrimary,
|
|
6725
6719
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
|
|
6726
6720
|
},
|
|
6727
6721
|
children: /* @__PURE__ */ r.jsxs(
|
|
@@ -6735,8 +6729,8 @@ const Ns = [
|
|
|
6735
6729
|
textAlign: "center"
|
|
6736
6730
|
},
|
|
6737
6731
|
children: [
|
|
6738
|
-
/* @__PURE__ */ r.jsx(ie, { size: 40, color:
|
|
6739
|
-
/* @__PURE__ */ r.jsx("p", { style: { color:
|
|
6732
|
+
/* @__PURE__ */ r.jsx(ie, { size: 40, color: A.error, "aria-hidden": "true" }),
|
|
6733
|
+
/* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
|
|
6740
6734
|
]
|
|
6741
6735
|
}
|
|
6742
6736
|
)
|
|
@@ -6796,7 +6790,7 @@ const Ns = [
|
|
|
6796
6790
|
display: "flex",
|
|
6797
6791
|
alignItems: "center",
|
|
6798
6792
|
justifyContent: "center",
|
|
6799
|
-
color:
|
|
6793
|
+
color: A.textPrimary,
|
|
6800
6794
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
6801
6795
|
lineHeight: 1.5,
|
|
6802
6796
|
minHeight: "80vh"
|
|
@@ -6856,14 +6850,14 @@ const Ns = [
|
|
|
6856
6850
|
display: "grid",
|
|
6857
6851
|
gap: "24px",
|
|
6858
6852
|
gridTemplateColumns: "1fr",
|
|
6859
|
-
...
|
|
6853
|
+
...o && window.innerWidth >= 1024 && {
|
|
6860
6854
|
gridTemplateColumns: "1fr 2fr",
|
|
6861
6855
|
gap: "10px"
|
|
6862
6856
|
},
|
|
6863
|
-
...
|
|
6857
|
+
...o && window.innerWidth >= 768 && o && window.innerWidth < 1024 && {
|
|
6864
6858
|
gap: "10px"
|
|
6865
6859
|
},
|
|
6866
|
-
...
|
|
6860
|
+
...o && window.innerWidth >= 600 && o && window.innerWidth < 768 && {
|
|
6867
6861
|
gap: "28px"
|
|
6868
6862
|
}
|
|
6869
6863
|
},
|
|
@@ -6882,7 +6876,7 @@ const Ns = [
|
|
|
6882
6876
|
"section",
|
|
6883
6877
|
{
|
|
6884
6878
|
style: {
|
|
6885
|
-
backgroundColor:
|
|
6879
|
+
backgroundColor: A.surface,
|
|
6886
6880
|
borderRadius: "16px",
|
|
6887
6881
|
position: "relative",
|
|
6888
6882
|
padding: "24px",
|
|
@@ -6936,7 +6930,7 @@ const Ns = [
|
|
|
6936
6930
|
borderRadius: "50%",
|
|
6937
6931
|
objectFit: "cover",
|
|
6938
6932
|
boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
|
|
6939
|
-
border: `3px solid ${
|
|
6933
|
+
border: `3px solid ${A.border}`
|
|
6940
6934
|
},
|
|
6941
6935
|
width: 128,
|
|
6942
6936
|
height: 128,
|
|
@@ -6951,7 +6945,7 @@ const Ns = [
|
|
|
6951
6945
|
position: "absolute",
|
|
6952
6946
|
bottom: "8px",
|
|
6953
6947
|
right: "8px",
|
|
6954
|
-
backgroundColor:
|
|
6948
|
+
backgroundColor: A.accent,
|
|
6955
6949
|
color: "white",
|
|
6956
6950
|
padding: "8px",
|
|
6957
6951
|
borderRadius: "50%",
|
|
@@ -6978,7 +6972,7 @@ const Ns = [
|
|
|
6978
6972
|
fontSize: "24px",
|
|
6979
6973
|
fontWeight: 600,
|
|
6980
6974
|
margin: "0 0 4px 0",
|
|
6981
|
-
color:
|
|
6975
|
+
color: A.textPrimary
|
|
6982
6976
|
},
|
|
6983
6977
|
children: d.name
|
|
6984
6978
|
}
|
|
@@ -6990,7 +6984,7 @@ const Ns = [
|
|
|
6990
6984
|
fontSize: "18px",
|
|
6991
6985
|
fontWeight: 600,
|
|
6992
6986
|
margin: "0 0 4px 0",
|
|
6993
|
-
color:
|
|
6987
|
+
color: A.textTertiary
|
|
6994
6988
|
},
|
|
6995
6989
|
children: [
|
|
6996
6990
|
"@",
|
|
@@ -7002,7 +6996,7 @@ const Ns = [
|
|
|
7002
6996
|
"p",
|
|
7003
6997
|
{
|
|
7004
6998
|
style: {
|
|
7005
|
-
color:
|
|
6999
|
+
color: A.textTertiary,
|
|
7006
7000
|
margin: "0 0 8px 0"
|
|
7007
7001
|
},
|
|
7008
7002
|
children: d.email
|
|
@@ -7013,7 +7007,7 @@ const Ns = [
|
|
|
7013
7007
|
{
|
|
7014
7008
|
style: {
|
|
7015
7009
|
backgroundColor: d.isVerified ? t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
|
|
7016
|
-
color: d.isVerified ?
|
|
7010
|
+
color: d.isVerified ? A.success : A.warning,
|
|
7017
7011
|
border: `1px solid ${d.isVerified ? t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
|
|
7018
7012
|
padding: "6px 12px",
|
|
7019
7013
|
borderRadius: "20px",
|
|
@@ -7047,9 +7041,9 @@ const Ns = [
|
|
|
7047
7041
|
{
|
|
7048
7042
|
onClick: () => E(!1),
|
|
7049
7043
|
style: {
|
|
7050
|
-
backgroundColor:
|
|
7051
|
-
border: `1px solid ${
|
|
7052
|
-
color:
|
|
7044
|
+
backgroundColor: A.surfaceLight,
|
|
7045
|
+
border: `1px solid ${A.border}`,
|
|
7046
|
+
color: A.textPrimary,
|
|
7053
7047
|
padding: "10px 20px",
|
|
7054
7048
|
borderRadius: "6px",
|
|
7055
7049
|
borderStyle: "solid",
|
|
@@ -7063,7 +7057,7 @@ const Ns = [
|
|
|
7063
7057
|
gap: "8px",
|
|
7064
7058
|
textDecoration: "none",
|
|
7065
7059
|
minHeight: "36px",
|
|
7066
|
-
flex:
|
|
7060
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7067
7061
|
},
|
|
7068
7062
|
children: [
|
|
7069
7063
|
/* @__PURE__ */ r.jsx(Oe, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7077,7 +7071,7 @@ const Ns = [
|
|
|
7077
7071
|
onClick: B,
|
|
7078
7072
|
disabled: u,
|
|
7079
7073
|
style: {
|
|
7080
|
-
background: `linear-gradient(to right, ${
|
|
7074
|
+
background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
|
|
7081
7075
|
opacity: u ? 0.7 : 1,
|
|
7082
7076
|
color: "white",
|
|
7083
7077
|
padding: "10px 20px",
|
|
@@ -7093,7 +7087,7 @@ const Ns = [
|
|
|
7093
7087
|
gap: "8px",
|
|
7094
7088
|
textDecoration: "none",
|
|
7095
7089
|
minHeight: "36px",
|
|
7096
|
-
flex:
|
|
7090
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7097
7091
|
},
|
|
7098
7092
|
children: [
|
|
7099
7093
|
u ? /* @__PURE__ */ r.jsx(
|
|
@@ -7114,7 +7108,7 @@ const Ns = [
|
|
|
7114
7108
|
{
|
|
7115
7109
|
onClick: () => E(!0),
|
|
7116
7110
|
style: {
|
|
7117
|
-
background: `linear-gradient(to right, ${
|
|
7111
|
+
background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
|
|
7118
7112
|
color: "white",
|
|
7119
7113
|
padding: "10px 20px",
|
|
7120
7114
|
borderRadius: "6px",
|
|
@@ -7129,7 +7123,7 @@ const Ns = [
|
|
|
7129
7123
|
gap: "8px",
|
|
7130
7124
|
textDecoration: "none",
|
|
7131
7125
|
minHeight: "36px",
|
|
7132
|
-
flex:
|
|
7126
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7133
7127
|
},
|
|
7134
7128
|
children: [
|
|
7135
7129
|
/* @__PURE__ */ r.jsx(ks, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7159,7 +7153,7 @@ const Ns = [
|
|
|
7159
7153
|
gap: "8px",
|
|
7160
7154
|
minHeight: "36px",
|
|
7161
7155
|
opacity: T ? 0.7 : 1,
|
|
7162
|
-
flex:
|
|
7156
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7163
7157
|
},
|
|
7164
7158
|
children: [
|
|
7165
7159
|
T ? /* @__PURE__ */ r.jsx(
|
|
@@ -7179,8 +7173,8 @@ const Ns = [
|
|
|
7179
7173
|
"button",
|
|
7180
7174
|
{
|
|
7181
7175
|
style: {
|
|
7182
|
-
backgroundColor:
|
|
7183
|
-
color:
|
|
7176
|
+
backgroundColor: A.surfaceLight,
|
|
7177
|
+
color: A.textPrimary,
|
|
7184
7178
|
padding: "10px 20px",
|
|
7185
7179
|
borderRadius: "6px",
|
|
7186
7180
|
border: "none",
|
|
@@ -7213,8 +7207,8 @@ const Ns = [
|
|
|
7213
7207
|
bottom: "100%",
|
|
7214
7208
|
left: 0,
|
|
7215
7209
|
right: 0,
|
|
7216
|
-
backgroundColor:
|
|
7217
|
-
border: `1px solid ${
|
|
7210
|
+
backgroundColor: A.surface,
|
|
7211
|
+
border: `1px solid ${A.border}`,
|
|
7218
7212
|
borderRadius: "12px 12px 0 0",
|
|
7219
7213
|
boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
|
|
7220
7214
|
zIndex: 200,
|
|
@@ -7234,7 +7228,7 @@ const Ns = [
|
|
|
7234
7228
|
padding: "14px 18px",
|
|
7235
7229
|
backgroundColor: "transparent",
|
|
7236
7230
|
border: "none",
|
|
7237
|
-
color:
|
|
7231
|
+
color: A.textPrimary,
|
|
7238
7232
|
cursor: "pointer",
|
|
7239
7233
|
transition: "all 0.2s ease",
|
|
7240
7234
|
fontSize: "13px",
|
|
@@ -7244,7 +7238,7 @@ const Ns = [
|
|
|
7244
7238
|
gap: "8px",
|
|
7245
7239
|
textAlign: "left"
|
|
7246
7240
|
},
|
|
7247
|
-
onMouseEnter: (v) => v.currentTarget.style.backgroundColor =
|
|
7241
|
+
onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
|
|
7248
7242
|
onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
|
|
7249
7243
|
children: [
|
|
7250
7244
|
/* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
|
|
@@ -7338,7 +7332,7 @@ const Ns = [
|
|
|
7338
7332
|
"section",
|
|
7339
7333
|
{
|
|
7340
7334
|
style: {
|
|
7341
|
-
backgroundColor:
|
|
7335
|
+
backgroundColor: A.surface,
|
|
7342
7336
|
borderRadius: "16px",
|
|
7343
7337
|
padding: "24px",
|
|
7344
7338
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
@@ -7351,7 +7345,7 @@ const Ns = [
|
|
|
7351
7345
|
fontSize: "20px",
|
|
7352
7346
|
fontWeight: 600,
|
|
7353
7347
|
margin: "0 0 24px 0",
|
|
7354
|
-
color:
|
|
7348
|
+
color: A.textSecondary,
|
|
7355
7349
|
display: "flex",
|
|
7356
7350
|
alignItems: "center",
|
|
7357
7351
|
gap: "8px"
|
|
@@ -7369,7 +7363,7 @@ const Ns = [
|
|
|
7369
7363
|
display: "grid",
|
|
7370
7364
|
gap: "20px",
|
|
7371
7365
|
gridTemplateColumns: "1fr",
|
|
7372
|
-
...
|
|
7366
|
+
...o && window.innerWidth >= 600 && {
|
|
7373
7367
|
gridTemplateColumns: "1fr 1fr",
|
|
7374
7368
|
gap: "20px"
|
|
7375
7369
|
}
|
|
@@ -7389,7 +7383,7 @@ const Ns = [
|
|
|
7389
7383
|
"label",
|
|
7390
7384
|
{
|
|
7391
7385
|
style: {
|
|
7392
|
-
color:
|
|
7386
|
+
color: A.textTertiary,
|
|
7393
7387
|
fontSize: "12px",
|
|
7394
7388
|
fontWeight: 500,
|
|
7395
7389
|
display: "flex",
|
|
@@ -7416,7 +7410,7 @@ const Ns = [
|
|
|
7416
7410
|
borderRadius: "8px",
|
|
7417
7411
|
border: `1px solid ${i}`,
|
|
7418
7412
|
backgroundColor: "transparent",
|
|
7419
|
-
color:
|
|
7413
|
+
color: A.textPrimary,
|
|
7420
7414
|
fontSize: "12px",
|
|
7421
7415
|
outline: "none",
|
|
7422
7416
|
transition: "border-color 0.2s ease",
|
|
@@ -7440,7 +7434,7 @@ const Ns = [
|
|
|
7440
7434
|
display: "flex",
|
|
7441
7435
|
alignItems: "center",
|
|
7442
7436
|
boxSizing: "border-box",
|
|
7443
|
-
color:
|
|
7437
|
+
color: A.textPrimary,
|
|
7444
7438
|
backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
|
|
7445
7439
|
},
|
|
7446
7440
|
children: v.value
|
|
@@ -7460,7 +7454,7 @@ const Ns = [
|
|
|
7460
7454
|
"section",
|
|
7461
7455
|
{
|
|
7462
7456
|
style: {
|
|
7463
|
-
backgroundColor:
|
|
7457
|
+
backgroundColor: A.surface,
|
|
7464
7458
|
borderRadius: "16px",
|
|
7465
7459
|
padding: "30px 24px",
|
|
7466
7460
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
@@ -7473,7 +7467,7 @@ const Ns = [
|
|
|
7473
7467
|
fontSize: "20px",
|
|
7474
7468
|
fontWeight: 600,
|
|
7475
7469
|
margin: "0 0 24px 0",
|
|
7476
|
-
color:
|
|
7470
|
+
color: A.textSecondary,
|
|
7477
7471
|
display: "flex",
|
|
7478
7472
|
alignItems: "center",
|
|
7479
7473
|
gap: "8px"
|
|
@@ -7510,7 +7504,7 @@ const Ns = [
|
|
|
7510
7504
|
display: "flex",
|
|
7511
7505
|
alignItems: "center",
|
|
7512
7506
|
gap: "12px",
|
|
7513
|
-
color:
|
|
7507
|
+
color: A.textSecondary
|
|
7514
7508
|
},
|
|
7515
7509
|
children: [
|
|
7516
7510
|
/* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7531,11 +7525,11 @@ const Ns = [
|
|
|
7531
7525
|
gap: "6px",
|
|
7532
7526
|
...d.isVerified ? {
|
|
7533
7527
|
backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
|
|
7534
|
-
color:
|
|
7528
|
+
color: A.success,
|
|
7535
7529
|
border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
|
|
7536
7530
|
} : {
|
|
7537
7531
|
backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
|
|
7538
|
-
color:
|
|
7532
|
+
color: A.warning,
|
|
7539
7533
|
border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
|
|
7540
7534
|
}
|
|
7541
7535
|
},
|
|
@@ -7563,7 +7557,7 @@ const Ns = [
|
|
|
7563
7557
|
"p",
|
|
7564
7558
|
{
|
|
7565
7559
|
style: {
|
|
7566
|
-
color:
|
|
7560
|
+
color: A.textTertiary,
|
|
7567
7561
|
fontSize: "12px",
|
|
7568
7562
|
margin: 0
|
|
7569
7563
|
},
|
|
@@ -7593,8 +7587,8 @@ const Ns = [
|
|
|
7593
7587
|
onClose: () => {
|
|
7594
7588
|
I(!1);
|
|
7595
7589
|
},
|
|
7596
|
-
onUpdate:
|
|
7597
|
-
colors:
|
|
7590
|
+
onUpdate: oe,
|
|
7591
|
+
colors: A
|
|
7598
7592
|
}
|
|
7599
7593
|
),
|
|
7600
7594
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7605,7 +7599,7 @@ const Ns = [
|
|
|
7605
7599
|
onClose: () => g(!1),
|
|
7606
7600
|
onSuccess: (v) => m("success", v),
|
|
7607
7601
|
onError: (v) => m("error", v),
|
|
7608
|
-
colors:
|
|
7602
|
+
colors: A
|
|
7609
7603
|
}
|
|
7610
7604
|
),
|
|
7611
7605
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7616,7 +7610,7 @@ const Ns = [
|
|
|
7616
7610
|
onClose: () => N(!1),
|
|
7617
7611
|
onSuccess: (v) => m("success", v),
|
|
7618
7612
|
onError: (v) => m("error", v),
|
|
7619
|
-
colors:
|
|
7613
|
+
colors: A
|
|
7620
7614
|
}
|
|
7621
7615
|
),
|
|
7622
7616
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7633,7 +7627,7 @@ const Ns = [
|
|
|
7633
7627
|
otpSent: H,
|
|
7634
7628
|
verifying: Y,
|
|
7635
7629
|
user: d,
|
|
7636
|
-
colors:
|
|
7630
|
+
colors: A,
|
|
7637
7631
|
darkMode: t
|
|
7638
7632
|
}
|
|
7639
7633
|
),
|
|
@@ -7735,9 +7729,9 @@ const Ns = [
|
|
|
7735
7729
|
onLogout: n,
|
|
7736
7730
|
varient: s = "classic",
|
|
7737
7731
|
propUser: i,
|
|
7738
|
-
className:
|
|
7732
|
+
className: a = "",
|
|
7739
7733
|
// New URL props with defaults
|
|
7740
|
-
profileUrl:
|
|
7734
|
+
profileUrl: o,
|
|
7741
7735
|
settingsUrl: c,
|
|
7742
7736
|
// Menu item visibility with defaults
|
|
7743
7737
|
showProfileMenuItem: d = !0,
|
|
@@ -7791,9 +7785,9 @@ const Ns = [
|
|
|
7791
7785
|
if (typeof window > "u") return;
|
|
7792
7786
|
const l = () => {
|
|
7793
7787
|
if (!h || !O.current) return;
|
|
7794
|
-
const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280,
|
|
7788
|
+
const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280, oe = S - m.right, B = m.left;
|
|
7795
7789
|
D - m.bottom;
|
|
7796
|
-
const le =
|
|
7790
|
+
const le = oe >= ne || oe > B;
|
|
7797
7791
|
W(le);
|
|
7798
7792
|
};
|
|
7799
7793
|
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
@@ -7835,7 +7829,7 @@ const Ns = [
|
|
|
7835
7829
|
accent: e,
|
|
7836
7830
|
accentHover: `${e}e6`,
|
|
7837
7831
|
error: "#ef4444"
|
|
7838
|
-
},
|
|
7832
|
+
}, z = {
|
|
7839
7833
|
wrapper: {
|
|
7840
7834
|
position: "relative",
|
|
7841
7835
|
display: "inline-block"
|
|
@@ -8090,7 +8084,7 @@ const Ns = [
|
|
|
8090
8084
|
}
|
|
8091
8085
|
}, J = (l, m) => {
|
|
8092
8086
|
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
|
|
8093
|
-
}, H = () =>
|
|
8087
|
+
}, H = () => o || C?.profileUrl, L = () => {
|
|
8094
8088
|
const l = H();
|
|
8095
8089
|
l && window.open(l, "_self", "noopener,noreferrer");
|
|
8096
8090
|
}, Y = () => {
|
|
@@ -8099,9 +8093,9 @@ const Ns = [
|
|
|
8099
8093
|
return /* @__PURE__ */ r.jsxs(
|
|
8100
8094
|
"div",
|
|
8101
8095
|
{
|
|
8102
|
-
style:
|
|
8096
|
+
style: z.wrapper,
|
|
8103
8097
|
ref: q,
|
|
8104
|
-
className:
|
|
8098
|
+
className: a,
|
|
8105
8099
|
role: "menu",
|
|
8106
8100
|
"aria-label": "User menu",
|
|
8107
8101
|
children: [
|
|
@@ -8160,7 +8154,7 @@ const Ns = [
|
|
|
8160
8154
|
"div",
|
|
8161
8155
|
{
|
|
8162
8156
|
ref: O,
|
|
8163
|
-
style:
|
|
8157
|
+
style: z.avatarButton,
|
|
8164
8158
|
onClick: () => I((l) => !l),
|
|
8165
8159
|
onKeyDown: (l) => J(l, () => I((m) => !m)),
|
|
8166
8160
|
tabIndex: 0,
|
|
@@ -8183,7 +8177,7 @@ const Ns = [
|
|
|
8183
8177
|
{
|
|
8184
8178
|
src: C.avatarUrl,
|
|
8185
8179
|
alt: `${C.name}'s avatar`,
|
|
8186
|
-
style:
|
|
8180
|
+
style: z.avatarImage,
|
|
8187
8181
|
loading: "lazy",
|
|
8188
8182
|
onError: (l) => {
|
|
8189
8183
|
const m = l.target;
|
|
@@ -8195,29 +8189,29 @@ const Ns = [
|
|
|
8195
8189
|
{
|
|
8196
8190
|
src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
|
|
8197
8191
|
alt: "Default user avatar",
|
|
8198
|
-
style:
|
|
8192
|
+
style: z.avatarImage,
|
|
8199
8193
|
loading: "lazy"
|
|
8200
8194
|
}
|
|
8201
8195
|
),
|
|
8202
|
-
!R && /* @__PURE__ */ r.jsxs("div", { style:
|
|
8203
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8204
|
-
C?.email && /* @__PURE__ */ r.jsx("div", { style:
|
|
8196
|
+
!R && /* @__PURE__ */ r.jsxs("div", { style: z.userInfo, children: [
|
|
8197
|
+
/* @__PURE__ */ r.jsx("div", { style: z.userName, title: C?.name, children: C?.name || "Guest" }),
|
|
8198
|
+
C?.email && /* @__PURE__ */ r.jsx("div", { style: z.userEmail, title: C.email, children: C.email })
|
|
8205
8199
|
] }),
|
|
8206
8200
|
/* @__PURE__ */ r.jsx(
|
|
8207
8201
|
Zn,
|
|
8208
8202
|
{
|
|
8209
8203
|
size: R ? 14 : 16,
|
|
8210
|
-
style:
|
|
8204
|
+
style: z.chevron,
|
|
8211
8205
|
"aria-hidden": "true"
|
|
8212
8206
|
}
|
|
8213
8207
|
)
|
|
8214
8208
|
]
|
|
8215
8209
|
}
|
|
8216
8210
|
),
|
|
8217
|
-
h && /* @__PURE__ */ r.jsx("div", { style:
|
|
8211
|
+
h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
|
|
8218
8212
|
"div",
|
|
8219
8213
|
{
|
|
8220
|
-
style:
|
|
8214
|
+
style: z.loadingContainer,
|
|
8221
8215
|
role: "status",
|
|
8222
8216
|
"aria-live": "polite",
|
|
8223
8217
|
children: [
|
|
@@ -8230,23 +8224,23 @@ const Ns = [
|
|
|
8230
8224
|
"aria-hidden": "true"
|
|
8231
8225
|
}
|
|
8232
8226
|
),
|
|
8233
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8234
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8235
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8236
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8237
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8227
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.loadingSkeleton, children: [
|
|
8228
|
+
/* @__PURE__ */ r.jsx("div", { style: z.skeletonAvatar }),
|
|
8229
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.skeletonTextBlock, children: [
|
|
8230
|
+
/* @__PURE__ */ r.jsx("div", { style: z.skeletonLineShort }),
|
|
8231
|
+
/* @__PURE__ */ r.jsx("div", { style: z.skeletonLineLong })
|
|
8238
8232
|
] })
|
|
8239
8233
|
] })
|
|
8240
8234
|
]
|
|
8241
8235
|
}
|
|
8242
8236
|
) : C ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
8243
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8237
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.userSection, children: [
|
|
8244
8238
|
C?.avatarUrl ? /* @__PURE__ */ r.jsx(
|
|
8245
8239
|
"img",
|
|
8246
8240
|
{
|
|
8247
8241
|
src: C.avatarUrl,
|
|
8248
8242
|
alt: `${C.name}'s profile picture`,
|
|
8249
|
-
style:
|
|
8243
|
+
style: z.dropdownAvatar,
|
|
8250
8244
|
loading: "lazy",
|
|
8251
8245
|
onError: (l) => {
|
|
8252
8246
|
const m = l.target;
|
|
@@ -8258,20 +8252,20 @@ const Ns = [
|
|
|
8258
8252
|
{
|
|
8259
8253
|
src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
|
|
8260
8254
|
alt: `${C.name}'s default avatar`,
|
|
8261
|
-
style:
|
|
8255
|
+
style: z.dropdownAvatar,
|
|
8262
8256
|
loading: "lazy"
|
|
8263
8257
|
}
|
|
8264
8258
|
),
|
|
8265
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8266
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8267
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8259
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.dropdownUserInfo, children: [
|
|
8260
|
+
/* @__PURE__ */ r.jsx("div", { style: z.dropdownUserName, title: C.name, children: C.name }),
|
|
8261
|
+
/* @__PURE__ */ r.jsx("div", { style: z.dropdownUserEmail, title: C.email, children: C.email })
|
|
8268
8262
|
] })
|
|
8269
8263
|
] }),
|
|
8270
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8264
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.dropdownSection, children: [
|
|
8271
8265
|
d && H() && /* @__PURE__ */ r.jsxs(
|
|
8272
8266
|
"button",
|
|
8273
8267
|
{
|
|
8274
|
-
style:
|
|
8268
|
+
style: z.menuItem,
|
|
8275
8269
|
onClick: L,
|
|
8276
8270
|
onMouseOver: (l) => {
|
|
8277
8271
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
@@ -8283,15 +8277,15 @@ const Ns = [
|
|
|
8283
8277
|
role: "menuitem",
|
|
8284
8278
|
tabIndex: 0,
|
|
8285
8279
|
children: [
|
|
8286
|
-
/* @__PURE__ */ r.jsx(he, { style:
|
|
8287
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8280
|
+
/* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
|
|
8281
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
|
|
8288
8282
|
]
|
|
8289
8283
|
}
|
|
8290
8284
|
),
|
|
8291
8285
|
x && c && /* @__PURE__ */ r.jsxs(
|
|
8292
8286
|
"button",
|
|
8293
8287
|
{
|
|
8294
|
-
style:
|
|
8288
|
+
style: z.menuItem,
|
|
8295
8289
|
onClick: Y,
|
|
8296
8290
|
onMouseOver: (l) => {
|
|
8297
8291
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
@@ -8303,8 +8297,8 @@ const Ns = [
|
|
|
8303
8297
|
role: "menuitem",
|
|
8304
8298
|
tabIndex: 0,
|
|
8305
8299
|
children: [
|
|
8306
|
-
/* @__PURE__ */ r.jsx(Os, { style:
|
|
8307
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8300
|
+
/* @__PURE__ */ r.jsx(Os, { style: z.icon, "aria-hidden": "true" }),
|
|
8301
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: k })
|
|
8308
8302
|
]
|
|
8309
8303
|
}
|
|
8310
8304
|
),
|
|
@@ -8314,7 +8308,7 @@ const Ns = [
|
|
|
8314
8308
|
href: C.profileUrl,
|
|
8315
8309
|
target: "_self",
|
|
8316
8310
|
rel: "noopener noreferrer",
|
|
8317
|
-
style:
|
|
8311
|
+
style: z.menuItem,
|
|
8318
8312
|
onMouseOver: (l) => {
|
|
8319
8313
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
8320
8314
|
},
|
|
@@ -8324,16 +8318,16 @@ const Ns = [
|
|
|
8324
8318
|
role: "menuitem",
|
|
8325
8319
|
tabIndex: 0,
|
|
8326
8320
|
children: [
|
|
8327
|
-
/* @__PURE__ */ r.jsx(pe, { style:
|
|
8328
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8321
|
+
/* @__PURE__ */ r.jsx(pe, { style: z.icon, "aria-hidden": "true" }),
|
|
8322
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: E })
|
|
8329
8323
|
]
|
|
8330
8324
|
}
|
|
8331
8325
|
)
|
|
8332
8326
|
] }),
|
|
8333
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8327
|
+
/* @__PURE__ */ r.jsx("div", { style: z.dropdownSection, children: /* @__PURE__ */ r.jsxs(
|
|
8334
8328
|
"button",
|
|
8335
8329
|
{
|
|
8336
|
-
style:
|
|
8330
|
+
style: z.logoutButton,
|
|
8337
8331
|
onClick: n,
|
|
8338
8332
|
onMouseOver: (l) => {
|
|
8339
8333
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
@@ -8348,15 +8342,15 @@ const Ns = [
|
|
|
8348
8342
|
/* @__PURE__ */ r.jsx(
|
|
8349
8343
|
ct,
|
|
8350
8344
|
{
|
|
8351
|
-
style: { ...
|
|
8345
|
+
style: { ...z.icon, color: T.error },
|
|
8352
8346
|
"aria-hidden": "true"
|
|
8353
8347
|
}
|
|
8354
8348
|
),
|
|
8355
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8349
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: u })
|
|
8356
8350
|
]
|
|
8357
8351
|
}
|
|
8358
8352
|
) })
|
|
8359
|
-
] }) : /* @__PURE__ */ r.jsxs("div", { style:
|
|
8353
|
+
] }) : /* @__PURE__ */ r.jsxs("div", { style: z.errorState, role: "alert", children: [
|
|
8360
8354
|
/* @__PURE__ */ r.jsxs(
|
|
8361
8355
|
"div",
|
|
8362
8356
|
{
|
|
@@ -8370,7 +8364,7 @@ const Ns = [
|
|
|
8370
8364
|
b && b !== "Not signed in" && /* @__PURE__ */ r.jsx(
|
|
8371
8365
|
"button",
|
|
8372
8366
|
{
|
|
8373
|
-
style:
|
|
8367
|
+
style: z.retryButton,
|
|
8374
8368
|
onClick: M,
|
|
8375
8369
|
onMouseOver: (l) => {
|
|
8376
8370
|
l.currentTarget.style.backgroundColor = T.accentHover;
|
|
@@ -8420,13 +8414,13 @@ const Ns = [
|
|
|
8420
8414
|
]
|
|
8421
8415
|
}
|
|
8422
8416
|
);
|
|
8423
|
-
const [
|
|
8417
|
+
const [a, o] = P(!1), [c, d] = P({
|
|
8424
8418
|
email: t?.email || "",
|
|
8425
8419
|
otp: ""
|
|
8426
8420
|
}), [x, p] = P(!1), [y, k] = P(!1), [E, u] = P(null);
|
|
8427
8421
|
Ce.useEffect(() => {
|
|
8428
8422
|
if (typeof window < "u") {
|
|
8429
|
-
const b = () =>
|
|
8423
|
+
const b = () => o(window.innerWidth < 768);
|
|
8430
8424
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
8431
8425
|
}
|
|
8432
8426
|
}, []);
|
|
@@ -8538,7 +8532,7 @@ const Ns = [
|
|
|
8538
8532
|
onSubmit: g,
|
|
8539
8533
|
style: {
|
|
8540
8534
|
width: "100%",
|
|
8541
|
-
maxWidth:
|
|
8535
|
+
maxWidth: a ? "340px" : "400px",
|
|
8542
8536
|
display: "flex",
|
|
8543
8537
|
flexDirection: "column",
|
|
8544
8538
|
gap: 20,
|