sixseconds-modules 1.6.195 → 2.0.2

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
@@ -6,11 +6,12 @@ import axios from "axios";
6
6
  import Cookies from "js-cookie";
7
7
  import createCache from "@emotion/cache";
8
8
  import { CacheProvider } from "@emotion/react";
9
- import { Box, Typography, ThemeProvider, createTheme, Dialog, Stack as Stack$1, Button as Button$1, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Tooltip, Container, Badge, FormLabel, TextField, InputAdornment, styled as styled$1 } from "@mui/material";
9
+ import { createTheme, ThemeProvider, styled } from "@mui/material/styles";
10
+ import { createRoot } from "react-dom/client";
10
11
  import MenuIcon from "@mui/icons-material/Menu";
12
+ import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Tooltip, Container, Badge, FormLabel, TextField, InputAdornment, styled as styled$1 } from "@mui/material";
11
13
  import CloseIcon from "@mui/icons-material/Close";
12
14
  import toast from "react-hot-toast";
13
- import { styled } from "@mui/material/styles";
14
15
  import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
15
16
  import KeyboardArrowDownIcon from "@mui/icons-material/KeyboardArrowDown";
16
17
  import LanguageIcon from "@mui/icons-material/Language";
@@ -6221,7 +6222,7 @@ ZodEnum.create;
6221
6222
  ZodPromise.create;
6222
6223
  ZodOptional.create;
6223
6224
  ZodNullable.create;
