tabexseriescomponents 0.0.706 → 0.0.708

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (348) hide show
  1. package/package.json +1 -1
  2. package/srcoman/Contexts/LanguageContext.jsx +408 -0
  3. package/srcoman/Contexts/ProductsCardsSectionContext.jsx +36 -0
  4. package/srcoman/Imagekitconfig.jsx +46 -0
  5. package/srcoman/StylesJS/Customstyles.js +345 -0
  6. package/srcoman/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +376 -0
  7. package/srcoman/TabexComponents/Cards/Card20/Card20.jsx +298 -0
  8. package/srcoman/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  9. package/srcoman/TabexComponents/Cards/Card22/Card22.jsx +288 -0
  10. package/srcoman/TabexComponents/Cards/Card23/Card23 copy.jsx +1630 -0
  11. package/srcoman/TabexComponents/Cards/Card23/Card23.jsx +742 -0
  12. package/srcoman/TabexComponents/Cards/CardAll/CardAll.jsx +453 -0
  13. package/srcoman/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +394 -0
  14. package/srcoman/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  15. package/srcoman/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  16. package/srcoman/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +255 -0
  17. package/srcoman/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +235 -0
  18. package/srcoman/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +199 -0
  19. package/srcoman/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +182 -0
  20. package/srcoman/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  21. package/srcoman/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  22. package/srcoman/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  23. package/srcoman/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +560 -0
  24. package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +145 -0
  25. package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +146 -0
  26. package/srcoman/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +142 -0
  27. package/srcoman/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +193 -0
  28. package/srcoman/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +409 -0
  29. package/srcoman/TabexComponents/Cards/MenuCard/MenuCard.jsx +732 -0
  30. package/srcoman/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +468 -0
  31. package/srcoman/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +593 -0
  32. package/srcoman/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +208 -0
  33. package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +497 -0
  34. package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +512 -0
  35. package/srcoman/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  36. package/srcoman/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
  37. package/srcoman/TabexComponents/Cards/Productcard7/Productcard7.jsx +277 -0
  38. package/srcoman/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +352 -0
  39. package/srcoman/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +291 -0
  40. package/srcoman/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  41. package/srcoman/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +327 -0
  42. package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +408 -0
  43. package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +528 -0
  44. package/srcoman/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +558 -0
  45. package/srcoman/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  46. package/srcoman/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  47. package/srcoman/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +137 -0
  48. package/srcoman/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +613 -0
  49. package/srcoman/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +413 -0
  50. package/srcoman/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +225 -0
  51. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +525 -0
  52. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +455 -0
  53. package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +905 -0
  54. package/srcoman/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +337 -0
  55. package/srcoman/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +347 -0
  56. package/srcoman/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +605 -0
  57. package/srcoman/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +185 -0
  58. package/srcoman/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +528 -0
  59. package/srcoman/TabexComponents/Footer/Footer1/Footer1.jsx +780 -0
  60. package/srcoman/TabexComponents/Footer/Footer2/Footer2.jsx +527 -0
  61. package/srcoman/TabexComponents/Footer/Footer3/Footer3.jsx +411 -0
  62. package/srcoman/TabexComponents/Footer/Footer4/Footer4.jsx +466 -0
  63. package/srcoman/TabexComponents/Footer/Footer5/Footer5.jsx +714 -0
  64. package/srcoman/TabexComponents/Footer/Footer6/Footer6.jsx +290 -0
  65. package/srcoman/TabexComponents/Footer/Footer7/Footer7.jsx +428 -0
  66. package/srcoman/TabexComponents/Footer/Footer8/Footer8.jsx +533 -0
  67. package/srcoman/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +330 -0
  68. package/srcoman/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +562 -0
  69. package/srcoman/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +865 -0
  70. package/srcoman/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +647 -0
  71. package/srcoman/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +110 -0
  72. package/srcoman/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +316 -0
  73. package/srcoman/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  74. package/srcoman/TabexComponents/Generalfiles/images/noimage.png +0 -0
  75. package/srcoman/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  76. package/srcoman/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  77. package/srcoman/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  78. package/srcoman/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  79. package/srcoman/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  80. package/srcoman/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  81. package/srcoman/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  82. package/srcoman/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  83. package/srcoman/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  84. package/srcoman/TabexComponents/Generalfiles/images/usflag.png +0 -0
  85. package/srcoman/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  86. package/srcoman/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +1259 -0
  87. package/srcoman/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +1049 -0
  88. package/srcoman/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +1040 -0
  89. package/srcoman/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +1263 -0
  90. package/srcoman/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +76 -0
  91. package/srcoman/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +894 -0
  92. package/srcoman/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +831 -0
  93. package/srcoman/TabexComponents/Headers/Header4/Header4.jsx +622 -0
  94. package/srcoman/TabexComponents/Headers/Header8/Header8 copy.jsx +1026 -0
  95. package/srcoman/TabexComponents/Headers/Header8/Header8.jsx +1976 -0
  96. package/srcoman/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +776 -0
  97. package/srcoman/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +927 -0
  98. package/srcoman/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +704 -0
  99. package/srcoman/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +902 -0
  100. package/srcoman/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +953 -0
  101. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +1562 -0
  102. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +1201 -0
  103. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +990 -0
  104. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +1639 -0
  105. package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +1610 -0
  106. package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +1327 -0
  107. package/srcoman/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +934 -0
  108. package/srcoman/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +78 -0
  109. package/srcoman/TabexComponents/Headers/Modernheader/Modernheader.jsx +972 -0
  110. package/srcoman/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +778 -0
  111. package/srcoman/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +1159 -0
  112. package/srcoman/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +1073 -0
  113. package/srcoman/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +133 -0
  114. package/srcoman/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +854 -0
  115. package/srcoman/TabexComponents/Headers/Subheader/Subheader.jsx +863 -0
  116. package/srcoman/TabexComponents/Headers/Subheader/Subheader13-3.jsx +685 -0
  117. package/srcoman/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +517 -0
  118. package/srcoman/TabexComponents/Headers/Subheader/Subheadernew.jsx +555 -0
  119. package/srcoman/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1042 -0
  120. package/srcoman/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1089 -0
  121. package/srcoman/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +936 -0
  122. package/srcoman/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +533 -0
  123. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +338 -0
  124. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +870 -0
  125. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +302 -0
  126. package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +314 -0
  127. package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +318 -0
  128. package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +179 -0
  129. package/srcoman/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +201 -0
  130. package/srcoman/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +393 -0
  131. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +583 -0
  132. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +291 -0
  133. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +627 -0
  134. package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +348 -0
  135. package/srcoman/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +387 -0
  136. package/srcoman/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +268 -0
  137. package/srcoman/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +288 -0
  138. package/srcoman/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +117 -0
  139. package/srcoman/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +99 -0
  140. package/srcoman/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +146 -0
  141. package/srcoman/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +462 -0
  142. package/srcoman/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +296 -0
  143. package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +396 -0
  144. package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +617 -0
  145. package/srcoman/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +408 -0
  146. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +1399 -0
  147. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +1656 -0
  148. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +1540 -0
  149. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1898 -0
  150. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +1596 -0
  151. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +1872 -0
  152. package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +1880 -0
  153. package/srcoman/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +726 -0
  154. package/srcoman/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +719 -0
  155. package/srcoman/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  156. package/srcoman/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +929 -0
  157. package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +646 -0
  158. package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +962 -0
  159. package/srcoman/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +582 -0
  160. package/srcoman/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  161. package/srcoman/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +342 -0
  162. package/srcoman/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +161 -0
  163. package/srcoman/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +257 -0
  164. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +382 -0
  165. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +437 -0
  166. package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +757 -0
  167. package/srcoman/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +346 -0
  168. package/srcoman/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +1769 -0
  169. package/srcoman/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +141 -0
  170. package/srcoman/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +376 -0
  171. package/srcoman/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +380 -0
  172. package/srcoman/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +867 -0
  173. package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
  174. package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
  175. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +143 -0
  176. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  177. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +520 -0
  178. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +527 -0
  179. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +643 -0
  180. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +477 -0
  181. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +1217 -0
  182. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +614 -0
  183. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +91 -0
  184. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +380 -0
  185. package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +619 -0
  186. package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +284 -0
  187. package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +614 -0
  188. package/srcoman/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +402 -0
  189. package/srcoman/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +199 -0
  190. package/srcoman/TabexComponents/StaticPages/AddReview/AddReview.jsx +304 -0
  191. package/srcoman/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +321 -0
  192. package/srcoman/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +797 -0
  193. package/srcoman/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +460 -0
  194. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +1306 -0
  195. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout.jsx +1892 -0
  196. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +1633 -0
  197. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +1593 -0
  198. package/srcoman/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +1574 -0
  199. package/srcoman/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +245 -0
  200. package/srcoman/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +2888 -0
  201. package/srcoman/TabexComponents/StaticPages/Filter/Filter copy.jsx +1450 -0
  202. package/srcoman/TabexComponents/StaticPages/Filter/Filter.jsx +2771 -0
  203. package/srcoman/TabexComponents/StaticPages/Filter/Filter1-5.jsx +2624 -0
  204. package/srcoman/TabexComponents/StaticPages/Filter/Filter13-11.jsx +2758 -0
  205. package/srcoman/TabexComponents/StaticPages/Filter/Filter14-8.jsx +2753 -0
  206. package/srcoman/TabexComponents/StaticPages/Filter/Filter17-9.jsx +1495 -0
  207. package/srcoman/TabexComponents/StaticPages/Filter/VariantFilter.jsx +1271 -0
  208. package/srcoman/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +62 -0
  209. package/srcoman/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  210. package/srcoman/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  211. package/srcoman/TabexComponents/StaticPages/Login/Login copy.jsx +1060 -0
  212. package/srcoman/TabexComponents/StaticPages/Login/Login.jsx +610 -0
  213. package/srcoman/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +172 -0
  214. package/srcoman/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1584 -0
  215. package/srcoman/TabexComponents/StaticPages/Policies/Policies.jsx +291 -0
  216. package/srcoman/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +194 -0
  217. package/srcoman/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +183 -0
  218. package/srcoman/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +128 -0
  219. package/srcoman/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +255 -0
  220. package/srcoman/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +176 -0
  221. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +225 -0
  222. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +92 -0
  223. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +312 -0
  224. package/srcoman/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +235 -0
  225. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1983 -0
  226. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +1554 -0
  227. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +1827 -0
  228. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +1351 -0
  229. package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +1566 -0
  230. package/srcoman/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1946 -0
  231. package/srcoman/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +1037 -0
  232. package/srcoman/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +966 -0
  233. package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +632 -0
  234. package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +324 -0
  235. package/srcoman/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  236. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +183 -0
  237. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +128 -0
  238. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +140 -0
  239. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +225 -0
  240. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +310 -0
  241. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +235 -0
  242. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +1672 -0
  243. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +1554 -0
  244. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +1351 -0
  245. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +1566 -0
  246. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +1804 -0
  247. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +560 -0
  248. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +919 -0
  249. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +597 -0
  250. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +324 -0
  251. package/srcoman/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +145 -0
  252. package/srcoman/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +194 -0
  253. package/srcoman/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +338 -0
  254. package/srcoman/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +359 -0
  255. package/srcoman/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +113 -0
  256. package/srcoman/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +277 -0
  257. package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +1135 -0
  258. package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +1364 -0
  259. package/srcoman/TabexComponents/StaticPages/Signup/Signup.jsx +199 -0
  260. package/srcoman/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +292 -0
  261. package/srcoman/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +113 -0
  262. package/srcoman/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +162 -0
  263. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +765 -0
  264. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +786 -0
  265. package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +786 -0
  266. package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +786 -0
  267. package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +1425 -0
  268. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +844 -0
  269. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +555 -0
  270. package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +555 -0
  271. package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +555 -0
  272. package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +815 -0
  273. package/srcoman/button.jsx +40 -0
  274. package/srcoman/index.jsx +334 -0
  275. package/srcoman/styles/Home.module.css +129 -0
  276. package/srcoman/styles/cards/Categorcycard_fullimage.module.css +14 -0
  277. package/srcoman/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  278. package/srcoman/styles/cards/Categorycard_withshapes.module.css +189 -0
  279. package/srcoman/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  280. package/srcoman/styles/cards/Productcard6.module.css +9 -0
  281. package/srcoman/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  282. package/srcoman/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  283. package/srcoman/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  284. package/srcoman/styles/cards/card23.module.css +60 -0
  285. package/srcoman/styles/cards/categorycard.module.css +84 -0
  286. package/srcoman/styles/cards/categorycard3.module.css +50 -0
  287. package/srcoman/styles/cards/categorycardwithtext.module.css +40 -0
  288. package/srcoman/styles/cards/generalCardsStyles.module.css +79 -0
  289. package/srcoman/styles/cards/productcard_animatedbuttons.module.css +139 -0
  290. package/srcoman/styles/cards/productcard_with_textonhover.module.css +18 -0
  291. package/srcoman/styles/cards/productcard_withtextonimage.module.css +0 -0
  292. package/srcoman/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  293. package/srcoman/styles/general/bootstrap.css +4763 -0
  294. package/srcoman/styles/general/dropdown.css +206 -0
  295. package/srcoman/styles/general/editorbardropdown.module.css +94 -0
  296. package/srcoman/styles/general/filter.module.css +108 -0
  297. package/srcoman/styles/general/form.module.css +255 -0
  298. package/srcoman/styles/general/general.module.css +872 -0
  299. package/srcoman/styles/general/image-gallery.css +531 -0
  300. package/srcoman/styles/general/react-accessible-accordion.module.css +52 -0
  301. package/srcoman/styles/general/react-phone-input-2.module.css +927 -0
  302. package/srcoman/styles/general/scrollbtn.module.css +22 -0
  303. package/srcoman/styles/general/slick.module.css +166 -0
  304. package/srcoman/styles/general/tabs.module.css +119 -0
  305. package/srcoman/styles/general/workplaceeditor.module.css +328 -0
  306. package/srcoman/styles/globals.css +26 -0
  307. package/srcoman/styles/headers/CTAHeader.module.css +40 -0
  308. package/srcoman/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  309. package/srcoman/styles/headers/Gotoheader.module.css +87 -0
  310. package/srcoman/styles/headers/Header7.module.css +50 -0
  311. package/srcoman/styles/headers/HeaderWithAdSlider.module.css +86 -0
  312. package/srcoman/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  313. package/srcoman/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  314. package/srcoman/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  315. package/srcoman/styles/headers/NewHeader.module.css +101 -0
  316. package/srcoman/styles/headers/SearchFocusedHeader.module.css +62 -0
  317. package/srcoman/styles/headers/Sideheader.module.css +108 -0
  318. package/srcoman/styles/headers/Simpleheader.module.css +102 -0
  319. package/srcoman/styles/headers/classicheader.module.css +16 -0
  320. package/srcoman/styles/headers/classicheaderstyles.module.css +9 -0
  321. package/srcoman/styles/headers/dropdown.css +0 -0
  322. package/srcoman/styles/headers/header4.module.css +175 -0
  323. package/srcoman/styles/headers/header5.module.css +30 -0
  324. package/srcoman/styles/headers/header_contactinfo.module.css +53 -0
  325. package/srcoman/styles/headers/headerresturant.module.css +89 -0
  326. package/srcoman/styles/headers/modernheader.module.css +45 -0
  327. package/srcoman/styles/headers/stylishheader.module.css +24 -0
  328. package/srcoman/styles/headers/subheader.module.css +114 -0
  329. package/srcoman/styles/headers/threetieredheader.module.css +91 -0
  330. package/srcoman/styles/sections/BackgroundImageWithTopContent.css +4 -0
  331. package/srcoman/styles/sections/Backgroundimage1.module.css +17 -0
  332. package/srcoman/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  333. package/srcoman/styles/sections/Freetext.module.css +18 -0
  334. package/srcoman/styles/sections/Section_with_rightbgcont.module.css +49 -0
  335. package/srcoman/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  336. package/srcoman/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  337. package/srcoman/styles/staticpages/accordion.module.css +9 -0
  338. package/srcoman/styles/staticpages/cart.module.css +108 -0
  339. package/srcoman/styles/staticpages/dropdown.css +196 -0
  340. package/srcoman/styles/staticpages/filter.module.css +139 -0
  341. package/srcoman/styles/staticpages/image-gallery.css +481 -0
  342. package/srcoman/styles/staticpages/login.module.css +155 -0
  343. package/srcoman/styles/staticpages/productinfo.module.css +54 -0
  344. package/srcoman/styles/staticpages/shop.module.css +191 -0
  345. package/srcoman/styles/staticpages/signup.module.css +250 -0
  346. package/srcoman/styles/staticpages/staticroutersidenav.module.css +129 -0
  347. package/srcoman/styles/staticpages/viewcart.module.css +129 -0
  348. package/srcoman/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,929 @@
