import { createStackNavigator } from '@react-navigation/stack';
import { createDrawerNavigator } from '@react-navigation/drawer';
import { useRoute } from '@react-navigation/native';
import Project from '../../screens/Project';
import Login from '../../screens/Login';
import Mpin from '../../screens/Mpin';
import MpinLogin from '../../screens/MpinLogin';
import One_QAD from '../../screens/One_QAD';
import { PrimaryTheme } from '../../styles/Themes';
// import Icon from 'react-native-vector-icons/Ionicons';
import DownloadDataScreen from '../../screens/DownloadDataScreen';
import ReportsMenu from '../../screens/ReportsMenu';
// import VideoPlayerScreen from '../../screens/VideoPlayer';
import UploadDataScreen from '../../screens/UploadData';
import Splash from '../../screens/SplashScreen';
import VisitorLogin from '../../screens/VisitorLogin';
import PersonalDocument from '../../screens/PersonalDocument';
import Training from '../../screens/Training';
import StoreList from '../../screens/StoreList';
import StoreDailyMenu from '../../screens/StoreDailyMenu';
import StoreCheckin from '../../screens/CheckInStore';
import GeoTag from '../../screens/GeoTag';
import ShowMap from '../../screens/ShowMap';
import StoreNonWorkingReasons from '../../screens/StoreNonWorkingReasons';
import Settings from '../../screens/Settings';
import OpeningStock from '../../screens/OpeningStock';
import BackroomStock from '../../screens/BackroomStock';
import MiddayStock from '../../screens/MiddayStock';
import ClosingStock from '../../screens/ClosingStock';
import ShareOfShelf from '../../screens/ShareOfShelf';
import PaidVisibility from '../../screens/PaidVisibility';
import AdditionalVisibility from '../../screens/AdditionalVisibility';
import CompetitionVisibility from '../../screens/CompetitionVisibility';
import Promotion from '../../screens/Promotion';
import CompetitionPromotion from '../../screens/CompetitionPromotion';
import ContactConversion from '../../screens/ContactConversion';
import Sale from '../../screens/Sale';
import SurveyList from '../../screens/SurveyList';
import POSSale from '../../screens/POSSale';
import DBVisiCooler from '../../screens/DBVisiCooler';
// import StockQR from '../../screens/StockQR';
// import StockQRCode from '../../screens/StockQRCode';
import { DrawerContent } from './drawerContent';
import { globalStyles, customStyles, GetPageTheme } from "../../styles/Global";
import { Text, ImageBackground } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import * as React from 'react';
import { FontAwesome } from '../../components/icons';
import { TouchableOpacity } from 'react-native';
import ChangePassword from '../../screens/ChangePassword';
import StockPromo from '../../screens/StockPromo';
import WareHouseCampaignWise from '../../screens/WareHouseCampaignWise';
import WareHousePaidVi from '../../screens/WareHousePaidVi';
import Warehouseinward from '../../screens/Warehouseinward';
import WarehouseinwardDetail from '../../screens/WarehouseinwardDetail';
// NotificationList
import NotificationList from '../../screens/NotificationList';
import NotificationListDetail from '../../screens/NotificationListDetail';
//arman
import StockUniqueQRCode from '../../screens/StockUniqueQRCode';
import SaleQRCode from '../../screens/SaleQRCode';
import StoreProfileKyc from '../../screens/StoreProfileKyc';
import KycStoreList from '../../screens/KycStoreList';
import KycForm from '../../screens/KycForm';
import StoreKycForm from '../../screens/StoreKycForm';
////gyancast and gyan buddy
import Gyancasts from "../../screens/gyancast/Gyancasts";
import PodcastDetails from '../../screens/gyancast/PodcastDetails';
import QuestionnaireScreen from '../../screens/gyancast/QuestionnaireScreen';
import ChatScreen from '../../screens/chat/ChatScreen';
import OfflineOrder from '../../screens/OfflineOrder';
import StoreListMappView from '../../screens/StoreListMappView';
import ReturnStock from '../../screens/ReturnStock';
import OrderSimplify from '../../screens/OrderSimplify';
import PrevOrders from '../../screens/PrevOrders';
import TrainingMenu from '../../screens/TrainingMenu';
import NavigationRouteScreen from '../../screens/maps_navigation/NavigationRouteScreen';
import NavigationScreen from '../../screens/maps_navigation/NavigationScreen';
import GroomingPictures from '../../screens/GroomingPictures';
import { logout } from '../../components/logout';

const NoticeBoard = React.lazy(() => import('../../screens/NoticeBoard'));




