@fastr-pro/global-header 1.0.21 → 1.0.23

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/index.js CHANGED
@@ -2971,35 +2971,35 @@ var Ft = [
2971
2971
  }]
2972
2972
  }
2973
2973
  ], Bt = {
2974
- authApiUrl: "https://sso-api.datatokenapi.com/api",
2975
- authRedirectUrl: "https://sso.datatokenapi.com",
2974
+ authApiUrl: "https://sso-api.mom-z14.in/api",
2975
+ authRedirectUrl: "https://sso.mom-z14.in",
2976
2976
  redirectOnInvalidSession: !0,
2977
2977
  profileGetter: null,
2978
- uiTheme: "system",
2978
+ uiTheme: "dark",
2979
2979
  currentApp: "derivatives",
2980
2980
  themeParamName: "theme",
2981
- appendThemeParam: !0,
2981
+ appendThemeParam: !1,
2982
2982
  isAlpha: !1,
2983
2983
  showAlphaBadge: !1,
2984
2984
  alphaBadgeText: "ALPHA",
2985
2985
  alphaVersion: "",
2986
2986
  urls: {
2987
- landing: "https://fastr-pro.datatokenapi.com",
2988
- sso: "https://sso.datatokenapi.com",
2989
- purchase: "https://sso.datatokenapi.com/purchase",
2990
- profile: "https://sso.datatokenapi.com/profile",
2991
- xray: "https://xray-pro.datatokenapi.com",
2992
- scanner: "https://scanner-pro.datatokenapi.com",
2993
- charting: "https://chart-pro.datatokenapi.com",
2994
- macro: "https://macropulse-pro.datatokenapi.com",
2995
- derivatives: "https://derivatives-pro.datatokenapi.com"
2987
+ landing: "https://mom-z14.in",
2988
+ sso: "https://sso.mom-z14.in",
2989
+ purchase: "https://sso.mom-z14.in/purchase",
2990
+ profile: "https://sso.mom-z14.in/profile",
2991
+ xray: "https://xray.mom-z14.in",
2992
+ scanner: "https://scanner.mom-z14.in",
2993
+ charting: "https://chart.mom-z14.in",
2994
+ macro: "https://macropulse.mom-z14.in",
2995
+ derivatives: "https://derivatives.mom-z14.in"
2996
2996
  },
2997
2997
  apps: {
2998
2998
  xray: {
2999
2999
  id: "xray",
3000
3000
  name: "Stock X-Ray",
3001
3001
  label: "Stock X-Ray",
3002
- url: "https://xray-pro.datatokenapi.com",
3002
+ url: "https://xray.mom-z14.in",
3003
3003
  icon: f,
3004
3004
  bannerImage: Nt.xray,
3005
3005
  badge: "Stock X-Ray",
@@ -3014,7 +3014,7 @@ var Ft = [
3014
3014
  id: "scanner",
3015
3015
  name: "Scanner",
3016
3016
  label: "Scanner",
3017
- url: "https://scanner-pro.datatokenapi.com",
3017
+ url: "https://scanner.mom-z14.in",
3018
3018
  icon: le,
3019
3019
  bannerImage: Nt.scanner,
3020
3020
  badge: "FASTR SCANNER",
@@ -3042,7 +3042,7 @@ var Ft = [
3042
3042
  id: "charting",
3043
3043
  name: "Charting",
3044
3044
  label: "Charting",
3045
- url: "https://chart-pro.datatokenapi.com",
3045
+ url: "https://chart.mom-z14.in",
3046
3046
  icon: R,
3047
3047
  bannerImage: Nt.chart,
3048
3048
  badge: "FASTR CHARTING",
@@ -3057,7 +3057,7 @@ var Ft = [
3057
3057
  id: "derivatives",
3058
3058
  name: "Derivatives",
3059
3059
  label: "Derivatives",
3060
- url: "https://derivatives-pro.datatokenapi.com",
3060
+ url: "https://derivatives.mom-z14.in",
3061
3061
  icon: j,
3062
3062
  bannerImage: Nt.derivatives,
3063
3063
  badge: "FASTR DERIVATIVES",
@@ -3079,9 +3079,9 @@ var Ft = [
3079
3079
  id: "macro",
3080
3080
  name: "Macro Pulse",
3081
3081
  label: "Macro Pulse",
3082
- url: "https://macropulse-pro.datatokenapi.com",
3083
- apiUrl: "https://macropulse-pro-api.datatokenapi.com/api",
3084
- categoriesApiUrl: "https://macropulse-pro-api.datatokenapi.com/api/categories",
3082
+ url: "https://macropulse.mom-z14.in",
3083
+ apiUrl: "https://macropulse-api.mom-z14.in/api",
3084
+ categoriesApiUrl: "https://macropulse-api.mom-z14.in/api/categories",
3085
3085
  icon: k,
3086
3086
  bannerImage: Nt.macropulse,
3087
3087
  badge: "FASTR MACRO PULSE",
@@ -3447,7 +3447,7 @@ function Yt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
3447
3447
  F,
3448
3448
  I,
3449
3449
  le
3450
- ]), _e = j === void 0 ? P === void 0 ? F === void 0 ? !!(R.isAlpha || R.showAlphaBadge || R.alpha) : !!F : !!P : !!j, be = I || R.alphaBadgeText || "ALPHA", z = le || R.alphaVersion || "", B = C || R.currentApp || "derivatives", V = (R.authApiUrl || "https://sso-api.datatokenapi.com/api").replace(/\/+$/, ""), Se = (R.authRedirectUrl || R.urls?.sso || "https://sso.datatokenapi.com").replace(/\/+$/, ""), H = d === void 0 ? !!R.redirectOnInvalidSession : d, Ce = f || R.profileGetter, U = g === void 0 && R.user === void 0 && (typeof Ce == "function" || !!V), [we, Te] = o(null), [Ee, De] = o(U);
3450
+ ]), _e = j === void 0 ? P === void 0 ? F === void 0 ? !!(R.isAlpha || R.showAlphaBadge || R.alpha) : !!F : !!P : !!j, be = I || R.alphaBadgeText || "ALPHA", z = le || R.alphaVersion || "", B = C || R.currentApp || "derivatives", V = (R.authApiUrl || "https://sso-api.mom-z14.in/api").replace(/\/+$/, ""), Se = (R.authRedirectUrl || R.urls?.sso || "https://sso.mom-z14.in").replace(/\/+$/, ""), H = d === void 0 ? !!R.redirectOnInvalidSession : d, Ce = f || R.profileGetter, U = g === void 0 && R.user === void 0 && (typeof Ce == "function" || !!V), [we, Te] = o(null), [Ee, De] = o(U);
3451
3451
  r(() => {
3452
3452
  if (g !== void 0 || R.user !== void 0) return;
3453
3453
  let e = () => {
@@ -3495,7 +3495,7 @@ function Yt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
3495
3495
  ke(qt);
3496
3496
  return;
3497
3497
  }
3498
- let e = !0, t = R.apps?.macro?.categoriesApiUrl || "https://macropulse-pro-api.datatokenapi.com/api/categories";
3498
+ let e = !0, t = R.apps?.macro?.categoriesApiUrl || "https://macropulse-api.mom-z14.in/api/categories";
3499
3499
  return Jt ||= fetch(t, { credentials: "include" }).then(async (e) => {
3500
3500
  if (e.ok) {
3501
3501
  let t = await e.json(), n = Array.isArray(t) ? t : t?.data || t?.categories || [];
@@ -3535,7 +3535,7 @@ function Yt({ config: e, authApiUrl: t, authRedirectUrl: l, redirectOnInvalidSes
3535
3535
  let r = (t.code || "").toLowerCase().replace(/[^a-z0-9]/g, ""), i = (t.name || "").toLowerCase().replace(/[^a-z0-9]/g, "");
3536
3536
  return n.includes("scanner") && (r.includes("scanner") || i.includes("scanner")) || n.includes("chart") && (r.includes("chart") || i.includes("chart")) || n.includes("deriv") && (r.includes("deriv") || i.includes("deriv")) || n.includes("macro") && (r.includes("macro") || i.includes("macro")) || n.includes("xray") && (r.includes("xray") || i.includes("xray") || i.includes("stockxray") || i.includes("stock-x-ray")) || i === n || r === n || t.id === e;
3537
3537
  });
3538
- }, je = v != null, Me = typeof v == "string" ? v.toLowerCase().trim() : v, Ne = () => typeof window > "u" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, [Pe, Fe] = o(() => Ne()), [Ie, Le] = o(() => typeof window < "u" ? localStorage.getItem("theme") || R.uiTheme || "system" : R.uiTheme || "system"), Re = je ? Me || "system" : Ie, G = je ? Me === "dark" || Me !== "light" && Pe : Re === "dark" || Re !== "light" && Pe;
3538
+ }, je = v != null, Me = typeof v == "string" ? v.toLowerCase().trim() : v, Ne = () => typeof window > "u" ? !1 : window.matchMedia("(prefers-color-scheme: dark)").matches, [Pe, Fe] = o(() => Ne()), [Ie, Le] = o(() => typeof window < "u" ? localStorage.getItem("theme") || R.uiTheme || "dark" : R.uiTheme || "dark"), Re = je ? Me || "dark" : Ie, G = je ? Me === "dark" || Me !== "light" && Pe : Re === "dark" || Re !== "light" && Pe;
3539
3539
  r(() => {
3540
3540
  if (typeof window > "u") return;
3541
3541
  let e = window.matchMedia("(prefers-color-scheme: dark)"), t = () => Fe(e.matches);