tabexseriescomponents 0.0.706 → 0.0.708

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/package.json +1 -1
  2. package/srcoman/Contexts/LanguageContext.jsx +408 -0
  3. package/srcoman/Contexts/ProductsCardsSectionContext.jsx +36 -0
  4. package/srcoman/Imagekitconfig.jsx +46 -0
  5. package/srcoman/StylesJS/Customstyles.js +345 -0
  6. package/srcoman/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +376 -0
  7. package/srcoman/TabexComponents/Cards/Card20/Card20.jsx +298 -0
  8. package/srcoman/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  9. package/srcoman/TabexComponents/Cards/Card22/Card22.jsx +288 -0
  10. package/srcoman/TabexComponents/Cards/Card23/Card23 copy.jsx +1630 -0
  11. package/srcoman/TabexComponents/Cards/Card23/Card23.jsx +742 -0
  12. package/srcoman/TabexComponents/Cards/CardAll/CardAll.jsx +453 -0
  13. package/srcoman/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +394 -0
  14. package/srcoman/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  15. package/srcoman/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  16. package/srcoman/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +255 -0
  17. package/srcoman/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +235 -0
  18. package/srcoman/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +199 -0
  19. package/srcoman/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +182 -0
  20. package/srcoman/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  21. package/srcoman/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  22. package/srcoman/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  23. package/srcoman/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +560 -0
  24. package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +145 -0
  25. package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +146 -0
  26. package/srcoman/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +142 -0
  27. package/srcoman/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +193 -0
  28. package/srcoman/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +409 -0
  29. package/srcoman/TabexComponents/Cards/MenuCard/MenuCard.jsx +732 -0
  30. package/srcoman/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +468 -0
  31. package/srcoman/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +593 -0
  32. package/srcoman/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +208 -0
  33. package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +497 -0
  34. package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +512 -0
  35. package/srcoman/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  36. package/srcoman/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
  37. package/srcoman/TabexComponents/Cards/Productcard7/Productcard7.jsx +277 -0
  38. package/srcoman/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +352 -0
  39. package/srcoman/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +291 -0
  40. package/srcoman/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  41. package/srcoman/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +327 -0
  42. package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +408 -0
  43. package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +528 -0
  44. package/srcoman/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +558 -0
  45. package/srcoman/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  46. package/srcoman/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  47. package/srcoman/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +137 -0
  48. package/srcoman/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +613 -0
  49. package/srcoman/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +413 -0
  50. package/srcoman/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +225 -0
  51. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +525 -0
  52. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +455 -0
  53. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +905 -0
  54. package/srcoman/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +337 -0
  55. package/srcoman/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +347 -0
  56. package/srcoman/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +605 -0
  57. package/srcoman/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +185 -0
  58. package/srcoman/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +528 -0
  59. package/srcoman/TabexComponents/Footer/Footer1/Footer1.jsx +780 -0
  60. package/srcoman/TabexComponents/Footer/Footer2/Footer2.jsx +527 -0
  61. package/srcoman/TabexComponents/Footer/Footer3/Footer3.jsx +411 -0
  62. package/srcoman/TabexComponents/Footer/Footer4/Footer4.jsx +466 -0
  63. package/srcoman/TabexComponents/Footer/Footer5/Footer5.jsx +714 -0
  64. package/srcoman/TabexComponents/Footer/Footer6/Footer6.jsx +290 -0
  65. package/srcoman/TabexComponents/Footer/Footer7/Footer7.jsx +428 -0
  66. package/srcoman/TabexComponents/Footer/Footer8/Footer8.jsx +533 -0
  67. package/srcoman/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +330 -0
  68. package/srcoman/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +562 -0
  69. package/srcoman/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +865 -0
  70. package/srcoman/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +647 -0
  71. package/srcoman/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +110 -0
  72. package/srcoman/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +316 -0
  73. package/srcoman/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  74. package/srcoman/TabexComponents/Generalfiles/images/noimage.png +0 -0
  75. package/srcoman/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  76. package/srcoman/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  77. package/srcoman/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  78. package/srcoman/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  79. package/srcoman/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  80. package/srcoman/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  81. package/srcoman/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  82. package/srcoman/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  83. package/srcoman/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  84. package/srcoman/TabexComponents/Generalfiles/images/usflag.png +0 -0
  85. package/srcoman/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  86. package/srcoman/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +1259 -0
  87. package/srcoman/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +1049 -0
  88. package/srcoman/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +1040 -0
  89. package/srcoman/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +1263 -0
  90. package/srcoman/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +76 -0
  91. package/srcoman/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +894 -0
  92. package/srcoman/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +831 -0
  93. package/srcoman/TabexComponents/Headers/Header4/Header4.jsx +622 -0
  94. package/srcoman/TabexComponents/Headers/Header8/Header8 copy.jsx +1026 -0
  95. package/srcoman/TabexComponents/Headers/Header8/Header8.jsx +1976 -0
  96. package/srcoman/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +776 -0
  97. package/srcoman/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +927 -0
  98. package/srcoman/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +704 -0
  99. package/srcoman/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +902 -0
  100. package/srcoman/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +953 -0
  101. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +1562 -0
  102. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +1201 -0
  103. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +990 -0
  104. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +1639 -0
  105. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +1610 -0
  106. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +1327 -0
  107. package/srcoman/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +934 -0
  108. package/srcoman/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +78 -0
  109. package/srcoman/TabexComponents/Headers/Modernheader/Modernheader.jsx +972 -0
  110. package/srcoman/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +778 -0
  111. package/srcoman/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +1159 -0
  112. package/srcoman/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +1073 -0
  113. package/srcoman/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +133 -0
  114. package/srcoman/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +854 -0
  115. package/srcoman/TabexComponents/Headers/Subheader/Subheader.jsx +863 -0
  116. package/srcoman/TabexComponents/Headers/Subheader/Subheader13-3.jsx +685 -0
  117. package/srcoman/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +517 -0
  118. package/srcoman/TabexComponents/Headers/Subheader/Subheadernew.jsx +555 -0
  119. package/srcoman/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1042 -0
  120. package/srcoman/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1089 -0
  121. package/srcoman/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +936 -0
  122. package/srcoman/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +533 -0
  123. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +338 -0
  124. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +870 -0
  125. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +302 -0
  126. package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +314 -0
  127. package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +318 -0
  128. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +179 -0
  129. package/srcoman/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +201 -0
  130. package/srcoman/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +393 -0
  131. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +583 -0
  132. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +291 -0
  133. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +627 -0
  134. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +348 -0
  135. package/srcoman/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +387 -0
  136. package/srcoman/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +268 -0
  137. package/srcoman/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +288 -0
  138. package/srcoman/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +117 -0
  139. package/srcoman/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +99 -0
  140. package/srcoman/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +146 -0
  141. package/srcoman/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +462 -0
  142. package/srcoman/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +296 -0
  143. package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +396 -0
  144. package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +617 -0
  145. package/srcoman/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +408 -0
  146. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +1399 -0
  147. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +1656 -0
  148. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +1540 -0
  149. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1898 -0
  150. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +1596 -0
  151. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +1872 -0
  152. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +1880 -0
  153. package/srcoman/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +726 -0
  154. package/srcoman/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +719 -0
  155. package/srcoman/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  156. package/srcoman/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +929 -0
  157. package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +646 -0
  158. package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +962 -0
  159. package/srcoman/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +582 -0
  160. package/srcoman/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  161. package/srcoman/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +342 -0
  162. package/srcoman/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +161 -0
  163. package/srcoman/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +257 -0
  164. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +382 -0
  165. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +437 -0
  166. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +757 -0
  167. package/srcoman/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +346 -0
  168. package/srcoman/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +1769 -0
  169. package/srcoman/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +141 -0
  170. package/srcoman/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +376 -0
  171. package/srcoman/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +380 -0
  172. package/srcoman/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +867 -0
  173. package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
  174. package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
  175. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +143 -0
  176. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  177. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +520 -0
  178. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +527 -0
  179. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +643 -0
  180. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +477 -0
  181. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +1217 -0
  182. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +614 -0
  183. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +91 -0
  184. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +380 -0
  185. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +619 -0
  186. package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +284 -0
  187. package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +614 -0
  188. package/srcoman/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +402 -0
  189. package/srcoman/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +199 -0
  190. package/srcoman/TabexComponents/StaticPages/AddReview/AddReview.jsx +304 -0
  191. package/srcoman/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +321 -0
  192. package/srcoman/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +797 -0
  193. package/srcoman/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +460 -0
  194. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +1306 -0
  195. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout.jsx +1892 -0
  196. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +1633 -0
  197. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +1593 -0
  198. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +1574 -0
  199. package/srcoman/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +245 -0
  200. package/srcoman/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +2888 -0
  201. package/srcoman/TabexComponents/StaticPages/Filter/Filter copy.jsx +1450 -0
  202. package/srcoman/TabexComponents/StaticPages/Filter/Filter.jsx +2771 -0
  203. package/srcoman/TabexComponents/StaticPages/Filter/Filter1-5.jsx +2624 -0
  204. package/srcoman/TabexComponents/StaticPages/Filter/Filter13-11.jsx +2758 -0
  205. package/srcoman/TabexComponents/StaticPages/Filter/Filter14-8.jsx +2753 -0
  206. package/srcoman/TabexComponents/StaticPages/Filter/Filter17-9.jsx +1495 -0
  207. package/srcoman/TabexComponents/StaticPages/Filter/VariantFilter.jsx +1271 -0
  208. package/srcoman/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +62 -0
  209. package/srcoman/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  210. package/srcoman/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  211. package/srcoman/TabexComponents/StaticPages/Login/Login copy.jsx +1060 -0
  212. package/srcoman/TabexComponents/StaticPages/Login/Login.jsx +610 -0
  213. package/srcoman/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +172 -0
  214. package/srcoman/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1584 -0
  215. package/srcoman/TabexComponents/StaticPages/Policies/Policies.jsx +291 -0
  216. package/srcoman/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +194 -0
  217. package/srcoman/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +183 -0
  218. package/srcoman/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +128 -0
  219. package/srcoman/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +255 -0
  220. package/srcoman/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +176 -0
  221. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +225 -0
  222. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +92 -0
  223. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +312 -0
  224. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +235 -0
  225. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1983 -0
  226. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +1554 -0
  227. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +1827 -0
  228. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +1351 -0
  229. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +1566 -0
  230. package/srcoman/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1946 -0
  231. package/srcoman/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +1037 -0
  232. package/srcoman/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +966 -0
  233. package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +632 -0
  234. package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +324 -0
  235. package/srcoman/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  236. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +183 -0
  237. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +128 -0
  238. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +140 -0
  239. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +225 -0
  240. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +310 -0
  241. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +235 -0
  242. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +1672 -0
  243. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +1554 -0
  244. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +1351 -0
  245. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +1566 -0
  246. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +1804 -0
  247. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +560 -0
  248. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +919 -0
  249. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +597 -0
  250. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +324 -0
  251. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +145 -0
  252. package/srcoman/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +194 -0
  253. package/srcoman/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +338 -0
  254. package/srcoman/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +359 -0
  255. package/srcoman/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +113 -0
  256. package/srcoman/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +277 -0
  257. package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +1135 -0
  258. package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +1364 -0
  259. package/srcoman/TabexComponents/StaticPages/Signup/Signup.jsx +199 -0
  260. package/srcoman/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +292 -0
  261. package/srcoman/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +113 -0
  262. package/srcoman/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +162 -0
  263. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +765 -0
  264. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +786 -0
  265. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +786 -0
  266. package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +786 -0
  267. package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +1425 -0
  268. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +844 -0
  269. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +555 -0
  270. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +555 -0
  271. package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +555 -0
  272. package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +815 -0
  273. package/srcoman/button.jsx +40 -0
  274. package/srcoman/index.jsx +334 -0
  275. package/srcoman/styles/Home.module.css +129 -0
  276. package/srcoman/styles/cards/Categorcycard_fullimage.module.css +14 -0
  277. package/srcoman/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  278. package/srcoman/styles/cards/Categorycard_withshapes.module.css +189 -0
  279. package/srcoman/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  280. package/srcoman/styles/cards/Productcard6.module.css +9 -0
  281. package/srcoman/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  282. package/srcoman/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  283. package/srcoman/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  284. package/srcoman/styles/cards/card23.module.css +60 -0
  285. package/srcoman/styles/cards/categorycard.module.css +84 -0
  286. package/srcoman/styles/cards/categorycard3.module.css +50 -0
  287. package/srcoman/styles/cards/categorycardwithtext.module.css +40 -0
  288. package/srcoman/styles/cards/generalCardsStyles.module.css +79 -0
  289. package/srcoman/styles/cards/productcard_animatedbuttons.module.css +139 -0
  290. package/srcoman/styles/cards/productcard_with_textonhover.module.css +18 -0
  291. package/srcoman/styles/cards/productcard_withtextonimage.module.css +0 -0
  292. package/srcoman/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  293. package/srcoman/styles/general/bootstrap.css +4763 -0
  294. package/srcoman/styles/general/dropdown.css +206 -0
  295. package/srcoman/styles/general/editorbardropdown.module.css +94 -0
  296. package/srcoman/styles/general/filter.module.css +108 -0
  297. package/srcoman/styles/general/form.module.css +255 -0
  298. package/srcoman/styles/general/general.module.css +872 -0
  299. package/srcoman/styles/general/image-gallery.css +531 -0
  300. package/srcoman/styles/general/react-accessible-accordion.module.css +52 -0
  301. package/srcoman/styles/general/react-phone-input-2.module.css +927 -0
  302. package/srcoman/styles/general/scrollbtn.module.css +22 -0
  303. package/srcoman/styles/general/slick.module.css +166 -0
  304. package/srcoman/styles/general/tabs.module.css +119 -0
  305. package/srcoman/styles/general/workplaceeditor.module.css +328 -0
  306. package/srcoman/styles/globals.css +26 -0
  307. package/srcoman/styles/headers/CTAHeader.module.css +40 -0
  308. package/srcoman/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  309. package/srcoman/styles/headers/Gotoheader.module.css +87 -0
  310. package/srcoman/styles/headers/Header7.module.css +50 -0
  311. package/srcoman/styles/headers/HeaderWithAdSlider.module.css +86 -0
  312. package/srcoman/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  313. package/srcoman/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  314. package/srcoman/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  315. package/srcoman/styles/headers/NewHeader.module.css +101 -0
  316. package/srcoman/styles/headers/SearchFocusedHeader.module.css +62 -0
  317. package/srcoman/styles/headers/Sideheader.module.css +108 -0
  318. package/srcoman/styles/headers/Simpleheader.module.css +102 -0
  319. package/srcoman/styles/headers/classicheader.module.css +16 -0
  320. package/srcoman/styles/headers/classicheaderstyles.module.css +9 -0
  321. package/srcoman/styles/headers/dropdown.css +0 -0
  322. package/srcoman/styles/headers/header4.module.css +175 -0
  323. package/srcoman/styles/headers/header5.module.css +30 -0
  324. package/srcoman/styles/headers/header_contactinfo.module.css +53 -0
  325. package/srcoman/styles/headers/headerresturant.module.css +89 -0
  326. package/srcoman/styles/headers/modernheader.module.css +45 -0
  327. package/srcoman/styles/headers/stylishheader.module.css +24 -0
  328. package/srcoman/styles/headers/subheader.module.css +114 -0
  329. package/srcoman/styles/headers/threetieredheader.module.css +91 -0
  330. package/srcoman/styles/sections/BackgroundImageWithTopContent.css +4 -0
  331. package/srcoman/styles/sections/Backgroundimage1.module.css +17 -0
  332. package/srcoman/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  333. package/srcoman/styles/sections/Freetext.module.css +18 -0
  334. package/srcoman/styles/sections/Section_with_rightbgcont.module.css +49 -0
  335. package/srcoman/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  336. package/srcoman/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  337. package/srcoman/styles/staticpages/accordion.module.css +9 -0
  338. package/srcoman/styles/staticpages/cart.module.css +108 -0
  339. package/srcoman/styles/staticpages/dropdown.css +196 -0
  340. package/srcoman/styles/staticpages/filter.module.css +139 -0
  341. package/srcoman/styles/staticpages/image-gallery.css +481 -0
  342. package/srcoman/styles/staticpages/login.module.css +155 -0
  343. package/srcoman/styles/staticpages/productinfo.module.css +54 -0
  344. package/srcoman/styles/staticpages/shop.module.css +191 -0
  345. package/srcoman/styles/staticpages/signup.module.css +250 -0
  346. package/srcoman/styles/staticpages/staticroutersidenav.module.css +129 -0
  347. package/srcoman/styles/staticpages/viewcart.module.css +129 -0
  348. package/srcoman/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,1399 @@
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 { useInView } from 'react-intersection-observer';
6
+ import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
7
+ import { serverbaselink } from '../../../../../Env';
8
+ import { FaArrowAltCircleRight } from '@react-icons/all-files/fa/FaArrowAltCircleRight';
9
+ import { FaArrowAltCircleLeft } from '@react-icons/all-files/fa/FaArrowAltCircleLeft';
10
+ import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
11
+ import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
12
+ import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';
13
+ import { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';
14
+ import { HiOutlineArrowRight } from '@react-icons/all-files/hi/HiOutlineArrowRight';
15
+ import { HiOutlineArrowLeft } from '@react-icons/all-files/hi/HiOutlineArrowLeft';
16
+ import ReactPaginate from 'react-paginate';
17
+ const CardsSection = (props) => {
18
+ const refscr = createRef();
19
+ const { ref, inView } = useInView();
20
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
21
+ const lang = props.actions.lang;
22
+ const langdetect = props.actions.langdetect;
23
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
24
+ const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
25
+ const routingcountext = props.actions.routingcountext;
26
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
27
+ const ProductFilterObjContext = props.actions.ProductFilterObjContext;
28
+ const setProductFilterObjContext = props.actions.setProductFilterObjContext;
29
+ const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
30
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
31
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
32
+ const fetchProductsQuery = props.actions.fetchProductsQuery;
33
+ const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
34
+ const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
35
+ const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
36
+ const setfetchingtype = props.actions.setfetchingtype;
37
+ const fetchingtype = props.actions.fetchingtype;
38
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
39
+ const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
40
+ const FetchVendorsQuery = props.actions.FetchVendorsQuery;
41
+ const ikimagecredcontext = props.actions.ikimagecredcontext;
42
+ const [openFilterSlider, setopenFilterSlider] = useState(false);
43
+ const actions = props.actions;
44
+ const [sectionproperties, setsectionproperties] = useState('');
45
+ const [cardsarray, setcardsarray] = useState([]);
46
+ const [sectionitem, setsectionitem] = useState('');
47
+ const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
48
+ const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
49
+ // React.useEffect(() => {
50
+ // if (inView) {
51
+ // fetchProductsQuery.fetchNextPage();
52
+ // }
53
+ // }, [inView]);
54
+ useEffect(() => {
55
+ var productfilerobjtemp = ProductFilterObjContext;
56
+ if (props.filterparamsprops != undefined) {
57
+ var filterpar = decodeURIComponent(props.filterparamsprops);
58
+ var filterparsed = JSON.parse(filterpar);
59
+
60
+ if (filterparsed != undefined) {
61
+ productfilerobjtemp = filterparsed;
62
+ setProductFilterObjContext(filterparsed);
63
+ }
64
+ }
65
+
66
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
67
+ if (sectionitem.sectionid == props.sectionidprops) {
68
+ var secpropobj = {};
69
+ setsectionitem(sectionitem);
70
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
71
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72
+ });
73
+ setsectionproperties({ ...secpropobj });
74
+
75
+ if (props.srcfromprops == 'GeneralProductsComponent') {
76
+ setfetchingtype('products');
77
+ var lcproductfetchingtype = 'Random';
78
+
79
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
80
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
81
+ }
82
+ setProductsFetchingTypeSectionObj({
83
+ productfetchingtype: lcproductfetchingtype,
84
+ collectionid: props.collectionidprops,
85
+ grouptype: props.grouptypeprops,
86
+ grouptyperefid: props.grouptyperefidprops,
87
+ });
88
+ } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
89
+ setfetchingtype(props.grouptypeprops);
90
+ } else if (props.srcfromprops == 'Innervendor') {
91
+ setfetchingtype('vendors');
92
+ } else {
93
+ setfetchingtype(sectionitem.fetchingtype);
94
+ setProductsFetchingTypeSectionObj({
95
+ productfetchingtype: sectionitem.productsfetchingtype,
96
+ collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
97
+ grouptype: props.grouptypeprops,
98
+ grouptyperefid: props.grouptyperefidprops,
99
+ });
100
+ }
101
+ }
102
+ });
103
+ }, [StatePagePropertiesContext]);
104
+ useEffect(() => {
105
+ if (sectionproperties.length != 0) {
106
+ if (cardsarray.length == 0) {
107
+ if (fetchingtype == 'collections') {
108
+ if (fetchcollectionsQueryContext.isSuccess) {
109
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
110
+ }
111
+ } else if (fetchingtype == 'products') {
112
+ if (fetchProductsQuery.isSuccess) {
113
+ var allpagesarr = [];
114
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
115
+ allpagesarr.push(item);
116
+ });
117
+ cardobjassigner(allpagesarr);
118
+ }
119
+ } else if (fetchingtype == 'vendors') {
120
+ if (FetchVendorsQuery.isSuccess) {
121
+ cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }, [sectionproperties]);
127
+ useEffect(() => {
128
+ if (fetchingtype?.length != 0) {
129
+ var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
130
+ if (fetchingtype == 'collections') {
131
+ if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
132
+ setParentCollectionsForCollectionQueryArr('all');
133
+ } else {
134
+ setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
135
+ }
136
+ }
137
+ if (fetchingtype == 'products') {
138
+ var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
139
+ tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
140
+ if (
141
+ ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
142
+ ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
143
+ ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
144
+ ) {
145
+ } else {
146
+ if (tempfetchproductsfilerobjcontext.collections != undefined) {
147
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
148
+ }
149
+ }
150
+ tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
151
+ tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
152
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
153
+ }
154
+ if (fetchingtype == 'categories') {
155
+ if (fetchAuthorizationQueryContext?.isSuccess) {
156
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
157
+ cardobjassigner(categories);
158
+ }
159
+ }
160
+
161
+ if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
162
+ if (fetchAuthorizationQueryContext?.isSuccess) {
163
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
164
+ var parentcollections = [];
165
+ categories?.forEach(function (catitem, catindex) {
166
+ catitem?.parentcolletions.forEach(function (parentcolitem) {
167
+ parentcolitem.categoryid = catitem.categoryid;
168
+ parentcollections.push(parentcolitem);
169
+ });
170
+ });
171
+ if (fetchingtype == 'parentcollections') {
172
+ if (
173
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
174
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
175
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
176
+ ) {
177
+ var arrafterfilter = [];
178
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
179
+ if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
180
+ arrafterfilter.push(parentcolitem);
181
+ }
182
+ });
183
+ parentcollections = arrafterfilter;
184
+ }
185
+ }
186
+ if (fetchingtype == 'innercategories') {
187
+ var arrafterfilter = [];
188
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
189
+ if (parentcolitem.categoryid == props.collectionidprops) {
190
+ arrafterfilter.push(parentcolitem);
191
+ }
192
+ });
193
+ parentcollections = arrafterfilter;
194
+ }
195
+
196
+ cardobjassigner(parentcollections);
197
+ }
198
+ } else if (fetchingtype == 'innerparentcollections') {
199
+ if (fetchAuthorizationQueryContext?.isSuccess) {
200
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
201
+ var collections = [];
202
+ categories?.forEach(function (catitem, catindex) {
203
+ catitem?.parentcolletions.forEach(function (parentcolitem) {
204
+ parentcolitem.categoryid = catitem.categoryid;
205
+ parentcolitem?.collections?.forEach(function (collitem, colindex) {
206
+ collitem.parentcollectionid = parentcolitem.parentcollectionid;
207
+ collections.push(collitem);
208
+ });
209
+ });
210
+ });
211
+ if (fetchingtype == 'innerparentcollections') {
212
+ var collectionsafterfilter = [];
213
+ collections.forEach(function (colitem, colindex) {
214
+ if (colitem.parentcollectionid == props.collectionidprops) {
215
+ var iscollexists = false;
216
+ collectionsafterfilter.forEach(function (existcolitem) {
217
+ if (colitem.collectionid == existcolitem.collectionid) {
218
+ iscollexists = true;
219
+ }
220
+ });
221
+ if (iscollexists == false) {
222
+ collectionsafterfilter.push(colitem);
223
+ }
224
+ }
225
+ });
226
+ collections = collectionsafterfilter;
227
+ }
228
+ cardobjassigner(collections);
229
+ }
230
+ }
231
+
232
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
233
+ }
234
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
235
+ useEffect(() => {
236
+ if (fetchingtype == 'products') {
237
+ if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
238
+ var allpagesarr = [];
239
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
240
+ allpagesarr.push(item);
241
+ });
242
+ cardobjassigner(allpagesarr);
243
+ }
244
+ }
245
+ }, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
246
+ useEffect(() => {
247
+ if (fetchingtype == 'collections') {
248
+ if (fetchcollectionsQueryContext.isSuccess) {
249
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
250
+ }
251
+ }
252
+ }, [fetchcollectionsQueryContext?.isSuccess]);
253
+ useEffect(() => {
254
+ if (fetchingtype == 'vendors') {
255
+ if (FetchVendorsQuery.isSuccess) {
256
+ if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
257
+ cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
258
+ }
259
+ }
260
+ }
261
+ }, [FetchVendorsQuery.isSuccess]);
262
+ useEffect(() => {
263
+ favassigner();
264
+ }, [favoriteprojectscountContext]);
265
+ useEffect(() => {
266
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
267
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
268
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
269
+ setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
270
+ }
271
+ }
272
+ }, [sectionproperties]);
273
+ const favassigner = () => {
274
+ if (fetchingtype == 'products') {
275
+ if (cardsarray.length != 0) {
276
+ if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
277
+ var tempcardsarray = [...cardsarray];
278
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
279
+ arrayItem.IsFavExists = false;
280
+ });
281
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
282
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
283
+ if (arrayItem.productid == favitem) {
284
+ arrayItem.IsFavExists = true;
285
+ }
286
+ });
287
+ });
288
+ setcardsarray([...tempcardsarray]);
289
+ }
290
+ }
291
+ }
292
+ };
293
+ const cardobjassigner = (fetchedarray) => {
294
+ var temparray = [];
295
+
296
+ fetchedarray.forEach(function (arrayItem, arrayindex) {
297
+ var cardobj = {
298
+ name: '',
299
+ image: '',
300
+ };
301
+ if (fetchingtype == 'products') {
302
+ var itemquantity = 0;
303
+ if (langdetect == 'en') {
304
+ cardobj.name = arrayItem.productinfo.name_en;
305
+ } else {
306
+ cardobj.name = arrayItem.productinfo.name_ar;
307
+ }
308
+ if (langdetect == 'en') {
309
+ cardobj.description = arrayItem.productinfo.description_en;
310
+ } else {
311
+ cardobj.description = arrayItem.productinfo.description_ar;
312
+ }
313
+ if (arrayItem.productinfo.hasvariants == 0) {
314
+ fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
315
+ if (cartitem.productid == arrayItem.productinfo.productid) {
316
+ itemquantity = cartitem.quantity;
317
+ }
318
+ });
319
+ }
320
+ cardobj.image = arrayItem.productinfo.productmainimage;
321
+ cardobj.hassale = arrayItem.productinfo.hassale;
322
+ cardobj.productid = arrayItem.productinfo.productid;
323
+ cardobj.hasvariants = arrayItem.productinfo.hasvariants;
324
+ cardobj.description_en = arrayItem.productinfo.description_en;
325
+ cardobj.description_ar = arrayItem.productinfo.description_ar;
326
+ cardobj.defaultprice = arrayItem.productinfo.defaultprice;
327
+ cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
328
+ cardobj.productimages = arrayItem.productinfo.productimages;
329
+ cardobj.quantity = itemquantity;
330
+ // cardobj.currentquantity = currentquantity;
331
+ cardobj.timestamp = arrayItem.productinfo.timestamp;
332
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
333
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
334
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
335
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
336
+ cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
337
+ cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
338
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
339
+
340
+ if (langdetect == 'en') {
341
+ cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_en;
342
+ } else {
343
+ cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_ar;
344
+ }
345
+ if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
346
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
347
+ if (arrayItem.productinfo.productid == favitem) {
348
+ cardobj.IsFavExists = true;
349
+ }
350
+ });
351
+ }
352
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
353
+ cardobj.collectionid = arrayItem.collectionid;
354
+ if (langdetect == 'en') {
355
+ cardobj.name = arrayItem.title_en;
356
+ cardobj.description = arrayItem.description_en;
357
+ } else if (langdetect == 'ar') {
358
+ cardobj.name = arrayItem.title_ar;
359
+ cardobj.description = arrayItem.description_ar;
360
+ }
361
+ cardobj.image = arrayItem.collectionlogo;
362
+ } else if (fetchingtype == 'categories') {
363
+ cardobj.collectionid = arrayItem.categoryid;
364
+ if (langdetect == 'en') {
365
+ cardobj.name = arrayItem.title_en;
366
+ cardobj.description = arrayItem.description_en;
367
+ } else if (langdetect == 'ar') {
368
+ cardobj.name = arrayItem.title_ar;
369
+ cardobj.description = arrayItem.description_ar;
370
+ }
371
+ cardobj.image = arrayItem.categorylogo;
372
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
373
+ cardobj.collectionid = arrayItem.parentcollectionid;
374
+ if (langdetect == 'en') {
375
+ cardobj.name = arrayItem.title_en;
376
+ cardobj.description = arrayItem.description_en;
377
+ } else if (langdetect == 'ar') {
378
+ cardobj.name = arrayItem.title_ar;
379
+ cardobj.description = arrayItem.description_ar;
380
+ }
381
+ cardobj.image = arrayItem.parentcollectionlogo;
382
+ } else if (fetchingtype == 'custom') {
383
+ } else if (fetchingtype == 'vendors') {
384
+ cardobj.name = arrayItem.vendorname;
385
+ cardobj.collectionid = arrayItem.vendorid;
386
+ cardobj.image = arrayItem.vendorlogourl;
387
+ }
388
+ temparray.push(cardobj);
389
+ });
390
+
391
+ setcardsarray([...temparray]);
392
+ };
393
+ // Example items, to simulate fetching from another resources.
394
+ const handlePageClick = (event) => {
395
+ props.scrolltotop();
396
+ var tempProductFilterObjContext = { ...ProductFilterObjContext };
397
+ tempProductFilterObjContext.page = event?.selected;
398
+ setProductFilterObjContext({ ...tempProductFilterObjContext });
399
+ var pasturl = '';
400
+ if (props.grouptypeprops != undefined) {
401
+ if (props.collectionidprops != undefined) {
402
+ pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
403
+ }
404
+ }
405
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
406
+ };
407
+ function PaginatedItems({ itemsPerPage }) {
408
+ const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
409
+ return (
410
+ <div class="d-flex containerClassName">
411
+ <ReactPaginate
412
+ breakLabel="..."
413
+ forcePage={fetchProductsQuery?.data?.data?.page}
414
+ nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
415
+ onPageChange={handlePageClick}
416
+ active
417
+ pageRangeDisplayed={5}
418
+ pageCount={pageCount}
419
+ previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
420
+ renderOnZeroPageCount={null}
421
+ pageLinkClassName={section_cssstyles.pageLinkClassName}
422
+ nextLinkClassName={section_cssstyles.nextLinkClassName}
423
+ previousLinkClassName={section_cssstyles.previousLinkClassName}
424
+ activeClassName={section_cssstyles.activeClassName}
425
+ activeLinkClassName={section_cssstyles.activeLinkClassName}
426
+ previousClassName={section_cssstyles.previousClassName}
427
+ nextClassName={section_cssstyles.nextClassName}
428
+ disabledClassName={section_cssstyles.disabledClassName}
429
+ disabledLinkClassName={section_cssstyles.disabledLinkClassName}
430
+ />
431
+ </div>
432
+ );
433
+ }
434
+ const section_cssstyles = {
435
+ disabledClassName: css({
436
+ cursor: 'not-allowed',
437
+ ':hover': {
438
+ cursor: 'not-allowed',
439
+ color: sectionproperties.paginationColor,
440
+ },
441
+ }),
442
+ disabledLinkClassName: css({
443
+ cursor: 'not-allowed',
444
+ ':hover': {
445
+ cursor: 'not-allowed',
446
+ color: sectionproperties.paginationColor,
447
+ },
448
+ }),
449
+ pageLinkClassName: css({
450
+ minWidth: sectionproperties.paginationContainerWidth + 'vh',
451
+ height: sectionproperties.paginationContainerHeight + 'vh',
452
+ padding: '17px',
453
+ display: 'flex',
454
+ alignItems: 'center',
455
+ justifyContent: 'center',
456
+ color: sectionproperties.paginationColor,
457
+ border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
458
+ transition: '.3s',
459
+ ':hover': {
460
+ color: sectionproperties.paginationColoronHover,
461
+ borderColor: sectionproperties.paginationColoronHover,
462
+ },
463
+ }),
464
+ activeClassName: css({
465
+ color: sectionproperties.paginationActiveColor,
466
+ borderColor: sectionproperties.paginationActiveColor,
467
+ }),
468
+ activeLinkClassName: css({
469
+ color: sectionproperties.paginationActiveColor,
470
+ borderColor: sectionproperties.paginationActiveColor,
471
+ }),
472
+ previousClassName: css({
473
+ width: sectionproperties.paginationContainerWidth + 'vh',
474
+ height: sectionproperties.paginationContainerHeight + 'vh',
475
+ padding: '17px',
476
+ display: 'flex',
477
+ alignItems: 'center',
478
+ justifyContent: 'center',
479
+ color: sectionproperties.paginationColor,
480
+ border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
481
+ transition: '.3s',
482
+ ':hover': {
483
+ color: sectionproperties.paginationColoronHover,
484
+ borderColor: sectionproperties.paginationColoronHover,
485
+ },
486
+ }),
487
+ nextClassName: css({
488
+ width: sectionproperties.paginationContainerWidth + 'vh',
489
+ height: sectionproperties.paginationContainerHeight + 'vh',
490
+ padding: '17px',
491
+ display: 'flex',
492
+ alignItems: 'center',
493
+ justifyContent: 'center',
494
+ color: sectionproperties.paginationColor,
495
+ border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
496
+ transition: '.3s',
497
+ ':hover': {
498
+ color: sectionproperties.paginationColoronHover,
499
+ borderColor: sectionproperties.paginationColoronHover,
500
+ },
501
+ }),
502
+ previousLinkClassName: css({
503
+ fontSize: sectionproperties.paginationFontSize + 'px',
504
+ color: sectionproperties.paginationColor,
505
+ transition: '.3s',
506
+ ':hover': {
507
+ color: sectionproperties.paginationColoronHover,
508
+ },
509
+ }),
510
+ nextLinkClassName: css({
511
+ fontSize: sectionproperties.paginationFontSize + 'px',
512
+ color: sectionproperties.paginationColor,
513
+ transition: '.3s',
514
+ ':hover': {
515
+ color: sectionproperties.paginationColoronHover,
516
+ },
517
+ }),
518
+ sectiontitlespan: css({
519
+ ':after': {
520
+ height: '5px',
521
+ width: sectionproperties.sectitle_lineafterwidth + '%',
522
+ backgroundColor: sectionproperties.linebgcolor,
523
+ },
524
+ }),
525
+ line_left: css({
526
+ height: '1px',
527
+ position: 'relative',
528
+ flex: '1 1 auto',
529
+ minWidth: '10%',
530
+ background: sectionproperties.linebgcolor,
531
+ }),
532
+ line_right: css({
533
+ height: '1px',
534
+ position: 'relative',
535
+ flex: '1 1 auto',
536
+ minWidth: '10%',
537
+ background: sectionproperties.linebgcolor,
538
+ }),
539
+ cards_sections: css({
540
+ paddingLeft: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
541
+ paddingRight: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
542
+ paddingTop: sectionproperties.paddingTop + 'px',
543
+ paddingBottom: sectionproperties.paddingBottom + 'px',
544
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
545
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
546
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
547
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
548
+ borderColor: sectionproperties.sectioncardbordercolor,
549
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
550
+ }),
551
+ filterbtn: css({
552
+ width: sectionproperties.filterbtn_Width + 'px',
553
+ height: sectionproperties.filterbtn_Height + 'px',
554
+ background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
555
+ borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
556
+ borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
557
+ borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
558
+ borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
559
+ color: sectionproperties.filterbtn_Textcolor,
560
+ boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
561
+ marginTop: sectionproperties.filterbtn_marginTop + 'px',
562
+ marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
563
+ marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
564
+ marginRight: sectionproperties.filterbtn_marginRight + 'px',
565
+ transition: '.3s',
566
+ ':hover': {
567
+ background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
568
+ color: sectionproperties.filterbtn_Textcoloronhover,
569
+ },
570
+ }),
571
+ viewmorebtn: css({
572
+ width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
573
+ height: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
574
+ background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
575
+ borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
576
+ color: sectionproperties.viewmorebtn_Textcolor,
577
+ fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
578
+ fontWeight: sectionproperties.viewmorebtn_fontWeight,
579
+ textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
580
+ transition: '.3s',
581
+ ':hover': {
582
+ background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
583
+ color: sectionproperties.viewmorebtn_Textcoloronhover,
584
+ },
585
+ }),
586
+ loadbtn: css({
587
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
588
+ color: sectionproperties.generaltext_fontColor,
589
+ fontWeight: sectionproperties.generaltext_fontWeight,
590
+ textDecoration: 'underline',
591
+ transition: '.3s',
592
+ ':hover': {
593
+ color: sectionproperties.text_secondarycolor,
594
+ },
595
+ }),
596
+ };
597
+ const SectionTitle = () => {
598
+ return (
599
+ <div
600
+ class="d-flex align-items-center flex-row"
601
+ style={{
602
+ position: 'relative',
603
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
604
+ width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
605
+ }}
606
+ >
607
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
608
+ <p
609
+ class={
610
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
611
+ ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
612
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
613
+ ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
614
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
615
+ ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
616
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
617
+ ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
618
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
619
+ ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
620
+ : sectionproperties.sectiontitlefontfamily == 'ASUL'
621
+ ? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
622
+ : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
623
+ }
624
+ style={{
625
+ color: sectionproperties.sectionTitleColor,
626
+ fontWeight: sectionproperties.sectionTitleFontWeight,
627
+ paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
628
+ paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
629
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
630
+ }}
631
+ >
632
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
633
+ </p>
634
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
635
+ </div>
636
+ );
637
+ };
638
+ const cardsrender = () => {
639
+ return (
640
+ <div
641
+ class={
642
+ sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical'
643
+ ? sectionproperties.numofcols == '2'
644
+ ? 'col-lg-10 col-md-12 col-sm-12 p-sm-0'
645
+ : 'col-lg-9 col-md-12 col-sm-12 p-sm-0'
646
+ : 'row m-0 w-100 p-sm-0'
647
+ }
648
+ >
649
+ {sectionproperties.length != 0 && (
650
+ <div className="row m-0 w-100 d-flex align-items-center p-sm-0">
651
+ <div class="col-lg-12 p-0">
652
+ <div
653
+ className="row ml-0 mr-0 w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2"
654
+ style={{
655
+ marginTop: sectionproperties.showbadge == 'Show' ? 0 : sectionproperties.sectionTitleMarginTop + 'px',
656
+ marginBottom: sectionproperties.sectiontitledirection == 'Horizontal' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
657
+ paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
658
+ paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
659
+ }}
660
+ >
661
+ <div
662
+ class={
663
+ sectionproperties.viewmorebtnshow == 'Show'
664
+ ? sectionproperties.sectiontitleposition == 'Centered'
665
+ ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
666
+ : ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
667
+ : sectionproperties.showFilter == 'show'
668
+ ? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
669
+ : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
670
+ }
671
+ >
672
+ <div class="row m-0 w-100">
673
+ {sectionproperties.showbadge == 'Show' && (
674
+ <div
675
+ class={' col-lg-12 p-0 d-flex align-items-center '}
676
+ style={{
677
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
678
+ }}
679
+ >
680
+ <p
681
+ class="m-0 p-0 allcentered"
682
+ style={{
683
+ fontSize: sectionproperties.badge_fontsize + 'px',
684
+ background: sectionproperties.badge_bgcolor,
685
+ minWidth: sectionproperties.badge_width + 'px',
686
+ height: sectionproperties.badge_height + 'px',
687
+ color: sectionproperties.badge_color,
688
+ borderRadius: sectionproperties.badge_borderradius + 'px',
689
+ border: sectionproperties.badgeborderwidth + 'px solid ' + sectionproperties.badgebordercolor,
690
+ }}
691
+ >
692
+ {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
693
+ </p>
694
+ </div>
695
+ )}
696
+ {sectionproperties.sectiontitleshow == 'Show' && (
697
+ <div
698
+ class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex d-md-none align-items-center '}
699
+ style={{
700
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
701
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
702
+ marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
703
+ marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
704
+ }}
705
+ >
706
+ {SectionTitle()}
707
+ </div>
708
+ )}
709
+ {sectionproperties.sectiontitleshow == 'Show' && (
710
+ <div
711
+ class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-none d-md-flex align-items-center '}
712
+ style={{
713
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
714
+ fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
715
+ marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
716
+ marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
717
+ }}
718
+ >
719
+ {SectionTitle()}
720
+ </div>
721
+ )}
722
+ {sectionproperties.sectiontitledirection == 'Vertical' && (
723
+ <div class="col-lg-12 p-0">
724
+ {sectionproperties.viewmorebtnshow == 'Show' && (
725
+ <button
726
+ class={
727
+ sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
728
+ ? sectionproperties.sectiontitleposition == 'Centered'
729
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
730
+ : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
731
+ : sectionproperties.sectiontitleposition == 'Centered'
732
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
733
+ : `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
734
+ }
735
+ onClick={() => {
736
+ if (fetchingtype == 'products') {
737
+ if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
738
+ routingcountext(
739
+ StaticPagesLinksContext.GeneralProductsComponent,
740
+ true,
741
+ 'collections/' + ProductsFetchingTypeSectionObj.collectionid,
742
+ );
743
+ } else {
744
+ routingcountext(
745
+ StaticPagesLinksContext.GeneralProductsComponent,
746
+ true,
747
+ encodeURIComponent(JSON.stringify(ProductFilterObjContext)),
748
+ );
749
+ }
750
+ } else {
751
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
752
+ }
753
+ }}
754
+ style={{
755
+ flexDirection: 'row',
756
+ }}
757
+ >
758
+ <span class={'d-flex justify-content-center align-items-center'}>
759
+ <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'}>
760
+ {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
761
+ </span>
762
+ {sectionproperties.showIcon == 'Show' && (
763
+ <i
764
+ class={
765
+ sectionproperties.sectiontitleposition == 'Centered'
766
+ ? 'd-flex justify-content-center align-items-center h-100 allcentered'
767
+ : 'd-flex justify-content-center align-items-center d-md-none h-100'
768
+ }
769
+ style={{
770
+ marginLeft: 5,
771
+ marginRight: 5,
772
+ }}
773
+ >
774
+ {langdetect == 'en' ? (
775
+ <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
776
+ ) : (
777
+ <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
778
+ )}
779
+ </i>
780
+ )}
781
+ </span>
782
+ </button>
783
+ )}
784
+ </div>
785
+ )}
786
+ {sectionproperties.prodCatShow == 'Show' && (
787
+ <div
788
+ class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center d-md-none '}
789
+ style={{
790
+ justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
791
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
792
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
793
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
794
+ }}
795
+ >
796
+ <p
797
+ class={
798
+ sectionproperties.descFontFamily == 'Pacifico'
799
+ ? ' PacificoFont m-0 p-0 wordbreak '
800
+ : sectionproperties.descFontFamily == 'Playfair'
801
+ ? ' PlayfairFont m-0 p-0 wordbreak '
802
+ : sectionproperties.descFontFamily == 'Great Vibes'
803
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
804
+ : sectionproperties.descFontFamily == 'Quicksand'
805
+ ? ' QuicksandFont m-0 p-0 wordbreak'
806
+ : sectionproperties.descFontFamily == 'ASUL'
807
+ ? ' ASUL m-0 p-0 wordbreak '
808
+ : ' m-0 p-0 wordbreak '
809
+ }
810
+ style={{
811
+ color: sectionproperties.prodCatColor,
812
+ fontWeight: sectionproperties.prodCatFontWeight,
813
+ textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
814
+ fontSize: sectionproperties.prodCatFontSize + 'px',
815
+ }}
816
+ >
817
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
818
+ </p>
819
+ </div>
820
+ )}
821
+ {sectionproperties.prodCatShow == 'Show' && (
822
+ <div
823
+ class={' col-lg-12 col-md-12 col-sm-12 align-items-center p-0 d-none d-md-flex '}
824
+ style={{
825
+ justifyContent: sectionproperties.showFilter == 'show' ? 'start' : sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
826
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
827
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
828
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
829
+ }}
830
+ >
831
+ <p
832
+ class={
833
+ sectionproperties.descFontFamily == 'Pacifico'
834
+ ? ' PacificoFont m-0 p-0 wordbreak '
835
+ : sectionproperties.descFontFamily == 'Playfair'
836
+ ? ' PlayfairFont m-0 p-0 wordbreak '
837
+ : sectionproperties.descFontFamily == 'Great Vibes'
838
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
839
+ : sectionproperties.descFontFamily == 'Quicksand'
840
+ ? ' QuicksandFont m-0 p-0 wordbreak '
841
+ : sectionproperties.descFontFamily == 'ASUL'
842
+ ? ' ASUL m-0 p-0 wordbreak '
843
+ : ' m-0 p-0 wordbreak '
844
+ }
845
+ style={{
846
+ color: sectionproperties.prodCatColor,
847
+ fontWeight: sectionproperties.prodCatFontWeight,
848
+ textAlign:
849
+ sectionproperties.showFilter == 'show'
850
+ ? langdetect == 'en'
851
+ ? 'left'
852
+ : 'right'
853
+ : sectionproperties.descriptionCentered == 'Centered'
854
+ ? 'center'
855
+ : langdetect == 'en'
856
+ ? 'left'
857
+ : 'right',
858
+ fontSize: sectionproperties.prodCatFontSizeResp + 'px',
859
+ }}
860
+ >
861
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
862
+ </p>
863
+ </div>
864
+ )}
865
+ </div>
866
+ </div>
867
+ <div
868
+ class={
869
+ sectionproperties.sectiontitleposition == 'Centered'
870
+ ? sectionproperties.showFilter == 'show'
871
+ ? 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0'
872
+ : 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
873
+ : 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
874
+ }
875
+ style={{
876
+ marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0,
877
+ }}
878
+ >
879
+ <div
880
+ class={
881
+ sectionproperties.sectiontitleposition == 'Centered'
882
+ ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto '
883
+ : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
884
+ }
885
+ >
886
+ {sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && (
887
+ <button
888
+ class={
889
+ sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
890
+ ? sectionproperties.sectiontitleposition == 'Centered'
891
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
892
+ : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
893
+ : sectionproperties.sectiontitleposition == 'Centered'
894
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
895
+ : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
896
+ }
897
+ onClick={() => {
898
+ if (fetchingtype == 'products') {
899
+ if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
900
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
901
+ } else {
902
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
903
+ }
904
+ } else {
905
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
906
+ }
907
+ }}
908
+ style={{
909
+ flexDirection: 'row',
910
+ }}
911
+ >
912
+ <span
913
+ class={
914
+ sectionproperties.sectiontitleposition == 'Centered'
915
+ ? 'd-flex justify-content-center align-items-center'
916
+ : 'd-flex justify-content-center align-items-center d-md-none'
917
+ }
918
+ >
919
+ <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}>
920
+ {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
921
+ </span>
922
+ {sectionproperties.showIcon == 'Show' && (
923
+ <i
924
+ class={
925
+ sectionproperties.sectiontitleposition == 'Centered'
926
+ ? 'd-flex justify-content-center align-items-center h-100 allcentered'
927
+ : 'd-flex justify-content-center align-items-center d-md-none h-100'
928
+ }
929
+ style={{
930
+ marginLeft: 5,
931
+ marginRight: 5,
932
+ }}
933
+ >
934
+ {langdetect == 'en' ? (
935
+ <HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
936
+ ) : (
937
+ <HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
938
+ )}
939
+ </i>
940
+ )}
941
+ </span>
942
+ <span
943
+ class={
944
+ sectionproperties.sectiontitleposition == 'Centered'
945
+ ? 'd-none align-items-center justify-content-center'
946
+ : 'd-none d-md-flex align-items-center justify-content-center'
947
+ }
948
+ >
949
+ <i class="h-100 d-flex align-items-center justify-content-center">
950
+ {langdetect == 'en' ? (
951
+ <HiOutlineArrowRight size={sectionproperties.viewmorebtn_fontSize} color={sectionproperties.viewmorebtn_Textcolor} />
952
+ ) : (
953
+ <HiOutlineArrowLeft size={sectionproperties.viewmorebtn_fontSize} color={sectionproperties.viewmorebtn_Textcolor} />
954
+ )}
955
+ </i>
956
+ </span>
957
+ </button>
958
+ )}
959
+ {sectionproperties.showFilter == 'show' && (
960
+ <button
961
+ class={' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '}
962
+ onClick={() => {
963
+ setopenFilterSlider(true);
964
+ // var element = document.getElementById('filterslider');
965
+ // element.classList.add(filterstyles.filterslider_container_opened);
966
+ }}
967
+ >
968
+ <div class={`${section_cssstyles.filterbtn}`}>
969
+ <i class="h-100 d-flex align-items-center justify-content-center">
970
+ <FiFilter />
971
+ </i>
972
+ </div>
973
+ </button>
974
+ )}
975
+ </div>
976
+ </div>
977
+ {sectionproperties.showseparator == 'Show' && (
978
+ <div class="col-lg-12 p-0">
979
+ <hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
980
+ </div>
981
+ )}
982
+ </div>
983
+ </div>
984
+ {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
985
+ <div className="row m-0 w-100 d-flex align-items-center" style={{ height: '30vh' }}>
986
+ <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
987
+ <FiLayers
988
+ style={{
989
+ fontSize: sectionproperties.noprod_iconfontSize + 'px',
990
+ color: sectionproperties.noprod_iconcolor,
991
+ }}
992
+ />
993
+ <p
994
+ class="m-0 p-0 mt-2"
995
+ style={{
996
+ fontWeight: sectionproperties.noprod_fontWeight,
997
+ color: sectionproperties.noprod_color,
998
+ fontSize: sectionproperties.noprod_fontSize + 'px',
999
+ }}
1000
+ >
1001
+ {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
1002
+ </p>
1003
+ </div>
1004
+ </div>
1005
+ )}
1006
+ {cardsarray.length != 0 && (
1007
+ <div class="col-lg-12 p-0">
1008
+ {StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
1009
+ if (item.tabexsectioninfo != null) {
1010
+ if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
1011
+ var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1012
+ return (
1013
+ <div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 px-1025-1 pl-md-0 pr-md-0 '}>
1014
+ {sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && (
1015
+ <div
1016
+ class={
1017
+ langdetect == 'en'
1018
+ ? sectionproperties.paddingLeft != 0
1019
+ ? 'col-lg-12 p-0 pl-sm-2 pl-md-2'
1020
+ : sectionproperties.paddingRight != 0
1021
+ ? 'col-lg-12 p-0 pr-md-2'
1022
+ : 'col-lg-12 p-0 '
1023
+ : sectionproperties.paddingRight != 0
1024
+ ? 'col-lg-12 p-0 pr-sm-2 pr-md-2'
1025
+ : sectionproperties.paddingLeft != 0
1026
+ ? 'col-lg-12 p-0 pl-md-2'
1027
+ : 'col-lg-12 p-0 '
1028
+ }
1029
+ >
1030
+ <ScrollMenu
1031
+ transitionBehavior={'auto'}
1032
+ wrapperClassName={''}
1033
+ itemClassName={
1034
+ item.tabexsectioninfo.sectioncompname == 'Productcard6'
1035
+ ? 'scrollmenuclassnameitemProductcard6'
1036
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1037
+ ? 'scrollmenuclassnameitemProductcard_with_circularhover'
1038
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1039
+ ? 'scrollmenuclassnameitemProductcard_with_circularbg'
1040
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1041
+ ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
1042
+ : // : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
1043
+ // ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
1044
+ item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
1045
+ ? 'scrollmenuclassnameitemCategorycard_withtext'
1046
+ : // : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
1047
+ // ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
1048
+ item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
1049
+ ? 'scrollmenuclassnameitemProductcard_with_variants'
1050
+ : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
1051
+ ? 'scrollmenuclassnameitemProductcarddefault'
1052
+ : // : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
1053
+ // ? 'scrollmenuclassnameitemSimpleproductcard'
1054
+ item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
1055
+ ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
1056
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
1057
+ ? 'scrollmenuclassnameitemProductcard_with_textonhover'
1058
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
1059
+ ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
1060
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1061
+ ? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
1062
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
1063
+ ? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
1064
+ : item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
1065
+ ? 'scrollmenuclassnameitemProductcard_Horizontalcard'
1066
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1067
+ ? 'scrollmenuclassnameitemCategorycard_fullimage'
1068
+ : // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
1069
+ // ? 'scrollmenuclassnameitemClassiccategorycard'
1070
+ // item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1071
+ // ? 'scrollmenuclassnameitemModernProductCard'
1072
+ // : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1073
+ // ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
1074
+ item.tabexsectioninfo.sectioncompname == 'Productcard7'
1075
+ ? 'scrollmenuclassnameitemProductcard7'
1076
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1077
+ ? 'scrollmenuclassnameitemMenuCard'
1078
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1079
+ ? 'scrollmenuclassnameitemStylishProductCard'
1080
+ : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
1081
+ ? 'scrollmenuclassnameitemProductCardWithTextOnImage'
1082
+ : item.tabexsectioninfo.sectioncompname == 'Card23'
1083
+ ? 'scrollmenuclassnameitemCard23'
1084
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1085
+ ? 'scrollmenuclassnameitemCard20'
1086
+ : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
1087
+ ? 'scrollmenuclassnameitemModernCardWithQuantityButton'
1088
+ : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
1089
+ ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
1090
+ : item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants'
1091
+ ? 'scrollmenuclassnameitemCircleCardWithVariants'
1092
+ : // : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
1093
+ // ? 'scrollmenuclassnameitemUpSlideEffectCard'
1094
+ item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage'
1095
+ ? 'scrollmenuclassnameitemCategoryCardTextOnImage'
1096
+ : ''
1097
+ }
1098
+ scrollContainerClassName={sectionproperties.showscrollbar == 'Show' ? 'scrollmenuclasssubscrollbar2' : 'scrollmenuclasssubscrollbar'}
1099
+ >
1100
+ {cardsarray.map((cardinfoitem, cardinfoindex) => {
1101
+ if (sectionproperties.overallnumberofcards == 0) {
1102
+ return (
1103
+ <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
1104
+ <Sectioncomp
1105
+ sectiontypeprops={'horizontal'}
1106
+ fetchingtypeprops={fetchingtype}
1107
+ cardinfoindexprops={cardinfoindex}
1108
+ cardinfoitemprops={cardinfoitem}
1109
+ sectionindexprops={index}
1110
+ sectionidprops={item.sectionid}
1111
+ actions={actions}
1112
+ fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1113
+ />
1114
+ </div>
1115
+ );
1116
+ } else if (sectionproperties.overallnumberofcards != 0) {
1117
+ if (cardinfoindex < sectionproperties.overallnumberofcards) {
1118
+ return (
1119
+ <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
1120
+ <Sectioncomp
1121
+ sectiontypeprops={'horizontal'}
1122
+ fetchingtypeprops={fetchingtype}
1123
+ cardinfoindexprops={cardinfoindex}
1124
+ cardinfoitemprops={cardinfoitem}
1125
+ sectionindexprops={index}
1126
+ sectionidprops={item.sectionid}
1127
+ actions={actions}
1128
+ fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1129
+ />
1130
+ </div>
1131
+ );
1132
+ }
1133
+ }
1134
+ })}
1135
+ {/* {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
1136
+ <button
1137
+ className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center mt-4 '}
1138
+ ref={ref}
1139
+ onClick={() => fetchProductsQuery.fetchNextPage()}
1140
+ disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1141
+ >
1142
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1143
+ </button>
1144
+ )} */}
1145
+ </ScrollMenu>
1146
+ </div>
1147
+ )}
1148
+
1149
+ {sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && (
1150
+ <div
1151
+ className="row m-0 w-100 d-flex "
1152
+ style={{
1153
+ justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start',
1154
+ }}
1155
+ >
1156
+ {cardsarray.map((cardinfoitem, cardinfoindex) => {
1157
+ // if (sectionproperties.overallnumberofcards != 0) {
1158
+ // if (cardinfoindex < sectionproperties.overallnumberofcards) {
1159
+ return (
1160
+ <div
1161
+ class={
1162
+ sectionproperties.numberOfColsvertical == '1'
1163
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1164
+ ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 '
1165
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1166
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 '
1167
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1168
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1169
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1170
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1171
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1172
+ ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1173
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1174
+ ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1175
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1176
+ ? ' 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'
1177
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1178
+ ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1179
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1180
+ ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1181
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1182
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1183
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1184
+ ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1185
+ : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1186
+ : sectionproperties.numberOfColsvertical == '2'
1187
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1188
+ ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1189
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft '
1190
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1191
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1192
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1193
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1194
+ ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1195
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1196
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1197
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1198
+ ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1199
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1200
+ ? ' 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 '
1201
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1202
+ ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1203
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1204
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0'
1205
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1206
+ ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1207
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1208
+ ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1209
+ : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0'
1210
+ : sectionproperties.numberOfColsvertical == '3'
1211
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1212
+ ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center '
1213
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1214
+ ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1215
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1216
+ ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1217
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1218
+ ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1219
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1220
+ ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1221
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1222
+ ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1223
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1224
+ ? ' 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 '
1225
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1226
+ ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1227
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1228
+ ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1229
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1230
+ ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1231
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1232
+ ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1233
+ : ' col-xl-4 col-lg-4 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1234
+ : sectionproperties.numberOfColsvertical == '4'
1235
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1236
+ ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1237
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1238
+ ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1239
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1240
+ ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1241
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1242
+ ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1243
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1244
+ ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1245
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1246
+ ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1247
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1248
+ ? ' 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 '
1249
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1250
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1251
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1252
+ ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 '
1253
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1254
+ ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1255
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1256
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1257
+ : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 '
1258
+ : sectionproperties.numberOfColsvertical == '12'
1259
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1260
+ ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1261
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1262
+ ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1263
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1264
+ ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1265
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1266
+ ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1267
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1268
+ ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1269
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1270
+ ? ' 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 '
1271
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1272
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1273
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1274
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1275
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1276
+ ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1277
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1278
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1279
+ : ''
1280
+ : sectionproperties.numberOfColsvertical == '6'
1281
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1282
+ ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1283
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1284
+ ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1285
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1286
+ ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1287
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1288
+ ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1289
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1290
+ ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1291
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1292
+ ? ' 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 '
1293
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1294
+ ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1295
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1296
+ ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1297
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1298
+ ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1299
+ : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly'
1300
+ ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1301
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
1302
+ ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1303
+ : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1304
+ : ''
1305
+ }
1306
+ >
1307
+ <Sectioncomp
1308
+ sectiontypeprops={'horizontal'}
1309
+ sectiontypeprops2={'vertical'}
1310
+ fetchingtypeprops={fetchingtype}
1311
+ cardinfoindexprops={cardinfoindex}
1312
+ cardinfoitemprops={cardinfoitem}
1313
+ sectionindexprops={index}
1314
+ sectionidprops={item.sectionid}
1315
+ actions={actions}
1316
+ fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1317
+ numberOfColsvertical={sectionproperties.numberOfColsvertical}
1318
+ />
1319
+ </div>
1320
+ );
1321
+ // }
1322
+ })}
1323
+ {fetchingtype == 'products' && sectionproperties.showpagination == 'Show' && (
1324
+ <div className="w-100 col-lg-12 allcentered mt-2">
1325
+ {/* <button
1326
+ className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
1327
+ // ref={ref}
1328
+ onClick={() => fetchProductsQuery.fetchNextPage()}
1329
+ disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1330
+ >
1331
+ {fetchProductsQuery.isFetchingNextPage ? (
1332
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1333
+ ) : fetchProductsQuery.hasNextPage ? (
1334
+ langdetect == 'en' ? (
1335
+ 'Load more'
1336
+ ) : (
1337
+ 'المزيد'
1338
+ )
1339
+ ) : (
1340
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1341
+ )}
1342
+ </button> */}
1343
+ <PaginatedItems itemsPerPage={5} />
1344
+ </div>
1345
+ )}
1346
+ </div>
1347
+ )}
1348
+ </div>
1349
+ );
1350
+ }
1351
+ }
1352
+ })}
1353
+ </div>
1354
+ )}
1355
+ </div>
1356
+ )}
1357
+ </div>
1358
+ );
1359
+ };
1360
+ return (
1361
+ <div
1362
+ ref={refscr}
1363
+ class={' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto w-md-100 w-sm-100 '}
1364
+ style={{
1365
+ zIndex: 2,
1366
+ background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
1367
+ backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
1368
+ backgroundSize: 'cover',
1369
+ width: sectionproperties.width + 'vw',
1370
+ boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
1371
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
1372
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
1373
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
1374
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
1375
+ marginTop: sectionproperties.marginTop + 'px',
1376
+ marginBottom: sectionproperties.marginBottom + 'px',
1377
+ }}
1378
+ >
1379
+ {sectionproperties.length != 0 && (
1380
+ <div
1381
+ class={' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}
1382
+ style={{
1383
+ paddingLeft: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px') : 0,
1384
+ paddingRight: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px') : 0,
1385
+ }}
1386
+ >
1387
+ {sectionproperties.showFilter == 'show' && (
1388
+ <div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex ' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
1389
+ <Filter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
1390
+ </div>
1391
+ )}
1392
+ {fetchingtype == 'custom' && <>{cardsrender()}</>}
1393
+ {fetchingtype != 'custom' && cardsrender()}
1394
+ </div>
1395
+ )}
1396
+ </div>
1397
+ );
1398
+ };
1399
+ export default CardsSection;