tabexseriescomponents 0.0.666 → 0.0.667

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