tabexseriescomponents 0.0.655 → 0.0.657

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 (314) hide show
  1. package/dist/index.cjs.js +145 -566
  2. package/dist/index.esm.js +145 -566
  3. package/dist/index.umd.js +145 -566
  4. package/package.json +1 -1
  5. package/src 2.zip +0 -0
  6. package/src1-5.zip +0 -0
  7. package/src22-1/Contexts/LanguageContext.jsx +0 -405
  8. package/src22-1/Contexts/ProductsCardsSectionContext.jsx +0 -36
  9. package/src22-1/Imagekitconfig.jsx +0 -46
  10. package/src22-1/StylesJS/Customstyles.js +0 -344
  11. package/src22-1/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -376
  12. package/src22-1/TabexComponents/Cards/Card20/Card20.jsx +0 -282
  13. package/src22-1/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  14. package/src22-1/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  15. package/src22-1/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  16. package/src22-1/TabexComponents/Cards/Card23/Card23.jsx +0 -627
  17. package/src22-1/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  18. package/src22-1/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  19. package/src22-1/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  20. package/src22-1/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  21. package/src22-1/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -246
  22. package/src22-1/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  23. package/src22-1/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  24. package/src22-1/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  25. package/src22-1/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -181
  26. package/src22-1/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  27. package/src22-1/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -180
  28. package/src22-1/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -546
  29. package/src22-1/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -142
  30. package/src22-1/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  31. package/src22-1/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -379
  32. package/src22-1/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -543
  33. package/src22-1/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  34. package/src22-1/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  35. package/src22-1/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  36. package/src22-1/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  37. package/src22-1/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -519
  38. package/src22-1/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  39. package/src22-1/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  40. package/src22-1/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  41. package/src22-1/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  42. package/src22-1/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  43. package/src22-1/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  44. package/src22-1/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  45. package/src22-1/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  46. package/src22-1/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  47. package/src22-1/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -558
  48. package/src22-1/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  49. package/src22-1/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  50. package/src22-1/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -137
  51. package/src22-1/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -598
  52. package/src22-1/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -390
  53. package/src22-1/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  54. package/src22-1/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  55. package/src22-1/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -455
  56. package/src22-1/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -493
  57. package/src22-1/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  58. package/src22-1/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  59. package/src22-1/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -596
  60. package/src22-1/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  61. package/src22-1/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -528
  62. package/src22-1/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  63. package/src22-1/TabexComponents/Footer/Footer2/Footer2.jsx +0 -415
  64. package/src22-1/TabexComponents/Footer/Footer3/Footer3.jsx +0 -400
  65. package/src22-1/TabexComponents/Footer/Footer4/Footer4.jsx +0 -457
  66. package/src22-1/TabexComponents/Footer/Footer5/Footer5.jsx +0 -563
  67. package/src22-1/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  68. package/src22-1/TabexComponents/Footer/Footer7/Footer7.jsx +0 -428
  69. package/src22-1/TabexComponents/Footer/Footer8/Footer8.jsx +0 -473
  70. package/src22-1/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  71. package/src22-1/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -562
  72. package/src22-1/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -584
  73. package/src22-1/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  74. package/src22-1/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -316
  75. package/src22-1/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  76. package/src22-1/TabexComponents/Generalfiles/images/noimage.png +0 -0
  77. package/src22-1/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  78. package/src22-1/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  79. package/src22-1/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  80. package/src22-1/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  81. package/src22-1/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  82. package/src22-1/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  83. package/src22-1/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  84. package/src22-1/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  85. package/src22-1/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  86. package/src22-1/TabexComponents/Generalfiles/images/usflag.png +0 -0
  87. package/src22-1/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  88. package/src22-1/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1244
  89. package/src22-1/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1049
  90. package/src22-1/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -895
  91. package/src22-1/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1213
  92. package/src22-1/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  93. package/src22-1/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -780
  94. package/src22-1/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -771
  95. package/src22-1/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  96. package/src22-1/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  97. package/src22-1/TabexComponents/Headers/Header8/Header8.jsx +0 -1923
  98. package/src22-1/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -728
  99. package/src22-1/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -918
  100. package/src22-1/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -707
  101. package/src22-1/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  102. package/src22-1/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -847
  103. package/src22-1/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1371
  104. package/src22-1/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  105. package/src22-1/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  106. package/src22-1/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -779
  107. package/src22-1/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  108. package/src22-1/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -934
  109. package/src22-1/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -64
  110. package/src22-1/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -732
  111. package/src22-1/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -778
  112. package/src22-1/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1162
  113. package/src22-1/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -835
  114. package/src22-1/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -128
  115. package/src22-1/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -854
  116. package/src22-1/TabexComponents/Headers/Subheader/Subheader.jsx +0 -662
  117. package/src22-1/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  118. package/src22-1/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  119. package/src22-1/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1045
  120. package/src22-1/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1089
  121. package/src22-1/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -936
  122. package/src22-1/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  123. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  124. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -802
  125. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  126. package/src22-1/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  127. package/src22-1/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -274
  128. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  129. package/src22-1/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  130. package/src22-1/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -392
  131. package/src22-1/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -291
  132. package/src22-1/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  133. package/src22-1/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -266
  134. package/src22-1/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  135. package/src22-1/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -414
  136. package/src22-1/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  137. package/src22-1/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  138. package/src22-1/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -421
  139. package/src22-1/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -364
  140. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  141. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  142. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  143. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -1532
  144. package/src22-1/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -480
  145. package/src22-1/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  146. package/src22-1/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  147. package/src22-1/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -682
  148. package/src22-1/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -635
  149. package/src22-1/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -920
  150. package/src22-1/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -517
  151. package/src22-1/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  152. package/src22-1/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -325
  153. package/src22-1/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  154. package/src22-1/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -257
  155. package/src22-1/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  156. package/src22-1/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -757
  157. package/src22-1/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  158. package/src22-1/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -633
  159. package/src22-1/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  160. package/src22-1/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  161. package/src22-1/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -380
  162. package/src22-1/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -400
  163. package/src22-1/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  164. package/src22-1/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  165. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  166. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  167. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -331
  168. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  169. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -603
  170. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  171. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  172. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  173. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  174. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -547
  175. package/src22-1/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  176. package/src22-1/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -612
  177. package/src22-1/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -396
  178. package/src22-1/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -199
  179. package/src22-1/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -304
  180. package/src22-1/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -321
  181. package/src22-1/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -780
  182. package/src22-1/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  183. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  184. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1673
  185. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  186. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  187. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  188. package/src22-1/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -439
  189. package/src22-1/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  190. package/src22-1/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  191. package/src22-1/TabexComponents/StaticPages/Filter/Filter.jsx +0 -1845
  192. package/src22-1/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  193. package/src22-1/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  194. package/src22-1/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  195. package/src22-1/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  196. package/src22-1/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  197. package/src22-1/TabexComponents/StaticPages/Login/Login.jsx +0 -610
  198. package/src22-1/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -146
  199. package/src22-1/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1568
  200. package/src22-1/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  201. package/src22-1/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -113
  202. package/src22-1/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  203. package/src22-1/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  204. package/src22-1/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -130
  205. package/src22-1/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  206. package/src22-1/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -310
  207. package/src22-1/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -235
  208. package/src22-1/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -1270
  209. package/src22-1/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  210. package/src22-1/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  211. package/src22-1/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1729
  212. package/src22-1/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -552
  213. package/src22-1/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -754
  214. package/src22-1/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -491
  215. package/src22-1/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  216. package/src22-1/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  217. package/src22-1/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -113
  218. package/src22-1/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -338
  219. package/src22-1/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -358
  220. package/src22-1/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -113
  221. package/src22-1/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  222. package/src22-1/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  223. package/src22-1/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1344
  224. package/src22-1/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  225. package/src22-1/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -290
  226. package/src22-1/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -113
  227. package/src22-1/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  228. package/src22-1/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  229. package/src22-1/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  230. package/src22-1/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  231. package/src22-1/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  232. package/src22-1/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  233. package/src22-1/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -555
  234. package/src22-1/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  235. package/src22-1/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  236. package/src22-1/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  237. package/src22-1/button.jsx +0 -40
  238. package/src22-1/index.jsx +0 -327
  239. package/src22-1/styles/Home.module.css +0 -129
  240. package/src22-1/styles/cards/Categorcycard_fullimage.module.css +0 -14
  241. package/src22-1/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  242. package/src22-1/styles/cards/Categorycard_withshapes.module.css +0 -189
  243. package/src22-1/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  244. package/src22-1/styles/cards/Productcard6.module.css +0 -9
  245. package/src22-1/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  246. package/src22-1/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  247. package/src22-1/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  248. package/src22-1/styles/cards/card23.module.css +0 -60
  249. package/src22-1/styles/cards/categorycard.module.css +0 -84
  250. package/src22-1/styles/cards/categorycard3.module.css +0 -50
  251. package/src22-1/styles/cards/categorycardwithtext.module.css +0 -40
  252. package/src22-1/styles/cards/generalCardsStyles.module.css +0 -79
  253. package/src22-1/styles/cards/productcard_animatedbuttons.module.css +0 -139
  254. package/src22-1/styles/cards/productcard_with_textonhover.module.css +0 -18
  255. package/src22-1/styles/cards/productcard_withtextonimage.module.css +0 -0
  256. package/src22-1/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  257. package/src22-1/styles/general/bootstrap.css +0 -4763
  258. package/src22-1/styles/general/dropdown.css +0 -206
  259. package/src22-1/styles/general/editorbardropdown.module.css +0 -94
  260. package/src22-1/styles/general/filter.module.css +0 -108
  261. package/src22-1/styles/general/form.module.css +0 -255
  262. package/src22-1/styles/general/general.module.css +0 -872
  263. package/src22-1/styles/general/image-gallery.css +0 -531
  264. package/src22-1/styles/general/react-accessible-accordion.module.css +0 -52
  265. package/src22-1/styles/general/react-phone-input-2.module.css +0 -927
  266. package/src22-1/styles/general/scrollbtn.module.css +0 -22
  267. package/src22-1/styles/general/slick.module.css +0 -166
  268. package/src22-1/styles/general/tabs.module.css +0 -119
  269. package/src22-1/styles/general/workplaceeditor.module.css +0 -328
  270. package/src22-1/styles/globals.css +0 -26
  271. package/src22-1/styles/headers/CTAHeader.module.css +0 -40
  272. package/src22-1/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  273. package/src22-1/styles/headers/Gotoheader.module.css +0 -81
  274. package/src22-1/styles/headers/Header7.module.css +0 -50
  275. package/src22-1/styles/headers/HeaderWithAdSlider.module.css +0 -86
  276. package/src22-1/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  277. package/src22-1/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  278. package/src22-1/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  279. package/src22-1/styles/headers/NewHeader.module.css +0 -101
  280. package/src22-1/styles/headers/SearchFocusedHeader.module.css +0 -62
  281. package/src22-1/styles/headers/Sideheader.module.css +0 -108
  282. package/src22-1/styles/headers/Simpleheader.module.css +0 -102
  283. package/src22-1/styles/headers/classicheader.module.css +0 -16
  284. package/src22-1/styles/headers/classicheaderstyles.module.css +0 -9
  285. package/src22-1/styles/headers/dropdown.css +0 -0
  286. package/src22-1/styles/headers/header4.module.css +0 -175
  287. package/src22-1/styles/headers/header5.module.css +0 -30
  288. package/src22-1/styles/headers/header_contactinfo.module.css +0 -53
  289. package/src22-1/styles/headers/headerresturant.module.css +0 -89
  290. package/src22-1/styles/headers/modernheader.module.css +0 -45
  291. package/src22-1/styles/headers/stylishheader.module.css +0 -24
  292. package/src22-1/styles/headers/subheader.module.css +0 -114
  293. package/src22-1/styles/headers/threetieredheader.module.css +0 -91
  294. package/src22-1/styles/sections/BackgroundImageWithTopContent.css +0 -4
  295. package/src22-1/styles/sections/Backgroundimage1.module.css +0 -17
  296. package/src22-1/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  297. package/src22-1/styles/sections/Freetext.module.css +0 -18
  298. package/src22-1/styles/sections/Section_with_rightbgcont.module.css +0 -49
  299. package/src22-1/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  300. package/src22-1/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  301. package/src22-1/styles/staticpages/accordion.module.css +0 -9
  302. package/src22-1/styles/staticpages/cart.module.css +0 -108
  303. package/src22-1/styles/staticpages/dropdown.css +0 -196
  304. package/src22-1/styles/staticpages/filter.module.css +0 -139
  305. package/src22-1/styles/staticpages/image-gallery.css +0 -481
  306. package/src22-1/styles/staticpages/login.module.css +0 -155
  307. package/src22-1/styles/staticpages/productinfo.module.css +0 -54
  308. package/src22-1/styles/staticpages/shop.module.css +0 -191
  309. package/src22-1/styles/staticpages/signup.module.css +0 -250
  310. package/src22-1/styles/staticpages/staticroutersidenav.module.css +0 -129
  311. package/src22-1/styles/staticpages/viewcart.module.css +0 -129
  312. package/src22-1/styles/staticpages/wishlist.module.css +0 -29
  313. package/srcbeforeedits.zip +0 -0
  314. package/srclib1-5.2.zip +0 -0
