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,CAAY,EACrC,CACF,uBCpDAC,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/./utils/debounce.js","webpack://_N_E/./components/Navbar.js","webpack://_N_E/./components/theme.js","webpack://_N_E/./lib/APIHeaders.js","webpack://_N_E/./lib/CustomDomainAPI.js","webpack://_N_E/./lib/WebsiteInfoAPI.js","webpack://_N_E/./utils/store/WebsiteInfoStore.js","webpack://_N_E/./app/page.module.css","webpack://_N_E/"],"sourcesContent":["import { useState, useEffect } from \"react\";\n\n// Our hook\nexport default function useDebounce(value, delay) {\n // State and setters for debounced value\n const [debouncedValue, setDebouncedValue] = useState(value);\n\n useEffect(\n () => {\n // Set debouncedValue to value (passed in) after the specified delay\n const handler = setTimeout(() => {\n setDebouncedValue(value);\n }, delay);\n\n // Return a cleanup function that will be called every time ...\n // ... useEffect is re-called. useEffect will only be re-called ...\n // ... if value changes (see the inputs array below).\n // This is how we prevent debouncedValue from changing if value is ...\n // ... changed within the delay period. Timeout gets cleared and restarted.\n // To put it in context, if the user is typing within our app's ...\n // ... search box, we don't want the debouncedValue to update until ...\n // ... they've stopped typing for more than 500ms.\n return () => {\n clearTimeout(handler);\n };\n },\n // Only re-call effect if value changes\n // You could also add the \"delay\" var to inputs array if you ...\n // ... need to be able to change that dynamically.\n // eslint-disable-next-line\n [value]\n );\n\n return debouncedValue;\n}\n","\"use client\";\nimport React, { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport Cookies from \"js-cookie\";\nimport { usePathname, useRouter } from \"next/navigation\";\n\nimport { styled } from \"@mui/material/styles\";\nimport AppBar from \"@mui/material/AppBar\";\nimport Box from \"@mui/material/Box\";\nimport Toolbar from \"@mui/material/Toolbar\";\nimport IconButton from \"@mui/material/IconButton\";\nimport InputBase from \"@mui/material/InputBase\";\nimport {\n Button,\n Divider,\n ImageListItem,\n Link,\n List,\n ListItem,\n} from \"@mui/material\";\nimport useMediaQuery from \"@mui/material/useMediaQuery\";\nimport MenuIcon from \"@mui/icons-material/Menu\";\n\nimport styles from \"../app/page.module.css\";\nimport useDebounce from \"@/utils/debounce\";\nimport useWebsiteInfoStore from \"@/utils/store/WebsiteInfoStore\";\nimport { TenantCustomDomainAPI } from \"@/lib/CustomDomainAPI\";\n\nconst navbardata = [\n { title: \"Home\", Link: \"/\" },\n { title: \"Courses\", Link: \"/courses\" },\n { title: \"About Us\", Link: \"/about\" },\n { title: \"Blog\", Link: \"/blog\" },\n { title: \"Events\", Link: \"/events\" },\n { title: \"Contact\", Link: \"/contact\" },\n];\nconst Search = styled(\"div\")(({ theme }) => ({\n position: \"relative\",\n borderRadius: theme.shape.borderRadius,\n marginRight: theme.spacing(2),\n marginLeft: 0,\n width: \"100%\",\n flexGrow: 1,\n [theme.breakpoints.up(\"md\")]: {\n marginLeft: theme.spacing(3),\n width: \"auto\",\n },\n}));\n\nconst SearchIconWrapper = styled(\"div\")(({ theme }) => ({\n padding: theme.spacing(0, 2),\n height: \"100%\",\n position: \"absolute\",\n pointerEvents: \"none\",\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n}));\n\nconst StyledInputBase = styled(InputBase)(({ theme }) => ({\n color: \"#363030AD\",\n height: \"35.12px\",\n \"& .MuiInputBase-input\": {\n paddingLeft: `calc(1em + ${theme.spacing(4)})`,\n border: \"0.5px solid #000000\",\n borderRadius: \"5px\",\n transition: theme.transitions.create(\"width\"),\n width: \"100%\",\n [theme.breakpoints.up(\"md\")]: {\n // width: \"20ch\",\n },\n },\n}));\nexport default function Navbar() {\n const { websiteInfoData, initWebsiteInfoStore } = useWebsiteInfoStore();\n const matches = useMediaQuery(\"(max-width:1080px)\");\n const [mobileOpen, setMobileOpen] = useState(false);\n const [hostname, setHostname] = useState();\n const [search, setSearch] = useState();\n const [searchHide, setSearchHide] = useState(false);\n const [origin, setOrigin] = useState();\n const router = useRouter();\n const currentPage = usePathname();\n const debouncedSearchTerm = useDebounce(search, 500);\n\n const handleDrawerToggle = () => {\n setMobileOpen((prevState) => !prevState);\n };\n\n const handleSearch = (e) => {\n setSearch(e.target.value);\n // if (e.key === \"Enter\") {\n // router.push(`/courses?search=${e.target.value}`);\n // } else {\n // }\n };\n\n const fetchTenantName = async () => {\n const res = await TenantCustomDomainAPI(window.location.hostname);\n Cookies.set(\"custom_tenant\", res.response.tenantName, {\n path: \"/\",\n domain: res.response.customDomain,\n // domain: \"localhost\",\n secure: true,\n sameSite: \"Strict\",\n });\n };\n useEffect(() => {\n currentPage && currentPage?.includes(\"/courses\")\n ? setSearchHide(true)\n : setSearchHide(false);\n }, [currentPage]);\n\n useEffect(() => {\n search && router.push(`/courses?search=${search}`);\n }, [debouncedSearchTerm]);\n\n useEffect(() => {\n const customTenant = Cookies.get(\"custom_tenant\");\n\n if (\n !customTenant &&\n !(\n window.location.hostname.includes(\"www.ebrainee.com\") ||\n window.location.hostname.includes(\"www.qaebe.online\") ||\n window.location.hostname.includes(\"www.localhost\")\n )\n ) {\n fetchTenantName();\n }\n initWebsiteInfoStore();\n\n if (typeof window !== \"undefined\") {\n setHostname(window.location.hostname);\n setOrigin(window.location.origin);\n }\n }, []);\n\n const drawer = (\n \n \n {searchHide && (\n \n \n \n \"SearchIcon\"\n \n\n \n \n \n )}\n \n {currentPage &&\n navbardata.map((item, index) => (\n \n \n \n \n {item.title}\n \n \n ))}\n \n \n );\n\n return (\n \n \n \n
    \n \n \n {websiteInfoData ? (\n \n ) : (\n \n )}\n \n \n
