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