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jC,CACEoG,IAAK,2BACLqB,MAAO,CACLC,OAAQ,yBACRC,IAAK,aACL9H,YAAa,sCACf,CACF,EACA,CACEuG,IAAK,2BACLqB,MAAO,CACLC,OAAQ,sBACRC,IAAK,aACL9H,YAAa,wDACf,CACF,EACD,EAED,MACE,GAAA+C,EAAA7D,IAAA,EAACC,MAAAA,CAAIP,UAAU,gGACb,GAAAmE,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAAC2H,EAAYA,CAACC,UAAW,GAAMjG,KAAM2K,MAEvC,GAAA5I,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAACwM,EAAWA,CAAAA,KAEd,GAAA9I,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAACyM,EAAGA,CAAAA,KAEN,GAAA/I,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAAC0M,EAAcA,CAAAA,KAEjB,GAAAhJ,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAAC2M,EAAgBA,CAAAA,KAEnB,GAAAjJ,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAAC4M,EAAUA,CAAAA,KAEb,GAAAlJ,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAAC6M,EAAYA,CAAAA,KAEf,GAAAnJ,EAAA1D,GAAA,EAACuM,UAAAA,UACC,GAAA7I,EAAA1D,GAAA,EAAC8M,EAAWA,CAAAA,OAIpB","sources":["webpack://_N_E/","webpack://_N_E/./components/Frontend/ImageLoadingSkelenton.tsx","webpack://_N_E/./components/Frontend/Products/PaginatedProducts.tsx","webpack://_N_E/./node_modules/@mui/icons-material/esm/FavoriteBorderOutlined.js","webpack://_N_E/./components/Frontend/Products/ProductItem.tsx","webpack://_N_E/./components/Frontend/Pages/Home/HeroCarousel.tsx","webpack://_N_E/./components/Frontend/Pages/Home/Collections.tsx","webpack://_N_E/./components/Frontend/Pages/Home/FeaturedItems.tsx","webpack://_N_E/./components/Frontend/Pages/Home/LimitedTImeOffer.tsx","webpack://_N_E/./components/Frontend/Pages/Home/TopVendors.tsx","webpack://_N_E/./components/Frontend/Pages/Home/ShopCategory.tsx","webpack://_N_E/./components/Frontend/Pages/Home/NewArrivals.tsx","webpack://_N_E/./components/Frontend/Pages/Home/New.tsx","webpack://_N_E/./pages/index.tsx","webpack://_N_E/./node_modules/slick-carousel/slick/slick-theme.css","webpack://_N_E/./node_modules/slick-carousel/slick/slick.css","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/\",\n function () {\n return require(\"private-next-pages/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/\"])\n });\n }\n ","import React from \"react\";\n\ntype ImageSkeletonProps = {\n width?: number | string;\n height?: number | string;\n className?: string;\n radius?: string;\n color?: string;\n text?: boolean;\n};\n\n// type ImageLoaderProps = {};\n\nconst ImageSkeleton: React.FC = ({\n width,\n height,\n className = \"\",\n radius = \"rounded-md\",\n color,\n text = false,\n}) => {\n return (\n
\n \n \n \n \n
\n {text && (\n
\n
\n
\n
\n
{\" \"}\n
\n )}\n \n );\n};\n\n// export const ImageLoader = ({}) => {\n// return (\n//
\n// \n// \n// \n// \n// \n// \n// \n//
\n// );\n// };\n\nexport default ImageSkeleton;\n","import LoadingDataSpinner from \"@/components/Frontend/LoadingDataSpinner\";\nimport ProductItem from \"@/components/Frontend/Products/ProductItem\";\nimport { NextPage } from \"next\";\nimport { useEffect, useState, useRef, useCallback } from \"react\";\nimport { Product } from \"@/interfaces/account/Home/Collections\";\n\ninterface Props {\n url: string;\n title: string;\n description?: string;\n}\n\nconst PaginatedProducts: NextPage = ({ url, title, description }) => {\n const [isLoading, setIsLoading] = useState(false);\n const [products, setProducts] = useState([]);\n const [nextUrl, setNextUrl] = useState(null);\n\n const observer = useRef(null);\n\n const fetchProducts = async (productUrl: string) => {\n setIsLoading(true);\n try {\n const response = await fetch(productUrl, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (response.ok) {\n const data = await response.json();\n setProducts((prevProducts) => [...prevProducts, ...data.results]);\n setNextUrl(data.next);\n } else {\n console.error(\"Failed to fetch products\");\n }\n } catch (error) {\n console.error(\"Error:\", error);\n } finally {\n setIsLoading(false);\n }\n };\n\n useEffect(() => {\n fetchProducts(url);\n }, [url]);\n\n const lastProductRef = useCallback(\n (node: HTMLDivElement | null) => {\n if (isLoading) return;\n if (observer.current) observer.current.disconnect();\n observer.current = new IntersectionObserver((entries) => {\n if (entries[0]?.isIntersecting && nextUrl) {\n fetchProducts(nextUrl);\n }\n });\n if (node) observer.current.observe(node);\n },\n [isLoading, nextUrl]\n );\n\n return (\n
\n {description ? (\n
\n

\n New Arrivals\n

\n

\n Browse The Collection of Top Products{\" \"}\n

\n
\n ) : (\n

{title}

\n )}\n\n {products.length === 0 && !isLoading ? (\n

\n There are no products\n

\n ) : (\n <>\n
\n {products.map((item, index) => {\n if (products.length === index + 1) {\n return (\n
\n \n
\n );\n } else {\n return ;\n }\n })}\n
\n {isLoading && (\n
\n \n
\n )}\n \n )}\n
\n );\n};\n\nexport default PaginatedProducts;\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3m-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05\"\n}), 'FavoriteBorderOutlined');","import { Product } from \"@/interfaces/account/Home/Collections\";\nimport { NextPage } from \"next\";\nimport Link from \"next/link\";\nimport \"slick-carousel/slick/slick.css\";\nimport \"slick-carousel/slick/slick-theme.css\";\nimport Image from \"next/image\";\nimport { useCart } from \"@/context/CartContext\";\nimport { Cart } from \"@/interfaces/account/Home/Cart\";\nimport { useContext, useState, useMemo } from \"react\";\nimport AuthContext from \"@/context/AuthContext\";\nimport FavoriteBorderOutlinedIcon from \"@mui/icons-material/FavoriteBorderOutlined\";\nimport { URLS } from \"@/utils/urls\";\nimport { showToastError, showToastSuccess } from \"@/utils/toastFunctions\";\nimport { toastMessages } from \"@/constants/toast-messages\";\nimport LoadingDataSpinner from \"@/components/Frontend/LoadingDataSpinner\";\n\ninterface Props {\n product: Product;\n}\n\nconst ProductItem: NextPage = ({ product }) => {\n // Destructure commonly used values\n const {\n id,\n title,\n slug,\n main_image_thumbnail,\n price,\n discount_price,\n in_stock,\n in_stock_count,\n store,\n wishlists,\n } = product;\n const { user, authTokens } = useContext(AuthContext);\n const {\n addItemToCart,\n cartItems,\n removeItemFromCart,\n } = useCart();\n\n // State management\n const [isItemAddingToWishlist, setIsItemAddingToWishlist] = useState(false);\n const [isAddingToCart, setIsAddingToCart] = useState(false);\n const [isRemovingFromCart, setIsRemovingFromCart] = useState(false);\n const [isProductInWishlist, setIsProductInWishlist] = useState(\n wishlists.includes(user?.user_id)\n );\n\n // Memoize derived values\n const productUrl = useMemo(\n () => `/store/${store.slug}/products/${slug}`,\n [store.slug, slug]\n );\n\n // Memoize cart status\n const cartItem = useMemo(\n () => cartItems.find((item) => item.product.id === id),\n [cartItems, id]\n );\n\n const isProductInCart = Boolean(cartItem);\n\n const ModifyCart = async (e: React.MouseEvent) => {\n e.preventDefault();\n if (!isProductInCart) {\n if (!in_stock) {\n showToastError(\"Product is out of stock\");\n return;\n }\n\n setIsAddingToCart(true);\n try {\n const newQuantity = cartItem ? cartItem.quantity + 1 : 1;\n\n if (newQuantity > in_stock_count) {\n showToastError(`Cannot exceed available stock of ${in_stock_count}`);\n return;\n }\n\n const cartItemObj: Cart = {\n product,\n quantity: newQuantity,\n };\n addItemToCart(cartItemObj, false); // Pass false to indicate this is not from detail page\n } catch (error) {\n console.error(\"Error adding to cart:\", error);\n showToastError(\"Failed to add item to cart\");\n } finally {\n setIsAddingToCart(false);\n }\n }\n\n if (isProductInCart) {\n setIsRemovingFromCart(true);\n\n try {\n const cartItemObj: Cart = {\n product,\n quantity: 0,\n };\n\n removeItemFromCart(cartItemObj);\n } catch (error) {\n console.error(\"Error removing from cart:\", error);\n showToastError(\"Failed to remove item from cart\");\n } finally {\n setIsRemovingFromCart(false);\n }\n }\n };\n\n const ModifyWishlist = async (e: React.MouseEvent) => {\n e.preventDefault();\n if (!authTokens?.access || !user) {\n showToastError(\"User not Logged in\");\n return;\n }\n\n setIsItemAddingToWishlist(true);\n try {\n const response = await fetch(URLS?.modifyWishListUrl(id), {\n headers: {\n Authorization: `Bearer ${authTokens.access}`,\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n to_wish_list: !isProductInWishlist,\n }),\n method: \"PUT\",\n });\n\n if (!response.ok) {\n throw new Error(\"Failed to modify wishlist\");\n }\n\n setIsProductInWishlist(!isProductInWishlist);\n showToastSuccess(\n !isProductInWishlist\n ? toastMessages.productAddedToWishlist\n : toastMessages.productRemovedFromWishList\n );\n } catch (error) {\n console.error(\"Error:\", error);\n showToastError(\"Failed to modify wishlist\");\n } finally {\n setIsItemAddingToWishlist(false);\n }\n };\n\n const getButtonText = () => {\n if (isAddingToCart) {\n return ;\n }\n if (isRemovingFromCart) {\n return ;\n }\n if (!in_stock) {\n return \"Out of Stock\";\n }\n return isProductInCart ? \"Remove from Cart\" : \"Add to Cart\";\n };\n\n return (\n
\n
\n {/* {main_image_thumbnail && } */}\n
\n {main_image_thumbnail && \n \n }\n \n\n {/* Wishlist button */}\n \n \n
\n\n {/* Add to cart button */}\n \n {getButtonText()}\n \n
\n\n \n
\n

