@neuctra/authix 1.2.23 → 1.2.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/neuctra-authix.es.js +429 -440
- package/dist/neuctra-authix.umd.js +1 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ function Ut(t, e) {
|
|
|
7
7
|
const { toString: ur } = Object.prototype, { getPrototypeOf: nt } = Object, { iterator: Le, toStringTag: _t } = Symbol, Fe = /* @__PURE__ */ ((t) => (e) => {
|
|
8
8
|
const n = ur.call(e);
|
|
9
9
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Fe(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, we = qe("undefined");
|
|
11
11
|
function Te(t) {
|
|
12
12
|
return t !== null && !we(t) && t.constructor !== null && !we(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
13
13
|
}
|
|
14
|
-
const $t =
|
|
14
|
+
const $t = ae("ArrayBuffer");
|
|
15
15
|
function pr(t) {
|
|
16
16
|
let e;
|
|
17
17
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && $t(t.buffer), e;
|
|
@@ -29,11 +29,11 @@ const fr = qe("string"), te = qe("function"), Dt = qe("number"), Re = (t) => t !
|
|
|
29
29
|
} catch {
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
|
-
}, mr =
|
|
32
|
+
}, mr = ae("Date"), gr = ae("File"), yr = ae("Blob"), br = ae("FileList"), wr = (t) => Re(t) && te(t.pipe), jr = (t) => {
|
|
33
33
|
let e;
|
|
34
34
|
return t && (typeof FormData == "function" && t instanceof FormData || te(t.append) && ((e = Fe(t)) === "formdata" || // detect form-data instance
|
|
35
35
|
e === "object" && te(t.toString) && t.toString() === "[object FormData]"));
|
|
36
|
-
}, vr =
|
|
36
|
+
}, vr = ae("URLSearchParams"), [Sr, kr, Er, Cr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Tr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
37
|
function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
38
38
|
if (t === null || typeof t > "u")
|
|
39
39
|
return;
|
|
@@ -44,10 +44,10 @@ function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
44
44
|
else {
|
|
45
45
|
if (Te(t))
|
|
46
46
|
return;
|
|
47
|
-
const
|
|
47
|
+
const a = n ? Object.getOwnPropertyNames(t) : Object.keys(t), o = a.length;
|
|
48
48
|
let c;
|
|
49
|
-
for (s = 0; s <
|
|
50
|
-
c =
|
|
49
|
+
for (s = 0; s < o; s++)
|
|
50
|
+
c = a[s], e.call(null, t[c], c, t);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function Nt(t, e) {
|
|
@@ -63,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, Lt = (t) => !we(t) && t !== fe;
|
|
65
65
|
function Ge() {
|
|
66
|
-
const { caseless: t, skipUndefined: e } = Lt(this) && this || {}, n = {}, s = (i,
|
|
67
|
-
const
|
|
68
|
-
Ue(n[
|
|
66
|
+
const { caseless: t, skipUndefined: e } = Lt(this) && this || {}, n = {}, s = (i, a) => {
|
|
67
|
+
const o = t && Nt(n, a) || a;
|
|
68
|
+
Ue(n[o]) && Ue(i) ? n[o] = Ge(n[o], i) : Ue(i) ? n[o] = Ge({}, i) : je(i) ? n[o] = i.slice() : (!e || !we(i)) && (n[o] = i);
|
|
69
69
|
};
|
|
70
|
-
for (let i = 0,
|
|
70
|
+
for (let i = 0, a = arguments.length; i < a; i++)
|
|
71
71
|
arguments[i] && Pe(arguments[i], s);
|
|
72
72
|
return n;
|
|
73
73
|
}
|
|
74
|
-
const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i,
|
|
75
|
-
n && te(i) ? t[
|
|
74
|
+
const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
|
|
75
|
+
n && te(i) ? t[a] = Ut(i, n) : t[a] = i;
|
|
76
76
|
}, { allOwnKeys: s }), t), Pr = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ir = (t, e, n, s) => {
|
|
77
77
|
t.prototype = Object.create(e.prototype, s), t.prototype.constructor = t, Object.defineProperty(t, "super", {
|
|
78
78
|
value: e.prototype
|
|
79
79
|
}), n && Object.assign(t.prototype, n);
|
|
80
80
|
}, Or = (t, e, n, s) => {
|
|
81
|
-
let i,
|
|
81
|
+
let i, a, o;
|
|
82
82
|
const c = {};
|
|
83
83
|
if (e = e || {}, t == null) return e;
|
|
84
84
|
do {
|
|
85
|
-
for (i = Object.getOwnPropertyNames(t),
|
|
86
|
-
|
|
85
|
+
for (i = Object.getOwnPropertyNames(t), a = i.length; a-- > 0; )
|
|
86
|
+
o = i[a], (!s || s(o, t, e)) && !c[o] && (e[o] = t[o], c[o] = !0);
|
|
87
87
|
t = n !== !1 && nt(t);
|
|
88
88
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
89
89
|
return e;
|
|
@@ -104,8 +104,8 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
104
104
|
const s = (t && t[Le]).call(t);
|
|
105
105
|
let i;
|
|
106
106
|
for (; (i = s.next()) && !i.done; ) {
|
|
107
|
-
const
|
|
108
|
-
e.call(t,
|
|
107
|
+
const a = i.value;
|
|
108
|
+
e.call(t, a[0], a[1]);
|
|
109
109
|
}
|
|
110
110
|
}, $r = (t, e) => {
|
|
111
111
|
let n;
|
|
@@ -113,16 +113,16 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
113
113
|
for (; (n = t.exec(e)) !== null; )
|
|
114
114
|
s.push(n);
|
|
115
115
|
return s;
|
|
116
|
-
}, Dr =
|
|
116
|
+
}, Dr = ae("HTMLFormElement"), Nr = (t) => t.toLowerCase().replace(
|
|
117
117
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
118
118
|
function(n, s, i) {
|
|
119
119
|
return s.toUpperCase() + i;
|
|
120
120
|
}
|
|
121
|
-
), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Lr =
|
|
121
|
+
), pt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Lr = ae("RegExp"), Ft = (t, e) => {
|
|
122
122
|
const n = Object.getOwnPropertyDescriptors(t), s = {};
|
|
123
|
-
Pe(n, (i,
|
|
124
|
-
let
|
|
125
|
-
(
|
|
123
|
+
Pe(n, (i, a) => {
|
|
124
|
+
let o;
|
|
125
|
+
(o = e(i, a, t)) !== !1 && (s[a] = o || i);
|
|
126
126
|
}), Object.defineProperties(t, s);
|
|
127
127
|
}, Fr = (t) => {
|
|
128
128
|
Ft(t, (e, n) => {
|
|
@@ -141,8 +141,8 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, o) => {
|
|
|
141
141
|
});
|
|
142
142
|
}, qr = (t, e) => {
|
|
143
143
|
const n = {}, s = (i) => {
|
|
144
|
-
i.forEach((
|
|
145
|
-
n[
|
|
144
|
+
i.forEach((a) => {
|
|
145
|
+
n[a] = !0;
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
return je(t) ? s(t) : s(String(t).split(e)), n;
|
|
@@ -160,18 +160,18 @@ const Hr = (t) => {
|
|
|
160
160
|
return s;
|
|
161
161
|
if (!("toJSON" in s)) {
|
|
162
162
|
e[i] = s;
|
|
163
|
-
const
|
|
164
|
-
return Pe(s, (
|
|
165
|
-
const d = n(
|
|
166
|
-
!we(d) && (
|
|
167
|
-
}), e[i] = void 0,
|
|
163
|
+
const a = je(s) ? [] : {};
|
|
164
|
+
return Pe(s, (o, c) => {
|
|
165
|
+
const d = n(o, i + 1);
|
|
166
|
+
!we(d) && (a[c] = d);
|
|
167
|
+
}), e[i] = void 0, a;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
return s;
|
|
171
171
|
};
|
|
172
172
|
return n(t, 0);
|
|
173
|
-
}, Vr =
|
|
174
|
-
i === fe &&
|
|
173
|
+
}, Vr = ae("AsyncFunction"), Yr = (t) => t && (Re(t) || te(t)) && te(t.then) && te(t.catch), qt = ((t, e) => t ? setImmediate : e ? ((n, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
|
|
174
|
+
i === fe && a === n && s.length && s.shift()();
|
|
175
175
|
}, !1), (i) => {
|
|
176
176
|
s.push(i), fe.postMessage(n, "*");
|
|
177
177
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
@@ -211,7 +211,7 @@ const Hr = (t) => {
|
|
|
211
211
|
inherits: Ir,
|
|
212
212
|
toFlatObject: Or,
|
|
213
213
|
kindOf: Fe,
|
|
214
|
-
kindOfTest:
|
|
214
|
+
kindOfTest: ae,
|
|
215
215
|
endsWith: Ar,
|
|
216
216
|
toArray: zr,
|
|
217
217
|
forEachEntry: _r,
|
|
@@ -281,13 +281,13 @@ const Mt = $.prototype, Wt = {};
|
|
|
281
281
|
});
|
|
282
282
|
Object.defineProperties($, Wt);
|
|
283
283
|
Object.defineProperty(Mt, "isAxiosError", { value: !0 });
|
|
284
|
-
$.from = (t, e, n, s, i,
|
|
285
|
-
const
|
|
286
|
-
f.toFlatObject(t,
|
|
284
|
+
$.from = (t, e, n, s, i, a) => {
|
|
285
|
+
const o = Object.create(Mt);
|
|
286
|
+
f.toFlatObject(t, o, function(p) {
|
|
287
287
|
return p !== Error.prototype;
|
|
288
288
|
}, (x) => x !== "isAxiosError");
|
|
289
289
|
const c = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
|
|
290
|
-
return $.call(
|
|
290
|
+
return $.call(o, c, d, n, s, i), t && o.cause == null && Object.defineProperty(o, "cause", { value: t, configurable: !0 }), o.name = t && t.name || "Error", a && Object.assign(o, a), o;
|
|
291
291
|
};
|
|
292
292
|
const Gr = null;
|
|
293
293
|
function Xe(t) {
|
|
@@ -297,8 +297,8 @@ function Bt(t) {
|
|
|
297
297
|
return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
298
298
|
}
|
|
299
299
|
function ft(t, e, n) {
|
|
300
|
-
return t ? t.concat(e).map(function(i,
|
|
301
|
-
return i = Bt(i), !n &&
|
|
300
|
+
return t ? t.concat(e).map(function(i, a) {
|
|
301
|
+
return i = Bt(i), !n && a ? "[" + i + "]" : i;
|
|
302
302
|
}).join(n ? "." : "") : e;
|
|
303
303
|
}
|
|
304
304
|
function Xr(t) {
|
|
@@ -317,7 +317,7 @@ function Me(t, e, n) {
|
|
|
317
317
|
}, !1, function(w, h) {
|
|
318
318
|
return !f.isUndefined(h[w]);
|
|
319
319
|
});
|
|
320
|
-
const s = n.metaTokens, i = n.visitor || p,
|
|
320
|
+
const s = n.metaTokens, i = n.visitor || p, a = n.dots, o = n.indexes, d = (n.Blob || typeof Blob < "u" && Blob) && f.isSpecCompliantForm(e);
|
|
321
321
|
if (!f.isFunction(i))
|
|
322
322
|
throw new TypeError("visitor must be a function");
|
|
323
323
|
function x(u) {
|
|
@@ -339,12 +339,12 @@ function Me(t, e, n) {
|
|
|
339
339
|
return w = Bt(w), I.forEach(function(g, U) {
|
|
340
340
|
!(f.isUndefined(g) || g === null) && e.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
|
|
342
|
+
o === !0 ? ft([w], U, a) : o === null ? w : w + "[]",
|
|
343
343
|
x(g)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return Xe(u) ? !0 : (e.append(ft(h, w,
|
|
347
|
+
return Xe(u) ? !0 : (e.append(ft(h, w, a), x(u)), !1);
|
|
348
348
|
}
|
|
349
349
|
const y = [], k = Object.assign(Zr, {
|
|
350
350
|
defaultVisitor: p,
|
|
@@ -410,10 +410,10 @@ function Vt(t, e, n) {
|
|
|
410
410
|
serialize: n
|
|
411
411
|
});
|
|
412
412
|
const i = n && n.serialize;
|
|
413
|
-
let
|
|
414
|
-
if (i ?
|
|
415
|
-
const
|
|
416
|
-
|
|
413
|
+
let a;
|
|
414
|
+
if (i ? a = i(e, n) : a = f.isURLSearchParams(e) ? e.toString() : new st(e, n).toString(s), a) {
|
|
415
|
+
const o = t.indexOf("#");
|
|
416
|
+
o !== -1 && (t = t.slice(0, o)), t += (t.indexOf("?") === -1 ? "?" : "&") + a;
|
|
417
417
|
}
|
|
418
418
|
return t;
|
|
419
419
|
}
|
|
@@ -483,22 +483,22 @@ const Yt = {
|
|
|
483
483
|
Blob: rn
|
|
484
484
|
},
|
|
485
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
}, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0),
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, it = typeof window < "u" && typeof document < "u", Ze = typeof navigator == "object" && navigator || void 0, sn = it && (!Ze || ["ReactNative", "NativeScript", "NS"].indexOf(Ze.product) < 0), an = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", on = it && window.location.href || "http://localhost", ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
488
|
__proto__: null,
|
|
489
489
|
hasBrowserEnv: it,
|
|
490
490
|
hasStandardBrowserEnv: sn,
|
|
491
|
-
hasStandardBrowserWebWorkerEnv:
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: an,
|
|
492
492
|
navigator: Ze,
|
|
493
|
-
origin:
|
|
493
|
+
origin: on
|
|
494
494
|
}, Symbol.toStringTag, { value: "Module" })), Q = {
|
|
495
495
|
...ln,
|
|
496
496
|
...nn
|
|
497
497
|
};
|
|
498
498
|
function cn(t, e) {
|
|
499
499
|
return Me(t, new Q.classes.URLSearchParams(), {
|
|
500
|
-
visitor: function(n, s, i,
|
|
501
|
-
return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) :
|
|
500
|
+
visitor: function(n, s, i, a) {
|
|
501
|
+
return Q.isNode && f.isBuffer(n) ? (this.append(s, n.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
503
503
|
...e
|
|
504
504
|
});
|
|
@@ -510,17 +510,17 @@ function un(t) {
|
|
|
510
510
|
const e = {}, n = Object.keys(t);
|
|
511
511
|
let s;
|
|
512
512
|
const i = n.length;
|
|
513
|
-
let
|
|
513
|
+
let a;
|
|
514
514
|
for (s = 0; s < i; s++)
|
|
515
|
-
|
|
515
|
+
a = n[s], e[a] = t[a];
|
|
516
516
|
return e;
|
|
517
517
|
}
|
|
518
518
|
function Kt(t) {
|
|
519
|
-
function e(n, s, i,
|
|
520
|
-
let
|
|
521
|
-
if (
|
|
522
|
-
const c = Number.isFinite(+
|
|
523
|
-
return
|
|
519
|
+
function e(n, s, i, a) {
|
|
520
|
+
let o = n[a++];
|
|
521
|
+
if (o === "__proto__") return !0;
|
|
522
|
+
const c = Number.isFinite(+o), d = a >= n.length;
|
|
523
|
+
return o = !o && f.isArray(i) ? i.length : o, d ? (f.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !f.isObject(i[o])) && (i[o] = []), e(n, s, i[o], a) && f.isArray(i[o]) && (i[o] = un(i[o])), !c);
|
|
524
524
|
}
|
|
525
525
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
526
526
|
const n = {};
|
|
@@ -544,8 +544,8 @@ const Ie = {
|
|
|
544
544
|
transitional: Yt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
546
|
transformRequest: [function(e, n) {
|
|
547
|
-
const s = n.getContentType() || "", i = s.indexOf("application/json") > -1,
|
|
548
|
-
if (
|
|
547
|
+
const s = n.getContentType() || "", i = s.indexOf("application/json") > -1, a = f.isObject(e);
|
|
548
|
+
if (a && f.isHTMLForm(e) && (e = new FormData(e)), f.isFormData(e))
|
|
549
549
|
return i ? JSON.stringify(Kt(e)) : e;
|
|
550
550
|
if (f.isArrayBuffer(e) || f.isBuffer(e) || f.isStream(e) || f.isFile(e) || f.isBlob(e) || f.isReadableStream(e))
|
|
551
551
|
return e;
|
|
@@ -554,7 +554,7 @@ const Ie = {
|
|
|
554
554
|
if (f.isURLSearchParams(e))
|
|
555
555
|
return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
556
556
|
let c;
|
|
557
|
-
if (
|
|
557
|
+
if (a) {
|
|
558
558
|
if (s.indexOf("application/x-www-form-urlencoded") > -1)
|
|
559
559
|
return cn(e, this.formSerializer).toString();
|
|
560
560
|
if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
@@ -566,18 +566,18 @@ const Ie = {
|
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
return
|
|
569
|
+
return a || i ? (n.setContentType("application/json", !1), pn(e)) : e;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(e) {
|
|
572
572
|
const n = this.transitional || Ie.transitional, s = n && n.forcedJSONParsing, i = this.responseType === "json";
|
|
573
573
|
if (f.isResponse(e) || f.isReadableStream(e))
|
|
574
574
|
return e;
|
|
575
575
|
if (e && f.isString(e) && (s && !this.responseType || i)) {
|
|
576
|
-
const
|
|
576
|
+
const o = !(n && n.silentJSONParsing) && i;
|
|
577
577
|
try {
|
|
578
578
|
return JSON.parse(e, this.parseReviver);
|
|
579
579
|
} catch (c) {
|
|
580
|
-
if (
|
|
580
|
+
if (o)
|
|
581
581
|
throw c.name === "SyntaxError" ? $.from(c, $.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
@@ -631,8 +631,8 @@ const fn = f.toObjectSet([
|
|
|
631
631
|
const e = {};
|
|
632
632
|
let n, s, i;
|
|
633
633
|
return t && t.split(`
|
|
634
|
-
`).forEach(function(
|
|
635
|
-
i =
|
|
634
|
+
`).forEach(function(o) {
|
|
635
|
+
i = o.indexOf(":"), n = o.substring(0, i).trim().toLowerCase(), s = o.substring(i + 1).trim(), !(!n || e[n] && fn[n]) && (n === "set-cookie" ? e[n] ? e[n].push(s) : e[n] = [s] : e[n] = e[n] ? e[n] + ", " + s : s);
|
|
636
636
|
}), e;
|
|
637
637
|
}, mt = Symbol("internals");
|
|
638
638
|
function Se(t) {
|
|
@@ -666,8 +666,8 @@ function yn(t, e) {
|
|
|
666
666
|
const n = f.toCamelCase(" " + e);
|
|
667
667
|
["get", "set", "has"].forEach((s) => {
|
|
668
668
|
Object.defineProperty(t, s + n, {
|
|
669
|
-
value: function(i,
|
|
670
|
-
return this[s].call(this, e, i,
|
|
669
|
+
value: function(i, a, o) {
|
|
670
|
+
return this[s].call(this, e, i, a, o);
|
|
671
671
|
},
|
|
672
672
|
configurable: !0
|
|
673
673
|
});
|
|
@@ -679,18 +679,18 @@ let re = class {
|
|
|
679
679
|
}
|
|
680
680
|
set(e, n, s) {
|
|
681
681
|
const i = this;
|
|
682
|
-
function
|
|
682
|
+
function a(c, d, x) {
|
|
683
683
|
const p = Se(d);
|
|
684
684
|
if (!p)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const y = f.findKey(i, p);
|
|
687
687
|
(!y || i[y] === void 0 || x === !0 || x === void 0 && i[y] !== !1) && (i[y || d] = _e(c));
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const o = (c, d) => f.forEach(c, (x, p) => a(x, p, d));
|
|
690
690
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
691
|
-
|
|
691
|
+
o(e, n);
|
|
692
692
|
else if (f.isString(e) && (e = e.trim()) && !mn(e))
|
|
693
|
-
|
|
693
|
+
o(xn(e), n);
|
|
694
694
|
else if (f.isObject(e) && f.isIterable(e)) {
|
|
695
695
|
let c = {}, d, x;
|
|
696
696
|
for (const p of e) {
|
|
@@ -698,9 +698,9 @@ let re = class {
|
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
699
|
c[x = p[0]] = (d = c[x]) ? f.isArray(d) ? [...d, p[1]] : [d, p[1]] : p[1];
|
|
700
700
|
}
|
|
701
|
-
|
|
701
|
+
o(c, n);
|
|
702
702
|
} else
|
|
703
|
-
e != null &&
|
|
703
|
+
e != null && a(n, e, s);
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(e, n) {
|
|
@@ -730,33 +730,33 @@ let re = class {
|
|
|
730
730
|
delete(e, n) {
|
|
731
731
|
const s = this;
|
|
732
732
|
let i = !1;
|
|
733
|
-
function o
|
|
734
|
-
if (
|
|
735
|
-
const c = f.findKey(s,
|
|
733
|
+
function a(o) {
|
|
734
|
+
if (o = Se(o), o) {
|
|
735
|
+
const c = f.findKey(s, o);
|
|
736
736
|
c && (!n || He(s, s[c], c, n)) && (delete s[c], i = !0);
|
|
737
737
|
}
|
|
738
738
|
}
|
|
739
|
-
return f.isArray(e) ? e.forEach(
|
|
739
|
+
return f.isArray(e) ? e.forEach(a) : a(e), i;
|
|
740
740
|
}
|
|
741
741
|
clear(e) {
|
|
742
742
|
const n = Object.keys(this);
|
|
743
743
|
let s = n.length, i = !1;
|
|
744
744
|
for (; s--; ) {
|
|
745
|
-
const
|
|
746
|
-
(!e || He(this, this[
|
|
745
|
+
const a = n[s];
|
|
746
|
+
(!e || He(this, this[a], a, e, !0)) && (delete this[a], i = !0);
|
|
747
747
|
}
|
|
748
748
|
return i;
|
|
749
749
|
}
|
|
750
750
|
normalize(e) {
|
|
751
751
|
const n = this, s = {};
|
|
752
|
-
return f.forEach(this, (i,
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
755
|
-
n[
|
|
752
|
+
return f.forEach(this, (i, a) => {
|
|
753
|
+
const o = f.findKey(s, a);
|
|
754
|
+
if (o) {
|
|
755
|
+
n[o] = _e(i), delete n[a];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const c = e ? gn(
|
|
759
|
-
c !==
|
|
758
|
+
const c = e ? gn(a) : String(a).trim();
|
|
759
|
+
c !== a && delete n[a], n[c] = _e(i), s[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...e) {
|
|
@@ -792,11 +792,11 @@ let re = class {
|
|
|
792
792
|
const s = (this[mt] = this[mt] = {
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, i = this.prototype;
|
|
795
|
-
function o
|
|
796
|
-
const c = Se(
|
|
797
|
-
s[c] || (yn(i,
|
|
795
|
+
function a(o) {
|
|
796
|
+
const c = Se(o);
|
|
797
|
+
s[c] || (yn(i, o), s[c] = !0);
|
|
798
798
|
}
|
|
799
|
-
return f.isArray(e) ? e.forEach(
|
|
799
|
+
return f.isArray(e) ? e.forEach(a) : a(e), this;
|
|
800
800
|
}
|
|
801
801
|
};
|
|
802
802
|
re.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
@@ -812,10 +812,10 @@ f.reduceDescriptors(re.prototype, ({ value: t }, e) => {
|
|
|
812
812
|
f.freezeMethods(re);
|
|
813
813
|
function Ve(t, e) {
|
|
814
814
|
const n = this || Ie, s = e || n, i = re.from(s.headers);
|
|
815
|
-
let
|
|
815
|
+
let a = s.data;
|
|
816
816
|
return f.forEach(t, function(c) {
|
|
817
|
-
|
|
818
|
-
}), i.normalize(),
|
|
817
|
+
a = c.call(n, a, i.normalize(), e ? e.status : void 0);
|
|
818
|
+
}), i.normalize(), a;
|
|
819
819
|
}
|
|
820
820
|
function Jt(t) {
|
|
821
821
|
return !!(t && t.__CANCEL__);
|
|
@@ -843,45 +843,45 @@ function bn(t) {
|
|
|
843
843
|
function wn(t, e) {
|
|
844
844
|
t = t || 10;
|
|
845
845
|
const n = new Array(t), s = new Array(t);
|
|
846
|
-
let i = 0,
|
|
846
|
+
let i = 0, a = 0, o;
|
|
847
847
|
return e = e !== void 0 ? e : 1e3, function(d) {
|
|
848
|
-
const x = Date.now(), p = s[
|
|
849
|
-
|
|
850
|
-
let y =
|
|
848
|
+
const x = Date.now(), p = s[a];
|
|
849
|
+
o || (o = x), n[i] = d, s[i] = x;
|
|
850
|
+
let y = a, k = 0;
|
|
851
851
|
for (; y !== i; )
|
|
852
852
|
k += n[y++], y = y % t;
|
|
853
|
-
if (i = (i + 1) % t, i ===
|
|
853
|
+
if (i = (i + 1) % t, i === a && (a = (a + 1) % t), x - o < e)
|
|
854
854
|
return;
|
|
855
855
|
const E = p && x - p;
|
|
856
856
|
return E ? Math.round(k * 1e3 / E) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
859
|
function jn(t, e) {
|
|
860
|
-
let n = 0, s = 1e3 / e, i,
|
|
861
|
-
const
|
|
862
|
-
n = p, i = null,
|
|
860
|
+
let n = 0, s = 1e3 / e, i, a;
|
|
861
|
+
const o = (x, p = Date.now()) => {
|
|
862
|
+
n = p, i = null, a && (clearTimeout(a), a = null), t(...x);
|
|
863
863
|
};
|
|
864
864
|
return [(...x) => {
|
|
865
865
|
const p = Date.now(), y = p - n;
|
|
866
|
-
y >= s ?
|
|
867
|
-
|
|
866
|
+
y >= s ? o(x, p) : (i = x, a || (a = setTimeout(() => {
|
|
867
|
+
a = null, o(i);
|
|
868
868
|
}, s - y)));
|
|
869
|
-
}, () => i &&
|
|
869
|
+
}, () => i && o(i)];
|
|
870
870
|
}
|
|
871
871
|
const Ne = (t, e, n = 3) => {
|
|
872
872
|
let s = 0;
|
|
873
873
|
const i = wn(50, 250);
|
|
874
|
-
return jn((
|
|
875
|
-
const
|
|
876
|
-
s =
|
|
874
|
+
return jn((a) => {
|
|
875
|
+
const o = a.loaded, c = a.lengthComputable ? a.total : void 0, d = o - s, x = i(d), p = o <= c;
|
|
876
|
+
s = o;
|
|
877
877
|
const y = {
|
|
878
|
-
loaded:
|
|
878
|
+
loaded: o,
|
|
879
879
|
total: c,
|
|
880
|
-
progress: c ?
|
|
880
|
+
progress: c ? o / c : void 0,
|
|
881
881
|
bytes: d,
|
|
882
882
|
rate: x || void 0,
|
|
883
|
-
estimated: x && c && p ? (c -
|
|
884
|
-
event:
|
|
883
|
+
estimated: x && c && p ? (c - o) / x : void 0,
|
|
884
|
+
event: a,
|
|
885
885
|
lengthComputable: c != null,
|
|
886
886
|
[e ? "download" : "upload"]: !0
|
|
887
887
|
};
|
|
@@ -900,9 +900,9 @@ const Ne = (t, e, n = 3) => {
|
|
|
900
900
|
) : () => !0, Sn = Q.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
|
-
write(t, e, n, s, i,
|
|
904
|
-
const
|
|
905
|
-
f.isNumber(n) &&
|
|
903
|
+
write(t, e, n, s, i, a) {
|
|
904
|
+
const o = [t + "=" + encodeURIComponent(e)];
|
|
905
|
+
f.isNumber(n) && o.push("expires=" + new Date(n).toGMTString()), f.isString(s) && o.push("path=" + s), f.isString(i) && o.push("domain=" + i), a === !0 && o.push("secure"), document.cookie = o.join("; ");
|
|
906
906
|
},
|
|
907
907
|
read(t) {
|
|
908
908
|
const e = document.cookie.match(new RegExp("(^|;\\s*)(" + t + ")=([^;]*)"));
|
|
@@ -947,11 +947,11 @@ function me(t, e) {
|
|
|
947
947
|
return s(void 0, x, y, k);
|
|
948
948
|
} else return s(x, p, y, k);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function a(x, p) {
|
|
951
951
|
if (!f.isUndefined(p))
|
|
952
952
|
return s(void 0, p);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function o(x, p) {
|
|
955
955
|
if (f.isUndefined(p)) {
|
|
956
956
|
if (!f.isUndefined(x))
|
|
957
957
|
return s(void 0, x);
|
|
@@ -964,33 +964,33 @@ function me(t, e) {
|
|
|
964
964
|
return s(void 0, x);
|
|
965
965
|
}
|
|
966
966
|
const d = {
|
|
967
|
-
url:
|
|
968
|
-
method:
|
|
969
|
-
data:
|
|
970
|
-
baseURL:
|
|
971
|
-
transformRequest:
|
|
972
|
-
transformResponse:
|
|
973
|
-
paramsSerializer:
|
|
974
|
-
timeout:
|
|
975
|
-
timeoutMessage:
|
|
976
|
-
withCredentials:
|
|
977
|
-
withXSRFToken:
|
|
978
|
-
adapter:
|
|
979
|
-
responseType:
|
|
980
|
-
xsrfCookieName:
|
|
981
|
-
xsrfHeaderName:
|
|
982
|
-
onUploadProgress:
|
|
983
|
-
onDownloadProgress:
|
|
984
|
-
decompress:
|
|
985
|
-
maxContentLength:
|
|
986
|
-
maxBodyLength:
|
|
987
|
-
beforeRedirect:
|
|
988
|
-
transport:
|
|
989
|
-
httpAgent:
|
|
990
|
-
httpsAgent:
|
|
991
|
-
cancelToken:
|
|
992
|
-
socketPath:
|
|
993
|
-
responseEncoding:
|
|
967
|
+
url: a,
|
|
968
|
+
method: a,
|
|
969
|
+
data: a,
|
|
970
|
+
baseURL: o,
|
|
971
|
+
transformRequest: o,
|
|
972
|
+
transformResponse: o,
|
|
973
|
+
paramsSerializer: o,
|
|
974
|
+
timeout: o,
|
|
975
|
+
timeoutMessage: o,
|
|
976
|
+
withCredentials: o,
|
|
977
|
+
withXSRFToken: o,
|
|
978
|
+
adapter: o,
|
|
979
|
+
responseType: o,
|
|
980
|
+
xsrfCookieName: o,
|
|
981
|
+
xsrfHeaderName: o,
|
|
982
|
+
onUploadProgress: o,
|
|
983
|
+
onDownloadProgress: o,
|
|
984
|
+
decompress: o,
|
|
985
|
+
maxContentLength: o,
|
|
986
|
+
maxBodyLength: o,
|
|
987
|
+
beforeRedirect: o,
|
|
988
|
+
transport: o,
|
|
989
|
+
httpAgent: o,
|
|
990
|
+
httpsAgent: o,
|
|
991
|
+
cancelToken: o,
|
|
992
|
+
socketPath: o,
|
|
993
|
+
responseEncoding: o,
|
|
994
994
|
validateStatus: c,
|
|
995
995
|
headers: (x, p, y) => i(bt(x), bt(p), y, !0)
|
|
996
996
|
};
|
|
@@ -1001,30 +1001,30 @@ function me(t, e) {
|
|
|
1001
1001
|
}
|
|
1002
1002
|
const Zt = (t) => {
|
|
1003
1003
|
const e = me({}, t);
|
|
1004
|
-
let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName:
|
|
1005
|
-
if (e.headers =
|
|
1004
|
+
let { data: n, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: c } = e;
|
|
1005
|
+
if (e.headers = o = re.from(o), e.url = Vt(Xt(e.baseURL, e.url, e.allowAbsoluteUrls), t.params, t.paramsSerializer), c && o.set(
|
|
1006
1006
|
"Authorization",
|
|
1007
1007
|
"Basic " + btoa((c.username || "") + ":" + (c.password ? unescape(encodeURIComponent(c.password)) : ""))
|
|
1008
1008
|
), f.isFormData(n)) {
|
|
1009
1009
|
if (Q.hasStandardBrowserEnv || Q.hasStandardBrowserWebWorkerEnv)
|
|
1010
|
-
|
|
1010
|
+
o.setContentType(void 0);
|
|
1011
1011
|
else if (f.isFunction(n.getHeaders)) {
|
|
1012
1012
|
const d = n.getHeaders(), x = ["content-type", "content-length"];
|
|
1013
1013
|
Object.entries(d).forEach(([p, y]) => {
|
|
1014
|
-
x.includes(p.toLowerCase()) &&
|
|
1014
|
+
x.includes(p.toLowerCase()) && o.set(p, y);
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
1018
|
if (Q.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && vn(e.url))) {
|
|
1019
|
-
const d = i &&
|
|
1020
|
-
d &&
|
|
1019
|
+
const d = i && a && Sn.read(a);
|
|
1020
|
+
d && o.set(i, d);
|
|
1021
1021
|
}
|
|
1022
1022
|
return e;
|
|
1023
1023
|
}, Cn = typeof XMLHttpRequest < "u", Tn = Cn && function(t) {
|
|
1024
1024
|
return new Promise(function(n, s) {
|
|
1025
1025
|
const i = Zt(t);
|
|
1026
|
-
let
|
|
1027
|
-
const
|
|
1026
|
+
let a = i.data;
|
|
1027
|
+
const o = re.from(i.headers).normalize();
|
|
1028
1028
|
let { responseType: c, onUploadProgress: d, onDownloadProgress: x } = i, p, y, k, E, u;
|
|
1029
1029
|
function w() {
|
|
1030
1030
|
E && E(), u && u(), i.cancelToken && i.cancelToken.unsubscribe(p), i.signal && i.signal.removeEventListener("abort", p);
|
|
@@ -1066,7 +1066,7 @@ const Zt = (t) => {
|
|
|
1066
1066
|
t,
|
|
1067
1067
|
h
|
|
1068
1068
|
)), h = null;
|
|
1069
|
-
},
|
|
1069
|
+
}, a === void 0 && o.setContentType(null), "setRequestHeader" in h && f.forEach(o.toJSON(), function(U, N) {
|
|
1070
1070
|
h.setRequestHeader(N, U);
|
|
1071
1071
|
}), f.isUndefined(i.withCredentials) || (h.withCredentials = !!i.withCredentials), c && c !== "json" && (h.responseType = i.responseType), x && ([k, u] = Ne(x, !0), h.addEventListener("progress", k)), d && h.upload && ([y, E] = Ne(d), h.upload.addEventListener("progress", y), h.upload.addEventListener("loadend", E)), (i.cancelToken || i.signal) && (p = (g) => {
|
|
1072
1072
|
h && (s(!g || g.type ? new ve(null, t, h) : g), h.abort(), h = null);
|
|
@@ -1076,28 +1076,28 @@ const Zt = (t) => {
|
|
|
1076
1076
|
s(new $("Unsupported protocol " + C + ":", $.ERR_BAD_REQUEST, t));
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
h.send(
|
|
1079
|
+
h.send(a || null);
|
|
1080
1080
|
});
|
|
1081
1081
|
}, Rn = (t, e) => {
|
|
1082
1082
|
const { length: n } = t = t ? t.filter(Boolean) : [];
|
|
1083
1083
|
if (e || n) {
|
|
1084
1084
|
let s = new AbortController(), i;
|
|
1085
|
-
const
|
|
1085
|
+
const a = function(x) {
|
|
1086
1086
|
if (!i) {
|
|
1087
1087
|
i = !0, c();
|
|
1088
1088
|
const p = x instanceof Error ? x : this.reason;
|
|
1089
1089
|
s.abort(p instanceof $ ? p : new ve(p instanceof Error ? p.message : p));
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
|
-
let
|
|
1093
|
-
|
|
1092
|
+
let o = e && setTimeout(() => {
|
|
1093
|
+
o = null, a(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
|
|
1094
1094
|
}, e);
|
|
1095
1095
|
const c = () => {
|
|
1096
|
-
t && (
|
|
1097
|
-
x.unsubscribe ? x.unsubscribe(
|
|
1096
|
+
t && (o && clearTimeout(o), o = null, t.forEach((x) => {
|
|
1097
|
+
x.unsubscribe ? x.unsubscribe(a) : x.removeEventListener("abort", a);
|
|
1098
1098
|
}), t = null);
|
|
1099
1099
|
};
|
|
1100
|
-
t.forEach((x) => x.addEventListener("abort",
|
|
1100
|
+
t.forEach((x) => x.addEventListener("abort", a));
|
|
1101
1101
|
const { signal: d } = s;
|
|
1102
1102
|
return d.unsubscribe = () => f.asap(c), d;
|
|
1103
1103
|
}
|
|
@@ -1131,8 +1131,8 @@ const Zt = (t) => {
|
|
|
1131
1131
|
}
|
|
1132
1132
|
}, wt = (t, e, n, s) => {
|
|
1133
1133
|
const i = In(t, e);
|
|
1134
|
-
let
|
|
1135
|
-
|
|
1134
|
+
let a = 0, o, c = (d) => {
|
|
1135
|
+
o || (o = !0, s && s(d));
|
|
1136
1136
|
};
|
|
1137
1137
|
return new ReadableStream({
|
|
1138
1138
|
async pull(d) {
|
|
@@ -1144,7 +1144,7 @@ const Zt = (t) => {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
let y = p.byteLength;
|
|
1146
1146
|
if (n) {
|
|
1147
|
-
let k =
|
|
1147
|
+
let k = a += y;
|
|
1148
1148
|
n(k);
|
|
1149
1149
|
}
|
|
1150
1150
|
d.enqueue(new Uint8Array(p));
|
|
@@ -1174,10 +1174,10 @@ const Zt = (t) => {
|
|
|
1174
1174
|
t = f.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())), x =
|
|
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())), x = a && c && kt(() => {
|
|
1181
1181
|
let u = !1;
|
|
1182
1182
|
const w = new n(Q.origin, {
|
|
1183
1183
|
body: new vt(),
|
|
@@ -1187,7 +1187,7 @@ const Zt = (t) => {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
}).headers.has("Content-Type");
|
|
1189
1189
|
return u && !w;
|
|
1190
|
-
}), p =
|
|
1190
|
+
}), p = o && c && kt(() => f.isReadableStream(new s("").body)), y = {
|
|
1191
1191
|
stream: p && ((u) => u.body)
|
|
1192
1192
|
};
|
|
1193
1193
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((u) => {
|
|
@@ -1253,7 +1253,7 @@ const Zt = (t) => {
|
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
f.isString(O) || (O = O ? "include" : "omit");
|
|
1256
|
-
const M =
|
|
1256
|
+
const M = a && "credentials" in n.prototype, J = {
|
|
1257
1257
|
...X,
|
|
1258
1258
|
signal: R,
|
|
1259
1259
|
method: h.toUpperCase(),
|
|
@@ -1262,8 +1262,8 @@ const Zt = (t) => {
|
|
|
1262
1262
|
duplex: "half",
|
|
1263
1263
|
credentials: M ? O : void 0
|
|
1264
1264
|
};
|
|
1265
|
-
G =
|
|
1266
|
-
let H = await (
|
|
1265
|
+
G = a && new n(w, J);
|
|
1266
|
+
let H = await (a ? W(G, X) : W(w, J));
|
|
1267
1267
|
const L = p && (j === "stream" || j === "response");
|
|
1268
1268
|
if (p && (N || L && T)) {
|
|
1269
1269
|
const l = {};
|
|
@@ -1304,14 +1304,14 @@ const Zt = (t) => {
|
|
|
1304
1304
|
};
|
|
1305
1305
|
}, Un = /* @__PURE__ */ new Map(), Qt = (t) => {
|
|
1306
1306
|
let e = t ? t.env : {};
|
|
1307
|
-
const { fetch: n, Request: s, Response: i } = e,
|
|
1307
|
+
const { fetch: n, Request: s, Response: i } = e, a = [
|
|
1308
1308
|
s,
|
|
1309
1309
|
i,
|
|
1310
1310
|
n
|
|
1311
1311
|
];
|
|
1312
|
-
let
|
|
1312
|
+
let o = a.length, c = o, d, x, p = Un;
|
|
1313
1313
|
for (; c--; )
|
|
1314
|
-
d =
|
|
1314
|
+
d = a[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() : zn(e)), p = x;
|
|
1315
1315
|
return x;
|
|
1316
1316
|
};
|
|
1317
1317
|
Qt();
|
|
@@ -1336,23 +1336,23 @@ const Et = (t) => `- ${t}`, _n = (t) => f.isFunction(t) || t === null || t === !
|
|
|
1336
1336
|
t = f.isArray(t) ? t : [t];
|
|
1337
1337
|
const { length: n } = t;
|
|
1338
1338
|
let s, i;
|
|
1339
|
-
const
|
|
1340
|
-
for (let
|
|
1341
|
-
s = t[
|
|
1339
|
+
const a = {};
|
|
1340
|
+
for (let o = 0; o < n; o++) {
|
|
1341
|
+
s = t[o];
|
|
1342
1342
|
let c;
|
|
1343
1343
|
if (i = s, !_n(s) && (i = Qe[(c = String(s)).toLowerCase()], i === void 0))
|
|
1344
1344
|
throw new $(`Unknown adapter '${c}'`);
|
|
1345
1345
|
if (i && (f.isFunction(i) || (i = i.get(e))))
|
|
1346
1346
|
break;
|
|
1347
|
-
|
|
1347
|
+
a[c || "#" + o] = i;
|
|
1348
1348
|
}
|
|
1349
1349
|
if (!i) {
|
|
1350
|
-
const
|
|
1350
|
+
const o = Object.entries(a).map(
|
|
1351
1351
|
([d, x]) => `adapter ${d} ` + (x === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1352
1352
|
);
|
|
1353
|
-
let c = n ?
|
|
1354
|
-
` +
|
|
1355
|
-
`) : " " + Et(
|
|
1353
|
+
let c = n ? o.length > 1 ? `since :
|
|
1354
|
+
` + o.map(Et).join(`
|
|
1355
|
+
`) : " " + Et(o[0]) : "as no adapter specified";
|
|
1356
1356
|
throw new $(
|
|
1357
1357
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1358
1358
|
"ERR_NOT_SUPPORT"
|
|
@@ -1392,21 +1392,21 @@ const tr = "1.12.2", We = {};
|
|
|
1392
1392
|
});
|
|
1393
1393
|
const Tt = {};
|
|
1394
1394
|
We.transitional = function(e, n, s) {
|
|
1395
|
-
function i(
|
|
1396
|
-
return "[Axios v" + tr + "] Transitional option '" +
|
|
1395
|
+
function i(a, o) {
|
|
1396
|
+
return "[Axios v" + tr + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
|
|
1397
1397
|
}
|
|
1398
|
-
return (
|
|
1398
|
+
return (a, o, c) => {
|
|
1399
1399
|
if (e === !1)
|
|
1400
1400
|
throw new $(
|
|
1401
|
-
i(
|
|
1401
|
+
i(o, " has been removed" + (n ? " in " + n : "")),
|
|
1402
1402
|
$.ERR_DEPRECATED
|
|
1403
1403
|
);
|
|
1404
|
-
return n && !Tt[
|
|
1404
|
+
return n && !Tt[o] && (Tt[o] = !0, console.warn(
|
|
1405
1405
|
i(
|
|
1406
|
-
|
|
1406
|
+
o,
|
|
1407
1407
|
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1408
1408
|
)
|
|
1409
|
-
)), e ? e(
|
|
1409
|
+
)), e ? e(a, o, c) : !0;
|
|
1410
1410
|
};
|
|
1411
1411
|
};
|
|
1412
1412
|
We.spelling = function(e) {
|
|
@@ -1418,15 +1418,15 @@ function $n(t, e, n) {
|
|
|
1418
1418
|
const s = Object.keys(t);
|
|
1419
1419
|
let i = s.length;
|
|
1420
1420
|
for (; i-- > 0; ) {
|
|
1421
|
-
const
|
|
1422
|
-
if (
|
|
1423
|
-
const c = t[
|
|
1421
|
+
const a = s[i], o = e[a];
|
|
1422
|
+
if (o) {
|
|
1423
|
+
const c = t[a], d = c === void 0 || o(c, a, t);
|
|
1424
1424
|
if (d !== !0)
|
|
1425
|
-
throw new $("option " +
|
|
1425
|
+
throw new $("option " + a + " must be " + d, $.ERR_BAD_OPTION_VALUE);
|
|
1426
1426
|
continue;
|
|
1427
1427
|
}
|
|
1428
1428
|
if (n !== !0)
|
|
1429
|
-
throw new $("Unknown option " +
|
|
1429
|
+
throw new $("Unknown option " + a, $.ERR_BAD_OPTION);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
1432
|
const $e = {
|
|
@@ -1455,10 +1455,10 @@ let xe = class {
|
|
|
1455
1455
|
if (s instanceof Error) {
|
|
1456
1456
|
let i = {};
|
|
1457
1457
|
Error.captureStackTrace ? Error.captureStackTrace(i) : i = new Error();
|
|
1458
|
-
const
|
|
1458
|
+
const a = i.stack ? i.stack.replace(/^.+\n/, "") : "";
|
|
1459
1459
|
try {
|
|
1460
|
-
s.stack ?
|
|
1461
|
-
` +
|
|
1460
|
+
s.stack ? a && !String(s.stack).endsWith(a.replace(/^.+\n.+\n/, "")) && (s.stack += `
|
|
1461
|
+
` + a) : s.stack = a;
|
|
1462
1462
|
} catch {
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
@@ -1467,7 +1467,7 @@ let xe = class {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
_request(e, n) {
|
|
1469
1469
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = me(this.defaults, n);
|
|
1470
|
-
const { transitional: s, paramsSerializer: i, headers:
|
|
1470
|
+
const { transitional: s, paramsSerializer: i, headers: a } = n;
|
|
1471
1471
|
s !== void 0 && $e.assertOptions(s, {
|
|
1472
1472
|
silentJSONParsing: ce.transitional(ce.boolean),
|
|
1473
1473
|
forcedJSONParsing: ce.transitional(ce.boolean),
|
|
@@ -1481,16 +1481,16 @@ let xe = class {
|
|
|
1481
1481
|
baseUrl: ce.spelling("baseURL"),
|
|
1482
1482
|
withXsrfToken: ce.spelling("withXSRFToken")
|
|
1483
1483
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1486
|
-
|
|
1484
|
+
let o = a && f.merge(
|
|
1485
|
+
a.common,
|
|
1486
|
+
a[n.method]
|
|
1487
1487
|
);
|
|
1488
|
-
|
|
1488
|
+
a && f.forEach(
|
|
1489
1489
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1490
1490
|
(u) => {
|
|
1491
|
-
delete
|
|
1491
|
+
delete a[u];
|
|
1492
1492
|
}
|
|
1493
|
-
), n.headers = re.concat(
|
|
1493
|
+
), n.headers = re.concat(o, a);
|
|
1494
1494
|
const c = [];
|
|
1495
1495
|
let d = !0;
|
|
1496
1496
|
this.interceptors.request.forEach(function(w) {
|
|
@@ -1544,14 +1544,14 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
f.forEach(["post", "put", "patch"], function(e) {
|
|
1546
1546
|
function n(s) {
|
|
1547
|
-
return function(
|
|
1547
|
+
return function(a, o, c) {
|
|
1548
1548
|
return this.request(me(c || {}, {
|
|
1549
1549
|
method: e,
|
|
1550
1550
|
headers: s ? {
|
|
1551
1551
|
"Content-Type": "multipart/form-data"
|
|
1552
1552
|
} : {},
|
|
1553
|
-
url:
|
|
1554
|
-
data:
|
|
1553
|
+
url: a,
|
|
1554
|
+
data: o
|
|
1555
1555
|
}));
|
|
1556
1556
|
};
|
|
1557
1557
|
}
|
|
@@ -1562,26 +1562,26 @@ let Dn = class rr {
|
|
|
1562
1562
|
if (typeof e != "function")
|
|
1563
1563
|
throw new TypeError("executor must be a function.");
|
|
1564
1564
|
let n;
|
|
1565
|
-
this.promise = new Promise(function(
|
|
1566
|
-
n =
|
|
1565
|
+
this.promise = new Promise(function(a) {
|
|
1566
|
+
n = a;
|
|
1567
1567
|
});
|
|
1568
1568
|
const s = this;
|
|
1569
1569
|
this.promise.then((i) => {
|
|
1570
1570
|
if (!s._listeners) return;
|
|
1571
|
-
let
|
|
1572
|
-
for (;
|
|
1573
|
-
s._listeners[
|
|
1571
|
+
let a = s._listeners.length;
|
|
1572
|
+
for (; a-- > 0; )
|
|
1573
|
+
s._listeners[a](i);
|
|
1574
1574
|
s._listeners = null;
|
|
1575
1575
|
}), this.promise.then = (i) => {
|
|
1576
|
-
let
|
|
1577
|
-
const
|
|
1578
|
-
s.subscribe(c),
|
|
1576
|
+
let a;
|
|
1577
|
+
const o = new Promise((c) => {
|
|
1578
|
+
s.subscribe(c), a = c;
|
|
1579
1579
|
}).then(i);
|
|
1580
|
-
return
|
|
1581
|
-
s.unsubscribe(
|
|
1582
|
-
},
|
|
1583
|
-
}, e(function(
|
|
1584
|
-
s.reason || (s.reason = new ve(
|
|
1580
|
+
return o.cancel = function() {
|
|
1581
|
+
s.unsubscribe(a);
|
|
1582
|
+
}, o;
|
|
1583
|
+
}, e(function(a, o, c) {
|
|
1584
|
+
s.reason || (s.reason = new ve(a, o, c), n(s.reason));
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
1587
|
/**
|
|
@@ -1747,8 +1747,8 @@ const {
|
|
|
1747
1747
|
AxiosHeaders: ni,
|
|
1748
1748
|
HttpStatusCode: si,
|
|
1749
1749
|
formToJSON: ii,
|
|
1750
|
-
getAdapter:
|
|
1751
|
-
mergeConfig:
|
|
1750
|
+
getAdapter: ai,
|
|
1751
|
+
mergeConfig: oi
|
|
1752
1752
|
} = K;
|
|
1753
1753
|
class li {
|
|
1754
1754
|
baseUrl;
|
|
@@ -1781,25 +1781,25 @@ class li {
|
|
|
1781
1781
|
* @param data Optional request body
|
|
1782
1782
|
* @param extraHeaders Optional custom headers
|
|
1783
1783
|
*/
|
|
1784
|
-
async request(e, n, s, i = {},
|
|
1784
|
+
async request(e, n, s, i = {}, a = !1) {
|
|
1785
1785
|
try {
|
|
1786
|
-
const
|
|
1786
|
+
const o = {
|
|
1787
1787
|
...this.appId ? { appId: this.appId } : {},
|
|
1788
1788
|
...s || {}
|
|
1789
1789
|
};
|
|
1790
1790
|
return (await this.client.request({
|
|
1791
1791
|
url: n,
|
|
1792
1792
|
method: e,
|
|
1793
|
-
data:
|
|
1793
|
+
data: o,
|
|
1794
1794
|
headers: i,
|
|
1795
|
-
withCredentials:
|
|
1795
|
+
withCredentials: a
|
|
1796
1796
|
// 👈 override axios default
|
|
1797
1797
|
})).data;
|
|
1798
|
-
} catch (
|
|
1799
|
-
throw K.isAxiosError(
|
|
1800
|
-
message:
|
|
1801
|
-
status:
|
|
1802
|
-
} : { message:
|
|
1798
|
+
} catch (o) {
|
|
1799
|
+
throw K.isAxiosError(o) ? {
|
|
1800
|
+
message: o.response?.data?.message || o.message || "Request failed",
|
|
1801
|
+
status: o.response?.status ?? 0
|
|
1802
|
+
} : { message: o.message || "Unexpected error occurred" };
|
|
1803
1803
|
}
|
|
1804
1804
|
}
|
|
1805
1805
|
// ================= USERS =================
|
|
@@ -2084,7 +2084,7 @@ class li {
|
|
|
2084
2084
|
throw new Error("searchUserDataByKeys: 'userId' is required");
|
|
2085
2085
|
const i = new URLSearchParams(
|
|
2086
2086
|
Object.entries(s).reduce(
|
|
2087
|
-
(
|
|
2087
|
+
(a, [o, c]) => (c != null && (a[o] = String(c)), a),
|
|
2088
2088
|
{}
|
|
2089
2089
|
)
|
|
2090
2090
|
).toString();
|
|
@@ -2110,15 +2110,15 @@ class li {
|
|
|
2110
2110
|
* - Future filter ready
|
|
2111
2111
|
*/
|
|
2112
2112
|
async getUserData(e) {
|
|
2113
|
-
const { userId: n, limit: s = 20, cursor: i, type:
|
|
2113
|
+
const { userId: n, limit: s = 20, cursor: i, type: a } = e;
|
|
2114
2114
|
if (!n)
|
|
2115
2115
|
throw new Error("getUserData: 'userId' is required");
|
|
2116
|
-
const
|
|
2117
|
-
c.append("limit", String(s)), i && c.append("cursor", i),
|
|
2116
|
+
const o = `/users/${encodeURIComponent(n)}/data`, c = new URLSearchParams();
|
|
2117
|
+
c.append("limit", String(s)), i && c.append("cursor", i), a && c.append("type", a);
|
|
2118
2118
|
const d = c.toString();
|
|
2119
2119
|
return await this.request(
|
|
2120
2120
|
"GET",
|
|
2121
|
-
d ? `${
|
|
2121
|
+
d ? `${o}?${d}` : o,
|
|
2122
2122
|
void 0,
|
|
2123
2123
|
{},
|
|
2124
2124
|
!1
|
|
@@ -2249,23 +2249,12 @@ class li {
|
|
|
2249
2249
|
const n = this.appId;
|
|
2250
2250
|
if (!n)
|
|
2251
2251
|
throw new Error("getAppUsersData: 'appId' is required");
|
|
2252
|
-
const {
|
|
2253
|
-
|
|
2254
|
-
limit: i = 20,
|
|
2255
|
-
cursor: o
|
|
2256
|
-
} = e;
|
|
2257
|
-
let a = `/app/${encodeURIComponent(n)}/users-data`;
|
|
2258
|
-
s && (a += `/${encodeURIComponent(s)}`);
|
|
2252
|
+
const { category: s, limit: i = 20, cursor: a } = e;
|
|
2253
|
+
let o = `/app/${encodeURIComponent(n)}/users-data`;
|
|
2259
2254
|
const c = new URLSearchParams();
|
|
2260
|
-
c.append("limit", String(i)),
|
|
2255
|
+
s && c.append("category", s), c.append("limit", String(i)), a && c.append("cursor", a);
|
|
2261
2256
|
const d = c.toString();
|
|
2262
|
-
return d && (
|
|
2263
|
-
"GET",
|
|
2264
|
-
a,
|
|
2265
|
-
void 0,
|
|
2266
|
-
{},
|
|
2267
|
-
!1
|
|
2268
|
-
);
|
|
2257
|
+
return d && (o += `?${d}`), await this.request("GET", o, void 0, {}, !1);
|
|
2269
2258
|
}
|
|
2270
2259
|
/**
|
|
2271
2260
|
* 👥 Get all app users (Paginated + Load More + Filters)
|
|
@@ -2283,8 +2272,8 @@ class li {
|
|
|
2283
2272
|
const n = this.appId;
|
|
2284
2273
|
if (!n)
|
|
2285
2274
|
throw new Error("getAllAppUsers: 'appId' is required");
|
|
2286
|
-
const { limit: s = 20, cursor: i, search:
|
|
2287
|
-
p.append("limit", String(s)), i && p.append("cursor", i),
|
|
2275
|
+
const { limit: s = 20, cursor: i, search: a, role: o, isActive: c, isVerified: d } = e, x = `/app/${encodeURIComponent(n)}/users`, p = new URLSearchParams();
|
|
2276
|
+
p.append("limit", String(s)), i && p.append("cursor", i), a && p.append("search", a), o && p.append("role", o), typeof c == "boolean" && p.append("isActive", String(c)), typeof d == "boolean" && p.append("isVerified", String(d));
|
|
2288
2277
|
const y = p.toString();
|
|
2289
2278
|
return await this.request(
|
|
2290
2279
|
"GET",
|
|
@@ -2410,19 +2399,19 @@ function Fn() {
|
|
|
2410
2399
|
if (Rt) return ke;
|
|
2411
2400
|
Rt = 1;
|
|
2412
2401
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
2413
|
-
function n(s, i,
|
|
2414
|
-
var
|
|
2415
|
-
if (
|
|
2416
|
-
|
|
2402
|
+
function n(s, i, a) {
|
|
2403
|
+
var o = null;
|
|
2404
|
+
if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
|
|
2405
|
+
a = {};
|
|
2417
2406
|
for (var c in i)
|
|
2418
|
-
c !== "key" && (
|
|
2419
|
-
} else
|
|
2420
|
-
return i =
|
|
2407
|
+
c !== "key" && (a[c] = i[c]);
|
|
2408
|
+
} else a = i;
|
|
2409
|
+
return i = a.ref, {
|
|
2421
2410
|
$$typeof: t,
|
|
2422
2411
|
type: s,
|
|
2423
|
-
key:
|
|
2412
|
+
key: o,
|
|
2424
2413
|
ref: i !== void 0 ? i : null,
|
|
2425
|
-
props:
|
|
2414
|
+
props: a
|
|
2426
2415
|
};
|
|
2427
2416
|
}
|
|
2428
2417
|
return ke.Fragment = e, ke.jsx = n, ke.jsxs = n, ke;
|
|
@@ -2518,10 +2507,10 @@ function qn() {
|
|
|
2518
2507
|
var l = R.A;
|
|
2519
2508
|
return l === null ? null : l.getOwner();
|
|
2520
2509
|
}
|
|
2521
|
-
function
|
|
2510
|
+
function a() {
|
|
2522
2511
|
return Error("react-stack-top-frame");
|
|
2523
2512
|
}
|
|
2524
|
-
function
|
|
2513
|
+
function o(l) {
|
|
2525
2514
|
if (G.call(l, "key")) {
|
|
2526
2515
|
var m = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
2527
2516
|
if (m && m.isReactWarning) return !1;
|
|
@@ -2546,7 +2535,7 @@ function qn() {
|
|
|
2546
2535
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
2547
2536
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
2548
2537
|
}
|
|
2549
|
-
function x(l, m, S, D, ne,
|
|
2538
|
+
function x(l, m, S, D, ne, oe) {
|
|
2550
2539
|
var B = S.ref;
|
|
2551
2540
|
return l = {
|
|
2552
2541
|
$$typeof: u,
|
|
@@ -2576,10 +2565,10 @@ function qn() {
|
|
|
2576
2565
|
configurable: !1,
|
|
2577
2566
|
enumerable: !1,
|
|
2578
2567
|
writable: !0,
|
|
2579
|
-
value:
|
|
2568
|
+
value: oe
|
|
2580
2569
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
2581
2570
|
}
|
|
2582
|
-
function p(l, m, S, D, ne,
|
|
2571
|
+
function p(l, m, S, D, ne, oe) {
|
|
2583
2572
|
var B = m.children;
|
|
2584
2573
|
if (B !== void 0)
|
|
2585
2574
|
if (D)
|
|
@@ -2610,7 +2599,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2610
2599
|
B
|
|
2611
2600
|
), Y[B + D] = !0);
|
|
2612
2601
|
}
|
|
2613
|
-
if (B = null, S !== void 0 && (n(S), B = "" + S),
|
|
2602
|
+
if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
|
|
2614
2603
|
S = {};
|
|
2615
2604
|
for (var ye in m)
|
|
2616
2605
|
ye !== "key" && (S[ye] = m[ye]);
|
|
@@ -2624,7 +2613,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2624
2613
|
S,
|
|
2625
2614
|
i(),
|
|
2626
2615
|
ne,
|
|
2627
|
-
|
|
2616
|
+
oe
|
|
2628
2617
|
);
|
|
2629
2618
|
}
|
|
2630
2619
|
function y(l) {
|
|
@@ -2643,8 +2632,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2643
2632
|
};
|
|
2644
2633
|
var M, J = {}, H = E.react_stack_bottom_frame.bind(
|
|
2645
2634
|
E,
|
|
2646
|
-
|
|
2647
|
-
)(), L = A(s(
|
|
2635
|
+
a
|
|
2636
|
+
)(), L = A(s(a)), Y = {};
|
|
2648
2637
|
Ee.Fragment = h, Ee.jsx = function(l, m, S) {
|
|
2649
2638
|
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2650
2639
|
return p(
|
|
@@ -2720,8 +2709,8 @@ const Yn = zt(
|
|
|
2720
2709
|
strokeWidth: n = 2,
|
|
2721
2710
|
absoluteStrokeWidth: s,
|
|
2722
2711
|
className: i = "",
|
|
2723
|
-
children:
|
|
2724
|
-
iconNode:
|
|
2712
|
+
children: a,
|
|
2713
|
+
iconNode: o,
|
|
2725
2714
|
...c
|
|
2726
2715
|
}, d) => Je(
|
|
2727
2716
|
"svg",
|
|
@@ -2733,12 +2722,12 @@ const Yn = zt(
|
|
|
2733
2722
|
stroke: t,
|
|
2734
2723
|
strokeWidth: s ? Number(n) * 24 / Number(e) : n,
|
|
2735
2724
|
className: sr("lucide", i),
|
|
2736
|
-
...!
|
|
2725
|
+
...!a && !Hn(c) && { "aria-hidden": "true" },
|
|
2737
2726
|
...c
|
|
2738
2727
|
},
|
|
2739
2728
|
[
|
|
2740
|
-
...
|
|
2741
|
-
...Array.isArray(
|
|
2729
|
+
...o.map(([x, p]) => Je(x, p)),
|
|
2730
|
+
...Array.isArray(a) ? a : [a]
|
|
2742
2731
|
]
|
|
2743
2732
|
)
|
|
2744
2733
|
);
|
|
@@ -2750,8 +2739,8 @@ const Yn = zt(
|
|
|
2750
2739
|
*/
|
|
2751
2740
|
const F = (t, e) => {
|
|
2752
2741
|
const n = zt(
|
|
2753
|
-
({ className: s, ...i },
|
|
2754
|
-
ref:
|
|
2742
|
+
({ className: s, ...i }, a) => Je(Yn, {
|
|
2743
|
+
ref: a,
|
|
2755
2744
|
iconNode: e,
|
|
2756
2745
|
className: sr(
|
|
2757
2746
|
`lucide-${Wn(Ot(t))}`,
|
|
@@ -2861,7 +2850,7 @@ const ss = [
|
|
|
2861
2850
|
* This source code is licensed under the ISC license.
|
|
2862
2851
|
* See the LICENSE file in the root directory of this source tree.
|
|
2863
2852
|
*/
|
|
2864
|
-
const
|
|
2853
|
+
const as = [
|
|
2865
2854
|
[
|
|
2866
2855
|
"path",
|
|
2867
2856
|
{
|
|
@@ -2878,14 +2867,14 @@ const os = [
|
|
|
2878
2867
|
}
|
|
2879
2868
|
],
|
|
2880
2869
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
2881
|
-
],
|
|
2870
|
+
], at = F("eye-off", as);
|
|
2882
2871
|
/**
|
|
2883
2872
|
* @license lucide-react v0.544.0 - ISC
|
|
2884
2873
|
*
|
|
2885
2874
|
* This source code is licensed under the ISC license.
|
|
2886
2875
|
* See the LICENSE file in the root directory of this source tree.
|
|
2887
2876
|
*/
|
|
2888
|
-
const
|
|
2877
|
+
const os = [
|
|
2889
2878
|
[
|
|
2890
2879
|
"path",
|
|
2891
2880
|
{
|
|
@@ -2894,7 +2883,7 @@ const as = [
|
|
|
2894
2883
|
}
|
|
2895
2884
|
],
|
|
2896
2885
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
2897
|
-
],
|
|
2886
|
+
], ot = F("eye", os);
|
|
2898
2887
|
/**
|
|
2899
2888
|
* @license lucide-react v0.544.0 - ISC
|
|
2900
2889
|
*
|
|
@@ -2937,7 +2926,7 @@ const us = [
|
|
|
2937
2926
|
}
|
|
2938
2927
|
],
|
|
2939
2928
|
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
|
|
2940
|
-
],
|
|
2929
|
+
], ar = F("key-round", us);
|
|
2941
2930
|
/**
|
|
2942
2931
|
* @license lucide-react v0.544.0 - ISC
|
|
2943
2932
|
*
|
|
@@ -3186,11 +3175,11 @@ const Ds = [
|
|
|
3186
3175
|
const Ns = [
|
|
3187
3176
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3188
3177
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3189
|
-
], Oe = F("x", Ns),
|
|
3178
|
+
], Oe = F("x", Ns), or = cr(null), ci = ({
|
|
3190
3179
|
authix: t,
|
|
3191
3180
|
children: e
|
|
3192
|
-
}) => /* @__PURE__ */ r.jsx(
|
|
3193
|
-
const t = dr(
|
|
3181
|
+
}) => /* @__PURE__ */ r.jsx(or.Provider, { value: t, children: e }), ge = () => {
|
|
3182
|
+
const t = dr(or);
|
|
3194
3183
|
if (!t)
|
|
3195
3184
|
throw new Error("useAuthix must be used inside <AuthixProvider />");
|
|
3196
3185
|
return t;
|
|
@@ -3200,8 +3189,8 @@ const Ns = [
|
|
|
3200
3189
|
title: n = "Create Your Account",
|
|
3201
3190
|
subtitle: s = "Join our platform today",
|
|
3202
3191
|
primaryColor: i = "#00C214",
|
|
3203
|
-
gradient:
|
|
3204
|
-
darkMode:
|
|
3192
|
+
gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3193
|
+
darkMode: o = !0,
|
|
3205
3194
|
// Only avatar is optional
|
|
3206
3195
|
showAvatar: c = !1,
|
|
3207
3196
|
roles: d = [],
|
|
@@ -3218,7 +3207,7 @@ const Ns = [
|
|
|
3218
3207
|
password: "",
|
|
3219
3208
|
role: d.length ? d[0] : "user",
|
|
3220
3209
|
...c && { avatarUrl: "" }
|
|
3221
|
-
}, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W =
|
|
3210
|
+
}, [w, h] = P(u), [I, C] = P(!1), [g, U] = P(!1), [N, b] = P(null), [j, q] = P({}), [O, X] = P(!1), W = o ? "#ffffff" : "#111827", R = o ? "#a1a1aa" : "#6b7280", G = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", T = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
|
|
3222
3211
|
Ce.useEffect(() => {
|
|
3223
3212
|
if (typeof window < "u") {
|
|
3224
3213
|
const L = () => X(window.innerWidth < 768);
|
|
@@ -3287,7 +3276,7 @@ const Ns = [
|
|
|
3287
3276
|
flexDirection: "column",
|
|
3288
3277
|
borderRadius: "10px",
|
|
3289
3278
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3290
|
-
backgroundColor:
|
|
3279
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3291
3280
|
padding: O ? "30px 24px" : "20px 28px"
|
|
3292
3281
|
},
|
|
3293
3282
|
children: [
|
|
@@ -3422,9 +3411,9 @@ const Ns = [
|
|
|
3422
3411
|
left: 0,
|
|
3423
3412
|
width: "50%",
|
|
3424
3413
|
height: "100%",
|
|
3425
|
-
backgroundColor:
|
|
3414
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3426
3415
|
// dark/light background
|
|
3427
|
-
boxShadow:
|
|
3416
|
+
boxShadow: o ? "0 1px 3px rgba(255,255,255,0.05)" : "0 1px 3px rgba(0,0,0,0.1)",
|
|
3428
3417
|
// subtle shadow
|
|
3429
3418
|
borderRadius: "10px",
|
|
3430
3419
|
transition: "transform 0.3s ease, background-color 0.3s ease",
|
|
@@ -3443,7 +3432,7 @@ const Ns = [
|
|
|
3443
3432
|
zIndex: 10,
|
|
3444
3433
|
border: "none",
|
|
3445
3434
|
background: "transparent",
|
|
3446
|
-
color: w.role === d[0] ? i :
|
|
3435
|
+
color: w.role === d[0] ? i : o ? "#9ca3af" : "#6b7280",
|
|
3447
3436
|
// theme-aware inactive color
|
|
3448
3437
|
fontWeight: w.role === d[0] ? 600 : 500,
|
|
3449
3438
|
fontSize: "14px",
|
|
@@ -3465,7 +3454,7 @@ const Ns = [
|
|
|
3465
3454
|
zIndex: 10,
|
|
3466
3455
|
border: "none",
|
|
3467
3456
|
background: "transparent",
|
|
3468
|
-
color: w.role === d[1] ? i :
|
|
3457
|
+
color: w.role === d[1] ? i : o ? "#9ca3af" : "#6b7280",
|
|
3469
3458
|
fontWeight: w.role === d[1] ? 600 : 500,
|
|
3470
3459
|
fontSize: "14px",
|
|
3471
3460
|
display: "flex",
|
|
@@ -3650,7 +3639,7 @@ const Ns = [
|
|
|
3650
3639
|
cursor: "pointer",
|
|
3651
3640
|
padding: "4px"
|
|
3652
3641
|
},
|
|
3653
|
-
children: I ? /* @__PURE__ */ r.jsx(
|
|
3642
|
+
children: I ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
|
|
3654
3643
|
}
|
|
3655
3644
|
)
|
|
3656
3645
|
] }),
|
|
@@ -3762,7 +3751,7 @@ const Ns = [
|
|
|
3762
3751
|
disabled: g,
|
|
3763
3752
|
style: {
|
|
3764
3753
|
padding: "12px",
|
|
3765
|
-
background:
|
|
3754
|
+
background: a,
|
|
3766
3755
|
color: "#fff",
|
|
3767
3756
|
border: "none",
|
|
3768
3757
|
borderRadius: "10px",
|
|
@@ -3825,8 +3814,8 @@ const Ns = [
|
|
|
3825
3814
|
title: n = "Sign In to Your Account",
|
|
3826
3815
|
subtitle: s = "Welcome back! Please enter your details",
|
|
3827
3816
|
primaryColor: i = "#00C214",
|
|
3828
|
-
gradient:
|
|
3829
|
-
darkMode:
|
|
3817
|
+
gradient: a = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3818
|
+
darkMode: o = !0,
|
|
3830
3819
|
signupUrl: c,
|
|
3831
3820
|
onSuccess: d,
|
|
3832
3821
|
onError: x
|
|
@@ -3835,7 +3824,7 @@ const Ns = [
|
|
|
3835
3824
|
email: "",
|
|
3836
3825
|
otp: "",
|
|
3837
3826
|
newPassword: ""
|
|
3838
|
-
}), [W, R] = P(!1), G =
|
|
3827
|
+
}), [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)";
|
|
3839
3828
|
Ce.useEffect(() => {
|
|
3840
3829
|
if (typeof window < "u") {
|
|
3841
3830
|
const m = () => R(window.innerWidth < 768);
|
|
@@ -3849,8 +3838,8 @@ const Ns = [
|
|
|
3849
3838
|
if (!D)
|
|
3850
3839
|
throw new Error(S.message || "Login failed");
|
|
3851
3840
|
if (typeof document < "u") {
|
|
3852
|
-
const ne = "a_s_b",
|
|
3853
|
-
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${
|
|
3841
|
+
const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
|
|
3842
|
+
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
|
|
3854
3843
|
}
|
|
3855
3844
|
U({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
|
|
3856
3845
|
} catch (S) {
|
|
@@ -3932,7 +3921,7 @@ const Ns = [
|
|
|
3932
3921
|
flexDirection: "column",
|
|
3933
3922
|
borderRadius: "10px",
|
|
3934
3923
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3935
|
-
backgroundColor:
|
|
3924
|
+
backgroundColor: o ? "#000000" : "#ffffff",
|
|
3936
3925
|
padding: W ? "30px 24px" : "18px 28px"
|
|
3937
3926
|
},
|
|
3938
3927
|
children: [
|
|
@@ -4012,7 +4001,7 @@ const Ns = [
|
|
|
4012
4001
|
style: {
|
|
4013
4002
|
fontSize: "14px",
|
|
4014
4003
|
fontWeight: 500,
|
|
4015
|
-
color:
|
|
4004
|
+
color: o ? "#ffffff" : "#000000"
|
|
4016
4005
|
},
|
|
4017
4006
|
children: "Email Address"
|
|
4018
4007
|
}
|
|
@@ -4058,7 +4047,7 @@ const Ns = [
|
|
|
4058
4047
|
style: {
|
|
4059
4048
|
fontSize: "14px",
|
|
4060
4049
|
fontWeight: 500,
|
|
4061
|
-
color:
|
|
4050
|
+
color: o ? "#ffffff" : "#000000"
|
|
4062
4051
|
},
|
|
4063
4052
|
children: "Password"
|
|
4064
4053
|
}
|
|
@@ -4104,7 +4093,7 @@ const Ns = [
|
|
|
4104
4093
|
color: T,
|
|
4105
4094
|
cursor: "pointer"
|
|
4106
4095
|
},
|
|
4107
|
-
children: w ? /* @__PURE__ */ r.jsx(
|
|
4096
|
+
children: w ? /* @__PURE__ */ r.jsx(at, { size: 20 }) : /* @__PURE__ */ r.jsx(ot, { size: 20 })
|
|
4108
4097
|
}
|
|
4109
4098
|
)
|
|
4110
4099
|
] })
|
|
@@ -4157,7 +4146,7 @@ const Ns = [
|
|
|
4157
4146
|
disabled: I,
|
|
4158
4147
|
style: {
|
|
4159
4148
|
padding: "12px",
|
|
4160
|
-
background:
|
|
4149
|
+
background: a,
|
|
4161
4150
|
color: "#fff",
|
|
4162
4151
|
border: "none",
|
|
4163
4152
|
borderRadius: "10px",
|
|
@@ -4188,7 +4177,7 @@ const Ns = [
|
|
|
4188
4177
|
style: {
|
|
4189
4178
|
fontSize: "14px",
|
|
4190
4179
|
fontWeight: 500,
|
|
4191
|
-
color:
|
|
4180
|
+
color: o ? "#ffffff" : "#000000"
|
|
4192
4181
|
},
|
|
4193
4182
|
children: "Email Address"
|
|
4194
4183
|
}
|
|
@@ -4239,14 +4228,14 @@ const Ns = [
|
|
|
4239
4228
|
style: {
|
|
4240
4229
|
fontSize: "14px",
|
|
4241
4230
|
fontWeight: 500,
|
|
4242
|
-
color:
|
|
4231
|
+
color: o ? "#ffffff" : "#000000"
|
|
4243
4232
|
},
|
|
4244
4233
|
children: "One-Time Password (OTP)"
|
|
4245
4234
|
}
|
|
4246
4235
|
),
|
|
4247
4236
|
/* @__PURE__ */ r.jsxs("div", { style: { position: "relative" }, children: [
|
|
4248
4237
|
/* @__PURE__ */ r.jsx(
|
|
4249
|
-
|
|
4238
|
+
ar,
|
|
4250
4239
|
{
|
|
4251
4240
|
size: 20,
|
|
4252
4241
|
style: {
|
|
@@ -4290,7 +4279,7 @@ const Ns = [
|
|
|
4290
4279
|
style: {
|
|
4291
4280
|
fontSize: "14px",
|
|
4292
4281
|
fontWeight: 500,
|
|
4293
|
-
color:
|
|
4282
|
+
color: o ? "#ffffff" : "#000000"
|
|
4294
4283
|
},
|
|
4295
4284
|
children: "New Password"
|
|
4296
4285
|
}
|
|
@@ -4333,7 +4322,7 @@ const Ns = [
|
|
|
4333
4322
|
disabled: I,
|
|
4334
4323
|
style: {
|
|
4335
4324
|
padding: "12px",
|
|
4336
|
-
background:
|
|
4325
|
+
background: a,
|
|
4337
4326
|
color: "#fff",
|
|
4338
4327
|
border: "none",
|
|
4339
4328
|
fontSize: "14px",
|
|
@@ -4418,7 +4407,7 @@ const Ns = [
|
|
|
4418
4407
|
const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
|
|
4419
4408
|
s(c ? "authenticated" : "unauthenticated");
|
|
4420
4409
|
}, []);
|
|
4421
|
-
const i = (
|
|
4410
|
+
const i = (a) => typeof a == "function" ? a() : a;
|
|
4422
4411
|
return n === "loading" ? null : n === "unauthenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
4423
4412
|
}, fi = ({
|
|
4424
4413
|
children: t,
|
|
@@ -4431,7 +4420,7 @@ const Ns = [
|
|
|
4431
4420
|
const c = window.document.cookie.split(";").map((d) => d.trim()).find((d) => d.startsWith("a_s_b="))?.split("=")[1] === "true";
|
|
4432
4421
|
s(c ? "authenticated" : "unauthenticated");
|
|
4433
4422
|
}, []);
|
|
4434
|
-
const i = (
|
|
4423
|
+
const i = (a) => typeof a == "function" ? a() : a;
|
|
4435
4424
|
return n === "loading" ? null : n === "authenticated" ? /* @__PURE__ */ r.jsx(r.Fragment, { children: i(e) }) : /* @__PURE__ */ r.jsx(r.Fragment, { children: t });
|
|
4436
4425
|
}, Ls = ({
|
|
4437
4426
|
isOpen: t,
|
|
@@ -4439,9 +4428,9 @@ const Ns = [
|
|
|
4439
4428
|
onSuccess: n,
|
|
4440
4429
|
onError: s,
|
|
4441
4430
|
userId: i,
|
|
4442
|
-
colors:
|
|
4431
|
+
colors: a
|
|
4443
4432
|
}) => {
|
|
4444
|
-
const
|
|
4433
|
+
const o = ge(), [c, d] = P(!1), [x, p] = P(""), [y, k] = P("warning"), [E, u] = P(!1);
|
|
4445
4434
|
if (ee(() => {
|
|
4446
4435
|
if (typeof window > "u") return;
|
|
4447
4436
|
const g = () => {
|
|
@@ -4452,7 +4441,7 @@ const Ns = [
|
|
|
4452
4441
|
const w = async () => {
|
|
4453
4442
|
d(!0), k("processing");
|
|
4454
4443
|
try {
|
|
4455
|
-
const g = await
|
|
4444
|
+
const g = await o.deleteUser({
|
|
4456
4445
|
userId: i
|
|
4457
4446
|
});
|
|
4458
4447
|
g.success ? (n(g.message || "Account deleted successfully"), k("success"), setTimeout(() => {
|
|
@@ -4511,7 +4500,7 @@ const Ns = [
|
|
|
4511
4500
|
"h3",
|
|
4512
4501
|
{
|
|
4513
4502
|
style: {
|
|
4514
|
-
color:
|
|
4503
|
+
color: a.textPrimary,
|
|
4515
4504
|
margin: 0,
|
|
4516
4505
|
fontSize: "20px",
|
|
4517
4506
|
fontWeight: 700,
|
|
@@ -4531,7 +4520,7 @@ const Ns = [
|
|
|
4531
4520
|
style: {
|
|
4532
4521
|
background: "transparent",
|
|
4533
4522
|
border: "none",
|
|
4534
|
-
color:
|
|
4523
|
+
color: a.textTertiary,
|
|
4535
4524
|
cursor: "pointer",
|
|
4536
4525
|
padding: "8px",
|
|
4537
4526
|
borderRadius: "8px",
|
|
@@ -4544,10 +4533,10 @@ const Ns = [
|
|
|
4544
4533
|
transition: "all 0.2s ease"
|
|
4545
4534
|
},
|
|
4546
4535
|
onMouseOver: (g) => {
|
|
4547
|
-
g.currentTarget.style.backgroundColor =
|
|
4536
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
|
|
4548
4537
|
},
|
|
4549
4538
|
onMouseOut: (g) => {
|
|
4550
|
-
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color =
|
|
4539
|
+
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
|
|
4551
4540
|
},
|
|
4552
4541
|
children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
|
|
4553
4542
|
}
|
|
@@ -4562,8 +4551,8 @@ const Ns = [
|
|
|
4562
4551
|
display: "flex",
|
|
4563
4552
|
gap: "16px",
|
|
4564
4553
|
padding: "20px",
|
|
4565
|
-
background: `${
|
|
4566
|
-
border: `1px solid ${
|
|
4554
|
+
background: `${a.error}15`,
|
|
4555
|
+
border: `1px solid ${a.error}30`,
|
|
4567
4556
|
borderRadius: "12px",
|
|
4568
4557
|
marginBottom: "20px"
|
|
4569
4558
|
},
|
|
@@ -4572,7 +4561,7 @@ const Ns = [
|
|
|
4572
4561
|
"div",
|
|
4573
4562
|
{
|
|
4574
4563
|
style: {
|
|
4575
|
-
color:
|
|
4564
|
+
color: a.error,
|
|
4576
4565
|
flexShrink: 0,
|
|
4577
4566
|
display: "flex",
|
|
4578
4567
|
alignItems: "flex-start"
|
|
@@ -4585,7 +4574,7 @@ const Ns = [
|
|
|
4585
4574
|
"h4",
|
|
4586
4575
|
{
|
|
4587
4576
|
style: {
|
|
4588
|
-
color:
|
|
4577
|
+
color: a.textPrimary,
|
|
4589
4578
|
margin: "0 0 12px 0",
|
|
4590
4579
|
fontSize: "16px",
|
|
4591
4580
|
fontWeight: 600
|
|
@@ -4622,10 +4611,10 @@ const Ns = [
|
|
|
4622
4611
|
alignItems: "center",
|
|
4623
4612
|
gap: "10px",
|
|
4624
4613
|
fontSize: "14px",
|
|
4625
|
-
color:
|
|
4614
|
+
color: a.textSecondary
|
|
4626
4615
|
},
|
|
4627
4616
|
children: [
|
|
4628
|
-
/* @__PURE__ */ r.jsx("div", { style: { color:
|
|
4617
|
+
/* @__PURE__ */ r.jsx("div", { style: { color: a.error, flexShrink: 0 }, children: g.icon }),
|
|
4629
4618
|
/* @__PURE__ */ r.jsx("span", { children: g.text })
|
|
4630
4619
|
]
|
|
4631
4620
|
},
|
|
@@ -4655,9 +4644,9 @@ const Ns = [
|
|
|
4655
4644
|
style: {
|
|
4656
4645
|
padding: "10px 24px",
|
|
4657
4646
|
borderRadius: "10px",
|
|
4658
|
-
border: `1.5px solid ${
|
|
4647
|
+
border: `1.5px solid ${a.border}`,
|
|
4659
4648
|
background: "transparent",
|
|
4660
|
-
color:
|
|
4649
|
+
color: a.textPrimary,
|
|
4661
4650
|
fontSize: "14px",
|
|
4662
4651
|
fontWeight: 500,
|
|
4663
4652
|
cursor: "pointer",
|
|
@@ -4666,7 +4655,7 @@ const Ns = [
|
|
|
4666
4655
|
transition: "all 0.2s ease"
|
|
4667
4656
|
},
|
|
4668
4657
|
onMouseOver: (g) => {
|
|
4669
|
-
g.currentTarget.style.backgroundColor =
|
|
4658
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
|
|
4670
4659
|
},
|
|
4671
4660
|
onMouseOut: (g) => {
|
|
4672
4661
|
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4745,7 +4734,7 @@ const Ns = [
|
|
|
4745
4734
|
"h3",
|
|
4746
4735
|
{
|
|
4747
4736
|
style: {
|
|
4748
|
-
color:
|
|
4737
|
+
color: a.textPrimary,
|
|
4749
4738
|
margin: 0,
|
|
4750
4739
|
fontSize: "20px",
|
|
4751
4740
|
fontWeight: 700,
|
|
@@ -4762,7 +4751,7 @@ const Ns = [
|
|
|
4762
4751
|
"p",
|
|
4763
4752
|
{
|
|
4764
4753
|
style: {
|
|
4765
|
-
color:
|
|
4754
|
+
color: a.textSecondary,
|
|
4766
4755
|
marginBottom: "16px",
|
|
4767
4756
|
fontSize: "14px",
|
|
4768
4757
|
lineHeight: "1.5"
|
|
@@ -4770,7 +4759,7 @@ const Ns = [
|
|
|
4770
4759
|
children: [
|
|
4771
4760
|
"Type",
|
|
4772
4761
|
" ",
|
|
4773
|
-
/* @__PURE__ */ r.jsx("strong", { style: { color:
|
|
4762
|
+
/* @__PURE__ */ r.jsx("strong", { style: { color: a.textPrimary }, children: '"delete my account"' }),
|
|
4774
4763
|
" ",
|
|
4775
4764
|
"to confirm:"
|
|
4776
4765
|
]
|
|
@@ -4787,16 +4776,16 @@ const Ns = [
|
|
|
4787
4776
|
width: "100%",
|
|
4788
4777
|
padding: "14px 16px",
|
|
4789
4778
|
borderRadius: "10px",
|
|
4790
|
-
border: `2px solid ${h ?
|
|
4779
|
+
border: `2px solid ${h ? a.success : a.error}`,
|
|
4791
4780
|
backgroundColor: "transparent",
|
|
4792
|
-
color:
|
|
4781
|
+
color: a.textPrimary,
|
|
4793
4782
|
fontSize: "15px",
|
|
4794
4783
|
outline: "none",
|
|
4795
4784
|
transition: "all 0.2s ease",
|
|
4796
4785
|
boxSizing: "border-box"
|
|
4797
4786
|
},
|
|
4798
4787
|
onFocus: (g) => {
|
|
4799
|
-
g.target.style.boxShadow = `0 0 0 3px ${
|
|
4788
|
+
g.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
4800
4789
|
},
|
|
4801
4790
|
onBlur: (g) => {
|
|
4802
4791
|
g.target.style.boxShadow = "none";
|
|
@@ -4812,7 +4801,7 @@ const Ns = [
|
|
|
4812
4801
|
alignItems: "center",
|
|
4813
4802
|
gap: "8px",
|
|
4814
4803
|
marginTop: "10px",
|
|
4815
|
-
color:
|
|
4804
|
+
color: a.success,
|
|
4816
4805
|
fontSize: "14px",
|
|
4817
4806
|
fontWeight: 500
|
|
4818
4807
|
},
|
|
@@ -4843,9 +4832,9 @@ const Ns = [
|
|
|
4843
4832
|
style: {
|
|
4844
4833
|
padding: "10px 24px",
|
|
4845
4834
|
borderRadius: "10px",
|
|
4846
|
-
border: `1.5px solid ${
|
|
4835
|
+
border: `1.5px solid ${a.border}`,
|
|
4847
4836
|
background: "transparent",
|
|
4848
|
-
color:
|
|
4837
|
+
color: a.textPrimary,
|
|
4849
4838
|
fontSize: "14px",
|
|
4850
4839
|
fontWeight: 500,
|
|
4851
4840
|
cursor: "pointer",
|
|
@@ -4854,7 +4843,7 @@ const Ns = [
|
|
|
4854
4843
|
transition: "all 0.2s ease"
|
|
4855
4844
|
},
|
|
4856
4845
|
onMouseOver: (g) => {
|
|
4857
|
-
g.currentTarget.style.backgroundColor =
|
|
4846
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)";
|
|
4858
4847
|
},
|
|
4859
4848
|
onMouseOut: (g) => {
|
|
4860
4849
|
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4944,7 +4933,7 @@ const Ns = [
|
|
|
4944
4933
|
"h3",
|
|
4945
4934
|
{
|
|
4946
4935
|
style: {
|
|
4947
|
-
color:
|
|
4936
|
+
color: a.textPrimary,
|
|
4948
4937
|
margin: 0,
|
|
4949
4938
|
fontSize: "20px",
|
|
4950
4939
|
fontWeight: 700,
|
|
@@ -4957,7 +4946,7 @@ const Ns = [
|
|
|
4957
4946
|
"p",
|
|
4958
4947
|
{
|
|
4959
4948
|
style: {
|
|
4960
|
-
color:
|
|
4949
|
+
color: a.textTertiary,
|
|
4961
4950
|
margin: "4px 0 0 0",
|
|
4962
4951
|
fontSize: "14px",
|
|
4963
4952
|
lineHeight: "1.4"
|
|
@@ -4991,7 +4980,7 @@ const Ns = [
|
|
|
4991
4980
|
padding: "12px",
|
|
4992
4981
|
borderRadius: "8px",
|
|
4993
4982
|
transition: "all 0.2s ease",
|
|
4994
|
-
backgroundColor: g.active ? `${
|
|
4983
|
+
backgroundColor: g.active ? `${a.accent}10` : "transparent"
|
|
4995
4984
|
},
|
|
4996
4985
|
children: [
|
|
4997
4986
|
/* @__PURE__ */ r.jsx(
|
|
@@ -5001,9 +4990,9 @@ const Ns = [
|
|
|
5001
4990
|
width: "8px",
|
|
5002
4991
|
height: "8px",
|
|
5003
4992
|
borderRadius: "50%",
|
|
5004
|
-
backgroundColor: g.active ?
|
|
4993
|
+
backgroundColor: g.active ? a.accent : a.textTertiary,
|
|
5005
4994
|
transition: "all 0.3s ease",
|
|
5006
|
-
boxShadow: g.active ? `0 0 0 4px ${
|
|
4995
|
+
boxShadow: g.active ? `0 0 0 4px ${a.accent}20` : "none"
|
|
5007
4996
|
}
|
|
5008
4997
|
}
|
|
5009
4998
|
),
|
|
@@ -5012,7 +5001,7 @@ const Ns = [
|
|
|
5012
5001
|
{
|
|
5013
5002
|
style: {
|
|
5014
5003
|
fontSize: "14px",
|
|
5015
|
-
color: g.active ?
|
|
5004
|
+
color: g.active ? a.textPrimary : a.textSecondary,
|
|
5016
5005
|
fontWeight: g.active ? 500 : 400
|
|
5017
5006
|
},
|
|
5018
5007
|
children: g.text
|
|
@@ -5032,17 +5021,17 @@ const Ns = [
|
|
|
5032
5021
|
alignItems: "center",
|
|
5033
5022
|
gap: "10px",
|
|
5034
5023
|
padding: "16px",
|
|
5035
|
-
background: `${
|
|
5024
|
+
background: `${a.accent}10`,
|
|
5036
5025
|
borderRadius: "10px",
|
|
5037
5026
|
fontSize: "14px",
|
|
5038
|
-
color:
|
|
5027
|
+
color: a.textSecondary
|
|
5039
5028
|
},
|
|
5040
5029
|
children: [
|
|
5041
5030
|
/* @__PURE__ */ r.jsx(
|
|
5042
5031
|
rt,
|
|
5043
5032
|
{
|
|
5044
5033
|
size: 18,
|
|
5045
|
-
style: { color:
|
|
5034
|
+
style: { color: a.accent, flexShrink: 0 }
|
|
5046
5035
|
}
|
|
5047
5036
|
),
|
|
5048
5037
|
/* @__PURE__ */ r.jsx("span", { children: "You will be redirected to the login page shortly" })
|
|
@@ -5084,7 +5073,7 @@ const Ns = [
|
|
|
5084
5073
|
"h3",
|
|
5085
5074
|
{
|
|
5086
5075
|
style: {
|
|
5087
|
-
color:
|
|
5076
|
+
color: a.textPrimary,
|
|
5088
5077
|
margin: 0,
|
|
5089
5078
|
fontSize: "20px",
|
|
5090
5079
|
fontWeight: 700,
|
|
@@ -5097,7 +5086,7 @@ const Ns = [
|
|
|
5097
5086
|
"p",
|
|
5098
5087
|
{
|
|
5099
5088
|
style: {
|
|
5100
|
-
color:
|
|
5089
|
+
color: a.textTertiary,
|
|
5101
5090
|
margin: "4px 0 0 0",
|
|
5102
5091
|
fontSize: "14px",
|
|
5103
5092
|
lineHeight: "1.4"
|
|
@@ -5115,8 +5104,8 @@ const Ns = [
|
|
|
5115
5104
|
style: {
|
|
5116
5105
|
textAlign: "center",
|
|
5117
5106
|
padding: "20px",
|
|
5118
|
-
background: `${
|
|
5119
|
-
border: `1px solid ${
|
|
5107
|
+
background: `${a.success}10`,
|
|
5108
|
+
border: `1px solid ${a.success}20`,
|
|
5120
5109
|
borderRadius: "12px",
|
|
5121
5110
|
marginBottom: "24px"
|
|
5122
5111
|
},
|
|
@@ -5126,7 +5115,7 @@ const Ns = [
|
|
|
5126
5115
|
{
|
|
5127
5116
|
size: 48,
|
|
5128
5117
|
style: {
|
|
5129
|
-
color:
|
|
5118
|
+
color: a.success,
|
|
5130
5119
|
marginBottom: "12px",
|
|
5131
5120
|
display: "block",
|
|
5132
5121
|
margin: "0 auto 12px auto"
|
|
@@ -5137,7 +5126,7 @@ const Ns = [
|
|
|
5137
5126
|
"p",
|
|
5138
5127
|
{
|
|
5139
5128
|
style: {
|
|
5140
|
-
color:
|
|
5129
|
+
color: a.textPrimary,
|
|
5141
5130
|
fontSize: "16px",
|
|
5142
5131
|
fontWeight: 600,
|
|
5143
5132
|
margin: "0 0 8px 0"
|
|
@@ -5149,7 +5138,7 @@ const Ns = [
|
|
|
5149
5138
|
"p",
|
|
5150
5139
|
{
|
|
5151
5140
|
style: {
|
|
5152
|
-
color:
|
|
5141
|
+
color: a.textSecondary,
|
|
5153
5142
|
fontSize: "14px",
|
|
5154
5143
|
margin: 0,
|
|
5155
5144
|
lineHeight: "1.5"
|
|
@@ -5168,10 +5157,10 @@ const Ns = [
|
|
|
5168
5157
|
alignItems: "center",
|
|
5169
5158
|
gap: "10px",
|
|
5170
5159
|
padding: "16px",
|
|
5171
|
-
background: `${
|
|
5160
|
+
background: `${a.accent}10`,
|
|
5172
5161
|
borderRadius: "10px",
|
|
5173
5162
|
fontSize: "14px",
|
|
5174
|
-
color:
|
|
5163
|
+
color: a.textSecondary,
|
|
5175
5164
|
justifyContent: "center"
|
|
5176
5165
|
},
|
|
5177
5166
|
children: [
|
|
@@ -5181,7 +5170,7 @@ const Ns = [
|
|
|
5181
5170
|
size: 16,
|
|
5182
5171
|
style: {
|
|
5183
5172
|
animation: "spin 1s linear infinite",
|
|
5184
|
-
color:
|
|
5173
|
+
color: a.accent
|
|
5185
5174
|
}
|
|
5186
5175
|
}
|
|
5187
5176
|
),
|
|
@@ -5213,8 +5202,8 @@ const Ns = [
|
|
|
5213
5202
|
"div",
|
|
5214
5203
|
{
|
|
5215
5204
|
style: {
|
|
5216
|
-
backgroundColor:
|
|
5217
|
-
border: `1px solid ${
|
|
5205
|
+
backgroundColor: a.surface,
|
|
5206
|
+
border: `1px solid ${a.border}`,
|
|
5218
5207
|
borderRadius: "20px",
|
|
5219
5208
|
width: "100%",
|
|
5220
5209
|
maxWidth: "480px",
|
|
@@ -5290,7 +5279,7 @@ const Ns = [
|
|
|
5290
5279
|
onUpdate: n,
|
|
5291
5280
|
colors: s
|
|
5292
5281
|
}) => {
|
|
5293
|
-
const [i,
|
|
5282
|
+
const [i, a] = P(""), [o, c] = P(!1), [d, x] = P(!1), [p, y] = P({ isValid: !1, message: "", type: null });
|
|
5294
5283
|
if (ee(() => {
|
|
5295
5284
|
if (typeof window > "u") return;
|
|
5296
5285
|
const u = () => {
|
|
@@ -5325,7 +5314,7 @@ const Ns = [
|
|
|
5325
5314
|
if (!(!i || !p.isValid)) {
|
|
5326
5315
|
c(!0);
|
|
5327
5316
|
try {
|
|
5328
|
-
await n(i) && (
|
|
5317
|
+
await n(i) && (a(""), e());
|
|
5329
5318
|
} finally {
|
|
5330
5319
|
c(!1);
|
|
5331
5320
|
}
|
|
@@ -5487,7 +5476,7 @@ const Ns = [
|
|
|
5487
5476
|
id: "avatar-url",
|
|
5488
5477
|
placeholder: "https://example.com/your-avatar.jpg",
|
|
5489
5478
|
value: i,
|
|
5490
|
-
onChange: (u) =>
|
|
5479
|
+
onChange: (u) => a(u.target.value),
|
|
5491
5480
|
style: {
|
|
5492
5481
|
width: "100%",
|
|
5493
5482
|
padding: "14px 16px",
|
|
@@ -5507,7 +5496,7 @@ const Ns = [
|
|
|
5507
5496
|
onBlur: (u) => {
|
|
5508
5497
|
u.target.style.borderColor = p.type === "error" ? s.error : p.type === "success" ? s.success : s.border, u.target.style.boxShadow = "none";
|
|
5509
5498
|
},
|
|
5510
|
-
disabled:
|
|
5499
|
+
disabled: o
|
|
5511
5500
|
}
|
|
5512
5501
|
),
|
|
5513
5502
|
/* @__PURE__ */ r.jsx(
|
|
@@ -5607,7 +5596,7 @@ const Ns = [
|
|
|
5607
5596
|
"button",
|
|
5608
5597
|
{
|
|
5609
5598
|
onClick: e,
|
|
5610
|
-
disabled:
|
|
5599
|
+
disabled: o,
|
|
5611
5600
|
style: {
|
|
5612
5601
|
padding: "10px 24px",
|
|
5613
5602
|
borderRadius: "10px",
|
|
@@ -5616,17 +5605,17 @@ const Ns = [
|
|
|
5616
5605
|
color: s.textPrimary,
|
|
5617
5606
|
fontSize: "14px",
|
|
5618
5607
|
fontWeight: 500,
|
|
5619
|
-
cursor:
|
|
5608
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
5620
5609
|
flex: d ? "none" : 1,
|
|
5621
5610
|
minWidth: d ? "100%" : "120px",
|
|
5622
|
-
opacity:
|
|
5611
|
+
opacity: o ? 0.6 : 1,
|
|
5623
5612
|
transition: "all 0.2s ease"
|
|
5624
5613
|
},
|
|
5625
5614
|
onMouseOver: (u) => {
|
|
5626
|
-
|
|
5615
|
+
o || (u.currentTarget.style.backgroundColor = s.border, u.currentTarget.style.transform = "translateY(-1px)");
|
|
5627
5616
|
},
|
|
5628
5617
|
onMouseOut: (u) => {
|
|
5629
|
-
|
|
5618
|
+
o || (u.currentTarget.style.backgroundColor = "transparent", u.currentTarget.style.transform = "translateY(0)");
|
|
5630
5619
|
},
|
|
5631
5620
|
children: "Cancel"
|
|
5632
5621
|
}
|
|
@@ -5635,7 +5624,7 @@ const Ns = [
|
|
|
5635
5624
|
"button",
|
|
5636
5625
|
{
|
|
5637
5626
|
onClick: k,
|
|
5638
|
-
disabled:
|
|
5627
|
+
disabled: o || !p.isValid,
|
|
5639
5628
|
style: {
|
|
5640
5629
|
padding: "10px 24px",
|
|
5641
5630
|
borderRadius: "10px",
|
|
@@ -5644,24 +5633,24 @@ const Ns = [
|
|
|
5644
5633
|
color: "#fff",
|
|
5645
5634
|
fontSize: "14px",
|
|
5646
5635
|
fontWeight: 600,
|
|
5647
|
-
cursor:
|
|
5636
|
+
cursor: o || !p.isValid ? "not-allowed" : "pointer",
|
|
5648
5637
|
flex: d ? "none" : 1,
|
|
5649
5638
|
minWidth: d ? "100%" : "140px",
|
|
5650
|
-
opacity:
|
|
5639
|
+
opacity: o || !p.isValid ? 0.6 : 1,
|
|
5651
5640
|
display: "flex",
|
|
5652
5641
|
alignItems: "center",
|
|
5653
5642
|
justifyContent: "center",
|
|
5654
5643
|
gap: "8px",
|
|
5655
5644
|
transition: "all 0.2s ease",
|
|
5656
|
-
boxShadow:
|
|
5645
|
+
boxShadow: o || !p.isValid ? "none" : `0 4px 12px ${s.accent}40`
|
|
5657
5646
|
},
|
|
5658
5647
|
onMouseOver: (u) => {
|
|
5659
|
-
!
|
|
5648
|
+
!o && p.isValid && (u.currentTarget.style.transform = "translateY(-1px)", u.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
|
|
5660
5649
|
},
|
|
5661
5650
|
onMouseOut: (u) => {
|
|
5662
|
-
!
|
|
5651
|
+
!o && p.isValid && (u.currentTarget.style.transform = "translateY(0)", u.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
|
|
5663
5652
|
},
|
|
5664
|
-
children:
|
|
5653
|
+
children: o ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
5665
5654
|
/* @__PURE__ */ r.jsx(
|
|
5666
5655
|
se,
|
|
5667
5656
|
{
|
|
@@ -5742,9 +5731,9 @@ const Ns = [
|
|
|
5742
5731
|
onSuccess: n,
|
|
5743
5732
|
onError: s,
|
|
5744
5733
|
userId: i,
|
|
5745
|
-
colors:
|
|
5734
|
+
colors: a
|
|
5746
5735
|
}) => {
|
|
5747
|
-
const
|
|
5736
|
+
const o = ge(), [c, d] = P({
|
|
5748
5737
|
currentPassword: "",
|
|
5749
5738
|
newPassword: "",
|
|
5750
5739
|
confirmPassword: ""
|
|
@@ -5772,7 +5761,7 @@ const Ns = [
|
|
|
5772
5761
|
if (b.preventDefault(), !!g()) {
|
|
5773
5762
|
k(!0);
|
|
5774
5763
|
try {
|
|
5775
|
-
const { data: j } = await
|
|
5764
|
+
const { data: j } = await o.changePassword({
|
|
5776
5765
|
currentPassword: c.currentPassword,
|
|
5777
5766
|
newPassword: c.newPassword,
|
|
5778
5767
|
userId: i
|
|
@@ -5823,8 +5812,8 @@ const Ns = [
|
|
|
5823
5812
|
"div",
|
|
5824
5813
|
{
|
|
5825
5814
|
style: {
|
|
5826
|
-
backgroundColor:
|
|
5827
|
-
border: `1px solid ${
|
|
5815
|
+
backgroundColor: a.surface,
|
|
5816
|
+
border: `1px solid ${a.border}`,
|
|
5828
5817
|
borderRadius: "16px",
|
|
5829
5818
|
maxWidth: "440px",
|
|
5830
5819
|
width: "100%",
|
|
@@ -5863,11 +5852,11 @@ const Ns = [
|
|
|
5863
5852
|
width: "40px",
|
|
5864
5853
|
height: "40px",
|
|
5865
5854
|
borderRadius: "10px",
|
|
5866
|
-
background: `linear-gradient(135deg, ${
|
|
5855
|
+
background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
|
|
5867
5856
|
display: "flex",
|
|
5868
5857
|
alignItems: "center",
|
|
5869
5858
|
justifyContent: "center",
|
|
5870
|
-
color:
|
|
5859
|
+
color: a.accent,
|
|
5871
5860
|
flexShrink: 0
|
|
5872
5861
|
},
|
|
5873
5862
|
children: /* @__PURE__ */ r.jsx(be, { size: 20 })
|
|
@@ -5877,7 +5866,7 @@ const Ns = [
|
|
|
5877
5866
|
"h3",
|
|
5878
5867
|
{
|
|
5879
5868
|
style: {
|
|
5880
|
-
color:
|
|
5869
|
+
color: a.textPrimary,
|
|
5881
5870
|
margin: 0,
|
|
5882
5871
|
fontSize: "18px",
|
|
5883
5872
|
fontWeight: 600,
|
|
@@ -5897,7 +5886,7 @@ const Ns = [
|
|
|
5897
5886
|
style: {
|
|
5898
5887
|
background: "transparent",
|
|
5899
5888
|
border: "none",
|
|
5900
|
-
color:
|
|
5889
|
+
color: a.textTertiary,
|
|
5901
5890
|
cursor: "pointer",
|
|
5902
5891
|
padding: "8px",
|
|
5903
5892
|
borderRadius: "8px",
|
|
@@ -5909,10 +5898,10 @@ const Ns = [
|
|
|
5909
5898
|
justifyContent: "center"
|
|
5910
5899
|
},
|
|
5911
5900
|
onMouseOver: (b) => {
|
|
5912
|
-
b.currentTarget.style.backgroundColor =
|
|
5901
|
+
b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.color = a.textPrimary;
|
|
5913
5902
|
},
|
|
5914
5903
|
onMouseOut: (b) => {
|
|
5915
|
-
b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color =
|
|
5904
|
+
b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.color = a.textTertiary;
|
|
5916
5905
|
},
|
|
5917
5906
|
children: /* @__PURE__ */ r.jsx(Oe, { size: 20 })
|
|
5918
5907
|
}
|
|
@@ -5936,7 +5925,7 @@ const Ns = [
|
|
|
5936
5925
|
style: {
|
|
5937
5926
|
display: "block",
|
|
5938
5927
|
marginBottom: "8px",
|
|
5939
|
-
color:
|
|
5928
|
+
color: a.textPrimary,
|
|
5940
5929
|
fontSize: "14px",
|
|
5941
5930
|
fontWeight: 500,
|
|
5942
5931
|
lineHeight: "1.4"
|
|
@@ -5953,7 +5942,7 @@ const Ns = [
|
|
|
5953
5942
|
left: "14px",
|
|
5954
5943
|
top: "50%",
|
|
5955
5944
|
transform: "translateY(-50%)",
|
|
5956
|
-
color:
|
|
5945
|
+
color: a.textTertiary,
|
|
5957
5946
|
zIndex: 2
|
|
5958
5947
|
},
|
|
5959
5948
|
children: q
|
|
@@ -5972,19 +5961,19 @@ const Ns = [
|
|
|
5972
5961
|
width: "100%",
|
|
5973
5962
|
padding: "14px 48px 14px 44px",
|
|
5974
5963
|
borderRadius: "10px",
|
|
5975
|
-
border: `1.5px solid ${x[b] ?
|
|
5964
|
+
border: `1.5px solid ${x[b] ? a.error : a.border}`,
|
|
5976
5965
|
backgroundColor: "transparent",
|
|
5977
|
-
color:
|
|
5966
|
+
color: a.textPrimary,
|
|
5978
5967
|
fontSize: "15px",
|
|
5979
5968
|
outline: "none",
|
|
5980
5969
|
transition: "all 0.2s ease",
|
|
5981
5970
|
boxSizing: "border-box"
|
|
5982
5971
|
},
|
|
5983
5972
|
onFocus: (O) => {
|
|
5984
|
-
O.target.style.borderColor =
|
|
5973
|
+
O.target.style.borderColor = a.accent, O.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
5985
5974
|
},
|
|
5986
5975
|
onBlur: (O) => {
|
|
5987
|
-
O.target.style.borderColor = x[b] ?
|
|
5976
|
+
O.target.style.borderColor = x[b] ? a.error : a.border, O.target.style.boxShadow = "none";
|
|
5988
5977
|
}
|
|
5989
5978
|
}
|
|
5990
5979
|
),
|
|
@@ -6001,7 +5990,7 @@ const Ns = [
|
|
|
6001
5990
|
background: "transparent",
|
|
6002
5991
|
border: "none",
|
|
6003
5992
|
cursor: "pointer",
|
|
6004
|
-
color:
|
|
5993
|
+
color: a.textTertiary,
|
|
6005
5994
|
padding: "4px",
|
|
6006
5995
|
borderRadius: "4px",
|
|
6007
5996
|
width: "32px",
|
|
@@ -6011,12 +6000,12 @@ const Ns = [
|
|
|
6011
6000
|
justifyContent: "center"
|
|
6012
6001
|
},
|
|
6013
6002
|
onMouseOver: (O) => {
|
|
6014
|
-
O.currentTarget.style.backgroundColor =
|
|
6003
|
+
O.currentTarget.style.backgroundColor = a.border, O.currentTarget.style.color = a.textPrimary;
|
|
6015
6004
|
},
|
|
6016
6005
|
onMouseOut: (O) => {
|
|
6017
|
-
O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color =
|
|
6006
|
+
O.currentTarget.style.backgroundColor = "transparent", O.currentTarget.style.color = a.textTertiary;
|
|
6018
6007
|
},
|
|
6019
|
-
children: E[b] ? /* @__PURE__ */ r.jsx(
|
|
6008
|
+
children: E[b] ? /* @__PURE__ */ r.jsx(at, { size: 18 }) : /* @__PURE__ */ r.jsx(ot, { size: 18 })
|
|
6020
6009
|
}
|
|
6021
6010
|
)
|
|
6022
6011
|
] }),
|
|
@@ -6025,7 +6014,7 @@ const Ns = [
|
|
|
6025
6014
|
{
|
|
6026
6015
|
style: {
|
|
6027
6016
|
fontSize: "13px",
|
|
6028
|
-
color:
|
|
6017
|
+
color: a.error,
|
|
6029
6018
|
marginTop: "6px",
|
|
6030
6019
|
display: "flex",
|
|
6031
6020
|
alignItems: "center",
|
|
@@ -6061,9 +6050,9 @@ const Ns = [
|
|
|
6061
6050
|
style: {
|
|
6062
6051
|
padding: "14px 24px",
|
|
6063
6052
|
borderRadius: "10px",
|
|
6064
|
-
border: `1.5px solid ${
|
|
6053
|
+
border: `1.5px solid ${a.border}`,
|
|
6065
6054
|
background: "transparent",
|
|
6066
|
-
color:
|
|
6055
|
+
color: a.textPrimary,
|
|
6067
6056
|
fontSize: "14px",
|
|
6068
6057
|
fontWeight: 500,
|
|
6069
6058
|
cursor: y ? "not-allowed" : "pointer",
|
|
@@ -6073,7 +6062,7 @@ const Ns = [
|
|
|
6073
6062
|
transition: "all 0.2s ease"
|
|
6074
6063
|
},
|
|
6075
6064
|
onMouseOver: (b) => {
|
|
6076
|
-
y || (b.currentTarget.style.backgroundColor =
|
|
6065
|
+
y || (b.currentTarget.style.backgroundColor = a.border, b.currentTarget.style.transform = "translateY(-1px)");
|
|
6077
6066
|
},
|
|
6078
6067
|
onMouseOut: (b) => {
|
|
6079
6068
|
y || (b.currentTarget.style.backgroundColor = "transparent", b.currentTarget.style.transform = "translateY(0)");
|
|
@@ -6090,7 +6079,7 @@ const Ns = [
|
|
|
6090
6079
|
padding: "14px 24px",
|
|
6091
6080
|
borderRadius: "10px",
|
|
6092
6081
|
border: "none",
|
|
6093
|
-
background: `linear-gradient(135deg, ${
|
|
6082
|
+
background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
|
|
6094
6083
|
color: "#fff",
|
|
6095
6084
|
fontSize: "14px",
|
|
6096
6085
|
fontWeight: 600,
|
|
@@ -6103,13 +6092,13 @@ const Ns = [
|
|
|
6103
6092
|
justifyContent: "center",
|
|
6104
6093
|
gap: "8px",
|
|
6105
6094
|
transition: "all 0.2s ease",
|
|
6106
|
-
boxShadow: y ? "none" : `0 4px 12px ${
|
|
6095
|
+
boxShadow: y ? "none" : `0 4px 12px ${a.accent}40`
|
|
6107
6096
|
},
|
|
6108
6097
|
onMouseOver: (b) => {
|
|
6109
|
-
y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${
|
|
6098
|
+
y || (b.currentTarget.style.transform = "translateY(-1px)", b.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
|
|
6110
6099
|
},
|
|
6111
6100
|
onMouseOut: (b) => {
|
|
6112
|
-
y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${
|
|
6101
|
+
y || (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
|
|
6113
6102
|
},
|
|
6114
6103
|
children: y ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
6115
6104
|
/* @__PURE__ */ r.jsx(
|
|
@@ -6144,12 +6133,12 @@ const Ns = [
|
|
|
6144
6133
|
}
|
|
6145
6134
|
|
|
6146
6135
|
.change-password-modal::-webkit-scrollbar-thumb {
|
|
6147
|
-
background: ${
|
|
6136
|
+
background: ${a.border};
|
|
6148
6137
|
border-radius: 3px;
|
|
6149
6138
|
}
|
|
6150
6139
|
|
|
6151
6140
|
.change-password-modal::-webkit-scrollbar-thumb:hover {
|
|
6152
|
-
background: ${
|
|
6141
|
+
background: ${a.textTertiary};
|
|
6153
6142
|
}
|
|
6154
6143
|
|
|
6155
6144
|
/* Mobile responsiveness */
|
|
@@ -6179,8 +6168,8 @@ const Ns = [
|
|
|
6179
6168
|
onVerify: n,
|
|
6180
6169
|
onSendOTP: s,
|
|
6181
6170
|
verifyFormData: i,
|
|
6182
|
-
setVerifyFormData:
|
|
6183
|
-
otpSent:
|
|
6171
|
+
setVerifyFormData: a,
|
|
6172
|
+
otpSent: o,
|
|
6184
6173
|
verifying: c,
|
|
6185
6174
|
user: d,
|
|
6186
6175
|
colors: x,
|
|
@@ -6188,7 +6177,7 @@ const Ns = [
|
|
|
6188
6177
|
}) => {
|
|
6189
6178
|
if (!t) return null;
|
|
6190
6179
|
const y = () => {
|
|
6191
|
-
e(),
|
|
6180
|
+
e(), a({ email: d?.email || "", otp: "" });
|
|
6192
6181
|
};
|
|
6193
6182
|
return /* @__PURE__ */ r.jsxs(
|
|
6194
6183
|
"div",
|
|
@@ -6237,7 +6226,7 @@ const Ns = [
|
|
|
6237
6226
|
{
|
|
6238
6227
|
type: "email",
|
|
6239
6228
|
value: i.email,
|
|
6240
|
-
onChange: (k) =>
|
|
6229
|
+
onChange: (k) => a((E) => ({
|
|
6241
6230
|
...E,
|
|
6242
6231
|
email: k.target.value
|
|
6243
6232
|
})),
|
|
@@ -6254,11 +6243,11 @@ const Ns = [
|
|
|
6254
6243
|
)
|
|
6255
6244
|
] })
|
|
6256
6245
|
] }),
|
|
6257
|
-
|
|
6246
|
+
o && /* @__PURE__ */ r.jsxs("div", { className: "form-group", children: [
|
|
6258
6247
|
/* @__PURE__ */ r.jsx("label", { style: { color: x.textSecondary }, children: "OTP" }),
|
|
6259
6248
|
/* @__PURE__ */ r.jsxs("div", { className: "input-container", children: [
|
|
6260
6249
|
/* @__PURE__ */ r.jsx(
|
|
6261
|
-
|
|
6250
|
+
ar,
|
|
6262
6251
|
{
|
|
6263
6252
|
size: 18,
|
|
6264
6253
|
style: { color: x.textTertiary },
|
|
@@ -6270,7 +6259,7 @@ const Ns = [
|
|
|
6270
6259
|
{
|
|
6271
6260
|
type: "text",
|
|
6272
6261
|
value: i.otp,
|
|
6273
|
-
onChange: (k) =>
|
|
6262
|
+
onChange: (k) => a((E) => ({
|
|
6274
6263
|
...E,
|
|
6275
6264
|
otp: k.target.value
|
|
6276
6265
|
})),
|
|
@@ -6287,7 +6276,7 @@ const Ns = [
|
|
|
6287
6276
|
)
|
|
6288
6277
|
] })
|
|
6289
6278
|
] }),
|
|
6290
|
-
/* @__PURE__ */ r.jsx("div", { className: "modal-actions", children:
|
|
6279
|
+
/* @__PURE__ */ r.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ r.jsxs(
|
|
6291
6280
|
"button",
|
|
6292
6281
|
{
|
|
6293
6282
|
type: "submit",
|
|
@@ -6483,7 +6472,7 @@ const Ns = [
|
|
|
6483
6472
|
onVerify: s,
|
|
6484
6473
|
primaryColor: i = "#00C212"
|
|
6485
6474
|
}) => {
|
|
6486
|
-
const
|
|
6475
|
+
const a = ge(), [o, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, A] = P(!1), [M, J] = P({
|
|
6487
6476
|
email: "",
|
|
6488
6477
|
otp: ""
|
|
6489
6478
|
}), [H, L] = P(!1), [Y, l] = P(!1);
|
|
@@ -6522,7 +6511,7 @@ const Ns = [
|
|
|
6522
6511
|
}
|
|
6523
6512
|
try {
|
|
6524
6513
|
l(!0);
|
|
6525
|
-
const v = await
|
|
6514
|
+
const v = await a.requestEmailVerificationOTP({
|
|
6526
6515
|
userId: d.id,
|
|
6527
6516
|
email: M.email
|
|
6528
6517
|
}), _ = v?.data?.success ?? v?.success, V = v?.data?.message ?? v?.message;
|
|
@@ -6544,7 +6533,7 @@ const Ns = [
|
|
|
6544
6533
|
}
|
|
6545
6534
|
try {
|
|
6546
6535
|
l(!0);
|
|
6547
|
-
const _ = await
|
|
6536
|
+
const _ = await a.verifyEmail({
|
|
6548
6537
|
email: M.email,
|
|
6549
6538
|
otp: M.otp
|
|
6550
6539
|
}), V = _?.data?.success ?? _?.success, Z = _?.data?.message ?? _?.message;
|
|
@@ -6560,10 +6549,10 @@ const Ns = [
|
|
|
6560
6549
|
} finally {
|
|
6561
6550
|
l(!1);
|
|
6562
6551
|
}
|
|
6563
|
-
},
|
|
6552
|
+
}, oe = async (v) => {
|
|
6564
6553
|
if (!d) return !1;
|
|
6565
6554
|
try {
|
|
6566
|
-
const _ = await
|
|
6555
|
+
const _ = await a.updateUser({
|
|
6567
6556
|
userId: d.id,
|
|
6568
6557
|
avatarUrl: v
|
|
6569
6558
|
});
|
|
@@ -6585,7 +6574,7 @@ const Ns = [
|
|
|
6585
6574
|
if (d) {
|
|
6586
6575
|
w(!0);
|
|
6587
6576
|
try {
|
|
6588
|
-
const v = d.email, _ = await
|
|
6577
|
+
const v = d.email, _ = await a.updateUser({
|
|
6589
6578
|
userId: d.id,
|
|
6590
6579
|
...d
|
|
6591
6580
|
});
|
|
@@ -6611,7 +6600,7 @@ const Ns = [
|
|
|
6611
6600
|
}
|
|
6612
6601
|
}, le = async (v) => {
|
|
6613
6602
|
try {
|
|
6614
|
-
const _ = await
|
|
6603
|
+
const _ = await a.checkIfUserExists(v);
|
|
6615
6604
|
_?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), x(null));
|
|
6616
6605
|
} catch (_) {
|
|
6617
6606
|
console.error("⚠️ User validation request failed:", _);
|
|
@@ -6621,9 +6610,9 @@ const Ns = [
|
|
|
6621
6610
|
(async () => {
|
|
6622
6611
|
try {
|
|
6623
6612
|
y(!0);
|
|
6624
|
-
const _ = await
|
|
6613
|
+
const _ = await a.checkUserSession();
|
|
6625
6614
|
if (_.user?.id) {
|
|
6626
|
-
const V = _.user.id, Z = await
|
|
6615
|
+
const V = _.user.id, Z = await a.getUserProfile({ userId: V });
|
|
6627
6616
|
if (Z.user) {
|
|
6628
6617
|
const de = Z.user;
|
|
6629
6618
|
x(de), le(V);
|
|
@@ -6856,14 +6845,14 @@ const Ns = [
|
|
|
6856
6845
|
display: "grid",
|
|
6857
6846
|
gap: "24px",
|
|
6858
6847
|
gridTemplateColumns: "1fr",
|
|
6859
|
-
...
|
|
6848
|
+
...o && window.innerWidth >= 1024 && {
|
|
6860
6849
|
gridTemplateColumns: "1fr 2fr",
|
|
6861
6850
|
gap: "10px"
|
|
6862
6851
|
},
|
|
6863
|
-
...
|
|
6852
|
+
...o && window.innerWidth >= 768 && o && window.innerWidth < 1024 && {
|
|
6864
6853
|
gap: "10px"
|
|
6865
6854
|
},
|
|
6866
|
-
...
|
|
6855
|
+
...o && window.innerWidth >= 600 && o && window.innerWidth < 768 && {
|
|
6867
6856
|
gap: "28px"
|
|
6868
6857
|
}
|
|
6869
6858
|
},
|
|
@@ -7063,7 +7052,7 @@ const Ns = [
|
|
|
7063
7052
|
gap: "8px",
|
|
7064
7053
|
textDecoration: "none",
|
|
7065
7054
|
minHeight: "36px",
|
|
7066
|
-
flex:
|
|
7055
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7067
7056
|
},
|
|
7068
7057
|
children: [
|
|
7069
7058
|
/* @__PURE__ */ r.jsx(Oe, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7093,7 +7082,7 @@ const Ns = [
|
|
|
7093
7082
|
gap: "8px",
|
|
7094
7083
|
textDecoration: "none",
|
|
7095
7084
|
minHeight: "36px",
|
|
7096
|
-
flex:
|
|
7085
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7097
7086
|
},
|
|
7098
7087
|
children: [
|
|
7099
7088
|
u ? /* @__PURE__ */ r.jsx(
|
|
@@ -7129,7 +7118,7 @@ const Ns = [
|
|
|
7129
7118
|
gap: "8px",
|
|
7130
7119
|
textDecoration: "none",
|
|
7131
7120
|
minHeight: "36px",
|
|
7132
|
-
flex:
|
|
7121
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7133
7122
|
},
|
|
7134
7123
|
children: [
|
|
7135
7124
|
/* @__PURE__ */ r.jsx(ks, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7159,7 +7148,7 @@ const Ns = [
|
|
|
7159
7148
|
gap: "8px",
|
|
7160
7149
|
minHeight: "36px",
|
|
7161
7150
|
opacity: T ? 0.7 : 1,
|
|
7162
|
-
flex:
|
|
7151
|
+
flex: o && window.innerWidth < 1024 ? "1" : "auto"
|
|
7163
7152
|
},
|
|
7164
7153
|
children: [
|
|
7165
7154
|
T ? /* @__PURE__ */ r.jsx(
|
|
@@ -7369,7 +7358,7 @@ const Ns = [
|
|
|
7369
7358
|
display: "grid",
|
|
7370
7359
|
gap: "20px",
|
|
7371
7360
|
gridTemplateColumns: "1fr",
|
|
7372
|
-
...
|
|
7361
|
+
...o && window.innerWidth >= 600 && {
|
|
7373
7362
|
gridTemplateColumns: "1fr 1fr",
|
|
7374
7363
|
gap: "20px"
|
|
7375
7364
|
}
|
|
@@ -7593,7 +7582,7 @@ const Ns = [
|
|
|
7593
7582
|
onClose: () => {
|
|
7594
7583
|
I(!1);
|
|
7595
7584
|
},
|
|
7596
|
-
onUpdate:
|
|
7585
|
+
onUpdate: oe,
|
|
7597
7586
|
colors: z
|
|
7598
7587
|
}
|
|
7599
7588
|
),
|
|
@@ -7735,9 +7724,9 @@ const Ns = [
|
|
|
7735
7724
|
onLogout: n,
|
|
7736
7725
|
varient: s = "classic",
|
|
7737
7726
|
propUser: i,
|
|
7738
|
-
className:
|
|
7727
|
+
className: a = "",
|
|
7739
7728
|
// New URL props with defaults
|
|
7740
|
-
profileUrl:
|
|
7729
|
+
profileUrl: o,
|
|
7741
7730
|
settingsUrl: c,
|
|
7742
7731
|
// Menu item visibility with defaults
|
|
7743
7732
|
showProfileMenuItem: d = !0,
|
|
@@ -7791,9 +7780,9 @@ const Ns = [
|
|
|
7791
7780
|
if (typeof window > "u") return;
|
|
7792
7781
|
const l = () => {
|
|
7793
7782
|
if (!h || !O.current) return;
|
|
7794
|
-
const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280,
|
|
7783
|
+
const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280, oe = S - m.right, B = m.left;
|
|
7795
7784
|
D - m.bottom;
|
|
7796
|
-
const le =
|
|
7785
|
+
const le = oe >= ne || oe > B;
|
|
7797
7786
|
W(le);
|
|
7798
7787
|
};
|
|
7799
7788
|
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
@@ -8090,7 +8079,7 @@ const Ns = [
|
|
|
8090
8079
|
}
|
|
8091
8080
|
}, J = (l, m) => {
|
|
8092
8081
|
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
|
|
8093
|
-
}, H = () =>
|
|
8082
|
+
}, H = () => o || C?.profileUrl, L = () => {
|
|
8094
8083
|
const l = H();
|
|
8095
8084
|
l && window.open(l, "_self", "noopener,noreferrer");
|
|
8096
8085
|
}, Y = () => {
|
|
@@ -8101,7 +8090,7 @@ const Ns = [
|
|
|
8101
8090
|
{
|
|
8102
8091
|
style: A.wrapper,
|
|
8103
8092
|
ref: q,
|
|
8104
|
-
className:
|
|
8093
|
+
className: a,
|
|
8105
8094
|
role: "menu",
|
|
8106
8095
|
"aria-label": "User menu",
|
|
8107
8096
|
children: [
|
|
@@ -8420,13 +8409,13 @@ const Ns = [
|
|
|
8420
8409
|
]
|
|
8421
8410
|
}
|
|
8422
8411
|
);
|
|
8423
|
-
const [
|
|
8412
|
+
const [a, o] = P(!1), [c, d] = P({
|
|
8424
8413
|
email: t?.email || "",
|
|
8425
8414
|
otp: ""
|
|
8426
8415
|
}), [x, p] = P(!1), [y, k] = P(!1), [E, u] = P(null);
|
|
8427
8416
|
Ce.useEffect(() => {
|
|
8428
8417
|
if (typeof window < "u") {
|
|
8429
|
-
const b = () =>
|
|
8418
|
+
const b = () => o(window.innerWidth < 768);
|
|
8430
8419
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
8431
8420
|
}
|
|
8432
8421
|
}, []);
|
|
@@ -8538,7 +8527,7 @@ const Ns = [
|
|
|
8538
8527
|
onSubmit: g,
|
|
8539
8528
|
style: {
|
|
8540
8529
|
width: "100%",
|
|
8541
|
-
maxWidth:
|
|
8530
|
+
maxWidth: a ? "340px" : "400px",
|
|
8542
8531
|
display: "flex",
|
|
8543
8532
|
flexDirection: "column",
|
|
8544
8533
|
gap: 20,
|