tabexseriescomponents 0.0.706 → 0.0.708

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