\n {title}\n

\n \n {in_stock ? `In Stock (${in_stock_count})` : \"Out of Stock\"}\n \n
\n
\n

\n ₹{price}\n

\n

\n ₹{discount_price}\n

\n
\n \n
\n \n );\n};\n\nexport default ProductItem;\n","import React, { useState, useEffect } from \"react\";\nimport { NextPage } from \"next\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\n\ninterface Props {\n data: {\n src: string;\n texts: {\n header: string;\n sub: string;\n description: string;\n };\n }[];\n autoSlide?: boolean;\n autoSlideInterval?: number;\n}\n\nconst Carousel: NextPage = ({\n autoSlide = false,\n autoSlideInterval = 10000,\n data: slides,\n}) => {\n const [curr, setCurr] = useState(0);\n\n const prev = () =>\n setCurr((curr) => (curr === 0 ? slides.length - 1 : curr - 1));\n const next = () =>\n setCurr((curr) => (curr === slides.length - 1 ? 0 : curr + 1));\n\n useEffect(() => {\n if (!autoSlide) return;\n const slideInterval = setInterval(next, autoSlideInterval);\n return () => clearInterval(slideInterval);\n }, []);\n return (\n
\n \n {[\n ...slides.map((item, index) => (\n
\n \n \n \n {item.texts.header}\n \n \n {item.texts.sub}\n \n \n {item.texts.description}\n \n \n

\n View More\n

\n \n
\n
\n )),\n ]}\n \n
\n \n \n \n \n \n \n
\n\n
\n
\n {slides.map((_, i) => (\n \n ))}\n
\n
\n \n );\n};\n\nexport default Carousel;\n","import { Product } from \"@/interfaces/account/Home/Collections\";\nimport { NextPage } from \"next\";\nimport { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport Slickslider from \"react-slick\";\nimport \"slick-carousel/slick/slick.css\";\nimport \"slick-carousel/slick/slick-theme.css\";\nimport Link from \"next/link\";\nimport ProductItem from \"../../Products/ProductItem\";\nimport ImageSkeleton from \"../../ImageLoadingSkelenton\";\nimport { URLS } from \"@/utils/urls\";\n\ninterface Props {}\n\nconst Collections: NextPage = ({}) => {\n const [isLoading, setIsLoading] = useState(false);\n const [collections, setCollections] = useState(null);\n const [filteredCollection, setFilteredCollections] = useState<\n Product[] | null\n >(null);\n const [activeCollection, setActiveCollection] = useState(\"All\");\n\n useEffect(() => {\n fetchCollections();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const fetchCollections = async () => {\n setIsLoading(true);\n try {\n const response = await fetch(URLS?.collectionsUrl, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (response.ok) {\n const data = await response.json();\n setCollections(data);\n setFilteredCollections(data);\n } else {\n console.error(\"Failed to fetch states\");\n }\n } catch (error) {\n console.error(\"Error:\", error);\n } finally {\n setIsLoading(false);\n }\n };\n\n function filterProductsByCategoryName(\n products: Product[],\n categoryName: string\n ): Product[] {\n return products.filter(\n (product) => product.store.category === categoryName\n );\n }\n\n const handleActiveCollectionChange = (collection: string) => {\n if (!collections) {\n return;\n }\n if (collection == \"All\") {\n setFilteredCollections(collections);\n } else {\n const filtered_Collections = filterProductsByCategoryName(\n collections,\n collection\n );\n setFilteredCollections(filtered_Collections);\n }\n setActiveCollection(collection);\n };\n\n return (\n
\n
\n

