tabexseriescomponents 0.0.705 → 0.0.707

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