tabexseriescomponents 0.2.1280 → 0.2.1283

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 (389) hide show
  1. package/dist/index.cjs.js +40 -258
  2. package/dist/index.esm.js +40 -258
  3. package/dist/index.umd.js +40 -258
  4. package/package.json +1 -1
  5. package/srcbefore27-11/Contexts/LanguageContext.jsx +0 -408
  6. package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +0 -36
  7. package/srcbefore27-11/Imagekitconfig copy.jsx +0 -46
  8. package/srcbefore27-11/Imagekitconfig.jsx +0 -178
  9. package/srcbefore27-11/StylesJS/Customstyles.js +0 -456
  10. package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -538
  11. package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +0 -299
  12. package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  13. package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  14. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  15. package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +0 -733
  16. package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  17. package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  18. package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  19. package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +0 -1074
  20. package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  21. package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -293
  22. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +0 -512
  23. package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +0 -513
  24. package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  25. package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  26. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  27. package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -184
  28. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  29. package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -208
  30. package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
  31. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
  32. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -145
  33. package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
  34. package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  35. package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -605
  36. package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -817
  37. package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  38. package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  39. package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  40. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  41. package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
  42. package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  43. package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  44. package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  45. package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  46. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  47. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  48. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  49. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  50. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  51. package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -731
  52. package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  53. package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  54. package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -138
  55. package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
  56. package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -600
  57. package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  58. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  59. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -2321
  60. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -1311
  61. package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +0 -1292
  62. package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  63. package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  64. package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
  65. package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  66. package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +0 -660
  67. package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -759
  68. package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  69. package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +0 -731
  70. package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +0 -414
  71. package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
  72. package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +0 -776
  73. package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  74. package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +0 -430
  75. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +0 -1970
  76. package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +0 -2015
  77. package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  78. package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -582
  79. package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -1165
  80. package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -646
  81. package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  82. package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -332
  83. package/srcbefore27-11/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  84. package/srcbefore27-11/TabexComponents/Generalfiles/images/noimage.png +0 -0
  85. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  86. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  87. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  88. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  89. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  90. package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  91. package/srcbefore27-11/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  92. package/srcbefore27-11/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  93. package/srcbefore27-11/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  94. package/srcbefore27-11/TabexComponents/Generalfiles/images/usflag.png +0 -0
  95. package/srcbefore27-11/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  96. package/srcbefore27-11/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1264
  97. package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +0 -375
  98. package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1056
  99. package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1498
  100. package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1289
  101. package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  102. package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -907
  103. package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +0 -358
  104. package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -875
  105. package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  106. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  107. package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +0 -3414
  108. package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -777
  109. package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -933
  110. package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -710
  111. package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  112. package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -1347
  113. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1566
  114. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  115. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  116. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
  117. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -7163
  118. package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  119. package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -941
  120. package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -80
  121. package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +0 -846
  122. package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -1198
  123. package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +0 -385
  124. package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -784
  125. package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1186
  126. package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -3692
  127. package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -266
  128. package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -860
  129. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -950
  130. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +0 -1052
  131. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
  132. package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  133. package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  134. package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +0 -610
  135. package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1049
  136. package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1095
  137. package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -979
  138. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  139. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  140. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -872
  141. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +0 -895
  142. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  143. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  144. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
  145. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  146. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  147. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -421
  148. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
  149. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
  150. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -822
  151. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +0 -789
  152. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +0 -787
  153. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
  154. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  155. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
  156. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -295
  157. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +0 -120
  158. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -119
  159. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
  160. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  161. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -489
  162. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  163. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  164. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -633
  165. package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -509
  166. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  167. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  168. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  169. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -2323
  170. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
  171. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
  172. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
  173. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
  174. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +0 -2065
  175. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
  176. package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  177. package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  178. package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -966
  179. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
  180. package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -1577
  181. package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -596
  182. package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  183. package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
  184. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  185. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -394
  186. package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +0 -174
  187. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  188. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -651
  189. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
  190. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +0 -1017
  191. package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  192. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -3027
  193. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  194. package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +0 -103
  195. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +0 -49
  196. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  197. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -384
  198. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +0 -1576
  199. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -1989
  200. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  201. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  202. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  203. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  204. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -474
  205. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  206. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -665
  207. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  208. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  209. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
  210. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  211. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  212. package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -741
  213. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +0 -423
  214. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  215. package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -636
  216. package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
  217. package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -234
  218. package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -306
  219. package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -364
  220. package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -1000
  221. package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  222. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  223. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -2506
  224. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  225. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +0 -1999
  226. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  227. package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  228. package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +0 -79
  229. package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
  230. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  231. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  232. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +0 -3459
  233. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
  234. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
  235. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
  236. package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  237. package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
  238. package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  239. package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  240. package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  241. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  242. package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +0 -616
  243. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -693
  244. package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +0 -173
  245. package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1831
  246. package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  247. package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
  248. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  249. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  250. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -268
  251. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -190
  252. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  253. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -224
  254. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +0 -136
  255. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -347
  256. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -262
  257. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -5566
  258. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  259. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
  260. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
  261. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  262. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +0 -3101
  263. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -3047
  264. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +0 -2103
  265. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +0 -2189
  266. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +0 -2166
  267. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +0 -2714
  268. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -2206
  269. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +0 -1158
  270. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -1117
  271. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +0 -1043
  272. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +0 -1040
  273. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -905
  274. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  275. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  276. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
  277. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
  278. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
  279. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
  280. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
  281. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
  282. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
  283. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
  284. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
  285. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
  286. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
  287. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
  288. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -928
  289. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
  290. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
  291. package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
  292. package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
  293. package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -346
  294. package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -367
  295. package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -222
  296. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  297. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  298. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1505
  299. package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +0 -1476
  300. package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  301. package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
  302. package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -219
  303. package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  304. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  305. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  306. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  307. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  308. package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  309. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
  310. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
  311. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  312. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  313. package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  314. package/srcbefore27-11/button.jsx +0 -40
  315. package/srcbefore27-11/index.jsx +0 -353
  316. package/srcbefore27-11/styles/Home.module.css +0 -129
  317. package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +0 -14
  318. package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  319. package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +0 -189
  320. package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  321. package/srcbefore27-11/styles/cards/Productcard6.module.css +0 -9
  322. package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +0 -94
  323. package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  324. package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  325. package/srcbefore27-11/styles/cards/card23.module.css +0 -60
  326. package/srcbefore27-11/styles/cards/categorycard.module.css +0 -84
  327. package/srcbefore27-11/styles/cards/categorycard3.module.css +0 -50
  328. package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +0 -40
  329. package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +0 -79
  330. package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +0 -139
  331. package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +0 -18
  332. package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
  333. package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  334. package/srcbefore27-11/styles/general/bootstrap.css +0 -4763
  335. package/srcbefore27-11/styles/general/dropdown.css +0 -206
  336. package/srcbefore27-11/styles/general/editorbardropdown.module.css +0 -94
  337. package/srcbefore27-11/styles/general/filter.module.css +0 -108
  338. package/srcbefore27-11/styles/general/form.module.css +0 -255
  339. package/srcbefore27-11/styles/general/general.module.css +0 -872
  340. package/srcbefore27-11/styles/general/image-gallery.css +0 -531
  341. package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +0 -52
  342. package/srcbefore27-11/styles/general/react-phone-input-2.module.css +0 -927
  343. package/srcbefore27-11/styles/general/scrollbtn.module.css +0 -22
  344. package/srcbefore27-11/styles/general/slick.module.css +0 -166
  345. package/srcbefore27-11/styles/general/tabs.module.css +0 -119
  346. package/srcbefore27-11/styles/general/workplaceeditor.module.css +0 -328
  347. package/srcbefore27-11/styles/globals.css +0 -26
  348. package/srcbefore27-11/styles/headers/CTAHeader.module.css +0 -40
  349. package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  350. package/srcbefore27-11/styles/headers/Gotoheader.module.css +0 -87
  351. package/srcbefore27-11/styles/headers/Header7.module.css +0 -50
  352. package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +0 -86
  353. package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  354. package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  355. package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  356. package/srcbefore27-11/styles/headers/NewHeader.module.css +0 -101
  357. package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +0 -62
  358. package/srcbefore27-11/styles/headers/Sideheader.module.css +0 -108
  359. package/srcbefore27-11/styles/headers/Simpleheader.module.css +0 -102
  360. package/srcbefore27-11/styles/headers/classicheader.module.css +0 -16
  361. package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +0 -9
  362. package/srcbefore27-11/styles/headers/dropdown.css +0 -0
  363. package/srcbefore27-11/styles/headers/header4.module.css +0 -175
  364. package/srcbefore27-11/styles/headers/header5.module.css +0 -30
  365. package/srcbefore27-11/styles/headers/header_contactinfo.module.css +0 -53
  366. package/srcbefore27-11/styles/headers/headerresturant.module.css +0 -89
  367. package/srcbefore27-11/styles/headers/modernheader.module.css +0 -45
  368. package/srcbefore27-11/styles/headers/stylishheader.module.css +0 -24
  369. package/srcbefore27-11/styles/headers/subheader.module.css +0 -114
  370. package/srcbefore27-11/styles/headers/threetieredheader.module.css +0 -91
  371. package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +0 -4
  372. package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +0 -17
  373. package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  374. package/srcbefore27-11/styles/sections/Freetext.module.css +0 -18
  375. package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +0 -49
  376. package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  377. package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  378. package/srcbefore27-11/styles/staticpages/accordion.module.css +0 -9
  379. package/srcbefore27-11/styles/staticpages/cart.module.css +0 -108
  380. package/srcbefore27-11/styles/staticpages/dropdown.css +0 -196
  381. package/srcbefore27-11/styles/staticpages/filter.module.css +0 -139
  382. package/srcbefore27-11/styles/staticpages/image-gallery.css +0 -481
  383. package/srcbefore27-11/styles/staticpages/login.module.css +0 -155
  384. package/srcbefore27-11/styles/staticpages/productinfo.module.css +0 -54
  385. package/srcbefore27-11/styles/staticpages/shop.module.css +0 -191
  386. package/srcbefore27-11/styles/staticpages/signup.module.css +0 -250
  387. package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +0 -129
  388. package/srcbefore27-11/styles/staticpages/viewcart.module.css +0 -129
  389. package/srcbefore27-11/styles/staticpages/wishlist.module.css +0 -29
