ordering-ui-external 10.3.0 → 10.3.1
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/{7.ordering-ui.e758aec40c3bf292cadb.js → 7.ordering-ui.8c57feb440eaccd495a4.js} +1 -1
- package/_bundles/ordering-ui.8c57feb440eaccd495a4.js +2 -0
- package/_modules/components/AddressDetails/index.js +4 -4
- package/_modules/components/AddressForm/index.js +30 -30
- package/_modules/components/AddressList/index.js +11 -11
- package/_modules/components/AddressesPopover/index.js +2 -2
- package/_modules/components/AppleLogin/index.js +4 -4
- package/_modules/components/AutoScroll/index.js +2 -2
- package/_modules/components/BusinessBasicInformation/index.js +11 -11
- package/_modules/components/BusinessController/index.js +12 -12
- package/_modules/components/BusinessInformation/index.js +8 -8
- package/_modules/components/BusinessInformation/styles.js +2 -2
- package/_modules/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/components/BusinessProductsCategories/layouts/groceries/index.js +1 -1
- package/_modules/components/BusinessProductsList/index.js +4 -4
- package/_modules/components/BusinessProductsList/layouts/groceries/index.js +13 -13
- package/_modules/components/BusinessProductsListing/index.js +19 -19
- package/_modules/components/BusinessTypeFilter/index.js +2 -2
- package/_modules/components/BusinessesListing/index.js +9 -9
- package/_modules/components/BusinessesListing/styles.js +2 -2
- package/_modules/components/BusinessesMap/index.js +3 -3
- package/_modules/components/CancellationComponent/index.js +5 -5
- package/_modules/components/Cart/index.js +24 -24
- package/_modules/components/Cart/styles.js +4 -4
- package/_modules/components/CartContent/index.js +2 -2
- package/_modules/components/Checkout/index.js +25 -25
- package/_modules/components/DriverTips/index.js +3 -3
- package/_modules/components/Dropdown/index.js +2 -2
- package/_modules/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/components/Header/index.js +30 -30
- package/_modules/components/HomeHero/index.js +11 -11
- package/_modules/components/HorizontalOrdersLayout/index.js +6 -6
- package/_modules/components/InputPhoneNumber/index.js +3 -3
- package/_modules/components/LanguageSelector/index.js +1 -1
- package/_modules/components/LastOrders/index.js +7 -7
- package/_modules/components/LoginForm/index.js +20 -20
- package/_modules/components/LogoutButton/index.js +2 -2
- package/_modules/components/Messages/index.js +4 -4
- package/_modules/components/Messages/styles.js +2 -2
- package/_modules/components/MomentContent/index.js +3 -3
- package/_modules/components/MomentControl/index.js +6 -6
- package/_modules/components/MomentPopover/index.js +2 -2
- package/_modules/components/NotFoundSource/index.js +2 -2
- package/_modules/components/NotNetworkConnectivity/index.js +2 -2
- package/_modules/components/OrderDetails/index.js +91 -91
- package/_modules/components/OrderDetails/styles.js +2 -2
- package/_modules/components/OrderSuccessModal/index.js +10 -10
- package/_modules/components/OrdersOption/index.js +26 -26
- package/_modules/components/PageNotFound/index.js +5 -5
- package/_modules/components/PaymentOptionCash/index.js +2 -2
- package/_modules/components/PaymentOptionPaypal/index.js +1 -1
- package/_modules/components/PaymentOptionStripe/index.js +1 -1
- package/_modules/components/PaymentOptions/index.js +26 -26
- package/_modules/components/PhoneAutocomplete/index.js +7 -7
- package/_modules/components/PhoneAutocomplete/styles.js +6 -6
- package/_modules/components/ProductForm/index.js +15 -15
- package/_modules/components/ProductItemAccordion/index.js +2 -2
- package/_modules/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/components/RenderProductsLayout/SearchProducts/index.js +4 -4
- package/_modules/components/RenderProductsLayout/index.js +16 -16
- package/_modules/components/ResetPassword/index.js +9 -9
- package/_modules/components/ReviewDriver/index.js +4 -4
- package/_modules/components/ReviewOrder/index.js +4 -4
- package/_modules/components/ReviewProduct/index.js +1 -1
- package/_modules/components/SearchBar/index.js +2 -2
- package/_modules/components/SearchBar/styles.js +6 -6
- package/_modules/components/SignUpForm/index.js +25 -25
- package/_modules/components/SingleProductCard/index.js +4 -4
- package/_modules/components/SmartAppBanner/index.js +2 -2
- package/_modules/components/StripeMethodForm/index.js +7 -7
- package/_modules/components/UpsellingPage/index.js +1 -1
- package/_modules/components/UserFormDetails/index.js +13 -13
- package/_modules/components/UserPopover/index.js +4 -4
- package/_modules/components/UserProfileForm/ProfileOptions/index.js +2 -2
- package/_modules/components/UserProfileForm/index.js +11 -11
- package/_modules/components/VerticalOrdersLayout/SingleOrderCard/index.js +15 -15
- package/_modules/hooks/useRecaptcha.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/AddressDetails/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/AddressForm/index.js +30 -30
- package/_modules/themes/callcenterOriginal/src/components/AddressList/index.js +11 -11
- package/_modules/themes/callcenterOriginal/src/components/AdminAreaPopover/styles.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/BusinessBasicInformation/index.js +8 -8
- package/_modules/themes/callcenterOriginal/src/components/BusinessController/index.js +10 -10
- package/_modules/themes/callcenterOriginal/src/components/BusinessInformation/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessMenuList/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessPreorder/index.js +7 -7
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsCategories/layouts/groceries/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/index.js +10 -10
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/index.js +14 -14
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsListing/index.js +17 -17
- package/_modules/themes/callcenterOriginal/src/components/BusinessReviews/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/BusinessesListing/index.js +9 -9
- package/_modules/themes/callcenterOriginal/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Cart/index.js +29 -29
- package/_modules/themes/callcenterOriginal/src/components/Cart/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/CartContent/index.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/Checkout/index.js +27 -27
- package/_modules/themes/callcenterOriginal/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Header/index.js +27 -27
- package/_modules/themes/callcenterOriginal/src/components/Header/styles.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/HighestRated/index.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/HomeHero/index.js +8 -8
- package/_modules/themes/callcenterOriginal/src/components/HorizontalOrdersLayout/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/LanguageSelector/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +8 -8
- package/_modules/themes/callcenterOriginal/src/components/Messages/index.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/MessagesListing/index.js +30 -30
- package/_modules/themes/callcenterOriginal/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/MomentControl/index.js +5 -5
- package/_modules/themes/callcenterOriginal/src/components/NotFoundSource/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/OrderDetails/index.js +68 -68
- package/_modules/themes/callcenterOriginal/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/OrderProgress/index.js +28 -28
- package/_modules/themes/callcenterOriginal/src/components/OrderTypeSelectorContent/index.js +7 -7
- package/_modules/themes/callcenterOriginal/src/components/OrderTypeSelectorHeader/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +32 -32
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +11 -11
- package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +21 -21
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +26 -26
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +9 -9
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +8 -8
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +35 -35
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +24 -24
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +10 -10
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +5 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +7 -7
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +31 -31
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriverMapMarkerAndInfo/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversLocation/index.js +15 -15
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleMapsApiKeySettingButton/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/InterActOrderMarker/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +16 -16
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +46 -46
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +22 -22
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderLogisticInformation/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderStatusFilterBar/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +22 -22
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +5 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +29 -29
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +55 -55
- package/_modules/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/ReviewCustomer/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +11 -11
- package/_modules/themes/callcenterOriginal/src/components/OrdersOption/index.js +26 -26
- package/_modules/themes/callcenterOriginal/src/components/PageNotFound/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/PaymentOptionStripe/index.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/PaymentOptions/index.js +19 -19
- package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/index.js +12 -12
- package/_modules/themes/callcenterOriginal/src/components/PhoneAutocomplete/styles.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/ProductForm/index.js +15 -15
- package/_modules/themes/callcenterOriginal/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/RenderProductsLayout/index.js +15 -15
- package/_modules/themes/callcenterOriginal/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/DragScroll/index.js +5 -5
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/NotFoundSource/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/Personalization/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Shared/SelectBusinessCategories/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/SelectBusinessProducts/index.js +7 -7
- package/_modules/themes/callcenterOriginal/src/components/Shared/SelectBusinesses/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Shared/SelectLoyaltyLevels/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/SelectSites/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/SpreadSheetEditor/index.js +21 -21
- package/_modules/themes/callcenterOriginal/src/components/SidebarMenu/index.js +5 -5
- package/_modules/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +11 -11
- package/_modules/themes/callcenterOriginal/src/components/SignUpForm/index.js +15 -15
- package/_modules/themes/callcenterOriginal/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/UserDetails/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/callcenterOriginal/src/components/UserPopover/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/components/UserProfileForm/index.js +3 -3
- package/_modules/themes/callcenterOriginal/src/styles/Select/DashboardSelect/index.js +1 -1
- package/_modules/themes/eight/src/components/AddressDetails/index.js +2 -2
- package/_modules/themes/eight/src/components/AddressForm/index.js +31 -31
- package/_modules/themes/eight/src/components/AddressList/index.js +13 -13
- package/_modules/themes/eight/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/eight/src/components/AutoScroll/index.js +2 -2
- package/_modules/themes/eight/src/components/BusinessCart/index.js +2 -2
- package/_modules/themes/eight/src/components/BusinessController/index.js +10 -10
- package/_modules/themes/eight/src/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/themes/eight/src/components/BusinessProductsCategories/index.js +2 -2
- package/_modules/themes/eight/src/components/BusinessProductsList/index.js +4 -4
- package/_modules/themes/eight/src/components/BusinessProductsListing/index.js +18 -18
- package/_modules/themes/eight/src/components/BusinessesListing/index.js +9 -9
- package/_modules/themes/eight/src/components/Cart/index.js +7 -7
- package/_modules/themes/eight/src/components/CartContent/index.js +2 -2
- package/_modules/themes/eight/src/components/CartStoresListing/index.js +4 -4
- package/_modules/themes/eight/src/components/Checkout/index.js +22 -22
- package/_modules/themes/eight/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/eight/src/components/Header/index.js +20 -20
- package/_modules/themes/eight/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/eight/src/components/HomeHero/index.js +3 -3
- package/_modules/themes/eight/src/components/InputPhoneNumber/index.js +3 -3
- package/_modules/themes/eight/src/components/LanguageSelector/index.js +1 -1
- package/_modules/themes/eight/src/components/LoginForm/index.js +16 -16
- package/_modules/themes/eight/src/components/MomentContent/index.js +3 -3
- package/_modules/themes/eight/src/components/MomentControl/index.js +2 -2
- package/_modules/themes/eight/src/components/NavBar/index.js +2 -2
- package/_modules/themes/eight/src/components/OrderDetails/index.js +50 -50
- package/_modules/themes/eight/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/eight/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/eight/src/components/PaymentOptions/index.js +20 -20
- package/_modules/themes/eight/src/components/ProductForm/index.js +18 -18
- package/_modules/themes/eight/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/eight/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/eight/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/eight/src/components/SidebarMenu/index.js +3 -3
- package/_modules/themes/eight/src/components/SignUpForm/index.js +23 -23
- package/_modules/themes/eight/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/eight/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/eight/src/components/UserProfileForm/index.js +3 -3
- package/_modules/themes/five/src/components/AccordionDropdown/styles.js +2 -2
- package/_modules/themes/five/src/components/AddressDetails/index.js +2 -2
- package/_modules/themes/five/src/components/AddressForm/index.js +37 -37
- package/_modules/themes/five/src/components/AddressList/index.js +17 -17
- package/_modules/themes/five/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js +21 -21
- package/_modules/themes/five/src/components/BusinessBasicInformation/SearchComponent.js +2 -2
- package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +12 -12
- package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessController/index.js +30 -30
- package/_modules/themes/five/src/components/BusinessInformation/index.js +12 -12
- package/_modules/themes/five/src/components/BusinessInformation/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +7 -7
- package/_modules/themes/five/src/components/BusinessListingSearch/MaxSectionItem/index.js +1 -1
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +32 -32
- package/_modules/themes/five/src/components/BusinessMenuList/index.js +2 -2
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +12 -12
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +33 -30
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +3 -3
- package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsList/index.js +37 -37
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +27 -27
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +36 -36
- package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessReviews/index.js +6 -6
- package/_modules/themes/five/src/components/BusinessTypeFilter/index.js +4 -4
- package/_modules/themes/five/src/components/BusinessesListing/index.js +2 -2
- package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +12 -12
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +49 -49
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +4 -4
- package/_modules/themes/five/src/components/BusinessesListing/layouts/RedBusinessesListing/index.js +14 -14
- package/_modules/themes/five/src/components/BusinessesListing/layouts/RedBusinessesListing/styles.js +2 -2
- package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +14 -14
- package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +4 -4
- package/_modules/themes/five/src/components/CardForm/index.js +3 -3
- package/_modules/themes/five/src/components/CardFormCustom/index.js +2 -2
- package/_modules/themes/five/src/components/Cart/index.js +47 -47
- package/_modules/themes/five/src/components/Cart/styles.js +4 -4
- package/_modules/themes/five/src/components/CartContent/index.js +13 -13
- package/_modules/themes/five/src/components/CartPopover/index.js +4 -4
- package/_modules/themes/five/src/components/CartPopover/styles.js +2 -2
- package/_modules/themes/five/src/components/Checkout/index.js +53 -53
- package/_modules/themes/five/src/components/CitiesControl/index.js +2 -2
- package/_modules/themes/five/src/components/Confirm/styles.js +2 -2
- package/_modules/themes/five/src/components/DriverTips/index.js +4 -4
- package/_modules/themes/five/src/components/Favorite/index.js +3 -3
- package/_modules/themes/five/src/components/FavoriteList/index.js +25 -25
- package/_modules/themes/five/src/components/Footer/index.js +3 -3
- package/_modules/themes/five/src/components/ForgotPasswordForm/index.js +3 -3
- package/_modules/themes/five/src/components/GiftCard/PurchaseGiftCard/index.js +2 -2
- package/_modules/themes/five/src/components/GiftCard/RedeemGiftCard/index.js +1 -1
- package/_modules/themes/five/src/components/Header/index.js +43 -43
- package/_modules/themes/five/src/components/Header/layouts/Kiosk/index.js +7 -7
- package/_modules/themes/five/src/components/Header/styles.js +14 -14
- package/_modules/themes/five/src/components/HeaderOption/index.js +3 -3
- package/_modules/themes/five/src/components/HighestRated/index.js +7 -7
- package/_modules/themes/five/src/components/HomeHero/index.js +5 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +5 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +25 -25
- package/_modules/themes/five/src/components/HomeHero/layouts/RedHomeHero/index.js +16 -16
- package/_modules/themes/five/src/components/HomeHero/layouts/StarbucksHomeHero/index.js +3 -3
- package/_modules/themes/five/src/components/HomeHero/layouts/StarbucksHomeHero/styles.js +4 -4
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +1 -1
- package/_modules/themes/five/src/components/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/five/src/components/LanguageSelector/index.js +1 -1
- package/_modules/themes/five/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/five/src/components/LoginForm/index.js +27 -27
- package/_modules/themes/five/src/components/LogoutPopup/index.js +2 -2
- package/_modules/themes/five/src/components/Messages/MapMessages.js +2 -2
- package/_modules/themes/five/src/components/Messages/index.js +6 -6
- package/_modules/themes/five/src/components/MessagesListing/index.js +6 -6
- package/_modules/themes/five/src/components/Modal/styles.js +1 -1
- package/_modules/themes/five/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/five/src/components/MomentControl/Layouts/CustomLayout/index.js +1 -1
- package/_modules/themes/five/src/components/MomentControl/index.js +7 -7
- package/_modules/themes/five/src/components/MomentControl/styles.js +2 -2
- package/_modules/themes/five/src/components/MultiCartsPaymethodsAndWallets/index.js +15 -15
- package/_modules/themes/five/src/components/MultiCheckout/index.js +41 -41
- package/_modules/themes/five/src/components/MultiOrdersDetails/SingleOrderCard.js +8 -8
- package/_modules/themes/five/src/components/MultiOrdersDetails/index.js +5 -5
- package/_modules/themes/five/src/components/MultiOrdersDetails/styles.js +2 -2
- package/_modules/themes/five/src/components/MyOrders/index.js +4 -4
- package/_modules/themes/five/src/components/NavigationBar/index.js +6 -6
- package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +2 -2
- package/_modules/themes/five/src/components/OrderContextUI/index.js +9 -9
- package/_modules/themes/five/src/components/OrderDetails/ActionsSection.js +2 -2
- package/_modules/themes/five/src/components/OrderDetails/OrderActionsSection.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +36 -36
- package/_modules/themes/five/src/components/OrderDetails/OrderEta.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/OrderHeaderInfoSection.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/OrderHistory.js +2 -2
- package/_modules/themes/five/src/components/OrderDetails/OrderPreferencesSections.js +1 -1
- package/_modules/themes/five/src/components/OrderDetails/index.js +67 -67
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +42 -42
- package/_modules/themes/five/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/five/src/components/OrderItAgain/styles.js +2 -2
- package/_modules/themes/five/src/components/OrderProgress/index.js +8 -8
- package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +22 -22
- package/_modules/themes/five/src/components/OrderTypeSelectorContent/layouts/Kiosk/index.js +7 -7
- package/_modules/themes/five/src/components/OrderTypeSelectorHeader/index.js +1 -1
- package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +5 -5
- package/_modules/themes/five/src/components/OrdersOption/PreviousProductsOrdered/index.js +4 -4
- package/_modules/themes/five/src/components/OrdersOption/index.js +13 -13
- package/_modules/themes/five/src/components/PageBanner/index.js +5 -5
- package/_modules/themes/five/src/components/PaymentOptionCard/index.js +1 -1
- package/_modules/themes/five/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/five/src/components/PaymentOptionStripe/index.js +8 -8
- package/_modules/themes/five/src/components/PaymentOptionStripe/styles.js +1 -1
- package/_modules/themes/five/src/components/PaymentOptionWallet/index.js +3 -3
- package/_modules/themes/five/src/components/PaymentOptions/index.js +35 -35
- package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +12 -12
- package/_modules/themes/five/src/components/PhoneAutocomplete/styles.js +6 -6
- package/_modules/themes/five/src/components/PlaceSpot/index.js +14 -14
- package/_modules/themes/five/src/components/ProductForm/index.js +34 -34
- package/_modules/themes/five/src/components/ProductForm/styles.js +18 -18
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +8 -8
- package/_modules/themes/five/src/components/ProductOption/styles.js +2 -2
- package/_modules/themes/five/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/five/src/components/ProductShare/ProductCopyURL.js +2 -2
- package/_modules/themes/five/src/components/ProfessionalBusinessFilter/index.js +1 -1
- package/_modules/themes/five/src/components/ProfessionalInfo/index.js +4 -4
- package/_modules/themes/five/src/components/Promotions/index.js +6 -6
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +32 -32
- package/_modules/themes/five/src/components/ResetPassword/index.js +8 -8
- package/_modules/themes/five/src/components/ReviewDriver/index.js +4 -4
- package/_modules/themes/five/src/components/ReviewOrder/index.js +7 -7
- package/_modules/themes/five/src/components/ReviewProduct/index.js +4 -4
- package/_modules/themes/five/src/components/ReviewProfessional/index.js +5 -5
- package/_modules/themes/five/src/components/ReviewTrigger/index.js +5 -5
- package/_modules/themes/five/src/components/ScheduleAccordion/index.js +1 -1
- package/_modules/themes/five/src/components/ScheduleAccordion/styles.js +2 -2
- package/_modules/themes/five/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/five/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/five/src/components/SearchProducts/index.js +6 -6
- package/_modules/themes/five/src/components/ServiceForm/index.js +40 -34
- package/_modules/themes/five/src/components/SidebarMenu/index.js +17 -17
- package/_modules/themes/five/src/components/SignUpApproval/index.js +2 -2
- package/_modules/themes/five/src/components/SignUpBusiness/layouts/NewSignUpBusiness/index.js +14 -14
- package/_modules/themes/five/src/components/SignUpBusiness/layouts/OldSignUpBusiness/index.js +14 -14
- package/_modules/themes/five/src/components/SignUpDriver/layouts/NewSignUpDriver/index.js +14 -14
- package/_modules/themes/five/src/components/SignUpDriver/layouts/OldSignUpDriver/index.js +14 -14
- package/_modules/themes/five/src/components/SignUpForm/index.js +39 -39
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +23 -23
- package/_modules/themes/five/src/components/SingleProductCard/index.js +2 -2
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +19 -19
- package/_modules/themes/five/src/components/SingleProductCard/layouts/original/styles.js +5 -5
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +17 -17
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +6 -6
- package/_modules/themes/five/src/components/SingleProfessionalCard/index.js +1 -1
- package/_modules/themes/five/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/five/src/components/UserDetails/index.js +3 -3
- package/_modules/themes/five/src/components/UserFormDetails/index.js +23 -23
- package/_modules/themes/five/src/components/UserPopover/index.js +20 -20
- package/_modules/themes/five/src/components/UserPopover/styles.js +2 -2
- package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +2 -2
- package/_modules/themes/five/src/components/UserProfileForm/index.js +20 -20
- package/_modules/themes/five/src/components/UserVerification/index.js +7 -7
- package/_modules/themes/five/src/components/WalletTransactionItem/index.js +3 -3
- package/_modules/themes/five/src/components/Wallets/index.js +7 -7
- package/_modules/themes/five/src/styles/Buttons/index.js +17 -17
- package/_modules/themes/five/src/styles/Inputs/index.js +12 -12
- package/_modules/themes/four/src/components/AddressDetails/index.js +7 -7
- package/_modules/themes/four/src/components/AddressForm/index.js +31 -31
- package/_modules/themes/four/src/components/AddressList/index.js +11 -11
- package/_modules/themes/four/src/components/AddressesPopover/index.js +4 -4
- package/_modules/themes/four/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/four/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/four/src/components/BusinessBasicInformation/index.js +13 -13
- package/_modules/themes/four/src/components/BusinessController/index.js +8 -8
- package/_modules/themes/four/src/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +1 -1
- package/_modules/themes/four/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +13 -13
- package/_modules/themes/four/src/components/BusinessProductsListing/index.js +12 -12
- package/_modules/themes/four/src/components/BusinessesListing/index.js +8 -8
- package/_modules/themes/four/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/four/src/components/Cart/index.js +14 -14
- package/_modules/themes/four/src/components/CartContent/index.js +2 -2
- package/_modules/themes/four/src/components/Checkout/index.js +29 -29
- package/_modules/themes/four/src/components/DriverTips/index.js +3 -3
- package/_modules/themes/four/src/components/ForgotPasswordForm/index.js +3 -3
- package/_modules/themes/four/src/components/Header/index.js +26 -26
- package/_modules/themes/four/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/four/src/components/HomeHero/index.js +11 -11
- package/_modules/themes/four/src/components/HorizontalOrdersLayout/index.js +6 -6
- package/_modules/themes/four/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/four/src/components/LoginForm/index.js +17 -17
- package/_modules/themes/four/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/four/src/components/MomentControl/index.js +2 -2
- package/_modules/themes/four/src/components/MomentPopover/index.js +2 -2
- package/_modules/themes/four/src/components/NotFoundSource/index.js +2 -2
- package/_modules/themes/four/src/components/OrderDetails/index.js +57 -57
- package/_modules/themes/four/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/four/src/components/OrdersOption/index.js +26 -26
- package/_modules/themes/four/src/components/ProductForm/index.js +16 -16
- package/_modules/themes/four/src/components/RenderProductsLayout/index.js +16 -16
- package/_modules/themes/four/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/four/src/components/SignUpForm/index.js +21 -21
- package/_modules/themes/four/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/four/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/four/src/components/UserProfileForm/index.js +3 -3
- package/_modules/themes/four/src/components/VerticalOrdersLayout/index.js +3 -3
- package/_modules/themes/franchise/src/components/AddressDetails/index.js +4 -4
- package/_modules/themes/franchise/src/components/AddressForm/index.js +30 -30
- package/_modules/themes/franchise/src/components/AddressList/index.js +11 -11
- package/_modules/themes/franchise/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/franchise/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/franchise/src/components/BusinessBasicInformation/index.js +11 -11
- package/_modules/themes/franchise/src/components/BusinessController/index.js +8 -8
- package/_modules/themes/franchise/src/components/BusinessInformation/index.js +1 -1
- package/_modules/themes/franchise/src/components/BusinessItemAccordion/index.js +1 -1
- package/_modules/themes/franchise/src/components/BusinessProductsList/index.js +6 -6
- package/_modules/themes/franchise/src/components/BusinessProductsListing/index.js +25 -25
- package/_modules/themes/franchise/src/components/BusinessReviews/index.js +2 -2
- package/_modules/themes/franchise/src/components/BusinessesListing/index.js +15 -15
- package/_modules/themes/franchise/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/franchise/src/components/BusinessesMap/index.js +3 -3
- package/_modules/themes/franchise/src/components/Cart/index.js +10 -10
- package/_modules/themes/franchise/src/components/CartContent/index.js +2 -2
- package/_modules/themes/franchise/src/components/CartStoresListing/index.js +4 -4
- package/_modules/themes/franchise/src/components/Checkout/index.js +21 -21
- package/_modules/themes/franchise/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/franchise/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/franchise/src/components/Header/index.js +32 -32
- package/_modules/themes/franchise/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/franchise/src/components/HomeHero/index.js +7 -7
- package/_modules/themes/franchise/src/components/HorizontalOrdersLayout/index.js +3 -3
- package/_modules/themes/franchise/src/components/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/franchise/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/franchise/src/components/LoginForm/index.js +15 -15
- package/_modules/themes/franchise/src/components/Messages/index.js +5 -5
- package/_modules/themes/franchise/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/franchise/src/components/MomentControl/index.js +2 -2
- package/_modules/themes/franchise/src/components/MySavedPlaces/index.js +2 -2
- package/_modules/themes/franchise/src/components/OrderDetails/index.js +59 -59
- package/_modules/themes/franchise/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/franchise/src/components/OrderTypeSelectorContent/index.js +7 -7
- package/_modules/themes/franchise/src/components/OrderTypeSelectorHeader/index.js +1 -1
- package/_modules/themes/franchise/src/components/OrdersOption/index.js +26 -26
- package/_modules/themes/franchise/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/franchise/src/components/PaymentOptionStripe/index.js +6 -6
- package/_modules/themes/franchise/src/components/PaymentOptions/index.js +19 -19
- package/_modules/themes/franchise/src/components/ProductForm/index.js +15 -15
- package/_modules/themes/franchise/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/franchise/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/franchise/src/components/SidebarMenu/index.js +5 -5
- package/_modules/themes/franchise/src/components/SignUpForm/index.js +21 -21
- package/_modules/themes/franchise/src/components/SingleProductCard/index.js +10 -10
- package/_modules/themes/franchise/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/franchise/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/franchise/src/components/UserPopover/index.js +4 -4
- package/_modules/themes/franchise/src/components/UserProfileForm/index.js +3 -3
- package/_modules/themes/orderAndPay/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/orderAndPay/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/orderAndPay/src/components/BusinessItemAccordion/index.js +1 -1
- package/_modules/themes/orderAndPay/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/orderAndPay/src/components/BusinessProductsListing/index.js +17 -17
- package/_modules/themes/orderAndPay/src/components/BusinessReviews/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/Cart/index.js +9 -9
- package/_modules/themes/orderAndPay/src/components/CartContent/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/Checkout/index.js +22 -22
- package/_modules/themes/orderAndPay/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +13 -13
- package/_modules/themes/orderAndPay/src/components/LogoutButton/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/Messages/index.js +5 -5
- package/_modules/themes/orderAndPay/src/components/OrderDetails/index.js +52 -52
- package/_modules/themes/orderAndPay/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/orderAndPay/src/components/OrderTypeSelectorContent/index.js +13 -13
- package/_modules/themes/orderAndPay/src/components/OrdersOption/index.js +26 -26
- package/_modules/themes/orderAndPay/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/PaymentOptions/index.js +22 -22
- package/_modules/themes/orderAndPay/src/components/ProductForm/index.js +18 -18
- package/_modules/themes/orderAndPay/src/components/ProductItemAccordion/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/orderAndPay/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/orderAndPay/src/components/SignUpForm/index.js +19 -19
- package/_modules/themes/orderAndPay/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/orderAndPay/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/orderAndPay/src/components/UserDetails/styles.js +2 -2
- package/_modules/themes/orderAndPay/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/orderAndPay/src/components/UserPopover/index.js +4 -4
- package/_modules/themes/orderAndPay/src/components/VerticalOrdersLayout/index.js +3 -3
- package/_modules/themes/pwa/src/components/AddressDetails/index.js +2 -2
- package/_modules/themes/pwa/src/components/AddressForm/index.js +29 -29
- package/_modules/themes/pwa/src/components/AddressList/index.js +11 -11
- package/_modules/themes/pwa/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/pwa/src/components/AutoScroll/index.js +2 -2
- package/_modules/themes/pwa/src/components/BusinessBasicInformation/index.js +11 -11
- package/_modules/themes/pwa/src/components/BusinessController/index.js +11 -11
- package/_modules/themes/pwa/src/components/BusinessInformation/index.js +1 -1
- package/_modules/themes/pwa/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/pwa/src/components/BusinessProductsListing/index.js +28 -28
- package/_modules/themes/pwa/src/components/BusinessReviews/index.js +2 -2
- package/_modules/themes/pwa/src/components/BusinessesListing/index.js +15 -15
- package/_modules/themes/pwa/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/pwa/src/components/Cart/index.js +10 -10
- package/_modules/themes/pwa/src/components/CartContent/index.js +2 -2
- package/_modules/themes/pwa/src/components/Checkout/index.js +20 -20
- package/_modules/themes/pwa/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/pwa/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/pwa/src/components/Header/index.js +28 -28
- package/_modules/themes/pwa/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/pwa/src/components/HomeHero/index.js +16 -16
- package/_modules/themes/pwa/src/components/HorizontalOrdersLayout/index.js +4 -4
- package/_modules/themes/pwa/src/components/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/pwa/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/pwa/src/components/LoginForm/index.js +12 -12
- package/_modules/themes/pwa/src/components/Messages/index.js +4 -4
- package/_modules/themes/pwa/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/pwa/src/components/MomentControl/index.js +2 -2
- package/_modules/themes/pwa/src/components/MomentPopover/index.js +2 -2
- package/_modules/themes/pwa/src/components/NavigationBar/index.js +1 -1
- package/_modules/themes/pwa/src/components/OrderDetails/index.js +58 -58
- package/_modules/themes/pwa/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/pwa/src/components/OrderTypeSelectorContent/index.js +7 -7
- package/_modules/themes/pwa/src/components/OrderTypeSelectorHeader/index.js +1 -1
- package/_modules/themes/pwa/src/components/OrdersOption/index.js +26 -26
- package/_modules/themes/pwa/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/pwa/src/components/PaymentOptionStripe/index.js +6 -6
- package/_modules/themes/pwa/src/components/PaymentOptions/index.js +27 -27
- package/_modules/themes/pwa/src/components/ProductForm/index.js +15 -15
- package/_modules/themes/pwa/src/components/ReviewOrder/index.js +3 -3
- package/_modules/themes/pwa/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/pwa/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/pwa/src/components/SidebarMenu/index.js +5 -5
- package/_modules/themes/pwa/src/components/SignUpForm/index.js +16 -16
- package/_modules/themes/pwa/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/pwa/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/pwa/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/pwa/src/components/UserPopover/index.js +4 -4
- package/_modules/themes/pwa/src/components/UserProfile/index.js +5 -5
- package/_modules/themes/pwa/src/components/VerticalOrdersLayout/index.js +4 -4
- package/_modules/themes/seven/src/components/AddressForm/index.js +29 -29
- package/_modules/themes/seven/src/components/AddressList/index.js +11 -11
- package/_modules/themes/seven/src/components/BusinessBasicInformation/index.js +1 -1
- package/_modules/themes/seven/src/components/BusinessController/index.js +6 -6
- package/_modules/themes/seven/src/components/BusinessInformation/index.js +7 -7
- package/_modules/themes/seven/src/components/BusinessInformation/styles.js +2 -2
- package/_modules/themes/seven/src/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/themes/seven/src/components/BusinessProductsCategories/index.js +1 -1
- package/_modules/themes/seven/src/components/BusinessProductsList/index.js +3 -3
- package/_modules/themes/seven/src/components/BusinessProductsListing/index.js +16 -16
- package/_modules/themes/seven/src/components/BusinessesListing/index.js +13 -13
- package/_modules/themes/seven/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/seven/src/components/BusinessesMap/index.js +3 -3
- package/_modules/themes/seven/src/components/Cart/index.js +6 -6
- package/_modules/themes/seven/src/components/CartContent/index.js +2 -2
- package/_modules/themes/seven/src/components/Checkout/index.js +21 -21
- package/_modules/themes/seven/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/seven/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/seven/src/components/Header/index.js +16 -16
- package/_modules/themes/seven/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/seven/src/components/HomeHero/index.js +17 -17
- package/_modules/themes/seven/src/components/HorizontalOrdersLayout/index.js +6 -6
- package/_modules/themes/seven/src/components/InputPhoneNumber/index.js +2 -2
- package/_modules/themes/seven/src/components/LanguageSelector/index.js +1 -1
- package/_modules/themes/seven/src/components/LoginForm/index.js +14 -14
- package/_modules/themes/seven/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/seven/src/components/MomentControl/index.js +2 -2
- package/_modules/themes/seven/src/components/OrderDetails/index.js +48 -48
- package/_modules/themes/seven/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/seven/src/components/OrdersOption/index.js +26 -26
- package/_modules/themes/seven/src/components/PaymentOptionCash/index.js +1 -1
- package/_modules/themes/seven/src/components/PaymentOptions/index.js +20 -20
- package/_modules/themes/seven/src/components/ProductForm/index.js +20 -20
- package/_modules/themes/seven/src/components/ProductForm/productForm.js +6 -6
- package/_modules/themes/seven/src/components/SignUpForm/index.js +19 -19
- package/_modules/themes/seven/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/seven/src/components/UserFormDetails/index.js +10 -10
- package/_modules/themes/seven/src/components/UserPopover/index.js +4 -4
- package/_modules/themes/seven/src/components/UserProfileForm/index.js +3 -3
- package/_modules/themes/seven/src/components/VerticalOrdersLayout/index.js +3 -3
- package/_modules/themes/six/src/components/AddressDetails/index.js +4 -4
- package/_modules/themes/six/src/components/AddressForm/index.js +30 -30
- package/_modules/themes/six/src/components/AddressList/index.js +11 -11
- package/_modules/themes/six/src/components/AddressesPopover/index.js +2 -2
- package/_modules/themes/six/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +9 -9
- package/_modules/themes/six/src/components/BusinessController/index.js +17 -17
- package/_modules/themes/six/src/components/BusinessController/styles.js +10 -10
- package/_modules/themes/six/src/components/BusinessInformation/index.js +3 -3
- package/_modules/themes/six/src/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/themes/six/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +5 -5
- package/_modules/themes/six/src/components/BusinessProductsListing/index.js +25 -25
- package/_modules/themes/six/src/components/BusinessesListing/index.js +10 -10
- package/_modules/themes/six/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/six/src/components/BusinessesMap/index.js +3 -3
- package/_modules/themes/six/src/components/Cart/index.js +9 -9
- package/_modules/themes/six/src/components/CartContent/index.js +2 -2
- package/_modules/themes/six/src/components/CartInfo/index.js +5 -5
- package/_modules/themes/six/src/components/Checkout/index.js +14 -14
- package/_modules/themes/six/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/six/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/six/src/components/Header/index.js +23 -23
- package/_modules/themes/six/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/six/src/components/HomeHero/index.js +3 -3
- package/_modules/themes/six/src/components/LanguageSelector/index.js +1 -1
- package/_modules/themes/six/src/components/LoginForm/index.js +18 -18
- package/_modules/themes/six/src/components/LogoutButton/index.js +2 -2
- package/_modules/themes/six/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/six/src/components/MomentControl/index.js +4 -4
- package/_modules/themes/six/src/components/NotFoundSource/index.js +2 -2
- package/_modules/themes/six/src/components/OrderDetails/index.js +50 -50
- package/_modules/themes/six/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/six/src/components/OrderTypeSelectorHeader/index.js +1 -1
- package/_modules/themes/six/src/components/PaymentOptionCash/index.js +1 -1
- package/_modules/themes/six/src/components/PaymentOptions/index.js +20 -20
- package/_modules/themes/six/src/components/ProductForm/index.js +18 -18
- package/_modules/themes/six/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/six/src/components/SearchBar/styles.js +14 -14
- package/_modules/themes/six/src/components/SidebarMenu/index.js +6 -6
- package/_modules/themes/six/src/components/SignUpForm/index.js +23 -23
- package/_modules/themes/six/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/six/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/six/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/three/src/components/AddressDetails/index.js +4 -4
- package/_modules/themes/three/src/components/AddressForm/index.js +30 -30
- package/_modules/themes/three/src/components/AddressList/index.js +11 -11
- package/_modules/themes/three/src/components/AddressesPopover/index.js +2 -2
- package/_modules/themes/three/src/components/BusinessBasicInformation/index.js +5 -5
- package/_modules/themes/three/src/components/BusinessController/index.js +4 -4
- package/_modules/themes/three/src/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/themes/three/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/three/src/components/BusinessProductsListing/index.js +9 -9
- package/_modules/themes/three/src/components/BusinessesListing/index.js +9 -9
- package/_modules/themes/three/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/three/src/components/Cart/index.js +10 -10
- package/_modules/themes/three/src/components/CartContent/index.js +2 -2
- package/_modules/themes/three/src/components/Checkout/index.js +33 -33
- package/_modules/themes/three/src/components/DriverTips/index.js +3 -3
- package/_modules/themes/three/src/components/ForgotPasswordForm/index.js +2 -2
- package/_modules/themes/three/src/components/Header/index.js +22 -22
- package/_modules/themes/three/src/components/HeaderOption/index.js +1 -1
- package/_modules/themes/three/src/components/HomeHero/index.js +6 -6
- package/_modules/themes/three/src/components/HorizontalOrdersLayout/index.js +4 -4
- package/_modules/themes/three/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/three/src/components/LoginForm/index.js +16 -16
- package/_modules/themes/three/src/components/MomentContent/index.js +4 -4
- package/_modules/themes/three/src/components/MomentControl/index.js +2 -2
- package/_modules/themes/three/src/components/MomentPopover/index.js +2 -2
- package/_modules/themes/three/src/components/OrderDetails/index.js +33 -33
- package/_modules/themes/three/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/three/src/components/OrdersOption/index.js +2 -2
- package/_modules/themes/three/src/components/PaymentOptions/index.js +20 -20
- package/_modules/themes/three/src/components/ProductForm/index.js +7 -7
- package/_modules/themes/three/src/components/SignUpForm/index.js +20 -20
- package/_modules/themes/three/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/three/src/components/UpsellingPage/index.js +1 -1
- package/_modules/themes/three/src/components/VerticalOrdersLayout/index.js +3 -3
- package/_modules/themes/three/src/styles/Select/index.js +1 -1
- package/_modules/themes/two/src/components/AddressDetails/index.js +5 -5
- package/_modules/themes/two/src/components/AddressesPopover/index.js +2 -2
- package/_modules/themes/two/src/components/AppleLogin/index.js +4 -4
- package/_modules/themes/two/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/two/src/components/BusinessBasicInformation/index.js +4 -4
- package/_modules/themes/two/src/components/BusinessController/index.js +4 -4
- package/_modules/themes/two/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/two/src/components/BusinessProductsListing/index.js +11 -11
- package/_modules/themes/two/src/components/BusinessTypeFilter/index.js +2 -2
- package/_modules/themes/two/src/components/BusinessesListing/index.js +8 -8
- package/_modules/themes/two/src/components/BusinessesListing/styles.js +2 -2
- package/_modules/themes/two/src/components/Cart/index.js +10 -10
- package/_modules/themes/two/src/components/CartContent/index.js +2 -2
- package/_modules/themes/two/src/components/Checkout/index.js +32 -32
- package/_modules/themes/two/src/components/DriverTips/index.js +3 -3
- package/_modules/themes/two/src/components/Header/index.js +22 -22
- package/_modules/themes/two/src/components/HomeHero/index.js +7 -7
- package/_modules/themes/two/src/components/HorizontalOrdersLayout/index.js +6 -6
- package/_modules/themes/two/src/components/LanguageSelector/index.js +1 -1
- package/_modules/themes/two/src/components/LastOrders/index.js +7 -7
- package/_modules/themes/two/src/components/LoginForm/index.js +13 -13
- package/_modules/themes/two/src/components/MomentContent/index.js +3 -3
- package/_modules/themes/two/src/components/MomentControl/index.js +5 -5
- package/_modules/themes/two/src/components/MomentPopover/index.js +2 -2
- package/_modules/themes/two/src/components/OrderDetails/index.js +30 -30
- package/_modules/themes/two/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/two/src/components/OrdersOption/index.js +2 -2
- package/_modules/themes/two/src/components/PaymentOptions/index.js +20 -20
- package/_modules/themes/two/src/components/ProductForm/index.js +7 -7
- package/_modules/themes/two/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/two/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/two/src/components/SearchBar/styles.js +4 -4
- package/_modules/themes/two/src/components/SignUpForm/index.js +19 -19
- package/_modules/themes/two/src/components/SingleProductCard/index.js +2 -2
- package/_modules/themes/two/src/components/UserProfileForm/index.js +3 -3
- package/_modules/themes/two/src/components/VerticalOrdersLayout/index.js +3 -3
- package/_modules/themes/wow/src/components/ActiveOrdersLayout/index.js +4 -4
- package/_modules/themes/wow/src/components/AddressForm/index.js +28 -28
- package/_modules/themes/wow/src/components/AddressList/index.js +9 -9
- package/_modules/themes/wow/src/components/AutoScroll/index.js +4 -4
- package/_modules/themes/wow/src/components/BusinessBasicInformation/index.js +4 -4
- package/_modules/themes/wow/src/components/BusinessController/index.js +4 -4
- package/_modules/themes/wow/src/components/BusinessItemAccordion/index.js +4 -4
- package/_modules/themes/wow/src/components/BusinessProductsList/index.js +1 -1
- package/_modules/themes/wow/src/components/BusinessProductsListing/index.js +8 -8
- package/_modules/themes/wow/src/components/BusinessesListing/index.js +2 -2
- package/_modules/themes/wow/src/components/Cart/index.js +4 -4
- package/_modules/themes/wow/src/components/CartContent/index.js +2 -2
- package/_modules/themes/wow/src/components/Checkout/index.js +14 -14
- package/_modules/themes/wow/src/components/CheckoutBill/index.js +1 -1
- package/_modules/themes/wow/src/components/CompletedOrder/index.js +4 -4
- package/_modules/themes/wow/src/components/DeliveryDetails/index.js +3 -3
- package/_modules/themes/wow/src/components/DiscountedBusinesses/index.js +2 -2
- package/_modules/themes/wow/src/components/Footer/index.js +5 -5
- package/_modules/themes/wow/src/components/Header/index.js +10 -10
- package/_modules/themes/wow/src/components/HomeHero/index.js +6 -6
- package/_modules/themes/wow/src/components/LoginForm/index.js +7 -7
- package/_modules/themes/wow/src/components/OrderDetails/index.js +18 -18
- package/_modules/themes/wow/src/components/OrderDetails/styles.js +2 -2
- package/_modules/themes/wow/src/components/OrderHelp/index.js +3 -3
- package/_modules/themes/wow/src/components/OrderTypeSelectorHeader/index.js +2 -2
- package/_modules/themes/wow/src/components/OrdersOption/index.js +2 -2
- package/_modules/themes/wow/src/components/OurBusinesses/index.js +2 -2
- package/_modules/themes/wow/src/components/PaymentOptions/index.js +3 -3
- package/_modules/themes/wow/src/components/PreOrdersLayout/index.js +4 -4
- package/_modules/themes/wow/src/components/PreorderConfirm/index.js +2 -2
- package/_modules/themes/wow/src/components/PreviousOrdersLayout/index.js +4 -4
- package/_modules/themes/wow/src/components/ProductForm/index.js +3 -3
- package/_modules/themes/wow/src/components/ProductOptionSubOption/index.js +2 -2
- package/_modules/themes/wow/src/components/ProfileBusinesBasicInformation/index.js +6 -6
- package/_modules/themes/wow/src/components/ProfileBusinesses/index.js +4 -4
- package/_modules/themes/wow/src/components/ProfileEdit/index.js +3 -3
- package/_modules/themes/wow/src/components/PromotionsBusinesses/index.js +2 -2
- package/_modules/themes/wow/src/components/ReviewOrder/index.js +3 -3
- package/_modules/themes/wow/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/wow/src/components/SearchBar/styles.js +6 -6
- package/_modules/themes/wow/src/components/SidebarMenu/index.js +5 -5
- package/_modules/themes/wow/src/components/SignUpForm/index.js +13 -13
- package/_modules/themes/wow/src/components/SingleProductCard/index.js +4 -4
- package/_modules/themes/wow/src/components/SpecificBusiness/index.js +3 -3
- package/_modules/themes/wow/src/components/UserFormDetails/index.js +9 -9
- package/_modules/themes/wow/src/components/UserPopover/index.js +7 -7
- package/_modules/themes/wow/src/components/UserProfile/index.js +2 -2
- package/_modules/themes/wow/src/components/UserProfileDropDown/index.js +2 -2
- package/_modules/utils/index.js +48 -48
- package/package.json +2 -2
- package/src/themes/five/src/components/BusinessPreorder/styles.js +7 -4
- package/src/themes/five/src/components/ServiceForm/index.js +86 -72
- package/_bundles/ordering-ui.e758aec40c3bf292cadb.js +0 -2
- /package/_bundles/{0.ordering-ui.e758aec40c3bf292cadb.js → 0.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{1.ordering-ui.e758aec40c3bf292cadb.js → 1.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{2.ordering-ui.e758aec40c3bf292cadb.js → 2.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{4.ordering-ui.e758aec40c3bf292cadb.js → 4.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{5.ordering-ui.e758aec40c3bf292cadb.js → 5.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{6.ordering-ui.e758aec40c3bf292cadb.js → 6.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{7.ordering-ui.e758aec40c3bf292cadb.js.LICENSE.txt → 7.ordering-ui.8c57feb440eaccd495a4.js.LICENSE.txt} +0 -0
- /package/_bundles/{8.ordering-ui.e758aec40c3bf292cadb.js → 8.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{9.ordering-ui.e758aec40c3bf292cadb.js → 9.ordering-ui.8c57feb440eaccd495a4.js} +0 -0
- /package/_bundles/{ordering-ui.e758aec40c3bf292cadb.js.LICENSE.txt → ordering-ui.8c57feb440eaccd495a4.js.LICENSE.txt} +0 -0
|
@@ -65,7 +65,7 @@ var AppointmentsUI = function AppointmentsUI(props) {
|
|
|
65
65
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
66
66
|
selectedAppointment = _useState6[0],
|
|
67
67
|
setSelectedAppointment = _useState6[1];
|
|
68
|
-
var isEnabledAppointmentsFeature = configs === null || configs === void 0
|
|
68
|
+
var isEnabledAppointmentsFeature = configs === null || configs === void 0 || (_configs$appointments = configs.appointments) === null || _configs$appointments === void 0 ? void 0 : _configs$appointments.value;
|
|
69
69
|
var changeBusinessState = function changeBusinessState(business) {
|
|
70
70
|
setShowSelectHeader(false);
|
|
71
71
|
setSelectedBusiness(business);
|
|
@@ -94,7 +94,7 @@ var AppointmentsUI = function AppointmentsUI(props) {
|
|
|
94
94
|
}, t('CALENDAR', 'Calendar')))))), isEnabledAppointmentsFeature ? /*#__PURE__*/_react.default.createElement(_styles3.CalendarWrapper, null, /*#__PURE__*/_react.default.createElement(_reactBigCalendar.Calendar, {
|
|
95
95
|
localizer: localizer,
|
|
96
96
|
formats: {
|
|
97
|
-
timeGutterFormat: (configs === null || configs === void 0
|
|
97
|
+
timeGutterFormat: (configs === null || configs === void 0 || (_configs$format_time = configs.format_time) === null || _configs$format_time === void 0 ? void 0 : _configs$format_time.value) === '24' ? 'HH:mm' : 'HH:mm A'
|
|
98
98
|
},
|
|
99
99
|
defaultView: _reactBigCalendar.Views.MONTH,
|
|
100
100
|
events: businessCalendarEvents.result,
|
|
@@ -69,7 +69,7 @@ var CompanySelectorUI = function CompanySelectorUI(props) {
|
|
|
69
69
|
}, t('LOADING', 'loading'), "...")
|
|
70
70
|
}];
|
|
71
71
|
(0, _react.useEffect)(function () {
|
|
72
|
-
var _theme$images
|
|
72
|
+
var _theme$images;
|
|
73
73
|
var _companysOptionList = [{
|
|
74
74
|
value: 'default',
|
|
75
75
|
content: /*#__PURE__*/_react.default.createElement(_styles2.Option, {
|
|
@@ -78,7 +78,7 @@ var CompanySelectorUI = function CompanySelectorUI(props) {
|
|
|
78
78
|
small: small,
|
|
79
79
|
className: "driver-photo"
|
|
80
80
|
}, /*#__PURE__*/_react.default.createElement(_styles2.CompanyImage, {
|
|
81
|
-
bgimage: company.logo || (theme === null || theme === void 0
|
|
81
|
+
bgimage: company.logo || (theme === null || theme === void 0 || (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.icons) === null || _theme$images === void 0 ? void 0 : _theme$images.noDriver),
|
|
82
82
|
small: small
|
|
83
83
|
})), /*#__PURE__*/_react.default.createElement(_styles2.OptionContent, null, /*#__PURE__*/_react.default.createElement(_styles2.CompanyNameContainer, {
|
|
84
84
|
className: "driver-info"
|
|
@@ -108,7 +108,7 @@ var CompanySelectorUI = function CompanySelectorUI(props) {
|
|
|
108
108
|
_companysList = companysList.companys;
|
|
109
109
|
}
|
|
110
110
|
var _companysOptionListTemp = _companysList.map(function (company, i) {
|
|
111
|
-
var _theme$images$
|
|
111
|
+
var _theme$images$icons;
|
|
112
112
|
return {
|
|
113
113
|
value: company.id,
|
|
114
114
|
showDisable: isFilterView ? true : !(isFilterView || !(company !== null && company !== void 0 && company.busy)),
|
|
@@ -121,7 +121,7 @@ var CompanySelectorUI = function CompanySelectorUI(props) {
|
|
|
121
121
|
small: small,
|
|
122
122
|
className: "driver-photo"
|
|
123
123
|
}, /*#__PURE__*/_react.default.createElement(_styles2.CompanyImage, {
|
|
124
|
-
bgimage: company.logo || ((_theme$images$
|
|
124
|
+
bgimage: company.logo || ((_theme$images$icons = theme.images.icons) === null || _theme$images$icons === void 0 ? void 0 : _theme$images$icons.noDriver),
|
|
125
125
|
small: small
|
|
126
126
|
})), /*#__PURE__*/_react.default.createElement(_styles2.OptionContent, null, /*#__PURE__*/_react.default.createElement(_styles2.CompanyNameContainer, {
|
|
127
127
|
className: "driver-info"
|
package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var CARD_ELEMENT_OPTIONS = {
|
|
|
40
40
|
showIcon: true
|
|
41
41
|
};
|
|
42
42
|
var CardFormUI = function CardFormUI(props) {
|
|
43
|
-
var _validationFields$fie, _validationFields$fie2
|
|
43
|
+
var _validationFields$fie, _validationFields$fie2;
|
|
44
44
|
var error = props.error,
|
|
45
45
|
errorExpiry = props.errorExpiry,
|
|
46
46
|
errorCvc = props.errorCvc,
|
|
@@ -57,8 +57,8 @@ var CardFormUI = function CardFormUI(props) {
|
|
|
57
57
|
var _useValidationFields = (0, _orderingComponentsExternal.useValidationFields)(),
|
|
58
58
|
_useValidationFields2 = _slicedToArray(_useValidationFields, 1),
|
|
59
59
|
validationFields = _useValidationFields2[0];
|
|
60
|
-
var zipCodeEnabled = validationFields === null || validationFields === void 0
|
|
61
|
-
var zipCodeRequired = validationFields === null || validationFields === void 0
|
|
60
|
+
var zipCodeEnabled = validationFields === null || validationFields === void 0 || (_validationFields$fie = validationFields.fields) === null || _validationFields$fie === void 0 || (_validationFields$fie = _validationFields$fie.card) === null || _validationFields$fie === void 0 || (_validationFields$fie = _validationFields$fie.zipcode) === null || _validationFields$fie === void 0 ? void 0 : _validationFields$fie.enabled;
|
|
61
|
+
var zipCodeRequired = validationFields === null || validationFields === void 0 || (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 || (_validationFields$fie2 = _validationFields$fie2.card) === null || _validationFields$fie2 === void 0 || (_validationFields$fie2 = _validationFields$fie2.zipcode) === null || _validationFields$fie2 === void 0 ? void 0 : _validationFields$fie2.required;
|
|
62
62
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles2.FormStripe, {
|
|
63
63
|
onSubmit: handleSubmit
|
|
64
64
|
}, /*#__PURE__*/_react.default.createElement(_styles2.FormRow, null, !isSplitForm ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_reactStripeJs.CardElement, {
|
|
@@ -69,8 +69,8 @@ var CardFormCustom = function CardFormCustom(props) {
|
|
|
69
69
|
type: 'card',
|
|
70
70
|
brand: cardBrand,
|
|
71
71
|
last4: lastFourDigits,
|
|
72
|
-
ccnumber: values === null || values === void 0
|
|
73
|
-
ccexp: values === null || values === void 0
|
|
72
|
+
ccnumber: values === null || values === void 0 || (_values$number = values.number) === null || _values$number === void 0 ? void 0 : _values$number.replace(/\s/g, ''),
|
|
73
|
+
ccexp: values === null || values === void 0 || (_values$expiry = values.expiry) === null || _values$expiry === void 0 ? void 0 : _values$expiry.replace('/', ''),
|
|
74
74
|
cvv: values === null || values === void 0 ? void 0 : values.cvc
|
|
75
75
|
};
|
|
76
76
|
handleNewCard(card);
|
package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js
CHANGED
|
@@ -30,7 +30,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
30
30
|
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; } }
|
|
31
31
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
32
32
|
var CartBill = function CartBill(props) {
|
|
33
|
-
var _validationFields$fie,
|
|
33
|
+
var _validationFields$fie, _cart$offers, _cart$offers2, _cart$offers3, _cart$offers4, _cart$business, _ref, _cart$subtotal_with_d, _cart$taxes2, _cart$taxes3, _cart$fees, _cart$fees2, _cart$offers5, _cart$offers6, _orderState$options, _cart$offers7, _cart$offers8, _configs$driver_tip_t, _configs$driver_tip_u, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6;
|
|
34
34
|
var cart = props.cart;
|
|
35
35
|
var theme = (0, _styledComponents.useTheme)();
|
|
36
36
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
@@ -69,7 +69,7 @@ var CartBill = function CartBill(props) {
|
|
|
69
69
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
70
70
|
confirm = _useState4[0],
|
|
71
71
|
setConfirm = _useState4[1];
|
|
72
|
-
var isCouponEnabled = validationFields === null || validationFields === void 0
|
|
72
|
+
var isCouponEnabled = 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.coupon) === null || _validationFields$fie === void 0 ? void 0 : _validationFields$fie.enabled;
|
|
73
73
|
var getIncludedTaxes = function getIncludedTaxes() {
|
|
74
74
|
if ((cart === null || cart === void 0 ? void 0 : cart.taxes) === null) {
|
|
75
75
|
return (cart === null || cart === void 0 ? void 0 : cart.business.tax_type) === 1 ? cart === null || cart === void 0 ? void 0 : cart.tax : 0;
|
|
@@ -81,12 +81,12 @@ var CartBill = function CartBill(props) {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
var getIncludedTaxesDiscounts = function getIncludedTaxesDiscounts() {
|
|
84
|
-
var _cart$taxes
|
|
85
|
-
return cart === null || cart === void 0
|
|
84
|
+
var _cart$taxes;
|
|
85
|
+
return cart === null || cart === void 0 || (_cart$taxes = cart.taxes) === null || _cart$taxes === void 0 || (_cart$taxes = _cart$taxes.filter(function (tax) {
|
|
86
86
|
return (tax === null || tax === void 0 ? void 0 : tax.type) === 1;
|
|
87
|
-
})) === null || _cart$taxes
|
|
87
|
+
})) === null || _cart$taxes === void 0 ? void 0 : _cart$taxes.reduce(function (carry, tax) {
|
|
88
88
|
var _tax$summary$tax_afte, _tax$summary2, _tax$summary3;
|
|
89
|
-
return carry + ((_tax$summary$tax_afte = tax === null || tax === void 0
|
|
89
|
+
return carry + ((_tax$summary$tax_afte = tax === null || tax === void 0 || (_tax$summary2 = tax.summary) === null || _tax$summary2 === void 0 ? void 0 : _tax$summary2.tax_after_discount) !== null && _tax$summary$tax_afte !== void 0 ? _tax$summary$tax_afte : tax === null || tax === void 0 || (_tax$summary3 = tax.summary) === null || _tax$summary3 === void 0 ? void 0 : _tax$summary3.tax);
|
|
90
90
|
}, 0);
|
|
91
91
|
};
|
|
92
92
|
var handleRemoveOfferClick = function handleRemoveOfferClick(id, userId) {
|
|
@@ -110,9 +110,9 @@ var CartBill = function CartBill(props) {
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
};
|
|
113
|
-
return /*#__PURE__*/_react.default.createElement(_styles.CartBillContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, t('SUMMARY', '')), /*#__PURE__*/_react.default.createElement("table", null, /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("td", null, parsePrice((cart === null || cart === void 0 ? void 0 : cart.subtotal) + getIncludedTaxes()))), (cart === null || cart === void 0 ? void 0 : cart.discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.total) >= 0 && (cart === null || cart === void 0
|
|
113
|
+
return /*#__PURE__*/_react.default.createElement(_styles.CartBillContainer, null, /*#__PURE__*/_react.default.createElement("h3", null, t('SUMMARY', '')), /*#__PURE__*/_react.default.createElement("table", null, /*#__PURE__*/_react.default.createElement("tbody", null, /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('SUBTOTAL', 'Subtotal')), /*#__PURE__*/_react.default.createElement("td", null, parsePrice((cart === null || cart === void 0 ? void 0 : cart.subtotal) + getIncludedTaxes()))), (cart === null || cart === void 0 ? void 0 : cart.discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.total) >= 0 && (cart === null || cart === void 0 || (_cart$offers = cart.offers) === null || _cart$offers === void 0 ? void 0 : _cart$offers.length) === 0 && /*#__PURE__*/_react.default.createElement("tr", null, (cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 ? /*#__PURE__*/_react.default.createElement("td", null, t('DISCOUNT', 'Discount'), ' ', /*#__PURE__*/_react.default.createElement("span", null, "(".concat((0, _utils.verifyDecimals)(cart === null || cart === void 0 ? void 0 : cart.discount_rate, parsePrice), "%)"))) : /*#__PURE__*/_react.default.createElement("td", null, t('DISCOUNT', 'Discount')), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice((cart === null || cart === void 0 ? void 0 : cart.discount) || 0))), (cart === null || cart === void 0 || (_cart$offers2 = cart.offers) === null || _cart$offers2 === void 0 ? void 0 : _cart$offers2.length) > 0 && (cart === null || cart === void 0 || (_cart$offers3 = cart.offers) === null || _cart$offers3 === void 0 || (_cart$offers3 = _cart$offers3.filter(function (offer) {
|
|
114
114
|
return (offer === null || offer === void 0 ? void 0 : offer.target) === 1;
|
|
115
|
-
})) === null || _cart$offers3
|
|
115
|
+
})) === null || _cart$offers3 === void 0 ? void 0 : _cart$offers3.map(function (offer) {
|
|
116
116
|
var _offer$summary;
|
|
117
117
|
return /*#__PURE__*/_react.default.createElement("tr", {
|
|
118
118
|
key: offer.id
|
|
@@ -134,10 +134,10 @@ var CartBill = function CartBill(props) {
|
|
|
134
134
|
onClick: function onClick() {
|
|
135
135
|
return onRemoveOffer(offer === null || offer === void 0 ? void 0 : offer.id);
|
|
136
136
|
}
|
|
137
|
-
}))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0
|
|
138
|
-
})), (cart === null || cart === void 0
|
|
137
|
+
}))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0 || (_offer$summary = offer.summary) === null || _offer$summary === void 0 ? void 0 : _offer$summary.discount)));
|
|
138
|
+
})), (cart === null || cart === void 0 || (_cart$offers4 = cart.offers) === null || _cart$offers4 === void 0 || (_cart$offers4 = _cart$offers4.filter(function (offer) {
|
|
139
139
|
return (offer === null || offer === void 0 ? void 0 : offer.target) === 1;
|
|
140
|
-
})) === null || _cart$offers4
|
|
140
|
+
})) === null || _cart$offers4 === void 0 ? void 0 : _cart$offers4.length) > 0 && (cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.total) >= 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('SUBTOTAL_WITH_DISCOUNT', 'Subtotal with discount')), (cart === null || cart === void 0 || (_cart$business = cart.business) === null || _cart$business === void 0 ? void 0 : _cart$business.tax_type) === 1 ? /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref = (cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) + getIncludedTaxesDiscounts()) !== null && _ref !== void 0 ? _ref : 0)) : /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_cart$subtotal_with_d = cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) !== null && _cart$subtotal_with_d !== void 0 ? _cart$subtotal_with_d : 0))), (cart === null || cart === void 0 || (_cart$taxes2 = cart.taxes) === null || _cart$taxes2 === void 0 ? void 0 : _cart$taxes2.length) > 0 && (cart === null || cart === void 0 || (_cart$taxes3 = cart.taxes) === null || _cart$taxes3 === void 0 ? void 0 : _cart$taxes3.filter(function (tax) {
|
|
141
141
|
return (tax === null || tax === void 0 ? void 0 : tax.type) === 2 && (tax === null || tax === void 0 ? void 0 : tax.rate) !== 0;
|
|
142
142
|
}).map(function (tax) {
|
|
143
143
|
var _ref2, _tax$summary$tax_afte2, _tax$summary4, _tax$summary5;
|
|
@@ -156,8 +156,8 @@ var CartBill = function CartBill(props) {
|
|
|
156
156
|
}, /*#__PURE__*/_react.default.createElement(_BsInfoCircle.default, {
|
|
157
157
|
size: "20",
|
|
158
158
|
color: theme.colors.primary
|
|
159
|
-
}))), /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref2 = (_tax$summary$tax_afte2 = tax === null || tax === void 0
|
|
160
|
-
})), (cart === null || cart === void 0
|
|
159
|
+
}))), /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref2 = (_tax$summary$tax_afte2 = tax === null || tax === void 0 || (_tax$summary4 = tax.summary) === null || _tax$summary4 === void 0 ? void 0 : _tax$summary4.tax_after_discount) !== null && _tax$summary$tax_afte2 !== void 0 ? _tax$summary$tax_afte2 : tax === null || tax === void 0 || (_tax$summary5 = tax.summary) === null || _tax$summary5 === void 0 ? void 0 : _tax$summary5.tax) !== null && _ref2 !== void 0 ? _ref2 : 0)));
|
|
160
|
+
})), (cart === null || cart === void 0 || (_cart$fees = cart.fees) === null || _cart$fees === void 0 ? void 0 : _cart$fees.length) > 0 && (cart === null || cart === void 0 || (_cart$fees2 = cart.fees) === null || _cart$fees2 === void 0 ? void 0 : _cart$fees2.filter(function (fee) {
|
|
161
161
|
return !(fee.fixed === 0 && fee.percentage === 0);
|
|
162
162
|
}).map(function (fee, i) {
|
|
163
163
|
var _fee$id, _ref3, _fee$summary, _fee$summary$percenta, _fee$summary2, _fee$summary3;
|
|
@@ -176,10 +176,10 @@ var CartBill = function CartBill(props) {
|
|
|
176
176
|
}, /*#__PURE__*/_react.default.createElement(_BsInfoCircle.default, {
|
|
177
177
|
size: "20",
|
|
178
178
|
color: theme.colors.primary
|
|
179
|
-
}))), /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref3 = (fee === null || fee === void 0
|
|
180
|
-
})), (cart === null || cart === void 0
|
|
179
|
+
}))), /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref3 = (fee === null || fee === void 0 || (_fee$summary = fee.summary) === null || _fee$summary === void 0 ? void 0 : _fee$summary.fixed) + ((_fee$summary$percenta = fee === null || fee === void 0 || (_fee$summary2 = fee.summary) === null || _fee$summary2 === void 0 ? void 0 : _fee$summary2.percentage_after_discount) !== null && _fee$summary$percenta !== void 0 ? _fee$summary$percenta : fee === null || fee === void 0 || (_fee$summary3 = fee.summary) === null || _fee$summary3 === void 0 ? void 0 : _fee$summary3.percentage)) !== null && _ref3 !== void 0 ? _ref3 : 0)));
|
|
180
|
+
})), (cart === null || cart === void 0 || (_cart$offers5 = cart.offers) === null || _cart$offers5 === void 0 ? void 0 : _cart$offers5.length) > 0 && (cart === null || cart === void 0 || (_cart$offers6 = cart.offers) === null || _cart$offers6 === void 0 || (_cart$offers6 = _cart$offers6.filter(function (offer) {
|
|
181
181
|
return (offer === null || offer === void 0 ? void 0 : offer.target) === 3;
|
|
182
|
-
})) === null || _cart$offers6
|
|
182
|
+
})) === null || _cart$offers6 === void 0 ? void 0 : _cart$offers6.map(function (offer) {
|
|
183
183
|
var _offer$summary2;
|
|
184
184
|
return /*#__PURE__*/_react.default.createElement("tr", {
|
|
185
185
|
key: offer.id
|
|
@@ -201,10 +201,10 @@ var CartBill = function CartBill(props) {
|
|
|
201
201
|
onClick: function onClick() {
|
|
202
202
|
return onRemoveOffer(offer === null || offer === void 0 ? void 0 : offer.id);
|
|
203
203
|
}
|
|
204
|
-
}))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0
|
|
205
|
-
})), (orderState === null || orderState === void 0
|
|
204
|
+
}))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0 || (_offer$summary2 = offer.summary) === null || _offer$summary2 === void 0 ? void 0 : _offer$summary2.discount)));
|
|
205
|
+
})), (orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('DELIVERY_FEE', 'Delivery Fee')), /*#__PURE__*/_react.default.createElement("td", null, parsePrice(cart === null || cart === void 0 ? void 0 : cart.delivery_price_with_discount))), (cart === null || cart === void 0 || (_cart$offers7 = cart.offers) === null || _cart$offers7 === void 0 ? void 0 : _cart$offers7.length) > 0 && (cart === null || cart === void 0 || (_cart$offers8 = cart.offers) === null || _cart$offers8 === void 0 || (_cart$offers8 = _cart$offers8.filter(function (offer) {
|
|
206
206
|
return (offer === null || offer === void 0 ? void 0 : offer.target) === 2;
|
|
207
|
-
})) === null || _cart$offers8
|
|
207
|
+
})) === null || _cart$offers8 === void 0 ? void 0 : _cart$offers8.map(function (offer) {
|
|
208
208
|
var _offer$summary3;
|
|
209
209
|
return /*#__PURE__*/_react.default.createElement("tr", {
|
|
210
210
|
key: offer.id
|
|
@@ -226,8 +226,8 @@ var CartBill = function CartBill(props) {
|
|
|
226
226
|
onClick: function onClick() {
|
|
227
227
|
return onRemoveOffer(offer === null || offer === void 0 ? void 0 : offer.id);
|
|
228
228
|
}
|
|
229
|
-
}))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0
|
|
230
|
-
})), (cart === null || cart === void 0 ? void 0 : cart.driver_tip) > 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('DRIVER_TIP', 'Driver tip'), ' ', (cart === null || cart === void 0 ? void 0 : cart.driver_tip_rate) > 0 && parseInt(configs === null || configs === void 0
|
|
229
|
+
}))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0 || (_offer$summary3 = offer.summary) === null || _offer$summary3 === void 0 ? void 0 : _offer$summary3.discount)));
|
|
230
|
+
})), (cart === null || cart === void 0 ? void 0 : cart.driver_tip) > 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('DRIVER_TIP', 'Driver tip'), ' ', (cart === null || cart === void 0 ? void 0 : cart.driver_tip_rate) > 0 && parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 2 && !parseInt(configs === null || configs === void 0 || (_configs$driver_tip_u = configs.driver_tip_use_custom) === null || _configs$driver_tip_u === void 0 ? void 0 : _configs$driver_tip_u.value, 10) && /*#__PURE__*/_react.default.createElement("span", null, "(".concat((0, _utils.verifyDecimals)(cart === null || cart === void 0 ? void 0 : cart.driver_tip_rate, parseNumber), "%)"))), /*#__PURE__*/_react.default.createElement("td", null, parsePrice(cart === null || cart === void 0 ? void 0 : cart.driver_tip))))), isCouponEnabled && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles.CouponContainer, null, /*#__PURE__*/_react.default.createElement(_CouponControl.CouponControl, {
|
|
231
231
|
businessId: cart === null || cart === void 0 ? void 0 : cart.business_id,
|
|
232
232
|
price: cart === null || cart === void 0 ? void 0 : cart.total
|
|
233
233
|
})), /*#__PURE__*/_react.default.createElement("table", {
|
package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js
CHANGED
|
@@ -38,7 +38,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
38
38
|
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; } }
|
|
39
39
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
40
40
|
var CheckoutUI = function CheckoutUI(props) {
|
|
41
|
-
var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _validationFields$fie, _validationFields$fie2,
|
|
41
|
+
var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _validationFields$fie, _validationFields$fie2, _cart$comment, _validationFields$fie3, _validationFields$fie4, _paymethodSelected$da, _paymethodSelected$da2, _cardList$cards, _cartState$cart, _validationFields$fie5, _validationFields$fie6, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _validationFields$fie7, _businessDetails$busi3, _businessDetails$busi4, _businessDetails$busi5, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _validationFields$fie12, _validationFields$fie13;
|
|
42
42
|
var cart = props.cart,
|
|
43
43
|
errors = props.errors,
|
|
44
44
|
placing = props.placing,
|
|
@@ -105,21 +105,21 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
105
105
|
paymethodClicked = _useState12[0],
|
|
106
106
|
setPaymethodClicked = _useState12[1];
|
|
107
107
|
var cardsMethods = ['stripe', 'credomatic'];
|
|
108
|
-
var businessConfigs = (_businessDetails$busi = businessDetails === null || businessDetails === void 0
|
|
109
|
-
var isTableNumberEnabled = configs === null || configs === void 0
|
|
108
|
+
var businessConfigs = (_businessDetails$busi = businessDetails === null || businessDetails === void 0 || (_businessDetails$busi2 = businessDetails.business) === null || _businessDetails$busi2 === void 0 ? void 0 : _businessDetails$busi2.configs) !== null && _businessDetails$busi !== void 0 ? _businessDetails$busi : [];
|
|
109
|
+
var isTableNumberEnabled = configs === null || configs === void 0 || (_configs$table_numer_ = configs.table_numer_enabled) === null || _configs$table_numer_ === void 0 ? void 0 : _configs$table_numer_.value;
|
|
110
110
|
var isWalletCashEnabled = ((_businessConfigs$find = businessConfigs.find(function (config) {
|
|
111
111
|
return config.key === 'wallet_cash_enabled';
|
|
112
112
|
})) === null || _businessConfigs$find === void 0 ? void 0 : _businessConfigs$find.value) === '1';
|
|
113
113
|
var isWalletCreditPointsEnabled = ((_businessConfigs$find2 = businessConfigs.find(function (config) {
|
|
114
114
|
return config.key === 'wallet_credit_point_enabled';
|
|
115
115
|
})) === null || _businessConfigs$find2 === void 0 ? void 0 : _businessConfigs$find2.value) === '1';
|
|
116
|
-
var isWalletEnabled = (configs === null || configs === void 0
|
|
116
|
+
var isWalletEnabled = (configs === null || configs === void 0 || (_configs$cash_wallet = configs.cash_wallet) === null || _configs$cash_wallet === void 0 ? void 0 : _configs$cash_wallet.value) && (configs === null || configs === void 0 || (_configs$wallet_enabl = configs.wallet_enabled) === null || _configs$wallet_enabl === void 0 ? void 0 : _configs$wallet_enabl.value) === '1' && (isWalletCashEnabled || isWalletCreditPointsEnabled) && !isCustomerMode;
|
|
117
117
|
var isGiftCardCart = !(cart !== null && cart !== void 0 && cart.business_id);
|
|
118
|
-
var validateCommentsCartField = (validationFields === null || validationFields === void 0
|
|
119
|
-
var validateZipcodeCard = (validationFields === null || validationFields === void 0
|
|
120
|
-
var isDisablePlaceOrderButton = !(cart !== null && cart !== void 0 && cart.valid) || !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 || cardsMethods.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (cardList === null || cardList === void 0
|
|
121
|
-
var driverTipsOptions = typeof (configs === null || configs === void 0
|
|
122
|
-
var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && options.type === 1 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (validationFields === null || validationFields === void 0
|
|
118
|
+
var validateCommentsCartField = (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.comments) === null || _validationFields$fie === void 0 ? 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.comments) === null || _validationFields$fie2 === void 0 ? void 0 : _validationFields$fie2.required) && ((cart === null || cart === void 0 ? void 0 : cart.comment) === null || (cart === null || cart === void 0 || (_cart$comment = cart.comment) === null || _cart$comment === void 0 ? void 0 : _cart$comment.trim().length) === 0);
|
|
119
|
+
var validateZipcodeCard = (validationFields === null || validationFields === void 0 || (_validationFields$fie3 = validationFields.fields) === null || _validationFields$fie3 === void 0 || (_validationFields$fie3 = _validationFields$fie3.card) === null || _validationFields$fie3 === void 0 || (_validationFields$fie3 = _validationFields$fie3.zipcode) === null || _validationFields$fie3 === void 0 ? void 0 : _validationFields$fie3.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie4 = validationFields.fields) === null || _validationFields$fie4 === void 0 || (_validationFields$fie4 = _validationFields$fie4.card) === null || _validationFields$fie4 === void 0 || (_validationFields$fie4 = _validationFields$fie4.zipcode) === null || _validationFields$fie4 === void 0 ? void 0 : _validationFields$fie4.required) && (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'stripe' && (paymethodSelected === null || paymethodSelected === void 0 || (_paymethodSelected$da = paymethodSelected.data) === null || _paymethodSelected$da === void 0 ? void 0 : _paymethodSelected$da.card) && !(paymethodSelected !== null && paymethodSelected !== void 0 && (_paymethodSelected$da2 = paymethodSelected.data) !== null && _paymethodSelected$da2 !== void 0 && (_paymethodSelected$da2 = _paymethodSelected$da2.card) !== null && _paymethodSelected$da2 !== void 0 && _paymethodSelected$da2.zipcode);
|
|
120
|
+
var isDisablePlaceOrderButton = !(cart !== null && cart !== void 0 && cart.valid) || !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 || cardsMethods.includes(paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) && (cardList === null || cardList === void 0 || (_cardList$cards = cardList.cards) === null || _cardList$cards === void 0 ? void 0 : _cardList$cards.length) === 0 || placing || errorCash || loading || isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cartState !== null && cartState !== void 0 && (_cartState$cart = cartState.cart) !== null && _cartState$cart !== void 0 && _cartState$cart.spot_number || cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) || !(cart !== null && cart !== void 0 && cart.valid_maximum) || !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) || options.type === 1 && (validationFields === null || validationFields === void 0 || (_validationFields$fie5 = validationFields.fields) === null || _validationFields$fie5 === void 0 || (_validationFields$fie5 = _validationFields$fie5.checkout) === null || _validationFields$fie5 === void 0 || (_validationFields$fie5 = _validationFields$fie5.driver_tip) === null || _validationFields$fie5 === void 0 ? void 0 : _validationFields$fie5.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie6 = validationFields.fields) === null || _validationFields$fie6 === void 0 || (_validationFields$fie6 = _validationFields$fie6.checkout) === null || _validationFields$fie6 === void 0 || (_validationFields$fie6 = _validationFields$fie6.driver_tip) === null || _validationFields$fie6 === void 0 ? void 0 : _validationFields$fie6.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 || validateCommentsCartField || validateZipcodeCard;
|
|
121
|
+
var driverTipsOptions = typeof (configs === null || configs === void 0 || (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 || (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 || (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
|
|
122
|
+
var driverTipsField = !cartState.loading && cart && (cart === null || cart === void 0 ? void 0 : cart.business_id) && options.type === 1 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && (validationFields === null || validationFields === void 0 || (_validationFields$fie7 = validationFields.fields) === null || _validationFields$fie7 === void 0 || (_validationFields$fie7 = _validationFields$fie7.checkout) === null || _validationFields$fie7 === void 0 || (_validationFields$fie7 = _validationFields$fie7.driver_tip) === null || _validationFields$fie7 === void 0 ? void 0 : _validationFields$fie7.enabled) && driverTipsOptions.length > 0;
|
|
123
123
|
var handlePlaceOrder = function handlePlaceOrder() {
|
|
124
124
|
if (!userErrors.length && (!(requiredFields !== null && requiredFields !== void 0 && requiredFields.length) || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'cash' || (paymethodSelected === null || paymethodSelected === void 0 ? void 0 : paymethodSelected.gateway) === 'card_delivery')) {
|
|
125
125
|
var body = {};
|
|
@@ -134,20 +134,20 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
134
134
|
});
|
|
135
135
|
};
|
|
136
136
|
var checkValidationFields = function checkValidationFields() {
|
|
137
|
-
var _validationFields$
|
|
137
|
+
var _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _configs$verification;
|
|
138
138
|
setUserErrors([]);
|
|
139
139
|
var errors = [];
|
|
140
140
|
var notFields = ['coupon', 'driver_tip', 'mobile_phone', 'address', 'zipcode', 'address_notes', 'comments'];
|
|
141
141
|
var userSelected = isCustomerMode ? customerState.user : user;
|
|
142
142
|
var _requiredFields = [];
|
|
143
|
-
Object.values(validationFields === null || validationFields === void 0
|
|
143
|
+
Object.values(validationFields === null || validationFields === void 0 || (_validationFields$fie8 = validationFields.fields) === null || _validationFields$fie8 === void 0 ? void 0 : _validationFields$fie8.checkout).map(function (field) {
|
|
144
144
|
if (field !== null && field !== void 0 && field.enabled && field !== null && field !== void 0 && field.required && !notFields.includes(field.code)) {
|
|
145
145
|
if (userSelected && !userSelected[field === null || field === void 0 ? void 0 : field.code]) {
|
|
146
146
|
_requiredFields.push(field === null || field === void 0 ? void 0 : field.code);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
if (userSelected && !(userSelected !== null && userSelected !== void 0 && userSelected.cellphone) && (validationFields !== null && validationFields !== void 0 && (_validationFields$
|
|
150
|
+
if (userSelected && !(userSelected !== null && userSelected !== void 0 && userSelected.cellphone) && (validationFields !== null && validationFields !== void 0 && (_validationFields$fie9 = validationFields.fields) !== null && _validationFields$fie9 !== void 0 && (_validationFields$fie9 = _validationFields$fie9.checkout) !== null && _validationFields$fie9 !== void 0 && (_validationFields$fie9 = _validationFields$fie9.cellphone) !== null && _validationFields$fie9 !== void 0 && _validationFields$fie9.enabled && validationFields !== null && validationFields !== void 0 && (_validationFields$fie10 = validationFields.fields) !== null && _validationFields$fie10 !== void 0 && (_validationFields$fie10 = _validationFields$fie10.checkout) !== null && _validationFields$fie10 !== void 0 && (_validationFields$fie10 = _validationFields$fie10.cellphone) !== null && _validationFields$fie10 !== void 0 && _validationFields$fie10.required || (configs === null || configs === void 0 || (_configs$verification = configs.verification_phone_required) === null || _configs$verification === void 0 ? void 0 : _configs$verification.value) === '1')) {
|
|
151
151
|
_requiredFields.push('cellphone');
|
|
152
152
|
}
|
|
153
153
|
setRequiredFields(_requiredFields);
|
|
@@ -166,8 +166,8 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
166
166
|
setUserErrors(errors);
|
|
167
167
|
};
|
|
168
168
|
(0, _react.useEffect)(function () {
|
|
169
|
-
var _validationFields$
|
|
170
|
-
if (validationFields && validationFields !== null && validationFields !== void 0 && (_validationFields$
|
|
169
|
+
var _validationFields$fie11;
|
|
170
|
+
if (validationFields && validationFields !== null && validationFields !== void 0 && (_validationFields$fie11 = validationFields.fields) !== null && _validationFields$fie11 !== void 0 && _validationFields$fie11.checkout) {
|
|
171
171
|
checkValidationFields();
|
|
172
172
|
}
|
|
173
173
|
}, [validationFields, user, customerState]);
|
|
@@ -194,9 +194,9 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
194
194
|
}, /*#__PURE__*/_react.default.createElement(_VscWarning.default, null), /*#__PURE__*/_react.default.createElement("h1", null, t('CART_STATUS_CANCEL_MESSAGE', 'The payment has not been successful, please try again'))), /*#__PURE__*/_react.default.createElement(_PaymentOptions.PaymentOptions, {
|
|
195
195
|
cart: cart,
|
|
196
196
|
isDisabled: (cart === null || cart === void 0 ? void 0 : cart.status) === 2,
|
|
197
|
-
businessId: !isGiftCardCart ? businessDetails === null || businessDetails === void 0
|
|
197
|
+
businessId: !isGiftCardCart ? businessDetails === null || businessDetails === void 0 || (_businessDetails$busi3 = businessDetails.business) === null || _businessDetails$busi3 === void 0 ? void 0 : _businessDetails$busi3.id : -1,
|
|
198
198
|
isLoading: !isGiftCardCart ? businessDetails.loading : false,
|
|
199
|
-
paymethods: businessDetails === null || businessDetails === void 0
|
|
199
|
+
paymethods: businessDetails === null || businessDetails === void 0 || (_businessDetails$busi4 = businessDetails.business) === null || _businessDetails$busi4 === void 0 ? void 0 : _businessDetails$busi4.paymethods,
|
|
200
200
|
onPaymentChange: handlePaymethodChange,
|
|
201
201
|
errorCash: errorCash,
|
|
202
202
|
setErrorCash: setErrorCash,
|
|
@@ -212,13 +212,13 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
212
212
|
})), isWalletEnabled && !(businessDetails !== null && businessDetails !== void 0 && businessDetails.loading) && /*#__PURE__*/_react.default.createElement(_PaymentOptionWallet.PaymentOptionWallet, {
|
|
213
213
|
cart: cart,
|
|
214
214
|
loyaltyPlansState: loyaltyPlansState,
|
|
215
|
-
businessConfigs: businessDetails === null || businessDetails === void 0
|
|
215
|
+
businessConfigs: businessDetails === null || businessDetails === void 0 || (_businessDetails$busi5 = businessDetails.business) === null || _businessDetails$busi5 === void 0 ? void 0 : _businessDetails$busi5.configs
|
|
216
216
|
}), driverTipsField && /*#__PURE__*/_react.default.createElement(_DriverTips.DriverTips, {
|
|
217
217
|
businessId: cart === null || cart === void 0 ? void 0 : cart.business_id,
|
|
218
218
|
driverTipsOptions: driverTipsOptions,
|
|
219
|
-
isFixedPrice: parseInt(configs === null || configs === void 0
|
|
220
|
-
isDriverTipUseCustom: !!parseInt(configs === null || configs === void 0
|
|
221
|
-
driverTip: parseInt(configs === null || configs === void 0
|
|
219
|
+
isFixedPrice: parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 1,
|
|
220
|
+
isDriverTipUseCustom: !!parseInt(configs === null || configs === void 0 || (_configs$driver_tip_u = configs.driver_tip_use_custom) === null || _configs$driver_tip_u === void 0 ? void 0 : _configs$driver_tip_u.value, 10),
|
|
221
|
+
driverTip: parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t2 = configs.driver_tip_type) === null || _configs$driver_tip_t2 === void 0 ? void 0 : _configs$driver_tip_t2.value, 10) === 1 ? cart === null || cart === void 0 ? void 0 : cart.driver_tip : cart === null || cart === void 0 ? void 0 : cart.driver_tip_rate,
|
|
222
222
|
cart: cart,
|
|
223
223
|
useOrderContext: true
|
|
224
224
|
}), !cartState.loading && cart && /*#__PURE__*/_react.default.createElement(_CartBill.CartBill, {
|
|
@@ -229,7 +229,7 @@ var CheckoutUI = function CheckoutUI(props) {
|
|
|
229
229
|
onClick: function onClick() {
|
|
230
230
|
return handlePlaceOrder();
|
|
231
231
|
}
|
|
232
|
-
}, !(cart !== null && cart !== void 0 && cart.valid_maximum) ? "".concat(t('MAXIMUM_SUBTOTAL_ORDER', 'Maximum subtotal order'), ": ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.maximum)) : !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) ? "".concat(t('MINIMUN_SUBTOTAL_ORDER', 'Minimum subtotal order:'), " ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.minimum)) : placing ? t('PLACING', 'Placing') : t('PLACE_ORDER', 'Place Order'))), !(cart !== null && cart !== void 0 && cart.valid_address) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_ADDRESS', 'Selected address is invalid, please select a closer address.')), !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_NOT_PAYMENT_SELECTED', 'Please, select a payment method to place order.')), !(cart !== null && cart !== void 0 && cart.valid_products) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_PRODUCTS', 'Some products are invalid, please check them.')), isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_PLACE_SPOT', 'Please, select your spot to place order.')), options.type === 1 && (validationFields === null || validationFields === void 0
|
|
232
|
+
}, !(cart !== null && cart !== void 0 && cart.valid_maximum) ? "".concat(t('MAXIMUM_SUBTOTAL_ORDER', 'Maximum subtotal order'), ": ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.maximum)) : !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) ? "".concat(t('MINIMUN_SUBTOTAL_ORDER', 'Minimum subtotal order:'), " ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.minimum)) : placing ? t('PLACING', 'Placing') : t('PLACE_ORDER', 'Place Order'))), !(cart !== null && cart !== void 0 && cart.valid_address) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_ADDRESS', 'Selected address is invalid, please select a closer address.')), !paymethodSelected && (cart === null || cart === void 0 ? void 0 : cart.balance) > 0 && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_NOT_PAYMENT_SELECTED', 'Please, select a payment method to place order.')), !(cart !== null && cart !== void 0 && cart.valid_products) && (cart === null || cart === void 0 ? void 0 : cart.status) !== 2 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_PRODUCTS', 'Some products are invalid, please check them.')), isTableNumberEnabled === '1' && (options === null || options === void 0 ? void 0 : options.type) === 3 && !(cart !== null && cart !== void 0 && cart.spot_number || placeSpotNumber) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_PLACE_SPOT', 'Please, select your spot to place order.')), options.type === 1 && (validationFields === null || validationFields === void 0 || (_validationFields$fie12 = validationFields.fields) === null || _validationFields$fie12 === void 0 || (_validationFields$fie12 = _validationFields$fie12.checkout) === null || _validationFields$fie12 === void 0 || (_validationFields$fie12 = _validationFields$fie12.driver_tip) === null || _validationFields$fie12 === void 0 ? void 0 : _validationFields$fie12.enabled) && (validationFields === null || validationFields === void 0 || (_validationFields$fie13 = validationFields.fields) === null || _validationFields$fie13 === void 0 || (_validationFields$fie13 = _validationFields$fie13.checkout) === null || _validationFields$fie13 === void 0 || (_validationFields$fie13 = _validationFields$fie13.driver_tip) === null || _validationFields$fie13 === void 0 ? void 0 : _validationFields$fie13.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_DRIVER_TIP', 'Driver Tip is required.')), validateCommentsCartField && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_INVALID_CART_COMMENTS', 'Cart comments is required.')), validateZipcodeCard && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('WARNING_CARD_ZIPCODE_REQUIRED', 'Your card selected has not zipcode')), (cart === null || cart === void 0 ? void 0 : cart.valid_preorder) !== undefined && !(cart !== null && cart !== void 0 && cart.valid_preorder) && /*#__PURE__*/_react.default.createElement(_styles2.WarningText, null, t('INVALID_CART_MOMENT', 'Selected schedule time is invalid, please select a schedule into the business schedule interval.')), /*#__PURE__*/_react.default.createElement(_Shared.Alert, {
|
|
233
233
|
title: t('CUSTOMER_DETAILS', 'Customer Details'),
|
|
234
234
|
content: alertState.content,
|
|
235
235
|
acceptText: t('ACCEPT', 'Accept'),
|
|
@@ -296,11 +296,11 @@ var Checkout = function Checkout(props) {
|
|
|
296
296
|
setIsResetPaymethod = _useState20[1];
|
|
297
297
|
var cartsWithProducts = (orderState === null || orderState === void 0 ? void 0 : orderState.carts) && (((_Object$values = Object.values(orderState === null || orderState === void 0 ? void 0 : orderState.carts)) === null || _Object$values === void 0 ? void 0 : _Object$values.filter(function (cart) {
|
|
298
298
|
var _cart$products;
|
|
299
|
-
return (cart === null || cart === void 0 ? void 0 : cart.products) && (cart === null || cart === void 0
|
|
299
|
+
return (cart === null || cart === void 0 ? void 0 : cart.products) && (cart === null || cart === void 0 || (_cart$products = cart.products) === null || _cart$products === void 0 ? void 0 : _cart$products.length);
|
|
300
300
|
})) || null);
|
|
301
301
|
var carts = businessSlug ? cartsWithProducts.filter(function (cart) {
|
|
302
302
|
var _cart$business;
|
|
303
|
-
return (cart === null || cart === void 0
|
|
303
|
+
return (cart === null || cart === void 0 || (_cart$business = cart.business) === null || _cart$business === void 0 ? void 0 : _cart$business.slug) === businessSlug || businessSlug === (cart === null || cart === void 0 ? void 0 : cart.business_id);
|
|
304
304
|
}) : cartsWithProducts;
|
|
305
305
|
var closeAlert = function closeAlert() {
|
|
306
306
|
setAlertState({
|
|
@@ -327,7 +327,7 @@ var Checkout = function Checkout(props) {
|
|
|
327
327
|
}, [errors]);
|
|
328
328
|
var getOrder = /*#__PURE__*/function () {
|
|
329
329
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(cartId) {
|
|
330
|
-
var _result$order, result, cart, userCustomer, url, response, content, _result,
|
|
330
|
+
var _result$order, result, cart, userCustomer, url, response, content, _result, credomaticData, urlParams, paramsObj, _confirmCartRes$resul, confirmCartRes, _cart, spotNumberFromStorage, _JSON$parse, _JSON$parse2, _cart2, spotNumber, slug;
|
|
331
331
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
332
332
|
while (1) switch (_context.prev = _context.next) {
|
|
333
333
|
case 0:
|
|
@@ -382,7 +382,7 @@ var Checkout = function Checkout(props) {
|
|
|
382
382
|
break;
|
|
383
383
|
}
|
|
384
384
|
credomaticData = null;
|
|
385
|
-
if (((_result = result) === null || _result === void 0
|
|
385
|
+
if (((_result = result) === null || _result === void 0 || (_result = _result.paymethod_data) === null || _result === void 0 ? void 0 : _result.gateway) === 'credomatic') {
|
|
386
386
|
urlParams = new URLSearchParams(window.location.search);
|
|
387
387
|
paramsObj = Object.fromEntries(urlParams.entries());
|
|
388
388
|
credomaticData = {
|
|
@@ -426,7 +426,7 @@ var Checkout = function Checkout(props) {
|
|
|
426
426
|
if (spotNumberFromStorage) {
|
|
427
427
|
spotNumber = (_JSON$parse = JSON.parse(spotNumberFromStorage)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.tableNumber;
|
|
428
428
|
slug = (_JSON$parse2 = JSON.parse(spotNumberFromStorage)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2.slug;
|
|
429
|
-
if (((_cart2 = _cart) === null || _cart2 === void 0
|
|
429
|
+
if (((_cart2 = _cart) === null || _cart2 === void 0 || (_cart2 = _cart2.business) === null || _cart2 === void 0 ? void 0 : _cart2.slug) === slug) {
|
|
430
430
|
_cart = _objectSpread(_objectSpread({}, _cart), {}, {
|
|
431
431
|
spot_number: parseInt(spotNumber, 10)
|
|
432
432
|
});
|
|
@@ -48,15 +48,15 @@ var DriverTipsUI = function DriverTipsUI(props) {
|
|
|
48
48
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
49
|
value = _useState4[0],
|
|
50
50
|
setvalue = _useState4[1];
|
|
51
|
-
var isFixedPriceType = parseInt(configs === null || configs === void 0
|
|
51
|
+
var isFixedPriceType = parseInt(configs === null || configs === void 0 || (_configs$driver_tip_t = configs.driver_tip_type) === null || _configs$driver_tip_t === void 0 ? void 0 : _configs$driver_tip_t.value, 10) === 1;
|
|
52
52
|
var currentTip = customTip ? parseFloat(driverTip || 0) > 0 : (!customTip && !driverTipsOptions.includes(driverTip) && parseFloat(driverTip || 0)) > 0;
|
|
53
53
|
var handleChangeDriverTip = function handleChangeDriverTip(e) {
|
|
54
54
|
var _e$target, _e$target2;
|
|
55
|
-
var tip = Number(e === null || e === void 0
|
|
55
|
+
var tip = Number(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
|
|
56
56
|
if (isNaN(tip) || tip < 0) return;
|
|
57
|
-
setvalue(e === null || e === void 0
|
|
57
|
+
setvalue(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
|
|
58
58
|
};
|
|
59
|
-
var placeholderCurrency = !isFixedPriceType ? '0%' : ((configs === null || configs === void 0
|
|
59
|
+
var placeholderCurrency = !isFixedPriceType ? '0%' : ((configs === null || configs === void 0 || (_configs$currency_pos = configs.currency_position) === null || _configs$currency_pos === void 0 ? void 0 : _configs$currency_pos.value) || 'left') === 'left' ? "".concat(configs === null || configs === void 0 || (_configs$format_numbe = configs.format_number_currency) === null || _configs$format_numbe === void 0 ? void 0 : _configs$format_numbe.value, "0") : "0".concat(configs === null || configs === void 0 || (_configs$format_numbe2 = configs.format_number_currency) === null || _configs$format_numbe2 === void 0 ? void 0 : _configs$format_numbe2.value);
|
|
60
60
|
var multiCartTipsAmmout = carts === null || carts === void 0 ? void 0 : carts.reduce(function (total, cart) {
|
|
61
61
|
return total + parseFloat((cart === null || cart === void 0 ? void 0 : cart.driver_tip) || 0);
|
|
62
62
|
}, 0);
|
package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js
CHANGED
|
@@ -29,10 +29,10 @@ var Map = function Map(props) {
|
|
|
29
29
|
var mapRef = (0, _react.useRef)(null);
|
|
30
30
|
var googleMapsApiKey = (0, _react.useMemo)(function () {
|
|
31
31
|
var _configs$google_maps_;
|
|
32
|
-
return configs === null || configs === void 0
|
|
32
|
+
return configs === null || configs === void 0 || (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value;
|
|
33
33
|
}, [configs]);
|
|
34
|
-
var defaultLatitude = Number(configs === null || configs === void 0
|
|
35
|
-
var defaultLongitude = Number(configs === null || configs === void 0
|
|
34
|
+
var defaultLatitude = Number(configs === null || configs === void 0 || (_configs$location_def = configs.location_default_latitude) === null || _configs$location_def === void 0 ? void 0 : _configs$location_def.value);
|
|
35
|
+
var defaultLongitude = Number(configs === null || configs === void 0 || (_configs$location_def2 = configs.location_default_longitude) === null || _configs$location_def2 === void 0 ? void 0 : _configs$location_def2.value);
|
|
36
36
|
var isInvalidDefaultLocation = isNaN(defaultLatitude) || isNaN(defaultLongitude);
|
|
37
37
|
var defaultCenter = {
|
|
38
38
|
lat: !isInvalidDefaultLocation ? defaultLatitude : 40.7744146,
|
|
@@ -72,12 +72,12 @@ var Map = function Map(props) {
|
|
|
72
72
|
bounds.extend(newPoint);
|
|
73
73
|
var newBounds = {
|
|
74
74
|
ne: {
|
|
75
|
-
lat: (_bounds$getNorthEast = bounds.getNorthEast()) === null || _bounds$getNorthEast === void 0
|
|
76
|
-
lng: (_bounds$getNorthEast2 = bounds.getNorthEast()) === null || _bounds$getNorthEast2 === void 0
|
|
75
|
+
lat: (_bounds$getNorthEast = bounds.getNorthEast()) === null || _bounds$getNorthEast === void 0 || (_bounds$getNorthEast$ = _bounds$getNorthEast.lat) === null || _bounds$getNorthEast$ === void 0 ? void 0 : _bounds$getNorthEast$.call(_bounds$getNorthEast),
|
|
76
|
+
lng: (_bounds$getNorthEast2 = bounds.getNorthEast()) === null || _bounds$getNorthEast2 === void 0 || (_bounds$getNorthEast3 = _bounds$getNorthEast2.lng) === null || _bounds$getNorthEast3 === void 0 ? void 0 : _bounds$getNorthEast3.call(_bounds$getNorthEast2)
|
|
77
77
|
},
|
|
78
78
|
sw: {
|
|
79
|
-
lat: (_bounds$getSouthWest = bounds.getSouthWest()) === null || _bounds$getSouthWest === void 0
|
|
80
|
-
lng: (_bounds$getSouthWest2 = bounds.getSouthWest()) === null || _bounds$getSouthWest2 === void 0
|
|
79
|
+
lat: (_bounds$getSouthWest = bounds.getSouthWest()) === null || _bounds$getSouthWest === void 0 || (_bounds$getSouthWest$ = _bounds$getSouthWest.lat) === null || _bounds$getSouthWest$ === void 0 ? void 0 : _bounds$getSouthWest$.call(_bounds$getSouthWest),
|
|
80
|
+
lng: (_bounds$getSouthWest2 = bounds.getSouthWest()) === null || _bounds$getSouthWest2 === void 0 || (_bounds$getSouthWest3 = _bounds$getSouthWest2.lng) === null || _bounds$getSouthWest3 === void 0 ? void 0 : _bounds$getSouthWest3.call(_bounds$getSouthWest2)
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
var mapSize = {
|
|
@@ -118,8 +118,8 @@ var Map = function Map(props) {
|
|
|
118
118
|
yesIWantToUseGoogleMapApiInternals: true
|
|
119
119
|
}, (business === null || business === void 0 ? void 0 : business.location) && /*#__PURE__*/_react.default.createElement(_InterActOrderMarker.InterActOrderMarker, {
|
|
120
120
|
business: business,
|
|
121
|
-
lat: business === null || business === void 0
|
|
122
|
-
lng: business === null || business === void 0
|
|
121
|
+
lat: business === null || business === void 0 || (_business$location = business.location) === null || _business$location === void 0 ? void 0 : _business$location.lat,
|
|
122
|
+
lng: business === null || business === void 0 || (_business$location2 = business.location) === null || _business$location2 === void 0 ? void 0 : _business$location2.lng,
|
|
123
123
|
image: business === null || business === void 0 ? void 0 : business.logo
|
|
124
124
|
}), /*#__PURE__*/_react.default.createElement(_InterActOrderMarker.InterActOrderMarker, {
|
|
125
125
|
customer: customer,
|
|
@@ -46,7 +46,7 @@ var PaymentOptionCardUI = function PaymentOptionCardUI(props) {
|
|
|
46
46
|
setAddCardOpen = _useState2[1];
|
|
47
47
|
(0, _react.useEffect)(function () {
|
|
48
48
|
var _cardsList$cards;
|
|
49
|
-
if ((cardsList === null || cardsList === void 0
|
|
49
|
+
if ((cardsList === null || cardsList === void 0 || (_cardsList$cards = cardsList.cards) === null || _cardsList$cards === void 0 ? void 0 : _cardsList$cards.length) > 0) {
|
|
50
50
|
setAddCardOpen(true);
|
|
51
51
|
}
|
|
52
52
|
}, [cardsList === null || cardsList === void 0 ? void 0 : cardsList.cards]);
|
|
@@ -36,11 +36,11 @@ var PaymentOptionCash = function PaymentOptionCash(props) {
|
|
|
36
36
|
var timeout = null;
|
|
37
37
|
var onChangeCash = function onChangeCash(e) {
|
|
38
38
|
var _e$target;
|
|
39
|
-
if (!/^(?=.)([+-]?([0-9]*)(\.([0-9]+))?)$/.test(e === null || e === void 0
|
|
39
|
+
if (!/^(?=.)([+-]?([0-9]*)(\.([0-9]+))?)$/.test(e === null || e === void 0 || (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value)) return;
|
|
40
40
|
clearTimeout(timeout);
|
|
41
41
|
timeout = setTimeout(function () {
|
|
42
42
|
var _e$target2;
|
|
43
|
-
var cash = parseFloat(e === null || e === void 0
|
|
43
|
+
var cash = parseFloat(e === null || e === void 0 || (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
|
|
44
44
|
cash = isNaN(cash) ? null : cash;
|
|
45
45
|
setvalue(cash);
|
|
46
46
|
if (cash >= orderTotal || !cash) {
|
|
@@ -38,7 +38,7 @@ var PaymentOptionPaypal = function PaymentOptionPaypal(props) {
|
|
|
38
38
|
configs = _useConfig2[0].configs;
|
|
39
39
|
var paymentPaypalProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
40
40
|
UIComponent: PaymentOptionPaypalUI,
|
|
41
|
-
currency: configs === null || configs === void 0
|
|
41
|
+
currency: configs === null || configs === void 0 || (_configs$stripe_curre = configs.stripe_currency) === null || _configs$stripe_curre === void 0 ? void 0 : _configs$stripe_curre.value
|
|
42
42
|
});
|
|
43
43
|
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.PaymentOptionPaypal, paymentPaypalProps);
|
|
44
44
|
};
|