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
|
@@ -30,14 +30,6 @@ const AddressDetailsUI = (props) => {
|
|
|
30
30
|
const userCustomer = JSON.parse(window.localStorage.getItem('user-customer'))
|
|
31
31
|
const [{ user }] = useCustomer()
|
|
32
32
|
|
|
33
|
-
const handleFindBusinesses = () => {
|
|
34
|
-
if (!orderState?.options?.address?.location) {
|
|
35
|
-
setAlertState({ open: true, content: [t('SELECT_AN_ADDRESS_TO_SEARCH', 'Select or add an address to search')] })
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
setOpenModal(false)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
33
|
useEffect(() => {
|
|
42
34
|
return () => setOpenModal(false)
|
|
43
35
|
}, [])
|
|
@@ -67,7 +59,6 @@ const AddressDetailsUI = (props) => {
|
|
|
67
59
|
)}
|
|
68
60
|
|
|
69
61
|
<Modal
|
|
70
|
-
title={t('ADDRESSES', 'Addresses')}
|
|
71
62
|
open={openModal}
|
|
72
63
|
width='70%'
|
|
73
64
|
onClose={() => setOpenModal(false)}
|
|
@@ -77,7 +68,6 @@ const AddressDetailsUI = (props) => {
|
|
|
77
68
|
changeOrderAddressWithDefault
|
|
78
69
|
userId={isNaN(userCustomer?.id) ? null : userCustomer?.id}
|
|
79
70
|
onCancel={() => setOpenModal(false)}
|
|
80
|
-
onAccept={() => handleFindBusinesses()}
|
|
81
71
|
userCustomerSetup={isCustomerMode && user}
|
|
82
72
|
isFromCheckout={isFromCheckout}
|
|
83
73
|
isCustomerMode={isCustomerMode}
|
|
@@ -16,7 +16,8 @@ import {
|
|
|
16
16
|
GoogleMapsMap,
|
|
17
17
|
useSession,
|
|
18
18
|
useOrder,
|
|
19
|
-
useConfig
|
|
19
|
+
useConfig,
|
|
20
|
+
useOrderingTheme
|
|
20
21
|
} from 'ordering-components-external'
|
|
21
22
|
import { Alert } from '../Confirm'
|
|
22
23
|
import { GoogleGpsButton } from '../../../../../components/GoogleGpsButton'
|
|
@@ -62,7 +63,7 @@ const AddressFormUI = (props) => {
|
|
|
62
63
|
const [, t] = useLanguage()
|
|
63
64
|
const formMethods = useForm()
|
|
64
65
|
const [{ auth }] = useSession()
|
|
65
|
-
|
|
66
|
+
const [orderingTheme] = useOrderingTheme()
|
|
66
67
|
const [state, setState] = useState({ selectedFromAutocomplete: true })
|
|
67
68
|
const [addressTag, setAddressTag] = useState(addressState?.address?.tag)
|
|
68
69
|
const [alertState, setAlertState] = useState({ open: false, content: [] })
|
|
@@ -76,10 +77,13 @@ const AddressFormUI = (props) => {
|
|
|
76
77
|
: formState.changes?.location ?? null
|
|
77
78
|
)
|
|
78
79
|
|
|
80
|
+
const isHideMap = orderingTheme?.theme?.header?.components?.address_form?.components?.map?.hidden
|
|
81
|
+
const isHideIcons = orderingTheme?.theme?.header?.components?.address_form?.components?.icons?.hidden
|
|
82
|
+
|
|
79
83
|
const maxLimitLocation = configState?.configs?.meters_to_change_address?.value
|
|
80
84
|
const googleMapsApiKey = configState?.configs?.google_maps_api_key?.value
|
|
81
85
|
const isLocationRequired = configState.configs?.google_autocomplete_selection_required?.value === '1' ||
|
|
82
|
-
|
|
86
|
+
configState.configs?.google_autocomplete_selection_required?.value === 'true'
|
|
83
87
|
|
|
84
88
|
const mapErrors = {
|
|
85
89
|
ERROR_NOT_FOUND_ADDRESS: 'Sorry, we couldn\'t find an address',
|
|
@@ -247,6 +251,10 @@ const AddressFormUI = (props) => {
|
|
|
247
251
|
})
|
|
248
252
|
}
|
|
249
253
|
|
|
254
|
+
const showFieldWithTheme = (name) => {
|
|
255
|
+
return !orderingTheme?.theme?.header?.components?.address_form?.components?.[name]?.hidden
|
|
256
|
+
}
|
|
257
|
+
|
|
250
258
|
useEffect(() => {
|
|
251
259
|
if (!auth) {
|
|
252
260
|
setLocationChange(formState?.changes?.location ?? orderState?.options?.address?.location ?? '')
|
|
@@ -255,8 +263,8 @@ const AddressFormUI = (props) => {
|
|
|
255
263
|
formMethods.setValue(
|
|
256
264
|
field.name,
|
|
257
265
|
formState?.changes[field.name] ||
|
|
258
|
-
|
|
259
|
-
|
|
266
|
+
(orderState?.options?.address && orderState?.options?.address[field.name]) ||
|
|
267
|
+
''
|
|
260
268
|
)
|
|
261
269
|
)
|
|
262
270
|
return
|
|
@@ -406,7 +414,7 @@ const AddressFormUI = (props) => {
|
|
|
406
414
|
/>
|
|
407
415
|
</AddressWrap>
|
|
408
416
|
|
|
409
|
-
{locationChange && (addressState?.address?.location || formState?.changes?.location) && (
|
|
417
|
+
{!isHideMap && locationChange && (addressState?.address?.location || formState?.changes?.location) && (
|
|
410
418
|
<WrapperMap>
|
|
411
419
|
<GoogleMapsMap
|
|
412
420
|
apiKey={googleMapsApiKey}
|
|
@@ -422,51 +430,56 @@ const AddressFormUI = (props) => {
|
|
|
422
430
|
</React.Fragment>
|
|
423
431
|
) : (
|
|
424
432
|
<React.Fragment key={field.name}>
|
|
425
|
-
{field.name
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
433
|
+
{(isRequiredField(field.name) || showFieldWithTheme(field.name)) && (
|
|
434
|
+
<>
|
|
435
|
+
{field.name !== 'address_notes' ? (
|
|
436
|
+
<Input
|
|
437
|
+
className={field.name}
|
|
438
|
+
placeholder={t(field.name.toUpperCase(), field.code)}
|
|
439
|
+
value={formState.changes?.[field.name] ?? addressState.address?.[field.name] ?? ''}
|
|
440
|
+
onChange={(e) => {
|
|
441
|
+
formMethods.setValue(field.name, e.target.value)
|
|
442
|
+
handleChangeInput({ target: { name: field.name, value: e.target.value } })
|
|
443
|
+
}}
|
|
444
|
+
autoComplete='new-field'
|
|
445
|
+
maxLength={30}
|
|
446
|
+
/>
|
|
447
|
+
) : (
|
|
448
|
+
<TextArea
|
|
449
|
+
rows={3}
|
|
450
|
+
placeholder={t('ADDRESS_NOTES', 'Address Notes')}
|
|
451
|
+
value={formState.changes?.address_notes ?? addressState.address.address_notes ?? ''}
|
|
452
|
+
onChange={(e) => {
|
|
453
|
+
formMethods.setValue('address_notes', e.target.value)
|
|
454
|
+
handleChangeInput({ target: { name: 'address_notes', value: e.target.value } })
|
|
455
|
+
}}
|
|
456
|
+
autoComplete='new-field'
|
|
457
|
+
maxLength={250}
|
|
458
|
+
/>
|
|
459
|
+
)}
|
|
460
|
+
</>
|
|
449
461
|
)}
|
|
450
462
|
</React.Fragment>
|
|
451
463
|
)
|
|
452
464
|
))}
|
|
453
465
|
|
|
454
466
|
{!formState.loading && formState.error && <p style={{ color: '#c10000' }}>{formState.error}</p>}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
467
|
+
{!isHideIcons && (
|
|
468
|
+
<AddressTagSection>
|
|
469
|
+
<Button className={addressTag === 'home' ? 'active' : ''} bgtransparent type='button' onClick={() => handleAddressTag('home')}>
|
|
470
|
+
<span><House /></span>
|
|
471
|
+
</Button>
|
|
472
|
+
<Button className={addressTag === 'office' ? 'active' : ''} bgtransparent type='button' onClick={() => handleAddressTag('office')}>
|
|
473
|
+
<span><Building /></span>
|
|
474
|
+
</Button>
|
|
475
|
+
<Button className={addressTag === 'favorite' ? 'active' : ''} bgtransparent type='button' onClick={() => handleAddressTag('favorite')}>
|
|
476
|
+
<span><Heart /></span>
|
|
477
|
+
</Button>
|
|
478
|
+
<Button className={addressTag === 'other' ? 'active' : ''} bgtransparent type='button' onClick={() => handleAddressTag('other')}>
|
|
479
|
+
<span><PlusLg /></span>
|
|
480
|
+
</Button>
|
|
481
|
+
</AddressTagSection>
|
|
482
|
+
)}
|
|
470
483
|
{
|
|
471
484
|
props.afterMidElements?.map((MidElement, i) => (
|
|
472
485
|
<React.Fragment key={i}>
|
|
@@ -3,6 +3,7 @@ import Skeleton from 'react-loading-skeleton'
|
|
|
3
3
|
import IosRadioButtonOff from '@meronex/icons/ios/IosRadioButtonOff'
|
|
4
4
|
import RiRadioButtonFill from '@meronex/icons/ri/RiRadioButtonFill'
|
|
5
5
|
import MdClose from '@meronex/icons/md/MdClose'
|
|
6
|
+
import { useWindowSize } from '../../../../../hooks/useWindowSize'
|
|
6
7
|
|
|
7
8
|
import {
|
|
8
9
|
Heart,
|
|
@@ -18,7 +19,8 @@ import {
|
|
|
18
19
|
useLanguage,
|
|
19
20
|
useOrder,
|
|
20
21
|
useCustomer,
|
|
21
|
-
useEvent
|
|
22
|
+
useEvent,
|
|
23
|
+
useOrderingTheme
|
|
22
24
|
} from 'ordering-components-external'
|
|
23
25
|
|
|
24
26
|
import {
|
|
@@ -33,7 +35,8 @@ import {
|
|
|
33
35
|
List,
|
|
34
36
|
AddressFormContainer,
|
|
35
37
|
TitleFormContainer,
|
|
36
|
-
CloseIcon
|
|
38
|
+
CloseIcon,
|
|
39
|
+
TitleAddress
|
|
37
40
|
} from './styles'
|
|
38
41
|
|
|
39
42
|
import { NotFoundSource } from '../NotFoundSource'
|
|
@@ -61,7 +64,6 @@ const AddressListUI = (props) => {
|
|
|
61
64
|
isCustomerMode,
|
|
62
65
|
isFromCheckout,
|
|
63
66
|
setIsAddressFormOpen,
|
|
64
|
-
isHeader,
|
|
65
67
|
isProfile
|
|
66
68
|
} = props
|
|
67
69
|
|
|
@@ -72,8 +74,10 @@ const AddressListUI = (props) => {
|
|
|
72
74
|
const [addressOpen, setAddressOpen] = useState(false)
|
|
73
75
|
const [confirm, setConfirm] = useState({ open: false, content: null, handleOnAccept: null })
|
|
74
76
|
const theme = useTheme()
|
|
77
|
+
const [orderingTheme] = useOrderingTheme()
|
|
75
78
|
const [{ user }] = useCustomer()
|
|
76
|
-
|
|
79
|
+
const { width } = useWindowSize()
|
|
80
|
+
const isCompletedLayout = width < 769 || isProfile
|
|
77
81
|
const uniqueAddressesList = (addressList.addresses && addressList.addresses.filter(
|
|
78
82
|
(address, i, self) =>
|
|
79
83
|
i === self.findIndex(obj => (
|
|
@@ -83,6 +87,11 @@ const AddressListUI = (props) => {
|
|
|
83
87
|
address.internal_number === obj.internal_number
|
|
84
88
|
)))) || []
|
|
85
89
|
|
|
90
|
+
const showAddress = !orderingTheme?.theme?.profile?.components?.address_list?.components?.address?.hidden
|
|
91
|
+
const showIcons = !orderingTheme?.theme?.profile?.components?.address_list?.components?.icons?.hidden
|
|
92
|
+
const showZipcode = !orderingTheme?.theme?.profile?.components?.address_list?.components?.zipcode?.hidden
|
|
93
|
+
const showInternalNumber = !orderingTheme?.theme?.profile?.components?.address_list?.components?.internal_number?.hidden
|
|
94
|
+
|
|
86
95
|
const openAddress = (address) => {
|
|
87
96
|
setCurAddress(address)
|
|
88
97
|
setAddressOpen(true)
|
|
@@ -214,16 +223,23 @@ const AddressListUI = (props) => {
|
|
|
214
223
|
<>
|
|
215
224
|
{
|
|
216
225
|
(!isPopover || !addressOpen) && (
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
<>
|
|
227
|
+
{!isCompletedLayout && (
|
|
228
|
+
<TitleAddress>
|
|
229
|
+
{t('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')}
|
|
230
|
+
</TitleAddress>
|
|
231
|
+
)}
|
|
232
|
+
<Button
|
|
233
|
+
className='add'
|
|
234
|
+
outline
|
|
235
|
+
color={isEnableContinueButton && addressList?.addresses?.length > 0 ? 'secondary' : 'primary'}
|
|
236
|
+
onClick={() => openAddress({})}
|
|
237
|
+
disabled={orderState?.loading || actionStatus.loading}
|
|
238
|
+
style={isCompletedLayout ? { flex: 1, width: 'fit-content' } : {}}
|
|
239
|
+
>
|
|
240
|
+
{(orderState?.loading || actionStatus.loading) ? t('LOADING', 'Loading') : t('ADD_NEW_ADDRESS', 'Add New Address')}
|
|
241
|
+
</Button>
|
|
242
|
+
</>
|
|
227
243
|
)
|
|
228
244
|
}
|
|
229
245
|
{
|
|
@@ -256,16 +272,24 @@ const AddressListUI = (props) => {
|
|
|
256
272
|
<span className='radio'>
|
|
257
273
|
{checkAddress(address) ? <RiRadioButtonFill className='address-checked' /> : <IosRadioButtonOff />}
|
|
258
274
|
</span>
|
|
259
|
-
|
|
260
|
-
{address
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
275
|
+
{showIcons && (
|
|
276
|
+
<span className={checkAddress(address) ? 'selected-tag tag' : 'tag'}>
|
|
277
|
+
{address?.tag === 'home' && <House />}
|
|
278
|
+
{address?.tag === 'office' && <Building />}
|
|
279
|
+
{address?.tag === 'favorite' && <Heart />}
|
|
280
|
+
{address?.tag === 'other' && <PlusLg />}
|
|
281
|
+
</span>
|
|
282
|
+
)}
|
|
283
|
+
{(showAddress || showInternalNumber || showZipcode) && (
|
|
284
|
+
<div className='address'>
|
|
285
|
+
{
|
|
286
|
+
showAddress && (
|
|
287
|
+
<span>{address.address}</span>
|
|
288
|
+
)
|
|
289
|
+
}
|
|
290
|
+
<span>{showInternalNumber && address.internal_number} {showZipcode && address.zipcode}</span>
|
|
291
|
+
</div>
|
|
292
|
+
)}
|
|
269
293
|
</div>
|
|
270
294
|
<AddressItemActions className='form'>
|
|
271
295
|
<a className={actionStatus.loading ? 'disabled' : ''} onClick={() => openAddress(address)}>
|
|
@@ -330,8 +354,8 @@ const AddressListUI = (props) => {
|
|
|
330
354
|
</React.Fragment>))}
|
|
331
355
|
{props.beforeComponents?.map((BeforeComponent, i) => (
|
|
332
356
|
<BeforeComponent key={i} {...props} />))}
|
|
333
|
-
<AddressListContainer id='address_control' isLoading={actionStatus?.loading || orderState?.loading}
|
|
334
|
-
{
|
|
357
|
+
<AddressListContainer id='address_control' isLoading={actionStatus?.loading || orderState?.loading} isCompletedLayout={isCompletedLayout}>
|
|
358
|
+
{!isCompletedLayout ? (
|
|
335
359
|
<AddressListCallcenterLayout>
|
|
336
360
|
<AddressListContent />
|
|
337
361
|
</AddressListCallcenterLayout>
|
|
@@ -339,10 +363,10 @@ const AddressListUI = (props) => {
|
|
|
339
363
|
<AddressListContent />
|
|
340
364
|
)}
|
|
341
365
|
{
|
|
342
|
-
!isPopover && (
|
|
366
|
+
!isPopover && addressOpen && (
|
|
343
367
|
<Modal
|
|
344
368
|
title={t('WHAT_IS_YOUR_ADDRESS', 'What\'s your address?')}
|
|
345
|
-
open={!isPopover && addressOpen &&
|
|
369
|
+
open={!isPopover && addressOpen && isCompletedLayout}
|
|
346
370
|
onClose={() => handleCloseAddressForm()}
|
|
347
371
|
>
|
|
348
372
|
<AddressForm
|
|
@@ -5,7 +5,7 @@ export const AddressListContainer = styled.div`
|
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
7
|
padding: 0px 10px;
|
|
8
|
-
${({
|
|
8
|
+
${({ isProfile }) => !isProfile && css`
|
|
9
9
|
width: 100%;
|
|
10
10
|
`}
|
|
11
11
|
|
|
@@ -15,7 +15,7 @@ export const AddressListContainer = styled.div`
|
|
|
15
15
|
|
|
16
16
|
button.add {
|
|
17
17
|
height: 50px;
|
|
18
|
-
${({
|
|
18
|
+
${({ isProfile }) => !isProfile && css`
|
|
19
19
|
min-width: 100px;
|
|
20
20
|
`}
|
|
21
21
|
}
|
|
@@ -258,3 +258,10 @@ export const TitleFormContainer = styled.div`
|
|
|
258
258
|
font-size: 24px;
|
|
259
259
|
}
|
|
260
260
|
`
|
|
261
|
+
|
|
262
|
+
export const TitleAddress = styled.h1`
|
|
263
|
+
text-align: center;
|
|
264
|
+
margin: auto;
|
|
265
|
+
font-size: 24px;
|
|
266
|
+
margin-bottom: 20px;
|
|
267
|
+
`
|
|
@@ -4,7 +4,8 @@ import {
|
|
|
4
4
|
BusinessInformation as BusinessInformationController,
|
|
5
5
|
GoogleMapsMap,
|
|
6
6
|
useLanguage,
|
|
7
|
-
useConfig
|
|
7
|
+
useConfig,
|
|
8
|
+
useOrderingTheme
|
|
8
9
|
} from 'ordering-components-external'
|
|
9
10
|
import { Modal } from '../Modal'
|
|
10
11
|
import {
|
|
@@ -50,6 +51,10 @@ export const BusinessInformationUI = (props) => {
|
|
|
50
51
|
]
|
|
51
52
|
const [modalImage, setModalImage] = useState(false)
|
|
52
53
|
const [image, setImage] = useState('')
|
|
54
|
+
const [orderingTheme] = useOrderingTheme()
|
|
55
|
+
|
|
56
|
+
const showLocation = !orderingTheme?.theme?.business_view?.components?.information?.components?.location?.hidden
|
|
57
|
+
const showSchedule = !orderingTheme?.theme?.business_view?.components?.information?.components?.schedule?.hidden
|
|
53
58
|
|
|
54
59
|
const scheduleFormatted = ({ hour, minute }) => {
|
|
55
60
|
const checkTime = (val) => val < 10 ? `0${val}` : val
|
|
@@ -87,46 +92,56 @@ export const BusinessInformationUI = (props) => {
|
|
|
87
92
|
<Description>{business.description}</Description>
|
|
88
93
|
</>
|
|
89
94
|
)}
|
|
90
|
-
{businessLocation.location && (
|
|
91
|
-
<>
|
|
92
|
-
<SectionTitle>{t('BUSINESS_LOCATION', 'Business location')}</SectionTitle>
|
|
93
|
-
{businessLocation.location && (
|
|
94
|
-
<Map>
|
|
95
|
-
<GoogleMapsMap
|
|
96
|
-
apiKey={configs?.google_maps_api_key?.value}
|
|
97
|
-
location={businessLocation.location}
|
|
98
|
-
mapControls={businessLocation.googleMapsControls || business.googleMapsControls}
|
|
99
|
-
/>
|
|
100
|
-
</Map>
|
|
101
|
-
)}
|
|
102
|
-
</>
|
|
103
|
-
)}
|
|
104
95
|
{
|
|
105
|
-
|
|
96
|
+
showLocation && (
|
|
97
|
+
<>
|
|
98
|
+
{businessLocation.location && (
|
|
99
|
+
<>
|
|
100
|
+
<SectionTitle>{t('BUSINESS_LOCATION', 'Business location')}</SectionTitle>
|
|
101
|
+
{businessLocation.location && (
|
|
102
|
+
<Map>
|
|
103
|
+
<GoogleMapsMap
|
|
104
|
+
apiKey={configs?.google_maps_api_key?.value}
|
|
105
|
+
location={businessLocation.location}
|
|
106
|
+
mapControls={businessLocation.googleMapsControls || business.googleMapsControls}
|
|
107
|
+
/>
|
|
108
|
+
</Map>
|
|
109
|
+
)}
|
|
110
|
+
</>
|
|
111
|
+
)}
|
|
112
|
+
{
|
|
113
|
+
business?.address && <BusinessAddress>{business?.address}</BusinessAddress>
|
|
114
|
+
}
|
|
115
|
+
<Divider />
|
|
116
|
+
</>
|
|
117
|
+
)
|
|
106
118
|
}
|
|
107
|
-
<Divider />
|
|
108
119
|
{businessSchedule?.length > 0 && (
|
|
109
120
|
<>
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
<
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
121
|
+
{showSchedule && (
|
|
122
|
+
<>
|
|
123
|
+
<SectionTitle>{t('OPENING_TIME', 'Opening time')}</SectionTitle>
|
|
124
|
+
<ScheduleSection>
|
|
125
|
+
<ScheduleContainer>
|
|
126
|
+
{businessSchedule.map((schedule, i) => (
|
|
127
|
+
<ScheduleBlock key={i}>
|
|
128
|
+
<h4>{daysOfWeek[i]}</h4>
|
|
129
|
+
{schedule.enabled ? (
|
|
130
|
+
<div>
|
|
131
|
+
<p>{scheduleFormatted(schedule.lapses[0].open)}</p>
|
|
132
|
+
<div>-</div>
|
|
133
|
+
<p>{scheduleFormatted(schedule.lapses[0].close)}</p>
|
|
134
|
+
</div>
|
|
135
|
+
) : (
|
|
136
|
+
<p className='close'>{t('CLOSED', 'Closed')}</p>
|
|
137
|
+
)}
|
|
138
|
+
</ScheduleBlock>
|
|
139
|
+
))}
|
|
140
|
+
</ScheduleContainer>
|
|
141
|
+
</ScheduleSection>
|
|
142
|
+
<Divider />
|
|
143
|
+
</>
|
|
144
|
+
)}
|
|
130
145
|
<DeliveryInfo>
|
|
131
146
|
<div>
|
|
132
147
|
<h5>{t('DELIVERY_TIME', 'Delivery Time')}: {convertHoursToMinutes(business?.delivery_time)}</h5>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from 'react'
|
|
2
2
|
import TiArrowSortedUp from '@meronex/icons/ti/TiArrowSortedUp'
|
|
3
|
-
import { useOrder, useLanguage, useEvent, useUtils, useConfig } from 'ordering-components-external'
|
|
3
|
+
import { useOrder, useLanguage, useEvent, useUtils, useConfig, useOrderingTheme } from 'ordering-components-external'
|
|
4
4
|
import { useTheme } from 'styled-components'
|
|
5
5
|
import FiClock from '@meronex/icons/fi/FiClock'
|
|
6
6
|
import {
|
|
@@ -11,9 +11,13 @@ import {
|
|
|
11
11
|
BusinessInfo,
|
|
12
12
|
BusinessTotal,
|
|
13
13
|
BusinessActions,
|
|
14
|
-
PriceContainer
|
|
14
|
+
PriceContainer,
|
|
15
|
+
WrapperBusinessLogo,
|
|
16
|
+
BusinessLogo,
|
|
17
|
+
TimeContainer
|
|
15
18
|
} from './styles'
|
|
16
19
|
import { Button } from '../../styles/Buttons'
|
|
20
|
+
import { convertHoursToMinutes } from '../../../../../utils'
|
|
17
21
|
|
|
18
22
|
export const BusinessItemAccordion = (props) => {
|
|
19
23
|
const {
|
|
@@ -45,6 +49,7 @@ export const BusinessItemAccordion = (props) => {
|
|
|
45
49
|
const [{ parsePrice }] = useUtils()
|
|
46
50
|
const [{ configs }] = useConfig()
|
|
47
51
|
const theme = useTheme()
|
|
52
|
+
const [orderingTheme] = useOrderingTheme()
|
|
48
53
|
const [setActive, setActiveState] = useState('')
|
|
49
54
|
const [setHeight, setHeightState] = useState('0px')
|
|
50
55
|
const [setRotate, setRotateState] = useState('accordion__icon')
|
|
@@ -56,6 +61,10 @@ export const BusinessItemAccordion = (props) => {
|
|
|
56
61
|
const businessDelete = useRef(null)
|
|
57
62
|
const changeStore = useRef(null)
|
|
58
63
|
|
|
64
|
+
const viewString = isStore ? 'business_view' : 'header'
|
|
65
|
+
const showBusinessLogo = !orderingTheme?.theme?.[viewString]?.components?.cart?.components?.business?.components?.logo?.hidden
|
|
66
|
+
const showBusinessTime = !orderingTheme?.theme?.[viewString]?.components?.cart?.components?.business?.components?.time?.hidden
|
|
67
|
+
|
|
59
68
|
const toggleAccordion = (e) => {
|
|
60
69
|
const isActionsClick = businessStore.current?.contains(e?.target) || businessDelete.current?.contains(e?.target) || changeStore.current?.contains(e?.target)
|
|
61
70
|
if (isClosed || !isProducts || isActionsClick) return
|
|
@@ -81,6 +90,10 @@ export const BusinessItemAccordion = (props) => {
|
|
|
81
90
|
setCartProductUpdated(cart?.uuid)
|
|
82
91
|
}
|
|
83
92
|
|
|
93
|
+
const handleOpenBusinessMenu = (business) => {
|
|
94
|
+
setPreorderBusiness && setPreorderBusiness(business)
|
|
95
|
+
}
|
|
96
|
+
|
|
84
97
|
useEffect(() => {
|
|
85
98
|
if (cartProductUpdated === uuid || (currentCartUuid === uuid && (!cartProductUpdated || cartProductUpdated === uuid))) {
|
|
86
99
|
activeAccordion(true)
|
|
@@ -132,13 +145,33 @@ export const BusinessItemAccordion = (props) => {
|
|
|
132
145
|
onClick={(e) => toggleAccordion(e)}
|
|
133
146
|
>
|
|
134
147
|
<BusinessInfo>
|
|
148
|
+
{!showBusinessLogo && (
|
|
149
|
+
<WrapperBusinessLogo>
|
|
150
|
+
<BusinessLogo bgimage={business?.logo || theme.images?.dummies?.businessLogo} />
|
|
151
|
+
</WrapperBusinessLogo>
|
|
152
|
+
)}
|
|
135
153
|
<ContentInfo className='info' isStore={isStore}>
|
|
136
154
|
<h2>{business?.name}</h2>
|
|
155
|
+
{!showBusinessTime && (
|
|
156
|
+
<TimeContainer>
|
|
157
|
+
{orderState?.options?.type === 1 ? (
|
|
158
|
+
<span>
|
|
159
|
+
<FiClock />
|
|
160
|
+
{convertHoursToMinutes(business?.delivery_time)}
|
|
161
|
+
</span>
|
|
162
|
+
) : (
|
|
163
|
+
<span>
|
|
164
|
+
<FiClock />
|
|
165
|
+
{convertHoursToMinutes(business?.pickup_time)}
|
|
166
|
+
</span>
|
|
167
|
+
)}
|
|
168
|
+
</TimeContainer>
|
|
169
|
+
)}
|
|
137
170
|
<div>
|
|
138
171
|
{handleStoreRedirect && !isCartOnProductsList && !isStore && (
|
|
139
172
|
<span
|
|
140
173
|
ref={businessStore}
|
|
141
|
-
onClick={() => handleStoreRedirect(business?.slug)}
|
|
174
|
+
onClick={() => isClosed ? handleOpenBusinessMenu(business) : handleStoreRedirect(business?.slug)}
|
|
142
175
|
className='go-store'
|
|
143
176
|
>
|
|
144
177
|
{t('GO_TO_STORE', 'Go to store')}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react'
|
|
1
2
|
import styled, { css } from 'styled-components'
|
|
2
3
|
|
|
3
4
|
export const AccordionSection = styled.div`
|
|
@@ -96,6 +97,10 @@ export const ContentInfo = styled.div`
|
|
|
96
97
|
margin-left: 0;
|
|
97
98
|
`}
|
|
98
99
|
|
|
100
|
+
span {
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
}
|
|
103
|
+
|
|
99
104
|
h2, span {
|
|
100
105
|
margin: 0px;
|
|
101
106
|
}
|
|
@@ -216,3 +221,44 @@ export const PriceContainer = styled.div`
|
|
|
216
221
|
height: 50px;
|
|
217
222
|
}
|
|
218
223
|
`
|
|
224
|
+
|
|
225
|
+
const BusinessLogoStyled = styled.div`
|
|
226
|
+
display: flex;
|
|
227
|
+
width: 75px;
|
|
228
|
+
height: 75px;
|
|
229
|
+
min-height: 75px;
|
|
230
|
+
box-sizing: border-box;
|
|
231
|
+
position: relative;
|
|
232
|
+
background-repeat: no-repeat, repeat;
|
|
233
|
+
background-size: contain;
|
|
234
|
+
object-fit: contain;
|
|
235
|
+
background-position: center;
|
|
236
|
+
border-radius: 10px;
|
|
237
|
+
`
|
|
238
|
+
|
|
239
|
+
export const BusinessLogo = (props) => {
|
|
240
|
+
return (
|
|
241
|
+
<BusinessLogoStyled
|
|
242
|
+
{...props}
|
|
243
|
+
style={{ backgroundImage: `url(${props.bgimage})` }}
|
|
244
|
+
>
|
|
245
|
+
{props.children}
|
|
246
|
+
</BusinessLogoStyled>
|
|
247
|
+
)
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export const WrapperBusinessLogo = styled.div`
|
|
251
|
+
max-width: 75px;
|
|
252
|
+
max-height: 75px;
|
|
253
|
+
height: 75px;
|
|
254
|
+
width: 75px;
|
|
255
|
+
margin-right: 10px;
|
|
256
|
+
`
|
|
257
|
+
|
|
258
|
+
export const TimeContainer = styled.div`
|
|
259
|
+
svg{
|
|
260
|
+
position: relative;
|
|
261
|
+
top: 1px;
|
|
262
|
+
margin-right: 5px;
|
|
263
|
+
}
|
|
264
|
+
`
|