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