sixseconds-modules 1.6.41 → 1.6.43

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.cjs.js CHANGED
@@ -2659,7 +2659,7 @@ function createEnv(opts) {
2659
2659
  }
2660
2660
  return runtimeEnv;
2661
2661
  }
2662
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "development", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://dev-ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://dev-sso.6seconds.org" };
2662
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://admin-cards.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://cards.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://cert.6seconds.org", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://newevents.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://newtools.6seconds.org" };
2663
2663
  const env = createEnv({
2664
2664
  runtimeEnv: __vite_import_meta_env__
2665
2665
  });
@@ -2834,17 +2834,21 @@ const handleRedirection = (type, source) => {
2834
2834
  }
2835
2835
  };
2836
2836
  const CookiesUtil = {
2837
+ COOKIE_OPTIONS: {
2838
+ path: "/",
2839
+ domain: DEV ? "localhost" : ".6seconds.org",
2840
+ secure: true,
2841
+ sameSite: "None",
2842
+ expires: 7
2843
+ },
2837
2844
  get: (name) => {
2838
2845
  return JSON.parse(Cookies.get(name) || "{}");
2839
2846
  },
2840
2847
  set: (name, val) => {
2841
- Cookies.set(name, JSON.stringify(val), {
2842
- path: "/",
2843
- domain: DEV ? "localhost" : ".6seconds.org",
2844
- secure: true,
2845
- sameSite: "None",
2846
- expires: 7
2847
- });
2848
+ Cookies.set(name, JSON.stringify(val), CookiesUtil.COOKIE_OPTIONS);
2849
+ },
2850
+ remove: (name) => {
2851
+ Cookies.remove(name, CookiesUtil.COOKIE_OPTIONS);
2848
2852
  }
2849
2853
  };
2850
2854
  //! moment.js
@@ -9799,7 +9803,7 @@ function ViewProfileDialog({ userData, setInitialState, isOpen }) {
9799
9803
  ) }),
9800
9804
  /* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { pl: { md: 3, lg: 3, xs: 0 } }, children: [
9801
9805
  /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "column", spacing: 1.5, sx: { fontSize: "14px" }, children: [
9802
- Boolean(userData?.certification.length) && /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", alignItems: "center", flexWrap: "wrap", spacing: 0.5, useFlexGap: true, children: [
9806
+ Boolean(userData?.certification?.length) && /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", alignItems: "center", flexWrap: "wrap", spacing: 0.5, useFlexGap: true, children: [
9803
9807
  "Certification:",
9804
9808
  userData?.certification?.map((itm, idx) => /* @__PURE__ */ jsxRuntime.jsx(material.Chip, { sx: { mr: 0.5, mb: 0.5 }, label: `${itm}` }, idx))
9805
9809
  ] }),
@@ -10776,6 +10780,7 @@ const PreviousLoginBanner = ({ t: t2, router }) => {
10776
10780
  try {
10777
10781
  const res = await autoLoginApi(previousLoginDetails?.id);
10778
10782
  if (res.remote === "success") {
10783
+ CookiesUtil.remove("previousLoginDetails");
10779
10784
  if (router) {
10780
10785
  router.reload();
10781
10786
  router.replace(ROUTES.home);
@@ -10783,7 +10788,6 @@ const PreviousLoginBanner = ({ t: t2, router }) => {
10783
10788
  window.location.reload();
10784
10789
  window.location.href = ROUTES.home;
10785
10790
  }
10786
- Cookies.remove("previousLoginDetails");
10787
10791
  }
10788
10792
  } catch (err) {
10789
10793
  toast.error(t2(ALERT_MESSAGES.fallbackError));