\n Collections\n

\n \n Browse The Collection of Top Products\n \n
\n handleActiveCollectionChange(\"All\")}\n className={`text-[14px] cursor-pointer select-none font-poppins hover:text-orange ${\n activeCollection == \"All\" ? \"text-orange\" : \"text-grey-400\"\n }`}\n >\n All\n
\n {Array.from(\n new Set(collections?.map((item) => item.store.category))\n ).map((item, index) => (\n handleActiveCollectionChange(item)}\n className={`text-[14px] cursor-pointer select-none font-poppins hover:text-orange whitespace-nowrap ${\n activeCollection == item ? \"text-orange\" : \"text-grey-400\"\n }`}\n key={index}\n >\n {item}\n
\n ))}\n
\n \n
\n {filteredCollection && !isLoading ? (\n filteredCollection?.length !== 1 ? (\n \n }\n nextArrow={\n \n }\n responsive={[\n // {\n // breakpoint: 1200,\n // settings: {\n // },\n // },\n // {\n // breakpoint: 1024,\n // settings: {\n // nextArrow: undefined,\n // prevArrow: undefined,\n // },\n // },\n {\n breakpoint: 600,\n settings: {\n nextArrow:
,\n prevArrow:
,\n },\n },\n ]}\n >\n {filteredCollection?.map((item, index) => (\n \n ))}\n \n ) : filteredCollection?.length === 1 && filteredCollection[0] ? (\n \n ) : (\n
No product found
\n )\n ) : (\n
\n \n }\n nextArrow={\n \n }\n responsive={[\n // {\n // breakpoint: 1200,\n // settings: {\n // },\n // },\n // {\n // breakpoint: 1024,\n // settings: {\n // nextArrow: undefined,\n // prevArrow: undefined,\n // },\n // },\n {\n breakpoint: 600,\n settings: {\n nextArrow:
,\n prevArrow:
,\n },\n },\n ]}\n >\n {Array.from({ length: 7 }).map((_, index) => (\n
\n \n
\n ))}\n \n
\n )}\n
\n\n
\n \n

