tabexseriescomponents 0.0.698 → 0.0.699

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 +1655 -1248
  2. package/dist/index.esm.js +1654 -1246
  3. package/dist/index.umd.js +1657 -1248
  4. package/package.json +1 -1
  5. package/srcoriginal/Contexts/LanguageContext.jsx +0 -408
  6. package/srcoriginal/Contexts/ProductsCardsSectionContext.jsx +0 -36
  7. package/srcoriginal/Imagekitconfig.jsx +0 -46
  8. package/srcoriginal/StylesJS/Customstyles.js +0 -345
  9. package/srcoriginal/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -376
  10. package/srcoriginal/TabexComponents/Cards/Card20/Card20.jsx +0 -298
  11. package/srcoriginal/TabexComponents/Cards/Card21/Card21.jsx +0 -388
  12. package/srcoriginal/TabexComponents/Cards/Card22/Card22.jsx +0 -288
  13. package/srcoriginal/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
  14. package/srcoriginal/TabexComponents/Cards/Card23/Card23.jsx +0 -733
  15. package/srcoriginal/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
  16. package/srcoriginal/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
  17. package/srcoriginal/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
  18. package/srcoriginal/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
  19. package/srcoriginal/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -255
  20. package/srcoriginal/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
  21. package/srcoriginal/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
  22. package/srcoriginal/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
  23. package/srcoriginal/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -181
  24. package/srcoriginal/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
  25. package/srcoriginal/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -184
  26. package/srcoriginal/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
  27. package/srcoriginal/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
  28. package/srcoriginal/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -147
  29. package/srcoriginal/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
  30. package/srcoriginal/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
  31. package/srcoriginal/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -409
  32. package/srcoriginal/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -744
  33. package/srcoriginal/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
  34. package/srcoriginal/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
  35. package/srcoriginal/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
  36. package/srcoriginal/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
  37. package/srcoriginal/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
  38. package/srcoriginal/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
  39. package/srcoriginal/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  40. package/srcoriginal/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
  41. package/srcoriginal/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
  42. package/srcoriginal/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
  43. package/srcoriginal/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  44. package/srcoriginal/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
  45. package/srcoriginal/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
  46. package/srcoriginal/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
  47. package/srcoriginal/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -559
  48. package/srcoriginal/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
  49. package/srcoriginal/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  50. package/srcoriginal/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -137
  51. package/srcoriginal/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
  52. package/srcoriginal/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -413
  53. package/srcoriginal/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
  54. package/srcoriginal/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
  55. package/srcoriginal/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -455
  56. package/srcoriginal/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -905
  57. package/srcoriginal/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
  58. package/srcoriginal/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
  59. package/srcoriginal/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
  60. package/srcoriginal/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
  61. package/srcoriginal/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -528
  62. package/srcoriginal/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
  63. package/srcoriginal/TabexComponents/Footer/Footer2/Footer2.jsx +0 -527
  64. package/srcoriginal/TabexComponents/Footer/Footer3/Footer3.jsx +0 -411
  65. package/srcoriginal/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
  66. package/srcoriginal/TabexComponents/Footer/Footer5/Footer5.jsx +0 -714
  67. package/srcoriginal/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
  68. package/srcoriginal/TabexComponents/Footer/Footer7/Footer7.jsx +0 -428
  69. package/srcoriginal/TabexComponents/Footer/Footer8/Footer8.jsx +0 -533
  70. package/srcoriginal/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
  71. package/srcoriginal/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -581
  72. package/srcoriginal/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -884
  73. package/srcoriginal/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -647
  74. package/srcoriginal/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
  75. package/srcoriginal/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -316
  76. package/srcoriginal/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  77. package/srcoriginal/TabexComponents/Generalfiles/images/noimage.png +0 -0
  78. package/srcoriginal/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  79. package/srcoriginal/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  80. package/srcoriginal/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  81. package/srcoriginal/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  82. package/srcoriginal/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  83. package/srcoriginal/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  84. package/srcoriginal/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  85. package/srcoriginal/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  86. package/srcoriginal/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  87. package/srcoriginal/TabexComponents/Generalfiles/images/usflag.png +0 -0
  88. package/srcoriginal/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  89. package/srcoriginal/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1259
  90. package/srcoriginal/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1049
  91. package/srcoriginal/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1040
  92. package/srcoriginal/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1263
  93. package/srcoriginal/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
  94. package/srcoriginal/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -894
  95. package/srcoriginal/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -831
  96. package/srcoriginal/TabexComponents/Headers/Header4/Header4.jsx +0 -622
  97. package/srcoriginal/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
  98. package/srcoriginal/TabexComponents/Headers/Header8/Header8.jsx +0 -2016
  99. package/srcoriginal/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -776
  100. package/srcoriginal/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -927
  101. package/srcoriginal/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -704
  102. package/srcoriginal/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
  103. package/srcoriginal/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -953
  104. package/srcoriginal/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1562
  105. package/srcoriginal/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
  106. package/srcoriginal/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
  107. package/srcoriginal/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
  108. package/srcoriginal/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -1845
  109. package/srcoriginal/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
  110. package/srcoriginal/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -934
  111. package/srcoriginal/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -78
  112. package/srcoriginal/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -977
  113. package/srcoriginal/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -778
  114. package/srcoriginal/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1159
  115. package/srcoriginal/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -1110
  116. package/srcoriginal/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -151
  117. package/srcoriginal/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -854
  118. package/srcoriginal/TabexComponents/Headers/Subheader/Subheader.jsx +0 -863
  119. package/srcoriginal/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
  120. package/srcoriginal/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
  121. package/srcoriginal/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
  122. package/srcoriginal/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1042
  123. package/srcoriginal/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1093
  124. package/srcoriginal/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -939
  125. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
  126. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
  127. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -870
  128. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
  129. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
  130. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
  131. package/srcoriginal/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
  132. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
  133. package/srcoriginal/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -393
  134. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
  135. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
  136. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -677
  137. package/srcoriginal/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
  138. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
  139. package/srcoriginal/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
  140. package/srcoriginal/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -288
  141. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -117
  142. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
  143. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
  144. package/srcoriginal/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -462
  145. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
  146. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
  147. package/srcoriginal/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -616
  148. package/srcoriginal/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -408
  149. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
  150. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
  151. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
  152. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -1936
  153. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
  154. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
  155. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
  156. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
  157. package/srcoriginal/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
  158. package/srcoriginal/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
  159. package/srcoriginal/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
  160. package/srcoriginal/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -929
  161. package/srcoriginal/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
  162. package/srcoriginal/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -962
  163. package/srcoriginal/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -582
  164. package/srcoriginal/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
  165. package/srcoriginal/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
  166. package/srcoriginal/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
  167. package/srcoriginal/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -257
  168. package/srcoriginal/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
  169. package/srcoriginal/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -760
  170. package/srcoriginal/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
  171. package/srcoriginal/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
  172. package/srcoriginal/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -1679
  173. package/srcoriginal/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
  174. package/srcoriginal/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
  175. package/srcoriginal/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -385
  176. package/srcoriginal/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -512
  177. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  178. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  179. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
  180. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
  181. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -520
  182. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
  183. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -643
  184. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
  185. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
  186. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
  187. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
  188. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
  189. package/srcoriginal/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -619
  190. package/srcoriginal/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
  191. package/srcoriginal/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -614
  192. package/srcoriginal/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
  193. package/srcoriginal/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -199
  194. package/srcoriginal/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -304
  195. package/srcoriginal/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -321
  196. package/srcoriginal/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -797
  197. package/srcoriginal/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
  198. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
  199. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1892
  200. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
  201. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
  202. package/srcoriginal/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
  203. package/srcoriginal/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
  204. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
  205. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
  206. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter.jsx +0 -2979
  207. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
  208. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
  209. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
  210. package/srcoriginal/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
  211. package/srcoriginal/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
  212. package/srcoriginal/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
  213. package/srcoriginal/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
  214. package/srcoriginal/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  215. package/srcoriginal/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
  216. package/srcoriginal/TabexComponents/StaticPages/Login/Login.jsx +0 -610
  217. package/srcoriginal/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -172
  218. package/srcoriginal/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1584
  219. package/srcoriginal/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
  220. package/srcoriginal/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
  221. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
  222. package/srcoriginal/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
  223. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -255
  224. package/srcoriginal/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -176
  225. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
  226. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -92
  227. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -312
  228. package/srcoriginal/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -235
  229. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -2118
  230. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
  231. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
  232. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
  233. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
  234. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1947
  235. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -1037
  236. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -966
  237. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -632
  238. package/srcoriginal/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
  239. package/srcoriginal/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
  240. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
  241. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
  242. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
  243. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
  244. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
  245. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
  246. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
  247. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
  248. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
  249. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
  250. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
  251. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
  252. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -919
  253. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
  254. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
  255. package/srcoriginal/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
  256. package/srcoriginal/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
  257. package/srcoriginal/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -338
  258. package/srcoriginal/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -359
  259. package/srcoriginal/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -113
  260. package/srcoriginal/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
  261. package/srcoriginal/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
  262. package/srcoriginal/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1364
  263. package/srcoriginal/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
  264. package/srcoriginal/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
  265. package/srcoriginal/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -113
  266. package/srcoriginal/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
  267. package/srcoriginal/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
  268. package/srcoriginal/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
  269. package/srcoriginal/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
  270. package/srcoriginal/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
  271. package/srcoriginal/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
  272. package/srcoriginal/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
  273. package/srcoriginal/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
  274. package/srcoriginal/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
  275. package/srcoriginal/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
  276. package/srcoriginal/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
  277. package/srcoriginal/button.jsx +0 -40
  278. package/srcoriginal/index.jsx +0 -334
  279. package/srcoriginal/styles/Home.module.css +0 -129
  280. package/srcoriginal/styles/cards/Categorcycard_fullimage.module.css +0 -14
  281. package/srcoriginal/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  282. package/srcoriginal/styles/cards/Categorycard_withshapes.module.css +0 -189
  283. package/srcoriginal/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
  284. package/srcoriginal/styles/cards/Productcard6.module.css +0 -9
  285. package/srcoriginal/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  286. package/srcoriginal/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  287. package/srcoriginal/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
  288. package/srcoriginal/styles/cards/card23.module.css +0 -60
  289. package/srcoriginal/styles/cards/categorycard.module.css +0 -84
  290. package/srcoriginal/styles/cards/categorycard3.module.css +0 -50
  291. package/srcoriginal/styles/cards/categorycardwithtext.module.css +0 -40
  292. package/srcoriginal/styles/cards/generalCardsStyles.module.css +0 -79
  293. package/srcoriginal/styles/cards/productcard_animatedbuttons.module.css +0 -139
  294. package/srcoriginal/styles/cards/productcard_with_textonhover.module.css +0 -18
  295. package/srcoriginal/styles/cards/productcard_withtextonimage.module.css +0 -0
  296. package/srcoriginal/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  297. package/srcoriginal/styles/general/bootstrap.css +0 -4763
  298. package/srcoriginal/styles/general/dropdown.css +0 -206
  299. package/srcoriginal/styles/general/editorbardropdown.module.css +0 -94
  300. package/srcoriginal/styles/general/filter.module.css +0 -108
  301. package/srcoriginal/styles/general/form.module.css +0 -255
  302. package/srcoriginal/styles/general/general.module.css +0 -872
  303. package/srcoriginal/styles/general/image-gallery.css +0 -531
  304. package/srcoriginal/styles/general/react-accessible-accordion.module.css +0 -52
  305. package/srcoriginal/styles/general/react-phone-input-2.module.css +0 -927
  306. package/srcoriginal/styles/general/scrollbtn.module.css +0 -22
  307. package/srcoriginal/styles/general/slick.module.css +0 -166
  308. package/srcoriginal/styles/general/tabs.module.css +0 -119
  309. package/srcoriginal/styles/general/workplaceeditor.module.css +0 -328
  310. package/srcoriginal/styles/globals.css +0 -26
  311. package/srcoriginal/styles/headers/CTAHeader.module.css +0 -40
  312. package/srcoriginal/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  313. package/srcoriginal/styles/headers/Gotoheader.module.css +0 -87
  314. package/srcoriginal/styles/headers/Header7.module.css +0 -50
  315. package/srcoriginal/styles/headers/HeaderWithAdSlider.module.css +0 -86
  316. package/srcoriginal/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
  317. package/srcoriginal/styles/headers/HeaderWithUtilityBar.module.css +0 -46
  318. package/srcoriginal/styles/headers/Header_threesectionslogocentered.module.css +0 -84
  319. package/srcoriginal/styles/headers/NewHeader.module.css +0 -101
  320. package/srcoriginal/styles/headers/SearchFocusedHeader.module.css +0 -62
  321. package/srcoriginal/styles/headers/Sideheader.module.css +0 -108
  322. package/srcoriginal/styles/headers/Simpleheader.module.css +0 -102
  323. package/srcoriginal/styles/headers/classicheader.module.css +0 -16
  324. package/srcoriginal/styles/headers/classicheaderstyles.module.css +0 -9
  325. package/srcoriginal/styles/headers/dropdown.css +0 -0
  326. package/srcoriginal/styles/headers/header4.module.css +0 -175
  327. package/srcoriginal/styles/headers/header5.module.css +0 -30
  328. package/srcoriginal/styles/headers/header_contactinfo.module.css +0 -53
  329. package/srcoriginal/styles/headers/headerresturant.module.css +0 -89
  330. package/srcoriginal/styles/headers/modernheader.module.css +0 -45
  331. package/srcoriginal/styles/headers/stylishheader.module.css +0 -24
  332. package/srcoriginal/styles/headers/subheader.module.css +0 -114
  333. package/srcoriginal/styles/headers/threetieredheader.module.css +0 -91
  334. package/srcoriginal/styles/sections/BackgroundImageWithTopContent.css +0 -4
  335. package/srcoriginal/styles/sections/Backgroundimage1.module.css +0 -17
  336. package/srcoriginal/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  337. package/srcoriginal/styles/sections/Freetext.module.css +0 -18
  338. package/srcoriginal/styles/sections/Section_with_rightbgcont.module.css +0 -49
  339. package/srcoriginal/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  340. package/srcoriginal/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  341. package/srcoriginal/styles/staticpages/accordion.module.css +0 -9
  342. package/srcoriginal/styles/staticpages/cart.module.css +0 -108
  343. package/srcoriginal/styles/staticpages/dropdown.css +0 -196
  344. package/srcoriginal/styles/staticpages/filter.module.css +0 -139
  345. package/srcoriginal/styles/staticpages/image-gallery.css +0 -481
  346. package/srcoriginal/styles/staticpages/login.module.css +0 -155
  347. package/srcoriginal/styles/staticpages/productinfo.module.css +0 -54
  348. package/srcoriginal/styles/staticpages/shop.module.css +0 -191
  349. package/srcoriginal/styles/staticpages/signup.module.css +0 -250
  350. package/srcoriginal/styles/staticpages/staticroutersidenav.module.css +0 -129
  351. package/srcoriginal/styles/staticpages/viewcart.module.css +0 -129
  352. package/srcoriginal/styles/staticpages/wishlist.module.css +0 -29
