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