tabexseriescomponents 0.0.655 → 0.0.657

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 (314) hide show
  1. package/dist/index.cjs.js +145 -566
  2. package/dist/index.esm.js +145 -566
  3. package/dist/index.umd.js +145 -566
  4. package/package.json +1 -1
  5. package/src 2.zip +0 -0
  6. package/src1-5.zip +0 -0
  7. package/src22-1/Contexts/LanguageContext.jsx +0 -405
  8. package/src22-1/Contexts/ProductsCardsSectionContext.jsx +0 -36
  9. package/src22-1/Imagekitconfig.jsx +0 -46
  10. package/src22-1/StylesJS/Customstyles.js +0 -344
  11. package/src22-1/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -376
  12. package/src22-1/TabexComponents/Cards/Card20/Card20.jsx +0 -282
  13. package/src22-1/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  14. package/src22-1/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  15. package/src22-1/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  16. package/src22-1/TabexComponents/Cards/Card23/Card23.jsx +0 -627
  17. package/src22-1/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  18. package/src22-1/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  19. package/src22-1/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  20. package/src22-1/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  21. package/src22-1/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -246
  22. package/src22-1/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  23. package/src22-1/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  24. package/src22-1/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  25. package/src22-1/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -181
  26. package/src22-1/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  27. package/src22-1/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -180
  28. package/src22-1/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -546
  29. package/src22-1/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -142
  30. package/src22-1/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  31. package/src22-1/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -379
  32. package/src22-1/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -543
  33. package/src22-1/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  34. package/src22-1/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  35. package/src22-1/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  36. package/src22-1/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  37. package/src22-1/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -519
  38. package/src22-1/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  39. package/src22-1/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  40. package/src22-1/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  41. package/src22-1/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  42. package/src22-1/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  43. package/src22-1/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  44. package/src22-1/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  45. package/src22-1/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  46. package/src22-1/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  47. package/src22-1/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -558
  48. package/src22-1/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  49. package/src22-1/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  50. package/src22-1/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -137
  51. package/src22-1/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -598
  52. package/src22-1/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -390
  53. package/src22-1/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  54. package/src22-1/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  55. package/src22-1/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -455
  56. package/src22-1/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -493
  57. package/src22-1/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  58. package/src22-1/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  59. package/src22-1/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -596
  60. package/src22-1/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  61. package/src22-1/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -528
  62. package/src22-1/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  63. package/src22-1/TabexComponents/Footer/Footer2/Footer2.jsx +0 -415
  64. package/src22-1/TabexComponents/Footer/Footer3/Footer3.jsx +0 -400
  65. package/src22-1/TabexComponents/Footer/Footer4/Footer4.jsx +0 -457
  66. package/src22-1/TabexComponents/Footer/Footer5/Footer5.jsx +0 -563
  67. package/src22-1/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  68. package/src22-1/TabexComponents/Footer/Footer7/Footer7.jsx +0 -428
  69. package/src22-1/TabexComponents/Footer/Footer8/Footer8.jsx +0 -473
  70. package/src22-1/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  71. package/src22-1/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -562
  72. package/src22-1/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -584
  73. package/src22-1/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  74. package/src22-1/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -316
  75. package/src22-1/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  76. package/src22-1/TabexComponents/Generalfiles/images/noimage.png +0 -0
  77. package/src22-1/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  78. package/src22-1/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  79. package/src22-1/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  80. package/src22-1/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  81. package/src22-1/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  82. package/src22-1/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  83. package/src22-1/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  84. package/src22-1/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  85. package/src22-1/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  86. package/src22-1/TabexComponents/Generalfiles/images/usflag.png +0 -0
  87. package/src22-1/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  88. package/src22-1/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1244
  89. package/src22-1/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1049
  90. package/src22-1/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -895
  91. package/src22-1/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1213
  92. package/src22-1/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  93. package/src22-1/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -780
  94. package/src22-1/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -771
  95. package/src22-1/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  96. package/src22-1/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  97. package/src22-1/TabexComponents/Headers/Header8/Header8.jsx +0 -1923
  98. package/src22-1/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -728
  99. package/src22-1/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -918
  100. package/src22-1/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -707
  101. package/src22-1/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  102. package/src22-1/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -847
  103. package/src22-1/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1371
  104. package/src22-1/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  105. package/src22-1/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  106. package/src22-1/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -779
  107. package/src22-1/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  108. package/src22-1/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -934
  109. package/src22-1/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -64
  110. package/src22-1/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -732
  111. package/src22-1/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -778
  112. package/src22-1/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1162
  113. package/src22-1/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -835
  114. package/src22-1/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -128
  115. package/src22-1/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -854
  116. package/src22-1/TabexComponents/Headers/Subheader/Subheader.jsx +0 -662
  117. package/src22-1/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  118. package/src22-1/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  119. package/src22-1/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1045
  120. package/src22-1/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1089
  121. package/src22-1/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -936
  122. package/src22-1/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  123. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  124. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -802
  125. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  126. package/src22-1/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  127. package/src22-1/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -274
  128. package/src22-1/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  129. package/src22-1/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  130. package/src22-1/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -392
  131. package/src22-1/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -291
  132. package/src22-1/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  133. package/src22-1/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -266
  134. package/src22-1/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  135. package/src22-1/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -414
  136. package/src22-1/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  137. package/src22-1/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  138. package/src22-1/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -421
  139. package/src22-1/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -364
  140. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  141. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  142. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  143. package/src22-1/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -1532
  144. package/src22-1/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -480
  145. package/src22-1/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  146. package/src22-1/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  147. package/src22-1/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -682
  148. package/src22-1/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -635
  149. package/src22-1/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -920
  150. package/src22-1/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -517
  151. package/src22-1/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  152. package/src22-1/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -325
  153. package/src22-1/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  154. package/src22-1/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -257
  155. package/src22-1/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  156. package/src22-1/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -757
  157. package/src22-1/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  158. package/src22-1/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -633
  159. package/src22-1/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  160. package/src22-1/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  161. package/src22-1/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -380
  162. package/src22-1/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -400
  163. package/src22-1/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  164. package/src22-1/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  165. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  166. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  167. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -331
  168. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  169. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -603
  170. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  171. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  172. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  173. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  174. package/src22-1/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -547
  175. package/src22-1/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  176. package/src22-1/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -612
  177. package/src22-1/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -396
  178. package/src22-1/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -199
  179. package/src22-1/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -304
  180. package/src22-1/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -321
  181. package/src22-1/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -780
  182. package/src22-1/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  183. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  184. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1673
  185. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  186. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  187. package/src22-1/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  188. package/src22-1/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -439
  189. package/src22-1/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  190. package/src22-1/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  191. package/src22-1/TabexComponents/StaticPages/Filter/Filter.jsx +0 -1845
  192. package/src22-1/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  193. package/src22-1/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  194. package/src22-1/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  195. package/src22-1/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  196. package/src22-1/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  197. package/src22-1/TabexComponents/StaticPages/Login/Login.jsx +0 -610
  198. package/src22-1/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -146
  199. package/src22-1/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1568
  200. package/src22-1/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  201. package/src22-1/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -113
  202. package/src22-1/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  203. package/src22-1/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  204. package/src22-1/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -130
  205. package/src22-1/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  206. package/src22-1/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -310
  207. package/src22-1/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -235
  208. package/src22-1/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -1270
  209. package/src22-1/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  210. package/src22-1/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  211. package/src22-1/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1729
  212. package/src22-1/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -552
  213. package/src22-1/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -754
  214. package/src22-1/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -491
  215. package/src22-1/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  216. package/src22-1/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  217. package/src22-1/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -113
  218. package/src22-1/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -338
  219. package/src22-1/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -358
  220. package/src22-1/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -113
  221. package/src22-1/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  222. package/src22-1/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  223. package/src22-1/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1344
  224. package/src22-1/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  225. package/src22-1/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -290
  226. package/src22-1/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -113
  227. package/src22-1/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  228. package/src22-1/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  229. package/src22-1/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  230. package/src22-1/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  231. package/src22-1/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  232. package/src22-1/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  233. package/src22-1/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -555
  234. package/src22-1/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  235. package/src22-1/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  236. package/src22-1/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  237. package/src22-1/button.jsx +0 -40
  238. package/src22-1/index.jsx +0 -327
  239. package/src22-1/styles/Home.module.css +0 -129
  240. package/src22-1/styles/cards/Categorcycard_fullimage.module.css +0 -14
  241. package/src22-1/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  242. package/src22-1/styles/cards/Categorycard_withshapes.module.css +0 -189
  243. package/src22-1/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  244. package/src22-1/styles/cards/Productcard6.module.css +0 -9
  245. package/src22-1/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  246. package/src22-1/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  247. package/src22-1/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  248. package/src22-1/styles/cards/card23.module.css +0 -60
  249. package/src22-1/styles/cards/categorycard.module.css +0 -84
  250. package/src22-1/styles/cards/categorycard3.module.css +0 -50
  251. package/src22-1/styles/cards/categorycardwithtext.module.css +0 -40
  252. package/src22-1/styles/cards/generalCardsStyles.module.css +0 -79
  253. package/src22-1/styles/cards/productcard_animatedbuttons.module.css +0 -139
  254. package/src22-1/styles/cards/productcard_with_textonhover.module.css +0 -18
  255. package/src22-1/styles/cards/productcard_withtextonimage.module.css +0 -0
  256. package/src22-1/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  257. package/src22-1/styles/general/bootstrap.css +0 -4763
  258. package/src22-1/styles/general/dropdown.css +0 -206
  259. package/src22-1/styles/general/editorbardropdown.module.css +0 -94
  260. package/src22-1/styles/general/filter.module.css +0 -108
  261. package/src22-1/styles/general/form.module.css +0 -255
  262. package/src22-1/styles/general/general.module.css +0 -872
  263. package/src22-1/styles/general/image-gallery.css +0 -531
  264. package/src22-1/styles/general/react-accessible-accordion.module.css +0 -52
  265. package/src22-1/styles/general/react-phone-input-2.module.css +0 -927
  266. package/src22-1/styles/general/scrollbtn.module.css +0 -22
  267. package/src22-1/styles/general/slick.module.css +0 -166
  268. package/src22-1/styles/general/tabs.module.css +0 -119
  269. package/src22-1/styles/general/workplaceeditor.module.css +0 -328
  270. package/src22-1/styles/globals.css +0 -26
  271. package/src22-1/styles/headers/CTAHeader.module.css +0 -40
  272. package/src22-1/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  273. package/src22-1/styles/headers/Gotoheader.module.css +0 -81
  274. package/src22-1/styles/headers/Header7.module.css +0 -50
  275. package/src22-1/styles/headers/HeaderWithAdSlider.module.css +0 -86
  276. package/src22-1/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  277. package/src22-1/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  278. package/src22-1/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  279. package/src22-1/styles/headers/NewHeader.module.css +0 -101
  280. package/src22-1/styles/headers/SearchFocusedHeader.module.css +0 -62
  281. package/src22-1/styles/headers/Sideheader.module.css +0 -108
  282. package/src22-1/styles/headers/Simpleheader.module.css +0 -102
  283. package/src22-1/styles/headers/classicheader.module.css +0 -16
  284. package/src22-1/styles/headers/classicheaderstyles.module.css +0 -9
  285. package/src22-1/styles/headers/dropdown.css +0 -0
  286. package/src22-1/styles/headers/header4.module.css +0 -175
  287. package/src22-1/styles/headers/header5.module.css +0 -30
  288. package/src22-1/styles/headers/header_contactinfo.module.css +0 -53
  289. package/src22-1/styles/headers/headerresturant.module.css +0 -89
  290. package/src22-1/styles/headers/modernheader.module.css +0 -45
  291. package/src22-1/styles/headers/stylishheader.module.css +0 -24
  292. package/src22-1/styles/headers/subheader.module.css +0 -114
  293. package/src22-1/styles/headers/threetieredheader.module.css +0 -91
  294. package/src22-1/styles/sections/BackgroundImageWithTopContent.css +0 -4
  295. package/src22-1/styles/sections/Backgroundimage1.module.css +0 -17
  296. package/src22-1/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  297. package/src22-1/styles/sections/Freetext.module.css +0 -18
  298. package/src22-1/styles/sections/Section_with_rightbgcont.module.css +0 -49
  299. package/src22-1/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  300. package/src22-1/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  301. package/src22-1/styles/staticpages/accordion.module.css +0 -9
  302. package/src22-1/styles/staticpages/cart.module.css +0 -108
  303. package/src22-1/styles/staticpages/dropdown.css +0 -196
  304. package/src22-1/styles/staticpages/filter.module.css +0 -139
  305. package/src22-1/styles/staticpages/image-gallery.css +0 -481
  306. package/src22-1/styles/staticpages/login.module.css +0 -155
  307. package/src22-1/styles/staticpages/productinfo.module.css +0 -54
  308. package/src22-1/styles/staticpages/shop.module.css +0 -191
  309. package/src22-1/styles/staticpages/signup.module.css +0 -250
  310. package/src22-1/styles/staticpages/staticroutersidenav.module.css +0 -129
  311. package/src22-1/styles/staticpages/viewcart.module.css +0 -129
  312. package/src22-1/styles/staticpages/wishlist.module.css +0 -29
  313. package/srcbeforeedits.zip +0 -0
  314. package/srclib1-5.2.zip +0 -0
