ordering-ui-external 10.0.1 → 10.2.0
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/{0.ordering-ui.a7ceb858d42e2be7e708.js → 0.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{1.ordering-ui.a7ceb858d42e2be7e708.js → 1.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{2.ordering-ui.a7ceb858d42e2be7e708.js → 2.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{4.ordering-ui.a7ceb858d42e2be7e708.js → 4.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{5.ordering-ui.a7ceb858d42e2be7e708.js → 5.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{6.ordering-ui.a7ceb858d42e2be7e708.js → 6.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{7.ordering-ui.a7ceb858d42e2be7e708.js → 7.ordering-ui.8384f3801abcc340af2a.js} +2 -2
- package/_bundles/{8.ordering-ui.a7ceb858d42e2be7e708.js → 8.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/{9.ordering-ui.a7ceb858d42e2be7e708.js → 9.ordering-ui.8384f3801abcc340af2a.js} +1 -1
- package/_bundles/ordering-ui.8384f3801abcc340af2a.js +2 -0
- package/_modules/components/BusinessBasicInformation/index.js +7 -10
- package/_modules/components/OrderDetails/index.js +14 -17
- package/_modules/components/ProductItemAccordion/index.js +4 -5
- package/_modules/components/RenderProductsLayout/SearchProducts/index.js +2 -5
- package/_modules/components/UserFormDetails/index.js +7 -8
- package/_modules/components/UserProfileForm/ProfileOptions/index.js +4 -5
- package/_modules/components/UserProfileForm/index.js +10 -11
- package/_modules/config/currency.js +1017 -0
- package/_modules/contexts/ThemeContext/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +608 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/styles.js +69 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +304 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/styles.js +60 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +128 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/styles.js +27 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/index.js +337 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/styles.js +67 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/CalendarHeader.js +81 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +46 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +141 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/styles.js +61 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/BusinessesSelector/index.js +23 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +259 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/styles.js +86 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CountryFilter/index.js +20 -7
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +96 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/styles.js +35 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/cardUtils.js +102 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +148 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/styles.js +16 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +275 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/styles.js +23 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +498 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/styles.js +31 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/index.js +100 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/styles.js +17 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +139 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +17 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +101 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/styles.js +37 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +131 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/styles.js +12 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +83 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +81 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/styles.js +23 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +45 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/styles.js +12 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/index.js +112 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/styles.js +21 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +259 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +66 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +173 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/styles.js +26 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +400 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/styles.js +40 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +613 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/styles.js +109 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/index.js +39 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/styles.js +23 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/index.js +51 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/styles.js +29 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +148 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/styles.js +79 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +82 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/styles.js +21 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +190 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +68 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +234 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +54 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +99 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +131 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/index.js +73 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/styles.js +17 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +124 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/styles.js +12 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/index.js +83 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/styles.js +21 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/index.js +48 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/styles.js +14 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/index.js +59 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/CurrencyFilter/index.js +20 -7
- package/_modules/themes/callcenterOriginal/src/components/Orders/DateTypeSelector/index.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +5 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +5 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/index.js +2 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryTypeSelector/index.js +36 -8
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +15 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversBusyStatusFilter/styles.js +6 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversDashboard/index.js +8 -9
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversDashboard/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversGroupTypeSelector/index.js +27 -7
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +21 -10
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/styles.js +11 -18
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +9 -6
- package/_modules/themes/callcenterOriginal/src/components/Orders/DriversOnlineOfflineFilter/styles.js +5 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/index.js +144 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/styles.js +57 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/index.js +37 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/styles.js +24 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +10 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/index.js +66 -124
- package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/styles.js +64 -65
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +238 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +62 -37
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/styles.js +41 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +31 -14
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDelete/index.js +25 -57
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +73 -171
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/styles.js +5 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +87 -15
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/styles.js +12 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +48 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +6 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +126 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/styles.js +30 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +23 -12
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +4 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +6 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/styles.js +3 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardList/index.js +1 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/styles.js +14 -8
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/index.js +123 -17
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/styles.js +11 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +22 -5
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/styles.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +10 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +19 -13
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/styles.js +7 -10
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +159 -47
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +14 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +25 -4
- package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +16 -12
- package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/styles.js +11 -3
- package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +377 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/styles.js +49 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/index.js +89 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/styles.js +20 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/index.js +119 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/styles.js +65 -0
- package/_modules/themes/callcenterOriginal/src/components/Orders/index.js +21 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +1 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +18 -5
- package/_modules/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/Confirm/index.js +6 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +269 -26
- package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/styles.js +47 -9
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +202 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/styles.js +36 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/index.js +75 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/styles.js +16 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/index.js +56 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/styles.js +14 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/index.js +181 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/styles.js +18 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +126 -19
- package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/styles.js +11 -3
- package/_modules/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +7 -4
- package/_modules/themes/callcenterOriginal/src/components/Shared/LinkableText/index.js +22 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/Modal/index.js +5 -3
- package/_modules/themes/callcenterOriginal/src/components/Shared/Modal/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/Pagination/styles.js +2 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/ProtectedRoute/index.js +6 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +9 -1
- package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +15 -2
- package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/styles.js +12 -10
- package/_modules/themes/callcenterOriginal/src/components/Shared/SearchBar/index.js +11 -6
- package/_modules/themes/callcenterOriginal/src/components/Shared/SearchBar/styles.js +9 -15
- package/_modules/themes/callcenterOriginal/src/components/Shared/SideBar/index.js +22 -3
- package/_modules/themes/callcenterOriginal/src/components/Shared/SideBar/styles.js +10 -8
- package/_modules/themes/callcenterOriginal/src/components/Shared/Tabs/index.js +32 -0
- package/_modules/themes/callcenterOriginal/src/components/Shared/index.js +27 -0
- package/_modules/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +4 -4
- package/_modules/themes/callcenterOriginal/src/styles/Buttons/index.js +116 -74
- package/_modules/themes/callcenterOriginal/src/styles/index.js +6 -0
- package/_modules/themes/five/src/components/AddressList/index.js +0 -3
- package/_modules/themes/five/src/components/BusinessController/index.js +11 -14
- package/_modules/themes/five/src/components/BusinessInformation/styles.js +19 -14
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +51 -10
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +32 -25
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +2 -5
- package/_modules/themes/five/src/components/BusinessProductsListing/index.js +11 -4
- package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +11 -12
- package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +5 -10
- package/_modules/themes/five/src/components/Cart/index.js +17 -9
- package/_modules/themes/five/src/components/CartPopover/index.js +4 -7
- package/_modules/themes/five/src/components/CartPopover/styles.js +4 -1
- package/_modules/themes/five/src/components/Checkout/index.js +3 -6
- package/_modules/themes/five/src/components/Confirm/styles.js +16 -13
- package/_modules/themes/five/src/components/DatePicker/index.js +2 -1
- package/_modules/themes/five/src/components/Favorite/index.js +4 -5
- package/_modules/themes/five/src/components/Footer/index.js +2 -3
- package/_modules/themes/five/src/components/Header/index.js +5 -8
- package/_modules/themes/five/src/components/HeaderOption/index.js +4 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -10
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
- package/_modules/themes/five/src/components/Modal/styles.js +4 -2
- package/_modules/themes/five/src/components/MomentContent/index.js +16 -6
- package/_modules/themes/five/src/components/MomentControl/index.js +44 -34
- package/_modules/themes/five/src/components/MomentControl/styles.js +49 -27
- package/_modules/themes/five/src/components/OrderDetails/index.js +31 -24
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -7
- package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +11 -1
- package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -5
- package/_modules/themes/five/src/components/PageBanner/index.js +75 -54
- package/_modules/themes/five/src/components/ProductForm/styles.js +12 -9
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +0 -3
- package/_modules/themes/five/src/components/ProductOption/styles.js +4 -1
- package/_modules/themes/five/src/components/RenderProductsLayout/index.js +8 -9
- package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +0 -3
- package/_modules/themes/five/src/components/UserFormDetails/index.js +3 -6
- package/_modules/themes/five/src/components/UserPopover/index.js +3 -6
- package/_modules/themes/five/src/components/UserPopover/styles.js +8 -5
- package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -5
- package/_modules/themes/five/src/components/UserProfileForm/index.js +2 -5
- package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +8 -9
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -6
- package/_modules/utils/index.js +42 -2
- package/package.json +2 -2
- package/src/components/BusinessBasicInformation/index.js +7 -8
- package/src/components/OrderDetails/index.js +14 -16
- package/src/components/ProductItemAccordion/index.js +4 -3
- package/src/components/RenderProductsLayout/SearchProducts/index.js +2 -3
- package/src/components/UserFormDetails/index.js +6 -5
- package/src/components/UserProfileForm/ProfileOptions/index.js +4 -4
- package/src/components/UserProfileForm/index.js +10 -10
- package/src/config/currency.js +1010 -0
- package/src/contexts/ThemeContext/index.js +1 -1
- package/src/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +592 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AddressForm/styles.js +200 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +327 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AddressList/styles.js +198 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +137 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/styles.js +51 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/index.js +339 -0
- package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/styles.js +144 -0
- package/src/themes/callcenterOriginal/src/components/Orders/Appointments/CalendarHeader.js +74 -0
- package/src/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +38 -0
- package/src/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +145 -0
- package/src/themes/callcenterOriginal/src/components/Orders/Appointments/styles.js +196 -0
- package/src/themes/callcenterOriginal/src/components/Orders/BusinessesSelector/index.js +37 -24
- package/src/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +251 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CompanySelector/styles.js +142 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CountryFilter/index.js +19 -11
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +135 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/styles.js +135 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/cardUtils.js +111 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +161 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/styles.js +20 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +267 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/styles.js +67 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +519 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/styles.js +85 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/index.js +90 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/styles.js +22 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +132 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +28 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +113 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/styles.js +91 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +115 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/styles.js +10 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +70 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +83 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/styles.js +50 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +43 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/styles.js +5 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/index.js +105 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/styles.js +27 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +261 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +159 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +172 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/styles.js +33 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +440 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/styles.js +132 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +701 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/styles.js +540 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/index.js +43 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/styles.js +29 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/index.js +58 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/styles.js +76 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +182 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/styles.js +195 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +67 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/styles.js +63 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +240 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +235 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +237 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +161 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +105 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +314 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/index.js +71 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/styles.js +13 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +90 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/styles.js +9 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/index.js +96 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/styles.js +73 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/index.js +69 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/styles.js +25 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/index.js +45 -0
- package/src/themes/callcenterOriginal/src/components/Orders/CurrencyFilter/index.js +17 -9
- package/src/themes/callcenterOriginal/src/components/Orders/DateTypeSelector/index.js +2 -2
- package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +5 -5
- package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +3 -3
- package/src/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/index.js +1 -0
- package/src/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/styles.js +1 -1
- package/src/themes/callcenterOriginal/src/components/Orders/DeliveryTypeSelector/index.js +30 -7
- package/src/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +10 -0
- package/src/themes/callcenterOriginal/src/components/Orders/DriversBusyStatusFilter/styles.js +7 -1
- package/src/themes/callcenterOriginal/src/components/Orders/DriversDashboard/index.js +4 -4
- package/src/themes/callcenterOriginal/src/components/Orders/DriversDashboard/styles.js +1 -1
- package/src/themes/callcenterOriginal/src/components/Orders/DriversGroupTypeSelector/index.js +23 -9
- package/src/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +16 -8
- package/src/themes/callcenterOriginal/src/components/Orders/DriversList/styles.js +2 -11
- package/src/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +6 -5
- package/src/themes/callcenterOriginal/src/components/Orders/DriversOnlineOfflineFilter/styles.js +8 -1
- package/src/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/index.js +178 -0
- package/src/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/styles.js +116 -0
- package/src/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/index.js +39 -0
- package/src/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/styles.js +29 -0
- package/src/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +10 -1
- package/src/themes/callcenterOriginal/src/components/Orders/Logistics/styles.js +6 -0
- package/src/themes/callcenterOriginal/src/components/Orders/Messages/index.js +191 -311
- package/src/themes/callcenterOriginal/src/components/Orders/Messages/styles.js +24 -4
- package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +221 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +76 -35
- package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/styles.js +104 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +40 -17
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +1 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDelete/index.js +17 -71
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +75 -72
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDetails/styles.js +4 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +101 -22
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/styles.js +27 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +28 -5
- package/src/themes/callcenterOriginal/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +4 -3
- package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +251 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/styles.js +68 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +18 -9
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersCards/styles.js +3 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +4 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +4 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/styles.js +13 -11
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardList/index.js +1 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/styles.js +16 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/index.js +120 -13
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/styles.js +26 -0
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +20 -2
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/styles.js +3 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +7 -1
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +15 -9
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/styles.js +2 -15
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +270 -130
- package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +14 -1
- package/src/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +22 -9
- package/src/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +63 -45
- package/src/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/styles.js +25 -0
- package/src/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +383 -0
- package/src/themes/callcenterOriginal/src/components/Orders/UserAddForm/styles.js +205 -0
- package/src/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/index.js +76 -0
- package/src/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/styles.js +11 -0
- package/src/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/index.js +138 -0
- package/src/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/styles.js +171 -0
- package/src/themes/callcenterOriginal/src/components/Orders/index.js +7 -0
- package/src/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +1 -0
- package/src/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +18 -9
- package/src/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/styles.js +1 -0
- package/src/themes/callcenterOriginal/src/components/Shared/Confirm/index.js +11 -1
- package/src/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +303 -36
- package/src/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/styles.js +95 -19
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +172 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/styles.js +136 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/index.js +73 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/styles.js +34 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/index.js +51 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/styles.js +23 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/index.js +172 -0
- package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/styles.js +30 -0
- package/src/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +77 -18
- package/src/themes/callcenterOriginal/src/components/Shared/ImageCrop/styles.js +18 -0
- package/src/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +6 -3
- package/src/themes/callcenterOriginal/src/components/Shared/LinkableText/index.js +17 -0
- package/src/themes/callcenterOriginal/src/components/Shared/Modal/index.js +7 -2
- package/src/themes/callcenterOriginal/src/components/Shared/Modal/styles.js +1 -1
- package/src/themes/callcenterOriginal/src/components/Shared/Pagination/styles.js +2 -2
- package/src/themes/callcenterOriginal/src/components/Shared/ProtectedRoute/index.js +7 -1
- package/src/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +7 -1
- package/src/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +19 -4
- package/src/themes/callcenterOriginal/src/components/Shared/Schedule/styles.js +47 -12
- package/src/themes/callcenterOriginal/src/components/Shared/SearchBar/index.js +11 -4
- package/src/themes/callcenterOriginal/src/components/Shared/SearchBar/styles.js +19 -32
- package/src/themes/callcenterOriginal/src/components/Shared/SideBar/index.js +30 -10
- package/src/themes/callcenterOriginal/src/components/Shared/SideBar/styles.js +13 -14
- package/src/themes/callcenterOriginal/src/components/Shared/Tabs/index.js +28 -0
- package/src/themes/callcenterOriginal/src/components/Shared/index.js +8 -1
- package/src/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +1 -1
- package/src/themes/callcenterOriginal/src/styles/Buttons/index.js +75 -48
- package/src/themes/callcenterOriginal/src/styles/index.js +2 -1
- package/src/themes/five/src/components/AddressForm/index.js +1 -2
- package/src/themes/five/src/components/AddressList/index.js +1 -3
- package/src/themes/five/src/components/BusinessController/index.js +2 -4
- package/src/themes/five/src/components/BusinessInformation/index.js +1 -2
- package/src/themes/five/src/components/BusinessInformation/styles.js +2 -2
- package/src/themes/five/src/components/BusinessPreorder/index.js +61 -10
- package/src/themes/five/src/components/BusinessPreorder/styles.js +93 -43
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +2 -3
- package/src/themes/five/src/components/BusinessProductsList/index.js +1 -2
- package/src/themes/five/src/components/BusinessProductsListing/index.js +10 -3
- package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
- package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +6 -7
- package/src/themes/five/src/components/Cart/index.js +11 -4
- package/src/themes/five/src/components/CartPopover/index.js +2 -3
- package/src/themes/five/src/components/CartPopover/styles.js +1 -1
- package/src/themes/five/src/components/Checkout/index.js +2 -4
- package/src/themes/five/src/components/Confirm/styles.js +1 -1
- package/src/themes/five/src/components/DatePicker/index.js +1 -0
- package/src/themes/five/src/components/Favorite/index.js +4 -3
- package/src/themes/five/src/components/Footer/index.js +3 -2
- package/src/themes/five/src/components/Header/index.js +4 -5
- package/src/themes/five/src/components/HeaderOption/index.js +4 -3
- package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -8
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -0
- package/src/themes/five/src/components/Modal/styles.js +1 -1
- package/src/themes/five/src/components/MomentContent/index.js +17 -8
- package/src/themes/five/src/components/MomentControl/index.js +83 -45
- package/src/themes/five/src/components/MomentControl/styles.js +137 -34
- package/src/themes/five/src/components/MyOrders/index.js +1 -1
- package/src/themes/five/src/components/OrderDetails/index.js +50 -21
- package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -6
- package/src/themes/five/src/components/OrderTypeSelectorContent/index.js +13 -1
- package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -3
- package/src/themes/five/src/components/PageBanner/index.js +64 -50
- package/src/themes/five/src/components/ProductForm/styles.js +1 -1
- package/src/themes/five/src/components/ProductItemAccordion/index.js +1 -2
- package/src/themes/five/src/components/ProductOption/styles.js +1 -1
- package/src/themes/five/src/components/RenderProductsLayout/index.js +9 -6
- package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +1 -2
- package/src/themes/five/src/components/UserFormDetails/index.js +3 -4
- package/src/themes/five/src/components/UserPopover/index.js +3 -4
- package/src/themes/five/src/components/UserPopover/styles.js +1 -1
- package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -3
- package/src/themes/five/src/components/UserProfileForm/index.js +2 -4
- package/src/themes/six/src/components/BusinessBasicInformation/index.js +8 -7
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +2 -3
- package/src/utils/index.js +36 -1
- package/template/app.js +15 -10
- package/template/components/HelmetTags/index.js +3 -2
- package/template/pages/AddressList/index.js +4 -3
- package/template/pages/BusinessProductsList/index.js +5 -4
- package/template/pages/BusinessesList/index.js +6 -6
- package/template/pages/Checkout/index.js +6 -4
- package/template/pages/Home/index.js +4 -2
- package/template/pages/MessagesList/index.js +5 -4
- package/template/pages/MyOrders/index.js +6 -5
- package/template/pages/OrderDetails/index.js +4 -3
- package/_bundles/ordering-ui.a7ceb858d42e2be7e708.js +0 -2
- package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDelete/styles.js +0 -19
- package/src/themes/callcenterOriginal/src/components/Orders/OrderDelete/styles.js +0 -40
- package/template/components/OrderingThemeUpdated/index.js +0 -41
- /package/_bundles/{7.ordering-ui.a7ceb858d42e2be7e708.js.LICENSE.txt → 7.ordering-ui.8384f3801abcc340af2a.js.LICENSE.txt} +0 -0
- /package/_bundles/{ordering-ui.a7ceb858d42e2be7e708.js.LICENSE.txt → ordering-ui.8384f3801abcc340af2a.js.LICENSE.txt} +0 -0
|
@@ -26,7 +26,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
26
26
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
27
27
|
var types = ['food', 'laundry', 'alcohol', 'groceries'];
|
|
28
28
|
var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
29
|
-
var
|
|
29
|
+
var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6, _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8, _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15, _theme$business_view16, _theme$business_view17, _theme$business_view18, _theme$business_view19, _theme$business_view20, _theme$business_view21, _theme$business_view22, _theme$business_view23, _theme$business_view24, _theme$business_view25, _theme$business_view26, _theme$business_view27, _theme$business_view28, _theme$business_view29, _theme$business_view30, _theme$business_view31, _theme$business_view32, _theme$business_view33, _theme$business_view34, _theme$business_view35, _theme$business_view36, _props$beforeElements, _props$beforeComponen, _theme$images, _theme$images$dummies, _business$reviews, _orderState$options, _props$afterComponent, _props$afterElements;
|
|
30
30
|
var isSkeleton = props.isSkeleton,
|
|
31
31
|
businessState = props.businessState,
|
|
32
32
|
setOpenBusinessInformation = props.setOpenBusinessInformation,
|
|
@@ -46,9 +46,6 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
46
46
|
parsePrice = _useUtils2$.parsePrice,
|
|
47
47
|
parseDistance = _useUtils2$.parseDistance,
|
|
48
48
|
optimizeImage = _useUtils2$.optimizeImage;
|
|
49
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
50
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
51
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
52
49
|
var getBusinessType = function getBusinessType() {
|
|
53
50
|
if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
|
|
54
51
|
var _types = [];
|
|
@@ -58,12 +55,12 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
58
55
|
});
|
|
59
56
|
return _types.join(', ');
|
|
60
57
|
};
|
|
61
|
-
var showLogo = !(
|
|
62
|
-
var showDeliveryFee = !(
|
|
63
|
-
var showTime = !(
|
|
64
|
-
var showBusinessInfo = !(
|
|
65
|
-
var showReviews = !(
|
|
66
|
-
var showDistance = !(
|
|
58
|
+
var showLogo = !(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$2 = _theme$business_view$.header) !== null && _theme$business_view$2 !== void 0 && (_theme$business_view$3 = _theme$business_view$2.components) !== null && _theme$business_view$3 !== void 0 && (_theme$business_view$4 = _theme$business_view$3.business) !== null && _theme$business_view$4 !== void 0 && (_theme$business_view$5 = _theme$business_view$4.components) !== null && _theme$business_view$5 !== void 0 && (_theme$business_view$6 = _theme$business_view$5.logo) !== null && _theme$business_view$6 !== void 0 && _theme$business_view$6.hidden);
|
|
59
|
+
var showDeliveryFee = !(theme !== null && theme !== void 0 && (_theme$business_view2 = theme.business_view) !== null && _theme$business_view2 !== void 0 && (_theme$business_view3 = _theme$business_view2.components) !== null && _theme$business_view3 !== void 0 && (_theme$business_view4 = _theme$business_view3.header) !== null && _theme$business_view4 !== void 0 && (_theme$business_view5 = _theme$business_view4.components) !== null && _theme$business_view5 !== void 0 && (_theme$business_view6 = _theme$business_view5.business) !== null && _theme$business_view6 !== void 0 && (_theme$business_view7 = _theme$business_view6.components) !== null && _theme$business_view7 !== void 0 && (_theme$business_view8 = _theme$business_view7.fee) !== null && _theme$business_view8 !== void 0 && _theme$business_view8.hidden);
|
|
60
|
+
var showTime = !(theme !== null && theme !== void 0 && (_theme$business_view9 = theme.business_view) !== null && _theme$business_view9 !== void 0 && (_theme$business_view10 = _theme$business_view9.components) !== null && _theme$business_view10 !== void 0 && (_theme$business_view11 = _theme$business_view10.header) !== null && _theme$business_view11 !== void 0 && (_theme$business_view12 = _theme$business_view11.components) !== null && _theme$business_view12 !== void 0 && (_theme$business_view13 = _theme$business_view12.business) !== null && _theme$business_view13 !== void 0 && (_theme$business_view14 = _theme$business_view13.components) !== null && _theme$business_view14 !== void 0 && (_theme$business_view15 = _theme$business_view14.time) !== null && _theme$business_view15 !== void 0 && _theme$business_view15.hidden);
|
|
61
|
+
var showBusinessInfo = !(theme !== null && theme !== void 0 && (_theme$business_view16 = theme.business_view) !== null && _theme$business_view16 !== void 0 && (_theme$business_view17 = _theme$business_view16.components) !== null && _theme$business_view17 !== void 0 && (_theme$business_view18 = _theme$business_view17.header) !== null && _theme$business_view18 !== void 0 && (_theme$business_view19 = _theme$business_view18.components) !== null && _theme$business_view19 !== void 0 && (_theme$business_view20 = _theme$business_view19.business) !== null && _theme$business_view20 !== void 0 && (_theme$business_view21 = _theme$business_view20.components) !== null && _theme$business_view21 !== void 0 && (_theme$business_view22 = _theme$business_view21.business_info) !== null && _theme$business_view22 !== void 0 && _theme$business_view22.hidden);
|
|
62
|
+
var showReviews = !(theme !== null && theme !== void 0 && (_theme$business_view23 = theme.business_view) !== null && _theme$business_view23 !== void 0 && (_theme$business_view24 = _theme$business_view23.components) !== null && _theme$business_view24 !== void 0 && (_theme$business_view25 = _theme$business_view24.header) !== null && _theme$business_view25 !== void 0 && (_theme$business_view26 = _theme$business_view25.components) !== null && _theme$business_view26 !== void 0 && (_theme$business_view27 = _theme$business_view26.business) !== null && _theme$business_view27 !== void 0 && (_theme$business_view28 = _theme$business_view27.components) !== null && _theme$business_view28 !== void 0 && (_theme$business_view29 = _theme$business_view28.reviews) !== null && _theme$business_view29 !== void 0 && _theme$business_view29.hidden);
|
|
63
|
+
var showDistance = !(theme !== null && theme !== void 0 && (_theme$business_view30 = theme.business_view) !== null && _theme$business_view30 !== void 0 && (_theme$business_view31 = _theme$business_view30.components) !== null && _theme$business_view31 !== void 0 && (_theme$business_view32 = _theme$business_view31.header) !== null && _theme$business_view32 !== void 0 && (_theme$business_view33 = _theme$business_view32.components) !== null && _theme$business_view33 !== void 0 && (_theme$business_view34 = _theme$business_view33.business) !== null && _theme$business_view34 !== void 0 && (_theme$business_view35 = _theme$business_view34.components) !== null && _theme$business_view35 !== void 0 && (_theme$business_view36 = _theme$business_view35.distance) !== null && _theme$business_view36 !== void 0 && _theme$business_view36.hidden);
|
|
67
64
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
|
|
68
65
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
69
66
|
key: i
|
|
@@ -46,7 +46,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
46
46
|
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; } }
|
|
47
47
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
48
48
|
var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
49
|
-
var
|
|
49
|
+
var _theme$confirmation, _theme$confirmation$c, _theme$confirmation$c2, _theme$confirmation$c3, _theme$confirmation$c4, _theme$confirmation2, _theme$confirmation2$, _theme$confirmation2$2, _theme$confirmation2$3, _theme$confirmation2$4, _theme$confirmation3, _theme$confirmation3$, _theme$confirmation3$2, _theme$confirmation3$3, _theme$confirmation3$4, _theme$confirmation4, _theme$confirmation4$, _theme$confirmation4$2, _theme$confirmation4$3, _theme$confirmation4$4, _theme$confirmation5, _theme$confirmation5$, _theme$confirmation5$2, _theme$confirmation5$3, _theme$confirmation5$4, _theme$confirmation6, _theme$confirmation6$, _theme$confirmation6$2, _theme$confirmation6$3, _theme$confirmation6$4, _theme$confirmation7, _theme$confirmation7$, _theme$confirmation7$2, _theme$confirmation7$3, _theme$confirmation7$4, _theme$confirmation8, _theme$confirmation8$, _theme$confirmation8$2, _theme$confirmation8$3, _theme$confirmation8$4, _theme$confirmation9, _theme$confirmation9$, _theme$confirmation9$2, _theme$confirmation9$3, _theme$confirmation9$4, _theme$confirmation10, _theme$confirmation11, _theme$confirmation12, _theme$confirmation13, _theme$confirmation14, _theme$confirmation15, _theme$confirmation16, _theme$confirmation17, _theme$confirmation18, _theme$confirmation19, _theme$confirmation20, _theme$confirmation21, _theme$confirmation22, _theme$confirmation23, _theme$confirmation24, _theme$confirmation25, _theme$confirmation26, _theme$confirmation27, _theme$confirmation28, _theme$confirmation29, _order$driver, _order$driver2, _theme$images2, _theme$images2$dummie, _order$business, _order$business2, _theme$images3, _theme$images3$dummie, _order$customer, _order$customer2, _theme$images4, _theme$images4$dummie, _props$beforeElements, _props$beforeComponen, _theme$defaultLanguag25, _theme$defaultLanguag26, _order$business3, _theme$images5, _theme$images5$dummie, _order$business4, _order$business5, _order$business6, _order$business7, _theme$defaultLanguag27, _theme$defaultLanguag28, _getOrderStatus, _getOrderStatus2, _theme$defaultLanguag29, _order$customer3, _order$customer4, _order$customer5, _order$customer6, _order$customer7, _order$delivery_optio, _order$delivery_optio2, _order$delivery_optio3, _configs$guest_uuid_a, _theme$defaultLanguag30, _theme$defaultLanguag31, _theme$defaultLanguag32, _order$driver3, _configs$google_maps_, _order$driver4, _theme$defaultLanguag33, _order$driver5, _order$driver6, _order$driver7, _order$driver8, _theme$defaultLanguag34, _order$driver9, _theme$defaultLanguag35, _order$products, _theme$defaultLanguag36, _order$summary$subtot, _order$summary2, _ref, _order$summary3, _order$offers, _theme$defaultLanguag37, _theme$defaultLanguag38, _order$summary$discou, _order$summary4, _order$offers2, _order$offers3, _order$offers3$filter, _order$summary5, _order$summary6, _order$summary7, _ref2, _order$summary8, _order$summary$subtot2, _order$summary9, _order$taxes3, _order$summary$tax2, _order$summary10, _order$fees, _order$summary$servic, _order$summary11, _order$taxes4, _order$taxes5, _order$fees2, _order$fees3, _order$fees3$filter, _order$offers4, _order$offers5, _order$offers5$filter, _order$summary12, _theme$defaultLanguag39, _order$summary13, _order$offers6, _order$offers7, _order$offers7$filter, _order$summary14, _theme$defaultLanguag40, _order$summary15, _configs$driver_tip_t, _configs$driver_tip_u, _order$summary$driver, _order$summary16, _theme$defaultLanguag41, _order$summary$total, _order$summary17, _theme$defaultLanguag42, _theme$defaultLanguag43, _theme$defaultLanguag44, _theme$defaultLanguag45, _theme$defaultLanguag46, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6, _props$afterComponent, _props$afterElements;
|
|
50
50
|
var userCustomerId = props.userCustomerId,
|
|
51
51
|
handleBusinessRedirect = props.handleBusinessRedirect,
|
|
52
52
|
handleOrderRedirect = props.handleOrderRedirect,
|
|
@@ -74,9 +74,6 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
|
74
74
|
parsePrice = _useUtils2$.parsePrice,
|
|
75
75
|
parseNumber = _useUtils2$.parseNumber,
|
|
76
76
|
parseDate = _useUtils2$.parseDate;
|
|
77
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
78
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
79
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
80
77
|
var _useState = (0, _react.useState)({
|
|
81
78
|
business: false,
|
|
82
79
|
driver: false
|
|
@@ -133,19 +130,19 @@ var OrderDetailsUI = function OrderDetailsUI(props) {
|
|
|
133
130
|
businessData = _props$order.businessData,
|
|
134
131
|
error = _props$order.error;
|
|
135
132
|
var isFromCheckPage = JSON.parse(window.localStorage.getItem('business-address'));
|
|
136
|
-
var showDeliveryDate = !(
|
|
137
|
-
var showDeliveryProgress = !(
|
|
138
|
-
var showBusinessMessages = !(
|
|
139
|
-
var showBusinessAddress = !(
|
|
140
|
-
var showBusinessMap = !(
|
|
141
|
-
var showBusinessLogo = !(
|
|
142
|
-
var showDriverName = !(
|
|
143
|
-
var showDriverPhone = !(
|
|
144
|
-
var showDriverMessages = !(
|
|
145
|
-
var showDriverEmail = !(
|
|
146
|
-
var showDriverPhoto = !(
|
|
147
|
-
var showCustomerAddress = !(
|
|
148
|
-
var showCustomerPhoto = !(
|
|
133
|
+
var showDeliveryDate = !(theme !== null && theme !== void 0 && (_theme$confirmation = theme.confirmation) !== null && _theme$confirmation !== void 0 && (_theme$confirmation$c = _theme$confirmation.components) !== null && _theme$confirmation$c !== void 0 && (_theme$confirmation$c2 = _theme$confirmation$c.order) !== null && _theme$confirmation$c2 !== void 0 && (_theme$confirmation$c3 = _theme$confirmation$c2.components) !== null && _theme$confirmation$c3 !== void 0 && (_theme$confirmation$c4 = _theme$confirmation$c3.date) !== null && _theme$confirmation$c4 !== void 0 && _theme$confirmation$c4.hidden);
|
|
134
|
+
var showDeliveryProgress = !(theme !== null && theme !== void 0 && (_theme$confirmation2 = theme.confirmation) !== null && _theme$confirmation2 !== void 0 && (_theme$confirmation2$ = _theme$confirmation2.components) !== null && _theme$confirmation2$ !== void 0 && (_theme$confirmation2$2 = _theme$confirmation2$.order) !== null && _theme$confirmation2$2 !== void 0 && (_theme$confirmation2$3 = _theme$confirmation2$2.components) !== null && _theme$confirmation2$3 !== void 0 && (_theme$confirmation2$4 = _theme$confirmation2$3.progress) !== null && _theme$confirmation2$4 !== void 0 && _theme$confirmation2$4.hidden);
|
|
135
|
+
var showBusinessMessages = !(theme !== null && theme !== void 0 && (_theme$confirmation3 = theme.confirmation) !== null && _theme$confirmation3 !== void 0 && (_theme$confirmation3$ = _theme$confirmation3.components) !== null && _theme$confirmation3$ !== void 0 && (_theme$confirmation3$2 = _theme$confirmation3$.business) !== null && _theme$confirmation3$2 !== void 0 && (_theme$confirmation3$3 = _theme$confirmation3$2.components) !== null && _theme$confirmation3$3 !== void 0 && (_theme$confirmation3$4 = _theme$confirmation3$3.messages) !== null && _theme$confirmation3$4 !== void 0 && _theme$confirmation3$4.hidden);
|
|
136
|
+
var showBusinessAddress = !(theme !== null && theme !== void 0 && (_theme$confirmation4 = theme.confirmation) !== null && _theme$confirmation4 !== void 0 && (_theme$confirmation4$ = _theme$confirmation4.components) !== null && _theme$confirmation4$ !== void 0 && (_theme$confirmation4$2 = _theme$confirmation4$.business) !== null && _theme$confirmation4$2 !== void 0 && (_theme$confirmation4$3 = _theme$confirmation4$2.components) !== null && _theme$confirmation4$3 !== void 0 && (_theme$confirmation4$4 = _theme$confirmation4$3.address) !== null && _theme$confirmation4$4 !== void 0 && _theme$confirmation4$4.hidden);
|
|
137
|
+
var showBusinessMap = !(theme !== null && theme !== void 0 && (_theme$confirmation5 = theme.confirmation) !== null && _theme$confirmation5 !== void 0 && (_theme$confirmation5$ = _theme$confirmation5.components) !== null && _theme$confirmation5$ !== void 0 && (_theme$confirmation5$2 = _theme$confirmation5$.business) !== null && _theme$confirmation5$2 !== void 0 && (_theme$confirmation5$3 = _theme$confirmation5$2.components) !== null && _theme$confirmation5$3 !== void 0 && (_theme$confirmation5$4 = _theme$confirmation5$3.map) !== null && _theme$confirmation5$4 !== void 0 && _theme$confirmation5$4.hidden);
|
|
138
|
+
var showBusinessLogo = !(theme !== null && theme !== void 0 && (_theme$confirmation6 = theme.confirmation) !== null && _theme$confirmation6 !== void 0 && (_theme$confirmation6$ = _theme$confirmation6.components) !== null && _theme$confirmation6$ !== void 0 && (_theme$confirmation6$2 = _theme$confirmation6$.business) !== null && _theme$confirmation6$2 !== void 0 && (_theme$confirmation6$3 = _theme$confirmation6$2.components) !== null && _theme$confirmation6$3 !== void 0 && (_theme$confirmation6$4 = _theme$confirmation6$3.logo) !== null && _theme$confirmation6$4 !== void 0 && _theme$confirmation6$4.hidden);
|
|
139
|
+
var showDriverName = !(theme !== null && theme !== void 0 && (_theme$confirmation7 = theme.confirmation) !== null && _theme$confirmation7 !== void 0 && (_theme$confirmation7$ = _theme$confirmation7.components) !== null && _theme$confirmation7$ !== void 0 && (_theme$confirmation7$2 = _theme$confirmation7$.driver) !== null && _theme$confirmation7$2 !== void 0 && (_theme$confirmation7$3 = _theme$confirmation7$2.components) !== null && _theme$confirmation7$3 !== void 0 && (_theme$confirmation7$4 = _theme$confirmation7$3.name) !== null && _theme$confirmation7$4 !== void 0 && _theme$confirmation7$4.hidden);
|
|
140
|
+
var showDriverPhone = !(theme !== null && theme !== void 0 && (_theme$confirmation8 = theme.confirmation) !== null && _theme$confirmation8 !== void 0 && (_theme$confirmation8$ = _theme$confirmation8.components) !== null && _theme$confirmation8$ !== void 0 && (_theme$confirmation8$2 = _theme$confirmation8$.driver) !== null && _theme$confirmation8$2 !== void 0 && (_theme$confirmation8$3 = _theme$confirmation8$2.components) !== null && _theme$confirmation8$3 !== void 0 && (_theme$confirmation8$4 = _theme$confirmation8$3.phone) !== null && _theme$confirmation8$4 !== void 0 && _theme$confirmation8$4.hidden);
|
|
141
|
+
var showDriverMessages = !(theme !== null && theme !== void 0 && (_theme$confirmation9 = theme.confirmation) !== null && _theme$confirmation9 !== void 0 && (_theme$confirmation9$ = _theme$confirmation9.components) !== null && _theme$confirmation9$ !== void 0 && (_theme$confirmation9$2 = _theme$confirmation9$.driver) !== null && _theme$confirmation9$2 !== void 0 && (_theme$confirmation9$3 = _theme$confirmation9$2.components) !== null && _theme$confirmation9$3 !== void 0 && (_theme$confirmation9$4 = _theme$confirmation9$3.messages) !== null && _theme$confirmation9$4 !== void 0 && _theme$confirmation9$4.hidden);
|
|
142
|
+
var showDriverEmail = !(theme !== null && theme !== void 0 && (_theme$confirmation10 = theme.confirmation) !== null && _theme$confirmation10 !== void 0 && (_theme$confirmation11 = _theme$confirmation10.components) !== null && _theme$confirmation11 !== void 0 && (_theme$confirmation12 = _theme$confirmation11.driver) !== null && _theme$confirmation12 !== void 0 && (_theme$confirmation13 = _theme$confirmation12.components) !== null && _theme$confirmation13 !== void 0 && (_theme$confirmation14 = _theme$confirmation13.email) !== null && _theme$confirmation14 !== void 0 && _theme$confirmation14.hidden);
|
|
143
|
+
var showDriverPhoto = !(theme !== null && theme !== void 0 && (_theme$confirmation15 = theme.confirmation) !== null && _theme$confirmation15 !== void 0 && (_theme$confirmation16 = _theme$confirmation15.components) !== null && _theme$confirmation16 !== void 0 && (_theme$confirmation17 = _theme$confirmation16.driver) !== null && _theme$confirmation17 !== void 0 && (_theme$confirmation18 = _theme$confirmation17.components) !== null && _theme$confirmation18 !== void 0 && (_theme$confirmation19 = _theme$confirmation18.photo) !== null && _theme$confirmation19 !== void 0 && _theme$confirmation19.hidden);
|
|
144
|
+
var showCustomerAddress = !(theme !== null && theme !== void 0 && (_theme$confirmation20 = theme.confirmation) !== null && _theme$confirmation20 !== void 0 && (_theme$confirmation21 = _theme$confirmation20.components) !== null && _theme$confirmation21 !== void 0 && (_theme$confirmation22 = _theme$confirmation21.customer) !== null && _theme$confirmation22 !== void 0 && (_theme$confirmation23 = _theme$confirmation22.components) !== null && _theme$confirmation23 !== void 0 && (_theme$confirmation24 = _theme$confirmation23.address) !== null && _theme$confirmation24 !== void 0 && _theme$confirmation24.hidden);
|
|
145
|
+
var showCustomerPhoto = !(theme !== null && theme !== void 0 && (_theme$confirmation25 = theme.confirmation) !== null && _theme$confirmation25 !== void 0 && (_theme$confirmation26 = _theme$confirmation25.components) !== null && _theme$confirmation26 !== void 0 && (_theme$confirmation27 = _theme$confirmation26.customer) !== null && _theme$confirmation27 !== void 0 && (_theme$confirmation28 = _theme$confirmation27.components) !== null && _theme$confirmation28 !== void 0 && (_theme$confirmation29 = _theme$confirmation28.photo) !== null && _theme$confirmation29 !== void 0 && _theme$confirmation29.hidden);
|
|
149
146
|
var getOrderStatus = function getOrderStatus(s) {
|
|
150
147
|
var _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _theme$defaultLanguag11, _theme$defaultLanguag12, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _theme$defaultLanguag16, _theme$defaultLanguag17, _theme$defaultLanguag18, _theme$defaultLanguag19, _theme$defaultLanguag20, _theme$defaultLanguag21, _theme$defaultLanguag22, _theme$defaultLanguag23, _theme$defaultLanguag24;
|
|
151
148
|
var status = parseInt(s);
|
|
@@ -12,6 +12,7 @@ var _VscTrash = _interopRequireDefault(require("@meronex/icons/vsc/VscTrash"));
|
|
|
12
12
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
13
13
|
var _useWindowSize = require("../../hooks/useWindowSize");
|
|
14
14
|
var _styles = require("./styles");
|
|
15
|
+
var _styledComponents = require("styled-components");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -32,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
32
33
|
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; } }
|
|
33
34
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
34
35
|
var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
35
|
-
var
|
|
36
|
+
var _theme$confirmation, _theme$confirmation$c, _theme$confirmation$c2, _theme$confirmation$c3, _theme$confirmation$c4, _theme$confirmation$c5, _theme$confirmation$c6, _props$beforeElements, _props$beforeComponen, _product$valid, _product$total, _props$afterComponent, _props$afterElements;
|
|
36
37
|
var isCartPending = props.isCartPending,
|
|
37
38
|
isCartProduct = props.isCartProduct,
|
|
38
39
|
product = props.product,
|
|
@@ -50,10 +51,8 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
|
50
51
|
var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
|
|
51
52
|
_useUtils2 = _slicedToArray(_useUtils, 1),
|
|
52
53
|
parsePrice = _useUtils2[0].parsePrice;
|
|
54
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
53
55
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
54
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
55
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
56
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
57
56
|
var _useState = (0, _react.useState)(''),
|
|
58
57
|
_useState2 = _slicedToArray(_useState, 2),
|
|
59
58
|
setActive = _useState2[0],
|
|
@@ -70,7 +69,7 @@ var ProductItemAccordion = function ProductItemAccordion(props) {
|
|
|
70
69
|
var productSelect = (0, _react.useRef)(null);
|
|
71
70
|
var productActionsEdit = (0, _react.useRef)(null);
|
|
72
71
|
var productActionsDelete = (0, _react.useRef)(null);
|
|
73
|
-
var showProductImage = !(
|
|
72
|
+
var showProductImage = !(theme !== null && theme !== void 0 && (_theme$confirmation = theme.confirmation) !== null && _theme$confirmation !== void 0 && (_theme$confirmation$c = _theme$confirmation.components) !== null && _theme$confirmation$c !== void 0 && (_theme$confirmation$c2 = _theme$confirmation$c.cart) !== null && _theme$confirmation$c2 !== void 0 && (_theme$confirmation$c3 = _theme$confirmation$c2.components) !== null && _theme$confirmation$c3 !== void 0 && (_theme$confirmation$c4 = _theme$confirmation$c3.products) !== null && _theme$confirmation$c4 !== void 0 && (_theme$confirmation$c5 = _theme$confirmation$c4.components) !== null && _theme$confirmation$c5 !== void 0 && (_theme$confirmation$c6 = _theme$confirmation$c5.image) !== null && _theme$confirmation$c6 !== void 0 && _theme$confirmation$c6.hidden);
|
|
74
73
|
var productInfo = function productInfo() {
|
|
75
74
|
if (isCartProduct) {
|
|
76
75
|
var _product$ingredients, _product$options;
|
|
@@ -17,7 +17,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
17
17
|
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; } }
|
|
18
18
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
19
19
|
var SearchProducts = function SearchProducts(props) {
|
|
20
|
-
var
|
|
20
|
+
var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$business_view$6, _theme$defaultLanguag, _businessState$busine;
|
|
21
21
|
var handleChangeSearch = props.handleChangeSearch,
|
|
22
22
|
searchValue = props.searchValue,
|
|
23
23
|
businessState = props.businessState,
|
|
@@ -28,10 +28,7 @@ var SearchProducts = function SearchProducts(props) {
|
|
|
28
28
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
29
29
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
30
30
|
t = _useLanguage2[1];
|
|
31
|
-
var
|
|
32
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
33
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
34
|
-
var showSort = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.business_view) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.header) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.business) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.sort) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
|
|
31
|
+
var showSort = !(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$2 = _theme$business_view$.header) !== null && _theme$business_view$2 !== void 0 && (_theme$business_view$3 = _theme$business_view$2.components) !== null && _theme$business_view$3 !== void 0 && (_theme$business_view$4 = _theme$business_view$3.business) !== null && _theme$business_view$4 !== void 0 && (_theme$business_view$5 = _theme$business_view$4.components) !== null && _theme$business_view$5 !== void 0 && (_theme$business_view$6 = _theme$business_view$5.sort) !== null && _theme$business_view$6 !== void 0 && _theme$business_view$6.hidden);
|
|
35
32
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
|
|
36
33
|
onSearch: handleChangeSearch,
|
|
37
34
|
search: searchValue,
|
|
@@ -16,6 +16,7 @@ var _Buttons = require("../../styles/Buttons");
|
|
|
16
16
|
var _InputPhoneNumber = require("../InputPhoneNumber");
|
|
17
17
|
var _Confirm = require("../Confirm");
|
|
18
18
|
var _utils = require("../../utils");
|
|
19
|
+
var _styledComponents = require("styled-components");
|
|
19
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
21
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
21
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -31,7 +32,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
31
32
|
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; } }
|
|
32
33
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
33
34
|
var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
34
|
-
var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4,
|
|
35
|
+
var _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _props$beforeElements, _props$beforeComponen, _props$beforeMidEleme, _props$beforeMidCompo, _validationFields$fie11, _props$afterMidElemen, _props$afterMidCompon, _props$afterComponent, _props$afterElements;
|
|
35
36
|
var isEdit = props.isEdit,
|
|
36
37
|
formState = props.formState,
|
|
37
38
|
onCancel = props.onCancel,
|
|
@@ -53,6 +54,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
53
54
|
var _useSession = (0, _orderingComponentsExternal.useSession)(),
|
|
54
55
|
_useSession2 = _slicedToArray(_useSession, 1),
|
|
55
56
|
userSession = _useSession2[0].user;
|
|
57
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
56
58
|
var _useState = (0, _react.useState)(null),
|
|
57
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
58
60
|
isValidPhoneNumber = _useState2[0],
|
|
@@ -71,9 +73,6 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
71
73
|
var _useCustomer = (0, _orderingComponentsExternal.useCustomer)(),
|
|
72
74
|
_useCustomer2 = _slicedToArray(_useCustomer, 2),
|
|
73
75
|
setUserCustomer = _useCustomer2[1].setUserCustomer;
|
|
74
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
75
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
76
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
77
76
|
var emailInput = (0, _react.useRef)(null);
|
|
78
77
|
var user = userData || userSession;
|
|
79
78
|
var closeAlert = function closeAlert() {
|
|
@@ -88,8 +87,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
88
87
|
});
|
|
89
88
|
};
|
|
90
89
|
var showInputPhoneNumber = (_validationFields$fie = validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie2 = validationFields.fields) === null || _validationFields$fie2 === void 0 ? void 0 : (_validationFields$fie3 = _validationFields$fie2.checkout) === null || _validationFields$fie3 === void 0 ? void 0 : (_validationFields$fie4 = _validationFields$fie3.cellphone) === null || _validationFields$fie4 === void 0 ? void 0 : _validationFields$fie4.enabled) !== null && _validationFields$fie !== void 0 ? _validationFields$fie : false;
|
|
91
|
-
var showCustomerCellphone = !(
|
|
92
|
-
var showCustomerPassword = !(
|
|
90
|
+
var showCustomerCellphone = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile$compon = _theme$profile.components) !== null && _theme$profile$compon !== void 0 && (_theme$profile$compon2 = _theme$profile$compon.cellphone) !== null && _theme$profile$compon2 !== void 0 && _theme$profile$compon2.hidden);
|
|
91
|
+
var showCustomerPassword = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2$compo = _theme$profile2.components) !== null && _theme$profile2$compo !== void 0 && (_theme$profile2$compo2 = _theme$profile2$compo.password) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
|
|
93
92
|
var setUserCellPhone = function setUserCellPhone() {
|
|
94
93
|
var isEdit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
95
94
|
if (userPhoneNumber && !userPhoneNumber.includes('null') && !isEdit) {
|
|
@@ -196,8 +195,8 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
196
195
|
}
|
|
197
196
|
};
|
|
198
197
|
var showFieldWithTheme = function showFieldWithTheme(name) {
|
|
199
|
-
var
|
|
200
|
-
return !(
|
|
198
|
+
var _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2;
|
|
199
|
+
return !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3$compo = _theme$profile3.components) !== null && _theme$profile3$compo !== void 0 && (_theme$profile3$compo2 = _theme$profile3$compo[name]) !== null && _theme$profile3$compo2 !== void 0 && _theme$profile3$compo2.hidden);
|
|
201
200
|
};
|
|
202
201
|
(0, _react.useEffect)(function () {
|
|
203
202
|
if (Object.keys(formMethods.errors).length > 0) {
|
|
@@ -12,6 +12,7 @@ var _BsPerson = _interopRequireDefault(require("@meronex/icons/bs/BsPerson"));
|
|
|
12
12
|
var _AiOutlineUnorderedList = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineUnorderedList"));
|
|
13
13
|
var _FaAddressBook = _interopRequireDefault(require("@meronex/icons/fa/FaAddressBook"));
|
|
14
14
|
var _orderingComponentsExternal = require("ordering-components-external");
|
|
15
|
+
var _styledComponents = require("styled-components");
|
|
15
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -22,7 +23,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
22
23
|
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; } }
|
|
23
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
25
|
var ProfileOptions = function ProfileOptions(_ref) {
|
|
25
|
-
var
|
|
26
|
+
var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile$compon3, _theme$profile$compon4;
|
|
26
27
|
var value = _ref.value;
|
|
27
28
|
var _useState = (0, _react.useState)(value),
|
|
28
29
|
_useState2 = _slicedToArray(_useState, 1),
|
|
@@ -33,10 +34,8 @@ var ProfileOptions = function ProfileOptions(_ref) {
|
|
|
33
34
|
var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
|
|
34
35
|
_useEvent2 = _slicedToArray(_useEvent, 1),
|
|
35
36
|
events = _useEvent2[0];
|
|
36
|
-
var
|
|
37
|
-
|
|
38
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
39
|
-
var showAddressListTab = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.profile) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.address_list) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.position) === 'new_page';
|
|
37
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
38
|
+
var showAddressListTab = (theme === null || theme === void 0 ? void 0 : (_theme$profile = theme.profile) === null || _theme$profile === void 0 ? void 0 : (_theme$profile$compon = _theme$profile.components) === null || _theme$profile$compon === void 0 ? void 0 : (_theme$profile$compon2 = _theme$profile$compon.address_list) === null || _theme$profile$compon2 === void 0 ? void 0 : (_theme$profile$compon3 = _theme$profile$compon2.components) === null || _theme$profile$compon3 === void 0 ? void 0 : (_theme$profile$compon4 = _theme$profile$compon3.layout) === null || _theme$profile$compon4 === void 0 ? void 0 : _theme$profile$compon4.position) === 'new_page';
|
|
40
39
|
var handleGoToPage = function handleGoToPage(data) {
|
|
41
40
|
events.emit('go_to_page', data);
|
|
42
41
|
};
|
|
@@ -20,6 +20,7 @@ var _FiCamera = _interopRequireDefault(require("@meronex/icons/fi/FiCamera"));
|
|
|
20
20
|
var _BiImage = _interopRequireDefault(require("@meronex/icons/bi/BiImage"));
|
|
21
21
|
var _styles = require("./styles");
|
|
22
22
|
var _LogoutButton = require("../LogoutButton");
|
|
23
|
+
var _styledComponents = require("styled-components");
|
|
23
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
25
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
@@ -36,7 +37,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
36
37
|
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; } }
|
|
37
38
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
38
39
|
var UserProfileFormUI = function UserProfileFormUI(props) {
|
|
39
|
-
var
|
|
40
|
+
var _theme$profile, _theme$profile$compon, _theme$profile$compon2, _theme$profile2, _theme$profile2$compo, _theme$profile2$compo2, _theme$profile3, _theme$profile3$compo, _theme$profile3$compo2, _theme$profile4, _theme$profile4$compo, _theme$profile4$compo2, _theme$profile5, _theme$profile5$compo, _theme$profile5$compo2, _theme$profile6, _theme$profile6$compo, _theme$profile6$compo2, _theme$profile7, _theme$profile7$compo, _theme$profile7$compo2, _formState$changes2, _props$beforeElements, _props$beforeComponen, _formState$changes3, _formState$changes4, _formState$changes5, _formState$result, _formState$changes6, _formState$changes7, _props$afterComponent, _props$afterElements;
|
|
40
41
|
var userData = props.userData,
|
|
41
42
|
handleButtonUpdateClick = props.handleButtonUpdateClick,
|
|
42
43
|
handlechangeImage = props.handlechangeImage,
|
|
@@ -54,6 +55,7 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
|
|
|
54
55
|
_useState2 = _slicedToArray(_useState, 2),
|
|
55
56
|
edit = _useState2[0],
|
|
56
57
|
setEdit = _useState2[1];
|
|
58
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
57
59
|
var _useState3 = (0, _react.useState)({
|
|
58
60
|
open: false,
|
|
59
61
|
content: []
|
|
@@ -62,17 +64,14 @@ var UserProfileFormUI = function UserProfileFormUI(props) {
|
|
|
62
64
|
alertState = _useState4[0],
|
|
63
65
|
setAlertState = _useState4[1];
|
|
64
66
|
var inputRef = (0, _react.useRef)(null);
|
|
65
|
-
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
66
|
-
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
67
|
-
orderingTheme = _useOrderingTheme2[0];
|
|
68
67
|
var windowSize = (0, _useWindowSize.useWindowSize)();
|
|
69
|
-
var showCustomerPicture = !(
|
|
70
|
-
var showCustomerName = !(
|
|
71
|
-
var showCustomerLastName = !(
|
|
72
|
-
var showCustomerEmail = !(
|
|
73
|
-
var showCustomerCellphone = !(
|
|
74
|
-
var showAddressList = !(
|
|
75
|
-
var userFormLayoutColumn = (
|
|
68
|
+
var showCustomerPicture = !(theme !== null && theme !== void 0 && (_theme$profile = theme.profile) !== null && _theme$profile !== void 0 && (_theme$profile$compon = _theme$profile.components) !== null && _theme$profile$compon !== void 0 && (_theme$profile$compon2 = _theme$profile$compon.picture) !== null && _theme$profile$compon2 !== void 0 && _theme$profile$compon2.hidden);
|
|
69
|
+
var showCustomerName = !(theme !== null && theme !== void 0 && (_theme$profile2 = theme.profile) !== null && _theme$profile2 !== void 0 && (_theme$profile2$compo = _theme$profile2.components) !== null && _theme$profile2$compo !== void 0 && (_theme$profile2$compo2 = _theme$profile2$compo.name) !== null && _theme$profile2$compo2 !== void 0 && _theme$profile2$compo2.hidden);
|
|
70
|
+
var showCustomerLastName = !(theme !== null && theme !== void 0 && (_theme$profile3 = theme.profile) !== null && _theme$profile3 !== void 0 && (_theme$profile3$compo = _theme$profile3.components) !== null && _theme$profile3$compo !== void 0 && (_theme$profile3$compo2 = _theme$profile3$compo.last_name) !== null && _theme$profile3$compo2 !== void 0 && _theme$profile3$compo2.hidden);
|
|
71
|
+
var showCustomerEmail = !(theme !== null && theme !== void 0 && (_theme$profile4 = theme.profile) !== null && _theme$profile4 !== void 0 && (_theme$profile4$compo = _theme$profile4.components) !== null && _theme$profile4$compo !== void 0 && (_theme$profile4$compo2 = _theme$profile4$compo.email) !== null && _theme$profile4$compo2 !== void 0 && _theme$profile4$compo2.hidden);
|
|
72
|
+
var showCustomerCellphone = !(theme !== null && theme !== void 0 && (_theme$profile5 = theme.profile) !== null && _theme$profile5 !== void 0 && (_theme$profile5$compo = _theme$profile5.components) !== null && _theme$profile5$compo !== void 0 && (_theme$profile5$compo2 = _theme$profile5$compo.cellphone) !== null && _theme$profile5$compo2 !== void 0 && _theme$profile5$compo2.hidden);
|
|
73
|
+
var showAddressList = !(theme !== null && theme !== void 0 && (_theme$profile6 = theme.profile) !== null && _theme$profile6 !== void 0 && (_theme$profile6$compo = _theme$profile6.components) !== null && _theme$profile6$compo !== void 0 && (_theme$profile6$compo2 = _theme$profile6$compo.address_list) !== null && _theme$profile6$compo2 !== void 0 && _theme$profile6$compo2.hidden);
|
|
74
|
+
var userFormLayoutColumn = (theme === null || theme === void 0 ? void 0 : (_theme$profile7 = theme.profile) === null || _theme$profile7 === void 0 ? void 0 : (_theme$profile7$compo = _theme$profile7.components) === null || _theme$profile7$compo === void 0 ? void 0 : (_theme$profile7$compo2 = _theme$profile7$compo.layout) === null || _theme$profile7$compo2 === void 0 ? void 0 : _theme$profile7$compo2.position) === 'column';
|
|
76
75
|
var showEditButton = showCustomerName || showCustomerLastName || showCustomerEmail || showCustomerCellphone;
|
|
77
76
|
var handleFiles = function handleFiles(files) {
|
|
78
77
|
if (files.length === 1) {
|