@neuctra/authix 1.0.15 → 1.0.16

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.
@@ -336,10 +336,10 @@ function Be(e, t, r) {
336
336
  if (p.endsWith(b, "{}"))
337
337
  b = s ? b : b.slice(0, -2), d = JSON.stringify(d);
338
338
  else if (p.isArray(d) && Xr(d) || (p.isFileList(d) || p.endsWith(b, "[]")) && (L = p.toArray(d)))
339
- return b = qt(b), L.forEach(function(A, C) {
339
+ return b = qt(b), L.forEach(function(A, k) {
340
340
  !(p.isUndefined(A) || A === null) && t.append(
341
341
  // eslint-disable-next-line no-nested-ternary
342
- a === !0 ? pt([b], C, i) : a === null ? b : b + "[]",
342
+ a === !0 ? pt([b], k, i) : a === null ? b : b + "[]",
343
343
  c(A)
344
344
  );
345
345
  }), !1;
@@ -1054,20 +1054,20 @@ const Zt = (e) => {
1054
1054
  !g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.indexOf("file:") === 0) || setTimeout(L);
1055
1055
  }, g.onabort = function() {
1056
1056
  g && (s(new U("Request aborted", U.ECONNABORTED, e, g)), g = null);
1057
- }, g.onerror = function(C) {
1058
- const M = C && C.message ? C.message : "Network Error", m = new U(M, U.ERR_NETWORK, e, g);
1059
- m.event = C || null, s(m), g = null;
1057
+ }, g.onerror = function(k) {
1058
+ const M = k && k.message ? k.message : "Network Error", m = new U(M, U.ERR_NETWORK, e, g);
1059
+ m.event = k || null, s(m), g = null;
1060
1060
  }, g.ontimeout = function() {
1061
- let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1061
+ let k = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1062
1062
  const M = o.transitional || Yt;
1063
- o.timeoutErrorMessage && (C = o.timeoutErrorMessage), s(new U(
1064
- C,
1063
+ o.timeoutErrorMessage && (k = o.timeoutErrorMessage), s(new U(
1064
+ k,
1065
1065
  M.clarifyTimeoutError ? U.ETIMEDOUT : U.ECONNABORTED,
1066
1066
  e,
1067
1067
  g
1068
1068
  )), g = null;
1069
- }, i === void 0 && a.setContentType(null), "setRequestHeader" in g && p.forEach(a.toJSON(), function(C, M) {
1070
- g.setRequestHeader(M, C);
1069
+ }, i === void 0 && a.setContentType(null), "setRequestHeader" in g && p.forEach(a.toJSON(), function(k, M) {
1070
+ g.setRequestHeader(M, k);
1071
1071
  }), p.isUndefined(o.withCredentials) || (g.withCredentials = !!o.withCredentials), l && l !== "json" && (g.responseType = o.responseType), c && ([T, d] = De(c, !0), g.addEventListener("progress", T)), h && g.upload && ([y, S] = De(h), g.upload.addEventListener("progress", y), g.upload.addEventListener("loadend", S)), (o.cancelToken || o.signal) && (u = (A) => {
1072
1072
  g && (s(!A || A.type ? new je(null, e, g) : A), g.abort(), g = null);
1073
1073
  }, o.cancelToken && o.cancelToken.subscribe(u), o.signal && (o.signal.aborted ? u() : o.signal.addEventListener("abort", u)));
@@ -1223,7 +1223,7 @@ const Zt = (e) => {
1223
1223
  data: L,
1224
1224
  signal: $,
1225
1225
  cancelToken: A,
1226
- timeout: C,
1226
+ timeout: k,
1227
1227
  onDownloadProgress: M,
1228
1228
  onUploadProgress: m,
1229
1229
  responseType: N,
@@ -1232,24 +1232,24 @@ const Zt = (e) => {
1232
1232
  fetchOptions: K
1233
1233
  } = Zt(d), F = t || fetch;
1234
1234
  N = N ? (N + "").toLowerCase() : "text";
1235
- let V = Tn([$, A && A.toAbortSignal()], C), Z = null;
1236
- const k = V && V.unsubscribe && (() => {
1235
+ let V = Tn([$, A && A.toAbortSignal()], k), Z = null;
1236
+ const E = V && V.unsubscribe && (() => {
1237
1237
  V.unsubscribe();
1238
1238
  });
1239
1239
  let J;
1240
1240
  try {
1241
1241
  if (m && c && g !== "get" && g !== "head" && (J = await S(w, L)) !== 0) {
1242
- let E = new r(b, {
1242
+ let C = new r(b, {
1243
1243
  method: "POST",
1244
1244
  body: L,
1245
1245
  duplex: "half"
1246
1246
  }), _;
1247
- if (p.isFormData(L) && (_ = E.headers.get("content-type")) && w.setContentType(_), E.body) {
1247
+ if (p.isFormData(L) && (_ = C.headers.get("content-type")) && w.setContentType(_), C.body) {
1248
1248
  const [P, x] = gt(
1249
1249
  J,
1250
1250
  De(mt(m))
1251
1251
  );
1252
- L = bt(E.body, wt, P, x);
1252
+ L = bt(C.body, wt, P, x);
1253
1253
  }
1254
1254
  }
1255
1255
  p.isString(D) || (D = D ? "include" : "omit");
@@ -1265,10 +1265,10 @@ const Zt = (e) => {
1265
1265
  Z = i && new r(b, z);
1266
1266
  let R = await (i ? F(Z, K) : F(b, z));
1267
1267
  const Y = u && (N === "stream" || N === "response");
1268
- if (u && (M || Y && k)) {
1269
- const E = {};
1268
+ if (u && (M || Y && E)) {
1269
+ const C = {};
1270
1270
  ["status", "statusText", "headers"].forEach((j) => {
1271
- E[j] = R[j];
1271
+ C[j] = R[j];
1272
1272
  });
1273
1273
  const _ = p.toFiniteNumber(R.headers.get("content-length")), [P, x] = M && gt(
1274
1274
  _,
@@ -1276,15 +1276,15 @@ const Zt = (e) => {
1276
1276
  ) || [];
1277
1277
  R = new s(
1278
1278
  bt(R.body, wt, P, () => {
1279
- x && x(), k && k();
1279
+ x && x(), E && E();
1280
1280
  }),
1281
- E
1281
+ C
1282
1282
  );
1283
1283
  }
1284
1284
  N = N || "text";
1285
1285
  let f = await y[p.findKey(y, N) || "text"](R, d);
1286
- return !Y && k && k(), await new Promise((E, _) => {
1287
- Xt(E, _, {
1286
+ return !Y && E && E(), await new Promise((C, _) => {
1287
+ Xt(C, _, {
1288
1288
  data: f,
1289
1289
  headers: re.from(R.headers),
1290
1290
  status: R.status,
@@ -1294,7 +1294,7 @@ const Zt = (e) => {
1294
1294
  });
1295
1295
  });
1296
1296
  } catch (q) {
1297
- throw k && k(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
1297
+ throw E && E(), q && q.name === "TypeError" && /Load failed|fetch/i.test(q.message) ? Object.assign(
1298
1298
  new U("Network Error", U.ERR_NETWORK, d, Z),
1299
1299
  {
1300
1300
  cause: q.cause || q
@@ -2069,15 +2069,15 @@ function Ln() {
2069
2069
  return (f.displayName || "Context") + ".Provider";
2070
2070
  case $:
2071
2071
  return (f._context.displayName || "Context") + ".Consumer";
2072
- case C:
2073
- var E = f.render;
2074
- return f = f.displayName, f || (f = E.displayName || E.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
2072
+ case k:
2073
+ var C = f.render;
2074
+ return f = f.displayName, f || (f = C.displayName || C.name || "", f = f !== "" ? "ForwardRef(" + f + ")" : "ForwardRef"), f;
2075
2075
  case N:
2076
- return E = f.displayName || null, E !== null ? E : e(f.type) || "Memo";
2076
+ return C = f.displayName || null, C !== null ? C : e(f.type) || "Memo";
2077
2077
  case w:
2078
- E = f._payload, f = f._init;
2078
+ C = f._payload, f = f._init;
2079
2079
  try {
2080
- return e(f(E));
2080
+ return e(f(C));
2081
2081
  } catch {
2082
2082
  }
2083
2083
  }
@@ -2089,15 +2089,15 @@ function Ln() {
2089
2089
  function r(f) {
2090
2090
  try {
2091
2091
  t(f);
2092
- var E = !1;
2092
+ var C = !1;
2093
2093
  } catch {
2094
- E = !0;
2094
+ C = !0;
2095
2095
  }
2096
- if (E) {
2097
- E = console;
2098
- var _ = E.error, P = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
2096
+ if (C) {
2097
+ C = console;
2098
+ var _ = C.error, P = typeof Symbol == "function" && Symbol.toStringTag && f[Symbol.toStringTag] || f.constructor.name || "Object";
2099
2099
  return _.call(
2100
- E,
2100
+ C,
2101
2101
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2102
2102
  P
2103
2103
  ), t(f);
@@ -2108,8 +2108,8 @@ function Ln() {
2108
2108
  if (typeof f == "object" && f !== null && f.$$typeof === w)
2109
2109
  return "<...>";
2110
2110
  try {
2111
- var E = e(f);
2112
- return E ? "<" + E + ">" : "<...>";
2111
+ var C = e(f);
2112
+ return C ? "<" + C + ">" : "<...>";
2113
2113
  } catch {
2114
2114
  return "<...>";
2115
2115
  }
@@ -2123,16 +2123,16 @@ function Ln() {
2123
2123
  }
2124
2124
  function a(f) {
2125
2125
  if (V.call(f, "key")) {
2126
- var E = Object.getOwnPropertyDescriptor(f, "key").get;
2127
- if (E && E.isReactWarning) return !1;
2126
+ var C = Object.getOwnPropertyDescriptor(f, "key").get;
2127
+ if (C && C.isReactWarning) return !1;
2128
2128
  }
2129
2129
  return f.key !== void 0;
2130
2130
  }
2131
- function l(f, E) {
2131
+ function l(f, C) {
2132
2132
  function _() {
2133
2133
  J || (J = !0, console.error(
2134
2134
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
2135
- E
2135
+ C
2136
2136
  ));
2137
2137
  }
2138
2138
  _.isReactWarning = !0, Object.defineProperty(f, "key", {
@@ -2146,11 +2146,11 @@ function Ln() {
2146
2146
  "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."
2147
2147
  )), f = this.props.ref, f !== void 0 ? f : null;
2148
2148
  }
2149
- function c(f, E, _, P, x, j, X, ne) {
2149
+ function c(f, C, _, P, x, j, X, ne) {
2150
2150
  return _ = j.ref, f = {
2151
2151
  $$typeof: S,
2152
2152
  type: f,
2153
- key: E,
2153
+ key: C,
2154
2154
  props: j,
2155
2155
  _owner: x
2156
2156
  }, (_ !== void 0 ? _ : null) !== null ? Object.defineProperty(f, "ref", {
@@ -2178,8 +2178,8 @@ function Ln() {
2178
2178
  value: ne
2179
2179
  }), Object.freeze && (Object.freeze(f.props), Object.freeze(f)), f;
2180
2180
  }
2181
- function u(f, E, _, P, x, j, X, ne) {
2182
- var G = E.children;
2181
+ function u(f, C, _, P, x, j, X, ne) {
2182
+ var G = C.children;
2183
2183
  if (G !== void 0)
2184
2184
  if (P)
2185
2185
  if (Z(G)) {
@@ -2191,9 +2191,9 @@ function Ln() {
2191
2191
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2192
2192
  );
2193
2193
  else y(G);
2194
- if (V.call(E, "key")) {
2194
+ if (V.call(C, "key")) {
2195
2195
  G = e(f);
2196
- var se = Object.keys(E).filter(function(I) {
2196
+ var se = Object.keys(C).filter(function(I) {
2197
2197
  return I !== "key";
2198
2198
  });
2199
2199
  P = 0 < se.length ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}", Y[G + P] || (se = 0 < se.length ? "{" + se.join(": ..., ") + ": ...}" : "{}", console.error(
@@ -2209,11 +2209,11 @@ React keys must be passed directly to JSX without using spread:
2209
2209
  G
2210
2210
  ), Y[G + P] = !0);
2211
2211
  }
2212
- if (G = null, _ !== void 0 && (r(_), G = "" + _), a(E) && (r(E.key), G = "" + E.key), "key" in E) {
2212
+ if (G = null, _ !== void 0 && (r(_), G = "" + _), a(C) && (r(C.key), G = "" + C.key), "key" in C) {
2213
2213
  _ = {};
2214
- for (var le in E)
2215
- le !== "key" && (_[le] = E[le]);
2216
- } else _ = E;
2214
+ for (var le in C)
2215
+ le !== "key" && (_[le] = C[le]);
2216
+ } else _ = C;
2217
2217
  return G && l(
2218
2218
  _,
2219
2219
  typeof f == "function" ? f.displayName || f.name || "Unknown" : f
@@ -2231,7 +2231,7 @@ React keys must be passed directly to JSX without using spread:
2231
2231
  function y(f) {
2232
2232
  typeof f == "object" && f !== null && f.$$typeof === S && f._store && (f._store.validated = 1);
2233
2233
  }
2234
- var T = At, S = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), A = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), F = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, Z = Array.isArray, k = console.createTask ? console.createTask : function() {
2234
+ var T = At, S = Symbol.for("react.transitional.element"), d = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), L = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), A = Symbol.for("react.context"), k = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), N = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), D = Symbol.for("react.activity"), K = Symbol.for("react.client.reference"), F = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, V = Object.prototype.hasOwnProperty, Z = Array.isArray, E = console.createTask ? console.createTask : function() {
2235
2235
  return null;
2236
2236
  };
2237
2237
  T = {
@@ -2242,30 +2242,30 @@ React keys must be passed directly to JSX without using spread:
2242
2242
  var J, q = {}, z = T.react_stack_bottom_frame.bind(
2243
2243
  T,
2244
2244
  i
2245
- )(), R = k(s(i)), Y = {};
2246
- Ee.Fragment = b, Ee.jsx = function(f, E, _, P, x) {
2245
+ )(), R = E(s(i)), Y = {};
2246
+ Ee.Fragment = b, Ee.jsx = function(f, C, _, P, x) {
2247
2247
  var j = 1e4 > F.recentlyCreatedOwnerStacks++;
2248
2248
  return u(
2249
2249
  f,
2250
- E,
2250
+ C,
2251
2251
  _,
2252
2252
  !1,
2253
2253
  P,
2254
2254
  x,
2255
2255
  j ? Error("react-stack-top-frame") : z,
2256
- j ? k(s(f)) : R
2256
+ j ? E(s(f)) : R
2257
2257
  );
2258
- }, Ee.jsxs = function(f, E, _, P, x) {
2258
+ }, Ee.jsxs = function(f, C, _, P, x) {
2259
2259
  var j = 1e4 > F.recentlyCreatedOwnerStacks++;
2260
2260
  return u(
2261
2261
  f,
2262
- E,
2262
+ C,
2263
2263
  _,
2264
2264
  !0,
2265
2265
  P,
2266
2266
  x,
2267
2267
  j ? Error("react-stack-top-frame") : z,
2268
- j ? k(s(f)) : R
2268
+ j ? E(s(f)) : R
2269
2269
  );
2270
2270
  };
2271
2271
  })()), Ee;
@@ -2855,9 +2855,9 @@ const $s = [
2855
2855
  email: "",
2856
2856
  password: "",
2857
2857
  ...h && { avatarUrl: "" }
2858
- }, [g, L] = O(b), [$, A] = O(!1), [C, M] = O(!1), [m, N] = O(null), [w, D] = O({}), K = typeof window < "u" ? window.innerWidth < 768 : !1, F = l ? "#ffffff" : "#111827", V = l ? "#a1a1aa" : "#6b7280", Z = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", k = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", J = (Y) => {
2859
- const { name: f, value: E } = Y.target;
2860
- L((_) => ({ ..._, [f]: E })), w[f] && D((_) => ({ ..._, [f]: void 0 }));
2858
+ }, [g, L] = O(b), [$, A] = O(!1), [k, M] = O(!1), [m, N] = O(null), [w, D] = O({}), K = typeof window < "u" ? window.innerWidth < 768 : !1, F = l ? "#ffffff" : "#111827", V = l ? "#a1a1aa" : "#6b7280", Z = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", E = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", J = (Y) => {
2859
+ const { name: f, value: C } = Y.target;
2860
+ L((_) => ({ ..._, [f]: C })), w[f] && D((_) => ({ ..._, [f]: void 0 }));
2861
2861
  }, q = () => {
2862
2862
  const Y = {};
2863
2863
  return g.name.trim() || (Y.name = "Name is required"), g.email.trim() ? /\S+@\S+\.\S+/.test(g.email) || (Y.email = "Invalid email address") : Y.email = "Email is required", g.password ? g.password.length < 6 && (Y.password = "Password must be at least 6 characters") : Y.password = "Password is required", D(Y), Object.keys(Y).length === 0;
@@ -2868,11 +2868,11 @@ const $s = [
2868
2868
  const f = {
2869
2869
  ...g,
2870
2870
  appId: d
2871
- }, E = await Bn(f, { baseUrl: T, apiKey: S });
2872
- N({ type: "success", text: "Account created successfully!" }), u && u(E);
2871
+ }, C = await Bn(f, { baseUrl: T, apiKey: S });
2872
+ N({ type: "success", text: "Account created successfully!" }), u && u(C);
2873
2873
  } catch (f) {
2874
- const E = f.message || "Signup failed. Please try again.";
2875
- N({ type: "error", text: E }), y && y(f);
2874
+ const C = f.message || "Signup failed. Please try again.";
2875
+ N({ type: "error", text: C }), y && y(f);
2876
2876
  } finally {
2877
2877
  M(!1);
2878
2878
  }
@@ -2881,7 +2881,7 @@ const $s = [
2881
2881
  width: "100%",
2882
2882
  padding: K ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
2883
2883
  backgroundColor: Z,
2884
- border: `1px solid ${k}`,
2884
+ border: `1px solid ${E}`,
2885
2885
  borderRadius: "10px",
2886
2886
  color: F,
2887
2887
  fontSize: "15px",
@@ -3035,7 +3035,7 @@ const $s = [
3035
3035
  onChange: J,
3036
3036
  style: {
3037
3037
  ...R,
3038
- borderColor: w.name ? "#ef4444" : k
3038
+ borderColor: w.name ? "#ef4444" : E
3039
3039
  }
3040
3040
  }
3041
3041
  )
@@ -3090,7 +3090,7 @@ const $s = [
3090
3090
  onChange: J,
3091
3091
  style: {
3092
3092
  ...R,
3093
- borderColor: w.email ? "#ef4444" : k
3093
+ borderColor: w.email ? "#ef4444" : E
3094
3094
  }
3095
3095
  }
3096
3096
  )
@@ -3145,7 +3145,7 @@ const $s = [
3145
3145
  onChange: J,
3146
3146
  style: {
3147
3147
  ...R,
3148
- borderColor: w.password ? "#ef4444" : k
3148
+ borderColor: w.password ? "#ef4444" : E
3149
3149
  }
3150
3150
  }
3151
3151
  ),
@@ -3274,7 +3274,7 @@ const $s = [
3274
3274
  "button",
3275
3275
  {
3276
3276
  type: "submit",
3277
- disabled: C,
3277
+ disabled: k,
3278
3278
  style: {
3279
3279
  padding: "12px",
3280
3280
  background: a,
@@ -3283,14 +3283,14 @@ const $s = [
3283
3283
  borderRadius: "10px",
3284
3284
  fontSize: "14px",
3285
3285
  fontWeight: 600,
3286
- cursor: C ? "not-allowed" : "pointer",
3287
- opacity: C ? 0.7 : 1,
3286
+ cursor: k ? "not-allowed" : "pointer",
3287
+ opacity: k ? 0.7 : 1,
3288
3288
  display: "flex",
3289
3289
  alignItems: "center",
3290
3290
  justifyContent: "center",
3291
3291
  gap: "8px"
3292
3292
  },
3293
- children: C ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3293
+ children: k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
3294
3294
  /* @__PURE__ */ n.jsx(
3295
3295
  hs,
3296
3296
  {
@@ -3371,12 +3371,12 @@ const $s = [
3371
3371
  onSuccess: c,
3372
3372
  onError: u
3373
3373
  }) => {
3374
- const { baseUrl: y, apiKey: T, appId: S } = ve(), [d, b] = O("login"), [g, L] = O(1), [$, A] = O(!1), [C, M] = O(!1), [m, N] = O(null), [w, D] = O(""), [K, F] = O(""), [V, Z] = O({
3374
+ const { baseUrl: y, apiKey: T, appId: S } = ve(), [d, b] = O("login"), [g, L] = O(1), [$, A] = O(!1), [k, M] = O(!1), [m, N] = O(null), [w, D] = O(""), [K, F] = O(""), [V, Z] = O({
3375
3375
  email: "",
3376
3376
  otp: "",
3377
3377
  newPassword: "",
3378
3378
  appId: S
3379
- }), k = window.innerWidth < 768, J = l ? "#ffffff" : "#111827", q = l ? "#a1a1aa" : "#6b7280", z = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", R = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", Y = async (x) => {
3379
+ }), E = window.innerWidth < 768, J = l ? "#ffffff" : "#111827", q = l ? "#a1a1aa" : "#6b7280", z = l ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.02)", R = l ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)", Y = async (x) => {
3380
3380
  x.preventDefault(), M(!0), N(null);
3381
3381
  try {
3382
3382
  const j = await Us(
@@ -3392,7 +3392,7 @@ const $s = [
3392
3392
  }
3393
3393
  }, f = (x) => {
3394
3394
  Z({ ...V, [x.target.name]: x.target.value });
3395
- }, E = async (x) => {
3395
+ }, C = async (x) => {
3396
3396
  x.preventDefault(), M(!0), N(null);
3397
3397
  try {
3398
3398
  const j = await B.post(
@@ -3434,7 +3434,7 @@ const $s = [
3434
3434
  }
3435
3435
  }, P = {
3436
3436
  width: "100%",
3437
- padding: k ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3437
+ padding: E ? "10px 14px 10px 44px" : "10px 16px 10px 44px",
3438
3438
  backgroundColor: z,
3439
3439
  border: `1px solid ${R}`,
3440
3440
  borderRadius: "10px",
@@ -3455,15 +3455,15 @@ const $s = [
3455
3455
  "div",
3456
3456
  {
3457
3457
  style: {
3458
- minWidth: k ? "320px" : "380px",
3459
- maxWidth: k ? "340px" : "390px",
3458
+ minWidth: E ? "320px" : "380px",
3459
+ maxWidth: E ? "340px" : "390px",
3460
3460
  width: "100%",
3461
3461
  display: "flex",
3462
3462
  flexDirection: "column",
3463
3463
  borderRadius: "10px",
3464
3464
  fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
3465
3465
  backgroundColor: l ? "#000000" : "#ffffff",
3466
- padding: k ? "30px 24px" : "18px 28px"
3466
+ padding: E ? "30px 24px" : "18px 28px"
3467
3467
  },
3468
3468
  children: [
3469
3469
  /* @__PURE__ */ n.jsxs(
@@ -3676,7 +3676,7 @@ const $s = [
3676
3676
  "button",
3677
3677
  {
3678
3678
  type: "submit",
3679
- disabled: C,
3679
+ disabled: k,
3680
3680
  style: {
3681
3681
  padding: "12px",
3682
3682
  background: a,
@@ -3686,7 +3686,7 @@ const $s = [
3686
3686
  fontSize: "14px",
3687
3687
  fontWeight: 600
3688
3688
  },
3689
- children: C ? "Signing In..." : "Sign In"
3689
+ children: k ? "Signing In..." : "Sign In"
3690
3690
  }
3691
3691
  )
3692
3692
  ]
@@ -3695,7 +3695,7 @@ const $s = [
3695
3695
  d === "forgot" && /* @__PURE__ */ n.jsxs(
3696
3696
  "form",
3697
3697
  {
3698
- onSubmit: g === 1 ? E : _,
3698
+ onSubmit: g === 1 ? C : _,
3699
3699
  style: { display: "flex", flexDirection: "column", gap: "14px" },
3700
3700
  children: [
3701
3701
  g === 1 ? /* @__PURE__ */ n.jsxs(
@@ -3852,7 +3852,7 @@ const $s = [
3852
3852
  "button",
3853
3853
  {
3854
3854
  type: "submit",
3855
- disabled: C,
3855
+ disabled: k,
3856
3856
  style: {
3857
3857
  padding: "12px",
3858
3858
  background: a,
@@ -3862,7 +3862,7 @@ const $s = [
3862
3862
  borderRadius: "10px",
3863
3863
  fontWeight: 600
3864
3864
  },
3865
- children: C ? "Please wait..." : g === 1 ? "Send Reset OTP" : "Reset Password"
3865
+ children: k ? "Please wait..." : g === 1 ? "Send Reset OTP" : "Reset Password"
3866
3866
  }
3867
3867
  ),
3868
3868
  /* @__PURE__ */ n.jsx(
@@ -4006,7 +4006,7 @@ const $s = [
4006
4006
  } finally {
4007
4007
  y(!1);
4008
4008
  }
4009
- }, A = T.toLowerCase() === "delete my account", C = (m) => {
4009
+ }, A = T.toLowerCase() === "delete my account", k = (m) => {
4010
4010
  m.target === m.currentTarget && d !== "processing" && d !== "success" && t();
4011
4011
  }, M = () => {
4012
4012
  switch (d) {
@@ -4750,7 +4750,7 @@ const $s = [
4750
4750
  zIndex: 1e4,
4751
4751
  animation: "fadeIn 0.3s ease-out"
4752
4752
  },
4753
- onClick: C,
4753
+ onClick: k,
4754
4754
  children: [
4755
4755
  /* @__PURE__ */ n.jsx(
4756
4756
  "div",
@@ -5304,7 +5304,7 @@ const $s = [
5304
5304
  const A = (w) => {
5305
5305
  const { name: D, value: K } = w.target;
5306
5306
  u((F) => ({ ...F, [D]: K })), y[D] && T((F) => ({ ...F, [D]: "" }));
5307
- }, C = (w) => {
5307
+ }, k = (w) => {
5308
5308
  g((D) => ({ ...D, [w]: !D[w] }));
5309
5309
  }, M = () => {
5310
5310
  const w = {};
@@ -5541,7 +5541,7 @@ const $s = [
5541
5541
  "button",
5542
5542
  {
5543
5543
  type: "button",
5544
- onClick: () => C(w),
5544
+ onClick: () => k(w),
5545
5545
  style: {
5546
5546
  position: "absolute",
5547
5547
  right: "14px",
@@ -6013,12 +6013,12 @@ const $s = [
6013
6013
  onLogout: o,
6014
6014
  primaryColor: i = "#00C212"
6015
6015
  }) => {
6016
- const { baseUrl: a, apiKey: l, appId: h } = ve(), [c, u] = O(t), [y, T] = O(!0), [S, d] = O(!1), [b, g] = O(!1), [L, $] = O(!1), [A, C] = O(!1), [M, m] = O(!1), [N, w] = O(!1), [D, K] = O(!1), [F, V] = O(!1), [Z, k] = O(null), [J, q] = O(!1), [z, R] = O({
6016
+ const { baseUrl: a, apiKey: l, appId: h } = ve(), [c, u] = O(t), [y, T] = O(!0), [S, d] = O(!1), [b, g] = O(!1), [L, $] = O(!1), [A, k] = O(!1), [M, m] = O(!1), [N, w] = O(!1), [D, K] = O(!1), [F, V] = O(!1), [Z, E] = O(null), [J, q] = O(!1), [z, R] = O({
6017
6017
  email: "",
6018
6018
  otp: "",
6019
6019
  appId: h
6020
- }), [Y, f] = O(!1), [E, _] = O(!1), P = (v, H) => {
6021
- k({ type: v, message: H }), setTimeout(() => k(null), 3e3);
6020
+ }), [Y, f] = O(!1), [C, _] = O(!1), P = (v, H) => {
6021
+ E({ type: v, message: H }), setTimeout(() => E(null), 3e3);
6022
6022
  }, x = () => {
6023
6023
  V(!0);
6024
6024
  const v = setTimeout(() => {
@@ -6668,7 +6668,7 @@ const $s = [
6668
6668
  "button",
6669
6669
  {
6670
6670
  onClick: () => {
6671
- C(!0), x();
6671
+ k(!0), x();
6672
6672
  },
6673
6673
  style: {
6674
6674
  width: "100%",
@@ -7085,7 +7085,7 @@ const $s = [
7085
7085
  appId: h,
7086
7086
  userId: c.id,
7087
7087
  isOpen: A,
7088
- onClose: () => C(!1),
7088
+ onClose: () => k(!1),
7089
7089
  onSuccess: (v) => P("success", v),
7090
7090
  onError: (v) => P("error", v),
7091
7091
  colors: I
@@ -7118,7 +7118,7 @@ const $s = [
7118
7118
  verifyFormData: z,
7119
7119
  setVerifyFormData: R,
7120
7120
  otpSent: Y,
7121
- verifying: E,
7121
+ verifying: C,
7122
7122
  user: c,
7123
7123
  colors: I,
7124
7124
  darkMode: r
@@ -7236,7 +7236,7 @@ const $s = [
7236
7236
  viewProfileLabel: S = "View Profile",
7237
7237
  logoutLabel: d = "Sign Out"
7238
7238
  }) => {
7239
- const { baseUrl: b, apiKey: g, appId: L } = ve(), [$, A] = O(!1), [C, M] = O(null), [m, N] = O(!0), [w, D] = O(null), K = dt(null), F = dt(null), [V, Z] = O(!1), [k, J] = O(!1);
7239
+ const { baseUrl: b, apiKey: g, appId: L } = ve(), [$, A] = O(!1), [k, M] = O(null), [m, N] = O(!0), [w, D] = O(null), K = dt(null), F = dt(null), [V, Z] = O(!1), [E, J] = O(!1);
7240
7240
  ie(() => {
7241
7241
  const x = () => {
7242
7242
  J(window.innerWidth < 768);
@@ -7339,19 +7339,19 @@ const $s = [
7339
7339
  avatarButton: {
7340
7340
  display: "flex",
7341
7341
  alignItems: "center",
7342
- gap: k ? "6px" : "8px",
7343
- padding: k ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
7342
+ gap: E ? "6px" : "8px",
7343
+ padding: E ? "6px 10px 6px 6px" : "8px 12px 8px 8px",
7344
7344
  borderRadius: "24px",
7345
7345
  backgroundColor: z.surface,
7346
7346
  cursor: "pointer",
7347
7347
  transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
7348
- minWidth: k ? "auto" : "140px",
7349
- maxWidth: k ? "200px" : "none",
7348
+ minWidth: E ? "auto" : "140px",
7349
+ maxWidth: E ? "200px" : "none",
7350
7350
  outline: "none"
7351
7351
  },
7352
7352
  avatarImage: {
7353
- width: k ? "28px" : "32px",
7354
- height: k ? "28px" : "32px",
7353
+ width: E ? "28px" : "32px",
7354
+ height: E ? "28px" : "32px",
7355
7355
  borderRadius: "50%",
7356
7356
  objectFit: "cover",
7357
7357
  border: `2px solid ${z.borderLight}`,
@@ -7366,23 +7366,23 @@ const $s = [
7366
7366
  overflow: "hidden"
7367
7367
  },
7368
7368
  userName: {
7369
- fontSize: k ? "13px" : "14px",
7369
+ fontSize: E ? "13px" : "14px",
7370
7370
  fontWeight: 600,
7371
7371
  color: z.textPrimary,
7372
7372
  lineHeight: "1.2",
7373
7373
  whiteSpace: "nowrap",
7374
7374
  overflow: "hidden",
7375
7375
  textOverflow: "ellipsis",
7376
- maxWidth: k ? "80px" : "120px"
7376
+ maxWidth: E ? "80px" : "120px"
7377
7377
  },
7378
7378
  userEmail: {
7379
- fontSize: k ? "11px" : "12px",
7379
+ fontSize: E ? "11px" : "12px",
7380
7380
  color: z.textTertiary,
7381
7381
  lineHeight: "1.2",
7382
7382
  whiteSpace: "nowrap",
7383
7383
  overflow: "hidden",
7384
7384
  textOverflow: "ellipsis",
7385
- maxWidth: k ? "80px" : "120px"
7385
+ maxWidth: E ? "80px" : "120px"
7386
7386
  },
7387
7387
  chevron: {
7388
7388
  transition: "transform 0.2s ease",
@@ -7411,7 +7411,7 @@ const $s = [
7411
7411
  overflow: "hidden"
7412
7412
  },
7413
7413
  dropdownSection: {
7414
- padding: k ? "10px 12px" : "0px 16px",
7414
+ padding: E ? "10px 12px" : "0px 16px",
7415
7415
  "&:last-child": {
7416
7416
  borderBottom: "none"
7417
7417
  }
@@ -7419,12 +7419,12 @@ const $s = [
7419
7419
  userSection: {
7420
7420
  display: "flex",
7421
7421
  alignItems: "center",
7422
- gap: k ? "10px" : "12px",
7423
- padding: k ? "14px" : "16px"
7422
+ gap: E ? "10px" : "12px",
7423
+ padding: E ? "14px" : "16px"
7424
7424
  },
7425
7425
  dropdownAvatar: {
7426
- width: k ? "40px" : "48px",
7427
- height: k ? "40px" : "48px",
7426
+ width: E ? "40px" : "48px",
7427
+ height: E ? "40px" : "48px",
7428
7428
  borderRadius: "50%",
7429
7429
  objectFit: "cover",
7430
7430
  border: `2px solid ${z.borderLight}`,
@@ -7437,7 +7437,7 @@ const $s = [
7437
7437
  minWidth: 0
7438
7438
  },
7439
7439
  dropdownUserName: {
7440
- fontSize: k ? "15px" : "16px",
7440
+ fontSize: E ? "15px" : "16px",
7441
7441
  fontWeight: 600,
7442
7442
  color: z.textPrimary,
7443
7443
  lineHeight: "1.2",
@@ -7446,7 +7446,7 @@ const $s = [
7446
7446
  textOverflow: "ellipsis"
7447
7447
  },
7448
7448
  dropdownUserEmail: {
7449
- fontSize: k ? "13px" : "14px",
7449
+ fontSize: E ? "13px" : "14px",
7450
7450
  color: z.textSecondary,
7451
7451
  lineHeight: "1.2",
7452
7452
  overflow: "hidden",
@@ -7455,8 +7455,8 @@ const $s = [
7455
7455
  menuItem: {
7456
7456
  display: "flex",
7457
7457
  alignItems: "center",
7458
- gap: k ? "10px" : "12px",
7459
- padding: k ? "10px 12px" : "12px 16px",
7458
+ gap: E ? "10px" : "12px",
7459
+ padding: E ? "10px 12px" : "12px 16px",
7460
7460
  borderRadius: "8px",
7461
7461
  cursor: "pointer",
7462
7462
  transition: "all 0.15s ease",
@@ -7465,7 +7465,7 @@ const $s = [
7465
7465
  border: "none",
7466
7466
  background: "none",
7467
7467
  width: "100%",
7468
- fontSize: k ? "13px" : "14px",
7468
+ fontSize: E ? "13px" : "14px",
7469
7469
  textAlign: "left",
7470
7470
  outline: "none"
7471
7471
  },
@@ -7473,38 +7473,38 @@ const $s = [
7473
7473
  flex: 1
7474
7474
  },
7475
7475
  icon: {
7476
- width: k ? "16px" : "18px",
7477
- height: k ? "16px" : "18px",
7476
+ width: E ? "16px" : "18px",
7477
+ height: E ? "16px" : "18px",
7478
7478
  color: z.textSecondary,
7479
7479
  flexShrink: 0
7480
7480
  },
7481
7481
  logoutButton: {
7482
7482
  display: "flex",
7483
7483
  alignItems: "center",
7484
- gap: k ? "10px" : "12px",
7485
- padding: k ? "10px 12px" : "12px 16px",
7484
+ gap: E ? "10px" : "12px",
7485
+ padding: E ? "10px 12px" : "12px 16px",
7486
7486
  borderRadius: "8px",
7487
7487
  cursor: "pointer",
7488
7488
  transition: "all 0.15s ease",
7489
7489
  background: "none",
7490
7490
  border: "none",
7491
7491
  width: "100%",
7492
- fontSize: k ? "13px" : "14px",
7492
+ fontSize: E ? "13px" : "14px",
7493
7493
  color: z.error,
7494
7494
  textAlign: "left",
7495
7495
  outline: "none"
7496
7496
  },
7497
7497
  loadingText: {
7498
- padding: k ? "16px 12px" : "20px 16px",
7498
+ padding: E ? "16px 12px" : "20px 16px",
7499
7499
  textAlign: "center",
7500
7500
  color: z.textSecondary,
7501
- fontSize: k ? "13px" : "14px"
7501
+ fontSize: E ? "13px" : "14px"
7502
7502
  },
7503
7503
  errorState: {
7504
- padding: k ? "16px 12px" : "20px 16px",
7504
+ padding: E ? "16px 12px" : "20px 16px",
7505
7505
  textAlign: "center",
7506
7506
  color: z.textSecondary,
7507
- fontSize: k ? "13px" : "14px",
7507
+ fontSize: E ? "13px" : "14px",
7508
7508
  display: "flex",
7509
7509
  alignItems: "center",
7510
7510
  justifyContent: "center",
@@ -7536,8 +7536,8 @@ const $s = [
7536
7536
  N(!1);
7537
7537
  }, f = (x, j) => {
7538
7538
  (x.key === "Enter" || x.key === " ") && (x.preventDefault(), j());
7539
- }, E = () => a || C?.profileUrl, _ = () => {
7540
- const x = E();
7539
+ }, C = () => a || k?.profileUrl, _ = () => {
7540
+ const x = C();
7541
7541
  x && window.open(x, "_self", "noopener,noreferrer");
7542
7542
  }, P = () => {
7543
7543
  l && window.open(l, "_self", "noopener,noreferrer");
@@ -7562,14 +7562,14 @@ const $s = [
7562
7562
  "aria-haspopup": "true",
7563
7563
  "aria-expanded": $,
7564
7564
  "aria-label": "Toggle user menu",
7565
- children: C?.avatarUrl ? /* @__PURE__ */ n.jsx(
7565
+ children: k?.avatarUrl ? /* @__PURE__ */ n.jsx(
7566
7566
  "img",
7567
7567
  {
7568
- src: C.avatarUrl,
7569
- alt: `${C.name}'s avatar`,
7568
+ src: k.avatarUrl,
7569
+ alt: `${k?.name || "User"}'s avatar`,
7570
7570
  style: {
7571
- width: k ? "34px" : "40px",
7572
- height: k ? "34px" : "40px",
7571
+ width: E ? "34px" : "40px",
7572
+ height: E ? "34px" : "40px",
7573
7573
  borderRadius: "50%",
7574
7574
  objectFit: "cover",
7575
7575
  border: `2px solid ${z.borderLight}`,
@@ -7578,17 +7578,21 @@ const $s = [
7578
7578
  loading: "lazy",
7579
7579
  onError: (x) => {
7580
7580
  const j = x.target;
7581
- j.src = "https://api.dicebear.com/9.x/glass/svg?seed=Kingston";
7581
+ j.onerror = null, j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7582
+ k?.name || "User"
7583
+ )}`;
7582
7584
  }
7583
7585
  }
7584
7586
  ) : /* @__PURE__ */ n.jsx(
7585
7587
  "img",
7586
7588
  {
7587
- src: "https://api.dicebear.com/9.x/glass/svg?seed=Kingston",
7589
+ src: `https://api.dicebear.com/9.x/initials/svg?seed=${encodeURIComponent(
7590
+ k?.name || "User"
7591
+ )}`,
7588
7592
  alt: "Default user avatar",
7589
7593
  style: {
7590
- width: k ? "34px" : "40px",
7591
- height: k ? "34px" : "40px",
7594
+ width: E ? "34px" : "40px",
7595
+ height: E ? "34px" : "40px",
7592
7596
  borderRadius: "50%",
7593
7597
  objectFit: "cover",
7594
7598
  border: `2px solid ${z.borderLight}`,
@@ -7620,11 +7624,11 @@ const $s = [
7620
7624
  x.currentTarget.style.outline = "none";
7621
7625
  },
7622
7626
  children: [
7623
- C?.avatarUrl ? /* @__PURE__ */ n.jsx(
7627
+ k?.avatarUrl ? /* @__PURE__ */ n.jsx(
7624
7628
  "img",
7625
7629
  {
7626
- src: C.avatarUrl,
7627
- alt: `${C.name}'s avatar`,
7630
+ src: k.avatarUrl,
7631
+ alt: `${k.name}'s avatar`,
7628
7632
  style: R.avatarImage,
7629
7633
  loading: "lazy",
7630
7634
  onError: (x) => {
@@ -7641,14 +7645,14 @@ const $s = [
7641
7645
  loading: "lazy"
7642
7646
  }
7643
7647
  ),
7644
- !k && /* @__PURE__ */ n.jsxs("div", { style: R.userInfo, children: [
7645
- /* @__PURE__ */ n.jsx("div", { style: R.userName, title: C?.name, children: C?.name || "Guest" }),
7646
- C?.email && /* @__PURE__ */ n.jsx("div", { style: R.userEmail, title: C.email, children: C.email })
7648
+ !E && /* @__PURE__ */ n.jsxs("div", { style: R.userInfo, children: [
7649
+ /* @__PURE__ */ n.jsx("div", { style: R.userName, title: k?.name, children: k?.name || "Guest" }),
7650
+ k?.email && /* @__PURE__ */ n.jsx("div", { style: R.userEmail, title: k.email, children: k.email })
7647
7651
  ] }),
7648
7652
  /* @__PURE__ */ n.jsx(
7649
7653
  Xn,
7650
7654
  {
7651
- size: k ? 14 : 16,
7655
+ size: E ? 14 : 16,
7652
7656
  style: R.chevron,
7653
7657
  "aria-hidden": "true"
7654
7658
  }
@@ -7656,36 +7660,36 @@ const $s = [
7656
7660
  ]
7657
7661
  }
7658
7662
  ),
7659
- $ && /* @__PURE__ */ n.jsx("div", { style: R.dropdown, role: "menu", "aria-label": "User options", children: m ? /* @__PURE__ */ n.jsx("div", { style: R.loadingText, role: "status", "aria-live": "polite", children: "Loading user information..." }) : C ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7663
+ $ && /* @__PURE__ */ n.jsx("div", { style: R.dropdown, role: "menu", "aria-label": "User options", children: m ? /* @__PURE__ */ n.jsx("div", { style: R.loadingText, role: "status", "aria-live": "polite", children: "Loading user information..." }) : k ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
7660
7664
  /* @__PURE__ */ n.jsxs("div", { style: R.userSection, children: [
7661
- C?.avatarUrl ? /* @__PURE__ */ n.jsx(
7665
+ k?.avatarUrl ? /* @__PURE__ */ n.jsx(
7662
7666
  "img",
7663
7667
  {
7664
- src: C.avatarUrl,
7665
- alt: `${C.name}'s profile picture`,
7668
+ src: k.avatarUrl,
7669
+ alt: `${k.name}'s profile picture`,
7666
7670
  style: R.dropdownAvatar,
7667
7671
  loading: "lazy",
7668
7672
  onError: (x) => {
7669
7673
  const j = x.target;
7670
- j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`;
7674
+ j.src = `https://api.dicebear.com/9.x/initials/svg?seed=${k.name}`;
7671
7675
  }
7672
7676
  }
7673
7677
  ) : /* @__PURE__ */ n.jsx(
7674
7678
  "img",
7675
7679
  {
7676
- src: `https://api.dicebear.com/9.x/initials/svg?seed=${C.name}`,
7677
- alt: `${C.name}'s default avatar`,
7680
+ src: `https://api.dicebear.com/9.x/initials/svg?seed=${k.name}`,
7681
+ alt: `${k.name}'s default avatar`,
7678
7682
  style: R.dropdownAvatar,
7679
7683
  loading: "lazy"
7680
7684
  }
7681
7685
  ),
7682
7686
  /* @__PURE__ */ n.jsxs("div", { style: R.dropdownUserInfo, children: [
7683
- /* @__PURE__ */ n.jsx("div", { style: R.dropdownUserName, title: C.name, children: C.name }),
7684
- /* @__PURE__ */ n.jsx("div", { style: R.dropdownUserEmail, title: C.email, children: C.email })
7687
+ /* @__PURE__ */ n.jsx("div", { style: R.dropdownUserName, title: k.name, children: k.name }),
7688
+ /* @__PURE__ */ n.jsx("div", { style: R.dropdownUserEmail, title: k.email, children: k.email })
7685
7689
  ] })
7686
7690
  ] }),
7687
7691
  /* @__PURE__ */ n.jsxs("div", { style: R.dropdownSection, children: [
7688
- h && E() && /* @__PURE__ */ n.jsxs(
7692
+ h && C() && /* @__PURE__ */ n.jsxs(
7689
7693
  "button",
7690
7694
  {
7691
7695
  style: R.menuItem,
@@ -7725,10 +7729,10 @@ const $s = [
7725
7729
  ]
7726
7730
  }
7727
7731
  ),
7728
- u && C.profileUrl && /* @__PURE__ */ n.jsxs(
7732
+ u && k.profileUrl && /* @__PURE__ */ n.jsxs(
7729
7733
  "a",
7730
7734
  {
7731
- href: C.profileUrl,
7735
+ href: k.profileUrl,
7732
7736
  target: "_self",
7733
7737
  rel: "noopener noreferrer",
7734
7738
  style: R.menuItem,