tabexseriescomponents 0.2.1280 → 0.2.1281
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +27 -0
- package/dist/index.esm.js +27 -0
- package/dist/index.umd.js +27 -0
- package/package.json +1 -1
- package/srcbefore27-11/Contexts/LanguageContext.jsx +0 -408
- package/srcbefore27-11/Contexts/ProductsCardsSectionContext.jsx +0 -36
- package/srcbefore27-11/Imagekitconfig copy.jsx +0 -46
- package/srcbefore27-11/Imagekitconfig.jsx +0 -178
- package/srcbefore27-11/StylesJS/Customstyles.js +0 -456
- package/srcbefore27-11/TabexComponents/Cards/CTAProductCard/CTAProductCard.jsx +0 -538
- package/srcbefore27-11/TabexComponents/Cards/Card20/Card20.jsx +0 -299
- package/srcbefore27-11/TabexComponents/Cards/Card21/Card21.jsx +0 -388
- package/srcbefore27-11/TabexComponents/Cards/Card22/Card22.jsx +0 -288
- package/srcbefore27-11/TabexComponents/Cards/Card23/Card23 copy.jsx +0 -1630
- package/srcbefore27-11/TabexComponents/Cards/Card23/Card23.jsx +0 -733
- package/srcbefore27-11/TabexComponents/Cards/CardAll/CardAll.jsx +0 -453
- package/srcbefore27-11/TabexComponents/Cards/CardBadgeSlideFromTop/CardBadgeSlideFromTop.jsx +0 -394
- package/srcbefore27-11/TabexComponents/Cards/CardWithTextOnly/CardWithTextOnly.jsx +0 -70
- package/srcbefore27-11/TabexComponents/Cards/Cardwithdetailsshowonhover/Cardwithdetailsshowonhover.jsx +0 -1074
- package/srcbefore27-11/TabexComponents/Cards/CategoryCardTextOnImage/CategoryCardTextOnImage.jsx +0 -211
- package/srcbefore27-11/TabexComponents/Cards/CategoryCardwithhoveraction/CategoryCardwithhoveraction.jsx +0 -293
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover/Categorycard_details_onhover.jsx +0 -512
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_details_onhover copy/Categorycard_details_onhover.jsx +0 -513
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_fullimage/Categorycard_fullimage.jsx +0 -235
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_slidebgscaled/Categorycard_slidebgscaled.jsx +0 -199
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_trianglebg/Categorycard_with_trianglebg.jsx +0 -182
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_with_twolinestransition/Categorycard_with_twolinestransition.jsx +0 -184
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_withshapes/Categorycard_withshapes.jsx +0 -161
- package/srcbefore27-11/TabexComponents/Cards/Categorycard_withtext/Categorycard_withtext.jsx +0 -208
- package/srcbefore27-11/TabexComponents/Cards/CircleCardWithVariants/CircleCardWithVariants.jsx +0 -560
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard copy.jsx +0 -145
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/Classiccategorycard.jsx +0 -145
- package/srcbefore27-11/TabexComponents/Cards/Classiccategorycard/ClassiccategorycardOriginal.jsx +0 -142
- package/srcbefore27-11/TabexComponents/Cards/HorizontalCategoryCard/HorizontalCategoryCard.jsx +0 -193
- package/srcbefore27-11/TabexComponents/Cards/Horizontalcard/Horizontalcard.jsx +0 -605
- package/srcbefore27-11/TabexComponents/Cards/MenuCard/MenuCard.jsx +0 -817
- package/srcbefore27-11/TabexComponents/Cards/ModernCardWithQuantityButton/ModernCardWithQuantityButton.jsx +0 -468
- package/srcbefore27-11/TabexComponents/Cards/ModernProductCard/ModernProductCard.jsx +0 -593
- package/srcbefore27-11/TabexComponents/Cards/Moderncategorycard/Moderncategorycard.jsx +0 -208
- package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard copy.jsx +0 -497
- package/srcbefore27-11/TabexComponents/Cards/NewProductcard/NewProductcard.jsx +0 -512
- package/srcbefore27-11/TabexComponents/Cards/ProductCardWithTextOnImage/ProductCardWithTextOnImage.jsx +0 -304
- package/srcbefore27-11/TabexComponents/Cards/Productcard6/Productcard6.jsx +0 -257
- package/srcbefore27-11/TabexComponents/Cards/Productcard7/Productcard7.jsx +0 -277
- package/srcbefore27-11/TabexComponents/Cards/Productcard_animatedbuttons/Productcard_animatedbuttons.jsx +0 -352
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularbg/Productcard_with_circularbg.jsx +0 -291
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_circularhover/Productcard_with_circularhover.jsx +0 -315
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_slideanimation/Productcard_with_slideanimation.jsx +0 -327
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants copy.jsx +0 -408
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_variants/Productcard_with_variants.jsx +0 -528
- package/srcbefore27-11/TabexComponents/Cards/Productcard_with_zoominonhover/Productcard_with_zoominonhover.jsx +0 -731
- package/srcbefore27-11/TabexComponents/Cards/Productcarddefault/Productcarddefault.jsx +0 -275
- package/srcbefore27-11/TabexComponents/Cards/Productccard_with_imageontopleft/Productccard_with_imageontopleft.jsx +0 -286
- package/srcbefore27-11/TabexComponents/Cards/Prouductcard_with_zoomhover/Prouductcard_with_zoomhover.jsx +0 -138
- package/srcbefore27-11/TabexComponents/Cards/QuantityButtonBasedProductCard/QuantityButtonBasedProductCard.jsx +0 -611
- package/srcbefore27-11/TabexComponents/Cards/ServiceCard/ServiceCard.jsx +0 -600
- package/srcbefore27-11/TabexComponents/Cards/Simplecategorycardwithtextbelow/Simplecategorycardwithtextbelow.jsx +0 -225
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy 2.jsx +0 -525
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard copy.jsx +0 -2321
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcard.jsx +0 -1311
- package/srcbefore27-11/TabexComponents/Cards/Simpleproductcard/Simpleproductcardlastversion15-9.jsx +0 -1292
- package/srcbefore27-11/TabexComponents/Cards/StylishProductCard/StylishProductCard.jsx +0 -337
- package/srcbefore27-11/TabexComponents/Cards/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -347
- package/srcbefore27-11/TabexComponents/Cards/UpSlideEffectCard/UpSlideEffectCard.jsx +0 -605
- package/srcbefore27-11/TabexComponents/Cards/UserCardWithSocialMediaOnHover/UserCardWithSocialMediaOnHover.jsx +0 -185
- package/srcbefore27-11/TabexComponents/Cards/Variants_J_Cards/Variants_J_Cards.jsx +0 -660
- package/srcbefore27-11/TabexComponents/Footer/Allinonefooter/Allinonefooter.jsx +0 -759
- package/srcbefore27-11/TabexComponents/Footer/Footer1/Footer1.jsx +0 -551
- package/srcbefore27-11/TabexComponents/Footer/Footer2/Footer2.jsx +0 -731
- package/srcbefore27-11/TabexComponents/Footer/Footer3/Footer3.jsx +0 -414
- package/srcbefore27-11/TabexComponents/Footer/Footer4/Footer4.jsx +0 -466
- package/srcbefore27-11/TabexComponents/Footer/Footer5/Footer5.jsx +0 -776
- package/srcbefore27-11/TabexComponents/Footer/Footer6/Footer6.jsx +0 -290
- package/srcbefore27-11/TabexComponents/Footer/Footer7/Footer7.jsx +0 -430
- package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8 copy.jsx +0 -1970
- package/srcbefore27-11/TabexComponents/Footer/Footer8/Footer8.jsx +0 -2015
- package/srcbefore27-11/TabexComponents/Footer/FooterWithThreeColumns/FooterWithThreeColumns.jsx +0 -330
- package/srcbefore27-11/TabexComponents/Footer/ModernFooter/ModernFooter.jsx +0 -582
- package/srcbefore27-11/TabexComponents/Footer/Newsletterfooter/Newsletterfooter.jsx +0 -1165
- package/srcbefore27-11/TabexComponents/Footer/Newsletterincenter/Newsletterincenter.jsx +0 -646
- package/srcbefore27-11/TabexComponents/Footer/PrivacyPolicy/PrivacyPolicy.jsx +0 -110
- package/srcbefore27-11/TabexComponents/Footer/Simplefooter/Simplefooter.jsx +0 -332
- package/srcbefore27-11/TabexComponents/Generalfiles/images/egyptflag.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/noimage.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/cod.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/fawry.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/payment.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paymob.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/paypal.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/payment/visa.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/shoppingcart.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/tabexlogo.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/unknownmaleuser.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/usflag.png +0 -0
- package/srcbefore27-11/TabexComponents/Generalfiles/images/whatsapp.png +0 -0
- package/srcbefore27-11/TabexComponents/Headers/CTAHeader/CTAHeader.jsx +0 -1264
- package/srcbefore27-11/TabexComponents/Headers/CategoriesComponent/CategoriesComponent.jsx +0 -375
- package/srcbefore27-11/TabexComponents/Headers/CategoryFeaturingHeader/CategoryFeaturingHeader.jsx +0 -1056
- package/srcbefore27-11/TabexComponents/Headers/CenteredLogoHeaderWithSlider/CenteredLogoHeaderWithSlider.jsx +0 -1498
- package/srcbefore27-11/TabexComponents/Headers/ClassicHeader/ClassicHeader.jsx +0 -1289
- package/srcbefore27-11/TabexComponents/Headers/DownloadApp/DownloadApp.jsx +0 -76
- package/srcbefore27-11/TabexComponents/Headers/ElegantHeader/ElegantHeader.jsx +0 -907
- package/srcbefore27-11/TabexComponents/Headers/FloatingIcons/FloatingIcons.jsx +0 -358
- package/srcbefore27-11/TabexComponents/Headers/Gotoheader/Gotoheader.jsx +0 -875
- package/srcbefore27-11/TabexComponents/Headers/Header4/Header4.jsx +0 -622
- package/srcbefore27-11/TabexComponents/Headers/Header8/Header8 copy.jsx +0 -1026
- package/srcbefore27-11/TabexComponents/Headers/Header8/Header8.jsx +0 -3414
- package/srcbefore27-11/TabexComponents/Headers/HeaderRestaurant/HeaderRestaurant.jsx +0 -777
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithAdSlider/HeaderWithAdSlider.jsx +0 -933
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithSearchOnCenter/HeaderWithSearchOnCenter.jsx +0 -710
- package/srcbefore27-11/TabexComponents/Headers/HeaderWithUtilityBar/HeaderWithUtilityBar.jsx +0 -902
- package/srcbefore27-11/TabexComponents/Headers/Header_threesectionslogocentered/Header_threesectionslogocentered.jsx +0 -1347
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive.jsx +0 -1566
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsive11-1.jsx +0 -1201
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveOriginal.jsx +0 -990
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2 copy.jsx +0 -1639
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/HeaderresponsiveStyle2.jsx +0 -7163
- package/srcbefore27-11/TabexComponents/Headers/Headerresponsive/Headerresponsivenew.jsx +0 -1327
- package/srcbefore27-11/TabexComponents/Headers/HeaderwithContactinfo/HeaderwithContactinfo.jsx +0 -941
- package/srcbefore27-11/TabexComponents/Headers/MarqueeHeader/MarqueeHeader.jsx +0 -80
- package/srcbefore27-11/TabexComponents/Headers/Minimalheader/Minimalheader.jsx +0 -846
- package/srcbefore27-11/TabexComponents/Headers/Modernheader/Modernheader.jsx +0 -1198
- package/srcbefore27-11/TabexComponents/Headers/ParentCollectionsComponent/ParentCollectionsComponent.jsx +0 -385
- package/srcbefore27-11/TabexComponents/Headers/SearchCenteredHeader/SearchCenteredHeader.jsx +0 -784
- package/srcbefore27-11/TabexComponents/Headers/SearchFocusedHeader/SearchFocusedHeader.jsx +0 -1186
- package/srcbefore27-11/TabexComponents/Headers/Simpleheader/Simpleheader.jsx +0 -3692
- package/srcbefore27-11/TabexComponents/Headers/SocialMediaSection/SocialMediaSection.jsx +0 -266
- package/srcbefore27-11/TabexComponents/Headers/StylishHeader/StylishHeader.jsx +0 -860
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader copy.jsx +0 -950
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader.jsx +0 -1052
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheader13-3.jsx +0 -685
- package/srcbefore27-11/TabexComponents/Headers/Subheader/SubheaderOriginal.jsx +0 -517
- package/srcbefore27-11/TabexComponents/Headers/Subheader/Subheadernew.jsx +0 -555
- package/srcbefore27-11/TabexComponents/Headers/SubheaderDropdown/SubheaderDropdown.jsx +0 -610
- package/srcbefore27-11/TabexComponents/Headers/ThreeTieredHeader/ThreeTieredHeader.jsx +0 -1049
- package/srcbefore27-11/TabexComponents/Headers/TwoTieredHeader/TwoTieredHeader.jsx +0 -1095
- package/srcbefore27-11/TabexComponents/Headers/TwoTieredWithCenteredLogoHeader/TwoTieredWithCenteredLogoHeader.jsx +0 -979
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BacgroundThreeImageWithCategories/BacgroundThreeImageWithCategories.jsx +0 -533
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundFiveImageStructure/BackgroundFiveImageStructure.jsx +0 -338
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContent.jsx +0 -872
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundImageWithTopContent/BackgroundImageWithTopContentrecent.jsx +0 -895
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundSectionWithServicesCards/BackgroundSectionWithServicesCards.jsx +0 -302
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage1/Backgroundimage1.jsx +0 -314
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Backgroundimage_with_toppill/Backgroundimage_with_toppill.jsx +0 -318
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/BackgroundimageandTextsection/BackgroundimageandTextsection.jsx +0 -179
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Bgimagewithsearchbar/Bgimagewithsearchbar.jsx +0 -201
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/CollapsableSection/CollapsableSection.jsx +0 -421
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy 2.jsx +0 -583
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm copy.jsx +0 -291
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm.jsx +0 -822
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm19-8beforeattach.jsx +0 -789
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/DynamicForm22-7.jsx +0 -787
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/DynamicForm/habal +0 -348
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Filterwithcategoriespcoll/Filterwithcategoriespcoll.jsx +0 -387
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/FullVideoSection/FullVideoSection.jsx +0 -268
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/MapsSection/MapsSection.jsx +0 -295
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/PopupCountryComponent/PopupCountryComponent.jsx +0 -120
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Popupcomponent/Popupcomponent.jsx +0 -119
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Searchcomponent/Searchcomponent.jsx +0 -99
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Section_with_rightbgcont/Section_with_rightbgcont.jsx +0 -146
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/TextSectionConnectToWA/TextSectionConnectToWA.jsx +0 -489
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Threebgimages/Threebgimages.jsx +0 -296
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages copy.jsx +0 -396
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/Twobgimages/Twobgimages.jsx +0 -633
- package/srcbefore27-11/TabexComponents/Sections/BackgroundImages/VideosSection/VideosSection.jsx +0 -509
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 2.jsx +0 -1399
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy 3.jsx +0 -1656
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection copy.jsx +0 -1540
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection.jsx +0 -2323
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection13-3.jsx +0 -1596
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-10.jsx +0 -1872
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection21-11beforeform.jsx +0 -1891
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSection_cosmoandmore.jsx +0 -1880
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection/CardsSectionwithanomation12-1.jsx +0 -2065
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSection2/CardsSection2.jsx +0 -726
- package/srcbefore27-11/TabexComponents/Sections/Cards/CardsSectionwithfilter/CardsSectionwithfilter.jsx +0 -719
- package/srcbefore27-11/TabexComponents/Sections/Cards/ElegantCategoriesCardSection/ElegantCategoriesCardSection.jsx +0 -406
- package/srcbefore27-11/TabexComponents/Sections/Cards/ModernCardsSection/ModernCardsSection.jsx +0 -966
- package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards copy.jsx +0 -646
- package/srcbefore27-11/TabexComponents/Sections/Cards/RandomlyStructuredCollectionCards/RandomlyStructuredCollectionCards.jsx +0 -1577
- package/srcbefore27-11/TabexComponents/Sections/Cards/Sixverticalcardssection/Sixverticalcardssection.jsx +0 -596
- package/srcbefore27-11/TabexComponents/Sections/Cards/UsersCardsSection/UsersCardsSection.jsx +0 -383
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/AboutSection/AboutSection.jsx +0 -342
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Backgroundimage_with_topcircle/Backgroundimage_with_topcircle.jsx +0 -161
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ContactUsSection/ContactUsSection.jsx +0 -394
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/CountDownSection/CountDownSection.jsx +0 -174
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection copy.jsx +0 -382
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection.jsx +0 -651
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection19-11.jsx +0 -757
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Freetextsection/Freetextsection20-2.jsx +0 -1017
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/HorizontalContactUsSection/HorizontalContactUsSection.jsx +0 -346
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_leftwords/Image_with_leftwords.jsx +0 -3027
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Image_with_rightwords/Image_with_rightwords.jsx +0 -141
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/MarqueeSection/MarqueeSection.jsx +0 -103
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Preloaderone/Preloaderone.jsx +0 -49
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServiceSectionWithImage/ServiceSectionWithImage.jsx +0 -376
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Servicesection/Servicesection.jsx +0 -384
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards copy.jsx +0 -1576
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ServicesectionCenteredcards/ServicesectionCenteredcards.jsx +0 -1989
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_rotatedsquare/Slideshow_with_rotatedsquare.jsx +0 -226
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshow_with_squarebg/Slideshow_with_squarebg.jsx +0 -149
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowdifferentanimations/Slideshowdifferentanimations.jsx +0 -143
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade copy.jsx +0 -634
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowfade/Slideshowfade.jsx +0 -474
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide copy.jsx +0 -527
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslide.jsx +0 -665
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideOriginal.jsx +0 -477
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/SlideshowslideRecent.jsx +0 -1217
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowslide/Slideshowslideoriginal8-5.jsx +0 -614
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Arrow.jsx +0 -91
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom copy.jsx +0 -380
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/Slideshowzoom/Slideshowzoom.jsx +0 -741
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/TableSection/TableSection.jsx +0 -423
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow copy.jsx +0 -284
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/ThreeSectionsWithSlideshow/ThreeSectionsWithSlideshow.jsx +0 -636
- package/srcbefore27-11/TabexComponents/Sections/Slideshow/TwoWayServiceSectionWithImage/TwoWayServiceSectionWithImage.jsx +0 -402
- package/srcbefore27-11/TabexComponents/StaticPages/AccountInformation/AccountInformation.jsx +0 -234
- package/srcbefore27-11/TabexComponents/StaticPages/AddReview/AddReview.jsx +0 -306
- package/srcbefore27-11/TabexComponents/StaticPages/Afiiliatesignup/Afiiliatesignup.jsx +0 -364
- package/srcbefore27-11/TabexComponents/StaticPages/CartSlider/CartSlider.jsx +0 -1000
- package/srcbefore27-11/TabexComponents/StaticPages/Categoriesdropdown/Categoriesdropdown.jsx +0 -460
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout copy.jsx +0 -1306
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout.jsx +0 -2506
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout10-1.jsx +0 -1633
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout12-12beforeextras.jsx +0 -1999
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout26-9.jsx +0 -1593
- package/srcbefore27-11/TabexComponents/StaticPages/Checkout/Checkout9-9.jsx +0 -1574
- package/srcbefore27-11/TabexComponents/StaticPages/Compare/Compare.jsx +0 -79
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/CollectionsFilterHorizontal.jsx +0 -245
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy 2.jsx +0 -2888
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter copy.jsx +0 -1450
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter.jsx +0 -3459
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter1-5.jsx +0 -2624
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter13-11.jsx +0 -2758
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter14-8.jsx +0 -2753
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/Filter17-9.jsx +0 -1495
- package/srcbefore27-11/TabexComponents/StaticPages/Filter/VariantFilter.jsx +0 -1271
- package/srcbefore27-11/TabexComponents/StaticPages/InnerGroups/InnerGroups.jsx +0 -62
- package/srcbefore27-11/TabexComponents/StaticPages/Login/FacebookLoginButton.jsx +0 -50
- package/srcbefore27-11/TabexComponents/StaticPages/Login/GoogleLoginButton.jsx +0 -35
- package/srcbefore27-11/TabexComponents/StaticPages/Login/Login copy.jsx +0 -1060
- package/srcbefore27-11/TabexComponents/StaticPages/Login/Login.jsx +0 -616
- package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess.jsx +0 -693
- package/srcbefore27-11/TabexComponents/StaticPages/OrderSuccess/OrderSuccess2.jsx +0 -173
- package/srcbefore27-11/TabexComponents/StaticPages/Ordershistory/Ordershistory.jsx +0 -1831
- package/srcbefore27-11/TabexComponents/StaticPages/Policies/Policies.jsx +0 -291
- package/srcbefore27-11/TabexComponents/StaticPages/PrivacyPolicy/PrivacyPolicy.jsx +0 -194
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Addreviewform.jsx +0 -183
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/AddreviewformOriginal.jsx +0 -128
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Article_itemtype.jsx +0 -268
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/DescriptionContent.jsx +0 -190
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtraFields.jsx +0 -225
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductExtras.jsx +0 -224
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductFileUploader.jsx +0 -136
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductHeaderPricing.jsx +0 -347
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/ProductReviews.jsx +0 -262
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype.jsx +0 -5566
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype10-1.jsx +0 -1554
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype3-11.jsx +0 -1827
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtype31-3.jsx +0 -1351
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeUpdated.jsx +0 -1566
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Product_itemtypeeuro.jsx +0 -3101
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo.jsx +0 -3047
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo13-5.jsx +0 -2103
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfo_28_6.jsx +0 -2189
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Productinfotoday.jsx +0 -2166
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.js +0 -2714
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtype.jsx +0 -2206
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Service_itemtypetill28-4-2025.jsx +0 -1158
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs.jsx +0 -1117
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabs4-5.jsx +0 -1043
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Serviceinfotabstill28-4-2025.jsx +0 -1040
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions.jsx +0 -905
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/Variantoptions21-9.jsx +0 -324
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo/staticroutersidenav.module.css +0 -145
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Addreviewform.jsx +0 -183
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/AddreviewformOriginal.jsx +0 -128
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/DescriptionContent.jsx +0 -140
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductExtraFields.jsx +0 -225
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductHeaderPricing.jsx +0 -310
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/ProductReviews.jsx +0 -235
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype.jsx +0 -1672
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype10-1.jsx +0 -1554
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtype31-3.jsx +0 -1351
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Product_itemtypeUpdated.jsx +0 -1566
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Productinfo.jsx +0 -1804
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Service_itemtype.jsx +0 -560
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Serviceinfotabs.jsx +0 -928
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions.jsx +0 -597
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/Variantoptions21-9.jsx +0 -324
- package/srcbefore27-11/TabexComponents/StaticPages/Productinfo4-4/staticroutersidenav.module.css +0 -145
- package/srcbefore27-11/TabexComponents/StaticPages/RefundPolicy/RefundPolicy.jsx +0 -194
- package/srcbefore27-11/TabexComponents/StaticPages/Resetpassword/Resetpassword.jsx +0 -346
- package/srcbefore27-11/TabexComponents/StaticPages/Searchlist/Searchlist.jsx +0 -367
- package/srcbefore27-11/TabexComponents/StaticPages/ShippingPolicy/ShippingPolicy.jsx +0 -222
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerAddressForm.jsx +0 -277
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm copy.jsx +0 -1135
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm.jsx +0 -1505
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/CustomerInformationForm12-5beforeemailrequired.jsx +0 -1476
- package/srcbefore27-11/TabexComponents/StaticPages/Signup/Signup.jsx +0 -199
- package/srcbefore27-11/TabexComponents/StaticPages/Staticpagesrouter/Staticpagesrouter.jsx +0 -292
- package/srcbefore27-11/TabexComponents/StaticPages/TermsConditions/TermsConditions.jsx +0 -219
- package/srcbefore27-11/TabexComponents/StaticPages/VendorPage/VendorPage.jsx +0 -162
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart 10-10.jsx +0 -765
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart.jsx +0 -786
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/Viewcart26-9.jsx +0 -786
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartOriginal.jsx +0 -786
- package/srcbefore27-11/TabexComponents/StaticPages/Viewcart/ViewcartUpdated.jsx +0 -1425
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist.jsx +0 -844
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist25-4.jsx +0 -555
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/Wishlist26-9.jsx +0 -555
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistOriginal.jsx +0 -555
- package/srcbefore27-11/TabexComponents/StaticPages/Wishlist/WishlistUpdated.jsx +0 -815
- package/srcbefore27-11/button.jsx +0 -40
- package/srcbefore27-11/index.jsx +0 -353
- package/srcbefore27-11/styles/Home.module.css +0 -129
- package/srcbefore27-11/styles/cards/Categorcycard_fullimage.module.css +0 -14
- package/srcbefore27-11/styles/cards/Categorycard_slidebgscaled.module.css +0 -73
- package/srcbefore27-11/styles/cards/Categorycard_withshapes.module.css +0 -189
- package/srcbefore27-11/styles/cards/ModernCardWithQuantityButton.module.css +0 -30
- package/srcbefore27-11/styles/cards/Productcard6.module.css +0 -9
- package/srcbefore27-11/styles/cards/Productccard_with_zoominonhover.module.css +0 -94
- package/srcbefore27-11/styles/cards/Prouductcard_with_zoomhover.module.css +0 -61
- package/srcbefore27-11/styles/cards/UserCardWithSocialMediaOnHover.module.css +0 -65
- package/srcbefore27-11/styles/cards/card23.module.css +0 -60
- package/srcbefore27-11/styles/cards/categorycard.module.css +0 -84
- package/srcbefore27-11/styles/cards/categorycard3.module.css +0 -50
- package/srcbefore27-11/styles/cards/categorycardwithtext.module.css +0 -40
- package/srcbefore27-11/styles/cards/generalCardsStyles.module.css +0 -79
- package/srcbefore27-11/styles/cards/productcard_animatedbuttons.module.css +0 -139
- package/srcbefore27-11/styles/cards/productcard_with_textonhover.module.css +0 -18
- package/srcbefore27-11/styles/cards/productcard_withtextonimage.module.css +0 -0
- package/srcbefore27-11/styles/cards/productccard_with_imageontopleft.module.css +0 -85
- package/srcbefore27-11/styles/general/bootstrap.css +0 -4763
- package/srcbefore27-11/styles/general/dropdown.css +0 -206
- package/srcbefore27-11/styles/general/editorbardropdown.module.css +0 -94
- package/srcbefore27-11/styles/general/filter.module.css +0 -108
- package/srcbefore27-11/styles/general/form.module.css +0 -255
- package/srcbefore27-11/styles/general/general.module.css +0 -872
- package/srcbefore27-11/styles/general/image-gallery.css +0 -531
- package/srcbefore27-11/styles/general/react-accessible-accordion.module.css +0 -52
- package/srcbefore27-11/styles/general/react-phone-input-2.module.css +0 -927
- package/srcbefore27-11/styles/general/scrollbtn.module.css +0 -22
- package/srcbefore27-11/styles/general/slick.module.css +0 -166
- package/srcbefore27-11/styles/general/tabs.module.css +0 -119
- package/srcbefore27-11/styles/general/workplaceeditor.module.css +0 -328
- package/srcbefore27-11/styles/globals.css +0 -26
- package/srcbefore27-11/styles/headers/CTAHeader.module.css +0 -40
- package/srcbefore27-11/styles/headers/CategoryFeaturingHeader.module.css +0 -61
- package/srcbefore27-11/styles/headers/Gotoheader.module.css +0 -87
- package/srcbefore27-11/styles/headers/Header7.module.css +0 -50
- package/srcbefore27-11/styles/headers/HeaderWithAdSlider.module.css +0 -86
- package/srcbefore27-11/styles/headers/HeaderWithSearchOnCenter.module.css +0 -101
- package/srcbefore27-11/styles/headers/HeaderWithUtilityBar.module.css +0 -46
- package/srcbefore27-11/styles/headers/Header_threesectionslogocentered.module.css +0 -84
- package/srcbefore27-11/styles/headers/NewHeader.module.css +0 -101
- package/srcbefore27-11/styles/headers/SearchFocusedHeader.module.css +0 -62
- package/srcbefore27-11/styles/headers/Sideheader.module.css +0 -108
- package/srcbefore27-11/styles/headers/Simpleheader.module.css +0 -102
- package/srcbefore27-11/styles/headers/classicheader.module.css +0 -16
- package/srcbefore27-11/styles/headers/classicheaderstyles.module.css +0 -9
- package/srcbefore27-11/styles/headers/dropdown.css +0 -0
- package/srcbefore27-11/styles/headers/header4.module.css +0 -175
- package/srcbefore27-11/styles/headers/header5.module.css +0 -30
- package/srcbefore27-11/styles/headers/header_contactinfo.module.css +0 -53
- package/srcbefore27-11/styles/headers/headerresturant.module.css +0 -89
- package/srcbefore27-11/styles/headers/modernheader.module.css +0 -45
- package/srcbefore27-11/styles/headers/stylishheader.module.css +0 -24
- package/srcbefore27-11/styles/headers/subheader.module.css +0 -114
- package/srcbefore27-11/styles/headers/threetieredheader.module.css +0 -91
- package/srcbefore27-11/styles/sections/BackgroundImageWithTopContent.css +0 -4
- package/srcbefore27-11/styles/sections/Backgroundimage1.module.css +0 -17
- package/srcbefore27-11/styles/sections/Backgroundimage_with_topcircle.module.css +0 -28
- package/srcbefore27-11/styles/sections/Freetext.module.css +0 -18
- package/srcbefore27-11/styles/sections/Section_with_rightbgcont.module.css +0 -49
- package/srcbefore27-11/styles/sections/Slideshow_with_rotatedsquare.module.css +0 -35
- package/srcbefore27-11/styles/sections/Slideshow_with_squarebg.module.css +0 -39
- package/srcbefore27-11/styles/staticpages/accordion.module.css +0 -9
- package/srcbefore27-11/styles/staticpages/cart.module.css +0 -108
- package/srcbefore27-11/styles/staticpages/dropdown.css +0 -196
- package/srcbefore27-11/styles/staticpages/filter.module.css +0 -139
- package/srcbefore27-11/styles/staticpages/image-gallery.css +0 -481
- package/srcbefore27-11/styles/staticpages/login.module.css +0 -155
- package/srcbefore27-11/styles/staticpages/productinfo.module.css +0 -54
- package/srcbefore27-11/styles/staticpages/shop.module.css +0 -191
- package/srcbefore27-11/styles/staticpages/signup.module.css +0 -250
- package/srcbefore27-11/styles/staticpages/staticroutersidenav.module.css +0 -129
- package/srcbefore27-11/styles/staticpages/viewcart.module.css +0 -129
- package/srcbefore27-11/styles/staticpages/wishlist.module.css +0 -29
|
@@ -1,1999 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState, useContext } from 'react';
|
|
2
|
-
import formstyles from '../../../styles/general/form.module.css';
|
|
3
|
-
import TextareaAutosize from 'react-textarea-autosize';
|
|
4
|
-
import generalstyles from '../../../styles/general/general.module.css';
|
|
5
|
-
import { CircularProgress, Messaging } from 'react-cssfx-loading';
|
|
6
|
-
import { css } from 'glamor';
|
|
7
|
-
import { defaultstyles, defaultstylestranslated } from '../../../StylesJS/Customstyles.js';
|
|
8
|
-
import { HiUser } from '@react-icons/all-files/hi/HiUser';
|
|
9
|
-
import { GrMail } from '@react-icons/all-files/gr/GrMail';
|
|
10
|
-
import { FiCheckCircle } from '@react-icons/all-files/fi/FiCheckCircle';
|
|
11
|
-
import { BiPhone } from '@react-icons/all-files/bi/BiPhone';
|
|
12
|
-
import { Imagekitimagecomp } from '../../../Imagekitconfig.jsx';
|
|
13
|
-
import PhoneInput from 'react-phone-input-2';
|
|
14
|
-
|
|
15
|
-
const Select = React.lazy(() => import('react-select'));
|
|
16
|
-
const Checkout = (props) => {
|
|
17
|
-
const [timer, settimer] = useState(null);
|
|
18
|
-
const langdetect = props.actions.langdetect;
|
|
19
|
-
const lang = props.actions.lang;
|
|
20
|
-
const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
21
|
-
const routingcountext = props.actions.routingcountext;
|
|
22
|
-
const ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
23
|
-
const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
|
|
24
|
-
const templatepropcontext = props.actions.templatepropcontext;
|
|
25
|
-
const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
|
|
26
|
-
const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
27
|
-
const GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
28
|
-
const Pixel_EventsContext = props.actions.Pixel_EventsContext;
|
|
29
|
-
|
|
30
|
-
const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
31
|
-
const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
|
|
32
|
-
const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
|
|
33
|
-
const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
34
|
-
const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
35
|
-
const ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
|
|
36
|
-
const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
|
|
37
|
-
const AddOrderMutationContext = props.actions.AddOrderMutationContext;
|
|
38
|
-
const authdetailsContext = props.actions.authdetailsContext;
|
|
39
|
-
const NotificationManager = props.actions.NotificationManager;
|
|
40
|
-
const queryClient = props.actions.queryClient;
|
|
41
|
-
const [sectionproperties, setsectionproperties] = useState('');
|
|
42
|
-
const [CurrentPageId, setCurrentPageId] = useState('');
|
|
43
|
-
const [insthasaffiliate, setinsthasaffiliate] = useState(0);
|
|
44
|
-
const [land, setland] = useState(false);
|
|
45
|
-
const [air, setair] = useState(false);
|
|
46
|
-
const [shippingmethods, setshippingmethods] = useState([]);
|
|
47
|
-
// const [orderextrafeilds, setorderextrafeilds] = useState([]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
|
|
50
|
-
if (cartindex >= 0) {
|
|
51
|
-
setCurrentPageId(cartindex);
|
|
52
|
-
}
|
|
53
|
-
}, []);
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
var secpropobj = {};
|
|
56
|
-
props?.actions?.StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
|
|
57
|
-
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
58
|
-
});
|
|
59
|
-
setsectionproperties({ ...secpropobj });
|
|
60
|
-
}, [props.actions.StatePagePropertiesContext]);
|
|
61
|
-
useEffect(() => {
|
|
62
|
-
var Canorder = false;
|
|
63
|
-
if (authdetailsContext != undefined && authdetailsContext.instinfo != undefined && authdetailsContext.instinfo.cancustomerguestorder != undefined) {
|
|
64
|
-
if (authdetailsContext?.instinfo?.hasaffiliate != undefined) {
|
|
65
|
-
setinsthasaffiliate(authdetailsContext?.instinfo?.hasaffiliate);
|
|
66
|
-
}
|
|
67
|
-
if (authdetailsContext.loggedin == true) {
|
|
68
|
-
Canorder = true;
|
|
69
|
-
} else {
|
|
70
|
-
if (authdetailsContext?.instinfo?.cancustomerguestorder == 1) {
|
|
71
|
-
Canorder = true;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
if (Canorder == true) {
|
|
75
|
-
var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
|
|
76
|
-
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
77
|
-
setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
|
|
78
|
-
var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
|
|
79
|
-
if (
|
|
80
|
-
// Aya
|
|
81
|
-
!fetchcustomercartQueryContext.isFetching &&
|
|
82
|
-
fetchcustomercartQueryContext.isSuccess &&
|
|
83
|
-
fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
|
|
84
|
-
fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
|
|
85
|
-
// End
|
|
86
|
-
fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
|
|
87
|
-
) {
|
|
88
|
-
tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
|
|
89
|
-
}
|
|
90
|
-
if (
|
|
91
|
-
// aya
|
|
92
|
-
!fetchcustomercartQueryContext.isFetching &&
|
|
93
|
-
fetchcustomercartQueryContext.isSuccess &&
|
|
94
|
-
fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
|
|
95
|
-
fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
|
|
96
|
-
// end
|
|
97
|
-
fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
|
|
98
|
-
) {
|
|
99
|
-
tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
|
|
100
|
-
}
|
|
101
|
-
setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
|
|
102
|
-
} else {
|
|
103
|
-
// NotificationManager.warning('', lang.pleaselogintocheckout);
|
|
104
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
Pixel_EventsContext('InitiateCheckout', {});
|
|
108
|
-
GeneralAPIMutationContext.mutate({ endpointurl: '/InitiateCheckout', mutateSuccesscallback: () => {} });
|
|
109
|
-
}, [authdetailsContext]);
|
|
110
|
-
useEffect(() => {
|
|
111
|
-
if (
|
|
112
|
-
fetchcustomercartQueryContext != undefined &&
|
|
113
|
-
fetchcustomercartQueryContext.data != undefined &&
|
|
114
|
-
fetchcustomercartQueryContext.data.data != undefined &&
|
|
115
|
-
fetchcustomercartQueryContext.data.data.customercart != undefined &&
|
|
116
|
-
fetchcustomercartQueryContext.data.data.customercart.cityid != undefined &&
|
|
117
|
-
fetchcustomercartQueryContext.data.data.customercart.cityid != null &&
|
|
118
|
-
fetchcustomercartQueryContext.data.data.customercart.cityid != '' &&
|
|
119
|
-
fetchcustomercartQueryContext.data.data.customercart.length != 0
|
|
120
|
-
) {
|
|
121
|
-
var cityid = fetchcustomercartQueryContext?.data?.data?.customercart.cityid;
|
|
122
|
-
fetchshippingmethods(cityid);
|
|
123
|
-
}
|
|
124
|
-
// fetchorderextrafields();
|
|
125
|
-
}, [fetchcustomercartQueryContext.data]);
|
|
126
|
-
|
|
127
|
-
const fetchshippingmethods = (cityid) => {
|
|
128
|
-
GeneralAPIMutationContext.mutate({
|
|
129
|
-
endpointurl: '/g_shippingmethods',
|
|
130
|
-
cityid: cityid,
|
|
131
|
-
mutateSuccesscallback: (data) => {
|
|
132
|
-
if (data != undefined && data.data != undefined && data.data.status == true) {
|
|
133
|
-
setshippingmethods(data.data.data);
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
// const fetchorderextrafields = () => {
|
|
139
|
-
// GeneralAPIMutationContext.mutate({
|
|
140
|
-
// endpointurl: '/InitiateCheckout',
|
|
141
|
-
|
|
142
|
-
// mutateSuccesscallback: (data) => {
|
|
143
|
-
// if (data != undefined && data.data != undefined && data.data.status == true) {
|
|
144
|
-
// setorderextrafeilds(data.data.data);
|
|
145
|
-
// }
|
|
146
|
-
// },
|
|
147
|
-
// });
|
|
148
|
-
// };
|
|
149
|
-
const cartinfoupdater = (key, value) => {
|
|
150
|
-
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
151
|
-
cartarr.data.customercart[key] = value;
|
|
152
|
-
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
153
|
-
var payloadobj = {
|
|
154
|
-
stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
|
|
155
|
-
countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
|
|
156
|
-
cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
|
|
157
|
-
address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
|
|
158
|
-
paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
|
|
159
|
-
name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
|
|
160
|
-
email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
|
|
161
|
-
mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
|
|
162
|
-
notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
|
|
163
|
-
aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
|
|
164
|
-
shippingmethod_id: fetchcustomercartQueryContext?.data?.data?.customercart.shippingmethod_id,
|
|
165
|
-
};
|
|
166
|
-
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') {
|
|
167
|
-
// clearTimeout(timer);
|
|
168
|
-
// settimer(
|
|
169
|
-
// setTimeout(() => {
|
|
170
|
-
// ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
171
|
-
// }, 1500),
|
|
172
|
-
// );
|
|
173
|
-
} else {
|
|
174
|
-
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
175
|
-
fetchshippingmethods(fetchcustomercartQueryContext?.data?.data?.customercart?.cityid);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
const usewalletpoints = () => {
|
|
179
|
-
GeneralAPIMutationContext.mutate({
|
|
180
|
-
endpointurl: '/usewalletpoints',
|
|
181
|
-
|
|
182
|
-
mutateSuccesscallback: (data, variables) => {
|
|
183
|
-
if (data.data.status) {
|
|
184
|
-
NotificationManager.success('', langdetect == 'en' ? 'Done' : 'تم');
|
|
185
|
-
fetchcustomercartQueryContext.refetch();
|
|
186
|
-
} else {
|
|
187
|
-
NotificationManager.warning('', data.data.reason);
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
});
|
|
191
|
-
};
|
|
192
|
-
const checkoutstyles = {
|
|
193
|
-
Salepricestyless: css({
|
|
194
|
-
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
195
|
-
fontWeight: sectionproperties.prodsalePriceFontWeight,
|
|
196
|
-
color: sectionproperties.prodsalePriceColor,
|
|
197
|
-
show: sectionproperties.prodsalePriceshow,
|
|
198
|
-
transition: '.3s',
|
|
199
|
-
}),
|
|
200
|
-
userinfo_iconcont: css({
|
|
201
|
-
width: sectionproperties.userinfo_iconwidth + 'px',
|
|
202
|
-
height: sectionproperties.userinfo_iconheight + 'px',
|
|
203
|
-
background: sectionproperties.userinfo_iconbg,
|
|
204
|
-
borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
|
|
205
|
-
color: sectionproperties.userinfo_iconcolor,
|
|
206
|
-
}),
|
|
207
|
-
userinfotextstyles: css({
|
|
208
|
-
color: sectionproperties.userinfo_color,
|
|
209
|
-
fontWeight: sectionproperties.userinfo_fontweight,
|
|
210
|
-
fontSize: sectionproperties.userinfo_fontsize + 'px',
|
|
211
|
-
}),
|
|
212
|
-
input_label_name: css({
|
|
213
|
-
color: sectionproperties.form_labelcolor,
|
|
214
|
-
textTransform: sectionproperties.form_labeltexttransform,
|
|
215
|
-
fontWeight: sectionproperties.form_labelfontweight,
|
|
216
|
-
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
217
|
-
}),
|
|
218
|
-
checkbox: css({
|
|
219
|
-
color: sectionproperties.checkbox_color,
|
|
220
|
-
textTransform: sectionproperties.form_labeltexttransform,
|
|
221
|
-
fontWeight: sectionproperties.form_labelfontweight,
|
|
222
|
-
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
223
|
-
transition: '.3s',
|
|
224
|
-
':hover': {
|
|
225
|
-
color: sectionproperties.checkbox_texthovercolor,
|
|
226
|
-
},
|
|
227
|
-
'input:checked': {
|
|
228
|
-
color: sectionproperties.checkbox_checkedcolor,
|
|
229
|
-
},
|
|
230
|
-
}),
|
|
231
|
-
checkboxinputstyles: css({
|
|
232
|
-
':hover:not(:checked)': {
|
|
233
|
-
boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
|
|
234
|
-
},
|
|
235
|
-
':checked': {
|
|
236
|
-
boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
|
|
237
|
-
},
|
|
238
|
-
}),
|
|
239
|
-
svgstyles: css({
|
|
240
|
-
stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
|
|
241
|
-
}),
|
|
242
|
-
innersectiontitlestyles: css({
|
|
243
|
-
color: sectionproperties.innersection_titlecolor,
|
|
244
|
-
fontSize: sectionproperties.innersection_titlefontsize + 'px',
|
|
245
|
-
fontWeight: sectionproperties.innersection_titlefontweight,
|
|
246
|
-
textTransform: sectionproperties.innersection_titletextTransform,
|
|
247
|
-
}),
|
|
248
|
-
summarysectionstyles: css({
|
|
249
|
-
fontSize: sectionproperties.summary_fontsize + 'px',
|
|
250
|
-
color: sectionproperties.summary_textcolor,
|
|
251
|
-
fontWeight: sectionproperties.summary_textfontweight,
|
|
252
|
-
textTransform: sectionproperties.summary_texttransform,
|
|
253
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
254
|
-
}),
|
|
255
|
-
checkoutbtnstyles: css({
|
|
256
|
-
background: sectionproperties.checkoutBtnbgColor,
|
|
257
|
-
width: sectionproperties.checkoutBtnWidth,
|
|
258
|
-
height: sectionproperties.checkoutBtnHeight,
|
|
259
|
-
borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
|
|
260
|
-
color: sectionproperties.checkoutBtnTextcolor,
|
|
261
|
-
textTransform: sectionproperties.checkoutBtnTexttransform,
|
|
262
|
-
fontWeight: sectionproperties.checkoutBtnTextfontweight,
|
|
263
|
-
fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
|
|
264
|
-
border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
|
|
265
|
-
transition: '.3s',
|
|
266
|
-
':hover': {
|
|
267
|
-
background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
|
|
268
|
-
color: sectionproperties.checkoutBtnTextcoloronhover,
|
|
269
|
-
},
|
|
270
|
-
}),
|
|
271
|
-
productNameStyles: css({
|
|
272
|
-
color: sectionproperties.prodNameColor,
|
|
273
|
-
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
274
|
-
textTransform: sectionproperties.prodNameTextTranform,
|
|
275
|
-
fontWeight: sectionproperties.prodNameFontWeight,
|
|
276
|
-
}),
|
|
277
|
-
productPricestyles: css({
|
|
278
|
-
color: sectionproperties.prodPriceColor,
|
|
279
|
-
fontSize: sectionproperties.prodpriceFontSize + 'px',
|
|
280
|
-
fontWeight: sectionproperties.prodPriceFontWeight,
|
|
281
|
-
}),
|
|
282
|
-
productSalePricestyles: css({
|
|
283
|
-
color: sectionproperties.prodsalePriceColor,
|
|
284
|
-
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
285
|
-
fontWeight: sectionproperties.prodsalePriceFontWeight,
|
|
286
|
-
}),
|
|
287
|
-
imagecont: css({
|
|
288
|
-
width: '8vh',
|
|
289
|
-
height: '8vh',
|
|
290
|
-
border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
|
|
291
|
-
backgroundColor: sectionproperties.prodimage_bgcolor,
|
|
292
|
-
borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
|
|
293
|
-
borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
|
|
294
|
-
borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
|
|
295
|
-
borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
|
|
296
|
-
display: 'flex',
|
|
297
|
-
alignItems: 'center',
|
|
298
|
-
justifyContent: 'center',
|
|
299
|
-
backgroundRepeat: 'no-repeat',
|
|
300
|
-
backgroundSize: 'cover',
|
|
301
|
-
backgroundPosition: 'center',
|
|
302
|
-
position: 'relative',
|
|
303
|
-
}),
|
|
304
|
-
applybtnstyles: css({
|
|
305
|
-
width: sectionproperties.applybtn_width + 'px',
|
|
306
|
-
height: sectionproperties.applybtn_height + 'px',
|
|
307
|
-
borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
|
|
308
|
-
textTransform: sectionproperties.applybtn_texttransform,
|
|
309
|
-
fontSize: sectionproperties.applybtn_fontsize + 'px',
|
|
310
|
-
color: sectionproperties.applybtn_textColor,
|
|
311
|
-
fontWeight: sectionproperties.applybtn_Textfontweight,
|
|
312
|
-
background: sectionproperties.applybtn_bgColor,
|
|
313
|
-
border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
|
|
314
|
-
transition: '.3s',
|
|
315
|
-
':hover': {
|
|
316
|
-
background: sectionproperties.applybtn_bgColoronhover,
|
|
317
|
-
color: sectionproperties.applybtn_Textcoloronhover,
|
|
318
|
-
},
|
|
319
|
-
}),
|
|
320
|
-
inputfiledstyles: css({}),
|
|
321
|
-
checkorderbtnstyles: css({
|
|
322
|
-
background: sectionproperties.generalbtn_bgColor,
|
|
323
|
-
width: sectionproperties.generalbtn_width,
|
|
324
|
-
height: sectionproperties.generalbtn_height,
|
|
325
|
-
borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
|
|
326
|
-
borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
|
|
327
|
-
borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
|
|
328
|
-
borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
|
|
329
|
-
color: sectionproperties.generalbtn_textColor,
|
|
330
|
-
textTransform: sectionproperties.generalbtn_texttransform,
|
|
331
|
-
fontWeight: sectionproperties.generalbtn_fontweight,
|
|
332
|
-
fontSize: sectionproperties.generalbtn_fontsize + 'px',
|
|
333
|
-
border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
|
|
334
|
-
transition: '.3s',
|
|
335
|
-
':hover': {
|
|
336
|
-
background: sectionproperties.generalbtn_bgColoronhover,
|
|
337
|
-
color: sectionproperties.generalbtn_textColoronhover,
|
|
338
|
-
},
|
|
339
|
-
}),
|
|
340
|
-
input_label_name: css({
|
|
341
|
-
color: sectionproperties.form_labelcolor,
|
|
342
|
-
textTransform: sectionproperties.form_labeltexttransform,
|
|
343
|
-
fontWeight: sectionproperties.form_labelfontweight,
|
|
344
|
-
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
345
|
-
}),
|
|
346
|
-
form_control: css({
|
|
347
|
-
position: 'relative',
|
|
348
|
-
display: 'flex',
|
|
349
|
-
alignItems: 'center',
|
|
350
|
-
display: 'block',
|
|
351
|
-
width: '100%',
|
|
352
|
-
padding: '0 30px',
|
|
353
|
-
transition: '.3s',
|
|
354
|
-
fontWeight: 500,
|
|
355
|
-
border: sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0,
|
|
356
|
-
borderBottom: sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor,
|
|
357
|
-
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
358
|
-
height: sectionproperties.inputfieldheight + 'px',
|
|
359
|
-
background: sectionproperties.input_bgcolor,
|
|
360
|
-
color: sectionproperties.inputfieldcolor,
|
|
361
|
-
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
362
|
-
':focus': {
|
|
363
|
-
borderColor: sectionproperties.inputfeildbordercoloronfocus,
|
|
364
|
-
boxShadow: 'none',
|
|
365
|
-
},
|
|
366
|
-
':focus .login_input_icon': {
|
|
367
|
-
color: sectionproperties.inputfeildbordercoloronfocus,
|
|
368
|
-
},
|
|
369
|
-
}),
|
|
370
|
-
innersection: css({
|
|
371
|
-
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
372
|
-
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
373
|
-
border: sectionproperties.innersectionborderWidth + 'px solid ' + sectionproperties.innersectionborderColor,
|
|
374
|
-
}),
|
|
375
|
-
containerstyles: css({
|
|
376
|
-
paddingLeft: sectionproperties.cardpaddinghorizontal + 'px',
|
|
377
|
-
paddingRight: sectionproperties.cardpaddinghorizontal + 'px',
|
|
378
|
-
paddingTop: sectionproperties.paddingTop + 'px',
|
|
379
|
-
paddingBottom: sectionproperties.paddingBottom + 'px',
|
|
380
|
-
background: sectionproperties.backgroundColor,
|
|
381
|
-
borderTop: sectionproperties.sectioncardborderwidth + 'px solid ' + sectionproperties.sectioncardbordercolor,
|
|
382
|
-
minHeight: '70vh',
|
|
383
|
-
'@media (max-width: 800px)': {
|
|
384
|
-
marginTop: sectionproperties.marginTopResp + 'px',
|
|
385
|
-
},
|
|
386
|
-
}),
|
|
387
|
-
};
|
|
388
|
-
const addorderfuncrunner = async () => {
|
|
389
|
-
// var temppayload = fetchcustomercartQueryContext?.data?.data?.customercart;
|
|
390
|
-
// ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
391
|
-
// temppayload.endpointurl = '/ChooseState_Country';
|
|
392
|
-
GeneralAPIMutationContext.mutate({
|
|
393
|
-
endpointurl: '/ChooseState_Country',
|
|
394
|
-
stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
|
|
395
|
-
countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
|
|
396
|
-
cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
|
|
397
|
-
address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
|
|
398
|
-
paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
|
|
399
|
-
name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
|
|
400
|
-
email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
|
|
401
|
-
mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
|
|
402
|
-
notes: fetchcustomercartQueryContext?.data?.data?.customercart.notes,
|
|
403
|
-
aff_code: fetchcustomercartQueryContext?.data?.data?.customercart.aff_code,
|
|
404
|
-
shippingmethod_id: fetchcustomercartQueryContext?.data?.data?.customercart.shippingmethod_id,
|
|
405
|
-
mutateSuccesscallback: (data, variables) => {
|
|
406
|
-
if (data.data.status) {
|
|
407
|
-
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
408
|
-
cartarr.data = data.data.cartresponse;
|
|
409
|
-
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
410
|
-
if (data.data.cdata != null) {
|
|
411
|
-
// const cookies = new Cookies();
|
|
412
|
-
localStorage.setItem('cdata', data.data.cdata);
|
|
413
|
-
}
|
|
414
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && fetchcustomercartQueryContext?.data?.data?.customercart.name.length < 3) {
|
|
415
|
-
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
416
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && fetchcustomercartQueryContext?.data?.data?.customercart.mobile.length < 11) {
|
|
417
|
-
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
418
|
-
} else {
|
|
419
|
-
AddOrderMutationContext.mutate();
|
|
420
|
-
}
|
|
421
|
-
// AddOrderMutationContext.mutate();
|
|
422
|
-
} else {
|
|
423
|
-
NotificationManager.warning('', data.data.reason);
|
|
424
|
-
}
|
|
425
|
-
},
|
|
426
|
-
});
|
|
427
|
-
};
|
|
428
|
-
const ischeckoutbuttonloading = () => {
|
|
429
|
-
var isloading = false;
|
|
430
|
-
if (AddOrderMutationContext.isLoading || ChooseState_CountryMutationContext.isLoading || GeneralAPIMutationContext.isLoading) {
|
|
431
|
-
isloading = true;
|
|
432
|
-
} else {
|
|
433
|
-
isloading = false;
|
|
434
|
-
}
|
|
435
|
-
return isloading;
|
|
436
|
-
};
|
|
437
|
-
const Mycart = () => {
|
|
438
|
-
return (
|
|
439
|
-
<div className="row m-0 w-100 mb-md-3">
|
|
440
|
-
<div className="col-lg-12 d-flex align-items-center p-0">
|
|
441
|
-
<p
|
|
442
|
-
style={{
|
|
443
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
444
|
-
color: sectionproperties.sectionTitleColor,
|
|
445
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
446
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
447
|
-
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
448
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
449
|
-
}}
|
|
450
|
-
>
|
|
451
|
-
{langdetect == 'en' ? sectionproperties.cartTitlte_en : sectionproperties.cartTitlte_ar}
|
|
452
|
-
</p>
|
|
453
|
-
</div>
|
|
454
|
-
{ChooseState_CountryMutationContext.isLoading && (
|
|
455
|
-
<div className="col-lg-12 allcentered p-0">
|
|
456
|
-
<Messaging color="#000" width="10px" height="10px" duration="1s" />
|
|
457
|
-
</div>
|
|
458
|
-
)}
|
|
459
|
-
{!ChooseState_CountryMutationContext.isLoading && (
|
|
460
|
-
<div className="row m-0 w-100">
|
|
461
|
-
<div className="col-lg-12 p-0">
|
|
462
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
|
|
463
|
-
if (item.product_extrafields != null) {
|
|
464
|
-
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
465
|
-
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
466
|
-
// alert(product_extrafields_parsed);
|
|
467
|
-
}
|
|
468
|
-
return (
|
|
469
|
-
<div
|
|
470
|
-
className={langdetect == 'en' ? 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pl-2 pr-0 mb-3' : 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pr-2 pl-0 mb-3'}
|
|
471
|
-
style={{
|
|
472
|
-
background: sectionproperties.summary_sectionbgcolor,
|
|
473
|
-
borderRadius: sectionproperties.summary_sectionborderradius + 'px',
|
|
474
|
-
border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
|
|
475
|
-
}}
|
|
476
|
-
>
|
|
477
|
-
<div className="row m-0 w-100 d-flex">
|
|
478
|
-
<div className={`${checkoutstyles.imagecont}`}>
|
|
479
|
-
<Imagekitimagecomp
|
|
480
|
-
urlEndpoint={ikimagecredcontext?.ikimageendpoint}
|
|
481
|
-
publicKey={ikimagecredcontext?.ikimagepublickey}
|
|
482
|
-
path={
|
|
483
|
-
item.productinfo.hasvariants == 0
|
|
484
|
-
? '/tr:w-300,h-300/' + item.productinfo.productmainimage
|
|
485
|
-
: '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
|
|
486
|
-
}
|
|
487
|
-
style={{
|
|
488
|
-
width: '100%',
|
|
489
|
-
height: '100%',
|
|
490
|
-
objectFit: 'contain',
|
|
491
|
-
}}
|
|
492
|
-
loading="lazy"
|
|
493
|
-
/>
|
|
494
|
-
</div>
|
|
495
|
-
<div className="col-lg-7 col-md-7 col-sm-7">
|
|
496
|
-
<div className="row m-0 w-100">
|
|
497
|
-
<div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex justify-content-start">
|
|
498
|
-
<p
|
|
499
|
-
className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 w-100 '}
|
|
500
|
-
style={{
|
|
501
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
502
|
-
}}
|
|
503
|
-
>
|
|
504
|
-
{langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
|
|
505
|
-
</p>
|
|
506
|
-
</div>
|
|
507
|
-
{sectionproperties.producttype == 'Product' && sectionproperties.showquantity == 'Show' && (
|
|
508
|
-
<div className="col-lg-12 p-0 d-flex justify-content-start">
|
|
509
|
-
<p
|
|
510
|
-
className="m-0 p-0 font-weight-500 text-light w-100"
|
|
511
|
-
style={{
|
|
512
|
-
textAlign: langdetect == 'en' ? 'left' : 'right',
|
|
513
|
-
}}
|
|
514
|
-
>
|
|
515
|
-
{lang.qty}: {item.quantity}
|
|
516
|
-
</p>
|
|
517
|
-
</div>
|
|
518
|
-
)}
|
|
519
|
-
<div className="col-lg-12 col-md-12 col-sm-12 d-flex mt-2 flex-column p-0">
|
|
520
|
-
{item.productinfo.hasvariants == 1 &&
|
|
521
|
-
item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
|
|
522
|
-
return (
|
|
523
|
-
<div class="row m-0 w-100">
|
|
524
|
-
<div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
|
|
525
|
-
<p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
|
|
526
|
-
<p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>
|
|
527
|
-
{variantitem.optionvalue == '#c9b0a1'
|
|
528
|
-
? 'Beige'
|
|
529
|
-
: variantitem.optionvalue == '#000000'
|
|
530
|
-
? 'Black'
|
|
531
|
-
: variantitem.optionvalue}
|
|
532
|
-
</p>
|
|
533
|
-
</div>
|
|
534
|
-
</div>
|
|
535
|
-
);
|
|
536
|
-
})}
|
|
537
|
-
{item.product_extrafields != null &&
|
|
538
|
-
product_extrafields.map((extrafielditem, extrafieldindex) => {
|
|
539
|
-
return (
|
|
540
|
-
<div class="row m-0 w-100">
|
|
541
|
-
<div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
|
|
542
|
-
<p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>
|
|
543
|
-
{langdetect == 'en' ? extrafielditem.title_en : extrafielditem.title_ar}:
|
|
544
|
-
</p>
|
|
545
|
-
<p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}> {extrafielditem.value}</p>
|
|
546
|
-
</div>
|
|
547
|
-
</div>
|
|
548
|
-
);
|
|
549
|
-
})}
|
|
550
|
-
</div>
|
|
551
|
-
</div>
|
|
552
|
-
</div>
|
|
553
|
-
{sectionproperties.prodPriceshow == 'Show' && (
|
|
554
|
-
<div className="col-lg-3 col-md-3 col-sm-2 p-0">
|
|
555
|
-
<div className="row m-0 w-100 h-100">
|
|
556
|
-
<div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
|
|
557
|
-
{item.productinfo.hasvariants == 0 && (
|
|
558
|
-
<div className="row m-0 w-100 d-flex flex-column justify-content-end">
|
|
559
|
-
{item.productinfo.hassale == 0 && (
|
|
560
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end">
|
|
561
|
-
<p
|
|
562
|
-
className={
|
|
563
|
-
langdetect == 'en'
|
|
564
|
-
? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
|
|
565
|
-
: `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
|
|
566
|
-
}
|
|
567
|
-
>
|
|
568
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}
|
|
569
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
570
|
-
? parseFloat(Number(item.finalprice).toFixed(2))
|
|
571
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
572
|
-
? Math.floor(item.finalprice).toLocaleString()
|
|
573
|
-
: parseFloat(item.finalprice).toFixed(2)}
|
|
574
|
-
{/* {item.finalprice} */} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
575
|
-
</p>
|
|
576
|
-
</div>
|
|
577
|
-
)}
|
|
578
|
-
{item.productinfo.hassale == 1 && (
|
|
579
|
-
<div className="row m-0 w-100 d-flex flex-column justify-content-end">
|
|
580
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end">
|
|
581
|
-
<p
|
|
582
|
-
className={
|
|
583
|
-
langdetect == 'en'
|
|
584
|
-
? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
|
|
585
|
-
: `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
|
|
586
|
-
}
|
|
587
|
-
>
|
|
588
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}
|
|
589
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
590
|
-
? parseFloat(Number(item.finalprice).toFixed(2))
|
|
591
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
592
|
-
? Math.floor(item.finalprice).toLocaleString()
|
|
593
|
-
: parseFloat(item.finalprice).toFixed(2)}
|
|
594
|
-
{/* {parseFloat(item.finalprice).toFixed(2)} */} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
595
|
-
</p>
|
|
596
|
-
</div>
|
|
597
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end">
|
|
598
|
-
<p
|
|
599
|
-
className={
|
|
600
|
-
langdetect == 'en'
|
|
601
|
-
? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
|
|
602
|
-
: `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
|
|
603
|
-
}
|
|
604
|
-
>
|
|
605
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
606
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
607
|
-
? parseFloat(Number(item.productinfo.defaultprice).toFixed(2))
|
|
608
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
609
|
-
? Math.floor(item.productinfo.defaultprice).toLocaleString()
|
|
610
|
-
: parseFloat(item.productinfo.defaultprice).toFixed(2)}{' '}
|
|
611
|
-
{/* {parseFloat(item.productinfo.defaultprice).toFixed(2)}{' '} */}
|
|
612
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
613
|
-
</p>
|
|
614
|
-
</div>
|
|
615
|
-
</div>
|
|
616
|
-
)}
|
|
617
|
-
</div>
|
|
618
|
-
)}
|
|
619
|
-
{item.productinfo.hasvariants == 1 && (
|
|
620
|
-
<div className="row m-0 w-100 d-flex flex-column justify-content-end">
|
|
621
|
-
{item.productinfo.variantinfo.hassale == 0 && (
|
|
622
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end">
|
|
623
|
-
<p
|
|
624
|
-
className={
|
|
625
|
-
langdetect == 'en'
|
|
626
|
-
? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
|
|
627
|
-
: `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
|
|
628
|
-
}
|
|
629
|
-
>
|
|
630
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : authdetailsContext?.currencyname_ar}{' '}
|
|
631
|
-
{/* {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)} */}
|
|
632
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
633
|
-
? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2))
|
|
634
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
635
|
-
? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString()
|
|
636
|
-
: parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}
|
|
637
|
-
</p>
|
|
638
|
-
</div>
|
|
639
|
-
)}
|
|
640
|
-
{item.productinfo.variantinfo.hassale == 1 && (
|
|
641
|
-
<div className="row m-0 w-100 d-flex flex-column justify-content-end">
|
|
642
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end">
|
|
643
|
-
<p
|
|
644
|
-
className={
|
|
645
|
-
langdetect == 'en'
|
|
646
|
-
? `${checkoutstyles.productPricestyles}` +
|
|
647
|
-
' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
|
|
648
|
-
: `${checkoutstyles.productPricestyles}` +
|
|
649
|
-
' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
650
|
-
}
|
|
651
|
-
>
|
|
652
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
653
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
654
|
-
? parseFloat(Number(item.productinfo.variantinfo.variantsaleprice).toFixed(2))
|
|
655
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
656
|
-
? Math.floor(item.productinfo.variantinfo.variantsaleprice).toLocaleString()
|
|
657
|
-
: parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2)}{' '}
|
|
658
|
-
{/* {parseFloat(item.productinfo.variantinfo.variantsaleprice).toFixed(2)} */}
|
|
659
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
660
|
-
</p>
|
|
661
|
-
</div>
|
|
662
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end">
|
|
663
|
-
<p
|
|
664
|
-
className={
|
|
665
|
-
langdetect == 'en'
|
|
666
|
-
? `${checkoutstyles.Salepricestyless}` +
|
|
667
|
-
' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
|
|
668
|
-
: `${checkoutstyles.Salepricestyless}` +
|
|
669
|
-
' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
|
|
670
|
-
}
|
|
671
|
-
>
|
|
672
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
673
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
674
|
-
? parseFloat(Number(item.productinfo.variantinfo.variantprice).toFixed(2))
|
|
675
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
676
|
-
? Math.floor(item.productinfo.variantinfo.variantprice).toLocaleString()
|
|
677
|
-
: parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)}
|
|
678
|
-
{/* {parseFloat(item.productinfo.variantinfo.variantprice).toFixed(2)} */}{' '}
|
|
679
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
680
|
-
</p>
|
|
681
|
-
</div>
|
|
682
|
-
</div>
|
|
683
|
-
)}
|
|
684
|
-
</div>
|
|
685
|
-
)}
|
|
686
|
-
</div>
|
|
687
|
-
</div>
|
|
688
|
-
</div>
|
|
689
|
-
)}
|
|
690
|
-
</div>
|
|
691
|
-
</div>
|
|
692
|
-
);
|
|
693
|
-
})}
|
|
694
|
-
|
|
695
|
-
<div class={`${checkoutstyles.innersection}` + ' row m-0 w-100 p-3 '}>
|
|
696
|
-
<div className="col-lg-12 p-0 mb-1">
|
|
697
|
-
{sectionproperties.showpromocodesection == 'Show' && (
|
|
698
|
-
<div className="col-lg-12 p-0 mb-4">
|
|
699
|
-
<label className={`${checkoutstyles.input_label_name}` + ' p-0 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
|
|
700
|
-
<div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
|
|
701
|
-
<div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
|
|
702
|
-
<input
|
|
703
|
-
type="text"
|
|
704
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
705
|
-
placeholder={lang.giftcarddicountcode}
|
|
706
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
|
|
707
|
-
onChange={(event) => {
|
|
708
|
-
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
709
|
-
cartarr.data.customercart.couponname = event.target.value;
|
|
710
|
-
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
711
|
-
}}
|
|
712
|
-
disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
|
|
713
|
-
style={{
|
|
714
|
-
boxShadow: 'none',
|
|
715
|
-
}}
|
|
716
|
-
/>
|
|
717
|
-
</div>
|
|
718
|
-
<div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
|
|
719
|
-
<button
|
|
720
|
-
className={` ${checkoutstyles.applybtnstyles}`}
|
|
721
|
-
onClick={() => {
|
|
722
|
-
if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
|
|
723
|
-
var payloadobj = {
|
|
724
|
-
couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
|
|
725
|
-
functype: 'add',
|
|
726
|
-
};
|
|
727
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
|
|
728
|
-
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
729
|
-
} else {
|
|
730
|
-
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
731
|
-
}
|
|
732
|
-
} else {
|
|
733
|
-
var payloadobj = {
|
|
734
|
-
functype: 'delete',
|
|
735
|
-
};
|
|
736
|
-
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
737
|
-
}
|
|
738
|
-
}}
|
|
739
|
-
disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
|
|
740
|
-
>
|
|
741
|
-
<span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
|
|
742
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
|
|
743
|
-
? langdetect == 'en'
|
|
744
|
-
? 'Remove'
|
|
745
|
-
: 'حذف'
|
|
746
|
-
: langdetect == 'en'
|
|
747
|
-
? 'Apply'
|
|
748
|
-
: 'تطبيق'}
|
|
749
|
-
</span>
|
|
750
|
-
<div
|
|
751
|
-
className={
|
|
752
|
-
ApplyPromoCodeMutationContext.isLoading
|
|
753
|
-
? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
|
|
754
|
-
: `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
|
|
755
|
-
}
|
|
756
|
-
>
|
|
757
|
-
<CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
|
|
758
|
-
</div>
|
|
759
|
-
</button>
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
</div>
|
|
763
|
-
)}
|
|
764
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance > 0 && (
|
|
765
|
-
<div className="row m-0 w-100">
|
|
766
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
767
|
-
<p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
|
|
768
|
-
{langdetect == 'en' ? 'Wallet balance' : 'حساب المحفظة'}
|
|
769
|
-
</p>
|
|
770
|
-
</div>
|
|
771
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
772
|
-
<p
|
|
773
|
-
className={
|
|
774
|
-
langdetect == 'en'
|
|
775
|
-
? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
|
|
776
|
-
: `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
|
|
777
|
-
}
|
|
778
|
-
>
|
|
779
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {fetchcustomercartQueryContext?.data?.data?.customercart?.availablewalletbalance}
|
|
780
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
781
|
-
</p>
|
|
782
|
-
</div>
|
|
783
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 0 && (
|
|
784
|
-
<div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
|
|
785
|
-
<p
|
|
786
|
-
style={{ color: 'green', cursor: 'pointer' }}
|
|
787
|
-
onClick={() => {
|
|
788
|
-
usewalletpoints();
|
|
789
|
-
}}
|
|
790
|
-
>
|
|
791
|
-
{langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'}
|
|
792
|
-
</p>
|
|
793
|
-
</div>
|
|
794
|
-
)}
|
|
795
|
-
</div>
|
|
796
|
-
)}
|
|
797
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
|
|
798
|
-
<div className="row m-0 w-100">
|
|
799
|
-
<div className="col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0">
|
|
800
|
-
<p
|
|
801
|
-
style={{ color: 'red', cursor: 'pointer' }}
|
|
802
|
-
onClick={() => {
|
|
803
|
-
usewalletpoints();
|
|
804
|
-
}}
|
|
805
|
-
>
|
|
806
|
-
{langdetect == 'en' ? 'Remove Points' : 'حذف النقاط'}
|
|
807
|
-
</p>
|
|
808
|
-
</div>
|
|
809
|
-
</div>
|
|
810
|
-
)}
|
|
811
|
-
{sectionproperties.showtotalsection == 'Show' && (
|
|
812
|
-
<div className="row m-0 w-100">
|
|
813
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
814
|
-
<p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
|
|
815
|
-
</div>
|
|
816
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
817
|
-
<p
|
|
818
|
-
className={
|
|
819
|
-
langdetect == 'en'
|
|
820
|
-
? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
|
|
821
|
-
: `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
|
|
822
|
-
}
|
|
823
|
-
>
|
|
824
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
825
|
-
{/* {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2)} */}
|
|
826
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
827
|
-
? parseFloat(Number(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2))
|
|
828
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
829
|
-
? Math.floor(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toLocaleString()
|
|
830
|
-
: parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalprice).toFixed(2)}{' '}
|
|
831
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
832
|
-
</p>
|
|
833
|
-
</div>
|
|
834
|
-
</div>
|
|
835
|
-
)}
|
|
836
|
-
{sectionproperties.showtotalsection == 'Show' && fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.length != 0 && (
|
|
837
|
-
<div className="row m-0 w-100">
|
|
838
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart?.genpayments?.map((item, index) => {
|
|
839
|
-
return (
|
|
840
|
-
<div class="col-lg-12 p-0">
|
|
841
|
-
<div className="row m-0 w-100">
|
|
842
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
843
|
-
<p
|
|
844
|
-
className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}
|
|
845
|
-
style={{
|
|
846
|
-
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
|
|
847
|
-
}}
|
|
848
|
-
>
|
|
849
|
-
{langdetect == 'en' ? item.title_en : item.title_ar}
|
|
850
|
-
</p>
|
|
851
|
-
</div>
|
|
852
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
853
|
-
<p
|
|
854
|
-
className={
|
|
855
|
-
langdetect == 'en'
|
|
856
|
-
? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
|
|
857
|
-
: `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
|
|
858
|
-
}
|
|
859
|
-
style={{
|
|
860
|
-
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)',
|
|
861
|
-
}}
|
|
862
|
-
>
|
|
863
|
-
{item.addsubtype == 'subtract' && <span>-</span>}
|
|
864
|
-
{item.valuetype == 'value' && (
|
|
865
|
-
<span>
|
|
866
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} {item.value}{' '}
|
|
867
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
868
|
-
</span>
|
|
869
|
-
)}
|
|
870
|
-
{item.valuetype == 'percentage' && <span>{item.value}%</span>}
|
|
871
|
-
</p>
|
|
872
|
-
</div>
|
|
873
|
-
</div>
|
|
874
|
-
</div>
|
|
875
|
-
);
|
|
876
|
-
})}
|
|
877
|
-
</div>
|
|
878
|
-
)}
|
|
879
|
-
</div>
|
|
880
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart?.usewalletpoints == 1 && (
|
|
881
|
-
<div className="row m-0 w-100">
|
|
882
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
883
|
-
<p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>
|
|
884
|
-
{langdetect == 'en' ? 'Wallet points used' : 'النقاط المستخدمة'}
|
|
885
|
-
</p>
|
|
886
|
-
</div>
|
|
887
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
888
|
-
<p
|
|
889
|
-
className={
|
|
890
|
-
langdetect == 'en'
|
|
891
|
-
? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
|
|
892
|
-
: `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
|
|
893
|
-
}
|
|
894
|
-
style={{ color: 'red' }}
|
|
895
|
-
>
|
|
896
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''} -{' '}
|
|
897
|
-
{parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart?.walletpointsused)} {langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
898
|
-
</p>
|
|
899
|
-
</div>
|
|
900
|
-
</div>
|
|
901
|
-
)}
|
|
902
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
|
|
903
|
-
<div className="col-lg-12 p-0 mb-1">
|
|
904
|
-
<div className="row m-0 w-100">
|
|
905
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
906
|
-
<p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
|
|
907
|
-
</div>
|
|
908
|
-
|
|
909
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
910
|
-
<p
|
|
911
|
-
className={
|
|
912
|
-
langdetect == 'en'
|
|
913
|
-
? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
|
|
914
|
-
: `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
|
|
915
|
-
}
|
|
916
|
-
>
|
|
917
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
|
|
918
|
-
<span>
|
|
919
|
-
- {langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
920
|
-
{parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.discountprice).toFixed(2)}{' '}
|
|
921
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
922
|
-
</span>
|
|
923
|
-
)}
|
|
924
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
|
|
925
|
-
</p>
|
|
926
|
-
</div>
|
|
927
|
-
</div>
|
|
928
|
-
</div>
|
|
929
|
-
)}
|
|
930
|
-
{sectionproperties.hideshipping == 'Show' && (
|
|
931
|
-
<div className="col-lg-12 p-0">
|
|
932
|
-
<div className="row m-0 w-100">
|
|
933
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
934
|
-
<p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>
|
|
935
|
-
{/* {lang.shippingfees} */}
|
|
936
|
-
{langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar}
|
|
937
|
-
</p>
|
|
938
|
-
</div>
|
|
939
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
|
|
940
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
941
|
-
<p
|
|
942
|
-
className={
|
|
943
|
-
langdetect == 'en'
|
|
944
|
-
? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
|
|
945
|
-
: `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
|
|
946
|
-
}
|
|
947
|
-
>
|
|
948
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
949
|
-
{parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice).toFixed(2)}{' '}
|
|
950
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
951
|
-
</p>
|
|
952
|
-
</div>
|
|
953
|
-
)}
|
|
954
|
-
{!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
|
|
955
|
-
<div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
|
|
956
|
-
<p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
|
|
957
|
-
{lang.outofzone}
|
|
958
|
-
</p>
|
|
959
|
-
</div>
|
|
960
|
-
)}
|
|
961
|
-
</div>
|
|
962
|
-
</div>
|
|
963
|
-
)}
|
|
964
|
-
{sectionproperties.showseparator == 'Show' && (
|
|
965
|
-
<div className="col-lg-12 p-0">
|
|
966
|
-
<hr className="mt-2 mb-2" />
|
|
967
|
-
</div>
|
|
968
|
-
)}
|
|
969
|
-
{sectionproperties.showtotalsection == 'Show' && (
|
|
970
|
-
<div className="col-lg-12 p-0">
|
|
971
|
-
<div className="row m-0 w-100">
|
|
972
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
973
|
-
<p
|
|
974
|
-
className="d-flex align-items-start"
|
|
975
|
-
style={{
|
|
976
|
-
fontSize: sectionproperties.total_fontsize + 'px',
|
|
977
|
-
fontWeight: sectionproperties.total_fontweight,
|
|
978
|
-
textTransform: sectionproperties.total_texttransform,
|
|
979
|
-
color: sectionproperties.total_color,
|
|
980
|
-
}}
|
|
981
|
-
>
|
|
982
|
-
{lang.total}
|
|
983
|
-
</p>
|
|
984
|
-
</div>
|
|
985
|
-
<div className="col-lg-6 col-md-6 col-sm-6 p-0">
|
|
986
|
-
<div className="row m-0 w-100">
|
|
987
|
-
<div className="col-lg-12 p-0 d-flex justify-content-end ">
|
|
988
|
-
<p
|
|
989
|
-
className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
|
|
990
|
-
style={{
|
|
991
|
-
fontSize: sectionproperties.total_fontsize + 'px',
|
|
992
|
-
fontWeight: sectionproperties.total_fontweight,
|
|
993
|
-
textTransform: sectionproperties.total_texttransform,
|
|
994
|
-
color: sectionproperties.total_color,
|
|
995
|
-
}}
|
|
996
|
-
>
|
|
997
|
-
{langdetect == 'en' ? authdetailsContext?.currencyname_en : ''}{' '}
|
|
998
|
-
{sectionproperties.removedecimals == 'Without Decimals'
|
|
999
|
-
? parseFloat(Number(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2))
|
|
1000
|
-
: sectionproperties.removedecimals == 'Without Decimals and Separated With Comma'
|
|
1001
|
-
? Math.floor(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toLocaleString()
|
|
1002
|
-
: parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2)}
|
|
1003
|
-
{/* {parseFloat(fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount).toFixed(2)}{' '} */}
|
|
1004
|
-
{langdetect == 'en' ? '' : authdetailsContext?.currencyname_ar}
|
|
1005
|
-
</p>
|
|
1006
|
-
</div>
|
|
1007
|
-
</div>
|
|
1008
|
-
</div>
|
|
1009
|
-
</div>
|
|
1010
|
-
</div>
|
|
1011
|
-
)}
|
|
1012
|
-
{sectionproperties.slideshowtext1_show == 'Show' && (
|
|
1013
|
-
<div
|
|
1014
|
-
class="col-lg-12 p-0 my-2 p-2 allcentered mb-3"
|
|
1015
|
-
style={{
|
|
1016
|
-
background: '#eee',
|
|
1017
|
-
borderRadius: 10,
|
|
1018
|
-
}}
|
|
1019
|
-
>
|
|
1020
|
-
<p
|
|
1021
|
-
class="m-0 p-0"
|
|
1022
|
-
style={{
|
|
1023
|
-
color: sectionproperties.slideshowText1ContentColor,
|
|
1024
|
-
fontSize: sectionproperties.slideshowText1ContentFontSize + 'px',
|
|
1025
|
-
fontWeight: sectionproperties.slideshowText1ContentFontWeight,
|
|
1026
|
-
}}
|
|
1027
|
-
dangerouslySetInnerHTML={{ __html: langdetect == 'en' ? sectionproperties.text1editortexten : sectionproperties.text1editortextar }}
|
|
1028
|
-
></p>
|
|
1029
|
-
</div>
|
|
1030
|
-
)}
|
|
1031
|
-
<div
|
|
1032
|
-
className="col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3"
|
|
1033
|
-
style={{
|
|
1034
|
-
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
|
|
1035
|
-
}}
|
|
1036
|
-
>
|
|
1037
|
-
<button
|
|
1038
|
-
className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
|
|
1039
|
-
onClick={() => {
|
|
1040
|
-
var payloadobj = {};
|
|
1041
|
-
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
1042
|
-
cartinfoupdater('paymentmethod', 'cod');
|
|
1043
|
-
}
|
|
1044
|
-
addorderfuncrunner();
|
|
1045
|
-
}}
|
|
1046
|
-
disabled={ischeckoutbuttonloading() == true ? true : false}
|
|
1047
|
-
>
|
|
1048
|
-
{ischeckoutbuttonloading() && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
|
|
1049
|
-
{!ischeckoutbuttonloading()
|
|
1050
|
-
? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
|
|
1051
|
-
? lang.continuetopayment
|
|
1052
|
-
: authdetailsContext.loggedin
|
|
1053
|
-
? langdetect == 'en'
|
|
1054
|
-
? sectionproperties.checkoutbtn_en2
|
|
1055
|
-
: sectionproperties.checkoutbtn_ar2
|
|
1056
|
-
: langdetect == 'en'
|
|
1057
|
-
? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest
|
|
1058
|
-
: sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
|
|
1059
|
-
: ''}
|
|
1060
|
-
</button>
|
|
1061
|
-
|
|
1062
|
-
{/* <button
|
|
1063
|
-
className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
|
|
1064
|
-
onClick={() => {
|
|
1065
|
-
var payloadobj = {};
|
|
1066
|
-
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
1067
|
-
cartinfoupdater('paymentmethod', 'cod');
|
|
1068
|
-
}
|
|
1069
|
-
addorderfuncrunner();
|
|
1070
|
-
// AddOrderMutationContext.mutate(payloadobj);
|
|
1071
|
-
}}
|
|
1072
|
-
disabled={ischeckoutbuttonloading() == true ? true : false}
|
|
1073
|
-
>
|
|
1074
|
-
{ischeckoutbuttonloading() == true && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
|
|
1075
|
-
{!ischeckoutbuttonloading() == true
|
|
1076
|
-
? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
|
|
1077
|
-
? lang.continuetopayment
|
|
1078
|
-
: authdetailsContext.loggedin
|
|
1079
|
-
? langdetect == 'en'
|
|
1080
|
-
? sectionproperties.checkoutbtn_en2
|
|
1081
|
-
: sectionproperties.checkoutbtn_ar2
|
|
1082
|
-
: langdetect == 'en'
|
|
1083
|
-
? sectionproperties.checkoutbtn_en2 + 'asd ' + lang.asaguest
|
|
1084
|
-
: sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest
|
|
1085
|
-
: ''}
|
|
1086
|
-
</button> */}
|
|
1087
|
-
</div>
|
|
1088
|
-
{authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && (
|
|
1089
|
-
<div
|
|
1090
|
-
className="col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3"
|
|
1091
|
-
style={{
|
|
1092
|
-
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem',
|
|
1093
|
-
}}
|
|
1094
|
-
>
|
|
1095
|
-
<div class="row m-0 w-100">
|
|
1096
|
-
<div class="col-lg-12 p-0 allcentered mb-2">
|
|
1097
|
-
<p class="m-0 0-0">{langdetect == 'en' ? 'Already have an account' : 'لديك حساب بالفعل؟'}</p>
|
|
1098
|
-
</div>
|
|
1099
|
-
<div class="col-lg-12 p-0 allcentered">
|
|
1100
|
-
<button
|
|
1101
|
-
className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
|
|
1102
|
-
onClick={() => {
|
|
1103
|
-
routingcountext(StaticPagesLinksContext.Login);
|
|
1104
|
-
}}
|
|
1105
|
-
>
|
|
1106
|
-
{langdetect == 'en' ? 'Login' : 'تسجيل الدخول'}
|
|
1107
|
-
</button>
|
|
1108
|
-
</div>
|
|
1109
|
-
</div>
|
|
1110
|
-
</div>
|
|
1111
|
-
)}
|
|
1112
|
-
</div>
|
|
1113
|
-
</div>
|
|
1114
|
-
</div>
|
|
1115
|
-
)}
|
|
1116
|
-
</div>
|
|
1117
|
-
);
|
|
1118
|
-
};
|
|
1119
|
-
return (
|
|
1120
|
-
<div className={'row m-0 w-100 d-flex justify-content-center p-sm-0 '}>
|
|
1121
|
-
<div className={' col-lg-12 w-100 d-flex justify-content-center p-0 '}>
|
|
1122
|
-
<div className={checkoutstyles.containerstyles + ' w-100 d-flex justify-content-center px-md-2 '}>
|
|
1123
|
-
<div className={'row m-0 w-100 justify-content-center '}>
|
|
1124
|
-
<div className={langdetect == 'en' ? ' col-lg-8 col-md-12 pl-0 p-md-0 ' : ' col-lg-8 col-md-12 pr-0 p-md-0 '}>
|
|
1125
|
-
<div className="col-lg-12 d-flex align-items-center p-0">
|
|
1126
|
-
<p
|
|
1127
|
-
style={{
|
|
1128
|
-
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
1129
|
-
color: sectionproperties.sectionTitleColor,
|
|
1130
|
-
marginTop: sectionproperties.sectionTitleMarginTop + 'px',
|
|
1131
|
-
marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
|
|
1132
|
-
textTransform: sectionproperties.sectionTitleTextTransform,
|
|
1133
|
-
fontWeight: sectionproperties.sectionTitleFontWeight,
|
|
1134
|
-
}}
|
|
1135
|
-
>
|
|
1136
|
-
{langdetect == 'en' ? sectionproperties.checkoutButtonContenten : sectionproperties.checkoutButtonContentar}
|
|
1137
|
-
</p>
|
|
1138
|
-
</div>
|
|
1139
|
-
|
|
1140
|
-
{/* Logged in information */}
|
|
1141
|
-
{authdetailsContext.loggedin && (
|
|
1142
|
-
<div className="col-lg-12 p-0">
|
|
1143
|
-
<div
|
|
1144
|
-
className="pl-3 pr-3 pt-2 pb-2"
|
|
1145
|
-
style={{
|
|
1146
|
-
background: sectionproperties.userinfo_sectionbgcolor,
|
|
1147
|
-
borderRadius: sectionproperties.userinfo_borderradius + 'px',
|
|
1148
|
-
marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
|
|
1149
|
-
marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
|
|
1150
|
-
border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor,
|
|
1151
|
-
}}
|
|
1152
|
-
>
|
|
1153
|
-
<div className="row m-0 w-100">
|
|
1154
|
-
<div className={`${checkoutstyles.userinfo_iconcont}` + ' d-flex align-items-center justify-content-center '}>
|
|
1155
|
-
<FiCheckCircle size={20} />
|
|
1156
|
-
</div>
|
|
1157
|
-
<div className="col-lg-11 col-md-10 col-sm-10 p-0">
|
|
1158
|
-
<div className="row m-0 w-100">
|
|
1159
|
-
<div
|
|
1160
|
-
className="col-lg-12 d-flex align-items-center pl-2 pr-2"
|
|
1161
|
-
style={{
|
|
1162
|
-
fontSize: sectionproperties.userinfo_titlefontsize + 'px',
|
|
1163
|
-
color: sectionproperties.userinfo_titlecolor,
|
|
1164
|
-
fontWeight: sectionproperties.userinfo_titlefontweight,
|
|
1165
|
-
}}
|
|
1166
|
-
>
|
|
1167
|
-
{lang.loggedinas}
|
|
1168
|
-
</div>
|
|
1169
|
-
|
|
1170
|
-
<div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '}>
|
|
1171
|
-
<div className="m-0 p-0 d-flex align-items-center">
|
|
1172
|
-
<i
|
|
1173
|
-
className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
|
|
1174
|
-
style={{
|
|
1175
|
-
fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
|
|
1176
|
-
color: sectionproperties.userinfotext_iconcolor,
|
|
1177
|
-
marginRight: langdetect == 'en' ? '5px' : 0,
|
|
1178
|
-
marginLeft: langdetect == 'en' ? 0 : '5px',
|
|
1179
|
-
}}
|
|
1180
|
-
>
|
|
1181
|
-
<HiUser />
|
|
1182
|
-
</i>
|
|
1183
|
-
<p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.name}</p>
|
|
1184
|
-
</div>
|
|
1185
|
-
</div>
|
|
1186
|
-
<div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
|
|
1187
|
-
<div className="m-0 p-0 d-flex align-items-center">
|
|
1188
|
-
<i
|
|
1189
|
-
className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
|
|
1190
|
-
style={{
|
|
1191
|
-
fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
|
|
1192
|
-
color: sectionproperties.userinfotext_iconcolor,
|
|
1193
|
-
marginRight: langdetect == 'en' ? '5px' : 0,
|
|
1194
|
-
marginLeft: langdetect == 'en' ? 0 : '5px',
|
|
1195
|
-
}}
|
|
1196
|
-
>
|
|
1197
|
-
<BiPhone />
|
|
1198
|
-
</i>
|
|
1199
|
-
<p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.mobile}</p>
|
|
1200
|
-
</div>
|
|
1201
|
-
</div>
|
|
1202
|
-
<div className={`${checkoutstyles.userinfotextstyles}` + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '}>
|
|
1203
|
-
<div className="m-0 p-0 d-flex align-items-center">
|
|
1204
|
-
<i
|
|
1205
|
-
className="h-100 d-flex align-items-center justify-content-center mb-auto mt-1"
|
|
1206
|
-
style={{
|
|
1207
|
-
fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
|
|
1208
|
-
color: sectionproperties.userinfotext_iconcolor,
|
|
1209
|
-
marginRight: langdetect == 'en' ? '5px' : 0,
|
|
1210
|
-
marginLeft: langdetect == 'en' ? 0 : '5px',
|
|
1211
|
-
}}
|
|
1212
|
-
>
|
|
1213
|
-
<GrMail />
|
|
1214
|
-
</i>
|
|
1215
|
-
<p className="m-0 p-0 wordbreak">{authdetailsContext.customerinfo.email}</p>
|
|
1216
|
-
</div>
|
|
1217
|
-
</div>
|
|
1218
|
-
</div>
|
|
1219
|
-
</div>
|
|
1220
|
-
{langdetect == 'en' && (
|
|
1221
|
-
<div
|
|
1222
|
-
className="col-lg-12 justify-content-end float-right pl-2 pr-2"
|
|
1223
|
-
style={{
|
|
1224
|
-
fontSize: sectionproperties.userinfo_titlefontsize + 'px',
|
|
1225
|
-
color: sectionproperties.userinfo_titlecolor,
|
|
1226
|
-
fontWeight: sectionproperties.userinfo_titlefontweight,
|
|
1227
|
-
textAlign: 'right',
|
|
1228
|
-
textDecoration: 'underline',
|
|
1229
|
-
cursor: 'pointer',
|
|
1230
|
-
position: 'absolute',
|
|
1231
|
-
right: 10,
|
|
1232
|
-
top: 10,
|
|
1233
|
-
}}
|
|
1234
|
-
onClick={() => {
|
|
1235
|
-
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
1236
|
-
}}
|
|
1237
|
-
>
|
|
1238
|
-
{lang.update}
|
|
1239
|
-
</div>
|
|
1240
|
-
)}
|
|
1241
|
-
{langdetect == 'ar' && (
|
|
1242
|
-
<div
|
|
1243
|
-
className="col-lg-12 justify-content-end float-left pl-2 pr-2"
|
|
1244
|
-
style={{
|
|
1245
|
-
fontSize: sectionproperties.userinfo_titlefontsize + 'px',
|
|
1246
|
-
color: sectionproperties.userinfo_titlecolor,
|
|
1247
|
-
fontWeight: sectionproperties.userinfo_titlefontweight,
|
|
1248
|
-
textAlign: 'left',
|
|
1249
|
-
textDecoration: 'underline',
|
|
1250
|
-
cursor: 'pointer',
|
|
1251
|
-
position: 'absolute',
|
|
1252
|
-
left: 10,
|
|
1253
|
-
top: 10,
|
|
1254
|
-
}}
|
|
1255
|
-
onClick={() => {
|
|
1256
|
-
routingcountext(StaticPagesLinksContext.accountinfo);
|
|
1257
|
-
}}
|
|
1258
|
-
>
|
|
1259
|
-
{lang.update}
|
|
1260
|
-
</div>
|
|
1261
|
-
)}
|
|
1262
|
-
</div>
|
|
1263
|
-
</div>
|
|
1264
|
-
</div>
|
|
1265
|
-
)}
|
|
1266
|
-
{/* Address Details */}
|
|
1267
|
-
{/* {sectionproperties.hideshipping == 'Show' && ( */}
|
|
1268
|
-
<div
|
|
1269
|
-
className="col-lg-12 p-0"
|
|
1270
|
-
style={{
|
|
1271
|
-
display:
|
|
1272
|
-
authdetailsContext.loggedin == true &&
|
|
1273
|
-
sectionproperties.hidecountrystatecity == 'Hide' &&
|
|
1274
|
-
sectionproperties.hideaddress == 'Hide' &&
|
|
1275
|
-
sectionproperties.shownotes == 'Hide' &&
|
|
1276
|
-
insthasaffiliate == 0
|
|
1277
|
-
? 'none'
|
|
1278
|
-
: 'flex',
|
|
1279
|
-
}}
|
|
1280
|
-
>
|
|
1281
|
-
<div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
|
|
1282
|
-
<div className="col-lg-12 pl-3 pr-3 pt-2">
|
|
1283
|
-
<p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>
|
|
1284
|
-
{authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails}
|
|
1285
|
-
</p>
|
|
1286
|
-
</div>
|
|
1287
|
-
<div className="col-lg-12 p-0">
|
|
1288
|
-
<hr className="mt-2 mb-2" />
|
|
1289
|
-
</div>
|
|
1290
|
-
<div className="row m-0 w-100 mb-3 pl-3 pr-3 pb-3">
|
|
1291
|
-
{!authdetailsContext.loggedin && (
|
|
1292
|
-
<>
|
|
1293
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1294
|
-
<label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{lang.name}</label>
|
|
1295
|
-
<input
|
|
1296
|
-
type={'text'}
|
|
1297
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1298
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.name}
|
|
1299
|
-
onChange={(event) => {
|
|
1300
|
-
cartinfoupdater('name', event.target.value);
|
|
1301
|
-
}}
|
|
1302
|
-
style={{
|
|
1303
|
-
resize: 'none',
|
|
1304
|
-
boxShadow: 'none',
|
|
1305
|
-
}}
|
|
1306
|
-
/>
|
|
1307
|
-
</div>
|
|
1308
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1309
|
-
<label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'}</label>
|
|
1310
|
-
<input
|
|
1311
|
-
type={'number'}
|
|
1312
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1313
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
|
|
1314
|
-
onChange={(event) => {
|
|
1315
|
-
cartinfoupdater('mobile', event.target.value);
|
|
1316
|
-
}}
|
|
1317
|
-
style={{
|
|
1318
|
-
resize: 'none',
|
|
1319
|
-
boxShadow: 'none',
|
|
1320
|
-
}}
|
|
1321
|
-
/>
|
|
1322
|
-
{/* <PhoneInput
|
|
1323
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1324
|
-
country={'eg'}
|
|
1325
|
-
enableSearch={true}
|
|
1326
|
-
autoFormat={true}
|
|
1327
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.mobile}
|
|
1328
|
-
inputStyle={{
|
|
1329
|
-
color: sectionproperties.inputfieldcolor,
|
|
1330
|
-
}}
|
|
1331
|
-
onChange={(event, country) => {
|
|
1332
|
-
// var temp = { ...payloadobj };
|
|
1333
|
-
// temp.mobile = event;
|
|
1334
|
-
// temp.countrydialcode = country.dialCode;
|
|
1335
|
-
// setpayloadobj({ ...temp });
|
|
1336
|
-
cartinfoupdater('countrydialcode', country.dialCode);
|
|
1337
|
-
cartinfoupdater('mobile', event);
|
|
1338
|
-
}}
|
|
1339
|
-
style={{ direction: 'ltr', color: sectionproperties.inputfieldcolor }}
|
|
1340
|
-
/> */}
|
|
1341
|
-
</div>
|
|
1342
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1343
|
-
<label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{lang.email}</label>
|
|
1344
|
-
<input
|
|
1345
|
-
type={'text'}
|
|
1346
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1347
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.email}
|
|
1348
|
-
onChange={(event) => {
|
|
1349
|
-
cartinfoupdater('email', event.target.value);
|
|
1350
|
-
}}
|
|
1351
|
-
style={{
|
|
1352
|
-
boxShadow: 'none',
|
|
1353
|
-
}}
|
|
1354
|
-
/>
|
|
1355
|
-
</div>
|
|
1356
|
-
</>
|
|
1357
|
-
)}
|
|
1358
|
-
<div
|
|
1359
|
-
class="col-lg-12 p-0"
|
|
1360
|
-
style={{
|
|
1361
|
-
display: sectionproperties.hidecountrystatecity == 'Hide' && sectionproperties.hideaddress == 'Hide' ? 'none' : 'flex',
|
|
1362
|
-
}}
|
|
1363
|
-
>
|
|
1364
|
-
<div class="row m-0 w-100">
|
|
1365
|
-
{sectionproperties.hidecountrystatecity == 'Show' && (
|
|
1366
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1367
|
-
<label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}> {lang.country}</label>
|
|
1368
|
-
{fetchTabexCountriesQueryContext.isFetching && (
|
|
1369
|
-
<div className="w-100 allcentered mt-1">
|
|
1370
|
-
<CircularProgress color="#000" width="20px" height="20px" duration="1s" />
|
|
1371
|
-
</div>
|
|
1372
|
-
)}
|
|
1373
|
-
{!fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && (
|
|
1374
|
-
<Select
|
|
1375
|
-
options={fetchTabexCountriesQueryContext.data.data.countries}
|
|
1376
|
-
getOptionLabel={(option) => {
|
|
1377
|
-
var crname = '';
|
|
1378
|
-
if (langdetect == 'en') {
|
|
1379
|
-
crname = option.name;
|
|
1380
|
-
} else if (langdetect == 'ar') {
|
|
1381
|
-
if (option.name_ar != null) {
|
|
1382
|
-
crname = option.name_ar;
|
|
1383
|
-
} else {
|
|
1384
|
-
crname = option.name;
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
return crname;
|
|
1388
|
-
}}
|
|
1389
|
-
getOptionValue={(option) => option.id}
|
|
1390
|
-
value={fetchTabexCountriesQueryContext.data.data.countries.filter(
|
|
1391
|
-
(option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
|
|
1392
|
-
)}
|
|
1393
|
-
onChange={(option) => {
|
|
1394
|
-
var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
|
|
1395
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'states';
|
|
1396
|
-
tempFetchTabexStatesPayloadobjContext.country_id = option.id;
|
|
1397
|
-
setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
|
|
1398
|
-
cartinfoupdater('countryid', option.id);
|
|
1399
|
-
}}
|
|
1400
|
-
styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
|
|
1401
|
-
placeholder={lang.choosecountry}
|
|
1402
|
-
isSearchable={true}
|
|
1403
|
-
/>
|
|
1404
|
-
)}
|
|
1405
|
-
</div>
|
|
1406
|
-
)}
|
|
1407
|
-
{sectionproperties.hidecountrystatecity == 'Show' && (
|
|
1408
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1409
|
-
<label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.stategov}</label>
|
|
1410
|
-
{fetchTabexStatesQueryContext.isFetching && (
|
|
1411
|
-
<div className="w-100 allcentered mt-1">
|
|
1412
|
-
<CircularProgress color="#000" width="20px" height="20px" duration="1s" />
|
|
1413
|
-
</div>
|
|
1414
|
-
)}
|
|
1415
|
-
{!fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && (
|
|
1416
|
-
<Select
|
|
1417
|
-
options={fetchTabexStatesQueryContext.data.data.states}
|
|
1418
|
-
// getOptionLabel={(option) => option.name}
|
|
1419
|
-
// getOptionValue={(option) => option.id}
|
|
1420
|
-
getOptionLabel={(option) => {
|
|
1421
|
-
var crname = '';
|
|
1422
|
-
if (langdetect == 'en') {
|
|
1423
|
-
crname = option.name;
|
|
1424
|
-
} else if (langdetect == 'ar') {
|
|
1425
|
-
if (option.name_ar != null) {
|
|
1426
|
-
crname = option.name_ar;
|
|
1427
|
-
} else {
|
|
1428
|
-
crname = option.name;
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
return crname;
|
|
1432
|
-
}}
|
|
1433
|
-
getOptionValue={(option) => option.id}
|
|
1434
|
-
value={fetchTabexStatesQueryContext.data.data.states.filter(
|
|
1435
|
-
(option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
|
|
1436
|
-
)}
|
|
1437
|
-
onChange={(option) => {
|
|
1438
|
-
if (option.id.length != 0 && fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0) {
|
|
1439
|
-
var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
|
|
1440
|
-
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
1441
|
-
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
1442
|
-
setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
|
|
1443
|
-
cartinfoupdater('stateid', option.id);
|
|
1444
|
-
} else {
|
|
1445
|
-
NotificationManager.warning('', 'Please Choose Country Or State');
|
|
1446
|
-
}
|
|
1447
|
-
}}
|
|
1448
|
-
styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
|
|
1449
|
-
placeholder={lang.choosestategov}
|
|
1450
|
-
isSearchable={true}
|
|
1451
|
-
/>
|
|
1452
|
-
)}
|
|
1453
|
-
</div>
|
|
1454
|
-
)}
|
|
1455
|
-
{sectionproperties.hidecountrystatecity == 'Show' && (
|
|
1456
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1457
|
-
<label className={`${checkoutstyles.input_label_name}` + ' m-0 d-flex align-items-start '}>{lang.city}</label>
|
|
1458
|
-
{fetchTabexCitiesQueryContext.isFetching && (
|
|
1459
|
-
<div className="w-100 allcentered mt-1">
|
|
1460
|
-
<CircularProgress color="#000" width="20px" height="20px" duration="1s" />
|
|
1461
|
-
</div>
|
|
1462
|
-
)}
|
|
1463
|
-
{!fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && (
|
|
1464
|
-
<Select
|
|
1465
|
-
options={fetchTabexCitiesQueryContext.data.data.cities}
|
|
1466
|
-
getOptionLabel={(option) => {
|
|
1467
|
-
var crname = '';
|
|
1468
|
-
if (langdetect == 'en') {
|
|
1469
|
-
crname = option.name;
|
|
1470
|
-
} else if (langdetect == 'ar') {
|
|
1471
|
-
if (option.name_ar != null) {
|
|
1472
|
-
crname = option.name_ar;
|
|
1473
|
-
} else {
|
|
1474
|
-
crname = option.name;
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
return crname;
|
|
1478
|
-
}}
|
|
1479
|
-
getOptionValue={(option) => option.id}
|
|
1480
|
-
value={fetchTabexCitiesQueryContext.data.data.cities.filter(
|
|
1481
|
-
(option) => option.id == fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
|
|
1482
|
-
)}
|
|
1483
|
-
onChange={(option) => {
|
|
1484
|
-
cartinfoupdater('cityid', option.id);
|
|
1485
|
-
}}
|
|
1486
|
-
styles={langdetect == 'en' ? defaultstyles : defaultstylestranslated}
|
|
1487
|
-
placeholder={lang.choosecity}
|
|
1488
|
-
isSearchable={true}
|
|
1489
|
-
/>
|
|
1490
|
-
)}
|
|
1491
|
-
</div>
|
|
1492
|
-
)}
|
|
1493
|
-
{sectionproperties.hideaddress == 'Show' && (
|
|
1494
|
-
<div className="col-lg-12 mb-3">
|
|
1495
|
-
<label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>
|
|
1496
|
-
{langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar}
|
|
1497
|
-
{/* {lang.shippingaddress} */}
|
|
1498
|
-
</label>
|
|
1499
|
-
<TextareaAutosize
|
|
1500
|
-
type={'text'}
|
|
1501
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1502
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.address}
|
|
1503
|
-
onChange={(event) => {
|
|
1504
|
-
cartinfoupdater('address', event.target.value);
|
|
1505
|
-
}}
|
|
1506
|
-
style={{
|
|
1507
|
-
resize: 'none',
|
|
1508
|
-
boxShadow: 'none',
|
|
1509
|
-
}}
|
|
1510
|
-
/>
|
|
1511
|
-
</div>
|
|
1512
|
-
)}
|
|
1513
|
-
</div>
|
|
1514
|
-
</div>
|
|
1515
|
-
{sectionproperties.shownotes == 'Show' && (
|
|
1516
|
-
<div className="col-lg-12 mb-3">
|
|
1517
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>
|
|
1518
|
-
{/* {langdetect == 'en' ? 'Notes' : 'الملاحظات'} */}
|
|
1519
|
-
{langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar}
|
|
1520
|
-
</label>
|
|
1521
|
-
<TextareaAutosize
|
|
1522
|
-
type={'text'}
|
|
1523
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1524
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart.notes}
|
|
1525
|
-
onChange={(event) => {
|
|
1526
|
-
cartinfoupdater('notes', event.target.value);
|
|
1527
|
-
}}
|
|
1528
|
-
style={{
|
|
1529
|
-
resize: 'none',
|
|
1530
|
-
boxShadow: 'none',
|
|
1531
|
-
}}
|
|
1532
|
-
/>
|
|
1533
|
-
</div>
|
|
1534
|
-
)}
|
|
1535
|
-
{insthasaffiliate == 1 && (
|
|
1536
|
-
<div className="col-lg-12 mb-3">
|
|
1537
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>
|
|
1538
|
-
{langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'}
|
|
1539
|
-
</label>
|
|
1540
|
-
<input
|
|
1541
|
-
type={'number'}
|
|
1542
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1543
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart?.aff_code}
|
|
1544
|
-
onChange={(event) => {
|
|
1545
|
-
cartinfoupdater('aff_code', event.target.value);
|
|
1546
|
-
}}
|
|
1547
|
-
style={{
|
|
1548
|
-
resize: 'none',
|
|
1549
|
-
boxShadow: 'none',
|
|
1550
|
-
}}
|
|
1551
|
-
/>
|
|
1552
|
-
</div>
|
|
1553
|
-
)}
|
|
1554
|
-
</div>
|
|
1555
|
-
</div>
|
|
1556
|
-
</div>
|
|
1557
|
-
{/* )} */}
|
|
1558
|
-
{/* zeft hatly */}
|
|
1559
|
-
{shippingmethods.length != 0 && sectionproperties.showshippingmethod == 'Show' && (
|
|
1560
|
-
<div className="col-lg-12 p-0 w-100">
|
|
1561
|
-
<div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
|
|
1562
|
-
<div className="col-lg-12 pl-3 pr-3 pt-2">
|
|
1563
|
-
<p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{langdetect == 'en' ? 'Shipping Method' : 'طريقة الشحن'}</p>
|
|
1564
|
-
</div>
|
|
1565
|
-
<div className="col-lg-12 p-0">
|
|
1566
|
-
<hr className="mt-2 mb-2" />
|
|
1567
|
-
</div>
|
|
1568
|
-
<div className="row m-0 w-100 mb-3 pl-3 pr-3">
|
|
1569
|
-
<select
|
|
1570
|
-
style={{ width: '100%' }}
|
|
1571
|
-
onChange={(event) => {
|
|
1572
|
-
cartinfoupdater('shippingmethod_id', event.target.value);
|
|
1573
|
-
}}
|
|
1574
|
-
value={fetchcustomercartQueryContext?.data?.data?.customercart?.shippingmethod_id}
|
|
1575
|
-
>
|
|
1576
|
-
<option value={null}>{langdetect == 'en' ? 'Choose Shipping Method' : 'اخنر طريقة الشحن'}</option>
|
|
1577
|
-
{shippingmethods?.map(function (item, index) {
|
|
1578
|
-
return <option value={item.id}>{langdetect == 'en' ? item.name_en : item.name_ar}</option>;
|
|
1579
|
-
})}
|
|
1580
|
-
</select>
|
|
1581
|
-
</div>
|
|
1582
|
-
</div>
|
|
1583
|
-
</div>
|
|
1584
|
-
)}
|
|
1585
|
-
{/* <p>asd{orderextrafeilds.length}</p> */}
|
|
1586
|
-
{authdetailsContext?.instinfo?.contactinfo.instid == '66b4a0338cb14' && (
|
|
1587
|
-
<div className="col-lg-12 p-0 w-100 py-3">
|
|
1588
|
-
<div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
|
|
1589
|
-
{/* <div className="col-lg-12 pl-3 pr-3 pt-2">
|
|
1590
|
-
<p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{langdetect == 'en' ? 'Shipping Method' : 'طريقة الشحن'}</p>
|
|
1591
|
-
</div>
|
|
1592
|
-
<div className="col-lg-12 p-0">
|
|
1593
|
-
<hr className="mt-2 mb-2" />
|
|
1594
|
-
</div> */}
|
|
1595
|
-
<div className="row m-0 w-100 mb-3 pl-3 pr-3">
|
|
1596
|
-
{/* {orderextrafeilds?.map(function (item, index) {
|
|
1597
|
-
if (item.type == 'date') {
|
|
1598
|
-
return ( */}
|
|
1599
|
-
<div className="col-lg-4 col-md-12 mb-3">
|
|
1600
|
-
<label className={`${checkoutstyles.input_label_name}` + ' d-flex align-items-start '}>{langdetect == 'en' ? 'Event Date' : 'تاريخ الايفنت'}</label>
|
|
1601
|
-
<input
|
|
1602
|
-
type={'date'}
|
|
1603
|
-
className={`${formstyles.form_control} ${checkoutstyles.form_control}`}
|
|
1604
|
-
// value={}
|
|
1605
|
-
onChange={(event) => {
|
|
1606
|
-
// cartinfoupdater('email', event.target.value);
|
|
1607
|
-
}}
|
|
1608
|
-
style={{
|
|
1609
|
-
boxShadow: 'none',
|
|
1610
|
-
}}
|
|
1611
|
-
/>
|
|
1612
|
-
</div>
|
|
1613
|
-
{/* );
|
|
1614
|
-
}
|
|
1615
|
-
})} */}
|
|
1616
|
-
</div>
|
|
1617
|
-
</div>
|
|
1618
|
-
</div>
|
|
1619
|
-
)}
|
|
1620
|
-
{/* end of hatly */}
|
|
1621
|
-
{/* Payment */}
|
|
1622
|
-
|
|
1623
|
-
{sectionproperties.showpaymentfooter == 'Show' && (
|
|
1624
|
-
<div className="col-lg-12 p-0 w-100">
|
|
1625
|
-
<div class={`${checkoutstyles.innersection}` + ' w-100 mb-3 '}>
|
|
1626
|
-
<div className="col-lg-12 pl-3 pr-3 pt-2">
|
|
1627
|
-
<p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentmethod}</p>
|
|
1628
|
-
</div>
|
|
1629
|
-
<div className="col-lg-12 p-0">
|
|
1630
|
-
<hr className="mt-2 mb-2" />
|
|
1631
|
-
</div>
|
|
1632
|
-
<div className="row m-0 w-100 mb-3 pl-3 pr-3">
|
|
1633
|
-
{authdetailsContext.instinfo.acceptCOD == 1 && (
|
|
1634
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1635
|
-
<label
|
|
1636
|
-
className={
|
|
1637
|
-
langdetect == 'en'
|
|
1638
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1639
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated}` + ' d-flex mb-0 '
|
|
1640
|
-
}
|
|
1641
|
-
for="codcheckbox"
|
|
1642
|
-
>
|
|
1643
|
-
<input
|
|
1644
|
-
id={'codcheckbox'}
|
|
1645
|
-
type="checkbox"
|
|
1646
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1647
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cod' ? true : false}
|
|
1648
|
-
onChange={() => {
|
|
1649
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cod') {
|
|
1650
|
-
cartinfoupdater('paymentmethod', 'cod');
|
|
1651
|
-
}
|
|
1652
|
-
}}
|
|
1653
|
-
/>
|
|
1654
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1655
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1656
|
-
</svg>
|
|
1657
|
-
<p
|
|
1658
|
-
className={' ml-2 mb-0 cursor-pointer wordbreak mr-2'}
|
|
1659
|
-
style={{
|
|
1660
|
-
color: sectionproperties.checkbox_color,
|
|
1661
|
-
}}
|
|
1662
|
-
>
|
|
1663
|
-
{langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar}
|
|
1664
|
-
</p>
|
|
1665
|
-
</label>
|
|
1666
|
-
</div>
|
|
1667
|
-
)}
|
|
1668
|
-
{authdetailsContext.instinfo.acceptCardOnDelivery == 1 && (
|
|
1669
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1670
|
-
<label
|
|
1671
|
-
className={
|
|
1672
|
-
langdetect == 'en'
|
|
1673
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1674
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1675
|
-
}
|
|
1676
|
-
>
|
|
1677
|
-
<input
|
|
1678
|
-
type="checkbox"
|
|
1679
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1680
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'cardondelivery' ? true : false}
|
|
1681
|
-
onChange={() => {
|
|
1682
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'cardondelivery') {
|
|
1683
|
-
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
1684
|
-
}
|
|
1685
|
-
}}
|
|
1686
|
-
/>
|
|
1687
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1688
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1689
|
-
</svg>
|
|
1690
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.cardondelivery}</p>
|
|
1691
|
-
</label>
|
|
1692
|
-
</div>
|
|
1693
|
-
)}
|
|
1694
|
-
{authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && (
|
|
1695
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1696
|
-
<label
|
|
1697
|
-
className={
|
|
1698
|
-
langdetect == 'en'
|
|
1699
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1700
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1701
|
-
}
|
|
1702
|
-
>
|
|
1703
|
-
<input
|
|
1704
|
-
type="checkbox"
|
|
1705
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1706
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment' ? true : false}
|
|
1707
|
-
onChange={() => {
|
|
1708
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'onlinepayment') {
|
|
1709
|
-
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
1710
|
-
}
|
|
1711
|
-
}}
|
|
1712
|
-
/>
|
|
1713
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1714
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1715
|
-
</svg>
|
|
1716
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}> {lang.onlinepayment}</p>
|
|
1717
|
-
</label>
|
|
1718
|
-
</div>
|
|
1719
|
-
)}
|
|
1720
|
-
|
|
1721
|
-
{authdetailsContext.instinfo.acceptValuCard == 1 && (
|
|
1722
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1723
|
-
<label
|
|
1724
|
-
className={
|
|
1725
|
-
langdetect == 'en'
|
|
1726
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1727
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1728
|
-
}
|
|
1729
|
-
>
|
|
1730
|
-
<input
|
|
1731
|
-
type="checkbox"
|
|
1732
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1733
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'valU' ? true : false}
|
|
1734
|
-
onChange={() => {
|
|
1735
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'valU') {
|
|
1736
|
-
cartinfoupdater('paymentmethod', 'valU');
|
|
1737
|
-
}
|
|
1738
|
-
}}
|
|
1739
|
-
/>
|
|
1740
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1741
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1742
|
-
</svg>
|
|
1743
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
|
|
1744
|
-
{langdetect == 'en' ? sectionproperties.valuorfawryname : sectionproperties.valuorfawrynamear}
|
|
1745
|
-
</p>
|
|
1746
|
-
</label>
|
|
1747
|
-
</div>
|
|
1748
|
-
)}
|
|
1749
|
-
{authdetailsContext.instinfo.acceptmobilewalletpayment == 1 && (
|
|
1750
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1751
|
-
<label
|
|
1752
|
-
className={
|
|
1753
|
-
langdetect == 'en'
|
|
1754
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1755
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1756
|
-
}
|
|
1757
|
-
>
|
|
1758
|
-
<input
|
|
1759
|
-
type="checkbox"
|
|
1760
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1761
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'mobilewallet' ? true : false}
|
|
1762
|
-
onChange={() => {
|
|
1763
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod != 'mobilewallet') {
|
|
1764
|
-
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
1765
|
-
}
|
|
1766
|
-
}}
|
|
1767
|
-
/>
|
|
1768
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1769
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1770
|
-
</svg>
|
|
1771
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
|
|
1772
|
-
{/* {langdetect == 'en' ? 'Mobile Wallet' : 'المحفظة الإلكترونية'} */}
|
|
1773
|
-
{langdetect == 'en' ? sectionproperties.walletnameen : sectionproperties.walletnamear}
|
|
1774
|
-
</p>
|
|
1775
|
-
</label>
|
|
1776
|
-
</div>
|
|
1777
|
-
)}
|
|
1778
|
-
{authdetailsContext?.instinfo?.acceptForsaCard == 1 && (
|
|
1779
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1780
|
-
<label
|
|
1781
|
-
className={
|
|
1782
|
-
langdetect == 'en'
|
|
1783
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1784
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1785
|
-
}
|
|
1786
|
-
>
|
|
1787
|
-
<input
|
|
1788
|
-
type="checkbox"
|
|
1789
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1790
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'forsa' ? true : false}
|
|
1791
|
-
onChange={() => {
|
|
1792
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'forsa') {
|
|
1793
|
-
cartinfoupdater('paymentmethod', 'forsa');
|
|
1794
|
-
}
|
|
1795
|
-
}}
|
|
1796
|
-
/>
|
|
1797
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1798
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1799
|
-
</svg>
|
|
1800
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Forsa' : ' Forsa'}</p>
|
|
1801
|
-
</label>
|
|
1802
|
-
</div>
|
|
1803
|
-
)}
|
|
1804
|
-
{authdetailsContext?.instinfo?.acceptonlinePaypal == 1 && (
|
|
1805
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1806
|
-
<label
|
|
1807
|
-
className={
|
|
1808
|
-
langdetect == 'en'
|
|
1809
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1810
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1811
|
-
}
|
|
1812
|
-
>
|
|
1813
|
-
<input
|
|
1814
|
-
type="checkbox"
|
|
1815
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1816
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'paypal' ? true : false}
|
|
1817
|
-
onChange={() => {
|
|
1818
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'paypal') {
|
|
1819
|
-
cartinfoupdater('paymentmethod', 'paypal');
|
|
1820
|
-
}
|
|
1821
|
-
}}
|
|
1822
|
-
/>
|
|
1823
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1824
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1825
|
-
</svg>
|
|
1826
|
-
<p className={`${formstyles.checkbox_label} + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '`}>{langdetect == 'en' ? 'Paypal' : ' Paypal'}</p>
|
|
1827
|
-
</label>
|
|
1828
|
-
</div>
|
|
1829
|
-
)}
|
|
1830
|
-
{authdetailsContext?.instinfo?.acceptBankInstallementsCard == 1 && (
|
|
1831
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1832
|
-
<label
|
|
1833
|
-
className={
|
|
1834
|
-
langdetect == 'en'
|
|
1835
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1836
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1837
|
-
}
|
|
1838
|
-
>
|
|
1839
|
-
<input
|
|
1840
|
-
type="checkbox"
|
|
1841
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1842
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'bankinstallments' ? true : false}
|
|
1843
|
-
onChange={() => {
|
|
1844
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'bankinstallments') {
|
|
1845
|
-
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
1846
|
-
}
|
|
1847
|
-
}}
|
|
1848
|
-
/>
|
|
1849
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1850
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1851
|
-
</svg>
|
|
1852
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>
|
|
1853
|
-
{langdetect == 'en' ? 'Bank Installments' : ' التقسيط عن طريق البنك'}
|
|
1854
|
-
</p>
|
|
1855
|
-
</label>
|
|
1856
|
-
</div>
|
|
1857
|
-
)}
|
|
1858
|
-
{authdetailsContext?.instinfo?.acceptAmanCard == 1 && (
|
|
1859
|
-
<div className="col-xl-4 col-lg-4 col-md-12 mb-3">
|
|
1860
|
-
<label
|
|
1861
|
-
className={
|
|
1862
|
-
langdetect == 'en'
|
|
1863
|
-
? `${formstyles.checkbox} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1864
|
-
: `${formstyles.checkbox} ${formstyles.checkboxtranslated} ${checkoutstyles.checkbox} ` + ' d-flex mb-0 '
|
|
1865
|
-
}
|
|
1866
|
-
>
|
|
1867
|
-
<input
|
|
1868
|
-
type="checkbox"
|
|
1869
|
-
className={checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto '}
|
|
1870
|
-
checked={fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod == 'Aman' ? true : false}
|
|
1871
|
-
onChange={() => {
|
|
1872
|
-
if (fetchcustomercartQueryContext?.data?.data?.customercart?.paymentmethod != 'Aman') {
|
|
1873
|
-
cartinfoupdater('paymentmethod', 'Aman');
|
|
1874
|
-
}
|
|
1875
|
-
}}
|
|
1876
|
-
/>
|
|
1877
|
-
<svg viewBox="0 0 21 21" className={checkoutstyles.svgstyles + ' h-100 '}>
|
|
1878
|
-
<path d="M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"></path>
|
|
1879
|
-
</svg>
|
|
1880
|
-
<p className={`${formstyles.checkbox_label}` + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '}>{langdetect == 'en' ? 'Aman' : 'Aman'}</p>
|
|
1881
|
-
</label>
|
|
1882
|
-
</div>
|
|
1883
|
-
)}
|
|
1884
|
-
</div>
|
|
1885
|
-
</div>
|
|
1886
|
-
</div>
|
|
1887
|
-
)}
|
|
1888
|
-
|
|
1889
|
-
{fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment1' && (
|
|
1890
|
-
<div className="col-lg-12 p-0 w-100 mb-3">
|
|
1891
|
-
<div
|
|
1892
|
-
style={{
|
|
1893
|
-
background: sectionproperties.payment_sectionbgcolor,
|
|
1894
|
-
borderRadius: sectionproperties.payment_borderradius + 'px',
|
|
1895
|
-
borderColor: sectionproperties.payment_sectionbordercolor,
|
|
1896
|
-
}}
|
|
1897
|
-
>
|
|
1898
|
-
<div className="col-lg-12 pl-3 pr-3 pt-2">
|
|
1899
|
-
<p className={checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '}>{lang.paymentcardinformation}</p>
|
|
1900
|
-
</div>
|
|
1901
|
-
<div className="col-lg-12 p-0">
|
|
1902
|
-
<hr className="mt-2 mb-2" />
|
|
1903
|
-
</div>
|
|
1904
|
-
<div className="w-100 row m-0 pl-3 pr-3 pt-2 pb-2">
|
|
1905
|
-
<div className="col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0">
|
|
1906
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cardnumber}</label>
|
|
1907
|
-
<input
|
|
1908
|
-
className={formstyles.form_controlcheckout}
|
|
1909
|
-
type="text"
|
|
1910
|
-
textplaceholder=""
|
|
1911
|
-
onChange={(event) => {}}
|
|
1912
|
-
style={{
|
|
1913
|
-
fontWeight: sectionproperties.inputtextfontweight,
|
|
1914
|
-
background: sectionproperties.input_bgcolor,
|
|
1915
|
-
color: sectionproperties.inputfieldcolor,
|
|
1916
|
-
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
1917
|
-
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
1918
|
-
}}
|
|
1919
|
-
/>
|
|
1920
|
-
</div>
|
|
1921
|
-
<div className="w-100 row m-0">
|
|
1922
|
-
<div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
|
|
1923
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.year}</label>
|
|
1924
|
-
<input
|
|
1925
|
-
className={formstyles.form_controlcheckout}
|
|
1926
|
-
type="text"
|
|
1927
|
-
textplaceholder=""
|
|
1928
|
-
onChange={(event) => {}}
|
|
1929
|
-
style={{
|
|
1930
|
-
fontWeight: sectionproperties.inputtextfontweight,
|
|
1931
|
-
background: sectionproperties.input_bgcolor,
|
|
1932
|
-
color: sectionproperties.inputfieldcolor,
|
|
1933
|
-
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
1934
|
-
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
1935
|
-
}}
|
|
1936
|
-
/>
|
|
1937
|
-
</div>
|
|
1938
|
-
<div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
|
|
1939
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.month}</label>
|
|
1940
|
-
<input
|
|
1941
|
-
className={formstyles.form_controlcheckout}
|
|
1942
|
-
type="text"
|
|
1943
|
-
textplaceholder=""
|
|
1944
|
-
onChange={(event) => {}}
|
|
1945
|
-
style={{
|
|
1946
|
-
fontWeight: sectionproperties.inputtextfontweight,
|
|
1947
|
-
background: sectionproperties.input_bgcolor,
|
|
1948
|
-
color: sectionproperties.inputfieldcolor,
|
|
1949
|
-
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
1950
|
-
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
1951
|
-
}}
|
|
1952
|
-
/>
|
|
1953
|
-
</div>
|
|
1954
|
-
<div className="col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3">
|
|
1955
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.cvv}</label>
|
|
1956
|
-
<input
|
|
1957
|
-
className={formstyles.form_controlcheckout}
|
|
1958
|
-
type="text"
|
|
1959
|
-
textplaceholder=""
|
|
1960
|
-
onChange={(event) => {}}
|
|
1961
|
-
style={{
|
|
1962
|
-
fontWeight: sectionproperties.inputtextfontweight,
|
|
1963
|
-
background: sectionproperties.input_bgcolor,
|
|
1964
|
-
color: sectionproperties.inputfieldcolor,
|
|
1965
|
-
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
1966
|
-
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
1967
|
-
}}
|
|
1968
|
-
/>
|
|
1969
|
-
</div>
|
|
1970
|
-
</div>
|
|
1971
|
-
<div className="col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3">
|
|
1972
|
-
<label className={`${checkoutstyles.input_label_name}` + ' mb-2 d-flex align-items-start '}>{lang.nameoncard}</label>
|
|
1973
|
-
<input
|
|
1974
|
-
className={formstyles.form_controlcheckout}
|
|
1975
|
-
type="text"
|
|
1976
|
-
textplaceholder=""
|
|
1977
|
-
onChange={(event) => {}}
|
|
1978
|
-
style={{
|
|
1979
|
-
fontWeight: sectionproperties.inputtextfontweight,
|
|
1980
|
-
background: sectionproperties.input_bgcolor,
|
|
1981
|
-
color: sectionproperties.inputfieldcolor,
|
|
1982
|
-
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
1983
|
-
borderRadius: sectionproperties.inputfieldborderradius + 'px',
|
|
1984
|
-
}}
|
|
1985
|
-
/>
|
|
1986
|
-
</div>
|
|
1987
|
-
</div>
|
|
1988
|
-
</div>
|
|
1989
|
-
</div>
|
|
1990
|
-
)}
|
|
1991
|
-
</div>
|
|
1992
|
-
<div className={langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0 px-sm-0' : 'col-lg-4 col-md-12 pl-0 px-sm-0'}>{Mycart()}</div>
|
|
1993
|
-
</div>
|
|
1994
|
-
</div>
|
|
1995
|
-
</div>
|
|
1996
|
-
</div>
|
|
1997
|
-
);
|
|
1998
|
-
};
|
|
1999
|
-
export default Checkout;
|