{"version":3,"sources":["store/types/alert.js","store/reducers/alert_reducer.js","store/types/auth_type.js","store/reducers/auth_reducer.js","store/types/collection_type.js","store/reducers/collection_reducer.js","store/types/product_type.js","store/reducers/product_reducer.js","store/types/category_type.js","store/reducers/category_reducer.js","store/types/blog_type.js","store/reducers/blog_reducer.js","store/types/banner_type.js","store/reducers/banner_reducer.js","store/types/mobilebanner_type.js","store/reducers/mobilebanner_reducer.js","store/types/webpage_type.js","store/reducers/webpage_reducer.js","store/types/setting_type.js","store/reducers/setting_reducer.js","store/types/presswork_type.js","store/reducers/presswork_reducer.js","store/reducers/index.js","store/store.js","domain/constant.js","domain/api.js","store/actions/alert.js","domain/setAuthToken.js","store/actions/auth.js","shared/handleError.js","store/actions/setting_action.js","shared/hooks/UseSetting.js","containers/common/Footer.js","store/actions/collection_action.js","shared/hooks/UseCollection.js","containers/common/Header.js","store/actions/banner_action.js","shared/hooks/UseBanner.js","store/actions/mobilebanner_action.js","shared/hooks/UseMobilebanner.js","containers/home/Home.js","components/layout/Spinner.js","shared/Routes/BeforeLoginRoutes.js","containers/notfound/PageNotFound.js","shared/Routes/PrivateRoutes.js","components/Form/Form.js","shared/hooks/UseAuth.js","containers/login/Login.js","containers/login/ForgetPassword.js","containers/login/ResetPassword.js","components/breadcrum/Breadcrum.js","containers/thankyou/ThankYou.js","containers/common/HeaderForGg.js","containers/banner/Banner.js","containers/contactus/Contact.js","containers/aboutus/About.js","components/blog/BlogCard.js","store/actions/blog_action.js","shared/hooks/UseBlog.js","store/actions/webpage_action.js","shared/hooks/UseWebpage.js","containers/blog/Blog.js","containers/saree/PremiumSaree.js","containers/banner/BannerForGg.js","containers/ggabout/GgAbout.js","containers/brocadestory/BrocadeStory.js","containers/heritagebridal/HeritageBridal.js","containers/blog/SingleBlog.js","containers/policy/Privacy.js","containers/policy/RefundPolicy.js","containers/saree/Bridal.js","containers/collection/SingleCollection.js","store/actions/presswork_action.js","shared/hooks/UsePresswork.js","containers/press/Press.js","containers/faq/Faq.js","App.js","reportWebVitals.js","index.js"],"names":["SET_ALERT","REMOVE_ALERT","initialState","REGISTER_SUCCESS","USER_LOADED","AUTH_ERROR","LOGIN_SUCCESS","LOGIN_FAIL","LOGOUT","GET_PROFILE","isAuthenticated","profile","loading","error","user","GET_COLLECTIONS_STATED","GET_COLLECTIONS","GET_COLLECTIONS_ENDED","ADD_COLLECTION_STATED","ADD_COLLECTION","ADD_COLLECTION_ENDED","EDIT_COLLECTION_STATED","EDIT_COLLECTION","EDIT_COLLECTION_ENDED","GET_COLLECTION","GET_COLLECTION_STATED","GET_COLLECTION_ENDED","GET_ALL_COLLECTIONS_STATED","GET_ALL_COLLECTIONS","GET_ALL_COLLECTIONS_ENDED","collections_loading","collections","page","pages","total_collections","collection","collection_loading","collection_message","all_collections","all_collections_loading","add_collection_loading","edit_collection_loading","GET_PRODUCTS_STATED","GET_PRODUCTS","GET_PRODUCTS_ENDED","ADD_PRODUCT_STATED","ADD_PRODUCT","ADD_PRODUCT_ENDED","EDIT_PRODUCT_STATED","EDIT_PRODUCT","EDIT_PRODUCT_ENDED","GET_PRODUCT","GET_PRODUCT_STATED","GET_PRODUCT_ENDED","GET_ALL_PRODUCTS_STATED","GET_ALL_PRODUCTS","GET_ALL_PRODUCTS_ENDED","products_loading","products","total_products","product","product_loading","product_message","all_products","all_products_loading","add_product_loading","edit_product_loading","GET_CATEGORYS_STATED","GET_CATEGORYS","GET_CATEGORYS_ENDED","ADD_CATEGORY_STATED","ADD_CATEGORY","ADD_CATEGORY_ENDED","EDIT_CATEGORY_STATED","EDIT_CATEGORY","EDIT_CATEGORY_ENDED","GET_CATEGORY","GET_CATEGORY_STATED","GET_CATEGORY_ENDED","GET_ALL_CATEGORYS_STATED","GET_ALL_CATEGORYS","GET_ALL_CATEGORYS_ENDED","categorys_loading","categorys","total_categorys","category","category_loading","category_message","all_categorys","all_categorys_loading","add_category_loading","edit_category_loading","GET_BLOGS_STATED","GET_BLOGS","GET_BLOGS_ENDED","ADD_BLOG_STATED","ADD_BLOG","ADD_BLOG_ENDED","EDIT_BLOG_STATED","EDIT_BLOG","EDIT_BLOG_ENDED","GET_BLOG","GET_BLOG_STATED","GET_BLOG_ENDED","GET_ALL_BLOGS_STATED","GET_ALL_BLOGS","GET_ALL_BLOGS_ENDED","blogs_loading","blogs","total_blogs","blog","blog_loading","blog_message","all_blogs","all_blogs_loading","add_blog_loading","edit_blog_loading","GET_BANNERS_STATED","GET_BANNERS","GET_BANNERS_ENDED","ADD_BANNER_STATED","ADD_BANNER","ADD_BANNER_ENDED","EDIT_BANNER_STATED","EDIT_BANNER","EDIT_BANNER_ENDED","GET_BANNER","GET_BANNER_STATED","GET_BANNER_ENDED","GET_ALL_BANNERS_STATED","GET_ALL_BANNERS","GET_ALL_BANNERS_ENDED","banners_loading","banners","total_banners","banner","banner_loading","banner_message","all_banners","all_banners_loading","add_banner_loading","edit_banner_loading","GET_MOBILEBANNERS_STATED","GET_MOBILEBANNERS","GET_MOBILEBANNERS_ENDED","ADD_MOBILEBANNER_STATED","ADD_MOBILEBANNER","ADD_MOBILEBANNER_ENDED","EDIT_MOBILEBANNER_STATED","EDIT_MOBILEBANNER","EDIT_MOBILEBANNER_ENDED","GET_MOBILEBANNER","GET_MOBILEBANNER_STATED","GET_MOBILEBANNER_ENDED","GET_ALL_MOBILEBANNERS_STATED","GET_ALL_MOBILEBANNERS","GET_ALL_MOBILEBANNERS_ENDED","mobilebanners_loading","mobilebanners","total_mobilebanners","mobilebanner","mobilebanner_loading","mobilebanner_message","all_mobilebanners","all_mobilebanners_loading","add_mobilebanner_loading","edit_mobilebanner_loading","GET_WEBPAGES_STATED","GET_WEBPAGES","GET_WEBPAGES_ENDED","ADD_WEBPAGE_STATED","ADD_WEBPAGE","ADD_WEBPAGE_ENDED","EDIT_WEBPAGE_STATED","EDIT_WEBPAGE","EDIT_WEBPAGE_ENDED","GET_WEBPAGE","GET_WEBPAGE_STATED","GET_WEBPAGE_ENDED","GET_ALL_WEBPAGES_STATED","GET_ALL_WEBPAGES","GET_ALL_WEBPAGES_ENDED","webpages_loading","webpages","total_webpages","webpage","webpage_loading","webpage_message","all_webpages","all_webpages_loading","add_webpage_loading","edit_webpage_loading","GET_SETTINGS_STATED","GET_SETTINGS","GET_SETTINGS_ENDED","settings","GET_PRESSWORKS_STATED","GET_PRESSWORKS","GET_PRESSWORKS_ENDED","ADD_PRESSWORK_STATED","ADD_PRESSWORK","ADD_PRESSWORK_ENDED","EDIT_PRESSWORK_STATED","EDIT_PRESSWORK","EDIT_PRESSWORK_ENDED","GET_PRESSWORK","GET_PRESSWORK_STATED","GET_PRESSWORK_ENDED","GET_ALL_PRESSWORKS_STATED","GET_ALL_PRESSWORKS","GET_ALL_PRESSWORKS_ENDED","pressworks_loading","pressworks","total_pressworks","presswork","presswork_loading","presswork_message","all_pressworks","all_pressworks_loading","add_presswork_loading","edit_presswork_loading","combineReducers","alert","state","action","type","payload","filter","id","auth","token","count","setting","middleware","thunk","store","createStore","rootReducer","composeWithDevTools","applyMiddleware","URI","process","api","axios","create","baseURL","headers","interceptors","response","use","res","err","status","dispatch","Promise","reject","setAlert","msg","alertType","timeout","uuidv4","setTimeout","setAuthToken","defaults","common","Authorization","localStorage","setItem","removeItem","loadUser","a","get","data","register","formData","post","handleError","login","console","log","forgetPassword","resetPassword","logout","errors","message","handleErrorLocal","useGetSetting","useDispatch","useSelector","useEffect","Footer","is_gg_page","setting_data","className","src","to","href","target","gg_facebook_link","gg_instagram_link","gg_twitter_link","gg_youtube_link","gg_whatsapp_link","facebook_link","instagram_link","twitter_link","youtube_link","whatsapp_link","useSingleCollectionBySlug","slug","useSelectAllCollection","useState","term","setTerm","value","setValue","getAllCollections","Header","navMenu","useRef","showCollection","setShowCollection","window","scrollTo","location","ref","onClick","current","style","width","class","aria-hidden","map","item","hide_on_menu","brand","name","logo","useSelectAllBanner","getAllBanners","useSelectAllMobilebanner","getAllMobilebanners","Home","banner_Data","mobile_banner_Data","htmlFor","image","Spinner","margin","display","alt","connect","Component","component","redirectTo","rest","render","props","data-aos","data-aos-delay","placeholder","required","TextInput","label","useField","field","meta","useForgetPassword","Login","useRegisterUser","registerUser","useLoginUser","forgetUserPassword","initialValues","username","password","validationSchema","Yup","onSubmit","values","setSubmitting","resetForm","formik","phone","email","ForgetPassword","ResetPassword","match","useResetPassword","resetUserPassword","repeat_password","oneOf","params","Breadcrum","title","aria-label","To","ThankYou","borderRadius","HeaderForGg","Banner","Banner_title","Banner_gg_logo","Banner_desktop_img","Banner_content","Banner_mobile_img","is_asha_page","Contact","store_address","contact_no1","contact_no2","email_address","dangerouslySetInnerHTML","__html","map_integrate_links","About","BlogCard","blog_title","blog_content","blog_added_date","blog_featured_image","blog_slug","useSelectAllBlog","getAllBlogs","useSingleWebpageBySlug","useSelectAllWebpage","getAllWebpages","Blog","blog_featured_img","blog_featured_title","blog_short_description","renderHTML","substring","moment","createdAt","format","PremiumSaree","BannerForGg","GgAbout","BrocadeStory","tabIndex","HeritageBridal","SingleBlog","banner_title","component_type","cols","component_field_type","text","Privacy","refund_policy","renderHtml","RefundPolicy","Bridal","activeImage","setActiveImage","React","setIsOpen","openModal","collection_banner_img","collection_mobile_banner_img","featured_img","description","gallery","onClose","SingleCollection","youtube_shots_link","height","frameborder","allow","allowfullscreen","youtube_footer_video_link","ashagautam_youtube_link","useSelectAllPresswork","getAllPressworks","Press","isImageShowing","setIsImageShowing","imgPath","setImgPath","position","top","left","background","zIndex","objectFit","Faq","Accordion","defaultActiveKey","flush","Item","eventKey","Body","App","getItem","exact","path","PageNotFound","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","StrictMode","document","getElementById"],"mappings":"qRAAaA,EAAY,YACZC,EAAe,eCCtBC,EAAe,G,OCFRC,EAAmB,mBAEnBC,EAAc,cACdC,EAAa,aACbC,EAAgB,gBAChBC,EAAa,aACbC,EAAS,SACTC,EAAc,cCIrBP,EAAe,CACnBQ,gBAAiB,KACjBC,QAAS,KACTC,SAAS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KAC1C,eAAC,IAAD,CAAOiG,OAAK,EAACC,KAAK,mBAAmB9I,UAAWgC,KAChD,eAAC,IAAD,CACE6G,OAAK,EACLC,KAAK,yBACL9I,UAAWiC,KAEb,eAAC,GAAD,CAAmB4G,OAAK,EAACC,KAAK,SAAS9I,UAAWe,KAIlD,eAAC,IAAD,CAAOf,UAAW+I,aCtEbC,GAZS,SAAAC,GAClBA,GAAeA,aAAuBC,UACxC,8BAAqBC,MAAK,YAAkD,IAA/CC,EAA8C,EAA9CA,OAAQC,EAAsC,EAAtCA,OAAQC,EAA8B,EAA9BA,OAAQC,EAAsB,EAAtBA,OAAQC,EAAc,EAAdA,QAC3DJ,EAAOH,GACPI,EAAOJ,GACPK,EAAOL,GACPM,EAAON,GACPO,EAAQP,OCDdQ,IAAStJ,OACP,eAAC,IAAMuJ,WAAP,UACE,eAAC,GAAD,MAEFC,SAASC,eAAe,SAM1BZ,O","file":"static/js/main.e754712c.chunk.js","sourcesContent":["export const SET_ALERT = \"SET_ALERT\";\r\nexport const REMOVE_ALERT = \"REMOVE_ALERT\";\r\n","import { SET_ALERT, REMOVE_ALERT } from \"../types/alert\";\r\n\r\nconst initialState = [];\r\n\r\nexport default function (state = initialState, action) {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case SET_ALERT:\r\n return [...state, payload];\r\n case REMOVE_ALERT:\r\n return state.filter((alert) => alert.id !== payload);\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const REGISTER_SUCCESS = \"REGISTER_SUCCESS\";\r\nexport const REGISTER_FAIL = \"REGISTER_FAIL\";\r\nexport const USER_LOADED = \"USER_LOADED\";\r\nexport const AUTH_ERROR = \"AUTH_ERROR\";\r\nexport const LOGIN_SUCCESS = \"LOGIN_SUCCESS\";\r\nexport const LOGIN_FAIL = \"LOGIN_FAIL\";\r\nexport const LOGOUT = \"LOGOUT\";\r\nexport const GET_PROFILE = \"GET_PROFILE\";\r\n","import {\r\n REGISTER_SUCCESS,\r\n //REGISTER_FAIL,\r\n USER_LOADED,\r\n AUTH_ERROR,\r\n LOGIN_SUCCESS,\r\n LOGIN_FAIL,\r\n GET_PROFILE,\r\n LOGOUT,\r\n} from \"../types/auth_type\";\r\n\r\nconst initialState = {\r\n isAuthenticated: null,\r\n profile: null,\r\n loading: true,\r\n error: null,\r\n user: null,\r\n};\r\n\r\nexport default function (state = initialState, action) {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case USER_LOADED:\r\n return {\r\n ...state,\r\n isAuthenticated: true,\r\n loading: false,\r\n user: payload,\r\n };\r\n case GET_PROFILE:\r\n return {\r\n ...state,\r\n loading: false,\r\n profile: payload,\r\n };\r\n case REGISTER_SUCCESS:\r\n return {\r\n ...state,\r\n ...payload,\r\n isAuthenticated: true,\r\n loading: false,\r\n };\r\n case LOGIN_SUCCESS:\r\n return {\r\n ...state,\r\n ...payload,\r\n isAuthenticated: true,\r\n loading: false,\r\n };\r\n case LOGIN_FAIL:\r\n return {\r\n ...state,\r\n ...payload,\r\n error: \"Username or Password is wrong\",\r\n loading: false,\r\n };\r\n case AUTH_ERROR:\r\n case LOGOUT:\r\n return {\r\n ...state,\r\n token: null,\r\n isAuthenticated: false,\r\n loading: false,\r\n user: null,\r\n };\r\n default:\r\n return state;\r\n }\r\n}\r\n","export const GET_COLLECTIONS_STATED = \"GET_COLLECTIONS_STATED\";\r\nexport const GET_COLLECTIONS = \"GET_COLLECTIONS\";\r\nexport const GET_COLLECTIONS_ENDED = \"GET_COLLECTIONS_ENDED\";\r\nexport const ADD_COLLECTION_STATED = \"ADD_COLLECTION_STARTED\";\r\nexport const ADD_COLLECTION = \"ADD_COLLECTION\";\r\nexport const ADD_COLLECTION_ENDED = \"ADD_COLLECTION_ENDED\";\r\nexport const EDIT_COLLECTION_STATED = \"EDIT_COLLECTION_STATED\";\r\nexport const EDIT_COLLECTION = \"EDIT_COLLECTION\";\r\nexport const EDIT_COLLECTION_ENDED = \"EDIT_COLLECTION_ENDED\";\r\nexport const GET_COLLECTION = \"GET_COLLECTION\";\r\nexport const GET_COLLECTION_STATED = \"GET_COLLECTION_STATED\";\r\nexport const GET_COLLECTION_ENDED = \"GET_COLLECTION_ENDED\";\r\nexport const RESET_COLLECTION = \"RESET_COLLECTION\";\r\nexport const ERROR_COLLECTION = \"ERROR_COLLECTION\";\r\nexport const GET_ALL_COLLECTIONS_STATED = \"GET_ALL_COLLECTIONS_STATED\";\r\nexport const GET_ALL_COLLECTIONS = \"GET_ALL_COLLECTIONS\";\r\nexport const GET_ALL_COLLECTIONS_ENDED = \"GET_ALL_COLLECTIONS_ENDED\";\r\n","import {\r\n GET_COLLECTIONS_STATED,\r\n GET_COLLECTIONS,\r\n GET_COLLECTIONS_ENDED,\r\n ADD_COLLECTION_STATED,\r\n ADD_COLLECTION,\r\n ADD_COLLECTION_ENDED,\r\n EDIT_COLLECTION_STATED,\r\n EDIT_COLLECTION,\r\n EDIT_COLLECTION_ENDED,\r\n GET_COLLECTION_STATED,\r\n GET_COLLECTION,\r\n GET_COLLECTION_ENDED,\r\n GET_ALL_COLLECTIONS_STATED,\r\n GET_ALL_COLLECTIONS,\r\n GET_ALL_COLLECTIONS_ENDED\r\n} from \"../types/collection_type\";\r\n\r\nconst initialState = {\r\n collections_loading: true,\r\n collections: null,\r\n page: null,\r\n pages: null,\r\n total_collections: 0,\r\n\r\n collection: null,\r\n collection_loading: null,\r\n\r\n loading: true,\r\n\r\n collection_message: null,\r\n all_collections: null,\r\n all_collections_loading: null,\r\n add_collection_loading: true,\r\n edit_collection_loading: true\r\n};\r\n\r\nexport const collection_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_COLLECTIONS_STATED:\r\n return {\r\n ...state,\r\n collections: null,\r\n pages: null,\r\n page: null,\r\n total_collections: 0,\r\n collections_loading: true\r\n };\r\n case GET_COLLECTIONS:\r\n return {\r\n ...state,\r\n collections: payload.collections,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_collections: payload.count\r\n };\r\n case GET_COLLECTIONS_ENDED:\r\n return {\r\n ...state,\r\n collections_loading: false\r\n };\r\n case GET_ALL_COLLECTIONS_STATED:\r\n return {\r\n ...state,\r\n all_collections_loading: true,\r\n all_collections: null\r\n };\r\n case GET_ALL_COLLECTIONS:\r\n return {\r\n ...state,\r\n all_collections: payload\r\n };\r\n case GET_ALL_COLLECTIONS_ENDED:\r\n return {\r\n ...state,\r\n all_collections_loading: false\r\n };\r\n\r\n case ADD_COLLECTION_STATED:\r\n return {\r\n ...state,\r\n collection_message: null,\r\n add_collection_loading: true\r\n };\r\n case ADD_COLLECTION:\r\n return {\r\n ...state,\r\n collection_message: payload\r\n };\r\n case ADD_COLLECTION_ENDED:\r\n return {\r\n ...state,\r\n add_collection_loading: false\r\n };\r\n case GET_COLLECTION_STATED:\r\n return {\r\n ...state,\r\n collection: null,\r\n collection_loading: true\r\n };\r\n case GET_COLLECTION:\r\n return {\r\n ...state,\r\n collection: payload\r\n };\r\n case GET_COLLECTION_ENDED:\r\n return {\r\n ...state,\r\n collection_loading: false\r\n };\r\n case EDIT_COLLECTION_STATED:\r\n return {\r\n ...state,\r\n collection_message: null,\r\n edit_collection_loading: true\r\n };\r\n case EDIT_COLLECTION:\r\n return {\r\n ...state,\r\n collection_message: payload\r\n };\r\n case EDIT_COLLECTION_ENDED:\r\n return {\r\n ...state,\r\n edit_collection_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_PRODUCTS_STATED = \"GET_PRODUCTS_STATED\";\r\nexport const GET_PRODUCTS = \"GET_PRODUCTS\";\r\nexport const GET_PRODUCTS_ENDED = \"GET_PRODUCTS_ENDED\";\r\nexport const ADD_PRODUCT_STATED = \"ADD_PRODUCT_STARTED\";\r\nexport const ADD_PRODUCT = \"ADD_PRODUCT\";\r\nexport const ADD_PRODUCT_ENDED = \"ADD_PRODUCT_ENDED\";\r\nexport const EDIT_PRODUCT_STATED = \"EDIT_PRODUCT_STATED\";\r\nexport const EDIT_PRODUCT = \"EDIT_PRODUCT\";\r\nexport const EDIT_PRODUCT_ENDED = \"EDIT_PRODUCT_ENDED\";\r\nexport const GET_PRODUCT = \"GET_PRODUCT\";\r\nexport const GET_PRODUCT_STATED = \"GET_PRODUCT_STATED\";\r\nexport const GET_PRODUCT_ENDED = \"GET_PRODUCT_ENDED\";\r\nexport const RESET_PRODUCT = \"RESET_PRODUCT\";\r\nexport const ERROR_PRODUCT = \"ERROR_PRODUCT\";\r\nexport const GET_ALL_PRODUCTS_STATED = \"GET_ALL_PRODUCTS_STATED\";\r\nexport const GET_ALL_PRODUCTS = \"GET_ALL_PRODUCTS\";\r\nexport const GET_ALL_PRODUCTS_ENDED = \"GET_ALL_PRODUCTS_ENDED\";\r\n","import {\r\n GET_PRODUCTS_STATED,\r\n GET_PRODUCTS,\r\n GET_PRODUCTS_ENDED,\r\n ADD_PRODUCT_STATED,\r\n ADD_PRODUCT,\r\n ADD_PRODUCT_ENDED,\r\n EDIT_PRODUCT_STATED,\r\n EDIT_PRODUCT,\r\n EDIT_PRODUCT_ENDED,\r\n GET_PRODUCT_STATED,\r\n GET_PRODUCT,\r\n GET_PRODUCT_ENDED,\r\n GET_ALL_PRODUCTS_STATED,\r\n GET_ALL_PRODUCTS,\r\n GET_ALL_PRODUCTS_ENDED\r\n} from \"../types/product_type\";\r\n\r\nconst initialState = {\r\n products_loading: true,\r\n products: null,\r\n page: null,\r\n pages: null,\r\n total_products: 0,\r\n\r\n product: null,\r\n product_loading: null,\r\n\r\n loading: true,\r\n\r\n product_message: null,\r\n all_products: null,\r\n all_products_loading: null,\r\n add_product_loading: true,\r\n edit_product_loading: true\r\n};\r\n\r\nexport const product_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_PRODUCTS_STATED:\r\n return {\r\n ...state,\r\n products: null,\r\n pages: null,\r\n page: null,\r\n total_products: 0,\r\n products_loading: true\r\n };\r\n case GET_PRODUCTS:\r\n return {\r\n ...state,\r\n products: payload.products,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_products: payload.count\r\n };\r\n case GET_PRODUCTS_ENDED:\r\n return {\r\n ...state,\r\n products_loading: false\r\n };\r\n case GET_ALL_PRODUCTS_STATED:\r\n return {\r\n ...state,\r\n all_products_loading: true,\r\n all_products: null\r\n };\r\n case GET_ALL_PRODUCTS:\r\n return {\r\n ...state,\r\n all_products: payload\r\n };\r\n case GET_ALL_PRODUCTS_ENDED:\r\n return {\r\n ...state,\r\n all_products_loading: false\r\n };\r\n\r\n case ADD_PRODUCT_STATED:\r\n return {\r\n ...state,\r\n product_message: null,\r\n add_product_loading: true\r\n };\r\n case ADD_PRODUCT:\r\n return {\r\n ...state,\r\n product_message: payload\r\n };\r\n case ADD_PRODUCT_ENDED:\r\n return {\r\n ...state,\r\n add_product_loading: false\r\n };\r\n case GET_PRODUCT_STATED:\r\n return {\r\n ...state,\r\n product: null,\r\n product_loading: true\r\n };\r\n case GET_PRODUCT:\r\n return {\r\n ...state,\r\n product: payload\r\n };\r\n case GET_PRODUCT_ENDED:\r\n return {\r\n ...state,\r\n product_loading: false\r\n };\r\n case EDIT_PRODUCT_STATED:\r\n return {\r\n ...state,\r\n product_message: null,\r\n edit_product_loading: true\r\n };\r\n case EDIT_PRODUCT:\r\n return {\r\n ...state,\r\n product_message: payload\r\n };\r\n case EDIT_PRODUCT_ENDED:\r\n return {\r\n ...state,\r\n edit_product_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_CATEGORYS_STATED = \"GET_CATEGORYS_STATED\";\r\nexport const GET_CATEGORYS = \"GET_CATEGORYS\";\r\nexport const GET_CATEGORYS_ENDED = \"GET_CATEGORYS_ENDED\";\r\nexport const ADD_CATEGORY_STATED = \"ADD_CATEGORY_STARTED\";\r\nexport const ADD_CATEGORY = \"ADD_CATEGORY\";\r\nexport const ADD_CATEGORY_ENDED = \"ADD_CATEGORY_ENDED\";\r\nexport const EDIT_CATEGORY_STATED = \"EDIT_CATEGORY_STATED\";\r\nexport const EDIT_CATEGORY = \"EDIT_CATEGORY\";\r\nexport const EDIT_CATEGORY_ENDED = \"EDIT_CATEGORY_ENDED\";\r\nexport const GET_CATEGORY = \"GET_CATEGORY\";\r\nexport const GET_CATEGORY_STATED = \"GET_CATEGORY_STATED\";\r\nexport const GET_CATEGORY_ENDED = \"GET_CATEGORY_ENDED\";\r\nexport const RESET_CATEGORY = \"RESET_CATEGORY\";\r\nexport const ERROR_CATEGORY = \"ERROR_CATEGORY\";\r\nexport const GET_ALL_CATEGORYS_STATED = \"GET_ALL_CATEGORYS_STATED\";\r\nexport const GET_ALL_CATEGORYS = \"GET_ALL_CATEGORYS\";\r\nexport const GET_ALL_CATEGORYS_ENDED = \"GET_ALL_CATEGORYS_ENDED\";\r\n","import {\r\n GET_CATEGORYS_STATED,\r\n GET_CATEGORYS,\r\n GET_CATEGORYS_ENDED,\r\n ADD_CATEGORY_STATED,\r\n ADD_CATEGORY,\r\n ADD_CATEGORY_ENDED,\r\n EDIT_CATEGORY_STATED,\r\n EDIT_CATEGORY,\r\n EDIT_CATEGORY_ENDED,\r\n GET_CATEGORY_STATED,\r\n GET_CATEGORY,\r\n GET_CATEGORY_ENDED,\r\n GET_ALL_CATEGORYS_STATED,\r\n GET_ALL_CATEGORYS,\r\n GET_ALL_CATEGORYS_ENDED\r\n} from \"../types/category_type\";\r\n\r\nconst initialState = {\r\n categorys_loading: true,\r\n categorys: null,\r\n page: null,\r\n pages: null,\r\n total_categorys: 0,\r\n\r\n category: null,\r\n category_loading: null,\r\n\r\n loading: true,\r\n\r\n category_message: null,\r\n all_categorys: null,\r\n all_categorys_loading: null,\r\n add_category_loading: true,\r\n edit_category_loading: true\r\n};\r\n\r\nexport const category_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_CATEGORYS_STATED:\r\n return {\r\n ...state,\r\n categorys: null,\r\n pages: null,\r\n page: null,\r\n total_categorys: 0,\r\n categorys_loading: true\r\n };\r\n case GET_CATEGORYS:\r\n return {\r\n ...state,\r\n categorys: payload.categorys,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_categorys: payload.count\r\n };\r\n case GET_CATEGORYS_ENDED:\r\n return {\r\n ...state,\r\n categorys_loading: false\r\n };\r\n case GET_ALL_CATEGORYS_STATED:\r\n return {\r\n ...state,\r\n all_categorys_loading: true,\r\n all_categorys: null\r\n };\r\n case GET_ALL_CATEGORYS:\r\n return {\r\n ...state,\r\n all_categorys: payload\r\n };\r\n case GET_ALL_CATEGORYS_ENDED:\r\n return {\r\n ...state,\r\n all_categorys_loading: false\r\n };\r\n\r\n case ADD_CATEGORY_STATED:\r\n return {\r\n ...state,\r\n category_message: null,\r\n add_category_loading: true\r\n };\r\n case ADD_CATEGORY:\r\n return {\r\n ...state,\r\n category_message: payload\r\n };\r\n case ADD_CATEGORY_ENDED:\r\n return {\r\n ...state,\r\n add_category_loading: false\r\n };\r\n case GET_CATEGORY_STATED:\r\n return {\r\n ...state,\r\n category: null,\r\n category_loading: true\r\n };\r\n case GET_CATEGORY:\r\n return {\r\n ...state,\r\n category: payload\r\n };\r\n case GET_CATEGORY_ENDED:\r\n return {\r\n ...state,\r\n category_loading: false\r\n };\r\n case EDIT_CATEGORY_STATED:\r\n return {\r\n ...state,\r\n category_message: null,\r\n edit_category_loading: true\r\n };\r\n case EDIT_CATEGORY:\r\n return {\r\n ...state,\r\n category_message: payload\r\n };\r\n case EDIT_CATEGORY_ENDED:\r\n return {\r\n ...state,\r\n edit_category_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_BLOGS_STATED = \"GET_BLOGS_STATED\";\r\nexport const GET_BLOGS = \"GET_BLOGS\";\r\nexport const GET_BLOGS_ENDED = \"GET_BLOGS_ENDED\";\r\nexport const ADD_BLOG_STATED = \"ADD_BLOG_STARTED\";\r\nexport const ADD_BLOG = \"ADD_BLOG\";\r\nexport const ADD_BLOG_ENDED = \"ADD_BLOG_ENDED\";\r\nexport const EDIT_BLOG_STATED = \"EDIT_BLOG_STATED\";\r\nexport const EDIT_BLOG = \"EDIT_BLOG\";\r\nexport const EDIT_BLOG_ENDED = \"EDIT_BLOG_ENDED\";\r\nexport const GET_BLOG = \"GET_BLOG\";\r\nexport const GET_BLOG_STATED = \"GET_BLOG_STATED\";\r\nexport const GET_BLOG_ENDED = \"GET_BLOG_ENDED\";\r\nexport const RESET_BLOG = \"RESET_BLOG\";\r\nexport const ERROR_BLOG = \"ERROR_BLOG\";\r\nexport const GET_ALL_BLOGS_STATED = \"GET_ALL_BLOGS_STATED\";\r\nexport const GET_ALL_BLOGS = \"GET_ALL_BLOGS\";\r\nexport const GET_ALL_BLOGS_ENDED = \"GET_ALL_BLOGS_ENDED\";\r\n","import {\r\n GET_BLOGS_STATED,\r\n GET_BLOGS,\r\n GET_BLOGS_ENDED,\r\n ADD_BLOG_STATED,\r\n ADD_BLOG,\r\n ADD_BLOG_ENDED,\r\n EDIT_BLOG_STATED,\r\n EDIT_BLOG,\r\n EDIT_BLOG_ENDED,\r\n GET_BLOG_STATED,\r\n GET_BLOG,\r\n GET_BLOG_ENDED,\r\n GET_ALL_BLOGS_STATED,\r\n GET_ALL_BLOGS,\r\n GET_ALL_BLOGS_ENDED\r\n} from \"../types/blog_type\";\r\n\r\nconst initialState = {\r\n blogs_loading: true,\r\n blogs: null,\r\n page: null,\r\n pages: null,\r\n total_blogs: 0,\r\n\r\n blog: null,\r\n blog_loading: null,\r\n\r\n loading: true,\r\n\r\n blog_message: null,\r\n all_blogs: null,\r\n all_blogs_loading: null,\r\n add_blog_loading: true,\r\n edit_blog_loading: true\r\n};\r\n\r\nexport const blog_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_BLOGS_STATED:\r\n return {\r\n ...state,\r\n blogs: null,\r\n pages: null,\r\n page: null,\r\n total_blogs: 0,\r\n blogs_loading: true\r\n };\r\n case GET_BLOGS:\r\n return {\r\n ...state,\r\n blogs: payload.blogs,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_blogs: payload.count\r\n };\r\n case GET_BLOGS_ENDED:\r\n return {\r\n ...state,\r\n blogs_loading: false\r\n };\r\n case GET_ALL_BLOGS_STATED:\r\n return {\r\n ...state,\r\n all_blogs_loading: true,\r\n all_blogs: null\r\n };\r\n case GET_ALL_BLOGS:\r\n return {\r\n ...state,\r\n all_blogs: payload\r\n };\r\n case GET_ALL_BLOGS_ENDED:\r\n return {\r\n ...state,\r\n all_blogs_loading: false\r\n };\r\n\r\n case ADD_BLOG_STATED:\r\n return {\r\n ...state,\r\n blog_message: null,\r\n add_blog_loading: true\r\n };\r\n case ADD_BLOG:\r\n return {\r\n ...state,\r\n blog_message: payload\r\n };\r\n case ADD_BLOG_ENDED:\r\n return {\r\n ...state,\r\n add_blog_loading: false\r\n };\r\n case GET_BLOG_STATED:\r\n return {\r\n ...state,\r\n blog: null,\r\n blog_loading: true\r\n };\r\n case GET_BLOG:\r\n return {\r\n ...state,\r\n blog: payload\r\n };\r\n case GET_BLOG_ENDED:\r\n return {\r\n ...state,\r\n blog_loading: false\r\n };\r\n case EDIT_BLOG_STATED:\r\n return {\r\n ...state,\r\n blog_message: null,\r\n edit_blog_loading: true\r\n };\r\n case EDIT_BLOG:\r\n return {\r\n ...state,\r\n blog_message: payload\r\n };\r\n case EDIT_BLOG_ENDED:\r\n return {\r\n ...state,\r\n edit_blog_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_BANNERS_STATED = \"GET_BANNERS_STATED\";\r\nexport const GET_BANNERS = \"GET_BANNERS\";\r\nexport const GET_BANNERS_ENDED = \"GET_BANNERS_ENDED\";\r\nexport const ADD_BANNER_STATED = \"ADD_BANNER_STARTED\";\r\nexport const ADD_BANNER = \"ADD_BANNER\";\r\nexport const ADD_BANNER_ENDED = \"ADD_BANNER_ENDED\";\r\nexport const EDIT_BANNER_STATED = \"EDIT_BANNER_STATED\";\r\nexport const EDIT_BANNER = \"EDIT_BANNER\";\r\nexport const EDIT_BANNER_ENDED = \"EDIT_BANNER_ENDED\";\r\nexport const GET_BANNER = \"GET_BANNER\";\r\nexport const GET_BANNER_STATED = \"GET_BANNER_STATED\";\r\nexport const GET_BANNER_ENDED = \"GET_BANNER_ENDED\";\r\nexport const RESET_BANNER = \"RESET_BANNER\";\r\nexport const ERROR_BANNER = \"ERROR_BANNER\";\r\nexport const GET_ALL_BANNERS_STATED = \"GET_ALL_BANNERS_STATED\";\r\nexport const GET_ALL_BANNERS = \"GET_ALL_BANNERS\";\r\nexport const GET_ALL_BANNERS_ENDED = \"GET_ALL_BANNERS_ENDED\";\r\n","import {\r\n GET_BANNERS_STATED,\r\n GET_BANNERS,\r\n GET_BANNERS_ENDED,\r\n ADD_BANNER_STATED,\r\n ADD_BANNER,\r\n ADD_BANNER_ENDED,\r\n EDIT_BANNER_STATED,\r\n EDIT_BANNER,\r\n EDIT_BANNER_ENDED,\r\n GET_BANNER_STATED,\r\n GET_BANNER,\r\n GET_BANNER_ENDED,\r\n GET_ALL_BANNERS_STATED,\r\n GET_ALL_BANNERS,\r\n GET_ALL_BANNERS_ENDED\r\n} from \"../types/banner_type\";\r\n\r\nconst initialState = {\r\n banners_loading: true,\r\n banners: null,\r\n page: null,\r\n pages: null,\r\n total_banners: 0,\r\n\r\n banner: null,\r\n banner_loading: null,\r\n\r\n loading: true,\r\n\r\n banner_message: null,\r\n all_banners: null,\r\n all_banners_loading: null,\r\n add_banner_loading: true,\r\n edit_banner_loading: true\r\n};\r\n\r\nexport const banner_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_BANNERS_STATED:\r\n return {\r\n ...state,\r\n banners: null,\r\n pages: null,\r\n page: null,\r\n total_banners: 0,\r\n banners_loading: true\r\n };\r\n case GET_BANNERS:\r\n return {\r\n ...state,\r\n banners: payload.banners,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_banners: payload.count\r\n };\r\n case GET_BANNERS_ENDED:\r\n return {\r\n ...state,\r\n banners_loading: false\r\n };\r\n case GET_ALL_BANNERS_STATED:\r\n return {\r\n ...state,\r\n all_banners_loading: true,\r\n all_banners: null\r\n };\r\n case GET_ALL_BANNERS:\r\n return {\r\n ...state,\r\n all_banners: payload\r\n };\r\n case GET_ALL_BANNERS_ENDED:\r\n return {\r\n ...state,\r\n all_banners_loading: false\r\n };\r\n\r\n case ADD_BANNER_STATED:\r\n return {\r\n ...state,\r\n banner_message: null,\r\n add_banner_loading: true\r\n };\r\n case ADD_BANNER:\r\n return {\r\n ...state,\r\n banner_message: payload\r\n };\r\n case ADD_BANNER_ENDED:\r\n return {\r\n ...state,\r\n add_banner_loading: false\r\n };\r\n case GET_BANNER_STATED:\r\n return {\r\n ...state,\r\n banner: null,\r\n banner_loading: true\r\n };\r\n case GET_BANNER:\r\n return {\r\n ...state,\r\n banner: payload\r\n };\r\n case GET_BANNER_ENDED:\r\n return {\r\n ...state,\r\n banner_loading: false\r\n };\r\n case EDIT_BANNER_STATED:\r\n return {\r\n ...state,\r\n banner_message: null,\r\n edit_banner_loading: true\r\n };\r\n case EDIT_BANNER:\r\n return {\r\n ...state,\r\n banner_message: payload\r\n };\r\n case EDIT_BANNER_ENDED:\r\n return {\r\n ...state,\r\n edit_banner_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_MOBILEBANNERS_STATED = \"GET_MOBILEBANNERS_STATED\";\r\nexport const GET_MOBILEBANNERS = \"GET_MOBILEBANNERS\";\r\nexport const GET_MOBILEBANNERS_ENDED = \"GET_MOBILEBANNERS_ENDED\";\r\nexport const ADD_MOBILEBANNER_STATED = \"ADD_MOBILEBANNER_STARTED\";\r\nexport const ADD_MOBILEBANNER = \"ADD_MOBILEBANNER\";\r\nexport const ADD_MOBILEBANNER_ENDED = \"ADD_MOBILEBANNER_ENDED\";\r\nexport const EDIT_MOBILEBANNER_STATED = \"EDIT_MOBILEBANNER_STATED\";\r\nexport const EDIT_MOBILEBANNER = \"EDIT_MOBILEBANNER\";\r\nexport const EDIT_MOBILEBANNER_ENDED = \"EDIT_MOBILEBANNER_ENDED\";\r\nexport const GET_MOBILEBANNER = \"GET_MOBILEBANNER\";\r\nexport const GET_MOBILEBANNER_STATED = \"GET_MOBILEBANNER_STATED\";\r\nexport const GET_MOBILEBANNER_ENDED = \"GET_MOBILEBANNER_ENDED\";\r\nexport const RESET_MOBILEBANNER = \"RESET_MOBILEBANNER\";\r\nexport const ERROR_MOBILEBANNER = \"ERROR_MOBILEBANNER\";\r\nexport const GET_ALL_MOBILEBANNERS_STATED = \"GET_ALL_MOBILEBANNERS_STATED\";\r\nexport const GET_ALL_MOBILEBANNERS = \"GET_ALL_MOBILEBANNERS\";\r\nexport const GET_ALL_MOBILEBANNERS_ENDED = \"GET_ALL_MOBILEBANNERS_ENDED\";\r\n","import {\r\n GET_MOBILEBANNERS_STATED,\r\n GET_MOBILEBANNERS,\r\n GET_MOBILEBANNERS_ENDED,\r\n ADD_MOBILEBANNER_STATED,\r\n ADD_MOBILEBANNER,\r\n ADD_MOBILEBANNER_ENDED,\r\n EDIT_MOBILEBANNER_STATED,\r\n EDIT_MOBILEBANNER,\r\n EDIT_MOBILEBANNER_ENDED,\r\n GET_MOBILEBANNER_STATED,\r\n GET_MOBILEBANNER,\r\n GET_MOBILEBANNER_ENDED,\r\n GET_ALL_MOBILEBANNERS_STATED,\r\n GET_ALL_MOBILEBANNERS,\r\n GET_ALL_MOBILEBANNERS_ENDED\r\n} from \"../types/mobilebanner_type\";\r\n\r\nconst initialState = {\r\n mobilebanners_loading: true,\r\n mobilebanners: null,\r\n page: null,\r\n pages: null,\r\n total_mobilebanners: 0,\r\n\r\n mobilebanner: null,\r\n mobilebanner_loading: null,\r\n\r\n loading: true,\r\n\r\n mobilebanner_message: null,\r\n all_mobilebanners: null,\r\n all_mobilebanners_loading: null,\r\n add_mobilebanner_loading: true,\r\n edit_mobilebanner_loading: true\r\n};\r\n\r\nexport const mobilebanner_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_MOBILEBANNERS_STATED:\r\n return {\r\n ...state,\r\n mobilebanners: null,\r\n pages: null,\r\n page: null,\r\n total_mobilebanners: 0,\r\n mobilebanners_loading: true\r\n };\r\n case GET_MOBILEBANNERS:\r\n return {\r\n ...state,\r\n mobilebanners: payload.mobilebanners,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_mobilebanners: payload.count\r\n };\r\n case GET_MOBILEBANNERS_ENDED:\r\n return {\r\n ...state,\r\n mobilebanners_loading: false\r\n };\r\n case GET_ALL_MOBILEBANNERS_STATED:\r\n return {\r\n ...state,\r\n all_mobilebanners_loading: true,\r\n all_mobilebanners: null\r\n };\r\n case GET_ALL_MOBILEBANNERS:\r\n return {\r\n ...state,\r\n all_mobilebanners: payload\r\n };\r\n case GET_ALL_MOBILEBANNERS_ENDED:\r\n return {\r\n ...state,\r\n all_mobilebanners_loading: false\r\n };\r\n\r\n case ADD_MOBILEBANNER_STATED:\r\n return {\r\n ...state,\r\n mobilebanner_message: null,\r\n add_mobilebanner_loading: true\r\n };\r\n case ADD_MOBILEBANNER:\r\n return {\r\n ...state,\r\n mobilebanner_message: payload\r\n };\r\n case ADD_MOBILEBANNER_ENDED:\r\n return {\r\n ...state,\r\n add_mobilebanner_loading: false\r\n };\r\n case GET_MOBILEBANNER_STATED:\r\n return {\r\n ...state,\r\n mobilebanner: null,\r\n mobilebanner_loading: true\r\n };\r\n case GET_MOBILEBANNER:\r\n return {\r\n ...state,\r\n mobilebanner: payload\r\n };\r\n case GET_MOBILEBANNER_ENDED:\r\n return {\r\n ...state,\r\n mobilebanner_loading: false\r\n };\r\n case EDIT_MOBILEBANNER_STATED:\r\n return {\r\n ...state,\r\n mobilebanner_message: null,\r\n edit_mobilebanner_loading: true\r\n };\r\n case EDIT_MOBILEBANNER:\r\n return {\r\n ...state,\r\n mobilebanner_message: payload\r\n };\r\n case EDIT_MOBILEBANNER_ENDED:\r\n return {\r\n ...state,\r\n edit_mobilebanner_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_WEBPAGES_STATED = \"GET_WEBPAGES_STATED\";\r\nexport const GET_WEBPAGES = \"GET_WEBPAGES\";\r\nexport const GET_WEBPAGES_ENDED = \"GET_WEBPAGES_ENDED\";\r\nexport const ADD_WEBPAGE_STATED = \"ADD_WEBPAGE_STARTED\";\r\nexport const ADD_WEBPAGE = \"ADD_WEBPAGE\";\r\nexport const ADD_WEBPAGE_ENDED = \"ADD_WEBPAGE_ENDED\";\r\nexport const EDIT_WEBPAGE_STATED = \"EDIT_WEBPAGE_STATED\";\r\nexport const EDIT_WEBPAGE = \"EDIT_WEBPAGE\";\r\nexport const EDIT_WEBPAGE_ENDED = \"EDIT_WEBPAGE_ENDED\";\r\nexport const GET_WEBPAGE = \"GET_WEBPAGE\";\r\nexport const GET_WEBPAGE_STATED = \"GET_WEBPAGE_STATED\";\r\nexport const GET_WEBPAGE_ENDED = \"GET_WEBPAGE_ENDED\";\r\nexport const RESET_WEBPAGE = \"RESET_WEBPAGE\";\r\nexport const ERROR_WEBPAGE = \"ERROR_WEBPAGE\";\r\nexport const GET_ALL_WEBPAGES_STATED = \"GET_ALL_WEBPAGES_STATED\";\r\nexport const GET_ALL_WEBPAGES = \"GET_ALL_WEBPAGES\";\r\nexport const GET_ALL_WEBPAGES_ENDED = \"GET_ALL_WEBPAGES_ENDED\";\r\n","import {\r\n GET_WEBPAGES_STATED,\r\n GET_WEBPAGES,\r\n GET_WEBPAGES_ENDED,\r\n ADD_WEBPAGE_STATED,\r\n ADD_WEBPAGE,\r\n ADD_WEBPAGE_ENDED,\r\n EDIT_WEBPAGE_STATED,\r\n EDIT_WEBPAGE,\r\n EDIT_WEBPAGE_ENDED,\r\n GET_WEBPAGE_STATED,\r\n GET_WEBPAGE,\r\n GET_WEBPAGE_ENDED,\r\n GET_ALL_WEBPAGES_STATED,\r\n GET_ALL_WEBPAGES,\r\n GET_ALL_WEBPAGES_ENDED\r\n} from \"../types/webpage_type\";\r\n\r\nconst initialState = {\r\n webpages_loading: true,\r\n webpages: null,\r\n page: null,\r\n pages: null,\r\n total_webpages: 0,\r\n\r\n webpage: null,\r\n webpage_loading: null,\r\n\r\n loading: true,\r\n\r\n webpage_message: null,\r\n all_webpages: null,\r\n all_webpages_loading: null,\r\n add_webpage_loading: true,\r\n edit_webpage_loading: true\r\n};\r\n\r\nexport const webpage_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_WEBPAGES_STATED:\r\n return {\r\n ...state,\r\n webpages: null,\r\n pages: null,\r\n page: null,\r\n total_webpages: 0,\r\n webpages_loading: true\r\n };\r\n case GET_WEBPAGES:\r\n return {\r\n ...state,\r\n webpages: payload.webpages,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_webpages: payload.count\r\n };\r\n case GET_WEBPAGES_ENDED:\r\n return {\r\n ...state,\r\n webpages_loading: false\r\n };\r\n case GET_ALL_WEBPAGES_STATED:\r\n return {\r\n ...state,\r\n all_webpages_loading: true,\r\n all_webpages: null\r\n };\r\n case GET_ALL_WEBPAGES:\r\n return {\r\n ...state,\r\n all_webpages: payload\r\n };\r\n case GET_ALL_WEBPAGES_ENDED:\r\n return {\r\n ...state,\r\n all_webpages_loading: false\r\n };\r\n\r\n case ADD_WEBPAGE_STATED:\r\n return {\r\n ...state,\r\n webpage_message: null,\r\n add_webpage_loading: true\r\n };\r\n case ADD_WEBPAGE:\r\n return {\r\n ...state,\r\n webpage_message: payload\r\n };\r\n case ADD_WEBPAGE_ENDED:\r\n return {\r\n ...state,\r\n add_webpage_loading: false\r\n };\r\n case GET_WEBPAGE_STATED:\r\n return {\r\n ...state,\r\n webpage: null,\r\n webpage_loading: true\r\n };\r\n case GET_WEBPAGE:\r\n return {\r\n ...state,\r\n webpage: payload\r\n };\r\n case GET_WEBPAGE_ENDED:\r\n return {\r\n ...state,\r\n webpage_loading: false\r\n };\r\n case EDIT_WEBPAGE_STATED:\r\n return {\r\n ...state,\r\n webpage_message: null,\r\n edit_webpage_loading: true\r\n };\r\n case EDIT_WEBPAGE:\r\n return {\r\n ...state,\r\n webpage_message: payload\r\n };\r\n case EDIT_WEBPAGE_ENDED:\r\n return {\r\n ...state,\r\n edit_webpage_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_SETTINGS_STATED = \"GET_SETTINGS_STATED\";\r\nexport const GET_SETTINGS = \"GET_SETTINGS\";\r\nexport const GET_SETTINGS_ENDED = \"GET_SETTINGS_ENDED\";\r\nexport const ADD_SETTING_STATED = \"ADD_SETTING_STARTED\";\r\nexport const ADD_SETTING = \"ADD_SETTING\";\r\nexport const ADD_SETTING_ENDED = \"ADD_SETTING_ENDED\";\r\nexport const EDIT_SETTING_STATED = \"EDIT_SETTING_STATED\";\r\nexport const EDIT_SETTING = \"EDIT_SETTING\";\r\nexport const EDIT_SETTING_ENDED = \"EDIT_SETTING_ENDED\";\r\nexport const GET_SETTING = \"GET_SETTING\";\r\nexport const GET_SETTING_STATED = \"GET_SETTING_STATED\";\r\nexport const GET_SETTING_ENDED = \"GET_SETTING_ENDED\";\r\nexport const RESET_SETTING = \"RESET_SETTING\";\r\nexport const ERROR_SETTING = \"ERROR_SETTING\";\r\nexport const GET_ALL_SETTINGS_STATED = \"GET_ALL_SETTINGS_STATED\";\r\nexport const GET_ALL_SETTINGS = \"GET_ALL_SETTINGS\";\r\nexport const GET_ALL_SETTINGS_ENDED = \"GET_ALL_SETTINGS_ENDED\";\r\n","import {\r\n GET_SETTINGS_STATED,\r\n GET_SETTINGS,\r\n GET_SETTINGS_ENDED,\r\n\r\n} from \"../types/setting_type\";\r\n\r\nconst initialState = {\r\n settings: null,\r\n loading: true,\r\n\r\n\r\n};\r\n\r\nexport const setting_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_SETTINGS_STATED:\r\n return {\r\n ...state,\r\n\r\n loading: true\r\n };\r\n case GET_SETTINGS:\r\n return {\r\n ...state,\r\n settings: payload,\r\n\r\n };\r\n case GET_SETTINGS_ENDED:\r\n return {\r\n ...state,\r\n loading: false\r\n };\r\n\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","export const GET_PRESSWORKS_STATED = \"GET_PRESSWORKS_STATED\";\r\nexport const GET_PRESSWORKS = \"GET_PRESSWORKS\";\r\nexport const GET_PRESSWORKS_ENDED = \"GET_PRESSWORKS_ENDED\";\r\nexport const ADD_PRESSWORK_STATED = \"ADD_PRESSWORK_STARTED\";\r\nexport const ADD_PRESSWORK = \"ADD_PRESSWORK\";\r\nexport const ADD_PRESSWORK_ENDED = \"ADD_PRESSWORK_ENDED\";\r\nexport const EDIT_PRESSWORK_STATED = \"EDIT_PRESSWORK_STATED\";\r\nexport const EDIT_PRESSWORK = \"EDIT_PRESSWORK\";\r\nexport const EDIT_PRESSWORK_ENDED = \"EDIT_PRESSWORK_ENDED\";\r\nexport const GET_PRESSWORK = \"GET_PRESSWORK\";\r\nexport const GET_PRESSWORK_STATED = \"GET_PRESSWORK_STATED\";\r\nexport const GET_PRESSWORK_ENDED = \"GET_PRESSWORK_ENDED\";\r\nexport const RESET_PRESSWORK = \"RESET_PRESSWORK\";\r\nexport const ERROR_PRESSWORK = \"ERROR_PRESSWORK\";\r\nexport const GET_ALL_PRESSWORKS_STATED = \"GET_ALL_PRESSWORKS_STATED\";\r\nexport const GET_ALL_PRESSWORKS = \"GET_ALL_PRESSWORKS\";\r\nexport const GET_ALL_PRESSWORKS_ENDED = \"GET_ALL_PRESSWORKS_ENDED\";\r\n","import {\r\n GET_PRESSWORKS_STATED,\r\n GET_PRESSWORKS,\r\n GET_PRESSWORKS_ENDED,\r\n ADD_PRESSWORK_STATED,\r\n ADD_PRESSWORK,\r\n ADD_PRESSWORK_ENDED,\r\n EDIT_PRESSWORK_STATED,\r\n EDIT_PRESSWORK,\r\n EDIT_PRESSWORK_ENDED,\r\n GET_PRESSWORK_STATED,\r\n GET_PRESSWORK,\r\n GET_PRESSWORK_ENDED,\r\n GET_ALL_PRESSWORKS_STATED,\r\n GET_ALL_PRESSWORKS,\r\n GET_ALL_PRESSWORKS_ENDED\r\n} from \"../types/presswork_type\";\r\n\r\nconst initialState = {\r\n pressworks_loading: true,\r\n pressworks: null,\r\n page: null,\r\n pages: null,\r\n total_pressworks: 0,\r\n\r\n presswork: null,\r\n presswork_loading: null,\r\n\r\n loading: true,\r\n\r\n presswork_message: null,\r\n all_pressworks: null,\r\n all_pressworks_loading: null,\r\n add_presswork_loading: true,\r\n edit_presswork_loading: true\r\n};\r\n\r\nexport const presswork_reducer = (state = initialState, action) => {\r\n const { type, payload } = action;\r\n\r\n switch (type) {\r\n case GET_PRESSWORKS_STATED:\r\n return {\r\n ...state,\r\n pressworks: null,\r\n pages: null,\r\n page: null,\r\n total_pressworks: 0,\r\n pressworks_loading: true\r\n };\r\n case GET_PRESSWORKS:\r\n return {\r\n ...state,\r\n pressworks: payload.pressworks,\r\n pages: payload.pages,\r\n page: payload.page,\r\n total_pressworks: payload.count\r\n };\r\n case GET_PRESSWORKS_ENDED:\r\n return {\r\n ...state,\r\n pressworks_loading: false\r\n };\r\n case GET_ALL_PRESSWORKS_STATED:\r\n return {\r\n ...state,\r\n all_pressworks_loading: true,\r\n all_pressworks: null\r\n };\r\n case GET_ALL_PRESSWORKS:\r\n return {\r\n ...state,\r\n all_pressworks: payload\r\n };\r\n case GET_ALL_PRESSWORKS_ENDED:\r\n return {\r\n ...state,\r\n all_pressworks_loading: false\r\n };\r\n\r\n case ADD_PRESSWORK_STATED:\r\n return {\r\n ...state,\r\n presswork_message: null,\r\n add_presswork_loading: true\r\n };\r\n case ADD_PRESSWORK:\r\n return {\r\n ...state,\r\n presswork_message: payload\r\n };\r\n case ADD_PRESSWORK_ENDED:\r\n return {\r\n ...state,\r\n add_presswork_loading: false\r\n };\r\n case GET_PRESSWORK_STATED:\r\n return {\r\n ...state,\r\n presswork: null,\r\n presswork_loading: true\r\n };\r\n case GET_PRESSWORK:\r\n return {\r\n ...state,\r\n presswork: payload\r\n };\r\n case GET_PRESSWORK_ENDED:\r\n return {\r\n ...state,\r\n presswork_loading: false\r\n };\r\n case EDIT_PRESSWORK_STATED:\r\n return {\r\n ...state,\r\n presswork_message: null,\r\n edit_presswork_loading: true\r\n };\r\n case EDIT_PRESSWORK:\r\n return {\r\n ...state,\r\n presswork_message: payload\r\n };\r\n case EDIT_PRESSWORK_ENDED:\r\n return {\r\n ...state,\r\n edit_presswork_loading: false\r\n };\r\n\r\n default:\r\n return state;\r\n }\r\n};\r\n","import { combineReducers } from \"redux\";\r\nimport alert from \"./alert_reducer\";\r\nimport auth from \"./auth_reducer\";\r\nimport { collection_reducer } from \"./collection_reducer\";\r\nimport { product_reducer } from \"./product_reducer\";\r\nimport { category_reducer } from \"./category_reducer\";\r\nimport { blog_reducer } from \"./blog_reducer\";\r\nimport { banner_reducer } from \"./banner_reducer\";\r\nimport { mobilebanner_reducer } from \"./mobilebanner_reducer\";\r\nimport { webpage_reducer } from \"./webpage_reducer\";\r\nimport { setting_reducer } from \"./setting_reducer\";\r\nimport { presswork_reducer } from \"./presswork_reducer\";\r\n\r\n\r\n\r\n// import { testimonial_reducer } from \"./testimonial_reducer\";\r\n\r\nexport default combineReducers({\r\n alert,\r\n auth,\r\n collection: collection_reducer,\r\n product: product_reducer,\r\n category: category_reducer,\r\n blog: blog_reducer,\r\n banner: banner_reducer,\r\n mobilebanner: mobilebanner_reducer,\r\n webpage: webpage_reducer,\r\n setting: setting_reducer,\r\n presswork: presswork_reducer,\r\n});\r\n","import { createStore, applyMiddleware } from \"redux\";\r\nimport { composeWithDevTools } from \"redux-devtools-extension\";\r\nimport thunk from \"redux-thunk\";\r\nimport rootReducer from \"./reducers\";\r\n// import setAuthToken from \"./utils/setAuthToken\";\r\n\r\nconst initialState = {};\r\n\r\nconst middleware = [thunk];\r\n\r\nconst store = createStore(\r\n rootReducer,\r\n initialState,\r\n composeWithDevTools(applyMiddleware(...middleware))\r\n);\r\n\r\nexport default store;\r\n","export const LIMIT = 10;\r\nexport const UPLOAD_CONST = \"\";\r\nexport const URI = process.env.REACT_APP_URI;\r\n","import axios from \"axios\";\r\nimport store from \"../store/store\";\r\nimport { URI } from \"./constant\";\r\n\r\n// Create an instance of axios\r\nconst api = axios.create({\r\n baseURL: `${URI}/api`,\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n },\r\n});\r\n\r\napi.interceptors.response.use(\r\n (res) => res,\r\n (err) => {\r\n if (err.response.status === 401) {\r\n store.dispatch({ type: \"LOGOUT\" });\r\n }\r\n return Promise.reject(err);\r\n }\r\n);\r\n\r\nexport default api;\r\n","import { v4 as uuidv4 } from \"uuid\";\r\nimport { SET_ALERT, REMOVE_ALERT } from \"../types/alert\";\r\n\r\nexport const setAlert =\r\n (msg, alertType, timeout = 10000) =>\r\n (dispatch) => {\r\n const id = uuidv4();\r\n dispatch({\r\n type: SET_ALERT,\r\n payload: { msg, alertType, id },\r\n });\r\n\r\n setTimeout(() => dispatch({ type: REMOVE_ALERT, payload: id }), timeout);\r\n };\r\n\r\nexport const removeAlert = (id) => (dispatch) => {\r\n dispatch({ type: REMOVE_ALERT, payload: id });\r\n};\r\n","import api from \"./api\";\r\n\r\n// store our JWT in LS and set axios headers if we do have a token\r\n\r\nconst setAuthToken = (token) => {\r\n // console.log(\"token\", token);\r\n if (token) {\r\n api.defaults.headers.common = { Authorization: `Bearer ${token}` };\r\n localStorage.setItem(\"token\", token);\r\n } else {\r\n delete api.defaults.headers.common[\"Authorization\"];\r\n localStorage.removeItem(\"token\");\r\n }\r\n};\r\n\r\nexport default setAuthToken;\r\n","import api from \"../../domain/api\";\r\nimport { setAlert } from \"./alert\";\r\nimport {\r\n REGISTER_SUCCESS,\r\n REGISTER_FAIL,\r\n USER_LOADED,\r\n AUTH_ERROR,\r\n LOGIN_SUCCESS,\r\n LOGIN_FAIL,\r\n LOGOUT,\r\n GET_PROFILE,\r\n} from \"../types/auth_type\";\r\nimport { handleError } from \"../../shared/handleError\";\r\nimport setAuthToken from \"../../domain/setAuthToken\";\r\n// Load User\r\nexport const loadUser = () => async (dispatch) => {\r\n try {\r\n const res = await api.get(\"/users/profile\");\r\n\r\n dispatch({\r\n type: USER_LOADED,\r\n payload: res.data,\r\n });\r\n } catch (err) {\r\n dispatch({\r\n type: AUTH_ERROR,\r\n });\r\n }\r\n};\r\n\r\n// Register User\r\nexport const register = (formData) => async (dispatch) => {\r\n try {\r\n const res = await api.post(\"/users/register\", formData);\r\n\r\n dispatch({\r\n type: REGISTER_SUCCESS,\r\n payload: res.data,\r\n });\r\n setAuthToken(res.data.token);\r\n dispatch(loadUser());\r\n } catch (err) {\r\n dispatch(handleError(err));\r\n }\r\n};\r\n\r\n// Login User\r\nexport const login = (formData) => async (dispatch) => {\r\n try {\r\n const res = await api.post(\"/users/login\", formData);\r\n console.log(res);\r\n dispatch({\r\n type: LOGIN_SUCCESS,\r\n payload: res.data,\r\n });\r\n setAuthToken(res.data.token);\r\n dispatch(loadUser());\r\n } catch (err) {\r\n dispatch(handleError(err));\r\n }\r\n};\r\nexport const forgetPassword = (formData) => async (dispatch) => {\r\n try {\r\n const res = await api.post(\"/users/forget-password\", formData);\r\n dispatch(\r\n setAlert(\r\n \"Email Reset link successfully sent to your email. Please check your email.\",\r\n \"success\"\r\n )\r\n );\r\n } catch (err) {\r\n dispatch({\r\n type: AUTH_ERROR,\r\n });\r\n dispatch(handleError(err));\r\n }\r\n};\r\nexport const resetPassword = (formData) => async (dispatch) => {\r\n try {\r\n const res = await api.post(\"/users/reset-password\", formData);\r\n console.log(res.data);\r\n if (res.data) {\r\n dispatch(setAlert(\"Your Password Reset Successfully\", \"success\"));\r\n }\r\n } catch (err) {\r\n dispatch(handleError(err));\r\n }\r\n};\r\nexport const updateProfile = (formData) => async (dispatch) => {\r\n try {\r\n const res = await api.put(\"/users/profile\", formData);\r\n console.log(res.data);\r\n setAuthToken(res.data.token);\r\n dispatch(loadUser());\r\n\r\n if (res.data) {\r\n dispatch(setAlert(\"Your Profile Changed Successfully\", \"success\"));\r\n }\r\n } catch (err) {\r\n dispatch(handleError(err));\r\n }\r\n};\r\nexport const changePassword = (formData) => async (dispatch) => {\r\n try {\r\n const res = await api.post(\"/password\", formData);\r\n console.log(res.data);\r\n setAuthToken(res.data.jwt);\r\n if (res.data) {\r\n dispatch(setAlert(\"Your Password Changed Successfully\", \"success\"));\r\n }\r\n } catch (err) {\r\n dispatch(handleError(err));\r\n }\r\n};\r\nexport const logout = () => async (dispatch) => {\r\n console.log(\"LOGOUT\");\r\n setAuthToken(null);\r\n dispatch({ type: LOGOUT });\r\n};\r\n","import { setAlert } from \"../store/actions/alert\";\r\nimport { logout } from \"../store/actions/auth\";\r\nexport const handleError = (err) => async (dispatch) => {\r\n if (err.response && err.response.data) {\r\n const errors = err.response.data.message;\r\n if (errors === \"Not authorized, token failed\") {\r\n console.log(\"Not Authorized\");\r\n dispatch(logout());\r\n }\r\n dispatch(setAlert(errors, \"danger\"));\r\n }\r\n};\r\n","import api from \"../../domain/api\";\r\nimport {\r\n GET_SETTINGS_STATED,\r\n GET_SETTINGS,\r\n GET_SETTINGS_ENDED,\r\n} from \"../types/setting_type\";\r\nimport * as qs from \"qs\";\r\nimport { handleError } from \"../../shared/handleError\";\r\nimport { setAlert } from \"./alert\";\r\n\r\nexport const addSetting = (formData) => async (dispatch, getState) => {\r\n try {\r\n dispatch({\r\n type: GET_SETTINGS_STATED,\r\n });\r\n const { data } = await api.post(`/settings`, formData);\r\n dispatch({\r\n type: GET_SETTINGS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_SETTINGS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_SETTINGS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const getSettings =\r\n () =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_SETTINGS_STATED,\r\n });\r\n\r\n\r\n const { data } = await api.get(`/settings`);\r\n\r\n dispatch({\r\n type: GET_SETTINGS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_SETTINGS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_SETTINGS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\n\r\nexport const handleErrorLocal = () => async (dispatch) => { };\r\n","import { useState, useEffect, useCallback } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport {\r\n addSetting,\r\n getSettings,\r\n\r\n} from \"../../store/actions/setting_action\";\r\nimport _debounce from \"lodash/debounce\";\r\n\r\n\r\n// Add Data\r\nexport const useCreateSetting = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.setting);\r\n const addData = async (data) => {\r\n await dispatch(addSetting(data));\r\n };\r\n return [data, addData];\r\n};\r\n\r\nexport const useGetSetting = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.setting);\r\n\r\n useEffect(() => {\r\n if (!data.settings) {\r\n dispatch(getSettings());\r\n }\r\n\r\n }, [])\r\n return [data];\r\n};\r\n\r\n\r\n","import React from 'react'\r\nimport { Link } from 'react-router-dom';\r\nimport { useGetSetting } from '../../shared/hooks/UseSetting'\r\n\r\nfunction Footer({ is_gg_page }) {\r\n const [setting_data] = useGetSetting()\r\n const { settings, loading } = setting_data;\r\n return (\r\n
\r\n \r\n {/* whatsapp footer */}\r\n
\r\n
\r\n \r\n \r\n
\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Footer","import api from \"../../domain/api\";\r\nimport {\r\n GET_COLLECTIONS_STATED,\r\n GET_COLLECTIONS,\r\n GET_COLLECTIONS_ENDED,\r\n ADD_COLLECTION_STATED,\r\n ADD_COLLECTION,\r\n ADD_COLLECTION_ENDED,\r\n EDIT_COLLECTION_STATED,\r\n EDIT_COLLECTION,\r\n EDIT_COLLECTION_ENDED,\r\n GET_COLLECTION_STATED,\r\n GET_COLLECTION,\r\n GET_COLLECTION_ENDED,\r\n GET_ALL_COLLECTIONS_STATED,\r\n GET_ALL_COLLECTIONS,\r\n GET_ALL_COLLECTIONS_ENDED,\r\n} from \"../types/collection_type\";\r\nimport * as qs from \"qs\";\r\nimport { handleError } from \"../../shared/handleError\";\r\nimport { setAlert } from \"./alert\";\r\n\r\nexport const addCollection = (formData) => async (dispatch, getState) => {\r\n try {\r\n dispatch({\r\n type: ADD_COLLECTION_STATED,\r\n });\r\n const { data } = await api.post(`/collections`, formData);\r\n dispatch({\r\n type: ADD_COLLECTION,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: ADD_COLLECTION_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: ADD_COLLECTION_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\n\r\n\r\nexport const getCollectionBySlug = (slug) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_COLLECTION_STATED,\r\n });\r\n const { data } = await api.get(`/collections/slug/${slug}`);\r\n\r\n dispatch({\r\n type: GET_COLLECTION,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_COLLECTION_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_COLLECTION_STATED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\n\r\n\r\nexport const getCollections =\r\n ({ pageNumber = \"\" }) =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_COLLECTIONS_STATED,\r\n });\r\n const queryParams = qs.parse(window.location.search.replace(\"?\", \"\"));\r\n const query = qs.stringify(queryParams, {\r\n encodeValuesOnly: true, // prettify url\r\n });\r\n\r\n const { data } = await api.get(`/collections?&${query}`);\r\n\r\n dispatch({\r\n type: GET_COLLECTIONS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_COLLECTIONS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_COLLECTIONS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\nexport const getCollection = (id) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_COLLECTION_STATED,\r\n });\r\n const { data } = await api.get(`/collections/${id}`);\r\n\r\n dispatch({\r\n type: GET_COLLECTION,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_COLLECTION_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_COLLECTION_STATED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const editCollection = (id, formData) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: EDIT_COLLECTION_STATED,\r\n });\r\n const { data } = await api.put(`/collections/${id}`, formData);\r\n dispatch({\r\n type: EDIT_COLLECTION,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: EDIT_COLLECTION_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: EDIT_COLLECTION_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const deleteCollection = (id) => async (dispatch) => {\r\n try {\r\n const { data } = await api.delete(`/collections/${id}`);\r\n dispatch(setAlert(\"Collection Deleted Successfully\", \"success\"));\r\n } catch (error) {\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const getAllCollections =\r\n ({ term, value }) =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_ALL_COLLECTIONS_STATED,\r\n });\r\n const { data } = await api.get(\r\n `/collections/all?term=${term}&value=${value}`\r\n );\r\n\r\n dispatch({\r\n type: GET_ALL_COLLECTIONS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_ALL_COLLECTIONS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_ALL_COLLECTIONS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\n\r\nexport const handleErrorLocal = () => async (dispatch) => { };\r\n","import { useState, useEffect, useCallback } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport {\r\n addCollection,\r\n getCollections,\r\n getCollection,\r\n editCollection,\r\n deleteCollection,\r\n getAllCollections,\r\n getCollectionBySlug,\r\n} from \"../../store/actions/collection_action\";\r\nimport _debounce from \"lodash/debounce\";\r\n// import { useSelectAllIndustry } from \"./UseIndustry\";\r\n\r\n// Get All Data\r\nexport const useAllCollections = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.collection);\r\n const [pageNumber, setPageNumber] = useState(1);\r\n const [deleteEntry, setDeleteEntry] = useState(null);\r\n\r\n useEffect(() => {\r\n if (deleteEntry) {\r\n dispatch(deleteCollection(deleteEntry));\r\n }\r\n allQuery();\r\n }, [deleteEntry, pageNumber, window.location.search]);\r\n const allQuery = useCallback(\r\n _debounce(() => {\r\n dispatch(getCollections({}));\r\n }, 1000),\r\n []\r\n );\r\n\r\n const deleteBtnClicked = async (id) => {\r\n setDeleteEntry(id);\r\n };\r\n\r\n return [data, setPageNumber, deleteBtnClicked];\r\n};\r\n\r\n// Get Single Data\r\nexport const useSingleCollection = (id) => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.collection);\r\n useEffect(() => {\r\n dispatch(getCollection(id));\r\n }, [id]);\r\n return [data];\r\n};\r\n// Get Single Data by Slug\r\nexport const useSingleCollectionBySlug = (id) => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.collection);\r\n useEffect(() => {\r\n dispatch(getCollectionBySlug(id));\r\n }, [id]);\r\n return [data];\r\n};\r\n// Add Data\r\nexport const useCreateCollection = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.collection);\r\n const addData = async (data) => {\r\n await dispatch(addCollection(data));\r\n };\r\n return [data, addData];\r\n};\r\nexport const useUpdateCollection = () => {\r\n const dispatch = useDispatch();\r\n // const data = useSelector((state) => state.collection);\r\n const updateData = async (id, data) => {\r\n await dispatch(editCollection(id, data));\r\n };\r\n return [updateData];\r\n};\r\n\r\nexport const useSelectAllCollection = () => {\r\n const dispatch = useDispatch();\r\n const [term, setTerm] = useState(\"\");\r\n const [value, setValue] = useState(\"\");\r\n const data = useSelector((state) => state.collection);\r\n useEffect(() => {\r\n dispatch(getAllCollections({ term, value }));\r\n }, [term, value]);\r\n return [data, setTerm, setValue];\r\n};\r\n\r\nexport const useGetDropdownOptions = () => {\r\n const [collection, setCollectionSearchField, setCollectionSearchValue] =\r\n useSelectAllCollection();\r\n\r\n const [dropdownOptions, setDropdownOptions] = useState({});\r\n useEffect(() => {\r\n if (collection && collection.all_collections) {\r\n const newData = collection.all_collections.map((item) => {\r\n return { label: item.name, value: item._id };\r\n });\r\n setDropdownOptions({ ...dropdownOptions, parent_collection: newData });\r\n }\r\n }, [collection]);\r\n const loadOptions = async (inputValue, callback, field) => {\r\n // if (field == \"parent_category\") {\r\n // await setCategorySearchField(\"name\");\r\n // await setCategorySearchValue(inputValue);\r\n // callback(dropdownOptions.parent_category);\r\n // }\r\n };\r\n\r\n return [dropdownOptions, loadOptions];\r\n};\r\n","import React, { useState, useRef, useEffect } from 'react'\r\nimport { Link } from 'react-router-dom'\r\nimport { URI } from '../../domain/constant'\r\nimport { useSelectAllCollection } from \"../../shared/hooks/UseCollection\"\r\nimport { useGetSetting } from '../../shared/hooks/UseSetting'\r\n\r\n\r\nconst Header = ({ }) => {\r\n\r\n const [setting_data] = useGetSetting()\r\n const { settings, loading } = setting_data;\r\n\r\n const navMenu = useRef(null)\r\n const [mobileNav, setMobileNav] = useState(false)\r\n const openNav = () => {\r\n navMenu.current.style.width = \"100%\";\r\n }\r\n\r\n const closeNav = () => {\r\n navMenu.current.style.width = \"0\";\r\n }\r\n\r\n const [collection_data] = useSelectAllCollection();\r\n const { all_collections } = collection_data;\r\n\r\n const [showCollection, setShowCollection] = useState(false)\r\n\r\n const ToggleButton = () => {\r\n return (\r\n setShowCollection(!showCollection)\r\n )\r\n }\r\n\r\n useEffect(() => {\r\n window.scrollTo(0, 0);\r\n // setMobilemenudropdown(false);\r\n // setOpenmenu(false);\r\n }, [window.location.href]);\r\n\r\n return (\r\n
\r\n
\r\n
\r\n closeNav()}>\r\n\r\n\r\n Bridal\r\n Collections\r\n {\r\n all_collections && all_collections.map((item) => {\r\n if (!item.hide_on_menu) {\r\n if (item.brand === \"Asha Gautam\") {\r\n return (\r\n showCollection ? (\r\n \r\n
{item.name}
\r\n \r\n ) : (\r\n null\r\n )\r\n )\r\n }\r\n\r\n }\r\n return (\r\n null\r\n )\r\n\r\n })\r\n }\r\n GG By Asha Gautam\r\n Blogs\r\n Press\r\n
\r\n\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n
\r\n
\r\n
openNav()}>\r\n {/* \"\" */}\r\n \r\n
\r\n
\r\n {/*
\r\n\r\n\r\n
\r\n
\r\nContact us\r\n
\r\n
\r\n
*/}\r\n
\r\n
\r\n\r\n\r\n
\r\n
\r\n )\r\n}\r\n\r\nexport default Header","import api from \"../../domain/api\";\r\nimport {\r\n GET_BANNERS_STATED,\r\n GET_BANNERS,\r\n GET_BANNERS_ENDED,\r\n ADD_BANNER_STATED,\r\n ADD_BANNER,\r\n ADD_BANNER_ENDED,\r\n EDIT_BANNER_STATED,\r\n EDIT_BANNER,\r\n EDIT_BANNER_ENDED,\r\n GET_BANNER_STATED,\r\n GET_BANNER,\r\n GET_BANNER_ENDED,\r\n GET_ALL_BANNERS_STATED,\r\n GET_ALL_BANNERS,\r\n GET_ALL_BANNERS_ENDED,\r\n} from \"../types/banner_type\";\r\nimport * as qs from \"qs\";\r\nimport { handleError } from \"../../shared/handleError\";\r\nimport { setAlert } from \"./alert\";\r\n\r\nexport const addBanner = (formData) => async (dispatch, getState) => {\r\n try {\r\n dispatch({\r\n type: ADD_BANNER_STATED,\r\n });\r\n const { data } = await api.post(`/banners`, formData);\r\n dispatch({\r\n type: ADD_BANNER,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: ADD_BANNER_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: ADD_BANNER_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const getBanners =\r\n ({ pageNumber = \"\" }) =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_BANNERS_STATED,\r\n });\r\n const queryParams = qs.parse(window.location.search.replace(\"?\", \"\"));\r\n const query = qs.stringify(queryParams, {\r\n encodeValuesOnly: true, // prettify url\r\n });\r\n\r\n const { data } = await api.get(`/banners?&${query}`);\r\n\r\n dispatch({\r\n type: GET_BANNERS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_BANNERS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_BANNERS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\nexport const getBanner = (id) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_BANNER_STATED,\r\n });\r\n const { data } = await api.get(`/banners/${id}`);\r\n\r\n dispatch({\r\n type: GET_BANNER,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_BANNER_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_BANNER_STATED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const editBanner = (id, formData) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: EDIT_BANNER_STATED,\r\n });\r\n const { data } = await api.put(`/banners/${id}`, formData);\r\n dispatch({\r\n type: EDIT_BANNER,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: EDIT_BANNER_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: EDIT_BANNER_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const deleteBanner = (id) => async (dispatch) => {\r\n try {\r\n const { data } = await api.delete(`/banners/${id}`);\r\n dispatch(setAlert(\"Banner Deleted Successfully\", \"success\"));\r\n } catch (error) {\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const getAllBanners =\r\n ({ term, value }) =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_ALL_BANNERS_STATED,\r\n });\r\n const { data } = await api.get(\r\n `/banners/all?term=${term}&value=${value}`\r\n );\r\n\r\n dispatch({\r\n type: GET_ALL_BANNERS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_ALL_BANNERS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_ALL_BANNERS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\n\r\nexport const handleErrorLocal = () => async (dispatch) => { };\r\n","import { useState, useEffect, useCallback } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport {\r\n addBanner,\r\n getBanners,\r\n getBanner,\r\n editBanner,\r\n deleteBanner,\r\n getAllBanners,\r\n} from \"../../store/actions/banner_action\";\r\nimport _debounce from \"lodash/debounce\";\r\nimport { useSelectAllCollection } from \"./UseCollection\";\r\n\r\n// Get All Data\r\nexport const useAllBanners = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.banner);\r\n const [pageNumber, setPageNumber] = useState(1);\r\n const [deleteEntry, setDeleteEntry] = useState(null);\r\n\r\n useEffect(() => {\r\n if (deleteEntry) {\r\n dispatch(deleteBanner(deleteEntry));\r\n }\r\n allQuery();\r\n }, [deleteEntry, pageNumber, window.location.search]);\r\n const allQuery = useCallback(\r\n _debounce(() => {\r\n dispatch(getBanners({}));\r\n }, 1000),\r\n []\r\n );\r\n\r\n const deleteBtnClicked = async (id) => {\r\n setDeleteEntry(id);\r\n };\r\n\r\n return [data, setPageNumber, deleteBtnClicked];\r\n};\r\n\r\n// Get Single Data\r\nexport const useSingleBanner = (id) => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.banner);\r\n useEffect(() => {\r\n dispatch(getBanner(id));\r\n }, [id]);\r\n return [data];\r\n};\r\n// Add Data\r\nexport const useCreateBanner = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.banner);\r\n const addData = async (data) => {\r\n await dispatch(addBanner(data));\r\n };\r\n return [data, addData];\r\n};\r\nexport const useUpdateBanner = () => {\r\n const dispatch = useDispatch();\r\n // const data = useSelector((state) => state.banner);\r\n const updateData = async (id, data) => {\r\n await dispatch(editBanner(id, data));\r\n };\r\n return [updateData];\r\n};\r\n\r\nexport const useSelectAllBanner = () => {\r\n const dispatch = useDispatch();\r\n const [term, setTerm] = useState(\"\");\r\n const [value, setValue] = useState(\"\");\r\n const data = useSelector((state) => state.banner);\r\n useEffect(() => {\r\n dispatch(getAllBanners({ term, value }));\r\n }, [term, value]);\r\n return [data, setTerm, setValue];\r\n};\r\n\r\nexport const useGetDropdownOptions = () => {\r\n const [collection, setCollectionSearchField, setCollectionSearchValue] =\r\n useSelectAllCollection();\r\n\r\n const [dropdownOptions, setDropdownOptions] = useState({});\r\n useEffect(() => {\r\n if (collection && collection.all_collections) {\r\n const newData = collection.all_collections.map((item) => {\r\n return { label: item.name, value: item._id };\r\n });\r\n setDropdownOptions({ ...dropdownOptions, product_collection: newData });\r\n }\r\n }, [collection]);\r\n const loadOptions = async (inputValue, callback, field) => {\r\n // if (field == \"parent_category\") {\r\n // await setCategorySearchField(\"name\");\r\n // await setCategorySearchValue(inputValue);\r\n // callback(dropdownOptions.parent_category);\r\n // }\r\n };\r\n\r\n return [dropdownOptions, loadOptions];\r\n};\r\n","import api from \"../../domain/api\";\r\nimport {\r\n GET_MOBILEBANNERS_STATED,\r\n GET_MOBILEBANNERS,\r\n GET_MOBILEBANNERS_ENDED,\r\n ADD_MOBILEBANNER_STATED,\r\n ADD_MOBILEBANNER,\r\n ADD_MOBILEBANNER_ENDED,\r\n EDIT_MOBILEBANNER_STATED,\r\n EDIT_MOBILEBANNER,\r\n EDIT_MOBILEBANNER_ENDED,\r\n GET_MOBILEBANNER_STATED,\r\n GET_MOBILEBANNER,\r\n GET_MOBILEBANNER_ENDED,\r\n GET_ALL_MOBILEBANNERS_STATED,\r\n GET_ALL_MOBILEBANNERS,\r\n GET_ALL_MOBILEBANNERS_ENDED,\r\n} from \"../types/mobilebanner_type\";\r\nimport * as qs from \"qs\";\r\nimport { handleError } from \"../../shared/handleError\";\r\nimport { setAlert } from \"./alert\";\r\n\r\nexport const addMobilebanner = (formData) => async (dispatch, getState) => {\r\n try {\r\n dispatch({\r\n type: ADD_MOBILEBANNER_STATED,\r\n });\r\n const { data } = await api.post(`/mobilebanners`, formData);\r\n dispatch({\r\n type: ADD_MOBILEBANNER,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: ADD_MOBILEBANNER_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: ADD_MOBILEBANNER_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const getMobilebanners =\r\n ({ pageNumber = \"\" }) =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_MOBILEBANNERS_STATED,\r\n });\r\n const queryParams = qs.parse(window.location.search.replace(\"?\", \"\"));\r\n const query = qs.stringify(queryParams, {\r\n encodeValuesOnly: true, // prettify url\r\n });\r\n\r\n const { data } = await api.get(`/mobilebanners?&${query}`);\r\n\r\n dispatch({\r\n type: GET_MOBILEBANNERS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_MOBILEBANNERS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_MOBILEBANNERS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\nexport const getMobilebanner = (id) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_MOBILEBANNER_STATED,\r\n });\r\n const { data } = await api.get(`/mobilebanners/${id}`);\r\n\r\n dispatch({\r\n type: GET_MOBILEBANNER,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_MOBILEBANNER_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_MOBILEBANNER_STATED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const editMobilebanner = (id, formData) => async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: EDIT_MOBILEBANNER_STATED,\r\n });\r\n const { data } = await api.put(`/mobilebanners/${id}`, formData);\r\n dispatch({\r\n type: EDIT_MOBILEBANNER,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: EDIT_MOBILEBANNER_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: EDIT_MOBILEBANNER_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const deleteMobilebanner = (id) => async (dispatch) => {\r\n try {\r\n const { data } = await api.delete(`/mobilebanners/${id}`);\r\n dispatch(setAlert(\"Banner Deleted Successfully\", \"success\"));\r\n } catch (error) {\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n};\r\nexport const getAllMobilebanners =\r\n ({ term, value }) =>\r\n async (dispatch) => {\r\n try {\r\n dispatch({\r\n type: GET_ALL_MOBILEBANNERS_STATED,\r\n });\r\n const { data } = await api.get(\r\n `/mobilebanners/all?term=${term}&value=${value}`\r\n );\r\n\r\n dispatch({\r\n type: GET_ALL_MOBILEBANNERS,\r\n payload: data,\r\n });\r\n dispatch({\r\n type: GET_ALL_MOBILEBANNERS_ENDED,\r\n });\r\n } catch (error) {\r\n dispatch({\r\n type: GET_ALL_MOBILEBANNERS_ENDED,\r\n });\r\n dispatch(handleErrorLocal(error));\r\n dispatch(handleError(error));\r\n }\r\n };\r\n\r\nexport const handleErrorLocal = () => async (dispatch) => { };\r\n","import { useState, useEffect, useCallback } from \"react\";\r\nimport { useSelector, useDispatch } from \"react-redux\";\r\nimport {\r\n addMobilebanner,\r\n getMobilebanners,\r\n getMobilebanner,\r\n editMobilebanner,\r\n deleteMobilebanner,\r\n getAllMobilebanners,\r\n} from \"../../store/actions/mobilebanner_action\";\r\nimport _debounce from \"lodash/debounce\";\r\nimport { useSelectAllCollection } from \"./UseCollection\";\r\n\r\n// Get All Data\r\nexport const useAllMobilebanners = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.mobilebanner);\r\n const [pageNumber, setPageNumber] = useState(1);\r\n const [deleteEntry, setDeleteEntry] = useState(null);\r\n\r\n useEffect(() => {\r\n if (deleteEntry) {\r\n dispatch(deleteMobilebanner(deleteEntry));\r\n }\r\n allQuery();\r\n }, [deleteEntry, pageNumber, window.location.search]);\r\n const allQuery = useCallback(\r\n _debounce(() => {\r\n dispatch(getMobilebanners({}));\r\n }, 1000),\r\n []\r\n );\r\n\r\n const deleteBtnClicked = async (id) => {\r\n setDeleteEntry(id);\r\n };\r\n\r\n return [data, setPageNumber, deleteBtnClicked];\r\n};\r\n\r\n// Get Single Data\r\nexport const useSingleMobilebanner = (id) => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.mobilebanner);\r\n useEffect(() => {\r\n dispatch(getMobilebanner(id));\r\n }, [id]);\r\n return [data];\r\n};\r\n// Add Data\r\nexport const useCreateMobilebanner = () => {\r\n const dispatch = useDispatch();\r\n const data = useSelector((state) => state.mobilebanner);\r\n const addData = async (data) => {\r\n await dispatch(addMobilebanner(data));\r\n };\r\n return [data, addData];\r\n};\r\nexport const useUpdateMobilebanner = () => {\r\n const dispatch = useDispatch();\r\n // const data = useSelector((state) => state.banner);\r\n const updateData = async (id, data) => {\r\n await dispatch(editMobilebanner(id, data));\r\n };\r\n return [updateData];\r\n};\r\n\r\nexport const useSelectAllMobilebanner = () => {\r\n const dispatch = useDispatch();\r\n const [term, setTerm] = useState(\"\");\r\n const [value, setValue] = useState(\"\");\r\n const data = useSelector((state) => state.mobilebanner);\r\n useEffect(() => {\r\n dispatch(getAllMobilebanners({ term, value }));\r\n }, [term, value]);\r\n return [data, setTerm, setValue];\r\n};\r\n\r\nexport const useGetDropdownOptions = () => {\r\n const [collection, setCollectionSearchField, setCollectionSearchValue] =\r\n useSelectAllCollection();\r\n\r\n const [dropdownOptions, setDropdownOptions] = useState({});\r\n useEffect(() => {\r\n if (collection && collection.all_collections) {\r\n const newData = collection.all_collections.map((item) => {\r\n return { label: item.name, value: item._id };\r\n });\r\n setDropdownOptions({ ...dropdownOptions, product_collection: newData });\r\n }\r\n }, [collection]);\r\n const loadOptions = async (inputValue, callback, field) => {\r\n // if (field == \"parent_category\") {\r\n // await setCategorySearchField(\"name\");\r\n // await setCategorySearchValue(inputValue);\r\n // callback(dropdownOptions.parent_category);\r\n // }\r\n };\r\n\r\n return [dropdownOptions, loadOptions];\r\n};\r\n","import React, { useState, useRef, useEffect } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport Footer from \"../common/Footer\";\r\nimport Header from \"../common/Header\";\r\nimport { useSelectAllCollection } from \"../../shared/hooks/UseCollection\"\r\nimport { useSelectAllBanner } from '../../shared/hooks/UseBanner';\r\nimport { useSelectAllMobilebanner } from '../../shared/hooks/UseMobilebanner';\r\nimport { URI } from \"../../domain/constant\";\r\n\r\nfunction Home() {\r\n\r\n const [banner_Data] = useSelectAllBanner();\r\n const [mobile_banner_Data] = useSelectAllMobilebanner();\r\n const { all_banners, all_banners_loading } = banner_Data;\r\n const { all_mobilebanners, all_mobilebanners_loading } = mobile_banner_Data;\r\n\r\n const navMenu = useRef(null)\r\n const openNav = () => {\r\n navMenu.current.style.width = \"100%\";\r\n }\r\n\r\n const closeNav = () => {\r\n navMenu.current.style.width = \"0\";\r\n }\r\n\r\n const [collection_data] = useSelectAllCollection();\r\n const { all_collections } = collection_data;\r\n\r\n const [showCollection, setShowCollection] = useState(false)\r\n\r\n const ToggleButton = () => {\r\n return (\r\n setShowCollection(!showCollection)\r\n )\r\n }\r\n return (\r\n
\r\n
\r\n
\r\n
\r\n closeNav()}>\r\n\r\n Bridal\r\n Collections\r\n {\r\n all_collections && all_collections.map((item) => {\r\n\r\n if (item.brand === \"Asha Gautam\") {\r\n return (\r\n showCollection ? (\r\n \r\n
{item.name}
\r\n \r\n ) : (\r\n null\r\n )\r\n )\r\n }\r\n return (\r\n null\r\n )\r\n })\r\n }\r\n GG By Asha Gautam\r\n About the Brand\r\n Blogs\r\n Press\r\n
\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n
\r\n
openNav()}>\r\n {/* \"\" */}\r\n \r\n
\r\n
\r\n
\r\n \r\n
\r\n\r\n
\r\n
\r\n
\r\n\r\n
\r\n
\r\n {\r\n all_banners && all_banners.map((item) => {\r\n return (\r\n \r\n )\r\n })\r\n }\r\n {\r\n all_mobilebanners && all_mobilebanners.map((item) => {\r\n return (\r\n \r\n )\r\n })\r\n }\r\n
\r\n
\r\n
\r\n \r\n \r\n \r\n
\r\n