\n Shop All Collections\n

\n \n
\n \n );\n};\n\nexport default Collections;\n","import { Product } from \"@/interfaces/account/Home/Collections\";\nimport { NextPage } from \"next\";\nimport { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport Slickslider from \"react-slick\";\nimport \"slick-carousel/slick/slick.css\";\nimport \"slick-carousel/slick/slick-theme.css\";\nimport Link from \"next/link\";\nimport ProductItem from \"../../Products/ProductItem\";\nimport ImageSkeleton from \"../../ImageLoadingSkelenton\";\nimport { URLS } from \"@/utils/urls\";\n\ninterface Props {}\n\nconst FeauturedItems: NextPage = ({}) => {\n const [isLoading, setIsLoading] = useState(false);\n const [, setCollections] = useState(null);\n const [filteredCollection, setFilteredCollections] = useState<\n Product[] | null\n >(null);\n\n useEffect(() => {\n fetchCollections();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const fetchCollections = async () => {\n setIsLoading(true);\n try {\n const response = await fetch(URLS?.featuredProductsUrl, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (response.ok) {\n const data = await response.json();\n setCollections(data);\n setFilteredCollections(data);\n } else {\n console.error(\"Failed to fetch states\");\n }\n } catch (error) {\n console.error(\"Error:\", error);\n } finally {\n setIsLoading(false);\n }\n };\n\n return (\n \n
\n

