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,660 @@
|
|
|
1
|
+
// import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
// const Variants_J_Cards = (props) => {
|
|
4
|
+
// const [item, setitem] = useState(props.actions.item);
|
|
5
|
+
// const [fetchingtypeprops, setfetchingtypeprops] = useState(props.actions.fetchingtypeprops);
|
|
6
|
+
// const [collectionid, setcollectionid] = useState(props.actions.collectionid);
|
|
7
|
+
// const cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
8
|
+
// const [variants_iteminfo, setvariants_iteminfo] = useState({});
|
|
9
|
+
// const [options_w_values, setoptions_w_values] = useState([]);
|
|
10
|
+
// const [choosen_values, setchoosen_values] = useState([]);
|
|
11
|
+
// const [VariantCompletedObj, setVariantCompletedObj] = useState({});
|
|
12
|
+
// const sectionproperties = props.actions.sectionproperties;
|
|
13
|
+
// const lang = props.actions.lang;
|
|
14
|
+
// const langdetect = props.actions.langdetect;
|
|
15
|
+
// const foundMatchedVariantFunc = props.foundMatchedVariantFunc;
|
|
16
|
+
// const [index, setindex] = useState(props.cardinfoindexprops);
|
|
17
|
+
// const [VariantColorImageComObj, setVariantColorImageComObj] = useState({});
|
|
18
|
+
// const foundImageColorMatchingFunc = props.foundImageColorMatchingFunc;
|
|
19
|
+
// useEffect(() => {
|
|
20
|
+
// foundMatchedVariantFunc(VariantCompletedObj);
|
|
21
|
+
// }, [VariantCompletedObj]);
|
|
22
|
+
// useEffect(() => {
|
|
23
|
+
// let completedVariantObj = null;
|
|
24
|
+
// let variantimagematching = null;
|
|
25
|
+
// if (choosen_values.length > 0) {
|
|
26
|
+
// for (const variantitem of variants_iteminfo || []) {
|
|
27
|
+
// const matchedValues = variantitem?.variantvalues_w_valueinfo?.filter((variantValue) => choosen_values.some((choosenValue) => choosenValue.valueid === variantValue.valueid));
|
|
28
|
+
|
|
29
|
+
// if (matchedValues.length === choosen_values.length && matchedValues.length === variantitem.variantvalues_w_valueinfo.length) {
|
|
30
|
+
// completedVariantObj = variantitem;
|
|
31
|
+
// break;
|
|
32
|
+
// }
|
|
33
|
+
// }
|
|
34
|
+
// choosen_values?.forEach(function (item, index) {
|
|
35
|
+
// if (item?.option_info?.optionname == 'color' || item?.option_info?.optionname == 'Color') {
|
|
36
|
+
// for (const variantitem of variants_iteminfo || []) {
|
|
37
|
+
// const matchingValue = variantitem?.variantvalues_w_valueinfo?.find((value) => value?.valueid === item?.valueid);
|
|
38
|
+
|
|
39
|
+
// if (matchingValue) {
|
|
40
|
+
// variantimagematching = variantitem;
|
|
41
|
+
// }
|
|
42
|
+
// }
|
|
43
|
+
// }
|
|
44
|
+
// });
|
|
45
|
+
// }
|
|
46
|
+
|
|
47
|
+
// setVariantColorImageComObj(variantimagematching || {});
|
|
48
|
+
// setVariantCompletedObj(completedVariantObj || {});
|
|
49
|
+
// }, [choosen_values]);
|
|
50
|
+
// useEffect(() => {
|
|
51
|
+
// var iteminfo = props.actions.item;
|
|
52
|
+
// var variants_iteminfo = props?.actions?.item?.variants_w_options;
|
|
53
|
+
// var options_w_values = [];
|
|
54
|
+
// variants_iteminfo?.forEach(function (item, index) {
|
|
55
|
+
// item?.variantvalues_w_valueinfo?.forEach(function (valitem) {
|
|
56
|
+
// var isoptionexists = false;
|
|
57
|
+
// var is_valitemexists = false;
|
|
58
|
+
// var valitemtobeinsreted = { ...valitem };
|
|
59
|
+
// valitemtobeinsreted.disabled = false;
|
|
60
|
+
// options_w_values?.forEach(function (exopitem, exopindex) {
|
|
61
|
+
// exopitem?.values?.forEach(function (valexistitem) {
|
|
62
|
+
// if (valexistitem.valueid == valitemtobeinsreted.valueid) {
|
|
63
|
+
// is_valitemexists = true;
|
|
64
|
+
// }
|
|
65
|
+
// });
|
|
66
|
+
// });
|
|
67
|
+
// options_w_values?.forEach(function (exopitem, exopindex) {
|
|
68
|
+
// if (exopitem?.option_info?.optionid == valitemtobeinsreted?.option_info?.optionid) {
|
|
69
|
+
// if (is_valitemexists == false) {
|
|
70
|
+
// exopitem.values.push({ ...valitemtobeinsreted, valueindex: valitemtobeinsreted?.valueinfo?.valueindex });
|
|
71
|
+
// }
|
|
72
|
+
// isoptionexists = true;
|
|
73
|
+
// }
|
|
74
|
+
// });
|
|
75
|
+
// if (isoptionexists == false) {
|
|
76
|
+
// options_w_values.push({
|
|
77
|
+
// option_info: valitem.option_info,
|
|
78
|
+
// optionindex: valitem.option_info.optionindex,
|
|
79
|
+
// values: [{ ...valitemtobeinsreted, valueindex: valitemtobeinsreted?.valueinfo?.valueindex }],
|
|
80
|
+
// });
|
|
81
|
+
// }
|
|
82
|
+
// });
|
|
83
|
+
// });
|
|
84
|
+
// options_w_values.forEach((option) => {
|
|
85
|
+
// option.values.sort((a, b) => a.valueindex - b.valueindex);
|
|
86
|
+
// });
|
|
87
|
+
// var Sortedoptions_w_values = options_w_values.sort((a, b) => a.optionindex - b.optionindex);
|
|
88
|
+
|
|
89
|
+
// setoptions_w_values([...Sortedoptions_w_values]);
|
|
90
|
+
// // setoptions_w_values([...options_w_values]);
|
|
91
|
+
// setvariants_iteminfo(variants_iteminfo);
|
|
92
|
+
// setitem(iteminfo);
|
|
93
|
+
// }, [props.actions.item]);
|
|
94
|
+
// const choose_valueFunc = (valitem, optioninfo) => {
|
|
95
|
+
// var tempchoosen_values = [...choosen_values];
|
|
96
|
+
// var isvalueexists = false;
|
|
97
|
+
// // var optionid = optioninfo.optionid
|
|
98
|
+
// tempchoosen_values?.forEach(function (choseitem, choseindex) {
|
|
99
|
+
// if (valitem.optionid == choseitem.optionid) {
|
|
100
|
+
// tempchoosen_values.splice(choseindex, 1);
|
|
101
|
+
// }
|
|
102
|
+
// if (choseitem?.valueid == valitem?.valueid) {
|
|
103
|
+
// tempchoosen_values.splice(choseindex, 1);
|
|
104
|
+
// isvalueexists = true;
|
|
105
|
+
// }
|
|
106
|
+
// });
|
|
107
|
+
// if (isvalueexists == false) {
|
|
108
|
+
// tempchoosen_values.push(valitem);
|
|
109
|
+
// }
|
|
110
|
+
// var tempoptions_w_values = [...options_w_values];
|
|
111
|
+
// tempoptions_w_values?.forEach(function (item, index) {
|
|
112
|
+
// item?.values?.forEach(function (valitemex, valindex) {
|
|
113
|
+
// if (tempchoosen_values.length == 0) {
|
|
114
|
+
// valitemex.disabled = false;
|
|
115
|
+
// } else {
|
|
116
|
+
// valitemex.disabled = true;
|
|
117
|
+
// }
|
|
118
|
+
// });
|
|
119
|
+
// });
|
|
120
|
+
// if (tempchoosen_values.length != 0) {
|
|
121
|
+
// tempoptions_w_values?.forEach(function (item, index) {
|
|
122
|
+
// item?.values?.forEach(function (valitem, valindex) {
|
|
123
|
+
// var isvaluedisabled = true;
|
|
124
|
+
// tempchoosen_values.slice(0, 1)?.forEach(function (chosvalitem) {
|
|
125
|
+
// variants_iteminfo?.forEach(function (variantitem) {
|
|
126
|
+
// var is_Start_Variant_Found = false;
|
|
127
|
+
// variantitem?.variantvalues_w_valueinfo?.forEach(function (variantoptionsitem) {
|
|
128
|
+
// if (variantoptionsitem.valueid == chosvalitem.valueid) {
|
|
129
|
+
// is_Start_Variant_Found = true;
|
|
130
|
+
// }
|
|
131
|
+
// });
|
|
132
|
+
// if (is_Start_Variant_Found) {
|
|
133
|
+
// variantitem?.variantvalues_w_valueinfo?.forEach(function (variantoptionsitem) {
|
|
134
|
+
// if (valitem.valueid == variantoptionsitem.valueid) {
|
|
135
|
+
// isvaluedisabled = false;
|
|
136
|
+
// }
|
|
137
|
+
// });
|
|
138
|
+
// }
|
|
139
|
+
// });
|
|
140
|
+
// });
|
|
141
|
+
// valitem.disabled = isvaluedisabled;
|
|
142
|
+
// });
|
|
143
|
+
// });
|
|
144
|
+
// tempoptions_w_values?.forEach(function (item, index) {
|
|
145
|
+
// item?.values?.forEach(function (valitem, valindex) {
|
|
146
|
+
// if (valitem.optionid == tempchoosen_values[0].optionid) {
|
|
147
|
+
// valitem.disabled = false;
|
|
148
|
+
// }
|
|
149
|
+
// });
|
|
150
|
+
// });
|
|
151
|
+
|
|
152
|
+
// tempoptions_w_values?.forEach(function (item, index) {
|
|
153
|
+
// item?.values?.forEach(function (valitem, valindex) {
|
|
154
|
+
// if (valitem.disabled == true) {
|
|
155
|
+
// tempchoosen_values?.forEach(function (chosvalitem, choseindex) {
|
|
156
|
+
// if (chosvalitem.valueid == valitem.valueid) {
|
|
157
|
+
// tempchoosen_values.splice(choseindex, 1);
|
|
158
|
+
// }
|
|
159
|
+
// });
|
|
160
|
+
// }
|
|
161
|
+
// });
|
|
162
|
+
// });
|
|
163
|
+
// }
|
|
164
|
+
|
|
165
|
+
// setoptions_w_values([...tempoptions_w_values]);
|
|
166
|
+
// setchoosen_values([...tempchoosen_values]);
|
|
167
|
+
// };
|
|
168
|
+
// useEffect(() => {
|
|
169
|
+
// foundImageColorMatchingFunc(VariantColorImageComObj);
|
|
170
|
+
// }, [VariantColorImageComObj]);
|
|
171
|
+
// useEffect(() => {
|
|
172
|
+
// let completedVariantObj = null;
|
|
173
|
+
// let variantimagematching = null;
|
|
174
|
+
// if (choosen_values.length > 0) {
|
|
175
|
+
// for (const variantitem of variants_iteminfo || []) {
|
|
176
|
+
// const matchedValues = variantitem?.variantvalues_w_valueinfo?.filter((variantValue) => choosen_values.some((choosenValue) => choosenValue.valueid === variantValue.valueid));
|
|
177
|
+
|
|
178
|
+
// if (matchedValues.length === choosen_values.length && matchedValues.length === variantitem.variantvalues_w_valueinfo.length) {
|
|
179
|
+
// completedVariantObj = variantitem;
|
|
180
|
+
// break;
|
|
181
|
+
// }
|
|
182
|
+
// }
|
|
183
|
+
// choosen_values?.forEach(function (item, index) {
|
|
184
|
+
// if (item?.option_info?.optionname == 'color' || item?.option_info?.optionname == 'Color') {
|
|
185
|
+
// for (const variantitem of variants_iteminfo || []) {
|
|
186
|
+
// const matchingValue = variantitem?.variantvalues_w_valueinfo?.find((value) => value?.valueid === item?.valueid);
|
|
187
|
+
|
|
188
|
+
// if (matchingValue) {
|
|
189
|
+
// variantimagematching = variantitem;
|
|
190
|
+
// }
|
|
191
|
+
// }
|
|
192
|
+
// }
|
|
193
|
+
// });
|
|
194
|
+
// }
|
|
195
|
+
|
|
196
|
+
// setVariantColorImageComObj(variantimagematching || {});
|
|
197
|
+
// setVariantCompletedObj(completedVariantObj || {});
|
|
198
|
+
// }, [choosen_values]);
|
|
199
|
+
|
|
200
|
+
// // useEffect(() => {
|
|
201
|
+
// // var completedVariantObj = {};
|
|
202
|
+
// // var tempchoosen_values = [...choosen_values];
|
|
203
|
+
// // if (choosen_values.length != 0) {
|
|
204
|
+
// // variants_iteminfo?.forEach(function (variantitem) {
|
|
205
|
+
// // var isVariantValuesAllSame = true;
|
|
206
|
+
// // variantitem?.variantvalues_w_valueinfo?.forEach(function (variantvalues) {
|
|
207
|
+
// // tempchoosen_values?.forEach(function (item, index) {
|
|
208
|
+
// // if (variantvalues.valueid != item.valueid) {
|
|
209
|
+
// // isVariantValuesAllSame = false;
|
|
210
|
+
// // } else {
|
|
211
|
+
// // }
|
|
212
|
+
// // });
|
|
213
|
+
// // });
|
|
214
|
+
// // if (isVariantValuesAllSame == true) {
|
|
215
|
+
// // completedVariantObj = variantitem;
|
|
216
|
+
// // }
|
|
217
|
+
// // });
|
|
218
|
+
// // }
|
|
219
|
+
// // setVariantCompletedObj({ ...completedVariantObj });
|
|
220
|
+
// // }, [choosen_values]);
|
|
221
|
+
|
|
222
|
+
// return (
|
|
223
|
+
// <div class={' row m-0 w-100 mb-2 '}>
|
|
224
|
+
// {sectionproperties.length != 0 && (
|
|
225
|
+
// <div class={' row m-0 w-100 '}>
|
|
226
|
+
// {/* showonlycolorvariant */}
|
|
227
|
+
// {/* Show All Variants */}
|
|
228
|
+
// {/* Show Colors Only */}
|
|
229
|
+
// {options_w_values?.map(function (item, index) {
|
|
230
|
+
// return (
|
|
231
|
+
// // scrollhorixontalcontainer
|
|
232
|
+
// <div className="col-lg-12 col-md-12 d-flex mb-2 allcentered p-sm-0">
|
|
233
|
+
// {/* 1 {JSON.stringify(item)} */}
|
|
234
|
+
// {item?.values?.map(function (valitem, valindex) {
|
|
235
|
+
// var isChoosedValueExists = false;
|
|
236
|
+
// choosen_values?.forEach(function (choseitem, choseindex) {
|
|
237
|
+
// if (choseitem != null) {
|
|
238
|
+
// if (choseitem?.valueid == valitem?.valueid) {
|
|
239
|
+
// isChoosedValueExists = true;
|
|
240
|
+
// }
|
|
241
|
+
// }
|
|
242
|
+
// });
|
|
243
|
+
// if (valindex <= 3) {
|
|
244
|
+
// if (sectionproperties.typeofvariantstobeshownincard == 'Show Colors Only') {
|
|
245
|
+
// if (
|
|
246
|
+
// item?.option_info?.optionname == 'Color' ||
|
|
247
|
+
// item?.option_info?.optionname == 'Colour' ||
|
|
248
|
+
// item?.option_info?.optionname == 'color' ||
|
|
249
|
+
// item?.option_info?.optionname == 'colour'
|
|
250
|
+
// ) {
|
|
251
|
+
// return (
|
|
252
|
+
// <div style={{ textAlign: 'center' }} class="mx-1">
|
|
253
|
+
// <button
|
|
254
|
+
// onClick={() => {
|
|
255
|
+
// choose_valueFunc(valitem, item?.option_info);
|
|
256
|
+
// }}
|
|
257
|
+
// style={{
|
|
258
|
+
// // backgroundColor: isChoosedValueExists ? 'lightblue' : 'white',
|
|
259
|
+
// color: isChoosedValueExists ? '#ffffff' : '#000000',
|
|
260
|
+
// border: isChoosedValueExists
|
|
261
|
+
// ? '3px solid ' + sectionproperties.activeproductcolor
|
|
262
|
+
// : '1px solid ' + sectionproperties.variantcontainerbordercolor,
|
|
263
|
+
// padding: item?.option_info?.optionname == 'Color' ? '5px' : '5px 10px',
|
|
264
|
+
// cursor: valitem.disabled ? 'not-allowed' : 'pointer',
|
|
265
|
+
// fontSize: '13px',
|
|
266
|
+
// width: item?.option_info?.optionname == 'Color' ? 25 : '',
|
|
267
|
+
// height: item?.option_info?.optionname == 'Color' ? 25 : '',
|
|
268
|
+
// borderRadius: item?.option_info?.optionname == 'Color' ? 100 : 5,
|
|
269
|
+
// background:
|
|
270
|
+
// item?.option_info?.optionname == 'Color'
|
|
271
|
+
// ? valitem?.valueinfo?.valuename
|
|
272
|
+
// : isChoosedValueExists
|
|
273
|
+
// ? sectionproperties.activeproductcolor
|
|
274
|
+
// : '#ffffff',
|
|
275
|
+
// fontWeight: 500,
|
|
276
|
+
// }}
|
|
277
|
+
// disabled={valitem.disabled}
|
|
278
|
+
// >
|
|
279
|
+
// {item?.option_info?.optionname == 'Color' ? '' : valitem?.valueinfo?.valuename || 'Unnamed'}
|
|
280
|
+
// </button>
|
|
281
|
+
// </div>
|
|
282
|
+
// );
|
|
283
|
+
// }
|
|
284
|
+
// } else {
|
|
285
|
+
// return (
|
|
286
|
+
// <div style={{ textAlign: 'center' }} class="mx-1">
|
|
287
|
+
// {item.optionname}
|
|
288
|
+
// <button
|
|
289
|
+
// onClick={() => {
|
|
290
|
+
// choose_valueFunc(valitem, item?.option_info);
|
|
291
|
+
// }}
|
|
292
|
+
// style={{
|
|
293
|
+
// // backgroundColor: isChoosedValueExists ? 'lightblue' : 'white',
|
|
294
|
+
// color: isChoosedValueExists ? '#ffffff' : '#000000',
|
|
295
|
+
// border: isChoosedValueExists
|
|
296
|
+
// ? '3px solid ' + sectionproperties.activeproductcolor
|
|
297
|
+
// : '1px solid ' + sectionproperties.variantcontainerbordercolor,
|
|
298
|
+
// padding: item?.option_info?.optionname == 'Color' ? '5px' : '5px 10px',
|
|
299
|
+
// cursor: valitem.disabled ? 'not-allowed' : 'pointer',
|
|
300
|
+
// fontSize: '13px',
|
|
301
|
+
// width: item?.option_info?.optionname == 'Color' ? 25 : '',
|
|
302
|
+
// height: item?.option_info?.optionname == 'Color' ? 25 : '',
|
|
303
|
+
// borderRadius: item?.option_info?.optionname == 'Color' ? 100 : 5,
|
|
304
|
+
// background:
|
|
305
|
+
// item?.option_info?.optionname == 'Color'
|
|
306
|
+
// ? valitem?.valueinfo?.valuename
|
|
307
|
+
// : isChoosedValueExists
|
|
308
|
+
// ? sectionproperties.activeproductcolor
|
|
309
|
+
// : '#ffffff',
|
|
310
|
+
// fontWeight: 500,
|
|
311
|
+
// }}
|
|
312
|
+
// disabled={valitem.disabled}
|
|
313
|
+
// >
|
|
314
|
+
// {item?.option_info?.optionname == 'Color' ? '' : valitem?.valueinfo?.valuename || 'Unnamed'}
|
|
315
|
+
// </button>
|
|
316
|
+
// </div>
|
|
317
|
+
// );
|
|
318
|
+
// }
|
|
319
|
+
// }
|
|
320
|
+
// })}
|
|
321
|
+
// {item?.values?.length > 4 && (
|
|
322
|
+
// <div
|
|
323
|
+
// className="mx-1 d-flex align-items-center justify-content-center"
|
|
324
|
+
// style={{
|
|
325
|
+
// width: 25,
|
|
326
|
+
// height: 25,
|
|
327
|
+
// borderRadius: 100,
|
|
328
|
+
// backgroundColor: sectionproperties.activeproductcolor,
|
|
329
|
+
// color: '#fff',
|
|
330
|
+
// fontSize: '13px',
|
|
331
|
+
// cursor: 'pointer',
|
|
332
|
+
// }}
|
|
333
|
+
// onClick={() => {
|
|
334
|
+
// cardonclickfunctionContext(sectionproperties?.onClickRoute, props.actions.item.productid, props.actions.fetchingtypeprops, null);
|
|
335
|
+
// }}
|
|
336
|
+
// >
|
|
337
|
+
// +{item?.values?.length - 4}
|
|
338
|
+
// </div>
|
|
339
|
+
// )}
|
|
340
|
+
// </div>
|
|
341
|
+
// );
|
|
342
|
+
// })}
|
|
343
|
+
|
|
344
|
+
// {/* {options_w_values>=4&&
|
|
345
|
+
// <div>
|
|
346
|
+
// <p class='m-0 p-0'>{}</p>
|
|
347
|
+
// </div>
|
|
348
|
+
// } */}
|
|
349
|
+
// </div>
|
|
350
|
+
// )}
|
|
351
|
+
// </div>
|
|
352
|
+
// );
|
|
353
|
+
// };
|
|
354
|
+
// export default Variants_J_Cards;
|
|
355
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
356
|
+
|
|
357
|
+
const Variants_J_Cards = (props) => {
|
|
358
|
+
const [item, setitem] = useState(props.actions.item);
|
|
359
|
+
const [fetchingtypeprops, setfetchingtypeprops] = useState(props.actions.fetchingtypeprops);
|
|
360
|
+
const [collectionid, setcollectionid] = useState(props.actions.collectionid);
|
|
361
|
+
const cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
362
|
+
const [variants_iteminfo, setvariants_iteminfo] = useState({});
|
|
363
|
+
const [options_w_values, setoptions_w_values] = useState([]);
|
|
364
|
+
const [choosen_values, setchoosen_values] = useState([]);
|
|
365
|
+
const [VariantCompletedObj, setVariantCompletedObj] = useState({});
|
|
366
|
+
const sectionproperties = props.actions.sectionproperties;
|
|
367
|
+
const lang = props.actions.lang;
|
|
368
|
+
const langdetect = props.actions.langdetect;
|
|
369
|
+
const foundMatchedVariantFunc = props.foundMatchedVariantFunc;
|
|
370
|
+
const [index, setindex] = useState(props.cardinfoindexprops);
|
|
371
|
+
const [VariantColorImageComObj, setVariantColorImageComObj] = useState({});
|
|
372
|
+
const foundImageColorMatchingFunc = props.foundImageColorMatchingFunc;
|
|
373
|
+
useEffect(() => {
|
|
374
|
+
foundMatchedVariantFunc(VariantCompletedObj);
|
|
375
|
+
}, [VariantCompletedObj]);
|
|
376
|
+
useEffect(() => {
|
|
377
|
+
let completedVariantObj = null;
|
|
378
|
+
let variantimagematching = null;
|
|
379
|
+
if (choosen_values.length > 0) {
|
|
380
|
+
for (const variantitem of variants_iteminfo || []) {
|
|
381
|
+
const matchedValues = variantitem?.variantvalues_w_valueinfo?.filter((variantValue) => choosen_values.some((choosenValue) => choosenValue.valueid === variantValue.valueid));
|
|
382
|
+
|
|
383
|
+
if (matchedValues.length === choosen_values.length && matchedValues.length === variantitem.variantvalues_w_valueinfo.length) {
|
|
384
|
+
completedVariantObj = variantitem;
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
choosen_values?.forEach(function (item, index) {
|
|
389
|
+
if (item?.option_info?.optionname == 'color' || item?.option_info?.optionname == 'Color') {
|
|
390
|
+
for (const variantitem of variants_iteminfo || []) {
|
|
391
|
+
const matchingValue = variantitem?.variantvalues_w_valueinfo?.find((value) => value?.valueid === item?.valueid);
|
|
392
|
+
|
|
393
|
+
if (matchingValue) {
|
|
394
|
+
variantimagematching = variantitem;
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
setVariantColorImageComObj(variantimagematching || {});
|
|
402
|
+
setVariantCompletedObj(completedVariantObj || {});
|
|
403
|
+
}, [choosen_values]);
|
|
404
|
+
useEffect(() => {
|
|
405
|
+
var iteminfo = props.actions.item;
|
|
406
|
+
var variants_iteminfo = props?.actions?.item?.variants_w_options;
|
|
407
|
+
var options_w_values = [];
|
|
408
|
+
variants_iteminfo?.forEach(function (item, index) {
|
|
409
|
+
item?.variantvalues_w_valueinfo?.forEach(function (valitem) {
|
|
410
|
+
var isoptionexists = false;
|
|
411
|
+
var is_valitemexists = false;
|
|
412
|
+
var valitemtobeinsreted = { ...valitem };
|
|
413
|
+
valitemtobeinsreted.disabled = false;
|
|
414
|
+
options_w_values?.forEach(function (exopitem, exopindex) {
|
|
415
|
+
exopitem?.values?.forEach(function (valexistitem) {
|
|
416
|
+
if (valexistitem.valueid == valitemtobeinsreted.valueid) {
|
|
417
|
+
is_valitemexists = true;
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
});
|
|
421
|
+
options_w_values?.forEach(function (exopitem, exopindex) {
|
|
422
|
+
if (exopitem?.option_info?.optionid == valitemtobeinsreted?.option_info?.optionid) {
|
|
423
|
+
if (is_valitemexists == false) {
|
|
424
|
+
exopitem.values.push({ ...valitemtobeinsreted, valueindex: valitemtobeinsreted?.valueinfo?.valueindex });
|
|
425
|
+
}
|
|
426
|
+
isoptionexists = true;
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
if (isoptionexists == false) {
|
|
430
|
+
options_w_values.push({
|
|
431
|
+
option_info: valitem.option_info,
|
|
432
|
+
optionindex: valitem.option_info.optionindex,
|
|
433
|
+
values: [{ ...valitemtobeinsreted, valueindex: valitemtobeinsreted?.valueinfo?.valueindex }],
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
});
|
|
437
|
+
});
|
|
438
|
+
options_w_values.forEach((option) => {
|
|
439
|
+
option.values.sort((a, b) => a.valueindex - b.valueindex);
|
|
440
|
+
});
|
|
441
|
+
var Sortedoptions_w_values = options_w_values.sort((a, b) => a.optionindex - b.optionindex);
|
|
442
|
+
|
|
443
|
+
setoptions_w_values([...Sortedoptions_w_values]);
|
|
444
|
+
// setoptions_w_values([...options_w_values]);
|
|
445
|
+
setvariants_iteminfo(variants_iteminfo);
|
|
446
|
+
setitem(iteminfo);
|
|
447
|
+
}, [props.actions.item]);
|
|
448
|
+
const choose_valueFunc = (valitem, optioninfo) => {
|
|
449
|
+
var tempchoosen_values = [...choosen_values];
|
|
450
|
+
var isvalueexists = false;
|
|
451
|
+
// var optionid = optioninfo.optionid
|
|
452
|
+
tempchoosen_values?.forEach(function (choseitem, choseindex) {
|
|
453
|
+
if (valitem.optionid == choseitem.optionid) {
|
|
454
|
+
tempchoosen_values.splice(choseindex, 1);
|
|
455
|
+
}
|
|
456
|
+
if (choseitem?.valueid == valitem?.valueid) {
|
|
457
|
+
tempchoosen_values.splice(choseindex, 1);
|
|
458
|
+
isvalueexists = true;
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
if (isvalueexists == false) {
|
|
462
|
+
tempchoosen_values.push(valitem);
|
|
463
|
+
}
|
|
464
|
+
var tempoptions_w_values = [...options_w_values];
|
|
465
|
+
tempoptions_w_values?.forEach(function (item, index) {
|
|
466
|
+
item?.values?.forEach(function (valitemex, valindex) {
|
|
467
|
+
if (tempchoosen_values.length == 0) {
|
|
468
|
+
valitemex.disabled = false;
|
|
469
|
+
} else {
|
|
470
|
+
valitemex.disabled = true;
|
|
471
|
+
}
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
if (tempchoosen_values.length != 0) {
|
|
475
|
+
tempoptions_w_values?.forEach(function (item, index) {
|
|
476
|
+
item?.values?.forEach(function (valitem, valindex) {
|
|
477
|
+
var isvaluedisabled = true;
|
|
478
|
+
tempchoosen_values.slice(0, 1)?.forEach(function (chosvalitem) {
|
|
479
|
+
variants_iteminfo?.forEach(function (variantitem) {
|
|
480
|
+
var is_Start_Variant_Found = false;
|
|
481
|
+
variantitem?.variantvalues_w_valueinfo?.forEach(function (variantoptionsitem) {
|
|
482
|
+
if (variantoptionsitem.valueid == chosvalitem.valueid) {
|
|
483
|
+
is_Start_Variant_Found = true;
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
if (is_Start_Variant_Found) {
|
|
487
|
+
variantitem?.variantvalues_w_valueinfo?.forEach(function (variantoptionsitem) {
|
|
488
|
+
if (valitem.valueid == variantoptionsitem.valueid) {
|
|
489
|
+
isvaluedisabled = false;
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
valitem.disabled = isvaluedisabled;
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
tempoptions_w_values?.forEach(function (item, index) {
|
|
499
|
+
item?.values?.forEach(function (valitem, valindex) {
|
|
500
|
+
if (valitem.optionid == tempchoosen_values[0].optionid) {
|
|
501
|
+
valitem.disabled = false;
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
tempoptions_w_values?.forEach(function (item, index) {
|
|
507
|
+
item?.values?.forEach(function (valitem, valindex) {
|
|
508
|
+
if (valitem.disabled == true) {
|
|
509
|
+
tempchoosen_values?.forEach(function (chosvalitem, choseindex) {
|
|
510
|
+
if (chosvalitem.valueid == valitem.valueid) {
|
|
511
|
+
tempchoosen_values.splice(choseindex, 1);
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
}
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
setoptions_w_values([...tempoptions_w_values]);
|
|
520
|
+
setchoosen_values([...tempchoosen_values]);
|
|
521
|
+
};
|
|
522
|
+
useEffect(() => {
|
|
523
|
+
foundImageColorMatchingFunc(VariantColorImageComObj);
|
|
524
|
+
}, [VariantColorImageComObj]);
|
|
525
|
+
useEffect(() => {
|
|
526
|
+
let completedVariantObj = null;
|
|
527
|
+
let variantimagematching = null;
|
|
528
|
+
if (choosen_values.length > 0) {
|
|
529
|
+
for (const variantitem of variants_iteminfo || []) {
|
|
530
|
+
const matchedValues = variantitem?.variantvalues_w_valueinfo?.filter((variantValue) => choosen_values.some((choosenValue) => choosenValue.valueid === variantValue.valueid));
|
|
531
|
+
|
|
532
|
+
if (matchedValues.length === choosen_values.length && matchedValues.length === variantitem.variantvalues_w_valueinfo.length) {
|
|
533
|
+
completedVariantObj = variantitem;
|
|
534
|
+
break;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
choosen_values?.forEach(function (item, index) {
|
|
538
|
+
if (item?.option_info?.optionname == 'color' || item?.option_info?.optionname == 'Color') {
|
|
539
|
+
for (const variantitem of variants_iteminfo || []) {
|
|
540
|
+
const matchingValue = variantitem?.variantvalues_w_valueinfo?.find((value) => value?.valueid === item?.valueid);
|
|
541
|
+
|
|
542
|
+
if (matchingValue) {
|
|
543
|
+
variantimagematching = variantitem;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
setVariantColorImageComObj(variantimagematching || {});
|
|
551
|
+
setVariantCompletedObj(completedVariantObj || {});
|
|
552
|
+
}, [choosen_values]);
|
|
553
|
+
|
|
554
|
+
// useEffect(() => {
|
|
555
|
+
// var completedVariantObj = {};
|
|
556
|
+
// var tempchoosen_values = [...choosen_values];
|
|
557
|
+
// if (choosen_values.length != 0) {
|
|
558
|
+
// variants_iteminfo?.forEach(function (variantitem) {
|
|
559
|
+
// var isVariantValuesAllSame = true;
|
|
560
|
+
// variantitem?.variantvalues_w_valueinfo?.forEach(function (variantvalues) {
|
|
561
|
+
// tempchoosen_values?.forEach(function (item, index) {
|
|
562
|
+
// if (variantvalues.valueid != item.valueid) {
|
|
563
|
+
// isVariantValuesAllSame = false;
|
|
564
|
+
// } else {
|
|
565
|
+
// }
|
|
566
|
+
// });
|
|
567
|
+
// });
|
|
568
|
+
// if (isVariantValuesAllSame == true) {
|
|
569
|
+
// completedVariantObj = variantitem;
|
|
570
|
+
// }
|
|
571
|
+
// });
|
|
572
|
+
// }
|
|
573
|
+
// setVariantCompletedObj({ ...completedVariantObj });
|
|
574
|
+
// }, [choosen_values]);
|
|
575
|
+
|
|
576
|
+
return (
|
|
577
|
+
<div class={' row m-0 w-100 mb-2 '}>
|
|
578
|
+
{sectionproperties.length != 0 && (
|
|
579
|
+
<div class={' row m-0 w-100 '}>
|
|
580
|
+
{options_w_values?.map(function (item, index) {
|
|
581
|
+
return (
|
|
582
|
+
<div className="col-lg-12 col-md-12 d-flex mb-2 allcentered scrollhorixontalcontainer p-sm-0">
|
|
583
|
+
{item?.values?.map(function (valitem, valindex) {
|
|
584
|
+
var isChoosedValueExists = false;
|
|
585
|
+
choosen_values?.forEach(function (choseitem, choseindex) {
|
|
586
|
+
if (choseitem != null) {
|
|
587
|
+
if (choseitem?.valueid == valitem?.valueid) {
|
|
588
|
+
isChoosedValueExists = true;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
});
|
|
592
|
+
if (valindex <= 3) {
|
|
593
|
+
return (
|
|
594
|
+
<div style={{ textAlign: 'center' }} class="mx-1">
|
|
595
|
+
<button
|
|
596
|
+
onClick={() => {
|
|
597
|
+
choose_valueFunc(valitem, item?.option_info);
|
|
598
|
+
}}
|
|
599
|
+
style={{
|
|
600
|
+
// backgroundColor: isChoosedValueExists ? 'lightblue' : 'white',
|
|
601
|
+
color: isChoosedValueExists ? '#ffffff' : '#000000',
|
|
602
|
+
border: isChoosedValueExists
|
|
603
|
+
? '3px solid ' + sectionproperties.activeproductcolor
|
|
604
|
+
: '1px solid ' + sectionproperties.variantcontainerbordercolor,
|
|
605
|
+
padding: item?.option_info?.optionname == 'Color' ? '5px' : '5px 10px',
|
|
606
|
+
cursor: valitem.disabled ? 'not-allowed' : 'pointer',
|
|
607
|
+
fontSize: '13px',
|
|
608
|
+
width: item?.option_info?.optionname == 'Color' ? 25 : '',
|
|
609
|
+
height: item?.option_info?.optionname == 'Color' ? 25 : '',
|
|
610
|
+
borderRadius: item?.option_info?.optionname == 'Color' ? 100 : 5,
|
|
611
|
+
background:
|
|
612
|
+
item?.option_info?.optionname == 'Color'
|
|
613
|
+
? valitem?.valueinfo?.valuename
|
|
614
|
+
: isChoosedValueExists
|
|
615
|
+
? sectionproperties.activeproductcolor
|
|
616
|
+
: '#ffffff',
|
|
617
|
+
fontWeight: 500,
|
|
618
|
+
}}
|
|
619
|
+
disabled={valitem.disabled}
|
|
620
|
+
>
|
|
621
|
+
{item?.option_info?.optionname == 'Color' ? '' : valitem?.valueinfo?.valuename || 'Unnamed'}
|
|
622
|
+
</button>
|
|
623
|
+
</div>
|
|
624
|
+
);
|
|
625
|
+
}
|
|
626
|
+
})}
|
|
627
|
+
{item?.values?.length > 4 && (
|
|
628
|
+
<div
|
|
629
|
+
className="mx-1 d-flex align-items-center justify-content-center"
|
|
630
|
+
style={{
|
|
631
|
+
width: 25,
|
|
632
|
+
height: 25,
|
|
633
|
+
borderRadius: 100,
|
|
634
|
+
backgroundColor: sectionproperties.activeproductcolor,
|
|
635
|
+
color: '#fff',
|
|
636
|
+
fontSize: '13px',
|
|
637
|
+
cursor: 'pointer',
|
|
638
|
+
}}
|
|
639
|
+
onClick={() => {
|
|
640
|
+
cardonclickfunctionContext(sectionproperties?.onClickRoute, props.actions.item.productid, props.actions.fetchingtypeprops, null);
|
|
641
|
+
}}
|
|
642
|
+
>
|
|
643
|
+
+{item?.values?.length - 4}
|
|
644
|
+
</div>
|
|
645
|
+
)}
|
|
646
|
+
</div>
|
|
647
|
+
);
|
|
648
|
+
})}
|
|
649
|
+
|
|
650
|
+
{/* {options_w_values>=4&&
|
|
651
|
+
<div>
|
|
652
|
+
<p class='m-0 p-0'>{}</p>
|
|
653
|
+
</div>
|
|
654
|
+
} */}
|
|
655
|
+
</div>
|
|
656
|
+
)}
|
|
657
|
+
</div>
|
|
658
|
+
);
|
|
659
|
+
};
|
|
660
|
+
export default Variants_J_Cards;
|