tabexseriescomponents 0.0.697 → 0.0.699

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