const DynamicStoreList = React.lazy(() => import('../../screens/DynamicStoreList'));
const DynamicSurveys = React.lazy(() => import('../../screens/DynamicSurveys'));
const DynamicSurveyCat = React.lazy(() => import('../../screens/DynamicSurveyCat'));
const SurveyView = React.lazy(() => import('../../screens/SurveyView'));
const SurveyCat = React.lazy(() => import('../../screens/SurveyCat'));
const QuestionsScreen = React.lazy(() => import('../../screens/QuestionsScreen'));
const Window = React.lazy(() => import('../../screens/Window'));
const Stock = React.lazy(() => import('../../screens/Stock'));
const ContactUs = React.lazy(() => import('../../screens/ContactUs'));
const POSM = React.lazy(() => import('../../screens/POSM'));
const Feedback = React.lazy(() => import('../../screens/Feedback'));
const SimplePromotion = React.lazy(() => import('../../screens/SimplePromotion'));
const StoreImages = React.lazy(() => import('../../screens/StoreImages'));
const StoreImagesCap = React.lazy(() => import('../../screens/StoreImagesCap'));
const CameraScreen = React.lazy(() => import('../../screens/CameraScreen'));
const ShelfTalker = React.lazy(() => import('../../screens/ShelfTalker'));
const StockCat = React.lazy(() => import('../../screens/StockCat'));
const StockWithCat = React.lazy(() => import('../../screens/StockWithCat'));
const StoreDailyMenuCat = React.lazy(() => import('../../screens/StoreDailyMenuCat'));
const PromotionOneApp = React.lazy(() => import('../../screens/PromotionOneApp'));
const PaidVisibilityOneApp = React.lazy(() => import('../../screens/PaidVisibilityOneApp'));
const ShareOfShelfOneApp = React.lazy(() => import('../../screens/ShareOfShelfOneApp'));
const CategoryExec = React.lazy(() => import('../../screens/CategoryExec'));
const GetDb = React.lazy(() => import('../../screens/GetDb'));
const WarehousePOSM = React.lazy(() => import('../../screens/WarehousePOSM'));
const Warehouse = React.lazy(() => import('../../screens/Warehouse'));
const StoreScore = React.lazy(() => import('../../screens/StoreScore'));
const Order = React.lazy(() => import('../../screens/Order'));
const VideoScreen = React.lazy(() => import('../../screens/VideoScreen'));
const StoreChecklist = React.lazy(() => import('../../screens/StoreChecklist'));
const BeatPlan = React.lazy(() => import('../../screens/BeatPlan'));
const ReportDetail = React.lazy(() => import('../../screens/ReportDetail'));
const DistributorList = React.lazy(() => import('../../screens/DistributorList'));
const DistributorCheckin = React.lazy(() => import('../../screens/CheckInDistributor'));
const AddStoreScreen = React.lazy(() => import('../../screens/AddStoreScreen'));
const StoreProfile = React.lazy(() => import('../../screens/StoreProfile'));
const DB_StoreDailyMenu = React.lazy(() => import('../../screens/DB_StoreDailyMenu'));
const DB_POSM = React.lazy(() => import('../../screens/DB_POSM'));
const DB_Window = React.lazy(() => import('../../screens/DB_Window'));
const DBNonWorkingReasons = React.lazy(() => import('../../screens/DBNonWorkingReasons'));
const OrderStatus = React.lazy(() => import('../../screens/OrderStatus'));
const OrderDetail = React.lazy(() => import('../../screens/OrderDetail'));
const VisitorFeedback = React.lazy(() => import('../../screens/VisitorFeedback'));
const VisitorFeedbackQA = React.lazy(() => import('../../screens/VisitorFeedbackQA'));
const WebViewScreen = React.lazy(() => import('../../screens/WebViewScreen'));
const SamplingList = React.lazy(() => import('../../screens/SamplingList'));
const SamplingView = React.lazy(() => import('../../screens/SamplingView'));
const SamplingInventory = React.lazy(() => import('../../screens/SamplingInventory'));
const Sampling_Stock = React.lazy(() => import('../../screens/Sampling_Stock'));
const SamplingCustTrack = React.lazy(() => import('../../screens/SamplingCustTrack'));
const KPICategories = React.lazy(() => import('../../screens/KPICategories'));
const Bannerdetail = React.lazy(() => import('../../screens/Bannerdetail'));
const WindowIR = React.lazy(() => import('../../screens/WindowIR'));
const ShareOfShelfOneAppIR = React.lazy(() => import('../../screens/ShareOfShelfOneAppIR'));
const PaidVisibilityOneAppIR = React.lazy(() => import('../../screens/PaidVisibilityOneAppIR'));
const AdditionalVisibilityIR = React.lazy(() => import('../../screens/AdditionalVisibilityIR'));
const CompetitionVisibilityIR = React.lazy(() => import('../../screens/CompetitionVisibilityIR'));
const IRPendingDetails = React.lazy(() => import('../../screens/IRPendingDetails'));
const ProgramList = React.lazy(() => import('../../screens/ProgramList'));
const ProgramQuestions = React.lazy(() => import('../../screens/ProgramQuestions'));
const QRScanner = React.lazy(() => import('../../components/QRScanner'));
const ProgramChecklist = React.lazy(() => import('../../screens/ProgramChecklist'));
const ContractFormStores = React.lazy(() => import('../../screens/ContractFormStores'));
const TGBaseVisiCooler = React.lazy(() => import('../../screens/TGBaseVisiCooler'));
const ContractPrograms = React.lazy(() => import('../../screens/ContractPrograms'));
const ContractForm = React.lazy(() => import('../../screens/ContractForm'));
const DynamicStoreScore = React.lazy(() => import('../../screens/DynamicStoreScore'));
const MissedCallList = React.lazy(() => import('../../screens/MissedCallList'));
const MissedCallView = React.lazy(() => import('../../screens/MissedCallView'));
const SOSEyeLevel = React.lazy(() => import('../../screens/SOSEyeLevel'));
const BreakTime = React.lazy(() => import('../../screens/BreakTime'));
const ReportChart = React.lazy(() => import('../../screens/ReportChart'));
const AdditionalVisibilityIR_Only = React.lazy(() => import('../../screens/AdditionalVisibilityIR_Only'));
const ShareOfShelfOneAppIR_Only = React.lazy(() => import('../../screens/ShareOfShelfOneAppIR_Only'));
const PaidVisibilityOneAppIR_Only = React.lazy(() => import('../../screens/PaidVisibilityOneAppIR_Only'));
const VisitorLoginQA = React.lazy(() => import('../../screens/VisitorLoginQA'));
const DashboardReportDetail = React.lazy(() => import('../../screens/DashboardReportDetail'));
// const TrainingMenu = React.lazy(() => import('../../screens/TrainingMenu'));
const StoreReport = React.lazy(() => import('../../screens/StoreReport'));
const AddStoreInfo = React.lazy(() => import('../../screens/AddStoreInfo'));
const StoreInfoList = React.lazy(() => import('../../screens/StoreInfoList'));
const PromotionOneAppIR = React.lazy(() => import('../../screens/PromotionOneAppIR'));
const HomeLocation = React.lazy(() => import('../../screens/HomeLocation'));
const PrevStoreReason = React.lazy(() => import('../../screens/PrevStoreReason'));
// const ChangePassword = React.lazy(() => import('../../screens/ChangePassword'));
const ForgotPassword = React.lazy(() => import('../../screens/ForgotpasswordScreen/Forgotpassword'));
const VerifyOTP = React.lazy(() => import('../../screens/ForgotpasswordScreen/VerifyOTP'));
const CreatePassword = React.lazy(() => import('../../screens/ForgotpasswordScreen/Createpassword'));
const AddStore = React.lazy(() => import('../../screens/AddStore'));
const AddedStoreList = React.lazy(() => import('../../screens/AddedStoreList'));
const MiscMenuList = React.lazy(() => import('../../screens/MiscMenuList'));
const BannerMoreInfo = React.lazy(() => import('../../screens/BannerMoreInfo'));

