tabexseriescomponents 0.2.1280 → 0.2.1281
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 +27 -0
- package/dist/index.esm.js +27 -0
- package/dist/index.umd.js +27 -0
- package/package.json +1 -1
- package/srcbefore27-11/Contexts/LanguageContext.jsx +0 -408
- package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +0 -36
- package/srcbefore27-11/Imagekitconfig copy.jsx +0 -46
- package/srcbefore27-11/Imagekitconfig.jsx +0 -178
- package/srcbefore27-11/StylesJS/Customstyles.js +0 -456
- package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -538
- package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +0 -299
- package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +0 -388
- package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +0 -288
- package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
- package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +0 -733
- package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
- package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
- package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
- package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +0 -1074
- package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
- package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -293
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +0 -512
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +0 -513
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -184
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -208
- package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -145
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
- package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
- package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -605
- package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -817
- package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
- package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
- package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
- package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
- package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
- package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
- package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
- package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
- package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -731
- package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
- package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
- package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -138
- package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
- package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -600
- package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -2321
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -1311
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +0 -1292
- package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
- package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
- package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
- package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
- package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +0 -660
- package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -759
- package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
- package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +0 -731
- package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +0 -414
- package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
- package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +0 -776
- package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
- package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +0 -430
- package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +0 -1970
- package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +0 -2015
- package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
- package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -582
- package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -1165
- package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -646
- package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
- package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -332
- 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 +0 -1264
- package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +0 -375
- package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1056
- package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1498
- package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1289
- package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
- package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -907
- package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +0 -358
- package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -875
- package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +0 -622
- package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
- package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +0 -3414
- package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -777
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -933
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -710
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
- package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -1347
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1566
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -7163
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
- package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -941
- package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -80
- package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +0 -846
- package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -1198
- package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +0 -385
- package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -784
- package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1186
- package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -3692
- package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -266
- package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -860
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -950
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +0 -1052
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
- package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
- package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +0 -610
- package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1049
- package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1095
- package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -979
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -872
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +0 -895
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -421
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -822
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +0 -789
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +0 -787
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -295
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +0 -120
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -119
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -489
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -633
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -509
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -2323
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +0 -2065
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
- package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
- package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -966
- package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
- package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -1577
- package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -596
- package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -394
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +0 -174
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -651
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +0 -1017
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -3027
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +0 -103
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +0 -49
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -384
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +0 -1576
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -1989
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -474
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -665
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -741
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +0 -423
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -636
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
- package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -234
- package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -306
- package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -364
- package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -1000
- package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -2506
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +0 -1999
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
- package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +0 -79
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +0 -3459
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
- package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
- package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
- package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
- package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +0 -616
- package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -693
- package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +0 -173
- package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1831
- package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
- package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -268
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -190
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -224
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +0 -136
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -347
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -262
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -5566
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +0 -3101
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -3047
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +0 -2103
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +0 -2189
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +0 -2166
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +0 -2714
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -2206
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +0 -1158
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -1117
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +0 -1043
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +0 -1040
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -905
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -928
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
- package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
- package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -346
- package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -367
- package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -222
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1505
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +0 -1476
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
- package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
- package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -219
- package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
- package/srcbefore27-11/button.jsx +0 -40
- package/srcbefore27-11/index.jsx +0 -353
- package/srcbefore27-11/styles/Home.module.css +0 -129
- package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +0 -14
- package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
- package/srcbefore27-11/styles/cards/Productcard6.module.css +0 -9
- package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +0 -94
- package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
- package/srcbefore27-11/styles/cards/card23.module.css +0 -60
- package/srcbefore27-11/styles/cards/categorycard.module.css +0 -84
- package/srcbefore27-11/styles/cards/categorycard3.module.css +0 -50
- package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +0 -79
- package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +0 -139
- package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +0 -18
- package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcbefore27-11/styles/general/bootstrap.css +0 -4763
- package/srcbefore27-11/styles/general/dropdown.css +0 -206
- package/srcbefore27-11/styles/general/editorbardropdown.module.css +0 -94
- package/srcbefore27-11/styles/general/filter.module.css +0 -108
- package/srcbefore27-11/styles/general/form.module.css +0 -255
- package/srcbefore27-11/styles/general/general.module.css +0 -872
- package/srcbefore27-11/styles/general/image-gallery.css +0 -531
- package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +0 -52
- package/srcbefore27-11/styles/general/react-phone-input-2.module.css +0 -927
- package/srcbefore27-11/styles/general/scrollbtn.module.css +0 -22
- package/srcbefore27-11/styles/general/slick.module.css +0 -166
- package/srcbefore27-11/styles/general/tabs.module.css +0 -119
- package/srcbefore27-11/styles/general/workplaceeditor.module.css +0 -328
- package/srcbefore27-11/styles/globals.css +0 -26
- package/srcbefore27-11/styles/headers/CTAHeader.module.css +0 -40
- package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +0 -61
- package/srcbefore27-11/styles/headers/Gotoheader.module.css +0 -87
- package/srcbefore27-11/styles/headers/Header7.module.css +0 -50
- package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +0 -86
- package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
- package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +0 -46
- package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +0 -84
- package/srcbefore27-11/styles/headers/NewHeader.module.css +0 -101
- package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +0 -62
- package/srcbefore27-11/styles/headers/Sideheader.module.css +0 -108
- package/srcbefore27-11/styles/headers/Simpleheader.module.css +0 -102
- package/srcbefore27-11/styles/headers/classicheader.module.css +0 -16
- package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +0 -9
- package/srcbefore27-11/styles/headers/dropdown.css +0 -0
- package/srcbefore27-11/styles/headers/header4.module.css +0 -175
- package/srcbefore27-11/styles/headers/header5.module.css +0 -30
- package/srcbefore27-11/styles/headers/header_contactinfo.module.css +0 -53
- package/srcbefore27-11/styles/headers/headerresturant.module.css +0 -89
- package/srcbefore27-11/styles/headers/modernheader.module.css +0 -45
- package/srcbefore27-11/styles/headers/stylishheader.module.css +0 -24
- package/srcbefore27-11/styles/headers/subheader.module.css +0 -114
- package/srcbefore27-11/styles/headers/threetieredheader.module.css +0 -91
- package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +0 -4
- package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +0 -17
- package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/srcbefore27-11/styles/sections/Freetext.module.css +0 -18
- package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/srcbefore27-11/styles/staticpages/accordion.module.css +0 -9
- package/srcbefore27-11/styles/staticpages/cart.module.css +0 -108
- package/srcbefore27-11/styles/staticpages/dropdown.css +0 -196
- package/srcbefore27-11/styles/staticpages/filter.module.css +0 -139
- package/srcbefore27-11/styles/staticpages/image-gallery.css +0 -481
- package/srcbefore27-11/styles/staticpages/login.module.css +0 -155
- package/srcbefore27-11/styles/staticpages/productinfo.module.css +0 -54
- package/srcbefore27-11/styles/staticpages/shop.module.css +0 -191
- package/srcbefore27-11/styles/staticpages/signup.module.css +0 -250
- package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/srcbefore27-11/styles/staticpages/viewcart.module.css +0 -129
- package/srcbefore27-11/styles/staticpages/wishlist.module.css +0 -29
|
@@ -1,660 +0,0 @@
|
|
|
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;
|