tabexseriescomponents 0.0.64 → 0.0.66

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