tabexseriescomponents 0.0.64 → 0.0.65

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