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,882 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import { Link } from 'react-router-dom';
3
+ // import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
4
+ // import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
5
+ // import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
6
+ // import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
7
+ import { css } from 'glamor';
8
+ import Dropdown from 'react-bootstrap/Dropdown';
9
+
10
+ import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
11
+ import egyptflag from '../../../assets/images/egyptflag.png';
12
+ import usflag from '../../../assets/images/usflag.png';
13
+ import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
14
+ import Subheader from '../Subheader/Subheader.jsx';
15
+ import { AiOutlineUserAdd, AiOutlineLogin, AiFillStar } from 'react-icons/ai';
16
+ import { CgShoppingBag } from 'react-icons/cg';
17
+ import { BiLogOutCircle } from 'react-icons/bi';
18
+ import { FiShoppingCart, FiShoppingBag } from 'react-icons/fi';
19
+ import { MdOutlinePolicy, MdOutlineShoppingCart } from 'react-icons/md';
20
+ import { IKImage } from 'imagekitio-react';
21
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
22
+
23
+ import { BsSearch, BsHandbag, BsBag, BsTelephone } from 'react-icons/bs';
24
+ import { AiOutlineHeart } from 'react-icons/ai';
25
+ import { BiUser } from 'react-icons/bi';
26
+ import { HiMenuAlt4 } from 'react-icons/hi';
27
+ import whatsappicon from '../../../assets/images/whatsapp.png';
28
+ // import { Contexthandlerscontext } from '../../../../../../../Contexts/Contexthandlerscontext';
29
+ const Header8 = (props) => {
30
+ // const { lang, setlang, langdetect } = useContext(LanguageContext);
31
+ // const { templatepropcontext } = useContext(Contexthandlerscontext);
32
+ // const { StatePagePropertiesContext } = useContext(WebsiteDesignWorkPlaceContext);
33
+ // const {
34
+ // setSearchHeaderInputContext,
35
+ // fetchcustomercartQueryContext,
36
+ // fetchAuthorizationQueryContext,
37
+ // setsidecartnavshowcontext,
38
+ // LogoutMutationContext,
39
+ // favoriteprojectscountContext,
40
+ // templateproperties_context,
41
+ // } = useContext(FetchingContext);
42
+ // const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
43
+
44
+ const LogoutMutationContext = props.actions.LogoutMutationContext;
45
+ const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
46
+ const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
47
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
48
+ const lang = props.actions.lang;
49
+ const langdetect = props.actions.langdetect;
50
+ const setlang = props.actions.setlang;
51
+ const templatepropcontext = props.actions.templatepropcontext;
52
+ const authdetailsContext = props.actions.authdetailsContext;
53
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
54
+ const templateproperties_context = props.actions.templateproperties_context;
55
+ const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
56
+ const routingcountext = props.actions.routingcountext;
57
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
58
+ const actions = props.actions;
59
+ const [sectionproperties, setsectionproperties] = useState('');
60
+ const [dropdownselect, setdropdownselect] = useState(false);
61
+ useEffect(() => {
62
+ var secpropobj = {};
63
+ StatePagePropertiesContext?.pageobj?.sections?.forEach(function (sectionitem, sectionindex) {
64
+ if (sectionitem.sectionid == props.sectionidprops) {
65
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
66
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
67
+ });
68
+ }
69
+ });
70
+ if (Object.keys(secpropobj).length === 0) {
71
+ props?.defaultproperties?.forEach(function (defaultpropobj, defaultpropindex) {
72
+ secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
73
+ });
74
+ }
75
+ setsectionproperties({ ...secpropobj });
76
+ }, [StatePagePropertiesContext]);
77
+ const header_cssstyles = {
78
+ headercontainer: css({
79
+ position: sectionproperties.headerstyles_position == 'absolute' ? 'absolute' : 'relative',
80
+ width: sectionproperties.header_width + 'vw',
81
+ background: sectionproperties.uppersection_bgcolor,
82
+ zIndex: 1000,
83
+ transition: 'all 0.2s',
84
+ }),
85
+ upperheadersection: css({
86
+ background: sectionproperties.uppersection_bgcolor,
87
+ paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
88
+ paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
89
+ paddingTop: sectionproperties.uppersection_paddingtop + 'px',
90
+ paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
91
+ borderTopLeftRadius: sectionproperties.uppersection_btlradius + 'px',
92
+ borderTopRightRadius: sectionproperties.uppersection_btrradius + 'px',
93
+ borderBottomLeftRadius: sectionproperties.uppersection_bblradius + 'px',
94
+ borderBottomRightRadius: sectionproperties.uppersection_bbrradius + 'px',
95
+ }),
96
+ lowerheadercontainer: css({
97
+ backgroundColor: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.lowersection_backgroundColor,
98
+ borderBottomLeftRadius: sectionproperties.lowersection_borderBottomLeftRadius + 'px',
99
+ borderBottomRightRadius: sectionproperties.lowersection_BorderBottomRightRadius + 'px',
100
+ borderTopLeftRadius: sectionproperties.lowersection_borderTopLeftRadius + 'px',
101
+ borderTopRightRadius: sectionproperties.lowersection_borderTopRightRadius + 'px',
102
+ paddingLeft: '30px',
103
+ paddingRight: '30px',
104
+ paddingTop: sectionproperties.lowersection_paddingtop + 'px',
105
+ paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
106
+ }),
107
+ header_logo: css({
108
+ width: templateproperties_context.logo_width + 'px',
109
+ height: templateproperties_context.logo_height + 'px',
110
+ }),
111
+ navbar_item_text: css({
112
+ color: sectionproperties.lowersection_fontColor,
113
+ fontSize: sectionproperties.lowersection_fontsize + 'px',
114
+ textTransform: sectionproperties.lowersection_textTransform,
115
+ fontWeight: sectionproperties.lowersection_textfontweight,
116
+ transition: '0.3s',
117
+ padding: 0,
118
+ ':hover': {
119
+ color: sectionproperties.lowersection_fontColoronhover,
120
+ },
121
+ }),
122
+ navbar_item_active: css({
123
+ color: sectionproperties.lowersection_fontColoronhover,
124
+ }),
125
+ dropdownitem: css({
126
+ padding: '0 0.1rem',
127
+ transition: '.3s',
128
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
129
+ color: sectionproperties.dropdown_color,
130
+ fontWeight: sectionproperties.dropdown_fontweight,
131
+ textTransform: sectionproperties.dropdown_texttransform,
132
+ }),
133
+ dropdownicon: css({
134
+ color: sectionproperties.dropdowniconcolor,
135
+ }),
136
+ dropdownitemcontainer: css({
137
+ ':hover .dropdownitem': { color: sectionproperties.dropdown_hovercolor },
138
+ }),
139
+ divider: css({
140
+ height: sectionproperties.vl_height + 'px',
141
+ width: sectionproperties.vl_width + '%',
142
+ backgroundColor: sectionproperties.vl_bg,
143
+ zIndex: 100,
144
+ }),
145
+ searchbarcont: css({
146
+ position: 'relative',
147
+ transition: '.3s',
148
+ height: sectionproperties.searchbarcont_height + 'px',
149
+ background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
150
+ width: sectionproperties.searchbarcont_width + 'px',
151
+ borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
152
+ border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
153
+ }),
154
+ searchbar_icon_cont: css({
155
+ width: sectionproperties.searchbaricon_width + 'px',
156
+ height: sectionproperties.searchbaricon_height + 'px',
157
+ borderRadius: sectionproperties.searchbaricon_borderRadius + 'px',
158
+ color: sectionproperties.searchbaricon_color,
159
+ backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
160
+ transition: '0.3s ease',
161
+ position: 'absolute',
162
+ right: langdetect == 'en' ? 0 : '',
163
+ left: langdetect == 'en' ? '' : 0,
164
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
165
+ bottom: 0,
166
+ top: 0,
167
+ margin: 'auto',
168
+ }),
169
+ searchbarcont_input: css({
170
+ height: '100%',
171
+ width: '100%',
172
+ outline: 'none',
173
+ background: 'transparent',
174
+ color: sectionproperties.searchbarcontinput_color,
175
+ fontWeight: sectionproperties.searchbarcont_inputfontweight,
176
+ fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
177
+ paddingLeft: langdetect == 'en' ? sectionproperties.searchbarcont_paddingLeft + 'px' : sectionproperties.searchbarcont_paddingRight + 'px',
178
+ paddingRight: langdetect == 'en' ? sectionproperties.searchbarcont_paddingRight + 'px' : sectionproperties.searchbarcont_paddingLeft,
179
+ transition: '0.3s',
180
+ ':focus': {
181
+ borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus,
182
+ },
183
+ }),
184
+ wishlist_btn: css({
185
+ width: sectionproperties.favBtnWidth + 'px',
186
+ height: sectionproperties.favBtnHeight + 'px',
187
+ background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
188
+ borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
189
+ color: sectionproperties.favBtniconcolor,
190
+ border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
191
+ transition: '.3s',
192
+ ':hover': {
193
+ background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
194
+ color: sectionproperties.favBtnTextcoloronhover,
195
+ },
196
+ }),
197
+ wishlistbadge: css({
198
+ top: sectionproperties.wishlistbadgetop + 'px',
199
+ right: sectionproperties.wishlistbadgeright + 'px',
200
+ }),
201
+ user_btn: css({
202
+ background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
203
+ width: sectionproperties.userBtnWidth + 'px',
204
+ height: sectionproperties.userBtnHeight + 'px',
205
+ borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
206
+ color: sectionproperties.userBtniconcolor,
207
+ border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
208
+ transition: '.3s',
209
+ ':hover': {
210
+ color: sectionproperties.userBtnTextcoloronhover,
211
+ background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
212
+ borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
213
+ },
214
+ }),
215
+ loggedinusername: css({
216
+ fontWeight: sectionproperties.userBtnTextfontweight,
217
+ textTransform: sectionproperties.userBtnTexttransform,
218
+ color: sectionproperties.userBtnTextcolor,
219
+ fontSize: sectionproperties.userBtntextfontsize + 'px',
220
+ lineHeight: sectionproperties.userBtntextfontsize + 'px',
221
+ transition: '.3s',
222
+ }),
223
+ user_btnContainer: css({
224
+ ':hover .user_btnbg': {
225
+ background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
226
+ color: sectionproperties.userBtnTextcoloronhover,
227
+ },
228
+ ':hover .user_btn': {
229
+ color: sectionproperties.userBtnTextcoloronhover,
230
+ },
231
+ }),
232
+ loggedinuserbtn: css({
233
+ width: sectionproperties.loggedinuserbtn_width + 'px',
234
+ height: sectionproperties.loggedinuserbtn_height + 'px',
235
+ border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
236
+ borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
237
+ background: sectionproperties.userBtnbgColor_loggedin,
238
+ color: sectionproperties.userBtniconcolor_loggedin,
239
+ transition: '.3s',
240
+ }),
241
+ loggedinuserbtnContainer: css({
242
+ ':hover .loggedinuserbtn': {
243
+ borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
244
+ color: sectionproperties.userBtnTextcoloronhover_loggedin,
245
+ },
246
+ ':hover .loggedinuserbtnbg': {
247
+ backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
248
+ color: sectionproperties.userbtn_loggedin_iconcoloronhover,
249
+ },
250
+ }),
251
+ cart_btn: css({
252
+ width: sectionproperties.cartBtnWidth + 'px',
253
+ height: sectionproperties.cartBtnHeight + 'px',
254
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
255
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
256
+ color: sectionproperties.cartBtnTextcolor,
257
+ border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
258
+ color: sectionproperties.cart_iconcolor,
259
+ transition: '.3s',
260
+ ':hover': {
261
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
262
+ color: sectionproperties.cartBtnTextcoloronhover,
263
+ },
264
+ }),
265
+ cartbadge: css({
266
+ top: sectionproperties.cartbadgetop + 'px',
267
+ right: sectionproperties.cartbadgeright + 'px',
268
+ }),
269
+ badge_counter_header_notifications: css({
270
+ display: 'flex',
271
+ justifyContent: 'center',
272
+ alignItems: 'center',
273
+ position: 'absolute',
274
+ top: sectionproperties.badge_top + 'px',
275
+ right: sectionproperties.badge_right + 'px',
276
+ background: sectionproperties.badge_bgcolor,
277
+ width: sectionproperties.badge_width + 'px',
278
+ height: sectionproperties.badge_height + 'px',
279
+ color: sectionproperties.badge_color,
280
+ borderRadius: sectionproperties.badge_borderradius + 'px',
281
+ fontSize: sectionproperties.badge_fontsize + 'px',
282
+ }),
283
+ categorybtn: css({
284
+ background: sectionproperties.generalbtn_bgColor,
285
+ width: sectionproperties.generalbtn_width + 'px',
286
+ height: sectionproperties.generalbtn_height + 'px',
287
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
288
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
289
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
290
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
291
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
292
+ transition: '.3s',
293
+ ':hover': {
294
+ background: sectionproperties.generalbtn_bgColoronhover,
295
+ },
296
+ }),
297
+ btntextcontainer: css({
298
+ color: sectionproperties.generalbtn_textColor,
299
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
300
+ textTransform: sectionproperties.generalbtn_texttransform,
301
+ transition: '.3s',
302
+ ':hover': {
303
+ color: sectionproperties.generalbtn_textColoronhover,
304
+ },
305
+ }),
306
+ languagecontainer: css({
307
+ cursor: 'pointer',
308
+ transition: '.3s',
309
+ color: sectionproperties.language_container_color,
310
+ fontSize: sectionproperties.language_container_fontsize + 'px',
311
+ ':hover': {
312
+ color: sectionproperties.language_container_coloronhover,
313
+ },
314
+ }),
315
+ };
316
+ const subtotalcart = () => {
317
+ var totalprice = 0;
318
+ fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach(function (cartitem, cartindex) {
319
+ var finalprice = 0;
320
+ if (cartitem.productinfo.hassale == 0) {
321
+ finalprice = cartitem.productinfo.defaultprice;
322
+ } else if (cartitem.productinfo.hassale == 1) {
323
+ finalprice = cartitem.productinfo.defaultsaleprice;
324
+ }
325
+ totalprice = finalprice * cartitem.quantity + totalprice;
326
+ });
327
+ return totalprice;
328
+ };
329
+ const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
330
+ useEffect(() => {
331
+ if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
332
+ var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
333
+ if (Array.isArray(logoarrayofobjectsparsed)) {
334
+ setlogoarrayofobjects([...logoarrayofobjectsparsed]);
335
+ }
336
+ }
337
+ }, [templateproperties_context]);
338
+ return (
339
+ <div
340
+ className="row w-100 ml-0 mr-0 d-flex justify-content-center"
341
+ style={{
342
+ marginTop: sectionproperties.header_marginTop + 'px',
343
+ marginBottom: sectionproperties.header_marginBottom + 'px',
344
+ }}
345
+ >
346
+ <>
347
+ {sectionproperties.youtbtn_show == 'Show' && (
348
+ <>
349
+ <a
350
+ href={'tel:' + authdetailsContext.instinfo.contactinfo.mobile}
351
+ target={'_self'}
352
+ style={{
353
+ position: 'fixed',
354
+ bottom: 60,
355
+ right: 10,
356
+ zIndex: 999999,
357
+ transition: 'all 0.3s ease-out',
358
+ }}
359
+ >
360
+ <i className={langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'}>
361
+ <BsTelephone
362
+ size={30}
363
+ color={sectionproperties.uppersection_iconcolor}
364
+ style={{
365
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
366
+ }}
367
+ />
368
+ </i>
369
+ </a>
370
+ <a
371
+ href={'https://api.whatsapp.com/send?phone=' + authdetailsContext.instinfo.contactinfo.mobile}
372
+ target={'_blank'}
373
+ style={{
374
+ position: 'fixed',
375
+ bottom: 10,
376
+ right: 10,
377
+ zIndex: 999999,
378
+ transition: 'all 0.3s ease-out',
379
+ }}
380
+ >
381
+ <img src={whatsappicon} style={{ width: '40px', height: '40px', cursor: 'pointer' }} />
382
+ </a>
383
+ </>
384
+ )}
385
+ <div
386
+ className={`${header_cssstyles.headercontainer}` + ' row ml-0 mr-0 d-flex d-md-none align-items-center '}
387
+ style={{
388
+ position: sectionproperties.headerstyles_position == 'absolute' ? 'absolute' : 'relative',
389
+ }}
390
+ >
391
+ {/* Upper Header */}
392
+ <div className={header_cssstyles.upperheadersection + ' col-lg-12 '}>
393
+ <div className="row w-100 m-0 align-items-center ">
394
+ <div className="col-lg-2 p-0">
395
+ <div
396
+ className={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
397
+ style={{ cursor: 'pointer' }}
398
+ onClick={() => {
399
+ routingcountext('home');
400
+ }}
401
+ >
402
+ <IKImage
403
+ urlEndpoint={IKurlEndpoint}
404
+ publicKey={IKpublicKey}
405
+ path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
406
+ style={{
407
+ maxWidth: '100%',
408
+ maxHeight: '100%',
409
+ }}
410
+ />
411
+ </div>
412
+ {/* <div
413
+ className={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
414
+ style={{ cursor: 'pointer', width: '70px', height: '70px' }}
415
+ onClick={() => {
416
+ routingcountext('home');
417
+ }}
418
+ >
419
+ <img
420
+ src={logo}
421
+ style={{
422
+ maxWidth: '100%',
423
+ maxHeight: '100%',
424
+ }}
425
+ />
426
+ </div> */}
427
+ </div>
428
+ <div className="col-lg-4 p-0">
429
+ <div className={header_cssstyles.searchbarcont} style={{ position: 'relative' }}>
430
+ <input
431
+ type="text"
432
+ placeholder={lang.searchproducts}
433
+ className={`${header_cssstyles.searchbarcont_input}`}
434
+ onChange={(event) => {
435
+ setSearchHeaderInputContext(event.target.value);
436
+ }}
437
+ />
438
+ <button className={` ${header_cssstyles.searchbar_icon_cont}` + ' d-flex align-items-center justify-content-center '}>
439
+ <BsSearch color={sectionproperties.searchbaricon_color} size={sectionproperties.searchbaricon_fontsize} />
440
+ </button>
441
+ <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'headerfullwidth'} actions={actions} />
442
+ </div>
443
+ </div>
444
+
445
+ <div className="col-lg-3 d-flex flex-column align-items-center justfiy-content-center">
446
+ {sectionproperties.showcontactinfo == 'Show' && (
447
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center">
448
+ <i
449
+ className={
450
+ langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
451
+ }
452
+ >
453
+ <BsTelephone
454
+ size={30}
455
+ color={sectionproperties.uppersection_iconcolor}
456
+ style={{
457
+ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
458
+ }}
459
+ />
460
+ </i>
461
+ <div
462
+ className="d-flex align-items-center flex-column"
463
+ onClick={() => {
464
+ window.open('https://api.whatsapp.com/send?phone=' + authdetailsContext.instinfo.contactinfo.mobile, '_blank');
465
+ }}
466
+ style={{ cursor: 'pointer' }}
467
+ >
468
+ <p
469
+ className="m-0"
470
+ style={{
471
+ color: sectionproperties.uppersection_infocolor,
472
+ fontSize: sectionproperties.uppersection_infofontsize + 'px',
473
+ fontWeight: sectionproperties.uppersection_infofontweight,
474
+ letterSpacing: '2px',
475
+ }}
476
+ >
477
+ {authdetailsContext.instinfo.contactinfo.mobile}
478
+ </p>
479
+ <p
480
+ className="mb-0 w-100"
481
+ style={{
482
+ textAlign: langdetect == 'en' ? 'right' : 'left',
483
+ // color: '#a3a3a3',
484
+ color: sectionproperties.uppersection_titlecolor,
485
+ fontSize: sectionproperties.uppersection_titlefontsize + 'px',
486
+ // fontSize: '12px',
487
+ fontWeight: sectionproperties.uppersection_titlefontweight,
488
+ textTransform: sectionproperties.uppersection_titletextransform,
489
+ }}
490
+ >
491
+ {lang.support247}
492
+ </p>
493
+ </div>
494
+ </div>
495
+ )}
496
+ </div>
497
+
498
+ <div className={langdetect == 'en' ? 'col-lg-3 d-flex align-items-center p-0 pl-0' : 'col-lg-3 d-flex align-items-center p-0 pr-0'}>
499
+ <div
500
+ className={'row w-100 m-0 align-items-center justify-content-between '}
501
+ style={{
502
+ paddingLeft: langdetect == 'en' ? (authdetailsContext.loggedin == true ? '.3rem' : '3rem') : 0,
503
+ paddingRight: langdetect == 'en' ? 0 : authdetailsContext.loggedin == true ? '1rem' : '3rem',
504
+ }}
505
+ >
506
+ <Dropdown>
507
+ <Dropdown.Toggle>
508
+ {!authdetailsContext.loggedin && (
509
+ <div className={header_cssstyles.user_btnContainer + ' d-flex align-items-center justify-content-end p-0 cursor-pointer pt-1 '}>
510
+ <div className={header_cssstyles.user_btn + ' user_btnbg allcentered p-0 '}>
511
+ <BiUser size={sectionproperties.userBtniconfontsize} />
512
+ </div>
513
+ <p
514
+ className={header_cssstyles.loggedinusername + ' user_btn mb-0 p-0 '}
515
+ style={{
516
+ marginLeft: langdetect == 'en' ? '3px' : 0,
517
+ marginRight: langdetect == 'en' ? 0 : '3px',
518
+ }}
519
+ >
520
+ {lang.login}
521
+ </p>
522
+ </div>
523
+ )}
524
+ {authdetailsContext.loggedin && (
525
+ <div className={header_cssstyles.loggedinuserbtnContainer + ' allcentered '} sytle={{ position: 'relative' }}>
526
+ <div className={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
527
+ <i className={' h-100 allcentered '}>
528
+ <BiUser size={sectionproperties.loggedinusericonfontsize} />
529
+ </i>
530
+ </div>
531
+ <div
532
+ className="m-0 p-0"
533
+ style={{
534
+ textAlign: langdetect == 'en' ? 'left' : 'right',
535
+ }}
536
+ >
537
+ <p
538
+ className="m-0 p-0"
539
+ style={{
540
+ color: sectionproperties.greetingtextcolor,
541
+ fontSize: sectionproperties.greetingtextfontsize + 'px',
542
+ lineHeight: sectionproperties.greetingtextfontsize + 'px',
543
+ fontWeight: 400,
544
+ }}
545
+ >
546
+ {lang.hello}
547
+ {langdetect == 'en' ? ',' : '،'}
548
+ </p>
549
+ <p className={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '} style={{ maxWidth: '100px' }}>
550
+ {authdetailsContext.customerinfo.name}
551
+ </p>
552
+ </div>
553
+ </div>
554
+ )}
555
+ </Dropdown.Toggle>
556
+ {!authdetailsContext.loggedin && (
557
+ <Dropdown.Menu>
558
+ <Dropdown.Item
559
+ onClick={() => {
560
+ routingcountext(StaticPagesLinksContext.Login);
561
+ }}
562
+ >
563
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
564
+ <p className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
565
+ <AiOutlineLogin />
566
+ <span className="ml-2 mr-2">{lang.login}</span>
567
+ </p>
568
+ </div>
569
+ </Dropdown.Item>
570
+ <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
571
+ <Dropdown.Item
572
+ onClick={() => {
573
+ routingcountext(StaticPagesLinksContext.Signup);
574
+ }}
575
+ >
576
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
577
+ <p className={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
578
+ <AiOutlineUserAdd />
579
+ <span className="ml-2 mr-2">{lang.signup}</span>
580
+ </p>
581
+ </div>
582
+ </Dropdown.Item>
583
+ </Dropdown.Menu>
584
+ )}
585
+ {authdetailsContext.loggedin && (
586
+ <Dropdown.Menu style={{ minWidth: '200px' }}>
587
+ <Dropdown.Item>
588
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
589
+ <span
590
+ style={{
591
+ color: sectionproperties.greetingtextcolor,
592
+ fontSize: sectionproperties.dropdown_fontsize + 'px',
593
+
594
+ fontWeight: 400,
595
+ }}
596
+ >
597
+ {lang.hello},
598
+ </span>
599
+ <p
600
+ className={`${header_cssstyles.dropdownitem}` + ' font-weight-600 ml-1 mr-1 text-overflow text-capitalize dropdownitem m-0 p-0 '}
601
+ style={{ maxWidth: '120px' }}
602
+ onClick={() => {
603
+ routingcountext(StaticPagesLinksContext.accountinfo);
604
+ }}
605
+ >
606
+ {authdetailsContext.customerinfo.name}
607
+ </p>
608
+ </div>
609
+ </Dropdown.Item>
610
+ <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
611
+ <Dropdown.Item
612
+ onClick={() => {
613
+ routingcountext(StaticPagesLinksContext.Ordershistory);
614
+ }}
615
+ >
616
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
617
+ <p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
618
+ {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
619
+ {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
620
+ {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
621
+ {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag />}
622
+ {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
623
+ {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart />}
624
+ <span className="ml-2 mr-2">{lang.orderhistory}</span>
625
+ </p>
626
+ </div>
627
+ </Dropdown.Item>
628
+ <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
629
+ <Dropdown.Item
630
+ onClick={() => {
631
+ routingcountext(StaticPagesLinksContext.Wishlist);
632
+ }}
633
+ >
634
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
635
+ <p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
636
+ {sectionproperties.faviconshape == 'Heart Shape' && <AiOutlineHeart />}
637
+ {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
638
+ <span className="ml-2 mr-2">{lang.wishlist}</span>
639
+ </p>
640
+ </div>
641
+ </Dropdown.Item>
642
+ <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
643
+ <Dropdown.Item
644
+ onClick={() => {
645
+ routingcountext(StaticPagesLinksContext.Policies);
646
+ }}
647
+ >
648
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
649
+ <p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
650
+ <MdOutlinePolicy />
651
+ <span className="ml-2 mr-2">{lang.policies}</span>
652
+ </p>
653
+ </div>
654
+ </Dropdown.Item>
655
+ <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
656
+ <Dropdown.Item
657
+ onClick={() => {
658
+ LogoutMutationContext.mutate();
659
+ }}
660
+ >
661
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
662
+ <p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
663
+ <BiLogOutCircle />
664
+ <span className="ml-2 mr-2">{lang.logout}</span>
665
+ </p>
666
+ </div>
667
+ </Dropdown.Item>
668
+ </Dropdown.Menu>
669
+ )}
670
+ </Dropdown>
671
+ <div className="d-flex flex-row p-0 align-items-center">
672
+ <div
673
+ style={{ position: 'relative' }}
674
+ className="cursor-pointer d-flex d-flex align-items-center"
675
+ onClick={() => {
676
+ routingcountext(StaticPagesLinksContext.Wishlist);
677
+ }}
678
+ >
679
+ {sectionproperties.faviconshape == 'Heart Shape' && (
680
+ <AiOutlineHeart
681
+ className={`${header_cssstyles.wishlist_btn}`}
682
+ size={sectionproperties.favBtnIconfontsize}
683
+ style={{
684
+ position: 'relative',
685
+ }}
686
+ />
687
+ )}
688
+ {sectionproperties.faviconshape == 'Star Shape' && (
689
+ <AiFillStar
690
+ className={`${header_cssstyles.wishlist_btn}`}
691
+ size={sectionproperties.favBtnIconfontsize}
692
+ style={{
693
+ position: 'relative',
694
+ }}
695
+ />
696
+ )}
697
+ <div className={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}`}>
698
+ <span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
699
+ </div>
700
+ </div>
701
+ </div>
702
+ <div className=" d-flex flex-row justify-content-end align-items-center">
703
+ <div
704
+ className="row w-100 m-0 align-items-center d-flex flex-row justify-content-end"
705
+ style={{
706
+ position: 'relative',
707
+ }}
708
+ onClick={() => {
709
+ setsidecartnavshowcontext(true);
710
+ }}
711
+ >
712
+ <div style={{ position: 'relative' }} className={`${header_cssstyles.cart_btn}` + ' cursor-pointer d-flex align-items-center justify-content-center '}>
713
+ <div className={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
714
+ {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
715
+ </div>
716
+ {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
717
+ {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
718
+ {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
719
+ {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag size={sectionproperties.cartBtn_iconFontSize} />}
720
+ {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
721
+ {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
722
+ </div>
723
+ <div className={langdetect == 'en' ? 'ml-2' : 'mr-2'}>
724
+ <div className="row m-0 w-100 d-flex align-items-center flex-column justify-content-start">
725
+ <p
726
+ className="m-0 p-0 w-100"
727
+ style={{
728
+ textAlign: langdetect == 'en' ? 'left' : 'right',
729
+ color: sectionproperties.cartBtnTextcolor,
730
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
731
+ lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
732
+ fontWeight: sectionproperties.cartBtnTextfontweight,
733
+ textTransform: sectionproperties.cartBtnTexttransform,
734
+ cursor: 'pointer',
735
+ }}
736
+ >
737
+ {lang.cart}
738
+ </p>
739
+ <p
740
+ className="m-0 text-left"
741
+ style={{
742
+ color: sectionproperties.card_secondarycolor,
743
+ fontSize: sectionproperties.secondaryfontsize + 'px',
744
+ fontWeight: sectionproperties.secondaryfontweight,
745
+ cursor: 'pointer',
746
+ }}
747
+ >
748
+ {langdetect == 'en' ? 'EGP' : ''} {subtotalcart()} {langdetect == 'en' ? '' : 'ج.م'}
749
+ </p>
750
+ </div>
751
+ </div>
752
+ </div>
753
+ </div>
754
+ <div
755
+ className="d-flex flex-row justify-content-end align-items-center"
756
+ onClick={() => {
757
+ if (langdetect == 'en') {
758
+ setlang('ar');
759
+ } else {
760
+ setlang('en');
761
+ }
762
+ }}
763
+ >
764
+ {langdetect == 'en' && (
765
+ <div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
766
+ <img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
767
+ </div>
768
+ )}
769
+ {langdetect == 'ar' && (
770
+ <div className={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
771
+ <img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
772
+ </div>
773
+ )}
774
+ </div>
775
+ </div>
776
+ </div>
777
+ </div>
778
+ </div>
779
+ {/* Lower Header */}
780
+ <div className="col-lg-12 p-0 d-flex justify-content-center" style={{ background: sectionproperties.vl_bg }}>
781
+ <div className={`${header_cssstyles.divider}` + ' '}></div>
782
+ </div>
783
+ <div className={`${header_cssstyles.lowerheadercontainer}` + ' row w-100 m-0 align-items-center '}>
784
+ <div
785
+ className={' col-lg-2 d-flex align-items-center '}
786
+ style={{}}
787
+ onClick={() => {
788
+ setdropdownselect(!dropdownselect);
789
+ }}
790
+ >
791
+ <div className={`${header_cssstyles.categorybtn}` + ' categoriesdropdown transformedDropdown d-flex align-items-center justify-content-center '}>
792
+ <Dropdown className="d-flex align-items-center justify-content-center">
793
+ <Dropdown.Toggle className="d-flex align-items-center justify-content-center">
794
+ <div className={`${header_cssstyles.btntextcontainer}` + ' row w-100 m-0 align-items-center '} style={{ paddingTop: '7px' }}>
795
+ <i className="h-100 d-flex align-items-center justify-content-center">
796
+ <HiMenuAlt4 size={25} color="white" />
797
+ </i>
798
+ <p className={langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '}>{lang.shopbycategory}</p>
799
+ </div>
800
+ </Dropdown.Toggle>
801
+
802
+ <Dropdown.Menu style={{ minWidth: '250px', marginLeft: '-20px' }}>
803
+ {authdetailsContext?.instinfo?.instcollections?.map((item, index) => (
804
+ <div>
805
+ <Dropdown.Item
806
+ onClick={() => {
807
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, item.collectionid);
808
+ }}
809
+ >
810
+ <div className={`${header_cssstyles.dropdownitemcontainer}` + ' row m-0 w-100 '}>
811
+ <div className={' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center '}>
812
+ <p className={`${header_cssstyles.dropdownitem}` + ' dropdownitem text-overflow m-0 p-0 '}>
813
+ {langdetect == 'en' ? item.title_en : item.title_ar}
814
+ </p>
815
+ </div>
816
+ </div>
817
+ </Dropdown.Item>
818
+ {index != authdetailsContext.instinfo.instcollections.length - 1 && <Dropdown.Divider></Dropdown.Divider>}
819
+ </div>
820
+ ))}
821
+ </Dropdown.Menu>
822
+ </Dropdown>
823
+ </div>
824
+ </div>
825
+ <div className="col-lg-10 d-flex flex-row align-items-center justify-content-start">
826
+ <ul className={' mb-0 pb-0 mt-0 d-flex flex-row justify-content-start '}>
827
+ {templatepropcontext.pagesnprop.map((item, index) => {
828
+ var activeclass = '';
829
+ var pagedisabled = '';
830
+ if (item.isselected) {
831
+ activeclass = header_cssstyles.navbar_item_active;
832
+ }
833
+ if (item.isnavigation == 1 && item.isactive == 1) {
834
+ return (
835
+ <div to={item.navigationroute}>
836
+ <li
837
+ className={`${activeclass}`}
838
+ style={{
839
+ marginRight: langdetect == 'en' ? '25px' : 0,
840
+ marginLeft: langdetect == 'en' ? 0 : '25px',
841
+ }}
842
+ >
843
+ <div className={`${header_cssstyles.navbar_item_text}`}> {langdetect == 'en' ? item.pagename : item.pagename_ar}</div>
844
+ </li>
845
+ </div>
846
+ );
847
+ }
848
+ })}
849
+ </ul>
850
+ {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
851
+ <Subheader
852
+ sectionpropertiesprops={sectionproperties}
853
+ actions={props.actions}
854
+ subheaderpropertiesprops={{
855
+ subheaderpositionprops: 'in nav',
856
+ paddingLeftprops: '25px',
857
+ paddingRightprops: '25px',
858
+ }}
859
+ />
860
+ )}
861
+ </div>
862
+ </div>
863
+ {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
864
+ <div className="col-lg-12 p-0">
865
+ <Subheader
866
+ sectionpropertiesprops={sectionproperties}
867
+ actions={props.actions}
868
+ subheaderpropertiesprops={{
869
+ subheaderpositionprops: 'Full Width',
870
+ paddingLeftprops: '25px',
871
+ paddingRightprops: '25px',
872
+ }}
873
+ />
874
+ </div>
875
+ )}
876
+ </div>
877
+ <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
878
+ </>
879
+ </div>
880
+ );
881
+ };
882
+ export default Header8;