sixseconds-modules 1.6.179 → 1.6.181

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.
@@ -88,5 +88,6 @@ export interface IHeaderProps {
88
88
  endCustomComponents?: React.ReactNode
89
89
  totallyEndCustomComponent?: React.ReactNode
90
90
  isMainLogo?: boolean
91
+ isLang?: boolean
91
92
  handleSideToggle?: any
92
93
  }
package/dist/index.cjs.js CHANGED
@@ -6237,7 +6237,7 @@ ZodEnum.create;
6237
6237
  ZodPromise.create;
6238
6238
  ZodOptional.create;
6239
6239
  ZodNullable.create;
6240
- const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "development", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_ENV": "qa", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://qa-ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org" };
6240
+ const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "qa", "PROD": true, "SSR": false, "VITE_MODULES_CARDS_ADMIN_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_CARDS_HOME_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_CERT_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_ENV": "qa", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_SSO_BACKEND_BASE_URL": "https://qa-ssoapi.6seconds.org", "VITE_MODULES_SSO_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org", "VITE_MODULES_TOOLS_FRONTEND_BASE_URL": "https://qa-sso.6seconds.org" };
6241
6241
  const env = createEnv({
6242
6242
  client: {
6243
6243
  VITE_MODULES_ENV: stringType()
@@ -13758,8 +13758,8 @@ const AppMenus = ({ menuItems, setInitialState, t: t2, appName, router }) => {
13758
13758
  /* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { mb: 1, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ jsxRuntime.jsx(
13759
13759
  "img",
13760
13760
  {
13761
- width: 38,
13762
- height: 38,
13761
+ width: 40,
13762
+ height: 40,
13763
13763
  style: { margin: "0 auto", display: "block", objectFit: "contain" },
13764
13764
  src: item.icon,
13765
13765
  alt: item.name
@@ -13874,7 +13874,7 @@ function Language({
13874
13874
  }
13875
13875
  }
13876
13876
  },
13877
- children: interFaceLangList?.map((lang2, i) => {
13877
+ children: interFaceLangList?.length > 0 ? interFaceLangList?.map((lang2, i) => {
13878
13878
  return /* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsx(
13879
13879
  material.Stack,
13880
13880
  {
@@ -13894,11 +13894,11 @@ function Language({
13894
13894
  src: lang2?.flag || IMAGES.DefaultLang,
13895
13895
  alt: lang2?.label,
13896
13896
  style: {
13897
- width: "40px !important",
13898
- height: "25px !important"
13897
+ width: "35px !important",
13898
+ height: "35px !important"
13899
13899
  },
13900
- width: 40,
13901
- height: 25
13900
+ width: 35,
13901
+ height: 35
13902
13902
  }
13903
13903
  ),
13904
13904
  /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: t2(lang2?.label) }),
@@ -13906,7 +13906,7 @@ function Language({
13906
13906
  ] }) })
13907
13907
  }
13908
13908
  ) }, i);
13909
- })
13909
+ }) : /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: t2(ALERT_MESSAGES.dataNoFount) })
13910
13910
  }
13911
13911
  )
13912
13912
  }
@@ -14654,6 +14654,7 @@ const HeaderInner = ({
14654
14654
  notificationAccessApps,
14655
14655
  sx,
14656
14656
  isMainLogo = true,
14657
+ isLang = true,
14657
14658
  handleSideToggle,
14658
14659
  t
14659
14660
  }) => {
@@ -14820,7 +14821,7 @@ const HeaderInner = ({
14820
14821
  ]
14821
14822
  }
14822
14823
  ),
14823
- Boolean(interFaceLangList?.length) && /* @__PURE__ */ jsxRuntime.jsxs(
14824
+ isLang && /* @__PURE__ */ jsxRuntime.jsxs(
14824
14825
  material.Box,
14825
14826
  {
14826
14827
  sx: {
@@ -14845,11 +14846,11 @@ const HeaderInner = ({
14845
14846
  "img",
14846
14847
  {
14847
14848
  style: {
14848
- width: "40px !important",
14849
- height: "30px !important"
14849
+ width: "35px !important",
14850
+ height: "35px !important"
14850
14851
  },
14851
- width: 40,
14852
- height: 30,
14852
+ width: 35,
14853
+ height: 35,
14853
14854
  alt: "lang",
14854
14855
  "data-cookiecategory": "essential",
14855
14856
  "data-src": selectedInterFaceLang?.flag || IMAGES.DefaultLang,
@@ -15267,6 +15268,7 @@ const App = () => {
15267
15268
  {
15268
15269
  isAccessAppMenu: true,
15269
15270
  isMenu: true,
15271
+ isLang: false,
15270
15272
  handleSideToggle: () => {
15271
15273
  },
15272
15274
  updateInterfaceLang: () => {
@@ -15343,32 +15345,6 @@ const App = () => {
15343
15345
  linkedInUrl: "",
15344
15346
  notificationCount: 10
15345
15347
  },
15346
- interFaceLangList: [
15347
- {
15348
- id: 1,
15349
- label: "Chinese",
15350
- value: "zh",
15351
- flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
15352
- },
15353
- {
15354
- id: 1,
15355
- label: "English (US)",
15356
- value: "en",
15357
- flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277288.png"
15358
- },
15359
- {
15360
- id: 1,
15361
- label: "Spanish",
15362
- value: 3,
15363
- flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
15364
- }
15365
- ],
15366
- selectedInterFaceLang: {
15367
- id: 1,
15368
- label: "Chinese",
15369
- value: "zh",
15370
- flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
15371
- },
15372
15348
  isMainLogo: true,
15373
15349
  totallyEndCustomComponent: "asdfsdf",
15374
15350
  extraMenuOptions: {