tabexseriescomponents 0.2.1280 → 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 +27 -0
  2. package/dist/index.esm.js +27 -0
  3. package/dist/index.umd.js +27 -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,1399 +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
- const CardsSection = (props) => {
18
- const refscr = createRef();
19
- const { ref, inView } = useInView();
20
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
21
- const lang = props.actions.lang;
22
- const langdetect = props.actions.langdetect;
23
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
24
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
25
- const routingcountext = props.actions.routingcountext;
26
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27
- const ProductFilterObjContext = props.actions.ProductFilterObjContext;
28
- const setProductFilterObjContext = props.actions.setProductFilterObjContext;
29
- const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
30
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
31
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
32
- const fetchProductsQuery = props.actions.fetchProductsQuery;
33
- const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
34
- const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
35
- const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
36
- const setfetchingtype = props.actions.setfetchingtype;
37
- const fetchingtype = props.actions.fetchingtype;
38
- const addtofavoritescontext = props.actions.addtofavoritescontext;
39
- const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
40
- const FetchVendorsQuery = props.actions.FetchVendorsQuery;
41
- const ikimagecredcontext = props.actions.ikimagecredcontext;
42
- const [openFilterSlider, setopenFilterSlider] = useState(false);
43
- const actions = props.actions;
44
- const [sectionproperties, setsectionproperties] = useState('');
45
- const [cardsarray, setcardsarray] = useState([]);
46
- const [sectionitem, setsectionitem] = useState('');
47
- const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
48
- const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
49
- // React.useEffect(() => {
50
- // if (inView) {
51
- // fetchProductsQuery.fetchNextPage();
52
- // }
53
- // }, [inView]);
54
- useEffect(() => {
55
- var productfilerobjtemp = ProductFilterObjContext;
56
- if (props.filterparamsprops != undefined) {
57
- var filterpar = decodeURIComponent(props.filterparamsprops);
58
- var filterparsed = JSON.parse(filterpar);
59
-
60
- if (filterparsed != undefined) {
61
- productfilerobjtemp = filterparsed;
62
- setProductFilterObjContext(filterparsed);
63
- }
64
- }
65
-
66
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
67
- if (sectionitem.sectionid == props.sectionidprops) {
68
- var secpropobj = {};
69
- setsectionitem(sectionitem);
70
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
71
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72
- });
73
- setsectionproperties({ ...secpropobj });
74
-
75
- if (props.srcfromprops == 'GeneralProductsComponent') {
76
- setfetchingtype('products');
77
- var lcproductfetchingtype = 'Random';
78
-
79
- if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
80
- lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
81
- }
82
- setProductsFetchingTypeSectionObj({
83
- productfetchingtype: lcproductfetchingtype,
84
- collectionid: props.collectionidprops,
85
- grouptype: props.grouptypeprops,
86
- grouptyperefid: props.grouptyperefidprops,
87
- });
88
- } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
89
- setfetchingtype(props.grouptypeprops);
90
- } else if (props.srcfromprops == 'Innervendor') {
91
- setfetchingtype('vendors');
92
- } else {
93
- setfetchingtype(sectionitem.fetchingtype);
94
- setProductsFetchingTypeSectionObj({
95
- productfetchingtype: sectionitem.productsfetchingtype,
96
- collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
97
- grouptype: props.grouptypeprops,
98
- grouptyperefid: props.grouptyperefidprops,
99
- });
100
- }
101
- }
102
- });
103
- }, [StatePagePropertiesContext]);
104
- useEffect(() => {
105
- if (sectionproperties.length != 0) {
106
- if (cardsarray.length == 0) {
107
- if (fetchingtype == 'collections') {
108
- if (fetchcollectionsQueryContext.isSuccess) {
109
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
110
- }
111
- } else if (fetchingtype == 'products') {
112
- if (fetchProductsQuery.isSuccess) {
113
- var allpagesarr = [];
114
- fetchProductsQuery?.data?.data?.products?.forEach((item) => {
115
- allpagesarr.push(item);
116
- });
117
- cardobjassigner(allpagesarr);
118
- }
119
- } else if (fetchingtype == 'vendors') {
120
- if (FetchVendorsQuery.isSuccess) {
121
- cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
122
- }
123
- }
124
- }
125
- }
126
- }, [sectionproperties]);
127
- useEffect(() => {
128
- if (fetchingtype?.length != 0) {
129
- var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
130
- if (fetchingtype == 'collections') {
131
- if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
132
- setParentCollectionsForCollectionQueryArr('all');
133
- } else {
134
- setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
135
- }
136
- }
137
- if (fetchingtype == 'products') {
138
- var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
139
- tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
140
- if (
141
- ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
142
- ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
143
- ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
144
- ) {
145
- } else {
146
- if (tempfetchproductsfilerobjcontext.collections != undefined) {
147
- tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
148
- }
149
- }
150
- tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
151
- tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
152
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
153
- }
154
- if (fetchingtype == 'categories') {
155
- if (fetchAuthorizationQueryContext?.isSuccess) {
156
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
157
- cardobjassigner(categories);
158
- }
159
- }
160
-
161
- if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
162
- if (fetchAuthorizationQueryContext?.isSuccess) {
163
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
164
- var parentcollections = [];
165
- categories?.forEach(function (catitem, catindex) {
166
- catitem?.parentcolletions.forEach(function (parentcolitem) {
167
- parentcolitem.categoryid = catitem.categoryid;
168
- parentcollections.push(parentcolitem);
169
- });
170
- });
171
- if (fetchingtype == 'parentcollections') {
172
- if (
173
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
174
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
175
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
176
- ) {
177
- var arrafterfilter = [];
178
- parentcollections.forEach(function (parentcolitem, parcolindex) {
179
- if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
180
- arrafterfilter.push(parentcolitem);
181
- }
182
- });
183
- parentcollections = arrafterfilter;
184
- }
185
- }
186
- if (fetchingtype == 'innercategories') {
187
- var arrafterfilter = [];
188
- parentcollections.forEach(function (parentcolitem, parcolindex) {
189
- if (parentcolitem.categoryid == props.collectionidprops) {
190
- arrafterfilter.push(parentcolitem);
191
- }
192
- });
193
- parentcollections = arrafterfilter;
194
- }
195
-
196
- cardobjassigner(parentcollections);
197
- }
198
- } else if (fetchingtype == 'innerparentcollections') {
199
- if (fetchAuthorizationQueryContext?.isSuccess) {
200
- var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
201
- var collections = [];
202
- categories?.forEach(function (catitem, catindex) {
203
- catitem?.parentcolletions.forEach(function (parentcolitem) {
204
- parentcolitem.categoryid = catitem.categoryid;
205
- parentcolitem?.collections?.forEach(function (collitem, colindex) {
206
- collitem.parentcollectionid = parentcolitem.parentcollectionid;
207
- collections.push(collitem);
208
- });
209
- });
210
- });
211
- if (fetchingtype == 'innerparentcollections') {
212
- var collectionsafterfilter = [];
213
- collections.forEach(function (colitem, colindex) {
214
- if (colitem.parentcollectionid == props.collectionidprops) {
215
- var iscollexists = false;
216
- collectionsafterfilter.forEach(function (existcolitem) {
217
- if (colitem.collectionid == existcolitem.collectionid) {
218
- iscollexists = true;
219
- }
220
- });
221
- if (iscollexists == false) {
222
- collectionsafterfilter.push(colitem);
223
- }
224
- }
225
- });
226
- collections = collectionsafterfilter;
227
- }
228
- cardobjassigner(collections);
229
- }
230
- }
231
-
232
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
233
- }
234
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
235
- useEffect(() => {
236
- if (fetchingtype == 'products') {
237
- if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
238
- var allpagesarr = [];
239
- fetchProductsQuery?.data?.data?.products?.forEach((item) => {
240
- allpagesarr.push(item);
241
- });
242
- cardobjassigner(allpagesarr);
243
- }
244
- }
245
- }, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
246
- useEffect(() => {
247
- if (fetchingtype == 'collections') {
248
- if (fetchcollectionsQueryContext.isSuccess) {
249
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
250
- }
251
- }
252
- }, [fetchcollectionsQueryContext?.isSuccess]);
253
- useEffect(() => {
254
- if (fetchingtype == 'vendors') {
255
- if (FetchVendorsQuery.isSuccess) {
256
- if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
257
- cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
258
- }
259
- }
260
- }
261
- }, [FetchVendorsQuery.isSuccess]);
262
- useEffect(() => {
263
- favassigner();
264
- }, [favoriteprojectscountContext]);
265
- useEffect(() => {
266
- if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
267
- var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
268
- if (Array.isArray(maincontainerarrayofobjsparsed)) {
269
- setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
270
- }
271
- }
272
- }, [sectionproperties]);
273
- const favassigner = () => {
274
- if (fetchingtype == 'products') {
275
- if (cardsarray.length != 0) {
276
- if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
277
- var tempcardsarray = [...cardsarray];
278
- tempcardsarray.forEach(function (arrayItem, arrayindex) {
279
- arrayItem.IsFavExists = false;
280
- });
281
- tempcardsarray.forEach(function (arrayItem, arrayindex) {
282
- favoriteprojectscountContext.forEach(function (favitem, favindex) {
283
- if (arrayItem.productid == favitem) {
284
- arrayItem.IsFavExists = true;
285
- }
286
- });
287
- });
288
- setcardsarray([...tempcardsarray]);
289
- }
290
- }
291
- }
292
- };
293
- const cardobjassigner = (fetchedarray) => {
294
- var temparray = [];
295
-
296
- fetchedarray.forEach(function (arrayItem, arrayindex) {
297
- var cardobj = {
298
- name: '',
299
- image: '',
300
- };
301
- if (fetchingtype == 'products') {
302
- var itemquantity = 0;
303
- if (langdetect == 'en') {
304
- cardobj.name = arrayItem.productinfo.name_en;
305
- } else {
306
- cardobj.name = arrayItem.productinfo.name_ar;
307
- }
308
- if (langdetect == 'en') {
309
- cardobj.description = arrayItem.productinfo.description_en;
310
- } else {
311
- cardobj.description = arrayItem.productinfo.description_ar;
312
- }
313
- if (arrayItem.productinfo.hasvariants == 0) {
314
- fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
315
- if (cartitem.productid == arrayItem.productinfo.productid) {
316
- itemquantity = cartitem.quantity;
317
- }
318
- });
319
- }
320
- cardobj.image = arrayItem.productinfo.productmainimage;
321
- cardobj.hassale = arrayItem.productinfo.hassale;
322
- cardobj.productid = arrayItem.productinfo.productid;
323
- cardobj.hasvariants = arrayItem.productinfo.hasvariants;
324
- cardobj.description_en = arrayItem.productinfo.description_en;
325
- cardobj.description_ar = arrayItem.productinfo.description_ar;
326
- cardobj.defaultprice = arrayItem.productinfo.defaultprice;
327
- cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
328
- cardobj.productimages = arrayItem.productinfo.productimages;
329
- cardobj.quantity = itemquantity;
330
- // cardobj.currentquantity = currentquantity;
331
- cardobj.timestamp = arrayItem.productinfo.timestamp;
332
- cardobj.productquantity = arrayItem.productinfo.productquantity;
333
- cardobj.currentquantity = arrayItem.productinfo.currentquantity;
334
- cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
335
- cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
336
- cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
337
- cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
338
- cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
339
-
340
- if (langdetect == 'en') {
341
- cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_en;
342
- } else {
343
- cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_ar;
344
- }
345
- if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
346
- favoriteprojectscountContext.forEach(function (favitem, favindex) {
347
- if (arrayItem.productinfo.productid == favitem) {
348
- cardobj.IsFavExists = true;
349
- }
350
- });
351
- }
352
- } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
353
- cardobj.collectionid = arrayItem.collectionid;
354
- if (langdetect == 'en') {
355
- cardobj.name = arrayItem.title_en;
356
- cardobj.description = arrayItem.description_en;
357
- } else if (langdetect == 'ar') {
358
- cardobj.name = arrayItem.title_ar;
359
- cardobj.description = arrayItem.description_ar;
360
- }
361
- cardobj.image = arrayItem.collectionlogo;
362
- } else if (fetchingtype == 'categories') {
363
- cardobj.collectionid = arrayItem.categoryid;
364
- if (langdetect == 'en') {
365
- cardobj.name = arrayItem.title_en;
366
- cardobj.description = arrayItem.description_en;
367
- } else if (langdetect == 'ar') {
368
- cardobj.name = arrayItem.title_ar;
369
- cardobj.description = arrayItem.description_ar;
370
- }
371
- cardobj.image = arrayItem.categorylogo;
372
- } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
373
- cardobj.collectionid = arrayItem.parentcollectionid;
374
- if (langdetect == 'en') {
375
- cardobj.name = arrayItem.title_en;
376
- cardobj.description = arrayItem.description_en;
377
- } else if (langdetect == 'ar') {
378
- cardobj.name = arrayItem.title_ar;
379
- cardobj.description = arrayItem.description_ar;
380
- }
381
- cardobj.image = arrayItem.parentcollectionlogo;
382
- } else if (fetchingtype == 'custom') {
383
- } else if (fetchingtype == 'vendors') {
384
- cardobj.name = arrayItem.vendorname;
385
- cardobj.collectionid = arrayItem.vendorid;
386
- cardobj.image = arrayItem.vendorlogourl;
387
- }
388
- temparray.push(cardobj);
389
- });
390
-
391
- setcardsarray([...temparray]);
392
- };
393
- // Example items, to simulate fetching from another resources.
394
- const handlePageClick = (event) => {
395
- props.scrolltotop();
396
- var tempProductFilterObjContext = { ...ProductFilterObjContext };
397
- tempProductFilterObjContext.page = event?.selected;
398
- setProductFilterObjContext({ ...tempProductFilterObjContext });
399
- var pasturl = '';
400
- if (props.grouptypeprops != undefined) {
401
- if (props.collectionidprops != undefined) {
402
- pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
403
- }
404
- }
405
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
406
- };
407
- function PaginatedItems({ itemsPerPage }) {
408
- const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
409
- return (
410
- <div class="d-flex containerClassName">
411
- <ReactPaginate
412
- breakLabel="..."
413
- forcePage={fetchProductsQuery?.data?.data?.page}
414
- nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
415
- onPageChange={handlePageClick}
416
- active
417
- pageRangeDisplayed={5}
418
- pageCount={pageCount}
419
- previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
420
- renderOnZeroPageCount={null}
421
- pageLinkClassName={section_cssstyles.pageLinkClassName}
422
- nextLinkClassName={section_cssstyles.nextLinkClassName}
423
- previousLinkClassName={section_cssstyles.previousLinkClassName}
424
- activeClassName={section_cssstyles.activeClassName}
425
- activeLinkClassName={section_cssstyles.activeLinkClassName}
426
- previousClassName={section_cssstyles.previousClassName}
427
- nextClassName={section_cssstyles.nextClassName}
428
- disabledClassName={section_cssstyles.disabledClassName}
429
- disabledLinkClassName={section_cssstyles.disabledLinkClassName}
430
- />
431
- </div>
432
- );
433
- }
434
- const section_cssstyles = {
435
- disabledClassName: css({
436
- cursor: 'not-allowed',
437
- ':hover': {
438
- cursor: 'not-allowed',
439
- color: sectionproperties.paginationColor,
440
- },
441
- }),
442
- disabledLinkClassName: css({
443
- cursor: 'not-allowed',
444
- ':hover': {
445
- cursor: 'not-allowed',
446
- color: sectionproperties.paginationColor,
447
- },
448
- }),
449
- pageLinkClassName: css({
450
- minWidth: sectionproperties.paginationContainerWidth + 'vh',
451
- height: sectionproperties.paginationContainerHeight + 'vh',
452
- padding: '17px',
453
- display: 'flex',
454
- alignItems: 'center',
455
- justifyContent: 'center',
456
- color: sectionproperties.paginationColor,
457
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
458
- transition: '.3s',
459
- ':hover': {
460
- color: sectionproperties.paginationColoronHover,
461
- borderColor: sectionproperties.paginationColoronHover,
462
- },
463
- }),
464
- activeClassName: css({
465
- color: sectionproperties.paginationActiveColor,
466
- borderColor: sectionproperties.paginationActiveColor,
467
- }),
468
- activeLinkClassName: css({
469
- color: sectionproperties.paginationActiveColor,
470
- borderColor: sectionproperties.paginationActiveColor,
471
- }),
472
- previousClassName: css({
473
- width: sectionproperties.paginationContainerWidth + 'vh',
474
- height: sectionproperties.paginationContainerHeight + 'vh',
475
- padding: '17px',
476
- display: 'flex',
477
- alignItems: 'center',
478
- justifyContent: 'center',
479
- color: sectionproperties.paginationColor,
480
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
481
- transition: '.3s',
482
- ':hover': {
483
- color: sectionproperties.paginationColoronHover,
484
- borderColor: sectionproperties.paginationColoronHover,
485
- },
486
- }),
487
- nextClassName: css({
488
- width: sectionproperties.paginationContainerWidth + 'vh',
489
- height: sectionproperties.paginationContainerHeight + 'vh',
490
- padding: '17px',
491
- display: 'flex',
492
- alignItems: 'center',
493
- justifyContent: 'center',
494
- color: sectionproperties.paginationColor,
495
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
496
- transition: '.3s',
497
- ':hover': {
498
- color: sectionproperties.paginationColoronHover,
499
- borderColor: sectionproperties.paginationColoronHover,
500
- },
501
- }),
502
- previousLinkClassName: css({
503
- fontSize: sectionproperties.paginationFontSize + 'px',
504
- color: sectionproperties.paginationColor,
505
- transition: '.3s',
506
- ':hover': {
507
- color: sectionproperties.paginationColoronHover,
508
- },
509
- }),
510
- nextLinkClassName: css({
511
- fontSize: sectionproperties.paginationFontSize + 'px',
512
- color: sectionproperties.paginationColor,
513
- transition: '.3s',
514
- ':hover': {
515
- color: sectionproperties.paginationColoronHover,
516
- },
517
- }),
518
- sectiontitlespan: css({
519
- ':after': {
520
- height: '5px',
521
- width: sectionproperties.sectitle_lineafterwidth + '%',
522
- backgroundColor: sectionproperties.linebgcolor,
523
- },
524
- }),
525
- line_left: css({
526
- height: '1px',
527
- position: 'relative',
528
- flex: '1 1 auto',
529
- minWidth: '10%',
530
- background: sectionproperties.linebgcolor,
531
- }),
532
- line_right: css({
533
- height: '1px',
534
- position: 'relative',
535
- flex: '1 1 auto',
536
- minWidth: '10%',
537
- background: sectionproperties.linebgcolor,
538
- }),
539
- cards_sections: css({
540
- paddingLeft: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
541
- paddingRight: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
542
- paddingTop: sectionproperties.paddingTop + 'px',
543
- paddingBottom: sectionproperties.paddingBottom + 'px',
544
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
545
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
546
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
547
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
548
- borderColor: sectionproperties.sectioncardbordercolor,
549
- border: sectionproperties.sectioncardborderwidth + 'px solid',
550
- }),
551
- filterbtn: css({
552
- width: sectionproperties.filterbtn_Width + 'px',
553
- height: sectionproperties.filterbtn_Height + 'px',
554
- background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
555
- borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
556
- borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
557
- borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
558
- borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
559
- color: sectionproperties.filterbtn_Textcolor,
560
- boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
561
- marginTop: sectionproperties.filterbtn_marginTop + 'px',
562
- marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
563
- marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
564
- marginRight: sectionproperties.filterbtn_marginRight + 'px',
565
- transition: '.3s',
566
- ':hover': {
567
- background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
568
- color: sectionproperties.filterbtn_Textcoloronhover,
569
- },
570
- }),
571
- viewmorebtn: css({
572
- width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
573
- height: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
574
- background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
575
- borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
576
- color: sectionproperties.viewmorebtn_Textcolor,
577
- fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
578
- fontWeight: sectionproperties.viewmorebtn_fontWeight,
579
- textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
580
- transition: '.3s',
581
- ':hover': {
582
- background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
583
- color: sectionproperties.viewmorebtn_Textcoloronhover,
584
- },
585
- }),
586
- loadbtn: css({
587
- fontSize: sectionproperties.generaltext_fontSize + 'px',
588
- color: sectionproperties.generaltext_fontColor,
589
- fontWeight: sectionproperties.generaltext_fontWeight,
590
- textDecoration: 'underline',
591
- transition: '.3s',
592
- ':hover': {
593
- color: sectionproperties.text_secondarycolor,
594
- },
595
- }),
596
- };
597
- const SectionTitle = () => {
598
- return (
599
- <div
600
- class="d-flex align-items-center flex-row"
601
- style={{
602
- position: 'relative',
603
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
604
- width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
605
- }}
606
- >
607
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
608
- <p
609
- class={
610
- sectionproperties.sectiontitlefontfamily == 'Pacifico'
611
- ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
612
- : sectionproperties.sectiontitlefontfamily == 'Playfair'
613
- ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
614
- : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
615
- ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
616
- : sectionproperties.sectiontitlefontfamily == 'Quicksand'
617
- ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
618
- : sectionproperties.sectiontitlefontfamily == 'Satisfy'
619
- ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
620
- : sectionproperties.sectiontitlefontfamily == 'ASUL'
621
- ? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
622
- : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
623
- }
624
- style={{
625
- color: sectionproperties.sectionTitleColor,
626
- fontWeight: sectionproperties.sectionTitleFontWeight,
627
- paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
628
- paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
629
- textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
630
- }}
631
- >
632
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
633
- </p>
634
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
635
- </div>
636
- );
637
- };
638
- const cardsrender = () => {
639
- return (
640
- <div
641
- class={
642
- sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical'
643
- ? sectionproperties.numofcols == '2'
644
- ? 'col-lg-10 col-md-12 col-sm-12 p-sm-0'
645
- : 'col-lg-9 col-md-12 col-sm-12 p-sm-0'
646
- : 'row m-0 w-100 p-sm-0'
647
- }
648
- >
649
- {sectionproperties.length != 0 && (
650
- <div className="row m-0 w-100 d-flex align-items-center p-sm-0">
651
- <div class="col-lg-12 p-0">
652
- <div
653
- className="row ml-0 mr-0 w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2"
654
- style={{
655
- marginTop: sectionproperties.showbadge == 'Show' ? 0 : sectionproperties.sectionTitleMarginTop + 'px',
656
- marginBottom: sectionproperties.sectiontitledirection == 'Horizontal' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
657
- paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
658
- paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
659
- }}
660
- >
661
- <div
662
- class={
663
- sectionproperties.viewmorebtnshow == 'Show'
664
- ? sectionproperties.sectiontitleposition == 'Centered'
665
- ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
666
- : ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
667
- : sectionproperties.showFilter == 'show'
668
- ? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
669
- : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
670
- }
671
- >
672
- <div class="row m-0 w-100">
673
- {sectionproperties.showbadge == 'Show' && (
674
- <div
675
- class={' col-lg-12 p-0 d-flex align-items-center '}
676
- style={{
677
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
678
- }}
679
- >
680
- <p
681
- class="m-0 p-0 allcentered"
682
- style={{
683
- fontSize: sectionproperties.badge_fontsize + 'px',
684
- background: sectionproperties.badge_bgcolor,
685
- minWidth: sectionproperties.badge_width + 'px',
686
- height: sectionproperties.badge_height + 'px',
687
- color: sectionproperties.badge_color,
688
- borderRadius: sectionproperties.badge_borderradius + 'px',
689
- border: sectionproperties.badgeborderwidth + 'px solid ' + sectionproperties.badgebordercolor,
690
- }}
691
- >
692
- {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
693
- </p>
694
- </div>
695
- )}
696
- {sectionproperties.sectiontitleshow == 'Show' && (
697
- <div
698
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex d-md-none align-items-center '}
699
- style={{
700
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
701
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
702
- marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
703
- marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
704
- }}
705
- >
706
- {SectionTitle()}
707
- </div>
708
- )}
709
- {sectionproperties.sectiontitleshow == 'Show' && (
710
- <div
711
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-none d-md-flex align-items-center '}
712
- style={{
713
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
714
- fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
715
- marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
716
- marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
717
- }}
718
- >
719
- {SectionTitle()}
720
- </div>
721
- )}
722
- {sectionproperties.sectiontitledirection == 'Vertical' && (
723
- <div class="col-lg-12 p-0">
724
- {sectionproperties.viewmorebtnshow == 'Show' && (
725
- <button
726
- class={
727
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
728
- ? sectionproperties.sectiontitleposition == 'Centered'
729
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
730
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
731
- : sectionproperties.sectiontitleposition == 'Centered'
732
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
733
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
734
- }
735
- onClick={() => {
736
- if (fetchingtype == 'products') {
737
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
738
- routingcountext(
739
- StaticPagesLinksContext.GeneralProductsComponent,
740
- true,
741
- 'collections/' + ProductsFetchingTypeSectionObj.collectionid,
742
- );
743
- } else {
744
- routingcountext(
745
- StaticPagesLinksContext.GeneralProductsComponent,
746
- true,
747
- encodeURIComponent(JSON.stringify(ProductFilterObjContext)),
748
- );
749
- }
750
- } else {
751
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
752
- }
753
- }}
754
- style={{
755
- flexDirection: 'row',
756
- }}
757
- >
758
- <span class={'d-flex justify-content-center align-items-center'}>
759
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'}>
760
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
761
- </span>
762
- {sectionproperties.showIcon == 'Show' && (
763
- <i
764
- class={
765
- sectionproperties.sectiontitleposition == 'Centered'
766
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
767
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
768
- }
769
- style={{
770
- marginLeft: 5,
771
- marginRight: 5,
772
- }}
773
- >
774
- {langdetect == 'en' ? (
775
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
776
- ) : (
777
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
778
- )}
779
- </i>
780
- )}
781
- </span>
782
- </button>
783
- )}
784
- </div>
785
- )}
786
- {sectionproperties.prodCatShow == 'Show' && (
787
- <div
788
- class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center d-md-none '}
789
- style={{
790
- justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
791
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
792
- paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
793
- paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
794
- }}
795
- >
796
- <p
797
- class={
798
- sectionproperties.descFontFamily == 'Pacifico'
799
- ? ' PacificoFont m-0 p-0 wordbreak '
800
- : sectionproperties.descFontFamily == 'Playfair'
801
- ? ' PlayfairFont m-0 p-0 wordbreak '
802
- : sectionproperties.descFontFamily == 'Great Vibes'
803
- ? ' GreatvibesFont m-0 p-0 wordbreak '
804
- : sectionproperties.descFontFamily == 'Quicksand'
805
- ? ' QuicksandFont m-0 p-0 wordbreak'
806
- : sectionproperties.descFontFamily == 'ASUL'
807
- ? ' ASUL m-0 p-0 wordbreak '
808
- : ' m-0 p-0 wordbreak '
809
- }
810
- style={{
811
- color: sectionproperties.prodCatColor,
812
- fontWeight: sectionproperties.prodCatFontWeight,
813
- textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
814
- fontSize: sectionproperties.prodCatFontSize + 'px',
815
- }}
816
- >
817
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
818
- </p>
819
- </div>
820
- )}
821
- {sectionproperties.prodCatShow == 'Show' && (
822
- <div
823
- class={' col-lg-12 col-md-12 col-sm-12 align-items-center p-0 d-none d-md-flex '}
824
- style={{
825
- justifyContent: sectionproperties.showFilter == 'show' ? 'start' : sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
826
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
827
- paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
828
- paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
829
- }}
830
- >
831
- <p
832
- class={
833
- sectionproperties.descFontFamily == 'Pacifico'
834
- ? ' PacificoFont m-0 p-0 wordbreak '
835
- : sectionproperties.descFontFamily == 'Playfair'
836
- ? ' PlayfairFont m-0 p-0 wordbreak '
837
- : sectionproperties.descFontFamily == 'Great Vibes'
838
- ? ' GreatvibesFont m-0 p-0 wordbreak '
839
- : sectionproperties.descFontFamily == 'Quicksand'
840
- ? ' QuicksandFont m-0 p-0 wordbreak '
841
- : sectionproperties.descFontFamily == 'ASUL'
842
- ? ' ASUL m-0 p-0 wordbreak '
843
- : ' m-0 p-0 wordbreak '
844
- }
845
- style={{
846
- color: sectionproperties.prodCatColor,
847
- fontWeight: sectionproperties.prodCatFontWeight,
848
- textAlign:
849
- sectionproperties.showFilter == 'show'
850
- ? langdetect == 'en'
851
- ? 'left'
852
- : 'right'
853
- : sectionproperties.descriptionCentered == 'Centered'
854
- ? 'center'
855
- : langdetect == 'en'
856
- ? 'left'
857
- : 'right',
858
- fontSize: sectionproperties.prodCatFontSizeResp + 'px',
859
- }}
860
- >
861
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
862
- </p>
863
- </div>
864
- )}
865
- </div>
866
- </div>
867
- <div
868
- class={
869
- sectionproperties.sectiontitleposition == 'Centered'
870
- ? sectionproperties.showFilter == 'show'
871
- ? 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0'
872
- : 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
873
- : 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
874
- }
875
- style={{
876
- marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0,
877
- }}
878
- >
879
- <div
880
- class={
881
- sectionproperties.sectiontitleposition == 'Centered'
882
- ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto '
883
- : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
884
- }
885
- >
886
- {sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && (
887
- <button
888
- class={
889
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
890
- ? sectionproperties.sectiontitleposition == 'Centered'
891
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
892
- : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
893
- : sectionproperties.sectiontitleposition == 'Centered'
894
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
895
- : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
896
- }
897
- onClick={() => {
898
- if (fetchingtype == 'products') {
899
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
900
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
901
- } else {
902
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
903
- }
904
- } else {
905
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
906
- }
907
- }}
908
- style={{
909
- flexDirection: 'row',
910
- }}
911
- >
912
- <span
913
- class={
914
- sectionproperties.sectiontitleposition == 'Centered'
915
- ? 'd-flex justify-content-center align-items-center'
916
- : 'd-flex justify-content-center align-items-center d-md-none'
917
- }
918
- >
919
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}>
920
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
921
- </span>
922
- {sectionproperties.showIcon == 'Show' && (
923
- <i
924
- class={
925
- sectionproperties.sectiontitleposition == 'Centered'
926
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
927
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
928
- }
929
- style={{
930
- marginLeft: 5,
931
- marginRight: 5,
932
- }}
933
- >
934
- {langdetect == 'en' ? (
935
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
936
- ) : (
937
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
938
- )}
939
- </i>
940
- )}
941
- </span>
942
- <span
943
- class={
944
- sectionproperties.sectiontitleposition == 'Centered'
945
- ? 'd-none align-items-center justify-content-center'
946
- : 'd-none d-md-flex align-items-center justify-content-center'
947
- }
948
- >
949
- <i class="h-100 d-flex align-items-center justify-content-center">
950
- {langdetect == 'en' ? (
951
- <HiOutlineArrowRight size={sectionproperties.viewmorebtn_fontSize} color={sectionproperties.viewmorebtn_Textcolor} />
952
- ) : (
953
- <HiOutlineArrowLeft size={sectionproperties.viewmorebtn_fontSize} color={sectionproperties.viewmorebtn_Textcolor} />
954
- )}
955
- </i>
956
- </span>
957
- </button>
958
- )}
959
- {sectionproperties.showFilter == 'show' && (
960
- <button
961
- class={' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '}
962
- onClick={() => {
963
- setopenFilterSlider(true);
964
- // var element = document.getElementById('filterslider');
965
- // element.classList.add(filterstyles.filterslider_container_opened);
966
- }}
967
- >
968
- <div class={`${section_cssstyles.filterbtn}`}>
969
- <i class="h-100 d-flex align-items-center justify-content-center">
970
- <FiFilter />
971
- </i>
972
- </div>
973
- </button>
974
- )}
975
- </div>
976
- </div>
977
- {sectionproperties.showseparator == 'Show' && (
978
- <div class="col-lg-12 p-0">
979
- <hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
980
- </div>
981
- )}
982
- </div>
983
- </div>
984
- {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
985
- <div className="row m-0 w-100 d-flex align-items-center" style={{ height: '30vh' }}>
986
- <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
987
- <FiLayers
988
- style={{
989
- fontSize: sectionproperties.noprod_iconfontSize + 'px',
990
- color: sectionproperties.noprod_iconcolor,
991
- }}
992
- />
993
- <p
994
- class="m-0 p-0 mt-2"
995
- style={{
996
- fontWeight: sectionproperties.noprod_fontWeight,
997
- color: sectionproperties.noprod_color,
998
- fontSize: sectionproperties.noprod_fontSize + 'px',
999
- }}
1000
- >
1001
- {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
1002
- </p>
1003
- </div>
1004
- </div>
1005
- )}
1006
- {cardsarray.length != 0 && (
1007
- <div class="col-lg-12 p-0">
1008
- {StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
1009
- if (item.tabexsectioninfo != null) {
1010
- if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
1011
- var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1012
- return (
1013
- <div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 px-1025-1 pl-md-0 pr-md-0 '}>
1014
- {sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && (
1015
- <div
1016
- class={
1017
- langdetect == 'en'
1018
- ? sectionproperties.paddingLeft != 0
1019
- ? 'col-lg-12 p-0 pl-sm-2 pl-md-2'
1020
- : sectionproperties.paddingRight != 0
1021
- ? 'col-lg-12 p-0 pr-md-2'
1022
- : 'col-lg-12 p-0 '
1023
- : sectionproperties.paddingRight != 0
1024
- ? 'col-lg-12 p-0 pr-sm-2 pr-md-2'
1025
- : sectionproperties.paddingLeft != 0
1026
- ? 'col-lg-12 p-0 pl-md-2'
1027
- : 'col-lg-12 p-0 '
1028
- }
1029
- >
1030
- <ScrollMenu
1031
- transitionBehavior={'auto'}
1032
- wrapperClassName={''}
1033
- itemClassName={
1034
- item.tabexsectioninfo.sectioncompname == 'Productcard6'
1035
- ? 'scrollmenuclassnameitemProductcard6'
1036
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1037
- ? 'scrollmenuclassnameitemProductcard_with_circularhover'
1038
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1039
- ? 'scrollmenuclassnameitemProductcard_with_circularbg'
1040
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1041
- ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
1042
- : // : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
1043
- // ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
1044
- item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
1045
- ? 'scrollmenuclassnameitemCategorycard_withtext'
1046
- : // : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
1047
- // ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
1048
- item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
1049
- ? 'scrollmenuclassnameitemProductcard_with_variants'
1050
- : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
1051
- ? 'scrollmenuclassnameitemProductcarddefault'
1052
- : // : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
1053
- // ? 'scrollmenuclassnameitemSimpleproductcard'
1054
- item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
1055
- ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
1056
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
1057
- ? 'scrollmenuclassnameitemProductcard_with_textonhover'
1058
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
1059
- ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
1060
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1061
- ? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
1062
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
1063
- ? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
1064
- : item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
1065
- ? 'scrollmenuclassnameitemProductcard_Horizontalcard'
1066
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1067
- ? 'scrollmenuclassnameitemCategorycard_fullimage'
1068
- : // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
1069
- // ? 'scrollmenuclassnameitemClassiccategorycard'
1070
- // item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1071
- // ? 'scrollmenuclassnameitemModernProductCard'
1072
- // : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1073
- // ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
1074
- item.tabexsectioninfo.sectioncompname == 'Productcard7'
1075
- ? 'scrollmenuclassnameitemProductcard7'
1076
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1077
- ? 'scrollmenuclassnameitemMenuCard'
1078
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1079
- ? 'scrollmenuclassnameitemStylishProductCard'
1080
- : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
1081
- ? 'scrollmenuclassnameitemProductCardWithTextOnImage'
1082
- : item.tabexsectioninfo.sectioncompname == 'Card23'
1083
- ? 'scrollmenuclassnameitemCard23'
1084
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1085
- ? 'scrollmenuclassnameitemCard20'
1086
- : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
1087
- ? 'scrollmenuclassnameitemModernCardWithQuantityButton'
1088
- : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
1089
- ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
1090
- : item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants'
1091
- ? 'scrollmenuclassnameitemCircleCardWithVariants'
1092
- : // : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
1093
- // ? 'scrollmenuclassnameitemUpSlideEffectCard'
1094
- item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage'
1095
- ? 'scrollmenuclassnameitemCategoryCardTextOnImage'
1096
- : ''
1097
- }
1098
- scrollContainerClassName={sectionproperties.showscrollbar == 'Show' ? 'scrollmenuclasssubscrollbar2' : 'scrollmenuclasssubscrollbar'}
1099
- >
1100
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
1101
- if (sectionproperties.overallnumberofcards == 0) {
1102
- return (
1103
- <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
1104
- <Sectioncomp
1105
- sectiontypeprops={'horizontal'}
1106
- fetchingtypeprops={fetchingtype}
1107
- cardinfoindexprops={cardinfoindex}
1108
- cardinfoitemprops={cardinfoitem}
1109
- sectionindexprops={index}
1110
- sectionidprops={item.sectionid}
1111
- actions={actions}
1112
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1113
- />
1114
- </div>
1115
- );
1116
- } else if (sectionproperties.overallnumberofcards != 0) {
1117
- if (cardinfoindex < sectionproperties.overallnumberofcards) {
1118
- return (
1119
- <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
1120
- <Sectioncomp
1121
- sectiontypeprops={'horizontal'}
1122
- fetchingtypeprops={fetchingtype}
1123
- cardinfoindexprops={cardinfoindex}
1124
- cardinfoitemprops={cardinfoitem}
1125
- sectionindexprops={index}
1126
- sectionidprops={item.sectionid}
1127
- actions={actions}
1128
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1129
- />
1130
- </div>
1131
- );
1132
- }
1133
- }
1134
- })}
1135
- {/* {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
1136
- <button
1137
- className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center mt-4 '}
1138
- ref={ref}
1139
- onClick={() => fetchProductsQuery.fetchNextPage()}
1140
- disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1141
- >
1142
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1143
- </button>
1144
- )} */}
1145
- </ScrollMenu>
1146
- </div>
1147
- )}
1148
-
1149
- {sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && (
1150
- <div
1151
- className="row m-0 w-100 d-flex "
1152
- style={{
1153
- justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start',
1154
- }}
1155
- >
1156
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
1157
- // if (sectionproperties.overallnumberofcards != 0) {
1158
- // if (cardinfoindex < sectionproperties.overallnumberofcards) {
1159
- return (
1160
- <div
1161
- class={
1162
- sectionproperties.numberOfColsvertical == '1'
1163
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1164
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 '
1165
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1166
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 '
1167
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1168
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1169
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1170
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1171
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1172
- ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1173
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1174
- ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1175
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1176
- ? ' 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'
1177
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1178
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1179
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1180
- ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1181
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1182
- ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1183
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1184
- ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1185
- : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1186
- : sectionproperties.numberOfColsvertical == '2'
1187
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1188
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1189
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft '
1190
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1191
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1192
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1193
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1194
- ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1195
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1196
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1197
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1198
- ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1199
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1200
- ? ' 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 '
1201
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1202
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1203
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1204
- ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0'
1205
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1206
- ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1207
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1208
- ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1209
- : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0'
1210
- : sectionproperties.numberOfColsvertical == '3'
1211
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1212
- ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center '
1213
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1214
- ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1215
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1216
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1217
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1218
- ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1219
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1220
- ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1221
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1222
- ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1223
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1224
- ? ' 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 '
1225
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1226
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1227
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1228
- ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1229
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1230
- ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1231
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1232
- ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1233
- : ' col-xl-4 col-lg-4 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1234
- : sectionproperties.numberOfColsvertical == '4'
1235
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1236
- ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1237
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1238
- ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1239
- : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1240
- ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1241
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1242
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1243
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1244
- ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1245
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1246
- ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1247
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1248
- ? ' 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 '
1249
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1250
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1251
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1252
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 '
1253
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1254
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1255
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1256
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1257
- : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 '
1258
- : sectionproperties.numberOfColsvertical == '12'
1259
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1260
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1261
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1262
- ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1263
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1264
- ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1265
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1266
- ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1267
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1268
- ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1269
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1270
- ? ' 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 '
1271
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1272
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1273
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1274
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1275
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1276
- ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1277
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1278
- ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1279
- : ''
1280
- : sectionproperties.numberOfColsvertical == '6'
1281
- ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1282
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1283
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1284
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1285
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1286
- ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1287
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1288
- ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1289
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1290
- ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1291
- : item.tabexsectioninfo.sectioncompname == 'Card20'
1292
- ? ' 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 '
1293
- : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1294
- ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1295
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1296
- ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1297
- : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1298
- ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1299
- : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly'
1300
- ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1301
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1302
- ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1303
- : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1304
- : ''
1305
- }
1306
- >
1307
- <Sectioncomp
1308
- sectiontypeprops={'horizontal'}
1309
- sectiontypeprops2={'vertical'}
1310
- fetchingtypeprops={fetchingtype}
1311
- cardinfoindexprops={cardinfoindex}
1312
- cardinfoitemprops={cardinfoitem}
1313
- sectionindexprops={index}
1314
- sectionidprops={item.sectionid}
1315
- actions={actions}
1316
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1317
- numberOfColsvertical={sectionproperties.numberOfColsvertical}
1318
- />
1319
- </div>
1320
- );
1321
- // }
1322
- })}
1323
- {fetchingtype == 'products' && sectionproperties.showpagination == 'Show' && (
1324
- <div className="w-100 col-lg-12 allcentered mt-2">
1325
- {/* <button
1326
- className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
1327
- // ref={ref}
1328
- onClick={() => fetchProductsQuery.fetchNextPage()}
1329
- disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1330
- >
1331
- {fetchProductsQuery.isFetchingNextPage ? (
1332
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1333
- ) : fetchProductsQuery.hasNextPage ? (
1334
- langdetect == 'en' ? (
1335
- 'Load more'
1336
- ) : (
1337
- 'المزيد'
1338
- )
1339
- ) : (
1340
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1341
- )}
1342
- </button> */}
1343
- <PaginatedItems itemsPerPage={5} />
1344
- </div>
1345
- )}
1346
- </div>
1347
- )}
1348
- </div>
1349
- );
1350
- }
1351
- }
1352
- })}
1353
- </div>
1354
- )}
1355
- </div>
1356
- )}
1357
- </div>
1358
- );
1359
- };
1360
- return (
1361
- <div
1362
- ref={refscr}
1363
- class={' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto w-md-100 w-sm-100 '}
1364
- style={{
1365
- zIndex: 2,
1366
- background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
1367
- backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
1368
- backgroundSize: 'cover',
1369
- width: sectionproperties.width + 'vw',
1370
- boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
1371
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
1372
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
1373
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
1374
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
1375
- marginTop: sectionproperties.marginTop + 'px',
1376
- marginBottom: sectionproperties.marginBottom + 'px',
1377
- }}
1378
- >
1379
- {sectionproperties.length != 0 && (
1380
- <div
1381
- class={' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}
1382
- style={{
1383
- paddingLeft: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px') : 0,
1384
- paddingRight: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px') : 0,
1385
- }}
1386
- >
1387
- {sectionproperties.showFilter == 'show' && (
1388
- <div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex ' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
1389
- <Filter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
1390
- </div>
1391
- )}
1392
- {fetchingtype == 'custom' && <>{cardsrender()}</>}
1393
- {fetchingtype != 'custom' && cardsrender()}
1394
- </div>
1395
- )}
1396
- </div>
1397
- );
1398
- };
1399
- export default CardsSection;