@neuctra/authix 1.2.24 → 1.2.26
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 +135 -131
- package/dist/neuctra-authix.umd.js +11 -11
- package/dist/sdk/index.d.ts +9 -5
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/interfaces.d.ts +1 -1
- package/dist/sdk/interfaces.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ce, { forwardRef as
|
|
1
|
+
import Ce, { forwardRef as At, createElement as Je, createContext as cr, useContext as dr, useState as P, useEffect as ee, useRef as ut } from "react";
|
|
2
2
|
function Ut(t, e) {
|
|
3
3
|
return function() {
|
|
4
4
|
return t.apply(e, arguments);
|
|
@@ -87,11 +87,11 @@ const Rr = (t, e, n, { allOwnKeys: s } = {}) => (Pe(e, (i, a) => {
|
|
|
87
87
|
t = n !== !1 && nt(t);
|
|
88
88
|
} while (t && (!n || n(t, e)) && t !== Object.prototype);
|
|
89
89
|
return e;
|
|
90
|
-
},
|
|
90
|
+
}, zr = (t, e, n) => {
|
|
91
91
|
t = String(t), (n === void 0 || n > t.length) && (n = t.length), n -= e.length;
|
|
92
92
|
const s = t.indexOf(e, n);
|
|
93
93
|
return s !== -1 && s === n;
|
|
94
|
-
},
|
|
94
|
+
}, Ar = (t) => {
|
|
95
95
|
if (!t) return null;
|
|
96
96
|
if (je(t)) return t;
|
|
97
97
|
let e = t.length;
|
|
@@ -212,8 +212,8 @@ const Hr = (t) => {
|
|
|
212
212
|
toFlatObject: Or,
|
|
213
213
|
kindOf: Fe,
|
|
214
214
|
kindOfTest: ae,
|
|
215
|
-
endsWith:
|
|
216
|
-
toArray:
|
|
215
|
+
endsWith: zr,
|
|
216
|
+
toArray: Ar,
|
|
217
217
|
forEachEntry: _r,
|
|
218
218
|
matchAll: $r,
|
|
219
219
|
isHTMLForm: Dr,
|
|
@@ -1158,7 +1158,7 @@ const Zt = (t) => {
|
|
|
1158
1158
|
}, {
|
|
1159
1159
|
highWaterMark: 2
|
|
1160
1160
|
});
|
|
1161
|
-
}, jt = 64 * 1024, { isFunction:
|
|
1161
|
+
}, jt = 64 * 1024, { isFunction: ze } = f, zn = (({ Request: t, Response: e }) => ({
|
|
1162
1162
|
Request: t,
|
|
1163
1163
|
Response: e
|
|
1164
1164
|
}))(f.global), {
|
|
@@ -1170,14 +1170,14 @@ const Zt = (t) => {
|
|
|
1170
1170
|
} catch {
|
|
1171
1171
|
return !1;
|
|
1172
1172
|
}
|
|
1173
|
-
},
|
|
1173
|
+
}, An = (t) => {
|
|
1174
1174
|
t = f.merge.call({
|
|
1175
1175
|
skipUndefined: !0
|
|
1176
|
-
},
|
|
1177
|
-
const { fetch: e, Request: n, Response: s } = t, i = e ?
|
|
1176
|
+
}, zn, t);
|
|
1177
|
+
const { fetch: e, Request: n, Response: s } = t, i = e ? ze(e) : typeof fetch == "function", a = ze(n), o = ze(s);
|
|
1178
1178
|
if (!i)
|
|
1179
1179
|
return !1;
|
|
1180
|
-
const c = i &&
|
|
1180
|
+
const c = i && ze(vt), d = i && (typeof St == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new St()) : async (u) => new Uint8Array(await new n(u).arrayBuffer())), x = a && c && kt(() => {
|
|
1181
1181
|
let u = !1;
|
|
1182
1182
|
const w = new n(Q.origin, {
|
|
1183
1183
|
body: new vt(),
|
|
@@ -1236,9 +1236,9 @@ const Zt = (t) => {
|
|
|
1236
1236
|
const T = R && R.unsubscribe && (() => {
|
|
1237
1237
|
R.unsubscribe();
|
|
1238
1238
|
});
|
|
1239
|
-
let
|
|
1239
|
+
let z;
|
|
1240
1240
|
try {
|
|
1241
|
-
if (b && x && h !== "get" && h !== "head" && (
|
|
1241
|
+
if (b && x && h !== "get" && h !== "head" && (z = await E(q, I)) !== 0) {
|
|
1242
1242
|
let l = new n(w, {
|
|
1243
1243
|
method: "POST",
|
|
1244
1244
|
body: I,
|
|
@@ -1246,7 +1246,7 @@ const Zt = (t) => {
|
|
|
1246
1246
|
}), m;
|
|
1247
1247
|
if (f.isFormData(I) && (m = l.headers.get("content-type")) && q.setContentType(m), l.body) {
|
|
1248
1248
|
const [S, D] = gt(
|
|
1249
|
-
|
|
1249
|
+
z,
|
|
1250
1250
|
Ne(yt(b))
|
|
1251
1251
|
);
|
|
1252
1252
|
I = wt(l.body, jt, S, D);
|
|
@@ -1311,7 +1311,7 @@ const Zt = (t) => {
|
|
|
1311
1311
|
];
|
|
1312
1312
|
let o = a.length, c = o, d, x, p = Un;
|
|
1313
1313
|
for (; c--; )
|
|
1314
|
-
d = a[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() :
|
|
1314
|
+
d = a[c], x = p.get(d), x === void 0 && p.set(d, x = c ? /* @__PURE__ */ new Map() : An(e)), p = x;
|
|
1315
1315
|
return x;
|
|
1316
1316
|
};
|
|
1317
1317
|
Qt();
|
|
@@ -2110,19 +2110,18 @@ class li {
|
|
|
2110
2110
|
* - Future filter ready
|
|
2111
2111
|
*/
|
|
2112
2112
|
async getUserData(e) {
|
|
2113
|
-
const { userId: n, limit: s = 20, cursor: i,
|
|
2113
|
+
const { userId: n, limit: s = 20, cursor: i, category: a } = e;
|
|
2114
2114
|
if (!n)
|
|
2115
2115
|
throw new Error("getUserData: 'userId' is required");
|
|
2116
2116
|
const o = `/users/${encodeURIComponent(n)}/data`, c = new URLSearchParams();
|
|
2117
|
-
c.
|
|
2117
|
+
c.set("limit", String(s)), i && c.set("cursor", i), a && c.set("category", a);
|
|
2118
2118
|
const d = c.toString();
|
|
2119
|
-
return
|
|
2119
|
+
return this.request(
|
|
2120
2120
|
"GET",
|
|
2121
2121
|
d ? `${o}?${d}` : o,
|
|
2122
2122
|
void 0,
|
|
2123
2123
|
{},
|
|
2124
2124
|
!1
|
|
2125
|
-
// 👈 no credentials
|
|
2126
2125
|
);
|
|
2127
2126
|
}
|
|
2128
2127
|
/**
|
|
@@ -2200,22 +2199,27 @@ class li {
|
|
|
2200
2199
|
);
|
|
2201
2200
|
}
|
|
2202
2201
|
/**
|
|
2203
|
-
* Search all users' data by
|
|
2204
|
-
* @param params
|
|
2202
|
+
* Search all users' data by keys with deep filtering inside an app
|
|
2203
|
+
* @param params appId, dataCategory (required), query (optional), and dynamic filters
|
|
2205
2204
|
*/
|
|
2206
|
-
async
|
|
2207
|
-
const { dataCategory: n } = e,
|
|
2208
|
-
if (!
|
|
2209
|
-
throw new Error("
|
|
2205
|
+
async searchAllUsersDataByKeys(e) {
|
|
2206
|
+
const { dataCategory: n, query: s, ...i } = e, a = this.appId;
|
|
2207
|
+
if (!a)
|
|
2208
|
+
throw new Error("searchAllUsersDataByKeys: 'appId' is required");
|
|
2210
2209
|
if (!n)
|
|
2211
|
-
throw new Error("
|
|
2210
|
+
throw new Error("searchAllUsersDataByKeys: 'dataCategory' is required");
|
|
2212
2211
|
return await this.request(
|
|
2213
2212
|
"GET",
|
|
2214
|
-
`/users
|
|
2213
|
+
`/users/${encodeURIComponent(a)}/data/searchbyref/all?${new URLSearchParams(
|
|
2214
|
+
{
|
|
2215
|
+
dataCategory: n,
|
|
2216
|
+
...s ? { query: s } : {},
|
|
2217
|
+
...i
|
|
2218
|
+
}
|
|
2219
|
+
).toString()}`,
|
|
2215
2220
|
void 0,
|
|
2216
2221
|
{},
|
|
2217
2222
|
!1
|
|
2218
|
-
// 👈 no credentials
|
|
2219
2223
|
);
|
|
2220
2224
|
}
|
|
2221
2225
|
// ================= APP DATA =================
|
|
@@ -2384,7 +2388,7 @@ class li {
|
|
|
2384
2388
|
);
|
|
2385
2389
|
}
|
|
2386
2390
|
}
|
|
2387
|
-
var
|
|
2391
|
+
var Ae = { exports: {} }, ke = {};
|
|
2388
2392
|
/**
|
|
2389
2393
|
* @license React
|
|
2390
2394
|
* react-jsx-runtime.production.js
|
|
@@ -2583,8 +2587,8 @@ function qn() {
|
|
|
2583
2587
|
else y(B);
|
|
2584
2588
|
if (G.call(m, "key")) {
|
|
2585
2589
|
B = t(l);
|
|
2586
|
-
var le = Object.keys(m).filter(function(
|
|
2587
|
-
return
|
|
2590
|
+
var le = Object.keys(m).filter(function(A) {
|
|
2591
|
+
return A !== "key";
|
|
2588
2592
|
});
|
|
2589
2593
|
D = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", Y[B + D] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
2590
2594
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -2622,7 +2626,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2622
2626
|
function k(l) {
|
|
2623
2627
|
return typeof l == "object" && l !== null && l.$$typeof === u;
|
|
2624
2628
|
}
|
|
2625
|
-
var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray,
|
|
2629
|
+
var E = Ce, u = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), h = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), g = Symbol.for("react.consumer"), U = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), j = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), X = Symbol.for("react.activity"), W = Symbol.for("react.client.reference"), R = E.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, G = Object.prototype.hasOwnProperty, T = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
2626
2630
|
return null;
|
|
2627
2631
|
};
|
|
2628
2632
|
E = {
|
|
@@ -2633,7 +2637,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2633
2637
|
var M, J = {}, H = E.react_stack_bottom_frame.bind(
|
|
2634
2638
|
E,
|
|
2635
2639
|
a
|
|
2636
|
-
)(), L =
|
|
2640
|
+
)(), L = z(s(a)), Y = {};
|
|
2637
2641
|
Ee.Fragment = h, Ee.jsx = function(l, m, S) {
|
|
2638
2642
|
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
2639
2643
|
return p(
|
|
@@ -2642,7 +2646,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2642
2646
|
S,
|
|
2643
2647
|
!1,
|
|
2644
2648
|
D ? Error("react-stack-top-frame") : H,
|
|
2645
|
-
D ?
|
|
2649
|
+
D ? z(s(l)) : L
|
|
2646
2650
|
);
|
|
2647
2651
|
}, Ee.jsxs = function(l, m, S) {
|
|
2648
2652
|
var D = 1e4 > R.recentlyCreatedOwnerStacks++;
|
|
@@ -2652,14 +2656,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2652
2656
|
S,
|
|
2653
2657
|
!0,
|
|
2654
2658
|
D ? Error("react-stack-top-frame") : H,
|
|
2655
|
-
D ?
|
|
2659
|
+
D ? z(s(l)) : L
|
|
2656
2660
|
);
|
|
2657
2661
|
};
|
|
2658
2662
|
})()), Ee;
|
|
2659
2663
|
}
|
|
2660
2664
|
var It;
|
|
2661
2665
|
function Mn() {
|
|
2662
|
-
return It || (It = 1, process.env.NODE_ENV === "production" ?
|
|
2666
|
+
return It || (It = 1, process.env.NODE_ENV === "production" ? Ae.exports = Fn() : Ae.exports = qn()), Ae.exports;
|
|
2663
2667
|
}
|
|
2664
2668
|
var r = Mn();
|
|
2665
2669
|
/**
|
|
@@ -2702,7 +2706,7 @@ var Vn = {
|
|
|
2702
2706
|
* This source code is licensed under the ISC license.
|
|
2703
2707
|
* See the LICENSE file in the root directory of this source tree.
|
|
2704
2708
|
*/
|
|
2705
|
-
const Yn =
|
|
2709
|
+
const Yn = At(
|
|
2706
2710
|
({
|
|
2707
2711
|
color: t = "currentColor",
|
|
2708
2712
|
size: e = 24,
|
|
@@ -2738,7 +2742,7 @@ const Yn = zt(
|
|
|
2738
2742
|
* See the LICENSE file in the root directory of this source tree.
|
|
2739
2743
|
*/
|
|
2740
2744
|
const F = (t, e) => {
|
|
2741
|
-
const n =
|
|
2745
|
+
const n = At(
|
|
2742
2746
|
({ className: s, ...i }, a) => Je(Yn, {
|
|
2743
2747
|
ref: a,
|
|
2744
2748
|
iconNode: e,
|
|
@@ -3105,7 +3109,7 @@ const Is = [
|
|
|
3105
3109
|
* This source code is licensed under the ISC license.
|
|
3106
3110
|
* See the LICENSE file in the root directory of this source tree.
|
|
3107
3111
|
*/
|
|
3108
|
-
const
|
|
3112
|
+
const zs = [
|
|
3109
3113
|
[
|
|
3110
3114
|
"path",
|
|
3111
3115
|
{
|
|
@@ -3113,20 +3117,20 @@ const As = [
|
|
|
3113
3117
|
key: "oel41y"
|
|
3114
3118
|
}
|
|
3115
3119
|
]
|
|
3116
|
-
], rt = F("shield",
|
|
3120
|
+
], rt = F("shield", zs);
|
|
3117
3121
|
/**
|
|
3118
3122
|
* @license lucide-react v0.544.0 - ISC
|
|
3119
3123
|
*
|
|
3120
3124
|
* This source code is licensed under the ISC license.
|
|
3121
3125
|
* See the LICENSE file in the root directory of this source tree.
|
|
3122
3126
|
*/
|
|
3123
|
-
const
|
|
3127
|
+
const As = [
|
|
3124
3128
|
["path", { d: "M10 11v6", key: "nco0om" }],
|
|
3125
3129
|
["path", { d: "M14 11v6", key: "outv1u" }],
|
|
3126
3130
|
["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }],
|
|
3127
3131
|
["path", { d: "M3 6h18", key: "d0wm0j" }],
|
|
3128
3132
|
["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }]
|
|
3129
|
-
], De = F("trash-2",
|
|
3133
|
+
], De = F("trash-2", As);
|
|
3130
3134
|
/**
|
|
3131
3135
|
* @license lucide-react v0.544.0 - ISC
|
|
3132
3136
|
*
|
|
@@ -3143,7 +3147,7 @@ const Us = [
|
|
|
3143
3147
|
],
|
|
3144
3148
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
3145
3149
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
3146
|
-
],
|
|
3150
|
+
], zt = F("triangle-alert", Us);
|
|
3147
3151
|
/**
|
|
3148
3152
|
* @license lucide-react v0.544.0 - ISC
|
|
3149
3153
|
*
|
|
@@ -3214,7 +3218,7 @@ const Ns = [
|
|
|
3214
3218
|
return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
|
|
3215
3219
|
}
|
|
3216
3220
|
}, []);
|
|
3217
|
-
const
|
|
3221
|
+
const z = (L) => {
|
|
3218
3222
|
const { name: Y, value: l } = L.target;
|
|
3219
3223
|
h((m) => ({ ...m, [Y]: l })), j[Y] && q((m) => ({ ...m, [Y]: void 0 }));
|
|
3220
3224
|
}, M = () => {
|
|
@@ -3506,7 +3510,7 @@ const Ns = [
|
|
|
3506
3510
|
name: "name",
|
|
3507
3511
|
placeholder: "Enter your full name",
|
|
3508
3512
|
value: w.name,
|
|
3509
|
-
onChange:
|
|
3513
|
+
onChange: z,
|
|
3510
3514
|
style: {
|
|
3511
3515
|
...H,
|
|
3512
3516
|
borderColor: j.name ? "#ef4444" : T
|
|
@@ -3561,7 +3565,7 @@ const Ns = [
|
|
|
3561
3565
|
name: "email",
|
|
3562
3566
|
placeholder: "Enter your email address",
|
|
3563
3567
|
value: w.email,
|
|
3564
|
-
onChange:
|
|
3568
|
+
onChange: z,
|
|
3565
3569
|
style: {
|
|
3566
3570
|
...H,
|
|
3567
3571
|
borderColor: j.email ? "#ef4444" : T
|
|
@@ -3616,7 +3620,7 @@ const Ns = [
|
|
|
3616
3620
|
name: "password",
|
|
3617
3621
|
placeholder: "Create a secure password",
|
|
3618
3622
|
value: w.password,
|
|
3619
|
-
onChange:
|
|
3623
|
+
onChange: z,
|
|
3620
3624
|
style: {
|
|
3621
3625
|
...H,
|
|
3622
3626
|
borderColor: j.password ? "#ef4444" : T
|
|
@@ -3694,7 +3698,7 @@ const Ns = [
|
|
|
3694
3698
|
name: "avatarUrl",
|
|
3695
3699
|
placeholder: "Paste your avatar image URL",
|
|
3696
3700
|
value: w.avatarUrl || "",
|
|
3697
|
-
onChange:
|
|
3701
|
+
onChange: z,
|
|
3698
3702
|
style: H
|
|
3699
3703
|
}
|
|
3700
3704
|
)
|
|
@@ -3824,7 +3828,7 @@ const Ns = [
|
|
|
3824
3828
|
email: "",
|
|
3825
3829
|
otp: "",
|
|
3826
3830
|
newPassword: ""
|
|
3827
|
-
}), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280",
|
|
3831
|
+
}), [W, R] = P(!1), G = o ? "#ffffff" : "#111827", T = o ? "#a1a1aa" : "#6b7280", z = o ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", M = o ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
|
|
3828
3832
|
Ce.useEffect(() => {
|
|
3829
3833
|
if (typeof window < "u") {
|
|
3830
3834
|
const m = () => R(window.innerWidth < 768);
|
|
@@ -3894,7 +3898,7 @@ const Ns = [
|
|
|
3894
3898
|
}, l = {
|
|
3895
3899
|
width: "100%",
|
|
3896
3900
|
padding: W ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
|
|
3897
|
-
backgroundColor:
|
|
3901
|
+
backgroundColor: z,
|
|
3898
3902
|
border: `1px solid ${M}`,
|
|
3899
3903
|
borderRadius: "10px",
|
|
3900
3904
|
color: G,
|
|
@@ -4566,7 +4570,7 @@ const Ns = [
|
|
|
4566
4570
|
display: "flex",
|
|
4567
4571
|
alignItems: "flex-start"
|
|
4568
4572
|
},
|
|
4569
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4573
|
+
children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
|
|
4570
4574
|
}
|
|
4571
4575
|
),
|
|
4572
4576
|
/* @__PURE__ */ r.jsxs("div", { style: { flex: 1 }, children: [
|
|
@@ -4727,7 +4731,7 @@ const Ns = [
|
|
|
4727
4731
|
color: "white",
|
|
4728
4732
|
flexShrink: 0
|
|
4729
4733
|
},
|
|
4730
|
-
children: /* @__PURE__ */ r.jsx(
|
|
4734
|
+
children: /* @__PURE__ */ r.jsx(zt, { size: 24 })
|
|
4731
4735
|
}
|
|
4732
4736
|
),
|
|
4733
4737
|
/* @__PURE__ */ r.jsx("div", { style: { flex: 1 }, children: /* @__PURE__ */ r.jsx(
|
|
@@ -6472,7 +6476,7 @@ const Ns = [
|
|
|
6472
6476
|
onVerify: s,
|
|
6473
6477
|
primaryColor: i = "#00C212"
|
|
6474
6478
|
}) => {
|
|
6475
|
-
const a = ge(), [o, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T,
|
|
6479
|
+
const a = ge(), [o, c] = P(null), [d, x] = P(), [p, y] = P(!0), [k, E] = P(!1), [u, w] = P(!1), [h, I] = P(!1), [C, g] = P(!1), [U, N] = P(!1), [b, j] = P(!1), [q, O] = P(!1), [X, W] = P(!1), [R, G] = P(null), [T, z] = P(!1), [M, J] = P({
|
|
6476
6480
|
email: "",
|
|
6477
6481
|
otp: ""
|
|
6478
6482
|
}), [H, L] = P(!1), [Y, l] = P(!1);
|
|
@@ -6632,7 +6636,7 @@ const Ns = [
|
|
|
6632
6636
|
const ye = (v, _) => {
|
|
6633
6637
|
let V = parseInt(v.replace("#", ""), 16), Z = (V >> 16) + _, de = (V >> 8 & 255) + _, Be = (V & 255) + _;
|
|
6634
6638
|
return Z = Math.min(255, Math.max(0, Z)), de = Math.min(255, Math.max(0, de)), Be = Math.min(255, Math.max(0, Be)), `#${(Be | de << 8 | Z << 16).toString(16).padStart(6, "0")}`;
|
|
6635
|
-
},
|
|
6639
|
+
}, A = t ? {
|
|
6636
6640
|
background: "#000000",
|
|
6637
6641
|
surface: "#09090b",
|
|
6638
6642
|
surfaceLight: "#27272a",
|
|
@@ -6671,7 +6675,7 @@ const Ns = [
|
|
|
6671
6675
|
display: "flex",
|
|
6672
6676
|
alignItems: "center",
|
|
6673
6677
|
justifyContent: "center",
|
|
6674
|
-
color:
|
|
6678
|
+
color: A.textPrimary,
|
|
6675
6679
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
|
|
6676
6680
|
},
|
|
6677
6681
|
children: /* @__PURE__ */ r.jsxs(
|
|
@@ -6689,12 +6693,12 @@ const Ns = [
|
|
|
6689
6693
|
se,
|
|
6690
6694
|
{
|
|
6691
6695
|
size: 40,
|
|
6692
|
-
color:
|
|
6696
|
+
color: A.accent,
|
|
6693
6697
|
style: { animation: "spin 1s linear infinite" },
|
|
6694
6698
|
"aria-hidden": "true"
|
|
6695
6699
|
}
|
|
6696
6700
|
),
|
|
6697
|
-
/* @__PURE__ */ r.jsx("p", { style: { color:
|
|
6701
|
+
/* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "Loading your profile..." })
|
|
6698
6702
|
]
|
|
6699
6703
|
}
|
|
6700
6704
|
)
|
|
@@ -6710,7 +6714,7 @@ const Ns = [
|
|
|
6710
6714
|
display: "flex",
|
|
6711
6715
|
alignItems: "center",
|
|
6712
6716
|
justifyContent: "center",
|
|
6713
|
-
color:
|
|
6717
|
+
color: A.textPrimary,
|
|
6714
6718
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif"
|
|
6715
6719
|
},
|
|
6716
6720
|
children: /* @__PURE__ */ r.jsxs(
|
|
@@ -6724,8 +6728,8 @@ const Ns = [
|
|
|
6724
6728
|
textAlign: "center"
|
|
6725
6729
|
},
|
|
6726
6730
|
children: [
|
|
6727
|
-
/* @__PURE__ */ r.jsx(ie, { size: 40, color:
|
|
6728
|
-
/* @__PURE__ */ r.jsx("p", { style: { color:
|
|
6731
|
+
/* @__PURE__ */ r.jsx(ie, { size: 40, color: A.error, "aria-hidden": "true" }),
|
|
6732
|
+
/* @__PURE__ */ r.jsx("p", { style: { color: A.textTertiary, margin: 0 }, children: "No profile found. Please log in again." })
|
|
6729
6733
|
]
|
|
6730
6734
|
}
|
|
6731
6735
|
)
|
|
@@ -6785,7 +6789,7 @@ const Ns = [
|
|
|
6785
6789
|
display: "flex",
|
|
6786
6790
|
alignItems: "center",
|
|
6787
6791
|
justifyContent: "center",
|
|
6788
|
-
color:
|
|
6792
|
+
color: A.textPrimary,
|
|
6789
6793
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, sans-serif",
|
|
6790
6794
|
lineHeight: 1.5,
|
|
6791
6795
|
minHeight: "80vh"
|
|
@@ -6871,7 +6875,7 @@ const Ns = [
|
|
|
6871
6875
|
"section",
|
|
6872
6876
|
{
|
|
6873
6877
|
style: {
|
|
6874
|
-
backgroundColor:
|
|
6878
|
+
backgroundColor: A.surface,
|
|
6875
6879
|
borderRadius: "16px",
|
|
6876
6880
|
position: "relative",
|
|
6877
6881
|
padding: "24px",
|
|
@@ -6925,7 +6929,7 @@ const Ns = [
|
|
|
6925
6929
|
borderRadius: "50%",
|
|
6926
6930
|
objectFit: "cover",
|
|
6927
6931
|
boxShadow: "0 10px 25px -5px rgba(0, 0, 0, 0.3)",
|
|
6928
|
-
border: `3px solid ${
|
|
6932
|
+
border: `3px solid ${A.border}`
|
|
6929
6933
|
},
|
|
6930
6934
|
width: 128,
|
|
6931
6935
|
height: 128,
|
|
@@ -6940,7 +6944,7 @@ const Ns = [
|
|
|
6940
6944
|
position: "absolute",
|
|
6941
6945
|
bottom: "8px",
|
|
6942
6946
|
right: "8px",
|
|
6943
|
-
backgroundColor:
|
|
6947
|
+
backgroundColor: A.accent,
|
|
6944
6948
|
color: "white",
|
|
6945
6949
|
padding: "8px",
|
|
6946
6950
|
borderRadius: "50%",
|
|
@@ -6967,7 +6971,7 @@ const Ns = [
|
|
|
6967
6971
|
fontSize: "24px",
|
|
6968
6972
|
fontWeight: 600,
|
|
6969
6973
|
margin: "0 0 4px 0",
|
|
6970
|
-
color:
|
|
6974
|
+
color: A.textPrimary
|
|
6971
6975
|
},
|
|
6972
6976
|
children: d.name
|
|
6973
6977
|
}
|
|
@@ -6979,7 +6983,7 @@ const Ns = [
|
|
|
6979
6983
|
fontSize: "18px",
|
|
6980
6984
|
fontWeight: 600,
|
|
6981
6985
|
margin: "0 0 4px 0",
|
|
6982
|
-
color:
|
|
6986
|
+
color: A.textTertiary
|
|
6983
6987
|
},
|
|
6984
6988
|
children: [
|
|
6985
6989
|
"@",
|
|
@@ -6991,7 +6995,7 @@ const Ns = [
|
|
|
6991
6995
|
"p",
|
|
6992
6996
|
{
|
|
6993
6997
|
style: {
|
|
6994
|
-
color:
|
|
6998
|
+
color: A.textTertiary,
|
|
6995
6999
|
margin: "0 0 8px 0"
|
|
6996
7000
|
},
|
|
6997
7001
|
children: d.email
|
|
@@ -7002,7 +7006,7 @@ const Ns = [
|
|
|
7002
7006
|
{
|
|
7003
7007
|
style: {
|
|
7004
7008
|
backgroundColor: d.isVerified ? t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)" : t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
|
|
7005
|
-
color: d.isVerified ?
|
|
7009
|
+
color: d.isVerified ? A.success : A.warning,
|
|
7006
7010
|
border: `1px solid ${d.isVerified ? t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)" : t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`,
|
|
7007
7011
|
padding: "6px 12px",
|
|
7008
7012
|
borderRadius: "20px",
|
|
@@ -7036,9 +7040,9 @@ const Ns = [
|
|
|
7036
7040
|
{
|
|
7037
7041
|
onClick: () => E(!1),
|
|
7038
7042
|
style: {
|
|
7039
|
-
backgroundColor:
|
|
7040
|
-
border: `1px solid ${
|
|
7041
|
-
color:
|
|
7043
|
+
backgroundColor: A.surfaceLight,
|
|
7044
|
+
border: `1px solid ${A.border}`,
|
|
7045
|
+
color: A.textPrimary,
|
|
7042
7046
|
padding: "10px 20px",
|
|
7043
7047
|
borderRadius: "6px",
|
|
7044
7048
|
borderStyle: "solid",
|
|
@@ -7066,7 +7070,7 @@ const Ns = [
|
|
|
7066
7070
|
onClick: B,
|
|
7067
7071
|
disabled: u,
|
|
7068
7072
|
style: {
|
|
7069
|
-
background: `linear-gradient(to right, ${
|
|
7073
|
+
background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
|
|
7070
7074
|
opacity: u ? 0.7 : 1,
|
|
7071
7075
|
color: "white",
|
|
7072
7076
|
padding: "10px 20px",
|
|
@@ -7103,7 +7107,7 @@ const Ns = [
|
|
|
7103
7107
|
{
|
|
7104
7108
|
onClick: () => E(!0),
|
|
7105
7109
|
style: {
|
|
7106
|
-
background: `linear-gradient(to right, ${
|
|
7110
|
+
background: `linear-gradient(to right, ${A.accent}, ${A.accentHover})`,
|
|
7107
7111
|
color: "white",
|
|
7108
7112
|
padding: "10px 20px",
|
|
7109
7113
|
borderRadius: "6px",
|
|
@@ -7168,8 +7172,8 @@ const Ns = [
|
|
|
7168
7172
|
"button",
|
|
7169
7173
|
{
|
|
7170
7174
|
style: {
|
|
7171
|
-
backgroundColor:
|
|
7172
|
-
color:
|
|
7175
|
+
backgroundColor: A.surfaceLight,
|
|
7176
|
+
color: A.textPrimary,
|
|
7173
7177
|
padding: "10px 20px",
|
|
7174
7178
|
borderRadius: "6px",
|
|
7175
7179
|
border: "none",
|
|
@@ -7202,8 +7206,8 @@ const Ns = [
|
|
|
7202
7206
|
bottom: "100%",
|
|
7203
7207
|
left: 0,
|
|
7204
7208
|
right: 0,
|
|
7205
|
-
backgroundColor:
|
|
7206
|
-
border: `1px solid ${
|
|
7209
|
+
backgroundColor: A.surface,
|
|
7210
|
+
border: `1px solid ${A.border}`,
|
|
7207
7211
|
borderRadius: "12px 12px 0 0",
|
|
7208
7212
|
boxShadow: "0 -8px 24px rgba(0, 0, 0, 0.25)",
|
|
7209
7213
|
zIndex: 200,
|
|
@@ -7223,7 +7227,7 @@ const Ns = [
|
|
|
7223
7227
|
padding: "14px 18px",
|
|
7224
7228
|
backgroundColor: "transparent",
|
|
7225
7229
|
border: "none",
|
|
7226
|
-
color:
|
|
7230
|
+
color: A.textPrimary,
|
|
7227
7231
|
cursor: "pointer",
|
|
7228
7232
|
transition: "all 0.2s ease",
|
|
7229
7233
|
fontSize: "13px",
|
|
@@ -7233,7 +7237,7 @@ const Ns = [
|
|
|
7233
7237
|
gap: "8px",
|
|
7234
7238
|
textAlign: "left"
|
|
7235
7239
|
},
|
|
7236
|
-
onMouseEnter: (v) => v.currentTarget.style.backgroundColor =
|
|
7240
|
+
onMouseEnter: (v) => v.currentTarget.style.backgroundColor = A.surfaceLight,
|
|
7237
7241
|
onMouseLeave: (v) => v.currentTarget.style.backgroundColor = "transparent",
|
|
7238
7242
|
children: [
|
|
7239
7243
|
/* @__PURE__ */ r.jsx(lt, { size: 14, "aria-hidden": "true" }),
|
|
@@ -7327,7 +7331,7 @@ const Ns = [
|
|
|
7327
7331
|
"section",
|
|
7328
7332
|
{
|
|
7329
7333
|
style: {
|
|
7330
|
-
backgroundColor:
|
|
7334
|
+
backgroundColor: A.surface,
|
|
7331
7335
|
borderRadius: "16px",
|
|
7332
7336
|
padding: "24px",
|
|
7333
7337
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
@@ -7340,7 +7344,7 @@ const Ns = [
|
|
|
7340
7344
|
fontSize: "20px",
|
|
7341
7345
|
fontWeight: 600,
|
|
7342
7346
|
margin: "0 0 24px 0",
|
|
7343
|
-
color:
|
|
7347
|
+
color: A.textSecondary,
|
|
7344
7348
|
display: "flex",
|
|
7345
7349
|
alignItems: "center",
|
|
7346
7350
|
gap: "8px"
|
|
@@ -7378,7 +7382,7 @@ const Ns = [
|
|
|
7378
7382
|
"label",
|
|
7379
7383
|
{
|
|
7380
7384
|
style: {
|
|
7381
|
-
color:
|
|
7385
|
+
color: A.textTertiary,
|
|
7382
7386
|
fontSize: "12px",
|
|
7383
7387
|
fontWeight: 500,
|
|
7384
7388
|
display: "flex",
|
|
@@ -7405,7 +7409,7 @@ const Ns = [
|
|
|
7405
7409
|
borderRadius: "8px",
|
|
7406
7410
|
border: `1px solid ${i}`,
|
|
7407
7411
|
backgroundColor: "transparent",
|
|
7408
|
-
color:
|
|
7412
|
+
color: A.textPrimary,
|
|
7409
7413
|
fontSize: "12px",
|
|
7410
7414
|
outline: "none",
|
|
7411
7415
|
transition: "border-color 0.2s ease",
|
|
@@ -7429,7 +7433,7 @@ const Ns = [
|
|
|
7429
7433
|
display: "flex",
|
|
7430
7434
|
alignItems: "center",
|
|
7431
7435
|
boxSizing: "border-box",
|
|
7432
|
-
color:
|
|
7436
|
+
color: A.textPrimary,
|
|
7433
7437
|
backgroundColor: t ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
|
|
7434
7438
|
},
|
|
7435
7439
|
children: v.value
|
|
@@ -7449,7 +7453,7 @@ const Ns = [
|
|
|
7449
7453
|
"section",
|
|
7450
7454
|
{
|
|
7451
7455
|
style: {
|
|
7452
|
-
backgroundColor:
|
|
7456
|
+
backgroundColor: A.surface,
|
|
7453
7457
|
borderRadius: "16px",
|
|
7454
7458
|
padding: "30px 24px",
|
|
7455
7459
|
boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)"
|
|
@@ -7462,7 +7466,7 @@ const Ns = [
|
|
|
7462
7466
|
fontSize: "20px",
|
|
7463
7467
|
fontWeight: 600,
|
|
7464
7468
|
margin: "0 0 24px 0",
|
|
7465
|
-
color:
|
|
7469
|
+
color: A.textSecondary,
|
|
7466
7470
|
display: "flex",
|
|
7467
7471
|
alignItems: "center",
|
|
7468
7472
|
gap: "8px"
|
|
@@ -7499,7 +7503,7 @@ const Ns = [
|
|
|
7499
7503
|
display: "flex",
|
|
7500
7504
|
alignItems: "center",
|
|
7501
7505
|
gap: "12px",
|
|
7502
|
-
color:
|
|
7506
|
+
color: A.textSecondary
|
|
7503
7507
|
},
|
|
7504
7508
|
children: [
|
|
7505
7509
|
/* @__PURE__ */ r.jsx(pe, { size: 16, "aria-hidden": "true" }),
|
|
@@ -7520,11 +7524,11 @@ const Ns = [
|
|
|
7520
7524
|
gap: "6px",
|
|
7521
7525
|
...d.isVerified ? {
|
|
7522
7526
|
backgroundColor: t ? "rgba(16, 185, 129, 0.1)" : "rgba(16, 185, 129, 0.05)",
|
|
7523
|
-
color:
|
|
7527
|
+
color: A.success,
|
|
7524
7528
|
border: `1px solid ${t ? "rgba(16, 185, 129, 0.3)" : "rgba(16, 185, 129, 0.2)"}`
|
|
7525
7529
|
} : {
|
|
7526
7530
|
backgroundColor: t ? "rgba(245, 158, 11, 0.1)" : "rgba(245, 158, 11, 0.05)",
|
|
7527
|
-
color:
|
|
7531
|
+
color: A.warning,
|
|
7528
7532
|
border: `1px solid ${t ? "rgba(245, 158, 11, 0.3)" : "rgba(245, 158, 11, 0.2)"}`
|
|
7529
7533
|
}
|
|
7530
7534
|
},
|
|
@@ -7552,7 +7556,7 @@ const Ns = [
|
|
|
7552
7556
|
"p",
|
|
7553
7557
|
{
|
|
7554
7558
|
style: {
|
|
7555
|
-
color:
|
|
7559
|
+
color: A.textTertiary,
|
|
7556
7560
|
fontSize: "12px",
|
|
7557
7561
|
margin: 0
|
|
7558
7562
|
},
|
|
@@ -7583,7 +7587,7 @@ const Ns = [
|
|
|
7583
7587
|
I(!1);
|
|
7584
7588
|
},
|
|
7585
7589
|
onUpdate: oe,
|
|
7586
|
-
colors:
|
|
7590
|
+
colors: A
|
|
7587
7591
|
}
|
|
7588
7592
|
),
|
|
7589
7593
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7594,7 +7598,7 @@ const Ns = [
|
|
|
7594
7598
|
onClose: () => g(!1),
|
|
7595
7599
|
onSuccess: (v) => m("success", v),
|
|
7596
7600
|
onError: (v) => m("error", v),
|
|
7597
|
-
colors:
|
|
7601
|
+
colors: A
|
|
7598
7602
|
}
|
|
7599
7603
|
),
|
|
7600
7604
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7605,7 +7609,7 @@ const Ns = [
|
|
|
7605
7609
|
onClose: () => N(!1),
|
|
7606
7610
|
onSuccess: (v) => m("success", v),
|
|
7607
7611
|
onError: (v) => m("error", v),
|
|
7608
|
-
colors:
|
|
7612
|
+
colors: A
|
|
7609
7613
|
}
|
|
7610
7614
|
),
|
|
7611
7615
|
/* @__PURE__ */ r.jsx(
|
|
@@ -7622,7 +7626,7 @@ const Ns = [
|
|
|
7622
7626
|
otpSent: H,
|
|
7623
7627
|
verifying: Y,
|
|
7624
7628
|
user: d,
|
|
7625
|
-
colors:
|
|
7629
|
+
colors: A,
|
|
7626
7630
|
darkMode: t
|
|
7627
7631
|
}
|
|
7628
7632
|
),
|
|
@@ -7824,7 +7828,7 @@ const Ns = [
|
|
|
7824
7828
|
accent: e,
|
|
7825
7829
|
accentHover: `${e}e6`,
|
|
7826
7830
|
error: "#ef4444"
|
|
7827
|
-
},
|
|
7831
|
+
}, z = {
|
|
7828
7832
|
wrapper: {
|
|
7829
7833
|
position: "relative",
|
|
7830
7834
|
display: "inline-block"
|
|
@@ -8088,7 +8092,7 @@ const Ns = [
|
|
|
8088
8092
|
return /* @__PURE__ */ r.jsxs(
|
|
8089
8093
|
"div",
|
|
8090
8094
|
{
|
|
8091
|
-
style:
|
|
8095
|
+
style: z.wrapper,
|
|
8092
8096
|
ref: q,
|
|
8093
8097
|
className: a,
|
|
8094
8098
|
role: "menu",
|
|
@@ -8149,7 +8153,7 @@ const Ns = [
|
|
|
8149
8153
|
"div",
|
|
8150
8154
|
{
|
|
8151
8155
|
ref: O,
|
|
8152
|
-
style:
|
|
8156
|
+
style: z.avatarButton,
|
|
8153
8157
|
onClick: () => I((l) => !l),
|
|
8154
8158
|
onKeyDown: (l) => J(l, () => I((m) => !m)),
|
|
8155
8159
|
tabIndex: 0,
|
|
@@ -8172,7 +8176,7 @@ const Ns = [
|
|
|
8172
8176
|
{
|
|
8173
8177
|
src: C.avatarUrl,
|
|
8174
8178
|
alt: `${C.name}'s avatar`,
|
|
8175
|
-
style:
|
|
8179
|
+
style: z.avatarImage,
|
|
8176
8180
|
loading: "lazy",
|
|
8177
8181
|
onError: (l) => {
|
|
8178
8182
|
const m = l.target;
|
|
@@ -8184,29 +8188,29 @@ const Ns = [
|
|
|
8184
8188
|
{
|
|
8185
8189
|
src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
|
|
8186
8190
|
alt: "Default user avatar",
|
|
8187
|
-
style:
|
|
8191
|
+
style: z.avatarImage,
|
|
8188
8192
|
loading: "lazy"
|
|
8189
8193
|
}
|
|
8190
8194
|
),
|
|
8191
|
-
!R && /* @__PURE__ */ r.jsxs("div", { style:
|
|
8192
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8193
|
-
C?.email && /* @__PURE__ */ r.jsx("div", { style:
|
|
8195
|
+
!R && /* @__PURE__ */ r.jsxs("div", { style: z.userInfo, children: [
|
|
8196
|
+
/* @__PURE__ */ r.jsx("div", { style: z.userName, title: C?.name, children: C?.name || "Guest" }),
|
|
8197
|
+
C?.email && /* @__PURE__ */ r.jsx("div", { style: z.userEmail, title: C.email, children: C.email })
|
|
8194
8198
|
] }),
|
|
8195
8199
|
/* @__PURE__ */ r.jsx(
|
|
8196
8200
|
Zn,
|
|
8197
8201
|
{
|
|
8198
8202
|
size: R ? 14 : 16,
|
|
8199
|
-
style:
|
|
8203
|
+
style: z.chevron,
|
|
8200
8204
|
"aria-hidden": "true"
|
|
8201
8205
|
}
|
|
8202
8206
|
)
|
|
8203
8207
|
]
|
|
8204
8208
|
}
|
|
8205
8209
|
),
|
|
8206
|
-
h && /* @__PURE__ */ r.jsx("div", { style:
|
|
8210
|
+
h && /* @__PURE__ */ r.jsx("div", { style: z.dropdown, role: "menu", "aria-label": "User options", children: U ? /* @__PURE__ */ r.jsxs(
|
|
8207
8211
|
"div",
|
|
8208
8212
|
{
|
|
8209
|
-
style:
|
|
8213
|
+
style: z.loadingContainer,
|
|
8210
8214
|
role: "status",
|
|
8211
8215
|
"aria-live": "polite",
|
|
8212
8216
|
children: [
|
|
@@ -8219,23 +8223,23 @@ const Ns = [
|
|
|
8219
8223
|
"aria-hidden": "true"
|
|
8220
8224
|
}
|
|
8221
8225
|
),
|
|
8222
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8223
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8224
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8225
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8226
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8226
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.loadingSkeleton, children: [
|
|
8227
|
+
/* @__PURE__ */ r.jsx("div", { style: z.skeletonAvatar }),
|
|
8228
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.skeletonTextBlock, children: [
|
|
8229
|
+
/* @__PURE__ */ r.jsx("div", { style: z.skeletonLineShort }),
|
|
8230
|
+
/* @__PURE__ */ r.jsx("div", { style: z.skeletonLineLong })
|
|
8227
8231
|
] })
|
|
8228
8232
|
] })
|
|
8229
8233
|
]
|
|
8230
8234
|
}
|
|
8231
8235
|
) : C ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
|
|
8232
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8236
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.userSection, children: [
|
|
8233
8237
|
C?.avatarUrl ? /* @__PURE__ */ r.jsx(
|
|
8234
8238
|
"img",
|
|
8235
8239
|
{
|
|
8236
8240
|
src: C.avatarUrl,
|
|
8237
8241
|
alt: `${C.name}'s profile picture`,
|
|
8238
|
-
style:
|
|
8242
|
+
style: z.dropdownAvatar,
|
|
8239
8243
|
loading: "lazy",
|
|
8240
8244
|
onError: (l) => {
|
|
8241
8245
|
const m = l.target;
|
|
@@ -8247,20 +8251,20 @@ const Ns = [
|
|
|
8247
8251
|
{
|
|
8248
8252
|
src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
|
|
8249
8253
|
alt: `${C.name}'s default avatar`,
|
|
8250
|
-
style:
|
|
8254
|
+
style: z.dropdownAvatar,
|
|
8251
8255
|
loading: "lazy"
|
|
8252
8256
|
}
|
|
8253
8257
|
),
|
|
8254
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8255
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8256
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8258
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.dropdownUserInfo, children: [
|
|
8259
|
+
/* @__PURE__ */ r.jsx("div", { style: z.dropdownUserName, title: C.name, children: C.name }),
|
|
8260
|
+
/* @__PURE__ */ r.jsx("div", { style: z.dropdownUserEmail, title: C.email, children: C.email })
|
|
8257
8261
|
] })
|
|
8258
8262
|
] }),
|
|
8259
|
-
/* @__PURE__ */ r.jsxs("div", { style:
|
|
8263
|
+
/* @__PURE__ */ r.jsxs("div", { style: z.dropdownSection, children: [
|
|
8260
8264
|
d && H() && /* @__PURE__ */ r.jsxs(
|
|
8261
8265
|
"button",
|
|
8262
8266
|
{
|
|
8263
|
-
style:
|
|
8267
|
+
style: z.menuItem,
|
|
8264
8268
|
onClick: L,
|
|
8265
8269
|
onMouseOver: (l) => {
|
|
8266
8270
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
@@ -8272,15 +8276,15 @@ const Ns = [
|
|
|
8272
8276
|
role: "menuitem",
|
|
8273
8277
|
tabIndex: 0,
|
|
8274
8278
|
children: [
|
|
8275
|
-
/* @__PURE__ */ r.jsx(he, { style:
|
|
8276
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8279
|
+
/* @__PURE__ */ r.jsx(he, { style: z.icon, "aria-hidden": "true" }),
|
|
8280
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: y })
|
|
8277
8281
|
]
|
|
8278
8282
|
}
|
|
8279
8283
|
),
|
|
8280
8284
|
x && c && /* @__PURE__ */ r.jsxs(
|
|
8281
8285
|
"button",
|
|
8282
8286
|
{
|
|
8283
|
-
style:
|
|
8287
|
+
style: z.menuItem,
|
|
8284
8288
|
onClick: Y,
|
|
8285
8289
|
onMouseOver: (l) => {
|
|
8286
8290
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
@@ -8292,8 +8296,8 @@ const Ns = [
|
|
|
8292
8296
|
role: "menuitem",
|
|
8293
8297
|
tabIndex: 0,
|
|
8294
8298
|
children: [
|
|
8295
|
-
/* @__PURE__ */ r.jsx(Os, { style:
|
|
8296
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8299
|
+
/* @__PURE__ */ r.jsx(Os, { style: z.icon, "aria-hidden": "true" }),
|
|
8300
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: k })
|
|
8297
8301
|
]
|
|
8298
8302
|
}
|
|
8299
8303
|
),
|
|
@@ -8303,7 +8307,7 @@ const Ns = [
|
|
|
8303
8307
|
href: C.profileUrl,
|
|
8304
8308
|
target: "_self",
|
|
8305
8309
|
rel: "noopener noreferrer",
|
|
8306
|
-
style:
|
|
8310
|
+
style: z.menuItem,
|
|
8307
8311
|
onMouseOver: (l) => {
|
|
8308
8312
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
8309
8313
|
},
|
|
@@ -8313,16 +8317,16 @@ const Ns = [
|
|
|
8313
8317
|
role: "menuitem",
|
|
8314
8318
|
tabIndex: 0,
|
|
8315
8319
|
children: [
|
|
8316
|
-
/* @__PURE__ */ r.jsx(pe, { style:
|
|
8317
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8320
|
+
/* @__PURE__ */ r.jsx(pe, { style: z.icon, "aria-hidden": "true" }),
|
|
8321
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: E })
|
|
8318
8322
|
]
|
|
8319
8323
|
}
|
|
8320
8324
|
)
|
|
8321
8325
|
] }),
|
|
8322
|
-
/* @__PURE__ */ r.jsx("div", { style:
|
|
8326
|
+
/* @__PURE__ */ r.jsx("div", { style: z.dropdownSection, children: /* @__PURE__ */ r.jsxs(
|
|
8323
8327
|
"button",
|
|
8324
8328
|
{
|
|
8325
|
-
style:
|
|
8329
|
+
style: z.logoutButton,
|
|
8326
8330
|
onClick: n,
|
|
8327
8331
|
onMouseOver: (l) => {
|
|
8328
8332
|
l.currentTarget.style.backgroundColor = T.surfaceHover;
|
|
@@ -8337,15 +8341,15 @@ const Ns = [
|
|
|
8337
8341
|
/* @__PURE__ */ r.jsx(
|
|
8338
8342
|
ct,
|
|
8339
8343
|
{
|
|
8340
|
-
style: { ...
|
|
8344
|
+
style: { ...z.icon, color: T.error },
|
|
8341
8345
|
"aria-hidden": "true"
|
|
8342
8346
|
}
|
|
8343
8347
|
),
|
|
8344
|
-
/* @__PURE__ */ r.jsx("span", { style:
|
|
8348
|
+
/* @__PURE__ */ r.jsx("span", { style: z.menuItemText, children: u })
|
|
8345
8349
|
]
|
|
8346
8350
|
}
|
|
8347
8351
|
) })
|
|
8348
|
-
] }) : /* @__PURE__ */ r.jsxs("div", { style:
|
|
8352
|
+
] }) : /* @__PURE__ */ r.jsxs("div", { style: z.errorState, role: "alert", children: [
|
|
8349
8353
|
/* @__PURE__ */ r.jsxs(
|
|
8350
8354
|
"div",
|
|
8351
8355
|
{
|
|
@@ -8359,7 +8363,7 @@ const Ns = [
|
|
|
8359
8363
|
b && b !== "Not signed in" && /* @__PURE__ */ r.jsx(
|
|
8360
8364
|
"button",
|
|
8361
8365
|
{
|
|
8362
|
-
style:
|
|
8366
|
+
style: z.retryButton,
|
|
8363
8367
|
onClick: M,
|
|
8364
8368
|
onMouseOver: (l) => {
|
|
8365
8369
|
l.currentTarget.style.backgroundColor = T.accentHover;
|