ordering-ui-admin-external 1.13.4 → 1.14.0
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.1a09d41a4e6cd3d1e1cf.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 +45 -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.1a09d41a4e6cd3d1e1cf.js.LICENSE.txt} +0 -0
|
@@ -36,7 +36,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
36
36
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
37
37
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38
38
|
var PaymentOptionStripeDirect = function PaymentOptionStripeDirect(props) {
|
|
39
|
-
var
|
|
39
|
+
var _localState$sites, _businessPaymethod$si, _sitesState$sites2, _ref2, _changesState$sandbox, _changesState$data, _changesState$data2, _businessPaymethod$da, _changesState$data3, _changesState$data4, _businessPaymethod$da2, _changesState$data_sa, _changesState$data_sa2, _businessPaymethod$da3, _changesState$data_sa3, _changesState$data_sa4, _businessPaymethod$da4, _sitesState$sites3;
|
|
40
40
|
var open = props.open,
|
|
41
41
|
onClose = props.onClose,
|
|
42
42
|
orderTypes = props.orderTypes,
|
|
@@ -79,16 +79,35 @@ var PaymentOptionStripeDirect = function PaymentOptionStripeDirect(props) {
|
|
|
79
79
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
80
80
|
localState = _useState8[0],
|
|
81
81
|
setLocalState = _useState8[1];
|
|
82
|
+
var filteredOptions = (_localState$sites = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites !== void 0 ? _localState$sites : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.filter(function (a) {
|
|
83
|
+
var _sitesState$sites;
|
|
84
|
+
return sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.find(function (b) {
|
|
85
|
+
return a.id === b.id;
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
var _useState9 = (0, _react.useState)(!(filteredOptions !== null && filteredOptions !== void 0 && filteredOptions.length)),
|
|
89
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
90
|
+
all = _useState10[0],
|
|
91
|
+
setAll = _useState10[1];
|
|
82
92
|
var setPaymethodInfo = function setPaymethodInfo(values) {
|
|
83
|
-
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
84
93
|
var data = {};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
if ((values === null || values === void 0 ? void 0 : values.value) === 'All') {
|
|
95
|
+
data[values.key] = [];
|
|
96
|
+
setAll(!all);
|
|
97
|
+
} else {
|
|
98
|
+
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
99
|
+
var array = (_ref = (_changesState$values$ = changesState === null || changesState === void 0 ? void 0 : changesState[values.key]) !== null && _changesState$values$ !== void 0 ? _changesState$values$ : values.key === 'allowed_order_types' ? businessPaymethod === null || businessPaymethod === void 0 ? void 0 : businessPaymethod[values.key] : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
100
|
+
return i.id;
|
|
101
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
102
|
+
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
103
|
+
return item !== values.value;
|
|
104
|
+
}) : [].concat(_toConsumableArray(array), [values.value])));
|
|
105
|
+
data[values.key] = array.length > 0 ? array : [];
|
|
106
|
+
if (values.key === 'sites') {
|
|
107
|
+
var _data$sites;
|
|
108
|
+
setAll(!(data !== null && data !== void 0 && (_data$sites = data.sites) !== null && _data$sites !== void 0 && _data$sites.length));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
92
111
|
handleChangeBusinessPaymentState(data);
|
|
93
112
|
};
|
|
94
113
|
var actionSidebar = function actionSidebar(value) {
|
|
@@ -137,16 +156,10 @@ var PaymentOptionStripeDirect = function PaymentOptionStripeDirect(props) {
|
|
|
137
156
|
cleanChangesState(initState);
|
|
138
157
|
}, []);
|
|
139
158
|
(0, _react.useEffect)(function () {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
if (changesState !== null && changesState !== void 0 && changesState.sites) {
|
|
146
|
-
setLocalState({
|
|
147
|
-
sites: changesState === null || changesState === void 0 ? void 0 : changesState.sites
|
|
148
|
-
});
|
|
149
|
-
}
|
|
159
|
+
var changes = {};
|
|
160
|
+
if (changesState !== null && changesState !== void 0 && changesState.allowed_order_types) changes.allowed_order_types = changesState === null || changesState === void 0 ? void 0 : changesState.allowed_order_types;
|
|
161
|
+
if (changesState !== null && changesState !== void 0 && changesState.sites) changes.sites = changesState === null || changesState === void 0 ? void 0 : changesState.sites;
|
|
162
|
+
if (Object.keys(changes).length > 0) setLocalState(JSON.parse(JSON.stringify(changes)));
|
|
150
163
|
}, [changesState === null || changesState === void 0 ? void 0 : changesState.sites, changesState === null || changesState === void 0 ? void 0 : changesState.allowed_order_types]);
|
|
151
164
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, {
|
|
152
165
|
id: "stripe_direct"
|
|
@@ -168,7 +181,7 @@ var PaymentOptionStripeDirect = function PaymentOptionStripeDirect(props) {
|
|
|
168
181
|
onClick: function onClick() {
|
|
169
182
|
return setPaymentTabs(0);
|
|
170
183
|
}
|
|
171
|
-
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$
|
|
184
|
+
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles3.Tab, {
|
|
172
185
|
active: paymentTabs === 1,
|
|
173
186
|
onClick: function onClick() {
|
|
174
187
|
return setPaymentTabs(1);
|
|
@@ -211,8 +224,18 @@ var PaymentOptionStripeDirect = function PaymentOptionStripeDirect(props) {
|
|
|
211
224
|
onChange: function onChange(e) {
|
|
212
225
|
return handleChangeInput(e, true);
|
|
213
226
|
}
|
|
214
|
-
})), paymentTabs === 1 && (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$
|
|
215
|
-
|
|
227
|
+
})), paymentTabs === 1 && (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites3 = sitesState.sites) === null || _sitesState$sites3 === void 0 ? void 0 : _sitesState$sites3.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.TabOption, {
|
|
228
|
+
key: "all",
|
|
229
|
+
onClick: function onClick() {
|
|
230
|
+
return setPaymethodInfo({
|
|
231
|
+
key: 'sites',
|
|
232
|
+
value: 'All'
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}, all ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
236
|
+
className: "fill"
|
|
237
|
+
}) : /*#__PURE__*/_react.default.createElement(_RiCheckboxBlankLine.default, null), /*#__PURE__*/_react.default.createElement(_styles2.TabOptionName, null, t('ALL', 'All'))), !all && (sitesState === null || sitesState === void 0 ? void 0 : sitesState.sites.map(function (site) {
|
|
238
|
+
var _ref3, _localState$sites2, _businessPaymethod$si2;
|
|
216
239
|
return /*#__PURE__*/_react.default.createElement(_styles2.TabOption, {
|
|
217
240
|
key: site.id,
|
|
218
241
|
onClick: function onClick() {
|
|
@@ -221,12 +244,12 @@ var PaymentOptionStripeDirect = function PaymentOptionStripeDirect(props) {
|
|
|
221
244
|
value: site.id
|
|
222
245
|
});
|
|
223
246
|
}
|
|
224
|
-
}, (_ref3 = (_localState$
|
|
247
|
+
}, (_ref3 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$si2 = businessPaymethod.sites) === null || _businessPaymethod$si2 === void 0 ? void 0 : _businessPaymethod$si2.map(function (s) {
|
|
225
248
|
return s.id;
|
|
226
249
|
})) !== null && _ref3 !== void 0 && _ref3.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
227
250
|
className: "fill"
|
|
228
251
|
}) : /*#__PURE__*/_react.default.createElement(_RiCheckboxBlankLine.default, null), /*#__PURE__*/_react.default.createElement(_styles2.TabOptionName, null, site.name));
|
|
229
|
-
})), paymentTabs === 2 && orderTypes.map(function (type) {
|
|
252
|
+
}))), paymentTabs === 2 && orderTypes.map(function (type) {
|
|
230
253
|
var _ref4, _localState$allowed_o;
|
|
231
254
|
return /*#__PURE__*/_react.default.createElement(_styles2.TabOption, {
|
|
232
255
|
key: type.value,
|
|
@@ -38,7 +38,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
38
38
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
39
39
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
40
40
|
var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props) {
|
|
41
|
-
var
|
|
41
|
+
var _localState$sites, _businessPaymethod$si, _sitesState$sites2, _changesState$data, _changesState$data2, _businessPaymethod$da, _changesState$data3, _changesState$data4, _businessPaymethod$da2, _changesState$data5, _changesState$data6, _businessPaymethod$da3, _changesState$data_sa, _changesState$data_sa2, _businessPaymethod$da4, _sitesState$sites3;
|
|
42
42
|
var business = props.business,
|
|
43
43
|
open = props.open,
|
|
44
44
|
onClose = props.onClose,
|
|
@@ -81,16 +81,35 @@ var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props)
|
|
|
81
81
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
82
82
|
localState = _useState8[0],
|
|
83
83
|
setLocalState = _useState8[1];
|
|
84
|
+
var filteredOptions = (_localState$sites = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites !== void 0 ? _localState$sites : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.filter(function (a) {
|
|
85
|
+
var _sitesState$sites;
|
|
86
|
+
return sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.find(function (b) {
|
|
87
|
+
return a.id === b.id;
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
var _useState9 = (0, _react.useState)(!(filteredOptions !== null && filteredOptions !== void 0 && filteredOptions.length)),
|
|
91
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
92
|
+
all = _useState10[0],
|
|
93
|
+
setAll = _useState10[1];
|
|
84
94
|
var setPaymethodInfo = function setPaymethodInfo(values) {
|
|
85
|
-
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
86
95
|
var data = {};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
if ((values === null || values === void 0 ? void 0 : values.value) === 'All') {
|
|
97
|
+
data[values.key] = [];
|
|
98
|
+
setAll(!all);
|
|
99
|
+
} else {
|
|
100
|
+
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
101
|
+
var array = (_ref = (_changesState$values$ = changesState === null || changesState === void 0 ? void 0 : changesState[values.key]) !== null && _changesState$values$ !== void 0 ? _changesState$values$ : values.key === 'allowed_order_types' ? businessPaymethod === null || businessPaymethod === void 0 ? void 0 : businessPaymethod[values.key] : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
102
|
+
return i.id;
|
|
103
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
104
|
+
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
105
|
+
return item !== values.value;
|
|
106
|
+
}) : [].concat(_toConsumableArray(array), [values.value])));
|
|
107
|
+
data[values.key] = array.length > 0 ? array : [];
|
|
108
|
+
if (values.key === 'sites') {
|
|
109
|
+
var _data$sites;
|
|
110
|
+
setAll(!(data !== null && data !== void 0 && (_data$sites = data.sites) !== null && _data$sites !== void 0 && _data$sites.length));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
94
113
|
handleChangeBusinessPaymentState(data);
|
|
95
114
|
};
|
|
96
115
|
var actionSidebar = function actionSidebar(value) {
|
|
@@ -131,16 +150,10 @@ var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props)
|
|
|
131
150
|
});
|
|
132
151
|
}, [businessPaymethod === null || businessPaymethod === void 0 ? void 0 : businessPaymethod.allowed_order_types]);
|
|
133
152
|
(0, _react.useEffect)(function () {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
if (changesState !== null && changesState !== void 0 && changesState.sites) {
|
|
140
|
-
setLocalState({
|
|
141
|
-
sites: changesState === null || changesState === void 0 ? void 0 : changesState.sites
|
|
142
|
-
});
|
|
143
|
-
}
|
|
153
|
+
var changes = {};
|
|
154
|
+
if (changesState !== null && changesState !== void 0 && changesState.allowed_order_types) changes.allowed_order_types = changesState === null || changesState === void 0 ? void 0 : changesState.allowed_order_types;
|
|
155
|
+
if (changesState !== null && changesState !== void 0 && changesState.sites) changes.sites = changesState === null || changesState === void 0 ? void 0 : changesState.sites;
|
|
156
|
+
if (Object.keys(changes).length > 0) setLocalState(JSON.parse(JSON.stringify(changes)));
|
|
144
157
|
}, [changesState === null || changesState === void 0 ? void 0 : changesState.sites, changesState === null || changesState === void 0 ? void 0 : changesState.allowed_order_types]);
|
|
145
158
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, {
|
|
146
159
|
id: "stripe_connect"
|
|
@@ -162,7 +175,7 @@ var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props)
|
|
|
162
175
|
onClick: function onClick() {
|
|
163
176
|
return setPaymentTabs(0);
|
|
164
177
|
}
|
|
165
|
-
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$
|
|
178
|
+
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles3.Tab, {
|
|
166
179
|
active: paymentTabs === 1,
|
|
167
180
|
onClick: function onClick() {
|
|
168
181
|
return setPaymentTabs(1);
|
|
@@ -203,7 +216,8 @@ var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props)
|
|
|
203
216
|
placeholder: t('FIXED_FEE', 'Fixed fee'),
|
|
204
217
|
onChange: function onChange(e) {
|
|
205
218
|
return handleChangeStripeInput(e);
|
|
206
|
-
}
|
|
219
|
+
},
|
|
220
|
+
min: 0
|
|
207
221
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('PERCENTAGE_FEE', 'Percentage fee')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
208
222
|
type: "number",
|
|
209
223
|
name: "percentage_usage_fee",
|
|
@@ -211,9 +225,20 @@ var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props)
|
|
|
211
225
|
placeholder: t('PERCENTAGE_FEE', 'Percentage fee'),
|
|
212
226
|
onChange: function onChange(e) {
|
|
213
227
|
return handleChangeStripeInput(e);
|
|
228
|
+
},
|
|
229
|
+
min: 0
|
|
230
|
+
})))), paymentTabs === 1 && (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites3 = sitesState.sites) === null || _sitesState$sites3 === void 0 ? void 0 : _sitesState$sites3.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles4.TabOption, {
|
|
231
|
+
key: "all",
|
|
232
|
+
onClick: function onClick() {
|
|
233
|
+
return setPaymethodInfo({
|
|
234
|
+
key: 'sites',
|
|
235
|
+
value: 'All'
|
|
236
|
+
});
|
|
214
237
|
}
|
|
215
|
-
}
|
|
216
|
-
|
|
238
|
+
}, all ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
239
|
+
className: "fill"
|
|
240
|
+
}) : /*#__PURE__*/_react.default.createElement(_RiCheckboxBlankLine.default, null), /*#__PURE__*/_react.default.createElement(_styles4.TabOptionName, null, t('ALL', 'All'))), !all && (sitesState === null || sitesState === void 0 ? void 0 : sitesState.sites.map(function (site) {
|
|
241
|
+
var _ref2, _localState$sites2, _businessPaymethod$si2;
|
|
217
242
|
return /*#__PURE__*/_react.default.createElement(_styles4.TabOption, {
|
|
218
243
|
key: site.id,
|
|
219
244
|
onClick: function onClick() {
|
|
@@ -222,12 +247,12 @@ var PaymethodOptionStripeConnect = function PaymethodOptionStripeConnect(props)
|
|
|
222
247
|
value: site.id
|
|
223
248
|
});
|
|
224
249
|
}
|
|
225
|
-
}, (_ref2 = (_localState$
|
|
250
|
+
}, (_ref2 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$si2 = businessPaymethod.sites) === null || _businessPaymethod$si2 === void 0 ? void 0 : _businessPaymethod$si2.map(function (s) {
|
|
226
251
|
return s.id;
|
|
227
252
|
})) !== null && _ref2 !== void 0 && _ref2.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
228
253
|
className: "fill"
|
|
229
254
|
}) : /*#__PURE__*/_react.default.createElement(_RiCheckboxBlankLine.default, null), /*#__PURE__*/_react.default.createElement(_styles4.TabOptionName, null, site.name));
|
|
230
|
-
})), paymentTabs === 2 && orderTypes.map(function (type) {
|
|
255
|
+
}))), paymentTabs === 2 && orderTypes.map(function (type) {
|
|
231
256
|
var _ref3, _localState$allowed_o;
|
|
232
257
|
return /*#__PURE__*/_react.default.createElement(_styles4.TabOption, {
|
|
233
258
|
key: type.value,
|
|
@@ -37,7 +37,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
37
37
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
38
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
39
|
var PaymethodOptionStripeRedirect = function PaymethodOptionStripeRedirect(props) {
|
|
40
|
-
var
|
|
40
|
+
var _localState$sites, _businessPaymethod$si, _sitesState$sites2, _ref2, _changesState$sandbox, _changesState$data, _changesState$data2, _businessPaymethod$da, _changesState$data3, _changesState$data4, _businessPaymethod$da2, _changesState$data_sa, _changesState$data_sa2, _businessPaymethod$da3, _changesState$data_sa3, _changesState$data_sa4, _businessPaymethod$da4, _sitesState$sites3;
|
|
41
41
|
var open = props.open,
|
|
42
42
|
onClose = props.onClose,
|
|
43
43
|
changesState = props.changesState,
|
|
@@ -80,16 +80,35 @@ var PaymethodOptionStripeRedirect = function PaymethodOptionStripeRedirect(props
|
|
|
80
80
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
81
81
|
localState = _useState8[0],
|
|
82
82
|
setLocalState = _useState8[1];
|
|
83
|
+
var filteredOptions = (_localState$sites = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites !== void 0 ? _localState$sites : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.filter(function (a) {
|
|
84
|
+
var _sitesState$sites;
|
|
85
|
+
return sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.find(function (b) {
|
|
86
|
+
return a.id === b.id;
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
var _useState9 = (0, _react.useState)(!(filteredOptions !== null && filteredOptions !== void 0 && filteredOptions.length)),
|
|
90
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
91
|
+
all = _useState10[0],
|
|
92
|
+
setAll = _useState10[1];
|
|
83
93
|
var setPaymethodInfo = function setPaymethodInfo(values) {
|
|
84
|
-
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
85
94
|
var data = {};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
if ((values === null || values === void 0 ? void 0 : values.value) === 'All') {
|
|
96
|
+
data[values.key] = [];
|
|
97
|
+
setAll(!all);
|
|
98
|
+
} else {
|
|
99
|
+
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
100
|
+
var array = (_ref = (_changesState$values$ = changesState === null || changesState === void 0 ? void 0 : changesState[values.key]) !== null && _changesState$values$ !== void 0 ? _changesState$values$ : values.key === 'allowed_order_types' ? businessPaymethod === null || businessPaymethod === void 0 ? void 0 : businessPaymethod[values.key] : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
101
|
+
return i.id;
|
|
102
|
+
})) !== null && _ref !== void 0 ? _ref : [];
|
|
103
|
+
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
104
|
+
return item !== values.value;
|
|
105
|
+
}) : [].concat(_toConsumableArray(array), [values.value])));
|
|
106
|
+
data[values.key] = array.length > 0 ? array : [];
|
|
107
|
+
if (values.key === 'sites') {
|
|
108
|
+
var _data$sites;
|
|
109
|
+
setAll(!(data !== null && data !== void 0 && (_data$sites = data.sites) !== null && _data$sites !== void 0 && _data$sites.length));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
93
112
|
handleChangeBusinessPaymentState(data);
|
|
94
113
|
};
|
|
95
114
|
var actionSidebar = function actionSidebar(value) {
|
|
@@ -138,16 +157,10 @@ var PaymethodOptionStripeRedirect = function PaymethodOptionStripeRedirect(props
|
|
|
138
157
|
cleanChangesState(initState);
|
|
139
158
|
}, []);
|
|
140
159
|
(0, _react.useEffect)(function () {
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
if (changesState !== null && changesState !== void 0 && changesState.sites) {
|
|
147
|
-
setLocalState({
|
|
148
|
-
sites: changesState === null || changesState === void 0 ? void 0 : changesState.sites
|
|
149
|
-
});
|
|
150
|
-
}
|
|
160
|
+
var changes = {};
|
|
161
|
+
if (changesState !== null && changesState !== void 0 && changesState.allowed_order_types) changes.allowed_order_types = changesState === null || changesState === void 0 ? void 0 : changesState.allowed_order_types;
|
|
162
|
+
if (changesState !== null && changesState !== void 0 && changesState.sites) changes.sites = changesState === null || changesState === void 0 ? void 0 : changesState.sites;
|
|
163
|
+
if (Object.keys(changes).length > 0) setLocalState(JSON.parse(JSON.stringify(changes)));
|
|
151
164
|
}, [changesState === null || changesState === void 0 ? void 0 : changesState.sites, changesState === null || changesState === void 0 ? void 0 : changesState.allowed_order_types]);
|
|
152
165
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, {
|
|
153
166
|
id: "stripe_redirect"
|
|
@@ -169,7 +182,7 @@ var PaymethodOptionStripeRedirect = function PaymethodOptionStripeRedirect(props
|
|
|
169
182
|
onClick: function onClick() {
|
|
170
183
|
return setPaymentTabs(0);
|
|
171
184
|
}
|
|
172
|
-
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$
|
|
185
|
+
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles3.Tab, {
|
|
173
186
|
active: paymentTabs === 1,
|
|
174
187
|
onClick: function onClick() {
|
|
175
188
|
return setPaymentTabs(1);
|
|
@@ -212,8 +225,18 @@ var PaymethodOptionStripeRedirect = function PaymethodOptionStripeRedirect(props
|
|
|
212
225
|
onChange: function onChange(e) {
|
|
213
226
|
return handleChangeInput(e, true);
|
|
214
227
|
}
|
|
215
|
-
})), paymentTabs === 1 && (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$
|
|
216
|
-
|
|
228
|
+
})), paymentTabs === 1 && (sitesState === null || sitesState === void 0 ? void 0 : (_sitesState$sites3 = sitesState.sites) === null || _sitesState$sites3 === void 0 ? void 0 : _sitesState$sites3.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles4.TabOption, {
|
|
229
|
+
key: "all",
|
|
230
|
+
onClick: function onClick() {
|
|
231
|
+
return setPaymethodInfo({
|
|
232
|
+
key: 'sites',
|
|
233
|
+
value: 'All'
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}, all ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
237
|
+
className: "fill"
|
|
238
|
+
}) : /*#__PURE__*/_react.default.createElement(_RiCheckboxBlankLine.default, null), /*#__PURE__*/_react.default.createElement(_styles4.TabOptionName, null, t('ALL', 'All'))), !all && (sitesState === null || sitesState === void 0 ? void 0 : sitesState.sites.map(function (site) {
|
|
239
|
+
var _ref3, _localState$sites2, _businessPaymethod$si2;
|
|
217
240
|
return /*#__PURE__*/_react.default.createElement(_styles4.TabOption, {
|
|
218
241
|
key: site.id,
|
|
219
242
|
onClick: function onClick() {
|
|
@@ -222,12 +245,12 @@ var PaymethodOptionStripeRedirect = function PaymethodOptionStripeRedirect(props
|
|
|
222
245
|
value: site.id
|
|
223
246
|
});
|
|
224
247
|
}
|
|
225
|
-
}, (_ref3 = (_localState$
|
|
248
|
+
}, (_ref3 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0 ? void 0 : (_businessPaymethod$si2 = businessPaymethod.sites) === null || _businessPaymethod$si2 === void 0 ? void 0 : _businessPaymethod$si2.map(function (s) {
|
|
226
249
|
return s.id;
|
|
227
250
|
})) !== null && _ref3 !== void 0 && _ref3.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
228
251
|
className: "fill"
|
|
229
252
|
}) : /*#__PURE__*/_react.default.createElement(_RiCheckboxBlankLine.default, null), /*#__PURE__*/_react.default.createElement(_styles4.TabOptionName, null, site.name));
|
|
230
|
-
})), paymentTabs === 2 && orderTypes.map(function (type) {
|
|
253
|
+
}))), paymentTabs === 2 && orderTypes.map(function (type) {
|
|
231
254
|
var _ref4, _localState$allowed_o;
|
|
232
255
|
return /*#__PURE__*/_react.default.createElement(_styles4.TabOption, {
|
|
233
256
|
key: type.value,
|
|
@@ -140,7 +140,8 @@ var ProductDetailsUI = function ProductDetailsUI(props) {
|
|
|
140
140
|
}, (!isExtendExtraOpen || width < 1000) && /*#__PURE__*/_react.default.createElement(_ProductSummary.ProductSummary, _extends({}, props, {
|
|
141
141
|
actionSidebar: actionSidebar,
|
|
142
142
|
showOption: showOption,
|
|
143
|
-
handleShowOption: handleShowOption
|
|
143
|
+
handleShowOption: handleShowOption,
|
|
144
|
+
extraOpen: extraOpen
|
|
144
145
|
})), extraOpen && /*#__PURE__*/_react.default.createElement(_Shared.MoreSidebarLayout, {
|
|
145
146
|
isExtendExtraOpen: isExtendExtraOpen,
|
|
146
147
|
onClose: handleCloseExtraOpen
|
|
@@ -392,7 +392,26 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
392
392
|
id: val
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.FieldRow,
|
|
395
|
+
})), /*#__PURE__*/_react.default.createElement(_styles2.FieldRow, {
|
|
396
|
+
fullWidth: true
|
|
397
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.InputContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.LabelCustom, {
|
|
398
|
+
htmlFor: "external_id"
|
|
399
|
+
}, t('EXTERNAL_ID', 'External Id')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
400
|
+
name: "external_id",
|
|
401
|
+
placeholder: t('EXTERNAL_ID', 'External Id'),
|
|
402
|
+
defaultValue: productState === null || productState === void 0 ? void 0 : productState.external_id,
|
|
403
|
+
onChange: function onChange(e) {
|
|
404
|
+
var _e$target$value2;
|
|
405
|
+
return handleClickProperty('external_id', (_e$target$value2 = e.target.value) !== null && _e$target$value2 !== void 0 ? _e$target$value2 : null);
|
|
406
|
+
},
|
|
407
|
+
disabled: formState.loading,
|
|
408
|
+
autoComplete: "off",
|
|
409
|
+
onKeyPress: function onKeyPress(e) {
|
|
410
|
+
if (!/^[0-9]$/.test(e.key)) {
|
|
411
|
+
e.preventDefault();
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}))), /*#__PURE__*/_react.default.createElement(_styles2.FieldRow, null, /*#__PURE__*/_react.default.createElement(_styles2.InputContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.LabelCustom, {
|
|
396
415
|
htmlFor: "cost_price"
|
|
397
416
|
}, t('PRODUCT_COST', 'Product cost')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
398
417
|
name: "cost_price",
|
|
@@ -400,8 +419,8 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
400
419
|
placeholder: "0.00",
|
|
401
420
|
defaultValue: (_productState$cost_pr = productState === null || productState === void 0 ? void 0 : productState.cost_price) !== null && _productState$cost_pr !== void 0 ? _productState$cost_pr : '',
|
|
402
421
|
onChange: function onChange(e) {
|
|
403
|
-
var _e$target$
|
|
404
|
-
return handleClickProperty('cost_price', (_e$target$
|
|
422
|
+
var _e$target$value3;
|
|
423
|
+
return handleClickProperty('cost_price', (_e$target$value3 = e.target.value) !== null && _e$target$value3 !== void 0 ? _e$target$value3 : null);
|
|
405
424
|
},
|
|
406
425
|
disabled: formState.loading,
|
|
407
426
|
autoComplete: "off",
|
|
@@ -418,8 +437,8 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
418
437
|
placeholder: "0.00",
|
|
419
438
|
defaultValue: (_productState$cost_of = productState === null || productState === void 0 ? void 0 : productState.cost_offer_price) !== null && _productState$cost_of !== void 0 ? _productState$cost_of : '',
|
|
420
439
|
onChange: function onChange(e) {
|
|
421
|
-
var _e$target$
|
|
422
|
-
return handleClickProperty('cost_offer_price', (_e$target$
|
|
440
|
+
var _e$target$value4;
|
|
441
|
+
return handleClickProperty('cost_offer_price', (_e$target$value4 = e.target.value) !== null && _e$target$value4 !== void 0 ? _e$target$value4 : null);
|
|
423
442
|
},
|
|
424
443
|
disabled: formState.loading,
|
|
425
444
|
autoComplete: "off",
|
|
@@ -439,8 +458,8 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
439
458
|
required: t('MINIMUM_QUANTITY_REQUIRED', 'The minimum quantity is required')
|
|
440
459
|
}),
|
|
441
460
|
onChange: function onChange(e) {
|
|
442
|
-
var _e$target$
|
|
443
|
-
return handleClickProperty('minimum_per_order', (_e$target$
|
|
461
|
+
var _e$target$value5;
|
|
462
|
+
return handleClickProperty('minimum_per_order', (_e$target$value5 = e.target.value) !== null && _e$target$value5 !== void 0 ? _e$target$value5 : null);
|
|
444
463
|
},
|
|
445
464
|
disabled: formState.loading,
|
|
446
465
|
autoComplete: "off",
|
|
@@ -476,8 +495,8 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
476
495
|
placeholder: "0.00",
|
|
477
496
|
defaultValue: (_productState$calorie = productState === null || productState === void 0 ? void 0 : productState.calories) !== null && _productState$calorie !== void 0 ? _productState$calorie : '',
|
|
478
497
|
onChange: function onChange(e) {
|
|
479
|
-
var _e$target$
|
|
480
|
-
return handleClickProperty('calories', (_e$target$
|
|
498
|
+
var _e$target$value6;
|
|
499
|
+
return handleClickProperty('calories', (_e$target$value6 = e.target.value) !== null && _e$target$value6 !== void 0 ? _e$target$value6 : null);
|
|
481
500
|
},
|
|
482
501
|
disabled: formState.loading,
|
|
483
502
|
autoComplete: "off",
|
|
@@ -494,8 +513,8 @@ var ProductDetailsAdvancedUI = function ProductDetailsAdvancedUI(props) {
|
|
|
494
513
|
placeholder: "0.00",
|
|
495
514
|
defaultValue: (_productState$weight = productState === null || productState === void 0 ? void 0 : productState.weight) !== null && _productState$weight !== void 0 ? _productState$weight : '',
|
|
496
515
|
onChange: function onChange(e) {
|
|
497
|
-
var _e$target$
|
|
498
|
-
return handleClickProperty('weight', (_e$target$
|
|
516
|
+
var _e$target$value7;
|
|
517
|
+
return handleClickProperty('weight', (_e$target$value7 = e.target.value) !== null && _e$target$value7 !== void 0 ? _e$target$value7 : null);
|
|
499
518
|
},
|
|
500
519
|
disabled: formState.loading,
|
|
501
520
|
autoComplete: "off",
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.WrapperRow = exports.WeightWrapper = exports.TypeSelectWrapper = exports.PropertyOptionWrapper = exports.PropertyOption = exports.PropertiesContainer = exports.PricePerUnit = exports.OptionCenter = exports.Option = exports.LabelCustom = exports.InputContainer = exports.FieldRow = exports.EditTaxContainer = exports.ButtonGroup = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
9
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
9
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
12
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -43,16 +43,19 @@ var EditTaxContainer = _styledComponents.default.form(_templateObject14 || (_tem
|
|
|
43
43
|
exports.EditTaxContainer = EditTaxContainer;
|
|
44
44
|
var WrapperRow = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n display: flex;\n width: 100% !important;\n flex-direction: column;\n justify-content: space-between;\n\n & > div {\n width: 100%;\n height: 100px;\n margin-bottom: 20px;\n border: none;\n }\n\n .date-filter-container {\n z-index: 100;\n }\n\n > input {\n width: 100%;\n height: 57px;\n margin-bottom: 20px;\n padding: 10px 25px;\n box-sizing: border-box;\n &::-webkit-outer-spin-button,\n &::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n -moz-appearance: textfield;\n }\n\n @media (min-width: 992px) {\n flex-direction: row;\n & > div {\n width: 48%;\n }\n\n > input {\n width: 48%;\n }\n }\n"])));
|
|
45
45
|
exports.WrapperRow = WrapperRow;
|
|
46
|
-
var FieldRow = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n label:first-child{\n margin-top: 30px;\n }\n > div {\n width: 100%;\n padding: 0px;\n }\n\n @media (min-width: 576px) {\n flex-direction: row;\n > div {\n width: 48%;\n }\n }\n"])))
|
|
46
|
+
var FieldRow = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n label:first-child{\n margin-top: 30px;\n }\n > div {\n width: 100%;\n padding: 0px;\n }\n\n @media (min-width: 576px) {\n flex-direction: row;\n > div {\n width: 48%;\n }\n ", "\n }\n"])), function (_ref5) {
|
|
47
|
+
var fullWidth = _ref5.fullWidth;
|
|
48
|
+
return fullWidth && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n > div {\n width: 100%;\n }\n "])));
|
|
49
|
+
});
|
|
47
50
|
exports.FieldRow = FieldRow;
|
|
48
|
-
var InputContainer = _styledComponents.default.div(
|
|
51
|
+
var InputContainer = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n max-width: 100%;\n padding: 0 10px;\n\n &.growUnset {\n flex-grow: unset;\n }\n\n &.showWeight {\n width: 40%;\n }\n"])));
|
|
49
52
|
exports.InputContainer = InputContainer;
|
|
50
|
-
var WeightWrapper = _styledComponents.default.div(
|
|
53
|
+
var WeightWrapper = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n\n input {\n width: 55%;\n }\n\n .select {\n width: 40%;\n padding-top: 3.5px;\n font-size: 14px;\n\n .list {\n padding-top: 7px;\n padding-bottom: 7px;\n margin-bottom: 10px;\n }\n }\n"])));
|
|
51
54
|
exports.WeightWrapper = WeightWrapper;
|
|
52
|
-
var PropertyOptionWrapper = _styledComponents.default.div(
|
|
55
|
+
var PropertyOptionWrapper = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: block;\n margin-top: 30px;\n"])));
|
|
53
56
|
exports.PropertyOptionWrapper = PropertyOptionWrapper;
|
|
54
|
-
var PricePerUnit = _styledComponents.default.div(
|
|
57
|
+
var PricePerUnit = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n label {\n font-size: 14px;\n margin: 0;\n margin-right: 15px;\n ", "\n }\n \n .select {\n font-size: 14px;\n padding: 3.5px;\n .list {\n padding-top: 7px;\n padding-bottom: 7px;\n }\n }\n"])), function (props) {
|
|
55
58
|
var _props$theme2;
|
|
56
|
-
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(
|
|
59
|
+
return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-right: 0;\n margin-left: 15px;\n "])));
|
|
57
60
|
});
|
|
58
61
|
exports.PricePerUnit = PricePerUnit;
|