@@ -1,1554 +0,0 @@
1
- //productidprops
2
- import React, { useEffect, useState } from 'react';
3
- import productinfostyles from '../../../styles/staticpages/productinfo.module.css';
4
- import ImageGallery from 'react-image-gallery';
5
- import { CircularProgress } from 'react-cssfx-loading';
6
- import '../../../styles/staticpages/image-gallery.css';
7
- import { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';
8
- import { IoBagHandleOutline } from '@react-icons/all-files/io5/IoBagHandleOutline';
9
- import { BsBag } from '@react-icons/all-files/bs/BsBag';
10
- import { CgShoppingBag } from '@react-icons/all-files/cg/CgShoppingBag';
11
- import { FaRegHeart } from '@react-icons/all-files/fa/FaRegHeart';
12
- import { FaHeart } from '@react-icons/all-files/fa/FaHeart';
13
- import { FiShoppingBag } from '@react-icons/all-files/fi/FiShoppingBag';
14
- import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
15
- import { AiFillStar } from '@react-icons/all-files/ai/AiFillStar';
16
- import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
17
- import { FaFacebookF } from '@react-icons/all-files/fa/FaFacebookF';
18
-
19
- import {
20
- FacebookShareButton,
21
- TwitterShareButton,
22
- WhatsappShareButton,
23
- FacebookIcon,
24
- TwitterIcon,
25
- FacebookMessengerShareButton,
26
- FacebookMessengerIcon,
27
- WhatsappIcon,
28
- LinkedinShareButton,
29
- LinkedinIcon,
30
- } from 'react-share';
31
- import { IoMdClose } from '@react-icons/all-files/io/IoMdClose';
32
- import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
33
- import { FiMinus } from '@react-icons/all-files/fi/FiMinus';
34
- import { FiPlus } from '@react-icons/all-files/fi/FiPlus';
35
- import ReactStars from 'react-rating-stars-component';
36
- import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
37
- import Variantoptions from './Variantoptions.jsx';
38
- import ProductHeaderPricing from './ProductHeaderPricing.jsx';
39
- import ProductExtraFields from './ProductExtraFields.jsx';
40
- import DescriptionContent from './DescriptionContent.jsx';
41
-
42
- const Product_itemtype = (props) => {
43
- const lang = props.actions.lang;
44
- const langdetect = props.actions.langdetect;
45
- const srcfromprops = props.actions.srcfromprops;
46
- const returnpolicyobj = props.actions.returnpolicyobj;
47
- const productinfo_cssstyles = props.actions.productinfo_cssstyles;
48
- const addtocartfunc = props.actions.addtocartfunc;
49
- const selectproductoptionvalue = props.actions.selectproductoptionvalue;
50
- const clearchoosenvaluesbutkeepcurrentvalue = props.actions.clearchoosenvaluesbutkeepcurrentvalue;
51
- const productimagesarray = props.actions.productimagesarray;
52
- const fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
53
- const sectionproperties = props.actions.sectionproperties;
54
- const addtocardpayloadobj = props.actions.addtocardpayloadobj;
55
- const setaddtocardpayloadobj = props.actions.setaddtocardpayloadobj;
56
- const routingcountext = props.actions.routingcountext;
57
- const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
58
- const authdetailsContext = props.actions.authdetailsContext;
59
- const addtofavoritescontext = props.actions.addtofavoritescontext;
60
- const variantindexcompleted = props.actions.variantindexcompleted;
61
- const ProductInfoObj = props.actions.ProductInfoObj;
62
- const NotificationManager = props.actions.NotificationManager;
63
- const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
64
- const getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
65
- const ikimagecredcontext = props.actions.ikimagecredcontext;
66
- const currentshowingimageindex = props.actions.currentshowingimageindex;
67
- const StoreInfoprops = props.actions.StoreInfoprops;
68
- // const DescriptionContent = props.actions.DescriptionContent;
69
- const [shareUrl, setshareUrl] = useState('');
70
- const [title, settitle] = useState('');
71
- const [item, setitem] = useState(fetchProductInfoQueryContext.data.data.productinfo);
72
- const [totalprice, settotalprice] = useState('');
73
-
74
- useEffect(() => {
75
- var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
76
- if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
77
- itemobj.titlelang = 'en';
78
- } else {
79
- itemobj.titlelang = 'ar';
80
- }
81
- if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
82
- itemobj.decriptionlang = 'en';
83
- } else {
84
- itemobj.decriptionlang = 'ar';
85
- }
86
- setitem(itemobj);
87
- settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
88
- setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
89
- }, [props.itemprops]);
90
- function stringIsEnglish(str) {
91
- var titlelang = 'English';
92
- var arabic = /[\u0600-\u06FF]/;
93
- if (!arabic.test(str)) {
94
- titlelang = true;
95
- } else {
96
- titlelang = false;
97
- }
98
- return titlelang;
99
- }
100
- const GalleryStyle1Section = () => {
101
- return (
102
- <div
103
- className={sectionproperties.maximizegalleryfullscreen == 'Yes' ? ' col-lg-12 p-0 maximize ' : 'col-lg-12 p-0'}
104
- style={{
105
- width: '100%',
106
- height: 'auto',
107
- }}
108
- >
109
- {productimagesarray.length == 0 && (
110
- <div
111
- style={{
112
- width: '100%',
113
- height: '30vh',
114
- background: '#eee',
115
- borderRadius: 10,
116
- }}
117
- >
118
- <i class="h-100 allcentered text-light">
119
- <FiLayers size={26} />
120
- </i>
121
- </div>
122
- )}
123
- {productimagesarray.length != 0 && (
124
- <div class="w-100 d-block d-md-none">
125
- <ImageGallery
126
- items={productimagesarray}
127
- thumbnailPosition={sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left'}
128
- showNav={false}
129
- showPlayButton={false}
130
- showFullscreenButton={true}
131
- startIndex={currentshowingimageindex}
132
- />
133
- </div>
134
- )}
135
- {productimagesarray.length != 0 && (
136
- <div class="w-100 d-none d-md-block">
137
- <ImageGallery
138
- items={productimagesarray}
139
- thumbnailPosition={'bottom'}
140
- showNav={false}
141
- showPlayButton={false}
142
- showFullscreenButton={true}
143
- startIndex={currentshowingimageindex}
144
- />
145
- </div>
146
- )}
147
- </div>
148
- );
149
- };
150
- const ProductNameSection = () => {
151
- return (
152
- <p
153
- className={
154
- srcfromprops == 'templatedraftrouter'
155
- ? `${productinfo_cssstyles.productname} ${productinfo_cssstyles.productnamehover}` + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 '
156
- : `${productinfo_cssstyles.productname}` + ' m-0 p-0 wordbreak d-flex justify-content-start font-sm-15 '
157
- }
158
- onClick={() => {
159
- if (srcfromprops == 'templatedraftrouter') {
160
- routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
161
- }
162
- }}
163
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
164
- >
165
- {langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar}
166
- </p>
167
- );
168
- };
169
- const SKUSection = () => {
170
- return (
171
- <div class="row m-0 w-100">
172
- {sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && (
173
- <div
174
- class={
175
- sectionproperties.deliverytimeshow == 'Show' && fetchProductInfoQueryContext?.data?.data?.productinfo?.deliverydatetext != null
176
- ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start'
177
- : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
178
- }
179
- >
180
- <p class="m-0 p-0 d-flex justify-content-start">
181
- <span
182
- style={{
183
- color: sectionproperties.skuColor,
184
- fontWeight: sectionproperties.skuFontWeight,
185
- fontSize: sectionproperties.skuFontSize + 'px',
186
- textAlign: langdetect == 'en' ? 'left' : 'right',
187
- }}
188
- >
189
- {langdetect == 'en' ? sectionproperties.skutitleEn : sectionproperties.skutitleAr}:{' '}
190
- </span>
191
- <span
192
- class="ml-1 mr-1"
193
- style={{
194
- color: '#7e859b',
195
- fontWeight: sectionproperties.skuSecondaryFontWeight,
196
- fontSize: sectionproperties.skuFontSize + 'px',
197
- textAlign: langdetect == 'en' ? 'left' : 'right',
198
- }}
199
- >
200
- {fetchProductInfoQueryContext.data.data.productinfo.sku}
201
- </span>
202
- </p>
203
- </div>
204
- )}
205
- </div>
206
- );
207
- };
208
- const ShareButtonsContainer = () => {
209
- return (
210
- <div class="row m-0 w-100">
211
- <div class="col-lg-12 d-flex justify-content-center flex-column align-items-center p-0">
212
- <p
213
- class="m-0 p-0 w-100"
214
- style={{
215
- fontWeight: sectionproperties.sharebtn_FontWeight,
216
- color: sectionproperties.sharebtn_color,
217
- fontSize: sectionproperties.sharebtn_fontSize + 'px',
218
- justifyContent: sectionproperties.sharecentered == 'Centered' ? 'center' : 'start',
219
- }}
220
- >
221
- {langdetect == 'en' ? sectionproperties.sharebtn_contentEn : sectionproperties.sharebtn_contentAr}
222
- </p>
223
- <div
224
- className="Demo__container w-100 m-0 d-flex align-items-center mt-3"
225
- style={{
226
- justifyContent: sectionproperties.sharecentered == 'Centered' ? 'center' : 'start',
227
- }}
228
- >
229
- <div className="Demo__some-network ml-2 mr-2 allcentered">
230
- <FacebookShareButton url={shareUrl} quote={title} className="Demo__some-network__share-button allcentered">
231
- <div
232
- class="allcentered"
233
- style={{
234
- width: sectionproperties.shareiconwidth + 'px',
235
- height: 30,
236
- borderRadius: 100,
237
- background: '#eee',
238
- }}
239
- >
240
- <i class="h-100 allcentered">
241
- <FaFacebookF />
242
- </i>
243
- </div>
244
- </FacebookShareButton>
245
- </div>
246
- <div className="Demo__some-network ml-2 mr-2 allcentered">
247
- <TwitterShareButton url={shareUrl} title={title} className="Demo__some-network__share-button allcentered">
248
- <div
249
- class="allcentered"
250
- style={{
251
- width: 30,
252
- height: 30,
253
- borderRadius: 100,
254
- background: '#eee',
255
- }}
256
- >
257
- <i class="h-100 allcentered">
258
- <FaFacebookF />
259
- </i>
260
- </div>
261
- </TwitterShareButton>
262
- </div>
263
- <div className="Demo__some-network ml-2 mr-2">
264
- <WhatsappShareButton url={shareUrl} title={title} separator=":: " className="Demo__some-network__share-button">
265
- <WhatsappIcon size={40} round />
266
- </WhatsappShareButton>
267
- </div>
268
- {sectionproperties.showsharelinkedin == 'Show' && (
269
- <div className="Demo__some-network ml-2 mr-2">
270
- <LinkedinShareButton url={shareUrl} title={title} separator=":: " className="Demo__some-network__share-button">
271
- <LinkedinIcon size={40} round />
272
- </LinkedinShareButton>
273
- </div>
274
- )}
275
- {/* <div className="Demo__some-network ml-2 mr-2">
276
- <FacebookMessengerShareButton url={shareUrl} title={title} separator=":: " className="Demo__some-network__share-button">
277
- <FacebookMessengerIcon size={40} round />
278
- </FacebookMessengerShareButton>
279
- </div> */}
280
- </div>
281
- </div>
282
- </div>
283
- );
284
- };
285
- const Quantitybtn_Cartbtn_Favbottombtn = () => {
286
- return (
287
- <div class="col-lg-12 p-0">
288
- <div
289
- class="row m-0 w-100 d-flex align-items-center"
290
- style={{
291
- justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start',
292
- }}
293
- >
294
- {sectionproperties.quantitybtn_show == 'Show' &&
295
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 &&
296
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducthasquantitychange == 1 && (
297
- <button
298
- className={` ${productinfo_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 '}
299
- style={{
300
- height: sectionproperties.quantitybtn_height + 'px',
301
- width: sectionproperties.quantitybtn_width + 'px',
302
- flexDirection: 'row',
303
- direction: 'ltr',
304
- }}
305
- >
306
- <span
307
- className={`${productinfo_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
308
- onClick={() => {
309
- var tempaddtocardpayloadobj = {
310
- ...addtocardpayloadobj,
311
- };
312
- if (tempaddtocardpayloadobj.quantity > 0) {
313
- tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
314
- }
315
- setaddtocardpayloadobj({
316
- ...tempaddtocardpayloadobj,
317
- });
318
- }}
319
- >
320
- <i
321
- className={sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered'}
322
- style={{
323
- fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
324
- }}
325
- >
326
- {sectionproperties.quantityiconstyle == 'Plus/Minus' && <FiMinus size={sectionproperties.remove_quantitybtn_textfontsize} />}
327
- </i>
328
- </span>
329
- <span className={`${productinfo_cssstyles.quantitybtn_text}`}>{addtocardpayloadobj.quantity}</span>
330
- <span
331
- className={`${productinfo_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
332
- onClick={() => {
333
- var tempaddtocardpayloadobj = {
334
- ...addtocardpayloadobj,
335
- };
336
- tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
337
- setaddtocardpayloadobj({
338
- ...tempaddtocardpayloadobj,
339
- });
340
- }}
341
- >
342
- <i
343
- className={sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'}
344
- // className="fa fa-chevron-up"
345
- style={{
346
- fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
347
- }}
348
- >
349
- {sectionproperties.quantityiconstyle == 'Plus/Minus' && <FiPlus size={sectionproperties.add_quantitybtn_textfontsize} />}
350
- </i>
351
- </span>
352
- </button>
353
- )}
354
- {sectionproperties.cartbtnalone == 'Besides Other Buttons' &&
355
- sectionproperties.cartBtnShow == 'Show' &&
356
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
357
- <button
358
- className={`${productinfo_cssstyles.cart_btn} ` + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 '}
359
- onClick={() => {
360
- if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
361
- window.open('tel:' + fetchProductInfoQueryContext.data.data.productinfo?.product_phonenumber, '_blank');
362
- } else {
363
- if (
364
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity &&
365
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity
366
- ) {
367
- addtocartfunc();
368
- } else {
369
- NotificationManager.warning(
370
- '',
371
- lang.maximum +
372
- ': ' +
373
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant +
374
- ', ' +
375
- lang.minimum +
376
- ': ' +
377
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,
378
- );
379
- }
380
- }
381
- }}
382
- disabled={AddtoCartMutationContext.isLoading == true ? true : false}
383
- >
384
- {!AddtoCartMutationContext.isLoading && (
385
- <span className={' d-flex align-items-center justify-content-center '}>
386
- <i
387
- className={
388
- langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'
389
- }
390
- >
391
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
392
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
393
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
394
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <IoBagHandleOutline className="" size={sectionproperties.cartBtn_iconFontSize} />}
395
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />}
396
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
397
- </i>
398
-
399
- {/* {langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic} */}
400
- {langdetect == 'en'
401
- ? fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_en
402
- : fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_ar}
403
- </span>
404
- )}
405
- {AddtoCartMutationContext.isLoading && (
406
- <div className={' d-flex align-items-center justify-content-center '}>
407
- <CircularProgress color="white" width="20px" height="20px" duration="1s" />
408
- </div>
409
- )}
410
- </button>
411
- )}
412
- {sectionproperties.btnposition == 'Bottom' && sectionproperties.favBtnShow == 'Show' && (
413
- <div
414
- className={productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 '}
415
- onClick={() => {
416
- addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
417
- }}
418
- style={{
419
- background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : '',
420
- }}
421
- >
422
- <i className="h-100 d-flex align-items-center justify-content-center">
423
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
424
- <i className="h-100 d-flex align-items-center justify-content-center">
425
- {sectionproperties.faviconshape == 'Star Shape' && (
426
- <AiFillStar
427
- size={sectionproperties.favBtnIconfontsize}
428
- style={{
429
- color: sectionproperties.activefaviconcolor,
430
- }}
431
- />
432
- )}
433
- {sectionproperties.faviconshape == 'Heart Shape' && (
434
- <FaHeart
435
- size={sectionproperties.favBtnIconfontsize}
436
- style={{
437
- color: sectionproperties.activefaviconcolor,
438
- }}
439
- />
440
- )}
441
- </i>
442
- )}
443
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
444
- <i className="h-100 d-flex align-items-center justify-content-center">
445
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
446
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
447
- </i>
448
- )}
449
- </i>
450
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && (
451
- <p
452
- class="m-0 p-0"
453
- style={{
454
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
455
- }}
456
- >
457
- {langdetect == 'en' ? sectionproperties.favbtncontent_en : sectionproperties.favbtncontent_ar}
458
- </p>
459
- )}
460
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && (
461
- <p
462
- class="m-0 p-0"
463
- style={{
464
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
465
- }}
466
- >
467
- {langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar}
468
- </p>
469
- )}
470
- </div>
471
- )}
472
- </div>
473
- {sectionproperties.cartbtnalone == 'Alone' && sectionproperties.cartBtnShow == 'Show' && fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
474
- <div class="row m-0 w-100 mt-3" style={{ overflow: 'hidden' }}>
475
- <button
476
- className={`${productinfo_cssstyles.cart_btn} ` + ' d-flex align-items-center justify-content-center mb-sm-2 '}
477
- style={{
478
- width: sectionproperties.cartBtnWidth + '%',
479
- }}
480
- onClick={() => {
481
- if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
482
- window.open('tel:' + fetchProductInfoQueryContext.data.data.productinfo?.product_phonenumber, '_blank');
483
- } else {
484
- if (
485
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity &&
486
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity
487
- ) {
488
- addtocartfunc();
489
- } else {
490
- NotificationManager.warning(
491
- '',
492
- lang.maximum +
493
- ': ' +
494
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant +
495
- ', ' +
496
- lang.minimum +
497
- ': ' +
498
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,
499
- );
500
- }
501
- }
502
- }}
503
- disabled={AddtoCartMutationContext.isLoading == true ? true : false}
504
- >
505
- {!AddtoCartMutationContext.isLoading && (
506
- <span className={' d-flex align-items-center justify-content-center '}>
507
- <i className={langdetect == 'en' ? 'h-100 d-flex align-items-center justify-content-center mr-2' : 'h-100 d-flex align-items-center justify-content-center ml-2'}>
508
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
509
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
510
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
511
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <IoBagHandleOutline className="" size={sectionproperties.cartBtn_iconFontSize} />}
512
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />}
513
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
514
- </i>
515
-
516
- {langdetect == 'en'
517
- ? fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_en
518
- : fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_ar}
519
- {/* {langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic} */}
520
- </span>
521
- )}
522
- {AddtoCartMutationContext.isLoading && (
523
- <div className={' d-flex align-items-center justify-content-center '}>
524
- <CircularProgress color="white" width="20px" height="20px" duration="1s" />
525
- </div>
526
- )}
527
- </button>
528
- {sectionproperties.btnposition == 'Besides Cart Button' && sectionproperties.favBtnShow == 'Show' && (
529
- <div
530
- className={productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 mx-3 '}
531
- onClick={() => {
532
- addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
533
- }}
534
- style={{
535
- background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : '',
536
- }}
537
- >
538
- <i className="h-100 d-flex align-items-center justify-content-center">
539
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
540
- <i className="h-100 d-flex align-items-center justify-content-center">
541
- {sectionproperties.faviconshape == 'Star Shape' && (
542
- <AiFillStar
543
- size={sectionproperties.favBtnIconfontsize}
544
- style={{
545
- color: sectionproperties.activefaviconcolor,
546
- }}
547
- />
548
- )}
549
- {sectionproperties.faviconshape == 'Heart Shape' && (
550
- <FaHeart
551
- size={sectionproperties.favBtnIconfontsize}
552
- style={{
553
- color: sectionproperties.activefaviconcolor,
554
- }}
555
- />
556
- )}
557
- </i>
558
- )}
559
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
560
- <i className="h-100 d-flex align-items-center justify-content-center">
561
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
562
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
563
- </i>
564
- )}
565
- </i>
566
- </div>
567
- )}
568
- </div>
569
- )}
570
- </div>
571
- );
572
- };
573
- // {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
574
- // ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
575
- // : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
576
- useEffect(() => {
577
- var totalprice = '';
578
- if (variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 0) {
579
- totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
580
- } else if (variantindexcompleted.length == 0 && fetchProductInfoQueryContext.data.data.productinfo.hassale == 1) {
581
- totalprice = parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2);
582
- } else if (variantindexcompleted.length != 0 && fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1) {
583
- totalprice = parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2);
584
- } else {
585
- totalprice = parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2);
586
- }
587
- settotalprice(totalprice);
588
- }, [variantindexcompleted]);
589
- return (
590
- <div
591
- className={sectionproperties.card_marginLeft != 0 ? ' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 p-sm-0 ' : ' row m-0 w-100 p-sm-0 '}
592
- style={{
593
- paddingLeft: srcfromprops == 'Productinfomodel' ? (langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px') : 0,
594
- paddingRight: srcfromprops == 'Productinfomodel' ? (langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px') : 0,
595
- }}
596
- >
597
- {/* {srcfromprops != 'templatedraftrouter' && ( */}
598
- <div class={' col-lg-12 p-0 '}>
599
- <div
600
- class={`${productinfo_cssstyles.cardcontainer}` + ' row ml-0 mr-0 w-100 pl-md-3 pr-md-3 px-1025-1 '}
601
- style={{
602
- minHeight: sectionproperties.height + 'vh',
603
- }}
604
- >
605
- {sectionproperties.gallerystyle == 'Style 2' && (
606
- <div class="w-100 scrollhorizontalwithscrollbar">
607
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.productimages?.length != 0 &&
608
- fetchProductInfoQueryContext?.data?.data?.productinfo?.productimages.map((item, index) => {
609
- return (
610
- <div
611
- class={' scrollhorizontalcard mx-2 '}
612
- style={{
613
- height: sectionproperties.image_height + 'px',
614
- width: sectionproperties.image_width + 'px',
615
- }}
616
- >
617
- <Imagekitimagecomp
618
- urlEndpoint={ikimagecredcontext?.ikimageendpoint}
619
- publicKey={ikimagecredcontext?.ikimagepublickey}
620
- path={'/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.path}
621
- style={{
622
- width: '100%',
623
- height: '100%',
624
- objectFit: 'contain',
625
- }}
626
- loading="lazy"
627
- />
628
- </div>
629
- );
630
- })}
631
- </div>
632
- )}
633
- <div class="col-lg-12 p-0">
634
- <div
635
- class="row mx-0 w-100"
636
- style={{
637
- marginTop: sectionproperties.gallerystyle == 'Style 2' ? '3rem' : 0,
638
- }}
639
- >
640
- <div
641
- className={
642
- sectionproperties.showfooterphonenumber == 'Hide' &&
643
- sectionproperties.showfooteremail == 'Hide' &&
644
- sectionproperties.showstoreinfo2 == 'Hide' &&
645
- sectionproperties.showstoreinfo1 == 'Hide'
646
- ? 'col-lg-12'
647
- : sectionproperties.storeinfoposition == 'Below Information'
648
- ? 'col-lg-12'
649
- : langdetect == 'en'
650
- ? 'col-lg-9 pl-0 mb-md-3 p-md-0'
651
- : 'col-lg-9 pr-0 mb-md-3 p-md-0'
652
- }
653
- >
654
- <div className={'row m-0 w-100'}>
655
- {sectionproperties.gallerystyle == 'Style 1' && <div className="col-xl-5 col-lg-4 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1">{GalleryStyle1Section()}</div>}
656
-
657
- <div
658
- className={
659
- sectionproperties.gallerystyle == 'Style 1'
660
- ? langdetect == 'en'
661
- ? 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-4 pr-0 p-md-0'
662
- : 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0'
663
- : 'col-xl-12 col-lg-12 col-md-12 col-sm-12 px-3 px-md-2'
664
- }
665
- >
666
- <div className="row m-0 w-100">
667
- <div
668
- className={
669
- fetchProductInfoQueryContext?.data?.data?.productinfo?.productcanrate == 1
670
- ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center'
671
- : sectionproperties.btnposition == 'Top'
672
- ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center'
673
- : sectionproperties.availabilitybtnposition == 'Top' && sectionproperties.show_availability == 'Show'
674
- ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center'
675
- : 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
676
- }
677
- >
678
- {ProductNameSection()}
679
- </div>
680
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.productcanrate == 1 && sectionproperties.showrating == 'Show' && (
681
- <div className="col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center">
682
- <ReactStars
683
- count={5}
684
- value={fetchProductInfoQueryContext?.data?.data?.productinfo?.productoverallrate}
685
- edit={false}
686
- size={18}
687
- emptyIcon={<i className="far fa-star" style={{ color: '#FAB400' }}></i>}
688
- halfIcon={<i className="fa fa-star-half-alt style={{ color: '#FAB400' }}"></i>}
689
- filledIcon={<i className="fa fa-star" style={{ color: '#FAB400' }}></i>}
690
- activeColor="#ffd700"
691
- />
692
- </div>
693
- )}
694
- <div className="col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center">
695
- {sectionproperties.availabilitybtnposition == 'Top' &&
696
- sectionproperties.show_availability == 'Show' &&
697
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
698
- <div
699
- style={{
700
- width: sectionproperties.availability_width + 'px',
701
- height: sectionproperties.availability_height + 'px',
702
- background:
703
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
704
- ? sectionproperties.availability_availablebgcolor
705
- : sectionproperties.availability_limitedbgcolor,
706
- borderRadius: sectionproperties.availability_borderrradius + 'px',
707
- border:
708
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
709
- ? sectionproperties.availability_borderwidtth + 'px solid ' + sectionproperties.availability_availabletextcolor
710
- : sectionproperties.availability_borderwidtth + 'px solid ' + sectionproperties.availability_limitedtextcolor,
711
- justifyContent: sectionproperties.availabilitytextalignment == 'Centered' ? 'center' : 'start',
712
- }}
713
- className="d-flex align-items-center pl-3 pr-3 mx-2"
714
- >
715
- <p
716
- className="m-0 p-0 font-weight-500 wordbreak"
717
- style={{
718
- color:
719
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
720
- ? sectionproperties.availability_availabletextcolor
721
- : sectionproperties.availability_limitedtextcolor,
722
- fontSize: sectionproperties.availability_fontsize + 'px',
723
- textAlign: sectionproperties.availabilitytextalignment == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
724
- }}
725
- >
726
- <span className="ml-1 mr-1">
727
- {fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? lang.available : lang.limitedquantity}
728
- </span>
729
- </p>
730
- </div>
731
- )}
732
- {sectionproperties.btnposition == 'Top' && sectionproperties.favBtnShow == 'Show' && (
733
- <div
734
- className={productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 '}
735
- onClick={() => {
736
- addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
737
- }}
738
- style={{
739
- background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : '',
740
- }}
741
- >
742
- <i className="h-100 d-flex align-items-center justify-content-center">
743
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
744
- <i className="h-100 d-flex align-items-center justify-content-center">
745
- {sectionproperties.faviconshape == 'Star Shape' && (
746
- <AiFillStar
747
- size={sectionproperties.favBtnIconfontsize}
748
- style={{
749
- color: sectionproperties.activefaviconcolor,
750
- }}
751
- />
752
- )}
753
- {sectionproperties.faviconshape == 'Heart Shape' && (
754
- <FaHeart
755
- size={sectionproperties.favBtnIconfontsize}
756
- style={{
757
- color: sectionproperties.activefaviconcolor,
758
- }}
759
- />
760
- )}
761
- </i>
762
- )}
763
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
764
- <i className="h-100 d-flex align-items-center justify-content-center">
765
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
766
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
767
- </i>
768
- )}
769
- </i>
770
- </div>
771
- )}
772
- </div>
773
- {sectionproperties.descriptionposition == 'Top' && (
774
- <div class="col-lg-12 p-0">
775
- <DescriptionContent actions={props.actions} srcfromprops={'undername'} />
776
- </div>
777
- )}
778
- {/* {srcfromprops == 'templatdraftrouter' && (
779
- <div className="col-lg-10 col-md-10 col-sm-10 p-0 mb-2 d-flex justify-content-start align-items-center">
780
- <p className={`${productinfo_cssstyles.productname}` + ' m-0 p-0 wordbreak d-flex justify-content-start '}>
781
- {langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar}
782
- </p>
783
- </div>
784
- )} */}
785
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.vendorinfo != null && sectionproperties.showvendor == 'Show' && (
786
- <div class="col-lg-12 p-0 d-flex justify-content-start mt-2 mb-2">
787
- <p class="m-0 p-0" style={{ color: '#000' }}>
788
- {langdetect == 'en' ? 'Seller' : 'البائع'}:{' '}
789
- <span
790
- style={{
791
- fontWeight: 600,
792
- }}
793
- >
794
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.vendorinfo?.vendorname}
795
- </span>
796
- </p>
797
- </div>
798
- )}
799
- <div class="col-lg-12 p-0">{SKUSection()}</div>
800
-
801
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.currentquantity < 1 &&
802
- sectionproperties.showoutofstock == 'Show' &&
803
- fetchProductInfoQueryContext?.data?.data?.productinfo?.quantavailtype == 'limit' &&
804
- fetchProductInfoQueryContext?.data?.data?.productinfo?.hasvariants == 0 && (
805
- <div class="col-lg-12 p-0 d-flex justify-content-start mb-2">
806
- <div class={`${productinfo_cssstyles.outstockbadge}` + ' allcentered '}>
807
- <p class="m-0 p-0">{langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar}</p>
808
- </div>
809
- </div>
810
- )}
811
- {sectionproperties.deliverytimeshow == 'Show' && fetchProductInfoQueryContext?.data?.data?.productinfo?.deliverydatetext != null && (
812
- <div
813
- class="mb-4 col-lg-12 allcentered"
814
- style={{
815
- width: '100%',
816
- backgroundColor: sectionproperties.deliverytimecontainerBg,
817
- paddingLeft: sectionproperties.deliverytimecontainerpaddinghorizontal + 'px',
818
- paddingRight: sectionproperties.deliverytimecontainerpaddinghorizontal + 'px',
819
- paddingTop: sectionproperties.deliverytimecontainerpaddingvertical + 'px',
820
- paddingBottom: sectionproperties.deliverytimecontainerpaddingvertical + 'px',
821
- border: sectionproperties.deliverytimecontainerborderwidth + 'px solid ' + sectionproperties.deliverytimecontainerbordercolor,
822
- borderRadius: sectionproperties.deliverytimecontainerborderradius + 'px',
823
- fontSize: sectionproperties.deliverytimecontainerfontsize + 'px',
824
- fontWeight: sectionproperties.deliverytimecontainerfontWeight,
825
- marginTop: 15,
826
- }}
827
- >
828
- <p
829
- class="m-0 p-0 "
830
- style={{
831
- textAlign: langdetect == 'en' ? 'left' : 'right',
832
- color: sectionproperties.deliverytimecontainercolor,
833
- }}
834
- >
835
- {sectionproperties.showdeliverytitle == 'Show' && (
836
- <span>{langdetect == 'en' ? sectionproperties.deliverycontent_en : sectionproperties.deliverycontent_ar}: </span>
837
- )}{' '}
838
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.deliverydatetext}
839
- </p>
840
- </div>
841
- )}
842
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && <ProductHeaderPricing actions={props.actions} />}
843
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.hasvariants == 1 && sectionproperties.productInformationType == 'Profile' && (
844
- <div className="row m-0 w-100 d-flex align-items-start">
845
- {ProductInfoObj?.data?.productinfo?.productoptions?.map((item, index) => {
846
- return (
847
- <div className="col-lg-12 p-0 d-flex justify-content-start" style={{ position: 'relative' }}>
848
- <div style={{ width: 2, height: '100%', background: sectionproperties.upperseparatorbgcolor, position: 'absolute', top: 7 }} />
849
- <div
850
- style={{
851
- width: 10,
852
- height: 10,
853
- background: sectionproperties.upperseparatorsecondarybgcolor,
854
- borderRadius: 100,
855
- position: 'absolute',
856
- top: 7,
857
- left: langdetect == 'en' ? -4 : '',
858
- right: langdetect == 'ar' ? -4 : '',
859
- }}
860
- />
861
- <div
862
- className="row m-0 w-100 d-flex align-items-start pb-3"
863
- style={{
864
- paddingLeft: langdetect == 'en' ? '1rem' : 0,
865
- paddingRight: langdetect == 'ar' ? '1rem' : 0,
866
- }}
867
- >
868
- <p
869
- className={' m-0 p-0 wordbreak'}
870
- style={{
871
- color: sectionproperties.varianttitle_color,
872
- fontWeight: sectionproperties.varianttitle_fontweight,
873
- textTransform: sectionproperties.varianttitle_texttransform,
874
- fontSize: sectionproperties.varianttitle_fontSize + 'px',
875
- }}
876
- >
877
- {langdetect == 'en' ? item.optionname : item.optionname_ar}:
878
- </p>
879
- {item.optionvalues.map((optionvaluesitem, optionvaluesindex) => {
880
- return (
881
- <div
882
- className={productinfostyles.variant_container + ' mr-2 variabttcontainer allcentered '}
883
- style={{
884
- backgroundColor:
885
- sectionproperties.variantcontainer_bgcolortransparent == 'Transparent'
886
- ? 'transparent'
887
- : sectionproperties.variantcontainer_bgcolor,
888
- minWidth:
889
- sectionproperties.variantcontainer_bgcolortransparent == 'Transparent'
890
- ? 'auto'
891
- : sectionproperties.variantcontainer_minwidth + 'px',
892
- height:
893
- sectionproperties.variantcontainer_bgcolortransparent == 'Transparent'
894
- ? 'auto'
895
- : sectionproperties.variantcontainer_height + 'px',
896
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
897
- transform: 'none',
898
- cursor: 'default',
899
- }}
900
- >
901
- <p
902
- className={'m-0 p-0 allcentered font-weight-500'}
903
- style={{
904
- color: sectionproperties.variantcontainer_color,
905
- fontSize: sectionproperties.variantcontainer_fontSize + 'px',
906
- }}
907
- >
908
- {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
909
- </p>
910
- </div>
911
- );
912
- })}
913
- </div>
914
- </div>
915
- );
916
- })}
917
- </div>
918
- )}
919
- <Variantoptions actions={props.actions} />
920
- {sectionproperties.showextrafield == 'Show' && <ProductExtraFields actions={props.actions} />}
921
- {sectionproperties.gallerystyle == 'Style 2' && sectionproperties.prodCatShow == 'Show' && <DescriptionContent actions={props.actions} />}
922
- {sectionproperties.quantitybtn_show == 'Show' && sectionproperties.cartBtnShow == 'Show' && (
923
- <div className="col-lg-12 p-0 mb-3">
924
- <hr className="mb-0 mt-2" />
925
- </div>
926
- )}
927
- <div
928
- className="col-lg-12 p-0 mb-3"
929
- style={{
930
- display: sectionproperties.quantitybtn_show == 'Hide' && sectionproperties.cartBtnShow == 'Hide' ? 'none' : 'flex',
931
- }}
932
- >
933
- <div className="row m-0 w-100 d-flex align-items-center">
934
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 &&
935
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducthasquantitychange == 1 && (
936
- <div className="col-lg-12 p-0 mb-2 d-flex justify-content-start">
937
- <p
938
- className="m-0 p-0"
939
- style={{
940
- color: sectionproperties.generaltext_fontColor,
941
- fontSize: sectionproperties.generaltext_fontSize + 'px',
942
- textTransform: sectionproperties.generaltext_textTransform,
943
- fontWeight: sectionproperties.generaltext_fontWeight,
944
- }}
945
- >
946
- {lang.quantity}:
947
- </p>
948
- </div>
949
- )}
950
- {Quantitybtn_Cartbtn_Favbottombtn()}
951
- {/* <div class="col-lg-12 p-0">
952
- <div
953
- class="row m-0 w-100 d-flex align-items-center"
954
- style={{
955
- justifyContent: sectionproperties.cartbtncentered == 'Centered' ? 'center' : 'start',
956
- }}
957
- >
958
- {sectionproperties.quantitybtn_show == 'Show' &&
959
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 &&
960
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducthasquantitychange == 1 && (
961
- <button
962
- className={` ${productinfo_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center mb-sm-2 '}
963
- style={{
964
- height: sectionproperties.quantitybtn_height + 'px',
965
- width: sectionproperties.quantitybtn_width + 'px',
966
- flexDirection: 'row',
967
- direction: 'ltr',
968
- }}
969
- >
970
- <span
971
- className={`${productinfo_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
972
- onClick={() => {
973
- var tempaddtocardpayloadobj = {
974
- ...addtocardpayloadobj,
975
- };
976
- if (tempaddtocardpayloadobj.quantity > 0) {
977
- tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
978
- }
979
- setaddtocardpayloadobj({
980
- ...tempaddtocardpayloadobj,
981
- });
982
- }}
983
- >
984
- <i
985
- className={sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-down' : 'h-100 allcentered'}
986
- style={{
987
- fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
988
- }}
989
- >
990
- {sectionproperties.quantityiconstyle == 'Plus/Minus' && (
991
- <FiMinus size={sectionproperties.remove_quantitybtn_textfontsize} />
992
- )}
993
- </i>
994
- </span>
995
- <span className={`${productinfo_cssstyles.quantitybtn_text}`}>{addtocardpayloadobj.quantity}</span>
996
- <span
997
- className={`${productinfo_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
998
- onClick={() => {
999
- var tempaddtocardpayloadobj = {
1000
- ...addtocardpayloadobj,
1001
- };
1002
- tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
1003
- setaddtocardpayloadobj({
1004
- ...tempaddtocardpayloadobj,
1005
- });
1006
- }}
1007
- >
1008
- <i
1009
- className={sectionproperties.quantityiconstyle == 'Arrows' ? 'fa fa-chevron-up' : 'h-100 allcentered'}
1010
- // className="fa fa-chevron-up"
1011
- style={{
1012
- fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
1013
- }}
1014
- >
1015
- {sectionproperties.quantityiconstyle == 'Plus/Minus' && (
1016
- <FiPlus size={sectionproperties.add_quantitybtn_textfontsize} />
1017
- )}
1018
- </i>
1019
- </span>
1020
- </button>
1021
- )}
1022
- {sectionproperties.cartbtnalone == 'Besides Other Buttons' &&
1023
- sectionproperties.cartBtnShow == 'Show' &&
1024
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
1025
- <button
1026
- className={`${productinfo_cssstyles.cart_btn} ` + ' ml-2 mr-2 d-flex align-items-center justify-content-center mb-sm-2 '}
1027
- onClick={() => {
1028
- if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
1029
- window.open('tel:' + fetchProductInfoQueryContext.data.data.productinfo?.product_phonenumber, '_blank');
1030
- } else {
1031
- if (
1032
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity &&
1033
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity
1034
- ) {
1035
- addtocartfunc();
1036
- } else {
1037
- NotificationManager.warning(
1038
- '',
1039
- lang.maximum +
1040
- ': ' +
1041
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant +
1042
- ', ' +
1043
- lang.minimum +
1044
- ': ' +
1045
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,
1046
- );
1047
- }
1048
- }
1049
- }}
1050
- disabled={AddtoCartMutationContext.isLoading == true ? true : false}
1051
- >
1052
- {!AddtoCartMutationContext.isLoading && (
1053
- <span className={' d-flex align-items-center justify-content-center '}>
1054
- <i
1055
- className={
1056
- langdetect == 'en'
1057
- ? 'h-100 d-flex align-items-center justify-content-center mr-2'
1058
- : 'h-100 d-flex align-items-center justify-content-center ml-2'
1059
- }
1060
- >
1061
- {sectionproperties.carticonstyle == 'Shopping bag 1' && (
1062
- <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />
1063
- )}
1064
- {sectionproperties.carticonstyle == 'Shopping bag 2' && (
1065
- <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />
1066
- )}
1067
- {sectionproperties.carticonstyle == 'Shopping bag 3' && (
1068
- <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />
1069
- )}
1070
- {sectionproperties.carticonstyle == 'Shopping bag 4' && (
1071
- <IoBagHandleOutline className="" size={sectionproperties.cartBtn_iconFontSize} />
1072
- )}
1073
- {sectionproperties.carticonstyle == 'Shopping cart 1' && (
1074
- <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />
1075
- )}
1076
- {sectionproperties.carticonstyle == 'Shopping cart 2' && (
1077
- <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />
1078
- )}
1079
- </i>
1080
-
1081
- {langdetect == 'en'
1082
- ? fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_en
1083
- : fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_ar}
1084
- </span>
1085
- )}
1086
- {AddtoCartMutationContext.isLoading && (
1087
- <div className={' d-flex align-items-center justify-content-center '}>
1088
- <CircularProgress color="white" width="20px" height="20px" duration="1s" />
1089
- </div>
1090
- )}
1091
- </button>
1092
- )}
1093
- {sectionproperties.btnposition == 'Bottom' && sectionproperties.favBtnShow == 'Show' && (
1094
- <div
1095
- className={productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 '}
1096
- onClick={() => {
1097
- addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
1098
- }}
1099
- style={{
1100
- background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : '',
1101
- }}
1102
- >
1103
- <i className="h-100 d-flex align-items-center justify-content-center">
1104
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
1105
- <i className="h-100 d-flex align-items-center justify-content-center">
1106
- {sectionproperties.faviconshape == 'Star Shape' && (
1107
- <AiFillStar
1108
- size={sectionproperties.favBtnIconfontsize}
1109
- style={{
1110
- color: sectionproperties.activefaviconcolor,
1111
- }}
1112
- />
1113
- )}
1114
- {sectionproperties.faviconshape == 'Heart Shape' && (
1115
- <FaHeart
1116
- size={sectionproperties.favBtnIconfontsize}
1117
- style={{
1118
- color: sectionproperties.activefaviconcolor,
1119
- }}
1120
- />
1121
- )}
1122
- </i>
1123
- )}
1124
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
1125
- <i className="h-100 d-flex align-items-center justify-content-center">
1126
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
1127
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
1128
- </i>
1129
- )}
1130
- </i>
1131
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && (
1132
- <p
1133
- class="m-0 p-0"
1134
- style={{
1135
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
1136
- }}
1137
- >
1138
- {langdetect == 'en' ? sectionproperties.favbtncontent_en : sectionproperties.favbtncontent_ar}
1139
- </p>
1140
- )}
1141
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && sectionproperties.favBtnTextfontsize != 0 && (
1142
- <p
1143
- class="m-0 p-0"
1144
- style={{
1145
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
1146
- }}
1147
- >
1148
- {langdetect == 'en' ? sectionproperties.favbtnaddedcontent_en : sectionproperties.favbtnaddedcontent_ar}
1149
- </p>
1150
- )}
1151
- </div>
1152
- )}
1153
- </div>
1154
- {sectionproperties.cartbtnalone == 'Alone' &&
1155
- sectionproperties.cartBtnShow == 'Show' &&
1156
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
1157
- <div class="row m-0 w-100 mt-3" style={{ overflow: 'hidden' }}>
1158
- <button
1159
- className={`${productinfo_cssstyles.cart_btn} ` + ' d-flex align-items-center justify-content-center mb-sm-2 '}
1160
- style={{
1161
- width: sectionproperties.cartBtnWidth + '%',
1162
- }}
1163
- onClick={() => {
1164
- if (fetchProductInfoQueryContext.data.data.productinfo.product_calltoaction == 'Call') {
1165
- window.open('tel:' + fetchProductInfoQueryContext.data.data.productinfo?.product_phonenumber, '_blank');
1166
- } else {
1167
- if (
1168
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= addtocardpayloadobj.quantity &&
1169
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= addtocardpayloadobj.quantity
1170
- ) {
1171
- addtocartfunc();
1172
- } else {
1173
- NotificationManager.warning(
1174
- '',
1175
- lang.maximum +
1176
- ': ' +
1177
- fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant +
1178
- ', ' +
1179
- lang.minimum +
1180
- ': ' +
1181
- fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,
1182
- );
1183
- }
1184
- }
1185
- }}
1186
- disabled={AddtoCartMutationContext.isLoading == true ? true : false}
1187
- >
1188
- {!AddtoCartMutationContext.isLoading && (
1189
- <span className={' d-flex align-items-center justify-content-center '}>
1190
- <i
1191
- className={
1192
- langdetect == 'en'
1193
- ? 'h-100 d-flex align-items-center justify-content-center mr-2'
1194
- : 'h-100 d-flex align-items-center justify-content-center ml-2'
1195
- }
1196
- >
1197
- {sectionproperties.carticonstyle == 'Shopping bag 1' && (
1198
- <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />
1199
- )}
1200
- {sectionproperties.carticonstyle == 'Shopping bag 2' && (
1201
- <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />
1202
- )}
1203
- {sectionproperties.carticonstyle == 'Shopping bag 3' && (
1204
- <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />
1205
- )}
1206
- {sectionproperties.carticonstyle == 'Shopping bag 4' && (
1207
- <IoBagHandleOutline className="" size={sectionproperties.cartBtn_iconFontSize} />
1208
- )}
1209
- {sectionproperties.carticonstyle == 'Shopping cart 1' && (
1210
- <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />
1211
- )}
1212
- {sectionproperties.carticonstyle == 'Shopping cart 2' && (
1213
- <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />
1214
- )}
1215
- </i>
1216
-
1217
- {langdetect == 'en'
1218
- ? fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_en
1219
- : fetchProductInfoQueryContext?.data?.data?.productinfo?.productactionbuttontext_ar}
1220
- </span>
1221
- )}
1222
- {AddtoCartMutationContext.isLoading && (
1223
- <div className={' d-flex align-items-center justify-content-center '}>
1224
- <CircularProgress color="white" width="20px" height="20px" duration="1s" />
1225
- </div>
1226
- )}
1227
- </button>
1228
- {sectionproperties.btnposition == 'Besides Cart Button' && sectionproperties.favBtnShow == 'Show' && (
1229
- <div
1230
- className={productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center mb-sm-2 mx-3 '}
1231
- onClick={() => {
1232
- addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
1233
- }}
1234
- style={{
1235
- background:
1236
- fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : '',
1237
- }}
1238
- >
1239
- <i className="h-100 d-flex align-items-center justify-content-center">
1240
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
1241
- <i className="h-100 d-flex align-items-center justify-content-center">
1242
- {sectionproperties.faviconshape == 'Star Shape' && (
1243
- <AiFillStar
1244
- size={sectionproperties.favBtnIconfontsize}
1245
- style={{
1246
- color: sectionproperties.activefaviconcolor,
1247
- }}
1248
- />
1249
- )}
1250
- {sectionproperties.faviconshape == 'Heart Shape' && (
1251
- <FaHeart
1252
- size={sectionproperties.favBtnIconfontsize}
1253
- style={{
1254
- color: sectionproperties.activefaviconcolor,
1255
- }}
1256
- />
1257
- )}
1258
- </i>
1259
- )}
1260
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
1261
- <i className="h-100 d-flex align-items-center justify-content-center">
1262
- {sectionproperties.faviconshape == 'Star Shape' && (
1263
- <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />
1264
- )}
1265
- {sectionproperties.faviconshape == 'Heart Shape' && (
1266
- <FaRegHeart size={sectionproperties.favBtnIconfontsize} />
1267
- )}
1268
- </i>
1269
- )}
1270
- </i>
1271
- </div>
1272
- )}
1273
- </div>
1274
- )}
1275
- </div> */}
1276
- </div>
1277
- </div>
1278
- {sectionproperties.productInformationType == 'Product/Service Information' &&
1279
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 &&
1280
- sectionproperties.showtotalsection == 'Show' && (
1281
- <div className="col-lg-12 p-0 mb-3">
1282
- <div className="row m-0 w-100 d-flex flex-row">
1283
- <p
1284
- className="m-0 p-0"
1285
- style={{
1286
- color: sectionproperties.total_color,
1287
- fontSize: sectionproperties.total_fontsize + 'px',
1288
- fontWeight: sectionproperties.total_fontweight,
1289
- textTransform: sectionproperties.total_texttransform,
1290
- }}
1291
- >
1292
- {lang.total}:
1293
- </p>
1294
- <div className="col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1">
1295
- <p
1296
- className={'m-0 p-0 wordbreak d-flex align-items-center justify-content-end'}
1297
- style={{
1298
- fontSize: sectionproperties.prodpriceFontSize + 'px',
1299
- fontWeight: sectionproperties.prodPriceFontWeight,
1300
- color: sectionproperties.prodPriceColor,
1301
- }}
1302
- >
1303
- {/* here */}
1304
- <span
1305
- className={
1306
- langdetect == 'en'
1307
- ? ' d-flex align-items-center justify-content-end wordbreak text-right '
1308
- : ' d-flex align-items-center justify-content-end wordbreak text-left '
1309
- }
1310
- >
1311
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1312
- {variantindexcompleted != undefined &&
1313
- variantindexcompleted.length == 0 &&
1314
- fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 &&
1315
- parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)}
1316
- {variantindexcompleted != undefined &&
1317
- variantindexcompleted.length == 0 &&
1318
- fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 &&
1319
- parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
1320
- {variantindexcompleted != undefined &&
1321
- variantindexcompleted.length != 0 &&
1322
- fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1 &&
1323
- parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)}
1324
- {variantindexcompleted != undefined &&
1325
- variantindexcompleted.length != 0 &&
1326
- fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 0 &&
1327
- parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)}
1328
- {/* {totalprice} */}
1329
- {/* {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0
1330
- ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2)
1331
- : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)} */}
1332
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1333
- </span>
1334
- </p>
1335
- <p
1336
- className={'m-0 p-0 linethrough wordbreak'}
1337
- style={{
1338
- color: sectionproperties.prodsalePriceColor,
1339
- fontSize: sectionproperties.prodsalepriceFontSize + 'px',
1340
- fontWeight: sectionproperties.prodsalePriceFontWeight,
1341
- }}
1342
- >
1343
- {fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 &&
1344
- variantindexcompleted != undefined &&
1345
- variantindexcompleted.length == 0 && (
1346
- <span
1347
- className={
1348
- langdetect == 'en'
1349
- ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
1350
- : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
1351
- }
1352
- >
1353
- <span className="ml-2 mr-2" style={{ textDecoration: 'none' }}>
1354
- -
1355
- </span>
1356
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1357
- {parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted))}{' '}
1358
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1359
- </span>
1360
- )}
1361
- {variantindexcompleted != undefined &&
1362
- variantindexcompleted.length != 0 &&
1363
- fetchProductInfoQueryContext?.data?.data?.productinfo?.variants[variantindexcompleted]?.hassale == 1 && (
1364
- <span
1365
- className={
1366
- langdetect == 'en'
1367
- ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
1368
- : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
1369
- }
1370
- >
1371
- <span className="ml-2 mr-2" style={{ textDecoration: 'none' }}>
1372
- -
1373
- </span>
1374
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
1375
- {parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted))}{' '}
1376
- {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
1377
- </span>
1378
- )}
1379
- </p>
1380
- </div>
1381
- </div>
1382
- </div>
1383
- )}
1384
- {sectionproperties.availabilitybtnposition == 'Bottom' &&
1385
- sectionproperties.show_availability == 'Show' &&
1386
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
1387
- <div className="col-lg-12 p-0 mb-3 mt-2">
1388
- <div
1389
- style={{
1390
- width: sectionproperties.availability_width + 'px',
1391
- height: sectionproperties.availability_height + 'px',
1392
- background:
1393
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
1394
- ? sectionproperties.availability_availablebgcolor
1395
- : sectionproperties.availability_limitedbgcolor,
1396
- borderRadius: sectionproperties.availability_borderrradius + 'px',
1397
- border:
1398
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
1399
- ? sectionproperties.availability_borderwidtth + 'px solid ' + sectionproperties.availability_availabletextcolor
1400
- : sectionproperties.availability_borderwidtth + 'px solid ' + sectionproperties.availability_limitedtextcolor,
1401
- justifyContent: sectionproperties.availabilitytextalignment == 'Centered' ? 'center' : 'start',
1402
- }}
1403
- className="d-flex align-items-center pl-3 pr-3"
1404
- >
1405
- <p
1406
- className="m-0 p-0 font-weight-500 wordbreak"
1407
- style={{
1408
- color:
1409
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
1410
- ? sectionproperties.availability_availabletextcolor
1411
- : sectionproperties.availability_limitedtextcolor,
1412
- fontSize: sectionproperties.availability_fontsize + 'px',
1413
- textAlign: sectionproperties.availabilitytextalignment == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
1414
- }}
1415
- >
1416
- <span
1417
- style={{
1418
- color: sectionproperties.availability_textcolor,
1419
- }}
1420
- className="font-weight-600"
1421
- >
1422
- {lang.availability}:
1423
- </span>
1424
- <span className="ml-1 mr-1">
1425
- {fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? lang.available : lang.limitedquantity}
1426
- </span>
1427
- </p>
1428
- </div>
1429
- </div>
1430
- )}
1431
- {sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 1' && (
1432
- <div class="col-lg-12 p-0">
1433
- <hr
1434
- class="mb-3 mt-3"
1435
- style={{
1436
- borderColor: '#eee',
1437
- }}
1438
- />
1439
- </div>
1440
- )}
1441
- {sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 1' && (
1442
- <div class="col-lg-12 mt-2 p-0">{ShareButtonsContainer()}</div>
1443
- )}
1444
-
1445
- {sectionproperties.storeinfoposition == 'Below Information' && (
1446
- <div className={productinfo_cssstyles.storeinfocontainer + ' col-lg-12 p-0 '} style={{}}>
1447
- <div
1448
- class="row m-0 w-100"
1449
- style={{
1450
- paddingLeft: langdetect == 'en' ? '.5em' : 0,
1451
- paddingRight: langdetect == 'ar' ? '.5rem' : 0,
1452
- }}
1453
- >
1454
- {StoreInfoprops()}
1455
- {sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && (
1456
- <div class={productinfo_cssstyles.storeinfocontainer + ' col-lg-12 p-0 '} style={{}}>
1457
- <hr class="my-3" />
1458
- </div>
1459
- )}
1460
- {sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && (
1461
- <div class="col-lg-12 p-0 allcentered mt-2">{ShareButtonsContainer()}</div>
1462
- )}
1463
- </div>
1464
- </div>
1465
- )}
1466
- </div>
1467
- </div>
1468
- </div>
1469
- </div>
1470
- {sectionproperties.storeinfoposition == 'On The Right' && (
1471
- <div
1472
- className={langdetect == 'en' ? 'col-lg-3 pr-0 border-md-none p-md-0 pt-4 pl-md-0 pr-md-0' : 'col-lg-3 pl-0 border-md-none md-0 pt-4 pl-md-0 pr-md-0'}
1473
- style={{
1474
- borderLeft: langdetect == 'en' ? '1px solid #eee' : 0,
1475
- borderRight: langdetect == 'ar' ? '1px solid #eee' : 0,
1476
- display:
1477
- sectionproperties.showfooterphonenumber == 'Hide' &&
1478
- sectionproperties.showfooteremail == 'Hide' &&
1479
- sectionproperties.showstoreinfo2 == 'Hide' &&
1480
- sectionproperties.showstoreinfo1 == 'Hide'
1481
- ? 'none'
1482
- : 'block',
1483
- }}
1484
- >
1485
- <div
1486
- class="row m-0 w-100"
1487
- style={{
1488
- paddingLeft: langdetect == 'en' ? '.5em' : 0,
1489
- paddingRight: langdetect == 'ar' ? '.5rem' : 0,
1490
- }}
1491
- >
1492
- {StoreInfoprops()}
1493
- {sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && (
1494
- <div class="col-lg-12 p-0">
1495
- <hr class="my-3" />
1496
- </div>
1497
- )}
1498
- {sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && (
1499
- <div class="col-lg-12 p-0 allcentered mt-2">{ShareButtonsContainer()}</div>
1500
- )}
1501
- </div>
1502
- </div>
1503
- )}
1504
- </div>
1505
- </div>
1506
- </div>
1507
- </div>
1508
- {/* )} */}
1509
-
1510
- {/* {srcfromprops == 'templatedraftrouter' && (
1511
- <div class="row m-0 w-100">
1512
- <div className="col-xl-6 col-lg-6 col-md-12 col-sm-12 mb-md-3 pb-md-4 pl-1 pr-1">{GalleryStyle1Section()}</div>
1513
- <div class="col-lg-6">
1514
- <div class="row m-0 w-100">
1515
- <div class="col-lg-12 p-0 d-flex align-items-center justify-content-start">{ProductNameSection()}</div>
1516
- <div class="col-lg-12 p-0 d-flex align-items-center justify-content-start my-2">{SKUSection()}</div>
1517
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 && (
1518
- <div class="col-lg-12 p-0 d-flex align-items-center justify-content-start mt-2">
1519
- <ProductHeaderPricing actions={props.actions} />
1520
- </div>
1521
- )}
1522
- <div class="col-lg-12 p-0 d-flex align-items-center justify-content-start my-2">
1523
- <Variantoptions actions={props.actions} />
1524
- </div>
1525
- <div class="col-lg-12 p-0 d-flex align-items-center justify-content-start my-2">
1526
- <div className="row m-0 w-100 d-flex align-items-center justify-content-start">
1527
- {fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducttobesold == 1 &&
1528
- fetchProductInfoQueryContext?.data?.data?.productinfo?.isproducthasquantitychange == 1 && (
1529
- <div className="col-lg-12 p-0 mb-2 d-flex justify-content-start">
1530
- <p
1531
- className="m-0 p-0"
1532
- style={{
1533
- color: sectionproperties.generaltext_fontColor,
1534
- fontSize: sectionproperties.generaltext_fontSize + 'px',
1535
- textTransform: sectionproperties.generaltext_textTransform,
1536
- fontWeight: sectionproperties.generaltext_fontWeight,
1537
- }}
1538
- >
1539
- {lang.quantity}:
1540
- </p>
1541
- </div>
1542
- )}
1543
- {Quantitybtn_Cartbtn_Favbottombtn()}
1544
- </div>
1545
- </div>
1546
- </div>
1547
- </div>
1548
- </div>
1549
- )} */}
1550
- {/* <div class="col-lg-12 p-0">{relatedproducts()}</div> */}
1551
- </div>
1552
- );
1553
- };
1554
- export default Product_itemtype;