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SAAQ,CAACC,UAAUC,EAAAA,EAAAA,KAACnD,EAAM,IAAIoD,UAAED,EAAAA,EAAAA,KAAC3C,EAAa,CAAC8C,KAAMT,EAAaY,OAAO,cAIlFN,EAAAA,EAAAA,KAAA,OAAKE,UAAU,cACfF,EAAAA,EAAAA,KAAC1C,EAAM,MAInB,EAEA,UAAeR,EAAAA,KAAWU,E","sources":["Container/Home.js"],"sourcesContent":["import React, { useEffect, Suspense, lazy,useState} from 'react'\nimport { useDispatch, useSelector } from 'react-redux'; \nimport { getMostViewProduct } from '../Redux/Action/ProductAction';\nimport { getMostViewStore } from '../Redux/Action/StoreAction';\nimport './styles/Home.css'\n\nconst Loader = React.lazy(() => import('../Component/Loader'));\nconst Header = lazy(() => import('../Component/Header/Header'));\nconst Banner = lazy(() => import('../Component/Banner/Banner'));\nconst Vertical = lazy(() => import('../Component/Verticals/Verticals'));\nconst Cauroselproduct = lazy(() => import('../Component/Caurosel/Cauroselproduct'));\nconst Cauroselstore = lazy(() => import('../Component/Caurosel/Cauroselstore'));\nconst Cauroselbrand = lazy(() => import('../Component/Caurosel/Cauroselbrand'))\nconst Footer = lazy(() => import('../Component/Footer/Footer'));\nconst Homeslider = lazy(() => import('../Component/Homeslider/Homeslider'));\nconst Home = () => {\n \n const dispatch = useDispatch();\n const city = useSelector(state => state.UserPreference.city)\n const [latitude, setLatitude] = useState(null);\n const [longitude, setLongitude] = useState(null);\n\n useEffect(() => {\n if (navigator.geolocation) {\n navigator.geolocation.getCurrentPosition(\n \n (position) => {\n \n setLatitude(position.coords.latitude);\n setLongitude(position.coords.longitude);\n },\n (error) => {\n console.log(error.message);\n }\n );\n } else {\n console.log('Geolocation is not supported by this browser.');\n }\n }, []);\n useEffect(() => {\n dispatch(getMostViewProduct(city))\n dispatch(getMostViewStore(city))\n\n }, [city])\n\n const mostViewProduct = useSelector(state => state.Product.mostView);\n const mostViewStore = useSelector(state => state.Store.mostView);\n const offersBrand = useSelector(state => state.Department.department);\n return ( \n