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
|
@@ -53,7 +53,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
53
53
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
54
54
|
var PIXELS_TO_SCROLL = 300;
|
|
55
55
|
var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
56
|
-
var _citiesState$cities, _ref, _theme$business_listi, _theme$business_listi2, _theme$business_listi3,
|
|
56
|
+
var _citiesState$cities, _ref, _theme$business_listi, _orderState$options, _theme$business_listi2, _theme$business_listi3, _theme$business_listi4, _theme$business_listi5, _theme$business_listi6, _theme$business_listi7, _businessesList$busin, _theme$header, _orderState$options2, _orderState$options3, _businessesList$busin3, _orderState$options7, _configs$business_lis, _configs$business_lis2, _configs$business_lis3, _theme$images2, _theme$business_listi8, _configs$business_lis4, _theme$images3, _theme$business_listi9, _citiesState$cities5, _citiesState$cities6, _orderState$options9, _configs$advanced_bus2, _citiesState$cities7, _citiesState$cities8, _orderState$options11, _businessesList$busin5, _businessesList$busin6, _orderState$options14;
|
|
57
57
|
var businessesList = props.businessesList,
|
|
58
58
|
paginationProps = props.paginationProps,
|
|
59
59
|
searchValue = props.searchValue,
|
|
@@ -125,22 +125,22 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
125
125
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
126
126
|
favoriteIds = _useState16[0],
|
|
127
127
|
setFavoriteIds = _useState16[1];
|
|
128
|
-
var allCitiesDisabled = citiesState === null || citiesState === void 0
|
|
128
|
+
var allCitiesDisabled = citiesState === null || citiesState === void 0 || (_citiesState$cities = citiesState.cities) === null || _citiesState$cities === void 0 ? void 0 : _citiesState$cities.every(function (city) {
|
|
129
129
|
return !city.enabled;
|
|
130
130
|
});
|
|
131
|
-
var hideCities = (_ref = (theme === null || theme === void 0
|
|
132
|
-
var hideSearch = theme === null || theme === void 0
|
|
133
|
-
var hideFilter = (theme === null || theme === void 0
|
|
134
|
-
var hideHero = theme === null || theme === void 0
|
|
135
|
-
var hidePreviousOrders = theme === null || theme === void 0
|
|
136
|
-
var hideHighestBusiness = theme === null || theme === void 0
|
|
131
|
+
var hideCities = (_ref = (theme === null || theme === void 0 || (_theme$business_listi = theme.business_listing_view) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.components) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.cities) === null || _theme$business_listi === void 0 ? void 0 : _theme$business_listi.hidden) || (orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) !== 2 || allCitiesDisabled) !== null && _ref !== void 0 ? _ref : true;
|
|
132
|
+
var hideSearch = theme === null || theme === void 0 || (_theme$business_listi2 = theme.business_listing_view) === null || _theme$business_listi2 === void 0 || (_theme$business_listi2 = _theme$business_listi2.components) === null || _theme$business_listi2 === void 0 || (_theme$business_listi2 = _theme$business_listi2.search) === null || _theme$business_listi2 === void 0 ? void 0 : _theme$business_listi2.hidden;
|
|
133
|
+
var hideFilter = (theme === null || theme === void 0 || (_theme$business_listi3 = theme.business_listing_view) === null || _theme$business_listi3 === void 0 || (_theme$business_listi3 = _theme$business_listi3.components) === null || _theme$business_listi3 === void 0 || (_theme$business_listi3 = _theme$business_listi3.filter) === null || _theme$business_listi3 === void 0 ? void 0 : _theme$business_listi3.hidden) || hideSearch;
|
|
134
|
+
var hideHero = theme === null || theme === void 0 || (_theme$business_listi4 = theme.business_listing_view) === null || _theme$business_listi4 === void 0 || (_theme$business_listi4 = _theme$business_listi4.components) === null || _theme$business_listi4 === void 0 || (_theme$business_listi4 = _theme$business_listi4.business_hero) === null || _theme$business_listi4 === void 0 ? void 0 : _theme$business_listi4.hidden;
|
|
135
|
+
var hidePreviousOrders = theme === null || theme === void 0 || (_theme$business_listi5 = theme.business_listing_view) === null || _theme$business_listi5 === void 0 || (_theme$business_listi5 = _theme$business_listi5.components) === null || _theme$business_listi5 === void 0 || (_theme$business_listi5 = _theme$business_listi5.previous_orders_block) === null || _theme$business_listi5 === void 0 ? void 0 : _theme$business_listi5.hidden;
|
|
136
|
+
var hideHighestBusiness = theme === null || theme === void 0 || (_theme$business_listi6 = theme.business_listing_view) === null || _theme$business_listi6 === void 0 || (_theme$business_listi6 = _theme$business_listi6.components) === null || _theme$business_listi6 === void 0 || (_theme$business_listi6 = _theme$business_listi6.highest_rated_business_block) === null || _theme$business_listi6 === void 0 ? void 0 : _theme$business_listi6.hidden;
|
|
137
137
|
var hideSearchSection = hideCities && hideSearch && hideFilter;
|
|
138
|
-
var isAllCategoriesHidden = theme === null || theme === void 0
|
|
138
|
+
var isAllCategoriesHidden = theme === null || theme === void 0 || (_theme$business_listi7 = theme.business_listing_view) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.components) === null || _theme$business_listi7 === void 0 || (_theme$business_listi7 = _theme$business_listi7.categories) === null || _theme$business_listi7 === void 0 ? void 0 : _theme$business_listi7.hidden;
|
|
139
139
|
var businessesIds = businessesList.businesses && ((_businessesList$busin = businessesList.businesses) === null || _businessesList$busin === void 0 ? void 0 : _businessesList$busin.map(function (business) {
|
|
140
140
|
return business.id;
|
|
141
141
|
}));
|
|
142
|
-
var isChew = (theme === null || theme === void 0
|
|
143
|
-
var cateringTypeString = (orderState === null || orderState === void 0
|
|
142
|
+
var isChew = (theme === null || theme === void 0 || (_theme$header = theme.header) === null || _theme$header === void 0 || (_theme$header = _theme$header.components) === null || _theme$header === void 0 || (_theme$header = _theme$header.layout) === null || _theme$header === void 0 || (_theme$header = _theme$header.type) === null || _theme$header === void 0 ? void 0 : _theme$header.toLowerCase()) === 'chew';
|
|
143
|
+
var cateringTypeString = (orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type) === 7 ? 'catering_delivery' : (orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type) === 8 ? 'catering_pickup' : null;
|
|
144
144
|
var cateringValues = (preorderBusiness === null || preorderBusiness === void 0 ? void 0 : preorderBusiness.configs) && (0, _utils.getCateringValues)(cateringTypeString, preorderBusiness === null || preorderBusiness === void 0 ? void 0 : preorderBusiness.configs);
|
|
145
145
|
var handleScroll = (0, _react.useCallback)(function () {
|
|
146
146
|
var _document$documentEle, _document$documentEle2, _businessesList$error;
|
|
@@ -208,7 +208,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
208
208
|
};
|
|
209
209
|
var handleChangeCity = function handleChangeCity(cityId) {
|
|
210
210
|
var _orderState$options4;
|
|
211
|
-
changeCityFilter(cityId === (orderState === null || orderState === void 0
|
|
211
|
+
changeCityFilter(cityId === (orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.city_id) ? null : cityId);
|
|
212
212
|
};
|
|
213
213
|
(0, _react.useEffect)(function () {
|
|
214
214
|
if (preorderBusiness) setIsPreorder(true);
|
|
@@ -224,32 +224,32 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
224
224
|
}
|
|
225
225
|
});
|
|
226
226
|
setFavoriteIds(_toConsumableArray(new Set(ids)));
|
|
227
|
-
}, [businessesList === null || businessesList === void 0
|
|
227
|
+
}, [businessesList === null || businessesList === void 0 || (_businessesList$busin3 = businessesList.businesses) === null || _businessesList$busin3 === void 0 ? void 0 : _businessesList$busin3.length]);
|
|
228
228
|
(0, _react.useEffect)(function () {
|
|
229
229
|
var _citiesState$cities3, _orderState$options5, _citiesState$cities4;
|
|
230
230
|
if (!(citiesState !== null && citiesState !== void 0 && (_citiesState$cities3 = citiesState.cities) !== null && _citiesState$cities3 !== void 0 && _citiesState$cities3.length) || !(orderState !== null && orderState !== void 0 && (_orderState$options5 = orderState.options) !== null && _orderState$options5 !== void 0 && _orderState$options5.city_id)) return;
|
|
231
|
-
var selectedCity = citiesState === null || citiesState === void 0
|
|
231
|
+
var selectedCity = citiesState === null || citiesState === void 0 || (_citiesState$cities4 = citiesState.cities) === null || _citiesState$cities4 === void 0 ? void 0 : _citiesState$cities4.find(function (city) {
|
|
232
232
|
var _orderState$options6;
|
|
233
|
-
return (city === null || city === void 0 ? void 0 : city.id) === (orderState === null || orderState === void 0
|
|
233
|
+
return (city === null || city === void 0 ? void 0 : city.id) === (orderState === null || orderState === void 0 || (_orderState$options6 = orderState.options) === null || _orderState$options6 === void 0 ? void 0 : _orderState$options6.city_id);
|
|
234
234
|
});
|
|
235
235
|
if (!selectedCity || !(selectedCity !== null && selectedCity !== void 0 && selectedCity.enabled)) changeCityFilter(null);
|
|
236
|
-
}, [citiesState, orderState === null || orderState === void 0
|
|
236
|
+
}, [citiesState, orderState === null || orderState === void 0 || (_orderState$options7 = orderState.options) === null || _orderState$options7 === void 0 ? void 0 : _orderState$options7.city_id]);
|
|
237
237
|
if (logosLayout) {
|
|
238
|
-
var _businessesList$busin4
|
|
238
|
+
var _businessesList$busin4;
|
|
239
239
|
return /*#__PURE__*/_react.default.createElement(_styles.BusinessLogosWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessLogosContainer, null, /*#__PURE__*/_react.default.createElement(_AutoScroll.AutoScroll, {
|
|
240
240
|
scrollId: "businessLogos"
|
|
241
241
|
}, businessesList !== null && businessesList !== void 0 && businessesList.loading ? /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
242
242
|
count: 12,
|
|
243
243
|
height: 75,
|
|
244
244
|
width: 75
|
|
245
|
-
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_businessesList$busin4 = businessesList.businesses) === null || _businessesList$busin4 === void 0
|
|
245
|
+
}) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_businessesList$busin4 = businessesList.businesses) === null || _businessesList$busin4 === void 0 || (_businessesList$busin4 = _businessesList$busin4.filter(function (business) {
|
|
246
246
|
return business === null || business === void 0 ? void 0 : business.open;
|
|
247
|
-
})) === null || _businessesList$
|
|
248
|
-
var _theme$images
|
|
247
|
+
})) === null || _businessesList$busin4 === void 0 ? void 0 : _businessesList$busin4.map(function (business) {
|
|
248
|
+
var _theme$images;
|
|
249
249
|
return /*#__PURE__*/_react.default.createElement(_styles.BusinessLogo, {
|
|
250
250
|
key: business === null || business === void 0 ? void 0 : business.id,
|
|
251
251
|
isActive: actualSlug === (business === null || business === void 0 ? void 0 : business.slug),
|
|
252
|
-
bgimage: (business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0
|
|
252
|
+
bgimage: (business === null || business === void 0 ? void 0 : business.logo) || ((_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.dummies) === null || _theme$images === void 0 ? void 0 : _theme$images.businessLogo),
|
|
253
253
|
onClick: function onClick() {
|
|
254
254
|
return onBusinessClick(business);
|
|
255
255
|
}
|
|
@@ -259,21 +259,21 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
259
259
|
return /*#__PURE__*/_react.default.createElement(_styles.BusinessContainer, null, /*#__PURE__*/_react.default.createElement(_PageBanner.PageBanner, {
|
|
260
260
|
position: "web_business_listing",
|
|
261
261
|
isCustomerMode: isCustomerMode
|
|
262
|
-
}), (windowSize.width < 576 || (configs === null || configs === void 0
|
|
262
|
+
}), (windowSize.width < 576 || (configs === null || configs === void 0 || (_configs$business_lis = configs.business_listing_hide_image) === null || _configs$business_lis === void 0 ? void 0 : _configs$business_lis.value) !== '1' && !isChew) && /*#__PURE__*/_react.default.createElement(_styles.BusinessBanner, null, windowSize.width < 576 && /*#__PURE__*/_react.default.createElement(_OrderContextUI.OrderContextUI, {
|
|
263
263
|
isBusinessList: true,
|
|
264
|
-
hideHero: (configs === null || configs === void 0
|
|
265
|
-
}), (configs === null || configs === void 0
|
|
266
|
-
bgimage: (_theme$images2 = theme.images) === null || _theme$images2 === void 0
|
|
267
|
-
height: theme === null || theme === void 0
|
|
264
|
+
hideHero: (configs === null || configs === void 0 || (_configs$business_lis2 = configs.business_listing_hide_image) === null || _configs$business_lis2 === void 0 ? void 0 : _configs$business_lis2.value) !== '1' && !isChew && !hideHero
|
|
265
|
+
}), (configs === null || configs === void 0 || (_configs$business_lis3 = configs.business_listing_hide_image) === null || _configs$business_lis3 === void 0 ? void 0 : _configs$business_lis3.value) !== '1' && !isChew && !hideHero && /*#__PURE__*/_react.default.createElement(_styles.BusinessHeroImg, {
|
|
266
|
+
bgimage: (_theme$images2 = theme.images) === null || _theme$images2 === void 0 || (_theme$images2 = _theme$images2.general) === null || _theme$images2 === void 0 ? void 0 : _theme$images2.businessHero,
|
|
267
|
+
height: theme === null || theme === void 0 || (_theme$business_listi8 = theme.business_listing_view) === null || _theme$business_listi8 === void 0 || (_theme$business_listi8 = _theme$business_listi8.components) === null || _theme$business_listi8 === void 0 || (_theme$business_listi8 = _theme$business_listi8.business_hero) === null || _theme$business_listi8 === void 0 || (_theme$business_listi8 = _theme$business_listi8.style) === null || _theme$business_listi8 === void 0 ? void 0 : _theme$business_listi8.height
|
|
268
268
|
})), /*#__PURE__*/_react.default.createElement(_OrderProgress.OrderProgress, {
|
|
269
269
|
isChew: isChew,
|
|
270
270
|
franchiseId: props.franchiseId,
|
|
271
271
|
userCustomerId: userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.id,
|
|
272
272
|
asDashboard: isCustomerMode,
|
|
273
273
|
isCustomerMode: isCustomerMode
|
|
274
|
-
}), (configs === null || configs === void 0
|
|
275
|
-
bgimage: (_theme$images3 = theme.images) === null || _theme$images3 === void 0
|
|
276
|
-
height: theme === null || theme === void 0
|
|
274
|
+
}), (configs === null || configs === void 0 || (_configs$business_lis4 = configs.business_listing_hide_image) === null || _configs$business_lis4 === void 0 ? void 0 : _configs$business_lis4.value) !== '1' && isChew && /*#__PURE__*/_react.default.createElement(_styles.BusinessHeroImg, {
|
|
275
|
+
bgimage: (_theme$images3 = theme.images) === null || _theme$images3 === void 0 || (_theme$images3 = _theme$images3.general) === null || _theme$images3 === void 0 ? void 0 : _theme$images3.businessHero,
|
|
276
|
+
height: theme === null || theme === void 0 || (_theme$business_listi9 = theme.business_listing_view) === null || _theme$business_listi9 === void 0 || (_theme$business_listi9 = _theme$business_listi9.components) === null || _theme$business_listi9 === void 0 || (_theme$business_listi9 = _theme$business_listi9.business_hero) === null || _theme$business_listi9 === void 0 || (_theme$business_listi9 = _theme$business_listi9.style) === null || _theme$business_listi9 === void 0 ? void 0 : _theme$business_listi9.height
|
|
277
277
|
}), isCustomerMode && !hidePreviousOrders && !businessesList.loading && /*#__PURE__*/_react.default.createElement(_OrdersSection.OrdersSection, {
|
|
278
278
|
titleContent: t('PREVIOUS_ORDERS', 'Previous orders'),
|
|
279
279
|
onRedirectPage: onRedirectPage,
|
|
@@ -293,21 +293,21 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
293
293
|
onSearch: handleChangeSearch,
|
|
294
294
|
handleCustomEnter: function handleCustomEnter() {
|
|
295
295
|
var _configs$advanced_bus;
|
|
296
|
-
return (configs === null || configs === void 0
|
|
296
|
+
return (configs === null || configs === void 0 || (_configs$advanced_bus = configs.advanced_business_search_enabled) === null || _configs$advanced_bus === void 0 ? void 0 : _configs$advanced_bus.value) === '0' ? null : onRedirectPage({
|
|
297
297
|
page: 'business_search'
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
|
-
}), !hideCities && (citiesState === null || citiesState === void 0
|
|
300
|
+
}), !hideCities && (citiesState === null || citiesState === void 0 || (_citiesState$cities5 = citiesState.cities) === null || _citiesState$cities5 === void 0 ? void 0 : _citiesState$cities5.length) > 0 && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
301
301
|
color: "primary",
|
|
302
302
|
onClick: handleOpenCities
|
|
303
|
-
}, (citiesState === null || citiesState === void 0
|
|
303
|
+
}, (citiesState === null || citiesState === void 0 || (_citiesState$cities6 = citiesState.cities) === null || _citiesState$cities6 === void 0 || (_citiesState$cities6 = _citiesState$cities6.find(function (city) {
|
|
304
304
|
var _orderState$options8;
|
|
305
|
-
return (city === null || city === void 0 ? void 0 : city.id) === (orderState === null || orderState === void 0
|
|
306
|
-
})) === null || _citiesState$cities6
|
|
305
|
+
return (city === null || city === void 0 ? void 0 : city.id) === (orderState === null || orderState === void 0 || (_orderState$options8 = orderState.options) === null || _orderState$options8 === void 0 ? void 0 : _orderState$options8.city_id);
|
|
306
|
+
})) === null || _citiesState$cities6 === void 0 ? void 0 : _citiesState$cities6.name) || t('SELECT_A_CITY', 'Select a city')), isCustomLayout && /*#__PURE__*/_react.default.createElement(_FiMap.default, {
|
|
307
307
|
onClick: toggleMap
|
|
308
308
|
})), activeMap && /*#__PURE__*/_react.default.createElement(_BusinessesMap.BusinessesMap, {
|
|
309
309
|
businessList: businessesList.businesses,
|
|
310
|
-
userLocation: orderState === null || orderState === void 0
|
|
310
|
+
userLocation: orderState === null || orderState === void 0 || (_orderState$options9 = orderState.options) === null || _orderState$options9 === void 0 || (_orderState$options9 = _orderState$options9.address) === null || _orderState$options9 === void 0 ? void 0 : _orderState$options9.location,
|
|
311
311
|
setErrors: setMapErrors
|
|
312
312
|
})), !isChew && hasHighRatedBusiness && !props.franchiseId && !hideHighestBusiness && /*#__PURE__*/_react.default.createElement(_styles.HightestRatedWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.Divider, null), /*#__PURE__*/_react.default.createElement(_HighestRated.HighestRated, {
|
|
313
313
|
propsToFetch: props.propsToFetch,
|
|
@@ -334,7 +334,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
334
334
|
isCustomLayout: isCustomLayout,
|
|
335
335
|
placeholder: t('SEARCH_BUSINESSES', 'Search Businesses'),
|
|
336
336
|
onSearch: handleChangeSearch
|
|
337
|
-
}), (configs === null || configs === void 0
|
|
337
|
+
}), (configs === null || configs === void 0 || (_configs$advanced_bus2 = configs.advanced_business_search_enabled) === null || _configs$advanced_bus2 === void 0 ? void 0 : _configs$advanced_bus2.value) === '1' && /*#__PURE__*/_react.default.createElement(_FiFilter.default, {
|
|
338
338
|
onClick: function onClick() {
|
|
339
339
|
return onRedirectPage({
|
|
340
340
|
page: 'business_search'
|
|
@@ -342,17 +342,17 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
342
342
|
}
|
|
343
343
|
}), isCustomLayout && /*#__PURE__*/_react.default.createElement(_FiMap.default, {
|
|
344
344
|
onClick: toggleMap
|
|
345
|
-
}), !hideCities && (citiesState === null || citiesState === void 0
|
|
345
|
+
}), !hideCities && (citiesState === null || citiesState === void 0 || (_citiesState$cities7 = citiesState.cities) === null || _citiesState$cities7 === void 0 ? void 0 : _citiesState$cities7.length) > 0 && /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
346
346
|
color: "primary",
|
|
347
347
|
onClick: handleOpenCities
|
|
348
|
-
}, (citiesState === null || citiesState === void 0
|
|
348
|
+
}, (citiesState === null || citiesState === void 0 || (_citiesState$cities8 = citiesState.cities) === null || _citiesState$cities8 === void 0 || (_citiesState$cities8 = _citiesState$cities8.find(function (city) {
|
|
349
349
|
var _orderState$options10;
|
|
350
|
-
return (city === null || city === void 0 ? void 0 : city.id) === (orderState === null || orderState === void 0
|
|
351
|
-
})) === null || _citiesState$cities8
|
|
350
|
+
return (city === null || city === void 0 ? void 0 : city.id) === (orderState === null || orderState === void 0 || (_orderState$options10 = orderState.options) === null || _orderState$options10 === void 0 ? void 0 : _orderState$options10.city_id);
|
|
351
|
+
})) === null || _citiesState$cities8 === void 0 ? void 0 : _citiesState$cities8.name) || t('SELECT_A_CITY', 'Select a city')))), isCustomerMode && activeMap && /*#__PURE__*/_react.default.createElement(_BusinessesMap.BusinessesMap, {
|
|
352
352
|
businessList: businessesList.businesses,
|
|
353
|
-
userLocation: orderState === null || orderState === void 0
|
|
353
|
+
userLocation: orderState === null || orderState === void 0 || (_orderState$options11 = orderState.options) === null || _orderState$options11 === void 0 || (_orderState$options11 = _orderState$options11.address) === null || _orderState$options11 === void 0 ? void 0 : _orderState$options11.location,
|
|
354
354
|
setErrors: setMapErrors
|
|
355
|
-
}), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (!isCustomLayout && isCustomerMode && (businessesList === null || businessesList === void 0
|
|
355
|
+
}), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (!isCustomLayout && isCustomerMode && (businessesList === null || businessesList === void 0 || (_businessesList$busin5 = businessesList.businesses) === null || _businessesList$busin5 === void 0 ? void 0 : _businessesList$busin5.length) > 0 || isChew) && /*#__PURE__*/_react.default.createElement(_styles.BusinessesTitle, null, t('BUSINESSES', 'Businesses')), /*#__PURE__*/_react.default.createElement(_styles.BusinessList, null, !businessesList.loading && businessesList.businesses.length === 0 && (businessesList === null || businessesList === void 0 ? void 0 : businessesList.fetched) && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
356
356
|
content: t('NOT_FOUND_BUSINESSES', 'No businesses to delivery / pick up at this address, please change filters or change address.')
|
|
357
357
|
}, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
358
358
|
outline: true,
|
|
@@ -363,15 +363,15 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
363
363
|
style: {
|
|
364
364
|
height: '44px'
|
|
365
365
|
}
|
|
366
|
-
}, t('CHANGE_ADDRESS', 'Select other Address'))), (_businessesList$
|
|
367
|
-
var _orderState$
|
|
366
|
+
}, t('CHANGE_ADDRESS', 'Select other Address'))), (_businessesList$busin6 = businessesList.businesses) === null || _businessesList$busin6 === void 0 ? void 0 : _businessesList$busin6.map(function (business) {
|
|
367
|
+
var _orderState$options12, _business$reviews;
|
|
368
368
|
return /*#__PURE__*/_react.default.createElement(_BusinessController.BusinessController, {
|
|
369
369
|
key: business.id,
|
|
370
370
|
className: "card",
|
|
371
371
|
business: business,
|
|
372
372
|
isBusinessOpen: business.open,
|
|
373
373
|
handleCustomClick: handleBusinessClick,
|
|
374
|
-
orderType: orderState === null || orderState === void 0
|
|
374
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options12 = orderState.options) === null || _orderState$options12 === void 0 ? void 0 : _orderState$options12.type,
|
|
375
375
|
isCustomLayout: isCustomLayout,
|
|
376
376
|
isCustomerMode: isCustomerMode,
|
|
377
377
|
onPreorderBusiness: setPreorderBusiness,
|
|
@@ -379,7 +379,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
379
379
|
businessFeatured: business === null || business === void 0 ? void 0 : business.featured,
|
|
380
380
|
businessOffers: business === null || business === void 0 ? void 0 : business.offers,
|
|
381
381
|
businessLogo: business === null || business === void 0 ? void 0 : business.logo,
|
|
382
|
-
businessReviews: business === null || business === void 0
|
|
382
|
+
businessReviews: business === null || business === void 0 || (_business$reviews = business.reviews) === null || _business$reviews === void 0 ? void 0 : _business$reviews.total,
|
|
383
383
|
businessDeliveryPrice: business === null || business === void 0 ? void 0 : business.delivery_price,
|
|
384
384
|
businessDeliveryTime: business === null || business === void 0 ? void 0 : business.delivery_time,
|
|
385
385
|
businessPickupTime: business === null || business === void 0 ? void 0 : business.pickup_time,
|
|
@@ -389,13 +389,13 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
389
389
|
setFavoriteIds: setFavoriteIds
|
|
390
390
|
});
|
|
391
391
|
}), (businessesList.loading || !(businessesList !== null && businessesList !== void 0 && businessesList.fetched)) && _toConsumableArray(Array((paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.nextPageItems) > 4 ? paginationProps.nextPageItems : 8).keys()).map(function (i) {
|
|
392
|
-
var _orderState$
|
|
392
|
+
var _orderState$options13;
|
|
393
393
|
return /*#__PURE__*/_react.default.createElement(_BusinessController.BusinessController, {
|
|
394
394
|
key: i,
|
|
395
395
|
className: "card",
|
|
396
396
|
business: {},
|
|
397
397
|
isSkeleton: true,
|
|
398
|
-
orderType: orderState === null || orderState === void 0
|
|
398
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options13 = orderState.options) === null || _orderState$options13 === void 0 ? void 0 : _orderState$options13.type
|
|
399
399
|
});
|
|
400
400
|
}))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
401
401
|
open: isPreorder,
|
|
@@ -448,7 +448,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
448
448
|
isCustomerMode: isCustomerMode
|
|
449
449
|
}) : /*#__PURE__*/_react.default.createElement(_styles.AddressFormWrapper, null, /*#__PURE__*/_react.default.createElement(_AddressForm.AddressForm, {
|
|
450
450
|
useValidationFileds: true,
|
|
451
|
-
address: (orderState === null || orderState === void 0
|
|
451
|
+
address: (orderState === null || orderState === void 0 || (_orderState$options14 = orderState.options) === null || _orderState$options14 === void 0 ? void 0 : _orderState$options14.address) || {},
|
|
452
452
|
onCancel: function onCancel() {
|
|
453
453
|
return setModals(_objectSpread(_objectSpread({}, modals), {}, {
|
|
454
454
|
formOpen: false
|
|
@@ -22,8 +22,8 @@ exports.BusinessSearch = BusinessSearch;
|
|
|
22
22
|
var BusinessList = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n"])));
|
|
23
23
|
exports.BusinessList = BusinessList;
|
|
24
24
|
var WrapperSearch = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 10px 20px 0px;\n display: flex;\n justify-content: flex-end;\n svg{\n align-self: center;\n cursor: pointer;\n font-size: 26px;\n color: ", ";\n margin-left: 10px;\n }\n button {\n width: 250px;\n margin-left: 10px;\n }\n ", "\n"])), function (props) {
|
|
25
|
-
var _props$theme
|
|
26
|
-
return (_props$theme = props.theme) === null || _props$theme === void 0
|
|
25
|
+
var _props$theme;
|
|
26
|
+
return (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.colors) === null || _props$theme === void 0 ? void 0 : _props$theme.primary;
|
|
27
27
|
}, function (_ref) {
|
|
28
28
|
var isCustomLayout = _ref.isCustomLayout,
|
|
29
29
|
isCustomerMode = _ref.isCustomerMode;
|
|
@@ -46,10 +46,10 @@ var BusinessHeroImgStyled = _styledComponents.default.div(_templateObject14 || (
|
|
|
46
46
|
var bgimage = _ref3.bgimage;
|
|
47
47
|
return bgimage && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n background-repeat: no-repeat, repeat;\n background-size: cover;\n object-fit: cover;\n background-position: center;\n "])));
|
|
48
48
|
}, function (_ref4) {
|
|
49
|
-
var _theme$business_listi
|
|
49
|
+
var _theme$business_listi;
|
|
50
50
|
var height = _ref4.height,
|
|
51
51
|
theme = _ref4.theme;
|
|
52
|
-
return (theme === null || theme === void 0
|
|
52
|
+
return (theme === null || theme === void 0 || (_theme$business_listi = theme.business_listing_view) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.components) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.business_hero) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.components) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.styles) === null || _theme$business_listi === void 0 ? void 0 : _theme$business_listi.height) || height || '650px';
|
|
53
53
|
});
|
|
54
54
|
exports.BusinessHeroImgStyled = BusinessHeroImgStyled;
|
|
55
55
|
var BusinessHeroImg = function BusinessHeroImg(props) {
|
package/_modules/themes/five/src/components/BusinessesListing/layouts/RedBusinessesListing/index.js
CHANGED
|
@@ -44,7 +44,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
44
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
45
|
var PIXELS_TO_SCROLL = 300;
|
|
46
46
|
var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
47
|
-
var _businessesList$busin, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$
|
|
47
|
+
var _businessesList$busin, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images2, _getCustomArray, _businessesList$busin2, _businessesList$busin3, _orderState$options6, _orderState$options7, _props$afterComponent, _props$afterElements;
|
|
48
48
|
var businessesList = props.businessesList,
|
|
49
49
|
paginationProps = props.paginationProps,
|
|
50
50
|
searchValue = props.searchValue,
|
|
@@ -193,8 +193,8 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
195
|
var handleFindBusinesses = function handleFindBusinesses() {
|
|
196
|
-
var _orderState$options
|
|
197
|
-
if (!(orderState !== null && orderState !== void 0 && (_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && (_orderState$options
|
|
196
|
+
var _orderState$options;
|
|
197
|
+
if (!(orderState !== null && orderState !== void 0 && (_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && (_orderState$options = _orderState$options.address) !== null && _orderState$options !== void 0 && _orderState$options.location)) {
|
|
198
198
|
setAlertState({
|
|
199
199
|
open: true,
|
|
200
200
|
content: [t('SELECT_AN_ADDRESS_TO_SEARCH', 'Select or add an address to search')]
|
|
@@ -280,7 +280,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
280
280
|
}, [businessesList]);
|
|
281
281
|
(0, _react.useEffect)(function () {
|
|
282
282
|
var _orderState$options2;
|
|
283
|
-
if ((orderState === null || orderState === void 0
|
|
283
|
+
if ((orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type) === 2) {
|
|
284
284
|
setIsPickup(true);
|
|
285
285
|
} else {
|
|
286
286
|
setIsPickup(false);
|
|
@@ -329,8 +329,8 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
329
329
|
defaultBusinessType: props.defaultBusinessType,
|
|
330
330
|
handleChangeBusinessType: changeBusinessType
|
|
331
331
|
})), /*#__PURE__*/_react.default.createElement(_styles.Banner, {
|
|
332
|
-
bgimage: (_theme$images = theme.images) === null || _theme$images === void 0
|
|
333
|
-
}, !((_theme$images2 = theme.images) !== null && _theme$images2 !== void 0 && (_theme$images2
|
|
332
|
+
bgimage: (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.general) === null || _theme$images === void 0 ? void 0 : _theme$images.businessListBaner
|
|
333
|
+
}, !((_theme$images2 = theme.images) !== null && _theme$images2 !== void 0 && (_theme$images2 = _theme$images2.general) !== null && _theme$images2 !== void 0 && _theme$images2.businessListBaner) && /*#__PURE__*/_react.default.createElement("p", null, "1440px X 539px banner image")), /*#__PURE__*/_react.default.createElement(_styles.BusinessList, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, {
|
|
334
334
|
isCustomLayout: isCustomLayout
|
|
335
335
|
}, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
|
|
336
336
|
lazyLoad: true,
|
|
@@ -340,7 +340,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
340
340
|
onSearch: handleChangeSearch,
|
|
341
341
|
handleCustomEnter: function handleCustomEnter(term) {
|
|
342
342
|
var _configs$advanced_bus;
|
|
343
|
-
return (configs === null || configs === void 0
|
|
343
|
+
return (configs === null || configs === void 0 || (_configs$advanced_bus = configs.advanced_business_search_enabled) === null || _configs$advanced_bus === void 0 ? void 0 : _configs$advanced_bus.value) === '1' && onRedirectPage({
|
|
344
344
|
page: 'business_search',
|
|
345
345
|
search: "?term=".concat(term)
|
|
346
346
|
});
|
|
@@ -369,9 +369,9 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
369
369
|
userCustomerId: userCustomer === null || userCustomer === void 0 ? void 0 : userCustomer.id,
|
|
370
370
|
isCustomLayout: true,
|
|
371
371
|
isBusinessesLoading: businessesList.loading
|
|
372
|
-
})), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (businessesList === null || businessesList === void 0
|
|
372
|
+
})), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (businessesList === null || businessesList === void 0 || (_businessesList$busin2 = businessesList.businesses) === null || _businessesList$busin2 === void 0 ? void 0 : _businessesList$busin2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_styles.Layout, null, /*#__PURE__*/_react.default.createElement(_styles.BusinissWrapper, {
|
|
373
373
|
isPickup: isPickup
|
|
374
|
-
}, (businessesList === null || businessesList === void 0
|
|
374
|
+
}, (businessesList === null || businessesList === void 0 || (_businessesList$busin3 = businessesList.businesses) === null || _businessesList$busin3 === void 0 ? void 0 : _businessesList$busin3.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.BusinessesTitle, null, t('FEATURES_BUSINESS', 'Features Businesses')), paginationProps.currentPage !== 1 && prevPage.page !== 1 && /*#__PURE__*/_react.default.createElement(_styles.PreviousButtonWrapper, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
375
375
|
onClick: function onClick() {
|
|
376
376
|
return handleClickPrevItems();
|
|
377
377
|
},
|
|
@@ -383,7 +383,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
383
383
|
className: "card",
|
|
384
384
|
business: {},
|
|
385
385
|
isSkeleton: true,
|
|
386
|
-
orderType: orderState === null || orderState === void 0
|
|
386
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type,
|
|
387
387
|
isPickup: isPickup
|
|
388
388
|
});
|
|
389
389
|
}), !businessesList.loading && brandBusiness.length === 0 && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, null), brandBusiness === null || brandBusiness === void 0 ? void 0 : brandBusiness.map(function (business) {
|
|
@@ -394,7 +394,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
394
394
|
business: business,
|
|
395
395
|
isBusinessOpen: business.open,
|
|
396
396
|
handleCustomClick: handleBusinessClick,
|
|
397
|
-
orderType: orderState === null || orderState === void 0
|
|
397
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.type,
|
|
398
398
|
isCustomLayout: isCustomLayout,
|
|
399
399
|
isShowCallcenterInformation: isCustomLayout,
|
|
400
400
|
isPickup: isPickup
|
|
@@ -406,14 +406,14 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
406
406
|
className: "card",
|
|
407
407
|
business: {},
|
|
408
408
|
isSkeleton: true,
|
|
409
|
-
orderType: orderState === null || orderState === void 0
|
|
409
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0 ? void 0 : _orderState$options5.type,
|
|
410
410
|
isPickup: isPickup
|
|
411
411
|
});
|
|
412
412
|
})), isPickup && /*#__PURE__*/_react.default.createElement(_styles.MapWrapper, {
|
|
413
413
|
isPickup: isPickup
|
|
414
414
|
}, activeMap && /*#__PURE__*/_react.default.createElement(_BusinessesMap.BusinessesMap, {
|
|
415
415
|
businessList: brandBusiness,
|
|
416
|
-
userLocation: orderState === null || orderState === void 0
|
|
416
|
+
userLocation: orderState === null || orderState === void 0 || (_orderState$options6 = orderState.options) === null || _orderState$options6 === void 0 || (_orderState$options6 = _orderState$options6.address) === null || _orderState$options6 === void 0 ? void 0 : _orderState$options6.location,
|
|
417
417
|
setErrors: setMapErrors
|
|
418
418
|
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !businessesList.loading && businessesList.businesses.length === 0 ? /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
419
419
|
content: t('NOT_FOUND_BUSINESSES', 'No businesses to delivery / pick up at this address, please change filters or change address.')
|
|
@@ -454,7 +454,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
454
454
|
}
|
|
455
455
|
}, /*#__PURE__*/_react.default.createElement(_AddressForm.AddressForm, {
|
|
456
456
|
useValidationFileds: true,
|
|
457
|
-
address: (orderState === null || orderState === void 0
|
|
457
|
+
address: (orderState === null || orderState === void 0 || (_orderState$options7 = orderState.options) === null || _orderState$options7 === void 0 ? void 0 : _orderState$options7.address) || {},
|
|
458
458
|
onClose: function onClose() {
|
|
459
459
|
return setModals(_objectSpread(_objectSpread({}, modals), {}, {
|
|
460
460
|
formOpen: false
|
package/_modules/themes/five/src/components/BusinessesListing/layouts/RedBusinessesListing/styles.js
CHANGED
|
@@ -24,8 +24,8 @@ exports.ErrorMessage = ErrorMessage;
|
|
|
24
24
|
var PreviousOrders = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n margin: 10px 20px 0px;\n\n"])));
|
|
25
25
|
exports.PreviousOrders = PreviousOrders;
|
|
26
26
|
var BusinessesTitle = _styledComponents.default.h2(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n font-weight: bold;\n font-size: 24px;\n line-height: 34px;\n color: ", ";\n margin: 0 auto;\n width: 100%;\n margin: 0 20px;\n"])), function (props) {
|
|
27
|
-
var _props$theme
|
|
28
|
-
return (_props$theme = props.theme) === null || _props$theme === void 0
|
|
27
|
+
var _props$theme;
|
|
28
|
+
return (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.colors) === null || _props$theme === void 0 ? void 0 : _props$theme.primary;
|
|
29
29
|
});
|
|
30
30
|
exports.BusinessesTitle = BusinessesTitle;
|
|
31
31
|
var PreviousButtonWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: 89%;\n margin: 0 auto;\n margin-top: 10px;\n button{\n width: 100%;\n\n }\n"])));
|
|
@@ -45,7 +45,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
45
45
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } // import { BusinessTypeFilter } from '../../../../../../../components/BusinessTypeFilter'
|
|
46
46
|
var PIXELS_TO_SCROLL = 500;
|
|
47
47
|
var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
48
|
-
var _businessesList$busin, _props$beforeElements, _props$beforeComponen, _configs$advanced_bus2, _businessesList$busin2, _orderState$options4, _orderState$
|
|
48
|
+
var _businessesList$busin, _props$beforeElements, _props$beforeComponen, _configs$advanced_bus2, _businessesList$busin2, _orderState$options4, _orderState$options5, _configs$google_maps_, _businessesList$busin3, _orderState$options6, _getCustomArray, _businessesList$busin4, _orderState$options7, _props$afterComponent, _props$afterElements;
|
|
49
49
|
var businessesList = props.businessesList,
|
|
50
50
|
paginationProps = props.paginationProps,
|
|
51
51
|
searchValue = props.searchValue,
|
|
@@ -134,8 +134,8 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
134
134
|
}
|
|
135
135
|
};
|
|
136
136
|
var handleFindBusinesses = function handleFindBusinesses() {
|
|
137
|
-
var _orderState$options
|
|
138
|
-
if (!(orderState !== null && orderState !== void 0 && (_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && (_orderState$options
|
|
137
|
+
var _orderState$options;
|
|
138
|
+
if (!(orderState !== null && orderState !== void 0 && (_orderState$options = orderState.options) !== null && _orderState$options !== void 0 && (_orderState$options = _orderState$options.address) !== null && _orderState$options !== void 0 && _orderState$options.location)) {
|
|
139
139
|
setAlertState({
|
|
140
140
|
open: true,
|
|
141
141
|
content: [t('SELECT_AN_ADDRESS_TO_SEARCH', 'Select or add an address to search')]
|
|
@@ -183,7 +183,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
183
183
|
var _types = [];
|
|
184
184
|
types.forEach(function (type) {
|
|
185
185
|
var _type$replace;
|
|
186
|
-
return businessInfoById[type] && _types.push(t("BUSINESS_TYPE_".concat(type === null || type === void 0
|
|
186
|
+
return businessInfoById[type] && _types.push(t("BUSINESS_TYPE_".concat(type === null || type === void 0 || (_type$replace = type.replace(/\s/g, '_')) === null || _type$replace === void 0 ? void 0 : _type$replace.toUpperCase()), type));
|
|
187
187
|
});
|
|
188
188
|
return _types.join(', ');
|
|
189
189
|
};
|
|
@@ -210,12 +210,12 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
210
210
|
handleCustomEnter: function handleCustomEnter(term) {
|
|
211
211
|
var _configs$advanced_bus;
|
|
212
212
|
return onRedirectPage({
|
|
213
|
-
page: (configs === null || configs === void 0
|
|
213
|
+
page: (configs === null || configs === void 0 || (_configs$advanced_bus = configs.advanced_business_search_enabled) === null || _configs$advanced_bus === void 0 ? void 0 : _configs$advanced_bus.value) === '1' && 'business_search',
|
|
214
214
|
search: "?term=".concat(term)
|
|
215
215
|
});
|
|
216
216
|
},
|
|
217
217
|
isHome: true
|
|
218
|
-
}), (configs === null || configs === void 0
|
|
218
|
+
}), (configs === null || configs === void 0 || (_configs$advanced_bus2 = configs.advanced_business_search_enabled) === null || _configs$advanced_bus2 === void 0 ? void 0 : _configs$advanced_bus2.value) === '1' && /*#__PURE__*/_react.default.createElement(_FiFilter.default, {
|
|
219
219
|
onClick: function onClick() {
|
|
220
220
|
return onRedirectPage({
|
|
221
221
|
page: 'business_search'
|
|
@@ -241,7 +241,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
241
241
|
handleShowBusinessInfo: function handleShowBusinessInfo(business) {
|
|
242
242
|
return _handleShowBusinessInfo(business);
|
|
243
243
|
},
|
|
244
|
-
orderType: orderState === null || orderState === void 0
|
|
244
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type,
|
|
245
245
|
isCustomLayout: isCustomLayout,
|
|
246
246
|
isShowCallcenterInformation: isCustomLayout
|
|
247
247
|
});
|
|
@@ -252,7 +252,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
252
252
|
className: "card",
|
|
253
253
|
business: {},
|
|
254
254
|
isSkeleton: true,
|
|
255
|
-
orderType: orderState === null || orderState === void 0
|
|
255
|
+
orderType: orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.type
|
|
256
256
|
});
|
|
257
257
|
}), businessesList.error && businessesList.error.length > 0 && businessesList.businesses.length === 0 && businessesList.error.map(function (e, i) {
|
|
258
258
|
return /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, {
|
|
@@ -260,9 +260,9 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
260
260
|
}, t('ERROR', 'ERROR'), ": [", (e === null || e === void 0 ? void 0 : e.message) || e, "]");
|
|
261
261
|
})))), /*#__PURE__*/_react.default.createElement(_styles.MapWrapper, {
|
|
262
262
|
className: "map-wrapper"
|
|
263
|
-
}, windowSize.width < 576 && ((_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0
|
|
263
|
+
}, windowSize.width < 576 && ((_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 || (_orderState$options4 = _orderState$options4.address) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.address) && /*#__PURE__*/_react.default.createElement(_styles.AddressInput, {
|
|
264
264
|
onClick: handleClickAddress
|
|
265
|
-
}, /*#__PURE__*/_react.default.createElement(_EiLocation.default, null), /*#__PURE__*/_react.default.createElement("p", null, (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0
|
|
265
|
+
}, /*#__PURE__*/_react.default.createElement(_EiLocation.default, null), /*#__PURE__*/_react.default.createElement("p", null, (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0 || (_orderState$options5 = _orderState$options5.address) === null || _orderState$options5 === void 0 ? void 0 : _orderState$options5.address)), windowSize.width < 850 && /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, {
|
|
266
266
|
isCustomLayout: isCustomLayout
|
|
267
267
|
}, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
|
|
268
268
|
lazyLoad: true,
|
|
@@ -273,9 +273,9 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
273
273
|
onSearch: handleChangeSearch
|
|
274
274
|
}), isCustomLayout && /*#__PURE__*/_react.default.createElement(_FiMap.default, {
|
|
275
275
|
onClick: toggleMap
|
|
276
|
-
})), (configs === null || configs === void 0
|
|
276
|
+
})), (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) && (businessesList === null || businessesList === void 0 || (_businessesList$busin3 = businessesList.businesses) === null || _businessesList$busin3 === void 0 ? void 0 : _businessesList$busin3.length) > 0 && /*#__PURE__*/_react.default.createElement(_BusinessesMap.BusinessesMap, {
|
|
277
277
|
businessList: businessesList.businesses,
|
|
278
|
-
userLocation: orderState === null || orderState === void 0
|
|
278
|
+
userLocation: orderState === null || orderState === void 0 || (_orderState$options6 = orderState.options) === null || _orderState$options6 === void 0 || (_orderState$options6 = _orderState$options6.address) === null || _orderState$options6 === void 0 ? void 0 : _orderState$options6.location,
|
|
279
279
|
setErrors: setMapErrors
|
|
280
280
|
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, businessInfoById && /*#__PURE__*/_react.default.createElement(_BusinessInformation.BusinessInformation, {
|
|
281
281
|
business: businessInfoById,
|
|
@@ -305,7 +305,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
305
305
|
isCustomLayout: true,
|
|
306
306
|
isBusinessesLoading: businessesList.loading,
|
|
307
307
|
franchiseId: props.franchiseId
|
|
308
|
-
})), isCustomLayout && (businessesList === null || businessesList === void 0
|
|
308
|
+
})), isCustomLayout && (businessesList === null || businessesList === void 0 || (_businessesList$busin4 = businessesList.businesses) === null || _businessesList$busin4 === void 0 ? void 0 : _businessesList$busin4.length) > 0 && /*#__PURE__*/_react.default.createElement(_styles.BusinessesTitle, null, t('BUSINESSES', 'Businesses')), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
309
309
|
title: t('ADDRESS_FORM', 'Address Form'),
|
|
310
310
|
open: modals.formOpen,
|
|
311
311
|
onClose: function onClose() {
|
|
@@ -315,7 +315,7 @@ var BusinessesListingUI = function BusinessesListingUI(props) {
|
|
|
315
315
|
}
|
|
316
316
|
}, /*#__PURE__*/_react.default.createElement(_AddressForm.AddressForm, {
|
|
317
317
|
useValidationFileds: true,
|
|
318
|
-
address: (orderState === null || orderState === void 0
|
|
318
|
+
address: (orderState === null || orderState === void 0 || (_orderState$options7 = orderState.options) === null || _orderState$options7 === void 0 ? void 0 : _orderState$options7.address) || {},
|
|
319
319
|
onClose: function onClose() {
|
|
320
320
|
return setModals(_objectSpread(_objectSpread({}, modals), {}, {
|
|
321
321
|
formOpen: false
|
|
@@ -15,14 +15,14 @@ exports.BusinessContainer = BusinessContainer;
|
|
|
15
15
|
var BusinessList = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n"])));
|
|
16
16
|
exports.BusinessList = BusinessList;
|
|
17
17
|
var WrapperSearch = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n justify-content: space-between;\n position: relative;\n padding: 30px;\n input {\n border-bottom: 1px solid #ccc;\n }\n svg{\n ", "\n }\n @media (min-width: 850px) {\n width: 100%;\n box-shadow: 0px -2px 1px 4px lightgrey;\n }\n\n ", "\n"])), function (_ref) {
|
|
18
|
-
var _theme$business_listi
|
|
18
|
+
var _theme$business_listi;
|
|
19
19
|
var theme = _ref.theme;
|
|
20
|
-
return (theme === null || theme === void 0
|
|
20
|
+
return (theme === null || theme === void 0 || (_theme$business_listi = theme.business_listing_view) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.components) === null || _theme$business_listi === void 0 || (_theme$business_listi = _theme$business_listi.layout) === null || _theme$business_listi === void 0 ? void 0 : _theme$business_listi.type) === 'mapview' && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n right: 5px;\n transform: translateY(70%);\n cursor: pointer;\n "])));
|
|
21
21
|
}, function (_ref2) {
|
|
22
22
|
var isCustomLayout = _ref2.isCustomLayout;
|
|
23
23
|
return isCustomLayout && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n margin: 0 auto;\n margin-top: 10px;\n margin-bottom: 20px;\n width: 100%; \n padding: 0 20px;\n svg {\n font-size: 26px;\n color: ", ";\n margin-left: 10px;\n cursor: pointer;\n }\n @media(min-width: 681px){\n width: 75%;\n padding: 0;\n }\n @media(min-width: 1201px){\n width: 50%;\n }\n "])), function (props) {
|
|
24
|
-
var _props$theme
|
|
25
|
-
return (_props$theme = props.theme) === null || _props$theme === void 0
|
|
24
|
+
var _props$theme;
|
|
25
|
+
return (_props$theme = props.theme) === null || _props$theme === void 0 || (_props$theme = _props$theme.colors) === null || _props$theme === void 0 ? void 0 : _props$theme.primary;
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
28
|
exports.WrapperSearch = WrapperSearch;
|
|
@@ -41,7 +41,7 @@ var CARD_ELEMENT_OPTIONS = {
|
|
|
41
41
|
showIcon: true
|
|
42
42
|
};
|
|
43
43
|
var CardFormUI = function CardFormUI(props) {
|
|
44
|
-
var _validationFields$fie, _validationFields$fie2,
|
|
44
|
+
var _validationFields$fie, _validationFields$fie2, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
|
|
45
45
|
var error = props.error,
|
|
46
46
|
errorExpiry = props.errorExpiry,
|
|
47
47
|
errorCvc = props.errorCvc,
|
|
@@ -58,8 +58,8 @@ var CardFormUI = function CardFormUI(props) {
|
|
|
58
58
|
var _useValidationFields = (0, _orderingComponentsExternal.useValidationFields)(),
|
|
59
59
|
_useValidationFields2 = _slicedToArray(_useValidationFields, 1),
|
|
60
60
|
validationFields = _useValidationFields2[0];
|
|
61
|
-
var zipCodeEnabled = validationFields === null || validationFields === void 0
|
|
62
|
-
var zipCodeRequired = validationFields === null || validationFields === void 0
|
|
61
|
+
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;
|
|
62
|
+
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;
|
|
63
63
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
|
|
64
64
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
65
65
|
key: i
|