tabexseriescomponents 0.0.217 → 0.0.220

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 (255) hide show
  1. package/dist/index.cjs.js +1044 -780
  2. package/dist/index.esm.js +1044 -780
  3. package/dist/index.umd.js +1042 -778
  4. package/library.zip +0 -0
  5. package/package.json +2 -1
  6. package/srcold/Contexts/LanguageContext.jsx +390 -0
  7. package/srcold/Contexts/ProductsCardsSectionContext.jsx +34 -0
  8. package/srcold/StylesJS/Customstyles.js +236 -0
  9. package/srcold/TabexComponents/Cards/Card20/Card20.jsx +282 -0
  10. package/srcold/TabexComponents/Cards/Card21/Card21.jsx +388 -0
  11. package/srcold/TabexComponents/Cards/Card22/Card22.jsx +287 -0
  12. package/srcold/TabexComponents/Cards/Card23/Card23.jsx +403 -0
  13. package/srcold/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +395 -0
  14. package/srcold/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
  15. package/srcold/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
  16. package/srcold/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +220 -0
  17. package/srcold/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +230 -0
  18. package/srcold/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  19. package/srcold/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +170 -0
  20. package/srcold/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
  21. package/srcold/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
  22. package/srcold/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +180 -0
  23. package/srcold/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +487 -0
  24. package/srcold/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +123 -0
  25. package/srcold/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +192 -0
  26. package/srcold/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +270 -0
  27. package/srcold/TabexComponents/Cards/MenuCard/MenuCard.jsx +543 -0
  28. package/srcold/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +467 -0
  29. package/srcold/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +469 -0
  30. package/srcold/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +445 -0
  31. package/srcold/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
  32. package/srcold/TabexComponents/Cards/Productcard6/Productcard6.jsx +256 -0
  33. package/srcold/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  34. package/srcold/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +443 -0
  35. package/srcold/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +275 -0
  36. package/srcold/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  37. package/srcold/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +301 -0
  38. package/srcold/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +419 -0
  39. package/srcold/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +524 -0
  40. package/srcold/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
  41. package/srcold/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  42. package/srcold/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +136 -0
  43. package/srcold/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +179 -0
  44. package/srcold/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +291 -0
  45. package/srcold/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +339 -0
  46. package/srcold/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +338 -0
  47. package/srcold/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +515 -0
  48. package/srcold/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +184 -0
  49. package/srcold/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +475 -0
  50. package/srcold/TabexComponents/Footer/Footer1/Footer1.jsx +448 -0
  51. package/srcold/TabexComponents/Footer/Footer2/Footer2.jsx +383 -0
  52. package/srcold/TabexComponents/Footer/Footer3/Footer3.jsx +394 -0
  53. package/srcold/TabexComponents/Footer/Footer4/Footer4.jsx +699 -0
  54. package/srcold/TabexComponents/Footer/Footer5/Footer5.jsx +523 -0
  55. package/srcold/TabexComponents/Footer/Footer6/Footer6.jsx +301 -0
  56. package/srcold/TabexComponents/Footer/Footer7/Footer7.jsx +415 -0
  57. package/srcold/TabexComponents/Footer/Footer8/Footer8.jsx +454 -0
  58. package/srcold/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +329 -0
  59. package/srcold/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +274 -0
  60. package/srcold/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  61. package/srcold/TabexComponents/Generalfiles/images/noimage.png +0 -0
  62. package/srcold/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  63. package/srcold/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  64. package/srcold/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  65. package/srcold/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  66. package/srcold/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  67. package/srcold/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  68. package/srcold/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  69. package/srcold/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  70. package/srcold/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  71. package/srcold/TabexComponents/Generalfiles/images/usflag.png +0 -0
  72. package/srcold/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  73. package/srcold/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +880 -0
  74. package/srcold/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +870 -0
  75. package/srcold/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +688 -0
  76. package/srcold/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +720 -0
  77. package/srcold/TabexComponents/Headers/Header4/Header4.jsx +621 -0
  78. package/srcold/TabexComponents/Headers/Header8/Header8.jsx +824 -0
  79. package/srcold/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +730 -0
  80. package/srcold/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +762 -0
  81. package/srcold/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +706 -0
  82. package/srcold/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +900 -0
  83. package/srcold/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +841 -0
  84. package/srcold/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +988 -0
  85. package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveNew.jsx +1081 -0
  86. package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +988 -0
  87. package/srcold/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +917 -0
  88. package/srcold/TabexComponents/Headers/Modernheader/Modernheader.jsx +693 -0
  89. package/srcold/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +952 -0
  90. package/srcold/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +636 -0
  91. package/srcold/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +853 -0
  92. package/srcold/TabexComponents/Headers/Subheader/Subheader copy.jsx +373 -0
  93. package/srcold/TabexComponents/Headers/Subheader/Subheader.jsx +515 -0
  94. package/srcold/TabexComponents/Headers/Subheader/SubheaderDropdown.jsx +190 -0
  95. package/srcold/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +483 -0
  96. package/srcold/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1005 -0
  97. package/srcold/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1020 -0
  98. package/srcold/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader .jsx +843 -0
  99. package/srcold/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +448 -0
  100. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +346 -0
  101. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +304 -0
  102. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +301 -0
  103. package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  104. package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +271 -0
  105. package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +174 -0
  106. package/srcold/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +200 -0
  107. package/srcold/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +263 -0
  108. package/srcold/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +143 -0
  109. package/srcold/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +248 -0
  110. package/srcold/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  111. package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +394 -0
  112. package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +406 -0
  113. package/srcold/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +246 -0
  114. package/srcold/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1220 -0
  115. package/srcold/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +480 -0
  116. package/srcold/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +718 -0
  117. package/srcold/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
  118. package/srcold/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +652 -0
  119. package/srcold/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +635 -0
  120. package/srcold/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +495 -0
  121. package/srcold/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
  122. package/srcold/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +250 -0
  123. package/srcold/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +160 -0
  124. package/srcold/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +256 -0
  125. package/srcold/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +329 -0
  126. package/srcold/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +266 -0
  127. package/srcold/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +371 -0
  128. package/srcold/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +140 -0
  129. package/srcold/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +374 -0
  130. package/srcold/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +339 -0
  131. package/srcold/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +303 -0
  132. package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +224 -0
  133. package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +147 -0
  134. package/srcold/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +139 -0
  135. package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
  136. package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +324 -0
  137. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +525 -0
  138. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +569 -0
  139. package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +475 -0
  140. package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  141. package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +369 -0
  142. package/srcold/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +392 -0
  143. package/srcold/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +213 -0
  144. package/srcold/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +467 -0
  145. package/srcold/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +181 -0
  146. package/srcold/TabexComponents/StaticPages/Checkout/Checkout.jsx +1280 -0
  147. package/srcold/TabexComponents/StaticPages/Filter/Filter copy.jsx +1392 -0
  148. package/srcold/TabexComponents/StaticPages/Filter/Filter.jsx +1399 -0
  149. package/srcold/TabexComponents/StaticPages/Filter/FilterOriginal.jsx +1132 -0
  150. package/srcold/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +60 -0
  151. package/srcold/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
  152. package/srcold/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  153. package/srcold/TabexComponents/StaticPages/Login/Login.jsx +469 -0
  154. package/srcold/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +143 -0
  155. package/srcold/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1329 -0
  156. package/srcold/TabexComponents/StaticPages/Policies/Policies.jsx +306 -0
  157. package/srcold/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1334 -0
  158. package/srcold/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +715 -0
  159. package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype copy.jsx +361 -0
  160. package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +361 -0
  161. package/srcold/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +501 -0
  162. package/srcold/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
  163. package/srcold/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +227 -0
  164. package/srcold/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +832 -0
  165. package/srcold/TabexComponents/StaticPages/Signup/Signup.jsx +154 -0
  166. package/srcold/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +280 -0
  167. package/srcold/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +671 -0
  168. package/srcold/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +538 -0
  169. package/srcold/assets/images/appstore.png +0 -0
  170. package/srcold/assets/images/cod.png +0 -0
  171. package/srcold/assets/images/egyptflag.png +0 -0
  172. package/srcold/assets/images/fawry.png +0 -0
  173. package/srcold/assets/images/googleplay.png +0 -0
  174. package/srcold/assets/images/ksa.png +0 -0
  175. package/srcold/assets/images/mastercard.png +0 -0
  176. package/srcold/assets/images/payment.png +0 -0
  177. package/srcold/assets/images/paymob.png +0 -0
  178. package/srcold/assets/images/paypal.png +0 -0
  179. package/srcold/assets/images/shoppingcart.png +0 -0
  180. package/srcold/assets/images/usflag.png +0 -0
  181. package/srcold/assets/images/visa.png +0 -0
  182. package/srcold/assets/images/whatsapp.png +0 -0
  183. package/srcold/button.jsx +40 -0
  184. package/srcold/index.jsx +283 -0
  185. package/srcold/styles/Home.module.css +129 -0
  186. package/srcold/styles/cards/Categorcycard_fullimage.module.css +10 -0
  187. package/srcold/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  188. package/srcold/styles/cards/Categorycard_withshapes.module.css +189 -0
  189. package/srcold/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
  190. package/srcold/styles/cards/Productcard6.module.css +9 -0
  191. package/srcold/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  192. package/srcold/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  193. package/srcold/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
  194. package/srcold/styles/cards/categorycard.module.css +85 -0
  195. package/srcold/styles/cards/categorycard3.module.css +50 -0
  196. package/srcold/styles/cards/categorycardwithtext.module.css +40 -0
  197. package/srcold/styles/cards/productcard_animatedbuttons.module.css +130 -0
  198. package/srcold/styles/cards/productcard_with_textonhover.module.css +18 -0
  199. package/srcold/styles/cards/productcard_withtextonimage.module.css +0 -0
  200. package/srcold/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  201. package/srcold/styles/general/bootstrap.css +4727 -0
  202. package/srcold/styles/general/dropdown.css +206 -0
  203. package/srcold/styles/general/editorbardropdown.module.css +94 -0
  204. package/srcold/styles/general/filter.module.css +108 -0
  205. package/srcold/styles/general/form.module.css +273 -0
  206. package/srcold/styles/general/general.module.css +872 -0
  207. package/srcold/styles/general/image-gallery.css +531 -0
  208. package/srcold/styles/general/react-accessible-accordion.module.css +52 -0
  209. package/srcold/styles/general/react-phone-input-2.module.css +927 -0
  210. package/srcold/styles/general/scrollbtn.module.css +22 -0
  211. package/srcold/styles/general/slick.module.css +166 -0
  212. package/srcold/styles/general/tabs.module.css +119 -0
  213. package/srcold/styles/general/workplaceeditor.module.css +328 -0
  214. package/srcold/styles/globals.css +26 -0
  215. package/srcold/styles/headers/CTAHeader.module.css +40 -0
  216. package/srcold/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  217. package/srcold/styles/headers/Gotoheader.module.css +81 -0
  218. package/srcold/styles/headers/Header7.module.css +50 -0
  219. package/srcold/styles/headers/HeaderWithAdSlider.module.css +86 -0
  220. package/srcold/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
  221. package/srcold/styles/headers/HeaderWithUtilityBar.module.css +46 -0
  222. package/srcold/styles/headers/Header_threesectionslogocentered.module.css +84 -0
  223. package/srcold/styles/headers/NewHeader.module.css +101 -0
  224. package/srcold/styles/headers/SearchFocusedHeader.module.css +62 -0
  225. package/srcold/styles/headers/Sideheader.module.css +108 -0
  226. package/srcold/styles/headers/Simpleheader.module.css +102 -0
  227. package/srcold/styles/headers/classicheader.module.css +16 -0
  228. package/srcold/styles/headers/classicheaderstyles.module.css +9 -0
  229. package/srcold/styles/headers/dropdown.css +0 -0
  230. package/srcold/styles/headers/header4.module.css +175 -0
  231. package/srcold/styles/headers/header5.module.css +30 -0
  232. package/srcold/styles/headers/header_contactinfo.module.css +53 -0
  233. package/srcold/styles/headers/headerresturant.module.css +89 -0
  234. package/srcold/styles/headers/modernheader.module.css +72 -0
  235. package/srcold/styles/headers/stylishheader.module.css +24 -0
  236. package/srcold/styles/headers/subheader.module.css +114 -0
  237. package/srcold/styles/headers/threetieredheader.module.css +91 -0
  238. package/srcold/styles/sections/BackgroundImageWithTopContent.css +4 -0
  239. package/srcold/styles/sections/Backgroundimage1.module.css +17 -0
  240. package/srcold/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  241. package/srcold/styles/sections/Section_with_rightbgcont.module.css +49 -0
  242. package/srcold/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  243. package/srcold/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  244. package/srcold/styles/staticpages/accordion.module.css +9 -0
  245. package/srcold/styles/staticpages/cart.module.css +108 -0
  246. package/srcold/styles/staticpages/dropdown.css +196 -0
  247. package/srcold/styles/staticpages/filter.module.css +139 -0
  248. package/srcold/styles/staticpages/image-gallery.css +481 -0
  249. package/srcold/styles/staticpages/login.module.css +113 -0
  250. package/srcold/styles/staticpages/productinfo.module.css +54 -0
  251. package/srcold/styles/staticpages/shop.module.css +191 -0
  252. package/srcold/styles/staticpages/signup.module.css +206 -0
  253. package/srcold/styles/staticpages/staticroutersidenav.module.css +129 -0
  254. package/srcold/styles/staticpages/viewcart.module.css +129 -0
  255. package/srcold/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,1220 @@
