tabexseriescomponents 0.0.73 → 0.0.74

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 (211) hide show
  1. package/dist/index.cjs.js +337 -225
  2. package/dist/index.esm.js +343 -231
  3. package/dist/index.umd.js +340 -229
  4. package/package.json +1 -1
  5. package/src-aya/Contexts/LanguageContext.jsx +0 -369
  6. package/src-aya/Contexts/ProductsCardsSectionContext.jsx +0 -28
  7. package/src-aya/StylesJS/Customstyles.js +0 -235
  8. package/src-aya/TabexComponents/Cards/Card20/Card20.jsx +0 -288
  9. package/src-aya/TabexComponents/Cards/Card21/Card21.jsx +0 -386
  10. package/src-aya/TabexComponents/Cards/Card22/Card22.jsx +0 -289
  11. package/src-aya/TabexComponents/Cards/Card23/Card23.jsx +0 -355
  12. package/src-aya/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -393
  13. package/src-aya/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -168
  14. package/src-aya/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -243
  15. package/src-aya/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -202
  16. package/src-aya/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -174
  17. package/src-aya/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -182
  18. package/src-aya/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -158
  19. package/src-aya/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -189
  20. package/src-aya/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -150
  21. package/src-aya/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -271
  22. package/src-aya/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -538
  23. package/src-aya/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -491
  24. package/src-aya/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -469
  25. package/src-aya/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
  26. package/src-aya/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -272
  27. package/src-aya/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -295
  28. package/src-aya/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -289
  29. package/src-aya/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
  30. package/src-aya/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -288
  31. package/src-aya/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -328
  32. package/src-aya/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -509
  33. package/src-aya/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -272
  34. package/src-aya/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
  35. package/src-aya/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -133
  36. package/src-aya/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -125
  37. package/src-aya/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -292
  38. package/src-aya/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -336
  39. package/src-aya/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -429
  40. package/src-aya/TabexComponents/Footer/Footer1/Footer1.jsx +0 -416
  41. package/src-aya/TabexComponents/Footer/Footer2/Footer2.jsx +0 -381
  42. package/src-aya/TabexComponents/Footer/Footer3/Footer3.jsx +0 -302
  43. package/src-aya/TabexComponents/Footer/Footer4/Footer4.jsx +0 -437
  44. package/src-aya/TabexComponents/Footer/Footer5/Footer5.jsx +0 -488
  45. package/src-aya/TabexComponents/Footer/Footer6/Footer6.jsx +0 -286
  46. package/src-aya/TabexComponents/Footer/Footer7/Footer7.jsx +0 -370
  47. package/src-aya/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -231
  48. package/src-aya/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  49. package/src-aya/TabexComponents/Generalfiles/images/noimage.png +0 -0
  50. package/src-aya/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  51. package/src-aya/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  52. package/src-aya/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  53. package/src-aya/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  54. package/src-aya/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  55. package/src-aya/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  56. package/src-aya/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  57. package/src-aya/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  58. package/src-aya/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  59. package/src-aya/TabexComponents/Generalfiles/images/usflag.png +0 -0
  60. package/src-aya/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  61. package/src-aya/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -822
  62. package/src-aya/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -841
  63. package/src-aya/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -677
  64. package/src-aya/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -707
  65. package/src-aya/TabexComponents/Headers/Header4/Header4.jsx +0 -614
  66. package/src-aya/TabexComponents/Headers/Header6/Header6.jsx +0 -631
  67. package/src-aya/TabexComponents/Headers/Header8/Header8.jsx +0 -815
  68. package/src-aya/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -709
  69. package/src-aya/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -770
  70. package/src-aya/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -669
  71. package/src-aya/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -919
  72. package/src-aya/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -687
  73. package/src-aya/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -813
  74. package/src-aya/TabexComponents/Headers/Subheader/Subheader.jsx +0 -248
  75. package/src-aya/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -926
  76. package/src-aya/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -168
  77. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -346
  78. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -304
  79. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
  80. package/src-aya/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -271
  81. package/src-aya/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -130
  82. package/src-aya/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -200
  83. package/src-aya/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -153
  84. package/src-aya/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
  85. package/src-aya/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -409
  86. package/src-aya/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -768
  87. package/src-aya/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -483
  88. package/src-aya/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.jsx +0 -663
  89. package/src-aya/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
  90. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Arrows.js +0 -94
  91. package/src-aya/TabexComponents/Sections/Cards/Cardsection10/Cardsection10.js +0 -741
  92. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/Cardsection10.js +0 -430
  93. package/src-aya/TabexComponents/Sections/Cards/Cardsection100/burger.jpg +0 -0
  94. package/src-aya/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -473
  95. package/src-aya/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -523
  96. package/src-aya/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -502
  97. package/src-aya/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -276
  98. package/src-aya/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -160
  99. package/src-aya/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -176
  100. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -139
  101. package/src-aya/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -140
  102. package/src-aya/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -201
  103. package/src-aya/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -125
  104. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
  105. package/src-aya/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
  106. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -139
  107. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -215
  108. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -202
  109. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +0 -91
  110. package/src-aya/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -277
  111. package/src-aya/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -260
  112. package/src-aya/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -458
  113. package/src-aya/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -216
  114. package/src-aya/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
  115. package/src-aya/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
  116. package/src-aya/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
  117. package/src-aya/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
  118. package/src-aya/TabexComponents/StaticPages/Login/Login.jsx +0 -283
  119. package/src-aya/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
  120. package/src-aya/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1271
  121. package/src-aya/TabexComponents/StaticPages/Policies/Policies.jsx +0 -353
  122. package/src-aya/TabexComponents/StaticPages/Productinfo/Iteminfo.js +0 -1287
  123. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.js +0 -710
  124. package/src-aya/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1457
  125. package/src-aya/TabexComponents/StaticPages/Productinfo/Serviceinfo.js +0 -804
  126. package/src-aya/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -206
  127. package/src-aya/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -791
  128. package/src-aya/TabexComponents/StaticPages/Signup/Signup.jsx +0 -155
  129. package/src-aya/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -279
  130. package/src-aya/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -1048
  131. package/src-aya/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -606
  132. package/src-aya/assets/images/appstore.png +0 -0
  133. package/src-aya/assets/images/cod.png +0 -0
  134. package/src-aya/assets/images/egyptflag.png +0 -0
  135. package/src-aya/assets/images/fawry.png +0 -0
  136. package/src-aya/assets/images/googleplay.png +0 -0
  137. package/src-aya/assets/images/payment.png +0 -0
  138. package/src-aya/assets/images/paymob.png +0 -0
  139. package/src-aya/assets/images/paypal.png +0 -0
  140. package/src-aya/assets/images/shoppingcart.png +0 -0
  141. package/src-aya/assets/images/usflag.png +0 -0
  142. package/src-aya/assets/images/visa.png +0 -0
  143. package/src-aya/assets/images/whatsapp.png +0 -0
  144. package/src-aya/button.jsx +0 -40
  145. package/src-aya/index.jsx +0 -222
  146. package/src-aya/styles/Home.module.css +0 -129
  147. package/src-aya/styles/cards/Categorcycard_fullimage.module.css +0 -10
  148. package/src-aya/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
  149. package/src-aya/styles/cards/Categorycard_withshapes.module.css +0 -189
  150. package/src-aya/styles/cards/ModernCardWithQuantityButton.module.css +0 -34
  151. package/src-aya/styles/cards/Productcard6.module.css +0 -9
  152. package/src-aya/styles/cards/Productcard_with_circularbg.module.css +0 -137
  153. package/src-aya/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
  154. package/src-aya/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
  155. package/src-aya/styles/cards/categorycard.module.css +0 -85
  156. package/src-aya/styles/cards/categorycard3.module.css +0 -50
  157. package/src-aya/styles/cards/categorycardwithtext.module.css +0 -40
  158. package/src-aya/styles/cards/productcard_animatedbuttons.module.css +0 -127
  159. package/src-aya/styles/cards/productcard_with_textonhover.module.css +0 -12
  160. package/src-aya/styles/cards/productccard_with_imageontopleft.module.css +0 -85
  161. package/src-aya/styles/general/bootstrap.css +0 -4562
  162. package/src-aya/styles/general/dropdown.css +0 -206
  163. package/src-aya/styles/general/editorbardropdown.module.css +0 -94
  164. package/src-aya/styles/general/filter.module.css +0 -108
  165. package/src-aya/styles/general/form.module.css +0 -273
  166. package/src-aya/styles/general/general.module.css +0 -861
  167. package/src-aya/styles/general/image-gallery.css +0 -481
  168. package/src-aya/styles/general/react-accessible-accordion.module.css +0 -52
  169. package/src-aya/styles/general/react-phone-input-2.module.css +0 -927
  170. package/src-aya/styles/general/scrollbtn.module.css +0 -22
  171. package/src-aya/styles/general/slick.module.css +0 -166
  172. package/src-aya/styles/general/tabs.module.css +0 -110
  173. package/src-aya/styles/general/workplaceeditor.module.css +0 -328
  174. package/src-aya/styles/globals.css +0 -26
  175. package/src-aya/styles/headers/CTAHeader.module.css +0 -40
  176. package/src-aya/styles/headers/CategoryFeaturingHeader.module.css +0 -61
  177. package/src-aya/styles/headers/Gotoheader.module.css +0 -91
  178. package/src-aya/styles/headers/Header7.module.css +0 -50
  179. package/src-aya/styles/headers/Header_threesectionslogocentered.module.css +0 -96
  180. package/src-aya/styles/headers/Sideheader.module.css +0 -108
  181. package/src-aya/styles/headers/classicheader.module.css +0 -16
  182. package/src-aya/styles/headers/classicheaderstyles.module.css +0 -16
  183. package/src-aya/styles/headers/dropdown.css +0 -0
  184. package/src-aya/styles/headers/header4.module.css +0 -175
  185. package/src-aya/styles/headers/header5.module.css +0 -30
  186. package/src-aya/styles/headers/header6.module.css +0 -102
  187. package/src-aya/styles/headers/header_contactinfo.module.css +0 -66
  188. package/src-aya/styles/headers/headerresturant.module.css +0 -89
  189. package/src-aya/styles/headers/modernheader.module.css +0 -72
  190. package/src-aya/styles/headers/stylishheader.module.css +0 -24
  191. package/src-aya/styles/headers/subheader.module.css +0 -114
  192. package/src-aya/styles/headers/threetieredheader.module.css +0 -91
  193. package/src-aya/styles/sections/BackgroundImageWithTopContent.css +0 -4
  194. package/src-aya/styles/sections/Backgroundimage1.module.css +0 -17
  195. package/src-aya/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
  196. package/src-aya/styles/sections/Section_with_rightbgcont.module.css +0 -49
  197. package/src-aya/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
  198. package/src-aya/styles/sections/Slideshow_with_squarebg.module.css +0 -39
  199. package/src-aya/styles/staticpages/accordion.module.css +0 -9
  200. package/src-aya/styles/staticpages/cart.module.css +0 -108
  201. package/src-aya/styles/staticpages/dropdown.css +0 -196
  202. package/src-aya/styles/staticpages/filter.module.css +0 -139
  203. package/src-aya/styles/staticpages/image-gallery.css +0 -481
  204. package/src-aya/styles/staticpages/login.module.css +0 -113
  205. package/src-aya/styles/staticpages/productinfo.module.css +0 -54
  206. package/src-aya/styles/staticpages/shop.module.css +0 -191
  207. package/src-aya/styles/staticpages/signup.module.css +0 -206
  208. package/src-aya/styles/staticpages/staticroutersidenav.module.css +0 -129
  209. package/src-aya/styles/staticpages/viewcart.module.css +0 -129
  210. package/src-aya/styles/staticpages/wishlist.module.css +0 -29
  211. package/src-aya/styles.rar +0 -0