\n\n {!matches && (\n \n {searchHide && (\n \n \n \"SearchIcon\"\n \n\n \n \n )}\n \n )}\n {!matches && (\n \n {currentPage &&\n navbardata.map((value, index) => (\n \n {value.title}\n \n ))}\n \n )}\n\n {hostname && (\n \n {!(\n hostname?.includes(\"www.ebrainee.com\") ||\n hostname?.includes(\"www.qaebe.online\") ||\n hostname?.includes(\"www.localhost\")\n ) ? (\n \n \n \n Login\n \n \n \n \n ) : (\n // registration\n \n \n \n Registration\n \n \n \n )}\n \n )}\n\n {matches && (\n \n \n \n )}\n\n \n \n \n \n {matches && (\n \n {mobileOpen && (\n \n {drawer}\n \n )}\n \n )}\n \n \n );\n}\n","import { createTheme } from \"@mui/material/styles\";\n\nexport const theme = createTheme({\n root: {\n flexGrow: 1,\n },\n typography: {\n button: {\n textTransform: \"none\",\n fontSize: \"16px\",\n },\n },\n components: {\n MuiButton: {\n styleOverrides: {\n root: ({ ownerState }) => ({\n ...(ownerState.color === \"primary\" && {\n backgroundColor: \"#DB2BBB\",\n \":hover\": {\n backgroundColor: \"#DB2BBB29\",\n },\n }),\n ...(ownerState.color === \"secondary\" && {\n color: \"#3A3A3A\",\n backgroundColor: \"#fffff\",\n \":hover\": {\n backgroundColor: \"#f5f5fc\",\n },\n }),\n }),\n text: {\n fontFamily: [\"Outfit\", \"sans-serif\"].join(\",\"),\n },\n },\n },\n\n MuiListItem: {\n styleOverrides: {\n root: {\n backgroundColor: \"#063755\",\n color: \"white\",\n },\n },\n },\n MuiPaginationItem: {\n styleOverrides: {\n root: {},\n rounded: {},\n },\n },\n },\n\n palette: {\n primary: {\n main: \"#f5f5fc\",\n contrastText: \"white\",\n },\n secondary: {\n main: \"#e6cae0\",\n contrastText: \"#f5f5fc\",\n },\n pinkColor: {\n main: \"#DB2BBB\",\n },\n },\n});\n","import Cookies from \"js-cookie\";\nimport { TenantCustomDomainAPI } from \"./CustomDomainAPI\";\n\nconst getHeaders = async (hostname) => {\n let subdomain = hostname?.split(\".\")[0];\n const customTenant = Cookies.get(\"custom_tenant\");\n\n if (\n !(\n hostname?.includes(\"ebrainee.com\") ||\n hostname?.includes(\"qaebe.online\") ||\n hostname?.includes(\"localhost\")\n ) &&\n !customTenant\n ) {\n const res = await TenantCustomDomainAPI(hostname);\n console.log(\"first if\",res?.response);\n Cookies.set(\"custom_tenant\", res?.response?.tenantName, {\n path: \"/\",\n domain: res?.response?.customDomain,\n secure: true,\n sameSite: \"Strict\",\n });\n return {\n \"Content-Type\": \"application/json\",\n \"X-Tenant-ID\": res?.response?.tenantName,\n };\n }\n if (customTenant) {\n console.log(\"customTenant if\",customTenant);\n return {\n \"Content-Type\": \"application/json\",\n \"X-Tenant-ID\": customTenant,\n };\n } else if (\n subdomain === \"www\" ||\n subdomain === \"localhost\" ||\n hostname.includes(\"www.ebrainee.com\")\n ||\n hostname.includes(\"www.qaebe.online\")\n ) {\n console.log(\"else if\");\n return {\n \"Content-Type\": \"application/json\",\n };\n } else {\n console.log(\"else \",subdomain);\n return {\n \"Content-Type\": \"application/json\",\n \"X-Tenant-ID\": subdomain,\n };\n }\n};\n\nexport default getHeaders;\n","const API = process.env.NEXT_PUBLIC_API_URL;\n\nexport async function TenantCustomDomainAPI(hostname) {\n\n const removeWWW = hostname?.replace(\"www.\", \"\");\n const res = await fetch(API + `/custom-domain/${removeWWW}`, {\n method: \"GET\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n })\n .then((response) => response.json())\n .then((data) => {\n return data;\n });\n\n return res;\n}\n","import getHeaders from \"./APIHeaders\";\n\nconst API = process.env.NEXT_PUBLIC_API_URL;\n\nexport async function getWebsiteInfo(hostname) {\n const headers = await getHeaders(hostname);\n const res = await fetch(\n API + `/website`,\n {\n headers,\n },\n { cache: \"force-cache\" }\n )\n .then((response) => response.json())\n .then((data) => {\n return data;\n });\n\n return res;\n}\n","import { getWebsiteInfo } from \"@/lib/WebsiteInfoAPI\";\nimport create from \"zustand\";\n\nconst useWebsiteInfoStore = create((set) => ({\n websiteInfoData: {},\n\n initWebsiteInfoStore: async () => {\n console.log(window.location);\n const hostname = window.location.hostname;\n let websiteData;\n\n if (\n !(\n hostname?.includes(\"www.ebrainee.com\") ||\n hostname?.includes(\"www.qaebe.online\") ||\n hostname?.includes(\"www.localhost\")\n )\n ) {\n let data = await getWebsiteInfo(hostname);\n if (data.response) {\n websiteData = data.response;\n }\n } else {\n websiteData = null;\n }\n // else {\n // websiteData = {\n // addressLine1: \"default_addressLine1\",\n // addressLine2: \"default_addressLine2\",\n // addressLine3: \"default_addressLine3\",\n // country: \"United States\",\n // postalCode: \"12345\",\n // email: \"info@example.com\",\n // mobileNo: \"123-456-7890\",\n // title: \"Example Company\",\n // isWebsiteActive: 1,\n // websiteTitle: \"e Brainee Education future\",\n // websiteLogoUrl: \"http://www.example.com/logo.png\",\n // websiteHomeHeading1: \"e Brainee Education future\",\n // websiteHomeDescription1: \"Welcome to our homepage.\",\n // websiteHomeHeading2: \"Products\",\n // websiteHomeDescription2: \"Explore our products.\",\n // websiteAboutUsHeading1: \"About Us\",\n // websiteAboutUsDescription1: \"Welcome to our website.\",\n // websiteAboutUsHeading2: \"Our Team\",\n // websiteAboutUsDescription2: \"We provide quality services.\",\n // websiteFooterMessage:\n // \"Copyright © 2024 Example Company. All rights reserved.\",\n // };\n // }\n\n set({ websiteInfoData: websiteData });\n },\n}));\n\nexport default useWebsiteInfoStore;\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"headerLogo\":\"page_headerLogo__rVpXD\",\"starImg\":\"page_starImg___naWP\",\"dotCurve\":\"page_dotCurve__XRWRw\",\"tri\":\"page_tri__SKY69\",\"circle\":\"page_circle__8rDpH\",\"Circle1\":\"page_Circle1__nZt5A\",\"tutor\":\"page_tutor__hWZhO\",\"imgThumBlog\":\"page_imgThumBlog__dRASt\",\"heroEnh\":\"page_heroEnh__oXVl8\"};"],"names":["navbardata","title","Link","Search","styled","theme","param","position","borderRadius","shape","marginRight","spacing","marginLeft","width","flexGrow","breakpoints","up","SearchIconWrapper","padding","height","pointerEvents","display","alignItems","justifyContent","StyledInputBase","InputBase","color","paddingLeft","concat","border","transition","transitions","create","Navbar","hostname","websiteInfoData","initWebsiteInfoStore","useWebsiteInfoStore","matches","useMediaQuery","mobileOpen","setMobileOpen","useState","setHostname","search","setSearch","searchHide","setSearchHide","origin","setOrigin","router","useRouter","currentPage","usePathname","debouncedSearchTerm","useDebounce","value","delay","debouncedValue","setDebouncedValue","useEffect","handler","setTimeout","clearTimeout","handleDrawerToggle","prevState","handleSearch","e","target","fetchTenantName","res","TenantCustomDomainAPI","window","location","Cookies","set","response","tenantName","path","domain","customDomain","secure","sameSite","includes","push","get","drawer","jsx_runtime","jsxs","Box","onClick","sx","textAlign","background","jsx","Divider","img","src","alt","backgroundColor","placeholder","inputProps","type","name","className","onChange","List","map","item","index","ListItem","href","textDecoration","fontWeight","top","zIndex","AppBar","lg","xs","Toolbar","ul","ImageListItem","cursor","Image","websiteLogoUrl","styles","loading","gap","fontSize","Button","split","substring","indexOf","length","IconButton","aria-label","edge","sm","MenuIcon","md","component","createTheme","root","typography","button","textTransform","components","MuiButton","styleOverrides","ownerState","text","fontFamily","MuiListItem","MuiPaginationItem","rounded","palette","primary","main","contrastText","secondary","pinkColor","getHeaders","subdomain","customTenant","console","log","__webpack_exports__","Z","removeWWW","replace","fetch","API","method","headers","then","json","data","getWebsiteInfo","cache","WebsiteInfoStore","websiteData","module","exports"],"sourceRoot":""}