tabexseriescomponents 0.0.64 → 0.0.65

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