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