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