tabexseriescomponents 0.2.1280 → 0.2.1283

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 +40 -258
  2. package/dist/index.esm.js +40 -258
  3. package/dist/index.umd.js +40 -258
  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,2065 +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 VariantFilter from '../../../StaticPages/Filter/VariantFilter.jsx';
6
- import CollectionsFilterHorizontal from '../../../StaticPages/Filter/CollectionsFilterHorizontal.jsx';
7
- import { useInView } from 'react-intersection-observer';
8
- import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
9
- import { serverbaselink, image_serverbaselink } from '../../../../../Env.js';
10
- import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
11
- import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
12
- import { FiSliders } from '@react-icons/all-files/fi/FiSliders';
13
- import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';
14
- import { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';
15
- import { HiOutlineArrowRight } from '@react-icons/all-files/hi/HiOutlineArrowRight';
16
- import { HiOutlineArrowLeft } from '@react-icons/all-files/hi/HiOutlineArrowLeft';
17
- import ReactPaginate from 'react-paginate';
18
- import { CircularProgress } from 'react-cssfx-loading';
19
-
20
- const CardsSection = (props) => {
21
- const refscr = createRef();
22
- const { ref, inView } = useInView();
23
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
24
- const lang = props.actions.lang;
25
- const langdetect = props.actions.langdetect;
26
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
27
- const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
28
- const routingcountext = props.actions.routingcountext;
29
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
30
- const ProductFilterObjContext = props.actions.ProductFilterObjContext;
31
- const setProductFilterObjContext = props.actions.setProductFilterObjContext;
32
- const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
33
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
34
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
35
- const fetchProductsQuery = props.actions.fetchProductsQuery;
36
- const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
37
- const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
38
- const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
39
- const setfetchingtype = props.actions.setfetchingtype;
40
- const fetchingtype = props.actions.fetchingtype;
41
- const addtofavoritescontext = props.actions.addtofavoritescontext;
42
- const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
43
- const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
44
- const FetchVendorsQuery = props.actions.FetchVendorsQuery;
45
- const ikimagecredcontext = props.actions.ikimagecredcontext;
46
- const sortbycontext = props.actions.sortbycontext;
47
- const setsortbycontext = props.actions.setsortbycontext;
48
- const [openFilterSlider, setopenFilterSlider] = useState(false);
49
- const actions = props.actions;
50
- const [sectionproperties, setsectionproperties] = useState('');
51
- const [cardsarray, setcardsarray] = useState([]);
52
- const [sectionitem, setsectionitem] = useState('');
53
- const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
54
- const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
55
- const [perpageItems, setperpageItems] = useState(12);
56
- const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
57
- const authdetailsContext = props.actions.authdetailsContext;
58
-
59
- useEffect(() => {
60
- var productfilerobjtemp = ProductFilterObjContext;
61
- if (props.filterparamsprops != undefined) {
62
- var filterpar = decodeURIComponent(props.filterparamsprops);
63
- var filterparsed = JSON.parse(filterpar);
64
-
65
- if (filterparsed != undefined) {
66
- productfilerobjtemp = filterparsed;
67
- setProductFilterObjContext(filterparsed);
68
- }
69
- }
70
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
71
- if (sectionitem.sectionid == props.sectionidprops) {
72
- var secpropobj = {};
73
- setsectionitem(sectionitem);
74
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
75
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
76
- });
77
- setsectionproperties({ ...secpropobj });
78
-
79
- if (props.srcfromprops == 'GeneralProductsComponent') {
80
- setfetchingtype('products');
81
- var lcproductfetchingtype = 'Random';
82
-
83
- if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
84
- lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
85
- }
86
- setProductsFetchingTypeSectionObj({
87
- productfetchingtype: lcproductfetchingtype,
88
- collectionid: props.collectionidprops,
89
- grouptype: props.grouptypeprops,
90
- grouptyperefid: props.grouptyperefidprops,
91
- });
92
- } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
93
- setfetchingtype(props.grouptypeprops);
94
- } else if (props.srcfromprops == 'Innervendor') {
95
- setfetchingtype('vendors');
96
- } else {
97
- setfetchingtype(sectionitem.fetchingtype);
98
- setProductsFetchingTypeSectionObj({
99
- productfetchingtype: sectionitem.productsfetchingtype,
100
- collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
101
- grouptype: props.grouptypeprops,
102
- grouptyperefid: props.grouptyperefidprops,
103
- });
104
- }
105
- }
106
- });
107
- }, [StatePagePropertiesContext]);
108
- useEffect(() => {
109
- if (sectionproperties.length != 0) {
110
- if (cardsarray.length == 0) {
111
- if (fetchingtype == 'collections') {
112
- if (fetchcollectionsQueryContext.isSuccess) {
113
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
114
- }
115
- } else if (fetchingtype == 'products') {
116
- if (fetchProductsQuery.isSuccess) {
117
- var allpagesarr = [];
118
- fetchProductsQuery?.data?.data?.products?.forEach((item) => {
119
- allpagesarr.push(item);
120
- });
121
- cardobjassigner(allpagesarr);
122
- }
123
- } else if (fetchingtype == 'vendors') {
124
- if (FetchVendorsQuery.isSuccess) {
125
- cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
126
- }
127
- }
128
- }
129
- }
130
- }, [sectionproperties]);
131
- useEffect(() => {
132
- if (fetchingtype?.length != 0) {
133
- var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
134
- if (fetchingtype == 'collections') {
135
- if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
136
- setParentCollectionsForCollectionQueryArr('all');
137
- } else {
138
- setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
139
- }
140
- }
141
- if (fetchingtype == 'products') {
142
- var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
143
- tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
144
- if (
145
- ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
146
- ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
147
- ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
148
- ) {
149
- } else {
150
- if (tempfetchproductsfilerobjcontext.collections != undefined) {
151
- tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
152
- }
153
- }
154
- tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
155
- tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
156
- setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
157
- }
158
-
159
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
160
- }
161
- }, [fetchingtype, ProductsFetchingTypeSectionObj]);
162
- useEffect(() => {
163
- if (fetchingtype?.length != 0) {
164
- if (fetchingtype == 'categories') {
165
- var categories = [];
166
- if (fetchCategoriesQueryContext?.isSuccess) {
167
- categories = fetchCategoriesQueryContext?.data?.data?.categories;
168
- }
169
- cardobjassigner(categories);
170
- }
171
-
172
- if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
173
- var categories = [];
174
- if (fetchCategoriesQueryContext?.isSuccess) {
175
- categories = fetchCategoriesQueryContext?.data?.data?.categories;
176
- }
177
- // if (fetchAuthorizationQueryContext?.isSuccess) {
178
- // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
179
- // alert(JSON.stringify(categories));
180
- var parentcollections = [];
181
- categories?.forEach(function (catitem, catindex) {
182
- catitem?.parentcolletions.forEach(function (parentcolitem) {
183
- if (parentcolitem.isshowntocustomers == 1) {
184
- parentcolitem.categoryid = catitem.categoryid;
185
- parentcollections.push(parentcolitem);
186
- }
187
- });
188
- });
189
- if (fetchingtype == 'parentcollections') {
190
- if (
191
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
192
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
193
- sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
194
- ) {
195
- var arrafterfilter = [];
196
- parentcollections.forEach(function (parentcolitem, parcolindex) {
197
- if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
198
- arrafterfilter.push(parentcolitem);
199
- }
200
- });
201
- parentcollections = arrafterfilter;
202
- }
203
- if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
204
- var arrafterfilter = [];
205
- parentcollections.forEach(function (parentcolitem, parcolindex) {
206
- if (parentcolitem.categoryid == props.collectionidprops) {
207
- arrafterfilter.push(parentcolitem);
208
- }
209
- });
210
- parentcollections = arrafterfilter;
211
- }
212
- }
213
-
214
- if (fetchingtype == 'innercategories') {
215
- var arrafterfilter = [];
216
- parentcollections.forEach(function (parentcolitem, parcolindex) {
217
- if (parentcolitem.categoryid == props.collectionidprops) {
218
- arrafterfilter.push(parentcolitem);
219
- }
220
- });
221
- parentcollections = arrafterfilter;
222
- }
223
-
224
- cardobjassigner(parentcollections);
225
- // }
226
- } else if (fetchingtype == 'innerparentcollections') {
227
- var categories = [];
228
- if (fetchCategoriesQueryContext?.isSuccess) {
229
- categories = fetchCategoriesQueryContext?.data?.data?.categories;
230
- }
231
- // if (fetchAuthorizationQueryContext?.isSuccess) {
232
- // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
233
- var collections = [];
234
- categories?.forEach(function (catitem, catindex) {
235
- catitem?.parentcolletions.forEach(function (parentcolitem) {
236
- parentcolitem.categoryid = catitem.categoryid;
237
- parentcolitem?.collections?.forEach(function (collitem, colindex) {
238
- if (collitem.isshowntocustomers == 1) {
239
- collitem.parentcollectionid = parentcolitem.parentcollectionid;
240
- collections.push(collitem);
241
- }
242
- });
243
- });
244
- });
245
- if (fetchingtype == 'innerparentcollections') {
246
- var collectionsafterfilter = [];
247
- collections.forEach(function (colitem, colindex) {
248
- if (colitem.parentcollectionid == props.collectionidprops) {
249
- var iscollexists = false;
250
- collectionsafterfilter.forEach(function (existcolitem) {
251
- if (colitem.collectionid == existcolitem.collectionid) {
252
- iscollexists = true;
253
- }
254
- });
255
- if (iscollexists == false) {
256
- collectionsafterfilter.push(colitem);
257
- }
258
- }
259
- });
260
- collections = collectionsafterfilter;
261
- }
262
- cardobjassigner(collections);
263
- // }
264
- }
265
- }
266
- }, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
267
- useEffect(() => {
268
- if (fetchingtype == 'products') {
269
- if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
270
- var allpagesarr = [];
271
- fetchProductsQuery?.data?.data?.products?.forEach((item) => {
272
- allpagesarr.push(item);
273
- });
274
- if (
275
- fetchProductsQuery?.data?.data?.PerPageProducts != undefined &&
276
- fetchProductsQuery?.data?.data?.PerPageProducts != null &&
277
- fetchProductsQuery?.data?.data?.PerPageProducts?.length != 0
278
- ) {
279
- setperpageItems(fetchProductsQuery?.data?.data?.PerPageProducts);
280
- }
281
- cardobjassigner(allpagesarr);
282
- }
283
- }
284
- }, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
285
- useEffect(() => {
286
- if (fetchingtype == 'collections') {
287
- if (fetchcollectionsQueryContext.isSuccess) {
288
- cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
289
- }
290
- }
291
- }, [fetchcollectionsQueryContext?.isSuccess, fetchcollectionsQueryContext.data]);
292
- useEffect(() => {
293
- if (fetchingtype == 'vendors') {
294
- if (FetchVendorsQuery.isSuccess) {
295
- if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
296
- cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
297
- }
298
- }
299
- }
300
- }, [FetchVendorsQuery.isSuccess]);
301
- useEffect(() => {
302
- favassigner();
303
- }, [favoriteprojectscountContext]);
304
- useEffect(() => {
305
- if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
306
- var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
307
- if (Array.isArray(maincontainerarrayofobjsparsed)) {
308
- setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
309
- }
310
- }
311
- }, [sectionproperties]);
312
- const favassigner = () => {
313
- if (fetchingtype == 'products') {
314
- if (cardsarray.length != 0) {
315
- if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
316
- var tempcardsarray = [...cardsarray];
317
- tempcardsarray.forEach(function (arrayItem, arrayindex) {
318
- arrayItem.IsFavExists = false;
319
- });
320
- tempcardsarray.forEach(function (arrayItem, arrayindex) {
321
- favoriteprojectscountContext.forEach(function (favitem, favindex) {
322
- if (arrayItem.productid == favitem) {
323
- arrayItem.IsFavExists = true;
324
- }
325
- });
326
- });
327
- setcardsarray([...tempcardsarray]);
328
- }
329
- }
330
- }
331
- };
332
- const cardobjassigner = (fetchedarray) => {
333
- var temparray = [];
334
-
335
- fetchedarray.forEach(function (arrayItem, arrayindex) {
336
- var cardobj = {
337
- name: '',
338
- image: '',
339
- };
340
- if (fetchingtype == 'products') {
341
- var itemquantity = parseInt(sectionproperties.startquantity);
342
- var variants_w_options = [];
343
- if (langdetect == 'en') {
344
- cardobj.name = arrayItem.productinfo.name_en;
345
- } else {
346
- cardobj.name = arrayItem.productinfo.name_ar;
347
- }
348
- if (langdetect == 'en') {
349
- cardobj.description = arrayItem.short_description_en;
350
- } else {
351
- cardobj.description = arrayItem.productinfo.description_ar;
352
- }
353
- if (langdetect == 'en') {
354
- cardobj.shortdescription = arrayItem.short_description_ar;
355
- } else {
356
- cardobj.shortdescription = arrayItem.productinfo.description_ar;
357
- }
358
- if (langdetect == 'en') {
359
- cardobj.shortdescription = arrayItem.short_description_en;
360
- } else {
361
- cardobj.shortdescription = arrayItem.short_description_ar;
362
- }
363
- if (arrayItem?.variants_w_options != undefined && arrayItem?.variants_w_options != null) {
364
- variants_w_options = arrayItem?.variants_w_options;
365
- }
366
- if (arrayItem.productinfo.hasvariants == 0) {
367
- fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
368
- if (cartitem.productid == arrayItem.productinfo.productid) {
369
- itemquantity = cartitem.quantity;
370
- }
371
- });
372
- }
373
- cardobj.image = arrayItem.productinfo.productmainimage;
374
- cardobj.producttags = arrayItem.tags;
375
- if (langdetect == 'en') {
376
- cardobj.productfeature = arrayItem?.features?.value_en;
377
- } else {
378
- cardobj.productfeature = arrayItem?.features?.value_ar;
379
- }
380
- cardobj.variants_w_options = variants_w_options;
381
- cardobj.feature_image_url = arrayItem?.features?.featureinfo?.feature_image_url;
382
- cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
383
- cardobj.hassale = arrayItem.productinfo.hassale;
384
- cardobj.productid = arrayItem.productinfo.productid;
385
- cardobj.vendorid = arrayItem.productinfo.vendorproviderid;
386
- cardobj.hasvariants = arrayItem.productinfo.hasvariants;
387
- cardobj.description_en = arrayItem.productinfo.description_en;
388
- cardobj.description_ar = arrayItem.productinfo.description_ar;
389
- if (sectionproperties.removedecimals == 'Without Decimals') {
390
- cardobj.defaultprice = parseFloat(Number(arrayItem.productinfo.defaultprice).toFixed(2));
391
- } else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
392
- cardobj.defaultprice = Math.floor(arrayItem.productinfo.defaultprice).toLocaleString();
393
- } else {
394
- cardobj.defaultprice = arrayItem.productinfo.defaultprice;
395
- }
396
- if (sectionproperties.removedecimals == 'Without Decimals') {
397
- cardobj.defaultsaleprice = parseFloat(Number(arrayItem.productinfo.defaultsaleprice).toFixed(2));
398
- } else if (sectionproperties.removedecimals == 'Without Decimals and Separated With Comma') {
399
- cardobj.defaultsaleprice = Math.floor(arrayItem.productinfo.defaultsaleprice).toLocaleString();
400
- } else {
401
- cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
402
- }
403
- // cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
404
- cardobj.productimages = arrayItem.productinfo.productimages;
405
- cardobj.quantity = itemquantity;
406
- // cardobj.currentquantity = currentquantity;
407
- cardobj.timestamp = arrayItem.productinfo.timestamp;
408
- cardobj.productquantity = arrayItem.productinfo.productquantity;
409
- cardobj.currentquantity = arrayItem.productinfo.currentquantity;
410
- cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
411
- cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
412
- cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
413
- cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
414
- cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
415
- cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
416
- cardobj.productcanrate = arrayItem.productinfo.productcanrate;
417
- cardobj.sku = arrayItem.productinfo.sku;
418
-
419
- if (langdetect == 'en') {
420
- cardobj.currencyname = fetchAuthorizationQueryContext?.data?.data?.currencyname_en;
421
- } else {
422
- cardobj.currencyname = fetchAuthorizationQueryContext?.data?.data?.currencyname_ar;
423
- }
424
- if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
425
- favoriteprojectscountContext.forEach(function (favitem, favindex) {
426
- if (arrayItem.productinfo.productid == favitem) {
427
- cardobj.IsFavExists = true;
428
- }
429
- });
430
- }
431
- } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
432
- cardobj.collectionid = arrayItem.collectionid;
433
- cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
434
- if (langdetect == 'en') {
435
- cardobj.name = arrayItem.title_en;
436
- cardobj.description = arrayItem.description_en;
437
- } else if (langdetect == 'ar') {
438
- cardobj.name = arrayItem.title_ar;
439
- cardobj.description = arrayItem.description_ar;
440
- }
441
- cardobj.image = arrayItem.collectionlogo;
442
- cardobj.producttags = [];
443
- cardobj.productfeatures = [];
444
- } else if (fetchingtype == 'categories') {
445
- cardobj.collectionid = arrayItem.categoryid;
446
- cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
447
- if (langdetect == 'en') {
448
- cardobj.name = arrayItem.title_en;
449
- cardobj.description = arrayItem.description_en;
450
- } else if (langdetect == 'ar') {
451
- cardobj.name = arrayItem.title_ar;
452
- cardobj.description = arrayItem.description_ar;
453
- }
454
- cardobj.image = arrayItem.categorylogo;
455
- cardobj.producttags = [];
456
- cardobj.productfeatures = [];
457
- } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
458
- cardobj.collectionid = arrayItem.parentcollectionid;
459
- cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
460
- if (langdetect == 'en') {
461
- cardobj.name = arrayItem.title_en;
462
- cardobj.description = arrayItem.description_en;
463
- } else if (langdetect == 'ar') {
464
- cardobj.name = arrayItem.title_ar;
465
- cardobj.description = arrayItem.description_ar;
466
- }
467
- cardobj.image = arrayItem.parentcollectionlogo;
468
- cardobj.producttags = [];
469
- cardobj.productfeatures = [];
470
- } else if (fetchingtype == 'custom') {
471
- cardobj.producttags = [];
472
- cardobj.productfeatures = [];
473
- } else if (fetchingtype == 'vendors') {
474
- cardobj.name = arrayItem.vendorname;
475
- cardobj.collectionid = arrayItem.vendorid;
476
- cardobj.image = arrayItem.vendorlogourl;
477
- cardobj.producttags = [];
478
- cardobj.productfeatures = [];
479
- }
480
- temparray.push(cardobj);
481
- });
482
-
483
- setcardsarray([...temparray]);
484
- };
485
- // Example items, to simulate fetching from another resources.
486
- const handlePageClick = (event) => {
487
- props.scrolltotop();
488
- var tempProductFilterObjContext = { ...ProductFilterObjContext };
489
- tempProductFilterObjContext.page = event?.selected;
490
- setProductFilterObjContext({ ...tempProductFilterObjContext });
491
- var pasturl = '';
492
- if (props.grouptypeprops != undefined) {
493
- if (props.collectionidprops != undefined) {
494
- pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
495
- }
496
- }
497
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
498
- };
499
- function PaginatedItems({ itemsPerPage }) {
500
- // const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
501
- const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / perpageItems);
502
- if (fetchProductsQuery?.data?.data?.page != undefined && fetchProductsQuery?.data?.data?.page != null) {
503
- var currentpage = parseInt(fetchProductsQuery?.data?.data?.page);
504
- return (
505
- <div class="d-flex containerClassName">
506
- <ReactPaginate
507
- breakLabel="..."
508
- forcePage={currentpage}
509
- nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
510
- onPageChange={handlePageClick}
511
- active
512
- pageRangeDisplayed={5}
513
- pageCount={pageCount}
514
- previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
515
- renderOnZeroPageCount={null}
516
- pageLinkClassName={section_cssstyles.pageLinkClassName}
517
- nextLinkClassName={section_cssstyles.nextLinkClassName}
518
- previousLinkClassName={section_cssstyles.previousLinkClassName}
519
- activeClassName={section_cssstyles.activeClassName}
520
- activeLinkClassName={section_cssstyles.activeLinkClassName}
521
- previousClassName={section_cssstyles.previousClassName}
522
- nextClassName={section_cssstyles.nextClassName}
523
- disabledClassName={section_cssstyles.disabledClassName}
524
- disabledLinkClassName={section_cssstyles.disabledLinkClassName}
525
- />
526
- </div>
527
- );
528
- }
529
- }
530
- const section_cssstyles = {
531
- btnnn: css({
532
- width: '20%',
533
- height: 40,
534
- background: '#5c5c5c',
535
- fontSize: 14,
536
- fontWeight: 400,
537
- color: 'white',
538
- borderRadius: 10,
539
- ':hover': {
540
- color: 'white',
541
- background: '#000',
542
- transition: '.3s',
543
- },
544
- }),
545
- titleee: css({
546
- fontSize: 25,
547
- color: '#000',
548
- fontWeight: 600,
549
- '@media (max-width: 800px)': {
550
- fontSize: 20,
551
- },
552
- }),
553
- sectioncontainerr: css({
554
- width: sectionproperties.width + 'vw',
555
-
556
- marginTop: sectionproperties.marginTop + 'px',
557
- '@media (max-width: 800px)': {
558
- marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
559
- width: sectionproperties.widthresponsive + '%',
560
- },
561
- }),
562
- innercardssection: css({
563
- paddingLeft: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px') : 0,
564
- paddingRight: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px') : 0,
565
- '@media (max-width: 800px)': {
566
- paddingLeft: langdetect == 'en' ? sectionproperties.paddinghorizontalresponsive + 'px' : sectionproperties.paddinghorizontalresponsive + 'px',
567
- paddingRight: langdetect == 'en' ? sectionproperties.paddinghorizontalresponsive + 'px' : sectionproperties.paddinghorizontalresponsive + 'px',
568
- },
569
- }),
570
- disabledClassName: css({
571
- cursor: 'not-allowed',
572
- ':hover': {
573
- cursor: 'not-allowed',
574
- color: sectionproperties.paginationColor,
575
- },
576
- }),
577
- disabledLinkClassName: css({
578
- cursor: 'not-allowed',
579
- ':hover': {
580
- cursor: 'not-allowed',
581
- color: sectionproperties.paginationColor,
582
- },
583
- }),
584
- pageLinkClassName: css({
585
- minWidth: sectionproperties.paginationContainerWidth + 'vh',
586
- height: sectionproperties.paginationContainerHeight + 'vh',
587
- padding: '17px',
588
- display: 'flex',
589
- alignItems: 'center',
590
- justifyContent: 'center',
591
- color: sectionproperties.paginationColor,
592
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
593
- transition: '.3s',
594
- ':hover': {
595
- color: sectionproperties.paginationColoronHover,
596
- borderColor: sectionproperties.paginationColoronHover,
597
- },
598
- '@media (max-width: 800px)': {
599
- minWidth: '4vh',
600
- },
601
- }),
602
- activeClassName: css({
603
- color: sectionproperties.paginationActiveColor,
604
- borderColor: sectionproperties.paginationActiveColor,
605
- }),
606
- activeLinkClassName: css({
607
- color: sectionproperties.paginationActiveColor,
608
- borderColor: sectionproperties.paginationActiveColor,
609
- }),
610
- previousClassName: css({
611
- width: sectionproperties.paginationContainerWidth + 'vh',
612
- height: sectionproperties.paginationContainerHeight + 'vh',
613
- padding: '17px',
614
- display: 'flex',
615
- alignItems: 'center',
616
- justifyContent: 'center',
617
- color: sectionproperties.paginationColor,
618
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
619
- transition: '.3s',
620
- ':hover': {
621
- color: sectionproperties.paginationColoronHover,
622
- borderColor: sectionproperties.paginationColoronHover,
623
- },
624
- '@media (max-width: 800px)': {
625
- // minWidth: '20px',
626
- },
627
- }),
628
- nextClassName: css({
629
- width: sectionproperties.paginationContainerWidth + 'vh',
630
- height: sectionproperties.paginationContainerHeight + 'vh',
631
- padding: '17px',
632
- display: 'flex',
633
- alignItems: 'center',
634
- justifyContent: 'center',
635
- color: sectionproperties.paginationColor,
636
- border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
637
- transition: '.3s',
638
- ':hover': {
639
- color: sectionproperties.paginationColoronHover,
640
- borderColor: sectionproperties.paginationColoronHover,
641
- },
642
- '@media (max-width: 800px)': {
643
- // minWidth: '20px',
644
- },
645
- }),
646
- previousLinkClassName: css({
647
- fontSize: sectionproperties.paginationFontSize + 'px',
648
- color: sectionproperties.paginationColor,
649
- transition: '.3s',
650
- ':hover': {
651
- color: sectionproperties.paginationColoronHover,
652
- },
653
- }),
654
- nextLinkClassName: css({
655
- fontSize: sectionproperties.paginationFontSize + 'px',
656
- color: sectionproperties.paginationColor,
657
- transition: '.3s',
658
- ':hover': {
659
- color: sectionproperties.paginationColoronHover,
660
- },
661
- }),
662
- sectiontitlespan: css({
663
- ':after': {
664
- height: '5px',
665
- width: sectionproperties.sectitle_lineafterwidth + '%',
666
- backgroundColor: sectionproperties.linebgcolor,
667
- },
668
- }),
669
- line_left: css({
670
- height: '1px',
671
- position: 'relative',
672
- flex: '1 1 auto',
673
- minWidth: '10%',
674
- background: sectionproperties.linebgcolor,
675
- }),
676
- line_right: css({
677
- height: '1px',
678
- position: 'relative',
679
- flex: '1 1 auto',
680
- minWidth: '10%',
681
- background: sectionproperties.linebgcolor,
682
- }),
683
- cards_sections: css({
684
- paddingLeft: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
685
- paddingRight: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
686
- paddingTop: sectionproperties.paddingTop + 'px',
687
- paddingBottom: sectionproperties.paddingBottom + 'px',
688
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
689
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
690
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
691
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
692
- borderColor: sectionproperties.sectioncardbordercolor,
693
- border: sectionproperties.sectioncardborderwidth + 'px solid',
694
- '@media (max-width: 600px)': {
695
- paddingTop: sectionproperties.marginTopResp + 'px',
696
- },
697
- }),
698
- filterbtn: css({
699
- width: sectionproperties.filterbtn_Width + 'px',
700
- height: sectionproperties.filterbtn_Height + 'px',
701
- background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
702
- borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
703
- borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
704
- borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
705
- borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
706
- color: sectionproperties.filterbtn_Textcolor,
707
- boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
708
- marginTop: sectionproperties.filterbtn_marginTop + 'px',
709
- marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
710
- marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
711
- marginRight: sectionproperties.filterbtn_marginRight + 'px',
712
- transition: '.3s',
713
- ':hover': {
714
- background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
715
- color: sectionproperties.filterbtn_Textcoloronhover,
716
- },
717
- }),
718
- viewmorebtn: css({
719
- width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
720
- height: sectionproperties.viewmorebtn_Height == 0 ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
721
- background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
722
- borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
723
- color: sectionproperties.viewmorebtn_Textcolor,
724
- fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
725
- fontWeight: sectionproperties.viewmorebtn_fontWeight,
726
- textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? (sectionproperties.viewmorebtnborderwidth == 0 ? 'underline' : 'none') : 'none',
727
- transition: '.3s',
728
- border: sectionproperties.viewmorebtnborderwidth + 'px solid ' + sectionproperties.viewmorebtnbordercolor,
729
- ':hover': {
730
- background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
731
- color: sectionproperties.viewmorebtn_Textcoloronhover,
732
- borderColor: sectionproperties.viewmorebtn_Textcoloronhover,
733
- },
734
- }),
735
- loadbtn: css({
736
- fontSize: sectionproperties.generaltext_fontSize + 'px',
737
- color: sectionproperties.generaltext_fontColor,
738
- fontWeight: sectionproperties.generaltext_fontWeight,
739
- textDecoration: 'underline',
740
- transition: '.3s',
741
- ':hover': {
742
- color: sectionproperties.text_secondarycolor,
743
- },
744
- }),
745
- sectiontitilecontainer: css({
746
- marginTop: sectionproperties.showbadge == 'Show' ? 0 : sectionproperties.sectionTitleMarginTop + 'px',
747
- marginBottom: sectionproperties.sectiontitledirection == 'Horizontal' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
748
- paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
749
- paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
750
- '@media (max-width: 1024px)': {
751
- paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
752
- paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
753
- },
754
- }),
755
- };
756
- const SectionTitle = () => {
757
- return (
758
- <div
759
- class="d-flex align-items-center flex-row"
760
- style={{
761
- position: 'relative',
762
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
763
- width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
764
- }}
765
- // data-aos={sectionproperties.showanimation == 'Yes' ? 'fade-up' : ''}
766
- >
767
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
768
- <p
769
- class={
770
- sectionproperties.sectiontitlefontfamily == 'Pacifico'
771
- ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
772
- : sectionproperties.sectiontitlefontfamily == 'Playfair'
773
- ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
774
- : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
775
- ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
776
- : sectionproperties.sectiontitlefontfamily == 'Quicksand'
777
- ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
778
- : sectionproperties.sectiontitlefontfamily == 'Satisfy'
779
- ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
780
- : sectionproperties.sectiontitlefontfamily == 'ASUL'
781
- ? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
782
- : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
783
- }
784
- style={{
785
- color: sectionproperties.sectionTitleColor,
786
- fontWeight: sectionproperties.sectionTitleFontWeight,
787
- paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
788
- paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
789
- textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
790
- }}
791
- >
792
- {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
793
- </p>
794
- {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
795
- </div>
796
- );
797
- };
798
- const isCardsectionloading = () => {
799
- var isloading = false;
800
-
801
- if (fetchingtype == 'products') {
802
- if (fetchProductsQuery?.isFetching) {
803
- isloading = true;
804
- }
805
- } else if (fetchingtype == 'vendors') {
806
- if (FetchVendorsQuery?.isFetching) {
807
- isloading = true;
808
- }
809
- } else {
810
- if (fetchCategoriesQueryContext?.isFetching == true || fetchCategoriesQueryContext?.isFetching == true) {
811
- isloading = true;
812
- }
813
- }
814
-
815
- return isloading;
816
- };
817
- const show_product_group_titles = () => {
818
- var title_en = '';
819
- var title_ar = '';
820
- var description_en = '';
821
- var description_ar = '';
822
- var logo = '';
823
- var type = '';
824
- var id = '';
825
- if (ProductFilterObjContext['collections'] != undefined && Array.isArray(ProductFilterObjContext['collections']) && ProductFilterObjContext['collections'][0] != undefined) {
826
- id = ProductFilterObjContext['collections'][0];
827
- }
828
- if (id != null && id != '' && id != 'all') {
829
- fetchCategoriesQueryContext?.data?.data?.categories?.map(function (catitem) {
830
- if (catitem.categoryid == id) {
831
- title_en = catitem.title_en;
832
- title_ar = catitem.title_ar;
833
- description_en = catitem.description_en;
834
- description_ar = catitem.description_ar;
835
- logo = catitem.categorylogo;
836
- type = 'category';
837
- }
838
- if (title_en == '') {
839
- catitem?.parentcolletions?.map(function (parentitem) {
840
- if (parentitem.parentcollectionid == id) {
841
- title_en = parentitem.title_en;
842
- title_ar = parentitem.title_ar;
843
- description_en = parentitem.description_en;
844
- description_ar = parentitem.description_ar;
845
- logo = parentitem.parentcollectionlogo;
846
- type = 'parentcollection';
847
- }
848
- if (title_en == '') {
849
- parentitem?.collections?.map(function (colitem) {
850
- if (colitem.collectionid == id) {
851
- title_en = colitem.title_en;
852
- title_ar = colitem.title_ar;
853
- description_en = colitem.description_en;
854
- description_ar = colitem.description_ar;
855
- logo = colitem.collectionlogo;
856
- type = 'collection';
857
- }
858
- });
859
- }
860
- });
861
- }
862
- });
863
- }
864
- return { title_en: title_en, title_ar: title_ar, description_en: description_en, description_ar: description_ar, type: type, id: id, logo: logo };
865
- };
866
- const cardsrender = () => {
867
- return (
868
- <div
869
- class={
870
- sectionproperties.showvariantfilter == 'Show'
871
- ? 'col-lg-9 col-md-12 col-sm-12 p-sm-0'
872
- : sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical'
873
- ? sectionproperties.numofcols == '2'
874
- ? 'col-lg-10 col-md-12 col-sm-12 p-sm-0'
875
- : 'col-lg-9 col-md-12 col-sm-12 p-sm-0'
876
- : 'row m-0 w-100 p-sm-0'
877
- }
878
- >
879
- {sectionproperties.length != 0 && (
880
- <div className="row m-0 w-100 d-flex align-items-center p-sm-0">
881
- <div class="col-lg-12 p-0">
882
- {/* pl-md-2 pr-md-2 pl-sm-2 pr-sm-2 */}
883
- <div className={section_cssstyles.sectiontitilecontainer + ' row ml-0 mr-0 w-100 '} style={{}}>
884
- <div
885
- class={
886
- sectionproperties.viewmorebtnshow == 'Show'
887
- ? sectionproperties.sectiontitleposition == 'Centered'
888
- ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
889
- : ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
890
- : sectionproperties.showFilter == 'show'
891
- ? sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal'
892
- ? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
893
- : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
894
- : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
895
- }
896
- >
897
- <div class="row m-0 w-100">
898
- {sectionproperties.showbadge == 'Show' && (
899
- <div
900
- class={' col-lg-12 p-0 d-flex align-items-center '}
901
- style={{
902
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
903
- }}
904
- >
905
- <p
906
- class="m-0 p-0 allcentered"
907
- style={{
908
- fontSize: sectionproperties.badge_fontsize + 'px',
909
- background: sectionproperties.badge_bgcolor,
910
- minWidth: sectionproperties.badge_width + 'px',
911
- height: sectionproperties.badge_height + 'px',
912
- color: sectionproperties.badge_color,
913
- borderRadius: sectionproperties.badge_borderradius + 'px',
914
- border: sectionproperties.badgeborderwidth + 'px solid ' + sectionproperties.badgebordercolor,
915
- }}
916
- >
917
- {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
918
- </p>
919
- </div>
920
- )}
921
- {sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && (
922
- <div
923
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex d-md-none align-items-center '}
924
- style={{
925
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
926
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
927
- marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
928
- marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
929
- }}
930
- >
931
- {SectionTitle()}
932
- </div>
933
- )}
934
- {sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && (
935
- <div
936
- class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-none d-md-flex align-items-center '}
937
- style={{
938
- justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
939
- fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
940
- marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
941
- marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
942
- }}
943
- >
944
- {SectionTitle()}
945
- </div>
946
- )}
947
- {sectionproperties.sectiontitledirection == 'Vertical' && (
948
- <div class="col-lg-12 p-0">
949
- {sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.viewmorebtnposition != 'Under Section' && (
950
- <button
951
- class={
952
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
953
- ? sectionproperties.sectiontitleposition == 'Centered'
954
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
955
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
956
- : sectionproperties.sectiontitleposition == 'Centered'
957
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
958
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
959
- }
960
- onClick={() => {
961
- if (fetchingtype == 'products') {
962
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
963
- routingcountext(
964
- StaticPagesLinksContext.GeneralProductsComponent,
965
- true,
966
- 'collections/' + ProductsFetchingTypeSectionObj.collectionid,
967
- );
968
- } else {
969
- routingcountext(
970
- StaticPagesLinksContext.GeneralProductsComponent,
971
- true,
972
- encodeURIComponent(JSON.stringify(ProductFilterObjContext)),
973
- );
974
- }
975
- } else {
976
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
977
- }
978
- }}
979
- style={{
980
- flexDirection: 'row',
981
- }}
982
- >
983
- <span class={'d-flex justify-content-center align-items-center'}>
984
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'}>
985
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
986
- </span>
987
- {sectionproperties.showIcon == 'Show' && (
988
- <i
989
- class={
990
- sectionproperties.sectiontitleposition == 'Centered'
991
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
992
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
993
- }
994
- style={{
995
- marginLeft: 5,
996
- marginRight: 5,
997
- }}
998
- >
999
- {langdetect == 'en' ? (
1000
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
1001
- ) : (
1002
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
1003
- )}
1004
- </i>
1005
- )}
1006
- </span>
1007
- </button>
1008
- )}
1009
- </div>
1010
- )}
1011
- {sectionproperties.prodCatShow == 'Show' && (
1012
- <div
1013
- class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center d-md-none '}
1014
- style={{
1015
- justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
1016
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
1017
- paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
1018
- paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
1019
- }}
1020
- >
1021
- <p
1022
- class={
1023
- sectionproperties.descFontFamily == 'Pacifico'
1024
- ? ' PacificoFont m-0 p-0 wordbreak '
1025
- : sectionproperties.descFontFamily == 'Playfair'
1026
- ? ' PlayfairFont m-0 p-0 wordbreak '
1027
- : sectionproperties.descFontFamily == 'Great Vibes'
1028
- ? ' GreatvibesFont m-0 p-0 wordbreak '
1029
- : sectionproperties.descFontFamily == 'Quicksand'
1030
- ? ' QuicksandFont m-0 p-0 wordbreak'
1031
- : sectionproperties.descFontFamily == 'ASUL'
1032
- ? ' ASUL m-0 p-0 wordbreak '
1033
- : ' m-0 p-0 wordbreak '
1034
- }
1035
- style={{
1036
- color: sectionproperties.prodCatColor,
1037
- fontWeight: sectionproperties.prodCatFontWeight,
1038
- textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
1039
- fontSize: sectionproperties.prodCatFontSize + 'px',
1040
- }}
1041
- >
1042
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
1043
- </p>
1044
- </div>
1045
- )}
1046
- {sectionproperties.prodCatShow == 'Show' && (
1047
- <div
1048
- class={' col-lg-12 col-md-12 col-sm-12 align-items-center p-0 d-none d-md-flex '}
1049
- style={{
1050
- justifyContent: sectionproperties.showFilter == 'show' ? 'start' : sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
1051
- marginBottom: sectionproperties.descriptionMarginBottom + 'px',
1052
- paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
1053
- paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
1054
- }}
1055
- >
1056
- <p
1057
- class={
1058
- sectionproperties.descFontFamily == 'Pacifico'
1059
- ? ' PacificoFont m-0 p-0 wordbreak '
1060
- : sectionproperties.descFontFamily == 'Playfair'
1061
- ? ' PlayfairFont m-0 p-0 wordbreak '
1062
- : sectionproperties.descFontFamily == 'Great Vibes'
1063
- ? ' GreatvibesFont m-0 p-0 wordbreak '
1064
- : sectionproperties.descFontFamily == 'Quicksand'
1065
- ? ' QuicksandFont m-0 p-0 wordbreak '
1066
- : sectionproperties.descFontFamily == 'ASUL'
1067
- ? ' ASUL m-0 p-0 wordbreak '
1068
- : ' m-0 p-0 wordbreak '
1069
- }
1070
- style={{
1071
- color: sectionproperties.prodCatColor,
1072
- fontWeight: sectionproperties.prodCatFontWeight,
1073
- textAlign:
1074
- sectionproperties.showFilter == 'show'
1075
- ? langdetect == 'en'
1076
- ? 'left'
1077
- : 'right'
1078
- : sectionproperties.descriptionCentered == 'Centered'
1079
- ? 'center'
1080
- : langdetect == 'en'
1081
- ? 'left'
1082
- : 'right',
1083
- fontSize: sectionproperties.prodCatFontSizeResp + 'px',
1084
- }}
1085
- >
1086
- {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
1087
- </p>
1088
- </div>
1089
- )}
1090
- </div>
1091
- </div>
1092
- <div
1093
- class={
1094
- sectionproperties.sectiontitleposition == 'Centered'
1095
- ? sectionproperties.showFilter == 'show'
1096
- ? sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal'
1097
- ? 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0'
1098
- : 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0 d-md-none'
1099
- : 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
1100
- : 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
1101
- }
1102
- style={{
1103
- marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0,
1104
- }}
1105
- >
1106
- <div
1107
- class={
1108
- sectionproperties.sectiontitleposition == 'Centered'
1109
- ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto '
1110
- : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
1111
- }
1112
- >
1113
- {sectionproperties.viewmorebtnshow == 'Show' &&
1114
- sectionproperties.sectiontitledirection == 'Horizontal' &&
1115
- sectionproperties.viewmorebtnposition != 'Under Section' && (
1116
- <button
1117
- class={
1118
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
1119
- ? sectionproperties.sectiontitleposition == 'Centered'
1120
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
1121
- : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
1122
- : sectionproperties.sectiontitleposition == 'Centered'
1123
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
1124
- : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
1125
- }
1126
- onClick={() => {
1127
- if (fetchingtype == 'products') {
1128
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
1129
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
1130
- } else {
1131
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
1132
- }
1133
- } else if (fetchingtype == 'parentcollections') {
1134
- routingcountext(
1135
- StaticPagesLinksContext.InnerCategory,
1136
- true,
1137
- 'parentcollections/' + sectionitem?.productsfetchingtypeparentcollectioncategoryid,
1138
- true,
1139
- );
1140
- } else {
1141
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
1142
- }
1143
- }}
1144
- style={{
1145
- flexDirection: 'row',
1146
- }}
1147
- >
1148
- <span
1149
- class={
1150
- sectionproperties.sectiontitleposition == 'Centered'
1151
- ? 'd-flex justify-content-center align-items-center'
1152
- : 'd-flex justify-content-center align-items-center d-md-none'
1153
- }
1154
- >
1155
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}>
1156
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
1157
- </span>
1158
- {sectionproperties.showIcon == 'Show' && (
1159
- <i
1160
- class={
1161
- sectionproperties.sectiontitleposition == 'Centered'
1162
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
1163
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
1164
- }
1165
- style={{
1166
- marginLeft: 5,
1167
- marginRight: 5,
1168
- }}
1169
- >
1170
- {langdetect == 'en' ? (
1171
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
1172
- ) : (
1173
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
1174
- )}
1175
- </i>
1176
- )}
1177
- </span>
1178
- <span
1179
- class={
1180
- sectionproperties.sectiontitleposition == 'Centered'
1181
- ? 'd-none align-items-center justify-content-center'
1182
- : 'd-none d-md-flex align-items-center justify-content-center w-100 h-100'
1183
- }
1184
- >
1185
- <i class="h-100 d-flex align-items-center justify-content-center w-100">
1186
- {langdetect == 'en' ? (
1187
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsizeresp} color={sectionproperties.viewmorebtn_Textcolor} />
1188
- ) : (
1189
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsizeresp} color={sectionproperties.viewmorebtn_Textcolor} />
1190
- )}
1191
- </i>
1192
- </span>
1193
- </button>
1194
- )}
1195
- {sectionproperties.showFilter == 'show' &&
1196
- sectionproperties.filterType != 'Title & Sort By Only' &&
1197
- sectionproperties.filterdirection != 'Collections Horizontal' &&
1198
- sectionproperties.filterbtnstyle == 'Style 1' && (
1199
- <button
1200
- class={
1201
- sectionproperties.filterdirection == 'Horizontal'
1202
- ? ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '
1203
- : ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '
1204
- }
1205
- onClick={() => {
1206
- setopenFilterSlider(true);
1207
- // var element = document.getElementById('filterslider');
1208
- // element.classList.add(filterstyles.filterslider_container_opened);
1209
- }}
1210
- >
1211
- <div class={`${section_cssstyles.filterbtn}` + ' allcentered '}>
1212
- {sectionproperties.filterbtnfontsize != 0 && (
1213
- <span
1214
- class="allcentered"
1215
- style={{
1216
- fontSize: sectionproperties.filterbtnfontsize + 'px',
1217
- }}
1218
- >
1219
- {langdetect == 'en' ? sectionproperties.filterbtntexten : sectionproperties.filterbtntextar}
1220
- </span>
1221
- )}
1222
- {sectionproperties.filterbtniconfontsize != 0 && (
1223
- <i class="h-100 d-flex align-items-center justify-content-center">
1224
- <FiFilter
1225
- style={{
1226
- fontSize: sectionproperties.filterbtniconfontsize,
1227
- }}
1228
- />
1229
- </i>
1230
- )}
1231
- </div>
1232
- </button>
1233
- )}
1234
- {sectionproperties.showFilter == 'show' &&
1235
- sectionproperties.filterType != 'Title & Sort By Only' &&
1236
- sectionproperties.filterdirection != 'Collections Horizontal' &&
1237
- sectionproperties.filterbtnstyle == 'Style 2' && (
1238
- <button
1239
- class={
1240
- sectionproperties.filterdirection == 'Horizontal'
1241
- ? ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '
1242
- : ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '
1243
- }
1244
- onClick={() => {
1245
- setopenFilterSlider(true);
1246
- }}
1247
- style={{
1248
- color: sectionproperties.filterbtn_Textcolor,
1249
- }}
1250
- >
1251
- <i
1252
- class="h-100 d-flex align-items-center justify-content-center"
1253
- style={{
1254
- transform: 'rotate(90deg)',
1255
- }}
1256
- >
1257
- <FiSliders
1258
- style={{
1259
- fontSize: 15,
1260
- color: sectionproperties.filterbtn_Textcolor,
1261
- }}
1262
- />
1263
- </i>
1264
- <span class="mx-2">{langdetect == 'en' ? 'Filter & Sort By' : 'فلتر'}</span>
1265
- </button>
1266
- )}
1267
- </div>
1268
- </div>
1269
- {sectionproperties.showseparator == 'Show' && (
1270
- <div class="col-lg-12 p-0">
1271
- <hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
1272
- </div>
1273
- )}
1274
- {sectionproperties.filterdirection == 'Collections Horizontal' && sectionproperties.showFilter == 'show' && (
1275
- <CollectionsFilterHorizontal
1276
- sectionpropertiesprops={sectionproperties}
1277
- actions={actions}
1278
- openFilterSlider={openFilterSlider}
1279
- setopenFilterSlider={setopenFilterSlider}
1280
- />
1281
- )}
1282
- </div>
1283
- </div>
1284
- {isCardsectionloading() && (
1285
- <div class="col-lg-12 allcentered" style={{ height: 100 }}>
1286
- <CircularProgress color={'#eeeeee'} width="30px" height="30px" duration="1s" />
1287
- </div>
1288
- )}
1289
- {!isCardsectionloading && cardsarray.length == 0 && (
1290
- <div className="row m-0 w-100 d-flex align-items-center" style={{ height: '30vh' }}>
1291
- <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
1292
- <FiLayers
1293
- style={{
1294
- fontSize: sectionproperties.noprod_iconfontSize + 'px',
1295
- color: sectionproperties.noprod_iconcolor,
1296
- }}
1297
- />
1298
- <p
1299
- class="m-0 p-0 mt-2"
1300
- style={{
1301
- fontWeight: sectionproperties.noprod_fontWeight,
1302
- color: sectionproperties.noprod_color,
1303
- fontSize: sectionproperties.noprod_fontSize + 'px',
1304
- }}
1305
- >
1306
- {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
1307
- </p>
1308
- </div>
1309
- </div>
1310
- )}
1311
- {cardsarray.length != 0 && (
1312
- <div class="col-lg-12 p-0">
1313
- {StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
1314
- if (item.tabexsectioninfo != null) {
1315
- if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
1316
- var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1317
- return (
1318
- <div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 px-1025-1 pl-md-0 pr-md-0 '}>
1319
- {sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && (
1320
- <div
1321
- class={
1322
- langdetect == 'en'
1323
- ? sectionproperties.paddingLeft != 0
1324
- ? 'col-lg-12 p-0 pl-sm-2 pl-md-2'
1325
- : sectionproperties.paddingRight != 0
1326
- ? 'col-lg-12 p-0 pr-md-2'
1327
- : 'col-lg-12 p-0 '
1328
- : sectionproperties.paddingRight != 0
1329
- ? 'col-lg-12 p-0 pr-sm-2 pr-md-2'
1330
- : sectionproperties.paddingLeft != 0
1331
- ? 'col-lg-12 p-0 pl-md-2'
1332
- : 'col-lg-12 p-0 '
1333
- }
1334
- >
1335
- <ScrollMenu
1336
- transitionBehavior={'auto'}
1337
- wrapperClassName={''}
1338
- itemClassName={
1339
- item.tabexsectioninfo.sectioncompname == 'Productcard6'
1340
- ? 'scrollmenuclassnameitemProductcard6'
1341
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1342
- ? 'scrollmenuclassnameitemProductcard_with_circularhover'
1343
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1344
- ? 'scrollmenuclassnameitemProductcard_with_circularbg'
1345
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1346
- ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
1347
- : // : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
1348
- // ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
1349
- item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
1350
- ? 'scrollmenuclassnameitemCategorycard_withtext'
1351
- : // : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
1352
- // ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
1353
- item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
1354
- ? 'scrollmenuclassnameitemProductcard_with_variants'
1355
- : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
1356
- ? 'scrollmenuclassnameitemProductcarddefault'
1357
- : // : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
1358
- // ? 'scrollmenuclassnameitemSimpleproductcard'
1359
- item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
1360
- ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
1361
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
1362
- ? 'scrollmenuclassnameitemProductcard_with_textonhover'
1363
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
1364
- ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
1365
- : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1366
- ? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
1367
- : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
1368
- ? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
1369
- : item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
1370
- ? 'scrollmenuclassnameitemProductcard_Horizontalcard'
1371
- : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1372
- ? 'scrollmenuclassnameitemCategorycard_fullimage'
1373
- : // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
1374
- // ? 'scrollmenuclassnameitemClassiccategorycard'
1375
- // item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1376
- // ? 'scrollmenuclassnameitemModernProductCard'
1377
- // : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1378
- // ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
1379
- item.tabexsectioninfo.sectioncompname == 'Productcard7'
1380
- ? 'scrollmenuclassnameitemProductcard7'
1381
- : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1382
- ? 'scrollmenuclassnameitemMenuCard'
1383
- : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1384
- ? 'scrollmenuclassnameitemStylishProductCard'
1385
- : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
1386
- ? 'scrollmenuclassnameitemProductCardWithTextOnImage'
1387
- : // : item.tabexsectioninfo.sectioncompname == 'Card23'
1388
- // ? 'scrollmenuclassnameitemCard23'
1389
- item.tabexsectioninfo.sectioncompname == 'Card20'
1390
- ? 'scrollmenuclassnameitemCard20'
1391
- : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
1392
- ? 'scrollmenuclassnameitemModernCardWithQuantityButton'
1393
- : // : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
1394
- // ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
1395
- item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants'
1396
- ? 'scrollmenuclassnameitemCircleCardWithVariants'
1397
- : // : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
1398
- // ? 'scrollmenuclassnameitemUpSlideEffectCard'
1399
- item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage'
1400
- ? 'scrollmenuclassnameitemCategoryCardTextOnImage'
1401
- : ''
1402
- }
1403
- scrollContainerClassName={sectionproperties.showscrollbar == 'Show' ? 'scrollmenuclasssubscrollbar2' : 'scrollmenuclasssubscrollbar'}
1404
- >
1405
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
1406
- if (sectionproperties.overallnumberofcards == 0) {
1407
- return (
1408
- <div
1409
- className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}
1410
- // data-aos={sectionproperties.showanimation == 'Yes' ? 'fade-up' : ''}
1411
- >
1412
- <Sectioncomp
1413
- sectiontypeprops={'horizontal'}
1414
- fetchingtypeprops={fetchingtype}
1415
- cardinfoindexprops={cardinfoindex}
1416
- cardinfoitemprops={cardinfoitem}
1417
- sectionindexprops={index}
1418
- sectionidprops={item.sectionid}
1419
- actions={actions}
1420
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1421
- AddtoCartMutationContext={AddtoCartMutationContext}
1422
- />
1423
- </div>
1424
- );
1425
- } else if (sectionproperties.overallnumberofcards != 0) {
1426
- if (cardinfoindex < sectionproperties.overallnumberofcards) {
1427
- return (
1428
- <div
1429
- className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}
1430
- // data-aos={sectionproperties.showanimation == 'Yes' ? 'fade-up' : ''}
1431
- >
1432
- <Sectioncomp
1433
- sectiontypeprops={'horizontal'}
1434
- fetchingtypeprops={fetchingtype}
1435
- cardinfoindexprops={cardinfoindex}
1436
- cardinfoitemprops={cardinfoitem}
1437
- sectionindexprops={index}
1438
- sectionidprops={item.sectionid}
1439
- actions={actions}
1440
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1441
- AddtoCartMutationContext={AddtoCartMutationContext}
1442
- />
1443
- </div>
1444
- );
1445
- }
1446
- }
1447
- })}
1448
- {/* {cardsarray.map((cardinfoitem, cardinfoindex) => {
1449
- return (
1450
- <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
1451
- <Sectioncomp
1452
- sectiontypeprops={'horizontal'}
1453
- fetchingtypeprops={fetchingtype}
1454
- cardinfoindexprops={cardinfoindex}
1455
- cardinfoitemprops={cardinfoitem}
1456
- sectionindexprops={index}
1457
- sectionidprops={item.sectionid}
1458
- actions={actions}
1459
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1460
- />
1461
- </div>
1462
- );
1463
- })} */}
1464
- {/* {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
1465
- <button
1466
- className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center mt-4 '}
1467
- ref={ref}
1468
- onClick={() => fetchProductsQuery.fetchNextPage()}
1469
- disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1470
- >
1471
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1472
- </button>
1473
- )} */}
1474
- </ScrollMenu>
1475
- </div>
1476
- )}
1477
-
1478
- {sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && (
1479
- <div
1480
- className="row m-0 w-100 d-flex "
1481
- style={{
1482
- justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start',
1483
- }}
1484
- >
1485
- {cardsarray.map((cardinfoitem, cardinfoindex) => {
1486
- var bootstapclass = '';
1487
- if (sectionproperties.numberOfColsvertical == '1') {
1488
- if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
1489
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 ';
1490
- } else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
1491
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 ';
1492
- } else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
1493
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1494
- } else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
1495
- bootstapclass =
1496
- ' col-xl-12 p-0 col-lg-12 col-md-12 d-flex justify-content-center p-0 ' + sectionproperties.numberOfColsverticalresp;
1497
- } else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
1498
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1499
- } else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
1500
- bootstapclass =
1501
- ' col-xl-12 p-0 col-lg-12 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1502
- } else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
1503
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
1504
- } else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
1505
- bootstapclass = ' 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';
1506
- } else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
1507
- bootstapclass =
1508
- ' col-xl-12 p-0 col-lg-12 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1509
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
1510
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
1511
- } else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
1512
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1513
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
1514
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1515
- } else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
1516
- bootstapclass =
1517
- ' col-xl-12 p-0 col-lg-12 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1518
- } else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
1519
- bootstapclass =
1520
- ' col-xl-12 p-0 col-lg-12 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1521
- } else {
1522
- bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
1523
- }
1524
- } else if (sectionproperties.numberOfColsvertical == '2') {
1525
- if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
1526
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1527
- } else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft ') {
1528
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 ';
1529
- } else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
1530
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
1531
- } else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
1532
- bootstapclass =
1533
- ' col-xl-6 p-0 col-lg-6 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1534
- } else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
1535
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1536
- } else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
1537
- bootstapclass =
1538
- ' col-xl-6 p-0 col-lg-6 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1539
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext') {
1540
- bootstapclass =
1541
- ' col-xl-6 p-0 col-lg-6 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1542
- } else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
1543
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
1544
- } else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
1545
- bootstapclass = ' 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 ';
1546
- } else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
1547
- bootstapclass =
1548
- ' col-xl-6 p-0 col-lg-6 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1549
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
1550
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0';
1551
- } else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
1552
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0';
1553
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
1554
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1555
- } else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
1556
- bootstapclass =
1557
- ' col-xl-6 p-0 col-lg-6 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1558
- } else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
1559
- bootstapclass =
1560
- ' col-xl-6 p-0 col-lg-6 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1561
- } else {
1562
- bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0';
1563
- }
1564
- } else if (sectionproperties.numberOfColsvertical == '3') {
1565
- if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
1566
- bootstapclass = ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center ';
1567
- } else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
1568
- bootstapclass = ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1569
- } else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
1570
- bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1571
- } else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
1572
- bootstapclass =
1573
- ' col-xl-4 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1574
- } else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
1575
- bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1576
- } else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
1577
- bootstapclass =
1578
- ' col-xl-4 p-0 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1579
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext') {
1580
- bootstapclass =
1581
- ' col-xl-4 p-0 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1582
- } else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
1583
- bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
1584
- } else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
1585
- bootstapclass = ' 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 ';
1586
- } else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
1587
- bootstapclass =
1588
- ' col-xl-4 p-0 col-lg-4 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1589
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
1590
- bootstapclass = ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
1591
- } else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
1592
- bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0';
1593
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
1594
- bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1595
- } else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
1596
- bootstapclass =
1597
- ' col-xl-4 p-0 col-lg-4 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1598
- } else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
1599
- bootstapclass =
1600
- ' col-xl-4 p-0 col-lg-4 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1601
- } else {
1602
- bootstapclass =
1603
- ' col-xl-4 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1604
- }
1605
- } else if (sectionproperties.numberOfColsvertical == '4') {
1606
- if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
1607
- bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1608
- } else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
1609
- bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1610
- } else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
1611
- bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
1612
- } else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
1613
- bootstapclass =
1614
- ' col-xl-3 p-0 col-lg-3 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1615
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext') {
1616
- bootstapclass =
1617
- ' col-xl-3 p-0 col-lg-3 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1618
- } else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
1619
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1620
- } else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
1621
- bootstapclass =
1622
- ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1623
- } else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
1624
- (' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ');
1625
- } else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
1626
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
1627
- } else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
1628
- bootstapclass =
1629
- ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1630
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
1631
- bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 ';
1632
- } else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
1633
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0';
1634
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
1635
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1636
- } else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
1637
- bootstapclass =
1638
- ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1639
- } else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
1640
- bootstapclass =
1641
- ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1642
- } else {
1643
- bootstapclass =
1644
- ' col-xl-3 col-lg-4 col-md-4 p-0 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1645
- }
1646
- } else if (sectionproperties.numberOfColsvertical == '12') {
1647
- if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
1648
- bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1649
- }
1650
- if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
1651
- bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1652
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext') {
1653
- bootstapclass =
1654
- ' col-xl-3 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1655
- } else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
1656
- bootstapclass =
1657
- ' col-xl-3 p-0 col-lg-4 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1658
- } else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
1659
- bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1660
- } else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
1661
- bootstapclass =
1662
- ' col-xl-3 p-0 col-lg-3 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1663
- } else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
1664
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
1665
- } else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
1666
- bootstapclass = ' 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 ';
1667
- } else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
1668
- bootstapclass =
1669
- ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1670
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
1671
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1672
- } else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
1673
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0';
1674
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
1675
- bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1676
- } else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
1677
- bootstapclass =
1678
- ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1679
- } else {
1680
- bootstapclass =
1681
- ' col-xl-3 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1682
- }
1683
- } else if (sectionproperties.numberOfColsvertical == '6') {
1684
- if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
1685
- bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1686
- } else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
1687
- bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1688
- } else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
1689
- bootstapclass =
1690
- ' col-xl-2 p-0 col-lg-2 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1691
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext') {
1692
- bootstapclass =
1693
- ' col-xl-2 p-0 col-lg-2 col-md-12 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1694
- } else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
1695
- bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
1696
- } else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
1697
- bootstapclass =
1698
- ' col-xl-2 p-0 col-lg-2 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1699
- } else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
1700
- bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
1701
- } else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
1702
- bootstapclass = ' 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 ';
1703
- } else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
1704
- bootstapclass =
1705
- ' col-xl-2 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1706
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
1707
- bootstapclass = ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
1708
- } else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
1709
- bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0';
1710
- } else if (item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly') {
1711
- bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
1712
- } else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
1713
- bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
1714
- } else if (item.tabexsectioninfo.sectioncompname == 'Classiccategorycard') {
1715
- bootstapclass =
1716
- ' col-xl-2 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1717
- } else if (item.tabexsectioninfo.sectioncompname == 'Horizontalcard') {
1718
- bootstapclass =
1719
- ' col-xl-2 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1720
- } else {
1721
- bootstapclass =
1722
- ' col-xl-2 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
1723
- }
1724
- }
1725
- if (sectionproperties.overallnumberofcards == 0) {
1726
- return (
1727
- <div class={bootstapclass}>
1728
- <Sectioncomp
1729
- sectiontypeprops={'horizontal'}
1730
- sectiontypeprops2={'vertical'}
1731
- fetchingtypeprops={fetchingtype}
1732
- cardinfoindexprops={cardinfoindex}
1733
- cardinfoitemprops={cardinfoitem}
1734
- sectionindexprops={index}
1735
- sectionidprops={item.sectionid}
1736
- actions={actions}
1737
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1738
- numberOfColsvertical={sectionproperties.numberOfColsvertical}
1739
- AddtoCartMutationContext={AddtoCartMutationContext}
1740
- />
1741
- </div>
1742
- );
1743
- } else if (sectionproperties.overallnumberofcards != 0) {
1744
- if (cardinfoindex < sectionproperties.overallnumberofcards) {
1745
- return (
1746
- <div class={bootstapclass}>
1747
- <Sectioncomp
1748
- sectiontypeprops={'horizontal'}
1749
- sectiontypeprops2={'vertical'}
1750
- fetchingtypeprops={fetchingtype}
1751
- cardinfoindexprops={cardinfoindex}
1752
- cardinfoitemprops={cardinfoitem}
1753
- sectionindexprops={index}
1754
- sectionidprops={item.sectionid}
1755
- actions={actions}
1756
- fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1757
- numberOfColsvertical={sectionproperties.numberOfColsvertical}
1758
- AddtoCartMutationContext={AddtoCartMutationContext}
1759
- />
1760
- </div>
1761
- );
1762
- }
1763
- }
1764
- })}
1765
- {fetchingtype == 'products' && sectionproperties.showpagination == 'Show' && (
1766
- <div className="w-100 col-lg-12 allcentered mt-2">
1767
- {/* <button
1768
- className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
1769
- // ref={ref}
1770
- onClick={() => fetchProductsQuery.fetchNextPage()}
1771
- disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1772
- >
1773
- {fetchProductsQuery.isFetchingNextPage ? (
1774
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1775
- ) : fetchProductsQuery.hasNextPage ? (
1776
- langdetect == 'en' ? (
1777
- 'Load more'
1778
- ) : (
1779
- 'المزيد'
1780
- )
1781
- ) : (
1782
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1783
- )}
1784
- </button> */}
1785
- <PaginatedItems itemsPerPage={5} />
1786
- </div>
1787
- )}
1788
- </div>
1789
- )}
1790
- </div>
1791
- );
1792
- }
1793
- }
1794
- })}
1795
- </div>
1796
- )}
1797
- {sectionproperties.viewmorebtnposition == 'Under Section' && sectionproperties.viewmorebtnshow == 'Show' && (
1798
- <div class="col-lg-12 p-0 allcentered">
1799
- <button
1800
- class={
1801
- sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
1802
- ? sectionproperties.sectiontitleposition == 'Centered'
1803
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
1804
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
1805
- : sectionproperties.sectiontitleposition == 'Centered'
1806
- ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
1807
- : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
1808
- }
1809
- onClick={() => {
1810
- if (fetchingtype == 'products') {
1811
- if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
1812
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
1813
- } else {
1814
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
1815
- }
1816
- } else {
1817
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
1818
- }
1819
- }}
1820
- style={{
1821
- flexDirection: 'row',
1822
- }}
1823
- >
1824
- <span class={'d-flex justify-content-center align-items-center'}>
1825
- <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'}>
1826
- {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
1827
- </span>
1828
- {sectionproperties.showIcon == 'Show' && (
1829
- <i
1830
- class={
1831
- sectionproperties.sectiontitleposition == 'Centered'
1832
- ? 'd-flex justify-content-center align-items-center h-100 allcentered'
1833
- : 'd-flex justify-content-center align-items-center d-md-none h-100'
1834
- }
1835
- style={{
1836
- marginLeft: 5,
1837
- marginRight: 5,
1838
- }}
1839
- >
1840
- {langdetect == 'en' ? (
1841
- <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
1842
- ) : (
1843
- <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
1844
- )}
1845
- </i>
1846
- )}
1847
- </span>
1848
- </button>
1849
- </div>
1850
- )}
1851
- </div>
1852
- )}
1853
- </div>
1854
- );
1855
- };
1856
- return (
1857
- <div
1858
- ref={refscr}
1859
- class={section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto '}
1860
- style={{
1861
- zIndex: 2,
1862
- background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
1863
- backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + image_serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
1864
- backgroundSize: 'cover',
1865
- boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
1866
- borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
1867
- borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
1868
- borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
1869
- borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
1870
- marginBottom: sectionproperties.marginBottom + 'px',
1871
- // minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh',
1872
- }}
1873
- >
1874
- {sectionproperties.length != 0 && sectionproperties.showanimation == 'Yes' && (
1875
- <div class={section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '} data-aos={'fade-up'}>
1876
- {sectionproperties.showproductgroupbytitle == 'Show' && (
1877
- <div class="col-lg-12 mb-3 mt-5 text-start">
1878
- {/* <h1>{show_product_group_titles()['id']}</h1> */}
1879
- <p
1880
- class="m-0"
1881
- style={{
1882
- fontWeight: 700,
1883
- fontSize: 27,
1884
- // color: '#62554a'
1885
- color: sectionproperties.sectionTitleColor,
1886
- }}
1887
- >
1888
- {langdetect == 'en' ? show_product_group_titles()['title_en'] : show_product_group_titles()['title_ar']}
1889
- </p>
1890
- {/* <h1>type:{show_product_group_titles()['type']}</h1>
1891
- <h1>{JSON.stringify(ProductFilterObjContext)}</h1> */}
1892
- </div>
1893
- )}
1894
- {sectionproperties.showproductgroupbytitle == 'Show' && (
1895
- <div class="col-lg-12 mb-3 text-start">
1896
- {/* <h1>{show_product_group_titles()['id']}</h1> */}
1897
- <p
1898
- class="m-0"
1899
- style={{
1900
- fontSize: 18,
1901
- color: sectionproperties.sectionTitleColor,
1902
-
1903
- // color: '#62554a',
1904
- }}
1905
- dangerouslySetInnerHTML={{
1906
- __html: show_product_group_titles()['description_en'],
1907
- }}
1908
- >
1909
- {/* {langdetect == 'en' ? plainString(show_product_group_titles()['description_en']) : plainString(show_product_group_titles()['description_ar'])} */}
1910
- </p>
1911
- </div>
1912
- )}
1913
-
1914
- {sectionproperties.showFilter == 'show' && (
1915
- <div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
1916
- <Filter
1917
- sectionpropertiesprops={sectionproperties}
1918
- actions={actions}
1919
- openFilterSlider={openFilterSlider}
1920
- setopenFilterSlider={setopenFilterSlider}
1921
- show_product_group_titles={show_product_group_titles}
1922
- />
1923
- </div>
1924
- )}
1925
- {/* {sectionproperties.showvariantfilter == 'Show' && (
1926
- <div className={'col-lg-3 d-flex d-md-none'}>
1927
- <VariantFilter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
1928
- </div>
1929
- )} */}
1930
- {sectionproperties.showvariantfilter == 'Show' && (
1931
- <div className={sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
1932
- <Filter
1933
- sectionpropertiesprops={sectionproperties}
1934
- actions={actions}
1935
- openFilterSlider={openFilterSlider}
1936
- setopenFilterSlider={setopenFilterSlider}
1937
- show_product_group_titles={show_product_group_titles}
1938
- typeprops={'vertical'}
1939
- />
1940
- </div>
1941
- )}
1942
-
1943
- {fetchingtype == 'custom' && <>{cardsrender()}</>}
1944
- {fetchingtype != 'custom' && cardsrender()}
1945
- {sectionproperties.generalbtn_show == 'Show' && (
1946
- <div class="col-lg-12 allcentered my-5">
1947
- <div class="row m-0 w-100">
1948
- <div class="col-lg-12 allcentered mb-3">
1949
- <p class={section_cssstyles.titleee + ' m-0 p-0 '} style={{}}>
1950
- {langdetect == 'en' ? "Didn't find what you're looking for?" : 'مش لاقي اللي بتدور عليه؟'}
1951
- </p>
1952
- </div>
1953
- <div class="col-lg-12 allcentered">
1954
- <button
1955
- class={section_cssstyles.btnnn + ' w-md-100 '}
1956
- onClick={() => {
1957
- routingcountext('inquiryform', false, '');
1958
- }}
1959
- >
1960
- {langdetect == 'en' ? 'Contact Us' : 'إتصل بنا'}
1961
- </button>
1962
- </div>
1963
- </div>
1964
- </div>
1965
- )}
1966
- </div>
1967
- )}
1968
- {sectionproperties.length != 0 && sectionproperties.showanimation != 'Yes' && (
1969
- <div class={section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}>
1970
- {sectionproperties.showproductgroupbytitle == 'Show' && (
1971
- <div class="col-lg-12 mb-3 mt-5 text-start">
1972
- {/* <h1>{show_product_group_titles()['id']}</h1> */}
1973
- <p
1974
- class="m-0"
1975
- style={{
1976
- fontWeight: 700,
1977
- fontSize: 27,
1978
- // color: '#62554a'
1979
- color: sectionproperties.sectionTitleColor,
1980
- }}
1981
- >
1982
- {langdetect == 'en' ? show_product_group_titles()['title_en'] : show_product_group_titles()['title_ar']}
1983
- </p>
1984
- {/* <h1>type:{show_product_group_titles()['type']}</h1>
1985
- <h1>{JSON.stringify(ProductFilterObjContext)}</h1> */}
1986
- </div>
1987
- )}
1988
- {sectionproperties.showproductgroupbytitle == 'Show' && (
1989
- <div class="col-lg-12 mb-3 text-start">
1990
- {/* <h1>{show_product_group_titles()['id']}</h1> */}
1991
- <p
1992
- class="m-0"
1993
- style={{
1994
- fontSize: 18,
1995
- color: sectionproperties.sectionTitleColor,
1996
-
1997
- // color: '#62554a',
1998
- }}
1999
- dangerouslySetInnerHTML={{
2000
- __html: show_product_group_titles()['description_en'],
2001
- }}
2002
- >
2003
- {/* {langdetect == 'en' ? plainString(show_product_group_titles()['description_en']) : plainString(show_product_group_titles()['description_ar'])} */}
2004
- </p>
2005
- </div>
2006
- )}
2007
-
2008
- {sectionproperties.showFilter == 'show' && (
2009
- <div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
2010
- <Filter
2011
- sectionpropertiesprops={sectionproperties}
2012
- actions={actions}
2013
- openFilterSlider={openFilterSlider}
2014
- setopenFilterSlider={setopenFilterSlider}
2015
- show_product_group_titles={show_product_group_titles}
2016
- />
2017
- </div>
2018
- )}
2019
- {/* {sectionproperties.showvariantfilter == 'Show' && (
2020
- <div className={'col-lg-3 d-flex d-md-none'}>
2021
- <VariantFilter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
2022
- </div>
2023
- )} */}
2024
- {sectionproperties.showvariantfilter == 'Show' && (
2025
- <div className={sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
2026
- <Filter
2027
- sectionpropertiesprops={sectionproperties}
2028
- actions={actions}
2029
- openFilterSlider={openFilterSlider}
2030
- setopenFilterSlider={setopenFilterSlider}
2031
- show_product_group_titles={show_product_group_titles}
2032
- typeprops={'vertical'}
2033
- />
2034
- </div>
2035
- )}
2036
-
2037
- {fetchingtype == 'custom' && <>{cardsrender()}</>}
2038
- {fetchingtype != 'custom' && cardsrender()}
2039
- {sectionproperties.generalbtn_show == 'Show' && (
2040
- <div class="col-lg-12 allcentered my-5">
2041
- <div class="row m-0 w-100">
2042
- <div class="col-lg-12 allcentered mb-3">
2043
- <p class={section_cssstyles.titleee + ' m-0 p-0 '} style={{}}>
2044
- {langdetect == 'en' ? "Didn't find what you're looking for?" : 'مش لاقي اللي بتدور عليه؟'}
2045
- </p>
2046
- </div>
2047
- <div class="col-lg-12 allcentered">
2048
- <button
2049
- class={section_cssstyles.btnnn + ' w-md-100 '}
2050
- onClick={() => {
2051
- routingcountext('inquiryform', false, '');
2052
- }}
2053
- >
2054
- {langdetect == 'en' ? 'Contact Us' : 'إتصل بنا'}
2055
- </button>
2056
- </div>
2057
- </div>
2058
- </div>
2059
- )}
2060
- </div>
2061
- )}
2062
- </div>
2063
- );
2064
- };
2065
- export default CardsSection;