@neuctra/authix 1.2.15 → 1.2.17
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 +296 -256
- package/dist/neuctra-authix.umd.js +19 -19
- package/dist/sdk/index.d.ts +19 -1
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import Ce, { forwardRef as zt, createElement as
|
|
1
|
+
import Ce, { forwardRef as zt, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as dt } from "react";
|
|
2
2
|
function At(t, e) {
|
|
3
3
|
return function() {
|
|
4
4
|
return t.apply(e, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString: ur } = Object.prototype, { getPrototypeOf: rt } = Object, { iterator: Fe, toStringTag:
|
|
7
|
+
const { toString: ur } = Object.prototype, { getPrototypeOf: rt } = Object, { iterator: Fe, toStringTag: Ut } = Symbol, Le = /* @__PURE__ */ ((t) => (e) => {
|
|
8
8
|
const n = ur.call(e);
|
|
9
9
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
10
10
|
})(/* @__PURE__ */ Object.create(null)), ae = (t) => (t = t.toLowerCase(), (e) => Le(e) === t), qe = (t) => (e) => typeof e === t, { isArray: je } = Array, be = qe("undefined");
|
|
11
11
|
function Te(t) {
|
|
12
12
|
return t !== null && !be(t) && t.constructor !== null && !be(t.constructor) && te(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const _t = ae("ArrayBuffer");
|
|
15
15
|
function pr(t) {
|
|
16
16
|
let e;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && _t(t.buffer), e;
|
|
18
18
|
}
|
|
19
|
-
const fr = qe("string"), te = qe("function"),
|
|
19
|
+
const fr = qe("string"), te = qe("function"), $t = qe("number"), Re = (t) => t !== null && typeof t == "object", xr = (t) => t === !0 || t === !1, Ue = (t) => {
|
|
20
20
|
if (Le(t) !== "object")
|
|
21
21
|
return !1;
|
|
22
22
|
const e = rt(t);
|
|
23
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
23
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ut in t) && !(Fe in t);
|
|
24
24
|
}, hr = (t) => {
|
|
25
25
|
if (!Re(t) || Te(t))
|
|
26
26
|
return !1;
|
|
@@ -50,7 +50,7 @@ function Pe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
50
50
|
c = a[s], e.call(null, t[c], c, t);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Dt(t, e) {
|
|
54
54
|
if (Te(t))
|
|
55
55
|
return null;
|
|
56
56
|
e = e.toLowerCase();
|
|
@@ -64,8 +64,8 @@ function $t(t, e) {
|
|
|
64
64
|
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Nt = (t) => !be(t) && t !== fe;
|
|
65
65
|
function Ge() {
|
|
66
66
|
const { caseless: t, skipUndefined: e } = Nt(this) && this || {}, n = {}, s = (i, a) => {
|
|
67
|
-
const o = t &&
|
|
68
|
-
|
|
67
|
+
const o = t && Dt(n, a) || a;
|
|
68
|
+
Ue(n[o]) && Ue(i) ? n[o] = Ge(n[o], i) : Ue(i) ? n[o] = Ge({}, i) : je(i) ? n[o] = i.slice() : (!e || !be(i)) && (n[o] = i);
|
|
69
69
|
};
|
|
70
70
|
for (let i = 0, a = arguments.length; i < a; i++)
|
|
71
71
|
arguments[i] && Pe(arguments[i], s);
|
|
@@ -95,25 +95,25 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
|
|
|
95
95
|
if (!t) return null;
|
|
96
96
|
if (je(t)) return t;
|
|
97
97
|
let e = t.length;
|
|
98
|
-
if (
|
|
98
|
+
if (!$t(e)) return null;
|
|
99
99
|
const n = new Array(e);
|
|
100
100
|
for (; e-- > 0; )
|
|
101
101
|
n[e] = t[e];
|
|
102
102
|
return n;
|
|
103
|
-
},
|
|
103
|
+
}, Ur = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && rt(Uint8Array)), _r = (t, e) => {
|
|
104
104
|
const s = (t && t[Fe]).call(t);
|
|
105
105
|
let i;
|
|
106
106
|
for (; (i = s.next()) && !i.done; ) {
|
|
107
107
|
const a = i.value;
|
|
108
108
|
e.call(t, a[0], a[1]);
|
|
109
109
|
}
|
|
110
|
-
},
|
|
110
|
+
}, $r = (t, e) => {
|
|
111
111
|
let n;
|
|
112
112
|
const s = [];
|
|
113
113
|
for (; (n = t.exec(e)) !== null; )
|
|
114
114
|
s.push(n);
|
|
115
115
|
return s;
|
|
116
|
-
},
|
|
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;
|
|
@@ -149,7 +149,7 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
|
|
|
149
149
|
}, Mr = () => {
|
|
150
150
|
}, Wr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
151
151
|
function Br(t) {
|
|
152
|
-
return !!(t && te(t.append) && t[
|
|
152
|
+
return !!(t && te(t.append) && t[Ut] === "FormData" && t[Fe]);
|
|
153
153
|
}
|
|
154
154
|
const Hr = (t) => {
|
|
155
155
|
const e = new Array(10), n = (s, i) => {
|
|
@@ -177,17 +177,17 @@ const Hr = (t) => {
|
|
|
177
177
|
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
|
|
178
178
|
typeof setImmediate == "function",
|
|
179
179
|
te(fe.postMessage)
|
|
180
|
-
),
|
|
180
|
+
), Kr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Lt, Jr = (t) => t != null && te(t[Fe]), p = {
|
|
181
181
|
isArray: je,
|
|
182
|
-
isArrayBuffer:
|
|
182
|
+
isArrayBuffer: _t,
|
|
183
183
|
isBuffer: Te,
|
|
184
184
|
isFormData: jr,
|
|
185
185
|
isArrayBufferView: pr,
|
|
186
186
|
isString: fr,
|
|
187
|
-
isNumber:
|
|
187
|
+
isNumber: $t,
|
|
188
188
|
isBoolean: xr,
|
|
189
189
|
isObject: Re,
|
|
190
|
-
isPlainObject:
|
|
190
|
+
isPlainObject: Ue,
|
|
191
191
|
isEmptyObject: hr,
|
|
192
192
|
isReadableStream: Sr,
|
|
193
193
|
isRequest: kr,
|
|
@@ -201,7 +201,7 @@ const Hr = (t) => {
|
|
|
201
201
|
isFunction: te,
|
|
202
202
|
isStream: wr,
|
|
203
203
|
isURLSearchParams: vr,
|
|
204
|
-
isTypedArray:
|
|
204
|
+
isTypedArray: Ur,
|
|
205
205
|
isFileList: br,
|
|
206
206
|
forEach: Pe,
|
|
207
207
|
merge: Ge,
|
|
@@ -214,9 +214,9 @@ const Hr = (t) => {
|
|
|
214
214
|
kindOfTest: ae,
|
|
215
215
|
endsWith: zr,
|
|
216
216
|
toArray: Ar,
|
|
217
|
-
forEachEntry:
|
|
218
|
-
matchAll:
|
|
219
|
-
isHTMLForm:
|
|
217
|
+
forEachEntry: _r,
|
|
218
|
+
matchAll: $r,
|
|
219
|
+
isHTMLForm: Dr,
|
|
220
220
|
hasOwnProperty: ut,
|
|
221
221
|
hasOwnProp: ut,
|
|
222
222
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
@@ -226,7 +226,7 @@ const Hr = (t) => {
|
|
|
226
226
|
toCamelCase: Nr,
|
|
227
227
|
noop: Mr,
|
|
228
228
|
toFiniteNumber: Wr,
|
|
229
|
-
findKey:
|
|
229
|
+
findKey: Dt,
|
|
230
230
|
global: fe,
|
|
231
231
|
isContextDefined: Nt,
|
|
232
232
|
isSpecCompliantForm: Br,
|
|
@@ -234,13 +234,13 @@ const Hr = (t) => {
|
|
|
234
234
|
isAsyncFn: Vr,
|
|
235
235
|
isThenable: Yr,
|
|
236
236
|
setImmediate: Lt,
|
|
237
|
-
asap:
|
|
238
|
-
isIterable:
|
|
237
|
+
asap: Kr,
|
|
238
|
+
isIterable: Jr
|
|
239
239
|
};
|
|
240
|
-
function
|
|
240
|
+
function $(t, e, n, s, i) {
|
|
241
241
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = t, this.name = "AxiosError", e && (this.code = e), n && (this.config = n), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
|
|
242
242
|
}
|
|
243
|
-
p.inherits(
|
|
243
|
+
p.inherits($, Error, {
|
|
244
244
|
toJSON: function() {
|
|
245
245
|
return {
|
|
246
246
|
// Standard
|
|
@@ -261,7 +261,7 @@ p.inherits(D, Error, {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
const qt =
|
|
264
|
+
const qt = $.prototype, Mt = {};
|
|
265
265
|
[
|
|
266
266
|
"ERR_BAD_OPTION_VALUE",
|
|
267
267
|
"ERR_BAD_OPTION",
|
|
@@ -279,15 +279,15 @@ const qt = D.prototype, Mt = {};
|
|
|
279
279
|
].forEach((t) => {
|
|
280
280
|
Mt[t] = { value: t };
|
|
281
281
|
});
|
|
282
|
-
Object.defineProperties(
|
|
282
|
+
Object.defineProperties($, Mt);
|
|
283
283
|
Object.defineProperty(qt, "isAxiosError", { value: !0 });
|
|
284
|
-
|
|
284
|
+
$.from = (t, e, n, s, i, a) => {
|
|
285
285
|
const o = Object.create(qt);
|
|
286
286
|
p.toFlatObject(t, o, function(x) {
|
|
287
287
|
return x !== Error.prototype;
|
|
288
288
|
}, (f) => f !== "isAxiosError");
|
|
289
289
|
const c = t && t.message ? t.message : "Error", d = e == null && t ? t.code : e;
|
|
290
|
-
return
|
|
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) {
|
|
@@ -327,7 +327,7 @@ function Me(t, e, n) {
|
|
|
327
327
|
if (p.isBoolean(u))
|
|
328
328
|
return u.toString();
|
|
329
329
|
if (!d && p.isBlob(u))
|
|
330
|
-
throw new
|
|
330
|
+
throw new $("Blob is not supported. Use a Buffer instead.");
|
|
331
331
|
return p.isArrayBuffer(u) || p.isTypedArray(u) ? d && typeof Blob == "function" ? new Blob([u]) : Buffer.from(u) : u;
|
|
332
332
|
}
|
|
333
333
|
function x(u, w, h) {
|
|
@@ -578,7 +578,7 @@ const Ie = {
|
|
|
578
578
|
return JSON.parse(e, this.parseReviver);
|
|
579
579
|
} catch (c) {
|
|
580
580
|
if (o)
|
|
581
|
-
throw c.name === "SyntaxError" ?
|
|
581
|
+
throw c.name === "SyntaxError" ? $.from(c, $.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
return e;
|
|
@@ -638,8 +638,8 @@ const fn = p.toObjectSet([
|
|
|
638
638
|
function Se(t) {
|
|
639
639
|
return t && String(t).trim().toLowerCase();
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return t === !1 || t == null ? t : p.isArray(t) ? t.map(
|
|
641
|
+
function _e(t) {
|
|
642
|
+
return t === !1 || t == null ? t : p.isArray(t) ? t.map(_e) : String(t);
|
|
643
643
|
}
|
|
644
644
|
function hn(t) {
|
|
645
645
|
const e = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
@@ -684,7 +684,7 @@ let re = class {
|
|
|
684
684
|
if (!x)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const y = p.findKey(i, x);
|
|
687
|
-
(!y || i[y] === void 0 || f === !0 || f === void 0 && i[y] !== !1) && (i[y || d] =
|
|
687
|
+
(!y || i[y] === void 0 || f === !0 || f === void 0 && i[y] !== !1) && (i[y || d] = _e(c));
|
|
688
688
|
}
|
|
689
689
|
const o = (c, d) => p.forEach(c, (f, x) => a(f, x, d));
|
|
690
690
|
if (p.isPlainObject(e) || e instanceof this.constructor)
|
|
@@ -752,11 +752,11 @@ let re = class {
|
|
|
752
752
|
return p.forEach(this, (i, a) => {
|
|
753
753
|
const o = p.findKey(s, a);
|
|
754
754
|
if (o) {
|
|
755
|
-
n[o] =
|
|
755
|
+
n[o] = _e(i), delete n[a];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
758
|
const c = e ? gn(a) : String(a).trim();
|
|
759
|
-
c !== a && delete n[a], n[c] =
|
|
759
|
+
c !== a && delete n[a], n[c] = _e(i), s[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...e) {
|
|
@@ -817,20 +817,20 @@ function Ve(t, e) {
|
|
|
817
817
|
a = c.call(n, a, i.normalize(), e ? e.status : void 0);
|
|
818
818
|
}), i.normalize(), a;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Kt(t) {
|
|
821
821
|
return !!(t && t.__CANCEL__);
|
|
822
822
|
}
|
|
823
823
|
function ve(t, e, n) {
|
|
824
|
-
|
|
824
|
+
$.call(this, t ?? "canceled", $.ERR_CANCELED, e, n), this.name = "CanceledError";
|
|
825
825
|
}
|
|
826
|
-
p.inherits(ve,
|
|
826
|
+
p.inherits(ve, $, {
|
|
827
827
|
__CANCEL__: !0
|
|
828
828
|
});
|
|
829
|
-
function
|
|
829
|
+
function Jt(t, e, n) {
|
|
830
830
|
const s = n.config.validateStatus;
|
|
831
|
-
!n.status || !s || s(n.status) ? t(n) : e(new
|
|
831
|
+
!n.status || !s || s(n.status) ? t(n) : e(new $(
|
|
832
832
|
"Request failed with status code " + n.status,
|
|
833
|
-
[
|
|
833
|
+
[$.ERR_BAD_REQUEST, $.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
|
|
834
834
|
n.config,
|
|
835
835
|
n.request,
|
|
836
836
|
n
|
|
@@ -1044,7 +1044,7 @@ const Xt = (t) => {
|
|
|
1044
1044
|
config: t,
|
|
1045
1045
|
request: h
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1047
|
+
Jt(function(j) {
|
|
1048
1048
|
n(j), w();
|
|
1049
1049
|
}, function(j) {
|
|
1050
1050
|
s(j), w();
|
|
@@ -1053,16 +1053,16 @@ const Xt = (t) => {
|
|
|
1053
1053
|
"onloadend" in h ? h.onloadend = I : h.onreadystatechange = function() {
|
|
1054
1054
|
!h || h.readyState !== 4 || h.status === 0 && !(h.responseURL && h.responseURL.indexOf("file:") === 0) || setTimeout(I);
|
|
1055
1055
|
}, h.onabort = function() {
|
|
1056
|
-
h && (s(new
|
|
1056
|
+
h && (s(new $("Request aborted", $.ECONNABORTED, t, h)), h = null);
|
|
1057
1057
|
}, h.onerror = function(A) {
|
|
1058
|
-
const N = A && A.message ? A.message : "Network Error", b = new
|
|
1058
|
+
const N = A && A.message ? A.message : "Network Error", b = new $(N, $.ERR_NETWORK, t, h);
|
|
1059
1059
|
b.event = A || null, s(b), h = null;
|
|
1060
1060
|
}, h.ontimeout = function() {
|
|
1061
1061
|
let A = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
1062
1062
|
const N = i.transitional || Vt;
|
|
1063
|
-
i.timeoutErrorMessage && (A = i.timeoutErrorMessage), s(new
|
|
1063
|
+
i.timeoutErrorMessage && (A = i.timeoutErrorMessage), s(new $(
|
|
1064
1064
|
A,
|
|
1065
|
-
N.clarifyTimeoutError ?
|
|
1065
|
+
N.clarifyTimeoutError ? $.ETIMEDOUT : $.ECONNABORTED,
|
|
1066
1066
|
t,
|
|
1067
1067
|
h
|
|
1068
1068
|
)), h = null;
|
|
@@ -1073,7 +1073,7 @@ const Xt = (t) => {
|
|
|
1073
1073
|
}, i.cancelToken && i.cancelToken.subscribe(x), i.signal && (i.signal.aborted ? x() : i.signal.addEventListener("abort", x)));
|
|
1074
1074
|
const C = bn(i.url);
|
|
1075
1075
|
if (C && Q.protocols.indexOf(C) === -1) {
|
|
1076
|
-
s(new
|
|
1076
|
+
s(new $("Unsupported protocol " + C + ":", $.ERR_BAD_REQUEST, t));
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
1079
|
h.send(a || null);
|
|
@@ -1086,11 +1086,11 @@ const Xt = (t) => {
|
|
|
1086
1086
|
if (!i) {
|
|
1087
1087
|
i = !0, c();
|
|
1088
1088
|
const x = f instanceof Error ? f : this.reason;
|
|
1089
|
-
s.abort(x instanceof
|
|
1089
|
+
s.abort(x instanceof $ ? x : new ve(x instanceof Error ? x.message : x));
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
1092
|
let o = e && setTimeout(() => {
|
|
1093
|
-
o = null, a(new
|
|
1093
|
+
o = null, a(new $(`timeout ${e} of ms exceeded`, $.ETIMEDOUT));
|
|
1094
1094
|
}, e);
|
|
1095
1095
|
const c = () => {
|
|
1096
1096
|
t && (o && clearTimeout(o), o = null, t.forEach((f) => {
|
|
@@ -1195,7 +1195,7 @@ const Xt = (t) => {
|
|
|
1195
1195
|
let I = w && w[u];
|
|
1196
1196
|
if (I)
|
|
1197
1197
|
return I.call(w);
|
|
1198
|
-
throw new
|
|
1198
|
+
throw new $(`Response type '${u}' is not supported`, $.ERR_NOT_SUPPORT, h);
|
|
1199
1199
|
});
|
|
1200
1200
|
});
|
|
1201
1201
|
const k = async (u) => {
|
|
@@ -1245,15 +1245,15 @@ const Xt = (t) => {
|
|
|
1245
1245
|
duplex: "half"
|
|
1246
1246
|
}), m;
|
|
1247
1247
|
if (p.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
|
|
1248
|
-
const [S,
|
|
1248
|
+
const [S, D] = mt(
|
|
1249
1249
|
z,
|
|
1250
1250
|
Ne(gt(b))
|
|
1251
1251
|
);
|
|
1252
|
-
I = bt(l.body, wt, S,
|
|
1252
|
+
I = bt(l.body, wt, S, D);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
p.isString(O) || (O = O ? "include" : "omit");
|
|
1256
|
-
const M = a && "credentials" in n.prototype,
|
|
1256
|
+
const M = a && "credentials" in n.prototype, J = {
|
|
1257
1257
|
...X,
|
|
1258
1258
|
signal: R,
|
|
1259
1259
|
method: h.toUpperCase(),
|
|
@@ -1262,21 +1262,21 @@ const Xt = (t) => {
|
|
|
1262
1262
|
duplex: "half",
|
|
1263
1263
|
credentials: M ? O : void 0
|
|
1264
1264
|
};
|
|
1265
|
-
G = a && new n(w,
|
|
1266
|
-
let H = await (a ? W(G, X) : W(w,
|
|
1265
|
+
G = a && new n(w, J);
|
|
1266
|
+
let H = await (a ? W(G, X) : W(w, J));
|
|
1267
1267
|
const F = x && (j === "stream" || j === "response");
|
|
1268
1268
|
if (x && (N || F && T)) {
|
|
1269
1269
|
const l = {};
|
|
1270
1270
|
["status", "statusText", "headers"].forEach((ne) => {
|
|
1271
1271
|
l[ne] = H[ne];
|
|
1272
1272
|
});
|
|
1273
|
-
const m = p.toFiniteNumber(H.headers.get("content-length")), [S,
|
|
1273
|
+
const m = p.toFiniteNumber(H.headers.get("content-length")), [S, D] = N && mt(
|
|
1274
1274
|
m,
|
|
1275
1275
|
Ne(gt(N), !0)
|
|
1276
1276
|
) || [];
|
|
1277
1277
|
H = new s(
|
|
1278
1278
|
bt(H.body, wt, S, () => {
|
|
1279
|
-
|
|
1279
|
+
D && D(), T && T();
|
|
1280
1280
|
}),
|
|
1281
1281
|
l
|
|
1282
1282
|
);
|
|
@@ -1284,7 +1284,7 @@ const Xt = (t) => {
|
|
|
1284
1284
|
j = j || "text";
|
|
1285
1285
|
let Y = await y[p.findKey(y, j) || "text"](H, u);
|
|
1286
1286
|
return !F && T && T(), await new Promise((l, m) => {
|
|
1287
|
-
|
|
1287
|
+
Jt(l, m, {
|
|
1288
1288
|
data: Y,
|
|
1289
1289
|
headers: re.from(H.headers),
|
|
1290
1290
|
status: H.status,
|
|
@@ -1295,21 +1295,21 @@ const Xt = (t) => {
|
|
|
1295
1295
|
});
|
|
1296
1296
|
} catch (M) {
|
|
1297
1297
|
throw T && T(), M && M.name === "TypeError" && /Load failed|fetch/i.test(M.message) ? Object.assign(
|
|
1298
|
-
new
|
|
1298
|
+
new $("Network Error", $.ERR_NETWORK, u, G),
|
|
1299
1299
|
{
|
|
1300
1300
|
cause: M.cause || M
|
|
1301
1301
|
}
|
|
1302
|
-
) :
|
|
1302
|
+
) : $.from(M, M && M.code, u, G);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
|
-
},
|
|
1305
|
+
}, Un = /* @__PURE__ */ new Map(), Zt = (t) => {
|
|
1306
1306
|
let e = t ? t.env : {};
|
|
1307
1307
|
const { fetch: n, Request: s, Response: i } = e, a = [
|
|
1308
1308
|
s,
|
|
1309
1309
|
i,
|
|
1310
1310
|
n
|
|
1311
1311
|
];
|
|
1312
|
-
let o = a.length, c = o, d, f, x =
|
|
1312
|
+
let o = a.length, c = o, d, f, x = Un;
|
|
1313
1313
|
for (; c--; )
|
|
1314
1314
|
d = a[c], f = x.get(d), f === void 0 && x.set(d, f = c ? /* @__PURE__ */ new Map() : An(e)), x = f;
|
|
1315
1315
|
return f;
|
|
@@ -1331,7 +1331,7 @@ p.forEach(Qe, (t, e) => {
|
|
|
1331
1331
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1332
1332
|
}
|
|
1333
1333
|
});
|
|
1334
|
-
const kt = (t) => `- ${t}`,
|
|
1334
|
+
const kt = (t) => `- ${t}`, _n = (t) => p.isFunction(t) || t === null || t === !1, Qt = {
|
|
1335
1335
|
getAdapter: (t, e) => {
|
|
1336
1336
|
t = p.isArray(t) ? t : [t];
|
|
1337
1337
|
const { length: n } = t;
|
|
@@ -1340,8 +1340,8 @@ const kt = (t) => `- ${t}`, Un = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1340
1340
|
for (let o = 0; o < n; o++) {
|
|
1341
1341
|
s = t[o];
|
|
1342
1342
|
let c;
|
|
1343
|
-
if (i = s, !
|
|
1344
|
-
throw new
|
|
1343
|
+
if (i = s, !_n(s) && (i = Qe[(c = String(s)).toLowerCase()], i === void 0))
|
|
1344
|
+
throw new $(`Unknown adapter '${c}'`);
|
|
1345
1345
|
if (i && (p.isFunction(i) || (i = i.get(e))))
|
|
1346
1346
|
break;
|
|
1347
1347
|
a[c || "#" + o] = i;
|
|
@@ -1353,7 +1353,7 @@ const kt = (t) => `- ${t}`, Un = (t) => p.isFunction(t) || t === null || t === !
|
|
|
1353
1353
|
let c = n ? o.length > 1 ? `since :
|
|
1354
1354
|
` + o.map(kt).join(`
|
|
1355
1355
|
`) : " " + kt(o[0]) : "as no adapter specified";
|
|
1356
|
-
throw new
|
|
1356
|
+
throw new $(
|
|
1357
1357
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1358
1358
|
"ERR_NOT_SUPPORT"
|
|
1359
1359
|
);
|
|
@@ -1377,7 +1377,7 @@ function Et(t) {
|
|
|
1377
1377
|
s
|
|
1378
1378
|
), s.headers = re.from(s.headers), s;
|
|
1379
1379
|
}, function(s) {
|
|
1380
|
-
return
|
|
1380
|
+
return Kt(s) || (Ye(t), s && s.response && (s.response.data = Ve.call(
|
|
1381
1381
|
t,
|
|
1382
1382
|
t.transformResponse,
|
|
1383
1383
|
s.response
|
|
@@ -1397,9 +1397,9 @@ We.transitional = function(e, n, s) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
return (a, o, c) => {
|
|
1399
1399
|
if (e === !1)
|
|
1400
|
-
throw new
|
|
1400
|
+
throw new $(
|
|
1401
1401
|
i(o, " has been removed" + (n ? " in " + n : "")),
|
|
1402
|
-
|
|
1402
|
+
$.ERR_DEPRECATED
|
|
1403
1403
|
);
|
|
1404
1404
|
return n && !Ct[o] && (Ct[o] = !0, console.warn(
|
|
1405
1405
|
i(
|
|
@@ -1412,9 +1412,9 @@ We.transitional = function(e, n, s) {
|
|
|
1412
1412
|
We.spelling = function(e) {
|
|
1413
1413
|
return (n, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
|
|
1414
1414
|
};
|
|
1415
|
-
function
|
|
1415
|
+
function $n(t, e, n) {
|
|
1416
1416
|
if (typeof t != "object")
|
|
1417
|
-
throw new
|
|
1417
|
+
throw new $("options must be an object", $.ERR_BAD_OPTION_VALUE);
|
|
1418
1418
|
const s = Object.keys(t);
|
|
1419
1419
|
let i = s.length;
|
|
1420
1420
|
for (; i-- > 0; ) {
|
|
@@ -1422,17 +1422,17 @@ function Dn(t, e, n) {
|
|
|
1422
1422
|
if (o) {
|
|
1423
1423
|
const c = t[a], d = c === void 0 || o(c, a, t);
|
|
1424
1424
|
if (d !== !0)
|
|
1425
|
-
throw new
|
|
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
|
|
1429
|
+
throw new $("Unknown option " + a, $.ERR_BAD_OPTION);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1433
|
-
assertOptions:
|
|
1432
|
+
const $e = {
|
|
1433
|
+
assertOptions: $n,
|
|
1434
1434
|
validators: We
|
|
1435
|
-
}, ce =
|
|
1435
|
+
}, ce = $e.validators;
|
|
1436
1436
|
let xe = class {
|
|
1437
1437
|
constructor(e) {
|
|
1438
1438
|
this.defaults = e || {}, this.interceptors = {
|
|
@@ -1468,16 +1468,16 @@ let xe = class {
|
|
|
1468
1468
|
_request(e, n) {
|
|
1469
1469
|
typeof e == "string" ? (n = n || {}, n.url = e) : n = e || {}, n = he(this.defaults, n);
|
|
1470
1470
|
const { transitional: s, paramsSerializer: i, headers: a } = n;
|
|
1471
|
-
s !== void 0 &&
|
|
1471
|
+
s !== void 0 && $e.assertOptions(s, {
|
|
1472
1472
|
silentJSONParsing: ce.transitional(ce.boolean),
|
|
1473
1473
|
forcedJSONParsing: ce.transitional(ce.boolean),
|
|
1474
1474
|
clarifyTimeoutError: ce.transitional(ce.boolean)
|
|
1475
1475
|
}, !1), i != null && (p.isFunction(i) ? n.paramsSerializer = {
|
|
1476
1476
|
serialize: i
|
|
1477
|
-
} :
|
|
1477
|
+
} : $e.assertOptions(i, {
|
|
1478
1478
|
encode: ce.function,
|
|
1479
1479
|
serialize: ce.function
|
|
1480
|
-
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0),
|
|
1480
|
+
}, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), $e.assertOptions(n, {
|
|
1481
1481
|
baseUrl: ce.spelling("baseURL"),
|
|
1482
1482
|
withXsrfToken: ce.spelling("withXSRFToken")
|
|
1483
1483
|
}, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
|
|
@@ -1557,7 +1557,7 @@ p.forEach(["post", "put", "patch"], function(e) {
|
|
|
1557
1557
|
}
|
|
1558
1558
|
xe.prototype[e] = n(), xe.prototype[e + "Form"] = n(!0);
|
|
1559
1559
|
});
|
|
1560
|
-
let
|
|
1560
|
+
let Dn = class tr {
|
|
1561
1561
|
constructor(e) {
|
|
1562
1562
|
if (typeof e != "function")
|
|
1563
1563
|
throw new TypeError("executor must be a function.");
|
|
@@ -1712,31 +1712,31 @@ function rr(t) {
|
|
|
1712
1712
|
return rr(he(t, i));
|
|
1713
1713
|
}, n;
|
|
1714
1714
|
}
|
|
1715
|
-
const
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1715
|
+
const K = rr(Ie);
|
|
1716
|
+
K.Axios = xe;
|
|
1717
|
+
K.CanceledError = ve;
|
|
1718
|
+
K.CancelToken = Dn;
|
|
1719
|
+
K.isCancel = Kt;
|
|
1720
|
+
K.VERSION = er;
|
|
1721
|
+
K.toFormData = Me;
|
|
1722
|
+
K.AxiosError = $;
|
|
1723
|
+
K.Cancel = K.CanceledError;
|
|
1724
|
+
K.all = function(e) {
|
|
1725
1725
|
return Promise.all(e);
|
|
1726
1726
|
};
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1727
|
+
K.spread = Nn;
|
|
1728
|
+
K.isAxiosError = Fn;
|
|
1729
|
+
K.mergeConfig = he;
|
|
1730
|
+
K.AxiosHeaders = re;
|
|
1731
|
+
K.formToJSON = (t) => Yt(p.isHTMLForm(t) ? new FormData(t) : t);
|
|
1732
|
+
K.getAdapter = Qt.getAdapter;
|
|
1733
|
+
K.HttpStatusCode = et;
|
|
1734
|
+
K.default = K;
|
|
1735
1735
|
const {
|
|
1736
1736
|
Axios: Vs,
|
|
1737
1737
|
AxiosError: Ys,
|
|
1738
|
-
CanceledError:
|
|
1739
|
-
isCancel:
|
|
1738
|
+
CanceledError: Ks,
|
|
1739
|
+
isCancel: Js,
|
|
1740
1740
|
CancelToken: Gs,
|
|
1741
1741
|
VERSION: Xs,
|
|
1742
1742
|
all: Zs,
|
|
@@ -1749,7 +1749,7 @@ const {
|
|
|
1749
1749
|
formToJSON: ii,
|
|
1750
1750
|
getAdapter: ai,
|
|
1751
1751
|
mergeConfig: oi
|
|
1752
|
-
} =
|
|
1752
|
+
} = K;
|
|
1753
1753
|
class li {
|
|
1754
1754
|
baseUrl;
|
|
1755
1755
|
apiKey;
|
|
@@ -1762,7 +1762,7 @@ class li {
|
|
|
1762
1762
|
constructor(e) {
|
|
1763
1763
|
if (!e || !e.baseUrl)
|
|
1764
1764
|
throw new Error("NeuctraAuthixClient: 'baseUrl' is required in config");
|
|
1765
|
-
this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client =
|
|
1765
|
+
this.baseUrl = e.baseUrl.replace(/\/$/, ""), this.apiKey = e.apiKey || null, this.appId = e.appId || null, this.client = K.create({
|
|
1766
1766
|
baseURL: this.baseUrl,
|
|
1767
1767
|
headers: {
|
|
1768
1768
|
"Content-Type": "application/json",
|
|
@@ -1796,7 +1796,7 @@ class li {
|
|
|
1796
1796
|
// 👈 override axios default
|
|
1797
1797
|
})).data;
|
|
1798
1798
|
} catch (o) {
|
|
1799
|
-
throw
|
|
1799
|
+
throw K.isAxiosError(o) ? {
|
|
1800
1800
|
message: o.response?.data?.message || o.message || "Request failed",
|
|
1801
1801
|
status: o.response?.status ?? 0
|
|
1802
1802
|
} : { message: o.message || "Unexpected error occurred" };
|
|
@@ -1943,6 +1943,28 @@ class li {
|
|
|
1943
1943
|
return { authenticated: !1 };
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
|
+
/**
|
|
1947
|
+
* 👤 Get user by ID or username
|
|
1948
|
+
*
|
|
1949
|
+
* Route:
|
|
1950
|
+
* GET /users/:appId/user?id=USER_ID
|
|
1951
|
+
* GET /users/:appId/user?username=USERNAME
|
|
1952
|
+
*/
|
|
1953
|
+
async getUser(e) {
|
|
1954
|
+
const n = this.appId;
|
|
1955
|
+
if (!n)
|
|
1956
|
+
throw new Error("getUser: 'appId' is required in SDK config");
|
|
1957
|
+
if (!e?.id && !e?.username)
|
|
1958
|
+
throw new Error("getUser: either 'id' or 'username' is required");
|
|
1959
|
+
const s = new URLSearchParams();
|
|
1960
|
+
return e.id && s.append("id", e.id), e.username && s.append("username", e.username), await this.request(
|
|
1961
|
+
"GET",
|
|
1962
|
+
`/users/${encodeURIComponent(n)}/user?${s.toString()}`,
|
|
1963
|
+
void 0,
|
|
1964
|
+
{},
|
|
1965
|
+
!0
|
|
1966
|
+
);
|
|
1967
|
+
}
|
|
1946
1968
|
/**
|
|
1947
1969
|
* Update an existing user
|
|
1948
1970
|
* @param params fields to update
|
|
@@ -2207,12 +2229,30 @@ class li {
|
|
|
2207
2229
|
* GET /api/app/:appId/users-data
|
|
2208
2230
|
* GET /api/app/:appId/users-data/:category
|
|
2209
2231
|
*/
|
|
2210
|
-
async
|
|
2232
|
+
async getAppUsersData(e) {
|
|
2211
2233
|
const n = this.appId;
|
|
2212
2234
|
if (!n) throw new Error("getUsersData: 'appId' is required");
|
|
2213
2235
|
const s = e ? `/app/${encodeURIComponent(n)}/users-data/${encodeURIComponent(e)}` : `/app/${encodeURIComponent(n)}/users-data`;
|
|
2214
2236
|
return await this.request("GET", s, void 0, {}, !1);
|
|
2215
2237
|
}
|
|
2238
|
+
/**
|
|
2239
|
+
* 👥 Get all app users
|
|
2240
|
+
*
|
|
2241
|
+
* Route:
|
|
2242
|
+
* GET /api/app/:appId/users
|
|
2243
|
+
*/
|
|
2244
|
+
async getAllAppUsers() {
|
|
2245
|
+
const e = this.appId;
|
|
2246
|
+
if (!e)
|
|
2247
|
+
throw new Error("getAllAppUsers: 'appId' is required");
|
|
2248
|
+
return await this.request(
|
|
2249
|
+
"GET",
|
|
2250
|
+
`/app/${encodeURIComponent(e)}/users`,
|
|
2251
|
+
void 0,
|
|
2252
|
+
{},
|
|
2253
|
+
!1
|
|
2254
|
+
);
|
|
2255
|
+
}
|
|
2216
2256
|
/**
|
|
2217
2257
|
* 🔍 Get single app data item by id
|
|
2218
2258
|
*
|
|
@@ -2414,11 +2454,11 @@ function qn() {
|
|
|
2414
2454
|
}
|
|
2415
2455
|
if (m) {
|
|
2416
2456
|
m = console;
|
|
2417
|
-
var S = m.error,
|
|
2457
|
+
var S = m.error, D = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
2418
2458
|
return S.call(
|
|
2419
2459
|
m,
|
|
2420
2460
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2421
|
-
|
|
2461
|
+
D
|
|
2422
2462
|
), e(l);
|
|
2423
2463
|
}
|
|
2424
2464
|
}
|
|
@@ -2461,18 +2501,18 @@ function qn() {
|
|
|
2461
2501
|
}
|
|
2462
2502
|
function d() {
|
|
2463
2503
|
var l = t(this.type);
|
|
2464
|
-
return
|
|
2504
|
+
return J[l] || (J[l] = !0, console.error(
|
|
2465
2505
|
"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."
|
|
2466
2506
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
2467
2507
|
}
|
|
2468
|
-
function f(l, m, S,
|
|
2508
|
+
function f(l, m, S, D, ne, oe) {
|
|
2469
2509
|
var B = S.ref;
|
|
2470
2510
|
return l = {
|
|
2471
2511
|
$$typeof: u,
|
|
2472
2512
|
type: l,
|
|
2473
2513
|
key: m,
|
|
2474
2514
|
props: S,
|
|
2475
|
-
_owner:
|
|
2515
|
+
_owner: D
|
|
2476
2516
|
}, (B !== void 0 ? B : null) !== null ? Object.defineProperty(l, "ref", {
|
|
2477
2517
|
enumerable: !1,
|
|
2478
2518
|
get: d
|
|
@@ -2498,13 +2538,13 @@ function qn() {
|
|
|
2498
2538
|
value: oe
|
|
2499
2539
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
2500
2540
|
}
|
|
2501
|
-
function x(l, m, S,
|
|
2541
|
+
function x(l, m, S, D, ne, oe) {
|
|
2502
2542
|
var B = m.children;
|
|
2503
2543
|
if (B !== void 0)
|
|
2504
|
-
if (
|
|
2544
|
+
if (D)
|
|
2505
2545
|
if (T(B)) {
|
|
2506
|
-
for (
|
|
2507
|
-
y(B[
|
|
2546
|
+
for (D = 0; D < B.length; D++)
|
|
2547
|
+
y(B[D]);
|
|
2508
2548
|
Object.freeze && Object.freeze(B);
|
|
2509
2549
|
} else
|
|
2510
2550
|
console.error(
|
|
@@ -2513,21 +2553,21 @@ function qn() {
|
|
|
2513
2553
|
else y(B);
|
|
2514
2554
|
if (G.call(m, "key")) {
|
|
2515
2555
|
B = t(l);
|
|
2516
|
-
var le = Object.keys(m).filter(function(
|
|
2517
|
-
return
|
|
2556
|
+
var le = Object.keys(m).filter(function(U) {
|
|
2557
|
+
return U !== "key";
|
|
2518
2558
|
});
|
|
2519
|
-
|
|
2559
|
+
D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2520
2560
|
`A props object containing a "key" prop is being spread into JSX:
|
|
2521
2561
|
let props = %s;
|
|
2522
2562
|
<%s {...props} />
|
|
2523
2563
|
React keys must be passed directly to JSX without using spread:
|
|
2524
2564
|
let props = %s;
|
|
2525
2565
|
<%s key={someKey} {...props} />`,
|
|
2526
|
-
|
|
2566
|
+
D,
|
|
2527
2567
|
B,
|
|
2528
2568
|
le,
|
|
2529
2569
|
B
|
|
2530
|
-
), Y[B +
|
|
2570
|
+
), Y[B + D] = !0);
|
|
2531
2571
|
}
|
|
2532
2572
|
if (B = null, S !== void 0 && (n(S), B = "" + S), o(m) && (n(m.key), B = "" + m.key), "key" in m) {
|
|
2533
2573
|
S = {};
|
|
@@ -2560,29 +2600,29 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2560
2600
|
return l();
|
|
2561
2601
|
}
|
|
2562
2602
|
};
|
|
2563
|
-
var M,
|
|
2603
|
+
var M, J = {}, H = E.react_stack_bottom_frame.bind(
|
|
2564
2604
|
E,
|
|
2565
2605
|
a
|
|
2566
2606
|
)(), F = z(s(a)), Y = {};
|
|
2567
2607
|
Ee.Fragment = h, Ee.jsx = function(l, m, S) {
|
|
2568
|
-
var
|
|
2608
|
+
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2569
2609
|
return x(
|
|
2570
2610
|
l,
|
|
2571
2611
|
m,
|
|
2572
2612
|
S,
|
|
2573
2613
|
!1,
|
|
2574
|
-
|
|
2575
|
-
|
|
2614
|
+
D ? Error("react-stack-top-frame") : H,
|
|
2615
|
+
D ? z(s(l)) : F
|
|
2576
2616
|
);
|
|
2577
2617
|
}, Ee.jsxs = function(l, m, S) {
|
|
2578
|
-
var
|
|
2618
|
+
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2579
2619
|
return x(
|
|
2580
2620
|
l,
|
|
2581
2621
|
m,
|
|
2582
2622
|
S,
|
|
2583
2623
|
!0,
|
|
2584
|
-
|
|
2585
|
-
|
|
2624
|
+
D ? Error("react-stack-top-frame") : H,
|
|
2625
|
+
D ? z(s(l)) : F
|
|
2586
2626
|
);
|
|
2587
2627
|
};
|
|
2588
2628
|
})()), Ee;
|
|
@@ -2642,7 +2682,7 @@ const Yn = zt(
|
|
|
2642
2682
|
children: a,
|
|
2643
2683
|
iconNode: o,
|
|
2644
2684
|
...c
|
|
2645
|
-
}, d) =>
|
|
2685
|
+
}, d) => Je(
|
|
2646
2686
|
"svg",
|
|
2647
2687
|
{
|
|
2648
2688
|
ref: d,
|
|
@@ -2656,7 +2696,7 @@ const Yn = zt(
|
|
|
2656
2696
|
...c
|
|
2657
2697
|
},
|
|
2658
2698
|
[
|
|
2659
|
-
...o.map(([f, x]) =>
|
|
2699
|
+
...o.map(([f, x]) => Je(f, x)),
|
|
2660
2700
|
...Array.isArray(a) ? a : [a]
|
|
2661
2701
|
]
|
|
2662
2702
|
)
|
|
@@ -2669,7 +2709,7 @@ const Yn = zt(
|
|
|
2669
2709
|
*/
|
|
2670
2710
|
const L = (t, e) => {
|
|
2671
2711
|
const n = zt(
|
|
2672
|
-
({ className: s, ...i }, a) =>
|
|
2712
|
+
({ className: s, ...i }, a) => Je(Yn, {
|
|
2673
2713
|
ref: a,
|
|
2674
2714
|
iconNode: e,
|
|
2675
2715
|
className: nr(
|
|
@@ -2688,7 +2728,7 @@ const L = (t, e) => {
|
|
|
2688
2728
|
* This source code is licensed under the ISC license.
|
|
2689
2729
|
* See the LICENSE file in the root directory of this source tree.
|
|
2690
2730
|
*/
|
|
2691
|
-
const
|
|
2731
|
+
const Kn = [
|
|
2692
2732
|
[
|
|
2693
2733
|
"path",
|
|
2694
2734
|
{
|
|
@@ -2697,7 +2737,7 @@ const Jn = [
|
|
|
2697
2737
|
}
|
|
2698
2738
|
],
|
|
2699
2739
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
2700
|
-
],
|
|
2740
|
+
], Jn = L("badge-check", Kn);
|
|
2701
2741
|
/**
|
|
2702
2742
|
* @license lucide-react v0.544.0 - ISC
|
|
2703
2743
|
*
|
|
@@ -2751,7 +2791,7 @@ const es = [
|
|
|
2751
2791
|
const ts = [
|
|
2752
2792
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2753
2793
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
2754
|
-
],
|
|
2794
|
+
], Ke = L("circle-check", ts);
|
|
2755
2795
|
/**
|
|
2756
2796
|
* @license lucide-react v0.544.0 - ISC
|
|
2757
2797
|
*
|
|
@@ -3056,14 +3096,14 @@ const As = [
|
|
|
3056
3096
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
3057
3097
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3058
3098
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
3059
|
-
],
|
|
3099
|
+
], De = L("trash-2", As);
|
|
3060
3100
|
/**
|
|
3061
3101
|
* @license lucide-react v0.544.0 - ISC
|
|
3062
3102
|
*
|
|
3063
3103
|
* This source code is licensed under the ISC license.
|
|
3064
3104
|
* See the LICENSE file in the root directory of this source tree.
|
|
3065
3105
|
*/
|
|
3066
|
-
const
|
|
3106
|
+
const Us = [
|
|
3067
3107
|
[
|
|
3068
3108
|
"path",
|
|
3069
3109
|
{
|
|
@@ -3073,29 +3113,29 @@ const _s = [
|
|
|
3073
3113
|
],
|
|
3074
3114
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3075
3115
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3076
|
-
], Ot = L("triangle-alert",
|
|
3116
|
+
], Ot = L("triangle-alert", Us);
|
|
3077
3117
|
/**
|
|
3078
3118
|
* @license lucide-react v0.544.0 - ISC
|
|
3079
3119
|
*
|
|
3080
3120
|
* This source code is licensed under the ISC license.
|
|
3081
3121
|
* See the LICENSE file in the root directory of this source tree.
|
|
3082
3122
|
*/
|
|
3083
|
-
const
|
|
3123
|
+
const _s = [
|
|
3084
3124
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
3085
3125
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
3086
3126
|
["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
|
|
3087
3127
|
["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
|
|
3088
|
-
],
|
|
3128
|
+
], $s = L("user-x", _s);
|
|
3089
3129
|
/**
|
|
3090
3130
|
* @license lucide-react v0.544.0 - ISC
|
|
3091
3131
|
*
|
|
3092
3132
|
* This source code is licensed under the ISC license.
|
|
3093
3133
|
* See the LICENSE file in the root directory of this source tree.
|
|
3094
3134
|
*/
|
|
3095
|
-
const
|
|
3135
|
+
const Ds = [
|
|
3096
3136
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
3097
3137
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
3098
|
-
], we = L("user",
|
|
3138
|
+
], we = L("user", Ds);
|
|
3099
3139
|
/**
|
|
3100
3140
|
* @license lucide-react v0.544.0 - ISC
|
|
3101
3141
|
*
|
|
@@ -3150,7 +3190,7 @@ const Ns = [
|
|
|
3150
3190
|
}, M = () => {
|
|
3151
3191
|
const F = {};
|
|
3152
3192
|
return w.name.trim() || (F.name = "Name is required"), w.email.trim() ? /\S+@\S+\.\S+/.test(w.email) || (F.email = "Invalid email address") : F.email = "Email is required", w.password ? w.password.length < 6 && (F.password = "Password must be at least 6 characters") : F.password = "Password is required", q(F), Object.keys(F).length === 0;
|
|
3153
|
-
},
|
|
3193
|
+
}, J = async (F) => {
|
|
3154
3194
|
if (F.preventDefault(), !!M()) {
|
|
3155
3195
|
A(!0), b(null);
|
|
3156
3196
|
try {
|
|
@@ -3299,7 +3339,7 @@ const Ns = [
|
|
|
3299
3339
|
/* @__PURE__ */ r.jsxs(
|
|
3300
3340
|
"form",
|
|
3301
3341
|
{
|
|
3302
|
-
onSubmit:
|
|
3342
|
+
onSubmit: J,
|
|
3303
3343
|
style: { display: "flex", flexDirection: "column", gap: "14px" },
|
|
3304
3344
|
children: [
|
|
3305
3345
|
f && d && d.length === 2 && /* @__PURE__ */ r.jsxs(
|
|
@@ -3761,20 +3801,20 @@ const Ns = [
|
|
|
3761
3801
|
return m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m);
|
|
3762
3802
|
}
|
|
3763
3803
|
}, []);
|
|
3764
|
-
const
|
|
3804
|
+
const J = async (m) => {
|
|
3765
3805
|
m.preventDefault(), C(!0), A(null);
|
|
3766
3806
|
try {
|
|
3767
|
-
const S = await x.loginUser({ email: N, password: j }), { user:
|
|
3768
|
-
if (
|
|
3807
|
+
const S = await x.loginUser({ email: N, password: j }), { user: D } = S;
|
|
3808
|
+
if (!D)
|
|
3769
3809
|
throw new Error(S.message || "Login failed");
|
|
3770
3810
|
if (typeof document < "u") {
|
|
3771
3811
|
const ne = "a_s_b", oe = "true", B = /* @__PURE__ */ new Date();
|
|
3772
3812
|
B.setTime(B.getTime() + 1440 * 60 * 1e3), document.cookie = `${ne}=${oe}; path=/; expires=${B.toUTCString()}; SameSite=Lax`;
|
|
3773
3813
|
}
|
|
3774
|
-
A({ type: "success", text: `Welcome ${
|
|
3814
|
+
A({ type: "success", text: `Welcome ${D.name}` }), d?.(D);
|
|
3775
3815
|
} catch (S) {
|
|
3776
|
-
const
|
|
3777
|
-
A({ type: "error", text:
|
|
3816
|
+
const D = S.message || "Login failed";
|
|
3817
|
+
A({ type: "error", text: D }), f?.(S);
|
|
3778
3818
|
} finally {
|
|
3779
3819
|
C(!1);
|
|
3780
3820
|
}
|
|
@@ -3916,7 +3956,7 @@ const Ns = [
|
|
|
3916
3956
|
y === "login" && /* @__PURE__ */ r.jsxs(
|
|
3917
3957
|
"form",
|
|
3918
3958
|
{
|
|
3919
|
-
onSubmit:
|
|
3959
|
+
onSubmit: J,
|
|
3920
3960
|
style: { display: "flex", flexDirection: "column", gap: "14px" },
|
|
3921
3961
|
children: [
|
|
3922
3962
|
/* @__PURE__ */ r.jsxs(
|
|
@@ -4423,7 +4463,7 @@ const Ns = [
|
|
|
4423
4463
|
color: "white",
|
|
4424
4464
|
flexShrink: 0
|
|
4425
4465
|
},
|
|
4426
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4466
|
+
children: /* @__PURE__ */ r.jsx(De, { size: 20 })
|
|
4427
4467
|
}
|
|
4428
4468
|
),
|
|
4429
4469
|
/* @__PURE__ */ r.jsx("div", { children: /* @__PURE__ */ r.jsx(
|
|
@@ -4526,7 +4566,7 @@ const Ns = [
|
|
|
4526
4566
|
text: "All your data will be permanently deleted"
|
|
4527
4567
|
},
|
|
4528
4568
|
{
|
|
4529
|
-
icon: /* @__PURE__ */ r.jsx(
|
|
4569
|
+
icon: /* @__PURE__ */ r.jsx($s, { size: 16 }),
|
|
4530
4570
|
text: "This action cannot be reversed"
|
|
4531
4571
|
},
|
|
4532
4572
|
{
|
|
@@ -4622,7 +4662,7 @@ const Ns = [
|
|
|
4622
4662
|
g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)";
|
|
4623
4663
|
},
|
|
4624
4664
|
children: [
|
|
4625
|
-
/* @__PURE__ */ r.jsx(
|
|
4665
|
+
/* @__PURE__ */ r.jsx(De, { size: 16 }),
|
|
4626
4666
|
"Continue to Delete"
|
|
4627
4667
|
]
|
|
4628
4668
|
}
|
|
@@ -4736,7 +4776,7 @@ const Ns = [
|
|
|
4736
4776
|
fontWeight: 500
|
|
4737
4777
|
},
|
|
4738
4778
|
children: [
|
|
4739
|
-
/* @__PURE__ */ r.jsx(
|
|
4779
|
+
/* @__PURE__ */ r.jsx(Ke, { size: 16 }),
|
|
4740
4780
|
/* @__PURE__ */ r.jsx("span", { children: "Confirmation accepted" })
|
|
4741
4781
|
]
|
|
4742
4782
|
}
|
|
@@ -4812,7 +4852,7 @@ const Ns = [
|
|
|
4812
4852
|
h && !c && (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
|
|
4813
4853
|
},
|
|
4814
4854
|
children: [
|
|
4815
|
-
/* @__PURE__ */ r.jsx(
|
|
4855
|
+
/* @__PURE__ */ r.jsx(De, { size: 16 }),
|
|
4816
4856
|
"Yes, Delete My Account"
|
|
4817
4857
|
]
|
|
4818
4858
|
}
|
|
@@ -4995,7 +5035,7 @@ const Ns = [
|
|
|
4995
5035
|
color: "white",
|
|
4996
5036
|
flexShrink: 0
|
|
4997
5037
|
},
|
|
4998
|
-
children: /* @__PURE__ */ r.jsx(
|
|
5038
|
+
children: /* @__PURE__ */ r.jsx(Ke, { size: 20 })
|
|
4999
5039
|
}
|
|
5000
5040
|
),
|
|
5001
5041
|
/* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
|
|
@@ -5041,7 +5081,7 @@ const Ns = [
|
|
|
5041
5081
|
},
|
|
5042
5082
|
children: [
|
|
5043
5083
|
/* @__PURE__ */ r.jsx(
|
|
5044
|
-
|
|
5084
|
+
Ke,
|
|
5045
5085
|
{
|
|
5046
5086
|
size: 48,
|
|
5047
5087
|
style: {
|
|
@@ -6402,7 +6442,7 @@ const Ns = [
|
|
|
6402
6442
|
onVerify: s,
|
|
6403
6443
|
primaryColor: i = "#00C212"
|
|
6404
6444
|
}) => {
|
|
6405
|
-
const a = me(), [o, c] = P(null), [d, f] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M,
|
|
6445
|
+
const a = me(), [o, c] = P(null), [d, f] = P(), [x, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [A, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
|
|
6406
6446
|
email: "",
|
|
6407
6447
|
otp: ""
|
|
6408
6448
|
}), [H, F] = P(!1), [Y, l] = P(!1);
|
|
@@ -6412,8 +6452,8 @@ const Ns = [
|
|
|
6412
6452
|
return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
|
6413
6453
|
}
|
|
6414
6454
|
}, []);
|
|
6415
|
-
const m = (v,
|
|
6416
|
-
G({ type: v, message:
|
|
6455
|
+
const m = (v, _) => {
|
|
6456
|
+
G({ type: v, message: _ }), setTimeout(() => G(null), 3e3);
|
|
6417
6457
|
}, S = () => {
|
|
6418
6458
|
W(!0);
|
|
6419
6459
|
const v = setTimeout(() => {
|
|
@@ -6422,15 +6462,15 @@ const Ns = [
|
|
|
6422
6462
|
return () => clearTimeout(v);
|
|
6423
6463
|
};
|
|
6424
6464
|
ee(() => {
|
|
6425
|
-
const v = (
|
|
6465
|
+
const v = (_) => {
|
|
6426
6466
|
const V = document.querySelector(".dropdown-container");
|
|
6427
|
-
V && !V.contains(
|
|
6467
|
+
V && !V.contains(_.target) && S();
|
|
6428
6468
|
};
|
|
6429
6469
|
return q && document.addEventListener("mousedown", v), () => {
|
|
6430
6470
|
document.removeEventListener("mousedown", v);
|
|
6431
6471
|
};
|
|
6432
6472
|
}, [q]);
|
|
6433
|
-
const
|
|
6473
|
+
const D = async () => {
|
|
6434
6474
|
if (!M.email || !/\S+@\S+\.\S+/.test(M.email)) {
|
|
6435
6475
|
m("error", "Please enter a valid email");
|
|
6436
6476
|
return;
|
|
@@ -6444,11 +6484,11 @@ const Ns = [
|
|
|
6444
6484
|
const v = await a.requestEmailVerificationOTP({
|
|
6445
6485
|
userId: d.id,
|
|
6446
6486
|
email: M.email
|
|
6447
|
-
}),
|
|
6448
|
-
|
|
6487
|
+
}), _ = v?.data?.success ?? v?.success, V = v?.data?.message ?? v?.message;
|
|
6488
|
+
_ ? (m("success", V || "OTP sent to email!"), F(!0)) : m("error", V || "Failed to send OTP");
|
|
6449
6489
|
} catch (v) {
|
|
6450
|
-
const
|
|
6451
|
-
m("error",
|
|
6490
|
+
const _ = v?.response?.data?.message || v?.message || "Server error";
|
|
6491
|
+
m("error", _);
|
|
6452
6492
|
} finally {
|
|
6453
6493
|
l(!1);
|
|
6454
6494
|
}
|
|
@@ -6463,18 +6503,18 @@ const Ns = [
|
|
|
6463
6503
|
}
|
|
6464
6504
|
try {
|
|
6465
6505
|
l(!0);
|
|
6466
|
-
const
|
|
6506
|
+
const _ = await a.verifyEmail({
|
|
6467
6507
|
email: M.email,
|
|
6468
6508
|
otp: M.otp
|
|
6469
|
-
}), V =
|
|
6509
|
+
}), V = _?.data?.success ?? _?.success, Z = _?.data?.message ?? _?.message;
|
|
6470
6510
|
if (V) {
|
|
6471
6511
|
m("success", Z || "Email verified!");
|
|
6472
6512
|
const de = { ...d, isVerified: !0 };
|
|
6473
|
-
f(de), typeof s == "function" && s(de),
|
|
6513
|
+
f(de), typeof s == "function" && s(de), J({ email: de.email, otp: "" }), F(!1), j?.(!1);
|
|
6474
6514
|
} else
|
|
6475
6515
|
m("error", Z || "Verification failed");
|
|
6476
|
-
} catch (
|
|
6477
|
-
const V =
|
|
6516
|
+
} catch (_) {
|
|
6517
|
+
const V = _?.response?.data?.message || _?.message || "Something went wrong";
|
|
6478
6518
|
m("error", V);
|
|
6479
6519
|
} finally {
|
|
6480
6520
|
l(!1);
|
|
@@ -6482,37 +6522,37 @@ const Ns = [
|
|
|
6482
6522
|
}, oe = async (v) => {
|
|
6483
6523
|
if (!d) return !1;
|
|
6484
6524
|
try {
|
|
6485
|
-
const
|
|
6525
|
+
const _ = await a.updateUser({
|
|
6486
6526
|
userId: d.id,
|
|
6487
6527
|
avatarUrl: v
|
|
6488
6528
|
});
|
|
6489
|
-
if (
|
|
6529
|
+
if (_?.success) {
|
|
6490
6530
|
const V = {
|
|
6491
6531
|
...d,
|
|
6492
6532
|
// 🔒 keep existing auth fields
|
|
6493
|
-
...
|
|
6533
|
+
..._.user,
|
|
6494
6534
|
// 🔁 merge backend response if present
|
|
6495
6535
|
avatarUrl: v
|
|
6496
6536
|
};
|
|
6497
6537
|
return f(V), m("success", "Avatar updated successfully!"), !0;
|
|
6498
6538
|
}
|
|
6499
|
-
return m("error",
|
|
6500
|
-
} catch (
|
|
6501
|
-
return console.error("Avatar update error:",
|
|
6539
|
+
return m("error", _?.message || "Failed to update avatar"), !1;
|
|
6540
|
+
} catch (_) {
|
|
6541
|
+
return console.error("Avatar update error:", _), m("error", "Failed to update avatar"), !1;
|
|
6502
6542
|
}
|
|
6503
6543
|
}, B = async () => {
|
|
6504
6544
|
if (d) {
|
|
6505
6545
|
w(!0);
|
|
6506
6546
|
try {
|
|
6507
|
-
const v = d.email,
|
|
6547
|
+
const v = d.email, _ = await a.updateUser({
|
|
6508
6548
|
userId: d.id,
|
|
6509
6549
|
...d
|
|
6510
6550
|
});
|
|
6511
|
-
if (
|
|
6512
|
-
const V =
|
|
6551
|
+
if (_.success && _.user) {
|
|
6552
|
+
const V = _.user.email !== v, Z = {
|
|
6513
6553
|
...d,
|
|
6514
6554
|
// keep old state
|
|
6515
|
-
...
|
|
6555
|
+
..._.user,
|
|
6516
6556
|
// overwrite updated fields
|
|
6517
6557
|
isVerified: V ? !1 : d.isVerified
|
|
6518
6558
|
};
|
|
@@ -6521,7 +6561,7 @@ const Ns = [
|
|
|
6521
6561
|
V ? "Email updated. Please verify your new email." : "Profile updated successfully"
|
|
6522
6562
|
), E(!1);
|
|
6523
6563
|
} else
|
|
6524
|
-
m("error",
|
|
6564
|
+
m("error", _.message || "Update failed");
|
|
6525
6565
|
} catch (v) {
|
|
6526
6566
|
console.error(v), m("error", "Update failed");
|
|
6527
6567
|
} finally {
|
|
@@ -6530,19 +6570,19 @@ const Ns = [
|
|
|
6530
6570
|
}
|
|
6531
6571
|
}, le = async (v) => {
|
|
6532
6572
|
try {
|
|
6533
|
-
const
|
|
6534
|
-
|
|
6535
|
-
} catch (
|
|
6536
|
-
console.error("⚠️ User validation request failed:",
|
|
6573
|
+
const _ = await a.checkIfUserExists(v);
|
|
6574
|
+
_?.success === !0 && _?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), f(null));
|
|
6575
|
+
} catch (_) {
|
|
6576
|
+
console.error("⚠️ User validation request failed:", _);
|
|
6537
6577
|
}
|
|
6538
6578
|
};
|
|
6539
6579
|
ee(() => {
|
|
6540
6580
|
(async () => {
|
|
6541
6581
|
try {
|
|
6542
6582
|
y(!0);
|
|
6543
|
-
const
|
|
6544
|
-
if (
|
|
6545
|
-
const V =
|
|
6583
|
+
const _ = await a.checkUserSession();
|
|
6584
|
+
if (_.user?.id) {
|
|
6585
|
+
const V = _.user.id, Z = await a.getUserProfile({ userId: V });
|
|
6546
6586
|
if (Z.user) {
|
|
6547
6587
|
const de = Z.user;
|
|
6548
6588
|
f(de), le(V);
|
|
@@ -6550,19 +6590,19 @@ const Ns = [
|
|
|
6550
6590
|
f(null), localStorage.removeItem("userInfo");
|
|
6551
6591
|
} else
|
|
6552
6592
|
f(null), localStorage.removeItem("userInfo");
|
|
6553
|
-
} catch (
|
|
6554
|
-
console.error("User init failed:",
|
|
6593
|
+
} catch (_) {
|
|
6594
|
+
console.error("User init failed:", _), f(null), localStorage.removeItem("userInfo");
|
|
6555
6595
|
} finally {
|
|
6556
6596
|
y(!1);
|
|
6557
6597
|
}
|
|
6558
6598
|
})();
|
|
6559
6599
|
}, []), ee(() => {
|
|
6560
|
-
d?.email &&
|
|
6600
|
+
d?.email && J((v) => ({ ...v, email: d.email }));
|
|
6561
6601
|
}, [d?.email]);
|
|
6562
|
-
const ge = (v,
|
|
6563
|
-
let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) +
|
|
6602
|
+
const ge = (v, _) => {
|
|
6603
|
+
let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
|
|
6564
6604
|
return Z = Math.min(255, Math.max(0, Z)), de = Math.min(255, Math.max(0, de)), Be = Math.min(255, Math.max(0, Be)), `#${(Be | de << 8 | Z << 16).toString(16).padStart(6, "0")}`;
|
|
6565
|
-
},
|
|
6605
|
+
}, U = t ? {
|
|
6566
6606
|
background: "#000000",
|
|
6567
6607
|
surface: "#09090b",
|
|
6568
6608
|
surfaceLight: "#27272a",
|
|
@@ -6601,7 +6641,7 @@ const Ns = [
|
|
|
6601
6641
|
display: "flex",
|
|
6602
6642
|
alignItems: "center",
|
|
6603
6643
|
justifyContent: "center",
|
|
6604
|
-
color:
|
|
6644
|
+
color: U.textPrimary,
|
|
6605
6645
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
|
|
6606
6646
|
},
|
|
6607
6647
|
children: /* @__PURE__ */ r.jsxs(
|
|
@@ -6619,12 +6659,12 @@ const Ns = [
|
|
|
6619
6659
|
se,
|
|
6620
6660
|
{
|
|
6621
6661
|
size: 40,
|
|
6622
|
-
color:
|
|
6662
|
+
color: U.accent,
|
|
6623
6663
|
style: { animation: "spin 1s linear infinite" },
|
|
6624
6664
|
"aria-hidden": "true"
|
|
6625
6665
|
}
|
|
6626
6666
|
),
|
|
6627
|
-
/* @__PURE__ */ r.jsx("p", { style: { color:
|
|
6667
|
+
/* @__PURE__ */ r.jsx("p", { style: { color: U.textTertiary, margin: 0 }, children: "Loading your profile..." })
|
|
6628
6668
|
]
|
|
6629
6669
|
}
|
|
6630
6670
|
)
|
|
@@ -6640,7 +6680,7 @@ const Ns = [
|
|
|
6640
6680
|
display: "flex",
|
|
6641
6681
|
alignItems: "center",
|
|
6642
6682
|
justifyContent: "center",
|
|
6643
|
-
color:
|
|
6683
|
+
color: U.textPrimary,
|
|
6644
6684
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
|
|
6645
6685
|
},
|
|
6646
6686
|
children: /* @__PURE__ */ r.jsxs(
|
|
@@ -6654,8 +6694,8 @@ const Ns = [
|
|
|
6654
6694
|
textAlign: "center"
|
|
6655
6695
|
},
|
|
6656
6696
|
children: [
|
|
6657
|
-
/* @__PURE__ */ r.jsx(ie, { size: 40, color:
|
|
6658
|
-
/* @__PURE__ */ r.jsx("p", { style: { color:
|
|
6697
|
+
/* @__PURE__ */ r.jsx(ie, { size: 40, color: U.error, "aria-hidden": "true" }),
|
|
6698
|
+
/* @__PURE__ */ r.jsx("p", { style: { color: U.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
|
|
6659
6699
|
]
|
|
6660
6700
|
}
|
|
6661
6701
|
)
|
|
@@ -6699,7 +6739,7 @@ const Ns = [
|
|
|
6699
6739
|
display: "flex",
|
|
6700
6740
|
alignItems: "center",
|
|
6701
6741
|
justifyContent: "center",
|
|
6702
|
-
color:
|
|
6742
|
+
color: U.textPrimary,
|
|
6703
6743
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
6704
6744
|
lineHeight: 1.5,
|
|
6705
6745
|
minHeight: "80vh"
|
|
@@ -6785,7 +6825,7 @@ const Ns = [
|
|
|
6785
6825
|
"section",
|
|
6786
6826
|
{
|
|
6787
6827
|
style: {
|
|
6788
|
-
backgroundColor:
|
|
6828
|
+
backgroundColor: U.surface,
|
|
6789
6829
|
borderRadius: "16px",
|
|
6790
6830
|
position: "relative",
|
|
6791
6831
|
padding: "24px",
|
|
@@ -6839,7 +6879,7 @@ const Ns = [
|
|
|
6839
6879
|
borderRadius: "50%",
|
|
6840
6880
|
objectFit: "cover",
|
|
6841
6881
|
boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
|
|
6842
|
-
border: `3px solid ${
|
|
6882
|
+
border: `3px solid ${U.border}`
|
|
6843
6883
|
},
|
|
6844
6884
|
width: 128,
|
|
6845
6885
|
height: 128,
|
|
@@ -6854,7 +6894,7 @@ const Ns = [
|
|
|
6854
6894
|
position: "absolute",
|
|
6855
6895
|
bottom: "8px",
|
|
6856
6896
|
right: "8px",
|
|
6857
|
-
backgroundColor:
|
|
6897
|
+
backgroundColor: U.accent,
|
|
6858
6898
|
color: "white",
|
|
6859
6899
|
padding: "8px",
|
|
6860
6900
|
borderRadius: "50%",
|
|
@@ -6881,7 +6921,7 @@ const Ns = [
|
|
|
6881
6921
|
fontSize: "24px",
|
|
6882
6922
|
fontWeight: 600,
|
|
6883
6923
|
margin: "0 0 4px 0",
|
|
6884
|
-
color:
|
|
6924
|
+
color: U.textPrimary
|
|
6885
6925
|
},
|
|
6886
6926
|
children: d.name
|
|
6887
6927
|
}
|
|
@@ -6890,7 +6930,7 @@ const Ns = [
|
|
|
6890
6930
|
"p",
|
|
6891
6931
|
{
|
|
6892
6932
|
style: {
|
|
6893
|
-
color:
|
|
6933
|
+
color: U.textTertiary,
|
|
6894
6934
|
margin: "0 0 8px 0"
|
|
6895
6935
|
},
|
|
6896
6936
|
children: d.email
|
|
@@ -6901,7 +6941,7 @@ const Ns = [
|
|
|
6901
6941
|
{
|
|
6902
6942
|
style: {
|
|
6903
6943
|
backgroundColor: d.isVerified ? t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
|
|
6904
|
-
color: d.isVerified ?
|
|
6944
|
+
color: d.isVerified ? U.success : U.warning,
|
|
6905
6945
|
border: `1px solid ${d.isVerified ? t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
|
|
6906
6946
|
padding: "6px 12px",
|
|
6907
6947
|
borderRadius: "20px",
|
|
@@ -6935,9 +6975,9 @@ const Ns = [
|
|
|
6935
6975
|
{
|
|
6936
6976
|
onClick: () => E(!1),
|
|
6937
6977
|
style: {
|
|
6938
|
-
backgroundColor:
|
|
6939
|
-
border: `1px solid ${
|
|
6940
|
-
color:
|
|
6978
|
+
backgroundColor: U.surfaceLight,
|
|
6979
|
+
border: `1px solid ${U.border}`,
|
|
6980
|
+
color: U.textPrimary,
|
|
6941
6981
|
padding: "10px 20px",
|
|
6942
6982
|
borderRadius: "6px",
|
|
6943
6983
|
borderStyle: "solid",
|
|
@@ -6965,7 +7005,7 @@ const Ns = [
|
|
|
6965
7005
|
onClick: B,
|
|
6966
7006
|
disabled: u,
|
|
6967
7007
|
style: {
|
|
6968
|
-
background: `linear-gradient(to right, ${
|
|
7008
|
+
background: `linear-gradient(to right, ${U.accent}, ${U.accentHover})`,
|
|
6969
7009
|
opacity: u ? 0.7 : 1,
|
|
6970
7010
|
color: "white",
|
|
6971
7011
|
padding: "10px 20px",
|
|
@@ -7002,7 +7042,7 @@ const Ns = [
|
|
|
7002
7042
|
{
|
|
7003
7043
|
onClick: () => E(!0),
|
|
7004
7044
|
style: {
|
|
7005
|
-
background: `linear-gradient(to right, ${
|
|
7045
|
+
background: `linear-gradient(to right, ${U.accent}, ${U.accentHover})`,
|
|
7006
7046
|
color: "white",
|
|
7007
7047
|
padding: "10px 20px",
|
|
7008
7048
|
borderRadius: "6px",
|
|
@@ -7067,8 +7107,8 @@ const Ns = [
|
|
|
7067
7107
|
"button",
|
|
7068
7108
|
{
|
|
7069
7109
|
style: {
|
|
7070
|
-
backgroundColor:
|
|
7071
|
-
color:
|
|
7110
|
+
backgroundColor: U.surfaceLight,
|
|
7111
|
+
color: U.textPrimary,
|
|
7072
7112
|
padding: "10px 20px",
|
|
7073
7113
|
borderRadius: "6px",
|
|
7074
7114
|
border: "none",
|
|
@@ -7101,8 +7141,8 @@ const Ns = [
|
|
|
7101
7141
|
bottom: "100%",
|
|
7102
7142
|
left: 0,
|
|
7103
7143
|
right: 0,
|
|
7104
|
-
backgroundColor:
|
|
7105
|
-
border: `1px solid ${
|
|
7144
|
+
backgroundColor: U.surface,
|
|
7145
|
+
border: `1px solid ${U.border}`,
|
|
7106
7146
|
borderRadius: "12px 12px 0 0",
|
|
7107
7147
|
boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
|
|
7108
7148
|
zIndex: 200,
|
|
@@ -7122,7 +7162,7 @@ const Ns = [
|
|
|
7122
7162
|
padding: "14px 18px",
|
|
7123
7163
|
backgroundColor: "transparent",
|
|
7124
7164
|
border: "none",
|
|
7125
|
-
color:
|
|
7165
|
+
color: U.textPrimary,
|
|
7126
7166
|
cursor: "pointer",
|
|
7127
7167
|
transition: "all 0.2s ease",
|
|
7128
7168
|
fontSize: "13px",
|
|
@@ -7132,7 +7172,7 @@ const Ns = [
|
|
|
7132
7172
|
gap: "8px",
|
|
7133
7173
|
textAlign: "left"
|
|
7134
7174
|
},
|
|
7135
|
-
onMouseEnter: (v) => v.currentTarget.style.backgroundColor =
|
|
7175
|
+
onMouseEnter: (v) => v.currentTarget.style.backgroundColor = U.surfaceLight,
|
|
7136
7176
|
onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
|
|
7137
7177
|
children: [
|
|
7138
7178
|
/* @__PURE__ */ r.jsx(ot, { size: 14, "aria-hidden": "true" }),
|
|
@@ -7197,7 +7237,7 @@ const Ns = [
|
|
|
7197
7237
|
},
|
|
7198
7238
|
onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
|
|
7199
7239
|
children: [
|
|
7200
|
-
/* @__PURE__ */ r.jsx(
|
|
7240
|
+
/* @__PURE__ */ r.jsx(De, { size: 14, "aria-hidden": "true" }),
|
|
7201
7241
|
"Delete Account"
|
|
7202
7242
|
]
|
|
7203
7243
|
}
|
|
@@ -7226,7 +7266,7 @@ const Ns = [
|
|
|
7226
7266
|
"section",
|
|
7227
7267
|
{
|
|
7228
7268
|
style: {
|
|
7229
|
-
backgroundColor:
|
|
7269
|
+
backgroundColor: U.surface,
|
|
7230
7270
|
borderRadius: "16px",
|
|
7231
7271
|
padding: "24px",
|
|
7232
7272
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
@@ -7239,7 +7279,7 @@ const Ns = [
|
|
|
7239
7279
|
fontSize: "20px",
|
|
7240
7280
|
fontWeight: 600,
|
|
7241
7281
|
margin: "0 0 24px 0",
|
|
7242
|
-
color:
|
|
7282
|
+
color: U.textSecondary,
|
|
7243
7283
|
display: "flex",
|
|
7244
7284
|
alignItems: "center",
|
|
7245
7285
|
gap: "8px"
|
|
@@ -7263,7 +7303,7 @@ const Ns = [
|
|
|
7263
7303
|
}
|
|
7264
7304
|
},
|
|
7265
7305
|
children: lr.map((v) => {
|
|
7266
|
-
const
|
|
7306
|
+
const _ = v.icon;
|
|
7267
7307
|
return /* @__PURE__ */ r.jsxs(
|
|
7268
7308
|
"div",
|
|
7269
7309
|
{
|
|
@@ -7277,7 +7317,7 @@ const Ns = [
|
|
|
7277
7317
|
"label",
|
|
7278
7318
|
{
|
|
7279
7319
|
style: {
|
|
7280
|
-
color:
|
|
7320
|
+
color: U.textTertiary,
|
|
7281
7321
|
fontSize: "12px",
|
|
7282
7322
|
fontWeight: 500,
|
|
7283
7323
|
display: "flex",
|
|
@@ -7285,7 +7325,7 @@ const Ns = [
|
|
|
7285
7325
|
gap: "8px"
|
|
7286
7326
|
},
|
|
7287
7327
|
children: [
|
|
7288
|
-
/* @__PURE__ */ r.jsx(
|
|
7328
|
+
/* @__PURE__ */ r.jsx(_, { size: 16, "aria-hidden": "true" }),
|
|
7289
7329
|
v.label
|
|
7290
7330
|
]
|
|
7291
7331
|
}
|
|
@@ -7304,7 +7344,7 @@ const Ns = [
|
|
|
7304
7344
|
borderRadius: "8px",
|
|
7305
7345
|
border: `1px solid ${i}`,
|
|
7306
7346
|
backgroundColor: "transparent",
|
|
7307
|
-
color:
|
|
7347
|
+
color: U.textPrimary,
|
|
7308
7348
|
fontSize: "12px",
|
|
7309
7349
|
outline: "none",
|
|
7310
7350
|
transition: "border-color 0.2s ease",
|
|
@@ -7327,7 +7367,7 @@ const Ns = [
|
|
|
7327
7367
|
display: "flex",
|
|
7328
7368
|
alignItems: "center",
|
|
7329
7369
|
boxSizing: "border-box",
|
|
7330
|
-
color:
|
|
7370
|
+
color: U.textPrimary,
|
|
7331
7371
|
backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
|
|
7332
7372
|
},
|
|
7333
7373
|
children: v.value
|
|
@@ -7347,7 +7387,7 @@ const Ns = [
|
|
|
7347
7387
|
"section",
|
|
7348
7388
|
{
|
|
7349
7389
|
style: {
|
|
7350
|
-
backgroundColor:
|
|
7390
|
+
backgroundColor: U.surface,
|
|
7351
7391
|
borderRadius: "16px",
|
|
7352
7392
|
padding: "30px 24px",
|
|
7353
7393
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
@@ -7360,7 +7400,7 @@ const Ns = [
|
|
|
7360
7400
|
fontSize: "20px",
|
|
7361
7401
|
fontWeight: 600,
|
|
7362
7402
|
margin: "0 0 24px 0",
|
|
7363
|
-
color:
|
|
7403
|
+
color: U.textSecondary,
|
|
7364
7404
|
display: "flex",
|
|
7365
7405
|
alignItems: "center",
|
|
7366
7406
|
gap: "8px"
|
|
@@ -7397,7 +7437,7 @@ const Ns = [
|
|
|
7397
7437
|
display: "flex",
|
|
7398
7438
|
alignItems: "center",
|
|
7399
7439
|
gap: "12px",
|
|
7400
|
-
color:
|
|
7440
|
+
color: U.textSecondary
|
|
7401
7441
|
},
|
|
7402
7442
|
children: [
|
|
7403
7443
|
/* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7418,11 +7458,11 @@ const Ns = [
|
|
|
7418
7458
|
gap: "6px",
|
|
7419
7459
|
...d.isVerified ? {
|
|
7420
7460
|
backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
|
|
7421
|
-
color:
|
|
7461
|
+
color: U.success,
|
|
7422
7462
|
border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
|
|
7423
7463
|
} : {
|
|
7424
7464
|
backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
|
|
7425
|
-
color:
|
|
7465
|
+
color: U.warning,
|
|
7426
7466
|
border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
|
|
7427
7467
|
}
|
|
7428
7468
|
},
|
|
@@ -7450,7 +7490,7 @@ const Ns = [
|
|
|
7450
7490
|
"p",
|
|
7451
7491
|
{
|
|
7452
7492
|
style: {
|
|
7453
|
-
color:
|
|
7493
|
+
color: U.textTertiary,
|
|
7454
7494
|
fontSize: "12px",
|
|
7455
7495
|
margin: 0
|
|
7456
7496
|
},
|
|
@@ -7481,7 +7521,7 @@ const Ns = [
|
|
|
7481
7521
|
I(!1);
|
|
7482
7522
|
},
|
|
7483
7523
|
onUpdate: oe,
|
|
7484
|
-
colors:
|
|
7524
|
+
colors: U
|
|
7485
7525
|
}
|
|
7486
7526
|
),
|
|
7487
7527
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7492,7 +7532,7 @@ const Ns = [
|
|
|
7492
7532
|
onClose: () => g(!1),
|
|
7493
7533
|
onSuccess: (v) => m("success", v),
|
|
7494
7534
|
onError: (v) => m("error", v),
|
|
7495
|
-
colors:
|
|
7535
|
+
colors: U
|
|
7496
7536
|
}
|
|
7497
7537
|
),
|
|
7498
7538
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7503,7 +7543,7 @@ const Ns = [
|
|
|
7503
7543
|
onClose: () => N(!1),
|
|
7504
7544
|
onSuccess: (v) => m("success", v),
|
|
7505
7545
|
onError: (v) => m("error", v),
|
|
7506
|
-
colors:
|
|
7546
|
+
colors: U
|
|
7507
7547
|
}
|
|
7508
7548
|
),
|
|
7509
7549
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7511,16 +7551,16 @@ const Ns = [
|
|
|
7511
7551
|
{
|
|
7512
7552
|
isOpen: b,
|
|
7513
7553
|
onClose: () => {
|
|
7514
|
-
j(!1), F(!1),
|
|
7554
|
+
j(!1), F(!1), J({ email: d?.email || "", otp: "" });
|
|
7515
7555
|
},
|
|
7516
7556
|
onVerify: ne,
|
|
7517
|
-
onSendOTP:
|
|
7557
|
+
onSendOTP: D,
|
|
7518
7558
|
verifyFormData: M,
|
|
7519
|
-
setVerifyFormData:
|
|
7559
|
+
setVerifyFormData: J,
|
|
7520
7560
|
otpSent: H,
|
|
7521
7561
|
verifying: Y,
|
|
7522
7562
|
user: d,
|
|
7523
|
-
colors:
|
|
7563
|
+
colors: U,
|
|
7524
7564
|
darkMode: t
|
|
7525
7565
|
}
|
|
7526
7566
|
),
|
|
@@ -7659,13 +7699,13 @@ const Ns = [
|
|
|
7659
7699
|
g(null);
|
|
7660
7700
|
return;
|
|
7661
7701
|
}
|
|
7662
|
-
const
|
|
7702
|
+
const D = {
|
|
7663
7703
|
id: S.user.id,
|
|
7664
7704
|
email: S.user.email,
|
|
7665
7705
|
name: S.user.email.split("@")[0]
|
|
7666
7706
|
// fallback until backend sends name
|
|
7667
7707
|
};
|
|
7668
|
-
g(
|
|
7708
|
+
g(D);
|
|
7669
7709
|
} catch (S) {
|
|
7670
7710
|
console.error("User initialization failed:", S), l && (g(null), j(S.message || "Failed to load user"));
|
|
7671
7711
|
} finally {
|
|
@@ -7678,8 +7718,8 @@ const Ns = [
|
|
|
7678
7718
|
if (typeof window > "u") return;
|
|
7679
7719
|
const l = () => {
|
|
7680
7720
|
if (!h || !O.current) return;
|
|
7681
|
-
const m = O.current.getBoundingClientRect(), S = window.innerWidth,
|
|
7682
|
-
|
|
7721
|
+
const m = O.current.getBoundingClientRect(), S = window.innerWidth, D = window.innerHeight, ne = 280, oe = S - m.right, B = m.left;
|
|
7722
|
+
D - m.bottom;
|
|
7683
7723
|
const le = oe >= ne || oe > B;
|
|
7684
7724
|
W(le);
|
|
7685
7725
|
};
|
|
@@ -7687,10 +7727,10 @@ const Ns = [
|
|
|
7687
7727
|
}, [h]), ee(() => {
|
|
7688
7728
|
if (typeof window > "u" || typeof document > "u")
|
|
7689
7729
|
return;
|
|
7690
|
-
const l = (
|
|
7691
|
-
q.current && !q.current.contains(
|
|
7692
|
-
}, m = (
|
|
7693
|
-
|
|
7730
|
+
const l = (D) => {
|
|
7731
|
+
q.current && !q.current.contains(D.target) && !O.current?.contains(D.target) && I(!1);
|
|
7732
|
+
}, m = (D) => {
|
|
7733
|
+
D.key === "Escape" && I(!1);
|
|
7694
7734
|
}, S = () => {
|
|
7695
7735
|
h && I(!1);
|
|
7696
7736
|
};
|
|
@@ -7975,7 +8015,7 @@ const Ns = [
|
|
|
7975
8015
|
} finally {
|
|
7976
8016
|
N(!1);
|
|
7977
8017
|
}
|
|
7978
|
-
},
|
|
8018
|
+
}, J = (l, m) => {
|
|
7979
8019
|
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), m());
|
|
7980
8020
|
}, H = () => o || C?.profileUrl, F = () => {
|
|
7981
8021
|
const l = H();
|
|
@@ -7997,7 +8037,7 @@ const Ns = [
|
|
|
7997
8037
|
{
|
|
7998
8038
|
ref: O,
|
|
7999
8039
|
onClick: () => I((l) => !l),
|
|
8000
|
-
onKeyDown: (l) =>
|
|
8040
|
+
onKeyDown: (l) => J(l, () => I((m) => !m)),
|
|
8001
8041
|
tabIndex: 0,
|
|
8002
8042
|
role: "button",
|
|
8003
8043
|
"aria-haspopup": "true",
|
|
@@ -8049,7 +8089,7 @@ const Ns = [
|
|
|
8049
8089
|
ref: O,
|
|
8050
8090
|
style: z.avatarButton,
|
|
8051
8091
|
onClick: () => I((l) => !l),
|
|
8052
|
-
onKeyDown: (l) =>
|
|
8092
|
+
onKeyDown: (l) => J(l, () => I((m) => !m)),
|
|
8053
8093
|
tabIndex: 0,
|
|
8054
8094
|
role: "button",
|
|
8055
8095
|
"aria-haspopup": "true",
|
|
@@ -8166,7 +8206,7 @@ const Ns = [
|
|
|
8166
8206
|
onMouseOut: (l) => {
|
|
8167
8207
|
l.currentTarget.style.backgroundColor = "transparent";
|
|
8168
8208
|
},
|
|
8169
|
-
onKeyDown: (l) =>
|
|
8209
|
+
onKeyDown: (l) => J(l, F),
|
|
8170
8210
|
role: "menuitem",
|
|
8171
8211
|
tabIndex: 0,
|
|
8172
8212
|
children: [
|
|
@@ -8186,7 +8226,7 @@ const Ns = [
|
|
|
8186
8226
|
onMouseOut: (l) => {
|
|
8187
8227
|
l.currentTarget.style.backgroundColor = "transparent";
|
|
8188
8228
|
},
|
|
8189
|
-
onKeyDown: (l) =>
|
|
8229
|
+
onKeyDown: (l) => J(l, Y),
|
|
8190
8230
|
role: "menuitem",
|
|
8191
8231
|
tabIndex: 0,
|
|
8192
8232
|
children: [
|
|
@@ -8228,7 +8268,7 @@ const Ns = [
|
|
|
8228
8268
|
onMouseOut: (l) => {
|
|
8229
8269
|
l.currentTarget.style.backgroundColor = "transparent";
|
|
8230
8270
|
},
|
|
8231
|
-
onKeyDown: (l) =>
|
|
8271
|
+
onKeyDown: (l) => J(l, n),
|
|
8232
8272
|
role: "menuitem",
|
|
8233
8273
|
tabIndex: 0,
|
|
8234
8274
|
children: [
|
|
@@ -8446,7 +8486,7 @@ const Ns = [
|
|
|
8446
8486
|
gap: 8
|
|
8447
8487
|
},
|
|
8448
8488
|
children: [
|
|
8449
|
-
/* @__PURE__ */ r.jsx(
|
|
8489
|
+
/* @__PURE__ */ r.jsx(Jn, { size: 32, color: h.accent }),
|
|
8450
8490
|
/* @__PURE__ */ r.jsx(
|
|
8451
8491
|
"h2",
|
|
8452
8492
|
{
|