ordering-ui-admin-external 1.13.4 → 1.14.1
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/_bundles/{ordering-ui-admin.8ae8bce37d1d9d2daf8b.js → ordering-ui-admin.7260e823d98951f8d36d.js} +2 -2
- package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +2 -1
- package/_modules/components/BusinessIntelligence/InvoiceBusinessManager/styles.js +1 -1
- package/_modules/components/BusinessIntelligence/InvoiceDriverManager/styles.js +1 -1
- package/_modules/components/BusinessIntelligence/InvoiceManager/index.js +2 -1
- package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +6 -3
- package/_modules/components/CartRecovery/OpenCartsDetail/index.js +15 -1
- package/_modules/components/CartRecovery/OpenCartsDetail/styles.js +1 -1
- package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +18 -1
- package/_modules/components/CartRecovery/RecoveryActionDetail/styles.js +4 -4
- package/_modules/components/CartRecovery/RecoveryActionList/styles.js +1 -3
- package/_modules/components/Delivery/DeliveryUsersListing/index.js +2 -1
- package/_modules/components/Delivery/DriversCompaniesList/styles.js +1 -1
- package/_modules/components/Delivery/DriversCompanyDetailsForm/index.js +21 -2
- package/_modules/components/Delivery/DriversCompanyDetailsForm/styles.js +8 -6
- package/_modules/components/Delivery/DriversGroupDetails/index.js +20 -2
- package/_modules/components/Delivery/DriversGroupDetails/styles.js +6 -4
- package/_modules/components/Delivery/DriversGroupsList/index.js +5 -5
- package/_modules/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/_modules/components/Delivery/UserAddForm/index.js +1 -1
- package/_modules/components/Delivery/UserDetails/index.js +20 -2
- package/_modules/components/Delivery/UserDetails/styles.js +6 -4
- package/_modules/components/Delivery/UserDetailsLateralBar/styles.js +1 -1
- package/_modules/components/Delivery/UserProfileForm/index.js +1 -1
- package/_modules/components/Delivery/UsersList/styles.js +1 -1
- package/_modules/components/Login/LoginForm/index.js +49 -7
- package/_modules/components/Login/LoginForm/styles.js +18 -14
- package/_modules/components/Loyalty/GiftCardDetail/index.js +285 -0
- package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +1 -1
- package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +1 -1
- package/_modules/components/Loyalty/PointsWalletBusinessList/styles.js +3 -3
- package/_modules/components/Loyalty/PointsWalletLevels/styles.js +1 -3
- package/_modules/components/Loyalty/RewardsPrograms/index.js +42 -28
- package/_modules/components/Loyalty/RewardsPrograms/styles.js +18 -3
- package/_modules/components/Loyalty/Wallet/index.js +109 -0
- package/_modules/components/Loyalty/{PointsWallet → Wallet}/styles.js +15 -9
- package/_modules/components/Loyalty/index.js +7 -7
- package/_modules/components/Marketing/BannerDetails/styles.js +1 -1
- package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
- package/_modules/components/Marketing/CampaignDetail/index.js +20 -1
- package/_modules/components/Marketing/CampaignDetail/styles.js +4 -4
- package/_modules/components/Marketing/CampaignList/styles.js +1 -3
- package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +17 -2
- package/_modules/components/Marketing/EnterprisePromotionDetails/styles.js +7 -5
- package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +1 -1
- package/_modules/components/Marketing/EnterprisePromotionList/styles.js +1 -3
- package/_modules/components/Marketing/EnterprisePromotionRules/index.js +1 -0
- package/_modules/components/Marketing/PageBanner/index.js +21 -7
- package/_modules/components/Marketing/PageBanner/styles.js +26 -24
- package/_modules/components/MyProducts/AdvancedSettings/ImageBox.js +151 -0
- package/_modules/components/MyProducts/OrderingWebsite/index.js +1 -1
- package/_modules/components/OrderingProducts/OrderingProductDetails/index.js +20 -2
- package/_modules/components/OrderingProducts/OrderingProductDetails/styles.js +15 -13
- package/_modules/components/OrderingProducts/OrderingProductsListing/styles.js +1 -3
- package/_modules/components/OrderingProducts/SiteTheme/ThemeImage.js +1 -1
- package/_modules/components/Orders/Messages/index.js +10 -2
- package/_modules/components/Orders/Messages/styles.js +64 -62
- package/_modules/components/Orders/OrderDashboardSLASetting/index.js +0 -1
- package/_modules/components/Orders/OrderDetailsHeader/index.js +30 -3
- package/_modules/components/Orders/OrdersFilterGroup/index.js +6 -10
- package/_modules/components/Orders/OrdersLateralBar/index.js +22 -5
- package/_modules/components/Orders/OrdersLateralBar/styles.js +2 -2
- package/_modules/components/Settings/ApiKeysList/styles.js +10 -7
- package/_modules/components/Settings/Cms/styles.js +1 -1
- package/_modules/components/Settings/CountriesList/index.js +5 -4
- package/_modules/components/Settings/CountriesList/styles.js +1 -1
- package/_modules/components/Settings/Deliverect/index.js +15 -1
- package/_modules/components/Settings/DoordashConnect/index.js +15 -1
- package/_modules/components/Settings/DropdownOptionList/index.js +2 -1
- package/_modules/components/Settings/DropdownOptionList/styles.js +1 -1
- package/_modules/components/Settings/IntegrationListing/index.js +6 -3
- package/_modules/components/Settings/ItsaCheckmate/index.js +15 -1
- package/_modules/components/Settings/LalamoveConnect/index.js +15 -1
- package/_modules/components/Settings/LanguageTransTable/styles.js +1 -1
- package/_modules/components/Settings/PickerExpress/index.js +15 -1
- package/_modules/components/Settings/PlaceListing/index.js +2 -1
- package/_modules/components/Settings/PlaceListing/styles.js +1 -1
- package/_modules/components/Settings/PluginList/styles.js +20 -17
- package/_modules/components/Settings/Settings/index.js +2 -1
- package/_modules/components/Settings/SettingsDetail/index.js +15 -1
- package/_modules/components/Settings/SettingsDetail/styles.js +13 -11
- package/_modules/components/Settings/SettingsImage/index.js +1 -1
- package/_modules/components/Settings/SitesAuthSettings/index.js +20 -1
- package/_modules/components/Settings/SitesAuthSettings/styles.js +10 -6
- package/_modules/components/Settings/WebhookList/styles.js +14 -11
- package/_modules/components/Shared/Modal/index.js +5 -3
- package/_modules/components/Shared/ProtectedRoute/index.js +6 -1
- package/_modules/components/Shared/SideBar/index.js +22 -3
- package/_modules/components/Shared/SideBar/styles.js +10 -8
- package/_modules/components/SidebarMenu/index.js +16 -18
- package/_modules/components/Stores/AddBusinessForm/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/Images/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/Photos/index.js +1 -1
- package/_modules/components/Stores/BusinessAddStore/index.js +1 -2
- package/_modules/components/Stores/BusinessBrandGENDetail/index.js +8 -3
- package/_modules/components/Stores/BusinessBrandListing/index.js +17 -2
- package/_modules/components/Stores/BusinessBrandListing/styles.js +35 -33
- package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
- package/_modules/components/Stores/BusinessDetails/index.js +6 -1
- package/_modules/components/Stores/BusinessFilterGroup/index.js +110 -0
- package/_modules/components/Stores/BusinessFilterGroup/styles.js +37 -0
- package/_modules/components/Stores/BusinessInformation/index.js +1 -1
- package/_modules/components/Stores/BusinessOrderingChannels/index.js +1 -1
- package/_modules/components/Stores/BusinessProductAddForm/index.js +1 -1
- package/_modules/components/Stores/BusinessProductList/index.js +2 -1
- package/_modules/components/Stores/BusinessProductList/styles.js +1 -3
- package/_modules/components/Stores/BusinessProductsCategories/styles.js +2 -4
- package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +22 -4
- package/_modules/components/Stores/BusinessProductsCategoyDetails/styles.js +1 -1
- package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +11 -23
- package/_modules/components/Stores/BusinessProductsListing/index.js +3 -2
- package/_modules/components/Stores/BusinessPromotionList/styles.js +1 -1
- package/_modules/components/Stores/BusinessSalesChannel/index.js +142 -0
- package/_modules/components/Stores/BusinessSalesChannel/styles.js +26 -0
- package/_modules/components/Stores/BusinessSalesFacebook/FacebookPost.js +31 -0
- package/_modules/components/Stores/BusinessSalesFacebook/FacebookProfile.js +45 -0
- package/_modules/components/Stores/BusinessSalesFacebook/index.js +77 -0
- package/_modules/components/Stores/BusinessSalesFacebook/styles.js +58 -0
- package/_modules/components/Stores/BusinessSalesGoogle/index.js +85 -0
- package/_modules/components/Stores/BusinessSalesGoogle/styles.js +44 -0
- package/_modules/components/Stores/BusinessSalesInstagram/AdvancedInstagram.js +58 -0
- package/_modules/components/Stores/BusinessSalesInstagram/GeneralInstagram.js +51 -0
- package/_modules/components/{Loyalty/PointsWallet → Stores/BusinessSalesInstagram}/index.js +62 -44
- package/_modules/components/Stores/BusinessSalesInstagram/styles.js +63 -0
- package/_modules/components/Stores/BusinessSalesTiktok/index.js +100 -0
- package/_modules/components/Stores/BusinessSalesTiktok/styles.js +37 -0
- package/_modules/components/Stores/BusinessSummary/index.js +33 -6
- package/_modules/components/Stores/BusinessTypeDetail/index.js +1 -1
- package/_modules/components/Stores/BusinessesList/styles.js +1 -1
- package/_modules/components/Stores/BusinessesListing/index.js +12 -6
- package/_modules/components/Stores/BusinessesListingHeader/index.js +33 -3
- package/_modules/components/Stores/BusinessesListingHeader/styles.js +5 -2
- package/_modules/components/Stores/ImportersButton/index.js +2 -1
- package/_modules/components/Stores/PaymentOption/index.js +4 -10
- package/_modules/components/Stores/PaymentOptionMethods/index.js +47 -24
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +47 -24
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +47 -24
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +50 -25
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +47 -24
- package/_modules/components/Stores/ProductDetails/index.js +2 -1
- package/_modules/components/Stores/ProductDetailsAdvanced/index.js +30 -11
- package/_modules/components/Stores/ProductDetailsAdvanced/styles.js +10 -7
- package/_modules/components/Stores/ProductDetatilsInformation/index.js +10 -34
- package/_modules/components/Stores/ProductExtraOptionDetails/index.js +1 -1
- package/_modules/components/Stores/ProductExtraOptions/index.js +1 -1
- package/_modules/components/Stores/ProductExtraSuboption/index.js +1 -1
- package/_modules/components/Stores/ProductGallery/index.js +1 -1
- package/_modules/components/Stores/ProductSummary/index.js +23 -2
- package/_modules/components/Stores/ProductTagDetails/index.js +1 -1
- package/_modules/components/Stores/SeoOptions/index.js +14 -16
- package/_modules/components/Stores/SeoOptions/styles.js +3 -3
- package/_modules/components/Stores/ServiceDetail/index.js +1 -1
- package/_modules/components/Stores/WizardBusiness/index.js +2 -1
- package/_modules/components/Stores/index.js +7 -0
- package/_modules/components/Users/CustomerDetails/index.js +24 -2
- package/_modules/components/Users/CustomerDetails/styles.js +16 -19
- package/_modules/components/Users/CustomersListing/index.js +39 -4
- package/_modules/components/Users/CustomersListing/styles.js +1 -1
- package/_modules/components/Users/ProfessionalDetail/index.js +19 -3
- package/_modules/components/Users/ProfessionalDetail/styles.js +11 -9
- package/_modules/components/Users/ProfessionalList/styles.js +1 -1
- package/_modules/components/Users/ProfessionalListing/index.js +8 -3
- package/_modules/components/Users/UserAddForm/index.js +1 -1
- package/_modules/components/Users/UserDetails/index.js +27 -10
- package/_modules/components/Users/UserDetails/styles.js +20 -13
- package/_modules/components/Users/UserDetailsLateralBar/styles.js +1 -1
- package/_modules/components/Users/UserFilterGroup/index.js +307 -0
- package/_modules/components/Users/UserFilterGroup/styles.js +37 -0
- package/_modules/components/Users/UserProfileForm/index.js +1 -1
- package/_modules/components/Users/UsersExportCSV/index.js +33 -1
- package/_modules/components/Users/UsersList/index.js +5 -2
- package/_modules/components/Users/UsersList/styles.js +20 -5
- package/_modules/components/Users/UsersListing/index.js +9 -3
- package/_modules/components/Users/UsersListingHeader/index.js +39 -4
- package/_modules/components/Users/UsersListingHeader/styles.js +1 -1
- package/_modules/components/Users/index.js +7 -0
- package/_modules/config/constants.js +281 -41
- package/_modules/index.js +6 -6
- package/index-template.js +72 -0
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/BusinessReviewList/index.js +1 -0
- package/src/components/BusinessIntelligence/InvoiceBusinessManager/styles.js +2 -2
- package/src/components/BusinessIntelligence/InvoiceDriverManager/styles.js +2 -2
- package/src/components/BusinessIntelligence/InvoiceManager/index.js +1 -0
- package/src/components/BusinessIntelligence/UsersReviewList/index.js +5 -2
- package/src/components/CartRecovery/OpenCartsDetail/index.js +17 -1
- package/src/components/CartRecovery/OpenCartsDetail/styles.js +3 -1
- package/src/components/CartRecovery/RecoveryActionDetail/index.js +24 -6
- package/src/components/CartRecovery/RecoveryActionDetail/styles.js +2 -3
- package/src/components/CartRecovery/RecoveryActionList/styles.js +1 -5
- package/src/components/Delivery/DeliveryUsersListing/index.js +1 -0
- package/src/components/Delivery/DriversCompaniesList/styles.js +1 -1
- package/src/components/Delivery/DriversCompanyDetailsForm/index.js +38 -15
- package/src/components/Delivery/DriversCompanyDetailsForm/styles.js +9 -5
- package/src/components/Delivery/DriversGroupDetails/index.js +48 -18
- package/src/components/Delivery/DriversGroupDetails/styles.js +5 -1
- package/src/components/Delivery/DriversGroupsList/index.js +8 -6
- package/src/components/Delivery/DriversGroupsList/styles.js +1 -1
- package/src/components/Delivery/UserAddForm/index.js +1 -1
- package/src/components/Delivery/UserDetails/index.js +43 -21
- package/src/components/Delivery/UserDetails/styles.js +8 -2
- package/src/components/Delivery/UserDetailsLateralBar/styles.js +0 -1
- package/src/components/Delivery/UserProfileForm/index.js +1 -1
- package/src/components/Delivery/UsersList/styles.js +1 -1
- package/src/components/Login/LoginForm/index.js +92 -32
- package/src/components/Login/LoginForm/styles.js +16 -0
- package/src/components/Loyalty/GiftCardDetail/index.js +287 -0
- package/src/components/Loyalty/LoyaltyLevelDetail/index.js +1 -1
- package/src/components/Loyalty/PointsWalletBusinessList/index.js +1 -1
- package/src/components/Loyalty/PointsWalletBusinessList/styles.js +9 -1
- package/src/components/Loyalty/PointsWalletLevels/styles.js +1 -6
- package/src/components/Loyalty/RewardsPrograms/index.js +63 -36
- package/src/components/Loyalty/RewardsPrograms/styles.js +57 -0
- package/src/components/Loyalty/Wallet/index.js +115 -0
- package/src/components/Loyalty/{PointsWallet → Wallet}/styles.js +17 -0
- package/src/components/Loyalty/index.js +2 -2
- package/src/components/Marketing/BannerDetails/styles.js +1 -0
- package/src/components/Marketing/BannerImageDetails/index.js +1 -1
- package/src/components/Marketing/CampaignDetail/index.js +25 -5
- package/src/components/Marketing/CampaignDetail/styles.js +2 -4
- package/src/components/Marketing/CampaignList/styles.js +1 -5
- package/src/components/Marketing/EnterprisePromotionDetails/index.js +35 -17
- package/src/components/Marketing/EnterprisePromotionDetails/styles.js +7 -3
- package/src/components/Marketing/EnterprisePromotionGeneralDetails/index.js +1 -1
- package/src/components/Marketing/EnterprisePromotionList/styles.js +1 -4
- package/src/components/Marketing/EnterprisePromotionRules/index.js +1 -0
- package/src/components/Marketing/PageBanner/index.js +28 -10
- package/src/components/Marketing/PageBanner/styles.js +15 -8
- package/src/components/MyProducts/AdvancedSettings/ImageBox.js +112 -0
- package/src/components/MyProducts/OrderingWebsite/index.js +1 -1
- package/src/components/OrderingProducts/OrderingProductDetails/index.js +34 -12
- package/src/components/OrderingProducts/OrderingProductDetails/styles.js +8 -3
- package/src/components/OrderingProducts/OrderingProductsListing/styles.js +1 -5
- package/src/components/OrderingProducts/SiteTheme/ThemeImage.js +1 -1
- package/src/components/Orders/Messages/index.js +104 -84
- package/src/components/Orders/Messages/styles.js +20 -0
- package/src/components/Orders/OrderDashboardSLASetting/index.js +0 -1
- package/src/components/Orders/OrderDetailsHeader/index.js +30 -3
- package/src/components/Orders/OrdersFilterGroup/index.js +6 -6
- package/src/components/Orders/OrdersLateralBar/index.js +20 -2
- package/src/components/Orders/OrdersLateralBar/styles.js +3 -1
- package/src/components/Settings/ApiKeysList/styles.js +8 -0
- package/src/components/Settings/Cms/styles.js +1 -1
- package/src/components/Settings/CountriesList/index.js +4 -3
- package/src/components/Settings/CountriesList/styles.js +1 -1
- package/src/components/Settings/Deliverect/index.js +17 -1
- package/src/components/Settings/DoordashConnect/index.js +17 -1
- package/src/components/Settings/DropdownOptionList/index.js +1 -0
- package/src/components/Settings/DropdownOptionList/styles.js +1 -1
- package/src/components/Settings/IntegrationListing/index.js +3 -0
- package/src/components/Settings/ItsaCheckmate/index.js +17 -1
- package/src/components/Settings/LalamoveConnect/index.js +17 -1
- package/src/components/Settings/LanguageTransTable/styles.js +1 -1
- package/src/components/Settings/PickerExpress/index.js +17 -1
- package/src/components/Settings/PlaceListing/index.js +1 -0
- package/src/components/Settings/PlaceListing/styles.js +1 -1
- package/src/components/Settings/PluginList/styles.js +8 -0
- package/src/components/Settings/Settings/index.js +1 -0
- package/src/components/Settings/SettingsDetail/index.js +18 -1
- package/src/components/Settings/SettingsDetail/styles.js +9 -0
- package/src/components/Settings/SettingsImage/index.js +1 -1
- package/src/components/Settings/SitesAuthSettings/index.js +26 -2
- package/src/components/Settings/SitesAuthSettings/styles.js +14 -1
- package/src/components/Settings/WebhookList/styles.js +8 -0
- package/src/components/Shared/Modal/index.js +8 -3
- package/src/components/Shared/ProtectedRoute/index.js +7 -1
- package/src/components/Shared/SideBar/index.js +30 -10
- package/src/components/Shared/SideBar/styles.js +13 -14
- package/src/components/SidebarMenu/index.js +3 -6
- package/src/components/Stores/AddBusinessForm/index.js +1 -1
- package/src/components/Stores/BusinessAdd/Images/index.js +1 -1
- package/src/components/Stores/BusinessAdd/Photos/index.js +1 -1
- package/src/components/Stores/BusinessAddStore/index.js +0 -1
- package/src/components/Stores/BusinessBrandGENDetail/index.js +19 -18
- package/src/components/Stores/BusinessBrandListing/index.js +29 -11
- package/src/components/Stores/BusinessBrandListing/styles.js +7 -3
- package/src/components/Stores/BusinessDeliveryZoneInformation/index.js +1 -1
- package/src/components/Stores/BusinessDetails/index.js +8 -0
- package/src/components/Stores/BusinessFilterGroup/index.js +168 -0
- package/src/components/Stores/BusinessFilterGroup/styles.js +116 -0
- package/src/components/Stores/BusinessInformation/index.js +1 -1
- package/src/components/Stores/BusinessOrderingChannels/index.js +4 -2
- package/src/components/Stores/BusinessProductAddForm/index.js +1 -1
- package/src/components/Stores/BusinessProductList/index.js +1 -0
- package/src/components/Stores/BusinessProductList/styles.js +1 -4
- package/src/components/Stores/BusinessProductsCategories/styles.js +1 -5
- package/src/components/Stores/BusinessProductsCategoyDetails/index.js +23 -3
- package/src/components/Stores/BusinessProductsCategoyDetails/styles.js +2 -2
- package/src/components/Stores/BusinessProductsCategoyInfo/index.js +18 -47
- package/src/components/Stores/BusinessProductsListing/index.js +13 -10
- package/src/components/Stores/BusinessPromotionList/styles.js +1 -1
- package/src/components/Stores/BusinessSalesChannel/index.js +165 -0
- package/src/components/Stores/BusinessSalesChannel/styles.js +75 -0
- package/src/components/Stores/BusinessSalesFacebook/FacebookPost.js +29 -0
- package/src/components/Stores/BusinessSalesFacebook/FacebookProfile.js +51 -0
- package/src/components/Stores/BusinessSalesFacebook/index.js +81 -0
- package/src/components/Stores/BusinessSalesFacebook/styles.js +135 -0
- package/src/components/Stores/BusinessSalesGoogle/index.js +88 -0
- package/src/components/Stores/BusinessSalesGoogle/styles.js +119 -0
- package/src/components/Stores/BusinessSalesInstagram/AdvancedInstagram.js +54 -0
- package/src/components/Stores/BusinessSalesInstagram/GeneralInstagram.js +53 -0
- package/src/components/Stores/BusinessSalesInstagram/index.js +81 -0
- package/src/components/Stores/BusinessSalesInstagram/styles.js +157 -0
- package/src/components/Stores/BusinessSalesTiktok/index.js +116 -0
- package/src/components/Stores/BusinessSalesTiktok/styles.js +100 -0
- package/src/components/Stores/BusinessSummary/index.js +32 -3
- package/src/components/Stores/BusinessTypeDetail/index.js +1 -1
- package/src/components/Stores/BusinessesList/styles.js +1 -1
- package/src/components/Stores/BusinessesListing/index.js +24 -11
- package/src/components/Stores/BusinessesListingHeader/index.js +25 -4
- package/src/components/Stores/BusinessesListingHeader/styles.js +13 -1
- package/src/components/Stores/ImportersButton/index.js +1 -0
- package/src/components/Stores/PaymentOption/index.js +4 -6
- package/src/components/Stores/PaymentOptionMethods/index.js +42 -21
- package/src/components/Stores/PaymentOptionPaypal/index.js +42 -21
- package/src/components/Stores/PaymentOptionStripeDirect/index.js +42 -21
- package/src/components/Stores/PaymethodOptionStripeConnect/index.js +45 -22
- package/src/components/Stores/PaymethodOptionStripeRedirect/index.js +42 -21
- package/src/components/Stores/ProductDetails/index.js +1 -0
- package/src/components/Stores/ProductDetailsAdvanced/index.js +18 -0
- package/src/components/Stores/ProductDetailsAdvanced/styles.js +5 -0
- package/src/components/Stores/ProductDetatilsInformation/index.js +2 -48
- package/src/components/Stores/ProductExtraOptionDetails/index.js +1 -1
- package/src/components/Stores/ProductExtraOptions/index.js +1 -1
- package/src/components/Stores/ProductExtraSuboption/index.js +1 -1
- package/src/components/Stores/ProductGallery/index.js +1 -1
- package/src/components/Stores/ProductSummary/index.js +24 -3
- package/src/components/Stores/ProductTagDetails/index.js +1 -1
- package/src/components/Stores/SeoOptions/index.js +18 -12
- package/src/components/Stores/SeoOptions/styles.js +5 -14
- package/src/components/Stores/ServiceDetail/index.js +1 -1
- package/src/components/Stores/WizardBusiness/index.js +1 -0
- package/src/components/Stores/index.js +2 -0
- package/src/components/Users/CustomerDetails/index.js +39 -14
- package/src/components/Users/CustomerDetails/styles.js +2 -5
- package/src/components/Users/CustomersListing/index.js +32 -15
- package/src/components/Users/CustomersListing/styles.js +1 -1
- package/src/components/Users/ProfessionalDetail/index.js +43 -23
- package/src/components/Users/ProfessionalDetail/styles.js +5 -0
- package/src/components/Users/ProfessionalList/styles.js +1 -1
- package/src/components/Users/ProfessionalListing/index.js +6 -1
- package/src/components/Users/UserAddForm/index.js +1 -1
- package/src/components/Users/UserDetails/index.js +34 -17
- package/src/components/Users/UserDetails/styles.js +17 -2
- package/src/components/Users/UserDetailsLateralBar/styles.js +0 -1
- package/src/components/Users/UserFilterGroup/index.js +306 -0
- package/src/components/Users/UserFilterGroup/styles.js +116 -0
- package/src/components/Users/UserProfileForm/index.js +1 -1
- package/src/components/Users/UsersExportCSV/index.js +19 -1
- package/src/components/Users/UsersList/index.js +9 -2
- package/src/components/Users/UsersList/styles.js +28 -1
- package/src/components/Users/UsersListing/index.js +7 -1
- package/src/components/Users/UsersListingHeader/index.js +66 -33
- package/src/components/Users/UsersListingHeader/styles.js +4 -0
- package/src/components/Users/index.js +2 -0
- package/src/config/constants.js +1215 -244
- package/src/index.js +2 -2
- package/template/assets/images/icons/business-google.svg +26 -0
- package/template/assets/images/icons/facebook.svg +11 -0
- package/template/assets/images/icons/instagram.svg +19 -0
- package/template/assets/images/icons/tiktok.svg +11 -0
- package/template/assets/images/salesChannels/facebook-post-step1.png +0 -0
- package/template/assets/images/salesChannels/facebook-post-step2.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step2.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step3-1.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step3-2.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step4.png +0 -0
- package/template/assets/images/salesChannels/facebook-profile-step5.png +0 -0
- package/template/assets/images/salesChannels/google-step1.png +0 -0
- package/template/assets/images/salesChannels/google-step2.png +0 -0
- package/template/assets/images/salesChannels/google-step3.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step31.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step32.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step41.png +0 -0
- package/template/assets/images/salesChannels/instagram-advanced-step42.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step2.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step3.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step4.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step5.png +0 -0
- package/template/assets/images/salesChannels/instagram-general-step6.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step1.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step10.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step2.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step3.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step4.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step5.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step6.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step7.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step8.png +0 -0
- package/template/assets/images/salesChannels/tiktok-step9.png +0 -0
- package/template/pages/CustomersList/index.js +1 -1
- package/template/pages/Login/index.js +7 -1
- package/src/components/Loyalty/PointsWallet/index.js +0 -71
- /package/_bundles/{ordering-ui-admin.8ae8bce37d1d9d2daf8b.js.LICENSE.txt → ordering-ui-admin.7260e823d98951f8d36d.js.LICENSE.txt} +0 -0
|
@@ -292,21 +292,23 @@ export const BusinessProductsCategoyInfo = (props) => {
|
|
|
292
292
|
autoComplete='off'
|
|
293
293
|
/>
|
|
294
294
|
</CategoryNameWrapper>
|
|
295
|
-
|
|
296
|
-
<
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
e.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
295
|
+
{!isAddMode && (
|
|
296
|
+
<CategoryNameWrapper>
|
|
297
|
+
<label>{t('EXTERNAL_ID', 'External Id')}</label>
|
|
298
|
+
<Input
|
|
299
|
+
placeholder={t('EXTERNAL_ID', 'External Id')}
|
|
300
|
+
name='external_id'
|
|
301
|
+
value={formState?.changes?.external_id || ''}
|
|
302
|
+
onChange={handleChangeInput}
|
|
303
|
+
autoComplete='off'
|
|
304
|
+
onKeyPress={(e) => {
|
|
305
|
+
if (!/^[0-9]$/.test(e.key)) {
|
|
306
|
+
e.preventDefault()
|
|
307
|
+
}
|
|
308
|
+
}}
|
|
309
|
+
/>
|
|
310
|
+
</CategoryNameWrapper>
|
|
311
|
+
)}
|
|
310
312
|
<CategoryNameWrapper>
|
|
311
313
|
<label>{t('DESCRIPTION', 'Description')}</label>
|
|
312
314
|
<TextArea
|
|
@@ -317,37 +319,6 @@ export const BusinessProductsCategoyInfo = (props) => {
|
|
|
317
319
|
autoComplete='off'
|
|
318
320
|
/>
|
|
319
321
|
</CategoryNameWrapper>
|
|
320
|
-
{!isAddMode && (
|
|
321
|
-
<CategoryNameWrapper>
|
|
322
|
-
<label>{t('SLUG', 'Slug')}</label>
|
|
323
|
-
<Input
|
|
324
|
-
name='slug'
|
|
325
|
-
placeholder={t('SLUG', 'Slug')}
|
|
326
|
-
onChange={handleChangeInput}
|
|
327
|
-
disabled={formState.loading}
|
|
328
|
-
autoComplete='off'
|
|
329
|
-
value={
|
|
330
|
-
formState?.changes?.slug || ''
|
|
331
|
-
}
|
|
332
|
-
onKeyPress={e => {
|
|
333
|
-
if (e.which === 32) { e.preventDefault() }
|
|
334
|
-
}}
|
|
335
|
-
/>
|
|
336
|
-
{/* <GenerateButtonWrapper>
|
|
337
|
-
<Button
|
|
338
|
-
color='lightPrimary'
|
|
339
|
-
borderRadius='7.6px'
|
|
340
|
-
disabled={formState.loading || !formState.changes?.name}
|
|
341
|
-
onClick={() => setAutoGenerate({
|
|
342
|
-
...autoGenerateCode,
|
|
343
|
-
isAutoGenerate: true
|
|
344
|
-
})}
|
|
345
|
-
>
|
|
346
|
-
{formState?.loading ? t('LOADING', 'Loading') : t('AUTOGENERATE', 'Auto Generate')}
|
|
347
|
-
</Button>
|
|
348
|
-
</GenerateButtonWrapper> */}
|
|
349
|
-
</CategoryNameWrapper>
|
|
350
|
-
)}
|
|
351
322
|
<SwitchWrapper>
|
|
352
323
|
<span>{t('RIBBON', 'Ribbon')}</span>
|
|
353
324
|
<Switch
|
|
@@ -475,7 +446,7 @@ export const BusinessProductsCategoyInfo = (props) => {
|
|
|
475
446
|
padding='30px'
|
|
476
447
|
title={t('IMAGE_CROP', 'Image crop')}
|
|
477
448
|
open={cropState?.open}
|
|
478
|
-
|
|
449
|
+
onRemove={() => setCropState({ ...cropState, open: false })}
|
|
479
450
|
>
|
|
480
451
|
<ImageCrop
|
|
481
452
|
photo={cropState?.data}
|
|
@@ -317,16 +317,18 @@ const BusinessProductsListingUI = (props) => {
|
|
|
317
317
|
</ActionsGroup>
|
|
318
318
|
)}
|
|
319
319
|
</HeaderContainer>
|
|
320
|
-
|
|
321
|
-
<
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
320
|
+
{slug && (
|
|
321
|
+
<ButtonWrapper>
|
|
322
|
+
<Button
|
|
323
|
+
color='primary'
|
|
324
|
+
outline
|
|
325
|
+
borderRadius='8px'
|
|
326
|
+
onClick={handleOpenSite}
|
|
327
|
+
>
|
|
328
|
+
{t('STORE_WEBSITE', 'Store website')}
|
|
329
|
+
</Button>
|
|
330
|
+
</ButtonWrapper>
|
|
331
|
+
)}
|
|
330
332
|
{slug && (
|
|
331
333
|
<CategoryProductsContent>
|
|
332
334
|
<CategoryListContainer ref={categoryListRef}>
|
|
@@ -428,6 +430,7 @@ const BusinessProductsListingUI = (props) => {
|
|
|
428
430
|
<SideBar
|
|
429
431
|
open={openSidebar === 'category_details'}
|
|
430
432
|
onClose={handleCloseEdit}
|
|
433
|
+
sidebarId='editCategory'
|
|
431
434
|
>
|
|
432
435
|
<BusinessProductsCategoyDetails
|
|
433
436
|
{...props}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import React, { useState } from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { useWindowSize } from '../../../hooks/useWindowSize'
|
|
4
|
+
import { useTheme } from 'styled-components'
|
|
5
|
+
import { Button } from '../../../styles'
|
|
6
|
+
import { Modal } from '../../Shared'
|
|
7
|
+
import { BusinessSalesFacebook } from '../BusinessSalesFacebook'
|
|
8
|
+
import { BusinessSalesTiktok } from '../BusinessSalesTiktok'
|
|
9
|
+
import { BusinessSalesInstagram } from '../BusinessSalesInstagram'
|
|
10
|
+
import { BusinessSalesGoogle } from '../BusinessSalesGoogle'
|
|
11
|
+
import {
|
|
12
|
+
Container,
|
|
13
|
+
SalesContainer,
|
|
14
|
+
SocialBlock,
|
|
15
|
+
BlockHeader,
|
|
16
|
+
ConnectingContainer
|
|
17
|
+
} from './styles'
|
|
18
|
+
|
|
19
|
+
export const BusinessSalesChannel = (props) => {
|
|
20
|
+
const { setIsExtendExtraOpen, business } = props
|
|
21
|
+
|
|
22
|
+
const [, t] = useLanguage()
|
|
23
|
+
const theme = useTheme()
|
|
24
|
+
const { width } = useWindowSize()
|
|
25
|
+
|
|
26
|
+
const [selectedItem, setSelectedItem] = useState(null)
|
|
27
|
+
const [hasConnectModal, setHasConnectModal] = useState(false)
|
|
28
|
+
const [isOpenSocial, setIsOpenSocial] = useState(false)
|
|
29
|
+
|
|
30
|
+
const socialList = [
|
|
31
|
+
{ key: 'facebook', name: t('FACEBOOK', 'Facebook'), icon: theme.images.icons.facebook, description: t('FACEBOOK_DESCRIPTION', 'Now you can add a “Shop now” link on your business’s Facebook page that goes straight to your ordering menu.') },
|
|
32
|
+
{ key: 'tiktok', name: t('TIKTOK', 'Tiktok'), icon: theme.images.icons.tiktok, description: t('TIKTOK_DESCRIPTION', 'After they purchase we install in 24 hours. Order and pay 99 per business. They can sell at whatever price. Also. If a business manager purchases then shared revenue?') },
|
|
33
|
+
{ key: 'instagram', name: t('INSTAGRAM', 'Instagram'), icon: theme.images.icons.instagram, description: t('INSTAGRAM_DESCRIPTION', 'After they purchase we install in 24 hours. Order and pay 99 per business. They can sell at whatever price. Also. If a business manager purchases then shared revenue?') },
|
|
34
|
+
{ key: 'google_my_business', name: t('GOOGLE_MY_BUSINESS', 'Google My Business'), icon: theme.images.icons.businessGoogle, description: t('GOOGLE_MY_BUSINESS_DESCRIPTION', 'After they purchase we install in 24 hours. Order and pay 99 per business. They can sell at whatever price. Also. If a business manager purchases then shared revenue?') }
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
const handleConnect = (item) => {
|
|
38
|
+
handleCloseDetail()
|
|
39
|
+
setSelectedItem(item)
|
|
40
|
+
setHasConnectModal(true)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
const handleOpenSocial = () => {
|
|
44
|
+
setHasConnectModal(false)
|
|
45
|
+
setIsOpenSocial(true)
|
|
46
|
+
setIsExtendExtraOpen(true)
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const handleCloseDetail = () => {
|
|
50
|
+
setIsOpenSocial(false)
|
|
51
|
+
setIsExtendExtraOpen(false)
|
|
52
|
+
setSelectedItem(null)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<Container>
|
|
57
|
+
<SalesContainer>
|
|
58
|
+
<h1>{t('SALES_CHANNELS', 'Sales channels')}</h1>
|
|
59
|
+
{socialList.map((item, i) => (
|
|
60
|
+
<SocialBlock key={i}>
|
|
61
|
+
<BlockHeader>
|
|
62
|
+
<img src={item.icon} alt='' />
|
|
63
|
+
<p>{item.name}</p>
|
|
64
|
+
</BlockHeader>
|
|
65
|
+
<p>{item.description}</p>
|
|
66
|
+
<Button
|
|
67
|
+
color='primary'
|
|
68
|
+
onClick={() => handleConnect(item)}
|
|
69
|
+
>
|
|
70
|
+
{t('CONNECT', 'Connect')}
|
|
71
|
+
</Button>
|
|
72
|
+
</SocialBlock>
|
|
73
|
+
))}
|
|
74
|
+
</SalesContainer>
|
|
75
|
+
<Modal
|
|
76
|
+
title={t('CONNECTING_SALES_CHANNELS', 'Connecting sales Channels')}
|
|
77
|
+
open={hasConnectModal}
|
|
78
|
+
onClose={() => setHasConnectModal(false)}
|
|
79
|
+
width='768px'
|
|
80
|
+
>
|
|
81
|
+
<ConnectingContainer>
|
|
82
|
+
<p>{t('CONNECTING_SALES_CHANNELS_DESC_1', 'Lorem ipsum dolor sit amet consectetur. Fringilla nulla in tincidunt id in erat et. In massa commodo imperdiet varius pharetra ultricies nunc dapibus integer. Gravida scelerisque justo hendrerit elit neque. Nunc velit vel eu velit. Faucibus turpis feugiat id nisi orci sodales.')}</p>
|
|
83
|
+
<p>{t('CONNECTING_SALES_CHANNELS_DESC_2', 'Lorem ipsum dolor sit amet consectetur. Fringilla nulla in tincidunt id in erat et. In massa commodo imperdiet varius pharetra ultricies nunc dapibus integer. Gravida scelerisque justo hendrerit elit neque. Nunc velit vel eu velit. Faucibus turpis feugiat id nisi orci sodales.')}</p>
|
|
84
|
+
<Button
|
|
85
|
+
color='primary'
|
|
86
|
+
onClick={handleOpenSocial}
|
|
87
|
+
>
|
|
88
|
+
{t('OK_I_UNDERSTAND', 'Ok, I understand')}
|
|
89
|
+
</Button>
|
|
90
|
+
</ConnectingContainer>
|
|
91
|
+
</Modal>
|
|
92
|
+
{width >= 1000 ? (
|
|
93
|
+
isOpenSocial && (
|
|
94
|
+
<>
|
|
95
|
+
{selectedItem?.key === 'facebook' && (
|
|
96
|
+
<BusinessSalesFacebook
|
|
97
|
+
businessSlug={business.slug}
|
|
98
|
+
socialItem={selectedItem}
|
|
99
|
+
onClose={handleCloseDetail}
|
|
100
|
+
/>
|
|
101
|
+
)}
|
|
102
|
+
{selectedItem?.key === 'tiktok' && (
|
|
103
|
+
<BusinessSalesTiktok
|
|
104
|
+
socialItem={selectedItem}
|
|
105
|
+
onClose={handleCloseDetail}
|
|
106
|
+
/>
|
|
107
|
+
)}
|
|
108
|
+
{selectedItem?.key === 'instagram' && (
|
|
109
|
+
<BusinessSalesInstagram
|
|
110
|
+
businessSlug={business.slug}
|
|
111
|
+
socialItem={selectedItem}
|
|
112
|
+
onClose={handleCloseDetail}
|
|
113
|
+
/>
|
|
114
|
+
)}
|
|
115
|
+
{selectedItem?.key === 'google_my_business' && (
|
|
116
|
+
<BusinessSalesGoogle
|
|
117
|
+
businessSlug={business.slug}
|
|
118
|
+
socialItem={selectedItem}
|
|
119
|
+
onClose={handleCloseDetail}
|
|
120
|
+
/>
|
|
121
|
+
)}
|
|
122
|
+
</>
|
|
123
|
+
)
|
|
124
|
+
) : (
|
|
125
|
+
isOpenSocial && (
|
|
126
|
+
<Modal
|
|
127
|
+
width='80%'
|
|
128
|
+
open={isOpenSocial}
|
|
129
|
+
onClose={handleCloseDetail}
|
|
130
|
+
>
|
|
131
|
+
<>
|
|
132
|
+
{selectedItem?.key === 'facebook' && (
|
|
133
|
+
<BusinessSalesFacebook
|
|
134
|
+
businessSlug={business.slug}
|
|
135
|
+
socialItem={selectedItem}
|
|
136
|
+
onClose={handleCloseDetail}
|
|
137
|
+
/>
|
|
138
|
+
)}
|
|
139
|
+
{selectedItem?.key === 'tiktok' && (
|
|
140
|
+
<BusinessSalesTiktok
|
|
141
|
+
socialItem={selectedItem}
|
|
142
|
+
onClose={handleCloseDetail}
|
|
143
|
+
/>
|
|
144
|
+
)}
|
|
145
|
+
{selectedItem?.key === 'instagram' && (
|
|
146
|
+
<BusinessSalesInstagram
|
|
147
|
+
businessSlug={business.slug}
|
|
148
|
+
socialItem={selectedItem}
|
|
149
|
+
onClose={handleCloseDetail}
|
|
150
|
+
/>
|
|
151
|
+
)}
|
|
152
|
+
{selectedItem?.key === 'google_my_business' && (
|
|
153
|
+
<BusinessSalesGoogle
|
|
154
|
+
businessSlug={business.slug}
|
|
155
|
+
socialItem={selectedItem}
|
|
156
|
+
onClose={handleCloseDetail}
|
|
157
|
+
/>
|
|
158
|
+
)}
|
|
159
|
+
</>
|
|
160
|
+
</Modal>
|
|
161
|
+
)
|
|
162
|
+
)}
|
|
163
|
+
</Container>
|
|
164
|
+
)
|
|
165
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
height: 100%;
|
|
6
|
+
`
|
|
7
|
+
|
|
8
|
+
export const SalesContainer = styled.div`
|
|
9
|
+
height: 100%;
|
|
10
|
+
overflow-x: hidden;
|
|
11
|
+
flex: 1;
|
|
12
|
+
h1 {
|
|
13
|
+
color: ${props => props.theme.colors.headingColor};
|
|
14
|
+
font-size: 20px;
|
|
15
|
+
font-weight: 700;
|
|
16
|
+
margin-bottom: 45px;
|
|
17
|
+
}
|
|
18
|
+
@media (min-width: 576px) {
|
|
19
|
+
padding: 20px;
|
|
20
|
+
}
|
|
21
|
+
`
|
|
22
|
+
|
|
23
|
+
export const SocialBlock = styled.div`
|
|
24
|
+
margin-bottom: 48px;
|
|
25
|
+
> p {
|
|
26
|
+
font-weight: 400;
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
line-height: 24px;
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
button {
|
|
32
|
+
height: 44px;
|
|
33
|
+
border-radius: 8px;
|
|
34
|
+
margin-top: 12px;
|
|
35
|
+
}
|
|
36
|
+
`
|
|
37
|
+
|
|
38
|
+
export const BlockHeader = styled.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
margin-bottom: 5px;
|
|
42
|
+
|
|
43
|
+
img {
|
|
44
|
+
width: 32px;
|
|
45
|
+
height: 32px;
|
|
46
|
+
object-fit: cover;
|
|
47
|
+
margin-right: 18px;
|
|
48
|
+
${props => props.theme.rtl && css`
|
|
49
|
+
margin-left: 18px;
|
|
50
|
+
margin-right: 0;
|
|
51
|
+
`}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
p {
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
font-size: 16px;
|
|
57
|
+
line-height: 24px;
|
|
58
|
+
margin: 0;
|
|
59
|
+
}
|
|
60
|
+
`
|
|
61
|
+
|
|
62
|
+
export const ConnectingContainer = styled.div`
|
|
63
|
+
> p {
|
|
64
|
+
font-weight: 400;
|
|
65
|
+
font-size: 14px;
|
|
66
|
+
line-height: 24px;
|
|
67
|
+
margin-top: 0;
|
|
68
|
+
margin-bottom: 40px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
> button {
|
|
72
|
+
height: 44px;
|
|
73
|
+
border-radius: 8px;
|
|
74
|
+
}
|
|
75
|
+
`
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { useTheme } from 'styled-components'
|
|
4
|
+
import {
|
|
5
|
+
FacebookPostContainer,
|
|
6
|
+
Step
|
|
7
|
+
} from './styles'
|
|
8
|
+
|
|
9
|
+
export const FacebookPost = () => {
|
|
10
|
+
const [, t] = useLanguage()
|
|
11
|
+
const theme = useTheme()
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<FacebookPostContainer>
|
|
15
|
+
<p>{t('BUSINESS_FACEBOOK_POST_DESC1', 'It’s very easy to connect Ordering with a Facebook post!')}</p>
|
|
16
|
+
<p>{t('BUSINESS_FACEBOOK_POST_DESC2', 'Lorem ipsum dolor sit amet consectetur. Platea eget blandit viverra scelerisque gravida sit tortor tellus interdum. Dolor amet quis vitae commodo nisl vestibulum ut sit.')}</p>
|
|
17
|
+
<Step>
|
|
18
|
+
<h3>{t('STEP', 'Step')} 1</h3>
|
|
19
|
+
<p>{t('BUSINESS_FACEBOOK_POST_STEP1_DESC', 'To post something on Facebook, you first need to choose the audience to which your advertising is directed.')}</p>
|
|
20
|
+
<img src={theme.images.salesChannels.facebookPostStep1} alt='' />
|
|
21
|
+
</Step>
|
|
22
|
+
<Step>
|
|
23
|
+
<h3>{t('STEP', 'Step')} 2</h3>
|
|
24
|
+
<p>{t('BUSINESS_FACEBOOK_POST_STEP2_DESC', 'Then, add what you will publish on your page, and that\'s it!')}</p>
|
|
25
|
+
<img src={theme.images.salesChannels.facebookPostStep2} alt='' />
|
|
26
|
+
</Step>
|
|
27
|
+
</FacebookPostContainer>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { useLanguage } from 'ordering-components-admin-external'
|
|
3
|
+
import { useTheme } from 'styled-components'
|
|
4
|
+
import { Input } from '../../../styles'
|
|
5
|
+
import {
|
|
6
|
+
FacebookProfileContainer,
|
|
7
|
+
Step,
|
|
8
|
+
CopyInputWrapper
|
|
9
|
+
} from './styles'
|
|
10
|
+
|
|
11
|
+
export const FacebookProfile = ({ businessSlug }) => {
|
|
12
|
+
const [, t] = useLanguage()
|
|
13
|
+
const theme = useTheme()
|
|
14
|
+
|
|
15
|
+
return (
|
|
16
|
+
<FacebookProfileContainer>
|
|
17
|
+
<p>{t('BUSINESS_FACEBOOK_PROFILE_DESC', 'Lorem ipsum dolor sit amet consectetur. Vitae odio aliquam adipiscing vitae. Nulla sed integer congue gravida lobortis tristique condimentum fusce tincidunt.')}</p>
|
|
18
|
+
<Step>
|
|
19
|
+
<h3>{t('STEP', 'Step')} 1</h3>
|
|
20
|
+
<p>{t('BUSINESS_FACEBOOK_PROFILE_STEP1_DESC', 'Copy this link below. It’s your unique Ordering link for facebook.')}</p>
|
|
21
|
+
<CopyInputWrapper>
|
|
22
|
+
<Input
|
|
23
|
+
defaultValue='https://yourbusinessname.com/store/storename'
|
|
24
|
+
disabled
|
|
25
|
+
/>
|
|
26
|
+
</CopyInputWrapper>
|
|
27
|
+
</Step>
|
|
28
|
+
<Step>
|
|
29
|
+
<h3>{t('STEP', 'Step')} 2</h3>
|
|
30
|
+
<p>{t('BUSINESS_FACEBOOK_PROFILE_STEP2_DESC', 'In your business profile, click on the 3 points button on the right side of the screen and look for the option: Edit Action Button.')}</p>
|
|
31
|
+
<img src={theme.images.salesChannels.facebookProfileStep2} alt='' />
|
|
32
|
+
</Step>
|
|
33
|
+
<Step>
|
|
34
|
+
<h3>{t('STEP', 'Step')} 3</h3>
|
|
35
|
+
<p>{t('BUSINESS_FACEBOOK_PROFILE_STEP3_DESC', 'Please choose the option that best suits you from the following list; this time, we will select: Start Order.')}</p>
|
|
36
|
+
<img src={theme.images.salesChannels.facebookProfileStep31} alt='' />
|
|
37
|
+
<img src={theme.images.salesChannels.facebookProfileStep32} alt='' />
|
|
38
|
+
</Step>
|
|
39
|
+
<Step>
|
|
40
|
+
<h3>{t('STEP', 'Step')} 4</h3>
|
|
41
|
+
<p>{t('BUSINESS_FACEBOOK_PROFILE_STEP4_DESC', 'It will open a popup where you will put the link to your business where your client can place the order and click Save.')}</p>
|
|
42
|
+
<img src={theme.images.salesChannels.facebookProfileStep4} alt='' />
|
|
43
|
+
</Step>
|
|
44
|
+
<Step>
|
|
45
|
+
<h3>{t('STEP', 'Step')} 5</h3>
|
|
46
|
+
<p>{t('BUSINESS_FACEBOOK_PROFILE_STEP5_DESC', 'And voila, you will see the button you just added to your Facebook page.')}</p>
|
|
47
|
+
<img src={theme.images.salesChannels.facebookProfileStep5} alt='' />
|
|
48
|
+
</Step>
|
|
49
|
+
</FacebookProfileContainer>
|
|
50
|
+
)
|
|
51
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react'
|
|
2
|
+
import { useWindowSize } from '../../../hooks/useWindowSize'
|
|
3
|
+
// import { useLanguage } from 'ordering-components-admin-external'
|
|
4
|
+
import {
|
|
5
|
+
Container,
|
|
6
|
+
Header,
|
|
7
|
+
LeftHeader,
|
|
8
|
+
// Tabs,
|
|
9
|
+
// Tab
|
|
10
|
+
} from './styles'
|
|
11
|
+
import { IconButton } from '../../../styles'
|
|
12
|
+
import { XLg } from 'react-bootstrap-icons'
|
|
13
|
+
import { FacebookProfile } from './FacebookProfile'
|
|
14
|
+
import { FacebookPost } from './FacebookPost'
|
|
15
|
+
|
|
16
|
+
export const BusinessSalesFacebook = (props) => {
|
|
17
|
+
const { onClose, socialItem, businessSlug } = props
|
|
18
|
+
|
|
19
|
+
const { width } = useWindowSize()
|
|
20
|
+
// const [, t] = useLanguage()
|
|
21
|
+
|
|
22
|
+
const [isMenuOpen, setIsMenuOpen] = useState(false)
|
|
23
|
+
const [selectedTab, setSelectedTab] = useState('profile')
|
|
24
|
+
|
|
25
|
+
// const tabList = [
|
|
26
|
+
// { key: 'profile', title: t('PROFILE', 'Profile') },
|
|
27
|
+
// { key: 'post', title: t('POST', 'Post') }
|
|
28
|
+
// ]
|
|
29
|
+
|
|
30
|
+
const actionSidebar = (value) => {
|
|
31
|
+
if (!value) {
|
|
32
|
+
onClose && onClose()
|
|
33
|
+
}
|
|
34
|
+
setIsMenuOpen(value)
|
|
35
|
+
document.getElementById('businessSocial').style.width = value
|
|
36
|
+
? width > 1000 ? '500px' : '100%'
|
|
37
|
+
: '0'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (isMenuOpen) {
|
|
42
|
+
if (width < 1000) {
|
|
43
|
+
document.getElementById('businessSocial').style.width = '100%'
|
|
44
|
+
} else {
|
|
45
|
+
document.getElementById('businessSocial').style.width = '500px'
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}, [width])
|
|
49
|
+
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (!open) return
|
|
52
|
+
actionSidebar(true)
|
|
53
|
+
}, [open])
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<Container id='businessSocial'>
|
|
57
|
+
<Header>
|
|
58
|
+
<LeftHeader>
|
|
59
|
+
<img src={socialItem.icon} alt='' />
|
|
60
|
+
<h2>{socialItem.name}</h2>
|
|
61
|
+
</LeftHeader>
|
|
62
|
+
<IconButton onClick={onClose} color='black'>
|
|
63
|
+
<XLg />
|
|
64
|
+
</IconButton>
|
|
65
|
+
</Header>
|
|
66
|
+
{/* <Tabs>
|
|
67
|
+
{tabList.map(item => (
|
|
68
|
+
<Tab
|
|
69
|
+
key={item.key}
|
|
70
|
+
onClick={() => setSelectedTab(item.key)}
|
|
71
|
+
active={selectedTab === item.key}
|
|
72
|
+
>
|
|
73
|
+
{item.title}
|
|
74
|
+
</Tab>
|
|
75
|
+
))}
|
|
76
|
+
</Tabs> */}
|
|
77
|
+
{selectedTab === 'profile' && <FacebookProfile businessSlug={businessSlug} />}
|
|
78
|
+
{selectedTab === 'post' && <FacebookPost />}
|
|
79
|
+
</Container>
|
|
80
|
+
)
|
|
81
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import styled, { css } from 'styled-components'
|
|
2
|
+
|
|
3
|
+
export const Container = styled.div`
|
|
4
|
+
padding: 20px;
|
|
5
|
+
overflow: auto;
|
|
6
|
+
transition: 0.3s;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
@media (min-width: 1000px) {
|
|
12
|
+
width: 0;
|
|
13
|
+
${props => props.theme?.rtl ? css`
|
|
14
|
+
border-right: 1px solid ${props => props.theme.colors.borderColor};
|
|
15
|
+
` : css`
|
|
16
|
+
border-left: 1px solid ${props => props.theme.colors.borderColor};
|
|
17
|
+
`}
|
|
18
|
+
}
|
|
19
|
+
`
|
|
20
|
+
|
|
21
|
+
export const Header = styled.div`
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
margin-bottom: 25px;
|
|
25
|
+
`
|
|
26
|
+
|
|
27
|
+
export const LeftHeader = styled.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
|
|
31
|
+
img {
|
|
32
|
+
width: 32px;
|
|
33
|
+
height: 32px;
|
|
34
|
+
object-fit: cover;
|
|
35
|
+
margin-right: 18px;
|
|
36
|
+
${props => props.theme.rtl && css`
|
|
37
|
+
margin-left: 18px;
|
|
38
|
+
margin-right: 0;
|
|
39
|
+
`}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
h2 {
|
|
43
|
+
font-weight: 700;
|
|
44
|
+
font-size: 20px;
|
|
45
|
+
line-height: 30px;
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
`
|
|
49
|
+
|
|
50
|
+
export const Tabs = styled.div`
|
|
51
|
+
display: flex;
|
|
52
|
+
margin-bottom: 24px;
|
|
53
|
+
border-bottom: 1px solid ${props => props.theme.colors.borderColor};
|
|
54
|
+
`
|
|
55
|
+
|
|
56
|
+
export const Tab = styled.div`
|
|
57
|
+
padding-bottom: 13px;
|
|
58
|
+
margin-right: 30px;
|
|
59
|
+
font-weight: 400;
|
|
60
|
+
font-size: 14px;
|
|
61
|
+
line-height: 21px;
|
|
62
|
+
color: ${props => props.theme.colors.lightGray};
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
${props => props.theme.rtl && css`
|
|
65
|
+
margin-left: 30px;
|
|
66
|
+
margin-right: 0;
|
|
67
|
+
`}
|
|
68
|
+
|
|
69
|
+
${({ active }) => active && css`
|
|
70
|
+
font-weight: 600;
|
|
71
|
+
color: ${props => props.theme.colors.headingColor};
|
|
72
|
+
border-bottom: 1px solid ${props => props.theme.colors.headingColor};
|
|
73
|
+
`}
|
|
74
|
+
`
|
|
75
|
+
|
|
76
|
+
export const FacebookProfileContainer = styled.div`
|
|
77
|
+
> p {
|
|
78
|
+
font-weight: 400;
|
|
79
|
+
font-size: 14px;
|
|
80
|
+
line-height: 24px;
|
|
81
|
+
color: ${props => props.theme.colors.lightGray};
|
|
82
|
+
margin-bottom: 23px;
|
|
83
|
+
margin-top: 0;
|
|
84
|
+
}
|
|
85
|
+
`
|
|
86
|
+
|
|
87
|
+
export const Step = styled.div`
|
|
88
|
+
margin-bottom: 27px;
|
|
89
|
+
h3 {
|
|
90
|
+
font-weight: 600;
|
|
91
|
+
font-size: 16px;
|
|
92
|
+
line-height: 24px;
|
|
93
|
+
margin-top: 0;
|
|
94
|
+
margin-bottom: 12px;
|
|
95
|
+
}
|
|
96
|
+
p {
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
font-size: 14px;
|
|
99
|
+
line-height: 24px;
|
|
100
|
+
margin-top: 0;
|
|
101
|
+
margin-bottom: 20px;
|
|
102
|
+
color: ${props => props.theme.colors.lightGray};
|
|
103
|
+
}
|
|
104
|
+
img {
|
|
105
|
+
width: 100%;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@media (min-width: 576px) {
|
|
109
|
+
img {
|
|
110
|
+
display: block;
|
|
111
|
+
width: 90%;
|
|
112
|
+
margin-left: auto;
|
|
113
|
+
margin-right: auto;
|
|
114
|
+
margin-bottom: 24px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
`
|
|
118
|
+
|
|
119
|
+
export const CopyInputWrapper = styled.div`
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
input {
|
|
123
|
+
flex: 1;
|
|
124
|
+
height: 44px;
|
|
125
|
+
}
|
|
126
|
+
button {
|
|
127
|
+
margin-left: 15px;
|
|
128
|
+
${props => props.theme.rtl && css`
|
|
129
|
+
margin-left: 0;
|
|
130
|
+
margin-right: 15px;
|
|
131
|
+
`}
|
|
132
|
+
}
|
|
133
|
+
`
|
|
134
|
+
|
|
135
|
+
export const FacebookPostContainer = styled(FacebookProfileContainer)``
|