1
+ // All take sectionidprops & sectionindexprops
2
+ import React, { useEffect, useState, useContext, createRef } from 'react';
3
+ import { css } from 'glamor';
4
+ import { useInView } from 'react-intersection-observer';
5
+ import { CircularProgress } from 'react-cssfx-loading';
6
+ import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
7
+ import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
8
+ const ModernCardsSection = (props) => {
9
+ const plainString = (html) => {
10
+ var divContainer = document.createElement('div');
11
+ divContainer.innerHTML = html;
12
+ return divContainer.textContent || divContainer.innerText || '';
13
+ };
14
+ const refscr = createRef();
15
+ const { ref, inView } = useInView();
16
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
17
+ const lang = props.actions.lang;
18
+ const langdetect = props.actions.langdetect;
19
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
20
+ const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
21
+ const routingcountext = props.actions.routingcountext;
22
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
23
+ const ProductFilterObjContext = props.actions.ProductFilterObjContext;
24
+ const setProductFilterObjContext = props.actions.setProductFilterObjContext;
25
+ const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
26
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
27
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
28
+ const fetchProductsQuery = props.actions.fetchProductsQuery;
29
+ const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
30
+ const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
31
+ const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
32
+ const setfetchingtype = props.actions.setfetchingtype;
33
+ const fetchingtype = props.actions.fetchingtype;
34
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
35
+ const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
36
+ const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
37
+ const FetchVendorsQuery = props.actions.FetchVendorsQuery;
38
+ const ikimagecredcontext = props.actions.ikimagecredcontext;
39
+ const sortbycontext = props.actions.sortbycontext;
40
+ const setsortbycontext = props.actions.setsortbycontext;
41
+ const [openFilterSlider, setopenFilterSlider] = useState(false);
42
+ const actions = props.actions;
43
+ const [sectionproperties, setsectionproperties] = useState('');
44
+ const [cardsarray, setcardsarray] = useState([]);
45
+ const [sectionitem, setsectionitem] = useState('');
46
+ const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
47
+ const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
48
+ const [perpageItems, setperpageItems] = useState(12);
49
+ const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
50
+ useEffect(() => {
51
+ var productfilerobjtemp = ProductFilterObjContext;
52
+ if (props.filterparamsprops != undefined) {
53
+ var filterpar = decodeURIComponent(props.filterparamsprops);
54
+ var filterparsed = JSON.parse(filterpar);
55
+
56
+ if (filterparsed != undefined) {
57
+ productfilerobjtemp = filterparsed;
58
+ setProductFilterObjContext(filterparsed);
59
+ }
60
+ }
61
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
62
+ if (sectionitem.sectionid == props.sectionidprops) {
63
+ var secpropobj = {};
64
+ setsectionitem(sectionitem);
65
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
66
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
67
+ });
68
+ setsectionproperties({ ...secpropobj });
69
+
70
+ if (props.srcfromprops == 'GeneralProductsComponent') {
71
+ setfetchingtype('products');
72
+ var lcproductfetchingtype = 'Random';
73
+
74
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
75
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
76
+ }
77
+ setProductsFetchingTypeSectionObj({
78
+ productfetchingtype: lcproductfetchingtype,
79
+ collectionid: props.collectionidprops,
80
+ grouptype: props.grouptypeprops,
81
+ grouptyperefid: props.grouptyperefidprops,
82
+ });
83
+ } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
84
+ setfetchingtype(props.grouptypeprops);
85
+ } else if (props.srcfromprops == 'Innervendor') {
86
+ setfetchingtype('vendors');
87
+ } else {
88
+ setfetchingtype(sectionitem.fetchingtype);
89
+ setProductsFetchingTypeSectionObj({
90
+ productfetchingtype: sectionitem.productsfetchingtype,
91
+ collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
92
+ grouptype: props.grouptypeprops,
93
+ grouptyperefid: props.grouptyperefidprops,
94
+ });
95
+ }
96
+ }
97
+ });
98
+ }, [StatePagePropertiesContext]);
99
+ useEffect(() => {
100
+ if (sectionproperties.length != 0) {
101
+ if (cardsarray.length == 0) {
102
+ if (fetchingtype == 'collections') {
103
+ if (fetchcollectionsQueryContext.isSuccess) {
104
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
105
+ }
106
+ } else if (fetchingtype == 'products') {
107
+ if (fetchProductsQuery.isSuccess) {
108
+ var allpagesarr = [];
109
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
110
+ allpagesarr.push(item);
111
+ });
112
+ cardobjassigner(allpagesarr);
113
+ }
114
+ } else if (fetchingtype == 'vendors') {
115
+ if (FetchVendorsQuery.isSuccess) {
116
+ cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }, [sectionproperties]);
122
+ useEffect(() => {
123
+ if (fetchingtype?.length != 0) {
124
+ var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
125
+ if (fetchingtype == 'collections') {
126
+ if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
127
+ setParentCollectionsForCollectionQueryArr('all');
128
+ } else {
129
+ setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
130
+ }
131
+ }
132
+ if (fetchingtype == 'products') {
133
+ var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
134
+ tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
135
+ if (
136
+ ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
137
+ ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
138
+ ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
139
+ ) {
140
+ } else {
141
+ if (tempfetchproductsfilerobjcontext.collections != undefined) {
142
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
143
+ }
144
+ }
145
+ tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
146
+ tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
147
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
148
+ }
149
+
150
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
151
+ }
152
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
153
+ useEffect(() => {
154
+ if (fetchingtype?.length != 0) {
155
+ if (fetchingtype == 'categories') {
156
+ var categories = [];
157
+ if (fetchCategoriesQueryContext?.isSuccess) {
158
+ categories = fetchCategoriesQueryContext?.data?.data?.categories;
159
+ }
160
+ cardobjassigner(categories);
161
+ }
162
+
163
+ if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
164
+ var categories = [];
165
+ if (fetchCategoriesQueryContext?.isSuccess) {
166
+ categories = fetchCategoriesQueryContext?.data?.data?.categories;
167
+ }
168
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
169
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
170
+ // alert(JSON.stringify(categories));
171
+ var parentcollections = [];
172
+ categories?.forEach(function (catitem, catindex) {
173
+ catitem?.parentcolletions.forEach(function (parentcolitem) {
174
+ if (parentcolitem.isshowntocustomers == 1) {
175
+ parentcolitem.categoryid = catitem.categoryid;
176
+ parentcollections.push(parentcolitem);
177
+ }
178
+ });
179
+ });
180
+ if (fetchingtype == 'parentcollections') {
181
+ if (
182
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
183
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
184
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
185
+ ) {
186
+ var arrafterfilter = [];
187
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
188
+ if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
189
+ arrafterfilter.push(parentcolitem);
190
+ }
191
+ });
192
+ parentcollections = arrafterfilter;
193
+ }
194
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
195
+ var arrafterfilter = [];
196
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
197
+ if (parentcolitem.categoryid == props.collectionidprops) {
198
+ arrafterfilter.push(parentcolitem);
199
+ }
200
+ });
201
+ parentcollections = arrafterfilter;
202
+ }
203
+ }
204
+
205
+ if (fetchingtype == 'innercategories') {
206
+ var arrafterfilter = [];
207
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
208
+ if (parentcolitem.categoryid == props.collectionidprops) {
209
+ arrafterfilter.push(parentcolitem);
210
+ }
211
+ });
212
+ parentcollections = arrafterfilter;
213
+ }
214
+
215
+ cardobjassigner(parentcollections);
216
+ // }
217
+ } else if (fetchingtype == 'innerparentcollections') {
218
+ var categories = [];
219
+ if (fetchCategoriesQueryContext?.isSuccess) {
220
+ categories = fetchCategoriesQueryContext?.data?.data?.categories;
221
+ }
222
+ // if (fetchAuthorizationQueryContext?.isSuccess) {
223
+ // var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
224
+ var collections = [];
225
+ categories?.forEach(function (catitem, catindex) {
226
+ catitem?.parentcolletions.forEach(function (parentcolitem) {
227
+ parentcolitem.categoryid = catitem.categoryid;
228
+ parentcolitem?.collections?.forEach(function (collitem, colindex) {
229
+ if (collitem.isshowntocustomers == 1) {
230
+ collitem.parentcollectionid = parentcolitem.parentcollectionid;
231
+ collections.push(collitem);
232
+ }
233
+ });
234
+ });
235
+ });
236
+ if (fetchingtype == 'innerparentcollections') {
237
+ var collectionsafterfilter = [];
238
+ collections.forEach(function (colitem, colindex) {
239
+ if (colitem.parentcollectionid == props.collectionidprops) {
240
+ var iscollexists = false;
241
+ collectionsafterfilter.forEach(function (existcolitem) {
242
+ if (colitem.collectionid == existcolitem.collectionid) {
243
+ iscollexists = true;
244
+ }
245
+ });
246
+ if (iscollexists == false) {
247
+ collectionsafterfilter.push(colitem);
248
+ }
249
+ }
250
+ });
251
+ collections = collectionsafterfilter;
252
+ }
253
+ cardobjassigner(collections);
254
+ // }
255
+ }
256
+ }
257
+ }, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
258
+ useEffect(() => {
259
+ if (fetchingtype == 'products') {
260
+ if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
261
+ var allpagesarr = [];
262
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
263
+ allpagesarr.push(item);
264
+ });
265
+ if (
266
+ fetchProductsQuery?.data?.data?.PerPageProducts != undefined &&
267
+ fetchProductsQuery?.data?.data?.PerPageProducts != null &&
268
+ fetchProductsQuery?.data?.data?.PerPageProducts?.length != 0
269
+ ) {
270
+ setperpageItems(fetchProductsQuery?.data?.data?.PerPageProducts);
271
+ }
272
+ cardobjassigner(allpagesarr);
273
+ }
274
+ }
275
+ }, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
276
+ useEffect(() => {
277
+ if (fetchingtype == 'collections') {
278
+ if (fetchcollectionsQueryContext.isSuccess) {
279
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
280
+ }
281
+ }
282
+ }, [fetchcollectionsQueryContext?.isSuccess, fetchcollectionsQueryContext.data]);
283
+ useEffect(() => {
284
+ if (fetchingtype == 'vendors') {
285
+ if (FetchVendorsQuery.isSuccess) {
286
+ if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
287
+ cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
288
+ }
289
+ }
290
+ }
291
+ }, [FetchVendorsQuery.isSuccess]);
292
+ useEffect(() => {
293
+ favassigner();
294
+ }, [favoriteprojectscountContext]);
295
+ useEffect(() => {
296
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
297
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
298
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
299
+ setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
300
+ }
301
+ }
302
+ }, [sectionproperties]);
303
+ const favassigner = () => {
304
+ if (fetchingtype == 'products') {
305
+ if (cardsarray.length != 0) {
306
+ if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
307
+ var tempcardsarray = [...cardsarray];
308
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
309
+ arrayItem.IsFavExists = false;
310
+ });
311
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
312
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
313
+ if (arrayItem.productid == favitem) {
314
+ arrayItem.IsFavExists = true;
315
+ }
316
+ });
317
+ });
318
+ setcardsarray([...tempcardsarray]);
319
+ }
320
+ }
321
+ }
322
+ };
323
+ const cardobjassigner = (fetchedarray) => {
324
+ var temparray = [];
325
+
326
+ fetchedarray.forEach(function (arrayItem, arrayindex) {
327
+ var cardobj = {
328
+ name: '',
329
+ image: '',
330
+ };
331
+ if (fetchingtype == 'products') {
332
+ var itemquantity = 0;
333
+ if (langdetect == 'en') {
334
+ cardobj.name = arrayItem.productinfo.name_en;
335
+ } else {
336
+ cardobj.name = arrayItem.productinfo.name_ar;
337
+ }
338
+ if (langdetect == 'en') {
339
+ cardobj.description = arrayItem.short_description_en;
340
+ } else {
341
+ cardobj.description = arrayItem.productinfo.description_ar;
342
+ }
343
+ if (langdetect == 'en') {
344
+ cardobj.shortdescription = arrayItem.short_description_ar;
345
+ } else {
346
+ cardobj.shortdescription = arrayItem.productinfo.description_ar;
347
+ }
348
+ if (langdetect == 'en') {
349
+ cardobj.shortdescription = arrayItem.short_description_en;
350
+ } else {
351
+ cardobj.shortdescription = arrayItem.short_description_ar;
352
+ }
353
+ if (arrayItem.productinfo.hasvariants == 0) {
354
+ fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
355
+ if (cartitem.productid == arrayItem.productinfo.productid) {
356
+ itemquantity = cartitem.quantity;
357
+ }
358
+ });
359
+ }
360
+ cardobj.image = arrayItem.productinfo.productmainimage;
361
+ cardobj.producttags = arrayItem.tags;
362
+ if (langdetect == 'en') {
363
+ cardobj.productfeature = arrayItem?.features?.value_en;
364
+ } else {
365
+ cardobj.productfeature = arrayItem?.features?.value_ar;
366
+ }
367
+
368
+ cardobj.feature_image_url = arrayItem?.features?.featureinfo?.feature_image_url;
369
+ cardobj.productendpointurl = arrayItem.productinfo.productendpointurl;
370
+ cardobj.hassale = arrayItem.productinfo.hassale;
371
+ cardobj.productid = arrayItem.productinfo.productid;
372
+ cardobj.hasvariants = arrayItem.productinfo.hasvariants;
373
+ cardobj.description_en = arrayItem.productinfo.description_en;
374
+ cardobj.description_ar = arrayItem.productinfo.description_ar;
375
+ cardobj.defaultprice = arrayItem.productinfo.defaultprice;
376
+ cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
377
+ cardobj.productimages = arrayItem.productinfo.productimages;
378
+ cardobj.quantity = itemquantity;
379
+ // cardobj.currentquantity = currentquantity;
380
+ cardobj.timestamp = arrayItem.productinfo.timestamp;
381
+ cardobj.productquantity = arrayItem.productinfo.productquantity;
382
+ cardobj.currentquantity = arrayItem.productinfo.currentquantity;
383
+ cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
384
+ cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
385
+ cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
386
+ cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
387
+ cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
388
+ cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
389
+ cardobj.productcanrate = arrayItem.productinfo.productcanrate;
390
+ cardobj.sku = arrayItem.productinfo.sku;
391
+
392
+ if (langdetect == 'en') {
393
+ cardobj.currencyname = fetchAuthorizationQueryContext?.data?.data?.currencyname_en;
394
+ } else {
395
+ cardobj.currencyname = fetchAuthorizationQueryContext?.data?.data?.currencyname_ar;
396
+ }
397
+ if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
398
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
399
+ if (arrayItem.productinfo.productid == favitem) {
400
+ cardobj.IsFavExists = true;
401
+ }
402
+ });
403
+ }
404
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
405
+ cardobj.collectionid = arrayItem.collectionid;
406
+ cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
407
+ if (langdetect == 'en') {
408
+ cardobj.name = arrayItem.title_en;
409
+ cardobj.description = arrayItem.description_en;
410
+ } else if (langdetect == 'ar') {
411
+ cardobj.name = arrayItem.title_ar;
412
+ cardobj.description = arrayItem.description_ar;
413
+ }
414
+ cardobj.image = arrayItem.collectionlogo;
415
+ cardobj.producttags = [];
416
+ cardobj.productfeatures = [];
417
+ } else if (fetchingtype == 'categories') {
418
+ cardobj.collectionid = arrayItem.categoryid;
419
+ cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
420
+ if (langdetect == 'en') {
421
+ cardobj.name = arrayItem.title_en;
422
+ cardobj.description = arrayItem.description_en;
423
+ } else if (langdetect == 'ar') {
424
+ cardobj.name = arrayItem.title_ar;
425
+ cardobj.description = arrayItem.description_ar;
426
+ }
427
+ cardobj.image = arrayItem.categorylogo;
428
+ cardobj.producttags = [];
429
+ cardobj.productfeatures = [];
430
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
431
+ cardobj.collectionid = arrayItem.parentcollectionid;
432
+ cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
433
+ if (langdetect == 'en') {
434
+ cardobj.name = arrayItem.title_en;
435
+ cardobj.description = arrayItem.description_en;
436
+ } else if (langdetect == 'ar') {
437
+ cardobj.name = arrayItem.title_ar;
438
+ cardobj.description = arrayItem.description_ar;
439
+ }
440
+ cardobj.image = arrayItem.parentcollectionlogo;
441
+ cardobj.producttags = [];
442
+ cardobj.productfeatures = [];
443
+ } else if (fetchingtype == 'custom') {
444
+ cardobj.producttags = [];
445
+ cardobj.productfeatures = [];
446
+ } else if (fetchingtype == 'vendors') {
447
+ cardobj.name = arrayItem.vendorname;
448
+ cardobj.collectionid = arrayItem.vendorid;
449
+ cardobj.image = arrayItem.vendorlogourl;
450
+ cardobj.producttags = [];
451
+ cardobj.productfeatures = [];
452
+ }
453
+ temparray.push(cardobj);
454
+ });
455
+
456
+ setcardsarray([...temparray]);
457
+ };
458
+ // Example items, to simulate fetching from another resources.
459
+ const handlePageClick = (event) => {
460
+ props.scrolltotop();
461
+ var tempProductFilterObjContext = { ...ProductFilterObjContext };
462
+ tempProductFilterObjContext.page = event?.selected;
463
+ setProductFilterObjContext({ ...tempProductFilterObjContext });
464
+ var pasturl = '';
465
+ if (props.grouptypeprops != undefined) {
466
+ if (props.collectionidprops != undefined) {
467
+ pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
468
+ }
469
+ }
470
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
471
+ };
472
+ function PaginatedItems({ itemsPerPage }) {
473
+ // const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
474
+ const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / perpageItems);
475
+ if (fetchProductsQuery?.data?.data?.page != undefined && fetchProductsQuery?.data?.data?.page != null) {
476
+ var currentpage = parseInt(fetchProductsQuery?.data?.data?.page);
477
+ return (
478
+ <div class="d-flex containerClassName">
479
+ <ReactPaginate
480
+ breakLabel="..."
481
+ forcePage={currentpage}
482
+ nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
483
+ onPageChange={handlePageClick}
484
+ active
485
+ pageRangeDisplayed={5}
486
+ pageCount={pageCount}
487
+ previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
488
+ renderOnZeroPageCount={null}
489
+ pageLinkClassName={section_cssstyles.pageLinkClassName}
490
+ nextLinkClassName={section_cssstyles.nextLinkClassName}
491
+ previousLinkClassName={section_cssstyles.previousLinkClassName}
492
+ activeClassName={section_cssstyles.activeClassName}
493
+ activeLinkClassName={section_cssstyles.activeLinkClassName}
494
+ previousClassName={section_cssstyles.previousClassName}
495
+ nextClassName={section_cssstyles.nextClassName}
496
+ disabledClassName={section_cssstyles.disabledClassName}
497
+ disabledLinkClassName={section_cssstyles.disabledLinkClassName}
498
+ />
499
+ </div>
500
+ );
501
+ }
502
+ }
503
+
504
+ const SectionTitle = () => {
505
+ return (
506
+ <div
507
+ class="d-flex align-items-center flex-row"
508
+ style={{
509
+ position: 'relative',
510
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
511
+ width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
512
+ }}
513
+ >
514
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
515
+ <p
516
+ class={
517
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
518
+ ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
519
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
520
+ ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
521
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
522
+ ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
523
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
524
+ ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
525
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
526
+ ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
527
+ : sectionproperties.sectiontitlefontfamily == 'ASUL'
528
+ ? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
529
+ : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
530
+ }
531
+ style={{
532
+ color: sectionproperties.sectionTitleColor,
533
+ fontWeight: sectionproperties.sectionTitleFontWeight,
534
+ paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
535
+ paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
536
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
537
+ }}
538
+ >
539
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
540
+ </p>
541
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
542
+ </div>
543
+ );
544
+ };
545
+ const isCardsectionloading = () => {
546
+ var isloading = false;
547
+
548
+ if (fetchingtype == 'products') {
549
+ if (fetchProductsQuery?.isFetching) {
550
+ isloading = true;
551
+ }
552
+ } else if (fetchingtype == 'vendors') {
553
+ if (FetchVendorsQuery?.isFetching) {
554
+ isloading = true;
555
+ }
556
+ } else {
557
+ if (fetchCategoriesQueryContext?.isFetching == true || fetchCategoriesQueryContext?.isFetching == true) {
558
+ isloading = true;
559
+ }
560
+ }
561
+
562
+ return isloading;
563
+ };
564
+ const show_product_group_titles = () => {
565
+ var title_en = '';
566
+ var title_ar = '';
567
+ var description_en = '';
568
+ var description_ar = '';
569
+ var logo = '';
570
+ var type = '';
571
+ var id = '';
572
+ if (ProductFilterObjContext['collections'] != undefined && Array.isArray(ProductFilterObjContext['collections']) && ProductFilterObjContext['collections'][0] != undefined) {
573
+ id = ProductFilterObjContext['collections'][0];
574
+ }
575
+ if (id != null && id != '' && id != 'all') {
576
+ fetchCategoriesQueryContext?.data?.data?.categories?.map(function (catitem) {
577
+ if (catitem.categoryid == id) {
578
+ title_en = catitem.title_en;
579
+ title_ar = catitem.title_ar;
580
+ description_en = catitem.description_en;
581
+ description_ar = catitem.description_ar;
582
+ logo = catitem.categorylogo;
583
+ type = 'category';
584
+ }
585
+ if (title_en == '') {
586
+ catitem?.parentcolletions?.map(function (parentitem) {
587
+ if (parentitem.parentcollectionid == id) {
588
+ title_en = parentitem.title_en;
589
+ title_ar = parentitem.title_ar;
590
+ description_en = parentitem.description_en;
591
+ description_ar = parentitem.description_ar;
592
+ logo = parentitem.parentcollectionlogo;
593
+ type = 'parentcollection';
594
+ }
595
+ if (title_en == '') {
596
+ parentitem?.collections?.map(function (colitem) {
597
+ if (colitem.collectionid == id) {
598
+ title_en = colitem.title_en;
599
+ title_ar = colitem.title_ar;
600
+ description_en = colitem.description_en;
601
+ description_ar = colitem.description_ar;
602
+ logo = colitem.collectionlogo;
603
+ type = 'collection';
604
+ }
605
+ });
606
+ }
607
+ });
608
+ }
609
+ });
610
+ }
611
+ return { title_en: title_en, title_ar: title_ar, description_en: description_en, description_ar: description_ar, type: type, id: id, logo: logo };
612
+ };
613
+ const section_cssstyles = {
614
+ viewmorebtn: css({
615
+ width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
616
+ height: sectionproperties.viewmorebtn_Height == 0 ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
617
+ background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
618
+ borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
619
+ color: sectionproperties.viewmorebtn_Textcolor,
620
+ fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
621
+ fontWeight: sectionproperties.viewmorebtn_fontWeight,
622
+ textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? (sectionproperties.viewmorebtnborderwidth == 0 ? 'underline' : 'none') : 'none',
623
+ transition: '.3s',
624
+ border: sectionproperties.viewmorebtnborderwidth + 'px solid ' + sectionproperties.viewmorebtnbordercolor,
625
+ ':hover': {
626
+ background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
627
+ color: sectionproperties.viewmorebtn_Textcoloronhover,
628
+ borderColor: sectionproperties.viewmorebtn_Textcoloronhover,
629
+ },
630
+ }),
631
+ loadbtn: css({
632
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
633
+ color: sectionproperties.generaltext_fontColor,
634
+ fontWeight: sectionproperties.generaltext_fontWeight,
635
+ textDecoration: 'underline',
636
+ transition: '.3s',
637
+ ':hover': {
638
+ color: sectionproperties.text_secondarycolor,
639
+ },
640
+ }),
641
+ line_left: css({
642
+ height: '1px',
643
+ position: 'relative',
644
+ flex: '1 1 auto',
645
+ minWidth: '10%',
646
+ background: sectionproperties.linebgcolor,
647
+ }),
648
+ line_right: css({
649
+ height: '1px',
650
+ position: 'relative',
651
+ flex: '1 1 auto',
652
+ minWidth: '10%',
653
+ background: sectionproperties.linebgcolor,
654
+ }),
655
+ sectiontitlecont: css({
656
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
657
+ '@media (max-width: 1024px)': {
658
+ paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
659
+ paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
660
+ },
661
+ }),
662
+ };
663
+
664
+ const cardsrender = () => {
665
+ return (
666
+ <div
667
+ class="row m-0 w-100"
668
+ style={{
669
+ height: '100%',
670
+ }}
671
+ >
672
+ <div class="col-lg-12 p-0">
673
+ {sectionproperties.length != 0 && (
674
+ <div class="row m-0 w-100 " style={{ position: 'relative' }}>
675
+ <div class="col-lg-3 allcentered p-0">
676
+ <div class={section_cssstyles.sectiontitlecont + ' row mx-0 allcentered w-100 mt-sm-0 '}>
677
+ <div
678
+ class={' col-lg-12 p-0 d-flex d-md-none align-items-center '}
679
+ style={{
680
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
681
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
682
+ }}
683
+ >
684
+ {SectionTitle()}
685
+ </div>
686
+
687
+ <div
688
+ class={' col-lg-12 p-0 d-none d-md-flex align-items-center '}
689
+ style={{
690
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
691
+ fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
692
+ }}
693
+ >
694
+ {SectionTitle()}
695
+ </div>
696
+ {sectionproperties.prodCatShow == 'Show' && (
697
+ <div
698
+ class={
699
+ sectionproperties.sectiontitleposition == 'Centered'
700
+ ? 'col-lg-12 d-flex align-items-center justify-content-center '
701
+ : 'col-lg-12 d-flex align-items-center justify-content-start p-0'
702
+ }
703
+ style={{ marginBottom: sectionproperties.descriptionMarginBottom + 'px' }}
704
+ >
705
+ <p
706
+ class={
707
+ sectionproperties.descFontFamily == 'Pacifico'
708
+ ? ' PacificoFont m-0 p-0 wordbreak '
709
+ : sectionproperties.descFontFamily == 'Playfair'
710
+ ? ' PlayfairFont m-0 p-0 wordbreak '
711
+ : sectionproperties.descFontFamily == 'Great Vibes'
712
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
713
+ : sectionproperties.descFontFamily == 'Quicksand'
714
+ ? ' QuicksandFont m-0 p-0 wordbreak '
715
+ : ' m-0 p-0 wordbreak'
716
+ }
717
+ style={{
718
+ fontSize: sectionproperties.prodCatFontSize + 'px',
719
+ color: sectionproperties.prodCatColor,
720
+ fontWeight: sectionproperties.prodCatFontWeight,
721
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
722
+ }}
723
+ >
724
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
725
+ </p>
726
+ </div>
727
+ )}
728
+ {sectionproperties.viewmorebtnshow == 'Show' && (
729
+ <div
730
+ class={
731
+ sectionproperties.sectiontitleposition == 'Centered'
732
+ ? 'col-lg-12 mb-md-3 mt-md-3 d-flex align-items-center justify-content-center'
733
+ : 'col-lg-12 mb-md-3 mt-md-3 d-flex align-items-center justify-content-start justify-content-md-center'
734
+ }
735
+ >
736
+ <button
737
+ class={`${section_cssstyles.viewmorebtn}` + ' allcentered '}
738
+ onClick={() => {
739
+ if (fetchingtype == 'products') {
740
+ if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
741
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
742
+ } else {
743
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
744
+ }
745
+ } else {
746
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
747
+ }
748
+ }}
749
+ >
750
+ <span
751
+ class={
752
+ sectionproperties.sectiontitleposition == 'Centered'
753
+ ? 'd-flex justify-content-center align-items-center'
754
+ : 'd-flex justify-content-center align-items-center '
755
+ }
756
+ >
757
+ {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
758
+ </span>
759
+ </button>
760
+ </div>
761
+ )}
762
+ </div>
763
+ </div>
764
+
765
+ <div class={langdetect == 'en' ? 'col-lg-9 col-md-12 d-flex justify-content-center ml-auto p-0' : 'col-lg-9 col-md-12 d-flex justify-content-center mr-auto p-0'}>
766
+ <div class="row m-0 w-100">
767
+ {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
768
+ <div class="row m-0 w-100 d-flex align-items-center" style={{ height: '50vh' }}>
769
+ <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
770
+ <FiLayers
771
+ style={{
772
+ fontSize: sectionproperties.noprod_iconfontSize + 'px',
773
+ color: sectionproperties.noprod_iconcolor,
774
+ }}
775
+ />
776
+ <p
777
+ class="m-0 p-0 mt-2"
778
+ style={{
779
+ fontWeight: sectionproperties.noprod_fontWeight,
780
+ color: sectionproperties.noprod_color,
781
+ fontSize: sectionproperties.noprod_fontSize + 'px',
782
+ }}
783
+ >
784
+ {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
785
+ </p>
786
+ </div>
787
+ </div>
788
+ )}
789
+ {cardsarray.length != 0 &&
790
+ StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
791
+ if (item.tabexsectioninfo != null) {
792
+ if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
793
+ var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
794
+ return (
795
+ <div class="row m-0 w-100 d-flex justify-content-center">
796
+ <div class={langdetect == 'en' ? 'col-lg-12 p-0 pl-md-2 pr-md-0' : 'col-lg-12 p-0 pl-md-0 pr-md-2 '}>
797
+ <ScrollMenu
798
+ transitionBehavior={'auto'}
799
+ wrapperClassName={''}
800
+ itemClassName={
801
+ item.tabexsectioninfo.sectioncompname == 'Productcard6'
802
+ ? 'scrollmenuclassnameitemProductcard6'
803
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
804
+ ? 'scrollmenuclassnameitemProductcardcircularhover'
805
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
806
+ ? 'scrollmenuclassnameitemProductcard_with_circularbg'
807
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
808
+ ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
809
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
810
+ ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
811
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
812
+ ? 'scrollmenuclassnameitemCategorycard_withtext'
813
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
814
+ ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
815
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
816
+ ? 'scrollmenuclassnameitemProductcard_with_variants'
817
+ : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
818
+ ? 'scrollmenuclassnameitemProductcarddefault'
819
+ : // : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
820
+ // ? section_cssstyles.scrollmenuclassnameitemSimpleproductcard + ' scrollmenuclassnameitemSimpleproductcard '
821
+ item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
822
+ ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
823
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
824
+ ? 'scrollmenuclassnameitemProductcard_with_textonhover'
825
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
826
+ ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
827
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
828
+ ? 'scrollmenuclassnameitemCategorycard_Categorycard_fullimage'
829
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
830
+ ? 'scrollmenuclassnameitemCard20'
831
+ : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
832
+ ? 'scrollmenuclassnameitemUpSlideEffectCard'
833
+ : ''
834
+ }
835
+ scrollContainerClassName={'scrollmenuclasssubscrollbar'}
836
+ >
837
+ {cardsarray.map((cardinfoitem, cardinfoindex) => {
838
+ return (
839
+ <div
840
+ class={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 '}
841
+ style={{
842
+ paddingRight: sectionproperties.card_marginRight + 'px',
843
+ paddingLeft: sectionproperties.card_marginLeft + 'px',
844
+ }}
845
+ >
846
+ <Sectioncomp
847
+ sectiontypeprops={'horizontal'}
848
+ fetchingtypeprops={fetchingtype}
849
+ cardinfoindexprops={cardinfoindex}
850
+ cardinfoitemprops={cardinfoitem}
851
+ sectionindexprops={index}
852
+ sectionidprops={item.sectionid}
853
+ actions={actions}
854
+ sectiontypeprops2={'horizontal'}
855
+ />
856
+ </div>
857
+ );
858
+ })}
859
+ {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
860
+ <button
861
+ className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
862
+ ref={ref}
863
+ onClick={() => fetchProductsQuery.fetchNextPage()}
864
+ disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
865
+ >
866
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
867
+ </button>
868
+ )}
869
+ </ScrollMenu>
870
+ </div>
871
+ </div>
872
+ );
873
+ }
874
+ }
875
+ })}
876
+ </div>
877
+ </div>
878
+ </div>
879
+ )}
880
+ </div>
881
+ </div>
882
+ );
883
+ };
884
+ return (
885
+ <div
886
+ class={' row ml-0 mr-0 d-flex w-100 justify-content-center '}
887
+ style={{
888
+ zIndex: 2,
889
+ }}
890
+ >
891
+ {sectionproperties.length != 0 && (
892
+ <div
893
+ class={
894
+ sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0
895
+ ? ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 pl-0 pr-0 '
896
+ : sectionproperties.paddingRight != 0 && langdetect == 'en'
897
+ ? ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 pr-md-2 pr-sm-2 '
898
+ : sectionproperties.paddingRight != 0 && langdetect == 'ar'
899
+ ? ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 pl-md-2 pl-sm-2 '
900
+ : sectionproperties.paddingLeft != 0 && langdetect == 'en'
901
+ ? ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 pl-md-2 pl-sm-2 '
902
+ : sectionproperties.paddingLeft != 0 && langdetect == 'ar'
903
+ ? ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 pr-md-2 pr-sm-2 '
904
+ : ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 justify-content-center '
905
+ }
906
+ style={{
907
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
908
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
909
+ paddingTop: sectionproperties.paddingTop + 'px',
910
+ paddingBottom: sectionproperties.paddingBottom + 'px',
911
+ marginTop: sectionproperties.marginTop + 'px',
912
+ marginBottom: sectionproperties.marginBottom + 'px',
913
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
914
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
915
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
916
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
917
+ boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
918
+ borderColor: sectionproperties.sectioncardbordercolor,
919
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
920
+ background: sectionproperties.backgroundColor,
921
+ }}
922
+ >
923
+ {cardsrender()}
924
+ </div>
925
+ )}
926
+ </div>
927
+ );
928
+ };
929
+ export default ModernCardsSection;