tabexseriescomponents 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +22892 -14865
- package/dist/index.esm.js +22897 -14871
- package/dist/index.umd.js +21722 -13696
- package/package.json +1 -1
- package/{srcOLD → src1-10}/Contexts/LanguageContext.jsx +0 -0
- package/{srcOLD → src1-10}/Contexts/ProductsCardsSectionContext.jsx +0 -0
- package/{srcOLD → src1-10}/StylesJS/Customstyles.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -19
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -8
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +45 -72
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -17
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +1 -14
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -11
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +3 -15
- package/{srcOLD → src1-10}/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +1 -11
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer1/Footer1.jsx +26 -26
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer2/Footer2.jsx +24 -25
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer3/Footer3.jsx +14 -6
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer4/Footer4.jsx +11 -12
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer5/Footer5.jsx +81 -88
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer6/Footer6.jsx +39 -48
- package/{srcOLD → src1-10}/TabexComponents/Footer/Footer7/Footer7.jsx +58 -61
- package/{srcOLD → src1-10}/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +27 -34
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +97 -99
- package/{srcOLD → src1-10}/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +74 -80
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header4/Header4.jsx +77 -95
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header6/Header6.jsx +73 -76
- package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +93 -137
- package/{srcOLD → src1-10}/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +85 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +3 -23
- package/{srcOLD → src1-10}/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +116 -114
- package/{srcOLD → src1-10}/TabexComponents/Headers/Modernheader/Modernheader.jsx +100 -92
- package/{srcOLD → src1-10}/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +110 -98
- package/{srcOLD → src1-10}/TabexComponents/Headers/Subheader/Subheader.jsx +10 -22
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -9
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -7
- package/{srcOLD → src1-10}/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -0
- package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +7 -75
- package/{srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js → src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx} +82 -92
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -0
- package/{srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js → src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx} +34 -74
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -8
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
- package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/{srcOLD → src1-10}/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +92 -53
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -15
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -0
- package/{srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js → src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx} +110 -40
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Filter/Filter.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Login/Login.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -14
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Policies/Policies.jsx +0 -5
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -50
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -16
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -12
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Signup/Signup.jsx +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -10
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -0
- package/{srcOLD → src1-10}/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -23
- package/{srcOLD → src1-10}/assets/images/cod.png +0 -0
- package/{srcOLD → src1-10}/assets/images/egyptflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/fawry.png +0 -0
- package/{srcOLD → src1-10}/assets/images/payment.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paymob.png +0 -0
- package/{srcOLD → src1-10}/assets/images/paypal.png +0 -0
- package/{srcOLD → src1-10}/assets/images/shoppingcart.png +0 -0
- package/{srcOLD → src1-10}/assets/images/usflag.png +0 -0
- package/{srcOLD → src1-10}/assets/images/visa.png +0 -0
- package/{srcOLD → src1-10}/assets/images/whatsapp.png +0 -0
- package/{srcOLD → src1-10}/button.jsx +0 -0
- package/{srcOLD → src1-10}/index.jsx +6 -2
- package/{srcOLD → src1-10}/styles/Home.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorcycard_fullimage.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_slidebgscaled.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Categorycard_withshapes.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productcard_with_circularbg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Productccard_with_zoominonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/Prouductcard_with_zoomhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycard3.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/categorycardwithtext.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_animatedbuttons.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productcard_with_textonhover.module.css +0 -0
- package/{srcOLD → src1-10}/styles/cards/productccard_with_imageontopleft.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/bootstrap.css +68 -73
- package/{srcOLD → src1-10}/styles/general/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/general/editorbardropdown.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/form.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/general.module.css +152 -0
- package/{srcOLD → src1-10}/styles/general/image-gallery.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-accessible-accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/react-phone-input-2.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/scrollbtn.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/slick.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/tabs.module.css +0 -0
- package/{srcOLD → src1-10}/styles/general/workplaceeditor.module.css +0 -0
- package/{srcOLD → src1-10}/styles/globals.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Allinoneheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header7.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Header_threesectionslogocentered.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/Sideheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/classicheaderstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header4.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header5.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header6.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/header_contactinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerresturant.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/headerstyles.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/modernheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/headers/subheader.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage1.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Backgroundimage_with_topcircle.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Section_with_rightbgcont.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -0
- package/{srcOLD → src1-10}/styles/sections/Slideshow_with_squarebg.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/accordion.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/cart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/dropdown.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/filter.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/login.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/productinfo.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/shop.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/signup.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/staticroutersidenav.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/viewcart.module.css +0 -0
- package/{srcOLD → src1-10}/styles/staticpages/wishlist.module.css +0 -0
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
|
@@ -0,0 +1,888 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
// import { Link } from 'react-router-dom';
|
|
3
|
+
// import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
|
|
4
|
+
// import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
|
|
5
|
+
// import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
|
|
6
|
+
// import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
|
|
7
|
+
import { css } from 'glamor';
|
|
8
|
+
import Dropdown from 'react-bootstrap/Dropdown';
|
|
9
|
+
|
|
10
|
+
import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
|
|
11
|
+
import egyptflag from '../../../assets/images/egyptflag.png';
|
|
12
|
+
import usflag from '../../../assets/images/usflag.png';
|
|
13
|
+
import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
|
|
14
|
+
import Subheader from '../Subheader/Subheader.jsx';
|
|
15
|
+
import { AiOutlineUserAdd, AiOutlineLogin, AiFillStar } from 'react-icons/ai';
|
|
16
|
+
import { CgShoppingBag } from 'react-icons/cg';
|
|
17
|
+
import { BiLogOutCircle } from 'react-icons/bi';
|
|
18
|
+
import { FiShoppingCart, FiShoppingBag } from 'react-icons/fi';
|
|
19
|
+
import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
|
|
20
|
+
import { IKImage } from 'imagekitio-react';
|
|
21
|
+
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
22
|
+
|
|
23
|
+
import { BsSearch, BsHandbag, BsBag, BsTelephone } from 'react-icons/bs';
|
|
24
|
+
import { AiOutlineHeart } from 'react-icons/ai';
|
|
25
|
+
import { BiUser } from 'react-icons/bi';
|
|
26
|
+
import { HiMenuAlt4 } from 'react-icons/hi';
|
|
27
|
+
import whatsappicon from '../../../assets/images/whatsapp.png';
|
|
28
|
+
|
|
29
|
+
// import { Contexthandlerscontext } from '../../../../../../../Contexts/Contexthandlerscontext';
|
|
30
|
+
const Header8 = (props) => {
|
|
31
|
+
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
32
|
+
// const { templatepropcontext } = useContext(Contexthandlerscontext);
|
|
33
|
+
// const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
34
|
+
// const {
|
|
35
|
+
// setSearchHeaderInputContext,
|
|
36
|
+
// fetchcustomercartQueryContext,
|
|
37
|
+
// fetchAuthorizationQueryContext,
|
|
38
|
+
// setsidecartnavshowcontext,
|
|
39
|
+
// LogoutMutationContext,
|
|
40
|
+
// favoriteprojectscountContext,
|
|
41
|
+
// templateproperties_context,
|
|
42
|
+
// } = useContext(FetchingContext);
|
|
43
|
+
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
44
|
+
|
|
45
|
+
const LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
46
|
+
const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
47
|
+
const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
48
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
49
|
+
const lang = props.actions.lang;
|
|
50
|
+
const langdetect = props.actions.langdetect;
|
|
51
|
+
const setlang = props.actions.setlang;
|
|
52
|
+
const templatepropcontext = props.actions.templatepropcontext;
|
|
53
|
+
const authdetailsContext = props.actions.authdetailsContext;
|
|
54
|
+
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
55
|
+
const templateproperties_context = props.actions.templateproperties_context;
|
|
56
|
+
const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
57
|
+
const routingcountext = props.actions.routingcountext;
|
|
58
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
59
|
+
const actions = props.actions;
|
|
60
|
+
const history = props.actions.history;
|
|
61
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
62
|
+
const [dropdownselect, setdropdownselect] = useState(false);
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
var secpropobj = {};
|
|
65
|
+
StatePagePropertiesContext?.pageobj?.sections?.forEach(function (sectionitem, sectionindex) {
|
|
66
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
67
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
68
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
if (Object.keys(secpropobj).length === 0) {
|
|
73
|
+
props?.defaultproperties?.forEach(function (defaultpropobj, defaultpropindex) {
|
|
74
|
+
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
setsectionproperties({ ...secpropobj });
|
|
78
|
+
}, [StatePagePropertiesContext]);
|
|
79
|
+
const header_cssstyles = {
|
|
80
|
+
headercontainer: css({
|
|
81
|
+
position: sectionproperties.headerstyles_position == 'absolute' ? 'absolute' : 'relative',
|
|
82
|
+
width: sectionproperties.header_width + 'vw',
|
|
83
|
+
background: sectionproperties.uppersection_bgcolor,
|
|
84
|
+
zIndex: 1000,
|
|
85
|
+
transition: 'all 0.2s',
|
|
86
|
+
}),
|
|
87
|
+
upperheadersection: css({
|
|
88
|
+
background: sectionproperties.uppersection_bgcolor,
|
|
89
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
|
|
90
|
+
paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
|
|
91
|
+
paddingTop: sectionproperties.uppersection_paddingtop + 'px',
|
|
92
|
+
paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
|
|
93
|
+
borderTopLeftRadius: sectionproperties.uppersection_btlradius + 'px',
|
|
94
|
+
borderTopRightRadius: sectionproperties.uppersection_btrradius + 'px',
|
|
95
|
+
borderBottomLeftRadius: sectionproperties.uppersection_bblradius + 'px',
|
|
96
|
+
borderBottomRightRadius: sectionproperties.uppersection_bbrradius + 'px',
|
|
97
|
+
}),
|
|
98
|
+
lowerheadercontainer: css({
|
|
99
|
+
backgroundColor: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.lowersection_backgroundColor,
|
|
100
|
+
borderBottomLeftRadius: sectionproperties.lowersection_borderBottomLeftRadius + 'px',
|
|
101
|
+
borderBottomRightRadius: sectionproperties.lowersection_BorderBottomRightRadius + 'px',
|
|
102
|
+
borderTopLeftRadius: sectionproperties.lowersection_borderTopLeftRadius + 'px',
|
|
103
|
+
borderTopRightRadius: sectionproperties.lowersection_borderTopRightRadius + 'px',
|
|
104
|
+
paddingLeft: '30px',
|
|
105
|
+
paddingRight: '30px',
|
|
106
|
+
paddingTop: sectionproperties.lowersection_paddingtop + 'px',
|
|
107
|
+
paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
|
|
108
|
+
}),
|
|
109
|
+
header_logo: css({
|
|
110
|
+
width: templateproperties_context.logo_width + 'px',
|
|
111
|
+
height: templateproperties_context.logo_height + 'px',
|
|
112
|
+
}),
|
|
113
|
+
navbar_item_text: css({
|
|
114
|
+
color: sectionproperties.lowersection_fontColor,
|
|
115
|
+
fontSize: sectionproperties.lowersection_fontsize + 'px',
|
|
116
|
+
textTransform: sectionproperties.lowersection_textTransform,
|
|
117
|
+
fontWeight: sectionproperties.lowersection_textfontweight,
|
|
118
|
+
transition: '0.3s',
|
|
119
|
+
padding: 0,
|
|
120
|
+
':hover': {
|
|
121
|
+
color: sectionproperties.lowersection_fontColoronhover,
|
|
122
|
+
},
|
|
123
|
+
}),
|
|
124
|
+
navbar_item_active: css({
|
|
125
|
+
color: sectionproperties.lowersection_fontColoronhover,
|
|
126
|
+
}),
|
|
127
|
+
dropdownitem: css({
|
|
128
|
+
padding: '0 0.1rem',
|
|
129
|
+
transition: '.3s',
|
|
130
|
+
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
131
|
+
color: sectionproperties.dropdown_color,
|
|
132
|
+
fontWeight: sectionproperties.dropdown_fontweight,
|
|
133
|
+
textTransform: sectionproperties.dropdown_texttransform,
|
|
134
|
+
}),
|
|
135
|
+
dropdownicon: css({
|
|
136
|
+
color: sectionproperties.dropdowniconcolor,
|
|
137
|
+
}),
|
|
138
|
+
dropdownitemcontainer: css({
|
|
139
|
+
':hover .dropdownitem': { color: sectionproperties.dropdown_hovercolor },
|
|
140
|
+
}),
|
|
141
|
+
divider: css({
|
|
142
|
+
height: sectionproperties.vl_height + 'px',
|
|
143
|
+
width: sectionproperties.vl_width + '%',
|
|
144
|
+
backgroundColor: sectionproperties.vl_bg,
|
|
145
|
+
zIndex: 100,
|
|
146
|
+
}),
|
|
147
|
+
searchbarcont: css({
|
|
148
|
+
position: 'relative',
|
|
149
|
+
transition: '.3s',
|
|
150
|
+
height: sectionproperties.searchbarcont_height + 'px',
|
|
151
|
+
background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
|
|
152
|
+
width: sectionproperties.searchbarcont_width + 'px',
|
|
153
|
+
borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
|
|
154
|
+
border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
|
|
155
|
+
}),
|
|
156
|
+
searchbar_icon_cont: css({
|
|
157
|
+
width: sectionproperties.searchbaricon_width + 'px',
|
|
158
|
+
height: sectionproperties.searchbaricon_height + 'px',
|
|
159
|
+
borderRadius: sectionproperties.searchbaricon_borderRadius + 'px',
|
|
160
|
+
color: sectionproperties.searchbaricon_color,
|
|
161
|
+
backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
|
|
162
|
+
transition: '0.3s ease',
|
|
163
|
+
position: 'absolute',
|
|
164
|
+
right: langdetect == 'en' ? 0 : '',
|
|
165
|
+
left: langdetect == 'en' ? '' : 0,
|
|
166
|
+
transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
|
|
167
|
+
bottom: 0,
|
|
168
|
+
top: 0,
|
|
169
|
+
margin: 'auto',
|
|
170
|
+
}),
|
|
171
|
+
searchbarcont_input: css({
|
|
172
|
+
height: '100%',
|
|
173
|
+
width: '100%',
|
|
174
|
+
outline: 'none',
|
|
175
|
+
background: 'transparent',
|
|
176
|
+
color: sectionproperties.searchbarcontinput_color,
|
|
177
|
+
fontWeight: sectionproperties.searchbarcont_inputfontweight,
|
|
178
|
+
fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
|
|
179
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.searchbarcont_paddingLeft + 'px' : sectionproperties.searchbarcont_paddingRight + 'px',
|
|
180
|
+
paddingRight: langdetect == 'en' ? sectionproperties.searchbarcont_paddingRight + 'px' : sectionproperties.searchbarcont_paddingLeft,
|
|
181
|
+
transition: '0.3s',
|
|
182
|
+
':focus': {
|
|
183
|
+
borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus,
|
|
184
|
+
},
|
|
185
|
+
}),
|
|
186
|
+
wishlist_btn: css({
|
|
187
|
+
width: sectionproperties.favBtnWidth + 'px',
|
|
188
|
+
height: sectionproperties.favBtnHeight + 'px',
|
|
189
|
+
background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
|
|
190
|
+
borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
191
|
+
color: sectionproperties.favBtniconcolor,
|
|
192
|
+
border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
193
|
+
transition: '.3s',
|
|
194
|
+
':hover': {
|
|
195
|
+
background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
|
|
196
|
+
color: sectionproperties.favBtnTextcoloronhover,
|
|
197
|
+
},
|
|
198
|
+
}),
|
|
199
|
+
wishlistbadge: css({
|
|
200
|
+
top: sectionproperties.wishlistbadgetop + 'px',
|
|
201
|
+
right: sectionproperties.wishlistbadgeright + 'px',
|
|
202
|
+
}),
|
|
203
|
+
user_btn: css({
|
|
204
|
+
background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
|
|
205
|
+
width: sectionproperties.userBtnWidth + 'px',
|
|
206
|
+
height: sectionproperties.userBtnHeight + 'px',
|
|
207
|
+
borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
|
|
208
|
+
color: sectionproperties.userBtniconcolor,
|
|
209
|
+
border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
|
|
210
|
+
transition: '.3s',
|
|
211
|
+
':hover': {
|
|
212
|
+
color: sectionproperties.userBtnTextcoloronhover,
|
|
213
|
+
background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
|
|
214
|
+
borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
|
|
215
|
+
},
|
|
216
|
+
}),
|
|
217
|
+
loggedinusername: css({
|
|
218
|
+
fontWeight: sectionproperties.userBtnTextfontweight,
|
|
219
|
+
textTransform: sectionproperties.userBtnTexttransform,
|
|
220
|
+
color: sectionproperties.userBtnTextcolor,
|
|
221
|
+
fontSize: sectionproperties.userBtntextfontsize + 'px',
|
|
222
|
+
lineHeight: sectionproperties.userBtntextfontsize + 'px',
|
|
223
|
+
transition: '.3s',
|
|
224
|
+
}),
|
|
225
|
+
user_btnContainer: css({
|
|
226
|
+
':hover .user_btnbg': {
|
|
227
|
+
background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
|
|
228
|
+
color: sectionproperties.userBtnTextcoloronhover,
|
|
229
|
+
},
|
|
230
|
+
':hover .user_btn': {
|
|
231
|
+
color: sectionproperties.userBtnTextcoloronhover,
|
|
232
|
+
},
|
|
233
|
+
}),
|
|
234
|
+
loggedinuserbtn: css({
|
|
235
|
+
width: sectionproperties.loggedinuserbtn_width + 'px',
|
|
236
|
+
height: sectionproperties.loggedinuserbtn_height + 'px',
|
|
237
|
+
border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
|
|
238
|
+
borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
|
|
239
|
+
background: sectionproperties.userBtnbgColor_loggedin,
|
|
240
|
+
color: sectionproperties.userBtniconcolor_loggedin,
|
|
241
|
+
transition: '.3s',
|
|
242
|
+
}),
|
|
243
|
+
loggedinuserbtnContainer: css({
|
|
244
|
+
':hover .loggedinuserbtn': {
|
|
245
|
+
borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
|
|
246
|
+
color: sectionproperties.userBtnTextcoloronhover_loggedin,
|
|
247
|
+
},
|
|
248
|
+
':hover .loggedinuserbtnbg': {
|
|
249
|
+
backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
|
|
250
|
+
color: sectionproperties.userbtn_loggedin_iconcoloronhover,
|
|
251
|
+
},
|
|
252
|
+
}),
|
|
253
|
+
cart_btn: css({
|
|
254
|
+
width: sectionproperties.cartBtnWidth + 'px',
|
|
255
|
+
height: sectionproperties.cartBtnHeight + 'px',
|
|
256
|
+
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
257
|
+
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
258
|
+
color: sectionproperties.cartBtnTextcolor,
|
|
259
|
+
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
260
|
+
color: sectionproperties.cart_iconcolor,
|
|
261
|
+
transition: '.3s',
|
|
262
|
+
':hover': {
|
|
263
|
+
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
264
|
+
color: sectionproperties.cartBtnTextcoloronhover,
|
|
265
|
+
},
|
|
266
|
+
}),
|
|
267
|
+
cartbadge: css({
|
|
268
|
+
top: sectionproperties.cartbadgetop + 'px',
|
|
269
|
+
right: sectionproperties.cartbadgeright + 'px',
|
|
270
|
+
}),
|
|
271
|
+
badge_counter_header_notifications: css({
|
|
272
|
+
display: 'flex',
|
|
273
|
+
justifyContent: 'center',
|
|
274
|
+
alignItems: 'center',
|
|
275
|
+
position: 'absolute',
|
|
276
|
+
top: sectionproperties.badge_top + 'px',
|
|
277
|
+
right: sectionproperties.badge_right + 'px',
|
|
278
|
+
background: sectionproperties.badge_bgcolor,
|
|
279
|
+
width: sectionproperties.badge_width + 'px',
|
|
280
|
+
height: sectionproperties.badge_height + 'px',
|
|
281
|
+
color: sectionproperties.badge_color,
|
|
282
|
+
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
283
|
+
fontSize: sectionproperties.badge_fontsize + 'px',
|
|
284
|
+
}),
|
|
285
|
+
categorybtn: css({
|
|
286
|
+
background: sectionproperties.generalbtn_bgColor,
|
|
287
|
+
width: sectionproperties.generalbtn_width + 'px',
|
|
288
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
289
|
+
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
290
|
+
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
291
|
+
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
292
|
+
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
293
|
+
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
294
|
+
transition: '.3s',
|
|
295
|
+
':hover': {
|
|
296
|
+
background: sectionproperties.generalbtn_bgColoronhover,
|
|
297
|
+
},
|
|
298
|
+
}),
|
|
299
|
+
btntextcontainer: css({
|
|
300
|
+
color: sectionproperties.generalbtn_textColor,
|
|
301
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
302
|
+
textTransform: sectionproperties.generalbtn_texttransform,
|
|
303
|
+
transition: '.3s',
|
|
304
|
+
':hover': {
|
|
305
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
306
|
+
},
|
|
307
|
+
}),
|
|
308
|
+
languagecontainer: css({
|
|
309
|
+
cursor: 'pointer',
|
|
310
|
+
transition: '.3s',
|
|
311
|
+
color: sectionproperties.language_container_color,
|
|
312
|
+
fontSize: sectionproperties.language_container_fontsize + 'px',
|
|
313
|
+
':hover': {
|
|
314
|
+
color: sectionproperties.language_container_coloronhover,
|
|
315
|
+
},
|
|
316
|
+
}),
|
|
317
|
+
};
|
|
318
|
+
const subtotalcart = () => {
|
|
319
|
+
var totalprice = 0;
|
|
320
|
+
fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach(function (cartitem, cartindex) {
|
|
321
|
+
var finalprice = 0;
|
|
322
|
+
if (cartitem.productinfo.hassale == 0) {
|
|
323
|
+
finalprice = cartitem.productinfo.defaultprice;
|
|
324
|
+
} else if (cartitem.productinfo.hassale == 1) {
|
|
325
|
+
finalprice = cartitem.productinfo.defaultsaleprice;
|
|
326
|
+
}
|
|
327
|
+
totalprice = finalprice * cartitem.quantity + totalprice;
|
|
328
|
+
});
|
|
329
|
+
return totalprice;
|
|
330
|
+
};
|
|
331
|
+
const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
|
|
332
|
+
useEffect(() => {
|
|
333
|
+
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
334
|
+
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
335
|
+
if (Array.isArray(logoarrayofobjectsparsed)) {
|
|
336
|
+
setlogoarrayofobjects([...logoarrayofobjectsparsed]);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}, [templateproperties_context]);
|
|
340
|
+
return (
|
|
341
|
+
<div
|
|
342
|
+
className="row w-100 ml-0 mr-0 d-flex justify-content-center"
|
|
343
|
+
style={{
|
|
344
|
+
marginTop: sectionproperties.header_marginTop + 'px',
|
|
345
|
+
marginBottom: sectionproperties.header_marginBottom + 'px',
|
|
346
|
+
}}
|
|
347
|
+
>
|
|
348
|
+
{sectionproperties.youtbtn_show == 'Show' && (
|
|
349
|
+
<>
|
|
350
|
+
<a
|
|
351
|
+
href={'tel:' + authdetailsContext.instinfo.contactinfo.mobile}
|
|
352
|
+
target={'_self'}
|
|
353
|
+
style={{ position: 'fixed', bottom: 60, right: 10, zIndex: 999999, transition: 'all 0.3s ease-out' }}
|
|
354
|
+
>
|
|
355
|
+
<i className={langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'}>
|
|
356
|
+
<BsTelephone size={30} color={sectionproperties.uppersection_iconcolor} style={{ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)' }} />
|
|
357
|
+
</i>
|
|
358
|
+
</a>
|
|
359
|
+
<a
|
|
360
|
+
href={'https://api.whatsapp.com/send?phone=' + authdetailsContext.instinfo.contactinfo.mobile}
|
|
361
|
+
target={'_blank'}
|
|
362
|
+
style={{ position: 'fixed', bottom: 10, right: 10, zIndex: 999999, transition: 'all 0.3s ease-out' }}
|
|
363
|
+
>
|
|
364
|
+
<img src={whatsappicon} style={{ width: '40px', height: '40px', cursor: 'pointer' }} />
|
|
365
|
+
</a>
|
|
366
|
+
</>
|
|
367
|
+
)}
|
|
368
|
+
<div
|
|
369
|
+
className={`${header_cssstyles.headercontainer}` + ' row ml-0 mr-0 d-flex d-md-none align-items-center '}
|
|
370
|
+
style={{
|
|
371
|
+
position: sectionproperties.headerstyles_position,
|
|
372
|
+
}}
|
|
373
|
+
>
|
|
374
|
+
{/* Upper Header */}
|
|
375
|
+
<div className={header_cssstyles.upperheadersection + ' col-lg-12 '}>
|
|
376
|
+
<div className="row w-100 m-0 align-items-center ">
|
|
377
|
+
<div className="col-lg-2 p-0">
|
|
378
|
+
<div
|
|
379
|
+
className={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
|
|
380
|
+
style={{ cursor: 'pointer' }}
|
|
381
|
+
onClick={() => {
|
|
382
|
+
routingcountext('home');
|
|
383
|
+
}}
|
|
384
|
+
>
|
|
385
|
+
<IKImage
|
|
386
|
+
urlEndpoint={IKurlEndpoint}
|
|
387
|
+
publicKey={IKpublicKey}
|
|
388
|
+
path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
|
|
389
|
+
style={{
|
|
390
|
+
maxWidth: '100%',
|
|
391
|
+
maxHeight: '100%',
|
|
392
|
+
}}
|
|
393
|
+
/>
|
|
394
|
+
</div>
|
|
395
|
+
{/* <div
|
|
396
|
+
className={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
|
|
397
|
+
style={{ cursor: 'pointer', width: '70px', height: '70px' }}
|
|
398
|
+
onClick={() => {
|
|
399
|
+
routingcountext('home');
|
|
400
|
+
}}
|
|
401
|
+
>
|
|
402
|
+
<img
|
|
403
|
+
src={logo}
|
|
404
|
+
style={{
|
|
405
|
+
maxWidth: '100%',
|
|
406
|
+
maxHeight: '100%',
|
|
407
|
+
}}
|
|
408
|
+
/>
|
|
409
|
+
</div> */}
|
|
410
|
+
</div>
|
|
411
|
+
<div className="col-lg-4 p-0">
|
|
412
|
+
<div className={header_cssstyles.searchbarcont} style={{ position: 'relative' }}>
|
|
413
|
+
<input
|
|
414
|
+
type="text"
|
|
415
|
+
placeholder={lang.searchproducts}
|
|
416
|
+
className={`${header_cssstyles.searchbarcont_input}`}
|
|
417
|
+
onChange={(event) => {
|
|
418
|
+
setSearchHeaderInputContext(event.target.value);
|
|
419
|
+
}}
|
|
420
|
+
/>
|
|
421
|
+
<button className={` ${header_cssstyles.searchbar_icon_cont}` + ' d-flex align-items-center justify-content-center '}>
|
|
422
|
+
<BsSearch color={sectionproperties.searchbaricon_color} size={sectionproperties.searchbaricon_fontsize} />
|
|
423
|
+
</button>
|
|
424
|
+
<Searchlist sectionpropertiesprops={sectionproperties} actions={actions} srcfromprops={'headerfullwidth'} />
|
|
425
|
+
</div>
|
|
426
|
+
</div>
|
|
427
|
+
|
|
428
|
+
<div className="col-lg-3 d-flex flex-column align-items-center justfiy-content-center">
|
|
429
|
+
{sectionproperties.showcontactinfo == 'Show' && (
|
|
430
|
+
<div className="row m-0 w-100 d-flex align-items-center justify-content-center">
|
|
431
|
+
<i className={langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'}>
|
|
432
|
+
<BsTelephone size={30} color={sectionproperties.uppersection_iconcolor} style={{ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)' }} />
|
|
433
|
+
</i>
|
|
434
|
+
<div
|
|
435
|
+
className="d-flex align-items-center flex-column"
|
|
436
|
+
onClick={() => {
|
|
437
|
+
window.open('https://api.whatsapp.com/send?phone=' + authdetailsContext.instinfo.contactinfo.mobile, '_blank');
|
|
438
|
+
}}
|
|
439
|
+
style={{ cursor: 'pointer' }}
|
|
440
|
+
>
|
|
441
|
+
<p
|
|
442
|
+
className="m-0"
|
|
443
|
+
style={{
|
|
444
|
+
color: sectionproperties.uppersection_infocolor,
|
|
445
|
+
fontSize: sectionproperties.uppersection_infofontsize + 'px',
|
|
446
|
+
fontWeight: sectionproperties.uppersection_infofontweight,
|
|
447
|
+
letterSpacing: '2px',
|
|
448
|
+
}}
|
|
449
|
+
>
|
|
450
|
+
{authdetailsContext.instinfo.contactinfo.mobile}
|
|
451
|
+
</p>
|
|
452
|
+
<p
|
|
453
|
+
className="mb-0 w-100"
|
|
454
|
+
style={{
|
|
455
|
+
textAlign: langdetect == 'en' ? 'right' : 'left',
|
|
456
|
+
// color: '#a3a3a3',
|
|
457
|
+
color: sectionproperties.uppersection_titlecolor,
|
|
458
|
+
fontSize: sectionproperties.uppersection_titlefontsize + 'px',
|
|
459
|
+
// fontSize: '12px',
|
|
460
|
+
fontWeight: sectionproperties.uppersection_titlefontweight,
|
|
461
|
+
textTransform: sectionproperties.uppersection_titletextransform,
|
|
462
|
+
}}
|
|
463
|
+
>
|
|
464
|
+
{lang.support247}
|
|
465
|
+
</p>
|
|
466
|
+
</div>
|
|
467
|
+
</div>
|
|
468
|
+
)}
|
|
469
|
+
</div>
|
|
470
|
+
|
|
471
|
+
<div className={langdetect == 'en' ? 'col-lg-3 d-flex align-items-center p-0 pl-0' : 'col-lg-3 d-flex align-items-center p-0 pr-0'}>
|
|
472
|
+
<div
|
|
473
|
+
className={'row w-100 m-0 align-items-center justify-content-between '}
|
|
474
|
+
style={{
|
|
475
|
+
paddingLeft: langdetect == 'en' ? (authdetailsContext.loggedin == true ? '.3rem' : '3rem') : 0,
|
|
476
|
+
paddingRight: langdetect == 'en' ? 0 : authdetailsContext.loggedin == true ? '1rem' : '3rem',
|
|
477
|
+
}}
|
|
478
|
+
>
|
|
479
|
+
<Dropdown>
|
|
480
|
+
<Dropdown.Toggle>
|
|
481
|
+
{!authdetailsContext.loggedin && (
|
|
482
|
+
<div className={header_cssstyles.user_btnContainer + ' d-flex align-items-center justify-content-end p-0 cursor-pointer pt-1 '}>
|
|
483
|
+
<div className={header_cssstyles.user_btn + ' user_btnbg allcentered p-0 '}>
|
|
484
|
+
<BiUser size={sectionproperties.userBtniconfontsize} />
|
|
485
|
+
</div>
|
|
486
|
+
<p
|
|
487
|
+
className={header_cssstyles.loggedinusername + ' user_btn mb-0 p-0 '}
|
|
488
|
+
style={{ marginLeft: langdetect == 'en' ? '3px' : 0, marginRight: langdetect == 'en' ? 0 : '3px' }}
|
|
489
|
+
>
|
|
490
|
+
{lang.login}
|
|
491
|
+
</p>
|
|
492
|
+
</div>
|
|
493
|
+
)}
|
|
494
|
+
{authdetailsContext.loggedin && (
|
|
495
|
+
<div className={header_cssstyles.loggedinuserbtnContainer + ' allcentered '} sytle={{ position: 'relative' }}>
|
|
496
|
+
<div className={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
|
|
497
|
+
<i className={' h-100 allcentered '}>
|
|
498
|
+
<BiUser size={sectionproperties.loggedinusericonfontsize} />
|
|
499
|
+
</i>
|
|
500
|
+
</div>
|
|
501
|
+
<div
|
|
502
|
+
className="m-0 p-0"
|
|
503
|
+
style={{
|
|
504
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
505
|
+
}}
|
|
506
|
+
>
|
|
507
|
+
<p
|
|
508
|
+
className="m-0 p-0"
|
|
509
|
+
style={{
|
|
510
|
+
color: sectionproperties.greetingtextcolor,
|
|
511
|
+
fontSize: sectionproperties.greetingtextfontsize + 'px',
|
|
512
|
+
lineHeight: sectionproperties.greetingtextfontsize + 'px',
|
|
513
|
+
fontWeight: 400,
|
|
514
|
+
}}
|
|
515
|
+
>
|
|
516
|
+
{lang.hello}
|
|
517
|
+
{langdetect == 'en' ? ',' : '،'}
|
|
518
|
+
</p>
|
|
519
|
+
<p className={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '} style={{ maxWidth: '100px' }}>
|
|
520
|
+
{authdetailsContext.customerinfo.name}
|
|
521
|
+
</p>
|
|
522
|
+
</div>
|
|
523
|
+
</div>
|
|
524
|
+
)}
|
|
525
|
+
</Dropdown.Toggle>
|
|
526
|
+
{!authdetailsContext.loggedin && (
|
|
527
|
+
<Dropdown.Menu>
|
|
528
|
+
<Dropdown.Item
|
|
529
|
+
onClick={() => {
|
|
530
|
+
routingcountext(StaticPagesLinksContext.Login);
|
|
531
|
+
}}
|
|
532
|
+
>
|
|
533
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
534
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
|
|
535
|
+
<AiOutlineLogin />
|
|
536
|
+
<span className="ml-2 mr-2">{lang.login}</span>
|
|
537
|
+
</p>
|
|
538
|
+
</div>
|
|
539
|
+
</Dropdown.Item>
|
|
540
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
541
|
+
<Dropdown.Item
|
|
542
|
+
onClick={() => {
|
|
543
|
+
routingcountext(StaticPagesLinksContext.Signup);
|
|
544
|
+
}}
|
|
545
|
+
>
|
|
546
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
547
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
|
|
548
|
+
<AiOutlineUserAdd />
|
|
549
|
+
<span className="ml-2 mr-2">{lang.signup}</span>
|
|
550
|
+
</p>
|
|
551
|
+
</div>
|
|
552
|
+
</Dropdown.Item>
|
|
553
|
+
</Dropdown.Menu>
|
|
554
|
+
)}
|
|
555
|
+
{authdetailsContext.loggedin && (
|
|
556
|
+
<Dropdown.Menu style={{ minWidth: '200px' }}>
|
|
557
|
+
<Dropdown.Item>
|
|
558
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
|
|
559
|
+
<span
|
|
560
|
+
style={{
|
|
561
|
+
color: sectionproperties.greetingtextcolor,
|
|
562
|
+
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
563
|
+
|
|
564
|
+
fontWeight: 400,
|
|
565
|
+
}}
|
|
566
|
+
>
|
|
567
|
+
{lang.hello},
|
|
568
|
+
</span>
|
|
569
|
+
<p
|
|
570
|
+
className={`${header_cssstyles.dropdownitem}` + ' font-weight-600 ml-1 mr-1 text-overflow text-capitalize dropdownitem m-0 p-0 '}
|
|
571
|
+
style={{ maxWidth: '120px' }}
|
|
572
|
+
onClick={() => {
|
|
573
|
+
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
574
|
+
}}
|
|
575
|
+
>
|
|
576
|
+
{authdetailsContext.customerinfo.name}
|
|
577
|
+
</p>
|
|
578
|
+
</div>
|
|
579
|
+
</Dropdown.Item>
|
|
580
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
581
|
+
<Dropdown.Item
|
|
582
|
+
onClick={() => {
|
|
583
|
+
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
584
|
+
}}
|
|
585
|
+
>
|
|
586
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
587
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
588
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
|
|
589
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
|
|
590
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
|
|
591
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
|
|
592
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
|
|
593
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
|
|
594
|
+
<span className="ml-2 mr-2">{lang.orderhistory}</span>
|
|
595
|
+
</p>
|
|
596
|
+
</div>
|
|
597
|
+
</Dropdown.Item>
|
|
598
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
599
|
+
<Dropdown.Item
|
|
600
|
+
onClick={() => {
|
|
601
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
602
|
+
}}
|
|
603
|
+
>
|
|
604
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
605
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
606
|
+
{sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart />}
|
|
607
|
+
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
|
|
608
|
+
<span className="ml-2 mr-2">{lang.wishlist}</span>
|
|
609
|
+
</p>
|
|
610
|
+
</div>
|
|
611
|
+
</Dropdown.Item>
|
|
612
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
613
|
+
<Dropdown.Item
|
|
614
|
+
onClick={() => {
|
|
615
|
+
routingcountext(StaticPagesLinksContext.Policies);
|
|
616
|
+
}}
|
|
617
|
+
>
|
|
618
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
619
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
620
|
+
<MdOutlinePolicy />
|
|
621
|
+
<span className="ml-2 mr-2">{lang.policies}</span>
|
|
622
|
+
</p>
|
|
623
|
+
</div>
|
|
624
|
+
</Dropdown.Item>
|
|
625
|
+
<Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
|
|
626
|
+
<Dropdown.Item
|
|
627
|
+
onClick={() => {
|
|
628
|
+
LogoutMutationContext.mutate();
|
|
629
|
+
}}
|
|
630
|
+
>
|
|
631
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
632
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
|
|
633
|
+
<BiLogOutCircle />
|
|
634
|
+
<span className="ml-2 mr-2">{lang.logout}</span>
|
|
635
|
+
</p>
|
|
636
|
+
</div>
|
|
637
|
+
</Dropdown.Item>
|
|
638
|
+
</Dropdown.Menu>
|
|
639
|
+
)}
|
|
640
|
+
</Dropdown>
|
|
641
|
+
<div className="d-flex flex-row p-0 align-items-center">
|
|
642
|
+
<div
|
|
643
|
+
style={{ position: 'relative' }}
|
|
644
|
+
className="cursor-pointer d-flex d-flex align-items-center"
|
|
645
|
+
onClick={() => {
|
|
646
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
647
|
+
}}
|
|
648
|
+
>
|
|
649
|
+
{sectionproperties.faviconshape == 'Heart Shape' && (
|
|
650
|
+
<AiOutlineHeart
|
|
651
|
+
className={`${header_cssstyles.wishlist_btn}`}
|
|
652
|
+
size={sectionproperties.favBtnIconfontsize}
|
|
653
|
+
style={{
|
|
654
|
+
position: 'relative',
|
|
655
|
+
}}
|
|
656
|
+
/>
|
|
657
|
+
)}
|
|
658
|
+
{sectionproperties.faviconshape == 'Star Shape' && (
|
|
659
|
+
<AiFillStar
|
|
660
|
+
className={`${header_cssstyles.wishlist_btn}`}
|
|
661
|
+
size={sectionproperties.favBtnIconfontsize}
|
|
662
|
+
style={{
|
|
663
|
+
position: 'relative',
|
|
664
|
+
}}
|
|
665
|
+
/>
|
|
666
|
+
)}
|
|
667
|
+
<div className={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}`}>
|
|
668
|
+
<span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
|
|
669
|
+
</div>
|
|
670
|
+
</div>
|
|
671
|
+
</div>
|
|
672
|
+
<div className=" d-flex flex-row justify-content-end align-items-center">
|
|
673
|
+
<div
|
|
674
|
+
className="row w-100 m-0 align-items-center d-flex flex-row justify-content-end"
|
|
675
|
+
style={{
|
|
676
|
+
position: 'relative',
|
|
677
|
+
}}
|
|
678
|
+
onClick={() => {
|
|
679
|
+
setsidecartnavshowcontext(true);
|
|
680
|
+
}}
|
|
681
|
+
>
|
|
682
|
+
<div style={{ position: 'relative' }} className={`${header_cssstyles.cart_btn}` + ' cursor-pointer d-flex align-items-center justify-content-center '}>
|
|
683
|
+
<div className={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
|
|
684
|
+
{fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
|
|
685
|
+
</div>
|
|
686
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
|
|
687
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
|
|
688
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
|
|
689
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
|
|
690
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
691
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
692
|
+
</div>
|
|
693
|
+
<div className={langdetect == 'en' ? 'ml-2' : 'mr-2'}>
|
|
694
|
+
<div className="row m-0 w-100 d-flex align-items-center flex-column justify-content-start">
|
|
695
|
+
<p
|
|
696
|
+
className="m-0 p-0 w-100"
|
|
697
|
+
style={{
|
|
698
|
+
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
699
|
+
color: sectionproperties.cartBtnTextcolor,
|
|
700
|
+
fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
701
|
+
lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
|
|
702
|
+
fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
703
|
+
textTransform: sectionproperties.cartBtnTexttransform,
|
|
704
|
+
cursor: 'pointer',
|
|
705
|
+
}}
|
|
706
|
+
>
|
|
707
|
+
{lang.cart}
|
|
708
|
+
</p>
|
|
709
|
+
<p
|
|
710
|
+
className="m-0 text-left"
|
|
711
|
+
style={{
|
|
712
|
+
color: sectionproperties.card_secondarycolor,
|
|
713
|
+
fontSize: sectionproperties.secondaryfontsize + 'px',
|
|
714
|
+
fontWeight: sectionproperties.secondaryfontweight,
|
|
715
|
+
cursor: 'pointer',
|
|
716
|
+
}}
|
|
717
|
+
>
|
|
718
|
+
{langdetect == 'en' ? 'EGP' : ''} {subtotalcart()} {langdetect == 'en' ? '' : 'ج.م'}
|
|
719
|
+
</p>
|
|
720
|
+
</div>
|
|
721
|
+
</div>
|
|
722
|
+
</div>
|
|
723
|
+
</div>
|
|
724
|
+
<div
|
|
725
|
+
className="d-flex flex-row justify-content-end align-items-center"
|
|
726
|
+
onClick={() => {
|
|
727
|
+
if (langdetect == 'en') {
|
|
728
|
+
setlang('ar');
|
|
729
|
+
} else {
|
|
730
|
+
setlang('en');
|
|
731
|
+
}
|
|
732
|
+
}}
|
|
733
|
+
>
|
|
734
|
+
{langdetect == 'en' && (
|
|
735
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
736
|
+
<img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
737
|
+
</div>
|
|
738
|
+
)}
|
|
739
|
+
{langdetect == 'ar' && (
|
|
740
|
+
<div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
|
|
741
|
+
<img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
742
|
+
</div>
|
|
743
|
+
)}
|
|
744
|
+
</div>
|
|
745
|
+
</div>
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
{/* Lower Header */}
|
|
750
|
+
<div className="col-lg-12 p-0 d-flex justify-content-center" style={{ background: sectionproperties.vl_bg }}>
|
|
751
|
+
<div className={`${header_cssstyles.divider}` + ' '}></div>
|
|
752
|
+
</div>
|
|
753
|
+
<div className={`${header_cssstyles.lowerheadercontainer}` + ' row w-100 m-0 align-items-center '}>
|
|
754
|
+
<div
|
|
755
|
+
className={' col-lg-2 d-flex align-items-center '}
|
|
756
|
+
style={{}}
|
|
757
|
+
onClick={() => {
|
|
758
|
+
setdropdownselect(!dropdownselect);
|
|
759
|
+
}}
|
|
760
|
+
>
|
|
761
|
+
<div className={`${header_cssstyles.categorybtn}` + ' categoriesdropdown transformedDropdown d-flex align-items-center justify-content-center '}>
|
|
762
|
+
<Dropdown className="d-flex align-items-center justify-content-center">
|
|
763
|
+
<Dropdown.Toggle className="d-flex align-items-center justify-content-center">
|
|
764
|
+
<div className={`${header_cssstyles.btntextcontainer}` + ' row w-100 m-0 align-items-center '} style={{ paddingTop: '7px' }}>
|
|
765
|
+
<i className="h-100 d-flex align-items-center justify-content-center">
|
|
766
|
+
<HiMenuAlt4 size={25} color="white" />
|
|
767
|
+
</i>
|
|
768
|
+
<p className={langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '}>{lang.shopbycategory}</p>
|
|
769
|
+
</div>
|
|
770
|
+
</Dropdown.Toggle>
|
|
771
|
+
<Dropdown.Menu style={{ minWidth: '250px', marginLeft: '-20px' }}>
|
|
772
|
+
{authdetailsContext?.instinfo?.instcollections?.map((item, index) => (
|
|
773
|
+
<div>
|
|
774
|
+
<Dropdown.Item
|
|
775
|
+
onClick={() => {
|
|
776
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
|
|
777
|
+
}}
|
|
778
|
+
>
|
|
779
|
+
<div className={`${header_cssstyles.dropdownitemcontainer}` + ' row m-0 w-100 '}>
|
|
780
|
+
<div className={' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center '}>
|
|
781
|
+
<p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem text-overflow m-0 p-0 '}>
|
|
782
|
+
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
783
|
+
</p>
|
|
784
|
+
</div>
|
|
785
|
+
</div>
|
|
786
|
+
</Dropdown.Item>
|
|
787
|
+
{index != authdetailsContext.instinfo.instcollections.length - 1 && <Dropdown.Divider></Dropdown.Divider>}
|
|
788
|
+
</div>
|
|
789
|
+
))}
|
|
790
|
+
</Dropdown.Menu>
|
|
791
|
+
</Dropdown>
|
|
792
|
+
</div>
|
|
793
|
+
</div>
|
|
794
|
+
<div
|
|
795
|
+
className="col-lg-10 flex-row align-items-center justify-content-start"
|
|
796
|
+
style={{
|
|
797
|
+
display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'block' : 'flex',
|
|
798
|
+
}}
|
|
799
|
+
>
|
|
800
|
+
<ul
|
|
801
|
+
className={' mb-0 pb-0 mt-0 flex-row justify-content-start '}
|
|
802
|
+
style={{
|
|
803
|
+
display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex',
|
|
804
|
+
}}
|
|
805
|
+
>
|
|
806
|
+
{templatepropcontext.pagesnprop.map((item, index) => {
|
|
807
|
+
var activeclass = '';
|
|
808
|
+
var pagedisabled = '';
|
|
809
|
+
if (item.isselected) {
|
|
810
|
+
activeclass = header_cssstyles.navbar_item_active;
|
|
811
|
+
}
|
|
812
|
+
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
813
|
+
return (
|
|
814
|
+
// <div
|
|
815
|
+
// onClick={() => {
|
|
816
|
+
// history.push(item.navigationroute);
|
|
817
|
+
// }}
|
|
818
|
+
// >
|
|
819
|
+
// <li
|
|
820
|
+
// onClick={() => {
|
|
821
|
+
// history.push(item.navigationroute);
|
|
822
|
+
// }}
|
|
823
|
+
// className={`${activeclass}`}
|
|
824
|
+
// style={{
|
|
825
|
+
// marginRight: langdetect == 'en' ? '25px' : 0,
|
|
826
|
+
// marginLeft: langdetect == 'en' ? 0 : '25px',
|
|
827
|
+
// }}
|
|
828
|
+
// >
|
|
829
|
+
// <div className={`${header_cssstyles.navbar_item_text}`}> {langdetect == 'en' ? item.pagename : item.pagename_ar}</div>
|
|
830
|
+
// </li>
|
|
831
|
+
// </div>
|
|
832
|
+
<div
|
|
833
|
+
style={{ cursor: 'pointer' }}
|
|
834
|
+
onClick={() => {
|
|
835
|
+
routingcountext(item.navigationroute);
|
|
836
|
+
|
|
837
|
+
// alert(item.navigationroute);
|
|
838
|
+
// history.push(item.navigationroute);
|
|
839
|
+
}}
|
|
840
|
+
>
|
|
841
|
+
<li
|
|
842
|
+
// className={`${activeclass}`}
|
|
843
|
+
style={{
|
|
844
|
+
marginRight: langdetect == 'en' ? '25px' : 0,
|
|
845
|
+
marginLeft: langdetect == 'en' ? 0 : '25px',
|
|
846
|
+
}}
|
|
847
|
+
>
|
|
848
|
+
<div className={`${header_cssstyles.navbar_item_text}`}>
|
|
849
|
+
<span>{langdetect == 'en' ? item.pagename : item.pagename_ar}</span>
|
|
850
|
+
</div>
|
|
851
|
+
</li>
|
|
852
|
+
</div>
|
|
853
|
+
);
|
|
854
|
+
}
|
|
855
|
+
})}
|
|
856
|
+
</ul>
|
|
857
|
+
{sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
|
|
858
|
+
<Subheader
|
|
859
|
+
sectionpropertiesprops={sectionproperties}
|
|
860
|
+
actions={actions}
|
|
861
|
+
subheaderpropertiesprops={{
|
|
862
|
+
subheaderpositionprops: 'in nav',
|
|
863
|
+
paddingLeftprops: '25px',
|
|
864
|
+
paddingRightprops: '25px',
|
|
865
|
+
}}
|
|
866
|
+
/>
|
|
867
|
+
)}
|
|
868
|
+
</div>
|
|
869
|
+
</div>
|
|
870
|
+
{sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
|
|
871
|
+
<div className="col-lg-12 p-0">
|
|
872
|
+
<Subheader
|
|
873
|
+
sectionpropertiesprops={sectionproperties}
|
|
874
|
+
actions={actions}
|
|
875
|
+
subheaderpropertiesprops={{
|
|
876
|
+
subheaderpositionprops: 'Full Width',
|
|
877
|
+
paddingLeftprops: '25px',
|
|
878
|
+
paddingRightprops: '25px',
|
|
879
|
+
}}
|
|
880
|
+
/>
|
|
881
|
+
</div>
|
|
882
|
+
)}
|
|
883
|
+
</div>
|
|
884
|
+
<Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
|
|
885
|
+
</div>
|
|
886
|
+
);
|
|
887
|
+
};
|
|
888
|
+
export default Header8;
|