\n Featured Items\n

\n \n Shop All Collections\n \n
\n
\n {filteredCollection && !isLoading ? (\n filteredCollection?.length !== 1 ? (\n \n }\n nextArrow={\n \n }\n responsive={[\n // {\n // breakpoint: 1200,\n // settings: {\n // },\n // },\n // {\n // breakpoint: 1024,\n // settings: {\n // nextArrow: undefined,\n // prevArrow: undefined,\n // },\n // },\n {\n breakpoint: 600,\n settings: {\n nextArrow:
,\n prevArrow:
,\n },\n },\n ]}\n >\n {filteredCollection?.map((item, index) => (\n \n ))}\n \n ) : filteredCollection?.length === 1 && filteredCollection[0] ? (\n \n ) : (\n
No product found
\n )\n ) : (\n
\n \n }\n nextArrow={\n \n }\n responsive={[\n // {\n // breakpoint: 1200,\n // settings: {\n // },\n // },\n // {\n // breakpoint: 1024,\n // settings: {\n // nextArrow: undefined,\n // prevArrow: undefined,\n // },\n // },\n {\n breakpoint: 600,\n settings: {\n nextArrow:
,\n prevArrow:
,\n },\n },\n ]}\n >\n {Array.from({ length: 7 }).map((_, index) => (\n
\n \n
\n ))}\n \n
\n )}\n
\n \n );\n};\n\nexport default FeauturedItems;\n","import { Product } from \"@/interfaces/account/Home/Collections\";\nimport { NextPage } from \"next\";\nimport { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport Slickslider from \"react-slick\";\nimport \"slick-carousel/slick/slick.css\";\nimport \"slick-carousel/slick/slick-theme.css\";\nimport Link from \"next/link\";\nimport ProductItem from \"../../Products/ProductItem\";\nimport ImageSkeleton from \"../../ImageLoadingSkelenton\";\nimport { URLS } from \"@/utils/urls\";\n\ninterface Props {}\n\nconst LimitedTimeOffer: NextPage = ({}) => {\n const [isLoading, setIsLoading] = useState(false);\n const [, setCollections] = useState(null);\n const [filteredCollection, setFilteredCollections] = useState<\n Product[] | null\n >(null);\n useEffect(() => {\n fetchCollections();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const fetchCollections = async () => {\n setIsLoading(true);\n try {\n const response = await fetch(URLS?.limitedTimeOfferUrl, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (response.ok) {\n const data = await response.json();\n setCollections(data);\n setFilteredCollections(data);\n } else {\n console.error(\"Failed to fetch states\");\n }\n } catch (error) {\n console.error(\"Error:\", error);\n } finally {\n setIsLoading(false);\n }\n };\n\n return (\n
\n
\n

\n Limited Time Offer\n

\n \n Shop All Collections\n \n
\n
\n {filteredCollection && !isLoading ? (\n filteredCollection?.length !== 1 ? (\n \n }\n nextArrow={\n \n }\n responsive={[\n // {\n // breakpoint: 1200,\n // settings: {\n // },\n // },\n // {\n // breakpoint: 1024,\n // settings: {\n // nextArrow: undefined,\n // prevArrow: undefined,\n // },\n // },\n {\n breakpoint: 600,\n settings: {\n nextArrow:
,\n prevArrow:
,\n },\n },\n ]}\n >\n {filteredCollection?.map((item, index) => (\n \n ))}\n \n ) : filteredCollection?.length === 1 && filteredCollection[0] ? (\n \n ) : (\n
No product found
\n )\n ) : (\n
\n \n }\n nextArrow={\n \n }\n responsive={[\n // {\n // breakpoint: 1200,\n // settings: {\n // },\n // },\n // {\n // breakpoint: 1024,\n // settings: {\n // nextArrow: undefined,\n // prevArrow: undefined,\n // },\n // },\n {\n breakpoint: 600,\n settings: {\n nextArrow:
,\n prevArrow:
,\n },\n },\n ]}\n >\n {Array.from({ length: 7 }).map((_, index) => (\n
\n \n
\n ))}\n \n
\n )}\n
\n
\n );\n};\n\nexport default LimitedTimeOffer;\n","import { Store } from \"@/interfaces/account/Home/TopVendors\";\nimport { NextPage } from \"next\";\nimport { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport { URLS } from \"@/utils/urls\";\nimport LoadingDataSpinner from \"../../LoadingDataSpinner\";\n\ninterface Props {}\n\nconst TopVendors: NextPage = ({}) => {\n const [isLoading, setIsLoading] = useState(false);\n const [topVendors, setTopVendors] = useState(null);\n\n useEffect(() => {\n fetchTopVendors();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const fetchTopVendors = async () => {\n setIsLoading(true);\n try {\n const response = await fetch(URLS?.vendorsCollectionsUrl, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (response.ok) {\n const data = await response.json();\n console.log(\"Top Vendors: \", data);\n setTopVendors(data);\n } else {\n console.error(\"Failed to fetch states\");\n }\n } catch (error) {\n console.error(\"Error:\", error);\n } finally {\n console.log(topVendors);\n setIsLoading(false);\n }\n };\n return (\n
\n

