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,718 @@
1
+ import React, { useEffect, useState, useContext } 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 '';
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, IKurlEndpoint, IKpublicKey } from '../../../../../Env';
10
+ import { IKImage } from 'imagekitio-react';
11
+
12
+ import { FaArrowAltCircleRight } from '@react-icons/all-files/fa/FaArrowAltCircleRight';
13
+ import { FaArrowAltCircleLeft } from '@react-icons/all-files/fa/FaArrowAltCircleLeft';
14
+ import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
15
+ import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
16
+
17
+ const CardsSectionwithfilter = (props) => {
18
+ const { ref, inView } = useInView();
19
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
20
+ const lang = props.actions.lang;
21
+ const langdetect = props.actions.langdetect;
22
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
23
+ const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
24
+ const routingcountext = props.actions.routingcountext;
25
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
26
+ const ProductFilterObjContext = props.actions.ProductFilterObjContext;
27
+ const setProductFilterObjContext = props.actions.setProductFilterObjContext;
28
+ const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
29
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
30
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
31
+ const fetchProductsQuery = props.actions.fetchProductsQuery;
32
+ const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
33
+ const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
34
+ const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
35
+ const setfetchingtype = props.actions.setfetchingtype;
36
+ const fetchingtype = props.actions.fetchingtype;
37
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
38
+ const actions = props.actions;
39
+ const [sectionproperties, setsectionproperties] = useState('');
40
+ const [imagesarray, setimagesarray] = useState([]);
41
+ const [cardsarray, setcardsarray] = useState([]);
42
+ const [productsCardsArray, setproductsCardsArray] = useState([]);
43
+ React.useEffect(() => {
44
+ if (inView) {
45
+ fetchProductsQuery.fetchNextPage();
46
+ }
47
+ }, [inView]);
48
+ const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '' });
49
+
50
+ useEffect(() => {
51
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
52
+ if (sectionitem.sectionid == props.sectionidprops) {
53
+ var secpropobj = {};
54
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
55
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
56
+ });
57
+ setsectionproperties({ ...secpropobj });
58
+
59
+ if (props.srcfromprops == 'GeneralProductsComponent') {
60
+ setfetchingtype('products');
61
+ setProductsFetchingTypeSectionObj({
62
+ productfetchingtype: 'Random',
63
+ collectionid: props.collectionidprops,
64
+ });
65
+ } else {
66
+ setfetchingtype(sectionitem.fetchingtype);
67
+ setProductsFetchingTypeSectionObj({
68
+ productfetchingtype: sectionitem.productsfetchingtype,
69
+ collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
70
+ });
71
+ }
72
+ }
73
+ });
74
+ }, [StatePagePropertiesContext]);
75
+ useEffect(() => {
76
+ if (sectionproperties.length != 0) {
77
+ if (cardsarray.length == 0) {
78
+ // if (fetchingtype == 'collections') {
79
+ if (fetchcollectionsQueryContext.isSuccess) {
80
+ collectioncardobjassigner(fetchcollectionsQueryContext.data.data.collections);
81
+ }
82
+ // } else if (fetchingtype == 'products') {
83
+ if (fetchProductsQuery.isSuccess) {
84
+ var allpagesarr = [];
85
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
86
+ allpagesarr.push(item);
87
+ });
88
+ productcardobjassigner(allpagesarr);
89
+ }
90
+ // }
91
+ }
92
+ }
93
+ }, [sectionproperties]);
94
+ useEffect(() => {
95
+ if (fetchingtype.length != 0) {
96
+ var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
97
+ // if (fetchingtype == 'collections') {
98
+ // tempFetchQueriesEngineContext.collections = true;
99
+ if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
100
+ setParentCollectionsForCollectionQueryArr('all');
101
+ } else {
102
+ setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
103
+ }
104
+ // }
105
+ // if (fetchingtype == 'products') {
106
+ var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
107
+ tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
108
+ tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
109
+ setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
110
+ // }
111
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
112
+ }
113
+ }, [fetchingtype, ProductsFetchingTypeSectionObj]);
114
+ useEffect(() => {
115
+ // if (fetchingtype == 'products') {
116
+ if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
117
+ var allpagesarr = [];
118
+ fetchProductsQuery?.data?.data?.products?.forEach((item) => {
119
+ allpagesarr.push(item);
120
+ });
121
+ productcardobjassigner(allpagesarr);
122
+ }
123
+ // }
124
+ }, [fetchProductsQuery.isSuccess, fetchProductsQuery.dataUpdatedAt, fetchProductsQuery.data, fetchcustomercartQueryContext.dataUpdatedAt]);
125
+ useEffect(() => {
126
+ if (fetchingtype == 'collections') {
127
+ if (fetchcollectionsQueryContext.isSuccess) {
128
+ collectioncardobjassigner(fetchcollectionsQueryContext.data.data.collections);
129
+ }
130
+ }
131
+ }, [fetchcollectionsQueryContext.isSuccess]);
132
+ useEffect(() => {
133
+ favassigner();
134
+ }, [favoriteprojectscountContext]);
135
+ const favassigner = () => {
136
+ // if (fetchingtype == 'products') {
137
+ if (productsCardsArray.length != 0) {
138
+ if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
139
+ var tempproductsCardsArray = [...productsCardsArray];
140
+ tempproductsCardsArray.forEach(function (arrayItem, arrayindex) {
141
+ arrayItem.IsFavExists = false;
142
+ });
143
+ tempproductsCardsArray.forEach(function (arrayItem, arrayindex) {
144
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
145
+ if (arrayItem.productid == favitem) {
146
+ arrayItem.IsFavExists = true;
147
+ }
148
+ });
149
+ });
150
+ setproductsCardsArray([...tempproductsCardsArray]);
151
+ }
152
+ }
153
+ // }
154
+ };
155
+ const productcardobjassigner = (fetchedarray) => {
156
+ var temparray = [];
157
+ fetchedarray.forEach(function (arrayItem, arrayindex) {
158
+ var cardobj = {
159
+ name: '',
160
+ image: '',
161
+ };
162
+ var itemquantity = 0;
163
+ if (langdetect == 'en') {
164
+ cardobj.name = arrayItem.productinfo.name_en;
165
+ } else {
166
+ cardobj.name = arrayItem.productinfo.name_ar;
167
+ }
168
+ if (langdetect == 'en') {
169
+ cardobj.description = arrayItem.productinfo.description_en;
170
+ } else {
171
+ cardobj.description = arrayItem.productinfo.description_ar;
172
+ }
173
+ if (arrayItem.productinfo.hasvariants == 0) {
174
+ fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
175
+ if (cartitem.productid == arrayItem.productinfo.productid) {
176
+ itemquantity = cartitem.quantity;
177
+ }
178
+ });
179
+ }
180
+ cardobj.image = arrayItem.productinfo.productmainimage;
181
+ cardobj.hassale = arrayItem.productinfo.hassale;
182
+ cardobj.productid = arrayItem.productinfo.productid;
183
+ cardobj.hasvariants = arrayItem.productinfo.hasvariants;
184
+ cardobj.description_en = arrayItem.productinfo.description_en;
185
+ cardobj.description_ar = arrayItem.productinfo.description_ar;
186
+ cardobj.defaultprice = arrayItem.productinfo.defaultprice;
187
+ cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
188
+ cardobj.productimages = arrayItem.productinfo.productimages;
189
+ cardobj.quantity = itemquantity;
190
+ cardobj.timestamp = arrayItem.productinfo.timestamp;
191
+
192
+ if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
193
+ favoriteprojectscountContext.forEach(function (favitem, favindex) {
194
+ if (arrayItem.productinfo.productid == favitem) {
195
+ cardobj.IsFavExists = true;
196
+ }
197
+ });
198
+ }
199
+
200
+ temparray.push(cardobj);
201
+ });
202
+
203
+ setproductsCardsArray([...temparray]);
204
+ };
205
+ const collectioncardobjassigner = (fetchedarray) => {
206
+ var temparray = [];
207
+ fetchedarray.forEach(function (arrayItem, arrayindex) {
208
+ var cardobj = {
209
+ name: '',
210
+ image: '',
211
+ };
212
+
213
+ cardobj.collectionid = arrayItem.collectionid;
214
+ if (langdetect == 'en') {
215
+ cardobj.name = arrayItem.title_en;
216
+ cardobj.description = arrayItem.description_en;
217
+ } else if (langdetect == 'ar') {
218
+ cardobj.name = arrayItem.title_ar;
219
+ cardobj.description = arrayItem.description_ar;
220
+ }
221
+ cardobj.image = arrayItem.collectionlogo;
222
+
223
+ temparray.push(cardobj);
224
+ });
225
+
226
+ setcardsarray([...temparray]);
227
+ };
228
+ useEffect(() => {
229
+ if (sectionproperties.length != 0) {
230
+ if (sectionproperties.bgsection_imagearrayofobjs != null) {
231
+ var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
232
+ if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
233
+ setimagesarray([...bgsection_imagearrayofobjsparsed]);
234
+ }
235
+ }
236
+ }
237
+ }, [sectionproperties]);
238
+ const section_cssstyles = {
239
+ sectiontitlespan: css({
240
+ ':after': {
241
+ height: '5px',
242
+ width: sectionproperties.sectitle_lineafterwidth + '%',
243
+ backgroundColor: sectionproperties.linebgcolor,
244
+ },
245
+ }),
246
+ line_left: css({
247
+ height: '1px',
248
+ position: 'relative',
249
+ flex: '1 1 auto',
250
+ minWidth: '10%',
251
+ background: sectionproperties.linebgcolor,
252
+ }),
253
+ line_right: css({
254
+ height: '1px',
255
+ position: 'relative',
256
+ flex: '1 1 auto',
257
+ minWidth: '10%',
258
+ background: sectionproperties.linebgcolor,
259
+ }),
260
+ cards_sections: css({
261
+ marginTop: sectionproperties.marginTop + 'px',
262
+ marginBottom: sectionproperties.marginBottom + 'px',
263
+ paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
264
+ paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
265
+ paddingTop: sectionproperties.paddingTop + 'px',
266
+ paddingBottom: sectionproperties.paddingBottom + 'px',
267
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
268
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
269
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
270
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
271
+ boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
272
+ borderColor: sectionproperties.sectioncardbordercolor,
273
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
274
+ }),
275
+ filterbtn: css({
276
+ width: sectionproperties.filterbtn_Width + 'px',
277
+ height: sectionproperties.filterbtn_Height + 'px',
278
+ background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
279
+ borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
280
+ borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
281
+ borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
282
+ borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
283
+ color: sectionproperties.filterbtn_Textcolor,
284
+ boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
285
+ marginTop: sectionproperties.filterbtn_marginTop + 'px',
286
+ marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
287
+ marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
288
+ marginRight: sectionproperties.filterbtn_marginRight + 'px',
289
+ transition: '.3s',
290
+ ':hover': {
291
+ background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
292
+ color: sectionproperties.filterbtn_Textcoloronhover,
293
+ },
294
+ }),
295
+ viewmorebtn: css({
296
+ width: sectionproperties.viewmorebtn_Width + 'px',
297
+ height: sectionproperties.viewmorebtn_Height + 'px',
298
+ background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
299
+ borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
300
+ color: sectionproperties.viewmorebtn_Textcolor,
301
+ fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
302
+ fontWeight: sectionproperties.viewmorebtn_fontWeight,
303
+ textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'underline' : 'none',
304
+ transition: '.3s',
305
+ ':hover': {
306
+ background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
307
+ color: sectionproperties.viewmorebtn_Textcoloronhover,
308
+ },
309
+ }),
310
+ loadbtn: css({
311
+ fontSize: sectionproperties.generaltext_fontSize + 'px',
312
+ color: sectionproperties.generaltext_fontColor,
313
+ fontWeight: sectionproperties.generaltext_fontWeight,
314
+ textDecoration: 'underline',
315
+ transition: '.3s',
316
+ ':hover': {
317
+ color: sectionproperties.text_secondarycolor,
318
+ },
319
+ }),
320
+ filtersection: css({
321
+ zIndex: 1000,
322
+ position: 'relative',
323
+ backgroundColor: sectionproperties.filter_backgroundtransparent == 'Transparent' ? 'transparent' : sectionproperties.filter_backgroundcolor,
324
+ borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.filter_borderBottomLeftRadius + 'px' : sectionproperties.filter_borderBottomRightRadius + 'px',
325
+ borderBottomRightRadius: langdetect == 'en' ? sectionproperties.filter_borderBottomRightRadius + 'px' : sectionproperties.filter_borderBottomLeftRadius + 'px',
326
+ borderTopLeftRadius: langdetect == 'en' ? sectionproperties.filter_borderTopLeftRadius + 'px' : sectionproperties.filter_borderTopRightRadius + 'px',
327
+ borderTopRightRadius: langdetect == 'en' ? sectionproperties.filter_borderTopRightRadius + 'px' : sectionproperties.filter_borderTopLeftRadius + 'px',
328
+ border: sectionproperties.filter_borderwidth + 'px solid ' + sectionproperties.filter_bordercolor,
329
+ padding: '10px',
330
+ marginTop: sectionproperties.filtersection_mt + 'px',
331
+ }),
332
+ filteroption: css({
333
+ color: sectionproperties.timeline_text_color,
334
+ fontSize: sectionproperties.timeline_text_fontsize + 'px',
335
+ fontWeight: sectionproperties.timeline_text_fontweight,
336
+ textTransform: sectionproperties.timeline_text_texttransform,
337
+ transition: '.3s',
338
+ ':hover': {
339
+ color: sectionproperties.timeline_text_coloronhover,
340
+ },
341
+ }),
342
+ };
343
+ const cardsrender = () => {
344
+ return (
345
+ <div class={sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical' ? 'col-lg-9 p-sm-0' : 'row m-0 w-100'}>
346
+ {sectionproperties.length != 0 && (
347
+ <div className="row m-0 w-100 d-flex align-items-center p-sm-0">
348
+ <div
349
+ className="row ml-0 mr-0 w-100 pl-md-2 pr-md-2 pl-sm-2 pr-sm-2"
350
+ style={{
351
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
352
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
353
+ paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
354
+ paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
355
+ }}
356
+ >
357
+ <div
358
+ class={
359
+ sectionproperties.viewmorebtnshow == 'Show'
360
+ ? sectionproperties.sectiontitleposition == 'Centered'
361
+ ? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
362
+ : ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
363
+ : sectionproperties.showFilter == 'show'
364
+ ? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
365
+ : ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
366
+ }
367
+ >
368
+ <div class="row m-0 w-100">
369
+ {sectionproperties.sectiontitleshow == 'Show' && (
370
+ <div
371
+ class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex align-items-center '}
372
+ style={{
373
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
374
+ }}
375
+ >
376
+ <div
377
+ class="d-flex align-items-center flex-row"
378
+ style={{
379
+ position: 'relative',
380
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
381
+ width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
382
+ }}
383
+ >
384
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
385
+ <p
386
+ class={
387
+ // font-sm-18 font-md-20
388
+ sectionproperties.sectiontitlefontfamily == 'Pacifico'
389
+ ? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
390
+ : sectionproperties.sectiontitlefontfamily == 'Playfair'
391
+ ? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
392
+ : sectionproperties.sectiontitlefontfamily == 'Great Vibes'
393
+ ? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
394
+ : sectionproperties.sectiontitlefontfamily == 'Quicksand'
395
+ ? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
396
+ : sectionproperties.sectiontitlefontfamily == 'Satisfy'
397
+ ? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
398
+ : `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
399
+ }
400
+ style={{
401
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
402
+ color: sectionproperties.sectionTitleColor,
403
+ fontWeight: sectionproperties.sectionTitleFontWeight,
404
+ paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
405
+ paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
406
+ textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
407
+ }}
408
+ >
409
+ {langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
410
+ </p>
411
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
412
+ </div>
413
+ </div>
414
+ )}
415
+ {sectionproperties.prodCatShow == 'Show' && (
416
+ <div
417
+ class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '}
418
+ style={{
419
+ justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
420
+ marginBottom: sectionproperties.descriptionMarginBottom + 'px',
421
+ paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
422
+ paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
423
+ }}
424
+ >
425
+ <p
426
+ class={
427
+ sectionproperties.descFontFamily == 'Pacifico'
428
+ ? ' PacificoFont m-0 p-0 wordbreak '
429
+ : sectionproperties.descFontFamily == 'Playfair'
430
+ ? ' PlayfairFont m-0 p-0 wordbreak '
431
+ : sectionproperties.descFontFamily == 'Great Vibes'
432
+ ? ' GreatvibesFont m-0 p-0 wordbreak '
433
+ : sectionproperties.descFontFamily == 'Quicksand'
434
+ ? ' QuicksandFont m-0 p-0 wordbreak'
435
+ : ' m-0 p-0 wordbreak'
436
+ }
437
+ style={{
438
+ fontSize: sectionproperties.prodCatFontSize + 'px',
439
+ color: sectionproperties.prodCatColor,
440
+ fontWeight: sectionproperties.prodCatFontWeight,
441
+ textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
442
+ }}
443
+ >
444
+ {langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
445
+ </p>
446
+ </div>
447
+ )}
448
+ </div>
449
+ </div>
450
+ {/* <div class="col-lg-12">
451
+ <Filter2 />
452
+ </div> */}
453
+ <div
454
+ class={
455
+ sectionproperties.sectiontitleposition == 'Centered'
456
+ ? 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
457
+ : 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
458
+ }
459
+ style={{
460
+ marginTop: sectionproperties.sectiontitleposition == 'Centered' ? '10px' : 0,
461
+ }}
462
+ >
463
+ <div
464
+ class={
465
+ sectionproperties.sectiontitleposition == 'Centered'
466
+ ? ' row m-0 w-100 d-flex align-item-center justify-content-center '
467
+ : ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
468
+ }
469
+ >
470
+ {/* sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && */}
471
+ {sectionproperties.viewmorebtnshow == 'Show' && (
472
+ <button
473
+ class={
474
+ sectionproperties.sectiontitleposition == 'Centered'
475
+ ? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
476
+ : `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
477
+ }
478
+ onClick={() => {
479
+ if (fetchingtype == 'products') {
480
+ if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
481
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
482
+ } else {
483
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
484
+ }
485
+ } else {
486
+ routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
487
+ }
488
+ }}
489
+ >
490
+ <span
491
+ class={
492
+ sectionproperties.sectiontitleposition == 'Centered'
493
+ ? 'd-flex justify-content-center align-items-center'
494
+ : 'd-flex justify-content-center align-items-center d-md-none'
495
+ }
496
+ >
497
+ {langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
498
+ </span>
499
+ <span
500
+ class={
501
+ sectionproperties.sectiontitleposition == 'Centered'
502
+ ? 'd-none align-items-center justify-content-center'
503
+ : 'd-none d-md-flex align-items-center justify-content-center'
504
+ }
505
+ >
506
+ <i class="h-100 d-flex align-items-center justify-content-center">{langdetect == 'en' ? <FaArrowAltCircleRight /> : <FaArrowAltCircleLeft />}</i>
507
+ </span>
508
+ </button>
509
+ )}
510
+ {sectionproperties.showFilter == 'show' && (
511
+ <button
512
+ class={
513
+ sectionproperties.searchbar_show == 'Show'
514
+ ? ' col-lg-3 col-md-3 pl-0 pr-0 d-none d-md-flex justify-content-end ml-1 '
515
+ : ' col-lg-12 col-sm-12 pl-0 pr-0 d-none d-md-flex justify-content-end ml-1 '
516
+ }
517
+ onClick={() => {
518
+ var element = document.getElementById('filterslider');
519
+ element.classList.add(filterstyles.filterslider_container_opened);
520
+ }}
521
+ >
522
+ <div class={`${section_cssstyles.filterbtn}`}>
523
+ <i class="h-100 d-flex align-items-center justify-content-center">
524
+ <FiFilter />
525
+ </i>
526
+ </div>
527
+ </button>
528
+ )}
529
+ </div>
530
+ </div>
531
+ {sectionproperties.showseparator == 'Show' && (
532
+ <div class="col-lg-12 p-0">
533
+ <hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
534
+ </div>
535
+ )}
536
+ </div>
537
+ {!fetchProductsQuery.isFetching && cardsarray.length == 0 && (
538
+ <div className="row m-0 w-100 d-flex align-items-center" style={{ height: '20vh' }}>
539
+ <div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
540
+ <FiLayers
541
+ style={{
542
+ fontSize: sectionproperties.noprod_iconfontSize + 'px',
543
+ color: sectionproperties.noprod_iconcolor,
544
+ }}
545
+ />
546
+ <p
547
+ style={{
548
+ fontSize: sectionproperties.noprod_fontSize + 'px',
549
+ fontWeight: sectionproperties.noprod_fontWeight,
550
+ textTransform: sectionproperties.noprod_textTransform,
551
+ color: sectionproperties.noprod_color,
552
+ }}
553
+ >
554
+ {langdetect == 'en' ? 'No Products Found' : 'لا توجد منتجات'}
555
+ </p>
556
+ </div>
557
+ </div>
558
+ )}
559
+ {productsCardsArray.length != 0 && (
560
+ <div class="col-lg-12 p-0">
561
+ {StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
562
+ if (item.tabexsectioninfo != null) {
563
+ if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
564
+ var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
565
+ return (
566
+ <div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 p-md-0 '}>
567
+ <div class={langdetect == 'en' ? 'col-lg-12 p-0 pl-sm-2' : 'col-lg-12 p-0 pr-sm-2'}>
568
+ <ScrollMenu
569
+ transitionBehavior={'auto'}
570
+ wrapperClassName={''}
571
+ itemClassName={
572
+ item.tabexsectioninfo.sectioncompname == 'Productcard6'
573
+ ? 'scrollmenuclassnameitemProductcard6'
574
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
575
+ ? 'scrollmenuclassnameitemProductcard_with_circularhover'
576
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
577
+ ? 'scrollmenuclassnameitemProductcard_with_circularbg'
578
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
579
+ ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
580
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
581
+ ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
582
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
583
+ ? 'scrollmenuclassnameitemCategorycard_withtext'
584
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
585
+ ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
586
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
587
+ ? 'scrollmenuclassnameitemProductcard_with_variants'
588
+ : item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
589
+ ? 'scrollmenuclassnameitemProductcarddefault'
590
+ : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
591
+ ? 'scrollmenuclassnameitemSimpleproductcard'
592
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
593
+ ? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
594
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
595
+ ? 'scrollmenuclassnameitemProductcard_with_textonhover'
596
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
597
+ ? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
598
+ : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
599
+ ? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
600
+ : item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
601
+ ? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
602
+ : item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
603
+ ? 'scrollmenuclassnameitemProductcard_Horizontalcard'
604
+ : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
605
+ ? 'scrollmenuclassnameitemCategorycard_fullimage'
606
+ : // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
607
+ // ? 'scrollmenuclassnameitemClassiccategorycard'
608
+ item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
609
+ ? 'scrollmenuclassnameitemModernProductCard'
610
+ : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
611
+ ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
612
+ : item.tabexsectioninfo.sectioncompname == 'Productcard7'
613
+ ? 'scrollmenuclassnameitemProductcard7'
614
+ : item.tabexsectioninfo.sectioncompname == 'MenuCard'
615
+ ? 'scrollmenuclassnameitemMenuCard'
616
+ : item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
617
+ ? 'scrollmenuclassnameitemStylishProductCard'
618
+ : item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
619
+ ? 'scrollmenuclassnameitemProductCardWithTextOnImage'
620
+ : item.tabexsectioninfo.sectioncompname == 'Card23'
621
+ ? 'scrollmenuclassnameitemCard23'
622
+ : item.tabexsectioninfo.sectioncompname == 'Card20'
623
+ ? 'scrollmenuclassnameitemCard20'
624
+ : item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
625
+ ? 'scrollmenuclassnameitemModernCardWithQuantityButton'
626
+ : ''
627
+ }
628
+ scrollContainerClassName={'scrollmenuclasssubscrollbar'}
629
+ >
630
+ {productsCardsArray.map((cardinfoitem, cardinfoindex) => {
631
+ return (
632
+ <div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
633
+ <Sectioncomp
634
+ sectiontypeprops={'horizontal'}
635
+ fetchingtypeprops={'products'}
636
+ cardinfoindexprops={cardinfoindex}
637
+ cardinfoitemprops={cardinfoitem}
638
+ sectionindexprops={index}
639
+ sectionidprops={item.sectionid}
640
+ actions={actions}
641
+ />
642
+ </div>
643
+ );
644
+ })}
645
+ {fetchProductsQuery.isFetchingNextPage && (
646
+ <button
647
+ className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
648
+ ref={ref}
649
+ onClick={() => fetchProductsQuery.fetchNextPage()}
650
+ disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
651
+ >
652
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
653
+ </button>
654
+ )}
655
+ </ScrollMenu>
656
+ </div>
657
+ </div>
658
+ );
659
+ }
660
+ }
661
+ })}
662
+ </div>
663
+ )}
664
+ </div>
665
+ )}
666
+ </div>
667
+ );
668
+ };
669
+ return (
670
+ <div class={' row m-0 d-flex w-100 justify-content-center '}>
671
+ {sectionproperties.length != 0 && (
672
+ <div class={' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}>
673
+ <div class="col-lg-3">
674
+ <div
675
+ style={{
676
+ position: 'absolute',
677
+ zIndex: 1,
678
+ }}
679
+ >
680
+ <IKImage
681
+ urlEndpoint={IKurlEndpoint}
682
+ publicKey={IKpublicKey}
683
+ path={imagesarray.length != 0 ? (langdetect == 'en' ? imagesarray[0].bgsection_image : imagesarray[0].bgsection_image_ar) : ''}
684
+ style={{
685
+ height: '100%',
686
+ width: '100%',
687
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
688
+ }}
689
+ />
690
+ </div>
691
+ <div class={section_cssstyles.filtersection}>
692
+ {cardsarray.map((item, index) => {
693
+ return (
694
+ <button
695
+ class={section_cssstyles.filteroption}
696
+ style={{
697
+ cursor: 'pointer',
698
+ marginBottom: '5px',
699
+ marginRight: '5px',
700
+ marginLeft: '5px',
701
+ }}
702
+ onClick={() => {
703
+ alert('hh0');
704
+ }}
705
+ >
706
+ <p>{item.name}</p>
707
+ </button>
708
+ );
709
+ })}
710
+ </div>
711
+ </div>
712
+ <div class="col-lg-9">{cardsrender()}</div>
713
+ </div>
714
+ )}
715
+ </div>
716
+ );
717
+ };
718
+ export default CardsSectionwithfilter;