tabexseriescomponents 0.0.64 → 0.0.66

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 (178) hide show
  1. package/dist/index.cjs.js +25023 -16634
  2. package/dist/index.esm.js +25033 -16645
  3. package/dist/index.umd.js +24824 -16437
  4. package/package.json +1 -1
  5. package/src1-10/Contexts/LanguageContext.jsx +347 -0
  6. package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/src1-10/StylesJS/Customstyles.js +235 -0
  8. package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
  9. package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
  10. package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  11. package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
  12. package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
  13. package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  15. package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
  16. package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  17. package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
  18. package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
  19. package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
  20. package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  21. package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
  22. package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
  23. package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
  24. package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
  25. package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
  26. package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
  27. package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
  28. package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  29. package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
  30. package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
  31. package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  32. package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
  33. package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
  35. package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
  36. package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
  37. package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
  38. package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
  39. package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
  40. package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
  41. package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
  55. package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
  56. package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
  57. package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
  58. package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
  59. package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
  60. package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
  61. package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
  62. package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
  63. package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
  64. package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
  65. package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
  66. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  67. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  68. package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
  69. package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
  70. package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  71. package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
  72. package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
  73. package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
  74. package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  75. package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  76. package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
  77. package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  78. package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  79. package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  80. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
  81. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  82. package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  83. package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  84. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  85. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  86. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  87. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
  88. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
  89. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  90. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
  91. package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
  92. package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  93. package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
  94. package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  95. package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  96. package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  97. package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  98. package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  99. package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  100. package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
  101. package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
  102. package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
  103. package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
  104. package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
  105. package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  106. package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
  107. package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  108. package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
  109. package/src1-10/assets/images/cod.png +0 -0
  110. package/src1-10/assets/images/egyptflag.png +0 -0
  111. package/src1-10/assets/images/fawry.png +0 -0
  112. package/src1-10/assets/images/payment.png +0 -0
  113. package/src1-10/assets/images/paymob.png +0 -0
  114. package/src1-10/assets/images/paypal.png +0 -0
  115. package/src1-10/assets/images/shoppingcart.png +0 -0
  116. package/src1-10/assets/images/usflag.png +0 -0
  117. package/src1-10/assets/images/visa.png +0 -0
  118. package/src1-10/assets/images/whatsapp.png +0 -0
  119. package/src1-10/button.jsx +40 -0
  120. package/src1-10/index.jsx +179 -0
  121. package/src1-10/styles/Home.module.css +129 -0
  122. package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
  123. package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  124. package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
  125. package/src1-10/styles/cards/Productcard6.module.css +9 -0
  126. package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
  127. package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  128. package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  129. package/src1-10/styles/cards/categorycard.module.css +102 -0
  130. package/src1-10/styles/cards/categorycard3.module.css +51 -0
  131. package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
  132. package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
  133. package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
  134. package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  135. package/src1-10/styles/general/bootstrap.css +4415 -0
  136. package/src1-10/styles/general/dropdown.css +199 -0
  137. package/src1-10/styles/general/editorbardropdown.module.css +94 -0
  138. package/src1-10/styles/general/filter.module.css +108 -0
  139. package/src1-10/styles/general/form.module.css +273 -0
  140. package/src1-10/styles/general/general.module.css +861 -0
  141. package/src1-10/styles/general/image-gallery.css +481 -0
  142. package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
  143. package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
  144. package/src1-10/styles/general/scrollbtn.module.css +22 -0
  145. package/src1-10/styles/general/slick.module.css +166 -0
  146. package/src1-10/styles/general/tabs.module.css +110 -0
  147. package/src1-10/styles/general/workplaceeditor.module.css +328 -0
  148. package/src1-10/styles/globals.css +26 -0
  149. package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
  150. package/src1-10/styles/headers/Header7.module.css +50 -0
  151. package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  152. package/src1-10/styles/headers/Sideheader.module.css +108 -0
  153. package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
  154. package/src1-10/styles/headers/dropdown.css +0 -0
  155. package/src1-10/styles/headers/header4.module.css +175 -0
  156. package/src1-10/styles/headers/header5.module.css +30 -0
  157. package/src1-10/styles/headers/header6.module.css +117 -0
  158. package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
  159. package/src1-10/styles/headers/headerresturant.module.css +89 -0
  160. package/src1-10/styles/headers/headerstyles.module.css +24 -0
  161. package/src1-10/styles/headers/modernheader.module.css +78 -0
  162. package/src1-10/styles/headers/subheader.module.css +114 -0
  163. package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
  164. package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  165. package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
  166. package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  167. package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  168. package/src1-10/styles/staticpages/accordion.module.css +9 -0
  169. package/src1-10/styles/staticpages/cart.module.css +108 -0
  170. package/src1-10/styles/staticpages/dropdown.css +196 -0
  171. package/src1-10/styles/staticpages/filter.module.css +139 -0
  172. package/src1-10/styles/staticpages/login.module.css +146 -0
  173. package/src1-10/styles/staticpages/productinfo.module.css +54 -0
  174. package/src1-10/styles/staticpages/shop.module.css +191 -0
  175. package/src1-10/styles/staticpages/signup.module.css +206 -0
  176. package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
  177. package/src1-10/styles/staticpages/viewcart.module.css +129 -0
  178. package/src1-10/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,1220 @@
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 formstyles from '../../../styles/general/form.module.css';
7
+ import TextareaAutosize from 'react-textarea-autosize';
8
+ // import { BrowserRouter as Router, Switch, Route, Redirect, useParams, useHistory, Link } from 'react-router-dom';
9
+ // import '../../../../../../../styles/general/react-phone-input-2.module.css';
10
+ import generalstyles from '../../../styles/general/general.module.css';
11
+ // import cartstyles from '../Viewcart/viewcart.module.css';
12
+ import { CircularProgress } from 'react-cssfx-loading';
13
+ // import Select from 'react-select';
14
+ // import { NotificationManager } from 'react-notifications';
15
+ // import Pagepreloader from '../Pagepreloader/Pagepreloader';
16
+ // import { useQuery, useQueryClient, useMutation } from 'react-query';
17
+ import { css } from 'glamor';
18
+ import { BsCheck2Circle, BsFillTelephoneFill } from 'react-icons/bs';
19
+ import { defaultstyles, defaultstylestranslated } from '../../../StylesJS/Customstyles';
20
+ // import { Page_Template_Fetch_API } from '../../../../../../../components/API/WebsiteDesign_API';
21
+ import { IKImage } from 'imagekitio-react';
22
+ import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
23
+ import { HiUser } from 'react-icons/hi';
24
+ import { GrMail } from 'react-icons/gr';
25
+ import { BsBagCheck } from 'react-icons/bs';
26
+ const Select = React.lazy(() => import('react-select'));
27
+
28
+ const Checkout = (props) => {
29
+ const [timer, settimer] = useState(null);
30
+ const langdetect = props.actions.langdetect;
31
+ const lang = props.actions.lang;
32
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
33
+ const routingcountext = props.actions.routingcountext;
34
+ const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
35
+ const CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
36
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
37
+ const templatepropcontext = props.actions.templatepropcontext;
38
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
39
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
40
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
41
+ const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
42
+ const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
43
+ const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
44
+ const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
45
+ const ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
46
+ const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
47
+ const AddOrderMutationContext = props.actions.AddOrderMutationContext;
48
+ const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
49
+ const authdetailsContext = props.actions.authdetailsContext;
50
+ const NotificationManager = props.actions.NotificationManager;
51
+ const queryClient = props.actions.queryClient;
52
+ const [sectionproperties, setsectionproperties] = useState('');
53
+ const [CurrentPageId, setCurrentPageId] = useState('');
54
+
55
+ useEffect(() => {
56
+ var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
57
+ if (cartindex >= 0) {
58
+ setCurrentPageId(cartindex);
59
+ }
60
+ }, []);
61
+ useEffect(() => {
62
+ // var secpropobj = {};
63
+ // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
64
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
65
+ // });
66
+ // setsectionproperties({ ...secpropobj });
67
+ }, [CurrentPageId, props.actions.templatepropcontext]);
68
+ useEffect(() => {
69
+ // if (rops?.actions?.StatePagePropertiesContext != null && rops?.actions?.StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
70
+ var secpropobj = {};
71
+ props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
72
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
73
+ });
74
+ setsectionproperties({ ...secpropobj });
75
+ // }
76
+ }, [props.actions.StatePagePropertiesContext]);
77
+
78
+ useEffect(() => {
79
+ // if (authdetailsContext.loggedin == true) {
80
+ var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
81
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
82
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
83
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
84
+ if (
85
+ // Aya
86
+ !fetchcustomercartQueryContext.isFetching &&
87
+ fetchcustomercartQueryContext.isSuccess &&
88
+ fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
89
+ fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
90
+ // End
91
+ fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
92
+ ) {
93
+ tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
94
+ }
95
+ if (
96
+ // aya
97
+ !fetchcustomercartQueryContext.isFetching &&
98
+ fetchcustomercartQueryContext.isSuccess &&
99
+ fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
100
+ fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
101
+ // end
102
+ fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
103
+ ) {
104
+ tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
105
+ }
106
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
107
+ // } else {
108
+ // routingcountext('');
109
+ // }
110
+ }, []);
111
+
112
+ const cartinfoupdater = (key, value) => {
113
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
114
+ cartarr.data.customercart[key] = value;
115
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
116
+ var payloadobj = {
117
+ stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
118
+ countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
119
+ cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
120
+ address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
121
+ paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
122
+ name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
123
+ email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
124
+ mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
125
+ };
126
+ if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
127
+ clearTimeout(timer);
128
+ settimer(
129
+ setTimeout(() => {
130
+ ChooseState_CountryMutationContext.mutate(payloadobj);
131
+ }, 1500),
132
+ );
133
+ } else {
134
+ ChooseState_CountryMutationContext.mutate(payloadobj);
135
+ }
136
+ };
137
+
138
+ const checkoutstyles = {
139
+ Salepricestyless: css({
140
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
141
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
142
+ color: sectionproperties.prodsalePriceColor,
143
+ show: sectionproperties.prodsalePriceshow,
144
+ transition: '.3s',
145
+ }),
146
+ userinfo_iconcont: css({
147
+ width: sectionproperties.userinfo_iconwidth + 'px',
148
+ height: sectionproperties.userinfo_iconheight + 'px',
149
+ background: sectionproperties.userinfo_iconbg,
150
+ borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
151
+ color: sectionproperties.userinfo_iconcolor,
152
+ }),
153
+ userinfotextstyles: css({
154
+ color: sectionproperties.userinfo_color,
155
+ fontWeight: sectionproperties.userinfo_fontweight,
156
+ fontSize: sectionproperties.userinfo_fontsize + 'px',
157
+ }),
158
+ input_label_name: css({
159
+ color: sectionproperties.form_labelcolor,
160
+ textTransform: sectionproperties.form_labeltexttransform,
161
+ fontWeight: sectionproperties.form_labelfontweight,
162
+ fontSize: sectionproperties.form_labelfontsize + 'px',
163
+ }),
164
+ checkbox: css({
165
+ color: sectionproperties.checkbox_color,
166
+ textTransform: sectionproperties.form_labeltexttransform,
167
+ fontWeight: sectionproperties.form_labelfontweight,
168
+ fontSize: sectionproperties.form_labelfontsize + 'px',
169
+ transition: '.3s',
170
+ ':hover': {
171
+ color: sectionproperties.checkbox_texthovercolor,
172
+ },
173
+ 'input:checked': {
174
+ color: sectionproperties.checkbox_checkedcolor,
175
+ },
176
+ }),
177
+ checkboxinputstyles: css({
178
+ ':hover:not(:checked)': {
179
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
180
+ },
181
+ ':checked': {
182
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
183
+ },
184
+ }),
185
+ svgstyles: css({
186
+ stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
187
+ }),
188
+
189
+ innersectiontitlestyles: css({
190
+ color: sectionproperties.innersection_titlecolor,
191
+ fontSize: sectionproperties.innersection_titlefontsize + 'px',
192
+ fontWeight: sectionproperties.innersection_titlefontweight,
193
+ textTransform: sectionproperties.innersection_titletextTransform,
194
+ }),
195
+ summarysectionstyles: css({
196
+ fontSize: sectionproperties.summary_fontsize + 'px',
197
+ color: sectionproperties.summary_textcolor,
198
+ fontWeight: sectionproperties.summary_textfontweight,
199
+ textTransform: sectionproperties.summary_texttransform,
200
+ textAlign: langdetect == 'en' ? 'left' : 'right',
201
+ }),
202
+
203
+ checkoutbtnstyles: css({
204
+ background: sectionproperties.checkoutBtnbgColor,
205
+ width: sectionproperties.checkoutBtnWidth,
206
+ height: sectionproperties.checkoutBtnHeight,
207
+ borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
208
+ color: sectionproperties.checkoutBtnTextcolor,
209
+ textTransform: sectionproperties.checkoutBtnTexttransform,
210
+ fontWeight: sectionproperties.checkoutBtnTextfontweight,
211
+ fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
212
+ border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
213
+ transition: '.3s',
214
+ ':hover': {
215
+ background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
216
+ color: sectionproperties.checkoutBtnTextcoloronhover,
217
+ },
218
+ }),
219
+ productNameStyles: css({
220
+ color: sectionproperties.prodNameColor,
221
+ fontSize: sectionproperties.prodNameFontSize + 'px',
222
+ textTransform: sectionproperties.prodNameTextTranform,
223
+ fontWeight: sectionproperties.prodNameFontWeight,
224
+ }),
225
+ productPricestyles: css({
226
+ color: sectionproperties.prodPriceColor,
227
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
228
+ fontWeight: sectionproperties.prodPriceFontWeight,
229
+ }),
230
+ productSalePricestyles: css({
231
+ color: sectionproperties.prodsalePriceColor,
232
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
233
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
234
+ }),
235
+ imagecont: css({
236
+ width: '8vh',
237
+ height: '8vh',
238
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
239
+ backgroundColor: sectionproperties.prodimage_bgcolor,
240
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
241
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
242
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
243
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
244
+ display: 'flex',
245
+ alignItems: 'center',
246
+ justifyContent: 'center',
247
+ backgroundRepeat: 'no-repeat',
248
+ backgroundSize: 'cover',
249
+ backgroundPosition: 'center',
250
+ position: 'relative',
251
+ }),
252
+ applybtnstyles: css({
253
+ width: sectionproperties.applybtn_width + 'px',
254
+ height: sectionproperties.applybtn_height + 'px',
255
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
256
+ textTransform: sectionproperties.applybtn_texttransform,
257
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
258
+ color: sectionproperties.applybtn_textColor,
259
+ fontWeight: sectionproperties.applybtn_Textfontweight,
260
+ background: sectionproperties.applybtn_bgColor,
261
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
262
+ transition: '.3s',
263
+ ':hover': {
264
+ background: sectionproperties.applybtn_bgColoronhover,
265
+ color: sectionproperties.applybtn_Textcoloronhover,
266
+ },
267
+ }),
268
+ inputfiledstyles: css({}),
269
+ checkorderbtnstyles: css({
270
+ background: sectionproperties.generalbtn_bgColor,
271
+ width: sectionproperties.generalbtn_width,
272
+ height: sectionproperties.generalbtn_height,
273
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
274
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
275
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
276
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
277
+ color: sectionproperties.generalbtn_textColor,
278
+ textTransform: sectionproperties.generalbtn_texttransform,
279
+ fontWeight: sectionproperties.generalbtn_fontweight,
280
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
281
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
282
+ transition: '.3s',
283
+ ':hover': {
284
+ background: sectionproperties.generalbtn_bgColoronhover,
285
+ color: sectionproperties.generalbtn_textColoronhover,
286
+ },
287
+ }),
288
+ input_label_name: css({
289
+ color: sectionproperties.form_labelcolor,
290
+ textTransform: sectionproperties.form_labeltexttransform,
291
+ fontWeight: sectionproperties.form_labelfontweight,
292
+ fontSize: sectionproperties.form_labelfontsize + 'px',
293
+ }),
294
+ };
295
+
296
+ const Mycart = () => {
297
+ return (
298
+ <div className="row m-0 w-100">
299
+ <div className="col-lg-12 d-flex align-items-center p-0">
300
+ <p
301
+ style={{
302
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
303
+ color: sectionproperties.sectionTitleColor,
304
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
305
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
306
+ textTransform: sectionproperties.sectionTitleTextTransform,
307
+ fontWeight: sectionproperties.sectionTitleFontWeight,
308
+ }}
309
+ >
310
+ {lang.mycart}
311
+ </p>
312
+ </div>
313
+ {ChooseState_CountryMutationContext.isLoading && <CircularProgress />}
314
+ {!ChooseState_CountryMutationContext.isLoading && (
315
+ <div className="row m-0 w-100">
316
+ <div className="col-lg-12 p-0">
317
+ {fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
318
+ return (
319
+ <div
320
+ className={langdetect == 'en' ? 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pl-2 pr-0 mb-3' : 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pr-2 pl-0 mb-3'}
321
+ style={{
322
+ background: sectionproperties.summary_sectionbgcolor,
323
+ borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
324
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
325
+ }}
326
+ >
327
+ <div className="row m-0 w-100 d-flex">
328
+ <div className={`${checkoutstyles.imagecont}`}>
329
+ <IKImage
330
+ urlEndpoint={IKurlEndpoint}
331
+ publicKey={IKpublicKey}
332
+ path={
333
+ item.productinfo.hasvariants == 0
334
+ ? '/tr:w-300,h-300/' + item.productinfo.productmainimage
335
+ : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
336
+ }
337
+ style={{
338
+ width: '100%',
339
+ height: '100%',
340
+ objectFit: 'cover',
341
+ }}
342
+ loading="lazy"
343
+ />
344
+ </div>
345
+ <div className="col-lg-7 col-md-7 col-sm-7">
346
+ <div className="row m-0 w-100">
347
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0">
348
+ <p className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 d-flex justify-content-start '}>
349
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
350
+ </p>
351
+ </div>
352
+ <div className="col-lg-12 p-0">
353
+ <p className="m-0 p-0 font-weight-500 text-light d-flex justify-content-start">
354
+ {lang.qty}: {item.quantity}
355
+ </p>
356
+ </div>
357
+ {item.productinfo.hasvariants == 1 &&
358
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
359
+ return (
360
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
361
+ <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
362
+ <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>{variantitem.optionvalue}</p>
363
+ </div>
364
+ );
365
+ })}
366
+ </div>
367
+ </div>
368
+ <div className="col-lg-3 col-md-3 col-sm-2 p-0">
369
+ <div className="row m-0 w-100 h-100">
370
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
371
+ {item.productinfo.hasvariants == 0 && (
372
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
373
+ {item.productinfo.hassale == 0 && (
374
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
375
+ <p
376
+ className={
377
+ langdetect == 'en'
378
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
379
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
380
+ }
381
+ >
382
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
383
+ </p>
384
+ </div>
385
+ )}
386
+ {item.productinfo.hassale == 1 && (
387
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
388
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
389
+ <p
390
+ className={
391
+ langdetect == 'en'
392
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
393
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
394
+ }
395
+ >
396
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice} {langdetect == 'en' ? '' : 'ج.م'}
397
+ </p>
398
+ </div>
399
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
400
+ <p
401
+ className={
402
+ langdetect == 'en'
403
+ ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
404
+ : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
405
+ }
406
+ >
407
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
408
+ </p>
409
+ </div>
410
+ </div>
411
+ )}
412
+ </div>
413
+ )}
414
+ {item.productinfo.hasvariants == 1 && (
415
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
416
+ {item.productinfo.variantinfo.hassale == 0 && (
417
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
418
+ <p
419
+ className={
420
+ langdetect == 'en'
421
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
422
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
423
+ }
424
+ >
425
+ {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.productinfo.variantinfo.variantprice}
426
+ </p>
427
+ </div>
428
+ )}
429
+ {item.productinfo.variantinfo.hassale == 1 && (
430
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
431
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
432
+ <p
433
+ className={
434
+ langdetect == 'en'
435
+ ? `${checkoutstyles.productPricestyles}` +
436
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
437
+ : `${checkoutstyles.productPricestyles}` +
438
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
439
+ }
440
+ >
441
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
442
+ {langdetect == 'en' ? '' : 'ج.م'}
443
+ </p>
444
+ </div>
445
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
446
+ <p
447
+ className={
448
+ langdetect == 'en'
449
+ ? `${checkoutstyles.Salepricestyless}` +
450
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
451
+ : `${checkoutstyles.Salepricestyless}` +
452
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
453
+ }
454
+ >
455
+ {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice} {langdetect == 'en' ? '' : 'ج.م'}
456
+ </p>
457
+ </div>
458
+ </div>
459
+ )}
460
+ </div>
461
+ )}
462
+ </div>
463
+ </div>
464
+ </div>
465
+ </div>
466
+ </div>
467
+ );
468
+ })}
469
+ <div
470
+ className={' row m-0 w-100 p-3'}
471
+ style={{
472
+ background: sectionproperties.summary_sectionbgcolor,
473
+ borderRadius: sectionproperties.summary_sectionborderradius + 'px',
474
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
475
+ }}
476
+ >
477
+ <div className="col-lg-12 p-0 mb-1">
478
+ <div className="col-lg-12 p-0 mb-4">
479
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 p-0 mb-2 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
480
+ <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
481
+ <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
482
+ <input
483
+ type="text"
484
+ className={`${formstyles.form_control}`}
485
+ style={{
486
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
487
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
488
+ color: sectionproperties.inputfieldcolor,
489
+ backgroundColor: sectionproperties.input_bgcolor,
490
+ }}
491
+ placeholder={lang.giftcarddicountcode}
492
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
493
+ onChange={(event) => {
494
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
495
+ cartarr.data.customercart.couponname = event.target.value;
496
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
497
+ }}
498
+ disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
499
+ />
500
+ </div>
501
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
502
+ <button
503
+ className={` ${checkoutstyles.applybtnstyles}`}
504
+ onClick={() => {
505
+ if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
506
+ var payloadobj = {
507
+ couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
508
+ functype: 'add',
509
+ };
510
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
511
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
512
+ } else {
513
+ NotificationManager.warning('', 'Please Type Promo Code');
514
+ }
515
+ } else {
516
+ var payloadobj = {
517
+ functype: 'delete',
518
+ };
519
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
520
+ }
521
+ }}
522
+ disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
523
+ >
524
+ <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
525
+ {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
526
+ ? langdetect == 'en'
527
+ ? 'Remove'
528
+ : 'حذف'
529
+ : langdetect == 'en'
530
+ ? 'Apply'
531
+ : 'تطبيق'}
532
+ </span>
533
+ <div
534
+ className={
535
+ ApplyPromoCodeMutationContext.isLoading
536
+ ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
537
+ : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
538
+ }
539
+ >
540
+ <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
541
+ </div>
542
+ </button>
543
+ </div>
544
+ </div>
545
+ </div>
546
+ <div className="row m-0 w-100">
547
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
548
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
549
+ </div>
550
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
551
+ <p
552
+ className={
553
+ langdetect == 'en'
554
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
555
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
556
+ }
557
+ >
558
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalprice} {langdetect == 'en' ? '' : 'ج.م'}
559
+ </p>
560
+ </div>
561
+ </div>
562
+ </div>
563
+ {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
564
+ <div className="col-lg-12 p-0 mb-1">
565
+ <div className="row m-0 w-100">
566
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
567
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
568
+ </div>
569
+
570
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
571
+ <p
572
+ className={
573
+ langdetect == 'en'
574
+ ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
575
+ : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
576
+ }
577
+ >
578
+ {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
579
+ <span>
580
+ - {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice}{' '}
581
+ {langdetect == 'en' ? '' : 'ج.م'}
582
+ </span>
583
+ )}
584
+ {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
585
+ </p>
586
+ </div>
587
+ </div>
588
+ </div>
589
+ )}
590
+ <div className="col-lg-12 p-0">
591
+ <div className="row m-0 w-100">
592
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
593
+ <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>{lang.shippingfees}</p>
594
+ </div>
595
+ {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
596
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
597
+ <p
598
+ className={
599
+ langdetect == 'en'
600
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
601
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
602
+ }
603
+ >
604
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice} {langdetect == 'en' ? '' : 'ج.م'}
605
+ </p>
606
+ </div>
607
+ )}
608
+ {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
609
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
610
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
611
+ {lang.outofzone}
612
+ </p>
613
+ </div>
614
+ )}
615
+ </div>
616
+ </div>
617
+ <div className="col-lg-12 p-0">
618
+ <hr className="mt-2 mb-2" />
619
+ </div>
620
+ <div className="col-lg-12 p-0">
621
+ <div className="row m-0 w-100">
622
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
623
+ <p
624
+ className="d-flex align-items-start"
625
+ style={{
626
+ fontSize: sectionproperties.total_fontsize + 'px',
627
+ fontWeight: sectionproperties.total_fontweight,
628
+ textTransform: sectionproperties.total_texttransform,
629
+ color: sectionproperties.total_color,
630
+ }}
631
+ >
632
+ {lang.total}
633
+ </p>
634
+ </div>
635
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
636
+ <div className="row m-0 w-100">
637
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
638
+ <p
639
+ className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
640
+ style={{
641
+ fontSize: sectionproperties.total_fontsize + 'px',
642
+ fontWeight: sectionproperties.total_fontweight,
643
+ textTransform: sectionproperties.total_texttransform,
644
+ color: sectionproperties.total_color,
645
+ }}
646
+ >
647
+ {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount}{' '}
648
+ {langdetect == 'en' ? '' : 'ج.م'}
649
+ </p>
650
+ </div>
651
+ </div>
652
+ </div>
653
+ </div>
654
+ </div>
655
+ <div className="col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3">
656
+ <button
657
+ className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
658
+ onClick={() => {
659
+ var payloadobj = {};
660
+ AddOrderMutationContext.mutate(payloadobj);
661
+ }}
662
+ disabled={AddOrderMutationContext.isLoading ? true : false}
663
+ >
664
+ {AddOrderMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
665
+ {!AddOrderMutationContext.isLoading
666
+ ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
667
+ ? lang.continuetopayment
668
+ : authdetailsContext.loggedin
669
+ ? lang.confirmorder
670
+ : lang.confirmorder + ' ' + lang.asaguest
671
+ : ''}
672
+ </button>
673
+ </div>
674
+ </div>
675
+ </div>
676
+ </div>
677
+ )}
678
+ </div>
679
+ );
680
+ };
681
+ return (
682
+ <div className={'row m-0 w-100 mb-3 d-flex justify-content-center p-sm-0 mt-sm-3'}>
683
+ <div
684
+ className={'col-lg-12 w-100 d-flex justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2'}
685
+ style={{
686
+ marginTop: sectionproperties.marginTop + 'px',
687
+ marginBottom: sectionproperties.marginBottom + 'px',
688
+ paddingLeft: sectionproperties.paddingLeft + 'px',
689
+ paddingRight: sectionproperties.paddingRight + 'px',
690
+ paddingTop: sectionproperties.paddingTop + 'px',
691
+ paddingBottom: sectionproperties.paddingBottom + 'px',
692
+ background: sectionproperties.backgroundColor,
693
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
694
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
695
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
696
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
697
+ }}
698
+ >
699
+ <div className={'row m-0 w-100 justify-content-center '}>
700
+ {/* <div className={langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0 d-none d-md-block p-md-0' : 'col-lg-4 col-md-12 pl-0 d-none d-md-block p-md-0'}>
701
+ <Mycart />
702
+ </div> */}
703
+ <div className={langdetect == 'en' ? ' col-lg-8 col-md-12 pl-0 p-md-0 ' : ' col-lg-8 col-md-12 pr-0 p-md-0 '}>
704
+ <div className="col-lg-12 d-flex align-items-center p-0">
705
+ <p
706
+ style={{
707
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
708
+ color: sectionproperties.sectionTitleColor,
709
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
710
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
711
+ textTransform: sectionproperties.sectionTitleTextTransform,
712
+ fontWeight: sectionproperties.sectionTitleFontWeight,
713
+ }}
714
+ >
715
+ {lang.checkout}
716
+ </p>
717
+ </div>
718
+ {/* Logged in information */}
719
+ {authdetailsContext.loggedin && (
720
+ <div className="col-lg-12 p-0">
721
+ <div
722
+ className="pl-3 pr-3 pt-2 pb-2"
723
+ style={{
724
+ background: sectionproperties.userinfo_sectionbgcolor,
725
+ borderRadius: sectionproperties.userinfo_borderradius + 'px',
726
+ marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
727
+ marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
728
+ border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
729
+ }}
730
+ >
731
+ <div className="row m-0 w-100">
732
+ <div className={`${checkoutstyles.userinfo_iconcont}` + ' d-flex align-items-center justify-content-center '}>
733
+ <BsCheck2Circle size={20} />
734
+ </div>
735
+ <div className="col-lg-11 col-md-10 col-sm-10 p-0">
736
+ <div className="row m-0 w-100">
737
+ <div
738
+ className="col-lg-12 d-flex align-items-center pl-2 pr-2"
739
+ style={{
740
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
741
+ color: sectionproperties.userinfo_titlecolor,
742
+ fontWeight: sectionproperties.userinfo_titlefontweight,
743
+ }}
744
+ >
745
+ {lang.loggedinas}
746
+ </div>
747
+
748
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '}>
749
+ <div className="m-0 p-0 d-flex align-items-center">
750
+ <i
751
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
752
+ style={{
753
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
754
+ color: sectionproperties.userinfotext_iconcolor,
755
+ marginRight: langdetect == 'en' ? '5px' : 0,
756
+ marginLeft: langdetect == 'en' ? 0 : '5px',
757
+ }}
758
+ >
759
+ <HiUser />
760
+ </i>
761
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.name}</p>
762
+ </div>
763
+ </div>
764
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
765
+ <div className="m-0 p-0 d-flex align-items-center">
766
+ <i
767
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
768
+ style={{
769
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
770
+ color: sectionproperties.userinfotext_iconcolor,
771
+ marginRight: langdetect == 'en' ? '5px' : 0,
772
+ marginLeft: langdetect == 'en' ? 0 : '5px',
773
+ }}
774
+ >
775
+ <BsFillTelephoneFill />
776
+ </i>
777
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.mobile}</p>
778
+ </div>
779
+ </div>
780
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
781
+ <div className="m-0 p-0 d-flex align-items-center">
782
+ <i
783
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
784
+ style={{
785
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
786
+ color: sectionproperties.userinfotext_iconcolor,
787
+ marginRight: langdetect == 'en' ? '5px' : 0,
788
+ marginLeft: langdetect == 'en' ? 0 : '5px',
789
+ }}
790
+ >
791
+ <GrMail />
792
+ </i>
793
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.email}</p>
794
+ </div>
795
+ </div>
796
+ </div>
797
+ </div>
798
+ <div
799
+ className="col-lg-12 justify-content-end float-right pl-2 pr-2"
800
+ style={{
801
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
802
+ color: sectionproperties.userinfo_titlecolor,
803
+ fontWeight: sectionproperties.userinfo_titlefontweight,
804
+ textAlign: 'right',
805
+ textDecoration: 'underline',
806
+ cursor: 'pointer',
807
+ position: 'absolute',
808
+ right: 10,
809
+ top: 10,
810
+ }}
811
+ onClick={() => {
812
+ routingcountext(StaticPagesLinksContext.accountinfo);
813
+ }}
814
+ >
815
+ {lang.update}
816
+ </div>
817
+ </div>
818
+ </div>
819
+ </div>
820
+ )}
821
+ {/* Address Details */}
822
+ <div className="col-lg-12 p-0">
823
+ <div
824
+ style={{
825
+ marginTop: sectionproperties.contactinfo_sectionmarginTop + 'px',
826
+ marginBottom: sectionproperties.contactinfo_sectionmarginbottom + 'px',
827
+ background: sectionproperties.contactinfo_sectionbgcolor,
828
+ borderRadius: sectionproperties.contactinfo_sectionborderradius + 'px',
829
+ border: sectionproperties.contactinfo_borderwidth + 'px solid ' + sectionproperties.contactinfo_sectionbordercolor,
830
+ }}
831
+ >
832
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
833
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>
834
+ {authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails}
835
+ </p>
836
+ </div>
837
+ <div className="col-lg-12 p-0">
838
+ <hr className="mt-2 mb-2" />
839
+ </div>
840
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3 pb-3">
841
+ {!authdetailsContext.loggedin && (
842
+ <>
843
+ <div className="col-lg-4 col-md-12 mb-3">
844
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.name}</label>
845
+ <input
846
+ type={'text'}
847
+ className={`${formstyles.form_control}`}
848
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.name}
849
+ onChange={(event) => {
850
+ cartinfoupdater('name', event.target.value);
851
+ }}
852
+ style={{
853
+ resize: 'none',
854
+ fontWeight: sectionproperties.inputtextfontweight,
855
+ background: sectionproperties.input_bgcolor,
856
+ color: sectionproperties.inputfieldcolor,
857
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
858
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
859
+ boxShadow: 'none',
860
+ }}
861
+ />
862
+ </div>
863
+ <div className="col-lg-4 col-md-12 mb-3">
864
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'}</label>
865
+ <input
866
+ type={'text'}
867
+ className={`${formstyles.form_control}`}
868
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
869
+ onChange={(event) => {
870
+ cartinfoupdater('mobile', event.target.value);
871
+ }}
872
+ style={{
873
+ resize: 'none',
874
+ fontWeight: sectionproperties.inputtextfontweight,
875
+ background: sectionproperties.input_bgcolor,
876
+ color: sectionproperties.inputfieldcolor,
877
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
878
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
879
+ boxShadow: 'none',
880
+ }}
881
+ />
882
+ </div>
883
+ <div className="col-lg-4 col-md-12 mb-3">
884
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.email}</label>
885
+ <input
886
+ type={'text'}
887
+ className={`${formstyles.form_control}`}
888
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.email}
889
+ onChange={(event) => {
890
+ cartinfoupdater('email', event.target.value);
891
+ }}
892
+ style={{
893
+ resize: 'none',
894
+ fontWeight: sectionproperties.inputtextfontweight,
895
+ background: sectionproperties.input_bgcolor,
896
+ color: sectionproperties.inputfieldcolor,
897
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
898
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
899
+ boxShadow: 'none',
900
+ }}
901
+ />
902
+ </div>
903
+ </>
904
+ )}
905
+ <div className="col-lg-4 col-md-12 mb-3">
906
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}> {lang.country}</label>
907
+ {fetchTabexCountriesQueryContext.isFetching && (
908
+ <div className="w-100">
909
+ <CircularProgress color="black" width="20px" height="20px" duration="1s" />
910
+ </div>
911
+ )}
912
+ {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
913
+ <Select
914
+ options={fetchTabexCountriesQueryContext.data.data.countries}
915
+ getOptionLabel={(option) => option.name}
916
+ getOptionValue={(option) => option.id}
917
+ value={fetchTabexCountriesQueryContext.data.data.countries.filter(
918
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
919
+ )}
920
+ onChange={(option) => {
921
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
922
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
923
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
924
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
925
+ cartinfoupdater('countryid', option.id);
926
+ }}
927
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
928
+ placeholder={lang.choosecountry}
929
+ isSearchable={true}
930
+ />
931
+ )}
932
+ </div>
933
+ <div className="col-lg-4 col-md-12 mb-3">
934
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.stategov}</label>
935
+ {fetchTabexStatesQueryContext.isFetching && (
936
+ <div className="w-100">
937
+ <CircularProgress color="black" width="20px" height="20px" duration="1s" />
938
+ </div>
939
+ )}
940
+ {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
941
+ <Select
942
+ options={fetchTabexStatesQueryContext.data.data.states}
943
+ getOptionLabel={(option) => option.name}
944
+ getOptionValue={(option) => option.id}
945
+ value={fetchTabexStatesQueryContext.data.data.states.filter((option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.stateid)}
946
+ onChange={(option) => {
947
+ if (option.id.length != 0 && fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0) {
948
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
949
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
950
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
951
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
952
+ cartinfoupdater('stateid', option.id);
953
+ } else {
954
+ NotificationManager.warning('', 'Please Choose Country Or State');
955
+ }
956
+ }}
957
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
958
+ placeholder={lang.choosestategov}
959
+ isSearchable={true}
960
+ />
961
+ )}
962
+ </div>
963
+ <div className="col-lg-4 col-md-12 mb-3">
964
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.city}</label>
965
+ {fetchTabexCitiesQueryContext.isFetching && (
966
+ <div className="w-100">
967
+ <CircularProgress color="black" width="20px" height="20px" duration="1s" />
968
+ </div>
969
+ )}
970
+ {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
971
+ <Select
972
+ options={fetchTabexCitiesQueryContext.data.data.cities}
973
+ getOptionLabel={(option) => option.name}
974
+ getOptionValue={(option) => option.id}
975
+ value={fetchTabexCitiesQueryContext.data.data.cities.filter((option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.cityid)}
976
+ onChange={(option) => {
977
+ cartinfoupdater('cityid', option.id);
978
+ }}
979
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
980
+ placeholder={lang.choosecity}
981
+ isSearchable={true}
982
+ />
983
+ )}
984
+ </div>
985
+ <div className="col-lg-12 mb-3">
986
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.shippingaddress}</label>
987
+ <TextareaAutosize
988
+ type={'text'}
989
+ className={`${formstyles.form_control}`}
990
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.address}
991
+ onChange={(event) => {
992
+ cartinfoupdater('address', event.target.value);
993
+ }}
994
+ style={{
995
+ resize: 'none',
996
+ fontWeight: sectionproperties.inputtextfontweight,
997
+ background: sectionproperties.input_bgcolor,
998
+ color: sectionproperties.inputfieldcolor,
999
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1000
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1001
+ boxShadow: 'none',
1002
+ }}
1003
+ />
1004
+ </div>
1005
+ </div>
1006
+ </div>
1007
+ </div>
1008
+ {/* Payment */}
1009
+ <div className="col-lg-12 p-0 w-100">
1010
+ <div
1011
+ style={{
1012
+ background: sectionproperties.payment_sectionbgcolor,
1013
+ borderRadius: sectionproperties.payment_borderradius + 'px',
1014
+ border: sectionproperties.payment_borderwidth + 'px solid ' + sectionproperties.payment_sectionbordercolor,
1015
+ }}
1016
+ >
1017
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1018
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentmethod}</p>
1019
+ </div>
1020
+ <div className="col-lg-12 p-0">
1021
+ <hr className="mt-2 mb-2" />
1022
+ </div>
1023
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3">
1024
+ {authdetailsContext.instinfo.acceptCOD == 1 && (
1025
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1026
+ <label
1027
+ className={
1028
+ langdetect == 'en'
1029
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1030
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated}` + ' d-flex mb-0 '
1031
+ }
1032
+ for="codcheckbox"
1033
+ >
1034
+ <input
1035
+ id={'codcheckbox'}
1036
+ type="checkbox"
1037
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1038
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cod' ? true : false}
1039
+ onChange={() => {
1040
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cod') {
1041
+ cartinfoupdater('paymentmethod', 'cod');
1042
+ }
1043
+ }}
1044
+ />
1045
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1046
+ <path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
1047
+ </svg>
1048
+ <p className={' ml-2 mb-0 cursor-pointer wordbreak mr-2'} style={{}}>
1049
+ {lang.cod}
1050
+ </p>
1051
+ </label>
1052
+ </div>
1053
+ )}
1054
+ {authdetailsContext.instinfo.acceptCardOnDelivery == 1 && (
1055
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1056
+ <label
1057
+ className={
1058
+ langdetect == 'en'
1059
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1060
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1061
+ }
1062
+ >
1063
+ <input
1064
+ type="checkbox"
1065
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1066
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cardondelivery' ? true : false}
1067
+ onChange={() => {
1068
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cardondelivery') {
1069
+ cartinfoupdater('paymentmethod', 'cardondelivery');
1070
+ }
1071
+ }}
1072
+ />
1073
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1074
+ <path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
1075
+ </svg>
1076
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.cardondelivery}</p>
1077
+ </label>
1078
+ </div>
1079
+ )}
1080
+ {authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && (
1081
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1082
+ <label
1083
+ className={
1084
+ langdetect == 'en'
1085
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1086
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1087
+ }
1088
+ >
1089
+ <input
1090
+ type="checkbox"
1091
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1092
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment' ? true : false}
1093
+ onChange={() => {
1094
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'onlinepayment') {
1095
+ cartinfoupdater('paymentmethod', 'onlinepayment');
1096
+ }
1097
+ }}
1098
+ />
1099
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1100
+ <path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
1101
+ </svg>
1102
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.onlinepayment}</p>
1103
+ </label>
1104
+ </div>
1105
+ )}
1106
+ </div>
1107
+ </div>
1108
+ </div>
1109
+
1110
+ {fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment1' && (
1111
+ <div className="col-lg-12 p-0 w-100 mb-3">
1112
+ <div
1113
+ style={{
1114
+ background: sectionproperties.payment_sectionbgcolor,
1115
+ borderRadius: sectionproperties.payment_borderradius + 'px',
1116
+ borderColor: sectionproperties.payment_sectionbordercolor,
1117
+ }}
1118
+ >
1119
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1120
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentcardinformation}</p>
1121
+ </div>
1122
+ <div className="col-lg-12 p-0">
1123
+ <hr className="mt-2 mb-2" />
1124
+ </div>
1125
+ <div className="w-100 row m-0 pl-3 pr-3 pt-2 pb-2">
1126
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0">
1127
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cardnumber}</label>
1128
+ <input
1129
+ className={formstyles.form_controlcheckout}
1130
+ type="text"
1131
+ textplaceholder=""
1132
+ onChange={(event) => {}}
1133
+ style={{
1134
+ fontWeight: sectionproperties.inputtextfontweight,
1135
+ background: sectionproperties.input_bgcolor,
1136
+ color: sectionproperties.inputfieldcolor,
1137
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1138
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1139
+ }}
1140
+ />
1141
+ </div>
1142
+ <div className="w-100 row m-0">
1143
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1144
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.year}</label>
1145
+ <input
1146
+ className={formstyles.form_controlcheckout}
1147
+ type="text"
1148
+ textplaceholder=""
1149
+ onChange={(event) => {}}
1150
+ style={{
1151
+ fontWeight: sectionproperties.inputtextfontweight,
1152
+ background: sectionproperties.input_bgcolor,
1153
+ color: sectionproperties.inputfieldcolor,
1154
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1155
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1156
+ }}
1157
+ />
1158
+ </div>
1159
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1160
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.month}</label>
1161
+ <input
1162
+ className={formstyles.form_controlcheckout}
1163
+ type="text"
1164
+ textplaceholder=""
1165
+ onChange={(event) => {}}
1166
+ style={{
1167
+ fontWeight: sectionproperties.inputtextfontweight,
1168
+ background: sectionproperties.input_bgcolor,
1169
+ color: sectionproperties.inputfieldcolor,
1170
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1171
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1172
+ }}
1173
+ />
1174
+ </div>
1175
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1176
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cvv}</label>
1177
+ <input
1178
+ className={formstyles.form_controlcheckout}
1179
+ type="text"
1180
+ textplaceholder=""
1181
+ onChange={(event) => {}}
1182
+ style={{
1183
+ fontWeight: sectionproperties.inputtextfontweight,
1184
+ background: sectionproperties.input_bgcolor,
1185
+ color: sectionproperties.inputfieldcolor,
1186
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1187
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1188
+ }}
1189
+ />
1190
+ </div>
1191
+ </div>
1192
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3">
1193
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.nameoncard}</label>
1194
+ <input
1195
+ className={formstyles.form_controlcheckout}
1196
+ type="text"
1197
+ textplaceholder=""
1198
+ onChange={(event) => {}}
1199
+ style={{
1200
+ fontWeight: sectionproperties.inputtextfontweight,
1201
+ background: sectionproperties.input_bgcolor,
1202
+ color: sectionproperties.inputfieldcolor,
1203
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1204
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1205
+ }}
1206
+ />
1207
+ </div>
1208
+ </div>
1209
+ </div>
1210
+ </div>
1211
+ )}
1212
+ </div>
1213
+ <div className={langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0' : 'col-lg-4 col-md-12 pl-0'}>{Mycart()}</div>
1214
+ </div>
1215
+ </div>
1216
+ {/* )} */}
1217
+ </div>
1218
+ );
1219
+ };
1220
+ export default Checkout;