tabexseriescomponents 0.0.653 → 0.0.656

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