Top Vendors

\n
\n {topVendors && !isLoading ? (\n topVendors.map((vendor, index) => (\n \n
\n \n
\n
\n
\n {vendor.name}\n
\n
\n Products: {vendor?.product_count}\n
\n
\n \n ))\n ) : (\n
\n \n
\n )}\n
\n
\n );\n};\n\nexport default TopVendors;\n","import { SubCategory } from \"@/interfaces/account/Home/SubCategory\";\nimport { NextPage } from \"next\";\nimport React, { useEffect, useState } from \"react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\nimport { URLS } from \"@/utils/urls\";\nimport LoadingDataSpinner from \"../../LoadingDataSpinner\";\n\ninterface Props {}\n\nconst ShopCategory: NextPage = ({}) => {\n const [isLoading, setIsLoading] = useState(false);\n const [shopCategories, setShopCategories] = useState(\n null\n );\n\n useEffect(() => {\n fetchShopCategories();\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const fetchShopCategories = async () => {\n setIsLoading(true);\n try {\n const response = await fetch(URLS?.shopCategoriesUrl, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n if (response.ok) {\n const data = await response.json();\n setShopCategories(data);\n } else {\n console.error(\"Failed to fetch states\");\n }\n } catch (error) {\n console.error(\"Error:\", error);\n } finally {\n setIsLoading(false);\n }\n };\n return (\n
\n

Shop Category

\n
\n {shopCategories && !isLoading ? (\n shopCategories.map((shopCategory, index) => (\n
\n
\n \n
\n \n
\n

\n {shopCategory.name}\n

\n \n
\n
\n ))\n ) : (\n
\n \n
\n )}\n
\n
\n );\n};\n\nexport default ShopCategory;\n","import { NextPage } from \"next\";\nimport React from \"react\";\nimport Link from \"next/link\";\nimport { URLS } from \"@/utils/urls\";\nimport PaginatedProducts from \"../../Products/PaginatedProducts\";\n\ninterface Props {}\n\nconst NewArrivals: NextPage = ({}) => {\n const newArrivalsUrl = URLS?.newArrivalsUrl;\n\n return (\n
\n \n\n
\n \n

\n Shop All Collections\n

