sixseconds-modules 1.5.5 → 1.5.7

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.es.js CHANGED
@@ -3,7 +3,7 @@
3
3
  try {
4
4
  if (typeof document != "undefined") {
5
5
  var elementStyle = document.createElement("style");
6
- elementStyle.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");\n\n:root {\n --background: #ffffff;\n --foreground: #171717;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n --background: #0a0a0a;\n --foreground: #ededed;\n }\n}\n\nbody {\n font-family: "Inter", serif !important;\n margin: 0;\n padding: 0;\n color: var(--foreground);\n background: var(--background);\n}\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n font-family: "Inter", serif !important;\n}\n\n.MuiTypography-root {\n font-family: "Inter", serif !important;\n}\n\n.search input {\n padding: 8.5px 6px 8.5px 33px !important;\n}\n\n.MuiAutocomplete-root .MuiOutlinedInput-root {\n padding: 2px 10px !important;\n}\n\ninput {\n height: 36px;\n}\n\n.activeUrl {\n color: #007fc0;\n}\n\n/* .login_page:has(.MuiContainer-root) {\n width: 100% !important;\n padding: 0;\n background-color: pink;\n} */\n\n.MuiAutocomplete-input {\n padding: 4.5px !important;\n}\n\n.upload_div {\n cursor: pointer;\n width: 125px;\n}\n\n.MuiPaper-root.MuiPaper-elevation.MuiPaper-rounded {\n width: 100% !important;\n}\n\n.upload_button {\n background-color: #007fc0;\n color: #fff;\n border-radius: 5px;\n white-space: nowrap;\n padding: 7px 10px;\n cursor: pointer;\n width: 100%;\n}\n\n.upload_div input {\n position: absolute;\n left: 0;\n width: 100%;\n opacity: 0;\n}\n\n.upload_div .delete_btn {\n background-color: #ddd;\n border: 1px solid #ccc;\n margin-top: 10px;\n border-radius: 5px;\n text-align: center;\n width: 100%;\n}\n\nbody {\n background-color: #f6f6f6;\n}\n\n.login_page:has body {\n background-color: #f6f6f6 !important;\n}\n\n.MuiTableHead-root,\n.MuiTableCell-root,\n.MuiInputBase-formControl {\n font-family: "Inter", serif !important;\n}\n\ninput:-webkit-autofill {\n padding: 0 10px;\n}\n\n.MuiPagination-root.MuiPagination-outlined {\n /* margin-top: 10px; */\n display: flex;\n justify-content: end;\n}\n\n.pagination {\n margin-top: 10px;\n}\n\n.tox-statusbar {\n display: none !important;\n}\n\n.tox-tinymce {\n border: 1px solid #0000003b !important;\n}\n\n.manage_payment tr th:nth-child(2) {\n text-align: center !important;\n}\n\n.manage_payment tr td:nth-child(2) {\n text-align: center !important;\n}\n\n.manage_payment tr td:nth-child(2) div {\n display: flex;\n justify-content: center;\n}\n\n.MuiTableContainer-root::-webkit-scrollbar {\n width: 5px;\n height: 8px;\n}\n\n.main.login_page .loginBody {\n width: 800px !important;\n}\n\n.main_list_Menu {\n display: flex;\n}\n\n.main_list_Menu li {\n padding: 0.5rem 0.5rem;\n}\n\n.main_list_Menu li a {\n padding: 0 0.25rem;\n font-weight: 600;\n font-size: 14px;\n}\n\n.main_list_Menu .menu-item {\n position: relative;\n padding: 15px;\n}\n\n.main_list_Menu .menu-link {\n text-decoration: none;\n color: #2c2e35;\n transition: color 0.3s ease;\n}\n\n.main_list_Menu .menu-link:hover {\n color: #2ea3f2;\n}\n\n/* Submenu (Dropdown) */\n\n.main_list_Menu .submenuData {\n position: absolute;\n top: 85%;\n left: 0;\n background: white;\n border-top: 3px solid #2ea3f2;\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n display: none;\n min-width: 200px;\n z-index: 10;\n}\n\n.main_list_Menu .submenuData li {\n list-style: none;\n}\n\n.main_list_Menu .submenu-link {\n display: block;\n padding: 1px 15px;\n text-decoration: none;\n color: rgba(0, 0, 0, 0.7);\n font-weight: 600;\n}\n\n.main_list_Menu .submenu-link:hover {\n background: #f1f1f1;\n}\n\n/* Show dropdown on hover */\n\n.main_list_Menu .menu-item:hover .submenuData {\n display: block;\n}\n\n.smallDeviceMenu {\n display: none;\n width: 100%;\n left: 0;\n top: 72px;\n background-color: #fff;\n position: fixed;\n overflow-y: auto;\n height: 95vh;\n}\n\n.smallDeviceMenu a.bg_main_menu {\n display: block;\n}\n\n.layout_mobile_menu {\n padding-bottom: 12px;\n padding-inline: 0;\n height: 95vh;\n overflow-y: auto;\n padding-top: 8px;\n}\n\n.smallDeviceMenu a {\n background-color: rgba(0, 0, 0, 0.03);\n font-size: 15px;\n font-weight: 600;\n color: #2c2e35;\n margin-bottom: 4px;\n padding: 12px 8px;\n}\n\n.smallDeviceMenu .submenu_child {\n padding-left: 15px;\n min-width: 90%;\n max-width: 90%;\n top: 57px;\n margin-top: 8px;\n background-color: #fff;\n color: #000;\n margin-inline: auto;\n}\n\n.smallDeviceMenu ul li .submenu_child_link {\n padding: 12px 20px;\n}\n\n.smallDeviceMenu ul li a {\n background-color: transparent;\n color: #000000b3;\n}\n\n.smallDeviceMenu ul {\n padding-left: 15px;\n}\n\n.desktopMenu {\n display: flex;\n}\n\n.button_hamburger {\n display: none;\n position: absolute;\n right: 20px;\n top: 25px;\n z-index: 9;\n}\n\n.tox-editor-header {\n background-color: transparent;\n}\n\n.hamburger-icon-btn {\n padding: 8px;\n color: rgba(0, 0, 0, 0.54);\n}\n\n.desktopMenu .menu-item .menu-link {\n font-size: 15px;\n}\n\n.smallDeviceMenu {\n padding-inline: 20px;\n}\n\n::-webkit-scrollbar {\n width: 10px;\n background-color: #aaa;\n border-radius: 10px;\n}\n\n/* Track */\n\n::-webkit-scrollbar-track {\n box-shadow: inset 0 0 5px grey;\n border-radius: 10px;\n}\n\n/* Handle */\n\n::-webkit-scrollbar-thumb {\n background: #717070;\n border-radius: 10px;\n}\n\n/* Handle on hover */\n\n::-webkit-scrollbar-thumb:hover {\n background: #b30000;\n}\n\n@media screen and (max-width: 600px) and (min-width: 320px) {\n .notification_icon_error .MuiBadge-badge {\n font-size: 11px;\n padding: 0 3px;\n min-width: 16px;\n right: 5px;\n }\n\n .submenu nav {\n padding: 0 !important;\n }\n\n .MuiPagination-root.MuiPagination-outlined {\n /* margin-top: 10px; */\n display: flex;\n justify-content: center;\n margin-left: 0;\n }\n\n .toogle_btn_menu {\n position: absolute;\n right: 20px;\n top: 18px;\n z-index: 99;\n }\n\n .right_header_icons {\n padding-right: 25px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .desktopMenu {\n display: none;\n }\n\n .smallDeviceMenu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 69px;\n }\n\n .main.login_page .loginBody {\n width: 400px !important;\n }\n\n .submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sideBar {\n width: 300px !important;\n background-color: #fff;\n z-index: 99;\n }\n\n .sideMenu {\n width: 300px;\n background-color: #fff;\n }\n\n .logo_header {\n opacity: 1;\n }\n\n .profile.headerMenu {\n min-width: 320px;\n width: auto !important;\n }\n}\n\n@media screen and (max-width: 1024px) and (min-width: 600px) {\n .toogle_btn_menu {\n position: absolute;\n right: 20px;\n top: 18px;\n }\n\n .right_header_icons {\n padding-right: 25px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .desktopMenu {\n display: none;\n }\n\n .smallDeviceMenu {\n display: block;\n }\n\n .main.login_page .loginBody {\n width: 500px !important;\n }\n\n .banner {\n margin-left: 0 !important;\n }\n\n .submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sideBar {\n width: 300px !important;\n background-color: #fff;\n z-index: 99;\n }\n\n .sideMenu {\n width: 300px;\n background-color: #fff;\n }\n\n .logo_header {\n opacity: 1;\n }\n\n .profile.headerMenu {\n min-width: 320px;\n width: auto !important;\n }\n}\n\n@media screen and (max-width: 1380px) and (min-width: 1024px) {\n .right_header_icons {\n padding-right: 25px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .desktopMenu {\n display: none;\n }\n\n .smallDeviceMenu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 72px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .right_header_icons {\n padding-right: 25px;\n }\n}'));
6
+ elementStyle.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");\n\n:root {\n --background: #ffffff;\n --foreground: #171717;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n --background: #0a0a0a;\n --foreground: #ededed;\n }\n}\n\nbody {\n font-family: "Inter", serif !important;\n margin: 0;\n padding: 0;\n color: var(--foreground);\n background: var(--background);\n}\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n font-family: "Inter", serif !important;\n}\n\n.MuiTypography-root {\n font-family: "Inter", serif !important;\n}\n\n.search input {\n padding: 8.5px 6px 8.5px 33px !important;\n}\n\n.MuiAutocomplete-root .MuiOutlinedInput-root {\n padding: 2px 10px !important;\n}\n\ninput {\n height: 36px;\n}\n\n.activeUrl {\n color: #007fc0;\n}\n\n/* .login_page:has(.MuiContainer-root) {\n width: 100% !important;\n padding: 0;\n background-color: pink;\n} */\n\n.MuiAutocomplete-input {\n padding: 4.5px !important;\n}\n\n.upload_div {\n cursor: pointer;\n width: 125px;\n}\n\n.MuiPaper-root.MuiPaper-elevation.MuiPaper-rounded {\n width: 100% !important;\n}\n\n.upload_button {\n background-color: #007fc0;\n color: #fff;\n border-radius: 5px;\n white-space: nowrap;\n padding: 7px 10px;\n cursor: pointer;\n width: 100%;\n}\n\n.upload_div input {\n position: absolute;\n left: 0;\n width: 100%;\n opacity: 0;\n}\n\n.upload_div .delete_btn {\n background-color: #ddd;\n border: 1px solid #ccc;\n margin-top: 10px;\n border-radius: 5px;\n text-align: center;\n width: 100%;\n}\n\nbody {\n background-color: #f6f6f6;\n}\n\n.login_page:has body {\n background-color: #f6f6f6 !important;\n}\n\n.MuiTableHead-root,\n.MuiTableCell-root,\n.MuiInputBase-formControl {\n font-family: "Inter", serif !important;\n}\n\ninput:-webkit-autofill {\n padding: 0 10px;\n}\n\n.MuiPagination-root.MuiPagination-outlined {\n /* margin-top: 10px; */\n display: flex;\n justify-content: end;\n}\n\n.pagination {\n margin-top: 10px;\n}\n\n.tox-statusbar {\n display: none !important;\n}\n\n.tox-tinymce {\n border: 1px solid #0000003b !important;\n}\n\n.manage_payment tr th:nth-child(2) {\n text-align: center !important;\n}\n\n.manage_payment tr td:nth-child(2) {\n text-align: center !important;\n}\n\n.manage_payment tr td:nth-child(2) div {\n display: flex;\n justify-content: center;\n}\n\n.MuiTableContainer-root::-webkit-scrollbar {\n width: 5px;\n height: 8px;\n}\n\n.main.login_page .loginBody {\n width: 800px !important;\n}\n\n.main_list_Menu {\n display: flex;\n}\n\n.main_list_Menu li {\n padding: 0.5rem 0.5rem;\n}\n\n.main_list_Menu li a {\n padding: 0 0.25rem;\n font-weight: 600;\n font-size: 14px;\n}\n\n.main_list_Menu .menu-item {\n position: relative;\n padding: 15px;\n}\n\n.main_list_Menu .menu-link {\n text-decoration: none;\n color: #2c2e35;\n transition: color 0.3s ease;\n}\n\n.main_list_Menu .menu-link:hover {\n color: #2ea3f2;\n}\n\n/* Submenu (Dropdown) */\n\n.main_list_Menu .submenuData {\n position: absolute;\n top: 85%;\n left: 0;\n background: white;\n border-top: 3px solid #2ea3f2;\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\n display: none;\n min-width: 200px;\n z-index: 10;\n}\n\n.main_list_Menu .submenuData li {\n list-style: none;\n}\n\n.main_list_Menu .submenu-link {\n display: block;\n padding: 1px 15px;\n text-decoration: none;\n color: rgba(0, 0, 0, 0.7);\n font-weight: 600;\n}\n\n.main_list_Menu .submenu-link:hover {\n background: #f1f1f1;\n}\n\n/* Show dropdown on hover */\n\n.main_list_Menu .menu-item:hover .submenuData {\n display: block;\n}\n\n.smallDeviceMenu {\n display: none;\n width: 100%;\n left: 0;\n top: 72px;\n background-color: #fff;\n position: fixed;\n overflow-y: auto;\n height: 95vh;\n}\n\n.smallDeviceMenu a.bg_main_menu {\n display: block;\n}\n\n.layout_mobile_menu {\n padding-bottom: 12px;\n padding-inline: 0;\n height: 95vh;\n overflow-y: auto;\n padding-top: 8px;\n}\n\n.smallDeviceMenu a {\n background-color: rgba(0, 0, 0, 0.03);\n font-size: 15px;\n font-weight: 600;\n color: #2c2e35;\n margin-bottom: 4px;\n padding: 12px 8px;\n}\n\n.smallDeviceMenu .submenu_child {\n padding-left: 15px;\n min-width: 90%;\n max-width: 90%;\n top: 57px;\n margin-top: 8px;\n background-color: #fff;\n color: #000;\n margin-inline: auto;\n}\n\n.smallDeviceMenu ul li .submenu_child_link {\n padding: 12px 20px;\n}\n\n.smallDeviceMenu ul li a {\n background-color: transparent;\n color: #000000b3;\n}\n\n.smallDeviceMenu ul {\n padding-left: 15px;\n}\n\n.desktopMenu {\n display: flex;\n}\n\n.button_hamburger {\n display: none;\n position: absolute;\n right: 20px;\n top: 25px;\n z-index: 9;\n}\n\n.tox-editor-header {\n background-color: transparent;\n}\n\n.hamburger-icon-btn {\n padding: 8px;\n color: rgba(0, 0, 0, 0.54);\n}\n\n.desktopMenu .menu-item .menu-link {\n font-size: 15px;\n}\n\n.smallDeviceMenu {\n padding-inline: 20px;\n}\n\n::-webkit-scrollbar {\n width: 10px;\n background-color: #aaa;\n border-radius: 10px;\n}\n\n/* Track */\n\n::-webkit-scrollbar-track {\n box-shadow: inset 0 0 5px grey;\n border-radius: 10px;\n}\n\n/* Handle */\n\n::-webkit-scrollbar-thumb {\n background: #717070;\n border-radius: 10px;\n}\n\n/* Handle on hover */\n\n::-webkit-scrollbar-thumb:hover {\n background: #b30000;\n}\n\n@media screen and (max-width: 600px) and (min-width: 320px) {\n .notification_icon_error .MuiBadge-badge {\n font-size: 11px;\n padding: 0 3px;\n min-width: 16px;\n right: 5px;\n }\n\n .submenu nav {\n padding: 0 !important;\n }\n\n .MuiPagination-root.MuiPagination-outlined {\n /* margin-top: 10px; */\n display: flex;\n justify-content: center;\n margin-left: 0;\n }\n\n .toogle_btn_menu {\n position: absolute;\n right: 20px;\n top: 18px;\n z-index: 99;\n }\n\n .right_header_icons {\n padding-right: 25px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .desktopMenu {\n display: none;\n }\n\n .smallDeviceMenu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 69px;\n }\n\n .main.login_page .loginBody {\n width: 400px !important;\n }\n\n .submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sideBar {\n width: 300px !important;\n background-color: #fff;\n z-index: 99;\n }\n\n .sideMenu {\n width: 300px;\n background-color: #fff;\n }\n\n .logo_header {\n opacity: 1;\n }\n\n .profile .headerMenu {\n min-width: 320px;\n width: 500px !important;\n }\n}\n\n@media screen and (max-width: 1024px) and (min-width: 600px) {\n .toogle_btn_menu {\n position: absolute;\n right: 20px;\n top: 18px;\n }\n\n .right_header_icons {\n padding-right: 25px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .desktopMenu {\n display: none;\n }\n\n .smallDeviceMenu {\n display: block;\n }\n\n .main.login_page .loginBody {\n width: 500px !important;\n }\n\n .banner {\n margin-left: 0 !important;\n }\n\n .submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sideBar {\n width: 300px !important;\n background-color: #fff;\n z-index: 99;\n }\n\n .sideMenu {\n width: 300px;\n background-color: #fff;\n }\n\n .logo_header {\n opacity: 1;\n }\n\n .profile .headerMenu {\n min-width: 320px;\n width: 500px !important;\n }\n}\n\n@media screen and (max-width: 1380px) and (min-width: 1024px) {\n .right_header_icons {\n padding-right: 25px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .desktopMenu {\n display: none;\n }\n\n .smallDeviceMenu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 72px;\n }\n\n .button_hamburger {\n display: block;\n }\n\n .right_header_icons {\n padding-right: 25px;\n }\n}'));
7
7
  document.head.appendChild(elementStyle);
8
8
  }
9
9
  } catch (e) {
@@ -66,7 +66,6 @@ const SubHeaderStyled = styled(AppBar)(() => ({
66
66
  width: "100vw",
67
67
  fontFamily: "Inter, sans-serif",
68
68
  position: "fixed",
69
- boxShadow: " -6px 2px 7px 1px #EDEDED",
70
69
  zIndex: "99",
71
70
  // left: "255px",
72
71
  right: "0px",
@@ -4255,7 +4254,7 @@ function formatDateUtil(dateString, flag, formatDate = MAIN_DATE_FORMAT) {
4255
4254
  const dateTime = hooks.utc(dateString).local();
4256
4255
  return dateString ? formatTwoValues(dateTime.format(formatDate), dateTime.format(MAIN_TIME_FORMAT)) : "";
4257
4256
  }
4258
- const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4257
+ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions }) => {
4259
4258
  const [state, setState] = useState({ toggles: { userProfile: false } });
4260
4259
  return /* @__PURE__ */ jsxs(Fragment, { children: [
4261
4260
  /* @__PURE__ */ jsxs(
@@ -4290,7 +4289,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4290
4289
  children: [
4291
4290
  /* @__PURE__ */ jsx(Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: userData?.fullName }),
4292
4291
  Boolean(userData?.role) && /* @__PURE__ */ jsxs(Typography, { component: "span", sx: { m: 0, fontSize: "14px", color: "#666666" }, children: [
4293
- truncateValUtil(userData?.email),
4292
+ truncateValUtil(userData?.email || ""),
4294
4293
  " ",
4295
4294
  /* @__PURE__ */ jsx("br", {}),
4296
4295
  "(",
@@ -4309,8 +4308,8 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4309
4308
  spacing: 1,
4310
4309
  alignItems: "center",
4311
4310
  component: Link,
4312
- href: SSO_ROUTES(userData.appName).viewProfile,
4313
- target: userData.appName === APP_NAMES.sso ? "_self" : "_blank",
4311
+ href: SSO_ROUTES(userData?.appName).viewProfile,
4312
+ target: userData?.appName === APP_NAMES.sso ? "_self" : "_blank",
4314
4313
  sx: { color: "#1A1919", cursor: "pointer", textDecoration: "none" },
4315
4314
  children: [
4316
4315
  /* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
@@ -4323,7 +4322,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4323
4322
  fontWeight: "400",
4324
4323
  m: 0
4325
4324
  },
4326
- children: "View Profile"
4325
+ children: t2("View Profile")
4327
4326
  }
4328
4327
  ) })
4329
4328
  ]
@@ -4336,8 +4335,8 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4336
4335
  spacing: 1,
4337
4336
  alignItems: "center",
4338
4337
  component: Link,
4339
- href: SSO_ROUTES(userData.appName).editProfile,
4340
- target: userData.appName === APP_NAMES.sso ? "_self" : "_blank",
4338
+ href: SSO_ROUTES(userData?.appName).editProfile,
4339
+ target: userData?.appName === APP_NAMES.sso ? "_self" : "_blank",
4341
4340
  sx: { color: "#1A1919", textDecoration: "none" },
4342
4341
  children: [
4343
4342
  /* @__PURE__ */ jsx(SVG.UserEdit, {}),
@@ -4350,7 +4349,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4350
4349
  fontWeight: "400",
4351
4350
  m: 0
4352
4351
  },
4353
- children: "Edit Profile"
4352
+ children: t2("Edit Profile")
4354
4353
  }
4355
4354
  ) })
4356
4355
  ]
@@ -4363,8 +4362,8 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4363
4362
  spacing: 1,
4364
4363
  alignItems: "center",
4365
4364
  component: Link,
4366
- href: SSO_ROUTES(userData.appName).changePasswordDialog,
4367
- target: userData.appName === APP_NAMES.sso ? "_self" : "_blank",
4365
+ href: SSO_ROUTES(userData?.appName).changePasswordDialog,
4366
+ target: userData?.appName === APP_NAMES.sso ? "_self" : "_blank",
4368
4367
  sx: { cursor: "pointer", textDecoration: "none" },
4369
4368
  children: [
4370
4369
  /* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
@@ -4378,7 +4377,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4378
4377
  fontWeight: "400",
4379
4378
  m: 0
4380
4379
  },
4381
- children: "Change Password"
4380
+ children: t2("Change Password")
4382
4381
  }
4383
4382
  ) })
4384
4383
  ]
@@ -4406,7 +4405,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
4406
4405
  fontWeight: "400",
4407
4406
  m: 0
4408
4407
  },
4409
- children: "Logout"
4408
+ children: t2("Logout")
4410
4409
  }
4411
4410
  ) })
4412
4411
  ]
@@ -4420,7 +4419,8 @@ function Language({
4420
4419
  interFaceLangList,
4421
4420
  updateInterfaceLang,
4422
4421
  selectedInterFaceLang,
4423
- setInitialState
4422
+ setInitialState,
4423
+ t: t2
4424
4424
  }) {
4425
4425
  return /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsx(
4426
4426
  Box,
@@ -4471,7 +4471,7 @@ function Language({
4471
4471
  },
4472
4472
  children: /* @__PURE__ */ jsx(Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", justifyContent: "flex-start", gap: 2, children: [
4473
4473
  /* @__PURE__ */ jsx("img", { src: lang2?.flag, alt: lang2?.label, width: 32, height: 30 }),
4474
- /* @__PURE__ */ jsx(Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: lang2?.label }),
4474
+ /* @__PURE__ */ jsx(Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: t2(lang2?.label) }),
4475
4475
  selectedInterFaceLang?.value === lang2?.value && /* @__PURE__ */ jsx(CheckIcon, { sx: { color: "#007FC0", fontSize: "30px" } })
4476
4476
  ] }) })
