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