tabexseriescomponents 0.0.706 → 0.0.708
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/package.json +1 -1
- package/srcoman/Contexts/LanguageContext.jsx +408 -0
- package/srcoman/Contexts/ProductsCardsSectionContext.jsx +36 -0
- package/srcoman/Imagekitconfig.jsx +46 -0
- package/srcoman/StylesJS/Customstyles.js +345 -0
- package/srcoman/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +376 -0
- package/srcoman/TabexComponents/Cards/Card20/Card20.jsx +298 -0
- package/srcoman/TabexComponents/Cards/Card21/Card21.jsx +388 -0
- package/srcoman/TabexComponents/Cards/Card22/Card22.jsx +288 -0
- package/srcoman/TabexComponents/Cards/Card23/Card23 copy.jsx +1630 -0
- package/srcoman/TabexComponents/Cards/Card23/Card23.jsx +742 -0
- package/srcoman/TabexComponents/Cards/CardAll/CardAll.jsx +453 -0
- package/srcoman/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +394 -0
- package/srcoman/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
- package/srcoman/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
- package/srcoman/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +255 -0
- package/srcoman/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +235 -0
- package/srcoman/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +199 -0
- package/srcoman/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +182 -0
- package/srcoman/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
- package/srcoman/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
- package/srcoman/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +184 -0
- package/srcoman/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +560 -0
- package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +145 -0
- package/srcoman/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +146 -0
- package/srcoman/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +142 -0
- package/srcoman/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +193 -0
- package/srcoman/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +409 -0
- package/srcoman/TabexComponents/Cards/MenuCard/MenuCard.jsx +732 -0
- package/srcoman/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +468 -0
- package/srcoman/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +593 -0
- package/srcoman/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +208 -0
- package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +497 -0
- package/srcoman/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +512 -0
- package/srcoman/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
- package/srcoman/TabexComponents/Cards/Productcard6/Productcard6.jsx +257 -0
- package/srcoman/TabexComponents/Cards/Productcard7/Productcard7.jsx +277 -0
- package/srcoman/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +352 -0
- package/srcoman/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +291 -0
- package/srcoman/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
- package/srcoman/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +327 -0
- package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +408 -0
- package/srcoman/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +528 -0
- package/srcoman/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +558 -0
- package/srcoman/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
- package/srcoman/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
- package/srcoman/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +137 -0
- package/srcoman/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +613 -0
- package/srcoman/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +413 -0
- package/srcoman/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +225 -0
- package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +525 -0
- package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +455 -0
- package/srcoman/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +905 -0
- package/srcoman/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +337 -0
- package/srcoman/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +347 -0
- package/srcoman/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +605 -0
- package/srcoman/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +185 -0
- package/srcoman/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +528 -0
- package/srcoman/TabexComponents/Footer/Footer1/Footer1.jsx +780 -0
- package/srcoman/TabexComponents/Footer/Footer2/Footer2.jsx +527 -0
- package/srcoman/TabexComponents/Footer/Footer3/Footer3.jsx +411 -0
- package/srcoman/TabexComponents/Footer/Footer4/Footer4.jsx +466 -0
- package/srcoman/TabexComponents/Footer/Footer5/Footer5.jsx +714 -0
- package/srcoman/TabexComponents/Footer/Footer6/Footer6.jsx +290 -0
- package/srcoman/TabexComponents/Footer/Footer7/Footer7.jsx +428 -0
- package/srcoman/TabexComponents/Footer/Footer8/Footer8.jsx +533 -0
- package/srcoman/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +330 -0
- package/srcoman/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +562 -0
- package/srcoman/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +865 -0
- package/srcoman/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +647 -0
- package/srcoman/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +110 -0
- package/srcoman/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +316 -0
- package/srcoman/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcoman/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcoman/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +1259 -0
- package/srcoman/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +1049 -0
- package/srcoman/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +1040 -0
- package/srcoman/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +1263 -0
- package/srcoman/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +76 -0
- package/srcoman/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +894 -0
- package/srcoman/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +831 -0
- package/srcoman/TabexComponents/Headers/Header4/Header4.jsx +622 -0
- package/srcoman/TabexComponents/Headers/Header8/Header8 copy.jsx +1026 -0
- package/srcoman/TabexComponents/Headers/Header8/Header8.jsx +1976 -0
- package/srcoman/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +776 -0
- package/srcoman/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +927 -0
- package/srcoman/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +704 -0
- package/srcoman/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +902 -0
- package/srcoman/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +953 -0
- package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +1562 -0
- package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +1201 -0
- package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +990 -0
- package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +1639 -0
- package/srcoman/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +1610 -0
- package/srcoman/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +1327 -0
- package/srcoman/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +934 -0
- package/srcoman/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +78 -0
- package/srcoman/TabexComponents/Headers/Modernheader/Modernheader.jsx +972 -0
- package/srcoman/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +778 -0
- package/srcoman/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +1159 -0
- package/srcoman/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +1073 -0
- package/srcoman/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +133 -0
- package/srcoman/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +854 -0
- package/srcoman/TabexComponents/Headers/Subheader/Subheader.jsx +863 -0
- package/srcoman/TabexComponents/Headers/Subheader/Subheader13-3.jsx +685 -0
- package/srcoman/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +517 -0
- package/srcoman/TabexComponents/Headers/Subheader/Subheadernew.jsx +555 -0
- package/srcoman/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1042 -0
- package/srcoman/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1089 -0
- package/srcoman/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +936 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +533 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +338 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +870 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +302 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +314 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +318 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +179 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +201 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +393 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +583 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +291 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +627 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +348 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +387 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +268 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +288 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +117 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +99 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +146 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +462 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +296 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +396 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +617 -0
- package/srcoman/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +408 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +1399 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +1656 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +1540 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1898 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +1596 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +1872 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +1880 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +726 -0
- package/srcoman/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +719 -0
- package/srcoman/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
- package/srcoman/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +929 -0
- package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +646 -0
- package/srcoman/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +962 -0
- package/srcoman/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +582 -0
- package/srcoman/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
- package/srcoman/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +342 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +161 -0
- package/srcoman/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +257 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +382 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +437 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +757 -0
- package/srcoman/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +346 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +1769 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +141 -0
- package/srcoman/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +376 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +380 -0
- package/srcoman/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +867 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +226 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +149 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +143 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +520 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +527 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +643 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +477 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +1217 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +614 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +91 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +380 -0
- package/srcoman/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +619 -0
- package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +284 -0
- package/srcoman/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +614 -0
- package/srcoman/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +402 -0
- package/srcoman/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +199 -0
- package/srcoman/TabexComponents/StaticPages/AddReview/AddReview.jsx +304 -0
- package/srcoman/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +321 -0
- package/srcoman/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +797 -0
- package/srcoman/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +460 -0
- package/srcoman/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +1306 -0
- package/srcoman/TabexComponents/StaticPages/Checkout/Checkout.jsx +1892 -0
- package/srcoman/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +1633 -0
- package/srcoman/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +1593 -0
- package/srcoman/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +1574 -0
- package/srcoman/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +245 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +2888 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter copy.jsx +1450 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter.jsx +2771 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter1-5.jsx +2624 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter13-11.jsx +2758 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter14-8.jsx +2753 -0
- package/srcoman/TabexComponents/StaticPages/Filter/Filter17-9.jsx +1495 -0
- package/srcoman/TabexComponents/StaticPages/Filter/VariantFilter.jsx +1271 -0
- package/srcoman/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +62 -0
- package/srcoman/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
- package/srcoman/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcoman/TabexComponents/StaticPages/Login/Login copy.jsx +1060 -0
- package/srcoman/TabexComponents/StaticPages/Login/Login.jsx +610 -0
- package/srcoman/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +172 -0
- package/srcoman/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1584 -0
- package/srcoman/TabexComponents/StaticPages/Policies/Policies.jsx +291 -0
- package/srcoman/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +194 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +183 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +128 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +255 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +176 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +225 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +92 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +312 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +235 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1983 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +1554 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +1827 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +1351 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +1566 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +1946 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +1037 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +966 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +632 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +324 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +183 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +128 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +140 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +225 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +310 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +235 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +1672 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +1554 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +1351 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +1566 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +1804 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +560 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +919 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +597 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +324 -0
- package/srcoman/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +145 -0
- package/srcoman/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +194 -0
- package/srcoman/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +338 -0
- package/srcoman/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +359 -0
- package/srcoman/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +113 -0
- package/srcoman/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +277 -0
- package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +1135 -0
- package/srcoman/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +1364 -0
- package/srcoman/TabexComponents/StaticPages/Signup/Signup.jsx +199 -0
- package/srcoman/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +292 -0
- package/srcoman/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +113 -0
- package/srcoman/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +162 -0
- package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +765 -0
- package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +786 -0
- package/srcoman/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +786 -0
- package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +786 -0
- package/srcoman/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +1425 -0
- package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +844 -0
- package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +555 -0
- package/srcoman/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +555 -0
- package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +555 -0
- package/srcoman/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +815 -0
- package/srcoman/button.jsx +40 -0
- package/srcoman/index.jsx +334 -0
- package/srcoman/styles/Home.module.css +129 -0
- package/srcoman/styles/cards/Categorcycard_fullimage.module.css +14 -0
- package/srcoman/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcoman/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcoman/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
- package/srcoman/styles/cards/Productcard6.module.css +9 -0
- package/srcoman/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/srcoman/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcoman/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
- package/srcoman/styles/cards/card23.module.css +60 -0
- package/srcoman/styles/cards/categorycard.module.css +84 -0
- package/srcoman/styles/cards/categorycard3.module.css +50 -0
- package/srcoman/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcoman/styles/cards/generalCardsStyles.module.css +79 -0
- package/srcoman/styles/cards/productcard_animatedbuttons.module.css +139 -0
- package/srcoman/styles/cards/productcard_with_textonhover.module.css +18 -0
- package/srcoman/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcoman/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcoman/styles/general/bootstrap.css +4763 -0
- package/srcoman/styles/general/dropdown.css +206 -0
- package/srcoman/styles/general/editorbardropdown.module.css +94 -0
- package/srcoman/styles/general/filter.module.css +108 -0
- package/srcoman/styles/general/form.module.css +255 -0
- package/srcoman/styles/general/general.module.css +872 -0
- package/srcoman/styles/general/image-gallery.css +531 -0
- package/srcoman/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcoman/styles/general/react-phone-input-2.module.css +927 -0
- package/srcoman/styles/general/scrollbtn.module.css +22 -0
- package/srcoman/styles/general/slick.module.css +166 -0
- package/srcoman/styles/general/tabs.module.css +119 -0
- package/srcoman/styles/general/workplaceeditor.module.css +328 -0
- package/srcoman/styles/globals.css +26 -0
- package/srcoman/styles/headers/CTAHeader.module.css +40 -0
- package/srcoman/styles/headers/CategoryFeaturingHeader.module.css +61 -0
- package/srcoman/styles/headers/Gotoheader.module.css +87 -0
- package/srcoman/styles/headers/Header7.module.css +50 -0
- package/srcoman/styles/headers/HeaderWithAdSlider.module.css +86 -0
- package/srcoman/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
- package/srcoman/styles/headers/HeaderWithUtilityBar.module.css +46 -0
- package/srcoman/styles/headers/Header_threesectionslogocentered.module.css +84 -0
- package/srcoman/styles/headers/NewHeader.module.css +101 -0
- package/srcoman/styles/headers/SearchFocusedHeader.module.css +62 -0
- package/srcoman/styles/headers/Sideheader.module.css +108 -0
- package/srcoman/styles/headers/Simpleheader.module.css +102 -0
- package/srcoman/styles/headers/classicheader.module.css +16 -0
- package/srcoman/styles/headers/classicheaderstyles.module.css +9 -0
- package/srcoman/styles/headers/dropdown.css +0 -0
- package/srcoman/styles/headers/header4.module.css +175 -0
- package/srcoman/styles/headers/header5.module.css +30 -0
- package/srcoman/styles/headers/header_contactinfo.module.css +53 -0
- package/srcoman/styles/headers/headerresturant.module.css +89 -0
- package/srcoman/styles/headers/modernheader.module.css +45 -0
- package/srcoman/styles/headers/stylishheader.module.css +24 -0
- package/srcoman/styles/headers/subheader.module.css +114 -0
- package/srcoman/styles/headers/threetieredheader.module.css +91 -0
- package/srcoman/styles/sections/BackgroundImageWithTopContent.css +4 -0
- package/srcoman/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcoman/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcoman/styles/sections/Freetext.module.css +18 -0
- package/srcoman/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcoman/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcoman/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcoman/styles/staticpages/accordion.module.css +9 -0
- package/srcoman/styles/staticpages/cart.module.css +108 -0
- package/srcoman/styles/staticpages/dropdown.css +196 -0
- package/srcoman/styles/staticpages/filter.module.css +139 -0
- package/srcoman/styles/staticpages/image-gallery.css +481 -0
- package/srcoman/styles/staticpages/login.module.css +155 -0
- package/srcoman/styles/staticpages/productinfo.module.css +54 -0
- package/srcoman/styles/staticpages/shop.module.css +191 -0
- package/srcoman/styles/staticpages/signup.module.css +250 -0
- package/srcoman/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcoman/styles/staticpages/viewcart.module.css +129 -0
- package/srcoman/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,1596 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext, createRef } from 'react';
|
|
2
|
+
import generalstyles from '../../../../styles/general/general.module.css';
|
|
3
|
+
import { css } from 'glamor';
|
|
4
|
+
import Filter from '../../../StaticPages/Filter/Filter.jsx';
|
|
5
|
+
import CollectionsFilterHorizontal from '../../../StaticPages/Filter/CollectionsFilterHorizontal.jsx';
|
|
6
|
+
import { useInView } from 'react-intersection-observer';
|
|
7
|
+
import { ScrollMenu, VisibilityContext } from 'react-horizontal-scrolling-menu';
|
|
8
|
+
import { serverbaselink, image_serverbaselink } from '../../../../../Env';
|
|
9
|
+
import { FiFilter } from '@react-icons/all-files/fi/FiFilter';
|
|
10
|
+
import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
|
|
11
|
+
import { FiChevronLeft } from '@react-icons/all-files/fi/FiChevronLeft';
|
|
12
|
+
import { FiChevronRight } from '@react-icons/all-files/fi/FiChevronRight';
|
|
13
|
+
import { HiOutlineArrowRight } from '@react-icons/all-files/hi/HiOutlineArrowRight';
|
|
14
|
+
import { HiOutlineArrowLeft } from '@react-icons/all-files/hi/HiOutlineArrowLeft';
|
|
15
|
+
import ReactPaginate from 'react-paginate';
|
|
16
|
+
import { CircularProgress } from 'react-cssfx-loading';
|
|
17
|
+
|
|
18
|
+
const CardsSection = (props) => {
|
|
19
|
+
const refscr = createRef();
|
|
20
|
+
const { ref, inView } = useInView();
|
|
21
|
+
const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
22
|
+
const lang = props.actions.lang;
|
|
23
|
+
const langdetect = props.actions.langdetect;
|
|
24
|
+
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
25
|
+
const favoriteprojectscountContext = props.actions.favoriteprojectscountContext;
|
|
26
|
+
const routingcountext = props.actions.routingcountext;
|
|
27
|
+
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
28
|
+
const ProductFilterObjContext = props.actions.ProductFilterObjContext;
|
|
29
|
+
const setProductFilterObjContext = props.actions.setProductFilterObjContext;
|
|
30
|
+
const TabexSectionsComponentsContext = props.actions.TabexSectionsComponentsContext;
|
|
31
|
+
const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
32
|
+
const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
33
|
+
const fetchProductsQuery = props.actions.fetchProductsQuery;
|
|
34
|
+
const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
35
|
+
const setParentCollectionsForCollectionQueryArr = props.actions.setParentCollectionsForCollectionQueryArr;
|
|
36
|
+
const ParentCollectionsForCollectionQueryArr = props.actions.ParentCollectionsForCollectionQueryArr;
|
|
37
|
+
const setfetchingtype = props.actions.setfetchingtype;
|
|
38
|
+
const fetchingtype = props.actions.fetchingtype;
|
|
39
|
+
const addtofavoritescontext = props.actions.addtofavoritescontext;
|
|
40
|
+
const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
41
|
+
const fetchCategoriesQueryContext = props.actions.fetchCategoriesQueryContext;
|
|
42
|
+
const FetchVendorsQuery = props.actions.FetchVendorsQuery;
|
|
43
|
+
const ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
44
|
+
const sortbycontext = props.actions.sortbycontext;
|
|
45
|
+
const setsortbycontext = props.actions.setsortbycontext;
|
|
46
|
+
const [openFilterSlider, setopenFilterSlider] = useState(false);
|
|
47
|
+
const actions = props.actions;
|
|
48
|
+
const [sectionproperties, setsectionproperties] = useState('');
|
|
49
|
+
const [cardsarray, setcardsarray] = useState([]);
|
|
50
|
+
const [sectionitem, setsectionitem] = useState('');
|
|
51
|
+
const [ProductsFetchingTypeSectionObj, setProductsFetchingTypeSectionObj] = useState({ productfetchingtype: 'Random', collectionid: '', grouptype: '' });
|
|
52
|
+
const [maincontainerarrayofobjs, setmaincontainerarrayofobjs] = useState([]);
|
|
53
|
+
// React.useEffect(() => {
|
|
54
|
+
// if (inView) {
|
|
55
|
+
// fetchProductsQuery.fetchNextPage();
|
|
56
|
+
// }
|
|
57
|
+
// }, [inView]);
|
|
58
|
+
const [perpageItems, setperpageItems] = useState(12);
|
|
59
|
+
const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
60
|
+
|
|
61
|
+
useEffect(() => {
|
|
62
|
+
var productfilerobjtemp = ProductFilterObjContext;
|
|
63
|
+
if (props.filterparamsprops != undefined) {
|
|
64
|
+
var filterpar = decodeURIComponent(props.filterparamsprops);
|
|
65
|
+
var filterparsed = JSON.parse(filterpar);
|
|
66
|
+
|
|
67
|
+
if (filterparsed != undefined) {
|
|
68
|
+
productfilerobjtemp = filterparsed;
|
|
69
|
+
setProductFilterObjContext(filterparsed);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
73
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
74
|
+
var secpropobj = {};
|
|
75
|
+
setsectionitem(sectionitem);
|
|
76
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
77
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
78
|
+
});
|
|
79
|
+
setsectionproperties({ ...secpropobj });
|
|
80
|
+
|
|
81
|
+
if (props.srcfromprops == 'GeneralProductsComponent') {
|
|
82
|
+
setfetchingtype('products');
|
|
83
|
+
var lcproductfetchingtype = 'Random';
|
|
84
|
+
|
|
85
|
+
if (productfilerobjtemp.ProductFetchingType != undefined && productfilerobjtemp.ProductFetchingType != null && productfilerobjtemp.ProductFetchingType.length != 0) {
|
|
86
|
+
lcproductfetchingtype = productfilerobjtemp.ProductFetchingType;
|
|
87
|
+
}
|
|
88
|
+
setProductsFetchingTypeSectionObj({
|
|
89
|
+
productfetchingtype: lcproductfetchingtype,
|
|
90
|
+
collectionid: props.collectionidprops,
|
|
91
|
+
grouptype: props.grouptypeprops,
|
|
92
|
+
grouptyperefid: props.grouptyperefidprops,
|
|
93
|
+
});
|
|
94
|
+
} else if (props.srcfromprops == 'InnerGroups' || props.srcfromprops == 'InnerCategory' || props.srcfromprops == 'InnerParentCollection') {
|
|
95
|
+
setfetchingtype(props.grouptypeprops);
|
|
96
|
+
} else if (props.srcfromprops == 'Innervendor') {
|
|
97
|
+
setfetchingtype('vendors');
|
|
98
|
+
} else {
|
|
99
|
+
setfetchingtype(sectionitem.fetchingtype);
|
|
100
|
+
setProductsFetchingTypeSectionObj({
|
|
101
|
+
productfetchingtype: sectionitem.productsfetchingtype,
|
|
102
|
+
collectionid: sectionitem.productsfetchingtypeCollectioncollectionid,
|
|
103
|
+
grouptype: props.grouptypeprops,
|
|
104
|
+
grouptyperefid: props.grouptyperefidprops,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}, [StatePagePropertiesContext]);
|
|
110
|
+
useEffect(() => {
|
|
111
|
+
if (sectionproperties.length != 0) {
|
|
112
|
+
if (cardsarray.length == 0) {
|
|
113
|
+
if (fetchingtype == 'collections') {
|
|
114
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
115
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
116
|
+
}
|
|
117
|
+
} else if (fetchingtype == 'products') {
|
|
118
|
+
if (fetchProductsQuery.isSuccess) {
|
|
119
|
+
var allpagesarr = [];
|
|
120
|
+
fetchProductsQuery?.data?.data?.products?.forEach((item) => {
|
|
121
|
+
allpagesarr.push(item);
|
|
122
|
+
});
|
|
123
|
+
cardobjassigner(allpagesarr);
|
|
124
|
+
}
|
|
125
|
+
} else if (fetchingtype == 'vendors') {
|
|
126
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
127
|
+
cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}, [sectionproperties]);
|
|
133
|
+
useEffect(() => {
|
|
134
|
+
if (fetchingtype?.length != 0) {
|
|
135
|
+
var tempFetchQueriesEngineContext = FetchQueriesEngineContext;
|
|
136
|
+
if (fetchingtype == 'collections') {
|
|
137
|
+
if (ProductsFetchingTypeSectionObj.collectionid == 'all' || ProductsFetchingTypeSectionObj.collectionid == null || ProductsFetchingTypeSectionObj.collectionid == undefined) {
|
|
138
|
+
setParentCollectionsForCollectionQueryArr('all');
|
|
139
|
+
} else {
|
|
140
|
+
setParentCollectionsForCollectionQueryArr([ProductsFetchingTypeSectionObj.collectionid]);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (fetchingtype == 'products') {
|
|
144
|
+
var tempfetchproductsfilerobjcontext = ProductFilterObjContext;
|
|
145
|
+
tempfetchproductsfilerobjcontext.ProductFetchingType = ProductsFetchingTypeSectionObj.productfetchingtype;
|
|
146
|
+
if (
|
|
147
|
+
ProductsFetchingTypeSectionObj.grouptype == 'collections' ||
|
|
148
|
+
ProductsFetchingTypeSectionObj.grouptype == 'categories' ||
|
|
149
|
+
ProductsFetchingTypeSectionObj.grouptype == 'parentcollections'
|
|
150
|
+
) {
|
|
151
|
+
} else {
|
|
152
|
+
if (tempfetchproductsfilerobjcontext.collections != undefined) {
|
|
153
|
+
tempfetchproductsfilerobjcontext.collections.push(ProductsFetchingTypeSectionObj.collectionid);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
tempfetchproductsfilerobjcontext.grouptype = ProductsFetchingTypeSectionObj.grouptype;
|
|
157
|
+
tempfetchproductsfilerobjcontext.grouptyperefid = ProductsFetchingTypeSectionObj.grouptyperefid;
|
|
158
|
+
setProductFilterObjContext({ ...tempfetchproductsfilerobjcontext });
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
162
|
+
}
|
|
163
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj]);
|
|
164
|
+
|
|
165
|
+
useEffect(() => {
|
|
166
|
+
if (fetchingtype?.length != 0) {
|
|
167
|
+
if (fetchingtype == 'categories') {
|
|
168
|
+
var categories = [];
|
|
169
|
+
if (fetchCategoriesQueryContext?.isSuccess) {
|
|
170
|
+
categories = fetchCategoriesQueryContext?.data?.data?.categories;
|
|
171
|
+
}
|
|
172
|
+
cardobjassigner(categories);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
176
|
+
var categories = [];
|
|
177
|
+
if (fetchCategoriesQueryContext?.isSuccess) {
|
|
178
|
+
categories = fetchCategoriesQueryContext?.data?.data?.categories;
|
|
179
|
+
}
|
|
180
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
181
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
182
|
+
// alert(JSON.stringify(categories));
|
|
183
|
+
var parentcollections = [];
|
|
184
|
+
categories?.forEach(function (catitem, catindex) {
|
|
185
|
+
catitem?.parentcolletions.forEach(function (parentcolitem) {
|
|
186
|
+
if (parentcolitem.isshowntocustomers == 1) {
|
|
187
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
188
|
+
parentcollections.push(parentcolitem);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
});
|
|
192
|
+
if (fetchingtype == 'parentcollections') {
|
|
193
|
+
if (
|
|
194
|
+
sectionitem?.productsfetchingtypeparentcollectioncategoryid != null &&
|
|
195
|
+
sectionitem?.productsfetchingtypeparentcollectioncategoryid != undefined &&
|
|
196
|
+
sectionitem?.productsfetchingtypeparentcollectioncategoryid != 'all'
|
|
197
|
+
) {
|
|
198
|
+
var arrafterfilter = [];
|
|
199
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
200
|
+
if (parentcolitem.categoryid == sectionitem?.productsfetchingtypeparentcollectioncategoryid) {
|
|
201
|
+
arrafterfilter.push(parentcolitem);
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
parentcollections = arrafterfilter;
|
|
205
|
+
}
|
|
206
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
207
|
+
var arrafterfilter = [];
|
|
208
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
209
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
210
|
+
arrafterfilter.push(parentcolitem);
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
parentcollections = arrafterfilter;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if (fetchingtype == 'innercategories') {
|
|
218
|
+
var arrafterfilter = [];
|
|
219
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
220
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
221
|
+
arrafterfilter.push(parentcolitem);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
parentcollections = arrafterfilter;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
cardobjassigner(parentcollections);
|
|
228
|
+
// }
|
|
229
|
+
} else if (fetchingtype == 'innerparentcollections') {
|
|
230
|
+
var categories = [];
|
|
231
|
+
if (fetchCategoriesQueryContext?.isSuccess) {
|
|
232
|
+
categories = fetchCategoriesQueryContext?.data?.data?.categories;
|
|
233
|
+
}
|
|
234
|
+
// if (fetchAuthorizationQueryContext?.isSuccess) {
|
|
235
|
+
// var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
236
|
+
var collections = [];
|
|
237
|
+
categories?.forEach(function (catitem, catindex) {
|
|
238
|
+
catitem?.parentcolletions.forEach(function (parentcolitem) {
|
|
239
|
+
parentcolitem.categoryid = catitem.categoryid;
|
|
240
|
+
parentcolitem?.collections?.forEach(function (collitem, colindex) {
|
|
241
|
+
if (collitem.isshowntocustomers == 1) {
|
|
242
|
+
collitem.parentcollectionid = parentcolitem.parentcollectionid;
|
|
243
|
+
collections.push(collitem);
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
});
|
|
248
|
+
if (fetchingtype == 'innerparentcollections') {
|
|
249
|
+
var collectionsafterfilter = [];
|
|
250
|
+
collections.forEach(function (colitem, colindex) {
|
|
251
|
+
if (colitem.parentcollectionid == props.collectionidprops) {
|
|
252
|
+
var iscollexists = false;
|
|
253
|
+
collectionsafterfilter.forEach(function (existcolitem) {
|
|
254
|
+
if (colitem.collectionid == existcolitem.collectionid) {
|
|
255
|
+
iscollexists = true;
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
if (iscollexists == false) {
|
|
259
|
+
collectionsafterfilter.push(colitem);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
});
|
|
263
|
+
collections = collectionsafterfilter;
|
|
264
|
+
}
|
|
265
|
+
cardobjassigner(collections);
|
|
266
|
+
// }
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}, [fetchingtype, ProductsFetchingTypeSectionObj, fetchCategoriesQueryContext.isSuccess]);
|
|
270
|
+
useEffect(() => {
|
|
271
|
+
if (fetchingtype == 'products') {
|
|
272
|
+
if (fetchProductsQuery.isSuccess && fetchcustomercartQueryContext.isSuccess) {
|
|
273
|
+
var allpagesarr = [];
|
|
274
|
+
fetchProductsQuery?.data?.data?.products?.forEach((item) => {
|
|
275
|
+
allpagesarr.push(item);
|
|
276
|
+
});
|
|
277
|
+
if (
|
|
278
|
+
fetchProductsQuery?.data?.data?.PerPageProducts != undefined &&
|
|
279
|
+
fetchProductsQuery?.data?.data?.PerPageProducts != null &&
|
|
280
|
+
fetchProductsQuery?.data?.data?.PerPageProducts?.length != 0
|
|
281
|
+
) {
|
|
282
|
+
setperpageItems(fetchProductsQuery?.data?.data?.PerPageProducts);
|
|
283
|
+
}
|
|
284
|
+
cardobjassigner(allpagesarr);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}, [fetchProductsQuery?.isSuccess, fetchProductsQuery?.dataUpdatedAt, fetchProductsQuery?.data, fetchcustomercartQueryContext?.dataUpdatedAt]);
|
|
288
|
+
useEffect(() => {
|
|
289
|
+
if (fetchingtype == 'collections') {
|
|
290
|
+
if (fetchcollectionsQueryContext.isSuccess) {
|
|
291
|
+
cardobjassigner(fetchcollectionsQueryContext.data.data.collections);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}, [fetchcollectionsQueryContext?.isSuccess]);
|
|
295
|
+
useEffect(() => {
|
|
296
|
+
if (fetchingtype == 'vendors') {
|
|
297
|
+
if (FetchVendorsQuery.isSuccess) {
|
|
298
|
+
if (FetchVendorsQuery.data.data.vendors != undefined && FetchVendorsQuery.data.data.vendors.length != 0) {
|
|
299
|
+
cardobjassigner(FetchVendorsQuery?.data?.data?.vendors);
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}, [FetchVendorsQuery.isSuccess]);
|
|
304
|
+
useEffect(() => {
|
|
305
|
+
favassigner();
|
|
306
|
+
}, [favoriteprojectscountContext]);
|
|
307
|
+
useEffect(() => {
|
|
308
|
+
if (sectionproperties.length != 0 && sectionproperties.maincontainerarrayofobjs != undefined) {
|
|
309
|
+
var maincontainerarrayofobjsparsed = JSON.parse(sectionproperties.maincontainerarrayofobjs);
|
|
310
|
+
if (Array.isArray(maincontainerarrayofobjsparsed)) {
|
|
311
|
+
setmaincontainerarrayofobjs([...maincontainerarrayofobjsparsed]);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}, [sectionproperties]);
|
|
315
|
+
const favassigner = () => {
|
|
316
|
+
if (fetchingtype == 'products') {
|
|
317
|
+
if (cardsarray.length != 0) {
|
|
318
|
+
if (favoriteprojectscountContext != undefined && Array.isArray(favoriteprojectscountContext)) {
|
|
319
|
+
var tempcardsarray = [...cardsarray];
|
|
320
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
321
|
+
arrayItem.IsFavExists = false;
|
|
322
|
+
});
|
|
323
|
+
tempcardsarray.forEach(function (arrayItem, arrayindex) {
|
|
324
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
325
|
+
if (arrayItem.productid == favitem) {
|
|
326
|
+
arrayItem.IsFavExists = true;
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
setcardsarray([...tempcardsarray]);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
const cardobjassigner = (fetchedarray) => {
|
|
336
|
+
var temparray = [];
|
|
337
|
+
|
|
338
|
+
fetchedarray.forEach(function (arrayItem, arrayindex) {
|
|
339
|
+
var cardobj = {
|
|
340
|
+
name: '',
|
|
341
|
+
image: '',
|
|
342
|
+
};
|
|
343
|
+
if (fetchingtype == 'products') {
|
|
344
|
+
var itemquantity = 0;
|
|
345
|
+
if (langdetect == 'en') {
|
|
346
|
+
cardobj.name = arrayItem.productinfo.name_en;
|
|
347
|
+
} else {
|
|
348
|
+
cardobj.name = arrayItem.productinfo.name_ar;
|
|
349
|
+
}
|
|
350
|
+
if (langdetect == 'en') {
|
|
351
|
+
cardobj.description = arrayItem.productinfo.description_en;
|
|
352
|
+
} else {
|
|
353
|
+
cardobj.description = arrayItem.productinfo.description_ar;
|
|
354
|
+
}
|
|
355
|
+
if (langdetect == 'en') {
|
|
356
|
+
cardobj.shortdescription = arrayItem.short_description_en;
|
|
357
|
+
} else {
|
|
358
|
+
cardobj.shortdescription = arrayItem.short_description_ar;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
if (arrayItem.productinfo.hasvariants == 0) {
|
|
362
|
+
fetchcustomercartQueryContext.data.data.customercart.cartitems.forEach(function (cartitem, cartindex) {
|
|
363
|
+
if (cartitem.productid == arrayItem.productinfo.productid) {
|
|
364
|
+
itemquantity = cartitem.quantity;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
cardobj.image = arrayItem.productinfo.productmainimage;
|
|
369
|
+
cardobj.hassale = arrayItem.productinfo.hassale;
|
|
370
|
+
cardobj.productid = arrayItem.productinfo.productid;
|
|
371
|
+
cardobj.hasvariants = arrayItem.productinfo.hasvariants;
|
|
372
|
+
cardobj.description_en = arrayItem.productinfo.description_en;
|
|
373
|
+
cardobj.description_ar = arrayItem.productinfo.description_ar;
|
|
374
|
+
cardobj.defaultprice = arrayItem.productinfo.defaultprice;
|
|
375
|
+
cardobj.defaultsaleprice = arrayItem.productinfo.defaultsaleprice;
|
|
376
|
+
cardobj.productimages = arrayItem.productinfo.productimages;
|
|
377
|
+
cardobj.quantity = itemquantity;
|
|
378
|
+
// cardobj.currentquantity = currentquantity;
|
|
379
|
+
cardobj.timestamp = arrayItem.productinfo.timestamp;
|
|
380
|
+
cardobj.productquantity = arrayItem.productinfo.productquantity;
|
|
381
|
+
cardobj.currentquantity = arrayItem.productinfo.currentquantity;
|
|
382
|
+
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
383
|
+
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
384
|
+
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
385
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
386
|
+
cardobj.productcashbackvalue = arrayItem.productinfo.productcashbackvalue;
|
|
387
|
+
cardobj.product_phonenumber = arrayItem.productinfo.product_phonenumber;
|
|
388
|
+
cardobj.productcanrate = arrayItem.productinfo.productcanrate;
|
|
389
|
+
cardobj.sku = arrayItem.productinfo.sku;
|
|
390
|
+
|
|
391
|
+
if (langdetect == 'en') {
|
|
392
|
+
cardobj.currencyname = fetchAuthorizationQueryContext?.data?.data?.currencyname_en;
|
|
393
|
+
} else {
|
|
394
|
+
cardobj.currencyname = fetchAuthorizationQueryContext?.data?.data?.currencyname_ar;
|
|
395
|
+
}
|
|
396
|
+
if (favoriteprojectscountContext != undefined && favoriteprojectscountContext.length != 0) {
|
|
397
|
+
favoriteprojectscountContext.forEach(function (favitem, favindex) {
|
|
398
|
+
if (arrayItem.productinfo.productid == favitem) {
|
|
399
|
+
cardobj.IsFavExists = true;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
} else if (fetchingtype == 'collections' || fetchingtype == 'innerparentcollections') {
|
|
404
|
+
cardobj.collectionid = arrayItem.collectionid;
|
|
405
|
+
cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
|
|
406
|
+
if (langdetect == 'en') {
|
|
407
|
+
cardobj.name = arrayItem.title_en;
|
|
408
|
+
cardobj.description = arrayItem.description_en;
|
|
409
|
+
} else if (langdetect == 'ar') {
|
|
410
|
+
cardobj.name = arrayItem.title_ar;
|
|
411
|
+
cardobj.description = arrayItem.description_ar;
|
|
412
|
+
}
|
|
413
|
+
cardobj.image = arrayItem.collectionlogo;
|
|
414
|
+
} else if (fetchingtype == 'categories') {
|
|
415
|
+
cardobj.collectionid = arrayItem.categoryid;
|
|
416
|
+
cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
|
|
417
|
+
if (langdetect == 'en') {
|
|
418
|
+
cardobj.name = arrayItem.title_en;
|
|
419
|
+
cardobj.description = arrayItem.description_en;
|
|
420
|
+
} else if (langdetect == 'ar') {
|
|
421
|
+
cardobj.name = arrayItem.title_ar;
|
|
422
|
+
cardobj.description = arrayItem.description_ar;
|
|
423
|
+
}
|
|
424
|
+
cardobj.image = arrayItem.categorylogo;
|
|
425
|
+
} else if (fetchingtype == 'parentcollections' || fetchingtype == 'innercategories') {
|
|
426
|
+
cardobj.collectionid = arrayItem.parentcollectionid;
|
|
427
|
+
cardobj.skiplayeronclick = arrayItem?.skiplayeronclick;
|
|
428
|
+
if (langdetect == 'en') {
|
|
429
|
+
cardobj.name = arrayItem.title_en;
|
|
430
|
+
cardobj.description = arrayItem.description_en;
|
|
431
|
+
} else if (langdetect == 'ar') {
|
|
432
|
+
cardobj.name = arrayItem.title_ar;
|
|
433
|
+
cardobj.description = arrayItem.description_ar;
|
|
434
|
+
}
|
|
435
|
+
cardobj.image = arrayItem.parentcollectionlogo;
|
|
436
|
+
} else if (fetchingtype == 'custom') {
|
|
437
|
+
} else if (fetchingtype == 'vendors') {
|
|
438
|
+
cardobj.name = arrayItem.vendorname;
|
|
439
|
+
cardobj.collectionid = arrayItem.vendorid;
|
|
440
|
+
cardobj.image = arrayItem.vendorlogourl;
|
|
441
|
+
}
|
|
442
|
+
temparray.push(cardobj);
|
|
443
|
+
});
|
|
444
|
+
|
|
445
|
+
setcardsarray([...temparray]);
|
|
446
|
+
};
|
|
447
|
+
// Example items, to simulate fetching from another resources.
|
|
448
|
+
const handlePageClick = (event) => {
|
|
449
|
+
props.scrolltotop();
|
|
450
|
+
var tempProductFilterObjContext = { ...ProductFilterObjContext };
|
|
451
|
+
tempProductFilterObjContext.page = event?.selected;
|
|
452
|
+
setProductFilterObjContext({ ...tempProductFilterObjContext });
|
|
453
|
+
var pasturl = '';
|
|
454
|
+
if (props.grouptypeprops != undefined) {
|
|
455
|
+
if (props.collectionidprops != undefined) {
|
|
456
|
+
pasturl = props.grouptypeprops + '/' + props.collectionidprops + '/';
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, pasturl + encodeURIComponent(JSON.stringify(tempProductFilterObjContext)));
|
|
460
|
+
};
|
|
461
|
+
function PaginatedItems({ itemsPerPage }) {
|
|
462
|
+
// const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / 12);
|
|
463
|
+
const pageCount = Math.ceil(fetchProductsQuery?.data?.data?.productscou / perpageItems);
|
|
464
|
+
return (
|
|
465
|
+
<div class="d-flex containerClassName">
|
|
466
|
+
<ReactPaginate
|
|
467
|
+
breakLabel="..."
|
|
468
|
+
forcePage={fetchProductsQuery?.data?.data?.page}
|
|
469
|
+
nextLabel={<FiChevronRight size={parseInt(sectionproperties.paginationFontSize) + 3} />}
|
|
470
|
+
onPageChange={handlePageClick}
|
|
471
|
+
active
|
|
472
|
+
pageRangeDisplayed={5}
|
|
473
|
+
pageCount={pageCount}
|
|
474
|
+
previousLabel={<FiChevronLeft size={parseInt(sectionproperties.paginationFontSize) + 3} />}
|
|
475
|
+
renderOnZeroPageCount={null}
|
|
476
|
+
pageLinkClassName={section_cssstyles.pageLinkClassName}
|
|
477
|
+
nextLinkClassName={section_cssstyles.nextLinkClassName}
|
|
478
|
+
previousLinkClassName={section_cssstyles.previousLinkClassName}
|
|
479
|
+
activeClassName={section_cssstyles.activeClassName}
|
|
480
|
+
activeLinkClassName={section_cssstyles.activeLinkClassName}
|
|
481
|
+
previousClassName={section_cssstyles.previousClassName}
|
|
482
|
+
nextClassName={section_cssstyles.nextClassName}
|
|
483
|
+
disabledClassName={section_cssstyles.disabledClassName}
|
|
484
|
+
disabledLinkClassName={section_cssstyles.disabledLinkClassName}
|
|
485
|
+
/>
|
|
486
|
+
</div>
|
|
487
|
+
);
|
|
488
|
+
}
|
|
489
|
+
const section_cssstyles = {
|
|
490
|
+
sectioncontainerr: css({
|
|
491
|
+
marginTop: sectionproperties.marginTop + 'px',
|
|
492
|
+
'@media (max-width: 800px)': {
|
|
493
|
+
marginTop: sectionproperties.marginTopResp != undefined && sectionproperties.marginTopResp != undefined ? sectionproperties.marginTopResp + 'px' : sectionproperties.marginTop + 'px',
|
|
494
|
+
},
|
|
495
|
+
}),
|
|
496
|
+
innercardssection: css({
|
|
497
|
+
paddingLeft: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px') : 0,
|
|
498
|
+
paddingRight: sectionproperties.showFilter == 'show' ? (langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px') : 0,
|
|
499
|
+
'@media (max-width: 800px)': {
|
|
500
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.paddinghorizontalresponsive + 'px' : sectionproperties.paddinghorizontalresponsive + 'px',
|
|
501
|
+
paddingRight: langdetect == 'en' ? sectionproperties.paddinghorizontalresponsive + 'px' : sectionproperties.paddinghorizontalresponsive + 'px',
|
|
502
|
+
},
|
|
503
|
+
}),
|
|
504
|
+
disabledClassName: css({
|
|
505
|
+
cursor: 'not-allowed',
|
|
506
|
+
':hover': {
|
|
507
|
+
cursor: 'not-allowed',
|
|
508
|
+
color: sectionproperties.paginationColor,
|
|
509
|
+
},
|
|
510
|
+
}),
|
|
511
|
+
disabledLinkClassName: css({
|
|
512
|
+
cursor: 'not-allowed',
|
|
513
|
+
':hover': {
|
|
514
|
+
cursor: 'not-allowed',
|
|
515
|
+
color: sectionproperties.paginationColor,
|
|
516
|
+
},
|
|
517
|
+
}),
|
|
518
|
+
pageLinkClassName: css({
|
|
519
|
+
minWidth: sectionproperties.paginationContainerWidth + 'vh',
|
|
520
|
+
height: sectionproperties.paginationContainerHeight + 'vh',
|
|
521
|
+
padding: '17px',
|
|
522
|
+
display: 'flex',
|
|
523
|
+
alignItems: 'center',
|
|
524
|
+
justifyContent: 'center',
|
|
525
|
+
color: sectionproperties.paginationColor,
|
|
526
|
+
border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
|
|
527
|
+
transition: '.3s',
|
|
528
|
+
':hover': {
|
|
529
|
+
color: sectionproperties.paginationColoronHover,
|
|
530
|
+
borderColor: sectionproperties.paginationColoronHover,
|
|
531
|
+
},
|
|
532
|
+
}),
|
|
533
|
+
activeClassName: css({
|
|
534
|
+
color: sectionproperties.paginationActiveColor,
|
|
535
|
+
borderColor: sectionproperties.paginationActiveColor,
|
|
536
|
+
}),
|
|
537
|
+
activeLinkClassName: css({
|
|
538
|
+
color: sectionproperties.paginationActiveColor,
|
|
539
|
+
borderColor: sectionproperties.paginationActiveColor,
|
|
540
|
+
}),
|
|
541
|
+
previousClassName: css({
|
|
542
|
+
width: sectionproperties.paginationContainerWidth + 'vh',
|
|
543
|
+
height: sectionproperties.paginationContainerHeight + 'vh',
|
|
544
|
+
padding: '17px',
|
|
545
|
+
display: 'flex',
|
|
546
|
+
alignItems: 'center',
|
|
547
|
+
justifyContent: 'center',
|
|
548
|
+
color: sectionproperties.paginationColor,
|
|
549
|
+
border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
|
|
550
|
+
transition: '.3s',
|
|
551
|
+
':hover': {
|
|
552
|
+
color: sectionproperties.paginationColoronHover,
|
|
553
|
+
borderColor: sectionproperties.paginationColoronHover,
|
|
554
|
+
},
|
|
555
|
+
}),
|
|
556
|
+
nextClassName: css({
|
|
557
|
+
width: sectionproperties.paginationContainerWidth + 'vh',
|
|
558
|
+
height: sectionproperties.paginationContainerHeight + 'vh',
|
|
559
|
+
padding: '17px',
|
|
560
|
+
display: 'flex',
|
|
561
|
+
alignItems: 'center',
|
|
562
|
+
justifyContent: 'center',
|
|
563
|
+
color: sectionproperties.paginationColor,
|
|
564
|
+
border: sectionproperties.paginationBorderWidth + 'px solid ' + sectionproperties.paginationBorderColor,
|
|
565
|
+
transition: '.3s',
|
|
566
|
+
':hover': {
|
|
567
|
+
color: sectionproperties.paginationColoronHover,
|
|
568
|
+
borderColor: sectionproperties.paginationColoronHover,
|
|
569
|
+
},
|
|
570
|
+
}),
|
|
571
|
+
previousLinkClassName: css({
|
|
572
|
+
fontSize: sectionproperties.paginationFontSize + 'px',
|
|
573
|
+
color: sectionproperties.paginationColor,
|
|
574
|
+
transition: '.3s',
|
|
575
|
+
':hover': {
|
|
576
|
+
color: sectionproperties.paginationColoronHover,
|
|
577
|
+
},
|
|
578
|
+
}),
|
|
579
|
+
nextLinkClassName: css({
|
|
580
|
+
fontSize: sectionproperties.paginationFontSize + 'px',
|
|
581
|
+
color: sectionproperties.paginationColor,
|
|
582
|
+
transition: '.3s',
|
|
583
|
+
':hover': {
|
|
584
|
+
color: sectionproperties.paginationColoronHover,
|
|
585
|
+
},
|
|
586
|
+
}),
|
|
587
|
+
sectiontitlespan: css({
|
|
588
|
+
':after': {
|
|
589
|
+
height: '5px',
|
|
590
|
+
width: sectionproperties.sectitle_lineafterwidth + '%',
|
|
591
|
+
backgroundColor: sectionproperties.linebgcolor,
|
|
592
|
+
},
|
|
593
|
+
}),
|
|
594
|
+
line_left: css({
|
|
595
|
+
height: '1px',
|
|
596
|
+
position: 'relative',
|
|
597
|
+
flex: '1 1 auto',
|
|
598
|
+
minWidth: '10%',
|
|
599
|
+
background: sectionproperties.linebgcolor,
|
|
600
|
+
}),
|
|
601
|
+
line_right: css({
|
|
602
|
+
height: '1px',
|
|
603
|
+
position: 'relative',
|
|
604
|
+
flex: '1 1 auto',
|
|
605
|
+
minWidth: '10%',
|
|
606
|
+
background: sectionproperties.linebgcolor,
|
|
607
|
+
}),
|
|
608
|
+
cards_sections: css({
|
|
609
|
+
paddingLeft: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
610
|
+
paddingRight: sectionproperties.showFilter == 'show' ? 0 : langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
611
|
+
paddingTop: sectionproperties.paddingTop + 'px',
|
|
612
|
+
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
613
|
+
borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
|
|
614
|
+
borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
|
|
615
|
+
borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
|
|
616
|
+
borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px',
|
|
617
|
+
borderColor: sectionproperties.sectioncardbordercolor,
|
|
618
|
+
border: sectionproperties.sectioncardborderwidth + 'px solid',
|
|
619
|
+
}),
|
|
620
|
+
filterbtn: css({
|
|
621
|
+
width: sectionproperties.filterbtn_Width + 'px',
|
|
622
|
+
height: sectionproperties.filterbtn_Height + 'px',
|
|
623
|
+
background: sectionproperties.filterbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColor,
|
|
624
|
+
borderBottomLeftRadius: sectionproperties.filterbtn_borderBottomLeftRadius + 'px',
|
|
625
|
+
borderBottomRightRadius: sectionproperties.filterbtn_borderBottomRightRadius + 'px',
|
|
626
|
+
borderTopLeftRadius: sectionproperties.filterbtn_borderTopLeftRadius + 'px',
|
|
627
|
+
borderTopRightRadius: sectionproperties.filterbtn_borderTopRightRadius + 'px',
|
|
628
|
+
color: sectionproperties.filterbtn_Textcolor,
|
|
629
|
+
boxShadow: sectionproperties.filterbtn_showshadow == 'Show' ? '0 0 10px ' + sectionproperties.filterbtn_shadowcolor : '',
|
|
630
|
+
marginTop: sectionproperties.filterbtn_marginTop + 'px',
|
|
631
|
+
marginBottom: sectionproperties.filterbtn_marginBottom + 'px',
|
|
632
|
+
marginLeft: sectionproperties.filterbtn_marginLeft + 'px',
|
|
633
|
+
marginRight: sectionproperties.filterbtn_marginRight + 'px',
|
|
634
|
+
transition: '.3s',
|
|
635
|
+
':hover': {
|
|
636
|
+
background: sectionproperties.filterbtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.filterbtn_bgColoronhover,
|
|
637
|
+
color: sectionproperties.filterbtn_Textcoloronhover,
|
|
638
|
+
},
|
|
639
|
+
}),
|
|
640
|
+
viewmorebtn: css({
|
|
641
|
+
width: sectionproperties.viewmorebtn_Width == 0 ? 'auto' : sectionproperties.viewmorebtn_Width + 'px',
|
|
642
|
+
height: sectionproperties.viewmorebtn_Height == 0 ? 'auto' : sectionproperties.viewmorebtn_Height + 'px',
|
|
643
|
+
background: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColor,
|
|
644
|
+
borderRadius: sectionproperties.viewmorebtn_borderBottomLeftRadius + 'px',
|
|
645
|
+
color: sectionproperties.viewmorebtn_Textcolor,
|
|
646
|
+
fontSize: sectionproperties.viewmorebtn_fontSize + 'px',
|
|
647
|
+
fontWeight: sectionproperties.viewmorebtn_fontWeight,
|
|
648
|
+
textDecoration: sectionproperties.viewmorebtn_bgtransparent == 'Transparent' ? (sectionproperties.viewmorebtnborderwidth == 0 ? 'underline' : 'none') : 'none',
|
|
649
|
+
transition: '.3s',
|
|
650
|
+
border: sectionproperties.viewmorebtnborderwidth + 'px solid ' + sectionproperties.viewmorebtnbordercolor,
|
|
651
|
+
':hover': {
|
|
652
|
+
background: sectionproperties.viewmorebtn_transparentbgcoloronhover == 'Transparent' ? 'transparent' : sectionproperties.viewmorebtn_bgColoronhover,
|
|
653
|
+
color: sectionproperties.viewmorebtn_Textcoloronhover,
|
|
654
|
+
borderColor: sectionproperties.viewmorebtn_Textcoloronhover,
|
|
655
|
+
},
|
|
656
|
+
}),
|
|
657
|
+
loadbtn: css({
|
|
658
|
+
fontSize: sectionproperties.generaltext_fontSize + 'px',
|
|
659
|
+
color: sectionproperties.generaltext_fontColor,
|
|
660
|
+
fontWeight: sectionproperties.generaltext_fontWeight,
|
|
661
|
+
textDecoration: 'underline',
|
|
662
|
+
transition: '.3s',
|
|
663
|
+
':hover': {
|
|
664
|
+
color: sectionproperties.text_secondarycolor,
|
|
665
|
+
},
|
|
666
|
+
}),
|
|
667
|
+
sectiontitilecontainer: css({
|
|
668
|
+
marginTop: sectionproperties.showbadge == 'Show' ? 0 : sectionproperties.sectionTitleMarginTop + 'px',
|
|
669
|
+
marginBottom: sectionproperties.sectiontitledirection == 'Horizontal' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
|
|
670
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.sectionTitleMarginLeft + 'px' : sectionproperties.sectionTitleMarginRight + 'px',
|
|
671
|
+
paddingRight: langdetect == 'en' ? sectionproperties.sectionTitleMarginRight + 'px' : sectionproperties.sectionTitleMarginLeft + 'px',
|
|
672
|
+
'@media (max-width: 1024px)': {
|
|
673
|
+
paddingLeft: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
|
|
674
|
+
paddingRight: sectionproperties.sectiontitlepaddinghorizontalresponsive + 'rem',
|
|
675
|
+
},
|
|
676
|
+
}),
|
|
677
|
+
};
|
|
678
|
+
const SectionTitle = () => {
|
|
679
|
+
return (
|
|
680
|
+
<div
|
|
681
|
+
class="d-flex align-items-center flex-row"
|
|
682
|
+
style={{
|
|
683
|
+
position: 'relative',
|
|
684
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
685
|
+
width: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '100%' : '',
|
|
686
|
+
}}
|
|
687
|
+
>
|
|
688
|
+
{sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_left}></span>}
|
|
689
|
+
<p
|
|
690
|
+
class={
|
|
691
|
+
sectionproperties.sectiontitlefontfamily == 'Pacifico'
|
|
692
|
+
? `${section_cssstyles.sectiontitlespan}` + ' PacificoFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
693
|
+
: sectionproperties.sectiontitlefontfamily == 'Playfair'
|
|
694
|
+
? `${section_cssstyles.sectiontitlespan}` + ' PlayfairFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
695
|
+
: sectionproperties.sectiontitlefontfamily == 'Great Vibes'
|
|
696
|
+
? `${section_cssstyles.sectiontitlespan}` + ' GreatvibesFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
697
|
+
: sectionproperties.sectiontitlefontfamily == 'Quicksand'
|
|
698
|
+
? `${section_cssstyles.sectiontitlespan}` + ' QuicksandFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
699
|
+
: sectionproperties.sectiontitlefontfamily == 'Satisfy'
|
|
700
|
+
? `${section_cssstyles.sectiontitlespan}` + ' SatisfyFont mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
701
|
+
: sectionproperties.sectiontitlefontfamily == 'ASUL'
|
|
702
|
+
? `${section_cssstyles.sectiontitlespan}` + ' ASUL mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
703
|
+
: `${section_cssstyles.sectiontitlespan}` + ' mb-auto mb-0 pb-0 wordbreak d-flex align-items-center justify-content-start '
|
|
704
|
+
}
|
|
705
|
+
style={{
|
|
706
|
+
color: sectionproperties.sectionTitleColor,
|
|
707
|
+
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
708
|
+
paddingLeft: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
709
|
+
paddingRight: sectionproperties.sectiontitlestyle == 'Line Before Text' ? '12px' : 0,
|
|
710
|
+
textAlign: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : '',
|
|
711
|
+
}}
|
|
712
|
+
>
|
|
713
|
+
{langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar}
|
|
714
|
+
</p>
|
|
715
|
+
{sectionproperties.sectiontitlestyle == 'Line Before Text' && <span class={section_cssstyles.line_right}></span>}
|
|
716
|
+
</div>
|
|
717
|
+
);
|
|
718
|
+
};
|
|
719
|
+
const isCardsectionloading = () => {
|
|
720
|
+
var isloading = false;
|
|
721
|
+
|
|
722
|
+
if (fetchingtype == 'products') {
|
|
723
|
+
if (fetchProductsQuery?.isFetching) {
|
|
724
|
+
isloading = true;
|
|
725
|
+
}
|
|
726
|
+
} else if (fetchingtype == 'vendors') {
|
|
727
|
+
if (FetchVendorsQuery?.isFetching) {
|
|
728
|
+
isloading = true;
|
|
729
|
+
}
|
|
730
|
+
} else {
|
|
731
|
+
if (fetchCategoriesQueryContext?.isFetching == true || fetchCategoriesQueryContext?.isFetching == true) {
|
|
732
|
+
isloading = true;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
return isloading;
|
|
737
|
+
};
|
|
738
|
+
const cardsrender = () => {
|
|
739
|
+
return (
|
|
740
|
+
<div
|
|
741
|
+
class={
|
|
742
|
+
sectionproperties.showFilter == 'show' && sectionproperties.filterdirection == 'Vertical'
|
|
743
|
+
? sectionproperties.numofcols == '2'
|
|
744
|
+
? 'col-lg-10 col-md-12 col-sm-12 p-sm-0'
|
|
745
|
+
: 'col-lg-9 col-md-12 col-sm-12 p-sm-0'
|
|
746
|
+
: 'row m-0 w-100 p-sm-0'
|
|
747
|
+
}
|
|
748
|
+
>
|
|
749
|
+
{sectionproperties.length != 0 && (
|
|
750
|
+
<div className="row m-0 w-100 d-flex align-items-center p-sm-0">
|
|
751
|
+
<div class="col-lg-12 p-0">
|
|
752
|
+
{/* pl-md-2 pr-md-2 pl-sm-2 pr-sm-2 */}
|
|
753
|
+
<div className={section_cssstyles.sectiontitilecontainer + ' row ml-0 mr-0 w-100 '} style={{}}>
|
|
754
|
+
<div
|
|
755
|
+
class={
|
|
756
|
+
sectionproperties.viewmorebtnshow == 'Show'
|
|
757
|
+
? sectionproperties.sectiontitleposition == 'Centered'
|
|
758
|
+
? ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
|
|
759
|
+
: ' col-lg-7 col-md-7 col-sm-9 d-flex align-items-center p-0 '
|
|
760
|
+
: sectionproperties.showFilter == 'show'
|
|
761
|
+
? sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal'
|
|
762
|
+
? ' col-lg-12 col-md-7 col-sm-9 d-flex align-items-center p-0 '
|
|
763
|
+
: ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
|
|
764
|
+
: ' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center p-0 '
|
|
765
|
+
}
|
|
766
|
+
>
|
|
767
|
+
<div class="row m-0 w-100">
|
|
768
|
+
{sectionproperties.showbadge == 'Show' && (
|
|
769
|
+
<div
|
|
770
|
+
class={' col-lg-12 p-0 d-flex align-items-center '}
|
|
771
|
+
style={{
|
|
772
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
773
|
+
}}
|
|
774
|
+
>
|
|
775
|
+
<p
|
|
776
|
+
class="m-0 p-0 allcentered"
|
|
777
|
+
style={{
|
|
778
|
+
fontSize: sectionproperties.badge_fontsize + 'px',
|
|
779
|
+
background: sectionproperties.badge_bgcolor,
|
|
780
|
+
minWidth: sectionproperties.badge_width + 'px',
|
|
781
|
+
height: sectionproperties.badge_height + 'px',
|
|
782
|
+
color: sectionproperties.badge_color,
|
|
783
|
+
borderRadius: sectionproperties.badge_borderradius + 'px',
|
|
784
|
+
border: sectionproperties.badgeborderwidth + 'px solid ' + sectionproperties.badgebordercolor,
|
|
785
|
+
}}
|
|
786
|
+
>
|
|
787
|
+
{langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr}
|
|
788
|
+
</p>
|
|
789
|
+
</div>
|
|
790
|
+
)}
|
|
791
|
+
{sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && (
|
|
792
|
+
<div
|
|
793
|
+
class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-flex d-md-none align-items-center '}
|
|
794
|
+
style={{
|
|
795
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
796
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
797
|
+
marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
|
|
798
|
+
marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
|
|
799
|
+
}}
|
|
800
|
+
>
|
|
801
|
+
{SectionTitle()}
|
|
802
|
+
</div>
|
|
803
|
+
)}
|
|
804
|
+
{sectionproperties.sectiontitleshow == 'Show' && sectionproperties.filterType != 'Title & Sort By Only' && (
|
|
805
|
+
<div
|
|
806
|
+
class={`${generalstyles.sectiontitlecont}` + ' col-lg-12 p-0 d-none d-md-flex align-items-center '}
|
|
807
|
+
style={{
|
|
808
|
+
justifyContent: sectionproperties.sectiontitleposition == 'Centered' ? 'center' : 'start',
|
|
809
|
+
fontSize: sectionproperties.sectionTitleFontSizeresp + 'px',
|
|
810
|
+
marginTop: sectionproperties.showbadge == 'Show' ? sectionproperties.sectionTitleMarginTop + 'px' : 0,
|
|
811
|
+
marginBottom: sectionproperties.sectiontitledirection == 'Vertical' ? sectionproperties.sectionTitleMarginBottom + 'px' : 0,
|
|
812
|
+
}}
|
|
813
|
+
>
|
|
814
|
+
{SectionTitle()}
|
|
815
|
+
</div>
|
|
816
|
+
)}
|
|
817
|
+
{sectionproperties.sectiontitledirection == 'Vertical' && (
|
|
818
|
+
<div class="col-lg-12 p-0">
|
|
819
|
+
{sectionproperties.viewmorebtnshow == 'Show' && (
|
|
820
|
+
<button
|
|
821
|
+
class={
|
|
822
|
+
sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
|
|
823
|
+
? sectionproperties.sectiontitleposition == 'Centered'
|
|
824
|
+
? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
|
|
825
|
+
: `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
|
|
826
|
+
: sectionproperties.sectiontitleposition == 'Centered'
|
|
827
|
+
? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
|
|
828
|
+
: `${section_cssstyles.viewmorebtn}` + ' m-sm-0 mt-auto mb-auto '
|
|
829
|
+
}
|
|
830
|
+
onClick={() => {
|
|
831
|
+
if (fetchingtype == 'products') {
|
|
832
|
+
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
833
|
+
routingcountext(
|
|
834
|
+
StaticPagesLinksContext.GeneralProductsComponent,
|
|
835
|
+
true,
|
|
836
|
+
'collections/' + ProductsFetchingTypeSectionObj.collectionid,
|
|
837
|
+
);
|
|
838
|
+
} else {
|
|
839
|
+
routingcountext(
|
|
840
|
+
StaticPagesLinksContext.GeneralProductsComponent,
|
|
841
|
+
true,
|
|
842
|
+
encodeURIComponent(JSON.stringify(ProductFilterObjContext)),
|
|
843
|
+
);
|
|
844
|
+
}
|
|
845
|
+
} else {
|
|
846
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
847
|
+
}
|
|
848
|
+
}}
|
|
849
|
+
style={{
|
|
850
|
+
flexDirection: 'row',
|
|
851
|
+
}}
|
|
852
|
+
>
|
|
853
|
+
<span class={'d-flex justify-content-center align-items-center'}>
|
|
854
|
+
<span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : 'Poppins'}>
|
|
855
|
+
{langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
|
|
856
|
+
</span>
|
|
857
|
+
{sectionproperties.showIcon == 'Show' && (
|
|
858
|
+
<i
|
|
859
|
+
class={
|
|
860
|
+
sectionproperties.sectiontitleposition == 'Centered'
|
|
861
|
+
? 'd-flex justify-content-center align-items-center h-100 allcentered'
|
|
862
|
+
: 'd-flex justify-content-center align-items-center d-md-none h-100'
|
|
863
|
+
}
|
|
864
|
+
style={{
|
|
865
|
+
marginLeft: 5,
|
|
866
|
+
marginRight: 5,
|
|
867
|
+
}}
|
|
868
|
+
>
|
|
869
|
+
{langdetect == 'en' ? (
|
|
870
|
+
<HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
|
|
871
|
+
) : (
|
|
872
|
+
<HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
|
|
873
|
+
)}
|
|
874
|
+
</i>
|
|
875
|
+
)}
|
|
876
|
+
</span>
|
|
877
|
+
</button>
|
|
878
|
+
)}
|
|
879
|
+
</div>
|
|
880
|
+
)}
|
|
881
|
+
{sectionproperties.prodCatShow == 'Show' && (
|
|
882
|
+
<div
|
|
883
|
+
class={' col-lg-12 col-md-12 col-sm-12 d-flex align-items-center d-md-none '}
|
|
884
|
+
style={{
|
|
885
|
+
justifyContent: sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
|
|
886
|
+
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
887
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
|
|
888
|
+
paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
|
|
889
|
+
}}
|
|
890
|
+
>
|
|
891
|
+
<p
|
|
892
|
+
class={
|
|
893
|
+
sectionproperties.descFontFamily == 'Pacifico'
|
|
894
|
+
? ' PacificoFont m-0 p-0 wordbreak '
|
|
895
|
+
: sectionproperties.descFontFamily == 'Playfair'
|
|
896
|
+
? ' PlayfairFont m-0 p-0 wordbreak '
|
|
897
|
+
: sectionproperties.descFontFamily == 'Great Vibes'
|
|
898
|
+
? ' GreatvibesFont m-0 p-0 wordbreak '
|
|
899
|
+
: sectionproperties.descFontFamily == 'Quicksand'
|
|
900
|
+
? ' QuicksandFont m-0 p-0 wordbreak'
|
|
901
|
+
: sectionproperties.descFontFamily == 'ASUL'
|
|
902
|
+
? ' ASUL m-0 p-0 wordbreak '
|
|
903
|
+
: ' m-0 p-0 wordbreak '
|
|
904
|
+
}
|
|
905
|
+
style={{
|
|
906
|
+
color: sectionproperties.prodCatColor,
|
|
907
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
908
|
+
textAlign: sectionproperties.descriptionCentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right',
|
|
909
|
+
fontSize: sectionproperties.prodCatFontSize + 'px',
|
|
910
|
+
}}
|
|
911
|
+
>
|
|
912
|
+
{langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
|
|
913
|
+
</p>
|
|
914
|
+
</div>
|
|
915
|
+
)}
|
|
916
|
+
{sectionproperties.prodCatShow == 'Show' && (
|
|
917
|
+
<div
|
|
918
|
+
class={' col-lg-12 col-md-12 col-sm-12 align-items-center p-0 d-none d-md-flex '}
|
|
919
|
+
style={{
|
|
920
|
+
justifyContent: sectionproperties.showFilter == 'show' ? 'start' : sectionproperties.descriptionCentered == 'Centered' ? 'center' : 'start',
|
|
921
|
+
marginBottom: sectionproperties.descriptionMarginBottom + 'px',
|
|
922
|
+
paddingLeft: langdetect == 'en' ? sectionproperties.description_marginLeft + 'px' : sectionproperties.description_marginRight + 'px',
|
|
923
|
+
paddingRight: langdetect == 'en' ? sectionproperties.description_marginRight + 'px' : sectionproperties.description_marginLeft + 'px',
|
|
924
|
+
}}
|
|
925
|
+
>
|
|
926
|
+
<p
|
|
927
|
+
class={
|
|
928
|
+
sectionproperties.descFontFamily == 'Pacifico'
|
|
929
|
+
? ' PacificoFont m-0 p-0 wordbreak '
|
|
930
|
+
: sectionproperties.descFontFamily == 'Playfair'
|
|
931
|
+
? ' PlayfairFont m-0 p-0 wordbreak '
|
|
932
|
+
: sectionproperties.descFontFamily == 'Great Vibes'
|
|
933
|
+
? ' GreatvibesFont m-0 p-0 wordbreak '
|
|
934
|
+
: sectionproperties.descFontFamily == 'Quicksand'
|
|
935
|
+
? ' QuicksandFont m-0 p-0 wordbreak '
|
|
936
|
+
: sectionproperties.descFontFamily == 'ASUL'
|
|
937
|
+
? ' ASUL m-0 p-0 wordbreak '
|
|
938
|
+
: ' m-0 p-0 wordbreak '
|
|
939
|
+
}
|
|
940
|
+
style={{
|
|
941
|
+
color: sectionproperties.prodCatColor,
|
|
942
|
+
fontWeight: sectionproperties.prodCatFontWeight,
|
|
943
|
+
textAlign:
|
|
944
|
+
sectionproperties.showFilter == 'show'
|
|
945
|
+
? langdetect == 'en'
|
|
946
|
+
? 'left'
|
|
947
|
+
: 'right'
|
|
948
|
+
: sectionproperties.descriptionCentered == 'Centered'
|
|
949
|
+
? 'center'
|
|
950
|
+
: langdetect == 'en'
|
|
951
|
+
? 'left'
|
|
952
|
+
: 'right',
|
|
953
|
+
fontSize: sectionproperties.prodCatFontSizeResp + 'px',
|
|
954
|
+
}}
|
|
955
|
+
>
|
|
956
|
+
{langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr}
|
|
957
|
+
</p>
|
|
958
|
+
</div>
|
|
959
|
+
)}
|
|
960
|
+
</div>
|
|
961
|
+
</div>
|
|
962
|
+
<div
|
|
963
|
+
class={
|
|
964
|
+
sectionproperties.sectiontitleposition == 'Centered'
|
|
965
|
+
? sectionproperties.showFilter == 'show'
|
|
966
|
+
? sectionproperties.filterType != 'Title & Sort By Only' && sectionproperties.filterdirection != 'Collections Horizontal'
|
|
967
|
+
? 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0'
|
|
968
|
+
: 'col-lg-12 col-md-3 col-sm-3 d-flex align-item-center justify-content-center p-0 d-md-none'
|
|
969
|
+
: 'col-lg-12 col-md-12 col-sm-12 d-flex align-item-center justify-content-center p-0'
|
|
970
|
+
: 'col-lg-5 col-md-5 col-sm-3 d-flex align-item-center justify-content-end justify-content-sm-center p-0'
|
|
971
|
+
}
|
|
972
|
+
style={{
|
|
973
|
+
marginTop: sectionproperties.sectiontitleposition == 'Centered' ? sectionproperties.viewmoremt + 'px' : 0,
|
|
974
|
+
}}
|
|
975
|
+
>
|
|
976
|
+
<div
|
|
977
|
+
class={
|
|
978
|
+
sectionproperties.sectiontitleposition == 'Centered'
|
|
979
|
+
? ' row m-0 w-100 d-flex align-item-center justify-content-center mt-auto mb-auto '
|
|
980
|
+
: ' row m-0 w-100 d-flex align-item-center justify-content-end mt-auto mb-auto '
|
|
981
|
+
}
|
|
982
|
+
>
|
|
983
|
+
{sectionproperties.viewmorebtnshow == 'Show' && sectionproperties.sectiontitledirection == 'Horizontal' && (
|
|
984
|
+
<button
|
|
985
|
+
class={
|
|
986
|
+
sectionproperties.viewmorebtn_bgtransparent == 'Transparent'
|
|
987
|
+
? sectionproperties.sectiontitleposition == 'Centered'
|
|
988
|
+
? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto mb-sm-3 '
|
|
989
|
+
: `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
|
|
990
|
+
: sectionproperties.sectiontitleposition == 'Centered'
|
|
991
|
+
? `${section_cssstyles.viewmorebtn}` + ' m-sm-0 allcentered mt-auto mb-auto '
|
|
992
|
+
: `${section_cssstyles.viewmorebtn}` + ' w-sm-auto btn-circle-resp m-sm-0 mt-auto mb-auto '
|
|
993
|
+
}
|
|
994
|
+
onClick={() => {
|
|
995
|
+
if (fetchingtype == 'products') {
|
|
996
|
+
if (ProductsFetchingTypeSectionObj.productfetchingtype == 'Collection') {
|
|
997
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, 'collections/' + ProductsFetchingTypeSectionObj.collectionid);
|
|
998
|
+
} else {
|
|
999
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
1000
|
+
}
|
|
1001
|
+
} else if (fetchingtype == 'parentcollections') {
|
|
1002
|
+
routingcountext(
|
|
1003
|
+
StaticPagesLinksContext.InnerCategory,
|
|
1004
|
+
true,
|
|
1005
|
+
'parentcollections/' + sectionitem?.productsfetchingtypeparentcollectioncategoryid,
|
|
1006
|
+
true,
|
|
1007
|
+
);
|
|
1008
|
+
} else {
|
|
1009
|
+
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
1010
|
+
}
|
|
1011
|
+
}}
|
|
1012
|
+
style={{
|
|
1013
|
+
flexDirection: 'row',
|
|
1014
|
+
}}
|
|
1015
|
+
>
|
|
1016
|
+
<span
|
|
1017
|
+
class={
|
|
1018
|
+
sectionproperties.sectiontitleposition == 'Centered'
|
|
1019
|
+
? 'd-flex justify-content-center align-items-center'
|
|
1020
|
+
: 'd-flex justify-content-center align-items-center d-md-none'
|
|
1021
|
+
}
|
|
1022
|
+
>
|
|
1023
|
+
<span class={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}>
|
|
1024
|
+
{langdetect == 'en' ? sectionproperties.viewmorebtn_text : sectionproperties.viewmorebtn_text_ar}
|
|
1025
|
+
</span>
|
|
1026
|
+
{sectionproperties.showIcon == 'Show' && (
|
|
1027
|
+
<i
|
|
1028
|
+
class={
|
|
1029
|
+
sectionproperties.sectiontitleposition == 'Centered'
|
|
1030
|
+
? 'd-flex justify-content-center align-items-center h-100 allcentered'
|
|
1031
|
+
: 'd-flex justify-content-center align-items-center d-md-none h-100'
|
|
1032
|
+
}
|
|
1033
|
+
style={{
|
|
1034
|
+
marginLeft: 5,
|
|
1035
|
+
marginRight: 5,
|
|
1036
|
+
}}
|
|
1037
|
+
>
|
|
1038
|
+
{langdetect == 'en' ? (
|
|
1039
|
+
<HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsize} />
|
|
1040
|
+
) : (
|
|
1041
|
+
<HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsize} />
|
|
1042
|
+
)}
|
|
1043
|
+
</i>
|
|
1044
|
+
)}
|
|
1045
|
+
</span>
|
|
1046
|
+
<span
|
|
1047
|
+
class={
|
|
1048
|
+
sectionproperties.sectiontitleposition == 'Centered'
|
|
1049
|
+
? 'd-none align-items-center justify-content-center'
|
|
1050
|
+
: 'd-none d-md-flex align-items-center justify-content-center w-100 h-100'
|
|
1051
|
+
}
|
|
1052
|
+
>
|
|
1053
|
+
<i class="h-100 d-flex align-items-center justify-content-center w-100">
|
|
1054
|
+
{langdetect == 'en' ? (
|
|
1055
|
+
<HiOutlineArrowRight size={sectionproperties.viewmoreiconfontsizeresp} color={sectionproperties.viewmorebtn_Textcolor} />
|
|
1056
|
+
) : (
|
|
1057
|
+
<HiOutlineArrowLeft size={sectionproperties.viewmoreiconfontsizeresp} color={sectionproperties.viewmorebtn_Textcolor} />
|
|
1058
|
+
)}
|
|
1059
|
+
</i>
|
|
1060
|
+
</span>
|
|
1061
|
+
</button>
|
|
1062
|
+
)}
|
|
1063
|
+
{sectionproperties.showFilter == 'show' &&
|
|
1064
|
+
sectionproperties.filterType != 'Title & Sort By Only' &&
|
|
1065
|
+
sectionproperties.filterdirection != 'Collections Horizontal' && (
|
|
1066
|
+
<button
|
|
1067
|
+
class={
|
|
1068
|
+
sectionproperties.filterdirection == 'Horizontal'
|
|
1069
|
+
? ' col-lg-12 col-md-12 pl-0 pr-0 d-none justify-content-end '
|
|
1070
|
+
: ' col-lg-12 col-md-12 pl-0 pr-0 d-none d-md-flex justify-content-end '
|
|
1071
|
+
}
|
|
1072
|
+
onClick={() => {
|
|
1073
|
+
setopenFilterSlider(true);
|
|
1074
|
+
// var element = document.getElementById('filterslider');
|
|
1075
|
+
// element.classList.add(filterstyles.filterslider_container_opened);
|
|
1076
|
+
}}
|
|
1077
|
+
>
|
|
1078
|
+
<div class={`${section_cssstyles.filterbtn}` + ' allcentered '}>
|
|
1079
|
+
{sectionproperties.filterbtnfontsize != 0 && (
|
|
1080
|
+
<span
|
|
1081
|
+
class="allcentered"
|
|
1082
|
+
style={{
|
|
1083
|
+
fontSize: sectionproperties.filterbtnfontsize + 'px',
|
|
1084
|
+
}}
|
|
1085
|
+
>
|
|
1086
|
+
{langdetect == 'en' ? sectionproperties.filterbtntexten : sectionproperties.filterbtntextar}
|
|
1087
|
+
</span>
|
|
1088
|
+
)}
|
|
1089
|
+
{sectionproperties.filterbtniconfontsize != 0 && (
|
|
1090
|
+
<i class="h-100 d-flex align-items-center justify-content-center">
|
|
1091
|
+
<FiFilter
|
|
1092
|
+
style={{
|
|
1093
|
+
fontSize: sectionproperties.filterbtniconfontsize,
|
|
1094
|
+
}}
|
|
1095
|
+
/>
|
|
1096
|
+
</i>
|
|
1097
|
+
)}
|
|
1098
|
+
</div>
|
|
1099
|
+
</button>
|
|
1100
|
+
)}
|
|
1101
|
+
</div>
|
|
1102
|
+
</div>
|
|
1103
|
+
{sectionproperties.showseparator == 'Show' && (
|
|
1104
|
+
<div class="col-lg-12 p-0">
|
|
1105
|
+
<hr class="mt-3 mb-2" style={{ borderColor: sectionproperties.upperseparatorbgcolor }} />
|
|
1106
|
+
</div>
|
|
1107
|
+
)}
|
|
1108
|
+
{sectionproperties.filterdirection == 'Collections Horizontal' && sectionproperties.showFilter == 'show' && (
|
|
1109
|
+
<CollectionsFilterHorizontal
|
|
1110
|
+
sectionpropertiesprops={sectionproperties}
|
|
1111
|
+
actions={actions}
|
|
1112
|
+
openFilterSlider={openFilterSlider}
|
|
1113
|
+
setopenFilterSlider={setopenFilterSlider}
|
|
1114
|
+
/>
|
|
1115
|
+
)}
|
|
1116
|
+
</div>
|
|
1117
|
+
</div>
|
|
1118
|
+
{isCardsectionloading() && (
|
|
1119
|
+
<div class="col-lg-12 allcentered" style={{ height: 100 }}>
|
|
1120
|
+
<CircularProgress color={'#eeeeee'} width="30px" height="30px" duration="1s" />
|
|
1121
|
+
</div>
|
|
1122
|
+
)}
|
|
1123
|
+
{!isCardsectionloading && cardsarray.length == 0 && (
|
|
1124
|
+
<div className="row m-0 w-100 d-flex align-items-center" style={{ height: '30vh' }}>
|
|
1125
|
+
<div className="col-lg-12 text-light d-flex align-items-center justify-content-center flex-column">
|
|
1126
|
+
<FiLayers
|
|
1127
|
+
style={{
|
|
1128
|
+
fontSize: sectionproperties.noprod_iconfontSize + 'px',
|
|
1129
|
+
color: sectionproperties.noprod_iconcolor,
|
|
1130
|
+
}}
|
|
1131
|
+
/>
|
|
1132
|
+
<p
|
|
1133
|
+
class="m-0 p-0 mt-2"
|
|
1134
|
+
style={{
|
|
1135
|
+
fontWeight: sectionproperties.noprod_fontWeight,
|
|
1136
|
+
color: sectionproperties.noprod_color,
|
|
1137
|
+
fontSize: sectionproperties.noprod_fontSize + 'px',
|
|
1138
|
+
}}
|
|
1139
|
+
>
|
|
1140
|
+
{langdetect == 'en' ? sectionproperties.nocards_content_en : sectionproperties.nocards_content_ar}
|
|
1141
|
+
</p>
|
|
1142
|
+
</div>
|
|
1143
|
+
</div>
|
|
1144
|
+
)}
|
|
1145
|
+
{cardsarray.length != 0 && (
|
|
1146
|
+
<div class="col-lg-12 p-0">
|
|
1147
|
+
{StatePagePropertiesContext.pageobj.sections[props.sectionindexprops].childsections.map((item, index) => {
|
|
1148
|
+
if (item.tabexsectioninfo != null) {
|
|
1149
|
+
if (item.sectionstructype == 'child' && TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname] != undefined) {
|
|
1150
|
+
var Sectioncomp = TabexSectionsComponentsContext[item.tabexsectioninfo.sectioncompname];
|
|
1151
|
+
return (
|
|
1152
|
+
<div className={section_cssstyles.cards_sections + ' row ml-0 mr-0 w-100 px-1025-1 pl-md-0 pr-md-0 '}>
|
|
1153
|
+
{sectionproperties.view_as_slider_vertical == 'Slider (Horizontal)' && (
|
|
1154
|
+
<div
|
|
1155
|
+
class={
|
|
1156
|
+
langdetect == 'en'
|
|
1157
|
+
? sectionproperties.paddingLeft != 0
|
|
1158
|
+
? 'col-lg-12 p-0 pl-sm-2 pl-md-2'
|
|
1159
|
+
: sectionproperties.paddingRight != 0
|
|
1160
|
+
? 'col-lg-12 p-0 pr-md-2'
|
|
1161
|
+
: 'col-lg-12 p-0 '
|
|
1162
|
+
: sectionproperties.paddingRight != 0
|
|
1163
|
+
? 'col-lg-12 p-0 pr-sm-2 pr-md-2'
|
|
1164
|
+
: sectionproperties.paddingLeft != 0
|
|
1165
|
+
? 'col-lg-12 p-0 pl-md-2'
|
|
1166
|
+
: 'col-lg-12 p-0 '
|
|
1167
|
+
}
|
|
1168
|
+
>
|
|
1169
|
+
<ScrollMenu
|
|
1170
|
+
transitionBehavior={'auto'}
|
|
1171
|
+
wrapperClassName={''}
|
|
1172
|
+
itemClassName={
|
|
1173
|
+
item.tabexsectioninfo.sectioncompname == 'Productcard6'
|
|
1174
|
+
? 'scrollmenuclassnameitemProductcard6'
|
|
1175
|
+
: item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover'
|
|
1176
|
+
? 'scrollmenuclassnameitemProductcard_with_circularhover'
|
|
1177
|
+
: item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg'
|
|
1178
|
+
? 'scrollmenuclassnameitemProductcard_with_circularbg'
|
|
1179
|
+
: item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition'
|
|
1180
|
+
? 'scrollmenuclassnameitemCategorycard_with_twolinestransition'
|
|
1181
|
+
: // : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
|
|
1182
|
+
// ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
|
|
1183
|
+
item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext'
|
|
1184
|
+
? 'scrollmenuclassnameitemCategorycard_withtext'
|
|
1185
|
+
: // : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
|
|
1186
|
+
// ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
|
|
1187
|
+
item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants'
|
|
1188
|
+
? 'scrollmenuclassnameitemProductcard_with_variants'
|
|
1189
|
+
: item.tabexsectioninfo.sectioncompname == 'Productcarddefault'
|
|
1190
|
+
? 'scrollmenuclassnameitemProductcarddefault'
|
|
1191
|
+
: // : item.tabexsectioninfo.sectioncompname == 'Simpleproductcard'
|
|
1192
|
+
// ? 'scrollmenuclassnameitemSimpleproductcard'
|
|
1193
|
+
item.tabexsectioninfo.sectioncompname == 'Categorycard_with_trianglebg'
|
|
1194
|
+
? 'scrollmenuclassnameitemCategorycard_with_trianglebg'
|
|
1195
|
+
: item.tabexsectioninfo.sectioncompname == 'Productcard_with_textonhover'
|
|
1196
|
+
? 'scrollmenuclassnameitemProductcard_with_textonhover'
|
|
1197
|
+
: item.tabexsectioninfo.sectioncompname == 'Categorycard_slidebgscaled'
|
|
1198
|
+
? 'scrollmenuclassnameitemCategorycard_slidebgscaled'
|
|
1199
|
+
: item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft'
|
|
1200
|
+
? 'scrollmenuclassnameitemProductccard_with_imageontopleft'
|
|
1201
|
+
: item.tabexsectioninfo.sectioncompname == 'Productcard_with_zoominonhover'
|
|
1202
|
+
? 'scrollmenuclassnameitemProductcard_with_zoominonhover'
|
|
1203
|
+
: item.tabexsectioninfo.sectioncompname == 'Horizontalcard'
|
|
1204
|
+
? 'scrollmenuclassnameitemProductcard_Horizontalcard'
|
|
1205
|
+
: item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage'
|
|
1206
|
+
? 'scrollmenuclassnameitemCategorycard_fullimage'
|
|
1207
|
+
: // : item.tabexsectioninfo.sectioncompname == 'Classiccategorycard'
|
|
1208
|
+
// ? 'scrollmenuclassnameitemClassiccategorycard'
|
|
1209
|
+
// item.tabexsectioninfo.sectioncompname == 'ModernProductCard'
|
|
1210
|
+
// ? 'scrollmenuclassnameitemModernProductCard'
|
|
1211
|
+
// : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow'
|
|
1212
|
+
// ? 'scrollmenuclassnameitemSimplecategorycardwithtextbelow'
|
|
1213
|
+
item.tabexsectioninfo.sectioncompname == 'Productcard7'
|
|
1214
|
+
? 'scrollmenuclassnameitemProductcard7'
|
|
1215
|
+
: item.tabexsectioninfo.sectioncompname == 'MenuCard'
|
|
1216
|
+
? 'scrollmenuclassnameitemMenuCard'
|
|
1217
|
+
: item.tabexsectioninfo.sectioncompname == 'StylishProductCard'
|
|
1218
|
+
? 'scrollmenuclassnameitemStylishProductCard'
|
|
1219
|
+
: item.tabexsectioninfo.sectioncompname == 'ProductCardWithTextOnImage'
|
|
1220
|
+
? 'scrollmenuclassnameitemProductCardWithTextOnImage'
|
|
1221
|
+
: // : item.tabexsectioninfo.sectioncompname == 'Card23'
|
|
1222
|
+
// ? 'scrollmenuclassnameitemCard23'
|
|
1223
|
+
item.tabexsectioninfo.sectioncompname == 'Card20'
|
|
1224
|
+
? 'scrollmenuclassnameitemCard20'
|
|
1225
|
+
: item.tabexsectioninfo.sectioncompname == 'ModernCardWithQuantityButton'
|
|
1226
|
+
? 'scrollmenuclassnameitemModernCardWithQuantityButton'
|
|
1227
|
+
: item.tabexsectioninfo.sectioncompname == 'CategoryCardwithhoveraction'
|
|
1228
|
+
? 'scrollmenuclassnameitemCategoryCardwithhoveraction'
|
|
1229
|
+
: item.tabexsectioninfo.sectioncompname == 'CircleCardWithVariants'
|
|
1230
|
+
? 'scrollmenuclassnameitemCircleCardWithVariants'
|
|
1231
|
+
: // : item.tabexsectioninfo.sectioncompname == 'UpSlideEffectCard'
|
|
1232
|
+
// ? 'scrollmenuclassnameitemUpSlideEffectCard'
|
|
1233
|
+
item.tabexsectioninfo.sectioncompname == 'CategoryCardTextOnImage'
|
|
1234
|
+
? 'scrollmenuclassnameitemCategoryCardTextOnImage'
|
|
1235
|
+
: ''
|
|
1236
|
+
}
|
|
1237
|
+
scrollContainerClassName={sectionproperties.showscrollbar == 'Show' ? 'scrollmenuclasssubscrollbar2' : 'scrollmenuclasssubscrollbar'}
|
|
1238
|
+
>
|
|
1239
|
+
{cardsarray.map((cardinfoitem, cardinfoindex) => {
|
|
1240
|
+
if (sectionproperties.overallnumberofcards == 0) {
|
|
1241
|
+
return (
|
|
1242
|
+
<div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
|
|
1243
|
+
<Sectioncomp
|
|
1244
|
+
sectiontypeprops={'horizontal'}
|
|
1245
|
+
fetchingtypeprops={fetchingtype}
|
|
1246
|
+
cardinfoindexprops={cardinfoindex}
|
|
1247
|
+
cardinfoitemprops={cardinfoitem}
|
|
1248
|
+
sectionindexprops={index}
|
|
1249
|
+
sectionidprops={item.sectionid}
|
|
1250
|
+
actions={actions}
|
|
1251
|
+
fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
|
|
1252
|
+
AddtoCartMutationContext={AddtoCartMutationContext}
|
|
1253
|
+
/>
|
|
1254
|
+
</div>
|
|
1255
|
+
);
|
|
1256
|
+
} else if (sectionproperties.overallnumberofcards != 0) {
|
|
1257
|
+
if (cardinfoindex < sectionproperties.overallnumberofcards) {
|
|
1258
|
+
return (
|
|
1259
|
+
<div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
|
|
1260
|
+
<Sectioncomp
|
|
1261
|
+
sectiontypeprops={'horizontal'}
|
|
1262
|
+
fetchingtypeprops={fetchingtype}
|
|
1263
|
+
cardinfoindexprops={cardinfoindex}
|
|
1264
|
+
cardinfoitemprops={cardinfoitem}
|
|
1265
|
+
sectionindexprops={index}
|
|
1266
|
+
sectionidprops={item.sectionid}
|
|
1267
|
+
actions={actions}
|
|
1268
|
+
fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
|
|
1269
|
+
AddtoCartMutationContext={AddtoCartMutationContext}
|
|
1270
|
+
/>
|
|
1271
|
+
</div>
|
|
1272
|
+
);
|
|
1273
|
+
}
|
|
1274
|
+
}
|
|
1275
|
+
})}
|
|
1276
|
+
{/* {cardsarray.map((cardinfoitem, cardinfoindex) => {
|
|
1277
|
+
return (
|
|
1278
|
+
<div className={' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 w-100'}>
|
|
1279
|
+
<Sectioncomp
|
|
1280
|
+
sectiontypeprops={'horizontal'}
|
|
1281
|
+
fetchingtypeprops={fetchingtype}
|
|
1282
|
+
cardinfoindexprops={cardinfoindex}
|
|
1283
|
+
cardinfoitemprops={cardinfoitem}
|
|
1284
|
+
sectionindexprops={index}
|
|
1285
|
+
sectionidprops={item.sectionid}
|
|
1286
|
+
actions={actions}
|
|
1287
|
+
fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
|
|
1288
|
+
/>
|
|
1289
|
+
</div>
|
|
1290
|
+
);
|
|
1291
|
+
})} */}
|
|
1292
|
+
{/* {fetchingtype == 'products' && fetchProductsQuery.isFetchingNextPage && (
|
|
1293
|
+
<button
|
|
1294
|
+
className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center mt-4 '}
|
|
1295
|
+
ref={ref}
|
|
1296
|
+
onClick={() => fetchProductsQuery.fetchNextPage()}
|
|
1297
|
+
disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
|
|
1298
|
+
>
|
|
1299
|
+
<CircularProgress color="#000" width="20px" height="20px" duration="1s" />
|
|
1300
|
+
</button>
|
|
1301
|
+
)} */}
|
|
1302
|
+
</ScrollMenu>
|
|
1303
|
+
</div>
|
|
1304
|
+
)}
|
|
1305
|
+
|
|
1306
|
+
{sectionproperties.view_as_slider_vertical != 'Slider (Horizontal)' && (
|
|
1307
|
+
<div
|
|
1308
|
+
className="row m-0 w-100 d-flex "
|
|
1309
|
+
style={{
|
|
1310
|
+
justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start',
|
|
1311
|
+
}}
|
|
1312
|
+
>
|
|
1313
|
+
{cardsarray.map((cardinfoitem, cardinfoindex) => {
|
|
1314
|
+
var bootstapclass = '';
|
|
1315
|
+
if (sectionproperties.numberOfColsvertical == '1') {
|
|
1316
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
|
|
1317
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 ';
|
|
1318
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
1319
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1320
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
1321
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1322
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
1323
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1324
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
1325
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1326
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
1327
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1328
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
1329
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1330
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
1331
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto';
|
|
1332
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
1333
|
+
bootstapclass =
|
|
1334
|
+
' col-xl-12 p-0 col-lg-12 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
1335
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
|
|
1336
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1337
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
|
|
1338
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1339
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
1340
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1341
|
+
} else {
|
|
1342
|
+
bootstapclass = ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1343
|
+
}
|
|
1344
|
+
} else if (sectionproperties.numberOfColsvertical == '2') {
|
|
1345
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
|
|
1346
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1347
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft ') {
|
|
1348
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1349
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
1350
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1351
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
1352
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1353
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
1354
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1355
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
1356
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1357
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
1358
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1359
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
1360
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
|
|
1361
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
1362
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1363
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
|
|
1364
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0';
|
|
1365
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
|
|
1366
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0';
|
|
1367
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
1368
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1369
|
+
} else {
|
|
1370
|
+
bootstapclass = ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0';
|
|
1371
|
+
}
|
|
1372
|
+
} else if (sectionproperties.numberOfColsvertical == '3') {
|
|
1373
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
|
|
1374
|
+
bootstapclass = ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center ';
|
|
1375
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
1376
|
+
bootstapclass = ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1377
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
1378
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1379
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
1380
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1381
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
1382
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1383
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
1384
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1385
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
1386
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1387
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
1388
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
|
|
1389
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
1390
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1391
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
|
|
1392
|
+
bootstapclass = ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1393
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
|
|
1394
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0';
|
|
1395
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
1396
|
+
bootstapclass = ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1397
|
+
} else {
|
|
1398
|
+
bootstapclass =
|
|
1399
|
+
' col-xl-4 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
1400
|
+
}
|
|
1401
|
+
} else if (sectionproperties.numberOfColsvertical == '4') {
|
|
1402
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
|
|
1403
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1404
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
1405
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1406
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ModernProductCard') {
|
|
1407
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1408
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
1409
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1410
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
1411
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1412
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
1413
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1414
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
1415
|
+
(' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ');
|
|
1416
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
1417
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
|
|
1418
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
1419
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1420
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
|
|
1421
|
+
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 ';
|
|
1422
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
|
|
1423
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0';
|
|
1424
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
1425
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1426
|
+
} else {
|
|
1427
|
+
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 ';
|
|
1428
|
+
}
|
|
1429
|
+
} else if (sectionproperties.numberOfColsvertical == '12') {
|
|
1430
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
|
|
1431
|
+
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1432
|
+
}
|
|
1433
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
1434
|
+
bootstapclass = ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1435
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
1436
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1437
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
1438
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1439
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
1440
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1441
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
1442
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1443
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
1444
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
|
|
1445
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
1446
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1447
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
|
|
1448
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1449
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
|
|
1450
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0';
|
|
1451
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
1452
|
+
bootstapclass = ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1453
|
+
} else {
|
|
1454
|
+
}
|
|
1455
|
+
} else if (sectionproperties.numberOfColsvertical == '6') {
|
|
1456
|
+
if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover') {
|
|
1457
|
+
bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1458
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft') {
|
|
1459
|
+
bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1460
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'MenuCard') {
|
|
1461
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1462
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'ServiceCard') {
|
|
1463
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1464
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'StylishProductCard') {
|
|
1465
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1466
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg') {
|
|
1467
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1468
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Card20') {
|
|
1469
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ';
|
|
1470
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow') {
|
|
1471
|
+
bootstapclass =
|
|
1472
|
+
' col-xl-2 p-0 col-lg-3 col-md-4 d-flex justify-content-center p-0 col-sm-' + sectionproperties.numberOfColsverticalresp;
|
|
1473
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition') {
|
|
1474
|
+
bootstapclass = ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1475
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard') {
|
|
1476
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0';
|
|
1477
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly') {
|
|
1478
|
+
bootstapclass = ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ';
|
|
1479
|
+
} else if (item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage') {
|
|
1480
|
+
bootstapclass = ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 ';
|
|
1481
|
+
} else {
|
|
1482
|
+
bootstapclass =
|
|
1483
|
+
' col-xl-2 col-lg-4 col-md-6 d-flex justify-content-center p-0 col-sm-' + +sectionproperties.numberOfColsverticalresp;
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
if (sectionproperties.overallnumberofcards == 0) {
|
|
1487
|
+
return (
|
|
1488
|
+
<div class={bootstapclass}>
|
|
1489
|
+
<Sectioncomp
|
|
1490
|
+
sectiontypeprops={'horizontal'}
|
|
1491
|
+
sectiontypeprops2={'vertical'}
|
|
1492
|
+
fetchingtypeprops={fetchingtype}
|
|
1493
|
+
cardinfoindexprops={cardinfoindex}
|
|
1494
|
+
cardinfoitemprops={cardinfoitem}
|
|
1495
|
+
sectionindexprops={index}
|
|
1496
|
+
sectionidprops={item.sectionid}
|
|
1497
|
+
actions={actions}
|
|
1498
|
+
fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
|
|
1499
|
+
numberOfColsvertical={sectionproperties.numberOfColsvertical}
|
|
1500
|
+
AddtoCartMutationContext={AddtoCartMutationContext}
|
|
1501
|
+
/>
|
|
1502
|
+
</div>
|
|
1503
|
+
);
|
|
1504
|
+
} else if (sectionproperties.overallnumberofcards != 0) {
|
|
1505
|
+
if (cardinfoindex < sectionproperties.overallnumberofcards) {
|
|
1506
|
+
return (
|
|
1507
|
+
<div class={bootstapclass}>
|
|
1508
|
+
<Sectioncomp
|
|
1509
|
+
sectiontypeprops={'horizontal'}
|
|
1510
|
+
sectiontypeprops2={'vertical'}
|
|
1511
|
+
fetchingtypeprops={fetchingtype}
|
|
1512
|
+
cardinfoindexprops={cardinfoindex}
|
|
1513
|
+
cardinfoitemprops={cardinfoitem}
|
|
1514
|
+
sectionindexprops={index}
|
|
1515
|
+
sectionidprops={item.sectionid}
|
|
1516
|
+
actions={actions}
|
|
1517
|
+
fontFamilyprops={sectionproperties.sectiontitlefontfamily == 'ASUL' ? 'ASUL' : ''}
|
|
1518
|
+
numberOfColsvertical={sectionproperties.numberOfColsvertical}
|
|
1519
|
+
AddtoCartMutationContext={AddtoCartMutationContext}
|
|
1520
|
+
/>
|
|
1521
|
+
</div>
|
|
1522
|
+
);
|
|
1523
|
+
}
|
|
1524
|
+
}
|
|
1525
|
+
})}
|
|
1526
|
+
{fetchingtype == 'products' && sectionproperties.showpagination == 'Show' && (
|
|
1527
|
+
<div className="w-100 col-lg-12 allcentered mt-2">
|
|
1528
|
+
{/* <button
|
|
1529
|
+
className={section_cssstyles.loadbtn + ' d-flex justify-content-end align-items-center '}
|
|
1530
|
+
// ref={ref}
|
|
1531
|
+
onClick={() => fetchProductsQuery.fetchNextPage()}
|
|
1532
|
+
disabled={!fetchProductsQuery.hasNextPage || fetchProductsQuery.isFetchingNextPage}
|
|
1533
|
+
>
|
|
1534
|
+
{fetchProductsQuery.isFetchingNextPage ? (
|
|
1535
|
+
<CircularProgress color="#000" width="20px" height="20px" duration="1s" />
|
|
1536
|
+
) : fetchProductsQuery.hasNextPage ? (
|
|
1537
|
+
langdetect == 'en' ? (
|
|
1538
|
+
'Load more'
|
|
1539
|
+
) : (
|
|
1540
|
+
'المزيد'
|
|
1541
|
+
)
|
|
1542
|
+
) : (
|
|
1543
|
+
<CircularProgress color="#000" width="20px" height="20px" duration="1s" />
|
|
1544
|
+
)}
|
|
1545
|
+
</button> */}
|
|
1546
|
+
<PaginatedItems itemsPerPage={5} />
|
|
1547
|
+
</div>
|
|
1548
|
+
)}
|
|
1549
|
+
</div>
|
|
1550
|
+
)}
|
|
1551
|
+
</div>
|
|
1552
|
+
);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
})}
|
|
1556
|
+
</div>
|
|
1557
|
+
)}
|
|
1558
|
+
</div>
|
|
1559
|
+
)}
|
|
1560
|
+
</div>
|
|
1561
|
+
);
|
|
1562
|
+
};
|
|
1563
|
+
return (
|
|
1564
|
+
<div
|
|
1565
|
+
ref={refscr}
|
|
1566
|
+
class={section_cssstyles.sectioncontainerr + ' row ml-0 mr-0 d-flex justify-content-center ml-auto mr-auto w-md-100 w-sm-100 '}
|
|
1567
|
+
style={{
|
|
1568
|
+
zIndex: 2,
|
|
1569
|
+
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
1570
|
+
backgroundImage: maincontainerarrayofobjs.length != 0 ? 'url(' + image_serverbaselink + maincontainerarrayofobjs[0].back_bgimage + ')' : '',
|
|
1571
|
+
backgroundSize: 'cover',
|
|
1572
|
+
width: sectionproperties.width + 'vw',
|
|
1573
|
+
boxShadow: sectionproperties.sectioncardshadow == 'Show' ? '0 0 10px ' + sectionproperties.sectioncardshadowcolor : 'none',
|
|
1574
|
+
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.borderBottomLeftRadius + 'px' : sectionproperties.borderBottomRightRadius + 'px',
|
|
1575
|
+
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.borderBottomRightRadius + 'px' : sectionproperties.borderBottomLeftRadius + 'px',
|
|
1576
|
+
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.borderTopLeftRadius + 'px' : sectionproperties.borderTopRightRadius + 'px',
|
|
1577
|
+
borderTopRightRadius: langdetect == 'en' ? sectionproperties.borderTopRightRadius + 'px' : sectionproperties.borderTopLeftRadius + 'px',
|
|
1578
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
1579
|
+
minHeight: sectionproperties.height == null || sectionproperties.height == 0 ? 'auto' : sectionproperties.height + 'vh',
|
|
1580
|
+
}}
|
|
1581
|
+
>
|
|
1582
|
+
{sectionproperties.length != 0 && (
|
|
1583
|
+
<div class={section_cssstyles.innercardssection + ' row ml-0 mr-0 d-flex justify-content-center w-md-100 h-md-100 w-100 '}>
|
|
1584
|
+
{sectionproperties.showFilter == 'show' && (
|
|
1585
|
+
<div className={sectionproperties.filterdirection == 'Horizontal' ? 'col-lg-12 d-flex p-0' : sectionproperties.numofcols == '2' ? 'col-lg-2 d-flex' : 'col-lg-3 d-flex'}>
|
|
1586
|
+
<Filter sectionpropertiesprops={sectionproperties} actions={actions} openFilterSlider={openFilterSlider} setopenFilterSlider={setopenFilterSlider} />
|
|
1587
|
+
</div>
|
|
1588
|
+
)}
|
|
1589
|
+
{fetchingtype == 'custom' && <>{cardsrender()}</>}
|
|
1590
|
+
{fetchingtype != 'custom' && cardsrender()}
|
|
1591
|
+
</div>
|
|
1592
|
+
)}
|
|
1593
|
+
</div>
|
|
1594
|
+
);
|
|
1595
|
+
};
|
|
1596
|
+
export default CardsSection;
|