tabexseriescomponents 0.0.655 → 0.0.657

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