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