tabexseriescomponents 0.0.80 → 0.0.82
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.
- package/dist/index.cjs.js +41 -13
- package/dist/index.esm.js +41 -13
- package/dist/index.umd.js +41 -13
- package/package.json +1 -1
- package/componentssrc.rar +0 -0
- package/srcOLD/Contexts/LanguageContext.jsx +0 -347
- package/srcOLD/Contexts/ProductsCardsSectionContext.jsx +0 -28
- package/srcOLD/StylesJS/Customstyles.js +0 -235
- package/srcOLD/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -214
- package/srcOLD/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -258
- package/srcOLD/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -206
- package/srcOLD/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -176
- package/srcOLD/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -207
- package/srcOLD/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -162
- package/srcOLD/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -193
- package/srcOLD/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -158
- package/srcOLD/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -286
- package/srcOLD/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -558
- package/srcOLD/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -486
- package/srcOLD/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -300
- package/srcOLD/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -288
- package/srcOLD/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -307
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -295
- package/srcOLD/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -325
- package/srcOLD/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -290
- package/srcOLD/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -303
- package/srcOLD/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -466
- package/srcOLD/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -282
- package/srcOLD/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -298
- package/srcOLD/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -139
- package/srcOLD/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -135
- package/srcOLD/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -304
- package/srcOLD/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -291
- package/srcOLD/TabexComponents/Footer/Footer1/Footer1.jsx +0 -418
- package/srcOLD/TabexComponents/Footer/Footer2/Footer2.jsx +0 -382
- package/srcOLD/TabexComponents/Footer/Footer3/Footer3.jsx +0 -308
- package/srcOLD/TabexComponents/Footer/Footer4/Footer4.jsx +0 -438
- package/srcOLD/TabexComponents/Footer/Footer5/Footer5.jsx +0 -495
- package/srcOLD/TabexComponents/Footer/Footer6/Footer6.jsx +0 -295
- package/srcOLD/TabexComponents/Footer/Footer7/Footer7.jsx +0 -373
- package/srcOLD/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -238
- package/srcOLD/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcOLD/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcOLD/TabexComponents/Headers/AllinoneHeader/AllinoneHeader.jsx +0 -724
- package/srcOLD/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -687
- package/srcOLD/TabexComponents/Headers/Header4/Header4.jsx +0 -632
- package/srcOLD/TabexComponents/Headers/Header6/Header6.jsx +0 -669
- package/srcOLD/TabexComponents/Headers/Header8/Header8.jsx +0 -882
- package/srcOLD/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -754
- package/srcOLD/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -798
- package/srcOLD/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -686
- package/srcOLD/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -938
- package/srcOLD/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -706
- package/srcOLD/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -821
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -228
- package/srcOLD/TabexComponents/Headers/Subheader/Subheader.jsx +0 -251
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -312
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -278
- package/srcOLD/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -138
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -160
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -295
- package/srcOLD/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -784
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -861
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.js +0 -496
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection7/CardsSection7.js +0 -888
- package/srcOLD/TabexComponents/Sections/Cards/CardsSection8/CardsSection8.js +0 -419
- package/srcOLD/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.js +0 -552
- package/srcOLD/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -281
- package/srcOLD/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -166
- package/srcOLD/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -152
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -284
- package/srcOLD/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -146
- package/srcOLD/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -209
- package/srcOLD/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -145
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -252
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -175
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -154
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -201
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -414
- package/srcOLD/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -270
- package/srcOLD/TabexComponents/StaticPages/Aboutus/Aboutus.js +0 -175
- package/srcOLD/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -275
- package/srcOLD/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -459
- package/srcOLD/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.js +0 -146
- package/srcOLD/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -1220
- package/srcOLD/TabexComponents/StaticPages/Filter/Filter.jsx +0 -542
- package/srcOLD/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -51
- package/srcOLD/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcOLD/TabexComponents/StaticPages/Login/Login.jsx +0 -299
- package/srcOLD/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.js +0 -192
- package/srcOLD/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1285
- package/srcOLD/TabexComponents/StaticPages/Policies/Policies.jsx +0 -358
- package/srcOLD/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -1506
- package/srcOLD/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -225
- package/srcOLD/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -788
- package/srcOLD/TabexComponents/StaticPages/Signup/Signup.jsx +0 -157
- package/srcOLD/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -295
- package/srcOLD/TabexComponents/StaticPages/Viewcart/Viewcart.js +0 -1090
- package/srcOLD/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -629
- package/srcOLD/assets/images/cod.png +0 -0
- package/srcOLD/assets/images/egyptflag.png +0 -0
- package/srcOLD/assets/images/fawry.png +0 -0
- package/srcOLD/assets/images/payment.png +0 -0
- package/srcOLD/assets/images/paymob.png +0 -0
- package/srcOLD/assets/images/paypal.png +0 -0
- package/srcOLD/assets/images/shoppingcart.png +0 -0
- package/srcOLD/assets/images/usflag.png +0 -0
- package/srcOLD/assets/images/visa.png +0 -0
- package/srcOLD/assets/images/whatsapp.png +0 -0
- package/srcOLD/button.jsx +0 -40
- package/srcOLD/index.jsx +0 -175
- package/srcOLD/styles/Home.module.css +0 -129
- package/srcOLD/styles/cards/Categorcycard_fullimage.module.css +0 -10
- package/srcOLD/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/srcOLD/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/srcOLD/styles/cards/Productcard6.module.css +0 -9
- package/srcOLD/styles/cards/Productcard_with_circularbg.module.css +0 -137
- package/srcOLD/styles/cards/Productccard_with_zoominonhover.module.css +0 -51
- package/srcOLD/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/srcOLD/styles/cards/categorycard.module.css +0 -102
- package/srcOLD/styles/cards/categorycard3.module.css +0 -51
- package/srcOLD/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcOLD/styles/cards/productcard_animatedbuttons.module.css +0 -104
- package/srcOLD/styles/cards/productcard_with_textonhover.module.css +0 -12
- package/srcOLD/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcOLD/styles/general/bootstrap.css +0 -4420
- package/srcOLD/styles/general/dropdown.css +0 -199
- package/srcOLD/styles/general/editorbardropdown.module.css +0 -94
- package/srcOLD/styles/general/filter.module.css +0 -108
- package/srcOLD/styles/general/form.module.css +0 -273
- package/srcOLD/styles/general/general.module.css +0 -709
- package/srcOLD/styles/general/image-gallery.css +0 -481
- package/srcOLD/styles/general/react-accessible-accordion.module.css +0 -52
- package/srcOLD/styles/general/react-phone-input-2.module.css +0 -927
- package/srcOLD/styles/general/scrollbtn.module.css +0 -22
- package/srcOLD/styles/general/slick.module.css +0 -166
- package/srcOLD/styles/general/tabs.module.css +0 -110
- package/srcOLD/styles/general/workplaceeditor.module.css +0 -328
- package/srcOLD/styles/globals.css +0 -26
- package/srcOLD/styles/headers/Allinoneheader.module.css +0 -91
- package/srcOLD/styles/headers/Header7.module.css +0 -50
- package/srcOLD/styles/headers/Header_threesectionslogocentered.module.css +0 -97
- package/srcOLD/styles/headers/Sideheader.module.css +0 -108
- package/srcOLD/styles/headers/classicheaderstyles.module.css +0 -16
- package/srcOLD/styles/headers/dropdown.css +0 -0
- package/srcOLD/styles/headers/header4.module.css +0 -175
- package/srcOLD/styles/headers/header5.module.css +0 -30
- package/srcOLD/styles/headers/header6.module.css +0 -117
- package/srcOLD/styles/headers/header_contactinfo.module.css +0 -78
- package/srcOLD/styles/headers/headerresturant.module.css +0 -89
- package/srcOLD/styles/headers/headerstyles.module.css +0 -24
- package/srcOLD/styles/headers/modernheader.module.css +0 -78
- package/srcOLD/styles/headers/subheader.module.css +0 -114
- package/srcOLD/styles/sections/Backgroundimage1.module.css +0 -17
- package/srcOLD/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/srcOLD/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/srcOLD/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/srcOLD/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/srcOLD/styles/staticpages/accordion.module.css +0 -9
- package/srcOLD/styles/staticpages/cart.module.css +0 -108
- package/srcOLD/styles/staticpages/dropdown.css +0 -196
- package/srcOLD/styles/staticpages/filter.module.css +0 -139
- package/srcOLD/styles/staticpages/login.module.css +0 -146
- package/srcOLD/styles/staticpages/productinfo.module.css +0 -54
- package/srcOLD/styles/staticpages/shop.module.css +0 -191
- package/srcOLD/styles/staticpages/signup.module.css +0 -206
- package/srcOLD/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/srcOLD/styles/staticpages/viewcart.module.css +0 -129
- package/srcOLD/styles/staticpages/wishlist.module.css +0 -29
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
|
|
3
|
-
// import { BrowserRouter as Router, useHistory } from 'react-router-dom';
|
|
4
|
-
// import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
|
|
5
|
-
// import { FetchingContext } from '../../../../../../../Contexts/FetchingContext';
|
|
6
|
-
// import { WebsiteDesignWorkPlaceContext } from '../../../../../../../Contexts/WebsiteDesignWorkPlaceContext';
|
|
7
|
-
// import { TemplateRoutingContext } from '../../../../../../../Contexts/TemplateRoutingContext';
|
|
8
|
-
import { css } from 'glamor';
|
|
9
|
-
// import { useMutation, useQuery, useQueryClient } from 'react-query';
|
|
10
|
-
|
|
11
|
-
// import Loader from 'react-loader-spinner';
|
|
12
|
-
import { MdOutlineLayersClear } from 'react-icons/md';
|
|
13
|
-
import { IKImage } from 'imagekitio-react';
|
|
14
|
-
import { IKpublicKey, IKurlEndpoint } from '../../../../Env';
|
|
15
|
-
const Searchlist = (props) => {
|
|
16
|
-
// // let history = useHistory();
|
|
17
|
-
// const { routingcountext, StaticPagesLinksContext } = useContext(TemplateRoutingContext);
|
|
18
|
-
// const { lang, langdetect } = useContext(LanguageContext);
|
|
19
|
-
// const {
|
|
20
|
-
// SearchHeaderInputContext,
|
|
21
|
-
// SearchHeaderMutationContext,
|
|
22
|
-
// } = useContext(FetchingContext);
|
|
23
|
-
const lang = props.actions.lang;
|
|
24
|
-
const langdetect = props.actions.langdetect;
|
|
25
|
-
const routingcountext = props.actions.routingcountext;
|
|
26
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
27
|
-
const SearchHeaderInputContext = props.actions.SearchHeaderInputContext;
|
|
28
|
-
const SearchHeaderMutationContext = props.actions.SearchHeaderMutationContext;
|
|
29
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
30
|
-
const [searchinput, setsearchinput] = useState(props.srcfromprops == 'cardssection' ? props.searchinputprops : SearchHeaderInputContext);
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
setsectionproperties(props.sectionpropertiesprops);
|
|
33
|
-
}, [props.sectionpropertiesprops]);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (props.srcfromprops != 'cardssection') {
|
|
36
|
-
setsearchinput(SearchHeaderInputContext);
|
|
37
|
-
}
|
|
38
|
-
}, [SearchHeaderInputContext]);
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
if (props.srcfromprops == 'cardssection') {
|
|
41
|
-
setsearchinput(props.searchinputprops);
|
|
42
|
-
}
|
|
43
|
-
}, [props.searchinputprops]);
|
|
44
|
-
const searchlist_styles = {
|
|
45
|
-
searchcont: css({
|
|
46
|
-
color: sectionproperties.searchlist_prodNameColor,
|
|
47
|
-
':hover': {
|
|
48
|
-
color: sectionproperties.searchlist_prodNameColorOnHover,
|
|
49
|
-
},
|
|
50
|
-
}),
|
|
51
|
-
productNameStyles: css({
|
|
52
|
-
fontSize: sectionproperties.searchlist_prodNameFontSize + 'px',
|
|
53
|
-
textTransform: sectionproperties.searchlist_prodNameTextTranform,
|
|
54
|
-
fontWeight: sectionproperties.searchlist_prodNameFontWeight,
|
|
55
|
-
marginBottom: 4,
|
|
56
|
-
transition: '.3s',
|
|
57
|
-
cursor: 'pointer',
|
|
58
|
-
':hover': {
|
|
59
|
-
color: sectionproperties.searchlist_prodNameColorOnHover,
|
|
60
|
-
},
|
|
61
|
-
}),
|
|
62
|
-
productPricestyles: css({
|
|
63
|
-
color: sectionproperties.searchlist_prodPriceColor,
|
|
64
|
-
fontSize: sectionproperties.searchlist_prodpriceFontSize + 'px',
|
|
65
|
-
fontWeight: sectionproperties.searchlist_prodPriceFontWeight,
|
|
66
|
-
}),
|
|
67
|
-
productSalePricestyles: css({
|
|
68
|
-
color: sectionproperties.searchlist_prodsalePriceColor,
|
|
69
|
-
fontSize: sectionproperties.searchlist_prodsalepriceFontSize + 'px',
|
|
70
|
-
fontWeight: sectionproperties.searchlist_prodsalePriceFontWeight,
|
|
71
|
-
}),
|
|
72
|
-
imagecont: css({
|
|
73
|
-
width: sectionproperties.searchlist_prodimage_width + 'px',
|
|
74
|
-
height: sectionproperties.searchlist_prodimage_height + 'px',
|
|
75
|
-
borderRadius: sectionproperties.searchlist_prodimage_borderradius + 'px',
|
|
76
|
-
display: 'flex',
|
|
77
|
-
alignItems: 'center',
|
|
78
|
-
justifyContent: 'center',
|
|
79
|
-
position: 'relative',
|
|
80
|
-
}),
|
|
81
|
-
searchlist_outercontainer: css({
|
|
82
|
-
position: 'absolute',
|
|
83
|
-
background: sectionproperties.searchlistcontainer_bgcolor,
|
|
84
|
-
borderRadius: sectionproperties.searchlistcontainer_borderradius + 'px',
|
|
85
|
-
border: sectionproperties.searchlistcontainer_borderwidth + 'px solid ' + sectionproperties.searchlistcontainer_bordercolor,
|
|
86
|
-
zIndex: 1000,
|
|
87
|
-
maxHeight: '50vh',
|
|
88
|
-
}),
|
|
89
|
-
searchlist_innercontainer: css({
|
|
90
|
-
height: '30vh',
|
|
91
|
-
overflowY: 'scroll',
|
|
92
|
-
}),
|
|
93
|
-
};
|
|
94
|
-
return (
|
|
95
|
-
<div className="col-lg-12 p-0 m-0 w-100" style={{ zIndex: 1000 }}>
|
|
96
|
-
{sectionproperties.length != 0 && searchinput != undefined && searchinput != null && searchinput.length != 0 && (
|
|
97
|
-
<div
|
|
98
|
-
className={
|
|
99
|
-
props.srcfromprops == 'header'
|
|
100
|
-
? `${searchlist_styles.searchlist_outercontainer}` + ' m-0 row d-flex d-md-none justify-content-center p-1 '
|
|
101
|
-
: `${searchlist_styles.searchlist_outercontainer}` + ' m-0 row d-flex justify-content-center p-1 '
|
|
102
|
-
}
|
|
103
|
-
style={{
|
|
104
|
-
zIndex: 1000,
|
|
105
|
-
width:
|
|
106
|
-
props.srcfromprops == 'header'
|
|
107
|
-
? '300px'
|
|
108
|
-
: props.srcfromprops == 'headerfullwidth'
|
|
109
|
-
? '100%'
|
|
110
|
-
: props.srcfromprops == 'headerfullwidth-200'
|
|
111
|
-
? '270px'
|
|
112
|
-
: props.srcfromprops == 'respheader'
|
|
113
|
-
? '100%'
|
|
114
|
-
: props.srcfromprops == 'header-400'
|
|
115
|
-
? '400px'
|
|
116
|
-
: props.srcfromprops == 'header-250'
|
|
117
|
-
? '250px'
|
|
118
|
-
: props.srcfromprops == 'header-300'
|
|
119
|
-
? '300px'
|
|
120
|
-
: '100%',
|
|
121
|
-
top: props.srcfromprops == 'respheader' ? 10 : 10,
|
|
122
|
-
left:
|
|
123
|
-
props.srcfromprops == 'respheader'
|
|
124
|
-
? 0
|
|
125
|
-
: props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250'
|
|
126
|
-
? langdetect == 'en'
|
|
127
|
-
? ''
|
|
128
|
-
: 0
|
|
129
|
-
: '',
|
|
130
|
-
right:
|
|
131
|
-
props.srcfromprops == 'respheader'
|
|
132
|
-
? 0
|
|
133
|
-
: props.srcfromprops == 'header-400' || props.srcfromprops == 'header-300' || props.srcfromprops == 'header-250'
|
|
134
|
-
? langdetect == 'en'
|
|
135
|
-
? 0
|
|
136
|
-
: ''
|
|
137
|
-
: '',
|
|
138
|
-
margin: props.srcfromprops == 'respheader' ? 'auto' : '',
|
|
139
|
-
}}
|
|
140
|
-
>
|
|
141
|
-
{SearchHeaderMutationContext.isLoading && (
|
|
142
|
-
<div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100 mt-3 mb-3">
|
|
143
|
-
<div className="col-lg-12 d-flex align-items-center justify-content-center flex-column h-100">
|
|
144
|
-
{/* <Loader
|
|
145
|
-
type="ThreeDots"
|
|
146
|
-
color="var(--light)"
|
|
147
|
-
height={50}
|
|
148
|
-
width={50}
|
|
149
|
-
timeout={100000}
|
|
150
|
-
//3 secs
|
|
151
|
-
/> */}
|
|
152
|
-
</div>
|
|
153
|
-
</div>
|
|
154
|
-
)}
|
|
155
|
-
{!SearchHeaderMutationContext.isLoading && SearchHeaderMutationContext.isSuccess && (
|
|
156
|
-
<div className={`${searchlist_styles.searchlist_innercontainer}` + ' subscrollbar row m-0 w-100 d-flex justify-content-center p-0 '}>
|
|
157
|
-
<div className="col-lg-12 m-0 w-100 p-0">
|
|
158
|
-
{SearchHeaderMutationContext.data.data.products.map((item, index) => {
|
|
159
|
-
return (
|
|
160
|
-
<div
|
|
161
|
-
className="col-lg-12 m-0 w-100 p-1 pt-0 pb-0"
|
|
162
|
-
style={{ zIndex: 1000 }}
|
|
163
|
-
onClick={() => {
|
|
164
|
-
routingcountext(StaticPagesLinksContext.productinfo, true, item.productid);
|
|
165
|
-
}}
|
|
166
|
-
>
|
|
167
|
-
<div className={`${searchlist_styles.searchcont}` + ' col-lg-12 col-md-12 d-flex p-0 cursor-pointer '}>
|
|
168
|
-
<div className={searchlist_styles.imagecont}>
|
|
169
|
-
<IKImage
|
|
170
|
-
urlEndpoint={IKurlEndpoint}
|
|
171
|
-
publicKey={IKpublicKey}
|
|
172
|
-
path={item.defaultimagepath}
|
|
173
|
-
loading="lazy"
|
|
174
|
-
style={{
|
|
175
|
-
height: '100%',
|
|
176
|
-
width: '100%',
|
|
177
|
-
objectFit: 'contain',
|
|
178
|
-
}}
|
|
179
|
-
/>
|
|
180
|
-
</div>
|
|
181
|
-
<div className="col-lg-10 col-md-11 col-sm-9 pl-1 pr-0">
|
|
182
|
-
<div className="row m-0 w-100 d-flex align-items-start">
|
|
183
|
-
<div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start">
|
|
184
|
-
<p className={`${searchlist_styles.productNameStyles}` + ' m-0 text-overflow p-0 '}>{langdetect == 'en' ? item.name_en : item.name_ar}</p>
|
|
185
|
-
</div>
|
|
186
|
-
|
|
187
|
-
<div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center mt-n1">
|
|
188
|
-
<p className={`${searchlist_styles.productPricestyles}` + ' m-0 '}>
|
|
189
|
-
{langdetect == 'en' ? 'EGP' : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
|
|
190
|
-
</p>
|
|
191
|
-
|
|
192
|
-
{item.hassale == 1 && (
|
|
193
|
-
<p className={`${searchlist_styles.productSalePricestyles}` + ' linethrough ml-2 mr-2 mb-0'}>
|
|
194
|
-
{langdetect == 'en' ? 'EGP' : ''} {item.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
|
|
195
|
-
</p>
|
|
196
|
-
)}
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
</div>
|
|
201
|
-
{index != SearchHeaderMutationContext.data.data.products.length - 1 && (
|
|
202
|
-
<div className="col-lg-12 col-md-12 p-0">
|
|
203
|
-
<hr className="mt-2 mb-1" />
|
|
204
|
-
</div>
|
|
205
|
-
)}
|
|
206
|
-
</div>
|
|
207
|
-
);
|
|
208
|
-
})}
|
|
209
|
-
{SearchHeaderMutationContext.data.data.products.length == 0 && (
|
|
210
|
-
<div className="row m-0 w-100 d-flex align-items-center justify-content-center h-100">
|
|
211
|
-
<div className="col-lg-12 d-flex align-items-center justify-content-center text-light flex-column h-100">
|
|
212
|
-
<MdOutlineLayersClear size={25} />
|
|
213
|
-
<p className="font-13 font-weight-500">{lang.nosearchresults}</p>
|
|
214
|
-
</div>
|
|
215
|
-
</div>
|
|
216
|
-
)}
|
|
217
|
-
</div>
|
|
218
|
-
</div>
|
|
219
|
-
)}
|
|
220
|
-
</div>
|
|
221
|
-
)}
|
|
222
|
-
</div>
|
|
223
|
-
);
|
|
224
|
-
};
|
|
225
|
-
export default Searchlist;
|