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