1
+ import React, { useEffect, useState, useContext, createRef } from 'react';
2
+ import generalstyles from '../../../../styles/general/general.module.css';
3
+ import filterstyles from '../../../../styles/staticpages/filter.module.css';
4
+ import { css } from 'glamor';
5
+ import Filter from '../../../StaticPages/Filter/Filter.jsx';
6
+ import { useInView } from 'react-intersection-observer';
7
+ import { CircularProgress } from 'react-cssfx-loading';
8
+ import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
9
+ import { serverbaselink } from '../../../../../Env';
10
+ import { FaArrowAltCircleRight } from '@react-icons/all-files/fa/FaArrowAltCircleRight';
11
+ import { FaArrowAltCircleLeft } from '@react-icons/all-files/fa/FaArrowAltCircleLeft';
12
+ import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
13
+ import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
14
+ import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';
15
+ import { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';
16
+ import ReactPaginate from 'react-paginate';
17
+
18
+ const CardsSection = (props) => {
19
+ const refscr = createRef();
20
+ const { ref, inView } = useInView();
21
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
22
+ const lang = props.actions.lang;
23
+ const langdetect = props.actions.langdetect;
24
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
25
+ const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
26
+ const routingcountext = props.actions.routingcountext;
27
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
28
+ const ProductFilterObjContext = props.actions.ProductFilterObjContext;
29
+ const setProductFilterObjContext = props.actions.setProductFilterObjContext;
30
+ const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
31
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
32
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
33
+ const fetchProductsQuery = props.actions.fetchProductsQuery;
34
+ const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
35
+ const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
36
+ const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
37
+ const setfetchingtype = props.actions.setfetchingtype;
38
+ const fetchingtype = props.actions.fetchingtype;
39
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
40
+ const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
41
+ const FetchVendorsQuery = props.actions.FetchVendorsQuery;
42
+ const [openFilterSlider, setopenFilterSlider] = useState(false);
43
+ const actions = props.actions;
44
+ const [sectionproperties, setsectionproperties] = useState('');
45
+ const [cardsarray, setcardsarray] = useState([]);
46
+ const [sectionitem, setsectionitem] = useState('');
47
+ const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
48
+ const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
49
+ // React.useEffect(() => {
50
+ // if (inView) {
51
+ // fetchProductsQuery.fetchNextPage();
52
+ // }
53
+ // }, [inView]);
54
+ useEffect(() => {
55
+ var productfilerobjtemp = ProductFilterObjContext;
56
+ if (props.filterparamsprops != undefined) {
57
+ var filterpar = decodeURIComponent(props.filterparamsprops);
58
+ var filterparsed = JSON.parse(filterpar);
59
+
60
+ if (filterparsed != undefined) {
61
+ productfilerobjtemp = filterparsed;
62
+ setProductFilterObjContext(filterparsed);
63
+ }
64
+ }
65
+
66
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
67
+ if (sectionitem.sectionid == props.sectionidprops) {
68
+ var secpropobj = {};
69
+ setsectionitem(sectionitem);
70
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
71
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
72
+ });
73
+ setsectionproperties({ ...secpropobj });
74
+
75
+ if (props.srcfromprops == 'GeneralProductsComponent') {
76
+ setfetchingtype('products');
77
+ var lcproductfetchingtype = 'Random';
78
+
79
+ if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
80
+ lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
81
+ }
82
+ setProductsFetchingTypeSectionObj({
83
+ productfetchingtype: lcproductfetchingtype,
84
+ collectionid: props.collectionidprops,
85
+ grouptype: props.grouptypeprops,
86
+ grouptyperefid: props.grouptyperefidprops,
87
+ });
88
+ } else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
89
+ setfetchingtype(props.grouptypeprops);
90
+ } else {
91
+ setfetchingtype(sectionitem.fetchingtype);
92
+ setProductsFetchingTypeSectionObj({
93
+ productfetchingtype: sectionitem.productsfetchingtype,
94
+ collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
95
+ grouptype: props.grouptypeprops,
96
+ grouptyperefid: props.grouptyperefidprops,
97
+ });
98
+ }
99
+ }
100
+ });
101
+ }, [StatePagePropertiesContext]);
102
+ useEffect(() => {
103
+ if (sectionproperties.length != 0) {
104
+ if (cardsarray.length == 0) {
105
+ if (fetchingtype == 'collections') {
106
+ if (fetchcollectionsQueryContext.isSuccess) {
107
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
108
+ }
109
+ } else if (fetchingtype == 'products') {
110
+ if (fetchProductsQuery.isSuccess) {
111
+ var allpagesarr = [];
112
+ // fetchProductsQuery.data.pages.forEach((page) => {
113
+ // page.data.products.forEach((productobj) => {
114
+ // allpagesarr.push(productobj);
115
+ // });
116
+ // });
117
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
118
+ allpagesarr.push(item);
119
+ });
120
+ cardobjassigner(allpagesarr);
121
+ }
122
+ } else if (fetchingtype == 'vendors') {
123
+ if (FetchVendorsQuery.isSuccess) {
124
+ cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }, [sectionproperties]);
130
+ useEffect(() => {
131
+ if (fetchingtype?.length != 0) {
132
+ var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
133
+ if (fetchingtype == 'collections') {
134
+ if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
135
+ setParentCollectionsForCollectionQueryArr('all');
136
+ } else {
137
+ setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
138
+ }
139
+ }
140
+ if (fetchingtype == 'products') {
141
+ var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
142
+ tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
143
+ if (
144
+ ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
145
+ ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
146
+ ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
147
+ ) {
148
+ } else {
149
+ if (tempfetchproductsfilerobjcontext.collections != undefined) {
150
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
151
+ }
152
+ }
153
+ tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
154
+ tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
155
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
156
+ }
157
+ if (fetchingtype == 'categories') {
158
+ if (fetchAuthorizationQueryContext?.isSuccess) {
159
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
160
+ cardobjassigner(categories);
161
+ }
162
+ }
163
+
164
+ if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
165
+ if (fetchAuthorizationQueryContext?.isSuccess) {
166
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
167
+ var parentcollections = [];
168
+ categories?.forEach(function (catitem, catindex) {
169
+ catitem?.parentcolletions.forEach(function (parentcolitem) {
170
+ parentcolitem.categoryid = catitem.categoryid;
171
+ parentcollections.push(parentcolitem);
172
+ });
173
+ });
174
+ if (fetchingtype == 'parentcollections') {
175
+ if (
176
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
177
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
178
+ sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
179
+ ) {
180
+ var arrafterfilter = [];
181
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
182
+ if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
183
+ arrafterfilter.push(parentcolitem);
184
+ }
185
+ });
186
+ parentcollections = arrafterfilter;
187
+ }
188
+ }
189
+ if (fetchingtype == 'innercategories') {
190
+ var arrafterfilter = [];
191
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
192
+ if (parentcolitem.categoryid == props.collectionidprops) {
193
+ arrafterfilter.push(parentcolitem);
194
+ }
195
+ });
196
+ parentcollections = arrafterfilter;
197
+ }
198
+
199
+ cardobjassigner(parentcollections);
200
+ }
201
+ } else if (fetchingtype == 'innerparentcollections') {
202
+ if (fetchAuthorizationQueryContext?.isSuccess) {
203
+ var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
204
+ var collections = [];
205
+ categories?.forEach(function (catitem, catindex) {
206
+ catitem?.parentcolletions.forEach(function (parentcolitem) {
207
+ parentcolitem.categoryid = catitem.categoryid;
208
+ parentcolitem?.collections?.forEach(function (collitem, colindex) {
209
+ collitem.parentcollectionid = parentcolitem.parentcollectionid;
210
+ collections.push(collitem);
211
+ });
212
+ });
213
+ });
214
+ if (fetchingtype == 'innerparentcollections') {
215
+ var collectionsafterfilter = [];
216
+ collections.forEach(function (colitem, colindex) {
217
+ if (colitem.parentcollectionid == props.collectionidprops) {
218
+ var iscollexists = false;
219
+ collectionsafterfilter.forEach(function (existcolitem) {
220
+ if (colitem.collectionid == existcolitem.collectionid) {
221
+ iscollexists = true;
222
+ }
223
+ });
224
+ if (iscollexists == false) {
225
+ collectionsafterfilter.push(colitem);
226
+ }
227
+ }
228
+ });
229
+ collections = collectionsafterfilter;
230
+ }
231
+ cardobjassigner(collections);
232
+ }
233
+ }
234
+
235
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
236
+ }
237
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
238
+ useEffect(() => {
239
+ if (fetchingtype == 'products') {
240
+ if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
241
+ var allpagesarr = [];
242
+ // fetchProductsQuery.data.pages.forEach((page) => {
243
+ // page.data.products.forEach((productobj) => {
244
+ // allpagesarr.push(productobj);
245
+ // });
246
+ // });
247
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
248
+ allpagesarr.push(item);
249
+ });
250
+ cardobjassigner(allpagesarr);
251
+ }
252
+ }
253
+ }, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
254
+ useEffect(() => {
255
+ if (fetchingtype == 'collections') {
256
+ if (fetchcollectionsQueryContext.isSuccess) {
257
+ cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
258
+ }
259
+ }
260
+ }, [fetchcollectionsQueryContext?.isSuccess]);
261
+ useEffect(() => {
262
+ if (fetchingtype == 'vendors') {
263
+ if (FetchVendorsQuery.isSuccess) {
264
+ if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
265
+ cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
266
+ }
267
+ }
268
+ }
269
+ }, [FetchVendorsQuery.isSuccess]);
270
+ useEffect(() => {
271
+ favassigner();
272
+ }, [favoriteprojectscountContext]);
273
+ useEffect(() => {
274
+ if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
275
+ var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
276
+ if (Array.isArray(maincontainerarrayofobjsparsed)) {
277
+ setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
278
+ }
279
+ }
280
+ }, [sectionproperties]);
281
+ const favassigner = () => {
282
+ if (fetchingtype == 'products') {
283
+ if (cardsarray.length != 0) {
284
+ if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
285
+ var tempcardsarray = [...cardsarray];
286
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
287
+ arrayItem.IsFavExists = false;
288
+ });
289
+ tempcardsarray.forEach(function (arrayItem, arrayindex) {
290
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
291
+ if (arrayItem.productid == favitem) {
292
+ arrayItem.IsFavExists = true;
293
+ }
294
+ });
295
+ });
296
+ setcardsarray([...tempcardsarray]);
297
+ }
298
+ }
299
+ }
300
+ };
301
+ const cardobjassigner = (fetchedarray) => {
302
+ var temparray = [];
303
+
304
+ fetchedarray.forEach(function (arrayItem, arrayindex) {
305
+ var cardobj = {
306
+ name: '',
307
+ image: '',
308
+ };
309
+ if (fetchingtype == 'products') {
310
+ var itemquantity = 0;
311
+ if (langdetect == 'en') {
312
+ cardobj.name = arrayItem.productinfo.name_en;
313
+ } else {
314
+ cardobj.name = arrayItem.productinfo.name_ar;
315
+ }
316
+ if (langdetect == 'en') {
317
+ cardobj.description = arrayItem.productinfo.description_en;
318
+ } else {
319
+ cardobj.description = arrayItem.productinfo.description_ar;
320
+ }
321
+ if (arrayItem.productinfo.hasvariants == 0) {
322
+ fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
323
+ if (cartitem.productid == arrayItem.productinfo.productid) {
324
+ itemquantity = cartitem.quantity;
325
+ }
326
+ });
327
+ }
328
+ cardobj.image = arrayItem.productinfo.productmainimage;
329
+ cardobj.hassale = arrayItem.productinfo.hassale;
330
+ cardobj.productid = arrayItem.productinfo.productid;
331
+ cardobj.hasvariants = arrayItem.productinfo.hasvariants;
332
+ cardobj.description_en = arrayItem.productinfo.description_en;
333
+ cardobj.description_ar = arrayItem.productinfo.description_ar;
334
+ cardobj.defaultprice = arrayItem.productinfo.defaultprice;
335
+ cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
336
+ cardobj.productimages = arrayItem.productinfo.productimages;
337
+ cardobj.quantity = itemquantity;
338
+ cardobj.timestamp = arrayItem.productinfo.timestamp;
339
+ if (langdetect == 'en') {
340
+ cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_en;
341
+ } else {
342
+ cardobj.currencyname = fetchAuthorizationQueryContext?.data.data.currencyname_ar;
343
+ }
344
+ if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
345
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
346
+ if (arrayItem.productinfo.productid == favitem) {
347
+ cardobj.IsFavExists = true;
348
+ }
349
+ });
350
+ }
351
+ } else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
352
+ cardobj.collectionid = arrayItem.collectionid;
353
+ if (langdetect == 'en') {
354
+ cardobj.name = arrayItem.title_en;
355
+ cardobj.description = arrayItem.description_en;
356
+ } else if (langdetect == 'ar') {
357
+ cardobj.name = arrayItem.title_ar;
358
+ cardobj.description = arrayItem.description_ar;
359
+ }
360
+ cardobj.image = arrayItem.collectionlogo;
361
+ } else if (fetchingtype == 'categories') {
362
+ cardobj.collectionid = arrayItem.categoryid;
363
+ if (langdetect == 'en') {
364
+ cardobj.name = arrayItem.title_en;
365
+ cardobj.description = arrayItem.description_en;
366
+ } else if (langdetect == 'ar') {
367
+ cardobj.name = arrayItem.title_ar;
368
+ cardobj.description = arrayItem.description_ar;
369
+ }
370
+ cardobj.image = arrayItem.categorylogo;
371
+ } else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
372
+ cardobj.collectionid = arrayItem.parentcollectionid;
373
+ if (langdetect == 'en') {
374
+ cardobj.name = arrayItem.title_en;
375
+ cardobj.description = arrayItem.description_en;
376
+ } else if (langdetect == 'ar') {
377
+ cardobj.name = arrayItem.title_ar;
378
+ cardobj.description = arrayItem.description_ar;
379
+ }
380
+ cardobj.image = arrayItem.parentcollectionlogo;
381
+ } else if (fetchingtype == 'custom') {
382
+ } else if (fetchingtype == 'vendors') {
383
+ cardobj.name = arrayItem.vendorname;
384
+ cardobj.collectionid = arrayItem.vendorid;
385
+ cardobj.image = arrayItem.vendorlogourl;
386
+ }
387
+ temparray.push(cardobj);
388
+ });
389
+
390
+ setcardsarray([...temparray]);
391
+ };
392
+ // Example items, to simulate fetching from another resources.
393
+
394
+ const handlePageClick = (event) => {
395
+ props.scrolltotop();
396
+ var tempProductFilterObjContext = { ...ProductFilterObjContext };
397
+ tempProductFilterObjContext.page = event?.selected;
398
+ setProductFilterObjContext({ ...tempProductFilterObjContext });
399
+ var pasturl = '';
400
+ if (props.grouptypeprops != undefined) {
401
+ if (props.collectionidprops != undefined) {
402
+ pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
403
+ }
404
+ }
405
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
406
+ };
407
+ function PaginatedItems({ itemsPerPage }) {
408
+ const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
409
+ return (
410
+ <div class="d-flex containerClassName">
411
+ <ReactPaginate
412
+ breakLabel="..."
413
+ forcePage={fetchProductsQuery?.data?.data?.page}
414
+ nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
415
+ onPageChange={handlePageClick}
416
+ active
417
+ pageRangeDisplayed={5}
418
+ pageCount={pageCount}
419
+ previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
420
+ renderOnZeroPageCount={null}
421
+ pageLinkClassName={section_cssstyles.pageLinkClassName}
422
+ nextLinkClassName={section_cssstyles.nextLinkClassName}
423
+ previousLinkClassName={section_cssstyles.previousLinkClassName}
424
+ activeClassName={section_cssstyles.activeClassName}
425
+ activeLinkClassName={section_cssstyles.activeLinkClassName}
426
+ previousClassName={section_cssstyles.previousClassName}
427
+ nextClassName={section_cssstyles.nextClassName}
428
+ disabledClassName={section_cssstyles.disabledClassName}
429
+ disabledLinkClassName={section_cssstyles.disabledLinkClassName}
430
+ />
431
+ </div>
432
+ );
433
+ }
434
+ const section_cssstyles = {
435
+ disabledClassName: css({
436
+ cursor: 'not-allowed',
437
+ ':hover': {
438
+ cursor: 'not-allowed',
439
+ color: sectionproperties.paginationColor,
440
+ },
441
+ }),
442
+ disabledLinkClassName: css({
443
+ cursor: 'not-allowed',
444
+ ':hover': {
445
+ cursor: 'not-allowed',
446
+ color: sectionproperties.paginationColor,
447
+ },
448
+ }),
449
+ pageLinkClassName: css({
450
+ minWidth: sectionproperties.paginationContainerWidth + 'vh',
451
+ height: sectionproperties.paginationContainerHeight + 'vh',
452
+ padding: '17px',
453
+ display: 'flex',
454
+ alignItems: 'center',
455
+ justifyContent: 'center',
456
+ color: sectionproperties.paginationColor,
457
+ border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
458
+ transition: '.3s',
459
+ ':hover': {
460
+ color: sectionproperties.paginationColoronHover,
461
+ borderColor: sectionproperties.paginationColoronHover,
462
+ },
463
+ }),
464
+ activeClassName: css({
465
+ color: sectionproperties.paginationActiveColor,
466
+ borderColor: sectionproperties.paginationActiveColor,
467
+ }),
468
+ activeLinkClassName: css({
469
+ color: sectionproperties.paginationActiveColor,
470
+ borderColor: sectionproperties.paginationActiveColor,
471
+ }),
472
+ previousClassName: css({
473
+ width: sectionproperties.paginationContainerWidth + 'vh',
474
+ height: sectionproperties.paginationContainerHeight + 'vh',
475
+ padding: '17px',
476
+ display: 'flex',
477
+ alignItems: 'center',
478
+ justifyContent: 'center',
479
+ color: sectionproperties.paginationColor,
480
+ border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
481
+ transition: '.3s',
482
+ ':hover': {
483
+ color: sectionproperties.paginationColoronHover,
484
+ borderColor: sectionproperties.paginationColoronHover,
485
+ },
486
+ }),
487
+ nextClassName: css({
488
+ width: sectionproperties.paginationContainerWidth + 'vh',
489
+ height: sectionproperties.paginationContainerHeight + 'vh',
490
+ padding: '17px',
491
+ display: 'flex',
492
+ alignItems: 'center',
493
+ justifyContent: 'center',
494
+ color: sectionproperties.paginationColor,
495
+ border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
496
+ transition: '.3s',
497
+ ':hover': {
498
+ color: sectionproperties.paginationColoronHover,
499
+ borderColor: sectionproperties.paginationColoronHover,
500
+ },
501
+ }),
502
+ previousLinkClassName: css({
503
+ fontSize: sectionproperties.paginationFontSize + 'px',
504
+ color: sectionproperties.paginationColor,
505
+ transition: '.3s',
506
+ ':hover': {
507
+ color: sectionproperties.paginationColoronHover,
508
+ },
509
+ }),
510
+ nextLinkClassName: css({
511
+ fontSize: sectionproperties.paginationFontSize + 'px',
512
+ color: sectionproperties.paginationColor,
513
+ transition: '.3s',
514
+ ':hover': {
515
+ color: sectionproperties.paginationColoronHover,
516
+ },
517
+ }),
518
+ sectiontitlespan: css({
519
+ ':after': {
520
+ height: '5px',
521
+ width: sectionproperties.sectitle_lineafterwidth + '%',
522
+ backgroundColor: sectionproperties.linebgcolor,
523
+ },
524
+ }),
525
+ line_left: css({
526
+ height: '1px',
527
+ position: 'relative',
528
+ flex: '1 1 auto',
529
+ minWidth: '10%',
530
+ background: sectionproperties.linebgcolor,
531
+ }),
532
+ line_right: css({
533
+ height: '1px',
534
+ position: 'relative',
535
+ flex: '1 1 auto',
536
+ minWidth: '10%',
537
+ background: sectionproperties.linebgcolor,
538
+ }),
539
+ cards_sections: css({
540
+ marginTop: sectionproperties.marginTop + 'px',
541
+ marginBottom: sectionproperties.marginBottom + 'px',
542
+ paddingLeft: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
543
+ paddingRight: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
544
+ paddingTop: sectionproperties.paddingTop + 'px',
545
+ paddingBottom: sectionproperties.paddingBottom + 'px',
546
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
547
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
548
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
549
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
550
+ borderColor: sectionproperties.sectioncardbordercolor,
551
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
552
+ }),
553
+ filterbtn: css({
554
+ width: sectionproperties.filterbtn_Width + 'px',
555
+ height: sectionproperties.filterbtn_Height + 'px',
556
+ background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
557
+ borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
558
+ borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
559
+ borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
560
+ borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
561
+ color: sectionproperties.filterbtn_Textcolor,
562
+ boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
563
+ marginTop: sectionproperties.filterbtn_marginTop + 'px',
564
+ marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
565
+ marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
566
+ marginRight: sectionproperties.filterbtn_marginRight + 'px',
567
+ transition: '.3s',
568
+ ':hover': {
569
+ background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
570
+ color: sectionproperties.filterbtn_Textcoloronhover,
571
+ },
572
+ }),
573
+ viewmorebtn: css({
574
+ width: sectionproperties.viewmorebtn_Width + 'px',
575
+ height: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
576
+ background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
577
+ borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
578
+ color: sectionproperties.viewmorebtn_Textcolor,
579
+ fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
580
+ fontWeight: sectionproperties.viewmorebtn_fontWeight,
581
+ textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
582
+ transition: '.3s',
583
+ ':hover': {
584
+ background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
585
+ color: sectionproperties.viewmorebtn_Textcoloronhover,
586
+ },
587
+ }),
588
+ loadbtn: css({
589
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
590
+ color: sectionproperties.generaltext_fontColor,
591
+ fontWeight: sectionproperties.generaltext_fontWeight,
592
+ textDecoration: 'underline',
593
+ transition: '.3s',
594
+ ':hover': {
595
+ color: sectionproperties.text_secondarycolor,
596
+ },
597
+ }),
598
+ };
599
+ const SectionTitle = () => {
600
+ return (
601
+ <div
602
+ class="d-flex align-items-center flex-row"
603
+ style={{
604
+ position: 'relative',
605
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
606
+ width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
607
+ }}
608
+ >
609
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
610
+ <p
611
+ class={
612
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
613
+ ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
614
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
615
+ ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
616
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
617
+ ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
618
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
619
+ ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
620
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
621
+ ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
622
+ : sectionproperties.sectiontitlefontfamily == 'ASUL'
623
+ ? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
624
+ : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
625
+ }
626
+ style={{
627
+ color: sectionproperties.sectionTitleColor,
628
+ fontWeight: sectionproperties.sectionTitleFontWeight,
629
+ paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
630
+ paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
631
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
632
+ }}
633
+ >
634
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
635
+ </p>
636
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
637
+ </div>
638
+ );
639
+ };
640
+ const cardsrender = () => {
641
+ return (
642
+ <div class={sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical' ? 'col-lg-9 p-sm-0' : 'row m-0 w-100'}>
643
+ {sectionproperties.length != 0 && (
644
+ <div className="row m-0 w-100 d-flex align-items-center p-sm-0">
645
+ <div class="col-lg-12 p-0">
646
+ <div
647
+ className="row ml-0 mr-0 w-100 px-1025-1 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2"
648
+ style={{
649
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
650
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
651
+ paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
652
+ paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
653
+ }}
654
+ >
655
+ <div
656
+ class={
657
+ sectionproperties.viewmorebtnshow == 'Show'
658
+ ? sectionproperties.sectiontitleposition == 'Centered'
659
+ ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
660
+ : ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
661
+ : sectionproperties.showFilter == 'show'
662
+ ? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
663
+ : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
664
+ }
665
+ >
666
+ <div class="row m-0 w-100">
667
+ {sectionproperties.sectiontitleshow == 'Show' && (
668
+ <div
669
+ class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex d-md-none align-items-center '}
670
+ style={{
671
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
672
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
673
+ }}
674
+ >
675
+ {SectionTitle()}
676
+ </div>
677
+ )}
678
+ {sectionproperties.sectiontitleshow == 'Show' && (
679
+ <div
680
+ class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-none d-md-flex align-items-center '}
681
+ style={{
682
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
683
+ fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
684
+ }}
685
+ >
686
+ {SectionTitle()}
687
+ </div>
688
+ )}
689
+ {sectionproperties.prodCatShow == 'Show' && (
690
+ <div
691
+ class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 d-md-none '}
692
+ style={{
693
+ justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
694
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
695
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
696
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
697
+ }}
698
+ >
699
+ <p
700
+ class={
701
+ sectionproperties.descFontFamily == 'Pacifico'
702
+ ? ' PacificoFont m-0 p-0 wordbreak '
703
+ : sectionproperties.descFontFamily == 'Playfair'
704
+ ? ' PlayfairFont m-0 p-0 wordbreak '
705
+ : sectionproperties.descFontFamily == 'Great Vibes'
706
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
707
+ : sectionproperties.descFontFamily == 'Quicksand'
708
+ ? ' QuicksandFont m-0 p-0 wordbreak'
709
+ : sectionproperties.descFontFamily == 'ASUL'
710
+ ? ' ASUL m-0 p-0 wordbreak '
711
+ : ' m-0 p-0 wordbreak '
712
+ }
713
+ style={{
714
+ color: sectionproperties.prodCatColor,
715
+ fontWeight: sectionproperties.prodCatFontWeight,
716
+ textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
717
+ fontSize: sectionproperties.prodCatFontSize + 'px',
718
+ }}
719
+ >
720
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
721
+ </p>
722
+ </div>
723
+ )}
724
+ {sectionproperties.prodCatShow == 'Show' && (
725
+ <div
726
+ class={' col-lg-12 col-md-12 col-sm-12 align-items-center p-0 d-none d-md-flex '}
727
+ style={{
728
+ justifyContent: sectionproperties.showFilter == 'show' ? 'start' : sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
729
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
730
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
731
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
732
+ }}
733
+ >
734
+ <p
735
+ class={
736
+ sectionproperties.descFontFamily == 'Pacifico'
737
+ ? ' PacificoFont m-0 p-0 wordbreak '
738
+ : sectionproperties.descFontFamily == 'Playfair'
739
+ ? ' PlayfairFont m-0 p-0 wordbreak '
740
+ : sectionproperties.descFontFamily == 'Great Vibes'
741
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
742
+ : sectionproperties.descFontFamily == 'Quicksand'
743
+ ? ' QuicksandFont m-0 p-0 wordbreak '
744
+ : sectionproperties.descFontFamily == 'ASUL'
745
+ ? ' ASUL m-0 p-0 wordbreak '
746
+ : ' m-0 p-0 wordbreak '
747
+ }
748
+ style={{
749
+ color: sectionproperties.prodCatColor,
750
+ fontWeight: sectionproperties.prodCatFontWeight,
751
+ textAlign:
752
+ sectionproperties.showFilter == 'show'
753
+ ? langdetect == 'en'
754
+ ? 'left'
755
+ : 'right'
756
+ : sectionproperties.descriptionCentered == 'Centered'
757
+ ? 'center'
758
+ : langdetect == 'en'
759
+ ? 'left'
760
+ : 'right',
761
+ fontSize: sectionproperties.prodCatFontSizeResp + 'px',
762
+ }}
763
+ >
764
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
765
+ </p>
766
+ </div>
767
+ )}
768
+ </div>
769
+ </div>
770
+ {/* <div class="col-lg-12">
771
+ <Filter2 />
772
+ </div> */}
773
+ <div
774
+ class={
775
+ sectionproperties.sectiontitleposition == 'Centered'
776
+ ? sectionproperties.showFilter == 'show'
777
+ ? 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0'
778
+ : 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
779
+ : 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
780
+ }
781
+ style={{
782
+ marginTop: sectionproperties.sectiontitleposition == 'Centered' ? '5px' : 0,
783
+ }}
784
+ >
785
+ <div
786
+ class={
787
+ sectionproperties.sectiontitleposition == 'Centered'
788
+ ? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto '
789
+ : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
790
+ }
791
+ >
792
+ {sectionproperties.viewmorebtnshow == 'Show' && (
793
+ <button
794
+ class={
795
+ sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
796
+ ? sectionproperties.sectiontitleposition == 'Centered'
797
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
798
+ : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
799
+ : sectionproperties.sectiontitleposition == 'Centered'
800
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
801
+ : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
802
+ }
803
+ onClick={() => {
804
+ if (fetchingtype == 'products') {
805
+ if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
806
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
807
+ } else {
808
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
809
+ }
810
+ } else {
811
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
812
+ }
813
+ }}
814
+ >
815
+ <span
816
+ class={
817
+ sectionproperties.sectiontitleposition == 'Centered'
818
+ ? 'd-flex justify-content-center align-items-center'
819
+ : 'd-flex justify-content-center align-items-center d-md-none'
820
+ }
821
+ >
822
+ <span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}>
823
+ {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
824
+ </span>
825
+ </span>
826
+ <span
827
+ class={
828
+ sectionproperties.sectiontitleposition == 'Centered'
829
+ ? 'd-none align-items-center justify-content-center'
830
+ : 'd-none d-md-flex align-items-center justify-content-center'
831
+ }
832
+ >
833
+ <i class="h-100 d-flex align-items-center justify-content-center">{langdetect == 'en' ? <FaArrowAltCircleRight /> : <FaArrowAltCircleLeft />}</i>
834
+ </span>
835
+ </button>
836
+ )}
837
+ {sectionproperties.showFilter == 'show' && (
838
+ <button
839
+ class={' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '}
840
+ onClick={() => {
841
+ setopenFilterSlider(true);
842
+ // var element = document.getElementById('filterslider');
843
+ // element.classList.add(filterstyles.filterslider_container_opened);
844
+ }}
845
+ >
846
+ <div class={`${section_cssstyles.filterbtn}`}>
847
+ <i class="h-100 d-flex align-items-center justify-content-center">
848
+ <FiFilter />
849
+ </i>
850
+ </div>
851
+ </button>
852
+ )}
853
+ </div>
854
+ </div>
855
+ {sectionproperties.showseparator == 'Show' && (
856
+ <div class="col-lg-12 p-0">
857
+ <hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
858
+ </div>
859
+ )}
860
+ </div>
861
+ </div>
862
+ {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
863
+ <div className="row m-0 w-100 d-flex align-items-center" style={{ height: '30vh' }}>
864
+ <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
865
+ <FiLayers
866
+ style={{
867
+ fontSize: sectionproperties.noprod_iconfontSize + 'px',
868
+ color: sectionproperties.noprod_iconcolor,
869
+ }}
870
+ />
871
+ <p
872
+ class="m-0 p-0 mt-2"
873
+ style={{
874
+ fontWeight: sectionproperties.noprod_fontWeight,
875
+ color: sectionproperties.noprod_color,
876
+ fontSize: sectionproperties.noprod_fontSize + 'px',
877
+ }}
878
+ >
879
+ {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
880
+ </p>
881
+ </div>
882
+ </div>
883
+ )}
884
+ {cardsarray.length != 0 && (
885
+ <div class="col-lg-12 p-0">
886
+ {StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
887
+ if (item.tabexsectioninfo != null) {
888
+ if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
889
+ var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
890
+ return (
891
+ <div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 p-md-0 px-1025-1 '}>
892
+ {sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && (
893
+ <div class={langdetect == 'en' ? 'col-lg-12 p-0 pl-sm-2' : 'col-lg-12 p-0 pr-sm-2'}>
894
+ <ScrollMenu
895
+ transitionBehavior={'auto'}
896
+ wrapperClassName={''}
897
+ itemClassName={
898
+ item.tabexsectioninfo.sectioncompname == 'Productcard6'
899
+ ? 'scrollmenuclassnameitemProductcard6'
900
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
901
+ ? 'scrollmenuclassnameitemProductcard_with_circularhover'
902
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
903
+ ? 'scrollmenuclassnameitemProductcard_with_circularbg'
904
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
905
+ ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
906
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
907
+ ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
908
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
909
+ ? 'scrollmenuclassnameitemCategorycard_withtext'
910
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
911
+ ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
912
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
913
+ ? 'scrollmenuclassnameitemProductcard_with_variants'
914
+ : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
915
+ ? 'scrollmenuclassnameitemProductcarddefault'
916
+ : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
917
+ ? 'scrollmenuclassnameitemSimpleproductcard'
918
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
919
+ ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
920
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
921
+ ? 'scrollmenuclassnameitemProductcard_with_textonhover'
922
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
923
+ ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
924
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
925
+ ? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
926
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
927
+ ? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
928
+ : item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
929
+ ? 'scrollmenuclassnameitemProductcard_Horizontalcard'
930
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
931
+ ? 'scrollmenuclassnameitemCategorycard_fullimage'
932
+ : // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
933
+ // ? 'scrollmenuclassnameitemClassiccategorycard'
934
+ item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
935
+ ? 'scrollmenuclassnameitemModernProductCard'
936
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
937
+ ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
938
+ : item.tabexsectioninfo.sectioncompname == 'Productcard7'
939
+ ? 'scrollmenuclassnameitemProductcard7'
940
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
941
+ ? 'scrollmenuclassnameitemMenuCard'
942
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
943
+ ? 'scrollmenuclassnameitemStylishProductCard'
944
+ : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
945
+ ? 'scrollmenuclassnameitemProductCardWithTextOnImage'
946
+ : item.tabexsectioninfo.sectioncompname == 'Card23'
947
+ ? 'scrollmenuclassnameitemCard23'
948
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
949
+ ? 'scrollmenuclassnameitemCard20'
950
+ : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
951
+ ? 'scrollmenuclassnameitemModernCardWithQuantityButton'
952
+ : item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
953
+ ? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
954
+ : item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants'
955
+ ? 'scrollmenuclassnameitemCircleCardWithVariants'
956
+ : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
957
+ ? 'scrollmenuclassnameitemUpSlideEffectCard'
958
+ : item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage'
959
+ ? 'scrollmenuclassnameitemCategoryCardTextOnImage'
960
+ : ''
961
+ }
962
+ scrollContainerClassName={'scrollmenuclasssubscrollbar'}
963
+ >
964
+ {cardsarray.map((cardinfoitem, cardinfoindex) => {
965
+ return (
966
+ <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
967
+ <Sectioncomp
968
+ sectiontypeprops={'horizontal'}
969
+ fetchingtypeprops={fetchingtype}
970
+ cardinfoindexprops={cardinfoindex}
971
+ cardinfoitemprops={cardinfoitem}
972
+ sectionindexprops={index}
973
+ sectionidprops={item.sectionid}
974
+ actions={actions}
975
+ fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
976
+ />
977
+ </div>
978
+ );
979
+ })}
980
+ {/* {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
981
+ <button
982
+ className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center mt-4 '}
983
+ ref={ref}
984
+ onClick={() => fetchProductsQuery.fetchNextPage()}
985
+ disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
986
+ >
987
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
988
+ </button>
989
+ )} */}
990
+ </ScrollMenu>
991
+ </div>
992
+ )}
993
+ {sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && (
994
+ <div
995
+ className="row m-0 w-100 d-flex "
996
+ style={{
997
+ justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start',
998
+ }}
999
+ >
1000
+ {cardsarray.map((cardinfoitem, cardinfoindex) => {
1001
+ return (
1002
+ <div
1003
+ class={
1004
+ sectionproperties.numberOfColsvertical == '1'
1005
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1006
+ ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 '
1007
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1008
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 '
1009
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1010
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1011
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1012
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1013
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1014
+ ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1015
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1016
+ ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1017
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1018
+ ? ' 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'
1019
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1020
+ ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1021
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1022
+ ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1023
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1024
+ ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1025
+ : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1026
+ : sectionproperties.numberOfColsvertical == '2'
1027
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1028
+ ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1029
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft '
1030
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 '
1031
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1032
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1033
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1034
+ ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1035
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1036
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1037
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1038
+ ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1039
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1040
+ ? ' 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 '
1041
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1042
+ ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1043
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1044
+ ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0'
1045
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1046
+ ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1047
+ : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0'
1048
+ : sectionproperties.numberOfColsvertical == '3'
1049
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1050
+ ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center '
1051
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1052
+ ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1053
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1054
+ ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1055
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1056
+ ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1057
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1058
+ ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1059
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1060
+ ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1061
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1062
+ ? ' 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 '
1063
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1064
+ ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1065
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1066
+ ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1067
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1068
+ ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1069
+ : ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1070
+ : sectionproperties.numberOfColsvertical == '4'
1071
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1072
+ ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1073
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1074
+ ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1075
+ : item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
1076
+ ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1077
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1078
+ ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1079
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1080
+ ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1081
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1082
+ ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1083
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1084
+ ? ' 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 '
1085
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1086
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1087
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1088
+ ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 '
1089
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1090
+ ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1091
+ : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 '
1092
+ : sectionproperties.numberOfColsvertical == '12'
1093
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1094
+ ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1095
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1096
+ ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1097
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1098
+ ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1099
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1100
+ ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1101
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1102
+ ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1103
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1104
+ ? ' 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 '
1105
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1106
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1107
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1108
+ ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 '
1109
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1110
+ ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1111
+ : ''
1112
+ : sectionproperties.numberOfColsvertical == '6'
1113
+ ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
1114
+ ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1115
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
1116
+ ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1117
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
1118
+ ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 '
1119
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
1120
+ ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1121
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
1122
+ ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 '
1123
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
1124
+ ? ' 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 '
1125
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
1126
+ ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1127
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
1128
+ ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1129
+ : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard'
1130
+ ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0'
1131
+ : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly'
1132
+ ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 '
1133
+ : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 '
1134
+ : ''
1135
+ }
1136
+ >
1137
+ <Sectioncomp
1138
+ sectiontypeprops={'horizontal'}
1139
+ fetchingtypeprops={fetchingtype}
1140
+ cardinfoindexprops={cardinfoindex}
1141
+ cardinfoitemprops={cardinfoitem}
1142
+ sectionindexprops={index}
1143
+ sectionidprops={item.sectionid}
1144
+ actions={actions}
1145
+ fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
1146
+ />
1147
+ </div>
1148
+ );
1149
+ })}
1150
+ {fetchingtype == 'products' && (
1151
+ <div className="w-100 col-lg-12 allcentered mt-2">
1152
+ {/* <button
1153
+ className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
1154
+ // ref={ref}
1155
+ onClick={() => fetchProductsQuery.fetchNextPage()}
1156
+ disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
1157
+ >
1158
+ {fetchProductsQuery.isFetchingNextPage ? (
1159
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1160
+ ) : fetchProductsQuery.hasNextPage ? (
1161
+ langdetect == 'en' ? (
1162
+ 'Load more'
1163
+ ) : (
1164
+ 'المزيد'
1165
+ )
1166
+ ) : (
1167
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1168
+ )}
1169
+ </button> */}
1170
+ <PaginatedItems itemsPerPage={5} />
1171
+ </div>
1172
+ )}
1173
+ </div>
1174
+ )}
1175
+ </div>
1176
+ );
1177
+ }
1178
+ }
1179
+ })}
1180
+ </div>
1181
+ )}
1182
+ </div>
1183
+ )}
1184
+ </div>
1185
+ );
1186
+ };
1187
+ return (
1188
+ <div
1189
+ ref={refscr}
1190
+ class={' row m-0 d-flex justify-content-center ml-auto mr-auto w-md-100 w-sm-100 '}
1191
+ style={{
1192
+ zIndex: 2,
1193
+ background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
1194
+ backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
1195
+ backgroundSize: 'cover',
1196
+ width: sectionproperties.width + 'vw',
1197
+ boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
1198
+ }}
1199
+ >
1200
+ {sectionproperties.length != 0 && (
1201
+ <div
1202
+ class={' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}
1203
+ style={{
1204
+ paddingLeft: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px') : 0,
1205
+ paddingRight: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px') : 0,
1206
+ }}
1207
+ >
1208
+ {sectionproperties.showFilter == 'show' && (
1209
+ <div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex ' : 'col-lg-3 d-flex'}>
1210
+ <Filter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
1211
+ </div>
1212
+ )}
1213
+ {fetchingtype == 'custom' && <>{cardsrender()}</>}
1214
+ {fetchingtype != 'custom' && cardsrender()}
1215
+ </div>
1216
+ )}
1217
+ </div>
1218
+ );
1219
+ };
1220
+ export default CardsSection;