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
|
@@ -96,7 +96,7 @@ var paypalBtnStyle = {
|
|
|
96
96
|
size: 'responsive'
|
|
97
97
|
};
|
|
98
98
|
var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
99
|
-
var _list$filter, _paymethodsList$error, _cart$balance, _paymethodSelected$da2, _isOpenMethod$paymeth2, _isOpenMethod$paymeth3, _isOpenMethod$paymeth4,
|
|
99
|
+
var _list$filter, _paymethodsList$error, _cart$balance, _paymethodSelected$da2, _isOpenMethod$paymeth2, _isOpenMethod$paymeth3, _isOpenMethod$paymeth4, _paymethodSelected$da3, _isOpenMethod$paymeth5, _isOpenMethod$paymeth6, _isOpenMethod$paymeth7, _isOpenMethod$paymeth8, _paymethodSelected$da4, _paymethodData$card, _paymethodData$card2, _paymethodData$card3, _isOpenMethod$paymeth9, _isOpenMethod$paymeth10, _isOpenMethod$paymeth11, _isOpenMethod$paymeth12, _cart$balance2, _isOpenMethod$paymeth13, _isOpenMethod$paymeth14, _isOpenMethod$paymeth15, _isOpenMethod$paymeth16, _isOpenMethod$paymeth17, _isOpenMethod$paymeth18, _isOpenMethod$paymeth19, _isOpenMethod$paymeth20, _isOpenMethod$paymeth21, _isOpenMethod$paymeth22, _isOpenMethod$paymeth23, _isOpenMethod$paymeth24, _isOpenMethod$paymeth25, _isOpenMethod$paymeth26, _isOpenMethod$paymeth27;
|
|
100
100
|
var cart = props.cart,
|
|
101
101
|
errorCash = props.errorCash,
|
|
102
102
|
isLoading = props.isLoading,
|
|
@@ -150,15 +150,15 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
150
150
|
return pay.paymethod;
|
|
151
151
|
});
|
|
152
152
|
var popupMethods = ['stripe', 'stripe_direct', 'stripe_connect', 'stripe_redirect', 'paypal', 'square', 'google_pay', 'apple_pay'];
|
|
153
|
-
var supportedMethods = list === null || list === void 0
|
|
153
|
+
var supportedMethods = list === null || list === void 0 || (_list$filter = list.filter(function (p) {
|
|
154
154
|
return !multiCheckoutMethods.includes(p.gateway);
|
|
155
155
|
})) === null || _list$filter === void 0 ? void 0 : _list$filter.filter(function (p) {
|
|
156
156
|
return useKioskApp ? includeKioskPaymethods.includes(p.gateway) : p;
|
|
157
157
|
});
|
|
158
158
|
var paymethodsFieldRequired = ['paypal', 'apple_pay', 'global_apple_pay'];
|
|
159
159
|
var handlePaymentMethodClick = function handlePaymentMethodClick(paymethod) {
|
|
160
|
-
var _validationFields$fie, _validationFields$fie2
|
|
161
|
-
if (paymethodsFieldRequired.includes(paymethod === null || paymethod === void 0 ? void 0 : paymethod.gateway) && options.type === 1 && validationFields !== null && validationFields !== void 0 && (_validationFields$fie = validationFields.fields) !== null && _validationFields$fie !== void 0 && (_validationFields$
|
|
160
|
+
var _validationFields$fie, _validationFields$fie2;
|
|
161
|
+
if (paymethodsFieldRequired.includes(paymethod === null || paymethod === void 0 ? void 0 : paymethod.gateway) && options.type === 1 && validationFields !== null && validationFields !== void 0 && (_validationFields$fie = validationFields.fields) !== null && _validationFields$fie !== void 0 && (_validationFields$fie = _validationFields$fie.checkout) !== null && _validationFields$fie !== void 0 && (_validationFields$fie = _validationFields$fie.driver_tip) !== null && _validationFields$fie !== void 0 && _validationFields$fie.enabled && validationFields !== null && validationFields !== void 0 && (_validationFields$fie2 = validationFields.fields) !== null && _validationFields$fie2 !== void 0 && (_validationFields$fie2 = _validationFields$fie2.checkout) !== null && _validationFields$fie2 !== void 0 && (_validationFields$fie2 = _validationFields$fie2.driver_tip) !== null && _validationFields$fie2 !== void 0 && _validationFields$fie2.required && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0) {
|
|
162
162
|
setAlertState({
|
|
163
163
|
open: true,
|
|
164
164
|
content: [t('DRIVER_TIPS_REQUIRED', 'Driver tips is required, please select a driver tip before select this paymethod')]
|
|
@@ -232,7 +232,7 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
232
232
|
key: paymethod.id
|
|
233
233
|
}, (!isCustomerMode && paymethod.gateway || isCustomerMode && (paymethod.gateway === 'card_delivery' || paymethod.gateway === 'cash')) && /*#__PURE__*/_react.default.createElement(_styles.PayCard, {
|
|
234
234
|
isDisabled: isDisabled,
|
|
235
|
-
className: "".concat(((paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.id) || (isOpenMethod === null || isOpenMethod === void 0
|
|
235
|
+
className: "".concat(((paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.id) || (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth === void 0 ? void 0 : _isOpenMethod$paymeth.id)) === paymethod.id ? 'active' : ''),
|
|
236
236
|
onClick: function onClick() {
|
|
237
237
|
return handlePaymentMethodClick(paymethod);
|
|
238
238
|
}
|
|
@@ -250,58 +250,58 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
250
250
|
}
|
|
251
251
|
}));
|
|
252
252
|
}), paymethodsList.error && paymethodsList.error.length > 0 && /*#__PURE__*/_react.default.createElement(_Shared.NotFoundSource, {
|
|
253
|
-
content: (paymethodsList === null || paymethodsList === void 0
|
|
253
|
+
content: (paymethodsList === null || paymethodsList === void 0 || (_paymethodsList$error = paymethodsList.error[0]) === null || _paymethodsList$error === void 0 ? void 0 : _paymethodsList$error.message) || (paymethodsList === null || paymethodsList === void 0 ? void 0 : paymethodsList.error[0])
|
|
254
254
|
}), !(paymethodsList.loading || isLoading) && !paymethodsList.error && (!(paymethodsList !== null && paymethodsList !== void 0 && paymethodsList.paymethods) || supportedMethods.length === 0) && /*#__PURE__*/_react.default.createElement("p", null, t('NO_PAYMENT_METHODS', 'No payment methods!'))), (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'cash' && /*#__PURE__*/_react.default.createElement(_PaymentOptionCash.PaymentOptionCash, {
|
|
255
255
|
data: paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.data,
|
|
256
256
|
orderTotal: (_cart$balance = cart === null || cart === void 0 ? void 0 : cart.balance) !== null && _cart$balance !== void 0 ? _cart$balance : cart === null || cart === void 0 ? void 0 : cart.total,
|
|
257
|
-
defaultValue: paymethodSelected === null || paymethodSelected === void 0
|
|
257
|
+
defaultValue: paymethodSelected === null || paymethodSelected === void 0 || (_paymethodSelected$da2 = paymethodSelected.data) === null || _paymethodSelected$da2 === void 0 ? void 0 : _paymethodSelected$da2.cash,
|
|
258
258
|
onChangeData: handlePaymethodDataChange,
|
|
259
259
|
setErrorCash: props.setErrorCash
|
|
260
|
-
}), ((isOpenMethod === null || isOpenMethod === void 0
|
|
260
|
+
}), ((isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth2 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth2 === void 0 ? void 0 : _isOpenMethod$paymeth2.gateway) === 'stripe' || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'stripe') && /*#__PURE__*/_react.default.createElement(_PaymentOptionStripe.PaymentOptionStripe, {
|
|
261
261
|
setCardList: setCardList,
|
|
262
262
|
paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : isOpenMethod.paymethod,
|
|
263
263
|
businessId: props.businessId,
|
|
264
|
-
publicKey: isOpenMethod === null || isOpenMethod === void 0
|
|
264
|
+
publicKey: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth3 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth3 === void 0 || (_isOpenMethod$paymeth3 = _isOpenMethod$paymeth3.credentials) === null || _isOpenMethod$paymeth3 === void 0 ? void 0 : _isOpenMethod$paymeth3.publishable,
|
|
265
265
|
onPaymentChange: onPaymentChange,
|
|
266
|
-
payType: isOpenMethod === null || isOpenMethod === void 0
|
|
266
|
+
payType: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth4 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth4 === void 0 ? void 0 : _isOpenMethod$paymeth4.name,
|
|
267
267
|
onSelectCard: handlePaymethodDataChange,
|
|
268
268
|
onCancel: function onCancel() {
|
|
269
269
|
return handlePaymethodClick(null);
|
|
270
270
|
},
|
|
271
|
-
paymethodSelected: paymethodSelected === null || paymethodSelected === void 0
|
|
271
|
+
paymethodSelected: paymethodSelected === null || paymethodSelected === void 0 || (_paymethodSelected$da3 = paymethodSelected.data) === null || _paymethodSelected$da3 === void 0 ? void 0 : _paymethodSelected$da3.id,
|
|
272
272
|
handlePaymentMethodClick: handlePaymentMethodClick
|
|
273
|
-
}), (cardsPaymethods.includes(isOpenMethod === null || isOpenMethod === void 0
|
|
273
|
+
}), (cardsPaymethods.includes(isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth5 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth5 === void 0 ? void 0 : _isOpenMethod$paymeth5.gateway) || cardsPaymethods.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway)) && /*#__PURE__*/_react.default.createElement(_PaymentOptionCard.PaymentOptionCard, {
|
|
274
274
|
setCardList: setCardList,
|
|
275
275
|
paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : isOpenMethod.paymethod,
|
|
276
276
|
businessId: props.businessId,
|
|
277
|
-
publicKey: isOpenMethod === null || isOpenMethod === void 0
|
|
278
|
-
gateway: (isOpenMethod === null || isOpenMethod === void 0
|
|
277
|
+
publicKey: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth6 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth6 === void 0 || (_isOpenMethod$paymeth6 = _isOpenMethod$paymeth6.credentials) === null || _isOpenMethod$paymeth6 === void 0 ? void 0 : _isOpenMethod$paymeth6.publishable,
|
|
278
|
+
gateway: (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth7 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth7 === void 0 ? void 0 : _isOpenMethod$paymeth7.gateway) || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway),
|
|
279
279
|
onPaymentChange: onPaymentChange,
|
|
280
|
-
payType: isOpenMethod === null || isOpenMethod === void 0
|
|
280
|
+
payType: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth8 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth8 === void 0 ? void 0 : _isOpenMethod$paymeth8.name,
|
|
281
281
|
onSelectCard: handlePaymethodDataChange,
|
|
282
282
|
onCancel: function onCancel() {
|
|
283
283
|
return handlePaymethodClick(null);
|
|
284
284
|
},
|
|
285
|
-
paymethodSelected: paymethodSelected === null || paymethodSelected === void 0
|
|
285
|
+
paymethodSelected: paymethodSelected === null || paymethodSelected === void 0 || (_paymethodSelected$da4 = paymethodSelected.data) === null || _paymethodSelected$da4 === void 0 ? void 0 : _paymethodSelected$da4.id,
|
|
286
286
|
handlePaymentMethodClick: handlePaymentMethodClick
|
|
287
287
|
}), stripeOptions.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (paymethodData === null || paymethodData === void 0 ? void 0 : paymethodData.card) && !isCustomerMode && (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) !== 'stripe' && /*#__PURE__*/_react.default.createElement(_styles.PayCardSelected, null, /*#__PURE__*/_react.default.createElement(_styles.CardItemContent, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
288
288
|
className: "checks"
|
|
289
289
|
}, /*#__PURE__*/_react.default.createElement(_IosRadioButtonOn.default, null)), /*#__PURE__*/_react.default.createElement("span", {
|
|
290
290
|
className: "brand"
|
|
291
291
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
292
|
-
src: (0, _utils.getIconCard)(paymethodData === null || paymethodData === void 0
|
|
293
|
-
alt: paymethodData === null || paymethodData === void 0
|
|
294
|
-
})), /*#__PURE__*/_react.default.createElement("span", null, "XXXX-XXXX-XXXX-", paymethodData === null || paymethodData === void 0
|
|
292
|
+
src: (0, _utils.getIconCard)(paymethodData === null || paymethodData === void 0 || (_paymethodData$card = paymethodData.card) === null || _paymethodData$card === void 0 ? void 0 : _paymethodData$card.brand),
|
|
293
|
+
alt: paymethodData === null || paymethodData === void 0 || (_paymethodData$card2 = paymethodData.card) === null || _paymethodData$card2 === void 0 ? void 0 : _paymethodData$card2.brand
|
|
294
|
+
})), /*#__PURE__*/_react.default.createElement("span", null, "XXXX-XXXX-XXXX-", paymethodData === null || paymethodData === void 0 || (_paymethodData$card3 = paymethodData.card) === null || _paymethodData$card3 === void 0 ? void 0 : _paymethodData$card3.last4))), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
295
295
|
className: "modal-info",
|
|
296
|
-
open: (isOpenMethod === null || isOpenMethod === void 0
|
|
296
|
+
open: (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth9 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth9 === void 0 ? void 0 : _isOpenMethod$paymeth9.gateway) === 'paypal' && !paymethodData.id,
|
|
297
297
|
onClose: function onClose() {
|
|
298
298
|
return handlePaymethodClick(null);
|
|
299
299
|
},
|
|
300
300
|
title: t('PAY_WITH_PAYPAL', 'Pay with PayPal')
|
|
301
|
-
}, (isOpenMethod === null || isOpenMethod === void 0
|
|
302
|
-
clientId: isOpenMethod === null || isOpenMethod === void 0
|
|
301
|
+
}, (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth10 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth10 === void 0 ? void 0 : _isOpenMethod$paymeth10.gateway) === 'paypal' && /*#__PURE__*/_react.default.createElement(_PaymentOptionPaypal.PaymentOptionPaypal, {
|
|
302
|
+
clientId: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth11 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth11 === void 0 || (_isOpenMethod$paymeth11 = _isOpenMethod$paymeth11.credentials) === null || _isOpenMethod$paymeth11 === void 0 ? void 0 : _isOpenMethod$paymeth11.client_id,
|
|
303
303
|
body: {
|
|
304
|
-
paymethod_id: isOpenMethod === null || isOpenMethod === void 0
|
|
304
|
+
paymethod_id: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth12 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth12 === void 0 ? void 0 : _isOpenMethod$paymeth12.id,
|
|
305
305
|
amount: (_cart$balance2 = cart === null || cart === void 0 ? void 0 : cart.balance) !== null && _cart$balance2 !== void 0 ? _cart$balance2 : cart.total,
|
|
306
306
|
delivery_zone_id: cart.delivery_zone_id,
|
|
307
307
|
cartUuid: cart.uuid
|
|
@@ -313,16 +313,16 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
313
313
|
}
|
|
314
314
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
315
315
|
title: t('SELECT_A_CARD', 'Select a card'),
|
|
316
|
-
open: (isOpenMethod === null || isOpenMethod === void 0
|
|
316
|
+
open: (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth13 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth13 === void 0 ? void 0 : _isOpenMethod$paymeth13.gateway) === 'stripe_connect' && !paymethodData.id,
|
|
317
317
|
className: "modal-info",
|
|
318
318
|
onClose: function onClose() {
|
|
319
319
|
return handlePaymethodClick(null);
|
|
320
320
|
}
|
|
321
|
-
}, (isOpenMethod === null || isOpenMethod === void 0
|
|
321
|
+
}, (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth14 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth14 === void 0 ? void 0 : _isOpenMethod$paymeth14.gateway) === 'stripe_connect' && /*#__PURE__*/_react.default.createElement(_PaymentOptionStripe.PaymentOptionStripe, {
|
|
322
322
|
paymethod: isOpenMethod === null || isOpenMethod === void 0 ? void 0 : isOpenMethod.paymethod,
|
|
323
323
|
businessId: props.businessId,
|
|
324
|
-
publicKey: isOpenMethod === null || isOpenMethod === void 0
|
|
325
|
-
clientSecret: isOpenMethod === null || isOpenMethod === void 0
|
|
324
|
+
publicKey: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth15 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth15 === void 0 || (_isOpenMethod$paymeth15 = _isOpenMethod$paymeth15.credentials) === null || _isOpenMethod$paymeth15 === void 0 || (_isOpenMethod$paymeth15 = _isOpenMethod$paymeth15.stripe) === null || _isOpenMethod$paymeth15 === void 0 ? void 0 : _isOpenMethod$paymeth15.publishable,
|
|
325
|
+
clientSecret: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth16 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth16 === void 0 || (_isOpenMethod$paymeth16 = _isOpenMethod$paymeth16.credentials) === null || _isOpenMethod$paymeth16 === void 0 ? void 0 : _isOpenMethod$paymeth16.publishable,
|
|
326
326
|
payType: paymethodsList === null || paymethodsList === void 0 ? void 0 : paymethodsList.name,
|
|
327
327
|
onSelectCard: handlePaymethodDataChange,
|
|
328
328
|
onCancel: function onCancel() {
|
|
@@ -331,17 +331,17 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
331
331
|
paymethodSelected: paymethodSelected
|
|
332
332
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
333
333
|
title: t('ADD_CARD', 'Add card'),
|
|
334
|
-
open: (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0
|
|
334
|
+
open: (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth17 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth17 === void 0 ? void 0 : _isOpenMethod$paymeth17.gateway)) && !paymethodData.id,
|
|
335
335
|
className: "modal-info",
|
|
336
336
|
onClose: function onClose() {
|
|
337
337
|
return handlePaymethodClick(null);
|
|
338
338
|
}
|
|
339
|
-
}, !(isOpenMethod !== null && isOpenMethod !== void 0 && (_isOpenMethod$
|
|
339
|
+
}, !(isOpenMethod !== null && isOpenMethod !== void 0 && (_isOpenMethod$paymeth18 = isOpenMethod.paymethod) !== null && _isOpenMethod$paymeth18 !== void 0 && (_isOpenMethod$paymeth18 = _isOpenMethod$paymeth18.credentials) !== null && _isOpenMethod$paymeth18 !== void 0 && _isOpenMethod$paymeth18.publishable) && /*#__PURE__*/_react.default.createElement(_styles.Container, null, /*#__PURE__*/_react.default.createElement("p", null, t('ADD_PUBLISHABLE_KEY', 'Please add a publishable key'))), (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth19 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth19 === void 0 || (_isOpenMethod$paymeth19 = _isOpenMethod$paymeth19.credentials) === null || _isOpenMethod$paymeth19 === void 0 ? void 0 : _isOpenMethod$paymeth19.publishable) && (stripeDirectMethods === null || stripeDirectMethods === void 0 ? void 0 : stripeDirectMethods.includes(isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth20 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth20 === void 0 ? void 0 : _isOpenMethod$paymeth20.gateway)) && /*#__PURE__*/_react.default.createElement(_StripeElementsForm.StripeElementsForm, {
|
|
340
340
|
methodsPay: methodsPay,
|
|
341
|
-
paymethod: isOpenMethod === null || isOpenMethod === void 0
|
|
341
|
+
paymethod: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth21 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth21 === void 0 ? void 0 : _isOpenMethod$paymeth21.gateway,
|
|
342
342
|
businessId: props.businessId,
|
|
343
343
|
cart: cart,
|
|
344
|
-
publicKey: (isOpenMethod === null || isOpenMethod === void 0
|
|
344
|
+
publicKey: (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth22 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth22 === void 0 || (_isOpenMethod$paymeth22 = _isOpenMethod$paymeth22.credentials) === null || _isOpenMethod$paymeth22 === void 0 ? void 0 : _isOpenMethod$paymeth22.publishable) || (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth23 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth23 === void 0 || (_isOpenMethod$paymeth23 = _isOpenMethod$paymeth23.credentials) === null || _isOpenMethod$paymeth23 === void 0 ? void 0 : _isOpenMethod$paymeth23.publishable_key),
|
|
345
345
|
handleSource: handlePaymethodDataChange,
|
|
346
346
|
onCancel: function onCancel() {
|
|
347
347
|
return handlePaymethodClick(null);
|
|
@@ -349,7 +349,7 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
349
349
|
handlePlaceOrder: handlePlaceOrder
|
|
350
350
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
351
351
|
title: t('STRIPE_REDIRECT', 'Stripe Redirect'),
|
|
352
|
-
open: (isOpenMethod === null || isOpenMethod === void 0
|
|
352
|
+
open: (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth24 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth24 === void 0 ? void 0 : _isOpenMethod$paymeth24.gateway) === 'stripe_redirect' && !paymethodData.type,
|
|
353
353
|
className: "modal-info",
|
|
354
354
|
onClose: function onClose() {
|
|
355
355
|
return handlePaymethodClick(null);
|
|
@@ -361,16 +361,16 @@ var PaymentOptionsUI = function PaymentOptionsUI(props) {
|
|
|
361
361
|
handleStripeRedirect: handlePaymethodDataChange
|
|
362
362
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Modal, {
|
|
363
363
|
title: t('SQUARE', 'Square'),
|
|
364
|
-
open: (isOpenMethod === null || isOpenMethod === void 0
|
|
364
|
+
open: (isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth25 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth25 === void 0 ? void 0 : _isOpenMethod$paymeth25.gateway) === 'square' && !paymethodData.token,
|
|
365
365
|
onClose: function onClose() {
|
|
366
366
|
return handlePaymethodClick(null);
|
|
367
367
|
}
|
|
368
368
|
}, /*#__PURE__*/_react.default.createElement(_PaymentOptionSquare.PaymentOptionSquare, {
|
|
369
369
|
businessId: props.businessId,
|
|
370
370
|
cartTotal: cart === null || cart === void 0 ? void 0 : cart.total,
|
|
371
|
-
data: isOpenMethod === null || isOpenMethod === void 0
|
|
371
|
+
data: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth26 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth26 === void 0 ? void 0 : _isOpenMethod$paymeth26.credentials,
|
|
372
372
|
body: {
|
|
373
|
-
paymethod_id: isOpenMethod === null || isOpenMethod === void 0
|
|
373
|
+
paymethod_id: isOpenMethod === null || isOpenMethod === void 0 || (_isOpenMethod$paymeth27 = isOpenMethod.paymethod) === null || _isOpenMethod$paymeth27 === void 0 ? void 0 : _isOpenMethod$paymeth27.id,
|
|
374
374
|
amount: cart.total,
|
|
375
375
|
delivery_zone_id: cart.delivery_zone_id,
|
|
376
376
|
cartUuid: cart.uuid
|
|
@@ -43,7 +43,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
43
43
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
44
44
|
_swiper.default.use([_swiper.Navigation, _swiper.Thumbs]);
|
|
45
45
|
var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
46
|
-
var _configs$unaddressed_, _theme$business_view, _theme$
|
|
46
|
+
var _configs$unaddressed_, _theme$business_view, _theme$defaultLanguag, _product$tags, _product$ingredients2, _product$extras, _product$ingredients3, _product$ingredients4, _product$ingredients5, _product$extras2, _theme$defaultLanguag2, _theme$defaultLanguag3, _props$afterMidElemen, _props$afterMidCompon, _orderState$options, _orderState$options2, _orderState$options3, _orderState$options4, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _error$;
|
|
47
47
|
var editMode = props.editMode,
|
|
48
48
|
isSoldOut = props.isSoldOut,
|
|
49
49
|
productObject = props.productObject,
|
|
@@ -126,10 +126,10 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
126
126
|
var _useConfig = (0, _orderingComponentsAdminExternal.useConfig)(),
|
|
127
127
|
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
128
128
|
configs = _useConfig2[0].configs;
|
|
129
|
-
var unaddressedTypes = (configs === null || configs === void 0
|
|
129
|
+
var unaddressedTypes = (configs === null || configs === void 0 || (_configs$unaddressed_ = configs.unaddressed_order_types_allowed) === null || _configs$unaddressed_ === void 0 ? void 0 : _configs$unaddressed_.value.split('|').map(function (value) {
|
|
130
130
|
return Number(value);
|
|
131
131
|
})) || [];
|
|
132
|
-
var hideProductDescription = theme === null || theme === void 0
|
|
132
|
+
var hideProductDescription = theme === null || theme === void 0 || (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.products) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.product) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.description) === null || _theme$business_view === void 0 ? void 0 : _theme$business_view.hidden;
|
|
133
133
|
var handleChangeFavorite = function handleChangeFavorite() {
|
|
134
134
|
handleFavoriteProduct && handleFavoriteProduct(product, !(product !== null && product !== void 0 && product.favorite));
|
|
135
135
|
};
|
|
@@ -194,14 +194,14 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
194
194
|
handleChangeProductCartQuantity(quantity);
|
|
195
195
|
};
|
|
196
196
|
var scrollDown = function scrollDown() {
|
|
197
|
-
var _Object$values2, _document$getElements
|
|
197
|
+
var _Object$values2, _document$getElements;
|
|
198
198
|
var adjustHeight = (windowSize === null || windowSize === void 0 ? void 0 : windowSize.width) > 768 ? 50 : 55;
|
|
199
199
|
var isErrors = ((_Object$values2 = Object.values(errors)) === null || _Object$values2 === void 0 ? void 0 : _Object$values2.length) > 0;
|
|
200
200
|
if (!isErrors) {
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
203
|
var productContainer = document.getElementsByClassName('popup-dialog')[0];
|
|
204
|
-
var unselectedFirstSubOption = (_document$getElements = document.getElementsByClassName('error')) === null || _document$getElements === void 0
|
|
204
|
+
var unselectedFirstSubOption = (_document$getElements = document.getElementsByClassName('error')) === null || _document$getElements === void 0 || (_document$getElements = _document$getElements[0]) === null || _document$getElements === void 0 ? void 0 : _document$getElements.parentNode;
|
|
205
205
|
if (unselectedFirstSubOption) {
|
|
206
206
|
var top = unselectedFirstSubOption.offsetTop;
|
|
207
207
|
productContainer.scrollTo({
|
|
@@ -234,7 +234,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
234
234
|
if ((product === null || product === void 0 ? void 0 : product.ingredients.length) > 0 || (product === null || product === void 0 ? void 0 : product.extras.length) > 0) {
|
|
235
235
|
var _product$ingredients;
|
|
236
236
|
var menuList = [];
|
|
237
|
-
if ((product === null || product === void 0
|
|
237
|
+
if ((product === null || product === void 0 || (_product$ingredients = product.ingredients) === null || _product$ingredients === void 0 ? void 0 : _product$ingredients.length) > 0) {
|
|
238
238
|
menuList.push('ingredients');
|
|
239
239
|
}
|
|
240
240
|
((product === null || product === void 0 ? void 0 : product.extras.length) > 0 && (product === null || product === void 0 ? void 0 : product.extras) || []).sort(function (a, b) {
|
|
@@ -277,11 +277,11 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
277
277
|
};
|
|
278
278
|
}, [showOption]);
|
|
279
279
|
(0, _react.useEffect)(function () {
|
|
280
|
-
var _theme$images,
|
|
280
|
+
var _theme$images, _product$gallery;
|
|
281
281
|
var imageList = [];
|
|
282
282
|
var videoList = [];
|
|
283
|
-
imageList.push((product === null || product === void 0 ? void 0 : product.images) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
284
|
-
if (product !== null && product !== void 0 && product.gallery && (product === null || product === void 0
|
|
283
|
+
imageList.push((product === null || product === void 0 ? void 0 : product.images) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.product));
|
|
284
|
+
if (product !== null && product !== void 0 && product.gallery && (product === null || product === void 0 || (_product$gallery = product.gallery) === null || _product$gallery === void 0 ? void 0 : _product$gallery.length) > 0) {
|
|
285
285
|
var _iterator = _createForOfIteratorHelper(product === null || product === void 0 ? void 0 : product.gallery),
|
|
286
286
|
_step;
|
|
287
287
|
try {
|
|
@@ -420,21 +420,21 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
420
420
|
className: "offer-price"
|
|
421
421
|
}, product !== null && product !== void 0 && product.offer_price ? parsePrice(product === null || product === void 0 ? void 0 : product.offer_price) : '')), /*#__PURE__*/_react.default.createElement(_styles2.ProductMeta, null, (product === null || product === void 0 ? void 0 : product.calories) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("span", {
|
|
422
422
|
className: "calories"
|
|
423
|
-
}, product === null || product === void 0 ? void 0 : product.calories, ' ', "cal"), /*#__PURE__*/_react.default.createElement("span", null, "\xA0\xB7\xA0")), (product === null || product === void 0 ? void 0 : product.sku) && (product === null || product === void 0 ? void 0 : product.sku) !== '-1' && (product === null || product === void 0 ? void 0 : product.sku) !== '1' && /*#__PURE__*/_react.default.createElement(_styles2.SkuContent, null, /*#__PURE__*/_react.default.createElement("span", null, t('SKU', (theme === null || theme === void 0
|
|
423
|
+
}, product === null || product === void 0 ? void 0 : product.calories, ' ', "cal"), /*#__PURE__*/_react.default.createElement("span", null, "\xA0\xB7\xA0")), (product === null || product === void 0 ? void 0 : product.sku) && (product === null || product === void 0 ? void 0 : product.sku) !== '-1' && (product === null || product === void 0 ? void 0 : product.sku) !== '1' && /*#__PURE__*/_react.default.createElement(_styles2.SkuContent, null, /*#__PURE__*/_react.default.createElement("span", null, t('SKU', (theme === null || theme === void 0 || (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.SKU) || 'Sku'), "\xA0"), /*#__PURE__*/_react.default.createElement("span", null, product === null || product === void 0 ? void 0 : product.sku)), (product === null || product === void 0 ? void 0 : product.sku) && (product === null || product === void 0 ? void 0 : product.sku) !== '-1' && (product === null || product === void 0 ? void 0 : product.sku) !== '1' && (product === null || product === void 0 ? void 0 : product.estimated_person) && /*#__PURE__*/_react.default.createElement("span", null, "\xA0\xB7\xA0"), (product === null || product === void 0 ? void 0 : product.estimated_person) && /*#__PURE__*/_react.default.createElement(_styles2.EstimatedPersons, null, /*#__PURE__*/_react.default.createElement("span", null, product === null || product === void 0 ? void 0 : product.estimated_person, "\xA0"), /*#__PURE__*/_react.default.createElement("span", null, t('ESTIMATED_PERSONS', 'persons'))))), (product === null || product === void 0 ? void 0 : product.description) && !hideProductDescription && /*#__PURE__*/_react.default.createElement(_styles2.ProductDescription, null, /*#__PURE__*/_react.default.createElement(_Shared.LinkableText, {
|
|
424
424
|
text: product === null || product === void 0 ? void 0 : product.description
|
|
425
|
-
}))), (product === null || product === void 0
|
|
426
|
-
var _theme$images2
|
|
425
|
+
}))), (product === null || product === void 0 || (_product$tags = product.tags) === null || _product$tags === void 0 ? void 0 : _product$tags.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.ProductTagsListContainer, null, product.tags.map(function (tag) {
|
|
426
|
+
var _theme$images2;
|
|
427
427
|
return /*#__PURE__*/_react.default.createElement(_styles2.ProductTagWrapper, {
|
|
428
428
|
key: tag.id
|
|
429
429
|
}, /*#__PURE__*/_react.default.createElement("img", {
|
|
430
|
-
src: optimizeImage((tag === null || tag === void 0 ? void 0 : tag.image) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0
|
|
430
|
+
src: optimizeImage((tag === null || tag === void 0 ? void 0 : tag.image) || ((_theme$images2 = theme.images) === null || _theme$images2 === void 0 || (_theme$images2 = _theme$images2.dummies) === null || _theme$images2 === void 0 ? void 0 : _theme$images2.product), 'h_40,c_limit'),
|
|
431
431
|
alt: ""
|
|
432
432
|
}), /*#__PURE__*/_react.default.createElement("span", null, tag.name));
|
|
433
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.Divider, null), /*#__PURE__*/_react.default.createElement(_styles2.ProductEdition, null, ((product === null || product === void 0
|
|
433
|
+
})), /*#__PURE__*/_react.default.createElement(_styles2.Divider, null), /*#__PURE__*/_react.default.createElement(_styles2.ProductEdition, null, ((product === null || product === void 0 || (_product$ingredients2 = product.ingredients) === null || _product$ingredients2 === void 0 ? void 0 : _product$ingredients2.length) > 0 || (product === null || product === void 0 || (_product$extras = product.extras) === null || _product$extras === void 0 ? void 0 : _product$extras.length) > 0) && /*#__PURE__*/_react.default.createElement(_styles2.ProductTabContainer, {
|
|
434
434
|
id: "all"
|
|
435
435
|
}, /*#__PURE__*/_react.default.createElement(_styles.Tabs, null, /*#__PURE__*/_react.default.createElement(_Shared.AutoScroll, {
|
|
436
436
|
scrollId: "optionList"
|
|
437
|
-
}, (product === null || product === void 0
|
|
437
|
+
}, (product === null || product === void 0 || (_product$ingredients3 = product.ingredients) === null || _product$ingredients3 === void 0 ? void 0 : _product$ingredients3.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.Tab, {
|
|
438
438
|
key: "ingredients",
|
|
439
439
|
id: "menu_ingredients",
|
|
440
440
|
active: tabValue === 'ingredients',
|
|
@@ -459,9 +459,9 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
459
459
|
borderBottom: true
|
|
460
460
|
}, option === null || option === void 0 ? void 0 : option.name);
|
|
461
461
|
});
|
|
462
|
-
})))), (product === null || product === void 0
|
|
462
|
+
})))), (product === null || product === void 0 || (_product$ingredients4 = product.ingredients) === null || _product$ingredients4 === void 0 ? void 0 : _product$ingredients4.length) > 0 && Object.keys(productCart.ingredients).length > 0 && /*#__PURE__*/_react.default.createElement("div", {
|
|
463
463
|
id: "ingredients"
|
|
464
|
-
}, (product === null || product === void 0
|
|
464
|
+
}, (product === null || product === void 0 || (_product$ingredients5 = product.ingredients) === null || _product$ingredients5 === void 0 ? void 0 : _product$ingredients5.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles2.SectionTitle, null, t('INGREDIENTS', (theme === null || theme === void 0 ? void 0 : theme.defaultLanguages.INGREDIENTS) || 'Ingredients')), /*#__PURE__*/_react.default.createElement(_styles2.WrapperIngredients, {
|
|
465
465
|
isProductSoldout: isSoldOut || maxProductQuantity <= 0
|
|
466
466
|
}, product === null || product === void 0 ? void 0 : product.ingredients.map(function (ingredient) {
|
|
467
467
|
return /*#__PURE__*/_react.default.createElement(_ProductIngredient.ProductIngredient, {
|
|
@@ -471,7 +471,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
471
471
|
onChange: handleChangeIngredientState,
|
|
472
472
|
isSoldOut: isSoldOut
|
|
473
473
|
});
|
|
474
|
-
}))), /*#__PURE__*/_react.default.createElement("div", null, product === null || product === void 0
|
|
474
|
+
}))), /*#__PURE__*/_react.default.createElement("div", null, product === null || product === void 0 || (_product$extras2 = product.extras) === null || _product$extras2 === void 0 ? void 0 : _product$extras2.sort(function (a, b) {
|
|
475
475
|
return a.rank - b.rank;
|
|
476
476
|
}).map(function (extra) {
|
|
477
477
|
return extra.options.sort(function (a, b) {
|
|
@@ -507,9 +507,9 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
507
507
|
});
|
|
508
508
|
}))));
|
|
509
509
|
});
|
|
510
|
-
})), !(product !== null && product !== void 0 && product.hide_special_instructions) && /*#__PURE__*/_react.default.createElement(_styles2.ProductComment, null, /*#__PURE__*/_react.default.createElement(_styles2.SectionTitle, null, t('COMMENTS', (theme === null || theme === void 0
|
|
510
|
+
})), !(product !== null && product !== void 0 && product.hide_special_instructions) && /*#__PURE__*/_react.default.createElement(_styles2.ProductComment, null, /*#__PURE__*/_react.default.createElement(_styles2.SectionTitle, null, t('COMMENTS', (theme === null || theme === void 0 || (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.SPECIAL_COMMENT) || 'COMMENTS')), /*#__PURE__*/_react.default.createElement(_styles.TextArea, {
|
|
511
511
|
rows: 4,
|
|
512
|
-
placeholder: t('SPECIAL_COMMENT', (theme === null || theme === void 0
|
|
512
|
+
placeholder: t('SPECIAL_COMMENT', (theme === null || theme === void 0 || (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.SPECIAL_COMMENT) || 'Special comment'),
|
|
513
513
|
defaultValue: productCart.comment,
|
|
514
514
|
onChange: handleChangeCommentState,
|
|
515
515
|
disabled: !(productCart && !isSoldOut && maxProductQuantity)
|
|
@@ -522,7 +522,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
522
522
|
key: i
|
|
523
523
|
}, props));
|
|
524
524
|
})), /*#__PURE__*/_react.default.createElement(_styles2.ProductActions, {
|
|
525
|
-
isColumn: !((_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && _orderState$options.address_id || unaddressedTypes.includes(orderState === null || orderState === void 0
|
|
525
|
+
isColumn: !((_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && _orderState$options.address_id || unaddressedTypes.includes(orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type))
|
|
526
526
|
}, actionStatus !== null && actionStatus !== void 0 && actionStatus.loading || orderState.loading ? /*#__PURE__*/_react.default.createElement(_styles2.LoadingWrapper, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
527
527
|
height: 35,
|
|
528
528
|
width: 150
|
|
@@ -562,7 +562,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
562
562
|
return handleSwitchQtyUnit('weight_unit');
|
|
563
563
|
},
|
|
564
564
|
active: qtyBy === null || qtyBy === void 0 ? void 0 : qtyBy.weight_unit
|
|
565
|
-
}, product === null || product === void 0 ? void 0 : product.weight_unit)))), productCart && !isSoldOut && maxProductQuantity > 0 && (((_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.address_id) || unaddressedTypes.includes(orderState === null || orderState === void 0
|
|
565
|
+
}, product === null || product === void 0 ? void 0 : product.weight_unit)))), productCart && !isSoldOut && maxProductQuantity > 0 && (((_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.address_id) || unaddressedTypes.includes(orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.type)) && /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
566
566
|
borderRadius: "8px",
|
|
567
567
|
className: "add ".concat(maxProductQuantity === 0 || Object.keys(errors).length > 0 ? 'disabled' : ''),
|
|
568
568
|
color: "primary",
|
|
@@ -570,7 +570,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
570
570
|
return handleSaveProduct();
|
|
571
571
|
},
|
|
572
572
|
disabled: orderState.loading || (productCart === null || productCart === void 0 ? void 0 : productCart.quantity) === 0 || (product === null || product === void 0 ? void 0 : product.minimum_per_order) && (productCart === null || productCart === void 0 ? void 0 : productCart.quantity) + productAddedToCartLength < (product === null || product === void 0 ? void 0 : product.minimum_per_order) || (product === null || product === void 0 ? void 0 : product.maximum_per_order) && (productCart === null || productCart === void 0 ? void 0 : productCart.quantity) + productAddedToCartLength > (product === null || product === void 0 ? void 0 : product.maximum_per_order)
|
|
573
|
-
}, orderState.loading ? /*#__PURE__*/_react.default.createElement("span", null, t('LOADING', (theme === null || theme === void 0
|
|
573
|
+
}, orderState.loading ? /*#__PURE__*/_react.default.createElement("span", null, t('LOADING', (theme === null || theme === void 0 || (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.LOADING) || 'Loading')) : /*#__PURE__*/_react.default.createElement("span", null, editMode ? t('UPDATE', (theme === null || theme === void 0 || (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.UPDATE) || 'Update') : t('ADD', (theme === null || theme === void 0 || (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.ADD) || 'Add'))), (isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement(_styles.Button, {
|
|
574
574
|
className: "add ".concat(!(productCart && !isSoldOut && maxProductQuantity > 0) ? 'soldout' : ''),
|
|
575
575
|
color: "primary",
|
|
576
576
|
outline: true,
|
|
@@ -601,7 +601,7 @@ var ProductForm = function ProductForm(props) {
|
|
|
601
601
|
var _props$productCart, _props$productCart2, _props$product;
|
|
602
602
|
var productOptionsProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
603
603
|
productCart: _objectSpread(_objectSpread({}, props.productCart), {}, {
|
|
604
|
-
quantity: (_props$productCart = props.productCart) !== null && _props$productCart !== void 0 && _props$productCart.code ? (_props$productCart2 = props.productCart) === null || _props$productCart2 === void 0 ? void 0 : _props$productCart2.quantity : (props === null || props === void 0
|
|
604
|
+
quantity: (_props$productCart = props.productCart) !== null && _props$productCart !== void 0 && _props$productCart.code ? (_props$productCart2 = props.productCart) === null || _props$productCart2 === void 0 ? void 0 : _props$productCart2.quantity : (props === null || props === void 0 || (_props$product = props.product) === null || _props$product === void 0 ? void 0 : _props$product.minimum_per_order) || 1
|
|
605
605
|
}),
|
|
606
606
|
UIComponent: ProductOptionsUI
|
|
607
607
|
});
|
|
@@ -71,13 +71,13 @@ var ProductOptionSubOptionUI = function ProductOptionSubOptionUI(props) {
|
|
|
71
71
|
var _option$suboptions;
|
|
72
72
|
dirtyRef.current = true;
|
|
73
73
|
toggleSelect();
|
|
74
|
-
if (balance === (option === null || option === void 0 ? void 0 : option.max) && (option === null || option === void 0
|
|
74
|
+
if (balance === (option === null || option === void 0 ? void 0 : option.max) && (option === null || option === void 0 || (_option$suboptions = option.suboptions) === null || _option$suboptions === void 0 ? void 0 : _option$suboptions.length) > balance && !((option === null || option === void 0 ? void 0 : option.min) === 1 && (option === null || option === void 0 ? void 0 : option.max) === 1) && !state.selected) {
|
|
75
75
|
setShowMessage(true);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
(0, _react.useEffect)(function () {
|
|
79
79
|
var _option$suboptions2;
|
|
80
|
-
if (!(balance === (option === null || option === void 0 ? void 0 : option.max) && (option === null || option === void 0
|
|
80
|
+
if (!(balance === (option === null || option === void 0 ? void 0 : option.max) && (option === null || option === void 0 || (_option$suboptions2 = option.suboptions) === null || _option$suboptions2 === void 0 ? void 0 : _option$suboptions2.length) > balance && !((option === null || option === void 0 ? void 0 : option.min) === 1 && (option === null || option === void 0 ? void 0 : option.max) === 1) && !state.selected)) {
|
|
81
81
|
setShowMessage(false);
|
|
82
82
|
}
|
|
83
83
|
}, [balance]);
|
|
@@ -50,11 +50,11 @@ var SelectBusinesses = function SelectBusinesses(props) {
|
|
|
50
50
|
businessList.businesses.filter(function (business) {
|
|
51
51
|
return ((business === null || business === void 0 ? void 0 : business.name) || '').toLocaleLowerCase().includes(searchValue.toLocaleLowerCase());
|
|
52
52
|
}).map(function (business) {
|
|
53
|
-
var _theme$images
|
|
53
|
+
var _theme$images;
|
|
54
54
|
_businessOptions.push({
|
|
55
55
|
value: business === null || business === void 0 ? void 0 : business.slug,
|
|
56
56
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
57
|
-
src: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
57
|
+
src: optimizeImage((business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo), 'h_50,c_limit'),
|
|
58
58
|
alt: ""
|
|
59
59
|
}), /*#__PURE__*/_react.default.createElement("span", null, business === null || business === void 0 ? void 0 : business.name))
|
|
60
60
|
});
|
|
@@ -118,7 +118,7 @@ var SelectCustomer = function SelectCustomer(props) {
|
|
|
118
118
|
}
|
|
119
119
|
}), customersPhones.loading && /*#__PURE__*/_react.default.createElement("span", {
|
|
120
120
|
className: "loading"
|
|
121
|
-
}, /*#__PURE__*/_react.default.createElement(_CgSpinnerTwoAlt.default, null)), searchInputFocus && /*#__PURE__*/_react.default.createElement(_styles2.OptionsToSelectContainer, null, (customersPhones === null || customersPhones === void 0
|
|
121
|
+
}, /*#__PURE__*/_react.default.createElement(_CgSpinnerTwoAlt.default, null)), searchInputFocus && /*#__PURE__*/_react.default.createElement(_styles2.OptionsToSelectContainer, null, (customersPhones === null || customersPhones === void 0 || (_customersPhones$user = customersPhones.users) === null || _customersPhones$user === void 0 ? void 0 : _customersPhones$user.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, customersPhones === null || customersPhones === void 0 || (_customersPhones$user2 = customersPhones.users) === null || _customersPhones$user2 === void 0 ? void 0 : _customersPhones$user2.map(function (user) {
|
|
122
122
|
return /*#__PURE__*/_react.default.createElement(_styles2.SelectOption, {
|
|
123
123
|
key: user.id,
|
|
124
124
|
onClick: function onClick() {
|
|
@@ -156,7 +156,7 @@ var SelectProducts = function SelectProducts(props) {
|
|
|
156
156
|
isShowSearchBar: true,
|
|
157
157
|
searchValue: searchValue,
|
|
158
158
|
handleChangeSearch: setSearchValue
|
|
159
|
-
})), /*#__PURE__*/_react.default.createElement(_styles2.CartProductsConatiner, null, cart === null || cart === void 0
|
|
159
|
+
})), /*#__PURE__*/_react.default.createElement(_styles2.CartProductsConatiner, null, cart === null || cart === void 0 || (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.map(function (product, index) {
|
|
160
160
|
return /*#__PURE__*/_react.default.createElement(_styles2.CartProductsWrapper, {
|
|
161
161
|
key: "".concat(product.id, "_").concat(index)
|
|
162
162
|
}, /*#__PURE__*/_react.default.createElement(_styles2.SelectOption, null, /*#__PURE__*/_react.default.createElement(_styles2.WrapperImage, null, product !== null && product !== void 0 && product.images ? /*#__PURE__*/_react.default.createElement("img", {
|
|
@@ -213,7 +213,7 @@ var SelectProducts = function SelectProducts(props) {
|
|
|
213
213
|
onSave: function onSave() {
|
|
214
214
|
return setOpenProduct(false);
|
|
215
215
|
},
|
|
216
|
-
productAddedToCartLength: (cart === null || cart === void 0
|
|
216
|
+
productAddedToCartLength: (cart === null || cart === void 0 || (_cart$products2 = cart.products) === null || _cart$products2 === void 0 ? void 0 : _cart$products2.reduce(function (productsLength, Cproduct) {
|
|
217
217
|
return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (curProduct === null || curProduct === void 0 ? void 0 : curProduct.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
|
|
218
218
|
}, 0)) || 0
|
|
219
219
|
})), /*#__PURE__*/_react.default.createElement(_Shared.Confirm, {
|
|
@@ -27,7 +27,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
27
27
|
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; } }
|
|
28
28
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
29
29
|
var SingleProductCardUI = function SingleProductCardUI(props) {
|
|
30
|
-
var _theme$images, _theme$
|
|
30
|
+
var _theme$images, _theme$images2, _product$ribbon, _product$ribbon2, _product$ribbon3, _product$ribbon4, _product$ribbon5, _theme$images3, _product$ribbon6;
|
|
31
31
|
var product = props.product;
|
|
32
32
|
var _useLanguage = (0, _orderingComponentsAdminExternal.useLanguage)(),
|
|
33
33
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
@@ -62,7 +62,7 @@ var SingleProductCardUI = function SingleProductCardUI(props) {
|
|
|
62
62
|
className: "product-card"
|
|
63
63
|
}, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_styles.CardInfo, {
|
|
64
64
|
soldOut: maxProductQuantity <= 0,
|
|
65
|
-
isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0
|
|
65
|
+
isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 || (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.product), 'h_86,c_limit')
|
|
66
66
|
}, /*#__PURE__*/_react.default.createElement(_styles.TitleWrapper, null, /*#__PURE__*/_react.default.createElement("h1", null, product === null || product === void 0 ? void 0 : product.name)), /*#__PURE__*/_react.default.createElement(_styles.PriceWrapper, {
|
|
67
67
|
isOffPrice: (product === null || product === void 0 ? void 0 : product.offer_price) && (product === null || product === void 0 ? void 0 : product.in_offer)
|
|
68
68
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
@@ -77,17 +77,17 @@ var SingleProductCardUI = function SingleProductCardUI(props) {
|
|
|
77
77
|
src: (_tag$image = tag.image) !== null && _tag$image !== void 0 ? _tag$image : ''
|
|
78
78
|
}));
|
|
79
79
|
}))), /*#__PURE__*/_react.default.createElement("p", null, product === null || product === void 0 ? void 0 : product.description)), /*#__PURE__*/_react.default.createElement(_styles.WrapLogo, {
|
|
80
|
-
isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0
|
|
81
|
-
}, (product === null || product === void 0
|
|
82
|
-
bgColor: product === null || product === void 0
|
|
83
|
-
isRoundRect: (product === null || product === void 0
|
|
84
|
-
isCapsule: (product === null || product === void 0
|
|
85
|
-
}, product === null || product === void 0
|
|
80
|
+
isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 || (_theme$images2 = theme.images) === null || _theme$images2 === void 0 || (_theme$images2 = _theme$images2.dummies) === null || _theme$images2 === void 0 ? void 0 : _theme$images2.product), 'h_86,c_limit')
|
|
81
|
+
}, (product === null || product === void 0 || (_product$ribbon = product.ribbon) === null || _product$ribbon === void 0 ? void 0 : _product$ribbon.enabled) && /*#__PURE__*/_react.default.createElement(_styles.RibbonBox, {
|
|
82
|
+
bgColor: product === null || product === void 0 || (_product$ribbon2 = product.ribbon) === null || _product$ribbon2 === void 0 ? void 0 : _product$ribbon2.color,
|
|
83
|
+
isRoundRect: (product === null || product === void 0 || (_product$ribbon3 = product.ribbon) === null || _product$ribbon3 === void 0 ? void 0 : _product$ribbon3.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
|
|
84
|
+
isCapsule: (product === null || product === void 0 || (_product$ribbon4 = product.ribbon) === null || _product$ribbon4 === void 0 ? void 0 : _product$ribbon4.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape)
|
|
85
|
+
}, product === null || product === void 0 || (_product$ribbon5 = product.ribbon) === null || _product$ribbon5 === void 0 ? void 0 : _product$ribbon5.text), /*#__PURE__*/_react.default.createElement(_styles.CardLogo, {
|
|
86
86
|
className: "image",
|
|
87
87
|
soldOut: maxProductQuantity <= 0,
|
|
88
|
-
bgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0
|
|
88
|
+
bgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 || (_theme$images3 = theme.images) === null || _theme$images3 === void 0 || (_theme$images3 = _theme$images3.dummies) === null || _theme$images3 === void 0 ? void 0 : _theme$images3.product), 'h_86,c_limit')
|
|
89
89
|
})), maxProductQuantity <= 0 && /*#__PURE__*/_react.default.createElement(_styles.SoldOut, {
|
|
90
|
-
isBottom: product === null || product === void 0
|
|
90
|
+
isBottom: product === null || product === void 0 || (_product$ribbon6 = product.ribbon) === null || _product$ribbon6 === void 0 ? void 0 : _product$ribbon6.enabled
|
|
91
91
|
}, t('SOLD_OUT', 'SOLD OUT')))));
|
|
92
92
|
};
|
|
93
93
|
var SingleProductCard = function SingleProductCard(props) {
|
|
@@ -20,11 +20,11 @@ var CardContainer = _styledComponents.default.div(_templateObject || (_templateO
|
|
|
20
20
|
var _theme$colors;
|
|
21
21
|
var soldOut = _ref2.soldOut,
|
|
22
22
|
theme = _ref2.theme;
|
|
23
|
-
return soldOut ? '#6c757d33' : theme === null || theme === void 0
|
|
23
|
+
return soldOut ? '#6c757d33' : theme === null || theme === void 0 || (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.backgroundPage;
|
|
24
24
|
}, function (_ref3) {
|
|
25
|
-
var _theme$business_view
|
|
25
|
+
var _theme$business_view;
|
|
26
26
|
var theme = _ref3.theme;
|
|
27
|
-
return (theme === null || theme === void 0
|
|
27
|
+
return (theme === null || theme === void 0 || (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.products) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.product) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.image) === null || _theme$business_view === void 0 ? void 0 : _theme$business_view.position) === 'right' ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-direction: row-reverse;\n "]))) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex-direction: row;\n "])));
|
|
28
28
|
}, function (_ref4) {
|
|
29
29
|
var productsRows = _ref4.productsRows;
|
|
30
30
|
return productsRows ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: ", ";\n margin: 10px 0;\n\n "])), function () {
|
|
@@ -66,9 +66,9 @@ var WrapLogo = _styledComponents.default.div(_templateObject18 || (_templateObje
|
|
|
66
66
|
var isBgimage = _ref9.isBgimage;
|
|
67
67
|
return isBgimage && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n width: 86px;\n "])));
|
|
68
68
|
}, function (_ref10) {
|
|
69
|
-
var _theme$business_view2
|
|
69
|
+
var _theme$business_view2;
|
|
70
70
|
var theme = _ref10.theme;
|
|
71
|
-
return (theme === null || theme === void 0
|
|
71
|
+
return (theme === null || theme === void 0 || (_theme$business_view2 = theme.business_view) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.components) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.products) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.components) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.product) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.components) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.image) === null || _theme$business_view2 === void 0 ? void 0 : _theme$business_view2.position) === 'right' ? (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 5px;\n "]))) : (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n margin-right: 5px;\n "])));
|
|
72
72
|
}, function (props) {
|
|
73
73
|
var _props$theme5;
|
|
74
74
|
return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
|