tabexseriescomponents 0.0.73 → 0.0.74

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 (211) hide show
  1. package/dist/index.cjs.js +337 -225
  2. package/dist/index.esm.js +343 -231
  3. package/dist/index.umd.js +340 -229
  4. package/package.json +1 -1
  5. package/src-aya/Contexts/LanguageContext.jsx +0 -369
  6. package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
  7. package/src-aya/StylesJS/Customstyles.js +0 -235
  8. package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
  9. package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
  10. package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
  11. package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
  12. package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
  13. package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
  14. package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
  15. package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
  16. package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
  17. package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
  18. package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
  19. package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
  20. package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
  21. package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
  22. package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
  23. package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
  24. package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
  25. package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  26. package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
  27. package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
  28. package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
  29. package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  30. package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
  31. package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
  32. package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
  33. package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
  34. package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  35. package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
  36. package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
  37. package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
  38. package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
  39. package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
  40. package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
  41. package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
  42. package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
  43. package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
  44. package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
  45. package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
  46. package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
  47. package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
  48. package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  49. package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
  50. package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  51. package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  52. package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  53. package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  54. package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  55. package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  56. package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  57. package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  58. package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  59. package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
  60. package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  61. package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
  62. package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
  63. package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
  64. package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
  65. package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
  66. package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
  67. package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
  68. package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
  69. package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
  70. package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
  71. package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
  72. package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
  73. package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
  74. package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
  75. package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
  76. package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
  77. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
  78. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
  79. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  80. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
  81. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
  82. package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
  83. package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
  84. package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  85. package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
  86. package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
  87. package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
  88. package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
  89. package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  90. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
  91. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
  92. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
  93. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
  94. package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
  95. package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
  96. package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
  97. package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
  98. package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
  99. package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
  100. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
  101. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
  102. package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
  103. package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
  104. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  105. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  106. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
  107. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
  108. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
  109. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
  110. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
  111. package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
  112. package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
  113. package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
  114. package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  115. package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  116. package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  117. package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  118. package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
  119. package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  120. package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
  121. package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
  122. package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
  123. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
  124. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
  125. package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
  126. package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
  127. package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
  128. package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
  129. package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
  130. package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
  131. package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
  132. package/src-aya/assets/images/appstore.png +0 -0
  133. package/src-aya/assets/images/cod.png +0 -0
  134. package/src-aya/assets/images/egyptflag.png +0 -0
  135. package/src-aya/assets/images/fawry.png +0 -0
  136. package/src-aya/assets/images/googleplay.png +0 -0
  137. package/src-aya/assets/images/payment.png +0 -0
  138. package/src-aya/assets/images/paymob.png +0 -0
  139. package/src-aya/assets/images/paypal.png +0 -0
  140. package/src-aya/assets/images/shoppingcart.png +0 -0
  141. package/src-aya/assets/images/usflag.png +0 -0
  142. package/src-aya/assets/images/visa.png +0 -0
  143. package/src-aya/assets/images/whatsapp.png +0 -0
  144. package/src-aya/button.jsx +0 -40
  145. package/src-aya/index.jsx +0 -222
  146. package/src-aya/styles/Home.module.css +0 -129
  147. package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
  148. package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  149. package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
  150. package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
  151. package/src-aya/styles/cards/Productcard6.module.css +0 -9
  152. package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
  153. package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  154. package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  155. package/src-aya/styles/cards/categorycard.module.css +0 -85
  156. package/src-aya/styles/cards/categorycard3.module.css +0 -50
  157. package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
  158. package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
  159. package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
  160. package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  161. package/src-aya/styles/general/bootstrap.css +0 -4562
  162. package/src-aya/styles/general/dropdown.css +0 -206
  163. package/src-aya/styles/general/editorbardropdown.module.css +0 -94
  164. package/src-aya/styles/general/filter.module.css +0 -108
  165. package/src-aya/styles/general/form.module.css +0 -273
  166. package/src-aya/styles/general/general.module.css +0 -861
  167. package/src-aya/styles/general/image-gallery.css +0 -481
  168. package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
  169. package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
  170. package/src-aya/styles/general/scrollbtn.module.css +0 -22
  171. package/src-aya/styles/general/slick.module.css +0 -166
  172. package/src-aya/styles/general/tabs.module.css +0 -110
  173. package/src-aya/styles/general/workplaceeditor.module.css +0 -328
  174. package/src-aya/styles/globals.css +0 -26
  175. package/src-aya/styles/headers/CTAHeader.module.css +0 -40
  176. package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  177. package/src-aya/styles/headers/Gotoheader.module.css +0 -91
  178. package/src-aya/styles/headers/Header7.module.css +0 -50
  179. package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
  180. package/src-aya/styles/headers/Sideheader.module.css +0 -108
  181. package/src-aya/styles/headers/classicheader.module.css +0 -16
  182. package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
  183. package/src-aya/styles/headers/dropdown.css +0 -0
  184. package/src-aya/styles/headers/header4.module.css +0 -175
  185. package/src-aya/styles/headers/header5.module.css +0 -30
  186. package/src-aya/styles/headers/header6.module.css +0 -102
  187. package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
  188. package/src-aya/styles/headers/headerresturant.module.css +0 -89
  189. package/src-aya/styles/headers/modernheader.module.css +0 -72
  190. package/src-aya/styles/headers/stylishheader.module.css +0 -24
  191. package/src-aya/styles/headers/subheader.module.css +0 -114
  192. package/src-aya/styles/headers/threetieredheader.module.css +0 -91
  193. package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
  194. package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
  195. package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  196. package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
  197. package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  198. package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  199. package/src-aya/styles/staticpages/accordion.module.css +0 -9
  200. package/src-aya/styles/staticpages/cart.module.css +0 -108
  201. package/src-aya/styles/staticpages/dropdown.css +0 -196
  202. package/src-aya/styles/staticpages/filter.module.css +0 -139
  203. package/src-aya/styles/staticpages/image-gallery.css +0 -481
  204. package/src-aya/styles/staticpages/login.module.css +0 -113
  205. package/src-aya/styles/staticpages/productinfo.module.css +0 -54
  206. package/src-aya/styles/staticpages/shop.module.css +0 -191
  207. package/src-aya/styles/staticpages/signup.module.css +0 -206
  208. package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
  209. package/src-aya/styles/staticpages/viewcart.module.css +0 -129
  210. package/src-aya/styles/staticpages/wishlist.module.css +0 -29
  211. package/src-aya/styles.rar +0 -0
@@ -1,1048 +0,0 @@
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;