@neuctra/authix 1.1.78 → 1.1.79
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 +1087 -1006
- package/dist/neuctra-authix.umd.js +46 -46
- package/dist/react/UserLogin.d.ts.map +1 -1
- package/package.json +8 -4
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import Te, { forwardRef as
|
|
1
|
+
import Te, { forwardRef as $t, createElement as Ze, createContext as xr, useContext as hr, useState as R, useEffect as te, useRef as ht } from "react";
|
|
2
2
|
function Nt(t, e) {
|
|
3
3
|
return function() {
|
|
4
4
|
return t.apply(e, arguments);
|
|
5
5
|
};
|
|
6
6
|
}
|
|
7
|
-
const { toString:
|
|
8
|
-
const r =
|
|
7
|
+
const { toString: mr } = Object.prototype, { getPrototypeOf: ot } = Object, { iterator: Me, toStringTag: Ft } = Symbol, We = /* @__PURE__ */ ((t) => (e) => {
|
|
8
|
+
const r = mr.call(e);
|
|
9
9
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
10
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
10
|
+
})(/* @__PURE__ */ Object.create(null)), oe = (t) => (t = t.toLowerCase(), (e) => We(e) === t), Be = (t) => (e) => typeof e === t, { isArray: we } = Array, ye = Be("undefined");
|
|
11
11
|
function Re(t) {
|
|
12
12
|
return t !== null && !ye(t) && t.constructor !== null && !ye(t.constructor) && re(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
14
|
+
const Lt = oe("ArrayBuffer");
|
|
15
|
+
function gr(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 && Lt(t.buffer), e;
|
|
18
18
|
}
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
19
|
+
const yr = Be("string"), re = Be("function"), qt = Be("number"), Pe = (t) => t !== null && typeof t == "object", br = (t) => t === !0 || t === !1, De = (t) => {
|
|
20
|
+
if (We(t) !== "object")
|
|
21
21
|
return !1;
|
|
22
|
-
const e =
|
|
23
|
-
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(
|
|
24
|
-
},
|
|
22
|
+
const e = ot(t);
|
|
23
|
+
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ft in t) && !(Me in t);
|
|
24
|
+
}, wr = (t) => {
|
|
25
25
|
if (!Pe(t) || Re(t))
|
|
26
26
|
return !1;
|
|
27
27
|
try {
|
|
@@ -29,11 +29,11 @@ const mr = We("string"), re = We("function"), Ft = We("number"), Pe = (t) => t !
|
|
|
29
29
|
} catch {
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
|
-
},
|
|
32
|
+
}, vr = oe("Date"), jr = oe("File"), Sr = oe("Blob"), kr = oe("FileList"), Er = (t) => Pe(t) && re(t.pipe), Cr = (t) => {
|
|
33
33
|
let e;
|
|
34
|
-
return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e =
|
|
34
|
+
return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = We(t)) === "formdata" || // detect form-data instance
|
|
35
35
|
e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
|
|
36
|
-
},
|
|
36
|
+
}, Tr = oe("URLSearchParams"), [Rr, Pr, Ir, Or] = ["ReadableStream", "Request", "Response", "Headers"].map(oe), zr = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
37
37
|
function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
38
38
|
if (t === null || typeof t > "u")
|
|
39
39
|
return;
|
|
@@ -44,13 +44,13 @@ function Ie(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
|
44
44
|
else {
|
|
45
45
|
if (Re(t))
|
|
46
46
|
return;
|
|
47
|
-
const
|
|
47
|
+
const a = r ? Object.getOwnPropertyNames(t) : Object.keys(t), o = a.length;
|
|
48
48
|
let c;
|
|
49
|
-
for (s = 0; s <
|
|
50
|
-
c =
|
|
49
|
+
for (s = 0; s < o; s++)
|
|
50
|
+
c = a[s], e.call(null, t[c], c, t);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Mt(t, e) {
|
|
54
54
|
if (Re(t))
|
|
55
55
|
return null;
|
|
56
56
|
e = e.toLowerCase();
|
|
@@ -61,33 +61,33 @@ function Lt(t, e) {
|
|
|
61
61
|
return i;
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
|
-
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
65
|
-
function
|
|
66
|
-
const { caseless: t, skipUndefined: e } =
|
|
67
|
-
const
|
|
68
|
-
|
|
64
|
+
const fe = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Wt = (t) => !ye(t) && t !== fe;
|
|
65
|
+
function Qe() {
|
|
66
|
+
const { caseless: t, skipUndefined: e } = Wt(this) && this || {}, r = {}, s = (i, a) => {
|
|
67
|
+
const o = t && Mt(r, a) || a;
|
|
68
|
+
De(r[o]) && De(i) ? r[o] = Qe(r[o], i) : De(i) ? r[o] = Qe({}, i) : we(i) ? r[o] = i.slice() : (!e || !ye(i)) && (r[o] = i);
|
|
69
69
|
};
|
|
70
|
-
for (let i = 0,
|
|
70
|
+
for (let i = 0, a = arguments.length; i < a; i++)
|
|
71
71
|
arguments[i] && Ie(arguments[i], s);
|
|
72
72
|
return r;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
r && re(i) ? t[
|
|
76
|
-
}, { allOwnKeys: s }), t),
|
|
74
|
+
const Ar = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, a) => {
|
|
75
|
+
r && re(i) ? t[a] = Nt(i, r) : t[a] = i;
|
|
76
|
+
}, { allOwnKeys: s }), t), _r = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), Ur = (t, e, r, 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
|
}), r && Object.assign(t.prototype, r);
|
|
80
|
-
},
|
|
81
|
-
let i,
|
|
80
|
+
}, Dr = (t, e, r, s) => {
|
|
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
|
-
|
|
87
|
-
t = r !== !1 &&
|
|
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
|
+
t = r !== !1 && ot(t);
|
|
88
88
|
} while (t && (!r || r(t, e)) && t !== Object.prototype);
|
|
89
89
|
return e;
|
|
90
|
-
},
|
|
90
|
+
}, $r = (t, e, r) => {
|
|
91
91
|
t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
|
|
92
92
|
const s = t.indexOf(e, r);
|
|
93
93
|
return s !== -1 && s === r;
|
|
@@ -95,37 +95,37 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
|
|
|
95
95
|
if (!t) return null;
|
|
96
96
|
if (we(t)) return t;
|
|
97
97
|
let e = t.length;
|
|
98
|
-
if (!
|
|
98
|
+
if (!qt(e)) return null;
|
|
99
99
|
const r = new Array(e);
|
|
100
100
|
for (; e-- > 0; )
|
|
101
101
|
r[e] = t[e];
|
|
102
102
|
return r;
|
|
103
|
-
},
|
|
104
|
-
const s = (t && t[
|
|
103
|
+
}, Fr = /* @__PURE__ */ ((t) => (e) => t && e instanceof t)(typeof Uint8Array < "u" && ot(Uint8Array)), Lr = (t, e) => {
|
|
104
|
+
const s = (t && t[Me]).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
|
+
}, qr = (t, e) => {
|
|
111
111
|
let r;
|
|
112
112
|
const s = [];
|
|
113
113
|
for (; (r = t.exec(e)) !== null; )
|
|
114
114
|
s.push(r);
|
|
115
115
|
return s;
|
|
116
|
-
},
|
|
116
|
+
}, Mr = oe("HTMLFormElement"), Wr = (t) => t.toLowerCase().replace(
|
|
117
117
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
118
118
|
function(r, s, i) {
|
|
119
119
|
return s.toUpperCase() + i;
|
|
120
120
|
}
|
|
121
|
-
),
|
|
121
|
+
), mt = (({ hasOwnProperty: t }) => (e, r) => t.call(e, r))(Object.prototype), Br = oe("RegExp"), Bt = (t, e) => {
|
|
122
122
|
const r = Object.getOwnPropertyDescriptors(t), s = {};
|
|
123
|
-
Ie(r, (i,
|
|
124
|
-
let
|
|
125
|
-
(
|
|
123
|
+
Ie(r, (i, a) => {
|
|
124
|
+
let o;
|
|
125
|
+
(o = e(i, a, t)) !== !1 && (s[a] = o || i);
|
|
126
126
|
}), Object.defineProperties(t, s);
|
|
127
|
-
},
|
|
128
|
-
|
|
127
|
+
}, Hr = (t) => {
|
|
128
|
+
Bt(t, (e, r) => {
|
|
129
129
|
if (re(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
|
|
130
130
|
return !1;
|
|
131
131
|
const s = t[r];
|
|
@@ -139,19 +139,19 @@ const Or = (t, e, r, { allOwnKeys: s } = {}) => (Ie(e, (i, o) => {
|
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
});
|
|
142
|
-
},
|
|
142
|
+
}, Vr = (t, e) => {
|
|
143
143
|
const r = {}, s = (i) => {
|
|
144
|
-
i.forEach((
|
|
145
|
-
r[
|
|
144
|
+
i.forEach((a) => {
|
|
145
|
+
r[a] = !0;
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
148
|
return we(t) ? s(t) : s(String(t).split(e)), r;
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
return !!(t && re(t.append) && t[
|
|
149
|
+
}, Yr = () => {
|
|
150
|
+
}, Kr = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
151
|
+
function Jr(t) {
|
|
152
|
+
return !!(t && re(t.append) && t[Ft] === "FormData" && t[Me]);
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Gr = (t) => {
|
|
155
155
|
const e = new Array(10), r = (s, i) => {
|
|
156
156
|
if (Pe(s)) {
|
|
157
157
|
if (e.indexOf(s) >= 0)
|
|
@@ -160,87 +160,87 @@ const Kr = (t) => {
|
|
|
160
160
|
return s;
|
|
161
161
|
if (!("toJSON" in s)) {
|
|
162
162
|
e[i] = s;
|
|
163
|
-
const
|
|
164
|
-
return Ie(s, (
|
|
165
|
-
const h = r(
|
|
166
|
-
!ye(h) && (
|
|
167
|
-
}), e[i] = void 0,
|
|
163
|
+
const a = we(s) ? [] : {};
|
|
164
|
+
return Ie(s, (o, c) => {
|
|
165
|
+
const h = r(o, i + 1);
|
|
166
|
+
!ye(h) && (a[c] = h);
|
|
167
|
+
}), e[i] = void 0, a;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
return s;
|
|
171
171
|
};
|
|
172
172
|
return r(t, 0);
|
|
173
|
-
},
|
|
174
|
-
i === fe &&
|
|
173
|
+
}, Xr = oe("AsyncFunction"), Zr = (t) => t && (Pe(t) || re(t)) && re(t.then) && re(t.catch), Ht = ((t, e) => t ? setImmediate : e ? ((r, s) => (fe.addEventListener("message", ({ source: i, data: a }) => {
|
|
174
|
+
i === fe && a === r && s.length && s.shift()();
|
|
175
175
|
}, !1), (i) => {
|
|
176
176
|
s.push(i), fe.postMessage(r, "*");
|
|
177
177
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
|
|
178
178
|
typeof setImmediate == "function",
|
|
179
179
|
re(fe.postMessage)
|
|
180
|
-
),
|
|
180
|
+
), Qr = typeof queueMicrotask < "u" ? queueMicrotask.bind(fe) : typeof process < "u" && process.nextTick || Ht, en = (t) => t != null && re(t[Me]), f = {
|
|
181
181
|
isArray: we,
|
|
182
|
-
isArrayBuffer:
|
|
182
|
+
isArrayBuffer: Lt,
|
|
183
183
|
isBuffer: Re,
|
|
184
|
-
isFormData:
|
|
185
|
-
isArrayBufferView:
|
|
186
|
-
isString:
|
|
187
|
-
isNumber:
|
|
188
|
-
isBoolean:
|
|
184
|
+
isFormData: Cr,
|
|
185
|
+
isArrayBufferView: gr,
|
|
186
|
+
isString: yr,
|
|
187
|
+
isNumber: qt,
|
|
188
|
+
isBoolean: br,
|
|
189
189
|
isObject: Pe,
|
|
190
|
-
isPlainObject:
|
|
191
|
-
isEmptyObject:
|
|
192
|
-
isReadableStream:
|
|
193
|
-
isRequest:
|
|
194
|
-
isResponse:
|
|
195
|
-
isHeaders:
|
|
190
|
+
isPlainObject: De,
|
|
191
|
+
isEmptyObject: wr,
|
|
192
|
+
isReadableStream: Rr,
|
|
193
|
+
isRequest: Pr,
|
|
194
|
+
isResponse: Ir,
|
|
195
|
+
isHeaders: Or,
|
|
196
196
|
isUndefined: ye,
|
|
197
|
-
isDate:
|
|
198
|
-
isFile:
|
|
199
|
-
isBlob:
|
|
200
|
-
isRegExp:
|
|
197
|
+
isDate: vr,
|
|
198
|
+
isFile: jr,
|
|
199
|
+
isBlob: Sr,
|
|
200
|
+
isRegExp: Br,
|
|
201
201
|
isFunction: re,
|
|
202
|
-
isStream:
|
|
203
|
-
isURLSearchParams:
|
|
204
|
-
isTypedArray:
|
|
205
|
-
isFileList:
|
|
202
|
+
isStream: Er,
|
|
203
|
+
isURLSearchParams: Tr,
|
|
204
|
+
isTypedArray: Fr,
|
|
205
|
+
isFileList: kr,
|
|
206
206
|
forEach: Ie,
|
|
207
|
-
merge:
|
|
208
|
-
extend:
|
|
209
|
-
trim:
|
|
210
|
-
stripBOM:
|
|
211
|
-
inherits:
|
|
212
|
-
toFlatObject:
|
|
213
|
-
kindOf:
|
|
214
|
-
kindOfTest:
|
|
215
|
-
endsWith:
|
|
207
|
+
merge: Qe,
|
|
208
|
+
extend: Ar,
|
|
209
|
+
trim: zr,
|
|
210
|
+
stripBOM: _r,
|
|
211
|
+
inherits: Ur,
|
|
212
|
+
toFlatObject: Dr,
|
|
213
|
+
kindOf: We,
|
|
214
|
+
kindOfTest: oe,
|
|
215
|
+
endsWith: $r,
|
|
216
216
|
toArray: Nr,
|
|
217
|
-
forEachEntry:
|
|
218
|
-
matchAll:
|
|
219
|
-
isHTMLForm:
|
|
220
|
-
hasOwnProperty:
|
|
221
|
-
hasOwnProp:
|
|
217
|
+
forEachEntry: Lr,
|
|
218
|
+
matchAll: qr,
|
|
219
|
+
isHTMLForm: Mr,
|
|
220
|
+
hasOwnProperty: mt,
|
|
221
|
+
hasOwnProp: mt,
|
|
222
222
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
223
|
-
reduceDescriptors:
|
|
224
|
-
freezeMethods:
|
|
225
|
-
toObjectSet:
|
|
226
|
-
toCamelCase:
|
|
227
|
-
noop:
|
|
228
|
-
toFiniteNumber:
|
|
229
|
-
findKey:
|
|
223
|
+
reduceDescriptors: Bt,
|
|
224
|
+
freezeMethods: Hr,
|
|
225
|
+
toObjectSet: Vr,
|
|
226
|
+
toCamelCase: Wr,
|
|
227
|
+
noop: Yr,
|
|
228
|
+
toFiniteNumber: Kr,
|
|
229
|
+
findKey: Mt,
|
|
230
230
|
global: fe,
|
|
231
|
-
isContextDefined:
|
|
232
|
-
isSpecCompliantForm:
|
|
233
|
-
toJSONObject:
|
|
234
|
-
isAsyncFn:
|
|
235
|
-
isThenable:
|
|
236
|
-
setImmediate:
|
|
237
|
-
asap:
|
|
238
|
-
isIterable:
|
|
231
|
+
isContextDefined: Wt,
|
|
232
|
+
isSpecCompliantForm: Jr,
|
|
233
|
+
toJSONObject: Gr,
|
|
234
|
+
isAsyncFn: Xr,
|
|
235
|
+
isThenable: Zr,
|
|
236
|
+
setImmediate: Ht,
|
|
237
|
+
asap: Qr,
|
|
238
|
+
isIterable: en
|
|
239
239
|
};
|
|
240
|
-
function
|
|
240
|
+
function N(t, e, r, 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), r && (this.config = r), s && (this.request = s), i && (this.response = i, this.status = i.status ? i.status : null);
|
|
242
242
|
}
|
|
243
|
-
f.inherits(
|
|
243
|
+
f.inherits(N, Error, {
|
|
244
244
|
toJSON: function() {
|
|
245
245
|
return {
|
|
246
246
|
// Standard
|
|
@@ -261,7 +261,7 @@ f.inherits(D, Error, {
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
});
|
|
264
|
-
const
|
|
264
|
+
const Vt = N.prototype, Yt = {};
|
|
265
265
|
[
|
|
266
266
|
"ERR_BAD_OPTION_VALUE",
|
|
267
267
|
"ERR_BAD_OPTION",
|
|
@@ -277,37 +277,37 @@ const Bt = D.prototype, Ht = {};
|
|
|
277
277
|
"ERR_INVALID_URL"
|
|
278
278
|
// eslint-disable-next-line func-names
|
|
279
279
|
].forEach((t) => {
|
|
280
|
-
|
|
280
|
+
Yt[t] = { value: t };
|
|
281
281
|
});
|
|
282
|
-
Object.defineProperties(
|
|
283
|
-
Object.defineProperty(
|
|
284
|
-
|
|
285
|
-
const
|
|
286
|
-
f.toFlatObject(t,
|
|
282
|
+
Object.defineProperties(N, Yt);
|
|
283
|
+
Object.defineProperty(Vt, "isAxiosError", { value: !0 });
|
|
284
|
+
N.from = (t, e, r, s, i, a) => {
|
|
285
|
+
const o = Object.create(Vt);
|
|
286
|
+
f.toFlatObject(t, o, function(d) {
|
|
287
287
|
return d !== Error.prototype;
|
|
288
288
|
}, (u) => u !== "isAxiosError");
|
|
289
289
|
const c = t && t.message ? t.message : "Error", h = e == null && t ? t.code : e;
|
|
290
|
-
return
|
|
290
|
+
return N.call(o, c, h, r, 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
|
-
const
|
|
293
|
-
function
|
|
292
|
+
const tn = null;
|
|
293
|
+
function et(t) {
|
|
294
294
|
return f.isPlainObject(t) || f.isArray(t);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function Kt(t) {
|
|
297
297
|
return f.endsWith(t, "[]") ? t.slice(0, -2) : t;
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
return t ? t.concat(e).map(function(i,
|
|
301
|
-
return i =
|
|
299
|
+
function gt(t, e, r) {
|
|
300
|
+
return t ? t.concat(e).map(function(i, a) {
|
|
301
|
+
return i = Kt(i), !r && a ? "[" + i + "]" : i;
|
|
302
302
|
}).join(r ? "." : "") : e;
|
|
303
303
|
}
|
|
304
|
-
function
|
|
305
|
-
return f.isArray(t) && !t.some(
|
|
304
|
+
function rn(t) {
|
|
305
|
+
return f.isArray(t) && !t.some(et);
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const nn = f.toFlatObject(f, {}, null, function(e) {
|
|
308
308
|
return /^is[A-Z]/.test(e);
|
|
309
309
|
});
|
|
310
|
-
function
|
|
310
|
+
function He(t, e, r) {
|
|
311
311
|
if (!f.isObject(t))
|
|
312
312
|
throw new TypeError("target must be an object");
|
|
313
313
|
e = e || new FormData(), r = f.toFlatObject(r, {
|
|
@@ -317,7 +317,7 @@ function Be(t, e, r) {
|
|
|
317
317
|
}, !1, function(w, x) {
|
|
318
318
|
return !f.isUndefined(x[w]);
|
|
319
319
|
});
|
|
320
|
-
const s = r.metaTokens, i = r.visitor || d,
|
|
320
|
+
const s = r.metaTokens, i = r.visitor || d, a = r.dots, o = r.indexes, h = (r.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 u(p) {
|
|
@@ -327,7 +327,7 @@ function Be(t, e, r) {
|
|
|
327
327
|
if (f.isBoolean(p))
|
|
328
328
|
return p.toString();
|
|
329
329
|
if (!h && f.isBlob(p))
|
|
330
|
-
throw new
|
|
330
|
+
throw new N("Blob is not supported. Use a Buffer instead.");
|
|
331
331
|
return f.isArrayBuffer(p) || f.isTypedArray(p) ? h && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
|
|
332
332
|
}
|
|
333
333
|
function d(p, w, x) {
|
|
@@ -335,21 +335,21 @@ function Be(t, e, r) {
|
|
|
335
335
|
if (p && !x && typeof p == "object") {
|
|
336
336
|
if (f.endsWith(w, "{}"))
|
|
337
337
|
w = s ? w : w.slice(0, -2), p = JSON.stringify(p);
|
|
338
|
-
else if (f.isArray(p) &&
|
|
339
|
-
return w =
|
|
338
|
+
else if (f.isArray(p) && rn(p) || (f.isFileList(p) || f.endsWith(w, "[]")) && (C = f.toArray(p)))
|
|
339
|
+
return w = Kt(w), C.forEach(function(A, y) {
|
|
340
340
|
!(f.isUndefined(A) || A === null) && e.append(
|
|
341
341
|
// eslint-disable-next-line no-nested-ternary
|
|
342
|
-
|
|
342
|
+
o === !0 ? gt([w], y, a) : o === null ? w : w + "[]",
|
|
343
343
|
u(A)
|
|
344
344
|
);
|
|
345
345
|
}), !1;
|
|
346
346
|
}
|
|
347
|
-
return
|
|
347
|
+
return et(p) ? !0 : (e.append(gt(x, w, a), u(p)), !1);
|
|
348
348
|
}
|
|
349
|
-
const m = [], P = Object.assign(
|
|
349
|
+
const m = [], P = Object.assign(nn, {
|
|
350
350
|
defaultVisitor: d,
|
|
351
351
|
convertValue: u,
|
|
352
|
-
isVisitable:
|
|
352
|
+
isVisitable: et
|
|
353
353
|
});
|
|
354
354
|
function O(p, w) {
|
|
355
355
|
if (!f.isUndefined(p)) {
|
|
@@ -370,7 +370,7 @@ function Be(t, e, r) {
|
|
|
370
370
|
throw new TypeError("data must be an object");
|
|
371
371
|
return O(t), e;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function yt(t) {
|
|
374
374
|
const e = {
|
|
375
375
|
"!": "%21",
|
|
376
376
|
"'": "%27",
|
|
@@ -384,40 +384,40 @@ function mt(t) {
|
|
|
384
384
|
return e[s];
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
this._pairs = [], t &&
|
|
387
|
+
function at(t, e) {
|
|
388
|
+
this._pairs = [], t && He(t, this, e);
|
|
389
389
|
}
|
|
390
|
-
const
|
|
391
|
-
|
|
390
|
+
const Jt = at.prototype;
|
|
391
|
+
Jt.append = function(e, r) {
|
|
392
392
|
this._pairs.push([e, r]);
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
Jt.toString = function(e) {
|
|
395
395
|
const r = e ? function(s) {
|
|
396
|
-
return e.call(this, s,
|
|
397
|
-
} :
|
|
396
|
+
return e.call(this, s, yt);
|
|
397
|
+
} : yt;
|
|
398
398
|
return this._pairs.map(function(i) {
|
|
399
399
|
return r(i[0]) + "=" + r(i[1]);
|
|
400
400
|
}, "").join("&");
|
|
401
401
|
};
|
|
402
|
-
function
|
|
402
|
+
function sn(t) {
|
|
403
403
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+");
|
|
404
404
|
}
|
|
405
|
-
function
|
|
405
|
+
function Gt(t, e, r) {
|
|
406
406
|
if (!e)
|
|
407
407
|
return t;
|
|
408
|
-
const s = r && r.encode ||
|
|
408
|
+
const s = r && r.encode || sn;
|
|
409
409
|
f.isFunction(r) && (r = {
|
|
410
410
|
serialize: r
|
|
411
411
|
});
|
|
412
412
|
const i = r && r.serialize;
|
|
413
|
-
let
|
|
414
|
-
if (i ?
|
|
415
|
-
const
|
|
416
|
-
|
|
413
|
+
let a;
|
|
414
|
+
if (i ? a = i(e, r) : a = f.isURLSearchParams(e) ? e.toString() : new at(e, r).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
|
}
|
|
420
|
-
class
|
|
420
|
+
class bt {
|
|
421
421
|
constructor() {
|
|
422
422
|
this.handlers = [];
|
|
423
423
|
}
|
|
@@ -471,66 +471,66 @@ class gt {
|
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
const
|
|
474
|
+
const Xt = {
|
|
475
475
|
silentJSONParsing: !0,
|
|
476
476
|
forcedJSONParsing: !0,
|
|
477
477
|
clarifyTimeoutError: !1
|
|
478
|
-
},
|
|
478
|
+
}, on = typeof URLSearchParams < "u" ? URLSearchParams : at, an = typeof FormData < "u" ? FormData : null, ln = typeof Blob < "u" ? Blob : null, cn = {
|
|
479
479
|
isBrowser: !0,
|
|
480
480
|
classes: {
|
|
481
|
-
URLSearchParams:
|
|
482
|
-
FormData:
|
|
483
|
-
Blob:
|
|
481
|
+
URLSearchParams: on,
|
|
482
|
+
FormData: an,
|
|
483
|
+
Blob: ln
|
|
484
484
|
},
|
|
485
485
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
486
|
-
},
|
|
487
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function",
|
|
486
|
+
}, lt = typeof window < "u" && typeof document < "u", tt = typeof navigator == "object" && navigator || void 0, dn = lt && (!tt || ["ReactNative", "NativeScript", "NS"].indexOf(tt.product) < 0), un = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
487
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", pn = lt && window.location.href || "http://localhost", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
488
488
|
__proto__: null,
|
|
489
|
-
hasBrowserEnv:
|
|
490
|
-
hasStandardBrowserEnv:
|
|
491
|
-
hasStandardBrowserWebWorkerEnv:
|
|
492
|
-
navigator:
|
|
493
|
-
origin:
|
|
489
|
+
hasBrowserEnv: lt,
|
|
490
|
+
hasStandardBrowserEnv: dn,
|
|
491
|
+
hasStandardBrowserWebWorkerEnv: un,
|
|
492
|
+
navigator: tt,
|
|
493
|
+
origin: pn
|
|
494
494
|
}, Symbol.toStringTag, { value: "Module" })), ee = {
|
|
495
|
-
...
|
|
496
|
-
...
|
|
495
|
+
...fn,
|
|
496
|
+
...cn
|
|
497
497
|
};
|
|
498
|
-
function
|
|
499
|
-
return
|
|
500
|
-
visitor: function(r, s, i,
|
|
501
|
-
return ee.isNode && f.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) :
|
|
498
|
+
function xn(t, e) {
|
|
499
|
+
return He(t, new ee.classes.URLSearchParams(), {
|
|
500
|
+
visitor: function(r, s, i, a) {
|
|
501
|
+
return ee.isNode && f.isBuffer(r) ? (this.append(s, r.toString("base64")), !1) : a.defaultVisitor.apply(this, arguments);
|
|
502
502
|
},
|
|
503
503
|
...e
|
|
504
504
|
});
|
|
505
505
|
}
|
|
506
|
-
function
|
|
506
|
+
function hn(t) {
|
|
507
507
|
return f.matchAll(/\w+|\[(\w*)]/g, t).map((e) => e[0] === "[]" ? "" : e[1] || e[0]);
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function mn(t) {
|
|
510
510
|
const e = {}, r = Object.keys(t);
|
|
511
511
|
let s;
|
|
512
512
|
const i = r.length;
|
|
513
|
-
let
|
|
513
|
+
let a;
|
|
514
514
|
for (s = 0; s < i; s++)
|
|
515
|
-
|
|
515
|
+
a = r[s], e[a] = t[a];
|
|
516
516
|
return e;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
function e(r, s, i,
|
|
520
|
-
let
|
|
521
|
-
if (
|
|
522
|
-
const c = Number.isFinite(+
|
|
523
|
-
return
|
|
518
|
+
function Zt(t) {
|
|
519
|
+
function e(r, s, i, a) {
|
|
520
|
+
let o = r[a++];
|
|
521
|
+
if (o === "__proto__") return !0;
|
|
522
|
+
const c = Number.isFinite(+o), h = a >= r.length;
|
|
523
|
+
return o = !o && f.isArray(i) ? i.length : o, h ? (f.hasOwnProp(i, o) ? i[o] = [i[o], s] : i[o] = s, !c) : ((!i[o] || !f.isObject(i[o])) && (i[o] = []), e(r, s, i[o], a) && f.isArray(i[o]) && (i[o] = mn(i[o])), !c);
|
|
524
524
|
}
|
|
525
525
|
if (f.isFormData(t) && f.isFunction(t.entries)) {
|
|
526
526
|
const r = {};
|
|
527
527
|
return f.forEachEntry(t, (s, i) => {
|
|
528
|
-
e(
|
|
528
|
+
e(hn(s), i, r, 0);
|
|
529
529
|
}), r;
|
|
530
530
|
}
|
|
531
531
|
return null;
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function gn(t, e, r) {
|
|
534
534
|
if (f.isString(t))
|
|
535
535
|
try {
|
|
536
536
|
return (e || JSON.parse)(t), f.trim(t);
|
|
@@ -541,12 +541,12 @@ function hn(t, e, r) {
|
|
|
541
541
|
return (r || JSON.stringify)(t);
|
|
542
542
|
}
|
|
543
543
|
const Oe = {
|
|
544
|
-
transitional:
|
|
544
|
+
transitional: Xt,
|
|
545
545
|
adapter: ["xhr", "http", "fetch"],
|
|
546
546
|
transformRequest: [function(e, r) {
|
|
547
|
-
const s = r.getContentType() || "", i = s.indexOf("application/json") > -1,
|
|
548
|
-
if (
|
|
549
|
-
return i ? JSON.stringify(
|
|
547
|
+
const s = r.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
|
+
return i ? JSON.stringify(Zt(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;
|
|
552
552
|
if (f.isArrayBufferView(e))
|
|
@@ -554,31 +554,31 @@ const Oe = {
|
|
|
554
554
|
if (f.isURLSearchParams(e))
|
|
555
555
|
return r.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
|
-
return
|
|
559
|
+
return xn(e, this.formSerializer).toString();
|
|
560
560
|
if ((c = f.isFileList(e)) || s.indexOf("multipart/form-data") > -1) {
|
|
561
561
|
const h = this.env && this.env.FormData;
|
|
562
|
-
return
|
|
562
|
+
return He(
|
|
563
563
|
c ? { "files[]": e } : e,
|
|
564
564
|
h && new h(),
|
|
565
565
|
this.formSerializer
|
|
566
566
|
);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
|
-
return
|
|
569
|
+
return a || i ? (r.setContentType("application/json", !1), gn(e)) : e;
|
|
570
570
|
}],
|
|
571
571
|
transformResponse: [function(e) {
|
|
572
572
|
const r = this.transitional || Oe.transitional, s = r && r.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 = !(r && r.silentJSONParsing) && i;
|
|
577
577
|
try {
|
|
578
578
|
return JSON.parse(e, this.parseReviver);
|
|
579
579
|
} catch (c) {
|
|
580
|
-
if (
|
|
581
|
-
throw c.name === "SyntaxError" ?
|
|
580
|
+
if (o)
|
|
581
|
+
throw c.name === "SyntaxError" ? N.from(c, N.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
584
|
return e;
|
|
@@ -609,7 +609,7 @@ const Oe = {
|
|
|
609
609
|
f.forEach(["delete", "get", "head", "post", "put", "patch"], (t) => {
|
|
610
610
|
Oe.headers[t] = {};
|
|
611
611
|
});
|
|
612
|
-
const
|
|
612
|
+
const yn = f.toObjectSet([
|
|
613
613
|
"age",
|
|
614
614
|
"authorization",
|
|
615
615
|
"content-length",
|
|
@@ -627,29 +627,29 @@ const mn = f.toObjectSet([
|
|
|
627
627
|
"referer",
|
|
628
628
|
"retry-after",
|
|
629
629
|
"user-agent"
|
|
630
|
-
]),
|
|
630
|
+
]), bn = (t) => {
|
|
631
631
|
const e = {};
|
|
632
632
|
let r, s, i;
|
|
633
633
|
return t && t.split(`
|
|
634
|
-
`).forEach(function(
|
|
635
|
-
i =
|
|
634
|
+
`).forEach(function(o) {
|
|
635
|
+
i = o.indexOf(":"), r = o.substring(0, i).trim().toLowerCase(), s = o.substring(i + 1).trim(), !(!r || e[r] && yn[r]) && (r === "set-cookie" ? e[r] ? e[r].push(s) : e[r] = [s] : e[r] = e[r] ? e[r] + ", " + s : s);
|
|
636
636
|
}), e;
|
|
637
|
-
},
|
|
637
|
+
}, wt = Symbol("internals");
|
|
638
638
|
function ke(t) {
|
|
639
639
|
return t && String(t).trim().toLowerCase();
|
|
640
640
|
}
|
|
641
|
-
function
|
|
642
|
-
return t === !1 || t == null ? t : f.isArray(t) ? t.map(
|
|
641
|
+
function $e(t) {
|
|
642
|
+
return t === !1 || t == null ? t : f.isArray(t) ? t.map($e) : String(t);
|
|
643
643
|
}
|
|
644
|
-
function
|
|
644
|
+
function wn(t) {
|
|
645
645
|
const e = /* @__PURE__ */ Object.create(null), r = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
|
|
646
646
|
let s;
|
|
647
647
|
for (; s = r.exec(t); )
|
|
648
648
|
e[s[1]] = s[2];
|
|
649
649
|
return e;
|
|
650
650
|
}
|
|
651
|
-
const
|
|
652
|
-
function
|
|
651
|
+
const vn = (t) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());
|
|
652
|
+
function Ke(t, e, r, s, i) {
|
|
653
653
|
if (f.isFunction(s))
|
|
654
654
|
return s.call(this, e, r);
|
|
655
655
|
if (i && (e = r), !!f.isString(e)) {
|
|
@@ -659,15 +659,15 @@ function Ye(t, e, r, s, i) {
|
|
|
659
659
|
return s.test(e);
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function jn(t) {
|
|
663
663
|
return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, r, s) => r.toUpperCase() + s);
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Sn(t, e) {
|
|
666
666
|
const r = f.toCamelCase(" " + e);
|
|
667
667
|
["get", "set", "has"].forEach((s) => {
|
|
668
668
|
Object.defineProperty(t, s + r, {
|
|
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 ne = class {
|
|
|
679
679
|
}
|
|
680
680
|
set(e, r, s) {
|
|
681
681
|
const i = this;
|
|
682
|
-
function
|
|
682
|
+
function a(c, h, u) {
|
|
683
683
|
const d = ke(h);
|
|
684
684
|
if (!d)
|
|
685
685
|
throw new Error("header name must be a non-empty string");
|
|
686
686
|
const m = f.findKey(i, d);
|
|
687
|
-
(!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || h] =
|
|
687
|
+
(!m || i[m] === void 0 || u === !0 || u === void 0 && i[m] !== !1) && (i[m || h] = $e(c));
|
|
688
688
|
}
|
|
689
|
-
const
|
|
689
|
+
const o = (c, h) => f.forEach(c, (u, d) => a(u, d, h));
|
|
690
690
|
if (f.isPlainObject(e) || e instanceof this.constructor)
|
|
691
|
-
|
|
692
|
-
else if (f.isString(e) && (e = e.trim()) && !
|
|
693
|
-
|
|
691
|
+
o(e, r);
|
|
692
|
+
else if (f.isString(e) && (e = e.trim()) && !vn(e))
|
|
693
|
+
o(bn(e), r);
|
|
694
694
|
else if (f.isObject(e) && f.isIterable(e)) {
|
|
695
695
|
let c = {}, h, u;
|
|
696
696
|
for (const d of e) {
|
|
@@ -698,9 +698,9 @@ let ne = class {
|
|
|
698
698
|
throw TypeError("Object iterator must return a key-value pair");
|
|
699
699
|
c[u = d[0]] = (h = c[u]) ? f.isArray(h) ? [...h, d[1]] : [h, d[1]] : d[1];
|
|
700
700
|
}
|
|
701
|
-
|
|
701
|
+
o(c, r);
|
|
702
702
|
} else
|
|
703
|
-
e != null &&
|
|
703
|
+
e != null && a(r, e, s);
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(e, r) {
|
|
@@ -711,7 +711,7 @@ let ne = class {
|
|
|
711
711
|
if (!r)
|
|
712
712
|
return i;
|
|
713
713
|
if (r === !0)
|
|
714
|
-
return
|
|
714
|
+
return wn(i);
|
|
715
715
|
if (f.isFunction(r))
|
|
716
716
|
return r.call(this, i, s);
|
|
717
717
|
if (f.isRegExp(r))
|
|
@@ -723,40 +723,40 @@ let ne = class {
|
|
|
723
723
|
has(e, r) {
|
|
724
724
|
if (e = ke(e), e) {
|
|
725
725
|
const s = f.findKey(this, e);
|
|
726
|
-
return !!(s && this[s] !== void 0 && (!r ||
|
|
726
|
+
return !!(s && this[s] !== void 0 && (!r || Ke(this, this[s], s, r)));
|
|
727
727
|
}
|
|
728
728
|
return !1;
|
|
729
729
|
}
|
|
730
730
|
delete(e, r) {
|
|
731
731
|
const s = this;
|
|
732
732
|
let i = !1;
|
|
733
|
-
function o
|
|
734
|
-
if (
|
|
735
|
-
const c = f.findKey(s,
|
|
736
|
-
c && (!r ||
|
|
733
|
+
function a(o) {
|
|
734
|
+
if (o = ke(o), o) {
|
|
735
|
+
const c = f.findKey(s, o);
|
|
736
|
+
c && (!r || Ke(s, s[c], c, r)) && (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 r = Object.keys(this);
|
|
743
743
|
let s = r.length, i = !1;
|
|
744
744
|
for (; s--; ) {
|
|
745
|
-
const
|
|
746
|
-
(!e ||
|
|
745
|
+
const a = r[s];
|
|
746
|
+
(!e || Ke(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 r = this, s = {};
|
|
752
|
-
return f.forEach(this, (i,
|
|
753
|
-
const
|
|
754
|
-
if (
|
|
755
|
-
r[
|
|
752
|
+
return f.forEach(this, (i, a) => {
|
|
753
|
+
const o = f.findKey(s, a);
|
|
754
|
+
if (o) {
|
|
755
|
+
r[o] = $e(i), delete r[a];
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
const c = e ?
|
|
759
|
-
c !==
|
|
758
|
+
const c = e ? jn(a) : String(a).trim();
|
|
759
|
+
c !== a && delete r[a], r[c] = $e(i), s[c] = !0;
|
|
760
760
|
}), this;
|
|
761
761
|
}
|
|
762
762
|
concat(...e) {
|
|
@@ -789,14 +789,14 @@ let ne = class {
|
|
|
789
789
|
return r.forEach((i) => s.set(i)), s;
|
|
790
790
|
}
|
|
791
791
|
static accessor(e) {
|
|
792
|
-
const s = (this[
|
|
792
|
+
const s = (this[wt] = this[wt] = {
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, i = this.prototype;
|
|
795
|
-
function o
|
|
796
|
-
const c = ke(
|
|
797
|
-
s[c] || (
|
|
795
|
+
function a(o) {
|
|
796
|
+
const c = ke(o);
|
|
797
|
+
s[c] || (Sn(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
|
ne.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
|
|
@@ -810,99 +810,99 @@ f.reduceDescriptors(ne.prototype, ({ value: t }, e) => {
|
|
|
810
810
|
};
|
|
811
811
|
});
|
|
812
812
|
f.freezeMethods(ne);
|
|
813
|
-
function
|
|
813
|
+
function Je(t, e) {
|
|
814
814
|
const r = this || Oe, s = e || r, i = ne.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(r, a, i.normalize(), e ? e.status : void 0);
|
|
818
|
+
}), i.normalize(), a;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Qt(t) {
|
|
821
821
|
return !!(t && t.__CANCEL__);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
|
|
823
|
+
function ve(t, e, r) {
|
|
824
|
+
N.call(this, t ?? "canceled", N.ERR_CANCELED, e, r), this.name = "CanceledError";
|
|
825
825
|
}
|
|
826
|
-
f.inherits(
|
|
826
|
+
f.inherits(ve, N, {
|
|
827
827
|
__CANCEL__: !0
|
|
828
828
|
});
|
|
829
|
-
function
|
|
829
|
+
function er(t, e, r) {
|
|
830
830
|
const s = r.config.validateStatus;
|
|
831
|
-
!r.status || !s || s(r.status) ? t(r) : e(new
|
|
831
|
+
!r.status || !s || s(r.status) ? t(r) : e(new N(
|
|
832
832
|
"Request failed with status code " + r.status,
|
|
833
|
-
[
|
|
833
|
+
[N.ERR_BAD_REQUEST, N.ERR_BAD_RESPONSE][Math.floor(r.status / 100) - 4],
|
|
834
834
|
r.config,
|
|
835
835
|
r.request,
|
|
836
836
|
r
|
|
837
837
|
));
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function kn(t) {
|
|
840
840
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(t);
|
|
841
841
|
return e && e[1] || "";
|
|
842
842
|
}
|
|
843
|
-
function
|
|
843
|
+
function En(t, e) {
|
|
844
844
|
t = t || 10;
|
|
845
845
|
const r = 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(h) {
|
|
848
|
-
const u = Date.now(), d = s[
|
|
849
|
-
|
|
850
|
-
let m =
|
|
848
|
+
const u = Date.now(), d = s[a];
|
|
849
|
+
o || (o = u), r[i] = h, s[i] = u;
|
|
850
|
+
let m = a, P = 0;
|
|
851
851
|
for (; m !== i; )
|
|
852
852
|
P += r[m++], m = m % t;
|
|
853
|
-
if (i = (i + 1) % t, i ===
|
|
853
|
+
if (i = (i + 1) % t, i === a && (a = (a + 1) % t), u - o < e)
|
|
854
854
|
return;
|
|
855
855
|
const O = d && u - d;
|
|
856
856
|
return O ? Math.round(P * 1e3 / O) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
function
|
|
860
|
-
let r = 0, s = 1e3 / e, i,
|
|
861
|
-
const
|
|
862
|
-
r = d, i = null,
|
|
859
|
+
function Cn(t, e) {
|
|
860
|
+
let r = 0, s = 1e3 / e, i, a;
|
|
861
|
+
const o = (u, d = Date.now()) => {
|
|
862
|
+
r = d, i = null, a && (clearTimeout(a), a = null), t(...u);
|
|
863
863
|
};
|
|
864
864
|
return [(...u) => {
|
|
865
865
|
const d = Date.now(), m = d - r;
|
|
866
|
-
m >= s ?
|
|
867
|
-
|
|
866
|
+
m >= s ? o(u, d) : (i = u, a || (a = setTimeout(() => {
|
|
867
|
+
a = null, o(i);
|
|
868
868
|
}, s - m)));
|
|
869
|
-
}, () => i &&
|
|
869
|
+
}, () => i && o(i)];
|
|
870
870
|
}
|
|
871
|
-
const
|
|
871
|
+
const qe = (t, e, r = 3) => {
|
|
872
872
|
let s = 0;
|
|
873
|
-
const i =
|
|
874
|
-
return
|
|
875
|
-
const
|
|
876
|
-
s =
|
|
873
|
+
const i = En(50, 250);
|
|
874
|
+
return Cn((a) => {
|
|
875
|
+
const o = a.loaded, c = a.lengthComputable ? a.total : void 0, h = o - s, u = i(h), d = o <= c;
|
|
876
|
+
s = o;
|
|
877
877
|
const m = {
|
|
878
|
-
loaded:
|
|
878
|
+
loaded: o,
|
|
879
879
|
total: c,
|
|
880
|
-
progress: c ?
|
|
880
|
+
progress: c ? o / c : void 0,
|
|
881
881
|
bytes: h,
|
|
882
882
|
rate: u || void 0,
|
|
883
|
-
estimated: u && c && d ? (c -
|
|
884
|
-
event:
|
|
883
|
+
estimated: u && c && d ? (c - o) / u : void 0,
|
|
884
|
+
event: a,
|
|
885
885
|
lengthComputable: c != null,
|
|
886
886
|
[e ? "download" : "upload"]: !0
|
|
887
887
|
};
|
|
888
888
|
t(m);
|
|
889
889
|
}, r);
|
|
890
|
-
},
|
|
890
|
+
}, vt = (t, e) => {
|
|
891
891
|
const r = t != null;
|
|
892
892
|
return [(s) => e[0]({
|
|
893
893
|
lengthComputable: r,
|
|
894
894
|
total: t,
|
|
895
895
|
loaded: s
|
|
896
896
|
}), e[1]];
|
|
897
|
-
},
|
|
897
|
+
}, jt = (t) => (...e) => f.asap(() => t(...e)), Tn = ee.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, ee.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
|
|
898
898
|
new URL(ee.origin),
|
|
899
899
|
ee.navigator && /(msie|trident)/i.test(ee.navigator.userAgent)
|
|
900
|
-
) : () => !0,
|
|
900
|
+
) : () => !0, Rn = ee.hasStandardBrowserEnv ? (
|
|
901
901
|
// Standard browser envs support document.cookie
|
|
902
902
|
{
|
|
903
|
-
write(t, e, r, s, i,
|
|
904
|
-
const
|
|
905
|
-
f.isNumber(r) &&
|
|
903
|
+
write(t, e, r, s, i, a) {
|
|
904
|
+
const o = [t + "=" + encodeURIComponent(e)];
|
|
905
|
+
f.isNumber(r) && o.push("expires=" + new Date(r).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 + ")=([^;]*)"));
|
|
@@ -924,17 +924,17 @@ const Le = (t, e, r = 3) => {
|
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
);
|
|
927
|
-
function
|
|
927
|
+
function Pn(t) {
|
|
928
928
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);
|
|
929
929
|
}
|
|
930
|
-
function
|
|
930
|
+
function In(t, e) {
|
|
931
931
|
return e ? t.replace(/\/?\/$/, "") + "/" + e.replace(/^\/+/, "") : t;
|
|
932
932
|
}
|
|
933
|
-
function
|
|
934
|
-
let s = !
|
|
935
|
-
return t && (s || r == !1) ?
|
|
933
|
+
function tr(t, e, r) {
|
|
934
|
+
let s = !Pn(e);
|
|
935
|
+
return t && (s || r == !1) ? In(t, e) : e;
|
|
936
936
|
}
|
|
937
|
-
const
|
|
937
|
+
const St = (t) => t instanceof ne ? { ...t } : t;
|
|
938
938
|
function he(t, e) {
|
|
939
939
|
e = e || {};
|
|
940
940
|
const r = {};
|
|
@@ -947,11 +947,11 @@ function he(t, e) {
|
|
|
947
947
|
return s(void 0, u, m, P);
|
|
948
948
|
} else return s(u, d, m, P);
|
|
949
949
|
}
|
|
950
|
-
function
|
|
950
|
+
function a(u, d) {
|
|
951
951
|
if (!f.isUndefined(d))
|
|
952
952
|
return s(void 0, d);
|
|
953
953
|
}
|
|
954
|
-
function
|
|
954
|
+
function o(u, d) {
|
|
955
955
|
if (f.isUndefined(d)) {
|
|
956
956
|
if (!f.isUndefined(u))
|
|
957
957
|
return s(void 0, u);
|
|
@@ -964,67 +964,67 @@ function he(t, e) {
|
|
|
964
964
|
return s(void 0, u);
|
|
965
965
|
}
|
|
966
966
|
const h = {
|
|
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
|
-
headers: (u, d, m) => i(
|
|
995
|
+
headers: (u, d, m) => i(St(u), St(d), m, !0)
|
|
996
996
|
};
|
|
997
997
|
return f.forEach(Object.keys({ ...t, ...e }), function(d) {
|
|
998
998
|
const m = h[d] || i, P = m(t[d], e[d], d);
|
|
999
999
|
f.isUndefined(P) && m !== c || (r[d] = P);
|
|
1000
1000
|
}), r;
|
|
1001
1001
|
}
|
|
1002
|
-
const
|
|
1002
|
+
const rr = (t) => {
|
|
1003
1003
|
const e = he({}, t);
|
|
1004
|
-
let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName:
|
|
1005
|
-
if (e.headers =
|
|
1004
|
+
let { data: r, withXSRFToken: s, xsrfHeaderName: i, xsrfCookieName: a, headers: o, auth: c } = e;
|
|
1005
|
+
if (e.headers = o = ne.from(o), e.url = Gt(tr(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(r)) {
|
|
1009
1009
|
if (ee.hasStandardBrowserEnv || ee.hasStandardBrowserWebWorkerEnv)
|
|
1010
|
-
|
|
1010
|
+
o.setContentType(void 0);
|
|
1011
1011
|
else if (f.isFunction(r.getHeaders)) {
|
|
1012
1012
|
const h = r.getHeaders(), u = ["content-type", "content-length"];
|
|
1013
1013
|
Object.entries(h).forEach(([d, m]) => {
|
|
1014
|
-
u.includes(d.toLowerCase()) &&
|
|
1014
|
+
u.includes(d.toLowerCase()) && o.set(d, m);
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 &&
|
|
1019
|
-
const h = i &&
|
|
1020
|
-
h &&
|
|
1018
|
+
if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && Tn(e.url))) {
|
|
1019
|
+
const h = i && a && Rn.read(a);
|
|
1020
|
+
h && o.set(i, h);
|
|
1021
1021
|
}
|
|
1022
1022
|
return e;
|
|
1023
|
-
},
|
|
1023
|
+
}, On = typeof XMLHttpRequest < "u", zn = On && function(t) {
|
|
1024
1024
|
return new Promise(function(r, s) {
|
|
1025
|
-
const i =
|
|
1026
|
-
let
|
|
1027
|
-
const
|
|
1025
|
+
const i = rr(t);
|
|
1026
|
+
let a = i.data;
|
|
1027
|
+
const o = ne.from(i.headers).normalize();
|
|
1028
1028
|
let { responseType: c, onUploadProgress: h, onDownloadProgress: u } = i, d, m, P, O, p;
|
|
1029
1029
|
function w() {
|
|
1030
1030
|
O && O(), p && p(), i.cancelToken && i.cancelToken.unsubscribe(d), i.signal && i.signal.removeEventListener("abort", d);
|
|
@@ -1044,64 +1044,64 @@ const er = (t) => {
|
|
|
1044
1044
|
config: t,
|
|
1045
1045
|
request: x
|
|
1046
1046
|
};
|
|
1047
|
-
|
|
1048
|
-
r(
|
|
1049
|
-
}, function(
|
|
1050
|
-
s(
|
|
1047
|
+
er(function(j) {
|
|
1048
|
+
r(j), w();
|
|
1049
|
+
}, function(j) {
|
|
1050
|
+
s(j), w();
|
|
1051
1051
|
}, _), x = null;
|
|
1052
1052
|
}
|
|
1053
1053
|
"onloadend" in x ? x.onloadend = C : x.onreadystatechange = function() {
|
|
1054
1054
|
!x || x.readyState !== 4 || x.status === 0 && !(x.responseURL && x.responseURL.indexOf("file:") === 0) || setTimeout(C);
|
|
1055
1055
|
}, x.onabort = function() {
|
|
1056
|
-
x && (s(new
|
|
1056
|
+
x && (s(new N("Request aborted", N.ECONNABORTED, t, x)), x = null);
|
|
1057
1057
|
}, x.onerror = function(y) {
|
|
1058
|
-
const _ = y && y.message ? y.message : "Network Error", g = new
|
|
1058
|
+
const _ = y && y.message ? y.message : "Network Error", g = new N(_, N.ERR_NETWORK, t, x);
|
|
1059
1059
|
g.event = y || null, s(g), x = null;
|
|
1060
1060
|
}, x.ontimeout = function() {
|
|
1061
1061
|
let y = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
1062
|
-
const _ = i.transitional ||
|
|
1063
|
-
i.timeoutErrorMessage && (y = i.timeoutErrorMessage), s(new
|
|
1062
|
+
const _ = i.transitional || Xt;
|
|
1063
|
+
i.timeoutErrorMessage && (y = i.timeoutErrorMessage), s(new N(
|
|
1064
1064
|
y,
|
|
1065
|
-
_.clarifyTimeoutError ?
|
|
1065
|
+
_.clarifyTimeoutError ? N.ETIMEDOUT : N.ECONNABORTED,
|
|
1066
1066
|
t,
|
|
1067
1067
|
x
|
|
1068
1068
|
)), x = null;
|
|
1069
|
-
},
|
|
1069
|
+
}, a === void 0 && o.setContentType(null), "setRequestHeader" in x && f.forEach(o.toJSON(), function(y, _) {
|
|
1070
1070
|
x.setRequestHeader(_, y);
|
|
1071
|
-
}), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), u && ([P, p] =
|
|
1072
|
-
x && (s(!A || A.type ? new
|
|
1071
|
+
}), f.isUndefined(i.withCredentials) || (x.withCredentials = !!i.withCredentials), c && c !== "json" && (x.responseType = i.responseType), u && ([P, p] = qe(u, !0), x.addEventListener("progress", P)), h && x.upload && ([m, O] = qe(h), x.upload.addEventListener("progress", m), x.upload.addEventListener("loadend", O)), (i.cancelToken || i.signal) && (d = (A) => {
|
|
1072
|
+
x && (s(!A || A.type ? new ve(null, t, x) : A), x.abort(), x = null);
|
|
1073
1073
|
}, i.cancelToken && i.cancelToken.subscribe(d), i.signal && (i.signal.aborted ? d() : i.signal.addEventListener("abort", d)));
|
|
1074
|
-
const T =
|
|
1074
|
+
const T = kn(i.url);
|
|
1075
1075
|
if (T && ee.protocols.indexOf(T) === -1) {
|
|
1076
|
-
s(new
|
|
1076
|
+
s(new N("Unsupported protocol " + T + ":", N.ERR_BAD_REQUEST, t));
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
|
-
x.send(
|
|
1079
|
+
x.send(a || null);
|
|
1080
1080
|
});
|
|
1081
|
-
},
|
|
1081
|
+
}, An = (t, e) => {
|
|
1082
1082
|
const { length: r } = t = t ? t.filter(Boolean) : [];
|
|
1083
1083
|
if (e || r) {
|
|
1084
1084
|
let s = new AbortController(), i;
|
|
1085
|
-
const
|
|
1085
|
+
const a = function(u) {
|
|
1086
1086
|
if (!i) {
|
|
1087
1087
|
i = !0, c();
|
|
1088
1088
|
const d = u instanceof Error ? u : this.reason;
|
|
1089
|
-
s.abort(d instanceof
|
|
1089
|
+
s.abort(d instanceof N ? d : new ve(d instanceof Error ? d.message : d));
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
|
-
let
|
|
1093
|
-
|
|
1092
|
+
let o = e && setTimeout(() => {
|
|
1093
|
+
o = null, a(new N(`timeout ${e} of ms exceeded`, N.ETIMEDOUT));
|
|
1094
1094
|
}, e);
|
|
1095
1095
|
const c = () => {
|
|
1096
|
-
t && (
|
|
1097
|
-
u.unsubscribe ? u.unsubscribe(
|
|
1096
|
+
t && (o && clearTimeout(o), o = null, t.forEach((u) => {
|
|
1097
|
+
u.unsubscribe ? u.unsubscribe(a) : u.removeEventListener("abort", a);
|
|
1098
1098
|
}), t = null);
|
|
1099
1099
|
};
|
|
1100
|
-
t.forEach((u) => u.addEventListener("abort",
|
|
1100
|
+
t.forEach((u) => u.addEventListener("abort", a));
|
|
1101
1101
|
const { signal: h } = s;
|
|
1102
1102
|
return h.unsubscribe = () => f.asap(c), h;
|
|
1103
1103
|
}
|
|
1104
|
-
},
|
|
1104
|
+
}, _n = function* (t, e) {
|
|
1105
1105
|
let r = t.byteLength;
|
|
1106
1106
|
if (r < e) {
|
|
1107
1107
|
yield t;
|
|
@@ -1110,10 +1110,10 @@ const er = (t) => {
|
|
|
1110
1110
|
let s = 0, i;
|
|
1111
1111
|
for (; s < r; )
|
|
1112
1112
|
i = s + e, yield t.slice(s, i), s = i;
|
|
1113
|
-
},
|
|
1114
|
-
for await (const r of
|
|
1115
|
-
yield*
|
|
1116
|
-
},
|
|
1113
|
+
}, Un = async function* (t, e) {
|
|
1114
|
+
for await (const r of Dn(t))
|
|
1115
|
+
yield* _n(r, e);
|
|
1116
|
+
}, Dn = async function* (t) {
|
|
1117
1117
|
if (t[Symbol.asyncIterator]) {
|
|
1118
1118
|
yield* t;
|
|
1119
1119
|
return;
|
|
@@ -1129,10 +1129,10 @@ const er = (t) => {
|
|
|
1129
1129
|
} finally {
|
|
1130
1130
|
await e.cancel();
|
|
1131
1131
|
}
|
|
1132
|
-
},
|
|
1133
|
-
const i =
|
|
1134
|
-
let
|
|
1135
|
-
|
|
1132
|
+
}, kt = (t, e, r, s) => {
|
|
1133
|
+
const i = Un(t, e);
|
|
1134
|
+
let a = 0, o, c = (h) => {
|
|
1135
|
+
o || (o = !0, s && s(h));
|
|
1136
1136
|
};
|
|
1137
1137
|
return new ReadableStream({
|
|
1138
1138
|
async pull(h) {
|
|
@@ -1144,7 +1144,7 @@ const er = (t) => {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
let m = d.byteLength;
|
|
1146
1146
|
if (r) {
|
|
1147
|
-
let P =
|
|
1147
|
+
let P = a += m;
|
|
1148
1148
|
r(P);
|
|
1149
1149
|
}
|
|
1150
1150
|
h.enqueue(new Uint8Array(d));
|
|
@@ -1158,13 +1158,13 @@ const er = (t) => {
|
|
|
1158
1158
|
}, {
|
|
1159
1159
|
highWaterMark: 2
|
|
1160
1160
|
});
|
|
1161
|
-
},
|
|
1161
|
+
}, Et = 64 * 1024, { isFunction: Ae } = f, $n = (({ Request: t, Response: e }) => ({
|
|
1162
1162
|
Request: t,
|
|
1163
1163
|
Response: e
|
|
1164
1164
|
}))(f.global), {
|
|
1165
|
-
ReadableStream:
|
|
1166
|
-
TextEncoder:
|
|
1167
|
-
} = f.global,
|
|
1165
|
+
ReadableStream: Ct,
|
|
1166
|
+
TextEncoder: Tt
|
|
1167
|
+
} = f.global, Rt = (t, ...e) => {
|
|
1168
1168
|
try {
|
|
1169
1169
|
return !!t(...e);
|
|
1170
1170
|
} catch {
|
|
@@ -1173,21 +1173,21 @@ const er = (t) => {
|
|
|
1173
1173
|
}, Nn = (t) => {
|
|
1174
1174
|
t = f.merge.call({
|
|
1175
1175
|
skipUndefined: !0
|
|
1176
|
-
},
|
|
1177
|
-
const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function",
|
|
1176
|
+
}, $n, t);
|
|
1177
|
+
const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", a = Ae(r), o = Ae(s);
|
|
1178
1178
|
if (!i)
|
|
1179
1179
|
return !1;
|
|
1180
|
-
const c = i && Ae(
|
|
1180
|
+
const c = i && Ae(Ct), h = i && (typeof Tt == "function" ? /* @__PURE__ */ ((p) => (w) => p.encode(w))(new Tt()) : async (p) => new Uint8Array(await new r(p).arrayBuffer())), u = a && c && Rt(() => {
|
|
1181
1181
|
let p = !1;
|
|
1182
1182
|
const w = new r(ee.origin, {
|
|
1183
|
-
body: new
|
|
1183
|
+
body: new Ct(),
|
|
1184
1184
|
method: "POST",
|
|
1185
1185
|
get duplex() {
|
|
1186
1186
|
return p = !0, "half";
|
|
1187
1187
|
}
|
|
1188
1188
|
}).headers.has("Content-Type");
|
|
1189
1189
|
return p && !w;
|
|
1190
|
-
}), d =
|
|
1190
|
+
}), d = o && c && Rt(() => f.isReadableStream(new s("").body)), m = {
|
|
1191
1191
|
stream: d && ((p) => p.body)
|
|
1192
1192
|
};
|
|
1193
1193
|
i && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((p) => {
|
|
@@ -1195,7 +1195,7 @@ const er = (t) => {
|
|
|
1195
1195
|
let C = w && w[p];
|
|
1196
1196
|
if (C)
|
|
1197
1197
|
return C.call(w);
|
|
1198
|
-
throw new
|
|
1198
|
+
throw new N(`Response type '${p}' is not supported`, N.ERR_NOT_SUPPORT, x);
|
|
1199
1199
|
});
|
|
1200
1200
|
});
|
|
1201
1201
|
const P = async (p) => {
|
|
@@ -1226,13 +1226,13 @@ const er = (t) => {
|
|
|
1226
1226
|
timeout: y,
|
|
1227
1227
|
onDownloadProgress: _,
|
|
1228
1228
|
onUploadProgress: g,
|
|
1229
|
-
responseType:
|
|
1229
|
+
responseType: j,
|
|
1230
1230
|
headers: F,
|
|
1231
1231
|
withCredentials: U = "same-origin",
|
|
1232
1232
|
fetchOptions: M
|
|
1233
|
-
} =
|
|
1234
|
-
|
|
1235
|
-
let E =
|
|
1233
|
+
} = rr(p), X = e || fetch;
|
|
1234
|
+
j = j ? (j + "").toLowerCase() : "text";
|
|
1235
|
+
let E = An([T, A && A.toAbortSignal()], y), V = null;
|
|
1236
1236
|
const z = E && E.unsubscribe && (() => {
|
|
1237
1237
|
E.unsubscribe();
|
|
1238
1238
|
});
|
|
@@ -1245,15 +1245,15 @@ const er = (t) => {
|
|
|
1245
1245
|
duplex: "half"
|
|
1246
1246
|
}), b;
|
|
1247
1247
|
if (f.isFormData(C) && (b = l.headers.get("content-type")) && F.setContentType(b), l.body) {
|
|
1248
|
-
const [S,
|
|
1248
|
+
const [S, v] = vt(
|
|
1249
1249
|
I,
|
|
1250
|
-
|
|
1250
|
+
qe(jt(g))
|
|
1251
1251
|
);
|
|
1252
|
-
C =
|
|
1252
|
+
C = kt(l.body, Et, S, v);
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
1255
|
f.isString(U) || (U = U ? "include" : "omit");
|
|
1256
|
-
const W =
|
|
1256
|
+
const W = a && "credentials" in r.prototype, Z = {
|
|
1257
1257
|
...M,
|
|
1258
1258
|
signal: E,
|
|
1259
1259
|
method: x.toUpperCase(),
|
|
@@ -1262,29 +1262,29 @@ const er = (t) => {
|
|
|
1262
1262
|
duplex: "half",
|
|
1263
1263
|
credentials: W ? U : void 0
|
|
1264
1264
|
};
|
|
1265
|
-
V =
|
|
1266
|
-
let B = await (
|
|
1267
|
-
const K = d && (
|
|
1265
|
+
V = a && new r(w, Z);
|
|
1266
|
+
let B = await (a ? X(V, M) : X(w, Z));
|
|
1267
|
+
const K = d && (j === "stream" || j === "response");
|
|
1268
1268
|
if (d && (_ || K && z)) {
|
|
1269
1269
|
const l = {};
|
|
1270
1270
|
["status", "statusText", "headers"].forEach((G) => {
|
|
1271
1271
|
l[G] = B[G];
|
|
1272
1272
|
});
|
|
1273
|
-
const b = f.toFiniteNumber(B.headers.get("content-length")), [S,
|
|
1273
|
+
const b = f.toFiniteNumber(B.headers.get("content-length")), [S, v] = _ && vt(
|
|
1274
1274
|
b,
|
|
1275
|
-
|
|
1275
|
+
qe(jt(_), !0)
|
|
1276
1276
|
) || [];
|
|
1277
1277
|
B = new s(
|
|
1278
|
-
|
|
1279
|
-
|
|
1278
|
+
kt(B.body, Et, S, () => {
|
|
1279
|
+
v && v(), z && z();
|
|
1280
1280
|
}),
|
|
1281
1281
|
l
|
|
1282
1282
|
);
|
|
1283
1283
|
}
|
|
1284
|
-
|
|
1285
|
-
let L = await m[f.findKey(m,
|
|
1284
|
+
j = j || "text";
|
|
1285
|
+
let L = await m[f.findKey(m, j) || "text"](B, p);
|
|
1286
1286
|
return !K && z && z(), await new Promise((l, b) => {
|
|
1287
|
-
|
|
1287
|
+
er(l, b, {
|
|
1288
1288
|
data: L,
|
|
1289
1289
|
headers: ne.from(B.headers),
|
|
1290
1290
|
status: B.status,
|
|
@@ -1295,34 +1295,34 @@ const er = (t) => {
|
|
|
1295
1295
|
});
|
|
1296
1296
|
} catch (W) {
|
|
1297
1297
|
throw z && z(), W && W.name === "TypeError" && /Load failed|fetch/i.test(W.message) ? Object.assign(
|
|
1298
|
-
new
|
|
1298
|
+
new N("Network Error", N.ERR_NETWORK, p, V),
|
|
1299
1299
|
{
|
|
1300
1300
|
cause: W.cause || W
|
|
1301
1301
|
}
|
|
1302
|
-
) :
|
|
1302
|
+
) : N.from(W, W && W.code, p, V);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
|
-
},
|
|
1305
|
+
}, Fn = /* @__PURE__ */ new Map(), nr = (t) => {
|
|
1306
1306
|
let e = t ? t.env : {};
|
|
1307
|
-
const { fetch: r, Request: s, Response: i } = e,
|
|
1307
|
+
const { fetch: r, Request: s, Response: i } = e, a = [
|
|
1308
1308
|
s,
|
|
1309
1309
|
i,
|
|
1310
1310
|
r
|
|
1311
1311
|
];
|
|
1312
|
-
let
|
|
1312
|
+
let o = a.length, c = o, h, u, d = Fn;
|
|
1313
1313
|
for (; c--; )
|
|
1314
|
-
h =
|
|
1314
|
+
h = a[c], u = d.get(h), u === void 0 && d.set(h, u = c ? /* @__PURE__ */ new Map() : Nn(e)), d = u;
|
|
1315
1315
|
return u;
|
|
1316
1316
|
};
|
|
1317
|
-
|
|
1318
|
-
const
|
|
1319
|
-
http:
|
|
1320
|
-
xhr:
|
|
1317
|
+
nr();
|
|
1318
|
+
const rt = {
|
|
1319
|
+
http: tn,
|
|
1320
|
+
xhr: zn,
|
|
1321
1321
|
fetch: {
|
|
1322
|
-
get:
|
|
1322
|
+
get: nr
|
|
1323
1323
|
}
|
|
1324
1324
|
};
|
|
1325
|
-
f.forEach(
|
|
1325
|
+
f.forEach(rt, (t, e) => {
|
|
1326
1326
|
if (t) {
|
|
1327
1327
|
try {
|
|
1328
1328
|
Object.defineProperty(t, "name", { value: e });
|
|
@@ -1331,113 +1331,113 @@ f.forEach(tt, (t, e) => {
|
|
|
1331
1331
|
Object.defineProperty(t, "adapterName", { value: e });
|
|
1332
1332
|
}
|
|
1333
1333
|
});
|
|
1334
|
-
const
|
|
1334
|
+
const Pt = (t) => `- ${t}`, Ln = (t) => f.isFunction(t) || t === null || t === !1, sr = {
|
|
1335
1335
|
getAdapter: (t, e) => {
|
|
1336
1336
|
t = f.isArray(t) ? t : [t];
|
|
1337
1337
|
const { length: r } = t;
|
|
1338
1338
|
let s, i;
|
|
1339
|
-
const
|
|
1340
|
-
for (let
|
|
1341
|
-
s = t[
|
|
1339
|
+
const a = {};
|
|
1340
|
+
for (let o = 0; o < r; o++) {
|
|
1341
|
+
s = t[o];
|
|
1342
1342
|
let c;
|
|
1343
|
-
if (i = s, !
|
|
1344
|
-
throw new
|
|
1343
|
+
if (i = s, !Ln(s) && (i = rt[(c = String(s)).toLowerCase()], i === void 0))
|
|
1344
|
+
throw new N(`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
|
([h, u]) => `adapter ${h} ` + (u === !1 ? "is not supported by the environment" : "is not available in the build")
|
|
1352
1352
|
);
|
|
1353
|
-
let c = r ?
|
|
1354
|
-
` +
|
|
1355
|
-
`) : " " +
|
|
1356
|
-
throw new
|
|
1353
|
+
let c = r ? o.length > 1 ? `since :
|
|
1354
|
+
` + o.map(Pt).join(`
|
|
1355
|
+
`) : " " + Pt(o[0]) : "as no adapter specified";
|
|
1356
|
+
throw new N(
|
|
1357
1357
|
"There is no suitable adapter to dispatch the request " + c,
|
|
1358
1358
|
"ERR_NOT_SUPPORT"
|
|
1359
1359
|
);
|
|
1360
1360
|
}
|
|
1361
1361
|
return i;
|
|
1362
1362
|
},
|
|
1363
|
-
adapters:
|
|
1363
|
+
adapters: rt
|
|
1364
1364
|
};
|
|
1365
|
-
function
|
|
1365
|
+
function Ge(t) {
|
|
1366
1366
|
if (t.cancelToken && t.cancelToken.throwIfRequested(), t.signal && t.signal.aborted)
|
|
1367
|
-
throw new
|
|
1367
|
+
throw new ve(null, t);
|
|
1368
1368
|
}
|
|
1369
|
-
function
|
|
1370
|
-
return
|
|
1369
|
+
function It(t) {
|
|
1370
|
+
return Ge(t), t.headers = ne.from(t.headers), t.data = Je.call(
|
|
1371
1371
|
t,
|
|
1372
1372
|
t.transformRequest
|
|
1373
|
-
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1),
|
|
1374
|
-
return
|
|
1373
|
+
), ["post", "put", "patch"].indexOf(t.method) !== -1 && t.headers.setContentType("application/x-www-form-urlencoded", !1), sr.getAdapter(t.adapter || Oe.adapter, t)(t).then(function(s) {
|
|
1374
|
+
return Ge(t), s.data = Je.call(
|
|
1375
1375
|
t,
|
|
1376
1376
|
t.transformResponse,
|
|
1377
1377
|
s
|
|
1378
1378
|
), s.headers = ne.from(s.headers), s;
|
|
1379
1379
|
}, function(s) {
|
|
1380
|
-
return
|
|
1380
|
+
return Qt(s) || (Ge(t), s && s.response && (s.response.data = Je.call(
|
|
1381
1381
|
t,
|
|
1382
1382
|
t.transformResponse,
|
|
1383
1383
|
s.response
|
|
1384
1384
|
), s.response.headers = ne.from(s.response.headers))), Promise.reject(s);
|
|
1385
1385
|
});
|
|
1386
1386
|
}
|
|
1387
|
-
const
|
|
1387
|
+
const ir = "1.12.2", Ve = {};
|
|
1388
1388
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1389
|
-
|
|
1389
|
+
Ve[t] = function(s) {
|
|
1390
1390
|
return typeof s === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1391
1391
|
};
|
|
1392
1392
|
});
|
|
1393
|
-
const
|
|
1394
|
-
|
|
1395
|
-
function i(
|
|
1396
|
-
return "[Axios v" +
|
|
1393
|
+
const Ot = {};
|
|
1394
|
+
Ve.transitional = function(e, r, s) {
|
|
1395
|
+
function i(a, o) {
|
|
1396
|
+
return "[Axios v" + ir + "] Transitional option '" + a + "'" + o + (s ? ". " + s : "");
|
|
1397
1397
|
}
|
|
1398
|
-
return (
|
|
1398
|
+
return (a, o, c) => {
|
|
1399
1399
|
if (e === !1)
|
|
1400
|
-
throw new
|
|
1401
|
-
i(
|
|
1402
|
-
|
|
1400
|
+
throw new N(
|
|
1401
|
+
i(o, " has been removed" + (r ? " in " + r : "")),
|
|
1402
|
+
N.ERR_DEPRECATED
|
|
1403
1403
|
);
|
|
1404
|
-
return r && !
|
|
1404
|
+
return r && !Ot[o] && (Ot[o] = !0, console.warn(
|
|
1405
1405
|
i(
|
|
1406
|
-
|
|
1406
|
+
o,
|
|
1407
1407
|
" has been deprecated since v" + r + " 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
|
+
Ve.spelling = function(e) {
|
|
1413
1413
|
return (r, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
|
|
1414
1414
|
};
|
|
1415
|
-
function
|
|
1415
|
+
function qn(t, e, r) {
|
|
1416
1416
|
if (typeof t != "object")
|
|
1417
|
-
throw new
|
|
1417
|
+
throw new N("options must be an object", N.ERR_BAD_OPTION_VALUE);
|
|
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], h = c === void 0 || o(c, a, t);
|
|
1424
1424
|
if (h !== !0)
|
|
1425
|
-
throw new
|
|
1425
|
+
throw new N("option " + a + " must be " + h, N.ERR_BAD_OPTION_VALUE);
|
|
1426
1426
|
continue;
|
|
1427
1427
|
}
|
|
1428
1428
|
if (r !== !0)
|
|
1429
|
-
throw new
|
|
1429
|
+
throw new N("Unknown option " + a, N.ERR_BAD_OPTION);
|
|
1430
1430
|
}
|
|
1431
1431
|
}
|
|
1432
|
-
const
|
|
1433
|
-
assertOptions:
|
|
1434
|
-
validators:
|
|
1435
|
-
}, ce =
|
|
1432
|
+
const Ne = {
|
|
1433
|
+
assertOptions: qn,
|
|
1434
|
+
validators: Ve
|
|
1435
|
+
}, ce = Ne.validators;
|
|
1436
1436
|
let xe = class {
|
|
1437
1437
|
constructor(e) {
|
|
1438
1438
|
this.defaults = e || {}, this.interceptors = {
|
|
1439
|
-
request: new
|
|
1440
|
-
response: new
|
|
1439
|
+
request: new bt(),
|
|
1440
|
+
response: new bt()
|
|
1441
1441
|
};
|
|
1442
1442
|
}
|
|
1443
1443
|
/**
|
|
@@ -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,30 +1467,30 @@ let xe = class {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
_request(e, r) {
|
|
1469
1469
|
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = he(this.defaults, r);
|
|
1470
|
-
const { transitional: s, paramsSerializer: i, headers:
|
|
1471
|
-
s !== void 0 &&
|
|
1470
|
+
const { transitional: s, paramsSerializer: i, headers: a } = r;
|
|
1471
|
+
s !== void 0 && Ne.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 && (f.isFunction(i) ? r.paramsSerializer = {
|
|
1476
1476
|
serialize: i
|
|
1477
|
-
} :
|
|
1477
|
+
} : Ne.assertOptions(i, {
|
|
1478
1478
|
encode: ce.function,
|
|
1479
1479
|
serialize: ce.function
|
|
1480
|
-
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0),
|
|
1480
|
+
}, !0)), r.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? r.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : r.allowAbsoluteUrls = !0), Ne.assertOptions(r, {
|
|
1481
1481
|
baseUrl: ce.spelling("baseURL"),
|
|
1482
1482
|
withXsrfToken: ce.spelling("withXSRFToken")
|
|
1483
1483
|
}, !0), r.method = (r.method || this.defaults.method || "get").toLowerCase();
|
|
1484
|
-
let
|
|
1485
|
-
|
|
1486
|
-
|
|
1484
|
+
let o = a && f.merge(
|
|
1485
|
+
a.common,
|
|
1486
|
+
a[r.method]
|
|
1487
1487
|
);
|
|
1488
|
-
|
|
1488
|
+
a && f.forEach(
|
|
1489
1489
|
["delete", "get", "head", "post", "put", "patch", "common"],
|
|
1490
1490
|
(p) => {
|
|
1491
|
-
delete
|
|
1491
|
+
delete a[p];
|
|
1492
1492
|
}
|
|
1493
|
-
), r.headers = ne.concat(
|
|
1493
|
+
), r.headers = ne.concat(o, a);
|
|
1494
1494
|
const c = [];
|
|
1495
1495
|
let h = !0;
|
|
1496
1496
|
this.interceptors.request.forEach(function(w) {
|
|
@@ -1502,7 +1502,7 @@ let xe = class {
|
|
|
1502
1502
|
});
|
|
1503
1503
|
let d, m = 0, P;
|
|
1504
1504
|
if (!h) {
|
|
1505
|
-
const p = [
|
|
1505
|
+
const p = [It.bind(this), void 0];
|
|
1506
1506
|
for (p.unshift(...c), p.push(...u), P = p.length, d = Promise.resolve(r); m < P; )
|
|
1507
1507
|
d = d.then(p[m++], p[m++]);
|
|
1508
1508
|
return d;
|
|
@@ -1519,7 +1519,7 @@ let xe = class {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
1521
|
try {
|
|
1522
|
-
d =
|
|
1522
|
+
d = It.call(this, O);
|
|
1523
1523
|
} catch (p) {
|
|
1524
1524
|
return Promise.reject(p);
|
|
1525
1525
|
}
|
|
@@ -1529,8 +1529,8 @@ let xe = class {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
getUri(e) {
|
|
1531
1531
|
e = he(this.defaults, e);
|
|
1532
|
-
const r =
|
|
1533
|
-
return
|
|
1532
|
+
const r = tr(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
1533
|
+
return Gt(r, e.params, e.paramsSerializer);
|
|
1534
1534
|
}
|
|
1535
1535
|
};
|
|
1536
1536
|
f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
@@ -1544,44 +1544,44 @@ f.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
1544
1544
|
});
|
|
1545
1545
|
f.forEach(["post", "put", "patch"], function(e) {
|
|
1546
1546
|
function r(s) {
|
|
1547
|
-
return function(
|
|
1547
|
+
return function(a, o, c) {
|
|
1548
1548
|
return this.request(he(c || {}, {
|
|
1549
1549
|
method: e,
|
|
1550
1550
|
headers: s ? {
|
|
1551
1551
|
"Content-Type": "multipart/form-data"
|
|
1552
1552
|
} : {},
|
|
1553
|
-
url:
|
|
1554
|
-
data:
|
|
1553
|
+
url: a,
|
|
1554
|
+
data: o
|
|
1555
1555
|
}));
|
|
1556
1556
|
};
|
|
1557
1557
|
}
|
|
1558
1558
|
xe.prototype[e] = r(), xe.prototype[e + "Form"] = r(!0);
|
|
1559
1559
|
});
|
|
1560
|
-
let
|
|
1560
|
+
let Mn = class or {
|
|
1561
1561
|
constructor(e) {
|
|
1562
1562
|
if (typeof e != "function")
|
|
1563
1563
|
throw new TypeError("executor must be a function.");
|
|
1564
1564
|
let r;
|
|
1565
|
-
this.promise = new Promise(function(
|
|
1566
|
-
r =
|
|
1565
|
+
this.promise = new Promise(function(a) {
|
|
1566
|
+
r = 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
|
|
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), r(s.reason));
|
|
1585
1585
|
});
|
|
1586
1586
|
}
|
|
1587
1587
|
/**
|
|
@@ -1623,22 +1623,22 @@ let Ln = class sr {
|
|
|
1623
1623
|
static source() {
|
|
1624
1624
|
let e;
|
|
1625
1625
|
return {
|
|
1626
|
-
token: new
|
|
1626
|
+
token: new or(function(i) {
|
|
1627
1627
|
e = i;
|
|
1628
1628
|
}),
|
|
1629
1629
|
cancel: e
|
|
1630
1630
|
};
|
|
1631
1631
|
}
|
|
1632
1632
|
};
|
|
1633
|
-
function
|
|
1633
|
+
function Wn(t) {
|
|
1634
1634
|
return function(r) {
|
|
1635
1635
|
return t.apply(null, r);
|
|
1636
1636
|
};
|
|
1637
1637
|
}
|
|
1638
|
-
function
|
|
1638
|
+
function Bn(t) {
|
|
1639
1639
|
return f.isObject(t) && t.isAxiosError === !0;
|
|
1640
1640
|
}
|
|
1641
|
-
const
|
|
1641
|
+
const nt = {
|
|
1642
1642
|
Continue: 100,
|
|
1643
1643
|
SwitchingProtocols: 101,
|
|
1644
1644
|
Processing: 102,
|
|
@@ -1703,54 +1703,54 @@ const rt = {
|
|
|
1703
1703
|
NotExtended: 510,
|
|
1704
1704
|
NetworkAuthenticationRequired: 511
|
|
1705
1705
|
};
|
|
1706
|
-
Object.entries(
|
|
1707
|
-
|
|
1706
|
+
Object.entries(nt).forEach(([t, e]) => {
|
|
1707
|
+
nt[e] = t;
|
|
1708
1708
|
});
|
|
1709
|
-
function
|
|
1709
|
+
function ar(t) {
|
|
1710
1710
|
const e = new xe(t), r = Nt(xe.prototype.request, e);
|
|
1711
1711
|
return f.extend(r, xe.prototype, e, { allOwnKeys: !0 }), f.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(i) {
|
|
1712
|
-
return
|
|
1712
|
+
return ar(he(t, i));
|
|
1713
1713
|
}, r;
|
|
1714
1714
|
}
|
|
1715
|
-
const J =
|
|
1715
|
+
const J = ar(Oe);
|
|
1716
1716
|
J.Axios = xe;
|
|
1717
|
-
J.CanceledError =
|
|
1718
|
-
J.CancelToken =
|
|
1719
|
-
J.isCancel =
|
|
1720
|
-
J.VERSION =
|
|
1721
|
-
J.toFormData =
|
|
1722
|
-
J.AxiosError =
|
|
1717
|
+
J.CanceledError = ve;
|
|
1718
|
+
J.CancelToken = Mn;
|
|
1719
|
+
J.isCancel = Qt;
|
|
1720
|
+
J.VERSION = ir;
|
|
1721
|
+
J.toFormData = He;
|
|
1722
|
+
J.AxiosError = N;
|
|
1723
1723
|
J.Cancel = J.CanceledError;
|
|
1724
1724
|
J.all = function(e) {
|
|
1725
1725
|
return Promise.all(e);
|
|
1726
1726
|
};
|
|
1727
|
-
J.spread =
|
|
1728
|
-
J.isAxiosError =
|
|
1727
|
+
J.spread = Wn;
|
|
1728
|
+
J.isAxiosError = Bn;
|
|
1729
1729
|
J.mergeConfig = he;
|
|
1730
1730
|
J.AxiosHeaders = ne;
|
|
1731
|
-
J.formToJSON = (t) =>
|
|
1732
|
-
J.getAdapter =
|
|
1733
|
-
J.HttpStatusCode =
|
|
1731
|
+
J.formToJSON = (t) => Zt(f.isHTMLForm(t) ? new FormData(t) : t);
|
|
1732
|
+
J.getAdapter = sr.getAdapter;
|
|
1733
|
+
J.HttpStatusCode = nt;
|
|
1734
1734
|
J.default = J;
|
|
1735
1735
|
const {
|
|
1736
|
-
Axios:
|
|
1737
|
-
AxiosError:
|
|
1738
|
-
CanceledError:
|
|
1739
|
-
isCancel:
|
|
1740
|
-
CancelToken:
|
|
1741
|
-
VERSION:
|
|
1742
|
-
all:
|
|
1743
|
-
Cancel:
|
|
1744
|
-
isAxiosError:
|
|
1745
|
-
spread:
|
|
1746
|
-
toFormData:
|
|
1747
|
-
AxiosHeaders:
|
|
1748
|
-
HttpStatusCode:
|
|
1749
|
-
formToJSON:
|
|
1750
|
-
getAdapter:
|
|
1751
|
-
mergeConfig:
|
|
1736
|
+
Axios: Qs,
|
|
1737
|
+
AxiosError: ei,
|
|
1738
|
+
CanceledError: ti,
|
|
1739
|
+
isCancel: ri,
|
|
1740
|
+
CancelToken: ni,
|
|
1741
|
+
VERSION: si,
|
|
1742
|
+
all: ii,
|
|
1743
|
+
Cancel: oi,
|
|
1744
|
+
isAxiosError: ai,
|
|
1745
|
+
spread: li,
|
|
1746
|
+
toFormData: ci,
|
|
1747
|
+
AxiosHeaders: di,
|
|
1748
|
+
HttpStatusCode: ui,
|
|
1749
|
+
formToJSON: pi,
|
|
1750
|
+
getAdapter: fi,
|
|
1751
|
+
mergeConfig: xi
|
|
1752
1752
|
} = J;
|
|
1753
|
-
class
|
|
1753
|
+
class hi {
|
|
1754
1754
|
baseUrl;
|
|
1755
1755
|
apiKey;
|
|
1756
1756
|
appId;
|
|
@@ -1781,25 +1781,25 @@ class ui {
|
|
|
1781
1781
|
* @param data Optional request body
|
|
1782
1782
|
* @param extraHeaders Optional custom headers
|
|
1783
1783
|
*/
|
|
1784
|
-
async request(e, r, s, i = {},
|
|
1784
|
+
async request(e, r, 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: r,
|
|
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 J.isAxiosError(
|
|
1800
|
-
message:
|
|
1801
|
-
status:
|
|
1802
|
-
} : { message:
|
|
1798
|
+
} catch (o) {
|
|
1799
|
+
throw J.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 =================
|
|
@@ -2045,7 +2045,7 @@ class ui {
|
|
|
2045
2045
|
throw new Error("searchUserDataByKeys: 'userId' is required");
|
|
2046
2046
|
const i = new URLSearchParams(
|
|
2047
2047
|
Object.entries(s).reduce(
|
|
2048
|
-
(
|
|
2048
|
+
(a, [o, c]) => (c != null && (a[o] = String(c)), a),
|
|
2049
2049
|
{}
|
|
2050
2050
|
)
|
|
2051
2051
|
).toString();
|
|
@@ -2259,24 +2259,24 @@ var _e = { exports: {} }, Ee = {};
|
|
|
2259
2259
|
* This source code is licensed under the MIT license found in the
|
|
2260
2260
|
* LICENSE file in the root directory of this source tree.
|
|
2261
2261
|
*/
|
|
2262
|
-
var
|
|
2263
|
-
function
|
|
2264
|
-
if (
|
|
2265
|
-
|
|
2262
|
+
var zt;
|
|
2263
|
+
function Hn() {
|
|
2264
|
+
if (zt) return Ee;
|
|
2265
|
+
zt = 1;
|
|
2266
2266
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
2267
|
-
function r(s, i,
|
|
2268
|
-
var
|
|
2269
|
-
if (
|
|
2270
|
-
|
|
2267
|
+
function r(s, i, a) {
|
|
2268
|
+
var o = null;
|
|
2269
|
+
if (a !== void 0 && (o = "" + a), i.key !== void 0 && (o = "" + i.key), "key" in i) {
|
|
2270
|
+
a = {};
|
|
2271
2271
|
for (var c in i)
|
|
2272
|
-
c !== "key" && (
|
|
2273
|
-
} else
|
|
2274
|
-
return i =
|
|
2272
|
+
c !== "key" && (a[c] = i[c]);
|
|
2273
|
+
} else a = i;
|
|
2274
|
+
return i = a.ref, {
|
|
2275
2275
|
$$typeof: t,
|
|
2276
2276
|
type: s,
|
|
2277
|
-
key:
|
|
2277
|
+
key: o,
|
|
2278
2278
|
ref: i !== void 0 ? i : null,
|
|
2279
|
-
props:
|
|
2279
|
+
props: a
|
|
2280
2280
|
};
|
|
2281
2281
|
}
|
|
2282
2282
|
return Ee.Fragment = e, Ee.jsx = r, Ee.jsxs = r, Ee;
|
|
@@ -2291,9 +2291,9 @@ var Ce = {};
|
|
|
2291
2291
|
* This source code is licensed under the MIT license found in the
|
|
2292
2292
|
* LICENSE file in the root directory of this source tree.
|
|
2293
2293
|
*/
|
|
2294
|
-
var
|
|
2295
|
-
function
|
|
2296
|
-
return
|
|
2294
|
+
var At;
|
|
2295
|
+
function Vn() {
|
|
2296
|
+
return At || (At = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
2297
2297
|
function t(l) {
|
|
2298
2298
|
if (l == null) return null;
|
|
2299
2299
|
if (typeof l == "function")
|
|
@@ -2308,7 +2308,7 @@ function Bn() {
|
|
|
2308
2308
|
return "StrictMode";
|
|
2309
2309
|
case g:
|
|
2310
2310
|
return "Suspense";
|
|
2311
|
-
case
|
|
2311
|
+
case j:
|
|
2312
2312
|
return "SuspenseList";
|
|
2313
2313
|
case M:
|
|
2314
2314
|
return "Activity";
|
|
@@ -2349,11 +2349,11 @@ function Bn() {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
if (b) {
|
|
2351
2351
|
b = console;
|
|
2352
|
-
var S = b.error,
|
|
2352
|
+
var S = b.error, v = typeof Symbol == "function" && Symbol.toStringTag && l[Symbol.toStringTag] || l.constructor.name || "Object";
|
|
2353
2353
|
return S.call(
|
|
2354
2354
|
b,
|
|
2355
2355
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
2356
|
-
|
|
2356
|
+
v
|
|
2357
2357
|
), e(l);
|
|
2358
2358
|
}
|
|
2359
2359
|
}
|
|
@@ -2372,10 +2372,10 @@ function Bn() {
|
|
|
2372
2372
|
var l = E.A;
|
|
2373
2373
|
return l === null ? null : l.getOwner();
|
|
2374
2374
|
}
|
|
2375
|
-
function
|
|
2375
|
+
function a() {
|
|
2376
2376
|
return Error("react-stack-top-frame");
|
|
2377
2377
|
}
|
|
2378
|
-
function
|
|
2378
|
+
function o(l) {
|
|
2379
2379
|
if (V.call(l, "key")) {
|
|
2380
2380
|
var b = Object.getOwnPropertyDescriptor(l, "key").get;
|
|
2381
2381
|
if (b && b.isReactWarning) return !1;
|
|
@@ -2400,14 +2400,14 @@ function Bn() {
|
|
|
2400
2400
|
"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."
|
|
2401
2401
|
)), l = this.props.ref, l !== void 0 ? l : null;
|
|
2402
2402
|
}
|
|
2403
|
-
function u(l, b, S,
|
|
2403
|
+
function u(l, b, S, v, G, ue) {
|
|
2404
2404
|
var Y = S.ref;
|
|
2405
2405
|
return l = {
|
|
2406
2406
|
$$typeof: p,
|
|
2407
2407
|
type: l,
|
|
2408
2408
|
key: b,
|
|
2409
2409
|
props: S,
|
|
2410
|
-
_owner:
|
|
2410
|
+
_owner: v
|
|
2411
2411
|
}, (Y !== void 0 ? Y : null) !== null ? Object.defineProperty(l, "ref", {
|
|
2412
2412
|
enumerable: !1,
|
|
2413
2413
|
get: h
|
|
@@ -2433,13 +2433,13 @@ function Bn() {
|
|
|
2433
2433
|
value: ue
|
|
2434
2434
|
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
2435
2435
|
}
|
|
2436
|
-
function d(l, b, S,
|
|
2436
|
+
function d(l, b, S, v, G, ue) {
|
|
2437
2437
|
var Y = b.children;
|
|
2438
2438
|
if (Y !== void 0)
|
|
2439
|
-
if (
|
|
2439
|
+
if (v)
|
|
2440
2440
|
if (z(Y)) {
|
|
2441
|
-
for (
|
|
2442
|
-
m(Y[
|
|
2441
|
+
for (v = 0; v < Y.length; v++)
|
|
2442
|
+
m(Y[v]);
|
|
2443
2443
|
Object.freeze && Object.freeze(Y);
|
|
2444
2444
|
} else
|
|
2445
2445
|
console.error(
|
|
@@ -2448,26 +2448,26 @@ function Bn() {
|
|
|
2448
2448
|
else m(Y);
|
|
2449
2449
|
if (V.call(b, "key")) {
|
|
2450
2450
|
Y = t(l);
|
|
2451
|
-
var
|
|
2452
|
-
return
|
|
2451
|
+
var ae = Object.keys(b).filter(function(Ye) {
|
|
2452
|
+
return Ye !== "key";
|
|
2453
2453
|
});
|
|
2454
|
-
|
|
2454
|
+
v = 0 < ae.length ? "{key: someKey, " + ae.join(": ..., ") + ": ...}" : "{key: someKey}", L[Y + v] || (ae = 0 < ae.length ? "{" + ae.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2455
2455
|
`A props object containing a "key" prop is being spread into JSX:
|
|
2456
2456
|
let props = %s;
|
|
2457
2457
|
<%s {...props} />
|
|
2458
2458
|
React keys must be passed directly to JSX without using spread:
|
|
2459
2459
|
let props = %s;
|
|
2460
2460
|
<%s key={someKey} {...props} />`,
|
|
2461
|
-
|
|
2461
|
+
v,
|
|
2462
2462
|
Y,
|
|
2463
|
-
|
|
2463
|
+
ae,
|
|
2464
2464
|
Y
|
|
2465
|
-
), L[Y +
|
|
2465
|
+
), L[Y + v] = !0);
|
|
2466
2466
|
}
|
|
2467
|
-
if (Y = null, S !== void 0 && (r(S), Y = "" + S),
|
|
2467
|
+
if (Y = null, S !== void 0 && (r(S), Y = "" + S), o(b) && (r(b.key), Y = "" + b.key), "key" in b) {
|
|
2468
2468
|
S = {};
|
|
2469
|
-
for (var
|
|
2470
|
-
|
|
2469
|
+
for (var je in b)
|
|
2470
|
+
je !== "key" && (S[je] = b[je]);
|
|
2471
2471
|
} else S = b;
|
|
2472
2472
|
return Y && c(
|
|
2473
2473
|
S,
|
|
@@ -2487,7 +2487,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2487
2487
|
function P(l) {
|
|
2488
2488
|
return typeof l == "object" && l !== null && l.$$typeof === p;
|
|
2489
2489
|
}
|
|
2490
|
-
var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"),
|
|
2490
|
+
var O = Te, p = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), T = Symbol.for("react.profiler"), A = Symbol.for("react.consumer"), y = Symbol.for("react.context"), _ = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), M = Symbol.for("react.activity"), X = Symbol.for("react.client.reference"), E = O.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, z = Array.isArray, I = console.createTask ? console.createTask : function() {
|
|
2491
2491
|
return null;
|
|
2492
2492
|
};
|
|
2493
2493
|
O = {
|
|
@@ -2497,49 +2497,49 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2497
2497
|
};
|
|
2498
2498
|
var W, Z = {}, B = O.react_stack_bottom_frame.bind(
|
|
2499
2499
|
O,
|
|
2500
|
-
|
|
2501
|
-
)(), K = I(s(
|
|
2500
|
+
a
|
|
2501
|
+
)(), K = I(s(a)), L = {};
|
|
2502
2502
|
Ce.Fragment = x, Ce.jsx = function(l, b, S) {
|
|
2503
|
-
var
|
|
2503
|
+
var v = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
2504
2504
|
return d(
|
|
2505
2505
|
l,
|
|
2506
2506
|
b,
|
|
2507
2507
|
S,
|
|
2508
2508
|
!1,
|
|
2509
|
-
|
|
2510
|
-
|
|
2509
|
+
v ? Error("react-stack-top-frame") : B,
|
|
2510
|
+
v ? I(s(l)) : K
|
|
2511
2511
|
);
|
|
2512
2512
|
}, Ce.jsxs = function(l, b, S) {
|
|
2513
|
-
var
|
|
2513
|
+
var v = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
2514
2514
|
return d(
|
|
2515
2515
|
l,
|
|
2516
2516
|
b,
|
|
2517
2517
|
S,
|
|
2518
2518
|
!0,
|
|
2519
|
-
|
|
2520
|
-
|
|
2519
|
+
v ? Error("react-stack-top-frame") : B,
|
|
2520
|
+
v ? I(s(l)) : K
|
|
2521
2521
|
);
|
|
2522
2522
|
};
|
|
2523
2523
|
})()), Ce;
|
|
2524
2524
|
}
|
|
2525
|
-
var
|
|
2526
|
-
function
|
|
2527
|
-
return
|
|
2525
|
+
var _t;
|
|
2526
|
+
function Yn() {
|
|
2527
|
+
return _t || (_t = 1, process.env.NODE_ENV === "production" ? _e.exports = Hn() : _e.exports = Vn()), _e.exports;
|
|
2528
2528
|
}
|
|
2529
|
-
var n =
|
|
2529
|
+
var n = Yn();
|
|
2530
2530
|
/**
|
|
2531
2531
|
* @license lucide-react v0.544.0 - ISC
|
|
2532
2532
|
*
|
|
2533
2533
|
* This source code is licensed under the ISC license.
|
|
2534
2534
|
* See the LICENSE file in the root directory of this source tree.
|
|
2535
2535
|
*/
|
|
2536
|
-
const
|
|
2536
|
+
const Kn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Jn = (t) => t.replace(
|
|
2537
2537
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
2538
2538
|
(e, r, s) => s ? s.toUpperCase() : r.toLowerCase()
|
|
2539
|
-
),
|
|
2540
|
-
const e =
|
|
2539
|
+
), Ut = (t) => {
|
|
2540
|
+
const e = Jn(t);
|
|
2541
2541
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2542
|
-
},
|
|
2542
|
+
}, lr = (...t) => t.filter((e, r, s) => !!e && e.trim() !== "" && s.indexOf(e) === r).join(" ").trim(), Gn = (t) => {
|
|
2543
2543
|
for (const e in t)
|
|
2544
2544
|
if (e.startsWith("aria-") || e === "role" || e === "title")
|
|
2545
2545
|
return !0;
|
|
@@ -2550,7 +2550,7 @@ const Vn = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Yn = (
|
|
|
2550
2550
|
* This source code is licensed under the ISC license.
|
|
2551
2551
|
* See the LICENSE file in the root directory of this source tree.
|
|
2552
2552
|
*/
|
|
2553
|
-
var
|
|
2553
|
+
var Xn = {
|
|
2554
2554
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2555
2555
|
width: 24,
|
|
2556
2556
|
height: 24,
|
|
@@ -2567,32 +2567,32 @@ var Jn = {
|
|
|
2567
2567
|
* This source code is licensed under the ISC license.
|
|
2568
2568
|
* See the LICENSE file in the root directory of this source tree.
|
|
2569
2569
|
*/
|
|
2570
|
-
const
|
|
2570
|
+
const Zn = $t(
|
|
2571
2571
|
({
|
|
2572
2572
|
color: t = "currentColor",
|
|
2573
2573
|
size: e = 24,
|
|
2574
2574
|
strokeWidth: r = 2,
|
|
2575
2575
|
absoluteStrokeWidth: s,
|
|
2576
2576
|
className: i = "",
|
|
2577
|
-
children:
|
|
2578
|
-
iconNode:
|
|
2577
|
+
children: a,
|
|
2578
|
+
iconNode: o,
|
|
2579
2579
|
...c
|
|
2580
|
-
}, h) =>
|
|
2580
|
+
}, h) => Ze(
|
|
2581
2581
|
"svg",
|
|
2582
2582
|
{
|
|
2583
2583
|
ref: h,
|
|
2584
|
-
...
|
|
2584
|
+
...Xn,
|
|
2585
2585
|
width: e,
|
|
2586
2586
|
height: e,
|
|
2587
2587
|
stroke: t,
|
|
2588
2588
|
strokeWidth: s ? Number(r) * 24 / Number(e) : r,
|
|
2589
|
-
className:
|
|
2590
|
-
...!
|
|
2589
|
+
className: lr("lucide", i),
|
|
2590
|
+
...!a && !Gn(c) && { "aria-hidden": "true" },
|
|
2591
2591
|
...c
|
|
2592
2592
|
},
|
|
2593
2593
|
[
|
|
2594
|
-
...
|
|
2595
|
-
...Array.isArray(
|
|
2594
|
+
...o.map(([u, d]) => Ze(u, d)),
|
|
2595
|
+
...Array.isArray(a) ? a : [a]
|
|
2596
2596
|
]
|
|
2597
2597
|
)
|
|
2598
2598
|
);
|
|
@@ -2603,19 +2603,19 @@ const Gn = Ut(
|
|
|
2603
2603
|
* See the LICENSE file in the root directory of this source tree.
|
|
2604
2604
|
*/
|
|
2605
2605
|
const q = (t, e) => {
|
|
2606
|
-
const r =
|
|
2607
|
-
({ className: s, ...i },
|
|
2608
|
-
ref:
|
|
2606
|
+
const r = $t(
|
|
2607
|
+
({ className: s, ...i }, a) => Ze(Zn, {
|
|
2608
|
+
ref: a,
|
|
2609
2609
|
iconNode: e,
|
|
2610
|
-
className:
|
|
2611
|
-
`lucide-${
|
|
2610
|
+
className: lr(
|
|
2611
|
+
`lucide-${Kn(Ut(t))}`,
|
|
2612
2612
|
`lucide-${t}`,
|
|
2613
2613
|
s
|
|
2614
2614
|
),
|
|
2615
2615
|
...i
|
|
2616
2616
|
})
|
|
2617
2617
|
);
|
|
2618
|
-
return r.displayName =
|
|
2618
|
+
return r.displayName = Ut(t), r;
|
|
2619
2619
|
};
|
|
2620
2620
|
/**
|
|
2621
2621
|
* @license lucide-react v0.544.0 - ISC
|
|
@@ -2623,7 +2623,7 @@ const q = (t, e) => {
|
|
|
2623
2623
|
* This source code is licensed under the ISC license.
|
|
2624
2624
|
* See the LICENSE file in the root directory of this source tree.
|
|
2625
2625
|
*/
|
|
2626
|
-
const
|
|
2626
|
+
const Qn = [
|
|
2627
2627
|
[
|
|
2628
2628
|
"path",
|
|
2629
2629
|
{
|
|
@@ -2632,14 +2632,14 @@ const Xn = [
|
|
|
2632
2632
|
}
|
|
2633
2633
|
],
|
|
2634
2634
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
2635
|
-
],
|
|
2635
|
+
], es = q("badge-check", Qn);
|
|
2636
2636
|
/**
|
|
2637
2637
|
* @license lucide-react v0.544.0 - ISC
|
|
2638
2638
|
*
|
|
2639
2639
|
* This source code is licensed under the ISC license.
|
|
2640
2640
|
* See the LICENSE file in the root directory of this source tree.
|
|
2641
2641
|
*/
|
|
2642
|
-
const
|
|
2642
|
+
const ts = [
|
|
2643
2643
|
[
|
|
2644
2644
|
"path",
|
|
2645
2645
|
{
|
|
@@ -2648,74 +2648,74 @@ const Qn = [
|
|
|
2648
2648
|
}
|
|
2649
2649
|
],
|
|
2650
2650
|
["circle", { cx: "12", cy: "13", r: "3", key: "1vg3eu" }]
|
|
2651
|
-
],
|
|
2651
|
+
], st = q("camera", ts);
|
|
2652
2652
|
/**
|
|
2653
2653
|
* @license lucide-react v0.544.0 - ISC
|
|
2654
2654
|
*
|
|
2655
2655
|
* This source code is licensed under the ISC license.
|
|
2656
2656
|
* See the LICENSE file in the root directory of this source tree.
|
|
2657
2657
|
*/
|
|
2658
|
-
const
|
|
2658
|
+
const rs = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], ns = q("chevron-down", rs);
|
|
2659
2659
|
/**
|
|
2660
2660
|
* @license lucide-react v0.544.0 - ISC
|
|
2661
2661
|
*
|
|
2662
2662
|
* This source code is licensed under the ISC license.
|
|
2663
2663
|
* See the LICENSE file in the root directory of this source tree.
|
|
2664
2664
|
*/
|
|
2665
|
-
const
|
|
2665
|
+
const ss = [
|
|
2666
2666
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2667
2667
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
2668
2668
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
2669
|
-
], se = q("circle-alert",
|
|
2669
|
+
], se = q("circle-alert", ss);
|
|
2670
2670
|
/**
|
|
2671
2671
|
* @license lucide-react v0.544.0 - ISC
|
|
2672
2672
|
*
|
|
2673
2673
|
* This source code is licensed under the ISC license.
|
|
2674
2674
|
* See the LICENSE file in the root directory of this source tree.
|
|
2675
2675
|
*/
|
|
2676
|
-
const
|
|
2676
|
+
const is = [
|
|
2677
2677
|
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
2678
2678
|
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
2679
|
-
], de = q("circle-check-big",
|
|
2679
|
+
], de = q("circle-check-big", is);
|
|
2680
2680
|
/**
|
|
2681
2681
|
* @license lucide-react v0.544.0 - ISC
|
|
2682
2682
|
*
|
|
2683
2683
|
* This source code is licensed under the ISC license.
|
|
2684
2684
|
* See the LICENSE file in the root directory of this source tree.
|
|
2685
2685
|
*/
|
|
2686
|
-
const
|
|
2686
|
+
const os = [
|
|
2687
2687
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
2688
2688
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
2689
|
-
],
|
|
2689
|
+
], Xe = q("circle-check", os);
|
|
2690
2690
|
/**
|
|
2691
2691
|
* @license lucide-react v0.544.0 - ISC
|
|
2692
2692
|
*
|
|
2693
2693
|
* This source code is licensed under the ISC license.
|
|
2694
2694
|
* See the LICENSE file in the root directory of this source tree.
|
|
2695
2695
|
*/
|
|
2696
|
-
const
|
|
2696
|
+
const as = [
|
|
2697
2697
|
["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
|
|
2698
2698
|
["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
|
|
2699
2699
|
["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
|
|
2700
|
-
],
|
|
2700
|
+
], ls = q("database", as);
|
|
2701
2701
|
/**
|
|
2702
2702
|
* @license lucide-react v0.544.0 - ISC
|
|
2703
2703
|
*
|
|
2704
2704
|
* This source code is licensed under the ISC license.
|
|
2705
2705
|
* See the LICENSE file in the root directory of this source tree.
|
|
2706
2706
|
*/
|
|
2707
|
-
const
|
|
2707
|
+
const cs = [
|
|
2708
2708
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
2709
2709
|
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
2710
2710
|
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
2711
|
-
],
|
|
2711
|
+
], ds = q("ellipsis-vertical", cs);
|
|
2712
2712
|
/**
|
|
2713
2713
|
* @license lucide-react v0.544.0 - ISC
|
|
2714
2714
|
*
|
|
2715
2715
|
* This source code is licensed under the ISC license.
|
|
2716
2716
|
* See the LICENSE file in the root directory of this source tree.
|
|
2717
2717
|
*/
|
|
2718
|
-
const
|
|
2718
|
+
const us = [
|
|
2719
2719
|
[
|
|
2720
2720
|
"path",
|
|
2721
2721
|
{
|
|
@@ -2732,14 +2732,14 @@ const cs = [
|
|
|
2732
2732
|
}
|
|
2733
2733
|
],
|
|
2734
2734
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
2735
|
-
],
|
|
2735
|
+
], ct = q("eye-off", us);
|
|
2736
2736
|
/**
|
|
2737
2737
|
* @license lucide-react v0.544.0 - ISC
|
|
2738
2738
|
*
|
|
2739
2739
|
* This source code is licensed under the ISC license.
|
|
2740
2740
|
* See the LICENSE file in the root directory of this source tree.
|
|
2741
2741
|
*/
|
|
2742
|
-
const
|
|
2742
|
+
const ps = [
|
|
2743
2743
|
[
|
|
2744
2744
|
"path",
|
|
2745
2745
|
{
|
|
@@ -2748,14 +2748,14 @@ const ds = [
|
|
|
2748
2748
|
}
|
|
2749
2749
|
],
|
|
2750
2750
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
2751
|
-
],
|
|
2751
|
+
], dt = q("eye", ps);
|
|
2752
2752
|
/**
|
|
2753
2753
|
* @license lucide-react v0.544.0 - ISC
|
|
2754
2754
|
*
|
|
2755
2755
|
* This source code is licensed under the ISC license.
|
|
2756
2756
|
* See the LICENSE file in the root directory of this source tree.
|
|
2757
2757
|
*/
|
|
2758
|
-
const
|
|
2758
|
+
const fs = [
|
|
2759
2759
|
["path", { d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8", key: "5wwlr5" }],
|
|
2760
2760
|
[
|
|
2761
2761
|
"path",
|
|
@@ -2764,25 +2764,25 @@ const us = [
|
|
|
2764
2764
|
key: "r6nss1"
|
|
2765
2765
|
}
|
|
2766
2766
|
]
|
|
2767
|
-
],
|
|
2767
|
+
], xs = q("house", fs);
|
|
2768
2768
|
/**
|
|
2769
2769
|
* @license lucide-react v0.544.0 - ISC
|
|
2770
2770
|
*
|
|
2771
2771
|
* This source code is licensed under the ISC license.
|
|
2772
2772
|
* See the LICENSE file in the root directory of this source tree.
|
|
2773
2773
|
*/
|
|
2774
|
-
const
|
|
2774
|
+
const hs = [
|
|
2775
2775
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", ry: "2", key: "1m3agn" }],
|
|
2776
2776
|
["circle", { cx: "9", cy: "9", r: "2", key: "af1f0g" }],
|
|
2777
2777
|
["path", { d: "m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21", key: "1xmnt7" }]
|
|
2778
|
-
],
|
|
2778
|
+
], cr = q("image", hs);
|
|
2779
2779
|
/**
|
|
2780
2780
|
* @license lucide-react v0.544.0 - ISC
|
|
2781
2781
|
*
|
|
2782
2782
|
* This source code is licensed under the ISC license.
|
|
2783
2783
|
* See the LICENSE file in the root directory of this source tree.
|
|
2784
2784
|
*/
|
|
2785
|
-
const
|
|
2785
|
+
const ms = [
|
|
2786
2786
|
[
|
|
2787
2787
|
"path",
|
|
2788
2788
|
{
|
|
@@ -2791,43 +2791,43 @@ const xs = [
|
|
|
2791
2791
|
}
|
|
2792
2792
|
],
|
|
2793
2793
|
["circle", { cx: "16.5", cy: "7.5", r: ".5", fill: "currentColor", key: "w0ekpg" }]
|
|
2794
|
-
],
|
|
2794
|
+
], dr = q("key-round", ms);
|
|
2795
2795
|
/**
|
|
2796
2796
|
* @license lucide-react v0.544.0 - ISC
|
|
2797
2797
|
*
|
|
2798
2798
|
* This source code is licensed under the ISC license.
|
|
2799
2799
|
* See the LICENSE file in the root directory of this source tree.
|
|
2800
2800
|
*/
|
|
2801
|
-
const
|
|
2801
|
+
const gs = [
|
|
2802
2802
|
["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
|
|
2803
2803
|
["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
|
|
2804
2804
|
["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
|
|
2805
|
-
],
|
|
2805
|
+
], ut = q("key", gs);
|
|
2806
2806
|
/**
|
|
2807
2807
|
* @license lucide-react v0.544.0 - ISC
|
|
2808
2808
|
*
|
|
2809
2809
|
* This source code is licensed under the ISC license.
|
|
2810
2810
|
* See the LICENSE file in the root directory of this source tree.
|
|
2811
2811
|
*/
|
|
2812
|
-
const
|
|
2812
|
+
const ys = [
|
|
2813
2813
|
["path", { d: "M9 17H7A5 5 0 0 1 7 7h2", key: "8i5ue5" }],
|
|
2814
2814
|
["path", { d: "M15 7h2a5 5 0 1 1 0 10h-2", key: "1b9ql8" }],
|
|
2815
2815
|
["line", { x1: "8", x2: "16", y1: "12", y2: "12", key: "1jonct" }]
|
|
2816
|
-
],
|
|
2816
|
+
], bs = q("link-2", ys);
|
|
2817
2817
|
/**
|
|
2818
2818
|
* @license lucide-react v0.544.0 - ISC
|
|
2819
2819
|
*
|
|
2820
2820
|
* This source code is licensed under the ISC license.
|
|
2821
2821
|
* See the LICENSE file in the root directory of this source tree.
|
|
2822
2822
|
*/
|
|
2823
|
-
const
|
|
2823
|
+
const ws = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], ie = q("loader-circle", ws);
|
|
2824
2824
|
/**
|
|
2825
2825
|
* @license lucide-react v0.544.0 - ISC
|
|
2826
2826
|
*
|
|
2827
2827
|
* This source code is licensed under the ISC license.
|
|
2828
2828
|
* See the LICENSE file in the root directory of this source tree.
|
|
2829
2829
|
*/
|
|
2830
|
-
const
|
|
2830
|
+
const vs = [
|
|
2831
2831
|
["path", { d: "M12 2v4", key: "3427ic" }],
|
|
2832
2832
|
["path", { d: "m16.2 7.8 2.9-2.9", key: "r700ao" }],
|
|
2833
2833
|
["path", { d: "M18 12h4", key: "wj9ykh" }],
|
|
@@ -2836,45 +2836,45 @@ const bs = [
|
|
|
2836
2836
|
["path", { d: "m4.9 19.1 2.9-2.9", key: "bwix9q" }],
|
|
2837
2837
|
["path", { d: "M2 12h4", key: "j09sii" }],
|
|
2838
2838
|
["path", { d: "m4.9 4.9 2.9 2.9", key: "giyufr" }]
|
|
2839
|
-
],
|
|
2839
|
+
], js = q("loader", vs);
|
|
2840
2840
|
/**
|
|
2841
2841
|
* @license lucide-react v0.544.0 - ISC
|
|
2842
2842
|
*
|
|
2843
2843
|
* This source code is licensed under the ISC license.
|
|
2844
2844
|
* See the LICENSE file in the root directory of this source tree.
|
|
2845
2845
|
*/
|
|
2846
|
-
const
|
|
2846
|
+
const Ss = [
|
|
2847
2847
|
["rect", { width: "18", height: "11", x: "3", y: "11", rx: "2", ry: "2", key: "1w4ew1" }],
|
|
2848
2848
|
["path", { d: "M7 11V7a5 5 0 0 1 10 0v4", key: "fwvmzm" }]
|
|
2849
|
-
], ge = q("lock",
|
|
2849
|
+
], ge = q("lock", Ss);
|
|
2850
2850
|
/**
|
|
2851
2851
|
* @license lucide-react v0.544.0 - ISC
|
|
2852
2852
|
*
|
|
2853
2853
|
* This source code is licensed under the ISC license.
|
|
2854
2854
|
* See the LICENSE file in the root directory of this source tree.
|
|
2855
2855
|
*/
|
|
2856
|
-
const
|
|
2856
|
+
const ks = [
|
|
2857
2857
|
["path", { d: "m16 17 5-5-5-5", key: "1bji2h" }],
|
|
2858
2858
|
["path", { d: "M21 12H9", key: "dn1m92" }],
|
|
2859
2859
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }]
|
|
2860
|
-
],
|
|
2860
|
+
], pt = q("log-out", ks);
|
|
2861
2861
|
/**
|
|
2862
2862
|
* @license lucide-react v0.544.0 - ISC
|
|
2863
2863
|
*
|
|
2864
2864
|
* This source code is licensed under the ISC license.
|
|
2865
2865
|
* See the LICENSE file in the root directory of this source tree.
|
|
2866
2866
|
*/
|
|
2867
|
-
const
|
|
2867
|
+
const Es = [
|
|
2868
2868
|
["path", { d: "m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7", key: "132q7q" }],
|
|
2869
2869
|
["rect", { x: "2", y: "4", width: "20", height: "16", rx: "2", key: "izxlao" }]
|
|
2870
|
-
], pe = q("mail",
|
|
2870
|
+
], pe = q("mail", Es);
|
|
2871
2871
|
/**
|
|
2872
2872
|
* @license lucide-react v0.544.0 - ISC
|
|
2873
2873
|
*
|
|
2874
2874
|
* This source code is licensed under the ISC license.
|
|
2875
2875
|
* See the LICENSE file in the root directory of this source tree.
|
|
2876
2876
|
*/
|
|
2877
|
-
const
|
|
2877
|
+
const Cs = [
|
|
2878
2878
|
[
|
|
2879
2879
|
"path",
|
|
2880
2880
|
{
|
|
@@ -2883,14 +2883,14 @@ const ks = [
|
|
|
2883
2883
|
}
|
|
2884
2884
|
],
|
|
2885
2885
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
2886
|
-
],
|
|
2886
|
+
], Ts = q("map-pin", Cs);
|
|
2887
2887
|
/**
|
|
2888
2888
|
* @license lucide-react v0.544.0 - ISC
|
|
2889
2889
|
*
|
|
2890
2890
|
* This source code is licensed under the ISC license.
|
|
2891
2891
|
* See the LICENSE file in the root directory of this source tree.
|
|
2892
2892
|
*/
|
|
2893
|
-
const
|
|
2893
|
+
const Rs = [
|
|
2894
2894
|
["path", { d: "M13 21h8", key: "1jsn5i" }],
|
|
2895
2895
|
[
|
|
2896
2896
|
"path",
|
|
@@ -2899,14 +2899,14 @@ const Cs = [
|
|
|
2899
2899
|
key: "1a8usu"
|
|
2900
2900
|
}
|
|
2901
2901
|
]
|
|
2902
|
-
],
|
|
2902
|
+
], Ps = q("pen-line", Rs);
|
|
2903
2903
|
/**
|
|
2904
2904
|
* @license lucide-react v0.544.0 - ISC
|
|
2905
2905
|
*
|
|
2906
2906
|
* This source code is licensed under the ISC license.
|
|
2907
2907
|
* See the LICENSE file in the root directory of this source tree.
|
|
2908
2908
|
*/
|
|
2909
|
-
const
|
|
2909
|
+
const Is = [
|
|
2910
2910
|
[
|
|
2911
2911
|
"path",
|
|
2912
2912
|
{
|
|
@@ -2914,14 +2914,14 @@ const Rs = [
|
|
|
2914
2914
|
key: "9njp5v"
|
|
2915
2915
|
}
|
|
2916
2916
|
]
|
|
2917
|
-
],
|
|
2917
|
+
], Os = q("phone", Is);
|
|
2918
2918
|
/**
|
|
2919
2919
|
* @license lucide-react v0.544.0 - ISC
|
|
2920
2920
|
*
|
|
2921
2921
|
* This source code is licensed under the ISC license.
|
|
2922
2922
|
* See the LICENSE file in the root directory of this source tree.
|
|
2923
2923
|
*/
|
|
2924
|
-
const
|
|
2924
|
+
const zs = [
|
|
2925
2925
|
[
|
|
2926
2926
|
"path",
|
|
2927
2927
|
{
|
|
@@ -2931,14 +2931,14 @@ const Is = [
|
|
|
2931
2931
|
],
|
|
2932
2932
|
["path", { d: "M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7", key: "1ydtos" }],
|
|
2933
2933
|
["path", { d: "M7 3v4a1 1 0 0 0 1 1h7", key: "t51u73" }]
|
|
2934
|
-
],
|
|
2934
|
+
], As = q("save", zs);
|
|
2935
2935
|
/**
|
|
2936
2936
|
* @license lucide-react v0.544.0 - ISC
|
|
2937
2937
|
*
|
|
2938
2938
|
* This source code is licensed under the ISC license.
|
|
2939
2939
|
* See the LICENSE file in the root directory of this source tree.
|
|
2940
2940
|
*/
|
|
2941
|
-
const
|
|
2941
|
+
const _s = [
|
|
2942
2942
|
[
|
|
2943
2943
|
"path",
|
|
2944
2944
|
{
|
|
@@ -2947,14 +2947,14 @@ const zs = [
|
|
|
2947
2947
|
}
|
|
2948
2948
|
],
|
|
2949
2949
|
["path", { d: "m21.854 2.147-10.94 10.939", key: "12cjpa" }]
|
|
2950
|
-
],
|
|
2950
|
+
], ft = q("send", _s);
|
|
2951
2951
|
/**
|
|
2952
2952
|
* @license lucide-react v0.544.0 - ISC
|
|
2953
2953
|
*
|
|
2954
2954
|
* This source code is licensed under the ISC license.
|
|
2955
2955
|
* See the LICENSE file in the root directory of this source tree.
|
|
2956
2956
|
*/
|
|
2957
|
-
const
|
|
2957
|
+
const Us = [
|
|
2958
2958
|
[
|
|
2959
2959
|
"path",
|
|
2960
2960
|
{
|
|
@@ -2963,14 +2963,14 @@ const As = [
|
|
|
2963
2963
|
}
|
|
2964
2964
|
],
|
|
2965
2965
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
2966
|
-
],
|
|
2966
|
+
], Ds = q("settings", Us);
|
|
2967
2967
|
/**
|
|
2968
2968
|
* @license lucide-react v0.544.0 - ISC
|
|
2969
2969
|
*
|
|
2970
2970
|
* This source code is licensed under the ISC license.
|
|
2971
2971
|
* See the LICENSE file in the root directory of this source tree.
|
|
2972
2972
|
*/
|
|
2973
|
-
const
|
|
2973
|
+
const $s = [
|
|
2974
2974
|
[
|
|
2975
2975
|
"path",
|
|
2976
2976
|
{
|
|
@@ -2978,7 +2978,7 @@ const Us = [
|
|
|
2978
2978
|
key: "oel41y"
|
|
2979
2979
|
}
|
|
2980
2980
|
]
|
|
2981
|
-
],
|
|
2981
|
+
], ur = q("shield", $s);
|
|
2982
2982
|
/**
|
|
2983
2983
|
* @license lucide-react v0.544.0 - ISC
|
|
2984
2984
|
*
|
|
@@ -2991,14 +2991,14 @@ const Ns = [
|
|
|
2991
2991
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
2992
2992
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
2993
2993
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
2994
|
-
],
|
|
2994
|
+
], Fe = q("trash-2", Ns);
|
|
2995
2995
|
/**
|
|
2996
2996
|
* @license lucide-react v0.544.0 - ISC
|
|
2997
2997
|
*
|
|
2998
2998
|
* This source code is licensed under the ISC license.
|
|
2999
2999
|
* See the LICENSE file in the root directory of this source tree.
|
|
3000
3000
|
*/
|
|
3001
|
-
const
|
|
3001
|
+
const Fs = [
|
|
3002
3002
|
[
|
|
3003
3003
|
"path",
|
|
3004
3004
|
{
|
|
@@ -3008,54 +3008,54 @@ const $s = [
|
|
|
3008
3008
|
],
|
|
3009
3009
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3010
3010
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3011
|
-
],
|
|
3011
|
+
], Dt = q("triangle-alert", Fs);
|
|
3012
3012
|
/**
|
|
3013
3013
|
* @license lucide-react v0.544.0 - ISC
|
|
3014
3014
|
*
|
|
3015
3015
|
* This source code is licensed under the ISC license.
|
|
3016
3016
|
* See the LICENSE file in the root directory of this source tree.
|
|
3017
3017
|
*/
|
|
3018
|
-
const
|
|
3018
|
+
const Ls = [
|
|
3019
3019
|
["path", { d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", key: "1yyitq" }],
|
|
3020
3020
|
["circle", { cx: "9", cy: "7", r: "4", key: "nufk8" }],
|
|
3021
3021
|
["line", { x1: "17", x2: "22", y1: "8", y2: "13", key: "3nzzx3" }],
|
|
3022
3022
|
["line", { x1: "22", x2: "17", y1: "8", y2: "13", key: "1swrse" }]
|
|
3023
|
-
],
|
|
3023
|
+
], qs = q("user-x", Ls);
|
|
3024
3024
|
/**
|
|
3025
3025
|
* @license lucide-react v0.544.0 - ISC
|
|
3026
3026
|
*
|
|
3027
3027
|
* This source code is licensed under the ISC license.
|
|
3028
3028
|
* See the LICENSE file in the root directory of this source tree.
|
|
3029
3029
|
*/
|
|
3030
|
-
const
|
|
3030
|
+
const Ms = [
|
|
3031
3031
|
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
3032
3032
|
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
3033
|
-
], be = q("user",
|
|
3033
|
+
], be = q("user", Ms);
|
|
3034
3034
|
/**
|
|
3035
3035
|
* @license lucide-react v0.544.0 - ISC
|
|
3036
3036
|
*
|
|
3037
3037
|
* This source code is licensed under the ISC license.
|
|
3038
3038
|
* See the LICENSE file in the root directory of this source tree.
|
|
3039
3039
|
*/
|
|
3040
|
-
const
|
|
3040
|
+
const Ws = [
|
|
3041
3041
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
3042
3042
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
3043
|
-
], ze = q("x",
|
|
3043
|
+
], ze = q("x", Ws), pr = xr(null), mi = ({
|
|
3044
3044
|
authix: t,
|
|
3045
3045
|
children: e
|
|
3046
|
-
}) => /* @__PURE__ */ n.jsx(
|
|
3047
|
-
const t =
|
|
3046
|
+
}) => /* @__PURE__ */ n.jsx(pr.Provider, { value: t, children: e }), me = () => {
|
|
3047
|
+
const t = hr(pr);
|
|
3048
3048
|
if (!t)
|
|
3049
3049
|
throw new Error("useAuthix must be used inside <AuthixProvider />");
|
|
3050
3050
|
return t;
|
|
3051
|
-
},
|
|
3051
|
+
}, gi = ({
|
|
3052
3052
|
logoUrl: t,
|
|
3053
3053
|
logoLinkUrl: e,
|
|
3054
3054
|
title: r = "Create Your Account",
|
|
3055
3055
|
subtitle: s = "Join our platform today",
|
|
3056
3056
|
footerText: i = "Secure authentication powered by Neuctra Authix",
|
|
3057
|
-
primaryColor:
|
|
3058
|
-
gradient:
|
|
3057
|
+
primaryColor: a = "#00C214",
|
|
3058
|
+
gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3059
3059
|
darkMode: c = !0,
|
|
3060
3060
|
// Only avatar is optional
|
|
3061
3061
|
showAvatar: h = !1,
|
|
@@ -3073,7 +3073,7 @@ const qs = [
|
|
|
3073
3073
|
password: "",
|
|
3074
3074
|
role: u.length ? u[0] : "user",
|
|
3075
3075
|
...h && { avatarUrl: "" }
|
|
3076
|
-
}, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g,
|
|
3076
|
+
}, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, j] = R(null), [F, U] = R({}), [M, X] = R(!1), E = c ? "#ffffff" : "#111827", V = c ? "#a1a1aa" : "#6b7280", z = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", I = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
|
|
3077
3077
|
Te.useEffect(() => {
|
|
3078
3078
|
if (typeof window < "u") {
|
|
3079
3079
|
const L = () => X(window.innerWidth < 768);
|
|
@@ -3088,7 +3088,7 @@ const qs = [
|
|
|
3088
3088
|
return x.name.trim() || (L.name = "Name is required"), x.email.trim() ? /\S+@\S+\.\S+/.test(x.email) || (L.email = "Invalid email address") : L.email = "Email is required", x.password ? x.password.length < 6 && (L.password = "Password must be at least 6 characters") : L.password = "Password is required", U(L), Object.keys(L).length === 0;
|
|
3089
3089
|
}, B = async (L) => {
|
|
3090
3090
|
if (L.preventDefault(), !!Z()) {
|
|
3091
|
-
_(!0),
|
|
3091
|
+
_(!0), j(null);
|
|
3092
3092
|
try {
|
|
3093
3093
|
const l = {
|
|
3094
3094
|
name: x.name,
|
|
@@ -3097,12 +3097,12 @@ const qs = [
|
|
|
3097
3097
|
role: x.role,
|
|
3098
3098
|
...x.avatarUrl ? { avatarUrl: x.avatarUrl } : {}
|
|
3099
3099
|
}, b = await p.signupUser(l);
|
|
3100
|
-
b.success ? (
|
|
3100
|
+
b.success ? (j({
|
|
3101
3101
|
type: "success",
|
|
3102
3102
|
text: b.message || "Account created successfully!"
|
|
3103
|
-
}), P?.(b.user)) : (
|
|
3103
|
+
}), P?.(b.user)) : (j({ type: "error", text: b.message || "Signup failed" }), O?.(b));
|
|
3104
3104
|
} catch (l) {
|
|
3105
|
-
|
|
3105
|
+
j({
|
|
3106
3106
|
type: "error",
|
|
3107
3107
|
text: l.message || "Signup failed. Please try again."
|
|
3108
3108
|
}), O?.(l);
|
|
@@ -3175,7 +3175,7 @@ const qs = [
|
|
|
3175
3175
|
be,
|
|
3176
3176
|
{
|
|
3177
3177
|
size: 40,
|
|
3178
|
-
color:
|
|
3178
|
+
color: a,
|
|
3179
3179
|
style: { marginBottom: "10px" }
|
|
3180
3180
|
}
|
|
3181
3181
|
),
|
|
@@ -3222,7 +3222,7 @@ const qs = [
|
|
|
3222
3222
|
height: "60px",
|
|
3223
3223
|
borderRadius: "50%",
|
|
3224
3224
|
objectFit: "cover",
|
|
3225
|
-
border: `2px solid ${
|
|
3225
|
+
border: `2px solid ${a}30`
|
|
3226
3226
|
},
|
|
3227
3227
|
onError: (L) => {
|
|
3228
3228
|
const l = L.target;
|
|
@@ -3298,7 +3298,7 @@ const qs = [
|
|
|
3298
3298
|
zIndex: 10,
|
|
3299
3299
|
border: "none",
|
|
3300
3300
|
background: "transparent",
|
|
3301
|
-
color: x.role === u[0] ?
|
|
3301
|
+
color: x.role === u[0] ? a : c ? "#9ca3af" : "#6b7280",
|
|
3302
3302
|
// theme-aware inactive color
|
|
3303
3303
|
fontWeight: x.role === u[0] ? 600 : 500,
|
|
3304
3304
|
fontSize: "14px",
|
|
@@ -3320,7 +3320,7 @@ const qs = [
|
|
|
3320
3320
|
zIndex: 10,
|
|
3321
3321
|
border: "none",
|
|
3322
3322
|
background: "transparent",
|
|
3323
|
-
color: x.role === u[1] ?
|
|
3323
|
+
color: x.role === u[1] ? a : c ? "#9ca3af" : "#6b7280",
|
|
3324
3324
|
fontWeight: x.role === u[1] ? 600 : 500,
|
|
3325
3325
|
fontSize: "14px",
|
|
3326
3326
|
display: "flex",
|
|
@@ -3505,7 +3505,7 @@ const qs = [
|
|
|
3505
3505
|
cursor: "pointer",
|
|
3506
3506
|
padding: "4px"
|
|
3507
3507
|
},
|
|
3508
|
-
children: T ? /* @__PURE__ */ n.jsx(
|
|
3508
|
+
children: T ? /* @__PURE__ */ n.jsx(ct, { size: 20 }) : /* @__PURE__ */ n.jsx(dt, { size: 20 })
|
|
3509
3509
|
}
|
|
3510
3510
|
)
|
|
3511
3511
|
] }),
|
|
@@ -3540,7 +3540,7 @@ const qs = [
|
|
|
3540
3540
|
),
|
|
3541
3541
|
/* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
|
|
3542
3542
|
/* @__PURE__ */ n.jsx(
|
|
3543
|
-
|
|
3543
|
+
cr,
|
|
3544
3544
|
{
|
|
3545
3545
|
size: 20,
|
|
3546
3546
|
style: {
|
|
@@ -3581,7 +3581,7 @@ const qs = [
|
|
|
3581
3581
|
{
|
|
3582
3582
|
href: m,
|
|
3583
3583
|
style: {
|
|
3584
|
-
color:
|
|
3584
|
+
color: a,
|
|
3585
3585
|
textDecoration: "none",
|
|
3586
3586
|
fontWeight: 500
|
|
3587
3587
|
},
|
|
@@ -3600,9 +3600,9 @@ const qs = [
|
|
|
3600
3600
|
display: "flex",
|
|
3601
3601
|
alignItems: "start",
|
|
3602
3602
|
gap: "10px",
|
|
3603
|
-
backgroundColor: g.type === "success" ? `${
|
|
3604
|
-
border: g.type === "success" ? `1px solid ${
|
|
3605
|
-
color: g.type === "success" ?
|
|
3603
|
+
backgroundColor: g.type === "success" ? `${a}15` : "rgba(239,68,68,0.1)",
|
|
3604
|
+
border: g.type === "success" ? `1px solid ${a}30` : "1px solid rgba(239,68,68,0.3)",
|
|
3605
|
+
color: g.type === "success" ? a : "#ef4444"
|
|
3606
3606
|
},
|
|
3607
3607
|
children: [
|
|
3608
3608
|
g.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(se, { size: 20 }),
|
|
@@ -3617,7 +3617,7 @@ const qs = [
|
|
|
3617
3617
|
disabled: y,
|
|
3618
3618
|
style: {
|
|
3619
3619
|
padding: "12px",
|
|
3620
|
-
background:
|
|
3620
|
+
background: o,
|
|
3621
3621
|
color: "#fff",
|
|
3622
3622
|
border: "none",
|
|
3623
3623
|
borderRadius: "10px",
|
|
@@ -3632,7 +3632,7 @@ const qs = [
|
|
|
3632
3632
|
},
|
|
3633
3633
|
children: y ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
3634
3634
|
/* @__PURE__ */ n.jsx(
|
|
3635
|
-
|
|
3635
|
+
js,
|
|
3636
3636
|
{
|
|
3637
3637
|
size: 18,
|
|
3638
3638
|
style: { animation: "spin 1s linear infinite" }
|
|
@@ -3658,7 +3658,7 @@ const qs = [
|
|
|
3658
3658
|
children: [
|
|
3659
3659
|
"Secure authentication powered by",
|
|
3660
3660
|
" ",
|
|
3661
|
-
/* @__PURE__ */ n.jsx("span", { style: { color:
|
|
3661
|
+
/* @__PURE__ */ n.jsx("span", { style: { color: a, fontWeight: 600 }, children: "Neuctra Authix" })
|
|
3662
3662
|
]
|
|
3663
3663
|
}
|
|
3664
3664
|
)
|
|
@@ -3674,20 +3674,92 @@ const qs = [
|
|
|
3674
3674
|
]
|
|
3675
3675
|
}
|
|
3676
3676
|
);
|
|
3677
|
-
}
|
|
3677
|
+
};
|
|
3678
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
3679
|
+
function Ue(t) {
|
|
3680
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
3681
|
+
var r = arguments[e];
|
|
3682
|
+
for (var s in r)
|
|
3683
|
+
t[s] = r[s];
|
|
3684
|
+
}
|
|
3685
|
+
return t;
|
|
3686
|
+
}
|
|
3687
|
+
var Bs = {
|
|
3688
|
+
read: function(t) {
|
|
3689
|
+
return t[0] === '"' && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
3690
|
+
},
|
|
3691
|
+
write: function(t) {
|
|
3692
|
+
return encodeURIComponent(t).replace(
|
|
3693
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
3694
|
+
decodeURIComponent
|
|
3695
|
+
);
|
|
3696
|
+
}
|
|
3697
|
+
};
|
|
3698
|
+
function it(t, e) {
|
|
3699
|
+
function r(i, a, o) {
|
|
3700
|
+
if (!(typeof document > "u")) {
|
|
3701
|
+
o = Ue({}, e, o), typeof o.expires == "number" && (o.expires = new Date(Date.now() + o.expires * 864e5)), o.expires && (o.expires = o.expires.toUTCString()), i = encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
3702
|
+
var c = "";
|
|
3703
|
+
for (var h in o)
|
|
3704
|
+
o[h] && (c += "; " + h, o[h] !== !0 && (c += "=" + o[h].split(";")[0]));
|
|
3705
|
+
return document.cookie = i + "=" + t.write(a, i) + c;
|
|
3706
|
+
}
|
|
3707
|
+
}
|
|
3708
|
+
function s(i) {
|
|
3709
|
+
if (!(typeof document > "u" || arguments.length && !i)) {
|
|
3710
|
+
for (var a = document.cookie ? document.cookie.split("; ") : [], o = {}, c = 0; c < a.length; c++) {
|
|
3711
|
+
var h = a[c].split("="), u = h.slice(1).join("=");
|
|
3712
|
+
try {
|
|
3713
|
+
var d = decodeURIComponent(h[0]);
|
|
3714
|
+
if (o[d] = t.read(u, d), i === d)
|
|
3715
|
+
break;
|
|
3716
|
+
} catch {
|
|
3717
|
+
}
|
|
3718
|
+
}
|
|
3719
|
+
return i ? o[i] : o;
|
|
3720
|
+
}
|
|
3721
|
+
}
|
|
3722
|
+
return Object.create(
|
|
3723
|
+
{
|
|
3724
|
+
set: r,
|
|
3725
|
+
get: s,
|
|
3726
|
+
remove: function(i, a) {
|
|
3727
|
+
r(
|
|
3728
|
+
i,
|
|
3729
|
+
"",
|
|
3730
|
+
Ue({}, a, {
|
|
3731
|
+
expires: -1
|
|
3732
|
+
})
|
|
3733
|
+
);
|
|
3734
|
+
},
|
|
3735
|
+
withAttributes: function(i) {
|
|
3736
|
+
return it(this.converter, Ue({}, this.attributes, i));
|
|
3737
|
+
},
|
|
3738
|
+
withConverter: function(i) {
|
|
3739
|
+
return it(Ue({}, this.converter, i), this.attributes);
|
|
3740
|
+
}
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
attributes: { value: Object.freeze(e) },
|
|
3744
|
+
converter: { value: Object.freeze(t) }
|
|
3745
|
+
}
|
|
3746
|
+
);
|
|
3747
|
+
}
|
|
3748
|
+
var Hs = it(Bs, { path: "/" });
|
|
3749
|
+
const yi = ({
|
|
3678
3750
|
logoUrl: t,
|
|
3679
3751
|
logoLinkUrl: e,
|
|
3680
3752
|
title: r = "Sign In to Your Account",
|
|
3681
3753
|
subtitle: s = "Welcome back! Please enter your details",
|
|
3682
3754
|
footerText: i = "Secure authentication powered by Neuctra Authix",
|
|
3683
|
-
primaryColor:
|
|
3684
|
-
gradient:
|
|
3755
|
+
primaryColor: a = "#00C214",
|
|
3756
|
+
gradient: o = "linear-gradient(135deg, #22c55e, #00C214)",
|
|
3685
3757
|
darkMode: c = !0,
|
|
3686
3758
|
signupUrl: h,
|
|
3687
3759
|
onSuccess: u,
|
|
3688
3760
|
onError: d
|
|
3689
3761
|
}) => {
|
|
3690
|
-
const m = me(), [P, O] = R("login"), [p, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g,
|
|
3762
|
+
const m = me(), [P, O] = R("login"), [p, w] = R(1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(null), [g, j] = R(""), [F, U] = R(""), [M, X] = R({
|
|
3691
3763
|
email: "",
|
|
3692
3764
|
otp: "",
|
|
3693
3765
|
newPassword: ""
|
|
@@ -3701,13 +3773,22 @@ const qs = [
|
|
|
3701
3773
|
const B = async (S) => {
|
|
3702
3774
|
S.preventDefault(), A(!0), _(null);
|
|
3703
3775
|
try {
|
|
3704
|
-
const
|
|
3776
|
+
const v = await m.loginUser({ email: g, password: F }), { user: G } = v;
|
|
3705
3777
|
if (!G)
|
|
3706
|
-
throw new Error(
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3778
|
+
throw new Error(v.message || "Login failed");
|
|
3779
|
+
Hs.set("a_s_b", "true", {
|
|
3780
|
+
path: "/",
|
|
3781
|
+
// cookie valid for entire frontend
|
|
3782
|
+
expires: 1,
|
|
3783
|
+
// 1 day
|
|
3784
|
+
secure: !0,
|
|
3785
|
+
// only over HTTPS
|
|
3786
|
+
sameSite: "Lax"
|
|
3787
|
+
// or "Strict" if you want tighter control
|
|
3788
|
+
}), _({ type: "success", text: `Welcome ${G.name}` }), u?.(G);
|
|
3789
|
+
} catch (v) {
|
|
3790
|
+
const G = v.message || "Login failed";
|
|
3791
|
+
_({ type: "error", text: G }), d?.(v);
|
|
3711
3792
|
} finally {
|
|
3712
3793
|
A(!1);
|
|
3713
3794
|
}
|
|
@@ -3716,20 +3797,20 @@ const qs = [
|
|
|
3716
3797
|
}, L = async (S) => {
|
|
3717
3798
|
S.preventDefault(), A(!0), _(null);
|
|
3718
3799
|
try {
|
|
3719
|
-
const
|
|
3800
|
+
const v = await m.requestResetUserPasswordOTP({
|
|
3720
3801
|
email: M.email
|
|
3721
3802
|
});
|
|
3722
|
-
|
|
3803
|
+
v.success ? (w(2), _({
|
|
3723
3804
|
type: "success",
|
|
3724
|
-
text:
|
|
3805
|
+
text: v.message || "OTP sent to your email"
|
|
3725
3806
|
})) : _({
|
|
3726
3807
|
type: "error",
|
|
3727
|
-
text:
|
|
3808
|
+
text: v.message || "Failed to send OTP"
|
|
3728
3809
|
});
|
|
3729
|
-
} catch (
|
|
3810
|
+
} catch (v) {
|
|
3730
3811
|
_({
|
|
3731
3812
|
type: "error",
|
|
3732
|
-
text:
|
|
3813
|
+
text: v.message || "Something went wrong"
|
|
3733
3814
|
});
|
|
3734
3815
|
} finally {
|
|
3735
3816
|
A(!1);
|
|
@@ -3737,19 +3818,19 @@ const qs = [
|
|
|
3737
3818
|
}, l = async (S) => {
|
|
3738
3819
|
S.preventDefault(), A(!0), _(null);
|
|
3739
3820
|
try {
|
|
3740
|
-
const
|
|
3821
|
+
const v = await m.resetUserPassword({
|
|
3741
3822
|
email: M.email,
|
|
3742
3823
|
otp: M.otp,
|
|
3743
3824
|
newPassword: M.newPassword
|
|
3744
3825
|
});
|
|
3745
|
-
|
|
3826
|
+
v.success ? (_({
|
|
3746
3827
|
type: "success",
|
|
3747
|
-
text:
|
|
3748
|
-
}), w(1), X({ email: "", otp: "", newPassword: "" }), O("login")) : _({ type: "error", text:
|
|
3749
|
-
} catch (
|
|
3828
|
+
text: v.message || "Password reset successfully!"
|
|
3829
|
+
}), w(1), X({ email: "", otp: "", newPassword: "" }), O("login")) : _({ type: "error", text: v.message || "Reset failed" });
|
|
3830
|
+
} catch (v) {
|
|
3750
3831
|
_({
|
|
3751
3832
|
type: "error",
|
|
3752
|
-
text:
|
|
3833
|
+
text: v.message || "Something went wrong"
|
|
3753
3834
|
});
|
|
3754
3835
|
} finally {
|
|
3755
3836
|
A(!1);
|
|
@@ -3817,7 +3898,7 @@ const qs = [
|
|
|
3817
3898
|
be,
|
|
3818
3899
|
{
|
|
3819
3900
|
size: 40,
|
|
3820
|
-
color:
|
|
3901
|
+
color: a,
|
|
3821
3902
|
style: { marginBottom: "10px" }
|
|
3822
3903
|
}
|
|
3823
3904
|
),
|
|
@@ -3890,7 +3971,7 @@ const qs = [
|
|
|
3890
3971
|
type: "email",
|
|
3891
3972
|
placeholder: "Enter your email",
|
|
3892
3973
|
value: g,
|
|
3893
|
-
onChange: (S) =>
|
|
3974
|
+
onChange: (S) => j(S.target.value),
|
|
3894
3975
|
style: b
|
|
3895
3976
|
}
|
|
3896
3977
|
)
|
|
@@ -3956,7 +4037,7 @@ const qs = [
|
|
|
3956
4037
|
color: I,
|
|
3957
4038
|
cursor: "pointer"
|
|
3958
4039
|
},
|
|
3959
|
-
children: x ? /* @__PURE__ */ n.jsx(
|
|
4040
|
+
children: x ? /* @__PURE__ */ n.jsx(ct, { size: 20 }) : /* @__PURE__ */ n.jsx(dt, { size: 20 })
|
|
3960
4041
|
}
|
|
3961
4042
|
)
|
|
3962
4043
|
] })
|
|
@@ -3977,7 +4058,7 @@ const qs = [
|
|
|
3977
4058
|
{
|
|
3978
4059
|
href: h,
|
|
3979
4060
|
style: {
|
|
3980
|
-
color:
|
|
4061
|
+
color: a,
|
|
3981
4062
|
textDecoration: "none",
|
|
3982
4063
|
fontWeight: 500
|
|
3983
4064
|
},
|
|
@@ -3992,7 +4073,7 @@ const qs = [
|
|
|
3992
4073
|
style: {
|
|
3993
4074
|
background: "none",
|
|
3994
4075
|
border: "none",
|
|
3995
|
-
color:
|
|
4076
|
+
color: a,
|
|
3996
4077
|
fontWeight: 500,
|
|
3997
4078
|
cursor: "pointer"
|
|
3998
4079
|
},
|
|
@@ -4009,7 +4090,7 @@ const qs = [
|
|
|
4009
4090
|
disabled: T,
|
|
4010
4091
|
style: {
|
|
4011
4092
|
padding: "12px",
|
|
4012
|
-
background:
|
|
4093
|
+
background: o,
|
|
4013
4094
|
color: "#fff",
|
|
4014
4095
|
border: "none",
|
|
4015
4096
|
borderRadius: "10px",
|
|
@@ -4098,7 +4179,7 @@ const qs = [
|
|
|
4098
4179
|
),
|
|
4099
4180
|
/* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
|
|
4100
4181
|
/* @__PURE__ */ n.jsx(
|
|
4101
|
-
|
|
4182
|
+
dr,
|
|
4102
4183
|
{
|
|
4103
4184
|
size: 20,
|
|
4104
4185
|
style: {
|
|
@@ -4185,7 +4266,7 @@ const qs = [
|
|
|
4185
4266
|
disabled: T,
|
|
4186
4267
|
style: {
|
|
4187
4268
|
padding: "12px",
|
|
4188
|
-
background:
|
|
4269
|
+
background: o,
|
|
4189
4270
|
color: "#fff",
|
|
4190
4271
|
border: "none",
|
|
4191
4272
|
fontSize: "14px",
|
|
@@ -4227,9 +4308,9 @@ const qs = [
|
|
|
4227
4308
|
display: "flex",
|
|
4228
4309
|
alignItems: "center",
|
|
4229
4310
|
gap: "10px",
|
|
4230
|
-
backgroundColor: y.type === "success" ? `${
|
|
4231
|
-
border: y.type === "success" ? `1px solid ${
|
|
4232
|
-
color: y.type === "success" ?
|
|
4311
|
+
backgroundColor: y.type === "success" ? `${a}15` : "rgba(239,68,68,0.1)",
|
|
4312
|
+
border: y.type === "success" ? `1px solid ${a}30` : "1px solid rgba(239,68,68,0.3)",
|
|
4313
|
+
color: y.type === "success" ? a : "#ef4444"
|
|
4233
4314
|
},
|
|
4234
4315
|
children: [
|
|
4235
4316
|
y.type === "success" ? /* @__PURE__ */ n.jsx(de, { size: 20 }) : /* @__PURE__ */ n.jsx(se, { size: 20 }),
|
|
@@ -4250,7 +4331,7 @@ const qs = [
|
|
|
4250
4331
|
children: [
|
|
4251
4332
|
"Secure authentication powered by",
|
|
4252
4333
|
" ",
|
|
4253
|
-
/* @__PURE__ */ n.jsx("span", { style: { color:
|
|
4334
|
+
/* @__PURE__ */ n.jsx("span", { style: { color: a, fontWeight: 600 }, children: "Neuctra Authix" })
|
|
4254
4335
|
]
|
|
4255
4336
|
}
|
|
4256
4337
|
)
|
|
@@ -4259,38 +4340,38 @@ const qs = [
|
|
|
4259
4340
|
)
|
|
4260
4341
|
}
|
|
4261
4342
|
);
|
|
4262
|
-
},
|
|
4343
|
+
}, bi = ({
|
|
4263
4344
|
children: t,
|
|
4264
4345
|
fallback: e = null
|
|
4265
4346
|
}) => {
|
|
4266
|
-
const [r, s] = R(!1), [i,
|
|
4347
|
+
const [r, s] = R(!1), [i, a] = R(null);
|
|
4267
4348
|
if (te(() => {
|
|
4268
4349
|
s(!0);
|
|
4269
4350
|
const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
|
|
4270
|
-
|
|
4351
|
+
a(h?.split("=")[1] === "true");
|
|
4271
4352
|
}, []), !r) return null;
|
|
4272
|
-
const
|
|
4273
|
-
return i === null ?
|
|
4274
|
-
},
|
|
4353
|
+
const o = (c) => typeof c == "function" ? c() : c;
|
|
4354
|
+
return i === null ? o(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : o(e);
|
|
4355
|
+
}, wi = ({
|
|
4275
4356
|
children: t,
|
|
4276
4357
|
fallback: e = null
|
|
4277
4358
|
}) => {
|
|
4278
|
-
const [r, s] = R(!1), [i,
|
|
4359
|
+
const [r, s] = R(!1), [i, a] = R(null);
|
|
4279
4360
|
if (te(() => {
|
|
4280
4361
|
s(!0);
|
|
4281
4362
|
const h = document.cookie.split(";").map((u) => u.trim()).find((u) => u.startsWith("a_s_b="));
|
|
4282
|
-
|
|
4363
|
+
a(h?.split("=")[1] !== "true");
|
|
4283
4364
|
}, []), !r) return null;
|
|
4284
|
-
const
|
|
4285
|
-
return i === null ?
|
|
4286
|
-
},
|
|
4365
|
+
const o = (c) => typeof c == "function" ? c() : c;
|
|
4366
|
+
return i === null ? o(e) ?? null : i ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : o(e);
|
|
4367
|
+
}, Vs = ({
|
|
4287
4368
|
isOpen: t,
|
|
4288
4369
|
onClose: e,
|
|
4289
4370
|
onSuccess: r,
|
|
4290
4371
|
onError: s,
|
|
4291
4372
|
userId: i,
|
|
4292
|
-
token:
|
|
4293
|
-
colors:
|
|
4373
|
+
token: a,
|
|
4374
|
+
colors: o
|
|
4294
4375
|
}) => {
|
|
4295
4376
|
const c = me(), [h, u] = R(!1), [d, m] = R(""), [P, O] = R("warning"), [p, w] = R(!1);
|
|
4296
4377
|
if (te(() => {
|
|
@@ -4355,14 +4436,14 @@ const qs = [
|
|
|
4355
4436
|
color: "white",
|
|
4356
4437
|
flexShrink: 0
|
|
4357
4438
|
},
|
|
4358
|
-
children: /* @__PURE__ */ n.jsx(
|
|
4439
|
+
children: /* @__PURE__ */ n.jsx(Fe, { size: 20 })
|
|
4359
4440
|
}
|
|
4360
4441
|
),
|
|
4361
4442
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
4362
4443
|
"h3",
|
|
4363
4444
|
{
|
|
4364
4445
|
style: {
|
|
4365
|
-
color:
|
|
4446
|
+
color: o.textPrimary,
|
|
4366
4447
|
margin: 0,
|
|
4367
4448
|
fontSize: "20px",
|
|
4368
4449
|
fontWeight: 700,
|
|
@@ -4382,7 +4463,7 @@ const qs = [
|
|
|
4382
4463
|
style: {
|
|
4383
4464
|
background: "transparent",
|
|
4384
4465
|
border: "none",
|
|
4385
|
-
color:
|
|
4466
|
+
color: o.textTertiary,
|
|
4386
4467
|
cursor: "pointer",
|
|
4387
4468
|
padding: "8px",
|
|
4388
4469
|
borderRadius: "8px",
|
|
@@ -4395,10 +4476,10 @@ const qs = [
|
|
|
4395
4476
|
transition: "all 0.2s ease"
|
|
4396
4477
|
},
|
|
4397
4478
|
onMouseOver: (y) => {
|
|
4398
|
-
y.currentTarget.style.backgroundColor =
|
|
4479
|
+
y.currentTarget.style.backgroundColor = o.border, y.currentTarget.style.color = o.textPrimary;
|
|
4399
4480
|
},
|
|
4400
4481
|
onMouseOut: (y) => {
|
|
4401
|
-
y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.color =
|
|
4482
|
+
y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.color = o.textTertiary;
|
|
4402
4483
|
},
|
|
4403
4484
|
children: /* @__PURE__ */ n.jsx(ze, { size: 20 })
|
|
4404
4485
|
}
|
|
@@ -4413,8 +4494,8 @@ const qs = [
|
|
|
4413
4494
|
display: "flex",
|
|
4414
4495
|
gap: "16px",
|
|
4415
4496
|
padding: "20px",
|
|
4416
|
-
background: `${
|
|
4417
|
-
border: `1px solid ${
|
|
4497
|
+
background: `${o.error}15`,
|
|
4498
|
+
border: `1px solid ${o.error}30`,
|
|
4418
4499
|
borderRadius: "12px",
|
|
4419
4500
|
marginBottom: "20px"
|
|
4420
4501
|
},
|
|
@@ -4423,12 +4504,12 @@ const qs = [
|
|
|
4423
4504
|
"div",
|
|
4424
4505
|
{
|
|
4425
4506
|
style: {
|
|
4426
|
-
color:
|
|
4507
|
+
color: o.error,
|
|
4427
4508
|
flexShrink: 0,
|
|
4428
4509
|
display: "flex",
|
|
4429
4510
|
alignItems: "flex-start"
|
|
4430
4511
|
},
|
|
4431
|
-
children: /* @__PURE__ */ n.jsx(
|
|
4512
|
+
children: /* @__PURE__ */ n.jsx(Dt, { size: 24 })
|
|
4432
4513
|
}
|
|
4433
4514
|
),
|
|
4434
4515
|
/* @__PURE__ */ n.jsxs("div", { style: { flex: 1 }, children: [
|
|
@@ -4436,7 +4517,7 @@ const qs = [
|
|
|
4436
4517
|
"h4",
|
|
4437
4518
|
{
|
|
4438
4519
|
style: {
|
|
4439
|
-
color:
|
|
4520
|
+
color: o.textPrimary,
|
|
4440
4521
|
margin: "0 0 12px 0",
|
|
4441
4522
|
fontSize: "16px",
|
|
4442
4523
|
fontWeight: 600
|
|
@@ -4454,15 +4535,15 @@ const qs = [
|
|
|
4454
4535
|
},
|
|
4455
4536
|
children: [
|
|
4456
4537
|
{
|
|
4457
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
4538
|
+
icon: /* @__PURE__ */ n.jsx(ls, { size: 16 }),
|
|
4458
4539
|
text: "All your data will be permanently deleted"
|
|
4459
4540
|
},
|
|
4460
4541
|
{
|
|
4461
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
4542
|
+
icon: /* @__PURE__ */ n.jsx(qs, { size: 16 }),
|
|
4462
4543
|
text: "This action cannot be reversed"
|
|
4463
4544
|
},
|
|
4464
4545
|
{
|
|
4465
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
4546
|
+
icon: /* @__PURE__ */ n.jsx(pt, { size: 16 }),
|
|
4466
4547
|
text: "You will lose access to all services"
|
|
4467
4548
|
}
|
|
4468
4549
|
].map((y, _) => /* @__PURE__ */ n.jsxs(
|
|
@@ -4473,10 +4554,10 @@ const qs = [
|
|
|
4473
4554
|
alignItems: "center",
|
|
4474
4555
|
gap: "10px",
|
|
4475
4556
|
fontSize: "14px",
|
|
4476
|
-
color:
|
|
4557
|
+
color: o.textSecondary
|
|
4477
4558
|
},
|
|
4478
4559
|
children: [
|
|
4479
|
-
/* @__PURE__ */ n.jsx("div", { style: { color:
|
|
4560
|
+
/* @__PURE__ */ n.jsx("div", { style: { color: o.error, flexShrink: 0 }, children: y.icon }),
|
|
4480
4561
|
/* @__PURE__ */ n.jsx("span", { children: y.text })
|
|
4481
4562
|
]
|
|
4482
4563
|
},
|
|
@@ -4506,9 +4587,9 @@ const qs = [
|
|
|
4506
4587
|
style: {
|
|
4507
4588
|
padding: "10px 24px",
|
|
4508
4589
|
borderRadius: "10px",
|
|
4509
|
-
border: `1.5px solid ${
|
|
4590
|
+
border: `1.5px solid ${o.border}`,
|
|
4510
4591
|
background: "transparent",
|
|
4511
|
-
color:
|
|
4592
|
+
color: o.textPrimary,
|
|
4512
4593
|
fontSize: "14px",
|
|
4513
4594
|
fontWeight: 500,
|
|
4514
4595
|
cursor: "pointer",
|
|
@@ -4517,7 +4598,7 @@ const qs = [
|
|
|
4517
4598
|
transition: "all 0.2s ease"
|
|
4518
4599
|
},
|
|
4519
4600
|
onMouseOver: (y) => {
|
|
4520
|
-
y.currentTarget.style.backgroundColor =
|
|
4601
|
+
y.currentTarget.style.backgroundColor = o.border, y.currentTarget.style.transform = "translateY(-1px)";
|
|
4521
4602
|
},
|
|
4522
4603
|
onMouseOut: (y) => {
|
|
4523
4604
|
y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4554,7 +4635,7 @@ const qs = [
|
|
|
4554
4635
|
y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)";
|
|
4555
4636
|
},
|
|
4556
4637
|
children: [
|
|
4557
|
-
/* @__PURE__ */ n.jsx(
|
|
4638
|
+
/* @__PURE__ */ n.jsx(Fe, { size: 16 }),
|
|
4558
4639
|
"Continue to Delete"
|
|
4559
4640
|
]
|
|
4560
4641
|
}
|
|
@@ -4589,14 +4670,14 @@ const qs = [
|
|
|
4589
4670
|
color: "white",
|
|
4590
4671
|
flexShrink: 0
|
|
4591
4672
|
},
|
|
4592
|
-
children: /* @__PURE__ */ n.jsx(
|
|
4673
|
+
children: /* @__PURE__ */ n.jsx(Dt, { size: 24 })
|
|
4593
4674
|
}
|
|
4594
4675
|
),
|
|
4595
4676
|
/* @__PURE__ */ n.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ n.jsx(
|
|
4596
4677
|
"h3",
|
|
4597
4678
|
{
|
|
4598
4679
|
style: {
|
|
4599
|
-
color:
|
|
4680
|
+
color: o.textPrimary,
|
|
4600
4681
|
margin: 0,
|
|
4601
4682
|
fontSize: "20px",
|
|
4602
4683
|
fontWeight: 700,
|
|
@@ -4613,7 +4694,7 @@ const qs = [
|
|
|
4613
4694
|
"p",
|
|
4614
4695
|
{
|
|
4615
4696
|
style: {
|
|
4616
|
-
color:
|
|
4697
|
+
color: o.textSecondary,
|
|
4617
4698
|
marginBottom: "16px",
|
|
4618
4699
|
fontSize: "14px",
|
|
4619
4700
|
lineHeight: "1.5"
|
|
@@ -4621,7 +4702,7 @@ const qs = [
|
|
|
4621
4702
|
children: [
|
|
4622
4703
|
"Type",
|
|
4623
4704
|
" ",
|
|
4624
|
-
/* @__PURE__ */ n.jsx("strong", { style: { color:
|
|
4705
|
+
/* @__PURE__ */ n.jsx("strong", { style: { color: o.textPrimary }, children: '"delete my account"' }),
|
|
4625
4706
|
" ",
|
|
4626
4707
|
"to confirm:"
|
|
4627
4708
|
]
|
|
@@ -4638,16 +4719,16 @@ const qs = [
|
|
|
4638
4719
|
width: "100%",
|
|
4639
4720
|
padding: "14px 16px",
|
|
4640
4721
|
borderRadius: "10px",
|
|
4641
|
-
border: `2px solid ${C ?
|
|
4722
|
+
border: `2px solid ${C ? o.success : o.error}`,
|
|
4642
4723
|
backgroundColor: "transparent",
|
|
4643
|
-
color:
|
|
4724
|
+
color: o.textPrimary,
|
|
4644
4725
|
fontSize: "15px",
|
|
4645
4726
|
outline: "none",
|
|
4646
4727
|
transition: "all 0.2s ease",
|
|
4647
4728
|
boxSizing: "border-box"
|
|
4648
4729
|
},
|
|
4649
4730
|
onFocus: (y) => {
|
|
4650
|
-
y.target.style.boxShadow = `0 0 0 3px ${
|
|
4731
|
+
y.target.style.boxShadow = `0 0 0 3px ${o.accent}20`;
|
|
4651
4732
|
},
|
|
4652
4733
|
onBlur: (y) => {
|
|
4653
4734
|
y.target.style.boxShadow = "none";
|
|
@@ -4663,12 +4744,12 @@ const qs = [
|
|
|
4663
4744
|
alignItems: "center",
|
|
4664
4745
|
gap: "8px",
|
|
4665
4746
|
marginTop: "10px",
|
|
4666
|
-
color:
|
|
4747
|
+
color: o.success,
|
|
4667
4748
|
fontSize: "14px",
|
|
4668
4749
|
fontWeight: 500
|
|
4669
4750
|
},
|
|
4670
4751
|
children: [
|
|
4671
|
-
/* @__PURE__ */ n.jsx(
|
|
4752
|
+
/* @__PURE__ */ n.jsx(Xe, { size: 16 }),
|
|
4672
4753
|
/* @__PURE__ */ n.jsx("span", { children: "Confirmation accepted" })
|
|
4673
4754
|
]
|
|
4674
4755
|
}
|
|
@@ -4694,9 +4775,9 @@ const qs = [
|
|
|
4694
4775
|
style: {
|
|
4695
4776
|
padding: "10px 24px",
|
|
4696
4777
|
borderRadius: "10px",
|
|
4697
|
-
border: `1.5px solid ${
|
|
4778
|
+
border: `1.5px solid ${o.border}`,
|
|
4698
4779
|
background: "transparent",
|
|
4699
|
-
color:
|
|
4780
|
+
color: o.textPrimary,
|
|
4700
4781
|
fontSize: "14px",
|
|
4701
4782
|
fontWeight: 500,
|
|
4702
4783
|
cursor: "pointer",
|
|
@@ -4705,7 +4786,7 @@ const qs = [
|
|
|
4705
4786
|
transition: "all 0.2s ease"
|
|
4706
4787
|
},
|
|
4707
4788
|
onMouseOver: (y) => {
|
|
4708
|
-
y.currentTarget.style.backgroundColor =
|
|
4789
|
+
y.currentTarget.style.backgroundColor = o.border, y.currentTarget.style.transform = "translateY(-1px)";
|
|
4709
4790
|
},
|
|
4710
4791
|
onMouseOut: (y) => {
|
|
4711
4792
|
y.currentTarget.style.backgroundColor = "transparent", y.currentTarget.style.transform = "translateY(0)";
|
|
@@ -4744,7 +4825,7 @@ const qs = [
|
|
|
4744
4825
|
C && !h && (y.currentTarget.style.transform = "translateY(0)", y.currentTarget.style.boxShadow = "0 4px 12px rgba(239, 68, 68, 0.4)");
|
|
4745
4826
|
},
|
|
4746
4827
|
children: [
|
|
4747
|
-
/* @__PURE__ */ n.jsx(
|
|
4828
|
+
/* @__PURE__ */ n.jsx(Fe, { size: 16 }),
|
|
4748
4829
|
"Yes, Delete My Account"
|
|
4749
4830
|
]
|
|
4750
4831
|
}
|
|
@@ -4795,7 +4876,7 @@ const qs = [
|
|
|
4795
4876
|
"h3",
|
|
4796
4877
|
{
|
|
4797
4878
|
style: {
|
|
4798
|
-
color:
|
|
4879
|
+
color: o.textPrimary,
|
|
4799
4880
|
margin: 0,
|
|
4800
4881
|
fontSize: "20px",
|
|
4801
4882
|
fontWeight: 700,
|
|
@@ -4808,7 +4889,7 @@ const qs = [
|
|
|
4808
4889
|
"p",
|
|
4809
4890
|
{
|
|
4810
4891
|
style: {
|
|
4811
|
-
color:
|
|
4892
|
+
color: o.textTertiary,
|
|
4812
4893
|
margin: "4px 0 0 0",
|
|
4813
4894
|
fontSize: "14px",
|
|
4814
4895
|
lineHeight: "1.4"
|
|
@@ -4842,7 +4923,7 @@ const qs = [
|
|
|
4842
4923
|
padding: "12px",
|
|
4843
4924
|
borderRadius: "8px",
|
|
4844
4925
|
transition: "all 0.2s ease",
|
|
4845
|
-
backgroundColor: y.active ? `${
|
|
4926
|
+
backgroundColor: y.active ? `${o.accent}10` : "transparent"
|
|
4846
4927
|
},
|
|
4847
4928
|
children: [
|
|
4848
4929
|
/* @__PURE__ */ n.jsx(
|
|
@@ -4852,9 +4933,9 @@ const qs = [
|
|
|
4852
4933
|
width: "8px",
|
|
4853
4934
|
height: "8px",
|
|
4854
4935
|
borderRadius: "50%",
|
|
4855
|
-
backgroundColor: y.active ?
|
|
4936
|
+
backgroundColor: y.active ? o.accent : o.textTertiary,
|
|
4856
4937
|
transition: "all 0.3s ease",
|
|
4857
|
-
boxShadow: y.active ? `0 0 0 4px ${
|
|
4938
|
+
boxShadow: y.active ? `0 0 0 4px ${o.accent}20` : "none"
|
|
4858
4939
|
}
|
|
4859
4940
|
}
|
|
4860
4941
|
),
|
|
@@ -4863,7 +4944,7 @@ const qs = [
|
|
|
4863
4944
|
{
|
|
4864
4945
|
style: {
|
|
4865
4946
|
fontSize: "14px",
|
|
4866
|
-
color: y.active ?
|
|
4947
|
+
color: y.active ? o.textPrimary : o.textSecondary,
|
|
4867
4948
|
fontWeight: y.active ? 500 : 400
|
|
4868
4949
|
},
|
|
4869
4950
|
children: y.text
|
|
@@ -4883,17 +4964,17 @@ const qs = [
|
|
|
4883
4964
|
alignItems: "center",
|
|
4884
4965
|
gap: "10px",
|
|
4885
4966
|
padding: "16px",
|
|
4886
|
-
background: `${
|
|
4967
|
+
background: `${o.accent}10`,
|
|
4887
4968
|
borderRadius: "10px",
|
|
4888
4969
|
fontSize: "14px",
|
|
4889
|
-
color:
|
|
4970
|
+
color: o.textSecondary
|
|
4890
4971
|
},
|
|
4891
4972
|
children: [
|
|
4892
4973
|
/* @__PURE__ */ n.jsx(
|
|
4893
|
-
|
|
4974
|
+
ur,
|
|
4894
4975
|
{
|
|
4895
4976
|
size: 18,
|
|
4896
|
-
style: { color:
|
|
4977
|
+
style: { color: o.accent, flexShrink: 0 }
|
|
4897
4978
|
}
|
|
4898
4979
|
),
|
|
4899
4980
|
/* @__PURE__ */ n.jsx("span", { children: "You will be redirected to the login page shortly" })
|
|
@@ -4927,7 +5008,7 @@ const qs = [
|
|
|
4927
5008
|
color: "white",
|
|
4928
5009
|
flexShrink: 0
|
|
4929
5010
|
},
|
|
4930
|
-
children: /* @__PURE__ */ n.jsx(
|
|
5011
|
+
children: /* @__PURE__ */ n.jsx(Xe, { size: 20 })
|
|
4931
5012
|
}
|
|
4932
5013
|
),
|
|
4933
5014
|
/* @__PURE__ */ n.jsxs("div", { style: { flex: 1 }, children: [
|
|
@@ -4935,7 +5016,7 @@ const qs = [
|
|
|
4935
5016
|
"h3",
|
|
4936
5017
|
{
|
|
4937
5018
|
style: {
|
|
4938
|
-
color:
|
|
5019
|
+
color: o.textPrimary,
|
|
4939
5020
|
margin: 0,
|
|
4940
5021
|
fontSize: "20px",
|
|
4941
5022
|
fontWeight: 700,
|
|
@@ -4948,7 +5029,7 @@ const qs = [
|
|
|
4948
5029
|
"p",
|
|
4949
5030
|
{
|
|
4950
5031
|
style: {
|
|
4951
|
-
color:
|
|
5032
|
+
color: o.textTertiary,
|
|
4952
5033
|
margin: "4px 0 0 0",
|
|
4953
5034
|
fontSize: "14px",
|
|
4954
5035
|
lineHeight: "1.4"
|
|
@@ -4966,18 +5047,18 @@ const qs = [
|
|
|
4966
5047
|
style: {
|
|
4967
5048
|
textAlign: "center",
|
|
4968
5049
|
padding: "20px",
|
|
4969
|
-
background: `${
|
|
4970
|
-
border: `1px solid ${
|
|
5050
|
+
background: `${o.success}10`,
|
|
5051
|
+
border: `1px solid ${o.success}20`,
|
|
4971
5052
|
borderRadius: "12px",
|
|
4972
5053
|
marginBottom: "24px"
|
|
4973
5054
|
},
|
|
4974
5055
|
children: [
|
|
4975
5056
|
/* @__PURE__ */ n.jsx(
|
|
4976
|
-
|
|
5057
|
+
Xe,
|
|
4977
5058
|
{
|
|
4978
5059
|
size: 48,
|
|
4979
5060
|
style: {
|
|
4980
|
-
color:
|
|
5061
|
+
color: o.success,
|
|
4981
5062
|
marginBottom: "12px",
|
|
4982
5063
|
display: "block",
|
|
4983
5064
|
margin: "0 auto 12px auto"
|
|
@@ -4988,7 +5069,7 @@ const qs = [
|
|
|
4988
5069
|
"p",
|
|
4989
5070
|
{
|
|
4990
5071
|
style: {
|
|
4991
|
-
color:
|
|
5072
|
+
color: o.textPrimary,
|
|
4992
5073
|
fontSize: "16px",
|
|
4993
5074
|
fontWeight: 600,
|
|
4994
5075
|
margin: "0 0 8px 0"
|
|
@@ -5000,7 +5081,7 @@ const qs = [
|
|
|
5000
5081
|
"p",
|
|
5001
5082
|
{
|
|
5002
5083
|
style: {
|
|
5003
|
-
color:
|
|
5084
|
+
color: o.textSecondary,
|
|
5004
5085
|
fontSize: "14px",
|
|
5005
5086
|
margin: 0,
|
|
5006
5087
|
lineHeight: "1.5"
|
|
@@ -5019,10 +5100,10 @@ const qs = [
|
|
|
5019
5100
|
alignItems: "center",
|
|
5020
5101
|
gap: "10px",
|
|
5021
5102
|
padding: "16px",
|
|
5022
|
-
background: `${
|
|
5103
|
+
background: `${o.accent}10`,
|
|
5023
5104
|
borderRadius: "10px",
|
|
5024
5105
|
fontSize: "14px",
|
|
5025
|
-
color:
|
|
5106
|
+
color: o.textSecondary,
|
|
5026
5107
|
justifyContent: "center"
|
|
5027
5108
|
},
|
|
5028
5109
|
children: [
|
|
@@ -5032,7 +5113,7 @@ const qs = [
|
|
|
5032
5113
|
size: 16,
|
|
5033
5114
|
style: {
|
|
5034
5115
|
animation: "spin 1s linear infinite",
|
|
5035
|
-
color:
|
|
5116
|
+
color: o.accent
|
|
5036
5117
|
}
|
|
5037
5118
|
}
|
|
5038
5119
|
),
|
|
@@ -5064,8 +5145,8 @@ const qs = [
|
|
|
5064
5145
|
"div",
|
|
5065
5146
|
{
|
|
5066
5147
|
style: {
|
|
5067
|
-
backgroundColor:
|
|
5068
|
-
border: `1px solid ${
|
|
5148
|
+
backgroundColor: o.surface,
|
|
5149
|
+
border: `1px solid ${o.border}`,
|
|
5069
5150
|
borderRadius: "20px",
|
|
5070
5151
|
width: "100%",
|
|
5071
5152
|
maxWidth: "480px",
|
|
@@ -5135,13 +5216,13 @@ const qs = [
|
|
|
5135
5216
|
]
|
|
5136
5217
|
}
|
|
5137
5218
|
);
|
|
5138
|
-
},
|
|
5219
|
+
}, Ys = ({
|
|
5139
5220
|
isOpen: t,
|
|
5140
5221
|
onClose: e,
|
|
5141
5222
|
onUpdate: r,
|
|
5142
5223
|
colors: s
|
|
5143
5224
|
}) => {
|
|
5144
|
-
const [i,
|
|
5225
|
+
const [i, a] = R(""), [o, c] = R(!1), [h, u] = R(!1), [d, m] = R({ isValid: !1, message: "", type: null });
|
|
5145
5226
|
if (te(() => {
|
|
5146
5227
|
if (typeof window > "u") return;
|
|
5147
5228
|
const p = () => {
|
|
@@ -5176,7 +5257,7 @@ const qs = [
|
|
|
5176
5257
|
if (!(!i || !d.isValid)) {
|
|
5177
5258
|
c(!0);
|
|
5178
5259
|
try {
|
|
5179
|
-
await r(i) && (
|
|
5260
|
+
await r(i) && (a(""), e());
|
|
5180
5261
|
} finally {
|
|
5181
5262
|
c(!1);
|
|
5182
5263
|
}
|
|
@@ -5250,7 +5331,7 @@ const qs = [
|
|
|
5250
5331
|
color: s.accent,
|
|
5251
5332
|
flexShrink: 0
|
|
5252
5333
|
},
|
|
5253
|
-
children: /* @__PURE__ */ n.jsx(
|
|
5334
|
+
children: /* @__PURE__ */ n.jsx(st, { size: 22 })
|
|
5254
5335
|
}
|
|
5255
5336
|
),
|
|
5256
5337
|
/* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
|
|
@@ -5325,7 +5406,7 @@ const qs = [
|
|
|
5325
5406
|
gap: "6px"
|
|
5326
5407
|
},
|
|
5327
5408
|
children: [
|
|
5328
|
-
/* @__PURE__ */ n.jsx(
|
|
5409
|
+
/* @__PURE__ */ n.jsx(bs, { size: 16 }),
|
|
5329
5410
|
"Avatar URL"
|
|
5330
5411
|
]
|
|
5331
5412
|
}
|
|
@@ -5338,7 +5419,7 @@ const qs = [
|
|
|
5338
5419
|
id: "avatar-url",
|
|
5339
5420
|
placeholder: "https://example.com/your-avatar.jpg",
|
|
5340
5421
|
value: i,
|
|
5341
|
-
onChange: (p) =>
|
|
5422
|
+
onChange: (p) => a(p.target.value),
|
|
5342
5423
|
style: {
|
|
5343
5424
|
width: "100%",
|
|
5344
5425
|
padding: "14px 16px",
|
|
@@ -5358,7 +5439,7 @@ const qs = [
|
|
|
5358
5439
|
onBlur: (p) => {
|
|
5359
5440
|
p.target.style.borderColor = d.type === "error" ? s.error : d.type === "success" ? s.success : s.border, p.target.style.boxShadow = "none";
|
|
5360
5441
|
},
|
|
5361
|
-
disabled:
|
|
5442
|
+
disabled: o
|
|
5362
5443
|
}
|
|
5363
5444
|
),
|
|
5364
5445
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5371,7 +5452,7 @@ const qs = [
|
|
|
5371
5452
|
transform: "translateY(-50%)",
|
|
5372
5453
|
color: s.textTertiary
|
|
5373
5454
|
},
|
|
5374
|
-
children: /* @__PURE__ */ n.jsx(
|
|
5455
|
+
children: /* @__PURE__ */ n.jsx(cr, { size: 18 })
|
|
5375
5456
|
}
|
|
5376
5457
|
)
|
|
5377
5458
|
] }),
|
|
@@ -5458,7 +5539,7 @@ const qs = [
|
|
|
5458
5539
|
"button",
|
|
5459
5540
|
{
|
|
5460
5541
|
onClick: e,
|
|
5461
|
-
disabled:
|
|
5542
|
+
disabled: o,
|
|
5462
5543
|
style: {
|
|
5463
5544
|
padding: "10px 24px",
|
|
5464
5545
|
borderRadius: "10px",
|
|
@@ -5467,17 +5548,17 @@ const qs = [
|
|
|
5467
5548
|
color: s.textPrimary,
|
|
5468
5549
|
fontSize: "14px",
|
|
5469
5550
|
fontWeight: 500,
|
|
5470
|
-
cursor:
|
|
5551
|
+
cursor: o ? "not-allowed" : "pointer",
|
|
5471
5552
|
flex: h ? "none" : 1,
|
|
5472
5553
|
minWidth: h ? "100%" : "120px",
|
|
5473
|
-
opacity:
|
|
5554
|
+
opacity: o ? 0.6 : 1,
|
|
5474
5555
|
transition: "all 0.2s ease"
|
|
5475
5556
|
},
|
|
5476
5557
|
onMouseOver: (p) => {
|
|
5477
|
-
|
|
5558
|
+
o || (p.currentTarget.style.backgroundColor = s.border, p.currentTarget.style.transform = "translateY(-1px)");
|
|
5478
5559
|
},
|
|
5479
5560
|
onMouseOut: (p) => {
|
|
5480
|
-
|
|
5561
|
+
o || (p.currentTarget.style.backgroundColor = "transparent", p.currentTarget.style.transform = "translateY(0)");
|
|
5481
5562
|
},
|
|
5482
5563
|
children: "Cancel"
|
|
5483
5564
|
}
|
|
@@ -5486,7 +5567,7 @@ const qs = [
|
|
|
5486
5567
|
"button",
|
|
5487
5568
|
{
|
|
5488
5569
|
onClick: P,
|
|
5489
|
-
disabled:
|
|
5570
|
+
disabled: o || !d.isValid,
|
|
5490
5571
|
style: {
|
|
5491
5572
|
padding: "10px 24px",
|
|
5492
5573
|
borderRadius: "10px",
|
|
@@ -5495,24 +5576,24 @@ const qs = [
|
|
|
5495
5576
|
color: "#fff",
|
|
5496
5577
|
fontSize: "14px",
|
|
5497
5578
|
fontWeight: 600,
|
|
5498
|
-
cursor:
|
|
5579
|
+
cursor: o || !d.isValid ? "not-allowed" : "pointer",
|
|
5499
5580
|
flex: h ? "none" : 1,
|
|
5500
5581
|
minWidth: h ? "100%" : "140px",
|
|
5501
|
-
opacity:
|
|
5582
|
+
opacity: o || !d.isValid ? 0.6 : 1,
|
|
5502
5583
|
display: "flex",
|
|
5503
5584
|
alignItems: "center",
|
|
5504
5585
|
justifyContent: "center",
|
|
5505
5586
|
gap: "8px",
|
|
5506
5587
|
transition: "all 0.2s ease",
|
|
5507
|
-
boxShadow:
|
|
5588
|
+
boxShadow: o || !d.isValid ? "none" : `0 4px 12px ${s.accent}40`
|
|
5508
5589
|
},
|
|
5509
5590
|
onMouseOver: (p) => {
|
|
5510
|
-
!
|
|
5591
|
+
!o && d.isValid && (p.currentTarget.style.transform = "translateY(-1px)", p.currentTarget.style.boxShadow = `0 6px 20px ${s.accent}60`);
|
|
5511
5592
|
},
|
|
5512
5593
|
onMouseOut: (p) => {
|
|
5513
|
-
!
|
|
5594
|
+
!o && d.isValid && (p.currentTarget.style.transform = "translateY(0)", p.currentTarget.style.boxShadow = `0 4px 12px ${s.accent}40`);
|
|
5514
5595
|
},
|
|
5515
|
-
children:
|
|
5596
|
+
children: o ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5516
5597
|
/* @__PURE__ */ n.jsx(
|
|
5517
5598
|
ie,
|
|
5518
5599
|
{
|
|
@@ -5524,7 +5605,7 @@ const qs = [
|
|
|
5524
5605
|
),
|
|
5525
5606
|
"Updating..."
|
|
5526
5607
|
] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5527
|
-
/* @__PURE__ */ n.jsx(
|
|
5608
|
+
/* @__PURE__ */ n.jsx(st, { size: 16 }),
|
|
5528
5609
|
"Update Avatar"
|
|
5529
5610
|
] })
|
|
5530
5611
|
}
|
|
@@ -5587,15 +5668,15 @@ const qs = [
|
|
|
5587
5668
|
]
|
|
5588
5669
|
}
|
|
5589
5670
|
);
|
|
5590
|
-
},
|
|
5671
|
+
}, Ks = ({
|
|
5591
5672
|
isOpen: t,
|
|
5592
5673
|
onClose: e,
|
|
5593
5674
|
onSuccess: r,
|
|
5594
5675
|
onError: s,
|
|
5595
5676
|
userId: i,
|
|
5596
|
-
colors:
|
|
5677
|
+
colors: a
|
|
5597
5678
|
}) => {
|
|
5598
|
-
const
|
|
5679
|
+
const o = me(), [c, h] = R({
|
|
5599
5680
|
currentPassword: "",
|
|
5600
5681
|
newPassword: "",
|
|
5601
5682
|
confirmPassword: ""
|
|
@@ -5612,10 +5693,10 @@ const qs = [
|
|
|
5612
5693
|
return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
|
|
5613
5694
|
}, []), !t) return null;
|
|
5614
5695
|
const C = (g) => {
|
|
5615
|
-
const { name:
|
|
5616
|
-
h((U) => ({ ...U, [
|
|
5696
|
+
const { name: j, value: F } = g.target;
|
|
5697
|
+
h((U) => ({ ...U, [j]: F })), u[j] && d((U) => ({ ...U, [j]: "" }));
|
|
5617
5698
|
}, T = (g) => {
|
|
5618
|
-
p((
|
|
5699
|
+
p((j) => ({ ...j, [g]: !j[g] }));
|
|
5619
5700
|
}, A = () => {
|
|
5620
5701
|
const g = {};
|
|
5621
5702
|
return c.currentPassword || (g.currentPassword = "Current password is required"), c.newPassword ? c.newPassword.length < 6 && (g.newPassword = "Password must be at least 6 characters") : g.newPassword = "New password is required", c.newPassword !== c.confirmPassword && (g.confirmPassword = "Passwords do not match"), d(g), Object.keys(g).length === 0;
|
|
@@ -5623,18 +5704,18 @@ const qs = [
|
|
|
5623
5704
|
if (g.preventDefault(), !!A()) {
|
|
5624
5705
|
P(!0);
|
|
5625
5706
|
try {
|
|
5626
|
-
const { data:
|
|
5707
|
+
const { data: j } = await o.changePassword({
|
|
5627
5708
|
currentPassword: c.currentPassword,
|
|
5628
5709
|
newPassword: c.newPassword,
|
|
5629
5710
|
userId: i
|
|
5630
5711
|
});
|
|
5631
|
-
|
|
5712
|
+
j.success ? (r(j.message || "Password updated successfully"), h({
|
|
5632
5713
|
currentPassword: "",
|
|
5633
5714
|
newPassword: "",
|
|
5634
5715
|
confirmPassword: ""
|
|
5635
|
-
}), e()) : s(
|
|
5636
|
-
} catch (
|
|
5637
|
-
s(
|
|
5716
|
+
}), e()) : s(j.message || "Failed to update password");
|
|
5717
|
+
} catch (j) {
|
|
5718
|
+
s(j.response?.data?.message || "Something went wrong");
|
|
5638
5719
|
} finally {
|
|
5639
5720
|
P(!1);
|
|
5640
5721
|
}
|
|
@@ -5643,7 +5724,7 @@ const qs = [
|
|
|
5643
5724
|
{
|
|
5644
5725
|
field: "currentPassword",
|
|
5645
5726
|
label: "Current Password",
|
|
5646
|
-
icon: /* @__PURE__ */ n.jsx(
|
|
5727
|
+
icon: /* @__PURE__ */ n.jsx(ut, { size: 18 })
|
|
5647
5728
|
},
|
|
5648
5729
|
{
|
|
5649
5730
|
field: "newPassword",
|
|
@@ -5674,8 +5755,8 @@ const qs = [
|
|
|
5674
5755
|
"div",
|
|
5675
5756
|
{
|
|
5676
5757
|
style: {
|
|
5677
|
-
backgroundColor:
|
|
5678
|
-
border: `1px solid ${
|
|
5758
|
+
backgroundColor: a.surface,
|
|
5759
|
+
border: `1px solid ${a.border}`,
|
|
5679
5760
|
borderRadius: "16px",
|
|
5680
5761
|
maxWidth: "440px",
|
|
5681
5762
|
width: "100%",
|
|
@@ -5714,11 +5795,11 @@ const qs = [
|
|
|
5714
5795
|
width: "40px",
|
|
5715
5796
|
height: "40px",
|
|
5716
5797
|
borderRadius: "10px",
|
|
5717
|
-
background: `linear-gradient(135deg, ${
|
|
5798
|
+
background: `linear-gradient(135deg, ${a.accent}20, ${a.accent}40)`,
|
|
5718
5799
|
display: "flex",
|
|
5719
5800
|
alignItems: "center",
|
|
5720
5801
|
justifyContent: "center",
|
|
5721
|
-
color:
|
|
5802
|
+
color: a.accent,
|
|
5722
5803
|
flexShrink: 0
|
|
5723
5804
|
},
|
|
5724
5805
|
children: /* @__PURE__ */ n.jsx(ge, { size: 20 })
|
|
@@ -5728,7 +5809,7 @@ const qs = [
|
|
|
5728
5809
|
"h3",
|
|
5729
5810
|
{
|
|
5730
5811
|
style: {
|
|
5731
|
-
color:
|
|
5812
|
+
color: a.textPrimary,
|
|
5732
5813
|
margin: 0,
|
|
5733
5814
|
fontSize: "18px",
|
|
5734
5815
|
fontWeight: 600,
|
|
@@ -5748,7 +5829,7 @@ const qs = [
|
|
|
5748
5829
|
style: {
|
|
5749
5830
|
background: "transparent",
|
|
5750
5831
|
border: "none",
|
|
5751
|
-
color:
|
|
5832
|
+
color: a.textTertiary,
|
|
5752
5833
|
cursor: "pointer",
|
|
5753
5834
|
padding: "8px",
|
|
5754
5835
|
borderRadius: "8px",
|
|
@@ -5760,10 +5841,10 @@ const qs = [
|
|
|
5760
5841
|
justifyContent: "center"
|
|
5761
5842
|
},
|
|
5762
5843
|
onMouseOver: (g) => {
|
|
5763
|
-
g.currentTarget.style.backgroundColor =
|
|
5844
|
+
g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.color = a.textPrimary;
|
|
5764
5845
|
},
|
|
5765
5846
|
onMouseOut: (g) => {
|
|
5766
|
-
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color =
|
|
5847
|
+
g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.color = a.textTertiary;
|
|
5767
5848
|
},
|
|
5768
5849
|
children: /* @__PURE__ */ n.jsx(ze, { size: 20 })
|
|
5769
5850
|
}
|
|
@@ -5772,7 +5853,7 @@ const qs = [
|
|
|
5772
5853
|
}
|
|
5773
5854
|
),
|
|
5774
5855
|
/* @__PURE__ */ n.jsxs("form", { onSubmit: y, children: [
|
|
5775
|
-
_.map(({ field: g, label:
|
|
5856
|
+
_.map(({ field: g, label: j, icon: F }) => /* @__PURE__ */ n.jsxs(
|
|
5776
5857
|
"div",
|
|
5777
5858
|
{
|
|
5778
5859
|
style: {
|
|
@@ -5787,12 +5868,12 @@ const qs = [
|
|
|
5787
5868
|
style: {
|
|
5788
5869
|
display: "block",
|
|
5789
5870
|
marginBottom: "8px",
|
|
5790
|
-
color:
|
|
5871
|
+
color: a.textPrimary,
|
|
5791
5872
|
fontSize: "14px",
|
|
5792
5873
|
fontWeight: 500,
|
|
5793
5874
|
lineHeight: "1.4"
|
|
5794
5875
|
},
|
|
5795
|
-
children:
|
|
5876
|
+
children: j
|
|
5796
5877
|
}
|
|
5797
5878
|
),
|
|
5798
5879
|
/* @__PURE__ */ n.jsxs("div", { style: { position: "relative" }, children: [
|
|
@@ -5804,7 +5885,7 @@ const qs = [
|
|
|
5804
5885
|
left: "14px",
|
|
5805
5886
|
top: "50%",
|
|
5806
5887
|
transform: "translateY(-50%)",
|
|
5807
|
-
color:
|
|
5888
|
+
color: a.textTertiary,
|
|
5808
5889
|
zIndex: 2
|
|
5809
5890
|
},
|
|
5810
5891
|
children: F
|
|
@@ -5816,26 +5897,26 @@ const qs = [
|
|
|
5816
5897
|
type: O[g] ? "text" : "password",
|
|
5817
5898
|
id: g,
|
|
5818
5899
|
name: g,
|
|
5819
|
-
placeholder: `Enter ${
|
|
5900
|
+
placeholder: `Enter ${j.toLowerCase()}`,
|
|
5820
5901
|
value: c[g],
|
|
5821
5902
|
onChange: C,
|
|
5822
5903
|
style: {
|
|
5823
5904
|
width: "100%",
|
|
5824
5905
|
padding: "14px 48px 14px 44px",
|
|
5825
5906
|
borderRadius: "10px",
|
|
5826
|
-
border: `1.5px solid ${u[g] ?
|
|
5907
|
+
border: `1.5px solid ${u[g] ? a.error : a.border}`,
|
|
5827
5908
|
backgroundColor: "transparent",
|
|
5828
|
-
color:
|
|
5909
|
+
color: a.textPrimary,
|
|
5829
5910
|
fontSize: "15px",
|
|
5830
5911
|
outline: "none",
|
|
5831
5912
|
transition: "all 0.2s ease",
|
|
5832
5913
|
boxSizing: "border-box"
|
|
5833
5914
|
},
|
|
5834
5915
|
onFocus: (U) => {
|
|
5835
|
-
U.target.style.borderColor =
|
|
5916
|
+
U.target.style.borderColor = a.accent, U.target.style.boxShadow = `0 0 0 3px ${a.accent}20`;
|
|
5836
5917
|
},
|
|
5837
5918
|
onBlur: (U) => {
|
|
5838
|
-
U.target.style.borderColor = u[g] ?
|
|
5919
|
+
U.target.style.borderColor = u[g] ? a.error : a.border, U.target.style.boxShadow = "none";
|
|
5839
5920
|
}
|
|
5840
5921
|
}
|
|
5841
5922
|
),
|
|
@@ -5852,7 +5933,7 @@ const qs = [
|
|
|
5852
5933
|
background: "transparent",
|
|
5853
5934
|
border: "none",
|
|
5854
5935
|
cursor: "pointer",
|
|
5855
|
-
color:
|
|
5936
|
+
color: a.textTertiary,
|
|
5856
5937
|
padding: "4px",
|
|
5857
5938
|
borderRadius: "4px",
|
|
5858
5939
|
width: "32px",
|
|
@@ -5862,12 +5943,12 @@ const qs = [
|
|
|
5862
5943
|
justifyContent: "center"
|
|
5863
5944
|
},
|
|
5864
5945
|
onMouseOver: (U) => {
|
|
5865
|
-
U.currentTarget.style.backgroundColor =
|
|
5946
|
+
U.currentTarget.style.backgroundColor = a.border, U.currentTarget.style.color = a.textPrimary;
|
|
5866
5947
|
},
|
|
5867
5948
|
onMouseOut: (U) => {
|
|
5868
|
-
U.currentTarget.style.backgroundColor = "transparent", U.currentTarget.style.color =
|
|
5949
|
+
U.currentTarget.style.backgroundColor = "transparent", U.currentTarget.style.color = a.textTertiary;
|
|
5869
5950
|
},
|
|
5870
|
-
children: O[g] ? /* @__PURE__ */ n.jsx(
|
|
5951
|
+
children: O[g] ? /* @__PURE__ */ n.jsx(ct, { size: 18 }) : /* @__PURE__ */ n.jsx(dt, { size: 18 })
|
|
5871
5952
|
}
|
|
5872
5953
|
)
|
|
5873
5954
|
] }),
|
|
@@ -5876,7 +5957,7 @@ const qs = [
|
|
|
5876
5957
|
{
|
|
5877
5958
|
style: {
|
|
5878
5959
|
fontSize: "13px",
|
|
5879
|
-
color:
|
|
5960
|
+
color: a.error,
|
|
5880
5961
|
marginTop: "6px",
|
|
5881
5962
|
display: "flex",
|
|
5882
5963
|
alignItems: "center",
|
|
@@ -5912,9 +5993,9 @@ const qs = [
|
|
|
5912
5993
|
style: {
|
|
5913
5994
|
padding: "14px 24px",
|
|
5914
5995
|
borderRadius: "10px",
|
|
5915
|
-
border: `1.5px solid ${
|
|
5996
|
+
border: `1.5px solid ${a.border}`,
|
|
5916
5997
|
background: "transparent",
|
|
5917
|
-
color:
|
|
5998
|
+
color: a.textPrimary,
|
|
5918
5999
|
fontSize: "14px",
|
|
5919
6000
|
fontWeight: 500,
|
|
5920
6001
|
cursor: m ? "not-allowed" : "pointer",
|
|
@@ -5924,7 +6005,7 @@ const qs = [
|
|
|
5924
6005
|
transition: "all 0.2s ease"
|
|
5925
6006
|
},
|
|
5926
6007
|
onMouseOver: (g) => {
|
|
5927
|
-
m || (g.currentTarget.style.backgroundColor =
|
|
6008
|
+
m || (g.currentTarget.style.backgroundColor = a.border, g.currentTarget.style.transform = "translateY(-1px)");
|
|
5928
6009
|
},
|
|
5929
6010
|
onMouseOut: (g) => {
|
|
5930
6011
|
m || (g.currentTarget.style.backgroundColor = "transparent", g.currentTarget.style.transform = "translateY(0)");
|
|
@@ -5941,7 +6022,7 @@ const qs = [
|
|
|
5941
6022
|
padding: "14px 24px",
|
|
5942
6023
|
borderRadius: "10px",
|
|
5943
6024
|
border: "none",
|
|
5944
|
-
background: `linear-gradient(135deg, ${
|
|
6025
|
+
background: `linear-gradient(135deg, ${a.accent}, ${a.accent}E6)`,
|
|
5945
6026
|
color: "#fff",
|
|
5946
6027
|
fontSize: "14px",
|
|
5947
6028
|
fontWeight: 600,
|
|
@@ -5954,13 +6035,13 @@ const qs = [
|
|
|
5954
6035
|
justifyContent: "center",
|
|
5955
6036
|
gap: "8px",
|
|
5956
6037
|
transition: "all 0.2s ease",
|
|
5957
|
-
boxShadow: m ? "none" : `0 4px 12px ${
|
|
6038
|
+
boxShadow: m ? "none" : `0 4px 12px ${a.accent}40`
|
|
5958
6039
|
},
|
|
5959
6040
|
onMouseOver: (g) => {
|
|
5960
|
-
m || (g.currentTarget.style.transform = "translateY(-1px)", g.currentTarget.style.boxShadow = `0 6px 20px ${
|
|
6041
|
+
m || (g.currentTarget.style.transform = "translateY(-1px)", g.currentTarget.style.boxShadow = `0 6px 20px ${a.accent}60`);
|
|
5961
6042
|
},
|
|
5962
6043
|
onMouseOut: (g) => {
|
|
5963
|
-
m || (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = `0 4px 12px ${
|
|
6044
|
+
m || (g.currentTarget.style.transform = "translateY(0)", g.currentTarget.style.boxShadow = `0 4px 12px ${a.accent}40`);
|
|
5964
6045
|
},
|
|
5965
6046
|
children: m ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
5966
6047
|
/* @__PURE__ */ n.jsx(
|
|
@@ -5995,12 +6076,12 @@ const qs = [
|
|
|
5995
6076
|
}
|
|
5996
6077
|
|
|
5997
6078
|
.change-password-modal::-webkit-scrollbar-thumb {
|
|
5998
|
-
background: ${
|
|
6079
|
+
background: ${a.border};
|
|
5999
6080
|
border-radius: 3px;
|
|
6000
6081
|
}
|
|
6001
6082
|
|
|
6002
6083
|
.change-password-modal::-webkit-scrollbar-thumb:hover {
|
|
6003
|
-
background: ${
|
|
6084
|
+
background: ${a.textTertiary};
|
|
6004
6085
|
}
|
|
6005
6086
|
|
|
6006
6087
|
/* Mobile responsiveness */
|
|
@@ -6024,14 +6105,14 @@ const qs = [
|
|
|
6024
6105
|
)
|
|
6025
6106
|
}
|
|
6026
6107
|
);
|
|
6027
|
-
},
|
|
6108
|
+
}, Js = ({
|
|
6028
6109
|
isOpen: t,
|
|
6029
6110
|
onClose: e,
|
|
6030
6111
|
onVerify: r,
|
|
6031
6112
|
onSendOTP: s,
|
|
6032
6113
|
verifyFormData: i,
|
|
6033
|
-
setVerifyFormData:
|
|
6034
|
-
otpSent:
|
|
6114
|
+
setVerifyFormData: a,
|
|
6115
|
+
otpSent: o,
|
|
6035
6116
|
verifying: c,
|
|
6036
6117
|
user: h,
|
|
6037
6118
|
colors: u,
|
|
@@ -6039,7 +6120,7 @@ const qs = [
|
|
|
6039
6120
|
}) => {
|
|
6040
6121
|
if (!t) return null;
|
|
6041
6122
|
const m = () => {
|
|
6042
|
-
e(),
|
|
6123
|
+
e(), a({ email: h?.email || "", otp: "" });
|
|
6043
6124
|
};
|
|
6044
6125
|
return /* @__PURE__ */ n.jsxs(
|
|
6045
6126
|
"div",
|
|
@@ -6081,7 +6162,7 @@ const qs = [
|
|
|
6081
6162
|
{
|
|
6082
6163
|
type: "email",
|
|
6083
6164
|
value: i.email,
|
|
6084
|
-
onChange: (P) =>
|
|
6165
|
+
onChange: (P) => a((O) => ({ ...O, email: P.target.value })),
|
|
6085
6166
|
placeholder: "Enter your email",
|
|
6086
6167
|
style: {
|
|
6087
6168
|
backgroundColor: u.surfaceLight,
|
|
@@ -6095,16 +6176,16 @@ const qs = [
|
|
|
6095
6176
|
)
|
|
6096
6177
|
] })
|
|
6097
6178
|
] }),
|
|
6098
|
-
|
|
6179
|
+
o && /* @__PURE__ */ n.jsxs("div", { className: "form-group", children: [
|
|
6099
6180
|
/* @__PURE__ */ n.jsx("label", { style: { color: u.textSecondary }, children: "OTP" }),
|
|
6100
6181
|
/* @__PURE__ */ n.jsxs("div", { className: "input-container", children: [
|
|
6101
|
-
/* @__PURE__ */ n.jsx(
|
|
6182
|
+
/* @__PURE__ */ n.jsx(dr, { size: 18, style: { color: u.textTertiary }, "aria-hidden": "true" }),
|
|
6102
6183
|
/* @__PURE__ */ n.jsx(
|
|
6103
6184
|
"input",
|
|
6104
6185
|
{
|
|
6105
6186
|
type: "text",
|
|
6106
6187
|
value: i.otp,
|
|
6107
|
-
onChange: (P) =>
|
|
6188
|
+
onChange: (P) => a((O) => ({ ...O, otp: P.target.value })),
|
|
6108
6189
|
placeholder: "Enter OTP",
|
|
6109
6190
|
style: {
|
|
6110
6191
|
backgroundColor: u.surfaceLight,
|
|
@@ -6118,7 +6199,7 @@ const qs = [
|
|
|
6118
6199
|
)
|
|
6119
6200
|
] })
|
|
6120
6201
|
] }),
|
|
6121
|
-
/* @__PURE__ */ n.jsx("div", { className: "modal-actions", children:
|
|
6202
|
+
/* @__PURE__ */ n.jsx("div", { className: "modal-actions", children: o ? /* @__PURE__ */ n.jsxs(
|
|
6122
6203
|
"button",
|
|
6123
6204
|
{
|
|
6124
6205
|
type: "submit",
|
|
@@ -6147,7 +6228,7 @@ const qs = [
|
|
|
6147
6228
|
},
|
|
6148
6229
|
"aria-label": c ? "Sending OTP" : "Send OTP",
|
|
6149
6230
|
children: [
|
|
6150
|
-
c ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(
|
|
6231
|
+
c ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner", "aria-hidden": "true" }) : /* @__PURE__ */ n.jsx(ft, { size: 16, "aria-hidden": "true" }),
|
|
6151
6232
|
c ? "Sending..." : "Send OTP"
|
|
6152
6233
|
]
|
|
6153
6234
|
}
|
|
@@ -6307,16 +6388,16 @@ const qs = [
|
|
|
6307
6388
|
]
|
|
6308
6389
|
}
|
|
6309
6390
|
);
|
|
6310
|
-
},
|
|
6391
|
+
}, vi = ({
|
|
6311
6392
|
token: t,
|
|
6312
6393
|
user: e = null,
|
|
6313
6394
|
darkMode: r = !0,
|
|
6314
6395
|
homeUrl: s,
|
|
6315
6396
|
onLogout: i,
|
|
6316
|
-
onVerify:
|
|
6317
|
-
primaryColor:
|
|
6397
|
+
onVerify: a,
|
|
6398
|
+
primaryColor: o = "#00C212"
|
|
6318
6399
|
}) => {
|
|
6319
|
-
const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g,
|
|
6400
|
+
const c = me(), [h, u] = R(null), [d, m] = R(e), [P, O] = R(!0), [p, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, j] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [E, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
|
|
6320
6401
|
email: "",
|
|
6321
6402
|
otp: ""
|
|
6322
6403
|
}), [L, l] = R(!1), [b, S] = R(!1);
|
|
@@ -6326,8 +6407,8 @@ const qs = [
|
|
|
6326
6407
|
return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
|
|
6327
6408
|
}
|
|
6328
6409
|
}, []);
|
|
6329
|
-
const
|
|
6330
|
-
I({ type: k, message:
|
|
6410
|
+
const v = (k, D) => {
|
|
6411
|
+
I({ type: k, message: D }), setTimeout(() => I(null), 3e3);
|
|
6331
6412
|
}, G = () => {
|
|
6332
6413
|
V(!0);
|
|
6333
6414
|
const k = setTimeout(() => {
|
|
@@ -6336,9 +6417,9 @@ const qs = [
|
|
|
6336
6417
|
return () => clearTimeout(k);
|
|
6337
6418
|
};
|
|
6338
6419
|
te(() => {
|
|
6339
|
-
const k = (
|
|
6420
|
+
const k = (D) => {
|
|
6340
6421
|
const H = document.querySelector(".dropdown-container");
|
|
6341
|
-
H && !H.contains(
|
|
6422
|
+
H && !H.contains(D.target) && G();
|
|
6342
6423
|
};
|
|
6343
6424
|
return M && document.addEventListener("mousedown", k), () => {
|
|
6344
6425
|
document.removeEventListener("mousedown", k);
|
|
@@ -6346,11 +6427,11 @@ const qs = [
|
|
|
6346
6427
|
}, [M]);
|
|
6347
6428
|
const ue = async () => {
|
|
6348
6429
|
if (!B.email || !/\S+@\S+\.\S+/.test(B.email)) {
|
|
6349
|
-
|
|
6430
|
+
v("error", "Please enter a valid email");
|
|
6350
6431
|
return;
|
|
6351
6432
|
}
|
|
6352
6433
|
if (!d?.id) {
|
|
6353
|
-
|
|
6434
|
+
v("error", "User not found. Cannot send OTP.");
|
|
6354
6435
|
return;
|
|
6355
6436
|
}
|
|
6356
6437
|
try {
|
|
@@ -6358,119 +6439,119 @@ const qs = [
|
|
|
6358
6439
|
const k = await c.requestEmailVerificationOTP({
|
|
6359
6440
|
userId: d.id,
|
|
6360
6441
|
email: B.email
|
|
6361
|
-
}),
|
|
6362
|
-
|
|
6442
|
+
}), D = k?.data?.success ?? k?.success, H = k?.data?.message ?? k?.message;
|
|
6443
|
+
D ? (v("success", H || "OTP sent to email!"), l(!0)) : v("error", H || "Failed to send OTP");
|
|
6363
6444
|
} catch (k) {
|
|
6364
|
-
const
|
|
6365
|
-
|
|
6445
|
+
const D = k?.response?.data?.message || k?.message || "Server error";
|
|
6446
|
+
v("error", D);
|
|
6366
6447
|
} finally {
|
|
6367
6448
|
S(!1);
|
|
6368
6449
|
}
|
|
6369
6450
|
}, Y = async (k) => {
|
|
6370
6451
|
if (k.preventDefault(), !B.email || !B.otp) {
|
|
6371
|
-
|
|
6452
|
+
v("error", "Please fill in all fields");
|
|
6372
6453
|
return;
|
|
6373
6454
|
}
|
|
6374
6455
|
if (!d) {
|
|
6375
|
-
|
|
6456
|
+
v("error", "User not found");
|
|
6376
6457
|
return;
|
|
6377
6458
|
}
|
|
6378
6459
|
try {
|
|
6379
6460
|
S(!0);
|
|
6380
|
-
const
|
|
6461
|
+
const D = await c.verifyEmail({
|
|
6381
6462
|
email: B.email,
|
|
6382
6463
|
otp: B.otp
|
|
6383
|
-
}), H =
|
|
6464
|
+
}), H = D?.data?.success ?? D?.success, Q = D?.data?.message ?? D?.message;
|
|
6384
6465
|
if (H) {
|
|
6385
|
-
|
|
6466
|
+
v("success", Q || "Email verified!");
|
|
6386
6467
|
const le = { ...d, isVerified: !0 };
|
|
6387
6468
|
m(le);
|
|
6388
6469
|
const Se = d?.token ?? "";
|
|
6389
6470
|
localStorage.setItem(
|
|
6390
6471
|
"userInfo",
|
|
6391
6472
|
JSON.stringify({ ...le, token: Se })
|
|
6392
|
-
), typeof
|
|
6473
|
+
), typeof a == "function" && a(le), K({ email: le.email, otp: "" }), l(!1), U?.(!1);
|
|
6393
6474
|
} else
|
|
6394
|
-
|
|
6395
|
-
} catch (
|
|
6396
|
-
const H =
|
|
6397
|
-
|
|
6475
|
+
v("error", Q || "Verification failed");
|
|
6476
|
+
} catch (D) {
|
|
6477
|
+
const H = D?.response?.data?.message || D?.message || "Something went wrong";
|
|
6478
|
+
v("error", H);
|
|
6398
6479
|
} finally {
|
|
6399
6480
|
S(!1);
|
|
6400
6481
|
}
|
|
6401
|
-
},
|
|
6482
|
+
}, ae = async (k) => {
|
|
6402
6483
|
if (!d) return !1;
|
|
6403
6484
|
try {
|
|
6404
|
-
const
|
|
6485
|
+
const D = await c.updateUser({
|
|
6405
6486
|
userId: d.id,
|
|
6406
6487
|
avatarUrl: k
|
|
6407
6488
|
});
|
|
6408
|
-
if (
|
|
6489
|
+
if (D?.success) {
|
|
6409
6490
|
const H = {
|
|
6410
6491
|
...d,
|
|
6411
6492
|
// 🔒 keep existing auth fields
|
|
6412
|
-
...
|
|
6493
|
+
...D.user,
|
|
6413
6494
|
// 🔁 merge backend response if present
|
|
6414
6495
|
avatarUrl: k
|
|
6415
6496
|
};
|
|
6416
|
-
return m(H),
|
|
6497
|
+
return m(H), v("success", "Avatar updated successfully!"), !0;
|
|
6417
6498
|
}
|
|
6418
|
-
return
|
|
6419
|
-
} catch (
|
|
6420
|
-
return console.error("Avatar update error:",
|
|
6499
|
+
return v("error", D?.message || "Failed to update avatar"), !1;
|
|
6500
|
+
} catch (D) {
|
|
6501
|
+
return console.error("Avatar update error:", D), v("error", "Failed to update avatar"), !1;
|
|
6421
6502
|
}
|
|
6422
|
-
},
|
|
6503
|
+
}, je = async () => {
|
|
6423
6504
|
if (d) {
|
|
6424
6505
|
C(!0);
|
|
6425
6506
|
try {
|
|
6426
|
-
const k = d.email,
|
|
6507
|
+
const k = d.email, D = await c.updateUser({
|
|
6427
6508
|
userId: d.id,
|
|
6428
6509
|
...d
|
|
6429
6510
|
});
|
|
6430
|
-
if (
|
|
6431
|
-
const H =
|
|
6511
|
+
if (D.success && D.user) {
|
|
6512
|
+
const H = D.user.email !== k, Q = {
|
|
6432
6513
|
...d,
|
|
6433
6514
|
// keep old state
|
|
6434
|
-
...
|
|
6515
|
+
...D.user,
|
|
6435
6516
|
// overwrite updated fields
|
|
6436
6517
|
isVerified: H ? !1 : d.isVerified
|
|
6437
6518
|
};
|
|
6438
|
-
m(Q), localStorage.setItem("userInfo", JSON.stringify(Q)),
|
|
6519
|
+
m(Q), localStorage.setItem("userInfo", JSON.stringify(Q)), v(
|
|
6439
6520
|
"success",
|
|
6440
6521
|
H ? "Email updated. Please verify your new email." : "Profile updated successfully"
|
|
6441
6522
|
), w(!1);
|
|
6442
6523
|
} else
|
|
6443
|
-
|
|
6524
|
+
v("error", D.message || "Update failed");
|
|
6444
6525
|
} catch (k) {
|
|
6445
|
-
console.error(k),
|
|
6526
|
+
console.error(k), v("error", "Update failed");
|
|
6446
6527
|
} finally {
|
|
6447
6528
|
C(!1);
|
|
6448
6529
|
}
|
|
6449
6530
|
}
|
|
6450
|
-
},
|
|
6531
|
+
}, Ye = async (k) => {
|
|
6451
6532
|
try {
|
|
6452
|
-
const
|
|
6453
|
-
|
|
6454
|
-
} catch (
|
|
6455
|
-
console.error("⚠️ User validation request failed:",
|
|
6533
|
+
const D = await c.checkIfUserExists(k);
|
|
6534
|
+
D?.success === !0 && D?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), m(null));
|
|
6535
|
+
} catch (D) {
|
|
6536
|
+
console.error("⚠️ User validation request failed:", D);
|
|
6456
6537
|
}
|
|
6457
6538
|
};
|
|
6458
6539
|
te(() => {
|
|
6459
6540
|
(async () => {
|
|
6460
6541
|
try {
|
|
6461
6542
|
O(!0);
|
|
6462
|
-
const
|
|
6463
|
-
if (
|
|
6464
|
-
const H =
|
|
6543
|
+
const D = await c.checkUserSession();
|
|
6544
|
+
if (D.user?.id) {
|
|
6545
|
+
const H = D.user.id, Q = await c.getUserProfile({ userId: H });
|
|
6465
6546
|
if (Q.user) {
|
|
6466
6547
|
const le = Q.user;
|
|
6467
|
-
m(le),
|
|
6548
|
+
m(le), Ye(H);
|
|
6468
6549
|
} else
|
|
6469
6550
|
m(null), localStorage.removeItem("userInfo");
|
|
6470
6551
|
} else
|
|
6471
6552
|
m(null), localStorage.removeItem("userInfo");
|
|
6472
|
-
} catch (
|
|
6473
|
-
console.error("User init failed:",
|
|
6553
|
+
} catch (D) {
|
|
6554
|
+
console.error("User init failed:", D), m(null), localStorage.removeItem("userInfo");
|
|
6474
6555
|
} finally {
|
|
6475
6556
|
O(!1);
|
|
6476
6557
|
}
|
|
@@ -6478,8 +6559,8 @@ const qs = [
|
|
|
6478
6559
|
}, [e]), te(() => {
|
|
6479
6560
|
d?.email && K((k) => ({ ...k, email: d.email }));
|
|
6480
6561
|
}, [d?.email]);
|
|
6481
|
-
const
|
|
6482
|
-
let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) +
|
|
6562
|
+
const xt = (k, D) => {
|
|
6563
|
+
let H = parseInt(k.replace("#", ""), 16), Q = (H >> 16) + D, le = (H >> 8 & 255) + D, Se = (H & 255) + D;
|
|
6483
6564
|
return Q = Math.min(255, Math.max(0, Q)), le = Math.min(255, Math.max(0, le)), Se = Math.min(255, Math.max(0, Se)), `#${(Se | le << 8 | Q << 16).toString(16).padStart(6, "0")}`;
|
|
6484
6565
|
}, $ = r ? {
|
|
6485
6566
|
background: "#000000",
|
|
@@ -6489,8 +6570,8 @@ const qs = [
|
|
|
6489
6570
|
textPrimary: "#ffffff",
|
|
6490
6571
|
textSecondary: "#d4d4d8",
|
|
6491
6572
|
textTertiary: "#a1a1aa",
|
|
6492
|
-
accent:
|
|
6493
|
-
accentHover:
|
|
6573
|
+
accent: o,
|
|
6574
|
+
accentHover: xt(o, -15),
|
|
6494
6575
|
success: "#10b981",
|
|
6495
6576
|
error: "#ef4444",
|
|
6496
6577
|
border: "#27272a",
|
|
@@ -6503,8 +6584,8 @@ const qs = [
|
|
|
6503
6584
|
textPrimary: "#18181b",
|
|
6504
6585
|
textSecondary: "#52525b",
|
|
6505
6586
|
textTertiary: "#71717a",
|
|
6506
|
-
accent:
|
|
6507
|
-
accentHover:
|
|
6587
|
+
accent: o,
|
|
6588
|
+
accentHover: xt(o, -15),
|
|
6508
6589
|
success: "#10b981",
|
|
6509
6590
|
error: "#ef4444",
|
|
6510
6591
|
border: "#e4e4e7",
|
|
@@ -6580,7 +6661,7 @@ const qs = [
|
|
|
6580
6661
|
)
|
|
6581
6662
|
}
|
|
6582
6663
|
);
|
|
6583
|
-
const
|
|
6664
|
+
const fr = [
|
|
6584
6665
|
{
|
|
6585
6666
|
label: "Full Name",
|
|
6586
6667
|
value: d.name,
|
|
@@ -6600,14 +6681,14 @@ const qs = [
|
|
|
6600
6681
|
value: d.phone || "Not set",
|
|
6601
6682
|
name: "phone",
|
|
6602
6683
|
type: "tel",
|
|
6603
|
-
icon:
|
|
6684
|
+
icon: Os
|
|
6604
6685
|
},
|
|
6605
6686
|
{
|
|
6606
6687
|
label: "Address",
|
|
6607
6688
|
value: d.address || "Not provided",
|
|
6608
6689
|
name: "address",
|
|
6609
6690
|
type: "text",
|
|
6610
|
-
icon:
|
|
6691
|
+
icon: Ts
|
|
6611
6692
|
}
|
|
6612
6693
|
];
|
|
6613
6694
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -6726,7 +6807,7 @@ const qs = [
|
|
|
6726
6807
|
rel: "noopener noreferrer",
|
|
6727
6808
|
style: { position: "absolute", top: "18px", left: "18px" },
|
|
6728
6809
|
children: /* @__PURE__ */ n.jsx(
|
|
6729
|
-
|
|
6810
|
+
xs,
|
|
6730
6811
|
{
|
|
6731
6812
|
size: 20,
|
|
6732
6813
|
style: {
|
|
@@ -6787,7 +6868,7 @@ const qs = [
|
|
|
6787
6868
|
height: "32px"
|
|
6788
6869
|
},
|
|
6789
6870
|
"aria-label": "Change profile picture",
|
|
6790
|
-
children: /* @__PURE__ */ n.jsx(
|
|
6871
|
+
children: /* @__PURE__ */ n.jsx(st, { size: 16, "aria-hidden": "true" })
|
|
6791
6872
|
}
|
|
6792
6873
|
)
|
|
6793
6874
|
]
|
|
@@ -6881,7 +6962,7 @@ const qs = [
|
|
|
6881
6962
|
/* @__PURE__ */ n.jsxs(
|
|
6882
6963
|
"button",
|
|
6883
6964
|
{
|
|
6884
|
-
onClick:
|
|
6965
|
+
onClick: je,
|
|
6885
6966
|
disabled: x,
|
|
6886
6967
|
style: {
|
|
6887
6968
|
background: `linear-gradient(to right, ${$.accent}, ${$.accentHover})`,
|
|
@@ -6910,7 +6991,7 @@ const qs = [
|
|
|
6910
6991
|
style: { animation: "spin 1s linear infinite" },
|
|
6911
6992
|
"aria-hidden": "true"
|
|
6912
6993
|
}
|
|
6913
|
-
) : /* @__PURE__ */ n.jsx(
|
|
6994
|
+
) : /* @__PURE__ */ n.jsx(As, { size: 16, "aria-hidden": "true" }),
|
|
6914
6995
|
x ? "Saving..." : "Save Changes"
|
|
6915
6996
|
]
|
|
6916
6997
|
}
|
|
@@ -6939,7 +7020,7 @@ const qs = [
|
|
|
6939
7020
|
flex: h && window.innerWidth < 1024 ? "1" : "auto"
|
|
6940
7021
|
},
|
|
6941
7022
|
children: [
|
|
6942
|
-
/* @__PURE__ */ n.jsx(
|
|
7023
|
+
/* @__PURE__ */ n.jsx(Ps, { size: 16, "aria-hidden": "true" }),
|
|
6943
7024
|
"Edit Profile"
|
|
6944
7025
|
]
|
|
6945
7026
|
}
|
|
@@ -6976,7 +7057,7 @@ const qs = [
|
|
|
6976
7057
|
style: { animation: "spin 1s linear infinite" },
|
|
6977
7058
|
"aria-hidden": "true"
|
|
6978
7059
|
}
|
|
6979
|
-
) : /* @__PURE__ */ n.jsx(
|
|
7060
|
+
) : /* @__PURE__ */ n.jsx(ft, { size: 14, "aria-hidden": "true" }),
|
|
6980
7061
|
W ? "Sending..." : "Verify Email"
|
|
6981
7062
|
]
|
|
6982
7063
|
}
|
|
@@ -7006,7 +7087,7 @@ const qs = [
|
|
|
7006
7087
|
},
|
|
7007
7088
|
onClick: () => X(!M),
|
|
7008
7089
|
children: [
|
|
7009
|
-
/* @__PURE__ */ n.jsx(
|
|
7090
|
+
/* @__PURE__ */ n.jsx(ds, { size: 16, "aria-hidden": "true" }),
|
|
7010
7091
|
"More Actions"
|
|
7011
7092
|
]
|
|
7012
7093
|
}
|
|
@@ -7054,7 +7135,7 @@ const qs = [
|
|
|
7054
7135
|
onMouseEnter: (k) => k.currentTarget.style.backgroundColor = $.surfaceLight,
|
|
7055
7136
|
onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
|
|
7056
7137
|
children: [
|
|
7057
|
-
/* @__PURE__ */ n.jsx(
|
|
7138
|
+
/* @__PURE__ */ n.jsx(ut, { size: 14, "aria-hidden": "true" }),
|
|
7058
7139
|
"Change Password"
|
|
7059
7140
|
]
|
|
7060
7141
|
}
|
|
@@ -7085,7 +7166,7 @@ const qs = [
|
|
|
7085
7166
|
},
|
|
7086
7167
|
onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
|
|
7087
7168
|
children: [
|
|
7088
|
-
/* @__PURE__ */ n.jsx(
|
|
7169
|
+
/* @__PURE__ */ n.jsx(pt, { size: 14, "aria-hidden": "true" }),
|
|
7089
7170
|
"Logout"
|
|
7090
7171
|
]
|
|
7091
7172
|
}
|
|
@@ -7094,7 +7175,7 @@ const qs = [
|
|
|
7094
7175
|
"button",
|
|
7095
7176
|
{
|
|
7096
7177
|
onClick: () => {
|
|
7097
|
-
|
|
7178
|
+
j(!0), G();
|
|
7098
7179
|
},
|
|
7099
7180
|
style: {
|
|
7100
7181
|
width: "100%",
|
|
@@ -7116,7 +7197,7 @@ const qs = [
|
|
|
7116
7197
|
},
|
|
7117
7198
|
onMouseLeave: (k) => k.currentTarget.style.backgroundColor = "transparent",
|
|
7118
7199
|
children: [
|
|
7119
|
-
/* @__PURE__ */ n.jsx(
|
|
7200
|
+
/* @__PURE__ */ n.jsx(Fe, { size: 14, "aria-hidden": "true" }),
|
|
7120
7201
|
"Delete Account"
|
|
7121
7202
|
]
|
|
7122
7203
|
}
|
|
@@ -7181,8 +7262,8 @@ const qs = [
|
|
|
7181
7262
|
gap: "20px"
|
|
7182
7263
|
}
|
|
7183
7264
|
},
|
|
7184
|
-
children:
|
|
7185
|
-
const
|
|
7265
|
+
children: fr.map((k) => {
|
|
7266
|
+
const D = k.icon;
|
|
7186
7267
|
return /* @__PURE__ */ n.jsxs(
|
|
7187
7268
|
"div",
|
|
7188
7269
|
{
|
|
@@ -7204,7 +7285,7 @@ const qs = [
|
|
|
7204
7285
|
gap: "8px"
|
|
7205
7286
|
},
|
|
7206
7287
|
children: [
|
|
7207
|
-
/* @__PURE__ */ n.jsx(
|
|
7288
|
+
/* @__PURE__ */ n.jsx(D, { size: 16, "aria-hidden": "true" }),
|
|
7208
7289
|
k.label
|
|
7209
7290
|
]
|
|
7210
7291
|
}
|
|
@@ -7221,7 +7302,7 @@ const qs = [
|
|
|
7221
7302
|
style: {
|
|
7222
7303
|
padding: "12px",
|
|
7223
7304
|
borderRadius: "8px",
|
|
7224
|
-
border: `1px solid ${
|
|
7305
|
+
border: `1px solid ${o}`,
|
|
7225
7306
|
backgroundColor: "transparent",
|
|
7226
7307
|
color: $.textPrimary,
|
|
7227
7308
|
fontSize: "12px",
|
|
@@ -7285,7 +7366,7 @@ const qs = [
|
|
|
7285
7366
|
gap: "8px"
|
|
7286
7367
|
},
|
|
7287
7368
|
children: [
|
|
7288
|
-
/* @__PURE__ */ n.jsx(
|
|
7369
|
+
/* @__PURE__ */ n.jsx(ur, { size: 20, "aria-hidden": "true" }),
|
|
7289
7370
|
"Security Status"
|
|
7290
7371
|
]
|
|
7291
7372
|
}
|
|
@@ -7393,41 +7474,41 @@ const qs = [
|
|
|
7393
7474
|
}
|
|
7394
7475
|
),
|
|
7395
7476
|
/* @__PURE__ */ n.jsx(
|
|
7396
|
-
|
|
7477
|
+
Ys,
|
|
7397
7478
|
{
|
|
7398
7479
|
isOpen: T,
|
|
7399
7480
|
onClose: () => {
|
|
7400
7481
|
A(!1);
|
|
7401
7482
|
},
|
|
7402
|
-
onUpdate:
|
|
7483
|
+
onUpdate: ae,
|
|
7403
7484
|
colors: $
|
|
7404
7485
|
}
|
|
7405
7486
|
),
|
|
7406
7487
|
/* @__PURE__ */ n.jsx(
|
|
7407
|
-
|
|
7488
|
+
Ks,
|
|
7408
7489
|
{
|
|
7409
7490
|
userId: d.id,
|
|
7410
7491
|
isOpen: y,
|
|
7411
7492
|
onClose: () => _(!1),
|
|
7412
|
-
onSuccess: (k) =>
|
|
7413
|
-
onError: (k) =>
|
|
7493
|
+
onSuccess: (k) => v("success", k),
|
|
7494
|
+
onError: (k) => v("error", k),
|
|
7414
7495
|
colors: $
|
|
7415
7496
|
}
|
|
7416
7497
|
),
|
|
7417
7498
|
/* @__PURE__ */ n.jsx(
|
|
7418
|
-
|
|
7499
|
+
Vs,
|
|
7419
7500
|
{
|
|
7420
7501
|
userId: d.id,
|
|
7421
7502
|
token: t,
|
|
7422
7503
|
isOpen: g,
|
|
7423
|
-
onClose: () =>
|
|
7424
|
-
onSuccess: (k) =>
|
|
7425
|
-
onError: (k) =>
|
|
7504
|
+
onClose: () => j(!1),
|
|
7505
|
+
onSuccess: (k) => v("success", k),
|
|
7506
|
+
onError: (k) => v("error", k),
|
|
7426
7507
|
colors: $
|
|
7427
7508
|
}
|
|
7428
7509
|
),
|
|
7429
7510
|
/* @__PURE__ */ n.jsx(
|
|
7430
|
-
|
|
7511
|
+
Js,
|
|
7431
7512
|
{
|
|
7432
7513
|
isOpen: F,
|
|
7433
7514
|
onClose: () => {
|
|
@@ -7536,15 +7617,15 @@ const qs = [
|
|
|
7536
7617
|
]
|
|
7537
7618
|
}
|
|
7538
7619
|
);
|
|
7539
|
-
},
|
|
7620
|
+
}, ji = ({
|
|
7540
7621
|
darkMode: t = !0,
|
|
7541
7622
|
primaryColor: e = "#3b82f6",
|
|
7542
7623
|
onLogout: r,
|
|
7543
7624
|
varient: s = "classic",
|
|
7544
7625
|
propUser: i,
|
|
7545
|
-
className:
|
|
7626
|
+
className: a = "",
|
|
7546
7627
|
// New URL props with defaults
|
|
7547
|
-
profileUrl:
|
|
7628
|
+
profileUrl: o,
|
|
7548
7629
|
settingsUrl: c,
|
|
7549
7630
|
// Menu item visibility with defaults
|
|
7550
7631
|
showProfileMenuItem: h = !0,
|
|
@@ -7556,7 +7637,7 @@ const qs = [
|
|
|
7556
7637
|
viewProfileLabel: O = "View Profile",
|
|
7557
7638
|
logoutLabel: p = "Sign Out"
|
|
7558
7639
|
}) => {
|
|
7559
|
-
const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g,
|
|
7640
|
+
const w = me(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, j] = R(null), F = ht(null), U = ht(null), [M, X] = R(!1), [E, V] = R(!1);
|
|
7560
7641
|
te(() => {
|
|
7561
7642
|
if (typeof window > "u") return;
|
|
7562
7643
|
const l = () => {
|
|
@@ -7567,7 +7648,7 @@ const qs = [
|
|
|
7567
7648
|
let l = !0;
|
|
7568
7649
|
return (async () => {
|
|
7569
7650
|
try {
|
|
7570
|
-
if (_(!0),
|
|
7651
|
+
if (_(!0), j(null), i) {
|
|
7571
7652
|
if (!i.id || !i.name || !i.email)
|
|
7572
7653
|
throw new Error("Invalid user data provided");
|
|
7573
7654
|
l && A(i);
|
|
@@ -7579,15 +7660,15 @@ const qs = [
|
|
|
7579
7660
|
A(null);
|
|
7580
7661
|
return;
|
|
7581
7662
|
}
|
|
7582
|
-
const
|
|
7663
|
+
const v = {
|
|
7583
7664
|
id: S.user.id,
|
|
7584
7665
|
email: S.user.email,
|
|
7585
7666
|
name: S.user.email.split("@")[0]
|
|
7586
7667
|
// fallback until backend sends name
|
|
7587
7668
|
};
|
|
7588
|
-
A(
|
|
7669
|
+
A(v);
|
|
7589
7670
|
} catch (S) {
|
|
7590
|
-
console.error("User initialization failed:", S), l && (A(null),
|
|
7671
|
+
console.error("User initialization failed:", S), l && (A(null), j(S.message || "Failed to load user"));
|
|
7591
7672
|
} finally {
|
|
7592
7673
|
l && _(!1);
|
|
7593
7674
|
}
|
|
@@ -7598,19 +7679,19 @@ const qs = [
|
|
|
7598
7679
|
if (typeof window > "u") return;
|
|
7599
7680
|
const l = () => {
|
|
7600
7681
|
if (!x || !U.current) return;
|
|
7601
|
-
const b = U.current.getBoundingClientRect(), S = window.innerWidth,
|
|
7602
|
-
|
|
7603
|
-
const
|
|
7604
|
-
X(
|
|
7682
|
+
const b = U.current.getBoundingClientRect(), S = window.innerWidth, v = window.innerHeight, G = 280, ue = S - b.right, Y = b.left;
|
|
7683
|
+
v - b.bottom;
|
|
7684
|
+
const ae = ue >= G || ue > Y;
|
|
7685
|
+
X(ae);
|
|
7605
7686
|
};
|
|
7606
7687
|
return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
|
|
7607
7688
|
}, [x]), te(() => {
|
|
7608
7689
|
if (typeof window > "u" || typeof document > "u")
|
|
7609
7690
|
return;
|
|
7610
|
-
const l = (
|
|
7611
|
-
F.current && !F.current.contains(
|
|
7612
|
-
}, b = (
|
|
7613
|
-
|
|
7691
|
+
const l = (v) => {
|
|
7692
|
+
F.current && !F.current.contains(v.target) && !U.current?.contains(v.target) && C(!1);
|
|
7693
|
+
}, b = (v) => {
|
|
7694
|
+
v.key === "Escape" && C(!1);
|
|
7614
7695
|
}, S = () => {
|
|
7615
7696
|
x && C(!1);
|
|
7616
7697
|
};
|
|
@@ -7835,7 +7916,7 @@ const qs = [
|
|
|
7835
7916
|
transition: "background-color 0.2s ease"
|
|
7836
7917
|
}
|
|
7837
7918
|
}, W = async () => {
|
|
7838
|
-
|
|
7919
|
+
j(null), _(!0);
|
|
7839
7920
|
try {
|
|
7840
7921
|
if (i) {
|
|
7841
7922
|
if (!i.id || !i.name || !i.email)
|
|
@@ -7845,7 +7926,7 @@ const qs = [
|
|
|
7845
7926
|
}
|
|
7846
7927
|
const l = await w.checkUserSession();
|
|
7847
7928
|
if (!l?.authenticated || !l.user) {
|
|
7848
|
-
A(null),
|
|
7929
|
+
A(null), j("User is not authenticated");
|
|
7849
7930
|
return;
|
|
7850
7931
|
}
|
|
7851
7932
|
const b = {
|
|
@@ -7856,13 +7937,13 @@ const qs = [
|
|
|
7856
7937
|
};
|
|
7857
7938
|
A(b);
|
|
7858
7939
|
} catch (l) {
|
|
7859
|
-
console.error("Retry failed:", l), A(null),
|
|
7940
|
+
console.error("Retry failed:", l), A(null), j(l.message || "Failed to reload user");
|
|
7860
7941
|
} finally {
|
|
7861
7942
|
_(!1);
|
|
7862
7943
|
}
|
|
7863
7944
|
}, Z = (l, b) => {
|
|
7864
7945
|
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), b());
|
|
7865
|
-
}, B = () =>
|
|
7946
|
+
}, B = () => o || T?.profileUrl, K = () => {
|
|
7866
7947
|
const l = B();
|
|
7867
7948
|
l && window.open(l, "_self", "noopener,noreferrer");
|
|
7868
7949
|
}, L = () => {
|
|
@@ -7873,7 +7954,7 @@ const qs = [
|
|
|
7873
7954
|
{
|
|
7874
7955
|
style: I.wrapper,
|
|
7875
7956
|
ref: F,
|
|
7876
|
-
className:
|
|
7957
|
+
className: a,
|
|
7877
7958
|
role: "menu",
|
|
7878
7959
|
"aria-label": "User menu",
|
|
7879
7960
|
children: [
|
|
@@ -7976,7 +8057,7 @@ const qs = [
|
|
|
7976
8057
|
T?.email && /* @__PURE__ */ n.jsx("div", { style: I.userEmail, title: T.email, children: T.email })
|
|
7977
8058
|
] }),
|
|
7978
8059
|
/* @__PURE__ */ n.jsx(
|
|
7979
|
-
|
|
8060
|
+
ns,
|
|
7980
8061
|
{
|
|
7981
8062
|
size: E ? 14 : 16,
|
|
7982
8063
|
style: I.chevron,
|
|
@@ -8050,7 +8131,7 @@ const qs = [
|
|
|
8050
8131
|
role: "menuitem",
|
|
8051
8132
|
tabIndex: 0,
|
|
8052
8133
|
children: [
|
|
8053
|
-
/* @__PURE__ */ n.jsx(
|
|
8134
|
+
/* @__PURE__ */ n.jsx(Ds, { style: I.icon, "aria-hidden": "true" }),
|
|
8054
8135
|
/* @__PURE__ */ n.jsx("span", { style: I.menuItemText, children: P })
|
|
8055
8136
|
]
|
|
8056
8137
|
}
|
|
@@ -8093,7 +8174,7 @@ const qs = [
|
|
|
8093
8174
|
tabIndex: 0,
|
|
8094
8175
|
children: [
|
|
8095
8176
|
/* @__PURE__ */ n.jsx(
|
|
8096
|
-
|
|
8177
|
+
pt,
|
|
8097
8178
|
{
|
|
8098
8179
|
style: { ...I.icon, color: z.error },
|
|
8099
8180
|
"aria-hidden": "true"
|
|
@@ -8132,7 +8213,7 @@ const qs = [
|
|
|
8132
8213
|
]
|
|
8133
8214
|
}
|
|
8134
8215
|
);
|
|
8135
|
-
},
|
|
8216
|
+
}, Si = ({
|
|
8136
8217
|
user: t,
|
|
8137
8218
|
darkMode: e = !0,
|
|
8138
8219
|
primaryColor: r = "#00C212",
|
|
@@ -8162,18 +8243,18 @@ const qs = [
|
|
|
8162
8243
|
]
|
|
8163
8244
|
}
|
|
8164
8245
|
);
|
|
8165
|
-
const [
|
|
8246
|
+
const [a, o] = R(!1), [c, h] = R({
|
|
8166
8247
|
email: t?.email || "",
|
|
8167
8248
|
otp: ""
|
|
8168
8249
|
}), [u, d] = R(!1), [m, P] = R(!1), [O, p] = R(null);
|
|
8169
8250
|
Te.useEffect(() => {
|
|
8170
8251
|
if (typeof window < "u") {
|
|
8171
|
-
const g = () =>
|
|
8252
|
+
const g = () => o(window.innerWidth < 768);
|
|
8172
8253
|
return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
|
|
8173
8254
|
}
|
|
8174
8255
|
}, []);
|
|
8175
|
-
const w = (g,
|
|
8176
|
-
let F = parseInt(g.replace("#", ""), 16), U = (F >> 16) +
|
|
8256
|
+
const w = (g, j) => {
|
|
8257
|
+
let F = parseInt(g.replace("#", ""), 16), U = (F >> 16) + j, M = (F >> 8 & 255) + j, X = (F & 255) + j;
|
|
8177
8258
|
return U = Math.min(255, Math.max(0, U)), M = Math.min(255, Math.max(0, M)), X = Math.min(255, Math.max(0, X)), `#${(X | M << 8 | U << 16).toString(16).padStart(6, "0")}`;
|
|
8178
8259
|
}, x = e ? {
|
|
8179
8260
|
surface: "#000000",
|
|
@@ -8199,8 +8280,8 @@ const qs = [
|
|
|
8199
8280
|
te(() => {
|
|
8200
8281
|
t?.email && h((g) => ({ ...g, email: t.email }));
|
|
8201
8282
|
}, [t?.email]);
|
|
8202
|
-
const C = (g,
|
|
8203
|
-
p({ type: g, message:
|
|
8283
|
+
const C = (g, j) => {
|
|
8284
|
+
p({ type: g, message: j }), setTimeout(() => p(null), 3e3);
|
|
8204
8285
|
}, T = async () => {
|
|
8205
8286
|
if (!c.email || !/\S+@\S+\.\S+/.test(c.email)) {
|
|
8206
8287
|
C("error", "Please enter a valid email");
|
|
@@ -8217,11 +8298,11 @@ const qs = [
|
|
|
8217
8298
|
email: c.email
|
|
8218
8299
|
});
|
|
8219
8300
|
if (console.log("Send OTP response:", g), g.success || g.data?.success) {
|
|
8220
|
-
const
|
|
8221
|
-
C("success",
|
|
8301
|
+
const j = g.message || g.data?.message || "OTP sent!";
|
|
8302
|
+
C("success", j), d(!0);
|
|
8222
8303
|
} else {
|
|
8223
|
-
const
|
|
8224
|
-
C("error",
|
|
8304
|
+
const j = g.message || g.data?.message || "Failed to send OTP";
|
|
8305
|
+
C("error", j);
|
|
8225
8306
|
}
|
|
8226
8307
|
} catch (g) {
|
|
8227
8308
|
console.error("Send OTP error:", g), C("error", g.message || "Server error");
|
|
@@ -8235,17 +8316,17 @@ const qs = [
|
|
|
8235
8316
|
}
|
|
8236
8317
|
try {
|
|
8237
8318
|
P(!0);
|
|
8238
|
-
const
|
|
8319
|
+
const j = await i.verifyEmail({
|
|
8239
8320
|
email: c.email,
|
|
8240
8321
|
otp: c.otp
|
|
8241
8322
|
});
|
|
8242
|
-
if (
|
|
8323
|
+
if (j.success) {
|
|
8243
8324
|
const F = { ...t, isVerified: !0 };
|
|
8244
|
-
s?.(F), C("success",
|
|
8325
|
+
s?.(F), C("success", j.message || "Email verified!"), d(!1), h({ email: t.email, otp: "" });
|
|
8245
8326
|
} else
|
|
8246
|
-
C("error",
|
|
8247
|
-
} catch (
|
|
8248
|
-
C("error",
|
|
8327
|
+
C("error", j.message || "Verification failed");
|
|
8328
|
+
} catch (j) {
|
|
8329
|
+
C("error", j.message || "Server error");
|
|
8249
8330
|
} finally {
|
|
8250
8331
|
P(!1);
|
|
8251
8332
|
}
|
|
@@ -8280,7 +8361,7 @@ const qs = [
|
|
|
8280
8361
|
onSubmit: A,
|
|
8281
8362
|
style: {
|
|
8282
8363
|
width: "100%",
|
|
8283
|
-
maxWidth:
|
|
8364
|
+
maxWidth: a ? "340px" : "400px",
|
|
8284
8365
|
display: "flex",
|
|
8285
8366
|
flexDirection: "column",
|
|
8286
8367
|
gap: 20,
|
|
@@ -8301,7 +8382,7 @@ const qs = [
|
|
|
8301
8382
|
gap: 8
|
|
8302
8383
|
},
|
|
8303
8384
|
children: [
|
|
8304
|
-
/* @__PURE__ */ n.jsx(
|
|
8385
|
+
/* @__PURE__ */ n.jsx(es, { size: 32, color: x.accent }),
|
|
8305
8386
|
/* @__PURE__ */ n.jsx(
|
|
8306
8387
|
"h2",
|
|
8307
8388
|
{
|
|
@@ -8377,7 +8458,7 @@ const qs = [
|
|
|
8377
8458
|
{
|
|
8378
8459
|
type: "email",
|
|
8379
8460
|
value: c.email,
|
|
8380
|
-
onChange: (g) => h((
|
|
8461
|
+
onChange: (g) => h((j) => ({ ...j, email: g.target.value })),
|
|
8381
8462
|
placeholder: "Enter your email",
|
|
8382
8463
|
style: {
|
|
8383
8464
|
...y,
|
|
@@ -8412,7 +8493,7 @@ const qs = [
|
|
|
8412
8493
|
},
|
|
8413
8494
|
children: [
|
|
8414
8495
|
/* @__PURE__ */ n.jsx(
|
|
8415
|
-
|
|
8496
|
+
ut,
|
|
8416
8497
|
{
|
|
8417
8498
|
size: 18,
|
|
8418
8499
|
style: {
|
|
@@ -8428,7 +8509,7 @@ const qs = [
|
|
|
8428
8509
|
{
|
|
8429
8510
|
type: "text",
|
|
8430
8511
|
value: c.otp,
|
|
8431
|
-
onChange: (g) => h((
|
|
8512
|
+
onChange: (g) => h((j) => ({ ...j, otp: g.target.value })),
|
|
8432
8513
|
placeholder: "Enter OTP",
|
|
8433
8514
|
style: {
|
|
8434
8515
|
...y,
|
|
@@ -8480,7 +8561,7 @@ const qs = [
|
|
|
8480
8561
|
fontSize: 14
|
|
8481
8562
|
},
|
|
8482
8563
|
children: [
|
|
8483
|
-
m ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(
|
|
8564
|
+
m ? /* @__PURE__ */ n.jsx(ie, { size: 16, className: "spinner" }) : /* @__PURE__ */ n.jsx(ft, { size: 16 }),
|
|
8484
8565
|
m ? "Sending..." : "Send OTP"
|
|
8485
8566
|
]
|
|
8486
8567
|
}
|
|
@@ -8488,25 +8569,25 @@ const qs = [
|
|
|
8488
8569
|
]
|
|
8489
8570
|
}
|
|
8490
8571
|
);
|
|
8491
|
-
},
|
|
8572
|
+
}, Le = {
|
|
8492
8573
|
baseUrl: "",
|
|
8493
8574
|
apiKey: "",
|
|
8494
8575
|
appId: ""
|
|
8495
|
-
},
|
|
8576
|
+
}, ki = (t) => {
|
|
8496
8577
|
if (!t.baseUrl || !t.apiKey || !t.appId)
|
|
8497
8578
|
throw new Error("baseUrl, apiKey, and appId are required");
|
|
8498
|
-
|
|
8499
|
-
},
|
|
8579
|
+
Le.baseUrl = t.baseUrl, Le.apiKey = t.apiKey, Le.appId = t.appId;
|
|
8580
|
+
}, Ei = () => Le;
|
|
8500
8581
|
export {
|
|
8501
|
-
|
|
8502
|
-
|
|
8503
|
-
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
|
|
8507
|
-
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
|
|
8511
|
-
|
|
8582
|
+
mi as AuthixProvider,
|
|
8583
|
+
hi as NeuctraAuthix,
|
|
8584
|
+
Si as ReactEmailVerification,
|
|
8585
|
+
bi as ReactSignedIn,
|
|
8586
|
+
wi as ReactSignedOut,
|
|
8587
|
+
ji as ReactUserButton,
|
|
8588
|
+
yi as ReactUserLogin,
|
|
8589
|
+
vi as ReactUserProfile,
|
|
8590
|
+
gi as ReactUserSignUp,
|
|
8591
|
+
Ei as getSdkConfig,
|
|
8592
|
+
ki as setSdkConfig
|
|
8512
8593
|
};
|