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,1892 @@
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 PhoneInput from 'react-phone-input-2';
14
+
15
+ const Select = React.lazy(() => import('react-select'));
16
+ const Checkout = (props) => {
17
+ const [timer, settimer] = useState(null);
18
+ const langdetect = props.actions.langdetect;
19
+ const lang = props.actions.lang;
20
+ const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
21
+ const routingcountext = props.actions.routingcountext;
22
+ const ikimagecredcontext = props.actions.ikimagecredcontext;
23
+ const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
24
+ const templatepropcontext = props.actions.templatepropcontext;
25
+ const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
26
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
27
+ const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
28
+ const Pixel_EventsContext = props.actions.Pixel_EventsContext;
29
+
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 authdetailsContext = props.actions.authdetailsContext;
39
+ const NotificationManager = props.actions.NotificationManager;
40
+ const queryClient = props.actions.queryClient;
41
+ const [sectionproperties, setsectionproperties] = useState('');
42
+ const [CurrentPageId, setCurrentPageId] = useState('');
43
+ const [insthasaffiliate, setinsthasaffiliate] = useState(0);
44
+ const [land, setland] = useState(false);
45
+ const [air, setair] = useState(false);
46
+ const [shippingmethods, setshippingmethods] = useState([]);
47
+ useEffect(() => {
48
+ var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
49
+ if (cartindex >= 0) {
50
+ setCurrentPageId(cartindex);
51
+ }
52
+ }, []);
53
+ useEffect(() => {
54
+ var secpropobj = {};
55
+ props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
56
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
57
+ });
58
+ setsectionproperties({ ...secpropobj });
59
+ }, [props.actions.StatePagePropertiesContext]);
60
+ useEffect(() => {
61
+ var Canorder = false;
62
+ if (authdetailsContext != undefined && authdetailsContext.instinfo != undefined && authdetailsContext.instinfo.cancustomerguestorder != undefined) {
63
+ if (authdetailsContext?.instinfo?.hasaffiliate != undefined) {
64
+ setinsthasaffiliate(authdetailsContext?.instinfo?.hasaffiliate);
65
+ }
66
+ if (authdetailsContext.loggedin == true) {
67
+ Canorder = true;
68
+ } else {
69
+ if (authdetailsContext?.instinfo?.cancustomerguestorder == 1) {
70
+ Canorder = true;
71
+ }
72
+ }
73
+ if (Canorder == true) {
74
+ var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
75
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
76
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
77
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
78
+ if (
79
+ // Aya
80
+ !fetchcustomercartQueryContext.isFetching &&
81
+ fetchcustomercartQueryContext.isSuccess &&
82
+ fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
83
+ fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
84
+ // End
85
+ fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
86
+ ) {
87
+ tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
88
+ }
89
+ if (
90
+ // aya
91
+ !fetchcustomercartQueryContext.isFetching &&
92
+ fetchcustomercartQueryContext.isSuccess &&
93
+ fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
94
+ fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
95
+ // end
96
+ fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
97
+ ) {
98
+ tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
99
+ }
100
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
101
+ } else {
102
+ // NotificationManager.warning('', lang.pleaselogintocheckout);
103
+ routingcountext(StaticPagesLinksContext.Login);
104
+ }
105
+ }
106
+ Pixel_EventsContext('InitiateCheckout', {});
107
+ GeneralAPIMutationContext.mutate({ endpointurl: '/InitiateCheckout', mutateSuccesscallback: () => {} });
108
+ }, [authdetailsContext]);
109
+ useEffect(() => {
110
+ if (
111
+ fetchcustomercartQueryContext != undefined &&
112
+ fetchcustomercartQueryContext.data != undefined &&
113
+ fetchcustomercartQueryContext.data.data != undefined &&
114
+ fetchcustomercartQueryContext.data.data.customercart != undefined &&
115
+ fetchcustomercartQueryContext.data.data.customercart.cityid != undefined &&
116
+ fetchcustomercartQueryContext.data.data.customercart.cityid != null &&
117
+ fetchcustomercartQueryContext.data.data.customercart.cityid != '' &&
118
+ fetchcustomercartQueryContext.data.data.customercart.length != 0
119
+ ) {
120
+ var cityid = fetchcustomercartQueryContext?.data?.data?.customercart.cityid;
121
+ fetchshippingmethods(cityid);
122
+ }
123
+ }, [fetchcustomercartQueryContext.data]);
124
+
125
+ const fetchshippingmethods = (cityid) => {
126
+ GeneralAPIMutationContext.mutate({
127
+ endpointurl: '/g_shippingmethods',
128
+ cityid: cityid,
129
+ mutateSuccesscallback: (data) => {
130
+ if (data != undefined && data.data != undefined && data.data.status == true) {
131
+ setshippingmethods(data.data.data);
132
+ }
133
+ },
134
+ });
135
+ };
136
+ const cartinfoupdater = (key, value) => {
137
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
138
+ cartarr.data.customercart[key] = value;
139
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
140
+ var payloadobj = {
141
+ stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
142
+ countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
143
+ cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
144
+ address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
145
+ paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
146
+ name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
147
+ email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
148
+ mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
149
+ notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
150
+ aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
151
+ shippingmethod_id: fetchcustomercartQueryContext?.data?.data?.customercart.shippingmethod_id,
152
+ };
153
+ if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') {
154
+ // clearTimeout(timer);
155
+ // settimer(
156
+ // setTimeout(() => {
157
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
158
+ // }, 1500),
159
+ // );
160
+ } else {
161
+ ChooseState_CountryMutationContext.mutate(payloadobj);
162
+ fetchshippingmethods(fetchcustomercartQueryContext?.data?.data?.customercart?.cityid);
163
+ }
164
+ };
165
+ const usewalletpoints = () => {
166
+ GeneralAPIMutationContext.mutate({
167
+ endpointurl: '/usewalletpoints',
168
+
169
+ mutateSuccesscallback: (data, variables) => {
170
+ if (data.data.status) {
171
+ NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
172
+ fetchcustomercartQueryContext.refetch();
173
+ } else {
174
+ NotificationManager.warning('', data.data.reason);
175
+ }
176
+ },
177
+ });
178
+ };
179
+ const checkoutstyles = {
180
+ Salepricestyless: css({
181
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
182
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
183
+ color: sectionproperties.prodsalePriceColor,
184
+ show: sectionproperties.prodsalePriceshow,
185
+ transition: '.3s',
186
+ }),
187
+ userinfo_iconcont: css({
188
+ width: sectionproperties.userinfo_iconwidth + 'px',
189
+ height: sectionproperties.userinfo_iconheight + 'px',
190
+ background: sectionproperties.userinfo_iconbg,
191
+ borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
192
+ color: sectionproperties.userinfo_iconcolor,
193
+ }),
194
+ userinfotextstyles: css({
195
+ color: sectionproperties.userinfo_color,
196
+ fontWeight: sectionproperties.userinfo_fontweight,
197
+ fontSize: sectionproperties.userinfo_fontsize + 'px',
198
+ }),
199
+ input_label_name: css({
200
+ color: sectionproperties.form_labelcolor,
201
+ textTransform: sectionproperties.form_labeltexttransform,
202
+ fontWeight: sectionproperties.form_labelfontweight,
203
+ fontSize: sectionproperties.form_labelfontsize + 'px',
204
+ }),
205
+ checkbox: css({
206
+ color: sectionproperties.checkbox_color,
207
+ textTransform: sectionproperties.form_labeltexttransform,
208
+ fontWeight: sectionproperties.form_labelfontweight,
209
+ fontSize: sectionproperties.form_labelfontsize + 'px',
210
+ transition: '.3s',
211
+ ':hover': {
212
+ color: sectionproperties.checkbox_texthovercolor,
213
+ },
214
+ 'input:checked': {
215
+ color: sectionproperties.checkbox_checkedcolor,
216
+ },
217
+ }),
218
+ checkboxinputstyles: css({
219
+ ':hover:not(:checked)': {
220
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
221
+ },
222
+ ':checked': {
223
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
224
+ },
225
+ }),
226
+ svgstyles: css({
227
+ stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
228
+ }),
229
+ innersectiontitlestyles: css({
230
+ color: sectionproperties.innersection_titlecolor,
231
+ fontSize: sectionproperties.innersection_titlefontsize + 'px',
232
+ fontWeight: sectionproperties.innersection_titlefontweight,
233
+ textTransform: sectionproperties.innersection_titletextTransform,
234
+ }),
235
+ summarysectionstyles: css({
236
+ fontSize: sectionproperties.summary_fontsize + 'px',
237
+ color: sectionproperties.summary_textcolor,
238
+ fontWeight: sectionproperties.summary_textfontweight,
239
+ textTransform: sectionproperties.summary_texttransform,
240
+ textAlign: langdetect == 'en' ? 'left' : 'right',
241
+ }),
242
+ checkoutbtnstyles: css({
243
+ background: sectionproperties.checkoutBtnbgColor,
244
+ width: sectionproperties.checkoutBtnWidth,
245
+ height: sectionproperties.checkoutBtnHeight,
246
+ borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
247
+ color: sectionproperties.checkoutBtnTextcolor,
248
+ textTransform: sectionproperties.checkoutBtnTexttransform,
249
+ fontWeight: sectionproperties.checkoutBtnTextfontweight,
250
+ fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
251
+ border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
252
+ transition: '.3s',
253
+ ':hover': {
254
+ background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
255
+ color: sectionproperties.checkoutBtnTextcoloronhover,
256
+ },
257
+ }),
258
+ productNameStyles: css({
259
+ color: sectionproperties.prodNameColor,
260
+ fontSize: sectionproperties.prodNameFontSize + 'px',
261
+ textTransform: sectionproperties.prodNameTextTranform,
262
+ fontWeight: sectionproperties.prodNameFontWeight,
263
+ }),
264
+ productPricestyles: css({
265
+ color: sectionproperties.prodPriceColor,
266
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
267
+ fontWeight: sectionproperties.prodPriceFontWeight,
268
+ }),
269
+ productSalePricestyles: css({
270
+ color: sectionproperties.prodsalePriceColor,
271
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
272
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
273
+ }),
274
+ imagecont: css({
275
+ width: '8vh',
276
+ height: '8vh',
277
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
278
+ backgroundColor: sectionproperties.prodimage_bgcolor,
279
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
280
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
281
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
282
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
283
+ display: 'flex',
284
+ alignItems: 'center',
285
+ justifyContent: 'center',
286
+ backgroundRepeat: 'no-repeat',
287
+ backgroundSize: 'cover',
288
+ backgroundPosition: 'center',
289
+ position: 'relative',
290
+ }),
291
+ applybtnstyles: css({
292
+ width: sectionproperties.applybtn_width + 'px',
293
+ height: sectionproperties.applybtn_height + 'px',
294
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
295
+ textTransform: sectionproperties.applybtn_texttransform,
296
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
297
+ color: sectionproperties.applybtn_textColor,
298
+ fontWeight: sectionproperties.applybtn_Textfontweight,
299
+ background: sectionproperties.applybtn_bgColor,
300
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
301
+ transition: '.3s',
302
+ ':hover': {
303
+ background: sectionproperties.applybtn_bgColoronhover,
304
+ color: sectionproperties.applybtn_Textcoloronhover,
305
+ },
306
+ }),
307
+ inputfiledstyles: css({}),
308
+ checkorderbtnstyles: css({
309
+ background: sectionproperties.generalbtn_bgColor,
310
+ width: sectionproperties.generalbtn_width,
311
+ height: sectionproperties.generalbtn_height,
312
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
313
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
314
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
315
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
316
+ color: sectionproperties.generalbtn_textColor,
317
+ textTransform: sectionproperties.generalbtn_texttransform,
318
+ fontWeight: sectionproperties.generalbtn_fontweight,
319
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
320
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
321
+ transition: '.3s',
322
+ ':hover': {
323
+ background: sectionproperties.generalbtn_bgColoronhover,
324
+ color: sectionproperties.generalbtn_textColoronhover,
325
+ },
326
+ }),
327
+ input_label_name: css({
328
+ color: sectionproperties.form_labelcolor,
329
+ textTransform: sectionproperties.form_labeltexttransform,
330
+ fontWeight: sectionproperties.form_labelfontweight,
331
+ fontSize: sectionproperties.form_labelfontsize + 'px',
332
+ }),
333
+ form_control: css({
334
+ position: 'relative',
335
+ display: 'flex',
336
+ alignItems: 'center',
337
+ display: 'block',
338
+ width: '100%',
339
+ padding: '0 30px',
340
+ transition: '.3s',
341
+ fontWeight: 500,
342
+ border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
343
+ borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
344
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
345
+ height: sectionproperties.inputfieldheight + 'px',
346
+ background: sectionproperties.input_bgcolor,
347
+ color: sectionproperties.inputfieldcolor,
348
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
349
+ ':focus': {
350
+ borderColor: sectionproperties.inputfeildbordercoloronfocus,
351
+ boxShadow: 'none',
352
+ },
353
+ ':focus .login_input_icon': {
354
+ color: sectionproperties.inputfeildbordercoloronfocus,
355
+ },
356
+ }),
357
+ innersection: css({
358
+ backgroundColor: sectionproperties.reservation_bgcolor,
359
+ borderRadius: sectionproperties.reservation_borderradius + 'px',
360
+ border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
361
+ }),
362
+ containerstyles: css({
363
+ paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
364
+ paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
365
+ paddingTop: sectionproperties.paddingTop + 'px',
366
+ paddingBottom: sectionproperties.paddingBottom + 'px',
367
+ background: sectionproperties.backgroundColor,
368
+ borderTop: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
369
+ minHeight: '70vh',
370
+ '@media (max-width: 800px)': {
371
+ marginTop: sectionproperties.marginTopResp + 'px',
372
+ },
373
+ }),
374
+ };
375
+ const addorderfuncrunner = async () => {
376
+ // var temppayload = fetchcustomercartQueryContext?.data?.data?.customercart;
377
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
378
+ // temppayload.endpointurl = '/ChooseState_Country';
379
+ GeneralAPIMutationContext.mutate({
380
+ endpointurl: '/ChooseState_Country',
381
+ stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
382
+ countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
383
+ cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
384
+ address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
385
+ paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
386
+ name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
387
+ email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
388
+ mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
389
+ notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
390
+ aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
391
+ shippingmethod_id: fetchcustomercartQueryContext?.data?.data?.customercart.shippingmethod_id,
392
+ mutateSuccesscallback: (data, variables) => {
393
+ if (data.data.status) {
394
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
395
+ cartarr.data = data.data.cartresponse;
396
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
397
+ if (data.data.cdata != null) {
398
+ // const cookies = new Cookies();
399
+ localStorage.setItem('cdata', data.data.cdata);
400
+ }
401
+ if (sectionproperties.verifyemailandphone == 'Yes' && fetchcustomercartQueryContext?.data?.data?.customercart.name.length < 3) {
402
+ NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
403
+ } else if (sectionproperties.verifyemailandphone == 'Yes' && fetchcustomercartQueryContext?.data?.data?.customercart.mobile.length < 11) {
404
+ NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
405
+ } else {
406
+ AddOrderMutationContext.mutate();
407
+ }
408
+ // AddOrderMutationContext.mutate();
409
+ } else {
410
+ NotificationManager.warning('', data.data.reason);
411
+ }
412
+ },
413
+ });
414
+ };
415
+ const ischeckoutbuttonloading = () => {
416
+ var isloading = false;
417
+ if (AddOrderMutationContext.isLoading || ChooseState_CountryMutationContext.isLoading || GeneralAPIMutationContext.isLoading) {
418
+ isloading = true;
419
+ } else {
420
+ isloading = false;
421
+ }
422
+ return isloading;
423
+ };
424
+ const Mycart = () => {
425
+ return (
426
+ <div className="row m-0 w-100 mb-md-3">
427
+ <div className="col-lg-12 d-flex align-items-center p-0">
428
+ <p
429
+ style={{
430
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
431
+ color: sectionproperties.sectionTitleColor,
432
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
433
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
434
+ textTransform: sectionproperties.sectionTitleTextTransform,
435
+ fontWeight: sectionproperties.sectionTitleFontWeight,
436
+ }}
437
+ >
438
+ {langdetect == 'en' ? sectionproperties.cartTitlte_en : sectionproperties.cartTitlte_ar}
439
+ </p>
440
+ </div>
441
+ {ChooseState_CountryMutationContext.isLoading && (
442
+ <div className="col-lg-12 allcentered p-0">
443
+ <Messaging color="#000" width="10px" height="10px" duration="1s" />
444
+ </div>
445
+ )}
446
+ {!ChooseState_CountryMutationContext.isLoading && (
447
+ <div className="row m-0 w-100">
448
+ <div className="col-lg-12 p-0">
449
+ {fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
450
+ if (item.product_extrafields != null) {
451
+ var product_extrafields = JSON.parse(item.product_extrafields);
452
+ // var product_extrafields_parsed = JSON.stringify(product_extrafields);
453
+ // alert(product_extrafields_parsed);
454
+ }
455
+ return (
456
+ <div
457
+ 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'}
458
+ style={{
459
+ background: sectionproperties.summary_sectionbgcolor,
460
+ borderRadius: sectionproperties.summary_sectionborderradius + 'px',
461
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
462
+ }}
463
+ >
464
+ <div className="row m-0 w-100 d-flex">
465
+ <div className={`${checkoutstyles.imagecont}`}>
466
+ <Imagekitimagecomp
467
+ urlEndpoint={ikimagecredcontext?.ikimageendpoint}
468
+ publicKey={ikimagecredcontext?.ikimagepublickey}
469
+ path={
470
+ item.productinfo.hasvariants == 0
471
+ ? '/tr:w-300,h-300/' + item.productinfo.productmainimage
472
+ : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
473
+ }
474
+ style={{
475
+ width: '100%',
476
+ height: '100%',
477
+ objectFit: 'contain',
478
+ }}
479
+ loading="lazy"
480
+ />
481
+ </div>
482
+ <div className="col-lg-7 col-md-7 col-sm-7">
483
+ <div className="row m-0 w-100">
484
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start">
485
+ <p
486
+ className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 w-100 '}
487
+ style={{
488
+ textAlign: langdetect == 'en' ? 'left' : 'right',
489
+ }}
490
+ >
491
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
492
+ </p>
493
+ </div>
494
+ {sectionproperties.producttype == 'Product' && sectionproperties.showquantity == 'Show' && (
495
+ <div className="col-lg-12 p-0 d-flex justify-content-start">
496
+ <p
497
+ className="m-0 p-0 font-weight-500 text-light w-100"
498
+ style={{
499
+ textAlign: langdetect == 'en' ? 'left' : 'right',
500
+ }}
501
+ >
502
+ {lang.qty}: {item.quantity}
503
+ </p>
504
+ </div>
505
+ )}
506
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column p-0">
507
+ {item.productinfo.hasvariants == 1 &&
508
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
509
+ return (
510
+ <div class="row m-0 w-100">
511
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
512
+ <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
513
+ <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>
514
+ {variantitem.optionvalue == '#c9b0a1'
515
+ ? 'Beige'
516
+ : variantitem.optionvalue == '#000000'
517
+ ? 'Black'
518
+ : variantitem.optionvalue}
519
+ </p>
520
+ </div>
521
+ </div>
522
+ );
523
+ })}
524
+ {item.product_extrafields != null &&
525
+ product_extrafields.map((extrafielditem, extrafieldindex) => {
526
+ return (
527
+ <div class="row m-0 w-100">
528
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
529
+ <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>
530
+ {langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar}:
531
+ </p>
532
+ <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}> {extrafielditem.value}</p>
533
+ </div>
534
+ </div>
535
+ );
536
+ })}
537
+ </div>
538
+ </div>
539
+ </div>
540
+ {sectionproperties.prodPriceshow == 'Show' && (
541
+ <div className="col-lg-3 col-md-3 col-sm-2 p-0">
542
+ <div className="row m-0 w-100 h-100">
543
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
544
+ {item.productinfo.hasvariants == 0 && (
545
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
546
+ {item.productinfo.hassale == 0 && (
547
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
548
+ <p
549
+ className={
550
+ langdetect == 'en'
551
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
552
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
553
+ }
554
+ >
555
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {item.finalprice}{' '}
556
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
557
+ </p>
558
+ </div>
559
+ )}
560
+ {item.productinfo.hassale == 1 && (
561
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
562
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
563
+ <p
564
+ className={
565
+ langdetect == 'en'
566
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
567
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
568
+ }
569
+ >
570
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {parseFloat(item.finalprice).toFixed(2)}{' '}
571
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
572
+ </p>
573
+ </div>
574
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
575
+ <p
576
+ className={
577
+ langdetect == 'en'
578
+ ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
579
+ : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
580
+ }
581
+ >
582
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
583
+ {parseFloat(item.productinfo.defaultprice).toFixed(2)}{' '}
584
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
585
+ </p>
586
+ </div>
587
+ </div>
588
+ )}
589
+ </div>
590
+ )}
591
+ {item.productinfo.hasvariants == 1 && (
592
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
593
+ {item.productinfo.variantinfo.hassale == 0 && (
594
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
595
+ <p
596
+ className={
597
+ langdetect == 'en'
598
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
599
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
600
+ }
601
+ >
602
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : authdetailsContext?.currencyname_ar}{' '}
603
+ {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}
604
+ </p>
605
+ </div>
606
+ )}
607
+ {item.productinfo.variantinfo.hassale == 1 && (
608
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
609
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
610
+ <p
611
+ className={
612
+ langdetect == 'en'
613
+ ? `${checkoutstyles.productPricestyles}` +
614
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
615
+ : `${checkoutstyles.productPricestyles}` +
616
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
617
+ }
618
+ >
619
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
620
+ {parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2)}
621
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
622
+ </p>
623
+ </div>
624
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
625
+ <p
626
+ className={
627
+ langdetect == 'en'
628
+ ? `${checkoutstyles.Salepricestyless}` +
629
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
630
+ : `${checkoutstyles.Salepricestyless}` +
631
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
632
+ }
633
+ >
634
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
635
+ {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}{' '}
636
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
637
+ </p>
638
+ </div>
639
+ </div>
640
+ )}
641
+ </div>
642
+ )}
643
+ </div>
644
+ </div>
645
+ </div>
646
+ )}
647
+ </div>
648
+ </div>
649
+ );
650
+ })}
651
+
652
+ <div class={`${checkoutstyles.innersection}` + ' row m-0 w-100 p-3 '}>
653
+ <div className="col-lg-12 p-0 mb-1">
654
+ {sectionproperties.showpromocodesection == 'Show' && (
655
+ <div className="col-lg-12 p-0 mb-4">
656
+ <label className={`${checkoutstyles.input_label_name}` + ' p-0 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
657
+ <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
658
+ <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
659
+ <input
660
+ type="text"
661
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
662
+ placeholder={lang.giftcarddicountcode}
663
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
664
+ onChange={(event) => {
665
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
666
+ cartarr.data.customercart.couponname = event.target.value;
667
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
668
+ }}
669
+ disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
670
+ style={{
671
+ boxShadow: 'none',
672
+ }}
673
+ />
674
+ </div>
675
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
676
+ <button
677
+ className={` ${checkoutstyles.applybtnstyles}`}
678
+ onClick={() => {
679
+ if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
680
+ var payloadobj = {
681
+ couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
682
+ functype: 'add',
683
+ };
684
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
685
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
686
+ } else {
687
+ NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
688
+ }
689
+ } else {
690
+ var payloadobj = {
691
+ functype: 'delete',
692
+ };
693
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
694
+ }
695
+ }}
696
+ disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
697
+ >
698
+ <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
699
+ {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
700
+ ? langdetect == 'en'
701
+ ? 'Remove'
702
+ : 'حذف'
703
+ : langdetect == 'en'
704
+ ? 'Apply'
705
+ : 'تطبيق'}
706
+ </span>
707
+ <div
708
+ className={
709
+ ApplyPromoCodeMutationContext.isLoading
710
+ ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
711
+ : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
712
+ }
713
+ >
714
+ <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
715
+ </div>
716
+ </button>
717
+ </div>
718
+ </div>
719
+ </div>
720
+ )}
721
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance > 0 && (
722
+ <div className="row m-0 w-100">
723
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
724
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
725
+ {langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة'}
726
+ </p>
727
+ </div>
728
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
729
+ <p
730
+ className={
731
+ langdetect == 'en'
732
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
733
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
734
+ }
735
+ >
736
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance}
737
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
738
+ </p>
739
+ </div>
740
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 0 && (
741
+ <div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
742
+ <p
743
+ style={{ color: 'green', cursor: 'pointer' }}
744
+ onClick={() => {
745
+ usewalletpoints();
746
+ }}
747
+ >
748
+ {langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'}
749
+ </p>
750
+ </div>
751
+ )}
752
+ </div>
753
+ )}
754
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
755
+ <div className="row m-0 w-100">
756
+ <div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
757
+ <p
758
+ style={{ color: 'red', cursor: 'pointer' }}
759
+ onClick={() => {
760
+ usewalletpoints();
761
+ }}
762
+ >
763
+ {langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'}
764
+ </p>
765
+ </div>
766
+ </div>
767
+ )}
768
+ {sectionproperties.showtotalsection == 'Show' && (
769
+ <div className="row m-0 w-100">
770
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
771
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
772
+ </div>
773
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
774
+ <p
775
+ className={
776
+ langdetect == 'en'
777
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
778
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
779
+ }
780
+ >
781
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
782
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2)}{' '}
783
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
784
+ </p>
785
+ </div>
786
+ </div>
787
+ )}
788
+ {sectionproperties.showtotalsection == 'Show' && fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.length != 0 && (
789
+ <div className="row m-0 w-100">
790
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.map((item, index) => {
791
+ return (
792
+ <div class="col-lg-12 p-0">
793
+ <div className="row m-0 w-100">
794
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
795
+ <p
796
+ className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}
797
+ style={{
798
+ color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
799
+ }}
800
+ >
801
+ {langdetect == 'en' ? item.title_en : item.title_ar}
802
+ </p>
803
+ </div>
804
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
805
+ <p
806
+ className={
807
+ langdetect == 'en'
808
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
809
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
810
+ }
811
+ style={{
812
+ color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
813
+ }}
814
+ >
815
+ {item.addsubtype == 'subtract' && <span>-</span>}
816
+ {item.valuetype == 'value' && (
817
+ <span>
818
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {item.value}{' '}
819
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
820
+ </span>
821
+ )}
822
+ {item.valuetype == 'percentage' && <span>{item.value}%</span>}
823
+ </p>
824
+ </div>
825
+ </div>
826
+ </div>
827
+ );
828
+ })}
829
+ </div>
830
+ )}
831
+ </div>
832
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
833
+ <div className="row m-0 w-100">
834
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
835
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
836
+ {langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة'}
837
+ </p>
838
+ </div>
839
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
840
+ <p
841
+ className={
842
+ langdetect == 'en'
843
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
844
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
845
+ }
846
+ style={{ color: 'red' }}
847
+ >
848
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} -{' '}
849
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart?.walletpointsused)} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
850
+ </p>
851
+ </div>
852
+ </div>
853
+ )}
854
+ {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
855
+ <div className="col-lg-12 p-0 mb-1">
856
+ <div className="row m-0 w-100">
857
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
858
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
859
+ </div>
860
+
861
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
862
+ <p
863
+ className={
864
+ langdetect == 'en'
865
+ ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
866
+ : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
867
+ }
868
+ >
869
+ {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
870
+ <span>
871
+ - {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
872
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.discountprice).toFixed(2)}{' '}
873
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
874
+ </span>
875
+ )}
876
+ {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
877
+ </p>
878
+ </div>
879
+ </div>
880
+ </div>
881
+ )}
882
+ {sectionproperties.hideshipping == 'Show' && (
883
+ <div className="col-lg-12 p-0">
884
+ <div className="row m-0 w-100">
885
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
886
+ <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>
887
+ {/* {lang.shippingfees} */}
888
+ {langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar}
889
+ </p>
890
+ </div>
891
+ {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
892
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
893
+ <p
894
+ className={
895
+ langdetect == 'en'
896
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
897
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
898
+ }
899
+ >
900
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
901
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice).toFixed(2)}{' '}
902
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
903
+ </p>
904
+ </div>
905
+ )}
906
+ {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
907
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
908
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
909
+ {lang.outofzone}
910
+ </p>
911
+ </div>
912
+ )}
913
+ </div>
914
+ </div>
915
+ )}
916
+ {sectionproperties.showseparator == 'Show' && (
917
+ <div className="col-lg-12 p-0">
918
+ <hr className="mt-2 mb-2" />
919
+ </div>
920
+ )}
921
+ {sectionproperties.showtotalsection == 'Show' && (
922
+ <div className="col-lg-12 p-0">
923
+ <div className="row m-0 w-100">
924
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
925
+ <p
926
+ className="d-flex align-items-start"
927
+ style={{
928
+ fontSize: sectionproperties.total_fontsize + 'px',
929
+ fontWeight: sectionproperties.total_fontweight,
930
+ textTransform: sectionproperties.total_texttransform,
931
+ color: sectionproperties.total_color,
932
+ }}
933
+ >
934
+ {lang.total}
935
+ </p>
936
+ </div>
937
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
938
+ <div className="row m-0 w-100">
939
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
940
+ <p
941
+ className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
942
+ style={{
943
+ fontSize: sectionproperties.total_fontsize + 'px',
944
+ fontWeight: sectionproperties.total_fontweight,
945
+ textTransform: sectionproperties.total_texttransform,
946
+ color: sectionproperties.total_color,
947
+ }}
948
+ >
949
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
950
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2)}{' '}
951
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
952
+ </p>
953
+ </div>
954
+ </div>
955
+ </div>
956
+ </div>
957
+ </div>
958
+ )}
959
+ {sectionproperties.slideshowtext1_show == 'Show' && (
960
+ <div
961
+ class="col-lg-12 p-0 my-2 p-2 allcentered mb-3"
962
+ style={{
963
+ background: '#eee',
964
+ borderRadius: 10,
965
+ }}
966
+ >
967
+ <p
968
+ class="m-0 p-0"
969
+ style={{
970
+ color: sectionproperties.slideshowText1ContentColor,
971
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
972
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
973
+ }}
974
+ dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.text1editortexten : sectionproperties.text1editortextar }}
975
+ ></p>
976
+ </div>
977
+ )}
978
+ <div
979
+ className="col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3"
980
+ style={{
981
+ marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
982
+ }}
983
+ >
984
+ <button
985
+ className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
986
+ onClick={() => {
987
+ var payloadobj = {};
988
+ if (sectionproperties.showpaymentfooter == 'Hide') {
989
+ cartinfoupdater('paymentmethod', 'cod');
990
+ }
991
+ addorderfuncrunner();
992
+ }}
993
+ disabled={ischeckoutbuttonloading() == true ? true : false}
994
+ >
995
+ {ischeckoutbuttonloading() && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
996
+ {!ischeckoutbuttonloading()
997
+ ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
998
+ ? lang.continuetopayment
999
+ : authdetailsContext.loggedin
1000
+ ? langdetect == 'en'
1001
+ ? sectionproperties.checkoutbtn_en2
1002
+ : sectionproperties.checkoutbtn_ar2
1003
+ : langdetect == 'en'
1004
+ ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest
1005
+ : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
1006
+ : ''}
1007
+ </button>
1008
+
1009
+ {/* <button
1010
+ className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
1011
+ onClick={() => {
1012
+ var payloadobj = {};
1013
+ if (sectionproperties.showpaymentfooter == 'Hide') {
1014
+ cartinfoupdater('paymentmethod', 'cod');
1015
+ }
1016
+ addorderfuncrunner();
1017
+ // AddOrderMutationContext.mutate(payloadobj);
1018
+ }}
1019
+ disabled={ischeckoutbuttonloading() == true ? true : false}
1020
+ >
1021
+ {ischeckoutbuttonloading() == true && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
1022
+ {!ischeckoutbuttonloading() == true
1023
+ ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
1024
+ ? lang.continuetopayment
1025
+ : authdetailsContext.loggedin
1026
+ ? langdetect == 'en'
1027
+ ? sectionproperties.checkoutbtn_en2
1028
+ : sectionproperties.checkoutbtn_ar2
1029
+ : langdetect == 'en'
1030
+ ? sectionproperties.checkoutbtn_en2 + 'asd ' + lang.asaguest
1031
+ : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
1032
+ : ''}
1033
+ </button> */}
1034
+ </div>
1035
+ {authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && (
1036
+ <div
1037
+ className="col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3"
1038
+ style={{
1039
+ marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
1040
+ }}
1041
+ >
1042
+ <div class="row m-0 w-100">
1043
+ <div class="col-lg-12 p-0 allcentered mb-2">
1044
+ <p class="m-0 0-0">{langdetect == 'en' ? 'Already have an account' : 'لديك حساب بالفعل؟'}</p>
1045
+ </div>
1046
+ <div class="col-lg-12 p-0 allcentered">
1047
+ <button
1048
+ className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
1049
+ onClick={() => {
1050
+ routingcountext(StaticPagesLinksContext.Login);
1051
+ }}
1052
+ >
1053
+ {langdetect == 'en' ? 'Login' : 'تسجيل الدخول'}
1054
+ </button>
1055
+ </div>
1056
+ </div>
1057
+ </div>
1058
+ )}
1059
+ </div>
1060
+ </div>
1061
+ </div>
1062
+ )}
1063
+ </div>
1064
+ );
1065
+ };
1066
+ return (
1067
+ <div className={'row m-0 w-100 d-flex justify-content-center p-sm-0 '}>
1068
+ <div className={' col-lg-12 w-100 d-flex justify-content-center p-0 '}>
1069
+ <div className={checkoutstyles.containerstyles + ' w-100 d-flex justify-content-center px-md-2 '}>
1070
+ <div className={'row m-0 w-100 justify-content-center '}>
1071
+ <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 '}>
1072
+ <div className="col-lg-12 d-flex align-items-center p-0">
1073
+ <p
1074
+ style={{
1075
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
1076
+ color: sectionproperties.sectionTitleColor,
1077
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
1078
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
1079
+ textTransform: sectionproperties.sectionTitleTextTransform,
1080
+ fontWeight: sectionproperties.sectionTitleFontWeight,
1081
+ }}
1082
+ >
1083
+ {langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar}
1084
+ </p>
1085
+ </div>
1086
+
1087
+ {/* Logged in information */}
1088
+ {authdetailsContext.loggedin && (
1089
+ <div className="col-lg-12 p-0">
1090
+ <div
1091
+ className="pl-3 pr-3 pt-2 pb-2"
1092
+ style={{
1093
+ background: sectionproperties.userinfo_sectionbgcolor,
1094
+ borderRadius: sectionproperties.userinfo_borderradius + 'px',
1095
+ marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
1096
+ marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
1097
+ border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
1098
+ }}
1099
+ >
1100
+ <div className="row m-0 w-100">
1101
+ <div className={`${checkoutstyles.userinfo_iconcont}` + ' d-flex align-items-center justify-content-center '}>
1102
+ <FiCheckCircle size={20} />
1103
+ </div>
1104
+ <div className="col-lg-11 col-md-10 col-sm-10 p-0">
1105
+ <div className="row m-0 w-100">
1106
+ <div
1107
+ className="col-lg-12 d-flex align-items-center pl-2 pr-2"
1108
+ style={{
1109
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1110
+ color: sectionproperties.userinfo_titlecolor,
1111
+ fontWeight: sectionproperties.userinfo_titlefontweight,
1112
+ }}
1113
+ >
1114
+ {lang.loggedinas}
1115
+ </div>
1116
+
1117
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '}>
1118
+ <div className="m-0 p-0 d-flex align-items-center">
1119
+ <i
1120
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1121
+ style={{
1122
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1123
+ color: sectionproperties.userinfotext_iconcolor,
1124
+ marginRight: langdetect == 'en' ? '5px' : 0,
1125
+ marginLeft: langdetect == 'en' ? 0 : '5px',
1126
+ }}
1127
+ >
1128
+ <HiUser />
1129
+ </i>
1130
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.name}</p>
1131
+ </div>
1132
+ </div>
1133
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
1134
+ <div className="m-0 p-0 d-flex align-items-center">
1135
+ <i
1136
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1137
+ style={{
1138
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1139
+ color: sectionproperties.userinfotext_iconcolor,
1140
+ marginRight: langdetect == 'en' ? '5px' : 0,
1141
+ marginLeft: langdetect == 'en' ? 0 : '5px',
1142
+ }}
1143
+ >
1144
+ <BiPhone />
1145
+ </i>
1146
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.mobile}</p>
1147
+ </div>
1148
+ </div>
1149
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
1150
+ <div className="m-0 p-0 d-flex align-items-center">
1151
+ <i
1152
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1153
+ style={{
1154
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1155
+ color: sectionproperties.userinfotext_iconcolor,
1156
+ marginRight: langdetect == 'en' ? '5px' : 0,
1157
+ marginLeft: langdetect == 'en' ? 0 : '5px',
1158
+ }}
1159
+ >
1160
+ <GrMail />
1161
+ </i>
1162
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.email}</p>
1163
+ </div>
1164
+ </div>
1165
+ </div>
1166
+ </div>
1167
+ {langdetect == 'en' && (
1168
+ <div
1169
+ className="col-lg-12 justify-content-end float-right pl-2 pr-2"
1170
+ style={{
1171
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1172
+ color: sectionproperties.userinfo_titlecolor,
1173
+ fontWeight: sectionproperties.userinfo_titlefontweight,
1174
+ textAlign: 'right',
1175
+ textDecoration: 'underline',
1176
+ cursor: 'pointer',
1177
+ position: 'absolute',
1178
+ right: 10,
1179
+ top: 10,
1180
+ }}
1181
+ onClick={() => {
1182
+ routingcountext(StaticPagesLinksContext.accountinfo);
1183
+ }}
1184
+ >
1185
+ {lang.update}
1186
+ </div>
1187
+ )}
1188
+ {langdetect == 'ar' && (
1189
+ <div
1190
+ className="col-lg-12 justify-content-end float-left pl-2 pr-2"
1191
+ style={{
1192
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1193
+ color: sectionproperties.userinfo_titlecolor,
1194
+ fontWeight: sectionproperties.userinfo_titlefontweight,
1195
+ textAlign: 'left',
1196
+ textDecoration: 'underline',
1197
+ cursor: 'pointer',
1198
+ position: 'absolute',
1199
+ left: 10,
1200
+ top: 10,
1201
+ }}
1202
+ onClick={() => {
1203
+ routingcountext(StaticPagesLinksContext.accountinfo);
1204
+ }}
1205
+ >
1206
+ {lang.update}
1207
+ </div>
1208
+ )}
1209
+ </div>
1210
+ </div>
1211
+ </div>
1212
+ )}
1213
+ {/* Address Details */}
1214
+ {/* {sectionproperties.hideshipping == 'Show' && ( */}
1215
+ <div
1216
+ className="col-lg-12 p-0"
1217
+ style={{
1218
+ display:
1219
+ authdetailsContext.loggedin == true &&
1220
+ sectionproperties.hidecountrystatecity == 'Hide' &&
1221
+ sectionproperties.hideaddress == 'Hide' &&
1222
+ sectionproperties.shownotes == 'Hide' &&
1223
+ insthasaffiliate == 0
1224
+ ? 'none'
1225
+ : 'flex',
1226
+ }}
1227
+ >
1228
+ <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1229
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1230
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>
1231
+ {authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails}
1232
+ </p>
1233
+ </div>
1234
+ <div className="col-lg-12 p-0">
1235
+ <hr className="mt-2 mb-2" />
1236
+ </div>
1237
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3 pb-3">
1238
+ {!authdetailsContext.loggedin && (
1239
+ <>
1240
+ <div className="col-lg-4 col-md-12 mb-3">
1241
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{lang.name}</label>
1242
+ <input
1243
+ type={'text'}
1244
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1245
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.name}
1246
+ onChange={(event) => {
1247
+ cartinfoupdater('name', event.target.value);
1248
+ }}
1249
+ style={{
1250
+ resize: 'none',
1251
+ boxShadow: 'none',
1252
+ }}
1253
+ />
1254
+ </div>
1255
+ <div className="col-lg-4 col-md-12 mb-3">
1256
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'}</label>
1257
+ <input
1258
+ type={'text'}
1259
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1260
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
1261
+ onChange={(event) => {
1262
+ cartinfoupdater('mobile', event.target.value);
1263
+ }}
1264
+ style={{
1265
+ resize: 'none',
1266
+ boxShadow: 'none',
1267
+ }}
1268
+ />
1269
+ </div>
1270
+ <div className="col-lg-4 col-md-12 mb-3">
1271
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{lang.email}</label>
1272
+ <input
1273
+ type={'text'}
1274
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1275
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.email}
1276
+ onChange={(event) => {
1277
+ cartinfoupdater('email', event.target.value);
1278
+ }}
1279
+ style={{
1280
+ boxShadow: 'none',
1281
+ }}
1282
+ />
1283
+ </div>
1284
+ </>
1285
+ )}
1286
+ <div
1287
+ class="col-lg-12 p-0"
1288
+ style={{
1289
+ display: sectionproperties.hidecountrystatecity == 'Hide' && sectionproperties.hideaddress == 'Hide' ? 'none' : 'flex',
1290
+ }}
1291
+ >
1292
+ <div class="row m-0 w-100">
1293
+ {sectionproperties.hidecountrystatecity == 'Show' && (
1294
+ <div className="col-lg-4 col-md-12 mb-3">
1295
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}> {lang.country}</label>
1296
+ {fetchTabexCountriesQueryContext.isFetching && (
1297
+ <div className="w-100 allcentered mt-1">
1298
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1299
+ </div>
1300
+ )}
1301
+ {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
1302
+ <Select
1303
+ options={fetchTabexCountriesQueryContext.data.data.countries}
1304
+ getOptionLabel={(option) => {
1305
+ var crname = '';
1306
+ if (langdetect == 'en') {
1307
+ crname = option.name;
1308
+ } else if (langdetect == 'ar') {
1309
+ if (option.name_ar != null) {
1310
+ crname = option.name_ar;
1311
+ } else {
1312
+ crname = option.name;
1313
+ }
1314
+ }
1315
+ return crname;
1316
+ }}
1317
+ getOptionValue={(option) => option.id}
1318
+ value={fetchTabexCountriesQueryContext.data.data.countries.filter(
1319
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
1320
+ )}
1321
+ onChange={(option) => {
1322
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1323
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
1324
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
1325
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1326
+ cartinfoupdater('countryid', option.id);
1327
+ }}
1328
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1329
+ placeholder={lang.choosecountry}
1330
+ isSearchable={true}
1331
+ />
1332
+ )}
1333
+ </div>
1334
+ )}
1335
+ {sectionproperties.hidecountrystatecity == 'Show' && (
1336
+ <div className="col-lg-4 col-md-12 mb-3">
1337
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.stategov}</label>
1338
+ {fetchTabexStatesQueryContext.isFetching && (
1339
+ <div className="w-100 allcentered mt-1">
1340
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1341
+ </div>
1342
+ )}
1343
+ {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
1344
+ <Select
1345
+ options={fetchTabexStatesQueryContext.data.data.states}
1346
+ // getOptionLabel={(option) => option.name}
1347
+ // getOptionValue={(option) => option.id}
1348
+ getOptionLabel={(option) => {
1349
+ var crname = '';
1350
+ if (langdetect == 'en') {
1351
+ crname = option.name;
1352
+ } else if (langdetect == 'ar') {
1353
+ if (option.name_ar != null) {
1354
+ crname = option.name_ar;
1355
+ } else {
1356
+ crname = option.name;
1357
+ }
1358
+ }
1359
+ return crname;
1360
+ }}
1361
+ getOptionValue={(option) => option.id}
1362
+ value={fetchTabexStatesQueryContext.data.data.states.filter(
1363
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
1364
+ )}
1365
+ onChange={(option) => {
1366
+ if (option.id.length != 0 && fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0) {
1367
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1368
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
1369
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
1370
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1371
+ cartinfoupdater('stateid', option.id);
1372
+ } else {
1373
+ NotificationManager.warning('', 'Please Choose Country Or State');
1374
+ }
1375
+ }}
1376
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1377
+ placeholder={lang.choosestategov}
1378
+ isSearchable={true}
1379
+ />
1380
+ )}
1381
+ </div>
1382
+ )}
1383
+ {sectionproperties.hidecountrystatecity == 'Show' && (
1384
+ <div className="col-lg-4 col-md-12 mb-3">
1385
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.city}</label>
1386
+ {fetchTabexCitiesQueryContext.isFetching && (
1387
+ <div className="w-100 allcentered mt-1">
1388
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1389
+ </div>
1390
+ )}
1391
+ {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
1392
+ <Select
1393
+ options={fetchTabexCitiesQueryContext.data.data.cities}
1394
+ getOptionLabel={(option) => {
1395
+ var crname = '';
1396
+ if (langdetect == 'en') {
1397
+ crname = option.name;
1398
+ } else if (langdetect == 'ar') {
1399
+ if (option.name_ar != null) {
1400
+ crname = option.name_ar;
1401
+ } else {
1402
+ crname = option.name;
1403
+ }
1404
+ }
1405
+ return crname;
1406
+ }}
1407
+ getOptionValue={(option) => option.id}
1408
+ value={fetchTabexCitiesQueryContext.data.data.cities.filter(
1409
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
1410
+ )}
1411
+ onChange={(option) => {
1412
+ cartinfoupdater('cityid', option.id);
1413
+ }}
1414
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1415
+ placeholder={lang.choosecity}
1416
+ isSearchable={true}
1417
+ />
1418
+ )}
1419
+ </div>
1420
+ )}
1421
+ {sectionproperties.hideaddress == 'Show' && (
1422
+ <div className="col-lg-12 mb-3">
1423
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1424
+ {langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar}
1425
+ {/* {lang.shippingaddress} */}
1426
+ </label>
1427
+ <TextareaAutosize
1428
+ type={'text'}
1429
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1430
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.address}
1431
+ onChange={(event) => {
1432
+ cartinfoupdater('address', event.target.value);
1433
+ }}
1434
+ style={{
1435
+ resize: 'none',
1436
+ boxShadow: 'none',
1437
+ }}
1438
+ />
1439
+ </div>
1440
+ )}
1441
+ </div>
1442
+ </div>
1443
+ {sectionproperties.shownotes == 'Show' && (
1444
+ <div className="col-lg-12 mb-3">
1445
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>
1446
+ {/* {langdetect == 'en' ? 'Notes' : 'الملاحظات'} */}
1447
+ {langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar}
1448
+ </label>
1449
+ <TextareaAutosize
1450
+ type={'text'}
1451
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1452
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.notes}
1453
+ onChange={(event) => {
1454
+ cartinfoupdater('notes', event.target.value);
1455
+ }}
1456
+ style={{
1457
+ resize: 'none',
1458
+ boxShadow: 'none',
1459
+ }}
1460
+ />
1461
+ </div>
1462
+ )}
1463
+ {insthasaffiliate == 1 && (
1464
+ <div className="col-lg-12 mb-3">
1465
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>
1466
+ {langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'}
1467
+ </label>
1468
+ <input
1469
+ type={'number'}
1470
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1471
+ value={fetchcustomercartQueryContext?.data?.data?.customercart?.aff_code}
1472
+ onChange={(event) => {
1473
+ cartinfoupdater('aff_code', event.target.value);
1474
+ }}
1475
+ style={{
1476
+ resize: 'none',
1477
+ boxShadow: 'none',
1478
+ }}
1479
+ />
1480
+ </div>
1481
+ )}
1482
+ </div>
1483
+ </div>
1484
+ </div>
1485
+ {/* )} */}
1486
+ {/* zeft hatly */}
1487
+ {shippingmethods.length != 0 && sectionproperties.showshippingmethod == 'Show' && (
1488
+ <div className="col-lg-12 p-0 w-100">
1489
+ <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1490
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1491
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{langdetect == 'en' ? 'Shipping Method' : 'طريقة الشحن'}</p>
1492
+ </div>
1493
+ <div className="col-lg-12 p-0">
1494
+ <hr className="mt-2 mb-2" />
1495
+ </div>
1496
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3">
1497
+ <select
1498
+ style={{ width: '100%' }}
1499
+ onChange={(event) => {
1500
+ cartinfoupdater('shippingmethod_id', event.target.value);
1501
+ }}
1502
+ value={fetchcustomercartQueryContext?.data?.data?.customercart?.shippingmethod_id}
1503
+ >
1504
+ <option value={null}>{langdetect == 'en' ? 'Choose Shipping Method' : 'اخنر طريقة الشحن'}</option>
1505
+ {shippingmethods?.map(function (item, index) {
1506
+ return <option value={item.id}>{langdetect == 'en' ? item.name_en : item.name_ar}</option>;
1507
+ })}
1508
+ </select>
1509
+ </div>
1510
+ </div>
1511
+ </div>
1512
+ )}
1513
+ {/* end of hatly */}
1514
+ {/* Payment */}
1515
+
1516
+ {sectionproperties.showpaymentfooter == 'Show' && (
1517
+ <div className="col-lg-12 p-0 w-100">
1518
+ <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1519
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1520
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentmethod}</p>
1521
+ </div>
1522
+ <div className="col-lg-12 p-0">
1523
+ <hr className="mt-2 mb-2" />
1524
+ </div>
1525
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3">
1526
+ {authdetailsContext.instinfo.acceptCOD == 1 && (
1527
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1528
+ <label
1529
+ className={
1530
+ langdetect == 'en'
1531
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1532
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated}` + ' d-flex mb-0 '
1533
+ }
1534
+ for="codcheckbox"
1535
+ >
1536
+ <input
1537
+ id={'codcheckbox'}
1538
+ type="checkbox"
1539
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1540
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cod' ? true : false}
1541
+ onChange={() => {
1542
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cod') {
1543
+ cartinfoupdater('paymentmethod', 'cod');
1544
+ }
1545
+ }}
1546
+ />
1547
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1548
+ <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>
1549
+ </svg>
1550
+ <p
1551
+ className={' ml-2 mb-0 cursor-pointer wordbreak mr-2'}
1552
+ style={{
1553
+ color: sectionproperties.checkbox_color,
1554
+ }}
1555
+ >
1556
+ {langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar}
1557
+ </p>
1558
+ </label>
1559
+ </div>
1560
+ )}
1561
+ {authdetailsContext.instinfo.acceptCardOnDelivery == 1 && (
1562
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1563
+ <label
1564
+ className={
1565
+ langdetect == 'en'
1566
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1567
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1568
+ }
1569
+ >
1570
+ <input
1571
+ type="checkbox"
1572
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1573
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cardondelivery' ? true : false}
1574
+ onChange={() => {
1575
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cardondelivery') {
1576
+ cartinfoupdater('paymentmethod', 'cardondelivery');
1577
+ }
1578
+ }}
1579
+ />
1580
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1581
+ <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>
1582
+ </svg>
1583
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.cardondelivery}</p>
1584
+ </label>
1585
+ </div>
1586
+ )}
1587
+ {authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && (
1588
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1589
+ <label
1590
+ className={
1591
+ langdetect == 'en'
1592
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1593
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1594
+ }
1595
+ >
1596
+ <input
1597
+ type="checkbox"
1598
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1599
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment' ? true : false}
1600
+ onChange={() => {
1601
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'onlinepayment') {
1602
+ cartinfoupdater('paymentmethod', 'onlinepayment');
1603
+ }
1604
+ }}
1605
+ />
1606
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1607
+ <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>
1608
+ </svg>
1609
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.onlinepayment}</p>
1610
+ </label>
1611
+ </div>
1612
+ )}
1613
+
1614
+ {authdetailsContext.instinfo.acceptValuCard == 1 && (
1615
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1616
+ <label
1617
+ className={
1618
+ langdetect == 'en'
1619
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1620
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1621
+ }
1622
+ >
1623
+ <input
1624
+ type="checkbox"
1625
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1626
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'valU' ? true : false}
1627
+ onChange={() => {
1628
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'valU') {
1629
+ cartinfoupdater('paymentmethod', 'valU');
1630
+ }
1631
+ }}
1632
+ />
1633
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1634
+ <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>
1635
+ </svg>
1636
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
1637
+ {langdetect == 'en' ? sectionproperties.valuorfawryname : sectionproperties.valuorfawrynamear}
1638
+ </p>
1639
+ </label>
1640
+ </div>
1641
+ )}
1642
+ {authdetailsContext.instinfo.acceptmobilewalletpayment == 1 && (
1643
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1644
+ <label
1645
+ className={
1646
+ langdetect == 'en'
1647
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1648
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1649
+ }
1650
+ >
1651
+ <input
1652
+ type="checkbox"
1653
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1654
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'mobilewallet' ? true : false}
1655
+ onChange={() => {
1656
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'mobilewallet') {
1657
+ cartinfoupdater('paymentmethod', 'mobilewallet');
1658
+ }
1659
+ }}
1660
+ />
1661
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1662
+ <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>
1663
+ </svg>
1664
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
1665
+ {/* {langdetect == 'en' ? 'Mobile Wallet' : 'المحفظة الإلكترونية'} */}
1666
+ {langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear}
1667
+ </p>
1668
+ </label>
1669
+ </div>
1670
+ )}
1671
+ {authdetailsContext?.instinfo?.acceptForsaCard == 1 && (
1672
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1673
+ <label
1674
+ className={
1675
+ langdetect == 'en'
1676
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1677
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1678
+ }
1679
+ >
1680
+ <input
1681
+ type="checkbox"
1682
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1683
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'forsa' ? true : false}
1684
+ onChange={() => {
1685
+ if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'forsa') {
1686
+ cartinfoupdater('paymentmethod', 'forsa');
1687
+ }
1688
+ }}
1689
+ />
1690
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1691
+ <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>
1692
+ </svg>
1693
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Forsa' : ' Forsa'}</p>
1694
+ </label>
1695
+ </div>
1696
+ )}
1697
+ {authdetailsContext?.instinfo?.acceptonlinePaypal == 1 && (
1698
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1699
+ <label
1700
+ className={
1701
+ langdetect == 'en'
1702
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1703
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1704
+ }
1705
+ >
1706
+ <input
1707
+ type="checkbox"
1708
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1709
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'paypal' ? true : false}
1710
+ onChange={() => {
1711
+ if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'paypal') {
1712
+ cartinfoupdater('paymentmethod', 'paypal');
1713
+ }
1714
+ }}
1715
+ />
1716
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1717
+ <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>
1718
+ </svg>
1719
+ <p className={`${formstyles.checkbox_label} + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '`}>{langdetect == 'en' ? 'Paypal' : ' Paypal'}</p>
1720
+ </label>
1721
+ </div>
1722
+ )}
1723
+ {authdetailsContext?.instinfo?.acceptBankInstallementsCard == 1 && (
1724
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1725
+ <label
1726
+ className={
1727
+ langdetect == 'en'
1728
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1729
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1730
+ }
1731
+ >
1732
+ <input
1733
+ type="checkbox"
1734
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1735
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'bankinstallments' ? true : false}
1736
+ onChange={() => {
1737
+ if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'bankinstallments') {
1738
+ cartinfoupdater('paymentmethod', 'bankinstallments');
1739
+ }
1740
+ }}
1741
+ />
1742
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1743
+ <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>
1744
+ </svg>
1745
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
1746
+ {langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'}
1747
+ </p>
1748
+ </label>
1749
+ </div>
1750
+ )}
1751
+ {authdetailsContext?.instinfo?.acceptAmanCard == 1 && (
1752
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1753
+ <label
1754
+ className={
1755
+ langdetect == 'en'
1756
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1757
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1758
+ }
1759
+ >
1760
+ <input
1761
+ type="checkbox"
1762
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1763
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'Aman' ? true : false}
1764
+ onChange={() => {
1765
+ if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'Aman') {
1766
+ cartinfoupdater('paymentmethod', 'Aman');
1767
+ }
1768
+ }}
1769
+ />
1770
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1771
+ <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>
1772
+ </svg>
1773
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Aman' : 'Aman'}</p>
1774
+ </label>
1775
+ </div>
1776
+ )}
1777
+ </div>
1778
+ </div>
1779
+ </div>
1780
+ )}
1781
+
1782
+ {fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment1' && (
1783
+ <div className="col-lg-12 p-0 w-100 mb-3">
1784
+ <div
1785
+ style={{
1786
+ background: sectionproperties.payment_sectionbgcolor,
1787
+ borderRadius: sectionproperties.payment_borderradius + 'px',
1788
+ borderColor: sectionproperties.payment_sectionbordercolor,
1789
+ }}
1790
+ >
1791
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1792
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentcardinformation}</p>
1793
+ </div>
1794
+ <div className="col-lg-12 p-0">
1795
+ <hr className="mt-2 mb-2" />
1796
+ </div>
1797
+ <div className="w-100 row m-0 pl-3 pr-3 pt-2 pb-2">
1798
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0">
1799
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cardnumber}</label>
1800
+ <input
1801
+ className={formstyles.form_controlcheckout}
1802
+ type="text"
1803
+ textplaceholder=""
1804
+ onChange={(event) => {}}
1805
+ style={{
1806
+ fontWeight: sectionproperties.inputtextfontweight,
1807
+ background: sectionproperties.input_bgcolor,
1808
+ color: sectionproperties.inputfieldcolor,
1809
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1810
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1811
+ }}
1812
+ />
1813
+ </div>
1814
+ <div className="w-100 row m-0">
1815
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1816
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.year}</label>
1817
+ <input
1818
+ className={formstyles.form_controlcheckout}
1819
+ type="text"
1820
+ textplaceholder=""
1821
+ onChange={(event) => {}}
1822
+ style={{
1823
+ fontWeight: sectionproperties.inputtextfontweight,
1824
+ background: sectionproperties.input_bgcolor,
1825
+ color: sectionproperties.inputfieldcolor,
1826
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1827
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1828
+ }}
1829
+ />
1830
+ </div>
1831
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1832
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.month}</label>
1833
+ <input
1834
+ className={formstyles.form_controlcheckout}
1835
+ type="text"
1836
+ textplaceholder=""
1837
+ onChange={(event) => {}}
1838
+ style={{
1839
+ fontWeight: sectionproperties.inputtextfontweight,
1840
+ background: sectionproperties.input_bgcolor,
1841
+ color: sectionproperties.inputfieldcolor,
1842
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1843
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1844
+ }}
1845
+ />
1846
+ </div>
1847
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1848
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cvv}</label>
1849
+ <input
1850
+ className={formstyles.form_controlcheckout}
1851
+ type="text"
1852
+ textplaceholder=""
1853
+ onChange={(event) => {}}
1854
+ style={{
1855
+ fontWeight: sectionproperties.inputtextfontweight,
1856
+ background: sectionproperties.input_bgcolor,
1857
+ color: sectionproperties.inputfieldcolor,
1858
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1859
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1860
+ }}
1861
+ />
1862
+ </div>
1863
+ </div>
1864
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3">
1865
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.nameoncard}</label>
1866
+ <input
1867
+ className={formstyles.form_controlcheckout}
1868
+ type="text"
1869
+ textplaceholder=""
1870
+ onChange={(event) => {}}
1871
+ style={{
1872
+ fontWeight: sectionproperties.inputtextfontweight,
1873
+ background: sectionproperties.input_bgcolor,
1874
+ color: sectionproperties.inputfieldcolor,
1875
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1876
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1877
+ }}
1878
+ />
1879
+ </div>
1880
+ </div>
1881
+ </div>
1882
+ </div>
1883
+ )}
1884
+ </div>
1885
+ <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>
1886
+ </div>
1887
+ </div>
1888
+ </div>
1889
+ </div>
1890
+ );
1891
+ };
1892
+ export default Checkout;