tabexseriescomponents 0.0.73 → 0.0.74

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