tabexseriescomponents 0.0.781 → 0.0.784

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