@@ -1,1568 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import generalstyles from '../../../styles/general/general.module.css';
3
- import { Modal } from 'react-bootstrap';
4
- import { css } from 'glamor';
5
- import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
6
- import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter.jsx';
7
- import { IoLocationSharp } from '@react-icons/all-files/io5/IoLocationSharp';
8
- import { HiOutlineChevronRight } from '@react-icons/all-files/hi/HiOutlineChevronRight';
9
- import { HiOutlineChevronLeft } from '@react-icons/all-files/hi/HiOutlineChevronLeft';
10
- import { GoGlobe } from '@react-icons/all-files/go/GoGlobe';
11
- import { VscGlobe } from '@react-icons/all-files/vsc/VscGlobe';
12
- import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
13
- import { CircularProgress } from 'react-cssfx-loading';
14
- // import Addreviewform from '../Productinfo/Addreviewform.jsx';
15
- import AddReview from '../AddReview/AddReview.jsx';
16
- const Ordershistory = (props) => {
17
- const lang = props.actions.lang;
18
- const langdetect = props.actions.langdetect;
19
- const routingcountext = props.actions.routingcountext;
20
- const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
21
- const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
22
- const fetchorderhistoryQueryContext = props.actions.fetchorderhistoryQueryContext;
23
- const pageindexcontext = props.actions.pageindexcontext;
24
- const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
25
- const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
26
- const templatepropcontext = props.actions.templatepropcontext;
27
- const authdetailsContext = props.actions.authdetailsContext;
28
- const NotificationManager = props.actions.NotificationManager;
29
- const ikimagecredcontext = props.actions.ikimagecredcontext;
30
-
31
- const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
32
-
33
- const actions = props.actions;
34
- const [productidforreview, setproductidforreview] = useState('');
35
- const [CurrentPageId, setCurrentPageId] = useState('');
36
- const [openorderitemsmodalshow, setopenorderitemsmodalshow] = useState(false);
37
- const [reviewpayloadobj, setreviewpayloadobj] = useState({
38
- reviewtitle: '',
39
- reviewbody: '',
40
- reviewrate: 0,
41
- reviewname: '',
42
- });
43
- const [openreviewmodalproductobj, setopenreviewmodalproductobj] = useState({});
44
- const [openreviewmodal, setopenreviewmodal] = useState(false);
45
- const [orderindex, setorderindex] = useState('');
46
- useEffect(() => {
47
- if (authdetailsContext?.loggedin == true) {
48
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
49
- tempFetchQueriesEngineContext.orderhistory = true;
50
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
51
- } else {
52
- // routingcountext('');
53
- }
54
- }, []);
55
- const [sectionproperties, setsectionproperties] = useState('');
56
- useEffect(() => {
57
- var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '6218bccb81d1c');
58
- if (cartindex >= 0) {
59
- setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
60
- }
61
- }, []);
62
- useEffect(() => {
63
- var secpropobj = {};
64
- props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
65
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
66
- });
67
- setsectionproperties({ ...secpropobj });
68
- }, [props?.actions?.StatePagePropertiesContext]);
69
- const orderhistory_cssstyles = {
70
- variantcontainer: css({
71
- backgroundColor: sectionproperties.variantcontainer_bgcolor,
72
- minWidth: sectionproperties.variantcontainer_minwidth == 0 ? 'auto' : sectionproperties.variantcontainer_minwidth + 'px',
73
- height: sectionproperties.variantcontainer_height == 0 ? 'auto' : sectionproperties.variantcontainer_height + 'px',
74
- fontSize: sectionproperties.variantcontainer_fontSize + 'px',
75
- color: sectionproperties.variantcontainer_color,
76
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
77
- }),
78
- sectiontitlespan: css({
79
- ':after': {
80
- width: sectionproperties.sectitle_lineafterwidth + '%',
81
- backgroundColor: sectionproperties.linebgcolor,
82
- },
83
- }),
84
- sectiontitlespan2: css({
85
- ':after': {
86
- width: sectionproperties.sectitle_lineafterwidth + 'px',
87
- height: '100%',
88
- backgroundColor: sectionproperties.linebgcolor,
89
- },
90
- }),
91
- pill: css({
92
- minWidth: sectionproperties.pillwidth + 'px',
93
- height: sectionproperties.pillheight + 'px',
94
- backgroundColor: sectionproperties.pillbgcolor,
95
- color: sectionproperties.pillcolor,
96
- textTransform: sectionproperties.pilltextTransform,
97
- fontWeight: sectionproperties.pillfontWeight,
98
- fontSize: sectionproperties.pillfontSize + 'px',
99
- lineHeight: sectionproperties.pillfontSize + 'px',
100
- borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
101
- }),
102
- vieworderbtn: css({
103
- color: sectionproperties.generalbtn_textColor,
104
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
105
- textTransform: sectionproperties.generalbtn_texttransform,
106
- width: sectionproperties.generalbtn_width + 'px',
107
- height: sectionproperties.generalbtn_height + 'px',
108
- background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
109
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
110
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
111
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
112
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
113
- fontWeight: sectionproperties.generalbtn_fontweight,
114
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
115
- transition: '.3s',
116
- ':hover': {
117
- background: sectionproperties.generalbtn_bgColoronhover,
118
- color: sectionproperties.generalbtn_textColoronhover,
119
- borderColor: sectionproperties.generalbtn_textColoronhover,
120
- },
121
- }),
122
- tableimagecont: css({
123
- width: '70px',
124
- height: '60px',
125
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
126
- backgroundColor: sectionproperties.prodimage_bgcolor,
127
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
128
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
129
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
130
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
131
- display: 'flex',
132
- alignItems: 'center',
133
- justifyContent: 'center',
134
- position: 'relative',
135
- }),
136
- productNameStyles: css({
137
- color: sectionproperties.prodNameColor,
138
- fontSize: sectionproperties.prodNameFontSize + 'px',
139
- textTransform: sectionproperties.prodNameTextTranform,
140
- fontWeight: sectionproperties.prodNameFontWeight,
141
- }),
142
- productPricestyles: css({
143
- color: sectionproperties.prodPriceColor,
144
- fontSize: sectionproperties.prodpriceFontSize + 'px',
145
- fontWeight: sectionproperties.prodPriceFontWeight,
146
- }),
147
- imagecont: css({
148
- width: sectionproperties.prodimage_width + 'px',
149
- height: sectionproperties.prodimage_height + 'px',
150
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
151
- backgroundColor: sectionproperties.prodimage_bgcolor,
152
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
153
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
154
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
155
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
156
- display: 'flex',
157
- alignItems: 'center',
158
- justifyContent: 'center',
159
- backgroundRepeat: 'no-repeat',
160
- backgroundSize: 'cover',
161
- backgroundPosition: 'center',
162
- position: 'relative',
163
- }),
164
- innersectiontitlestyles: css({
165
- color: sectionproperties.innersection_titlecolor,
166
- fontSize: sectionproperties.innersection_titlefontsize + 'px',
167
- fontWeight: sectionproperties.innersection_titlefontweight,
168
- textTransform: sectionproperties.innersection_titletextTransform,
169
- }),
170
- userinfotextstyles: css({
171
- color: sectionproperties.userinfo_color,
172
- fontWeight: sectionproperties.userinfo_fontweight,
173
- fontSize: sectionproperties.userinfo_fontsize + 'px',
174
- }),
175
- userinfotexticonstyles: css({
176
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
177
- color: sectionproperties.userinfotext_iconcolor,
178
- }),
179
- summarysectionstyles: css({
180
- fontSize: sectionproperties.summary_fontsize + 'px',
181
- color: sectionproperties.summary_textcolor,
182
- fontWeight: sectionproperties.summary_textfontweight,
183
- textTransform: sectionproperties.summary_texttransform,
184
- }),
185
- iconcontainer: css({
186
- color: sectionproperties.generalbtn_textColor,
187
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
188
- textTransform: sectionproperties.generalbtn_texttransform,
189
- width: sectionproperties.generalbtn_width + 'px',
190
- height: sectionproperties.generalbtn_height + 'px',
191
- background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
192
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
193
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
194
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
195
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
196
- fontWeight: sectionproperties.generalbtn_fontweight,
197
- boxShadow: sectionproperties.generalbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.generalbtn_shadowcolor : '',
198
- opacity: sectionproperties.generalbtn_opacity,
199
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
200
- transition: '.3s',
201
- cursor: 'pointer',
202
- ':hover': {
203
- background: sectionproperties.generalbtn_bgColoronhover,
204
- color: sectionproperties.generalbtn_textColoronhover,
205
- opacity: sectionproperties.generalbtn_opacityonhover,
206
- },
207
- }),
208
- containerstyles: css({
209
- paddingTop: sectionproperties.marginTop + 'px',
210
- paddingBottom: sectionproperties.marginBottom + 'px',
211
- background: sectionproperties.backgroundColor,
212
- '@media (max-width: 800px)': {
213
- paddingTop: sectionproperties.marginTopResp + 'px',
214
- },
215
- }),
216
- };
217
- const [bgimagesarray, setbgimagesarray] = useState([]);
218
- useEffect(() => {
219
- if (sectionproperties.length != 0) {
220
- if (sectionproperties.arrayofobjectimagesonly != null) {
221
- var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
222
- if (Array.isArray(arrayofobjectimagesonlyparsed)) {
223
- setbgimagesarray([...arrayofobjectimagesonlyparsed]);
224
- }
225
- }
226
- }
227
- }, [sectionproperties]);
228
- const showdeletebuttonorder = () => {
229
- var showbutton = false;
230
- if (authdetailsContext?.instinfo?.cancustomerdeleteorder == 1) {
231
- if (orderindex.length != 0) {
232
- if (fetchorderhistoryQueryContext?.data?.data?.ordershistory[orderindex]?.instorderstatus == null) {
233
- showbutton = true;
234
- }
235
- }
236
- }
237
- return showbutton;
238
- };
239
- const addreviewcallback = () => {
240
- fetchorderhistoryQueryContext.refetch();
241
- };
242
- return (
243
- <div className={orderhistory_cssstyles.containerstyles + ' row ml-0 mr-0 w-100 '}>
244
- {sectionproperties.showbgimage == 'Show' && (
245
- <div
246
- className="col-lg-12 p-0 d-flex justify-content-center"
247
- style={{
248
- cursor: bgimagesarray[0]?.IsClickable == 'Yes' ? 'pointer' : 'default',
249
- }}
250
- onClick={() => {
251
- if (bgimagesarray[0]?.IsClickable == 'Yes') {
252
- if (bgimagesarray[0]?.clickable_page_route && bgimagesarray[0]?.clickable_page_route.length != 0) {
253
- routingcountext(bgimagesarray[0].clickable_page_route, false, '');
254
- } else {
255
- routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + bgimagesarray[0].Clickable_Reference_Collection_ID);
256
- }
257
- }
258
- }}
259
- >
260
- <div
261
- class={sectionproperties.bgcovercontainresponsive == 'Contain' ? 'h-sm-auto mb-sm-4' : ''}
262
- style={{
263
- width: sectionproperties.image_width + 'vw',
264
- height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'vh',
265
- marginBottom: sectionproperties.image_mb + 'px',
266
- position: 'relative',
267
- }}
268
- >
269
- <Imagekitimagecomp
270
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
271
- publicKey={ikimagecredcontext?.ikimagepublickey}
272
- path={
273
- bgimagesarray.length != 0
274
- ? langdetect == 'en'
275
- ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagesarray[0]?.bgsection_image
276
- : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + bgimagesarray[0]?.bgsection_image_ar
277
- : ''
278
- }
279
- class="d-flex d-sm-none"
280
- style={{
281
- height: '100%',
282
- width: '100%',
283
- margin: 0,
284
- padding: 0,
285
- background: sectionproperties.image_bgcolor,
286
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
287
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
288
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
289
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
290
- objectFit: sectionproperties.bgcovercontain,
291
- zIndex: -1,
292
- }}
293
- />
294
- <Imagekitimagecomp
295
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
296
- publicKey={ikimagecredcontext?.ikimagepublickey}
297
- path={bgimagesarray.length != 0 ? (langdetect == 'en' ? bgimagesarray[0]?.bgsection_imageresponsive : bgimagesarray[0]?.bgsection_imageresponsive_ar) : ''}
298
- class="d-none d-sm-flex"
299
- style={{
300
- height: '100%',
301
- width: '100%',
302
- margin: 0,
303
- padding: 0,
304
- objectFit: sectionproperties.bgcovercontainresponsive,
305
- background: sectionproperties.image_bgcolor,
306
- borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
307
- borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
308
- borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
309
- borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
310
- zIndex: -1,
311
- }}
312
- />
313
- <div
314
- className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
315
- style={{
316
- position: 'absolute',
317
- top: 0,
318
- right: 0,
319
- bottom: 0,
320
- left: 0,
321
- }}
322
- >
323
- <p
324
- className={' m-0 p-0 '}
325
- style={{
326
- fontSize: sectionproperties.imagetextfontsize + 'px',
327
- color: sectionproperties.imagetextcolor,
328
- textTransform: sectionproperties.imagetexttextTransform,
329
- fontWeight: sectionproperties.imagetextfontWeight,
330
- }}
331
- >
332
- {lang.previousorders}
333
- </p>
334
- </div>
335
- </div>
336
- </div>
337
- )}
338
- {fetchorderhistoryQueryContext.isFetching && <div className={'row ml-0 mr-0 mt-2 w-100 pb-3 mb-3'}>{/* <Pagepreloader /> */}</div>}
339
- <div className="col-lg-12 p-0">
340
- {!fetchorderhistoryQueryContext.isFetching && fetchorderhistoryQueryContext.isSuccess && (
341
- <div
342
- className={'row ml-0 mr-0 d-flex justify-content-center w-100 pl-lg-4 pr-lg-4 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2'}
343
- style={{
344
- paddingLeft: sectionproperties.paddingLeft + 'px',
345
- paddingRight: sectionproperties.paddingRight + 'px',
346
- paddingTop: sectionproperties.paddingTop + 'px',
347
- paddingBottom: sectionproperties.paddingBottom + 'px',
348
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
349
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
350
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
351
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
352
- borderColor: sectionproperties.sectioncardbordercolor,
353
- border: sectionproperties.sectioncardborderwidth + 'px solid',
354
- }}
355
- >
356
- <div className={'col-lg-12 p-0'}>
357
- <Staticpagesrouter currentpageprops={'previousorders'} actions={actions} />
358
- </div>
359
- <div className={'col-lg-12 p-0'}>
360
- <div className={'row ml-0 mr-0'}>
361
- <div className="row m-0 w-100">
362
- {orderindex.length == 0 && (
363
- <div className="row m-0 w-100">
364
- {sectionproperties.pagedesign == 'Design 1 (Cards)' && (
365
- <div
366
- className="row m-0 w-100 mt-3"
367
- style={{
368
- minHeight: '70vh',
369
- }}
370
- >
371
- {fetchorderhistoryQueryContext.data.data.ordershistory.map((item, index) => {
372
- return (
373
- <div className={' col-lg-4 col-md-6 col-sm-12 mb-4 pl-md-2 pr-md-2 pr-0 '}>
374
- <div
375
- className={`${generalstyles.card}` + ' noshadow '}
376
- onClick={() => {
377
- setorderindex(index);
378
- setopenorderitemsmodalshow(true);
379
- }}
380
- >
381
- <div className="row m-0 w-100">
382
- <div className="col-lg-6 col-md-6 col-sm-6 p-0">
383
- <div className="row m-0 w-100 d-flex align-items-center">
384
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
385
- <p
386
- className={' m-0 p-0 '}
387
- style={{
388
- color: sectionproperties.generaltext_fontColor,
389
- fontSize: sectionproperties.generaltext_fontSize + 'px',
390
- fontWeight: sectionproperties.generaltext_fontWeight,
391
- textTransform: sectionproperties.generaltext_textTransform,
392
- }}
393
- >
394
- {langdetect == 'en' ? sectionproperties.orderidtitleen : sectionproperties.orderidtitlear}:{' '}
395
- <span
396
- style={{
397
- color: sectionproperties.text_secondarycolor,
398
- }}
399
- >
400
- {item.orderid}
401
- </span>
402
- </p>
403
- </div>
404
- </div>
405
- </div>
406
- <div className="col-lg-6 col-md-6 col-sm-6 p-0 d-flex justify-content-end">
407
- <button
408
- className={`${orderhistory_cssstyles.vieworderbtn}`}
409
- onClick={() => {
410
- setorderindex(index);
411
- setopenorderitemsmodalshow(true);
412
- }}
413
- >
414
- {langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}
415
- </button>
416
- </div>
417
- {/* <div className="col-lg-12 p-0 d-flex align-items-center justify-content-start">
418
- <p
419
- className={' m-0 p-0 d-flex justify-content-start module line-clamp '}
420
- style={{
421
- color: sectionproperties.generaltext_fontColor,
422
- fontSize: sectionproperties.generaltext_fontSize + 'px',
423
- fontWeight: sectionproperties.generaltext_fontWeight,
424
- textTransform: sectionproperties.generaltext_textTransform,
425
- }}
426
- >
427
- {lang.numberofproducts}:{' '}
428
- <span
429
- className="ml-1 mr-1"
430
- style={{
431
- color: sectionproperties.text_secondarycolor,
432
- }}
433
- >
434
- {item.orderitems.length}
435
- </span>
436
- </p>
437
- </div> */}
438
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-2">
439
- <span
440
- className={`${generalstyles.pill} ` + ' pl-2 pr-2 '}
441
- style={{ backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange' }}
442
- >
443
- {item.instorderstatus != null ? item.instorderstatus.orderstatusname_en : 'In Progress'}
444
- </span>
445
- </div>
446
-
447
- <div className="col-lg-12 p-0 d-flex align-items-center justify-content-end">
448
- <i
449
- className={langdetect == 'en' ? 'text-light opacity-6 fa fa-clock mr-1 ' : ' text-light opacity-6 fa fa-clock ml-1 '}
450
- ></i>
451
- <p className={'text-light font-weight-500 m-0 p-0 '}>{item.timestamp}</p>
452
- </div>
453
- </div>
454
- </div>
455
- </div>
456
- );
457
- })}
458
- {fetchorderhistoryQueryContext.data.data.ordershistory.length == 0 && (
459
- <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100 pt-5 pb-5" style={{ height: '35vh' }}>
460
- <div className={generalstyles.card + ' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
461
- <FiLayers
462
- style={{
463
- fontSize: sectionproperties.noprod_iconfontSize + 'px',
464
- color: sectionproperties.noprod_iconcolor,
465
- }}
466
- />
467
- <p
468
- class="m-0 p-0 mt-2"
469
- style={{
470
- fontWeight: sectionproperties.noprod_fontWeight,
471
- color: sectionproperties.noprod_color,
472
- fontSize: sectionproperties.noprod_fontSize + 'px',
473
- }}
474
- >
475
- {langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
476
- </p>
477
- </div>
478
- </div>
479
- )}
480
- </div>
481
- )}
482
- {sectionproperties.pagedesign == 'Design 2 (Table)' && (
483
- <div className="w-100" style={{ background: 'white', padding: '20px', minHeight: '70vh' }}>
484
- <div className={`${generalstyles.table_responsive}` + ' col-lg-12 '}>
485
- <table className={`${generalstyles.table} ${generalstyles.table_thbg}`}>
486
- <thead className="" style={{ background: '#eee' }}>
487
- <th
488
- className={'font-weight-500 font-14 text-uppercase text-light mw-150 mw-md-300'}
489
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
490
- >
491
- {langdetect == 'en' ? sectionproperties.orderidtitleen : sectionproperties.orderidtitlear}{' '}
492
- </th>
493
- {sectionproperties.statusvisibility == 'Show' && (
494
- <th className="text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '200px' }}>
495
- {lang.status}
496
- </th>
497
- )}
498
- {sectionproperties.hidenoproducts == 'Show' && (
499
- <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light" style={{ minWidth: '200px' }}>
500
- {lang.numberofproducts}
501
- </th>
502
- )}
503
- <th className="text-capitalize text-center font-weight-500 font-14 text-uppercase text-light">{lang.showmore}</th>
504
- </thead>
505
- <tbody>
506
- {fetchorderhistoryQueryContext.data.data.ordershistory.map((item, index) => {
507
- return (
508
- <tr>
509
- <td className="mw-150 mw-md-300" style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}>
510
- <div class="row m-0 w-100">
511
- {sectionproperties.showorderid == 'Show' && <div class="col-lg-12 p-0 text-start">{item.orderid}</div>}
512
- {sectionproperties.showtimestamp == 'Show' && <div class="col-lg-12 p-0 text-start">{item.timestamp}</div>}
513
- </div>
514
- </td>
515
- {sectionproperties.statusvisibility == 'Show' && (
516
- <td className="text-center" style={{ minWidth: '200px' }}>
517
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex mt-2 justify-content-center">
518
- <span
519
- className={`${generalstyles.pill} ` + ' pl-2 pr-2 '}
520
- style={{ backgroundColor: item.instorderstatus != null ? item.instorderstatus.statuscolor : 'orange' }}
521
- >
522
- {item.instorderstatus != null ? item.instorderstatus.orderstatusname_en : lang.inprogress}
523
- </span>
524
- </div>
525
- </td>
526
- )}
527
- {sectionproperties.hidenoproducts == 'Show' && (
528
- <td className="text-center" style={{ minWidth: '200px' }}>
529
- <span
530
- className="ml-1 mr-1"
531
- style={{
532
- color: sectionproperties.text_secondarycolor,
533
- }}
534
- >
535
- {item.orderitems.length}
536
- </span>
537
- </td>
538
- )}
539
- <td className="text-center cursor-pointer">
540
- <i
541
- className="h-100 d-flex align-items-center justify-content-center"
542
- onClick={() => {
543
- setorderindex(index);
544
- // setopenorderitemsmodalshow(true);
545
- }}
546
- >
547
- {langdetect == 'en' ? <HiOutlineChevronRight /> : <HiOutlineChevronLeft />}
548
- </i>
549
- </td>
550
- </tr>
551
- );
552
- })}
553
- </tbody>
554
- </table>
555
- </div>
556
- {fetchorderhistoryQueryContext.data.data.ordershistory.length == 0 && (
557
- <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100" style={{ height: '35vh' }}>
558
- <div className={' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
559
- <img src={'https://tabex-co.com/storage/StaticImages/shoppingcart.png'} style={{ maxWidth: '250px', maxHeight: '250px' }} />
560
- <p className="font-weight-500" style={{ fontSize: '15px' }}>
561
- {langdetect == 'en' ? 'No Previous Orders' : 'لا توجد طلبات سابقة'}
562
- </p>
563
- </div>
564
- </div>
565
- )}
566
- </div>
567
- )}
568
- </div>
569
- )}
570
- {orderindex.length != 0 && (
571
- <div className={'row ml-0 mr-0 w-100 pb-3 mb-3'}>
572
- <div className="col-lg-12 p-0 mb-3 d-flex align-items-center">
573
- <div
574
- onClick={() => {
575
- setorderindex('');
576
- }}
577
- className={`${orderhistory_cssstyles.iconcontainer}`}
578
- >
579
- <i className="h-100 d-flex align-items-center justify-content-center">
580
- {langdetect == 'en' ? <HiOutlineChevronLeft /> : <HiOutlineChevronRight />}
581
- </i>
582
- </div>
583
- <p
584
- className="m-0 p-0 ml-2 mr-2 wordbreak"
585
- style={{
586
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
587
- color: sectionproperties.sectionTitleColor,
588
- textTransform: sectionproperties.sectionTitleTextTransform,
589
- fontWeight: sectionproperties.sectionTitleFontWeight,
590
- }}
591
- >
592
- {langdetect == 'en' ? sectionproperties.orderidtitleen : sectionproperties.orderidtitlear}:{' '}
593
- {sectionproperties.showorderid == 'Show' && (
594
- <span
595
- style={{
596
- color: sectionproperties.sectiontitlesecondarycolor,
597
- direction: 'ltr',
598
- }}
599
- >
600
- #{fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderid}
601
- </span>
602
- )}
603
- {sectionproperties.showtimestamp == 'Show' && (
604
- <span
605
- style={{
606
- color: sectionproperties.sectiontitlesecondarycolor,
607
- direction: 'ltr',
608
- }}
609
- >
610
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].timestamp}
611
- </span>
612
- )}
613
- </p>
614
- </div>
615
-
616
- <div
617
- className={
618
- sectionproperties.shownotes == 'Hide' &&
619
- sectionproperties.showtotalsection == 'Hide' &&
620
- sectionproperties.showpayemntsection == 'Hide' &&
621
- sectionproperties.hidecountrystatecity == 'Hide' &&
622
- sectionproperties.hideshipping == 'Hide' &&
623
- sectionproperties.hideaddress == 'Hide'
624
- ? 'col-lg-12 p-0'
625
- : langdetect == 'en'
626
- ? 'col-lg-9 pl-0 p-md-0 mb-md-3'
627
- : 'col-lg-9 pr-0 p-md-0 mb-md-3'
628
- }
629
- >
630
- <div className="row m-0 w-100">
631
- <div className="col-lg-12 p-0">
632
- <div className={`${generalstyles.card}` + ' w-100 pl-3 pr-3 '}>
633
- <div className="col-lg-12 p-0">
634
- <div className="row m-0 w-100">
635
- <div className="col-lg-9 col-md-9 col-sm-6 p-0 d-flex align-items-center justify-content-start">
636
- <p
637
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
638
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
639
- >
640
- {langdetect == 'en' ? 'Details' : 'التفاصيل'}
641
- </p>
642
- </div>
643
- {sectionproperties.statusvisibility == 'Show' && (
644
- <div className="col-lg-3 col-md-3 col-sm-6 p-0 d-flex align-items-center justify-content-end">
645
- <p style={{ width: '.9vh', height: '.9vh', borderRadius: '50%', backgroundColor: 'orange' }} className="m-0 p-0"></p>
646
- <p
647
- className="m-0 p-0 fontfamilymedium wordbreak d-flex ml-1 mr-1"
648
- style={{
649
- textAlign: langdetect == 'en' ? 'left' : 'right',
650
- color: 'orange',
651
- }}
652
- >
653
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus != null
654
- ? fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].instorderstatus.orderstatusname_en
655
- : lang.inprogress}
656
- </p>
657
- </div>
658
- )}
659
- <div className="col-lg-12 p-0">
660
- <hr className="mt-2 mb-3" />
661
- </div>
662
- </div>
663
- <div className="row m-0 w-100">
664
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map((item, index) => {
665
- var variantoptions = [];
666
- if (item.isvariant == 1) {
667
- var decodevariantoptions = JSON.parse(item.variantoptions);
668
- variantoptions = decodevariantoptions;
669
- }
670
- if (item.product_extrafields != null) {
671
- var product_extrafields = JSON.parse(item.product_extrafields);
672
- // var product_extrafields_parsed = JSON.stringify(product_extrafields);
673
- // alert(product_extrafields_parsed);
674
- }
675
- var slot = '';
676
- if (item.itemtype == 'service') {
677
- if (item.ser_time != null) {
678
- slot = item.ser_time;
679
- const slotsubstr = slot?.substring(0, 2);
680
- const slotsubstr2 = slot?.substring(2, 5);
681
- if (slotsubstr == '13') {
682
- slot = '01' + slotsubstr2 + ' PM';
683
- } else if (slotsubstr == '14') {
684
- slot = '02' + slotsubstr2 + ' PM';
685
- } else if (slotsubstr == '15') {
686
- slot = '03' + slotsubstr2 + ' PM';
687
- } else if (slotsubstr == '16') {
688
- slot = '04' + slotsubstr2 + ' PM';
689
- } else if (slotsubstr == '17') {
690
- slot = '05' + slotsubstr2 + ' PM';
691
- } else if (slotsubstr == '18') {
692
- slot = '06' + slotsubstr2 + ' PM';
693
- } else if (slotsubstr == '19') {
694
- slot = '07' + slotsubstr2 + ' PM';
695
- } else if (slotsubstr == '20') {
696
- slot = '08' + slotsubstr2 + ' PM';
697
- } else if (slotsubstr == '21') {
698
- slot = '09' + slotsubstr2 + ' PM';
699
- } else if (slotsubstr == '22') {
700
- slot = '10' + slotsubstr2 + ' PM';
701
- } else if (slotsubstr == '23') {
702
- slot = '11' + slotsubstr2 + ' PM';
703
- } else if (slotsubstr == '24') {
704
- slot = '12' + slotsubstr2 + ' AM';
705
- } else {
706
- slot = slotsubstr + slotsubstr2 + ' AM';
707
- }
708
- }
709
- }
710
-
711
- return (
712
- <div className={' col-lg-12 col-md-12 d-flex p-0'}>
713
- <div className="row m-0 w-100">
714
- <div className={' col-lg-12 col-md-12 d-flex p-0'}>
715
- {item.mainproductimage != undefined && item.mainproductimage != '' && item.mainproductimage != null && (
716
- <div className={`${orderhistory_cssstyles.tableimagecont}`}>
717
- <Imagekitimagecomp
718
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
719
- publicKey={ikimagecredcontext?.ikimagepublickey}
720
- path={item.mainproductimage}
721
- style={{
722
- width: '100%',
723
- height: '100%',
724
- objectFit: 'contain',
725
- }}
726
- loading="lazy"
727
- />
728
- </div>
729
- )}
730
- {item.mainproductimage == '' && (
731
- <div
732
- className={`${orderhistory_cssstyles.tableimagecont}` + ' allcentered '}
733
- style={{ background: '#eee' }}
734
- >
735
- <FiLayers color="#ccc" />
736
- </div>
737
- )}
738
-
739
- <div className=" pl-2 pr-2 " style={{ flex: 1 }}>
740
- <div className="row m-0 w-100 d-flex align-items-start">
741
- <div className="col-lg-9 col-md-9 col-sm-9 p-0 d-flex align-items-start">
742
- <p
743
- className={orderhistory_cssstyles.productNameStyles + ' p-0 m-0 wordbreak wordbreak3 '}
744
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
745
- >
746
- {item.productname}
747
- </p>
748
- </div>
749
- {/* {item.productcanrate == 1 && (
750
- <div className="col-lg-3 col-md-3 col-sm-3 p-0 d-flex justify-content-end align-items-start">
751
- {item.hasreview == 0 && (
752
- <p
753
- class="m-0 p-0 cursor-pointer"
754
- onClick={() => {
755
- setopenreviewmodal(true);
756
- setopenreviewmodalproductobj(item);
757
- setproductidforreview(item.productid);
758
- }}
759
- >
760
- {langdetect == 'en' ? 'Rate Product' : 'تقييم المنتج'}
761
- </p>
762
- )}
763
- {item.hasreview == 1 && (
764
- <p
765
- class="m-0 p-0 cursor-pointer"
766
- style={{ color: 'green' }}
767
- onClick={() => {
768
- setopenreviewmodal(true);
769
- // setopenreviewmodalproductobj(item);
770
- setproductidforreview(item.productid);
771
- }}
772
- >
773
- {langdetect == 'en' ? 'View Rate' : 'عرض التقييم'}
774
- </p>
775
- )}
776
- </div>
777
- )} */}
778
- {sectionproperties.prodPriceShow == 'Show' && (
779
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
780
- <p
781
- className={
782
- orderhistory_cssstyles.productPricestyles + ' m-0 p-0 wordbreak d-flex flex-row '
783
- }
784
- style={{ direction: 'ltr' }}
785
- >
786
- <div>
787
- {item.quantity} x {item.finalprice}{' '}
788
- {langdetect == 'en'
789
- ? authdetailsContext?.currencyname_en
790
- : authdetailsContext?.currencyname_ar}
791
- </div>
792
- {/* </span> */}
793
- {/* <span style={{ direction: langdetect == 'en' ? 'ltr' : 'rtl' }}>
794
- {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.finalprice}
795
- </span>{' '}
796
- x {item.quantity}{' '} */}
797
- </p>
798
- </div>
799
- )}
800
- {item.itemtype == 'service' && (
801
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
802
- <p
803
- className={
804
- orderhistory_cssstyles.productPricestyles + ' m-0 p-0 wordbreak d-flex flex-column '
805
- }
806
- style={{ direction: 'ltr' }}
807
- >
808
- <p class={' p-0 m-0 '}>{item.ser_date}</p>
809
- {item.ser_time != null && (
810
- <p>{sectionproperties.timeformat == '24 HOUR CLOCK' ? item.ser_time : slot}</p>
811
- )}
812
- {/* </span> */}
813
- {/* <span style={{ direction: langdetect == 'en' ? 'ltr' : 'rtl' }}>
814
- {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.finalprice}
815
- </span>{' '}
816
- x {item.quantity}{' '} */}
817
- </p>
818
- </div>
819
- )}
820
- <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center">
821
- {item.isvariant == 1 && (
822
- <div className="row m-0 w-100">
823
- {variantoptions.map((variantoptionitem, varitanoptionindex) => {
824
- return (
825
- <div class={orderhistory_cssstyles.variantcontainer + ' mr-1 ml-1 allcentered '}>
826
- <p className={' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '}>
827
- {variantoptionitem.valuename}
828
- </p>
829
- </div>
830
- );
831
- })}
832
- </div>
833
- )}
834
- </div>
835
- {item.product_extrafields != null && (
836
- <div class="col-lg-12 p-0 d-flex align-items-center">
837
- <div class="row m-0 w-100">
838
- {product_extrafields.map((extrafielditem, extrafieldindex) => {
839
- return (
840
- <div class="col-lg-6 col-md-6 col-sm-12 d-flex">
841
- <p
842
- class="m-0 p-0"
843
- style={{
844
- color: sectionproperties.varianttitle_color,
845
- fontSize: sectionproperties.varianttitle_fontSize,
846
- fontWeight: sectionproperties.varianttitle_fontweight,
847
- }}
848
- >
849
- {langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar}:{' '}
850
- <span
851
- style={{
852
- color: sectionproperties.varianttext_color,
853
- fontSize: sectionproperties.varianttext_fontSize,
854
- fontWeight: sectionproperties.varianttext_fontweight,
855
- }}
856
- >
857
- {extrafielditem.value}
858
- </span>
859
- </p>
860
- </div>
861
- );
862
- })}
863
- </div>
864
- </div>
865
- )}
866
- </div>
867
- </div>
868
- </div>
869
-
870
- <div className="col-lg-12 p-0">
871
- <hr className="mt- mb-3" />
872
- </div>
873
- </div>
874
- </div>
875
- );
876
- })}
877
- {showdeletebuttonorder() && (
878
- <div className="col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3">
879
- <button
880
- className={' d-flex align-items-center justify-content-center '}
881
- onClick={() => {
882
- GeneralAPIMutationContext.mutate({
883
- endpointurl: '/deleteorder',
884
- orderid: fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderid,
885
-
886
- mutateSuccesscallback: (data, variables) => {
887
- if (data.data.status) {
888
- window.location.reload();
889
- } else {
890
- NotificationManager.warning('', data.data.reason);
891
- }
892
- },
893
- });
894
- }}
895
- disabled={GeneralAPIMutationContext.isLoading ? true : false}
896
- >
897
- {GeneralAPIMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
898
- {!GeneralAPIMutationContext.isLoading && <p class="m-0 p-0"> {langdetect == 'en' ? 'Delete Order' : 'حذف الطلب'}</p>}
899
- </button>
900
- </div>
901
- )}
902
- </div>
903
- </div>
904
- </div>
905
- </div>
906
- </div>
907
- </div>
908
- <div
909
- className={langdetect == 'en' ? 'col-lg-3 pr-0 p-md-0' : 'col-lg-3 pl-0 p-md-0'}
910
- style={{
911
- display:
912
- sectionproperties.shownotes == 'Hide' &&
913
- sectionproperties.showtotalsection == 'Hide' &&
914
- sectionproperties.showpayemntsection == 'Hide' &&
915
- sectionproperties.hidecountrystatecity == 'Hide' &&
916
- sectionproperties.hideshipping == 'Hide' &&
917
- sectionproperties.hideaddress == 'Hide'
918
- ? 'none'
919
- : 'flex',
920
- }}
921
- >
922
- <div class="row m-0 w-100">
923
- <div class="col-lg-12 p-0">
924
- <div
925
- className="row m-0 w-100 mb-3"
926
- style={{
927
- background: sectionproperties.userinfo_sectionbgcolor,
928
- borderRadius: sectionproperties.userinfo_borderradius + 'px',
929
- marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
930
- marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
931
- border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
932
- display:
933
- sectionproperties.hidecountrystatecity == 'Hide' &&
934
- sectionproperties.hideshipping == 'Hide' &&
935
- sectionproperties.hideaddress == 'Hide' &&
936
- sectionproperties.shownotes == 'Hide'
937
- ? 'none'
938
- : 'flex',
939
- }}
940
- >
941
- <div className="col-lg-12 pl-3 pr-3 pt-2">
942
- <p
943
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
944
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
945
- >
946
- {lang.shippingaddress}
947
- </p>
948
- </div>
949
- <div className="col-lg-12 p-0">
950
- <hr className="mt-2 mb-2" />
951
- </div>
952
- <div className="row m-0 w-100 pl-3 pr-3 pb-2">
953
- {sectionproperties.hidecountrystatecity == 'Show' && (
954
- <div className="col-lg-12 d-flex fontfamilymedium text-focus mb-2">
955
- <i className="h-100 d-flex align-items-center justify-content-center opacity-6">
956
- <GoGlobe className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
957
- </i>
958
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
959
- {lang.country}:{' '}
960
- <span
961
- style={{
962
- color: sectionproperties.userinfotextsecondarycolor,
963
- fontWeight: sectionproperties.userinfo_fontweight,
964
- fontSize: sectionproperties.userinfo_fontsize + 'px',
965
- }}
966
- >
967
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].country}
968
- </span>
969
- </p>
970
- </div>
971
- )}
972
- {sectionproperties.hidecountrystatecity == 'Show' && (
973
- <div className="col-lg-12 d-flex fontfamilymedium text-focus mb-2">
974
- <i className="h-100 d-flex align-items-center justify-content-center">
975
- <VscGlobe className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
976
- </i>
977
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
978
- {lang.stategov}:{' '}
979
- <span className={orderhistory_cssstyles.userinfotextstyles} style={{ color: sectionproperties.userinfotextsecondarycolor }}>
980
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].state}
981
- </span>
982
- </p>
983
- </div>
984
- )}
985
- {sectionproperties.hideshipping == 'Show' && (
986
- <div className="col-lg-12 d-flex fontfamilymedium text-focus mb-2">
987
- <i className="h-100 d-flex align-items-center justify-content-center">
988
- <VscGlobe className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
989
- </i>
990
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
991
- {lang.shippingfees}:{' '}
992
- <span style={{ color: sectionproperties.userinfotextsecondarycolor }}>
993
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
994
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice}{' '}
995
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
996
- </span>
997
- </p>
998
- </div>
999
- )}
1000
- {sectionproperties.hideaddress == 'Show' && (
1001
- <div className="col-lg-12 d-flex fontfamilymedium text-focus">
1002
- <i className="h-100 d-flex align-items-center justify-content-center">
1003
- <IoLocationSharp className={`${orderhistory_cssstyles.userinfotexticonstyles}`} />
1004
- </i>
1005
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
1006
- {lang.address}:{' '}
1007
- <span style={{ color: sectionproperties.userinfotextsecondarycolor }}>
1008
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address}
1009
- </span>
1010
- </p>
1011
- </div>
1012
- )}
1013
- </div>
1014
- </div>
1015
- {sectionproperties.shownotes == 'Show' && fetchorderhistoryQueryContext?.data?.data?.ordershistory[orderindex].notes != null && (
1016
- <div
1017
- className="row m-0 w-100 mb-3"
1018
- style={{
1019
- background: sectionproperties.userinfo_sectionbgcolor,
1020
- borderRadius: sectionproperties.userinfo_borderradius + 'px',
1021
- marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
1022
- marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
1023
- border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
1024
- }}
1025
- >
1026
- <div className="col-lg-12 pl-3 pr-3 pt-2">
1027
- <p
1028
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
1029
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
1030
- >
1031
- {langdetect == 'en' ? 'Notes' : 'الملاحظات'}
1032
- </p>
1033
- </div>
1034
- <div className="col-lg-12 p-0">
1035
- <hr className="mt-2 mb-2" />
1036
- </div>
1037
- <div className="row m-0 w-100 pl-3 pr-3 pb-2">
1038
- <div className="col-lg-12 d-flex fontfamilymedium p-0 text-focus mb-2">
1039
- <p className={orderhistory_cssstyles.userinfotextstyles + ' m-0 p-0 text-capitalize ml-2 mr-2 '}>
1040
- <span
1041
- style={{
1042
- color: sectionproperties.userinfotextsecondarycolor,
1043
- fontWeight: sectionproperties.userinfo_fontweight,
1044
- fontSize: sectionproperties.userinfo_fontsize + 'px',
1045
- }}
1046
- >
1047
- {fetchorderhistoryQueryContext?.data?.data?.ordershistory[orderindex]?.notes}
1048
- </span>
1049
- </p>
1050
- </div>
1051
- </div>
1052
- </div>
1053
- )}
1054
- {sectionproperties.showtotalsection == 'Show' && (
1055
- <div
1056
- className="row m-0 w-100 mb-3"
1057
- style={{
1058
- background: sectionproperties.summary_sectionbgcolor,
1059
- borderRadius: sectionproperties.summary_sectionborderradius + 'px',
1060
- border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
1061
- }}
1062
- >
1063
- <div className="col-lg-12 pl-3 pr-3 pt-2">
1064
- <p
1065
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
1066
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
1067
- >
1068
- {lang.orderinvoice}
1069
- </p>
1070
- </div>
1071
- <div className="col-lg-12 p-0">
1072
- <hr className="mt-2 mb-2" />
1073
- </div>
1074
- <div className="row m-0 w-100 pl-3 pr-3 pb-2">
1075
- <div className="row m-0 w-100 mb-2">
1076
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
1077
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>{lang.subtotal}</p>
1078
- </div>
1079
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1080
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 text-capitalize '}>
1081
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1082
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice}{' '}
1083
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1084
- </p>
1085
- </div>
1086
- </div>
1087
- {fetchorderhistoryQueryContext?.data?.data?.ordershistory[orderindex]?.usewalletpoints == 1 && (
1088
- <div className="row m-0 w-100 mb-2">
1089
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
1090
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>
1091
- {langdetect == 'en' ? 'Wallet discount' : 'خصم المحفظة'}
1092
- </p>
1093
- </div>
1094
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1095
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 text-capitalize '} style={{ color: 'red' }}>
1096
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} -{' '}
1097
- {fetchorderhistoryQueryContext?.data?.data?.ordershistory[orderindex]?.walletpointsused}
1098
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1099
- </p>
1100
- </div>
1101
- </div>
1102
- )}
1103
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && (
1104
- <div className="row m-0 w-100 mb-2">
1105
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
1106
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>
1107
- {lang.promocodediscount}
1108
- </p>
1109
- </div>
1110
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1111
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>
1112
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1113
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].discountprice}{' '}
1114
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1115
- </p>
1116
- </div>
1117
- </div>
1118
- )}
1119
- {sectionproperties.hideshipping == 'Show' && (
1120
- <div className="row m-0 w-100 mb-2">
1121
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
1122
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center '}>
1123
- {lang.shippingfees}
1124
- </p>
1125
- </div>
1126
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1127
- <p className={`${orderhistory_cssstyles.summarysectionstyles}` + ' m-0 p-0 '}>
1128
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1129
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice}{' '}
1130
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1131
- </p>
1132
- </div>
1133
- </div>
1134
- )}
1135
-
1136
- <div className="col-lg-12 p-0">
1137
- <hr className="mt-2 mb-2" />
1138
- </div>
1139
- <div className="row m-0 w-100 mb-2">
1140
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex p-0">
1141
- <p
1142
- className="m-0 p-0"
1143
- style={{
1144
- fontSize: sectionproperties.total_fontsize + 'px',
1145
- fontWeight: sectionproperties.total_fontweight,
1146
- textTransform: sectionproperties.total_texttransform,
1147
- color: sectionproperties.total_color,
1148
- }}
1149
- >
1150
- {lang.total}
1151
- </p>
1152
- </div>
1153
- <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
1154
- <p
1155
- className="m-0 p-0"
1156
- style={{
1157
- fontSize: sectionproperties.total_fontsize + 'px',
1158
- fontWeight: sectionproperties.total_fontweight,
1159
- textTransform: sectionproperties.total_texttransform,
1160
- color: sectionproperties.total_color,
1161
- }}
1162
- >
1163
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1164
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].totalorderprice}{' '}
1165
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1166
- </p>
1167
- </div>
1168
- </div>
1169
- </div>
1170
- </div>
1171
- )}
1172
- {sectionproperties.showpayemntsection == 'Show' && (
1173
- <div
1174
- className="row m-0 w-100 mb-3"
1175
- style={{
1176
- background: sectionproperties.payment_sectionbgcolor,
1177
- borderRadius: sectionproperties.payment_borderradius + 'px',
1178
- border: sectionproperties.payment_borderwidth + 'px solid ' + sectionproperties.payment_sectionbordercolor,
1179
- }}
1180
- >
1181
- <div className="row m-0 w-100">
1182
- <div className="col-lg-12 pl-3 pr-3 pt-2">
1183
- <p
1184
- className={orderhistory_cssstyles.innersectiontitlestyles + ' m-0 p-0 wordbreak '}
1185
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
1186
- >
1187
- {lang.paymentmethod}
1188
- </p>
1189
- </div>
1190
- <div className="col-lg-12 p-0">
1191
- <hr className="mt-2 mb-2" />
1192
- </div>
1193
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].paymentmethod != 'cod' && (
1194
- <div className="row m-0 w-100 mb-2 d-flex align-items-center pl-3 pr-3">
1195
- <img src={'https://tabex-co.com/storage/StaticImages/payment.png'} style={{ maxWidth: '5vh', maxHeight: '4vh' }} />
1196
- <p
1197
- className="m-0 p-0 ml-2 mr-2"
1198
- style={{
1199
- fontSize: sectionproperties.paymenttextfontsize + 'px',
1200
- color: sectionproperties.paymenttextcolor,
1201
- fontWeight: sectionproperties.paymenttextfontweight,
1202
- }}
1203
- >
1204
- {lang.onlinepayment}
1205
- </p>
1206
- </div>
1207
- )}
1208
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].paymentmethod == 'cod' && (
1209
- <div className="row m-0 w-100 mb-2 d-flex align-items-center pl-3 pr-3">
1210
- <img src={'https://tabex-co.com/storage/StaticImages/cod.png'} style={{ maxWidth: '5vh', maxHeight: '4vh' }} />
1211
- <p
1212
- className="m-0 p-0 ml-2 mr-2"
1213
- style={{
1214
- fontSize: sectionproperties.paymenttextfontsize + 'px',
1215
- color: sectionproperties.paymenttextcolor,
1216
- fontWeight: sectionproperties.paymenttextfontweight,
1217
- }}
1218
- >
1219
- {langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar}
1220
- </p>
1221
- </div>
1222
- )}
1223
- </div>
1224
- </div>
1225
- )}
1226
- </div>
1227
- </div>
1228
- </div>
1229
- </div>
1230
- )}
1231
- </div>
1232
- </div>
1233
- {/* <Modal show={openreviewmodal} onHide={() => setopenreviewmodal(false)} centered size="lg">
1234
- <Modal.Body>
1235
- <AddReview actions={{ ...actions, productid: productidforreview, canuserreview: true, addreviewcallback: addreviewcallback }} />
1236
- </Modal.Body>
1237
- </Modal> */}
1238
- {/* {orderindex.length != 0 && (
1239
- <Modal show={openorderitemsmodalshow} onHide={() => setopenorderitemsmodalshow(false)} centered size="lg">
1240
- <Modal.Body>
1241
- <div className={'row ml-0 mr-0 mt-2 w-100 pb-3 mb-3'}>
1242
- <div className={`${generalstyles.table_responsive}` + ' col-lg-12 '}>
1243
- <table className={`${generalstyles.table} ${generalstyles.table_hover} ${generalstyles.table_bordered}`}>
1244
- <thead
1245
- className=""
1246
- style={{
1247
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1248
- }}
1249
- >
1250
- <th className=" text-capitalize text-center ">{langdetect == 'en' ? 'Image' : 'الصورة'}</th>
1251
- <th className={langdetect == 'en' ? 'text-capitalize' : 'text-capitalize text-right'}>{langdetect == 'en' ? 'Product Name' : 'إسم المنتج'}</th>
1252
- <th className="text-center">{langdetect == 'en' ? 'Price' : 'السعر'}</th>
1253
- <th className="text-capitalize text-center">{langdetect == 'en' ? 'َQuantity' : 'الكمية'}</th>
1254
- <th className="text-capitalize text-center">{langdetect == 'en' ? 'Total' : 'الإجمالى'}</th>
1255
- </thead>
1256
- <tbody>
1257
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitems.map((item, index) => {
1258
- var variantoptions = [];
1259
- if (item.isvariant == 1) {
1260
- var decodevariantoptions = JSON.parse(item.variantoptions);
1261
- variantoptions = decodevariantoptions;
1262
- }
1263
- return (
1264
- <tr
1265
- style={{
1266
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1267
- }}
1268
- >
1269
- <td style={{ width: '50px' }}>
1270
- <div className={`${generalstyles.image_table}` + ' mb-auto ml-auto mr-auto '}>
1271
- <img src={serverbaselink + item.mainproductimage} />
1272
- </div>
1273
- </td>
1274
- <td className={langdetect == 'en' ? 'text-capitalize' : 'text-capitalize text-right'} style={{ maxWidth: '200px' }}>
1275
- <div>
1276
- {item.productname}
1277
- {item.isvariant == 1 && (
1278
- <div className="row m-0 w-100">
1279
- {variantoptions.map((variantoptionitem, varitanoptionindex) => {
1280
- return (
1281
- <span className={`${generalstyles.pill} ` + ' mr-1 ml-1 mb-2 pl-2 pr-2 bg-info font-weight-500 '}>
1282
- {variantoptionitem.valuename}
1283
- </span>
1284
- );
1285
- })}
1286
- </div>
1287
- )}
1288
- </div>
1289
- </td>
1290
- <td className="text-center" style={{ maxWidth: '70px' }}>
1291
- {item.finalprice} {lang.egp}
1292
- </td>
1293
- <td className="text-center" style={{ maxWidth: '70px' }}>
1294
- {item.quantity}
1295
- </td>
1296
- <td style={{ maxWidth: '70px' }} className="text-center">
1297
- <div className="row m-0 w-100 text-center">
1298
- <span className="m-auto">
1299
- {item.itemtotalprice} {lang.egp}
1300
- </span>
1301
- </div>
1302
- </td>
1303
- </tr>
1304
- );
1305
- })}
1306
- </tbody>
1307
- </table>
1308
- </div>
1309
- <div className="w-100 row m-0">
1310
- <div className="col-lg-12 mb-3">
1311
- <div className={`${generalstyles.card}`}>
1312
- <div className="w-100 row m-0">
1313
- <div className="col-lg-12 p-0">
1314
- <p
1315
- className="m-0 p-0 font-weight-600 font-15 d-flex align-items-"
1316
- style={{
1317
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1318
- }}
1319
- >
1320
- {langdetect == 'en' ? 'Order Shipping Details' : 'تفاصيل الشحن'}
1321
- </p>
1322
- </div>
1323
- <div className="col-lg-12 p-0">
1324
- <hr className="mt-2 mb-2" />
1325
- </div>
1326
- <div className="col-lg-6 mb-2 d-flex align-items-center">
1327
- <div
1328
- className="d-flex align-items-center justify-content-center"
1329
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1330
- >
1331
- <i className="fa fa-globe text-light"></i>
1332
- </div>
1333
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1334
- {langdetect == 'en' ? 'Country' : 'البلد'}:{' '}
1335
- <span
1336
- className="font-weight-600 wordbreak"
1337
- style={{
1338
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1339
- }}
1340
- >
1341
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].country}
1342
- </span>
1343
- </p>
1344
- </div>
1345
- <div className="col-lg-6 d-flex align-items-center mb-2">
1346
- <div
1347
- className="d-flex align-items-center justify-content-center"
1348
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1349
- >
1350
- <i className="fa fa-globe text-light"></i>
1351
- </div>
1352
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1353
- {langdetect == 'en' ? 'State' : 'المحافظة'}:{' '}
1354
- <span
1355
- className="font-weight-600 wordbreak"
1356
- style={{
1357
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1358
- }}
1359
- >
1360
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].state}
1361
- </span>
1362
- </p>
1363
- </div>
1364
- <div className="col-lg-6 d-flex align-items-center">
1365
- <div
1366
- className="d-flex align-items-center justify-content-center"
1367
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1368
- >
1369
- <i className="text-light d-flex align-items-center justify-content-center">
1370
- <FaMoneyBillWaveAlt />
1371
- </i>
1372
- </div>
1373
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1374
- {langdetect == 'en' ? 'Shipping Fees' : 'مصاريف الشحن'}:{' '}
1375
- <span
1376
- className="font-weight-600 wordbreak"
1377
- style={{
1378
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1379
- }}
1380
- >
1381
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice} EGP
1382
- </span>
1383
- </p>
1384
- </div>
1385
- <div className="col-lg-6 d-flex align-items-center">
1386
- <div
1387
- className="d-flex align-items-center justify-content-center"
1388
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1389
- >
1390
- <i className="d-flex align-items-center justify-content-center text-light">
1391
- <IoLocationSharp />
1392
- </i>
1393
- </div>
1394
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1395
- {langdetect == 'en' ? 'Address' : 'العنوان'}:{' '}
1396
- <span
1397
- className="font-weight-600 wordbreak"
1398
- style={{
1399
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1400
- }}
1401
- >
1402
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].address}
1403
- </span>
1404
- </p>
1405
- </div>
1406
- </div>
1407
- </div>
1408
- </div>
1409
- <div className="col-lg-12">
1410
- <div className={`${generalstyles.card}`}>
1411
- <div className="w-100 row m-0">
1412
- <div className="col-lg-12 p-0">
1413
- <p
1414
- className="m-0 p-0 font-weight-600 font-15"
1415
- style={{
1416
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1417
- }}
1418
- >
1419
- {langdetect == 'en' ? 'Order Summary' : 'ملخص الطلب'}
1420
- </p>
1421
- </div>
1422
- <div className="col-lg-12 p-0">
1423
- <hr className="mt-2 mb-2" />
1424
- </div>
1425
- <div className="col-lg-6 mb-2 d-flex align-items-center">
1426
- <div
1427
- className="d-flex align-items-center justify-content-center"
1428
- style={{ width: '3.5vh', height: '3.5vh', borderRadius: '50%', background: 'white', boxShadow: '0 0 10px #e6e6e6' }}
1429
- >
1430
- <i className="fa fa-globe text-light"></i>
1431
- </div>
1432
- <p className="m-0 p-0 font-weight-500 font-15 text-light ml-1 mr-1">
1433
- {langdetect == 'en' ? 'Payment Method' : 'طريقة الدفع'}:{' '}
1434
- <span
1435
- className="font-weight-600 wordbreak"
1436
- style={{
1437
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.secondarycolor,
1438
- }}
1439
- >
1440
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].paymentmethod == 'cod'
1441
- ? langdetect == 'en'
1442
- ? 'Cash On Delivery'
1443
- : 'الدفع عند الإستلام'
1444
- : langdetect == 'en'
1445
- ? 'Online Payment'
1446
- : 'دفع إلكترونى'}
1447
- </span>
1448
- </p>
1449
- </div>
1450
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1451
- <div className="row m-0 w-100 d-flex align-items-center">
1452
- <div className="col-lg-6 p-0 d-flex align-items-center">
1453
- <p
1454
- className="m-0 p-0 font-weight-500 font-15"
1455
- style={{
1456
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1457
- }}
1458
- >
1459
- {langdetect == 'en' ? 'Sub Total' : 'المبلغ الجزئى'}:
1460
- </p>
1461
- </div>
1462
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1463
- <p
1464
- className="m-0 p-0 font-weight-500 font-15"
1465
- style={{
1466
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1467
- }}
1468
- >
1469
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].orderitemstotalprice}{' '}
1470
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1471
- </p>
1472
- </div>
1473
- </div>
1474
- </div>
1475
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && (
1476
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1477
- <div className="row m-0 w-100 d-flex align-items-center">
1478
- <div className="col-lg-6 p-0 d-flex align-items-center">
1479
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">Promo Code Discount: </p>
1480
- </div>
1481
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1482
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">
1483
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].discountprice}{' '}
1484
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1485
- </p>
1486
- </div>
1487
- </div>
1488
- </div>
1489
- )}
1490
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].haspromocode == 1 && (
1491
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1492
- <div className="row m-0 w-100 d-flex align-items-center">
1493
- <div className="col-lg-6 p-0 d-flex align-items-center">
1494
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">Sub Total After Discount: </p>
1495
- </div>
1496
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1497
- <p className="m-0 p-0 font-weight-500 font-15 text-danger">
1498
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].priceafterdiscount} EGP
1499
- </p>
1500
- </div>
1501
- </div>
1502
- </div>
1503
- )}
1504
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1505
- <div className="row m-0 w-100 d-flex align-items-center">
1506
- <div className="col-lg-6 p-0 d-flex align-items-center">
1507
- <p
1508
- className="m-0 p-0 font-weight-500 font-15"
1509
- style={{
1510
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1511
- }}
1512
- >
1513
- {langdetect == 'en' ? 'Shipping Fees' : 'مصاريف الشحن'}:{' '}
1514
- </p>
1515
- </div>
1516
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1517
- <p
1518
- className="m-0 p-0 font-weight-500 font-15"
1519
- style={{
1520
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1521
- }}
1522
- >
1523
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].zoneprice}{' '}
1524
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1525
- </p>
1526
- </div>
1527
- </div>
1528
- </div>
1529
- <div className="col-lg-12 mb-2 d-flex align-items-center">
1530
- <div className="row m-0 w-100 d-flex align-items-center">
1531
- <div className="col-lg-6 p-0 d-flex align-items-center">
1532
- <p
1533
- className="m-0 p-0 font-weight-500 font-15"
1534
- style={{
1535
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1536
- }}
1537
- >
1538
- {langdetect == 'en' ? 'Total' : 'الإجمالى'}:{' '}
1539
- </p>
1540
- </div>
1541
- <div className="col-lg-6 p-0 d-flex align-items-center justify-content-end">
1542
- <p
1543
- className="m-0 p-0 font-weight-500 font-15"
1544
- style={{
1545
- color: fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.primarycolor,
1546
- }}
1547
- >
1548
- {fetchorderhistoryQueryContext.data.data.ordershistory[orderindex].totalorderprice} EGP{' '}
1549
- </p>
1550
- </div>
1551
- </div>
1552
- </div>
1553
- </div>
1554
- </div>
1555
- </div>
1556
- </div>
1557
- </div>
1558
- </Modal.Body>
1559
- </Modal>
1560
- )} */}
1561
- </div>
1562
- </div>
1563
- )}
1564
- </div>
1565
- </div>
1566
- );
1567
- };
1568
- export default Ordershistory;