@neuctra/authix 1.2.30 → 1.2.32
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.
|
@@ -7,16 +7,16 @@ function Ut(t, e) {
|
|
|
7
7
|
const { toString: ur } = Object.prototype, { getPrototypeOf: nt } = Object, { iterator: Fe, toStringTag: _t } = Symbol, Le = /* @__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) => Le(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;
|
|
18
18
|
}
|
|
19
|
-
const fr = qe("string"), te = qe("function"),
|
|
19
|
+
const fr = qe("string"), te = qe("function"), Nt = qe("number"), Re = (t) => t !== null && typeof t == "object", xr = (t) => t === !0 || t === !1, Ue = (t) => {
|
|
20
20
|
if (Le(t) !== "object")
|
|
21
21
|
return !1;
|
|
22
22
|
const e = nt(t);
|
|
@@ -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 = Le(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,13 +44,13 @@ 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
|
-
function
|
|
53
|
+
function Dt(t, e) {
|
|
54
54
|
if (Te(t))
|
|
55
55
|
return null;
|
|
56
56
|
e = e.toLowerCase();
|
|
@@ -63,27 +63,27 @@ function Nt(t, e) {
|
|
|
63
63
|
}
|
|
64
64
|
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Ft = (t) => !we(t) && t !== fe;
|
|
65
65
|
function Ge() {
|
|
66
|
-
const { caseless: t, skipUndefined: e } = Ft(this) && this || {}, n = {}, s = (i,
|
|
67
|
-
const
|
|
68
|
-
Ue(n[
|
|
66
|
+
const { caseless: t, skipUndefined: e } = Ft(this) && this || {}, n = {}, s = (i, a) => {
|
|
67
|
+
const o = t && Dt(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;
|
|
@@ -95,7 +95,7 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
95
95
|
if (!t) return null;
|
|
96
96
|
if (je(t)) return t;
|
|
97
97
|
let e = t.length;
|
|
98
|
-
if (!
|
|
98
|
+
if (!Nt(e)) return null;
|
|
99
99
|
const n = new Array(e);
|
|
100
100
|
for (; e-- > 0; )
|
|
101
101
|
n[e] = t[e];
|
|
@@ -104,8 +104,8 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
104
104
|
const s = (t && t[Fe]).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
|
-
},
|
|
116
|
+
}, Nr = ae("HTMLFormElement"), Dr = (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), Fr =
|
|
121
|
+
), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Fr = ae("RegExp"), Lt = (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
|
}, Lr = (t) => {
|
|
128
128
|
Lt(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))(
|
|
@@ -184,7 +184,7 @@ const Hr = (t) => {
|
|
|
184
184
|
isFormData: jr,
|
|
185
185
|
isArrayBufferView: pr,
|
|
186
186
|
isString: fr,
|
|
187
|
-
isNumber:
|
|
187
|
+
isNumber: Nt,
|
|
188
188
|
isBoolean: xr,
|
|
189
189
|
isObject: Re,
|
|
190
190
|
isPlainObject: Ue,
|
|
@@ -211,22 +211,22 @@ const Hr = (t) => {
|
|
|
211
211
|
inherits: Ir,
|
|
212
212
|
toFlatObject: Or,
|
|
213
213
|
kindOf: Le,
|
|
214
|
-
kindOfTest:
|
|
214
|
+
kindOfTest: ae,
|
|
215
215
|
endsWith: Ar,
|
|
216
216
|
toArray: zr,
|
|
217
217
|
forEachEntry: _r,
|
|
218
218
|
matchAll: $r,
|
|
219
|
-
isHTMLForm:
|
|
219
|
+
isHTMLForm: Nr,
|
|
220
220
|
hasOwnProperty: pt,
|
|
221
221
|
hasOwnProp: pt,
|
|
222
222
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
223
223
|
reduceDescriptors: Lt,
|
|
224
224
|
freezeMethods: Lr,
|
|
225
225
|
toObjectSet: qr,
|
|
226
|
-
toCamelCase:
|
|
226
|
+
toCamelCase: Dr,
|
|
227
227
|
noop: Mr,
|
|
228
228
|
toFiniteNumber: Wr,
|
|
229
|
-
findKey:
|
|
229
|
+
findKey: Dt,
|
|
230
230
|
global: fe,
|
|
231
231
|
isContextDefined: Ft,
|
|
232
232
|
isSpecCompliantForm: Br,
|
|
@@ -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
|
-
p.toFlatObject(t,
|
|
284
|
+
$.from = (t, e, n, s, i, a) => {
|
|
285
|
+
const o = Object.create(Mt);
|
|
286
|
+
p.toFlatObject(t, o, function(x) {
|
|
287
287
|
return x !== Error.prototype;
|
|
288
288
|
}, (f) => f !== "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 p.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 !p.isUndefined(h[w]);
|
|
319
319
|
});
|
|
320
|
-
const s = n.metaTokens, i = n.visitor || x,
|
|
320
|
+
const s = n.metaTokens, i = n.visitor || x, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && p.isSpecCompliantForm(e);
|
|
321
321
|
if (!p.isFunction(i))
|
|
322
322
|
throw new TypeError("visitor must be a function");
|
|
323
323
|
function f(u) {
|
|
@@ -339,12 +339,12 @@ function Me(t, e, n) {
|
|
|
339
339
|
return w = Bt(w), I.forEach(function(g, U) {
|
|
340
340
|
!(p.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
|
f(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), f(u)), !1);
|
|
348
348
|
}
|
|
349
349
|
const y = [], k = Object.assign(Zr, {
|
|
350
350
|
defaultVisitor: x,
|
|
@@ -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 = p.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 && p.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) :
|
|
500
|
+
visitor: function(n, s, i, a) {
|
|
501
|
+
return Q.isNode && p.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 Jt(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 && p.isArray(i) ? i.length : o, d ? (p.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !p.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && p.isArray(i[o]) && (i[o] = un(i[o])), !c);
|
|
524
524
|
}
|
|
525
525
|
if (p.isFormData(t) && p.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 = p.isObject(e);
|
|
548
|
+
if (a && p.isHTMLForm(e) && (e = new FormData(e)), p.isFormData(e))
|
|
549
549
|
return i ? JSON.stringify(Jt(e)) : e;
|
|
550
550
|
if (p.isArrayBuffer(e) || p.isBuffer(e) || p.isStream(e) || p.isFile(e) || p.isBlob(e) || p.isReadableStream(e))
|
|
551
551
|
return e;
|
|
@@ -554,7 +554,7 @@ const Ie = {
|
|
|
554
554
|
if (p.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 = p.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 (p.isResponse(e) || p.isReadableStream(e))
|
|
574
574
|
return e;
|
|
575
575
|
if (e && p.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 = p.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 = p.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, f) {
|
|
683
683
|
const x = Se(d);
|
|
684
684
|
if (!x)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const y = p.findKey(i, x);
|
|
687
687
|
(!y || i[y] === void 0 || f === !0 || f === void 0 && i[y] !== !1) && (i[y || d] = _e(c));
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const o = (c, d) => p.forEach(c, (f, x) => a(f, x, d));
|
|
690
690
|
if (p.isPlainObject(e) || e instanceof this.constructor)
|
|
691
|
-
|
|
691
|
+
o(e, n);
|
|
692
692
|
else if (p.isString(e) && (e = e.trim()) && !mn(e))
|
|
693
|
-
|
|
693
|
+
o(xn(e), n);
|
|
694
694
|
else if (p.isObject(e) && p.isIterable(e)) {
|
|
695
695
|
let c = {}, d, f;
|
|
696
696
|
for (const x of e) {
|
|
@@ -698,9 +698,9 @@ let re = class {
|
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
699
|
c[f = x[0]] = (d = c[f]) ? p.isArray(d) ? [...d, x[1]] : [d, x[1]] : x[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 = p.findKey(s,
|
|
733
|
+
function a(o) {
|
|
734
|
+
if (o = Se(o), o) {
|
|
735
|
+
const c = p.findKey(s, o);
|
|
736
736
|
c && (!n || He(s, s[c], c, n)) && (delete s[c], i = !0);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
return p.isArray(e) ? e.forEach(
|
|
739
|
+
return p.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 p.forEach(this, (i,
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
755
|
-
n[
|
|
752
|
+
return p.forEach(this, (i, a) => {
|
|
753
|
+
const o = p.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 p.isArray(e) ? e.forEach(
|
|
799
|
+
return p.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 @@ p.reduceDescriptors(re.prototype, ({ value: t }, e) => {
|
|
|
812
812
|
p.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 p.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 Kt(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 f = Date.now(), x = s[
|
|
849
|
-
|
|
850
|
-
let y =
|
|
848
|
+
const f = Date.now(), x = s[a];
|
|
849
|
+
o || (o = f), n[i] = d, s[i] = f;
|
|
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), f - o < e)
|
|
854
854
|
return;
|
|
855
855
|
const E = x && f - x;
|
|
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 = x, i = null,
|
|
860
|
+
let n = 0, s = 1e3 / e, i, a;
|
|
861
|
+
const o = (f, x = Date.now()) => {
|
|
862
|
+
n = x, i = null, a && (clearTimeout(a), a = null), t(...f);
|
|
863
863
|
};
|
|
864
864
|
return [(...f) => {
|
|
865
865
|
const x = Date.now(), y = x - n;
|
|
866
|
-
y >= s ?
|
|
867
|
-
|
|
866
|
+
y >= s ? o(f, x) : (i = f, a || (a = setTimeout(() => {
|
|
867
|
+
a = null, o(i);
|
|
868
868
|
}, s - y)));
|
|
869
|
-
}, () => i &&
|
|
869
|
+
}, () => i && o(i)];
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const De = (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, f = i(d), x = 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: f || void 0,
|
|
883
|
-
estimated: f && c && x ? (c -
|
|
884
|
-
event:
|
|
883
|
+
estimated: f && c && x ? (c - o) / f : 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
|
-
p.isNumber(n) &&
|
|
903
|
+
write(t, e, n, s, i, a) {
|
|
904
|
+
const o = [t + "=" + encodeURIComponent(e)];
|
|
905
|
+
p.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), p.isString(s) && o.push("path=" + s), p.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, f, y, k);
|
|
948
948
|
} else return s(f, x, y, k);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function a(f, x) {
|
|
951
951
|
if (!p.isUndefined(x))
|
|
952
952
|
return s(void 0, x);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function o(f, x) {
|
|
955
955
|
if (p.isUndefined(x)) {
|
|
956
956
|
if (!p.isUndefined(f))
|
|
957
957
|
return s(void 0, f);
|
|
@@ -964,33 +964,33 @@ function me(t, e) {
|
|
|
964
964
|
return s(void 0, f);
|
|
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: (f, x, y) => i(bt(f), bt(x), 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
|
), p.isFormData(n)) {
|
|
1009
1009
|
if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
|
|
1010
|
-
|
|
1010
|
+
o.setContentType(void 0);
|
|
1011
1011
|
else if (p.isFunction(n.getHeaders)) {
|
|
1012
1012
|
const d = n.getHeaders(), f = ["content-type", "content-length"];
|
|
1013
1013
|
Object.entries(d).forEach(([x, y]) => {
|
|
1014
|
-
f.includes(x.toLowerCase()) &&
|
|
1014
|
+
f.includes(x.toLowerCase()) && o.set(x, y);
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
if (Q.hasStandardBrowserEnv && (s && p.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: f } = i, x, y, k, E, u;
|
|
1029
1029
|
function w() {
|
|
1030
1030
|
E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(x), i.signal && i.signal.removeEventListener("abort", x);
|
|
@@ -1036,7 +1036,7 @@ const Zt = (t) => {
|
|
|
1036
1036
|
return;
|
|
1037
1037
|
const g = re.from(
|
|
1038
1038
|
"getAllResponseHeaders" in h && h.getAllResponseHeaders()
|
|
1039
|
-
),
|
|
1039
|
+
), D = {
|
|
1040
1040
|
data: !c || c === "text" || c === "json" ? h.responseText : h.response,
|
|
1041
1041
|
status: h.status,
|
|
1042
1042
|
statusText: h.statusText,
|
|
@@ -1048,27 +1048,27 @@ const Zt = (t) => {
|
|
|
1048
1048
|
n(j), w();
|
|
1049
1049
|
}, function(j) {
|
|
1050
1050
|
s(j), w();
|
|
1051
|
-
},
|
|
1051
|
+
}, D), h = null;
|
|
1052
1052
|
}
|
|
1053
1053
|
"onloadend" in h ? h.onloadend = I : h.onreadystatechange = function() {
|
|
1054
1054
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(I);
|
|
1055
1055
|
}, h.onabort = function() {
|
|
1056
1056
|
h && (s(new $("Request aborted", $.ECONNABORTED, t, h)), h = null);
|
|
1057
1057
|
}, h.onerror = function(U) {
|
|
1058
|
-
const
|
|
1058
|
+
const D = U && U.message ? U.message : "Network Error", b = new $(D, $.ERR_NETWORK, t, h);
|
|
1059
1059
|
b.event = U || null, s(b), h = null;
|
|
1060
1060
|
}, h.ontimeout = function() {
|
|
1061
1061
|
let U = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
1062
|
-
const
|
|
1062
|
+
const D = i.transitional || Yt;
|
|
1063
1063
|
i.timeoutErrorMessage && (U = i.timeoutErrorMessage), s(new $(
|
|
1064
1064
|
U,
|
|
1065
|
-
|
|
1065
|
+
D.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
1066
1066
|
t,
|
|
1067
1067
|
h
|
|
1068
1068
|
)), h = null;
|
|
1069
|
-
},
|
|
1070
|
-
h.setRequestHeader(
|
|
1071
|
-
}), p.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), f && ([k, u] =
|
|
1069
|
+
}, a === void 0 && o.setContentType(null), "setRequestHeader" in h && p.forEach(o.toJSON(), function(U, D) {
|
|
1070
|
+
h.setRequestHeader(D, U);
|
|
1071
|
+
}), p.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), f && ([k, u] = De(f, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = De(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (x = (g) => {
|
|
1072
1072
|
h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
|
|
1073
1073
|
}, i.cancelToken && i.cancelToken.subscribe(x), i.signal && (i.signal.aborted ? x() : i.signal.addEventListener("abort", x)));
|
|
1074
1074
|
const C = bn(i.url);
|
|
@@ -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(f) {
|
|
1086
1086
|
if (!i) {
|
|
1087
1087
|
i = !0, c();
|
|
1088
1088
|
const x = f instanceof Error ? f : this.reason;
|
|
1089
1089
|
s.abort(x instanceof $ ? x : new ve(x instanceof Error ? x.message : x));
|
|
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
|
-
f.unsubscribe ? f.unsubscribe(
|
|
1096
|
+
t && (o && clearTimeout(o), o = null, t.forEach((f) => {
|
|
1097
|
+
f.unsubscribe ? f.unsubscribe(a) : f.removeEventListener("abort", a);
|
|
1098
1098
|
}), t = null);
|
|
1099
1099
|
};
|
|
1100
|
-
t.forEach((f) => f.addEventListener("abort",
|
|
1100
|
+
t.forEach((f) => f.addEventListener("abort", a));
|
|
1101
1101
|
const { signal: d } = s;
|
|
1102
1102
|
return d.unsubscribe = () => p.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 = x.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(x));
|
|
@@ -1174,10 +1174,10 @@ const Zt = (t) => {
|
|
|
1174
1174
|
t = p.merge.call({
|
|
1175
1175
|
skipUndefined: !0
|
|
1176
1176
|
}, An, t);
|
|
1177
|
-
const { fetch: e, Request: n, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function",
|
|
1177
|
+
const { fetch: e, Request: n, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", a = Ae(n), o = Ae(s);
|
|
1178
1178
|
if (!i)
|
|
1179
1179
|
return !1;
|
|
1180
|
-
const c = i && Ae(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f =
|
|
1180
|
+
const c = i && Ae(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), f = 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
|
-
}), x =
|
|
1190
|
+
}), x = o && c && kt(() => p.isReadableStream(new s("").body)), y = {
|
|
1191
1191
|
stream: x && ((u) => u.body)
|
|
1192
1192
|
};
|
|
1193
1193
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
@@ -1224,7 +1224,7 @@ const Zt = (t) => {
|
|
|
1224
1224
|
signal: C,
|
|
1225
1225
|
cancelToken: g,
|
|
1226
1226
|
timeout: U,
|
|
1227
|
-
onDownloadProgress:
|
|
1227
|
+
onDownloadProgress: D,
|
|
1228
1228
|
onUploadProgress: b,
|
|
1229
1229
|
responseType: j,
|
|
1230
1230
|
headers: q,
|
|
@@ -1245,15 +1245,15 @@ const Zt = (t) => {
|
|
|
1245
1245
|
duplex: "half"
|
|
1246
1246
|
}), m;
|
|
1247
1247
|
if (p.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
|
|
1248
|
-
const [S,
|
|
1248
|
+
const [S, N] = gt(
|
|
1249
1249
|
A,
|
|
1250
|
-
|
|
1250
|
+
De(yt(b))
|
|
1251
1251
|
);
|
|
1252
|
-
I = wt(l.body, jt, S,
|
|
1252
|
+
I = wt(l.body, jt, S, N);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
p.isString(O) || (O = O ? "include" : "omit");
|
|
1256
|
-
const M =
|
|
1256
|
+
const M = a && "credentials" in n.prototype, K = {
|
|
1257
1257
|
...X,
|
|
1258
1258
|
signal: R,
|
|
1259
1259
|
method: h.toUpperCase(),
|
|
@@ -1262,21 +1262,21 @@ 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, K);
|
|
1266
|
+
let H = await (a ? W(G, X) : W(w, K));
|
|
1267
1267
|
const F = x && (j === "stream" || j === "response");
|
|
1268
|
-
if (x && (
|
|
1268
|
+
if (x && (D || F && T)) {
|
|
1269
1269
|
const l = {};
|
|
1270
1270
|
["status", "statusText", "headers"].forEach((ne) => {
|
|
1271
1271
|
l[ne] = H[ne];
|
|
1272
1272
|
});
|
|
1273
|
-
const m = p.toFiniteNumber(H.headers.get("content-length")), [S,
|
|
1273
|
+
const m = p.toFiniteNumber(H.headers.get("content-length")), [S, N] = D && gt(
|
|
1274
1274
|
m,
|
|
1275
|
-
|
|
1275
|
+
De(yt(D), !0)
|
|
1276
1276
|
) || [];
|
|
1277
1277
|
H = new s(
|
|
1278
1278
|
wt(H.body, jt, S, () => {
|
|
1279
|
-
|
|
1279
|
+
N && N(), T && T();
|
|
1280
1280
|
}),
|
|
1281
1281
|
l
|
|
1282
1282
|
);
|
|
@@ -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, f, x = Un;
|
|
1313
1313
|
for (; c--; )
|
|
1314
|
-
d =
|
|
1314
|
+
d = a[c], f = x.get(d), f === void 0 && x.set(d, f = c ? /* @__PURE__ */ new Map() : zn(e)), x = f;
|
|
1315
1315
|
return f;
|
|
1316
1316
|
};
|
|
1317
1317
|
Qt();
|
|
@@ -1336,23 +1336,23 @@ const Et = (t) => `- ${t}`, _n = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1336
1336
|
t = p.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 && (p.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, f]) => `adapter ${d} ` + (f === !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 && p.merge(
|
|
1485
|
+
a.common,
|
|
1486
|
+
a[n.method]
|
|
1487
1487
|
);
|
|
1488
|
-
|
|
1488
|
+
a && p.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,44 +1544,44 @@ p.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
p.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
|
}
|
|
1558
1558
|
xe.prototype[e] = n(), xe.prototype[e + "Form"] = n(!0);
|
|
1559
1559
|
});
|
|
1560
|
-
let
|
|
1560
|
+
let Nn = class rr {
|
|
1561
1561
|
constructor(e) {
|
|
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
|
/**
|
|
@@ -1630,7 +1630,7 @@ let Dn = class rr {
|
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
1632
|
};
|
|
1633
|
-
function
|
|
1633
|
+
function Dn(t) {
|
|
1634
1634
|
return function(n) {
|
|
1635
1635
|
return t.apply(null, n);
|
|
1636
1636
|
};
|
|
@@ -1715,7 +1715,7 @@ function nr(t) {
|
|
|
1715
1715
|
const J = nr(Ie);
|
|
1716
1716
|
J.Axios = xe;
|
|
1717
1717
|
J.CanceledError = ve;
|
|
1718
|
-
J.CancelToken =
|
|
1718
|
+
J.CancelToken = Nn;
|
|
1719
1719
|
J.isCancel = Kt;
|
|
1720
1720
|
J.VERSION = tr;
|
|
1721
1721
|
J.toFormData = Me;
|
|
@@ -1724,7 +1724,7 @@ J.Cancel = J.CanceledError;
|
|
|
1724
1724
|
J.all = function(e) {
|
|
1725
1725
|
return Promise.all(e);
|
|
1726
1726
|
};
|
|
1727
|
-
J.spread =
|
|
1727
|
+
J.spread = Dn;
|
|
1728
1728
|
J.isAxiosError = Fn;
|
|
1729
1729
|
J.mergeConfig = me;
|
|
1730
1730
|
J.AxiosHeaders = re;
|
|
@@ -1747,10 +1747,11 @@ 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
|
} = J;
|
|
1753
1753
|
class li {
|
|
1754
|
+
appName;
|
|
1754
1755
|
baseUrl;
|
|
1755
1756
|
apiKey;
|
|
1756
1757
|
appId;
|
|
@@ -1762,7 +1763,7 @@ class li {
|
|
|
1762
1763
|
constructor(e) {
|
|
1763
1764
|
if (!e || !e.baseUrl)
|
|
1764
1765
|
throw new Error("NeuctraAuthixClient: 'baseUrl' is required in config");
|
|
1765
|
-
this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client = J.create({
|
|
1766
|
+
this.appName = e.appName, this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client = J.create({
|
|
1766
1767
|
baseURL: this.baseUrl,
|
|
1767
1768
|
headers: {
|
|
1768
1769
|
"Content-Type": "application/json",
|
|
@@ -1781,25 +1782,25 @@ class li {
|
|
|
1781
1782
|
* @param data Optional request body
|
|
1782
1783
|
* @param extraHeaders Optional custom headers
|
|
1783
1784
|
*/
|
|
1784
|
-
async request(e, n, s, i = {},
|
|
1785
|
+
async request(e, n, s, i = {}, a = !1) {
|
|
1785
1786
|
try {
|
|
1786
|
-
const
|
|
1787
|
+
const o = {
|
|
1787
1788
|
...this.appId ? { appId: this.appId } : {},
|
|
1788
1789
|
...s || {}
|
|
1789
1790
|
};
|
|
1790
1791
|
return (await this.client.request({
|
|
1791
1792
|
url: n,
|
|
1792
1793
|
method: e,
|
|
1793
|
-
data:
|
|
1794
|
+
data: o,
|
|
1794
1795
|
headers: i,
|
|
1795
|
-
withCredentials:
|
|
1796
|
+
withCredentials: a
|
|
1796
1797
|
// 👈 override axios default
|
|
1797
1798
|
})).data;
|
|
1798
|
-
} catch (
|
|
1799
|
-
throw J.isAxiosError(
|
|
1800
|
-
message:
|
|
1801
|
-
status:
|
|
1802
|
-
} : { message:
|
|
1799
|
+
} catch (o) {
|
|
1800
|
+
throw J.isAxiosError(o) ? {
|
|
1801
|
+
message: o.response?.data?.message || o.message || "Request failed",
|
|
1802
|
+
status: o.response?.status ?? 0
|
|
1803
|
+
} : { message: o.message || "Unexpected error occurred" };
|
|
1803
1804
|
}
|
|
1804
1805
|
}
|
|
1805
1806
|
// ================= USERS =================
|
|
@@ -1931,16 +1932,20 @@ class li {
|
|
|
1931
1932
|
async checkUserSession() {
|
|
1932
1933
|
if (typeof window > "u")
|
|
1933
1934
|
return { authenticated: !1 };
|
|
1935
|
+
const e = () => {
|
|
1936
|
+
document.cookie = "a_s_b=; path=/; Max-Age=0; SameSite=Lax", window.location.protocol === "https:" && (document.cookie = "a_s_b=; path=/; Max-Age=0; SameSite=Lax; Secure");
|
|
1937
|
+
};
|
|
1934
1938
|
try {
|
|
1935
|
-
|
|
1939
|
+
const n = await this.request(
|
|
1936
1940
|
"GET",
|
|
1937
1941
|
"/users/session",
|
|
1938
1942
|
void 0,
|
|
1939
1943
|
{},
|
|
1940
1944
|
!0
|
|
1941
1945
|
);
|
|
1946
|
+
return n?.authenticated || e(), n ?? { authenticated: !1 };
|
|
1942
1947
|
} catch {
|
|
1943
|
-
return { authenticated: !1 };
|
|
1948
|
+
return e(), { authenticated: !1 };
|
|
1944
1949
|
}
|
|
1945
1950
|
}
|
|
1946
1951
|
/**
|
|
@@ -2075,15 +2080,15 @@ class li {
|
|
|
2075
2080
|
);
|
|
2076
2081
|
}
|
|
2077
2082
|
async getUserData(e) {
|
|
2078
|
-
const { userId: n, limit: s = 20, cursor: i, category:
|
|
2083
|
+
const { userId: n, limit: s = 20, cursor: i, category: a } = e;
|
|
2079
2084
|
if (!n)
|
|
2080
2085
|
throw new Error("getUserData: 'userId' is required");
|
|
2081
|
-
const
|
|
2082
|
-
c.set("limit", String(s)), i && c.set("cursor", i),
|
|
2086
|
+
const o = `/users/${encodeURIComponent(n)}/data`, c = new URLSearchParams();
|
|
2087
|
+
c.set("limit", String(s)), i && c.set("cursor", i), a && c.set("category", a);
|
|
2083
2088
|
const d = c.toString();
|
|
2084
2089
|
return this.request(
|
|
2085
2090
|
"GET",
|
|
2086
|
-
d ? `${
|
|
2091
|
+
d ? `${o}?${d}` : o,
|
|
2087
2092
|
void 0,
|
|
2088
2093
|
{},
|
|
2089
2094
|
!1
|
|
@@ -2103,7 +2108,7 @@ class li {
|
|
|
2103
2108
|
);
|
|
2104
2109
|
}
|
|
2105
2110
|
async searchInUserData(e) {
|
|
2106
|
-
const { userId: n, category: s, q: i, keys:
|
|
2111
|
+
const { userId: n, category: s, q: i, keys: a } = e || {};
|
|
2107
2112
|
if (!n)
|
|
2108
2113
|
throw new Error("searchUserData: 'userId' is required");
|
|
2109
2114
|
return await this.request(
|
|
@@ -2112,7 +2117,7 @@ class li {
|
|
|
2112
2117
|
{
|
|
2113
2118
|
category: s,
|
|
2114
2119
|
q: i,
|
|
2115
|
-
keys:
|
|
2120
|
+
keys: a && Object.keys(a).length > 0 ? a : {}
|
|
2116
2121
|
},
|
|
2117
2122
|
{},
|
|
2118
2123
|
!1
|
|
@@ -2187,14 +2192,14 @@ class li {
|
|
|
2187
2192
|
const n = this.appId;
|
|
2188
2193
|
if (!n)
|
|
2189
2194
|
throw new Error("searchInAppData: 'appId' is required");
|
|
2190
|
-
const { category: s, q: i, keys:
|
|
2195
|
+
const { category: s, q: i, keys: a } = e || {};
|
|
2191
2196
|
return await this.request(
|
|
2192
2197
|
"POST",
|
|
2193
2198
|
`/app/${encodeURIComponent(n)}/app-data/search`,
|
|
2194
2199
|
{
|
|
2195
2200
|
category: s,
|
|
2196
2201
|
q: i,
|
|
2197
|
-
keys:
|
|
2202
|
+
keys: a && Object.keys(a).length > 0 ? a : {}
|
|
2198
2203
|
},
|
|
2199
2204
|
{},
|
|
2200
2205
|
!1
|
|
@@ -2235,11 +2240,11 @@ class li {
|
|
|
2235
2240
|
const n = this.appId;
|
|
2236
2241
|
if (!n)
|
|
2237
2242
|
throw new Error("getAllUsersFromApp: 'appId' is required");
|
|
2238
|
-
const { cursor: s, limit: i } = e,
|
|
2239
|
-
return s && (
|
|
2243
|
+
const { cursor: s, limit: i } = e, a = {};
|
|
2244
|
+
return s && (a.cursor = s), i !== void 0 && (a.limit = i), await this.request(
|
|
2240
2245
|
"POST",
|
|
2241
2246
|
`/app/global/${encodeURIComponent(n)}/all-app-users`,
|
|
2242
|
-
|
|
2247
|
+
a,
|
|
2243
2248
|
{},
|
|
2244
2249
|
!1
|
|
2245
2250
|
// no credentials (consistent with your app-level user APIs)
|
|
@@ -2249,11 +2254,11 @@ class li {
|
|
|
2249
2254
|
const n = this.appId;
|
|
2250
2255
|
if (!n)
|
|
2251
2256
|
throw new Error("searchInAllAppUsers: 'appId' is required");
|
|
2252
|
-
const { q: s, keys: i = {} } = e,
|
|
2253
|
-
return s && (
|
|
2257
|
+
const { q: s, keys: i = {} } = e, a = {};
|
|
2258
|
+
return s && (a.q = s), i && Object.keys(i).length > 0 && (a.keys = i), await this.request(
|
|
2254
2259
|
"POST",
|
|
2255
2260
|
`/app/global/${encodeURIComponent(n)}/all-app-users/search`,
|
|
2256
|
-
|
|
2261
|
+
a,
|
|
2257
2262
|
{},
|
|
2258
2263
|
!1
|
|
2259
2264
|
// no credentials (matches your other app-level search APIs)
|
|
@@ -2263,11 +2268,11 @@ class li {
|
|
|
2263
2268
|
const n = this.appId;
|
|
2264
2269
|
if (!n)
|
|
2265
2270
|
throw new Error("getAllUsersDataFromApp: 'appId' is required");
|
|
2266
|
-
const { category: s, cursor: i, limit:
|
|
2267
|
-
return s && (
|
|
2271
|
+
const { category: s, cursor: i, limit: a } = e, o = {};
|
|
2272
|
+
return s && (o.category = s), i && (o.cursor = i), a !== void 0 && (o.limit = a), await this.request(
|
|
2268
2273
|
"POST",
|
|
2269
2274
|
`/app/global/${encodeURIComponent(n)}/all-app-users-data`,
|
|
2270
|
-
|
|
2275
|
+
o,
|
|
2271
2276
|
{},
|
|
2272
2277
|
!1
|
|
2273
2278
|
// no credentials (consistent with your app-data reads)
|
|
@@ -2277,11 +2282,11 @@ class li {
|
|
|
2277
2282
|
const n = this.appId;
|
|
2278
2283
|
if (!n)
|
|
2279
2284
|
throw new Error("searchInAllAppUsersData: 'appId' is required");
|
|
2280
|
-
const { category: s, q: i, keys:
|
|
2281
|
-
return s && (
|
|
2285
|
+
const { category: s, q: i, keys: a = {} } = e, o = {};
|
|
2286
|
+
return s && (o.category = s), i && (o.q = i), a && Object.keys(a).length > 0 && (o.keys = a), await this.request(
|
|
2282
2287
|
"POST",
|
|
2283
2288
|
`/app/global/${encodeURIComponent(n)}/all-app-users-data/search`,
|
|
2284
|
-
|
|
2289
|
+
o,
|
|
2285
2290
|
{},
|
|
2286
2291
|
!1
|
|
2287
2292
|
// no credentials (match your other app-level reads)
|
|
@@ -2303,19 +2308,19 @@ function Ln() {
|
|
|
2303
2308
|
if (Rt) return ke;
|
|
2304
2309
|
Rt = 1;
|
|
2305
2310
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
2306
|
-
function n(s, i,
|
|
2307
|
-
var
|
|
2308
|
-
if (
|
|
2309
|
-
|
|
2311
|
+
function n(s, i, a) {
|
|
2312
|
+
var o = null;
|
|
2313
|
+
if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
|
|
2314
|
+
a = {};
|
|
2310
2315
|
for (var c in i)
|
|
2311
|
-
c !== "key" && (
|
|
2312
|
-
} else
|
|
2313
|
-
return i =
|
|
2316
|
+
c !== "key" && (a[c] = i[c]);
|
|
2317
|
+
} else a = i;
|
|
2318
|
+
return i = a.ref, {
|
|
2314
2319
|
$$typeof: t,
|
|
2315
2320
|
type: s,
|
|
2316
|
-
key:
|
|
2321
|
+
key: o,
|
|
2317
2322
|
ref: i !== void 0 ? i : null,
|
|
2318
|
-
props:
|
|
2323
|
+
props: a
|
|
2319
2324
|
};
|
|
2320
2325
|
}
|
|
2321
2326
|
return ke.Fragment = e, ke.jsx = n, ke.jsxs = n, ke;
|
|
@@ -2362,7 +2367,7 @@ function qn() {
|
|
|
2362
2367
|
return l.displayName || "Context";
|
|
2363
2368
|
case g:
|
|
2364
2369
|
return (l._context.displayName || "Context") + ".Consumer";
|
|
2365
|
-
case
|
|
2370
|
+
case D:
|
|
2366
2371
|
var m = l.render;
|
|
2367
2372
|
return l = l.displayName, l || (l = m.displayName || m.name || "", l = l !== "" ? "ForwardRef(" + l + ")" : "ForwardRef"), l;
|
|
2368
2373
|
case q:
|
|
@@ -2388,11 +2393,11 @@ function qn() {
|
|
|
2388
2393
|
}
|
|
2389
2394
|
if (m) {
|
|
2390
2395
|
m = console;
|
|
2391
|
-
var S = m.error,
|
|
2396
|
+
var S = m.error, N = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
2392
2397
|
return S.call(
|
|
2393
2398
|
m,
|
|
2394
2399
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2395
|
-
|
|
2400
|
+
N
|
|
2396
2401
|
), e(l);
|
|
2397
2402
|
}
|
|
2398
2403
|
}
|
|
@@ -2411,10 +2416,10 @@ function qn() {
|
|
|
2411
2416
|
var l = R.A;
|
|
2412
2417
|
return l === null ? null : l.getOwner();
|
|
2413
2418
|
}
|
|
2414
|
-
function
|
|
2419
|
+
function a() {
|
|
2415
2420
|
return Error("react-stack-top-frame");
|
|
2416
2421
|
}
|
|
2417
|
-
function
|
|
2422
|
+
function o(l) {
|
|
2418
2423
|
if (G.call(l, "key")) {
|
|
2419
2424
|
var m = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
2420
2425
|
if (m && m.isReactWarning) return !1;
|
|
@@ -2439,14 +2444,14 @@ function qn() {
|
|
|
2439
2444
|
"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."
|
|
2440
2445
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
2441
2446
|
}
|
|
2442
|
-
function f(l, m, S,
|
|
2447
|
+
function f(l, m, S, N, ne, oe) {
|
|
2443
2448
|
var B = S.ref;
|
|
2444
2449
|
return l = {
|
|
2445
2450
|
$$typeof: u,
|
|
2446
2451
|
type: l,
|
|
2447
2452
|
key: m,
|
|
2448
2453
|
props: S,
|
|
2449
|
-
_owner:
|
|
2454
|
+
_owner: N
|
|
2450
2455
|
}, (B !== void 0 ? B : null) !== null ? Object.defineProperty(l, "ref", {
|
|
2451
2456
|
enumerable: !1,
|
|
2452
2457
|
get: d
|
|
@@ -2469,16 +2474,16 @@ function qn() {
|
|
|
2469
2474
|
configurable: !1,
|
|
2470
2475
|
enumerable: !1,
|
|
2471
2476
|
writable: !0,
|
|
2472
|
-
value:
|
|
2477
|
+
value: oe
|
|
2473
2478
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
2474
2479
|
}
|
|
2475
|
-
function x(l, m, S,
|
|
2480
|
+
function x(l, m, S, N, ne, oe) {
|
|
2476
2481
|
var B = m.children;
|
|
2477
2482
|
if (B !== void 0)
|
|
2478
|
-
if (
|
|
2483
|
+
if (N)
|
|
2479
2484
|
if (T(B)) {
|
|
2480
|
-
for (
|
|
2481
|
-
y(B[
|
|
2485
|
+
for (N = 0; N < B.length; N++)
|
|
2486
|
+
y(B[N]);
|
|
2482
2487
|
Object.freeze && Object.freeze(B);
|
|
2483
2488
|
} else
|
|
2484
2489
|
console.error(
|
|
@@ -2490,20 +2495,20 @@ function qn() {
|
|
|
2490
2495
|
var le = Object.keys(m).filter(function(z) {
|
|
2491
2496
|
return z !== "key";
|
|
2492
2497
|
});
|
|
2493
|
-
|
|
2498
|
+
N = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + N] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2494
2499
|
`A props object containing a "key" prop is being spread into JSX:
|
|
2495
2500
|
let props = %s;
|
|
2496
2501
|
<%s {...props} />
|
|
2497
2502
|
React keys must be passed directly to JSX without using spread:
|
|
2498
2503
|
let props = %s;
|
|
2499
2504
|
<%s key={someKey} {...props} />`,
|
|
2500
|
-
|
|
2505
|
+
N,
|
|
2501
2506
|
B,
|
|
2502
2507
|
le,
|
|
2503
2508
|
B
|
|
2504
|
-
), Y[B +
|
|
2509
|
+
), Y[B + N] = !0);
|
|
2505
2510
|
}
|
|
2506
|
-
if (B = null, S !== void 0 && (n(S), B = "" + S),
|
|
2511
|
+
if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
|
|
2507
2512
|
S = {};
|
|
2508
2513
|
for (var ye in m)
|
|
2509
2514
|
ye !== "key" && (S[ye] = m[ye]);
|
|
@@ -2517,7 +2522,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2517
2522
|
S,
|
|
2518
2523
|
i(),
|
|
2519
2524
|
ne,
|
|
2520
|
-
|
|
2525
|
+
oe
|
|
2521
2526
|
);
|
|
2522
2527
|
}
|
|
2523
2528
|
function y(l) {
|
|
@@ -2526,7 +2531,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2526
2531
|
function k(l) {
|
|
2527
2532
|
return typeof l == "object" && l !== null && l.$$typeof === u;
|
|
2528
2533
|
}
|
|
2529
|
-
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"),
|
|
2534
|
+
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"), D = 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, A = console.createTask ? console.createTask : function() {
|
|
2530
2535
|
return null;
|
|
2531
2536
|
};
|
|
2532
2537
|
E = {
|
|
@@ -2536,27 +2541,27 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2536
2541
|
};
|
|
2537
2542
|
var M, K = {}, H = E.react_stack_bottom_frame.bind(
|
|
2538
2543
|
E,
|
|
2539
|
-
|
|
2540
|
-
)(), F = A(s(
|
|
2544
|
+
a
|
|
2545
|
+
)(), F = A(s(a)), Y = {};
|
|
2541
2546
|
Ee.Fragment = h, Ee.jsx = function(l, m, S) {
|
|
2542
|
-
var
|
|
2547
|
+
var N = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2543
2548
|
return x(
|
|
2544
2549
|
l,
|
|
2545
2550
|
m,
|
|
2546
2551
|
S,
|
|
2547
2552
|
!1,
|
|
2548
|
-
|
|
2549
|
-
|
|
2553
|
+
N ? Error("react-stack-top-frame") : H,
|
|
2554
|
+
N ? A(s(l)) : F
|
|
2550
2555
|
);
|
|
2551
2556
|
}, Ee.jsxs = function(l, m, S) {
|
|
2552
|
-
var
|
|
2557
|
+
var N = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2553
2558
|
return x(
|
|
2554
2559
|
l,
|
|
2555
2560
|
m,
|
|
2556
2561
|
S,
|
|
2557
2562
|
!0,
|
|
2558
|
-
|
|
2559
|
-
|
|
2563
|
+
N ? Error("react-stack-top-frame") : H,
|
|
2564
|
+
N ? A(s(l)) : F
|
|
2560
2565
|
);
|
|
2561
2566
|
};
|
|
2562
2567
|
})()), Ee;
|
|
@@ -2613,8 +2618,8 @@ const Yn = zt(
|
|
|
2613
2618
|
strokeWidth: n = 2,
|
|
2614
2619
|
absoluteStrokeWidth: s,
|
|
2615
2620
|
className: i = "",
|
|
2616
|
-
children:
|
|
2617
|
-
iconNode:
|
|
2621
|
+
children: a,
|
|
2622
|
+
iconNode: o,
|
|
2618
2623
|
...c
|
|
2619
2624
|
}, d) => Ke(
|
|
2620
2625
|
"svg",
|
|
@@ -2626,12 +2631,12 @@ const Yn = zt(
|
|
|
2626
2631
|
stroke: t,
|
|
2627
2632
|
strokeWidth: s ? Number(n) * 24 / Number(e) : n,
|
|
2628
2633
|
className: sr("lucide", i),
|
|
2629
|
-
...!
|
|
2634
|
+
...!a && !Hn(c) && { "aria-hidden": "true" },
|
|
2630
2635
|
...c
|
|
2631
2636
|
},
|
|
2632
2637
|
[
|
|
2633
|
-
...
|
|
2634
|
-
...Array.isArray(
|
|
2638
|
+
...o.map(([f, x]) => Ke(f, x)),
|
|
2639
|
+
...Array.isArray(a) ? a : [a]
|
|
2635
2640
|
]
|
|
2636
2641
|
)
|
|
2637
2642
|
);
|
|
@@ -2643,8 +2648,8 @@ const Yn = zt(
|
|
|
2643
2648
|
*/
|
|
2644
2649
|
const L = (t, e) => {
|
|
2645
2650
|
const n = zt(
|
|
2646
|
-
({ className: s, ...i },
|
|
2647
|
-
ref:
|
|
2651
|
+
({ className: s, ...i }, a) => Ke(Yn, {
|
|
2652
|
+
ref: a,
|
|
2648
2653
|
iconNode: e,
|
|
2649
2654
|
className: sr(
|
|
2650
2655
|
`lucide-${Wn(Ot(t))}`,
|
|
@@ -2754,7 +2759,7 @@ const ss = [
|
|
|
2754
2759
|
* This source code is licensed under the ISC license.
|
|
2755
2760
|
* See the LICENSE file in the root directory of this source tree.
|
|
2756
2761
|
*/
|
|
2757
|
-
const
|
|
2762
|
+
const as = [
|
|
2758
2763
|
[
|
|
2759
2764
|
"path",
|
|
2760
2765
|
{
|
|
@@ -2771,14 +2776,14 @@ const os = [
|
|
|
2771
2776
|
}
|
|
2772
2777
|
],
|
|
2773
2778
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
2774
|
-
],
|
|
2779
|
+
], at = L("eye-off", as);
|
|
2775
2780
|
/**
|
|
2776
2781
|
* @license lucide-react v0.544.0 - ISC
|
|
2777
2782
|
*
|
|
2778
2783
|
* This source code is licensed under the ISC license.
|
|
2779
2784
|
* See the LICENSE file in the root directory of this source tree.
|
|
2780
2785
|
*/
|
|
2781
|
-
const
|
|
2786
|
+
const os = [
|
|
2782
2787
|
[
|
|
2783
2788
|
"path",
|
|
2784
2789
|
{
|
|
@@ -2787,7 +2792,7 @@ const as = [
|
|
|
2787
2792
|
}
|
|
2788
2793
|
],
|
|
2789
2794
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
2790
|
-
],
|
|
2795
|
+
], ot = L("eye", os);
|
|
2791
2796
|
/**
|
|
2792
2797
|
* @license lucide-react v0.544.0 - ISC
|
|
2793
2798
|
*
|
|
@@ -2830,7 +2835,7 @@ const us = [
|
|
|
2830
2835
|
}
|
|
2831
2836
|
],
|
|
2832
2837
|
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
|
|
2833
|
-
],
|
|
2838
|
+
], ar = L("key-round", us);
|
|
2834
2839
|
/**
|
|
2835
2840
|
* @license lucide-react v0.544.0 - ISC
|
|
2836
2841
|
*
|
|
@@ -3030,7 +3035,7 @@ const zs = [
|
|
|
3030
3035
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
3031
3036
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3032
3037
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
3033
|
-
],
|
|
3038
|
+
], Ne = L("trash-2", zs);
|
|
3034
3039
|
/**
|
|
3035
3040
|
* @license lucide-react v0.544.0 - ISC
|
|
3036
3041
|
*
|
|
@@ -3066,24 +3071,24 @@ const _s = [
|
|
|
3066
3071
|
* This source code is licensed under the ISC license.
|
|
3067
3072
|
* See the LICENSE file in the root directory of this source tree.
|
|
3068
3073
|
*/
|
|
3069
|
-
const
|
|
3074
|
+
const Ns = [
|
|
3070
3075
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
3071
3076
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
3072
|
-
], he = L("user",
|
|
3077
|
+
], he = L("user", Ns);
|
|
3073
3078
|
/**
|
|
3074
3079
|
* @license lucide-react v0.544.0 - ISC
|
|
3075
3080
|
*
|
|
3076
3081
|
* This source code is licensed under the ISC license.
|
|
3077
3082
|
* See the LICENSE file in the root directory of this source tree.
|
|
3078
3083
|
*/
|
|
3079
|
-
const
|
|
3084
|
+
const Ds = [
|
|
3080
3085
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3081
3086
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3082
|
-
], Oe = L("x",
|
|
3087
|
+
], Oe = L("x", Ds), or = cr(null), ci = ({
|
|
3083
3088
|
authix: t,
|
|
3084
3089
|
children: e
|
|
3085
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
3086
|
-
const t = dr(
|
|
3090
|
+
}) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
|
|
3091
|
+
const t = dr(or);
|
|
3087
3092
|
if (!t)
|
|
3088
3093
|
throw new Error("useAuthix must be used inside <AuthixProvider />");
|
|
3089
3094
|
return t;
|
|
@@ -3093,8 +3098,8 @@ const Ns = [
|
|
|
3093
3098
|
title: n = "Create Your Account",
|
|
3094
3099
|
subtitle: s = "Join our platform today",
|
|
3095
3100
|
primaryColor: i = "#00C214",
|
|
3096
|
-
gradient:
|
|
3097
|
-
darkMode:
|
|
3101
|
+
gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3102
|
+
darkMode: o = !0,
|
|
3098
3103
|
// Only avatar is optional
|
|
3099
3104
|
showAvatar: c = !1,
|
|
3100
3105
|
roles: d = [],
|
|
@@ -3111,7 +3116,7 @@ const Ns = [
|
|
|
3111
3116
|
password: "",
|
|
3112
3117
|
role: d.length ? d[0] : "user",
|
|
3113
3118
|
...c && { avatarUrl: "" }
|
|
3114
|
-
}, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [
|
|
3119
|
+
}, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [D, 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)";
|
|
3115
3120
|
Ce.useEffect(() => {
|
|
3116
3121
|
if (typeof window < "u") {
|
|
3117
3122
|
const F = () => X(window.innerWidth < 768);
|
|
@@ -3180,7 +3185,7 @@ const Ns = [
|
|
|
3180
3185
|
flexDirection: "column",
|
|
3181
3186
|
borderRadius: "10px",
|
|
3182
3187
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3183
|
-
backgroundColor:
|
|
3188
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3184
3189
|
padding: O ? "30px 24px" : "20px 28px"
|
|
3185
3190
|
},
|
|
3186
3191
|
children: [
|
|
@@ -3315,9 +3320,9 @@ const Ns = [
|
|
|
3315
3320
|
left: 0,
|
|
3316
3321
|
width: "50%",
|
|
3317
3322
|
height: "100%",
|
|
3318
|
-
backgroundColor:
|
|
3323
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3319
3324
|
// dark/light background
|
|
3320
|
-
boxShadow:
|
|
3325
|
+
boxShadow: o ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
|
|
3321
3326
|
// subtle shadow
|
|
3322
3327
|
borderRadius: "10px",
|
|
3323
3328
|
transition: "transform 0.3s ease, background-color 0.3s ease",
|
|
@@ -3336,7 +3341,7 @@ const Ns = [
|
|
|
3336
3341
|
zIndex: 10,
|
|
3337
3342
|
border: "none",
|
|
3338
3343
|
background: "transparent",
|
|
3339
|
-
color: w.role === d[0] ? i :
|
|
3344
|
+
color: w.role === d[0] ? i : o ? "#9ca3af" : "#6b7280",
|
|
3340
3345
|
// theme-aware inactive color
|
|
3341
3346
|
fontWeight: w.role === d[0] ? 600 : 500,
|
|
3342
3347
|
fontSize: "14px",
|
|
@@ -3358,7 +3363,7 @@ const Ns = [
|
|
|
3358
3363
|
zIndex: 10,
|
|
3359
3364
|
border: "none",
|
|
3360
3365
|
background: "transparent",
|
|
3361
|
-
color: w.role === d[1] ? i :
|
|
3366
|
+
color: w.role === d[1] ? i : o ? "#9ca3af" : "#6b7280",
|
|
3362
3367
|
fontWeight: w.role === d[1] ? 600 : 500,
|
|
3363
3368
|
fontSize: "14px",
|
|
3364
3369
|
display: "flex",
|
|
@@ -3543,7 +3548,7 @@ const Ns = [
|
|
|
3543
3548
|
cursor: "pointer",
|
|
3544
3549
|
padding: "4px"
|
|
3545
3550
|
},
|
|
3546
|
-
children: I ? /* @__PURE__ */ r.jsx(
|
|
3551
|
+
children: I ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
|
|
3547
3552
|
}
|
|
3548
3553
|
)
|
|
3549
3554
|
] }),
|
|
@@ -3628,7 +3633,7 @@ const Ns = [
|
|
|
3628
3633
|
)
|
|
3629
3634
|
}
|
|
3630
3635
|
),
|
|
3631
|
-
|
|
3636
|
+
D && /* @__PURE__ */ r.jsxs(
|
|
3632
3637
|
"div",
|
|
3633
3638
|
{
|
|
3634
3639
|
style: {
|
|
@@ -3638,13 +3643,13 @@ const Ns = [
|
|
|
3638
3643
|
display: "flex",
|
|
3639
3644
|
alignItems: "start",
|
|
3640
3645
|
gap: "10px",
|
|
3641
|
-
backgroundColor:
|
|
3642
|
-
border:
|
|
3643
|
-
color:
|
|
3646
|
+
backgroundColor: D.type === "success" ? `${i}15` : "rgba(239,68,68,0.1)",
|
|
3647
|
+
border: D.type === "success" ? `1px solid ${i}30` : "1px solid rgba(239,68,68,0.3)",
|
|
3648
|
+
color: D.type === "success" ? i : "#ef4444"
|
|
3644
3649
|
},
|
|
3645
3650
|
children: [
|
|
3646
|
-
|
|
3647
|
-
/* @__PURE__ */ r.jsx("span", { children:
|
|
3651
|
+
D.type === "success" ? /* @__PURE__ */ r.jsx(ue, { size: 20 }) : /* @__PURE__ */ r.jsx(ie, { size: 20 }),
|
|
3652
|
+
/* @__PURE__ */ r.jsx("span", { children: D.text })
|
|
3648
3653
|
]
|
|
3649
3654
|
}
|
|
3650
3655
|
),
|
|
@@ -3655,7 +3660,7 @@ const Ns = [
|
|
|
3655
3660
|
disabled: g,
|
|
3656
3661
|
style: {
|
|
3657
3662
|
padding: "12px",
|
|
3658
|
-
background:
|
|
3663
|
+
background: a,
|
|
3659
3664
|
color: "#fff",
|
|
3660
3665
|
border: "none",
|
|
3661
3666
|
borderRadius: "10px",
|
|
@@ -3718,17 +3723,17 @@ const Ns = [
|
|
|
3718
3723
|
title: n = "Sign In to Your Account",
|
|
3719
3724
|
subtitle: s = "Welcome back! Please enter your details",
|
|
3720
3725
|
primaryColor: i = "#00C214",
|
|
3721
|
-
gradient:
|
|
3722
|
-
darkMode:
|
|
3726
|
+
gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3727
|
+
darkMode: o = !0,
|
|
3723
3728
|
signupUrl: c,
|
|
3724
3729
|
onSuccess: d,
|
|
3725
3730
|
onError: f
|
|
3726
3731
|
}) => {
|
|
3727
|
-
const x = ge(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [I, C] = P(!1), [g, U] = P(null), [
|
|
3732
|
+
const x = ge(), [y, k] = P("login"), [E, u] = P(1), [w, h] = P(!1), [I, C] = P(!1), [g, U] = P(null), [D, b] = P(""), [j, q] = P(""), [O, X] = P({
|
|
3728
3733
|
email: "",
|
|
3729
3734
|
otp: "",
|
|
3730
3735
|
newPassword: ""
|
|
3731
|
-
}), [W, R] = P(!1), G =
|
|
3736
|
+
}), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", A = 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)";
|
|
3732
3737
|
Ce.useEffect(() => {
|
|
3733
3738
|
if (typeof window < "u") {
|
|
3734
3739
|
const m = () => R(window.innerWidth < 768);
|
|
@@ -3738,17 +3743,17 @@ const Ns = [
|
|
|
3738
3743
|
const K = async (m) => {
|
|
3739
3744
|
m.preventDefault(), C(!0), U(null);
|
|
3740
3745
|
try {
|
|
3741
|
-
const S = await x.loginUser({ email:
|
|
3742
|
-
if (!
|
|
3746
|
+
const S = await x.loginUser({ email: D, password: j }), { user: N } = S;
|
|
3747
|
+
if (!N)
|
|
3743
3748
|
throw new Error(S.message || "Login failed");
|
|
3744
3749
|
if (typeof document < "u") {
|
|
3745
|
-
const ne = "a_s_b",
|
|
3746
|
-
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${
|
|
3750
|
+
const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
|
|
3751
|
+
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
|
|
3747
3752
|
}
|
|
3748
|
-
U({ type: "success", text: `Welcome ${
|
|
3753
|
+
U({ type: "success", text: `Welcome ${N.name}` }), d?.(N);
|
|
3749
3754
|
} catch (S) {
|
|
3750
|
-
const
|
|
3751
|
-
U({ type: "error", text:
|
|
3755
|
+
const N = S.message || "Login failed";
|
|
3756
|
+
U({ type: "error", text: N }), f?.(S);
|
|
3752
3757
|
} finally {
|
|
3753
3758
|
C(!1);
|
|
3754
3759
|
}
|
|
@@ -3825,7 +3830,7 @@ const Ns = [
|
|
|
3825
3830
|
flexDirection: "column",
|
|
3826
3831
|
borderRadius: "10px",
|
|
3827
3832
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3828
|
-
backgroundColor:
|
|
3833
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3829
3834
|
padding: W ? "30px 24px" : "18px 28px"
|
|
3830
3835
|
},
|
|
3831
3836
|
children: [
|
|
@@ -3905,7 +3910,7 @@ const Ns = [
|
|
|
3905
3910
|
style: {
|
|
3906
3911
|
fontSize: "14px",
|
|
3907
3912
|
fontWeight: 500,
|
|
3908
|
-
color:
|
|
3913
|
+
color: o ? "#ffffff" : "#000000"
|
|
3909
3914
|
},
|
|
3910
3915
|
children: "Email Address"
|
|
3911
3916
|
}
|
|
@@ -3930,7 +3935,7 @@ const Ns = [
|
|
|
3930
3935
|
id: "login-email",
|
|
3931
3936
|
type: "email",
|
|
3932
3937
|
placeholder: "Enter your email",
|
|
3933
|
-
value:
|
|
3938
|
+
value: D,
|
|
3934
3939
|
onChange: (m) => b(m.target.value),
|
|
3935
3940
|
style: l
|
|
3936
3941
|
}
|
|
@@ -3951,7 +3956,7 @@ const Ns = [
|
|
|
3951
3956
|
style: {
|
|
3952
3957
|
fontSize: "14px",
|
|
3953
3958
|
fontWeight: 500,
|
|
3954
|
-
color:
|
|
3959
|
+
color: o ? "#ffffff" : "#000000"
|
|
3955
3960
|
},
|
|
3956
3961
|
children: "Password"
|
|
3957
3962
|
}
|
|
@@ -3997,7 +4002,7 @@ const Ns = [
|
|
|
3997
4002
|
color: T,
|
|
3998
4003
|
cursor: "pointer"
|
|
3999
4004
|
},
|
|
4000
|
-
children: w ? /* @__PURE__ */ r.jsx(
|
|
4005
|
+
children: w ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
|
|
4001
4006
|
}
|
|
4002
4007
|
)
|
|
4003
4008
|
] })
|
|
@@ -4050,7 +4055,7 @@ const Ns = [
|
|
|
4050
4055
|
disabled: I,
|
|
4051
4056
|
style: {
|
|
4052
4057
|
padding: "12px",
|
|
4053
|
-
background:
|
|
4058
|
+
background: a,
|
|
4054
4059
|
color: "#fff",
|
|
4055
4060
|
border: "none",
|
|
4056
4061
|
borderRadius: "10px",
|
|
@@ -4081,7 +4086,7 @@ const Ns = [
|
|
|
4081
4086
|
style: {
|
|
4082
4087
|
fontSize: "14px",
|
|
4083
4088
|
fontWeight: 500,
|
|
4084
|
-
color:
|
|
4089
|
+
color: o ? "#ffffff" : "#000000"
|
|
4085
4090
|
},
|
|
4086
4091
|
children: "Email Address"
|
|
4087
4092
|
}
|
|
@@ -4132,14 +4137,14 @@ const Ns = [
|
|
|
4132
4137
|
style: {
|
|
4133
4138
|
fontSize: "14px",
|
|
4134
4139
|
fontWeight: 500,
|
|
4135
|
-
color:
|
|
4140
|
+
color: o ? "#ffffff" : "#000000"
|
|
4136
4141
|
},
|
|
4137
4142
|
children: "One-Time Password (OTP)"
|
|
4138
4143
|
}
|
|
4139
4144
|
),
|
|
4140
4145
|
/* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
|
|
4141
4146
|
/* @__PURE__ */ r.jsx(
|
|
4142
|
-
|
|
4147
|
+
ar,
|
|
4143
4148
|
{
|
|
4144
4149
|
size: 20,
|
|
4145
4150
|
style: {
|
|
@@ -4183,7 +4188,7 @@ const Ns = [
|
|
|
4183
4188
|
style: {
|
|
4184
4189
|
fontSize: "14px",
|
|
4185
4190
|
fontWeight: 500,
|
|
4186
|
-
color:
|
|
4191
|
+
color: o ? "#ffffff" : "#000000"
|
|
4187
4192
|
},
|
|
4188
4193
|
children: "New Password"
|
|
4189
4194
|
}
|
|
@@ -4226,7 +4231,7 @@ const Ns = [
|
|
|
4226
4231
|
disabled: I,
|
|
4227
4232
|
style: {
|
|
4228
4233
|
padding: "12px",
|
|
4229
|
-
background:
|
|
4234
|
+
background: a,
|
|
4230
4235
|
color: "#fff",
|
|
4231
4236
|
border: "none",
|
|
4232
4237
|
fontSize: "14px",
|
|
@@ -4311,7 +4316,7 @@ const Ns = [
|
|
|
4311
4316
|
const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
|
|
4312
4317
|
s(c ? "authenticated" : "unauthenticated");
|
|
4313
4318
|
}, []);
|
|
4314
|
-
const i = (
|
|
4319
|
+
const i = (a) => typeof a == "function" ? a() : a;
|
|
4315
4320
|
return n === "loading" ? null : n === "unauthenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
4316
4321
|
}, fi = ({
|
|
4317
4322
|
children: t,
|
|
@@ -4324,7 +4329,7 @@ const Ns = [
|
|
|
4324
4329
|
const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
|
|
4325
4330
|
s(c ? "authenticated" : "unauthenticated");
|
|
4326
4331
|
}, []);
|
|
4327
|
-
const i = (
|
|
4332
|
+
const i = (a) => typeof a == "function" ? a() : a;
|
|
4328
4333
|
return n === "loading" ? null : n === "authenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
4329
4334
|
}, Fs = ({
|
|
4330
4335
|
isOpen: t,
|
|
@@ -4332,9 +4337,9 @@ const Ns = [
|
|
|
4332
4337
|
onSuccess: n,
|
|
4333
4338
|
onError: s,
|
|
4334
4339
|
userId: i,
|
|
4335
|
-
colors:
|
|
4340
|
+
colors: a
|
|
4336
4341
|
}) => {
|
|
4337
|
-
const
|
|
4342
|
+
const o = ge(), [c, d] = P(!1), [f, x] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
|
|
4338
4343
|
if (ee(() => {
|
|
4339
4344
|
if (typeof window > "u") return;
|
|
4340
4345
|
const g = () => {
|
|
@@ -4345,7 +4350,7 @@ const Ns = [
|
|
|
4345
4350
|
const w = async () => {
|
|
4346
4351
|
d(!0), k("processing");
|
|
4347
4352
|
try {
|
|
4348
|
-
const g = await
|
|
4353
|
+
const g = await o.deleteUser({
|
|
4349
4354
|
userId: i
|
|
4350
4355
|
});
|
|
4351
4356
|
g.success ? (n(g.message || "Account deleted successfully"), k("success"), setTimeout(() => {
|
|
@@ -4397,14 +4402,14 @@ const Ns = [
|
|
|
4397
4402
|
color: "white",
|
|
4398
4403
|
flexShrink: 0
|
|
4399
4404
|
},
|
|
4400
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4405
|
+
children: /* @__PURE__ */ r.jsx(Ne, { size: 20 })
|
|
4401
4406
|
}
|
|
4402
4407
|
),
|
|
4403
4408
|
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
|
|
4404
4409
|
"h3",
|
|
4405
4410
|
{
|
|
4406
4411
|
style: {
|
|
4407
|
-
color:
|
|
4412
|
+
color: a.textPrimary,
|
|
4408
4413
|
margin: 0,
|
|
4409
4414
|
fontSize: "20px",
|
|
4410
4415
|
fontWeight: 700,
|
|
@@ -4424,7 +4429,7 @@ const Ns = [
|
|
|
4424
4429
|
style: {
|
|
4425
4430
|
background: "transparent",
|
|
4426
4431
|
border: "none",
|
|
4427
|
-
color:
|
|
4432
|
+
color: a.textTertiary,
|
|
4428
4433
|
cursor: "pointer",
|
|
4429
4434
|
padding: "8px",
|
|
4430
4435
|
borderRadius: "8px",
|
|
@@ -4437,10 +4442,10 @@ const Ns = [
|
|
|
4437
4442
|
transition: "all 0.2s ease"
|
|
4438
4443
|
},
|
|
4439
4444
|
onMouseOver: (g) => {
|
|
4440
|
-
g.currentTarget.style.backgroundColor =
|
|
4445
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
|
|
4441
4446
|
},
|
|
4442
4447
|
onMouseOut: (g) => {
|
|
4443
|
-
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color =
|
|
4448
|
+
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
|
|
4444
4449
|
},
|
|
4445
4450
|
children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
|
|
4446
4451
|
}
|
|
@@ -4455,8 +4460,8 @@ const Ns = [
|
|
|
4455
4460
|
display: "flex",
|
|
4456
4461
|
gap: "16px",
|
|
4457
4462
|
padding: "20px",
|
|
4458
|
-
background: `${
|
|
4459
|
-
border: `1px solid ${
|
|
4463
|
+
background: `${a.error}15`,
|
|
4464
|
+
border: `1px solid ${a.error}30`,
|
|
4460
4465
|
borderRadius: "12px",
|
|
4461
4466
|
marginBottom: "20px"
|
|
4462
4467
|
},
|
|
@@ -4465,7 +4470,7 @@ const Ns = [
|
|
|
4465
4470
|
"div",
|
|
4466
4471
|
{
|
|
4467
4472
|
style: {
|
|
4468
|
-
color:
|
|
4473
|
+
color: a.error,
|
|
4469
4474
|
flexShrink: 0,
|
|
4470
4475
|
display: "flex",
|
|
4471
4476
|
alignItems: "flex-start"
|
|
@@ -4478,7 +4483,7 @@ const Ns = [
|
|
|
4478
4483
|
"h4",
|
|
4479
4484
|
{
|
|
4480
4485
|
style: {
|
|
4481
|
-
color:
|
|
4486
|
+
color: a.textPrimary,
|
|
4482
4487
|
margin: "0 0 12px 0",
|
|
4483
4488
|
fontSize: "16px",
|
|
4484
4489
|
fontWeight: 600
|
|
@@ -4515,10 +4520,10 @@ const Ns = [
|
|
|
4515
4520
|
alignItems: "center",
|
|
4516
4521
|
gap: "10px",
|
|
4517
4522
|
fontSize: "14px",
|
|
4518
|
-
color:
|
|
4523
|
+
color: a.textSecondary
|
|
4519
4524
|
},
|
|
4520
4525
|
children: [
|
|
4521
|
-
/* @__PURE__ */ r.jsx("div", { style: { color:
|
|
4526
|
+
/* @__PURE__ */ r.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: g.icon }),
|
|
4522
4527
|
/* @__PURE__ */ r.jsx("span", { children: g.text })
|
|
4523
4528
|
]
|
|
4524
4529
|
},
|
|
@@ -4548,9 +4553,9 @@ const Ns = [
|
|
|
4548
4553
|
style: {
|
|
4549
4554
|
padding: "10px 24px",
|
|
4550
4555
|
borderRadius: "10px",
|
|
4551
|
-
border: `1.5px solid ${
|
|
4556
|
+
border: `1.5px solid ${a.border}`,
|
|
4552
4557
|
background: "transparent",
|
|
4553
|
-
color:
|
|
4558
|
+
color: a.textPrimary,
|
|
4554
4559
|
fontSize: "14px",
|
|
4555
4560
|
fontWeight: 500,
|
|
4556
4561
|
cursor: "pointer",
|
|
@@ -4559,7 +4564,7 @@ const Ns = [
|
|
|
4559
4564
|
transition: "all 0.2s ease"
|
|
4560
4565
|
},
|
|
4561
4566
|
onMouseOver: (g) => {
|
|
4562
|
-
g.currentTarget.style.backgroundColor =
|
|
4567
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
|
|
4563
4568
|
},
|
|
4564
4569
|
onMouseOut: (g) => {
|
|
4565
4570
|
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4596,7 +4601,7 @@ const Ns = [
|
|
|
4596
4601
|
g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)";
|
|
4597
4602
|
},
|
|
4598
4603
|
children: [
|
|
4599
|
-
/* @__PURE__ */ r.jsx(
|
|
4604
|
+
/* @__PURE__ */ r.jsx(Ne, { size: 16 }),
|
|
4600
4605
|
"Continue to Delete"
|
|
4601
4606
|
]
|
|
4602
4607
|
}
|
|
@@ -4638,7 +4643,7 @@ const Ns = [
|
|
|
4638
4643
|
"h3",
|
|
4639
4644
|
{
|
|
4640
4645
|
style: {
|
|
4641
|
-
color:
|
|
4646
|
+
color: a.textPrimary,
|
|
4642
4647
|
margin: 0,
|
|
4643
4648
|
fontSize: "20px",
|
|
4644
4649
|
fontWeight: 700,
|
|
@@ -4655,7 +4660,7 @@ const Ns = [
|
|
|
4655
4660
|
"p",
|
|
4656
4661
|
{
|
|
4657
4662
|
style: {
|
|
4658
|
-
color:
|
|
4663
|
+
color: a.textSecondary,
|
|
4659
4664
|
marginBottom: "16px",
|
|
4660
4665
|
fontSize: "14px",
|
|
4661
4666
|
lineHeight: "1.5"
|
|
@@ -4663,7 +4668,7 @@ const Ns = [
|
|
|
4663
4668
|
children: [
|
|
4664
4669
|
"Type",
|
|
4665
4670
|
" ",
|
|
4666
|
-
/* @__PURE__ */ r.jsx("strong", { style: { color:
|
|
4671
|
+
/* @__PURE__ */ r.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
|
|
4667
4672
|
" ",
|
|
4668
4673
|
"to confirm:"
|
|
4669
4674
|
]
|
|
@@ -4680,16 +4685,16 @@ const Ns = [
|
|
|
4680
4685
|
width: "100%",
|
|
4681
4686
|
padding: "14px 16px",
|
|
4682
4687
|
borderRadius: "10px",
|
|
4683
|
-
border: `2px solid ${h ?
|
|
4688
|
+
border: `2px solid ${h ? a.success : a.error}`,
|
|
4684
4689
|
backgroundColor: "transparent",
|
|
4685
|
-
color:
|
|
4690
|
+
color: a.textPrimary,
|
|
4686
4691
|
fontSize: "15px",
|
|
4687
4692
|
outline: "none",
|
|
4688
4693
|
transition: "all 0.2s ease",
|
|
4689
4694
|
boxSizing: "border-box"
|
|
4690
4695
|
},
|
|
4691
4696
|
onFocus: (g) => {
|
|
4692
|
-
g.target.style.boxShadow = `0 0 0 3px ${
|
|
4697
|
+
g.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
4693
4698
|
},
|
|
4694
4699
|
onBlur: (g) => {
|
|
4695
4700
|
g.target.style.boxShadow = "none";
|
|
@@ -4705,7 +4710,7 @@ const Ns = [
|
|
|
4705
4710
|
alignItems: "center",
|
|
4706
4711
|
gap: "8px",
|
|
4707
4712
|
marginTop: "10px",
|
|
4708
|
-
color:
|
|
4713
|
+
color: a.success,
|
|
4709
4714
|
fontSize: "14px",
|
|
4710
4715
|
fontWeight: 500
|
|
4711
4716
|
},
|
|
@@ -4736,9 +4741,9 @@ const Ns = [
|
|
|
4736
4741
|
style: {
|
|
4737
4742
|
padding: "10px 24px",
|
|
4738
4743
|
borderRadius: "10px",
|
|
4739
|
-
border: `1.5px solid ${
|
|
4744
|
+
border: `1.5px solid ${a.border}`,
|
|
4740
4745
|
background: "transparent",
|
|
4741
|
-
color:
|
|
4746
|
+
color: a.textPrimary,
|
|
4742
4747
|
fontSize: "14px",
|
|
4743
4748
|
fontWeight: 500,
|
|
4744
4749
|
cursor: "pointer",
|
|
@@ -4747,7 +4752,7 @@ const Ns = [
|
|
|
4747
4752
|
transition: "all 0.2s ease"
|
|
4748
4753
|
},
|
|
4749
4754
|
onMouseOver: (g) => {
|
|
4750
|
-
g.currentTarget.style.backgroundColor =
|
|
4755
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
|
|
4751
4756
|
},
|
|
4752
4757
|
onMouseOut: (g) => {
|
|
4753
4758
|
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4786,7 +4791,7 @@ const Ns = [
|
|
|
4786
4791
|
h && !c && (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
|
|
4787
4792
|
},
|
|
4788
4793
|
children: [
|
|
4789
|
-
/* @__PURE__ */ r.jsx(
|
|
4794
|
+
/* @__PURE__ */ r.jsx(Ne, { size: 16 }),
|
|
4790
4795
|
"Yes, Delete My Account"
|
|
4791
4796
|
]
|
|
4792
4797
|
}
|
|
@@ -4837,7 +4842,7 @@ const Ns = [
|
|
|
4837
4842
|
"h3",
|
|
4838
4843
|
{
|
|
4839
4844
|
style: {
|
|
4840
|
-
color:
|
|
4845
|
+
color: a.textPrimary,
|
|
4841
4846
|
margin: 0,
|
|
4842
4847
|
fontSize: "20px",
|
|
4843
4848
|
fontWeight: 700,
|
|
@@ -4850,7 +4855,7 @@ const Ns = [
|
|
|
4850
4855
|
"p",
|
|
4851
4856
|
{
|
|
4852
4857
|
style: {
|
|
4853
|
-
color:
|
|
4858
|
+
color: a.textTertiary,
|
|
4854
4859
|
margin: "4px 0 0 0",
|
|
4855
4860
|
fontSize: "14px",
|
|
4856
4861
|
lineHeight: "1.4"
|
|
@@ -4884,7 +4889,7 @@ const Ns = [
|
|
|
4884
4889
|
padding: "12px",
|
|
4885
4890
|
borderRadius: "8px",
|
|
4886
4891
|
transition: "all 0.2s ease",
|
|
4887
|
-
backgroundColor: g.active ? `${
|
|
4892
|
+
backgroundColor: g.active ? `${a.accent}10` : "transparent"
|
|
4888
4893
|
},
|
|
4889
4894
|
children: [
|
|
4890
4895
|
/* @__PURE__ */ r.jsx(
|
|
@@ -4894,9 +4899,9 @@ const Ns = [
|
|
|
4894
4899
|
width: "8px",
|
|
4895
4900
|
height: "8px",
|
|
4896
4901
|
borderRadius: "50%",
|
|
4897
|
-
backgroundColor: g.active ?
|
|
4902
|
+
backgroundColor: g.active ? a.accent : a.textTertiary,
|
|
4898
4903
|
transition: "all 0.3s ease",
|
|
4899
|
-
boxShadow: g.active ? `0 0 0 4px ${
|
|
4904
|
+
boxShadow: g.active ? `0 0 0 4px ${a.accent}20` : "none"
|
|
4900
4905
|
}
|
|
4901
4906
|
}
|
|
4902
4907
|
),
|
|
@@ -4905,7 +4910,7 @@ const Ns = [
|
|
|
4905
4910
|
{
|
|
4906
4911
|
style: {
|
|
4907
4912
|
fontSize: "14px",
|
|
4908
|
-
color: g.active ?
|
|
4913
|
+
color: g.active ? a.textPrimary : a.textSecondary,
|
|
4909
4914
|
fontWeight: g.active ? 500 : 400
|
|
4910
4915
|
},
|
|
4911
4916
|
children: g.text
|
|
@@ -4925,17 +4930,17 @@ const Ns = [
|
|
|
4925
4930
|
alignItems: "center",
|
|
4926
4931
|
gap: "10px",
|
|
4927
4932
|
padding: "16px",
|
|
4928
|
-
background: `${
|
|
4933
|
+
background: `${a.accent}10`,
|
|
4929
4934
|
borderRadius: "10px",
|
|
4930
4935
|
fontSize: "14px",
|
|
4931
|
-
color:
|
|
4936
|
+
color: a.textSecondary
|
|
4932
4937
|
},
|
|
4933
4938
|
children: [
|
|
4934
4939
|
/* @__PURE__ */ r.jsx(
|
|
4935
4940
|
rt,
|
|
4936
4941
|
{
|
|
4937
4942
|
size: 18,
|
|
4938
|
-
style: { color:
|
|
4943
|
+
style: { color: a.accent, flexShrink: 0 }
|
|
4939
4944
|
}
|
|
4940
4945
|
),
|
|
4941
4946
|
/* @__PURE__ */ r.jsx("span", { children: "You will be redirected to the login page shortly" })
|
|
@@ -4977,7 +4982,7 @@ const Ns = [
|
|
|
4977
4982
|
"h3",
|
|
4978
4983
|
{
|
|
4979
4984
|
style: {
|
|
4980
|
-
color:
|
|
4985
|
+
color: a.textPrimary,
|
|
4981
4986
|
margin: 0,
|
|
4982
4987
|
fontSize: "20px",
|
|
4983
4988
|
fontWeight: 700,
|
|
@@ -4990,7 +4995,7 @@ const Ns = [
|
|
|
4990
4995
|
"p",
|
|
4991
4996
|
{
|
|
4992
4997
|
style: {
|
|
4993
|
-
color:
|
|
4998
|
+
color: a.textTertiary,
|
|
4994
4999
|
margin: "4px 0 0 0",
|
|
4995
5000
|
fontSize: "14px",
|
|
4996
5001
|
lineHeight: "1.4"
|
|
@@ -5008,8 +5013,8 @@ const Ns = [
|
|
|
5008
5013
|
style: {
|
|
5009
5014
|
textAlign: "center",
|
|
5010
5015
|
padding: "20px",
|
|
5011
|
-
background: `${
|
|
5012
|
-
border: `1px solid ${
|
|
5016
|
+
background: `${a.success}10`,
|
|
5017
|
+
border: `1px solid ${a.success}20`,
|
|
5013
5018
|
borderRadius: "12px",
|
|
5014
5019
|
marginBottom: "24px"
|
|
5015
5020
|
},
|
|
@@ -5019,7 +5024,7 @@ const Ns = [
|
|
|
5019
5024
|
{
|
|
5020
5025
|
size: 48,
|
|
5021
5026
|
style: {
|
|
5022
|
-
color:
|
|
5027
|
+
color: a.success,
|
|
5023
5028
|
marginBottom: "12px",
|
|
5024
5029
|
display: "block",
|
|
5025
5030
|
margin: "0 auto 12px auto"
|
|
@@ -5030,7 +5035,7 @@ const Ns = [
|
|
|
5030
5035
|
"p",
|
|
5031
5036
|
{
|
|
5032
5037
|
style: {
|
|
5033
|
-
color:
|
|
5038
|
+
color: a.textPrimary,
|
|
5034
5039
|
fontSize: "16px",
|
|
5035
5040
|
fontWeight: 600,
|
|
5036
5041
|
margin: "0 0 8px 0"
|
|
@@ -5042,7 +5047,7 @@ const Ns = [
|
|
|
5042
5047
|
"p",
|
|
5043
5048
|
{
|
|
5044
5049
|
style: {
|
|
5045
|
-
color:
|
|
5050
|
+
color: a.textSecondary,
|
|
5046
5051
|
fontSize: "14px",
|
|
5047
5052
|
margin: 0,
|
|
5048
5053
|
lineHeight: "1.5"
|
|
@@ -5061,10 +5066,10 @@ const Ns = [
|
|
|
5061
5066
|
alignItems: "center",
|
|
5062
5067
|
gap: "10px",
|
|
5063
5068
|
padding: "16px",
|
|
5064
|
-
background: `${
|
|
5069
|
+
background: `${a.accent}10`,
|
|
5065
5070
|
borderRadius: "10px",
|
|
5066
5071
|
fontSize: "14px",
|
|
5067
|
-
color:
|
|
5072
|
+
color: a.textSecondary,
|
|
5068
5073
|
justifyContent: "center"
|
|
5069
5074
|
},
|
|
5070
5075
|
children: [
|
|
@@ -5074,7 +5079,7 @@ const Ns = [
|
|
|
5074
5079
|
size: 16,
|
|
5075
5080
|
style: {
|
|
5076
5081
|
animation: "spin 1s linear infinite",
|
|
5077
|
-
color:
|
|
5082
|
+
color: a.accent
|
|
5078
5083
|
}
|
|
5079
5084
|
}
|
|
5080
5085
|
),
|
|
@@ -5106,8 +5111,8 @@ const Ns = [
|
|
|
5106
5111
|
"div",
|
|
5107
5112
|
{
|
|
5108
5113
|
style: {
|
|
5109
|
-
backgroundColor:
|
|
5110
|
-
border: `1px solid ${
|
|
5114
|
+
backgroundColor: a.surface,
|
|
5115
|
+
border: `1px solid ${a.border}`,
|
|
5111
5116
|
borderRadius: "20px",
|
|
5112
5117
|
width: "100%",
|
|
5113
5118
|
maxWidth: "480px",
|
|
@@ -5183,7 +5188,7 @@ const Ns = [
|
|
|
5183
5188
|
onUpdate: n,
|
|
5184
5189
|
colors: s
|
|
5185
5190
|
}) => {
|
|
5186
|
-
const [i,
|
|
5191
|
+
const [i, a] = P(""), [o, c] = P(!1), [d, f] = P(!1), [x, y] = P({ isValid: !1, message: "", type: null });
|
|
5187
5192
|
if (ee(() => {
|
|
5188
5193
|
if (typeof window > "u") return;
|
|
5189
5194
|
const u = () => {
|
|
@@ -5218,7 +5223,7 @@ const Ns = [
|
|
|
5218
5223
|
if (!(!i || !x.isValid)) {
|
|
5219
5224
|
c(!0);
|
|
5220
5225
|
try {
|
|
5221
|
-
await n(i) && (
|
|
5226
|
+
await n(i) && (a(""), e());
|
|
5222
5227
|
} finally {
|
|
5223
5228
|
c(!1);
|
|
5224
5229
|
}
|
|
@@ -5380,7 +5385,7 @@ const Ns = [
|
|
|
5380
5385
|
id: "avatar-url",
|
|
5381
5386
|
placeholder: "https://example.com/your-avatar.jpg",
|
|
5382
5387
|
value: i,
|
|
5383
|
-
onChange: (u) =>
|
|
5388
|
+
onChange: (u) => a(u.target.value),
|
|
5384
5389
|
style: {
|
|
5385
5390
|
width: "100%",
|
|
5386
5391
|
padding: "14px 16px",
|
|
@@ -5400,7 +5405,7 @@ const Ns = [
|
|
|
5400
5405
|
onBlur: (u) => {
|
|
5401
5406
|
u.target.style.borderColor = x.type === "error" ? s.error : x.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
|
|
5402
5407
|
},
|
|
5403
|
-
disabled:
|
|
5408
|
+
disabled: o
|
|
5404
5409
|
}
|
|
5405
5410
|
),
|
|
5406
5411
|
/* @__PURE__ */ r.jsx(
|
|
@@ -5500,7 +5505,7 @@ const Ns = [
|
|
|
5500
5505
|
"button",
|
|
5501
5506
|
{
|
|
5502
5507
|
onClick: e,
|
|
5503
|
-
disabled:
|
|
5508
|
+
disabled: o,
|
|
5504
5509
|
style: {
|
|
5505
5510
|
padding: "10px 24px",
|
|
5506
5511
|
borderRadius: "10px",
|
|
@@ -5509,17 +5514,17 @@ const Ns = [
|
|
|
5509
5514
|
color: s.textPrimary,
|
|
5510
5515
|
fontSize: "14px",
|
|
5511
5516
|
fontWeight: 500,
|
|
5512
|
-
cursor:
|
|
5517
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
5513
5518
|
flex: d ? "none" : 1,
|
|
5514
5519
|
minWidth: d ? "100%" : "120px",
|
|
5515
|
-
opacity:
|
|
5520
|
+
opacity: o ? 0.6 : 1,
|
|
5516
5521
|
transition: "all 0.2s ease"
|
|
5517
5522
|
},
|
|
5518
5523
|
onMouseOver: (u) => {
|
|
5519
|
-
|
|
5524
|
+
o || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
|
|
5520
5525
|
},
|
|
5521
5526
|
onMouseOut: (u) => {
|
|
5522
|
-
|
|
5527
|
+
o || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
|
|
5523
5528
|
},
|
|
5524
5529
|
children: "Cancel"
|
|
5525
5530
|
}
|
|
@@ -5528,7 +5533,7 @@ const Ns = [
|
|
|
5528
5533
|
"button",
|
|
5529
5534
|
{
|
|
5530
5535
|
onClick: k,
|
|
5531
|
-
disabled:
|
|
5536
|
+
disabled: o || !x.isValid,
|
|
5532
5537
|
style: {
|
|
5533
5538
|
padding: "10px 24px",
|
|
5534
5539
|
borderRadius: "10px",
|
|
@@ -5537,24 +5542,24 @@ const Ns = [
|
|
|
5537
5542
|
color: "#fff",
|
|
5538
5543
|
fontSize: "14px",
|
|
5539
5544
|
fontWeight: 600,
|
|
5540
|
-
cursor:
|
|
5545
|
+
cursor: o || !x.isValid ? "not-allowed" : "pointer",
|
|
5541
5546
|
flex: d ? "none" : 1,
|
|
5542
5547
|
minWidth: d ? "100%" : "140px",
|
|
5543
|
-
opacity:
|
|
5548
|
+
opacity: o || !x.isValid ? 0.6 : 1,
|
|
5544
5549
|
display: "flex",
|
|
5545
5550
|
alignItems: "center",
|
|
5546
5551
|
justifyContent: "center",
|
|
5547
5552
|
gap: "8px",
|
|
5548
5553
|
transition: "all 0.2s ease",
|
|
5549
|
-
boxShadow:
|
|
5554
|
+
boxShadow: o || !x.isValid ? "none" : `0 4px 12px ${s.accent}40`
|
|
5550
5555
|
},
|
|
5551
5556
|
onMouseOver: (u) => {
|
|
5552
|
-
!
|
|
5557
|
+
!o && x.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
|
|
5553
5558
|
},
|
|
5554
5559
|
onMouseOut: (u) => {
|
|
5555
|
-
!
|
|
5560
|
+
!o && x.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
|
|
5556
5561
|
},
|
|
5557
|
-
children:
|
|
5562
|
+
children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
5558
5563
|
/* @__PURE__ */ r.jsx(
|
|
5559
5564
|
se,
|
|
5560
5565
|
{
|
|
@@ -5635,9 +5640,9 @@ const Ns = [
|
|
|
5635
5640
|
onSuccess: n,
|
|
5636
5641
|
onError: s,
|
|
5637
5642
|
userId: i,
|
|
5638
|
-
colors:
|
|
5643
|
+
colors: a
|
|
5639
5644
|
}) => {
|
|
5640
|
-
const
|
|
5645
|
+
const o = ge(), [c, d] = P({
|
|
5641
5646
|
currentPassword: "",
|
|
5642
5647
|
newPassword: "",
|
|
5643
5648
|
confirmPassword: ""
|
|
@@ -5665,7 +5670,7 @@ const Ns = [
|
|
|
5665
5670
|
if (b.preventDefault(), !!g()) {
|
|
5666
5671
|
k(!0);
|
|
5667
5672
|
try {
|
|
5668
|
-
const { data: j } = await
|
|
5673
|
+
const { data: j } = await o.changePassword({
|
|
5669
5674
|
currentPassword: c.currentPassword,
|
|
5670
5675
|
newPassword: c.newPassword,
|
|
5671
5676
|
userId: i
|
|
@@ -5681,7 +5686,7 @@ const Ns = [
|
|
|
5681
5686
|
k(!1);
|
|
5682
5687
|
}
|
|
5683
5688
|
}
|
|
5684
|
-
},
|
|
5689
|
+
}, D = [
|
|
5685
5690
|
{
|
|
5686
5691
|
field: "currentPassword",
|
|
5687
5692
|
label: "Current Password",
|
|
@@ -5716,8 +5721,8 @@ const Ns = [
|
|
|
5716
5721
|
"div",
|
|
5717
5722
|
{
|
|
5718
5723
|
style: {
|
|
5719
|
-
backgroundColor:
|
|
5720
|
-
border: `1px solid ${
|
|
5724
|
+
backgroundColor: a.surface,
|
|
5725
|
+
border: `1px solid ${a.border}`,
|
|
5721
5726
|
borderRadius: "16px",
|
|
5722
5727
|
maxWidth: "440px",
|
|
5723
5728
|
width: "100%",
|
|
@@ -5756,11 +5761,11 @@ const Ns = [
|
|
|
5756
5761
|
width: "40px",
|
|
5757
5762
|
height: "40px",
|
|
5758
5763
|
borderRadius: "10px",
|
|
5759
|
-
background: `linear-gradient(135deg, ${
|
|
5764
|
+
background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
|
|
5760
5765
|
display: "flex",
|
|
5761
5766
|
alignItems: "center",
|
|
5762
5767
|
justifyContent: "center",
|
|
5763
|
-
color:
|
|
5768
|
+
color: a.accent,
|
|
5764
5769
|
flexShrink: 0
|
|
5765
5770
|
},
|
|
5766
5771
|
children: /* @__PURE__ */ r.jsx(be, { size: 20 })
|
|
@@ -5770,7 +5775,7 @@ const Ns = [
|
|
|
5770
5775
|
"h3",
|
|
5771
5776
|
{
|
|
5772
5777
|
style: {
|
|
5773
|
-
color:
|
|
5778
|
+
color: a.textPrimary,
|
|
5774
5779
|
margin: 0,
|
|
5775
5780
|
fontSize: "18px",
|
|
5776
5781
|
fontWeight: 600,
|
|
@@ -5790,7 +5795,7 @@ const Ns = [
|
|
|
5790
5795
|
style: {
|
|
5791
5796
|
background: "transparent",
|
|
5792
5797
|
border: "none",
|
|
5793
|
-
color:
|
|
5798
|
+
color: a.textTertiary,
|
|
5794
5799
|
cursor: "pointer",
|
|
5795
5800
|
padding: "8px",
|
|
5796
5801
|
borderRadius: "8px",
|
|
@@ -5802,10 +5807,10 @@ const Ns = [
|
|
|
5802
5807
|
justifyContent: "center"
|
|
5803
5808
|
},
|
|
5804
5809
|
onMouseOver: (b) => {
|
|
5805
|
-
b.currentTarget.style.backgroundColor =
|
|
5810
|
+
b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.color = a.textPrimary;
|
|
5806
5811
|
},
|
|
5807
5812
|
onMouseOut: (b) => {
|
|
5808
|
-
b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color =
|
|
5813
|
+
b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = a.textTertiary;
|
|
5809
5814
|
},
|
|
5810
5815
|
children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
|
|
5811
5816
|
}
|
|
@@ -5814,7 +5819,7 @@ const Ns = [
|
|
|
5814
5819
|
}
|
|
5815
5820
|
),
|
|
5816
5821
|
/* @__PURE__ */ r.jsxs("form", { onSubmit: U, children: [
|
|
5817
|
-
|
|
5822
|
+
D.map(({ field: b, label: j, icon: q }) => /* @__PURE__ */ r.jsxs(
|
|
5818
5823
|
"div",
|
|
5819
5824
|
{
|
|
5820
5825
|
style: {
|
|
@@ -5829,7 +5834,7 @@ const Ns = [
|
|
|
5829
5834
|
style: {
|
|
5830
5835
|
display: "block",
|
|
5831
5836
|
marginBottom: "8px",
|
|
5832
|
-
color:
|
|
5837
|
+
color: a.textPrimary,
|
|
5833
5838
|
fontSize: "14px",
|
|
5834
5839
|
fontWeight: 500,
|
|
5835
5840
|
lineHeight: "1.4"
|
|
@@ -5846,7 +5851,7 @@ const Ns = [
|
|
|
5846
5851
|
left: "14px",
|
|
5847
5852
|
top: "50%",
|
|
5848
5853
|
transform: "translateY(-50%)",
|
|
5849
|
-
color:
|
|
5854
|
+
color: a.textTertiary,
|
|
5850
5855
|
zIndex: 2
|
|
5851
5856
|
},
|
|
5852
5857
|
children: q
|
|
@@ -5865,19 +5870,19 @@ const Ns = [
|
|
|
5865
5870
|
width: "100%",
|
|
5866
5871
|
padding: "14px 48px 14px 44px",
|
|
5867
5872
|
borderRadius: "10px",
|
|
5868
|
-
border: `1.5px solid ${f[b] ?
|
|
5873
|
+
border: `1.5px solid ${f[b] ? a.error : a.border}`,
|
|
5869
5874
|
backgroundColor: "transparent",
|
|
5870
|
-
color:
|
|
5875
|
+
color: a.textPrimary,
|
|
5871
5876
|
fontSize: "15px",
|
|
5872
5877
|
outline: "none",
|
|
5873
5878
|
transition: "all 0.2s ease",
|
|
5874
5879
|
boxSizing: "border-box"
|
|
5875
5880
|
},
|
|
5876
5881
|
onFocus: (O) => {
|
|
5877
|
-
O.target.style.borderColor =
|
|
5882
|
+
O.target.style.borderColor = a.accent, O.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
5878
5883
|
},
|
|
5879
5884
|
onBlur: (O) => {
|
|
5880
|
-
O.target.style.borderColor = f[b] ?
|
|
5885
|
+
O.target.style.borderColor = f[b] ? a.error : a.border, O.target.style.boxShadow = "none";
|
|
5881
5886
|
}
|
|
5882
5887
|
}
|
|
5883
5888
|
),
|
|
@@ -5894,7 +5899,7 @@ const Ns = [
|
|
|
5894
5899
|
background: "transparent",
|
|
5895
5900
|
border: "none",
|
|
5896
5901
|
cursor: "pointer",
|
|
5897
|
-
color:
|
|
5902
|
+
color: a.textTertiary,
|
|
5898
5903
|
padding: "4px",
|
|
5899
5904
|
borderRadius: "4px",
|
|
5900
5905
|
width: "32px",
|
|
@@ -5904,12 +5909,12 @@ const Ns = [
|
|
|
5904
5909
|
justifyContent: "center"
|
|
5905
5910
|
},
|
|
5906
5911
|
onMouseOver: (O) => {
|
|
5907
|
-
O.currentTarget.style.backgroundColor =
|
|
5912
|
+
O.currentTarget.style.backgroundColor = a.border, O.currentTarget.style.color = a.textPrimary;
|
|
5908
5913
|
},
|
|
5909
5914
|
onMouseOut: (O) => {
|
|
5910
|
-
O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color =
|
|
5915
|
+
O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
|
|
5911
5916
|
},
|
|
5912
|
-
children: E[b] ? /* @__PURE__ */ r.jsx(
|
|
5917
|
+
children: E[b] ? /* @__PURE__ */ r.jsx(at, { size: 18 }) : /* @__PURE__ */ r.jsx(ot, { size: 18 })
|
|
5913
5918
|
}
|
|
5914
5919
|
)
|
|
5915
5920
|
] }),
|
|
@@ -5918,7 +5923,7 @@ const Ns = [
|
|
|
5918
5923
|
{
|
|
5919
5924
|
style: {
|
|
5920
5925
|
fontSize: "13px",
|
|
5921
|
-
color:
|
|
5926
|
+
color: a.error,
|
|
5922
5927
|
marginTop: "6px",
|
|
5923
5928
|
display: "flex",
|
|
5924
5929
|
alignItems: "center",
|
|
@@ -5954,9 +5959,9 @@ const Ns = [
|
|
|
5954
5959
|
style: {
|
|
5955
5960
|
padding: "14px 24px",
|
|
5956
5961
|
borderRadius: "10px",
|
|
5957
|
-
border: `1.5px solid ${
|
|
5962
|
+
border: `1.5px solid ${a.border}`,
|
|
5958
5963
|
background: "transparent",
|
|
5959
|
-
color:
|
|
5964
|
+
color: a.textPrimary,
|
|
5960
5965
|
fontSize: "14px",
|
|
5961
5966
|
fontWeight: 500,
|
|
5962
5967
|
cursor: y ? "not-allowed" : "pointer",
|
|
@@ -5966,7 +5971,7 @@ const Ns = [
|
|
|
5966
5971
|
transition: "all 0.2s ease"
|
|
5967
5972
|
},
|
|
5968
5973
|
onMouseOver: (b) => {
|
|
5969
|
-
y || (b.currentTarget.style.backgroundColor =
|
|
5974
|
+
y || (b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.transform = "translateY(-1px)");
|
|
5970
5975
|
},
|
|
5971
5976
|
onMouseOut: (b) => {
|
|
5972
5977
|
y || (b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.transform = "translateY(0)");
|
|
@@ -5983,7 +5988,7 @@ const Ns = [
|
|
|
5983
5988
|
padding: "14px 24px",
|
|
5984
5989
|
borderRadius: "10px",
|
|
5985
5990
|
border: "none",
|
|
5986
|
-
background: `linear-gradient(135deg, ${
|
|
5991
|
+
background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
|
|
5987
5992
|
color: "#fff",
|
|
5988
5993
|
fontSize: "14px",
|
|
5989
5994
|
fontWeight: 600,
|
|
@@ -5996,13 +6001,13 @@ const Ns = [
|
|
|
5996
6001
|
justifyContent: "center",
|
|
5997
6002
|
gap: "8px",
|
|
5998
6003
|
transition: "all 0.2s ease",
|
|
5999
|
-
boxShadow: y ? "none" : `0 4px 12px ${
|
|
6004
|
+
boxShadow: y ? "none" : `0 4px 12px ${a.accent}40`
|
|
6000
6005
|
},
|
|
6001
6006
|
onMouseOver: (b) => {
|
|
6002
|
-
y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${
|
|
6007
|
+
y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
|
|
6003
6008
|
},
|
|
6004
6009
|
onMouseOut: (b) => {
|
|
6005
|
-
y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${
|
|
6010
|
+
y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
|
|
6006
6011
|
},
|
|
6007
6012
|
children: y ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
6008
6013
|
/* @__PURE__ */ r.jsx(
|
|
@@ -6037,12 +6042,12 @@ const Ns = [
|
|
|
6037
6042
|
}
|
|
6038
6043
|
|
|
6039
6044
|
.change-password-modal::-webkit-scrollbar-thumb {
|
|
6040
|
-
background: ${
|
|
6045
|
+
background: ${a.border};
|
|
6041
6046
|
border-radius: 3px;
|
|
6042
6047
|
}
|
|
6043
6048
|
|
|
6044
6049
|
.change-password-modal::-webkit-scrollbar-thumb:hover {
|
|
6045
|
-
background: ${
|
|
6050
|
+
background: ${a.textTertiary};
|
|
6046
6051
|
}
|
|
6047
6052
|
|
|
6048
6053
|
/* Mobile responsiveness */
|
|
@@ -6072,8 +6077,8 @@ const Ns = [
|
|
|
6072
6077
|
onVerify: n,
|
|
6073
6078
|
onSendOTP: s,
|
|
6074
6079
|
verifyFormData: i,
|
|
6075
|
-
setVerifyFormData:
|
|
6076
|
-
otpSent:
|
|
6080
|
+
setVerifyFormData: a,
|
|
6081
|
+
otpSent: o,
|
|
6077
6082
|
verifying: c,
|
|
6078
6083
|
user: d,
|
|
6079
6084
|
colors: f,
|
|
@@ -6081,7 +6086,7 @@ const Ns = [
|
|
|
6081
6086
|
}) => {
|
|
6082
6087
|
if (!t) return null;
|
|
6083
6088
|
const y = () => {
|
|
6084
|
-
e(),
|
|
6089
|
+
e(), a({ email: d?.email || "", otp: "" });
|
|
6085
6090
|
};
|
|
6086
6091
|
return /* @__PURE__ */ r.jsxs(
|
|
6087
6092
|
"div",
|
|
@@ -6130,7 +6135,7 @@ const Ns = [
|
|
|
6130
6135
|
{
|
|
6131
6136
|
type: "email",
|
|
6132
6137
|
value: i.email,
|
|
6133
|
-
onChange: (k) =>
|
|
6138
|
+
onChange: (k) => a((E) => ({
|
|
6134
6139
|
...E,
|
|
6135
6140
|
email: k.target.value
|
|
6136
6141
|
})),
|
|
@@ -6147,11 +6152,11 @@ const Ns = [
|
|
|
6147
6152
|
)
|
|
6148
6153
|
] })
|
|
6149
6154
|
] }),
|
|
6150
|
-
|
|
6155
|
+
o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
|
|
6151
6156
|
/* @__PURE__ */ r.jsx("label", { style: { color: f.textSecondary }, children: "OTP" }),
|
|
6152
6157
|
/* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
|
|
6153
6158
|
/* @__PURE__ */ r.jsx(
|
|
6154
|
-
|
|
6159
|
+
ar,
|
|
6155
6160
|
{
|
|
6156
6161
|
size: 18,
|
|
6157
6162
|
style: { color: f.textTertiary },
|
|
@@ -6163,7 +6168,7 @@ const Ns = [
|
|
|
6163
6168
|
{
|
|
6164
6169
|
type: "text",
|
|
6165
6170
|
value: i.otp,
|
|
6166
|
-
onChange: (k) =>
|
|
6171
|
+
onChange: (k) => a((E) => ({
|
|
6167
6172
|
...E,
|
|
6168
6173
|
otp: k.target.value
|
|
6169
6174
|
})),
|
|
@@ -6180,7 +6185,7 @@ const Ns = [
|
|
|
6180
6185
|
)
|
|
6181
6186
|
] })
|
|
6182
6187
|
] }),
|
|
6183
|
-
/* @__PURE__ */ r.jsx("div", { className: "modal-actions", children:
|
|
6188
|
+
/* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ r.jsxs(
|
|
6184
6189
|
"button",
|
|
6185
6190
|
{
|
|
6186
6191
|
type: "submit",
|
|
@@ -6376,7 +6381,7 @@ const Ns = [
|
|
|
6376
6381
|
onVerify: s,
|
|
6377
6382
|
primaryColor: i = "#00C212"
|
|
6378
6383
|
}) => {
|
|
6379
|
-
const
|
|
6384
|
+
const a = ge(), [o, c] = P(null), [d, f] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, D] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, A] = P(!1), [M, K] = P({
|
|
6380
6385
|
email: "",
|
|
6381
6386
|
otp: ""
|
|
6382
6387
|
}), [H, F] = P(!1), [Y, l] = P(!1);
|
|
@@ -6404,7 +6409,7 @@ const Ns = [
|
|
|
6404
6409
|
document.removeEventListener("mousedown", v);
|
|
6405
6410
|
};
|
|
6406
6411
|
}, [q]);
|
|
6407
|
-
const
|
|
6412
|
+
const N = async () => {
|
|
6408
6413
|
if (!M.email || !/\S+@\S+\.\S+/.test(M.email)) {
|
|
6409
6414
|
m("error", "Please enter a valid email");
|
|
6410
6415
|
return;
|
|
@@ -6415,7 +6420,7 @@ const Ns = [
|
|
|
6415
6420
|
}
|
|
6416
6421
|
try {
|
|
6417
6422
|
l(!0);
|
|
6418
|
-
const v = await
|
|
6423
|
+
const v = await a.requestEmailVerificationOTP({
|
|
6419
6424
|
userId: d.id,
|
|
6420
6425
|
email: M.email
|
|
6421
6426
|
}), _ = v?.data?.success ?? v?.success, V = v?.data?.message ?? v?.message;
|
|
@@ -6437,7 +6442,7 @@ const Ns = [
|
|
|
6437
6442
|
}
|
|
6438
6443
|
try {
|
|
6439
6444
|
l(!0);
|
|
6440
|
-
const _ = await
|
|
6445
|
+
const _ = await a.verifyEmail({
|
|
6441
6446
|
email: M.email,
|
|
6442
6447
|
otp: M.otp
|
|
6443
6448
|
}), V = _?.data?.success ?? _?.success, Z = _?.data?.message ?? _?.message;
|
|
@@ -6453,10 +6458,10 @@ const Ns = [
|
|
|
6453
6458
|
} finally {
|
|
6454
6459
|
l(!1);
|
|
6455
6460
|
}
|
|
6456
|
-
},
|
|
6461
|
+
}, oe = async (v) => {
|
|
6457
6462
|
if (!d) return !1;
|
|
6458
6463
|
try {
|
|
6459
|
-
const _ = await
|
|
6464
|
+
const _ = await a.updateUser({
|
|
6460
6465
|
userId: d.id,
|
|
6461
6466
|
avatarUrl: v
|
|
6462
6467
|
});
|
|
@@ -6478,7 +6483,7 @@ const Ns = [
|
|
|
6478
6483
|
if (d) {
|
|
6479
6484
|
w(!0);
|
|
6480
6485
|
try {
|
|
6481
|
-
const v = d.email, _ = await
|
|
6486
|
+
const v = d.email, _ = await a.updateUser({
|
|
6482
6487
|
userId: d.id,
|
|
6483
6488
|
...d
|
|
6484
6489
|
});
|
|
@@ -6504,7 +6509,7 @@ const Ns = [
|
|
|
6504
6509
|
}
|
|
6505
6510
|
}, le = async (v) => {
|
|
6506
6511
|
try {
|
|
6507
|
-
const _ = await
|
|
6512
|
+
const _ = await a.checkIfUserExists(v);
|
|
6508
6513
|
_?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), f(null));
|
|
6509
6514
|
} catch (_) {
|
|
6510
6515
|
console.error("⚠️ User validation request failed:", _);
|
|
@@ -6514,9 +6519,9 @@ const Ns = [
|
|
|
6514
6519
|
(async () => {
|
|
6515
6520
|
try {
|
|
6516
6521
|
y(!0);
|
|
6517
|
-
const _ = await
|
|
6522
|
+
const _ = await a.checkUserSession();
|
|
6518
6523
|
if (_.user?.id) {
|
|
6519
|
-
const V = _.user.id, Z = await
|
|
6524
|
+
const V = _.user.id, Z = await a.getUserProfile({ userId: V });
|
|
6520
6525
|
if (Z.user) {
|
|
6521
6526
|
const de = Z.user;
|
|
6522
6527
|
f(de), le(V);
|
|
@@ -6749,14 +6754,14 @@ const Ns = [
|
|
|
6749
6754
|
display: "grid",
|
|
6750
6755
|
gap: "24px",
|
|
6751
6756
|
gridTemplateColumns: "1fr",
|
|
6752
|
-
...
|
|
6757
|
+
...o && window.innerWidth >= 1024 && {
|
|
6753
6758
|
gridTemplateColumns: "1fr 2fr",
|
|
6754
6759
|
gap: "10px"
|
|
6755
6760
|
},
|
|
6756
|
-
...
|
|
6761
|
+
...o && window.innerWidth >= 768 && o && window.innerWidth < 1024 && {
|
|
6757
6762
|
gap: "10px"
|
|
6758
6763
|
},
|
|
6759
|
-
...
|
|
6764
|
+
...o && window.innerWidth >= 600 && o && window.innerWidth < 768 && {
|
|
6760
6765
|
gap: "28px"
|
|
6761
6766
|
}
|
|
6762
6767
|
},
|
|
@@ -6956,7 +6961,7 @@ const Ns = [
|
|
|
6956
6961
|
gap: "8px",
|
|
6957
6962
|
textDecoration: "none",
|
|
6958
6963
|
minHeight: "36px",
|
|
6959
|
-
flex:
|
|
6964
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
6960
6965
|
},
|
|
6961
6966
|
children: [
|
|
6962
6967
|
/* @__PURE__ */ r.jsx(Oe, { size: 16, "aria-hidden": "true" }),
|
|
@@ -6986,7 +6991,7 @@ const Ns = [
|
|
|
6986
6991
|
gap: "8px",
|
|
6987
6992
|
textDecoration: "none",
|
|
6988
6993
|
minHeight: "36px",
|
|
6989
|
-
flex:
|
|
6994
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
6990
6995
|
},
|
|
6991
6996
|
children: [
|
|
6992
6997
|
u ? /* @__PURE__ */ r.jsx(
|
|
@@ -7022,7 +7027,7 @@ const Ns = [
|
|
|
7022
7027
|
gap: "8px",
|
|
7023
7028
|
textDecoration: "none",
|
|
7024
7029
|
minHeight: "36px",
|
|
7025
|
-
flex:
|
|
7030
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7026
7031
|
},
|
|
7027
7032
|
children: [
|
|
7028
7033
|
/* @__PURE__ */ r.jsx(ks, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7052,7 +7057,7 @@ const Ns = [
|
|
|
7052
7057
|
gap: "8px",
|
|
7053
7058
|
minHeight: "36px",
|
|
7054
7059
|
opacity: T ? 0.7 : 1,
|
|
7055
|
-
flex:
|
|
7060
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7056
7061
|
},
|
|
7057
7062
|
children: [
|
|
7058
7063
|
T ? /* @__PURE__ */ r.jsx(
|
|
@@ -7180,7 +7185,7 @@ const Ns = [
|
|
|
7180
7185
|
"button",
|
|
7181
7186
|
{
|
|
7182
7187
|
onClick: () => {
|
|
7183
|
-
|
|
7188
|
+
D(!0), S();
|
|
7184
7189
|
},
|
|
7185
7190
|
style: {
|
|
7186
7191
|
width: "100%",
|
|
@@ -7202,7 +7207,7 @@ const Ns = [
|
|
|
7202
7207
|
},
|
|
7203
7208
|
onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
|
|
7204
7209
|
children: [
|
|
7205
|
-
/* @__PURE__ */ r.jsx(
|
|
7210
|
+
/* @__PURE__ */ r.jsx(Ne, { size: 14, "aria-hidden": "true" }),
|
|
7206
7211
|
"Delete Account"
|
|
7207
7212
|
]
|
|
7208
7213
|
}
|
|
@@ -7262,7 +7267,7 @@ const Ns = [
|
|
|
7262
7267
|
display: "grid",
|
|
7263
7268
|
gap: "20px",
|
|
7264
7269
|
gridTemplateColumns: "1fr",
|
|
7265
|
-
...
|
|
7270
|
+
...o && window.innerWidth >= 600 && {
|
|
7266
7271
|
gridTemplateColumns: "1fr 1fr",
|
|
7267
7272
|
gap: "20px"
|
|
7268
7273
|
}
|
|
@@ -7486,7 +7491,7 @@ const Ns = [
|
|
|
7486
7491
|
onClose: () => {
|
|
7487
7492
|
I(!1);
|
|
7488
7493
|
},
|
|
7489
|
-
onUpdate:
|
|
7494
|
+
onUpdate: oe,
|
|
7490
7495
|
colors: z
|
|
7491
7496
|
}
|
|
7492
7497
|
),
|
|
@@ -7506,7 +7511,7 @@ const Ns = [
|
|
|
7506
7511
|
{
|
|
7507
7512
|
userId: d.id,
|
|
7508
7513
|
isOpen: U,
|
|
7509
|
-
onClose: () =>
|
|
7514
|
+
onClose: () => D(!1),
|
|
7510
7515
|
onSuccess: (v) => m("success", v),
|
|
7511
7516
|
onError: (v) => m("error", v),
|
|
7512
7517
|
colors: z
|
|
@@ -7520,7 +7525,7 @@ const Ns = [
|
|
|
7520
7525
|
j(!1), F(!1), K({ email: d?.email || "", otp: "" });
|
|
7521
7526
|
},
|
|
7522
7527
|
onVerify: ne,
|
|
7523
|
-
onSendOTP:
|
|
7528
|
+
onSendOTP: N,
|
|
7524
7529
|
verifyFormData: M,
|
|
7525
7530
|
setVerifyFormData: K,
|
|
7526
7531
|
otpSent: H,
|
|
@@ -7628,9 +7633,9 @@ const Ns = [
|
|
|
7628
7633
|
onLogout: n,
|
|
7629
7634
|
varient: s = "classic",
|
|
7630
7635
|
propUser: i,
|
|
7631
|
-
className:
|
|
7636
|
+
className: a = "",
|
|
7632
7637
|
// New URL props with defaults
|
|
7633
|
-
profileUrl:
|
|
7638
|
+
profileUrl: o,
|
|
7634
7639
|
settingsUrl: c,
|
|
7635
7640
|
// Menu item visibility with defaults
|
|
7636
7641
|
showProfileMenuItem: d = !0,
|
|
@@ -7642,7 +7647,7 @@ const Ns = [
|
|
|
7642
7647
|
viewProfileLabel: E = "View Profile",
|
|
7643
7648
|
logoutLabel: u = "Sign Out"
|
|
7644
7649
|
}) => {
|
|
7645
|
-
const w = ge(), [h, I] = P(!1), [C, g] = P(null), [U,
|
|
7650
|
+
const w = ge(), [h, I] = P(!1), [C, g] = P(null), [U, D] = P(!0), [b, j] = P(null), q = ut(null), O = ut(null), [X, W] = P(!1), [R, G] = P(!1);
|
|
7646
7651
|
ee(() => {
|
|
7647
7652
|
if (typeof window > "u") return;
|
|
7648
7653
|
const l = () => {
|
|
@@ -7653,7 +7658,7 @@ const Ns = [
|
|
|
7653
7658
|
let l = !0;
|
|
7654
7659
|
return (async () => {
|
|
7655
7660
|
try {
|
|
7656
|
-
if (
|
|
7661
|
+
if (D(!0), j(null), i) {
|
|
7657
7662
|
if (!i.id || !i.name || !i.email)
|
|
7658
7663
|
throw new Error("Invalid user data provided");
|
|
7659
7664
|
l && g(i);
|
|
@@ -7665,17 +7670,17 @@ const Ns = [
|
|
|
7665
7670
|
g(null);
|
|
7666
7671
|
return;
|
|
7667
7672
|
}
|
|
7668
|
-
const
|
|
7673
|
+
const N = {
|
|
7669
7674
|
id: S.user.id,
|
|
7670
7675
|
email: S.user.email,
|
|
7671
7676
|
name: S.user.email.split("@")[0]
|
|
7672
7677
|
// fallback until backend sends name
|
|
7673
7678
|
};
|
|
7674
|
-
g(
|
|
7679
|
+
g(N);
|
|
7675
7680
|
} catch (S) {
|
|
7676
7681
|
console.error("User initialization failed:", S), l && (g(null), j(S.message || "Failed to load user"));
|
|
7677
7682
|
} finally {
|
|
7678
|
-
l &&
|
|
7683
|
+
l && D(!1);
|
|
7679
7684
|
}
|
|
7680
7685
|
})(), () => {
|
|
7681
7686
|
l = !1;
|
|
@@ -7684,19 +7689,19 @@ const Ns = [
|
|
|
7684
7689
|
if (typeof window > "u") return;
|
|
7685
7690
|
const l = () => {
|
|
7686
7691
|
if (!h || !O.current) return;
|
|
7687
|
-
const m = O.current.getBoundingClientRect(), S = window.innerWidth,
|
|
7688
|
-
|
|
7689
|
-
const le =
|
|
7692
|
+
const m = O.current.getBoundingClientRect(), S = window.innerWidth, N = window.innerHeight, ne = 280, oe = S - m.right, B = m.left;
|
|
7693
|
+
N - m.bottom;
|
|
7694
|
+
const le = oe >= ne || oe > B;
|
|
7690
7695
|
W(le);
|
|
7691
7696
|
};
|
|
7692
7697
|
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
7693
7698
|
}, [h]), ee(() => {
|
|
7694
7699
|
if (typeof window > "u" || typeof document > "u")
|
|
7695
7700
|
return;
|
|
7696
|
-
const l = (
|
|
7697
|
-
q.current && !q.current.contains(
|
|
7698
|
-
}, m = (
|
|
7699
|
-
|
|
7701
|
+
const l = (N) => {
|
|
7702
|
+
q.current && !q.current.contains(N.target) && !O.current?.contains(N.target) && I(!1);
|
|
7703
|
+
}, m = (N) => {
|
|
7704
|
+
N.key === "Escape" && I(!1);
|
|
7700
7705
|
}, S = () => {
|
|
7701
7706
|
h && I(!1);
|
|
7702
7707
|
};
|
|
@@ -7956,7 +7961,7 @@ const Ns = [
|
|
|
7956
7961
|
animation: "pulse 1.5s infinite ease-in-out"
|
|
7957
7962
|
}
|
|
7958
7963
|
}, M = async () => {
|
|
7959
|
-
j(null),
|
|
7964
|
+
j(null), D(!0);
|
|
7960
7965
|
try {
|
|
7961
7966
|
if (i) {
|
|
7962
7967
|
if (!i.id || !i.name || !i.email)
|
|
@@ -7979,11 +7984,11 @@ const Ns = [
|
|
|
7979
7984
|
} catch (l) {
|
|
7980
7985
|
console.error("Retry failed:", l), g(null), j(l.message || "Failed to reload user");
|
|
7981
7986
|
} finally {
|
|
7982
|
-
|
|
7987
|
+
D(!1);
|
|
7983
7988
|
}
|
|
7984
7989
|
}, K = (l, m) => {
|
|
7985
7990
|
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
|
|
7986
|
-
}, H = () =>
|
|
7991
|
+
}, H = () => o || C?.profileUrl, F = () => {
|
|
7987
7992
|
const l = H();
|
|
7988
7993
|
l && window.open(l, "_self", "noopener,noreferrer");
|
|
7989
7994
|
}, Y = () => {
|
|
@@ -7994,7 +7999,7 @@ const Ns = [
|
|
|
7994
7999
|
{
|
|
7995
8000
|
style: A.wrapper,
|
|
7996
8001
|
ref: q,
|
|
7997
|
-
className:
|
|
8002
|
+
className: a,
|
|
7998
8003
|
role: "menu",
|
|
7999
8004
|
"aria-label": "User menu",
|
|
8000
8005
|
children: [
|
|
@@ -8313,13 +8318,13 @@ const Ns = [
|
|
|
8313
8318
|
]
|
|
8314
8319
|
}
|
|
8315
8320
|
);
|
|
8316
|
-
const [
|
|
8321
|
+
const [a, o] = P(!1), [c, d] = P({
|
|
8317
8322
|
email: t?.email || "",
|
|
8318
8323
|
otp: ""
|
|
8319
8324
|
}), [f, x] = P(!1), [y, k] = P(!1), [E, u] = P(null);
|
|
8320
8325
|
Ce.useEffect(() => {
|
|
8321
8326
|
if (typeof window < "u") {
|
|
8322
|
-
const b = () =>
|
|
8327
|
+
const b = () => o(window.innerWidth < 768);
|
|
8323
8328
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
8324
8329
|
}
|
|
8325
8330
|
}, []);
|
|
@@ -8409,7 +8414,7 @@ const Ns = [
|
|
|
8409
8414
|
color: h.textPrimary,
|
|
8410
8415
|
fontSize: 14,
|
|
8411
8416
|
outline: "none"
|
|
8412
|
-
},
|
|
8417
|
+
}, D = (b = !1) => ({
|
|
8413
8418
|
flex: 1,
|
|
8414
8419
|
padding: 12,
|
|
8415
8420
|
borderRadius: 8,
|
|
@@ -8431,7 +8436,7 @@ const Ns = [
|
|
|
8431
8436
|
onSubmit: g,
|
|
8432
8437
|
style: {
|
|
8433
8438
|
width: "100%",
|
|
8434
|
-
maxWidth:
|
|
8439
|
+
maxWidth: a ? "340px" : "400px",
|
|
8435
8440
|
display: "flex",
|
|
8436
8441
|
flexDirection: "column",
|
|
8437
8442
|
gap: 20,
|
|
@@ -8608,7 +8613,7 @@ const Ns = [
|
|
|
8608
8613
|
type: "submit",
|
|
8609
8614
|
disabled: y,
|
|
8610
8615
|
style: {
|
|
8611
|
-
...
|
|
8616
|
+
...D(y),
|
|
8612
8617
|
borderRadius: 12,
|
|
8613
8618
|
padding: "12px 16px",
|
|
8614
8619
|
fontSize: 14
|
|
@@ -8625,7 +8630,7 @@ const Ns = [
|
|
|
8625
8630
|
onClick: C,
|
|
8626
8631
|
disabled: y || !t?.id,
|
|
8627
8632
|
style: {
|
|
8628
|
-
...
|
|
8633
|
+
...D(y),
|
|
8629
8634
|
borderRadius: 12,
|
|
8630
8635
|
padding: "12px 16px",
|
|
8631
8636
|
fontSize: 14
|