tabexseriescomponents 0.0.63 → 0.0.65

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