The Heritage Bridal

\r\n
\r\n
\r\n {/* explore */}\r\n {/*
\r\n \r\n
*/}\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n
\r\n \r\n\r\n\r\n
\r\n\r\n {/* script */}\r\n
\r\n\r\n\r\n
\r\n );\r\n}\r\n\r\nexport default Home;\r\n","import React, { Fragment } from \"react\";\r\n\r\nconst Spinner = () => (\r\n \r\n \r\n \r\n);\r\nexport default Spinner;\r\n","import React from \"react\";\r\nimport { Route, Redirect } from \"react-router-dom\";\r\nimport PropTypes from \"prop-types\";\r\nimport { connect } from \"react-redux\";\r\nimport Spinner from \"../../components/layout/Spinner\";\r\n\r\nconst BeforeLoginRoutes = ({\r\n component: Component,\r\n redirectTo,\r\n auth: { isAuthenticated, loading },\r\n ...rest\r\n}) => (\r\n \r\n loading ? (\r\n \r\n ) : isAuthenticated ? (\r\n \r\n ) : (\r\n \r\n )\r\n }\r\n />\r\n);\r\n\r\nBeforeLoginRoutes.propTypes = {\r\n auth: PropTypes.object.isRequired,\r\n};\r\n\r\nconst mapStateToProps = (state) => ({\r\n auth: state.auth,\r\n});\r\n\r\nexport default connect(mapStateToProps)(BeforeLoginRoutes);\r\n","import React from 'react'\r\nimport { connect } from 'react-redux'\r\nimport { Link } from 'react-router-dom'\r\nimport Footer from '../common/Footer'\r\nimport Header from '../common/Header'\r\n\r\nconst PageNotFound = () => {\r\n return (\r\n <>\r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n 404\r\n \r\n \r\n Opps! PAGE NOT BE FOUND\r\n \r\n \r\n Sorry but the page you are looking for does not exist, have been\r\n
removed, name changed or is temporarily unavailable.\r\n

\r\n
\r\n
\r\n \r\n \r\n \r\n \r\n \r\n
\r\n \r\n Back to home page\r\n \r\n
\r\n
\r\n
\r\n
\r\n
\r\n \r\n