tabexseriescomponents 0.0.73 → 0.0.75

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 (211) hide show
  1. package/dist/index.cjs.js +337 -225
  2. package/dist/index.esm.js +343 -231
  3. package/dist/index.umd.js +340 -229
  4. package/package.json +1 -1
  5. package/src-aya/Contexts/LanguageContext.jsx +0 -369
  6. package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
  7. package/src-aya/StylesJS/Customstyles.js +0 -235
  8. package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
  9. package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
  10. package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
  11. package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
  12. package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
  13. package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
  14. package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
  15. package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
  16. package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
  17. package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
  18. package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
  19. package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
  20. package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
  21. package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
  22. package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
  23. package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
  24. package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
  25. package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  26. package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
  27. package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
  28. package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
  29. package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  30. package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
  31. package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
  32. package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
  33. package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
  34. package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  35. package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
  36. package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
  37. package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
  38. package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
  39. package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
  40. package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
  41. package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
  42. package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
  43. package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
  44. package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
  45. package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
  46. package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
  47. package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
  48. package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  49. package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
  50. package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  51. package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  52. package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  53. package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  54. package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  55. package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  56. package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  57. package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  58. package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  59. package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
  60. package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  61. package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
  62. package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
  63. package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
  64. package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
  65. package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
  66. package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
  67. package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
  68. package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
  69. package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
  70. package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
  71. package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
  72. package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
  73. package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
  74. package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
  75. package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
  76. package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
  77. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
  78. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
  79. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  80. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
  81. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
  82. package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
  83. package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
  84. package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  85. package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
  86. package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
  87. package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
  88. package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
  89. package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  90. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
  91. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
  92. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
  93. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
  94. package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
  95. package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
  96. package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
  97. package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
  98. package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
  99. package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
  100. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
  101. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
  102. package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
  103. package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
  104. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  105. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  106. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
  107. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
  108. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
  109. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
  110. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
  111. package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
  112. package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
  113. package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
  114. package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  115. package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  116. package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  117. package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  118. package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
  119. package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  120. package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
  121. package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
  122. package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
  123. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
  124. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
  125. package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
  126. package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
  127. package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
  128. package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
  129. package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
  130. package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
  131. package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
  132. package/src-aya/assets/images/appstore.png +0 -0
  133. package/src-aya/assets/images/cod.png +0 -0
  134. package/src-aya/assets/images/egyptflag.png +0 -0
  135. package/src-aya/assets/images/fawry.png +0 -0
  136. package/src-aya/assets/images/googleplay.png +0 -0
  137. package/src-aya/assets/images/payment.png +0 -0
  138. package/src-aya/assets/images/paymob.png +0 -0
  139. package/src-aya/assets/images/paypal.png +0 -0
  140. package/src-aya/assets/images/shoppingcart.png +0 -0
  141. package/src-aya/assets/images/usflag.png +0 -0
  142. package/src-aya/assets/images/visa.png +0 -0
  143. package/src-aya/assets/images/whatsapp.png +0 -0
  144. package/src-aya/button.jsx +0 -40
  145. package/src-aya/index.jsx +0 -222
  146. package/src-aya/styles/Home.module.css +0 -129
  147. package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
  148. package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  149. package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
  150. package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
  151. package/src-aya/styles/cards/Productcard6.module.css +0 -9
  152. package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
  153. package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  154. package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  155. package/src-aya/styles/cards/categorycard.module.css +0 -85
  156. package/src-aya/styles/cards/categorycard3.module.css +0 -50
  157. package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
  158. package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
  159. package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
  160. package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  161. package/src-aya/styles/general/bootstrap.css +0 -4562
  162. package/src-aya/styles/general/dropdown.css +0 -206
  163. package/src-aya/styles/general/editorbardropdown.module.css +0 -94
  164. package/src-aya/styles/general/filter.module.css +0 -108
  165. package/src-aya/styles/general/form.module.css +0 -273
  166. package/src-aya/styles/general/general.module.css +0 -861
  167. package/src-aya/styles/general/image-gallery.css +0 -481
  168. package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
  169. package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
  170. package/src-aya/styles/general/scrollbtn.module.css +0 -22
  171. package/src-aya/styles/general/slick.module.css +0 -166
  172. package/src-aya/styles/general/tabs.module.css +0 -110
  173. package/src-aya/styles/general/workplaceeditor.module.css +0 -328
  174. package/src-aya/styles/globals.css +0 -26
  175. package/src-aya/styles/headers/CTAHeader.module.css +0 -40
  176. package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  177. package/src-aya/styles/headers/Gotoheader.module.css +0 -91
  178. package/src-aya/styles/headers/Header7.module.css +0 -50
  179. package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
  180. package/src-aya/styles/headers/Sideheader.module.css +0 -108
  181. package/src-aya/styles/headers/classicheader.module.css +0 -16
  182. package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
  183. package/src-aya/styles/headers/dropdown.css +0 -0
  184. package/src-aya/styles/headers/header4.module.css +0 -175
  185. package/src-aya/styles/headers/header5.module.css +0 -30
  186. package/src-aya/styles/headers/header6.module.css +0 -102
  187. package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
  188. package/src-aya/styles/headers/headerresturant.module.css +0 -89
  189. package/src-aya/styles/headers/modernheader.module.css +0 -72
  190. package/src-aya/styles/headers/stylishheader.module.css +0 -24
  191. package/src-aya/styles/headers/subheader.module.css +0 -114
  192. package/src-aya/styles/headers/threetieredheader.module.css +0 -91
  193. package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
  194. package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
  195. package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  196. package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
  197. package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  198. package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  199. package/src-aya/styles/staticpages/accordion.module.css +0 -9
  200. package/src-aya/styles/staticpages/cart.module.css +0 -108
  201. package/src-aya/styles/staticpages/dropdown.css +0 -196
  202. package/src-aya/styles/staticpages/filter.module.css +0 -139
  203. package/src-aya/styles/staticpages/image-gallery.css +0 -481
  204. package/src-aya/styles/staticpages/login.module.css +0 -113
  205. package/src-aya/styles/staticpages/productinfo.module.css +0 -54
  206. package/src-aya/styles/staticpages/shop.module.css +0 -191
  207. package/src-aya/styles/staticpages/signup.module.css +0 -206
  208. package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
  209. package/src-aya/styles/staticpages/viewcart.module.css +0 -129
  210. package/src-aya/styles/staticpages/wishlist.module.css +0 -29
  211. package/src-aya/styles.rar +0 -0
