@neuctra/authix 1.1.71 → 1.1.74
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 +243 -284
- package/dist/neuctra-authix.umd.js +13 -23
- package/dist/react/SignedIn.d.ts +0 -1
- package/dist/react/SignedIn.d.ts.map +1 -1
- package/dist/react/SignedOut.d.ts +0 -1
- package/dist/react/SignedOut.d.ts.map +1 -1
- package/dist/sdk/index.d.ts +0 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
}, br = ae("Date"), wr = ae("File"), jr = ae("Blob"), vr = ae("FileList"), Sr = (t) => Pe(t) && re(t.pipe),
|
|
32
|
+
}, br = ae("Date"), wr = ae("File"), jr = ae("Blob"), vr = ae("FileList"), Sr = (t) => Pe(t) && re(t.pipe), Er = (t) => {
|
|
33
33
|
let e;
|
|
34
34
|
return t && (typeof FormData == "function" && t instanceof FormData || re(t.append) && ((e = Me(t)) === "formdata" || // detect form-data instance
|
|
35
35
|
e === "object" && re(t.toString) && t.toString() === "[object FormData]"));
|
|
36
|
-
},
|
|
36
|
+
}, kr = ae("URLSearchParams"), [Cr, Tr, Rr, Pr] = ["ReadableStream", "Request", "Response", "Headers"].map(ae), Ir = (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;
|
|
@@ -181,7 +181,7 @@ const Kr = (t) => {
|
|
|
181
181
|
isArray: we,
|
|
182
182
|
isArrayBuffer: $t,
|
|
183
183
|
isBuffer: Re,
|
|
184
|
-
isFormData:
|
|
184
|
+
isFormData: Er,
|
|
185
185
|
isArrayBufferView: hr,
|
|
186
186
|
isString: mr,
|
|
187
187
|
isNumber: Ft,
|
|
@@ -200,7 +200,7 @@ const Kr = (t) => {
|
|
|
200
200
|
isRegExp: Mr,
|
|
201
201
|
isFunction: re,
|
|
202
202
|
isStream: Sr,
|
|
203
|
-
isURLSearchParams:
|
|
203
|
+
isURLSearchParams: kr,
|
|
204
204
|
isTypedArray: Dr,
|
|
205
205
|
isFileList: vr,
|
|
206
206
|
forEach: Ie,
|
|
@@ -635,7 +635,7 @@ const mn = f.toObjectSet([
|
|
|
635
635
|
i = a.indexOf(":"), r = a.substring(0, i).trim().toLowerCase(), s = a.substring(i + 1).trim(), !(!r || e[r] && mn[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
|
}, yt = Symbol("internals");
|
|
638
|
-
function
|
|
638
|
+
function Ee(t) {
|
|
639
639
|
return t && String(t).trim().toLowerCase();
|
|
640
640
|
}
|
|
641
641
|
function Ne(t) {
|
|
@@ -680,7 +680,7 @@ let ne = class {
|
|
|
680
680
|
set(e, r, s) {
|
|
681
681
|
const i = this;
|
|
682
682
|
function o(c, h, p) {
|
|
683
|
-
const d =
|
|
683
|
+
const d = Ee(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);
|
|
@@ -704,7 +704,7 @@ let ne = class {
|
|
|
704
704
|
return this;
|
|
705
705
|
}
|
|
706
706
|
get(e, r) {
|
|
707
|
-
if (e =
|
|
707
|
+
if (e = Ee(e), e) {
|
|
708
708
|
const s = f.findKey(this, e);
|
|
709
709
|
if (s) {
|
|
710
710
|
const i = this[s];
|
|
@@ -721,7 +721,7 @@ let ne = class {
|
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
has(e, r) {
|
|
724
|
-
if (e =
|
|
724
|
+
if (e = Ee(e), e) {
|
|
725
725
|
const s = f.findKey(this, e);
|
|
726
726
|
return !!(s && this[s] !== void 0 && (!r || Ye(this, this[s], s, r)));
|
|
727
727
|
}
|
|
@@ -731,7 +731,7 @@ let ne = class {
|
|
|
731
731
|
const s = this;
|
|
732
732
|
let i = !1;
|
|
733
733
|
function o(a) {
|
|
734
|
-
if (a =
|
|
734
|
+
if (a = Ee(a), a) {
|
|
735
735
|
const c = f.findKey(s, a);
|
|
736
736
|
c && (!r || Ye(s, s[c], c, r)) && (delete s[c], i = !0);
|
|
737
737
|
}
|
|
@@ -793,7 +793,7 @@ let ne = class {
|
|
|
793
793
|
accessors: {}
|
|
794
794
|
}).accessors, i = this.prototype;
|
|
795
795
|
function o(a) {
|
|
796
|
-
const c =
|
|
796
|
+
const c = Ee(a);
|
|
797
797
|
s[c] || (jn(i, a), s[c] = !0);
|
|
798
798
|
}
|
|
799
799
|
return f.isArray(e) ? e.forEach(o) : o(e), this;
|
|
@@ -856,7 +856,7 @@ function Sn(t, e) {
|
|
|
856
856
|
return O ? Math.round(P * 1e3 / O) : void 0;
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
function
|
|
859
|
+
function En(t, e) {
|
|
860
860
|
let r = 0, s = 1e3 / e, i, o;
|
|
861
861
|
const a = (p, d = Date.now()) => {
|
|
862
862
|
r = d, i = null, o && (clearTimeout(o), o = null), t(...p);
|
|
@@ -871,7 +871,7 @@ function kn(t, e) {
|
|
|
871
871
|
const Le = (t, e, r = 3) => {
|
|
872
872
|
let s = 0;
|
|
873
873
|
const i = Sn(50, 250);
|
|
874
|
-
return
|
|
874
|
+
return En((o) => {
|
|
875
875
|
const a = o.loaded, c = o.lengthComputable ? o.total : void 0, h = a - s, p = i(h), d = a <= c;
|
|
876
876
|
s = a;
|
|
877
877
|
const m = {
|
|
@@ -894,7 +894,7 @@ const Le = (t, e, r = 3) => {
|
|
|
894
894
|
total: t,
|
|
895
895
|
loaded: s
|
|
896
896
|
}), e[1]];
|
|
897
|
-
}, wt = (t) => (...e) => f.asap(() => t(...e)),
|
|
897
|
+
}, wt = (t) => (...e) => f.asap(() => t(...e)), kn = 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
900
|
) : () => !0, Cn = ee.hasStandardBrowserEnv ? (
|
|
@@ -1015,7 +1015,7 @@ const er = (t) => {
|
|
|
1015
1015
|
});
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
1018
|
-
if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 &&
|
|
1018
|
+
if (ee.hasStandardBrowserEnv && (s && f.isFunction(s) && (s = s(e)), s || s !== !1 && kn(e.url))) {
|
|
1019
1019
|
const h = i && o && Cn.read(o);
|
|
1020
1020
|
h && a.set(i, h);
|
|
1021
1021
|
}
|
|
@@ -1162,8 +1162,8 @@ const er = (t) => {
|
|
|
1162
1162
|
Request: t,
|
|
1163
1163
|
Response: e
|
|
1164
1164
|
}))(f.global), {
|
|
1165
|
-
ReadableStream:
|
|
1166
|
-
TextEncoder:
|
|
1165
|
+
ReadableStream: Et,
|
|
1166
|
+
TextEncoder: kt
|
|
1167
1167
|
} = f.global, Ct = (t, ...e) => {
|
|
1168
1168
|
try {
|
|
1169
1169
|
return !!t(...e);
|
|
@@ -1177,10 +1177,10 @@ const er = (t) => {
|
|
|
1177
1177
|
const { fetch: e, Request: r, Response: s } = t, i = e ? Ae(e) : typeof fetch == "function", o = Ae(r), a = Ae(s);
|
|
1178
1178
|
if (!i)
|
|
1179
1179
|
return !1;
|
|
1180
|
-
const c = i && Ae(
|
|
1180
|
+
const c = i && Ae(Et), h = i && (typeof kt == "function" ? /* @__PURE__ */ ((u) => (w) => u.encode(w))(new kt()) : async (u) => new Uint8Array(await new r(u).arrayBuffer())), p = o && c && Ct(() => {
|
|
1181
1181
|
let u = !1;
|
|
1182
1182
|
const w = new r(ee.origin, {
|
|
1183
|
-
body: new
|
|
1183
|
+
body: new Et(),
|
|
1184
1184
|
method: "POST",
|
|
1185
1185
|
get duplex() {
|
|
1186
1186
|
return u = !0, "half";
|
|
@@ -1232,9 +1232,9 @@ const er = (t) => {
|
|
|
1232
1232
|
fetchOptions: M
|
|
1233
1233
|
} = er(u), X = e || fetch;
|
|
1234
1234
|
v = v ? (v + "").toLowerCase() : "text";
|
|
1235
|
-
let
|
|
1236
|
-
const z =
|
|
1237
|
-
|
|
1235
|
+
let k = On([T, A && A.toAbortSignal()], y), V = null;
|
|
1236
|
+
const z = k && k.unsubscribe && (() => {
|
|
1237
|
+
k.unsubscribe();
|
|
1238
1238
|
});
|
|
1239
1239
|
let I;
|
|
1240
1240
|
try {
|
|
@@ -1255,7 +1255,7 @@ const er = (t) => {
|
|
|
1255
1255
|
f.isString(U) || (U = U ? "include" : "omit");
|
|
1256
1256
|
const W = o && "credentials" in r.prototype, Z = {
|
|
1257
1257
|
...M,
|
|
1258
|
-
signal:
|
|
1258
|
+
signal: k,
|
|
1259
1259
|
method: x.toUpperCase(),
|
|
1260
1260
|
headers: F.normalize().toJSON(),
|
|
1261
1261
|
body: C,
|
|
@@ -1811,7 +1811,7 @@ class ui {
|
|
|
1811
1811
|
const { name: r, email: s, password: i } = e;
|
|
1812
1812
|
if (!r || !s || !i)
|
|
1813
1813
|
throw new Error("signup: 'name', 'email', and 'password' are required");
|
|
1814
|
-
return this.request("POST", "/users/signup", e);
|
|
1814
|
+
return await this.request("POST", "/users/signup", e, {}, !0);
|
|
1815
1815
|
}
|
|
1816
1816
|
/**
|
|
1817
1817
|
* Login a user
|
|
@@ -1822,10 +1822,13 @@ class ui {
|
|
|
1822
1822
|
if (!r || !s)
|
|
1823
1823
|
throw new Error("login: 'email' and 'password' are required");
|
|
1824
1824
|
try {
|
|
1825
|
-
return await this.request(
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1825
|
+
return await this.request(
|
|
1826
|
+
"POST",
|
|
1827
|
+
"/users/login",
|
|
1828
|
+
{ email: r, password: s },
|
|
1829
|
+
{},
|
|
1830
|
+
!0
|
|
1831
|
+
);
|
|
1829
1832
|
} catch (i) {
|
|
1830
1833
|
throw new Error(i.message || "Login failed due to an unknown error");
|
|
1831
1834
|
}
|
|
@@ -1841,10 +1844,13 @@ class ui {
|
|
|
1841
1844
|
throw new Error(
|
|
1842
1845
|
"changePassword: both 'currentPassword' and 'newPassword' are required"
|
|
1843
1846
|
);
|
|
1844
|
-
return this.request(
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1847
|
+
return await this.request(
|
|
1848
|
+
"PUT",
|
|
1849
|
+
`/users/change-password/${r}`,
|
|
1850
|
+
{ currentPassword: s, newPassword: i },
|
|
1851
|
+
{},
|
|
1852
|
+
!0
|
|
1853
|
+
);
|
|
1848
1854
|
}
|
|
1849
1855
|
/**
|
|
1850
1856
|
* Send email verification OTP for a user
|
|
@@ -1866,7 +1872,9 @@ class ui {
|
|
|
1866
1872
|
return await this.request(
|
|
1867
1873
|
"POST",
|
|
1868
1874
|
`/users/send-verify-otp/${encodeURIComponent(r)}`,
|
|
1869
|
-
{ email: s }
|
|
1875
|
+
{ email: s },
|
|
1876
|
+
{},
|
|
1877
|
+
!0
|
|
1870
1878
|
);
|
|
1871
1879
|
} catch (i) {
|
|
1872
1880
|
throw console.error("requestEmailVerificationOTP Error:", i), {
|
|
@@ -1884,10 +1892,13 @@ class ui {
|
|
|
1884
1892
|
if (!r) throw new Error("verifyEmail: 'email' is required");
|
|
1885
1893
|
if (!s) throw new Error("verifyEmail: 'otp' is required");
|
|
1886
1894
|
try {
|
|
1887
|
-
return await this.request(
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1895
|
+
return await this.request(
|
|
1896
|
+
"POST",
|
|
1897
|
+
"/users/verify-email",
|
|
1898
|
+
{ email: r, otp: s },
|
|
1899
|
+
{},
|
|
1900
|
+
!0
|
|
1901
|
+
);
|
|
1891
1902
|
} catch (i) {
|
|
1892
1903
|
throw {
|
|
1893
1904
|
message: i.message || "Failed to verify email",
|
|
@@ -1903,7 +1914,13 @@ class ui {
|
|
|
1903
1914
|
if (typeof window > "u")
|
|
1904
1915
|
return { authenticated: !1 };
|
|
1905
1916
|
try {
|
|
1906
|
-
return await this.request(
|
|
1917
|
+
return await this.request(
|
|
1918
|
+
"GET",
|
|
1919
|
+
"/users/session",
|
|
1920
|
+
void 0,
|
|
1921
|
+
{},
|
|
1922
|
+
!0
|
|
1923
|
+
);
|
|
1907
1924
|
} catch {
|
|
1908
1925
|
return { authenticated: !1 };
|
|
1909
1926
|
}
|
|
@@ -1915,9 +1932,13 @@ class ui {
|
|
|
1915
1932
|
async updateUser(e) {
|
|
1916
1933
|
const { userId: r } = e;
|
|
1917
1934
|
if (!r) throw new Error("updateUser: 'userId' is required");
|
|
1918
|
-
return this.request(
|
|
1919
|
-
|
|
1920
|
-
|
|
1935
|
+
return await this.request(
|
|
1936
|
+
"PUT",
|
|
1937
|
+
`/users/update/${r}`,
|
|
1938
|
+
{ ...e },
|
|
1939
|
+
{},
|
|
1940
|
+
!0
|
|
1941
|
+
);
|
|
1921
1942
|
}
|
|
1922
1943
|
/**
|
|
1923
1944
|
* Delete a user
|
|
@@ -1926,7 +1947,13 @@ class ui {
|
|
|
1926
1947
|
async deleteUser(e) {
|
|
1927
1948
|
const { userId: r } = e;
|
|
1928
1949
|
if (!r) throw new Error("deleteUser: 'userId' is required");
|
|
1929
|
-
return this.request(
|
|
1950
|
+
return await this.request(
|
|
1951
|
+
"DELETE",
|
|
1952
|
+
`/users/delete/${r}`,
|
|
1953
|
+
{},
|
|
1954
|
+
{},
|
|
1955
|
+
!0
|
|
1956
|
+
);
|
|
1930
1957
|
}
|
|
1931
1958
|
/**
|
|
1932
1959
|
* Get the profile of a user for a specific app
|
|
@@ -1937,9 +1964,7 @@ class ui {
|
|
|
1937
1964
|
if (!r)
|
|
1938
1965
|
throw new Error("getProfile: 'userId' and 'appId' are required");
|
|
1939
1966
|
try {
|
|
1940
|
-
return await this.request("POST", "/users/profile", {
|
|
1941
|
-
userId: r
|
|
1942
|
-
});
|
|
1967
|
+
return await this.request("POST", "/users/profile", { userId: r }, {}, !0);
|
|
1943
1968
|
} catch (s) {
|
|
1944
1969
|
throw {
|
|
1945
1970
|
message: s.message || "Failed to fetch profile",
|
|
@@ -1955,7 +1980,7 @@ class ui {
|
|
|
1955
1980
|
async requestResetUserPasswordOTP(e) {
|
|
1956
1981
|
const { email: r } = e;
|
|
1957
1982
|
if (!r) throw new Error("forgotPassword: 'email' is required");
|
|
1958
|
-
return this.request("POST", "/users/forgot-password", {
|
|
1983
|
+
return await this.request("POST", "/users/forgot-password", {
|
|
1959
1984
|
email: r
|
|
1960
1985
|
});
|
|
1961
1986
|
}
|
|
@@ -1969,7 +1994,7 @@ class ui {
|
|
|
1969
1994
|
throw new Error(
|
|
1970
1995
|
"resetPassword: 'email', 'otp' and 'newPassword' are required"
|
|
1971
1996
|
);
|
|
1972
|
-
return this.request("POST", "/users/reset-password", {
|
|
1997
|
+
return await this.request("POST", "/users/reset-password", {
|
|
1973
1998
|
email: r,
|
|
1974
1999
|
otp: s,
|
|
1975
2000
|
newPassword: i
|
|
@@ -1983,7 +2008,7 @@ class ui {
|
|
|
1983
2008
|
async checkIfUserExists(e) {
|
|
1984
2009
|
if (!e)
|
|
1985
2010
|
throw new Error("checkUser: 'userId' is required");
|
|
1986
|
-
return this.request(
|
|
2011
|
+
return await this.request(
|
|
1987
2012
|
"GET",
|
|
1988
2013
|
`/users/check-user/${e}?appId=${this.appId}`
|
|
1989
2014
|
);
|
|
@@ -1993,7 +2018,7 @@ class ui {
|
|
|
1993
2018
|
const { userId: r, ...s } = e;
|
|
1994
2019
|
if (!r) throw new Error("userId required");
|
|
1995
2020
|
const i = new URLSearchParams(s).toString();
|
|
1996
|
-
return this.request(
|
|
2021
|
+
return await this.request(
|
|
1997
2022
|
"GET",
|
|
1998
2023
|
`/users/${r}/data/search?${i}`,
|
|
1999
2024
|
void 0,
|
|
@@ -2023,7 +2048,7 @@ class ui {
|
|
|
2023
2048
|
{}
|
|
2024
2049
|
)
|
|
2025
2050
|
).toString();
|
|
2026
|
-
return this.request(
|
|
2051
|
+
return await this.request(
|
|
2027
2052
|
"GET",
|
|
2028
2053
|
`/users/${r}/data/searchbyref?${i}`,
|
|
2029
2054
|
void 0,
|
|
@@ -2039,7 +2064,7 @@ class ui {
|
|
|
2039
2064
|
async getUserData(e) {
|
|
2040
2065
|
const { userId: r } = e;
|
|
2041
2066
|
if (!r) throw new Error("getUserData: 'userId' is required");
|
|
2042
|
-
return this.request(
|
|
2067
|
+
return await this.request(
|
|
2043
2068
|
"GET",
|
|
2044
2069
|
`/users/${r}/data`,
|
|
2045
2070
|
void 0,
|
|
@@ -2056,7 +2081,7 @@ class ui {
|
|
|
2056
2081
|
const { userId: r, dataId: s } = e;
|
|
2057
2082
|
if (!r || !s)
|
|
2058
2083
|
throw new Error("getSingleUserData: 'userId' and 'dataId' are required");
|
|
2059
|
-
return this.request(
|
|
2084
|
+
return await this.request(
|
|
2060
2085
|
"GET",
|
|
2061
2086
|
`/users/${r}/data/${s}`,
|
|
2062
2087
|
void 0,
|
|
@@ -2075,7 +2100,7 @@ class ui {
|
|
|
2075
2100
|
if (!s)
|
|
2076
2101
|
throw new Error("addUserData: 'dataCategory' is required");
|
|
2077
2102
|
if (!i) throw new Error("addUserData: 'data' is required");
|
|
2078
|
-
return this.request(
|
|
2103
|
+
return await this.request(
|
|
2079
2104
|
"POST",
|
|
2080
2105
|
`/users/${r}/data`,
|
|
2081
2106
|
{
|
|
@@ -2096,7 +2121,7 @@ class ui {
|
|
|
2096
2121
|
if (!r || !s)
|
|
2097
2122
|
throw new Error("updateUserData: 'userId' and 'dataId' are required");
|
|
2098
2123
|
if (!i) throw new Error("updateUserData: 'data' is required");
|
|
2099
|
-
return this.request(
|
|
2124
|
+
return await this.request(
|
|
2100
2125
|
"PUT",
|
|
2101
2126
|
`/users/${r}/data/${s}`,
|
|
2102
2127
|
i,
|
|
@@ -2113,7 +2138,7 @@ class ui {
|
|
|
2113
2138
|
const { userId: r, dataId: s } = e;
|
|
2114
2139
|
if (!r || !s)
|
|
2115
2140
|
throw new Error("deleteUserData: 'userId' and 'dataId' are required");
|
|
2116
|
-
return this.request(
|
|
2141
|
+
return await this.request(
|
|
2117
2142
|
"DELETE",
|
|
2118
2143
|
`/users/${r}/data/${s}`,
|
|
2119
2144
|
void 0,
|
|
@@ -2131,10 +2156,14 @@ class ui {
|
|
|
2131
2156
|
const r = this.appId;
|
|
2132
2157
|
if (!r) throw new Error("getAppData: 'appId' is required");
|
|
2133
2158
|
const s = e ? `?category=${encodeURIComponent(e)}` : "";
|
|
2134
|
-
return
|
|
2159
|
+
return await this.request(
|
|
2135
2160
|
"GET",
|
|
2136
|
-
`/app/${r}/data${s}
|
|
2137
|
-
|
|
2161
|
+
`/app/${r}/data${s}`,
|
|
2162
|
+
void 0,
|
|
2163
|
+
{},
|
|
2164
|
+
!1
|
|
2165
|
+
// ✅ include credentials
|
|
2166
|
+
);
|
|
2138
2167
|
}
|
|
2139
2168
|
/**
|
|
2140
2169
|
* Get a single data item from app.appData[] by id
|
|
@@ -2144,35 +2173,29 @@ class ui {
|
|
|
2144
2173
|
if (!r) throw new Error("getSingleAppData: 'appId' is required");
|
|
2145
2174
|
if (!e.dataId)
|
|
2146
2175
|
throw new Error("getSingleAppData: 'dataId' is required");
|
|
2147
|
-
return
|
|
2176
|
+
return await this.request(
|
|
2148
2177
|
"GET",
|
|
2149
|
-
`/app/${r}/data/${e.dataId}
|
|
2150
|
-
|
|
2178
|
+
`/app/${r}/data/${e.dataId}`,
|
|
2179
|
+
void 0,
|
|
2180
|
+
{},
|
|
2181
|
+
!1
|
|
2182
|
+
);
|
|
2151
2183
|
}
|
|
2152
2184
|
/**
|
|
2153
2185
|
* 🔍 Search app data items by dynamic keys (BODY based)
|
|
2154
|
-
* @example
|
|
2155
|
-
* sdk.searchAppDataByKeys({
|
|
2156
|
-
* dataCategory: "order",
|
|
2157
|
-
* buyerId: "user123",
|
|
2158
|
-
* status: "Processing",
|
|
2159
|
-
* q: "iphone"
|
|
2160
|
-
* })
|
|
2161
2186
|
*/
|
|
2162
2187
|
async searchAppDataByKeys(e) {
|
|
2163
2188
|
const r = this.appId;
|
|
2164
|
-
if (!r)
|
|
2165
|
-
throw new Error("searchAppDataByKeys: 'appId' is required");
|
|
2189
|
+
if (!r) throw new Error("searchAppDataByKeys: 'appId' is required");
|
|
2166
2190
|
if (!e || typeof e != "object")
|
|
2167
2191
|
throw new Error("searchAppDataByKeys: params object is required");
|
|
2168
|
-
return
|
|
2192
|
+
return await this.request(
|
|
2169
2193
|
"POST",
|
|
2170
|
-
// ✅ FIX: POST (body-based search)
|
|
2171
2194
|
`/app/${encodeURIComponent(r)}/data/search/bykeys`,
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
)
|
|
2195
|
+
e,
|
|
2196
|
+
{},
|
|
2197
|
+
!1
|
|
2198
|
+
);
|
|
2176
2199
|
}
|
|
2177
2200
|
/**
|
|
2178
2201
|
* Add a new item to app.appData[] under a specific category
|
|
@@ -2185,14 +2208,13 @@ class ui {
|
|
|
2185
2208
|
throw new Error("addAppData: 'dataCategory' is required");
|
|
2186
2209
|
if (!i || typeof i != "object")
|
|
2187
2210
|
throw new Error("addAppData: 'data' is required");
|
|
2188
|
-
return
|
|
2211
|
+
return await this.request(
|
|
2189
2212
|
"POST",
|
|
2190
2213
|
`/app/${r}/data/${encodeURIComponent(s)}`,
|
|
2191
|
-
{
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
))?.data;
|
|
2214
|
+
{ item: i },
|
|
2215
|
+
{},
|
|
2216
|
+
!1
|
|
2217
|
+
);
|
|
2196
2218
|
}
|
|
2197
2219
|
/**
|
|
2198
2220
|
* Update an item in app.appData[] by id
|
|
@@ -2202,11 +2224,13 @@ class ui {
|
|
|
2202
2224
|
if (!r) throw new Error("updateAppData: 'appId' is required");
|
|
2203
2225
|
if (!e.dataId) throw new Error("updateAppData: 'dataId' is required");
|
|
2204
2226
|
if (!e.data) throw new Error("updateAppData: 'data' is required");
|
|
2205
|
-
return
|
|
2227
|
+
return await this.request(
|
|
2206
2228
|
"PATCH",
|
|
2207
2229
|
`/app/${r}/data/${e.dataId}`,
|
|
2208
|
-
e.data
|
|
2209
|
-
|
|
2230
|
+
e.data,
|
|
2231
|
+
{},
|
|
2232
|
+
!1
|
|
2233
|
+
);
|
|
2210
2234
|
}
|
|
2211
2235
|
/**
|
|
2212
2236
|
* Delete an item from app.appData[] by id
|
|
@@ -2215,13 +2239,16 @@ class ui {
|
|
|
2215
2239
|
const r = this.appId;
|
|
2216
2240
|
if (!r) throw new Error("deleteAppData: 'appId' is required");
|
|
2217
2241
|
if (!e.dataId) throw new Error("deleteAppData: 'dataId' is required");
|
|
2218
|
-
return
|
|
2242
|
+
return await this.request(
|
|
2219
2243
|
"DELETE",
|
|
2220
|
-
`/app/${r}/data/${e.dataId}
|
|
2221
|
-
|
|
2244
|
+
`/app/${r}/data/${e.dataId}`,
|
|
2245
|
+
void 0,
|
|
2246
|
+
{},
|
|
2247
|
+
!1
|
|
2248
|
+
);
|
|
2222
2249
|
}
|
|
2223
2250
|
}
|
|
2224
|
-
var _e = { exports: {} },
|
|
2251
|
+
var _e = { exports: {} }, ke = {};
|
|
2225
2252
|
/**
|
|
2226
2253
|
* @license React
|
|
2227
2254
|
* react-jsx-runtime.production.js
|
|
@@ -2233,7 +2260,7 @@ var _e = { exports: {} }, Ee = {};
|
|
|
2233
2260
|
*/
|
|
2234
2261
|
var It;
|
|
2235
2262
|
function Wn() {
|
|
2236
|
-
if (It) return
|
|
2263
|
+
if (It) return ke;
|
|
2237
2264
|
It = 1;
|
|
2238
2265
|
var t = Symbol.for("react.transitional.element"), e = Symbol.for("react.fragment");
|
|
2239
2266
|
function r(s, i, o) {
|
|
@@ -2251,7 +2278,7 @@ function Wn() {
|
|
|
2251
2278
|
props: o
|
|
2252
2279
|
};
|
|
2253
2280
|
}
|
|
2254
|
-
return
|
|
2281
|
+
return ke.Fragment = e, ke.jsx = r, ke.jsxs = r, ke;
|
|
2255
2282
|
}
|
|
2256
2283
|
var Ce = {};
|
|
2257
2284
|
/**
|
|
@@ -2341,7 +2368,7 @@ function Bn() {
|
|
|
2341
2368
|
}
|
|
2342
2369
|
}
|
|
2343
2370
|
function i() {
|
|
2344
|
-
var l =
|
|
2371
|
+
var l = k.A;
|
|
2345
2372
|
return l === null ? null : l.getOwner();
|
|
2346
2373
|
}
|
|
2347
2374
|
function o() {
|
|
@@ -2459,7 +2486,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2459
2486
|
function P(l) {
|
|
2460
2487
|
return typeof l == "object" && l !== null && l.$$typeof === u;
|
|
2461
2488
|
}
|
|
2462
|
-
var O = Te, u = 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"), v = 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"),
|
|
2489
|
+
var O = Te, u = 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"), v = 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"), k = 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() {
|
|
2463
2490
|
return null;
|
|
2464
2491
|
};
|
|
2465
2492
|
O = {
|
|
@@ -2472,7 +2499,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2472
2499
|
o
|
|
2473
2500
|
)(), K = I(s(o)), L = {};
|
|
2474
2501
|
Ce.Fragment = x, Ce.jsx = function(l, b, S) {
|
|
2475
|
-
var j = 1e4 >
|
|
2502
|
+
var j = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
2476
2503
|
return d(
|
|
2477
2504
|
l,
|
|
2478
2505
|
b,
|
|
@@ -2482,7 +2509,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2482
2509
|
j ? I(s(l)) : K
|
|
2483
2510
|
);
|
|
2484
2511
|
}, Ce.jsxs = function(l, b, S) {
|
|
2485
|
-
var j = 1e4 >
|
|
2512
|
+
var j = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
2486
2513
|
return d(
|
|
2487
2514
|
l,
|
|
2488
2515
|
b,
|
|
@@ -2846,7 +2873,7 @@ const Ss = [
|
|
|
2846
2873
|
* This source code is licensed under the ISC license.
|
|
2847
2874
|
* See the LICENSE file in the root directory of this source tree.
|
|
2848
2875
|
*/
|
|
2849
|
-
const
|
|
2876
|
+
const Es = [
|
|
2850
2877
|
[
|
|
2851
2878
|
"path",
|
|
2852
2879
|
{
|
|
@@ -2855,7 +2882,7 @@ const ks = [
|
|
|
2855
2882
|
}
|
|
2856
2883
|
],
|
|
2857
2884
|
["circle", { cx: "12", cy: "10", r: "3", key: "ilqhr7" }]
|
|
2858
|
-
],
|
|
2885
|
+
], ks = q("map-pin", Es);
|
|
2859
2886
|
/**
|
|
2860
2887
|
* @license lucide-react v0.544.0 - ISC
|
|
2861
2888
|
*
|
|
@@ -3045,7 +3072,7 @@ const qs = [
|
|
|
3045
3072
|
password: "",
|
|
3046
3073
|
role: p.length ? p[0] : "user",
|
|
3047
3074
|
...h && { avatarUrl: "" }
|
|
3048
|
-
}, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1),
|
|
3075
|
+
}, [x, C] = R(w), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(null), [F, U] = R({}), [M, X] = R(!1), k = 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)";
|
|
3049
3076
|
Te.useEffect(() => {
|
|
3050
3077
|
if (typeof window < "u") {
|
|
3051
3078
|
const L = () => X(window.innerWidth < 768);
|
|
@@ -3088,7 +3115,7 @@ const qs = [
|
|
|
3088
3115
|
backgroundColor: z,
|
|
3089
3116
|
border: `1px solid ${I}`,
|
|
3090
3117
|
borderRadius: "10px",
|
|
3091
|
-
color:
|
|
3118
|
+
color: k,
|
|
3092
3119
|
fontSize: "15px",
|
|
3093
3120
|
outline: "none",
|
|
3094
3121
|
transition: "all 0.2s ease",
|
|
@@ -3157,7 +3184,7 @@ const qs = [
|
|
|
3157
3184
|
style: {
|
|
3158
3185
|
fontSize: "24px",
|
|
3159
3186
|
fontWeight: 700,
|
|
3160
|
-
color:
|
|
3187
|
+
color: k,
|
|
3161
3188
|
margin: 0
|
|
3162
3189
|
},
|
|
3163
3190
|
children: r
|
|
@@ -3221,7 +3248,7 @@ const qs = [
|
|
|
3221
3248
|
style: {
|
|
3222
3249
|
fontSize: "14px",
|
|
3223
3250
|
fontWeight: 500,
|
|
3224
|
-
color:
|
|
3251
|
+
color: k
|
|
3225
3252
|
},
|
|
3226
3253
|
children: "Select Role"
|
|
3227
3254
|
}
|
|
@@ -3317,7 +3344,7 @@ const qs = [
|
|
|
3317
3344
|
style: {
|
|
3318
3345
|
fontSize: "14px",
|
|
3319
3346
|
fontWeight: 500,
|
|
3320
|
-
color:
|
|
3347
|
+
color: k
|
|
3321
3348
|
},
|
|
3322
3349
|
children: "Full Name"
|
|
3323
3350
|
}
|
|
@@ -3372,7 +3399,7 @@ const qs = [
|
|
|
3372
3399
|
style: {
|
|
3373
3400
|
fontSize: "14px",
|
|
3374
3401
|
fontWeight: 500,
|
|
3375
|
-
color:
|
|
3402
|
+
color: k
|
|
3376
3403
|
},
|
|
3377
3404
|
children: "Email Address"
|
|
3378
3405
|
}
|
|
@@ -3427,7 +3454,7 @@ const qs = [
|
|
|
3427
3454
|
style: {
|
|
3428
3455
|
fontSize: "14px",
|
|
3429
3456
|
fontWeight: 500,
|
|
3430
|
-
color:
|
|
3457
|
+
color: k
|
|
3431
3458
|
},
|
|
3432
3459
|
children: "Password"
|
|
3433
3460
|
}
|
|
@@ -3505,7 +3532,7 @@ const qs = [
|
|
|
3505
3532
|
style: {
|
|
3506
3533
|
fontSize: "14px",
|
|
3507
3534
|
fontWeight: 500,
|
|
3508
|
-
color:
|
|
3535
|
+
color: k
|
|
3509
3536
|
},
|
|
3510
3537
|
children: "Avatar URL (Optional)"
|
|
3511
3538
|
}
|
|
@@ -3663,7 +3690,7 @@ const qs = [
|
|
|
3663
3690
|
email: "",
|
|
3664
3691
|
otp: "",
|
|
3665
3692
|
newPassword: ""
|
|
3666
|
-
}), [
|
|
3693
|
+
}), [k, V] = R(!1), z = c ? "#ffffff" : "#111827", I = c ? "#a1a1aa" : "#6b7280", W = c ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", Z = c ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";
|
|
3667
3694
|
Te.useEffect(() => {
|
|
3668
3695
|
if (typeof window < "u") {
|
|
3669
3696
|
const S = () => V(window.innerWidth < 768);
|
|
@@ -3728,7 +3755,7 @@ const qs = [
|
|
|
3728
3755
|
}
|
|
3729
3756
|
}, b = {
|
|
3730
3757
|
width: "100%",
|
|
3731
|
-
padding:
|
|
3758
|
+
padding: k ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
|
|
3732
3759
|
backgroundColor: W,
|
|
3733
3760
|
border: `1px solid ${Z}`,
|
|
3734
3761
|
borderRadius: "10px",
|
|
@@ -3749,15 +3776,15 @@ const qs = [
|
|
|
3749
3776
|
"div",
|
|
3750
3777
|
{
|
|
3751
3778
|
style: {
|
|
3752
|
-
minWidth:
|
|
3753
|
-
maxWidth:
|
|
3779
|
+
minWidth: k ? "320px" : "380px",
|
|
3780
|
+
maxWidth: k ? "340px" : "390px",
|
|
3754
3781
|
width: "100%",
|
|
3755
3782
|
display: "flex",
|
|
3756
3783
|
flexDirection: "column",
|
|
3757
3784
|
borderRadius: "10px",
|
|
3758
3785
|
fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
|
|
3759
3786
|
backgroundColor: c ? "#000000" : "#ffffff",
|
|
3760
|
-
padding:
|
|
3787
|
+
padding: k ? "30px 24px" : "18px 28px"
|
|
3761
3788
|
},
|
|
3762
3789
|
children: [
|
|
3763
3790
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -4233,106 +4260,38 @@ const qs = [
|
|
|
4233
4260
|
);
|
|
4234
4261
|
}, hi = ({
|
|
4235
4262
|
children: t,
|
|
4236
|
-
fallback: e = null
|
|
4237
|
-
loading: r = null
|
|
4263
|
+
fallback: e = null
|
|
4238
4264
|
}) => {
|
|
4239
|
-
const
|
|
4265
|
+
const r = ue(), [s, i] = R(!1), [o, a] = R(null);
|
|
4240
4266
|
if (te(() => {
|
|
4241
|
-
|
|
4267
|
+
i(!0), (async () => {
|
|
4242
4268
|
try {
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4269
|
+
const p = await r.checkUserSession();
|
|
4270
|
+
a(!!p?.authenticated);
|
|
4245
4271
|
} catch {
|
|
4246
|
-
|
|
4272
|
+
a(!1);
|
|
4247
4273
|
}
|
|
4248
4274
|
})();
|
|
4249
|
-
}, [
|
|
4250
|
-
const
|
|
4251
|
-
|
|
4252
|
-
{
|
|
4253
|
-
style: {
|
|
4254
|
-
position: "fixed",
|
|
4255
|
-
display: "flex",
|
|
4256
|
-
justifyContent: "center",
|
|
4257
|
-
alignItems: "center",
|
|
4258
|
-
width: "100%",
|
|
4259
|
-
height: "100%"
|
|
4260
|
-
},
|
|
4261
|
-
children: [
|
|
4262
|
-
/* @__PURE__ */ n.jsx(
|
|
4263
|
-
"div",
|
|
4264
|
-
{
|
|
4265
|
-
style: {
|
|
4266
|
-
border: "4px solid rgba(0,0,0,0.1)",
|
|
4267
|
-
borderTop: "4px solid #3498db",
|
|
4268
|
-
borderRadius: "50%",
|
|
4269
|
-
width: "36px",
|
|
4270
|
-
height: "36px",
|
|
4271
|
-
animation: "spin 1s linear infinite"
|
|
4272
|
-
}
|
|
4273
|
-
}
|
|
4274
|
-
),
|
|
4275
|
-
/* @__PURE__ */ n.jsx("style", { children: `
|
|
4276
|
-
@keyframes spin {
|
|
4277
|
-
0% { transform: rotate(0deg); }
|
|
4278
|
-
100% { transform: rotate(360deg); }
|
|
4279
|
-
}
|
|
4280
|
-
` })
|
|
4281
|
-
]
|
|
4282
|
-
}
|
|
4283
|
-
);
|
|
4284
|
-
return a === null ? h(r) ?? p : a ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : h(e);
|
|
4275
|
+
}, [r]), !s) return null;
|
|
4276
|
+
const c = (h) => typeof h == "function" ? h() : h;
|
|
4277
|
+
return o === null ? c(e) ?? null : o ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : c(e);
|
|
4285
4278
|
}, mi = ({
|
|
4286
4279
|
children: t,
|
|
4287
|
-
fallback: e = null
|
|
4288
|
-
loading: r = null
|
|
4280
|
+
fallback: e = null
|
|
4289
4281
|
}) => {
|
|
4290
|
-
const
|
|
4282
|
+
const r = ue(), [s, i] = R(!1), [o, a] = R(null);
|
|
4291
4283
|
if (te(() => {
|
|
4292
|
-
|
|
4284
|
+
i(!0), (async () => {
|
|
4293
4285
|
try {
|
|
4294
|
-
const
|
|
4295
|
-
|
|
4286
|
+
const p = await r.checkUserSession();
|
|
4287
|
+
a(!p?.authenticated);
|
|
4296
4288
|
} catch {
|
|
4297
|
-
|
|
4289
|
+
a(!0);
|
|
4298
4290
|
}
|
|
4299
4291
|
})();
|
|
4300
|
-
}, [
|
|
4301
|
-
const
|
|
4302
|
-
|
|
4303
|
-
{
|
|
4304
|
-
style: {
|
|
4305
|
-
position: "fixed",
|
|
4306
|
-
display: "flex",
|
|
4307
|
-
justifyContent: "center",
|
|
4308
|
-
alignItems: "center",
|
|
4309
|
-
width: "100%",
|
|
4310
|
-
height: "100%"
|
|
4311
|
-
},
|
|
4312
|
-
children: [
|
|
4313
|
-
/* @__PURE__ */ n.jsx(
|
|
4314
|
-
"div",
|
|
4315
|
-
{
|
|
4316
|
-
style: {
|
|
4317
|
-
border: "4px solid rgba(0,0,0,0.1)",
|
|
4318
|
-
borderTop: "4px solid #e74c3c",
|
|
4319
|
-
borderRadius: "50%",
|
|
4320
|
-
width: "36px",
|
|
4321
|
-
height: "36px",
|
|
4322
|
-
animation: "spin 1s linear infinite"
|
|
4323
|
-
}
|
|
4324
|
-
}
|
|
4325
|
-
),
|
|
4326
|
-
/* @__PURE__ */ n.jsx("style", { children: `
|
|
4327
|
-
@keyframes spin {
|
|
4328
|
-
0% { transform: rotate(0deg); }
|
|
4329
|
-
100% { transform: rotate(360deg); }
|
|
4330
|
-
}
|
|
4331
|
-
` })
|
|
4332
|
-
]
|
|
4333
|
-
}
|
|
4334
|
-
);
|
|
4335
|
-
return a === null ? h(r) ?? p : a ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : h(e);
|
|
4292
|
+
}, [r]), !s) return null;
|
|
4293
|
+
const c = (h) => typeof h == "function" ? h() : h;
|
|
4294
|
+
return o === null ? c(e) ?? null : o ? /* @__PURE__ */ n.jsx(n.Fragment, { children: t }) : c(e);
|
|
4336
4295
|
}, Ms = ({
|
|
4337
4296
|
isOpen: t,
|
|
4338
4297
|
onClose: e,
|
|
@@ -6366,32 +6325,32 @@ const qs = [
|
|
|
6366
6325
|
onVerify: o,
|
|
6367
6326
|
primaryColor: a = "#00C212"
|
|
6368
6327
|
}) => {
|
|
6369
|
-
const c = ue(), [h, p] = R(null), [d, m] = R(e), [P, O] = R(!0), [u, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [
|
|
6328
|
+
const c = ue(), [h, p] = R(null), [d, m] = R(e), [P, O] = R(!0), [u, w] = R(!1), [x, C] = R(!1), [T, A] = R(!1), [y, _] = R(!1), [g, v] = R(!1), [F, U] = R(!1), [M, X] = R(!1), [k, V] = R(!1), [z, I] = R(null), [W, Z] = R(!1), [B, K] = R({
|
|
6370
6329
|
email: "",
|
|
6371
6330
|
otp: ""
|
|
6372
6331
|
}), [L, l] = R(!1), [b, S] = R(!1);
|
|
6373
6332
|
te(() => {
|
|
6374
6333
|
if (typeof window < "u") {
|
|
6375
|
-
const
|
|
6376
|
-
return
|
|
6334
|
+
const E = () => p(window.innerWidth);
|
|
6335
|
+
return E(), window.addEventListener("resize", E), () => window.removeEventListener("resize", E);
|
|
6377
6336
|
}
|
|
6378
6337
|
}, []);
|
|
6379
|
-
const j = (
|
|
6380
|
-
I({ type:
|
|
6338
|
+
const j = (E, N) => {
|
|
6339
|
+
I({ type: E, message: N }), setTimeout(() => I(null), 3e3);
|
|
6381
6340
|
}, G = () => {
|
|
6382
6341
|
V(!0);
|
|
6383
|
-
const
|
|
6342
|
+
const E = setTimeout(() => {
|
|
6384
6343
|
X(!1), V(!1);
|
|
6385
6344
|
}, 150);
|
|
6386
|
-
return () => clearTimeout(
|
|
6345
|
+
return () => clearTimeout(E);
|
|
6387
6346
|
};
|
|
6388
6347
|
te(() => {
|
|
6389
|
-
const
|
|
6348
|
+
const E = (N) => {
|
|
6390
6349
|
const H = document.querySelector(".dropdown-container");
|
|
6391
6350
|
H && !H.contains(N.target) && G();
|
|
6392
6351
|
};
|
|
6393
|
-
return M && document.addEventListener("mousedown",
|
|
6394
|
-
document.removeEventListener("mousedown",
|
|
6352
|
+
return M && document.addEventListener("mousedown", E), () => {
|
|
6353
|
+
document.removeEventListener("mousedown", E);
|
|
6395
6354
|
};
|
|
6396
6355
|
}, [M]);
|
|
6397
6356
|
const pe = async () => {
|
|
@@ -6405,19 +6364,19 @@ const qs = [
|
|
|
6405
6364
|
}
|
|
6406
6365
|
try {
|
|
6407
6366
|
S(!0);
|
|
6408
|
-
const
|
|
6367
|
+
const E = await c.requestEmailVerificationOTP({
|
|
6409
6368
|
userId: d.id,
|
|
6410
6369
|
email: B.email
|
|
6411
|
-
}), N =
|
|
6370
|
+
}), N = E?.data?.success ?? E?.success, H = E?.data?.message ?? E?.message;
|
|
6412
6371
|
N ? (j("success", H || "OTP sent to email!"), l(!0)) : j("error", H || "Failed to send OTP");
|
|
6413
|
-
} catch (
|
|
6414
|
-
const N =
|
|
6372
|
+
} catch (E) {
|
|
6373
|
+
const N = E?.response?.data?.message || E?.message || "Server error";
|
|
6415
6374
|
j("error", N);
|
|
6416
6375
|
} finally {
|
|
6417
6376
|
S(!1);
|
|
6418
6377
|
}
|
|
6419
|
-
}, Y = async (
|
|
6420
|
-
if (
|
|
6378
|
+
}, Y = async (E) => {
|
|
6379
|
+
if (E.preventDefault(), !B.email || !B.otp) {
|
|
6421
6380
|
j("error", "Please fill in all fields");
|
|
6422
6381
|
return;
|
|
6423
6382
|
}
|
|
@@ -6448,12 +6407,12 @@ const qs = [
|
|
|
6448
6407
|
} finally {
|
|
6449
6408
|
S(!1);
|
|
6450
6409
|
}
|
|
6451
|
-
}, oe = async (
|
|
6410
|
+
}, oe = async (E) => {
|
|
6452
6411
|
if (!d) return !1;
|
|
6453
6412
|
try {
|
|
6454
6413
|
const N = await c.updateUser({
|
|
6455
6414
|
userId: d.id,
|
|
6456
|
-
avatarUrl:
|
|
6415
|
+
avatarUrl: E
|
|
6457
6416
|
});
|
|
6458
6417
|
if (N?.success) {
|
|
6459
6418
|
const H = {
|
|
@@ -6461,7 +6420,7 @@ const qs = [
|
|
|
6461
6420
|
// 🔒 keep existing auth fields
|
|
6462
6421
|
...N.user,
|
|
6463
6422
|
// 🔁 merge backend response if present
|
|
6464
|
-
avatarUrl:
|
|
6423
|
+
avatarUrl: E
|
|
6465
6424
|
};
|
|
6466
6425
|
return m(H), j("success", "Avatar updated successfully!"), !0;
|
|
6467
6426
|
}
|
|
@@ -6473,12 +6432,12 @@ const qs = [
|
|
|
6473
6432
|
if (d) {
|
|
6474
6433
|
C(!0);
|
|
6475
6434
|
try {
|
|
6476
|
-
const
|
|
6435
|
+
const E = d.email, N = await c.updateUser({
|
|
6477
6436
|
userId: d.id,
|
|
6478
6437
|
...d
|
|
6479
6438
|
});
|
|
6480
6439
|
if (N.success && N.user) {
|
|
6481
|
-
const H = N.user.email !==
|
|
6440
|
+
const H = N.user.email !== E, Q = {
|
|
6482
6441
|
...d,
|
|
6483
6442
|
// keep old state
|
|
6484
6443
|
...N.user,
|
|
@@ -6491,15 +6450,15 @@ const qs = [
|
|
|
6491
6450
|
), w(!1);
|
|
6492
6451
|
} else
|
|
6493
6452
|
j("error", N.message || "Update failed");
|
|
6494
|
-
} catch (
|
|
6495
|
-
console.error(
|
|
6453
|
+
} catch (E) {
|
|
6454
|
+
console.error(E), j("error", "Update failed");
|
|
6496
6455
|
} finally {
|
|
6497
6456
|
C(!1);
|
|
6498
6457
|
}
|
|
6499
6458
|
}
|
|
6500
|
-
}, Ve = async (
|
|
6459
|
+
}, Ve = async (E) => {
|
|
6501
6460
|
try {
|
|
6502
|
-
const N = await c.checkIfUserExists(
|
|
6461
|
+
const N = await c.checkIfUserExists(E);
|
|
6503
6462
|
N?.success === !0 && N?.exists === !1 && (console.warn("❌ User does not exist on server. Clearing session..."), localStorage.removeItem("userInfo"), m(null));
|
|
6504
6463
|
} catch (N) {
|
|
6505
6464
|
console.error("⚠️ User validation request failed:", N);
|
|
@@ -6526,10 +6485,10 @@ const qs = [
|
|
|
6526
6485
|
}
|
|
6527
6486
|
})();
|
|
6528
6487
|
}, [e]), te(() => {
|
|
6529
|
-
d?.email && K((
|
|
6488
|
+
d?.email && K((E) => ({ ...E, email: d.email }));
|
|
6530
6489
|
}, [d?.email]);
|
|
6531
|
-
const pt = (
|
|
6532
|
-
let H = parseInt(
|
|
6490
|
+
const pt = (E, N) => {
|
|
6491
|
+
let H = parseInt(E.replace("#", ""), 16), Q = (H >> 16) + N, le = (H >> 8 & 255) + N, Se = (H & 255) + N;
|
|
6533
6492
|
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")}`;
|
|
6534
6493
|
}, D = r ? {
|
|
6535
6494
|
background: "#000000",
|
|
@@ -6657,7 +6616,7 @@ const qs = [
|
|
|
6657
6616
|
value: d.address || "Not provided",
|
|
6658
6617
|
name: "address",
|
|
6659
6618
|
type: "text",
|
|
6660
|
-
icon:
|
|
6619
|
+
icon: ks
|
|
6661
6620
|
}
|
|
6662
6621
|
];
|
|
6663
6622
|
return /* @__PURE__ */ n.jsxs(
|
|
@@ -7064,7 +7023,7 @@ const qs = [
|
|
|
7064
7023
|
M && /* @__PURE__ */ n.jsxs(
|
|
7065
7024
|
"div",
|
|
7066
7025
|
{
|
|
7067
|
-
className: `dropdown-container ${
|
|
7026
|
+
className: `dropdown-container ${k ? "closing" : ""}`,
|
|
7068
7027
|
style: {
|
|
7069
7028
|
position: "absolute",
|
|
7070
7029
|
bottom: "100%",
|
|
@@ -7077,7 +7036,7 @@ const qs = [
|
|
|
7077
7036
|
zIndex: 200,
|
|
7078
7037
|
marginBottom: "6px",
|
|
7079
7038
|
overflow: "hidden",
|
|
7080
|
-
animation: `${
|
|
7039
|
+
animation: `${k ? "drawerSlideDown" : "drawerSlideUp"} 0.25s ease-out forwards`
|
|
7081
7040
|
},
|
|
7082
7041
|
children: [
|
|
7083
7042
|
/* @__PURE__ */ n.jsxs(
|
|
@@ -7101,8 +7060,8 @@ const qs = [
|
|
|
7101
7060
|
gap: "8px",
|
|
7102
7061
|
textAlign: "left"
|
|
7103
7062
|
},
|
|
7104
|
-
onMouseEnter: (
|
|
7105
|
-
onMouseLeave: (
|
|
7063
|
+
onMouseEnter: (E) => E.currentTarget.style.backgroundColor = D.surfaceLight,
|
|
7064
|
+
onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
|
|
7106
7065
|
children: [
|
|
7107
7066
|
/* @__PURE__ */ n.jsx(ct, { size: 14, "aria-hidden": "true" }),
|
|
7108
7067
|
"Change Password"
|
|
@@ -7130,10 +7089,10 @@ const qs = [
|
|
|
7130
7089
|
gap: "8px",
|
|
7131
7090
|
textAlign: "left"
|
|
7132
7091
|
},
|
|
7133
|
-
onMouseEnter: (
|
|
7134
|
-
|
|
7092
|
+
onMouseEnter: (E) => {
|
|
7093
|
+
E.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
|
|
7135
7094
|
},
|
|
7136
|
-
onMouseLeave: (
|
|
7095
|
+
onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
|
|
7137
7096
|
children: [
|
|
7138
7097
|
/* @__PURE__ */ n.jsx(dt, { size: 14, "aria-hidden": "true" }),
|
|
7139
7098
|
"Logout"
|
|
@@ -7161,10 +7120,10 @@ const qs = [
|
|
|
7161
7120
|
gap: "8px",
|
|
7162
7121
|
textAlign: "left"
|
|
7163
7122
|
},
|
|
7164
|
-
onMouseEnter: (
|
|
7165
|
-
|
|
7123
|
+
onMouseEnter: (E) => {
|
|
7124
|
+
E.currentTarget.style.backgroundColor = r ? "rgba(239, 68, 68, 0.1)" : "rgba(239, 68, 68, 0.05)";
|
|
7166
7125
|
},
|
|
7167
|
-
onMouseLeave: (
|
|
7126
|
+
onMouseLeave: (E) => E.currentTarget.style.backgroundColor = "transparent",
|
|
7168
7127
|
children: [
|
|
7169
7128
|
/* @__PURE__ */ n.jsx($e, { size: 14, "aria-hidden": "true" }),
|
|
7170
7129
|
"Delete Account"
|
|
@@ -7231,8 +7190,8 @@ const qs = [
|
|
|
7231
7190
|
gap: "20px"
|
|
7232
7191
|
}
|
|
7233
7192
|
},
|
|
7234
|
-
children: ur.map((
|
|
7235
|
-
const N =
|
|
7193
|
+
children: ur.map((E) => {
|
|
7194
|
+
const N = E.icon;
|
|
7236
7195
|
return /* @__PURE__ */ n.jsxs(
|
|
7237
7196
|
"div",
|
|
7238
7197
|
{
|
|
@@ -7255,16 +7214,16 @@ const qs = [
|
|
|
7255
7214
|
},
|
|
7256
7215
|
children: [
|
|
7257
7216
|
/* @__PURE__ */ n.jsx(N, { size: 16, "aria-hidden": "true" }),
|
|
7258
|
-
|
|
7217
|
+
E.label
|
|
7259
7218
|
]
|
|
7260
7219
|
}
|
|
7261
7220
|
),
|
|
7262
7221
|
u ? /* @__PURE__ */ n.jsx(
|
|
7263
7222
|
"input",
|
|
7264
7223
|
{
|
|
7265
|
-
type:
|
|
7266
|
-
name:
|
|
7267
|
-
value: d[
|
|
7224
|
+
type: E.type,
|
|
7225
|
+
name: E.name,
|
|
7226
|
+
value: d[E.name],
|
|
7268
7227
|
onChange: (H) => m(
|
|
7269
7228
|
(Q) => Q && { ...Q, [H.target.name]: H.target.value }
|
|
7270
7229
|
),
|
|
@@ -7281,8 +7240,8 @@ const qs = [
|
|
|
7281
7240
|
width: "100%",
|
|
7282
7241
|
boxSizing: "border-box"
|
|
7283
7242
|
},
|
|
7284
|
-
placeholder: `Enter ${
|
|
7285
|
-
"aria-label":
|
|
7243
|
+
placeholder: `Enter ${E.label.toLowerCase()}`,
|
|
7244
|
+
"aria-label": E.label
|
|
7286
7245
|
}
|
|
7287
7246
|
) : /* @__PURE__ */ n.jsx(
|
|
7288
7247
|
"div",
|
|
@@ -7299,12 +7258,12 @@ const qs = [
|
|
|
7299
7258
|
color: D.textPrimary,
|
|
7300
7259
|
backgroundColor: r ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.05)"
|
|
7301
7260
|
},
|
|
7302
|
-
children:
|
|
7261
|
+
children: E.value
|
|
7303
7262
|
}
|
|
7304
7263
|
)
|
|
7305
7264
|
]
|
|
7306
7265
|
},
|
|
7307
|
-
|
|
7266
|
+
E.name
|
|
7308
7267
|
);
|
|
7309
7268
|
})
|
|
7310
7269
|
}
|
|
@@ -7459,8 +7418,8 @@ const qs = [
|
|
|
7459
7418
|
userId: d.id,
|
|
7460
7419
|
isOpen: y,
|
|
7461
7420
|
onClose: () => _(!1),
|
|
7462
|
-
onSuccess: (
|
|
7463
|
-
onError: (
|
|
7421
|
+
onSuccess: (E) => j("success", E),
|
|
7422
|
+
onError: (E) => j("error", E),
|
|
7464
7423
|
colors: D
|
|
7465
7424
|
}
|
|
7466
7425
|
),
|
|
@@ -7471,8 +7430,8 @@ const qs = [
|
|
|
7471
7430
|
token: t,
|
|
7472
7431
|
isOpen: g,
|
|
7473
7432
|
onClose: () => v(!1),
|
|
7474
|
-
onSuccess: (
|
|
7475
|
-
onError: (
|
|
7433
|
+
onSuccess: (E) => j("success", E),
|
|
7434
|
+
onError: (E) => j("error", E),
|
|
7476
7435
|
colors: D
|
|
7477
7436
|
}
|
|
7478
7437
|
),
|
|
@@ -7606,7 +7565,7 @@ const qs = [
|
|
|
7606
7565
|
viewProfileLabel: O = "View Profile",
|
|
7607
7566
|
logoutLabel: u = "Sign Out"
|
|
7608
7567
|
}) => {
|
|
7609
|
-
const w = ue(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [
|
|
7568
|
+
const w = ue(), [x, C] = R(!1), [T, A] = R(null), [y, _] = R(!0), [g, v] = R(null), F = ft(null), U = ft(null), [M, X] = R(!1), [k, V] = R(!1);
|
|
7610
7569
|
te(() => {
|
|
7611
7570
|
if (typeof window > "u") return;
|
|
7612
7571
|
const l = () => {
|
|
@@ -7700,19 +7659,19 @@ const qs = [
|
|
|
7700
7659
|
avatarButton: {
|
|
7701
7660
|
display: "flex",
|
|
7702
7661
|
alignItems: "center",
|
|
7703
|
-
gap:
|
|
7704
|
-
padding:
|
|
7662
|
+
gap: k ? "6px" : "8px",
|
|
7663
|
+
padding: k ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
|
|
7705
7664
|
borderRadius: "24px",
|
|
7706
7665
|
backgroundColor: z.surface,
|
|
7707
7666
|
cursor: "pointer",
|
|
7708
7667
|
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
7709
|
-
minWidth:
|
|
7710
|
-
maxWidth:
|
|
7668
|
+
minWidth: k ? "auto" : "140px",
|
|
7669
|
+
maxWidth: k ? "200px" : "none",
|
|
7711
7670
|
outline: "none"
|
|
7712
7671
|
},
|
|
7713
7672
|
avatarImage: {
|
|
7714
|
-
width:
|
|
7715
|
-
height:
|
|
7673
|
+
width: k ? "28px" : "32px",
|
|
7674
|
+
height: k ? "28px" : "32px",
|
|
7716
7675
|
borderRadius: "50%",
|
|
7717
7676
|
objectFit: "cover",
|
|
7718
7677
|
border: `2px solid ${z.borderLight}`,
|
|
@@ -7727,23 +7686,23 @@ const qs = [
|
|
|
7727
7686
|
overflow: "hidden"
|
|
7728
7687
|
},
|
|
7729
7688
|
userName: {
|
|
7730
|
-
fontSize:
|
|
7689
|
+
fontSize: k ? "13px" : "14px",
|
|
7731
7690
|
fontWeight: 600,
|
|
7732
7691
|
color: z.textPrimary,
|
|
7733
7692
|
lineHeight: "1.2",
|
|
7734
7693
|
whiteSpace: "nowrap",
|
|
7735
7694
|
overflow: "hidden",
|
|
7736
7695
|
textOverflow: "ellipsis",
|
|
7737
|
-
maxWidth:
|
|
7696
|
+
maxWidth: k ? "80px" : "120px"
|
|
7738
7697
|
},
|
|
7739
7698
|
userEmail: {
|
|
7740
|
-
fontSize:
|
|
7699
|
+
fontSize: k ? "11px" : "12px",
|
|
7741
7700
|
color: z.textTertiary,
|
|
7742
7701
|
lineHeight: "1.2",
|
|
7743
7702
|
whiteSpace: "nowrap",
|
|
7744
7703
|
overflow: "hidden",
|
|
7745
7704
|
textOverflow: "ellipsis",
|
|
7746
|
-
maxWidth:
|
|
7705
|
+
maxWidth: k ? "80px" : "120px"
|
|
7747
7706
|
},
|
|
7748
7707
|
chevron: {
|
|
7749
7708
|
transition: "transform 0.2s ease",
|
|
@@ -7772,7 +7731,7 @@ const qs = [
|
|
|
7772
7731
|
overflow: "hidden"
|
|
7773
7732
|
},
|
|
7774
7733
|
dropdownSection: {
|
|
7775
|
-
padding:
|
|
7734
|
+
padding: k ? "10px 12px" : "0px 16px",
|
|
7776
7735
|
"&:last-child": {
|
|
7777
7736
|
borderBottom: "none"
|
|
7778
7737
|
}
|
|
@@ -7780,12 +7739,12 @@ const qs = [
|
|
|
7780
7739
|
userSection: {
|
|
7781
7740
|
display: "flex",
|
|
7782
7741
|
alignItems: "center",
|
|
7783
|
-
gap:
|
|
7784
|
-
padding:
|
|
7742
|
+
gap: k ? "10px" : "12px",
|
|
7743
|
+
padding: k ? "14px" : "16px"
|
|
7785
7744
|
},
|
|
7786
7745
|
dropdownAvatar: {
|
|
7787
|
-
width:
|
|
7788
|
-
height:
|
|
7746
|
+
width: k ? "40px" : "48px",
|
|
7747
|
+
height: k ? "40px" : "48px",
|
|
7789
7748
|
borderRadius: "50%",
|
|
7790
7749
|
objectFit: "cover",
|
|
7791
7750
|
border: `2px solid ${z.borderLight}`,
|
|
@@ -7798,7 +7757,7 @@ const qs = [
|
|
|
7798
7757
|
minWidth: 0
|
|
7799
7758
|
},
|
|
7800
7759
|
dropdownUserName: {
|
|
7801
|
-
fontSize:
|
|
7760
|
+
fontSize: k ? "15px" : "16px",
|
|
7802
7761
|
fontWeight: 600,
|
|
7803
7762
|
color: z.textPrimary,
|
|
7804
7763
|
lineHeight: "1.2",
|
|
@@ -7807,7 +7766,7 @@ const qs = [
|
|
|
7807
7766
|
textOverflow: "ellipsis"
|
|
7808
7767
|
},
|
|
7809
7768
|
dropdownUserEmail: {
|
|
7810
|
-
fontSize:
|
|
7769
|
+
fontSize: k ? "13px" : "14px",
|
|
7811
7770
|
color: z.textSecondary,
|
|
7812
7771
|
lineHeight: "1.2",
|
|
7813
7772
|
overflow: "hidden",
|
|
@@ -7816,8 +7775,8 @@ const qs = [
|
|
|
7816
7775
|
menuItem: {
|
|
7817
7776
|
display: "flex",
|
|
7818
7777
|
alignItems: "center",
|
|
7819
|
-
gap:
|
|
7820
|
-
padding:
|
|
7778
|
+
gap: k ? "10px" : "12px",
|
|
7779
|
+
padding: k ? "10px 12px" : "12px 16px",
|
|
7821
7780
|
borderRadius: "8px",
|
|
7822
7781
|
cursor: "pointer",
|
|
7823
7782
|
transition: "all 0.15s ease",
|
|
@@ -7826,7 +7785,7 @@ const qs = [
|
|
|
7826
7785
|
border: "none",
|
|
7827
7786
|
background: "none",
|
|
7828
7787
|
width: "100%",
|
|
7829
|
-
fontSize:
|
|
7788
|
+
fontSize: k ? "13px" : "14px",
|
|
7830
7789
|
textAlign: "left",
|
|
7831
7790
|
outline: "none"
|
|
7832
7791
|
},
|
|
@@ -7834,38 +7793,38 @@ const qs = [
|
|
|
7834
7793
|
flex: 1
|
|
7835
7794
|
},
|
|
7836
7795
|
icon: {
|
|
7837
|
-
width:
|
|
7838
|
-
height:
|
|
7796
|
+
width: k ? "16px" : "18px",
|
|
7797
|
+
height: k ? "16px" : "18px",
|
|
7839
7798
|
color: z.textSecondary,
|
|
7840
7799
|
flexShrink: 0
|
|
7841
7800
|
},
|
|
7842
7801
|
logoutButton: {
|
|
7843
7802
|
display: "flex",
|
|
7844
7803
|
alignItems: "center",
|
|
7845
|
-
gap:
|
|
7846
|
-
padding:
|
|
7804
|
+
gap: k ? "10px" : "12px",
|
|
7805
|
+
padding: k ? "10px 12px" : "12px 16px",
|
|
7847
7806
|
borderRadius: "8px",
|
|
7848
7807
|
cursor: "pointer",
|
|
7849
7808
|
transition: "all 0.15s ease",
|
|
7850
7809
|
background: "none",
|
|
7851
7810
|
border: "none",
|
|
7852
7811
|
width: "100%",
|
|
7853
|
-
fontSize:
|
|
7812
|
+
fontSize: k ? "13px" : "14px",
|
|
7854
7813
|
color: z.error,
|
|
7855
7814
|
textAlign: "left",
|
|
7856
7815
|
outline: "none"
|
|
7857
7816
|
},
|
|
7858
7817
|
loadingText: {
|
|
7859
|
-
padding:
|
|
7818
|
+
padding: k ? "16px 12px" : "20px 16px",
|
|
7860
7819
|
textAlign: "center",
|
|
7861
7820
|
color: z.textSecondary,
|
|
7862
|
-
fontSize:
|
|
7821
|
+
fontSize: k ? "13px" : "14px"
|
|
7863
7822
|
},
|
|
7864
7823
|
errorState: {
|
|
7865
|
-
padding:
|
|
7824
|
+
padding: k ? "16px 12px" : "20px 16px",
|
|
7866
7825
|
textAlign: "center",
|
|
7867
7826
|
color: z.textSecondary,
|
|
7868
|
-
fontSize:
|
|
7827
|
+
fontSize: k ? "13px" : "14px",
|
|
7869
7828
|
display: "flex",
|
|
7870
7829
|
alignItems: "center",
|
|
7871
7830
|
justifyContent: "center",
|
|
@@ -7944,8 +7903,8 @@ const qs = [
|
|
|
7944
7903
|
src: T.avatarUrl,
|
|
7945
7904
|
alt: `${T?.name || "User"}'s avatar`,
|
|
7946
7905
|
style: {
|
|
7947
|
-
width:
|
|
7948
|
-
height:
|
|
7906
|
+
width: k ? "34px" : "36px",
|
|
7907
|
+
height: k ? "34px" : "36px",
|
|
7949
7908
|
borderRadius: "50%",
|
|
7950
7909
|
objectFit: "cover",
|
|
7951
7910
|
border: `2px solid ${z.borderLight}`,
|
|
@@ -7967,8 +7926,8 @@ const qs = [
|
|
|
7967
7926
|
)}`,
|
|
7968
7927
|
alt: "Default user avatar",
|
|
7969
7928
|
style: {
|
|
7970
|
-
width:
|
|
7971
|
-
height:
|
|
7929
|
+
width: k ? "34px" : "40px",
|
|
7930
|
+
height: k ? "34px" : "40px",
|
|
7972
7931
|
borderRadius: "50%",
|
|
7973
7932
|
objectFit: "cover",
|
|
7974
7933
|
border: `2px solid ${z.borderLight}`,
|
|
@@ -8021,14 +7980,14 @@ const qs = [
|
|
|
8021
7980
|
loading: "lazy"
|
|
8022
7981
|
}
|
|
8023
7982
|
),
|
|
8024
|
-
!
|
|
7983
|
+
!k && /* @__PURE__ */ n.jsxs("div", { style: I.userInfo, children: [
|
|
8025
7984
|
/* @__PURE__ */ n.jsx("div", { style: I.userName, title: T?.name, children: T?.name || "Guest" }),
|
|
8026
7985
|
T?.email && /* @__PURE__ */ n.jsx("div", { style: I.userEmail, title: T.email, children: T.email })
|
|
8027
7986
|
] }),
|
|
8028
7987
|
/* @__PURE__ */ n.jsx(
|
|
8029
7988
|
ts,
|
|
8030
7989
|
{
|
|
8031
|
-
size:
|
|
7990
|
+
size: k ? 14 : 16,
|
|
8032
7991
|
style: I.chevron,
|
|
8033
7992
|
"aria-hidden": "true"
|
|
8034
7993
|
}
|