ordering-ui-external 1.0.1 → 1.1.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.f64ae9230411e0edb7d6.js → 0.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{1.ordering-ui.f64ae9230411e0edb7d6.js → 1.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{3.ordering-ui.f64ae9230411e0edb7d6.js → 3.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{4.ordering-ui.f64ae9230411e0edb7d6.js → 4.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{5.ordering-ui.f64ae9230411e0edb7d6.js → 5.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{6.ordering-ui.f64ae9230411e0edb7d6.js → 6.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js → 7.ordering-ui.f3d1068d8ea119f4e4f2.js} +2 -2
- package/_bundles/{7.ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → 7.ordering-ui.f3d1068d8ea119f4e4f2.js.LICENSE.txt} +0 -0
- package/_bundles/{8.ordering-ui.f64ae9230411e0edb7d6.js → 8.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/{9.ordering-ui.f64ae9230411e0edb7d6.js → 9.ordering-ui.f3d1068d8ea119f4e4f2.js} +1 -1
- package/_bundles/ordering-ui.f3d1068d8ea119f4e4f2.js +2 -0
- package/_bundles/{ordering-ui.f64ae9230411e0edb7d6.js.LICENSE.txt → ordering-ui.f3d1068d8ea119f4e4f2.js.LICENSE.txt} +0 -0
- package/_modules/components/BusinessBasicInformation/index.js +17 -7
- package/_modules/components/BusinessProductsList/index.js +9 -9
- package/_modules/components/BusinessProductsList/layouts/groceries/index.js +9 -9
- package/_modules/components/Checkout/index.js +2 -1
- package/_modules/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/components/LoginForm/index.js +4 -1
- package/_modules/components/OrderDetails/index.js +30 -13
- package/_modules/components/PaymentOptionSquare/index.js +6 -4
- package/_modules/components/PaymentOptionSquare/styles.js +13 -6
- package/_modules/components/PaymentOptions/index.js +6 -3
- package/_modules/components/ProductItemAccordion/index.js +7 -2
- package/_modules/components/RenderProductsLayout/SearchProducts/index.js +6 -2
- package/_modules/components/RenderProductsLayout/index.js +24 -34
- package/_modules/components/SignUpForm/index.js +4 -1
- package/_modules/components/SingleProductCard/index.js +2 -2
- package/_modules/components/TaxInformation/index.js +3 -5
- package/_modules/components/UserFormDetails/index.js +23 -7
- package/_modules/components/UserProfileForm/ProfileOptions/index.js +19 -1
- package/_modules/components/UserProfileForm/index.js +28 -6
- package/_modules/components/UserProfileForm/styles.js +1 -1
- package/_modules/hooks/useCountdownTimer.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +1 -1
- package/_modules/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/callcenterOriginal/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/eight/src/components/BusinessProductsList/index.js +9 -9
- package/_modules/themes/eight/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/eight/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/eight/src/components/SingleProductCard/index.js +2 -2
- package/_modules/themes/five/index.js +50 -2
- package/_modules/themes/five/src/components/AddressDetails/index.js +2 -20
- package/_modules/themes/five/src/components/AddressForm/index.js +18 -6
- package/_modules/themes/five/src/components/AddressForm/styles.js +1 -1
- package/_modules/themes/five/src/components/AddressList/index.js +24 -11
- package/_modules/themes/five/src/components/AddressList/styles.js +11 -7
- package/_modules/themes/five/src/components/BusinessInformation/index.js +11 -4
- package/_modules/themes/five/src/components/BusinessItemAccordion/index.js +19 -4
- package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +30 -4
- package/_modules/themes/five/src/components/BusinessListingSearch/index.js +64 -3
- package/_modules/themes/five/src/components/BusinessPreorder/index.js +5 -3
- package/_modules/themes/five/src/components/BusinessPreorder/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +87 -54
- package/_modules/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +2 -1
- package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +13 -10
- package/_modules/themes/five/src/components/BusinessProductsList/styles.js +3 -3
- package/_modules/themes/five/src/components/BusinessReviews/index.js +24 -30
- package/_modules/themes/five/src/components/BusinessesListing/index.js +22 -5
- package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +23 -5
- package/_modules/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +3 -3
- package/_modules/themes/five/src/components/Cart/index.js +28 -9
- package/_modules/themes/five/src/components/Cart/styles.js +4 -4
- package/_modules/themes/five/src/components/CartContent/index.js +11 -24
- package/_modules/themes/five/src/components/CartPopover/index.js +44 -4
- package/_modules/themes/five/src/components/CartPopover/styles.js +13 -3
- package/_modules/themes/five/src/components/Checkout/index.js +81 -30
- package/_modules/themes/five/src/components/Header/index.js +1 -5
- package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +2 -1
- package/_modules/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +4 -6
- package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +5 -5
- package/_modules/themes/five/src/components/LoginForm/styles.js +29 -29
- package/_modules/themes/five/src/components/Modal/index.js +5 -0
- package/_modules/themes/five/src/components/Modal/styles.js +20 -15
- package/_modules/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +4 -4
- package/_modules/themes/five/src/components/NotNetworkConnectivity/index.js +70 -5
- package/_modules/themes/five/src/components/OrderDetails/ActionsSection.js +5 -3
- package/_modules/themes/five/src/components/OrderDetails/OrderBillSection.js +3 -1
- package/_modules/themes/five/src/components/OrderDetails/index.js +121 -39
- package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +8 -4
- package/_modules/themes/five/src/components/OrderDetails/styles.js +26 -18
- package/_modules/themes/five/src/components/OrderProgress/index.js +1 -0
- package/_modules/themes/five/src/components/OrdersOption/index.js +6 -0
- package/_modules/themes/five/src/components/OrdersOption/styles.js +13 -13
- package/_modules/themes/five/src/components/PaymentOptionWallet/index.js +6 -2
- package/_modules/themes/five/src/components/PaymentOptions/index.js +25 -3
- package/_modules/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
- package/_modules/themes/five/src/components/ProductForm/index.js +108 -43
- package/_modules/themes/five/src/components/ProductForm/styles.js +19 -21
- package/_modules/themes/five/src/components/ProductItemAccordion/index.js +11 -3
- package/_modules/themes/five/src/components/ProductOption/index.js +3 -1
- package/_modules/themes/five/src/components/ProductOption/styles.js +1 -1
- package/_modules/themes/five/src/components/ProfessionalProfile/styles.js +1 -1
- package/_modules/themes/five/src/components/ReviewDriver/index.js +330 -0
- package/_modules/themes/five/src/components/ReviewDriver/styles.js +137 -0
- package/_modules/themes/five/src/components/ReviewOrder/index.js +342 -0
- package/_modules/themes/five/src/components/ReviewOrder/styles.js +141 -0
- package/_modules/themes/five/src/components/ReviewProduct/index.js +329 -0
- package/_modules/themes/five/src/components/ReviewProduct/styles.js +111 -0
- package/_modules/themes/five/src/components/ReviewTrigger/index.js +130 -0
- package/_modules/themes/five/src/components/ReviewTrigger/styles.js +84 -0
- package/_modules/themes/five/src/components/SearchBar/index.js +4 -1
- package/_modules/themes/five/src/components/SearchProducts/index.js +1 -0
- package/_modules/themes/five/src/components/ServiceForm/index.js +93 -26
- package/_modules/themes/five/src/components/ServiceForm/styles.js +38 -14
- package/_modules/themes/five/src/components/SignUpBusiness/index.js +4 -1
- package/_modules/themes/five/src/components/SignUpDriver/index.js +4 -1
- package/_modules/themes/five/src/components/SignUpForm/styles.js +12 -12
- package/_modules/themes/five/src/components/SingleOrderCard/index.js +216 -26
- package/_modules/themes/five/src/components/SingleOrderCard/styles.js +7 -3
- package/_modules/themes/five/src/components/TaxInformation/index.js +3 -5
- package/_modules/themes/five/src/components/UserDetails/index.js +132 -9
- package/_modules/themes/five/src/components/UserDetails/styles.js +3 -3
- package/_modules/themes/five/src/components/UserFormDetails/index.js +69 -20
- package/_modules/themes/five/src/components/UserPopover/index.js +13 -7
- package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +19 -1
- package/_modules/themes/five/src/components/UserProfileForm/index.js +119 -23
- package/_modules/themes/five/src/components/VerifyCodeForm/index.js +86 -0
- package/_modules/themes/five/src/components/VerifyCodeForm/styles.js +32 -0
- package/_modules/themes/four/src/components/AccordionDropdown/index.js +46 -0
- package/_modules/themes/four/src/components/AccordionDropdown/styles.js +31 -0
- package/_modules/themes/four/src/components/BusinessBasicInformation/index.js +2 -5
- package/_modules/themes/four/src/components/BusinessProductsCategories/index.js +2 -1
- package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +128 -0
- package/_modules/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +43 -0
- package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +235 -0
- package/_modules/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +52 -0
- package/_modules/themes/four/src/components/BusinessProductsListing/index.js +131 -108
- package/_modules/themes/four/src/components/BusinessProductsListing/styles.js +8 -33
- package/_modules/themes/four/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/four/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/four/src/components/NotFoundSource/index.js +63 -0
- package/_modules/themes/four/src/components/NotFoundSource/styles.js +22 -0
- package/_modules/themes/four/src/components/RenderProductsLayout/index.js +301 -0
- package/_modules/themes/four/src/components/RenderProductsLayout/styles.js +68 -0
- package/_modules/themes/four/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/four/src/components/SingleProductCard/index.js +15 -5
- package/_modules/themes/four/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/franchise/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/franchise/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/franchise/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/franchise/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/orderAndPay/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/pwa/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/pwa/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/pwa/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/pwa/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/seven/index.js +4 -4
- package/_modules/themes/seven/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/seven/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/seven/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/seven/src/components/SignUpForm/styles.js +1 -1
- package/_modules/themes/seven/src/components/UserFormDetails/index.js +4 -1
- package/_modules/themes/six/index.js +3 -3
- package/_modules/themes/six/src/components/AddressForm/index.js +3 -3
- package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +16 -7
- package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +6 -2
- package/_modules/themes/six/src/components/BusinessProductsListing/index.js +21 -27
- package/_modules/themes/six/src/components/DriverTips/index.js +2 -2
- package/_modules/themes/six/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/six/src/components/LoginForm/index.js +7 -4
- package/_modules/themes/six/src/components/PaymentOptionCash/index.js +2 -2
- package/_modules/themes/six/src/components/ProductForm/index.js +2 -2
- package/_modules/themes/six/src/components/SearchBar/index.js +2 -2
- package/_modules/themes/six/src/components/SignUpForm/index.js +8 -5
- package/_modules/themes/six/src/components/UserFormDetails/index.js +8 -5
- package/_modules/themes/three/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/three/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/three/src/components/SignUpForm/index.js +4 -1
- package/_modules/themes/two/src/components/ForgotPasswordForm/index.js +4 -1
- package/_modules/themes/two/src/components/LoginForm/index.js +4 -1
- package/_modules/themes/two/src/components/SignUpForm/index.js +4 -1
- package/package.json +3 -3
- package/src/components/BusinessBasicInformation/index.js +64 -41
- package/src/components/BusinessProductsList/index.js +3 -3
- package/src/components/BusinessProductsList/layouts/groceries/index.js +3 -3
- package/src/components/Checkout/index.js +1 -0
- package/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/components/Header/index.js +1 -1
- package/src/components/LoginForm/index.js +30 -28
- package/src/components/OrderDetails/index.js +101 -58
- package/src/components/PaymentOptionSquare/index.js +4 -8
- package/src/components/PaymentOptionSquare/styles.js +4 -1
- package/src/components/PaymentOptions/index.js +3 -0
- package/src/components/ProductItemAccordion/index.js +5 -3
- package/src/components/RenderProductsLayout/SearchProducts/index.js +3 -2
- package/src/components/RenderProductsLayout/index.js +13 -25
- package/src/components/SignUpForm/index.js +4 -2
- package/src/components/SingleProductCard/index.js +3 -3
- package/src/components/TaxInformation/index.js +1 -1
- package/src/components/UserFormDetails/index.js +35 -26
- package/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
- package/src/components/UserProfileForm/index.js +70 -41
- package/src/components/UserProfileForm/styles.js +3 -1
- package/src/hooks/useCountdownTimer.js +9 -9
- package/src/themes/callcenterOriginal/src/components/BusinessProductsList/layouts/groceries/styles.js +1 -0
- package/src/themes/callcenterOriginal/src/components/BusinessProductsList/styles.js +4 -0
- package/src/themes/callcenterOriginal/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/LoginForm/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/SignUpBusiness/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/SignUpForm/index.js +3 -1
- package/src/themes/callcenterOriginal/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/eight/src/components/BusinessProductsList/index.js +3 -3
- package/src/themes/eight/src/components/LoginForm/index.js +34 -32
- package/src/themes/eight/src/components/SignUpForm/index.js +4 -2
- package/src/themes/eight/src/components/SingleProductCard/index.js +3 -3
- package/src/themes/five/index.js +15 -2
- package/src/themes/five/src/components/AddressDetails/index.js +0 -10
- package/src/themes/five/src/components/AddressForm/index.js +58 -45
- package/src/themes/five/src/components/AddressForm/styles.js +1 -1
- package/src/themes/five/src/components/AddressList/index.js +52 -28
- package/src/themes/five/src/components/AddressList/styles.js +9 -2
- package/src/themes/five/src/components/BusinessInformation/index.js +52 -37
- package/src/themes/five/src/components/BusinessItemAccordion/index.js +36 -3
- package/src/themes/five/src/components/BusinessItemAccordion/styles.js +46 -0
- package/src/themes/five/src/components/BusinessListingSearch/index.js +39 -1
- package/src/themes/five/src/components/BusinessPreorder/index.js +8 -4
- package/src/themes/five/src/components/BusinessPreorder/styles.js +1 -0
- package/src/themes/five/src/components/BusinessProductsCategories/index.js +89 -58
- package/src/themes/five/src/components/BusinessProductsCategories/styles.js +1 -1
- package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +1 -1
- package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/styles.js +7 -1
- package/src/themes/five/src/components/BusinessProductsList/styles.js +8 -3
- package/src/themes/five/src/components/BusinessReviews/index.js +84 -56
- package/src/themes/five/src/components/BusinessesListing/index.js +8 -7
- package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/index.js +9 -3
- package/src/themes/five/src/components/BusinessesListing/layouts/AppointmentsBusinessListing/styles.js +8 -2
- package/src/themes/five/src/components/Cart/index.js +15 -4
- package/src/themes/five/src/components/Cart/styles.js +6 -0
- package/src/themes/five/src/components/CartContent/index.js +10 -23
- package/src/themes/five/src/components/CartPopover/index.js +50 -12
- package/src/themes/five/src/components/CartPopover/styles.js +27 -0
- package/src/themes/five/src/components/Checkout/index.js +38 -3
- package/src/themes/five/src/components/Header/index.js +2 -3
- package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/index.js +1 -1
- package/src/themes/five/src/components/HomeHero/layouts/KioskHomeHero/styles.js +1 -1
- package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +2 -2
- package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +18 -0
- package/src/themes/five/src/components/LoginForm/styles.js +4 -1
- package/src/themes/five/src/components/Modal/index.js +5 -0
- package/src/themes/five/src/components/Modal/styles.js +36 -0
- package/src/themes/five/src/components/MomentControl/Layouts/CustomLayout/styles.js +22 -0
- package/src/themes/five/src/components/NotNetworkConnectivity/index.js +28 -2
- package/src/themes/five/src/components/OrderDetails/ActionsSection.js +14 -10
- package/src/themes/five/src/components/OrderDetails/OrderBillSection.js +1 -1
- package/src/themes/five/src/components/OrderDetails/index.js +102 -61
- package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +6 -5
- package/src/themes/five/src/components/OrderDetails/styles.js +64 -1
- package/src/themes/five/src/components/OrderProgress/index.js +1 -0
- package/src/themes/five/src/components/OrdersOption/index.js +3 -2
- package/src/themes/five/src/components/OrdersOption/styles.js +25 -0
- package/src/themes/five/src/components/PaymentOptionWallet/index.js +41 -41
- package/src/themes/five/src/components/PaymentOptions/index.js +23 -2
- package/src/themes/five/src/components/PhoneAutocomplete/index.js +1 -1
- package/src/themes/five/src/components/ProductForm/index.js +147 -100
- package/src/themes/five/src/components/ProductForm/styles.js +68 -12
- package/src/themes/five/src/components/ProductItemAccordion/index.js +9 -5
- package/src/themes/five/src/components/ProductOption/index.js +1 -1
- package/src/themes/five/src/components/ProductOption/styles.js +5 -1
- package/src/themes/five/src/components/ProfessionalProfile/styles.js +1 -0
- package/src/themes/five/src/components/ReviewDriver/index.js +253 -0
- package/src/themes/five/src/components/ReviewDriver/styles.js +233 -0
- package/src/themes/five/src/components/ReviewOrder/index.js +241 -0
- package/src/themes/five/src/components/ReviewOrder/styles.js +253 -0
- package/src/themes/five/src/components/ReviewProduct/index.js +251 -0
- package/src/themes/five/src/components/ReviewProduct/styles.js +158 -0
- package/src/themes/five/src/components/ReviewTrigger/index.js +86 -0
- package/src/themes/five/src/components/ReviewTrigger/styles.js +121 -0
- package/src/themes/five/src/components/SearchBar/index.js +1 -0
- package/src/themes/five/src/components/SearchProducts/index.js +2 -0
- package/src/themes/five/src/components/ServiceForm/index.js +93 -22
- package/src/themes/five/src/components/ServiceForm/styles.js +43 -2
- package/src/themes/five/src/components/SignUpBusiness/index.js +5 -3
- package/src/themes/five/src/components/SignUpDriver/index.js +5 -3
- package/src/themes/five/src/components/SignUpForm/styles.js +33 -0
- package/src/themes/five/src/components/SingleOrderCard/index.js +118 -22
- package/src/themes/five/src/components/SingleOrderCard/styles.js +5 -0
- package/src/themes/five/src/components/TaxInformation/index.js +1 -1
- package/src/themes/five/src/components/UserDetails/index.js +122 -19
- package/src/themes/five/src/components/UserDetails/styles.js +7 -0
- package/src/themes/five/src/components/UserFormDetails/index.js +108 -63
- package/src/themes/five/src/components/UserPopover/index.js +6 -6
- package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +12 -1
- package/src/themes/five/src/components/UserProfileForm/index.js +130 -38
- package/src/themes/five/src/components/VerifyCodeForm/index.js +64 -0
- package/src/themes/five/src/components/VerifyCodeForm/styles.js +82 -0
- package/src/themes/four/src/components/AccordionDropdown/index.js +47 -0
- package/src/themes/four/src/components/AccordionDropdown/styles.js +25 -0
- package/src/themes/four/src/components/BusinessBasicInformation/index.js +16 -22
- package/src/themes/four/src/components/BusinessProductsCategories/index.js +1 -1
- package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/index.js +125 -0
- package/src/themes/four/src/components/BusinessProductsCategories/layouts/groceries/styles.js +52 -0
- package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/index.js +237 -0
- package/src/themes/four/src/components/BusinessProductsList/layouts/groceries/styles.js +62 -0
- package/src/themes/four/src/components/BusinessProductsListing/index.js +69 -113
- package/src/themes/four/src/components/BusinessProductsListing/styles.js +1 -71
- package/src/themes/four/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/four/src/components/LoginForm/index.js +48 -46
- package/src/themes/four/src/components/NotFoundSource/index.js +66 -0
- package/src/themes/four/src/components/NotFoundSource/styles.js +27 -0
- package/src/themes/four/src/components/RenderProductsLayout/index.js +306 -0
- package/src/themes/four/src/components/RenderProductsLayout/styles.js +177 -0
- package/src/themes/four/src/components/SignUpForm/index.js +4 -2
- package/src/themes/four/src/components/SingleProductCard/index.js +35 -23
- package/src/themes/four/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/franchise/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/franchise/src/components/LoginForm/index.js +32 -30
- package/src/themes/franchise/src/components/SignUpForm/index.js +3 -1
- package/src/themes/franchise/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/orderAndPay/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/orderAndPay/src/components/LoginForm/index.js +33 -31
- package/src/themes/orderAndPay/src/components/SignUpForm/index.js +11 -9
- package/src/themes/orderAndPay/src/components/UserFormDetails/index.js +21 -19
- package/src/themes/pwa/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/pwa/src/components/LoginForm/index.js +32 -30
- package/src/themes/pwa/src/components/SignUpForm/index.js +3 -1
- package/src/themes/pwa/src/components/UserFormDetails/index.js +3 -1
- package/src/themes/seven/index.js +4 -4
- package/src/themes/seven/src/components/CouponControl/index.js +0 -1
- package/src/themes/seven/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/seven/src/components/LoginForm/index.js +5 -3
- package/src/themes/seven/src/components/OrderDetails/index.js +1 -1
- package/src/themes/seven/src/components/SignUpForm/index.js +3 -1
- package/src/themes/seven/src/components/SignUpForm/styles.js +1 -0
- package/src/themes/seven/src/components/UserFormDetails/index.js +3 -1
- package/src/themes/six/index.js +3 -3
- package/src/themes/six/src/components/AddressForm/index.js +1 -1
- package/src/themes/six/src/components/BusinessBasicInformation/index.js +57 -34
- package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -2
- package/src/themes/six/src/components/BusinessProductsListing/index.js +7 -13
- package/src/themes/six/src/components/DriverTips/index.js +1 -1
- package/src/themes/six/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/six/src/components/LoginForm/index.js +33 -31
- package/src/themes/six/src/components/PaymentOptionCash/index.js +1 -1
- package/src/themes/six/src/components/ProductForm/index.js +1 -1
- package/src/themes/six/src/components/SearchBar/index.js +1 -1
- package/src/themes/six/src/components/SignUpForm/index.js +4 -2
- package/src/themes/six/src/components/UserFormDetails/index.js +22 -20
- package/src/themes/three/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/three/src/components/LoginForm/index.js +52 -50
- package/src/themes/three/src/components/SignUpForm/index.js +10 -8
- package/src/themes/two/src/components/ForgotPasswordForm/index.js +3 -1
- package/src/themes/two/src/components/LoginForm/index.js +42 -40
- package/src/themes/two/src/components/SignUpForm/index.js +10 -8
- package/template/components/ListenPageChanges/index.js +1 -1
- package/template/pages/Checkout/index.js +0 -1
- package/template/pages/Home/styles.js +0 -14
- package/_bundles/ordering-ui.f64ae9230411e0edb7d6.js +0 -2
- package/_modules/themes/five/src/components/FavoriteBusinesses/index.js +0 -268
- package/_modules/themes/five/src/components/FavoriteBusinesses/styles.js +0 -53
- package/_modules/themes/five/src/components/FavoriteOrders/index.js +0 -353
- package/_modules/themes/five/src/components/FavoriteOrders/styles.js +0 -53
- package/_modules/themes/five/src/components/FavoriteProducts/index.js +0 -190
- package/_modules/themes/five/src/components/FavoriteProducts/styles.js +0 -53
- package/src/themes/five/src/components/FavoriteBusinesses/index.js +0 -217
- package/src/themes/five/src/components/FavoriteBusinesses/styles.js +0 -85
- package/src/themes/five/src/components/FavoriteOrders/index.js +0 -225
- package/src/themes/five/src/components/FavoriteOrders/styles.js +0 -87
- package/src/themes/five/src/components/FavoriteProducts/index.js +0 -165
- package/src/themes/five/src/components/FavoriteProducts/styles.js +0 -87
|
@@ -1,353 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.FavoriteOrders = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _orderingComponentsExternal = require("ordering-components-external");
|
|
13
|
-
|
|
14
|
-
var _NotFoundSource = require("../NotFoundSource");
|
|
15
|
-
|
|
16
|
-
var _Buttons = require("../../styles/Buttons");
|
|
17
|
-
|
|
18
|
-
var _MdKeyboardArrowLeft = _interopRequireDefault(require("@meronex/icons/md/MdKeyboardArrowLeft"));
|
|
19
|
-
|
|
20
|
-
var _MdKeyboardArrowRight = _interopRequireDefault(require("@meronex/icons/md/MdKeyboardArrowRight"));
|
|
21
|
-
|
|
22
|
-
var _styledComponents = require("styled-components");
|
|
23
|
-
|
|
24
|
-
var _styles = require("./styles");
|
|
25
|
-
|
|
26
|
-
var _react2 = require("swiper/react");
|
|
27
|
-
|
|
28
|
-
var _swiper = _interopRequireWildcard(require("swiper"));
|
|
29
|
-
|
|
30
|
-
require("swiper/swiper-bundle.min.css");
|
|
31
|
-
|
|
32
|
-
require("swiper/swiper.min.css");
|
|
33
|
-
|
|
34
|
-
var _SingleOrderCard = require("../SingleOrderCard");
|
|
35
|
-
|
|
36
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
|
-
|
|
38
|
-
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); }
|
|
39
|
-
|
|
40
|
-
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; }
|
|
41
|
-
|
|
42
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
43
|
-
|
|
44
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
45
|
-
|
|
46
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
47
|
-
|
|
48
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
49
|
-
|
|
50
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
51
|
-
|
|
52
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
53
|
-
|
|
54
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
55
|
-
|
|
56
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
57
|
-
|
|
58
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
59
|
-
|
|
60
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
61
|
-
|
|
62
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
63
|
-
|
|
64
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
65
|
-
|
|
66
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
67
|
-
|
|
68
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
69
|
-
|
|
70
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
71
|
-
|
|
72
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
73
|
-
|
|
74
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
75
|
-
|
|
76
|
-
_swiper.default.use([_swiper.Navigation]);
|
|
77
|
-
|
|
78
|
-
var FavoriteOrdersUI = function FavoriteOrdersUI(props) {
|
|
79
|
-
var _props$beforeElements, _props$beforeComponen, _favoriteList$favorit, _favoriteList$favorit2, _favoriteList$favorit3, _props$afterComponent, _props$afterElements;
|
|
80
|
-
|
|
81
|
-
var handleUpdateFavoriteList = props.handleUpdateFavoriteList,
|
|
82
|
-
favoriteList = props.favoriteList,
|
|
83
|
-
pagination = props.pagination,
|
|
84
|
-
getFavoriteList = props.getFavoriteList;
|
|
85
|
-
|
|
86
|
-
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
87
|
-
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
88
|
-
t = _useLanguage2[1];
|
|
89
|
-
|
|
90
|
-
var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
|
|
91
|
-
_useEvent2 = _slicedToArray(_useEvent, 1),
|
|
92
|
-
events = _useEvent2[0];
|
|
93
|
-
|
|
94
|
-
var theme = (0, _styledComponents.useTheme)();
|
|
95
|
-
|
|
96
|
-
var _useState = (0, _react.useState)(false),
|
|
97
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
98
|
-
reorderLoading = _useState2[0],
|
|
99
|
-
setReorderLoading = _useState2[1];
|
|
100
|
-
|
|
101
|
-
var pastOrders = [1, 2, 5, 6, 10, 11, 12, 15, 16, 17];
|
|
102
|
-
|
|
103
|
-
var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
|
|
104
|
-
_useOrder2 = _slicedToArray(_useOrder, 2),
|
|
105
|
-
reorder = _useOrder2[1].reorder;
|
|
106
|
-
|
|
107
|
-
var handleGoToOrderList = function handleGoToOrderList() {
|
|
108
|
-
events.emit('go_to_page', {
|
|
109
|
-
page: 'orders'
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
var getOrderStatus = function getOrderStatus(s) {
|
|
114
|
-
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;
|
|
115
|
-
|
|
116
|
-
var status = parseInt(s);
|
|
117
|
-
var orderStatus = [{
|
|
118
|
-
key: 0,
|
|
119
|
-
value: t('PENDING', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.PENDING) || 'Pending')
|
|
120
|
-
}, {
|
|
121
|
-
key: 1,
|
|
122
|
-
value: t('COMPLETED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.COMPLETED) || 'Completed')
|
|
123
|
-
}, {
|
|
124
|
-
key: 2,
|
|
125
|
-
value: t('REJECTED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.REJECTED) || 'Rejected')
|
|
126
|
-
}, {
|
|
127
|
-
key: 3,
|
|
128
|
-
value: t('DRIVER_IN_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.DRIVER_IN_BUSINESS) || 'Driver in business')
|
|
129
|
-
}, {
|
|
130
|
-
key: 4,
|
|
131
|
-
value: t('PREPARATION_COMPLETED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.PREPARATION_COMPLETED) || 'Preparation Completed')
|
|
132
|
-
}, {
|
|
133
|
-
key: 5,
|
|
134
|
-
value: t('REJECTED_BY_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.REJECTED_BY_BUSINESS) || 'Rejected by business')
|
|
135
|
-
}, {
|
|
136
|
-
key: 6,
|
|
137
|
-
value: t('REJECTED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.REJECTED_BY_DRIVER) || 'Rejected by Driver')
|
|
138
|
-
}, {
|
|
139
|
-
key: 7,
|
|
140
|
-
value: t('ACCEPTED_BY_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.ACCEPTED_BY_BUSINESS) || 'Accepted by business')
|
|
141
|
-
}, {
|
|
142
|
-
key: 8,
|
|
143
|
-
value: t('ACCEPTED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.ACCEPTED_BY_DRIVER) || 'Accepted by driver')
|
|
144
|
-
}, {
|
|
145
|
-
key: 9,
|
|
146
|
-
value: t('PICK_UP_COMPLETED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag10 = theme.defaultLanguages) === null || _theme$defaultLanguag10 === void 0 ? void 0 : _theme$defaultLanguag10.PICK_UP_COMPLETED_BY_DRIVER) || 'Pick up completed by driver')
|
|
147
|
-
}, {
|
|
148
|
-
key: 10,
|
|
149
|
-
value: t('PICK_UP_FAILED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag11 = theme.defaultLanguages) === null || _theme$defaultLanguag11 === void 0 ? void 0 : _theme$defaultLanguag11.PICK_UP_FAILED_BY_DRIVER) || 'Pick up Failed by driver')
|
|
150
|
-
}, {
|
|
151
|
-
key: 11,
|
|
152
|
-
value: t('DELIVERY_COMPLETED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag12 = theme.defaultLanguages) === null || _theme$defaultLanguag12 === void 0 ? void 0 : _theme$defaultLanguag12.DELIVERY_COMPLETED_BY_DRIVER) || 'Delivery completed by driver')
|
|
153
|
-
}, {
|
|
154
|
-
key: 12,
|
|
155
|
-
value: t('DELIVERY_FAILED_BY_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag13 = theme.defaultLanguages) === null || _theme$defaultLanguag13 === void 0 ? void 0 : _theme$defaultLanguag13.DELIVERY_FAILED_BY_DRIVER) || 'Delivery Failed by driver')
|
|
156
|
-
}, {
|
|
157
|
-
key: 13,
|
|
158
|
-
value: t('PREORDER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag14 = theme.defaultLanguages) === null || _theme$defaultLanguag14 === void 0 ? void 0 : _theme$defaultLanguag14.PREORDER) || 'PreOrder')
|
|
159
|
-
}, {
|
|
160
|
-
key: 14,
|
|
161
|
-
value: t('ORDER_NOT_READY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag15 = theme.defaultLanguages) === null || _theme$defaultLanguag15 === void 0 ? void 0 : _theme$defaultLanguag15.ORDER_NOT_READY) || 'Order not ready')
|
|
162
|
-
}, {
|
|
163
|
-
key: 15,
|
|
164
|
-
value: t('ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag16 = theme.defaultLanguages) === null || _theme$defaultLanguag16 === void 0 ? void 0 : _theme$defaultLanguag16.ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER) || 'Order picked up completed by customer')
|
|
165
|
-
}, {
|
|
166
|
-
key: 16,
|
|
167
|
-
value: t('ORDER_STATUS_CANCELLED_BY_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag17 = theme.defaultLanguages) === null || _theme$defaultLanguag17 === void 0 ? void 0 : _theme$defaultLanguag17.ORDER_STATUS_CANCELLED_BY_CUSTOMER) || 'Order cancelled by customer')
|
|
168
|
-
}, {
|
|
169
|
-
key: 17,
|
|
170
|
-
value: t('ORDER_NOT_PICKEDUP_BY_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag18 = theme.defaultLanguages) === null || _theme$defaultLanguag18 === void 0 ? void 0 : _theme$defaultLanguag18.ORDER_NOT_PICKEDUP_BY_CUSTOMER) || 'Order not picked up by customer')
|
|
171
|
-
}, {
|
|
172
|
-
key: 18,
|
|
173
|
-
value: t('ORDER_DRIVER_ALMOST_ARRIVED_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag19 = theme.defaultLanguages) === null || _theme$defaultLanguag19 === void 0 ? void 0 : _theme$defaultLanguag19.ORDER_DRIVER_ALMOST_ARRIVED_BUSINESS) || 'Driver almost arrived to business')
|
|
174
|
-
}, {
|
|
175
|
-
key: 19,
|
|
176
|
-
value: t('ORDER_DRIVER_ALMOST_ARRIVED_CUSTOMER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag20 = theme.defaultLanguages) === null || _theme$defaultLanguag20 === void 0 ? void 0 : _theme$defaultLanguag20.ORDER_DRIVER_ALMOST_ARRIVED_CUSTOMER) || 'Driver almost arrived to customer')
|
|
177
|
-
}, {
|
|
178
|
-
key: 20,
|
|
179
|
-
value: t('ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag21 = theme.defaultLanguages) === null || _theme$defaultLanguag21 === void 0 ? void 0 : _theme$defaultLanguag21.ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS) || 'Customer almost arrived to business')
|
|
180
|
-
}, {
|
|
181
|
-
key: 21,
|
|
182
|
-
value: t('ORDER_CUSTOMER_ARRIVED_BUSINESS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag22 = theme.defaultLanguages) === null || _theme$defaultLanguag22 === void 0 ? void 0 : _theme$defaultLanguag22.ORDER_CUSTOMER_ARRIVED_BUSINESS) || 'Customer arrived to business')
|
|
183
|
-
}, {
|
|
184
|
-
key: 22,
|
|
185
|
-
value: t('ORDER_LOOKING_FOR_DRIVER', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag23 = theme.defaultLanguages) === null || _theme$defaultLanguag23 === void 0 ? void 0 : _theme$defaultLanguag23.ORDER_LOOKING_FOR_DRIVER) || 'Looking for driver')
|
|
186
|
-
}, {
|
|
187
|
-
key: 23,
|
|
188
|
-
value: t('ORDER_DRIVER_ON_WAY', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag24 = theme.defaultLanguages) === null || _theme$defaultLanguag24 === void 0 ? void 0 : _theme$defaultLanguag24.ORDER_DRIVER_ON_WAY) || 'Driver on way')
|
|
189
|
-
}];
|
|
190
|
-
var objectStatus = orderStatus.find(function (o) {
|
|
191
|
-
return o.key === status;
|
|
192
|
-
});
|
|
193
|
-
return objectStatus && objectStatus;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
var onRedirectPage = function onRedirectPage(data) {
|
|
197
|
-
events.emit('go_to_page', data);
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
var handleReorder = /*#__PURE__*/function () {
|
|
201
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderId) {
|
|
202
|
-
var _yield$reorder, error, result;
|
|
203
|
-
|
|
204
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
205
|
-
while (1) {
|
|
206
|
-
switch (_context.prev = _context.next) {
|
|
207
|
-
case 0:
|
|
208
|
-
setReorderLoading(true);
|
|
209
|
-
_context.prev = 1;
|
|
210
|
-
_context.next = 4;
|
|
211
|
-
return reorder(orderId);
|
|
212
|
-
|
|
213
|
-
case 4:
|
|
214
|
-
_yield$reorder = _context.sent;
|
|
215
|
-
error = _yield$reorder.error;
|
|
216
|
-
result = _yield$reorder.result;
|
|
217
|
-
|
|
218
|
-
if (error) {
|
|
219
|
-
_context.next = 10;
|
|
220
|
-
break;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
onRedirectPage && onRedirectPage({
|
|
224
|
-
page: 'checkout',
|
|
225
|
-
params: {
|
|
226
|
-
cartUuid: result.uuid
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
return _context.abrupt("return");
|
|
230
|
-
|
|
231
|
-
case 10:
|
|
232
|
-
setReorderLoading(false);
|
|
233
|
-
_context.next = 16;
|
|
234
|
-
break;
|
|
235
|
-
|
|
236
|
-
case 13:
|
|
237
|
-
_context.prev = 13;
|
|
238
|
-
_context.t0 = _context["catch"](1);
|
|
239
|
-
setReorderLoading(false);
|
|
240
|
-
|
|
241
|
-
case 16:
|
|
242
|
-
case "end":
|
|
243
|
-
return _context.stop();
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}, _callee, null, [[1, 13]]);
|
|
247
|
-
}));
|
|
248
|
-
|
|
249
|
-
return function handleReorder(_x) {
|
|
250
|
-
return _ref.apply(this, arguments);
|
|
251
|
-
};
|
|
252
|
-
}();
|
|
253
|
-
|
|
254
|
-
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) {
|
|
255
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
256
|
-
key: i
|
|
257
|
-
}, BeforeElement);
|
|
258
|
-
}), (_props$beforeComponen = props.beforeComponents) === null || _props$beforeComponen === void 0 ? void 0 : _props$beforeComponen.map(function (BeforeComponent, i) {
|
|
259
|
-
return /*#__PURE__*/_react.default.createElement(BeforeComponent, _extends({
|
|
260
|
-
key: i
|
|
261
|
-
}, props));
|
|
262
|
-
}), /*#__PURE__*/_react.default.createElement(_styles.Container, null, !(favoriteList !== null && favoriteList !== void 0 && favoriteList.loading) && (favoriteList === null || favoriteList === void 0 ? void 0 : (_favoriteList$favorit = favoriteList.favorites) === null || _favoriteList$favorit === void 0 ? void 0 : _favoriteList$favorit.length) === 0 && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
263
|
-
outline: true,
|
|
264
|
-
color: "primary",
|
|
265
|
-
onClick: function onClick() {
|
|
266
|
-
return handleGoToOrderList();
|
|
267
|
-
},
|
|
268
|
-
style: {
|
|
269
|
-
height: '44px'
|
|
270
|
-
}
|
|
271
|
-
}, t('ADD_FAVORITE', 'Add favorite'))), /*#__PURE__*/_react.default.createElement(_styles.BusinessListWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.ArrowButtonWrapper, {
|
|
272
|
-
className: "swiper-button-prev",
|
|
273
|
-
isLoading: favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.loading
|
|
274
|
-
}, /*#__PURE__*/_react.default.createElement(_MdKeyboardArrowLeft.default, null)), /*#__PURE__*/_react.default.createElement(_react2.Swiper, {
|
|
275
|
-
spaceBetween: 0,
|
|
276
|
-
breakpoints: {
|
|
277
|
-
0: {
|
|
278
|
-
slidesPerView: 1,
|
|
279
|
-
spaceBetween: 0
|
|
280
|
-
},
|
|
281
|
-
1200: {
|
|
282
|
-
slidesPerView: 2,
|
|
283
|
-
spaceBetween: 20
|
|
284
|
-
},
|
|
285
|
-
1700: {
|
|
286
|
-
slidesPerView: 3,
|
|
287
|
-
spaceBetween: 30
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
freeMode: true,
|
|
291
|
-
watchSlidesProgress: true,
|
|
292
|
-
className: "swiper-businesses",
|
|
293
|
-
preventClicksPropagation: false,
|
|
294
|
-
navigation: {
|
|
295
|
-
nextEl: '.swiper-button-next',
|
|
296
|
-
prevEl: '.swiper-button-prev'
|
|
297
|
-
}
|
|
298
|
-
}, !(favoriteList !== null && favoriteList !== void 0 && favoriteList.loading) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, favoriteList === null || favoriteList === void 0 ? void 0 : (_favoriteList$favorit2 = favoriteList.favorites) === null || _favoriteList$favorit2 === void 0 ? void 0 : _favoriteList$favorit2.map(function (order, i) {
|
|
299
|
-
return /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, {
|
|
300
|
-
key: i
|
|
301
|
-
}, /*#__PURE__*/_react.default.createElement(_SingleOrderCard.SingleOrderCard, {
|
|
302
|
-
order: order,
|
|
303
|
-
onRedirectPage: onRedirectPage,
|
|
304
|
-
getOrderStatus: getOrderStatus,
|
|
305
|
-
pastOrders: pastOrders.includes(order === null || order === void 0 ? void 0 : order.status),
|
|
306
|
-
handleReorder: handleReorder,
|
|
307
|
-
handleUpdateOrderList: handleUpdateFavoriteList
|
|
308
|
-
}));
|
|
309
|
-
}), (pagination === null || pagination === void 0 ? void 0 : pagination.totalPages) && (pagination === null || pagination === void 0 ? void 0 : pagination.currentPage) < (pagination === null || pagination === void 0 ? void 0 : pagination.totalPages) && /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, null, /*#__PURE__*/_react.default.createElement(_styles.LoadMoreCard, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
310
|
-
color: "primary",
|
|
311
|
-
outline: true,
|
|
312
|
-
onClick: function onClick() {
|
|
313
|
-
return getFavoriteList((pagination === null || pagination === void 0 ? void 0 : pagination.currentPage) + 1);
|
|
314
|
-
}
|
|
315
|
-
}, t('LOAD_MORE_ORDERS', 'Load more orders'))))), (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.loading) && _toConsumableArray(Array(5).keys()).map(function (i) {
|
|
316
|
-
return /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, {
|
|
317
|
-
key: i
|
|
318
|
-
}, /*#__PURE__*/_react.default.createElement(_SingleOrderCard.SingleOrderCard, {
|
|
319
|
-
isSkeleton: true,
|
|
320
|
-
order: {},
|
|
321
|
-
onRedirectPage: onRedirectPage,
|
|
322
|
-
getOrderStatus: getOrderStatus,
|
|
323
|
-
handleReorder: handleReorder
|
|
324
|
-
}));
|
|
325
|
-
})), /*#__PURE__*/_react.default.createElement(_styles.ArrowButtonWrapper, {
|
|
326
|
-
className: "swiper-button-next",
|
|
327
|
-
isLoading: favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.loading
|
|
328
|
-
}, /*#__PURE__*/_react.default.createElement(_MdKeyboardArrowRight.default, null))), (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.error) && (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.error.length) > 0 && (favoriteList === null || favoriteList === void 0 ? void 0 : (_favoriteList$favorit3 = favoriteList.favorites) === null || _favoriteList$favorit3 === void 0 ? void 0 : _favoriteList$favorit3.length) === 0 && (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.error.map(function (e, i) {
|
|
329
|
-
return /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, {
|
|
330
|
-
key: i
|
|
331
|
-
}, t('ERROR', 'ERROR'), ": [", (e === null || e === void 0 ? void 0 : e.message) || e, "]");
|
|
332
|
-
}))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
|
333
|
-
return /*#__PURE__*/_react.default.createElement(AfterComponent, _extends({
|
|
334
|
-
key: i
|
|
335
|
-
}, props));
|
|
336
|
-
}), (_props$afterElements = props.afterElements) === null || _props$afterElements === void 0 ? void 0 : _props$afterElements.map(function (AfterElement, i) {
|
|
337
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
338
|
-
key: i
|
|
339
|
-
}, AfterElement);
|
|
340
|
-
}));
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
var FavoriteOrders = function FavoriteOrders(props) {
|
|
344
|
-
var favoriteOrdersProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
345
|
-
UIComponent: FavoriteOrdersUI,
|
|
346
|
-
favoriteURL: 'favorite_orders',
|
|
347
|
-
originalURL: 'orders'
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.FavoriteList, favoriteOrdersProps);
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
exports.FavoriteOrders = FavoriteOrders;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.LoadMoreCard = exports.ErrorMessage = exports.Container = exports.BusinessListWrapper = exports.ArrowButtonWrapper = void 0;
|
|
9
|
-
|
|
10
|
-
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
-
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
13
|
-
|
|
14
|
-
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); }
|
|
15
|
-
|
|
16
|
-
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; }
|
|
17
|
-
|
|
18
|
-
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
19
|
-
|
|
20
|
-
var Container = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: 100%;\n margin-top: 35px;\n"])));
|
|
21
|
-
|
|
22
|
-
exports.Container = Container;
|
|
23
|
-
|
|
24
|
-
var ErrorMessage = _styledComponents.default.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: 20px;\n width: 100%;\n margin: 0px 15px;\n color: ", ";\n font-weight: bold;\n"])), function (props) {
|
|
25
|
-
return props.theme.colors.danger500;
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
exports.ErrorMessage = ErrorMessage;
|
|
29
|
-
|
|
30
|
-
var BusinessListWrapper = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 100%;\n position: relative;\n\n .swiper-businesses {\n padding: 5px 0px;\n .swiper-slide {\n height: auto;\n > div {\n width: 100% !important;\n margin: 0px !important;\n height: 100%;\n min-width: 100%;\n }\n }\n }\n"])));
|
|
31
|
-
|
|
32
|
-
exports.BusinessListWrapper = BusinessListWrapper;
|
|
33
|
-
|
|
34
|
-
var ArrowButtonWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n position: absolute;\n transition: all 0.3s ease-out;\n\n &::after {\n display: none;\n }\n > svg {\n background: ", ";\n display: inline-block;\n border-radius: 50%;\n width: 25px;\n min-width: 25px;\n height: 25px;\n align-self: center;\n color: ", ";\n opacity: 0.8;\n }\n &.swiper-button-next {\n right: 10px;\n ", "\n }\n &.swiper-button-prev {\n left: 10px;\n ", "\n }\n &.swiper-button-disabled {\n display: none;\n }\n &:hover {\n transform: scale(1.07);\n }\n ", "\n"])), function (props) {
|
|
35
|
-
var _props$theme$colors;
|
|
36
|
-
|
|
37
|
-
return (_props$theme$colors = props.theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.gray200;
|
|
38
|
-
}, function (props) {
|
|
39
|
-
return props.theme.colors.secundaryContrast;
|
|
40
|
-
}, function (props) {
|
|
41
|
-
return props.theme.rtl && (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n left: 10px;\n right: initial;\n "])));
|
|
42
|
-
}, function (props) {
|
|
43
|
-
return props.theme.rtl && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n right: 10px;\n left: initial;\n "])));
|
|
44
|
-
}, function (_ref) {
|
|
45
|
-
var isLoading = _ref.isLoading;
|
|
46
|
-
return isLoading && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n svg {\n display: none;\n }\n "])));
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
exports.ArrowButtonWrapper = ArrowButtonWrapper;
|
|
50
|
-
|
|
51
|
-
var LoadMoreCard = _styledComponents.default.div(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n button {\n height: 44px;\n }\n"])));
|
|
52
|
-
|
|
53
|
-
exports.LoadMoreCard = LoadMoreCard;
|
|
@@ -1,190 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.FavoriteProducts = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
var _orderingComponentsExternal = require("ordering-components-external");
|
|
13
|
-
|
|
14
|
-
var _SingleProductCard = require("../SingleProductCard");
|
|
15
|
-
|
|
16
|
-
var _NotFoundSource = require("../NotFoundSource");
|
|
17
|
-
|
|
18
|
-
var _Buttons = require("../../styles/Buttons");
|
|
19
|
-
|
|
20
|
-
var _MdKeyboardArrowLeft = _interopRequireDefault(require("@meronex/icons/md/MdKeyboardArrowLeft"));
|
|
21
|
-
|
|
22
|
-
var _MdKeyboardArrowRight = _interopRequireDefault(require("@meronex/icons/md/MdKeyboardArrowRight"));
|
|
23
|
-
|
|
24
|
-
var _styles = require("./styles");
|
|
25
|
-
|
|
26
|
-
var _react2 = require("swiper/react");
|
|
27
|
-
|
|
28
|
-
var _swiper = _interopRequireWildcard(require("swiper"));
|
|
29
|
-
|
|
30
|
-
require("swiper/swiper-bundle.min.css");
|
|
31
|
-
|
|
32
|
-
require("swiper/swiper.min.css");
|
|
33
|
-
|
|
34
|
-
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); }
|
|
35
|
-
|
|
36
|
-
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; }
|
|
37
|
-
|
|
38
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
-
|
|
40
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
41
|
-
|
|
42
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
43
|
-
|
|
44
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
|
-
|
|
46
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
47
|
-
|
|
48
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
49
|
-
|
|
50
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
51
|
-
|
|
52
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
53
|
-
|
|
54
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
55
|
-
|
|
56
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
57
|
-
|
|
58
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
59
|
-
|
|
60
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
61
|
-
|
|
62
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
63
|
-
|
|
64
|
-
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
65
|
-
|
|
66
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
67
|
-
|
|
68
|
-
_swiper.default.use([_swiper.Navigation]);
|
|
69
|
-
|
|
70
|
-
var FavoriteProductsUI = function FavoriteProductsUI(props) {
|
|
71
|
-
var _props$beforeElements, _props$beforeComponen, _favoriteList$favorit, _favoriteList$favorit2, _favoriteList$favorit3, _props$afterComponent, _props$afterElements;
|
|
72
|
-
|
|
73
|
-
var handleUpdateFavoriteList = props.handleUpdateFavoriteList,
|
|
74
|
-
favoriteList = props.favoriteList,
|
|
75
|
-
pagination = props.pagination,
|
|
76
|
-
getFavoriteList = props.getFavoriteList;
|
|
77
|
-
|
|
78
|
-
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
79
|
-
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
80
|
-
t = _useLanguage2[1];
|
|
81
|
-
|
|
82
|
-
var _useEvent = (0, _orderingComponentsExternal.useEvent)(),
|
|
83
|
-
_useEvent2 = _slicedToArray(_useEvent, 1),
|
|
84
|
-
events = _useEvent2[0];
|
|
85
|
-
|
|
86
|
-
var handleGoToBusinessList = function handleGoToBusinessList() {
|
|
87
|
-
events.emit('go_to_page', {
|
|
88
|
-
page: 'search'
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
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) {
|
|
93
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
94
|
-
key: i
|
|
95
|
-
}, BeforeElement);
|
|
96
|
-
}), (_props$beforeComponen = props.beforeComponents) === null || _props$beforeComponen === void 0 ? void 0 : _props$beforeComponen.map(function (BeforeComponent, i) {
|
|
97
|
-
return /*#__PURE__*/_react.default.createElement(BeforeComponent, _extends({
|
|
98
|
-
key: i
|
|
99
|
-
}, props));
|
|
100
|
-
}), /*#__PURE__*/_react.default.createElement(_styles.Container, null, !(favoriteList !== null && favoriteList !== void 0 && favoriteList.loading) && (favoriteList === null || favoriteList === void 0 ? void 0 : (_favoriteList$favorit = favoriteList.favorites) === null || _favoriteList$favorit === void 0 ? void 0 : _favoriteList$favorit.length) === 0 && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
101
|
-
outline: true,
|
|
102
|
-
color: "primary",
|
|
103
|
-
onClick: function onClick() {
|
|
104
|
-
return handleGoToBusinessList();
|
|
105
|
-
},
|
|
106
|
-
style: {
|
|
107
|
-
height: '44px'
|
|
108
|
-
}
|
|
109
|
-
}, t('ADD_FAVORITE', 'Add favorite'))), /*#__PURE__*/_react.default.createElement(_styles.BusinessListWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.ArrowButtonWrapper, {
|
|
110
|
-
className: "swiper-button-prev",
|
|
111
|
-
isLoading: favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.loading
|
|
112
|
-
}, /*#__PURE__*/_react.default.createElement(_MdKeyboardArrowLeft.default, null)), /*#__PURE__*/_react.default.createElement(_react2.Swiper, {
|
|
113
|
-
breakpoints: {
|
|
114
|
-
0: {
|
|
115
|
-
slidesPerView: 1,
|
|
116
|
-
spaceBetween: 0
|
|
117
|
-
},
|
|
118
|
-
400: {
|
|
119
|
-
slidesPerView: 1,
|
|
120
|
-
spaceBetween: 0
|
|
121
|
-
},
|
|
122
|
-
550: {
|
|
123
|
-
slidesPerView: 2,
|
|
124
|
-
spaceBetween: 40
|
|
125
|
-
},
|
|
126
|
-
769: {
|
|
127
|
-
slidesPerView: 3,
|
|
128
|
-
spaceBetween: 50
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
freeMode: true,
|
|
132
|
-
watchSlidesProgress: true,
|
|
133
|
-
className: "swiper-businesses",
|
|
134
|
-
preventClicksPropagation: false,
|
|
135
|
-
navigation: {
|
|
136
|
-
nextEl: '.swiper-button-next',
|
|
137
|
-
prevEl: '.swiper-button-prev'
|
|
138
|
-
}
|
|
139
|
-
}, !(favoriteList !== null && favoriteList !== void 0 && favoriteList.loading) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, favoriteList === null || favoriteList === void 0 ? void 0 : (_favoriteList$favorit2 = favoriteList.favorites) === null || _favoriteList$favorit2 === void 0 ? void 0 : _favoriteList$favorit2.map(function (product, i) {
|
|
140
|
-
return /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, {
|
|
141
|
-
key: i
|
|
142
|
-
}, /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
|
|
143
|
-
key: i,
|
|
144
|
-
isSoldOut: product.inventoried && !product.quantity,
|
|
145
|
-
product: product,
|
|
146
|
-
onProductClick: function onProductClick() {},
|
|
147
|
-
handleUpdateProducts: handleUpdateFavoriteList
|
|
148
|
-
}));
|
|
149
|
-
}), (pagination === null || pagination === void 0 ? void 0 : pagination.totalPages) && (pagination === null || pagination === void 0 ? void 0 : pagination.currentPage) < (pagination === null || pagination === void 0 ? void 0 : pagination.totalPages) && /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, null, /*#__PURE__*/_react.default.createElement(_styles.ProductCard, null, /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
|
|
150
|
-
color: "primary",
|
|
151
|
-
outline: true,
|
|
152
|
-
onClick: function onClick() {
|
|
153
|
-
return getFavoriteList((pagination === null || pagination === void 0 ? void 0 : pagination.currentPage) + 1);
|
|
154
|
-
}
|
|
155
|
-
}, t('LOAD_MORE_PRODUCTS', 'Load more products'))))), (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.loading) && _toConsumableArray(Array(5).keys()).map(function (i) {
|
|
156
|
-
return /*#__PURE__*/_react.default.createElement(_react2.SwiperSlide, {
|
|
157
|
-
key: i
|
|
158
|
-
}, /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
|
|
159
|
-
key: "skeleton:".concat(i),
|
|
160
|
-
isSkeleton: true
|
|
161
|
-
}));
|
|
162
|
-
})), /*#__PURE__*/_react.default.createElement(_styles.ArrowButtonWrapper, {
|
|
163
|
-
className: "swiper-button-next",
|
|
164
|
-
isLoading: favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.loading
|
|
165
|
-
}, /*#__PURE__*/_react.default.createElement(_MdKeyboardArrowRight.default, null))), (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.error) && (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.error.length) > 0 && (favoriteList === null || favoriteList === void 0 ? void 0 : (_favoriteList$favorit3 = favoriteList.favorites) === null || _favoriteList$favorit3 === void 0 ? void 0 : _favoriteList$favorit3.length) === 0 && (favoriteList === null || favoriteList === void 0 ? void 0 : favoriteList.error.map(function (e, i) {
|
|
166
|
-
return /*#__PURE__*/_react.default.createElement(_styles.ErrorMessage, {
|
|
167
|
-
key: i
|
|
168
|
-
}, t('ERROR', 'ERROR'), ": [", (e === null || e === void 0 ? void 0 : e.message) || e, "]");
|
|
169
|
-
}))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
|
170
|
-
return /*#__PURE__*/_react.default.createElement(AfterComponent, _extends({
|
|
171
|
-
key: i
|
|
172
|
-
}, props));
|
|
173
|
-
}), (_props$afterElements = props.afterElements) === null || _props$afterElements === void 0 ? void 0 : _props$afterElements.map(function (AfterElement, i) {
|
|
174
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
175
|
-
key: i
|
|
176
|
-
}, AfterElement);
|
|
177
|
-
}));
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
var FavoriteProducts = function FavoriteProducts(props) {
|
|
181
|
-
var favoriteProductsProps = _objectSpread(_objectSpread({}, props), {}, {
|
|
182
|
-
UIComponent: FavoriteProductsUI,
|
|
183
|
-
favoriteURL: 'favorite_products',
|
|
184
|
-
originalURL: 'products'
|
|
185
|
-
});
|
|
186
|
-
|
|
187
|
-
return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.FavoriteList, favoriteProductsProps);
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
exports.FavoriteProducts = FavoriteProducts;
|