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
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.RenderProductsLayout = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _styledComponents = require("styled-components");
|
|
13
|
+
|
|
14
|
+
var _orderingComponentsExternal = require("ordering-components-external");
|
|
15
|
+
|
|
16
|
+
var _AiOutlineShoppingCart = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineShoppingCart"));
|
|
17
|
+
|
|
18
|
+
var _BusinessBasicInformation = require("../BusinessBasicInformation");
|
|
19
|
+
|
|
20
|
+
var _BusinessProductsCategories = require("../BusinessProductsCategories");
|
|
21
|
+
|
|
22
|
+
var _BusinessProductsList = require("../BusinessProductsList");
|
|
23
|
+
|
|
24
|
+
var _groceries = require("../BusinessProductsCategories/layouts/groceries");
|
|
25
|
+
|
|
26
|
+
var _groceries2 = require("../BusinessProductsList/layouts/groceries");
|
|
27
|
+
|
|
28
|
+
var _Modal = require("../../../../../components/Modal");
|
|
29
|
+
|
|
30
|
+
var _Cart = require("../Cart");
|
|
31
|
+
|
|
32
|
+
var _NotFoundSource = require("../NotFoundSource");
|
|
33
|
+
|
|
34
|
+
var _Buttons = require("../../styles/Buttons");
|
|
35
|
+
|
|
36
|
+
var _styles = require("./styles");
|
|
37
|
+
|
|
38
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
|
+
|
|
40
|
+
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); }
|
|
41
|
+
|
|
42
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
|
+
|
|
44
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
45
|
+
|
|
46
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
47
|
+
|
|
48
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
49
|
+
|
|
50
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
51
|
+
|
|
52
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
53
|
+
|
|
54
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
55
|
+
|
|
56
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
57
|
+
|
|
58
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
59
|
+
|
|
60
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
61
|
+
|
|
62
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
|
+
|
|
64
|
+
var layoutOne = 'groceries';
|
|
65
|
+
|
|
66
|
+
var RenderProductsLayout = function RenderProductsLayout(props) {
|
|
67
|
+
var _configs$use_parent_c, _configs$use_parent_c2, _business$categories, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4, _currentCart$products, _currentCart$products2, _currentCart$products3, _business$categories2, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _currentCart$products4, _currentCart$products5;
|
|
68
|
+
|
|
69
|
+
var errors = props.errors,
|
|
70
|
+
isError = props.isError,
|
|
71
|
+
isLoading = props.isLoading,
|
|
72
|
+
business = props.business,
|
|
73
|
+
categoryId = props.categoryId,
|
|
74
|
+
searchValue = props.searchValue,
|
|
75
|
+
sortByValue = props.sortByValue,
|
|
76
|
+
currentCart = props.currentCart,
|
|
77
|
+
businessState = props.businessState,
|
|
78
|
+
categoryState = props.categoryState,
|
|
79
|
+
categorySelected = props.categorySelected,
|
|
80
|
+
openCategories = props.openCategories,
|
|
81
|
+
openBusinessInformation = props.openBusinessInformation,
|
|
82
|
+
isCartOnProductsList = props.isCartOnProductsList,
|
|
83
|
+
handleChangeSortBy = props.handleChangeSortBy,
|
|
84
|
+
errorQuantityProducts = props.errorQuantityProducts,
|
|
85
|
+
handler = props.handler,
|
|
86
|
+
onClickCategory = props.onClickCategory,
|
|
87
|
+
featuredProducts = props.featuredProducts,
|
|
88
|
+
onProductClick = props.onProductClick,
|
|
89
|
+
handleSearchRedirect = props.handleSearchRedirect,
|
|
90
|
+
handleChangeSearch = props.handleChangeSearch,
|
|
91
|
+
setOpenBusinessInformation = props.setOpenBusinessInformation,
|
|
92
|
+
_handleCartOpen = props.handleCartOpen,
|
|
93
|
+
productToIdLoading = props.productToIdLoading;
|
|
94
|
+
var theme = (0, _styledComponents.useTheme)();
|
|
95
|
+
|
|
96
|
+
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
97
|
+
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
98
|
+
t = _useLanguage2[1];
|
|
99
|
+
|
|
100
|
+
var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
|
|
101
|
+
_useConfig2 = _slicedToArray(_useConfig, 1),
|
|
102
|
+
configs = _useConfig2[0].configs;
|
|
103
|
+
|
|
104
|
+
var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
|
|
105
|
+
_useUtils2 = _slicedToArray(_useUtils, 1),
|
|
106
|
+
parsePrice = _useUtils2[0].parsePrice;
|
|
107
|
+
|
|
108
|
+
var _useState = (0, _react.useState)(false),
|
|
109
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
110
|
+
isCartModal = _useState2[0],
|
|
111
|
+
setisCartModal = _useState2[1];
|
|
112
|
+
|
|
113
|
+
var isUseParentCategory = (configs === null || configs === void 0 ? void 0 : (_configs$use_parent_c = configs.use_parent_category) === null || _configs$use_parent_c === void 0 ? void 0 : _configs$use_parent_c.value) === 'true' || (configs === null || configs === void 0 ? void 0 : (_configs$use_parent_c2 = configs.use_parent_category) === null || _configs$use_parent_c2 === void 0 ? void 0 : _configs$use_parent_c2.value) === '1';
|
|
114
|
+
var frontLayout = business === null || business === void 0 ? void 0 : business.front_layout;
|
|
115
|
+
var businessLayout = {
|
|
116
|
+
layoutOne: frontLayout === layoutOne && isUseParentCategory
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var BusinessLayout = function BusinessLayout(props) {
|
|
120
|
+
var components = {
|
|
121
|
+
categories: businessLayout.layoutOne ? _groceries.BusinessProductsCategories : _BusinessProductsCategories.BusinessProductsCategories,
|
|
122
|
+
products_list: businessLayout.layoutOne ? _groceries2.BusinessProductsList : _BusinessProductsList.BusinessProductsList
|
|
123
|
+
};
|
|
124
|
+
var ComponentToRender = (props === null || props === void 0 ? void 0 : props.component) && components[props === null || props === void 0 ? void 0 : props.component];
|
|
125
|
+
return (props === null || props === void 0 ? void 0 : props.component) && /*#__PURE__*/_react.default.createElement(ComponentToRender, props);
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isLoading && (business === null || business === void 0 ? void 0 : business.id) && /*#__PURE__*/_react.default.createElement(_styles.WrappLayout, {
|
|
129
|
+
isLayoutOne: businessLayout.layoutOne,
|
|
130
|
+
isCartOnProductsList: isCartOnProductsList
|
|
131
|
+
}, !businessLayout.layoutOne && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
132
|
+
className: "bp-list"
|
|
133
|
+
}, /*#__PURE__*/_react.default.createElement(_BusinessBasicInformation.BusinessBasicInformation, {
|
|
134
|
+
businessState: businessState,
|
|
135
|
+
categoryState: categoryState,
|
|
136
|
+
searchValue: searchValue,
|
|
137
|
+
sortByValue: sortByValue,
|
|
138
|
+
handleChangeSearch: handleChangeSearch,
|
|
139
|
+
handleChangeSortBy: handleChangeSortBy,
|
|
140
|
+
errorQuantityProducts: errorQuantityProducts,
|
|
141
|
+
setOpenBusinessInformation: setOpenBusinessInformation,
|
|
142
|
+
openBusinessInformation: openBusinessInformation
|
|
143
|
+
}), !errorQuantityProducts ? /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoriesContainer, null, !((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, {
|
|
144
|
+
categories: [{
|
|
145
|
+
id: null,
|
|
146
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.ALL) || 'All')
|
|
147
|
+
}, {
|
|
148
|
+
id: 'featured',
|
|
149
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.FEATURED) || 'Featured')
|
|
150
|
+
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
151
|
+
return a.rank - b.rank;
|
|
152
|
+
}))),
|
|
153
|
+
categorySelected: categorySelected,
|
|
154
|
+
onClickCategory: onClickCategory,
|
|
155
|
+
featured: featuredProducts,
|
|
156
|
+
openBusinessInformation: openBusinessInformation
|
|
157
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoryProductWrapper, null, /*#__PURE__*/_react.default.createElement(_BusinessProductsList.BusinessProductsList, {
|
|
158
|
+
categories: [{
|
|
159
|
+
id: null,
|
|
160
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.ALL) || 'All')
|
|
161
|
+
}, {
|
|
162
|
+
id: 'featured',
|
|
163
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.FEATURED) || 'Featured')
|
|
164
|
+
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
165
|
+
return a.rank - b.rank;
|
|
166
|
+
}))),
|
|
167
|
+
category: categorySelected,
|
|
168
|
+
categoryState: categoryState,
|
|
169
|
+
businessId: business.id,
|
|
170
|
+
errors: errors,
|
|
171
|
+
onProductClick: onProductClick,
|
|
172
|
+
handleSearchRedirect: handleSearchRedirect,
|
|
173
|
+
featured: featuredProducts,
|
|
174
|
+
searchValue: searchValue,
|
|
175
|
+
isCartOnProductsList: isCartOnProductsList && (currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products = currentCart.products) === null || _currentCart$products === void 0 ? void 0 : _currentCart$products.length) > 0,
|
|
176
|
+
handleClearSearch: handleChangeSearch,
|
|
177
|
+
errorQuantityProducts: errorQuantityProducts,
|
|
178
|
+
currentCart: currentCart,
|
|
179
|
+
productToIdLoading: productToIdLoading
|
|
180
|
+
}))) : /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
181
|
+
content: t('ERROR_NOT_FOUND_PRODUCTS_TIME', 'No products found at this time'),
|
|
182
|
+
btnTitle: t('SEARCH_REDIRECT', 'Go to Businesses'),
|
|
183
|
+
onClickButton: function onClickButton() {
|
|
184
|
+
return handleSearchRedirect();
|
|
185
|
+
}
|
|
186
|
+
})), isCartOnProductsList && (currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products2 = currentCart.products) === null || _currentCart$products2 === void 0 ? void 0 : _currentCart$products2.length) > 0 && /*#__PURE__*/_react.default.createElement(_Cart.Cart, {
|
|
187
|
+
isForceOpenCart: true,
|
|
188
|
+
cart: currentCart,
|
|
189
|
+
isCartPending: (currentCart === null || currentCart === void 0 ? void 0 : currentCart.status) === 2,
|
|
190
|
+
isProducts: currentCart.products.length,
|
|
191
|
+
isCartOnProductsList: isCartOnProductsList && (currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products3 = currentCart.products) === null || _currentCart$products3 === void 0 ? void 0 : _currentCart$products3.length) > 0,
|
|
192
|
+
handleCartOpen: function handleCartOpen(val) {
|
|
193
|
+
return _handleCartOpen(val);
|
|
194
|
+
}
|
|
195
|
+
})), businessLayout.layoutOne && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_BusinessBasicInformation.BusinessBasicInformation, {
|
|
196
|
+
businessState: businessState,
|
|
197
|
+
categoryState: categoryState,
|
|
198
|
+
searchValue: searchValue,
|
|
199
|
+
sortByValue: sortByValue,
|
|
200
|
+
handleChangeSearch: handleChangeSearch,
|
|
201
|
+
handleChangeSortBy: handleChangeSortBy,
|
|
202
|
+
errorQuantityProducts: errorQuantityProducts,
|
|
203
|
+
setOpenBusinessInformation: setOpenBusinessInformation,
|
|
204
|
+
openBusinessInformation: openBusinessInformation
|
|
205
|
+
}), !errorQuantityProducts ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoriesContainer, null, !((business === null || business === void 0 ? void 0 : (_business$categories2 = business.categories) === null || _business$categories2 === void 0 ? void 0 : _business$categories2.length) === 0 && !categoryId) && /*#__PURE__*/_react.default.createElement(BusinessLayout, {
|
|
206
|
+
component: "categories",
|
|
207
|
+
categories: [{
|
|
208
|
+
id: null,
|
|
209
|
+
name: t('ALL', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag5 = theme.defaultLanguages) === null || _theme$defaultLanguag5 === void 0 ? void 0 : _theme$defaultLanguag5.ALL) || 'All')
|
|
210
|
+
}, {
|
|
211
|
+
id: 'featured',
|
|
212
|
+
name: t('FEATURED', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag6 = theme.defaultLanguages) === null || _theme$defaultLanguag6 === void 0 ? void 0 : _theme$defaultLanguag6.FEATURED) || 'Featured')
|
|
213
|
+
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
214
|
+
return a.rank - b.rank;
|
|
215
|
+
}))),
|
|
216
|
+
categorySelected: categorySelected,
|
|
217
|
+
onClickCategory: onClickCategory,
|
|
218
|
+
featured: featuredProducts,
|
|
219
|
+
openBusinessInformation: openBusinessInformation,
|
|
220
|
+
openCategories: openCategories,
|
|
221
|
+
business: business
|
|
222
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoryProductWrapper, null, /*#__PURE__*/_react.default.createElement(BusinessLayout, {
|
|
223
|
+
component: "products_list",
|
|
224
|
+
categories: [{
|
|
225
|
+
id: null,
|
|
226
|
+
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')
|
|
227
|
+
}, {
|
|
228
|
+
id: 'featured',
|
|
229
|
+
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')
|
|
230
|
+
}].concat(_toConsumableArray(business === null || business === void 0 ? void 0 : business.categories.sort(function (a, b) {
|
|
231
|
+
return a.rank - b.rank;
|
|
232
|
+
}))),
|
|
233
|
+
category: categorySelected,
|
|
234
|
+
onClickCategory: onClickCategory,
|
|
235
|
+
categoriesState: props.categoriesState,
|
|
236
|
+
categoryState: categoryState,
|
|
237
|
+
businessId: business === null || business === void 0 ? void 0 : business.id,
|
|
238
|
+
errors: errors,
|
|
239
|
+
onProductClick: onProductClick,
|
|
240
|
+
handleSearchRedirect: handleSearchRedirect,
|
|
241
|
+
featured: featuredProducts,
|
|
242
|
+
searchValue: searchValue,
|
|
243
|
+
isCartOnProductsList: isCartOnProductsList && (currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products4 = currentCart.products) === null || _currentCart$products4 === void 0 ? void 0 : _currentCart$products4.length) > 0,
|
|
244
|
+
handleClearSearch: handleChangeSearch,
|
|
245
|
+
errorQuantityProducts: errorQuantityProducts,
|
|
246
|
+
business: business,
|
|
247
|
+
currentCart: currentCart
|
|
248
|
+
})))) : /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
|
|
249
|
+
content: t('ERROR_NOT_FOUND_PRODUCTS_TIME', 'No products found at this time'),
|
|
250
|
+
btnTitle: t('SEARCH_REDIRECT', 'Go to Businesses'),
|
|
251
|
+
onClickButton: function onClickButton() {
|
|
252
|
+
return handleSearchRedirect();
|
|
253
|
+
}
|
|
254
|
+
}))), isLoading && !isError && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_BusinessBasicInformation.BusinessBasicInformation, {
|
|
255
|
+
isSkeleton: true,
|
|
256
|
+
handler: handler,
|
|
257
|
+
businessState: {
|
|
258
|
+
business: {},
|
|
259
|
+
loading: true
|
|
260
|
+
},
|
|
261
|
+
openBusinessInformation: openBusinessInformation
|
|
262
|
+
}), /*#__PURE__*/_react.default.createElement(_styles.WrapContent, null, /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoriesContainer, null, /*#__PURE__*/_react.default.createElement(_BusinessProductsCategories.BusinessProductsCategories, {
|
|
263
|
+
isSkeleton: true,
|
|
264
|
+
categories: [],
|
|
265
|
+
openBusinessInformation: openBusinessInformation
|
|
266
|
+
})), /*#__PURE__*/_react.default.createElement(_styles.BusinessCategoryProductWrapper, null, /*#__PURE__*/_react.default.createElement(_BusinessProductsList.BusinessProductsList, {
|
|
267
|
+
categories: [],
|
|
268
|
+
category: categorySelected,
|
|
269
|
+
categoryState: categoryState,
|
|
270
|
+
isBusinessLoading: isLoading,
|
|
271
|
+
errorQuantityProducts: errorQuantityProducts,
|
|
272
|
+
productToIdLoading: productToIdLoading
|
|
273
|
+
})))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
|
|
274
|
+
width: "40%",
|
|
275
|
+
open: isCartModal,
|
|
276
|
+
onClose: function onClose() {
|
|
277
|
+
return setisCartModal(false);
|
|
278
|
+
},
|
|
279
|
+
padding: "0"
|
|
280
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.BusinessCartContent, {
|
|
281
|
+
isModal: true
|
|
282
|
+
}, /*#__PURE__*/_react.default.createElement(_styles.Title, {
|
|
283
|
+
style: {
|
|
284
|
+
textAlign: 'center',
|
|
285
|
+
marginTop: '5px'
|
|
286
|
+
}
|
|
287
|
+
}, t('YOUR_CART', 'Your cart')), (currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products5 = currentCart.products) === null || _currentCart$products5 === void 0 ? void 0 : _currentCart$products5.length) > 0 ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_Cart.Cart, {
|
|
288
|
+
isStore: true,
|
|
289
|
+
isCustomMode: true,
|
|
290
|
+
isForceOpenCart: true,
|
|
291
|
+
cart: currentCart,
|
|
292
|
+
isCartPending: (currentCart === null || currentCart === void 0 ? void 0 : currentCart.status) === 2,
|
|
293
|
+
isProducts: currentCart.products.length,
|
|
294
|
+
isCartOnProductsList: isCartOnProductsList,
|
|
295
|
+
handleCartOpen: _handleCartOpen
|
|
296
|
+
})) : /*#__PURE__*/_react.default.createElement(_styles.EmptyCart, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
297
|
+
className: "empty-content"
|
|
298
|
+
}, /*#__PURE__*/_react.default.createElement(_AiOutlineShoppingCart.default, null), /*#__PURE__*/_react.default.createElement("p", null, t('ADD_PRODUCTS_IN_YOUR_CART', 'Add products in your cart'))), /*#__PURE__*/_react.default.createElement(_styles.EmptyBtnWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, parsePrice(0)), /*#__PURE__*/_react.default.createElement(_Buttons.Button, null, t('EMPTY_CART', 'Empty cart')))))));
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
exports.RenderProductsLayout = RenderProductsLayout;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.WrappLayout = exports.WrapContent = exports.Title = exports.EmptyCart = exports.EmptyBtnWrapper = exports.BusinessCategoryProductWrapper = exports.BusinessCategoriesContainer = exports.BusinessCartContent = exports.BusinessCartContainer = void 0;
|
|
9
|
+
|
|
10
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
11
|
+
|
|
12
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13;
|
|
13
|
+
|
|
14
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
+
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
+
|
|
18
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
19
|
+
|
|
20
|
+
var Title = _styledComponents.default.h1(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n font-weight: 600;\n font-size: 20px;\n color: ", ";\n margin-bottom: 18px;\n"])), function (props) {
|
|
21
|
+
return props.theme.colors.darkTextColor;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
exports.Title = Title;
|
|
25
|
+
|
|
26
|
+
var WrappLayout = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n"])), function (_ref) {
|
|
27
|
+
var isCartOnProductsList = _ref.isCartOnProductsList;
|
|
28
|
+
return isCartOnProductsList && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n\n .bp-list,\n .cart {\n width: 100%;\n }\n\n @media (min-width: 870px) {\n flex-direction: row;\n .bp-list {\n width: 55%;\n }\n .cart {\n width: calc(45% - 20px);\n margin-left: 20px;\n }\n }\n\n @media (min-width: 1024px) {\n .bp-list {\n width: 60%;\n }\n .cart {\n width: calc(40% - 20px);\n }\n } \n\n @media (min-width: 1200px) {\n .bp-list {\n width: 70%;\n }\n .cart {\n width: calc(30% - 20px);\n }\n } \n "])));
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
exports.WrappLayout = WrappLayout;
|
|
32
|
+
|
|
33
|
+
var WrapContent = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background: ", ";\n margin: 0 auto;\n width: 91%;\n box-sizing: border-box;\n\n @media (min-width: 768px ){\n width: 85%;\n display: flex;\n justify-content: space-between;\n padding: 20px 0;\n }\n"])), function (props) {
|
|
34
|
+
return props.theme.colors.backgroundPage;
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
exports.WrapContent = WrapContent;
|
|
38
|
+
|
|
39
|
+
var BusinessCategoryProductWrapper = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 100%;\n\n /* Hide scrollbar for Chrome, Safari and Opera */\n .category-lists::-webkit-scrollbar {\n display: none;\n }\n\n /* Hide scrollbar for IE, Edge and Firefox */\n .category-lists {\n -ms-overflow-style: none;\n scrollbar-width: none;\n }\n\n @media (min-width: 1024px) {\n width: 70%;\n }\n"])));
|
|
40
|
+
|
|
41
|
+
exports.BusinessCategoryProductWrapper = BusinessCategoryProductWrapper;
|
|
42
|
+
|
|
43
|
+
var BusinessCategoriesContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 0;\n width: 100%;\n\n @media (min-width: 768px) {\n width: 30%;\n\n ", "\n }\n"])), function (props) {
|
|
44
|
+
var _props$theme;
|
|
45
|
+
|
|
46
|
+
return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rlt ? (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n padding-left: 25px;\n "]))) : (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n padding-right: 25px;\n "])));
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
exports.BusinessCategoriesContainer = BusinessCategoriesContainer;
|
|
50
|
+
var BusinessCartContainer = (0, _styledComponents.default)(BusinessCategoriesContainer)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n display: none;\n\n @media (min-width: 500px) {\n display: block;\n }\n"])));
|
|
51
|
+
exports.BusinessCartContainer = BusinessCartContainer;
|
|
52
|
+
|
|
53
|
+
var BusinessCartContent = _styledComponents.default.div(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n background: white;\n padding: 30px;\n position: relative;\n\n .product.accordion {\n margin: 0;\n }\n\n .accordion.active {\n padding: 10px 0;\n }\n\n ", "\n\n @media (min-width: 1200px) {\n position: sticky;\n top: 0;\n }\n\n @media (min-width: 768px) {\n padding: 35px 30px;\n }\n"])), function (_ref2) {
|
|
54
|
+
var isModal = _ref2.isModal;
|
|
55
|
+
return !isModal && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n border: 1px solid #E9ECEF;\n box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.12);\n border-radius: 7.6px;\n "])));
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
exports.BusinessCartContent = BusinessCartContent;
|
|
59
|
+
|
|
60
|
+
var EmptyCart = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n .empty-content {\n display: flex;\n flex-direction: column;\n align-items: center;\n\n svg {\n font-size: 45px;\n color: #B1BCCC;\n margin-top: 10px;\n }\n\n p {\n font-size: 14px;\n color: #B1BCCC;\n margin: 23px 0 0 0;\n }\n }\n"])));
|
|
61
|
+
|
|
62
|
+
exports.EmptyCart = EmptyCart;
|
|
63
|
+
|
|
64
|
+
var EmptyBtnWrapper = _styledComponents.default.div(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-top: 20px;\n\n span {\n font-weight: 600;\n font-size: 16px;\n color: ", ";\n }\n\n button {\n color: #748194;\n background: #F8F9FA;\n border: 1px solid #F8F9FA;\n border-radius: 7.6px;\n height: 44px;\n font-size: 14px;\n padding-left: 25px;\n padding-right: 25px;\n }\n"])), function (props) {
|
|
65
|
+
return props.theme.colors.darkTextColor;
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
exports.EmptyBtnWrapper = EmptyBtnWrapper;
|
|
@@ -237,7 +237,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
240
|
-
|
|
240
|
+
|
|
241
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
242
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
243
|
+
}
|
|
241
244
|
};
|
|
242
245
|
|
|
243
246
|
(0, _react.useEffect)(function () {
|
|
@@ -40,7 +40,11 @@ var SingleProductCard = function SingleProductCard(props) {
|
|
|
40
40
|
isSoldOut = props.isSoldOut,
|
|
41
41
|
isSkeleton = props.isSkeleton,
|
|
42
42
|
onProductClick = props.onProductClick,
|
|
43
|
-
isCartOnProductsList = props.isCartOnProductsList
|
|
43
|
+
isCartOnProductsList = props.isCartOnProductsList,
|
|
44
|
+
useCustomFunctionality = props.useCustomFunctionality,
|
|
45
|
+
onCustomClick = props.onCustomClick,
|
|
46
|
+
customText = props.customText,
|
|
47
|
+
customStyle = props.customStyle;
|
|
44
48
|
|
|
45
49
|
var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
|
|
46
50
|
_useLanguage2 = _slicedToArray(_useLanguage, 2),
|
|
@@ -86,10 +90,11 @@ var SingleProductCard = function SingleProductCard(props) {
|
|
|
86
90
|
}), /*#__PURE__*/_react.default.createElement(_styles.CardContainer, {
|
|
87
91
|
soldOut: isSoldOut || maxProductQuantity <= 0,
|
|
88
92
|
onClick: function onClick() {
|
|
89
|
-
return !isSkeleton && onProductClick(product);
|
|
93
|
+
return (!isSkeleton && !useCustomFunctionality && onProductClick && onProductClick(product) || useCustomFunctionality) && onCustomClick && onCustomClick();
|
|
90
94
|
},
|
|
91
|
-
isCartOnProductsList: isCartOnProductsList
|
|
92
|
-
|
|
95
|
+
isCartOnProductsList: isCartOnProductsList,
|
|
96
|
+
style: useCustomFunctionality && customStyle
|
|
97
|
+
}, !useCustomFunctionality && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.WrapLogo, null, /*#__PURE__*/_react.default.createElement(_styles.CardLogo, {
|
|
93
98
|
className: "image",
|
|
94
99
|
soldOut: isSoldOut || maxProductQuantity <= 0,
|
|
95
100
|
bgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || ((_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.product), 'h_200,c_limit')
|
|
@@ -104,7 +109,12 @@ var SingleProductCard = function SingleProductCard(props) {
|
|
|
104
109
|
width: 100
|
|
105
110
|
}), !isSkeleton ? /*#__PURE__*/_react.default.createElement("p", null, product === null || product === void 0 ? void 0 : product.description) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
106
111
|
width: 100
|
|
107
|
-
})), (isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement(_styles.SoldOut, null, t('SOLD_OUT', 'SOLD OUT')), cartAmount > 0 && /*#__PURE__*/_react.default.createElement(_styles.CartAmount, null, cartAmount)),
|
|
112
|
+
})), (isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement(_styles.SoldOut, null, t('SOLD_OUT', 'SOLD OUT')), cartAmount > 0 && /*#__PURE__*/_react.default.createElement(_styles.CartAmount, null, cartAmount)), useCustomFunctionality && customText && /*#__PURE__*/_react.default.createElement("span", {
|
|
113
|
+
style: {
|
|
114
|
+
fontSize: 16,
|
|
115
|
+
fontWeight: 500
|
|
116
|
+
}
|
|
117
|
+
}, customText)), (_props$afterComponent = props.afterComponents) === null || _props$afterComponent === void 0 ? void 0 : _props$afterComponent.map(function (AfterComponent, i) {
|
|
108
118
|
return /*#__PURE__*/_react.default.createElement(AfterComponent, _extends({
|
|
109
119
|
key: i
|
|
110
120
|
}, props));
|
|
@@ -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 () {
|
|
@@ -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 () {
|
|
@@ -272,7 +272,10 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
275
|
-
|
|
275
|
+
|
|
276
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
277
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
278
|
+
}
|
|
276
279
|
};
|
|
277
280
|
|
|
278
281
|
var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
|
|
@@ -257,7 +257,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
257
257
|
}
|
|
258
258
|
});
|
|
259
259
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
260
|
-
|
|
260
|
+
|
|
261
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
262
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
263
|
+
}
|
|
261
264
|
};
|
|
262
265
|
|
|
263
266
|
(0, _react.useEffect)(function () {
|
|
@@ -247,7 +247,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
250
|
-
|
|
250
|
+
|
|
251
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
252
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
253
|
+
}
|
|
251
254
|
};
|
|
252
255
|
|
|
253
256
|
(0, _react.useEffect)(function () {
|
|
@@ -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 () {
|
|
@@ -276,7 +276,10 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
279
|
-
|
|
279
|
+
|
|
280
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
281
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
282
|
+
}
|
|
280
283
|
};
|
|
281
284
|
|
|
282
285
|
var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
|
|
@@ -264,7 +264,10 @@ var SignUpFormUI = function SignUpFormUI(props) {
|
|
|
264
264
|
}
|
|
265
265
|
});
|
|
266
266
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
267
|
-
|
|
267
|
+
|
|
268
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
269
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
270
|
+
}
|
|
268
271
|
};
|
|
269
272
|
|
|
270
273
|
(0, _react.useEffect)(function () {
|
|
@@ -247,7 +247,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
250
|
-
|
|
250
|
+
|
|
251
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
252
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
253
|
+
}
|
|
251
254
|
};
|
|
252
255
|
|
|
253
256
|
(0, _react.useEffect)(function () {
|
|
@@ -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 () {
|
|
@@ -272,7 +272,10 @@ var LoginFormUI = function LoginFormUI(props) {
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
275
|
-
|
|
275
|
+
|
|
276
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
277
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
278
|
+
}
|
|
276
279
|
};
|
|
277
280
|
|
|
278
281
|
var handleChangePhoneNumber = function handleChangePhoneNumber(number, isValid) {
|
|
@@ -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 () {
|
|
@@ -248,7 +248,10 @@ var UserFormDetailsUI = function UserFormDetailsUI(props) {
|
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
250
|
formMethods.setValue('email', e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, ''));
|
|
251
|
-
|
|
251
|
+
|
|
252
|
+
if (emailInput !== null && emailInput !== void 0 && emailInput.current) {
|
|
253
|
+
emailInput.current.value = e.target.value.toLowerCase().replace(/[&,()%";:ç?<>{}\\[\]\s]/g, '');
|
|
254
|
+
}
|
|
252
255
|
};
|
|
253
256
|
|
|
254
257
|
(0, _react.useEffect)(function () {
|