tabexseriescomponents 0.0.707 → 0.0.708

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