tabexseriescomponents 0.0.64 → 0.0.66

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