tabexseriescomponents 0.2.1279 → 0.2.1281

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 (389) hide show
  1. package/dist/index.cjs.js +277 -0
  2. package/dist/index.esm.js +277 -0
  3. package/dist/index.umd.js +277 -0
  4. package/package.json +1 -1
  5. package/srcbefore27-11/Contexts/LanguageContext.jsx +0 -408
  6. package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +0 -36
  7. package/srcbefore27-11/Imagekitconfig copy.jsx +0 -46
  8. package/srcbefore27-11/Imagekitconfig.jsx +0 -178
  9. package/srcbefore27-11/StylesJS/Customstyles.js +0 -456
  10. package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -538
  11. package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +0 -299
  12. package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  13. package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  14. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  15. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +0 -733
  16. package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  17. package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  18. package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  19. package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +0 -1074
  20. package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  21. package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -293
  22. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +0 -512
  23. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +0 -513
  24. package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  25. package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  26. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  27. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -184
  28. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  29. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -208
  30. package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
  31. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
  32. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -145
  33. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
  34. package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  35. package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -605
  36. package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -817
  37. package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  38. package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  39. package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  40. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  41. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
  42. package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  43. package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  44. package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  45. package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  46. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  47. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  48. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  49. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  50. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  51. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -731
  52. package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  53. package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  54. package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -138
  55. package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
  56. package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -600
  57. package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  58. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  59. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -2321
  60. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -1311
  61. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +0 -1292
  62. package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  63. package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  64. package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
  65. package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  66. package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +0 -660
  67. package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -759
  68. package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  69. package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +0 -731
  70. package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +0 -414
  71. package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
  72. package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +0 -776
  73. package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  74. package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +0 -430
  75. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +0 -1970
  76. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +0 -2015
  77. package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  78. package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -582
  79. package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -1165
  80. package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -646
  81. package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  82. package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -332
  83. package/srcbefore27-11/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  84. package/srcbefore27-11/TabexComponents/Generalfiles/images/noimage.png +0 -0
  85. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  86. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  87. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  88. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  89. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  90. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  91. package/srcbefore27-11/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  92. package/srcbefore27-11/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  93. package/srcbefore27-11/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  94. package/srcbefore27-11/TabexComponents/Generalfiles/images/usflag.png +0 -0
  95. package/srcbefore27-11/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  96. package/srcbefore27-11/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1264
  97. package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +0 -375
  98. package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1056
  99. package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1498
  100. package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1289
  101. package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  102. package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -907
  103. package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +0 -358
  104. package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -875
  105. package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  106. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  107. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +0 -3414
  108. package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -777
  109. package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -933
  110. package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -710
  111. package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  112. package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -1347
  113. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1566
  114. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  115. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  116. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
  117. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -7163
  118. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  119. package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -941
  120. package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -80
  121. package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +0 -846
  122. package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -1198
  123. package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +0 -385
  124. package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -784
  125. package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1186
  126. package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -3692
  127. package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -266
  128. package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -860
  129. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -950
  130. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +0 -1052
  131. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
  132. package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  133. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  134. package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +0 -610
  135. package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1049
  136. package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1095
  137. package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -979
  138. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  139. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  140. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -872
  141. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +0 -895
  142. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  143. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  144. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
  145. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  146. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  147. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -421
  148. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
  149. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
  150. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -822
  151. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +0 -789
  152. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +0 -787
  153. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
  154. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  155. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
  156. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -295
  157. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +0 -120
  158. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -119
  159. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
  160. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  161. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -489
  162. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  163. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  164. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -633
  165. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -509
  166. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  167. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  168. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  169. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -2323
  170. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
  171. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
  172. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
  173. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
  174. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +0 -2065
  175. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
  176. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  177. package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  178. package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -966
  179. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
  180. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -1577
  181. package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -596
  182. package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  183. package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
  184. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  185. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -394
  186. package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +0 -174
  187. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  188. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -651
  189. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
  190. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +0 -1017
  191. package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  192. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -3027
  193. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  194. package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +0 -103
  195. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +0 -49
  196. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  197. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -384
  198. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +0 -1576
  199. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -1989
  200. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  201. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  202. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  203. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  204. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -474
  205. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  206. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -665
  207. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  208. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  209. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
  210. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  211. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  212. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -741
  213. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +0 -423
  214. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  215. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -636
  216. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
  217. package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -234
  218. package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -306
  219. package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -364
  220. package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -1000
  221. package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  222. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  223. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -2506
  224. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  225. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +0 -1999
  226. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  227. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  228. package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +0 -79
  229. package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
  230. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  231. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  232. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +0 -3459
  233. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
  234. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
  235. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
  236. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  237. package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
  238. package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  239. package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  240. package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  241. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  242. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +0 -616
  243. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -693
  244. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +0 -173
  245. package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1831
  246. package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  247. package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
  248. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  249. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  250. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -268
  251. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -190
  252. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  253. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -224
  254. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +0 -136
  255. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -347
  256. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -262
  257. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -5566
  258. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  259. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
  260. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
  261. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  262. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +0 -3101
  263. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -3047
  264. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +0 -2103
  265. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +0 -2189
  266. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +0 -2166
  267. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +0 -2714
  268. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -2206
  269. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +0 -1158
  270. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -1117
  271. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +0 -1043
  272. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +0 -1040
  273. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -905
  274. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  275. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  276. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
  277. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
  278. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
  279. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
  280. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
  281. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
  282. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
  283. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
  284. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
  285. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
  286. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
  287. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
  288. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -928
  289. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
  290. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
  291. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
  292. package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
  293. package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -346
  294. package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -367
  295. package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -222
  296. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  297. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  298. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1505
  299. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +0 -1476
  300. package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  301. package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
  302. package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -219
  303. package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  304. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  305. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  306. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  307. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  308. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  309. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
  310. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
  311. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  312. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  313. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  314. package/srcbefore27-11/button.jsx +0 -40
  315. package/srcbefore27-11/index.jsx +0 -353
  316. package/srcbefore27-11/styles/Home.module.css +0 -129
  317. package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +0 -14
  318. package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  319. package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +0 -189
  320. package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  321. package/srcbefore27-11/styles/cards/Productcard6.module.css +0 -9
  322. package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +0 -94
  323. package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  324. package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  325. package/srcbefore27-11/styles/cards/card23.module.css +0 -60
  326. package/srcbefore27-11/styles/cards/categorycard.module.css +0 -84
  327. package/srcbefore27-11/styles/cards/categorycard3.module.css +0 -50
  328. package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +0 -40
  329. package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +0 -79
  330. package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +0 -139
  331. package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +0 -18
  332. package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
  333. package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  334. package/srcbefore27-11/styles/general/bootstrap.css +0 -4763
  335. package/srcbefore27-11/styles/general/dropdown.css +0 -206
  336. package/srcbefore27-11/styles/general/editorbardropdown.module.css +0 -94
  337. package/srcbefore27-11/styles/general/filter.module.css +0 -108
  338. package/srcbefore27-11/styles/general/form.module.css +0 -255
  339. package/srcbefore27-11/styles/general/general.module.css +0 -872
  340. package/srcbefore27-11/styles/general/image-gallery.css +0 -531
  341. package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +0 -52
  342. package/srcbefore27-11/styles/general/react-phone-input-2.module.css +0 -927
  343. package/srcbefore27-11/styles/general/scrollbtn.module.css +0 -22
  344. package/srcbefore27-11/styles/general/slick.module.css +0 -166
  345. package/srcbefore27-11/styles/general/tabs.module.css +0 -119
  346. package/srcbefore27-11/styles/general/workplaceeditor.module.css +0 -328
  347. package/srcbefore27-11/styles/globals.css +0 -26
  348. package/srcbefore27-11/styles/headers/CTAHeader.module.css +0 -40
  349. package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  350. package/srcbefore27-11/styles/headers/Gotoheader.module.css +0 -87
  351. package/srcbefore27-11/styles/headers/Header7.module.css +0 -50
  352. package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +0 -86
  353. package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  354. package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  355. package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  356. package/srcbefore27-11/styles/headers/NewHeader.module.css +0 -101
  357. package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +0 -62
  358. package/srcbefore27-11/styles/headers/Sideheader.module.css +0 -108
  359. package/srcbefore27-11/styles/headers/Simpleheader.module.css +0 -102
  360. package/srcbefore27-11/styles/headers/classicheader.module.css +0 -16
  361. package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +0 -9
  362. package/srcbefore27-11/styles/headers/dropdown.css +0 -0
  363. package/srcbefore27-11/styles/headers/header4.module.css +0 -175
  364. package/srcbefore27-11/styles/headers/header5.module.css +0 -30
  365. package/srcbefore27-11/styles/headers/header_contactinfo.module.css +0 -53
  366. package/srcbefore27-11/styles/headers/headerresturant.module.css +0 -89
  367. package/srcbefore27-11/styles/headers/modernheader.module.css +0 -45
  368. package/srcbefore27-11/styles/headers/stylishheader.module.css +0 -24
  369. package/srcbefore27-11/styles/headers/subheader.module.css +0 -114
  370. package/srcbefore27-11/styles/headers/threetieredheader.module.css +0 -91
  371. package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +0 -4
  372. package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +0 -17
  373. package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  374. package/srcbefore27-11/styles/sections/Freetext.module.css +0 -18
  375. package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +0 -49
  376. package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  377. package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  378. package/srcbefore27-11/styles/staticpages/accordion.module.css +0 -9
  379. package/srcbefore27-11/styles/staticpages/cart.module.css +0 -108
  380. package/srcbefore27-11/styles/staticpages/dropdown.css +0 -196
  381. package/srcbefore27-11/styles/staticpages/filter.module.css +0 -139
  382. package/srcbefore27-11/styles/staticpages/image-gallery.css +0 -481
  383. package/srcbefore27-11/styles/staticpages/login.module.css +0 -155
  384. package/srcbefore27-11/styles/staticpages/productinfo.module.css +0 -54
  385. package/srcbefore27-11/styles/staticpages/shop.module.css +0 -191
  386. package/srcbefore27-11/styles/staticpages/signup.module.css +0 -250
  387. package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +0 -129
  388. package/srcbefore27-11/styles/staticpages/viewcart.module.css +0 -129
  389. package/srcbefore27-11/styles/staticpages/wishlist.module.css +0 -29
