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