@@ -1,2506 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import formstyles from '../../../styles/general/form.module.css';
3
- import TextareaAutosize from 'react-textarea-autosize';
4
- import generalstyles from '../../../styles/general/general.module.css';
5
- import { CircularProgress, Messaging } from 'react-cssfx-loading';
6
- import { css } from 'glamor';
7
- import { defaultstyles, defaultstylestranslated } from '../../../StylesJS/Customstyles.js';
8
- import { HiUser } from '@react-icons/all-files/hi/HiUser';
9
- import { GrMail } from '@react-icons/all-files/gr/GrMail';
10
- import { FiCheckCircle } from '@react-icons/all-files/fi/FiCheckCircle';
11
- import { BiPhone } from '@react-icons/all-files/bi/BiPhone';
12
- import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
13
- import Select from 'react-select';
14
- import { Modal } from 'react-bootstrap';
15
- import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
16
-
17
- const Checkout = (props) => {
18
- const [timer, settimer] = useState(null);
19
- const [showpopup, setshowpopup] = useState(false);
20
- const langdetect = props.actions.langdetect;
21
- const lang = props.actions.lang;
22
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
23
- const routingcountext = props.actions.routingcountext;
24
- const ikimagecredcontext = props.actions.ikimagecredcontext;
25
- const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
26
- const templatepropcontext = props.actions.templatepropcontext;
27
- const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
28
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
29
- const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
30
- const Pixel_EventsContext = props.actions.Pixel_EventsContext;
31
-
32
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
33
- const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
34
- const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
35
- const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
36
- const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
37
- const ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
38
- const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
39
- const AddOrderMutationContext = props.actions.AddOrderMutationContext;
40
- const authdetailsContext = props.actions.authdetailsContext;
41
- const NotificationManager = props.actions.NotificationManager;
42
- const queryClient = props.actions.queryClient;
43
- const [sectionproperties, setsectionproperties] = useState('');
44
- const [CurrentPageId, setCurrentPageId] = useState('');
45
- const [insthasaffiliate, setinsthasaffiliate] = useState(0);
46
- const [land, setland] = useState(false);
47
- const [air, setair] = useState(false);
48
- const [shippingmethods, setshippingmethods] = useState([]);
49
- const [orderextrafeilds, setorderextrafeilds] = useState([]);
50
- const [instapaychosen, setinstapaychosen] = useState(false);
51
- useEffect(() => {
52
- var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
53
- if (cartindex >= 0) {
54
- setCurrentPageId(cartindex);
55
- }
56
- }, []);
57
- useEffect(() => {
58
- var secpropobj = {};
59
- props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
60
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
61
- });
62
- setsectionproperties({ ...secpropobj });
63
- }, [props.actions.StatePagePropertiesContext]);
64
- useEffect(() => {
65
- var Canorder = false;
66
- if (authdetailsContext != undefined && authdetailsContext.instinfo != undefined && authdetailsContext.instinfo.cancustomerguestorder != undefined) {
67
- if (authdetailsContext?.instinfo?.hasaffiliate != undefined) {
68
- setinsthasaffiliate(authdetailsContext?.instinfo?.hasaffiliate);
69
- }
70
- if (authdetailsContext.loggedin == true) {
71
- Canorder = true;
72
- } else {
73
- if (authdetailsContext?.instinfo?.cancustomerguestorder == 1) {
74
- Canorder = true;
75
- }
76
- }
77
- if (Canorder == true) {
78
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
79
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
80
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
81
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
82
- if (
83
- // Aya
84
- !fetchcustomercartQueryContext.isFetching &&
85
- fetchcustomercartQueryContext.isSuccess &&
86
- fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
87
- fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
88
- // End
89
- fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
90
- ) {
91
- tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
92
- }
93
- if (
94
- // aya
95
- !fetchcustomercartQueryContext.isFetching &&
96
- fetchcustomercartQueryContext.isSuccess &&
97
- fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
98
- fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
99
- // end
100
- fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
101
- ) {
102
- tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
103
- }
104
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
105
- } else {
106
- // NotificationManager.warning('', lang.pleaselogintocheckout);
107
- routingcountext(StaticPagesLinksContext.Login);
108
- }
109
- }
110
- // Pixel_EventsContext('InitiateCheckout', {});
111
- GeneralAPIMutationContext.mutate({
112
- endpointurl: '/InitiateCheckout',
113
- mutateSuccesscallback: (data) => {
114
- setUsedOrderExtraFieldsValues(data?.data?.order_extra_fields);
115
- },
116
- });
117
- }, [authdetailsContext, fetchcustomercartQueryContext.data]);
118
- // }, [authdetailsContext]);
119
- // useEffect(() => {
120
- // Pixel_EventsContext('InitiateCheckout', {});
121
- // }, []);
122
- useEffect(() => {
123
- if (authdetailsContext?.instinfo?.hasaffiliate != undefined) {
124
- const timer = setTimeout(() => {
125
- Pixel_EventsContext('InitiateCheckout', {});
126
- }, 2000);
127
- return () => clearTimeout(timer);
128
- }
129
- }, [authdetailsContext]);
130
- const setUsedOrderExtraFieldsValues = (order_extra_fields) => {
131
- var usedOrderExtraFields = [];
132
- if (
133
- fetchcustomercartQueryContext.isSuccess &&
134
- fetchcustomercartQueryContext != undefined &&
135
- fetchcustomercartQueryContext.data != undefined &&
136
- fetchcustomercartQueryContext.data.data != undefined &&
137
- fetchcustomercartQueryContext.data.data.customercart != undefined &&
138
- fetchcustomercartQueryContext.data.data.customercart.orderExtraFields != undefined &&
139
- fetchcustomercartQueryContext.data.data.customercart.orderExtraFields != null &&
140
- fetchcustomercartQueryContext.data.data.customercart.orderExtraFields != ''
141
- ) {
142
- var extraFieldsJson = fetchcustomercartQueryContext.data.data.customercart.orderExtraFields;
143
-
144
- try {
145
- // Check if extraFieldsJson is a valid JSON string
146
-
147
- usedOrderExtraFields = JSON.parse(extraFieldsJson);
148
- } catch (error) {
149
- // In case of an error, log it and return an empty string
150
- console.error('Failed to parse JSON:', error);
151
- usedOrderExtraFields = [];
152
- }
153
- }
154
- var temporderExtraFields = [...order_extra_fields];
155
- temporderExtraFields?.forEach(function (item, index) {
156
- var singleusedvalue = '';
157
- usedOrderExtraFields?.forEach(function (useditem) {
158
- if (useditem.id == item.id) {
159
- singleusedvalue = useditem.value;
160
- }
161
- });
162
- item.value = singleusedvalue;
163
- });
164
- setorderextrafeilds([...temporderExtraFields]);
165
- };
166
- useEffect(() => {
167
- if (
168
- fetchcustomercartQueryContext != undefined &&
169
- fetchcustomercartQueryContext.data != undefined &&
170
- fetchcustomercartQueryContext.data.data != undefined &&
171
- fetchcustomercartQueryContext.data.data.customercart != undefined &&
172
- fetchcustomercartQueryContext.data.data.customercart.cityid != undefined &&
173
- fetchcustomercartQueryContext.data.data.customercart.cityid != null &&
174
- fetchcustomercartQueryContext.data.data.customercart.cityid != '' &&
175
- fetchcustomercartQueryContext.data.data.customercart.length != 0
176
- ) {
177
- var cityid = fetchcustomercartQueryContext?.data?.data?.customercart.cityid;
178
- fetchshippingmethods(cityid);
179
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.zonenotes != null) {
180
- setshowpopup(true);
181
- }
182
- }
183
- if (fetchcustomercartQueryContext.isSuccess) {
184
- setUsedOrderExtraFieldsValues(orderextrafeilds);
185
- }
186
-
187
- // fetchorderextrafields();
188
- }, [fetchcustomercartQueryContext.data]);
189
-
190
- const fetchshippingmethods = (cityid) => {
191
- GeneralAPIMutationContext.mutate({
192
- endpointurl: '/g_shippingmethods',
193
- cityid: cityid,
194
- mutateSuccesscallback: (data) => {
195
- if (data != undefined && data.data != undefined && data.data.status == true) {
196
- setshippingmethods(data.data.data);
197
- }
198
- },
199
- });
200
- };
201
- useEffect(() => {
202
- const countries = fetchTabexCountriesQueryContext.data?.data?.countries;
203
- if (countries && countries.length === 1) {
204
- const singleCountry = countries[0];
205
-
206
- // Mimic the onChange logic
207
- const tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
208
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
209
- tempFetchTabexStatesPayloadobjContext.country_id = singleCountry.id;
210
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
211
- cartinfoupdater('countryid', singleCountry.id);
212
- }
213
- }, [fetchTabexCountriesQueryContext.data?.data?.countries]);
214
- // const fetchorderextrafields = () => {
215
- // GeneralAPIMutationContext.mutate({
216
- // endpointurl: '/InitiateCheckout',
217
-
218
- // mutateSuccesscallback: (data) => {
219
- // if (data != undefined && data.data != undefined && data.data.status == true) {
220
- // setorderextrafeilds(data.data.data);
221
- // }
222
- // },
223
- // });
224
- // };
225
- const cartinfoupdater = (key, value) => {
226
- var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
227
- var cartarr = queryClient.getQueryData('fetchcustomercart_API');
228
- cartarr.data.customercart[key] = value;
229
- queryClient.setQueryData('fetchcustomercart_API', cartarr);
230
- var utmSource = null;
231
- var utmSourceLocalStorage = localStorage.getItem('uts');
232
- if (utmSourceLocalStorage != undefined && utmSourceLocalStorage != null) {
233
- utmSource = utmSourceLocalStorage;
234
- }
235
- var payloadobj = {
236
- utmSource: utmSource,
237
- stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
238
- countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
239
- cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
240
- address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
241
- paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
242
- name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
243
- email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
244
- mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
245
- notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
246
- aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
247
- shippingmethod_id: fetchcustomercartQueryContext?.data?.data?.customercart.shippingmethod_id,
248
- orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr),
249
- };
250
- if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') {
251
- // clearTimeout(timer);
252
- // settimer(
253
- // setTimeout(() => {
254
- // ChooseState_CountryMutationContext.mutate(payloadobj);
255
- // }, 1500),
256
- // );
257
- } else {
258
- ChooseState_CountryMutationContext.mutate(payloadobj);
259
- fetchshippingmethods(fetchcustomercartQueryContext?.data?.data?.customercart?.cityid);
260
- }
261
- };
262
- const usewalletpoints = () => {
263
- GeneralAPIMutationContext.mutate({
264
- endpointurl: '/usewalletpoints',
265
-
266
- mutateSuccesscallback: (data, variables) => {
267
- if (data.data.status) {
268
- NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
269
- fetchcustomercartQueryContext.refetch();
270
- } else {
271
- NotificationManager.warning('', data.data.reason);
272
- }
273
- },
274
- });
275
- };
276
- const is_order_extrafileds_required_fulfiled = () => {
277
- var is_fulfilled = true;
278
- if (authdetailsContext?.instinfo?.contactinfo.instid == '66d99c87c0a20') {
279
- var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
280
- OrderExtraFieldsToBeSentArr?.forEach(function (item, index) {
281
- if (item.isrequired == 1 && (item.value == undefined || item.value == null || item.value.length == 0)) {
282
- is_fulfilled = false;
283
- }
284
- });
285
- }
286
- if (is_fulfilled === false) {
287
- alert('Please Fill The Missing fields');
288
- }
289
-
290
- return is_fulfilled;
291
- };
292
- const checkoutstyles = {
293
- Salepricestyless: css({
294
- fontSize: sectionproperties.prodsalepriceFontSize + 'px',
295
- fontWeight: sectionproperties.prodsalePriceFontWeight,
296
- color: sectionproperties.prodsalePriceColor,
297
- show: sectionproperties.prodsalePriceshow,
298
- transition: '.3s',
299
- }),
300
- userinfo_iconcont: css({
301
- width: sectionproperties.userinfo_iconwidth + 'px',
302
- height: sectionproperties.userinfo_iconheight + 'px',
303
- background: sectionproperties.userinfo_iconbg,
304
- borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
305
- color: sectionproperties.userinfo_iconcolor,
306
- }),
307
- userinfotextstyles: css({
308
- color: sectionproperties.userinfo_color,
309
- fontWeight: sectionproperties.userinfo_fontweight,
310
- fontSize: sectionproperties.userinfo_fontsize + 'px',
311
- }),
312
- input_label_name: css({
313
- color: sectionproperties.form_labelcolor,
314
- textTransform: sectionproperties.form_labeltexttransform,
315
- fontWeight: sectionproperties.form_labelfontweight,
316
- fontSize: sectionproperties.form_labelfontsize + 'px',
317
- }),
318
- checkbox: css({
319
- color: sectionproperties.checkbox_color,
320
- textTransform: sectionproperties.form_labeltexttransform,
321
- fontWeight: sectionproperties.form_labelfontweight,
322
- fontSize: sectionproperties.form_labelfontsize + 'px',
323
- transition: '.3s',
324
- ':hover': {
325
- color: sectionproperties.checkbox_texthovercolor,
326
- },
327
- 'input:checked': {
328
- color: sectionproperties.checkbox_checkedcolor,
329
- },
330
- }),
331
- checkboxinputstyles: css({
332
- ':hover:not(:checked)': {
333
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
334
- },
335
- ':checked': {
336
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
337
- },
338
- }),
339
- svgstyles: css({
340
- stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
341
- }),
342
- innersectiontitlestyles: css({
343
- color: sectionproperties.innersection_titlecolor,
344
- fontSize: sectionproperties.innersection_titlefontsize + 'px',
345
- fontWeight: sectionproperties.innersection_titlefontweight,
346
- textTransform: sectionproperties.innersection_titletextTransform,
347
- }),
348
- summarysectionstyles: css({
349
- fontSize: sectionproperties.summary_fontsize + 'px',
350
- color: sectionproperties.summary_textcolor,
351
- fontWeight: sectionproperties.summary_textfontweight,
352
- textTransform: sectionproperties.summary_texttransform,
353
- textAlign: langdetect == 'en' ? 'left' : 'right',
354
- }),
355
- checkoutbtnstyles: css({
356
- background: sectionproperties.checkoutBtnbgColor,
357
- width: sectionproperties.checkoutBtnWidth,
358
- height: sectionproperties.checkoutBtnHeight,
359
- borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
360
- color: sectionproperties.checkoutBtnTextcolor,
361
- textTransform: sectionproperties.checkoutBtnTexttransform,
362
- fontWeight: sectionproperties.checkoutBtnTextfontweight,
363
- fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
364
- border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
365
- transition: '.3s',
366
- ':hover': {
367
- background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
368
- color: sectionproperties.checkoutBtnTextcoloronhover,
369
- },
370
- }),
371
- productNameStyles: css({
372
- color: sectionproperties.prodNameColor,
373
- fontSize: sectionproperties.prodNameFontSize + 'px',
374
- textTransform: sectionproperties.prodNameTextTranform,
375
- fontWeight: sectionproperties.prodNameFontWeight,
376
- }),
377
- productPricestyles: css({
378
- color: sectionproperties.prodPriceColor,
379
- fontSize: sectionproperties.prodpriceFontSize + 'px',
380
- fontWeight: sectionproperties.prodPriceFontWeight,
381
- }),
382
- productSalePricestyles: css({
383
- color: sectionproperties.prodsalePriceColor,
384
- fontSize: sectionproperties.prodsalepriceFontSize + 'px',
385
- fontWeight: sectionproperties.prodsalePriceFontWeight,
386
- }),
387
- imagecont: css({
388
- width: '8vh',
389
- height: '8vh',
390
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
391
- backgroundColor: sectionproperties.prodimage_bgcolor,
392
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
393
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
394
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
395
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
396
- display: 'flex',
397
- alignItems: 'center',
398
- justifyContent: 'center',
399
- backgroundRepeat: 'no-repeat',
400
- backgroundSize: 'cover',
401
- backgroundPosition: 'center',
402
- position: 'relative',
403
- }),
404
- applybtnstyles: css({
405
- width: sectionproperties.applybtn_width + 'px',
406
- height: sectionproperties.applybtn_height + 'px',
407
- borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
408
- textTransform: sectionproperties.applybtn_texttransform,
409
- fontSize: sectionproperties.applybtn_fontsize + 'px',
410
- color: sectionproperties.applybtn_textColor,
411
- fontWeight: sectionproperties.applybtn_Textfontweight,
412
- background: sectionproperties.applybtn_bgColor,
413
- border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
414
- transition: '.3s',
415
- ':hover': {
416
- background: sectionproperties.applybtn_bgColoronhover,
417
- color: sectionproperties.applybtn_Textcoloronhover,
418
- },
419
- }),
420
- inputfiledstyles: css({}),
421
- checkorderbtnstyles: css({
422
- background: sectionproperties.generalbtn_bgColor,
423
- width: sectionproperties.generalbtn_width,
424
- height: sectionproperties.generalbtn_height,
425
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
426
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
427
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
428
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
429
- color: sectionproperties.generalbtn_textColor,
430
- textTransform: sectionproperties.generalbtn_texttransform,
431
- fontWeight: sectionproperties.generalbtn_fontweight,
432
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
433
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
434
- transition: '.3s',
435
- ':hover': {
436
- background: sectionproperties.generalbtn_bgColoronhover,
437
- color: sectionproperties.generalbtn_textColoronhover,
438
- },
439
- }),
440
- input_label_name: css({
441
- color: sectionproperties.form_labelcolor,
442
- textTransform: sectionproperties.form_labeltexttransform,
443
- fontWeight: sectionproperties.form_labelfontweight,
444
- fontSize: sectionproperties.form_labelfontsize + 'px',
445
- }),
446
- form_control: css({
447
- position: 'relative',
448
- display: 'flex',
449
- alignItems: 'center',
450
- display: 'block',
451
- width: '100%',
452
- padding: '0 30px',
453
- transition: '.3s',
454
- fontWeight: 500,
455
- border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
456
- borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
457
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
458
- height: sectionproperties.inputfieldheight + 'px',
459
- background: sectionproperties.input_bgcolor,
460
- color: sectionproperties.inputfieldcolor,
461
- fontSize: sectionproperties.inputfieldfontsize + 'px',
462
- ':focus': {
463
- borderColor: sectionproperties.inputfeildbordercoloronfocus,
464
- boxShadow: 'none',
465
- },
466
- ':focus .login_input_icon': {
467
- color: sectionproperties.inputfeildbordercoloronfocus,
468
- },
469
- }),
470
- innersection: css({
471
- backgroundColor: sectionproperties.reservation_bgcolor,
472
- borderRadius: sectionproperties.reservation_borderradius + 'px',
473
- border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
474
- }),
475
- containerstyles: css({
476
- paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
477
- paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
478
- paddingTop: sectionproperties.paddingTop + 'px',
479
- paddingBottom: sectionproperties.paddingBottom + 'px',
480
- background: sectionproperties.backgroundColor,
481
- borderTop: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
482
- minHeight: '70vh',
483
- '@media (max-width: 800px)': {
484
- paddingTop: sectionproperties.marginTopResp + 'px',
485
- },
486
- }),
487
- };
488
- const returnOrderExtraFieldsArrayTobeSnetarr = () => {
489
- var OrderExtraFieldsToBeSentArr = [];
490
-
491
- var temporderextrafeilds = [...orderextrafeilds];
492
- temporderextrafeilds?.forEach(function (item, index) {
493
- if (item.value != undefined && item != null && item.length != 0) {
494
- var obj = {
495
- id: item.id,
496
- title_en: item.title_en,
497
- title_ar: item.title_ar,
498
- value: item.value,
499
- isrequired: item.isrequired,
500
- };
501
- OrderExtraFieldsToBeSentArr.push(obj);
502
- }
503
- });
504
- return OrderExtraFieldsToBeSentArr;
505
- };
506
- const addorderfuncrunner = async () => {
507
- // var temppayload = fetchcustomercartQueryContext?.data?.data?.customercart;
508
- // ChooseState_CountryMutationContext.mutate(payloadobj);
509
- // temppayload.endpointurl = '/ChooseState_Country';
510
-
511
- var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
512
- var utmSource = null;
513
- var utmSourceLocalStorage = localStorage.getItem('uts');
514
- if (utmSourceLocalStorage != undefined && utmSourceLocalStorage != null) {
515
- utmSource = utmSourceLocalStorage;
516
- }
517
- if (is_order_extrafileds_required_fulfiled()) {
518
- GeneralAPIMutationContext.mutate({
519
- endpointurl: '/ChooseState_Country',
520
- utmSource: utmSource,
521
- stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
522
- countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
523
- cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
524
- address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
525
- paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
526
- name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
527
- email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
528
- mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
529
- notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
530
- aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
531
- shippingmethod_id: fetchcustomercartQueryContext?.data?.data?.customercart.shippingmethod_id,
532
- orderextrafeilds: JSON.stringify(OrderExtraFieldsToBeSentArr),
533
- mutateSuccesscallback: (data, variables) => {
534
- if (data.data.status) {
535
- var cartarr = queryClient.getQueryData('fetchcustomercart_API');
536
- cartarr.data = data.data.cartresponse;
537
- queryClient.setQueryData('fetchcustomercart_API', cartarr);
538
- if (data.data.cdata != null) {
539
- // const cookies = new Cookies();
540
- localStorage.setItem('cdata', data.data.cdata);
541
- }
542
- if (sectionproperties.verifyemailandphone == 'Yes' && fetchcustomercartQueryContext?.data?.data?.customercart.name.length < 3) {
543
- NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
544
- } else if (sectionproperties.verifyemailandphone == 'Yes' && fetchcustomercartQueryContext?.data?.data?.customercart.mobile.length < 11) {
545
- NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
546
- } else {
547
- AddOrderMutationContext.mutate();
548
- }
549
- // AddOrderMutationContext.mutate();
550
- } else {
551
- NotificationManager.warning('', data.data.reason);
552
- }
553
- },
554
- });
555
- }
556
- };
557
- const ischeckoutbuttonloading = () => {
558
- var isloading = false;
559
- if (AddOrderMutationContext.isLoading || ChooseState_CountryMutationContext.isLoading || GeneralAPIMutationContext.isLoading) {
560
- isloading = true;
561
- } else {
562
- isloading = false;
563
- }
564
- return isloading;
565
- };
566
- const Mycart = () => {
567
- return (
568
- <div className="row m-0 w-100 mb-md-3">
569
- <div className="col-lg-12 d-flex align-items-center p-0">
570
- <p
571
- style={{
572
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
573
- color: sectionproperties.sectionTitleColor,
574
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
575
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
576
- textTransform: sectionproperties.sectionTitleTextTransform,
577
- fontWeight: sectionproperties.sectionTitleFontWeight,
578
- }}
579
- >
580
- {langdetect == 'en' ? sectionproperties.cartTitlte_en : sectionproperties.cartTitlte_ar}
581
- </p>
582
- </div>
583
- {ChooseState_CountryMutationContext.isLoading && (
584
- <div className="col-lg-12 allcentered p-0">
585
- <Messaging color="#000" width="10px" height="10px" duration="1s" />
586
- </div>
587
- )}
588
- {!ChooseState_CountryMutationContext.isLoading && (
589
- <div className="row m-0 w-100">
590
- <div className="col-lg-12 p-0">
591
- {fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.map((item, index) => {
592
- if (item.product_extrafields != null) {
593
- var product_extrafields = JSON.parse(item.product_extrafields);
594
- // var product_extrafields_parsed = JSON.stringify(product_extrafields);
595
- // alert(product_extrafields_parsed);
596
- }
597
- var extras_for_product = [];
598
- fetchcustomercartQueryContext?.data?.data?.customercart?.cartitems?.forEach((cartitem_in, cartindex_in) => {
599
- if (cartitem_in?.item_type == 'Extras') {
600
- if (cartitem_in?.main_ref_productid == item?.productid) {
601
- extras_for_product.push(cartitem_in);
602
- }
603
- }
604
- });
605
- if (item.item_type != 'Extras') {
606
- return (
607
- <div
608
- 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'}
609
- style={{
610
- background: sectionproperties.summary_sectionbgcolor,
611
- borderRadius: sectionproperties.summary_sectionborderradius + 'px',
612
- border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
613
- }}
614
- >
615
- <div className="row m-0 w-100 d-flex">
616
- <div className={`${checkoutstyles.imagecont}`}>
617
- <Imagekitimagecomp
618
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
619
- publicKey={ikimagecredcontext?.ikimagepublickey}
620
- path={item.productinfo.hasvariants == 0 ? item.productinfo.productmainimage : item.productinfo.variantinfo.variantimageurl}
621
- style={{
622
- width: '100%',
623
- height: '100%',
624
- objectFit: 'contain',
625
- }}
626
- loading="lazy"
627
- />
628
- </div>
629
- <div className="col-lg-7 col-md-7 col-sm-7">
630
- <div className="row m-0 w-100">
631
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start">
632
- <p
633
- className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 w-100 '}
634
- style={{
635
- textAlign: langdetect == 'en' ? 'left' : 'right',
636
- }}
637
- >
638
- {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
639
- </p>
640
- </div>
641
- {extras_for_product?.map(function (extraitem, extraindex) {
642
- return (
643
- <div>
644
- <p>
645
- name:{extraitem?.productinfo?.name_en},quantity:{extraitem?.quantity}
646
- </p>
647
- </div>
648
- );
649
- })}
650
- {sectionproperties.producttype == 'Product' && sectionproperties.showquantity == 'Show' && (
651
- <div className="col-lg-12 p-0 d-flex justify-content-start">
652
- <p
653
- className="m-0 p-0 font-weight-500 w-100"
654
- style={{
655
- textAlign: langdetect == 'en' ? 'left' : 'right',
656
- color: sectionproperties.prodNameColor,
657
- }}
658
- >
659
- {lang.qty}: {item.quantity}
660
- </p>
661
- </div>
662
- )}
663
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column p-0">
664
- {item.productinfo.hasvariants == 1 &&
665
- item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
666
- return (
667
- <div class="row m-0 w-100">
668
- <div
669
- className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
670
- style={{
671
- color: sectionproperties.prodNameColor,
672
- }}
673
- >
674
- <p className={'text-capitalize m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
675
- <p className={' text-capitalize font-weight-500 m-0 p-0 ml-1 mr-1 font-13 '}>
676
- {variantitem?.value_identifier != null ? variantitem?.value_identifier : variantitem?.optionvalue}
677
- </p>
678
- </div>
679
- </div>
680
- );
681
- })}
682
- {item.product_extrafields != null &&
683
- product_extrafields.map((extrafielditem, extrafieldindex) => {
684
- return (
685
- <div class="row m-0 w-100">
686
- <div
687
- className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
688
- style={{
689
- color: sectionproperties.prodNameColor,
690
- }}
691
- >
692
- <p className={'text-capitalize m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>
693
- {langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar}:
694
- </p>
695
- <p className={' text-capitalize font-weight-500 font-13 m-0 p-0 ml-1 mr-1 '}> {extrafielditem.value}</p>
696
- </div>
697
- </div>
698
- );
699
- })}
700
- </div>
701
- </div>
702
- </div>
703
- {sectionproperties.prodPriceshow == 'Show' && (
704
- <div className="col-lg-3 col-md-3 col-sm-2 p-0">
705
- <div className="row m-0 w-100 h-100">
706
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
707
- {item.productinfo.hasvariants == 0 && (
708
- <div className="row m-0 w-100 d-flex flex-column justify-content-end">
709
- {item.productinfo.hassale == 0 && (
710
- <div className="col-lg-12 p-0 d-flex justify-content-end">
711
- <p
712
- className={
713
- langdetect == 'en'
714
- ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
715
- : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
716
- }
717
- >
718
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
719
- {sectionproperties.removedecimals == 'Without Decimals'
720
- ? parseFloat(Number(item.finalprice).toFixed(2))
721
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
722
- ? Math.floor(item.finalprice).toLocaleString()
723
- : parseFloat(item.finalprice).toFixed(2)}{' '}
724
- {/* {item.finalprice} */} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
725
- </p>
726
- </div>
727
- )}
728
- {item.productinfo.hassale == 1 && (
729
- <div className="row m-0 w-100 d-flex flex-column justify-content-end">
730
- <div className="col-lg-12 p-0 d-flex justify-content-end">
731
- <p
732
- className={
733
- langdetect == 'en'
734
- ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
735
- : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
736
- }
737
- >
738
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
739
- {sectionproperties.removedecimals == 'Without Decimals'
740
- ? parseFloat(Number(item.finalprice).toFixed(2))
741
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
742
- ? Math.floor(item.finalprice).toLocaleString()
743
- : parseFloat(item.finalprice).toFixed(2)}{' '}
744
- {/* {parseFloat(item.finalprice).toFixed(2)} */} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
745
- </p>
746
- </div>
747
- <div className="col-lg-12 p-0 d-flex justify-content-end">
748
- <p
749
- className={
750
- langdetect == 'en'
751
- ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
752
- : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
753
- }
754
- >
755
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
756
- {sectionproperties.removedecimals == 'Without Decimals'
757
- ? parseFloat(Number(item.productinfo.defaultprice).toFixed(2))
758
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
759
- ? Math.floor(item.productinfo.defaultprice).toLocaleString()
760
- : parseFloat(item.productinfo.defaultprice).toFixed(2)}{' '}
761
- {/* {parseFloat(item.productinfo.defaultprice).toFixed(2)}{' '} */}
762
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
763
- </p>
764
- </div>
765
- </div>
766
- )}
767
- </div>
768
- )}
769
- {item.productinfo.hasvariants == 1 && (
770
- <div className="row m-0 w-100 d-flex flex-column justify-content-end">
771
- {item.productinfo.variantinfo.hassale == 0 && (
772
- <div className="col-lg-12 p-0 d-flex justify-content-end">
773
- <p
774
- className={
775
- langdetect == 'en'
776
- ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
777
- : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
778
- }
779
- >
780
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : authdetailsContext?.currencyname_ar}{' '}
781
- {/* {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)} */}
782
- {sectionproperties.removedecimals == 'Without Decimals'
783
- ? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2))
784
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
785
- ? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString()
786
- : parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}
787
- </p>
788
- </div>
789
- )}
790
- {item.productinfo.variantinfo.hassale == 1 && (
791
- <div className="row m-0 w-100 d-flex flex-column justify-content-end">
792
- <div className="col-lg-12 p-0 d-flex justify-content-end">
793
- <p
794
- className={
795
- langdetect == 'en'
796
- ? `${checkoutstyles.productPricestyles}` +
797
- ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
798
- : `${checkoutstyles.productPricestyles}` +
799
- ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
800
- }
801
- >
802
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
803
- {sectionproperties.removedecimals == 'Without Decimals'
804
- ? parseFloat(Number(item.productinfo.variantinfo.variantsaleprice).toFixed(2))
805
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
806
- ? Math.floor(item.productinfo.variantinfo.variantsaleprice).toLocaleString()
807
- : parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2)}{' '}
808
- {/* {parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2)} */}
809
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
810
- </p>
811
- </div>
812
- <div className="col-lg-12 p-0 d-flex justify-content-end">
813
- <p
814
- className={
815
- langdetect == 'en'
816
- ? `${checkoutstyles.Salepricestyless}` +
817
- ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
818
- : `${checkoutstyles.Salepricestyless}` +
819
- ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
820
- }
821
- >
822
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
823
- {sectionproperties.removedecimals == 'Without Decimals'
824
- ? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2))
825
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
826
- ? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString()
827
- : parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}
828
- {/* {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)} */}{' '}
829
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
830
- </p>
831
- </div>
832
- </div>
833
- )}
834
- </div>
835
- )}
836
- </div>
837
- </div>
838
- </div>
839
- )}
840
- </div>
841
- </div>
842
- );
843
- }
844
- })}
845
-
846
- <div class={`${checkoutstyles.innersection}` + ' row m-0 w-100 p-3 '}>
847
- <div className="col-lg-12 p-0 mb-1">
848
- {sectionproperties.showpromocodesection == 'Show' && (
849
- <div className="col-lg-12 p-0 mb-4">
850
- <label className={`${checkoutstyles.input_label_name}` + ' p-0 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
851
- <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
852
- <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
853
- <input
854
- type="text"
855
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
856
- placeholder={lang.giftcarddicountcode}
857
- value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
858
- onChange={(event) => {
859
- var cartarr = queryClient.getQueryData('fetchcustomercart_API');
860
- cartarr.data.customercart.couponname = event.target.value;
861
- queryClient.setQueryData('fetchcustomercart_API', cartarr);
862
- }}
863
- disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
864
- style={{
865
- boxShadow: 'none',
866
- }}
867
- />
868
- </div>
869
- <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
870
- <button
871
- className={` ${checkoutstyles.applybtnstyles}`}
872
- onClick={() => {
873
- if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
874
- var payloadobj = {
875
- couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
876
- functype: 'add',
877
- };
878
- if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
879
- ApplyPromoCodeMutationContext.mutate(payloadobj);
880
- } else {
881
- NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
882
- }
883
- } else {
884
- var payloadobj = {
885
- functype: 'delete',
886
- };
887
- ApplyPromoCodeMutationContext.mutate(payloadobj);
888
- }
889
- }}
890
- disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
891
- >
892
- <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
893
- {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
894
- ? langdetect == 'en'
895
- ? 'Remove'
896
- : 'حذف'
897
- : langdetect == 'en'
898
- ? 'Apply'
899
- : 'تطبيق'}
900
- </span>
901
- <div
902
- className={
903
- ApplyPromoCodeMutationContext.isLoading
904
- ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
905
- : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
906
- }
907
- >
908
- <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
909
- </div>
910
- </button>
911
- </div>
912
- </div>
913
- </div>
914
- )}
915
- {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance > 0 && (
916
- <div className="row m-0 w-100">
917
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
918
- <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
919
- {langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة'}
920
- </p>
921
- </div>
922
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
923
- <p
924
- className={
925
- langdetect == 'en'
926
- ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
927
- : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
928
- }
929
- >
930
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance}
931
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
932
- </p>
933
- </div>
934
- {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 0 && (
935
- <div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
936
- <p
937
- style={{ color: 'green', cursor: 'pointer' }}
938
- onClick={() => {
939
- usewalletpoints();
940
- }}
941
- >
942
- {langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'}
943
- </p>
944
- </div>
945
- )}
946
- </div>
947
- )}
948
- {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
949
- <div className="row m-0 w-100">
950
- <div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
951
- <p
952
- style={{ color: 'red', cursor: 'pointer' }}
953
- onClick={() => {
954
- usewalletpoints();
955
- }}
956
- >
957
- {langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'}
958
- </p>
959
- </div>
960
- </div>
961
- )}
962
- {sectionproperties.showtotalsection == 'Show' && (
963
- <div className="row m-0 w-100">
964
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
965
- <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
966
- {authdetailsContext?.instinfo?.contactinfo.instid == '6808c6295b598' ? (langdetect == 'en' ? 'Sub Total' : 'تكلفة المنتجات') : lang.subtotal}
967
- </p>
968
- </div>
969
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
970
- <p
971
- className={
972
- langdetect == 'en'
973
- ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
974
- : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
975
- }
976
- >
977
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
978
- {/* {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2)} */}
979
- {sectionproperties.removedecimals == 'Without Decimals'
980
- ? parseFloat(Number(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2))
981
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
982
- ? Math.floor(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toLocaleString()
983
- : parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2)}{' '}
984
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
985
- </p>
986
- </div>
987
- </div>
988
- )}
989
- {sectionproperties.showtotalsection == 'Show' && fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.length != 0 && (
990
- <div className="row m-0 w-100">
991
- {fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.map((item, index) => {
992
- return (
993
- <div class="col-lg-12 p-0">
994
- <div className="row m-0 w-100">
995
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
996
- <p
997
- className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}
998
- style={{
999
- color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
1000
- }}
1001
- >
1002
- {langdetect == 'en' ? item.title_en : item.title_ar}
1003
- </p>
1004
- </div>
1005
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1006
- <p
1007
- className={
1008
- langdetect == 'en'
1009
- ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
1010
- : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
1011
- }
1012
- style={{
1013
- color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
1014
- }}
1015
- >
1016
- {item.addsubtype == 'subtract' && <span>-</span>}
1017
- {item.valuetype == 'value' && (
1018
- <span>
1019
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {item.value}{' '}
1020
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1021
- </span>
1022
- )}
1023
- {item.valuetype == 'percentage' && (
1024
- <span>
1025
- {item.value}% ({langdetect == 'en' ? authdetailsContext.currencyname_en : ''}{' '}
1026
- {fetchcustomercartQueryContext?.data?.data?.customercart?.totalprice * (item.value / 100)}{' '}
1027
- {langdetect == 'ar' ? authdetailsContext.currencyname_ar : ''})
1028
- </span>
1029
- )}
1030
- </p>
1031
- </div>
1032
- </div>
1033
- </div>
1034
- );
1035
- })}
1036
- </div>
1037
- )}
1038
- </div>
1039
- {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
1040
- <div className="row m-0 w-100">
1041
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
1042
- <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
1043
- {langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة'}
1044
- </p>
1045
- </div>
1046
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1047
- <p
1048
- className={
1049
- langdetect == 'en'
1050
- ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
1051
- : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
1052
- }
1053
- style={{ color: 'red' }}
1054
- >
1055
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} -{' '}
1056
- {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart?.walletpointsused)} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1057
- </p>
1058
- </div>
1059
- </div>
1060
- )}
1061
- {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
1062
- <div className="col-lg-12 p-0 mb-1">
1063
- <div className="row m-0 w-100">
1064
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
1065
- <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
1066
- </div>
1067
-
1068
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1069
- <p
1070
- className={
1071
- langdetect == 'en'
1072
- ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
1073
- : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
1074
- }
1075
- >
1076
- {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
1077
- <span>
1078
- - {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1079
- {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.discountprice).toFixed(2)}{' '}
1080
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1081
- </span>
1082
- )}
1083
- {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
1084
- </p>
1085
- </div>
1086
- </div>
1087
- </div>
1088
- )}
1089
- {sectionproperties.hideshipping == 'Show' && (
1090
- <div className="col-lg-12 p-0">
1091
- <div className="row m-0 w-100">
1092
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
1093
- <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>
1094
- {/* {lang.shippingfees} */}
1095
- {langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar}
1096
- </p>
1097
- </div>
1098
- {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
1099
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1100
- <p
1101
- className={
1102
- langdetect == 'en'
1103
- ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
1104
- : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
1105
- }
1106
- >
1107
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1108
- {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice).toFixed(2)}{' '}
1109
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1110
- </p>
1111
- </div>
1112
- )}
1113
- {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
1114
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1115
- <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
1116
- {langdetect == 'en' ? 'Enter shipping address' : 'ادخل عنوان الشحن'}
1117
- </p>
1118
- </div>
1119
- )}
1120
- </div>
1121
- </div>
1122
- )}
1123
- {sectionproperties.showseparator == 'Show' && (
1124
- <div className="col-lg-12 p-0">
1125
- <hr className="mt-2 mb-2" />
1126
- </div>
1127
- )}
1128
- {sectionproperties.showtotalsection == 'Show' && (
1129
- <div className="col-lg-12 p-0">
1130
- <div className="row m-0 w-100">
1131
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
1132
- <p
1133
- className="d-flex align-items-start"
1134
- style={{
1135
- fontSize: sectionproperties.total_fontsize + 'px',
1136
- fontWeight: sectionproperties.total_fontweight,
1137
- textTransform: sectionproperties.total_texttransform,
1138
- color: sectionproperties.total_color,
1139
- }}
1140
- >
1141
- {authdetailsContext?.instinfo?.contactinfo.instid == '6808c6295b598' ? (langdetect == 'en' ? 'Total' : 'المبلغ الإجمالي') : lang.total}
1142
- </p>
1143
- </div>
1144
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
1145
- <div className="row m-0 w-100">
1146
- <div className="col-lg-12 p-0 d-flex justify-content-end ">
1147
- <p
1148
- className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
1149
- style={{
1150
- fontSize: sectionproperties.total_fontsize + 'px',
1151
- fontWeight: sectionproperties.total_fontweight,
1152
- textTransform: sectionproperties.total_texttransform,
1153
- color: sectionproperties.total_color,
1154
- }}
1155
- >
1156
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1157
- {sectionproperties.removedecimals == 'Without Decimals'
1158
- ? parseFloat(Number(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2))
1159
- : sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
1160
- ? Math.floor(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toLocaleString()
1161
- : parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2)}{' '}
1162
- {/* {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2)}{' '} */}
1163
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1164
- </p>
1165
- </div>
1166
- </div>
1167
- </div>
1168
- </div>
1169
- </div>
1170
- )}
1171
- {sectionproperties.slideshowtext1_show == 'Show' && (
1172
- <div
1173
- class="col-lg-12 p-0 my-2 p-2 allcentered mb-3"
1174
- style={{
1175
- background: '#eee',
1176
- borderRadius: 10,
1177
- }}
1178
- >
1179
- <p
1180
- class="m-0 p-0"
1181
- style={{
1182
- color: sectionproperties.slideshowText1ContentColor,
1183
- fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
1184
- fontWeight: sectionproperties.slideshowText1ContentFontWeight,
1185
- }}
1186
- dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.text1editortexten : sectionproperties.text1editortextar }}
1187
- ></p>
1188
- </div>
1189
- )}
1190
- <div
1191
- className="col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3"
1192
- style={{
1193
- marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
1194
- }}
1195
- >
1196
- {authdetailsContext?.instinfo?.contactinfo.instid != '67e448d2ef6e0' && (
1197
- <button
1198
- className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
1199
- onClick={() => {
1200
- var payloadobj = {};
1201
- if (sectionproperties.showpaymentfooter == 'Hide') {
1202
- cartinfoupdater('paymentmethod', 'cod');
1203
- }
1204
- addorderfuncrunner();
1205
- }}
1206
- disabled={ischeckoutbuttonloading() == true ? true : false}
1207
- >
1208
- {ischeckoutbuttonloading() && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1209
- {!ischeckoutbuttonloading()
1210
- ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
1211
- ? lang.continuetopayment
1212
- : authdetailsContext.loggedin
1213
- ? langdetect == 'en'
1214
- ? sectionproperties.checkoutbtn_en2
1215
- : sectionproperties.checkoutbtn_ar2
1216
- : langdetect == 'en'
1217
- ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest
1218
- : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
1219
- : ''}
1220
- </button>
1221
- )}
1222
- {authdetailsContext?.instinfo?.contactinfo.instid == '67e448d2ef6e0' && (
1223
- <button
1224
- className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
1225
- onClick={() => {
1226
- var payloadobj = {};
1227
- if (sectionproperties.showpaymentfooter == 'Hide') {
1228
- cartinfoupdater('paymentmethod', 'cod');
1229
- }
1230
- addorderfuncrunner();
1231
- }}
1232
- disabled={ischeckoutbuttonloading() == true ? true : false}
1233
- >
1234
- {ischeckoutbuttonloading() && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1235
- {!ischeckoutbuttonloading()
1236
- ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
1237
- ? lang.continuetopayment
1238
- : authdetailsContext.loggedin
1239
- ? langdetect == 'en'
1240
- ? sectionproperties.checkoutbtn_en2
1241
- : sectionproperties.checkoutbtn_ar2
1242
- : langdetect == 'en'
1243
- ? sectionproperties.checkoutbtn_en2
1244
- : sectionproperties.checkoutbtn_ar2
1245
- : ''}
1246
- </button>
1247
- )}
1248
- {/* <button
1249
- className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
1250
- onClick={() => {
1251
- var payloadobj = {};
1252
- if (sectionproperties.showpaymentfooter == 'Hide') {
1253
- cartinfoupdater('paymentmethod', 'cod');
1254
- }
1255
- addorderfuncrunner();
1256
- // AddOrderMutationContext.mutate(payloadobj);
1257
- }}
1258
- disabled={ischeckoutbuttonloading() == true ? true : false}
1259
- >
1260
- {ischeckoutbuttonloading() == true && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1261
- {!ischeckoutbuttonloading() == true
1262
- ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
1263
- ? lang.continuetopayment
1264
- : authdetailsContext.loggedin
1265
- ? langdetect == 'en'
1266
- ? sectionproperties.checkoutbtn_en2
1267
- : sectionproperties.checkoutbtn_ar2
1268
- : langdetect == 'en'
1269
- ? sectionproperties.checkoutbtn_en2 + 'asd ' + lang.asaguest
1270
- : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
1271
- : ''}
1272
- </button> */}
1273
- </div>
1274
- {authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && (
1275
- <div
1276
- className="col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3"
1277
- style={{
1278
- marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
1279
- }}
1280
- >
1281
- <div class="row m-0 w-100">
1282
- <div class="col-lg-12 p-0 allcentered mb-2">
1283
- <p class="m-0 0-0">{langdetect == 'en' ? 'Already have an account' : 'لديك حساب بالفعل؟'}</p>
1284
- </div>
1285
- <div class="col-lg-12 p-0 allcentered">
1286
- <button
1287
- className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
1288
- onClick={() => {
1289
- routingcountext(StaticPagesLinksContext.Login);
1290
- }}
1291
- >
1292
- {langdetect == 'en' ? 'Login' : 'تسجيل الدخول'}
1293
- </button>
1294
- </div>
1295
- </div>
1296
- </div>
1297
- )}
1298
- </div>
1299
- </div>
1300
- </div>
1301
- )}
1302
- </div>
1303
- );
1304
- };
1305
- return (
1306
- <div className={'row m-0 w-100 d-flex justify-content-center p-sm-0 '}>
1307
- <div className={' col-lg-12 w-100 d-flex justify-content-center p-0 '}>
1308
- <div className={checkoutstyles.containerstyles + ' w-100 d-flex justify-content-center px-md-2 '}>
1309
- <div className={'row m-0 w-100 justify-content-center '}>
1310
- <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 '}>
1311
- <div className="col-lg-12 d-flex align-items-center p-0">
1312
- <p
1313
- style={{
1314
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
1315
- color: sectionproperties.sectionTitleColor,
1316
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
1317
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
1318
- textTransform: sectionproperties.sectionTitleTextTransform,
1319
- fontWeight: sectionproperties.sectionTitleFontWeight,
1320
- }}
1321
- >
1322
- {langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar}
1323
- </p>
1324
- </div>
1325
-
1326
- {/* Logged in information */}
1327
- {authdetailsContext.loggedin && (
1328
- <div className="col-lg-12 p-0">
1329
- <div
1330
- className="pl-3 pr-3 pt-2 pb-2"
1331
- style={{
1332
- background: sectionproperties.userinfo_sectionbgcolor,
1333
- borderRadius: sectionproperties.userinfo_borderradius + 'px',
1334
- marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
1335
- marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
1336
- border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
1337
- }}
1338
- >
1339
- <div className="row m-0 w-100">
1340
- <div className={`${checkoutstyles.userinfo_iconcont}` + ' d-flex align-items-center justify-content-center '}>
1341
- <FiCheckCircle size={20} />
1342
- </div>
1343
- <div className="col-lg-11 col-md-10 col-sm-10 p-0">
1344
- <div className="row m-0 w-100">
1345
- <div
1346
- className="col-lg-12 d-flex align-items-center pl-2 pr-2"
1347
- style={{
1348
- fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1349
- color: sectionproperties.userinfo_titlecolor,
1350
- fontWeight: sectionproperties.userinfo_titlefontweight,
1351
- }}
1352
- >
1353
- {lang.loggedinas}
1354
- </div>
1355
-
1356
- <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '}>
1357
- <div className="m-0 p-0 d-flex align-items-center">
1358
- <i
1359
- className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1360
- style={{
1361
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1362
- color: sectionproperties.userinfotext_iconcolor,
1363
- marginRight: langdetect == 'en' ? '5px' : 0,
1364
- marginLeft: langdetect == 'en' ? 0 : '5px',
1365
- }}
1366
- >
1367
- <HiUser />
1368
- </i>
1369
- <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.name}</p>
1370
- </div>
1371
- </div>
1372
- <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
1373
- <div className="m-0 p-0 d-flex align-items-center">
1374
- <i
1375
- className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1376
- style={{
1377
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1378
- color: sectionproperties.userinfotext_iconcolor,
1379
- marginRight: langdetect == 'en' ? '5px' : 0,
1380
- marginLeft: langdetect == 'en' ? 0 : '5px',
1381
- }}
1382
- >
1383
- <BiPhone />
1384
- </i>
1385
- <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.mobile}</p>
1386
- </div>
1387
- </div>
1388
- {authdetailsContext?.instinfo?.contactinfo.instid != '6808c6295b598' && (
1389
- <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
1390
- <div className="m-0 p-0 d-flex align-items-center">
1391
- <i
1392
- className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1393
- style={{
1394
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1395
- color: sectionproperties.userinfotext_iconcolor,
1396
- marginRight: langdetect == 'en' ? '5px' : 0,
1397
- marginLeft: langdetect == 'en' ? 0 : '5px',
1398
- }}
1399
- >
1400
- <GrMail />
1401
- </i>
1402
- <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.email}</p>
1403
- </div>
1404
- </div>
1405
- )}
1406
- </div>
1407
- </div>
1408
- {langdetect == 'en' && (
1409
- <div
1410
- className="col-lg-12 justify-content-end float-right pl-2 pr-2"
1411
- style={{
1412
- fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1413
- color: sectionproperties.userinfo_titlecolor,
1414
- fontWeight: sectionproperties.userinfo_titlefontweight,
1415
- textAlign: 'right',
1416
- textDecoration: 'underline',
1417
- cursor: 'pointer',
1418
- position: 'absolute',
1419
- right: 10,
1420
- top: 10,
1421
- }}
1422
- onClick={() => {
1423
- routingcountext(StaticPagesLinksContext.accountinfo);
1424
- }}
1425
- >
1426
- {lang.update}
1427
- </div>
1428
- )}
1429
- {langdetect == 'ar' && (
1430
- <div
1431
- className="col-lg-12 justify-content-end float-left pl-2 pr-2"
1432
- style={{
1433
- fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1434
- color: sectionproperties.userinfo_titlecolor,
1435
- fontWeight: sectionproperties.userinfo_titlefontweight,
1436
- textAlign: 'left',
1437
- textDecoration: 'underline',
1438
- cursor: 'pointer',
1439
- position: 'absolute',
1440
- left: 10,
1441
- top: 10,
1442
- }}
1443
- onClick={() => {
1444
- routingcountext(StaticPagesLinksContext.accountinfo);
1445
- }}
1446
- >
1447
- {lang.update}
1448
- </div>
1449
- )}
1450
- </div>
1451
- </div>
1452
- </div>
1453
- )}
1454
- {/* Address Details */}
1455
- {/* {sectionproperties.hideshipping == 'Show' && ( */}
1456
- <div
1457
- className="col-lg-12 p-0"
1458
- style={{
1459
- display:
1460
- authdetailsContext.loggedin == true &&
1461
- sectionproperties.hidecountrystatecity == 'Hide' &&
1462
- sectionproperties.hideaddress == 'Hide' &&
1463
- sectionproperties.shownotes == 'Hide' &&
1464
- insthasaffiliate == 0
1465
- ? 'none'
1466
- : 'flex',
1467
- }}
1468
- >
1469
- <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1470
- <div className="col-lg-12 pl-3 pr-3 pt-2">
1471
- <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>
1472
- {authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails}
1473
- </p>
1474
- </div>
1475
- <div className="col-lg-12 p-0">
1476
- <hr className="mt-2 mb-2" />
1477
- </div>
1478
- <div className="row m-0 w-100 mb-3 pl-3 pr-3 pb-3">
1479
- {!authdetailsContext.loggedin && (
1480
- <>
1481
- <div
1482
- className={
1483
- sectionproperties.showemail == 'Hide' && authdetailsContext?.instinfo?.customerEmailrequiered == 0
1484
- ? 'col-lg-6 col-md-12 mb-3'
1485
- : 'col-lg-4 col-md-12 mb-3'
1486
- }
1487
- >
1488
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1489
- {lang.name}
1490
- <sup
1491
- class="mx-2"
1492
- style={{
1493
- color: 'var(--danger)',
1494
- }}
1495
- >
1496
- *
1497
- </sup>
1498
- </label>
1499
- <input
1500
- type={'text'}
1501
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1502
- value={fetchcustomercartQueryContext?.data?.data?.customercart.name}
1503
- onChange={(event) => {
1504
- cartinfoupdater('name', event.target.value);
1505
- }}
1506
- style={{
1507
- resize: 'none',
1508
- boxShadow: 'none',
1509
- }}
1510
- />
1511
- </div>
1512
- <div
1513
- className={
1514
- sectionproperties.showemail == 'Hide' && authdetailsContext?.instinfo?.customerEmailrequiered == 0
1515
- ? 'col-lg-6 col-md-12 mb-3'
1516
- : 'col-lg-4 col-md-12 mb-3'
1517
- }
1518
- >
1519
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1520
- {langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'}{' '}
1521
- <sup
1522
- class="mx-2"
1523
- style={{
1524
- color: 'var(--danger)',
1525
- }}
1526
- >
1527
- *
1528
- </sup>
1529
- </label>
1530
- <input
1531
- type={'text'}
1532
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1533
- value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
1534
- onChange={(event) => {
1535
- const onlyNumbers = event.target.value.replace(/\D/g, ''); // remove non-digits
1536
- cartinfoupdater('mobile', onlyNumbers);
1537
- // cartinfoupdater('mobile', event.target.value);
1538
- }}
1539
- style={{
1540
- resize: 'none',
1541
- boxShadow: 'none',
1542
- }}
1543
- />
1544
- {/* <PhoneInput
1545
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1546
- country={'eg'}
1547
- enableSearch={true}
1548
- autoFormat={true}
1549
- value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
1550
- inputStyle={{
1551
- color: sectionproperties.inputfieldcolor,
1552
- }}
1553
- onChange={(event, country) => {
1554
- // var temp = { ...payloadobj };
1555
- // temp.mobile = event;
1556
- // temp.countrydialcode = country.dialCode;
1557
- // setpayloadobj({ ...temp });
1558
- cartinfoupdater('countrydialcode', country.dialCode);
1559
- cartinfoupdater('mobile', event);
1560
- }}
1561
- style={{ direction: 'ltr', color: sectionproperties.inputfieldcolor }}
1562
- /> */}
1563
- </div>
1564
- {/* email */}
1565
- <div
1566
- className="col-lg-4 col-md-12 mb-3 flex-column"
1567
- style={{
1568
- display:
1569
- authdetailsContext?.instinfo?.customerEmailrequiered == 1
1570
- ? 'flex'
1571
- : sectionproperties.showemail == 'Hide' && authdetailsContext?.instinfo?.customerEmailrequiered == 0
1572
- ? 'none'
1573
- : authdetailsContext?.instinfo?.contactinfo.instid == '6808c6295b598'
1574
- ? 'none'
1575
- : 'flex',
1576
- }}
1577
- >
1578
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1579
- {lang.email}{' '}
1580
- {authdetailsContext?.instinfo?.customerEmailrequiered == 1 && (
1581
- <sup
1582
- class="mx-2"
1583
- style={{
1584
- color: 'var(--danger)',
1585
- }}
1586
- >
1587
- *
1588
- </sup>
1589
- )}
1590
- {authdetailsContext?.instinfo?.contactinfo.instid == '6739bf5880c04' && (
1591
- <span
1592
- class="mx-2"
1593
- style={{
1594
- fontSize: 13,
1595
- }}
1596
- >
1597
- {langdetect == 'en' ? 'Optional' : 'اختياري'}
1598
- </span>
1599
- )}{' '}
1600
- </label>
1601
- <input
1602
- type={'text'}
1603
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1604
- value={fetchcustomercartQueryContext?.data?.data?.customercart.email}
1605
- onChange={(event) => {
1606
- cartinfoupdater('email', event.target.value);
1607
- }}
1608
- style={{
1609
- boxShadow: 'none',
1610
- }}
1611
- />
1612
- </div>
1613
- </>
1614
- )}
1615
- <div
1616
- class="col-lg-12 p-0"
1617
- style={{
1618
- display: sectionproperties.hidecountrystatecity == 'Hide' && sectionproperties.hideaddress == 'Hide' ? 'none' : 'flex',
1619
- }}
1620
- >
1621
- <div class="row m-0 w-100">
1622
- {sectionproperties.hidecountrystatecity == 'Show' && (
1623
- <div className={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'}>
1624
- <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>
1625
- {lang.country}
1626
- {authdetailsContext.instinfo.customerAddressrequiered == 1 && (
1627
- <sup
1628
- class="mx-2"
1629
- style={{
1630
- color: 'var(--danger)',
1631
- }}
1632
- >
1633
- *
1634
- </sup>
1635
- )}
1636
- </label>
1637
- {fetchTabexCountriesQueryContext.isFetching && (
1638
- <div className="w-100 allcentered mt-1">
1639
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1640
- </div>
1641
- )}
1642
- {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
1643
- <Select
1644
- options={fetchTabexCountriesQueryContext.data.data.countries}
1645
- getOptionLabel={(option) => {
1646
- var crname = '';
1647
- if (langdetect == 'en') {
1648
- if (option.name_ar != null) {
1649
- crname = option.name + ' - ' + option.name_ar;
1650
- } else {
1651
- crname = option.name;
1652
- }
1653
- } else if (langdetect == 'ar') {
1654
- if (option.name_ar != null) {
1655
- crname = option.name_ar;
1656
- } else {
1657
- crname = option.name;
1658
- }
1659
- }
1660
- return crname;
1661
- }}
1662
- getOptionValue={(option) => option.id}
1663
- value={fetchTabexCountriesQueryContext.data.data.countries.filter(
1664
- (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
1665
- )}
1666
- onChange={(option) => {
1667
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1668
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
1669
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
1670
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1671
- cartinfoupdater('countryid', option.id);
1672
- }}
1673
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1674
- placeholder={''}
1675
- isSearchable={true}
1676
- />
1677
- )}
1678
- </div>
1679
- )}
1680
- {sectionproperties.hidecountrystatecity == 'Show' && (
1681
- <div className={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'}>
1682
- <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>
1683
- {authdetailsContext?.instinfo?.contactinfo.instid == '67e448d2ef6e0' ? (langdetect == 'en' ? 'Governorate' : 'المحافظة') : lang.stategov}
1684
- {authdetailsContext.instinfo.customerAddressrequiered == 1 && (
1685
- <sup
1686
- class="mx-2"
1687
- style={{
1688
- color: 'var(--danger)',
1689
- }}
1690
- >
1691
- *
1692
- </sup>
1693
- )}
1694
- </label>
1695
- {fetchTabexStatesQueryContext.isFetching && (
1696
- <div className="w-100 allcentered mt-1">
1697
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1698
- </div>
1699
- )}
1700
- {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
1701
- <Select
1702
- options={fetchTabexStatesQueryContext.data.data.states}
1703
- // getOptionLabel={(option) => option.name}
1704
- // getOptionValue={(option) => option.id}
1705
- getOptionLabel={(option) => {
1706
- var crname = '';
1707
- if (langdetect == 'en') {
1708
- if (option.name_ar != null) {
1709
- crname = option.name + ' - ' + option.name_ar;
1710
- } else {
1711
- crname = option.name;
1712
- }
1713
- } else if (langdetect == 'ar') {
1714
- if (option.name_ar != null) {
1715
- crname = option.name_ar;
1716
- } else {
1717
- crname = option.name;
1718
- }
1719
- }
1720
- return crname;
1721
- }}
1722
- getOptionValue={(option) => option.id}
1723
- value={fetchTabexStatesQueryContext.data.data.states.filter(
1724
- (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
1725
- )}
1726
- onChange={(option) => {
1727
- if (option.id.length != 0 && fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0) {
1728
- var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1729
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
1730
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
1731
- setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1732
- cartinfoupdater('stateid', option.id);
1733
- } else {
1734
- NotificationManager.warning('', 'Please Choose Country Or State');
1735
- }
1736
- }}
1737
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1738
- placeholder={''}
1739
- isSearchable={true}
1740
- />
1741
- )}
1742
- </div>
1743
- )}
1744
- {sectionproperties.hidecountrystatecity == 'Show' && (
1745
- <div className={sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'}>
1746
- <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>
1747
- {langdetect == 'en' ? 'Area' : 'المنطقة'}
1748
- {authdetailsContext.instinfo.customerAddressrequiered == 1 && (
1749
- <sup
1750
- class="mx-2"
1751
- style={{
1752
- color: 'var(--danger)',
1753
- }}
1754
- >
1755
- *
1756
- </sup>
1757
- )}
1758
- </label>
1759
- {fetchTabexCitiesQueryContext.isFetching && (
1760
- <div className="w-100 allcentered mt-1">
1761
- <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1762
- </div>
1763
- )}
1764
- {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
1765
- <Select
1766
- options={fetchTabexCitiesQueryContext.data.data.cities}
1767
- getOptionLabel={(option) => {
1768
- var crname = '';
1769
- if (langdetect == 'en') {
1770
- if (option.name_ar != null) {
1771
- crname = option.name + ' - ' + option.name_ar;
1772
- } else {
1773
- crname = option.name;
1774
- }
1775
- } else if (langdetect == 'ar') {
1776
- if (option.name_ar != null) {
1777
- crname = option.name_ar;
1778
- } else {
1779
- crname = option.name;
1780
- }
1781
- }
1782
- return crname;
1783
- }}
1784
- getOptionValue={(option) => option.id}
1785
- value={fetchTabexCitiesQueryContext.data.data.cities.filter(
1786
- (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
1787
- )}
1788
- onChange={(option) => {
1789
- cartinfoupdater('cityid', option.id);
1790
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.zonenotes != null) {
1791
- setshowpopup(true);
1792
- }
1793
- }}
1794
- styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1795
- placeholder={''}
1796
- isSearchable={true}
1797
- />
1798
- )}
1799
- </div>
1800
- )}
1801
- {sectionproperties.hideaddress == 'Show' && (
1802
- <div className="col-lg-12 mb-3">
1803
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1804
- {langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar}
1805
- {authdetailsContext.instinfo.customerAddressrequiered == 1 && (
1806
- <sup
1807
- class="mx-2"
1808
- style={{
1809
- color: 'var(--danger)',
1810
- }}
1811
- >
1812
- *
1813
- </sup>
1814
- )}
1815
- {/* {lang.shippingaddress} */}
1816
- </label>
1817
- <TextareaAutosize
1818
- type={'text'}
1819
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1820
- value={fetchcustomercartQueryContext?.data?.data?.customercart.address}
1821
- onChange={(event) => {
1822
- cartinfoupdater('address', event.target.value);
1823
- }}
1824
- style={{
1825
- resize: 'none',
1826
- boxShadow: 'none',
1827
- }}
1828
- />
1829
- </div>
1830
- )}
1831
- </div>
1832
- </div>
1833
- {sectionproperties.shownotes == 'Show' && (
1834
- <div className="col-lg-12 mb-3">
1835
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>
1836
- {/* {langdetect == 'en' ? 'Notes' : 'الملاحظات'} */}
1837
- {langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar}
1838
- </label>
1839
- <TextareaAutosize
1840
- type={'text'}
1841
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1842
- value={fetchcustomercartQueryContext?.data?.data?.customercart.notes}
1843
- onChange={(event) => {
1844
- cartinfoupdater('notes', event.target.value);
1845
- }}
1846
- style={{
1847
- resize: 'none',
1848
- boxShadow: 'none',
1849
- }}
1850
- />
1851
- </div>
1852
- )}
1853
- {insthasaffiliate == 1 && (
1854
- <div className="col-lg-12 mb-3">
1855
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>
1856
- {langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'}
1857
- </label>
1858
- <input
1859
- type={'number'}
1860
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1861
- value={fetchcustomercartQueryContext?.data?.data?.customercart?.aff_code}
1862
- onChange={(event) => {
1863
- cartinfoupdater('aff_code', event.target.value);
1864
- }}
1865
- style={{
1866
- resize: 'none',
1867
- boxShadow: 'none',
1868
- }}
1869
- />
1870
- </div>
1871
- )}
1872
- </div>
1873
- </div>
1874
- </div>
1875
- {/* )} */}
1876
- {/* zeft hatly */}
1877
- {shippingmethods.length != 0 && sectionproperties.showshippingmethod == 'Show' && (
1878
- <div className="col-lg-12 p-0 w-100">
1879
- <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1880
- <div className="col-lg-12 pl-3 pr-3 pt-2">
1881
- <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>
1882
- {langdetect == 'en' ? 'Shipping Method' : 'طريقة الشحن'}{' '}
1883
- {authdetailsContext.instinfo.customerAddressrequiered == 1 && (
1884
- <sup
1885
- class="mx-2"
1886
- style={{
1887
- color: 'var(--danger)',
1888
- }}
1889
- >
1890
- *
1891
- </sup>
1892
- )}
1893
- </p>
1894
- </div>
1895
- <div className="col-lg-12 p-0">
1896
- <hr className="mt-2 mb-2" />
1897
- </div>
1898
- <div className="row m-0 w-100 mb-3 pl-3 pr-3">
1899
- <select
1900
- style={{ width: '100%' }}
1901
- onChange={(event) => {
1902
- cartinfoupdater('shippingmethod_id', event.target.value);
1903
- }}
1904
- value={fetchcustomercartQueryContext?.data?.data?.customercart?.shippingmethod_id}
1905
- >
1906
- <option value={null}>{langdetect == 'en' ? 'Choose Shipping Method' : 'الشحن اخنر طريقة'}</option>
1907
- {shippingmethods?.map(function (item, index) {
1908
- return <option value={item.id}>{langdetect == 'en' ? item.name_en : item.name_ar}</option>;
1909
- })}
1910
- </select>
1911
- </div>
1912
- </div>
1913
- </div>
1914
- )}
1915
- {orderextrafeilds?.length != 0 && (
1916
- <div className="col-lg-12 p-0 w-100 py-3">
1917
- <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 py-3 '}>
1918
- <div className="row m-0 w-100 mb-3 pl-3 pr-3">
1919
- {orderextrafeilds?.map(function (item, index) {
1920
- if (item.type == 'date') {
1921
- return (
1922
- <div className="col-lg-6 col-md-12 mb-3">
1923
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1924
- {langdetect == 'en' ? item.title_en : item.title_ar}
1925
- </label>
1926
- <input
1927
- type={'date'}
1928
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1929
- value={item.value}
1930
- onChange={(event) => {
1931
- var temporderextrafeilds = [...orderextrafeilds];
1932
- temporderextrafeilds[index].value = event.target.value;
1933
- setorderextrafeilds([...temporderextrafeilds]);
1934
- }}
1935
- style={{
1936
- boxShadow: 'none',
1937
- }}
1938
- min={
1939
- authdetailsContext?.instinfo?.contactinfo.instid == '66b4a0338cb14'
1940
- ? new Date(Date.now() + 11 * 24 * 60 * 60 * 1000) // allow starting 11 days after today
1941
- .toISOString()
1942
- .split('T')[0]
1943
- : null
1944
- }
1945
- />
1946
- </div>
1947
- );
1948
- }
1949
- if (item.type == 'time') {
1950
- return (
1951
- <div className="col-lg-6 col-md-12 mb-3">
1952
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1953
- {langdetect == 'en' ? item.title_en : item.title_ar}
1954
- </label>
1955
- <input
1956
- type={'time'}
1957
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1958
- value={item.value}
1959
- onChange={(event) => {
1960
- var temporderextrafeilds = [...orderextrafeilds];
1961
- temporderextrafeilds[index].value = event.target.value;
1962
- setorderextrafeilds([...temporderextrafeilds]);
1963
- }}
1964
- style={{
1965
- boxShadow: 'none',
1966
- }}
1967
- />
1968
- </div>
1969
- );
1970
- }
1971
- if (item.type == 'text') {
1972
- return (
1973
- <div className="col-lg-6 col-md-12 mb-3">
1974
- <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1975
- {langdetect == 'en' ? item.title_en : item.title_ar}
1976
- </label>
1977
- <input
1978
- type={'text'}
1979
- className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1980
- value={item.value}
1981
- onChange={(event) => {
1982
- var temporderextrafeilds = [...orderextrafeilds];
1983
- temporderextrafeilds[index].value = event.target.value;
1984
- setorderextrafeilds([...temporderextrafeilds]);
1985
- }}
1986
- style={{
1987
- boxShadow: 'none',
1988
- }}
1989
- />
1990
- </div>
1991
- );
1992
- }
1993
- })}
1994
- </div>
1995
- </div>
1996
- </div>
1997
- )}
1998
- {/* end of hatly */}
1999
- {/* Payment */}
2000
-
2001
- {sectionproperties.showpaymentfooter == 'Show' && (
2002
- <div className="col-lg-12 p-0 w-100">
2003
- <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
2004
- <div className="col-lg-12 pl-3 pr-3 pt-2">
2005
- <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentmethod}</p>
2006
- </div>
2007
- <div className="col-lg-12 p-0">
2008
- <hr className="mt-2 mb-2" />
2009
- </div>
2010
- <div className="row m-0 w-100 mb-3 pl-3 pr-3">
2011
- {authdetailsContext.instinfo.acceptCOD == 1 && (
2012
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2013
- <label
2014
- className={
2015
- langdetect == 'en'
2016
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2017
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated}` + ' d-flex mb-0 '
2018
- }
2019
- for="codcheckbox"
2020
- >
2021
- <input
2022
- id={'codcheckbox'}
2023
- type="checkbox"
2024
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2025
- checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cod' ? true : false}
2026
- onChange={() => {
2027
- if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cod') {
2028
- cartinfoupdater('paymentmethod', 'cod');
2029
- setinstapaychosen(false);
2030
- }
2031
- }}
2032
- />
2033
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2034
- <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>
2035
- </svg>
2036
- <p
2037
- className={' ml-2 mb-0 cursor-pointer wordbreak mr-2'}
2038
- style={{
2039
- color: sectionproperties.checkbox_color,
2040
- }}
2041
- >
2042
- {langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar}
2043
- </p>
2044
- </label>
2045
- </div>
2046
- )}
2047
- {authdetailsContext.instinfo.acceptInstapay == 1 && (
2048
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2049
- <label
2050
- className={
2051
- langdetect == 'en'
2052
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2053
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated}` + ' d-flex mb-0 '
2054
- }
2055
- for="codcheckbox"
2056
- >
2057
- <input
2058
- id={'codcheckbox'}
2059
- type="checkbox"
2060
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2061
- checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'instapay' ? true : false}
2062
- onChange={() => {
2063
- if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'instapay') {
2064
- cartinfoupdater('paymentmethod', 'instapay');
2065
- setinstapaychosen(true);
2066
- // alert('1');
2067
- } else {
2068
- }
2069
- }}
2070
- />
2071
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2072
- <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>
2073
- </svg>
2074
- <p
2075
- className={' ml-2 mb-0 cursor-pointer wordbreak mr-2'}
2076
- style={{
2077
- color: sectionproperties.checkbox_color,
2078
- }}
2079
- >
2080
- Instapay
2081
- </p>
2082
- </label>
2083
- </div>
2084
- )}
2085
- {authdetailsContext.instinfo.acceptCardOnDelivery == 1 && (
2086
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2087
- <label
2088
- className={
2089
- langdetect == 'en'
2090
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2091
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2092
- }
2093
- >
2094
- <input
2095
- type="checkbox"
2096
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2097
- checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cardondelivery' ? true : false}
2098
- onChange={() => {
2099
- if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cardondelivery') {
2100
- cartinfoupdater('paymentmethod', 'cardondelivery');
2101
- setinstapaychosen(false);
2102
- }
2103
- }}
2104
- />
2105
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2106
- <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>
2107
- </svg>
2108
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.cardondelivery}</p>
2109
- </label>
2110
- </div>
2111
- )}
2112
- {authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && (
2113
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2114
- <label
2115
- className={
2116
- langdetect == 'en'
2117
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2118
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2119
- }
2120
- >
2121
- <input
2122
- type="checkbox"
2123
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2124
- checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment' ? true : false}
2125
- onChange={() => {
2126
- if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'onlinepayment') {
2127
- cartinfoupdater('paymentmethod', 'onlinepayment');
2128
- setinstapaychosen(false);
2129
- }
2130
- }}
2131
- />
2132
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2133
- <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>
2134
- </svg>
2135
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
2136
- {' '}
2137
- {langdetect == 'en' ? sectionproperties.onlinepaymenttexten : sectionproperties.onlinepaymenttextar}
2138
- </p>
2139
- </label>
2140
- </div>
2141
- )}
2142
- {authdetailsContext.instinfo.acceptValuCard == 1 && (
2143
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2144
- <label
2145
- className={
2146
- langdetect == 'en'
2147
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2148
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2149
- }
2150
- >
2151
- <input
2152
- type="checkbox"
2153
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2154
- checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'valU' ? true : false}
2155
- onChange={() => {
2156
- if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'valU') {
2157
- cartinfoupdater('paymentmethod', 'valU');
2158
- setinstapaychosen(false);
2159
- }
2160
- }}
2161
- />
2162
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2163
- <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>
2164
- </svg>
2165
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
2166
- {langdetect == 'en' ? sectionproperties.valuorfawryname : sectionproperties.valuorfawrynamear}
2167
- </p>
2168
- </label>
2169
- </div>
2170
- )}
2171
- {authdetailsContext.instinfo.acceptmobilewalletpayment == 1 && (
2172
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2173
- <label
2174
- className={
2175
- langdetect == 'en'
2176
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2177
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2178
- }
2179
- >
2180
- <input
2181
- type="checkbox"
2182
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2183
- checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'mobilewallet' ? true : false}
2184
- onChange={() => {
2185
- if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'mobilewallet') {
2186
- cartinfoupdater('paymentmethod', 'mobilewallet');
2187
- setinstapaychosen(false);
2188
- }
2189
- }}
2190
- />
2191
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2192
- <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>
2193
- </svg>
2194
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
2195
- {/* {langdetect == 'en' ? 'Mobile Wallet' : 'المحفظة الإلكترونية'} */}
2196
- {langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear}
2197
- </p>
2198
- </label>
2199
- </div>
2200
- )}
2201
- {authdetailsContext?.instinfo?.acceptForsaCard == 1 && (
2202
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2203
- <label
2204
- className={
2205
- langdetect == 'en'
2206
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2207
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2208
- }
2209
- >
2210
- <input
2211
- type="checkbox"
2212
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2213
- checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'forsa' ? true : false}
2214
- onChange={() => {
2215
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'forsa') {
2216
- cartinfoupdater('paymentmethod', 'forsa');
2217
- setinstapaychosen(false);
2218
- }
2219
- }}
2220
- />
2221
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2222
- <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>
2223
- </svg>
2224
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Forsa' : ' Forsa'}</p>
2225
- </label>
2226
- </div>
2227
- )}
2228
- {authdetailsContext?.instinfo?.acceptSouhoolaCard == 1 && (
2229
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2230
- <label
2231
- className={
2232
- langdetect == 'en'
2233
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2234
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2235
- }
2236
- >
2237
- <input
2238
- type="checkbox"
2239
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2240
- checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'Souhoola' ? true : false}
2241
- onChange={() => {
2242
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'Souhoola') {
2243
- cartinfoupdater('paymentmethod', 'Souhoola');
2244
- setinstapaychosen(false);
2245
- }
2246
- }}
2247
- />
2248
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2249
- <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>
2250
- </svg>
2251
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Souhoola' : ' Souhoola'}</p>
2252
- </label>
2253
- </div>
2254
- )}
2255
- {authdetailsContext?.instinfo?.acceptonlinePaypal == 1 && (
2256
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2257
- <label
2258
- className={
2259
- langdetect == 'en'
2260
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2261
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2262
- }
2263
- >
2264
- <input
2265
- type="checkbox"
2266
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2267
- checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'paypal' ? true : false}
2268
- onChange={() => {
2269
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'paypal') {
2270
- cartinfoupdater('paymentmethod', 'paypal');
2271
- setinstapaychosen(false);
2272
- }
2273
- }}
2274
- />
2275
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2276
- <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>
2277
- </svg>
2278
- <p className={`${formstyles.checkbox_label} + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '`}>{langdetect == 'en' ? 'Paypal' : ' Paypal'}</p>
2279
- </label>
2280
- </div>
2281
- )}
2282
- {authdetailsContext?.instinfo?.acceptBankInstallementsCard == 1 && (
2283
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2284
- <label
2285
- className={
2286
- langdetect == 'en'
2287
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2288
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2289
- }
2290
- >
2291
- <input
2292
- type="checkbox"
2293
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2294
- checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'bankinstallments' ? true : false}
2295
- onChange={() => {
2296
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'bankinstallments') {
2297
- cartinfoupdater('paymentmethod', 'bankinstallments');
2298
- setinstapaychosen(false);
2299
- }
2300
- }}
2301
- />
2302
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2303
- <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>
2304
- </svg>
2305
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
2306
- {langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'}
2307
- </p>
2308
- </label>
2309
- </div>
2310
- )}
2311
- {authdetailsContext?.instinfo?.acceptAmanCard == 1 && (
2312
- <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
2313
- <label
2314
- className={
2315
- langdetect == 'en'
2316
- ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2317
- : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
2318
- }
2319
- >
2320
- <input
2321
- type="checkbox"
2322
- className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
2323
- checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'Aman' ? true : false}
2324
- onChange={() => {
2325
- if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'Aman') {
2326
- cartinfoupdater('paymentmethod', 'Aman');
2327
- setinstapaychosen(false);
2328
- }
2329
- }}
2330
- />
2331
- <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
2332
- <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>
2333
- </svg>
2334
- <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Aman' : 'Aman'}</p>
2335
- </label>
2336
- </div>
2337
- )}
2338
- {instapaychosen && (
2339
- <div class="col-12 px-3 px-md-2 my-3">
2340
- <p
2341
- class={' pb-0 pl-md-2 pr-md-2 '}
2342
- style={{ color: '#000' }}
2343
- dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar }}
2344
- ></p>
2345
- </div>
2346
- )}
2347
- </div>
2348
- </div>
2349
- </div>
2350
- )}
2351
-
2352
- {fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment1' && (
2353
- <div className="col-lg-12 p-0 w-100 mb-3">
2354
- <div
2355
- style={{
2356
- background: sectionproperties.payment_sectionbgcolor,
2357
- borderRadius: sectionproperties.payment_borderradius + 'px',
2358
- borderColor: sectionproperties.payment_sectionbordercolor,
2359
- }}
2360
- >
2361
- <div className="col-lg-12 pl-3 pr-3 pt-2">
2362
- <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentcardinformation}</p>
2363
- </div>
2364
- <div className="col-lg-12 p-0">
2365
- <hr className="mt-2 mb-2" />
2366
- </div>
2367
- <div className="w-100 row m-0 pl-3 pr-3 pt-2 pb-2">
2368
- <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0">
2369
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cardnumber}</label>
2370
- <input
2371
- className={formstyles.form_controlcheckout}
2372
- type="text"
2373
- textplaceholder=""
2374
- onChange={(event) => {}}
2375
- style={{
2376
- fontWeight: sectionproperties.inputtextfontweight,
2377
- background: sectionproperties.input_bgcolor,
2378
- color: sectionproperties.inputfieldcolor,
2379
- fontSize: sectionproperties.inputfieldfontsize + 'px',
2380
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
2381
- }}
2382
- />
2383
- </div>
2384
- <div className="w-100 row m-0">
2385
- <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
2386
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.year}</label>
2387
- <input
2388
- className={formstyles.form_controlcheckout}
2389
- type="text"
2390
- textplaceholder=""
2391
- onChange={(event) => {}}
2392
- style={{
2393
- fontWeight: sectionproperties.inputtextfontweight,
2394
- background: sectionproperties.input_bgcolor,
2395
- color: sectionproperties.inputfieldcolor,
2396
- fontSize: sectionproperties.inputfieldfontsize + 'px',
2397
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
2398
- }}
2399
- />
2400
- </div>
2401
- <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
2402
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.month}</label>
2403
- <input
2404
- className={formstyles.form_controlcheckout}
2405
- type="text"
2406
- textplaceholder=""
2407
- onChange={(event) => {}}
2408
- style={{
2409
- fontWeight: sectionproperties.inputtextfontweight,
2410
- background: sectionproperties.input_bgcolor,
2411
- color: sectionproperties.inputfieldcolor,
2412
- fontSize: sectionproperties.inputfieldfontsize + 'px',
2413
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
2414
- }}
2415
- />
2416
- </div>
2417
- <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
2418
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cvv}</label>
2419
- <input
2420
- className={formstyles.form_controlcheckout}
2421
- type="text"
2422
- textplaceholder=""
2423
- onChange={(event) => {}}
2424
- style={{
2425
- fontWeight: sectionproperties.inputtextfontweight,
2426
- background: sectionproperties.input_bgcolor,
2427
- color: sectionproperties.inputfieldcolor,
2428
- fontSize: sectionproperties.inputfieldfontsize + 'px',
2429
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
2430
- }}
2431
- />
2432
- </div>
2433
- </div>
2434
- <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3">
2435
- <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.nameoncard}</label>
2436
- <input
2437
- className={formstyles.form_controlcheckout}
2438
- type="text"
2439
- textplaceholder=""
2440
- onChange={(event) => {}}
2441
- style={{
2442
- fontWeight: sectionproperties.inputtextfontweight,
2443
- background: sectionproperties.input_bgcolor,
2444
- color: sectionproperties.inputfieldcolor,
2445
- fontSize: sectionproperties.inputfieldfontsize + 'px',
2446
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
2447
- }}
2448
- />
2449
- </div>
2450
- </div>
2451
- </div>
2452
- </div>
2453
- )}
2454
- </div>
2455
- <div className={langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0 px-sm-0' : 'col-lg-4 col-md-12 pl-0 px-sm-0'}>{Mycart()}</div>
2456
- </div>
2457
- </div>
2458
- </div>
2459
- <Modal
2460
- show={showpopup}
2461
- onHide={() => {
2462
- setshowpopup(false);
2463
- }}
2464
- centered
2465
- size={'md'}
2466
- >
2467
- <Modal.Body>
2468
- <div
2469
- className="allcentered bgdanger-hover cursor-pointer"
2470
- onClick={() => {
2471
- setshowpopup(false);
2472
- }}
2473
- style={{
2474
- position: 'absolute',
2475
- top: -40,
2476
- backgroundColor: '#000',
2477
- width: 35,
2478
- height: 35,
2479
- right: 0,
2480
- }}
2481
- >
2482
- <i class="h-100 allcentered text-black">
2483
- <IoMdClose size={20} class="" color={'#fff'} />
2484
- </i>
2485
- </div>
2486
- <div class="row m-0 w-100 py-4" style={{}}>
2487
- <div class="col-lg-12 allcentered py-4">
2488
- <p
2489
- class="m-0 p-0"
2490
- style={{
2491
- fontSize: 20,
2492
- color: '#000',
2493
- textAlign: 'center',
2494
- }}
2495
- >
2496
- {fetchcustomercartQueryContext?.data?.data?.customercart?.zonenotes}
2497
- </p>
2498
- </div>
2499
- </div>
2500
- </Modal.Body>
2501
- <Modal.Footer></Modal.Footer>
2502
- </Modal>
2503
- </div>
2504
- );
2505
- };
2506
- export default Checkout;