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,1593 @@
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
+ background: sectionproperties.backgroundColor,
328
+ paddingTop: sectionproperties.marginTop + 'px',
329
+ paddingBottom: sectionproperties.marginBottom + 'px',
330
+ paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
331
+ paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
332
+ '@media (max-width: 800px)': {
333
+ marginTop: sectionproperties.marginTopResp + 'px',
334
+ },
335
+ }),
336
+ };
337
+ const addorderfuncrunner = async () => {
338
+ // var temppayload = fetchcustomercartQueryContext?.data?.data?.customercart;
339
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
340
+ // temppayload.endpointurl = '/ChooseState_Country';
341
+ GeneralAPIMutationContext.mutate({
342
+ endpointurl: '/ChooseState_Country',
343
+ stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
344
+ countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
345
+ cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
346
+ address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
347
+ paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
348
+ name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
349
+ email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
350
+ mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
351
+ notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
352
+ aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
353
+
354
+ mutateSuccesscallback: (data, variables) => {
355
+ if (data.data.status) {
356
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
357
+ cartarr.data = data.data.cartresponse;
358
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
359
+ if (data.data.cdata != null) {
360
+ // const cookies = new Cookies();
361
+ localStorage.setItem('cdata', data.data.cdata);
362
+ }
363
+ AddOrderMutationContext.mutate();
364
+ } else {
365
+ NotificationManager.warning('', data.data.reason);
366
+ }
367
+ },
368
+ });
369
+ };
370
+ const Mycart = () => {
371
+ return (
372
+ <div className="row m-0 w-100 mb-md-3">
373
+ <div className="col-lg-12 d-flex align-items-center p-0">
374
+ <p
375
+ style={{
376
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
377
+ color: sectionproperties.sectionTitleColor,
378
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
379
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
380
+ textTransform: sectionproperties.sectionTitleTextTransform,
381
+ fontWeight: sectionproperties.sectionTitleFontWeight,
382
+ }}
383
+ >
384
+ {lang.mycart}
385
+ </p>
386
+ </div>
387
+ {ChooseState_CountryMutationContext.isLoading && (
388
+ <div className="col-lg-12 allcentered p-0">
389
+ <Messaging color="#000" width="10px" height="10px" duration="1s" />
390
+ </div>
391
+ )}
392
+ {!ChooseState_CountryMutationContext.isLoading && (
393
+ <div className="row m-0 w-100">
394
+ <div className="col-lg-12 p-0">
395
+ {fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
396
+ if (item.product_extrafields != null) {
397
+ var product_extrafields = JSON.parse(item.product_extrafields);
398
+ // var product_extrafields_parsed = JSON.stringify(product_extrafields);
399
+ // alert(product_extrafields_parsed);
400
+ }
401
+ return (
402
+ <div
403
+ 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'}
404
+ style={{
405
+ background: sectionproperties.summary_sectionbgcolor,
406
+ borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
407
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
408
+ }}
409
+ >
410
+ <div className="row m-0 w-100 d-flex">
411
+ <div className={`${checkoutstyles.imagecont}`}>
412
+ <Imagekitimagecomp
413
+ urlEndpoint={ikimagecredcontext?.ikimageendpoint}
414
+ publicKey={ikimagecredcontext?.ikimagepublickey}
415
+ path={
416
+ item.productinfo.hasvariants == 0
417
+ ? '/tr:w-300,h-300/' + item.productinfo.productmainimage
418
+ : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
419
+ }
420
+ style={{
421
+ width: '100%',
422
+ height: '100%',
423
+ objectFit: 'contain',
424
+ }}
425
+ loading="lazy"
426
+ />
427
+ </div>
428
+ <div className="col-lg-7 col-md-7 col-sm-7">
429
+ <div className="row m-0 w-100">
430
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start">
431
+ <p
432
+ className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 w-100 '}
433
+ style={{
434
+ textAlign: langdetect == 'en' ? 'left' : 'right',
435
+ }}
436
+ >
437
+ {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
438
+ </p>
439
+ </div>
440
+ {sectionproperties.producttype == 'Product' && (
441
+ <div className="col-lg-12 p-0 d-flex justify-content-start">
442
+ <p
443
+ className="m-0 p-0 font-weight-500 text-light w-100"
444
+ style={{
445
+ textAlign: langdetect == 'en' ? 'left' : 'right',
446
+ }}
447
+ >
448
+ {lang.qty}: {item.quantity}
449
+ </p>
450
+ </div>
451
+ )}
452
+ </div>
453
+ </div>
454
+ {sectionproperties.prodPriceshow == 'Show' && (
455
+ <div className="col-lg-3 col-md-3 col-sm-2 p-0">
456
+ <div className="row m-0 w-100 h-100">
457
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
458
+ {item.productinfo.hasvariants == 0 && (
459
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
460
+ {item.productinfo.hassale == 0 && (
461
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
462
+ <p
463
+ className={
464
+ langdetect == 'en'
465
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
466
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
467
+ }
468
+ >
469
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {item.finalprice}{' '}
470
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
471
+ </p>
472
+ </div>
473
+ )}
474
+ {item.productinfo.hassale == 1 && (
475
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
476
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
477
+ <p
478
+ className={
479
+ langdetect == 'en'
480
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
481
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
482
+ }
483
+ >
484
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {parseFloat(item.finalprice).toFixed(2)}{' '}
485
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
486
+ </p>
487
+ </div>
488
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
489
+ <p
490
+ className={
491
+ langdetect == 'en'
492
+ ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
493
+ : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
494
+ }
495
+ >
496
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
497
+ {parseFloat(item.productinfo.defaultprice).toFixed(2)}{' '}
498
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
499
+ </p>
500
+ </div>
501
+ </div>
502
+ )}
503
+ </div>
504
+ )}
505
+ {item.productinfo.hasvariants == 1 && (
506
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
507
+ {item.productinfo.variantinfo.hassale == 0 && (
508
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
509
+ <p
510
+ className={
511
+ langdetect == 'en'
512
+ ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
513
+ : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
514
+ }
515
+ >
516
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : authdetailsContext?.currencyname_ar}{' '}
517
+ {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}
518
+ </p>
519
+ </div>
520
+ )}
521
+ {item.productinfo.variantinfo.hassale == 1 && (
522
+ <div className="row m-0 w-100 d-flex flex-column justify-content-end">
523
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
524
+ <p
525
+ className={
526
+ langdetect == 'en'
527
+ ? `${checkoutstyles.productPricestyles}` +
528
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
529
+ : `${checkoutstyles.productPricestyles}` +
530
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
531
+ }
532
+ >
533
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
534
+ {parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2)}
535
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
536
+ </p>
537
+ </div>
538
+ <div className="col-lg-12 p-0 d-flex justify-content-end">
539
+ <p
540
+ className={
541
+ langdetect == 'en'
542
+ ? `${checkoutstyles.Salepricestyless}` +
543
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
544
+ : `${checkoutstyles.Salepricestyless}` +
545
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
546
+ }
547
+ >
548
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
549
+ {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}{' '}
550
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
551
+ </p>
552
+ </div>
553
+ </div>
554
+ )}
555
+ </div>
556
+ )}
557
+ </div>
558
+ </div>
559
+ </div>
560
+ )}
561
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column">
562
+ {item.productinfo.hasvariants == 1 &&
563
+ item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
564
+ return (
565
+ <div class="row m-0 w-100">
566
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
567
+ <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
568
+ <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>{variantitem.optionvalue}</p>
569
+ </div>
570
+ </div>
571
+ );
572
+ })}
573
+ {item.product_extrafields != null &&
574
+ product_extrafields.map((extrafielditem, extrafieldindex) => {
575
+ return (
576
+ <div class="row m-0 w-100">
577
+ <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
578
+ <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>
579
+ {langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar}:
580
+ </p>
581
+ <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}> {extrafielditem.value}</p>
582
+ </div>
583
+ </div>
584
+ );
585
+ })}
586
+ </div>
587
+ </div>
588
+ </div>
589
+ );
590
+ })}
591
+
592
+ <div class={`${checkoutstyles.innersection}` + ' row m-0 w-100 p-3 '}>
593
+ <div className="col-lg-12 p-0 mb-1">
594
+ {sectionproperties.showpromocodesection == 'Show' && (
595
+ <div className="col-lg-12 p-0 mb-4">
596
+ <label className={`${checkoutstyles.input_label_name}` + ' p-0 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
597
+ <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
598
+ <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
599
+ <input
600
+ type="text"
601
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
602
+ placeholder={lang.giftcarddicountcode}
603
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
604
+ onChange={(event) => {
605
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
606
+ cartarr.data.customercart.couponname = event.target.value;
607
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
608
+ }}
609
+ disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
610
+ style={{
611
+ boxShadow: 'none',
612
+ }}
613
+ />
614
+ </div>
615
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
616
+ <button
617
+ className={` ${checkoutstyles.applybtnstyles}`}
618
+ onClick={() => {
619
+ if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
620
+ var payloadobj = {
621
+ couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
622
+ functype: 'add',
623
+ };
624
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
625
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
626
+ } else {
627
+ NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
628
+ }
629
+ } else {
630
+ var payloadobj = {
631
+ functype: 'delete',
632
+ };
633
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
634
+ }
635
+ }}
636
+ disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
637
+ >
638
+ <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
639
+ {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
640
+ ? langdetect == 'en'
641
+ ? 'Remove'
642
+ : 'حذف'
643
+ : langdetect == 'en'
644
+ ? 'Apply'
645
+ : 'تطبيق'}
646
+ </span>
647
+ <div
648
+ className={
649
+ ApplyPromoCodeMutationContext.isLoading
650
+ ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
651
+ : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
652
+ }
653
+ >
654
+ <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
655
+ </div>
656
+ </button>
657
+ </div>
658
+ </div>
659
+ </div>
660
+ )}
661
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance > 0 && (
662
+ <div className="row m-0 w-100">
663
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
664
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
665
+ {langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة'}
666
+ </p>
667
+ </div>
668
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
669
+ <p
670
+ className={
671
+ langdetect == 'en'
672
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
673
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
674
+ }
675
+ >
676
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance}
677
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
678
+ </p>
679
+ </div>
680
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 0 && (
681
+ <div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
682
+ <p
683
+ style={{ color: 'green', cursor: 'pointer' }}
684
+ onClick={() => {
685
+ usewalletpoints();
686
+ }}
687
+ >
688
+ {langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'}
689
+ </p>
690
+ </div>
691
+ )}
692
+ </div>
693
+ )}
694
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
695
+ <div className="row m-0 w-100">
696
+ <div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
697
+ <p
698
+ style={{ color: 'red', cursor: 'pointer' }}
699
+ onClick={() => {
700
+ usewalletpoints();
701
+ }}
702
+ >
703
+ {langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'}
704
+ </p>
705
+ </div>
706
+ </div>
707
+ )}
708
+ {sectionproperties.showtotalsection == 'Show' && (
709
+ <div className="row m-0 w-100">
710
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
711
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
712
+ </div>
713
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
714
+ <p
715
+ className={
716
+ langdetect == 'en'
717
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
718
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
719
+ }
720
+ >
721
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
722
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2)}{' '}
723
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
724
+ </p>
725
+ </div>
726
+ </div>
727
+ )}
728
+ {sectionproperties.showtotalsection == 'Show' && fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.length != 0 && (
729
+ <div className="row m-0 w-100">
730
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.map((item, index) => {
731
+ return (
732
+ <div class="col-lg-12 p-0">
733
+ <div className="row m-0 w-100">
734
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
735
+ <p
736
+ className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}
737
+ style={{
738
+ color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
739
+ }}
740
+ >
741
+ {langdetect == 'en' ? item.title_en : item.title_ar}
742
+ </p>
743
+ </div>
744
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
745
+ <p
746
+ className={
747
+ langdetect == 'en'
748
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
749
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
750
+ }
751
+ style={{
752
+ color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
753
+ }}
754
+ >
755
+ {item.addsubtype == 'subtract' && <span>-</span>}
756
+ {item.valuetype == 'value' && (
757
+ <span>
758
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {item.value}{' '}
759
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
760
+ </span>
761
+ )}
762
+ {item.valuetype == 'percentage' && <span>{item.value}%</span>}
763
+ </p>
764
+ </div>
765
+ </div>
766
+ </div>
767
+ );
768
+ })}
769
+ </div>
770
+ )}
771
+ </div>
772
+ {fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
773
+ <div className="row m-0 w-100">
774
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
775
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
776
+ {langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة'}
777
+ </p>
778
+ </div>
779
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
780
+ <p
781
+ className={
782
+ langdetect == 'en'
783
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
784
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
785
+ }
786
+ style={{ color: 'red' }}
787
+ >
788
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} -{' '}
789
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart?.walletpointsused)} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
790
+ </p>
791
+ </div>
792
+ </div>
793
+ )}
794
+ {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
795
+ <div className="col-lg-12 p-0 mb-1">
796
+ <div className="row m-0 w-100">
797
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
798
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
799
+ </div>
800
+
801
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
802
+ <p
803
+ className={
804
+ langdetect == 'en'
805
+ ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
806
+ : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
807
+ }
808
+ >
809
+ {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
810
+ <span>
811
+ - {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
812
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.discountprice).toFixed(2)}{' '}
813
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
814
+ </span>
815
+ )}
816
+ {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
817
+ </p>
818
+ </div>
819
+ </div>
820
+ </div>
821
+ )}
822
+ {sectionproperties.hideshipping == 'Show' && (
823
+ <div className="col-lg-12 p-0">
824
+ <div className="row m-0 w-100">
825
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
826
+ <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>{lang.shippingfees}</p>
827
+ </div>
828
+ {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
829
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
830
+ <p
831
+ className={
832
+ langdetect == 'en'
833
+ ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
834
+ : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
835
+ }
836
+ >
837
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
838
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice).toFixed(2)}{' '}
839
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
840
+ </p>
841
+ </div>
842
+ )}
843
+ {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
844
+ <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
845
+ <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
846
+ {lang.outofzone}
847
+ </p>
848
+ </div>
849
+ )}
850
+ </div>
851
+ </div>
852
+ )}
853
+ {sectionproperties.showseparator == 'Show' && (
854
+ <div className="col-lg-12 p-0">
855
+ <hr className="mt-2 mb-2" />
856
+ </div>
857
+ )}
858
+ {sectionproperties.showtotalsection == 'Show' && (
859
+ <div className="col-lg-12 p-0">
860
+ <div className="row m-0 w-100">
861
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
862
+ <p
863
+ className="d-flex align-items-start"
864
+ style={{
865
+ fontSize: sectionproperties.total_fontsize + 'px',
866
+ fontWeight: sectionproperties.total_fontweight,
867
+ textTransform: sectionproperties.total_texttransform,
868
+ color: sectionproperties.total_color,
869
+ }}
870
+ >
871
+ {lang.total}
872
+ </p>
873
+ </div>
874
+ <div className="col-lg-6 col-md-6 col-sm-6 p-0">
875
+ <div className="row m-0 w-100">
876
+ <div className="col-lg-12 p-0 d-flex justify-content-end ">
877
+ <p
878
+ className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
879
+ style={{
880
+ fontSize: sectionproperties.total_fontsize + 'px',
881
+ fontWeight: sectionproperties.total_fontweight,
882
+ textTransform: sectionproperties.total_texttransform,
883
+ color: sectionproperties.total_color,
884
+ }}
885
+ >
886
+ {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
887
+ {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2)}{' '}
888
+ {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
889
+ </p>
890
+ </div>
891
+ </div>
892
+ </div>
893
+ </div>
894
+ </div>
895
+ )}
896
+ {sectionproperties.slideshowtext1_show == 'Show' && (
897
+ <div
898
+ class="col-lg-12 p-0 my-2 p-2 allcentered mb-3"
899
+ style={{
900
+ background: '#eee',
901
+ borderRadius: 10,
902
+ }}
903
+ >
904
+ <p
905
+ class="m-0 p-0"
906
+ style={{
907
+ color: sectionproperties.slideshowText1ContentColor,
908
+ fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
909
+ fontWeight: sectionproperties.slideshowText1ContentFontWeight,
910
+ }}
911
+ dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.text1editortexten : sectionproperties.text1editortextar }}
912
+ ></p>
913
+ </div>
914
+ )}
915
+ <div
916
+ className="col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
917
+ style={{
918
+ marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
919
+ }}
920
+ >
921
+ <button
922
+ className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
923
+ onClick={() => {
924
+ var payloadobj = {};
925
+ addorderfuncrunner();
926
+ // AddOrderMutationContext.mutate(payloadobj);
927
+ }}
928
+ disabled={AddOrderMutationContext.isLoading ? true : false}
929
+ >
930
+ {AddOrderMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
931
+ {!AddOrderMutationContext.isLoading
932
+ ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
933
+ ? lang.continuetopayment
934
+ : authdetailsContext.loggedin
935
+ ? langdetect == 'en'
936
+ ? sectionproperties.checkoutbtn_en2
937
+ : sectionproperties.checkoutbtn_ar2
938
+ : langdetect == 'en'
939
+ ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest
940
+ : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
941
+ : ''}
942
+ </button>
943
+ </div>
944
+ </div>
945
+ </div>
946
+ </div>
947
+ )}
948
+ </div>
949
+ );
950
+ };
951
+ return (
952
+ <div className={'row m-0 w-100 d-flex justify-content-center p-sm-0 '}>
953
+ <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 '}>
954
+ <div className={'row m-0 w-100 justify-content-center '}>
955
+ <div className={langdetect == 'en' ? ' col-lg-6 col-md-12 pl-0 p-md-0 ' : ' col-lg-6 col-md-12 pr-0 p-md-0 '}>
956
+ <div className="col-lg-12 d-flex align-items-center p-0">
957
+ <p
958
+ style={{
959
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
960
+ color: sectionproperties.sectionTitleColor,
961
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
962
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
963
+ textTransform: sectionproperties.sectionTitleTextTransform,
964
+ fontWeight: sectionproperties.sectionTitleFontWeight,
965
+ }}
966
+ >
967
+ {langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar}
968
+ </p>
969
+ </div>
970
+ {/* Logged in information */}
971
+ {authdetailsContext.loggedin && (
972
+ <div className="col-lg-12 p-0">
973
+ <div
974
+ className="pl-3 pr-3 pt-2 pb-2"
975
+ style={{
976
+ background: sectionproperties.userinfo_sectionbgcolor,
977
+ borderRadius: sectionproperties.userinfo_borderradius + 'px',
978
+ marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
979
+ marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
980
+ border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
981
+ }}
982
+ >
983
+ <div className="row m-0 w-100">
984
+ <div className={`${checkoutstyles.userinfo_iconcont}` + ' d-flex align-items-center justify-content-center '}>
985
+ <FiCheckCircle size={20} />
986
+ </div>
987
+ <div className="col-lg-11 col-md-10 col-sm-10 p-0">
988
+ <div className="row m-0 w-100">
989
+ <div
990
+ className="col-lg-12 d-flex align-items-center pl-2 pr-2"
991
+ style={{
992
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
993
+ color: sectionproperties.userinfo_titlecolor,
994
+ fontWeight: sectionproperties.userinfo_titlefontweight,
995
+ }}
996
+ >
997
+ {lang.loggedinas}
998
+ </div>
999
+
1000
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '}>
1001
+ <div className="m-0 p-0 d-flex align-items-center">
1002
+ <i
1003
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1004
+ style={{
1005
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1006
+ color: sectionproperties.userinfotext_iconcolor,
1007
+ marginRight: langdetect == 'en' ? '5px' : 0,
1008
+ marginLeft: langdetect == 'en' ? 0 : '5px',
1009
+ }}
1010
+ >
1011
+ <HiUser />
1012
+ </i>
1013
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.name}</p>
1014
+ </div>
1015
+ </div>
1016
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
1017
+ <div className="m-0 p-0 d-flex align-items-center">
1018
+ <i
1019
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1020
+ style={{
1021
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1022
+ color: sectionproperties.userinfotext_iconcolor,
1023
+ marginRight: langdetect == 'en' ? '5px' : 0,
1024
+ marginLeft: langdetect == 'en' ? 0 : '5px',
1025
+ }}
1026
+ >
1027
+ <BiPhone />
1028
+ </i>
1029
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.mobile}</p>
1030
+ </div>
1031
+ </div>
1032
+ <div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
1033
+ <div className="m-0 p-0 d-flex align-items-center">
1034
+ <i
1035
+ className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
1036
+ style={{
1037
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
1038
+ color: sectionproperties.userinfotext_iconcolor,
1039
+ marginRight: langdetect == 'en' ? '5px' : 0,
1040
+ marginLeft: langdetect == 'en' ? 0 : '5px',
1041
+ }}
1042
+ >
1043
+ <GrMail />
1044
+ </i>
1045
+ <p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.email}</p>
1046
+ </div>
1047
+ </div>
1048
+ </div>
1049
+ </div>
1050
+ {langdetect == 'en' && (
1051
+ <div
1052
+ className="col-lg-12 justify-content-end float-right pl-2 pr-2"
1053
+ style={{
1054
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1055
+ color: sectionproperties.userinfo_titlecolor,
1056
+ fontWeight: sectionproperties.userinfo_titlefontweight,
1057
+ textAlign: 'right',
1058
+ textDecoration: 'underline',
1059
+ cursor: 'pointer',
1060
+ position: 'absolute',
1061
+ right: 10,
1062
+ top: 10,
1063
+ }}
1064
+ onClick={() => {
1065
+ routingcountext(StaticPagesLinksContext.accountinfo);
1066
+ }}
1067
+ >
1068
+ {lang.update}
1069
+ </div>
1070
+ )}
1071
+ {langdetect == 'ar' && (
1072
+ <div
1073
+ className="col-lg-12 justify-content-end float-left pl-2 pr-2"
1074
+ style={{
1075
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
1076
+ color: sectionproperties.userinfo_titlecolor,
1077
+ fontWeight: sectionproperties.userinfo_titlefontweight,
1078
+ textAlign: 'left',
1079
+ textDecoration: 'underline',
1080
+ cursor: 'pointer',
1081
+ position: 'absolute',
1082
+ left: 10,
1083
+ top: 10,
1084
+ }}
1085
+ onClick={() => {
1086
+ routingcountext(StaticPagesLinksContext.accountinfo);
1087
+ }}
1088
+ >
1089
+ {lang.update}
1090
+ </div>
1091
+ )}
1092
+ </div>
1093
+ </div>
1094
+ </div>
1095
+ )}
1096
+ {/* Address Details */}
1097
+ {/* {sectionproperties.hideshipping == 'Show' && ( */}
1098
+ <div
1099
+ className="col-lg-12 p-0"
1100
+ style={{
1101
+ display:
1102
+ authdetailsContext.loggedin == true &&
1103
+ sectionproperties.hidecountrystatecity == 'Hide' &&
1104
+ sectionproperties.hideaddress == 'Hide' &&
1105
+ sectionproperties.shownotes == 'Hide' &&
1106
+ insthasaffiliate == 0
1107
+ ? 'none'
1108
+ : 'flex',
1109
+ }}
1110
+ >
1111
+ <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1112
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3 pb-3">
1113
+ {!authdetailsContext.loggedin && (
1114
+ <>
1115
+ <div className="col-lg-12 col-md-12 mb-3">
1116
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{lang.name}</label>
1117
+ <input
1118
+ type={'text'}
1119
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1120
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.name}
1121
+ onChange={(event) => {
1122
+ cartinfoupdater('name', event.target.value);
1123
+ }}
1124
+ style={{
1125
+ resize: 'none',
1126
+ boxShadow: 'none',
1127
+ }}
1128
+ />
1129
+ </div>
1130
+ <div className="col-lg-12 col-md-12 mb-3">
1131
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'}</label>
1132
+ <input
1133
+ type={'text'}
1134
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1135
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
1136
+ onChange={(event) => {
1137
+ cartinfoupdater('mobile', event.target.value);
1138
+ }}
1139
+ style={{
1140
+ resize: 'none',
1141
+ boxShadow: 'none',
1142
+ }}
1143
+ />
1144
+ </div>
1145
+ <div className="col-lg-12 col-md-12 mb-3">
1146
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{lang.email}</label>
1147
+ <input
1148
+ type={'text'}
1149
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1150
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.email}
1151
+ onChange={(event) => {
1152
+ cartinfoupdater('email', event.target.value);
1153
+ }}
1154
+ style={{
1155
+ boxShadow: 'none',
1156
+ }}
1157
+ />
1158
+ </div>
1159
+ </>
1160
+ )}
1161
+ <div
1162
+ class="col-lg-12 p-0"
1163
+ style={{
1164
+ display: sectionproperties.hidecountrystatecity == 'Hide' && sectionproperties.hideaddress == 'Hide' ? 'none' : 'flex',
1165
+ }}
1166
+ >
1167
+ <div class="row m-0 w-100">
1168
+ {sectionproperties.hidecountrystatecity == 'Show' && (
1169
+ <div className="col-lg-12 col-md-12 mb-3">
1170
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}> {lang.country}</label>
1171
+ {fetchTabexCountriesQueryContext.isFetching && (
1172
+ <div className="w-100 allcentered mt-1">
1173
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1174
+ </div>
1175
+ )}
1176
+ {!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
1177
+ <Select
1178
+ options={fetchTabexCountriesQueryContext.data.data.countries}
1179
+ getOptionLabel={(option) => {
1180
+ var crname = '';
1181
+ if (langdetect == 'en') {
1182
+ crname = option.name;
1183
+ } else if (langdetect == 'ar') {
1184
+ if (option.name_ar != null) {
1185
+ crname = option.name_ar;
1186
+ } else {
1187
+ crname = option.name;
1188
+ }
1189
+ }
1190
+ return crname;
1191
+ }}
1192
+ getOptionValue={(option) => option.id}
1193
+ value={fetchTabexCountriesQueryContext.data.data.countries.filter(
1194
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
1195
+ )}
1196
+ onChange={(option) => {
1197
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1198
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
1199
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
1200
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1201
+ cartinfoupdater('countryid', option.id);
1202
+ }}
1203
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1204
+ placeholder={lang.choosecountry}
1205
+ isSearchable={true}
1206
+ />
1207
+ )}
1208
+ </div>
1209
+ )}
1210
+ {sectionproperties.hidecountrystatecity == 'Show' && (
1211
+ <div className="col-lg-12 col-md-12 mb-3">
1212
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.stategov}</label>
1213
+ {fetchTabexStatesQueryContext.isFetching && (
1214
+ <div className="w-100 allcentered mt-1">
1215
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1216
+ </div>
1217
+ )}
1218
+ {!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
1219
+ <Select
1220
+ options={fetchTabexStatesQueryContext.data.data.states}
1221
+ // getOptionLabel={(option) => option.name}
1222
+ // getOptionValue={(option) => option.id}
1223
+ getOptionLabel={(option) => {
1224
+ var crname = '';
1225
+ if (langdetect == 'en') {
1226
+ crname = option.name;
1227
+ } else if (langdetect == 'ar') {
1228
+ if (option.name_ar != null) {
1229
+ crname = option.name_ar;
1230
+ } else {
1231
+ crname = option.name;
1232
+ }
1233
+ }
1234
+ return crname;
1235
+ }}
1236
+ getOptionValue={(option) => option.id}
1237
+ value={fetchTabexStatesQueryContext.data.data.states.filter(
1238
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
1239
+ )}
1240
+ onChange={(option) => {
1241
+ if (option.id.length != 0 && fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0) {
1242
+ var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
1243
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
1244
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
1245
+ setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
1246
+ cartinfoupdater('stateid', option.id);
1247
+ } else {
1248
+ NotificationManager.warning('', 'Please Choose Country Or State');
1249
+ }
1250
+ }}
1251
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1252
+ placeholder={lang.choosestategov}
1253
+ isSearchable={true}
1254
+ />
1255
+ )}
1256
+ </div>
1257
+ )}
1258
+ {sectionproperties.hidecountrystatecity == 'Show' && (
1259
+ <div className="col-lg-12 col-md-12 mb-3">
1260
+ <label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.city}</label>
1261
+ {fetchTabexCitiesQueryContext.isFetching && (
1262
+ <div className="w-100 allcentered mt-1">
1263
+ <CircularProgress color="#000" width="20px" height="20px" duration="1s" />
1264
+ </div>
1265
+ )}
1266
+ {!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
1267
+ <Select
1268
+ options={fetchTabexCitiesQueryContext.data.data.cities}
1269
+ getOptionLabel={(option) => {
1270
+ var crname = '';
1271
+ if (langdetect == 'en') {
1272
+ crname = option.name;
1273
+ } else if (langdetect == 'ar') {
1274
+ if (option.name_ar != null) {
1275
+ crname = option.name_ar;
1276
+ } else {
1277
+ crname = option.name;
1278
+ }
1279
+ }
1280
+ return crname;
1281
+ }}
1282
+ getOptionValue={(option) => option.id}
1283
+ value={fetchTabexCitiesQueryContext.data.data.cities.filter(
1284
+ (option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
1285
+ )}
1286
+ onChange={(option) => {
1287
+ cartinfoupdater('cityid', option.id);
1288
+ }}
1289
+ styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
1290
+ placeholder={lang.choosecity}
1291
+ isSearchable={true}
1292
+ />
1293
+ )}
1294
+ </div>
1295
+ )}
1296
+ {sectionproperties.hideaddress == 'Show' && (
1297
+ <div className="col-lg-12 mb-3">
1298
+ <label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
1299
+ {langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar}
1300
+ {/* {lang.shippingaddress} */}
1301
+ </label>
1302
+ <TextareaAutosize
1303
+ type={'text'}
1304
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1305
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.address}
1306
+ onChange={(event) => {
1307
+ cartinfoupdater('address', event.target.value);
1308
+ }}
1309
+ style={{
1310
+ resize: 'none',
1311
+ boxShadow: 'none',
1312
+ }}
1313
+ />
1314
+ </div>
1315
+ )}
1316
+ </div>
1317
+ </div>
1318
+ {sectionproperties.shownotes == 'Show' && (
1319
+ <div className="col-lg-12 mb-3">
1320
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{langdetect == 'en' ? 'Notes' : 'الملاحظات'}</label>
1321
+ <TextareaAutosize
1322
+ type={'text'}
1323
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1324
+ value={fetchcustomercartQueryContext?.data?.data?.customercart.notes}
1325
+ onChange={(event) => {
1326
+ cartinfoupdater('notes', event.target.value);
1327
+ }}
1328
+ style={{
1329
+ resize: 'none',
1330
+ boxShadow: 'none',
1331
+ }}
1332
+ />
1333
+ </div>
1334
+ )}
1335
+ {insthasaffiliate == 1 && (
1336
+ <div className="col-lg-12 mb-3">
1337
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'}</label>
1338
+ <input
1339
+ type={'number'}
1340
+ className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
1341
+ value={fetchcustomercartQueryContext?.data?.data?.customercart?.aff_code}
1342
+ onChange={(event) => {
1343
+ cartinfoupdater('aff_code', event.target.value);
1344
+ }}
1345
+ style={{
1346
+ resize: 'none',
1347
+ boxShadow: 'none',
1348
+ }}
1349
+ />
1350
+ </div>
1351
+ )}
1352
+ </div>
1353
+ </div>
1354
+ </div>
1355
+ {/* )} */}
1356
+ {/* Payment */}
1357
+ <div className="col-lg-12 p-0 w-100">
1358
+ <div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
1359
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1360
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentmethod}</p>
1361
+ </div>
1362
+ <div className="col-lg-12 p-0">
1363
+ <hr className="mt-2 mb-2" />
1364
+ </div>
1365
+ <div className="row m-0 w-100 mb-3 pl-3 pr-3">
1366
+ {authdetailsContext.instinfo.acceptCOD == 1 && (
1367
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1368
+ <label
1369
+ className={
1370
+ langdetect == 'en'
1371
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1372
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated}` + ' d-flex mb-0 '
1373
+ }
1374
+ for="codcheckbox"
1375
+ >
1376
+ <input
1377
+ id={'codcheckbox'}
1378
+ type="checkbox"
1379
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1380
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cod' ? true : false}
1381
+ onChange={() => {
1382
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cod') {
1383
+ cartinfoupdater('paymentmethod', 'cod');
1384
+ }
1385
+ }}
1386
+ />
1387
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1388
+ <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>
1389
+ </svg>
1390
+ <p
1391
+ className={' ml-2 mb-0 cursor-pointer wordbreak mr-2'}
1392
+ style={{
1393
+ color: sectionproperties.checkbox_color,
1394
+ }}
1395
+ >
1396
+ {langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar}
1397
+ </p>
1398
+ </label>
1399
+ </div>
1400
+ )}
1401
+ {authdetailsContext.instinfo.acceptCardOnDelivery == 1 && (
1402
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1403
+ <label
1404
+ className={
1405
+ langdetect == 'en'
1406
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1407
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1408
+ }
1409
+ >
1410
+ <input
1411
+ type="checkbox"
1412
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1413
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cardondelivery' ? true : false}
1414
+ onChange={() => {
1415
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cardondelivery') {
1416
+ cartinfoupdater('paymentmethod', 'cardondelivery');
1417
+ }
1418
+ }}
1419
+ />
1420
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1421
+ <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>
1422
+ </svg>
1423
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.cardondelivery}</p>
1424
+ </label>
1425
+ </div>
1426
+ )}
1427
+ {authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && (
1428
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1429
+ <label
1430
+ className={
1431
+ langdetect == 'en'
1432
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1433
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1434
+ }
1435
+ >
1436
+ <input
1437
+ type="checkbox"
1438
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1439
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment' ? true : false}
1440
+ onChange={() => {
1441
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'onlinepayment') {
1442
+ cartinfoupdater('paymentmethod', 'onlinepayment');
1443
+ }
1444
+ }}
1445
+ />
1446
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1447
+ <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>
1448
+ </svg>
1449
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.onlinepayment}</p>
1450
+ </label>
1451
+ </div>
1452
+ )}
1453
+ {authdetailsContext.instinfo.acceptValuCard == 1 && (
1454
+ <div className="col-xl-4 col-lg-4 col-md-12 mb-3">
1455
+ <label
1456
+ className={
1457
+ langdetect == 'en'
1458
+ ? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1459
+ : `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
1460
+ }
1461
+ >
1462
+ <input
1463
+ type="checkbox"
1464
+ className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
1465
+ checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'valU' ? true : false}
1466
+ onChange={() => {
1467
+ if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'valU') {
1468
+ cartinfoupdater('paymentmethod', 'valU');
1469
+ }
1470
+ }}
1471
+ />
1472
+ <svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
1473
+ <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>
1474
+ </svg>
1475
+ <p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> ValU</p>
1476
+ </label>
1477
+ </div>
1478
+ )}
1479
+ </div>
1480
+ </div>
1481
+ </div>
1482
+
1483
+ {fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment1' && (
1484
+ <div className="col-lg-12 p-0 w-100 mb-3">
1485
+ <div
1486
+ style={{
1487
+ background: sectionproperties.payment_sectionbgcolor,
1488
+ borderRadius: sectionproperties.payment_borderradius + 'px',
1489
+ borderColor: sectionproperties.payment_sectionbordercolor,
1490
+ }}
1491
+ >
1492
+ <div className="col-lg-12 pl-3 pr-3 pt-2">
1493
+ <p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentcardinformation}</p>
1494
+ </div>
1495
+ <div className="col-lg-12 p-0">
1496
+ <hr className="mt-2 mb-2" />
1497
+ </div>
1498
+ <div className="w-100 row m-0 pl-3 pr-3 pt-2 pb-2">
1499
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0">
1500
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cardnumber}</label>
1501
+ <input
1502
+ className={formstyles.form_controlcheckout}
1503
+ type="text"
1504
+ textplaceholder=""
1505
+ onChange={(event) => {}}
1506
+ style={{
1507
+ fontWeight: sectionproperties.inputtextfontweight,
1508
+ background: sectionproperties.input_bgcolor,
1509
+ color: sectionproperties.inputfieldcolor,
1510
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1511
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1512
+ }}
1513
+ />
1514
+ </div>
1515
+ <div className="w-100 row m-0">
1516
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1517
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.year}</label>
1518
+ <input
1519
+ className={formstyles.form_controlcheckout}
1520
+ type="text"
1521
+ textplaceholder=""
1522
+ onChange={(event) => {}}
1523
+ style={{
1524
+ fontWeight: sectionproperties.inputtextfontweight,
1525
+ background: sectionproperties.input_bgcolor,
1526
+ color: sectionproperties.inputfieldcolor,
1527
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1528
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1529
+ }}
1530
+ />
1531
+ </div>
1532
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1533
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.month}</label>
1534
+ <input
1535
+ className={formstyles.form_controlcheckout}
1536
+ type="text"
1537
+ textplaceholder=""
1538
+ onChange={(event) => {}}
1539
+ style={{
1540
+ fontWeight: sectionproperties.inputtextfontweight,
1541
+ background: sectionproperties.input_bgcolor,
1542
+ color: sectionproperties.inputfieldcolor,
1543
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1544
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1545
+ }}
1546
+ />
1547
+ </div>
1548
+ <div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
1549
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cvv}</label>
1550
+ <input
1551
+ className={formstyles.form_controlcheckout}
1552
+ type="text"
1553
+ textplaceholder=""
1554
+ onChange={(event) => {}}
1555
+ style={{
1556
+ fontWeight: sectionproperties.inputtextfontweight,
1557
+ background: sectionproperties.input_bgcolor,
1558
+ color: sectionproperties.inputfieldcolor,
1559
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1560
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1561
+ }}
1562
+ />
1563
+ </div>
1564
+ </div>
1565
+ <div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3">
1566
+ <label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.nameoncard}</label>
1567
+ <input
1568
+ className={formstyles.form_controlcheckout}
1569
+ type="text"
1570
+ textplaceholder=""
1571
+ onChange={(event) => {}}
1572
+ style={{
1573
+ fontWeight: sectionproperties.inputtextfontweight,
1574
+ background: sectionproperties.input_bgcolor,
1575
+ color: sectionproperties.inputfieldcolor,
1576
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
1577
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
1578
+ }}
1579
+ />
1580
+ </div>
1581
+ </div>
1582
+ </div>
1583
+ </div>
1584
+ )}
1585
+ </div>
1586
+ <div className={langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0' : 'col-lg-4 col-md-12 pl-0'}>{Mycart()}</div>
1587
+ </div>
1588
+ </div>
1589
+ {/* )} */}
1590
+ </div>
1591
+ );
1592
+ };
1593
+ export default Checkout;