ordering-ui-admin-external 1.30.6 → 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.7f043fd81bc0483e027b.js → ordering-ui-admin.a29dbc53a1f823ce0ce5.js} +2 -2
- package/_bundles/{ordering-ui-admin.7f043fd81bc0483e027b.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 +1 -1
- 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 +24 -24
- package/_modules/components/BusinessIntelligence/ReportsBusinessSpend/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsCustomer/index.js +15 -15
- package/_modules/components/BusinessIntelligence/ReportsDriverDistance/index.js +8 -8
- package/_modules/components/BusinessIntelligence/ReportsDriverFilter/index.js +3 -3
- package/_modules/components/BusinessIntelligence/ReportsDriverOrder/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsDriverOrderTime/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsDriverSchedule/index.js +7 -7
- package/_modules/components/BusinessIntelligence/ReportsDriverSpend/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsGeneralSales/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsHeatMap/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsOrderDistance/index.js +21 -21
- package/_modules/components/BusinessIntelligence/ReportsOrderStatus/index.js +14 -14
- package/_modules/components/BusinessIntelligence/ReportsOrderTypeFilter/index.js +2 -2
- package/_modules/components/BusinessIntelligence/ReportsOrders/index.js +19 -19
- package/_modules/components/BusinessIntelligence/ReportsPaymethodSales/index.js +9 -9
- package/_modules/components/BusinessIntelligence/ReportsSaleAndCategory/index.js +17 -17
- package/_modules/components/BusinessIntelligence/ReportsSales/index.js +19 -19
- package/_modules/components/BusinessIntelligence/ReportsSpentTIme/index.js +8 -8
- package/_modules/components/BusinessIntelligence/ReportsTopDrivers/index.js +24 -24
- 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 +1 -1
- 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 +53 -53
- 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 +1 -1
- package/src/components/SidebarMenu/index.js +6 -6
- package/template/config.json +1 -1
|
@@ -29,7 +29,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
29
29
|
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; } }
|
|
30
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
31
|
var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
|
|
32
|
-
var _formState$changes$na, _formState$changes4, _formState$changes$de, _formState$changes5, _formState$changes$
|
|
32
|
+
var _formState$changes$na, _formState$changes4, _formState$changes$de, _formState$changes5, _formState$changes$ti, _formState$changes6, _formState$changes$ch, _formState$changes7, _formState$changes8, _formState$changes$bo, _formState$changes9;
|
|
33
33
|
var onClose = props.onClose,
|
|
34
34
|
formState = props.formState,
|
|
35
35
|
handleAddRecoveryAction = props.handleAddRecoveryAction,
|
|
@@ -134,8 +134,8 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
|
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
136
|
var onSubmit = function onSubmit() {
|
|
137
|
-
var _formState$changes, _formState$
|
|
138
|
-
if (!((_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && (_formState$changes
|
|
137
|
+
var _formState$changes, _formState$changes2, _formState$changes3;
|
|
138
|
+
if (!((_formState$changes = formState.changes) !== null && _formState$changes !== void 0 && (_formState$changes = _formState$changes.times) !== null && _formState$changes !== void 0 && _formState$changes[0])) {
|
|
139
139
|
setAlertState({
|
|
140
140
|
open: true,
|
|
141
141
|
content: [t('VALIDATION_ERROR_REQUIRED', 'Name is required').replace('_attribute_', t('TIME', 'Time'))]
|
|
@@ -199,7 +199,7 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
|
|
|
199
199
|
name: "name",
|
|
200
200
|
type: "text",
|
|
201
201
|
placeholder: t('NAME', 'name'),
|
|
202
|
-
value: (_formState$changes$na = formState === null || formState === void 0
|
|
202
|
+
value: (_formState$changes$na = formState === null || formState === void 0 || (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : '',
|
|
203
203
|
ref: register({
|
|
204
204
|
required: t('VALIDATION_ERROR_REQUIRED', 'Name is required').replace('_attribute_', t('NAME', 'Name'))
|
|
205
205
|
}),
|
|
@@ -210,7 +210,7 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
|
|
|
210
210
|
placeholder: t('WRITE_LITTLE_DESCRIPTION', 'Write a little description'),
|
|
211
211
|
name: "description",
|
|
212
212
|
rows: 3,
|
|
213
|
-
value: (_formState$changes$de = formState === null || formState === void 0
|
|
213
|
+
value: (_formState$changes$de = formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : '',
|
|
214
214
|
onChange: handleChangeInput,
|
|
215
215
|
disabled: formState.loading,
|
|
216
216
|
autoComplete: "off"
|
|
@@ -268,14 +268,14 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
|
|
|
268
268
|
}))))), /*#__PURE__*/_react.default.createElement(_styles2.CardContainer, null, /*#__PURE__*/_react.default.createElement("h2", null, t('NOTIFICATIONS', 'Notifications')), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
269
269
|
name: "title",
|
|
270
270
|
placeholder: t('TITLE', 'Title'),
|
|
271
|
-
defaultValue: (_formState$changes$
|
|
271
|
+
defaultValue: (_formState$changes$ti = formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.title) !== null && _formState$changes$ti !== void 0 ? _formState$changes$ti : '',
|
|
272
272
|
onChange: handleChangeInput,
|
|
273
273
|
ref: register({
|
|
274
274
|
required: t('VALIDATION_ERROR_REQUIRED', 'Name is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
275
275
|
})
|
|
276
276
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('CHANNEL', 'Channel')), /*#__PURE__*/_react.default.createElement(_Select.Select, {
|
|
277
277
|
placeholder: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, t('SELECT_CHANNEL', 'Select a channel')),
|
|
278
|
-
defaultValue: (_formState$changes$ch = formState === null || formState === void 0
|
|
278
|
+
defaultValue: (_formState$changes$ch = formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.channel) !== null && _formState$changes$ch !== void 0 ? _formState$changes$ch : '',
|
|
279
279
|
options: channelList,
|
|
280
280
|
onChange: function onChange(val) {
|
|
281
281
|
setValue('body', '');
|
|
@@ -294,7 +294,7 @@ var RecoveryActionAddUI = function RecoveryActionAddUI(props) {
|
|
|
294
294
|
name: "body",
|
|
295
295
|
rows: 3,
|
|
296
296
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
297
|
-
defaultValue: (_formState$changes$bo = formState === null || formState === void 0
|
|
297
|
+
defaultValue: (_formState$changes$bo = formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.body) !== null && _formState$changes$bo !== void 0 ? _formState$changes$bo : '',
|
|
298
298
|
onChange: handleChangeInput,
|
|
299
299
|
ref: register({
|
|
300
300
|
required: t('VALIDATION_ERROR_REQUIRED', 'Name is required').replace('_attribute_', t('MESSAGE', 'Message'))
|
|
@@ -132,7 +132,7 @@ var RecoveryActionDetailUI = function RecoveryActionDetailUI(props) {
|
|
|
132
132
|
handleSelectOption(selectedOption);
|
|
133
133
|
}
|
|
134
134
|
}, [recoveryActionState.action]);
|
|
135
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.RecoveryActionDetailContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.LeftHeader, null, (((_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.name) || (recoveryActionState === null || recoveryActionState === void 0
|
|
135
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.RecoveryActionDetailContainer, null, /*#__PURE__*/_react.default.createElement(_styles2.DetailsHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.LeftHeader, null, (((_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.name) || (recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$ = recoveryActionState.action) === null || _recoveryActionState$ === void 0 ? void 0 : _recoveryActionState$.name)) && /*#__PURE__*/_react.default.createElement(_styles2.BusinessName, null, (_formState$changes$na = (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$2 = recoveryActionState.action) === null || _recoveryActionState$2 === void 0 ? void 0 : _recoveryActionState$2.name), /*#__PURE__*/_react.default.createElement(_styles.Switch, {
|
|
136
136
|
defaultChecked: typeof ((_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.enabled) !== 'undefined' ? (_formState$changes4 = formState.changes) === null || _formState$changes4 === void 0 ? void 0 : _formState$changes4.enabled : (_recoveryActionState$3 = (_recoveryActionState$4 = recoveryActionState.action) === null || _recoveryActionState$4 === void 0 ? void 0 : _recoveryActionState$4.enabled) !== null && _recoveryActionState$3 !== void 0 ? _recoveryActionState$3 : false,
|
|
137
137
|
onChange: function onChange(val) {
|
|
138
138
|
return handleChangeItem({
|
|
@@ -84,7 +84,7 @@ var RecoveryActionList = function RecoveryActionList(props) {
|
|
|
84
84
|
handleOpenDetail(action);
|
|
85
85
|
};
|
|
86
86
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.Table, {
|
|
87
|
-
isRelative: (recoveryActionList === null || recoveryActionList === void 0
|
|
87
|
+
isRelative: (recoveryActionList === null || recoveryActionList === void 0 || (_recoveryActionList$a = recoveryActionList.actions) === null || _recoveryActionList$a === void 0 ? void 0 : _recoveryActionList$a.length) > 5
|
|
88
88
|
}, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", null, t('ACTION', 'Action')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.description) && /*#__PURE__*/_react.default.createElement("th", null, t('DESCRIPTION', 'Description')), /*#__PURE__*/_react.default.createElement("th", {
|
|
89
89
|
className: "allow-colums action"
|
|
90
90
|
}, /*#__PURE__*/_react.default.createElement(_Shared.ColumnAllowSettingPopover, {
|
|
@@ -161,7 +161,7 @@ var RecoveryActionList = function RecoveryActionList(props) {
|
|
|
161
161
|
onClick: function onClick() {
|
|
162
162
|
return handleOpenDetail({});
|
|
163
163
|
}
|
|
164
|
-
}, t('ADD_NEW_RECOVERY_ACTION', 'Add new recovery action')), (recoveryActionList === null || recoveryActionList === void 0
|
|
164
|
+
}, t('ADD_NEW_RECOVERY_ACTION', 'Add new recovery action')), (recoveryActionList === null || recoveryActionList === void 0 || (_recoveryActionList$a2 = recoveryActionList.actions) === null || _recoveryActionList$a2 === void 0 ? void 0 : _recoveryActionList$a2.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
|
|
165
165
|
currentPage: paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.currentPage,
|
|
166
166
|
totalPages: paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.totalPages,
|
|
167
167
|
handleChangePage: handleChangePage,
|
|
@@ -129,12 +129,12 @@ var RecoveryGeneral = function RecoveryGeneral(props) {
|
|
|
129
129
|
var _recoveryActionState$, _recoveryActionState$2, _recoveryActionState$3, _recoveryActionState$4, _recoveryActionState$5, _recoveryActionState$6, _recoveryActionState$7, _recoveryActionState$8;
|
|
130
130
|
setTimeList();
|
|
131
131
|
setCurPreorderTime({
|
|
132
|
-
hour: recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$ = recoveryActionState.action) !== null && _recoveryActionState$ !== void 0 && _recoveryActionState$.times ? parseInt((recoveryActionState === null || recoveryActionState === void 0
|
|
133
|
-
minute: recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$3 = recoveryActionState.action) !== null && _recoveryActionState$3 !== void 0 && _recoveryActionState$3.times ? parseInt((recoveryActionState === null || recoveryActionState === void 0
|
|
134
|
-
second: recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$5 = recoveryActionState.action) !== null && _recoveryActionState$5 !== void 0 && _recoveryActionState$5.times ? (recoveryActionState === null || recoveryActionState === void 0
|
|
132
|
+
hour: recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$ = recoveryActionState.action) !== null && _recoveryActionState$ !== void 0 && _recoveryActionState$.times ? parseInt((recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$2 = recoveryActionState.action) === null || _recoveryActionState$2 === void 0 ? void 0 : _recoveryActionState$2.times[0]) / 3600) : '0',
|
|
133
|
+
minute: recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$3 = recoveryActionState.action) !== null && _recoveryActionState$3 !== void 0 && _recoveryActionState$3.times ? parseInt((recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$4 = recoveryActionState.action) === null || _recoveryActionState$4 === void 0 ? void 0 : _recoveryActionState$4.times[0]) % 3600 / 60) : '0',
|
|
134
|
+
second: recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$5 = recoveryActionState.action) !== null && _recoveryActionState$5 !== void 0 && _recoveryActionState$5.times ? (recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$6 = recoveryActionState.action) === null || _recoveryActionState$6 === void 0 ? void 0 : _recoveryActionState$6.times[0]) % 3600 % 60 : '0'
|
|
135
135
|
});
|
|
136
136
|
if (!(recoveryActionState !== null && recoveryActionState !== void 0 && (_recoveryActionState$7 = recoveryActionState.action) !== null && _recoveryActionState$7 !== void 0 && _recoveryActionState$7.times)) return;
|
|
137
|
-
if ((recoveryActionState === null || recoveryActionState === void 0
|
|
137
|
+
if ((recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$8 = recoveryActionState.action) === null || _recoveryActionState$8 === void 0 ? void 0 : _recoveryActionState$8.times[0]) / 3600 < 24) {
|
|
138
138
|
setIsTime(true);
|
|
139
139
|
} else {
|
|
140
140
|
setIsTime(false);
|
|
@@ -145,7 +145,7 @@ var RecoveryGeneral = function RecoveryGeneral(props) {
|
|
|
145
145
|
name: "name",
|
|
146
146
|
type: "text",
|
|
147
147
|
placeholder: t('NAME', 'name'),
|
|
148
|
-
value: (_ref = (_formState$changes$na = formState === null || formState === void 0
|
|
148
|
+
value: (_ref = (_formState$changes$na = formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 ? void 0 : _formState$changes.name) !== null && _formState$changes$na !== void 0 ? _formState$changes$na : recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$9 = recoveryActionState.action) === null || _recoveryActionState$9 === void 0 ? void 0 : _recoveryActionState$9.name) !== null && _ref !== void 0 ? _ref : '',
|
|
149
149
|
onChange: handleChangeInput,
|
|
150
150
|
disabled: formState.loading,
|
|
151
151
|
autoComplete: "off"
|
|
@@ -153,7 +153,7 @@ var RecoveryGeneral = function RecoveryGeneral(props) {
|
|
|
153
153
|
placeholder: t('WRITE_LITTLE_DESCRIPTION', 'Write a little description'),
|
|
154
154
|
name: "description",
|
|
155
155
|
rows: 3,
|
|
156
|
-
value: (_ref2 = (_formState$changes$de = formState === null || formState === void 0
|
|
156
|
+
value: (_ref2 = (_formState$changes$de = formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.description) !== null && _formState$changes$de !== void 0 ? _formState$changes$de : recoveryActionState === null || recoveryActionState === void 0 || (_recoveryActionState$10 = recoveryActionState.action) === null || _recoveryActionState$10 === void 0 ? void 0 : _recoveryActionState$10.description) !== null && _ref2 !== void 0 ? _ref2 : '',
|
|
157
157
|
onChange: handleChangeInput,
|
|
158
158
|
disabled: formState.loading,
|
|
159
159
|
autoComplete: "off"
|
|
@@ -131,14 +131,14 @@ var SingleRecoveryNotificationUI = function SingleRecoveryNotificationUI(props)
|
|
|
131
131
|
}, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
132
132
|
name: "title",
|
|
133
133
|
placeholder: t('TITLE', 'Title'),
|
|
134
|
-
defaultValue: formState !== null && formState !== void 0 && (_formState$changes2 = formState.changes) !== null && _formState$changes2 !== void 0 && _formState$changes2.title ? formState === null || formState === void 0
|
|
134
|
+
defaultValue: formState !== null && formState !== void 0 && (_formState$changes2 = formState.changes) !== null && _formState$changes2 !== void 0 && _formState$changes2.title ? formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.title : (_notification$title = notification === null || notification === void 0 ? void 0 : notification.title) !== null && _notification$title !== void 0 ? _notification$title : '',
|
|
135
135
|
ref: register({
|
|
136
136
|
required: t('VALIDATION_ERROR_REQUIRED').replace('_attribute_', t('TITLE', 'Title'))
|
|
137
137
|
}),
|
|
138
138
|
onChange: handleChangeInput
|
|
139
139
|
})), isAdd && /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('CHANNEL', 'Channel')), /*#__PURE__*/_react.default.createElement(_Select.Select, {
|
|
140
140
|
placeholder: placeholder,
|
|
141
|
-
defaultValue: formState !== null && formState !== void 0 && (_formState$changes4 = formState.changes) !== null && _formState$changes4 !== void 0 && _formState$changes4.channel ? formState === null || formState === void 0
|
|
141
|
+
defaultValue: formState !== null && formState !== void 0 && (_formState$changes4 = formState.changes) !== null && _formState$changes4 !== void 0 && _formState$changes4.channel ? formState === null || formState === void 0 || (_formState$changes5 = formState.changes) === null || _formState$changes5 === void 0 ? void 0 : _formState$changes5.channel : (_notification$channel = notification === null || notification === void 0 ? void 0 : notification.channel) !== null && _notification$channel !== void 0 ? _notification$channel : '',
|
|
142
142
|
options: channelList,
|
|
143
143
|
onChange: function onChange(val) {
|
|
144
144
|
setValue('body', '');
|
|
@@ -147,15 +147,15 @@ var SingleRecoveryNotificationUI = function SingleRecoveryNotificationUI(props)
|
|
|
147
147
|
body: ''
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGE', 'Message')), (formState === null || formState === void 0
|
|
151
|
-
body: formState !== null && formState !== void 0 && (_formState$changes7 = formState.changes) !== null && _formState$changes7 !== void 0 && _formState$changes7.body ? formState === null || formState === void 0
|
|
150
|
+
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGE', 'Message')), (formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.channel) === 'email' || (notification === null || notification === void 0 ? void 0 : notification.channel) === 'email' ? /*#__PURE__*/_react.default.createElement(_Shared.HtmlEditor, {
|
|
151
|
+
body: formState !== null && formState !== void 0 && (_formState$changes7 = formState.changes) !== null && _formState$changes7 !== void 0 && _formState$changes7.body ? formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.body : (_notification$body = notification === null || notification === void 0 ? void 0 : notification.body) !== null && _notification$body !== void 0 ? _notification$body : '',
|
|
152
152
|
handleChangeBody: function handleChangeBody(val) {
|
|
153
153
|
return handleChangeSelect('body', val);
|
|
154
154
|
}
|
|
155
155
|
}) : /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
156
156
|
name: "body",
|
|
157
157
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
158
|
-
defaultValue: formState !== null && formState !== void 0 && (_formState$changes9 = formState.changes) !== null && _formState$changes9 !== void 0 && _formState$changes9.body ? formState === null || formState === void 0
|
|
158
|
+
defaultValue: formState !== null && formState !== void 0 && (_formState$changes9 = formState.changes) !== null && _formState$changes9 !== void 0 && _formState$changes9.body ? formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.body : (_notification$body2 = notification === null || notification === void 0 ? void 0 : notification.body) !== null && _notification$body2 !== void 0 ? _notification$body2 : '',
|
|
159
159
|
onChange: handleChangeInput,
|
|
160
160
|
ref: register({
|
|
161
161
|
required: t('VALIDATION_ERROR_REQUIRED').replace('_attribute_', t('MESSAGE', 'Message'))
|
|
@@ -50,7 +50,7 @@ var inputNames = [{
|
|
|
50
50
|
code: 'Address notes'
|
|
51
51
|
}];
|
|
52
52
|
var AddressFormUI = function AddressFormUI(props) {
|
|
53
|
-
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$
|
|
53
|
+
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _addressState$address4, _formState$changes$lo, _formState$changes2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
|
|
54
54
|
var addressesList = props.addressesList,
|
|
55
55
|
googleMapsControls = props.googleMapsControls,
|
|
56
56
|
formState = props.formState,
|
|
@@ -83,7 +83,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
83
83
|
_useState2 = _slicedToArray(_useState, 2),
|
|
84
84
|
state = _useState2[0],
|
|
85
85
|
setState = _useState2[1];
|
|
86
|
-
var _useState3 = (0, _react.useState)(addressState === null || addressState === void 0
|
|
86
|
+
var _useState3 = (0, _react.useState)(addressState === null || addressState === void 0 || (_addressState$address = addressState.address) === null || _addressState$address === void 0 ? void 0 : _addressState$address.tag),
|
|
87
87
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
88
88
|
addressTag = _useState4[0],
|
|
89
89
|
setAddressTag = _useState4[1];
|
|
@@ -106,13 +106,13 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
106
106
|
firstLocationNoEdit = _useState10[0],
|
|
107
107
|
setFirstLocationNoEdit = _useState10[1];
|
|
108
108
|
var isEditing = !!((_addressState$address3 = addressState.address) !== null && _addressState$address3 !== void 0 && _addressState$address3.id);
|
|
109
|
-
var _useState11 = (0, _react.useState)(isEditing ? addressState === null || addressState === void 0
|
|
109
|
+
var _useState11 = (0, _react.useState)(isEditing ? addressState === null || addressState === void 0 || (_addressState$address4 = addressState.address) === null || _addressState$address4 === void 0 ? void 0 : _addressState$address4.location : (_formState$changes$lo = (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.location) !== null && _formState$changes$lo !== void 0 ? _formState$changes$lo : null),
|
|
110
110
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
111
111
|
locationChange = _useState12[0],
|
|
112
112
|
setLocationChange = _useState12[1];
|
|
113
|
-
var maxLimitLocation = parseInt(configState === null || configState === void 0
|
|
114
|
-
var googleMapsApiKey = configState === null || configState === void 0
|
|
115
|
-
var isLocationRequired = ((_configState$
|
|
113
|
+
var maxLimitLocation = parseInt(configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.meters_to_change_address) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value);
|
|
114
|
+
var googleMapsApiKey = configState === null || configState === void 0 || (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 || (_configState$configs2 = _configState$configs2.google_maps_api_key) === null || _configState$configs2 === void 0 ? void 0 : _configState$configs2.value;
|
|
115
|
+
var isLocationRequired = ((_configState$configs3 = configState.configs) === null || _configState$configs3 === void 0 || (_configState$configs3 = _configState$configs3.google_autocomplete_selection_required) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value) === '1' || ((_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 || (_configState$configs4 = _configState$configs4.google_autocomplete_selection_required) === null || _configState$configs4 === void 0 ? void 0 : _configState$configs4.value) === 'true';
|
|
116
116
|
var mapErrors = {
|
|
117
117
|
ERROR_NOT_FOUND_ADDRESS: 'Sorry, we couldn\'t find an address',
|
|
118
118
|
ERROR_MAX_LIMIT_LOCATION: "Sorry, You can only set the position to ".concat(maxLimitLocation, "m")
|
|
@@ -230,7 +230,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
230
230
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
231
231
|
while (1) switch (_context.prev = _context.next) {
|
|
232
232
|
case 0:
|
|
233
|
-
if (!(!auth && (formState === null || formState === void 0
|
|
233
|
+
if (!(!auth && (formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.address) === '' && addressState !== null && addressState !== void 0 && (_addressState$address6 = addressState.address) !== null && _addressState$address6 !== void 0 && _addressState$address6.address)) {
|
|
234
234
|
_context.next = 4;
|
|
235
235
|
break;
|
|
236
236
|
}
|
|
@@ -255,13 +255,13 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
255
255
|
});
|
|
256
256
|
return _context.abrupt("return");
|
|
257
257
|
case 8:
|
|
258
|
-
getAddressFormatted(formState === null || formState === void 0
|
|
258
|
+
getAddressFormatted(formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.address);
|
|
259
259
|
return _context.abrupt("return");
|
|
260
260
|
case 10:
|
|
261
261
|
// setToggleMap(false)
|
|
262
262
|
arrayList = isEditing ? (addressesList === null || addressesList === void 0 ? void 0 : addressesList.filter(function (address) {
|
|
263
263
|
var _addressState$address7;
|
|
264
|
-
return (address === null || address === void 0 ? void 0 : address.id) !== (addressState === null || addressState === void 0
|
|
264
|
+
return (address === null || address === void 0 ? void 0 : address.id) !== (addressState === null || addressState === void 0 || (_addressState$address7 = addressState.address) === null || _addressState$address7 === void 0 ? void 0 : _addressState$address7.id);
|
|
265
265
|
})) || [] : addressesList || [];
|
|
266
266
|
addressToCompare = isEditing ? _objectSpread(_objectSpread({}, addressState.address), formState.changes) : formState === null || formState === void 0 ? void 0 : formState.changes;
|
|
267
267
|
isAddressAlreadyExist = (_arrayList$map$some2 = arrayList.map(function (address) {
|
|
@@ -314,12 +314,12 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
314
314
|
(0, _react.useEffect)(function () {
|
|
315
315
|
var _formState$result, _ref5, _formState$changes$ad3, _formState$changes9, _addressState$address8, _ref6, _formState$changes$ad4, _formState$changes10, _addressState$address9;
|
|
316
316
|
if (!auth) {
|
|
317
|
-
var _ref3, _formState$changes$lo2, _formState$changes7, _orderState$options,
|
|
318
|
-
setLocationChange((_ref3 = (_formState$changes$lo2 = formState === null || formState === void 0
|
|
319
|
-
setAddressValue((_ref4 = (_formState$changes$ad2 = formState === null || formState === void 0
|
|
317
|
+
var _ref3, _formState$changes$lo2, _formState$changes7, _orderState$options, _ref4, _formState$changes$ad2, _formState$changes8, _orderState$options2;
|
|
318
|
+
setLocationChange((_ref3 = (_formState$changes$lo2 = formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.location) !== null && _formState$changes$lo2 !== void 0 ? _formState$changes$lo2 : orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 || (_orderState$options = _orderState$options.address) === null || _orderState$options === void 0 ? void 0 : _orderState$options.location) !== null && _ref3 !== void 0 ? _ref3 : '');
|
|
319
|
+
setAddressValue((_ref4 = (_formState$changes$ad2 = formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.address) !== null && _formState$changes$ad2 !== void 0 ? _formState$changes$ad2 : orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 || (_orderState$options2 = _orderState$options2.address) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.address) !== null && _ref4 !== void 0 ? _ref4 : '');
|
|
320
320
|
inputNames.forEach(function (field) {
|
|
321
321
|
var _orderState$options3, _orderState$options4;
|
|
322
|
-
return formMethods.setValue(field.name, (formState === null || formState === void 0 ? void 0 : formState.changes[field.name]) || (orderState === null || orderState === void 0
|
|
322
|
+
return formMethods.setValue(field.name, (formState === null || formState === void 0 ? void 0 : formState.changes[field.name]) || (orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.address) && (orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.address[field.name]) || '');
|
|
323
323
|
});
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
@@ -330,37 +330,37 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
330
330
|
content: ((_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result) || [t('ERROR', 'Error')]
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
setAddressValue((_ref5 = (_formState$changes$ad3 = formState === null || formState === void 0
|
|
334
|
-
formMethods.setValue('address', (_ref6 = (_formState$changes$ad4 = formState === null || formState === void 0
|
|
333
|
+
setAddressValue((_ref5 = (_formState$changes$ad3 = formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.address) !== null && _formState$changes$ad3 !== void 0 ? _formState$changes$ad3 : (_addressState$address8 = addressState.address) === null || _addressState$address8 === void 0 ? void 0 : _addressState$address8.address) !== null && _ref5 !== void 0 ? _ref5 : '');
|
|
334
|
+
formMethods.setValue('address', (_ref6 = (_formState$changes$ad4 = formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.address) !== null && _formState$changes$ad4 !== void 0 ? _formState$changes$ad4 : (_addressState$address9 = addressState.address) === null || _addressState$address9 === void 0 ? void 0 : _addressState$address9.address) !== null && _ref6 !== void 0 ? _ref6 : '');
|
|
335
335
|
if (!isEditing) {
|
|
336
|
-
var _formState$changes11, _formState$changes12, _formState$changes13, _formState$changes14, _formState$changes15, _formState$changes16,
|
|
336
|
+
var _formState$changes11, _formState$changes12, _formState$changes13, _formState$changes14, _formState$changes15, _formState$changes16, _firstLocationNoEdit$, _formState$changes17, _firstLocationNoEdit$2;
|
|
337
337
|
inputNames.forEach(function (field) {
|
|
338
338
|
return formMethods.setValue(field.name, (formState === null || formState === void 0 ? void 0 : formState.changes[field.name]) || '');
|
|
339
339
|
});
|
|
340
|
-
(formState === null || formState === void 0
|
|
341
|
-
if (formState !== null && formState !== void 0 && (_formState$changes13 = formState.changes) !== null && _formState$changes13 !== void 0 && _formState$changes13.address && (formState === null || formState === void 0
|
|
340
|
+
(formState === null || formState === void 0 || (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.address) && setLocationChange(formState === null || formState === void 0 || (_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.location);
|
|
341
|
+
if (formState !== null && formState !== void 0 && (_formState$changes13 = formState.changes) !== null && _formState$changes13 !== void 0 && _formState$changes13.address && (formState === null || formState === void 0 || (_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.address) !== (firstLocationNoEdit === null || firstLocationNoEdit === void 0 ? void 0 : firstLocationNoEdit.address) && formState !== null && formState !== void 0 && (_formState$changes15 = formState.changes) !== null && _formState$changes15 !== void 0 && _formState$changes15.location && (formState === null || formState === void 0 || (_formState$changes16 = formState.changes) === null || _formState$changes16 === void 0 || (_formState$changes16 = _formState$changes16.location) === null || _formState$changes16 === void 0 ? void 0 : _formState$changes16.lat) !== ((_firstLocationNoEdit$ = firstLocationNoEdit.value) === null || _firstLocationNoEdit$ === void 0 ? void 0 : _firstLocationNoEdit$.lat) && (formState === null || formState === void 0 || (_formState$changes17 = formState.changes) === null || _formState$changes17 === void 0 || (_formState$changes17 = _formState$changes17.location) === null || _formState$changes17 === void 0 ? void 0 : _formState$changes17.lng) !== ((_firstLocationNoEdit$2 = firstLocationNoEdit.value) === null || _firstLocationNoEdit$2 === void 0 ? void 0 : _firstLocationNoEdit$2.lng)) {
|
|
342
342
|
var _formState$changes18, _formState$changes19;
|
|
343
343
|
setFirstLocationNoEdit({
|
|
344
|
-
value: formState === null || formState === void 0
|
|
345
|
-
address: formState === null || formState === void 0
|
|
344
|
+
value: formState === null || formState === void 0 || (_formState$changes18 = formState.changes) === null || _formState$changes18 === void 0 ? void 0 : _formState$changes18.location,
|
|
345
|
+
address: formState === null || formState === void 0 || (_formState$changes19 = formState.changes) === null || _formState$changes19 === void 0 ? void 0 : _formState$changes19.address
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
if (isEditing) {
|
|
350
350
|
var _formState$changes20;
|
|
351
351
|
if (formState !== null && formState !== void 0 && (_formState$changes20 = formState.changes) !== null && _formState$changes20 !== void 0 && _formState$changes20.location) {
|
|
352
|
-
var _formState$changes21, _formState$
|
|
352
|
+
var _formState$changes21, _formState$changes22;
|
|
353
353
|
var prevLocation = {
|
|
354
354
|
lat: Math.trunc(locationChange.lat),
|
|
355
355
|
lng: Math.trunc(locationChange.lng)
|
|
356
356
|
};
|
|
357
357
|
var newLocation = {
|
|
358
|
-
lat: Math.trunc(formState === null || formState === void 0
|
|
359
|
-
lng: Math.trunc(formState === null || formState === void 0
|
|
358
|
+
lat: Math.trunc(formState === null || formState === void 0 || (_formState$changes21 = formState.changes) === null || _formState$changes21 === void 0 || (_formState$changes21 = _formState$changes21.location) === null || _formState$changes21 === void 0 ? void 0 : _formState$changes21.lat),
|
|
359
|
+
lng: Math.trunc(formState === null || formState === void 0 || (_formState$changes22 = formState.changes) === null || _formState$changes22 === void 0 || (_formState$changes22 = _formState$changes22.location) === null || _formState$changes22 === void 0 ? void 0 : _formState$changes22.lng)
|
|
360
360
|
};
|
|
361
361
|
if (prevLocation.lat !== newLocation.lat && prevLocation.lng !== newLocation.lng) {
|
|
362
362
|
var _formState$changes23;
|
|
363
|
-
setLocationChange(formState === null || formState === void 0
|
|
363
|
+
setLocationChange(formState === null || formState === void 0 || (_formState$changes23 = formState.changes) === null || _formState$changes23 === void 0 ? void 0 : _formState$changes23.location);
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -376,8 +376,8 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
376
376
|
}, [addressState]);
|
|
377
377
|
(0, _react.useEffect)(function () {
|
|
378
378
|
if (!auth) {
|
|
379
|
-
var _ref7, _formState$changes$lo3, _formState$changes24, _orderState$options5
|
|
380
|
-
setLocationChange((_ref7 = (_formState$changes$lo3 = formState === null || formState === void 0
|
|
379
|
+
var _ref7, _formState$changes$lo3, _formState$changes24, _orderState$options5;
|
|
380
|
+
setLocationChange((_ref7 = (_formState$changes$lo3 = formState === null || formState === void 0 || (_formState$changes24 = formState.changes) === null || _formState$changes24 === void 0 ? void 0 : _formState$changes24.location) !== null && _formState$changes$lo3 !== void 0 ? _formState$changes$lo3 : orderState === null || orderState === void 0 || (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0 || (_orderState$options5 = _orderState$options5.address) === null || _orderState$options5 === void 0 ? void 0 : _orderState$options5.location) !== null && _ref7 !== void 0 ? _ref7 : '');
|
|
381
381
|
}
|
|
382
382
|
return function () {
|
|
383
383
|
setFirstLocationNoEdit({
|
|
@@ -449,7 +449,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
449
449
|
setErrors: setMapErrors,
|
|
450
450
|
maxLimitLocation: maxLimitLocation
|
|
451
451
|
})), inputNames.map(function (field) {
|
|
452
|
-
var _configState$
|
|
452
|
+
var _configState$configs5, _ref8, _formState$changes$fi, _formState$changes25, _addressState$address11, _ref9, _formState$changes$ad5, _formState$changes26;
|
|
453
453
|
return showField && showField(field.name) && (field.name === 'address' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
454
454
|
key: field.name
|
|
455
455
|
}, /*#__PURE__*/_react.default.createElement(_styles2.InputText, null, t('ADDRESS', 'Addresss')), /*#__PURE__*/_react.default.createElement(_styles2.AddressWrap, {
|
|
@@ -473,7 +473,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
473
473
|
},
|
|
474
474
|
value: addressValue,
|
|
475
475
|
autoComplete: "new-password",
|
|
476
|
-
countryCode: (configState === null || configState === void 0
|
|
476
|
+
countryCode: (configState === null || configState === void 0 || (_configState$configs5 = configState.configs) === null || _configState$configs5 === void 0 || (_configState$configs5 = _configState$configs5.country_autocomplete) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) || '*'
|
|
477
477
|
})), /*#__PURE__*/_react.default.createElement(_GoogleGpsButton.GoogleGpsButton, {
|
|
478
478
|
className: "gps-button",
|
|
479
479
|
apiKey: googleMapsApiKey,
|
|
@@ -562,7 +562,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
562
562
|
borderRadius: "5px",
|
|
563
563
|
disabled: formState.loading || Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes).length === 0,
|
|
564
564
|
color: "primary"
|
|
565
|
-
}, !formState.loading ? isEditing || !auth && (_orderState$options6 = orderState.options) !== null && _orderState$options6 !== void 0 && (_orderState$options6
|
|
565
|
+
}, !formState.loading ? isEditing || !auth && (_orderState$options6 = orderState.options) !== null && _orderState$options6 !== void 0 && (_orderState$options6 = _orderState$options6.address) !== null && _orderState$options6 !== void 0 && _orderState$options6.address ? t('SAVE', 'SAVE') : t('ADD', 'Add') : t('LOADING', 'Loading')))), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
|
|
566
566
|
title: t('ADDRESS', 'Address'),
|
|
567
567
|
content: alertState.content,
|
|
568
568
|
acceptText: t('ACCEPT', 'Accept'),
|
|
@@ -33,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
33
33
|
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; } }
|
|
34
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
35
35
|
var AddressListUI = function AddressListUI(props) {
|
|
36
|
-
var _addressList$addresse, _addressList$addresse2, _orderState$options6, _addressList$addresse3, _theme$images,
|
|
36
|
+
var _addressList$addresse, _addressList$addresse2, _orderState$options6, _addressList$addresse3, _theme$images, _addressList$error$, _orderState$options7, _orderState$options8;
|
|
37
37
|
var actionStatus = props.actionStatus,
|
|
38
38
|
addressList = props.addressList,
|
|
39
39
|
handleDelete = props.handleDelete,
|
|
@@ -145,15 +145,15 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
145
145
|
props.forEach(function (prop) {
|
|
146
146
|
if (address !== null && address !== void 0 && address[prop]) {
|
|
147
147
|
if (prop === 'location') {
|
|
148
|
-
var _orderState$options, _orderState$
|
|
149
|
-
values.push((address === null || address === void 0 ? void 0 : address[prop].lat) === (orderState === null || orderState === void 0
|
|
148
|
+
var _orderState$options, _orderState$options2;
|
|
149
|
+
values.push((address === null || address === void 0 ? void 0 : address[prop].lat) === (orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 || (_orderState$options = _orderState$options.address) === null || _orderState$options === void 0 || (_orderState$options = _orderState$options[prop]) === null || _orderState$options === void 0 ? void 0 : _orderState$options.lat) && (address === null || address === void 0 ? void 0 : address[prop].lng) === (orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 || (_orderState$options2 = _orderState$options2.address) === null || _orderState$options2 === void 0 || (_orderState$options2 = _orderState$options2[prop]) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.lng));
|
|
150
150
|
} else {
|
|
151
|
-
var _orderState$options3
|
|
152
|
-
values.push((address === null || address === void 0 ? void 0 : address[prop]) === (orderState === null || orderState === void 0
|
|
151
|
+
var _orderState$options3;
|
|
152
|
+
values.push((address === null || address === void 0 ? void 0 : address[prop]) === (orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 || (_orderState$options3 = _orderState$options3.address) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3[prop]));
|
|
153
153
|
}
|
|
154
154
|
} else {
|
|
155
|
-
var _orderState$options4, _orderState$
|
|
156
|
-
values.push((orderState === null || orderState === void 0
|
|
155
|
+
var _orderState$options4, _orderState$options5;
|
|
156
|
+
values.push((orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 || (_orderState$options4 = _orderState$options4.address) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4[prop]) === null || (orderState === null || orderState === void 0 || (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0 || (_orderState$options5 = _orderState$options5.address) === null || _orderState$options5 === void 0 ? void 0 : _orderState$options5[prop]) === '');
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
return values.every(function (value) {
|
|
@@ -190,12 +190,12 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
190
190
|
}, (!isPopover || !addressOpen) && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
191
191
|
borderRadius: "8px",
|
|
192
192
|
className: "add",
|
|
193
|
-
color: isEnableContinueButton && (addressList === null || addressList === void 0
|
|
193
|
+
color: isEnableContinueButton && (addressList === null || addressList === void 0 || (_addressList$addresse = addressList.addresses) === null || _addressList$addresse === void 0 ? void 0 : _addressList$addresse.length) > 0 ? 'secondary' : 'lightPrimary',
|
|
194
194
|
onClick: function onClick() {
|
|
195
195
|
return openAddress({});
|
|
196
196
|
},
|
|
197
197
|
disabled: (orderState === null || orderState === void 0 ? void 0 : orderState.loading) || actionStatus.loading
|
|
198
|
-
}, orderState !== null && orderState !== void 0 && orderState.loading || actionStatus.loading ? t('LOADING', 'Loading') : t('ADD_NEW_ADDRESS', 'Add new address')), !addressList.loading && !actionStatus.loading && !orderState.loading && !addressList.error && (addressList === null || addressList === void 0
|
|
198
|
+
}, orderState !== null && orderState !== void 0 && orderState.loading || actionStatus.loading ? t('LOADING', 'Loading') : t('ADD_NEW_ADDRESS', 'Add new address')), !addressList.loading && !actionStatus.loading && !orderState.loading && !addressList.error && (addressList === null || addressList === void 0 || (_addressList$addresse2 = addressList.addresses) === null || _addressList$addresse2 === void 0 ? void 0 : _addressList$addresse2.length) > 0 && _typeof((_orderState$options6 = orderState.options) === null || _orderState$options6 === void 0 ? void 0 : _orderState$options6.address) === 'object' && (!addressOpen && isPopover || isModal || isSeletectedUserAddresses) && /*#__PURE__*/_react.default.createElement(_styles.AddressListUl, {
|
|
199
199
|
id: "list"
|
|
200
200
|
}, uniqueAddressesList.map(function (address) {
|
|
201
201
|
return /*#__PURE__*/_react.default.createElement(_styles.AddressItem, {
|
|
@@ -235,8 +235,8 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
235
235
|
return handleSetAddress(address);
|
|
236
236
|
}
|
|
237
237
|
}, t('CONTINUE_WITH', 'Continue with'), ": ", address.address));
|
|
238
|
-
})), !(addressList.loading || actionStatus.loading || orderState.loading) && !addressList.error && (addressList === null || addressList === void 0
|
|
239
|
-
src: (_theme$images = theme.images) === null || _theme$images === void 0
|
|
238
|
+
})), !(addressList.loading || actionStatus.loading || orderState.loading) && !addressList.error && (addressList === null || addressList === void 0 || (_addressList$addresse3 = addressList.addresses) === null || _addressList$addresse3 === void 0 ? void 0 : _addressList$addresse3.length) === 0 && !isProductForm && /*#__PURE__*/_react.default.createElement(_styles.WrappNotAddresses, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
239
|
+
src: (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.general) === null || _theme$images === void 0 ? void 0 : _theme$images.notFound,
|
|
240
240
|
alt: "Not Found",
|
|
241
241
|
width: "200px",
|
|
242
242
|
height: "112px",
|
|
@@ -59,7 +59,7 @@ var DriverGroupSettingUI = function DriverGroupSettingUI(props) {
|
|
|
59
59
|
if (searchValue) {
|
|
60
60
|
_filteredGroups = driversGroupsState.groups.filter(function (group) {
|
|
61
61
|
var _group$name;
|
|
62
|
-
return group === null || group === void 0
|
|
62
|
+
return group === null || group === void 0 || (_group$name = group.name) === null || _group$name === void 0 ? void 0 : _group$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
|
|
63
63
|
});
|
|
64
64
|
} else {
|
|
65
65
|
_filteredGroups = _toConsumableArray(driversGroupsState.groups);
|
|
@@ -44,7 +44,7 @@ var BusinessesForm = function BusinessesForm(props) {
|
|
|
44
44
|
if (searchValue) {
|
|
45
45
|
_filteredBusinesses = businesses.filter(function (business) {
|
|
46
46
|
var _business$name;
|
|
47
|
-
return business === null || business === void 0
|
|
47
|
+
return business === null || business === void 0 || (_business$name = business.name) === null || _business$name === void 0 ? void 0 : _business$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
|
|
48
48
|
});
|
|
49
49
|
} else {
|
|
50
50
|
_filteredBusinesses = _toConsumableArray(businesses);
|
|
@@ -44,7 +44,7 @@ var PaymethodsForm = function PaymethodsForm(props) {
|
|
|
44
44
|
if (searchValue) {
|
|
45
45
|
_filteredPaymethods = paymethods.filter(function (paymethod) {
|
|
46
46
|
var _paymethod$name;
|
|
47
|
-
return paymethod === null || paymethod === void 0
|
|
47
|
+
return paymethod === null || paymethod === void 0 || (_paymethod$name = paymethod.name) === null || _paymethod$name === void 0 ? void 0 : _paymethod$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
|
|
48
48
|
});
|
|
49
49
|
} else {
|
|
50
50
|
_filteredPaymethods = _toConsumableArray(paymethods);
|
|
@@ -81,7 +81,7 @@ var PaymethodsForm = function PaymethodsForm(props) {
|
|
|
81
81
|
onChange: function onChange(e) {
|
|
82
82
|
return handleSelectPaymethod(paymethod.id, e.target.checked);
|
|
83
83
|
}
|
|
84
|
-
}), /*#__PURE__*/_react.default.createElement("p", null, t(paymethod === null || paymethod === void 0
|
|
84
|
+
}), /*#__PURE__*/_react.default.createElement("p", null, t(paymethod === null || paymethod === void 0 || (_paymethod$gateway = paymethod.gateway) === null || _paymethod$gateway === void 0 ? void 0 : _paymethod$gateway.toUpperCase(), paymethod === null || paymethod === void 0 ? void 0 : paymethod.name)));
|
|
85
85
|
}))));
|
|
86
86
|
};
|
|
87
87
|
exports.PaymethodsForm = PaymethodsForm;
|
|
@@ -29,7 +29,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
29
29
|
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; } }
|
|
30
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
31
|
var DriversGroupAddFormUI = function DriversGroupAddFormUI(props) {
|
|
32
|
-
var _configState$configs
|
|
32
|
+
var _configState$configs;
|
|
33
33
|
var actionState = props.actionState,
|
|
34
34
|
changesState = props.changesState,
|
|
35
35
|
handleAddDriversGroup = props.handleAddDriversGroup;
|
|
@@ -40,7 +40,7 @@ var DriversGroupAddFormUI = function DriversGroupAddFormUI(props) {
|
|
|
40
40
|
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
41
41
|
configState = _useConfig2[0];
|
|
42
42
|
var formMethods = (0, _reactHookForm.useForm)();
|
|
43
|
-
var autoAssignType = configState === null || configState === void 0
|
|
43
|
+
var autoAssignType = configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.autoassign_type) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value;
|
|
44
44
|
var _useState = (0, _react.useState)({
|
|
45
45
|
open: false,
|
|
46
46
|
content: []
|
|
@@ -52,7 +52,7 @@ var DriversGroupBusinesses = function DriversGroupBusinesses(props) {
|
|
|
52
52
|
if (searchValue) {
|
|
53
53
|
_filteredBusinesses = businesses.filter(function (business) {
|
|
54
54
|
var _business$name;
|
|
55
|
-
return business === null || business === void 0
|
|
55
|
+
return business === null || business === void 0 || (_business$name = business.name) === null || _business$name === void 0 ? void 0 : _business$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
|
|
56
56
|
});
|
|
57
57
|
} else {
|
|
58
58
|
_filteredBusinesses = _toConsumableArray(businesses);
|
|
@@ -44,7 +44,7 @@ var DriversGroupCompanies = function DriversGroupCompanies(props) {
|
|
|
44
44
|
if (searchValue) {
|
|
45
45
|
_filteredCompanies = companies.filter(function (company) {
|
|
46
46
|
var _company$name;
|
|
47
|
-
return company === null || company === void 0
|
|
47
|
+
return company === null || company === void 0 || (_company$name = company.name) === null || _company$name === void 0 ? void 0 : _company$name.toLowerCase().includes(searchValue === null || searchValue === void 0 ? void 0 : searchValue.toLowerCase());
|
|
48
48
|
});
|
|
49
49
|
} else {
|
|
50
50
|
_filteredCompanies = _toConsumableArray(companies);
|
|
@@ -76,7 +76,7 @@ var DriverGroupDeliveryDetailsUI = function DriverGroupDeliveryDetailsUI(props)
|
|
|
76
76
|
}), /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
77
77
|
borderRadius: "8px",
|
|
78
78
|
color: "primary",
|
|
79
|
-
disabled: (actionState === null || actionState === void 0 ? void 0 : actionState.loading) || (Object === null || Object === void 0
|
|
79
|
+
disabled: (actionState === null || actionState === void 0 ? void 0 : actionState.loading) || (Object === null || Object === void 0 || (_Object$keys = Object.keys(formState === null || formState === void 0 ? void 0 : formState.changes)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) === 0 && !(zoneListState !== null && zoneListState !== void 0 && zoneListState.isDirty),
|
|
80
80
|
onClick: function onClick() {
|
|
81
81
|
return onDeliveryStateSave();
|
|
82
82
|
}
|