@@ -1,1287 +0,0 @@
1
- import React, { useEffect, useState, useContext } from 'react';
2
- import generalstyles from '../../Generalfiles/CSS_GENERAL/general.module.css';
3
- import productinfostyles from './productinfo.module.css';
4
- import { serverbaselink, instapikey } from '../../../Env_Variables';
5
- import Pagepreloader from '../Pagepreloader/Pagepreloader';
6
- import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
7
- import { LeftArrow, RightArrow, onWheel } from '../../Sections/Cards/CardsSection/Arrows';
8
- import { LanguageContext } from '../../../LanguageContext';
9
- import { FetchingContext } from '../../../FetchingContext';
10
- import { FetchRelatedProducts_API } from '../../../API/API';
11
- import { useMutation, useQuery, useQueryClient } from 'react-query';
12
- import { NotificationManager } from 'react-notifications';
13
- import ImageGallery from 'react-image-gallery';
14
- import '../../Generalfiles/CSS_GENERAL/image-gallery.css';
15
- import { WebsiteDesignWorkPlaceContext } from '../../../../WebsiteDesignWorkPlaceContext';
16
- import { ProductsCardsSectionContext_Provider } from '../../Sections/Cards/ProductsCardsSectionContext';
17
- import { MdOutlineShoppingCart } from 'react-icons/md';
18
- import CircularProgress from 'react-cssfx-loading/lib/CircularProgress';
19
- import { css } from 'glamor';
20
- import ShowMoreText from 'react-show-more-text';
21
- import { Page_Template_Fetch_API } from '../../../../../API/WebsiteDesign_API';
22
- import { useParams } from 'react-router';
23
- import { TemplateRoutingContext } from '../../../TemplateRoutingContext';
24
- import { IKImage } from 'imagekitio-react';
25
- import { FaShippingFast } from 'react-icons/fa';
26
- import { FiMapPin } from 'react-icons/fi';
27
- import { MdOutlinePolicy, MdOutlineLocalShipping } from 'react-icons/md';
28
- import { HiOutlinePhone } from 'react-icons/hi';
29
- import { RiSecurePaymentLine } from 'react-icons/ri';
30
- import { AiFillStar, AiOutlineStar } from 'react-icons/ai';
31
- import { FiShoppingBag, FiShoppingCart } from 'react-icons/fi';
32
- import { FaRegHeart, FaHeart } from 'react-icons/fa';
33
- import { CgShoppingBag } from 'react-icons/cg';
34
- import { BsBag } from 'react-icons/bs';
35
- import { IoBagHandleOutline } from 'react-icons/io5';
36
-
37
- // import "react-image-gallery/styles/css/image-gallery.css";
38
-
39
- const Iteminfo = (props) => {
40
- const queryClient = useQueryClient();
41
- const { productidparam } = useParams();
42
- const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
43
- const { lang, langdetect } = useContext(LanguageContext);
44
- const {
45
- fetch_inst_tabex_websitetemplatesQueryContext,
46
- setpageindexcontext,
47
- ProjectOpenrcTypeContext,
48
- TemplateIdContext,
49
- INSTAPIKEYCONTEXT,
50
- // PageTemplateFetcherQueryContext,
51
- // CurrentPageIdContext,
52
- setCurrentPageIdContext,
53
- pageindexcontext,
54
- StatePagePropertiesContext,
55
- TabexSectionsComponentsContext,
56
- } = useContext(WebsiteDesignWorkPlaceContext);
57
- const {
58
- FetchQueriesEngineContext,
59
- setFetchQueriesEngineContext,
60
- fetchProductInfoQueryContext,
61
- fetchproductinfoObjContext,
62
- setfetchproductinfoObjContext,
63
- AddtoCartMutationContext,
64
- ProductIdProdutInfoModalContext,
65
- AddtoCartContext,
66
- fetchAuthorizationQueryContext,
67
- addtofavoritescontext,
68
- } = useContext(FetchingContext);
69
- const [sectionproperties, setsectionproperties] = useState('');
70
- const [CurrentPageId, setCurrentPageId] = useState('');
71
- const [RelatedProductsTagid, setRelatedProductsTagid] = useState('');
72
- const { collectionidparams } = useParams();
73
- useEffect(() => {
74
- if (Object.keys(StatePagePropertiesContext).length != 0) {
75
- var secpropobj = {};
76
- StatePagePropertiesContext.pageobj != undefined &&
77
- StatePagePropertiesContext.pageobj.pageproperties != undefined &&
78
- StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
79
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
80
- });
81
-
82
- setsectionproperties({ ...secpropobj });
83
- }
84
- }, [StatePagePropertiesContext]);
85
- const PageTemplateFetcherQuery = useQuery(
86
- [ProjectOpenrcTypeContext == 'workplace' ? 'FetchPages_API' + TemplateIdContext + CurrentPageId : 'FetchPages_API' + INSTAPIKEYCONTEXT + CurrentPageId],
87
- () =>
88
- Page_Template_Fetch_API(
89
- ProjectOpenrcTypeContext == 'workplace'
90
- ? { templateid: TemplateIdContext, pageid: CurrentPageId }
91
- : { INSTAPIKEYCONTEXT: INSTAPIKEYCONTEXT, srctypefrom: 'subdomain', pageid: CurrentPageId },
92
- ),
93
- {
94
- keepPreviousData: true,
95
- staleTime: Infinity,
96
- enabled: CurrentPageId.length != 0 ? true : false,
97
- },
98
- );
99
- const FetchRelatedProductsQuery = useQuery([' FetchRelatedProducts_API' + RelatedProductsTagid], () => FetchRelatedProducts_API({ tagid: RelatedProductsTagid, productid: '' }), {
100
- keepPreviousData: true,
101
- staleTime: Infinity,
102
- enabled: fetchproductinfoObjContext.productid != undefined && fetchproductinfoObjContext.productid.length != 0 && RelatedProductsTagid.length != 0 ? true : false,
103
- });
104
- useEffect(() => {
105
- var cartindex = fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages.findIndex((x) => x.staticpageid == '6218bccb810ae');
106
- if (cartindex >= 0) {
107
- setCurrentPageId(fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[cartindex].pageid);
108
- if (props.srcfromprops != 'templatedraftrouter') {
109
- setpageindexcontext(cartindex);
110
- setCurrentPageIdContext(fetch_inst_tabex_websitetemplatesQueryContext.data.data.template.pages[cartindex].pageid);
111
- }
112
- }
113
- }, [fetch_inst_tabex_websitetemplatesQueryContext.dataUpdatedAt]);
114
- useEffect(() => {
115
- if (PageTemplateFetcherQuery.isSuccess) {
116
- if (PageTemplateFetcherQuery.data.data.pageobj.pageproperties != undefined) {
117
- var secpropobj = {};
118
- PageTemplateFetcherQuery.data.data.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
119
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
120
- });
121
- setsectionproperties({ ...secpropobj });
122
- }
123
- }
124
- }, [PageTemplateFetcherQuery.dataUpdatedAt, PageTemplateFetcherQuery.isSuccess]);
125
- const [productimagesarray, setproductimagesarray] = useState([]);
126
- const [addtocardpayloadobj, setaddtocardpayloadobj] = useState({
127
- functype: 'add',
128
- productid: '',
129
- variantid: '',
130
- quantity: 1,
131
- });
132
- const [variantindexcompleted, setvariantindexcompleted] = useState('');
133
- useEffect(() => {
134
- if (productidparam == undefined) {
135
- productidassigner(ProductIdProdutInfoModalContext);
136
- } else {
137
- productidassigner(productidparam);
138
- }
139
- }, []);
140
- const productidassigner = (productid) => {
141
- var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
142
- tempFetchQueriesEngineContext.fetchproductinfo = true;
143
- setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
144
- var tempfetchproductinfoObjContext = { ...fetchproductinfoObjContext };
145
-
146
- tempfetchproductinfoObjContext.productid = productid;
147
- setfetchproductinfoObjContext({ ...tempfetchproductinfoObjContext });
148
- };
149
- useEffect(() => {
150
- if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
151
- if (fetchProductInfoQueryContext.data.data.productinfo != null) {
152
- var tempproductimagesarray = [];
153
- if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
154
- fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
155
- var productimagesarrayobj = {
156
- thumbnail: serverbaselink + arrayItem.path,
157
- original: serverbaselink + arrayItem.path,
158
- };
159
- tempproductimagesarray.push(productimagesarrayobj);
160
- });
161
- }
162
- setproductimagesarray([...tempproductimagesarray]);
163
- variantchecker();
164
- var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
165
- tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
166
- setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
167
- setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
168
- }
169
- }
170
- }, [fetchProductInfoQueryContext.isSuccess, fetchProductInfoQueryContext.data]);
171
- const selectproductoptionvalue = (optionindex, optionvaluesitem, optionvaluesindex) => {
172
- var productarr = queryClient.getQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext));
173
- var isselected = productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected;
174
- if (isselected == 1) {
175
- productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 0;
176
- } else {
177
- productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 1;
178
- }
179
- productarr.data.productinfo.productoptions[optionindex].optionvalues.forEach(function (arrayItem, arrayindex) {
180
- if (optionvaluesindex != arrayindex) {
181
- arrayItem.isselected = 0;
182
- }
183
- });
184
- variantchecker();
185
- variantcompleting();
186
- queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
187
- };
188
- const variantchecker = () => {
189
- var productarr = queryClient.getQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext));
190
- if (productarr.data.productinfo.hasvariants == 1) {
191
- var selectedoptionsvalues = [];
192
- var variantsaccessible = [];
193
- productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
194
- productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
195
- if (ProductOptionValuesitem.isselected == 1) {
196
- selectedoptionsvalues.push(ProductOptionValuesitem);
197
- }
198
- });
199
- });
200
- if (selectedoptionsvalues.length == 0) {
201
- productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
202
- ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
203
- productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
204
- productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
205
- if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
206
- ProductOptionValuesitem.isenabled = 1;
207
- }
208
- });
209
- });
210
- });
211
- });
212
- } else {
213
- productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
214
- productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
215
- ProductOptionValuesitem.isenabled = 0;
216
- });
217
- });
218
-
219
- productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
220
- var variantcommonvalues = [];
221
- ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
222
- selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
223
- if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
224
- variantcommonvalues.push(varinatoptionitem);
225
- }
226
- });
227
- });
228
-
229
- var addvariantcount = [];
230
- var addvariant = false;
231
- selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
232
- addvariant = false;
233
- variantcommonvalues.forEach(function (varinatoptionitem, variantoptionindex) {
234
- if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
235
- if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
236
- addvariant = true;
237
- } else {
238
- addvariantcount.push(varinatoptionitem);
239
- }
240
- }
241
- });
242
- });
243
- if (addvariant && addvariantcount.length == 0) {
244
- variantsaccessible.push(ProductVariantItem);
245
- }
246
- });
247
-
248
- variantsaccessible.forEach(function (ProductVariantItem, ProductVariantIndex) {
249
- ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
250
- productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
251
- productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
252
- if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
253
- ProductOptionValuesitem.isenabled = 1;
254
- }
255
- });
256
- });
257
- });
258
- });
259
- }
260
- queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
261
- }
262
- };
263
- const variantcompleting = () => {
264
- setvariantindexcompleted('');
265
- var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
266
- tempaddtocardpayloadobj.variantid = '';
267
- setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
268
- var productarr = queryClient.getQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext));
269
- var selectedoptionsvalues = [];
270
-
271
- productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
272
- productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
273
- if (ProductOptionValuesitem.isselected == 1) {
274
- selectedoptionsvalues.push(ProductOptionValuesitem);
275
- }
276
- });
277
- });
278
- productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
279
- var isvariant = false;
280
- var variantnotmatch = [];
281
- if (selectedoptionsvalues.length == ProductVariantItem.variantoptions.length) {
282
- isvariant = true;
283
- ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
284
- selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
285
- if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
286
- if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
287
- } else {
288
- variantnotmatch.push('s');
289
- }
290
- }
291
- });
292
- });
293
- }
294
- if (variantnotmatch.length == 0 && isvariant == true) {
295
- var variantobj = fetchProductInfoQueryContext.data.data.productinfo.variants[ProductVariantIndex];
296
- var variantid = '';
297
- if (variantobj == undefined) {
298
- NotificationManager.warning('', 'Variant Not Found');
299
- } else {
300
- variantid = variantobj.variantid;
301
- var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
302
- tempaddtocardpayloadobj.variantid = variantid;
303
- setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
304
- setvariantindexcompleted(ProductVariantIndex);
305
- }
306
- }
307
- });
308
- queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
309
- };
310
- const addtocartfunc = () => {
311
- var runfunc = false;
312
- if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
313
- if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
314
- if (addtocardpayloadobj.variantid.length != 0) {
315
- runfunc = true;
316
- } else {
317
- NotificationManager.warning('', 'Please Choose Product Options');
318
- }
319
- } else {
320
- runfunc = true;
321
- }
322
- } else {
323
- NotificationManager.warning('', 'Please Choose Quantity');
324
- }
325
-
326
- if (runfunc == true) {
327
- AddtoCartContext(addtocardpayloadobj);
328
- }
329
- };
330
- const productinfo_cssstyles = {
331
- sectiontitlespan: css({
332
- ':after': {
333
- width: sectionproperties.relatedproducttitle_lineafterwidth + '%',
334
- backgroundColor: sectionproperties.relatedproducttitlelinebgcolor,
335
- },
336
- }),
337
- sectiontitlespan2: css({
338
- ':after': {
339
- width: sectionproperties.relatedproducttitle_lineafterwidth + 'px',
340
- height: '100%',
341
- backgroundColor: sectionproperties.relatedproducttitlelinebgcolor,
342
- },
343
- }),
344
- cart_btn: css({
345
- width: sectionproperties.cartBtnWidth + 'px',
346
- height: sectionproperties.cartBtnHeight + 'px',
347
- background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
348
- borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
349
- color: sectionproperties.cartBtnTextcolor,
350
- fontSize: sectionproperties.cartBtnTextfontsize + 'px',
351
- textTransform: sectionproperties.cartBtnTexttransform,
352
- fontWeight: sectionproperties.cartBtnTextfontweight,
353
- border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
354
- transition: '.3s',
355
- opacity: sectionproperties.cartbtn_opacity,
356
- display: 'flex',
357
- alignItems: 'center',
358
- justifyContent: 'center',
359
- overflow: 'hidden',
360
- margin: 0,
361
- position: 'relative',
362
- ':hover': {
363
- background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
364
- color: sectionproperties.cartBtnTextcoloronhover,
365
- opacity: sectionproperties.cartbtn_opacityonhover,
366
- },
367
- }),
368
- quantitybtn: css({
369
- width: sectionproperties.quantitybtn_height + 'px',
370
- height: sectionproperties.quantitybtn_width + 'px',
371
- display: 'flex',
372
- flexDirection: 'column',
373
- overflow: 'hidden',
374
- borderRadius: sectionproperties.quantitybtn_borderradius + 'px',
375
- background: sectionproperties.quantitybtn_bgcolor,
376
- alignItems: 'center',
377
- justifyContent: 'center',
378
- margin: 0,
379
- position: 'relative',
380
- fontWeight: sectionproperties.quantitybtn_textfontweight,
381
- color: sectionproperties.quantitybtn_textcolor,
382
- fontSize: sectionproperties.quantitybtn_textfontsize + 'px',
383
- border: sectionproperties.quantitybtnborderwidth + 'px solid ' + sectionproperties.quantitybtnbordercolor,
384
- }),
385
- quantitybtn_text: css({
386
- margin: 'auto',
387
- }),
388
- add_quantitybtn_icon_container: css({
389
- position: 'relative',
390
- width: '35px',
391
- height: '35px',
392
- background: sectionproperties.add_quantitybtn_bgcolor,
393
- display: 'flex',
394
- alignItems: 'center',
395
- justifyContent: 'center',
396
- borderRadius: sectionproperties.add_quantitybtn_borderradius + 'px',
397
- fontSize: sectionproperties.add_quantitybtn_textfontsize + 'px',
398
- color: sectionproperties.add_quantitybtn_textcolor,
399
- transition: '.3s',
400
- ':hover': {
401
- color: sectionproperties.add_quantitybtn_textcoloronhover,
402
- background: sectionproperties.add_quantitybtn_bgcoloronhover,
403
- },
404
- }),
405
- minus_quantitybtn_icon_container: css({
406
- position: 'relative',
407
- width: '35px',
408
- height: '35px',
409
- background: sectionproperties.remove_quantitybtn_bgcolor,
410
- display: 'flex',
411
- alignItems: 'center',
412
- justifyContent: 'center',
413
- borderRadius: sectionproperties.remove_quantitybtn_borderradius + 'px',
414
- fontSize: sectionproperties.remove_quantitybtn_textfontsize + 'px',
415
- color: sectionproperties.remove_quantitybtn_textcolor,
416
- transition: '.3s',
417
- ':hover': {
418
- color: sectionproperties.remove_quantitybtn_textcoloronhover,
419
- background: sectionproperties.remove_quantitybtn_bgcoloronhover,
420
- },
421
- }),
422
- imagecont: css({
423
- width: '60px',
424
- height: '60px',
425
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
426
- backgroundColor: sectionproperties.prodimage_bgcolor,
427
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
428
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
429
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
430
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
431
- display: 'flex',
432
- alignItems: 'center',
433
- justifyContent: 'center',
434
- backgroundRepeat: 'no-repeat',
435
- backgroundSize: 'cover',
436
- backgroundPosition: 'center',
437
- position: 'relative',
438
- }),
439
- relatedproductNameStyles: css({
440
- color: sectionproperties.relatedprodNameColor,
441
- fontSize: sectionproperties.relatedprodNameFontSize + 'px',
442
- fontWeight: sectionproperties.relatedprodnamefontWeight,
443
- textTransform: sectionproperties.relatedprodNameTextTranform,
444
-
445
- ':hover': {
446
- color: sectionproperties.relatedprodNameColoronhover,
447
- },
448
- }),
449
- relatedproductPricestyles: css({
450
- color: sectionproperties.relatedprodPriceColor,
451
- fontSize: sectionproperties.relatedprodpriceFontSize + 'px',
452
- fontWeight: sectionproperties.relatedprodPriceFontWeight,
453
- }),
454
- cardcontainer: css({
455
- backgroundColor: sectionproperties.backgroundColor,
456
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
457
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
458
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
459
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
460
- paddingRight: sectionproperties.paddingRight + 'px',
461
- paddingLeft: sectionproperties.paddingLeft + 'px',
462
- paddingTop: sectionproperties.paddingTop + 'px',
463
- paddingBottom: sectionproperties.paddingBottom + 'px',
464
- border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
465
- }),
466
- wishlist_btn: css({
467
- width: sectionproperties.favBtnWidth + 'px',
468
- height: sectionproperties.favBtnHeight + 'px',
469
- background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
470
- borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
471
- color: sectionproperties.favBtniconcolor,
472
- fontSize: sectionproperties.favBtnTextfontsize + 'px',
473
- textTransform: sectionproperties.favBtnTexttransform,
474
- fontWeight: sectionproperties.favBtnTextfontweight,
475
- transition: '.3s',
476
- boxShadow: sectionproperties.favbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.favbtn_shadowcolor : '',
477
- border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
478
- opacity: sectionproperties.favbtn_opacity,
479
- cursor: 'pointer',
480
- ':hover': {
481
- background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
482
- color: sectionproperties.favBtnTextcoloronhover,
483
- opacity: sectionproperties.favbtn_opacityonhover,
484
- },
485
- }),
486
- productname: css({
487
- fontSize: sectionproperties.prodNameFontSize + 'px',
488
- textTransform: sectionproperties.prodNameTextTranform,
489
- fontWeight: sectionproperties.prodNameFontWeight,
490
- color: sectionproperties.prodNameColor,
491
- }),
492
- productnamehover: css({
493
- transition: '.3s',
494
- ':hover': {
495
- color: sectionproperties.prodNameColorOnHover,
496
- },
497
- }),
498
- };
499
- const returnpolicyobj = (policytype) => {
500
- var policyobj = {};
501
- fetchAuthorizationQueryContext.data.data.instinfo.instpolicies.forEach(function (item, index) {
502
- if (item.policytype == policytype) {
503
- policyobj = item;
504
- }
505
- });
506
- return policyobj;
507
- };
508
- return (
509
- <div class="col-lg-12 p-0">
510
- <div className={'row w-100 ml-0 mr-0'}>
511
- <div class="col-lg-9 pl-2 pr-2 mb-md-3">
512
- <div class={`${productinfo_cssstyles.cardcontainer}`} style={{ minHeight: '70vh' }}>
513
- <div className={'row m-0 w-100'}>
514
- <div class="col-xl-5 col-lg-6 col-md-12 col-sm-12 mb-md-3 pl-1 pr-1">
515
- <div
516
- class="col-lg-12 p-0 "
517
- style={{
518
- width: '100%',
519
- height: '100%',
520
- }}
521
- >
522
- <ImageGallery items={productimagesarray} thumbnailPosition="bottom" showNav={false} showPlayButton={false} />
523
- </div>
524
- </div>
525
- <div class={langdetect == 'en' ? 'col-lg-7 col-md-12 col-sm-12 pl-2 pr-0' : 'col-lg-7 col-md-12 col-sm-12 pl-0 pr-2'}>
526
- <div class="row m-0 w-100">
527
- {/* Name */}
528
- <div class="row m-0 w-100">
529
- {props.srcfromprops != 'templatdraftrouter' && (
530
- <div class="col-lg-10 col-md-10 col-sm-10 p-0 mb-2 d-flex justify-content-start align-items-center">
531
- <p
532
- class={
533
- `${productinfo_cssstyles.productname} ${productinfo_cssstyles.productnamehover}` +
534
- ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 '
535
- }
536
- onClick={() => {
537
- routingcountext(StaticPagesLinksContext.productinfo, true, fetchProductInfoQueryContext.data.data.productinfo.productid);
538
- }}
539
- >
540
- {langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar}
541
- </p>
542
- </div>
543
- )}
544
- {props.srcfromprops == 'templatdraftrouter' && (
545
- <div class="col-lg-10 col-md-10 col-sm-10 p-0 mb-2 d-flex justify-content-start align-items-center">
546
- <p class={`${productinfo_cssstyles.productname}` + ' m-0 p-0 wordbreak d-flex justify-content-start '}>
547
- {langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar}
548
- </p>
549
- </div>
550
- )}
551
- <div class="col-lg-2 col-md-2 col-sm-2 d-flex justify-content-end p-0">
552
- <div
553
- class={productinfo_cssstyles.wishlist_btn + ' d-flex justify-content-center align-items-center '}
554
- onClick={() => {
555
- addtofavoritescontext(fetchProductInfoQueryContext.data.data.productinfo.productid);
556
- }}
557
- style={{
558
- background: fetchProductInfoQueryContext.data.data.productinfo.IsFavExists == true ? sectionproperties.activebgcolor : '',
559
- }}
560
- >
561
- <i class="h-100 d-flex align-items-center justify-content-center">
562
- {fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
563
- <i class="h-100 d-flex align-items-center justify-content-center">
564
- {sectionproperties.faviconshape == 'Star Shape' && (
565
- <AiFillStar size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
566
- )}
567
- {sectionproperties.faviconshape == 'Heart Shape' && (
568
- <FaHeart size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
569
- )}
570
- </i>
571
- )}
572
- {!fetchProductInfoQueryContext.data.data.productinfo.IsFavExists && (
573
- <i class="h-100 d-flex align-items-center justify-content-center">
574
- {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
575
- {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
576
- </i>
577
- )}
578
- </i>
579
- </div>
580
- </div>
581
- </div>
582
- {/* Desc */}
583
- {langdetect == 'en' && fetchProductInfoQueryContext.data.data.productinfo.description_en != '' && (
584
- <div class="col-lg-12 p-0 mb-5 d-flex justify-content-center" style={{ minHeight: '15vh' }}>
585
- <div class="row m-0 w-100 d-flex flex-column">
586
- <p class="m-0 p-0 text-light font-15 d-flex justify-content-start">{lang.description}:</p>
587
- {/* <ShowMoreText lines={5} more={lang.showmore} less={lang.showless} anchorClass="my-anchor-css-class" expanded={false} truncatedEndingComponent={'... '}> */}
588
- <p
589
- class={'text-black text-capitalize m-0 p-0 wordbreak'}
590
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
591
- dangerouslySetInnerHTML={{
592
- __html:
593
- langdetect == 'en'
594
- ? fetchProductInfoQueryContext.data.data.productinfo.description_en
595
- : fetchProductInfoQueryContext.data.data.productinfo.description_ar,
596
- }}
597
- ></p>
598
- {/* </ShowMoreText> */}
599
- </div>
600
- </div>
601
- )}
602
- {langdetect == 'ar' && fetchProductInfoQueryContext.data.data.productinfo.description_ar != '' && (
603
- <div class="col-lg-12 p-0 mb-5 d-flex justify-content-center" style={{ minHeight: '15vh' }}>
604
- <div class="row m-0 w-100 d-flex flex-column">
605
- <p class="m-0 p-0 text-light font-15 d-flex justify-content-start">{lang.description}:</p>
606
- <ShowMoreText lines={5} more="Show more" less="Show less" anchorClass="my-anchor-css-class" expanded={false} truncatedEndingComponent={'... '}>
607
- <p
608
- class={'text-black text-capitalize m-0 p-0 wordbreak'}
609
- style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
610
- dangerouslySetInnerHTML={{
611
- __html:
612
- langdetect == 'en'
613
- ? fetchProductInfoQueryContext.data.data.productinfo.description_en
614
- : fetchProductInfoQueryContext.data.data.productinfo.description_ar,
615
- }}
616
- ></p>
617
- </ShowMoreText>
618
- </div>
619
- </div>
620
- )}
621
- {fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && (
622
- <div class="row m-0 w-100 d-flex align-items-start">
623
- {fetchProductInfoQueryContext.data.data.productinfo.productoptions.map((item, index) => {
624
- return (
625
- <div class="col-lg-12 p-0 mb-3 d-flex justify-content-start">
626
- <div class="row m-0 w-100 d-flex align-items-start">
627
- <div class="col-lg-12 col-md-12 p-0 d-flex mb-1">
628
- <p
629
- class={' m-0 p-0 wordbreak'}
630
- style={{
631
- color: sectionproperties.varianttitle_color,
632
- fontWeight: sectionproperties.varianttitle_fontweight,
633
- textTransform: sectionproperties.varianttitle_texttransform,
634
- fontSize: sectionproperties.varianttitle_fontSize + 'px',
635
- }}
636
- >
637
- {lang.select} {item.optionname}:
638
- </p>
639
- </div>
640
- <div class="col-lg-12 col-md-12 p-0 d-flex pb-md-3 justify-content-start align-items-start scrollhorixontalcontainer">
641
- {item.optionvalues.map((optionvaluesitem, optionvaluesindex) => {
642
- var isoptionvalueselected = 0;
643
- if (optionvaluesitem.isselected == 1) {
644
- isoptionvalueselected = 1;
645
- } else {
646
- isoptionvalueselected = 0;
647
- }
648
- var isoptionvaluedenabled = 0;
649
- if (optionvaluesitem.isenabled == 1) {
650
- isoptionvaluedenabled = 1;
651
- } else {
652
- isoptionvaluedenabled = 0;
653
- }
654
- if (item.optionname == 'color') {
655
- return (
656
- <div
657
- class={
658
- productinfostyles.color_container +
659
- ' mr-2 variabttcontainer ' +
660
- `${isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''}`
661
- }
662
- onClick={() => {
663
- if (optionvaluesitem.isenabled == 1) {
664
- selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
665
- }
666
- }}
667
- style={{
668
- background: optionvaluesitem.valuename,
669
- opacity: isoptionvaluedenabled == 1 ? 1 : 0.2,
670
- cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
671
- }}
672
- ></div>
673
- );
674
- } else if (item.optionname == 'size') {
675
- return (
676
- <div
677
- class={
678
- `${productinfostyles.variant_container} ${productinfostyles.size_variant_container}` +
679
- ' mr-2 variabttcontainer ' +
680
- `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
681
- }
682
- onClick={() => {
683
- if (optionvaluesitem.isenabled == 1) {
684
- selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
685
- }
686
- }}
687
- style={{
688
- backgroundColor: isoptionvaluedenabled == 1 ? '' : 'grey',
689
- cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
690
- }}
691
- >
692
- <p
693
- class={'font-12 wordbreak m-0 p-0 d-flex align-items-center justify-content-center'}
694
- style={{
695
- color: sectionproperties.varianttext_color,
696
- fontWeight: sectionproperties.varianttext_fontweight,
697
- textTransform: sectionproperties.varianttext_texttransform,
698
- fontSize: sectionproperties.varianttext_fontSize + 'px',
699
- }}
700
- >
701
- {optionvaluesitem.valuename}
702
- </p>
703
- </div>
704
- );
705
- } else {
706
- return (
707
- <div
708
- class={
709
- productinfostyles.variant_container +
710
- ' mr-2 variabttcontainer ' +
711
- `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
712
- }
713
- onClick={() => {
714
- if (optionvaluesitem.isenabled == 1) {
715
- selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
716
- }
717
- }}
718
- style={{
719
- backgroundColor:
720
- isoptionvalueselected == 1
721
- ? 'green'
722
- : isoptionvaluedenabled == 1
723
- ? sectionproperties.variantcontainer_bgcolor
724
- : 'grey',
725
- minWidth: sectionproperties.variantcontainer_minwidth + 'px',
726
- height: sectionproperties.variantcontainer_height + 'px',
727
- borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
728
- color: sectionproperties.variantcontainer_color,
729
- cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
730
- }}
731
- >
732
- <p
733
- class={'m-0 p-0 d-flex align-items-center justify-content-center'}
734
- style={{
735
- color: sectionproperties.varianttext_color,
736
- fontWeight: sectionproperties.varianttext_fontweight,
737
- textTransform: sectionproperties.varianttext_texttransform,
738
- fontSize: sectionproperties.varianttext_fontSize + 'px',
739
- }}
740
- >
741
- {optionvaluesitem.valuename}
742
- </p>
743
- </div>
744
- );
745
- }
746
- })}
747
- </div>
748
- </div>
749
- </div>
750
- );
751
- })}
752
- </div>
753
- )}
754
- <div class="col-lg-12 p-0 mb-3">
755
- <div
756
- style={{
757
- width: sectionproperties.availability_width + 'px',
758
- height: sectionproperties.availability_height + 'px',
759
- background:
760
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
761
- ? sectionproperties.availability_availablebgcolor
762
- : sectionproperties.availability_limitedbgcolor,
763
- borderRadius: sectionproperties.availability_borderrradius + 'px',
764
- border:
765
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
766
- ? sectionproperties.availability_borderwidtth + 'px solid ' + sectionproperties.availability_availabletextcolor
767
- : sectionproperties.availability_borderwidtth + 'px solid ' + sectionproperties.availability_limitedtextcolor,
768
- }}
769
- class="d-flex justify-content-start align-items-center pl-3 pr-3"
770
- >
771
- <p
772
- class="m-0 p-0 font-weight-500 wordbreak"
773
- style={{
774
- color:
775
- fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit'
776
- ? sectionproperties.availability_availabletextcolor
777
- : sectionproperties.availability_limitedtextcolor,
778
- fontSize: sectionproperties.availability_fontsize + 'px',
779
- }}
780
- >
781
- <span style={{ color: sectionproperties.availability_textcolor }} class="font-weight-600">
782
- {lang.availability}:
783
- </span>
784
- <span class="ml-1 mr-1">{fetchProductInfoQueryContext.data.data.productinfo.quantavailtype == 'nolimit' ? lang.available : lang.limitedquantity}</span>
785
- </p>
786
- </div>
787
- </div>
788
- <div class="col-lg-12 p-0 mb-3">
789
- <hr class="mb-0 mt-2" />
790
- </div>
791
- <div class="col-lg-12 p-0 mb-3">
792
- <div class="row m-0 w-100">
793
- <div class="col-lg-12 p-0 mb-2 d-flex justofy-content-start">
794
- <p
795
- class="m-0 p-0"
796
- style={{
797
- color: sectionproperties.text_secondarycolor,
798
- fontSize: sectionproperties.secondaryfontsize + 'px',
799
- }}
800
- >
801
- {lang.quantity}:
802
- </p>
803
- </div>
804
- <button
805
- class={` ${productinfo_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 '}
806
- style={{
807
- height: sectionproperties.quantitybtn_height + 'px',
808
- width: sectionproperties.quantitybtn_width + 'px',
809
- flexDirection: 'row',
810
- direction: 'ltr',
811
- }}
812
- >
813
- <span
814
- class={`${productinfo_cssstyles.minus_quantitybtn_icon_container}` + ' m-1 '}
815
- onClick={() => {
816
- var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
817
- if (tempaddtocardpayloadobj.quantity > 0) {
818
- tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
819
- }
820
- setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
821
- }}
822
- >
823
- <i class="fa fa-chevron-down font-12"></i>
824
- </span>
825
- <span class={`${productinfo_cssstyles.quantitybtn_text}`}>{addtocardpayloadobj.quantity}</span>
826
- <span
827
- class={`${productinfo_cssstyles.add_quantitybtn_icon_container}` + ' m-1 '}
828
- onClick={() => {
829
- var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
830
- tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
831
- setaddtocardpayloadobj({ ...tempaddtocardpayloadobj });
832
- }}
833
- >
834
- <i class="fa fa-chevron-up font-12"></i>
835
- </span>
836
- </button>
837
- <button
838
- class={`${productinfo_cssstyles.cart_btn} ` + ' ml-1 mr-1 d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 '}
839
- onClick={() => {
840
- addtocartfunc();
841
- }}
842
- disabled={AddtoCartMutationContext.isLoading == true ? true : false}
843
- >
844
- {!AddtoCartMutationContext.isLoading && (
845
- <span class={' d-flex align-items-center justify-content-center '}>
846
- <i
847
- class={
848
- langdetect == 'en'
849
- ? 'h-100 d-flex align-items-center justify-content-center mr-2'
850
- : 'h-100 d-flex align-items-center justify-content-center ml-2'
851
- }
852
- >
853
- {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
854
- {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
855
- {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
856
- {sectionproperties.carticonstyle == 'Shopping bag 4' && <IoBagHandleOutline class="" size={sectionproperties.cartBtn_iconFontSize} />}
857
- {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
858
- {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
859
- </i>
860
- {lang.addtocart}
861
- </span>
862
- )}
863
- {AddtoCartMutationContext.isLoading && (
864
- <div class={' d-flex align-items-center justify-content-center '}>
865
- <CircularProgress color="white" width="20px" height="20px" duration="1s" />
866
- </div>
867
- )}
868
- </button>
869
- </div>
870
- </div>
871
- <div class="col-lg-12 p-0 mb-3">
872
- <div class="row m-0 w-100 d-flex flex-row">
873
- <p
874
- class="m-0 p-0"
875
- style={{
876
- color: sectionproperties.total_color,
877
- fontSize: sectionproperties.total_fontsize + 'px',
878
- fontWeight: sectionproperties.total_fontweight,
879
- textTransform: sectionproperties.total_texttransform,
880
- }}
881
- >
882
- {lang.total}:
883
- </p>
884
- <div class="col-lg-9 col-md-9 col-sm-9 d-flex align-items-center pl-1 pr-1">
885
- <p
886
- class={'m-0 p-0 wordbreak d-flex align-items-center justify-content-end'}
887
- style={{
888
- fontSize: sectionproperties.prodpriceFontSize + 'px',
889
- fontWeight: sectionproperties.prodPriceFontWeight,
890
- color: sectionproperties.prodPriceColor,
891
- }}
892
- >
893
- {fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted.length != 0 && (
894
- <>
895
- {fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].hassale == 1 && (
896
- <p
897
- class={
898
- langdetect == 'en'
899
- ? ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-right '
900
- : ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-left '
901
- }
902
- >
903
- {langdetect == 'en' ? 'EGP' : ''}{' '}
904
- {fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].variantsaleprice}{' '}
905
- {langdetect == 'en' ? '' : 'ج.م'}
906
- </p>
907
- )}
908
- <>
909
- {fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].hassale == 0 && (
910
- <p
911
- class={
912
- langdetect == 'en'
913
- ? ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
914
- : ' m-0 p-0 d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
915
- }
916
- >
917
- {langdetect == 'en' ? 'EGP' : ''}{' '}
918
- {fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].variantprice}{' '}
919
- {langdetect == 'en' ? '' : 'ج.م'}
920
- </p>
921
- )}
922
- </>
923
- </>
924
- )}
925
- {fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && (
926
- <>
927
- {fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 && (
928
- <span
929
- class={
930
- langdetect == 'en'
931
- ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
932
- : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
933
- }
934
- >
935
- {langdetect == 'en' ? 'EGP' : ''} {fetchProductInfoQueryContext.data.data.productinfo.defaultprice}{' '}
936
- {langdetect == 'en' ? '' : 'ج.م'}
937
- </span>
938
- )}
939
- <>
940
- {fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && (
941
- <span
942
- class={
943
- langdetect == 'en'
944
- ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
945
- : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
946
- }
947
- >
948
- {langdetect == 'en' ? 'EGP' : ''} {fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice}{' '}
949
- {langdetect == 'en' ? '' : 'ج.م'}
950
- </span>
951
- )}
952
- </>
953
- </>
954
- )}
955
- </p>
956
- <p
957
- class={'m-0 p-0 linethrough wordbreak'}
958
- style={{
959
- color: sectionproperties.prodsalePriceColor,
960
- fontSize: sectionproperties.prodsalepriceFontSize + 'px',
961
- fontWeight: sectionproperties.prodsalePriceFontWeight,
962
- }}
963
- >
964
- {fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 0 && (
965
- <>
966
- {fetchProductInfoQueryContext.data.data.productinfo.hassale == 1 && (
967
- <span
968
- class={
969
- langdetect == 'en'
970
- ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
971
- : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
972
- }
973
- >
974
- <span class="ml-2 mr-2">-</span> {langdetect == 'en' ? 'EGP' : ''} {fetchProductInfoQueryContext.data.data.productinfo.defaultprice}{' '}
975
- {langdetect == 'en' ? '' : 'ج.م'}
976
- </span>
977
- )}
978
- </>
979
- )}
980
- {fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1 && variantindexcompleted.length != 0 && (
981
- <>
982
- {fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].hassale == 1 && (
983
- <span
984
- class={
985
- langdetect == 'en'
986
- ? ' d-flex align-items-center justify-content-end wordbreak text-right wordbreak '
987
- : ' d-flex align-items-center justify-content-end wordbreak text-left wordbreak '
988
- }
989
- >
990
- <span class="ml-2 mr-2">-</span>
991
- {langdetect == 'en' ? 'EGP' : ''} {fetchProductInfoQueryContext.data.data.productinfo.variants[variantindexcompleted].variantprice}{' '}
992
- {langdetect == 'en' ? '' : 'ج.م'}
993
- </span>
994
- )}
995
- </>
996
- )}
997
- </p>
998
- </div>
999
- </div>
1000
- </div>
1001
- <div class="col-lg-12 p-0 mb-3">
1002
- <hr class="mb-0 mt-2" />
1003
- </div>
1004
- <div class="row m-0 w-100 d-flex align-items-center mb-3">
1005
- <div
1006
- style={{
1007
- width: sectionproperties.iconcontainerwidth + 'px',
1008
- height: sectionproperties.iconcontainerheight + 'px',
1009
- borderRadius: sectionproperties.iconcontainerborderbl + 'px',
1010
- background: sectionproperties.iconcontainerbg,
1011
- }}
1012
- >
1013
- <i class="h-100 d-flex align-items-center justify-content-center">
1014
- <RiSecurePaymentLine
1015
- size={20}
1016
- style={{
1017
- color: sectionproperties.iconcontainercolor,
1018
- }}
1019
- />
1020
- </i>
1021
- </div>
1022
- <div class="col-lg-9 col-md-9 col-sm-9 d-flex justofy-content-start">
1023
- <p
1024
- class="m-0 p-0 wordbreak"
1025
- style={{
1026
- fontSize: sectionproperties.icontextfontsize + 'px',
1027
- color: sectionproperties.icontextcolor,
1028
- fontWeight: sectionproperties.icontextfontweight,
1029
- }}
1030
- >
1031
- {lang.securepayment}
1032
- </p>
1033
- </div>
1034
- </div>
1035
- <div class="row m-0 w-100 d-flex align-items-center mb-3">
1036
- <div
1037
- style={{
1038
- width: sectionproperties.iconcontainerwidth + 'px',
1039
- height: sectionproperties.iconcontainerheight + 'px',
1040
- borderRadius: sectionproperties.iconcontainerborderbl + 'px',
1041
- background: sectionproperties.iconcontainerbg,
1042
- }}
1043
- >
1044
- <i class="h-100 d-flex align-items-center justify-content-center">
1045
- <MdOutlineLocalShipping
1046
- size={20}
1047
- style={{
1048
- color: sectionproperties.iconcontainercolor,
1049
- }}
1050
- />
1051
- </i>
1052
- </div>
1053
- <div class="col-lg-9 col-md-9 col-sm-9 d-flex justofy-content-start">
1054
- <p
1055
- class="m-0 p-0 wordbreak"
1056
- style={{
1057
- fontSize: sectionproperties.icontextfontsize + 'px',
1058
- color: sectionproperties.icontextcolor,
1059
- fontWeight: sectionproperties.icontextfontweight,
1060
- }}
1061
- >
1062
- {lang.trustedshipping}
1063
- </p>
1064
- </div>
1065
- </div>
1066
- </div>
1067
- </div>
1068
- </div>
1069
- </div>
1070
- </div>
1071
- <div class="col-lg-3 pl-2 pr-2">
1072
- {fetchAuthorizationQueryContext.data.data.loggedin && (
1073
- <div class={`${productinfo_cssstyles.cardcontainer}` + ' mb-3 '}>
1074
- <div class="row m-0 w-100">
1075
- <i class="h-100 d-flex align-items-center justify-content-center mt-1">
1076
- <FiMapPin
1077
- size={20}
1078
- style={{
1079
- color: sectionproperties.generaliconcolor,
1080
- }}
1081
- />
1082
- </i>
1083
- <div class="col-lg-10 col-md-10 col-sm-10 d-flex justify-content-start flex-column">
1084
- <div class="row m-0 w-100">
1085
- <div class="col-lg-12 p-0 d-flex justify-content-start">
1086
- <p
1087
- class="m-0 p-0 wordbreak"
1088
- style={{
1089
- fontSize: sectionproperties.generaltext_fontSize + 'px',
1090
- color: sectionproperties.generaltext_fontColor,
1091
- textTransform: sectionproperties.generaltext_textTransform,
1092
- fontWeight: sectionproperties.generaltext_fontWeight,
1093
- }}
1094
- >
1095
- {lang.deliverto}
1096
- </p>
1097
- </div>
1098
- <div class="col-lg-12 p-0 d-flex justify-content-start">
1099
- {fetchAuthorizationQueryContext.data.data.loggedin && (
1100
- <p
1101
- class="m-0 p-0 wordbreak"
1102
- style={{
1103
- color: sectionproperties.text_secondarycolor,
1104
- fontSize: sectionproperties.secondaryfontsize + 'px',
1105
- }}
1106
- >
1107
- {fetchAuthorizationQueryContext.data.data.customerinfo.name}, Egypt
1108
- </p>
1109
- )}
1110
- </div>
1111
- </div>
1112
- </div>
1113
- </div>
1114
- </div>
1115
- )}
1116
- <div
1117
- class={`${productinfo_cssstyles.cardcontainer}` + ' mb-3 '}
1118
- style={{ cursor: 'pointer' }}
1119
- onClick={() => {
1120
- routingcountext(StaticPagesLinksContext.Policies);
1121
- }}
1122
- >
1123
- <div class="row m-0 w-100">
1124
- <div class="col-lg-12 pl-1 pr-1 d-flex align-items-center">
1125
- <i class="h-100 d-flex align-items-center justify-content-center">
1126
- <FaShippingFast
1127
- size={18}
1128
- style={{
1129
- color: sectionproperties.generaliconcolor,
1130
- }}
1131
- />
1132
- </i>
1133
- <p
1134
- class="m-0 p-0 ml-2 mr-2 wordbreak"
1135
- style={{
1136
- fontSize: sectionproperties.generaltext_fontSize + 'px',
1137
- color: sectionproperties.generaltext_fontColor,
1138
- textTransform: sectionproperties.generaltext_textTransform,
1139
- fontWeight: sectionproperties.generaltext_fontWeight,
1140
- cursor: 'pointer',
1141
- }}
1142
- >
1143
- {langdetect == 'en' ? returnpolicyobj('Shipping Policy')?.policypagename_en : returnpolicyobj('Shipping Policy')?.policypagename_ar}
1144
- {/* {lang.shippingpolicy} */}
1145
- </p>
1146
- </div>
1147
- <div class="col-lg-12 pl-1 pr-1">
1148
- <hr class="mt-2 mb-2" />
1149
- </div>
1150
- <div class="col-lg-12 pl-1 pr-1 d-flex justify-content-start">
1151
- <p
1152
- class="m-0 p-0 wordbreak"
1153
- style={{
1154
- fontSize: sectionproperties.secondaryfontsize + 'px',
1155
- color: sectionproperties.text_secondarycolor,
1156
- lineClamp: 5,
1157
- WebkitLineClamp: 5,
1158
- }}
1159
- dangerouslySetInnerHTML={{
1160
- __html: langdetect == 'en' ? returnpolicyobj('Shipping Policy')?.policycontent_en : returnpolicyobj('Shipping Policy')?.policycontent_ar,
1161
- }}
1162
- ></p>
1163
- </div>
1164
- <div class="col-lg-12 pl-1 pr-1 d-flex justify-content-center mt-2">
1165
- <button
1166
- onClick={() => {
1167
- routingcountext(StaticPagesLinksContext.Policies);
1168
- }}
1169
- style={{
1170
- fontSize: sectionproperties.secondaryfontsize + 'px',
1171
- color: sectionproperties.text_secondarycolor,
1172
- textDecorationLine: 'underline',
1173
- }}
1174
- >
1175
- {lang.viewmore}
1176
- </button>
1177
- </div>
1178
- </div>
1179
- </div>
1180
- <div
1181
- class={`${productinfo_cssstyles.cardcontainer}` + ' mb-3 '}
1182
- style={{ cursor: 'pointer' }}
1183
- onClick={() => {
1184
- routingcountext(StaticPagesLinksContext.Policies);
1185
- }}
1186
- >
1187
- <div class="row m-0 w-100">
1188
- <div class="col-lg-12 pl-1 pr-1 d-flex align-items-center">
1189
- <i class="h-100 d-flex align-items-center justify-content-center">
1190
- <MdOutlinePolicy
1191
- size={18}
1192
- style={{
1193
- color: sectionproperties.generaliconcolor,
1194
- }}
1195
- />
1196
- </i>
1197
- <p
1198
- class="m-0 p-0 ml-2 mr-2 wordbreak"
1199
- style={{
1200
- fontSize: sectionproperties.generaltext_fontSize + 'px',
1201
- color: sectionproperties.generaltext_fontColor,
1202
- textTransform: sectionproperties.generaltext_textTransform,
1203
- fontWeight: sectionproperties.generaltext_fontWeight,
1204
- }}
1205
- >
1206
- {langdetect == 'en' ? returnpolicyobj('Refund Policy')?.policypagename_en : returnpolicyobj('Refund Policy')?.policypagename_ar}
1207
- </p>
1208
- </div>
1209
- <div class="col-lg-12 pl-1 pr-1">
1210
- <hr class="mt-2 mb-2" />
1211
- </div>
1212
- <div class="col-lg-12 pl-1 pr-1 d-flex justify-content-start">
1213
- <p
1214
- class="m-0 p-0 wordbreak"
1215
- style={{
1216
- fontSize: sectionproperties.secondaryfontsize + 'px',
1217
- color: sectionproperties.text_secondarycolor,
1218
- lineClamp: 5,
1219
- WebkitLineClamp: 5,
1220
- }}
1221
- dangerouslySetInnerHTML={{
1222
- __html: langdetect == 'en' ? returnpolicyobj('Refund Policy')?.policycontent_en : returnpolicyobj('Refund Policy')?.policycontent_ar,
1223
- }}
1224
- ></p>
1225
- </div>
1226
- <div class="col-lg-12 pl-1 pr-1 d-flex justify-content-center mt-2">
1227
- <button
1228
- onClick={() => {
1229
- routingcountext(StaticPagesLinksContext.Policies);
1230
- }}
1231
- style={{
1232
- fontSize: sectionproperties.secondaryfontsize + 'px',
1233
- color: sectionproperties.text_secondarycolor,
1234
- textDecorationLine: 'underline',
1235
- }}
1236
- >
1237
- {lang.viewmore}
1238
- </button>
1239
- </div>
1240
- </div>
1241
- </div>
1242
- <div class={`${productinfo_cssstyles.cardcontainer}` + ' mb-3 '}>
1243
- <div class="row m-0 w-100">
1244
- <i class="h-100 d-flex align-items-center justify-content-center text-light mt-1">
1245
- <HiOutlinePhone
1246
- size={20}
1247
- style={{
1248
- color: sectionproperties.generaliconcolor,
1249
- }}
1250
- />
1251
- </i>
1252
- <div class="col-lg-10 col-md-10 col-sm-10 d-flex justify-content-start">
1253
- <div class="row m-0 w-100">
1254
- <div class="col-lg-12 p-0 d-flex justify-content-start">
1255
- <p
1256
- class="m-0 p-0 wordbreak"
1257
- style={{
1258
- fontSize: sectionproperties.generaltext_fontSize + 'px',
1259
- color: sectionproperties.generaltext_fontColor,
1260
- textTransform: sectionproperties.generaltext_textTransform,
1261
- fontWeight: sectionproperties.generaltext_fontWeight,
1262
- }}
1263
- >
1264
- {lang.callus}
1265
- </p>
1266
- </div>
1267
- <div class="col-lg-12 p-0 d-flex justify-content-start">
1268
- <p
1269
- class="m-0 p-0 wordbreak"
1270
- style={{
1271
- fontSize: sectionproperties.secondaryfontsize + 'px',
1272
- color: sectionproperties.text_secondarycolor,
1273
- }}
1274
- >
1275
- {fetchAuthorizationQueryContext.data.data.instinfo.contactinfo.mobile}
1276
- </p>
1277
- </div>
1278
- </div>
1279
- </div>
1280
- </div>
1281
- </div>
1282
- </div>
1283
- </div>
1284
- </div>
1285
- );
1286
- };
1287
- export default Iteminfo;