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GAAAnB,EAAAM,GAAA,EAACkB,IAAAA,UAAE,cACH,GAAAxB,EAAAM,GAAA,EAACkB,IAAAA,UAAE,gDAhEb,GAAAxB,EAAAM,GAAA,EAACE,EAAAA,OAAIA,CAAAA,CACHC,KAAK,SACLtB,UAAU,+DACVuB,MAAM,iBACP,mBAwEf","sources":["webpack://_N_E/./src/components/common/Footer/constants.tsx","webpack://_N_E/./src/components/common/Footer/index.tsx","webpack://_N_E/./src/components/common/TopNav/MenuItems.tsx","webpack://_N_E/./src/components/common/TopNav/index.tsx","webpack://_N_E/./src/components/common/Footer/styles.scss","webpack://_N_E/./src/components/common/TopNav/styles.scss","webpack://_N_E/./src/components/common/UI/WebLayout/style.scss","webpack://_N_E/"],"sourcesContent":["export interface MenuListProps {\n id: string;\n label: string;\n link: string;\n}\n\nexport interface FooterMenuProps {\n id: string;\n name: string;\n list: MenuListProps[];\n}\n\nexport const footerMenus: FooterMenuProps[] = [\n {\n id: '1',\n name: 'Policy',\n list: [\n {\n id: '11',\n label: 'Privacy Policy',\n link: '/privacy-policy'\n },\n {\n id: '12',\n label: 'Terms & Condition',\n link: '/terms-and-condition'\n },\n {\n id: '13',\n label: 'Disclaimer',\n link: '/disclaimer'\n },\n {\n id: '14',\n label: 'Cancellation and Refunds',\n link: '/cancellation-refunds'\n }\n ]\n },\n {\n id: '2',\n name: 'Useful Link',\n list: [\n {\n id: '21',\n label: 'Home',\n link: '/'\n },\n {\n id: '22',\n label: 'About',\n link: '/about-us'\n },\n {\n id: '23',\n label: 'Log in',\n link: '/login'\n },\n {\n id: '24',\n label: 'Sign up',\n link: '/register'\n }\n ]\n }\n];\n","'use client';\nimport React, { useEffect, useState } from 'react';\nimport Image from 'next/image';\nimport Link from 'next/link';\nimport { WhatsAppUrl, WhataAppMessage } from '@/constants';\nimport { footerMenus, FooterMenuProps, MenuListProps } from './constants';\nimport './styles.scss';\nimport CourseSelectionDialog from '@/components/common/CourseSelectionDialog';\nimport { isLoggedIn } from '@/utils';\nimport { useAppContext } from '@/contexts/AppContextProvider';\n\ninterface FooterProps {\n className?: string;\n}\n\nconst Footer: React.FC = ({ className }) => {\n const [open, setOpen] = useState(false);\n const { userDetail } = useAppContext();\n const sendMessage = () => {\n let url = `${WhatsAppUrl}/`;\n\n if (WhataAppMessage) {\n url += `?text=${encodeURI(WhataAppMessage)}`;\n }\n\n window.open(url, '_blank');\n };\n\n const handleOpen = () => setOpen(true);\n const handleClose = () => setOpen(false);\n const [data, setData] = useState();\n useEffect(() => {\n setData(location.pathname);\n }, [location.pathname]);\n\n return (\n <>\n \n
\n
\n
\n

Contact

\n \n \n support@artfills.com\n \n
\n \n \n \n \n \n \n \n \n \n
\n \n

Recommend

\n

Artfills to Friends and Family

\n \n
\n \n \n \n\n {footerMenus.map((menu: FooterMenuProps) => (\n
\n

{menu.name}

\n
    \n {menu.list.map((m: MenuListProps) => (\n
  • \n {(!userDetail?.id && !isLoggedIn()) ||\n (m.label !== 'Sign up' && m.label !== 'Log in') ? (\n m.label === 'Sign up' ? (\n {\n e.preventDefault();\n handleOpen();\n }}\n >\n {m.label}\n \n ) : (\n \n {m.label}\n \n )\n ) : null}\n
  • \n ))}\n
\n
\n ))}\n
\n
\n

\n Made withby Indian Artists\n

\n
\n
\n \n \n
\n

\n “Copyright © 2022-2025 Artfills Online Learning Pvt Ltd. All\n rights reserved.”\n

