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
|
@@ -145,11 +145,11 @@ var BusinessWebhooksUI = function BusinessWebhooksUI(props) {
|
|
|
145
145
|
var _hookFormState$result;
|
|
146
146
|
setAlertState({
|
|
147
147
|
open: true,
|
|
148
|
-
content: hookFormState === null || hookFormState === void 0
|
|
148
|
+
content: hookFormState === null || hookFormState === void 0 || (_hookFormState$result = hookFormState.result) === null || _hookFormState$result === void 0 ? void 0 : _hookFormState$result.result
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
}, [hookFormState === null || hookFormState === void 0 ? void 0 : hookFormState.result]);
|
|
152
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.WebhooksContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Title, null, t('WEBHOOKS', 'WEbhooks')), (business === null || business === void 0
|
|
152
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.WebhooksContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.Title, null, t('WEBHOOKS', 'WEbhooks')), (business === null || business === void 0 || (_business$webhooks = business.webhooks) === null || _business$webhooks === void 0 ? void 0 : _business$webhooks.length) > 0 && (business === null || business === void 0 ? void 0 : business.webhooks.map(function (webhook) {
|
|
153
153
|
var _webhook$delay;
|
|
154
154
|
return /*#__PURE__*/_react.default.createElement(_styles2.WebhookAddContainer, {
|
|
155
155
|
key: webhook.id
|
|
@@ -183,7 +183,7 @@ var BusinessWebhooksUI = function BusinessWebhooksUI(props) {
|
|
|
183
183
|
})), /*#__PURE__*/_react.default.createElement(_styles2.WebhookAddForm, {
|
|
184
184
|
onSubmit: handleSubmit(onSubmit)
|
|
185
185
|
}, /*#__PURE__*/_react.default.createElement(_styles2.WebhookAddContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.HookSelectWrapper, null, /*#__PURE__*/_react.default.createElement(_Select.Select, {
|
|
186
|
-
defaultValue: (hookFormState === null || hookFormState === void 0
|
|
186
|
+
defaultValue: (hookFormState === null || hookFormState === void 0 || (_hookFormState$change = hookFormState.changes) === null || _hookFormState$change === void 0 ? void 0 : _hookFormState$change.hook) || '',
|
|
187
187
|
options: webhookList,
|
|
188
188
|
onChange: function onChange(value) {
|
|
189
189
|
return handleChangeSelect(value, 'hook');
|
|
@@ -191,7 +191,7 @@ var BusinessWebhooksUI = function BusinessWebhooksUI(props) {
|
|
|
191
191
|
})), /*#__PURE__*/_react.default.createElement(_styles2.UrlInputWrapper, null, /*#__PURE__*/_react.default.createElement("input", {
|
|
192
192
|
type: "text",
|
|
193
193
|
name: "url",
|
|
194
|
-
value: (hookFormState === null || hookFormState === void 0
|
|
194
|
+
value: (hookFormState === null || hookFormState === void 0 || (_hookFormState$change2 = hookFormState.changes) === null || _hookFormState$change2 === void 0 ? void 0 : _hookFormState$change2.url) || '',
|
|
195
195
|
onChange: function onChange(e) {
|
|
196
196
|
return handleChangeInput(e);
|
|
197
197
|
},
|
|
@@ -200,7 +200,7 @@ var BusinessWebhooksUI = function BusinessWebhooksUI(props) {
|
|
|
200
200
|
}),
|
|
201
201
|
placeholder: t('URL', 'Url')
|
|
202
202
|
})), /*#__PURE__*/_react.default.createElement(_styles2.DelaySelectWrapper, null, /*#__PURE__*/_react.default.createElement(_Select.Select, {
|
|
203
|
-
defaultValue: (hookFormState === null || hookFormState === void 0
|
|
203
|
+
defaultValue: (hookFormState === null || hookFormState === void 0 || (_hookFormState$change3 = hookFormState.changes) === null || _hookFormState$change3 === void 0 ? void 0 : _hookFormState$change3.delay) || '',
|
|
204
204
|
options: timeList,
|
|
205
205
|
onChange: function onChange(value) {
|
|
206
206
|
return handleChangeSelect(value, 'delay');
|
|
@@ -122,7 +122,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
122
122
|
setIsAdd = _useState22[1];
|
|
123
123
|
var noBusinesses = (0, _react.useMemo)(function () {
|
|
124
124
|
var _businessList$busines;
|
|
125
|
-
return !(businessList !== null && businessList !== void 0 && businessList.loading) && (businessList === null || businessList === void 0
|
|
125
|
+
return !(businessList !== null && businessList !== void 0 && businessList.loading) && (businessList === null || businessList === void 0 || (_businessList$busines = businessList.businesses) === null || _businessList$busines === void 0 ? void 0 : _businessList$busines.length) === 0 && (pagination === null || pagination === void 0 ? void 0 : pagination.currentPage) === 1 && !searchValue && Object.keys(filterValues).length === 0 && selectedBusinessActiveState && !businessTypeSelected && (inActiveBusinesses === null || inActiveBusinesses === void 0 ? void 0 : inActiveBusinesses.length) === 0;
|
|
126
126
|
}, [businessList === null || businessList === void 0 ? void 0 : businessList.loading, businessList === null || businessList === void 0 ? void 0 : businessList.businesses, pagination, searchValue, filterValues, selectedBusinessActiveState, businessTypeSelected, inActiveBusinesses]);
|
|
127
127
|
var handleGotToAdd = function handleGotToAdd() {
|
|
128
128
|
if (countriesState !== null && countriesState !== void 0 && countriesState.enabled) setIsAdd(true);else events.emit('go_to_page', {
|
|
@@ -162,15 +162,15 @@ var ImporterFormUI = function ImporterFormUI(props) {
|
|
|
162
162
|
}
|
|
163
163
|
}, [importType]);
|
|
164
164
|
(0, _react.useEffect)(function () {
|
|
165
|
-
var _formState$result, _formState$result3, _formState$result4
|
|
165
|
+
var _formState$result, _formState$result3, _formState$result4;
|
|
166
166
|
if ((_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.error && Object.keys(formState.result).length > 0) {
|
|
167
167
|
var _formState$result2;
|
|
168
168
|
setAlertState({
|
|
169
169
|
open: true,
|
|
170
|
-
content: formState === null || formState === void 0
|
|
170
|
+
content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
if (!((_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.error) && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && (_formState$result4
|
|
173
|
+
if (!((_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.error) && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && (_formState$result4 = _formState$result4.result) !== null && _formState$result4 !== void 0 && _formState$result4.id) {
|
|
174
174
|
onClose();
|
|
175
175
|
}
|
|
176
176
|
}, [formState.result]);
|
|
@@ -143,15 +143,15 @@ var ImporterJobFormUI = function ImporterJobFormUI(props) {
|
|
|
143
143
|
}
|
|
144
144
|
}, [formMethods.errors]);
|
|
145
145
|
(0, _react.useEffect)(function () {
|
|
146
|
-
var _formState$result, _formState$result3, _formState$result4
|
|
146
|
+
var _formState$result, _formState$result3, _formState$result4;
|
|
147
147
|
if ((_formState$result = formState.result) !== null && _formState$result !== void 0 && _formState$result.error && Object.keys(formState.result).length > 0) {
|
|
148
148
|
var _formState$result2;
|
|
149
149
|
setAlertState({
|
|
150
150
|
open: true,
|
|
151
|
-
content: formState === null || formState === void 0
|
|
151
|
+
content: formState === null || formState === void 0 || (_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
if (!((_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.error) && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && (_formState$result4
|
|
154
|
+
if (!((_formState$result3 = formState.result) !== null && _formState$result3 !== void 0 && _formState$result3.error) && (_formState$result4 = formState.result) !== null && _formState$result4 !== void 0 && (_formState$result4 = _formState$result4.result) !== null && _formState$result4 !== void 0 && _formState$result4.id) {
|
|
155
155
|
onClose();
|
|
156
156
|
}
|
|
157
157
|
}, [formState.result]);
|
|
@@ -167,7 +167,7 @@ var ImporterJobFormUI = function ImporterJobFormUI(props) {
|
|
|
167
167
|
type: "text",
|
|
168
168
|
placeholder: ";",
|
|
169
169
|
maxLength: "1",
|
|
170
|
-
defaultValue: formState === null || formState === void 0
|
|
170
|
+
defaultValue: formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.separator,
|
|
171
171
|
onChange: handleChangeInput,
|
|
172
172
|
disabled: formState.loading,
|
|
173
173
|
autoComplete: "off"
|
|
@@ -176,7 +176,7 @@ var ImporterJobFormUI = function ImporterJobFormUI(props) {
|
|
|
176
176
|
type: "text",
|
|
177
177
|
placeholder: "\"",
|
|
178
178
|
maxLength: "1",
|
|
179
|
-
defaultValue: formState === null || formState === void 0
|
|
179
|
+
defaultValue: formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.enclosure,
|
|
180
180
|
onChange: handleChangeInput,
|
|
181
181
|
disabled: formState.loading,
|
|
182
182
|
autoComplete: "off"
|
|
@@ -185,7 +185,7 @@ var ImporterJobFormUI = function ImporterJobFormUI(props) {
|
|
|
185
185
|
type: "text",
|
|
186
186
|
placeholder: "\\",
|
|
187
187
|
maxLength: "1",
|
|
188
|
-
defaultValue: formState === null || formState === void 0
|
|
188
|
+
defaultValue: formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.escape,
|
|
189
189
|
onChange: handleChangeInput,
|
|
190
190
|
disabled: formState.loading,
|
|
191
191
|
autoComplete: "off"
|
|
@@ -193,7 +193,7 @@ var ImporterJobFormUI = function ImporterJobFormUI(props) {
|
|
|
193
193
|
name: "start_line",
|
|
194
194
|
type: "text",
|
|
195
195
|
maxLength: "1",
|
|
196
|
-
defaultValue: formState === null || formState === void 0
|
|
196
|
+
defaultValue: formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.start_line,
|
|
197
197
|
onChange: handleChangeInput,
|
|
198
198
|
disabled: formState.loading,
|
|
199
199
|
autoComplete: "off"
|
|
@@ -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 PaymentOption = function PaymentOption(props) {
|
|
40
|
-
var _sitesState$sites, _localState$sites, _businessPaymethod$si, _businessPaymethod$pa2, _businessPaymethod$pa3,
|
|
40
|
+
var _sitesState$sites, _localState$sites, _businessPaymethod$si, _businessPaymethod$pa2, _businessPaymethod$pa3, _sitesState$sites4, _sitesState$sites5;
|
|
41
41
|
var open = props.open,
|
|
42
42
|
onClose = props.onClose,
|
|
43
43
|
orderTypes = props.orderTypes,
|
|
@@ -61,7 +61,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
61
61
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
62
|
isMenuOpen = _useState2[0],
|
|
63
63
|
setIsMenuOpen = _useState2[1];
|
|
64
|
-
var _useState3 = (0, _react.useState)((sitesState === null || sitesState === void 0
|
|
64
|
+
var _useState3 = (0, _react.useState)((sitesState === null || sitesState === void 0 || (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.length) > 0 ? 0 : 1),
|
|
65
65
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
66
66
|
paymentTabs = _useState4[0],
|
|
67
67
|
setPaymentTabs = _useState4[1];
|
|
@@ -80,9 +80,9 @@ var PaymentOption = function PaymentOption(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
|
|
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 || (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.filter(function (a) {
|
|
84
84
|
var _sitesState$sites2;
|
|
85
|
-
return sitesState === null || sitesState === void 0
|
|
85
|
+
return sitesState === null || sitesState === void 0 || (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.find(function (b) {
|
|
86
86
|
return a.id === b.id;
|
|
87
87
|
});
|
|
88
88
|
});
|
|
@@ -97,7 +97,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
97
97
|
setAll(!all);
|
|
98
98
|
} else {
|
|
99
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
|
|
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 || (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
101
101
|
return i.id;
|
|
102
102
|
})) !== null && _ref !== void 0 ? _ref : [];
|
|
103
103
|
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
@@ -126,7 +126,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
126
126
|
setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
|
|
127
127
|
open: false
|
|
128
128
|
}));
|
|
129
|
-
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0
|
|
129
|
+
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa = businessPaymethod.paymethod) === null || _businessPaymethod$pa === void 0 ? void 0 : _businessPaymethod$pa.id);
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
};
|
|
@@ -145,7 +145,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
145
145
|
}, [open]);
|
|
146
146
|
(0, _react.useEffect)(function () {
|
|
147
147
|
var _sitesState$sites3;
|
|
148
|
-
setPaymentTabs((sitesState === null || sitesState === void 0
|
|
148
|
+
setPaymentTabs((sitesState === null || sitesState === void 0 || (_sitesState$sites3 = sitesState.sites) === null || _sitesState$sites3 === void 0 ? void 0 : _sitesState$sites3.length) > 0 ? 0 : 1);
|
|
149
149
|
}, [sitesState]);
|
|
150
150
|
(0, _react.useEffect)(function () {
|
|
151
151
|
cleanChangesState({
|
|
@@ -178,7 +178,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
178
178
|
}, []);
|
|
179
179
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles3.Container, {
|
|
180
180
|
id: "payment_method_option"
|
|
181
|
-
}, /*#__PURE__*/_react.default.createElement(_styles3.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t(businessPaymethod === null || businessPaymethod === void 0
|
|
181
|
+
}, /*#__PURE__*/_react.default.createElement(_styles3.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t(businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa2 = businessPaymethod.paymethod) === null || _businessPaymethod$pa2 === void 0 || (_businessPaymethod$pa2 = _businessPaymethod$pa2.gateway) === null || _businessPaymethod$pa2 === void 0 ? void 0 : _businessPaymethod$pa2.toUpperCase(), businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa3 = businessPaymethod.paymethod) === null || _businessPaymethod$pa3 === void 0 ? void 0 : _businessPaymethod$pa3.name)), /*#__PURE__*/_react.default.createElement(_styles3.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
|
|
182
182
|
menuAlign: theme !== null && theme !== void 0 && theme.rtl ? 'left' : 'right',
|
|
183
183
|
title: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ThreeDots, null),
|
|
184
184
|
id: theme !== null && theme !== void 0 && theme.rtl ? 'dropdown-menu-align-left' : 'dropdown-menu-align-right'
|
|
@@ -191,7 +191,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
191
191
|
onClick: function onClick() {
|
|
192
192
|
return onClose();
|
|
193
193
|
}
|
|
194
|
-
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null)))), /*#__PURE__*/_react.default.createElement(_styles2.TabsContainer, null, (sitesState === null || sitesState === void 0
|
|
194
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.XLg, null)))), /*#__PURE__*/_react.default.createElement(_styles2.TabsContainer, null, (sitesState === null || sitesState === void 0 || (_sitesState$sites4 = sitesState.sites) === null || _sitesState$sites4 === void 0 ? void 0 : _sitesState$sites4.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Tab, {
|
|
195
195
|
active: paymentTabs === 0,
|
|
196
196
|
onClick: function onClick() {
|
|
197
197
|
return handleTabClick(0);
|
|
@@ -201,7 +201,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
201
201
|
onClick: function onClick() {
|
|
202
202
|
return handleTabClick(1);
|
|
203
203
|
}
|
|
204
|
-
}, t('ORDER_TYPE', 'Order type'))), paymentTabs === 0 && (sitesState === null || sitesState === void 0
|
|
204
|
+
}, t('ORDER_TYPE', 'Order type'))), paymentTabs === 0 && (sitesState === null || sitesState === void 0 || (_sitesState$sites5 = sitesState.sites) === null || _sitesState$sites5 === void 0 ? void 0 : _sitesState$sites5.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles3.TabOption, {
|
|
205
205
|
key: "all",
|
|
206
206
|
onClick: function onClick() {
|
|
207
207
|
return setPaymethodInfo({
|
|
@@ -221,7 +221,7 @@ var PaymentOption = function PaymentOption(props) {
|
|
|
221
221
|
value: site.id
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
-
}, (_ref2 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0
|
|
224
|
+
}, (_ref2 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$si2 = businessPaymethod.sites) === null || _businessPaymethod$si2 === void 0 ? void 0 : _businessPaymethod$si2.map(function (s) {
|
|
225
225
|
return s.id;
|
|
226
226
|
})) !== null && _ref2 !== void 0 && _ref2.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
227
227
|
className: "fill"
|
|
@@ -84,9 +84,9 @@ var PaymentOptionMethods = function PaymentOptionMethods(props) {
|
|
|
84
84
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
85
85
|
localState = _useState8[0],
|
|
86
86
|
setLocalState = _useState8[1];
|
|
87
|
-
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
|
|
87
|
+
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 || (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.filter(function (a) {
|
|
88
88
|
var _sitesState$sites;
|
|
89
|
-
return sitesState === null || sitesState === void 0
|
|
89
|
+
return sitesState === null || sitesState === void 0 || (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.find(function (b) {
|
|
90
90
|
return a.id === b.id;
|
|
91
91
|
});
|
|
92
92
|
});
|
|
@@ -101,7 +101,7 @@ var PaymentOptionMethods = function PaymentOptionMethods(props) {
|
|
|
101
101
|
setAll(!all);
|
|
102
102
|
} else {
|
|
103
103
|
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
104
|
-
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
|
|
104
|
+
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 || (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
105
105
|
return i.id;
|
|
106
106
|
})) !== null && _ref !== void 0 ? _ref : [];
|
|
107
107
|
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
@@ -130,7 +130,7 @@ var PaymentOptionMethods = function PaymentOptionMethods(props) {
|
|
|
130
130
|
setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
|
|
131
131
|
open: false
|
|
132
132
|
}));
|
|
133
|
-
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0
|
|
133
|
+
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa = businessPaymethod.paymethod) === null || _businessPaymethod$pa === void 0 ? void 0 : _businessPaymethod$pa.id);
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
};
|
|
@@ -203,7 +203,7 @@ var PaymentOptionMethods = function PaymentOptionMethods(props) {
|
|
|
203
203
|
onClick: function onClick() {
|
|
204
204
|
return handleTabClick(0);
|
|
205
205
|
}
|
|
206
|
-
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0
|
|
206
|
+
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 || (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles3.Tab, {
|
|
207
207
|
active: paymentTabs === 1,
|
|
208
208
|
onClick: function onClick() {
|
|
209
209
|
return handleTabClick(1);
|
|
@@ -220,33 +220,33 @@ var PaymentOptionMethods = function PaymentOptionMethods(props) {
|
|
|
220
220
|
}
|
|
221
221
|
}), /*#__PURE__*/_react.default.createElement("span", null, t('SANDBOX', 'Sandbox'))), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('PUBLISHABLE_KEY', 'Publishable key')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
222
222
|
name: "publishable",
|
|
223
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data = changesState.data) !== null && _changesState$data !== void 0 && _changesState$data.publishable ? changesState === null || changesState === void 0
|
|
223
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data = changesState.data) !== null && _changesState$data !== void 0 && _changesState$data.publishable ? changesState === null || changesState === void 0 || (_changesState$data2 = changesState.data) === null || _changesState$data2 === void 0 ? void 0 : _changesState$data2.publishable : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da = businessPaymethod.data) === null || _businessPaymethod$da === void 0 ? void 0 : _businessPaymethod$da.publishable,
|
|
224
224
|
placeholder: t('PUBLISHABLE_KEY', 'Publishable key'),
|
|
225
225
|
onChange: function onChange(e) {
|
|
226
226
|
return handleChangeInput(e, false);
|
|
227
227
|
}
|
|
228
228
|
}), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('SECRET_KEY', 'Secret key')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
229
229
|
name: "secret",
|
|
230
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data3 = changesState.data) !== null && _changesState$data3 !== void 0 && _changesState$data3.secret ? changesState === null || changesState === void 0
|
|
230
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data3 = changesState.data) !== null && _changesState$data3 !== void 0 && _changesState$data3.secret ? changesState === null || changesState === void 0 || (_changesState$data4 = changesState.data) === null || _changesState$data4 === void 0 ? void 0 : _changesState$data4.secret : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da2 = businessPaymethod.data) === null || _businessPaymethod$da2 === void 0 ? void 0 : _businessPaymethod$da2.secret,
|
|
231
231
|
placeholder: t('SECRET_KEY', 'Secret key'),
|
|
232
232
|
onChange: function onChange(e) {
|
|
233
233
|
return handleChangeInput(e, false);
|
|
234
234
|
}
|
|
235
235
|
}), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('PUBLISHABLE_KEY', 'Publishable key'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
236
236
|
name: "publishable",
|
|
237
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa = changesState.data_sandbox) !== null && _changesState$data_sa !== void 0 && _changesState$data_sa.publishable ? changesState === null || changesState === void 0
|
|
237
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa = changesState.data_sandbox) !== null && _changesState$data_sa !== void 0 && _changesState$data_sa.publishable ? changesState === null || changesState === void 0 || (_changesState$data_sa2 = changesState.data_sandbox) === null || _changesState$data_sa2 === void 0 ? void 0 : _changesState$data_sa2.publishable : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da3 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da3 === void 0 ? void 0 : _businessPaymethod$da3.publishable,
|
|
238
238
|
placeholder: "".concat(t('PUBLISHABLE_KEY', 'Publishable key'), " (").concat(t('SANDBOX', 'Sandbox'), ")"),
|
|
239
239
|
onChange: function onChange(e) {
|
|
240
240
|
return handleChangeInput(e, true);
|
|
241
241
|
}
|
|
242
242
|
}), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('SECRECT_KEY', 'Secret key'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
243
243
|
name: "secret",
|
|
244
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa3 = changesState.data_sandbox) !== null && _changesState$data_sa3 !== void 0 && _changesState$data_sa3.secret ? changesState === null || changesState === void 0
|
|
244
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa3 = changesState.data_sandbox) !== null && _changesState$data_sa3 !== void 0 && _changesState$data_sa3.secret ? changesState === null || changesState === void 0 || (_changesState$data_sa4 = changesState.data_sandbox) === null || _changesState$data_sa4 === void 0 ? void 0 : _changesState$data_sa4.secret : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da4 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da4 === void 0 ? void 0 : _businessPaymethod$da4.secret,
|
|
245
245
|
placeholder: "".concat(t('SECRECT_KEY', 'Secret key'), " (").concat(t('SANDBOX', 'Sandbox'), ")"),
|
|
246
246
|
onChange: function onChange(e) {
|
|
247
247
|
return handleChangeInput(e, true);
|
|
248
248
|
}
|
|
249
|
-
})), paymentTabs === 1 && (sitesState === null || sitesState === void 0
|
|
249
|
+
})), paymentTabs === 1 && (sitesState === null || sitesState === 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, {
|
|
250
250
|
key: "all",
|
|
251
251
|
onClick: function onClick() {
|
|
252
252
|
return setPaymethodInfo({
|
|
@@ -266,7 +266,7 @@ var PaymentOptionMethods = function PaymentOptionMethods(props) {
|
|
|
266
266
|
value: site.id
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
|
-
}, (_ref3 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0
|
|
269
|
+
}, (_ref3 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$si2 = businessPaymethod.sites) === null || _businessPaymethod$si2 === void 0 ? void 0 : _businessPaymethod$si2.map(function (s) {
|
|
270
270
|
return s.id;
|
|
271
271
|
})) !== null && _ref3 !== void 0 && _ref3.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
272
272
|
className: "fill"
|
|
@@ -83,9 +83,9 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
83
83
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
84
84
|
localState = _useState8[0],
|
|
85
85
|
setLocalState = _useState8[1];
|
|
86
|
-
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
|
|
86
|
+
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 || (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.filter(function (a) {
|
|
87
87
|
var _sitesState$sites;
|
|
88
|
-
return sitesState === null || sitesState === void 0
|
|
88
|
+
return sitesState === null || sitesState === void 0 || (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.find(function (b) {
|
|
89
89
|
return a.id === b.id;
|
|
90
90
|
});
|
|
91
91
|
});
|
|
@@ -106,7 +106,7 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
106
106
|
setAll(!all);
|
|
107
107
|
} else {
|
|
108
108
|
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
109
|
-
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
|
|
109
|
+
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 || (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
110
110
|
return i.id;
|
|
111
111
|
})) !== null && _ref !== void 0 ? _ref : [];
|
|
112
112
|
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
@@ -129,7 +129,7 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
129
129
|
setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
|
|
130
130
|
open: false
|
|
131
131
|
}));
|
|
132
|
-
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0
|
|
132
|
+
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa = businessPaymethod.paymethod) === null || _businessPaymethod$pa === void 0 ? void 0 : _businessPaymethod$pa.id);
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
};
|
|
@@ -202,7 +202,7 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
202
202
|
onClick: function onClick() {
|
|
203
203
|
return handleTabClick(0);
|
|
204
204
|
}
|
|
205
|
-
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0
|
|
205
|
+
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 || (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles3.Tab, {
|
|
206
206
|
active: paymentTabs === 1,
|
|
207
207
|
onClick: function onClick() {
|
|
208
208
|
return handleTabClick(1);
|
|
@@ -219,33 +219,33 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
219
219
|
}
|
|
220
220
|
}), /*#__PURE__*/_react.default.createElement("span", null, t('SANDBOX', 'Sandbox'))), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('CLIENT_ID', 'Client ID')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
221
221
|
name: "client_id",
|
|
222
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data = changesState.data) !== null && _changesState$data !== void 0 && _changesState$data.client_id ? changesState === null || changesState === void 0
|
|
222
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data = changesState.data) !== null && _changesState$data !== void 0 && _changesState$data.client_id ? changesState === null || changesState === void 0 || (_changesState$data2 = changesState.data) === null || _changesState$data2 === void 0 ? void 0 : _changesState$data2.client_id : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da = businessPaymethod.data) === null || _businessPaymethod$da === void 0 ? void 0 : _businessPaymethod$da.client_id,
|
|
223
223
|
placeholder: t('CLIENT_ID', 'Client ID'),
|
|
224
224
|
onChange: function onChange(e) {
|
|
225
225
|
return handleChangeInput(e, false);
|
|
226
226
|
}
|
|
227
227
|
}), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('SECRET_ID', 'Secret ID')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
228
228
|
name: "secret",
|
|
229
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data3 = changesState.data) !== null && _changesState$data3 !== void 0 && _changesState$data3.secret ? changesState === null || changesState === void 0
|
|
229
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data3 = changesState.data) !== null && _changesState$data3 !== void 0 && _changesState$data3.secret ? changesState === null || changesState === void 0 || (_changesState$data4 = changesState.data) === null || _changesState$data4 === void 0 ? void 0 : _changesState$data4.secret : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da2 = businessPaymethod.data) === null || _businessPaymethod$da2 === void 0 ? void 0 : _businessPaymethod$da2.secret,
|
|
230
230
|
placeholder: t('SECRET_ID', 'Secret ID'),
|
|
231
231
|
onChange: function onChange(e) {
|
|
232
232
|
return handleChangeInput(e, false);
|
|
233
233
|
}
|
|
234
234
|
}), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('CLIENT_ID', 'Client ID'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
235
235
|
name: "client_id",
|
|
236
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa = changesState.data_sandbox) !== null && _changesState$data_sa !== void 0 && _changesState$data_sa.client_id ? changesState === null || changesState === void 0
|
|
236
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa = changesState.data_sandbox) !== null && _changesState$data_sa !== void 0 && _changesState$data_sa.client_id ? changesState === null || changesState === void 0 || (_changesState$data_sa2 = changesState.data_sandbox) === null || _changesState$data_sa2 === void 0 ? void 0 : _changesState$data_sa2.client_id : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da3 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da3 === void 0 ? void 0 : _businessPaymethod$da3.client_id,
|
|
237
237
|
placeholder: "".concat(t('CLIENT_ID', 'Client ID'), " (").concat(t('SANDBOX', 'Sandbox'), ")"),
|
|
238
238
|
onChange: function onChange(e) {
|
|
239
239
|
return handleChangeInput(e, true);
|
|
240
240
|
}
|
|
241
241
|
}), /*#__PURE__*/_react.default.createElement(_styles2.FieldName, null, t('SECRET_ID', 'Secret ID'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
242
242
|
name: "secret",
|
|
243
|
-
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa3 = changesState.data_sandbox) !== null && _changesState$data_sa3 !== void 0 && _changesState$data_sa3.secret ? changesState === null || changesState === void 0
|
|
243
|
+
defaultValue: changesState !== null && changesState !== void 0 && (_changesState$data_sa3 = changesState.data_sandbox) !== null && _changesState$data_sa3 !== void 0 && _changesState$data_sa3.secret ? changesState === null || changesState === void 0 || (_changesState$data_sa4 = changesState.data_sandbox) === null || _changesState$data_sa4 === void 0 ? void 0 : _changesState$data_sa4.secret : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da4 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da4 === void 0 ? void 0 : _businessPaymethod$da4.secret,
|
|
244
244
|
placeholder: "".concat(t('SECRET_ID', 'Secret ID'), " (").concat(t('SANDBOX', 'Sandbox'), ")"),
|
|
245
245
|
onChange: function onChange(e) {
|
|
246
246
|
return handleChangeInput(e, true);
|
|
247
247
|
}
|
|
248
|
-
})), paymentTabs === 1 && (sitesState === null || sitesState === void 0
|
|
248
|
+
})), paymentTabs === 1 && (sitesState === null || sitesState === 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, {
|
|
249
249
|
key: "all",
|
|
250
250
|
onClick: function onClick() {
|
|
251
251
|
return setPaymethodInfo({
|
|
@@ -265,7 +265,7 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
265
265
|
value: site.id
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
}, (_ref2 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0
|
|
268
|
+
}, (_ref2 = (_localState$sites2 = localState === null || localState === void 0 ? void 0 : localState.sites) !== null && _localState$sites2 !== void 0 ? _localState$sites2 : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$si2 = businessPaymethod.sites) === null || _businessPaymethod$si2 === void 0 ? void 0 : _businessPaymethod$si2.map(function (s) {
|
|
269
269
|
return s.id;
|
|
270
270
|
})) !== null && _ref2 !== void 0 && _ref2.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
271
271
|
className: "fill"
|
|
@@ -39,7 +39,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
39
39
|
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; } }
|
|
40
40
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
41
|
var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
42
|
-
var _businessPaymethod$pa2, _businessPaymethod$pa3,
|
|
42
|
+
var _businessPaymethod$pa2, _businessPaymethod$pa3, _sitesState$sites, _ref2, _squareData$sandbox, _ref3, _squareData$data$appl, _squareData$data, _businessPaymethod$da, _ref4, _squareData$data$loca, _squareData$data2, _businessPaymethod$da2, _ref5, _squareData$data$clie, _squareData$data3, _businessPaymethod$da3, _ref6, _squareData$data_sand, _squareData$data_sand2, _businessPaymethod$da4, _ref7, _squareData$data_sand3, _squareData$data_sand4, _businessPaymethod$da5, _ref8, _squareData$data_sand5, _squareData$data_sand6, _businessPaymethod$da6, _sitesState$sites2;
|
|
43
43
|
var open = props.open,
|
|
44
44
|
onClose = props.onClose,
|
|
45
45
|
businessPaymethod = props.businessPaymethod,
|
|
@@ -95,7 +95,7 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
95
95
|
var setPaymethodInfo = function setPaymethodInfo(values) {
|
|
96
96
|
var _ref, _changesState$values$, _businessPaymethod$va;
|
|
97
97
|
var data = {};
|
|
98
|
-
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
|
|
98
|
+
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 || (_businessPaymethod$va = businessPaymethod[values.key]) === null || _businessPaymethod$va === void 0 ? void 0 : _businessPaymethod$va.map(function (i) {
|
|
99
99
|
return i.id;
|
|
100
100
|
})) !== null && _ref !== void 0 ? _ref : [];
|
|
101
101
|
array = _toConsumableArray(new Set(array.includes(values.value) ? array.filter(function (item) {
|
|
@@ -113,7 +113,7 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
113
113
|
setConfirm(_objectSpread(_objectSpread({}, confirm), {}, {
|
|
114
114
|
open: false
|
|
115
115
|
}));
|
|
116
|
-
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0
|
|
116
|
+
handleDeletePaymethod(businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa = businessPaymethod.paymethod) === null || _businessPaymethod$pa === void 0 ? void 0 : _businessPaymethod$pa.id);
|
|
117
117
|
}
|
|
118
118
|
});
|
|
119
119
|
};
|
|
@@ -156,7 +156,7 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
156
156
|
}, []);
|
|
157
157
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles4.Container, {
|
|
158
158
|
id: "payment_method_square"
|
|
159
|
-
}, /*#__PURE__*/_react.default.createElement(_styles4.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t(businessPaymethod === null || businessPaymethod === void 0
|
|
159
|
+
}, /*#__PURE__*/_react.default.createElement(_styles4.Header, null, /*#__PURE__*/_react.default.createElement("h1", null, t(businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa2 = businessPaymethod.paymethod) === null || _businessPaymethod$pa2 === void 0 || (_businessPaymethod$pa2 = _businessPaymethod$pa2.gateway) === null || _businessPaymethod$pa2 === void 0 ? void 0 : _businessPaymethod$pa2.toUpperCase(), businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$pa3 = businessPaymethod.paymethod) === null || _businessPaymethod$pa3 === void 0 ? void 0 : _businessPaymethod$pa3.name)), /*#__PURE__*/_react.default.createElement(_styles4.ActionSelectorWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.DropdownButton, {
|
|
160
160
|
menuAlign: theme !== null && theme !== void 0 && theme.rtl ? 'left' : 'right',
|
|
161
161
|
title: /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.ThreeDots, null),
|
|
162
162
|
id: theme !== null && theme !== void 0 && theme.rtl ? 'dropdown-menu-align-left' : 'dropdown-menu-align-right'
|
|
@@ -174,7 +174,7 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
174
174
|
onClick: function onClick() {
|
|
175
175
|
return handleTabClick(0);
|
|
176
176
|
}
|
|
177
|
-
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0
|
|
177
|
+
}, t('GENERAL', 'General')), (sitesState === null || sitesState === void 0 || (_sitesState$sites = sitesState.sites) === null || _sitesState$sites === void 0 ? void 0 : _sitesState$sites.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.Tab, {
|
|
178
178
|
active: paymentTabs === 1,
|
|
179
179
|
onClick: function onClick() {
|
|
180
180
|
return handleTabClick(1);
|
|
@@ -196,32 +196,32 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
196
196
|
}), /*#__PURE__*/_react.default.createElement("span", null, t('SANDBOX', 'Sandbox'))), /*#__PURE__*/_react.default.createElement(_styles4.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('APPLICATION_ID', 'Application Id')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
197
197
|
name: "application_id",
|
|
198
198
|
disabled: actionState === null || actionState === void 0 ? void 0 : actionState.loading,
|
|
199
|
-
value: (_ref3 = (_squareData$data$appl = squareData === null || squareData === void 0
|
|
199
|
+
value: (_ref3 = (_squareData$data$appl = squareData === null || squareData === void 0 || (_squareData$data = squareData.data) === null || _squareData$data === void 0 ? void 0 : _squareData$data.application_id) !== null && _squareData$data$appl !== void 0 ? _squareData$data$appl : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da = businessPaymethod.data) === null || _businessPaymethod$da === void 0 ? void 0 : _businessPaymethod$da.application_id) !== null && _ref3 !== void 0 ? _ref3 : '',
|
|
200
200
|
onChange: handleChangeDataInput
|
|
201
201
|
})), /*#__PURE__*/_react.default.createElement(_styles4.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('LOCATION_ID', 'Location Id')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
202
202
|
name: "location_id",
|
|
203
203
|
disabled: actionState === null || actionState === void 0 ? void 0 : actionState.loading,
|
|
204
|
-
value: (_ref4 = (_squareData$data$loca = squareData === null || squareData === void 0
|
|
204
|
+
value: (_ref4 = (_squareData$data$loca = squareData === null || squareData === void 0 || (_squareData$data2 = squareData.data) === null || _squareData$data2 === void 0 ? void 0 : _squareData$data2.location_id) !== null && _squareData$data$loca !== void 0 ? _squareData$data$loca : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da2 = businessPaymethod.data) === null || _businessPaymethod$da2 === void 0 ? void 0 : _businessPaymethod$da2.location_id) !== null && _ref4 !== void 0 ? _ref4 : '',
|
|
205
205
|
onChange: handleChangeDataInput
|
|
206
206
|
})), /*#__PURE__*/_react.default.createElement(_styles4.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('CLIENT_SECRET', 'Client secret')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
207
207
|
name: "client_secret",
|
|
208
208
|
disabled: actionState === null || actionState === void 0 ? void 0 : actionState.loading,
|
|
209
|
-
value: (_ref5 = (_squareData$data$clie = squareData === null || squareData === void 0
|
|
209
|
+
value: (_ref5 = (_squareData$data$clie = squareData === null || squareData === void 0 || (_squareData$data3 = squareData.data) === null || _squareData$data3 === void 0 ? void 0 : _squareData$data3.client_secret) !== null && _squareData$data$clie !== void 0 ? _squareData$data$clie : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da3 = businessPaymethod.data) === null || _businessPaymethod$da3 === void 0 ? void 0 : _businessPaymethod$da3.client_secret) !== null && _ref5 !== void 0 ? _ref5 : '',
|
|
210
210
|
onChange: handleChangeDataInput
|
|
211
211
|
})), /*#__PURE__*/_react.default.createElement(_styles4.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('APPLICATION_ID', 'Application Id'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
212
212
|
name: "application_id",
|
|
213
213
|
disabled: actionState === null || actionState === void 0 ? void 0 : actionState.loading,
|
|
214
|
-
value: (_ref6 = (_squareData$data_sand = squareData === null || squareData === void 0
|
|
214
|
+
value: (_ref6 = (_squareData$data_sand = squareData === null || squareData === void 0 || (_squareData$data_sand2 = squareData.data_sandbox) === null || _squareData$data_sand2 === void 0 ? void 0 : _squareData$data_sand2.application_id) !== null && _squareData$data_sand !== void 0 ? _squareData$data_sand : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da4 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da4 === void 0 ? void 0 : _businessPaymethod$da4.application_id) !== null && _ref6 !== void 0 ? _ref6 : '',
|
|
215
215
|
onChange: handleChangeSanboxDataInput
|
|
216
216
|
})), /*#__PURE__*/_react.default.createElement(_styles4.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('LOCATION_ID', 'Location Id'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
217
217
|
name: "location_id",
|
|
218
218
|
disabled: actionState === null || actionState === void 0 ? void 0 : actionState.loading,
|
|
219
|
-
value: (_ref7 = (_squareData$data_sand3 = squareData === null || squareData === void 0
|
|
219
|
+
value: (_ref7 = (_squareData$data_sand3 = squareData === null || squareData === void 0 || (_squareData$data_sand4 = squareData.data_sandbox) === null || _squareData$data_sand4 === void 0 ? void 0 : _squareData$data_sand4.location_id) !== null && _squareData$data_sand3 !== void 0 ? _squareData$data_sand3 : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da5 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da5 === void 0 ? void 0 : _businessPaymethod$da5.location_id) !== null && _ref7 !== void 0 ? _ref7 : '',
|
|
220
220
|
onChange: handleChangeSanboxDataInput
|
|
221
221
|
})), /*#__PURE__*/_react.default.createElement(_styles4.FormController, null, /*#__PURE__*/_react.default.createElement("label", null, t('CLIENT_SECRET', 'Client secret'), " (", t('SANDBOX', 'Sandbox'), ")"), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
222
222
|
name: "client_secret",
|
|
223
223
|
disabled: actionState === null || actionState === void 0 ? void 0 : actionState.loading,
|
|
224
|
-
value: (_ref8 = (_squareData$data_sand5 = squareData === null || squareData === void 0
|
|
224
|
+
value: (_ref8 = (_squareData$data_sand5 = squareData === null || squareData === void 0 || (_squareData$data_sand6 = squareData.data_sandbox) === null || _squareData$data_sand6 === void 0 ? void 0 : _squareData$data_sand6.client_secret) !== null && _squareData$data_sand5 !== void 0 ? _squareData$data_sand5 : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$da6 = businessPaymethod.data_sandbox) === null || _businessPaymethod$da6 === void 0 ? void 0 : _businessPaymethod$da6.client_secret) !== null && _ref8 !== void 0 ? _ref8 : '',
|
|
225
225
|
onChange: handleChangeSanboxDataInput
|
|
226
226
|
})), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
227
227
|
borderRadius: "8px",
|
|
@@ -229,7 +229,7 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
229
229
|
onClick: function onClick() {
|
|
230
230
|
return handleSavePaymethod(businessPaymethod === null || businessPaymethod === void 0 ? void 0 : businessPaymethod.id);
|
|
231
231
|
}
|
|
232
|
-
}, t('SAVE', 'Save')))), paymentTabs === 1 && (sitesState === null || sitesState === void 0
|
|
232
|
+
}, t('SAVE', 'Save')))), paymentTabs === 1 && (sitesState === null || sitesState === void 0 || (_sitesState$sites2 = sitesState.sites) === null || _sitesState$sites2 === void 0 ? void 0 : _sitesState$sites2.length) > 0 && (sitesState === null || sitesState === void 0 ? void 0 : sitesState.sites.map(function (site) {
|
|
233
233
|
var _ref9, _changesState$sites, _businessPaymethod$si;
|
|
234
234
|
return /*#__PURE__*/_react.default.createElement(_styles3.TabOption, {
|
|
235
235
|
key: site.id,
|
|
@@ -239,7 +239,7 @@ var PaymentOptionSquareUI = function PaymentOptionSquareUI(props) {
|
|
|
239
239
|
value: site.id
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
-
}, (_ref9 = (_changesState$sites = changesState === null || changesState === void 0 ? void 0 : changesState.sites) !== null && _changesState$sites !== void 0 ? _changesState$sites : businessPaymethod === null || businessPaymethod === void 0
|
|
242
|
+
}, (_ref9 = (_changesState$sites = changesState === null || changesState === void 0 ? void 0 : changesState.sites) !== null && _changesState$sites !== void 0 ? _changesState$sites : businessPaymethod === null || businessPaymethod === void 0 || (_businessPaymethod$si = businessPaymethod.sites) === null || _businessPaymethod$si === void 0 ? void 0 : _businessPaymethod$si.map(function (s) {
|
|
243
243
|
return s.id;
|
|
244
244
|
})) !== null && _ref9 !== void 0 && _ref9.includes(site.id) ? /*#__PURE__*/_react.default.createElement(_RiCheckboxFill.default, {
|
|
245
245
|
className: "fill"
|