tabexseriescomponents 0.2.1069 → 0.2.1071
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 +854 -484
- package/dist/index.esm.js +854 -484
- package/dist/index.umd.js +854 -484
- package/package.json +1 -1
- package/srcbefore27-11/Contexts/LanguageContext.jsx +408 -0
- package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +36 -0
- package/srcbefore27-11/Imagekitconfig copy.jsx +46 -0
- package/srcbefore27-11/Imagekitconfig.jsx +178 -0
- package/srcbefore27-11/StylesJS/Customstyles.js +456 -0
- package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +538 -0
- package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +299 -0
- package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +388 -0
- package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +288 -0
- package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +1630 -0
- package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +733 -0
- package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +453 -0
- package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +394 -0
- package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
- package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +1074 -0
- package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
- package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +293 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +512 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +513 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +235 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +199 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +182 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +184 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +208 -0
- package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +560 -0
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +145 -0
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +145 -0
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +142 -0
- package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +193 -0
- package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +605 -0
- package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +817 -0
- package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +468 -0
- package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +593 -0
- package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +208 -0
- package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +497 -0
- package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +512 -0
- package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +277 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +352 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +291 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +327 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +408 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +528 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +731 -0
- package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
- package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
- package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +138 -0
- package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +611 -0
- package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +600 -0
- package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +225 -0
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +525 -0
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +2321 -0
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +1311 -0
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +1292 -0
- package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +337 -0
- package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +347 -0
- package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +605 -0
- package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +185 -0
- package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +660 -0
- package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +759 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +551 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +731 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +414 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +466 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +776 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +290 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +430 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +1970 -0
- package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +2015 -0
- package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +330 -0
- package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +582 -0
- package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +1165 -0
- package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +646 -0
- package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +110 -0
- package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +332 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcbefore27-11/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +1264 -0
- package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +375 -0
- package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +1056 -0
- package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +1498 -0
- package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +1289 -0
- package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +76 -0
- package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +907 -0
- package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +358 -0
- package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +875 -0
- package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +622 -0
- package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +1026 -0
- package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +3414 -0
- package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +777 -0
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +933 -0
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +710 -0
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +902 -0
- package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +1347 -0
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +1566 -0
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +1201 -0
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +990 -0
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +1639 -0
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +7199 -0
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +1327 -0
- package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +941 -0
- package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +80 -0
- package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +846 -0
- package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +1198 -0
- package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +385 -0
- package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +784 -0
- package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +1186 -0
- package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +3711 -0
- package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +266 -0
- package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +860 -0
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +950 -0
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +1052 -0
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +685 -0
- package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +517 -0
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +555 -0
- package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +610 -0
- package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1049 -0
- package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1095 -0
- package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +979 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +533 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +338 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +872 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +895 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +302 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +314 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +318 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +179 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +201 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +421 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +583 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +291 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +822 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +789 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +787 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +348 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +387 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +268 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +295 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +120 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +119 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +99 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +146 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +489 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +296 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +396 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +633 -0
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +509 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +1399 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +1656 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +1540 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +2323 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +1596 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +1872 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +1891 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +1880 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +2065 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +726 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +719 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +966 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +646 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +1577 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +596 -0
- package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +342 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +161 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +394 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +174 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +382 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +651 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +757 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +1017 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +346 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +3027 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +141 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +103 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +49 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +376 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +384 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +1576 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +1989 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +143 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +474 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +527 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +665 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +477 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +1217 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +614 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +91 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +380 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +741 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +423 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +284 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +636 -0
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +402 -0
- package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +234 -0
- package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +306 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +364 -0
- package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +1000 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +460 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +1306 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +2506 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +1633 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +1999 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +1593 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +1574 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +79 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +245 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +2888 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +1450 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +3337 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +2624 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +2758 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +2753 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +1495 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +1271 -0
- package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +62 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +1060 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +616 -0
- package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +693 -0
- package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +173 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1831 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +291 -0
- package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +194 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +183 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +128 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +268 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +190 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +225 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +224 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +136 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +347 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +262 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +5566 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +1554 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +1827 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +1351 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +1566 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +3101 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +3047 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +2103 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +2189 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +2166 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +2714 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +2206 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +1158 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +1117 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +1043 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +1040 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +905 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +324 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +183 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +128 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +140 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +225 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +310 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +235 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +1672 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +1554 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +1351 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +1566 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +1804 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +560 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +928 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +597 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +324 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +145 -0
- package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +194 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +346 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +367 -0
- package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +222 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +277 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +1135 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +1505 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +1476 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +199 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +292 -0
- package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +219 -0
- package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +162 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +765 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +786 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +786 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +786 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +1425 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +844 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +555 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +555 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +555 -0
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +815 -0
- package/srcbefore27-11/button.jsx +40 -0
- package/srcbefore27-11/index.jsx +353 -0
- package/srcbefore27-11/styles/Home.module.css +129 -0
- package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +14 -0
- package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
- package/srcbefore27-11/styles/cards/Productcard6.module.css +9 -0
- package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +94 -0
- package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
- package/srcbefore27-11/styles/cards/card23.module.css +60 -0
- package/srcbefore27-11/styles/cards/categorycard.module.css +84 -0
- package/srcbefore27-11/styles/cards/categorycard3.module.css +50 -0
- package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +79 -0
- package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +139 -0
- package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +18 -0
- package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcbefore27-11/styles/general/bootstrap.css +4763 -0
- package/srcbefore27-11/styles/general/dropdown.css +206 -0
- package/srcbefore27-11/styles/general/editorbardropdown.module.css +94 -0
- package/srcbefore27-11/styles/general/filter.module.css +108 -0
- package/srcbefore27-11/styles/general/form.module.css +255 -0
- package/srcbefore27-11/styles/general/general.module.css +872 -0
- package/srcbefore27-11/styles/general/image-gallery.css +531 -0
- package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcbefore27-11/styles/general/react-phone-input-2.module.css +927 -0
- package/srcbefore27-11/styles/general/scrollbtn.module.css +22 -0
- package/srcbefore27-11/styles/general/slick.module.css +166 -0
- package/srcbefore27-11/styles/general/tabs.module.css +119 -0
- package/srcbefore27-11/styles/general/workplaceeditor.module.css +328 -0
- package/srcbefore27-11/styles/globals.css +26 -0
- package/srcbefore27-11/styles/headers/CTAHeader.module.css +40 -0
- package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +61 -0
- package/srcbefore27-11/styles/headers/Gotoheader.module.css +87 -0
- package/srcbefore27-11/styles/headers/Header7.module.css +50 -0
- package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +86 -0
- package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
- package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +46 -0
- package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +84 -0
- package/srcbefore27-11/styles/headers/NewHeader.module.css +101 -0
- package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +62 -0
- package/srcbefore27-11/styles/headers/Sideheader.module.css +108 -0
- package/srcbefore27-11/styles/headers/Simpleheader.module.css +102 -0
- package/srcbefore27-11/styles/headers/classicheader.module.css +16 -0
- package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +9 -0
- package/srcbefore27-11/styles/headers/dropdown.css +0 -0
- package/srcbefore27-11/styles/headers/header4.module.css +175 -0
- package/srcbefore27-11/styles/headers/header5.module.css +30 -0
- package/srcbefore27-11/styles/headers/header_contactinfo.module.css +53 -0
- package/srcbefore27-11/styles/headers/headerresturant.module.css +89 -0
- package/srcbefore27-11/styles/headers/modernheader.module.css +45 -0
- package/srcbefore27-11/styles/headers/stylishheader.module.css +24 -0
- package/srcbefore27-11/styles/headers/subheader.module.css +114 -0
- package/srcbefore27-11/styles/headers/threetieredheader.module.css +91 -0
- package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +4 -0
- package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcbefore27-11/styles/sections/Freetext.module.css +18 -0
- package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcbefore27-11/styles/staticpages/accordion.module.css +9 -0
- package/srcbefore27-11/styles/staticpages/cart.module.css +108 -0
- package/srcbefore27-11/styles/staticpages/dropdown.css +196 -0
- package/srcbefore27-11/styles/staticpages/filter.module.css +139 -0
- package/srcbefore27-11/styles/staticpages/image-gallery.css +481 -0
- package/srcbefore27-11/styles/staticpages/login.module.css +155 -0
- package/srcbefore27-11/styles/staticpages/productinfo.module.css +54 -0
- package/srcbefore27-11/styles/staticpages/shop.module.css +191 -0
- package/srcbefore27-11/styles/staticpages/signup.module.css +250 -0
- package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcbefore27-11/styles/staticpages/viewcart.module.css +129 -0
- package/srcbefore27-11/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,2321 @@
|
|
|
1
|
+
// // import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
// // import { css } from 'glamor';
|
|
3
|
+
// // import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
|
|
4
|
+
// // import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
|
|
5
|
+
// // import { FiShoppingBag } from '@react-icons/all-files/fi/FiShoppingBag';
|
|
6
|
+
// // import { FaRegHeart } from '@react-icons/all-files/fa/FaRegHeart';
|
|
7
|
+
// // import { FaHeart } from '@react-icons/all-files/fa/FaHeart';
|
|
8
|
+
// // import { CgShoppingBag } from '@react-icons/all-files/cg/CgShoppingBag';
|
|
9
|
+
// // import { AiFillStar } from '@react-icons/all-files/ai/AiFillStar';
|
|
10
|
+
// // import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
|
|
11
|
+
// // import { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';
|
|
12
|
+
// // import { BsBag } from '@react-icons/all-files/bs/BsBag';
|
|
13
|
+
// // import { RiHandbagLine } from '@react-icons/all-files/ri/RiHandbagLine';
|
|
14
|
+
// // import ReactStars from 'react-rating-stars-component';
|
|
15
|
+
// // import cardstyles from '../../../styles/cards/card23.module.css';
|
|
16
|
+
// // import { BsEye } from '@react-icons/all-files/bs/BsEye';
|
|
17
|
+
// // import { CircularProgress } from 'react-cssfx-loading';
|
|
18
|
+
// // import Variants_J_Cards from '../Variants_J_Cards/Variants_J_Cards.jsx';
|
|
19
|
+
// // import { FiMinus } from '@react-icons/all-files/fi/FiMinus';
|
|
20
|
+
// // import { FiPlus } from '@react-icons/all-files/fi/FiPlus';
|
|
21
|
+
// // const Simpleproductcard = (props) => {
|
|
22
|
+
// // const [sectionproperties, setsectionproperties] = useState('');
|
|
23
|
+
// // const [variantObj, setvariantObj] = useState('');
|
|
24
|
+
// // const [item, setitem] = useState(props.cardinfoitemprops);
|
|
25
|
+
// // const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
26
|
+
// // const lang = props.actions.lang;
|
|
27
|
+
// // const langdetect = props.actions.langdetect;
|
|
28
|
+
// // const setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
|
|
29
|
+
// // const addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
30
|
+
// // const setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
31
|
+
// // const cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
32
|
+
// // const ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
33
|
+
// // const NotificationManager = props.actions.NotificationManager;
|
|
34
|
+
// // const AddtoCartContext = props.actions.AddtoCartContext;
|
|
35
|
+
// // const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
36
|
+
// // const [addtocardpayloadobj, setaddtocardpayloadobj] = useState('');
|
|
37
|
+
// // const [Variant_Color_ImageObj, setVariant_Color_ImageObj] = useState('');
|
|
38
|
+
// // const authdetailsContext = props.actions.authdetailsContext;
|
|
39
|
+
// // const [showquantity, setshowquantity] = useState(false);
|
|
40
|
+
|
|
41
|
+
// // const plainString = (html) => {
|
|
42
|
+
// // var divContainer = document.createElement('div');
|
|
43
|
+
// // divContainer.innerHTML = html;
|
|
44
|
+
// // return divContainer.textContent || divContainer.innerText || '';
|
|
45
|
+
// // };
|
|
46
|
+
// // useEffect(() => {
|
|
47
|
+
// // var secpropobj = {};
|
|
48
|
+
// // StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
49
|
+
// // if (sectionitem.sectionid == props.sectionidprops) {
|
|
50
|
+
// // sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
51
|
+
// // secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
52
|
+
// // });
|
|
53
|
+
// // }
|
|
54
|
+
// // });
|
|
55
|
+
// // setsectionproperties({ ...secpropobj });
|
|
56
|
+
// // }, [StatePagePropertiesContext]);
|
|
57
|
+
// // useEffect(() => {
|
|
58
|
+
// // setitem(props.cardinfoitemprops);
|
|
59
|
+
// // }, [props.cardinfoitemprops]);
|
|
60
|
+
// // // useEffect(() => {
|
|
61
|
+
// // // if (item.quantity == 0) {
|
|
62
|
+
// // // setshowquantity(false);
|
|
63
|
+
// // // } else {
|
|
64
|
+
// // // setshowquantity(true);
|
|
65
|
+
// // // }
|
|
66
|
+
// // // }, [props.cardinfoitemprops]);
|
|
67
|
+
// // useEffect(() => {
|
|
68
|
+
// // var productImagetoBeSelected = '';
|
|
69
|
+
// // var Tempitem = { ...item };
|
|
70
|
+
// // productImagetoBeSelected = item.productmainimage;
|
|
71
|
+
// // if (variantObj != undefined && variantObj != null && Object.keys(variantObj).length != 0 && variantObj != '') {
|
|
72
|
+
// // var variatgalleryid = variantObj.variantgalleryid;
|
|
73
|
+
// // if (variatgalleryid != undefined && variatgalleryid != null && variatgalleryid != '') {
|
|
74
|
+
// // item?.productimages?.forEach(function (item, index) {
|
|
75
|
+
// // if (item.galleryid == variatgalleryid) {
|
|
76
|
+
// // productImagetoBeSelected = item.path;
|
|
77
|
+
// // }
|
|
78
|
+
// // });
|
|
79
|
+
// // }
|
|
80
|
+
// // }
|
|
81
|
+
|
|
82
|
+
// // Tempitem.image = productImagetoBeSelected;
|
|
83
|
+
// // setitem({ ...Tempitem });
|
|
84
|
+
// // }, [variantObj]);
|
|
85
|
+
// // useEffect(() => {
|
|
86
|
+
// // var productImagetoBeSelected = '';
|
|
87
|
+
// // var Tempitem = { ...item };
|
|
88
|
+
// // productImagetoBeSelected = item.productmainimage;
|
|
89
|
+
// // if (Variant_Color_ImageObj != undefined && Variant_Color_ImageObj != null && Object.keys(Variant_Color_ImageObj).length != 0 && Variant_Color_ImageObj != '') {
|
|
90
|
+
// // var variatgalleryid = Variant_Color_ImageObj.variantgalleryid;
|
|
91
|
+
// // if (variatgalleryid != undefined && variatgalleryid != null && variatgalleryid != '') {
|
|
92
|
+
// // item?.productimages?.forEach(function (item, index) {
|
|
93
|
+
// // if (item.galleryid == variatgalleryid) {
|
|
94
|
+
// // productImagetoBeSelected = item.path;
|
|
95
|
+
// // }
|
|
96
|
+
// // });
|
|
97
|
+
// // }
|
|
98
|
+
// // }
|
|
99
|
+
|
|
100
|
+
// // Tempitem.image = productImagetoBeSelected;
|
|
101
|
+
// // setitem({ ...Tempitem });
|
|
102
|
+
// // }, [Variant_Color_ImageObj]);
|
|
103
|
+
// // const card_cssstyles = {
|
|
104
|
+
// // innersection: css({
|
|
105
|
+
// // paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
106
|
+
// // paddingRight: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
107
|
+
// // '@media (max-width: 800px)': {
|
|
108
|
+
// // paddingLeft: sectionproperties.innersectionpaddinghorizontal == 0 ? 0 : 5,
|
|
109
|
+
// // paddingRight: sectionproperties.innersectionpaddinghorizontal == 0 ? 0 : 5,
|
|
110
|
+
// // },
|
|
111
|
+
// // }),
|
|
112
|
+
// // productcard: css({
|
|
113
|
+
// // minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
114
|
+
// // maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
115
|
+
// // '@media (max-width: 800px)': {
|
|
116
|
+
// // minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
117
|
+
// // maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
118
|
+
// // },
|
|
119
|
+
// // ':hover .iconsContainer': {
|
|
120
|
+
// // opacity: 1,
|
|
121
|
+
// // transition: 'all, 0.4s',
|
|
122
|
+
// // right: 10,
|
|
123
|
+
// // transform: `translateX(0px)`,
|
|
124
|
+
// // },
|
|
125
|
+
// // // ':hover .pname': {
|
|
126
|
+
// // // textDecoration: 'underline',
|
|
127
|
+
// // // transition: '.3s',
|
|
128
|
+
// // // },
|
|
129
|
+
// // }),
|
|
130
|
+
// // productcardimagecont: css({
|
|
131
|
+
// // position: 'relative',
|
|
132
|
+
// // overflow: 'hidden',
|
|
133
|
+
// // height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
|
|
134
|
+
// // background: sectionproperties.image_bgtransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
|
|
135
|
+
// // border: sectionproperties.image_borderType == 'All' ? sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor : 0,
|
|
136
|
+
// // borderBottom: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
137
|
+
// // borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
138
|
+
// // borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
139
|
+
// // borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
140
|
+
// // borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
141
|
+
// // transition: '.3s',
|
|
142
|
+
// // opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
|
|
143
|
+
// // '@media (max-width: 800px)': {
|
|
144
|
+
// // height:
|
|
145
|
+
// // sectionproperties.height_responsive == 0
|
|
146
|
+
// // ? 'auto'
|
|
147
|
+
// // : sectionproperties.height_responsive != null
|
|
148
|
+
// // ? sectionproperties.height_responsive + 'px'
|
|
149
|
+
// // : sectionproperties.image_height + 'px',
|
|
150
|
+
// // },
|
|
151
|
+
// // }),
|
|
152
|
+
// // productNameStyles: css({
|
|
153
|
+
// // color: sectionproperties.prodNameColor,
|
|
154
|
+
// // fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
155
|
+
// // textTransform: sectionproperties.prodNameTextTranform,
|
|
156
|
+
// // fontWeight: sectionproperties.prodNameFontWeight,
|
|
157
|
+
// // transition: '.3s',
|
|
158
|
+
// // cursor: 'pointer',
|
|
159
|
+
// // ':hover': {
|
|
160
|
+
// // color: sectionproperties.prodNameColorOnHover,
|
|
161
|
+
// // },
|
|
162
|
+
// // }),
|
|
163
|
+
// // productPricestyles: css({
|
|
164
|
+
// // color: sectionproperties.prodPriceColor,
|
|
165
|
+
// // fontSize: sectionproperties.prodpriceFontSize + 'px',
|
|
166
|
+
// // fontWeight: sectionproperties.prodPriceFontWeight,
|
|
167
|
+
// // }),
|
|
168
|
+
// // productSalePricestyles: css({
|
|
169
|
+
// // color: sectionproperties.prodsalePriceColor,
|
|
170
|
+
// // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
171
|
+
// // fontWeight: sectionproperties.prodsalePriceFontWeight,
|
|
172
|
+
// // }),
|
|
173
|
+
// // wishlist_btn: css({
|
|
174
|
+
// // width: sectionproperties.favBtnWidth + 'px',
|
|
175
|
+
// // height: sectionproperties.favBtnHeight + 'px',
|
|
176
|
+
// // background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
|
|
177
|
+
// // borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
178
|
+
// // color: sectionproperties.favBtnTextcolor,
|
|
179
|
+
// // fontSize: sectionproperties.favBtnTextfontsize + 'px',
|
|
180
|
+
// // textTransform: sectionproperties.favBtnTexttransform,
|
|
181
|
+
// // fontWeight: sectionproperties.favBtnTextfontweight,
|
|
182
|
+
// // transition: '.3s',
|
|
183
|
+
// // border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
184
|
+
// // ':hover': {
|
|
185
|
+
// // background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
|
|
186
|
+
// // color: sectionproperties.favBtnTextcoloronhover,
|
|
187
|
+
// // },
|
|
188
|
+
// // }),
|
|
189
|
+
// // minus_quantitybtn_icon_container: css({
|
|
190
|
+
// // color: sectionproperties.cartBtnbgColor,
|
|
191
|
+
// // fontSize: 18,
|
|
192
|
+
// // flex: 1,
|
|
193
|
+
// // ':hover': {
|
|
194
|
+
// // color: sectionproperties.cartBtnbgColoronhover,
|
|
195
|
+
// // },
|
|
196
|
+
// // }),
|
|
197
|
+
// // quantitybtn: css({
|
|
198
|
+
// // width: '70%',
|
|
199
|
+
// // height: sectionproperties.cartBtnHeight + 'px',
|
|
200
|
+
// // background: 'transparent',
|
|
201
|
+
// // borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
202
|
+
// // color: sectionproperties.cartBtnbgColor,
|
|
203
|
+
// // fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
204
|
+
// // textTransform: sectionproperties.cartBtnTexttransform,
|
|
205
|
+
// // fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
206
|
+
// // border: '1px solid ' + sectionproperties.cartBtnbgColor,
|
|
207
|
+
// // transition: '.3s',
|
|
208
|
+
// // // textDecoration: sectionproperties.cartbtntextdecoration == 'Underline' ? 'underline' : 'none',
|
|
209
|
+
// // ':hover': {
|
|
210
|
+
// // background: 'transparent',
|
|
211
|
+
// // color: sectionproperties.cartBtnbgColoronhover,
|
|
212
|
+
// // borderColor: sectionproperties.cartBtnbgColoronhover,
|
|
213
|
+
// // },
|
|
214
|
+
// // }),
|
|
215
|
+
// // cart_btn: css({
|
|
216
|
+
// // width: sectionproperties.cartBtnWidth == 0 ? 'auto' : sectionproperties.cartBtnWidth + 'px',
|
|
217
|
+
// // height: sectionproperties.cartBtnHeight + 'px',
|
|
218
|
+
// // background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
219
|
+
// // borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
220
|
+
// // color: sectionproperties.cartBtnTextcolor,
|
|
221
|
+
// // fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
222
|
+
// // textTransform: sectionproperties.cartBtnTexttransform,
|
|
223
|
+
// // fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
224
|
+
// // border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
225
|
+
// // transition: '.3s',
|
|
226
|
+
// // textDecoration: sectionproperties.cartbtntextdecoration == 'Underline' ? 'underline' : 'none',
|
|
227
|
+
// // ':hover': {
|
|
228
|
+
// // background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
229
|
+
// // color: sectionproperties.cartBtnTextcoloronhover,
|
|
230
|
+
// // borderColor: sectionproperties.cartBtnTextcoloronhover,
|
|
231
|
+
// // },
|
|
232
|
+
// // }),
|
|
233
|
+
// // outstockbadge: css({
|
|
234
|
+
// // width: sectionproperties.outstock_width + 'px',
|
|
235
|
+
// // height: sectionproperties.outstock_height + 'px',
|
|
236
|
+
// // background: sectionproperties.outstock_bg,
|
|
237
|
+
// // color: sectionproperties.outstock_color,
|
|
238
|
+
// // fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
239
|
+
// // borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
240
|
+
// // position: 'absolute',
|
|
241
|
+
// // zIndex: 2,
|
|
242
|
+
// // top: 0,
|
|
243
|
+
// // bottom: 0,
|
|
244
|
+
// // left: 0,
|
|
245
|
+
// // right: 0,
|
|
246
|
+
// // margin: 'auto',
|
|
247
|
+
// // }),
|
|
248
|
+
// // profitcontainer: css({
|
|
249
|
+
// // width: sectionproperties.profitcontainerwidth + '%',
|
|
250
|
+
// // height: sectionproperties.profitcontainerheight + 'px',
|
|
251
|
+
// // background: sectionproperties.profitcontainerbgcolor,
|
|
252
|
+
// // border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
253
|
+
// // borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
254
|
+
// // color: sectionproperties.profitcontainercolor,
|
|
255
|
+
// // '@media (max-width: 800px)': {
|
|
256
|
+
// // width: '100%',
|
|
257
|
+
// // },
|
|
258
|
+
// // }),
|
|
259
|
+
// // productDescStyles: css({
|
|
260
|
+
// // color: sectionproperties.prodCatColor,
|
|
261
|
+
// // fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
262
|
+
// // fontWeight: sectionproperties.prodCatFontWeight,
|
|
263
|
+
// // }),
|
|
264
|
+
// // pinfohover: css({
|
|
265
|
+
// // opacity: 0,
|
|
266
|
+
// // background: 'white',
|
|
267
|
+
// // position: 'absolute',
|
|
268
|
+
// // top: 0,
|
|
269
|
+
// // transition: '.3s',
|
|
270
|
+
// // }),
|
|
271
|
+
// // icontainer: css({
|
|
272
|
+
// // ':hover .pinfohover': {
|
|
273
|
+
// // opacity: 1,
|
|
274
|
+
// // transition: '.3s',
|
|
275
|
+
// // },
|
|
276
|
+
// // }),
|
|
277
|
+
// // cardconttt: css({
|
|
278
|
+
// // background:
|
|
279
|
+
// // sectionproperties.backgroundColortransparent == 'Transparent'
|
|
280
|
+
// // ? 'transparent'
|
|
281
|
+
// // : sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff'
|
|
282
|
+
// // ? 'rgba(250,250,250,' + sectionproperties.cardbg_opacity + ')'
|
|
283
|
+
// // : sectionproperties.backgroundColor,
|
|
284
|
+
// // borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
285
|
+
// // borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
286
|
+
// // borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
287
|
+
// // borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
288
|
+
// // marginTop: sectionproperties.marginTop + 'px',
|
|
289
|
+
// // marginBottom: sectionproperties.marginBottom + 'px',
|
|
290
|
+
// // border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
291
|
+
// // paddingTop: sectionproperties.paddingTop + 'px',
|
|
292
|
+
// // paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
293
|
+
// // paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
294
|
+
// // paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
295
|
+
// // transition: '.3s',
|
|
296
|
+
// // // opacity: sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff' ? 'rgba(250,250,250,' + sectionproperties.cardbg_opacity + ')' : 1,
|
|
297
|
+
// // ':hover': {
|
|
298
|
+
// // backgroundColor:
|
|
299
|
+
// // sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff'
|
|
300
|
+
// // ? 'rgba(250,250,250,' + sectionproperties.bgopacityonhover + ')'
|
|
301
|
+
// // : 1,
|
|
302
|
+
// // transition: 0.3,
|
|
303
|
+
// // boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcoloronhover,
|
|
304
|
+
// // },
|
|
305
|
+
// // }),
|
|
306
|
+
// // iconsContainer: css({
|
|
307
|
+
// // display: 'flex',
|
|
308
|
+
// // flexDirection: 'column',
|
|
309
|
+
// // position: 'absolute',
|
|
310
|
+
// // top: 5,
|
|
311
|
+
// // right: -15,
|
|
312
|
+
// // opacity: 0,
|
|
313
|
+
// // transform: `translateX(5px)`,
|
|
314
|
+
// // zIndex: 10,
|
|
315
|
+
// // '@media (max-width: 800px)': {
|
|
316
|
+
// // opacity: 1,
|
|
317
|
+
// // right: 10,
|
|
318
|
+
// // },
|
|
319
|
+
// // }),
|
|
320
|
+
// // iconsContainer2: css({
|
|
321
|
+
// // opacity: 1,
|
|
322
|
+
// // transition: 'all, 0.4s',
|
|
323
|
+
// // right: 10,
|
|
324
|
+
// // transform: `translateX(0px)`,
|
|
325
|
+
// // }),
|
|
326
|
+
// // sku: css({
|
|
327
|
+
// // fontSize: sectionproperties.skuFontSize + 'px',
|
|
328
|
+
// // color: sectionproperties.skuColor,
|
|
329
|
+
// // fontWeight: sectionproperties.skuFontWeight,
|
|
330
|
+
// // }),
|
|
331
|
+
// // imagediv: css({
|
|
332
|
+
// // ':hover': {
|
|
333
|
+
// // transition: 'all .4s ease',
|
|
334
|
+
// // transform: sectionproperties.zoomimageonhover == 'Yes' ? 'scale(1.1)' : '',
|
|
335
|
+
// // },
|
|
336
|
+
// // }),
|
|
337
|
+
// // };
|
|
338
|
+
// // const [secondimage, setsecondimage] = useState('');
|
|
339
|
+
// // useEffect(() => {
|
|
340
|
+
// // setitem(props.cardinfoitemprops);
|
|
341
|
+
// // if (props?.cardinfoitemprops?.productimages?.length == 1) {
|
|
342
|
+
// // setsecondimage(props?.cardinfoitemprops?.image);
|
|
343
|
+
// // } else {
|
|
344
|
+
// // if (props?.cardinfoitemprops != undefined && props?.cardinfoitemprops?.productimages != undefined && Array.isArray(props?.cardinfoitemprops?.productimages)) {
|
|
345
|
+
// // if (props?.cardinfoitemprops?.productimages[0] != undefined && props?.cardinfoitemprops?.productimages[0]?.path == props?.cardinfoitemprops?.image) {
|
|
346
|
+
// // if (props?.cardinfoitemprops?.productimages[1]?.length != 0) {
|
|
347
|
+
// // setsecondimage(props?.cardinfoitemprops?.productimages[1]?.path);
|
|
348
|
+
// // } else {
|
|
349
|
+
// // setsecondimage(props?.cardinfoitemprops?.image);
|
|
350
|
+
// // }
|
|
351
|
+
// // } else {
|
|
352
|
+
// // setsecondimage(props?.cardinfoitemprops?.productimages[0]?.path);
|
|
353
|
+
// // }
|
|
354
|
+
// // }
|
|
355
|
+
// // }
|
|
356
|
+
// // }, [props.cardinfoitemprops]);
|
|
357
|
+
// // const addtocartfunc = () => {
|
|
358
|
+
// // var addtocardpayloadobj = {
|
|
359
|
+
// // functype: 'add',
|
|
360
|
+
// // productid: item.productid,
|
|
361
|
+
// // variantid: '',
|
|
362
|
+
// // quantity: item.quantity,
|
|
363
|
+
// // vendorid: item.vendorid,
|
|
364
|
+
// // };
|
|
365
|
+
|
|
366
|
+
// // var runfunc = false;
|
|
367
|
+
// // if (item.productid != '6811f1adebacc' && item.productid != '6811f2c05bd7f') {
|
|
368
|
+
// // if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
369
|
+
// // if (item.hasvariants == 1) {
|
|
370
|
+
// // // if (addtocardpayloadobj.variantid.length != 0) {
|
|
371
|
+
// // if (variantObj != undefined && variantObj != null && Object.keys(variantObj).length != 0) {
|
|
372
|
+
// // addtocardpayloadobj.variantid = variantObj.variantid;
|
|
373
|
+
// // runfunc = true;
|
|
374
|
+
// // } else {
|
|
375
|
+
// // NotificationManager.warning(
|
|
376
|
+
// // '',
|
|
377
|
+
// // authdetailsContext?.instinfo?.contactinfo.instid == '674f0617c7811'
|
|
378
|
+
// // ? 'Please Choose Size & Color'
|
|
379
|
+
// // : authdetailsContext?.instinfo?.contactinfo.instid == '67e448d2ef6e0'
|
|
380
|
+
// // ? 'من فضلك اختر لون'
|
|
381
|
+
// // : langdetect == 'en'
|
|
382
|
+
// // ? 'Please Choose Product Options'
|
|
383
|
+
// // : 'من فضلك اختر متغير',
|
|
384
|
+
// // );
|
|
385
|
+
// // }
|
|
386
|
+
// // } else {
|
|
387
|
+
// // runfunc = true;
|
|
388
|
+
// // }
|
|
389
|
+
// // } else {
|
|
390
|
+
// // NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
|
|
391
|
+
// // }
|
|
392
|
+
// // } else {
|
|
393
|
+
// // }
|
|
394
|
+
|
|
395
|
+
// // if (runfunc == true) {
|
|
396
|
+
// // AddtoCartContext(addtocardpayloadobj);
|
|
397
|
+
// // }
|
|
398
|
+
// // };
|
|
399
|
+
// // // const addtocartfunc = () => {
|
|
400
|
+
// // // var runfunc = false;
|
|
401
|
+
|
|
402
|
+
// // // var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
|
|
403
|
+
// // // tempaddtocardpayloadobj.productid = item.productid;
|
|
404
|
+
// // // tempaddtocardpayloadobj.functype = 'add';
|
|
405
|
+
// // // tempaddtocardpayloadobj.item_type = 'product';
|
|
406
|
+
// // // tempaddtocardpayloadobj.quantity = 1;
|
|
407
|
+
|
|
408
|
+
// // // AddtoCartContext(tempaddtocardpayloadobj);
|
|
409
|
+
// // // };
|
|
410
|
+
// // const addtocartbuttonrender = () => {
|
|
411
|
+
// // if (AddtoCartMutationContext.isLoading) {
|
|
412
|
+
// // if (AddtoCartMutationContext?.variables?.productid == item.productid) {
|
|
413
|
+
// // return (
|
|
414
|
+
// // <div class={' d-flex align-items-center justify-content-center '}>
|
|
415
|
+
// // <CircularProgress color={sectionproperties.cartBtnTextcolor} width="20px" height="20px" duration="1s" />
|
|
416
|
+
// // </div>
|
|
417
|
+
// // );
|
|
418
|
+
// // } else {
|
|
419
|
+
// // return (
|
|
420
|
+
// // <span class="w-100 allcentered">
|
|
421
|
+
// // {sectionproperties.cartBtn_iconFontSize != 0 && (
|
|
422
|
+
// // <i class={langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'}>
|
|
423
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
424
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
425
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
426
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 4' && <RiHandbagLine size={sectionproperties.cartBtn_iconFontSize} />}
|
|
427
|
+
// // {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
428
|
+
// // {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
429
|
+
// // </i>
|
|
430
|
+
// // )}
|
|
431
|
+
// // {item.productid != '6811f1adebacc' && item.productid != '6811f2c05bd7f'
|
|
432
|
+
// // ? langdetect == 'en'
|
|
433
|
+
// // ? sectionproperties.cartBtnContentenglish
|
|
434
|
+
// // : sectionproperties.cartBtnContentarabic
|
|
435
|
+
// // : langdetect == 'en'
|
|
436
|
+
// // ? 'COMING SOON'
|
|
437
|
+
// // : 'قريباً'}
|
|
438
|
+
// // </span>
|
|
439
|
+
// // );
|
|
440
|
+
// // }
|
|
441
|
+
// // }
|
|
442
|
+
// // if (!AddtoCartMutationContext.isLoading) {
|
|
443
|
+
// // return (
|
|
444
|
+
// // <span class="w-100 allcentered">
|
|
445
|
+
// // <i class={langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'}>
|
|
446
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
447
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
448
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
449
|
+
// // {sectionproperties.carticonstyle == 'Shopping bag 4' && <RiHandbagLine size={sectionproperties.cartBtn_iconFontSize} />}
|
|
450
|
+
// // {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
451
|
+
// // {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
452
|
+
// // </i>
|
|
453
|
+
// // {item.productid != '6811f1adebacc' && item.productid != '6811f2c05bd7f'
|
|
454
|
+
// // ? langdetect == 'en'
|
|
455
|
+
// // ? sectionproperties.cartBtnContentenglish
|
|
456
|
+
// // : sectionproperties.cartBtnContentarabic
|
|
457
|
+
// // : langdetect == 'en'
|
|
458
|
+
// // ? 'COMING SOON'
|
|
459
|
+
// // : 'قريباً'}
|
|
460
|
+
// // {/* {langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic} */}
|
|
461
|
+
// // </span>
|
|
462
|
+
// // );
|
|
463
|
+
// // }
|
|
464
|
+
// // };
|
|
465
|
+
// // const addtocartfuncquantity = (type, quantity) => {
|
|
466
|
+
// // const addtocardpayloadobj = {
|
|
467
|
+
// // functype: 'add',
|
|
468
|
+
// // productid: item.productid,
|
|
469
|
+
// // variantid: '',
|
|
470
|
+
// // quantity: quantity,
|
|
471
|
+
// // };
|
|
472
|
+
|
|
473
|
+
// // var runfunc = false;
|
|
474
|
+
// // if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
475
|
+
// // if (item.hasvariants == 1) {
|
|
476
|
+
// // if (addtocardpayloadobj.variantid.length != 0) {
|
|
477
|
+
// // runfunc = true;
|
|
478
|
+
// // } else {
|
|
479
|
+
// // NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Product Options' : 'من فضلك اختر متغير');
|
|
480
|
+
// // }
|
|
481
|
+
// // } else {
|
|
482
|
+
// // runfunc = true;
|
|
483
|
+
// // }
|
|
484
|
+
// // } else {
|
|
485
|
+
// // NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
|
|
486
|
+
// // }
|
|
487
|
+
|
|
488
|
+
// // if (runfunc == true) {
|
|
489
|
+
// // AddtoCartContext(addtocardpayloadobj);
|
|
490
|
+
// // }
|
|
491
|
+
// // };
|
|
492
|
+
// // const addtocartbuttonrenderquantity = () => {
|
|
493
|
+
// // if (AddtoCartMutationContext.isLoading) {
|
|
494
|
+
// // if (AddtoCartMutationContext?.variables?.productid == item.productid) {
|
|
495
|
+
// // return (
|
|
496
|
+
// // <div class={' d-flex align-items-center justify-content-center '}>
|
|
497
|
+
// // <CircularProgress color={sectionproperties.cartBtnbgColor} width="20px" height="20px" duration="1s" />
|
|
498
|
+
// // </div>
|
|
499
|
+
// // );
|
|
500
|
+
// // } else {
|
|
501
|
+
// // return item.quantity;
|
|
502
|
+
// // }
|
|
503
|
+
// // }
|
|
504
|
+
// // if (!AddtoCartMutationContext.isLoading) {
|
|
505
|
+
// // return item.quantity;
|
|
506
|
+
// // }
|
|
507
|
+
// // };
|
|
508
|
+
// // const Image = (type) => {
|
|
509
|
+
// // var transition = false;
|
|
510
|
+
// // if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
|
|
511
|
+
// // transition = true;
|
|
512
|
+
// // }
|
|
513
|
+
|
|
514
|
+
// // return (
|
|
515
|
+
// // <div class={card_cssstyles.imagediv + ' w-100 cursor-pointer '} style={{ position: 'relative' }}>
|
|
516
|
+
// // <Imagekitimagecomp
|
|
517
|
+
// // class={transition ? cardstyles.intialimage : ''}
|
|
518
|
+
// // urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
519
|
+
// // publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
520
|
+
// // path={'/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image}
|
|
521
|
+
// // loading="lazy"
|
|
522
|
+
// // style={{
|
|
523
|
+
// // width: sectionproperties.imageInnerWidth_Height + '%',
|
|
524
|
+
// // height: sectionproperties.imageInnerWidth_Height + '%',
|
|
525
|
+
// // objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
526
|
+
// // }}
|
|
527
|
+
// // />
|
|
528
|
+
// // {transition && (
|
|
529
|
+
// // <Imagekitimagecomp
|
|
530
|
+
// // class={cardstyles.secondaryimage}
|
|
531
|
+
// // urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
532
|
+
// // publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
533
|
+
// // path={'/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + secondimage}
|
|
534
|
+
// // loading="lazy"
|
|
535
|
+
// // style={{
|
|
536
|
+
// // width: sectionproperties.imageInnerWidth_Height + '%',
|
|
537
|
+
// // height: sectionproperties.imageInnerWidth_Height + '%',
|
|
538
|
+
// // objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
539
|
+
// // }}
|
|
540
|
+
// // />
|
|
541
|
+
// // )}
|
|
542
|
+
// // </div>
|
|
543
|
+
// // );
|
|
544
|
+
// // };
|
|
545
|
+
// // const [clickCount, setClickCount] = useState(0);
|
|
546
|
+
// // const handleClick = () => {
|
|
547
|
+
// // // Increase the click count by 1
|
|
548
|
+
// // setClickCount((prevCount) => prevCount + 1);
|
|
549
|
+
|
|
550
|
+
// // // Check if it's the second click
|
|
551
|
+
// // if (sectionproperties.hideshowcardtransition == 'Show') {
|
|
552
|
+
// // if (clickCount === 1) {
|
|
553
|
+
// // // Do whatever you want on the second click
|
|
554
|
+
// // var productidtobesend = null;
|
|
555
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
556
|
+
// // productidtobesend = item.productendpointurl;
|
|
557
|
+
// // } else {
|
|
558
|
+
// // productidtobesend = item.productid;
|
|
559
|
+
// // }
|
|
560
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
561
|
+
// // }
|
|
562
|
+
// // } else {
|
|
563
|
+
// // var productidtobesend = null;
|
|
564
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
565
|
+
// // productidtobesend = item.productendpointurl;
|
|
566
|
+
// // } else {
|
|
567
|
+
// // productidtobesend = item.productid;
|
|
568
|
+
// // }
|
|
569
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
570
|
+
// // }
|
|
571
|
+
// // };
|
|
572
|
+
// // const PillContainer = () => {
|
|
573
|
+
// // return (
|
|
574
|
+
// // <div
|
|
575
|
+
// // class={sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered'}
|
|
576
|
+
// // style={{
|
|
577
|
+
// // zIndex: 2,
|
|
578
|
+
|
|
579
|
+
// // width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
|
|
580
|
+
// // height: sectionproperties.pillheight + 'px',
|
|
581
|
+
// // background: sectionproperties.pillbgcolor,
|
|
582
|
+
// // borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
583
|
+
// // }}
|
|
584
|
+
// // >
|
|
585
|
+
// // {sectionproperties.countertype == 'Percentage' && (
|
|
586
|
+
// // <p class="m-0 p-0" style={{ color: sectionproperties.pillcolor, fontSize: sectionproperties.pillfontSize + 'px', direction: 'ltr' }}>
|
|
587
|
+
// // {'-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'}
|
|
588
|
+
// // </p>
|
|
589
|
+
// // )}
|
|
590
|
+
// // {sectionproperties.countertype == 'Value' && (
|
|
591
|
+
// // <p class="m-0 p-0 text-uppercase" style={{ color: sectionproperties.pillcolor, fontSize: sectionproperties.pillfontSize + 'px', direction: 'ltr' }}>
|
|
592
|
+
// // {langdetect == 'en' ? 'Save' : 'وفر'} {langdetect == 'en' ? item.currencyname : ''}{' '}
|
|
593
|
+
// // {parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0)} {langdetect == 'en' ? '' : item.currencyname}
|
|
594
|
+
// // </p>
|
|
595
|
+
// // )}
|
|
596
|
+
// // </div>
|
|
597
|
+
// // );
|
|
598
|
+
// // };
|
|
599
|
+
// // return (
|
|
600
|
+
// // <div
|
|
601
|
+
// // class={
|
|
602
|
+
// // props.sectiontypeprops2 == 'vertical'
|
|
603
|
+
// // ? sectionproperties.card_marginLeft == 0 && sectionproperties.card_marginRight == 0
|
|
604
|
+
// // ? `${card_cssstyles.productcard}` + ' w-100 '
|
|
605
|
+
// // : `${card_cssstyles.productcard}` + ' w-100 px-md-1 '
|
|
606
|
+
// // : ` ${card_cssstyles.productcard}`
|
|
607
|
+
// // }
|
|
608
|
+
// // style={{
|
|
609
|
+
// // paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
610
|
+
// // paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
|
|
611
|
+
// // }}
|
|
612
|
+
// // >
|
|
613
|
+
// // <div class={card_cssstyles.cardconttt + ' cursor-pointer w-100 '} style={{}}>
|
|
614
|
+
// // {sectionproperties.image_show == 'show' && (
|
|
615
|
+
// // <div class={card_cssstyles.icontainer + ' w-100 '} style={{ position: 'relative' }}>
|
|
616
|
+
// // {sectionproperties.btnswithtransition == 'With Transition' && (
|
|
617
|
+
// // <div class={`${card_cssstyles.iconsContainer}` + ' iconsContainer p-0 d-flex '}>
|
|
618
|
+
// // {sectionproperties.favBtnShow == 'Show' && (
|
|
619
|
+
// // <button
|
|
620
|
+
// // class={` ${card_cssstyles.wishlist_btn}` + ' mt-2 mb-2 '}
|
|
621
|
+
// // onClick={() => {
|
|
622
|
+
// // addtofavoritescontext(item.productid);
|
|
623
|
+
// // }}
|
|
624
|
+
// // >
|
|
625
|
+
// // {item.IsFavExists && (
|
|
626
|
+
// // <i class="h-100 d-flex align-items-center justify-content-center icon">
|
|
627
|
+
// // {sectionproperties.faviconshape == 'Star Shape' && (
|
|
628
|
+
// // <AiFillStar size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
|
|
629
|
+
// // )}
|
|
630
|
+
// // {sectionproperties.faviconshape == 'Heart Shape' && (
|
|
631
|
+
// // <FaHeart size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
|
|
632
|
+
// // )}
|
|
633
|
+
// // </i>
|
|
634
|
+
// // )}
|
|
635
|
+
// // {!item.IsFavExists && (
|
|
636
|
+
// // <i class="h-100 d-flex align-items-center justify-content-center icon">
|
|
637
|
+
// // {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
|
|
638
|
+
// // {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
|
|
639
|
+
// // </i>
|
|
640
|
+
// // )}
|
|
641
|
+
// // </button>
|
|
642
|
+
// // )}
|
|
643
|
+
|
|
644
|
+
// // {sectionproperties.showproductinfomodalbtn == 'Show' && (
|
|
645
|
+
// // <button
|
|
646
|
+
// // class={`${card_cssstyles.wishlist_btn}` + ' '}
|
|
647
|
+
// // onClick={(e) => {
|
|
648
|
+
// // e.stopPropagation();
|
|
649
|
+
// // setShowProductInfoModalContext(true);
|
|
650
|
+
// // setProductIdProdutInfoModalContext(item.productid);
|
|
651
|
+
// // }}
|
|
652
|
+
// // >
|
|
653
|
+
// // <i class="h-100 d-flex align-items-center justify-content-center icon">
|
|
654
|
+
// // <BsEye size={sectionproperties.generalbtn_fontsize} />
|
|
655
|
+
// // </i>
|
|
656
|
+
// // </button>
|
|
657
|
+
// // )}
|
|
658
|
+
// // </div>
|
|
659
|
+
// // )}
|
|
660
|
+
// // {sectionproperties.favBtnShow == 'Show' && sectionproperties.btnswithtransition != 'With Transition' && (
|
|
661
|
+
// // <button
|
|
662
|
+
// // class={` ${card_cssstyles.wishlist_btn}` + ' m-0 p-0 d-flex align-items-center justify-content-center '}
|
|
663
|
+
// // onClick={(e) => {
|
|
664
|
+
// // e.stopPropagation();
|
|
665
|
+
// // addtofavoritescontext(item.productid);
|
|
666
|
+
// // }}
|
|
667
|
+
// // style={{
|
|
668
|
+
// // zIndex: 2,
|
|
669
|
+
// // position: 'absolute',
|
|
670
|
+
// // top: 5,
|
|
671
|
+
// // right: 5,
|
|
672
|
+
// // // left: langdetect == 'en' ? '' : 5,
|
|
673
|
+
// // background: item.IsFavExists == true ? (sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.activebgcolor) : '',
|
|
674
|
+
// // }}
|
|
675
|
+
// // >
|
|
676
|
+
// // {item.IsFavExists && (
|
|
677
|
+
// // <i class="h-100 d-flex align-items-center justify-content-center">
|
|
678
|
+
// // {sectionproperties.faviconshape == 'Star Shape' && (
|
|
679
|
+
// // <AiFillStar size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} class="font-md-20" />
|
|
680
|
+
// // )}
|
|
681
|
+
// // {sectionproperties.faviconshape == 'Heart Shape' && (
|
|
682
|
+
// // <FaHeart size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
|
|
683
|
+
// // )}
|
|
684
|
+
// // </i>
|
|
685
|
+
// // )}
|
|
686
|
+
// // {!item.IsFavExists && (
|
|
687
|
+
// // <i class="h-100 d-flex align-items-center justify-content-center">
|
|
688
|
+
// // {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
|
|
689
|
+
// // {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
|
|
690
|
+
// // </i>
|
|
691
|
+
// // )}
|
|
692
|
+
// // </button>
|
|
693
|
+
// // )}
|
|
694
|
+
// // {/* urlwithproductname */}
|
|
695
|
+
// // {item?.hassale == 1 && sectionproperties.showbadge == 'Show' && (
|
|
696
|
+
// // <div
|
|
697
|
+
// // class="allcentered"
|
|
698
|
+
// // style={{
|
|
699
|
+
// // zIndex: 2,
|
|
700
|
+
// // position: 'absolute',
|
|
701
|
+
// // top: sectionproperties.badgeposition == 'Top' ? sectionproperties.badge_top + 'px' : '',
|
|
702
|
+
// // bottom: sectionproperties.badgeposition == 'Bottom' ? sectionproperties.badge_top + 'px' : '',
|
|
703
|
+
// // left: sectionproperties.badge_right + 'px',
|
|
704
|
+
// // // right: langdetect == 'en' ? '' : sectionproperties.badge_right + 'px',
|
|
705
|
+
// // width: sectionproperties.badge_width == 0 ? '90%' : sectionproperties.badge_width + 'px',
|
|
706
|
+
// // height: sectionproperties.badge_height + 'px',
|
|
707
|
+
// // background: sectionproperties.badge_bgcolor,
|
|
708
|
+
// // borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
709
|
+
// // }}
|
|
710
|
+
// // >
|
|
711
|
+
// // <p class="m-0 p-0" style={{ color: sectionproperties.badge_color, fontSize: sectionproperties.badge_fontsize + 'px' }}>
|
|
712
|
+
// // {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
|
|
713
|
+
// // </p>
|
|
714
|
+
// // </div>
|
|
715
|
+
// // )}
|
|
716
|
+
// // {sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Top' && (
|
|
717
|
+
// // <div
|
|
718
|
+
// // style={{
|
|
719
|
+
// // position: 'absolute',
|
|
720
|
+
// // top: sectionproperties.pillpositionfromtop + 'px',
|
|
721
|
+
// // left: sectionproperties.pillpositionfromright + 'px',
|
|
722
|
+
// // // right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
|
|
723
|
+
// // zIndex: 3,
|
|
724
|
+
// // }}
|
|
725
|
+
// // >
|
|
726
|
+
// // {PillContainer()}
|
|
727
|
+
// // </div>
|
|
728
|
+
// // )}
|
|
729
|
+
// // {item?.producttags != undefined && item?.producttags?.length != 0 && sectionproperties.showtag == 'Show' && (
|
|
730
|
+
// // <div class="allcentered" style={{ position: 'absolute', bottom: 20, width: '100%', left: 0, right: 0, zIndex: 100 }}>
|
|
731
|
+
// // <div
|
|
732
|
+
// // class="px-3 py-1"
|
|
733
|
+
// // style={{
|
|
734
|
+
// // width: 'fit-content',
|
|
735
|
+
// // background: sectionproperties.tagbackgroundcolor,
|
|
736
|
+
// // borderRadius: sectionproperties.tagborderradius + 'px',
|
|
737
|
+
// // color: sectionproperties.tagcolor,
|
|
738
|
+
// // fontSize: 12,
|
|
739
|
+
// // }}
|
|
740
|
+
// // >
|
|
741
|
+
// // {item?.producttags[0]?.taginfo?.tagname}
|
|
742
|
+
// // </div>
|
|
743
|
+
// // </div>
|
|
744
|
+
// // )}
|
|
745
|
+
// // <div
|
|
746
|
+
// // class={
|
|
747
|
+
// // sectionproperties.hideshowcardtransition == 'Show'
|
|
748
|
+
// // ? ` ${card_cssstyles.productcardimagecont} ${cardstyles.imagecontainer}` + ' d-flex d-md-none '
|
|
749
|
+
// // : ` ${card_cssstyles.productcardimagecont} ` + ' d-flex d-md-none '
|
|
750
|
+
// // }
|
|
751
|
+
// // style={{
|
|
752
|
+
// // marginBottom: sectionproperties.image_mb + 'px',
|
|
753
|
+
// // }}
|
|
754
|
+
// // onClick={(e) => {
|
|
755
|
+
// // if (sectionproperties.sectionproperties?.onClickRoute == 'None') {
|
|
756
|
+
// // } else {
|
|
757
|
+
// // e.stopPropagation();
|
|
758
|
+
// // var productidtobesend = null;
|
|
759
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
760
|
+
// // productidtobesend = item.productendpointurl;
|
|
761
|
+
// // } else {
|
|
762
|
+
// // productidtobesend = item.productid;
|
|
763
|
+
// // }
|
|
764
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
765
|
+
// // }
|
|
766
|
+
// // }}
|
|
767
|
+
// // >
|
|
768
|
+
// // {Image('normal')}
|
|
769
|
+
// // </div>
|
|
770
|
+
// // <div
|
|
771
|
+
// // class={
|
|
772
|
+
// // sectionproperties.hideshowcardtransition == 'Show'
|
|
773
|
+
// // ? ` ${card_cssstyles.productcardimagecont} ${cardstyles.imagecontainer}` + ' d-none d-md-flex '
|
|
774
|
+
// // : ` ${card_cssstyles.productcardimagecont} ` + ' d-none d-md-flex '
|
|
775
|
+
// // }
|
|
776
|
+
// // style={{
|
|
777
|
+
// // marginBottom: sectionproperties.image_mb + 'px',
|
|
778
|
+
// // }}
|
|
779
|
+
// // onClick={(e) => {
|
|
780
|
+
// // if (sectionproperties?.onClickRoute == 'None') {
|
|
781
|
+
// // } else {
|
|
782
|
+
// // handleClick();
|
|
783
|
+
// // }
|
|
784
|
+
// // }}
|
|
785
|
+
// // >
|
|
786
|
+
// // {Image('normal')}
|
|
787
|
+
// // </div>
|
|
788
|
+
// // {item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && (
|
|
789
|
+
// // <div class={`${card_cssstyles.outstockbadge}` + ' allcentered '}>
|
|
790
|
+
// // <p class="m-0 p-0">{langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar}</p>
|
|
791
|
+
// // </div>
|
|
792
|
+
// // )}
|
|
793
|
+
// // {sectionproperties.shownameonhover == 'Yes' && (
|
|
794
|
+
// // <div class={card_cssstyles.pinfohover + ' col-lg-12 pl-0 pr-0 allcentered h-100 pinfohover '} style={{}}>
|
|
795
|
+
// // <p
|
|
796
|
+
// // onClick={() => {
|
|
797
|
+
// // if (sectionproperties?.onClickRoute == 'None') {
|
|
798
|
+
// // } else {
|
|
799
|
+
// // var productidtobesend = null;
|
|
800
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
801
|
+
// // productidtobesend = item.productendpointurl;
|
|
802
|
+
// // } else {
|
|
803
|
+
// // productidtobesend = item.productid;
|
|
804
|
+
// // }
|
|
805
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
806
|
+
// // }
|
|
807
|
+
// // }}
|
|
808
|
+
// // class={
|
|
809
|
+
// // sectionproperties.wordbreak == '1'
|
|
810
|
+
// // ? `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak1 font-md-13 m-0 '
|
|
811
|
+
// // : `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 '
|
|
812
|
+
// // }
|
|
813
|
+
// // style={{
|
|
814
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
815
|
+
// // }}
|
|
816
|
+
// // >
|
|
817
|
+
// // {item.name}
|
|
818
|
+
// // </p>
|
|
819
|
+
// // </div>
|
|
820
|
+
// // )}
|
|
821
|
+
// // </div>
|
|
822
|
+
// // )}
|
|
823
|
+
// // <div>
|
|
824
|
+
// // <div class={card_cssstyles.innersection + ' row m-0 w-100 '} style={{}}>
|
|
825
|
+
// // {sectionproperties.showfeatures == 'Show' && (
|
|
826
|
+
// // <div class="allcentered col-lg-12 p-0" style={{ height: 40 }}>
|
|
827
|
+
// // <Imagekitimagecomp
|
|
828
|
+
// // urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
829
|
+
// // publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
830
|
+
// // path={item?.feature_image_url}
|
|
831
|
+
// // loading="lazy"
|
|
832
|
+
// // style={{
|
|
833
|
+
// // maxWidth: '50%',
|
|
834
|
+
// // maxHeight: '50%',
|
|
835
|
+
// // }}
|
|
836
|
+
// // />
|
|
837
|
+
// // <div
|
|
838
|
+
// // class="text-capitalize mx-2"
|
|
839
|
+
// // style={{
|
|
840
|
+
// // color: sectionproperties.featurecolor,
|
|
841
|
+
// // fontSize: sectionproperties.featurefontsize + 'px',
|
|
842
|
+
// // }}
|
|
843
|
+
// // >
|
|
844
|
+
// // {item?.productfeature != undefined && item?.productfeature != null ? item?.productfeature : ''}
|
|
845
|
+
// // </div>
|
|
846
|
+
// // </div>
|
|
847
|
+
// // )}
|
|
848
|
+
// // {sectionproperties.showmeasurementunit == 'Show' && (
|
|
849
|
+
// // <p
|
|
850
|
+
// // class={`${card_cssstyles.productDescStyles}` + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 '}
|
|
851
|
+
// // style={{
|
|
852
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
853
|
+
// // fontSize: sectionproperties.measurementunitfontsize + 'px',
|
|
854
|
+
// // color: sectionproperties.measurementunitcolor,
|
|
855
|
+
// // }}
|
|
856
|
+
// // >
|
|
857
|
+
// // {item.measurmentunit}
|
|
858
|
+
// // </p>
|
|
859
|
+
// // )}
|
|
860
|
+
|
|
861
|
+
// // {sectionproperties.prodNameShow == 'Show' && (
|
|
862
|
+
// // <div
|
|
863
|
+
// // class="col-lg-12 pl-0 pr-0"
|
|
864
|
+
// // style={{
|
|
865
|
+
// // minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
|
|
866
|
+
// // background: sectionproperties.prodNameBackgroundColor,
|
|
867
|
+
// // borderRadius: '15px',
|
|
868
|
+
// // paddingTop: sectionproperties.productnamepaddingvertical + 'px',
|
|
869
|
+
// // paddingBottom: sectionproperties.productnamepaddingvertical + 'px',
|
|
870
|
+
// // }}
|
|
871
|
+
// // >
|
|
872
|
+
// // <p
|
|
873
|
+
// // onClick={() => {
|
|
874
|
+
// // if (sectionproperties?.onClickRoute == 'None') {
|
|
875
|
+
// // } else {
|
|
876
|
+
// // var productidtobesend = null;
|
|
877
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
878
|
+
// // productidtobesend = item.productendpointurl;
|
|
879
|
+
// // } else {
|
|
880
|
+
// // productidtobesend = item.productid;
|
|
881
|
+
// // }
|
|
882
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
883
|
+
// // }
|
|
884
|
+
// // }}
|
|
885
|
+
// // class={
|
|
886
|
+
// // sectionproperties.wordbreak == '1'
|
|
887
|
+
// // ? `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak1 font-md-13 m-0 pname '
|
|
888
|
+
// // : `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 pname '
|
|
889
|
+
// // }
|
|
890
|
+
// // style={{
|
|
891
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
892
|
+
// // }}
|
|
893
|
+
// // >
|
|
894
|
+
// // {item.name}
|
|
895
|
+
// // </p>
|
|
896
|
+
// // </div>
|
|
897
|
+
// // )}
|
|
898
|
+
// // {sectionproperties.showSKU == 'Show' && (
|
|
899
|
+
// // <div class="col-lg-12 pl-0 pr-0" style={{}}>
|
|
900
|
+
// // <p
|
|
901
|
+
// // class={`${card_cssstyles.sku}` + ' wordbreak wordbreak1 font-md-13 m-0 '}
|
|
902
|
+
// // style={{
|
|
903
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
904
|
+
// // }}
|
|
905
|
+
// // >
|
|
906
|
+
// // {langdetect == 'en' ? 'SKU: ' : 'كود: '}
|
|
907
|
+
// // {item.sku}
|
|
908
|
+
// // </p>
|
|
909
|
+
// // </div>
|
|
910
|
+
// // )}
|
|
911
|
+
// // {sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && (
|
|
912
|
+
// // <p
|
|
913
|
+
// // class={
|
|
914
|
+
// // sectionproperties.descriptionwordbreak == 'None'
|
|
915
|
+
// // ? `${card_cssstyles.productDescStyles}` + ' col-lg-12 p-0 mt-1 '
|
|
916
|
+
// // : `${card_cssstyles.productDescStyles}` + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 '
|
|
917
|
+
// // }
|
|
918
|
+
// // style={{
|
|
919
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
920
|
+
// // }}
|
|
921
|
+
// // dangerouslySetInnerHTML={{ __html: item.shortdescription }}
|
|
922
|
+
// // >
|
|
923
|
+
// // {/* {plainString(langdetect == 'en' ? item.description_en : item.description_ar)} */}
|
|
924
|
+
// // </p>
|
|
925
|
+
// // )}
|
|
926
|
+
// // {sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && (
|
|
927
|
+
// // <p
|
|
928
|
+
// // class={
|
|
929
|
+
// // sectionproperties.descriptionwordbreak == 'None'
|
|
930
|
+
// // ? `${card_cssstyles.productDescStyles}` + ' col-lg-12 p-0 mt-1 '
|
|
931
|
+
// // : `${card_cssstyles.productDescStyles}` + ' col-lg-12 wordbreak wordbreak p-0 mt-1 '
|
|
932
|
+
// // }
|
|
933
|
+
// // style={{
|
|
934
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
935
|
+
// // }}
|
|
936
|
+
// // >
|
|
937
|
+
// // {plainString(item.shortdescription)}
|
|
938
|
+
// // </p>
|
|
939
|
+
// // )}
|
|
940
|
+
|
|
941
|
+
// // <div
|
|
942
|
+
// // style={{
|
|
943
|
+
// // flexDirection: 'column',
|
|
944
|
+
|
|
945
|
+
// // display:
|
|
946
|
+
// // sectionproperties.prodPriceShow == 'Hide' &&
|
|
947
|
+
// // sectionproperties.showprofitcontainer == 'Hide' &&
|
|
948
|
+
// // sectionproperties.cartBtnShow == 'Hide' &&
|
|
949
|
+
// // sectionproperties.prodsalePriceshow == 'Hide'
|
|
950
|
+
// // ? 'none'
|
|
951
|
+
// // : 'flex',
|
|
952
|
+
// // }}
|
|
953
|
+
// // class="col-lg-12 d-flex align-items-center justify-content-center p-0 mt-1 "
|
|
954
|
+
// // >
|
|
955
|
+
// // <div class="row m-0 w-100 ">
|
|
956
|
+
// // <div
|
|
957
|
+
// // class=" d-flex flex-row col-lg-12 mx-0 p-0 align-items-center "
|
|
958
|
+
// // style={{
|
|
959
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
960
|
+
// // marginTop: sectionproperties.productpricemarginTop + 'px',
|
|
961
|
+
// // marginBottom: sectionproperties.productpricemarginBottom + 'px',
|
|
962
|
+
// // }}
|
|
963
|
+
// // >
|
|
964
|
+
// // <div
|
|
965
|
+
// // class={
|
|
966
|
+
// // sectionproperties.priceDirection == 'Horizontal Direction'
|
|
967
|
+
// // ? ' d-flex align-items-center p-0 mb-0 flex-row '
|
|
968
|
+
// // : ' d-flex align-items-center p-0 mb-0 flex-column '
|
|
969
|
+
// // }
|
|
970
|
+
// // style={{
|
|
971
|
+
// // textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
972
|
+
// // minHeight: sectionproperties.priceDirection == 'Horizontal Direction' ? '' : '6.5vh',
|
|
973
|
+
// // }}
|
|
974
|
+
// // >
|
|
975
|
+
// // {/* {sectionproperties.prodPriceShow == 'Show' && sectionproperties.removedecimals == 'Hide' && (
|
|
976
|
+
// // <p
|
|
977
|
+
// // class={
|
|
978
|
+
// // sectionproperties.priceDirection == 'Horizontal Direction'
|
|
979
|
+
// // ? `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
980
|
+
// // : `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
981
|
+
// // }
|
|
982
|
+
// // >
|
|
983
|
+
// // {langdetect == 'en' ? item.currencyname : ''}{' '}
|
|
984
|
+
// // {item.hassale == 1 ? parseFloat(Number(item.defaultsaleprice).toFixed(2)) : parseFloat(Number(item.defaultprice).toFixed(2))}{' '}
|
|
985
|
+
// // {langdetect == 'en' ? '' : item.currencyname}
|
|
986
|
+
// // </p>
|
|
987
|
+
// // )} */}
|
|
988
|
+
// // {sectionproperties.prodPriceShow == 'Show' && (
|
|
989
|
+
// // <p
|
|
990
|
+
// // class={
|
|
991
|
+
// // sectionproperties.priceDirection == 'Horizontal Direction'
|
|
992
|
+
// // ? `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
993
|
+
// // : `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
994
|
+
// // }
|
|
995
|
+
// // >
|
|
996
|
+
// // {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice}{' '}
|
|
997
|
+
// // {langdetect == 'en' ? '' : item.currencyname}
|
|
998
|
+
// // </p>
|
|
999
|
+
// // )}
|
|
1000
|
+
// // {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && (
|
|
1001
|
+
// // <div class={sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'}>
|
|
1002
|
+
// // <p class={`${card_cssstyles.productSalePricestyles}` + ' linethrough m-0 mr-2 ml-2 '}>
|
|
1003
|
+
// // {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
1004
|
+
// // </p>
|
|
1005
|
+
// // </div>
|
|
1006
|
+
// // )}
|
|
1007
|
+
// // {/* {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && sectionproperties.removedecimals == 'Hide' && (
|
|
1008
|
+
// // <div class={sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'}>
|
|
1009
|
+
// // <p class={`${card_cssstyles.productSalePricestyles}` + ' linethrough m-0 mr-2 ml-2 '}>
|
|
1010
|
+
// // {langdetect == 'en' ? item.currencyname : ''} {parseFloat(Number(item.defaultprice).toFixed(2))} {langdetect == 'en' ? '' : item.currencyname}
|
|
1011
|
+
// // </p>
|
|
1012
|
+
// // </div>
|
|
1013
|
+
// // )} */}
|
|
1014
|
+
// // {sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && (
|
|
1015
|
+
// // <div style={{}}>{PillContainer()}</div>
|
|
1016
|
+
// // )}
|
|
1017
|
+
// // </div>
|
|
1018
|
+
// // </div>
|
|
1019
|
+
// // {sectionproperties.showvariantscont == 'Show' && (
|
|
1020
|
+
// // <div class="col-12 p-0">
|
|
1021
|
+
// // <Variants_J_Cards
|
|
1022
|
+
// // actions={{
|
|
1023
|
+
// // sectionproperties: sectionproperties,
|
|
1024
|
+
// // item: item,
|
|
1025
|
+
// // cardonclickfunctionContext: cardonclickfunctionContext,
|
|
1026
|
+
// // fetchingtypeprops: props.fetchingtypeprops,
|
|
1027
|
+
// // }}
|
|
1028
|
+
// // foundMatchedVariantFunc={(variantCompletedObj) => {
|
|
1029
|
+
// // setvariantObj(variantCompletedObj);
|
|
1030
|
+
// // }}
|
|
1031
|
+
// // foundImageColorMatchingFunc={(variantIMAGECompletedObj) => {
|
|
1032
|
+
// // setVariant_Color_ImageObj(variantIMAGECompletedObj);
|
|
1033
|
+
// // }}
|
|
1034
|
+
// // />
|
|
1035
|
+
// // </div>
|
|
1036
|
+
// // )}
|
|
1037
|
+
// // {sectionproperties.showprofitcontainer == 'Show' && (
|
|
1038
|
+
// // <div
|
|
1039
|
+
// // class="col-lg-12 p-0"
|
|
1040
|
+
// // style={{
|
|
1041
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
1042
|
+
// // }}
|
|
1043
|
+
// // >
|
|
1044
|
+
// // <div
|
|
1045
|
+
// // class={card_cssstyles.profitcontainer + ' d-flex align-items-center flex-sm-column px-2'}
|
|
1046
|
+
// // style={{
|
|
1047
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
1048
|
+
// // }}
|
|
1049
|
+
// // >
|
|
1050
|
+
// // <p
|
|
1051
|
+
// // class={' m-0 p-0 d-flex align-items-center '}
|
|
1052
|
+
// // style={{
|
|
1053
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
1054
|
+
// // }}
|
|
1055
|
+
// // >
|
|
1056
|
+
// // <span
|
|
1057
|
+
// // style={{
|
|
1058
|
+
// // fontWeight: sectionproperties.profitcontainerfontweight,
|
|
1059
|
+
// // }}
|
|
1060
|
+
// // >
|
|
1061
|
+
// // {langdetect == 'en' ? sectionproperties.profitcontainercontenten : sectionproperties.profitcontainercontentar}:{' '}
|
|
1062
|
+
// // </span>
|
|
1063
|
+
// // <span
|
|
1064
|
+
// // class="mx-1"
|
|
1065
|
+
// // style={{
|
|
1066
|
+
// // fontWeight: sectionproperties.profitcontainersecondaryfontweight,
|
|
1067
|
+
// // }}
|
|
1068
|
+
// // >
|
|
1069
|
+
// // {langdetect == 'en' ? item.currencyname : ''}{' '}
|
|
1070
|
+
// // {parseFloat(Math.round(parseInt(item.hassale == 1 ? item.defaultsaleprice : item.defaultprice) * (item.prodaffpercentprofit / 100))).toFixed(0)}{' '}
|
|
1071
|
+
// // {langdetect == 'en' ? '' : item.currencyname}
|
|
1072
|
+
// // </span>
|
|
1073
|
+
// // </p>
|
|
1074
|
+
// // </div>
|
|
1075
|
+
// // </div>
|
|
1076
|
+
// // )}
|
|
1077
|
+
// // {sectionproperties.quantityshow == 'Show' && item.currentquantity > 0 && (
|
|
1078
|
+
// // <div
|
|
1079
|
+
// // class="col-lg-12 p-0 d-flex align-items-center"
|
|
1080
|
+
// // style={{
|
|
1081
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
1082
|
+
// // }}
|
|
1083
|
+
// // >
|
|
1084
|
+
// // <p
|
|
1085
|
+
// // class="m-0 p-0"
|
|
1086
|
+
// // style={{
|
|
1087
|
+
// // fontSize: sectionproperties.quantityfontsize,
|
|
1088
|
+
// // color: sectionproperties.quantitycolor,
|
|
1089
|
+
// // fontWeight: sectionproperties.quantityfontweight,
|
|
1090
|
+
// // }}
|
|
1091
|
+
// // >
|
|
1092
|
+
// // {langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar} {item.currentquantity}{' '}
|
|
1093
|
+
// // {langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2}
|
|
1094
|
+
// // </p>
|
|
1095
|
+
// // </div>
|
|
1096
|
+
// // )}
|
|
1097
|
+
// // {sectionproperties.cartBtnShow == 'Show' && showquantity == false && (
|
|
1098
|
+
// // <div
|
|
1099
|
+
// // class="col-lg-12 p-0 d-flex align-items-center"
|
|
1100
|
+
// // style={{
|
|
1101
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
1102
|
+
// // }}
|
|
1103
|
+
// // >
|
|
1104
|
+
// // <p
|
|
1105
|
+
// // class={`${card_cssstyles.cart_btn}` + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '}
|
|
1106
|
+
// // onClick={() => {
|
|
1107
|
+
// // if (authdetailsContext?.instinfo?.contactinfo.instid == '67d6bda67adf6') {
|
|
1108
|
+
// // setshowquantity(true);
|
|
1109
|
+
// // } else {
|
|
1110
|
+
// // if (sectionproperties.showvariantscont == 'Show') {
|
|
1111
|
+
// // addtocartfunc();
|
|
1112
|
+
// // } else {
|
|
1113
|
+
// // if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
1114
|
+
// // addtocartfunc();
|
|
1115
|
+
// // } else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
1116
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
1117
|
+
// // } else {
|
|
1118
|
+
// // var productidtobesend = null;
|
|
1119
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
1120
|
+
// // productidtobesend = item.productendpointurl;
|
|
1121
|
+
// // } else {
|
|
1122
|
+
// // productidtobesend = item.productid;
|
|
1123
|
+
// // }
|
|
1124
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
1125
|
+
// // }
|
|
1126
|
+
// // }
|
|
1127
|
+
// // }
|
|
1128
|
+
// // }}
|
|
1129
|
+
// // >
|
|
1130
|
+
// // {addtocartbuttonrender()}
|
|
1131
|
+
// // </p>
|
|
1132
|
+
// // </div>
|
|
1133
|
+
// // )}
|
|
1134
|
+
// // {showquantity == true && (
|
|
1135
|
+
// // <div class="col-lg-12 p-0 d-flex align-items-center allcentered">
|
|
1136
|
+
// // <div class={`${card_cssstyles.quantitybtn}` + ' p-0 d-flex align-items-center justify-content-center '} style={{ direction: 'ltr' }}>
|
|
1137
|
+
// // <button
|
|
1138
|
+
// // class={`${card_cssstyles.minus_quantitybtn_icon_container}`}
|
|
1139
|
+
// // onClick={() => {
|
|
1140
|
+
// // if (item.hasvariants == 0) {
|
|
1141
|
+
// // var tempitem = { ...item };
|
|
1142
|
+
// // tempitem.quantity = parseInt(tempitem.quantity);
|
|
1143
|
+
// // tempitem.quantity = tempitem.quantity - 1;
|
|
1144
|
+
// // if (tempitem.quantity <= 0) {
|
|
1145
|
+
// // tempitem.quantity = 0;
|
|
1146
|
+
// // }
|
|
1147
|
+
// // setitem({ ...tempitem });
|
|
1148
|
+
// // addtocartfuncquantity('add', tempitem.quantity);
|
|
1149
|
+
// // } else {
|
|
1150
|
+
// // setShowProductInfoModalContext(true);
|
|
1151
|
+
// // setProductIdProdutInfoModalContext(item.productid);
|
|
1152
|
+
// // }
|
|
1153
|
+
// // }}
|
|
1154
|
+
// // disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
1155
|
+
// // >
|
|
1156
|
+
// // <i class="h-100 allcentered minusbtn">
|
|
1157
|
+
// // <FiMinus />
|
|
1158
|
+
// // </i>
|
|
1159
|
+
// // </button>
|
|
1160
|
+
// // <span
|
|
1161
|
+
// // class={' d-flex align-items-center justify-content-center '}
|
|
1162
|
+
// // style={{
|
|
1163
|
+
// // fontSize: 14,
|
|
1164
|
+
// // fontWeight: 500,
|
|
1165
|
+
// // color: sectionproperties.cartBtnbgColor,
|
|
1166
|
+
// // flex: 1,
|
|
1167
|
+
// // }}
|
|
1168
|
+
// // >
|
|
1169
|
+
// // {addtocartbuttonrenderquantity()}
|
|
1170
|
+
// // </span>
|
|
1171
|
+
// // <button
|
|
1172
|
+
// // class={`${card_cssstyles.minus_quantitybtn_icon_container}`}
|
|
1173
|
+
// // onClick={() => {
|
|
1174
|
+
// // if (item.hasvariants == 0) {
|
|
1175
|
+
// // var tempitem = { ...item };
|
|
1176
|
+
// // tempitem.quantity = parseInt(tempitem.quantity);
|
|
1177
|
+
// // tempitem.quantity = tempitem.quantity + 1;
|
|
1178
|
+
// // if (tempitem.quantity <= 0) {
|
|
1179
|
+
// // tempitem.quantity = 0;
|
|
1180
|
+
// // }
|
|
1181
|
+
// // setitem({ ...tempitem });
|
|
1182
|
+
// // addtocartfuncquantity('add', tempitem.quantity);
|
|
1183
|
+
// // } else {
|
|
1184
|
+
// // setShowProductInfoModalContext(true);
|
|
1185
|
+
// // setProductIdProdutInfoModalContext(item.productid);
|
|
1186
|
+
// // }
|
|
1187
|
+
// // }}
|
|
1188
|
+
// // disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
1189
|
+
// // >
|
|
1190
|
+
// // <i class="h-100 allcentered addbtn">
|
|
1191
|
+
// // <FiPlus />
|
|
1192
|
+
// // </i>
|
|
1193
|
+
// // </button>
|
|
1194
|
+
// // </div>
|
|
1195
|
+
// // </div>
|
|
1196
|
+
// // )}
|
|
1197
|
+
// // </div>
|
|
1198
|
+
// // </div>
|
|
1199
|
+
// // {sectionproperties.showrating == 'Show' && item.productcanrate == 1 && (
|
|
1200
|
+
// // <div
|
|
1201
|
+
// // class="col-lg-12 d-flex align-items-center p-0"
|
|
1202
|
+
// // style={{
|
|
1203
|
+
// // justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
1204
|
+
// // }}
|
|
1205
|
+
// // >
|
|
1206
|
+
// // <ReactStars
|
|
1207
|
+
// // count={5}
|
|
1208
|
+
// // value={item.productoverallrate}
|
|
1209
|
+
// // edit={false}
|
|
1210
|
+
// // size={16}
|
|
1211
|
+
// // emptyIcon={<i className="far fa-star" style={{ color: '#cccccc' }}></i>}
|
|
1212
|
+
// // halfIcon={<i className="fa fa-star-half-alt style={{ color: '#FAB400' }}"></i>}
|
|
1213
|
+
// // filledIcon={<i className="fa fa-star" style={{ color: '#FAB400' }}></i>}
|
|
1214
|
+
// // activeColor="#ffd700"
|
|
1215
|
+
// // />
|
|
1216
|
+
// // </div>
|
|
1217
|
+
// // )}
|
|
1218
|
+
// // </div>
|
|
1219
|
+
// // </div>
|
|
1220
|
+
// // </div>
|
|
1221
|
+
// // </div>
|
|
1222
|
+
// // );
|
|
1223
|
+
// // };
|
|
1224
|
+
// // export default Simpleproductcard;
|
|
1225
|
+
// import React, { useEffect, useState, useContext } from 'react';
|
|
1226
|
+
// import { css } from 'glamor';
|
|
1227
|
+
// import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
|
|
1228
|
+
// import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
|
|
1229
|
+
// import { FiShoppingBag } from '@react-icons/all-files/fi/FiShoppingBag';
|
|
1230
|
+
// import { FaRegHeart } from '@react-icons/all-files/fa/FaRegHeart';
|
|
1231
|
+
// import { FaHeart } from '@react-icons/all-files/fa/FaHeart';
|
|
1232
|
+
// import { CgShoppingBag } from '@react-icons/all-files/cg/CgShoppingBag';
|
|
1233
|
+
// import { AiFillStar } from '@react-icons/all-files/ai/AiFillStar';
|
|
1234
|
+
// import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
|
|
1235
|
+
// import { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';
|
|
1236
|
+
// import { BsBag } from '@react-icons/all-files/bs/BsBag';
|
|
1237
|
+
// import { RiHandbagLine } from '@react-icons/all-files/ri/RiHandbagLine';
|
|
1238
|
+
// import ReactStars from 'react-rating-stars-component';
|
|
1239
|
+
// import cardstyles from '../../../styles/cards/card23.module.css';
|
|
1240
|
+
// import { BsEye } from '@react-icons/all-files/bs/BsEye';
|
|
1241
|
+
// import { CircularProgress } from 'react-cssfx-loading';
|
|
1242
|
+
// import Variants_J_Cards from '../Variants_J_Cards/Variants_J_Cards.jsx';
|
|
1243
|
+
// const Simpleproductcard = (props) => {
|
|
1244
|
+
// const [sectionproperties, setsectionproperties] = useState('');
|
|
1245
|
+
// const [variantObj, setvariantObj] = useState('');
|
|
1246
|
+
// const [item, setitem] = useState(props.cardinfoitemprops);
|
|
1247
|
+
// const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
1248
|
+
// const lang = props.actions.lang;
|
|
1249
|
+
// const langdetect = props.actions.langdetect;
|
|
1250
|
+
// const setShowProductInfoModalContext = props.actions.setShowProductInfoModalContext;
|
|
1251
|
+
// const addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
1252
|
+
// const setProductIdProdutInfoModalContext = props.actions.setProductIdProdutInfoModalContext;
|
|
1253
|
+
// const cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
1254
|
+
// const ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
1255
|
+
// const NotificationManager = props.actions.NotificationManager;
|
|
1256
|
+
// const AddtoCartContext = props.actions.AddtoCartContext;
|
|
1257
|
+
// const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
1258
|
+
// const [addtocardpayloadobj, setaddtocardpayloadobj] = useState('');
|
|
1259
|
+
// const [Variant_Color_ImageObj, setVariant_Color_ImageObj] = useState('');
|
|
1260
|
+
// const authdetailsContext = props.actions.authdetailsContext;
|
|
1261
|
+
|
|
1262
|
+
// const plainString = (html) => {
|
|
1263
|
+
// var divContainer = document.createElement('div');
|
|
1264
|
+
// divContainer.innerHTML = html;
|
|
1265
|
+
// return divContainer.textContent || divContainer.innerText || '';
|
|
1266
|
+
// };
|
|
1267
|
+
// useEffect(() => {
|
|
1268
|
+
// var secpropobj = {};
|
|
1269
|
+
// StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
1270
|
+
// if (sectionitem.sectionid == props.sectionidprops) {
|
|
1271
|
+
// sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
1272
|
+
// secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
1273
|
+
// });
|
|
1274
|
+
// }
|
|
1275
|
+
// });
|
|
1276
|
+
// setsectionproperties({ ...secpropobj });
|
|
1277
|
+
// }, [StatePagePropertiesContext]);
|
|
1278
|
+
// useEffect(() => {
|
|
1279
|
+
// setitem(props.cardinfoitemprops);
|
|
1280
|
+
// }, [props.cardinfoitemprops]);
|
|
1281
|
+
// useEffect(() => {
|
|
1282
|
+
// var productImagetoBeSelected = '';
|
|
1283
|
+
// var Tempitem = { ...item };
|
|
1284
|
+
// productImagetoBeSelected = item.productmainimage;
|
|
1285
|
+
// if (variantObj != undefined && variantObj != null && Object.keys(variantObj).length != 0 && variantObj != '') {
|
|
1286
|
+
// var variatgalleryid = variantObj.variantgalleryid;
|
|
1287
|
+
// if (variatgalleryid != undefined && variatgalleryid != null && variatgalleryid != '') {
|
|
1288
|
+
// item?.productimages?.forEach(function (item, index) {
|
|
1289
|
+
// if (item.galleryid == variatgalleryid) {
|
|
1290
|
+
// productImagetoBeSelected = item.path;
|
|
1291
|
+
// }
|
|
1292
|
+
// });
|
|
1293
|
+
// }
|
|
1294
|
+
// }
|
|
1295
|
+
|
|
1296
|
+
// Tempitem.image = productImagetoBeSelected;
|
|
1297
|
+
// setitem({ ...Tempitem });
|
|
1298
|
+
// }, [variantObj]);
|
|
1299
|
+
// useEffect(() => {
|
|
1300
|
+
// var productImagetoBeSelected = '';
|
|
1301
|
+
// var Tempitem = { ...item };
|
|
1302
|
+
// productImagetoBeSelected = item.productmainimage;
|
|
1303
|
+
// if (Variant_Color_ImageObj != undefined && Variant_Color_ImageObj != null && Object.keys(Variant_Color_ImageObj).length != 0 && Variant_Color_ImageObj != '') {
|
|
1304
|
+
// var variatgalleryid = Variant_Color_ImageObj.variantgalleryid;
|
|
1305
|
+
// if (variatgalleryid != undefined && variatgalleryid != null && variatgalleryid != '') {
|
|
1306
|
+
// item?.productimages?.forEach(function (item, index) {
|
|
1307
|
+
// if (item.galleryid == variatgalleryid) {
|
|
1308
|
+
// productImagetoBeSelected = item.path;
|
|
1309
|
+
// }
|
|
1310
|
+
// });
|
|
1311
|
+
// }
|
|
1312
|
+
// }
|
|
1313
|
+
|
|
1314
|
+
// Tempitem.image = productImagetoBeSelected;
|
|
1315
|
+
// setitem({ ...Tempitem });
|
|
1316
|
+
// }, [Variant_Color_ImageObj]);
|
|
1317
|
+
// const card_cssstyles = {
|
|
1318
|
+
// innersection: css({
|
|
1319
|
+
// paddingLeft: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
1320
|
+
// paddingRight: sectionproperties.innersectionpaddinghorizontal + 'px',
|
|
1321
|
+
// '@media (max-width: 800px)': {
|
|
1322
|
+
// paddingLeft: sectionproperties.innersectionpaddinghorizontal == 0 ? 0 : 5,
|
|
1323
|
+
// paddingRight: sectionproperties.innersectionpaddinghorizontal == 0 ? 0 : 5,
|
|
1324
|
+
// },
|
|
1325
|
+
// }),
|
|
1326
|
+
// productcard: css({
|
|
1327
|
+
// minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
1328
|
+
// maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
1329
|
+
// '@media (max-width: 800px)': {
|
|
1330
|
+
// minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
1331
|
+
// maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
1332
|
+
// },
|
|
1333
|
+
// ':hover .iconsContainer': {
|
|
1334
|
+
// opacity: 1,
|
|
1335
|
+
// transition: 'all, 0.4s',
|
|
1336
|
+
// right: 10,
|
|
1337
|
+
// transform: `translateX(0px)`,
|
|
1338
|
+
// },
|
|
1339
|
+
// // ':hover .pname': {
|
|
1340
|
+
// // textDecoration: 'underline',
|
|
1341
|
+
// // transition: '.3s',
|
|
1342
|
+
// // },
|
|
1343
|
+
// }),
|
|
1344
|
+
// productcardimagecont: css({
|
|
1345
|
+
// position: 'relative',
|
|
1346
|
+
// overflow: 'hidden',
|
|
1347
|
+
// height: sectionproperties.image_height == 0 ? 'auto' : sectionproperties.image_height + 'px',
|
|
1348
|
+
// background: sectionproperties.image_bgtransparent == 'Transparent' ? '' : sectionproperties.image_bgcolor,
|
|
1349
|
+
// border: sectionproperties.image_borderType == 'All' ? sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor : 0,
|
|
1350
|
+
// borderBottom: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
1351
|
+
// borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
1352
|
+
// borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
1353
|
+
// borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
1354
|
+
// borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
1355
|
+
// transition: '.3s',
|
|
1356
|
+
// opacity: item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
|
|
1357
|
+
// '@media (max-width: 800px)': {
|
|
1358
|
+
// height:
|
|
1359
|
+
// sectionproperties.height_responsive == 0
|
|
1360
|
+
// ? 'auto'
|
|
1361
|
+
// : sectionproperties.height_responsive != null
|
|
1362
|
+
// ? sectionproperties.height_responsive + 'px'
|
|
1363
|
+
// : sectionproperties.image_height + 'px',
|
|
1364
|
+
// },
|
|
1365
|
+
// }),
|
|
1366
|
+
// productNameStyles: css({
|
|
1367
|
+
// color: sectionproperties.prodNameColor,
|
|
1368
|
+
// fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
1369
|
+
// textTransform: sectionproperties.prodNameTextTranform,
|
|
1370
|
+
// fontWeight: sectionproperties.prodNameFontWeight,
|
|
1371
|
+
// transition: '.3s',
|
|
1372
|
+
// cursor: 'pointer',
|
|
1373
|
+
// ':hover': {
|
|
1374
|
+
// color: sectionproperties.prodNameColorOnHover,
|
|
1375
|
+
// },
|
|
1376
|
+
// }),
|
|
1377
|
+
// productPricestyles: css({
|
|
1378
|
+
// color: sectionproperties.prodPriceColor,
|
|
1379
|
+
// fontSize: sectionproperties.prodpriceFontSize + 'px',
|
|
1380
|
+
// fontWeight: sectionproperties.prodPriceFontWeight,
|
|
1381
|
+
// }),
|
|
1382
|
+
// productSalePricestyles: css({
|
|
1383
|
+
// color: sectionproperties.prodsalePriceColor,
|
|
1384
|
+
// fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
1385
|
+
// fontWeight: sectionproperties.prodsalePriceFontWeight,
|
|
1386
|
+
// }),
|
|
1387
|
+
// wishlist_btn: css({
|
|
1388
|
+
// width: sectionproperties.favBtnWidth + 'px',
|
|
1389
|
+
// height: sectionproperties.favBtnHeight + 'px',
|
|
1390
|
+
// background: sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColor,
|
|
1391
|
+
// borderRadius: sectionproperties.fav_btn_borderBottomLeftRadius + 'px',
|
|
1392
|
+
// color: sectionproperties.favBtnTextcolor,
|
|
1393
|
+
// fontSize: sectionproperties.favBtnTextfontsize + 'px',
|
|
1394
|
+
// textTransform: sectionproperties.favBtnTexttransform,
|
|
1395
|
+
// fontWeight: sectionproperties.favBtnTextfontweight,
|
|
1396
|
+
// transition: '.3s',
|
|
1397
|
+
// border: sectionproperties.favbtnborderwidth + 'px solid ' + sectionproperties.favbtnbordercolor,
|
|
1398
|
+
// ':hover': {
|
|
1399
|
+
// background: sectionproperties.favbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.favBtnbgColoronhover,
|
|
1400
|
+
// color: sectionproperties.favBtnTextcoloronhover,
|
|
1401
|
+
// },
|
|
1402
|
+
// }),
|
|
1403
|
+
// cart_btn: css({
|
|
1404
|
+
// width: sectionproperties.cartBtnWidth == 0 ? 'auto' : sectionproperties.cartBtnWidth + 'px',
|
|
1405
|
+
// height: sectionproperties.cartBtnHeight + 'px',
|
|
1406
|
+
// background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
1407
|
+
// borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
1408
|
+
// color: sectionproperties.cartBtnTextcolor,
|
|
1409
|
+
// fontSize: sectionproperties.cartBtnTextfontsize + 'px',
|
|
1410
|
+
// textTransform: sectionproperties.cartBtnTexttransform,
|
|
1411
|
+
// fontWeight: sectionproperties.cartBtnTextfontweight,
|
|
1412
|
+
// border: sectionproperties.cartbtnborderwidth + 'px solid ' + sectionproperties.cartbtnbordercolor,
|
|
1413
|
+
// transition: '.3s',
|
|
1414
|
+
// textDecoration: sectionproperties.cartbtntextdecoration == 'Underline' ? 'underline' : 'none',
|
|
1415
|
+
// ':hover': {
|
|
1416
|
+
// background: sectionproperties.cartbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColoronhover,
|
|
1417
|
+
// color: sectionproperties.cartBtnTextcoloronhover,
|
|
1418
|
+
// borderColor: sectionproperties.cartBtnTextcoloronhover,
|
|
1419
|
+
// },
|
|
1420
|
+
// }),
|
|
1421
|
+
// outstockbadge: css({
|
|
1422
|
+
// width: sectionproperties.outstock_width + 'px',
|
|
1423
|
+
// height: sectionproperties.outstock_height + 'px',
|
|
1424
|
+
// background: sectionproperties.outstock_bg,
|
|
1425
|
+
// color: sectionproperties.outstock_color,
|
|
1426
|
+
// fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
1427
|
+
// borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
1428
|
+
// position: 'absolute',
|
|
1429
|
+
// zIndex: 2,
|
|
1430
|
+
// top: 0,
|
|
1431
|
+
// bottom: 0,
|
|
1432
|
+
// left: 0,
|
|
1433
|
+
// right: 0,
|
|
1434
|
+
// margin: 'auto',
|
|
1435
|
+
// }),
|
|
1436
|
+
// profitcontainer: css({
|
|
1437
|
+
// width: sectionproperties.profitcontainerwidth + '%',
|
|
1438
|
+
// height: sectionproperties.profitcontainerheight + 'px',
|
|
1439
|
+
// background: sectionproperties.profitcontainerbgcolor,
|
|
1440
|
+
// border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
1441
|
+
// borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
1442
|
+
// color: sectionproperties.profitcontainercolor,
|
|
1443
|
+
// '@media (max-width: 800px)': {
|
|
1444
|
+
// width: '100%',
|
|
1445
|
+
// },
|
|
1446
|
+
// }),
|
|
1447
|
+
// productDescStyles: css({
|
|
1448
|
+
// color: sectionproperties.prodCatColor,
|
|
1449
|
+
// fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
1450
|
+
// fontWeight: sectionproperties.prodCatFontWeight,
|
|
1451
|
+
// }),
|
|
1452
|
+
// pinfohover: css({
|
|
1453
|
+
// opacity: 0,
|
|
1454
|
+
// background: 'white',
|
|
1455
|
+
// position: 'absolute',
|
|
1456
|
+
// top: 0,
|
|
1457
|
+
// transition: '.3s',
|
|
1458
|
+
// }),
|
|
1459
|
+
// icontainer: css({
|
|
1460
|
+
// ':hover .pinfohover': {
|
|
1461
|
+
// opacity: 1,
|
|
1462
|
+
// transition: '.3s',
|
|
1463
|
+
// },
|
|
1464
|
+
// }),
|
|
1465
|
+
// cardconttt: css({
|
|
1466
|
+
// background:
|
|
1467
|
+
// sectionproperties.backgroundColortransparent == 'Transparent'
|
|
1468
|
+
// ? 'transparent'
|
|
1469
|
+
// : sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff'
|
|
1470
|
+
// ? 'rgba(250,250,250,' + sectionproperties.cardbg_opacity + ')'
|
|
1471
|
+
// : sectionproperties.backgroundColor,
|
|
1472
|
+
// borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
1473
|
+
// borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
1474
|
+
// borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
1475
|
+
// borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
1476
|
+
// marginTop: sectionproperties.marginTop + 'px',
|
|
1477
|
+
// marginBottom: sectionproperties.marginBottom + 'px',
|
|
1478
|
+
// border: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
1479
|
+
// paddingTop: sectionproperties.paddingTop + 'px',
|
|
1480
|
+
// paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
1481
|
+
// paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
1482
|
+
// paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
1483
|
+
// transition: '.3s',
|
|
1484
|
+
// // opacity: sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff' ? 'rgba(250,250,250,' + sectionproperties.cardbg_opacity + ')' : 1,
|
|
1485
|
+
// ':hover': {
|
|
1486
|
+
// backgroundColor:
|
|
1487
|
+
// sectionproperties.backgroundColortransparent != 'Transparent' && sectionproperties.backgroundColor == '#ffffff'
|
|
1488
|
+
// ? 'rgba(250,250,250,' + sectionproperties.bgopacityonhover + ')'
|
|
1489
|
+
// : 1,
|
|
1490
|
+
// transition: 0.3,
|
|
1491
|
+
// boxShadow: '0 0 10px ' + sectionproperties.sectioncardshadowcoloronhover,
|
|
1492
|
+
// },
|
|
1493
|
+
// }),
|
|
1494
|
+
// iconsContainer: css({
|
|
1495
|
+
// display: 'flex',
|
|
1496
|
+
// flexDirection: 'column',
|
|
1497
|
+
// position: 'absolute',
|
|
1498
|
+
// top: 5,
|
|
1499
|
+
// right: -15,
|
|
1500
|
+
// opacity: 0,
|
|
1501
|
+
// transform: `translateX(5px)`,
|
|
1502
|
+
// zIndex: 10,
|
|
1503
|
+
// '@media (max-width: 800px)': {
|
|
1504
|
+
// opacity: 1,
|
|
1505
|
+
// right: 10,
|
|
1506
|
+
// },
|
|
1507
|
+
// }),
|
|
1508
|
+
// iconsContainer2: css({
|
|
1509
|
+
// opacity: 1,
|
|
1510
|
+
// transition: 'all, 0.4s',
|
|
1511
|
+
// right: 10,
|
|
1512
|
+
// transform: `translateX(0px)`,
|
|
1513
|
+
// }),
|
|
1514
|
+
// sku: css({
|
|
1515
|
+
// fontSize: sectionproperties.skuFontSize + 'px',
|
|
1516
|
+
// color: sectionproperties.skuColor,
|
|
1517
|
+
// fontWeight: sectionproperties.skuFontWeight,
|
|
1518
|
+
// }),
|
|
1519
|
+
// imagediv: css({
|
|
1520
|
+
// ':hover': {
|
|
1521
|
+
// transition: 'all .4s ease',
|
|
1522
|
+
// transform: sectionproperties.zoomimageonhover == 'Yes' ? 'scale(1.1)' : '',
|
|
1523
|
+
// },
|
|
1524
|
+
// }),
|
|
1525
|
+
// };
|
|
1526
|
+
// const [secondimage, setsecondimage] = useState('');
|
|
1527
|
+
// useEffect(() => {
|
|
1528
|
+
// setitem(props.cardinfoitemprops);
|
|
1529
|
+
// if (props?.cardinfoitemprops?.productimages?.length == 1) {
|
|
1530
|
+
// setsecondimage(props?.cardinfoitemprops?.image);
|
|
1531
|
+
// } else {
|
|
1532
|
+
// if (props?.cardinfoitemprops != undefined && props?.cardinfoitemprops?.productimages != undefined && Array.isArray(props?.cardinfoitemprops?.productimages)) {
|
|
1533
|
+
// if (props?.cardinfoitemprops?.productimages[0] != undefined && props?.cardinfoitemprops?.productimages[0]?.path == props?.cardinfoitemprops?.image) {
|
|
1534
|
+
// if (props?.cardinfoitemprops?.productimages[1]?.length != 0) {
|
|
1535
|
+
// setsecondimage(props?.cardinfoitemprops?.productimages[1]?.path);
|
|
1536
|
+
// } else {
|
|
1537
|
+
// setsecondimage(props?.cardinfoitemprops?.image);
|
|
1538
|
+
// }
|
|
1539
|
+
// } else {
|
|
1540
|
+
// setsecondimage(props?.cardinfoitemprops?.productimages[0]?.path);
|
|
1541
|
+
// }
|
|
1542
|
+
// }
|
|
1543
|
+
// }
|
|
1544
|
+
// }, [props.cardinfoitemprops]);
|
|
1545
|
+
// const addtocartfunc = () => {
|
|
1546
|
+
// var addtocardpayloadobj = {
|
|
1547
|
+
// functype: 'add',
|
|
1548
|
+
// productid: item.productid,
|
|
1549
|
+
// variantid: '',
|
|
1550
|
+
// quantity: item.quantity,
|
|
1551
|
+
// vendorid: item.vendorid,
|
|
1552
|
+
// };
|
|
1553
|
+
|
|
1554
|
+
// var runfunc = false;
|
|
1555
|
+
// if (item.productid != '6811f1adebacc' && item.productid != '6811f2c05bd7f') {
|
|
1556
|
+
// if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
1557
|
+
// if (item.hasvariants == 1) {
|
|
1558
|
+
// // if (addtocardpayloadobj.variantid.length != 0) {
|
|
1559
|
+
// if (variantObj != undefined && variantObj != null && Object.keys(variantObj).length != 0) {
|
|
1560
|
+
// addtocardpayloadobj.variantid = variantObj.variantid;
|
|
1561
|
+
// runfunc = true;
|
|
1562
|
+
// } else {
|
|
1563
|
+
// NotificationManager.warning(
|
|
1564
|
+
// '',
|
|
1565
|
+
// authdetailsContext?.instinfo?.contactinfo.instid == '674f0617c7811'
|
|
1566
|
+
// ? 'Please Choose Size & Color'
|
|
1567
|
+
// : authdetailsContext?.instinfo?.contactinfo.instid == '67e448d2ef6e0'
|
|
1568
|
+
// ? 'من فضلك اختر لون'
|
|
1569
|
+
// : langdetect == 'en'
|
|
1570
|
+
// ? 'Please Choose Product Options'
|
|
1571
|
+
// : 'من فضلك اختر متغير',
|
|
1572
|
+
// );
|
|
1573
|
+
// }
|
|
1574
|
+
// } else {
|
|
1575
|
+
// runfunc = true;
|
|
1576
|
+
// }
|
|
1577
|
+
// } else {
|
|
1578
|
+
// NotificationManager.warning('', langdetect == 'en' ? 'Please Choose Quantity' : 'من فضلك اختر الكمية');
|
|
1579
|
+
// }
|
|
1580
|
+
// } else {
|
|
1581
|
+
// }
|
|
1582
|
+
|
|
1583
|
+
// if (runfunc == true) {
|
|
1584
|
+
// AddtoCartContext(addtocardpayloadobj);
|
|
1585
|
+
// }
|
|
1586
|
+
// };
|
|
1587
|
+
// // const addtocartfunc = () => {
|
|
1588
|
+
// // var runfunc = false;
|
|
1589
|
+
|
|
1590
|
+
// // var tempaddtocardpayloadobj = { ...addtocardpayloadobj };
|
|
1591
|
+
// // tempaddtocardpayloadobj.productid = item.productid;
|
|
1592
|
+
// // tempaddtocardpayloadobj.functype = 'add';
|
|
1593
|
+
// // tempaddtocardpayloadobj.item_type = 'product';
|
|
1594
|
+
// // tempaddtocardpayloadobj.quantity = 1;
|
|
1595
|
+
|
|
1596
|
+
// // AddtoCartContext(tempaddtocardpayloadobj);
|
|
1597
|
+
// // };
|
|
1598
|
+
// const addtocartbuttonrender = () => {
|
|
1599
|
+
// if (AddtoCartMutationContext.isLoading) {
|
|
1600
|
+
// if (AddtoCartMutationContext?.variables?.productid == item.productid) {
|
|
1601
|
+
// return (
|
|
1602
|
+
// <div class={' d-flex align-items-center justify-content-center '}>
|
|
1603
|
+
// <CircularProgress color={sectionproperties.cartBtnTextcolor} width="20px" height="20px" duration="1s" />
|
|
1604
|
+
// </div>
|
|
1605
|
+
// );
|
|
1606
|
+
// } else {
|
|
1607
|
+
// return (
|
|
1608
|
+
// <span class="w-100 allcentered">
|
|
1609
|
+
// {sectionproperties.cartBtn_iconFontSize != 0 && (
|
|
1610
|
+
// <i class={langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'}>
|
|
1611
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1612
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1613
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1614
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 4' && <RiHandbagLine size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1615
|
+
// {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1616
|
+
// {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1617
|
+
// </i>
|
|
1618
|
+
// )}
|
|
1619
|
+
// {item.productid != '6811f1adebacc' && item.productid != '6811f2c05bd7f'
|
|
1620
|
+
// ? langdetect == 'en'
|
|
1621
|
+
// ? sectionproperties.cartBtnContentenglish
|
|
1622
|
+
// : sectionproperties.cartBtnContentarabic
|
|
1623
|
+
// : langdetect == 'en'
|
|
1624
|
+
// ? 'COMING SOON'
|
|
1625
|
+
// : 'قريباً'}
|
|
1626
|
+
// </span>
|
|
1627
|
+
// );
|
|
1628
|
+
// }
|
|
1629
|
+
// }
|
|
1630
|
+
// if (!AddtoCartMutationContext.isLoading) {
|
|
1631
|
+
// return (
|
|
1632
|
+
// <span class="w-100 allcentered">
|
|
1633
|
+
// <i class={langdetect == 'en' ? 'h-100 mr-2 d-flex align-items-center justify-content-center' : 'h-100 ml-2 d-flex align-items-center justify-content-center'}>
|
|
1634
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1635
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1636
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1637
|
+
// {sectionproperties.carticonstyle == 'Shopping bag 4' && <RiHandbagLine size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1638
|
+
// {sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart class="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1639
|
+
// {sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
1640
|
+
// </i>
|
|
1641
|
+
// {item.productid != '6811f1adebacc' && item.productid != '6811f2c05bd7f'
|
|
1642
|
+
// ? langdetect == 'en'
|
|
1643
|
+
// ? sectionproperties.cartBtnContentenglish
|
|
1644
|
+
// : sectionproperties.cartBtnContentarabic
|
|
1645
|
+
// : langdetect == 'en'
|
|
1646
|
+
// ? 'COMING SOON'
|
|
1647
|
+
// : 'قريباً'}
|
|
1648
|
+
// {/* {langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic} */}
|
|
1649
|
+
// </span>
|
|
1650
|
+
// );
|
|
1651
|
+
// }
|
|
1652
|
+
// };
|
|
1653
|
+
// const Image = (type) => {
|
|
1654
|
+
// var transition = false;
|
|
1655
|
+
// if (sectionproperties.hideshowcardtransition == 'Show' && type != 'responsive') {
|
|
1656
|
+
// transition = true;
|
|
1657
|
+
// }
|
|
1658
|
+
|
|
1659
|
+
// return (
|
|
1660
|
+
// <div class={card_cssstyles.imagediv + ' w-100 cursor-pointer '} style={{ position: 'relative' }}>
|
|
1661
|
+
// <Imagekitimagecomp
|
|
1662
|
+
// class={transition ? cardstyles.intialimage : ''}
|
|
1663
|
+
// urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
1664
|
+
// publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
1665
|
+
// path={'/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image}
|
|
1666
|
+
// loading="lazy"
|
|
1667
|
+
// style={{
|
|
1668
|
+
// width: sectionproperties.imageInnerWidth_Height + '%',
|
|
1669
|
+
// height: sectionproperties.imageInnerWidth_Height + '%',
|
|
1670
|
+
// objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
1671
|
+
// }}
|
|
1672
|
+
// />
|
|
1673
|
+
// {transition && (
|
|
1674
|
+
// <Imagekitimagecomp
|
|
1675
|
+
// class={cardstyles.secondaryimage}
|
|
1676
|
+
// urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
1677
|
+
// publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
1678
|
+
// path={'/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + secondimage}
|
|
1679
|
+
// loading="lazy"
|
|
1680
|
+
// style={{
|
|
1681
|
+
// width: sectionproperties.imageInnerWidth_Height + '%',
|
|
1682
|
+
// height: sectionproperties.imageInnerWidth_Height + '%',
|
|
1683
|
+
// objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain',
|
|
1684
|
+
// }}
|
|
1685
|
+
// />
|
|
1686
|
+
// )}
|
|
1687
|
+
// </div>
|
|
1688
|
+
// );
|
|
1689
|
+
// };
|
|
1690
|
+
// const [clickCount, setClickCount] = useState(0);
|
|
1691
|
+
// const handleClick = () => {
|
|
1692
|
+
// // Increase the click count by 1
|
|
1693
|
+
// setClickCount((prevCount) => prevCount + 1);
|
|
1694
|
+
|
|
1695
|
+
// // Check if it's the second click
|
|
1696
|
+
// if (sectionproperties.hideshowcardtransition == 'Show') {
|
|
1697
|
+
// if (clickCount === 1) {
|
|
1698
|
+
// // Do whatever you want on the second click
|
|
1699
|
+
// var productidtobesend = null;
|
|
1700
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
1701
|
+
// productidtobesend = item.productendpointurl;
|
|
1702
|
+
// } else {
|
|
1703
|
+
// productidtobesend = item.productid;
|
|
1704
|
+
// }
|
|
1705
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
1706
|
+
// }
|
|
1707
|
+
// } else {
|
|
1708
|
+
// var productidtobesend = null;
|
|
1709
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
1710
|
+
// productidtobesend = item.productendpointurl;
|
|
1711
|
+
// } else {
|
|
1712
|
+
// productidtobesend = item.productid;
|
|
1713
|
+
// }
|
|
1714
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
1715
|
+
// }
|
|
1716
|
+
// };
|
|
1717
|
+
// const PillContainer = () => {
|
|
1718
|
+
// return (
|
|
1719
|
+
// <div
|
|
1720
|
+
// class={sectionproperties.pillwidth == 0 ? ' px-2 allcentered' : 'allcentered'}
|
|
1721
|
+
// style={{
|
|
1722
|
+
// zIndex: 2,
|
|
1723
|
+
|
|
1724
|
+
// width: sectionproperties.pillwidth == 0 ? 'auto' : sectionproperties.pillwidth + 'px',
|
|
1725
|
+
// height: sectionproperties.pillheight + 'px',
|
|
1726
|
+
// background: sectionproperties.pillbgcolor,
|
|
1727
|
+
// borderRadius: sectionproperties.pillborderBottomLeftRadius + 'px',
|
|
1728
|
+
// }}
|
|
1729
|
+
// >
|
|
1730
|
+
// {sectionproperties.countertype == 'Percentage' && (
|
|
1731
|
+
// <p class="m-0 p-0" style={{ color: sectionproperties.pillcolor, fontSize: sectionproperties.pillfontSize + 'px', direction: 'ltr' }}>
|
|
1732
|
+
// {'-' + parseFloat(Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0).toFixed(0) + '%'}
|
|
1733
|
+
// </p>
|
|
1734
|
+
// )}
|
|
1735
|
+
// {sectionproperties.countertype == 'Value' && (
|
|
1736
|
+
// <p class="m-0 p-0 text-uppercase" style={{ color: sectionproperties.pillcolor, fontSize: sectionproperties.pillfontSize + 'px', direction: 'ltr' }}>
|
|
1737
|
+
// {langdetect == 'en' ? 'Save' : 'وفر'} {langdetect == 'en' ? item.currencyname : ''}{' '}
|
|
1738
|
+
// {parseFloat(Math.round(parseInt(item.defaultprice) - parseInt(item.defaultsaleprice))).toFixed(0)} {langdetect == 'en' ? '' : item.currencyname}
|
|
1739
|
+
// </p>
|
|
1740
|
+
// )}
|
|
1741
|
+
// </div>
|
|
1742
|
+
// );
|
|
1743
|
+
// };
|
|
1744
|
+
// return (
|
|
1745
|
+
// <div
|
|
1746
|
+
// class={
|
|
1747
|
+
// props.sectiontypeprops2 == 'vertical'
|
|
1748
|
+
// ? sectionproperties.card_marginLeft == 0 && sectionproperties.card_marginRight == 0
|
|
1749
|
+
// ? `${card_cssstyles.productcard}` + ' w-100 '
|
|
1750
|
+
// : `${card_cssstyles.productcard}` + ' w-100 px-md-1 '
|
|
1751
|
+
// : ` ${card_cssstyles.productcard}`
|
|
1752
|
+
// }
|
|
1753
|
+
// style={{
|
|
1754
|
+
// paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
1755
|
+
// paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px',
|
|
1756
|
+
// }}
|
|
1757
|
+
// >
|
|
1758
|
+
// <div class={card_cssstyles.cardconttt + ' cursor-pointer w-100 '} style={{}}>
|
|
1759
|
+
// {sectionproperties.image_show == 'show' && (
|
|
1760
|
+
// <div class={card_cssstyles.icontainer + ' w-100 '} style={{ position: 'relative' }}>
|
|
1761
|
+
// {sectionproperties.btnswithtransition == 'With Transition' && (
|
|
1762
|
+
// <div class={`${card_cssstyles.iconsContainer}` + ' iconsContainer p-0 d-flex '}>
|
|
1763
|
+
// {sectionproperties.favBtnShow == 'Show' && (
|
|
1764
|
+
// <button
|
|
1765
|
+
// class={` ${card_cssstyles.wishlist_btn}` + ' mt-2 mb-2 '}
|
|
1766
|
+
// onClick={() => {
|
|
1767
|
+
// addtofavoritescontext(item.productid);
|
|
1768
|
+
// }}
|
|
1769
|
+
// >
|
|
1770
|
+
// {item.IsFavExists && (
|
|
1771
|
+
// <i class="h-100 d-flex align-items-center justify-content-center icon">
|
|
1772
|
+
// {sectionproperties.faviconshape == 'Star Shape' && (
|
|
1773
|
+
// <AiFillStar size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
|
|
1774
|
+
// )}
|
|
1775
|
+
// {sectionproperties.faviconshape == 'Heart Shape' && (
|
|
1776
|
+
// <FaHeart size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
|
|
1777
|
+
// )}
|
|
1778
|
+
// </i>
|
|
1779
|
+
// )}
|
|
1780
|
+
// {!item.IsFavExists && (
|
|
1781
|
+
// <i class="h-100 d-flex align-items-center justify-content-center icon">
|
|
1782
|
+
// {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
|
|
1783
|
+
// {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
|
|
1784
|
+
// </i>
|
|
1785
|
+
// )}
|
|
1786
|
+
// </button>
|
|
1787
|
+
// )}
|
|
1788
|
+
|
|
1789
|
+
// {sectionproperties.showproductinfomodalbtn == 'Show' && (
|
|
1790
|
+
// <button
|
|
1791
|
+
// class={`${card_cssstyles.wishlist_btn}` + ' '}
|
|
1792
|
+
// onClick={(e) => {
|
|
1793
|
+
// e.stopPropagation();
|
|
1794
|
+
// setShowProductInfoModalContext(true);
|
|
1795
|
+
// setProductIdProdutInfoModalContext(item.productid);
|
|
1796
|
+
// }}
|
|
1797
|
+
// >
|
|
1798
|
+
// <i class="h-100 d-flex align-items-center justify-content-center icon">
|
|
1799
|
+
// <BsEye size={sectionproperties.generalbtn_fontsize} />
|
|
1800
|
+
// </i>
|
|
1801
|
+
// </button>
|
|
1802
|
+
// )}
|
|
1803
|
+
// </div>
|
|
1804
|
+
// )}
|
|
1805
|
+
// {sectionproperties.favBtnShow == 'Show' && sectionproperties.btnswithtransition != 'With Transition' && (
|
|
1806
|
+
// <button
|
|
1807
|
+
// class={` ${card_cssstyles.wishlist_btn}` + ' m-0 p-0 d-flex align-items-center justify-content-center '}
|
|
1808
|
+
// onClick={(e) => {
|
|
1809
|
+
// e.stopPropagation();
|
|
1810
|
+
// addtofavoritescontext(item.productid);
|
|
1811
|
+
// }}
|
|
1812
|
+
// style={{
|
|
1813
|
+
// zIndex: 2,
|
|
1814
|
+
// position: 'absolute',
|
|
1815
|
+
// top: 5,
|
|
1816
|
+
// right: 5,
|
|
1817
|
+
// // left: langdetect == 'en' ? '' : 5,
|
|
1818
|
+
// background: item.IsFavExists == true ? (sectionproperties.favbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.activebgcolor) : '',
|
|
1819
|
+
// }}
|
|
1820
|
+
// >
|
|
1821
|
+
// {item.IsFavExists && (
|
|
1822
|
+
// <i class="h-100 d-flex align-items-center justify-content-center">
|
|
1823
|
+
// {sectionproperties.faviconshape == 'Star Shape' && (
|
|
1824
|
+
// <AiFillStar size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} class="font-md-20" />
|
|
1825
|
+
// )}
|
|
1826
|
+
// {sectionproperties.faviconshape == 'Heart Shape' && (
|
|
1827
|
+
// <FaHeart size={sectionproperties.favBtnIconfontsize} style={{ color: sectionproperties.activefaviconcolor }} />
|
|
1828
|
+
// )}
|
|
1829
|
+
// </i>
|
|
1830
|
+
// )}
|
|
1831
|
+
// {!item.IsFavExists && (
|
|
1832
|
+
// <i class="h-100 d-flex align-items-center justify-content-center">
|
|
1833
|
+
// {sectionproperties.faviconshape == 'Star Shape' && <AiOutlineStar size={sectionproperties.favBtnIconfontsize} />}
|
|
1834
|
+
// {sectionproperties.faviconshape == 'Heart Shape' && <FaRegHeart size={sectionproperties.favBtnIconfontsize} />}
|
|
1835
|
+
// </i>
|
|
1836
|
+
// )}
|
|
1837
|
+
// </button>
|
|
1838
|
+
// )}
|
|
1839
|
+
// {/* urlwithproductname */}
|
|
1840
|
+
// {item?.hassale == 1 && sectionproperties.showbadge == 'Show' && (
|
|
1841
|
+
// <div
|
|
1842
|
+
// class="allcentered"
|
|
1843
|
+
// style={{
|
|
1844
|
+
// zIndex: 2,
|
|
1845
|
+
// position: 'absolute',
|
|
1846
|
+
// top: sectionproperties.badgeposition == 'Top' ? sectionproperties.badge_top + 'px' : '',
|
|
1847
|
+
// bottom: sectionproperties.badgeposition == 'Bottom' ? sectionproperties.badge_top + 'px' : '',
|
|
1848
|
+
// left: sectionproperties.badge_right + 'px',
|
|
1849
|
+
// // right: langdetect == 'en' ? '' : sectionproperties.badge_right + 'px',
|
|
1850
|
+
// width: sectionproperties.badge_width == 0 ? '90%' : sectionproperties.badge_width + 'px',
|
|
1851
|
+
// height: sectionproperties.badge_height + 'px',
|
|
1852
|
+
// background: sectionproperties.badge_bgcolor,
|
|
1853
|
+
// borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
1854
|
+
// }}
|
|
1855
|
+
// >
|
|
1856
|
+
// <p class="m-0 p-0" style={{ color: sectionproperties.badge_color, fontSize: sectionproperties.badge_fontsize + 'px' }}>
|
|
1857
|
+
// {langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
|
|
1858
|
+
// </p>
|
|
1859
|
+
// </div>
|
|
1860
|
+
// )}
|
|
1861
|
+
// {sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Top' && (
|
|
1862
|
+
// <div
|
|
1863
|
+
// style={{
|
|
1864
|
+
// position: 'absolute',
|
|
1865
|
+
// top: sectionproperties.pillpositionfromtop + 'px',
|
|
1866
|
+
// left: sectionproperties.pillpositionfromright + 'px',
|
|
1867
|
+
// // right: langdetect == 'en' ? '' : sectionproperties.pillpositionfromright + 'px',
|
|
1868
|
+
// zIndex: 3,
|
|
1869
|
+
// }}
|
|
1870
|
+
// >
|
|
1871
|
+
// {PillContainer()}
|
|
1872
|
+
// </div>
|
|
1873
|
+
// )}
|
|
1874
|
+
// {item?.producttags != undefined && item?.producttags?.length != 0 && sectionproperties.showtag == 'Show' && (
|
|
1875
|
+
// <div class="allcentered" style={{ position: 'absolute', bottom: 20, width: '100%', left: 0, right: 0, zIndex: 100 }}>
|
|
1876
|
+
// <div
|
|
1877
|
+
// class="px-3 py-1"
|
|
1878
|
+
// style={{
|
|
1879
|
+
// width: 'fit-content',
|
|
1880
|
+
// background: sectionproperties.tagbackgroundcolor,
|
|
1881
|
+
// borderRadius: sectionproperties.tagborderradius + 'px',
|
|
1882
|
+
// color: sectionproperties.tagcolor,
|
|
1883
|
+
// fontSize: 12,
|
|
1884
|
+
// }}
|
|
1885
|
+
// >
|
|
1886
|
+
// {item?.producttags[0]?.taginfo?.tagname}
|
|
1887
|
+
// </div>
|
|
1888
|
+
// </div>
|
|
1889
|
+
// )}
|
|
1890
|
+
// <div
|
|
1891
|
+
// class={
|
|
1892
|
+
// sectionproperties.hideshowcardtransition == 'Show'
|
|
1893
|
+
// ? ` ${card_cssstyles.productcardimagecont} ${cardstyles.imagecontainer}` + ' d-flex d-md-none '
|
|
1894
|
+
// : ` ${card_cssstyles.productcardimagecont} ` + ' d-flex d-md-none '
|
|
1895
|
+
// }
|
|
1896
|
+
// style={{
|
|
1897
|
+
// marginBottom: sectionproperties.image_mb + 'px',
|
|
1898
|
+
// }}
|
|
1899
|
+
// onClick={(e) => {
|
|
1900
|
+
// if (sectionproperties.sectionproperties?.onClickRoute == 'None') {
|
|
1901
|
+
// } else {
|
|
1902
|
+
// e.stopPropagation();
|
|
1903
|
+
// var productidtobesend = null;
|
|
1904
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
1905
|
+
// productidtobesend = item.productendpointurl;
|
|
1906
|
+
// } else {
|
|
1907
|
+
// productidtobesend = item.productid;
|
|
1908
|
+
// }
|
|
1909
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
1910
|
+
// }
|
|
1911
|
+
// }}
|
|
1912
|
+
// >
|
|
1913
|
+
// {Image('normal')}
|
|
1914
|
+
// </div>
|
|
1915
|
+
// <div
|
|
1916
|
+
// class={
|
|
1917
|
+
// sectionproperties.hideshowcardtransition == 'Show'
|
|
1918
|
+
// ? ` ${card_cssstyles.productcardimagecont} ${cardstyles.imagecontainer}` + ' d-none d-md-flex '
|
|
1919
|
+
// : ` ${card_cssstyles.productcardimagecont} ` + ' d-none d-md-flex '
|
|
1920
|
+
// }
|
|
1921
|
+
// style={{
|
|
1922
|
+
// marginBottom: sectionproperties.image_mb + 'px',
|
|
1923
|
+
// }}
|
|
1924
|
+
// onClick={(e) => {
|
|
1925
|
+
// if (sectionproperties?.onClickRoute == 'None') {
|
|
1926
|
+
// } else {
|
|
1927
|
+
// handleClick();
|
|
1928
|
+
// }
|
|
1929
|
+
// }}
|
|
1930
|
+
// >
|
|
1931
|
+
// {Image('normal')}
|
|
1932
|
+
// </div>
|
|
1933
|
+
// {item.currentquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && (
|
|
1934
|
+
// <div class={`${card_cssstyles.outstockbadge}` + ' allcentered '}>
|
|
1935
|
+
// <p class="m-0 p-0">{langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar}</p>
|
|
1936
|
+
// </div>
|
|
1937
|
+
// )}
|
|
1938
|
+
// {sectionproperties.shownameonhover == 'Yes' && (
|
|
1939
|
+
// <div class={card_cssstyles.pinfohover + ' col-lg-12 pl-0 pr-0 allcentered h-100 pinfohover '} style={{}}>
|
|
1940
|
+
// <p
|
|
1941
|
+
// onClick={() => {
|
|
1942
|
+
// if (sectionproperties?.onClickRoute == 'None') {
|
|
1943
|
+
// } else {
|
|
1944
|
+
// var productidtobesend = null;
|
|
1945
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
1946
|
+
// productidtobesend = item.productendpointurl;
|
|
1947
|
+
// } else {
|
|
1948
|
+
// productidtobesend = item.productid;
|
|
1949
|
+
// }
|
|
1950
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
1951
|
+
// }
|
|
1952
|
+
// }}
|
|
1953
|
+
// class={
|
|
1954
|
+
// sectionproperties.wordbreak == '1'
|
|
1955
|
+
// ? `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak1 font-md-13 m-0 '
|
|
1956
|
+
// : `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 '
|
|
1957
|
+
// }
|
|
1958
|
+
// style={{
|
|
1959
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
1960
|
+
// }}
|
|
1961
|
+
// >
|
|
1962
|
+
// {item.name}
|
|
1963
|
+
// </p>
|
|
1964
|
+
// </div>
|
|
1965
|
+
// )}
|
|
1966
|
+
// </div>
|
|
1967
|
+
// )}
|
|
1968
|
+
// <div>
|
|
1969
|
+
// <div class={card_cssstyles.innersection + ' row m-0 w-100 '} style={{}}>
|
|
1970
|
+
// {sectionproperties.showfeatures == 'Show' && (
|
|
1971
|
+
// <div class="allcentered col-lg-12 p-0" style={{ height: 40 }}>
|
|
1972
|
+
// <Imagekitimagecomp
|
|
1973
|
+
// urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
1974
|
+
// publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
1975
|
+
// path={item?.feature_image_url}
|
|
1976
|
+
// loading="lazy"
|
|
1977
|
+
// style={{
|
|
1978
|
+
// maxWidth: '50%',
|
|
1979
|
+
// maxHeight: '50%',
|
|
1980
|
+
// }}
|
|
1981
|
+
// />
|
|
1982
|
+
// <div
|
|
1983
|
+
// class="text-capitalize mx-2"
|
|
1984
|
+
// style={{
|
|
1985
|
+
// color: sectionproperties.featurecolor,
|
|
1986
|
+
// fontSize: sectionproperties.featurefontsize + 'px',
|
|
1987
|
+
// }}
|
|
1988
|
+
// >
|
|
1989
|
+
// {item?.productfeature != undefined && item?.productfeature != null ? item?.productfeature : ''}
|
|
1990
|
+
// </div>
|
|
1991
|
+
// </div>
|
|
1992
|
+
// )}
|
|
1993
|
+
// {sectionproperties.showmeasurementunit == 'Show' && (
|
|
1994
|
+
// <p
|
|
1995
|
+
// class={`${card_cssstyles.productDescStyles}` + ' col-lg-12 wordbreak wordbreak1 p-0 mb-2 '}
|
|
1996
|
+
// style={{
|
|
1997
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
1998
|
+
// fontSize: sectionproperties.measurementunitfontsize + 'px',
|
|
1999
|
+
// color: sectionproperties.measurementunitcolor,
|
|
2000
|
+
// }}
|
|
2001
|
+
// >
|
|
2002
|
+
// {item.measurmentunit}
|
|
2003
|
+
// </p>
|
|
2004
|
+
// )}
|
|
2005
|
+
|
|
2006
|
+
// {sectionproperties.prodNameShow == 'Show' && (
|
|
2007
|
+
// <div
|
|
2008
|
+
// class="col-lg-12 pl-0 pr-0"
|
|
2009
|
+
// style={{
|
|
2010
|
+
// minHeight: sectionproperties.wordbreak == '1' ? 'auto' : '6vh',
|
|
2011
|
+
// background: sectionproperties.prodNameBackgroundColor,
|
|
2012
|
+
// borderRadius: '15px',
|
|
2013
|
+
// paddingTop: sectionproperties.productnamepaddingvertical + 'px',
|
|
2014
|
+
// paddingBottom: sectionproperties.productnamepaddingvertical + 'px',
|
|
2015
|
+
// }}
|
|
2016
|
+
// >
|
|
2017
|
+
// <p
|
|
2018
|
+
// onClick={() => {
|
|
2019
|
+
// if (sectionproperties?.onClickRoute == 'None') {
|
|
2020
|
+
// } else {
|
|
2021
|
+
// var productidtobesend = null;
|
|
2022
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
2023
|
+
// productidtobesend = item.productendpointurl;
|
|
2024
|
+
// } else {
|
|
2025
|
+
// productidtobesend = item.productid;
|
|
2026
|
+
// }
|
|
2027
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
2028
|
+
// }
|
|
2029
|
+
// }}
|
|
2030
|
+
// class={
|
|
2031
|
+
// sectionproperties.wordbreak == '1'
|
|
2032
|
+
// ? `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak1 font-md-13 m-0 pname '
|
|
2033
|
+
// : `${card_cssstyles.productNameStyles}` + ' wordbreak wordbreak2 font-md-13 wordbreak-md-4 m-0 pname '
|
|
2034
|
+
// }
|
|
2035
|
+
// style={{
|
|
2036
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
2037
|
+
// }}
|
|
2038
|
+
// >
|
|
2039
|
+
// {item.name}
|
|
2040
|
+
// </p>
|
|
2041
|
+
// </div>
|
|
2042
|
+
// )}
|
|
2043
|
+
// {sectionproperties.showSKU == 'Show' && (
|
|
2044
|
+
// <div class="col-lg-12 pl-0 pr-0" style={{}}>
|
|
2045
|
+
// <p
|
|
2046
|
+
// class={`${card_cssstyles.sku}` + ' wordbreak wordbreak1 font-md-13 m-0 '}
|
|
2047
|
+
// style={{
|
|
2048
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
2049
|
+
// }}
|
|
2050
|
+
// >
|
|
2051
|
+
// {langdetect == 'en' ? 'SKU: ' : 'كود: '}
|
|
2052
|
+
// {item.sku}
|
|
2053
|
+
// </p>
|
|
2054
|
+
// </div>
|
|
2055
|
+
// )}
|
|
2056
|
+
// {sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'No' && (
|
|
2057
|
+
// <p
|
|
2058
|
+
// class={
|
|
2059
|
+
// sectionproperties.descriptionwordbreak == 'None'
|
|
2060
|
+
// ? `${card_cssstyles.productDescStyles}` + ' col-lg-12 p-0 mt-1 '
|
|
2061
|
+
// : `${card_cssstyles.productDescStyles}` + ' col-lg-12 p-0 wordbreak wordbreak4 mt-1 '
|
|
2062
|
+
// }
|
|
2063
|
+
// style={{
|
|
2064
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
2065
|
+
// }}
|
|
2066
|
+
// dangerouslySetInnerHTML={{ __html: item.shortdescription }}
|
|
2067
|
+
// >
|
|
2068
|
+
// {/* {plainString(langdetect == 'en' ? item.description_en : item.description_ar)} */}
|
|
2069
|
+
// </p>
|
|
2070
|
+
// )}
|
|
2071
|
+
// {sectionproperties.prodCatShow == 'Show' && sectionproperties.descriptionoverwritestyles == 'Yes' && (
|
|
2072
|
+
// <p
|
|
2073
|
+
// class={
|
|
2074
|
+
// sectionproperties.descriptionwordbreak == 'None'
|
|
2075
|
+
// ? `${card_cssstyles.productDescStyles}` + ' col-lg-12 p-0 mt-1 '
|
|
2076
|
+
// : `${card_cssstyles.productDescStyles}` + ' col-lg-12 wordbreak wordbreak p-0 mt-1 '
|
|
2077
|
+
// }
|
|
2078
|
+
// style={{
|
|
2079
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
2080
|
+
// }}
|
|
2081
|
+
// >
|
|
2082
|
+
// {plainString(item.shortdescription)}
|
|
2083
|
+
// </p>
|
|
2084
|
+
// )}
|
|
2085
|
+
|
|
2086
|
+
// <div
|
|
2087
|
+
// style={{
|
|
2088
|
+
// flexDirection: 'column',
|
|
2089
|
+
|
|
2090
|
+
// display:
|
|
2091
|
+
// sectionproperties.prodPriceShow == 'Hide' &&
|
|
2092
|
+
// sectionproperties.showprofitcontainer == 'Hide' &&
|
|
2093
|
+
// sectionproperties.cartBtnShow == 'Hide' &&
|
|
2094
|
+
// sectionproperties.prodsalePriceshow == 'Hide'
|
|
2095
|
+
// ? 'none'
|
|
2096
|
+
// : 'flex',
|
|
2097
|
+
// }}
|
|
2098
|
+
// class="col-lg-12 d-flex align-items-center justify-content-center p-0 mt-1 "
|
|
2099
|
+
// >
|
|
2100
|
+
// <div class="row m-0 w-100 ">
|
|
2101
|
+
// <div
|
|
2102
|
+
// class=" d-flex flex-row col-lg-12 mx-0 p-0 align-items-center "
|
|
2103
|
+
// style={{
|
|
2104
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2105
|
+
// marginTop: sectionproperties.productpricemarginTop + 'px',
|
|
2106
|
+
// marginBottom: sectionproperties.productpricemarginBottom + 'px',
|
|
2107
|
+
// }}
|
|
2108
|
+
// >
|
|
2109
|
+
// <div
|
|
2110
|
+
// class={
|
|
2111
|
+
// sectionproperties.priceDirection == 'Horizontal Direction'
|
|
2112
|
+
// ? ' d-flex align-items-center p-0 mb-0 flex-row '
|
|
2113
|
+
// : ' d-flex align-items-center p-0 mb-0 flex-column '
|
|
2114
|
+
// }
|
|
2115
|
+
// style={{
|
|
2116
|
+
// textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
2117
|
+
// minHeight: sectionproperties.priceDirection == 'Horizontal Direction' ? '' : '6.5vh',
|
|
2118
|
+
// }}
|
|
2119
|
+
// >
|
|
2120
|
+
// {/* {sectionproperties.prodPriceShow == 'Show' && sectionproperties.removedecimals == 'Hide' && (
|
|
2121
|
+
// <p
|
|
2122
|
+
// class={
|
|
2123
|
+
// sectionproperties.priceDirection == 'Horizontal Direction'
|
|
2124
|
+
// ? `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
2125
|
+
// : `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
2126
|
+
// }
|
|
2127
|
+
// >
|
|
2128
|
+
// {langdetect == 'en' ? item.currencyname : ''}{' '}
|
|
2129
|
+
// {item.hassale == 1 ? parseFloat(Number(item.defaultsaleprice).toFixed(2)) : parseFloat(Number(item.defaultprice).toFixed(2))}{' '}
|
|
2130
|
+
// {langdetect == 'en' ? '' : item.currencyname}
|
|
2131
|
+
// </p>
|
|
2132
|
+
// )} */}
|
|
2133
|
+
// {sectionproperties.prodPriceShow == 'Show' && (
|
|
2134
|
+
// <p
|
|
2135
|
+
// class={
|
|
2136
|
+
// sectionproperties.priceDirection == 'Horizontal Direction'
|
|
2137
|
+
// ? `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
2138
|
+
// : `${card_cssstyles.productPricestyles}` + ' m-0 '
|
|
2139
|
+
// }
|
|
2140
|
+
// >
|
|
2141
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.hassale == 1 ? item.defaultsaleprice : item.defaultprice}{' '}
|
|
2142
|
+
// {langdetect == 'en' ? '' : item.currencyname}
|
|
2143
|
+
// </p>
|
|
2144
|
+
// )}
|
|
2145
|
+
// {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && (
|
|
2146
|
+
// <div class={sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'}>
|
|
2147
|
+
// <p class={`${card_cssstyles.productSalePricestyles}` + ' linethrough m-0 mr-2 ml-2 '}>
|
|
2148
|
+
// {langdetect == 'en' ? item.currencyname : ''} {item.defaultprice} {langdetect == 'en' ? '' : item.currencyname}
|
|
2149
|
+
// </p>
|
|
2150
|
+
// </div>
|
|
2151
|
+
// )}
|
|
2152
|
+
// {/* {sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && sectionproperties.removedecimals == 'Hide' && (
|
|
2153
|
+
// <div class={sectionproperties.priceDirection == 'Horizontal' ? ' d-flex align-items-center p-0 mb-0 ' : ' d-flex align-items-center p-0 mb-0'}>
|
|
2154
|
+
// <p class={`${card_cssstyles.productSalePricestyles}` + ' linethrough m-0 mr-2 ml-2 '}>
|
|
2155
|
+
// {langdetect == 'en' ? item.currencyname : ''} {parseFloat(Number(item.defaultprice).toFixed(2))} {langdetect == 'en' ? '' : item.currencyname}
|
|
2156
|
+
// </p>
|
|
2157
|
+
// </div>
|
|
2158
|
+
// )} */}
|
|
2159
|
+
// {sectionproperties.showpill == 'Show' && item.hassale == 1 && sectionproperties.counterposition == 'Besides Sale Price' && (
|
|
2160
|
+
// <div style={{}}>{PillContainer()}</div>
|
|
2161
|
+
// )}
|
|
2162
|
+
// </div>
|
|
2163
|
+
// </div>
|
|
2164
|
+
// {sectionproperties.showvariantscont == 'Show' && (
|
|
2165
|
+
// <div class="col-12 p-0">
|
|
2166
|
+
// <Variants_J_Cards
|
|
2167
|
+
// actions={{
|
|
2168
|
+
// sectionproperties: sectionproperties,
|
|
2169
|
+
// item: item,
|
|
2170
|
+
// cardonclickfunctionContext: cardonclickfunctionContext,
|
|
2171
|
+
// fetchingtypeprops: props.fetchingtypeprops,
|
|
2172
|
+
// }}
|
|
2173
|
+
// foundMatchedVariantFunc={(variantCompletedObj) => {
|
|
2174
|
+
// setvariantObj(variantCompletedObj);
|
|
2175
|
+
// }}
|
|
2176
|
+
// foundImageColorMatchingFunc={(variantIMAGECompletedObj) => {
|
|
2177
|
+
// setVariant_Color_ImageObj(variantIMAGECompletedObj);
|
|
2178
|
+
// }}
|
|
2179
|
+
// />
|
|
2180
|
+
// </div>
|
|
2181
|
+
// )}
|
|
2182
|
+
// {sectionproperties.showprofitcontainer == 'Show' && (
|
|
2183
|
+
// <div
|
|
2184
|
+
// class="col-lg-12 p-0"
|
|
2185
|
+
// style={{
|
|
2186
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2187
|
+
// }}
|
|
2188
|
+
// >
|
|
2189
|
+
// <div
|
|
2190
|
+
// class={card_cssstyles.profitcontainer + ' d-flex align-items-center flex-sm-column px-2'}
|
|
2191
|
+
// style={{
|
|
2192
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2193
|
+
// }}
|
|
2194
|
+
// >
|
|
2195
|
+
// <p
|
|
2196
|
+
// class={' m-0 p-0 d-flex align-items-center '}
|
|
2197
|
+
// style={{
|
|
2198
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2199
|
+
// }}
|
|
2200
|
+
// >
|
|
2201
|
+
// <span
|
|
2202
|
+
// style={{
|
|
2203
|
+
// fontWeight: sectionproperties.profitcontainerfontweight,
|
|
2204
|
+
// }}
|
|
2205
|
+
// >
|
|
2206
|
+
// {langdetect == 'en' ? sectionproperties.profitcontainercontenten : sectionproperties.profitcontainercontentar}:{' '}
|
|
2207
|
+
// </span>
|
|
2208
|
+
// <span
|
|
2209
|
+
// class="mx-1"
|
|
2210
|
+
// style={{
|
|
2211
|
+
// fontWeight: sectionproperties.profitcontainersecondaryfontweight,
|
|
2212
|
+
// }}
|
|
2213
|
+
// >
|
|
2214
|
+
// {langdetect == 'en' ? item.currencyname : ''}{' '}
|
|
2215
|
+
// {parseFloat(Math.round(parseInt(item.hassale == 1 ? item.defaultsaleprice : item.defaultprice) * (item.prodaffpercentprofit / 100))).toFixed(0)}{' '}
|
|
2216
|
+
// {langdetect == 'en' ? '' : item.currencyname}
|
|
2217
|
+
// </span>
|
|
2218
|
+
// </p>
|
|
2219
|
+
// </div>
|
|
2220
|
+
// </div>
|
|
2221
|
+
// )}
|
|
2222
|
+
// {sectionproperties.quantityshow == 'Show' && item.currentquantity > 0 && (
|
|
2223
|
+
// <div
|
|
2224
|
+
// class="col-lg-12 p-0 d-flex align-items-center"
|
|
2225
|
+
// style={{
|
|
2226
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2227
|
+
// }}
|
|
2228
|
+
// >
|
|
2229
|
+
// <p
|
|
2230
|
+
// class="m-0 p-0"
|
|
2231
|
+
// style={{
|
|
2232
|
+
// fontSize: sectionproperties.quantityfontsize,
|
|
2233
|
+
// color: sectionproperties.quantitycolor,
|
|
2234
|
+
// fontWeight: sectionproperties.quantityfontweight,
|
|
2235
|
+
// }}
|
|
2236
|
+
// >
|
|
2237
|
+
// {langdetect == 'en' ? sectionproperties.qtytextinen : sectionproperties.qtytextinar} {item.currentquantity}{' '}
|
|
2238
|
+
// {langdetect == 'en' ? sectionproperties.qtytextinen2 : sectionproperties.qtytextinar2}
|
|
2239
|
+
// </p>
|
|
2240
|
+
// </div>
|
|
2241
|
+
// )}
|
|
2242
|
+
// {sectionproperties.cartBtnShow == 'Show' && (
|
|
2243
|
+
// <div
|
|
2244
|
+
// class="col-lg-12 p-0 d-flex align-items-center"
|
|
2245
|
+
// style={{
|
|
2246
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2247
|
+
// }}
|
|
2248
|
+
// >
|
|
2249
|
+
// <p
|
|
2250
|
+
// class={`${card_cssstyles.cart_btn}` + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 '}
|
|
2251
|
+
// // onClick={() => {
|
|
2252
|
+
// // var productidtobesend = null;
|
|
2253
|
+
// // if (sectionproperties.urlwithproductname == 'Yes') {
|
|
2254
|
+
// // productidtobesend = item.productendpointurl;
|
|
2255
|
+
// // } else {
|
|
2256
|
+
// // productidtobesend = item.productid;
|
|
2257
|
+
// // }
|
|
2258
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, productidtobesend, props.fetchingtypeprops, item.collectionid);
|
|
2259
|
+
// // // setShowProductInfoModalContext(true);
|
|
2260
|
+
// // // setProductIdProdutInfoModalContext(item.productid);
|
|
2261
|
+
// // }}
|
|
2262
|
+
// onClick={() => {
|
|
2263
|
+
// if (sectionproperties.showvariantscont == 'Show') {
|
|
2264
|
+
// addtocartfunc();
|
|
2265
|
+
// } else {
|
|
2266
|
+
// if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 0) {
|
|
2267
|
+
// addtocartfunc();
|
|
2268
|
+
// } else if (sectionproperties.automaticaddtocart == 'Yes' && item.hasvariants == 1) {
|
|
2269
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
2270
|
+
// // cardonclickfunctionContext(sectionproperties?.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
2271
|
+
// } else {
|
|
2272
|
+
// var productidtobesend = null;
|
|
2273
|
+
// if (sectionproperties.urlwithproductname == 'Yes') {
|
|
2274
|
+
// productidtobesend = item.productendpointurl;
|
|
2275
|
+
// } else {
|
|
2276
|
+
// productidtobesend = item.productid;
|
|
2277
|
+
// }
|
|
2278
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, item, props.fetchingtypeprops, item.collectionid);
|
|
2279
|
+
// }
|
|
2280
|
+
// }
|
|
2281
|
+
// }}
|
|
2282
|
+
// // disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
2283
|
+
// >
|
|
2284
|
+
// {addtocartbuttonrender()}
|
|
2285
|
+
|
|
2286
|
+
// {/* {!AddtoCartMutationContext.isLoading && ( */}
|
|
2287
|
+
// {/* <span> */}
|
|
2288
|
+
// {/* </span> */}
|
|
2289
|
+
// {/* // )} */}
|
|
2290
|
+
// {/* {AddtoCartMutationContext.isLoading && <CircularProgress color={sectionproperties.cartBtnTextcolor} width="20px" height="20px" duration="1s" />} */}
|
|
2291
|
+
// </p>
|
|
2292
|
+
// </div>
|
|
2293
|
+
// )}
|
|
2294
|
+
// </div>
|
|
2295
|
+
// </div>
|
|
2296
|
+
// {sectionproperties.showrating == 'Show' && item.productcanrate == 1 && (
|
|
2297
|
+
// <div
|
|
2298
|
+
// class="col-lg-12 d-flex align-items-center p-0"
|
|
2299
|
+
// style={{
|
|
2300
|
+
// justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start',
|
|
2301
|
+
// }}
|
|
2302
|
+
// >
|
|
2303
|
+
// <ReactStars
|
|
2304
|
+
// count={5}
|
|
2305
|
+
// value={item.productoverallrate}
|
|
2306
|
+
// edit={false}
|
|
2307
|
+
// size={16}
|
|
2308
|
+
// emptyIcon={<i className="far fa-star" style={{ color: '#cccccc' }}></i>}
|
|
2309
|
+
// halfIcon={<i className="fa fa-star-half-alt style={{ color: '#FAB400' }}"></i>}
|
|
2310
|
+
// filledIcon={<i className="fa fa-star" style={{ color: '#FAB400' }}></i>}
|
|
2311
|
+
// activeColor="#ffd700"
|
|
2312
|
+
// />
|
|
2313
|
+
// </div>
|
|
2314
|
+
// )}
|
|
2315
|
+
// </div>
|
|
2316
|
+
// </div>
|
|
2317
|
+
// </div>
|
|
2318
|
+
// </div>
|
|
2319
|
+
// );
|
|
2320
|
+
// };
|
|
2321
|
+
// export default Simpleproductcard;
|