\n \n
\n
\n );\n};\n\nexport default NewArrivals;\n","import { NextPage } from \"next\";\nimport { useState } from \"react\";\nimport Image from \"next/image\";\nimport Link from \"next/link\";\n\ninterface Props {}\n\nconst New: NextPage = ({}) => {\n const [newPageItems] = useState([\n {\n title: \"New Arrivals\",\n desc: \"Mens sport shoes\",\n src: \"/images/newArrival.svg\",\n url: \"/new-arrivals\",\n },\n {\n title: \"New Trending\",\n desc: \"Smart watches\",\n src: \"/images/newTrending.svg\",\n url: \"/trending\",\n },\n ]);\n return (\n
\n {newPageItems.map((pageItem, index) => (\n
\n \"\"\n
\n

\n {pageItem.title}\n

\n

\n {pageItem.desc}\n

\n
\n
\n \n View More\n \n
\n
\n ))}\n
\n );\n};\n\nexport default New;\n","\"use client\";\n\nimport React, { useState } from \"react\";\nimport HeroCarousel from \"@/components/Frontend/Pages/Home/HeroCarousel\";\nimport Collections from \"@/components/Frontend/Pages/Home/Collections\";\nimport FeauturedItems from \"@/components/Frontend/Pages/Home/FeaturedItems\";\nimport LimitedTimeOffer from \"@/components/Frontend/Pages/Home/LimitedTImeOffer\";\nimport TopVendors from \"@/components/Frontend/Pages/Home/TopVendors\";\nimport ShopCategory from \"@/components/Frontend/Pages/Home/ShopCategory\";\nimport NewArrivals from \"@/components/Frontend/Pages/Home/NewArrivals\";\nimport New from \"@/components/Frontend/Pages/Home/New\";\n\nconst Index = () => {\n const [heroSliderItems] = useState([\n {\n src: \"/images/main-banner1.jpg\",\n texts: {\n header: \"New Fashion Collection\",\n sub: \"Sale Offer\",\n description: \"Best Fashion Clothings in the Market\",\n },\n },\n {\n src: \"/images/main-banner2.jpg\",\n texts: {\n header: \"Best Headphone Sets\",\n sub: \"Sale Offer\",\n description: \"Get Amazing and affordable Head sets for your use case\",\n },\n },\n ]);\n\n return (\n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n \n
\n
\n );\n};\n\nexport default Index;\n","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin"],"names":["window","__NEXT_P","push","__webpack_require__","__webpack_exports__","Z","width","height","className","radius","color","text","param","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsxs","div","style","jsx","concat","svg","aria-hidden","xmlns","fill","viewBox","path","d","url","title","description","isLoading","setIsLoading","useState","products","setProducts","nextUrl","setNextUrl","observer","useRef","fetchProducts","productUrl","response","fetch","headers","ok","data","json","prevProducts","results","next","console","error","useEffect","lastProductRef","useCallback","current","disconnect","IntersectionObserver","entries","isIntersecting","node","observe","h4","h2","length","Fragment","map","item","index","ref","ProductItem","product","id","LoadingDataSpinner","FavoriteBorderOutlined","createSvgIcon","jsx_runtime","Products_ProductItem","slug","main_image_thumbnail","price","discount_price","in_stock","in_stock_count","store","wishlists","user","authTokens","useContext","AuthContext","addItemToCart","cartItems","removeItemFromCart","useCart","isItemAddingToWishlist","setIsItemAddingToWishlist","isAddingToCart","setIsAddingToCart","isRemovingFromCart","setIsRemovingFromCart","isProductInWishlist","setIsProductInWishlist","includes","user_id","useMemo","cartItem","find","isProductInCart","Boolean","ModifyCart","e","preventDefault","showToastError","newQuantity","quantity","ModifyWishlist","URLS","access","modifyWishListUrl","Authorization","body","JSON","stringify","to_wish_list","method","showToastSuccess","toastMessages","productRemovedFromWishList","productAddedToWishlist","Link","href","Image","src","alt","onClick","FavoriteBorderOutlinedIcon","fontSize","button","disabled","spinnerHeight","span","HeroCarousel","autoSlide","autoSlideInterval","slides","curr","setCurr","slideInterval","setInterval","clearInterval","transform","priority","quality","texts","header","sub","_","i","Home_Collections","collections","setCollections","filteredCollection","setFilteredCollections","activeCollection","setActiveCollection","fetchCollections","collectionsUrl","handleActiveCollectionChange","collection","filtered_Collections","filter","category","Array","from","Set","Slickslider","dots","infinite","variableWidth","slidesToShow","slidesToScroll","prevArrow","nextArrow","responsive","breakpoint","settings","ImageSkeleton","FeaturedItems","featuredProductsUrl","LimitedTImeOffer","limitedTimeOfferUrl","Home_TopVendors","topVendors","setTopVendors","fetchTopVendors","vendorsCollectionsUrl","log","vendor","display_image_small_thumbnail","name","product_count","Home_ShopCategory","shopCategories","setShopCategories","fetchShopCategories","shopCategoriesUrl","shopCategory","display_image","Home_NewArrivals","newArrivalsUrl","PaginatedProducts","Home_New","newPageItems","desc","pageItem","pages","heroSliderItems","section","Collections","New","FeauturedItems","LimitedTimeOffer","TopVendors","ShopCategory","NewArrivals"],"sourceRoot":""}