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