@@ -1,1923 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import { css } from 'glamor';
3
- import Dropdown from 'react-bootstrap/Dropdown';
4
- import Searchlist from '../../StaticPages/Searchlist/Searchlist.jsx';
5
- import Headerresponsive from '../Headerresponsive/Headerresponsive.jsx';
6
- import Subheader from '../Subheader/Subheader.jsx';
7
- import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
8
- import { FaMoneyBillWave } from '@react-icons/all-files/fa/FaMoneyBillWave';
9
- import { BsSearch } from '@react-icons/all-files/bs/BsSearch';
10
- import { HiOutlineShoppingBag } from '@react-icons/all-files/hi/HiOutlineShoppingBag';
11
- import { BsBag } from '@react-icons/all-files/bs/BsBag';
12
- import { FiPhone } from '@react-icons/all-files/fi/FiPhone';
13
- import { AiOutlineSecurityScan } from '@react-icons/all-files/ai/AiOutlineSecurityScan';
14
- import { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';
15
- import { FaRegHeart } from '@react-icons/all-files/fa/FaRegHeart';
16
- import { BiLogOutCircle } from '@react-icons/all-files/bi/BiLogOutCircle';
17
- import { BiUser } from '@react-icons/all-files/bi/BiUser';
18
- import { HiMenuAlt4 } from '@react-icons/all-files/hi/HiMenuAlt4';
19
- import { AiOutlineUserAdd } from '@react-icons/all-files/ai/AiOutlineUserAdd';
20
- import { MdKeyboardArrowDown } from '@react-icons/all-files/md/MdKeyboardArrowDown';
21
- import { MdKeyboardArrowUp } from '@react-icons/all-files/md/MdKeyboardArrowUp';
22
- import { AiOutlineLogin } from '@react-icons/all-files/ai/AiOutlineLogin';
23
- import { AiFillStar } from '@react-icons/all-files/ai/AiFillStar';
24
- import { CgShoppingBag } from '@react-icons/all-files/cg/CgShoppingBag';
25
- import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
26
- import { FiShoppingBag } from '@react-icons/all-files/fi/FiShoppingBag';
27
- import { BsChevronLeft } from '@react-icons/all-files/bs/BsChevronLeft';
28
- import { BsChevronRight } from '@react-icons/all-files/bs/BsChevronRight';
29
- import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
30
-
31
- const Header8 = (props) => {
32
- const actions = props.actions;
33
- const history = props.actions.history;
34
- const lang = props.actions.lang;
35
- const langdetect = props.actions.langdetect;
36
- const setlang = props.actions.setlang;
37
- const LogoutMutationContext = props.actions.LogoutMutationContext;
38
- const setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
39
- const setSearchHeaderInputContext = props.actions.setSearchHeaderInputContext;
40
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
41
- const templatepropcontext = props.actions.templatepropcontext;
42
- const authdetailsContext = props.actions.authdetailsContext;
43
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
44
- const templateproperties_context = props.actions.templateproperties_context;
45
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
46
- const routingcountext = props.actions.routingcountext;
47
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
48
- const ikimagecredcontext = props.actions.ikimagecredcontext;
49
- const [sectionproperties, setsectionproperties] = useState('');
50
- const [dropdownselect, setdropdownselect] = useState(false);
51
- const [logoarrayofobjects, setlogoarrayofobjects] = useState([]);
52
- const [Choosenindex, setChoosenindex] = useState('');
53
- const [pcollarray, setpcollarray] = useState([]);
54
- const setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
55
-
56
- useEffect(() => {
57
- var secpropobj = {};
58
- StatePagePropertiesContext?.pageobj?.sections?.forEach(function (sectionitem, sectionindex) {
59
- if (sectionitem.sectionid == props.sectionidprops) {
60
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
61
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
62
- });
63
- }
64
- });
65
- if (Object.keys(secpropobj).length === 0) {
66
- props?.defaultproperties?.forEach(function (defaultpropobj, defaultpropindex) {
67
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
68
- });
69
- }
70
- setsectionproperties({ ...secpropobj });
71
- }, [StatePagePropertiesContext]);
72
- const subtotalcart = () => {
73
- var totalprice = parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart?.totalprice).toFixed(2);
74
- // var totalpricee = 0;
75
- // fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach(function (cartitem, cartindex) {
76
- // var finalprice = 0;
77
- // if (cartitem.productinfo.hassale == 0) {
78
- // finalprice = cartitem.productinfo.defaultprice;
79
- // } else if (cartitem.productinfo.hassale == 1) {
80
- // finalprice = cartitem.productinfo.defaultsaleprice;
81
- // }
82
- // var totalsingleitem = parseFloat(finalprice) * parseFloat(cartitem.quantity);
83
- // totalpricee = totalprice + totalsingleitem;
84
- // totalprice = parseFloat(totalpricee).toFixed(2);
85
- // // totalprice = parseFloat(finalprice * cartitem.quantity + totalprice).toFixed(2);
86
- // });
87
- return totalprice;
88
- };
89
- useEffect(() => {
90
- if (templateproperties_context.length != 0 && templateproperties_context.logoarrayofobjects != undefined) {
91
- var logoarrayofobjectsparsed = JSON.parse(templateproperties_context.logoarrayofobjects);
92
- if (Array.isArray(logoarrayofobjectsparsed)) {
93
- setlogoarrayofobjects([...logoarrayofobjectsparsed]);
94
- }
95
- }
96
- }, [templateproperties_context]);
97
- useEffect(() => {
98
- var temppcollarray = [...pcollarray];
99
- authdetailsContext?.instinfo?.instcategories?.forEach(function (arrayItem) {
100
- arrayItem?.parentcolletions?.forEach(function (item) {
101
- temppcollarray.push(item);
102
- });
103
- });
104
- setpcollarray([...temppcollarray]);
105
- }, [authdetailsContext]);
106
- const ButtonDropdown = (item, index, fetchedarray) => {
107
- var parentclassname = '';
108
- if (sectionproperties.fetchparenttype == 'Categories') {
109
- parentclassname = header_cssstyles.categoryname;
110
- } else if (sectionproperties.fetchparenttype == 'Parent Collections') {
111
- parentclassname = header_cssstyles.parentcollection;
112
- } else {
113
- parentclassname = header_cssstyles.collectionName;
114
- }
115
- return (
116
- <li class="dropdown d-flex align-items-center w-100">
117
- <div
118
- class={parentclassname + ' row m-0 w-100 d-flex align-items-center dropdownInnerContainer cursor-pointer '}
119
- onMouseEnter={() => {
120
- setChoosenindex(index);
121
- }}
122
- >
123
- <div className={' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '}>
124
- <p
125
- class={' m-0 p-0 wordbreak wordbreak1 '}
126
- onClick={() => {
127
- if (sectionproperties.fetchparenttype == 'Categories') {
128
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'categories/' + item.categoryid);
129
- } else if (sectionproperties.fetchparenttype == 'Parent Collections') {
130
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
131
- } else {
132
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
133
- }
134
- }}
135
- >
136
- {langdetect == 'en' ? item.title_en : item.title_ar}
137
- </p>
138
- </div>
139
- {/* {sectionproperties.fetchparenttype == 'Categories' && fetchedarray[Choosenindex]?.parentcolletions.length != 0 && ( */}
140
- {sectionproperties.fetchparenttype != 'Collections' && (
141
- <div className={'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '}>
142
- <i className={' p-0 h-100 allcentered '}>
143
- {langdetect == 'en' ? (
144
- <BsChevronRight size={sectionproperties.collectionsectioniconfontsize} />
145
- ) : (
146
- <BsChevronLeft size={sectionproperties.collectionsectioniconfontsize} />
147
- )}
148
- </i>
149
- </div>
150
- )}
151
- {/* )} */}
152
- </div>
153
- {sectionproperties.fetchparenttype == 'Categories' && fetchedarray[Choosenindex]?.parentcolletions?.length != 0 && (
154
- <ul>
155
- {fetchedarray[Choosenindex]?.parentcolletions?.map((item, index) => (
156
- <li class="dropdown d-flex align-items-center w-100">
157
- <div
158
- class={header_cssstyles.parentcollection + ' w-100 dropdownInnerContainer cursor-pointer '}
159
- onClick={() => {
160
- if (sectionproperties.fetchparenttype == 'Categories') {
161
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'parentcollections/' + item.parentcollectionid);
162
- } else {
163
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
164
- }
165
- }}
166
- >
167
- <div class="row m-0 w-100">
168
- <div className={' col-lg-10 col-md-10 col-sm-10 p-0 d-flex justify-content-start align-items-center p-0 '}>
169
- <p class={' m-0 p-0 wordbreak wordbreak1 '}>{langdetect == 'en' ? item.title_en : item.title_ar}</p>
170
- </div>
171
- {item?.collections.length != 0 && (
172
- <div className={'col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end align-items-center p-0 '}>
173
- <i className={' p-0 h-100 allcentered '}>
174
- {langdetect == 'en' ? (
175
- <BsChevronRight size={sectionproperties.collectionsectioniconfontsize} />
176
- ) : (
177
- <BsChevronLeft size={sectionproperties.collectionsectioniconfontsize} />
178
- )}
179
- </i>
180
- </div>
181
- )}
182
- </div>
183
- </div>
184
- {item?.collections.length != 0 && (
185
- <ul>
186
- {item?.collections?.map((item, index) => {
187
- return (
188
- <li
189
- class={header_cssstyles.collectionName + ' w-100 d-flex align-items-center dropdownInnerContainer cursor-pointer '}
190
- onClick={() => {
191
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
192
- }}
193
- >
194
- {langdetect == 'en' ? item.title_en : item.title_ar}
195
- </li>
196
- );
197
- })}
198
- </ul>
199
- )}
200
- </li>
201
- ))}
202
- </ul>
203
- )}
204
- {sectionproperties.fetchparenttype == 'Parent Collections' && pcollarray[Choosenindex]?.collections.length != 0 && (
205
- <ul>
206
- {pcollarray[Choosenindex]?.collections?.map((item, index) => (
207
- <li class="dropdown d-flex align-items-center w-100">
208
- <div
209
- class={header_cssstyles.collectionName + ' w-100 dropdownInnerContainer cursor-pointer '}
210
- onClick={() => {
211
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + item.collectionid);
212
- }}
213
- >
214
- <div className={' col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start align-items-center p-0 '}>
215
- <p class={' m-0 p-0 wordbreak wordbreak1 '}>{langdetect == 'en' ? item.title_en : item.title_ar}</p>
216
- </div>
217
- </div>
218
- </li>
219
- ))}
220
- </ul>
221
- )}
222
- </li>
223
- );
224
- };
225
- const header_cssstyles = {
226
- headercontainer: css({
227
- position: sectionproperties.headerstyles_position,
228
- width: sectionproperties.header_width + 'vw',
229
- background: sectionproperties.uppersection_bgcolor,
230
- zIndex: 1000,
231
- transition: 'all 0.2s',
232
- }),
233
- upperheadersection: css({
234
- background: sectionproperties.uppersection_bgcolor,
235
- paddingLeft: langdetect == 'en' ? sectionproperties.uppersection_paddingleft + 'px' : sectionproperties.uppersection_paddingright + 'px',
236
- paddingRight: langdetect == 'en' ? sectionproperties.uppersection_paddingright + 'px' : sectionproperties.uppersection_paddingleft + 'px',
237
- paddingTop: sectionproperties.uppersection_paddingtop + 'px',
238
- paddingBottom: sectionproperties.uppersection_paddingbottom + 'px',
239
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.uppersection_btlradius + 'px' : sectionproperties.uppersection_btrradius + 'px',
240
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.uppersection_btrradius + 'px' : sectionproperties.uppersection_btlradius + 'px',
241
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.uppersection_bblradius + 'px' : sectionproperties.uppersection_bbrradius + 'px',
242
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.uppersection_bbrradius + 'px' : sectionproperties.uppersection_bblradius + 'px',
243
- }),
244
- lowerheadercontainer: css({
245
- backgroundColor: sectionproperties.lowersection_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.lowersection_backgroundColor,
246
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.lowersection_borderBottomLeftRadius + 'px' : sectionproperties.lowersection_BorderBottomRightRadius + 'px',
247
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.lowersection_BorderBottomRightRadius + 'px' : sectionproperties.lowersection_borderBottomLeftRadius + 'px',
248
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.lowersection_borderTopLeftRadius + 'px' : sectionproperties.lowersection_borderTopRightRadius + 'px',
249
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.lowersection_borderTopRightRadius + 'px' : sectionproperties.lowersection_borderTopLeftRadius + 'px',
250
- paddingLeft: langdetect == 'en' ? sectionproperties.lowersection_paddingleft + 'px' : sectionproperties.lowersection_paddingright + 'px',
251
- paddingRight: langdetect == 'en' ? sectionproperties.lowersection_paddingright + 'px' : sectionproperties.lowersection_paddingleft + 'px',
252
- paddingTop: sectionproperties.lowersection_paddingtop + 'px',
253
- paddingBottom: sectionproperties.lowersection_paddingbottom + 'px',
254
- }),
255
- header_logo: css({
256
- width: templateproperties_context.logo_width + 'px',
257
- height: templateproperties_context.logo_height + 'px',
258
- }),
259
- navbar_item_text: css({
260
- color: sectionproperties.lowersection_fontColor,
261
- fontSize: sectionproperties.lowersection_fontsize + 'px',
262
- textTransform: sectionproperties.lowersection_textTransform,
263
- fontWeight: sectionproperties.lowersection_textfontweight,
264
- transition: '0.3s',
265
- padding: 0,
266
- ':hover': {
267
- color: sectionproperties.lowersection_fontColoronhover,
268
- },
269
- }),
270
- navbar_item_active: css({
271
- color: sectionproperties.lowersection_fontColoronhover,
272
- }),
273
- dropdownitem: css({
274
- padding: '0 0.1rem',
275
- transition: '.3s',
276
- fontSize: sectionproperties.dropdown_fontsize + 'px',
277
- color: sectionproperties.dropdown_color,
278
- fontWeight: sectionproperties.dropdown_fontweight,
279
- textTransform: sectionproperties.dropdown_texttransform,
280
- }),
281
- dropdownitemcontainer: css({
282
- ':hover .dropdownitem': { color: sectionproperties.dropdown_hovercolor },
283
- }),
284
- divider: css({
285
- height: sectionproperties.vl_height + 'px',
286
- width: sectionproperties.vl_width + '%',
287
- backgroundColor: sectionproperties.vl_bg,
288
- zIndex: 1,
289
- }),
290
- searchbarcont: css({
291
- position: 'relative',
292
- width: sectionproperties.searchbarcont_width + 'px',
293
- maxWidth: '100%',
294
- height: sectionproperties.searchbarcont_height + 'px',
295
- background: sectionproperties.searchbarcont_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbarcont_bgcolor,
296
- borderRadius: sectionproperties.searchbarcont_borderRadius + 'px',
297
- border: sectionproperties.searchbarcontinput_borderwidth + 'px solid' + sectionproperties.searchbarcontinput_bordercolor,
298
- transition: '.3s',
299
- }),
300
- searchbar_icon_cont: css({
301
- width: sectionproperties.searchbaricon_width + 'px',
302
- height: sectionproperties.searchbaricon_height + 'px',
303
- borderRadius: sectionproperties.searchbaricon_borderRadius + 'px',
304
- color: sectionproperties.searchbaricon_color,
305
- backgroundColor: sectionproperties.searchbaricon_bgcolortransparent == 'Transparent' ? 'transparent' : sectionproperties.searchbaricon_bgcolor,
306
- transition: '0.3s ease',
307
- position: 'absolute',
308
- right: langdetect == 'en' ? 0 : '',
309
- left: langdetect == 'en' ? '' : 0,
310
- transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
311
- bottom: 0,
312
- top: 0,
313
- margin: 'auto',
314
- }),
315
- searchbarcont_input: css({
316
- height: '100%',
317
- width: '100%',
318
- outline: 'none',
319
- background: 'transparent',
320
- color: sectionproperties.searchbarcontinput_color,
321
- fontWeight: sectionproperties.searchbarcont_inputfontweight,
322
- fontSize: sectionproperties.searchbarcontinput_fontsize + 'px',
323
- paddingLeft: langdetect == 'en' ? sectionproperties.searchbarcont_paddingLeft + 'px' : sectionproperties.searchbarcont_paddingRight + 'px',
324
- paddingRight: langdetect == 'en' ? sectionproperties.searchbarcont_paddingRight + 'px' : sectionproperties.searchbarcont_paddingLeft,
325
- transition: '0.3s',
326
- ':focus': {
327
- borderColor: sectionproperties.searchbarcontinput_bordercoloronfocus,
328
- },
329
- }),
330
- wishlist_btn: css({
331
- width: sectionproperties.favBtnWidth + 'px',
332
- height: sectionproperties.favBtnHeight + 'px',
333
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
334
- borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
335
- color: sectionproperties.favBtniconcolor,
336
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
337
- fontSize: sectionproperties.favBtnIconfontsize + 'px',
338
- transition: '.3s',
339
- ':hover': {
340
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
341
- color: sectionproperties.favBtnTextcoloronhover,
342
- },
343
- }),
344
- wishlistbadge: css({
345
- top: sectionproperties.wishlistbadgetop + 'px',
346
- right: sectionproperties.wishlistbadgeright + 'px',
347
- }),
348
- user_btn: css({
349
- background: sectionproperties.userbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColor,
350
- width: sectionproperties.userBtnWidth + 'px',
351
- height: sectionproperties.userBtnHeight + 'px',
352
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
353
- color: sectionproperties.userBtniconcolor,
354
- border: sectionproperties.userbtnborderwidth + 'px solid ' + sectionproperties.userbtnbordercolor,
355
- transition: '.3s',
356
- ':hover': {
357
- color: sectionproperties.userBtnTextcoloronhover,
358
- background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
359
- borderColor: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? sectionproperties.userBtnTextcoloronhover : sectionproperties.userBtnbgColoronhover,
360
- },
361
- }),
362
- loggedinusername: css({
363
- fontWeight: sectionproperties.userBtnTextfontweight,
364
- textTransform: sectionproperties.userBtnTexttransform,
365
- color: sectionproperties.userBtnTextcolor,
366
- fontSize: sectionproperties.userBtntextfontsize + 'px',
367
- lineHeight: sectionproperties.userBtntextfontsize + 'px',
368
- transition: '.3s',
369
- }),
370
- user_btnContainer: css({
371
- ':hover .user_btnbg': {
372
- background: sectionproperties.userbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.userBtnbgColoronhover,
373
- color: sectionproperties.userBtnTextcoloronhover,
374
- },
375
- ':hover .user_btn': {
376
- color: sectionproperties.userBtnTextcoloronhover,
377
- },
378
- }),
379
- loggedinuserbtn: css({
380
- width: sectionproperties.loggedinuserbtn_width + 'px',
381
- height: sectionproperties.loggedinuserbtn_height + 'px',
382
- border: sectionproperties.userlogginbtnborderwidth + 'px solid ' + sectionproperties.userlogginbtnbordercolor,
383
- borderRadius: sectionproperties.userbtn_borderBottomLeftRadius + 'px',
384
- background: sectionproperties.userBtnbgColor_loggedin,
385
- color: sectionproperties.userBtniconcolor_loggedin,
386
- transition: '.3s',
387
- }),
388
- loggedinuserbtnContainer: css({
389
- ':hover .loggedinuserbtn': {
390
- borderColor: sectionproperties.userbtn_loggedin_iconcoloronhover,
391
- color: sectionproperties.userBtnTextcoloronhover_loggedin,
392
- },
393
- ':hover .loggedinuserbtnbg': {
394
- backgroundColor: sectionproperties.userBtnbgColoronhover_loggedin,
395
- color: sectionproperties.userbtn_loggedin_iconcoloronhover,
396
- },
397
- }),
398
- cart_btn: css({
399
- width: sectionproperties.cartBtnWidth + 'px',
400
- height: sectionproperties.cartBtnHeight + 'px',
401
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
402
- borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
403
- color: sectionproperties.cartBtnTextcolor,
404
- border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
405
- color: sectionproperties.cart_iconcolor,
406
- transition: '.3s',
407
- ':hover': {
408
- background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
409
- color: sectionproperties.cartBtnTextcoloronhover,
410
- },
411
- }),
412
- cartbadge: css({
413
- top: sectionproperties.cartbadgetop + 'px',
414
- right: sectionproperties.cartbadgeright + 'px',
415
- }),
416
- badge_counter_header_notifications: css({
417
- display: 'flex',
418
- justifyContent: 'center',
419
- alignItems: 'center',
420
- position: 'absolute',
421
- top: sectionproperties.badge_top + 'px',
422
- right: sectionproperties.badge_right + 'px',
423
- background: sectionproperties.badge_bgcolor,
424
- width: sectionproperties.badge_width + 'px',
425
- height: sectionproperties.badge_height + 'px',
426
- color: sectionproperties.badge_color,
427
- borderRadius: sectionproperties.badge_borderradius + 'px',
428
- fontSize: sectionproperties.badge_fontsize + 'px',
429
- }),
430
- btntextcontainer: css({
431
- color: sectionproperties.generalbtn_textColor,
432
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
433
- textTransform: sectionproperties.generalbtn_texttransform,
434
- transition: '.3s',
435
- ':hover': {
436
- color: sectionproperties.generalbtn_textColoronhover,
437
- },
438
- }),
439
- languagecontainer: css({
440
- cursor: 'pointer',
441
- transition: '.3s',
442
- color: sectionproperties.language_container_color,
443
- fontSize: sectionproperties.language_container_fontsize + 'px',
444
- ':hover': {
445
- color: sectionproperties.language_container_coloronhover,
446
- },
447
- }),
448
- storeinfotext: css({
449
- color: sectionproperties.footerinfotext_color,
450
- fontSize: sectionproperties.footerinfotext_fontsize + 'px',
451
- fontWeight: sectionproperties.footerinfotext_fontweight,
452
- letterSpacing: '2px',
453
- }),
454
- storeinfocontainer: css({
455
- ':hover .storeinfotext': {
456
- transition: '.3s',
457
- color: sectionproperties.footerinfotext_coloronhover,
458
- },
459
- }),
460
- categorybtn: css({
461
- background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
462
- width: sectionproperties.generalbtn_width + 'px',
463
- maxWidth: '100%',
464
- height: sectionproperties.generalbtn_height + 'px',
465
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.generalbtn_bordertopleftradius + 'px' : sectionproperties.generalbtn_bordertoprightradius + 'px',
466
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.generalbtn_bordertoprightradius + 'px' : sectionproperties.generalbtn_bordertopleftradius + 'px',
467
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.generalbtn_borderbottomleftradius + 'px' : sectionproperties.generalbtn_borderbottomrightradius + 'px',
468
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.generalbtn_borderbottomrightradius + 'px' : sectionproperties.generalbtn_borderbottomleftradius + 'px',
469
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
470
- color: sectionproperties.generalbtn_textColor,
471
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
472
- fontWeight: sectionproperties.generalbtn_fontweight,
473
- transition: '.3s',
474
- ':hover': {
475
- color: sectionproperties.generalbtn_textColoronhover,
476
- backgroundColor: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
477
- },
478
- ':hover .categorybtnicon': {
479
- background: sectionproperties.iconcontainerbgonhover,
480
- color: sectionproperties.iconcontainercoloronhover,
481
- },
482
- }),
483
- categoryname: css({
484
- color: sectionproperties.subheader_categorytitle_fontColor,
485
- fontSize: sectionproperties.subheader_categorytitle_fontSize + 'px',
486
- textTransform: sectionproperties.subheader_categorytitle_textTransform,
487
- fontWeight: sectionproperties.subheader_categorytitle_textfontweight,
488
- transition: '.3s',
489
- ':hover': {
490
- color: sectionproperties.subheader_categorytitle_coloronhover,
491
- },
492
- }),
493
- parentcollection: css({
494
- color: sectionproperties.subheader_collectiontitle_fontColor,
495
- fontSize: sectionproperties.subheader_collectiontitle_fontSize + 'px',
496
- textTransform: sectionproperties.subheader_collectiontitle_textTransform,
497
- fontWeight: sectionproperties.subheader_collectiontitle_textfontweight,
498
- transition: '.3s',
499
- ':hover': {
500
- color: sectionproperties.subheader_collectiontitle_coloronhover,
501
- },
502
- }),
503
- collectionName: css({
504
- color: sectionproperties.collectionsectiontextcolor,
505
- fontSize: sectionproperties.collectionsectiontextfontsize + 'px',
506
- textTransform: sectionproperties.collectionsectiontexttransform,
507
- fontWeight: sectionproperties.collectionsectiontextfontweight,
508
- transition: '.3s',
509
- ':hover': {
510
- color: sectionproperties.collectionsectiontextcoloronhover,
511
- },
512
- }),
513
- };
514
- return (
515
- <div
516
- class="row w-100 ml-0 mr-0 d-flex justify-content-center"
517
- style={{
518
- marginTop: sectionproperties.header_marginTop + 'px',
519
- marginBottom: sectionproperties.header_marginBottom + 'px',
520
- }}
521
- >
522
- {sectionproperties.youtbtn_show == 'Show' && (
523
- <>
524
- <a href={'tel:' + authdetailsContext?.CuContactphonenumber} target={'_self'} style={{ position: 'fixed', bottom: 60, right: 10, zIndex: 999999, transition: 'all 0.3s ease-out' }}>
525
- <i class={langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'}>
526
- <FiPhone size={30} color={sectionproperties.uppersection_iconcolor} style={{ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)' }} />
527
- </i>
528
- </a>
529
- <a
530
- href={'https://api.whatsapp.com/send?phone=' + authdetailsContext?.instinfo?.whatsappnumber}
531
- target={'_blank'}
532
- style={{ position: 'fixed', bottom: 10, right: 10, zIndex: 999999, transition: 'all 0.3s ease-out' }}
533
- >
534
- <img src={'https://tabex-co.com/storage/StaticImages/whatsapp.png'} style={{ width: '40px', height: '40px', cursor: 'pointer' }} />
535
- </a>
536
- </>
537
- )}
538
- <div
539
- class={`${header_cssstyles.headercontainer}` + ' row ml-0 mr-0 d-flex d-md-none align-items-center '}
540
- style={{
541
- position: sectionproperties.headerstyles_position,
542
- top: 0,
543
- }}
544
- >
545
- {/* Upper Header */}
546
- <div class={' col-lg-12 p-0 '}>
547
- <div class={header_cssstyles.upperheadersection + ' row w-100 m-0 align-items-center px-1025-1 '}>
548
- <div class="col-lg-2 p-0">
549
- <div
550
- class={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
551
- style={{ cursor: 'pointer' }}
552
- onClick={() => {
553
- routingcountext('home');
554
- }}
555
- >
556
- <Imagekitimagecomp
557
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
558
- publicKey={ikimagecredcontext?.ikimagepublickey}
559
- path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
560
- style={{
561
- maxWidth: '100%',
562
- maxHeight: '100%',
563
- }}
564
- />
565
- </div>
566
- </div>
567
-
568
- <div
569
- class={
570
- sectionproperties.showfooterphonenumber == 'Show' ? (sectionproperties.btninsearch == 'Show' ? 'col-xl-5 col-lg-4 p-lg-0' : 'col-xl-4 col-lg-3 p-0') : 'col-lg-6 p-0'
571
- }
572
- style={{
573
- position: 'relative',
574
- }}
575
- >
576
- <div class="row m-0 w-100">
577
- {sectionproperties.btninsearch == 'Show' && sectionproperties.generalbtn_show == 'Show' && (
578
- <div
579
- class={'col-xl-3 col-lg-4 p-0 d-flex align-items-center justify-content-start '}
580
- onClick={() => {
581
- setdropdownselect(!dropdownselect);
582
- }}
583
- >
584
- <div
585
- class={`${header_cssstyles.categorybtn}` + ' categoriesdropdown d-flex w-100 align-items-center pl-2 pr-2 '}
586
- style={{
587
- borderTopRightRadius: langdetect == 'en' ? 0 : '',
588
- borderBottomRightRadius: langdetect == 'en' ? 0 : '',
589
- borderBottomLeftRadius: langdetect == 'ar' ? 0 : '',
590
- borderTopLeftRadius: langdetect == 'ar' ? 0 : '',
591
- zIndex: 100,
592
- }}
593
- >
594
- <li class={langdetect == 'en' ? 'dropdown dropdownen w-100' : 'dropdown dropdownar w-100'}>
595
- <div class={' m-0 allcentered cursor-pointer px-2 p-lg-0 '}>
596
- <div class={'col-lg-10 d-flex justify-content-start m-0 p-0'}>
597
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
598
- </div>
599
- <div class="col-lg-2 p-0 h-100 d-flex align-items-center justify-content-end d-xl-flex d-lg-none">
600
- <i class="h-100 d-flex align-items-center justify-content-end">
601
- {dropdownselect ? <MdKeyboardArrowUp size={25} /> : <MdKeyboardArrowDown size={25} />}
602
- </i>
603
- </div>
604
- </div>
605
- <ul
606
- class="mt-2"
607
- sytle={{
608
- width: '200px',
609
- }}
610
- >
611
- {sectionproperties.fetchparenttype == 'Categories' &&
612
- authdetailsContext?.instinfo?.instcategories?.map((item, index) => {
613
- var fetchedarray = authdetailsContext?.instinfo?.instcategories;
614
- if (item.isshowntocustomers == 1) {
615
- return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
616
- }
617
- })}
618
- {sectionproperties.fetchparenttype == 'Parent Collections' &&
619
- pcollarray?.map((item, index) => {
620
- var fetchedarray = pcollarray;
621
- if (item.isshowntocustomers == 1) {
622
- return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
623
- }
624
- })}
625
- {sectionproperties.fetchparenttype == 'Collections' &&
626
- authdetailsContext?.instinfo?.instcollections?.map((item, index) => {
627
- var fetchedarray = authdetailsContext?.instinfo?.instcollections;
628
- if (item.isshowntocustomers == 1) {
629
- return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
630
- }
631
- })}
632
- </ul>
633
- </li>
634
- </div>
635
- </div>
636
- )}
637
- <div class={sectionproperties.btninsearch == 'Show' ? 'col-xl-9 col-lg-8 p-0 d-flex justify-content-start align-items-center' : 'col-xl-12 p-0 '}>
638
- <div
639
- class={header_cssstyles.searchbarcont}
640
- style={{
641
- position: 'relative',
642
- borderTopRightRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'ar' ? 0 : '') : '',
643
- borderBottomRightRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'ar' ? 0 : '') : '',
644
- borderBottomLeftRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'en' ? 0 : '') : '',
645
- borderTopLeftRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'en' ? 0 : '') : '',
646
- }}
647
- >
648
- <input
649
- type="text"
650
- placeholder={langdetect == 'en' ? sectionproperties.search_placeholder_en : sectionproperties.search_placeholder_ar}
651
- class={`${header_cssstyles.searchbarcont_input}`}
652
- onChange={(event) => {
653
- setSearchHeaderInputContext(event.target.value);
654
- }}
655
- />
656
- <button class={` ${header_cssstyles.searchbar_icon_cont}` + ' d-flex align-items-center justify-content-center '}>
657
- <BsSearch color={sectionproperties.searchbaricon_color} size={sectionproperties.searchbaricon_fontsize} />
658
- </button>
659
- <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'headerfullwidth'} actions={actions} />
660
- </div>
661
- </div>
662
- </div>
663
- </div>
664
- {sectionproperties.showfooterphonenumber == 'Show' && (
665
- <div
666
- class={
667
- sectionproperties.btninsearch == 'Show'
668
- ? 'col-xl-2 col-lg-3 d-flex flex-column align-items-center justfiy-content-center'
669
- : 'col-lg-3 d-flex flex-column align-items-center justfiy-content-center'
670
- }
671
- >
672
- <div
673
- class={header_cssstyles.storeinfocontainer + ' row m-0 w-100 d-flex align-items-center justify-content-center cursor-pointer '}
674
- onClick={() => {
675
- window.open('tel:' + authdetailsContext?.CuContactphonenumber, '_blank');
676
- }}
677
- >
678
- <i
679
- class={
680
- langdetect == 'en'
681
- ? header_cssstyles.storeinfotext + ' storeinfotext h-100 d-flex align-items-center justify-content-center mr-2 '
682
- : header_cssstyles.storeinfotext + ' storeinfotext h-100 d-flex align-items-center justify-content-center ml-2 '
683
- }
684
- >
685
- <FiPhone size={30} style={{ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)' }} />
686
- </i>
687
- <div class="d-flex align-items-center flex-column">
688
- <p class={header_cssstyles.storeinfotext + ' m-0 storeinfotext '}>{authdetailsContext?.instinfo?.contactinfo?.mobile}</p>
689
- <p
690
- class="mb-0 w-100"
691
- style={{
692
- textAlign: langdetect == 'en' ? 'right' : 'left',
693
- color: sectionproperties.footerinfotext_secondarycolor,
694
- fontSize: sectionproperties.footerinfotext_secondaryfontsize + 'px',
695
- fontWeight: sectionproperties.footerinfotext_secondaryfontweight,
696
- }}
697
- >
698
- {langdetect == 'en' ? sectionproperties.footerinfotext_en : sectionproperties.footerinfotext_ar}
699
- </p>
700
- </div>
701
- </div>
702
- </div>
703
- )}
704
- <div
705
- class={
706
- sectionproperties.showfooterphonenumber == 'Show'
707
- ? sectionproperties.btninsearch == 'Show'
708
- ? 'col-xl-3 col-lg-3 d-flex align-items-center p-0 pr-0'
709
- : langdetect == 'en'
710
- ? 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pl-0'
711
- : 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pr-0'
712
- : 'col-lg-4 d-flex align-items-center'
713
- }
714
- >
715
- <div
716
- class={
717
- sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide'
718
- ? 'row w-100 m-0 align-items-center justify-content-end plr-1025-0'
719
- : 'row w-100 m-0 align-items-center justify-content-between plr-1025-0'
720
- }
721
- style={{
722
- paddingLeft:
723
- langdetect == 'en'
724
- ? sectionproperties.showfooterphonenumber == 'Show'
725
- ? authdetailsContext.loggedin == true
726
- ? '.3rem'
727
- : '3rem'
728
- : authdetailsContext.loggedin == true
729
- ? '4rem'
730
- : '6rem'
731
- : 0,
732
- paddingRight:
733
- langdetect == 'en'
734
- ? 0
735
- : sectionproperties.showfooterphonenumber == 'Show'
736
- ? authdetailsContext.loggedin == true
737
- ? '1rem'
738
- : '3rem'
739
- : authdetailsContext.loggedin == true
740
- ? '4rem'
741
- : '6rem',
742
- }}
743
- >
744
- <Dropdown>
745
- <Dropdown.Toggle>
746
- {!authdetailsContext.loggedin && (
747
- <div
748
- class={header_cssstyles.user_btnContainer + ' d-flex align-items-center justify-content-end p-0 cursor-pointer pt-1 '}
749
- onClick={() => {
750
- routingcountext(StaticPagesLinksContext.Login);
751
- }}
752
- >
753
- <div class={header_cssstyles.user_btn + ' user_btnbg allcentered p-0 '}>
754
- <BiUser size={sectionproperties.userBtniconfontsize} />
755
- </div>
756
- <p
757
- class={header_cssstyles.loggedinusername + ' user_btn mb-0 p-0 '}
758
- style={{ marginLeft: langdetect == 'en' ? '3px' : 0, marginRight: langdetect == 'en' ? 0 : '3px' }}
759
- >
760
- {lang.login}
761
- </p>
762
- </div>
763
- )}
764
- {authdetailsContext.loggedin && (
765
- <div class={header_cssstyles.loggedinuserbtnContainer + ' allcentered '} sytle={{ position: 'relative' }}>
766
- <div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
767
- <i class={' h-100 allcentered '}>
768
- <BiUser size={sectionproperties.loggedinusericonfontsize} />
769
- </i>
770
- </div>
771
- <div
772
- class="m-0 p-0"
773
- style={{
774
- textAlign: langdetect == 'en' ? 'left' : 'right',
775
- }}
776
- >
777
- <p
778
- class="m-0 p-0"
779
- style={{
780
- color: sectionproperties.greetingtextcolor,
781
- fontSize: sectionproperties.greetingtextfontsize + 'px',
782
- lineHeight: sectionproperties.greetingtextfontsize + 'px',
783
- fontWeight: 400,
784
- }}
785
- >
786
- {lang.hello}
787
- {langdetect == 'en' ? ',' : '،'}
788
- </p>
789
- <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '} style={{ maxWidth: '100px' }}>
790
- {authdetailsContext?.customerinfo?.name}
791
- </p>
792
- </div>
793
- </div>
794
- )}
795
- </Dropdown.Toggle>
796
-
797
- {authdetailsContext.loggedin && (
798
- <Dropdown.Menu style={{ minWidth: '200px' }}>
799
- <Dropdown.Item>
800
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
801
- <span
802
- style={{
803
- color: sectionproperties.greetingtextcolor,
804
- fontSize: sectionproperties.dropdown_fontsize + 'px',
805
-
806
- fontWeight: 400,
807
- }}
808
- >
809
- {lang.hello},
810
- </span>
811
- <p
812
- class={`${header_cssstyles.dropdownitem}` + ' font-weight-600 ml-1 mr-1 text-overflow text-capitalize dropdownitem m-0 p-0 '}
813
- style={{ maxWidth: '120px' }}
814
- onClick={() => {
815
- routingcountext(StaticPagesLinksContext.accountinfo);
816
- }}
817
- >
818
- {authdetailsContext?.customerinfo?.name}
819
- </p>
820
- </div>
821
- </Dropdown.Item>
822
- <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
823
- <Dropdown.Item
824
- onClick={() => {
825
- routingcountext(StaticPagesLinksContext.Ordershistory);
826
- }}
827
- >
828
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
829
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
830
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
831
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
832
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
833
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <HiOutlineShoppingBag />}
834
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
835
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart />}
836
- {sectionproperties.carticonstyle == 'Calendar 1' && <FiCalendar />}
837
-
838
- <span class="ml-2 mr-2">{lang.orderhistory}</span>
839
- </p>
840
- </div>
841
- </Dropdown.Item>
842
- <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
843
- <Dropdown.Item
844
- onClick={() => {
845
- routingcountext(StaticPagesLinksContext.Wishlist);
846
- }}
847
- >
848
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
849
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
850
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart />}
851
- {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
852
- <span class="ml-2 mr-2">{lang.wishlist}</span>
853
- </p>
854
- </div>
855
- </Dropdown.Item>
856
- <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
857
- <Dropdown.Item
858
- onClick={() => {
859
- routingcountext(StaticPagesLinksContext.Policies);
860
- }}
861
- >
862
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
863
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
864
- <AiOutlineSecurityScan />
865
- <span class="ml-2 mr-2">{lang.policies}</span>
866
- </p>
867
- </div>
868
- </Dropdown.Item>
869
- <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
870
- <Dropdown.Item
871
- onClick={() => {
872
- LogoutMutationContext.mutate();
873
- }}
874
- >
875
- <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
876
- <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
877
- <BiLogOutCircle />
878
- <span class="ml-2 mr-2">{lang.logout}</span>
879
- </p>
880
- </div>
881
- </Dropdown.Item>
882
- </Dropdown.Menu>
883
- )}
884
- </Dropdown>
885
- {sectionproperties.favBtnShow == 'Show' && (
886
- <div class="d-flex flex-row p-0 align-items-center">
887
- <div
888
- style={{ position: 'relative' }}
889
- class="cursor-pointer d-flex d-flex align-items-center"
890
- onClick={() => {
891
- routingcountext(StaticPagesLinksContext.Wishlist);
892
- }}
893
- >
894
- <span class={`${header_cssstyles.wishlist_btn}`}>
895
- <i class="h-100 allcentered">
896
- {sectionproperties.faviconshape == 'Heart Shape' && (
897
- <FaRegHeart
898
- style={{
899
- position: 'relative',
900
- }}
901
- />
902
- )}
903
- {sectionproperties.faviconshape == 'Star Shape' && (
904
- <AiFillStar
905
- style={{
906
- position: 'relative',
907
- }}
908
- />
909
- )}
910
- </i>
911
- </span>
912
- <div class={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}`}>
913
- <span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
914
- </div>
915
- </div>
916
- </div>
917
- )}
918
- {sectionproperties.cartBtnShow == 'Show' && (
919
- <div
920
- class={
921
- sectionproperties.btninsearch == 'Show'
922
- ? sectionproperties.showfooterphonenumber == 'Show'
923
- ? 'd-flex d-lg-none flex-row justify-content-end align-items-center'
924
- : 'd-flex flex-row justify-content-end align-items-center'
925
- : 'd-flex flex-row justify-content-end align-items-center'
926
- }
927
- >
928
- <div
929
- class="row w-100 m-0 align-items-center d-flex flex-row justify-content-end"
930
- style={{
931
- position: 'relative',
932
- }}
933
- onClick={() => {
934
- setsidecartnavshowcontext(true);
935
- }}
936
- >
937
- <div style={{ position: 'relative' }} class={`${header_cssstyles.cart_btn}` + ' cursor-pointer d-flex align-items-center justify-content-center '}>
938
- <div class={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
939
- {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
940
- </div>
941
- <i class="h-100 allcentered">
942
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
943
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
944
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
945
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <HiOutlineShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
946
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
947
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
948
- {sectionproperties.carticonstyle == 'Calendar 1' && <FiCalendar size={sectionproperties.cartBtn_iconFontSize} />}
949
- </i>
950
- </div>
951
- <div class={langdetect == 'en' ? 'ml-2 d-flex d-lg-none' : 'mr-2 d-flex d-lg-none'}>
952
- <div class="row m-0 w-100 d-flex align-items-center flex-column justify-content-start">
953
- <p
954
- class="m-0 p-0 w-100"
955
- style={{
956
- textAlign: langdetect == 'en' ? 'left' : 'right',
957
- color: sectionproperties.cartBtnTextcolor,
958
- fontSize: sectionproperties.cartBtnTextfontsize + 'px',
959
- lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
960
- fontWeight: sectionproperties.cartBtnTextfontweight,
961
- textTransform: sectionproperties.cartBtnTexttransform,
962
- cursor: 'pointer',
963
- }}
964
- >
965
- {lang.cart}
966
- </p>
967
- <p
968
- class="m-0 text-left"
969
- style={{
970
- color: sectionproperties.card_secondarycolor,
971
- fontSize: sectionproperties.secondaryfontsize + 'px',
972
- fontWeight: sectionproperties.secondaryfontweight,
973
- cursor: 'pointer',
974
- }}
975
- >
976
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {subtotalcart()} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
977
- </p>
978
- </div>
979
- </div>
980
- </div>
981
- </div>
982
- )}
983
- <div
984
- class="d-flex flex-row justify-content-end align-items-center"
985
- onClick={() => {
986
- if (langdetect == 'en') {
987
- setlang('ar');
988
- } else {
989
- setlang('en');
990
- }
991
- }}
992
- style={{
993
- paddingLeft: sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? (langdetect == 'en' ? '2rem' : 0) : 0,
994
- paddingRight: sectionproperties.favBtnShow == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? (langdetect == 'ar' ? '2rem' : 0) : 0,
995
- }}
996
- >
997
- {langdetect == 'en' && (
998
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
999
- <img src={'https://tabex-co.com/storage/StaticImages/egyptflag.png'} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
1000
- </div>
1001
- )}
1002
- {langdetect == 'ar' && (
1003
- <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
1004
- <img src={'https://tabex-co.com/storage/StaticImages/usflag.png'} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
1005
- </div>
1006
- )}
1007
- </div>
1008
- </div>
1009
- </div>
1010
- </div>
1011
- </div>
1012
- {/* Lower Header */}
1013
- {sectionproperties.showlowerheadersection == 'Show' && (
1014
- <div class="col-lg-12 p-0 d-flex justify-content-center" style={{ background: sectionproperties.uppersection_bgcolor }}>
1015
- <div class={`${header_cssstyles.divider}` + ' '}></div>
1016
- </div>
1017
- )}
1018
- {sectionproperties.showlowerheadersection == 'Show' && (
1019
- <div class={`${header_cssstyles.lowerheadercontainer}` + ' row w-100 m-0 align-items-center px-1025-1 '}>
1020
- {sectionproperties.btninsearch != 'Show' && sectionproperties.generalbtn_show == 'Show' && (
1021
- <div
1022
- class={' col-xl-2 col-lg-3 d-flex align-items-center '}
1023
- onClick={() => {
1024
- setdropdownselect(!dropdownselect);
1025
- }}
1026
- >
1027
- <li class={langdetect == 'en' ? 'dropdown dropdownen w-100' : 'dropdown dropdownar w-100'}>
1028
- <div class={`${header_cssstyles.categorybtn}` + ' m-0 allcentered cursor-pointer '}>
1029
- <i class={`${header_cssstyles.categorybtnicon}` + ' categorybtnicon d-flex align-items-center justify-content-center '}>
1030
- <HiMenuAlt4 size={sectionproperties.icontextfontsize} />
1031
- </i>
1032
- <p class={langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '}>
1033
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
1034
- </p>
1035
- </div>
1036
- <ul class="w-100 mt-2">
1037
- {sectionproperties.fetchparenttype == 'Categories' &&
1038
- authdetailsContext?.instinfo?.instcategories?.map((item, index) => {
1039
- var fetchedarray = authdetailsContext?.instinfo?.instcategories;
1040
- if (item.isshowntocustomers == 1) {
1041
- return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1042
- }
1043
- })}
1044
- {sectionproperties.fetchparenttype == 'Parent Collections' &&
1045
- pcollarray?.map((item, index) => {
1046
- var fetchedarray = pcollarray;
1047
- if (item.isshowntocustomers == 1) {
1048
- return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1049
- }
1050
- })}
1051
- {sectionproperties.fetchparenttype == 'Collections' &&
1052
- authdetailsContext?.instinfo?.instcollections?.map((item, index) => {
1053
- var fetchedarray = authdetailsContext?.instinfo?.instcollections;
1054
- if (item.isshowntocustomers == 1) {
1055
- return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1056
- }
1057
- })}
1058
- </ul>
1059
- </li>
1060
- </div>
1061
- )}
1062
- <div
1063
- class={
1064
- authdetailsContext?.instinfo?.instcurrencies?.length > 1
1065
- ? 'col-lg-8'
1066
- : sectionproperties.btninsearch != 'Show' && sectionproperties.generalbtn_show == 'Show'
1067
- ? 'col-xl-10 col-lg-9 flex-row d-flex align-items-center justify-content-start'
1068
- : 'col-xl-12 col-lg-9 flex-row d-flex align-items-center justify-content-start'
1069
- }
1070
- >
1071
- <div
1072
- class={' scrollhorizontal w-100 align-items-center justify-content-start '}
1073
- style={{
1074
- display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex',
1075
- }}
1076
- >
1077
- {templatepropcontext.pagesnprop.map((item, index) => {
1078
- var activeclass = '';
1079
- var pagedisabled = '';
1080
- if (item.isselected) {
1081
- activeclass = header_cssstyles.navbar_item_active;
1082
- }
1083
- if (item.isnavigation == 1 && item.isactive == 1) {
1084
- return (
1085
- <div
1086
- class={`${activeclass}` + ' cursor-pointer scrollhorizontalcard '}
1087
- onClick={() => {
1088
- routingcountext(item.navigationroute);
1089
- }}
1090
- style={{
1091
- marginRight: langdetect == 'en' ? '25px' : 0,
1092
- marginLeft: langdetect == 'en' ? 0 : '25px',
1093
- }}
1094
- >
1095
- <div class={`${header_cssstyles.navbar_item_text}`}> {langdetect == 'en' ? item.pagename : item.pagename_ar}</div>
1096
- </div>
1097
- );
1098
- }
1099
- })}
1100
- </div>
1101
- {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
1102
- <Subheader
1103
- sectionpropertiesprops={sectionproperties}
1104
- actions={actions}
1105
- subheaderpropertiesprops={{
1106
- subheaderpositionprops: 'in nav',
1107
- paddingLeftprops: '25px',
1108
- paddingRightprops: '25px',
1109
- }}
1110
- />
1111
- )}
1112
- </div>
1113
- {authdetailsContext != undefined && authdetailsContext?.instinfo?.instcurrencies?.length > 1 && (
1114
- <div class={'col-lg-2 d-flex align-items-center justify-content-end '}>
1115
- <Dropdown>
1116
- <Dropdown.Toggle>
1117
- <li class={' d-flex align-items-center justify-content-center '}>
1118
- {langdetect == 'en' && (
1119
- <div class={' row m-0 w-100 d-flex align-items-center '}>
1120
- <FaMoneyBillWave />
1121
- <p class="m-0 p-0 mr-2 ml-2">{authdetailsContext?.currencyname_en}</p>
1122
- <MdKeyboardArrowDown />
1123
- </div>
1124
- )}
1125
- {langdetect == 'ar' && (
1126
- <div class={' row m-0 w-100 d-flex align-items-center '}>
1127
- <FaMoneyBillWave />
1128
- <p class="m-0 p-0 ml-2 mr-2">{authdetailsContext?.currencyname_ar}</p>
1129
- <MdKeyboardArrowDown />
1130
- </div>
1131
- )}
1132
- </li>
1133
- </Dropdown.Toggle>
1134
- <Dropdown.Menu>
1135
- {authdetailsContext?.instinfo?.instcurrencies?.map(function (item, index) {
1136
- return (
1137
- <Dropdown.Item
1138
- onClick={() => {
1139
- setcurrencyfunccontext(item);
1140
- }}
1141
- >
1142
- <div class="row m-0 w-100">
1143
- <div class="col-lg-12 p-0 d-flex justify-content-start">
1144
- <div class={`${header_cssstyles.dropdownitemcontainer}`}>
1145
- <p
1146
- class={'dropdownitem d-flex align-items-center justify-content-center m-0 p-0'}
1147
- style={{
1148
- fontSize: sectionproperties.dropdown_fontsize + 'px',
1149
- fontWeight: sectionproperties.dropdown_fontweight,
1150
- textTransform: sectionproperties.dropdown_texttransform,
1151
- }}
1152
- >
1153
- <FaMoneyBillWave />
1154
- <span class={'ml-2 mr-2'}>{langdetect == 'en' ? item.currencyname_en : item.currencyname_ar}</span>
1155
- </p>
1156
- </div>
1157
- </div>
1158
- {index != authdetailsContext?.instinfo?.instcurrencies?.length - 1 && (
1159
- <div class="col-lg-12 p-0">
1160
- <hr class="m-0" />
1161
- </div>
1162
- )}
1163
- </div>
1164
- </Dropdown.Item>
1165
- );
1166
- })}
1167
- </Dropdown.Menu>
1168
- </Dropdown>
1169
- </div>
1170
- )}
1171
- {sectionproperties.btninsearch == 'Show' && (
1172
- <div
1173
- class={'col-lg-3 d-none d-lg-flex flex-row justify-content-end align-items-center'}
1174
- style={{
1175
- position: 'relative',
1176
- }}
1177
- onClick={() => {
1178
- setsidecartnavshowcontext(true);
1179
- }}
1180
- >
1181
- <div style={{ position: 'relative' }} class={`${header_cssstyles.cart_btn}` + ' cursor-pointer d-flex align-items-center justify-content-end '}>
1182
- <div class={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
1183
- {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
1184
- </div>
1185
- <i class="h-100 allcentered">
1186
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1187
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1188
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
1189
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <HiOutlineShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1190
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
1191
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
1192
- </i>
1193
- </div>
1194
- <div class={langdetect == 'en' ? 'ml-2' : 'mr-2'}>
1195
- <div class="row m-0 w-100 d-flex align-items-center flex-column justify-content-start">
1196
- <p
1197
- class="m-0 p-0 w-100"
1198
- style={{
1199
- textAlign: langdetect == 'en' ? 'left' : 'right',
1200
- color: sectionproperties.cartBtnTextcolor,
1201
- fontSize: sectionproperties.cartBtnTextfontsize + 'px',
1202
- lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
1203
- fontWeight: sectionproperties.cartBtnTextfontweight,
1204
- textTransform: sectionproperties.cartBtnTexttransform,
1205
- cursor: 'pointer',
1206
- }}
1207
- >
1208
- {lang.cart}
1209
- </p>
1210
- <p
1211
- class="m-0 text-left"
1212
- style={{
1213
- color: sectionproperties.card_secondarycolor,
1214
- fontSize: sectionproperties.secondaryfontsize + 'px',
1215
- fontWeight: sectionproperties.secondaryfontweight,
1216
- cursor: 'pointer',
1217
- }}
1218
- >
1219
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {subtotalcart()} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1220
- </p>
1221
- </div>
1222
- </div>
1223
- </div>
1224
- )}
1225
- </div>
1226
- )}
1227
-
1228
- {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
1229
- <div class="col-lg-12 p-0">
1230
- <Subheader
1231
- actions={actions}
1232
- sectionpropertiesprops={sectionproperties}
1233
- subheaderpropertiesprops={{
1234
- subheaderpositionprops: 'Full Width',
1235
- paddingLeftprops: '25px',
1236
- paddingRightprops: '25px',
1237
- }}
1238
- />
1239
- </div>
1240
- )}
1241
- </div>
1242
- <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
1243
- </div>
1244
- // <div
1245
- // class="row w-100 ml-0 mr-0 d-flex justify-content-center"
1246
- // style={{
1247
- // marginTop: sectionproperties.header_marginTop + 'px',
1248
- // marginBottom: sectionproperties.header_marginBottom + 'px',
1249
- // }}
1250
- // >
1251
- // {sectionproperties.youtbtn_show == 'Show' && (
1252
- // <>
1253
- // <a href={'tel:' + authdetailsContext?.CuContactphonenumber} target={'_self'} style={{ position: 'fixed', bottom: 60, right: 10, zIndex: 999999, transition: 'all 0.3s ease-out' }}>
1254
- // <i class={langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'}>
1255
- // <FiPhone size={30} color={sectionproperties.uppersection_iconcolor} style={{ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)' }} />
1256
- // </i>
1257
- // </a>
1258
- // <a
1259
- // href={'https://api.whatsapp.com/send?phone=' + authdetailsContext?.instinfo?.whatsappnumber}
1260
- // target={'_blank'}
1261
- // style={{ position: 'fixed', bottom: 10, right: 10, zIndex: 999999, transition: 'all 0.3s ease-out' }}
1262
- // >
1263
- // <img src={whatsappicon} style={{ width: '40px', height: '40px', cursor: 'pointer' }} />
1264
- // </a>
1265
- // </>
1266
- // )}
1267
- // <div
1268
- // class={`${header_cssstyles.headercontainer}` + ' row ml-0 mr-0 d-flex d-md-none align-items-center '}
1269
- // style={{
1270
- // position: sectionproperties.headerstyles_position,
1271
- // top: 0,
1272
- // }}
1273
- // >
1274
- // {/* Upper Header */}
1275
- // <div class={' col-lg-12 p-0 '}>
1276
- // <div class={header_cssstyles.upperheadersection + ' row w-100 m-0 align-items-center px-1025-1 '}>
1277
- // <div class="col-lg-2 p-0">
1278
- // <div
1279
- // class={`${header_cssstyles.header_logo}` + ' d-flex align-items-center justify-content-center '}
1280
- // style={{ cursor: 'pointer' }}
1281
- // onClick={() => {
1282
- // routingcountext('home');
1283
- // }}
1284
- // >
1285
- // <Imagekitimagecomp
1286
- // urlEndpoint={ikimagecredcontext?.ikimageendpoint}
1287
- // publicKey={ikimagecredcontext?.ikimagepublickey}
1288
- // path={langdetect == 'en' ? logoarrayofobjects[0]?.englishlogo : logoarrayofobjects[0]?.arabiclogo}
1289
- // style={{
1290
- // maxWidth: '100%',
1291
- // maxHeight: '100%',
1292
- // }}
1293
- // />
1294
- // </div>
1295
- // </div>
1296
-
1297
- // <div
1298
- // class={
1299
- // sectionproperties.showfooterphonenumber == 'Show' ? (sectionproperties.btninsearch == 'Show' ? 'col-xl-5 col-lg-4 p-lg-0' : 'col-xl-4 col-lg-3 p-0') : 'col-lg-6 p-0'
1300
- // }
1301
- // style={{
1302
- // position: 'relative',
1303
- // }}
1304
- // >
1305
- // <div class="row m-0 w-100">
1306
- // {sectionproperties.btninsearch == 'Show' && (
1307
- // <div
1308
- // class={'col-xl-3 col-lg-4 p-0 d-flex align-items-center justify-content-start '}
1309
- // onClick={() => {
1310
- // setdropdownselect(!dropdownselect);
1311
- // }}
1312
- // >
1313
- // <div
1314
- // class={`${header_cssstyles.categorybtn}` + ' categoriesdropdown d-flex w-100 align-items-center pl-2 pr-2 '}
1315
- // style={{
1316
- // borderTopRightRadius: langdetect == 'en' ? 0 : '',
1317
- // borderBottomRightRadius: langdetect == 'en' ? 0 : '',
1318
- // borderBottomLeftRadius: langdetect == 'ar' ? 0 : '',
1319
- // borderTopLeftRadius: langdetect == 'ar' ? 0 : '',
1320
- // zIndex: 100,
1321
- // }}
1322
- // >
1323
- // <li class={langdetect == 'en' ? 'dropdown dropdownen w-100' : 'dropdown dropdownar w-100'}>
1324
- // <div class={' m-0 allcentered cursor-pointer px-2 p-lg-0 '}>
1325
- // <div class={'col-lg-10 d-flex justify-content-start m-0 p-0'}>
1326
- // {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
1327
- // </div>
1328
- // <div class="col-lg-2 p-0 h-100 d-flex align-items-center justify-content-end d-xl-flex d-lg-none">
1329
- // <i class="h-100 d-flex align-items-center justify-content-end">
1330
- // {dropdownselect ? <MdKeyboardArrowUp size={25} /> : <MdKeyboardArrowDown size={25} />}
1331
- // </i>
1332
- // </div>
1333
- // </div>
1334
- // <ul
1335
- // class="mt-2"
1336
- // sytle={{
1337
- // width: '200px',
1338
- // }}
1339
- // >
1340
- // {sectionproperties.fetchparenttype == 'Categories' &&
1341
- // authdetailsContext?.instinfo?.instcategories?.map((item, index) => {
1342
- // var fetchedarray = authdetailsContext?.instinfo?.instcategories;
1343
- // if (item.isshowntocustomers == 1) {
1344
- // return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1345
- // }
1346
- // })}
1347
- // {sectionproperties.fetchparenttype == 'Parent Collections' &&
1348
- // pcollarray?.map((item, index) => {
1349
- // var fetchedarray = pcollarray;
1350
- // if (item.isshowntocustomers == 1) {
1351
- // return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1352
- // }
1353
- // })}
1354
- // {sectionproperties.fetchparenttype == 'Collections' &&
1355
- // authdetailsContext?.instinfo?.instcollections?.map((item, index) => {
1356
- // var fetchedarray = authdetailsContext?.instinfo?.instcollections;
1357
- // if (item.isshowntocustomers == 1) {
1358
- // return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1359
- // }
1360
- // })}
1361
- // </ul>
1362
- // </li>
1363
- // </div>
1364
- // </div>
1365
- // )}
1366
- // <div class={sectionproperties.btninsearch == 'Show' ? 'col-xl-9 col-lg-8 p-0 d-flex justify-content-start align-items-center' : 'col-xl-12 p-0 '}>
1367
- // <div
1368
- // class={header_cssstyles.searchbarcont}
1369
- // style={{
1370
- // position: 'relative',
1371
- // borderTopRightRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'ar' ? 0 : '') : '',
1372
- // borderBottomRightRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'ar' ? 0 : '') : '',
1373
- // borderBottomLeftRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'en' ? 0 : '') : '',
1374
- // borderTopLeftRadius: sectionproperties.btninsearch == 'Show' ? (langdetect == 'en' ? 0 : '') : '',
1375
- // }}
1376
- // >
1377
- // <input
1378
- // type="text"
1379
- // placeholder={lang.searchproducts}
1380
- // class={`${header_cssstyles.searchbarcont_input}`}
1381
- // onChange={(event) => {
1382
- // setSearchHeaderInputContext(event.target.value);
1383
- // }}
1384
- // />
1385
- // <button class={` ${header_cssstyles.searchbar_icon_cont}` + ' d-flex align-items-center justify-content-center '}>
1386
- // <BsSearch color={sectionproperties.searchbaricon_color} size={sectionproperties.searchbaricon_fontsize} />
1387
- // </button>
1388
- // <Searchlist sectionpropertiesprops={sectionproperties} srcfromprops={'headerfullwidth'} actions={actions} />
1389
- // </div>
1390
- // </div>
1391
- // </div>
1392
- // </div>
1393
- // {sectionproperties.showfooterphonenumber == 'Show' && (
1394
- // <div
1395
- // class={
1396
- // sectionproperties.btninsearch == 'Show'
1397
- // ? 'col-xl-2 col-lg-3 d-flex flex-column align-items-center justfiy-content-center'
1398
- // : 'col-lg-3 d-flex flex-column align-items-center justfiy-content-center'
1399
- // }
1400
- // >
1401
- // <div
1402
- // class={header_cssstyles.storeinfocontainer + ' row m-0 w-100 d-flex align-items-center justify-content-center cursor-pointer '}
1403
- // onClick={() => {
1404
- // window.open('tel:' + authdetailsContext?.CuContactphonenumber, '_blank');
1405
- // }}
1406
- // >
1407
- // <i
1408
- // class={
1409
- // langdetect == 'en'
1410
- // ? header_cssstyles.storeinfotext + ' storeinfotext h-100 d-flex align-items-center justify-content-center mr-2 '
1411
- // : header_cssstyles.storeinfotext + ' storeinfotext h-100 d-flex align-items-center justify-content-center ml-2 '
1412
- // }
1413
- // >
1414
- // <FiPhone size={30} style={{ transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)' }} />
1415
- // </i>
1416
- // <div class="d-flex align-items-center flex-column">
1417
- // <p class={header_cssstyles.storeinfotext + ' m-0 storeinfotext '}>{authdetailsContext?.instinfo?.contactinfo?.mobile}</p>
1418
- // <p
1419
- // class="mb-0 w-100"
1420
- // style={{
1421
- // textAlign: langdetect == 'en' ? 'right' : 'left',
1422
- // color: sectionproperties.footerinfotext_secondarycolor,
1423
- // fontSize: sectionproperties.footerinfotext_secondaryfontsize + 'px',
1424
- // fontWeight: sectionproperties.footerinfotext_secondaryfontweight,
1425
- // }}
1426
- // >
1427
- // {langdetect == 'en' ? sectionproperties.footerinfotext_en : sectionproperties.footerinfotext_ar}
1428
- // </p>
1429
- // </div>
1430
- // </div>
1431
- // </div>
1432
- // )}
1433
- // <div
1434
- // class={
1435
- // sectionproperties.showfooterphonenumber == 'Show'
1436
- // ? sectionproperties.btninsearch == 'Show'
1437
- // ? 'col-xl-3 col-lg-3 d-flex align-items-center p-0 pr-0'
1438
- // : langdetect == 'en'
1439
- // ? 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pl-0'
1440
- // : 'col-xl-3 col-lg-4 d-flex align-items-center p-0 pr-0'
1441
- // : 'col-lg-4 d-flex align-items-center'
1442
- // }
1443
- // >
1444
- // <div
1445
- // class={'row w-100 m-0 align-items-center justify-content-between plr-1025-0'}
1446
- // style={{
1447
- // paddingLeft:
1448
- // langdetect == 'en'
1449
- // ? sectionproperties.showfooterphonenumber == 'Show'
1450
- // ? authdetailsContext.loggedin == true
1451
- // ? '.3rem'
1452
- // : '3rem'
1453
- // : authdetailsContext.loggedin == true
1454
- // ? '4rem'
1455
- // : '6rem'
1456
- // : 0,
1457
- // paddingRight:
1458
- // langdetect == 'en'
1459
- // ? 0
1460
- // : sectionproperties.showfooterphonenumber == 'Show'
1461
- // ? authdetailsContext.loggedin == true
1462
- // ? '1rem'
1463
- // : '3rem'
1464
- // : authdetailsContext.loggedin == true
1465
- // ? '4rem'
1466
- // : '6rem',
1467
- // }}
1468
- // >
1469
- // <Dropdown>
1470
- // <Dropdown.Toggle>
1471
- // {!authdetailsContext.loggedin && (
1472
- // <div class={header_cssstyles.user_btnContainer + ' d-flex align-items-center justify-content-end p-0 cursor-pointer pt-1 '}>
1473
- // <div class={header_cssstyles.user_btn + ' user_btnbg allcentered p-0 '}>
1474
- // <BiUser size={sectionproperties.userBtniconfontsize} />
1475
- // </div>
1476
- // <p
1477
- // class={header_cssstyles.loggedinusername + ' user_btn mb-0 p-0 '}
1478
- // style={{ marginLeft: langdetect == 'en' ? '3px' : 0, marginRight: langdetect == 'en' ? 0 : '3px' }}
1479
- // >
1480
- // {lang.login}
1481
- // </p>
1482
- // </div>
1483
- // )}
1484
- // {authdetailsContext.loggedin && (
1485
- // <div class={header_cssstyles.loggedinuserbtnContainer + ' allcentered '} sytle={{ position: 'relative' }}>
1486
- // <div class={header_cssstyles.loggedinuserbtn + ' loggedinuserbtn loggedinuserbtnbg ml-2 mr-2 '}>
1487
- // <i class={' h-100 allcentered '}>
1488
- // <BiUser size={sectionproperties.loggedinusericonfontsize} />
1489
- // </i>
1490
- // </div>
1491
- // <div
1492
- // class="m-0 p-0"
1493
- // style={{
1494
- // textAlign: langdetect == 'en' ? 'left' : 'right',
1495
- // }}
1496
- // >
1497
- // <p
1498
- // class="m-0 p-0"
1499
- // style={{
1500
- // color: sectionproperties.greetingtextcolor,
1501
- // fontSize: sectionproperties.greetingtextfontsize + 'px',
1502
- // lineHeight: sectionproperties.greetingtextfontsize + 'px',
1503
- // fontWeight: 400,
1504
- // }}
1505
- // >
1506
- // {lang.hello}
1507
- // {langdetect == 'en' ? ',' : '،'}
1508
- // </p>
1509
- // <p class={header_cssstyles.loggedinusername + ' loggedinuserbtn text-overflow m-0 p-0 '} style={{ maxWidth: '100px' }}>
1510
- // {authdetailsContext?.customerinfo?.name}
1511
- // </p>
1512
- // </div>
1513
- // </div>
1514
- // )}
1515
- // </Dropdown.Toggle>
1516
- // {!authdetailsContext.loggedin && (
1517
- // <Dropdown.Menu>
1518
- // <Dropdown.Item
1519
- // onClick={() => {
1520
- // routingcountext(StaticPagesLinksContext.Login);
1521
- // }}
1522
- // >
1523
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
1524
- // <p class={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
1525
- // <AiOutlineLogin />
1526
- // <span class="ml-2 mr-2">{lang.login}</span>
1527
- // </p>
1528
- // </div>
1529
- // </Dropdown.Item>
1530
- // <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
1531
- // <Dropdown.Item
1532
- // onClick={() => {
1533
- // routingcountext(StaticPagesLinksContext.Signup);
1534
- // }}
1535
- // >
1536
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
1537
- // <p class={`${header_cssstyles.dropdownitem}` + ' d-flex align-items-center dropdownitem m-0 p-0 '}>
1538
- // <AiOutlineUserAdd />
1539
- // <span class="ml-2 mr-2">{lang.signup}</span>
1540
- // </p>
1541
- // </div>
1542
- // </Dropdown.Item>
1543
- // </Dropdown.Menu>
1544
- // )}
1545
- // {authdetailsContext.loggedin && (
1546
- // <Dropdown.Menu style={{ minWidth: '200px' }}>
1547
- // <Dropdown.Item>
1548
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' d-flex align-items-center m-0 p-0 '}>
1549
- // <span
1550
- // style={{
1551
- // color: sectionproperties.greetingtextcolor,
1552
- // fontSize: sectionproperties.dropdown_fontsize + 'px',
1553
-
1554
- // fontWeight: 400,
1555
- // }}
1556
- // >
1557
- // {lang.hello},
1558
- // </span>
1559
- // <p
1560
- // class={`${header_cssstyles.dropdownitem}` + ' font-weight-600 ml-1 mr-1 text-overflow text-capitalize dropdownitem m-0 p-0 '}
1561
- // style={{ maxWidth: '120px' }}
1562
- // onClick={() => {
1563
- // routingcountext(StaticPagesLinksContext.accountinfo);
1564
- // }}
1565
- // >
1566
- // {authdetailsContext?.customerinfo?.name}
1567
- // </p>
1568
- // </div>
1569
- // </Dropdown.Item>
1570
- // <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
1571
- // <Dropdown.Item
1572
- // onClick={() => {
1573
- // routingcountext(StaticPagesLinksContext.Ordershistory);
1574
- // }}
1575
- // >
1576
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
1577
- // <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
1578
- // {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag />}
1579
- // {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag />}
1580
- // {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag />}
1581
- // {sectionproperties.carticonstyle == 'Shopping bag 4' && <HiOutlineShoppingBag />}
1582
- // {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart />}
1583
- // {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart />}
1584
- // <span class="ml-2 mr-2">{lang.orderhistory}</span>
1585
- // </p>
1586
- // </div>
1587
- // </Dropdown.Item>
1588
- // <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
1589
- // <Dropdown.Item
1590
- // onClick={() => {
1591
- // routingcountext(StaticPagesLinksContext.Wishlist);
1592
- // }}
1593
- // >
1594
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
1595
- // <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
1596
- // {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart />}
1597
- // {sectionproperties.faviconshape == 'Star Shape' && <AiFillStar />}
1598
- // <span class="ml-2 mr-2">{lang.wishlist}</span>
1599
- // </p>
1600
- // </div>
1601
- // </Dropdown.Item>
1602
- // <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
1603
- // <Dropdown.Item
1604
- // onClick={() => {
1605
- // routingcountext(StaticPagesLinksContext.Policies);
1606
- // }}
1607
- // >
1608
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
1609
- // <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
1610
- // <AiOutlineSecurityScan />
1611
- // <span class="ml-2 mr-2">{lang.policies}</span>
1612
- // </p>
1613
- // </div>
1614
- // </Dropdown.Item>
1615
- // <Dropdown.Divider style={{ marginBottom: 0, marginTop: 0 }}></Dropdown.Divider>
1616
- // <Dropdown.Item
1617
- // onClick={() => {
1618
- // LogoutMutationContext.mutate();
1619
- // }}
1620
- // >
1621
- // <div class={`${header_cssstyles.dropdownitemcontainer}` + ' m-0 p-0 d-flex align-items-center '}>
1622
- // <p class={`${header_cssstyles.dropdownitem}` + ' dropdownitem d-flex align-items-center m-0 p-0 '}>
1623
- // <BiLogOutCircle />
1624
- // <span class="ml-2 mr-2">{lang.logout}</span>
1625
- // </p>
1626
- // </div>
1627
- // </Dropdown.Item>
1628
- // </Dropdown.Menu>
1629
- // )}
1630
- // </Dropdown>
1631
- // <div class="d-flex flex-row p-0 align-items-center">
1632
- // <div
1633
- // style={{ position: 'relative' }}
1634
- // class="cursor-pointer d-flex d-flex align-items-center"
1635
- // onClick={() => {
1636
- // routingcountext(StaticPagesLinksContext.Wishlist);
1637
- // }}
1638
- // >
1639
- // <span class={`${header_cssstyles.wishlist_btn}`}>
1640
- // <i class="h-100 allcentered">
1641
- // {sectionproperties.faviconshape == 'Heart Shape' && (
1642
- // <FaRegHeart
1643
- // style={{
1644
- // position: 'relative',
1645
- // }}
1646
- // />
1647
- // )}
1648
- // {sectionproperties.faviconshape == 'Star Shape' && (
1649
- // <AiFillStar
1650
- // style={{
1651
- // position: 'relative',
1652
- // }}
1653
- // />
1654
- // )}
1655
- // </i>
1656
- // </span>
1657
- // <div class={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.wishlistbadge}`}>
1658
- // <span> {favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length}</span>
1659
- // </div>
1660
- // </div>
1661
- // </div>
1662
- // <div
1663
- // class={
1664
- // sectionproperties.btninsearch == 'Show'
1665
- // ? sectionproperties.showfooterphonenumber == 'Show'
1666
- // ? 'd-flex d-lg-none flex-row justify-content-end align-items-center'
1667
- // : 'd-flex flex-row justify-content-end align-items-center'
1668
- // : 'd-flex flex-row justify-content-end align-items-center'
1669
- // }
1670
- // >
1671
- // <div
1672
- // class="row w-100 m-0 align-items-center d-flex flex-row justify-content-end"
1673
- // style={{
1674
- // position: 'relative',
1675
- // }}
1676
- // onClick={() => {
1677
- // setsidecartnavshowcontext(true);
1678
- // }}
1679
- // >
1680
- // <div style={{ position: 'relative' }} class={`${header_cssstyles.cart_btn}` + ' cursor-pointer d-flex align-items-center justify-content-center '}>
1681
- // <div class={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
1682
- // {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
1683
- // </div>
1684
- // <i class="h-100 allcentered">
1685
- // {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1686
- // {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1687
- // {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
1688
- // {sectionproperties.carticonstyle == 'Shopping bag 4' && <HiOutlineShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1689
- // {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
1690
- // {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
1691
- // </i>
1692
- // </div>
1693
- // <div class={langdetect == 'en' ? 'ml-2 d-flex d-lg-none' : 'mr-2 d-flex d-lg-none'}>
1694
- // <div class="row m-0 w-100 d-flex align-items-center flex-column justify-content-start">
1695
- // <p
1696
- // class="m-0 p-0 w-100"
1697
- // style={{
1698
- // textAlign: langdetect == 'en' ? 'left' : 'right',
1699
- // color: sectionproperties.cartBtnTextcolor,
1700
- // fontSize: sectionproperties.cartBtnTextfontsize + 'px',
1701
- // lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
1702
- // fontWeight: sectionproperties.cartBtnTextfontweight,
1703
- // textTransform: sectionproperties.cartBtnTexttransform,
1704
- // cursor: 'pointer',
1705
- // }}
1706
- // >
1707
- // {lang.cart}
1708
- // </p>
1709
- // <p
1710
- // class="m-0 text-left"
1711
- // style={{
1712
- // color: sectionproperties.card_secondarycolor,
1713
- // fontSize: sectionproperties.secondaryfontsize + 'px',
1714
- // fontWeight: sectionproperties.secondaryfontweight,
1715
- // cursor: 'pointer',
1716
- // }}
1717
- // >
1718
- // {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {subtotalcart()} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1719
- // </p>
1720
- // </div>
1721
- // </div>
1722
- // </div>
1723
- // </div>
1724
- // <div
1725
- // class="d-flex flex-row justify-content-end align-items-center"
1726
- // onClick={() => {
1727
- // if (langdetect == 'en') {
1728
- // setlang('ar');
1729
- // } else {
1730
- // setlang('en');
1731
- // }
1732
- // }}
1733
- // >
1734
- // {langdetect == 'en' && (
1735
- // <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
1736
- // <img src={egyptflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
1737
- // </div>
1738
- // )}
1739
- // {langdetect == 'ar' && (
1740
- // <div class={`${header_cssstyles.languagecontainer}` + ' row m-0 w-100 d-flex align-items-center '}>
1741
- // <img src={usflag} style={{ maxWidth: '2.5vh', maxHeight: '2.5vh' }} />
1742
- // </div>
1743
- // )}
1744
- // </div>
1745
- // </div>
1746
- // </div>
1747
- // </div>
1748
- // </div>
1749
- // {/* Lower Header */}
1750
- // {sectionproperties.showlowerheadersection == 'Show' && (
1751
- // <div class="col-lg-12 p-0 d-flex justify-content-center" style={{ background: sectionproperties.uppersection_bgcolor }}>
1752
- // <div class={`${header_cssstyles.divider}` + ' '}></div>
1753
- // </div>
1754
- // )}
1755
- // {sectionproperties.showlowerheadersection == 'Show' && (
1756
- // <div class={`${header_cssstyles.lowerheadercontainer}` + ' row w-100 m-0 align-items-center px-1025-1 '}>
1757
- // {sectionproperties.btninsearch != 'Show' && (
1758
- // <div
1759
- // class={' col-xl-2 col-lg-3 d-flex align-items-center '}
1760
- // onClick={() => {
1761
- // setdropdownselect(!dropdownselect);
1762
- // }}
1763
- // >
1764
- // <li class={langdetect == 'en' ? 'dropdown dropdownen w-100' : 'dropdown dropdownar w-100'}>
1765
- // <div class={`${header_cssstyles.categorybtn}` + ' m-0 allcentered cursor-pointer '}>
1766
- // <i class={`${header_cssstyles.categorybtnicon}` + ' categorybtnicon d-flex align-items-center justify-content-center '}>
1767
- // <HiMenuAlt4 size={sectionproperties.icontextfontsize} />
1768
- // </i>
1769
- // <p class={langdetect == 'en' ? ' m-0 p-0 ml-2' : ' m-0 p-0 mr-2 '}>
1770
- // {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
1771
- // </p>
1772
- // </div>
1773
- // <ul class="w-100 mt-2">
1774
- // {sectionproperties.fetchparenttype == 'Categories' &&
1775
- // authdetailsContext?.instinfo?.instcategories?.map((item, index) => {
1776
- // var fetchedarray = authdetailsContext?.instinfo?.instcategories;
1777
- // if (item.isshowntocustomers == 1) {
1778
- // return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1779
- // }
1780
- // })}
1781
- // {sectionproperties.fetchparenttype == 'Parent Collections' &&
1782
- // pcollarray?.map((item, index) => {
1783
- // var fetchedarray = pcollarray;
1784
- // if (item.isshowntocustomers == 1) {
1785
- // return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1786
- // }
1787
- // })}
1788
- // {sectionproperties.fetchparenttype == 'Collections' &&
1789
- // authdetailsContext?.instinfo?.instcollections?.map((item, index) => {
1790
- // var fetchedarray = authdetailsContext?.instinfo?.instcollections;
1791
- // if (item.isshowntocustomers == 1) {
1792
- // return <div class="w-100">{ButtonDropdown(item, index, fetchedarray)}</div>;
1793
- // }
1794
- // })}
1795
- // </ul>
1796
- // </li>
1797
- // </div>
1798
- // )}
1799
- // <div
1800
- // class={
1801
- // sectionproperties.btninsearch != 'Show'
1802
- // ? 'col-xl-10 col-lg-9 flex-row d-flex align-items-center justify-content-start'
1803
- // : 'col-xl-12 col-lg-9 flex-row d-flex align-items-center justify-content-start'
1804
- // }
1805
- // >
1806
- // <div
1807
- // class={' scrollhorizontal w-100 align-items-center justify-content-start '}
1808
- // style={{
1809
- // display: sectionproperties.subheaderposition == 'Besides Top Navigation' ? 'none' : 'flex',
1810
- // }}
1811
- // >
1812
- // {templatepropcontext.pagesnprop.map((item, index) => {
1813
- // var activeclass = '';
1814
- // var pagedisabled = '';
1815
- // if (item.isselected) {
1816
- // activeclass = header_cssstyles.navbar_item_active;
1817
- // }
1818
- // if (item.isnavigation == 1 && item.isactive == 1) {
1819
- // return (
1820
- // <div
1821
- // class={`${activeclass}` + ' cursor-pointer scrollhorizontalcard '}
1822
- // onClick={() => {
1823
- // routingcountext(item.navigationroute);
1824
- // }}
1825
- // style={{
1826
- // marginRight: langdetect == 'en' ? '25px' : 0,
1827
- // marginLeft: langdetect == 'en' ? 0 : '25px',
1828
- // }}
1829
- // >
1830
- // <div class={`${header_cssstyles.navbar_item_text}`}> {langdetect == 'en' ? item.pagename : item.pagename_ar}</div>
1831
- // </div>
1832
- // );
1833
- // }
1834
- // })}
1835
- // </div>
1836
- // {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Besides Top Navigation' && (
1837
- // <Subheader
1838
- // sectionpropertiesprops={sectionproperties}
1839
- // actions={actions}
1840
- // subheaderpropertiesprops={{
1841
- // subheaderpositionprops: 'in nav',
1842
- // paddingLeftprops: '25px',
1843
- // paddingRightprops: '25px',
1844
- // }}
1845
- // />
1846
- // )}
1847
- // </div>
1848
- // {sectionproperties.btninsearch == 'Show' && (
1849
- // <div
1850
- // class={'col-lg-3 d-none d-lg-flex flex-row justify-content-end align-items-center'}
1851
- // style={{
1852
- // position: 'relative',
1853
- // }}
1854
- // onClick={() => {
1855
- // setsidecartnavshowcontext(true);
1856
- // }}
1857
- // >
1858
- // <div style={{ position: 'relative' }} class={`${header_cssstyles.cart_btn}` + ' cursor-pointer d-flex align-items-center justify-content-end '}>
1859
- // <div class={`${header_cssstyles.badge_counter_header_notifications} ${header_cssstyles.cartbadge}`}>
1860
- // {fetchcustomercartQueryContext?.data?.data?.customercart != null ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.length : 0}
1861
- // </div>
1862
- // <i class="h-100 allcentered">
1863
- // {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1864
- // {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1865
- // {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag size={sectionproperties.cartBtn_iconFontSize} />}
1866
- // {sectionproperties.carticonstyle == 'Shopping bag 4' && <HiOutlineShoppingBag size={sectionproperties.cartBtn_iconFontSize} />}
1867
- // {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
1868
- // {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
1869
- // </i>
1870
- // </div>
1871
- // <div class={langdetect == 'en' ? 'ml-2' : 'mr-2'}>
1872
- // <div class="row m-0 w-100 d-flex align-items-center flex-column justify-content-start">
1873
- // <p
1874
- // class="m-0 p-0 w-100"
1875
- // style={{
1876
- // textAlign: langdetect == 'en' ? 'left' : 'right',
1877
- // color: sectionproperties.cartBtnTextcolor,
1878
- // fontSize: sectionproperties.cartBtnTextfontsize + 'px',
1879
- // lineHeight: sectionproperties.cartBtnTextfontsize + 'px',
1880
- // fontWeight: sectionproperties.cartBtnTextfontweight,
1881
- // textTransform: sectionproperties.cartBtnTexttransform,
1882
- // cursor: 'pointer',
1883
- // }}
1884
- // >
1885
- // {lang.cart}
1886
- // </p>
1887
- // <p
1888
- // class="m-0 text-left"
1889
- // style={{
1890
- // color: sectionproperties.card_secondarycolor,
1891
- // fontSize: sectionproperties.secondaryfontsize + 'px',
1892
- // fontWeight: sectionproperties.secondaryfontweight,
1893
- // cursor: 'pointer',
1894
- // }}
1895
- // >
1896
- // {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {subtotalcart()} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1897
- // </p>
1898
- // </div>
1899
- // </div>
1900
- // </div>
1901
- // )}
1902
- // </div>
1903
- // )}
1904
-
1905
- // {sectionproperties.showhidesubheader == 'Show' && sectionproperties.subheaderposition == 'Full Width' && (
1906
- // <div class="col-lg-12 p-0">
1907
- // <Subheader
1908
- // actions={actions}
1909
- // sectionpropertiesprops={sectionproperties}
1910
- // subheaderpropertiesprops={{
1911
- // subheaderpositionprops: 'Full Width',
1912
- // paddingLeftprops: '25px',
1913
- // paddingRightprops: '25px',
1914
- // }}
1915
- // />
1916
- // </div>
1917
- // )}
1918
- // </div>
1919
- // <Headerresponsive sectionpropertiesprops={sectionproperties} actions={actions} />
1920
- // </div>
1921
- );
1922
- };
1923
- export default Header8;