@@ -1,631 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import headerstyles from '../../../styles/headers/header6.module.css';
3
- import { css } from 'glamor';
4
- import Dropdown from 'react-bootstrap/Dropdown';
5
- import { GoSearch } from 'react-icons/go';
6
- import { AiOutlineUserAdd, AiOutlineLogin, AiOutlineUser } from 'react-icons/ai';
7
- import { MdOutlinePolicy } from 'react-icons/md';
8
- import { BsHandbag, BsBag } from 'react-icons/bs';
9
- import { FaRegHeart } from 'react-icons/fa';
10
- import { AiFillStar } from 'react-icons/ai';
11
- import { CgShoppingBag } from 'react-icons/cg';
12
- import { FiShoppingBag, FiShoppingCart } from 'react-icons/fi';
13
- import { MdOutlineShoppingCart } from 'react-icons/md';
14
- import { BiLogOutCircle } from 'react-icons/bi';
15
- import { IKImage } from 'imagekitio-react';
16
- import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
17
- import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
18
- import egyptflag from '../../../assets/images/egyptflag.png';
19
- import usflag from '../../../assets/images/usflag.png';
20
- import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
21
- import Subheader from '../Subheader/Subheader.jsx';
22
-
23
- const Header6 = (props) => {
24
- const [sectionproperties, setsectionproperties] = useState('');
25
- const LogoutMutationContext = props.actions.LogoutMutationContext;
26
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
27
- const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
28
- const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
29
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
30
- const lang = props.actions.lang;
31
- const langdetect = props.actions.langdetect;
32
- const setlang = props.actions.setlang;
33
- const templatepropcontext = props.actions.templatepropcontext;
34
- const authdetailsContext = props.actions.authdetailsContext;
35
- const templateproperties_context = props.actions.templateproperties_context;
36
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
37
- const routingcountext = props.actions.routingcountext;
38
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
39
- const actions = props.actions;
40
- useEffect(() => {
41
- var secpropobj = {};
42
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
43
- if (sectionitem.sectionid == props.sectionidprops) {
44
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
45
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
46
- });
47
- }
48
- });
49
- if (Object.keys(secpropobj).length === 0) {
50
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
51
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
52
- });
53
- }
54
- setsectionproperties({ ...secpropobj });
55
- }, [StatePagePropertiesContext]);
56
- const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
57
- useEffect(() => {
58
- if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
59
- var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
60
- if (Array.isArray(logoarrayofobjectsparsed)) {
61
- setlogoarrayofobjects([...logoarrayofobjectsparsed]);
62
- }
63
- }
64
- }, [templateproperties_context]);
65
- const header_cssstyles = {
66
- headercontainer: css({
67
- position: sectionproperties.headerstyles_position,
68
- top: 0,
69
- display: 'flex',
70
- alignItems: 'center',
71
- alignContent: 'center',
72
- justifyContent: 'center',
73
- width: sectionproperties.header_width + 'vw',
74
- backgroundColor: sectionproperties.headerstyles_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.header_backgroundColor,
75
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.header_borderBottomLeftRadius + 'px' : sectionproperties.header_BorderBottomRightRadius + 'px',
76
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.header_BorderBottomRightRadius + 'px' : sectionproperties.header_borderBottomLeftRadius + 'px',
77
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.header_borderTopLeftRadius + 'px' : sectionproperties.header_borderTopRightRadius + 'px',
78
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.header_borderTopRightRadius + 'px' : sectionproperties.header_borderTopLeftRadius + 'px',
79
- paddingLeft: langdetect == 'en' ? sectionproperties.header_paddingLeft + 'px' : sectionproperties.header_paddingRight + 'px',
80
- paddingRight: langdetect == 'en' ? sectionproperties.header_paddingRight + 'px' : sectionproperties.header_paddingLeft + 'px',
81
- paddingTop: sectionproperties.header_paddingTop + 'px',
82
- paddingBottom: sectionproperties.header_paddingBottom + 'px',
83
- transition: 'all 0.2s',
84
- zIndex: 1000,
85
- }),
86
- navbar_item_text: css({
87
- color: sectionproperties.header_fontColor,
88
- fontSize: sectionproperties.header_fontSize + 'px',
89
- textTransform: sectionproperties.header_textTransform,
90
- fontWeight: sectionproperties.header_textfontweight,
91
- marginLeft: sectionproperties.navbar_item_textpaddingleft + 'px',
92
- marginRight: sectionproperties.navbar_item_textpaddingright + 'px',
93
- transition: 'transform 0.3s cubic-bezier(0.2, 1, 0.8, 1)',
94
- transition: '0.3s',
95
- padding: 0,
96
- ':hover': {
97
- color: sectionproperties.header_fontColoronhover,
98
- },
99
- ':before': {
100
- background: sectionproperties.header_fontColoronhover,
101
- },
102
- ':after': {
103
- background: sectionproperties.header_fontColoronhover,
104
- },
105
- }),
106
- dropdownitem: css({
107
- padding: '0.3rem 0.8rem',
108
- display: 'flex',
109
- alignItems: 'center',
110
- transition: '.3s',
111
- zIndex: 2000,
112
- fontSize: sectionproperties.dropdown_fontsize + 'px',
113
- color: sectionproperties.dropdown_color,
114
- fontWeight: sectionproperties.dropdown_fontweight,
115
- textTransform: sectionproperties.dropdown_texttransform,
116
- ':hover': {
117
- color: sectionproperties.dropdown_hovercolor,
118
- },
119
- }),
120
- wishlist_btn: css({
121
- width: sectionproperties.favBtnWidth + 'px',
122
- height: sectionproperties.favBtnHeight + 'px',
123
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
124
- borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
125
- color: sectionproperties.favBtnTextcolor,
126
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
127
- textTransform: sectionproperties.favBtnTexttransform,
128
- fontWeight: sectionproperties.favBtnTextfontweight,
129
- transition: '.3s',
130
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
131
- ':hover': {
132
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
133
- color: sectionproperties.favBtnTextcoloronhover,
134
- },
135
- }),
136
- cart_btn: css({
137
- width: sectionproperties.cartBtnWidth + 'px',
138
- height: sectionproperties.cartBtnHeight + 'px',
139
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
140
- borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
141
- color: sectionproperties.cartBtnTextcolor,
142
- fontSize: sectionproperties.cartBtnTextfontsize + 'px',
143
- textTransform: sectionproperties.cartBtnTexttransform,
144
- fontWeight: sectionproperties.cartBtnTextfontweight,
145
- border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
146
- transition: '.3s',
147
- ':hover': {
148
- background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
149
- color: sectionproperties.cartBtnTextcoloronhover,
150
- },
151
- }),
152
- user_btn: css({
153
- background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
154
- width: sectionproperties.userBtnWidth + 'px',
155
- height: sectionproperties.userBtnHeight + 'px',
156
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
157
- color: sectionproperties.userBtniconcolor,
158
- fontSize: sectionproperties.userBtniconfontsize + 'px',
159
- border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
160
- cursor: 'pointer',
161
- transition: '.3s',
162
- ':hover': {
163
- color: sectionproperties.userBtnTextcoloronhover,
164
- background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
165
- borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
166
- },
167
- }),
168
- header_logo: css({
169
- width: templateproperties_context.logo_width + 'px',
170
- height: templateproperties_context.logo_height + 'px',
171
- }),
172
- searchbarcont: css({
173
- position: 'relative',
174
- width: sectionproperties.searchbarcont_width + 'px',
175
- height: sectionproperties.searchbarcont_height + 'px',
176
- background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
177
- borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
178
- border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
179
- color: sectionproperties.searchbarcont_color,
180
- cursor: 'pointer',
181
- transition: '.3s',
182
- ':hover': {
183
- background: sectionproperties.searchbarcont_transparentbghover == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bghover,
184
- borderColor: sectionproperties.searchbarcontcoloronhover,
185
- color: sectionproperties.searchbarcontcoloronhover,
186
- },
187
- }),
188
- searchbar_icon_cont: css({
189
- position: 'absolute',
190
- right: langdetect == 'en' ? sectionproperties.searchbaricon_right + 'px' : '',
191
- left: langdetect == 'en' ? '' : sectionproperties.searchbaricon_right + 'px',
192
- bottom: sectionproperties.searchbaricon_bottom + 'px',
193
- margin: 'auto',
194
- display: 'flex',
195
- justifyContent: 'center',
196
- alignItems: 'center',
197
- textAlign: 'center',
198
- width: sectionproperties.searchbaricon_width + 'px',
199
- height: sectionproperties.searchbaricon_height + 'px',
200
- borderRadius: sectionproperties.searchbaricon_borderBottomLeftRadius + 'px',
201
- color: sectionproperties.searchbaricon_color,
202
- backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
203
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
204
- }),
205
- searchbarcont_input: css({
206
- height: '45px',
207
- outline: 'none',
208
- border: 'none',
209
- transition: '0.3s',
210
- color: sectionproperties.searchbarcontinput_color,
211
- fontWeight: sectionproperties.searchbarcont_inputfontweight,
212
- fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
213
- paddingLeft: langdetect == 'en' ? '5px' : '60px',
214
- paddingRight: langdetect == 'en' ? '60px' : '5px',
215
- ':focus': {
216
- borderBottom: sectionproperties.searchbarcontinput_borderBottom + 'px solid ' + sectionproperties.searchbarcontinput_bordercoloronfocus,
217
- },
218
- }),
219
- wishlist_btn: css({
220
- width: sectionproperties.favBtnWidth + 'px',
221
- height: sectionproperties.favBtnHeight + 'px',
222
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
223
- borderBottomLeftRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
224
- borderBottomRightRadius: sectionproperties.fav_btn_borderBottomRightRadius + 'px',
225
- borderTopLeftRadius: sectionproperties.fav_btn_borderTopLeftRadius + 'px',
226
- borderTopRightRadius: sectionproperties.fav_btn_borderTopRightRadius + 'px',
227
- color: sectionproperties.favBtniconcolor,
228
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
229
- transition: '.3s',
230
- ':hover': {
231
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
232
- color: sectionproperties.favBtnTextcoloronhover,
233
- },
234
- }),
235
- badge_counter_header_notifications: css({
236
- background: sectionproperties.badge_bgcolor,
237
- width: sectionproperties.badge_width + 'px',
238
- height: sectionproperties.badge_height + 'px',
239
- color: sectionproperties.badge_color,
240
- borderRadius: sectionproperties.badge_borderradius + 'px',
241
- top: sectionproperties.badge_top + 'px',
242
- right: sectionproperties.badge_right + 'px',
243
- fontSize: sectionproperties.badge_fontsize + 'px',
244
- }),
245
- languagecontainer: css({
246
- background: sectionproperties.language_container_bgcolor,
247
- width: sectionproperties.language_container_width + 'px',
248
- height: sectionproperties.language_container_height + 'px',
249
- color: sectionproperties.language_container_color,
250
- borderRadius: sectionproperties.language_container_borderRadius + 'px',
251
- fontSize: sectionproperties.language_container_fontsize + 'px',
252
- transition: '.3s',
253
- ':hover': {
254
- color: sectionproperties.language_container_coloronhover,
255
- background: sectionproperties.language_container_bgcoloronhover,
256
- },
257
- }),
258
- loggedintext: css({
259
- color: sectionproperties.userBtnTextcolor,
260
- fontSize: sectionproperties.userBtntextfontsize + 'px',
261
- fontWeight: sectionproperties.userBtnTextfontweight,
262
- transition: '.3s',
263
- ':hover': {
264
- color: sectionproperties.userBtnTextcoloronhover,
265
- },
266
- }),
267
-
268
- userbtnloggedin: css({
269
- width: sectionproperties.loggedinuserbtn_width + 'px',
270
- height: sectionproperties.loggedinuserbtn_height + 'px',
271
- border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
272
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
273
- background: sectionproperties.userBtnbgColor_loggedin,
274
- color: sectionproperties.userBtniconcolor_loggedin,
275
- transition: '.3s',
276
- ':hover': {
277
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
278
- },
279
- }),
280
- userBtnLoggedinContainer: css({
281
- transition: '.3s',
282
- ':hover .loggedinuserbtn': {
283
- transition: '.3s',
284
- color: sectionproperties.userBtnTextcoloronhover_loggedin,
285
- borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
286
- },
287
- ':hover .loggedinuserbtnbg': {
288
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
289
- color: sectionproperties.userbtn_loggedin_iconcoloronhover,
290
- },
291
- }),
292
- };
293
-
294
- return (
295
- <div
296
- class="row m-0 w-100 d-flex align-items-center justify-content-center "
297
- style={{
298
- marginTop: sectionproperties.header_marginTop + 'px',
299
- marginBottom: sectionproperties.header_marginBottom + 'px',
300
- }}
301
- >
302
- <div class={` ${header_cssstyles.headercontainer}` + ' d-flex d-md-none align-items-center m-0 '}>
303
- <div class="row m-0 w-100 ">
304
- <div class="col-lg-12 p-0 ">
305
- <div class={` ${headerstyles.navbar}` + ' row m-0 w-100 d-flex flex-row align-items-center h-100 '}>
306
- <div class="col-lg-4 p-0 ">
307
- <div
308
- class={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
309
- style={{ cursor: 'pointer' }}
310
- onClick={() => {
311
- routingcountext('home');
312
- }}
313
- >
314
- <IKImage
315
- urlEndpoint={IKurlEndpoint}
316
- publicKey={IKpublicKey}
317
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
318
- style={{
319
- maxWidth: '100%',
320
- maxHeight: '100%',
321
- }}
322
- />
323
- </div>
324
- </div>
325
- <div class={` ${headerstyles.nav__item}` + ' col-lg-4 p-0 d-flex flex-row align-items-center justify-content-center '}>
326
- {templatepropcontext.pagesnprop.map((item, index) => {
327
- var activeclass = '';
328
- var pagedisabled = '';
329
- if (item.isselected) {
330
- activeclass = headerstyles.navbar_item_active;
331
- }
332
- if (item.isnavigation == 1 && item.isactive == 1) {
333
- return (
334
- <div
335
- class="cursor-pointer"
336
- onClick={() => {
337
- routingcountext(item.navigationroute, false, '');
338
- }}
339
- >
340
- <p class={` ${headerstyles.link} ${header_cssstyles.navbar_item_text}` + ' p-0 mb-0 '}>{langdetect == 'en' ? item.pagename : item.pagename_ar}</p>
341
- </div>
342
- );
343
- }
344
- })}
345
- </div>
346
-
347
- <div class="col-lg-4 p-0 d-flex align-items-center justify-content-center">
348
- {sectionproperties.searchbar_show == 'Show' && (
349
- <div
350
- class="col-lg-4 p-0 d-flex justify-content-end align-items-center"
351
- style={{
352
- marginRight: langdetect == 'en' ? '0.5rem' : 0,
353
- marginLeft: langdetect == 'ar' ? '0.5rem' : 0,
354
- }}
355
- >
356
- <div class="row m-0 w-100 d-flex justify-content-end align-items-center">
357
- <div class="col-lg-12 p-0 d-flex justify-content-end align-items-center">
358
- <input
359
- class={`${headerstyles.searchbar} ${header_cssstyles.searchbarcont_input}`}
360
- placeholder={langdetect == 'en' ? "What're we looking for?" : 'البحث...'}
361
- onChange={(event) => {
362
- setSearchHeaderInputContext(event.target.value);
363
- }}
364
- style={{
365
- right: langdetect == 'en' ? 0 : '',
366
- left: langdetect == 'en' ? '' : 0,
367
- }}
368
- />
369
- <div class={`${header_cssstyles.searchbarcont}` + ' d-flex justify-content-center align-items-center '}>
370
- <i class={headerstyles.searchbaractive + ' h-100 d-flex align-items-center'}>
371
- <GoSearch
372
- size={sectionproperties.searchbarcontfontsize}
373
- style={{
374
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
375
- }}
376
- />
377
- </i>
378
- </div>
379
- </div>
380
- <div class="col-lg-12 p-0 d-flex justify-content-end align-items-center">
381
- <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'header-250'} actions={actions} />
382
- </div>
383
- </div>
384
- </div>
385
- )}
386
- <Dropdown>
387
- <Dropdown.Toggle>
388
- {!authdetailsContext.loggedin && (
389
- <div
390
- class={
391
- langdetect == 'en'
392
- ? ` ${header_cssstyles.user_btn}` + ' d-flex align-items-center justify-content-center ml-2 '
393
- : ` ${header_cssstyles.user_btn}` + ' d-flex align-items-center justify-content-center mr-2 '
394
- }
395
- sytle={{ position: 'relative' }}
396
- >
397
- <i class={' h-100 d-flex align-items-center '}>
398
- <AiOutlineUser size={sectionproperties.userBtnTextfontsize} />
399
- </i>
400
- </div>
401
- )}
402
- {authdetailsContext.loggedin && (
403
- <div class={header_cssstyles.userBtnLoggedinContainer + ' allcentered '} sytle={{ position: 'relative' }}>
404
- <div class={header_cssstyles.userbtnloggedin + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
405
- <i class={' h-100 allcentered '}>
406
- <AiOutlineUser size={sectionproperties.loggedinusericonfontsize} />
407
- </i>
408
- </div>
409
- <div
410
- class="m-0 p-0 loggedinuserbtn flex-column"
411
- style={{
412
- textAlign: langdetect == 'en' ? 'left' : 'right',
413
- }}
414
- >
415
- <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn text-capitalize m-0 p-0 '}>{authdetailsContext?.customerinfo?.name}</p>
416
- </div>
417
- </div>
418
- )}
419
- </Dropdown.Toggle>
420
- {!authdetailsContext.loggedin && (
421
- <Dropdown.Menu>
422
- <Dropdown.Item
423
- class={`${header_cssstyles.dropdownitem}`}
424
- onClick={() => {
425
- routingcountext(StaticPagesLinksContext.Login);
426
- }}
427
- >
428
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
429
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem allcenetered m-0 p-0 '}>
430
- <AiOutlineLogin class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
431
- {lang.login}
432
- </p>
433
- </div>
434
- </Dropdown.Item>
435
- <Dropdown.Divider></Dropdown.Divider>
436
- <Dropdown.Item
437
- class={`${header_cssstyles.dropdownitem}`}
438
- onClick={() => {
439
- routingcountext(StaticPagesLinksContext.Signup);
440
- }}
441
- >
442
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
443
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem allcenetered m-0 p-0 text-transform-none '}>
444
- <AiOutlineUserAdd class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
445
- {lang.signup}
446
- </p>
447
- </div>
448
- </Dropdown.Item>
449
- </Dropdown.Menu>
450
- )}
451
- {authdetailsContext.loggedin && (
452
- <Dropdown.Menu style={{ minWidth: '200px' }}>
453
- <Dropdown.Item class={`${header_cssstyles.dropdownitem}` + ' allcentered '}>
454
- <span
455
- style={{
456
- color: '#8fa0bd',
457
- }}
458
- >
459
- {lang.hello},
460
- </span>
461
- <span
462
- class="font-weight-600 ml-1 mr-1 text-overflow text-capitalize"
463
- onClick={() => {
464
- routingcountext(StaticPagesLinksContext.accountinfo);
465
- }}
466
- >
467
- {authdetailsContext?.customerinfo?.name}
468
- </span>
469
- </Dropdown.Item>
470
- <Dropdown.Divider></Dropdown.Divider>
471
- <Dropdown.Item
472
- onClick={() => {
473
- routingcountext(StaticPagesLinksContext.Ordershistory);
474
- }}
475
- >
476
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
477
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem allcenetered m-0 p-0 '}>
478
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
479
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
480
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
481
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <BsHandbag class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
482
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
483
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
484
- {lang.orderhistory}
485
- </p>
486
- </div>
487
- </Dropdown.Item>
488
- <Dropdown.Divider></Dropdown.Divider>
489
- <Dropdown.Item
490
- onClick={() => {
491
- routingcountext(StaticPagesLinksContext.Wishlist);
492
- }}
493
- >
494
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
495
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem allcenetered m-0 p-0 '}>
496
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />}
497
- {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />} {lang.wishlist}
498
- </p>
499
- </div>
500
- </Dropdown.Item>
501
- <Dropdown.Divider></Dropdown.Divider>
502
- <Dropdown.Item
503
- onClick={() => {
504
- routingcountext(StaticPagesLinksContext.Policies);
505
- }}
506
- >
507
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
508
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem allcenetered m-0 p-0 '}>
509
- <MdOutlinePolicy class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
510
- {lang.policies}
511
- </p>
512
- </div>
513
- </Dropdown.Item>
514
- <Dropdown.Divider></Dropdown.Divider>
515
- <Dropdown.Item
516
- onClick={() => {
517
- LogoutMutationContext.mutate();
518
- }}
519
- >
520
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' allcenetered m-0 p-0 '}>
521
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem allcenetered m-0 p-0 '}>
522
- <BiLogOutCircle class={langdetect == 'en' ? 'mr-2' : 'ml-2'} />
523
- {lang.logout}
524
- </p>
525
- </div>
526
- </Dropdown.Item>
527
- </Dropdown.Menu>
528
- )}
529
- </Dropdown>
530
- <div
531
- class={
532
- langdetect == 'en'
533
- ? `${header_cssstyles.wishlist_btn}` + ' cursor-pointer allcentered ml-3 '
534
- : `${header_cssstyles.wishlist_btn}` + ' cursor-pointer allcentered mr-3 '
535
- }
536
- onClick={() => {
537
- routingcountext(StaticPagesLinksContext.Wishlist);
538
- }}
539
- >
540
- <span class={' pr-0 '} style={{ position: 'relative' }}>
541
- <i class="allcentered">
542
- {sectionproperties.faviconshape == 'Heart Shape' && (
543
- <FaRegHeart
544
- style={{
545
- fontSize: sectionproperties.favBtnIconfontsize + 'px',
546
- }}
547
- />
548
- )}
549
- {sectionproperties.faviconshape == 'Star Shape' && (
550
- <AiFillStar
551
- style={{
552
- fontSize: sectionproperties.favBtnIconfontsize + 'px',
553
- }}
554
- />
555
- )}
556
- </i>
557
- <div class={`${headerstyles.badge_counter_header_notifications} ${header_cssstyles.badge_counter_header_notifications}`}>
558
- <span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
559
- </div>
560
- </span>
561
- </div>
562
- <div
563
- class={
564
- langdetect == 'en'
565
- ? ` ${headerstyles.header_cart} ${header_cssstyles.cart_btn}` + ' d-flex align-items-center justify-content-start cursor-pointer ml-3 pl-2 pr-2 '
566
- : ` ${headerstyles.header_cart} ${header_cssstyles.cart_btn}` + ' d-flex align-items-center justify-content-start cursor-pointer mr-3 pl-2 pr-2 '
567
- }
568
- onClick={() => {
569
- setsidecartnavshowcontext(true);
570
- }}
571
- style={{ zIndex: 1000 }}
572
- >
573
- <p class="m-0 p-0">{langdetect == 'en' ? 'Cart' : 'الحقيبه'}</p>
574
- <div
575
- class={langdetect == 'en' ? ` ${headerstyles.header_badge}` + ' ml-auto ' : ` ${headerstyles.header_badge}` + ' mr-auto '}
576
- style={{
577
- color: sectionproperties.cartBtnbgColor,
578
- }}
579
- >
580
- {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
581
- </div>
582
- </div>
583
- <div
584
- class={langdetect == 'en' ? `${headerstyles.navbar_item}` + ' allcentered m-0 cursor-pointer ml-3 ' : `${headerstyles.navbar_item}` + ' m-0 cursor-pointer mr-3 '}
585
- onClick={() => {
586
- if (langdetect == 'en') {
587
- setlang('ar');
588
- } else {
589
- setlang('en');
590
- }
591
- }}
592
- >
593
- {langdetect == 'en' && (
594
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 allcentered '}>
595
- <img src={egyptflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
596
- <div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} class="ml-2 mr-2"></div>
597
- <p class="m-0 p-0">ع</p>
598
- </div>
599
- )}
600
- {langdetect == 'ar' && (
601
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 allcentered '}>
602
- <img src={usflag} style={{ maxWidth: '2vh', maxHeight: '2vh' }} />
603
- <div style={{ height: '20px', width: '1.5px', background: '#e6e6e6' }} class="ml-2 mr-2"></div>
604
- <p class="m-0 p-0">En</p>
605
- </div>
606
- )}
607
- </div>
608
- </div>
609
- </div>
610
- </div>
611
- <div class="col-lg-12 p-0">
612
- {sectionproperties.showhidesubheader == 'Show' && (
613
- <Subheader
614
- sectionpropertiesprops={sectionproperties}
615
- actions={actions}
616
- subheaderpropertiesprops={{
617
- subheaderpositionprops: 'Full Width',
618
- paddingLeftprops: '25px',
619
- paddingRightprops: '25px',
620
- }}
621
- />
622
- )}
623
- </div>
624
- </div>
625
- </div>
626
- <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
627
- </div>
628
- );
629
- };
630
-
631
- export default Header6;