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
|
@@ -78,7 +78,7 @@ Object.defineProperty(exports, "BusinessesMap", {
|
|
|
78
78
|
Object.defineProperty(exports, "Buttons", {
|
|
79
79
|
enumerable: true,
|
|
80
80
|
get: function get() {
|
|
81
|
-
return _Buttons.
|
|
81
|
+
return _Buttons.Button;
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "Cart", {
|
|
@@ -168,7 +168,7 @@ Object.defineProperty(exports, "InputPhoneNumber", {
|
|
|
168
168
|
Object.defineProperty(exports, "Inputs", {
|
|
169
169
|
enumerable: true,
|
|
170
170
|
get: function get() {
|
|
171
|
-
return _Inputs.
|
|
171
|
+
return _Inputs.Input;
|
|
172
172
|
}
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "LanguageSelector", {
|
|
@@ -270,7 +270,7 @@ Object.defineProperty(exports, "Select", {
|
|
|
270
270
|
Object.defineProperty(exports, "Selects", {
|
|
271
271
|
enumerable: true,
|
|
272
272
|
get: function get() {
|
|
273
|
-
return _Selects.
|
|
273
|
+
return _Selects.Select;
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
276
|
Object.defineProperty(exports, "SidebarMenu", {
|
|
@@ -306,7 +306,7 @@ Object.defineProperty(exports, "UserDetails", {
|
|
|
306
306
|
Object.defineProperty(exports, "UserFormDetails", {
|
|
307
307
|
enumerable: true,
|
|
308
308
|
get: function get() {
|
|
309
|
-
return _UserFormDetails.
|
|
309
|
+
return _UserFormDetails.UserFormDetailsUI;
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "UserPopover", {
|
|
@@ -97,7 +97,10 @@ var ForgotPasswordUI = function ForgotPasswordUI(props) {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
100
|
-
|
|
100
|
+
|
|
101
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
102
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
103
|
+
}
|
|
101
104
|
};
|
|
102
105
|
|
|
103
106
|
(0, _react.useEffect)(function () {
|
|
@@ -260,7 +260,10 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
263
|
-
|
|
263
|
+
|
|
264
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
265
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
266
|
+
}
|
|
264
267
|
};
|
|
265
268
|
|
|
266
269
|
var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
|
|
@@ -258,7 +258,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
261
|
-
|
|
261
|
+
|
|
262
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
263
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
264
|
+
}
|
|
262
265
|
};
|
|
263
266
|
|
|
264
267
|
var toggleSelect = function toggleSelect() {
|
|
@@ -105,7 +105,7 @@ var AccountLogin = _styledComponents.default.div(_templateObject17 || (_template
|
|
|
105
105
|
|
|
106
106
|
exports.AccountLogin = AccountLogin;
|
|
107
107
|
|
|
108
|
-
var WrapperBirthday = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n width: 100%;\n display: block;\n .react-datepicker-popper {\n display: block;\n }\n .birthdate-input::placeholder {\n color: #dbdcdb;\n }\n"])));
|
|
108
|
+
var WrapperBirthday = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n width: 100%;\n display: block;\n .react-datepicker-popper {\n display: block;\n }\n\n .birthdate-input::placeholder {\n color: #dbdcdb;\n }\n"])));
|
|
109
109
|
|
|
110
110
|
exports.WrapperBirthday = WrapperBirthday;
|
|
111
111
|
|
|
@@ -245,7 +245,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
248
|
-
|
|
248
|
+
|
|
249
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
250
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
251
|
+
}
|
|
249
252
|
};
|
|
250
253
|
|
|
251
254
|
(0, _react.useEffect)(function () {
|
|
@@ -186,7 +186,7 @@ Object.defineProperty(exports, "HomeHero", {
|
|
|
186
186
|
Object.defineProperty(exports, "Inputs", {
|
|
187
187
|
enumerable: true,
|
|
188
188
|
get: function get() {
|
|
189
|
-
return _Inputs.
|
|
189
|
+
return _Inputs.Input;
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
192
|
Object.defineProperty(exports, "LanguageSelector", {
|
|
@@ -306,7 +306,7 @@ Object.defineProperty(exports, "Select", {
|
|
|
306
306
|
Object.defineProperty(exports, "Selects", {
|
|
307
307
|
enumerable: true,
|
|
308
308
|
get: function get() {
|
|
309
|
-
return _Selects.
|
|
309
|
+
return _Selects.Select;
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
Object.defineProperty(exports, "SidebarMenu", {
|
|
@@ -366,7 +366,7 @@ Object.defineProperty(exports, "UserDetails", {
|
|
|
366
366
|
Object.defineProperty(exports, "UserFormDetails", {
|
|
367
367
|
enumerable: true,
|
|
368
368
|
get: function get() {
|
|
369
|
-
return _UserFormDetails.
|
|
369
|
+
return _UserFormDetails.UserFormDetailsUI;
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
|
|
@@ -37,7 +37,7 @@ var _styles = require("./styles");
|
|
|
37
37
|
|
|
38
38
|
var _Buttons = require("../../../../../styles/Buttons");
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _Inputs = require("../../styles/Inputs");
|
|
41
41
|
|
|
42
42
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
43
43
|
|
|
@@ -598,7 +598,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
598
598
|
maxLimitLocation: maxLimitLocation
|
|
599
599
|
}))) : /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
600
600
|
key: field.name
|
|
601
|
-
}, field.name !== 'address_notes' ? /*#__PURE__*/_react.default.createElement(
|
|
601
|
+
}, field.name !== 'address_notes' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
602
602
|
className: field.name,
|
|
603
603
|
placeholder: t(field.name.toUpperCase(), field.code),
|
|
604
604
|
value: (_ref9 = (_formState$changes$fi2 = (_formState$changes27 = formState.changes) === null || _formState$changes27 === void 0 ? void 0 : _formState$changes27[field.name]) !== null && _formState$changes$fi2 !== void 0 ? _formState$changes$fi2 : (_addressState$address13 = addressState.address) === null || _addressState$address13 === void 0 ? void 0 : _addressState$address13[field.name]) !== null && _ref9 !== void 0 ? _ref9 : '',
|
|
@@ -613,7 +613,7 @@ var AddressFormUI = function AddressFormUI(props) {
|
|
|
613
613
|
},
|
|
614
614
|
autoComplete: "new-field",
|
|
615
615
|
maxLength: 30
|
|
616
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
616
|
+
}) : /*#__PURE__*/_react.default.createElement(_Inputs.TextArea, {
|
|
617
617
|
rows: 4,
|
|
618
618
|
placeholder: t('ADDRESS_NOTES', 'Address Notes'),
|
|
619
619
|
value: (_ref10 = (_formState$changes$ad5 = (_formState$changes28 = formState.changes) === null || _formState$changes28 === void 0 ? void 0 : _formState$changes28.address_notes) !== null && _formState$changes$ad5 !== void 0 ? _formState$changes$ad5 : addressState.address.address_notes) !== null && _ref10 !== void 0 ? _ref10 : '',
|
|
@@ -42,7 +42,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
42
42
|
var types = ['food', 'laundry', 'alcohol', 'groceries'];
|
|
43
43
|
|
|
44
44
|
var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
45
|
-
var _props$beforeElements, _props$beforeComponen, _orderState$options, _business$reviews, _props$afterComponent, _props$afterElements;
|
|
45
|
+
var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _orderingTheme$theme33, _props$beforeElements, _props$beforeComponen, _orderState$options, _business$reviews, _props$afterComponent, _props$afterElements;
|
|
46
46
|
|
|
47
47
|
var isSkeleton = props.isSkeleton,
|
|
48
48
|
businessState = props.businessState;
|
|
@@ -63,6 +63,10 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
63
63
|
parsePrice = _useUtils2$.parsePrice,
|
|
64
64
|
parseDistance = _useUtils2$.parseDistance;
|
|
65
65
|
|
|
66
|
+
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
67
|
+
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
68
|
+
orderingTheme = _useOrderingTheme2[0];
|
|
69
|
+
|
|
66
70
|
var getBusinessType = function getBusinessType() {
|
|
67
71
|
if (Object.keys(business).length <= 0) return t('GENERAL', 'General');
|
|
68
72
|
var _types = [];
|
|
@@ -74,6 +78,11 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
74
78
|
return _types.join(', ');
|
|
75
79
|
};
|
|
76
80
|
|
|
81
|
+
var showDeliveryFee = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.business_view) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.header) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.business) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.fee) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
|
|
82
|
+
var showTime = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme2 = orderingTheme.theme) !== null && _orderingTheme$theme2 !== void 0 && (_orderingTheme$theme3 = _orderingTheme$theme2.business_view) !== null && _orderingTheme$theme3 !== void 0 && (_orderingTheme$theme4 = _orderingTheme$theme3.components) !== null && _orderingTheme$theme4 !== void 0 && (_orderingTheme$theme5 = _orderingTheme$theme4.header) !== null && _orderingTheme$theme5 !== void 0 && (_orderingTheme$theme6 = _orderingTheme$theme5.components) !== null && _orderingTheme$theme6 !== void 0 && (_orderingTheme$theme7 = _orderingTheme$theme6.business) !== null && _orderingTheme$theme7 !== void 0 && (_orderingTheme$theme8 = _orderingTheme$theme7.components) !== null && _orderingTheme$theme8 !== void 0 && (_orderingTheme$theme9 = _orderingTheme$theme8.time) !== null && _orderingTheme$theme9 !== void 0 && _orderingTheme$theme9.hidden);
|
|
83
|
+
var showBusinessInfo = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme10 = orderingTheme.theme) !== null && _orderingTheme$theme10 !== void 0 && (_orderingTheme$theme11 = _orderingTheme$theme10.business_view) !== null && _orderingTheme$theme11 !== void 0 && (_orderingTheme$theme12 = _orderingTheme$theme11.components) !== null && _orderingTheme$theme12 !== void 0 && (_orderingTheme$theme13 = _orderingTheme$theme12.header) !== null && _orderingTheme$theme13 !== void 0 && (_orderingTheme$theme14 = _orderingTheme$theme13.components) !== null && _orderingTheme$theme14 !== void 0 && (_orderingTheme$theme15 = _orderingTheme$theme14.business) !== null && _orderingTheme$theme15 !== void 0 && (_orderingTheme$theme16 = _orderingTheme$theme15.components) !== null && _orderingTheme$theme16 !== void 0 && (_orderingTheme$theme17 = _orderingTheme$theme16.business_info) !== null && _orderingTheme$theme17 !== void 0 && _orderingTheme$theme17.hidden);
|
|
84
|
+
var showReviews = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme18 = orderingTheme.theme) !== null && _orderingTheme$theme18 !== void 0 && (_orderingTheme$theme19 = _orderingTheme$theme18.business_view) !== null && _orderingTheme$theme19 !== void 0 && (_orderingTheme$theme20 = _orderingTheme$theme19.components) !== null && _orderingTheme$theme20 !== void 0 && (_orderingTheme$theme21 = _orderingTheme$theme20.header) !== null && _orderingTheme$theme21 !== void 0 && (_orderingTheme$theme22 = _orderingTheme$theme21.components) !== null && _orderingTheme$theme22 !== void 0 && (_orderingTheme$theme23 = _orderingTheme$theme22.business) !== null && _orderingTheme$theme23 !== void 0 && (_orderingTheme$theme24 = _orderingTheme$theme23.components) !== null && _orderingTheme$theme24 !== void 0 && (_orderingTheme$theme25 = _orderingTheme$theme24.reviews) !== null && _orderingTheme$theme25 !== void 0 && _orderingTheme$theme25.hidden);
|
|
85
|
+
var showDistance = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme26 = orderingTheme.theme) !== null && _orderingTheme$theme26 !== void 0 && (_orderingTheme$theme27 = _orderingTheme$theme26.business_view) !== null && _orderingTheme$theme27 !== void 0 && (_orderingTheme$theme28 = _orderingTheme$theme27.components) !== null && _orderingTheme$theme28 !== void 0 && (_orderingTheme$theme29 = _orderingTheme$theme28.header) !== null && _orderingTheme$theme29 !== void 0 && (_orderingTheme$theme30 = _orderingTheme$theme29.components) !== null && _orderingTheme$theme30 !== void 0 && (_orderingTheme$theme31 = _orderingTheme$theme30.business) !== null && _orderingTheme$theme31 !== void 0 && (_orderingTheme$theme32 = _orderingTheme$theme31.components) !== null && _orderingTheme$theme32 !== void 0 && (_orderingTheme$theme33 = _orderingTheme$theme32.distance) !== null && _orderingTheme$theme33 !== void 0 && _orderingTheme$theme33.hidden);
|
|
77
86
|
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) {
|
|
78
87
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
79
88
|
key: i
|
|
@@ -95,23 +104,23 @@ var BusinessBasicInformation = function BusinessBasicInformation(props) {
|
|
|
95
104
|
}, business === null || business === void 0 ? void 0 : business.name) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
96
105
|
width: 150,
|
|
97
106
|
height: 30
|
|
98
|
-
})), /*#__PURE__*/_react.default.createElement("div", null, !loading ? /*#__PURE__*/_react.default.createElement("p", {
|
|
107
|
+
})), showBusinessInfo && /*#__PURE__*/_react.default.createElement("div", null, !loading ? /*#__PURE__*/_react.default.createElement("p", {
|
|
99
108
|
className: "type"
|
|
100
109
|
}, getBusinessType()) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
101
110
|
width: 100
|
|
102
111
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
103
112
|
className: "meta"
|
|
104
|
-
}, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_FiClock.default, null), (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)) : /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_FiClock.default, null), (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time))) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
113
|
+
}, showTime && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 1 ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_FiClock.default, null), (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.delivery_time)) : /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_FiClock.default, null), (0, _utils.convertHoursToMinutes)(business === null || business === void 0 ? void 0 : business.pickup_time))) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
105
114
|
width: 50
|
|
106
|
-
}), !loading ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_GrLocation.default, null), parseDistance((business === null || business === void 0 ? void 0 : business.distance) || 0)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
115
|
+
})), showDistance && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_GrLocation.default, null), parseDistance((business === null || business === void 0 ? void 0 : business.distance) || 0)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
107
116
|
width: 50
|
|
108
|
-
}), (orderState === null || orderState === void 0 ? void 0 : orderState.options.type) === 1 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_GrDeliver.default, null), business && parsePrice((business === null || business === void 0 ? void 0 : business.delivery_price) || 0)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
117
|
+
})), (orderState === null || orderState === void 0 ? void 0 : orderState.options.type) === 1 && showDeliveryFee && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_GrDeliver.default, null), business && parsePrice((business === null || business === void 0 ? void 0 : business.delivery_price) || 0)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
109
118
|
width: 50
|
|
110
|
-
})), !loading ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_FaStar.default, {
|
|
119
|
+
})), showReviews && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !loading ? /*#__PURE__*/_react.default.createElement("p", null, /*#__PURE__*/_react.default.createElement(_FaStar.default, {
|
|
111
120
|
className: "start"
|
|
112
121
|
}), business === null || business === void 0 ? void 0 : (_business$reviews = business.reviews) === null || _business$reviews === void 0 ? void 0 : _business$reviews.total) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
113
122
|
width: 50
|
|
114
|
-
})))))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
|
123
|
+
}))))))), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
|
115
124
|
return /*#__PURE__*/_react.default.createElement(AfterComponent, _extends({
|
|
116
125
|
key: i
|
|
117
126
|
}, props));
|
|
@@ -30,7 +30,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
30
30
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
31
31
|
|
|
32
32
|
var SearchProducts = function SearchProducts(props) {
|
|
33
|
-
var
|
|
33
|
+
var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme$6, _orderingTheme$theme$7, _theme$defaultLanguag, _businessState$busine;
|
|
34
34
|
|
|
35
35
|
var handleChangeSearch = props.handleChangeSearch,
|
|
36
36
|
searchValue = props.searchValue,
|
|
@@ -44,7 +44,11 @@ var SearchProducts = function SearchProducts(props) {
|
|
|
44
44
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
45
45
|
t = _useLanguage2[1];
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
|
|
48
|
+
_useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
|
|
49
|
+
orderingTheme = _useOrderingTheme2[0];
|
|
50
|
+
|
|
51
|
+
var showSort = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.business_view) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.header) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.business) !== null && _orderingTheme$theme$5 !== void 0 && (_orderingTheme$theme$6 = _orderingTheme$theme$5.components) !== null && _orderingTheme$theme$6 !== void 0 && (_orderingTheme$theme$7 = _orderingTheme$theme$6.sort) !== null && _orderingTheme$theme$7 !== void 0 && _orderingTheme$theme$7.hidden);
|
|
48
52
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_SearchBar.SearchBar, {
|
|
49
53
|
onSearch: handleChangeSearch,
|
|
50
54
|
search: searchValue,
|
|
@@ -27,8 +27,6 @@ var _PageNotFound = require("../../../../../components/PageNotFound");
|
|
|
27
27
|
|
|
28
28
|
var _Cart = require("../../../../../components/Cart");
|
|
29
29
|
|
|
30
|
-
var _Select = require("../../../../../styles/Select");
|
|
31
|
-
|
|
32
30
|
var _useWindowSize = require("../../../../../hooks/useWindowSize");
|
|
33
31
|
|
|
34
32
|
var _BusinessBasicInformation = require("../BusinessBasicInformation");
|
|
@@ -39,12 +37,12 @@ var _BusinessProductsList = require("../BusinessProductsList");
|
|
|
39
37
|
|
|
40
38
|
var _ProductForm = require("../ProductForm");
|
|
41
39
|
|
|
42
|
-
var _SearchBar = require("../SearchBar");
|
|
43
|
-
|
|
44
40
|
var _CartFullPage = require("../CartFullPage");
|
|
45
41
|
|
|
46
42
|
var _FlotingStatusBar = require("../FlotingStatusBar");
|
|
47
43
|
|
|
44
|
+
var _SearchProducts = require("./SearchProducts");
|
|
45
|
+
|
|
48
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
49
47
|
|
|
50
48
|
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); }
|
|
@@ -82,7 +80,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
82
80
|
var PIXELS_TO_SCROLL = 300;
|
|
83
81
|
|
|
84
82
|
var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
85
|
-
var _Object$values$find, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _props$beforeElements, _props$beforeComponen, _currentCart$products,
|
|
83
|
+
var _Object$values$find, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _props$beforeElements, _props$beforeComponen, _currentCart$products, _business$categories, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10, _business$categories2, _theme$defaultLanguag11, _theme$defaultLanguag12, _currentCart$products2, _currentCart$products3, _currentCart$products4, _business$categories3, _theme$defaultLanguag13, _theme$defaultLanguag14, _theme$defaultLanguag15, _theme$defaultLanguag16, _error$, _theme$defaultLanguag17, _props$afterComponent, _props$afterElements;
|
|
86
84
|
|
|
87
85
|
var errors = props.errors,
|
|
88
86
|
isInitialRender = props.isInitialRender,
|
|
@@ -278,32 +276,28 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
278
276
|
businessState: businessState,
|
|
279
277
|
setOpenBusinessInformation: setOpenBusinessInformation,
|
|
280
278
|
openBusinessInformation: openBusinessInformation
|
|
281
|
-
})), (categoryState.products.length !== 0 || searchValue) && !errorQuantityProducts && /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, null, /*#__PURE__*/_react.default.createElement(
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
}), /*#__PURE__*/_react.default.createElement(_Select.Select, {
|
|
287
|
-
notAsync: true,
|
|
288
|
-
notReload: true,
|
|
289
|
-
options: sortByOptions,
|
|
290
|
-
defaultValue: sortByValue,
|
|
279
|
+
})), (categoryState.products.length !== 0 || searchValue) && !errorQuantityProducts && /*#__PURE__*/_react.default.createElement(_styles.WrapperSearch, null, /*#__PURE__*/_react.default.createElement(_SearchProducts.SearchProducts, {
|
|
280
|
+
handleChangeSearch: handleChangeSearch,
|
|
281
|
+
searchValue: searchValue,
|
|
282
|
+
sortByOptions: sortByOptions,
|
|
283
|
+
sortByValue: sortByValue,
|
|
291
284
|
onChange: function onChange(val) {
|
|
292
285
|
return handleChangeSortBy && handleChangeSortBy(val);
|
|
293
|
-
}
|
|
286
|
+
},
|
|
287
|
+
businessState: businessState
|
|
294
288
|
})), !((business === null || business === void 0 ? void 0 : (_business$categories = business.categories) === null || _business$categories === void 0 ? void 0 : _business$categories.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(_BusinessProductsCategories.BusinessProductsCategories, {
|
|
295
289
|
categories: windowSize.width > 850 ? [{
|
|
296
290
|
id: null,
|
|
297
|
-
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
291
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.ALL) || 'All')
|
|
298
292
|
}, {
|
|
299
293
|
id: 'featured',
|
|
300
|
-
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
294
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.FEATURED) || 'Featured')
|
|
301
295
|
}] : [{
|
|
302
296
|
id: null,
|
|
303
|
-
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
297
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag9 = theme.defaultLanguages) === null || _theme$defaultLanguag9 === void 0 ? void 0 : _theme$defaultLanguag9.ALL) || 'All')
|
|
304
298
|
}, {
|
|
305
299
|
id: 'featured',
|
|
306
|
-
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
300
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag10 = theme.defaultLanguages) === null || _theme$defaultLanguag10 === void 0 ? void 0 : _theme$defaultLanguag10.FEATURED) || 'Featured')
|
|
307
301
|
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
308
302
|
return a.rank - b.rank;
|
|
309
303
|
}))),
|
|
@@ -331,10 +325,10 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
331
325
|
})), /*#__PURE__*/_react.default.createElement(_BusinessProductsList.BusinessProductsList, {
|
|
332
326
|
categories: [{
|
|
333
327
|
id: null,
|
|
334
|
-
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
328
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag11 = theme.defaultLanguages) === null || _theme$defaultLanguag11 === void 0 ? void 0 : _theme$defaultLanguag11.ALL) || 'All')
|
|
335
329
|
}, {
|
|
336
330
|
id: 'featured',
|
|
337
|
-
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
331
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag12 = theme.defaultLanguages) === null || _theme$defaultLanguag12 === void 0 ? void 0 : _theme$defaultLanguag12.FEATURED) || 'Featured')
|
|
338
332
|
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
339
333
|
return a.rank - b.rank;
|
|
340
334
|
}))),
|
|
@@ -418,18 +412,18 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
|
|
|
418
412
|
isBusinessLoading: loading,
|
|
419
413
|
errorQuantityProducts: errorQuantityProducts
|
|
420
414
|
})))))), !loading && business && !Object.keys(business).length && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
421
|
-
content: t('NOT_FOUND_BUSINESS_PRODUCTS', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
422
|
-
btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
415
|
+
content: t('NOT_FOUND_BUSINESS_PRODUCTS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag13 = theme.defaultLanguages) === null || _theme$defaultLanguag13 === void 0 ? void 0 : _theme$defaultLanguag13.NOT_FOUND_BUSINESS_PRODUCTS) || 'No products to show at this business, please try with other business.'),
|
|
416
|
+
btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag14 = theme.defaultLanguages) === null || _theme$defaultLanguag14 === void 0 ? void 0 : _theme$defaultLanguag14.SEARCH_REDIRECT) || 'Go to Businesses'),
|
|
423
417
|
onClickButton: function onClickButton() {
|
|
424
418
|
return handleSearchRedirect();
|
|
425
419
|
}
|
|
426
420
|
}), !loading && !business && location.pathname.includes('/store/') && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
427
|
-
content: t('ERROR_NOT_FOUND_STORE', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
428
|
-
btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
421
|
+
content: t('ERROR_NOT_FOUND_STORE', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag15 = theme.defaultLanguages) === null || _theme$defaultLanguag15 === void 0 ? void 0 : _theme$defaultLanguag15.ERROR_NOT_FOUND_STORE) || 'Sorry, an error has occurred with business selected.'),
|
|
422
|
+
btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag16 = theme.defaultLanguages) === null || _theme$defaultLanguag16 === void 0 ? void 0 : _theme$defaultLanguag16.SEARCH_REDIRECT) || 'Go to Businesses'),
|
|
429
423
|
onClickButton: handleSearchRedirect
|
|
430
424
|
}), !loading && !business && !location.pathname.includes('/store/') && /*#__PURE__*/_react.default.createElement(_PageNotFound.PageNotFound, null), error && error.length > 0 && Object.keys(business).length && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
431
425
|
content: ((_error$ = error[0]) === null || _error$ === void 0 ? void 0 : _error$.message) || error[0],
|
|
432
|
-
btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$
|
|
426
|
+
btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag17 = theme.defaultLanguages) === null || _theme$defaultLanguag17 === void 0 ? void 0 : _theme$defaultLanguag17.SEARCH_REDIRECT) || 'Go to Businesses'),
|
|
433
427
|
onClickButton: handleSearchRedirect
|
|
434
428
|
})), /*#__PURE__*/_react.default.createElement(_FlotingStatusBar.FlotingStatusBar, {
|
|
435
429
|
currentCart: currentCart,
|
|
@@ -13,7 +13,7 @@ var _orderingComponentsExternal = require("ordering-components-external");
|
|
|
13
13
|
|
|
14
14
|
var _styles = require("./styles");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _Inputs = require("../../styles/Inputs");
|
|
17
17
|
|
|
18
18
|
var _Buttons = require("../../../../../styles/Buttons");
|
|
19
19
|
|
|
@@ -95,7 +95,7 @@ var DriverTipsUI = function DriverTipsUI(props) {
|
|
|
95
95
|
return handlerChangeOption(option);
|
|
96
96
|
}
|
|
97
97
|
}, "".concat(isFixedPrice ? parsePrice(option) : "".concat(option, "%")));
|
|
98
|
-
})), !driverTipsOptions.includes(driverTip) && driverTip > 0 && /*#__PURE__*/_react.default.createElement(_styles.DriverTipMessage, null, t('CUSTOM_DRIVER_TIP_AMOUNT', 'The driver\'s current tip comes from a custom option'))) : /*#__PURE__*/_react.default.createElement(_styles.FormDriverTip, null, /*#__PURE__*/_react.default.createElement(_styles.DriverTipLabel, null, t('CUSTOM_DRIVER_TIP_MESSAGE', '100% of these tips go directly to your driver')), /*#__PURE__*/_react.default.createElement(_styles.WrapperInput, null, /*#__PURE__*/_react.default.createElement(
|
|
98
|
+
})), !driverTipsOptions.includes(driverTip) && driverTip > 0 && /*#__PURE__*/_react.default.createElement(_styles.DriverTipMessage, null, t('CUSTOM_DRIVER_TIP_AMOUNT', 'The driver\'s current tip comes from a custom option'))) : /*#__PURE__*/_react.default.createElement(_styles.FormDriverTip, null, /*#__PURE__*/_react.default.createElement(_styles.DriverTipLabel, null, t('CUSTOM_DRIVER_TIP_MESSAGE', '100% of these tips go directly to your driver')), /*#__PURE__*/_react.default.createElement(_styles.WrapperInput, null, /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
99
99
|
name: "drivertip",
|
|
100
100
|
type: "text",
|
|
101
101
|
placeholder: placeholderCurrency,
|
|
@@ -97,7 +97,10 @@ var ForgotPasswordUI = function ForgotPasswordUI(props) {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
100
|
-
|
|
100
|
+
|
|
101
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
102
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
103
|
+
}
|
|
101
104
|
};
|
|
102
105
|
|
|
103
106
|
(0, _react.useEffect)(function () {
|
|
@@ -31,7 +31,7 @@ var _SmsLogin = require("../../../../../components/SmsLogin");
|
|
|
31
31
|
|
|
32
32
|
var _GoogleLogin = require("../../../../../components/GoogleLogin");
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _Inputs = require("../../styles/Inputs");
|
|
35
35
|
|
|
36
36
|
var _Buttons = require("../../../../../styles/Buttons");
|
|
37
37
|
|
|
@@ -268,7 +268,10 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
271
|
-
|
|
271
|
+
|
|
272
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
273
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
274
|
+
}
|
|
272
275
|
};
|
|
273
276
|
|
|
274
277
|
var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
|
|
@@ -419,7 +422,7 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
419
422
|
return /*#__PURE__*/_react.default.createElement(BeforeMidComponents, _extends({
|
|
420
423
|
key: i
|
|
421
424
|
}, props));
|
|
422
|
-
}), useLoginByEmail && loginTab === 'email' && /*#__PURE__*/_react.default.createElement(
|
|
425
|
+
}), useLoginByEmail && loginTab === 'email' && /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
423
426
|
type: "email",
|
|
424
427
|
name: "email",
|
|
425
428
|
"aria-label": "email",
|
|
@@ -450,7 +453,7 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
450
453
|
style: {
|
|
451
454
|
height: 160
|
|
452
455
|
}
|
|
453
|
-
}), !loginWithOtpState && /*#__PURE__*/_react.default.createElement(_styles.WrapperPassword, null, /*#__PURE__*/_react.default.createElement(
|
|
456
|
+
}), !loginWithOtpState && /*#__PURE__*/_react.default.createElement(_styles.WrapperPassword, null, /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
454
457
|
type: !passwordSee ? 'password' : 'text',
|
|
455
458
|
name: "password",
|
|
456
459
|
"aria-label": "password",
|
|
@@ -13,7 +13,7 @@ var _orderingComponentsExternal = require("ordering-components-external");
|
|
|
13
13
|
|
|
14
14
|
var _styles = require("./styles");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _Inputs = require("../../styles/Inputs");
|
|
17
17
|
|
|
18
18
|
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); }
|
|
19
19
|
|
|
@@ -95,7 +95,7 @@ var PaymentOptionCash = function PaymentOptionCash(props) {
|
|
|
95
95
|
return /*#__PURE__*/_react.default.createElement(BeforeComponent, _extends({
|
|
96
96
|
key: i
|
|
97
97
|
}, props));
|
|
98
|
-
}), /*#__PURE__*/_react.default.createElement(_styles.PaymentCashContainer, null, /*#__PURE__*/_react.default.createElement(_styles.FormCash, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperInput, null, /*#__PURE__*/_react.default.createElement("label", null, t('NOT_EXACT_CASH_AMOUNT', 'Don\'t have exact amount? Let us know with how much will you pay')), /*#__PURE__*/_react.default.createElement(
|
|
98
|
+
}), /*#__PURE__*/_react.default.createElement(_styles.PaymentCashContainer, null, /*#__PURE__*/_react.default.createElement(_styles.FormCash, null, /*#__PURE__*/_react.default.createElement(_styles.WrapperInput, null, /*#__PURE__*/_react.default.createElement("label", null, t('NOT_EXACT_CASH_AMOUNT', 'Don\'t have exact amount? Let us know with how much will you pay')), /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
99
99
|
ref: el,
|
|
100
100
|
name: "cash",
|
|
101
101
|
type: "number",
|
|
@@ -29,7 +29,7 @@ var _AddressList = require("../../../../../components/AddressList");
|
|
|
29
29
|
|
|
30
30
|
var _Buttons = require("../../../../../styles/Buttons");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _Inputs = require("../../../../../styles/Inputs");
|
|
33
33
|
|
|
34
34
|
var _NotFoundSource = require("../../../../../components/NotFoundSource");
|
|
35
35
|
|
|
@@ -290,7 +290,7 @@ var ProductOptionsUI = function ProductOptionsUI(props) {
|
|
|
290
290
|
});
|
|
291
291
|
}))));
|
|
292
292
|
});
|
|
293
|
-
}), !(product !== null && product !== void 0 && product.hide_special_instructions) && /*#__PURE__*/_react.default.createElement(_styles.ProductComment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('SPECIAL_COMMENT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.SPECIAL_COMMENT) || 'Special comment')), /*#__PURE__*/_react.default.createElement(
|
|
293
|
+
}), !(product !== null && product !== void 0 && product.hide_special_instructions) && /*#__PURE__*/_react.default.createElement(_styles.ProductComment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('SPECIAL_COMMENT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.SPECIAL_COMMENT) || 'Special comment')), /*#__PURE__*/_react.default.createElement(_Inputs.TextArea, {
|
|
294
294
|
rows: 4,
|
|
295
295
|
placeholder: t('SPECIAL_COMMENT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.SPECIAL_COMMENT) || 'Special comment'),
|
|
296
296
|
defaultValue: productCart.comment,
|
|
@@ -9,7 +9,7 @@ exports.SearchBar = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _Inputs = require("../../styles/Inputs");
|
|
13
13
|
|
|
14
14
|
var _ThemeContext = require("../../../../../contexts/ThemeContext");
|
|
15
15
|
|
|
@@ -97,7 +97,7 @@ var SearchBar = function SearchBar(props) {
|
|
|
97
97
|
className: !isCustomLayout && 'search-bar',
|
|
98
98
|
isCustomLayout: isCustomLayout,
|
|
99
99
|
hasValue: (_el$current = el.current) === null || _el$current === void 0 ? void 0 : _el$current.value
|
|
100
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
100
|
+
}, /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
101
101
|
ref: el,
|
|
102
102
|
name: "search",
|
|
103
103
|
"aria-label": "search",
|
|
@@ -23,7 +23,7 @@ var _orderingComponentsExternal = require("ordering-components-external");
|
|
|
23
23
|
|
|
24
24
|
var _styles = require("./styles");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _Inputs = require("../../styles/Inputs");
|
|
27
27
|
|
|
28
28
|
var _Buttons = require("../../../../../styles/Buttons");
|
|
29
29
|
|
|
@@ -255,7 +255,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
255
255
|
}
|
|
256
256
|
});
|
|
257
257
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
258
|
-
|
|
258
|
+
|
|
259
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
260
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
261
|
+
}
|
|
259
262
|
};
|
|
260
263
|
|
|
261
264
|
(0, _react.useEffect)(function () {
|
|
@@ -349,7 +352,7 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
349
352
|
}).map(function (field) {
|
|
350
353
|
return showField && showField(field.code) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
351
354
|
key: field.id
|
|
352
|
-
}, field.code === 'email' ? /*#__PURE__*/_react.default.createElement(
|
|
355
|
+
}, field.code === 'email' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
353
356
|
type: field.type,
|
|
354
357
|
name: field.code,
|
|
355
358
|
"aria-label": field.code,
|
|
@@ -361,7 +364,7 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
361
364
|
},
|
|
362
365
|
required: !!field.required,
|
|
363
366
|
autoComplete: "off"
|
|
364
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
367
|
+
}) : /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
365
368
|
type: field.type,
|
|
366
369
|
name: field.code,
|
|
367
370
|
"aria-label": field.code,
|
|
@@ -375,7 +378,7 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
375
378
|
value: userPhoneNumber,
|
|
376
379
|
setValue: handleChangePhoneNumber,
|
|
377
380
|
handleIsValid: setIsValidPhoneNumber
|
|
378
|
-
}), (!fieldsNotValid || fieldsNotValid && !fieldsNotValid.includes('password')) && /*#__PURE__*/_react.default.createElement(_styles.WrapperPassword, null, /*#__PURE__*/_react.default.createElement(
|
|
381
|
+
}), (!fieldsNotValid || fieldsNotValid && !fieldsNotValid.includes('password')) && /*#__PURE__*/_react.default.createElement(_styles.WrapperPassword, null, /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
379
382
|
type: !passwordSee ? 'password' : 'text',
|
|
380
383
|
name: "password",
|
|
381
384
|
"aria-label": "password",
|
|
@@ -19,7 +19,7 @@ var _libphonenumberJs = _interopRequireDefault(require("libphonenumber-js"));
|
|
|
19
19
|
|
|
20
20
|
var _styles = require("./styles");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _Inputs = require("../../styles/Inputs");
|
|
23
23
|
|
|
24
24
|
var _Buttons = require("../../../../../styles/Buttons");
|
|
25
25
|
|
|
@@ -245,7 +245,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
248
|
-
|
|
248
|
+
|
|
249
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
250
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
251
|
+
}
|
|
249
252
|
};
|
|
250
253
|
|
|
251
254
|
(0, _react.useEffect)(function () {
|
|
@@ -334,7 +337,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
334
337
|
|
|
335
338
|
return showField && showField(field.code) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
336
339
|
key: field.id
|
|
337
|
-
}, field.code === 'email' ? /*#__PURE__*/_react.default.createElement(
|
|
340
|
+
}, field.code === 'email' ? /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
338
341
|
key: field.id,
|
|
339
342
|
type: field.type,
|
|
340
343
|
name: field.code,
|
|
@@ -347,7 +350,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
347
350
|
emailInput.current = e;
|
|
348
351
|
},
|
|
349
352
|
autoComplete: "off"
|
|
350
|
-
}) : /*#__PURE__*/_react.default.createElement(
|
|
353
|
+
}) : /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
351
354
|
key: field.id,
|
|
352
355
|
type: field.type,
|
|
353
356
|
name: field.code,
|
|
@@ -367,7 +370,7 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
367
370
|
setValue: handleChangePhoneNumber,
|
|
368
371
|
handleIsValid: setIsValidPhoneNumber,
|
|
369
372
|
disabled: !isEdit
|
|
370
|
-
}), !isCheckout && /*#__PURE__*/_react.default.createElement(
|
|
373
|
+
}), !isCheckout && /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
|
|
371
374
|
type: "password",
|
|
372
375
|
name: "password",
|
|
373
376
|
className: "form",
|