ordering-ui-admin-external 1.30.5 → 1.30.7
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.d23ef912a8c0e75e18e5.js → ordering-ui-admin.a29dbc53a1f823ce0ce5.js} +2 -2
- package/_bundles/{ordering-ui-admin.d23ef912a8c0e75e18e5.js.LICENSE.txt → ordering-ui-admin.a29dbc53a1f823ce0ce5.js.LICENSE.txt} +1 -1
- package/_modules/components/BusinessIntelligence/AnalyticsAvailableTimes/index.js +10 -10
- package/_modules/components/BusinessIntelligence/AnalyticsBusinessFilter/index.js +1 -1
- package/_modules/components/BusinessIntelligence/AnalyticsBusyTimes/index.js +10 -10
- package/_modules/components/BusinessIntelligence/AnalyticsCalendar/index.js +1 -1
- package/_modules/components/BusinessIntelligence/AnalyticsCustomerSatisfaction/index.js +10 -10
- package/_modules/components/BusinessIntelligence/AnalyticsDriverOrders/index.js +18 -18
- package/_modules/components/BusinessIntelligence/AnalyticsMap/index.js +4 -4
- package/_modules/components/BusinessIntelligence/AnalyticsOrdersOrSales/index.js +3 -3
- package/_modules/components/BusinessIntelligence/AnalyticsOrdersStatus/index.js +1 -1
- package/_modules/components/BusinessIntelligence/AnalyticsRegisterUsers/index.js +6 -6
- package/_modules/components/BusinessIntelligence/AnalyticsSpendTimes/index.js +12 -12
- package/_modules/components/BusinessIntelligence/BusinessReviewDetails/index.js +4 -4
- package/_modules/components/BusinessIntelligence/BusinessReviewList/index.js +4 -4
- package/_modules/components/BusinessIntelligence/CountryFilter/index.js +4 -2
- package/_modules/components/BusinessIntelligence/InvoiceBusinessPdf/index.js +20 -20
- package/_modules/components/BusinessIntelligence/InvoiceDriverPdf/index.js +20 -20
- package/_modules/components/BusinessIntelligence/InvoiceGeneral/index.js +2 -2
- package/_modules/components/BusinessIntelligence/ReportsAverageSales/index.js +14 -14
- package/_modules/components/BusinessIntelligence/ReportsBarChart/index.js +3 -3
- package/_modules/components/BusinessIntelligence/ReportsBusinessDistance/index.js +41 -36
- package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +22 -17
- package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +15 -15
- package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +30 -25
- package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +22 -17
- package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +22 -17
- package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +7 -7
- package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +22 -17
- package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +24 -19
- package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +37 -32
- package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +38 -33
- package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +34 -29
- package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
- package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +37 -32
- package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +30 -25
- package/_modules/components/BusinessIntelligence/ReportsSales/index.js +36 -31
- package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +8 -8
- package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +25 -26
- package/_modules/components/BusinessIntelligence/ReportsUsers/index.js +14 -14
- package/_modules/components/BusinessIntelligence/ReviewProductsListing/index.js +4 -4
- package/_modules/components/BusinessIntelligence/UsersReviewList/index.js +1 -1
- package/_modules/components/CartRecovery/OpenCartBill/index.js +24 -24
- package/_modules/components/CartRecovery/OpenCartList/index.js +6 -6
- package/_modules/components/CartRecovery/OpenCartsContactInformation/index.js +8 -8
- package/_modules/components/CartRecovery/OpenCartsDetail/index.js +3 -3
- package/_modules/components/CartRecovery/RecoveryActionAdd/index.js +8 -8
- package/_modules/components/CartRecovery/RecoveryActionDetail/index.js +1 -1
- package/_modules/components/CartRecovery/RecoveryActionList/index.js +2 -2
- package/_modules/components/CartRecovery/RecoveryGeneral/index.js +6 -6
- package/_modules/components/CartRecovery/SingleRecoveryNotification/index.js +5 -5
- package/_modules/components/Delivery/AddressForm/index.js +29 -29
- package/_modules/components/Delivery/AddressList/index.js +11 -11
- package/_modules/components/Delivery/DriverGroupSetting/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupAddForm/BusinessesForm/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupAddForm/PaymethodsForm/index.js +2 -2
- package/_modules/components/Delivery/DriversGroupAddForm/index.js +2 -2
- package/_modules/components/Delivery/DriversGroupBusinesses/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupCompanies/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupDeliveryDetails/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupDeliveryZoneInformation/index.js +18 -18
- package/_modules/components/Delivery/DriversGroupDeliveryZoneList/index.js +4 -4
- package/_modules/components/Delivery/DriversGroupDetails/index.js +2 -2
- package/_modules/components/Delivery/DriversGroupDrivers/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupLogs/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupOrders/index.js +5 -5
- package/_modules/components/Delivery/DriversGroupPaymethods/index.js +2 -2
- package/_modules/components/Delivery/DriversGroupsDeliveryZoneDetails/index.js +1 -1
- package/_modules/components/Delivery/DriversGroupsList/index.js +2 -2
- package/_modules/components/Delivery/DriversGroupsListing/index.js +4 -4
- package/_modules/components/Delivery/UserAddForm/index.js +13 -13
- package/_modules/components/Delivery/UserDetails/index.js +6 -6
- package/_modules/components/Delivery/UserFormDetails/index.js +10 -10
- package/_modules/components/Delivery/UserProfileForm/index.js +7 -7
- package/_modules/components/Home/HomePage/index.js +7 -7
- package/_modules/components/LanguageSelector/index.js +1 -1
- package/_modules/components/Login/ForgotPasswordForm/index.js +3 -3
- package/_modules/components/Login/LoginForm/index.js +11 -11
- package/_modules/components/Login/ResetPassword/index.js +5 -5
- package/_modules/components/Loyalty/GiftCardDetail/index.js +8 -8
- package/_modules/components/Loyalty/GiftCards/index.js +3 -3
- package/_modules/components/Loyalty/LoyaltyLevelDetail/index.js +10 -10
- package/_modules/components/Loyalty/PointsWalletBusinessDetail/index.js +6 -6
- package/_modules/components/Loyalty/PointsWalletBusinessList/index.js +3 -3
- package/_modules/components/Loyalty/PointsWalletLevels/index.js +3 -3
- package/_modules/components/Marketing/BannerDetails/Businesses/index.js +1 -1
- package/_modules/components/Marketing/BannerDetails/index.js +5 -5
- package/_modules/components/Marketing/BannerImageDetails/BusinessLink.js +2 -2
- package/_modules/components/Marketing/BannerImageDetails/ProductLink.js +3 -3
- package/_modules/components/Marketing/BannerImageDetails/SelectBusinessProducts/index.js +7 -7
- package/_modules/components/Marketing/BannerImageDetails/index.js +1 -1
- package/_modules/components/Marketing/CampaignAmountOption/index.js +4 -4
- package/_modules/components/Marketing/CampaignDetail/index.js +1 -1
- package/_modules/components/Marketing/CampaignDetailContent/index.js +2 -2
- package/_modules/components/Marketing/CampaignDetailGeneral/index.js +19 -19
- package/_modules/components/Marketing/CampaignEmail/index.js +15 -15
- package/_modules/components/Marketing/CampaignHeader/index.js +1 -1
- package/_modules/components/Marketing/CampaignList/index.js +2 -2
- package/_modules/components/Marketing/CampaignNotification/index.js +12 -12
- package/_modules/components/Marketing/CampaignPopup/index.js +10 -10
- package/_modules/components/Marketing/CampaignSMS/index.js +11 -11
- package/_modules/components/Marketing/CampaignSignUpOption/index.js +5 -5
- package/_modules/components/Marketing/CampaignUsersList/index.js +4 -4
- package/_modules/components/Marketing/CampaignWebHook/index.js +11 -11
- package/_modules/components/Marketing/CampaignWhatsapp/index.js +10 -10
- package/_modules/components/Marketing/EnterprisePromotionDeliveryzones/index.js +6 -6
- package/_modules/components/Marketing/EnterprisePromotionDetails/index.js +4 -4
- package/_modules/components/Marketing/EnterprisePromotionGeneralDetails/index.js +9 -9
- package/_modules/components/Marketing/EnterprisePromotionMaxOrders/index.js +1 -1
- package/_modules/components/Marketing/EnterprisePromotionOrderTypes/index.js +2 -2
- package/_modules/components/Marketing/EnterprisePromotionPaymethods/index.js +7 -7
- package/_modules/components/Marketing/EnterprisePromotionRules/index.js +8 -8
- package/_modules/components/Marketing/EnterprisePromotionSpecficCategory/index.js +12 -12
- package/_modules/components/Marketing/EnterprisePromotionSpecficProducts/index.js +7 -7
- package/_modules/components/Marketing/PageBanner/index.js +1 -1
- package/_modules/components/Messages/ChatBusinessesList/index.js +2 -2
- package/_modules/components/Messages/ChatContactList/index.js +2 -2
- package/_modules/components/MyProducts/AdvancedLayouts/index.js +14 -14
- package/_modules/components/MyProducts/AdvancedSettings/index.js +40 -40
- package/_modules/components/MyProducts/AppResources/index.js +15 -15
- package/_modules/components/MyProducts/CustomDomain/index.js +2 -2
- package/_modules/components/MyProducts/OrderingWebsite/SelectBusiness.js +2 -2
- package/_modules/components/MyProducts/OrderingWebsite/SelectFranchise.js +2 -2
- package/_modules/components/MyProducts/OrderingWebsite/index.js +29 -29
- package/_modules/components/MyProducts/UploadAudio/index.js +2 -2
- package/_modules/components/NotNetworkConnectivity/index.js +2 -2
- package/_modules/components/OrderingProducts/OrderingProductGeneralDetails/index.js +18 -18
- package/_modules/components/OrderingProducts/OrderingProductsListing/index.js +1 -1
- package/_modules/components/OrderingProducts/SiteTheme/ThemeComponent.js +1 -1
- package/_modules/components/OrderingProducts/SiteTheme/index.js +10 -10
- package/_modules/components/Orders/AllInOne/DriversManager/index.js +2 -2
- package/_modules/components/Orders/Appointments/EventComponent.js +3 -3
- package/_modules/components/Orders/Appointments/index.js +2 -2
- package/_modules/components/Orders/CompanySelector/index.js +4 -4
- package/_modules/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
- package/_modules/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
- package/_modules/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
- package/_modules/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
- package/_modules/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
- package/_modules/components/Orders/CreateCustomOrder/Map/index.js +11 -11
- package/_modules/components/Orders/CreateCustomOrder/OrderTypeSelector/index.js +2 -2
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
- package/_modules/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
- package/_modules/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
- package/_modules/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
- package/_modules/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
- package/_modules/components/Orders/CreateCustomOrder/SelectCustomer/index.js +1 -1
- package/_modules/components/Orders/CreateCustomOrder/SelectProducts/index.js +2 -2
- package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
- package/_modules/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
- package/_modules/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
- package/_modules/components/Orders/DeliveriesLocation/index.js +27 -27
- package/_modules/components/Orders/DeliveriesManager/index.js +2 -2
- package/_modules/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
- package/_modules/components/Orders/DriversList/index.js +2 -2
- package/_modules/components/Orders/DriversLocation/index.js +11 -11
- package/_modules/components/Orders/DriversManager/index.js +2 -2
- package/_modules/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
- package/_modules/components/Orders/InterActOrderMarker/index.js +3 -3
- package/_modules/components/Orders/Logistics/index.js +1 -1
- package/_modules/components/Orders/Messages/index.js +4 -4
- package/_modules/components/Orders/OrderBill/RefundToWallet.js +16 -16
- package/_modules/components/Orders/OrderBill/index.js +46 -46
- package/_modules/components/Orders/OrderContactInformation/index.js +22 -22
- package/_modules/components/Orders/OrderDashboardSLASetting/index.js +3 -3
- package/_modules/components/Orders/OrderDetails/index.js +6 -6
- package/_modules/components/Orders/OrderDetailsHeader/index.js +6 -6
- package/_modules/components/Orders/OrderLogisticInformation/index.js +2 -4
- package/_modules/components/Orders/OrderNotification/index.js +4 -4
- package/_modules/components/Orders/OrderStatusFilterBar/index.js +4 -4
- package/_modules/components/Orders/OrderToPrint/index.js +22 -22
- package/_modules/components/Orders/OrderToPrintTicket/index.js +5 -5
- package/_modules/components/Orders/OrdersCards/index.js +29 -29
- package/_modules/components/Orders/OrdersContentHeader/index.js +3 -3
- package/_modules/components/Orders/OrdersExportCSV/index.js +1 -1
- package/_modules/components/Orders/OrdersLateralBar/index.js +3 -3
- package/_modules/components/Orders/OrdersListing/index.js +3 -3
- package/_modules/components/Orders/OrdersTable/index.js +54 -54
- package/_modules/components/Orders/PaymethodTypeSelector/index.js +1 -1
- package/_modules/components/Orders/ProductItemAccordion/index.js +4 -4
- package/_modules/components/Orders/ReviewCustomer/index.js +2 -2
- package/_modules/components/PageNotFound/index.js +3 -3
- package/_modules/components/Settings/ApiKeysList/index.js +1 -1
- package/_modules/components/Settings/CountriesList/index.js +1 -1
- package/_modules/components/Settings/DropdownOptionList/index.js +2 -2
- package/_modules/components/Settings/EmailSetting/index.js +5 -5
- package/_modules/components/Settings/InsertImage/index.js +3 -3
- package/_modules/components/Settings/IntegrationListing/Analytics.js +1 -1
- package/_modules/components/Settings/IntegrationListing/PaymentGateway.js +1 -1
- package/_modules/components/Settings/LanguageSetting/index.js +1 -1
- package/_modules/components/Settings/LanguageTransSpread/index.js +2 -2
- package/_modules/components/Settings/LanguageTransTable/index.js +4 -4
- package/_modules/components/Settings/NotificationSetting/index.js +6 -6
- package/_modules/components/Settings/PlaceListing/index.js +1 -1
- package/_modules/components/Settings/Settings/index.js +3 -3
- package/_modules/components/Settings/SettingsCountryFilter/index.js +1 -1
- package/_modules/components/Settings/SettingsList/index.js +4 -4
- package/_modules/components/Settings/SettingsSelectUI/index.js +1 -1
- package/_modules/components/Settings/ZoneDropdownDetails/index.js +1 -1
- package/_modules/components/Shared/AutoScroll/index.js +4 -4
- package/_modules/components/Shared/CitySelector/index.js +1 -1
- package/_modules/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
- package/_modules/components/Shared/ConfirmAdmin/index.js +1 -1
- package/_modules/components/Shared/DragScroll/index.js +5 -5
- package/_modules/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
- package/_modules/components/Shared/InputPhoneNumber/index.js +2 -2
- package/_modules/components/Shared/NotFoundSource/index.js +2 -2
- package/_modules/components/Shared/Personalization/index.js +1 -1
- package/_modules/components/Shared/RangeCalendar/index.js +2 -2
- package/_modules/components/Shared/Schedule/index.js +6 -6
- package/_modules/components/Shared/SelectBusinessCategories/index.js +2 -2
- package/_modules/components/Shared/SelectBusinessProducts/index.js +7 -7
- package/_modules/components/Shared/SelectBusinesses/index.js +3 -3
- package/_modules/components/Shared/SelectLoyaltyLevels/index.js +1 -1
- package/_modules/components/Shared/SelectSites/index.js +1 -1
- package/_modules/components/Shared/SpreadSheetEditor/index.js +21 -21
- package/_modules/components/SidebarMenu/index.js +37 -40
- package/_modules/components/Stores/AddBusinessForm/index.js +18 -18
- package/_modules/components/Stores/BusinessAdd/BusinessDetails/index.js +8 -8
- package/_modules/components/Stores/BusinessAdd/DeliveryZone/index.js +11 -11
- package/_modules/components/Stores/BusinessAdd/Images/index.js +5 -5
- package/_modules/components/Stores/BusinessAdd/OrderTypePriceLevel/index.js +2 -2
- package/_modules/components/Stores/BusinessAdd/OtherDetails/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/PaymentMethods/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/ReceiveOrders/index.js +1 -1
- package/_modules/components/Stores/BusinessAdd/index.js +9 -9
- package/_modules/components/Stores/BusinessAddStore/index.js +2 -2
- package/_modules/components/Stores/BusinessBrandBUSIDetail/index.js +3 -3
- package/_modules/components/Stores/BusinessBrandGENDetail/index.js +16 -16
- package/_modules/components/Stores/BusinessBrandListing/index.js +8 -8
- package/_modules/components/Stores/BusinessDeliveryDetails/index.js +3 -3
- package/_modules/components/Stores/BusinessDeliveryGroupsDetails/index.js +4 -4
- package/_modules/components/Stores/BusinessDeliveryZoneDetails/index.js +1 -1
- package/_modules/components/Stores/BusinessDeliveryZoneInformation/index.js +11 -11
- package/_modules/components/Stores/BusinessDeliveryZoneList/index.js +3 -3
- package/_modules/components/Stores/BusinessDetails/index.js +7 -7
- package/_modules/components/Stores/BusinessDeviceDetail/index.js +12 -12
- package/_modules/components/Stores/BusinessDeviceListing/index.js +7 -7
- package/_modules/components/Stores/BusinessFrontLayout/index.js +2 -2
- package/_modules/components/Stores/BusinessGprsPrinters/index.js +1 -1
- package/_modules/components/Stores/BusinessImages/index.js +4 -4
- package/_modules/components/Stores/BusinessInformation/index.js +35 -35
- package/_modules/components/Stores/BusinessLocation/index.js +7 -7
- package/_modules/components/Stores/BusinessMenu/index.js +2 -2
- package/_modules/components/Stores/BusinessMenuBasicOptions/index.js +13 -13
- package/_modules/components/Stores/BusinessMenuCategoryTreeNode/index.js +3 -3
- package/_modules/components/Stores/BusinessMenuChannels/index.js +8 -8
- package/_modules/components/Stores/BusinessMenuOptions/index.js +1 -1
- package/_modules/components/Stores/BusinessOwners/index.js +1 -1
- package/_modules/components/Stores/BusinessPaymentMethods/index.js +4 -4
- package/_modules/components/Stores/BusinessPickupDetails/index.js +2 -2
- package/_modules/components/Stores/BusinessPlace/index.js +1 -1
- package/_modules/components/Stores/BusinessPlaceGroup/index.js +3 -3
- package/_modules/components/Stores/BusinessPlaceGroupList/index.js +3 -3
- package/_modules/components/Stores/BusinessPreorderDetails/index.js +3 -3
- package/_modules/components/Stores/BusinessPreview/index.js +19 -19
- package/_modules/components/Stores/BusinessProductAddForm/index.js +10 -10
- package/_modules/components/Stores/BusinessProductList/index.js +5 -5
- package/_modules/components/Stores/BusinessProductsCategories/index.js +4 -4
- package/_modules/components/Stores/BusinessProductsCategoyDetails/index.js +3 -3
- package/_modules/components/Stores/BusinessProductsCategoyInfo/index.js +22 -22
- package/_modules/components/Stores/BusinessProductsListing/index.js +20 -20
- package/_modules/components/Stores/BusinessPromotionGeneralForm/index.js +25 -25
- package/_modules/components/Stores/BusinessQRCodeOption/index.js +2 -2
- package/_modules/components/Stores/BusinessSalesChannel/index.js +1 -1
- package/_modules/components/Stores/BusinessSelectHeader/index.js +1 -1
- package/_modules/components/Stores/BusinessServiceProfessionals/index.js +3 -3
- package/_modules/components/Stores/BusinessSharedMenuProductDetails/index.js +4 -4
- package/_modules/components/Stores/BusinessSharedMenuProducts/index.js +1 -1
- package/_modules/components/Stores/BusinessSpreadSheet/index.js +1 -1
- package/_modules/components/Stores/BusinessSummary/index.js +8 -8
- package/_modules/components/Stores/BusinessSupport/index.js +2 -2
- package/_modules/components/Stores/BusinessSyncStore/index.js +3 -3
- package/_modules/components/Stores/BusinessTypeDetail/index.js +6 -6
- package/_modules/components/Stores/BusinessTypes/index.js +2 -2
- package/_modules/components/Stores/BusinessVideos/index.js +2 -2
- package/_modules/components/Stores/BusinessWalletsList/index.js +2 -2
- package/_modules/components/Stores/BusinessWebhooks/index.js +5 -5
- package/_modules/components/Stores/BusinessesListing/index.js +1 -1
- package/_modules/components/Stores/ImporterForm/index.js +3 -3
- package/_modules/components/Stores/ImporterJobForm/index.js +7 -7
- package/_modules/components/Stores/PaymentOption/index.js +11 -11
- package/_modules/components/Stores/PaymentOptionMethods/index.js +11 -11
- package/_modules/components/Stores/PaymentOptionPaypal/index.js +11 -11
- package/_modules/components/Stores/PaymentOptionSquare/index.js +13 -13
- package/_modules/components/Stores/PaymentOptionStripeDirect/index.js +11 -11
- package/_modules/components/Stores/PaymethodOptionPaypalExpress/index.js +7 -7
- package/_modules/components/Stores/PaymethodOptionStripeConnect/index.js +11 -11
- package/_modules/components/Stores/PaymethodOptionStripeRedirect/index.js +11 -11
- package/_modules/components/Stores/ProductDesktopPreview/index.js +8 -8
- package/_modules/components/Stores/ProductDetailsAdvanced/index.js +7 -7
- package/_modules/components/Stores/ProductDetatilsInformation/index.js +21 -21
- package/_modules/components/Stores/ProductExtraOptionDetails/index.js +20 -20
- package/_modules/components/Stores/ProductExtraOptionForm/index.js +15 -15
- package/_modules/components/Stores/ProductExtraOptions/index.js +2 -2
- package/_modules/components/Stores/ProductExtraSuboption/index.js +4 -4
- package/_modules/components/Stores/ProductExtras/index.js +1 -1
- package/_modules/components/Stores/ProductGallery/index.js +3 -3
- package/_modules/components/Stores/ProductIngredientDetails/index.js +2 -2
- package/_modules/components/Stores/ProductStep/index.js +2 -2
- package/_modules/components/Stores/ProductSummary/index.js +7 -7
- package/_modules/components/Stores/ProductTagDetails/index.js +2 -2
- package/_modules/components/Stores/ProductTagsList/index.js +1 -1
- package/_modules/components/Stores/ProductVideos/index.js +1 -1
- package/_modules/components/Stores/RestaurantSelectGuide/index.js +2 -2
- package/_modules/components/Stores/SelectPosGuide/index.js +4 -4
- package/_modules/components/Stores/SeoOptions/index.js +9 -9
- package/_modules/components/Stores/ServiceDetail/index.js +5 -5
- package/_modules/components/Stores/SingleBusiness/index.js +14 -14
- package/_modules/components/Stores/SingleBusinessCategoryEdit/index.js +2 -2
- package/_modules/components/Stores/SingleBusinessProduct/index.js +12 -12
- package/_modules/components/Stores/SingleBusinessSubCateogries/index.js +2 -2
- package/_modules/components/Stores/UploadMenuGuide/index.js +3 -3
- package/_modules/components/Users/CustomerDetails/index.js +2 -2
- package/_modules/components/Users/CustomerPointsWallet/index.js +2 -2
- package/_modules/components/Users/CustomerWalletEvents/index.js +1 -1
- package/_modules/components/Users/ProfessionalAddForm/index.js +11 -11
- package/_modules/components/Users/ProfessionalBusinessService/index.js +3 -3
- package/_modules/components/Users/ProfessionalCategoryTreeNode/index.js +3 -3
- package/_modules/components/Users/ProfessionalDetail/index.js +2 -2
- package/_modules/components/Users/ProfessionalListing/index.js +1 -1
- package/_modules/components/Users/ProfessionalSchedule/index.js +1 -1
- package/_modules/components/Users/ProfessionalServices/index.js +3 -3
- package/_modules/components/Users/UserAddForm/index.js +11 -11
- package/_modules/components/Users/UserDetails/index.js +4 -4
- package/_modules/components/Users/UserFilterGroup/index.js +2 -2
- package/_modules/components/Users/UserFormDetails/index.js +12 -12
- package/_modules/components/Users/UserProfileForm/index.js +7 -7
- package/_modules/styles/Select/index.js +1 -1
- package/_modules/themes/origin/src/components/AutoScroll/index.js +2 -2
- package/_modules/themes/origin/src/components/DeadlineSettingInterface/index.js +4 -4
- package/_modules/themes/origin/src/components/DeadlinesTypeSelector/index.js +6 -6
- package/_modules/themes/origin/src/components/DriverMapMarkerAndInfo/index.js +3 -3
- package/_modules/themes/origin/src/components/DriverSelector/index.js +2 -2
- package/_modules/themes/origin/src/components/DriversLocation/index.js +16 -16
- package/_modules/themes/origin/src/components/ForgotPasswordForm/index.js +3 -3
- package/_modules/themes/origin/src/components/GroupTypeSelector/index.js +2 -2
- package/_modules/themes/origin/src/components/Header/index.js +3 -3
- package/_modules/themes/origin/src/components/InterActOrderMarker/index.js +3 -3
- package/_modules/themes/origin/src/components/LoginForm/index.js +5 -5
- package/_modules/themes/origin/src/components/LogisticInformation/index.js +1 -1
- package/_modules/themes/origin/src/components/Logistics/index.js +6 -6
- package/_modules/themes/origin/src/components/MainOrdersManager/index.js +2 -2
- package/_modules/themes/origin/src/components/Messages/index.js +13 -13
- package/_modules/themes/origin/src/components/Messages/styles.js +2 -2
- package/_modules/themes/origin/src/components/MobileSidebarMenu/index.js +5 -5
- package/_modules/themes/origin/src/components/NotFoundSource/index.js +2 -2
- package/_modules/themes/origin/src/components/NotNetworkConnectivity/index.js +2 -2
- package/_modules/themes/origin/src/components/OrderDetails/index.js +34 -34
- package/_modules/themes/origin/src/components/OrderItemAccordion/index.js +9 -9
- package/_modules/themes/origin/src/components/OrderListing/index.js +2 -2
- package/_modules/themes/origin/src/components/OrderListing/styles.js +1 -1
- package/_modules/themes/origin/src/components/OrderProductQuickDetail/index.js +7 -7
- package/_modules/themes/origin/src/components/OrderStatusFilterBar/index.js +5 -5
- package/_modules/themes/origin/src/components/OrderStatusTypeSelector/index.js +5 -5
- package/_modules/themes/origin/src/components/OverView/index.js +1 -1
- package/_modules/themes/origin/src/components/OverView/styles.js +3 -3
- package/_modules/themes/origin/src/components/PageNotFound/index.js +3 -3
- package/_modules/themes/origin/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/origin/src/components/SideMenu/index.js +5 -5
- package/_modules/themes/origin/src/components/SmallOrderItemAccordion/index.js +8 -8
- package/_modules/themes/origin/src/components/UserPopover/index.js +2 -2
- package/_modules/utils/index.js +1 -1
- package/package.json +2 -2
- package/src/components/BusinessIntelligence/CountryFilter/index.js +3 -1
- package/src/components/BusinessIntelligence/ReportsBusinessDistance/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsBusinessSpend/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsDriverDistance/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsDriverOrder/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsDriverSpend/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsGeneralSales/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsHeatMap/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsOrderDistance/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsOrderStatus/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsOrders/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsPaymethodSales/index.js +7 -7
- package/src/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsSales/index.js +16 -11
- package/src/components/BusinessIntelligence/ReportsTopDrivers/index.js +7 -8
- package/src/components/Orders/OrderLogisticInformation/index.js +1 -1
- package/src/components/Orders/OrdersTable/index.js +0 -1
- package/src/components/SidebarMenu/index.js +6 -6
- package/template/config.json +1 -1
|
@@ -21,7 +21,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
21
21
|
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; } }
|
|
22
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
23
|
var CampaignWhatsapp = function CampaignWhatsapp(props) {
|
|
24
|
-
var _contactState$
|
|
24
|
+
var _contactState$changes3, _contactState$changes4, _contactState$changes5, _contactState$changes6;
|
|
25
25
|
var isAddMode = props.isAddMode,
|
|
26
26
|
contactState = props.contactState,
|
|
27
27
|
handleChangeData = props.handleChangeData,
|
|
@@ -46,15 +46,15 @@ var CampaignWhatsapp = function CampaignWhatsapp(props) {
|
|
|
46
46
|
});
|
|
47
47
|
};
|
|
48
48
|
var handleSaveWhatsApp = function handleSaveWhatsApp() {
|
|
49
|
-
var _contactState$changes, _contactState$changes2
|
|
50
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$
|
|
49
|
+
var _contactState$changes, _contactState$changes2;
|
|
50
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$changes = _contactState$changes.contact_data) !== null && _contactState$changes !== void 0 && _contactState$changes.title)) {
|
|
51
51
|
setAlertState({
|
|
52
52
|
open: true,
|
|
53
53
|
content: t('VALIDATION_ERROR_REQUIRED', 'Title is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
54
54
|
});
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
57
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes2 = contactState.changes) !== null && _contactState$changes2 !== void 0 && (_contactState$changes2 = _contactState$changes2.contact_data) !== null && _contactState$changes2 !== void 0 && _contactState$changes2.body)) {
|
|
58
58
|
setAlertState({
|
|
59
59
|
open: true,
|
|
60
60
|
content: t('VALIDATION_ERROR_REQUIRED', 'Body is required').replace('_attribute_', t('BODY', 'Body'))
|
|
@@ -62,10 +62,10 @@ var CampaignWhatsapp = function CampaignWhatsapp(props) {
|
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
64
|
if (isAddMode) {
|
|
65
|
-
var _formState$changes
|
|
66
|
-
if ((formState === null || formState === void 0
|
|
65
|
+
var _formState$changes;
|
|
66
|
+
if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0) {
|
|
67
67
|
var _formState$changes2;
|
|
68
|
-
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0
|
|
68
|
+
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions),
|
|
69
69
|
_step;
|
|
70
70
|
try {
|
|
71
71
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -99,16 +99,16 @@ var CampaignWhatsapp = function CampaignWhatsapp(props) {
|
|
|
99
99
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
100
100
|
name: "title",
|
|
101
101
|
placeholder: t('TITLE', 'Title'),
|
|
102
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
102
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes3 = contactState.changes) === null || _contactState$changes3 === void 0 || (_contactState$changes3 = _contactState$changes3.contact_data) === null || _contactState$changes3 === void 0 ? void 0 : _contactState$changes3.title) || '',
|
|
103
103
|
onChange: handleChangeData
|
|
104
104
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGES', 'Messages')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
105
105
|
name: "body",
|
|
106
106
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
107
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
107
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes4 = contactState.changes) === null || _contactState$changes4 === void 0 || (_contactState$changes4 = _contactState$changes4.contact_data) === null || _contactState$changes4 === void 0 ? void 0 : _contactState$changes4.body) || '',
|
|
108
108
|
onChange: handleChangeData
|
|
109
109
|
})), /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppPreviewLayout, null, /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppContentHeader, {
|
|
110
110
|
bgimage: theme.images.general.whatsappHeader
|
|
111
|
-
}), /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppContent, null, /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppMessageContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0
|
|
111
|
+
}), /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppContent, null, /*#__PURE__*/_react.default.createElement(_styles2.WhatsAppMessageContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0 || (_contactState$changes5 = contactState.changes) === null || _contactState$changes5 === void 0 || (_contactState$changes5 = _contactState$changes5.contact_data) === null || _contactState$changes5 === void 0 ? void 0 : _contactState$changes5.title) || ''), /*#__PURE__*/_react.default.createElement("p", null, (contactState === null || contactState === void 0 || (_contactState$changes6 = contactState.changes) === null || _contactState$changes6 === void 0 || (_contactState$changes6 = _contactState$changes6.contact_data) === null || _contactState$changes6 === void 0 ? void 0 : _contactState$changes6.body) || '')))))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
112
112
|
color: "primary",
|
|
113
113
|
onClick: function onClick() {
|
|
114
114
|
return handleSaveWhatsApp();
|
|
@@ -58,8 +58,8 @@ var EnterprisePromotionDeliveryzonesUI = function EnterprisePromotionDeliveryzon
|
|
|
58
58
|
} else {
|
|
59
59
|
var _promotionState$promo;
|
|
60
60
|
if (Array.isArray((_promotionState$promo = promotionState.promotion) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.delivery_zones)) {
|
|
61
|
-
var _promotionState$promo2
|
|
62
|
-
deliveryZones = (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0
|
|
61
|
+
var _promotionState$promo2;
|
|
62
|
+
deliveryZones = (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0 || (_promotionState$promo2 = _promotionState$promo2.delivery_zones) === null || _promotionState$promo2 === void 0 ? void 0 : _promotionState$promo2.reduce(function (ids, zone) {
|
|
63
63
|
return [].concat(_toConsumableArray(ids), [zone.id]);
|
|
64
64
|
}, []);
|
|
65
65
|
}
|
|
@@ -76,10 +76,10 @@ var EnterprisePromotionDeliveryzonesUI = function EnterprisePromotionDeliveryzon
|
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
var isDefaultChecked = function isDefaultChecked(zoneId) {
|
|
79
|
-
var _promotionState$
|
|
80
|
-
if (Array.isArray((_promotionState$
|
|
81
|
-
var _promotionState$
|
|
82
|
-
var found = (_promotionState$
|
|
79
|
+
var _promotionState$promo3;
|
|
80
|
+
if (Array.isArray((_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.delivery_zones)) {
|
|
81
|
+
var _promotionState$promo4;
|
|
82
|
+
var found = (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.delivery_zones.find(function (zone) {
|
|
83
83
|
return zone.id === zoneId;
|
|
84
84
|
});
|
|
85
85
|
if (found) return true;else return false;
|
|
@@ -102,14 +102,14 @@ var EnterprisePromotionDetailsUI = function EnterprisePromotionDetailsUI(props)
|
|
|
102
102
|
content: t('RULES', 'Rules')
|
|
103
103
|
}];
|
|
104
104
|
var handleClickTab = function handleClickTab(option) {
|
|
105
|
-
var _formState$changes
|
|
105
|
+
var _formState$changes;
|
|
106
106
|
if (selectedOption === 'rules') {
|
|
107
107
|
var isValid = handleCheckDiscountPercentageValidation();
|
|
108
108
|
if (!isValid) return;
|
|
109
109
|
}
|
|
110
110
|
setMoveDistance(0);
|
|
111
111
|
setSelectedOption(option);
|
|
112
|
-
if (((_formState$changes = formState.changes) === null || _formState$changes === void 0
|
|
112
|
+
if (((_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.businesses) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0 && Object.keys(formState.changes).length !== 0 && !actionState.loading) {
|
|
113
113
|
if (!isAddMode) {
|
|
114
114
|
handleUpdateClick();
|
|
115
115
|
}
|
|
@@ -130,7 +130,7 @@ var EnterprisePromotionDetailsUI = function EnterprisePromotionDetailsUI(props)
|
|
|
130
130
|
var handleCheckDiscountPercentageValidation = function handleCheckDiscountPercentageValidation() {
|
|
131
131
|
var _formState$changes$ra, _formState$changes2, _promotionState$promo, _ref, _formState$changes$ra2, _formState$changes3, _promotionState$promo2;
|
|
132
132
|
var rateType = (_formState$changes$ra = (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.rate_type) !== null && _formState$changes$ra !== void 0 ? _formState$changes$ra : (_promotionState$promo = promotionState.promotion) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.rate_type;
|
|
133
|
-
var rate = (_ref = (_formState$changes$ra2 = (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.rate) !== null && _formState$changes$ra2 !== void 0 ? _formState$changes$ra2 : promotionState === null || promotionState === void 0
|
|
133
|
+
var rate = (_ref = (_formState$changes$ra2 = (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.rate) !== null && _formState$changes$ra2 !== void 0 ? _formState$changes$ra2 : promotionState === null || promotionState === void 0 || (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0 ? void 0 : _promotionState$promo2.rate) !== null && _ref !== void 0 ? _ref : '';
|
|
134
134
|
if (rateType === 1 && parseFloat(rate) > 100) {
|
|
135
135
|
setAlertState({
|
|
136
136
|
open: true,
|
|
@@ -164,7 +164,7 @@ var EnterprisePromotionDetailsUI = function EnterprisePromotionDetailsUI(props)
|
|
|
164
164
|
content: actionState === null || actionState === void 0 ? void 0 : actionState.error
|
|
165
165
|
});
|
|
166
166
|
}, [actionState]);
|
|
167
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("div", null, (((_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.name) || (promotionState === null || promotionState === void 0
|
|
167
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Header, null, /*#__PURE__*/_react.default.createElement("div", null, (((_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.name) || (promotionState === null || promotionState === void 0 || (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.name)) && /*#__PURE__*/_react.default.createElement("h1", null, (_formState$changes$na = (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : promotionState === null || promotionState === void 0 || (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.name), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
|
|
168
168
|
defaultChecked: typeof ((_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.enabled) !== 'undefined' ? (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.enabled : (_promotionState$promo5 = (_promotionState$promo6 = promotionState.promotion) === null || _promotionState$promo6 === void 0 ? void 0 : _promotionState$promo6.enabled) !== null && _promotionState$promo5 !== void 0 ? _promotionState$promo5 : false,
|
|
169
169
|
onChange: function onChange(val) {
|
|
170
170
|
return handleChangeItem({
|
|
@@ -185,8 +185,8 @@ var EnterprisePromotionGeneralDetails = function EnterprisePromotionGeneralDetai
|
|
|
185
185
|
if (promotionState !== null && promotionState !== void 0 && promotionState.promotion && Object.keys(promotionState === null || promotionState === void 0 ? void 0 : promotionState.promotion).length) {
|
|
186
186
|
var _promotionState$promo, _promotionState$promo2;
|
|
187
187
|
setDateRange([{
|
|
188
|
-
startDate: new Date(promotionState === null || promotionState === void 0
|
|
189
|
-
endDate: new Date(promotionState === null || promotionState === void 0
|
|
188
|
+
startDate: new Date(promotionState === null || promotionState === void 0 || (_promotionState$promo = promotionState.promotion) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.start),
|
|
189
|
+
endDate: new Date(promotionState === null || promotionState === void 0 || (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0 ? void 0 : _promotionState$promo2.end),
|
|
190
190
|
key: 'selection'
|
|
191
191
|
}]);
|
|
192
192
|
} else {
|
|
@@ -219,18 +219,18 @@ var EnterprisePromotionGeneralDetails = function EnterprisePromotionGeneralDetai
|
|
|
219
219
|
accept: "image/png, image/jpeg, image/jpg",
|
|
220
220
|
disabled: actionState.loading
|
|
221
221
|
}, formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.image ? /*#__PURE__*/_react.default.createElement("img", {
|
|
222
|
-
src: formState === null || formState === void 0
|
|
222
|
+
src: formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.image,
|
|
223
223
|
alt: "user image",
|
|
224
224
|
loading: "lazy"
|
|
225
|
-
}) : (promotionState === null || promotionState === void 0
|
|
226
|
-
src: promotionState === null || promotionState === void 0
|
|
225
|
+
}) : (promotionState === null || promotionState === void 0 || (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.image) && /*#__PURE__*/_react.default.createElement("img", {
|
|
226
|
+
src: promotionState === null || promotionState === void 0 || (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.image,
|
|
227
227
|
alt: "user image",
|
|
228
228
|
loading: "lazy"
|
|
229
229
|
}), /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIconContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.UploadImageIcon, null, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Image, null), /*#__PURE__*/_react.default.createElement("span", null, t('DRAG_AND_DROP', 'Drag and drop')))))))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('NAME', 'Name')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
230
230
|
name: "name",
|
|
231
231
|
type: "text",
|
|
232
232
|
placeholder: t('NAME', 'name'),
|
|
233
|
-
value: (_ref = (_formState$changes$na = formState === null || formState === void 0
|
|
233
|
+
value: (_ref = (_formState$changes$na = formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : promotionState === null || promotionState === void 0 || (_promotionState$promo5 = promotionState.promotion) === null || _promotionState$promo5 === void 0 ? void 0 : _promotionState$promo5.name) !== null && _ref !== void 0 ? _ref : '',
|
|
234
234
|
onChange: handleChangeInput,
|
|
235
235
|
ref: formMethods.register({
|
|
236
236
|
required: t('NAME_REQUIRED', 'The name is required.')
|
|
@@ -241,7 +241,7 @@ var EnterprisePromotionGeneralDetails = function EnterprisePromotionGeneralDetai
|
|
|
241
241
|
rows: 4,
|
|
242
242
|
name: "description",
|
|
243
243
|
placeholder: t('SHORT_PROMOTION_ABOUT', 'Write a little description'),
|
|
244
|
-
value: (_ref2 = (_formState$changes$de = formState === null || formState === void 0
|
|
244
|
+
value: (_ref2 = (_formState$changes$de = formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : promotionState === null || promotionState === void 0 || (_promotionState$promo6 = promotionState.promotion) === null || _promotionState$promo6 === void 0 ? void 0 : _promotionState$promo6.description) !== null && _ref2 !== void 0 ? _ref2 : '',
|
|
245
245
|
onChange: handleChangeInput,
|
|
246
246
|
disabled: formState.loading,
|
|
247
247
|
autoComplete: "off"
|
|
@@ -265,11 +265,11 @@ var EnterprisePromotionGeneralDetails = function EnterprisePromotionGeneralDetai
|
|
|
265
265
|
})))), /*#__PURE__*/_react.default.createElement(_styles2.LabelWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('LABEL', 'Label')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
266
266
|
name: "label",
|
|
267
267
|
placeholder: t('LABEL', 'Label'),
|
|
268
|
-
value: (_ref3 = (_formState$changes$la = formState === null || formState === void 0
|
|
268
|
+
value: (_ref3 = (_formState$changes$la = formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.label) !== null && _formState$changes$la !== void 0 ? _formState$changes$la : promotionState === null || promotionState === void 0 || (_promotionState$promo7 = promotionState.promotion) === null || _promotionState$promo7 === void 0 ? void 0 : _promotionState$promo7.label) !== null && _ref3 !== void 0 ? _ref3 : '',
|
|
269
269
|
onChange: handleChangeInput
|
|
270
270
|
}))), /*#__PURE__*/_react.default.createElement(_styles2.OrderPriorityContainer, null, /*#__PURE__*/_react.default.createElement("label", null, t('ORDER_PRIORITY', 'Order priority')), /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
|
|
271
271
|
placeholder: t('SELECT_ORDER_PRIORITY', 'Select order priority'),
|
|
272
|
-
defaultValue: (_formState$changes$or = formState === null || formState === void 0
|
|
272
|
+
defaultValue: (_formState$changes$or = formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.order_priority) !== null && _formState$changes$or !== void 0 ? _formState$changes$or : (_promotionState$promo8 = promotionState.promotion) === null || _promotionState$promo8 === void 0 ? void 0 : _promotionState$promo8.order_priority,
|
|
273
273
|
options: OrderPriorityOptions,
|
|
274
274
|
onChange: function onChange(val) {
|
|
275
275
|
return handleChangeItem({
|
|
@@ -46,7 +46,7 @@ var EnterprisePromotionMaxOrders = function EnterprisePromotionMaxOrders(props)
|
|
|
46
46
|
}];
|
|
47
47
|
return /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement("h1", null, t('OFFER_USER_ORDER_COUNT', 'Max. amount of orders in platform of user')), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('OFFER_USER_ORDER_COUNT', 'Max. amount of orders in platform of user')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
48
48
|
name: "user_order_count",
|
|
49
|
-
value: (_ref = (_formState$changes$us = (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.user_order_count) !== null && _formState$changes$us !== void 0 ? _formState$changes$us : promotionState === null || promotionState === void 0
|
|
49
|
+
value: (_ref = (_formState$changes$us = (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.user_order_count) !== null && _formState$changes$us !== void 0 ? _formState$changes$us : promotionState === null || promotionState === void 0 || (_promotionState$promo = promotionState.promotion) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.user_order_count) !== null && _ref !== void 0 ? _ref : '',
|
|
50
50
|
onChange: handleChangeInput,
|
|
51
51
|
onKeyPress: function onKeyPress(e) {
|
|
52
52
|
if (!/^[0-9]$/.test(e.key)) {
|
|
@@ -20,7 +20,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
20
20
|
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; } }
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
var EnterprisePromotionOrderTypes = function EnterprisePromotionOrderTypes(props) {
|
|
23
|
-
var _configState$configs
|
|
23
|
+
var _configState$configs;
|
|
24
24
|
var promotionState = props.promotionState,
|
|
25
25
|
formState = props.formState,
|
|
26
26
|
handleChangeItem = props.handleChangeItem,
|
|
@@ -31,7 +31,7 @@ var EnterprisePromotionOrderTypes = function EnterprisePromotionOrderTypes(props
|
|
|
31
31
|
var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
|
|
32
32
|
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
33
33
|
configState = _useConfig2[0];
|
|
34
|
-
var configTypes = (configState === null || configState === void 0
|
|
34
|
+
var configTypes = (configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.order_types_allowed) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value.split('|').map(function (value) {
|
|
35
35
|
return Number(value);
|
|
36
36
|
})) || [];
|
|
37
37
|
var orderTypes = [{
|
|
@@ -37,8 +37,8 @@ var EnterprisePromotionPaymethods = function EnterprisePromotionPaymethods(props
|
|
|
37
37
|
} else {
|
|
38
38
|
var _promotionState$promo;
|
|
39
39
|
if (Array.isArray((_promotionState$promo = promotionState.promotion) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.paymethods)) {
|
|
40
|
-
var _promotionState$promo2
|
|
41
|
-
paymethods = (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0
|
|
40
|
+
var _promotionState$promo2;
|
|
41
|
+
paymethods = (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0 || (_promotionState$promo2 = _promotionState$promo2.paymethods) === null || _promotionState$promo2 === void 0 ? void 0 : _promotionState$promo2.reduce(function (ids, paymedhod) {
|
|
42
42
|
return [].concat(_toConsumableArray(ids), [paymedhod.id]);
|
|
43
43
|
}, []);
|
|
44
44
|
}
|
|
@@ -55,10 +55,10 @@ var EnterprisePromotionPaymethods = function EnterprisePromotionPaymethods(props
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
var isDefaultChecked = function isDefaultChecked(paymethodId) {
|
|
58
|
-
var _promotionState$
|
|
59
|
-
if (Array.isArray((_promotionState$
|
|
60
|
-
var _promotionState$
|
|
61
|
-
var found = (_promotionState$
|
|
58
|
+
var _promotionState$promo3;
|
|
59
|
+
if (Array.isArray((_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.paymethods)) {
|
|
60
|
+
var _promotionState$promo4;
|
|
61
|
+
var found = (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.paymethods.find(function (paymethod) {
|
|
62
62
|
return paymethod.id === paymethodId;
|
|
63
63
|
});
|
|
64
64
|
if (found) return true;else return false;
|
|
@@ -80,7 +80,7 @@ var EnterprisePromotionPaymethods = function EnterprisePromotionPaymethods(props
|
|
|
80
80
|
onChange: function onChange(e) {
|
|
81
81
|
return handleChangePaymethods(e.target.checked, paymethod.id);
|
|
82
82
|
}
|
|
83
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, t(paymethod === null || paymethod === void 0
|
|
83
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, t(paymethod === null || paymethod === void 0 || (_paymethod$gateway = paymethod.gateway) === null || _paymethod$gateway === void 0 ? void 0 : _paymethod$gateway.toUpperCase(), paymethod.name)));
|
|
84
84
|
}), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
85
85
|
borderRadius: "8px",
|
|
86
86
|
color: "primary",
|
|
@@ -90,7 +90,7 @@ var EnterprisePromotionRules = function EnterprisePromotionRules(props) {
|
|
|
90
90
|
var _formState$changes$ra, _formState$changes, _promotionState$promo, _ref, _formState$changes$ra2, _formState$changes2, _promotionState$promo2;
|
|
91
91
|
var rateType = (_formState$changes$ra = (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.rate_type) !== null && _formState$changes$ra !== void 0 ? _formState$changes$ra : (_promotionState$promo = promotionState.promotion) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.rate_type;
|
|
92
92
|
if (rateType !== 1) return true;
|
|
93
|
-
var rate = (_ref = (_formState$changes$ra2 = (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.rate) !== null && _formState$changes$ra2 !== void 0 ? _formState$changes$ra2 : promotionState === null || promotionState === void 0
|
|
93
|
+
var rate = (_ref = (_formState$changes$ra2 = (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.rate) !== null && _formState$changes$ra2 !== void 0 ? _formState$changes$ra2 : promotionState === null || promotionState === void 0 || (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0 ? void 0 : _promotionState$promo2.rate) !== null && _ref !== void 0 ? _ref : '';
|
|
94
94
|
if (parseFloat(rate) <= 100) {
|
|
95
95
|
return true;
|
|
96
96
|
} else {
|
|
@@ -119,9 +119,9 @@ var EnterprisePromotionRules = function EnterprisePromotionRules(props) {
|
|
|
119
119
|
}, [width]);
|
|
120
120
|
(0, _react.useEffect)(function () {
|
|
121
121
|
var _ref2, _formState$changes$ra3, _formState$changes3, _promotionState$promo3;
|
|
122
|
-
var rate = (_ref2 = (_formState$changes$ra3 = (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.rate) !== null && _formState$changes$ra3 !== void 0 ? _formState$changes$ra3 : promotionState === null || promotionState === void 0
|
|
122
|
+
var rate = (_ref2 = (_formState$changes$ra3 = (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.rate) !== null && _formState$changes$ra3 !== void 0 ? _formState$changes$ra3 : promotionState === null || promotionState === void 0 || (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.rate) !== null && _ref2 !== void 0 ? _ref2 : '';
|
|
123
123
|
formMethods.setValue('rate', rate);
|
|
124
|
-
}, [(_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.rate, promotionState === null || promotionState === void 0
|
|
124
|
+
}, [(_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.rate, promotionState === null || promotionState === void 0 || (_promotionState$promo4 = promotionState.promotion) === null || _promotionState$promo4 === void 0 ? void 0 : _promotionState$promo4.rate]);
|
|
125
125
|
return /*#__PURE__*/_react.default.createElement(_styles2.RulesContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.FormInput, {
|
|
126
126
|
onSubmit: formMethods.handleSubmit(onSubmit)
|
|
127
127
|
}, /*#__PURE__*/_react.default.createElement(_styles2.FormInnerContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.SectionTitle, null, t('PROMOTION_TYPES', 'Promotion types')), /*#__PURE__*/_react.default.createElement(_styles2.SelectWrapper, null, /*#__PURE__*/_react.default.createElement(_FirstSelect.Select, {
|
|
@@ -156,28 +156,28 @@ var EnterprisePromotionRules = function EnterprisePromotionRules(props) {
|
|
|
156
156
|
}),
|
|
157
157
|
autoComplete: "off"
|
|
158
158
|
}))), /*#__PURE__*/_react.default.createElement(_styles2.SectionTitle, null, t('QUESTION_HOW_GOING_APPLIED', 'How it\'s going to be applied?')), /*#__PURE__*/_react.default.createElement(_styles2.CouponContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.CouponHeader, {
|
|
159
|
-
active: ((_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0
|
|
159
|
+
active: ((_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo7 = promotionState.promotion) === null || _promotionState$promo7 === void 0 ? void 0 : _promotionState$promo7.type) === 2,
|
|
160
160
|
onClick: function onClick() {
|
|
161
161
|
return handleChangeItem({
|
|
162
162
|
type: 2
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
|
-
}, ((_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0
|
|
165
|
+
}, ((_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo8 = promotionState.promotion) === null || _promotionState$promo8 === void 0 ? void 0 : _promotionState$promo8.type) === 2 ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('COUPON', 'Coupon'))), (((_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.type) === 2 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo9 = promotionState.promotion) === null || _promotionState$promo9 === void 0 ? void 0 : _promotionState$promo9.type) === 2) && /*#__PURE__*/_react.default.createElement(_styles2.CouponContent, null, /*#__PURE__*/_react.default.createElement(_styles2.CouponCodeContainer, null, /*#__PURE__*/_react.default.createElement("label", null, t('COUPON_CODE', 'Coupon code')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
166
166
|
name: "coupon",
|
|
167
|
-
value: (_ref3 = (_formState$changes$co = (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.coupon) !== null && _formState$changes$co !== void 0 ? _formState$changes$co : promotionState === null || promotionState === void 0
|
|
167
|
+
value: (_ref3 = (_formState$changes$co = (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.coupon) !== null && _formState$changes$co !== void 0 ? _formState$changes$co : promotionState === null || promotionState === void 0 || (_promotionState$promo10 = promotionState.promotion) === null || _promotionState$promo10 === void 0 ? void 0 : _promotionState$promo10.coupon) !== null && _ref3 !== void 0 ? _ref3 : '',
|
|
168
168
|
onChange: function onChange(e) {
|
|
169
169
|
return handleChangeItem({
|
|
170
170
|
coupon: e.target.value.replace(/\s+/g, '')
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
173
|
})))), /*#__PURE__*/_react.default.createElement(_styles2.DiscountOption, null, /*#__PURE__*/_react.default.createElement(_styles2.CouponHeader, {
|
|
174
|
-
active: ((_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0
|
|
174
|
+
active: ((_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo11 = promotionState.promotion) === null || _promotionState$promo11 === void 0 ? void 0 : _promotionState$promo11.type) === 1,
|
|
175
175
|
onClick: function onClick() {
|
|
176
176
|
return handleChangeItem({
|
|
177
177
|
type: 1
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
|
-
}, ((_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0
|
|
180
|
+
}, ((_formState$changes13 = formState.changes) === null || _formState$changes13 === void 0 ? void 0 : _formState$changes13.type) === 1 || !(formState !== null && formState !== void 0 && formState.changes.type) && (promotionState === null || promotionState === void 0 || (_promotionState$promo12 = promotionState.promotion) === null || _promotionState$promo12 === void 0 ? void 0 : _promotionState$promo12.type) === 1 ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.RecordCircleFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Circle, null), /*#__PURE__*/_react.default.createElement("span", null, t('DISCOUNT', 'discount')))), /*#__PURE__*/_react.default.createElement(_styles2.AutomaticEnableWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Checkbox, {
|
|
181
181
|
checked: typeof ((_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.auto) !== 'undefined' ? (_formState$changes15 = formState.changes) === null || _formState$changes15 === void 0 ? void 0 : _formState$changes15.auto : (_promotionState$promo13 = promotionState.promotion) === null || _promotionState$promo13 === void 0 ? void 0 : _promotionState$promo13.auto,
|
|
182
182
|
onChange: function onChange(e) {
|
|
183
183
|
return handleChangeItem({
|
|
@@ -47,33 +47,33 @@ var EnterprisePromotionSpecficCategory = function EnterprisePromotionSpecficCate
|
|
|
47
47
|
selectedBusinessSlug = _useState4[0],
|
|
48
48
|
setSelectedBusinessSlug = _useState4[1];
|
|
49
49
|
(0, _react.useEffect)(function () {
|
|
50
|
-
var _promotionState$promo2
|
|
50
|
+
var _promotionState$promo2;
|
|
51
51
|
var businessIds = [];
|
|
52
52
|
if (Object.keys(promotionState === null || promotionState === void 0 ? void 0 : promotionState.promotion).length) {
|
|
53
53
|
var _promotionState$promo;
|
|
54
|
-
businessIds = promotionState === null || promotionState === void 0
|
|
54
|
+
businessIds = promotionState === null || promotionState === void 0 || (_promotionState$promo = promotionState.promotion.businesses) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.reduce(function (ids, business) {
|
|
55
55
|
return [].concat(_toConsumableArray(ids), [business.id]);
|
|
56
56
|
}, []);
|
|
57
57
|
} else {
|
|
58
58
|
var _formState$changes, _formState$changes2;
|
|
59
|
-
businessIds = formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.businesses ? _toConsumableArray(formState === null || formState === void 0
|
|
59
|
+
businessIds = formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.businesses ? _toConsumableArray(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.businesses) : [];
|
|
60
60
|
}
|
|
61
61
|
var _businessOptions = businessesList.businesses.filter(function (business) {
|
|
62
62
|
return businessIds.includes(business.id);
|
|
63
63
|
}).map(function (business) {
|
|
64
|
-
var _theme$images,
|
|
64
|
+
var _theme$images, _business$city;
|
|
65
65
|
return {
|
|
66
66
|
value: business.slug,
|
|
67
67
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
68
|
-
src: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
68
|
+
src: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_50,c_limit'),
|
|
69
69
|
alt: ""
|
|
70
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("b", null, business === null || business === void 0 ? void 0 : business.name), business === null || business === void 0
|
|
70
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("b", null, business === null || business === void 0 ? void 0 : business.name), business === null || business === void 0 || (_business$city = business.city) === null || _business$city === void 0 ? void 0 : _business$city.name))
|
|
71
71
|
};
|
|
72
72
|
});
|
|
73
73
|
setBusinessOptions(_businessOptions);
|
|
74
|
-
if ((promotionState === null || promotionState === void 0
|
|
75
|
-
var _promotionState$
|
|
76
|
-
var businessId = promotionState === null || promotionState === void 0
|
|
74
|
+
if ((promotionState === null || promotionState === void 0 || (_promotionState$promo2 = promotionState.promotion) === null || _promotionState$promo2 === void 0 || (_promotionState$promo2 = _promotionState$promo2.categories) === null || _promotionState$promo2 === void 0 ? void 0 : _promotionState$promo2.length) > 0) {
|
|
75
|
+
var _promotionState$promo3;
|
|
76
|
+
var businessId = promotionState === null || promotionState === void 0 || (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 || (_promotionState$promo3 = _promotionState$promo3.categories[0]) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.business_id;
|
|
77
77
|
var foundBusiness = businessesList.businesses.find(function (business) {
|
|
78
78
|
return business.id === businessId;
|
|
79
79
|
});
|
|
@@ -99,9 +99,9 @@ var EnterprisePromotionSpecficCategory = function EnterprisePromotionSpecficCate
|
|
|
99
99
|
});
|
|
100
100
|
}, [selectedCategoryIds]);
|
|
101
101
|
(0, _react.useEffect)(function () {
|
|
102
|
-
var _promotionState$
|
|
103
|
-
if (!(promotionState !== null && promotionState !== void 0 && (_promotionState$
|
|
104
|
-
var _selectedCategoryIds = promotionState === null || promotionState === void 0
|
|
102
|
+
var _promotionState$promo4, _promotionState$promo5;
|
|
103
|
+
if (!(promotionState !== null && promotionState !== void 0 && (_promotionState$promo4 = promotionState.promotion) !== null && _promotionState$promo4 !== void 0 && _promotionState$promo4.categories)) return;
|
|
104
|
+
var _selectedCategoryIds = promotionState === null || promotionState === void 0 || (_promotionState$promo5 = promotionState.promotion) === null || _promotionState$promo5 === void 0 || (_promotionState$promo5 = _promotionState$promo5.categories) === null || _promotionState$promo5 === void 0 ? void 0 : _promotionState$promo5.reduce(function (ids, category) {
|
|
105
105
|
ids[category.id] = {
|
|
106
106
|
id: category.id,
|
|
107
107
|
include: category.pivot.include
|
|
@@ -50,23 +50,23 @@ var EnterprisePromotionSpecficProducts = function EnterprisePromotionSpecficProd
|
|
|
50
50
|
var businessIds = [];
|
|
51
51
|
if (Object.keys(promotionState === null || promotionState === void 0 ? void 0 : promotionState.promotion).length) {
|
|
52
52
|
var _promotionState$promo;
|
|
53
|
-
businessIds = promotionState === null || promotionState === void 0
|
|
53
|
+
businessIds = promotionState === null || promotionState === void 0 || (_promotionState$promo = promotionState.promotion.businesses) === null || _promotionState$promo === void 0 ? void 0 : _promotionState$promo.reduce(function (ids, business) {
|
|
54
54
|
return [].concat(_toConsumableArray(ids), [business.id]);
|
|
55
55
|
}, []);
|
|
56
56
|
} else {
|
|
57
57
|
var _formState$changes, _formState$changes2;
|
|
58
|
-
businessIds = formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.businesses ? _toConsumableArray(formState === null || formState === void 0
|
|
58
|
+
businessIds = formState !== null && formState !== void 0 && (_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && _formState$changes.businesses ? _toConsumableArray(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.businesses) : [];
|
|
59
59
|
}
|
|
60
60
|
var _businessOptions = businessesList.businesses.filter(function (business) {
|
|
61
61
|
return businessIds.includes(business.id);
|
|
62
62
|
}).map(function (business) {
|
|
63
|
-
var _theme$images,
|
|
63
|
+
var _theme$images, _business$city;
|
|
64
64
|
return {
|
|
65
65
|
value: business.slug,
|
|
66
66
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
67
|
-
src: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
67
|
+
src: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_50,c_limit'),
|
|
68
68
|
alt: ""
|
|
69
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("b", null, business === null || business === void 0 ? void 0 : business.name), business === null || business === void 0
|
|
69
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, /*#__PURE__*/_react.default.createElement("b", null, business === null || business === void 0 ? void 0 : business.name), business === null || business === void 0 || (_business$city = business.city) === null || _business$city === void 0 ? void 0 : _business$city.name))
|
|
70
70
|
};
|
|
71
71
|
});
|
|
72
72
|
setBusinessOptions(_businessOptions);
|
|
@@ -89,9 +89,9 @@ var EnterprisePromotionSpecficProducts = function EnterprisePromotionSpecficProd
|
|
|
89
89
|
});
|
|
90
90
|
}, [selectedProductsIds]);
|
|
91
91
|
(0, _react.useEffect)(function () {
|
|
92
|
-
var _promotionState$promo2, _promotionState$promo3
|
|
92
|
+
var _promotionState$promo2, _promotionState$promo3;
|
|
93
93
|
if (!(promotionState !== null && promotionState !== void 0 && (_promotionState$promo2 = promotionState.promotion) !== null && _promotionState$promo2 !== void 0 && _promotionState$promo2.products)) return;
|
|
94
|
-
var _selectedProductsIds = promotionState === null || promotionState === void 0
|
|
94
|
+
var _selectedProductsIds = promotionState === null || promotionState === void 0 || (_promotionState$promo3 = promotionState.promotion) === null || _promotionState$promo3 === void 0 || (_promotionState$promo3 = _promotionState$promo3.products) === null || _promotionState$promo3 === void 0 ? void 0 : _promotionState$promo3.reduce(function (ids, product) {
|
|
95
95
|
ids[product.id] = {
|
|
96
96
|
id: product.id,
|
|
97
97
|
include: product.pivot.include
|
|
@@ -84,7 +84,7 @@ var PageBannersUI = function PageBannersUI(props) {
|
|
|
84
84
|
setIsExpand = _useState12[1];
|
|
85
85
|
var handleOpenBannerItemsDetail = function handleOpenBannerItemsDetail(e, banner, isInitialRender) {
|
|
86
86
|
var _e$target;
|
|
87
|
-
var isInvalid = e === null || e === void 0
|
|
87
|
+
var isInvalid = e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.closest('.banner-enabled');
|
|
88
88
|
if (isInvalid) return;
|
|
89
89
|
setSelectedBanner(banner);
|
|
90
90
|
setOpenItemsDetail(true);
|
|
@@ -121,14 +121,14 @@ var ChatBusinessesListUI = function ChatBusinessesListUI(props) {
|
|
|
121
121
|
width: 100
|
|
122
122
|
})));
|
|
123
123
|
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, currentBusinessess.map(function (business) {
|
|
124
|
-
var _theme$images
|
|
124
|
+
var _theme$images;
|
|
125
125
|
return /*#__PURE__*/_react.default.createElement(_styles.Card, {
|
|
126
126
|
key: business.id
|
|
127
127
|
// onClick={(e) => handleClickUser(e, user)}
|
|
128
128
|
,
|
|
129
129
|
active: (business === null || business === void 0 ? void 0 : business.id) === (openBusiness === null || openBusiness === void 0 ? void 0 : openBusiness.id)
|
|
130
130
|
}, /*#__PURE__*/_react.default.createElement(_styles.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles.Image, {
|
|
131
|
-
bgimage: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
131
|
+
bgimage: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_200,c_limit')
|
|
132
132
|
})), /*#__PURE__*/_react.default.createElement(_styles.InfoContainer, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 ? void 0 : business.name), /*#__PURE__*/_react.default.createElement(_BsDot.default, null), /*#__PURE__*/_react.default.createElement(_styles.AssignedOrdersCount, {
|
|
133
133
|
className: "driver_orders",
|
|
134
134
|
onClick: function onClick() {
|
|
@@ -75,14 +75,14 @@ var ChatContactListUI = function ChatContactListUI(props) {
|
|
|
75
75
|
width: 100
|
|
76
76
|
})));
|
|
77
77
|
})) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, usersList.users.map(function (user) {
|
|
78
|
-
var _theme$images
|
|
78
|
+
var _theme$images;
|
|
79
79
|
return /*#__PURE__*/_react.default.createElement(_styles.Card, {
|
|
80
80
|
key: user.id
|
|
81
81
|
// onClick={(e) => handleClickUser(e, user)}
|
|
82
82
|
,
|
|
83
83
|
active: (user === null || user === void 0 ? void 0 : user.id) === (openUser === null || openUser === void 0 ? void 0 : openUser.id)
|
|
84
84
|
}, /*#__PURE__*/_react.default.createElement(_styles.WrapperImage, null, /*#__PURE__*/_react.default.createElement(_styles.Image, {
|
|
85
|
-
bgimage: optimizeImage((user === null || user === void 0 ? void 0 : user.photo) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
85
|
+
bgimage: optimizeImage((user === null || user === void 0 ? void 0 : user.photo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.icons) === null || _theme$images === void 0 ? void 0 : _theme$images.noDriver), 'h_200,c_limit')
|
|
86
86
|
})), /*#__PURE__*/_react.default.createElement(_styles.InfoContainer, null, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("p", null, user === null || user === void 0 ? void 0 : user.name, " ", user === null || user === void 0 ? void 0 : user.lastname), /*#__PURE__*/_react.default.createElement(_BsDot.default, null), /*#__PURE__*/_react.default.createElement(_styles.AssignedOrdersCount, {
|
|
87
87
|
className: "driver_orders",
|
|
88
88
|
disabled: isDriver && (!(user !== null && user !== void 0 && user.assigned_orders_count) || (user === null || user === void 0 ? void 0 : user.assigned_orders_count) === 0),
|