tabexseriescomponents 0.0.217 → 0.0.220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1044 -780
- package/dist/index.esm.js +1044 -780
- package/dist/index.umd.js +1042 -778
- package/library.zip +0 -0
- package/package.json +2 -1
- package/srcold/Contexts/LanguageContext.jsx +390 -0
- package/srcold/Contexts/ProductsCardsSectionContext.jsx +34 -0
- package/srcold/StylesJS/Customstyles.js +236 -0
- package/srcold/TabexComponents/Cards/Card20/Card20.jsx +282 -0
- package/srcold/TabexComponents/Cards/Card21/Card21.jsx +388 -0
- package/srcold/TabexComponents/Cards/Card22/Card22.jsx +287 -0
- package/srcold/TabexComponents/Cards/Card23/Card23.jsx +403 -0
- package/srcold/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +395 -0
- package/srcold/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +70 -0
- package/srcold/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +211 -0
- package/srcold/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +220 -0
- package/srcold/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +230 -0
- package/srcold/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +198 -0
- package/srcold/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +170 -0
- package/srcold/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +181 -0
- package/srcold/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +161 -0
- package/srcold/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +180 -0
- package/srcold/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +487 -0
- package/srcold/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +123 -0
- package/srcold/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +192 -0
- package/srcold/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +270 -0
- package/srcold/TabexComponents/Cards/MenuCard/MenuCard.jsx +543 -0
- package/srcold/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +467 -0
- package/srcold/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +469 -0
- package/srcold/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +445 -0
- package/srcold/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +304 -0
- package/srcold/TabexComponents/Cards/Productcard6/Productcard6.jsx +256 -0
- package/srcold/TabexComponents/Cards/Productcard7/Productcard7.jsx +278 -0
- package/srcold/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +443 -0
- package/srcold/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +275 -0
- package/srcold/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +315 -0
- package/srcold/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +301 -0
- package/srcold/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +419 -0
- package/srcold/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +524 -0
- package/srcold/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +275 -0
- package/srcold/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +286 -0
- package/srcold/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +136 -0
- package/srcold/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +179 -0
- package/srcold/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +291 -0
- package/srcold/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +339 -0
- package/srcold/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +338 -0
- package/srcold/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +515 -0
- package/srcold/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +184 -0
- package/srcold/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +475 -0
- package/srcold/TabexComponents/Footer/Footer1/Footer1.jsx +448 -0
- package/srcold/TabexComponents/Footer/Footer2/Footer2.jsx +383 -0
- package/srcold/TabexComponents/Footer/Footer3/Footer3.jsx +394 -0
- package/srcold/TabexComponents/Footer/Footer4/Footer4.jsx +699 -0
- package/srcold/TabexComponents/Footer/Footer5/Footer5.jsx +523 -0
- package/srcold/TabexComponents/Footer/Footer6/Footer6.jsx +301 -0
- package/srcold/TabexComponents/Footer/Footer7/Footer7.jsx +415 -0
- package/srcold/TabexComponents/Footer/Footer8/Footer8.jsx +454 -0
- package/srcold/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +329 -0
- package/srcold/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +274 -0
- package/srcold/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcold/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcold/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +880 -0
- package/srcold/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +870 -0
- package/srcold/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +688 -0
- package/srcold/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +720 -0
- package/srcold/TabexComponents/Headers/Header4/Header4.jsx +621 -0
- package/srcold/TabexComponents/Headers/Header8/Header8.jsx +824 -0
- package/srcold/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +730 -0
- package/srcold/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +762 -0
- package/srcold/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +706 -0
- package/srcold/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +900 -0
- package/srcold/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +841 -0
- package/srcold/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +988 -0
- package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveNew.jsx +1081 -0
- package/srcold/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +988 -0
- package/srcold/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +917 -0
- package/srcold/TabexComponents/Headers/Modernheader/Modernheader.jsx +693 -0
- package/srcold/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +952 -0
- package/srcold/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +636 -0
- package/srcold/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +853 -0
- package/srcold/TabexComponents/Headers/Subheader/Subheader copy.jsx +373 -0
- package/srcold/TabexComponents/Headers/Subheader/Subheader.jsx +515 -0
- package/srcold/TabexComponents/Headers/Subheader/SubheaderDropdown.jsx +190 -0
- package/srcold/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +483 -0
- package/srcold/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +1005 -0
- package/srcold/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +1020 -0
- package/srcold/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader .jsx +843 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +448 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +346 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +304 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +301 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +312 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +271 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +174 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +200 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +263 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +143 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +248 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +295 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +394 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +406 -0
- package/srcold/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +246 -0
- package/srcold/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +1220 -0
- package/srcold/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +480 -0
- package/srcold/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +718 -0
- package/srcold/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +406 -0
- package/srcold/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +652 -0
- package/srcold/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +635 -0
- package/srcold/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +495 -0
- package/srcold/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +383 -0
- package/srcold/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +250 -0
- package/srcold/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +160 -0
- package/srcold/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +256 -0
- package/srcold/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +329 -0
- package/srcold/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +266 -0
- package/srcold/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +371 -0
- package/srcold/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +140 -0
- package/srcold/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +374 -0
- package/srcold/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +339 -0
- package/srcold/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +303 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +224 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +147 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +139 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +634 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +324 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +525 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +569 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +475 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.js +91 -0
- package/srcold/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +369 -0
- package/srcold/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +392 -0
- package/srcold/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +213 -0
- package/srcold/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +467 -0
- package/srcold/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +181 -0
- package/srcold/TabexComponents/StaticPages/Checkout/Checkout.jsx +1280 -0
- package/srcold/TabexComponents/StaticPages/Filter/Filter copy.jsx +1392 -0
- package/srcold/TabexComponents/StaticPages/Filter/Filter.jsx +1399 -0
- package/srcold/TabexComponents/StaticPages/Filter/FilterOriginal.jsx +1132 -0
- package/srcold/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +60 -0
- package/srcold/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +50 -0
- package/srcold/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +35 -0
- package/srcold/TabexComponents/StaticPages/Login/Login.jsx +469 -0
- package/srcold/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +143 -0
- package/srcold/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +1329 -0
- package/srcold/TabexComponents/StaticPages/Policies/Policies.jsx +306 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +1334 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +715 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype copy.jsx +361 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +361 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +501 -0
- package/srcold/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +145 -0
- package/srcold/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +227 -0
- package/srcold/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +832 -0
- package/srcold/TabexComponents/StaticPages/Signup/Signup.jsx +154 -0
- package/srcold/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +280 -0
- package/srcold/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +671 -0
- package/srcold/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +538 -0
- package/srcold/assets/images/appstore.png +0 -0
- package/srcold/assets/images/cod.png +0 -0
- package/srcold/assets/images/egyptflag.png +0 -0
- package/srcold/assets/images/fawry.png +0 -0
- package/srcold/assets/images/googleplay.png +0 -0
- package/srcold/assets/images/ksa.png +0 -0
- package/srcold/assets/images/mastercard.png +0 -0
- package/srcold/assets/images/payment.png +0 -0
- package/srcold/assets/images/paymob.png +0 -0
- package/srcold/assets/images/paypal.png +0 -0
- package/srcold/assets/images/shoppingcart.png +0 -0
- package/srcold/assets/images/usflag.png +0 -0
- package/srcold/assets/images/visa.png +0 -0
- package/srcold/assets/images/whatsapp.png +0 -0
- package/srcold/button.jsx +40 -0
- package/srcold/index.jsx +283 -0
- package/srcold/styles/Home.module.css +129 -0
- package/srcold/styles/cards/Categorcycard_fullimage.module.css +10 -0
- package/srcold/styles/cards/Categorycard_slidebgscaled.module.css +73 -0
- package/srcold/styles/cards/Categorycard_withshapes.module.css +189 -0
- package/srcold/styles/cards/ModernCardWithQuantityButton.module.css +30 -0
- package/srcold/styles/cards/Productcard6.module.css +9 -0
- package/srcold/styles/cards/Productccard_with_zoominonhover.module.css +51 -0
- package/srcold/styles/cards/Prouductcard_with_zoomhover.module.css +61 -0
- package/srcold/styles/cards/UserCardWithSocialMediaOnHover.module.css +65 -0
- package/srcold/styles/cards/categorycard.module.css +85 -0
- package/srcold/styles/cards/categorycard3.module.css +50 -0
- package/srcold/styles/cards/categorycardwithtext.module.css +40 -0
- package/srcold/styles/cards/productcard_animatedbuttons.module.css +130 -0
- package/srcold/styles/cards/productcard_with_textonhover.module.css +18 -0
- package/srcold/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcold/styles/cards/productccard_with_imageontopleft.module.css +85 -0
- package/srcold/styles/general/bootstrap.css +4727 -0
- package/srcold/styles/general/dropdown.css +206 -0
- package/srcold/styles/general/editorbardropdown.module.css +94 -0
- package/srcold/styles/general/filter.module.css +108 -0
- package/srcold/styles/general/form.module.css +273 -0
- package/srcold/styles/general/general.module.css +872 -0
- package/srcold/styles/general/image-gallery.css +531 -0
- package/srcold/styles/general/react-accessible-accordion.module.css +52 -0
- package/srcold/styles/general/react-phone-input-2.module.css +927 -0
- package/srcold/styles/general/scrollbtn.module.css +22 -0
- package/srcold/styles/general/slick.module.css +166 -0
- package/srcold/styles/general/tabs.module.css +119 -0
- package/srcold/styles/general/workplaceeditor.module.css +328 -0
- package/srcold/styles/globals.css +26 -0
- package/srcold/styles/headers/CTAHeader.module.css +40 -0
- package/srcold/styles/headers/CategoryFeaturingHeader.module.css +61 -0
- package/srcold/styles/headers/Gotoheader.module.css +81 -0
- package/srcold/styles/headers/Header7.module.css +50 -0
- package/srcold/styles/headers/HeaderWithAdSlider.module.css +86 -0
- package/srcold/styles/headers/HeaderWithSearchOnCenter.module.css +101 -0
- package/srcold/styles/headers/HeaderWithUtilityBar.module.css +46 -0
- package/srcold/styles/headers/Header_threesectionslogocentered.module.css +84 -0
- package/srcold/styles/headers/NewHeader.module.css +101 -0
- package/srcold/styles/headers/SearchFocusedHeader.module.css +62 -0
- package/srcold/styles/headers/Sideheader.module.css +108 -0
- package/srcold/styles/headers/Simpleheader.module.css +102 -0
- package/srcold/styles/headers/classicheader.module.css +16 -0
- package/srcold/styles/headers/classicheaderstyles.module.css +9 -0
- package/srcold/styles/headers/dropdown.css +0 -0
- package/srcold/styles/headers/header4.module.css +175 -0
- package/srcold/styles/headers/header5.module.css +30 -0
- package/srcold/styles/headers/header_contactinfo.module.css +53 -0
- package/srcold/styles/headers/headerresturant.module.css +89 -0
- package/srcold/styles/headers/modernheader.module.css +72 -0
- package/srcold/styles/headers/stylishheader.module.css +24 -0
- package/srcold/styles/headers/subheader.module.css +114 -0
- package/srcold/styles/headers/threetieredheader.module.css +91 -0
- package/srcold/styles/sections/BackgroundImageWithTopContent.css +4 -0
- package/srcold/styles/sections/Backgroundimage1.module.css +17 -0
- package/srcold/styles/sections/Backgroundimage_with_topcircle.module.css +28 -0
- package/srcold/styles/sections/Section_with_rightbgcont.module.css +49 -0
- package/srcold/styles/sections/Slideshow_with_rotatedsquare.module.css +35 -0
- package/srcold/styles/sections/Slideshow_with_squarebg.module.css +39 -0
- package/srcold/styles/staticpages/accordion.module.css +9 -0
- package/srcold/styles/staticpages/cart.module.css +108 -0
- package/srcold/styles/staticpages/dropdown.css +196 -0
- package/srcold/styles/staticpages/filter.module.css +139 -0
- package/srcold/styles/staticpages/image-gallery.css +481 -0
- package/srcold/styles/staticpages/login.module.css +113 -0
- package/srcold/styles/staticpages/productinfo.module.css +54 -0
- package/srcold/styles/staticpages/shop.module.css +191 -0
- package/srcold/styles/staticpages/signup.module.css +206 -0
- package/srcold/styles/staticpages/staticroutersidenav.module.css +129 -0
- package/srcold/styles/staticpages/viewcart.module.css +129 -0
- package/srcold/styles/staticpages/wishlist.module.css +29 -0
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
+
import { css } from 'glamor';
|
|
3
|
+
import { AiOutlineClockCircle } from '@react-icons/all-files/ai/AiOutlineClockCircle';
|
|
4
|
+
import staticroutersidenav from './staticroutersidenav.module.css';
|
|
5
|
+
import { AiOutlinePlus } from '@react-icons/all-files/ai/AiOutlinePlus';
|
|
6
|
+
import { AiOutlineCheck } from '@react-icons/all-files/ai/AiOutlineCheck';
|
|
7
|
+
import { CircularProgress, Messaging } from 'react-cssfx-loading';
|
|
8
|
+
import { CgShoppingBag } from '@react-icons/all-files/cg/CgShoppingBag';
|
|
9
|
+
import { FiShoppingBag } from '@react-icons/all-files/fi/FiShoppingBag';
|
|
10
|
+
import { FiShoppingCart } from '@react-icons/all-files/fi/FiShoppingCart';
|
|
11
|
+
import { MdAddShoppingCart } from '@react-icons/all-files/md/MdAddShoppingCart';
|
|
12
|
+
import { BsBag } from '@react-icons/all-files/bs/BsBag';
|
|
13
|
+
import { IoBagHandleOutline } from '@react-icons/all-files/io5/IoBagHandleOutline';
|
|
14
|
+
|
|
15
|
+
const Serviceinfotabs = (props) => {
|
|
16
|
+
const langdetect = props.actions.langdetect;
|
|
17
|
+
const lang = props.actions.lang;
|
|
18
|
+
const sectionproperties = props.actions.sectionproperties;
|
|
19
|
+
const fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
20
|
+
const productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
21
|
+
const AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
|
|
22
|
+
const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
23
|
+
const addtocardpayloadobj = props.actions.addtocardpayloadobj;
|
|
24
|
+
const setaddtocardpayloadobj = props.actions.setaddtocardpayloadobj;
|
|
25
|
+
const addtocartfunc = props.actions.addtocartfunc;
|
|
26
|
+
const NotificationManager = props.actions.NotificationManager;
|
|
27
|
+
|
|
28
|
+
const [tabsarray, settabsarray] = useState([
|
|
29
|
+
{
|
|
30
|
+
tabname: 'Description',
|
|
31
|
+
tabname_ar: 'التفاصيل',
|
|
32
|
+
ischecked: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
tabname: 'Reservation',
|
|
36
|
+
tabname_ar: 'الحجز',
|
|
37
|
+
ischecked: false,
|
|
38
|
+
},
|
|
39
|
+
]);
|
|
40
|
+
const [currentmutatestate, setcurrentmutatestate] = useState('');
|
|
41
|
+
const [slots, setslots] = useState([]);
|
|
42
|
+
|
|
43
|
+
const TabsStyles = {
|
|
44
|
+
sidebar_item: css({
|
|
45
|
+
background: sectionproperties.tabcontainerbgcolor,
|
|
46
|
+
borderRadius: sectionproperties.tabcontainerborderradius + 'px',
|
|
47
|
+
fontSize: sectionproperties.tabtextfontsize + 'px',
|
|
48
|
+
fontWeight: sectionproperties.tabtextfontweight,
|
|
49
|
+
textTransform: sectionproperties.tabtexttexttransform,
|
|
50
|
+
color: sectionproperties.tabtextcolor,
|
|
51
|
+
':hover': {
|
|
52
|
+
color: sectionproperties.tabtextactivecolor,
|
|
53
|
+
background: sectionproperties.activetabbgcolor,
|
|
54
|
+
},
|
|
55
|
+
}),
|
|
56
|
+
sidenav_active: css({
|
|
57
|
+
color: sectionproperties.tabtextactivecolor,
|
|
58
|
+
background: sectionproperties.activetabbgcolor,
|
|
59
|
+
}),
|
|
60
|
+
sidenavtext_active: css({
|
|
61
|
+
fontSize: sectionproperties.tabtextfontsize + 'px',
|
|
62
|
+
color: sectionproperties.tabtextactivecolor,
|
|
63
|
+
background: sectionproperties.activetabbgcolor,
|
|
64
|
+
}),
|
|
65
|
+
booknow_btn: css({
|
|
66
|
+
width: sectionproperties.generalbtn_width + 'px',
|
|
67
|
+
height: sectionproperties.generalbtn_height + 'px',
|
|
68
|
+
background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
69
|
+
borderRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
70
|
+
color: sectionproperties.generalbtn_textColor,
|
|
71
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
72
|
+
textTransform: sectionproperties.generalbtn_texttransform,
|
|
73
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
74
|
+
transition: '.3s',
|
|
75
|
+
':hover': {
|
|
76
|
+
background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
77
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
78
|
+
// opacity: sectionproperties.favbtn_opacityonhover,
|
|
79
|
+
},
|
|
80
|
+
}),
|
|
81
|
+
booknow_btn_resp: css({
|
|
82
|
+
width: '30px',
|
|
83
|
+
height: '30px',
|
|
84
|
+
background: sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColor,
|
|
85
|
+
borderRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
86
|
+
color: sectionproperties.generalbtn_textColor,
|
|
87
|
+
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
88
|
+
textTransform: sectionproperties.generalbtn_texttransform,
|
|
89
|
+
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
90
|
+
transition: '.3s',
|
|
91
|
+
':hover': {
|
|
92
|
+
background: sectionproperties.generalbtn_bgColortransparentonhover == 'Transparent' ? 'transparent' : sectionproperties.generalbtn_bgColoronhover,
|
|
93
|
+
color: sectionproperties.generalbtn_textColoronhover,
|
|
94
|
+
// opacity: sectionproperties.favbtn_opacityonhover,
|
|
95
|
+
},
|
|
96
|
+
}),
|
|
97
|
+
booknow_btn_disabled: css({
|
|
98
|
+
opacity: 0.3,
|
|
99
|
+
}),
|
|
100
|
+
timeLabel: css({
|
|
101
|
+
color: sectionproperties.time_laelColor,
|
|
102
|
+
fontWeight: sectionproperties.time_labelFonweight,
|
|
103
|
+
fontSize: sectionproperties.time_labelFontsize + 'px',
|
|
104
|
+
}),
|
|
105
|
+
time: css({
|
|
106
|
+
color: sectionproperties.time_timeColor,
|
|
107
|
+
fontWeight: sectionproperties.time_timeFontweight,
|
|
108
|
+
fontSize: sectionproperties.time_timeFontsize + 'px',
|
|
109
|
+
}),
|
|
110
|
+
inputfield_label: css({
|
|
111
|
+
color: sectionproperties.form_labelcolor,
|
|
112
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
113
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
114
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
115
|
+
}),
|
|
116
|
+
inputfield: css({
|
|
117
|
+
height: '40px',
|
|
118
|
+
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
119
|
+
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
120
|
+
color: sectionproperties.inputfieldcolor,
|
|
121
|
+
backgroundColor: sectionproperties.input_bgcolor,
|
|
122
|
+
border: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
|
|
123
|
+
}),
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
useEffect(() => {
|
|
127
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, item_type: 'service' });
|
|
128
|
+
}, [tabsarray]);
|
|
129
|
+
useEffect(() => {
|
|
130
|
+
const date1 = new Date(addtocardpayloadobj.from);
|
|
131
|
+
const date2 = new Date(addtocardpayloadobj.to);
|
|
132
|
+
const diffTime = Math.abs(date2 - date1);
|
|
133
|
+
const diffDays = Math.ceil(diffTime / (1000 * 60 * 60 * 24));
|
|
134
|
+
|
|
135
|
+
if (diffDays.toString() != 'NaN') {
|
|
136
|
+
if (date2 <= date1) {
|
|
137
|
+
NotificationManager.warning('', 'Please choose another date.');
|
|
138
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, quantity: 0 });
|
|
139
|
+
} else {
|
|
140
|
+
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
141
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, quantity: diffDays });
|
|
142
|
+
} else {
|
|
143
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, quantity: 0 });
|
|
144
|
+
NotificationManager.warning(
|
|
145
|
+
'',
|
|
146
|
+
'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant,
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}, [addtocardpayloadobj.from, addtocardpayloadobj.to]);
|
|
152
|
+
const showaddtocartbuttonbutton = () => {
|
|
153
|
+
var showbutton = false;
|
|
154
|
+
if (fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.scheduletype == 'days') {
|
|
155
|
+
if (addtocardpayloadobj.from.length != 0 && addtocardpayloadobj.to.length != 0 && addtocardpayloadobj.quantity != 0) {
|
|
156
|
+
showbutton = true;
|
|
157
|
+
}
|
|
158
|
+
} else if (fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.scheduletype == 'minutes') {
|
|
159
|
+
if (addtocardpayloadobj.date.length != 0 && addtocardpayloadobj.time.length != 0) {
|
|
160
|
+
showbutton = true;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return showbutton;
|
|
164
|
+
};
|
|
165
|
+
const [showMore, setShowMore] = useState(false);
|
|
166
|
+
|
|
167
|
+
return (
|
|
168
|
+
<div className="col-lg-12 p-0 mt-3">
|
|
169
|
+
<div class="row ml-0 mr-0 w-100">
|
|
170
|
+
<div class={staticroutersidenav.horizontal_nav_menu + ' col-lg-12 d-flex justify-content-start p-0 '}>
|
|
171
|
+
<div class={langdetect == 'en' ? ' row m-0 w-100 justify-content-start pr-3 pr-md-0 ml-4 ml-md-0 ' : ' row m-0 w-100 justify-content-start pl-3 pl-md-0 mr-4 mr-md-0 '}>
|
|
172
|
+
{tabsarray.map((item, index) => {
|
|
173
|
+
var activeclass = '';
|
|
174
|
+
if (item.ischecked) {
|
|
175
|
+
activeclass = TabsStyles.sidenav_active;
|
|
176
|
+
}
|
|
177
|
+
return (
|
|
178
|
+
<div
|
|
179
|
+
onClick={() => {
|
|
180
|
+
var temparray = [...tabsarray];
|
|
181
|
+
temparray[0].ischecked = false;
|
|
182
|
+
temparray[1].ischecked = false;
|
|
183
|
+
|
|
184
|
+
temparray[index].ischecked = true;
|
|
185
|
+
settabsarray([...temparray]);
|
|
186
|
+
}}
|
|
187
|
+
class={`${staticroutersidenav.sidebar_item} ${TabsStyles.sidebar_item} ${activeclass} ` + ' allcentered cursor-pointer '}
|
|
188
|
+
style={{ height: '45px' }}
|
|
189
|
+
>
|
|
190
|
+
<p class={' p-0 allcentered mt-auto mb-auto text-uppercase wordbreak-noellipsis '}>{langdetect == 'en' ? item.tabname : item.tabname_ar}</p>
|
|
191
|
+
</div>
|
|
192
|
+
);
|
|
193
|
+
})}
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
<div class="col-lg-12 p-0">
|
|
197
|
+
<hr class={langdetect == 'en' ? 'p-0 m-0 ml-4 ml-md-0' : 'p-0 m-0 mr-4 mr-md-0'} />
|
|
198
|
+
</div>
|
|
199
|
+
{tabsarray[0].ischecked && (
|
|
200
|
+
<div class="col-lg-12 p-4">
|
|
201
|
+
{langdetect == 'en' &&
|
|
202
|
+
fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en != '' &&
|
|
203
|
+
fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en != null && (
|
|
204
|
+
<div
|
|
205
|
+
class={langdetect === 'en' ? 'col-lg-12 p-0 pl-4 pl-md-0 mb-5 d-flex justify-content-center' : 'col-lg-12 p-0 pr-4 pr-0 mb-5 d-flex justify-content-center'}
|
|
206
|
+
style={{ minHeight: '15vh' }}
|
|
207
|
+
>
|
|
208
|
+
<div class="row m-0 w-100 d-flex flex-column">
|
|
209
|
+
<p
|
|
210
|
+
class={'text-black text-capitalize m-0 p-0 wordbreak'}
|
|
211
|
+
style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
|
|
212
|
+
dangerouslySetInnerHTML={{
|
|
213
|
+
__html:
|
|
214
|
+
showMore == true
|
|
215
|
+
? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en
|
|
216
|
+
: fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en.slice(0, 1000),
|
|
217
|
+
}}
|
|
218
|
+
></p>
|
|
219
|
+
{fetchProductInfoQueryContext?.data?.data?.productinfo?.description_en.length > 1000 && (
|
|
220
|
+
<p class="m-0 p-0 cursor-pointer text-grey font-weight-600 ml-2 mr-2" onClick={() => setShowMore(!showMore)}>
|
|
221
|
+
{showMore ? lang.showless : lang.showmore}
|
|
222
|
+
</p>
|
|
223
|
+
)}
|
|
224
|
+
</div>
|
|
225
|
+
</div>
|
|
226
|
+
)}
|
|
227
|
+
{langdetect == 'ar' &&
|
|
228
|
+
fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar != '' &&
|
|
229
|
+
fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar != null && (
|
|
230
|
+
<div class="col-lg-12 p-0 mb-5 d-flex justify-content-center" style={{ minHeight: '15vh' }}>
|
|
231
|
+
<div class="row m-0 w-100 d-flex flex-column">
|
|
232
|
+
<div class="col-lg-12 p-0 d-flex justify-content-start flex-column">
|
|
233
|
+
<p
|
|
234
|
+
class={'text-black text-capitalize m-0 p-0 wordbreak'}
|
|
235
|
+
style={{ textAlign: langdetect == 'en' ? 'left' : 'right' }}
|
|
236
|
+
dangerouslySetInnerHTML={{
|
|
237
|
+
__html:
|
|
238
|
+
showMore == true
|
|
239
|
+
? fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar
|
|
240
|
+
: fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar.slice(0, 1000) + '...',
|
|
241
|
+
}}
|
|
242
|
+
></p>
|
|
243
|
+
{fetchProductInfoQueryContext?.data?.data?.productinfo?.description_ar.length > 1000 && (
|
|
244
|
+
<p class="m-0 p-0 cursor-pointer text-grey font-weight-600" onClick={() => setShowMore(!showMore)}>
|
|
245
|
+
{showMore ? lang.showless : lang.showmore}
|
|
246
|
+
</p>
|
|
247
|
+
)}
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
)}
|
|
252
|
+
</div>
|
|
253
|
+
)}
|
|
254
|
+
{tabsarray[1].ischecked && (
|
|
255
|
+
<div class="col-lg-12 pl-5 pr-5 pt-3 pb-0 pl-sm-3 pr-sm-3">
|
|
256
|
+
<div class="row m-0 allcentered w-100">
|
|
257
|
+
{/* <div class="col-lg-4 col-md-6 col-sm-12 mb-2 p-0">
|
|
258
|
+
<div class="row m-0 w-100">
|
|
259
|
+
<div class="col-lg-12 p-0">
|
|
260
|
+
<p class={TabsStyles.inputfield_label}>{lang.servicename}:</p>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="col-lg-12">
|
|
263
|
+
<p class={TabsStyles.inputfield + ' w-100 allcentered m-0 p-0 '}>
|
|
264
|
+
{langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar}
|
|
265
|
+
</p>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div> */}
|
|
269
|
+
{fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.scheduletype == 'days' && (
|
|
270
|
+
<>
|
|
271
|
+
<div class="col-lg-12 col-md-12 col-sm-12 mb-2 p-0">
|
|
272
|
+
<div class="row m-0 w-100">
|
|
273
|
+
<div class="col-lg-12 d-flex justify-content-start p-0">
|
|
274
|
+
<p class={TabsStyles.inputfield_label + ' m-0 pb-2 '}>{langdetect == 'en' ? 'From' : 'من'}:</p>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="col-lg-12 p-0 mb-3">
|
|
277
|
+
<input
|
|
278
|
+
type="date"
|
|
279
|
+
class={TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 '}
|
|
280
|
+
min={fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.reservationstarts}
|
|
281
|
+
max={fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.reservationends}
|
|
282
|
+
onChange={(event) => {
|
|
283
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, from: event.target.value });
|
|
284
|
+
}}
|
|
285
|
+
/>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
289
|
+
<div class="col-lg-12 col-md-12 col-sm-12 mb-2 p-0">
|
|
290
|
+
<div class="row m-0 w-100">
|
|
291
|
+
<div class="col-lg-12 d-flex justify-content-start p-0">
|
|
292
|
+
<p class={TabsStyles.inputfield_label + ' m-0 pb-2 '}>{langdetect == 'en' ? 'To' : 'إلى'}:</p>
|
|
293
|
+
</div>
|
|
294
|
+
<div class="col-lg-12 p-0 mb-3">
|
|
295
|
+
<input
|
|
296
|
+
type="date"
|
|
297
|
+
class={TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 '}
|
|
298
|
+
min={fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts}
|
|
299
|
+
max={fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends}
|
|
300
|
+
onChange={(event) => {
|
|
301
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, to: event.target.value });
|
|
302
|
+
}}
|
|
303
|
+
/>
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
</div>
|
|
307
|
+
</>
|
|
308
|
+
)}
|
|
309
|
+
{fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.scheduletype == 'minutes' && (
|
|
310
|
+
<>
|
|
311
|
+
<div class="col-lg-12 col-md-12 col-sm-12 mb-2 p-0">
|
|
312
|
+
<div class="row m-0 w-100">
|
|
313
|
+
<div class="col-lg-12 d-flex justify-content-start p-0">
|
|
314
|
+
<p class={TabsStyles.inputfield_label + ' m-0 pb-2 '}>{lang.reservationdate}:</p>
|
|
315
|
+
</div>
|
|
316
|
+
<div class="col-lg-12 p-0 mb-3">
|
|
317
|
+
<input
|
|
318
|
+
type="date"
|
|
319
|
+
class={TabsStyles.inputfield + ' w-100 allcentered pl-1 pr-1 '}
|
|
320
|
+
min={fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts}
|
|
321
|
+
max={fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends}
|
|
322
|
+
onChange={(event) => {
|
|
323
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, date: event.target.value });
|
|
324
|
+
setcurrentmutatestate('/fetchserviceslots');
|
|
325
|
+
GeneralAPIMutationContext.mutate({
|
|
326
|
+
endpointurl: '/fetchserviceslots',
|
|
327
|
+
productid: fetchProductInfoQueryContext.data.data.productinfo.productid,
|
|
328
|
+
reqdate: event.target.value,
|
|
329
|
+
mutateSuccesscallback: (data, variables) => {
|
|
330
|
+
setslots(data.data.slots);
|
|
331
|
+
},
|
|
332
|
+
});
|
|
333
|
+
}}
|
|
334
|
+
/>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
<div class="col-lg-12 p-0">
|
|
340
|
+
<p class={TabsStyles.timeLabel + ' p-0 d-flex justify-content-start m-0 '}>{lang.reservationtime}:</p>
|
|
341
|
+
|
|
342
|
+
{GeneralAPIMutationContext.isLoading && GeneralAPIMutationContext.variables.endpointurl == '/fetchserviceslots' && (
|
|
343
|
+
<>
|
|
344
|
+
<div className={'row ml-0 mr-0 w-100 allcentered'} style={{ height: 200 }}>
|
|
345
|
+
<Messaging color="#ccc" width="10px" height="10px" duration="1s" />
|
|
346
|
+
</div>
|
|
347
|
+
</>
|
|
348
|
+
)}
|
|
349
|
+
{slots.map(function (item, index) {
|
|
350
|
+
var ischoosed = false;
|
|
351
|
+
if (item.slot == addtocardpayloadobj.time) {
|
|
352
|
+
ischoosed = true;
|
|
353
|
+
}
|
|
354
|
+
return (
|
|
355
|
+
<>
|
|
356
|
+
<div class="row m-0 mb-2 d-flex align-items-center w-100">
|
|
357
|
+
<div class={TabsStyles.time + ' col-lg-6 col-md-6 col-sm-9 p-0 d-flex justify-content-start align-items-center '}>
|
|
358
|
+
<AiOutlineClockCircle class="ml-1 mr-1" />
|
|
359
|
+
<p class="p-0 m-0">{item.slot}</p>
|
|
360
|
+
</div>
|
|
361
|
+
{item.available && (
|
|
362
|
+
<>
|
|
363
|
+
<div class="col-lg-6 col-md-6 col-sm-12 p-0 d-flex d-sm-none justify-content-end justify-content-sm-center align-items-center">
|
|
364
|
+
<button
|
|
365
|
+
class={TabsStyles.booknow_btn + ' allcentered mt-sm-3 '}
|
|
366
|
+
style={{ backgroundColor: ischoosed ? 'green' : '' }}
|
|
367
|
+
onClick={() => {
|
|
368
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
|
|
369
|
+
}}
|
|
370
|
+
>
|
|
371
|
+
<span>{langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar}</span>
|
|
372
|
+
</button>
|
|
373
|
+
</div>
|
|
374
|
+
|
|
375
|
+
<div class="col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-sm-center">
|
|
376
|
+
<button
|
|
377
|
+
class={TabsStyles.booknow_btn_resp + ' allcentered '}
|
|
378
|
+
onClick={() => {
|
|
379
|
+
setaddtocardpayloadobj({ ...addtocardpayloadobj, time: item.slot });
|
|
380
|
+
}}
|
|
381
|
+
>
|
|
382
|
+
<span className="allcentered">
|
|
383
|
+
<AiOutlinePlus />
|
|
384
|
+
</span>
|
|
385
|
+
</button>
|
|
386
|
+
</div>
|
|
387
|
+
</>
|
|
388
|
+
)}
|
|
389
|
+
{!item.available && (
|
|
390
|
+
<>
|
|
391
|
+
<div class="col-lg-6 col-md-6 col-sm-9 p-0 d-flex d-sm-none justify-content-end justify-content-sm-center align-items-center">
|
|
392
|
+
<button
|
|
393
|
+
class={TabsStyles.booknow_btn + ' allcentered mt-sm-3 '}
|
|
394
|
+
style={{
|
|
395
|
+
opacity: 0.5,
|
|
396
|
+
cursor: 'not-allowed',
|
|
397
|
+
}}
|
|
398
|
+
>
|
|
399
|
+
<span>{langdetect == 'en' ? sectionproperties.generalbtn_bookedcontent : sectionproperties.generalbtn_bookedcontent_ar}</span>
|
|
400
|
+
</button>
|
|
401
|
+
</div>
|
|
402
|
+
<div class="col-sm-3 p-0 d-none d-sm-flex justify-content-end justify-content-sm-center align-items-center">
|
|
403
|
+
<button
|
|
404
|
+
class={TabsStyles.booknow_btn_resp + ' allcentered '}
|
|
405
|
+
style={{
|
|
406
|
+
opacity: 0.5,
|
|
407
|
+
cursor: 'not-allowed',
|
|
408
|
+
}}
|
|
409
|
+
>
|
|
410
|
+
<span class="allcentered">
|
|
411
|
+
<AiOutlineCheck />
|
|
412
|
+
</span>
|
|
413
|
+
</button>
|
|
414
|
+
</div>
|
|
415
|
+
</>
|
|
416
|
+
)}
|
|
417
|
+
</div>
|
|
418
|
+
<div class="col-lg-12 p-0">
|
|
419
|
+
<hr class="m-0 mb-3 mt-3" />
|
|
420
|
+
</div>
|
|
421
|
+
</>
|
|
422
|
+
);
|
|
423
|
+
})}
|
|
424
|
+
</div>
|
|
425
|
+
</>
|
|
426
|
+
)}
|
|
427
|
+
<div className="col-lg-12 p-0 mb-3">
|
|
428
|
+
<div className="row m-0 w-100">
|
|
429
|
+
{fetchProductInfoQueryContext?.data?.data?.productinfo?.serviceinfo?.scheduletype == 'days' && (
|
|
430
|
+
<div className="col-lg-12 p-0 mb-2 d-flex justofy-content-start">
|
|
431
|
+
<p
|
|
432
|
+
className="m-0 p-0"
|
|
433
|
+
style={{
|
|
434
|
+
color: sectionproperties.quantitytitlecolor,
|
|
435
|
+
fontSize: sectionproperties.quantitytitlefontSize + 'px',
|
|
436
|
+
fontWeight: sectionproperties.quantitytitlefontweight,
|
|
437
|
+
}}
|
|
438
|
+
>
|
|
439
|
+
{lang.quantity}:{' '}
|
|
440
|
+
<span
|
|
441
|
+
style={{
|
|
442
|
+
color: sectionproperties.quantitybtn_textcolor,
|
|
443
|
+
fontSize: sectionproperties.quantitybtn_textfontsize + 'px',
|
|
444
|
+
fontWeight: sectionproperties.quantitybtn_textfontweight,
|
|
445
|
+
}}
|
|
446
|
+
>
|
|
447
|
+
{addtocardpayloadobj.quantity}
|
|
448
|
+
</span>
|
|
449
|
+
</p>
|
|
450
|
+
</div>
|
|
451
|
+
)}
|
|
452
|
+
{showaddtocartbuttonbutton() && (
|
|
453
|
+
<div class="col-lg-12 allcentered">
|
|
454
|
+
<button
|
|
455
|
+
className={`${productinfo_cssstyles.cart_btn} ` + ' ml-1 mr-1 d-flex align-items-center justify-content-center ml-sm-auto mr-sm-auto mb-sm-2 '}
|
|
456
|
+
onClick={() => {
|
|
457
|
+
addtocartfunc();
|
|
458
|
+
}}
|
|
459
|
+
disabled={AddtoCartMutationContext.isLoading == true ? true : false}
|
|
460
|
+
>
|
|
461
|
+
{!AddtoCartMutationContext.isLoading && (
|
|
462
|
+
<span className={' d-flex align-items-center justify-content-center '}>
|
|
463
|
+
{sectionproperties.cartBtn_iconFontSize != 0 && (
|
|
464
|
+
<i
|
|
465
|
+
className={
|
|
466
|
+
langdetect == 'en'
|
|
467
|
+
? 'h-100 d-flex align-items-center justify-content-center mr-2'
|
|
468
|
+
: 'h-100 d-flex align-items-center justify-content-center ml-2'
|
|
469
|
+
}
|
|
470
|
+
>
|
|
471
|
+
{sectionproperties.carticonstyle == 'Shopping bag 1' && <FiShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
472
|
+
{sectionproperties.carticonstyle == 'Shopping bag 2' && <CgShoppingBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
473
|
+
{sectionproperties.carticonstyle == 'Shopping bag 3' && <BsBag className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
474
|
+
{sectionproperties.carticonstyle == 'Shopping bag 4' && (
|
|
475
|
+
<IoBagHandleOutline className="" size={sectionproperties.cartBtn_iconFontSize} />
|
|
476
|
+
)}
|
|
477
|
+
{sectionproperties.carticonstyle == 'Shopping cart 1' && <FiShoppingCart className="" size={sectionproperties.cartBtn_iconFontSize} />}
|
|
478
|
+
{sectionproperties.carticonstyle == 'Shopping cart 2' && <MdAddShoppingCart size={sectionproperties.cartBtn_iconFontSize} />}
|
|
479
|
+
</i>
|
|
480
|
+
)}
|
|
481
|
+
{langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic}
|
|
482
|
+
</span>
|
|
483
|
+
)}
|
|
484
|
+
{AddtoCartMutationContext.isLoading && (
|
|
485
|
+
<div className={' d-flex align-items-center justify-content-center '}>
|
|
486
|
+
<CircularProgress color="white" width="20px" height="20px" duration="1s" />
|
|
487
|
+
</div>
|
|
488
|
+
)}
|
|
489
|
+
</button>
|
|
490
|
+
</div>
|
|
491
|
+
)}
|
|
492
|
+
</div>
|
|
493
|
+
</div>
|
|
494
|
+
</div>
|
|
495
|
+
</div>
|
|
496
|
+
)}
|
|
497
|
+
</div>
|
|
498
|
+
</div>
|
|
499
|
+
);
|
|
500
|
+
};
|
|
501
|
+
export default Serviceinfotabs;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/* Side Nav */
|
|
2
|
+
.vertical_nav_menu {
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
position: relative;
|
|
6
|
+
list-style: none;
|
|
7
|
+
transition: 0.3s ease-in-out;
|
|
8
|
+
border-radius: 20px;
|
|
9
|
+
}
|
|
10
|
+
.vertical_nav_menu li.sidebar_item {
|
|
11
|
+
transition: 0.3s !important;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
text-align: center;
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
padding: 5px !important;
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
.vertical_nav_menu .sidebar_item::after {
|
|
21
|
+
content: '';
|
|
22
|
+
position: absolute;
|
|
23
|
+
bottom: -3px;
|
|
24
|
+
display: block;
|
|
25
|
+
border-radius: 100px 0 100px 0;
|
|
26
|
+
width: 0;
|
|
27
|
+
height: 0;
|
|
28
|
+
transition: 0.2s !important;
|
|
29
|
+
}
|
|
30
|
+
.vertical_nav_menu .sidenav_page_name {
|
|
31
|
+
transition: 0.3s;
|
|
32
|
+
}
|
|
33
|
+
.vertical_nav_menu li .sidenav_icon_cont {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: center;
|
|
36
|
+
align-items: center;
|
|
37
|
+
text-align: center;
|
|
38
|
+
transition: all 0.3s;
|
|
39
|
+
position: relative;
|
|
40
|
+
}
|
|
41
|
+
.vertical_nav_menu i.metismenu_icon {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
color: #022648;
|
|
46
|
+
transition: 0.3s;
|
|
47
|
+
opacity: 1;
|
|
48
|
+
font-size: 16px;
|
|
49
|
+
}
|
|
50
|
+
/* active */
|
|
51
|
+
.vertical_nav_menu .sidenav_active::after {
|
|
52
|
+
content: '';
|
|
53
|
+
position: absolute;
|
|
54
|
+
bottom: -3px;
|
|
55
|
+
/* right: -5%; */
|
|
56
|
+
display: block;
|
|
57
|
+
border-radius: 100px 0 100px 0;
|
|
58
|
+
width: 10px;
|
|
59
|
+
height: 100%;
|
|
60
|
+
/* background: red !important; */
|
|
61
|
+
}
|
|
62
|
+
.vertical_nav_menu .sidenav_active .sidenav_page_name {
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
}
|
|
65
|
+
.vertical_nav_menu .sidenav_active .sidenav_icon_cont {
|
|
66
|
+
/* background-color: rgba(249, 128, 100) !important; */
|
|
67
|
+
box-shadow: none !important;
|
|
68
|
+
}
|
|
69
|
+
/* hover */
|
|
70
|
+
.vertical_nav_menu .sidebar_item:hover {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
transition: 0.3s;
|
|
73
|
+
}
|
|
74
|
+
.vertical_nav_menu .sidebar_item:hover::after {
|
|
75
|
+
width: 10px;
|
|
76
|
+
height: 100%;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.horizontal_nav_menu {
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: row;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
}
|
|
84
|
+
.horizontal_nav_menu .sidebar_item {
|
|
85
|
+
transition: 0.3s !important;
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
text-align: center;
|
|
90
|
+
position: relative;
|
|
91
|
+
width: 180px !important;
|
|
92
|
+
}
|
|
93
|
+
@media screen and (max-width: 800px) {
|
|
94
|
+
.horizontal_nav_menu {
|
|
95
|
+
width: 100%;
|
|
96
|
+
display: block !important;
|
|
97
|
+
white-space: nowrap;
|
|
98
|
+
position: relative;
|
|
99
|
+
overflow-x: scroll;
|
|
100
|
+
overflow-y: hidden;
|
|
101
|
+
-webkit-overflow-scrolling: touch;
|
|
102
|
+
}
|
|
103
|
+
.sidebar_item {
|
|
104
|
+
width: 30% !important;
|
|
105
|
+
float: none;
|
|
106
|
+
display: inline-block;
|
|
107
|
+
zoom: 1;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
@media screen and (max-width: 700px) {
|
|
111
|
+
.horizontal_nav_menu {
|
|
112
|
+
width: 100%;
|
|
113
|
+
display: block !important;
|
|
114
|
+
white-space: nowrap;
|
|
115
|
+
position: relative;
|
|
116
|
+
overflow-x: scroll;
|
|
117
|
+
overflow-y: hidden;
|
|
118
|
+
-webkit-overflow-scrolling: touch;
|
|
119
|
+
}
|
|
120
|
+
.sidebar_item {
|
|
121
|
+
min-width: 40% !important;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
@media screen and (max-width: 500px) {
|
|
125
|
+
.horizontal_nav_menu {
|
|
126
|
+
width: 100%;
|
|
127
|
+
display: block !important;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
position: relative;
|
|
130
|
+
overflow-x: scroll;
|
|
131
|
+
overflow-y: hidden;
|
|
132
|
+
-webkit-overflow-scrolling: touch;
|
|
133
|
+
}
|
|
134
|
+
.sidebar_item {
|
|
135
|
+
max-width: 40% !important;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.sidebar_itemlastchild {
|
|
140
|
+
margin-right: 0 !important;
|
|
141
|
+
margin-left: 0 !important;
|
|
142
|
+
}
|
|
143
|
+
.ss{
|
|
144
|
+
|
|
145
|
+
}
|