\n
\n \n );\n};\n\nexport default React.memo(Footer);\n","'use client';\nimport React, { Fragment, useEffect, useState } from 'react';\nimport { Menu, Transition } from '@headlessui/react';\nimport { useRouter } from 'next/navigation';\nimport menuItems from './menuItems.json';\n\nfunction classNames(...classes: string[]) {\n return classes.filter(Boolean).join(' ');\n}\n\ninterface Item {\n key: string;\n title: string;\n desc: string;\n link: string;\n active: boolean;\n order: number;\n}\n\nconst MenuItems: React.FC = () => {\n const router = useRouter();\n const handleMenuItemClick = (menuLink: string) => {\n router.push(menuLink);\n };\n\n const activeMenuItems = menuItems\n .filter((item: Item) => item.active)\n .sort((a, b) => a.order - b.order);\n\n const [data, setData] = useState();\n useEffect(() => {\n setData(location.pathname);\n }, [location.pathname]);\n\n return (\n \n \n
\n {activeMenuItems.map((menuItem) => (\n \n {({ active }) => (\n handleMenuItemClick(menuItem.link)}\n className={classNames(\n active || location.pathname === menuItem.link\n ? 'activeLink text-white'\n : 'text-white',\n 'block px-5 py-2.5 text-xl border-b border-gray-700'\n )}\n >\n \n {menuItem.title}\n \n {menuItem.desc}\n \n )}\n \n ))}\n
\n \n \n );\n};\n\nexport default React.memo(MenuItems);\n","'use client';\nimport React, { useState, useCallback, useRef, useEffect } from 'react';\nimport Image from 'next/image';\nimport { Menu } from '@headlessui/react';\nimport { useRouter } from 'next/navigation';\nimport MenuItems from './MenuItems';\nimport Link from 'next/link';\nimport { deleteCookieByName } from '@/utils/cookies';\nimport { WhatsAppUrl, WhataAppMessage, WhatsAppNo } from '@/constants';\nimport './styles.scss';\nimport { isLoggedIn } from '@/utils';\nimport { useAppContext } from '@/contexts/AppContextProvider';\ninterface TopNavProps {\n className?: string;\n}\n\nconst TopNav: React.FC = ({ className }) => {\n const {\n updateUserDispatch,\n updateCouponCodeDispatch,\n addUpdateCourseDispatch,\n userTypeDispatch\n } = useAppContext();\n const route = useRouter();\n\n const sideMenuRef = useRef(null);\n\n const [isMenuOpen, setMenuOpen] = useState(false);\n\n const openSideMenu = useCallback(() => {\n setMenuOpen((pre) => !pre);\n }, []);\n\n const sendMessage = () => {\n let url = `${WhatsAppUrl}/`;\n\n if (WhataAppMessage) {\n url += `?text=${encodeURI(WhataAppMessage)}`;\n }\n\n window.open(url, '_blank');\n };\n\n const sendSupportMessage = () => {\n let url = `${WhatsAppUrl}/${WhatsAppNo}`;\n if (WhataAppMessage) {\n url += `?text=${encodeURI(WhataAppMessage)}`;\n }\n window.open(url, '_blank');\n };\n\n const handleClickOutside = useCallback((event: MouseEvent) => {\n if (\n sideMenuRef.current &&\n !sideMenuRef.current.contains(event.target as Node)\n ) {\n setMenuOpen(false);\n }\n }, []);\n\n useEffect(() => {\n if (isMenuOpen) {\n document.addEventListener('mousedown', handleClickOutside);\n } else {\n document.removeEventListener('mousedown', handleClickOutside);\n }\n\n return () => {\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [isMenuOpen, handleClickOutside]);\n\n return (\n \n
\n
\n \n \n \n );\n};\n\nexport default React.memo(TopNav);\n","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin"],"names":["footerMenus","id","name","list","label","link","common_Footer","React","className","param","open","setOpen","useState","userDetail","useAppContext","handleOpen","data","setData","useEffect","location","pathname","jsx_runtime","jsxs","Fragment","section","concat","div","jsx","h2","Link","href","title","Image","src","alt","width","height","target","button","onClick","url","WhatsAppUrl","WhataAppMessage","encodeURI","window","p","span","map","menu","ul","li","isLoggedIn","m","e","preventDefault","small","CourseSelectionDialog","handleClose","classNames","_len","arguments","length","classes","_key","filter","Boolean","join","TopNav_MenuItems","router","useRouter","handleMenuItemClick","push","menuLink","activeMenuItems","menuItems","item","active","sort","a","b","order","Transition","as","enter","enterFrom","enterTo","leave","leaveFrom","leaveTo","Menu","Items","Item","menuItem","desc","key","common_TopNav","updateUserDispatch","updateCouponCodeDispatch","addUpdateCourseDispatch","userTypeDispatch","route","sideMenuRef","useRef","isMenuOpen","setMenuOpen","openSideMenu","useCallback","pre","handleClickOutside","current","contains","event","document","addEventListener","removeEventListener","header","nav","priority","Button","MenuItems","ref","aside","aria-current","deleteCookieByName","WhatsAppNo"],"sourceRoot":""}