tabexseriescomponents 0.0.79 → 0.0.81

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