6224
- 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_ENV": "prod", "VITE_MODULES_EVENTS_FRONTEND_BASE_URL": "https://events.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" };
6225
+ 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" };
6225
6226
  const env = createEnv({
6226
6227
  client: {
6227
6228
  VITE_MODULES_ENV: stringType()
@@ -12854,27 +12855,72 @@ const IMAGES = {
12854
12855
  Us,
12855
12856
  DefaultLang
12856
12857
  };
12857
- const isolatedTheme = createTheme({
12858
- typography: {
12859
- fontFamily: "'Inter', sans-serif"
12860
- }
12861
- });
12862
- function createEmotionCache() {
12863
- const isBrowser = typeof document !== "undefined";
12864
- if (!isBrowser) {
12865
- return createCache({ key: "sixseconds" });
12866
- }
12867
- const metaTag = document.querySelector('meta[name="sixseconds-insertion-point"]');
12868
- const insertionPoint = metaTag || void 0;
12869
- return createCache({
12870
- key: "sixseconds",
12871
- insertionPoint,
12872
- prepend: !insertionPoint
12873
- });
12874
- }
12875
- function MuiProvider({ children }) {
12876
- const cacheRef = useRef(createEmotionCache());
12877
- return /* @__PURE__ */ jsx(CacheProvider, { value: cacheRef.current, children: /* @__PURE__ */ jsx(ThemeProvider, { theme: isolatedTheme, children }) });
12858
+ const styleText = '@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");\n\n/* ==========================================================================\n Style isolation — keep the header looking the same in every host app.\n\n Two layers work together (see providers/shadowIsland.tsx):\n 1. `:host` — the Shadow DOM boundary reset. Inherited properties\n (font, color, line-height, letter-spacing, text-align, …) are the\n only things that cross a shadow boundary, so we neutralise them once\n here and re-establish our own baseline. Host author rules cannot\n reach past the boundary at all.\n 2. `.sixseconds-header-root` — a defensive reset for the light DOM. It\n applies when this stylesheet is used outside the shadow root (e.g. a\n consumer imports `sixseconds-modules/styles`, or during the brief\n pre-mount window), so leaked host rules for bare tags (button, a, ul,\n li, *, resets) get reverted before our styles apply.\n\n IMPORTANT — specificity/order contract:\n `.sixseconds-header-root, .sixseconds-header-root *` is specificity\n (0,1,0), identical to an Emotion-generated class. This reset is declared\n ABOVE all component rules, so at equal specificity our own MUI/Emotion\n styles (injected/declared later) always win. Never raise this reset to\n an element-qualified selector or add `!important` — that would beat the\n header\'s own styling. `all: revert` also intentionally leaves custom\n properties, `direction` and `unicode-bidi` untouched, so RTL keeps\n working.\n ========================================================================== */\n\n:host {\n /* `!important` is load-bearing: for NORMAL declarations the outer (document)\n tree wins the shadow cascade, so a host page rule that happens to match our\n host element (e.g. `div { font-family: … }`) would otherwise beat this reset\n and re-leak inherited props across the boundary. `!important` makes the inner\n (shadow) tree win. `all` intentionally leaves `direction`/`unicode-bidi` and\n custom properties untouched, so RTL context still inherits (the header has\n `[dir=\'rtl\']` handling) — this is desired. Our isolated MUI theme does not\n enable CSS variables, so no `--mui-*` host var is consumed inside the tree. */\n all: initial !important;\n box-sizing: border-box !important;\n display: block !important;\n font-family: "Inter", sans-serif !important;\n color: #1a1c1e !important;\n line-height: 1.5 !important;\n text-align: start !important;\n -webkit-font-smoothing: antialiased !important;\n}\n\n.sixseconds-header-root,\n.sixseconds-header-root *,\n.sixseconds-header-root *::before,\n.sixseconds-header-root *::after {\n all: revert;\n box-sizing: border-box;\n}\n\n.sixseconds-header-root blockquote,\n.sixseconds-header-root dl,\n.sixseconds-header-root dd,\n.sixseconds-header-root h1,\n.sixseconds-header-root h2,\n.sixseconds-header-root h3,\n.sixseconds-header-root h4,\n.sixseconds-header-root h5,\n.sixseconds-header-root h6,\n.sixseconds-header-root hr,\n.sixseconds-header-root figure,\n.sixseconds-header-root p,\n.sixseconds-header-root pre,\n.sixseconds-header-root span,\n.sixseconds-header-root a,\n.sixseconds-header-root div,\n.sixseconds-header-root li,\n.sixseconds-header-root button {\n font-family: "Inter", sans-serif !important;\n}\n\n.sixseconds-header-main-list-menu {\n display: flex;\n}\n\n.sixseconds-header-main-list-menu li {\n padding: 0.5rem 0.5rem;\n}\n\n.sixseconds-header-main-list-menu li a {\n padding: 0 0.25rem;\n font-weight: 500;\n font-size: 12px;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item {\n position: relative;\n padding: 0 16px;\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-link {\n text-decoration: none;\n color: #2a2a2a;\n /* Closer to 6seconds */\n font-weight: 500;\n font-size: 15px;\n padding: 8px 4px;\n transition: color 0.2s ease;\n font-family: "Inter", sans-serif;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-link:hover {\n color: #0073b1;\n}\n\n/* Submenu (Dropdown) */\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-data {\n position: absolute;\n top: 150%;\n left: 0;\n background: white;\n border: 1px solid #e2e8f0;\n border-top: 3px solid #0073b1;\n box-shadow:\n 0px 12px 48px rgba(0, 0, 0, 0.12),\n 0 4px 16px rgba(0, 0, 0, 0.08);\n /* Even more premium shadow */\n display: block;\n opacity: 0;\n visibility: hidden;\n transform: translateY(12px);\n width: 200px;\n z-index: 1000;\n border-radius: 4px;\n /* More angular per 6seconds style */\n padding: 8px 0;\n transition:\n opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),\n transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),\n visibility 0.25s;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-data li {\n list-style: none;\n padding: 0;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-link {\n display: block;\n padding: 12px 28px;\n text-decoration: none;\n color: #2a2a2a;\n /* Darker grey */\n font-weight: 400;\n font-size: 14.5px;\n line-height: 1.4;\n white-space: normal;\n transition: all 0.2s ease;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-link:hover {\n background: #f0f7fb;\n color: #0073b1;\n padding-left: 32px;\n /* Slight nudge */\n}\n\n/* Caret rotation on hover */\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-desktop-caret {\n transform: rotate(180deg);\n}\n\n/* Show dropdown on hover */\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-submenu-data {\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n}\n\n.sixseconds-header-small-device-menu {\n display: none;\n width: 100%;\n left: 0;\n top: 64px;\n background-color: #fff;\n position: fixed;\n overflow-y: auto;\n height: 95vh;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);\n}\n\n.sixseconds-header-small-device-menu a.sixseconds-header-bg-main-menu {\n display: block;\n text-decoration: none;\n}\n\n.sixseconds-header-submenu-child li {\n padding: 0.5rem 0;\n}\n\n.sixseconds-header-submenu-child li a {\n text-decoration: none;\n}\n\n.sixseconds-header-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.sixseconds-header-small-device-menu a {\n background-color: transparent;\n font-size: 16px;\n /* Slightly larger */\n font-weight: 600;\n /* Bolder for parent items */\n color: #1a1c1e;\n margin-bottom: 4px;\n padding: 16px 20px;\n border-bottom: 1px solid #f1f3f4;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.sixseconds-header-small-device-menu .sixseconds-header-submenu-child {\n padding-left: 0px;\n min-width: 100%;\n max-width: 100%;\n margin-top: 0;\n background-color: #fbfbfc;\n /* Slightly different background for sub-items */\n color: #1a1c1e;\n}\n\n.sixseconds-header-small-device-menu ul li .sixseconds-header-submenu-child-link {\n padding: 12px 32px;\n /* Indent more */\n font-weight: 400;\n /* Regular weight for sub-links */\n font-size: 14px;\n}\n\n.sixseconds-header-small-device-menu ul li a {\n background-color: transparent;\n color: #4a4d50;\n}\n\n.sixseconds-header-small-device-menu ul {\n padding-left: 15px;\n}\n\n.sixseconds-header-desktop-menu {\n display: flex;\n}\n\n.sixseconds-header-button-hamburger {\n display: none;\n position: absolute;\n right: 20px;\n top: 18px;\n z-index: 9;\n}\n\n.sixseconds-header-root .tox-editor-header {\n background-color: transparent;\n}\n\n.sixseconds-header-hamburger-icon-btn {\n padding: 8px;\n color: #5f6368;\n}\n\n.sixseconds-header-desktop-menu .sixseconds-header-menu-item .sixseconds-header-menu-link {\n font-size: 14px;\n font-weight: 500;\n}\n\n.sixseconds-header-small-device-menu {\n padding-inline: 20px;\n}\n\n@media screen and (max-width: 600px) and (min-width: 320px) {\n .sixseconds-header-notification-icon-error .MuiBadge-badge {\n font-size: 10px;\n padding: 0 4px;\n min-width: 16px;\n right: 5px;\n background-color: #d32f2f;\n }\n\n .sixseconds-header-submenu nav {\n padding: 0 !important;\n }\n\n .sixseconds-header-root .MuiPagination-root.MuiPagination-outlined {\n display: flex;\n justify-content: center;\n margin-left: 0;\n }\n\n .sixseconds-header-toggle-btn-menu {\n position: absolute;\n right: 20px;\n top: 12px;\n z-index: 99;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 64px;\n }\n\n .main.sixseconds-header-login-page .sixseconds-header-login-body {\n width: 90% !important;\n }\n\n .sixseconds-header-submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sixseconds-header-sidebar {\n width: 280px !important;\n background-color: #f9fafb;\n z-index: 99;\n border-right: 1px solid #e0e0e0;\n }\n\n .sixseconds-header-sidemenu {\n width: 280px;\n background-color: #f9fafb;\n }\n\n .sixseconds-header-logo {\n opacity: 1;\n }\n\n .sixseconds-header-profile .sixseconds-header-menu {\n min-width: 280px;\n width: 100% !important;\n }\n}\n\n@media screen and (max-width: 1024px) and (min-width: 600px) {\n .sixseconds-header-toggle-btn-menu {\n position: absolute;\n right: 20px;\n top: 12px;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n }\n\n .main.sixseconds-header-login-page .sixseconds-header-login-body {\n width: 450px !important;\n }\n\n .sixseconds-header-banner {\n margin-left: 0 !important;\n }\n\n .sixseconds-header-submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sixseconds-header-sidebar {\n width: 280px !important;\n background-color: #f9fafb;\n z-index: 99;\n }\n\n .sixseconds-header-sidemenu {\n width: 280px;\n background-color: #f9fafb;\n }\n\n .sixseconds-header-logo {\n opacity: 1;\n }\n\n .sixseconds-header-profile .sixseconds-header-menu {\n min-width: 280px;\n width: 100% !important;\n }\n}\n\n@media screen and (max-width: 1380px) and (min-width: 1024px) {\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 64px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n}\n';
12859
+ const EMOTION_KEY = "sixseconds";
12860
+ const FONT_HREF = "https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap";
12861
+ const SHADOW_STYLES = styleText.replace(/@import\s+url\([^)]*\)\s*;?/gi, "");
12862
+ const ensureFontRegistered = () => {
12863
+ if (typeof document === "undefined") return;
12864
+ if (document.querySelector("link[data-sixseconds-font]")) return;
12865
+ const link = document.createElement("link");
12866
+ link.rel = "stylesheet";
12867
+ link.href = FONT_HREF;
12868
+ link.setAttribute("data-sixseconds-font", "true");
12869
+ document.head.appendChild(link);
12870
+ };
12871
+ function ShadowIsland({ children }) {
12872
+ const hostRef = useRef(null);
12873
+ const stateRef = useRef(null);
12874
+ const teardownRef = useRef(null);
12875
+ useEffect(() => {
12876
+ const host = hostRef.current;
12877
+ if (!host) return;
12878
+ if (teardownRef.current !== null) {
12879
+ clearTimeout(teardownRef.current);
12880
+ teardownRef.current = null;
12881
+ }
12882
+ if (!stateRef.current) {
12883
+ ensureFontRegistered();
12884
+ const shadow = host.shadowRoot ?? host.attachShadow({ mode: "open" });
12885
+ shadow.replaceChildren();
12886
+ const styleEl = document.createElement("style");
12887
+ styleEl.setAttribute("data-sixseconds-styles", "true");
12888
+ styleEl.textContent = SHADOW_STYLES;
12889
+ const emotionRoot = document.createElement("div");
12890
+ emotionRoot.setAttribute("data-sixseconds-emotion", "true");
12891
+ const mount = document.createElement("div");
12892
+ mount.setAttribute("data-sixseconds-mount", "true");
12893
+ shadow.append(styleEl, emotionRoot, mount);
12894
+ const cache = createCache({ key: EMOTION_KEY, container: emotionRoot, prepend: true });
12895
+ stateRef.current = { root: createRoot(mount), cache };
12896
+ }
12897
+ stateRef.current.root.render(/* @__PURE__ */ jsx(IsolatedProviders, { cache: stateRef.current.cache, children }));
12898
+ return () => {
12899
+ teardownRef.current = setTimeout(() => {
12900
+ stateRef.current?.root.unmount();
12901
+ stateRef.current = null;
12902
+ teardownRef.current = null;
12903
+ }, 0);
12904
+ };
12905
+ }, [children]);
12906
+ return /* @__PURE__ */ jsx("div", { ref: hostRef, className: "sixseconds-header-shadow-host", suppressHydrationWarning: true });
12907
+ }
12908
+ function IsolatedProviders({ cache, children }) {
12909
+ const overlayRef = useRef(null);
12910
+ const theme = useMemo(
12911
+ () => createTheme({
12912
+ typography: { fontFamily: "'Inter', sans-serif" },
12913
+ components: {
12914
+ MuiModal: { defaultProps: { container: () => overlayRef.current } },
12915
+ MuiPopper: { defaultProps: { container: () => overlayRef.current } }
12916
+ }
12917
+ }),
12918
+ []
12919
+ );
12920
+ return /* @__PURE__ */ jsx(CacheProvider, { value: cache, children: /* @__PURE__ */ jsxs(ThemeProvider, { theme, children: [
12921
+ children,
12922
+ /* @__PURE__ */ jsx("div", { ref: overlayRef, className: "sixseconds-header-overlays" })
12923
+ ] }) });
12878
12924
  }
12879
12925
  const DangerDialog = ({
12880
12926
  open,
@@ -14989,7 +15035,7 @@ const HeaderInner = ({
14989
15035
  /* @__PURE__ */ jsx(ViewProfileDialog, { isOpen: state.toggles.viewProfile, userData, setInitialState: setState })
14990
15036
  ] });
14991
15037
  };
14992
- const Header = (props) => /* @__PURE__ */ jsx(MuiProvider, { children: /* @__PURE__ */ jsx(HeaderInner, { ...props }) });
15038
+ const Header = (props) => /* @__PURE__ */ jsx(ShadowIsland, { children: /* @__PURE__ */ jsx(HeaderInner, { ...props }) });
14993
15039
  function LabeledInput({
14994
15040
  label,
14995
15041
  sx,
@@ -15322,7 +15368,7 @@ const PreviousLoginBannerInner = ({ t: t2, router, sx }) => {
15322
15368
  }
15323
15369
  );
15324
15370
  };
15325
- const PreviousLoginBanner = (props) => /* @__PURE__ */ jsx(MuiProvider, { children: /* @__PURE__ */ jsx(PreviousLoginBannerInner, { ...props }) });
15371
+ const PreviousLoginBanner = (props) => /* @__PURE__ */ jsx(ShadowIsland, { children: /* @__PURE__ */ jsx(PreviousLoginBannerInner, { ...props }) });
15326
15372
  const App = () => {
15327
15373
  return /* @__PURE__ */ jsxs(Fragment, { children: [
15328
15374
  /* @__PURE__ */ jsx(
@@ -15535,15 +15581,3 @@ export {
15535
15581
  App as default
15536
15582
  };
15537
15583
  //# sourceMappingURL=index.es.js.map
15538
- (function() {
15539
- "use strict";
15540
- try {
15541
- if (typeof document != "undefined") {
15542
- var elementStyle = document.createElement("style");
15543
- elementStyle.appendChild(document.createTextNode('@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");\n\n.sixseconds-header-root blockquote,\n.sixseconds-header-root dl,\n.sixseconds-header-root dd,\n.sixseconds-header-root h1,\n.sixseconds-header-root h2,\n.sixseconds-header-root h3,\n.sixseconds-header-root h4,\n.sixseconds-header-root h5,\n.sixseconds-header-root h6,\n.sixseconds-header-root hr,\n.sixseconds-header-root figure,\n.sixseconds-header-root p,\n.sixseconds-header-root pre,\n.sixseconds-header-root span,\n.sixseconds-header-root a,\n.sixseconds-header-root div,\n.sixseconds-header-root li,\n.sixseconds-header-root button {\n font-family: "Inter", sans-serif !important;\n}\n\n.sixseconds-header-main-list-menu {\n display: flex;\n}\n\n.sixseconds-header-main-list-menu li {\n padding: 0.5rem 0.5rem;\n}\n\n.sixseconds-header-main-list-menu li a {\n padding: 0 0.25rem;\n font-weight: 500;\n font-size: 12px;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item {\n position: relative;\n padding: 0 16px;\n display: flex;\n align-items: center;\n height: 100%;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-link {\n text-decoration: none;\n color: #2a2a2a;\n /* Closer to 6seconds */\n font-weight: 500;\n font-size: 15px;\n padding: 8px 4px;\n transition: color 0.2s ease;\n font-family: "Inter", sans-serif;\n display: flex;\n align-items: center;\n gap: 4px;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-link:hover {\n color: #0073b1;\n}\n\n/* Submenu (Dropdown) */\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-data {\n position: absolute;\n top: 150%;\n left: 0;\n background: white;\n border: 1px solid #e2e8f0;\n border-top: 3px solid #0073b1;\n box-shadow:\n 0px 12px 48px rgba(0, 0, 0, 0.12),\n 0 4px 16px rgba(0, 0, 0, 0.08);\n /* Even more premium shadow */\n display: block;\n opacity: 0;\n visibility: hidden;\n transform: translateY(12px);\n width: 200px;\n z-index: 1000;\n border-radius: 4px;\n /* More angular per 6seconds style */\n padding: 8px 0;\n transition:\n opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),\n transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),\n visibility 0.25s;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-data li {\n list-style: none;\n padding: 0;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-link {\n display: block;\n padding: 12px 28px;\n text-decoration: none;\n color: #2a2a2a;\n /* Darker grey */\n font-weight: 400;\n font-size: 14.5px;\n line-height: 1.4;\n white-space: normal;\n transition: all 0.2s ease;\n}\n\n.sixseconds-header-main-list-menu .sixseconds-header-submenu-link:hover {\n background: #f0f7fb;\n color: #0073b1;\n padding-left: 32px;\n /* Slight nudge */\n}\n\n/* Caret rotation on hover */\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-desktop-caret {\n transform: rotate(180deg);\n}\n\n/* Show dropdown on hover */\n\n.sixseconds-header-main-list-menu .sixseconds-header-menu-item:hover .sixseconds-header-submenu-data {\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n}\n\n.sixseconds-header-small-device-menu {\n display: none;\n width: 100%;\n left: 0;\n top: 64px;\n background-color: #fff;\n position: fixed;\n overflow-y: auto;\n height: 95vh;\n box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);\n}\n\n.sixseconds-header-small-device-menu a.sixseconds-header-bg-main-menu {\n display: block;\n text-decoration: none;\n}\n\n.sixseconds-header-submenu-child li {\n padding: 0.5rem 0;\n}\n\n.sixseconds-header-submenu-child li a {\n text-decoration: none;\n}\n\n.sixseconds-header-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.sixseconds-header-small-device-menu a {\n background-color: transparent;\n font-size: 16px;\n /* Slightly larger */\n font-weight: 600;\n /* Bolder for parent items */\n color: #1a1c1e;\n margin-bottom: 4px;\n padding: 16px 20px;\n border-bottom: 1px solid #f1f3f4;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.sixseconds-header-small-device-menu .sixseconds-header-submenu-child {\n padding-left: 0px;\n min-width: 100%;\n max-width: 100%;\n margin-top: 0;\n background-color: #fbfbfc;\n /* Slightly different background for sub-items */\n color: #1a1c1e;\n}\n\n.sixseconds-header-small-device-menu ul li .sixseconds-header-submenu-child-link {\n padding: 12px 32px;\n /* Indent more */\n font-weight: 400;\n /* Regular weight for sub-links */\n font-size: 14px;\n}\n\n.sixseconds-header-small-device-menu ul li a {\n background-color: transparent;\n color: #4a4d50;\n}\n\n.sixseconds-header-small-device-menu ul {\n padding-left: 15px;\n}\n\n.sixseconds-header-desktop-menu {\n display: flex;\n}\n\n.sixseconds-header-button-hamburger {\n display: none;\n position: absolute;\n right: 20px;\n top: 18px;\n z-index: 9;\n}\n\n.sixseconds-header-root .tox-editor-header {\n background-color: transparent;\n}\n\n.sixseconds-header-hamburger-icon-btn {\n padding: 8px;\n color: #5f6368;\n}\n\n.sixseconds-header-desktop-menu .sixseconds-header-menu-item .sixseconds-header-menu-link {\n font-size: 14px;\n font-weight: 500;\n}\n\n.sixseconds-header-small-device-menu {\n padding-inline: 20px;\n}\n\n@media screen and (max-width: 600px) and (min-width: 320px) {\n .sixseconds-header-notification-icon-error .MuiBadge-badge {\n font-size: 10px;\n padding: 0 4px;\n min-width: 16px;\n right: 5px;\n background-color: #d32f2f;\n }\n\n .sixseconds-header-submenu nav {\n padding: 0 !important;\n }\n\n .sixseconds-header-root .MuiPagination-root.MuiPagination-outlined {\n display: flex;\n justify-content: center;\n margin-left: 0;\n }\n\n .sixseconds-header-toggle-btn-menu {\n position: absolute;\n right: 20px;\n top: 12px;\n z-index: 99;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 64px;\n }\n\n .main.sixseconds-header-login-page .sixseconds-header-login-body {\n width: 90% !important;\n }\n\n .sixseconds-header-submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sixseconds-header-sidebar {\n width: 280px !important;\n background-color: #f9fafb;\n z-index: 99;\n border-right: 1px solid #e0e0e0;\n }\n\n .sixseconds-header-sidemenu {\n width: 280px;\n background-color: #f9fafb;\n }\n\n .sixseconds-header-logo {\n opacity: 1;\n }\n\n .sixseconds-header-profile .sixseconds-header-menu {\n min-width: 280px;\n width: 100% !important;\n }\n}\n\n@media screen and (max-width: 1024px) and (min-width: 600px) {\n .sixseconds-header-toggle-btn-menu {\n position: absolute;\n right: 20px;\n top: 12px;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n }\n\n .main.sixseconds-header-login-page .sixseconds-header-login-body {\n width: 450px !important;\n }\n\n .sixseconds-header-banner {\n margin-left: 0 !important;\n }\n\n .sixseconds-header-submenu {\n width: 100%;\n max-width: 100% !important;\n }\n\n .sixseconds-header-sidebar {\n width: 280px !important;\n background-color: #f9fafb;\n z-index: 99;\n }\n\n .sixseconds-header-sidemenu {\n width: 280px;\n background-color: #f9fafb;\n }\n\n .sixseconds-header-logo {\n opacity: 1;\n }\n\n .sixseconds-header-profile .sixseconds-header-menu {\n min-width: 280px;\n width: 100% !important;\n }\n}\n\n@media screen and (max-width: 1380px) and (min-width: 1024px) {\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-desktop-menu {\n display: none;\n }\n\n .sixseconds-header-small-device-menu {\n display: block;\n width: 100%;\n position: fixed;\n left: 0;\n background: #fff;\n top: 64px;\n }\n\n .sixseconds-header-button-hamburger {\n display: block;\n }\n\n .sixseconds-header-right-icons {\n padding-right: 25px;\n }\n}'));
15544
- document.head.appendChild(elementStyle);
15545
- }
15546
- } catch (e) {
15547
- console.error("vite-plugin-css-injected-by-js", e);
15548
- }
15549
- })();