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