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
|
@@ -50,7 +50,7 @@ var inputNames = [{
|
|
|
50
50
|
code: 'Address notes'
|
|
51
51
|
}];
|
|
52
52
|
var AddressFormUI = function AddressFormUI(props) {
|
|
53
|
-
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _theme$header,
|
|
53
|
+
var _addressState$address, _ref, _formState$changes$ad, _formState$changes, _addressState$address2, _addressState$address3, _theme$header, _addressState$address4, _formState$changes$lo, _formState$changes2, _theme$address, _theme$address2, _configState$configs, _configState$configs2, _configState$configs3, _configState$configs4, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _props$afterMidElemen, _props$afterMidCompon, _orderState$options6, _props$afterComponent, _props$afterElements;
|
|
54
54
|
var addressesList = props.addressesList,
|
|
55
55
|
googleMapsControls = props.googleMapsControls,
|
|
56
56
|
formState = props.formState,
|
|
@@ -83,7 +83,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
83
83
|
_useState2 = _slicedToArray(_useState, 2),
|
|
84
84
|
state = _useState2[0],
|
|
85
85
|
setState = _useState2[1];
|
|
86
|
-
var _useState3 = (0, _react.useState)(addressState === null || addressState === void 0
|
|
86
|
+
var _useState3 = (0, _react.useState)(addressState === null || addressState === void 0 || (_addressState$address = addressState.address) === null || _addressState$address === void 0 ? void 0 : _addressState$address.tag),
|
|
87
87
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
88
88
|
addressTag = _useState4[0],
|
|
89
89
|
setAddressTag = _useState4[1];
|
|
@@ -105,16 +105,16 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
105
105
|
firstLocationNoEdit = _useState10[0],
|
|
106
106
|
setFirstLocationNoEdit = _useState10[1];
|
|
107
107
|
var isEditing = !!((_addressState$address3 = addressState.address) !== null && _addressState$address3 !== void 0 && _addressState$address3.id);
|
|
108
|
-
var isChew = (theme === null || theme === void 0
|
|
109
|
-
var _useState11 = (0, _react.useState)(isEditing ? addressState === null || addressState === void 0
|
|
108
|
+
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';
|
|
109
|
+
var _useState11 = (0, _react.useState)(isEditing ? addressState === null || addressState === void 0 || (_addressState$address4 = addressState.address) === null || _addressState$address4 === void 0 ? void 0 : _addressState$address4.location : (_formState$changes$lo = (_formState$changes2 = formState.changes) === null || _formState$changes2 === void 0 ? void 0 : _formState$changes2.location) !== null && _formState$changes$lo !== void 0 ? _formState$changes$lo : null),
|
|
110
110
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
111
111
|
locationChange = _useState12[0],
|
|
112
112
|
setLocationChange = _useState12[1];
|
|
113
|
-
var isHideMap = theme === null || theme === void 0
|
|
114
|
-
var isHideIcons = theme === null || theme === void 0
|
|
115
|
-
var maxLimitLocation = configState === null || configState === void 0
|
|
116
|
-
var googleMapsApiKey = configState === null || configState === void 0
|
|
117
|
-
var isLocationRequired = ((_configState$
|
|
113
|
+
var isHideMap = theme === null || theme === void 0 || (_theme$address = theme.address) === null || _theme$address === void 0 || (_theme$address = _theme$address.components) === null || _theme$address === void 0 || (_theme$address = _theme$address.map) === null || _theme$address === void 0 ? void 0 : _theme$address.hidden;
|
|
114
|
+
var isHideIcons = theme === null || theme === void 0 || (_theme$address2 = theme.address) === null || _theme$address2 === void 0 || (_theme$address2 = _theme$address2.components) === null || _theme$address2 === void 0 || (_theme$address2 = _theme$address2.icons) === null || _theme$address2 === void 0 ? void 0 : _theme$address2.hidden;
|
|
115
|
+
var maxLimitLocation = configState === null || configState === void 0 || (_configState$configs = configState.configs) === null || _configState$configs === void 0 || (_configState$configs = _configState$configs.meters_to_change_address) === null || _configState$configs === void 0 ? void 0 : _configState$configs.value;
|
|
116
|
+
var googleMapsApiKey = configState === null || configState === void 0 || (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 || (_configState$configs2 = _configState$configs2.google_maps_api_key) === null || _configState$configs2 === void 0 ? void 0 : _configState$configs2.value;
|
|
117
|
+
var isLocationRequired = ((_configState$configs3 = configState.configs) === null || _configState$configs3 === void 0 || (_configState$configs3 = _configState$configs3.google_autocomplete_selection_required) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value) === '1' || ((_configState$configs4 = configState.configs) === null || _configState$configs4 === void 0 || (_configState$configs4 = _configState$configs4.google_autocomplete_selection_required) === null || _configState$configs4 === void 0 ? void 0 : _configState$configs4.value) === 'true';
|
|
118
118
|
var mapErrors = {
|
|
119
119
|
ERROR_NOT_FOUND_ADDRESS: 'Sorry, we couldn\'t find an address',
|
|
120
120
|
ERROR_MAX_LIMIT_LOCATION: "Sorry, You can only set the position to ".concat(maxLimitLocation, "m")
|
|
@@ -239,7 +239,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
239
239
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
240
240
|
while (1) switch (_context.prev = _context.next) {
|
|
241
241
|
case 0:
|
|
242
|
-
if (!(!auth && (formState === null || formState === void 0
|
|
242
|
+
if (!(!auth && (formState === null || formState === void 0 || (_formState$changes3 = formState.changes) === null || _formState$changes3 === void 0 ? void 0 : _formState$changes3.address) === '' && addressState !== null && addressState !== void 0 && (_addressState$address6 = addressState.address) !== null && _addressState$address6 !== void 0 && _addressState$address6.address)) {
|
|
243
243
|
_context.next = 4;
|
|
244
244
|
break;
|
|
245
245
|
}
|
|
@@ -264,12 +264,12 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
264
264
|
});
|
|
265
265
|
return _context.abrupt("return");
|
|
266
266
|
case 8:
|
|
267
|
-
getAddressFormatted(formState === null || formState === void 0
|
|
267
|
+
getAddressFormatted(formState === null || formState === void 0 || (_formState$changes6 = formState.changes) === null || _formState$changes6 === void 0 ? void 0 : _formState$changes6.address);
|
|
268
268
|
return _context.abrupt("return");
|
|
269
269
|
case 10:
|
|
270
270
|
arrayList = isEditing ? (addressesList === null || addressesList === void 0 ? void 0 : addressesList.filter(function (address) {
|
|
271
271
|
var _addressState$address7;
|
|
272
|
-
return (address === null || address === void 0 ? void 0 : address.id) !== (addressState === null || addressState === void 0
|
|
272
|
+
return (address === null || address === void 0 ? void 0 : address.id) !== (addressState === null || addressState === void 0 || (_addressState$address7 = addressState.address) === null || _addressState$address7 === void 0 ? void 0 : _addressState$address7.id);
|
|
273
273
|
})) || [] : addressesList || [];
|
|
274
274
|
addressToCompare = isEditing ? _objectSpread(_objectSpread({}, addressState.address), formState.changes) : formState === null || formState === void 0 ? void 0 : formState.changes;
|
|
275
275
|
isAddressAlreadyExist = (_arrayList$map$some2 = arrayList.map(function (address) {
|
|
@@ -320,18 +320,18 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
320
320
|
});
|
|
321
321
|
};
|
|
322
322
|
var showFieldWithTheme = function showFieldWithTheme(name) {
|
|
323
|
-
var _theme$address3
|
|
324
|
-
return !(theme !== null && theme !== void 0 && (_theme$address3 = theme.address) !== null && _theme$address3 !== void 0 && (_theme$address3
|
|
323
|
+
var _theme$address3;
|
|
324
|
+
return !(theme !== null && theme !== void 0 && (_theme$address3 = theme.address) !== null && _theme$address3 !== void 0 && (_theme$address3 = _theme$address3.components) !== null && _theme$address3 !== void 0 && (_theme$address3 = _theme$address3[name]) !== null && _theme$address3 !== void 0 && _theme$address3.hidden);
|
|
325
325
|
};
|
|
326
326
|
(0, _react.useEffect)(function () {
|
|
327
327
|
var _formState$result, _ref5, _formState$changes$ad3, _formState$changes9, _addressState$address8, _ref6, _formState$changes$ad4, _formState$changes10, _addressState$address9;
|
|
328
328
|
if (!auth) {
|
|
329
|
-
var _ref3, _formState$changes$lo2, _formState$changes7, _orderState$options,
|
|
330
|
-
setLocationChange((_ref3 = (_formState$changes$lo2 = formState === null || formState === void 0
|
|
331
|
-
setAddressValue((_ref4 = (_formState$changes$ad2 = formState === null || formState === void 0
|
|
329
|
+
var _ref3, _formState$changes$lo2, _formState$changes7, _orderState$options, _ref4, _formState$changes$ad2, _formState$changes8, _orderState$options2;
|
|
330
|
+
setLocationChange((_ref3 = (_formState$changes$lo2 = formState === null || formState === void 0 || (_formState$changes7 = formState.changes) === null || _formState$changes7 === void 0 ? void 0 : _formState$changes7.location) !== null && _formState$changes$lo2 !== void 0 ? _formState$changes$lo2 : orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 || (_orderState$options = _orderState$options.address) === null || _orderState$options === void 0 ? void 0 : _orderState$options.location) !== null && _ref3 !== void 0 ? _ref3 : '');
|
|
331
|
+
setAddressValue((_ref4 = (_formState$changes$ad2 = formState === null || formState === void 0 || (_formState$changes8 = formState.changes) === null || _formState$changes8 === void 0 ? void 0 : _formState$changes8.address) !== null && _formState$changes$ad2 !== void 0 ? _formState$changes$ad2 : orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 || (_orderState$options2 = _orderState$options2.address) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.address) !== null && _ref4 !== void 0 ? _ref4 : '');
|
|
332
332
|
inputNames.forEach(function (field) {
|
|
333
333
|
var _orderState$options3, _orderState$options4;
|
|
334
|
-
return formMethods.setValue(field.name, (formState === null || formState === void 0 ? void 0 : formState.changes[field.name]) || (orderState === null || orderState === void 0
|
|
334
|
+
return formMethods.setValue(field.name, (formState === null || formState === void 0 ? void 0 : formState.changes[field.name]) || (orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3.address) && (orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4.address[field.name]) || '');
|
|
335
335
|
});
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
@@ -342,37 +342,37 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
342
342
|
content: ((_formState$result2 = formState.result) === null || _formState$result2 === void 0 ? void 0 : _formState$result2.result) || [t('ERROR', 'Error')]
|
|
343
343
|
});
|
|
344
344
|
}
|
|
345
|
-
setAddressValue((_ref5 = (_formState$changes$ad3 = formState === null || formState === void 0
|
|
346
|
-
formMethods.setValue('address', (_ref6 = (_formState$changes$ad4 = formState === null || formState === void 0
|
|
345
|
+
setAddressValue((_ref5 = (_formState$changes$ad3 = formState === null || formState === void 0 || (_formState$changes9 = formState.changes) === null || _formState$changes9 === void 0 ? void 0 : _formState$changes9.address) !== null && _formState$changes$ad3 !== void 0 ? _formState$changes$ad3 : (_addressState$address8 = addressState.address) === null || _addressState$address8 === void 0 ? void 0 : _addressState$address8.address) !== null && _ref5 !== void 0 ? _ref5 : '');
|
|
346
|
+
formMethods.setValue('address', (_ref6 = (_formState$changes$ad4 = formState === null || formState === void 0 || (_formState$changes10 = formState.changes) === null || _formState$changes10 === void 0 ? void 0 : _formState$changes10.address) !== null && _formState$changes$ad4 !== void 0 ? _formState$changes$ad4 : (_addressState$address9 = addressState.address) === null || _addressState$address9 === void 0 ? void 0 : _addressState$address9.address) !== null && _ref6 !== void 0 ? _ref6 : '');
|
|
347
347
|
if (!isEditing) {
|
|
348
|
-
var _formState$changes11, _formState$changes12, _formState$changes13, _formState$changes14, _formState$changes15, _formState$changes16,
|
|
348
|
+
var _formState$changes11, _formState$changes12, _formState$changes13, _formState$changes14, _formState$changes15, _formState$changes16, _firstLocationNoEdit$, _formState$changes17, _firstLocationNoEdit$2;
|
|
349
349
|
inputNames.forEach(function (field) {
|
|
350
350
|
return formMethods.setValue(field.name, (formState === null || formState === void 0 ? void 0 : formState.changes[field.name]) || '');
|
|
351
351
|
});
|
|
352
|
-
(formState === null || formState === void 0
|
|
353
|
-
if (formState !== null && formState !== void 0 && (_formState$changes13 = formState.changes) !== null && _formState$changes13 !== void 0 && _formState$changes13.address && (formState === null || formState === void 0
|
|
352
|
+
(formState === null || formState === void 0 || (_formState$changes11 = formState.changes) === null || _formState$changes11 === void 0 ? void 0 : _formState$changes11.address) && setLocationChange(formState === null || formState === void 0 || (_formState$changes12 = formState.changes) === null || _formState$changes12 === void 0 ? void 0 : _formState$changes12.location);
|
|
353
|
+
if (formState !== null && formState !== void 0 && (_formState$changes13 = formState.changes) !== null && _formState$changes13 !== void 0 && _formState$changes13.address && (formState === null || formState === void 0 || (_formState$changes14 = formState.changes) === null || _formState$changes14 === void 0 ? void 0 : _formState$changes14.address) !== (firstLocationNoEdit === null || firstLocationNoEdit === void 0 ? void 0 : firstLocationNoEdit.address) && formState !== null && formState !== void 0 && (_formState$changes15 = formState.changes) !== null && _formState$changes15 !== void 0 && _formState$changes15.location && (formState === null || formState === void 0 || (_formState$changes16 = formState.changes) === null || _formState$changes16 === void 0 || (_formState$changes16 = _formState$changes16.location) === null || _formState$changes16 === void 0 ? void 0 : _formState$changes16.lat) !== ((_firstLocationNoEdit$ = firstLocationNoEdit.value) === null || _firstLocationNoEdit$ === void 0 ? void 0 : _firstLocationNoEdit$.lat) && (formState === null || formState === void 0 || (_formState$changes17 = formState.changes) === null || _formState$changes17 === void 0 || (_formState$changes17 = _formState$changes17.location) === null || _formState$changes17 === void 0 ? void 0 : _formState$changes17.lng) !== ((_firstLocationNoEdit$2 = firstLocationNoEdit.value) === null || _firstLocationNoEdit$2 === void 0 ? void 0 : _firstLocationNoEdit$2.lng)) {
|
|
354
354
|
var _formState$changes18, _formState$changes19;
|
|
355
355
|
setFirstLocationNoEdit({
|
|
356
|
-
value: formState === null || formState === void 0
|
|
357
|
-
address: formState === null || formState === void 0
|
|
356
|
+
value: formState === null || formState === void 0 || (_formState$changes18 = formState.changes) === null || _formState$changes18 === void 0 ? void 0 : _formState$changes18.location,
|
|
357
|
+
address: formState === null || formState === void 0 || (_formState$changes19 = formState.changes) === null || _formState$changes19 === void 0 ? void 0 : _formState$changes19.address
|
|
358
358
|
});
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
if (isEditing) {
|
|
362
362
|
var _formState$changes20;
|
|
363
363
|
if (formState !== null && formState !== void 0 && (_formState$changes20 = formState.changes) !== null && _formState$changes20 !== void 0 && _formState$changes20.location) {
|
|
364
|
-
var _locationChange$lat, _locationChange$lng, _formState$changes21, _formState$
|
|
364
|
+
var _locationChange$lat, _locationChange$lng, _formState$changes21, _formState$changes22;
|
|
365
365
|
var prevLocation = {
|
|
366
|
-
lat: locationChange === null || locationChange === void 0
|
|
367
|
-
lng: locationChange === null || locationChange === void 0
|
|
366
|
+
lat: locationChange === null || locationChange === void 0 || (_locationChange$lat = locationChange.lat) === null || _locationChange$lat === void 0 ? void 0 : _locationChange$lat.toFixed(5),
|
|
367
|
+
lng: locationChange === null || locationChange === void 0 || (_locationChange$lng = locationChange.lng) === null || _locationChange$lng === void 0 ? void 0 : _locationChange$lng.toFixed(5)
|
|
368
368
|
};
|
|
369
369
|
var newLocation = {
|
|
370
|
-
lat: formState === null || formState === void 0
|
|
371
|
-
lng: formState === null || formState === void 0
|
|
370
|
+
lat: formState === null || formState === void 0 || (_formState$changes21 = formState.changes) === null || _formState$changes21 === void 0 || (_formState$changes21 = _formState$changes21.location) === null || _formState$changes21 === void 0 || (_formState$changes21 = _formState$changes21.lat) === null || _formState$changes21 === void 0 ? void 0 : _formState$changes21.toFixed(5),
|
|
371
|
+
lng: formState === null || formState === void 0 || (_formState$changes22 = formState.changes) === null || _formState$changes22 === void 0 || (_formState$changes22 = _formState$changes22.location) === null || _formState$changes22 === void 0 || (_formState$changes22 = _formState$changes22.lng) === null || _formState$changes22 === void 0 ? void 0 : _formState$changes22.toFixed(5)
|
|
372
372
|
};
|
|
373
373
|
if ((prevLocation === null || prevLocation === void 0 ? void 0 : prevLocation.lat) !== (newLocation === null || newLocation === void 0 ? void 0 : newLocation.lat) && (prevLocation === null || prevLocation === void 0 ? void 0 : prevLocation.lng) !== (newLocation === null || newLocation === void 0 ? void 0 : newLocation.lng)) {
|
|
374
374
|
var _formState$changes23;
|
|
375
|
-
setLocationChange(formState === null || formState === void 0
|
|
375
|
+
setLocationChange(formState === null || formState === void 0 || (_formState$changes23 = formState.changes) === null || _formState$changes23 === void 0 ? void 0 : _formState$changes23.location);
|
|
376
376
|
}
|
|
377
377
|
}
|
|
378
378
|
}
|
|
@@ -388,8 +388,8 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
388
388
|
}, [addressState]);
|
|
389
389
|
(0, _react.useEffect)(function () {
|
|
390
390
|
if (!auth) {
|
|
391
|
-
var _ref7, _formState$changes$lo3, _formState$changes24, _orderState$options5
|
|
392
|
-
setLocationChange((_ref7 = (_formState$changes$lo3 = formState === null || formState === void 0
|
|
391
|
+
var _ref7, _formState$changes$lo3, _formState$changes24, _orderState$options5;
|
|
392
|
+
setLocationChange((_ref7 = (_formState$changes$lo3 = formState === null || formState === void 0 || (_formState$changes24 = formState.changes) === null || _formState$changes24 === void 0 ? void 0 : _formState$changes24.location) !== null && _formState$changes$lo3 !== void 0 ? _formState$changes$lo3 : orderState === null || orderState === void 0 || (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0 || (_orderState$options5 = _orderState$options5.address) === null || _orderState$options5 === void 0 ? void 0 : _orderState$options5.location) !== null && _ref7 !== void 0 ? _ref7 : '');
|
|
393
393
|
}
|
|
394
394
|
return function () {
|
|
395
395
|
setFirstLocationNoEdit({
|
|
@@ -450,7 +450,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
450
450
|
key: i
|
|
451
451
|
}, props));
|
|
452
452
|
}), inputNames.map(function (field) {
|
|
453
|
-
var _configState$
|
|
453
|
+
var _configState$configs5, _addressState$address12, _formState$changes26, _ref9, _formState$changes$fi2, _formState$changes27, _addressState$address13, _ref10, _formState$changes$ad5, _formState$changes28;
|
|
454
454
|
return showField && showField(field.name) && (field.name === 'address' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
455
455
|
key: field.name
|
|
456
456
|
}, /*#__PURE__*/_react.default.createElement(_styles.AddressWrap, {
|
|
@@ -474,7 +474,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
474
474
|
},
|
|
475
475
|
value: addressValue,
|
|
476
476
|
autoComplete: "new-field",
|
|
477
|
-
countryCode: (configState === null || configState === void 0
|
|
477
|
+
countryCode: (configState === null || configState === void 0 || (_configState$configs5 = configState.configs) === null || _configState$configs5 === void 0 || (_configState$configs5 = _configState$configs5.country_autocomplete) === null || _configState$configs5 === void 0 ? void 0 : _configState$configs5.value) || '*'
|
|
478
478
|
})), /*#__PURE__*/_react.default.createElement(_GoogleGpsButton.GoogleGpsButton, {
|
|
479
479
|
className: "gps-button",
|
|
480
480
|
apiKey: googleMapsApiKey,
|
|
@@ -485,7 +485,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
485
485
|
onError: setMapErrors,
|
|
486
486
|
IconButton: _reactBootstrapIcons.GeoAlt,
|
|
487
487
|
IconLoadingButton: _CgSearchLoading.default
|
|
488
|
-
})), !isHideMap && locationChange && ((addressState === null || addressState === void 0
|
|
488
|
+
})), !isHideMap && locationChange && ((addressState === null || addressState === void 0 || (_addressState$address12 = addressState.address) === null || _addressState$address12 === void 0 ? void 0 : _addressState$address12.location) || (formState === null || formState === void 0 || (_formState$changes26 = formState.changes) === null || _formState$changes26 === void 0 ? void 0 : _formState$changes26.location)) && /*#__PURE__*/_react.default.createElement(_styles.WrapperMap, null, /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.GoogleMapsMap, {
|
|
489
489
|
apiKey: googleMapsApiKey,
|
|
490
490
|
location: locationChange,
|
|
491
491
|
fixedLocation: !isEditing ? firstLocationNoEdit.value : null,
|
|
@@ -579,7 +579,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
579
579
|
type: "submit",
|
|
580
580
|
disabled: formState.loading,
|
|
581
581
|
color: "primary"
|
|
582
|
-
}, !formState.loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEditing || !auth && (_orderState$options6 = orderState.options) !== null && _orderState$options6 !== void 0 && (_orderState$options6
|
|
582
|
+
}, !formState.loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEditing || !auth && (_orderState$options6 = orderState.options) !== null && _orderState$options6 !== void 0 && (_orderState$options6 = _orderState$options6.address) !== null && _orderState$options6 !== void 0 && _orderState$options6.address ? t('UPDATE', 'Update') : t('ADD_ADDRESS', 'Add address')) : t('LOADING', 'Loading')))), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
|
|
583
583
|
title: t('ADDRESS', 'Address'),
|
|
584
584
|
content: alertState.content,
|
|
585
585
|
acceptText: t('ACCEPT', 'Accept'),
|
|
@@ -40,7 +40,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
40
40
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
41
41
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
42
42
|
var AddressListUI = function AddressListUI(props) {
|
|
43
|
-
var _theme$profile, _theme$
|
|
43
|
+
var _theme$profile, _theme$profile2, _theme$profile3, _theme$profile4, _theme$profile5, _props$beforeElements, _props$beforeComponen, _props$afterComponent, _props$afterElements;
|
|
44
44
|
var actionStatus = props.actionStatus,
|
|
45
45
|
addressList = props.addressList,
|
|
46
46
|
handleDelete = props.handleDelete,
|
|
@@ -96,11 +96,11 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
96
96
|
return address.address === obj.address && address.address_notes === obj.address_notes && address.zipcode === obj.zipcode && address.internal_number === obj.internal_number;
|
|
97
97
|
});
|
|
98
98
|
}) || [];
|
|
99
|
-
var showAddress = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile
|
|
100
|
-
var showIcons = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2
|
|
101
|
-
var showZipcode = !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3
|
|
102
|
-
var showInternalNumber = !(theme !== null && theme !== void 0 && (_theme$profile4 = theme.profile) !== null && _theme$profile4 !== void 0 && (_theme$profile4
|
|
103
|
-
var notFoundImage = theme === null || theme === void 0
|
|
99
|
+
var showAddress = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile = _theme$profile.components) !== null && _theme$profile !== void 0 && (_theme$profile = _theme$profile.address_list) !== null && _theme$profile !== void 0 && (_theme$profile = _theme$profile.components) !== null && _theme$profile !== void 0 && (_theme$profile = _theme$profile.address) !== null && _theme$profile !== void 0 && _theme$profile.hidden);
|
|
100
|
+
var showIcons = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2 = _theme$profile2.components) !== null && _theme$profile2 !== void 0 && (_theme$profile2 = _theme$profile2.address_list) !== null && _theme$profile2 !== void 0 && (_theme$profile2 = _theme$profile2.components) !== null && _theme$profile2 !== void 0 && (_theme$profile2 = _theme$profile2.icons) !== null && _theme$profile2 !== void 0 && _theme$profile2.hidden);
|
|
101
|
+
var showZipcode = !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3 = _theme$profile3.components) !== null && _theme$profile3 !== void 0 && (_theme$profile3 = _theme$profile3.address_list) !== null && _theme$profile3 !== void 0 && (_theme$profile3 = _theme$profile3.components) !== null && _theme$profile3 !== void 0 && (_theme$profile3 = _theme$profile3.zipcode) !== null && _theme$profile3 !== void 0 && _theme$profile3.hidden);
|
|
102
|
+
var showInternalNumber = !(theme !== null && theme !== void 0 && (_theme$profile4 = theme.profile) !== null && _theme$profile4 !== void 0 && (_theme$profile4 = _theme$profile4.components) !== null && _theme$profile4 !== void 0 && (_theme$profile4 = _theme$profile4.address_list) !== null && _theme$profile4 !== void 0 && (_theme$profile4 = _theme$profile4.components) !== null && _theme$profile4 !== void 0 && (_theme$profile4 = _theme$profile4.internal_number) !== null && _theme$profile4 !== void 0 && _theme$profile4.hidden);
|
|
103
|
+
var notFoundImage = theme === null || theme === void 0 || (_theme$profile5 = theme.profile) === null || _theme$profile5 === void 0 || (_theme$profile5 = _theme$profile5.components) === null || _theme$profile5 === void 0 || (_theme$profile5 = _theme$profile5.address_list) === null || _theme$profile5 === void 0 || (_theme$profile5 = _theme$profile5.components) === null || _theme$profile5 === void 0 ? void 0 : _theme$profile5.image;
|
|
104
104
|
var openAddress = function openAddress(address) {
|
|
105
105
|
setCurAddress(address);
|
|
106
106
|
setAddressOpen(true);
|
|
@@ -183,15 +183,15 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
183
183
|
props.forEach(function (prop) {
|
|
184
184
|
if (address !== null && address !== void 0 && address[prop]) {
|
|
185
185
|
if (prop === 'location') {
|
|
186
|
-
var _orderState$options, _orderState$
|
|
187
|
-
values.push((address === null || address === void 0 ? void 0 : address[prop].lat) === (orderState === null || orderState === void 0
|
|
186
|
+
var _orderState$options, _orderState$options2;
|
|
187
|
+
values.push((address === null || address === void 0 ? void 0 : address[prop].lat) === (orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 || (_orderState$options = _orderState$options.address) === null || _orderState$options === void 0 || (_orderState$options = _orderState$options[prop]) === null || _orderState$options === void 0 ? void 0 : _orderState$options.lat) && (address === null || address === void 0 ? void 0 : address[prop].lng) === (orderState === null || orderState === void 0 || (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 || (_orderState$options2 = _orderState$options2.address) === null || _orderState$options2 === void 0 || (_orderState$options2 = _orderState$options2[prop]) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.lng));
|
|
188
188
|
} else {
|
|
189
|
-
var _orderState$options3
|
|
190
|
-
values.push((address === null || address === void 0 ? void 0 : address[prop]) === (orderState === null || orderState === void 0
|
|
189
|
+
var _orderState$options3;
|
|
190
|
+
values.push((address === null || address === void 0 ? void 0 : address[prop]) === (orderState === null || orderState === void 0 || (_orderState$options3 = orderState.options) === null || _orderState$options3 === void 0 || (_orderState$options3 = _orderState$options3.address) === null || _orderState$options3 === void 0 ? void 0 : _orderState$options3[prop]));
|
|
191
191
|
}
|
|
192
192
|
} else {
|
|
193
|
-
var _orderState$options4, _orderState$
|
|
194
|
-
values.push((orderState === null || orderState === void 0
|
|
193
|
+
var _orderState$options4, _orderState$options5;
|
|
194
|
+
values.push((orderState === null || orderState === void 0 || (_orderState$options4 = orderState.options) === null || _orderState$options4 === void 0 || (_orderState$options4 = _orderState$options4.address) === null || _orderState$options4 === void 0 ? void 0 : _orderState$options4[prop]) === null || (orderState === null || orderState === void 0 || (_orderState$options5 = orderState.options) === null || _orderState$options5 === void 0 || (_orderState$options5 = _orderState$options5.address) === null || _orderState$options5 === void 0 ? void 0 : _orderState$options5[prop]) === '');
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
return values.every(function (value) {
|
|
@@ -238,11 +238,11 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
238
238
|
})));
|
|
239
239
|
};
|
|
240
240
|
var AddressListContent = function AddressListContent() {
|
|
241
|
-
var _addressList$addresse, _addressList$addresse2, _orderState$options6, _addressList$addresse3, _theme$images,
|
|
241
|
+
var _addressList$addresse, _addressList$addresse2, _orderState$options6, _addressList$addresse3, _theme$images, _addressList$error$, _orderState$options7;
|
|
242
242
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (!isPopover || !addressOpen) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isCompletedLayout && /*#__PURE__*/_react.default.createElement(_styles.TitleAddress, null, t('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
243
243
|
className: "add",
|
|
244
244
|
outline: true,
|
|
245
|
-
color: isEnableContinueButton && (addressList === null || addressList === void 0
|
|
245
|
+
color: isEnableContinueButton && (addressList === null || addressList === void 0 || (_addressList$addresse = addressList.addresses) === null || _addressList$addresse === void 0 ? void 0 : _addressList$addresse.length) > 0 ? 'secondary' : 'primary',
|
|
246
246
|
onClick: function onClick() {
|
|
247
247
|
return openAddress({});
|
|
248
248
|
},
|
|
@@ -261,7 +261,7 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
261
261
|
},
|
|
262
262
|
onSaveAddress: handleSaveAddress,
|
|
263
263
|
userCustomerSetup: userCustomerSetup
|
|
264
|
-
}), !addressList.loading && !actionStatus.loading && !orderState.loading && !addressList.error && (addressList === null || addressList === void 0
|
|
264
|
+
}), !addressList.loading && !actionStatus.loading && !orderState.loading && !addressList.error && (addressList === null || addressList === void 0 || (_addressList$addresse2 = addressList.addresses) === null || _addressList$addresse2 === void 0 ? void 0 : _addressList$addresse2.length) > 0 && _typeof((_orderState$options6 = orderState.options) === null || _orderState$options6 === void 0 ? void 0 : _orderState$options6.address) === 'object' && (!addressOpen && isPopover || isModal) && /*#__PURE__*/_react.default.createElement(_styles.AddressListUl, {
|
|
265
265
|
id: "list"
|
|
266
266
|
}, /*#__PURE__*/_react.default.createElement(_styles.AddressTitle, null, t('SELECT_ONE_OF_SAVED_PLACES', 'Select one of your saved places')), uniqueAddressesList.map(function (address) {
|
|
267
267
|
return /*#__PURE__*/_react.default.createElement(_styles.AddressItem, {
|
|
@@ -301,8 +301,8 @@ var AddressListUI = function AddressListUI(props) {
|
|
|
301
301
|
return handleSetAddress(address);
|
|
302
302
|
}
|
|
303
303
|
}, t('CONTINUE_WITH', 'Continue with'), ": ", address.address));
|
|
304
|
-
})), !(addressList.loading || actionStatus.loading || orderState.loading) && !addressList.error && (addressList === null || addressList === void 0
|
|
305
|
-
src: (_theme$images = theme.images) === null || _theme$images === void 0
|
|
304
|
+
})), !(addressList.loading || actionStatus.loading || orderState.loading) && !addressList.error && (addressList === null || addressList === void 0 || (_addressList$addresse3 = addressList.addresses) === null || _addressList$addresse3 === void 0 ? void 0 : _addressList$addresse3.length) === 0 && !isProductForm && /*#__PURE__*/_react.default.createElement(_styles.WrappNotAddresses, null, /*#__PURE__*/_react.default.createElement("img", {
|
|
305
|
+
src: (_theme$images = theme.images) === null || _theme$images === void 0 || (_theme$images = _theme$images.general) === null || _theme$images === void 0 ? void 0 : _theme$images.notFound,
|
|
306
306
|
alt: "Not Found",
|
|
307
307
|
width: "200px",
|
|
308
308
|
height: "112px",
|
|
@@ -40,8 +40,8 @@ var AutoScroll = function AutoScroll(props) {
|
|
|
40
40
|
var autoScrollId = scrollId || 'autoscroll';
|
|
41
41
|
var handleEndFired = false;
|
|
42
42
|
(0, _react.useLayoutEffect)(function () {
|
|
43
|
-
var _document
|
|
44
|
-
var element = (_document = document) === null || _document === void 0
|
|
43
|
+
var _document;
|
|
44
|
+
var element = (_document = document) === null || _document === void 0 || (_document = _document.getElementById("".concat(autoScrollId))) === null || _document === void 0 ? void 0 : _document.parentNode;
|
|
45
45
|
element && element.parentNode.addEventListener('scroll', handleScroll);
|
|
46
46
|
var containerElement = element === null || element === void 0 ? void 0 : element.parentNode;
|
|
47
47
|
setParentElement(element);
|
|
@@ -58,8 +58,8 @@ var AutoScroll = function AutoScroll(props) {
|
|
|
58
58
|
var handleScroll = function handleScroll() {
|
|
59
59
|
var _document2, _autoScrollContainer$, _autoScrollContainer$2;
|
|
60
60
|
var autoScrollContainer = (_document2 = document) === null || _document2 === void 0 ? void 0 : _document2.getElementById("".concat(autoScrollId));
|
|
61
|
-
var botonRight = autoScrollContainer === null || autoScrollContainer === void 0
|
|
62
|
-
var botonLeft = autoScrollContainer === null || autoScrollContainer === void 0
|
|
61
|
+
var botonRight = autoScrollContainer === null || autoScrollContainer === void 0 || (_autoScrollContainer$ = autoScrollContainer.querySelector) === null || _autoScrollContainer$ === void 0 ? void 0 : _autoScrollContainer$.call(autoScrollContainer, '.right-autoscroll');
|
|
62
|
+
var botonLeft = autoScrollContainer === null || autoScrollContainer === void 0 || (_autoScrollContainer$2 = autoScrollContainer.querySelector) === null || _autoScrollContainer$2 === void 0 ? void 0 : _autoScrollContainer$2.call(autoScrollContainer, '.left-autoscroll');
|
|
63
63
|
if (botonLeft || botonRight) {
|
|
64
64
|
if (theme !== null && theme !== void 0 && theme.rtl) {
|
|
65
65
|
if ((containerElement === null || containerElement === void 0 ? void 0 : containerElement.scrollLeft) * -1 < 40) {
|
package/_modules/themes/five/src/components/BusinessBasicInformation/BusinessInfoComponent.js
CHANGED
|
@@ -26,7 +26,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
26
26
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
27
27
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
28
|
var BusinessInfoComponent = function BusinessInfoComponent(props) {
|
|
29
|
-
var _theme$business_view, _theme$
|
|
29
|
+
var _theme$business_view, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _configs$preorder_sta, _business$ribbon, _business$ribbon2, _business$ribbon3, _business$ribbon4, _business$ribbon5, _business$ribbon6, _business$ribbon7, _business$city, _business$city2, _orderState$options, _business$reviews, _business$reviews2, _categoryState$produc, _business$professiona;
|
|
30
30
|
var isChew = props.isChew,
|
|
31
31
|
loading = props.loading,
|
|
32
32
|
business = props.business,
|
|
@@ -58,15 +58,15 @@ var BusinessInfoComponent = function BusinessInfoComponent(props) {
|
|
|
58
58
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
59
59
|
t = _useLanguage2[1];
|
|
60
60
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
61
|
-
var hideDeliveryFee = theme === null || theme === void 0
|
|
62
|
-
var hideTime = theme === null || theme === void 0
|
|
63
|
-
var hideReviews = theme === null || theme === void 0
|
|
64
|
-
var hideReviewsPopup = theme === null || theme === void 0
|
|
65
|
-
var hideDistance = theme === null || theme === void 0
|
|
66
|
-
var hideCity = theme === null || theme === void 0
|
|
61
|
+
var hideDeliveryFee = theme === null || theme === void 0 || (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.header) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.business) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.fee) === null || _theme$business_view === void 0 ? void 0 : _theme$business_view.hidden;
|
|
62
|
+
var hideTime = theme === null || theme === void 0 || (_theme$business_view2 = theme.business_view) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.components) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.header) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.components) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.business) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.components) === null || _theme$business_view2 === void 0 || (_theme$business_view2 = _theme$business_view2.time) === null || _theme$business_view2 === void 0 ? void 0 : _theme$business_view2.hidden;
|
|
63
|
+
var hideReviews = theme === null || theme === void 0 || (_theme$business_view3 = theme.business_view) === null || _theme$business_view3 === void 0 || (_theme$business_view3 = _theme$business_view3.components) === null || _theme$business_view3 === void 0 || (_theme$business_view3 = _theme$business_view3.header) === null || _theme$business_view3 === void 0 || (_theme$business_view3 = _theme$business_view3.components) === null || _theme$business_view3 === void 0 || (_theme$business_view3 = _theme$business_view3.business) === null || _theme$business_view3 === void 0 || (_theme$business_view3 = _theme$business_view3.components) === null || _theme$business_view3 === void 0 || (_theme$business_view3 = _theme$business_view3.reviews) === null || _theme$business_view3 === void 0 ? void 0 : _theme$business_view3.hidden;
|
|
64
|
+
var hideReviewsPopup = theme === null || theme === void 0 || (_theme$business_view4 = theme.business_view) === null || _theme$business_view4 === void 0 || (_theme$business_view4 = _theme$business_view4.components) === null || _theme$business_view4 === void 0 || (_theme$business_view4 = _theme$business_view4.header) === null || _theme$business_view4 === void 0 || (_theme$business_view4 = _theme$business_view4.components) === null || _theme$business_view4 === void 0 || (_theme$business_view4 = _theme$business_view4.reviews) === null || _theme$business_view4 === void 0 ? void 0 : _theme$business_view4.hidden;
|
|
65
|
+
var hideDistance = theme === null || theme === void 0 || (_theme$business_view5 = theme.business_view) === null || _theme$business_view5 === void 0 || (_theme$business_view5 = _theme$business_view5.components) === null || _theme$business_view5 === void 0 || (_theme$business_view5 = _theme$business_view5.header) === null || _theme$business_view5 === void 0 || (_theme$business_view5 = _theme$business_view5.components) === null || _theme$business_view5 === void 0 || (_theme$business_view5 = _theme$business_view5.business) === null || _theme$business_view5 === void 0 || (_theme$business_view5 = _theme$business_view5.components) === null || _theme$business_view5 === void 0 || (_theme$business_view5 = _theme$business_view5.distance) === null || _theme$business_view5 === void 0 ? void 0 : _theme$business_view5.hidden;
|
|
66
|
+
var hideCity = theme === null || theme === void 0 || (_theme$business_view6 = theme.business_view) === null || _theme$business_view6 === void 0 || (_theme$business_view6 = _theme$business_view6.components) === null || _theme$business_view6 === void 0 || (_theme$business_view6 = _theme$business_view6.header) === null || _theme$business_view6 === void 0 || (_theme$business_view6 = _theme$business_view6.components) === null || _theme$business_view6 === void 0 || (_theme$business_view6 = _theme$business_view6.business) === null || _theme$business_view6 === void 0 || (_theme$business_view6 = _theme$business_view6.components) === null || _theme$business_view6 === void 0 || (_theme$business_view6 = _theme$business_view6.city) === null || _theme$business_view6 === void 0 ? void 0 : _theme$business_view6.hidden;
|
|
67
67
|
var layoutsWithOldSearch = ['starbucks', 'old', 'floating'];
|
|
68
|
-
var hideSearch = layoutsWithOldSearch.includes(theme === null || theme === void 0
|
|
69
|
-
var isPreOrderSetting = (configs === null || configs === void 0
|
|
68
|
+
var hideSearch = layoutsWithOldSearch.includes(theme === null || theme === void 0 || (_theme$business_view7 = theme.business_view) === null || _theme$business_view7 === void 0 || (_theme$business_view7 = _theme$business_view7.components) === null || _theme$business_view7 === void 0 || (_theme$business_view7 = _theme$business_view7.product_search) === null || _theme$business_view7 === void 0 || (_theme$business_view7 = _theme$business_view7.components) === null || _theme$business_view7 === void 0 || (_theme$business_view7 = _theme$business_view7.layout) === null || _theme$business_view7 === void 0 ? void 0 : _theme$business_view7.type);
|
|
69
|
+
var isPreOrderSetting = (configs === null || configs === void 0 || (_configs$preorder_sta = configs.preorder_status_enabled) === null || _configs$preorder_sta === void 0 ? void 0 : _configs$preorder_sta.value) === '1';
|
|
70
70
|
var searchComponentProps = {
|
|
71
71
|
setOpenSearchProducts: setOpenSearchProducts,
|
|
72
72
|
handleChangeSortBy: handleChangeSortBy,
|
|
@@ -85,18 +85,18 @@ var BusinessInfoComponent = function BusinessInfoComponent(props) {
|
|
|
85
85
|
}, /*#__PURE__*/_react.default.createElement("h2", {
|
|
86
86
|
className: "bold",
|
|
87
87
|
id: "business_name"
|
|
88
|
-
}, business === null || business === void 0 ? void 0 : business.name), (business === null || business === void 0
|
|
89
|
-
bgColor: business === null || business === void 0
|
|
90
|
-
colorText: (0, _utils.lightenDarkenColor)(business === null || business === void 0
|
|
91
|
-
borderRibbon: (0, _utils.lightenDarkenColor)(business === null || business === void 0
|
|
92
|
-
isRoundRect: (business === null || business === void 0
|
|
93
|
-
isCapsule: (business === null || business === void 0
|
|
94
|
-
}, business === null || business === void 0
|
|
88
|
+
}, business === null || business === void 0 ? void 0 : business.name), (business === null || business === void 0 || (_business$ribbon = business.ribbon) === null || _business$ribbon === void 0 ? void 0 : _business$ribbon.enabled) && /*#__PURE__*/_react.default.createElement(_styles.RibbonBox, {
|
|
89
|
+
bgColor: business === null || business === void 0 || (_business$ribbon2 = business.ribbon) === null || _business$ribbon2 === void 0 ? void 0 : _business$ribbon2.color,
|
|
90
|
+
colorText: (0, _utils.lightenDarkenColor)(business === null || business === void 0 || (_business$ribbon3 = business.ribbon) === null || _business$ribbon3 === void 0 ? void 0 : _business$ribbon3.color),
|
|
91
|
+
borderRibbon: (0, _utils.lightenDarkenColor)(business === null || business === void 0 || (_business$ribbon4 = business.ribbon) === null || _business$ribbon4 === void 0 ? void 0 : _business$ribbon4.color),
|
|
92
|
+
isRoundRect: (business === null || business === void 0 || (_business$ribbon5 = business.ribbon) === null || _business$ribbon5 === void 0 ? void 0 : _business$ribbon5.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
|
|
93
|
+
isCapsule: (business === null || business === void 0 || (_business$ribbon6 = business.ribbon) === null || _business$ribbon6 === void 0 ? void 0 : _business$ribbon6.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape)
|
|
94
|
+
}, business === null || business === void 0 || (_business$ribbon7 = business.ribbon) === null || _business$ribbon7 === void 0 ? void 0 : _business$ribbon7.text)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
95
95
|
width: isCustomerMode ? 100 : 150,
|
|
96
96
|
height: isCustomerMode ? 35 : 'auto'
|
|
97
|
-
}), typeof hideCity !== 'undefined' && !hideCity && (business === null || business === void 0
|
|
97
|
+
}), typeof hideCity !== 'undefined' && !hideCity && (business === null || business === void 0 || (_business$city = business.city) === null || _business$city === void 0 ? void 0 : _business$city.name) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement("p", {
|
|
98
98
|
className: "type"
|
|
99
|
-
}, business === null || business === void 0
|
|
99
|
+
}, business === null || business === void 0 || (_business$city2 = business.city) === null || _business$city2 === void 0 ? void 0 : _business$city2.name) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
100
100
|
width: isCustomerMode ? 100 : 150
|
|
101
101
|
})), !loading ? /*#__PURE__*/_react.default.createElement(_styles.SocialList, null, (business === null || business === void 0 ? void 0 : business.facebook_profile) && /*#__PURE__*/_react.default.createElement(_SocialNetWork.SocialNetWork, {
|
|
102
102
|
url: business === null || business === void 0 ? void 0 : business.facebook_profile,
|
|
@@ -130,7 +130,7 @@ var BusinessInfoComponent = function BusinessInfoComponent(props) {
|
|
|
130
130
|
className: "dot"
|
|
131
131
|
}, "\u2022")) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
132
132
|
width: isCustomerMode ? 70 : 50
|
|
133
|
-
})), !hideTime && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (orderState === null || orderState === void 0
|
|
133
|
+
})), !hideTime && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (orderState === null || orderState === void 0 || (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h5", null, (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)), /*#__PURE__*/_react.default.createElement("span", {
|
|
134
134
|
className: "dot"
|
|
135
135
|
}, "\u2022")) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("h5", null, (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time)), /*#__PURE__*/_react.default.createElement("span", {
|
|
136
136
|
className: "dot"
|
|
@@ -144,7 +144,7 @@ var BusinessInfoComponent = function BusinessInfoComponent(props) {
|
|
|
144
144
|
className: "review"
|
|
145
145
|
}, /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.StarFill, {
|
|
146
146
|
className: "start"
|
|
147
|
-
}), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0
|
|
147
|
+
}), /*#__PURE__*/_react.default.createElement("p", null, business === null || business === void 0 || (_business$reviews = business.reviews) === null || _business$reviews === void 0 ? void 0 : _business$reviews.total)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
148
148
|
width: isCustomerMode ? 100 : 50
|
|
149
149
|
}))), !loading ? /*#__PURE__*/_react.default.createElement("div", {
|
|
150
150
|
className: "preorder-Reviews"
|
|
@@ -160,7 +160,7 @@ var BusinessInfoComponent = function BusinessInfoComponent(props) {
|
|
|
160
160
|
}
|
|
161
161
|
}, t('REVIEWS', 'Reviews'))) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
162
162
|
width: isCustomerMode ? 100 : 150
|
|
163
|
-
})))), !hideSearch && ((categoryState === null || categoryState === void 0
|
|
163
|
+
})))), !hideSearch && ((categoryState === null || categoryState === void 0 || (_categoryState$produc = categoryState.products) === null || _categoryState$produc === void 0 ? void 0 : _categoryState$produc.length) !== 0 || searchValue) && !errorQuantityProducts && !isInfoShrunken && !(business !== null && business !== void 0 && (_business$professiona = business.professionals) !== null && _business$professiona !== void 0 && _business$professiona.length) &&
|
|
164
164
|
/*#__PURE__*/
|
|
165
165
|
// (categoryClicked || windowSize.width >= 993) &&
|
|
166
166
|
_react.default.createElement(_SearchComponent.SearchComponent, searchComponentProps));
|
|
@@ -11,14 +11,14 @@ var _styledComponents = require("styled-components");
|
|
|
11
11
|
var _CgSearch = _interopRequireDefault(require("@meronex/icons/cg/CgSearch"));
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
var SearchComponent = function SearchComponent(props) {
|
|
14
|
-
var _theme$business_view
|
|
14
|
+
var _theme$business_view;
|
|
15
15
|
var setOpenSearchProducts = props.setOpenSearchProducts,
|
|
16
16
|
handleChangeSortBy = props.handleChangeSortBy,
|
|
17
17
|
sortByValue = props.sortByValue,
|
|
18
18
|
sortByOptions = props.sortByOptions,
|
|
19
19
|
isResponsive = props.isResponsive;
|
|
20
20
|
var theme = (0, _styledComponents.useTheme)();
|
|
21
|
-
var hideSort = theme === null || theme === void 0
|
|
21
|
+
var hideSort = theme === null || theme === void 0 || (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.header) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.business) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.components) === null || _theme$business_view === void 0 || (_theme$business_view = _theme$business_view.sort) === null || _theme$business_view === void 0 ? void 0 : _theme$business_view.hidden;
|
|
22
22
|
return /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, {
|
|
23
23
|
id: "search-component",
|
|
24
24
|
isResponsive: isResponsive
|