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