tabexseriescomponents 0.0.80 → 0.0.82
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 +41 -13
- package/dist/index.esm.js +41 -13
- package/dist/index.umd.js +41 -13
- package/package.json +1 -1
- package/componentssrc.rar +0 -0
- package/srcOLD/Contexts/LanguageContext.jsx +0 -347
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/srcOLD/StylesJS/Customstyles.js +0 -235
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +0 -40
- package/srcOLD/index.jsx +0 -175
- package/srcOLD/styles/Home.module.css +0 -129
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/srcOLD/styles/cards/Productcard6.module.css +0 -9
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/srcOLD/styles/cards/categorycard.module.css +0 -102
- package/srcOLD/styles/cards/categorycard3.module.css +0 -51
- package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcOLD/styles/general/bootstrap.css +0 -4420
- package/srcOLD/styles/general/dropdown.css +0 -199
- package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
- package/srcOLD/styles/general/filter.module.css +0 -108
- package/srcOLD/styles/general/form.module.css +0 -273
- package/srcOLD/styles/general/general.module.css +0 -709
- package/srcOLD/styles/general/image-gallery.css +0 -481
- package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
- package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
- package/srcOLD/styles/general/scrollbtn.module.css +0 -22
- package/srcOLD/styles/general/slick.module.css +0 -166
- package/srcOLD/styles/general/tabs.module.css +0 -110
- package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
- package/srcOLD/styles/globals.css +0 -26
- package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
- package/srcOLD/styles/headers/Header7.module.css +0 -50
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
- package/srcOLD/styles/headers/Sideheader.module.css +0 -108
- package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +0 -175
- package/srcOLD/styles/headers/header5.module.css +0 -30
- package/srcOLD/styles/headers/header6.module.css +0 -117
- package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
- package/srcOLD/styles/headers/headerresturant.module.css +0 -89
- package/srcOLD/styles/headers/headerstyles.module.css +0 -24
- package/srcOLD/styles/headers/modernheader.module.css +0 -78
- package/srcOLD/styles/headers/subheader.module.css +0 -114
- package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/srcOLD/styles/staticpages/accordion.module.css +0 -9
- package/srcOLD/styles/staticpages/cart.module.css +0 -108
- package/srcOLD/styles/staticpages/dropdown.css +0 -196
- package/srcOLD/styles/staticpages/filter.module.css +0 -139
- package/srcOLD/styles/staticpages/login.module.css +0 -146
- package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
- package/srcOLD/styles/staticpages/shop.module.css +0 -191
- package/srcOLD/styles/staticpages/signup.module.css +0 -206
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
- package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
|
@@ -1,754 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
// import { useHistory, Link } from 'react-router-dom';
|
|
3
|
-
import Dropdown from 'react-bootstrap/Dropdown';
|
|
4
|
-
// import './dropdown.css';
|
|
5
|
-
// import headerstyles from './headerresturant.module.css';
|
|
6
|
-
import headerstyles from '../../../styles/headers/headerresturant.module.css';
|
|
7
|
-
|
|
8
|
-
// import { LanguageContext } from '../../../LanguageContext';
|
|
9
|
-
import { IKImage } from 'imagekitio-react';
|
|
10
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
11
|
-
|
|
12
|
-
// import { FetchingContext } from '../../../FetchingContext';
|
|
13
|
-
// import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
|
|
14
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
|
|
15
|
-
import { css } from 'glamor';
|
|
16
|
-
// import Subheader from '../Subheader/Subheader';
|
|
17
|
-
// import Headerresponsive from '../Headerresponsive/Headerresponsive';
|
|
18
|
-
import { BiLogOutCircle } from 'react-icons/bi';
|
|
19
|
-
import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
|
|
20
|
-
import { FaRegHeart } from 'react-icons/fa';
|
|
21
|
-
import { CgShoppingBag } from 'react-icons/cg';
|
|
22
|
-
import { BsInfoCircle, BsHandbag, BsBag, BsWhatsapp } from 'react-icons/bs';
|
|
23
|
-
import { AiFillStar } from 'react-icons/ai';
|
|
24
|
-
import { FiShoppingBag, FiShoppingCart, FiUser } from 'react-icons/fi';
|
|
25
|
-
// import egyptflag from '../../Generalfiles/images/egyptflag.png';
|
|
26
|
-
// import usflag from '../../Generalfiles/images/usflag.png';
|
|
27
|
-
import { FaFacebookF } from 'react-icons/fa';
|
|
28
|
-
import { AiFillInstagram, AiOutlineLogin, AiOutlineUserAdd, AiOutlineStar, AiOutlineHeart } from 'react-icons/ai';
|
|
29
|
-
|
|
30
|
-
// import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
|
|
31
|
-
import egyptflag from '../../../assets/images/egyptflag.png';
|
|
32
|
-
import usflag from '../../../assets/images/usflag.png';
|
|
33
|
-
import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
|
|
34
|
-
import Subheader from '../Subheader/Subheader.jsx';
|
|
35
|
-
|
|
36
|
-
const HeaderRestaurant = (props) => {
|
|
37
|
-
// let history = useHistory();
|
|
38
|
-
// const { lang, setlang, langdetect } = useContext(LanguageContext);
|
|
39
|
-
// const { fetch_inst_tabex_websitetemplatesQueryContext, StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
|
|
40
|
-
// const {
|
|
41
|
-
// templateproperties_context,
|
|
42
|
-
// setsidecartnavshowcontext,
|
|
43
|
-
// fetchAuthorizationQueryContext,
|
|
44
|
-
// LogoutMutationContext,
|
|
45
|
-
// fetchcustomercartQueryContext,
|
|
46
|
-
// favoriteprojectscountContext,
|
|
47
|
-
// setSearchHeaderInputContext,
|
|
48
|
-
// } = useContext(FetchingContext);
|
|
49
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
50
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
51
|
-
|
|
52
|
-
const LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
53
|
-
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
54
|
-
const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
55
|
-
const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
|
|
56
|
-
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
57
|
-
const lang = props.actions.lang;
|
|
58
|
-
const langdetect = props.actions.langdetect;
|
|
59
|
-
const setlang = props.actions.setlang;
|
|
60
|
-
const templatepropcontext = props.actions.templatepropcontext;
|
|
61
|
-
const authdetailsContext = props.actions.authdetailsContext;
|
|
62
|
-
const templateproperties_context = props.actions.templateproperties_context;
|
|
63
|
-
const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
64
|
-
const routingcountext = props.actions.routingcountext;
|
|
65
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
66
|
-
const actions = props.actions;
|
|
67
|
-
// const fetch_inst_tabex_websitetemplatesQueryContext = props.fetch_inst_tabex_websitetemplatesQueryContext;
|
|
68
|
-
useEffect(() => {
|
|
69
|
-
var secpropobj = {};
|
|
70
|
-
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
71
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
72
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
73
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
if (Object.keys(secpropobj).length === 0) {
|
|
79
|
-
props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
|
|
80
|
-
secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
setsectionproperties({ ...secpropobj });
|
|
85
|
-
}, [StatePagePropertiesContext]);
|
|
86
|
-
const header_cssstyles = {
|
|
87
|
-
header_logo: css({
|
|
88
|
-
width: templateproperties_context.logo_width + 'px',
|
|
89
|
-
height: templateproperties_context.logo_height + 'px',
|
|
90
|
-
}),
|
|
91
|
-
header_innercontainer: css({
|
|
92
|
-
justifyContent: 'center',
|
|
93
|
-
marginTop: sectionproperties.header_marginTop + 'px',
|
|
94
|
-
marginBottom: sectionproperties.header_marginBottom + 'px',
|
|
95
|
-
width: '100vw',
|
|
96
|
-
position: sectionproperties.headerstyles_position,
|
|
97
|
-
zIndex: 11000,
|
|
98
|
-
backgroundColor: sectionproperties.headerstyles_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.header_backgroundColor,
|
|
99
|
-
borderBottomLeftRadius: sectionproperties.header_borderBottomLeftRadius + 'px',
|
|
100
|
-
borderBottomRightRadius: sectionproperties.header_BorderBottomRightRadius + 'px',
|
|
101
|
-
borderTopLeftRadius: sectionproperties.header_borderTopLeftRadius + 'px',
|
|
102
|
-
borderTopRightRadius: sectionproperties.header_borderTopRightRadius + 'px',
|
|
103
|
-
paddingLeft: langdetect == 'en' ? sectionproperties.header_paddingLeft + 'px' : sectionproperties.header_paddingRight + 'px',
|
|
104
|
-
paddingRight: langdetect == 'en' ? sectionproperties.header_paddingRight + 'px' : sectionproperties.header_paddingLeft + 'px',
|
|
105
|
-
paddingTop: sectionproperties.header_paddingTop + 'px',
|
|
106
|
-
paddingBottom: sectionproperties.header_paddingBottom + 'px',
|
|
107
|
-
}),
|
|
108
|
-
navbar_item_text: css({
|
|
109
|
-
color: sectionproperties.header_fontColor,
|
|
110
|
-
fontSize: sectionproperties.header_fontSize + 'px',
|
|
111
|
-
textTransform: sectionproperties.header_textTransform,
|
|
112
|
-
fontWeight: sectionproperties.header_textfontweight,
|
|
113
|
-
':after': {
|
|
114
|
-
background: sectionproperties.header_fontColoronhover,
|
|
115
|
-
},
|
|
116
|
-
':hover': {
|
|
117
|
-
color: sectionproperties.header_fontColoronhover,
|
|
118
|
-
},
|
|
119
|
-
}),
|
|
120
|
-
cart_btn: css({
|
|
121
|
-
width: sectionproperties.cartBtnWidth + 'px',
|
|
122
|
-
height: sectionproperties.cartBtnHeight + 'px',
|
|
123
|
-
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
124
|
-
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
125
|
-
color: sectionproperties.cart_iconcolor,
|
|
126
|
-
border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
127
|
-
transition: '.3s',
|
|
128
|
-
':hover': {
|
|
129
|
-
background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
130
|
-
color: sectionproperties.cartBtnTextcoloronhover,
|
|
131
|
-
},
|
|
132
|
-
}),
|
|
133
|
-
badge_counter_header_notifications: css({
|
|
134
|
-
background: sectionproperties.badge_bgcolor,
|
|
135
|
-
width: sectionproperties.badge_width + 'px',
|
|
136
|
-
height: sectionproperties.badge_height + 'px',
|
|
137
|
-
color: sectionproperties.badge_color,
|
|
138
|
-
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
139
|
-
fontSize: sectionproperties.badge_fontsize + 'px',
|
|
140
|
-
}),
|
|
141
|
-
infoiconcontainer: css({
|
|
142
|
-
width: sectionproperties.iconcontainerwidth + 'px',
|
|
143
|
-
height: sectionproperties.iconcontainerheight + 'px',
|
|
144
|
-
borderBottomLeftRadius: sectionproperties.iconcontainerborderbl + 'px',
|
|
145
|
-
borderBottomRightRadius: sectionproperties.iconcontainerborderbr + 'px',
|
|
146
|
-
borderTopLeftRadius: sectionproperties.iconcontainerbordertl + 'px',
|
|
147
|
-
borderTopRightRadius: sectionproperties.iconcontainerbordertr + 'px',
|
|
148
|
-
backgroundColor: sectionproperties.iconcontainerbg,
|
|
149
|
-
color: sectionproperties.iconcontainercolor,
|
|
150
|
-
':hover': {
|
|
151
|
-
transition: '.3s',
|
|
152
|
-
background: sectionproperties.iconcontainerbgonhover,
|
|
153
|
-
color: sectionproperties.iconcontainercoloronhover,
|
|
154
|
-
},
|
|
155
|
-
}),
|
|
156
|
-
facebook_btn: css({
|
|
157
|
-
cursor: 'pointer',
|
|
158
|
-
background: sectionproperties.facebkbtnn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.facebkbtnnbgColor,
|
|
159
|
-
width: sectionproperties.facebkbtnnWidth + 'px',
|
|
160
|
-
height: sectionproperties.facebkbtnnHeight + 'px',
|
|
161
|
-
borderRadius: sectionproperties.facebkbtnn_borderRadius + 'px',
|
|
162
|
-
color: sectionproperties.facebkbtnnTextcolor,
|
|
163
|
-
border: sectionproperties.facebkbtnnborderwidth + 'px solid ' + sectionproperties.facebkbtnnbordercolor,
|
|
164
|
-
transition: '.3s',
|
|
165
|
-
':hover': {
|
|
166
|
-
background: sectionproperties.facebkbtnntransparentbgcoloronhover == 'transparent' ? 'Transparent' : sectionproperties.facebkbtnnbgColoronhover,
|
|
167
|
-
color: sectionproperties.facebkbtnnTextcoloronhover,
|
|
168
|
-
borderColor: sectionproperties.facebkbtnntransparentbgcoloronhover == 'Transparent' ? sectionproperties.facebkbtnnTextcoloronhover : sectionproperties.facebkbtnnbgColoronhover,
|
|
169
|
-
},
|
|
170
|
-
}),
|
|
171
|
-
youtube_btn: css({
|
|
172
|
-
cursor: 'pointer',
|
|
173
|
-
background: sectionproperties.youtubebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColor,
|
|
174
|
-
width: sectionproperties.youtubebtnWidth + 'px',
|
|
175
|
-
height: sectionproperties.youtubebtnHeight + 'px',
|
|
176
|
-
borderRadius: sectionproperties.youtubebtn_borderRadius + 'px',
|
|
177
|
-
color: sectionproperties.youtubebtnTextcolor,
|
|
178
|
-
border: sectionproperties.youtubebtnborderwidth + 'px solid ' + sectionproperties.youtubebtnbordercolor,
|
|
179
|
-
transition: '.3s',
|
|
180
|
-
':hover': {
|
|
181
|
-
background: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.youtubebtnbgColoronhover,
|
|
182
|
-
color: sectionproperties.youtubebtnTextcoloronhover,
|
|
183
|
-
borderColor: sectionproperties.youtubebtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.youtubebtnTextcoloronhover : sectionproperties.youtubebtnbgColoronhover,
|
|
184
|
-
},
|
|
185
|
-
}),
|
|
186
|
-
instgram_btn: css({
|
|
187
|
-
cursor: 'pointer',
|
|
188
|
-
background: sectionproperties.instgrambtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColor,
|
|
189
|
-
width: sectionproperties.instgrambtnWidth + 'px',
|
|
190
|
-
height: sectionproperties.instgrambtnHeight + 'px',
|
|
191
|
-
borderRadius: sectionproperties.instgrambtn_borderRadius + 'px',
|
|
192
|
-
color: sectionproperties.instgrambtnTextcolor,
|
|
193
|
-
border: sectionproperties.instgrambtnborderwidth + 'px solid ' + sectionproperties.instgrambtnbordercolor,
|
|
194
|
-
transition: '.3s',
|
|
195
|
-
':hover': {
|
|
196
|
-
background: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.instgrambtnbgColoronhover,
|
|
197
|
-
color: sectionproperties.instgrambtnTextcoloronhover,
|
|
198
|
-
borderColor: sectionproperties.instgrambtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.instgrambtnTextcoloronhover : sectionproperties.instgrambtnbgColoronhover,
|
|
199
|
-
},
|
|
200
|
-
}),
|
|
201
|
-
user_btn: css({
|
|
202
|
-
background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
|
|
203
|
-
width: sectionproperties.userBtnWidth + 'px',
|
|
204
|
-
height: sectionproperties.userBtnHeight + 'px',
|
|
205
|
-
borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
|
|
206
|
-
color: sectionproperties.userBtniconcolor,
|
|
207
|
-
fontSize: sectionproperties.userBtniconfontsize + 'px',
|
|
208
|
-
border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
|
|
209
|
-
cursor: 'pointer',
|
|
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
|
-
maxWidth: '40px',
|
|
225
|
-
}),
|
|
226
|
-
greetingstyles: css({
|
|
227
|
-
color: sectionproperties.greetingtextcolor,
|
|
228
|
-
fontSize: sectionproperties.greetingtextfontsize + 'px',
|
|
229
|
-
lineHeight: sectionproperties.greetingtextfontsize + 'px',
|
|
230
|
-
fontWeight: 400,
|
|
231
|
-
}),
|
|
232
|
-
loggedinuserbtn: css({
|
|
233
|
-
width: sectionproperties.loggedinuserbtn_width + 'px',
|
|
234
|
-
height: sectionproperties.loggedinuserbtn_height + 'px',
|
|
235
|
-
border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
|
|
236
|
-
borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
|
|
237
|
-
background: sectionproperties.userBtnbgColor_loggedin,
|
|
238
|
-
color: sectionproperties.userBtniconcolor_loggedin,
|
|
239
|
-
transition: '.3s',
|
|
240
|
-
':hover': {
|
|
241
|
-
backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
|
|
242
|
-
},
|
|
243
|
-
}),
|
|
244
|
-
userBtnLoggedinContainer: css({
|
|
245
|
-
transition: '.3s',
|
|
246
|
-
':hover .loggedinuserbtn': {
|
|
247
|
-
transition: '.3s',
|
|
248
|
-
color: sectionproperties.userBtnTextcoloronhover_loggedin,
|
|
249
|
-
borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
|
|
250
|
-
},
|
|
251
|
-
':hover .loggedinuserbtnbg': {
|
|
252
|
-
backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
|
|
253
|
-
color: sectionproperties.userbtn_loggedin_iconcoloronhover,
|
|
254
|
-
},
|
|
255
|
-
}),
|
|
256
|
-
dropdownitemcontainer: css({
|
|
257
|
-
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
258
|
-
color: sectionproperties.dropdown_color,
|
|
259
|
-
fontWeight: sectionproperties.dropdown_fontweight,
|
|
260
|
-
textTransform: sectionproperties.dropdown_texttransform,
|
|
261
|
-
padding: '0.3rem 0.8rem',
|
|
262
|
-
display: 'flex',
|
|
263
|
-
alignItems: 'center',
|
|
264
|
-
transition: '.3s',
|
|
265
|
-
':hover': {
|
|
266
|
-
color: sectionproperties.dropdown_hovercolor,
|
|
267
|
-
},
|
|
268
|
-
}),
|
|
269
|
-
informationtitle: css({
|
|
270
|
-
color: sectionproperties.userinfo_titlecolor,
|
|
271
|
-
fontSize: sectionproperties.userinfo_titlefontsize + 'px',
|
|
272
|
-
fontWeight: sectionproperties.userinfo_titlefontweight,
|
|
273
|
-
}),
|
|
274
|
-
infotext: css({
|
|
275
|
-
color: sectionproperties.userinfo_color,
|
|
276
|
-
fontSize: sectionproperties.userinfo_fontsize + 'px',
|
|
277
|
-
fontWeight: sectionproperties.userinfo_fontweight,
|
|
278
|
-
}),
|
|
279
|
-
language_container: css({
|
|
280
|
-
background: sectionproperties.language_container_bgcolor,
|
|
281
|
-
width: sectionproperties.language_container_width + 'px',
|
|
282
|
-
height: sectionproperties.language_container_height + 'px',
|
|
283
|
-
color: sectionproperties.language_container_color,
|
|
284
|
-
borderRadius: sectionproperties.language_container_borderRadius + 'px',
|
|
285
|
-
fontSize: sectionproperties.language_container_fontsize + 'px',
|
|
286
|
-
lineHeight: sectionproperties.language_container_fontsize + 'px',
|
|
287
|
-
':hover': {
|
|
288
|
-
color: sectionproperties.language_container_coloronhover,
|
|
289
|
-
background: sectionproperties.language_container_bgcoloronhover,
|
|
290
|
-
},
|
|
291
|
-
}),
|
|
292
|
-
wishlist_btn: css({
|
|
293
|
-
position: 'relative',
|
|
294
|
-
width: sectionproperties.favBtnWidth + 'px',
|
|
295
|
-
height: sectionproperties.favBtnHeight + 'px',
|
|
296
|
-
background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
|
|
297
|
-
borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
298
|
-
color: sectionproperties.favBtniconcolor,
|
|
299
|
-
border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
300
|
-
marginRight: langdetect == 'en' ? '15px' : 0,
|
|
301
|
-
marginLeft: langdetect == 'en' ? 0 : '15px',
|
|
302
|
-
cursor: 'pointer',
|
|
303
|
-
transition: '.3s',
|
|
304
|
-
':hover': {
|
|
305
|
-
background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
|
|
306
|
-
borderColor: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.favBtnTextcoloronhover : sectionproperties.favBtnbgColoronhover,
|
|
307
|
-
color: sectionproperties.favBtnTextcoloronhover,
|
|
308
|
-
},
|
|
309
|
-
}),
|
|
310
|
-
wishlistbadge: css({
|
|
311
|
-
top: sectionproperties.wishlistbadgetop + 'px',
|
|
312
|
-
right: sectionproperties.wishlistbadgeright + 'px',
|
|
313
|
-
}),
|
|
314
|
-
};
|
|
315
|
-
const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
|
|
316
|
-
useEffect(() => {
|
|
317
|
-
if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
|
|
318
|
-
var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
|
|
319
|
-
if (Array.isArray(logoarrayofobjectsparsed)) {
|
|
320
|
-
setlogoarrayofobjects([...logoarrayofobjectsparsed]);
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
}, [templateproperties_context]);
|
|
324
|
-
return (
|
|
325
|
-
<div class={' row ml-0 mr-0 w-100 d-flex justify-content-center position-md-relative '} style={{ position: sectionproperties.headerstyles_position }}>
|
|
326
|
-
<div class="col-lg-12 p-0">
|
|
327
|
-
<div class={`${headerstyles.header_innercontainer} ${header_cssstyles.header_innercontainer}` + ' row m-0 w-100 d-flex d-md-none align-items-center '}>
|
|
328
|
-
<div class="col-lg-4 p-0 d-flex align-items-center">
|
|
329
|
-
<div
|
|
330
|
-
class={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
|
|
331
|
-
style={{ cursor: 'pointer' }}
|
|
332
|
-
onClick={() => {
|
|
333
|
-
routingcountext('home');
|
|
334
|
-
}}
|
|
335
|
-
>
|
|
336
|
-
<IKImage
|
|
337
|
-
urlEndpoint={IKurlEndpoint}
|
|
338
|
-
publicKey={IKpublicKey}
|
|
339
|
-
path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
|
|
340
|
-
style={{
|
|
341
|
-
maxWidth: '100%',
|
|
342
|
-
maxHeight: '100%',
|
|
343
|
-
}}
|
|
344
|
-
/>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
<div class="col-lg-4 p-0 d-flex align-items-center justify-content-center">
|
|
348
|
-
<nav class={headerstyles.navbar}>
|
|
349
|
-
<ul>
|
|
350
|
-
{templatepropcontext.pagesnprop.map((item, index) => {
|
|
351
|
-
var activeclass = '';
|
|
352
|
-
var pagedisabled = '';
|
|
353
|
-
if (item.isselected) {
|
|
354
|
-
activeclass = headerstyles.navbar_item_active;
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
if (item.isnavigation == 1 && item.isactive == 1) {
|
|
358
|
-
return (
|
|
359
|
-
<li class="allcentered" style={{ flex: 1, paddingLeft: '25px', paddingRight: '25px' }}>
|
|
360
|
-
<div
|
|
361
|
-
onClick={() => {
|
|
362
|
-
routingcountext(item.navigationroute, false, '');
|
|
363
|
-
}}
|
|
364
|
-
>
|
|
365
|
-
<div class={`${headerstyles.navbar_item} ${activeclass}`}>
|
|
366
|
-
<span class={`${headerstyles.navbar_item_text} ${header_cssstyles.navbar_item_text}`}>
|
|
367
|
-
{langdetect == 'en' ? item.pagename : item.pagename_ar}
|
|
368
|
-
</span>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
371
|
-
</li>
|
|
372
|
-
);
|
|
373
|
-
}
|
|
374
|
-
})}
|
|
375
|
-
</ul>
|
|
376
|
-
</nav>
|
|
377
|
-
{sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
|
|
378
|
-
<Subheader
|
|
379
|
-
sectionpropertiesprops={sectionproperties}
|
|
380
|
-
subheaderpropertiesprops={{
|
|
381
|
-
subheaderpositionprops: 'in nav',
|
|
382
|
-
paddingLeftprops: '25px',
|
|
383
|
-
paddingRightprops: '25px',
|
|
384
|
-
}}
|
|
385
|
-
actions={actions}
|
|
386
|
-
/>
|
|
387
|
-
)}
|
|
388
|
-
</div>
|
|
389
|
-
<div class="col-lg-4 p-0 d-flex align-items-center justify-content-end">
|
|
390
|
-
<Dropdown
|
|
391
|
-
style={{
|
|
392
|
-
// (authdetailsContext.loggedin == true ? '30px' : '28px') : 0,
|
|
393
|
-
// (authdetailsContext.loggedin == true ? '30px' : '6px') : '30px'
|
|
394
|
-
marginRight: langdetect == 'en' ? '30px' : 0,
|
|
395
|
-
marginLeft: langdetect == 'ar' ? '30px' : 0,
|
|
396
|
-
}}
|
|
397
|
-
>
|
|
398
|
-
<Dropdown.Toggle>
|
|
399
|
-
<div class={' d-flex align-items-center justify-content-center '}>
|
|
400
|
-
{!authdetailsContext.loggedin && (
|
|
401
|
-
<span class={`${header_cssstyles.user_btn}` + ' d-flex justify-content-center align-items-center '}>
|
|
402
|
-
<FiUser size={sectionproperties.userBtniconfontsize} />
|
|
403
|
-
</span>
|
|
404
|
-
)}
|
|
405
|
-
{authdetailsContext.loggedin && (
|
|
406
|
-
<div class={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
|
|
407
|
-
<div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
|
|
408
|
-
<i class={' h-100 allcentered '}>
|
|
409
|
-
<FiUser size={sectionproperties.loggedinusericonfontsize} />
|
|
410
|
-
</i>
|
|
411
|
-
</div>
|
|
412
|
-
<div
|
|
413
|
-
class="m-0 p-0 loggedinuserbtn flex-column"
|
|
414
|
-
style={{
|
|
415
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
416
|
-
}}
|
|
417
|
-
>
|
|
418
|
-
<p class={header_cssstyles.greetingstyles + ' m-0 p-0 '}>
|
|
419
|
-
{lang.hello}
|
|
420
|
-
{langdetect == 'en' ? ',' : '،'}
|
|
421
|
-
</p>
|
|
422
|
-
<p class={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '}>{authdetailsContext.customerinfo.name}</p>
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
)}
|
|
426
|
-
</div>
|
|
427
|
-
</Dropdown.Toggle>
|
|
428
|
-
{!authdetailsContext.loggedin && (
|
|
429
|
-
<Dropdown.Menu>
|
|
430
|
-
<Dropdown.Item
|
|
431
|
-
onClick={() => {
|
|
432
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
433
|
-
}}
|
|
434
|
-
>
|
|
435
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
436
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
437
|
-
<AiOutlineLogin class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
438
|
-
<span>{lang.login}</span>
|
|
439
|
-
</p>
|
|
440
|
-
</div>
|
|
441
|
-
</Dropdown.Item>
|
|
442
|
-
<Dropdown.Divider></Dropdown.Divider>
|
|
443
|
-
<Dropdown.Item
|
|
444
|
-
onClick={() => {
|
|
445
|
-
routingcountext(StaticPagesLinksContext.Signup);
|
|
446
|
-
}}
|
|
447
|
-
>
|
|
448
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
449
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
450
|
-
<AiOutlineUserAdd class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
451
|
-
<span class="text-transform-none">{lang.signup}</span>
|
|
452
|
-
</p>
|
|
453
|
-
</div>
|
|
454
|
-
</Dropdown.Item>
|
|
455
|
-
</Dropdown.Menu>
|
|
456
|
-
)}
|
|
457
|
-
{authdetailsContext.loggedin && (
|
|
458
|
-
<Dropdown.Menu style={{ minWidth: '200px' }}>
|
|
459
|
-
<Dropdown.Item
|
|
460
|
-
onClick={() => {
|
|
461
|
-
routingcountext(StaticPagesLinksContext.Ordershistory);
|
|
462
|
-
}}
|
|
463
|
-
>
|
|
464
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
465
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
466
|
-
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
467
|
-
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
468
|
-
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
469
|
-
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
470
|
-
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
471
|
-
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
472
|
-
<span>{lang.orderhistory}</span>
|
|
473
|
-
</p>
|
|
474
|
-
</div>
|
|
475
|
-
</Dropdown.Item>
|
|
476
|
-
<Dropdown.Divider></Dropdown.Divider>
|
|
477
|
-
<Dropdown.Item
|
|
478
|
-
onClick={() => {
|
|
479
|
-
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
480
|
-
}}
|
|
481
|
-
>
|
|
482
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
483
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
484
|
-
{sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
485
|
-
{sectionproperties.faviconshape == 'Star Shape' && <AiFillStar class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
|
|
486
|
-
<span>{lang.wishlist}</span>
|
|
487
|
-
</p>
|
|
488
|
-
</div>
|
|
489
|
-
</Dropdown.Item>
|
|
490
|
-
<Dropdown.Divider></Dropdown.Divider>
|
|
491
|
-
<Dropdown.Item
|
|
492
|
-
onClick={() => {
|
|
493
|
-
routingcountext(StaticPagesLinksContext.Policies);
|
|
494
|
-
}}
|
|
495
|
-
>
|
|
496
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
497
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
498
|
-
<MdOutlinePolicy class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
499
|
-
<span>{lang.policies}</span>
|
|
500
|
-
</p>
|
|
501
|
-
</div>
|
|
502
|
-
</Dropdown.Item>
|
|
503
|
-
<Dropdown.Divider></Dropdown.Divider>
|
|
504
|
-
<Dropdown.Item
|
|
505
|
-
onClick={() => {
|
|
506
|
-
LogoutMutationContext.mutate();
|
|
507
|
-
}}
|
|
508
|
-
>
|
|
509
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
510
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
511
|
-
<BiLogOutCircle class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
|
|
512
|
-
<span>{lang.logout}</span>
|
|
513
|
-
</p>
|
|
514
|
-
</div>
|
|
515
|
-
</Dropdown.Item>
|
|
516
|
-
</Dropdown.Menu>
|
|
517
|
-
)}
|
|
518
|
-
</Dropdown>
|
|
519
|
-
{sectionproperties.favBtnShow == 'Show' && (
|
|
520
|
-
<div
|
|
521
|
-
class={`${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center '}
|
|
522
|
-
onClick={() => {
|
|
523
|
-
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
524
|
-
}}
|
|
525
|
-
>
|
|
526
|
-
<span style={{ position: 'relative' }}>
|
|
527
|
-
<i class={' h-100 d-flex align-items-center '}>
|
|
528
|
-
{sectionproperties.faviconshape == 'Heart Shape' && (
|
|
529
|
-
<FaRegHeart
|
|
530
|
-
style={{
|
|
531
|
-
fontSize: sectionproperties.favBtnIconfontsize + 'px',
|
|
532
|
-
}}
|
|
533
|
-
/>
|
|
534
|
-
)}
|
|
535
|
-
{sectionproperties.faviconshape == 'Star Shape' && (
|
|
536
|
-
<AiOutlineStar
|
|
537
|
-
style={{
|
|
538
|
-
fontSize: sectionproperties.favBtnIconfontsize + 'px',
|
|
539
|
-
}}
|
|
540
|
-
/>
|
|
541
|
-
)}
|
|
542
|
-
</i>
|
|
543
|
-
<div
|
|
544
|
-
class={
|
|
545
|
-
`${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}` +
|
|
546
|
-
' d-flex justify-content-center text-center '
|
|
547
|
-
}
|
|
548
|
-
>
|
|
549
|
-
<span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
|
|
550
|
-
</div>
|
|
551
|
-
</span>
|
|
552
|
-
</div>
|
|
553
|
-
)}
|
|
554
|
-
<div
|
|
555
|
-
class={
|
|
556
|
-
!authdetailsContext.loggedin
|
|
557
|
-
? langdetect == 'en'
|
|
558
|
-
? `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered ml-3 mr-4 '
|
|
559
|
-
: `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered ml-4 mr-3 '
|
|
560
|
-
: `${header_cssstyles.cart_btn}` + ' cursor-pointer allcentered '
|
|
561
|
-
}
|
|
562
|
-
onClick={() => {
|
|
563
|
-
setsidecartnavshowcontext(true);
|
|
564
|
-
}}
|
|
565
|
-
style={{
|
|
566
|
-
marginRight: langdetect == 'en' ? '28px' : '15px',
|
|
567
|
-
marginLeft: langdetect == 'en' ? '15px' : '25px',
|
|
568
|
-
}}
|
|
569
|
-
>
|
|
570
|
-
<span style={{ position: 'relative' }}>
|
|
571
|
-
<i class={' allcentered '}>
|
|
572
|
-
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
573
|
-
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
574
|
-
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
575
|
-
{sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
576
|
-
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
577
|
-
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
578
|
-
</i>
|
|
579
|
-
<div
|
|
580
|
-
className={
|
|
581
|
-
`${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications}` + ' d-flex justify-content-center text-center '
|
|
582
|
-
}
|
|
583
|
-
style={{
|
|
584
|
-
top: sectionproperties.cartbadgetop + 'px',
|
|
585
|
-
right: sectionproperties.cartbadgeright + 'px',
|
|
586
|
-
}}
|
|
587
|
-
>
|
|
588
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart != null
|
|
589
|
-
? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length >= 10
|
|
590
|
-
? '+9'
|
|
591
|
-
: fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length
|
|
592
|
-
: 0}
|
|
593
|
-
</div>
|
|
594
|
-
</span>
|
|
595
|
-
</div>
|
|
596
|
-
<div class={langdetect == 'en' ? 'informationdropdown informationdropdown_en' : 'informationdropdown informationdropdown_ar'}>
|
|
597
|
-
<Dropdown>
|
|
598
|
-
<Dropdown.Toggle>
|
|
599
|
-
<i class={header_cssstyles.infoiconcontainer + ' allcentered '}>
|
|
600
|
-
<BsInfoCircle size={sectionproperties.icontextfontsize} />
|
|
601
|
-
</i>
|
|
602
|
-
</Dropdown.Toggle>
|
|
603
|
-
<Dropdown.Menu>
|
|
604
|
-
<Dropdown.Header
|
|
605
|
-
style={{
|
|
606
|
-
color: sectionproperties.sectionTitleColor,
|
|
607
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
608
|
-
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
609
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
610
|
-
}}
|
|
611
|
-
>
|
|
612
|
-
{langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
|
|
613
|
-
</Dropdown.Header>
|
|
614
|
-
<Dropdown.Divider />
|
|
615
|
-
<Dropdown.Item>
|
|
616
|
-
<div class="row m-0 w-100">
|
|
617
|
-
<div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
|
|
618
|
-
<p class={header_cssstyles.informationtitle + ' p-0 m-0 '}>{lang.address}:</p>
|
|
619
|
-
</div>
|
|
620
|
-
<div class="col-lg-9 d-flex align-items-center justify-content-start">
|
|
621
|
-
<p class={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext.instinfo.address_en}</p>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
</Dropdown.Item>
|
|
625
|
-
<Dropdown.Divider />
|
|
626
|
-
<Dropdown.Item>
|
|
627
|
-
<div class="row m-0 w-100">
|
|
628
|
-
<div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
|
|
629
|
-
<p class={header_cssstyles.informationtitle + ' p-0 m-0 '}>{langdetect == 'en' ? 'Phone' : 'التليفون'}:</p>
|
|
630
|
-
</div>
|
|
631
|
-
<div class="col-lg-9 d-flex align-items-center justify-content-start">
|
|
632
|
-
<p class={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext.instinfo.contactinfo.mobile}</p>
|
|
633
|
-
</div>
|
|
634
|
-
</div>
|
|
635
|
-
</Dropdown.Item>
|
|
636
|
-
<Dropdown.Divider />
|
|
637
|
-
<Dropdown.Item>
|
|
638
|
-
<div class="row m-0 w-100">
|
|
639
|
-
<div class="col-lg-3 p-0 d-flex align-items-center justify-content-start">
|
|
640
|
-
<p class={header_cssstyles.informationtitle + ' p-0 m-0 '}>{lang.email}:</p>
|
|
641
|
-
</div>
|
|
642
|
-
<div class="col-lg-9 d-flex align-items-center justify-content-start">
|
|
643
|
-
<p class={header_cssstyles.infotext + ' p-0 m-0 '}>{authdetailsContext.instinfo.contactinfo.email}</p>
|
|
644
|
-
</div>
|
|
645
|
-
</div>
|
|
646
|
-
</Dropdown.Item>
|
|
647
|
-
<Dropdown.Divider />
|
|
648
|
-
<Dropdown.Item>
|
|
649
|
-
<div class="col-lg-12 col-sm-12 mb-sm-2 p-3 d-flex justify-content-center">
|
|
650
|
-
<div class=" col-lg-12 d-flex flex-row align-items-center justify-content-center ">
|
|
651
|
-
{sectionproperties.fbbtn_show == 'Show' && (
|
|
652
|
-
<div class={`${header_cssstyles.facebook_btn}` + ' d-flex align-items-center justify-content-center '}>
|
|
653
|
-
<FaFacebookF size={sectionproperties.facebkbtnniconfontsize} />
|
|
654
|
-
</div>
|
|
655
|
-
)}
|
|
656
|
-
{sectionproperties.instbtn_show == 'Show' && (
|
|
657
|
-
<div class={`${header_cssstyles.instgram_btn}` + ' d-flex align-items-center justify-content-center ml-3 mr-3 '}>
|
|
658
|
-
<AiFillInstagram size={sectionproperties.instgrambtniconfontsize} />
|
|
659
|
-
</div>
|
|
660
|
-
)}
|
|
661
|
-
{sectionproperties.youtbtn_show == 'Show' && (
|
|
662
|
-
<div class={`${header_cssstyles.youtube_btn}` + ' d-flex align-items-center justify-content-center '}>
|
|
663
|
-
<BsWhatsapp size={sectionproperties.youtubebtniconfontsize} />
|
|
664
|
-
</div>
|
|
665
|
-
)}
|
|
666
|
-
</div>
|
|
667
|
-
</div>
|
|
668
|
-
</Dropdown.Item>
|
|
669
|
-
</Dropdown.Menu>
|
|
670
|
-
</Dropdown>
|
|
671
|
-
</div>
|
|
672
|
-
<div class={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
|
|
673
|
-
<Dropdown
|
|
674
|
-
style={{
|
|
675
|
-
marginLeft: langdetect == 'en' ? '25px' : 0,
|
|
676
|
-
marginRight: langdetect == 'ar' ? '25px' : 0,
|
|
677
|
-
}}
|
|
678
|
-
>
|
|
679
|
-
<Dropdown.Toggle>
|
|
680
|
-
<li class={' d-flex align-items-center justify-content-center '}>
|
|
681
|
-
{langdetect == 'en' && (
|
|
682
|
-
<div class={`${header_cssstyles.language_container}` + ' row m-0 allcentered '}>
|
|
683
|
-
<img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
684
|
-
<div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} class="ml-2 mr-2"></div>
|
|
685
|
-
<p class="m-0 p-0">ع</p>
|
|
686
|
-
</div>
|
|
687
|
-
)}
|
|
688
|
-
{langdetect == 'ar' && (
|
|
689
|
-
<div class={`${header_cssstyles.language_container}` + ' row m-0 allcentered '}>
|
|
690
|
-
<img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
691
|
-
<div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} class="ml-2 mr-2"></div>
|
|
692
|
-
<p class="m-0 p-0">En</p>
|
|
693
|
-
</div>
|
|
694
|
-
)}
|
|
695
|
-
</li>
|
|
696
|
-
</Dropdown.Toggle>
|
|
697
|
-
<Dropdown.Menu>
|
|
698
|
-
<Dropdown.Item
|
|
699
|
-
onClick={() => {
|
|
700
|
-
setlang('ar');
|
|
701
|
-
}}
|
|
702
|
-
>
|
|
703
|
-
<div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
|
|
704
|
-
<p class={' d-flex align-items-center m-0 p-0 '}>
|
|
705
|
-
<img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
706
|
-
<span class="ml-2 mr-2">{lang.arabic}</span>
|
|
707
|
-
</p>
|
|
708
|
-
</div>
|
|
709
|
-
</Dropdown.Item>
|
|
710
|
-
<Dropdown.Divider></Dropdown.Divider>
|
|
711
|
-
<Dropdown.Item
|
|
712
|
-
onClick={() => {
|
|
713
|
-
setlang('en');
|
|
714
|
-
}}
|
|
715
|
-
>
|
|
716
|
-
<span
|
|
717
|
-
class="d-flex align-items-center justify-content-center"
|
|
718
|
-
style={{
|
|
719
|
-
fontSize: sectionproperties.dropdown_fontsize + 'px',
|
|
720
|
-
fontWeight: sectionproperties.dropdown_fontweight,
|
|
721
|
-
textTransform: sectionproperties.dropdown_texttransform,
|
|
722
|
-
}}
|
|
723
|
-
>
|
|
724
|
-
<img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
|
|
725
|
-
<span class="ml-2 mr-2">{lang.english}</span>
|
|
726
|
-
</span>
|
|
727
|
-
</Dropdown.Item>
|
|
728
|
-
</Dropdown.Menu>
|
|
729
|
-
</Dropdown>
|
|
730
|
-
</div>
|
|
731
|
-
</div>
|
|
732
|
-
<div class="col-lg-12 p-0">
|
|
733
|
-
{sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
|
|
734
|
-
<Subheader
|
|
735
|
-
sectionpropertiesprops={sectionproperties}
|
|
736
|
-
subheaderpropertiesprops={{
|
|
737
|
-
subheaderpositionprops: 'Full Width',
|
|
738
|
-
paddingLeftprops: '25px',
|
|
739
|
-
paddingRightprops: '25px',
|
|
740
|
-
}}
|
|
741
|
-
actions={actions}
|
|
742
|
-
/>
|
|
743
|
-
)}
|
|
744
|
-
</div>
|
|
745
|
-
</div>
|
|
746
|
-
<div class="col-lg-12 p-0">
|
|
747
|
-
<Headerresponsive actions={actions} sectionpropertiesprops={sectionproperties} />
|
|
748
|
-
</div>
|
|
749
|
-
</div>
|
|
750
|
-
</div>
|
|
751
|
-
);
|
|
752
|
-
};
|
|
753
|
-
|
|
754
|
-
export default HeaderRestaurant;
|