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
|
@@ -42,7 +42,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
42
42
|
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; } }
|
|
43
43
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
44
44
|
var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
45
|
-
var _contactState$
|
|
45
|
+
var _contactState$changes3, _contactState$changes4, _contactState$changes5, _contactState$changes8, _contactState$changes9;
|
|
46
46
|
var isAddMode = props.isAddMode,
|
|
47
47
|
contactState = props.contactState,
|
|
48
48
|
handleChangeData = props.handleChangeData,
|
|
@@ -86,7 +86,7 @@ var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
|
86
86
|
var generalList = ['email_smtp_use_default', 'email_smtp_host', 'email_smtp_username', 'email_smtp_password', 'email_smtp_encryption', 'email_smtp_port'];
|
|
87
87
|
var isEnableConfig = (0, _react.useMemo)(function () {
|
|
88
88
|
var _category$configs;
|
|
89
|
-
return category === null || category === void 0
|
|
89
|
+
return category === null || category === void 0 || (_category$configs = category.configs) === null || _category$configs === void 0 ? void 0 : _category$configs.filter(function (config) {
|
|
90
90
|
return generalList.includes(config.key);
|
|
91
91
|
}).every(function (config) {
|
|
92
92
|
return !!(config !== null && config !== void 0 && config.value);
|
|
@@ -103,15 +103,15 @@ var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
|
103
103
|
});
|
|
104
104
|
};
|
|
105
105
|
var handleSaveEmail = function handleSaveEmail() {
|
|
106
|
-
var _contactState$changes, _contactState$changes2
|
|
107
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$
|
|
106
|
+
var _contactState$changes, _contactState$changes2;
|
|
107
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$changes = _contactState$changes.contact_data) !== null && _contactState$changes !== void 0 && _contactState$changes.title)) {
|
|
108
108
|
setAlertState({
|
|
109
109
|
open: true,
|
|
110
110
|
content: t('VALIDATION_ERROR_REQUIRED', 'Title is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
111
111
|
});
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
114
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes2 = contactState.changes) !== null && _contactState$changes2 !== void 0 && (_contactState$changes2 = _contactState$changes2.contact_data) !== null && _contactState$changes2 !== void 0 && _contactState$changes2.body)) {
|
|
115
115
|
setAlertState({
|
|
116
116
|
open: true,
|
|
117
117
|
content: t('VALIDATION_ERROR_REQUIRED', 'Body is required').replace('_attribute_', t('BODY', 'Body'))
|
|
@@ -119,10 +119,10 @@ var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
if (isAddMode) {
|
|
122
|
-
var _formState$changes
|
|
123
|
-
if ((formState === null || formState === void 0
|
|
122
|
+
var _formState$changes;
|
|
123
|
+
if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0) {
|
|
124
124
|
var _formState$changes2;
|
|
125
|
-
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0
|
|
125
|
+
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions),
|
|
126
126
|
_step;
|
|
127
127
|
try {
|
|
128
128
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -190,7 +190,7 @@ var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
|
190
190
|
}, [emailBody]);
|
|
191
191
|
(0, _react.useEffect)(function () {
|
|
192
192
|
var _categoryList$categor;
|
|
193
|
-
if ((categoryList === null || categoryList === void 0
|
|
193
|
+
if ((categoryList === null || categoryList === void 0 || (_categoryList$categor = categoryList.categories) === null || _categoryList$categor === void 0 ? void 0 : _categoryList$categor.length) > 0) {
|
|
194
194
|
var selectedCategory = categoryList === null || categoryList === void 0 ? void 0 : categoryList.categories.find(function (item) {
|
|
195
195
|
return item.key === 'email_configs';
|
|
196
196
|
});
|
|
@@ -205,15 +205,15 @@ var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
|
205
205
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEnableConfig ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
206
206
|
name: "title",
|
|
207
207
|
placeholder: t('TITLE', 'Title'),
|
|
208
|
-
value: (contactState === null || contactState === void 0
|
|
208
|
+
value: (contactState === null || contactState === void 0 || (_contactState$changes3 = contactState.changes) === null || _contactState$changes3 === void 0 || (_contactState$changes3 = _contactState$changes3.contact_data) === null || _contactState$changes3 === void 0 ? void 0 : _contactState$changes3.title) || '',
|
|
209
209
|
onChange: handleChangeData
|
|
210
210
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGES', 'Messages')), /*#__PURE__*/_react.default.createElement(_styles2.WrapperEditor, null, /*#__PURE__*/_react.default.createElement(_reactSummernote.default, {
|
|
211
|
-
value: (_contactState$
|
|
211
|
+
value: (_contactState$changes4 = contactState === null || contactState === void 0 || (_contactState$changes5 = contactState.changes) === null || _contactState$changes5 === void 0 || (_contactState$changes5 = _contactState$changes5.contact_data) === null || _contactState$changes5 === void 0 ? void 0 : _contactState$changes5.body) !== null && _contactState$changes4 !== void 0 ? _contactState$changes4 : '<p><br></p>',
|
|
212
212
|
placeholder: t('EMAIL_CONTENT', 'Email content'),
|
|
213
213
|
onInit: function onInit(_ref) {
|
|
214
|
-
var _contactState$
|
|
214
|
+
var _contactState$changes6, _contactState$changes7;
|
|
215
215
|
var summernote = _ref.summernote;
|
|
216
|
-
return summernote('code', (_contactState$
|
|
216
|
+
return summernote('code', (_contactState$changes6 = contactState === null || contactState === void 0 || (_contactState$changes7 = contactState.changes) === null || _contactState$changes7 === void 0 || (_contactState$changes7 = _contactState$changes7.contact_data) === null || _contactState$changes7 === void 0 ? void 0 : _contactState$changes7.body) !== null && _contactState$changes6 !== void 0 ? _contactState$changes6 : '<p><br></p>');
|
|
217
217
|
},
|
|
218
218
|
options: {
|
|
219
219
|
height: 350,
|
|
@@ -230,9 +230,9 @@ var CampaignEmailUI = function CampaignEmailUI(props) {
|
|
|
230
230
|
onChange: function onChange(content) {
|
|
231
231
|
return setEmailBody(content);
|
|
232
232
|
}
|
|
233
|
-
}))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.PointGroup, null, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0
|
|
233
|
+
}))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.PointGroup, null, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0 || (_contactState$changes8 = contactState.changes) === null || _contactState$changes8 === void 0 || (_contactState$changes8 = _contactState$changes8.contact_data) === null || _contactState$changes8 === void 0 ? void 0 : _contactState$changes8.title) || ''), /*#__PURE__*/_react.default.createElement(_styles2.Preview, {
|
|
234
234
|
dangerouslySetInnerHTML: {
|
|
235
|
-
__html: (contactState === null || contactState === void 0
|
|
235
|
+
__html: (contactState === null || contactState === void 0 || (_contactState$changes9 = contactState.changes) === null || _contactState$changes9 === void 0 || (_contactState$changes9 = _contactState$changes9.contact_data) === null || _contactState$changes9 === void 0 ? void 0 : _contactState$changes9.body) || ''
|
|
236
236
|
}
|
|
237
237
|
})))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
238
238
|
color: "primary",
|
|
@@ -38,7 +38,7 @@ var CampaignHeader = function CampaignHeader(props) {
|
|
|
38
38
|
onClick: function onClick() {
|
|
39
39
|
return handleMenuCollapse(false);
|
|
40
40
|
}
|
|
41
|
-
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.List, null)), /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitle, null, t('CAMPAIGN', 'Campaign')), (sessionState === null || sessionState === void 0
|
|
41
|
+
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.List, null)), /*#__PURE__*/_react.default.createElement(_styles2.HeaderTitle, null, t('CAMPAIGN', 'Campaign')), (sessionState === null || sessionState === void 0 || (_sessionState$user = sessionState.user) === null || _sessionState$user === void 0 ? void 0 : _sessionState$user.level) === 0 && /*#__PURE__*/_react.default.createElement(_styles2.InfoWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.IconButton, {
|
|
42
42
|
color: "primary"
|
|
43
43
|
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.InfoCircle, null)), /*#__PURE__*/_react.default.createElement(_styles2.InfoContent, null, t('MARKETING_INFO', 'Create campaigns to reach your customer with news, offers and new products. Need help with the set-up? Contact our team here:'), /*#__PURE__*/_react.default.createElement("a", {
|
|
44
44
|
href: "https://www.ordering.co/support",
|
|
@@ -124,7 +124,7 @@ var CampaignList = function CampaignList(props) {
|
|
|
124
124
|
setOpenModal(true);
|
|
125
125
|
};
|
|
126
126
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.Table, {
|
|
127
|
-
isRelative: (campaignList === null || campaignList === void 0
|
|
127
|
+
isRelative: (campaignList === null || campaignList === void 0 || (_campaignList$campaig = campaignList.campaigns) === null || _campaignList$campaig === void 0 ? void 0 : _campaignList$campaig.length) > 5
|
|
128
128
|
}, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.campaign) && /*#__PURE__*/_react.default.createElement("th", null, t('CAMPAIGN', 'Campaign')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.contact_type) && /*#__PURE__*/_react.default.createElement("th", null, t('CONTACT_TYPE', 'Contact type')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.audience) && /*#__PURE__*/_react.default.createElement("th", null, t('AUDIENCE', 'Audience')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.in_queue) && /*#__PURE__*/_react.default.createElement("th", null, t('IN_QUEUE', 'In Queue')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.sent_count) && /*#__PURE__*/_react.default.createElement("th", null, t('SENT', 'Sent')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.open_count) && /*#__PURE__*/_react.default.createElement("th", null, t('OPENS', 'Opens')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.unsubscribed_count) && /*#__PURE__*/_react.default.createElement("th", null, t('UNSUBSCRIBED', 'Unsubscribed')), (allowColumns === null || allowColumns === void 0 ? void 0 : allowColumns.bounced_count) && /*#__PURE__*/_react.default.createElement("th", null, t('BOUNCES', 'Bounces')), /*#__PURE__*/_react.default.createElement("th", {
|
|
129
129
|
className: "allow-colums action"
|
|
130
130
|
}, /*#__PURE__*/_react.default.createElement(_Shared.ColumnAllowSettingPopover, {
|
|
@@ -203,7 +203,7 @@ var CampaignList = function CampaignList(props) {
|
|
|
203
203
|
onClick: function onClick() {
|
|
204
204
|
return handleOpenDetail({});
|
|
205
205
|
}
|
|
206
|
-
}, t('ADD_NEW_CAMPAIGN', 'Add new campaign')), (campaignList === null || campaignList === void 0
|
|
206
|
+
}, t('ADD_NEW_CAMPAIGN', 'Add new campaign')), (campaignList === null || campaignList === void 0 || (_campaignList$campaig2 = campaignList.campaigns) === null || _campaignList$campaig2 === void 0 ? void 0 : _campaignList$campaig2.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
|
|
207
207
|
currentPage: paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.currentPage,
|
|
208
208
|
totalPages: paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.totalPages,
|
|
209
209
|
handleChangePage: handleChangePage,
|
|
@@ -34,7 +34,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
34
34
|
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; } }
|
|
35
35
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
36
36
|
var CampaignNotification = function CampaignNotification(props) {
|
|
37
|
-
var _contactState$
|
|
37
|
+
var _contactState$changes3, _contactState$changes4, _contactState$changes5, _contactState$changes6;
|
|
38
38
|
var isAddMode = props.isAddMode,
|
|
39
39
|
contactState = props.contactState,
|
|
40
40
|
handleChangeData = props.handleChangeData,
|
|
@@ -60,7 +60,7 @@ var CampaignNotification = function CampaignNotification(props) {
|
|
|
60
60
|
var generalList = ['onesignal_user_auth', 'onesignal_orderingapp_id', 'onesignal_businessapp_id', 'onesignal_deliveryapp_id', 'notification_toast'];
|
|
61
61
|
var isEnableConfig = (0, _react.useMemo)(function () {
|
|
62
62
|
var _category$configs;
|
|
63
|
-
return category === null || category === void 0
|
|
63
|
+
return category === null || category === void 0 || (_category$configs = category.configs) === null || _category$configs === void 0 ? void 0 : _category$configs.filter(function (config) {
|
|
64
64
|
return generalList.includes(config.key);
|
|
65
65
|
}).every(function (config) {
|
|
66
66
|
return !!(config !== null && config !== void 0 && config.value);
|
|
@@ -73,15 +73,15 @@ var CampaignNotification = function CampaignNotification(props) {
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
var handleSaveNotification = function handleSaveNotification() {
|
|
76
|
-
var _contactState$changes, _contactState$changes2
|
|
77
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$
|
|
76
|
+
var _contactState$changes, _contactState$changes2;
|
|
77
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$changes = _contactState$changes.contact_data) !== null && _contactState$changes !== void 0 && _contactState$changes.title)) {
|
|
78
78
|
setAlertState({
|
|
79
79
|
open: true,
|
|
80
80
|
content: t('VALIDATION_ERROR_REQUIRED', 'Title is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
81
81
|
});
|
|
82
82
|
return;
|
|
83
83
|
}
|
|
84
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
84
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes2 = contactState.changes) !== null && _contactState$changes2 !== void 0 && (_contactState$changes2 = _contactState$changes2.contact_data) !== null && _contactState$changes2 !== void 0 && _contactState$changes2.body)) {
|
|
85
85
|
setAlertState({
|
|
86
86
|
open: true,
|
|
87
87
|
content: t('VALIDATION_ERROR_REQUIRED', 'Body is required').replace('_attribute_', t('BODY', 'Body'))
|
|
@@ -89,10 +89,10 @@ var CampaignNotification = function CampaignNotification(props) {
|
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
if (isAddMode) {
|
|
92
|
-
var _formState$changes
|
|
93
|
-
if ((formState === null || formState === void 0
|
|
92
|
+
var _formState$changes;
|
|
93
|
+
if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0) {
|
|
94
94
|
var _formState$changes2;
|
|
95
|
-
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0
|
|
95
|
+
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions),
|
|
96
96
|
_step;
|
|
97
97
|
try {
|
|
98
98
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -125,7 +125,7 @@ var CampaignNotification = function CampaignNotification(props) {
|
|
|
125
125
|
};
|
|
126
126
|
(0, _react.useEffect)(function () {
|
|
127
127
|
var _categoryList$categor;
|
|
128
|
-
if ((categoryList === null || categoryList === void 0
|
|
128
|
+
if ((categoryList === null || categoryList === void 0 || (_categoryList$categor = categoryList.categories) === null || _categoryList$categor === void 0 ? void 0 : _categoryList$categor.length) > 0) {
|
|
129
129
|
var selectedCategory = categoryList === null || categoryList === void 0 ? void 0 : categoryList.categories.find(function (item) {
|
|
130
130
|
return item.key === 'notification';
|
|
131
131
|
});
|
|
@@ -140,16 +140,16 @@ var CampaignNotification = function CampaignNotification(props) {
|
|
|
140
140
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEnableConfig ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
141
141
|
name: "title",
|
|
142
142
|
placeholder: t('TITLE', 'Title'),
|
|
143
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
143
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes3 = contactState.changes) === null || _contactState$changes3 === void 0 || (_contactState$changes3 = _contactState$changes3.contact_data) === null || _contactState$changes3 === void 0 ? void 0 : _contactState$changes3.title) || '',
|
|
144
144
|
onChange: handleChangeData
|
|
145
145
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGES', 'Messages')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
146
146
|
name: "body",
|
|
147
147
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
148
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
148
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes4 = contactState.changes) === null || _contactState$changes4 === void 0 || (_contactState$changes4 = _contactState$changes4.contact_data) === null || _contactState$changes4 === void 0 ? void 0 : _contactState$changes4.body) || '',
|
|
149
149
|
onChange: handleChangeData
|
|
150
150
|
})), /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsContentLayout, {
|
|
151
151
|
bgimage: theme.images.general.mobileHalfMask
|
|
152
|
-
}, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0
|
|
152
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0 || (_contactState$changes5 = contactState.changes) === null || _contactState$changes5 === void 0 || (_contactState$changes5 = _contactState$changes5.contact_data) === null || _contactState$changes5 === void 0 ? void 0 : _contactState$changes5.title) || ''), /*#__PURE__*/_react.default.createElement("p", null, (contactState === null || contactState === void 0 || (_contactState$changes6 = contactState.changes) === null || _contactState$changes6 === void 0 || (_contactState$changes6 = _contactState$changes6.contact_data) === null || _contactState$changes6 === void 0 ? void 0 : _contactState$changes6.body) || '')))))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
153
153
|
color: "primary",
|
|
154
154
|
onClick: function onClick() {
|
|
155
155
|
return handleSaveNotification();
|
|
@@ -21,7 +21,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
21
21
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
22
22
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
23
23
|
var CampaignPopup = function CampaignPopup(props) {
|
|
24
|
-
var _contactState$
|
|
24
|
+
var _contactState$changes3, _contactState$changes4, _contactState$changes5, _contactState$changes6;
|
|
25
25
|
var isAddMode = props.isAddMode,
|
|
26
26
|
contactState = props.contactState,
|
|
27
27
|
handleChangeData = props.handleChangeData,
|
|
@@ -45,15 +45,15 @@ var CampaignPopup = function CampaignPopup(props) {
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
var handleSaveNotification = function handleSaveNotification() {
|
|
48
|
-
var _contactState$changes, _contactState$changes2
|
|
49
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$
|
|
48
|
+
var _contactState$changes, _contactState$changes2;
|
|
49
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$changes = _contactState$changes.contact_data) !== null && _contactState$changes !== void 0 && _contactState$changes.title)) {
|
|
50
50
|
setAlertState({
|
|
51
51
|
open: true,
|
|
52
52
|
content: t('VALIDATION_ERROR_REQUIRED', 'Title is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
53
53
|
});
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
56
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes2 = contactState.changes) !== null && _contactState$changes2 !== void 0 && (_contactState$changes2 = _contactState$changes2.contact_data) !== null && _contactState$changes2 !== void 0 && _contactState$changes2.body)) {
|
|
57
57
|
setAlertState({
|
|
58
58
|
open: true,
|
|
59
59
|
content: t('VALIDATION_ERROR_REQUIRED', 'Body is required').replace('_attribute_', t('BODY', 'Body'))
|
|
@@ -61,10 +61,10 @@ var CampaignPopup = function CampaignPopup(props) {
|
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
63
63
|
if (isAddMode) {
|
|
64
|
-
var _formState$changes
|
|
65
|
-
if ((formState === null || formState === void 0
|
|
64
|
+
var _formState$changes;
|
|
65
|
+
if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0) {
|
|
66
66
|
var _formState$changes2;
|
|
67
|
-
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0
|
|
67
|
+
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions),
|
|
68
68
|
_step;
|
|
69
69
|
try {
|
|
70
70
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -98,14 +98,14 @@ var CampaignPopup = function CampaignPopup(props) {
|
|
|
98
98
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
99
99
|
name: "title",
|
|
100
100
|
placeholder: t('TITLE', 'Title'),
|
|
101
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
101
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes3 = contactState.changes) === null || _contactState$changes3 === void 0 || (_contactState$changes3 = _contactState$changes3.contact_data) === null || _contactState$changes3 === void 0 ? void 0 : _contactState$changes3.title) || '',
|
|
102
102
|
onChange: handleChangeData
|
|
103
103
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGES', 'Messages')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
104
104
|
name: "body",
|
|
105
105
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
106
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
106
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes4 = contactState.changes) === null || _contactState$changes4 === void 0 || (_contactState$changes4 = _contactState$changes4.contact_data) === null || _contactState$changes4 === void 0 ? void 0 : _contactState$changes4.body) || '',
|
|
107
107
|
onChange: handleChangeData
|
|
108
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.PointGroup, null, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewContent, null, /*#__PURE__*/_react.default.createElement(_styles2.PopupContent, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderWrapper, null, /*#__PURE__*/_react.default.createElement("h1", null, (contactState === null || contactState === void 0
|
|
108
|
+
})), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewHeader, null, /*#__PURE__*/_react.default.createElement(_styles2.PointGroup, null, /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null), /*#__PURE__*/_react.default.createElement("div", null))), /*#__PURE__*/_react.default.createElement(_styles2.EmailPreviewContent, null, /*#__PURE__*/_react.default.createElement(_styles2.PopupContent, null, /*#__PURE__*/_react.default.createElement(_styles2.HeaderWrapper, null, /*#__PURE__*/_react.default.createElement("h1", null, (contactState === null || contactState === void 0 || (_contactState$changes5 = contactState.changes) === null || _contactState$changes5 === void 0 || (_contactState$changes5 = _contactState$changes5.contact_data) === null || _contactState$changes5 === void 0 ? void 0 : _contactState$changes5.title) || ''), /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.X, null)), /*#__PURE__*/_react.default.createElement("p", null, (contactState === null || contactState === void 0 || (_contactState$changes6 = contactState.changes) === null || _contactState$changes6 === void 0 || (_contactState$changes6 = _contactState$changes6.contact_data) === null || _contactState$changes6 === void 0 ? void 0 : _contactState$changes6.body) || ''), /*#__PURE__*/_react.default.createElement(_styles2.PopupButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
109
109
|
color: "primary",
|
|
110
110
|
borderRadius: "8px"
|
|
111
111
|
}, t('DONE', 'Done'))))))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
@@ -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 CampaignSMS = function CampaignSMS(props) {
|
|
32
|
-
var _contactState$
|
|
32
|
+
var _contactState$changes3, _contactState$changes4, _contactState$changes5, _contactState$changes6;
|
|
33
33
|
var isAddMode = props.isAddMode,
|
|
34
34
|
contactState = props.contactState,
|
|
35
35
|
handleChangeData = props.handleChangeData,
|
|
@@ -53,7 +53,7 @@ var CampaignSMS = function CampaignSMS(props) {
|
|
|
53
53
|
});
|
|
54
54
|
var isEnableConfig = (0, _react.useMemo)(function () {
|
|
55
55
|
var _category$configs;
|
|
56
|
-
return category === null || category === void 0
|
|
56
|
+
return category === null || category === void 0 || (_category$configs = category.configs) === null || _category$configs === void 0 ? void 0 : _category$configs.every(function (config) {
|
|
57
57
|
return !!(config !== null && config !== void 0 && config.value);
|
|
58
58
|
});
|
|
59
59
|
}, [category]);
|
|
@@ -64,15 +64,15 @@ var CampaignSMS = function CampaignSMS(props) {
|
|
|
64
64
|
});
|
|
65
65
|
};
|
|
66
66
|
var handleSaveSms = function handleSaveSms() {
|
|
67
|
-
var _contactState$changes, _contactState$changes2
|
|
68
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$
|
|
67
|
+
var _contactState$changes, _contactState$changes2;
|
|
68
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$changes = _contactState$changes.contact_data) !== null && _contactState$changes !== void 0 && _contactState$changes.title)) {
|
|
69
69
|
setAlertState({
|
|
70
70
|
open: true,
|
|
71
71
|
content: t('VALIDATION_ERROR_REQUIRED', 'Title is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
72
72
|
});
|
|
73
73
|
return;
|
|
74
74
|
}
|
|
75
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
75
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes2 = contactState.changes) !== null && _contactState$changes2 !== void 0 && (_contactState$changes2 = _contactState$changes2.contact_data) !== null && _contactState$changes2 !== void 0 && _contactState$changes2.body)) {
|
|
76
76
|
setAlertState({
|
|
77
77
|
open: true,
|
|
78
78
|
content: t('VALIDATION_ERROR_REQUIRED', 'Body is required').replace('_attribute_', t('BODY', 'Body'))
|
|
@@ -80,10 +80,10 @@ var CampaignSMS = function CampaignSMS(props) {
|
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
if (isAddMode) {
|
|
83
|
-
var _formState$changes
|
|
84
|
-
if ((formState === null || formState === void 0
|
|
83
|
+
var _formState$changes;
|
|
84
|
+
if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0) {
|
|
85
85
|
var _formState$changes2;
|
|
86
|
-
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0
|
|
86
|
+
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions),
|
|
87
87
|
_step;
|
|
88
88
|
try {
|
|
89
89
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -117,16 +117,16 @@ var CampaignSMS = function CampaignSMS(props) {
|
|
|
117
117
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEnableConfig ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.Container, null, /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
118
118
|
name: "title",
|
|
119
119
|
placeholder: t('TITLE', 'Title'),
|
|
120
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
120
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes3 = contactState.changes) === null || _contactState$changes3 === void 0 || (_contactState$changes3 = _contactState$changes3.contact_data) === null || _contactState$changes3 === void 0 ? void 0 : _contactState$changes3.title) || '',
|
|
121
121
|
onChange: handleChangeData
|
|
122
122
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGES', 'Messages')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
123
123
|
name: "body",
|
|
124
124
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
125
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
125
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes4 = contactState.changes) === null || _contactState$changes4 === void 0 || (_contactState$changes4 = _contactState$changes4.contact_data) === null || _contactState$changes4 === void 0 ? void 0 : _contactState$changes4.body) || '',
|
|
126
126
|
onChange: handleChangeData
|
|
127
127
|
})), /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsContentLayout, {
|
|
128
128
|
bgimage: theme.images.general.mobileHalfMask
|
|
129
|
-
}, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0
|
|
129
|
+
}, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContentWrapper, null, /*#__PURE__*/_react.default.createElement(_styles2.SmsPreviewContent, null, /*#__PURE__*/_react.default.createElement("h2", null, (contactState === null || contactState === void 0 || (_contactState$changes5 = contactState.changes) === null || _contactState$changes5 === void 0 || (_contactState$changes5 = _contactState$changes5.contact_data) === null || _contactState$changes5 === void 0 ? void 0 : _contactState$changes5.title) || ''), /*#__PURE__*/_react.default.createElement("p", null, (contactState === null || contactState === void 0 || (_contactState$changes6 = contactState.changes) === null || _contactState$changes6 === void 0 || (_contactState$changes6 = _contactState$changes6.contact_data) === null || _contactState$changes6 === void 0 ? void 0 : _contactState$changes6.body) || '')))))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
130
130
|
color: "primary",
|
|
131
131
|
onClick: function onClick() {
|
|
132
132
|
return handleSaveSms();
|
|
@@ -83,7 +83,7 @@ var CampaignSignUpOptionUI = function CampaignSignUpOptionUI(props) {
|
|
|
83
83
|
});
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
|
-
if ((ruleFormState === null || ruleFormState === void 0
|
|
86
|
+
if ((ruleFormState === null || ruleFormState === void 0 || (_ruleFormState$change7 = ruleFormState.changes) === null || _ruleFormState$change7 === void 0 ? void 0 : _ruleFormState$change7.date) === (ruleFormState === null || ruleFormState === void 0 || (_ruleFormState$change8 = ruleFormState.changes) === null || _ruleFormState$change8 === void 0 ? void 0 : _ruleFormState$change8.max_date)) {
|
|
87
87
|
setAlertState({
|
|
88
88
|
open: true,
|
|
89
89
|
content: t('MAX_DATE_AFTER_DATE', 'The Max date must be a date after date')
|
|
@@ -91,7 +91,7 @@ var CampaignSignUpOptionUI = function CampaignSignUpOptionUI(props) {
|
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
if (isAddMode) {
|
|
94
|
-
var _formState$changes, _formState$
|
|
94
|
+
var _formState$changes, _formState$changes2;
|
|
95
95
|
// if (formState?.changes?.audience_type === 'fixed' &&
|
|
96
96
|
// (ruleFormState?.changes?.date_condition === '=' ||
|
|
97
97
|
// ruleFormState?.changes?.date_condition === '>')
|
|
@@ -102,13 +102,13 @@ var CampaignSignUpOptionUI = function CampaignSignUpOptionUI(props) {
|
|
|
102
102
|
// })
|
|
103
103
|
// return
|
|
104
104
|
// }
|
|
105
|
-
var found = formState === null || formState === void 0
|
|
105
|
+
var found = formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.find(function (item) {
|
|
106
106
|
return item.type === type;
|
|
107
107
|
});
|
|
108
|
-
var updatedConditions = _toConsumableArray(formState === null || formState === void 0
|
|
108
|
+
var updatedConditions = _toConsumableArray(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions);
|
|
109
109
|
if (found) {
|
|
110
110
|
var _formState$changes3;
|
|
111
|
-
updatedConditions = formState === null || formState === void 0
|
|
111
|
+
updatedConditions = formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.conditions.map(function (condition) {
|
|
112
112
|
if (condition.type === type) {
|
|
113
113
|
return _objectSpread({}, ruleFormState.changes);
|
|
114
114
|
}
|
|
@@ -77,7 +77,7 @@ var CampaignUserListUI = function CampaignUserListUI(props) {
|
|
|
77
77
|
return /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement(_styles.Title, null, /*#__PURE__*/_react.default.createElement("h1", null, t('OPENS', 'Opens'), userListState !== null && userListState !== void 0 && userListState.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
78
78
|
width: 30,
|
|
79
79
|
height: 16
|
|
80
|
-
}) : /*#__PURE__*/_react.default.createElement("span", null, (userListState === null || userListState === void 0
|
|
80
|
+
}) : /*#__PURE__*/_react.default.createElement("span", null, (userListState === null || userListState === void 0 || (_userListState$users = userListState.users) === null || _userListState$users === void 0 ? void 0 : _userListState$users.length) || 0))), /*#__PURE__*/_react.default.createElement(_styles.TableContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Table, null, /*#__PURE__*/_react.default.createElement(_styles.THead, null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("th", null, t('USER', 'User')), /*#__PURE__*/_react.default.createElement("th", null, t('EMAIL_ADDRESS', 'Email Address')), /*#__PURE__*/_react.default.createElement("th", null, t('OPENS', 'Opens')))), (userListState === null || userListState === void 0 ? void 0 : userListState.loading) && _toConsumableArray(Array(8).keys()).map(function (i) {
|
|
81
81
|
return /*#__PURE__*/_react.default.createElement(_styles.TBody, {
|
|
82
82
|
key: i
|
|
83
83
|
}, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
@@ -91,10 +91,10 @@ var CampaignUserListUI = function CampaignUserListUI(props) {
|
|
|
91
91
|
var _user$user, _user$user2;
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement(_styles.TBody, {
|
|
93
93
|
key: i
|
|
94
|
-
}, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, user === null || user === void 0
|
|
94
|
+
}, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, user === null || user === void 0 || (_user$user = user.user) === null || _user$user === void 0 ? void 0 : _user$user.name), /*#__PURE__*/_react.default.createElement("td", {
|
|
95
95
|
className: "underline"
|
|
96
|
-
}, user === null || user === void 0
|
|
97
|
-
}))), /*#__PURE__*/_react.default.createElement(_styles.PaginationWrapper, null, (userListState === null || userListState === void 0
|
|
96
|
+
}, user === null || user === void 0 || (_user$user2 = user.user) === null || _user$user2 === void 0 ? void 0 : _user$user2.email), /*#__PURE__*/_react.default.createElement("td", null, user !== null && user !== void 0 && user.open_at ? 1 : 0)));
|
|
97
|
+
}))), /*#__PURE__*/_react.default.createElement(_styles.PaginationWrapper, null, (userListState === null || userListState === void 0 || (_userListState$users2 = userListState.users) === null || _userListState$users2 === void 0 ? void 0 : _userListState$users2.length) > 0 && /*#__PURE__*/_react.default.createElement(_Shared.Pagination, {
|
|
98
98
|
currentPage: currentPage,
|
|
99
99
|
totalPages: totalPages,
|
|
100
100
|
handleChangePage: handleChangePage,
|
|
@@ -20,7 +20,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
20
20
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
21
21
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
22
22
|
var CampaignWebHook = function CampaignWebHook(props) {
|
|
23
|
-
var _contactState$
|
|
23
|
+
var _contactState$changes4, _contactState$changes5, _contactState$changes6;
|
|
24
24
|
var isAddMode = props.isAddMode,
|
|
25
25
|
contactState = props.contactState,
|
|
26
26
|
handleChangeData = props.handleChangeData,
|
|
@@ -47,22 +47,22 @@ var CampaignWebHook = function CampaignWebHook(props) {
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
var handleSaveSms = function handleSaveSms() {
|
|
50
|
-
var _contactState$changes, _contactState$changes2, _contactState$changes3
|
|
51
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$
|
|
50
|
+
var _contactState$changes, _contactState$changes2, _contactState$changes3;
|
|
51
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes = contactState.changes) !== null && _contactState$changes !== void 0 && (_contactState$changes = _contactState$changes.contact_data) !== null && _contactState$changes !== void 0 && _contactState$changes.title)) {
|
|
52
52
|
setAlertState({
|
|
53
53
|
open: true,
|
|
54
54
|
content: t('VALIDATION_ERROR_REQUIRED', 'Title is required').replace('_attribute_', t('TITLE', 'Title'))
|
|
55
55
|
});
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
58
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes2 = contactState.changes) !== null && _contactState$changes2 !== void 0 && (_contactState$changes2 = _contactState$changes2.contact_data) !== null && _contactState$changes2 !== void 0 && _contactState$changes2.body)) {
|
|
59
59
|
setAlertState({
|
|
60
60
|
open: true,
|
|
61
61
|
content: t('VALIDATION_ERROR_REQUIRED', 'Body is required').replace('_attribute_', t('BODY', 'Body'))
|
|
62
62
|
});
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
-
if (!(contactState !== null && contactState !== void 0 && (_contactState$
|
|
65
|
+
if (!(contactState !== null && contactState !== void 0 && (_contactState$changes3 = contactState.changes) !== null && _contactState$changes3 !== void 0 && (_contactState$changes3 = _contactState$changes3.contact_data) !== null && _contactState$changes3 !== void 0 && _contactState$changes3.webhook)) {
|
|
66
66
|
setAlertState({
|
|
67
67
|
open: true,
|
|
68
68
|
content: t('VALIDATION_ERROR_REQUIRED', 'URL is required').replace('_attribute_', t('URL', 'URL'))
|
|
@@ -70,10 +70,10 @@ var CampaignWebHook = function CampaignWebHook(props) {
|
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
72
|
if (isAddMode) {
|
|
73
|
-
var _formState$changes
|
|
74
|
-
if ((formState === null || formState === void 0
|
|
73
|
+
var _formState$changes;
|
|
74
|
+
if ((formState === null || formState === void 0 || (_formState$changes = formState.changes) === null || _formState$changes === void 0 || (_formState$changes = _formState$changes.conditions) === null || _formState$changes === void 0 ? void 0 : _formState$changes.length) > 0) {
|
|
75
75
|
var _formState$changes2;
|
|
76
|
-
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0
|
|
76
|
+
var _iterator = _createForOfIteratorHelper(formState === null || formState === void 0 || (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.conditions),
|
|
77
77
|
_step;
|
|
78
78
|
try {
|
|
79
79
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
@@ -116,17 +116,17 @@ var CampaignWebHook = function CampaignWebHook(props) {
|
|
|
116
116
|
}, t('INTEGRATIONS', 'Integrations'))), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('TITLE', 'Title')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
117
117
|
name: "title",
|
|
118
118
|
placeholder: t('TITLE', 'Title'),
|
|
119
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
119
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes4 = contactState.changes) === null || _contactState$changes4 === void 0 || (_contactState$changes4 = _contactState$changes4.contact_data) === null || _contactState$changes4 === void 0 ? void 0 : _contactState$changes4.title) || '',
|
|
120
120
|
onChange: handleChangeData
|
|
121
121
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('MESSAGES', 'Messages')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
122
122
|
name: "body",
|
|
123
123
|
placeholder: t('WRITE_MESSAGE', 'Write a message'),
|
|
124
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
124
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes5 = contactState.changes) === null || _contactState$changes5 === void 0 || (_contactState$changes5 = _contactState$changes5.contact_data) === null || _contactState$changes5 === void 0 ? void 0 : _contactState$changes5.body) || '',
|
|
125
125
|
onChange: handleChangeData
|
|
126
126
|
})), /*#__PURE__*/_react.default.createElement(_styles2.InputWrapper, null, /*#__PURE__*/_react.default.createElement("label", null, t('HOOKS', 'Hooks')), /*#__PURE__*/_react.default.createElement(_styles.Input, {
|
|
127
127
|
name: "webhook",
|
|
128
128
|
placeholder: t('URL', 'URL'),
|
|
129
|
-
defaultValue: (contactState === null || contactState === void 0
|
|
129
|
+
defaultValue: (contactState === null || contactState === void 0 || (_contactState$changes6 = contactState.changes) === null || _contactState$changes6 === void 0 || (_contactState$changes6 = _contactState$changes6.contact_data) === null || _contactState$changes6 === void 0 ? void 0 : _contactState$changes6.webhook) || '',
|
|
130
130
|
onChange: handleChangeData
|
|
131
131
|
}))), /*#__PURE__*/_react.default.createElement(_styles2.ButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
132
132
|
color: "primary",
|