tabexseriescomponents 0.0.71 → 0.0.73

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 (386) hide show
  1. package/dist/index.cjs.js +420 -218
  2. package/dist/index.esm.js +421 -219
  3. package/dist/index.umd.js +420 -218
  4. package/package.json +1 -1
  5. package/src-aya/Contexts/LanguageContext.jsx +369 -0
  6. package/{src1-10 → src-aya}/Contexts/ProductsCardsSectionContext.jsx +0 -0
  7. package/{src1-10 → src-aya}/StylesJS/Customstyles.js +0 -0
  8. package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +288 -0
  9. package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +386 -0
  10. package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +289 -0
  11. package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +355 -0
  12. package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +393 -0
  13. package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +168 -0
  14. package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +243 -0
  15. package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +202 -0
  16. package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +174 -0
  17. package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +182 -0
  18. package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +158 -0
  19. package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +189 -0
  20. package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +150 -0
  21. package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  22. package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +538 -0
  23. package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +491 -0
  24. package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +469 -0
  25. package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
  26. package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +272 -0
  27. package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +295 -0
  28. package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +289 -0
  29. package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
  30. package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +288 -0
  31. package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +328 -0
  32. package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +509 -0
  33. package/{src1-10 → src-aya}/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +2 -2
  34. package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  35. package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +133 -0
  36. package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +125 -0
  37. package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  38. package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +336 -0
  39. package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +429 -0
  40. package/{src1-10 → src-aya}/TabexComponents/Footer/Footer1/Footer1.jsx +21 -23
  41. package/{src1-10 → src-aya}/TabexComponents/Footer/Footer2/Footer2.jsx +6 -6
  42. package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +302 -0
  43. package/{src1-10 → src-aya}/TabexComponents/Footer/Footer4/Footer4.jsx +8 -8
  44. package/{src1-10 → src-aya}/TabexComponents/Footer/Footer5/Footer5.jsx +8 -8
  45. package/{src1-10 → src-aya}/TabexComponents/Footer/Footer6/Footer6.jsx +4 -4
  46. package/{src1-10 → src-aya}/TabexComponents/Footer/Footer7/Footer7.jsx +5 -5
  47. package/{src1-10 → src-aya}/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +2 -2
  48. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  49. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/noimage.png +0 -0
  50. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  51. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  52. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  53. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  54. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  55. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  56. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  57. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  58. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  59. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/usflag.png +0 -0
  60. package/{src1-10 → src-aya}/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  61. package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +822 -0
  62. package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +841 -0
  63. package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +677 -0
  64. package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +707 -0
  65. package/{src1-10 → src-aya}/TabexComponents/Headers/Header4/Header4.jsx +0 -0
  66. package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +631 -0
  67. package/{src1-10 → src-aya}/TabexComponents/Headers/Header8/Header8.jsx +103 -176
  68. package/{src1-10 → src-aya}/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +105 -106
  69. package/{src1-10 → src-aya}/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +99 -98
  70. package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +669 -0
  71. package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +919 -0
  72. package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +687 -0
  73. package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +813 -0
  74. package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +248 -0
  75. package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +926 -0
  76. package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +168 -0
  77. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +346 -0
  78. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +304 -0
  79. package/{src1-10 → src-aya}/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -0
  80. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +271 -0
  81. package/{src1-10 → src-aya}/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +2 -1
  82. package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +200 -0
  83. package/{src1-10 → src-aya}/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -0
  84. package/{src1-10 → src-aya}/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -0
  85. package/{src1-10 → src-aya}/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -0
  86. package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +768 -0
  87. package/{src1-10 → src-aya}/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +1 -4
  88. package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +663 -0
  89. package/{src1-10 → src-aya}/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -0
  90. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +94 -0
  91. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +741 -0
  92. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +430 -0
  93. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
  94. package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +473 -0
  95. package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +523 -0
  96. package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +502 -0
  97. package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +276 -0
  98. package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +160 -0
  99. package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +176 -0
  100. package/{src1-10 → src-aya}/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +1 -1
  101. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +140 -0
  102. package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +201 -0
  103. package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +125 -0
  104. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
  105. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
  106. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +139 -0
  107. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +215 -0
  108. package/{src1-10 → src-aya}/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +6 -1
  109. package/{src1-10 → src-aya}/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -0
  110. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +277 -0
  111. package/{src1-10 → src-aya}/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -0
  112. package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +458 -0
  113. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -0
  114. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -0
  115. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Filter/Filter.jsx +0 -0
  116. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -0
  117. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -0
  118. package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +283 -0
  119. package/{src1-10 → src-aya}/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -0
  120. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -0
  121. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Policies/Policies.jsx +0 -0
  122. package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +1287 -0
  123. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +710 -0
  124. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +3 -2
  125. package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +804 -0
  126. package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +206 -0
  127. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +15 -0
  128. package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +155 -0
  129. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -6
  130. package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +1048 -0
  131. package/{src1-10 → src-aya}/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -0
  132. package/src-aya/assets/images/appstore.png +0 -0
  133. package/{src1-10 → src-aya}/assets/images/cod.png +0 -0
  134. package/{src1-10 → src-aya}/assets/images/egyptflag.png +0 -0
  135. package/{src1-10 → src-aya}/assets/images/fawry.png +0 -0
  136. package/src-aya/assets/images/googleplay.png +0 -0
  137. package/{src1-10 → src-aya}/assets/images/payment.png +0 -0
  138. package/{src1-10 → src-aya}/assets/images/paymob.png +0 -0
  139. package/{src1-10 → src-aya}/assets/images/paypal.png +0 -0
  140. package/{src1-10 → src-aya}/assets/images/shoppingcart.png +0 -0
  141. package/{src1-10 → src-aya}/assets/images/usflag.png +0 -0
  142. package/{src1-10 → src-aya}/assets/images/visa.png +0 -0
  143. package/{src1-10 → src-aya}/assets/images/whatsapp.png +0 -0
  144. package/{src1-10 → src-aya}/button.jsx +0 -0
  145. package/src-aya/index.jsx +222 -0
  146. package/{src1-10 → src-aya}/styles/Home.module.css +0 -0
  147. package/{src1-10 → src-aya}/styles/cards/Categorcycard_fullimage.module.css +0 -0
  148. package/{src1-10 → src-aya}/styles/cards/Categorycard_slidebgscaled.module.css +0 -0
  149. package/{src1-10 → src-aya}/styles/cards/Categorycard_withshapes.module.css +0 -0
  150. package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +34 -0
  151. package/{src1-10 → src-aya}/styles/cards/Productcard6.module.css +0 -0
  152. package/{src1-10 → src-aya}/styles/cards/Productcard_with_circularbg.module.css +0 -0
  153. package/{src1-10 → src-aya}/styles/cards/Productccard_with_zoominonhover.module.css +0 -0
  154. package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  155. package/src-aya/styles/cards/categorycard.module.css +85 -0
  156. package/src-aya/styles/cards/categorycard3.module.css +50 -0
  157. package/{src1-10 → src-aya}/styles/cards/categorycardwithtext.module.css +0 -0
  158. package/src-aya/styles/cards/productcard_animatedbuttons.module.css +127 -0
  159. package/{src1-10 → src-aya}/styles/cards/productcard_with_textonhover.module.css +0 -0
  160. package/{src1-10 → src-aya}/styles/cards/productccard_with_imageontopleft.module.css +0 -0
  161. package/src-aya/styles/general/bootstrap.css +4562 -0
  162. package/src-aya/styles/general/dropdown.css +206 -0
  163. package/{src1-10 → src-aya}/styles/general/editorbardropdown.module.css +0 -0
  164. package/{src1-10 → src-aya}/styles/general/filter.module.css +0 -0
  165. package/{src1-10 → src-aya}/styles/general/form.module.css +0 -0
  166. package/{src1-10 → src-aya}/styles/general/general.module.css +0 -0
  167. package/{src1-10 → src-aya}/styles/general/image-gallery.css +0 -0
  168. package/{src1-10 → src-aya}/styles/general/react-accessible-accordion.module.css +0 -0
  169. package/{src1-10 → src-aya}/styles/general/react-phone-input-2.module.css +0 -0
  170. package/{src1-10 → src-aya}/styles/general/scrollbtn.module.css +0 -0
  171. package/{src1-10 → src-aya}/styles/general/slick.module.css +0 -0
  172. package/{src1-10 → src-aya}/styles/general/tabs.module.css +0 -0
  173. package/{src1-10 → src-aya}/styles/general/workplaceeditor.module.css +0 -0
  174. package/{src1-10 → src-aya}/styles/globals.css +0 -0
  175. package/src-aya/styles/headers/CTAHeader.module.css +40 -0
  176. package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +61 -0
  177. package/{src1-10/styles/headers/Allinoneheader.module.css → src-aya/styles/headers/Gotoheader.module.css} +0 -0
  178. package/{src1-10 → src-aya}/styles/headers/Header7.module.css +0 -0
  179. package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +96 -0
  180. package/{src1-10 → src-aya}/styles/headers/Sideheader.module.css +0 -0
  181. package/src-aya/styles/headers/classicheader.module.css +16 -0
  182. package/{src1-10 → src-aya}/styles/headers/classicheaderstyles.module.css +0 -0
  183. package/{src1-10 → src-aya}/styles/headers/dropdown.css +0 -0
  184. package/{src1-10 → src-aya}/styles/headers/header4.module.css +0 -0
  185. package/{src1-10 → src-aya}/styles/headers/header5.module.css +0 -0
  186. package/src-aya/styles/headers/header6.module.css +102 -0
  187. package/src-aya/styles/headers/header_contactinfo.module.css +66 -0
  188. package/{src1-10 → src-aya}/styles/headers/headerresturant.module.css +0 -0
  189. package/src-aya/styles/headers/modernheader.module.css +72 -0
  190. package/{src1-10/styles/headers/headerstyles.module.css → src-aya/styles/headers/stylishheader.module.css} +0 -0
  191. package/{src1-10 → src-aya}/styles/headers/subheader.module.css +0 -0
  192. package/src-aya/styles/headers/threetieredheader.module.css +91 -0
  193. package/src-aya/styles/sections/BackgroundImageWithTopContent.css +4 -0
  194. package/{src1-10 → src-aya}/styles/sections/Backgroundimage1.module.css +0 -0
  195. package/{src1-10 → src-aya}/styles/sections/Backgroundimage_with_topcircle.module.css +0 -0
  196. package/{src1-10 → src-aya}/styles/sections/Section_with_rightbgcont.module.css +0 -0
  197. package/{src1-10 → src-aya}/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -0
  198. package/{src1-10 → src-aya}/styles/sections/Slideshow_with_squarebg.module.css +0 -0
  199. package/{src1-10 → src-aya}/styles/staticpages/accordion.module.css +0 -0
  200. package/{src1-10 → src-aya}/styles/staticpages/cart.module.css +0 -0
  201. package/{src1-10 → src-aya}/styles/staticpages/dropdown.css +0 -0
  202. package/{src1-10 → src-aya}/styles/staticpages/filter.module.css +0 -0
  203. package/src-aya/styles/staticpages/image-gallery.css +481 -0
  204. package/src-aya/styles/staticpages/login.module.css +113 -0
  205. package/{src1-10 → src-aya}/styles/staticpages/productinfo.module.css +0 -0
  206. package/{src1-10 → src-aya}/styles/staticpages/shop.module.css +0 -0
  207. package/src-aya/styles/staticpages/signup.module.css +206 -0
  208. package/{src1-10 → src-aya}/styles/staticpages/staticroutersidenav.module.css +0 -0
  209. package/{src1-10 → src-aya}/styles/staticpages/viewcart.module.css +0 -0
  210. package/{src1-10 → src-aya}/styles/staticpages/wishlist.module.css +0 -0
  211. package/src-aya/styles.rar +0 -0
  212. package/{src1-10 → srcOLD}/Contexts/LanguageContext.jsx +0 -0
  213. package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +28 -0
  214. package/srcOLD/StylesJS/Customstyles.js +235 -0
  215. package/{src1-10 → srcOLD}/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +9 -0
  216. package/{src1-10 → srcOLD}/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +19 -0
  217. package/{src1-10 → srcOLD}/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +8 -0
  218. package/{src1-10 → srcOLD}/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +7 -0
  219. package/{src1-10 → srcOLD}/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +72 -45
  220. package/{src1-10 → srcOLD}/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -0
  221. package/{src1-10 → srcOLD}/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +9 -0
  222. package/{src1-10 → srcOLD}/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +9 -0
  223. package/{src1-10 → srcOLD}/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +15 -0
  224. package/{src1-10 → srcOLD}/TabexComponents/Cards/MenuCard/MenuCard.jsx +12 -0
  225. package/{src1-10 → srcOLD}/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +12 -0
  226. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard6/Productcard6.jsx +10 -0
  227. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard7/Productcard7.jsx +10 -0
  228. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +14 -0
  229. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +17 -0
  230. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +14 -1
  231. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +11 -0
  232. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +10 -0
  233. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +10 -0
  234. package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +282 -0
  235. package/{src1-10 → srcOLD}/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +12 -0
  236. package/{src1-10 → srcOLD}/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +12 -0
  237. package/{src1-10 → srcOLD}/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +9 -0
  238. package/{src1-10 → srcOLD}/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +15 -3
  239. package/{src1-10 → srcOLD}/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +11 -1
  240. package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  241. package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +382 -0
  242. package/{src1-10 → srcOLD}/TabexComponents/Footer/Footer3/Footer3.jsx +6 -14
  243. package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +438 -0
  244. package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +495 -0
  245. package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +295 -0
  246. package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +373 -0
  247. package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +238 -0
  248. package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  249. package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
  250. package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  251. package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  252. package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  253. package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  254. package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  255. package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  256. package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  257. package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  258. package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  259. package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
  260. package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  261. package/{src1-10 → srcOLD}/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +99 -97
  262. package/{src1-10 → srcOLD}/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +80 -74
  263. package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +632 -0
  264. package/{src1-10 → srcOLD}/TabexComponents/Headers/Header6/Header6.jsx +76 -73
  265. package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +882 -0
  266. package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +754 -0
  267. package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +798 -0
  268. package/{src1-10 → srcOLD}/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +23 -3
  269. package/{src1-10 → srcOLD}/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +114 -116
  270. package/{src1-10 → srcOLD}/TabexComponents/Headers/Modernheader/Modernheader.jsx +92 -100
  271. package/{src1-10 → srcOLD}/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +98 -110
  272. package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +228 -0
  273. package/{src1-10 → srcOLD}/TabexComponents/Headers/Subheader/Subheader.jsx +22 -10
  274. package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  275. package/{src1-10 → srcOLD}/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -0
  276. package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +138 -0
  277. package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +160 -0
  278. package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  279. package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +784 -0
  280. package/{src1-10 → srcOLD}/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +75 -7
  281. package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +496 -0
  282. package/{src1-10 → srcOLD}/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -0
  283. package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  284. package/{src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx → srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js} +74 -34
  285. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -0
  286. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -0
  287. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -0
  288. package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +284 -0
  289. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -0
  290. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -0
  291. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -0
  292. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -0
  293. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -0
  294. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -0
  295. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +8 -0
  296. package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +414 -0
  297. package/{src1-10 → srcOLD}/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +53 -92
  298. package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +175 -0
  299. package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +275 -0
  300. package/{src1-10 → srcOLD}/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -0
  301. package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +146 -0
  302. package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  303. package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  304. package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  305. package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  306. package/{src1-10 → srcOLD}/TabexComponents/StaticPages/Login/Login.jsx +0 -0
  307. package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  308. package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1285 -0
  309. package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +358 -0
  310. package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1506 -0
  311. package/{src1-10 → srcOLD}/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +16 -0
  312. package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +788 -0
  313. package/{src1-10 → srcOLD}/TabexComponents/StaticPages/Signup/Signup.jsx +0 -0
  314. package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +295 -0
  315. package/{src1-10 → srcOLD}/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -0
  316. package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +629 -0
  317. package/srcOLD/assets/images/cod.png +0 -0
  318. package/srcOLD/assets/images/egyptflag.png +0 -0
  319. package/srcOLD/assets/images/fawry.png +0 -0
  320. package/srcOLD/assets/images/payment.png +0 -0
  321. package/srcOLD/assets/images/paymob.png +0 -0
  322. package/srcOLD/assets/images/paypal.png +0 -0
  323. package/srcOLD/assets/images/shoppingcart.png +0 -0
  324. package/srcOLD/assets/images/usflag.png +0 -0
  325. package/srcOLD/assets/images/visa.png +0 -0
  326. package/srcOLD/assets/images/whatsapp.png +0 -0
  327. package/srcOLD/button.jsx +40 -0
  328. package/{src1-10 → srcOLD}/index.jsx +2 -6
  329. package/srcOLD/styles/Home.module.css +129 -0
  330. package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +10 -0
  331. package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  332. package/srcOLD/styles/cards/Categorycard_withshapes.module.css +189 -0
  333. package/srcOLD/styles/cards/Productcard6.module.css +9 -0
  334. package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +137 -0
  335. package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  336. package/{src1-10 → srcOLD}/styles/cards/Prouductcard_with_zoomhover.module.css +0 -0
  337. package/{src1-10 → srcOLD}/styles/cards/categorycard.module.css +0 -0
  338. package/{src1-10 → srcOLD}/styles/cards/categorycard3.module.css +0 -0
  339. package/srcOLD/styles/cards/categorycardwithtext.module.css +40 -0
  340. package/{src1-10 → srcOLD}/styles/cards/productcard_animatedbuttons.module.css +0 -0
  341. package/srcOLD/styles/cards/productcard_with_textonhover.module.css +12 -0
  342. package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  343. package/{src1-10 → srcOLD}/styles/general/bootstrap.css +73 -68
  344. package/{src1-10 → srcOLD}/styles/general/dropdown.css +0 -0
  345. package/srcOLD/styles/general/editorbardropdown.module.css +94 -0
  346. package/srcOLD/styles/general/filter.module.css +108 -0
  347. package/srcOLD/styles/general/form.module.css +273 -0
  348. package/srcOLD/styles/general/general.module.css +709 -0
  349. package/srcOLD/styles/general/image-gallery.css +481 -0
  350. package/srcOLD/styles/general/react-accessible-accordion.module.css +52 -0
  351. package/srcOLD/styles/general/react-phone-input-2.module.css +927 -0
  352. package/srcOLD/styles/general/scrollbtn.module.css +22 -0
  353. package/srcOLD/styles/general/slick.module.css +166 -0
  354. package/srcOLD/styles/general/tabs.module.css +110 -0
  355. package/srcOLD/styles/general/workplaceeditor.module.css +328 -0
  356. package/srcOLD/styles/globals.css +26 -0
  357. package/srcOLD/styles/headers/Allinoneheader.module.css +91 -0
  358. package/srcOLD/styles/headers/Header7.module.css +50 -0
  359. package/{src1-10 → srcOLD}/styles/headers/Header_threesectionslogocentered.module.css +0 -0
  360. package/srcOLD/styles/headers/Sideheader.module.css +108 -0
  361. package/srcOLD/styles/headers/classicheaderstyles.module.css +16 -0
  362. package/srcOLD/styles/headers/dropdown.css +0 -0
  363. package/srcOLD/styles/headers/header4.module.css +175 -0
  364. package/srcOLD/styles/headers/header5.module.css +30 -0
  365. package/{src1-10 → srcOLD}/styles/headers/header6.module.css +0 -0
  366. package/{src1-10 → srcOLD}/styles/headers/header_contactinfo.module.css +0 -0
  367. package/srcOLD/styles/headers/headerresturant.module.css +89 -0
  368. package/srcOLD/styles/headers/headerstyles.module.css +24 -0
  369. package/{src1-10 → srcOLD}/styles/headers/modernheader.module.css +0 -0
  370. package/srcOLD/styles/headers/subheader.module.css +114 -0
  371. package/srcOLD/styles/sections/Backgroundimage1.module.css +17 -0
  372. package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  373. package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +49 -0
  374. package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  375. package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  376. package/srcOLD/styles/staticpages/accordion.module.css +9 -0
  377. package/srcOLD/styles/staticpages/cart.module.css +108 -0
  378. package/srcOLD/styles/staticpages/dropdown.css +196 -0
  379. package/srcOLD/styles/staticpages/filter.module.css +139 -0
  380. package/{src1-10 → srcOLD}/styles/staticpages/login.module.css +0 -0
  381. package/srcOLD/styles/staticpages/productinfo.module.css +54 -0
  382. package/srcOLD/styles/staticpages/shop.module.css +191 -0
  383. package/{src1-10 → srcOLD}/styles/staticpages/signup.module.css +0 -0
  384. package/srcOLD/styles/staticpages/staticroutersidenav.module.css +129 -0
  385. package/srcOLD/styles/staticpages/viewcart.module.css +129 -0
  386. package/srcOLD/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,1048 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ // import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