const Stack = createStackNavigator();
const Drawer = createDrawerNavigator();

function DrawerRoutes(props) {
    const route = useRoute();

    // ✅ Add safety checks
    const PageTheme = GetPageTheme(props.DarkMode, route.name) || {};
    const customStyle = customStyles(props.DarkMode, route.name) || {};
    const globalStyle = globalStyles(props.DarkMode, route.name) || {};

    let params = props.route.params ? props.route.params : {};
    let UserData = params.UserData || {};
    let username = UserData.UserId || '';
    let set_startDownload = params.set_startDownload || function () { };
    let useremail = '';
    let pageprops = props.pageprops;

    return (
        <Drawer.Navigator initialRouteName="NoticeBoard" drawerContent={props => <DrawerContent {...props} UserName={username} UserEmail={useremail} pageprops={pageprops} />}
            screenOptions={{
                headerTintColor: PrimaryTheme.$primary_color,
                drawerType: 'front',
            }}>
            <Drawer.Screen name="NoticeBoard" component={NoticeBoard} options={{
                headerShown: false,
            }} />
        </Drawer.Navigator>
    )
}


export const AuthStack = (props) => {
    let props1 = props;
    return (
        <Stack.Navigator initialRouteName={'initialScreen'}>
            <Stack.Screen name={'initialScreen'} component={Splash} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Project'} component={Project} options={{ headerShown: false }}></Stack.Screen>


            <Stack.Screen {...props} name={'NoticeBoard'} options={{ headerShown: false }}>
                {props => <DrawerRoutes {...props} pageprops={props1} />}
            </Stack.Screen>
            <Stack.Screen 
            // {...props} 
            name={'One_QAD'} component={One_QAD} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DownloadDataScreen'} component={DownloadDataScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'UploadData'} component={UploadDataScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreList'} component={StoreList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AddStoreInfo'} component={AddStoreInfo} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreInfoList'} component={StoreInfoList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreCheckin'} component={StoreCheckin} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreDailyMenu'} component={StoreDailyMenu} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreDailyMenuCat'} component={StoreDailyMenuCat} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'OpeningStock'} component={OpeningStock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'BackroomStock'} component={BackroomStock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'MiddayStock'} component={MiddayStock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ClosingStock'} component={ClosingStock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ShareOfShelf'} component={ShareOfShelf} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PaidVisibility'} component={PaidVisibility} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AdditionalVisibility'} component={AdditionalVisibility} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'CompetitionVisibility'} component={CompetitionVisibility} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Promotion'} component={Promotion} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'CompetitionPromotion'} component={CompetitionPromotion} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ContactConversion'} component={ContactConversion} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Sale'} component={Sale} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SurveyList'} component={SurveyList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SurveyCat'} component={SurveyCat} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SurveyView'} component={SurveyView} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Window'} component={Window} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Stock'} component={Stock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'POSM'} component={POSM} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Feedback'} component={Feedback} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SimplePromotion'} component={SimplePromotion} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreImages'} component={StoreImages} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ShelfTalker'} component={ShelfTalker} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PromotionOneApp'} component={PromotionOneApp} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PromotionOneAppIR'} component={PromotionOneAppIR} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StockCat'} component={StockCat} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StockWithCat'} component={StockWithCat} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PaidVisibilityOneApp'} component={PaidVisibilityOneApp} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ShareOfShelfOneApp'} component={ShareOfShelfOneApp} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'GetDb'} component={GetDb} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'CategoryExec'} component={CategoryExec} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WarehousePOSM'} component={WarehousePOSM} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WareHouseCampaignWise'} component={WareHouseCampaignWise} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Warehouse'} component={Warehouse} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WarehousePaidVi'} component={WareHousePaidVi} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreScore'} component={StoreScore} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Order'} component={Order} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'VideoScreen'} component={VideoScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreChecklist'} component={StoreChecklist} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'BeatPlan'} component={BeatPlan} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ReportDetail'} component={ReportDetail} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DistributorList'} component={DistributorList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DistributorCheckIn'} component={DistributorCheckin} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AddStoreScreen'} component={AddStoreScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreProfile'} component={StoreProfile} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreReport'} component={StoreReport} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DB_StoreDailyMenu'} component={DB_StoreDailyMenu} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DB_POSM'} component={DB_POSM} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DB_Window'} component={DB_Window} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DBNonWorkingReasons'} component={DBNonWorkingReasons} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'OrderStatus'} component={OrderStatus} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'OrderDetail'} component={OrderDetail} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'KPICategories'} component={KPICategories} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'POSSale'} component={POSSale} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Bannerdetail'} component={Bannerdetail} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WindowIR'} component={WindowIR} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ShareOfShelfOneAppIR'} component={ShareOfShelfOneAppIR} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PaidVisibilityOneAppIR'} component={PaidVisibilityOneAppIR} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AdditionalVisibilityIR'} component={AdditionalVisibilityIR} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'CompetitionVisibilityIR'} component={CompetitionVisibilityIR} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'IRPendingDetails'} component={IRPendingDetails} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ChangePassword'} component={ChangePassword} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ReportsMenu'} component={ReportsMenu} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Settings'} component={Settings} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'VisitorLogin'} component={VisitorLogin} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PersonalDocument'} component={PersonalDocument} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Training'} component={Training} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreImagesCap'} component={StoreImagesCap} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'CameraScreen'} component={CameraScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'GeoTag'} component={GeoTag} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreNonWorkingReasons'} component={StoreNonWorkingReasons} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ShowMap'} component={ShowMap} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Login'} component={Login} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ForgotPassword'} component={ForgotPassword} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'VerifyOTP'} component={VerifyOTP} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'CreatePassword'} component={CreatePassword} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'Mpin'} component={Mpin} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'MpinLogin'} component={MpinLogin} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ContactUs'} component={ContactUs} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DynamicStoreList'} component={DynamicStoreList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DynamicSurveys'} component={DynamicSurveys} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DynamicSurveyCat'} component={DynamicSurveyCat} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'QuestionsScreen'} component={QuestionsScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'VisitorFeedback'} component={VisitorFeedback} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'VisitorFeedbackQA'} component={VisitorFeedbackQA} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'VisitorLoginQA'} component={VisitorLoginQA} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WebViewScreen'} component={WebViewScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SamplingList'} component={SamplingList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SamplingView'} component={SamplingView} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SamplingInventory'} component={SamplingInventory} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SamplingCustTrack'} component={SamplingCustTrack} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SamplingStock'} component={Sampling_Stock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ProgramList'} component={ProgramList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ProgramQuestions'} component={ProgramQuestions} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'QRScanner'} component={QRScanner} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ProgramChecklist'} component={ProgramChecklist} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ContractFormStores'} component={ContractFormStores} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ContractPrograms'} component={ContractPrograms} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ContractForm'} component={ContractForm} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AdditionalVisibilityIR_Only'} component={AdditionalVisibilityIR_Only} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ShareOfShelfOneAppIR_Only'} component={ShareOfShelfOneAppIR_Only} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PaidVisibilityOneAppIR_Only'} component={PaidVisibilityOneAppIR_Only} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'TGBaseVisiCooler'} component={TGBaseVisiCooler} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DynamicStoreScore'} component={DynamicStoreScore} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'MissedCallList'} component={MissedCallList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'MissedCallView'} component={MissedCallView} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SOSEyeLevel'} component={SOSEyeLevel} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'BreakTime'} component={BreakTime} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ReportChart'} component={ReportChart} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DashboardReportDetail'} component={DashboardReportDetail} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'TrainingMenu'} component={TrainingMenu} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'HomeLocation'} component={HomeLocation} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PrevStoreReason'} component={PrevStoreReason} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WareHouseInward'} component={Warehouseinward} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StockPromo'} component={StockPromo} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'WareHouseInwardDetail'} component={WarehouseinwardDetail} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'DBVisiCooler'} component={DBVisiCooler} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'NotificationList'} component={NotificationList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'NotificationListDetail'} component={NotificationListDetail} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AddStore'} component={AddStore} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'AddedStoreList'} component={AddedStoreList} options={{ headerShown: false }} />
            <Stack.Screen name={'StockUniqueQRCode'} component={StockUniqueQRCode} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'SaleQRCode'} component={SaleQRCode} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreProfileKyc'} component={StoreProfileKyc} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'KycStoreList'} component={KycStoreList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'KycForm'} component={KycForm} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'StoreKycForm'} component={StoreKycForm} options={{ headerShown: false }}></Stack.Screen>
            {/* <Stack.Screen name={'ReportDetailNew'} component={ReportDetailNew} options={{ headerShown: false }}></Stack.Screen> */}
            {/* <Stack.Screen name={'StockQR'} component={StockQR} options={{ headerShown: false }}></Stack.Screen> */}
            {/* <Stack.Screen name={'StockQRCode'} component={StockQRCode} options={{ headerShown: false }}></Stack.Screen> */}

            <Stack.Screen name={'Gyancasts'} component={Gyancasts} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'PodcastDetails'} component={PodcastDetails} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'QuestionnaireScreen'} component={QuestionnaireScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ChatScreen'} component={ChatScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'OfflineOrder'} component={OfflineOrder} options={{ headerShown: false }}></Stack.Screen>

            <Stack.Screen name={'StoreListMappView'} component={StoreListMappView} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'ReturnStock'} component={ReturnStock} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'OrderSimplify'} component={OrderSimplify} options={{ headerShown: false }}></Stack.Screen>

            <Stack.Screen name={'PrevOrders'} component={PrevOrders} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'MiscMenuList'} component={MiscMenuList} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'GroomingPictures'} component={GroomingPictures} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'NavigationRouteScreen'} component={NavigationRouteScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'NavigationScreen'} component={NavigationScreen} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'logout'} component={logout} options={{ headerShown: false }}></Stack.Screen>
            <Stack.Screen name={'BannerMoreInfo'} component={BannerMoreInfo} options={{ headerShown: false }}></Stack.Screen>

        </Stack.Navigator>
    );
};

