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,722 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import Dropdown from 'react-bootstrap/Dropdown';
3
+ import headerstyles from '../../../styles/headers/Allinoneheader.module.css';
4
+ import { IKImage } from 'imagekitio-react';
5
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
6
+ import { css } from 'glamor';
7
+ import { BsBag, BsHandbag } from 'react-icons/bs';
8
+ import { BiLogOutCircle } from 'react-icons/bi';
9
+ import { MdOutlinePolicy, MdOutlineShoppingCart, MdKeyboardArrowDown } from 'react-icons/md';
10
+ import { FaRegHeart } from 'react-icons/fa';
11
+ import { CgShoppingBag } from 'react-icons/cg';
12
+ import { GoSearch } from 'react-icons/go';
13
+ import { AiOutlineLogin, AiOutlineUserAdd } from 'react-icons/ai';
14
+ import { AiOutlineStar, AiFillStar } from 'react-icons/ai';
15
+ import { FiShoppingBag, FiShoppingCart, FiUser } from 'react-icons/fi';
16
+ import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
17
+ import egyptflag from '../../../assets/images/egyptflag.png';
18
+ import usflag from '../../../assets/images/usflag.png';
19
+ import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
20
+ import Subheader from '../Subheader/Subheader.jsx';
21
+ // import { useHistory } from 'react-router-dom';
22
+
23
+ const AllinoneHeader = (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
+ const history = props.actions.history;
41
+ // const fetch_inst_tabex_websitetemplatesQueryContext = props.fetch_inst_tabex_websitetemplatesQueryContext;
42
+ useEffect(() => {
43
+ var secpropobj = {};
44
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
45
+ if (sectionitem.sectionid == props.sectionidprops) {
46
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
47
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
48
+ });
49
+ }
50
+ });
51
+ if (Object.keys(secpropobj).length === 0) {
52
+ if (props.defaultproperties != undefined && props.defaultproperties.length != 0) {
53
+ props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
54
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
55
+ });
56
+ }
57
+ }
58
+ setsectionproperties({ ...secpropobj });
59
+ }, [StatePagePropertiesContext]);
60
+ const header_cssstyles = {
61
+ top_bar: css({
62
+ background: sectionproperties.uppersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.uppersection_bgcolor,
63
+ borderTopLeftRadius: sectionproperties.uppersection_btlradius + 'px',
64
+ borderTopRightRadius: sectionproperties.uppersection_btrradius + 'px',
65
+ borderBottomLeftRadius: sectionproperties.uppersection_bblradius + 'px',
66
+ borderBottomRightRadius: sectionproperties.uppersection_bbrradius + 'px',
67
+ paddingLeft: sectionproperties.uppersection_paddingleft + 'px',
68
+ paddingRight: sectionproperties.uppersection_paddingright + 'px',
69
+ paddingTop: sectionproperties.uppersection_paddingtop + 'px',
70
+ paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
71
+ }),
72
+ header_logo: css({
73
+ width: templateproperties_context.logo_width + 'px',
74
+ height: templateproperties_context.logo_height + 'px',
75
+ }),
76
+ topheadericon: css({
77
+ color: sectionproperties.uppersection_iconcolor,
78
+ fontSize: sectionproperties.uppersection_infoiconfontsize + 'px',
79
+ }),
80
+ topheadertitle: css({
81
+ color: sectionproperties.uppersection_titlecolor,
82
+ fontSize: sectionproperties.uppersection_titlefontsize + 'px',
83
+ fontWeight: sectionproperties.uppersection_titlefontweight,
84
+ textTransform: sectionproperties.uppersection_titletextransform,
85
+ }),
86
+ cart_btn: css({
87
+ width: sectionproperties.cartBtnWidth + 'px',
88
+ height: sectionproperties.cartBtnHeight + 'px',
89
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
90
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
91
+ border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
92
+ color: sectionproperties.cart_iconcolor,
93
+ cursor: 'pointer',
94
+ transition: '.3s',
95
+ ':hover': {
96
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
97
+ borderColor: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.cartBtnTextcoloronhover : sectionproperties.cartBtnbgColoronhover,
98
+ color: sectionproperties.cartBtnTextcoloronhover,
99
+ },
100
+ }),
101
+ badge_counter_header_notifications: css({
102
+ background: sectionproperties.badge_bgcolor,
103
+ width: sectionproperties.badge_width + 'px',
104
+ height: sectionproperties.badge_height + 'px',
105
+ color: sectionproperties.badge_color,
106
+ borderRadius: sectionproperties.badge_borderradius + 'px',
107
+ fontSize: sectionproperties.badge_fontsize + 'px',
108
+ position: 'absolute',
109
+ transform: 'scale(0.3)',
110
+ transformOrigin: 'top right',
111
+ display: 'flex',
112
+ alignItems: 'center',
113
+ justifyContent: 'center',
114
+ }),
115
+ cartbadge: css({
116
+ top: sectionproperties.cartbadgetop + 'px',
117
+ right: sectionproperties.cartbadgeright + 'px',
118
+ }),
119
+ header_divider: css({
120
+ height: sectionproperties.vl_height + 'px',
121
+ background: sectionproperties.vl_bg,
122
+ width: sectionproperties.vl_width + '%',
123
+ }),
124
+ navbar_nav: css({
125
+ background: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.lowersection_backgroundColor,
126
+ borderBottomLeftRadius: sectionproperties.lowersection_borderBottomLeftRadius + 'px',
127
+ borderBottomRightRadius: sectionproperties.lowersection_BorderBottomRightRadius + 'px',
128
+ borderTopLeftRadius: sectionproperties.lowersection_borderTopLeftRadius + 'px',
129
+ borderTopRightRadius: sectionproperties.lowersection_borderTopRightRadius + 'px',
130
+ paddingTop: sectionproperties.lowersection_paddingtop + 'px',
131
+ paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
132
+ paddingLeft: langdetect == 'en' ? sectionproperties.lowersection_paddingleft + 'px' : sectionproperties.lowersection_paddingright + 'px',
133
+ paddingRight: langdetect == 'en' ? sectionproperties.lowersection_paddingright + 'px' : sectionproperties.lowersection_paddingleft + 'px',
134
+ }),
135
+ topbar_item: css({
136
+ color: sectionproperties.lowersection_fontColor,
137
+ fontSize: sectionproperties.lowersection_fontsize + 'px',
138
+ textTransform: sectionproperties.lowersection_textTransform,
139
+ fontWeight: sectionproperties.lowersection_textfontweight,
140
+ transition: '.3s',
141
+ ':hover': {
142
+ color: sectionproperties.lowersection_fontColoronhover,
143
+ },
144
+ ':before': {
145
+ background: sectionproperties.lowersection_fontColoronhover,
146
+ },
147
+ }),
148
+ user_btn: css({
149
+ background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
150
+ width: sectionproperties.userBtnWidth + 'px',
151
+ height: sectionproperties.userBtnHeight + 'px',
152
+ borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
153
+ color: sectionproperties.userBtniconcolor,
154
+ fontSize: sectionproperties.userBtniconfontsize + 'px',
155
+ border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
156
+ cursor: 'pointer',
157
+ transition: '.3s',
158
+ ':hover': {
159
+ color: sectionproperties.userBtnTextcoloronhover,
160
+ background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
161
+ borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
162
+ },
163
+ }),
164
+ loggedinusername: css({
165
+ fontWeight: sectionproperties.userBtnTextfontweight,
166
+ textTransform: sectionproperties.userBtnTexttransform,
167
+ color: sectionproperties.userBtnTextcolor,
168
+ fontSize: sectionproperties.userBtntextfontsize + 'px',
169
+ lineHeight: sectionproperties.userBtntextfontsize + 'px',
170
+ transition: '.3s',
171
+ maxWidth: '70px',
172
+ }),
173
+ loggedinuserbtn: css({
174
+ width: sectionproperties.loggedinuserbtn_width + 'px',
175
+ height: sectionproperties.loggedinuserbtn_height + 'px',
176
+ border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
177
+ borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
178
+ background: sectionproperties.userBtnbgColor_loggedin,
179
+ color: sectionproperties.userBtniconcolor_loggedin,
180
+ transition: '.3s',
181
+ ':hover': {
182
+ backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
183
+ },
184
+ }),
185
+ userBtnLoggedinContainer: css({
186
+ transition: '.3s',
187
+ ':hover .loggedinuserbtn': {
188
+ transition: '.3s',
189
+ color: sectionproperties.userBtnTextcoloronhover_loggedin,
190
+ borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
191
+ },
192
+ ':hover .loggedinuserbtnbg': {
193
+ backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
194
+ color: sectionproperties.userbtn_loggedin_iconcoloronhover,
195
+ },
196
+ }),
197
+ wishlist_btn: css({
198
+ width: sectionproperties.favBtnWidth + 'px',
199
+ height: sectionproperties.favBtnHeight + 'px',
200
+ background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
201
+ borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
202
+ color: sectionproperties.favBtniconcolor,
203
+ border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
204
+ cursor: 'pointer',
205
+ transition: '.3s',
206
+ ':hover': {
207
+ background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
208
+ borderColor: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.favBtnTextcoloronhover : sectionproperties.favBtnbgColoronhover,
209
+ color: sectionproperties.favBtnTextcoloronhover,
210
+ },
211
+ }),
212
+ searchbarcont: css({
213
+ position: 'relative',
214
+ width: sectionproperties.searchbarcont_width + 'px',
215
+ height: sectionproperties.searchbarcont_height + 'px',
216
+ background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
217
+ borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
218
+ border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
219
+ color: sectionproperties.searchbarcont_color,
220
+ cursor: 'pointer',
221
+ transition: '.3s',
222
+ ':hover': {
223
+ background: sectionproperties.searchbarcont_transparentbghover == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bghover,
224
+ borderColor: sectionproperties.searchbarcont_transparentbghover == 'Transparent' ? sectionproperties.searchbarcontcoloronhover : sectionproperties.searchbarcont_bghover,
225
+ color: sectionproperties.searchbarcontcoloronhover,
226
+ },
227
+ }),
228
+ searchbarcont_input: css({
229
+ height: '45px',
230
+ outline: 'none',
231
+ border: 'none',
232
+ transition: '0.3s',
233
+ color: sectionproperties.searchbarcontinput_color,
234
+ fontWeight: sectionproperties.searchbarcont_inputfontweight,
235
+ fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
236
+ paddingLeft: langdetect == 'en' ? '5px' : '60px',
237
+ paddingRight: langdetect == 'en' ? '60px' : '5px',
238
+ ':focus': {
239
+ borderBottom: sectionproperties.searchbarcontinput_borderBottom + 'px solid ' + sectionproperties.searchbarcontinput_bordercoloronfocus,
240
+ },
241
+ }),
242
+ dropdownitemcontainer: css({
243
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
244
+ color: sectionproperties.dropdown_color,
245
+ fontWeight: sectionproperties.dropdown_fontweight,
246
+ textTransform: sectionproperties.dropdown_texttransform,
247
+ padding: '0.3rem 0.8rem',
248
+ display: 'flex',
249
+ alignItems: 'center',
250
+ transition: '.3s',
251
+ ':hover': {
252
+ color: sectionproperties.dropdown_hovercolor,
253
+ },
254
+ }),
255
+ languagecontainer: css({
256
+ color: sectionproperties.language_container_color,
257
+ fontSize: sectionproperties.language_container_fontsize + 'px',
258
+ fontWeight: 600,
259
+ cursor: 'pointer',
260
+ transition: '.3s',
261
+ ':hover': {
262
+ color: sectionproperties.language_container_coloronhover,
263
+ },
264
+ }),
265
+ };
266
+ const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
267
+ useEffect(() => {
268
+ if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
269
+ var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
270
+ if (Array.isArray(logoarrayofobjectsparsed)) {
271
+ setlogoarrayofobjects([...logoarrayofobjectsparsed]);
272
+ }
273
+ }
274
+ }, [templateproperties_context]);
275
+ const subtotalcart = () => {
276
+ var totalprice = 0;
277
+ fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach(function (cartitem, cartindex) {
278
+ var finalprice = 0;
279
+ if (cartitem.productinfo.hassale == 0) {
280
+ finalprice = cartitem.productinfo.defaultprice;
281
+ } else if (cartitem.productinfo.hassale == 1) {
282
+ finalprice = cartitem.productinfo.defaultsaleprice;
283
+ }
284
+ totalprice = finalprice * cartitem.quantity + totalprice;
285
+ });
286
+ return totalprice;
287
+ };
288
+ return (
289
+ <div className={`${headerstyles.header_container}` + ' row m-0 w-100 d-flex justify-content-center '} style={{ position: 'relative' }}>
290
+ <div
291
+ className="row m-0 d-md-none"
292
+ style={{
293
+ position: sectionproperties.headerstyles_position,
294
+ marginTop: sectionproperties.header_marginTop + 'px',
295
+ marginBottom: sectionproperties.header_marginBottom + 'px',
296
+ width: '100vw',
297
+ }}
298
+ >
299
+ <div className="col-lg-12 p-0">
300
+ <div className={`${header_cssstyles.top_bar}` + ' row m-0 w-100 d-flex align-items-center '}>
301
+ <div className="col-lg-3 col-md-6 col-sm-12 d-flex align-items-center justify-content-start p-0">
302
+ <div
303
+ className={`${header_cssstyles.header_logo}`}
304
+ style={{ cursor: 'pointer' }}
305
+ onClick={() => {
306
+ routingcountext('home');
307
+ }}
308
+ >
309
+ <IKImage
310
+ urlEndpoint={IKurlEndpoint}
311
+ publicKey={IKpublicKey}
312
+ path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
313
+ style={{
314
+ width: '100%',
315
+ height: '100%',
316
+ objectFit: 'contain',
317
+ }}
318
+ />
319
+ </div>
320
+ </div>
321
+ <div className="col-lg-9 col-md-6 col-sm-12 allcentered p-0">
322
+ <div className="row m-0 w-100 d-flex justify-content-end align-items-center">
323
+ {sectionproperties.searchbar_show == 'Show' && (
324
+ <div className="col-lg-5 p-0 d-flex justify-content-end align-items-center">
325
+ <div className="row m-0 w-100 d-flex justify-content-end align-items-center">
326
+ <div className="col-lg-12 p-0 d-flex justify-content-end align-items-center">
327
+ <input
328
+ className={`${headerstyles.searchbar} ${header_cssstyles.searchbarcont_input}`}
329
+ placeholder={langdetect == 'en' ? "What're we looking for?" : 'البحث...'}
330
+ onChange={(event) => {
331
+ setSearchHeaderInputContext(event.target.value);
332
+ }}
333
+ style={{
334
+ right: langdetect == 'en' ? 0 : '',
335
+ left: langdetect == 'en' ? '' : 0,
336
+ }}
337
+ />
338
+ <div className={`${header_cssstyles.searchbarcont}` + ' d-flex justify-content-center align-items-center '}>
339
+ <i className={headerstyles.searchbaractive + ' h-100 d-flex align-items-center'}>
340
+ <GoSearch
341
+ size={sectionproperties.searchbarcontfontsize}
342
+ style={{
343
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
344
+ }}
345
+ />
346
+ </i>
347
+ </div>
348
+ </div>
349
+ <div className="col-lg-12 p-0 d-flex justify-content-end align-items-center">
350
+ <Searchlist sectionpropertiesprops={sectionproperties} actions={actions} srcfromprops={'header-400'} />
351
+ </div>
352
+ </div>
353
+ </div>
354
+ )}
355
+ <Dropdown
356
+ style={{
357
+ marginLeft: langdetect == 'en' ? '1rem' : '',
358
+ marginRight: langdetect == 'ar' ? '1rem' : '',
359
+ }}
360
+ >
361
+ <Dropdown.Toggle>
362
+ {!authdetailsContext.loggedin && (
363
+ <div className={` ${header_cssstyles.user_btn}` + ' d-flex align-items-center justify-content-center '} sytle={{ position: 'relative' }}>
364
+ <i className={' h-100 d-flex align-items-center '}>
365
+ <FiUser size={sectionproperties.userBtnTextfontsize} />
366
+ </i>
367
+ </div>
368
+ )}
369
+ {authdetailsContext.loggedin && (
370
+ <div className={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
371
+ <div className={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
372
+ <i className={' h-100 allcentered '}>
373
+ <FiUser size={sectionproperties.loggedinusericonfontsize} />
374
+ </i>
375
+ </div>
376
+ <div
377
+ className="m-0 p-0 loggedinuserbtn flex-column"
378
+ style={{
379
+ textAlign: langdetect == 'en' ? 'left' : 'right',
380
+ }}
381
+ >
382
+ <p
383
+ className="m-0 p-0"
384
+ style={{
385
+ color: sectionproperties.greetingtextcolor,
386
+ fontSize: sectionproperties.greetingtextfontsize + 'px',
387
+ lineHeight: sectionproperties.greetingtextfontsize + 'px',
388
+ fontWeight: 400,
389
+ }}
390
+ >
391
+ {lang.hello}
392
+ {langdetect == 'en' ? ',' : '،'}
393
+ </p>
394
+ <p className={header_cssstyles.loggedinusername + ' loggedinuserbtn m-0 p-0 text-overflow '}>{authdetailsContext.customerinfo.name}</p>
395
+ </div>
396
+ </div>
397
+ )}
398
+ </Dropdown.Toggle>
399
+ {!authdetailsContext.loggedin && (
400
+ <Dropdown.Menu>
401
+ <Dropdown.Item
402
+ onClick={() => {
403
+ routingcountext(StaticPagesLinksContext.Login);
404
+ }}
405
+ >
406
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
407
+ <p className={' d-flex align-items-center m-0 p-0 '}>
408
+ <AiOutlineLogin className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
409
+ <span>{lang.login}</span>
410
+ </p>
411
+ </div>
412
+ </Dropdown.Item>
413
+ <Dropdown.Divider></Dropdown.Divider>
414
+ <Dropdown.Item
415
+ onClick={() => {
416
+ routingcountext(StaticPagesLinksContext.Signup);
417
+ }}
418
+ >
419
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
420
+ <p className={' d-flex align-items-center m-0 p-0 '}>
421
+ <AiOutlineUserAdd className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
422
+ <span className="text-transform-none">{lang.signup}</span>
423
+ </p>
424
+ </div>
425
+ </Dropdown.Item>
426
+ </Dropdown.Menu>
427
+ )}
428
+ {authdetailsContext.loggedin && (
429
+ <Dropdown.Menu style={{ minWidth: '200px' }}>
430
+ <Dropdown.Item
431
+ onClick={() => {
432
+ routingcountext(StaticPagesLinksContext.Ordershistory);
433
+ }}
434
+ >
435
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
436
+ <i className="h-100 allcentered">
437
+ {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
438
+ {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
439
+ {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
440
+ {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
441
+ {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
442
+ {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
443
+ </i>
444
+ <p className={' allcenetered m-0 p-0 '}>{lang.orderhistory}</p>
445
+ </div>
446
+ </Dropdown.Item>
447
+ <Dropdown.Divider></Dropdown.Divider>
448
+ <Dropdown.Item
449
+ onClick={() => {
450
+ routingcountext(StaticPagesLinksContext.Wishlist);
451
+ }}
452
+ >
453
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
454
+ <i className="h-100 allcentered">
455
+ {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
456
+ {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
457
+ </i>
458
+ <p className={' allcenetered m-0 p-0 '}>{lang.wishlist}</p>
459
+ </div>
460
+ </Dropdown.Item>
461
+ <Dropdown.Divider></Dropdown.Divider>
462
+ <Dropdown.Item
463
+ onClick={() => {
464
+ routingcountext(StaticPagesLinksContext.Policies);
465
+ }}
466
+ >
467
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
468
+ <i className="h-100 allcentered">
469
+ <MdOutlinePolicy className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
470
+ </i>
471
+ <p className={' allcenetered m-0 p-0 '}>{lang.policies}</p>
472
+ </div>
473
+ </Dropdown.Item>
474
+ <Dropdown.Divider></Dropdown.Divider>
475
+ <Dropdown.Item
476
+ onClick={() => {
477
+ LogoutMutationContext.mutate();
478
+ }}
479
+ >
480
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
481
+ <i className="h-100 allcentered">
482
+ <BiLogOutCircle className={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
483
+ </i>
484
+ <p className={' allcenetered m-0 p-0 '}>{lang.logout}</p>
485
+ </div>
486
+ </Dropdown.Item>
487
+ </Dropdown.Menu>
488
+ )}
489
+ </Dropdown>
490
+ {sectionproperties.favBtnShow == 'Show' && (
491
+ <div
492
+ className={
493
+ langdetect == 'en'
494
+ ? `${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center ml-3 '
495
+ : `${header_cssstyles.wishlist_btn}` + ' d-flex justify-content-center align-items-center mr-3 '
496
+ }
497
+ onClick={() => {
498
+ routingcountext(StaticPagesLinksContext.Wishlist);
499
+ }}
500
+ >
501
+ <i className={'h-100 d-flex align-items-center'}>
502
+ {sectionproperties.faviconshape == 'Heart Shape' && (
503
+ <FaRegHeart
504
+ style={{
505
+ fontSize: sectionproperties.favBtnIconfontsize + 'px',
506
+ }}
507
+ />
508
+ )}
509
+ {sectionproperties.faviconshape == 'Star Shape' && (
510
+ <AiOutlineStar
511
+ style={{
512
+ fontSize: sectionproperties.favBtnIconfontsize + 'px',
513
+ }}
514
+ />
515
+ )}
516
+ </i>
517
+ </div>
518
+ )}
519
+
520
+ {sectionproperties.cartBtnShow == 'Show' && (
521
+ <div
522
+ className="m-0 d-flex flex-row align-items-center justify-content-end ml-3 mr-4"
523
+ onClick={() => {
524
+ setsidecartnavshowcontext(true);
525
+ }}
526
+ >
527
+ <div className={`${header_cssstyles.cart_btn}` + ' allcentered ml-2 mr-2 '} style={{ position: 'relative' }}>
528
+ {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
529
+ {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
530
+ {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
531
+ {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
532
+ {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
533
+ {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
534
+ <div className={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
535
+ {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
536
+ </div>
537
+ </div>
538
+ <p
539
+ className="m-0 p-0 d-flex flex-column "
540
+ style={{
541
+ color: sectionproperties.cartBtnTextcolor,
542
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
543
+ lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
544
+ fontWeight: sectionproperties.cartBtnTextfontweight,
545
+ textTransform: sectionproperties.cartBtnTexttransform,
546
+ cursor: 'pointer',
547
+ textAlign: langdetect == 'en' ? 'left' : 'right',
548
+ }}
549
+ >
550
+ {lang.cart}
551
+ <p
552
+ className="m-0 p-0"
553
+ style={{
554
+ color: sectionproperties.total_color,
555
+ fontSize: sectionproperties.total_fontsize + 'px',
556
+ fontWeight: sectionproperties.total_fontweight,
557
+ textAlign: langdetect == 'en' ? 'left' : 'right',
558
+ cursor: 'pointer',
559
+ }}
560
+ >
561
+ {langdetect == 'en' ? 'EGP' : ''} {subtotalcart()} {langdetect == 'en' ? '' : 'ج.م'}
562
+ </p>
563
+ </p>
564
+ </div>
565
+ )}
566
+ <div className={langdetect == 'en' ? 'headerdropdownml' : 'headerdropdownmr'}>
567
+ <Dropdown>
568
+ <Dropdown.Toggle>
569
+ <li className={' d-flex align-items-center justify-content-center '}>
570
+ {langdetect == 'en' && (
571
+ <div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
572
+ <p className="m-0 p-0 mr-2">En</p>
573
+ <MdKeyboardArrowDown />
574
+ </div>
575
+ )}
576
+ {langdetect == 'ar' && (
577
+ <div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
578
+ <p className="m-0 p-0 ml-2">ع</p>
579
+ <MdKeyboardArrowDown />
580
+ </div>
581
+ )}
582
+ </li>
583
+ </Dropdown.Toggle>
584
+ <Dropdown.Menu>
585
+ <Dropdown.Item
586
+ onClick={() => {
587
+ setlang('ar');
588
+ }}
589
+ >
590
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
591
+ <p
592
+ className={'dropdownitem d-flex align-items-center m-0 p-0'}
593
+ style={{
594
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
595
+ fontWeight: sectionproperties.dropdown_fontweight,
596
+ textTransform: sectionproperties.dropdown_texttransform,
597
+ }}
598
+ >
599
+ <img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
600
+ <span className={'ml-2 mr-2'}>{lang.arabic}</span>
601
+ </p>
602
+ </div>
603
+ </Dropdown.Item>
604
+ <Dropdown.Divider></Dropdown.Divider>
605
+ <Dropdown.Item
606
+ onClick={() => {
607
+ setlang('en');
608
+ }}
609
+ >
610
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' p-0 '}>
611
+ <p
612
+ className={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
613
+ style={{
614
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
615
+ fontWeight: sectionproperties.dropdown_fontweight,
616
+ textTransform: sectionproperties.dropdown_texttransform,
617
+ }}
618
+ >
619
+ <img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
620
+ <span className={'ml-2 mr-2'}>{lang.english}</span>
621
+ </p>
622
+ </div>
623
+ </Dropdown.Item>
624
+ </Dropdown.Menu>
625
+ </Dropdown>
626
+ </div>
627
+ </div>
628
+ </div>
629
+ {sectionproperties.showlowerheadersection == 'Show' && (
630
+ <div className="col-lg-12 p-0 mt-2 mb-2">
631
+ <div className={header_cssstyles.header_divider}></div>
632
+ </div>
633
+ )}
634
+ </div>
635
+ </div>
636
+ {sectionproperties.showlowerheadersection == 'Show' && (
637
+ <div
638
+ className={`${header_cssstyles.navbar_nav} ` + ' col-lg-12 align-items-center '}
639
+ style={{
640
+ display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'block' : 'flex',
641
+ }}
642
+ >
643
+ <div
644
+ className="row m-0 w-100 align-items-center"
645
+ style={{
646
+ display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'block' : 'flex',
647
+ }}
648
+ >
649
+ <nav
650
+ className={headerstyles.navbar}
651
+ style={{
652
+ display: sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex',
653
+ }}
654
+ >
655
+ <ul>
656
+ {templatepropcontext.pagesnprop.map((item, index) => {
657
+ if (item.isnavigation == 1 && item.isactive == 1) {
658
+ return (
659
+ <div
660
+ onClick={() => {
661
+ history.push(item.navigationroute);
662
+ }}
663
+ >
664
+ <li
665
+ className={`${headerstyles.topbar_item_container}`}
666
+ style={{
667
+ marginRight: langdetect == 'en' ? '35px' : 0,
668
+ marginLeft: langdetect == 'en' ? 0 : '35px',
669
+ }}
670
+ onClick={() => {
671
+ templatepropcontext.pagesnprop.forEach(function (pageitem, pageindex) {
672
+ pageitem.isselected = false;
673
+ });
674
+ templatepropcontext.pagesnprop[index].isselected = true;
675
+ }}
676
+ >
677
+ <div className={`${headerstyles.topbar_item} ${header_cssstyles.topbar_item}`}>
678
+ <span>{langdetect == 'en' ? item.pagename : item.pagename_ar}</span>
679
+ </div>
680
+ </li>
681
+ </div>
682
+ );
683
+ }
684
+ })}
685
+ </ul>
686
+ </nav>
687
+ {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
688
+ <Subheader
689
+ sectionpropertiesprops={sectionproperties}
690
+ subheaderpropertiesprops={{
691
+ subheaderpositionprops: 'in nav',
692
+ paddingLeftprops: '35px',
693
+ paddingRightprops: '35px',
694
+ subheadercontentpositionprops: 'start',
695
+ }}
696
+ actions={actions}
697
+ />
698
+ )}
699
+ </div>
700
+ </div>
701
+ )}
702
+ <div className="col-lg-12 p-0">
703
+ {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
704
+ <Subheader
705
+ sectionpropertiesprops={sectionproperties}
706
+ subheaderpropertiesprops={{
707
+ subheaderpositionprops: 'Full Width',
708
+ paddingLeftprops: '35px',
709
+ paddingRightprops: '35px',
710
+ subheadercontentpositionprops: 'center',
711
+ }}
712
+ actions={actions}
713
+ />
714
+ )}
715
+ </div>
716
+ </div>
717
+ <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
718
+ </div>
719
+ );
720
+ };
721
+
722
+ export default AllinoneHeader;