@@ -1,1540 +0,0 @@
1
- import React, { useEffect, useState, useContext, createRef } from 'react';
2
- import generalstyles from '../../../../styles/general/general.module.css';
3
- import { css } from 'glamor';
4
- import Filter from '../../../StaticPages/Filter/Filter.jsx';
5
- import { useInView } from 'react-intersection-observer';
6
- import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
7
- import { serverbaselink } from '../../../../../Env';
8
- import { FaArrowAltCircleRight } from '@react-icons/all-files/fa/FaArrowAltCircleRight';
9
- import { FaArrowAltCircleLeft } from '@react-icons/all-files/fa/FaArrowAltCircleLeft';
10
- import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
11
- import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
12
- import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';
13
- import { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';
14
- import { HiOutlineArrowRight } from '@react-icons/all-files/hi/HiOutlineArrowRight';
15
- import { HiOutlineArrowLeft } from '@react-icons/all-files/hi/HiOutlineArrowLeft';
16
- import ReactPaginate from 'react-paginate';
17
-
18
- const CardsSection = (props) => {
19
- const refscr = createRef();
20
- const { ref, inView } = useInView();
21
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
22
- const lang = props.actions.lang;
23
- const langdetect = props.actions.langdetect;
24
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
25
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
26
- const routingcountext = props.actions.routingcountext;
27
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28
- const ProductFilterObjContext = props.actions.ProductFilterObjContext;
29
- const setProductFilterObjContext = props.actions.setProductFilterObjContext;
30
- const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
31
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
32
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
33
- const fetchProductsQuery = props.actions.fetchProductsQuery;
34
- const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
35
- const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
36
- const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
37
- const setfetchingtype = props.actions.setfetchingtype;
38
- const fetchingtype = props.actions.fetchingtype;
39
- const addtofavoritescontext = props.actions.addtofavoritescontext;
40
- const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
41
- const FetchVendorsQuery = props.actions.FetchVendorsQuery;
42
- const ikimagecredcontext = props.actions.ikimagecredcontext;
43
- const [openFilterSlider, setopenFilterSlider] = useState(false);
44
- const actions = props.actions;
45
- const [sectionproperties, setsectionproperties] = useState('');
46
- const [cardsarray, setcardsarray] = useState([]);
47
- const [sectionitem, setsectionitem] = useState('');
48
- const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
49
- const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
50
- // React.useEffect(() => {
51
- // if (inView) {
52
- // fetchProductsQuery.fetchNextPage();
53
- // }
54
- // }, [inView]);
55
- useEffect(() => {
56
- var productfilerobjtemp = ProductFilterObjContext;
57
- if (props.filterparamsprops != undefined) {
58
- var filterpar = decodeURIComponent(props.filterparamsprops);
59
- var filterparsed = JSON.parse(filterpar);
60
-
61
- if (filterparsed != undefined) {
62
- productfilerobjtemp = filterparsed;
63
- setProductFilterObjContext(filterparsed);
64
- }
65
- }
66
-
67
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
68
- if (sectionitem.sectionid == props.sectionidprops) {
69
- var secpropobj = {};
70
- setsectionitem(sectionitem);
71
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
72
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
73
- });
74
- setsectionproperties({ ...secpropobj });
75
-
76
- if (props.srcfromprops == 'GeneralProductsComponent') {
77
- setfetchingtype('products');
78
- var lcproductfetchingtype = 'Random';
79
-
80
- if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
81
- lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
82
- }
83
- setProductsFetchingTypeSectionObj({
84
- productfetchingtype: lcproductfetchingtype,
85
- collectionid: props.collectionidprops,
86
- grouptype: props.grouptypeprops,
87
- grouptyperefid: props.grouptyperefidprops,
88
- });
89
- } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
90
- setfetchingtype(props.grouptypeprops);
91
- } else if (props.srcfromprops == 'Innervendor') {
92
- setfetchingtype('vendors');
93
- } else {
94
- setfetchingtype(sectionitem.fetchingtype);
95
- setProductsFetchingTypeSectionObj({
96
- productfetchingtype: sectionitem.productsfetchingtype,
97
- collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
98
- grouptype: props.grouptypeprops,
99
- grouptyperefid: props.grouptyperefidprops,
100
- });
101
- }
102
- }
103
- });
104
- }, [StatePagePropertiesContext]);
105
- useEffect(() => {
106
- if (sectionproperties.length != 0) {
107
- if (cardsarray.length == 0) {
108
- if (fetchingtype == 'collections') {
109
- if (fetchcollectionsQueryContext.isSuccess) {
110
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
111
- }
112
- } else if (fetchingtype == 'products') {
113
- if (fetchProductsQuery.isSuccess) {
114
- var allpagesarr = [];
115
- fetchProductsQuery?.data?.data?.products?.forEach((item) => {
116
- allpagesarr.push(item);
117
- });
118
- cardobjassigner(allpagesarr);
119
- }
120
- } else if (fetchingtype == 'vendors') {
121
- if (FetchVendorsQuery.isSuccess) {
122
- cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
123
- }
124
- }
125
- }
126
- }
127
- }, [sectionproperties]);
128
- useEffect(() => {
129
- if (fetchingtype?.length != 0) {
130
- var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
131
- if (fetchingtype == 'collections') {
132
- if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
133
- setParentCollectionsForCollectionQueryArr('all');
134
- } else {
135
- setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
136
- }
137
- }
138
- if (fetchingtype == 'products') {
139
- var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
140
- tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
141
- if (
142
- ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
143
- ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
144
- ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
145
- ) {
146
- } else {
147
- if (tempfetchproductsfilerobjcontext.collections != undefined) {
148
- tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
149
- }
150
- }
151
- tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
152
- tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
153
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
154
- }
155
- if (fetchingtype == 'categories') {
156
- if (fetchAuthorizationQueryContext?.isSuccess) {
157
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
158
- cardobjassigner(categories);
159
- }
160
- }
161
-
162
- if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
163
- if (fetchAuthorizationQueryContext?.isSuccess) {
164
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
165
- var parentcollections = [];
166
- categories?.forEach(function (catitem, catindex) {
167
- catitem?.parentcolletions.forEach(function (parentcolitem) {
168
- parentcolitem.categoryid = catitem.categoryid;
169
- parentcollections.push(parentcolitem);
170
- });
171
- });
172
- if (fetchingtype == 'parentcollections') {
173
- if (
174
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
175
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
176
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
177
- ) {
178
- var arrafterfilter = [];
179
- parentcollections.forEach(function (parentcolitem, parcolindex) {
180
- if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
181
- arrafterfilter.push(parentcolitem);
182
- }
183
- });
184
- parentcollections = arrafterfilter;
185
- }
186
- }
187
- if (fetchingtype == 'innercategories') {
188
- var arrafterfilter = [];
189
- parentcollections.forEach(function (parentcolitem, parcolindex) {
190
- if (parentcolitem.categoryid == props.collectionidprops) {
191
- arrafterfilter.push(parentcolitem);
192
- }
193
- });
194
- parentcollections = arrafterfilter;
195
- }
196
-
197
- cardobjassigner(parentcollections);
198
- }
199
- } else if (fetchingtype == 'innerparentcollections') {
200
- if (fetchAuthorizationQueryContext?.isSuccess) {
201
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
202
- var collections = [];
203
- categories?.forEach(function (catitem, catindex) {
204
- catitem?.parentcolletions.forEach(function (parentcolitem) {
205
- parentcolitem.categoryid = catitem.categoryid;
206
- parentcolitem?.collections?.forEach(function (collitem, colindex) {
207
- collitem.parentcollectionid = parentcolitem.parentcollectionid;
208
- collections.push(collitem);
209
- });
210
- });
211
- });
212
- if (fetchingtype == 'innerparentcollections') {
213
- var collectionsafterfilter = [];
214
- collections.forEach(function (colitem, colindex) {
215
- if (colitem.parentcollectionid == props.collectionidprops) {
216
- var iscollexists = false;
217
- collectionsafterfilter.forEach(function (existcolitem) {
218
- if (colitem.collectionid == existcolitem.collectionid) {
219
- iscollexists = true;
220
- }
221
- });
222
- if (iscollexists == false) {
223
- collectionsafterfilter.push(colitem);
224
- }
225
- }
226
- });
227
- collections = collectionsafterfilter;
228
- }
229
- cardobjassigner(collections);
230
- }
231
- }
232
-
233
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
234
- }
235
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
236
- useEffect(() => {
237
- if (fetchingtype == 'products') {
238
- if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
239
- var allpagesarr = [];
240
- fetchProductsQuery?.data?.data?.products?.forEach((item) => {
241
- allpagesarr.push(item);
242
- });
243
- cardobjassigner(allpagesarr);
244
- }
245
- }
246
- }, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
247
- useEffect(() => {
248
- if (fetchingtype == 'collections') {
249
- if (fetchcollectionsQueryContext.isSuccess) {
250
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
251
- }
252
- }
253
- }, [fetchcollectionsQueryContext?.isSuccess]);
254
- useEffect(() => {
255
- if (fetchingtype == 'vendors') {
256
- if (FetchVendorsQuery.isSuccess) {
257
- if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
258
- cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
259
- }
260
- }
261
- }
262
- }, [FetchVendorsQuery.isSuccess]);
263
- useEffect(() => {
264
- favassigner();
265
- }, [favoriteprojectscountContext]);
266
- useEffect(() => {
267
- if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
268
- var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
269
- if (Array.isArray(maincontainerarrayofobjsparsed)) {
270
- setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
271
- }
272
- }
273
- }, [sectionproperties]);
274
- const favassigner = () => {
275
- if (fetchingtype == 'products') {
276
- if (cardsarray.length != 0) {
277
- if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
278
- var tempcardsarray = [...cardsarray];
279
- tempcardsarray.forEach(function (arrayItem, arrayindex) {
280
- arrayItem.IsFavExists = false;
281
- });
282
- tempcardsarray.forEach(function (arrayItem, arrayindex) {
283
- favoriteprojectscountContext.forEach(function (favitem, favindex) {
284
- if (arrayItem.productid == favitem) {
285
- arrayItem.IsFavExists = true;
286
- }
287
- });
288
- });
289
- setcardsarray([...tempcardsarray]);
290
- }
291
- }
292
- }
293
- };
294
- const cardobjassigner = (fetchedarray) => {
295
- var temparray = [];
296
-
297
- fetchedarray.forEach(function (arrayItem, arrayindex) {
298
- var cardobj = {
299
- name: '',
300
- image: '',
301
- };
302
- if (fetchingtype == 'products') {
303
- var itemquantity = 0;
304
- if (langdetect == 'en') {
305
- cardobj.name = arrayItem.productinfo.name_en;
306
- } else {
307
- cardobj.name = arrayItem.productinfo.name_ar;
308
- }
309
- if (langdetect == 'en') {
310
- cardobj.description = arrayItem.productinfo.description_en;
311
- } else {
312
- cardobj.description = arrayItem.productinfo.description_ar;
313
- }
314
- if (arrayItem.productinfo.hasvariants == 0) {
315
- fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
316
- if (cartitem.productid == arrayItem.productinfo.productid) {
317
- itemquantity = cartitem.quantity;
318
- }
319
- });
320
- }
321
- cardobj.image = arrayItem.productinfo.productmainimage;
322
- cardobj.hassale = arrayItem.productinfo.hassale;
323
- cardobj.productid = arrayItem.productinfo.productid;
324
- cardobj.hasvariants = arrayItem.productinfo.hasvariants;
325
- cardobj.description_en = arrayItem.productinfo.description_en;
326
- cardobj.description_ar = arrayItem.productinfo.description_ar;
327
- cardobj.defaultprice = arrayItem.productinfo.defaultprice;
328
- cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
329
- cardobj.productimages = arrayItem.productinfo.productimages;
330
- cardobj.quantity = itemquantity;
331
- cardobj.timestamp = arrayItem.productinfo.timestamp;
332
- cardobj.productquantity = arrayItem.productinfo.productquantity;
333
- cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
334
- cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
335
- cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
336
-
337
- if (langdetect == 'en') {
338
- cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_en;
339
- } else {
340
- cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_ar;
341
- }
342
- if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
343
- favoriteprojectscountContext.forEach(function (favitem, favindex) {
344
- if (arrayItem.productinfo.productid == favitem) {
345
- cardobj.IsFavExists = true;
346
- }
347
- });
348
- }
349
- } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
350
- cardobj.collectionid = arrayItem.collectionid;
351
- if (langdetect == 'en') {
352
- cardobj.name = arrayItem.title_en;
353
- cardobj.description = arrayItem.description_en;
354
- } else if (langdetect == 'ar') {
355
- cardobj.name = arrayItem.title_ar;
356
- cardobj.description = arrayItem.description_ar;
357
- }
358
- cardobj.image = arrayItem.collectionlogo;
359
- } else if (fetchingtype == 'categories') {
360
- cardobj.collectionid = arrayItem.categoryid;
361
- if (langdetect == 'en') {
362
- cardobj.name = arrayItem.title_en;
363
- cardobj.description = arrayItem.description_en;
364
- } else if (langdetect == 'ar') {
365
- cardobj.name = arrayItem.title_ar;
366
- cardobj.description = arrayItem.description_ar;
367
- }
368
- cardobj.image = arrayItem.categorylogo;
369
- } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
370
- cardobj.collectionid = arrayItem.parentcollectionid;
371
- if (langdetect == 'en') {
372
- cardobj.name = arrayItem.title_en;
373
- cardobj.description = arrayItem.description_en;
374
- } else if (langdetect == 'ar') {
375
- cardobj.name = arrayItem.title_ar;
376
- cardobj.description = arrayItem.description_ar;
377
- }
378
- cardobj.image = arrayItem.parentcollectionlogo;
379
- } else if (fetchingtype == 'custom') {
380
- } else if (fetchingtype == 'vendors') {
381
- cardobj.name = arrayItem.vendorname;
382
- cardobj.collectionid = arrayItem.vendorid;
383
- cardobj.image = arrayItem.vendorlogourl;
384
- }
385
- temparray.push(cardobj);
386
- });
387
-
388
- setcardsarray([...temparray]);
389
- };
390
- // Example items, to simulate fetching from another resources.
391
- const handlePageClick = (event) => {
392
- props.scrolltotop();
393
- var tempProductFilterObjContext = { ...ProductFilterObjContext };
394
- tempProductFilterObjContext.page = event?.selected;
395
- setProductFilterObjContext({ ...tempProductFilterObjContext });
396
- var pasturl = '';
397
- if (props.grouptypeprops != undefined) {
398
- if (props.collectionidprops != undefined) {
399
- pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
400
- }
401
- }
402
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
403
- };
404
- function PaginatedItems({ itemsPerPage }) {
405
- const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
406
- return (
407
- <div class="d-flex containerClassName">
408
- <ReactPaginate
409
- breakLabel="..."
410
- forcePage={fetchProductsQuery?.data?.data?.page}
411
- nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
412
- onPageChange={handlePageClick}
413
- active
414
- pageRangeDisplayed={5}
415
- pageCount={pageCount}
416
- previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
417
- renderOnZeroPageCount={null}
418
- pageLinkClassName={section_cssstyles.pageLinkClassName}
419
- nextLinkClassName={section_cssstyles.nextLinkClassName}
420
- previousLinkClassName={section_cssstyles.previousLinkClassName}
421
- activeClassName={section_cssstyles.activeClassName}
422
- activeLinkClassName={section_cssstyles.activeLinkClassName}
423
- previousClassName={section_cssstyles.previousClassName}
424
- nextClassName={section_cssstyles.nextClassName}
425
- disabledClassName={section_cssstyles.disabledClassName}
426
- disabledLinkClassName={section_cssstyles.disabledLinkClassName}
427
- />
428
- </div>
429
- );
430
- }
431
- const section_cssstyles = {
432
- disabledClassName: css({
433
- cursor: 'not-allowed',
434
- ':hover': {
435
- cursor: 'not-allowed',
436
- color: sectionproperties.paginationColor,
437
- },
438
- }),
439
- disabledLinkClassName: css({
440
- cursor: 'not-allowed',
441
- ':hover': {
442
- cursor: 'not-allowed',
443
- color: sectionproperties.paginationColor,
444
- },
445
- }),
446
- pageLinkClassName: css({
447
- minWidth: sectionproperties.paginationContainerWidth + 'vh',
448
- height: sectionproperties.paginationContainerHeight + 'vh',
449
- padding: '17px',
450
- display: 'flex',
451
- alignItems: 'center',
452
- justifyContent: 'center',
453
- color: sectionproperties.paginationColor,
454
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
455
- transition: '.3s',
456
- ':hover': {
457
- color: sectionproperties.paginationColoronHover,
458
- borderColor: sectionproperties.paginationColoronHover,
459
- },
460
- }),
461
- activeClassName: css({
462
- color: sectionproperties.paginationActiveColor,
463
- borderColor: sectionproperties.paginationActiveColor,
464
- }),
465
- activeLinkClassName: css({
466
- color: sectionproperties.paginationActiveColor,
467
- borderColor: sectionproperties.paginationActiveColor,
468
- }),
469
- previousClassName: css({
470
- width: sectionproperties.paginationContainerWidth + 'vh',
471
- height: sectionproperties.paginationContainerHeight + 'vh',
472
- padding: '17px',
473
- display: 'flex',
474
- alignItems: 'center',
475
- justifyContent: 'center',
476
- color: sectionproperties.paginationColor,
477
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
478
- transition: '.3s',
479
- ':hover': {
480
- color: sectionproperties.paginationColoronHover,
481
- borderColor: sectionproperties.paginationColoronHover,
482
- },
483
- }),
484
- nextClassName: css({
485
- width: sectionproperties.paginationContainerWidth + 'vh',
486
- height: sectionproperties.paginationContainerHeight + 'vh',
487
- padding: '17px',
488
- display: 'flex',
489
- alignItems: 'center',
490
- justifyContent: 'center',
491
- color: sectionproperties.paginationColor,
492
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
493
- transition: '.3s',
494
- ':hover': {
495
- color: sectionproperties.paginationColoronHover,
496
- borderColor: sectionproperties.paginationColoronHover,
497
- },
498
- }),
499
- previousLinkClassName: css({
500
- fontSize: sectionproperties.paginationFontSize + 'px',
501
- color: sectionproperties.paginationColor,
502
- transition: '.3s',
503
- ':hover': {
504
- color: sectionproperties.paginationColoronHover,
505
- },
506
- }),
507
- nextLinkClassName: css({
508
- fontSize: sectionproperties.paginationFontSize + 'px',
509
- color: sectionproperties.paginationColor,
510
- transition: '.3s',
511
- ':hover': {
512
- color: sectionproperties.paginationColoronHover,
513
- },
514
- }),
515
- sectiontitlespan: css({
516
- ':after': {
517
- height: '5px',
518
- width: sectionproperties.sectitle_lineafterwidth + '%',
519
- backgroundColor: sectionproperties.linebgcolor,
520
- },
521
- }),
522
- line_left: css({
523
- height: '1px',
524
- position: 'relative',
525
- flex: '1 1 auto',
526
- minWidth: '10%',
527
- background: sectionproperties.linebgcolor,
528
- }),
529
- line_right: css({
530
- height: '1px',
531
- position: 'relative',
532
- flex: '1 1 auto',
533
- minWidth: '10%',
534
- background: sectionproperties.linebgcolor,
535
- }),
536
- cards_sections: css({
537
- paddingLeft: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
538
- paddingRight: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
539
- paddingTop: sectionproperties.paddingTop + 'px',
540
- paddingBottom: sectionproperties.paddingBottom + 'px',
541
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
542
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
543
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
544
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
545
- borderColor: sectionproperties.sectioncardbordercolor,
546
- border: sectionproperties.sectioncardborderwidth + 'px solid',
547
- }),
548
- filterbtn: css({
549
- width: sectionproperties.filterbtn_Width + 'px',
550
- height: sectionproperties.filterbtn_Height + 'px',
551
- background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
552
- borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
553
- borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
554
- borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
555
- borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
556
- color: sectionproperties.filterbtn_Textcolor,
557
- boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
558
- marginTop: sectionproperties.filterbtn_marginTop + 'px',
559
- marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
560
- marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
561
- marginRight: sectionproperties.filterbtn_marginRight + 'px',
562
- transition: '.3s',
563
- ':hover': {
564
- background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
565
- color: sectionproperties.filterbtn_Textcoloronhover,
566
- },
567
- }),
568
- viewmorebtn: css({
569
- width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
570
- height: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
571
- background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
572
- borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
573
- color: sectionproperties.viewmorebtn_Textcolor,
574
- fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
575
- fontWeight: sectionproperties.viewmorebtn_fontWeight,
576
- textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
577
- transition: '.3s',
578
- ':hover': {
579
- background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
580
- color: sectionproperties.viewmorebtn_Textcoloronhover,
581
- },
582
- }),
583
- loadbtn: css({
584
- fontSize: sectionproperties.generaltext_fontSize + 'px',
585
- color: sectionproperties.generaltext_fontColor,
586
- fontWeight: sectionproperties.generaltext_fontWeight,
587
- textDecoration: 'underline',
588
- transition: '.3s',
589
- ':hover': {
590
- color: sectionproperties.text_secondarycolor,
591
- },
592
- }),
593
- };
594
- const SectionTitle = () => {
595
- return (
596
- <div
597
- class="d-flex align-items-center flex-row"
598
- style={{
599
- position: 'relative',
600
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
601
- width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
602
- }}
603
- >
604
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
605
- <p
606
- class={
607
- sectionproperties.sectiontitlefontfamily == 'Pacifico'
608
- ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
609
- : sectionproperties.sectiontitlefontfamily == 'Playfair'
610
- ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
611
- : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
612
- ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
613
- : sectionproperties.sectiontitlefontfamily == 'Quicksand'
614
- ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
615
- : sectionproperties.sectiontitlefontfamily == 'Satisfy'
616
- ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
617
- : sectionproperties.sectiontitlefontfamily == 'ASUL'
618
- ? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
619
- : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
620
- }
621
- style={{
622
- color: sectionproperties.sectionTitleColor,
623
- fontWeight: sectionproperties.sectionTitleFontWeight,
624
- paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
625
- paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
626
- textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
627
- }}
628
- >
629
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
630
- </p>
631
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
632
- </div>
633
- );
634
- };
635
- const cardsrender = () => {
636
- return (
637
- <div
638
- class={
639
- sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical'
640
- ? sectionproperties.numofcols == '2'
641
- ? 'col-lg-10 col-md-12 col-sm-12 p-sm-0'
642
- : 'col-lg-9 col-md-12 col-sm-12 p-sm-0'
643
- : 'row m-0 w-100 p-sm-0'
644
- }
645
- >
646
- {sectionproperties.length != 0 && (
647
- <div className="row m-0 w-100 d-flex align-items-center p-sm-0">
648
- <div class="col-lg-12 p-0">
649
- <div
650
- className="row ml-0 mr-0 w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2"
651
- style={{
652
- marginTop: sectionproperties.showbadge == 'Show' ? 0 : sectionproperties.sectionTitleMarginTop + 'px',
653
- marginBottom: sectionproperties.sectiontitledirection == 'Horizontal' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
654
- paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
655
- paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
656
- }}
657
- >
658
- <div
659
- class={
660
- sectionproperties.viewmorebtnshow == 'Show'
661
- ? sectionproperties.sectiontitleposition == 'Centered'
662
- ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
663
- : ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
664
- : sectionproperties.showFilter == 'show'
665
- ? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
666
- : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
667
- }
668
- >
669
- <div class="row m-0 w-100">
670
- {sectionproperties.showbadge == 'Show' && (
671
- <div
672
- class={' col-lg-12 p-0 d-flex align-items-center '}
673
- style={{
674
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
675
- }}
676
- >
677
- <p
678
- class="m-0 p-0 allcentered"
679
- style={{
680
- fontSize: sectionproperties.badge_fontsize + 'px',
681
- background: sectionproperties.badge_bgcolor,
682
- minWidth: sectionproperties.badge_width + 'px',
683
- height: sectionproperties.badge_height + 'px',
684
- color: sectionproperties.badge_color,
685
- borderRadius: sectionproperties.badge_borderradius + 'px',
686
- border: sectionproperties.badgeborderwidth + 'px solid ' + sectionproperties.badgebordercolor,
687
- }}
688
- >
689
- {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
690
- </p>
691
- </div>
692
- )}
693
- {sectionproperties.sectiontitleshow == 'Show' && (
694
- <div
695
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex d-md-none align-items-center '}
696
- style={{
697
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
698
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
699
- marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
700
- marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
701
- }}
702
- >
703
- {SectionTitle()}
704
- </div>
705
- )}
706
- {sectionproperties.sectiontitleshow == 'Show' && (
707
- <div
708
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-none d-md-flex align-items-center '}
709
- style={{
710
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
711
- fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
712
- marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
713
- marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
714
- }}
715
- >
716
- {SectionTitle()}
717
- </div>
718
- )}
719
- {sectionproperties.sectiontitledirection == 'Vertical' && (
720
- <div class="col-lg-12 p-0">
721
- {sectionproperties.viewmorebtnshow == 'Show' && (
722
- <button
723
- class={
724
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
725
- ? sectionproperties.sectiontitleposition == 'Centered'
726
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
727
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
728
- : sectionproperties.sectiontitleposition == 'Centered'
729
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
730
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
731
- }
732
- onClick={() => {
733
- if (fetchingtype == 'products') {
734
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
735
- routingcountext(
736
- StaticPagesLinksContext.GeneralProductsComponent,
737
- true,
738
- 'collections/' + ProductsFetchingTypeSectionObj.collectionid,
739
- );
740
- } else {
741
- routingcountext(
742
- StaticPagesLinksContext.GeneralProductsComponent,
743
- true,
744
- encodeURIComponent(JSON.stringify(ProductFilterObjContext)),
745
- );
746
- }
747
- } else {
748
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
749
- }
750
- }}
751
- style={{
752
- flexDirection: 'row',
753
- }}
754
- >
755
- <span class={'d-flex justify-content-center align-items-center'}>
756
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'}>
757
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
758
- </span>
759
- {sectionproperties.showIcon == 'Show' && (
760
- <i
761
- class={
762
- sectionproperties.sectiontitleposition == 'Centered'
763
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
764
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
765
- }
766
- style={{
767
- marginLeft: 5,
768
- marginRight: 5,
769
- }}
770
- >
771
- {langdetect == 'en' ? (
772
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
773
- ) : (
774
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
775
- )}
776
- </i>
777
- )}
778
- </span>
779
- </button>
780
- )}
781
- </div>
782
- )}
783
- {sectionproperties.prodCatShow == 'Show' && (
784
- <div
785
- class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center d-md-none '}
786
- style={{
787
- justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
788
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
789
- paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
790
- paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
791
- }}
792
- >
793
- <p
794
- class={
795
- sectionproperties.descFontFamily == 'Pacifico'
796
- ? ' PacificoFont m-0 p-0 wordbreak '
797
- : sectionproperties.descFontFamily == 'Playfair'
798
- ? ' PlayfairFont m-0 p-0 wordbreak '
799
- : sectionproperties.descFontFamily == 'Great Vibes'
800
- ? ' GreatvibesFont m-0 p-0 wordbreak '
801
- : sectionproperties.descFontFamily == 'Quicksand'
802
- ? ' QuicksandFont m-0 p-0 wordbreak'
803
- : sectionproperties.descFontFamily == 'ASUL'
804
- ? ' ASUL m-0 p-0 wordbreak '
805
- : ' m-0 p-0 wordbreak '
806
- }
807
- style={{
808
- color: sectionproperties.prodCatColor,
809
- fontWeight: sectionproperties.prodCatFontWeight,
810
- textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
811
- fontSize: sectionproperties.prodCatFontSize + 'px',
812
- }}
813
- >
814
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
815
- </p>
816
- </div>
817
- )}
818
- {sectionproperties.prodCatShow == 'Show' && (
819
- <div
820
- class={' col-lg-12 col-md-12 col-sm-12 align-items-center p-0 d-none d-md-flex '}
821
- style={{
822
- justifyContent: sectionproperties.showFilter == 'show' ? 'start' : sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
823
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
824
- paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
825
- paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
826
- }}
827
- >
828
- <p
829
- class={
830
- sectionproperties.descFontFamily == 'Pacifico'
831
- ? ' PacificoFont m-0 p-0 wordbreak '
832
- : sectionproperties.descFontFamily == 'Playfair'
833
- ? ' PlayfairFont m-0 p-0 wordbreak '
834
- : sectionproperties.descFontFamily == 'Great Vibes'
835
- ? ' GreatvibesFont m-0 p-0 wordbreak '
836
- : sectionproperties.descFontFamily == 'Quicksand'
837
- ? ' QuicksandFont m-0 p-0 wordbreak '
838
- : sectionproperties.descFontFamily == 'ASUL'
839
- ? ' ASUL m-0 p-0 wordbreak '
840
- : ' m-0 p-0 wordbreak '
841
- }
842
- style={{
843
- color: sectionproperties.prodCatColor,
844
- fontWeight: sectionproperties.prodCatFontWeight,
845
- textAlign:
846
- sectionproperties.showFilter == 'show'
847
- ? langdetect == 'en'
848
- ? 'left'
849
- : 'right'
850
- : sectionproperties.descriptionCentered == 'Centered'
851
- ? 'center'
852
- : langdetect == 'en'
853
- ? 'left'
854
- : 'right',
855
- fontSize: sectionproperties.prodCatFontSizeResp + 'px',
856
- }}
857
- >
858
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
859
- </p>
860
- </div>
861
- )}
862
- </div>
863
- </div>
864
- <div
865
- class={
866
- sectionproperties.sectiontitleposition == 'Centered'
867
- ? sectionproperties.showFilter == 'show'
868
- ? 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0'
869
- : 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
870
- : 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
871
- }
872
- style={{
873
- marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0,
874
- }}
875
- >
876
- <div
877
- class={
878
- sectionproperties.sectiontitleposition == 'Centered'
879
- ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto '
880
- : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
881
- }
882
- >
883
- {sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && (
884
- <button
885
- class={
886
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
887
- ? sectionproperties.sectiontitleposition == 'Centered'
888
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
889
- : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
890
- : sectionproperties.sectiontitleposition == 'Centered'
891
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
892
- : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
893
- }
894
- onClick={() => {
895
- if (fetchingtype == 'products') {
896
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
897
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
898
- } else {
899
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
900
- }
901
- } else {
902
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
903
- }
904
- }}
905
- style={{
906
- flexDirection: 'row',
907
- }}
908
- >
909
- <span
910
- class={
911
- sectionproperties.sectiontitleposition == 'Centered'
912
- ? 'd-flex justify-content-center align-items-center'
913
- : 'd-flex justify-content-center align-items-center d-md-none'
914
- }
915
- >
916
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}>
917
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
918
- </span>
919
- {sectionproperties.showIcon == 'Show' && (
920
- <i
921
- class={
922
- sectionproperties.sectiontitleposition == 'Centered'
923
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
924
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
925
- }
926
- style={{
927
- marginLeft: 5,
928
- marginRight: 5,
929
- }}
930
- >
931
- {langdetect == 'en' ? (
932
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
933
- ) : (
934
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
935
- )}
936
- </i>
937
- )}
938
- </span>
939
- <span
940
- class={
941
- sectionproperties.sectiontitleposition == 'Centered'
942
- ? 'd-none align-items-center justify-content-center'
943
- : 'd-none d-md-flex align-items-center justify-content-center'
944
- }
945
- >
946
- <i class="h-100 d-flex align-items-center justify-content-center">
947
- {langdetect == 'en' ? (
948
- <HiOutlineArrowRight size={sectionproperties.viewmorebtn_fontSize} color={sectionproperties.viewmorebtn_Textcolor} />
949
- ) : (
950
- <HiOutlineArrowLeft size={sectionproperties.viewmorebtn_fontSize} color={sectionproperties.viewmorebtn_Textcolor} />
951
- )}
952
- </i>
953
- </span>
954
- </button>
955
- )}
956
- {sectionproperties.showFilter == 'show' && (
957
- <button
958
- class={' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '}
959
- onClick={() => {
960
- setopenFilterSlider(true);
961
- // var element = document.getElementById('filterslider');
962
- // element.classList.add(filterstyles.filterslider_container_opened);
963
- }}
964
- >
965
- <div class={`${section_cssstyles.filterbtn}`}>
966
- <i class="h-100 d-flex align-items-center justify-content-center">
967
- <FiFilter />
968
- </i>
969
- </div>
970
- </button>
971
- )}
972
- </div>
973
- </div>
974
- {sectionproperties.showseparator == 'Show' && (
975
- <div class="col-lg-12 p-0">
976
- <hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
977
- </div>
978
- )}
979
- </div>
980
- </div>
981
- {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
982
- <div className="row m-0 w-100 d-flex align-items-center" style={{ height: '30vh' }}>
983
- <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
984
- <FiLayers
985
- style={{
986
- fontSize: sectionproperties.noprod_iconfontSize + 'px',
987
- color: sectionproperties.noprod_iconcolor,
988
- }}
989
- />
990
- <p
991
- class="m-0 p-0 mt-2"
992
- style={{
993
- fontWeight: sectionproperties.noprod_fontWeight,
994
- color: sectionproperties.noprod_color,
995
- fontSize: sectionproperties.noprod_fontSize + 'px',
996
- }}
997
- >
998
- {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
999
- </p>
1000
- </div>
1001
- </div>
1002
- )}
1003
- {cardsarray.length != 0 && (
1004
- <div class="col-lg-12 p-0">
1005
- {StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
1006
- if (item.tabexsectioninfo != null) {
1007
- if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
1008
- var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1009
- return (
1010
- <div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 px-1025-1 pl-md-0 pr-md-0 '}>
1011
- {sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && (
1012
- <div
1013
- class={
1014
- langdetect == 'en'
1015
- ? sectionproperties.paddingLeft != 0
1016
- ? 'col-lg-12 p-0 pl-sm-2 pl-md-2'
1017
- : sectionproperties.paddingRight != 0
1018
- ? 'col-lg-12 p-0 pr-md-2'
1019
- : 'col-lg-12 p-0 '
1020
- : sectionproperties.paddingRight != 0
1021
- ? 'col-lg-12 p-0 pr-sm-2 pr-md-2'
1022
- : sectionproperties.paddingLeft != 0
1023
- ? 'col-lg-12 p-0 pl-md-2'
1024
- : 'col-lg-12 p-0 '
1025
- }
1026
- >
1027
- <ScrollMenu
1028
- transitionBehavior={'auto'}
1029
- wrapperClassName={''}
1030
- itemClassName={
1031
- item.tabexsectioninfo.sectioncompname == 'Productcard6'
1032
- ? 'scrollmenuclassnameitemProductcard6'
1033
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1034
- ? 'scrollmenuclassnameitemProductcard_with_circularhover'
1035
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1036
- ? 'scrollmenuclassnameitemProductcard_with_circularbg'
1037
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1038
- ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
1039
- : // : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
1040
- // ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
1041
- item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
1042
- ? 'scrollmenuclassnameitemCategorycard_withtext'
1043
- : // : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
1044
- // ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
1045
- item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
1046
- ? 'scrollmenuclassnameitemProductcard_with_variants'
1047
- : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
1048
- ? 'scrollmenuclassnameitemProductcarddefault'
1049
- : // : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
1050
- // ? 'scrollmenuclassnameitemSimpleproductcard'
1051
- item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
1052
- ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
1053
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
1054
- ? 'scrollmenuclassnameitemProductcard_with_textonhover'
1055
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
1056
- ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
1057
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1058
- ? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
1059
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
1060
- ? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
1061
- : item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
1062
- ? 'scrollmenuclassnameitemProductcard_Horizontalcard'
1063
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1064
- ? 'scrollmenuclassnameitemCategorycard_fullimage'
1065
- : // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
1066
- // ? 'scrollmenuclassnameitemClassiccategorycard'
1067
- // item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1068
- // ? 'scrollmenuclassnameitemModernProductCard'
1069
- // : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1070
- // ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
1071
- item.tabexsectioninfo.sectioncompname == 'Productcard7'
1072
- ? 'scrollmenuclassnameitemProductcard7'
1073
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1074
- ? 'scrollmenuclassnameitemMenuCard'
1075
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1076
- ? 'scrollmenuclassnameitemStylishProductCard'
1077
- : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
1078
- ? 'scrollmenuclassnameitemProductCardWithTextOnImage'
1079
- : item.tabexsectioninfo.sectioncompname == 'Card23'
1080
- ? 'scrollmenuclassnameitemCard23'
1081
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1082
- ? 'scrollmenuclassnameitemCard20'
1083
- : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
1084
- ? 'scrollmenuclassnameitemModernCardWithQuantityButton'
1085
- : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
1086
- ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
1087
- : item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants'
1088
- ? 'scrollmenuclassnameitemCircleCardWithVariants'
1089
- : // : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
1090
- // ? 'scrollmenuclassnameitemUpSlideEffectCard'
1091
- item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage'
1092
- ? 'scrollmenuclassnameitemCategoryCardTextOnImage'
1093
- : ''
1094
- }
1095
- scrollContainerClassName={'scrollmenuclasssubscrollbar'}
1096
- >
1097
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
1098
- return (
1099
- <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
1100
- <Sectioncomp
1101
- sectiontypeprops={'horizontal'}
1102
- fetchingtypeprops={fetchingtype}
1103
- cardinfoindexprops={cardinfoindex}
1104
- cardinfoitemprops={cardinfoitem}
1105
- sectionindexprops={index}
1106
- sectionidprops={item.sectionid}
1107
- actions={actions}
1108
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1109
- />
1110
- </div>
1111
- );
1112
- })}
1113
- {/* {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
1114
- <button
1115
- className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center mt-4 '}
1116
- ref={ref}
1117
- onClick={() => fetchProductsQuery.fetchNextPage()}
1118
- disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1119
- >
1120
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1121
- </button>
1122
- )} */}
1123
- </ScrollMenu>
1124
- </div>
1125
- )}
1126
- {sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && (
1127
- <div
1128
- className="row m-0 w-100 d-flex "
1129
- style={{
1130
- justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start',
1131
- }}
1132
- >
1133
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
1134
- if (sectionproperties.overallnumberofcards != 0) {
1135
- if (cardinfoindex < sectionproperties.overallnumberofcards) {
1136
- return (
1137
- <div
1138
- class={
1139
- sectionproperties.numberOfColsvertical == '1'
1140
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1141
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 '
1142
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1143
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 '
1144
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1145
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1146
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1147
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1148
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1149
- ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1150
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1151
- ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1152
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1153
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto'
1154
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1155
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1156
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1157
- ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1158
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1159
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1160
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1161
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1162
- : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1163
- : sectionproperties.numberOfColsvertical == '2'
1164
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1165
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1166
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft '
1167
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1168
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1169
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1170
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1171
- ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1172
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1173
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1174
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1175
- ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1176
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1177
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1178
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1179
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1180
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1181
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0'
1182
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1183
- ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1184
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1185
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1186
- : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0'
1187
- : sectionproperties.numberOfColsvertical == '3'
1188
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1189
- ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center '
1190
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1191
- ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1192
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1193
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1194
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1195
- ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1196
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1197
- ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1198
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1199
- ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1200
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1201
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1202
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1203
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1204
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1205
- ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1206
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1207
- ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1208
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1209
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1210
- : ' col-xl-4 col-lg-4 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1211
- : sectionproperties.numberOfColsvertical == '4'
1212
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1213
- ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1214
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1215
- ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1216
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1217
- ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1218
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1219
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1220
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1221
- ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1222
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1223
- ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1224
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1225
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1226
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1227
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1228
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1229
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 '
1230
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1231
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1232
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1233
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1234
- : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 '
1235
- : sectionproperties.numberOfColsvertical == '12'
1236
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1237
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1238
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1239
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1240
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1241
- ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1242
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1243
- ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1244
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1245
- ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1246
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1247
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1248
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1249
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1250
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1251
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1252
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1253
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1254
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1255
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1256
- : ''
1257
- : sectionproperties.numberOfColsvertical == '6'
1258
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1259
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1260
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1261
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1262
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1263
- ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1264
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1265
- ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1266
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1267
- ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1268
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1269
- ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1270
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1271
- ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1272
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1273
- ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1274
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1275
- ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1276
- : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly'
1277
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1278
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1279
- ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1280
- : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1281
- : ''
1282
- }
1283
- >
1284
- <Sectioncomp
1285
- sectiontypeprops={'horizontal'}
1286
- sectiontypeprops2={'vertical'}
1287
- fetchingtypeprops={fetchingtype}
1288
- cardinfoindexprops={cardinfoindex}
1289
- cardinfoitemprops={cardinfoitem}
1290
- sectionindexprops={index}
1291
- sectionidprops={item.sectionid}
1292
- actions={actions}
1293
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1294
- numberOfColsvertical={sectionproperties.numberOfColsvertical}
1295
- />
1296
- </div>
1297
- );
1298
- }
1299
- } else {
1300
- return (
1301
- <div
1302
- class={
1303
- sectionproperties.numberOfColsvertical == '1'
1304
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1305
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 '
1306
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1307
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 '
1308
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1309
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1310
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1311
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1312
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1313
- ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1314
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1315
- ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1316
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1317
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto'
1318
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1319
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1320
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1321
- ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1322
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1323
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1324
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1325
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1326
- : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1327
- : sectionproperties.numberOfColsvertical == '2'
1328
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1329
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1330
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft '
1331
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1332
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1333
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1334
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1335
- ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1336
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1337
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1338
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1339
- ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1340
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1341
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1342
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1343
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1344
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1345
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0'
1346
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1347
- ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1348
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1349
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1350
- : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0'
1351
- : sectionproperties.numberOfColsvertical == '3'
1352
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1353
- ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center '
1354
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1355
- ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1356
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1357
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1358
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1359
- ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1360
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1361
- ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1362
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1363
- ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1364
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1365
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1366
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1367
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1368
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1369
- ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1370
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1371
- ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1372
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1373
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1374
- : ' col-xl-4 col-lg-4 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1375
- : sectionproperties.numberOfColsvertical == '4'
1376
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1377
- ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1378
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1379
- ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1380
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1381
- ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1382
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1383
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1384
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1385
- ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1386
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1387
- ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1388
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1389
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1390
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1391
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1392
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1393
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 '
1394
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1395
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1396
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1397
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1398
- : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 '
1399
- : sectionproperties.numberOfColsvertical == '12'
1400
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1401
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1402
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1403
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1404
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1405
- ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1406
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1407
- ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1408
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1409
- ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1410
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1411
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1412
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1413
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1414
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1415
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1416
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1417
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1418
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1419
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1420
- : ''
1421
- : sectionproperties.numberOfColsvertical == '6'
1422
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1423
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1424
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1425
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1426
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1427
- ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1428
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1429
- ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1430
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1431
- ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1432
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1433
- ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto '
1434
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1435
- ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1436
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1437
- ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1438
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1439
- ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1440
- : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly'
1441
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1442
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1443
- ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1444
- : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1445
- : ''
1446
- }
1447
- >
1448
- <Sectioncomp
1449
- sectiontypeprops={'horizontal'}
1450
- sectiontypeprops2={'vertical'}
1451
- fetchingtypeprops={fetchingtype}
1452
- cardinfoindexprops={cardinfoindex}
1453
- cardinfoitemprops={cardinfoitem}
1454
- sectionindexprops={index}
1455
- sectionidprops={item.sectionid}
1456
- actions={actions}
1457
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1458
- numberOfColsvertical={sectionproperties.numberOfColsvertical}
1459
- />
1460
- </div>
1461
- );
1462
- }
1463
- })}
1464
- {fetchingtype == 'products' && sectionproperties.showpagination == 'Show' && (
1465
- <div className="w-100 col-lg-12 allcentered mt-2">
1466
- {/* <button
1467
- className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
1468
- // ref={ref}
1469
- onClick={() => fetchProductsQuery.fetchNextPage()}
1470
- disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1471
- >
1472
- {fetchProductsQuery.isFetchingNextPage ? (
1473
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1474
- ) : fetchProductsQuery.hasNextPage ? (
1475
- langdetect == 'en' ? (
1476
- 'Load more'
1477
- ) : (
1478
- 'المزيد'
1479
- )
1480
- ) : (
1481
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1482
- )}
1483
- </button> */}
1484
- <PaginatedItems itemsPerPage={5} />
1485
- </div>
1486
- )}
1487
- </div>
1488
- )}
1489
- </div>
1490
- );
1491
- }
1492
- }
1493
- })}
1494
- </div>
1495
- )}
1496
- </div>
1497
- )}
1498
- </div>
1499
- );
1500
- };
1501
- return (
1502
- <div
1503
- ref={refscr}
1504
- class={' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto w-md-100 w-sm-100 '}
1505
- style={{
1506
- zIndex: 2,
1507
- background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
1508
- backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
1509
- backgroundSize: 'cover',
1510
- width: sectionproperties.width + 'vw',
1511
- boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
1512
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
1513
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
1514
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
1515
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
1516
- marginTop: sectionproperties.marginTop + 'px',
1517
- marginBottom: sectionproperties.marginBottom + 'px',
1518
- }}
1519
- >
1520
- {sectionproperties.length != 0 && (
1521
- <div
1522
- class={' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}
1523
- style={{
1524
- paddingLeft: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px') : 0,
1525
- paddingRight: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px') : 0,
1526
- }}
1527
- >
1528
- {sectionproperties.showFilter == 'show' && (
1529
- <div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex ' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
1530
- <Filter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
1531
- </div>
1532
- )}
1533
- {fetchingtype == 'custom' && <>{cardsrender()}</>}
1534
- {fetchingtype != 'custom' && cardsrender()}
1535
- </div>
1536
- )}
1537
- </div>
1538
- );
1539
- };
1540
- export default CardsSection;