tabexseriescomponents 0.2.1280 → 0.2.1283

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