tabexseriescomponents 0.0.64 → 0.0.66

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 (178) hide show
  1. package/dist/index.cjs.js +25023 -16634
  2. package/dist/index.esm.js +25033 -16645
  3. package/dist/index.umd.js +24824 -16437
  4. package/package.json +1 -1
  5. package/src1-10/Contexts/LanguageContext.jsx +347 -0
  6. package/src1-10/Contexts/ProductsCardsSectionContext.jsx +28 -0
  7. package/src1-10/StylesJS/Customstyles.js +235 -0
  8. package/src1-10/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +205 -0
  9. package/src1-10/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +239 -0
  10. package/src1-10/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
  11. package/src1-10/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +169 -0
  12. package/src1-10/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +180 -0
  13. package/src1-10/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +162 -0
  14. package/src1-10/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
  15. package/src1-10/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +149 -0
  16. package/src1-10/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +271 -0
  17. package/src1-10/TabexComponents/Cards/MenuCard/MenuCard.jsx +546 -0
  18. package/src1-10/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +474 -0
  19. package/src1-10/TabexComponents/Cards/Productcard6/Productcard6.jsx +290 -0
  20. package/src1-10/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
  21. package/src1-10/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +293 -0
  22. package/src1-10/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +278 -0
  23. package/src1-10/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +312 -0
  24. package/src1-10/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +279 -0
  25. package/src1-10/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +293 -0
  26. package/src1-10/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +456 -0
  27. package/src1-10/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +272 -0
  28. package/src1-10/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
  29. package/src1-10/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +127 -0
  30. package/src1-10/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +126 -0
  31. package/src1-10/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +292 -0
  32. package/src1-10/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +281 -0
  33. package/src1-10/TabexComponents/Footer/Footer1/Footer1.jsx +418 -0
  34. package/src1-10/TabexComponents/Footer/Footer2/Footer2.jsx +381 -0
  35. package/src1-10/TabexComponents/Footer/Footer3/Footer3.jsx +316 -0
  36. package/src1-10/TabexComponents/Footer/Footer4/Footer4.jsx +437 -0
  37. package/src1-10/TabexComponents/Footer/Footer5/Footer5.jsx +488 -0
  38. package/src1-10/TabexComponents/Footer/Footer6/Footer6.jsx +286 -0
  39. package/src1-10/TabexComponents/Footer/Footer7/Footer7.jsx +370 -0
  40. package/src1-10/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +231 -0
  41. package/src1-10/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
  42. package/src1-10/TabexComponents/Generalfiles/images/noimage.png +0 -0
  43. package/src1-10/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
  44. package/src1-10/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
  45. package/src1-10/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
  46. package/src1-10/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
  47. package/src1-10/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
  48. package/src1-10/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
  49. package/src1-10/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
  50. package/src1-10/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
  51. package/src1-10/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
  52. package/src1-10/TabexComponents/Generalfiles/images/usflag.png +0 -0
  53. package/src1-10/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
  54. package/src1-10/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +722 -0
  55. package/src1-10/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +681 -0
  56. package/src1-10/TabexComponents/Headers/Header4/Header4.jsx +614 -0
  57. package/src1-10/TabexComponents/Headers/Header6/Header6.jsx +666 -0
  58. package/src1-10/TabexComponents/Headers/Header8/Header8.jsx +888 -0
  59. package/src1-10/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +710 -0
  60. package/src1-10/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +769 -0
  61. package/src1-10/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +666 -0
  62. package/src1-10/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +940 -0
  63. package/src1-10/TabexComponents/Headers/Modernheader/Modernheader.jsx +714 -0
  64. package/src1-10/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +833 -0
  65. package/src1-10/TabexComponents/Headers/Subheader/Subheader.jsx +239 -0
  66. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
  67. package/src1-10/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +278 -0
  68. package/src1-10/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +129 -0
  69. package/src1-10/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +153 -0
  70. package/src1-10/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
  71. package/src1-10/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +409 -0
  72. package/src1-10/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +793 -0
  73. package/src1-10/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +486 -0
  74. package/src1-10/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +888 -0
  75. package/src1-10/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +419 -0
  76. package/src1-10/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +512 -0
  77. package/src1-10/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +281 -0
  78. package/src1-10/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +166 -0
  79. package/src1-10/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +152 -0
  80. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +139 -0
  81. package/src1-10/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +146 -0
  82. package/src1-10/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +209 -0
  83. package/src1-10/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +145 -0
  84. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +252 -0
  85. package/src1-10/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +175 -0
  86. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +154 -0
  87. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +193 -0
  88. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +197 -0
  89. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
  90. package/src1-10/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +309 -0
  91. package/src1-10/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +260 -0
  92. package/src1-10/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +459 -0
  93. package/src1-10/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +216 -0
  94. package/src1-10/TabexComponents/StaticPages/Checkout/Checkout.jsx +1220 -0
  95. package/src1-10/TabexComponents/StaticPages/Filter/Filter.jsx +542 -0
  96. package/src1-10/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +51 -0
  97. package/src1-10/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
  98. package/src1-10/TabexComponents/StaticPages/Login/Login.jsx +299 -0
  99. package/src1-10/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +192 -0
  100. package/src1-10/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1271 -0
  101. package/src1-10/TabexComponents/StaticPages/Policies/Policies.jsx +353 -0
  102. package/src1-10/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1456 -0
  103. package/src1-10/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +209 -0
  104. package/src1-10/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +776 -0
  105. package/src1-10/TabexComponents/StaticPages/Signup/Signup.jsx +157 -0
  106. package/src1-10/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +285 -0
  107. package/src1-10/TabexComponents/StaticPages/Viewcart/Viewcart.js +1090 -0
  108. package/src1-10/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +606 -0
  109. package/src1-10/assets/images/cod.png +0 -0
  110. package/src1-10/assets/images/egyptflag.png +0 -0
  111. package/src1-10/assets/images/fawry.png +0 -0
  112. package/src1-10/assets/images/payment.png +0 -0
  113. package/src1-10/assets/images/paymob.png +0 -0
  114. package/src1-10/assets/images/paypal.png +0 -0
  115. package/src1-10/assets/images/shoppingcart.png +0 -0
  116. package/src1-10/assets/images/usflag.png +0 -0
  117. package/src1-10/assets/images/visa.png +0 -0
  118. package/src1-10/assets/images/whatsapp.png +0 -0
  119. package/src1-10/button.jsx +40 -0
  120. package/src1-10/index.jsx +179 -0
  121. package/src1-10/styles/Home.module.css +129 -0
  122. package/src1-10/styles/cards/Categorcycard_fullimage.module.css +10 -0
  123. package/src1-10/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
  124. package/src1-10/styles/cards/Categorycard_withshapes.module.css +189 -0
  125. package/src1-10/styles/cards/Productcard6.module.css +9 -0
  126. package/src1-10/styles/cards/Productcard_with_circularbg.module.css +137 -0
  127. package/src1-10/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
  128. package/src1-10/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
  129. package/src1-10/styles/cards/categorycard.module.css +102 -0
  130. package/src1-10/styles/cards/categorycard3.module.css +51 -0
  131. package/src1-10/styles/cards/categorycardwithtext.module.css +40 -0
  132. package/src1-10/styles/cards/productcard_animatedbuttons.module.css +104 -0
  133. package/src1-10/styles/cards/productcard_with_textonhover.module.css +12 -0
  134. package/src1-10/styles/cards/productccard_with_imageontopleft.module.css +85 -0
  135. package/src1-10/styles/general/bootstrap.css +4415 -0
  136. package/src1-10/styles/general/dropdown.css +199 -0
  137. package/src1-10/styles/general/editorbardropdown.module.css +94 -0
  138. package/src1-10/styles/general/filter.module.css +108 -0
  139. package/src1-10/styles/general/form.module.css +273 -0
  140. package/src1-10/styles/general/general.module.css +861 -0
  141. package/src1-10/styles/general/image-gallery.css +481 -0
  142. package/src1-10/styles/general/react-accessible-accordion.module.css +52 -0
  143. package/src1-10/styles/general/react-phone-input-2.module.css +927 -0
  144. package/src1-10/styles/general/scrollbtn.module.css +22 -0
  145. package/src1-10/styles/general/slick.module.css +166 -0
  146. package/src1-10/styles/general/tabs.module.css +110 -0
  147. package/src1-10/styles/general/workplaceeditor.module.css +328 -0
  148. package/src1-10/styles/globals.css +26 -0
  149. package/src1-10/styles/headers/Allinoneheader.module.css +91 -0
  150. package/src1-10/styles/headers/Header7.module.css +50 -0
  151. package/src1-10/styles/headers/Header_threesectionslogocentered.module.css +97 -0
  152. package/src1-10/styles/headers/Sideheader.module.css +108 -0
  153. package/src1-10/styles/headers/classicheaderstyles.module.css +16 -0
  154. package/src1-10/styles/headers/dropdown.css +0 -0
  155. package/src1-10/styles/headers/header4.module.css +175 -0
  156. package/src1-10/styles/headers/header5.module.css +30 -0
  157. package/src1-10/styles/headers/header6.module.css +117 -0
  158. package/src1-10/styles/headers/header_contactinfo.module.css +78 -0
  159. package/src1-10/styles/headers/headerresturant.module.css +89 -0
  160. package/src1-10/styles/headers/headerstyles.module.css +24 -0
  161. package/src1-10/styles/headers/modernheader.module.css +78 -0
  162. package/src1-10/styles/headers/subheader.module.css +114 -0
  163. package/src1-10/styles/sections/Backgroundimage1.module.css +17 -0
  164. package/src1-10/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
  165. package/src1-10/styles/sections/Section_with_rightbgcont.module.css +49 -0
  166. package/src1-10/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
  167. package/src1-10/styles/sections/Slideshow_with_squarebg.module.css +39 -0
  168. package/src1-10/styles/staticpages/accordion.module.css +9 -0
  169. package/src1-10/styles/staticpages/cart.module.css +108 -0
  170. package/src1-10/styles/staticpages/dropdown.css +196 -0
  171. package/src1-10/styles/staticpages/filter.module.css +139 -0
  172. package/src1-10/styles/staticpages/login.module.css +146 -0
  173. package/src1-10/styles/staticpages/productinfo.module.css +54 -0
  174. package/src1-10/styles/staticpages/shop.module.css +191 -0
  175. package/src1-10/styles/staticpages/signup.module.css +206 -0
  176. package/src1-10/styles/staticpages/staticroutersidenav.module.css +129 -0
  177. package/src1-10/styles/staticpages/viewcart.module.css +129 -0
  178. package/src1-10/styles/staticpages/wishlist.module.css +29 -0