4477
4477
  }
@@ -5100,7 +5100,7 @@ var InfiniteScroll = (
5100
5100
  return InfiniteScroll2;
5101
5101
  }(Component)
5102
5102
  );
5103
- const Notification = ({ setInitialState, userData, initialState }) => {
5103
+ const Notification = ({ setInitialState, notificationAccessApps, initialState, t: t2 }) => {
5104
5104
  const [notifications, setNotifications] = useState([]);
5105
5105
  const [hasMore, setHasMore] = useState(true);
5106
5106
  const [activeTab, setActiveTab] = useState("all");
@@ -5163,7 +5163,7 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5163
5163
  position: "absolute"
5164
5164
  },
5165
5165
  children: [
5166
- /* @__PURE__ */ jsx(Box, { sx: { paddingBottom: "8px", display: "flex", borderBottom: "1px solid #ddd" }, children: userData?.appAccess?.map((tab) => /* @__PURE__ */ jsx(
5166
+ /* @__PURE__ */ jsx(Box, { sx: { display: "flex", borderBottom: "1px solid #ddd" }, children: notificationAccessApps?.map((tab) => /* @__PURE__ */ jsx(
5167
5167
  Button,
5168
5168
  {
5169
5169
  onClick: () => setActiveTab(tab.name),
@@ -5178,11 +5178,11 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5178
5178
  borderTopRightRadius: "5px",
5179
5179
  borderBottom: "1px solid #007fc0"
5180
5180
  },
5181
- children: /* @__PURE__ */ jsx(Typography, { sx: { textWrap: "nowrap" }, children: tab.name })
5181
+ children: /* @__PURE__ */ jsx(Typography, { sx: { textWrap: "nowrap" }, children: t2(tab.name) })
5182
5182
  },
5183
5183
  tab.name
5184
5184
  )) }),
5185
- /* @__PURE__ */ jsx(Box, { sx: { fontSize: "16px", fontWeight: "500", mt: 1, color: "black" }, children: "Notifications" }),
5185
+ /* @__PURE__ */ jsx(Box, { sx: { fontSize: "16px", fontWeight: "500", mt: 1, color: "black" }, children: t2("Notifications") }),
5186
5186
  /* @__PURE__ */ jsx(
5187
5187
  Box,
5188
5188
  {
@@ -5208,11 +5208,11 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5208
5208
  alignItems: "center",
5209
5209
  pT: 1
5210
5210
  },
5211
- children: /* @__PURE__ */ jsx(Typography, { color: "#000", children: ALERT_MESSAGES.commonLoadingMessage })
5211
+ children: /* @__PURE__ */ jsx(Typography, { color: "#000", children: t2(ALERT_MESSAGES.commonLoadingMessage) })
5212
5212
  }
5213
5213
  ),
5214
5214
  scrollableTarget: "scrollableDiv",
5215
- children: !notifications.length && !hasMore ? /* @__PURE__ */ jsx(Typography, { display: "flex", justifyContent: "center", color: "#000", children: ALERT_MESSAGES.dataNoFount }) : notifications.map((itm) => /* @__PURE__ */ jsxs(MenuItem, { sx: { bgcolor: "#fff", p: 2 }, children: [
5215
+ children: !notifications.length && !hasMore ? /* @__PURE__ */ jsx(Typography, { display: "flex", justifyContent: "center", color: "#000", children: t2(ALERT_MESSAGES.dataNoFount) }) : notifications.map((itm) => /* @__PURE__ */ jsxs(MenuItem, { sx: { bgcolor: "#fff", p: 2 }, children: [
5216
5216
  /* @__PURE__ */ jsx(Avatar, { sx: { bgcolor: "#ccc", mr: 1, color: "#000" }, children: getIcons(itm.type, itm?.source[0]) }),
5217
5217
  /* @__PURE__ */ jsxs(Box, { sx: { flex: 1 }, children: [
5218
5218
  /* @__PURE__ */ jsx(
@@ -5241,7 +5241,7 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5241
5241
  color: "rgb(25, 118, 210)",
5242
5242
  marginLeft: "5px"
5243
5243
  },
5244
- children: "View"
5244
+ children: t2("View")
5245
5245
  }
5246
5246
  )
5247
5247
  ] })
@@ -5255,12 +5255,12 @@ const Notification = ({ setInitialState, userData, initialState }) => {
5255
5255
  }
5256
5256
  ) });
5257
5257
  };
5258
- const AppMenus = ({ menuItems, setInitialState }) => {
5259
- return /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsx(Box, { sx: { p: 1 }, children: /* @__PURE__ */ jsx(Grid, { container: true, children: menuItems.map((item, index) => /* @__PURE__ */ jsx(
5258
+ const AppMenus = ({ menuItems, setInitialState, t: t2, appName }) => {
5259
+ return /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway: () => handleCloseUtil(setInitialState), children: /* @__PURE__ */ jsx(Box, { sx: { p: 2 }, children: /* @__PURE__ */ jsx(Grid, { container: true, rowGap: 3, children: menuItems.map((item, index) => /* @__PURE__ */ jsx(
5260
5260
  Grid,
5261
5261
  {
5262
5262
  component: Link,
5263
- href: item.link,
5263
+ href: urlcat(item.link, { source: appName }),
5264
5264
  target: item.type === "tab" ? "_blank" : "_self",
5265
5265
  item: true,
5266
5266
  md: 4,
@@ -5299,7 +5299,7 @@ const AppMenus = ({ menuItems, setInitialState }) => {
5299
5299
  color: "#252525",
5300
5300
  fontWeight: 500
5301
5301
  },
5302
- children: item.name
5302
+ children: t2(item.name)
5303
5303
  }
5304
5304
  )
5305
5305
  ]
@@ -5312,10 +5312,8 @@ const AppMenus = ({ menuItems, setInitialState }) => {
5312
5312
  const Header = ({
5313
5313
  frontCustomComponent,
5314
5314
  endCustomComponents,
5315
- // isDesktopCollapsed = false,
5316
5315
  userData,
5317
5316
  interFaceLangList,
5318
- // toggleSiderMenu,
5319
5317
  centerCustomComponents,
5320
5318
  updateInterfaceLang,
5321
5319
  selectedInterFaceLang,
@@ -5325,12 +5323,15 @@ const Header = ({
5325
5323
  extraMenuOptions,
5326
5324
  isMenu,
5327
5325
  isAccessAppMenu,
5328
- sx
5326
+ notificationAccessApps,
5327
+ sx,
5328
+ t
5329
5329
  }) => {
5330
5330
  const isMobile = useMediaQuery("(max-width: 1324px)");
5331
5331
  const [state, setState] = useState({
5332
5332
  languages: [],
5333
5333
  menuData: [],
5334
+ isMenuIconsShow: false,
5334
5335
  toggles: {
5335
5336
  appMenus: false,
5336
5337
  dropDownMenu: false,
@@ -5344,9 +5345,9 @@ const Header = ({
5344
5345
  logoutHandler();
5345
5346
  };
5346
5347
  const getDropDownMenuData = async () => {
5347
- const res = await getDropDownMenuAPI({ source: APP_NAMES.events, language_id: selectedInterFaceLang.id });
5348
+ const res = await getDropDownMenuAPI({ source: APP_NAMES.events, language_id: selectedInterFaceLang?.id });
5348
5349
  if (res.remote === "success") {
5349
- setState((p) => ({ ...p, menuData: res.data }));
5350
+ setState((p) => ({ ...p, menuData: res.data, isMenuIconsShow: res?.data?.length > 0 }));
5350
5351
  }
5351
5352
  };
5352
5353
  useEffect(() => {
@@ -5394,7 +5395,15 @@ const Header = ({
5394
5395
  children: /* @__PURE__ */ jsx(SVG.GridIcon, {})
5395
5396
  }
5396
5397
  ),
5397
- state.toggles.appMenus && userData?.appAccess?.length && /* @__PURE__ */ jsx(Box, { className: "profile headerMenu", children: /* @__PURE__ */ jsx(AppMenus, { menuItems: userData?.appAccess, setInitialState: setState }) })
5398
+ state.toggles.appMenus && userData?.appAccess?.length && /* @__PURE__ */ jsx(Box, { className: "profile headerMenu", sx: { width: "400px !important", p: 1 }, children: /* @__PURE__ */ jsx(
5399
+ AppMenus,
5400
+ {
5401
+ t,
5402
+ appName: userData?.appName,
5403
+ menuItems: userData?.appAccess,
5404
+ setInitialState: setState
5405
+ }
5406
+ ) })
5398
5407
  ] }),
5399
5408
  isNotification && /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
5400
5409
  /* @__PURE__ */ jsx(
@@ -5408,7 +5417,15 @@ const Header = ({
5408
5417
  children: /* @__PURE__ */ jsx(Badge, { badgeContent: userData?.notificationCount, color: "error", className: "notification_icon_error", children: /* @__PURE__ */ jsx(SVG.Bell, {}) })
5409
5418
  }
5410
5419
  ),
5411
- state.toggles.notification && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Notification, { initialState: state, userData, setInitialState: setState }) })
5420
+ state.toggles.notification && /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
5421
+ Notification,
5422
+ {
5423
+ t,
5424
+ initialState: state,
5425
+ notificationAccessApps,
5426
+ setInitialState: setState
5427
+ }
5428
+ ) })
5412
5429
  ] }),
5413
5430
  Boolean(interFaceLangList?.length) && /* @__PURE__ */ jsxs(Box, { sx: { position: "relative" }, children: [
5414
5431
  /* @__PURE__ */ jsxs(
@@ -5432,6 +5449,7 @@ const Header = ({
5432
5449
  state.toggles.lang && /* @__PURE__ */ jsx(
5433
5450
  Language,
5434
5451
  {
5452
+ t,
5435
5453
  setInitialState: setState,
5436
5454
  interFaceLangList,
5437
5455
  userData,
@@ -5444,18 +5462,19 @@ const Header = ({
5444
5462
  Boolean(userData?.fullName) && /* @__PURE__ */ jsx(
5445
5463
  UserProfile,
5446
5464
  {
5465
+ t,
5447
5466
  userData,
5448
5467
  initialState: state,
5449
5468
  setInitialState: setState,
5450
5469
  extraMenuOptions
5451
5470
  }
5452
5471
  ),
5453
- isMobile && isMenu && /* @__PURE__ */ jsx(
5472
+ isMobile && isMenu && state.isMenuIconsShow && /* @__PURE__ */ jsx(
5454
5473
  IconButton,
5455
5474
  {
5456
5475
  className: "hamburger-icon-btn",
5457
5476
  onClick: () => setState((p) => ({ ...p, toggles: { ...p.toggles, dropDownMenu: !p.toggles.dropDownMenu } })),
5458
- children: /* @__PURE__ */ jsx(MenuIcon, { style: { width: "20px", height: "20px" } })
5477
+ children: /* @__PURE__ */ jsx(MenuIcon, { style: { width: "1em", height: "1em" } })
5459
5478
  }
5460
5479
  )
5461
5480
  ] })
@@ -5496,13 +5515,20 @@ const App = () => {
5496
5515
  return /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(
5497
5516
  Header,
5498
5517
  {
5499
- isDesktopCollapsed: true,
5500
5518
  isAccessAppMenu: true,
5501
5519
  frontCustomComponent: "sdf",
5502
5520
  centerCustomComponents: "center",
5503
5521
  endCustomComponents: "end",
5504
5522
  updateInterfaceLang: () => {
5505
5523
  },
5524
+ notificationAccessApps: [
5525
+ {
5526
+ name: "all"
5527
+ },
5528
+ {
5529
+ name: "tools"
5530
+ }
5531
+ ],
5506
5532
  userData: {
5507
5533
  userprofile: "",
5508
5534
  email: "sanskar.sahu@digimonk.in",
@@ -5513,38 +5539,45 @@ const App = () => {
5513
5539
  {
5514
5540
  name: "Tools",
5515
5541
  icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/tools.svg",
5516
- link: "https://tools.6seconds.org"
5542
+ link: "https://tools.6seconds.org",
5543
+ type: "app"
5517
5544
  },
5518
5545
  {
5519
5546
  name: "Cards Home",
5520
5547
  icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
5521
- link: "https://cards.6seconds.org"
5548
+ link: "https://cards.6seconds.org",
5549
+ type: "app"
5522
5550
  },
5523
5551
  {
5524
5552
  name: "Settings",
5525
5553
  icon: "/app-icons/Settings.svg",
5526
- link: "/settings.svg"
5554
+ link: "/settings.svg",
5555
+ type: "app"
5527
5556
  },
5528
5557
  {
5529
5558
  name: "Translations",
5530
5559
  icon: "/translate.svg",
5531
- link: "/translations"
5560
+ link: "/translations",
5561
+ type: "app"
5532
5562
  }
5533
5563
  ],
5534
5564
  notificationCount: 10
5535
5565
  },
5536
5566
  interFaceLangList: [
5537
5567
  {
5568
+ id: 1,
5538
5569
  label: "Chinese",
5539
5570
  value: 4,
5540
5571
  flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1736568764.png"
5541
5572
  },
5542
5573
  {
5574
+ id: 1,
5543
5575
  label: "English (US)",
5544
5576
  value: 2,
5545
5577
  flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277288.png"
5546
5578
  },
5547
5579
  {
5580
+ id: 1,
5548
5581
  label: "Spanish",
5549
5582
  value: 3,
5550
5583
  flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
@@ -5552,6 +5585,7 @@ const App = () => {
5552
5585
  ],
5553
5586
  selectedInterFaceLang: {
5554
5587
  label: "Spanish",
5588
+ id: 1,
5555
5589
  value: 3,
5556
5590
  flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
5557
5591
  },
@@ -5612,7 +5646,7 @@ const App = () => {
5612
5646
  isChangePassword: true,
5613
5647
  isEditProfile: true
5614
5648
  },
5615
- t: () => ""
5649
+ t: (s) => s
5616
5650
  }
5617
5651
  ) });
5618
5652
  };