sixseconds-modules 1.4.8 → 1.5.0
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/README.md +50 -50
- package/dist/components/header/type.d.ts +66 -64
- package/dist/components/header/userProfile.d.ts +2 -2
- package/dist/index.cjs.js +11 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +11 -28
- package/dist/index.es.js.map +1 -1
- package/dist/types/custom.d.ts +25 -23
- package/dist/types/htmlElements.d.ts +7 -5
- package/dist/types/index.d.ts +4 -4
- package/dist/types/reactTypes.d.ts +5 -3
- package/dist/vite-env.d.ts +2 -2
- package/package.json +97 -95
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");\r\n\r\n:root {\r\n --background: #ffffff;\r\n --foreground: #171717;\r\n}\r\n\r\n@media (prefers-color-scheme: dark) {\r\n :root {\r\n --background: #0a0a0a;\r\n --foreground: #ededed;\r\n }\r\n}\r\n\r\nbody {\r\n font-family: "Inter", serif !important;\r\n margin: 0;\r\n padding: 0;\r\n color: var(--foreground);\r\n background: var(--background);\r\n}\r\n\r\nblockquote,\r\ndl,\r\ndd,\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\nhr,\r\nfigure,\r\np,\r\npre {\r\n font-family: "Inter", serif !important;\r\n}\r\n\r\n.MuiTypography-root {\r\n font-family: "Inter", serif !important;\r\n}\r\n\r\n.search input {\r\n padding: 8.5px 6px 8.5px 33px !important;\r\n}\r\n\r\n.MuiAutocomplete-root .MuiOutlinedInput-root {\r\n padding: 2px 10px !important;\r\n}\r\n\r\ninput {\r\n height: 36px;\r\n}\r\n\r\n.activeUrl {\r\n color: #007fc0;\r\n}\r\n\r\n/* .login_page:has(.MuiContainer-root) {\r\n width: 100% !important;\r\n padding: 0;\r\n background-color: pink;\r\n} */\r\n\r\n.MuiAutocomplete-input {\r\n padding: 4.5px !important;\r\n}\r\n\r\n.upload_div {\r\n cursor: pointer;\r\n width: 125px;\r\n}\r\n\r\n.MuiPaper-root.MuiPaper-elevation.MuiPaper-rounded {\r\n width: 100% !important;\r\n}\r\n\r\n.upload_button {\r\n background-color: #007fc0;\r\n color: #fff;\r\n border-radius: 5px;\r\n white-space: nowrap;\r\n padding: 7px 10px;\r\n cursor: pointer;\r\n width: 100%;\r\n}\r\n\r\n.upload_div input {\r\n position: absolute;\r\n left: 0;\r\n width: 100%;\r\n opacity: 0;\r\n}\r\n\r\n.upload_div .delete_btn {\r\n background-color: #ddd;\r\n border: 1px solid #ccc;\r\n margin-top: 10px;\r\n border-radius: 5px;\r\n text-align: center;\r\n width: 100%;\r\n}\r\n\r\nbody {\r\n background-color: #f6f6f6;\r\n}\r\n\r\n.login_page:has body {\r\n background-color: #f6f6f6 !important;\r\n}\r\n\r\n.MuiTableHead-root,\r\n.MuiTableCell-root,\r\n.MuiInputBase-formControl {\r\n font-family: "Inter", serif !important;\r\n}\r\n\r\ninput:-webkit-autofill {\r\n padding: 0 10px;\r\n}\r\n\r\n.MuiPagination-root.MuiPagination-outlined {\r\n /* margin-top: 10px; */\r\n display: flex;\r\n justify-content: end;\r\n}\r\n\r\n.pagination {\r\n margin-top: 10px;\r\n}\r\n\r\n.tox-statusbar {\r\n display: none !important;\r\n}\r\n\r\n.tox-tinymce {\r\n border: 1px solid #0000003b !important;\r\n}\r\n\r\n.manage_payment tr th:nth-child(2) {\r\n text-align: center !important;\r\n}\r\n\r\n.manage_payment tr td:nth-child(2) {\r\n text-align: center !important;\r\n}\r\n\r\n.manage_payment tr td:nth-child(2) div {\r\n display: flex;\r\n justify-content: center;\r\n}\r\n\r\n.MuiTableContainer-root::-webkit-scrollbar {\r\n width: 5px;\r\n height: 8px;\r\n}\r\n\r\n.main.login_page .loginBody {\r\n width: 800px !important;\r\n}\r\n\r\n.main_list_Menu {\r\n display: flex;\r\n}\r\n\r\n.main_list_Menu li {\r\n padding: 0.5rem 0.5rem;\r\n}\r\n\r\n.main_list_Menu li a {\r\n padding: 0 0.25rem;\r\n font-weight: 600;\r\n font-size: 14px;\r\n}\r\n\r\n.main_list_Menu .menu-item {\r\n position: relative;\r\n padding: 15px;\r\n}\r\n\r\n.main_list_Menu .menu-link {\r\n text-decoration: none;\r\n color: #2c2e35;\r\n transition: color 0.3s ease;\r\n}\r\n\r\n.main_list_Menu .menu-link:hover {\r\n color: #2ea3f2;\r\n}\r\n\r\n/* Submenu (Dropdown) */\r\n\r\n.main_list_Menu .submenuData {\r\n position: absolute;\r\n top: 85%;\r\n left: 0;\r\n background: white;\r\n border-top: 3px solid #2ea3f2;\r\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);\r\n display: none;\r\n min-width: 200px;\r\n z-index: 10;\r\n}\r\n\r\n.main_list_Menu .submenuData li {\r\n list-style: none;\r\n}\r\n\r\n.main_list_Menu .submenu-link {\r\n display: block;\r\n padding: 1px 15px;\r\n text-decoration: none;\r\n color: rgba(0, 0, 0, 0.7);\r\n font-weight: 600;\r\n}\r\n\r\n.main_list_Menu .submenu-link:hover {\r\n background: #f1f1f1;\r\n}\r\n\r\n/* Show dropdown on hover */\r\n\r\n.main_list_Menu .menu-item:hover .submenuData {\r\n display: block;\r\n}\r\n\r\n.smallDeviceMenu {\r\n display: none;\r\n width: 100%;\r\n left: 0;\r\n top: 72px;\r\n background-color: #fff;\r\n position: fixed;\r\n overflow-y: auto;\r\n height: 95vh;\r\n}\r\n\r\n.smallDeviceMenu a.bg_main_menu {\r\n display: block;\r\n}\r\n\r\n.layout_mobile_menu {\r\n padding-bottom: 12px;\r\n padding-inline: 0;\r\n height: 95vh;\r\n overflow-y: auto;\r\n padding-top: 8px;\r\n}\r\n\r\n.smallDeviceMenu a {\r\n background-color: rgba(0, 0, 0, 0.03);\r\n font-size: 15px;\r\n font-weight: 600;\r\n color: #2c2e35;\r\n margin-bottom: 4px;\r\n padding: 12px 8px;\r\n}\r\n\r\n.smallDeviceMenu .submenu_child {\r\n padding-left: 15px;\r\n min-width: 90%;\r\n max-width: 90%;\r\n top: 57px;\r\n margin-top: 8px;\r\n background-color: #fff;\r\n color: #000;\r\n margin-inline: auto;\r\n}\r\n\r\n.smallDeviceMenu ul li .submenu_child_link {\r\n padding: 12px 20px;\r\n}\r\n\r\n.smallDeviceMenu ul li a {\r\n background-color: transparent;\r\n color: #000000b3;\r\n}\r\n\r\n.smallDeviceMenu ul {\r\n padding-left: 15px;\r\n}\r\n\r\n.desktopMenu {\r\n display: flex;\r\n}\r\n\r\n.button_hamburger {\r\n display: none;\r\n position: absolute;\r\n right: 20px;\r\n top: 25px;\r\n z-index: 9;\r\n}\r\n\r\n.tox-editor-header {\r\n background-color: transparent;\r\n}\r\n\r\n.hamburger-icon-btn {\r\n padding: 8px;\r\n color: rgba(0, 0, 0, 0.54);\r\n}\r\n\r\n.desktopMenu .menu-item .menu-link {\r\n font-size: 15px;\r\n}\r\n\r\n.smallDeviceMenu {\r\n padding-inline: 20px;\r\n}\r\n\r\n::-webkit-scrollbar {\r\n width: 10px;\r\n background-color: #aaa;\r\n border-radius: 10px;\r\n}\r\n\r\n/* Track */\r\n\r\n::-webkit-scrollbar-track {\r\n box-shadow: inset 0 0 5px grey;\r\n border-radius: 10px;\r\n}\r\n\r\n/* Handle */\r\n\r\n::-webkit-scrollbar-thumb {\r\n background: #717070;\r\n border-radius: 10px;\r\n}\r\n\r\n/* Handle on hover */\r\n\r\n::-webkit-scrollbar-thumb:hover {\r\n background: #b30000;\r\n}\r\n\r\n@media screen and (max-width: 600px) and (min-width: 320px) {\r\n .notification_icon_error .MuiBadge-badge {\r\n font-size: 11px;\r\n padding: 0 3px;\r\n min-width: 16px;\r\n right: 5px;\r\n }\r\n\r\n .submenu nav {\r\n padding: 0 !important;\r\n }\r\n\r\n .MuiPagination-root.MuiPagination-outlined {\r\n /* margin-top: 10px; */\r\n display: flex;\r\n justify-content: center;\r\n margin-left: 0;\r\n }\r\n\r\n .toogle_btn_menu {\r\n position: absolute;\r\n right: 20px;\r\n top: 18px;\r\n z-index: 99;\r\n }\r\n\r\n .right_header_icons {\r\n padding-right: 25px;\r\n }\r\n\r\n .button_hamburger {\r\n display: block;\r\n }\r\n\r\n .desktopMenu {\r\n display: none;\r\n }\r\n\r\n .smallDeviceMenu {\r\n display: block;\r\n width: 100%;\r\n position: fixed;\r\n left: 0;\r\n background: #fff;\r\n top: 69px;\r\n }\r\n\r\n .main.login_page .loginBody {\r\n width: 400px !important;\r\n }\r\n\r\n .submenu {\r\n width: 100%;\r\n max-width: 100% !important;\r\n }\r\n\r\n .sideBar {\r\n width: 300px !important;\r\n background-color: #fff;\r\n z-index: 99;\r\n }\r\n\r\n .sideMenu {\r\n width: 300px;\r\n background-color: #fff;\r\n }\r\n\r\n .logo_header {\r\n opacity: 1;\r\n }\r\n\r\n .profile.headerMenu {\r\n min-width: 320px;\r\n width: auto !important;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 1024px) and (min-width: 600px) {\r\n .toogle_btn_menu {\r\n position: absolute;\r\n right: 20px;\r\n top: 18px;\r\n }\r\n\r\n .right_header_icons {\r\n padding-right: 25px;\r\n }\r\n\r\n .button_hamburger {\r\n display: block;\r\n }\r\n\r\n .desktopMenu {\r\n display: none;\r\n }\r\n\r\n .smallDeviceMenu {\r\n display: block;\r\n }\r\n\r\n .main.login_page .loginBody {\r\n width: 500px !important;\r\n }\r\n\r\n .banner {\r\n margin-left: 0 !important;\r\n }\r\n\r\n .submenu {\r\n width: 100%;\r\n max-width: 100% !important;\r\n }\r\n\r\n .sideBar {\r\n width: 300px !important;\r\n background-color: #fff;\r\n z-index: 99;\r\n }\r\n\r\n .sideMenu {\r\n width: 300px;\r\n background-color: #fff;\r\n }\r\n\r\n .logo_header {\r\n opacity: 1;\r\n }\r\n\r\n .profile.headerMenu {\r\n min-width: 320px;\r\n width: auto !important;\r\n }\r\n}\r\n\r\n@media screen and (max-width: 1380px) and (min-width: 1024px) {\r\n .right_header_icons {\r\n padding-right: 25px;\r\n }\r\n\r\n .button_hamburger {\r\n display: block;\r\n }\r\n\r\n .desktopMenu {\r\n display: none;\r\n }\r\n\r\n .smallDeviceMenu {\r\n display: block;\r\n width: 100%;\r\n position: fixed;\r\n left: 0;\r\n background: #fff;\r\n top: 72px;\r\n }\r\n\r\n .button_hamburger {\r\n display: block;\r\n }\r\n\r\n .right_header_icons {\r\n padding-right: 25px;\r\n }\r\n}'));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
@@ -130,7 +130,7 @@ function createEnv(opts) {
|
|
|
130
130
|
}
|
|
131
131
|
return runtimeEnv;
|
|
132
132
|
}
|
|
133
|
-
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "
|
|
133
|
+
const __vite_import_meta_env__ = { "BASE_URL": "/", "DEV": false, "MODE": "production", "PROD": true, "SSR": false };
|
|
134
134
|
const env = createEnv({
|
|
135
135
|
runtimeEnv: __vite_import_meta_env__
|
|
136
136
|
});
|
|
@@ -4273,7 +4273,6 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
|
|
|
4273
4273
|
sx: {
|
|
4274
4274
|
display: "flex",
|
|
4275
4275
|
alignItems: "center",
|
|
4276
|
-
ml: { md: 1.5, lg: 1.5, xs: "5px" },
|
|
4277
4276
|
cursor: "pointer",
|
|
4278
4277
|
width: "auto",
|
|
4279
4278
|
height: "auto"
|
|
@@ -4299,7 +4298,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
|
|
|
4299
4298
|
},
|
|
4300
4299
|
children: [
|
|
4301
4300
|
/* @__PURE__ */ jsx(Typography, { variant: "h4", sx: { fontSize: "16px", fontWeight: "500", m: 0 }, children: userData?.fullName }),
|
|
4302
|
-
/* @__PURE__ */ jsxs(Typography, { component: "span", sx: { m: 0, fontSize: "14px", color: "#666666" }, children: [
|
|
4301
|
+
Boolean(userData?.role) && /* @__PURE__ */ jsxs(Typography, { component: "span", sx: { m: 0, fontSize: "14px", color: "#666666" }, children: [
|
|
4303
4302
|
truncateValUtil(userData?.email),
|
|
4304
4303
|
" ",
|
|
4305
4304
|
/* @__PURE__ */ jsx("br", {}),
|
|
@@ -4320,7 +4319,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
|
|
|
4320
4319
|
alignItems: "center",
|
|
4321
4320
|
component: Link,
|
|
4322
4321
|
href: SSO_ROUTES(userData.appName).viewProfile,
|
|
4323
|
-
target: "_blank",
|
|
4322
|
+
target: userData.appName === APP_NAMES.sso ? "_self" : "_blank",
|
|
4324
4323
|
sx: { color: "#1A1919", cursor: "pointer", textDecoration: "none" },
|
|
4325
4324
|
children: [
|
|
4326
4325
|
/* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
|
|
@@ -4347,7 +4346,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
|
|
|
4347
4346
|
alignItems: "center",
|
|
4348
4347
|
component: Link,
|
|
4349
4348
|
href: SSO_ROUTES(userData.appName).editProfile,
|
|
4350
|
-
target: "_blank",
|
|
4349
|
+
target: userData.appName === APP_NAMES.sso ? "_self" : "_blank",
|
|
4351
4350
|
sx: { color: "#1A1919", textDecoration: "none" },
|
|
4352
4351
|
children: [
|
|
4353
4352
|
/* @__PURE__ */ jsx(SVG.UserEdit, {}),
|
|
@@ -4374,7 +4373,7 @@ const UserProfile = ({ userData, setInitialState, extraMenuOptions }) => {
|
|
|
4374
4373
|
alignItems: "center",
|
|
4375
4374
|
component: Link,
|
|
4376
4375
|
href: SSO_ROUTES(userData.appName).changePasswordDialog,
|
|
4377
|
-
target: "_blank",
|
|
4376
|
+
target: userData.appName === APP_NAMES.sso ? "_self" : "_blank",
|
|
4378
4377
|
sx: { cursor: "pointer", textDecoration: "none" },
|
|
4379
4378
|
children: [
|
|
4380
4379
|
/* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
|
|
@@ -4511,10 +4510,6 @@ const DropdownMenu = ({ headerMenuArray, initialState }) => {
|
|
|
4511
4510
|
Boolean(items.children.length) && /* @__PURE__ */ jsx("ul", { className: "submenu_child", children: items.children?.map((items2, index2) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx("a", { href: items2.value || "", target: items2.target, className: "submenu_child_link ", children: items2.label }) }, index2) })) })
|
|
4512
4511
|
] })) }) }) });
|
|
4513
4512
|
};
|
|
4514
|
-
const Us = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAA1CAMAAACA7r40AAAA/FBMVEWyIjNPN2Y8O27///8/PnBOTXxycpY9PG9RUX5HR3dIR3dLSnlPTny4uMpWVYFFRHVwb5VlZIx7e52DgqOIh6aIiKc+PXBJSHhTUn9hYYqyIjReXohgX4lYV4Lr6/C2tcjPdYB0c5haWYRYV4Nra5GJiac+PW/FxdTHYG1RUH3eoajltbtOTXvty89BQHHg3+hSUX6GYoC6usyVlbFycZa7u8yUk6+sq8FCQXO0tMe1tMhiYYpMS3pDQnNvbpTExNN8fJ7GxdTGxtWCgqLHx9WXlrLXi5SYl7Kiobrg4Oiiorrn5u3n5+2jo7ukpLvw8PTx8fX09Pf19firqsC5sMNxAAAAAnRSTlPQ9qN1Xw4AAAGlSURBVHhe7ZXFiiRBFEVjznvp5W7t7j3u7m7//y8D1dAMGbnI4jW5KOpsgjibCxFcrrtVEmcBGAGQJHB98d3EgEM/ygsg/nwRAy15rxQ4Ywh3JQX49hVgKA/Ad1hDkkGTMSQJjGkOEmo133FmwAEQyl8FfSj3gFgkzjsQAw6AZ796AP2fGcDBS8/ZQ7ZQlJ2d+bEFqp6zhuh9Cf9/pDtKkTs04KBTD4jgx3eICOodoshz1p7M6UUAUQ+Ap2Pf2UMI5UBBX18/Ut7ZQ84Jui10QKsbcA7dt77jxIBDt+sxMNzrD4HL+rZS4Iw9iTZkCjRFmsBUHkcUOGMI7dkpKezuQsrprM3zR76zN572ekdBX623gaONJ0d5B5sGHAA1+QTwRQJgX2Q/7+w9GZGlDZKERpoxgkbDc8s0WscGSo+WGMiNVlgwWuFNjdafPsDe7wzg3RvP2UNCFGVtbX6EoOo7PhgoO1rGnswHiquB4mqgfIcxpBTGkNslMf2JVMAShRxXgJtUwBKFbFbAqicL4U4qYNWThXCHFbDqyUK4swpY9WQhXBX8A2rVjaQ6HWXmAAAAAElFTkSuQmCC";
|
|
4515
|
-
const IMAGES = {
|
|
4516
|
-
Us
|
|
4517
|
-
};
|
|
4518
4513
|
const DangerDialog = ({
|
|
4519
4514
|
open,
|
|
4520
4515
|
setInitialState,
|
|
@@ -5370,7 +5365,7 @@ const Header = ({
|
|
|
5370
5365
|
}, [isMenu]);
|
|
5371
5366
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
5372
5367
|
/* @__PURE__ */ jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxs(Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
5373
|
-
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center" }, children: [
|
|
5368
|
+
/* @__PURE__ */ jsxs(Box, { sx: { display: "flex !important", alignItems: "center !important" }, children: [
|
|
5374
5369
|
logo,
|
|
5375
5370
|
frontCustomComponent
|
|
5376
5371
|
] }),
|
|
@@ -5385,17 +5380,15 @@ const Header = ({
|
|
|
5385
5380
|
margin: { md: "10px", lg: "10px", xs: "10px 0" },
|
|
5386
5381
|
position: "relative"
|
|
5387
5382
|
},
|
|
5388
|
-
children: /* @__PURE__ */ jsxs(Box, { className: "notification", children: [
|
|
5383
|
+
children: /* @__PURE__ */ jsxs(Box, { className: "notification", sx: { display: "flex", alignItems: "center", gap: 1 }, children: [
|
|
5389
5384
|
endCustomComponents,
|
|
5390
5385
|
isAccessAppMenu && /* @__PURE__ */ jsxs(Box, { children: [
|
|
5391
5386
|
/* @__PURE__ */ jsx(
|
|
5392
5387
|
Box,
|
|
5393
5388
|
{
|
|
5394
5389
|
sx: {
|
|
5395
|
-
mr: { md: 2, lg: 2, xs: "0px" },
|
|
5396
5390
|
display: "flex",
|
|
5397
5391
|
alignItems: "center",
|
|
5398
|
-
ml: { md: 1.5, lg: 1.5, xs: "5px" },
|
|
5399
5392
|
cursor: "pointer",
|
|
5400
5393
|
width: "auto",
|
|
5401
5394
|
height: "auto",
|
|
@@ -5417,12 +5410,7 @@ const Header = ({
|
|
|
5417
5410
|
Typography,
|
|
5418
5411
|
{
|
|
5419
5412
|
sx: {
|
|
5420
|
-
cursor: "pointer"
|
|
5421
|
-
margin: {
|
|
5422
|
-
md: "10px",
|
|
5423
|
-
lg: "10px",
|
|
5424
|
-
xs: "10px 3px!important"
|
|
5425
|
-
}
|
|
5413
|
+
cursor: "pointer"
|
|
5426
5414
|
},
|
|
5427
5415
|
"data-toggle-name": "notification",
|
|
5428
5416
|
onClick: (e) => handleOpenUtil(e, setState),
|
|
@@ -5442,15 +5430,10 @@ const Header = ({
|
|
|
5442
5430
|
gap: "5px",
|
|
5443
5431
|
alignItems: "center",
|
|
5444
5432
|
color: "#777777",
|
|
5445
|
-
cursor: "pointer"
|
|
5446
|
-
margin: {
|
|
5447
|
-
md: "10px",
|
|
5448
|
-
lg: "10px",
|
|
5449
|
-
xs: "10px 3px!important"
|
|
5450
|
-
}
|
|
5433
|
+
cursor: "pointer"
|
|
5451
5434
|
},
|
|
5452
5435
|
children: [
|
|
5453
|
-
/* @__PURE__ */ jsx("img", { width: 40, height: 30, alt: "lang", src: selectedInterFaceLang?.flag
|
|
5436
|
+
/* @__PURE__ */ jsx("img", { width: 40, height: 30, alt: "lang", src: selectedInterFaceLang?.flag }),
|
|
5454
5437
|
/* @__PURE__ */ jsx(Box, { sx: { margin: "2px 0px 0px 2px" }, children: /* @__PURE__ */ jsx(SVG.Dawn, {}) })
|
|
5455
5438
|
]
|
|
5456
5439
|
}
|