tabexseriescomponents 0.0.225 → 0.0.227

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