@@ -0,0 +1,606 @@
1
+ import React, { useEffect, useState, useContext } from 'react';
2
+ import generalstyles from '../../../styles/general/general.module.css';
3
+ import wishliststyles from '../../../styles/staticpages/wishlist.module.css';
4
+ import { HiOutlineTrash } from 'react-icons/hi';
5
+ import { Modal } from 'react-bootstrap';
6
+ import { IoMdClose } from 'react-icons/io';
7
+ import { css } from 'glamor';
8
+ import Staticpagesrouter from '../Staticpagesrouter/Staticpagesrouter.jsx';
9
+ import shoppingcart from '../../../assets/images/shoppingcart.png';
10
+ import { IKImage } from 'imagekitio-react';
11
+ import { FiShoppingCart } from 'react-icons/fi';
12
+ import { FiShoppingBag } from 'react-icons/fi';
13
+ import { CgShoppingBag } from 'react-icons/cg';
14
+ import { BsBag } from 'react-icons/bs';
15
+ import { IoBagHandleOutline } from 'react-icons/io5';
16
+ import { MdOutlineShoppingCart } from 'react-icons/md';
17
+ import { IKpublicKey, IKurlEndpoint, serverbaselink } from '../../../../Env';
18
+ const Wishlist = (props) => {
19
+ const lang = props.actions.lang;
20
+ const langdetect = props.actions.langdetect;
21
+ const fetchFavoriteProductsQueryContext = props.actions.fetchFavoriteProductsQueryContext;
22
+ const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
23
+ const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
24
+ const addtofavoritescontext = props.actions.addtofavoritescontext;
25
+ const setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
26
+ const setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
27
+ const navigationstyle = props.actions.navigationstyle;
28
+ const pageindexcontext = props.actions.pageindexcontext;
29
+ const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
30
+ const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
31
+ const templatepropcontext = props.actions.templatepropcontext;
32
+ const actions = props.actions;
33
+ useEffect(() => {
34
+ if (Object.keys(StatePagePropertiesContext).length != 0) {
35
+ var secpropobj = {};
36
+ StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
37
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
38
+ });
39
+ setsectionproperties({ ...secpropobj });
40
+ }
41
+ }, [StatePagePropertiesContext]);
42
+ const [CurrentPageId, setCurrentPageId] = useState('');
43
+ useEffect(() => {
44
+ var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
45
+ tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
46
+ setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
47
+ }, []);
48
+ const [productidchoosed, setproductidchoosed] = useState('');
49
+ const [openModal, setopenModal] = useState(false);
50
+ const [sectionproperties, setsectionproperties] = useState('');
51
+ // useEffect(() => {
52
+ // var cartindex = templatepropcontext.pagesnprop.findIndex((x) => x.staticpageid == '6219120782afc');
53
+ // if (cartindex >= 0) {
54
+ // setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
55
+ // }
56
+ // }, []);
57
+ useEffect(() => {
58
+ if (Object.keys(StatePagePropertiesContext).length != 0) {
59
+ var secpropobj = {};
60
+ StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
61
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
62
+ });
63
+ setsectionproperties({ ...secpropobj });
64
+ }
65
+ }, [StatePagePropertiesContext]);
66
+ const wishlist_cssstyles = {
67
+ sectiontitlespan: css({
68
+ ':after': {
69
+ width: sectionproperties.sectitle_lineafterwidth + '%',
70
+ backgroundColor: sectionproperties.linebgcolor,
71
+ },
72
+ }),
73
+ sectiontitlespan2: css({
74
+ ':after': {
75
+ width: sectionproperties.sectitle_lineafterwidth + 'px',
76
+ height: '100%',
77
+ backgroundColor: sectionproperties.linebgcolor,
78
+ },
79
+ }),
80
+ pill: css({
81
+ minWidth: sectionproperties.pillwidth + 'px',
82
+ height: sectionproperties.pillheight + 'px',
83
+ backgroundColor: sectionproperties.pillbgcolor,
84
+ color: sectionproperties.pillcolor,
85
+ textTransform: sectionproperties.pillcolor,
86
+ fontWeight: sectionproperties.pillfontWeight,
87
+ fontSize: sectionproperties.pillfontSize + 'px',
88
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
89
+ }),
90
+ productNameStyles: css({
91
+ color: sectionproperties.prodNameColor,
92
+ fontSize: sectionproperties.prodNameFontSize + 'px',
93
+ textTransform: sectionproperties.prodNameTextTranform,
94
+ fontWeight: sectionproperties.prodNameFontWeight,
95
+ }),
96
+ productPricestyles: css({
97
+ color: sectionproperties.prodPriceColor,
98
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
99
+ fontWeight: sectionproperties.prodPriceFontWeight,
100
+ }),
101
+ productsalePricestyles: css({
102
+ color: sectionproperties.prodsalePriceColor,
103
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
104
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
105
+ }),
106
+ cart_btn: css({
107
+ width: sectionproperties.cartBtnWidth + 'px',
108
+ height: sectionproperties.cartBtnHeight + 'px',
109
+ background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
110
+ borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
111
+ color: sectionproperties.cartBtnTextcolor,
112
+ textTransform: sectionproperties.cartBtnTexttransform,
113
+ fontWeight: sectionproperties.cartBtnTextfontweight,
114
+ border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
115
+ transition: '.3s',
116
+ opacity: sectionproperties.cartbtn_opacity,
117
+ ':hover': {
118
+ background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
119
+ color: sectionproperties.cartBtnTextcoloronhover,
120
+ opacity: sectionproperties.cartbtn_opacityonhover,
121
+ },
122
+ }),
123
+ trash_btn: css({
124
+ width: sectionproperties.trashbtn_Width + 'px',
125
+ height: sectionproperties.trashbtn_Height + 'px',
126
+ background: sectionproperties.trashbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.trashbtn_bgColor,
127
+ color: sectionproperties.trashbtn_Textcolor,
128
+ borderRadius: sectionproperties.trashbtn_borderBottomLeftRadius + 'px',
129
+ transition: '.3s',
130
+ border: sectionproperties.trashbtn_borderwidth + 'px solid ' + sectionproperties.trashbtn_bordercolor,
131
+ ':hover': {
132
+ background: sectionproperties.trashbtn_bgColoronhover,
133
+ color: sectionproperties.trashbtn_Textcoloronhover,
134
+ },
135
+ }),
136
+ imagecont: css({
137
+ width: '70px',
138
+ height: '60px',
139
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
140
+ backgroundColor: sectionproperties.prodimage_bgcolor,
141
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
142
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
143
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
144
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
145
+ display: 'flex',
146
+ alignItems: 'center',
147
+ justifyContent: 'center',
148
+ backgroundRepeat: 'no-repeat',
149
+ backgroundSize: 'cover',
150
+ backgroundPosition: 'center',
151
+ position: 'relative',
152
+ }),
153
+ };
154
+ const [bgimagesarray, setbgimagesarray] = useState([]);
155
+ useEffect(() => {
156
+ if (sectionproperties.length != 0) {
157
+ if (sectionproperties.arrayofobjectimagesonly != null) {
158
+ var arrayofobjectimagesonlyparsed = JSON.parse(sectionproperties.arrayofobjectimagesonly);
159
+ if (Array.isArray(arrayofobjectimagesonlyparsed)) {
160
+ setbgimagesarray([...arrayofobjectimagesonlyparsed]);
161
+ }
162
+ }
163
+ }
164
+ }, [sectionproperties]);
165
+ return (
166
+ <div className={'row ml-0 mr-0 w-100'}>
167
+ {sectionproperties.showbgimage == 'Show' && (
168
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
169
+ <div
170
+ style={{
171
+ width: sectionproperties.image_width + 'vw',
172
+ height: sectionproperties.image_height + 'vh',
173
+ marginBottom: sectionproperties.image_mb + 'px',
174
+ position: 'relative',
175
+ }}
176
+ >
177
+ <IKImage
178
+ urlEndpoint={IKurlEndpoint}
179
+ publicKey={IKpublicKey}
180
+ path={
181
+ bgimagesarray.length != 0
182
+ ? langdetect == 'en'
183
+ ? '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image
184
+ : '/tr:w-3500,h-650/' + bgimagesarray[0]?.bgsection_image_ar
185
+ : ''
186
+ }
187
+ style={{
188
+ height: '100%',
189
+ width: '100%',
190
+ // objectFit: 'cover',
191
+ margin: 0,
192
+ padding: 0,
193
+ background: sectionproperties.image_bgcolor,
194
+ borderTopLeftRadius: sectionproperties.image_bordertopleftradius + 'px',
195
+ borderTopRightRadius: sectionproperties.image_bordertoprightradius + 'px',
196
+ borderBottomLeftRadius: sectionproperties.image_borderBottomLeftRadius + 'px',
197
+ borderBottomRightRadius: sectionproperties.image_borderBottomRightRadius + 'px',
198
+ zIndex: -1,
199
+ // transform: langdetect == 'en' ? 'scaleX(1)' : 'scaleX(-1)',
200
+ }}
201
+ />
202
+ <div
203
+ className={' col-lg-12 p-0 w-100 d-flex align-items-center justify-content-center '}
204
+ style={{
205
+ position: 'absolute',
206
+ top: 0,
207
+ right: 0,
208
+ bottom: 0,
209
+ left: 0,
210
+ }}
211
+ >
212
+ <p
213
+ className={' m-0 p-0 '}
214
+ style={{
215
+ fontSize: sectionproperties.imagetextfontsize + 'px',
216
+ color: sectionproperties.imagetextcolor,
217
+ textTransform: sectionproperties.imagetexttextTransform,
218
+ fontWeight: sectionproperties.imagetextfontWeight,
219
+ }}
220
+ >
221
+ {lang.mywishlist}
222
+ </p>
223
+ </div>
224
+ </div>
225
+ </div>
226
+ )}
227
+ <div className="col-lg-12 p-0">
228
+ <div
229
+ className={'row ml-0 mr-0 d-flex justify-content-center w-100 pl-md-3 pr-md-3 pl-sm-2 pr-sm-2'}
230
+ style={{
231
+ width: sectionproperties.width + 'vw',
232
+ marginTop: sectionproperties.marginTop + 'px',
233
+ marginBottom: sectionproperties.marginBottom + 'px',
234
+ paddingLeft: sectionproperties.paddingLeft + 'px',
235
+ paddingRight: sectionproperties.paddingRight + 'px',
236
+ paddingTop: sectionproperties.paddingTop + 'px',
237
+ paddingBottom: sectionproperties.paddingBottom + 'px',
238
+ background: sectionproperties.backgroundColor,
239
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
240
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
241
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
242
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
243
+ borderColor: sectionproperties.sectioncardbordercolor,
244
+ border: sectionproperties.sectioncardborderwidth + 'px solid',
245
+ }}
246
+ >
247
+ <div className={navigationstyle == 'Side Navigation' ? (langdetect == 'en' ? 'col-lg-3 pl-0 mb-md-3 p-md-0' : 'col-lg-3 pr-0 mb-md-3 p-md-0') : 'col-lg-12 p-0'}>
248
+ <Staticpagesrouter
249
+ currentpageprops={'Wishlist'}
250
+ actions={actions}
251
+ pillpropertiesprops={{
252
+ minWidth: sectionproperties.pillwidth + 'px',
253
+ height: sectionproperties.pillheight + 'px',
254
+ backgroundColor: sectionproperties.pillbgcolor,
255
+ color: sectionproperties.pillcolor,
256
+ textTransform: sectionproperties.pillcolor,
257
+ fontWeight: sectionproperties.pillfontWeight,
258
+ fontSize: sectionproperties.pillfontSize + 'px',
259
+ borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
260
+ }}
261
+ />
262
+ </div>
263
+ <div className={navigationstyle == 'Side Navigation' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'}>
264
+ {fetchFavoriteProductsQueryContext.isFetching && (
265
+ <div className="w-100 d-flex align-items-center justify-content-center" style={{ height: '50vh' }}>
266
+ {/* <Pagepreloader /> */}
267
+ </div>
268
+ )}
269
+ {!fetchFavoriteProductsQueryContext.isFetching && fetchFavoriteProductsQueryContext.isSuccess && (
270
+ <div className="row ml-0 mr-0 w-100 ">
271
+ <div className={'col-lg-12 d-flex w-100 p-0'}>
272
+ {sectionproperties.pagedesign == 'Design 1 (Cards)' && (
273
+ <div className={'row m-0 d-flex justify-content-center w-100'}>
274
+ {sectionproperties.sectiontitlestyle == 'Line Under Text' && (
275
+ <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0">
276
+ <div className={`${generalstyles.sectiontitlecont} `}>
277
+ <div
278
+ className={' col-lg-12 d-flex align-items-center p-0'}
279
+ style={{
280
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
281
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
282
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
283
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
284
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
285
+ }}
286
+ >
287
+ <span
288
+ className={`${wishlist_cssstyles.sectiontitlespan}`}
289
+ style={{
290
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
291
+ color: sectionproperties.sectionTitleColor,
292
+
293
+ textTransform: sectionproperties.sectionTitleTextTransform,
294
+ fontWeight: sectionproperties.sectionTitleFontWeight,
295
+ }}
296
+ >
297
+ {lang.mywishlist}
298
+ </span>
299
+ <span className={` ${wishlist_cssstyles.pill}` + ' ml-1 mr-1 d-flex align-items-center justify-content-center '}>
300
+ {fetchFavoriteProductsQueryContext.data.data.products.length}
301
+ </span>
302
+ </div>
303
+ </div>
304
+ </div>
305
+ )}
306
+ {sectionproperties.sectiontitlestyle == 'Line Before Text' && (
307
+ <div
308
+ className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0"
309
+ style={{
310
+ justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
311
+ }}
312
+ >
313
+ <div
314
+ className={`${generalstyles.sectiontitlecont2}`}
315
+ style={{
316
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
317
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
318
+ marginLeft: sectionproperties.sectionTitleMarginLeft + 'px',
319
+ marginRight: sectionproperties.sectionTitleMarginRight + 'px',
320
+ }}
321
+ >
322
+ <span
323
+ className={`${wishlist_cssstyles.sectiontitlespan2}` + ' pl-3 '}
324
+ style={{
325
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
326
+ color: sectionproperties.sectionTitleColor,
327
+ textTransform: sectionproperties.sectionTitleTextTransform,
328
+ fontWeight: sectionproperties.sectionTitleFontWeight,
329
+ }}
330
+ >
331
+ My
332
+ <br />
333
+ Wishlist:
334
+ </span>
335
+ <span className={` ${wishlist_cssstyles.pill}` + ' ml-1 mr-1 pl-2 pr-2 d-flex align-items-center justify-content-center mt-auto mb-2 '}>
336
+ {fetchFavoriteProductsQueryContext.data.data.products.length}
337
+ </span>
338
+ </div>
339
+ </div>
340
+ )}
341
+ <div className={langdetect == 'en' ? ' col-lg-12 co-md-12 pl-0 p-sm-0 ' : ' col-lg-12 co-md-12 pr-0 p-sm-0 '}>
342
+ <div className="row m-0 w-100">
343
+ {fetchFavoriteProductsQueryContext.data.data.products.map((item, index) => {
344
+ return (
345
+ <div className="col-lg-3 col-md-6 col-sm-12 mb-5">
346
+ <div className={`${wishliststyles.wishlist_card}` + ' row m-0 w-100 '}>
347
+ <div className="col-lg-12 d-flex align-items-center justify-content-center p-0">
348
+ <div
349
+ className={`${wishliststyles.image_container}`}
350
+ style={{ backgroundImage: `url(${serverbaselink + item.productmainimage})` }}
351
+ >
352
+ <span
353
+ className={`${wishliststyles.floatbtn} ${wishlist_cssstyles.trash_btn}`}
354
+ onClick={() => {
355
+ addtofavoritescontext(item.productid);
356
+ }}
357
+ >
358
+ <HiOutlineTrash size={sectionproperties.trashbtn_fontSize} />
359
+ </span>
360
+ </div>
361
+ </div>
362
+ <div className="col-lg-12 d-flex align-items-center justify-content-center mt-3">
363
+ <p
364
+ className={
365
+ `${wishlist_cssstyles.productNameStyles}` +
366
+ ' wordbreak text-center m-0 p-0 d-flex align-items-center justify-content-center '
367
+ }
368
+ >
369
+ {item.name_en}
370
+ </p>
371
+ </div>
372
+ <div className="col-lg-12 d-flex align-items-center justify-content-center mb-2">
373
+ <p className={`${wishlist_cssstyles.productPricestyles}` + ' m-0 p-0 wordbreak '}>
374
+ {item.defaultsaleprice} {langdetect == 'en' ? 'EGP' : 'ج.م'}
375
+ </p>
376
+ <p className={`${wishlist_cssstyles.productsalePricestyles}` + ' linethrough m-0 p-0 mr-2 ml-2 wordbreak '}>
377
+ {item.defaultprice} {langdetect == 'en' ? 'EGP' : 'ج.م'}
378
+ </p>
379
+ </div>
380
+ <div className="col-lg-12 d-flex align-items-center justify-content-center p-0 ">
381
+ <button
382
+ className={` ${wishlist_cssstyles.cart_btn}`}
383
+ onClick={() => {
384
+ setShowProductInfoModalContext(true);
385
+ setProductIdProdutInfoModalContext(item.productid);
386
+ }}
387
+ style={{
388
+ fontSize: sectionproperties.cartBtnTextfontsize + 'px',
389
+ }}
390
+ >
391
+ {lang.addtocart}
392
+ </button>
393
+ </div>
394
+ </div>
395
+ </div>
396
+ );
397
+ })}
398
+ </div>
399
+ {fetchFavoriteProductsQueryContext.data.data.products.length == 0 && (
400
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100" style={{ height: '50vh' }}>
401
+ <div className={' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
402
+ <img src={shoppingcart} style={{ maxWidth: '250px', maxHeight: '250px' }} />
403
+ <p className="m-0 p-0" style={{ fontSize: '15px' }}>
404
+ {lang.nofavoriteproducts}
405
+ </p>
406
+ </div>
407
+ </div>
408
+ )}
409
+ </div>
410
+ </div>
411
+ )}
412
+ {sectionproperties.pagedesign == 'Design 2 (Table)' && (
413
+ <div className={' row m-0 w-100 p-sm-3 '} style={{ background: 'white', padding: '20px', minHeight: '70vh' }}>
414
+ <div className={' col-lg-12 table_responsive p-0 '}>
415
+ <table className={'table table_thbg'}>
416
+ <thead className="" style={{ background: '#eee' }}>
417
+ <th
418
+ className={
419
+ langdetect == 'en'
420
+ ? 'text-left font-weight-500 font-14 text-light mw-150 mw-md-300'
421
+ : 'text-right font-weight-500 font-14 text-light mw-150 mw-md-300'
422
+ }
423
+ >
424
+ {lang.productname}{' '}
425
+ </th>
426
+ <th className="text-center font-weight-500 font-14 text-light" style={{ minWidth: '200px' }}>
427
+ {lang.price}
428
+ </th>
429
+ <th className="text-center font-weight-500 font-14 text-light" style={{ minWidth: '100px' }}>
430
+ {lang.addtocart}
431
+ </th>
432
+ <th className="text-center font-weight-500 font-14 text-light">{lang.remove}</th>
433
+ </thead>
434
+ <tbody>
435
+ {fetchFavoriteProductsQueryContext.data.data.products.map((item, index) => {
436
+ return (
437
+ <tr className="border-none">
438
+ <td className="mw-150 mw-md-300">
439
+ <div className="row m-0 w-100 d-flex align-items-center">
440
+ <div className={`${wishlist_cssstyles.imagecont}`}>
441
+ <IKImage
442
+ path={item.productmainimage}
443
+ style={{
444
+ width: '100%',
445
+ height: '100%',
446
+ objectFit: 'cover',
447
+ }}
448
+ loading="lazy"
449
+ />
450
+ </div>
451
+ <div className="col-lg-9 col-md-9 col-sm-8 pl-1 pr-1">
452
+ <p
453
+ className={
454
+ `${wishlist_cssstyles.productNameStyles}` + ' m-0 p-0 wordbreak wordbreak3 d-flex justify-content-start '
455
+ }
456
+ >
457
+ {item.name_en}
458
+ </p>
459
+ </div>
460
+ </div>
461
+ </td>
462
+ <td style={{ minWidth: '200px' }}>
463
+ <div className="row m-0 w-100 d-flex flex-column justify-content-center">
464
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
465
+ <p
466
+ className={
467
+ `${wishlist_cssstyles.productPricestyles}` +
468
+ ' m-0 p-0 wordbreak d-flex align-items-center justify-content-center '
469
+ }
470
+ >
471
+ {langdetect == 'en' ? 'EGP' : ''} {item.defaultsaleprice}
472
+ {langdetect == 'en' ? '' : 'ج.م'}
473
+ </p>
474
+ </div>
475
+ <div className="col-lg-12 p-0 d-flex justify-content-center">
476
+ <p
477
+ className={
478
+ `${wishlist_cssstyles.productsalePricestyles}` +
479
+ ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-center '
480
+ }
481
+ >
482
+ {langdetect == 'en' ? 'EGP' : ''} {item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
483
+ </p>
484
+ </div>
485
+ </div>
486
+ </td>
487
+ <td className="text-center" style={{ minWidth: '100px' }}>
488
+ <button
489
+ className={`${wishlist_cssstyles.cart_btn}`}
490
+ onClick={() => {
491
+ setShowProductInfoModalContext(true);
492
+ setProductIdProdutInfoModalContext(item.productid);
493
+ }}
494
+ >
495
+ {sectionproperties.carticonstyle == 'Shopping bag 1' && (
496
+ <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />
497
+ )}
498
+ {sectionproperties.carticonstyle == 'Shopping bag 2' && (
499
+ <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />
500
+ )}
501
+ {sectionproperties.carticonstyle == 'Shopping bag 3' && (
502
+ <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />
503
+ )}
504
+ {sectionproperties.carticonstyle == 'Shopping bag 4' && (
505
+ <IoBagHandleOutline className="" size={sectionproperties.cartBtn_iconFontSize} />
506
+ )}
507
+ {sectionproperties.carticonstyle == 'Shopping cart 1' && (
508
+ <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />
509
+ )}
510
+ {sectionproperties.carticonstyle == 'Shopping cart 2' && (
511
+ <MdOutlineShoppingCart size={sectionproperties.cartBtn_iconFontSize} />
512
+ )}
513
+ </button>
514
+ </td>
515
+ <td className="text-center">
516
+ <button
517
+ className={
518
+ ` ${wishlist_cssstyles.trash_btn}` +
519
+ ' d-flex align-items-center justify-content-center text-uppercase font-weight-500 m-auto '
520
+ }
521
+ onClick={() => {
522
+ addtofavoritescontext(item.productid);
523
+ }}
524
+ style={{
525
+ fontSize: sectionproperties.trashbtn_Textfontsize + 'px',
526
+ }}
527
+ >
528
+ {lang.remove}
529
+ </button>
530
+ </td>
531
+ </tr>
532
+ );
533
+ })}
534
+ </tbody>
535
+ </table>
536
+ {fetchFavoriteProductsQueryContext.data.data.products.length == 0 && (
537
+ <div className="row m-0 w-100 d-flex align-items-center justify-content-center pt-5 pb-5">
538
+ <div className={' col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100 pt-5 pb-5 '}>
539
+ <img src={shoppingcart} style={{ maxWidth: '250px', maxHeight: '250px' }} />
540
+ <p className="m-0 p-0 wordbreak" style={{ fontSize: '15px' }}>
541
+ {lang.nofavoriteproducts}
542
+ </p>
543
+ </div>
544
+ </div>
545
+ )}
546
+ </div>
547
+ </div>
548
+ )}
549
+ </div>
550
+ </div>
551
+ )}
552
+ </div>
553
+ </div>
554
+ <div className="col-lg-12 d-flex align-items-center justify-content-center p-0 ">
555
+ {/* {pageindexcontext.length != 0 && Object.keys(StatePagePropertiesContext).length != 0 && (
556
+ <div className={generalstyles.app_container + ' w-100 '} style={{ position: 'relative' }}>
557
+ {StatePagePropertiesContext.pageobj.sections.map((item, index) => {
558
+ if (item.tabexsectioninfo != null && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined && item.componenttype == 'section') {
559
+ var sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
560
+ return (
561
+ <div className="row w-100 ml-0 mr-0 d-flex justify-content-center p-0">
562
+ {item.tabexsectioninfo.sectiontype == 'Cards' && (
563
+ <ProductsCardsSectionContext_Provider>
564
+ {React.createElement(sectioncomp, {
565
+ sectionidprops: item.sectionid,
566
+ sectionindexprops: index,
567
+ srcfromprops: 'GeneralProductsComponent',
568
+ collectionidprops: collectionidparams,
569
+ })}
570
+ </ProductsCardsSectionContext_Provider>
571
+ )}
572
+ {item.tabexsectioninfo.sectiontype != 'Cards' && React.createElement(sectioncomp, { sectionidprops: item.sectionid, sectionindexprops: index })}
573
+ </div>
574
+ );
575
+ }
576
+ })}
577
+ </div>
578
+ )} */}
579
+ </div>
580
+ </div>
581
+ {/* <Modal show={openModal} onHide={() => setopenModal(false)} centered size="xl">
582
+ <Modal.Header style={{ paddingBottom: 0 }}>
583
+ <div className="row w-100 m-0">
584
+ <div className={langdetect == 'en' ? 'col-lg-10 col-md-10 col-sm-10' : 'col-lg-10 col-md-10 col-sm-10 text-right'}>
585
+ <p className="modal-title mb-0">Product Information</p>
586
+ </div>
587
+ <div className="col-lg-2 col-md-2 col-sm-2">
588
+ <div className={langdetect == 'en' ? 'close-modal-container ml-auto' : 'close-modal-container mr-auto'} onClick={() => setopenModal(false)}>
589
+ <IoMdClose size={18} />
590
+ </div>
591
+ </div>
592
+ <div className="col-lg-12">
593
+ <hr className="mt-1 mb-1" />
594
+ </div>
595
+ </div>
596
+ </Modal.Header>
597
+ <Modal.Body>
598
+ <div className={'row ml-0 mr-0 mt-2 w-100 pb-3 mb-3'}>
599
+ <Productinfo productidprops={productidchoosed} />
600
+ </div>
601
+ </Modal.Body>
602
+ </Modal> */}
603
+ </div>
604
+ );
605
+ };
606
+ export default Wishlist;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file