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