3
+ // import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
4
+ // import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
5
+ // import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
6
+ import generalstyles from '../../../styles/general/general.module.css';
7
+ import cartstyles from '../../../styles/staticpages/viewcart.module.css';
8
+ import { BrowserRouter as Router, useHistory } from 'react-router-dom';
9
+ import TextareaAutosize from 'react-textarea-autosize';
10
+ import { useQuery, useQueryClient, useMutation } from 'react-query';
11
+ import { NotificationManager } from 'react-notifications';
12
+ import { css } from 'glamor';
13
+ import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter.jsx';
14
+ import { useParams } from 'react-router';
15
+ import { IKImage } from 'imagekitio-react';
16
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
17
+ import shoppingcart from '../../../assets/images/shoppingcart.png';
18
+
19
+ const Viewcart = (props) => {
20
+ const lang = props.actions.lang;
21
+ const langdetect = props.actions.langdetect;
22
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
23
+ const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
24
+ const deletecartitemContext = props.actions.deletecartitemContext;
25
+ const navigationstyle = props.actions.navigationstyle;
26
+ const ChangeCartItemQuantityContext = props.actions.ChangeCartItemQuantityContext;
27
+ const routingcountext = props.actions.routingcountext;
28
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
29
+ const pageindexcontext = props.actions.pageindexcontext;
30
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
31
+ const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
32
+ const actions = props.actions;
33
+ const [sectionproperties, setsectionproperties] = useState('');
34
+ const [imagesarray, setimagesarray] = useState([]);
35
+ useEffect(() => {
36
+ if (Object.keys(StatePagePropertiesContext).length != 0) {
37
+ var secpropobj = {};
38
+ StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
39
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
40
+ });
41
+ setsectionproperties({ ...secpropobj });
42
+ }
43
+ }, [StatePagePropertiesContext]);
44
+
45
+ useEffect(() => {
46
+ if (sectionproperties.length != 0) {
47
+ if (sectionproperties.bgsection_imagearrayofobjs != null) {
48
+ var bgsection_imagearrayofobjsparsed = JSON.parse(sectionproperties.bgsection_imagearrayofobjs);
49
+ if (Array.isArray(bgsection_imagearrayofobjsparsed)) {
50
+ setimagesarray([...bgsection_imagearrayofobjsparsed]);
51
+ }
52
+ }
53
+ }
54
+ }, [sectionproperties]);
55
+ const Summary = () => {
56
+ return (
57
+ <div className={'row m-0 w-100 mt-md-3'}>
58
+ <div className="col-lg-12 p-0 mb-4">
59
+ <div
60
+ className={' p-2 pl-3 pr-3 '}
61
+ style={{
62
+ background: sectionproperties.summary_sectionbgcolor,
63
+ borderRadius: sectionproperties.summary_sectionborderradius + 'px',
64
+ borderColor: sectionproperties.summary_sectionbordercolor,
65
+ }}
66
+ >
67
+ <div className="col-lg-12 p-0 mb-1">
68
+ <div className="row m-0 w-100">
69
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-start">
70
+ <p className={`${viewcart_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>{lang.subtotal}</p>
71
+ </div>
72
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
73
+ <p className={`${viewcart_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>
74
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.totalprice}
75
+ {langdetect == 'en' ? '' : 'ج.م'}
76
+ </p>
77
+ </div>
78
+ </div>
79
+ </div>
80
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.couponexists && (
81
+ <div className="col-lg-12 p-0 mb-1">
82
+ <div className="row m-0 w-100">
83
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-start">
84
+ <p className={`${viewcart_cssstyles.summarysectionstyles}` + ' text-danger m-0 p-0 '}>{lang.discount}</p>
85
+ </div>
86
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
87
+ <p className={`${viewcart_cssstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger '}>
88
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.couponexists && (
89
+ <span>
90
+ - {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.discountprice} {langdetect == 'en' ? '' : 'ج.م'}
91
+ </span>
92
+ )}
93
+ {!fetchcustomercartQueryContext?.data?.data?.customercart?.couponexists && <span>0</span>}
94
+ </p>
95
+ </div>
96
+ </div>
97
+ </div>
98
+ )}
99
+ <div className="col-lg-12 p-0">
100
+ <hr className="mt-0 mb-1" />
101
+ </div>
102
+ <div className="col-lg-12 p-0">
103
+ <div className="row m-0 w-100">
104
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-start">
105
+ <p className={`${viewcart_cssstyles.totalstyless}` + ' p-0 m-0 '}>{lang.total}</p>
106
+ </div>
107
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
108
+ <div className="row m-0 w-100">
109
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
110
+ <p className={`${viewcart_cssstyles.totalstyless}` + ' p-0 m-0 '}>
111
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.totalpriceafterdiscount_noshipping}{' '}
112
+ {langdetect == 'en' ? '' : 'ج.م'}
113
+ </p>
114
+ </div>
115
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
116
+ <p className={'font-13 text-light text-capitalize p-0 m-0 '}>{lang.excludingdelivery}</p>
117
+ </div>
118
+ </div>
119
+ </div>
120
+ </div>
121
+ </div>
122
+ <div
123
+ className="col-lg-12 d-flex align-items-center justify-content-center mb-3 mt-3"
124
+ onClick={() => {
125
+ routingcountext(StaticPagesLinksContext.Checkout);
126
+ }}
127
+ >
128
+ <button className={` ${viewcart_cssstyles.checkoutbtnstyles}`}>{lang.checkout}</button>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ );
134
+ };
135
+ const viewcart_cssstyles = {
136
+ sectiontitlespan: css({
137
+ ':after': {
138
+ width: sectionproperties.sectitle_lineafterwidth + '%',
139
+ backgroundColor: sectionproperties.linebgcolor,
140
+ },
141
+ }),
142
+ sectiontitlespan2: css({
143
+ ':after': {
144
+ width: sectionproperties.sectitle_lineafterwidth + 'px',
145
+ height: '100%',
146
+ backgroundColor: sectionproperties.linebgcolor,
147
+ },
148
+ }),
149
+ pill: css({
150
+ width: sectionproperties.pillwidth + 'px',
151
+ height: sectionproperties.pillheight + 'px',
152
+ height: sectionproperties.pillheight + 'px',
153
+ backgroundColor: sectionproperties.pillbgcolor,
154
+ color: sectionproperties.pillcolor,
155
+ textTransform: sectionproperties.pilltextTransform,
156
+ fontSize: sectionproperties.pillfontSize + 'px',
157
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
158
+ }),
159
+ checkoutbtnstyles: css({
160
+ background: sectionproperties.checkoutBtnbgColortranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColor,
161
+ width: sectionproperties.checkoutBtnWidth + 'px',
162
+ height: sectionproperties.checkoutBtnHeight + 'px',
163
+ borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
164
+ color: sectionproperties.checkoutBtnTextcolor,
165
+ textTransform: sectionproperties.checkoutBtnTexttransform,
166
+ fontWeight: sectionproperties.checkoutBtnTextfontweight,
167
+ fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
168
+ boxShadow: sectionproperties.checkoutBtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.checkoutBtn_shadowcolor : '',
169
+ transition: '.3s',
170
+ ':hover': {
171
+ background: sectionproperties.checkoutBtnbgColoronhover,
172
+ color: sectionproperties.checkoutBtnTextcoloronhover,
173
+ },
174
+ }),
175
+ productNameStyles: css({
176
+ color: sectionproperties.prodNameColor,
177
+ fontSize: sectionproperties.prodNameFontSize + 'px',
178
+ textTransform: sectionproperties.prodNameTextTranform,
179
+ fontWeight: sectionproperties.prodNameFontWeight,
180
+ }),
181
+ productPricestyles: css({
182
+ color: sectionproperties.prodPriceColor,
183
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
184
+ fontWeight: sectionproperties.prodPriceFontWeight,
185
+ }),
186
+ summarysectionstyles: css({
187
+ fontSize: sectionproperties.summary_fontsize + 'px',
188
+ color: sectionproperties.summary_textcolor,
189
+ fontWeight: sectionproperties.summary_textfontweight,
190
+ textTransform: sectionproperties.summary_texttransform,
191
+ }),
192
+ applybtnstyles: css({
193
+ width: sectionproperties.applybtn_width + 'px',
194
+ height: sectionproperties.applybtn_height + 'px',
195
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
196
+ textTransform: sectionproperties.applybtn_texttransform,
197
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
198
+ color: sectionproperties.applybtn_textColor,
199
+ fontWeight: sectionproperties.applybtn_Textfontweight,
200
+ background: sectionproperties.applybtn_bgColor,
201
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
202
+ transition: '.3s',
203
+ ':hover': {
204
+ background: sectionproperties.applybtn_bgColoronhover,
205
+ color: sectionproperties.applybtn_Textcoloronhover,
206
+ },
207
+ }),
208
+ Salepricestyless: css({
209
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
210
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
211
+ color: sectionproperties.prodsalePriceColor,
212
+ show: sectionproperties.prodsalePriceshow,
213
+ transition: '.3s',
214
+ }),
215
+ totalstyless: css({
216
+ fontSize: sectionproperties.total_fontsize + 'px',
217
+ fontWeight: sectionproperties.total_fontweight,
218
+ color: sectionproperties.total_color,
219
+ textTransform: sectionproperties.total_texttransform,
220
+ }),
221
+ trash_btn: css({
222
+ width: sectionproperties.trashbtn_Width + 'px',
223
+ height: sectionproperties.trashbtn_Height + 'px',
224
+ background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
225
+ color: sectionproperties.trashbtn_Textcolor,
226
+ borderRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
227
+ boxShadow: sectionproperties.trashbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.trashbtn_shadowcolor : '',
228
+ transition: '.3s',
229
+ opacity: sectionproperties.trashbtn_opacity,
230
+ border: sectionproperties.trashbtn_borderwidth + 'px solid ' + sectionproperties.trashbtn_bordercolor,
231
+ fontSize: sectionproperties.trashbtn_Textfontsize + 'px',
232
+ lineHeight: sectionproperties.trashbtn_Textfontsize + 'px',
233
+ // trashbtn_fontSize
234
+ ':hover': {
235
+ background: sectionproperties.trashbtn_bgColoronhover,
236
+ color: sectionproperties.trashbtn_Textcoloronhover,
237
+ opacity: sectionproperties.trashbtn_opacityonhover,
238
+ },
239
+ }),
240
+ imagecont: css({
241
+ width: sectionproperties.prodimage_width + 'px',
242
+ height: sectionproperties.prodimage_height + 'px',
243
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
244
+ backgroundColor: sectionproperties.prodimage_bgcolor,
245
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
246
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
247
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
248
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
249
+ display: 'flex',
250
+ alignItems: 'center',
251
+ justifyContent: 'center',
252
+ backgroundRepeat: 'no-repeat',
253
+ backgroundSize: 'cover',
254
+ backgroundPosition: 'center',
255
+ position: 'relative',
256
+ }),
257
+ quantitybtn: css({
258
+ width: sectionproperties.quantitybtn_width + 'px',
259
+ height: sectionproperties.quantitybtn_height + 'px',
260
+ borderRadius: sectionproperties.quantitybtn_borderradius + 'px',
261
+ background: sectionproperties.quantitybtn_bgcolor,
262
+ fontWeight: sectionproperties.quantitybtn_textfontweight,
263
+ color: sectionproperties.quantitybtn_textcolor,
264
+ fontSize: sectionproperties.quantitybtn_textfontsize + 'px',
265
+ border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor,
266
+ display: 'flex',
267
+ flexDirection: 'row',
268
+ overflow: 'hidden',
269
+ alignItems: 'center',
270
+ justifyContent: 'center',
271
+ margin: 0,
272
+ position: 'relative',
273
+ }),
274
+ quantitybtn_text: css({
275
+ margin: 'auto',
276
+ }),
277
+ add_quantitybtn_icon_container: css({
278
+ position: 'relative',
279
+ width: sectionproperties.add_quantitybtn_width + 'px',
280
+ height: sectionproperties.add_quantitybtn_height + 'px',
281
+ background: sectionproperties.add_quantitybtn_bgcolor,
282
+ display: 'flex',
283
+ alignItems: 'center',
284
+ justifyContent: 'center',
285
+ borderRadius: sectionproperties.add_quantitybtn_borderradius + 'px',
286
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
287
+ color: sectionproperties.add_quantitybtn_textcolor,
288
+ transition: '.3s',
289
+ ':hover': {
290
+ color: sectionproperties.add_quantitybtn_textcoloronhover,
291
+ background: sectionproperties.add_quantitybtn_bgcoloronhover,
292
+ },
293
+ }),
294
+ minus_quantitybtn_icon_container: css({
295
+ position: 'relative',
296
+ width: sectionproperties.remove_quantitybtn_width + 'px',
297
+ height: sectionproperties.remove_quantitybtn_height + 'px',
298
+ background: sectionproperties.remove_quantitybtn_bgcolor,
299
+ display: 'flex',
300
+ alignItems: 'center',
301
+ justifyContent: 'center',
302
+ borderRadius: sectionproperties.remove_quantitybtn_borderradius + 'px',
303
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + '25px',
304
+ color: sectionproperties.remove_quantitybtn_textcolor,
305
+ transition: '.3s',
306
+ ':hover': {
307
+ color: sectionproperties.remove_quantitybtn_textcoloronhover,
308
+ background: sectionproperties.remove_quantitybtn_bgcoloronhover,
309
+ },
310
+ }),
311
+ tableimagecont: css({
312
+ width: '70px',
313
+ height: '60px',
314
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
315
+ backgroundColor: sectionproperties.prodimage_bgcolor,
316
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
317
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
318
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
319
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
320
+ display: 'flex',
321
+ alignItems: 'center',
322
+ justifyContent: 'center',
323
+ position: 'relative',
324
+ }),
325
+ input_label_name: css({
326
+ color: sectionproperties.form_labelcolor,
327
+ textTransform: sectionproperties.form_labeltexttransform,
328
+ fontWeight: sectionproperties.form_labelfontweight,
329
+ fontSize: sectionproperties.form_labelfontsize + 'px',
330
+ }),
331
+ };
332
+ const [bgimagesarray, setbgimagesarray] = useState([]);
333
+ useEffect(() => {
334
+ if (sectionproperties.length != 0) {
335
+ if (sectionproperties.arrayofobjectimagesonly != null) {
336
+ var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
337
+ if (Array.isArray(arrayofobjectimagesonlyparsed)) {
338
+ setbgimagesarray([...arrayofobjectimagesonlyparsed]);
339
+ }
340
+ }
341
+ }
342
+ }, [sectionproperties]);
343
+ return (
344
+ <div className={'row m-0 w-100 d-flex justify-content-center'}>
345
+ {sectionproperties.showbgimage == 'Show' && (
346
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
347
+ <div
348
+ style={{
349
+ width: sectionproperties.image_width + 'vw',
350
+ height: sectionproperties.image_height + 'vh',
351
+ marginBottom: sectionproperties.image_mb + 'px',
352
+ position: 'relative',
353
+ }}
354
+ >
355
+ <IKImage
356
+ urlEndpoint={IKurlEndpoint}
357
+ publicKey={IKpublicKey}
358
+ path={
359
+ bgimagesarray.length != 0
360
+ ? langdetect == 'en'
361
+ ? '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image
362
+ : '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image_ar
363
+ : ''
364
+ }
365
+ style={{
366
+ height: '100%',
367
+ width: '100%',
368
+ // objectFit: 'cover',
369
+ margin: 0,
370
+ padding: 0,
371
+ background: sectionproperties.image_bgcolor,
372
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
373
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
374
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
375
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
376
+ zIndex: -1,
377
+ // transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
378
+ }}
379
+ />
380
+ <div
381
+ className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
382
+ style={{
383
+ position: 'absolute',
384
+ top: 0,
385
+ right: 0,
386
+ bottom: 0,
387
+ left: 0,
388
+ }}
389
+ >
390
+ <p
391
+ className={' m-0 p-0 '}
392
+ style={{
393
+ fontSize: sectionproperties.imagetextfontsize + 'px',
394
+ color: sectionproperties.imagetextcolor,
395
+ textTransform: sectionproperties.imagetexttextTransform,
396
+ fontWeight: sectionproperties.imagetextfontWeight,
397
+ }}
398
+ >
399
+ {lang.mycart}
400
+ </p>
401
+ </div>
402
+ </div>
403
+ </div>
404
+ )}
405
+ <div className="col-lg-12 p-0">
406
+ <div
407
+ className={'row ml-0 mr-0 d-flex justify-content-center w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2'}
408
+ style={{
409
+ marginTop: sectionproperties.marginTop + 'px',
410
+ marginBottom: sectionproperties.marginBottom + 'px',
411
+ paddingLeft: sectionproperties.paddingLeft + 'px',
412
+ paddingRight: sectionproperties.paddingRight + 'px',
413
+ paddingTop: sectionproperties.paddingTop + 'px',
414
+ paddingBottom: sectionproperties.paddingBottom + 'px',
415
+ background: sectionproperties.backgroundColor,
416
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
417
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
418
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
419
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
420
+ borderColor: sectionproperties.sectioncardbordercolor,
421
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
422
+ }}
423
+ >
424
+ <div className={navigationstyle == 'Side Navigation' ? (langdetect == 'en' ? 'col-lg-3 pl-0 mb-md-3 p-md-0' : 'col-lg-3 pr-0 mb-md-3 p-md-0') : 'col-lg-12 p-0'}>
425
+ <Staticpagesrouter
426
+ currentpageprops={'Viewcart'}
427
+ actions={actions}
428
+ pillpropertiesprops={{
429
+ minWidth: sectionproperties.pillwidth + 'px',
430
+ height: sectionproperties.pillheight + 'px',
431
+ backgroundColor: sectionproperties.pillbgcolor,
432
+ color: sectionproperties.pillcolor,
433
+ textTransform: sectionproperties.pillcolor,
434
+ fontWeight: sectionproperties.pillfontWeight,
435
+ fontSize: sectionproperties.pillfontSize + 'px',
436
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
437
+ }}
438
+ />
439
+ </div>
440
+ {navigationstyle == 'Side Navigation' && (
441
+ <div className={'col-lg-9 d-flex p-0'}>
442
+ <div className="row ml-0 mr-0 w-100">
443
+ {sectionproperties.sectiontitlestyle == 'Line Under Text' && (
444
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
445
+ <div className={`${generalstyles.sectiontitlecont} `}>
446
+ <div
447
+ className={' col-lg-12 d-flex align-items-center p-0'}
448
+ style={{
449
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
450
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
451
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
452
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
453
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
454
+ }}
455
+ >
456
+ <span
457
+ className={`${viewcart_cssstyles.sectiontitlespan}`}
458
+ style={{
459
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
460
+ color: sectionproperties.sectionTitleColor,
461
+
462
+ textTransform: sectionproperties.sectionTitleTextTransform,
463
+ fontWeight: sectionproperties.sectionTitleFontWeight,
464
+ }}
465
+ >
466
+ {langdetect == 'en' ? 'My Cart' : 'حقيبة التسوق'}:
467
+ </span>
468
+ <span className={` ${viewcart_cssstyles.pill}` + ' ml-1 mr-1 d-flex align-items-center justify-content-center '}>
469
+ {fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart != null
470
+ ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems.length
471
+ : ''}
472
+ </span>
473
+ </div>
474
+ </div>
475
+ </div>
476
+ )}
477
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && (
478
+ <div
479
+ className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
480
+ style={{
481
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
482
+ }}
483
+ >
484
+ <div
485
+ className={`${generalstyles.sectiontitlecont2}`}
486
+ style={{
487
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
488
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
489
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
490
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
491
+ }}
492
+ >
493
+ <span
494
+ className={`${viewcart_cssstyles.sectiontitlespan2}` + ' pl-3 '}
495
+ style={{
496
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
497
+ color: sectionproperties.sectionTitleColor,
498
+ textTransform: sectionproperties.sectionTitleTextTransform,
499
+ fontWeight: sectionproperties.sectionTitleFontWeight,
500
+ }}
501
+ >
502
+ My
503
+ <br />
504
+ Cart:
505
+ </span>
506
+ <span className={` ${viewcart_cssstyles.pill}` + ' ml-1 mr-1 pl-2 pr-2 d-flex align-items-center justify-content-center mt-auto mb-2 '}>
507
+ {fetchcustomercartQueryContext.data.data.customercart != undefined && fetchcustomercartQueryContext.data.data.customercart != null
508
+ ? fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems.length
509
+ : ''}{' '}
510
+ </span>
511
+ </div>
512
+ </div>
513
+ )}
514
+ <div className={'col-lg-12 d-flex p-0 w-100'}>
515
+ <div
516
+ className="row ml-0 mr-0 w-100"
517
+ style={{
518
+ background: sectionproperties.backgroundColor,
519
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
520
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
521
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
522
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
523
+ paddingTop: sectionproperties.paddingTop + 'px',
524
+ paddingBottom: sectionproperties.paddingBottom + 'px',
525
+ marginBottom: sectionproperties.marginBottom + 'px',
526
+ marginTop: sectionproperties.marginTop + 'px',
527
+ boxShadow:
528
+ sectionproperties.sectioncardshadow == 'Show'
529
+ ? '0 0.46875rem 2.1875rem rgba(4, 9, 20, 0.03), 0 0.9375rem 1.40625rem rgba(4, 9, 20, 0.03), 0 0.25rem 0.53125rem rgba(4, 9, 20, 0.05), 0 0.125rem 0.1875rem rgba(4, 9, 20, 0.03)'
530
+ : 'none',
531
+ borderColor: sectionproperties.usserinfo_sectionbordercolor,
532
+ }}
533
+ >
534
+ <div className={langdetect == 'en' ? ' col-lg-6 co-md-12 pl-0 p-md-0 ' : ' col-lg-6 co-md-12 pr-0 p-md-0 '}>
535
+ <div className="row m-0 w-100">
536
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems == 0 && (
537
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center" style={{ height: '40vh' }}>
538
+ <div className="col-lg-12 d-flex align-items-center justify-content-center text-light flex-column">
539
+ <img src={shoppingcart} style={{ maxWidth: '200px', maxHeight: '200px' }} />
540
+ <p className="font-weight-500" style={{ fontSize: '15px' }}>
541
+ {lang.emptyshoppingcart}
542
+ </p>
543
+ </div>
544
+ </div>
545
+ )}
546
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems.map((item, index) => {
547
+ return (
548
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 mb-3">
549
+ <div className={generalstyles.card + ' pt-2 pb-2 '}>
550
+ <div className="row m-0 w-100 d-flex">
551
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0">
552
+ <div className="row m-0 w-100">
553
+ <div className="col-lg-2 col-md-2 p-0">
554
+ <div className={`${viewcart_cssstyles.imagecont} ${cartstyles.cart_slider_imagecont}`}>
555
+ <IKImage
556
+ urlEndpoint={IKurlEndpoint}
557
+ publicKey={IKpublicKey}
558
+ path={
559
+ item.productinfo.hasvariants == 0
560
+ ? item.productinfo.productmainimage
561
+ : item.productinfo.variantinfo.variantimageurl
562
+ }
563
+ style={{
564
+ width: '100%',
565
+ height: '100%',
566
+ objectFit: 'cover',
567
+ }}
568
+ loading="lazy"
569
+ />
570
+ </div>
571
+ </div>
572
+ <div className="col-lg-7 col-md-8">
573
+ <div className="row m-0 w-100">
574
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start">
575
+ <p className={`${viewcart_cssstyles.productNameStyles}` + ' m-0 p-0 wordbreak d-flex justify-content-start '}>
576
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
577
+ </p>
578
+ </div>
579
+ {item.productinfo.hasvariants == 1 &&
580
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
581
+ return (
582
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
583
+ <p
584
+ className={
585
+ 'text-capitalize text-dark m-0 p-0 font-weight-400 font-13 m-0 p-0 wordbreak d-flex align-items-center justify-content-start '
586
+ }
587
+ >
588
+ {variantitem.optionname}: {variantitem.optionvalue}
589
+ </p>
590
+ </div>
591
+ );
592
+ })}
593
+ </div>
594
+ </div>
595
+ <div className="col-lg-3 col-md-2 p-0 ">
596
+ <div className="row m-0 w-100 h-100">
597
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
598
+ {item.productinfo.hasvariants == 0 && (
599
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
600
+ {item.productinfo.hassale == 0 && (
601
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
602
+ <p
603
+ className={
604
+ langdetect == 'en'
605
+ ? `${viewcart_cssstyles.productPricestyles}` +
606
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
607
+ : `${viewcart_cssstyles.productPricestyles}` +
608
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
609
+ }
610
+ >
611
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice}{' '}
612
+ {langdetect == 'en' ? '' : 'ج.م'}
613
+ </p>
614
+ </div>
615
+ )}
616
+ {item.productinfo.hassale == 1 && (
617
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
618
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
619
+ <p
620
+ className={
621
+ langdetect == 'en'
622
+ ? `${viewcart_cssstyles.productPricestyles}` +
623
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
624
+ : `${viewcart_cssstyles.productPricestyles}` +
625
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
626
+ }
627
+ >
628
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice}
629
+ {langdetect == 'en' ? '' : 'ج.م'}
630
+ </p>
631
+ </div>
632
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
633
+ <p
634
+ className={
635
+ langdetect == 'en'
636
+ ? `${viewcart_cssstyles.Salepricestyless}` +
637
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
638
+ : `${viewcart_cssstyles.Salepricestyless}` +
639
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
640
+ }
641
+ >
642
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice}{' '}
643
+ {langdetect == 'en' ? '' : 'ج.م'}
644
+ </p>
645
+ </div>
646
+ </div>
647
+ )}
648
+ </div>
649
+ )}
650
+ {item.productinfo.hasvariants == 1 && (
651
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
652
+ {item.productinfo.variantinfo.hassale == 0 && (
653
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
654
+ <p
655
+ className={
656
+ langdetect == 'en'
657
+ ? `${viewcart_cssstyles.productPricestyles}` +
658
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
659
+ : `${viewcart_cssstyles.productPricestyles}` +
660
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
661
+ }
662
+ >
663
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice}{' '}
664
+ {langdetect == 'en' ? '' : 'ج.م'}
665
+ </p>
666
+ </div>
667
+ )}
668
+ {item.productinfo.variantinfo.hassale == 1 && (
669
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
670
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
671
+ <p
672
+ className={
673
+ langdetect == 'en'
674
+ ? `${viewcart_cssstyles.productPricestyles}` +
675
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
676
+ : `${viewcart_cssstyles.productPricestyles}` +
677
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
678
+ }
679
+ >
680
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
681
+ {langdetect == 'en' ? '' : 'ج.م'}
682
+ </p>
683
+ </div>
684
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
685
+ <p
686
+ className={
687
+ langdetect == 'en'
688
+ ? `${viewcart_cssstyles.Salepricestyless}` +
689
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
690
+ : `${viewcart_cssstyles.Salepricestyless}` +
691
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
692
+ }
693
+ >
694
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice}{' '}
695
+ {langdetect == 'en' ? '' : 'ج.م'}
696
+ </p>
697
+ </div>
698
+ </div>
699
+ )}
700
+ </div>
701
+ )}
702
+ </div>
703
+
704
+ {/* <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mt-auto">
705
+ <p className={`${viewcart_cssstyles.productPricestyles}` + ' m-0 p-0 mt-auto h-100 '}>
706
+ {langdetect=='en'? 'EGP':'ج.م'} {item.productinfo.cartitemtotalprice}
707
+ </p>
708
+ </div> */}
709
+ </div>
710
+ </div>
711
+ <div className="col-lg-12 col-md-12 p-0 mt-auto d-flex align-items-center justify-content-center">
712
+ <div className="row m-0 w-100 mt-2">
713
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex align-items-center justify-content-start p-0">
714
+ <button
715
+ className={
716
+ ` ${viewcart_cssstyles.trash_btn}` + ' d-flex align-items-center justify-content-center text-uppercase '
717
+ }
718
+ onClick={() => {
719
+ deletecartitemContext(item);
720
+ }}
721
+ >
722
+ {langdetect == 'en' ? 'REMOVE' : 'حذف'}
723
+ </button>
724
+ </div>
725
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex align-items-center justify-content-end p-0">
726
+ {/* {AddtoCartMutationContext.isLoading && <CircularProgress color="black" width="25px" height="25px" />} */}
727
+ {/* {!AddtoCartMutationContext.isLoading && ( */}
728
+ <button
729
+ className={` ${viewcart_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center '}
730
+ >
731
+ <span
732
+ className={`${viewcart_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
733
+ onClick={() => {
734
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) + 1));
735
+ }}
736
+ >
737
+ <i
738
+ className="fa fa-chevron-up"
739
+ style={{
740
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
741
+ }}
742
+ ></i>
743
+ </span>
744
+
745
+ <span className={`${viewcart_cssstyles.quantitybtn_text}`}>{item.quantity}</span>
746
+ <span
747
+ className={`${viewcart_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
748
+ style={{ transform: ' rotate(-180deg)' }}
749
+ onClick={() => {
750
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) - 1));
751
+ }}
752
+ >
753
+ <i
754
+ className="fa fa-chevron-up"
755
+ style={{
756
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
757
+ }}
758
+ ></i>
759
+ </span>
760
+ </button>
761
+ {/* )} */}
762
+ </div>
763
+ </div>
764
+ </div>
765
+ </div>
766
+ </div>
767
+ </div>
768
+ </div>
769
+ </div>
770
+ );
771
+ })}
772
+ </div>
773
+ </div>
774
+ <div className={langdetect == 'en' ? ' col-lg-6 co-md-12 pr-0 p-sm-0 ' : ' col-lg-6 co-md-12 pl-0 p-sm-0 '}>{Summary()}</div>
775
+ </div>
776
+ </div>
777
+ </div>
778
+ </div>
779
+ )}
780
+ {navigationstyle == 'Upper Navigation' && (
781
+ <div className={'col-lg-12 d-flex w-100 p-0'}>
782
+ <div className="row m-0 w-100">
783
+ <div className={langdetect == 'en' ? 'col-lg-9 pr-0' : 'col-lg-9 pl-0'}>
784
+ <div className={' row m-0 w-100 p-sm-3 '} style={{ background: 'white', padding: '20px', minHeight: '70vh' }}>
785
+ <div className={' col-lg-12 table_responsive p-0 '}>
786
+ <table className={'table table_thbg'}>
787
+ <thead className="" style={{ background: '#eee' }}>
788
+ <th
789
+ className={
790
+ langdetect == 'en'
791
+ ? 'text-left font-weight-500 font-14 text-light mw-150 mw-md-300'
792
+ : 'text-right font-weight-500 font-14 text-light mw-150 mw-md-300'
793
+ }
794
+ >
795
+ {lang.productname}
796
+ </th>
797
+ <th className="text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '200px' }}>
798
+ {lang.price}
799
+ </th>
800
+ <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light">{lang.quantity}</th>
801
+ <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '100px' }}>
802
+ {lang.total}
803
+ </th>
804
+ <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light">{lang.remove}</th>
805
+ </thead>
806
+ <tbody>
807
+ {/* {fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems.map((item, index) => { */}
808
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.map((item, index) => {
809
+ return (
810
+ <tr className="border-none">
811
+ <td className="mw-150 mw-md-300">
812
+ <div className="row m-0 w-100 d-flex">
813
+ <div className={`${viewcart_cssstyles.tableimagecont}`}>
814
+ <IKImage
815
+ urlEndpoint={IKurlEndpoint}
816
+ publicKey={IKpublicKey}
817
+ path={
818
+ item.productinfo.hasvariants == 0 ? item.productinfo.productmainimage : item.productinfo.variantinfo.variantimageurl
819
+ }
820
+ style={{
821
+ width: '100%',
822
+ height: '100%',
823
+ objectFit: 'cover',
824
+ }}
825
+ loading="lazy"
826
+ />
827
+ </div>
828
+ <div className="pl-2 pr-2">
829
+ <p className={`${viewcart_cssstyles.productNameStyles}` + ' m-0 p-0 wordbreak d-flex justify-content-start '}>
830
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
831
+ </p>
832
+ {item.productinfo.hasvariants == 1 &&
833
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
834
+ return (
835
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
836
+ <p
837
+ className={
838
+ 'text-capitalize text-dark m-0 p-0 font-weight-400 font-13 m-0 p-0 wordbreak d-flex align-items-center justify-content-start '
839
+ }
840
+ >
841
+ {variantitem.optionname}: {variantitem.optionvalue}
842
+ </p>
843
+ </div>
844
+ );
845
+ })}
846
+ </div>
847
+ </div>
848
+ </td>
849
+ <td style={{ minWidth: '200px' }}>
850
+ {item.productinfo.hasvariants == 0 && (
851
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
852
+ {item.productinfo.hassale == 0 && (
853
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
854
+ <p
855
+ className={
856
+ `${viewcart_cssstyles.productPricestyles}` +
857
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
858
+ }
859
+ >
860
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
861
+ </p>
862
+ </div>
863
+ )}
864
+ {item.productinfo.hassale == 1 && (
865
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
866
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
867
+ <p
868
+ className={
869
+ `${viewcart_cssstyles.productPricestyles}` +
870
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
871
+ }
872
+ >
873
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice}
874
+ {langdetect == 'en' ? '' : 'ج.م'}
875
+ </p>
876
+ </div>
877
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
878
+ <p
879
+ className={
880
+ `${viewcart_cssstyles.Salepricestyless}` +
881
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-center '
882
+ }
883
+ >
884
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
885
+ </p>
886
+ </div>
887
+ </div>
888
+ )}
889
+ </div>
890
+ )}
891
+ {item.productinfo.hasvariants == 1 && (
892
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
893
+ {item.productinfo.variantinfo.hassale == 0 && (
894
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
895
+ <p
896
+ className={
897
+ `${viewcart_cssstyles.productPricestyles}` +
898
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
899
+ }
900
+ >
901
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice} {langdetect == 'en' ? '' : 'ج.م'}
902
+ </p>
903
+ </div>
904
+ )}
905
+ {item.productinfo.variantinfo.hassale == 1 && (
906
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
907
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
908
+ <p
909
+ className={
910
+ `${viewcart_cssstyles.productPricestyles}` +
911
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
912
+ }
913
+ >
914
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
915
+ {langdetect == 'en' ? '' : 'ج.م'}
916
+ </p>
917
+ </div>
918
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
919
+ <p
920
+ className={
921
+ `${viewcart_cssstyles.Salepricestyless}` +
922
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-center '
923
+ }
924
+ >
925
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice}{' '}
926
+ {langdetect == 'en' ? '' : 'ج.م'}
927
+ </p>
928
+ </div>
929
+ </div>
930
+ )}
931
+ </div>
932
+ )}
933
+ </td>
934
+ <td className="text-center">
935
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center">
936
+ {/* {AddtoCartMutationContext.isLoading && <CircularProgress color="black" width="25px" height="25px" />} */}
937
+ {/* {!AddtoCartMutationContext.isLoading && ( */}
938
+ <button className={` ${viewcart_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center '}>
939
+ <span
940
+ className={`${viewcart_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
941
+ onClick={() => {
942
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) - 1));
943
+ }}
944
+ >
945
+ <i
946
+ className="fa fa-chevron-down"
947
+ style={{
948
+ fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
949
+ }}
950
+ ></i>
951
+ </span>
952
+ <span
953
+ className={`${viewcart_cssstyles.quantitybtn_text}` + ' d-flex align-items-center justify-content-center '}
954
+ style={{
955
+ background: sectionproperties.quantbtntextbgcolor,
956
+ width: sectionproperties.quantitybtntextwidth + 'px',
957
+ height: sectionproperties.quantitybtntextheight + 'px',
958
+ borderRadius: sectionproperties.addquantitytextborderraduis + 'px',
959
+ }}
960
+ >
961
+ {item.quantity}
962
+ </span>
963
+ <span
964
+ className={`${viewcart_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
965
+ onClick={() => {
966
+ ChangeCartItemQuantityContext(item, parseInt(parseInt(item.quantity) + 1));
967
+ }}
968
+ >
969
+ <i
970
+ className="fa fa-chevron-up"
971
+ style={{
972
+ fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
973
+ }}
974
+ ></i>
975
+ </span>
976
+ </button>
977
+ {/* )} */}
978
+ </div>
979
+ </td>
980
+ <td className="text-center" style={{ minWidth: '100px' }}>
981
+ <p className={`${viewcart_cssstyles.productPricestyles}` + ' m-0 p-0 '}>
982
+ {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.productinfo.cartitemtotalprice}
983
+ </p>
984
+ </td>
985
+ <td className="text-center">
986
+ <button
987
+ className={` ${viewcart_cssstyles.trash_btn}` + ' d-flex align-items-center justify-content-center text-uppercase m-auto '}
988
+ onClick={() => {
989
+ deletecartitemContext(item);
990
+ }}
991
+ >
992
+ {lang.remove}
993
+ </button>
994
+ </td>
995
+ </tr>
996
+ );
997
+ })}
998
+ </tbody>
999
+ </table>
1000
+ </div>
1001
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems.length == 0 && (
1002
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100 pt-5 pb-5" style={{ height: '50vh' }}>
1003
+ <div className={' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
1004
+ <img src={shoppingcart} style={{ maxWidth: '250px', maxHeight: '250px' }} />
1005
+ <p className="m-0 p-0 wordbreak" style={{ fontSize: '15px' }}>
1006
+ {lang.emptyshoppingcart}
1007
+ </p>
1008
+ </div>
1009
+ </div>
1010
+ )}
1011
+ </div>
1012
+ </div>
1013
+ <div className={langdetect == 'en' ? ' col-lg-3 pr-0 ' : ' col-lg-3 pl-0 '}>{Summary()}</div>
1014
+ </div>
1015
+ </div>
1016
+ )}
1017
+ </div>
1018
+ {/* <div className="col-lg-12 d-flex align-items-center justify-content-center p-0">
1019
+ {pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
1020
+ <div className={generalstyles.app_container + ' w-100 '} style={{ position: 'relative' }}>
1021
+ {StatePagePropertiesContext.pageobj.sections.map((item, index) => {
1022
+ if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
1023
+ var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
1024
+ return (
1025
+ <div className="row w-100 ml-0 mr-0 d-flex justify-content-center p-0">
1026
+ {item.tabexsectioninfo.sectiontype == 'Cards' && (
1027
+ <ProductsCardsSectionContext_Provider>
1028
+ {React.createElement(sectioncomp, {
1029
+ sectionidprops: item.sectionid,
1030
+ sectionindexprops: index,
1031
+ srcfromprops: 'GeneralProductsComponent',
1032
+ collectionidprops: collectionidparams,
1033
+ })}
1034
+ </ProductsCardsSectionContext_Provider>
1035
+ )}
1036
+ {item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
1037
+ </div>
1038
+ );
1039
+ }
1040
+ })}
1041
+ </div>
1042
+ )}
1043
+ </div> */}
1044
+ </div>
1045
+ </div>
1046
+ );
1047
+ };
1048
+ export default Viewcart;