@hhgtech/hhg-components 1.29.332-beta-2 → 1.29.332-beta-4
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/README.md +2 -0
- package/build/{LastPeriod-6172ea06.js → LastPeriod-a82459a8.js} +1 -1
- package/build/{MobileBottomNavigationIcon-c62e5d2f.js → MobileBottomNavigationIcon-5ff678d8.js} +3 -3
- package/build/{Spinner-220b4df5.js → Spinner-0f6d3906.js} +1 -1
- package/build/{WhatsApp-f4ba2c3a.js → WhatsApp-9e65c6bf.js} +1 -1
- package/build/adapters.js +19 -19
- package/build/atoms.js +46 -46
- package/build/babyGrowth.js +83 -83
- package/build/cache.js +2 -2
- package/build/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/mantine/text/index.d.ts +1 -1
- package/build/components/mantine/theme/other.d.ts +1 -1
- package/build/components/mantine/theme/text.d.ts +1 -0
- package/build/components.js +90 -90
- package/build/{constants-96011b5e.js → constants-8eadfb8a.js} +1 -1
- package/build/constants.js +3 -3
- package/build/constantsDomainLocales.js +1 -1
- package/build/constantsRiskScreener.js +2 -2
- package/build/constantsSite.js +2 -2
- package/build/{core-b9f5d30d.js → core-6bd1d348.js} +1 -1
- package/build/{dataTransform-2a2c0bcf.js → dataTransform-447da2fa.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-210e9c3d.js → editor-b74b5b9f.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/{LastPeriod-5977f75b.js → LastPeriod-61fc300e.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-2a178f75.js → MobileBottomNavigationIcon-438eca44.js} +3 -3
- package/build/esm/{Spinner-a5293db7.js → Spinner-884e7314.js} +1 -1
- package/build/esm/{WhatsApp-7274cfdd.js → WhatsApp-50da471b.js} +1 -1
- package/build/esm/adapters.js +19 -19
- package/build/esm/atoms.js +46 -46
- package/build/esm/babyGrowth.js +83 -83
- package/build/esm/cache.js +2 -2
- package/build/esm/care/components/organisms/bookingSearchBar/mobileTopbar/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSection/index.styled.d.ts +1 -1
- package/build/esm/care/components/organisms/bookingSearchBar/resultSectionItem/index.styled.d.ts +1 -1
- package/build/esm/care.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components/mantine/text/index.d.ts +1 -1
- package/build/esm/components/mantine/theme/other.d.ts +1 -1
- package/build/esm/components/mantine/theme/text.d.ts +1 -0
- package/build/esm/components.js +90 -90
- package/build/esm/{constants-9c146dd4.js → constants-4d6ed3e6.js} +1 -1
- package/build/esm/constants.js +3 -3
- package/build/esm/constantsDomainLocales.js +1 -1
- package/build/esm/constantsRiskScreener.js +2 -2
- package/build/esm/constantsSite.js +2 -2
- package/build/esm/{core-f4994b1f.js → core-e9cde970.js} +1 -1
- package/build/esm/{dataTransform-162e63dc.js → dataTransform-ef3297e6.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-0d5649f0.js → editor-03c6f542.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +23 -23
- package/build/esm/embeddedHeathToolCards_babyPoop.js +19 -19
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +22 -22
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +25 -25
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +25 -25
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +22 -22
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +22 -22
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +26 -26
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +27 -27
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-704d508d.js → index-0bf34781.js} +13 -13
- package/build/esm/{index-dcd2bd6a.js → index-0f434d33.js} +2 -2
- package/build/esm/{index-31da2aa3.js → index-13796584.js} +2 -2
- package/build/esm/{index-943c8111.js → index-165ff7d4.js} +18 -18
- package/build/esm/{index-0b5cab3a.js → index-1e502597.js} +15 -15
- package/build/esm/{index-ddd4ba66.js → index-21adebd4.js} +3 -3
- package/build/esm/{index-db770f1c.js → index-2214b571.js} +3 -3
- package/build/esm/{index-faef630d.js → index-238caa70.js} +2 -2
- package/build/esm/{index-b953fc77.js → index-25b497fa.js} +2 -2
- package/build/esm/{index-7e62ec12.js → index-2f5ea5d9.js} +3 -3
- package/build/esm/{index-f8665258.js → index-30bbf339.js} +2 -2
- package/build/esm/{index-c27b7687.js → index-35db2c21.js} +3 -3
- package/build/esm/{index-040a7079.js → index-3daf35c8.js} +13 -13
- package/build/esm/{index-178a46aa.js → index-411260a7.js} +20 -20
- package/build/esm/{index-e4b06b36.js → index-43bf40bc.js} +10 -10
- package/build/esm/{index-cbd6dc55.js → index-43d25b05.js} +3 -3
- package/build/esm/{index-7d68e0c5.js → index-488e1d7e.js} +2 -2
- package/build/esm/{index-b2596856.js → index-4d00149d.js} +2 -2
- package/build/esm/{index-a3ed7040.js → index-4eade6cc.js} +2 -2
- package/build/esm/{index-c272a3ed.js → index-5081a25e.js} +6 -6
- package/build/esm/{index-180c1351.js → index-50d0e711.js} +13 -13
- package/build/esm/{index-c26d9fb3.js → index-56160a77.js} +5 -5
- package/build/esm/{index-428e7f16.js → index-58690e64.js} +16 -16
- package/build/esm/{index-50bbd74c.js → index-5a5f4e7f.js} +1 -1
- package/build/esm/{index-cfebe807.js → index-62bd2fa3.js} +2 -2
- package/build/esm/{index-79f07b9d.js → index-62f03c68.js} +2 -2
- package/build/esm/{index-fb5b2cdf.js → index-65911409.js} +1 -1
- package/build/esm/{index-eb5365af.js → index-68457456.js} +16 -16
- package/build/esm/{index-a82add16.js → index-6c7afd07.js} +21 -21
- package/build/esm/{index-13265cec.js → index-6f3d7a2c.js} +2 -2
- package/build/esm/{index-9d796b61.js → index-6fe7f4c1.js} +6 -6
- package/build/esm/{index-87faecba.js → index-7b6c9059.js} +16 -16
- package/build/esm/{index-025e3fe2.js → index-7f88daad.js} +17 -17
- package/build/esm/{index-f7fa4b2c.js → index-80dd6543.js} +6 -6
- package/build/esm/{index-b2387910.js → index-86763293.js} +30 -30
- package/build/esm/{index-6c0bddde.js → index-88075c5c.js} +11 -11
- package/build/esm/{index-7ee530c1.js → index-8d3fd3c9.js} +1 -1
- package/build/esm/{index-c0c17984.js → index-90f90a00.js} +4 -4
- package/build/esm/{index-28b75011.js → index-93f56c3e.js} +1 -1
- package/build/esm/{index-c830eb81.js → index-953f74f7.js} +3 -3
- package/build/esm/{index-c94a8792.js → index-9935b988.js} +17 -17
- package/build/esm/{index-ce93b5ca.js → index-9c7277e4.js} +26 -26
- package/build/esm/{index-6a1f8712.js → index-a032daac.js} +7 -7
- package/build/esm/{index-77748643.js → index-acf56d84.js} +1 -1
- package/build/esm/{index-0aebcbd7.js → index-af00b334.js} +18 -18
- package/build/esm/{index-27f048b9.js → index-b1028393.js} +24 -24
- package/build/esm/{index-9e775518.js → index-b16db17a.js} +6 -6
- package/build/esm/{index-0cbd934c.js → index-b1a01504.js} +2 -2
- package/build/esm/{index-cb6af1a9.js → index-b776445e.js} +1 -1
- package/build/esm/{index-192a22c1.js → index-bb65f8c6.js} +3 -3
- package/build/esm/{index-0a0e307d.js → index-be05498c.js} +7 -7
- package/build/esm/{index-dfda146e.js → index-ce1cd588.js} +1 -1
- package/build/esm/{index-e6eb1bfe.js → index-cea0e867.js} +16 -16
- package/build/esm/{index-cf22b9bb.js → index-d18c6d2e.js} +2 -2
- package/build/esm/{index-39d88505.js → index-d6dcf834.js} +15 -15
- package/build/esm/{index-348d1b17.js → index-da7ae8ec.js} +32 -32
- package/build/esm/{index-22410751.js → index-e291b1c0.js} +5 -5
- package/build/esm/{index-1a0cb565.js → index-e84c5ac5.js} +24 -24
- package/build/esm/{index-6863d2e3.js → index-ea5e5636.js} +13 -13
- package/build/esm/{index-ed1d0be7.js → index-ec1e1d33.js} +17 -17
- package/build/esm/{index-26a7a617.js → index-faad5133.js} +1 -1
- package/build/esm/index.js +112 -112
- package/build/esm/{labelSorting-969895e6.js → labelSorting-f6bf667e.js} +4 -4
- package/build/esm/lead.js +24 -24
- package/build/esm/{logoIcon-de6aaf63.js → logoIcon-ce8a5fac.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +16 -16
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +69 -69
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +40 -40
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +44 -44
- package/build/esm/{other-d8ec0292.js → other-7613ccde.js} +1 -0
- package/build/esm/{post-d886cd47.js → post-5201b821.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/featureFlag.d.ts +2 -0
- package/build/esm/ssoV2/api/index.d.ts +1 -0
- package/build/esm/ssoV2/api/paths.d.ts +7 -0
- package/build/esm/ssoV2/api/whatsapp.d.ts +6 -0
- package/build/esm/ssoV2/screens/components/progressBar.d.ts +3 -1
- package/build/esm/ssoV2/screens/components/whatsapp.d.ts +5 -0
- package/build/esm/ssoV2/screens/first/firstBFlow.d.ts +12 -0
- package/build/esm/ssoV2/screens/first/policyContent.d.ts +8 -0
- package/build/esm/ssoV2/screens/otp.d.ts +1 -1
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +9 -1
- package/build/esm/ssoV2/utils.d.ts +3 -0
- package/build/esm/ssoV2.js +523 -107
- package/build/esm/{store-f112828b.js → store-566d95dc.js} +114 -9
- package/build/esm/subot.js +33 -33
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-8460012b.js → surveyThankyouCard-91cf2a96.js} +5 -5
- package/build/esm/together.js +53 -53
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +48 -48
- package/build/esm/togetherMoleculesCardAuthor.js +27 -27
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +37 -37
- package/build/esm/togetherOrganisms.js +47 -47
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-0ff6d75f.js → treePopoverMenu-129dd92f.js} +19 -19
- package/build/esm/{types-805fd34e.js → types-e0e4c3c2.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-f5178d2c.js → useCategory-fd7b35cf.js} +5 -5
- package/build/esm/{useHealthToolCache-d7232c11.js → useHealthToolCache-de2c42ff.js} +1 -1
- package/build/esm/{useMantineLocale-1036f1bc.js → useMantineLocale-d96f1e4f.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-cfd67016.js → usePlacesAutocomplete-5f11f236.js} +1 -1
- package/build/esm/{useScreenSize-6c204f26.js → useScreenSize-01824397.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-97c3048c.js → utils-31a31427.js} +2 -2
- package/build/esm/{utils-67d21524.js → utils-370f201b.js} +2 -2
- package/build/esm/{utils-6252f32d.js → utils-72c89e53.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-0198d5bf.js → index-029fb1b2.js} +32 -32
- package/build/{index-00f24ae0.js → index-032a622c.js} +6 -6
- package/build/{index-09f263eb.js → index-07e03cbc.js} +26 -26
- package/build/{index-1ffdbf81.js → index-09a56719.js} +17 -17
- package/build/{index-79ff428c.js → index-105da7a8.js} +3 -3
- package/build/{index-a2eedf15.js → index-11b25c56.js} +2 -2
- package/build/{index-790b58fc.js → index-17ec1293.js} +18 -18
- package/build/{index-dc3a5d87.js → index-19c67526.js} +2 -2
- package/build/{index-7930a85b.js → index-1d5a1d35.js} +2 -2
- package/build/{index-d14c390c.js → index-1ef710aa.js} +2 -2
- package/build/{index-01caff4f.js → index-204ed49f.js} +16 -16
- package/build/{index-119e18e1.js → index-22cab0de.js} +11 -11
- package/build/{index-90013360.js → index-231452b4.js} +24 -24
- package/build/{index-ba781174.js → index-23964dc2.js} +6 -6
- package/build/{index-6f6bc4e5.js → index-2583128d.js} +21 -21
- package/build/{index-692f90c7.js → index-34504219.js} +1 -1
- package/build/{index-924708c6.js → index-3482e080.js} +18 -18
- package/build/{index-728d1e29.js → index-368bebdb.js} +13 -13
- package/build/{index-965888fd.js → index-3ad88e9e.js} +2 -2
- package/build/{index-ac350dac.js → index-3cbd26ab.js} +13 -13
- package/build/{index-26d24411.js → index-3f1ddea9.js} +2 -2
- package/build/{index-3e0b631b.js → index-40dfbcd1.js} +6 -6
- package/build/{index-4fc006ee.js → index-4634f734.js} +30 -30
- package/build/{index-f91a9053.js → index-48a76e52.js} +2 -2
- package/build/{index-ca99427b.js → index-4eec48a6.js} +4 -4
- package/build/{index-f7bbfbd9.js → index-4ffa422c.js} +5 -5
- package/build/{index-a72d5b86.js → index-579fe946.js} +3 -3
- package/build/{index-2ca1f57d.js → index-5c4e1688.js} +20 -20
- package/build/{index-b7d8b868.js → index-633d3e7a.js} +2 -2
- package/build/{index-9c1a3c0e.js → index-6b60e418.js} +3 -3
- package/build/{index-3b897c5c.js → index-6fff07bd.js} +6 -6
- package/build/{index-6dc7665b.js → index-719a45ed.js} +7 -7
- package/build/{index-3be445d4.js → index-82738b25.js} +3 -3
- package/build/{index-80cc4168.js → index-82dd24bb.js} +1 -1
- package/build/{index-3f43ebff.js → index-877f8bc1.js} +16 -16
- package/build/{index-f33166bd.js → index-89d2e6ea.js} +17 -17
- package/build/{index-2100291a.js → index-9014a9aa.js} +3 -3
- package/build/{index-805d3208.js → index-933eafe4.js} +2 -2
- package/build/{index-d7df785e.js → index-971ede0a.js} +1 -1
- package/build/{index-321a21c6.js → index-988449fe.js} +2 -2
- package/build/{index-19d9b5b6.js → index-9c9e1fc8.js} +15 -15
- package/build/{index-e8f3c85d.js → index-a0941a4a.js} +1 -1
- package/build/{index-47f85472.js → index-a77b1b14.js} +10 -10
- package/build/{index-ac6a67eb.js → index-b05b6fb4.js} +7 -7
- package/build/{index-7b305dc2.js → index-bb90f2ab.js} +1 -1
- package/build/{index-3307139e.js → index-c0dddd3d.js} +1 -1
- package/build/{index-00a36e21.js → index-c31f1cbd.js} +3 -3
- package/build/{index-b1bceaf2.js → index-c862b61a.js} +15 -15
- package/build/{index-0be3d057.js → index-cc062c87.js} +1 -1
- package/build/{index-adde712c.js → index-d4e463c1.js} +13 -13
- package/build/{index-8a6bec1a.js → index-da84de2e.js} +3 -3
- package/build/{index-3e1add94.js → index-de7b04fb.js} +24 -24
- package/build/{index-5688f514.js → index-e58d76f1.js} +5 -5
- package/build/{index-c01567d6.js → index-e688abbb.js} +2 -2
- package/build/{index-7a1ad389.js → index-ed2bb521.js} +2 -2
- package/build/{index-00a5156b.js → index-f35c0223.js} +2 -2
- package/build/{index-2b47f6da.js → index-f38d7073.js} +1 -1
- package/build/{index-21ffaf8c.js → index-f4beee30.js} +17 -17
- package/build/{index-b93745ff.js → index-f66a826c.js} +16 -16
- package/build/{index-d6c31b0f.js → index-fb520c45.js} +16 -16
- package/build/{index-5e2bf851.js → index-fb78c4b8.js} +13 -13
- package/build/index.js +112 -112
- package/build/{labelSorting-56bfc813.js → labelSorting-cad5b41e.js} +4 -4
- package/build/lead.js +24 -24
- package/build/{logoIcon-e3a0433c.js → logoIcon-09b80183.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +16 -16
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +69 -69
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +40 -40
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +44 -44
- package/build/{other-49d7d04c.js → other-c4c46533.js} +1 -0
- package/build/{post-96345ec1.js → post-95291c12.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/featureFlag.d.ts +2 -0
- package/build/ssoV2/api/index.d.ts +1 -0
- package/build/ssoV2/api/paths.d.ts +7 -0
- package/build/ssoV2/api/whatsapp.d.ts +6 -0
- package/build/ssoV2/screens/components/progressBar.d.ts +3 -1
- package/build/ssoV2/screens/components/whatsapp.d.ts +5 -0
- package/build/ssoV2/screens/first/firstBFlow.d.ts +12 -0
- package/build/ssoV2/screens/first/policyContent.d.ts +8 -0
- package/build/ssoV2/screens/otp.d.ts +1 -1
- package/build/ssoV2/ssoStateManager/store.d.ts +9 -1
- package/build/ssoV2/utils.d.ts +3 -0
- package/build/ssoV2.js +534 -118
- package/build/{store-7f5903a1.js → store-86ea7a53.js} +114 -8
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-96632c79.js → surveyThankyouCard-a0e716c0.js} +5 -5
- package/build/together.js +53 -53
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +48 -48
- package/build/togetherMoleculesCardAuthor.js +27 -27
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +37 -37
- package/build/togetherOrganisms.js +47 -47
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-df55543d.js → treePopoverMenu-31c4a0e6.js} +19 -19
- package/build/{types-31d6718e.js → types-a8d14622.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-cde5dad1.js → useCategory-d7a6bc8b.js} +5 -5
- package/build/{useHealthToolCache-90b7283a.js → useHealthToolCache-0c1e1314.js} +1 -1
- package/build/{useMantineLocale-1e39b18b.js → useMantineLocale-2d77aba2.js} +6 -6
- package/build/{usePlacesAutocomplete-04d276ae.js → usePlacesAutocomplete-0d29b94c.js} +1 -1
- package/build/{useScreenSize-42737a5f.js → useScreenSize-701825b1.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-f7446c9b.js → utils-2da87bd8.js} +2 -2
- package/build/{utils-a4b3e470.js → utils-4a39f47d.js} +3 -3
- package/build/{utils-64a0cb14.js → utils-a817ecf9.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-dd2135df.js → BMI_BOYS.percentile.monthly-76691ef0.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-eb2773ba.js → BMI_BOYS.percentile.weekly-c6144029.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-acc1a4b3.js → BMI_BOYS.percentile.yearly-22db59bf.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-f8f80115.js → BMI_BOYS.zscore.monthly-4d614f5a.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-3c8260c3.js → BMI_BOYS.zscore.weekly-8de687a0.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-9af2ae1f.js → BMI_BOYS.zscore.yearly-26e5b781.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-27f4cae3.js → BMI_GIRLS.percentile.monthly-7f7cff1a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-3b4df93f.js → BMI_GIRLS.percentile.weekly-76937830.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-be346ca4.js → BMI_GIRLS.percentile.yearly-04a06349.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-de183391.js → BMI_GIRLS.zscore.monthly-5b35812b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-8a7ed9e6.js → BMI_GIRLS.zscore.weekly-f8aa6799.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-1121093a.js → BMI_GIRLS.zscore.yearly-9c61be2e.js} +0 -0
- /package/build/{ChevronDown-f65951ef.js → ChevronDown-b242bfcd.js} +0 -0
- /package/build/{Close-72999ba9.js → Close-79ba57fc.js} +0 -0
- /package/build/{Google-e2baeeee.js → Google-f2a4fc53.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-28af6346.js → HEAD CIRCUM_BOYS.percentile.monthly-cd016763.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-00cd7982.js → HEAD CIRCUM_BOYS.percentile.weekly-eeb7c31b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-e492e1c3.js → HEAD CIRCUM_BOYS.percentile.yearly-b15c47b9.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-251c6551.js → HEAD CIRCUM_BOYS.zscore.monthly-ee66befe.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-930a88fa.js → HEAD CIRCUM_BOYS.zscore.weekly-db5a7708.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-8b4001b4.js → HEAD CIRCUM_BOYS.zscore.yearly-525b2754.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-35dd9ade.js → HEAD CIRCUM_GIRLS.percentile.monthly-3a4b4584.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-1452edc9.js → HEAD CIRCUM_GIRLS.percentile.weekly-d74a371f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-4a5e26d6.js → HEAD CIRCUM_GIRLS.percentile.yearly-90c01d3e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-d51586ec.js → HEAD CIRCUM_GIRLS.zscore.monthly-1031b58f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-8ccd4348.js → HEAD CIRCUM_GIRLS.zscore.weekly-6df08f74.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4ddf2b3f.js → HEAD CIRCUM_GIRLS.zscore.yearly-ce5699b4.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-136139b4.js → HEIGHT_BOYS.percentile.monthly-27b92492.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-cbdac401.js → HEIGHT_BOYS.percentile.weekly-77ca892a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-19033b85.js → HEIGHT_BOYS.percentile.yearly-260f3ff3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-f692abdf.js → HEIGHT_BOYS.zscore.monthly-0edbd9c9.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-e2acd3bf.js → HEIGHT_BOYS.zscore.weekly-cf3910a1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-f9b55cb0.js → HEIGHT_BOYS.zscore.yearly-2b3a48df.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-0ae73719.js → HEIGHT_GIRLS.percentile.monthly-44be4968.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-290b0c54.js → HEIGHT_GIRLS.percentile.weekly-215262bb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-c0a7d542.js → HEIGHT_GIRLS.percentile.yearly-c6b51c63.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-ccf86958.js → HEIGHT_GIRLS.zscore.monthly-b72448b9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-eeb4d771.js → HEIGHT_GIRLS.zscore.weekly-60a843dd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-ae7229c1.js → HEIGHT_GIRLS.zscore.yearly-bc03c89d.js} +0 -0
- /package/build/{Locale-29c4aa10.js → Locale-c99e0a99.js} +0 -0
- /package/build/{Visible-cc2f13cd.js → Visible-0a285eb1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-911fd0aa.js → WEIGHT_BOYS.percentile.monthly-4bf398e1.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-d1e77dc4.js → WEIGHT_BOYS.percentile.weekly-7be15cf8.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f171d8fd.js → WEIGHT_BOYS.percentile.yearly-0cb32324.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-64b86646.js → WEIGHT_BOYS.zscore.monthly-c7bd6ad8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-23da7dbb.js → WEIGHT_BOYS.zscore.weekly-ddbfd95d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-9348f61a.js → WEIGHT_BOYS.zscore.yearly-4f54e2d6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-b779c2d2.js → WEIGHT_GIRLS.percentile.monthly-357c7719.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-4db69085.js → WEIGHT_GIRLS.percentile.weekly-df11a6ba.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-8c79fb45.js → WEIGHT_GIRLS.percentile.yearly-4c18ad05.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b617718d.js → WEIGHT_GIRLS.zscore.monthly-f238e478.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-05e8be91.js → WEIGHT_GIRLS.zscore.weekly-59e7f6e6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-649d3075.js → WEIGHT_GIRLS.zscore.yearly-968fc979.js} +0 -0
- /package/build/{animation-c88c01c5.js → animation-6258a058.js} +0 -0
- /package/build/{constants-7ad2d737.js → constants-3b129300.js} +0 -0
- /package/build/{constants-b80f312a.js → constants-a88fc73a.js} +0 -0
- /package/build/{constants-9e097d03.js → constants-f1e84e0d.js} +0 -0
- /package/build/{dataTransform-aa3a190f.js → dataTransform-303c740e.js} +0 -0
- /package/build/{doctor-04a2b037.js → doctor-d94f35b6.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-dac06638.js → BMI_BOYS.percentile.monthly-0a10310e.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b09b104e.js → BMI_BOYS.percentile.weekly-5a8487e7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8d2bbf26.js → BMI_BOYS.percentile.yearly-121aab55.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-ff83b34e.js → BMI_BOYS.zscore.monthly-10c627c8.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-f8f2e38e.js → BMI_BOYS.zscore.weekly-357cace7.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-e3f86867.js → BMI_BOYS.zscore.yearly-eeaa3ad4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-693387f7.js → BMI_GIRLS.percentile.monthly-766add8a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-9cdff5f9.js → BMI_GIRLS.percentile.weekly-051338a4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-6da73623.js → BMI_GIRLS.percentile.yearly-594038fb.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-49729d6a.js → BMI_GIRLS.zscore.monthly-60468bf3.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7410f0ae.js → BMI_GIRLS.zscore.weekly-a3ded222.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7369215f.js → BMI_GIRLS.zscore.yearly-21eb9621.js} +0 -0
- /package/build/esm/{ChevronDown-d925d7d1.js → ChevronDown-e7154651.js} +0 -0
- /package/build/esm/{Close-e745eca7.js → Close-29caa076.js} +0 -0
- /package/build/esm/{Google-f5cf8cd1.js → Google-defb80e8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-697c6eba.js → HEAD CIRCUM_BOYS.percentile.monthly-0bba516e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-0d52dfc7.js → HEAD CIRCUM_BOYS.percentile.weekly-6b565839.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-3b224b30.js → HEAD CIRCUM_BOYS.percentile.yearly-1a820964.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-cfe010db.js → HEAD CIRCUM_BOYS.zscore.monthly-c494c49d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-957869f3.js → HEAD CIRCUM_BOYS.zscore.weekly-c0c28771.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b97d2672.js → HEAD CIRCUM_BOYS.zscore.yearly-bf258b1a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-f65d9d43.js → HEAD CIRCUM_GIRLS.percentile.monthly-40544800.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-e14df14e.js → HEAD CIRCUM_GIRLS.percentile.weekly-f426b711.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-b013bb58.js → HEAD CIRCUM_GIRLS.percentile.yearly-4de5c86b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-e8ed167d.js → HEAD CIRCUM_GIRLS.zscore.monthly-9465cfac.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-297b44a0.js → HEAD CIRCUM_GIRLS.zscore.weekly-57a639f1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1d077df4.js → HEAD CIRCUM_GIRLS.zscore.yearly-af9e6100.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3f1b9fd5.js → HEIGHT_BOYS.percentile.monthly-7e59c21c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-6da81195.js → HEIGHT_BOYS.percentile.weekly-27446ffe.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-72639770.js → HEIGHT_BOYS.percentile.yearly-deeb5fb7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-1c413f4d.js → HEIGHT_BOYS.zscore.monthly-9f29f064.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-572dbefe.js → HEIGHT_BOYS.zscore.weekly-1e156c8b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-43999b94.js → HEIGHT_BOYS.zscore.yearly-abae6f13.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-601fc33a.js → HEIGHT_GIRLS.percentile.monthly-35cf7af6.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-9e8a6eb2.js → HEIGHT_GIRLS.percentile.weekly-99bdf7c8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-7f0eff10.js → HEIGHT_GIRLS.percentile.yearly-f857be09.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-394d3747.js → HEIGHT_GIRLS.zscore.monthly-7ae73254.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3ca42552.js → HEIGHT_GIRLS.zscore.weekly-3d506146.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c126d249.js → HEIGHT_GIRLS.zscore.yearly-3af42a17.js} +0 -0
- /package/build/esm/{Locale-9c9185ab.js → Locale-48643fe4.js} +0 -0
- /package/build/esm/{Visible-076218f9.js → Visible-966a6491.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c9e47a21.js → WEIGHT_BOYS.percentile.monthly-7944e527.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fd131d92.js → WEIGHT_BOYS.percentile.weekly-15472c9b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-70795bd9.js → WEIGHT_BOYS.percentile.yearly-a43dbc93.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-1e3ec477.js → WEIGHT_BOYS.zscore.monthly-a51a590b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8efa19e8.js → WEIGHT_BOYS.zscore.weekly-edb5af6f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-7e44b1e1.js → WEIGHT_BOYS.zscore.yearly-85db7230.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-63523ce1.js → WEIGHT_GIRLS.percentile.monthly-a5859ba5.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3bc7aaad.js → WEIGHT_GIRLS.percentile.weekly-793d4e71.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-1a7c8145.js → WEIGHT_GIRLS.percentile.yearly-f67a9415.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-0136fc57.js → WEIGHT_GIRLS.zscore.monthly-1541716a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f1399b90.js → WEIGHT_GIRLS.zscore.weekly-a0f94018.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a4632d64.js → WEIGHT_GIRLS.zscore.yearly-f222c833.js} +0 -0
- /package/build/esm/{animation-fbd82fe7.js → animation-1a653afa.js} +0 -0
- /package/build/esm/{constants-b66a28d0.js → constants-5f0cce78.js} +0 -0
- /package/build/esm/{constants-d3f09dbf.js → constants-ce83a264.js} +0 -0
- /package/build/esm/{constants-6a441f8c.js → constants-e3e2d444.js} +0 -0
- /package/build/esm/{dataTransform-12801895.js → dataTransform-c1a2a30a.js} +0 -0
- /package/build/esm/{doctor-a79990d3.js → doctor-bca54db0.js} +0 -0
- /package/build/esm/{index-93a209fc.js → index-01a6373c.js} +0 -0
- /package/build/esm/{index-73385afa.js → index-2348acb2.js} +0 -0
- /package/build/esm/{index-695a4f3e.js → index-2910bb37.js} +0 -0
- /package/build/esm/{index-283c3c12.js → index-37852d81.js} +0 -0
- /package/build/esm/{index-797495df.js → index-4c756f48.js} +0 -0
- /package/build/esm/{index-1bc048c5.js → index-6822f3c9.js} +0 -0
- /package/build/esm/{index-df36821b.js → index-9dedb3b6.js} +0 -0
- /package/build/esm/{index-389818db.js → index-a3a8fa0f.js} +0 -0
- /package/build/esm/{index-ef772cb5.js → index-ffde2760.js} +0 -0
- /package/build/esm/{index.styles-3afea8f8.js → index.styles-5ebdd460.js} +0 -0
- /package/build/esm/{localizeNumberFormat-d9bd744b.js → localizeNumberFormat-c431bf5e.js} +0 -0
- /package/build/esm/{normalizeLink-716ad4a9.js → normalizeLink-bde0d583.js} +0 -0
- /package/build/esm/{paths-352a80c6.js → paths-01f66b7e.js} +0 -0
- /package/build/esm/{translationsContext-b994af79.js → translationsContext-02b2a691.js} +0 -0
- /package/build/esm/{tslib.es6-110835f1.js → tslib.es6-0a88f03a.js} +0 -0
- /package/build/esm/{types-599548f3.js → types-9b35481f.js} +0 -0
- /package/build/esm/{useIsInit-3f173f7d.js → useIsInit-1f8bc2a4.js} +0 -0
- /package/build/esm/{useOutsideClick-16c6ae64.js → useOutsideClick-03e93ef6.js} +0 -0
- /package/build/esm/{useScrollbarSize-4b136d1e.js → useScrollbarSize-671f62c5.js} +0 -0
- /package/build/esm/{useUniqueId-fd9caff9.js → useUniqueId-feead24d.js} +0 -0
- /package/build/esm/{utils-33bf1d9a.js → utils-700efe65.js} +0 -0
- /package/build/{index-a44b2a4f.js → index-095cead5.js} +0 -0
- /package/build/{index-2b248cb9.js → index-0e85a04a.js} +0 -0
- /package/build/{index-bc42ce4b.js → index-161f6d34.js} +0 -0
- /package/build/{index-1e8f6d92.js → index-37b8d861.js} +0 -0
- /package/build/{index-3b70649c.js → index-59478452.js} +0 -0
- /package/build/{index-72bb28e1.js → index-5f5c2c3b.js} +0 -0
- /package/build/{index-a080550f.js → index-b2389c59.js} +0 -0
- /package/build/{index-dbd9101a.js → index-e4d08a4e.js} +0 -0
- /package/build/{index-ba44f30e.js → index-e8d3dc9c.js} +0 -0
- /package/build/{index.styles-7c549786.js → index.styles-25928d6e.js} +0 -0
- /package/build/{localizeNumberFormat-d376aa33.js → localizeNumberFormat-8b54d797.js} +0 -0
- /package/build/{normalizeLink-78099ea1.js → normalizeLink-ac8fab6c.js} +0 -0
- /package/build/{paths-6891bc5d.js → paths-ba70c952.js} +0 -0
- /package/build/{translationsContext-bcf08185.js → translationsContext-847c20c0.js} +0 -0
- /package/build/{tslib.es6-af233969.js → tslib.es6-3a0325d0.js} +0 -0
- /package/build/{types-f28e0ad8.js → types-21cb9709.js} +0 -0
- /package/build/{useIsInit-6f684b16.js → useIsInit-4f74ac14.js} +0 -0
- /package/build/{useOutsideClick-fec97459.js → useOutsideClick-87325b9d.js} +0 -0
- /package/build/{useScrollbarSize-ecc5d833.js → useScrollbarSize-109b690d.js} +0 -0
- /package/build/{useUniqueId-69a422c8.js → useUniqueId-b4dd505c.js} +0 -0
- /package/build/{utils-bfae5c4f.js → utils-835b5f8e.js} +0 -0
package/build/ssoV2.js
CHANGED
|
@@ -2,58 +2,58 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var tslib_es6 = require('./tslib.es6-
|
|
5
|
+
var tslib_es6 = require('./tslib.es6-3a0325d0.js');
|
|
6
6
|
var React = require('react');
|
|
7
|
-
var
|
|
8
|
-
var
|
|
7
|
+
var miscCookieHelper = require('./miscCookieHelper.js');
|
|
8
|
+
var index$6 = require('./index-22cab0de.js');
|
|
9
|
+
var store = require('./store-86ea7a53.js');
|
|
9
10
|
var arrow = require('@hhgtech/icons/arrow');
|
|
10
11
|
var core$1 = require('@hhgtech/icons/core');
|
|
11
|
-
var index$2 = require('./index-
|
|
12
|
-
var logoIcon = require('./logoIcon-
|
|
13
|
-
var index$4 = require('./index-
|
|
14
|
-
var index$1 = require('./index-
|
|
12
|
+
var index$2 = require('./index-ed2bb521.js');
|
|
13
|
+
var logoIcon = require('./logoIcon-09b80183.js');
|
|
14
|
+
var index$4 = require('./index-3f1ddea9.js');
|
|
15
|
+
var index$1 = require('./index-988449fe.js');
|
|
15
16
|
var core = require('@mantine/core');
|
|
16
17
|
require('@mantine/dates');
|
|
17
|
-
require('./index-
|
|
18
|
-
require('./index-
|
|
19
|
-
var useMantineLocale = require('./useMantineLocale-
|
|
20
|
-
var index$3 = require('./index-
|
|
21
|
-
var index = require('./index-
|
|
18
|
+
require('./index-82dd24bb.js');
|
|
19
|
+
var index$5 = require('./index-e8d3dc9c.js');
|
|
20
|
+
var useMantineLocale = require('./useMantineLocale-2d77aba2.js');
|
|
21
|
+
var index$3 = require('./index-3ad88e9e.js');
|
|
22
|
+
var index = require('./index-bb90f2ab.js');
|
|
22
23
|
require('@mantine/hooks');
|
|
23
|
-
require('./utils-
|
|
24
|
-
require('./other-
|
|
25
|
-
require('./index-
|
|
26
|
-
var Locale = require('./Locale-
|
|
27
|
-
var
|
|
24
|
+
require('./utils-835b5f8e.js');
|
|
25
|
+
require('./other-c4c46533.js');
|
|
26
|
+
require('./index-da84de2e.js');
|
|
27
|
+
var Locale = require('./Locale-c99e0a99.js');
|
|
28
|
+
var useScreenSize = require('./useScreenSize-701825b1.js');
|
|
29
|
+
var Google = require('./Google-f2a4fc53.js');
|
|
28
30
|
var PhoneInputBase = require('react-phone-number-input');
|
|
31
|
+
var index$7 = require('./index-82738b25.js');
|
|
32
|
+
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
29
33
|
var styled = require('@emotion/styled');
|
|
30
34
|
var cn = require('classnames');
|
|
31
35
|
var other = require('@hhgtech/icons/other');
|
|
32
36
|
var debounce = require('lodash/debounce');
|
|
33
37
|
var throttle = require('lodash/throttle');
|
|
34
38
|
var Flags = require('react-phone-number-input/flags');
|
|
35
|
-
var useScreenSize = require('./useScreenSize-42737a5f.js');
|
|
36
39
|
var vaul = require('vaul');
|
|
37
|
-
var utils = require('./utils-
|
|
38
|
-
var index$6 = require('./index-3be445d4.js');
|
|
39
|
-
var constantsDomainLocales = require('./constantsDomainLocales.js');
|
|
40
|
+
var utils = require('./utils-a817ecf9.js');
|
|
40
41
|
var form = require('@mantine/form');
|
|
41
42
|
var yup = require('yup');
|
|
42
43
|
var dayjs = require('dayjs');
|
|
43
|
-
var index$
|
|
44
|
+
var index$8 = require('./index-23964dc2.js');
|
|
44
45
|
require('@mantine/carousel');
|
|
45
46
|
require('./miscTheme.js');
|
|
46
|
-
require('./useUniqueId-
|
|
47
|
+
require('./useUniqueId-b4dd505c.js');
|
|
47
48
|
require('./constantsSite.js');
|
|
48
49
|
require('zustand');
|
|
49
50
|
require('./constantsIsProduction.js');
|
|
50
|
-
require('./normalizeLink-
|
|
51
|
-
require('./miscCookieHelper.js');
|
|
51
|
+
require('./normalizeLink-ac8fab6c.js');
|
|
52
52
|
require('date-fns/locale');
|
|
53
53
|
require('./constantsRiskScreener.js');
|
|
54
|
-
require('./index.styles-
|
|
54
|
+
require('./index.styles-25928d6e.js');
|
|
55
55
|
require('@mantine/notifications');
|
|
56
|
-
require('./translationsContext-
|
|
56
|
+
require('./translationsContext-847c20c0.js');
|
|
57
57
|
|
|
58
58
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
59
59
|
|
|
@@ -84,6 +84,21 @@ var Flags__default = /*#__PURE__*/_interopDefault(Flags);
|
|
|
84
84
|
var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
|
|
85
85
|
var dayjs__default = /*#__PURE__*/_interopDefault(dayjs);
|
|
86
86
|
|
|
87
|
+
/** */
|
|
88
|
+
const fetchFeatureFlag = (site) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
89
|
+
var _a, _b;
|
|
90
|
+
let data = null;
|
|
91
|
+
try {
|
|
92
|
+
const baseUrl = 'https://staging-mobile-be.hellohealthgroup.com';
|
|
93
|
+
const response = yield fetch(`${baseUrl}/api/feature-flag/v1/list?site=${site}`);
|
|
94
|
+
data = yield response.json();
|
|
95
|
+
}
|
|
96
|
+
catch (err) {
|
|
97
|
+
data = null;
|
|
98
|
+
}
|
|
99
|
+
return (_b = (_a = data === null || data === void 0 ? void 0 : data.data) === null || _a === void 0 ? void 0 : _a.flags) === null || _b === void 0 ? void 0 : _b.find((o) => o.name === 'SSO_V2_flag');
|
|
100
|
+
});
|
|
101
|
+
|
|
87
102
|
const SSOStateContext = React.createContext({
|
|
88
103
|
locale: Locale.LOCALE.Vietnam,
|
|
89
104
|
onClose: () => false,
|
|
@@ -240,7 +255,8 @@ const isSocialFlowFn = (flowData) => {
|
|
|
240
255
|
const isPhoneFlowFn = (flowData) => {
|
|
241
256
|
return ((flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'sms' ||
|
|
242
257
|
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'zalo' ||
|
|
243
|
-
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone'
|
|
258
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone' ||
|
|
259
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'whatsapp');
|
|
244
260
|
};
|
|
245
261
|
const isEmailFlowFn = (flowData) => {
|
|
246
262
|
return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'email';
|
|
@@ -253,6 +269,14 @@ const isResetPasswordFlowFn = (steps) => {
|
|
|
253
269
|
passwordForgotStep > 0 &&
|
|
254
270
|
passwordForgotStep > passwordStep);
|
|
255
271
|
};
|
|
272
|
+
const isResetPasswordViePhoneFlowFn = (steps) => {
|
|
273
|
+
// First -> Passsword -> Password Forgot Phone
|
|
274
|
+
const passwordStep = steps.findIndex((s) => s.type === store.SSOStepTypeType.PASSWORD);
|
|
275
|
+
const passwordForgotStep = steps.findIndex((s) => s.type === store.SSOStepTypeType.FORGOT_PASSWORD_PHONE);
|
|
276
|
+
return (passwordStep > 0 &&
|
|
277
|
+
passwordForgotStep > 0 &&
|
|
278
|
+
passwordForgotStep > passwordStep);
|
|
279
|
+
};
|
|
256
280
|
const isDisplayProgressBarFn = (flowData, step) => {
|
|
257
281
|
const showProgressBar = (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP ||
|
|
258
282
|
(step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.SETUP_FULL ||
|
|
@@ -267,29 +291,42 @@ const isDisplayProgressBarFn = (flowData, step) => {
|
|
|
267
291
|
isEmailFlowFn(flowData);
|
|
268
292
|
return showProgressBar && isWhiteListFlow;
|
|
269
293
|
};
|
|
270
|
-
const getCurrentStepNumber = (flowData, { steps, currentStepIndex, }, userInfo) => {
|
|
271
|
-
var _a, _b;
|
|
294
|
+
const getCurrentStepNumber = (flowData, { steps, currentStepIndex, abTestFlow, }, userInfo) => {
|
|
295
|
+
var _a, _b, _c;
|
|
272
296
|
const step = steps[currentStepIndex];
|
|
273
297
|
const isSocialFlow = isSocialFlowFn(flowData);
|
|
274
298
|
const isPhoneFlow = isPhoneFlowFn(flowData);
|
|
275
299
|
const isEmailFlow = isEmailFlowFn(flowData);
|
|
276
300
|
/** Social (Google, Facebook): FIRST => VERIFY_PHONE | OTP => STEP_FULL */
|
|
277
301
|
if (isSocialFlow) {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
302
|
+
// Ignore Phone in Community if in update email step
|
|
303
|
+
const isCommunityUpdateEmail = store.useSSOV2Store().setupSource === 'community' &&
|
|
304
|
+
((_a = steps[0]) === null || _a === void 0 ? void 0 : _a.type) === store.SSOStepTypeType.UPDATE_EMAIL;
|
|
305
|
+
const arrSteps = isCommunityUpdateEmail
|
|
306
|
+
? [
|
|
307
|
+
store.SSOStepTypeType.UPDATE_EMAIL,
|
|
308
|
+
store.SSOStepTypeType.OTP,
|
|
309
|
+
!userInfo || !store.isUserFinishedSetup(userInfo)
|
|
310
|
+
? store.SSOStepTypeType.SETUP_FULL
|
|
311
|
+
: undefined,
|
|
312
|
+
]
|
|
313
|
+
.flat()
|
|
314
|
+
.filter(Boolean)
|
|
315
|
+
: [
|
|
316
|
+
!isPhoneVerifedAlready(userInfo, flowData) && abTestFlow !== 'B'
|
|
317
|
+
? [store.SSOStepTypeType.VERIFY_PHONE, store.SSOStepTypeType.OTP]
|
|
318
|
+
: undefined,
|
|
319
|
+
isExistUpdateEmailStep(steps)
|
|
320
|
+
? (step === null || step === void 0 ? void 0 : step.type) === store.SSOStepTypeType.OTP
|
|
321
|
+
? store.SSOStepTypeType.OTP
|
|
322
|
+
: store.SSOStepTypeType.UPDATE_EMAIL
|
|
323
|
+
: undefined,
|
|
324
|
+
!userInfo || !store.isUserFinishedSetup(userInfo)
|
|
325
|
+
? store.SSOStepTypeType.SETUP_FULL
|
|
326
|
+
: undefined,
|
|
327
|
+
]
|
|
328
|
+
.flat()
|
|
329
|
+
.filter(Boolean);
|
|
293
330
|
const previousStep = steps[currentStepIndex - 1];
|
|
294
331
|
return [
|
|
295
332
|
arrSteps.length,
|
|
@@ -303,7 +340,7 @@ const getCurrentStepNumber = (flowData, { steps, currentStepIndex, }, userInfo)
|
|
|
303
340
|
!isPhoneVerifedAlready(userInfo, flowData)
|
|
304
341
|
? store.SSOStepTypeType.OTP
|
|
305
342
|
: undefined,
|
|
306
|
-
!((
|
|
343
|
+
!((_b = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _b === void 0 ? void 0 : _b.is_pass)
|
|
307
344
|
? store.SSOStepTypeType.FORGOT_PASSWORD_SETUP
|
|
308
345
|
: undefined,
|
|
309
346
|
!isSetupFullInfoAlready(userInfo, flowData)
|
|
@@ -345,7 +382,7 @@ const getCurrentStepNumber = (flowData, { steps, currentStepIndex, }, userInfo)
|
|
|
345
382
|
];
|
|
346
383
|
}
|
|
347
384
|
if (isEmailFlow) {
|
|
348
|
-
const hasPasswordStep = !((
|
|
385
|
+
const hasPasswordStep = !((_c = flowData === null || flowData === void 0 ? void 0 : flowData.metaData) === null || _c === void 0 ? void 0 : _c.is_pass);
|
|
349
386
|
const hasPhoneStep = !isPhoneVerifedAlready(userInfo, flowData);
|
|
350
387
|
const hasSetupFullStep = !isSetupFullInfoAlready(userInfo, flowData);
|
|
351
388
|
const isForgotPasswordSetup = steps.find((s) => s.type === store.SSOStepTypeType.FORGOT_PASSWORD_SETUP);
|
|
@@ -380,10 +417,10 @@ const getCurrentStepNumber = (flowData, { steps, currentStepIndex, }, userInfo)
|
|
|
380
417
|
const ProgressBar = () => {
|
|
381
418
|
// const initUserInfo = useRef<UserInfo | undefined | null>()
|
|
382
419
|
const { steps, currentStepIndex } = store.useSSOSteps();
|
|
383
|
-
const { flowData, userInfo } = store.useSSOV2Store();
|
|
420
|
+
const { flowData, userInfo, abTestFlow } = store.useSSOV2Store();
|
|
384
421
|
/** No need update state IF userInfo is changed */
|
|
385
422
|
const initUserInfo = React.useMemo(() => userInfo, [userInfo]);
|
|
386
|
-
const [totalStepNumber, activeStepNumber] = getCurrentStepNumber(flowData, { steps, currentStepIndex }, initUserInfo);
|
|
423
|
+
const [totalStepNumber, activeStepNumber] = getCurrentStepNumber(flowData, { steps, currentStepIndex, abTestFlow }, initUserInfo);
|
|
387
424
|
if (!activeStepNumber || totalStepNumber === 1)
|
|
388
425
|
return null;
|
|
389
426
|
return (React__default["default"].createElement(core.Flex, { gap: 2 }, Array.from({ length: totalStepNumber }).map((_, idx) => {
|
|
@@ -472,7 +509,12 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
472
509
|
borderRadius: '100%',
|
|
473
510
|
}, onClick: goBack, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Back" },
|
|
474
511
|
React__default["default"].createElement(arrow.ChevronLeft, null))),
|
|
475
|
-
showLogo && (React__default["default"].createElement(
|
|
512
|
+
showLogo && (React__default["default"].createElement("div", { style: { display: 'flex', alignItems: 'center', gap: '8px' } },
|
|
513
|
+
React__default["default"].createElement(logoIcon.LogoIcon, { type: logoType, height: 32, width: 'unset' }),
|
|
514
|
+
locale === Locale.LOCALE.Indonesia && (React__default["default"].createElement(useScreenSize.ImageWrap, { alt: "", src: index$5.CommonGAssets.getAssetPath('sehat-badge.png'), style: {
|
|
515
|
+
width: 56,
|
|
516
|
+
height: 23,
|
|
517
|
+
} })))),
|
|
476
518
|
showClose && (React__default["default"].createElement(index$4.Button, { variant: "white", style: {
|
|
477
519
|
width: 40,
|
|
478
520
|
height: 40,
|
|
@@ -712,7 +754,7 @@ const SSOEmailScreen = ({ hidden, }) => {
|
|
|
712
754
|
React__default["default"].createElement(core.Stack, { spacing: 8 },
|
|
713
755
|
React__default["default"].createElement(index$3.Text, { size: "s1", weight: "semiBold" }, t('ssov2.email.title')),
|
|
714
756
|
React__default["default"].createElement(index$3.Text, { size: "p4" }, t('ssov2.email.description'))),
|
|
715
|
-
React__default["default"].createElement(index$
|
|
757
|
+
React__default["default"].createElement(index$6.Input, { name: "email", placeholder: t('onboarding.formEmail.yourEmail'), error: errMsg || undefined, type: "email", required: true, mt: 24, disabled: loading, onChange: () => setErrMsg(''), "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Email" }),
|
|
716
758
|
React__default["default"].createElement(index$4.Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Verify Your Email" }, t('ssov2.email.button'))));
|
|
717
759
|
};
|
|
718
760
|
|
|
@@ -815,6 +857,59 @@ const loginBySocial = (token, social) => tslib_es6.__awaiter(void 0, void 0, voi
|
|
|
815
857
|
});
|
|
816
858
|
});
|
|
817
859
|
|
|
860
|
+
// "phone_number": "906911910",
|
|
861
|
+
// "area_code":"+84",
|
|
862
|
+
const registerBySendWhatsAppOTP = (phone, areaCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
863
|
+
const formData = new FormData();
|
|
864
|
+
formData.append('phone_number', phone);
|
|
865
|
+
formData.append('area_code', areaCode);
|
|
866
|
+
formData.append('website_id', store.websiteId);
|
|
867
|
+
return store.fetchSSOV2Api(store.SSO_V2_PATHS.WHATSAPP.REGISTER_BY_SEND_OTP, {
|
|
868
|
+
method: 'POST',
|
|
869
|
+
body: formData,
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
// "phone_number": "906911910",
|
|
873
|
+
// "area_code":"+84",
|
|
874
|
+
const resendWhatsAppOTP = (phone, areaCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
875
|
+
const formData = new FormData();
|
|
876
|
+
formData.append('phone_number', phone);
|
|
877
|
+
formData.append('area_code', areaCode);
|
|
878
|
+
return store.fetchSSOV2Api(store.SSO_V2_PATHS.WHATSAPP.SEND_OTP, {
|
|
879
|
+
method: 'POST',
|
|
880
|
+
body: formData,
|
|
881
|
+
});
|
|
882
|
+
});
|
|
883
|
+
const resendUpdatePhoneWhatsAppOTP = (phone, areaCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
884
|
+
const formData = new FormData();
|
|
885
|
+
formData.append('phone_number', phone);
|
|
886
|
+
formData.append('area_code', areaCode);
|
|
887
|
+
return store.fetchSSOV2Api(store.SSO_V2_PATHS.WHATSAPP.UPDATE_PHONE_SEND_OTP, {
|
|
888
|
+
method: 'POST',
|
|
889
|
+
body: formData,
|
|
890
|
+
});
|
|
891
|
+
});
|
|
892
|
+
const verifyUpdatePhoneWhatsAppOTP = (phone, areaCode, otpCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
893
|
+
const formData = new FormData();
|
|
894
|
+
formData.append('phone_number', phone);
|
|
895
|
+
formData.append('otp_code', otpCode);
|
|
896
|
+
formData.append('area_code', areaCode);
|
|
897
|
+
return store.fetchSSOV2Api(store.SSO_V2_PATHS.WHATSAPP.UPDATE_PHONE_VERIFY_OTP, {
|
|
898
|
+
method: 'POST',
|
|
899
|
+
body: formData,
|
|
900
|
+
});
|
|
901
|
+
});
|
|
902
|
+
const verifyByWhatsAppOTP = (phone, areaCode, otpCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
903
|
+
const formData = new FormData();
|
|
904
|
+
formData.append('otp_code', otpCode);
|
|
905
|
+
formData.append('phone_number', phone);
|
|
906
|
+
formData.append('area_code', areaCode);
|
|
907
|
+
return store.fetchSSOV2Api(store.SSO_V2_PATHS.WHATSAPP.VERIFY_BY_OTP, {
|
|
908
|
+
method: 'POST',
|
|
909
|
+
body: formData,
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
|
|
818
913
|
// "phone_number": "906911910",
|
|
819
914
|
// "area_code":"+84",
|
|
820
915
|
const registerBySendZaloOTP = (phone, areaCode) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -871,9 +966,113 @@ const verifyUpdatePhoneZaloOTP = (phone, areaCode, otpCode) => tslib_es6.__await
|
|
|
871
966
|
});
|
|
872
967
|
});
|
|
873
968
|
|
|
969
|
+
// VietNam: Zalo - SMS
|
|
970
|
+
// Info: WhatsApp
|
|
971
|
+
// Malay: WhatsApp và SMS
|
|
972
|
+
const isFeatureWhatsAppEnabled = [
|
|
973
|
+
Locale.LOCALE.Indonesia,
|
|
974
|
+
Locale.LOCALE.Malaysia,
|
|
975
|
+
].includes(store.locale);
|
|
976
|
+
const isFeatureSMSEnabled = [Locale.LOCALE.Vietnam, Locale.LOCALE.Malaysia].includes(store.locale);
|
|
977
|
+
const isFeatureZaloEnabled = [Locale.LOCALE.Vietnam].includes(store.locale);
|
|
978
|
+
|
|
874
979
|
const MailIcon = (props) => (React__default["default"].createElement("svg", Object.assign({ width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
875
980
|
React__default["default"].createElement("path", { d: "M15.043 2.56348H6.29297C3.66797 2.56348 1.91797 3.87598 1.91797 6.93848V13.0635C1.91797 16.126 3.66797 17.4385 6.29297 17.4385H15.043C17.668 17.4385 19.418 16.126 19.418 13.0635V6.93848C19.418 3.87598 17.668 2.56348 15.043 2.56348ZM15.4542 7.89223L12.7155 10.0797C12.138 10.5435 11.403 10.771 10.668 10.771C9.93297 10.771 9.18922 10.5435 8.62047 10.0797L5.88172 7.89223C5.60172 7.66473 5.55797 7.24473 5.77672 6.96473C6.00422 6.68473 6.41547 6.63223 6.69547 6.85973L9.43422 9.04723C10.0992 9.58098 11.228 9.58098 11.893 9.04723L14.6317 6.85973C14.9117 6.63223 15.3317 6.67598 15.5505 6.96473C15.778 7.24473 15.7342 7.66473 15.4542 7.89223Z", fill: "#00B16A" })));
|
|
876
981
|
|
|
982
|
+
const PolicyContent = ({ legalTextType, trackingCategory, trackingAction, }) => {
|
|
983
|
+
var _a, _b;
|
|
984
|
+
const { t } = index.useTranslations();
|
|
985
|
+
const { locale } = useSSOState();
|
|
986
|
+
return (React__default["default"].createElement(core.Stack, { spacing: 24, sx: (theme) => ({
|
|
987
|
+
marginTop: 56,
|
|
988
|
+
[theme.fn.smallerThan('sm')]: {
|
|
989
|
+
marginTop: 'auto',
|
|
990
|
+
paddingTop: 50,
|
|
991
|
+
},
|
|
992
|
+
}) },
|
|
993
|
+
React__default["default"].createElement(index$7.Spoiler, { maxHeight: 74, showLabel: React__default["default"].createElement(index$3.Text, { size: "p5", color: "gray.6", underline: true }, t('home.seeMore')), hideLabel: React__default["default"].createElement(index$3.Text, { size: "p5", color: "gray.6", underline: true }, t('articlePage.showLess')) },
|
|
994
|
+
React__default["default"].createElement(index$3.Text, { size: "p5", color: "gray.6" }, t(legalTextType === 'community'
|
|
995
|
+
? 'ssov2.policyText.community'
|
|
996
|
+
: 'ssov2.policyText', {
|
|
997
|
+
privacy: (React__default["default"].createElement("a", { href: `https://${constantsDomainLocales.domainLocales[locale]}/static/${((_a = index$2.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.PRIVACY_POLICY) || ''}`, target: "_blank", style: {
|
|
998
|
+
color: '#262626',
|
|
999
|
+
textDecoration: 'underline',
|
|
1000
|
+
}, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Privacy Policy", rel: "noreferrer" }, t('ssov2.policyText.privacy'))),
|
|
1001
|
+
terms: (React__default["default"].createElement("a", { href: `https://${constantsDomainLocales.domainLocales[locale]}/static/${((_b = index$2.STATIC_PAGES[locale]) === null || _b === void 0 ? void 0 : _b.TERM_OF_USE) || ''}`, target: "_blank", style: {
|
|
1002
|
+
color: '#262626',
|
|
1003
|
+
textDecoration: 'underline',
|
|
1004
|
+
}, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Terms of Service", rel: "noreferrer" }, t('ssov2.policyText.terms'))),
|
|
1005
|
+
})))));
|
|
1006
|
+
};
|
|
1007
|
+
|
|
1008
|
+
const FirstBFlow = ({ hidden,
|
|
1009
|
+
// activeTab,
|
|
1010
|
+
legalTextType, trackingAction, trackingCategory, onTriggerGoogleLogin, onTriggerFacebookLogin, onClickEmail, }) => {
|
|
1011
|
+
const { locale } = useSSOState();
|
|
1012
|
+
const domain = constantsDomainLocales.MAP_DOMAIN_BY_LOCALE[locale];
|
|
1013
|
+
const { t } = index.useTranslations();
|
|
1014
|
+
return (React__default["default"].createElement("div", { style: {
|
|
1015
|
+
display: hidden ? 'none' : 'flex',
|
|
1016
|
+
flexDirection: 'column',
|
|
1017
|
+
height: '100%',
|
|
1018
|
+
} },
|
|
1019
|
+
React__default["default"].createElement(core.Stack, { mt: 8, spacing: 8 },
|
|
1020
|
+
React__default["default"].createElement(index$3.Text, { size: "h4", weight: "semiBold" },
|
|
1021
|
+
"Welcome to",
|
|
1022
|
+
' ',
|
|
1023
|
+
domain.replace('.com.ph', '').replace('.tw', '').replace('.com', '')),
|
|
1024
|
+
React__default["default"].createElement(index$3.Text, { size: "p4" }, "Sign up or log in with your email or social media account.")),
|
|
1025
|
+
React__default["default"].createElement(core.Stack, { mt: 24, spacing: 24 },
|
|
1026
|
+
React__default["default"].createElement(index$4.Button, { variant: "white", style: {
|
|
1027
|
+
flex: 1,
|
|
1028
|
+
height: 48,
|
|
1029
|
+
padding: 12,
|
|
1030
|
+
background: '#F7F9FC',
|
|
1031
|
+
borderRadius: 8,
|
|
1032
|
+
}, onClick: onTriggerGoogleLogin, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Google" },
|
|
1033
|
+
React__default["default"].createElement(Google.Google, { style: {
|
|
1034
|
+
width: 20,
|
|
1035
|
+
height: 20,
|
|
1036
|
+
marginRight: 4,
|
|
1037
|
+
borderRadius: '100%',
|
|
1038
|
+
} }),
|
|
1039
|
+
' ',
|
|
1040
|
+
React__default["default"].createElement(index$3.Text, { size: "p4", color: "black", weight: "semiBold" }, "Continue with Google")),
|
|
1041
|
+
React__default["default"].createElement(core.Stack, { spacing: 24, align: "center" },
|
|
1042
|
+
React__default["default"].createElement(index$3.Text, { size: "p4", color: "gray.4" }, t('ssov2.orContinueWith')),
|
|
1043
|
+
React__default["default"].createElement(core.Group, { spacing: 8, style: {
|
|
1044
|
+
width: '100%',
|
|
1045
|
+
} },
|
|
1046
|
+
React__default["default"].createElement(index$4.Button, { variant: "white", style: {
|
|
1047
|
+
flex: 1,
|
|
1048
|
+
height: 48,
|
|
1049
|
+
padding: 12,
|
|
1050
|
+
background: '#F7F9FC',
|
|
1051
|
+
borderRadius: 8,
|
|
1052
|
+
}, onClick: onTriggerFacebookLogin, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Facebook" },
|
|
1053
|
+
React__default["default"].createElement(Google.Facebook, { style: {
|
|
1054
|
+
width: 20,
|
|
1055
|
+
height: 20,
|
|
1056
|
+
marginRight: 4,
|
|
1057
|
+
borderRadius: '100%',
|
|
1058
|
+
} }),
|
|
1059
|
+
' ',
|
|
1060
|
+
React__default["default"].createElement(index$3.Text, { size: "p4", color: "black", weight: "regular" }, "Facebook")),
|
|
1061
|
+
React__default["default"].createElement(index$4.Button, { variant: "white", style: {
|
|
1062
|
+
flex: 1,
|
|
1063
|
+
height: 48,
|
|
1064
|
+
padding: 12,
|
|
1065
|
+
background: '#F7F9FC',
|
|
1066
|
+
borderRadius: 8,
|
|
1067
|
+
}, onClick: onClickEmail, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Email" },
|
|
1068
|
+
React__default["default"].createElement(MailIcon, { style: {
|
|
1069
|
+
marginRight: 4,
|
|
1070
|
+
} }),
|
|
1071
|
+
' ',
|
|
1072
|
+
React__default["default"].createElement(index$3.Text, { size: "p4", color: "black", weight: "regular" }, "Email"))))),
|
|
1073
|
+
React__default["default"].createElement(PolicyContent, { legalTextType: legalTextType, trackingAction: trackingAction, trackingCategory: trackingCategory })));
|
|
1074
|
+
};
|
|
1075
|
+
|
|
877
1076
|
function createCommonjsModule(fn) {
|
|
878
1077
|
var module = { exports: {} };
|
|
879
1078
|
return fn(module, module.exports), module.exports;
|
|
@@ -2107,7 +2306,7 @@ function CountrySelectWithIcon(_a) {
|
|
|
2107
2306
|
const SelectCountryContent = (React__default["default"].createElement(core.Stack, { spacing: 24 },
|
|
2108
2307
|
React__default["default"].createElement(core.Stack, { spacing: 8 },
|
|
2109
2308
|
React__default["default"].createElement(index$3.Text, { size: "s4" }, t('ssov2.first.country.code')),
|
|
2110
|
-
React__default["default"].createElement(index$
|
|
2309
|
+
React__default["default"].createElement(index$6.Input, { size: "lg", placeholder: t('ssov2.first.search.country.placeholder'), icon: React__default["default"].createElement(core$1.Search, null), value: search, onChange: (value) => setSearch(value) })),
|
|
2111
2310
|
!!(selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.value) && (React__default["default"].createElement(core.Stack, { spacing: 0 },
|
|
2112
2311
|
React__default["default"].createElement(index$3.Text, { size: "s4" }, t('ssov2.first.search.country.selected')),
|
|
2113
2312
|
React__default["default"].createElement(SelectCountryItem, { option: selectedOption, onSelect: (option) => {
|
|
@@ -2278,7 +2477,7 @@ const PhoneForwardRef = (props, ref) => {
|
|
|
2278
2477
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2279
2478
|
ref: ref, value: value, onChange: onChange,
|
|
2280
2479
|
// countries={countries}
|
|
2281
|
-
defaultCountry: defaultCountry, countryCallingCodeEditable: countryCallingCodeEditable, className: cn__default["default"](index$
|
|
2480
|
+
defaultCountry: defaultCountry, countryCallingCodeEditable: countryCallingCodeEditable, className: cn__default["default"](index$6.styles.phoneInput, { isError, [index$6.styles.error]: isError }, className), countrySelectComponent: CountrySelectWithIcon, countrySelectProps: { trackingFn } }, inputProps)));
|
|
2282
2481
|
};
|
|
2283
2482
|
const PhoneWithCustomCountrySelect = React.forwardRef(PhoneForwardRef);
|
|
2284
2483
|
|
|
@@ -2308,6 +2507,12 @@ const StyledPhone = styled__default["default"](PhoneWithCustomCountrySelect) `
|
|
|
2308
2507
|
}
|
|
2309
2508
|
`;
|
|
2310
2509
|
|
|
2510
|
+
const WhatsApp = ({ size = 20 }) => {
|
|
2511
|
+
return (React__default["default"].createElement("svg", { width: (size * 19) / 18, height: size, viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2512
|
+
React__default["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.92578 1.07422C5.78895 1.07422 2.42578 4.43738 2.42578 8.57422C2.42578 10.0305 2.83992 11.4277 3.62269 12.6382L2.48494 15.1458C2.38027 15.3779 2.41668 15.6464 2.58506 15.8421C2.71249 15.9923 2.89453 16.0742 3.08112 16.0742C3.14028 16.0742 3.19489 16.0651 3.25406 16.0515L6.39423 15.1913C7.47736 15.7693 8.69247 16.0742 9.92578 16.0742C14.0626 16.0742 17.4258 12.711 17.4258 8.57422C17.4258 4.44193 14.0626 1.07422 9.92578 1.07422ZM9.92578 14.7635C8.82899 14.7635 7.75497 14.4723 6.80836 13.9216C6.70824 13.8624 6.59447 13.8306 6.47614 13.8306C6.41698 13.8306 6.35782 13.8397 6.30321 13.8533L4.25072 14.4177L4.96522 12.843C5.06079 12.6291 5.03804 12.3788 4.90151 12.1877C4.13695 11.1273 3.73191 9.88035 3.73191 8.56967C3.73191 5.15644 6.508 2.38035 9.92123 2.38035C13.3345 2.38035 16.1105 5.15644 16.1105 8.56967C16.1151 11.9874 13.339 14.7635 9.92578 14.7635Z", fill: "currentColor" }),
|
|
2513
|
+
React__default["default"].createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.8115 9.69834C12.4975 9.51175 12.0879 9.30241 11.7193 9.4526C11.4371 9.57092 11.2551 10.0124 11.0685 10.2399C10.9729 10.3582 10.8637 10.3764 10.7181 10.3173C9.65315 9.89404 8.83397 9.17954 8.2469 8.20108C8.14678 8.0509 8.16498 7.92802 8.2833 7.78694C8.46079 7.57759 8.68379 7.34095 8.73385 7.05879C8.78391 6.77663 8.65193 6.44896 8.53361 6.19865C8.38343 5.88009 8.21959 5.42043 7.89647 5.2384C7.60066 5.07001 7.21383 5.16558 6.94987 5.37948C6.49477 5.74811 6.27633 6.33063 6.28543 6.90405C6.28543 7.06788 6.30818 7.23172 6.34459 7.38645C6.43561 7.76418 6.6131 8.11916 6.80879 8.45593C6.95897 8.71079 7.11826 8.95654 7.29119 9.19319C7.86006 9.96685 8.57002 10.6404 9.38919 11.141C9.79878 11.3913 10.2402 11.6143 10.6999 11.7645C11.2141 11.9329 11.6692 12.1104 12.2244 12.0057C12.8024 11.8965 13.3758 11.5369 13.6079 10.9772C13.6762 10.8133 13.7081 10.6267 13.6717 10.4538C13.5897 10.0897 13.1028 9.87128 12.8115 9.69834Z", fill: "currentColor" })));
|
|
2514
|
+
};
|
|
2515
|
+
|
|
2311
2516
|
const Zalo = ({ size = 20, useCurrentColor = false }) => {
|
|
2312
2517
|
const color = useCurrentColor ? 'currentColor' : '#0068FF';
|
|
2313
2518
|
return (React__default["default"].createElement("svg", { width: (size * 21) / 20, height: size, viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -2323,12 +2528,11 @@ const Zalo = ({ size = 20, useCurrentColor = false }) => {
|
|
|
2323
2528
|
};
|
|
2324
2529
|
|
|
2325
2530
|
const SSOFirstScreen = ({ hidden, config, }) => {
|
|
2326
|
-
var _a, _b;
|
|
2327
2531
|
const [phone, setPhone] = React__default["default"].useState('');
|
|
2328
2532
|
const [errMsg, setErrMsg] = React__default["default"].useState('');
|
|
2329
2533
|
const { locale, onClose, setTracking } = useSSOState();
|
|
2330
2534
|
const { addStep, goNext } = store.useSSOSteps();
|
|
2331
|
-
const { setUserInfo } = store.useSSOV2Store();
|
|
2535
|
+
const { setUserInfo, abTestFlow } = store.useSSOV2Store();
|
|
2332
2536
|
const [activeTab, setActiveTab] = React__default["default"].useState('login');
|
|
2333
2537
|
const { legalTextType } = config || {};
|
|
2334
2538
|
const { t } = index.useTranslations();
|
|
@@ -2358,7 +2562,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2358
2562
|
},
|
|
2359
2563
|
});
|
|
2360
2564
|
const isNotHavePhone = !userInfo._data.phone || !userInfo._data.phone_verified_at;
|
|
2361
|
-
if (isNotHavePhone) {
|
|
2565
|
+
if (isNotHavePhone && abTestFlow !== 'B') {
|
|
2362
2566
|
store.useSSOV2Store.setState((f) => {
|
|
2363
2567
|
var _a;
|
|
2364
2568
|
return ({
|
|
@@ -2446,7 +2650,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2446
2650
|
};
|
|
2447
2651
|
}, []);
|
|
2448
2652
|
const onClickContinueZalo = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2449
|
-
var
|
|
2653
|
+
var _a, _b;
|
|
2450
2654
|
setLoading(true);
|
|
2451
2655
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2452
2656
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2455,8 +2659,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2455
2659
|
}
|
|
2456
2660
|
const userExist = yield store.checkUserExist({ phone: phoneNumber });
|
|
2457
2661
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2458
|
-
const provider = (
|
|
2459
|
-
if ((
|
|
2662
|
+
const provider = (_a = userExist._data) === null || _a === void 0 ? void 0 : _a.provider;
|
|
2663
|
+
if ((_b = userExist._data) === null || _b === void 0 ? void 0 : _b.is_pass) {
|
|
2460
2664
|
store.useSSOV2Store.setState({
|
|
2461
2665
|
flowData: {
|
|
2462
2666
|
method: 'zalo',
|
|
@@ -2508,6 +2712,69 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2508
2712
|
}
|
|
2509
2713
|
setLoading(false);
|
|
2510
2714
|
});
|
|
2715
|
+
const onClickContinueWhatsApp = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2716
|
+
var _c, _d;
|
|
2717
|
+
setLoading(true);
|
|
2718
|
+
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2719
|
+
if (!areaCode || !phoneNumber || !phone) {
|
|
2720
|
+
setErrMsg(t('ssov2.validate.phone.required'));
|
|
2721
|
+
return setLoading(false);
|
|
2722
|
+
}
|
|
2723
|
+
const userExist = yield store.checkUserExist({ phone: phoneNumber });
|
|
2724
|
+
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2725
|
+
const provider = (_c = userExist._data) === null || _c === void 0 ? void 0 : _c.provider;
|
|
2726
|
+
if ((_d = userExist._data) === null || _d === void 0 ? void 0 : _d.is_pass) {
|
|
2727
|
+
store.useSSOV2Store.setState({
|
|
2728
|
+
flowData: {
|
|
2729
|
+
method: 'whatsapp',
|
|
2730
|
+
flow: 'login',
|
|
2731
|
+
metaData: userExist._data,
|
|
2732
|
+
},
|
|
2733
|
+
});
|
|
2734
|
+
addStep({
|
|
2735
|
+
type: store.SSOStepTypeType.PASSWORD,
|
|
2736
|
+
config: {
|
|
2737
|
+
phone,
|
|
2738
|
+
method: 'whatsapp',
|
|
2739
|
+
},
|
|
2740
|
+
});
|
|
2741
|
+
goNext();
|
|
2742
|
+
}
|
|
2743
|
+
else {
|
|
2744
|
+
let res;
|
|
2745
|
+
if (!provider) {
|
|
2746
|
+
res = yield registerBySendWhatsAppOTP(phoneNumber, areaCode);
|
|
2747
|
+
}
|
|
2748
|
+
else {
|
|
2749
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2750
|
+
}
|
|
2751
|
+
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
2752
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
2753
|
+
return setLoading(false);
|
|
2754
|
+
}
|
|
2755
|
+
store.useSSOV2Store.setState({
|
|
2756
|
+
flowData: {
|
|
2757
|
+
method: 'whatsapp',
|
|
2758
|
+
flow: 'signup',
|
|
2759
|
+
metaData: userExist._data,
|
|
2760
|
+
},
|
|
2761
|
+
});
|
|
2762
|
+
addStep({
|
|
2763
|
+
type: store.SSOStepTypeType.OTP,
|
|
2764
|
+
config: {
|
|
2765
|
+
phone,
|
|
2766
|
+
otpType: 'phone-whatsapp',
|
|
2767
|
+
afterAction: 'forgot',
|
|
2768
|
+
},
|
|
2769
|
+
});
|
|
2770
|
+
goNext();
|
|
2771
|
+
}
|
|
2772
|
+
}
|
|
2773
|
+
else {
|
|
2774
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
2775
|
+
}
|
|
2776
|
+
setLoading(false);
|
|
2777
|
+
});
|
|
2511
2778
|
const onClickContinuePhone = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
2512
2779
|
var _e, _f;
|
|
2513
2780
|
setLoading(true);
|
|
@@ -2650,6 +2917,9 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2650
2917
|
});
|
|
2651
2918
|
}, { scope: 'public_profile,email,user_gender,user_birthday' });
|
|
2652
2919
|
};
|
|
2920
|
+
if (abTestFlow === 'B') {
|
|
2921
|
+
return (React__default["default"].createElement(FirstBFlow, { hidden: hidden, activeTab: activeTab, legalTextType: legalTextType, trackingAction: trackingAction, trackingCategory: trackingCategory, onTriggerGoogleLogin: onTriggerGoogleLogin, onTriggerFacebookLogin: onTriggerFacebookLogin, onClickEmail: onClickEmail }));
|
|
2922
|
+
}
|
|
2653
2923
|
return (React__default["default"].createElement("div", { style: {
|
|
2654
2924
|
display: hidden ? 'none' : 'flex',
|
|
2655
2925
|
flexDirection: 'column',
|
|
@@ -2672,7 +2942,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2672
2942
|
e.preventDefault();
|
|
2673
2943
|
onClickContinueZalo();
|
|
2674
2944
|
} },
|
|
2675
|
-
React__default["default"].createElement(index$
|
|
2945
|
+
React__default["default"].createElement(index$6.Input.Wrapper, { error: errMsg },
|
|
2676
2946
|
React__default["default"].createElement(StyledPhone, { defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => setPhone(value), isError: !!errMsg, required: true, name: "phone", disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone", trackingFn: React.useCallback((option) => {
|
|
2677
2947
|
if (!(option === null || option === void 0 ? void 0 : option.label))
|
|
2678
2948
|
return;
|
|
@@ -2685,8 +2955,9 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2685
2955
|
};
|
|
2686
2956
|
}, [activeTab]) }))),
|
|
2687
2957
|
React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickLoginWithPhone, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue Login", display: activeTab === 'login' ? 'block' : 'none' }, t('ssov2.button.continue')),
|
|
2688
|
-
React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick:
|
|
2689
|
-
React__default["default"].createElement(index$4.Button, { size: "
|
|
2958
|
+
isFeatureWhatsAppEnabled && (React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueWhatsApp, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with WhatsApp", display: activeTab === 'signup' ? 'block' : 'none', leftIcon: React__default["default"].createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.otp.whatsapp'))),
|
|
2959
|
+
isFeatureZaloEnabled && (React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo", display: activeTab === 'signup' ? 'block' : 'none', leftIcon: React__default["default"].createElement(Zalo, null) }, t('ssov2.button.otp.zalo'))),
|
|
2960
|
+
isFeatureSMSEnabled && (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", display: activeTab === 'signup' ? 'block' : 'none', style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default["default"].createElement(core$1.ReplySquare, { size: 18 }) }, t('ssov2.button.otp.sms')))),
|
|
2690
2961
|
React__default["default"].createElement(core.Divider, { color: "#E4E8EC", display: activeTab === 'signup' ? 'block' : 'none' }),
|
|
2691
2962
|
React__default["default"].createElement(core.Stack, { spacing: 16, align: "center" },
|
|
2692
2963
|
React__default["default"].createElement(index$3.Text, { size: "p4", color: "gray.4" }, t('ssov2.orContinueWith')),
|
|
@@ -2735,26 +3006,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2735
3006
|
} }),
|
|
2736
3007
|
' ',
|
|
2737
3008
|
React__default["default"].createElement(index$3.Text, { size: "p4", color: "black", weight: "regular" }, "Email"))))),
|
|
2738
|
-
React__default["default"].createElement(
|
|
2739
|
-
marginTop: 56,
|
|
2740
|
-
[theme.fn.smallerThan('sm')]: {
|
|
2741
|
-
marginTop: 'auto',
|
|
2742
|
-
paddingTop: 50,
|
|
2743
|
-
},
|
|
2744
|
-
}) },
|
|
2745
|
-
React__default["default"].createElement(index$6.Spoiler, { maxHeight: 74, showLabel: React__default["default"].createElement(index$3.Text, { size: "p5", color: "gray.6", underline: true }, t('home.seeMore')), hideLabel: React__default["default"].createElement(index$3.Text, { size: "p5", color: "gray.6", underline: true }, t('articlePage.showLess')) },
|
|
2746
|
-
React__default["default"].createElement(index$3.Text, { size: "p5", color: "gray.6" }, t(legalTextType === 'community'
|
|
2747
|
-
? 'ssov2.policyText.community'
|
|
2748
|
-
: 'ssov2.policyText', {
|
|
2749
|
-
privacy: (React__default["default"].createElement("a", { href: `https://${constantsDomainLocales.domainLocales[locale]}/static/${((_a = index$2.STATIC_PAGES[locale]) === null || _a === void 0 ? void 0 : _a.PRIVACY_POLICY) || ''}`, target: "_blank", style: {
|
|
2750
|
-
color: '#262626',
|
|
2751
|
-
textDecoration: 'underline',
|
|
2752
|
-
}, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Privacy Policy" }, t('ssov2.policyText.privacy'))),
|
|
2753
|
-
terms: (React__default["default"].createElement("a", { href: `https://${constantsDomainLocales.domainLocales[locale]}/static/${((_b = index$2.STATIC_PAGES[locale]) === null || _b === void 0 ? void 0 : _b.TERM_OF_USE) || ''}`, target: "_blank", style: {
|
|
2754
|
-
color: '#262626',
|
|
2755
|
-
textDecoration: 'underline',
|
|
2756
|
-
}, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Terms of Service" }, t('ssov2.policyText.terms'))),
|
|
2757
|
-
}))))));
|
|
3009
|
+
React__default["default"].createElement(PolicyContent, { legalTextType: legalTextType, trackingAction: trackingAction, trackingCategory: trackingCategory })));
|
|
2758
3010
|
};
|
|
2759
3011
|
|
|
2760
3012
|
const initSendUpdateEmailOtp = (email) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -2795,6 +3047,7 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2795
3047
|
const isEmail = otpType === 'email' || otpType === 'update-email';
|
|
2796
3048
|
const isZalo = otpType === 'phone-zalo';
|
|
2797
3049
|
const isSMS = otpType === 'phone-sms';
|
|
3050
|
+
const isWhatsApp = otpType === 'phone-whatsapp';
|
|
2798
3051
|
const trackingMethod = flowData === null || flowData === void 0 ? void 0 : flowData.method;
|
|
2799
3052
|
const trackingCategory = userInfo && !userInfo.first_time_login
|
|
2800
3053
|
? `SSO - Existing User via ${trackingMethod}`
|
|
@@ -2803,7 +3056,7 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2803
3056
|
: `SSO - Sign In via ${trackingMethod}`;
|
|
2804
3057
|
const trackingAction = isEmail
|
|
2805
3058
|
? 'Verify Your Email'
|
|
2806
|
-
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' : ''}`;
|
|
3059
|
+
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' : isWhatsApp ? 'WhatsApp' : ''}`;
|
|
2807
3060
|
React.useEffect(() => {
|
|
2808
3061
|
if (!hidden) {
|
|
2809
3062
|
setError('');
|
|
@@ -2837,6 +3090,9 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2837
3090
|
else if (otpType === 'phone-zalo') {
|
|
2838
3091
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
2839
3092
|
}
|
|
3093
|
+
else if (otpType === 'phone-whatsapp') {
|
|
3094
|
+
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3095
|
+
}
|
|
2840
3096
|
}
|
|
2841
3097
|
else {
|
|
2842
3098
|
if (otpType === 'phone-sms') {
|
|
@@ -2845,6 +3101,9 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2845
3101
|
else if (otpType === 'phone-zalo') {
|
|
2846
3102
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
2847
3103
|
}
|
|
3104
|
+
else if (otpType === 'phone-whatsapp') {
|
|
3105
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3106
|
+
}
|
|
2848
3107
|
else if (otpType === 'email') {
|
|
2849
3108
|
res = yield resendEmailOTP(email);
|
|
2850
3109
|
}
|
|
@@ -2883,6 +3142,9 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2883
3142
|
else if (otpType === 'phone-zalo') {
|
|
2884
3143
|
res = yield verifyUpdatePhoneZaloOTP(phoneNumber, areaCode, otp);
|
|
2885
3144
|
}
|
|
3145
|
+
else if (otpType === 'phone-whatsapp') {
|
|
3146
|
+
res = yield verifyUpdatePhoneWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3147
|
+
}
|
|
2886
3148
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
2887
3149
|
if (afterAction === 'setup') {
|
|
2888
3150
|
const userInfo = yield store.getUserInfo();
|
|
@@ -2908,6 +3170,7 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2908
3170
|
const needPass = (flowData.method === 'email' ||
|
|
2909
3171
|
flowData.method === 'zalo' ||
|
|
2910
3172
|
flowData.method === 'sms' ||
|
|
3173
|
+
flowData.method === 'whatsapp' ||
|
|
2911
3174
|
flowData.method === 'phone' ||
|
|
2912
3175
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
2913
3176
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -2966,6 +3229,9 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2966
3229
|
else if (otpType === 'phone-zalo') {
|
|
2967
3230
|
res = yield verifyByZaloOTP(phoneNumber, areaCode, otp);
|
|
2968
3231
|
}
|
|
3232
|
+
else if (otpType === 'phone-whatsapp') {
|
|
3233
|
+
res = yield verifyByWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3234
|
+
}
|
|
2969
3235
|
else if (otpType === 'email') {
|
|
2970
3236
|
res = yield verifyByEmailOTP(email, otp);
|
|
2971
3237
|
}
|
|
@@ -2988,7 +3254,15 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
2988
3254
|
addStepAndGoNext({
|
|
2989
3255
|
type: store.SSOStepTypeType.FORGOT_PASSWORD_SETUP,
|
|
2990
3256
|
config: {
|
|
2991
|
-
provider: isZalo
|
|
3257
|
+
provider: isZalo
|
|
3258
|
+
? 'Zalo'
|
|
3259
|
+
: isSMS
|
|
3260
|
+
? 'SMS'
|
|
3261
|
+
: isWhatsApp
|
|
3262
|
+
? 'WhatsApp'
|
|
3263
|
+
: isEmail
|
|
3264
|
+
? 'Email'
|
|
3265
|
+
: '',
|
|
2992
3266
|
},
|
|
2993
3267
|
});
|
|
2994
3268
|
}
|
|
@@ -3016,6 +3290,7 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
3016
3290
|
const needPass = (flowData.method === 'email' ||
|
|
3017
3291
|
flowData.method === 'zalo' ||
|
|
3018
3292
|
flowData.method === 'sms' ||
|
|
3293
|
+
flowData.method === 'whatsapp' ||
|
|
3019
3294
|
flowData.method === 'phone' ||
|
|
3020
3295
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
3021
3296
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3056,13 +3331,12 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
3056
3331
|
}
|
|
3057
3332
|
setLoading(false);
|
|
3058
3333
|
});
|
|
3059
|
-
const
|
|
3334
|
+
const swapAnotherMethod = (newType) => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
3060
3335
|
if (isEmail)
|
|
3061
3336
|
return;
|
|
3062
3337
|
setLoading(true);
|
|
3063
3338
|
try {
|
|
3064
3339
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3065
|
-
const newType = otpType === 'phone-sms' ? 'phone-zalo' : 'phone-sms';
|
|
3066
3340
|
let res;
|
|
3067
3341
|
if (isUpdatePhone) {
|
|
3068
3342
|
if (newType === 'phone-sms') {
|
|
@@ -3071,6 +3345,9 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
3071
3345
|
else if (newType === 'phone-zalo') {
|
|
3072
3346
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
3073
3347
|
}
|
|
3348
|
+
else if (newType === 'phone-whatsapp') {
|
|
3349
|
+
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3350
|
+
}
|
|
3074
3351
|
}
|
|
3075
3352
|
else {
|
|
3076
3353
|
if (newType === 'phone-sms') {
|
|
@@ -3079,6 +3356,9 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
3079
3356
|
else if (newType === 'phone-zalo') {
|
|
3080
3357
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
3081
3358
|
}
|
|
3359
|
+
else if (newType === 'phone-whatsapp') {
|
|
3360
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3361
|
+
}
|
|
3082
3362
|
}
|
|
3083
3363
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3084
3364
|
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
@@ -3128,12 +3408,18 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
3128
3408
|
: 'ssov2.otp.phone.description', {
|
|
3129
3409
|
email,
|
|
3130
3410
|
phone,
|
|
3131
|
-
method:
|
|
3411
|
+
method: isSMS
|
|
3412
|
+
? 'SMS'
|
|
3413
|
+
: isZalo
|
|
3414
|
+
? 'Zalo'
|
|
3415
|
+
: isWhatsApp
|
|
3416
|
+
? 'WhatsApp'
|
|
3417
|
+
: '',
|
|
3132
3418
|
}),
|
|
3133
3419
|
} }))),
|
|
3134
3420
|
React__default["default"].createElement(core.Stack, { mt: 24, spacing: 8 },
|
|
3135
|
-
React__default["default"].createElement(index$
|
|
3136
|
-
React__default["default"].createElement(index$
|
|
3421
|
+
React__default["default"].createElement(index$6.Input.Wrapper, { error: error },
|
|
3422
|
+
React__default["default"].createElement(index$6.OTP, { ref: otpRef, value: otp, onChange: (otp) => {
|
|
3137
3423
|
setOtp(String(otp));
|
|
3138
3424
|
if (String(otp).length === 6) {
|
|
3139
3425
|
setTimeout(() => {
|
|
@@ -3158,9 +3444,16 @@ const SSOOTPScreen = ({ hidden, index: index$1, config, }) => {
|
|
|
3158
3444
|
count: resendTime,
|
|
3159
3445
|
})))),
|
|
3160
3446
|
React__default["default"].createElement(index$4.Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue", ref: submitButtonRef }, t('ssov2.button.continue')),
|
|
3161
|
-
!isEmail && (React__default["default"].createElement(
|
|
3162
|
-
|
|
3163
|
-
|
|
3447
|
+
!isEmail && (React__default["default"].createElement(React__default["default"].Fragment, null,
|
|
3448
|
+
isFeatureWhatsAppEnabled && (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-whatsapp'), loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Send OTP Code via WhatsApp", display: !isWhatsApp ? 'block' : 'none', leftIcon: React__default["default"].createElement(WhatsApp, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3449
|
+
method: 'WhatsApp',
|
|
3450
|
+
}))),
|
|
3451
|
+
isFeatureZaloEnabled && (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-zalo'), loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Send OTP Code via Zalo", display: !isZalo ? 'block' : 'none', leftIcon: React__default["default"].createElement(Zalo, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3452
|
+
method: 'Zalo',
|
|
3453
|
+
}))),
|
|
3454
|
+
isFeatureSMSEnabled && (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-sms'), loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Send OTP Code via SMS", display: !isSMS ? 'block' : 'none', leftIcon: React__default["default"].createElement(core$1.ReplySquare, { size: 18 }), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3455
|
+
method: 'SMS',
|
|
3456
|
+
})))))));
|
|
3164
3457
|
};
|
|
3165
3458
|
|
|
3166
3459
|
const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
@@ -3314,7 +3607,7 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
|
3314
3607
|
t('ssov2.password.title2')),
|
|
3315
3608
|
React__default["default"].createElement(index$3.Text, { size: "p4" }, t('ssov2.password.description'))),
|
|
3316
3609
|
React__default["default"].createElement(core.Stack, { mt: 24, spacing: 8 },
|
|
3317
|
-
React__default["default"].createElement(index$
|
|
3610
|
+
React__default["default"].createElement(index$6.PasswordInput, { name: "password", placeholder: t('ssov2.passwordForgotSetup.field.password.placeholder'), error: errMsg || undefined, onChange: () => setErrMsg(''), disabled: loading, required: true, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Password" }),
|
|
3318
3611
|
React__default["default"].createElement(core.Group, { spacing: 8, align: "center", style: {
|
|
3319
3612
|
height: 40,
|
|
3320
3613
|
} },
|
|
@@ -3333,6 +3626,7 @@ const SetupLater = ({ style = {} }) => {
|
|
|
3333
3626
|
const { currentStepIndex, steps, addStep, goNext } = store.useSSOSteps();
|
|
3334
3627
|
const currentStep = steps[currentStepIndex];
|
|
3335
3628
|
const onClickSetupLater = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
3629
|
+
var _a;
|
|
3336
3630
|
if (loading)
|
|
3337
3631
|
return;
|
|
3338
3632
|
setLoading(true);
|
|
@@ -3341,7 +3635,9 @@ const SetupLater = ({ style = {} }) => {
|
|
|
3341
3635
|
((currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.VERIFY_PHONE ||
|
|
3342
3636
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === store.SSOStepTypeType.FORGOT_PASSWORD_PHONE)) {
|
|
3343
3637
|
addStep({
|
|
3344
|
-
type:
|
|
3638
|
+
type: ((_a = currentStep.config) === null || _a === void 0 ? void 0 : _a.afterAction) === 'update-email'
|
|
3639
|
+
? store.SSOStepTypeType.UPDATE_EMAIL
|
|
3640
|
+
: store.SSOStepTypeType.SETUP_FULL,
|
|
3345
3641
|
config: {
|
|
3346
3642
|
userInfo,
|
|
3347
3643
|
},
|
|
@@ -3360,7 +3656,8 @@ const SetupLater = ({ style = {} }) => {
|
|
|
3360
3656
|
goNext();
|
|
3361
3657
|
}
|
|
3362
3658
|
else {
|
|
3363
|
-
|
|
3659
|
+
const isResetPasswordFlow = isResetPasswordViePhoneFlowFn(steps);
|
|
3660
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(!isResetPasswordFlow);
|
|
3364
3661
|
}
|
|
3365
3662
|
setLoading(false);
|
|
3366
3663
|
});
|
|
@@ -3387,7 +3684,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3387
3684
|
}, [hidden]);
|
|
3388
3685
|
const [loading, setLoading] = React__default["default"].useState(false);
|
|
3389
3686
|
const { addStep, goNext } = store.useSSOSteps();
|
|
3390
|
-
const
|
|
3687
|
+
const onClickContinueWhatsApp = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
3391
3688
|
var _a, _b;
|
|
3392
3689
|
setLoading(true);
|
|
3393
3690
|
try {
|
|
@@ -3400,6 +3697,49 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3400
3697
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3401
3698
|
let res;
|
|
3402
3699
|
if (!((_a = userExist._data) === null || _a === void 0 ? void 0 : _a.provider)) {
|
|
3700
|
+
res = yield registerBySendWhatsAppOTP(phoneNumber, areaCode);
|
|
3701
|
+
}
|
|
3702
|
+
else {
|
|
3703
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3704
|
+
}
|
|
3705
|
+
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3706
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
3707
|
+
return setLoading(false);
|
|
3708
|
+
}
|
|
3709
|
+
addStep({
|
|
3710
|
+
type: store.SSOStepTypeType.OTP,
|
|
3711
|
+
config: {
|
|
3712
|
+
phone,
|
|
3713
|
+
otpType: 'phone-whatsapp',
|
|
3714
|
+
afterAction: config.afterAction || 'forgot',
|
|
3715
|
+
provider: (_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider,
|
|
3716
|
+
},
|
|
3717
|
+
});
|
|
3718
|
+
goNext();
|
|
3719
|
+
}
|
|
3720
|
+
else {
|
|
3721
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
catch (e) {
|
|
3725
|
+
console.error(e);
|
|
3726
|
+
setErrMsg(getErrorTextFromCode(t, ''));
|
|
3727
|
+
}
|
|
3728
|
+
setLoading(false);
|
|
3729
|
+
});
|
|
3730
|
+
const onClickContinueZalo = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
3731
|
+
var _c, _d;
|
|
3732
|
+
setLoading(true);
|
|
3733
|
+
try {
|
|
3734
|
+
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3735
|
+
if (!areaCode || !phoneNumber || !phone) {
|
|
3736
|
+
setErrMsg(t('ssov2.validate.phone.required'));
|
|
3737
|
+
return setLoading(false);
|
|
3738
|
+
}
|
|
3739
|
+
const userExist = yield store.checkUserExist({ phone: phoneNumber });
|
|
3740
|
+
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3741
|
+
let res;
|
|
3742
|
+
if (!((_c = userExist._data) === null || _c === void 0 ? void 0 : _c.provider)) {
|
|
3403
3743
|
res = yield registerBySendZaloOTP(phoneNumber, areaCode);
|
|
3404
3744
|
}
|
|
3405
3745
|
else {
|
|
@@ -3415,7 +3755,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3415
3755
|
phone,
|
|
3416
3756
|
otpType: 'phone-zalo',
|
|
3417
3757
|
afterAction: config.afterAction || 'forgot',
|
|
3418
|
-
provider: (
|
|
3758
|
+
provider: (_d = userExist._data) === null || _d === void 0 ? void 0 : _d.provider,
|
|
3419
3759
|
},
|
|
3420
3760
|
});
|
|
3421
3761
|
goNext();
|
|
@@ -3431,7 +3771,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3431
3771
|
setLoading(false);
|
|
3432
3772
|
});
|
|
3433
3773
|
const onClickContinuePhone = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
3434
|
-
var
|
|
3774
|
+
var _e, _f;
|
|
3435
3775
|
setLoading(true);
|
|
3436
3776
|
try {
|
|
3437
3777
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
@@ -3442,7 +3782,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3442
3782
|
const userExist = yield store.checkUserExist({ phone: phoneNumber });
|
|
3443
3783
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3444
3784
|
let res;
|
|
3445
|
-
if (!((
|
|
3785
|
+
if (!((_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider)) {
|
|
3446
3786
|
res = yield registerBySendPhoneOTP(phoneNumber, areaCode);
|
|
3447
3787
|
}
|
|
3448
3788
|
else {
|
|
@@ -3458,7 +3798,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3458
3798
|
phone,
|
|
3459
3799
|
otpType: 'phone-sms',
|
|
3460
3800
|
afterAction: config.afterAction || 'forgot',
|
|
3461
|
-
provider: (
|
|
3801
|
+
provider: (_f = userExist._data) === null || _f === void 0 ? void 0 : _f.provider,
|
|
3462
3802
|
},
|
|
3463
3803
|
});
|
|
3464
3804
|
goNext();
|
|
@@ -3492,8 +3832,9 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3492
3832
|
};
|
|
3493
3833
|
}, []) }),
|
|
3494
3834
|
errMsg && (React__default["default"].createElement(index$3.Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
|
|
3495
|
-
React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick:
|
|
3496
|
-
React__default["default"].createElement(index$4.Button, { size: "
|
|
3835
|
+
isFeatureWhatsAppEnabled && (React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueWhatsApp, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with WhatsApp", leftIcon: React__default["default"].createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.continueWhatsApp'))),
|
|
3836
|
+
isFeatureZaloEnabled && (React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo", leftIcon: React__default["default"].createElement(Zalo, null) }, t('ssov2.button.continueZalo'))),
|
|
3837
|
+
isFeatureSMSEnabled && (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default["default"].createElement(core$1.ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS'))),
|
|
3497
3838
|
React__default["default"].createElement(SetupLater, null))));
|
|
3498
3839
|
};
|
|
3499
3840
|
|
|
@@ -3517,18 +3858,18 @@ const SSOPasswordWithConfirm = (_a) => {
|
|
|
3517
3858
|
setAtLeastOneUpper(!!password.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/));
|
|
3518
3859
|
}, [password]);
|
|
3519
3860
|
return (React__default["default"].createElement(core.Stack, Object.assign({ spacing: 12 }, props),
|
|
3520
|
-
React__default["default"].createElement(index$
|
|
3861
|
+
React__default["default"].createElement(index$6.PasswordInput, Object.assign({ name: "password", placeholder: t('ssov2.passwordForgotSetup.field.password.placeholder'), label: t('ssov2.passwordForgotSetup.field.password.label'), required: true, withAsterisk: true }, form.getInputProps('password'), { onBlur: (e) => {
|
|
3521
3862
|
form.getInputProps('password').onBlur(e);
|
|
3522
3863
|
form.values.confirmPassword && form.validateField('confirmPassword');
|
|
3523
3864
|
}, disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Password" })),
|
|
3524
3865
|
React__default["default"].createElement(core.Stack, { spacing: 8 },
|
|
3525
|
-
React__default["default"].createElement(core.Group, { spacing: 4, align: "
|
|
3866
|
+
React__default["default"].createElement(core.Group, { spacing: 4, align: "flex-start" },
|
|
3526
3867
|
atLeast8Chars ? (React__default["default"].createElement(CheckGreenIcon, null)) : typeof atLeast8Chars === 'undefined' ? (React__default["default"].createElement(CheckGrayIcon, null)) : (React__default["default"].createElement(CheckRedIcon, null)),
|
|
3527
|
-
React__default["default"].createElement(index$3.Text, { size: "n1" }, t('ssov2.passwordForgotSetup.field.password.atLeast8Chars'))),
|
|
3528
|
-
React__default["default"].createElement(core.Group, { spacing: 4, align: "
|
|
3868
|
+
React__default["default"].createElement(index$3.Text, { size: "n1", style: { flex: 1 } }, t('ssov2.passwordForgotSetup.field.password.atLeast8Chars'))),
|
|
3869
|
+
React__default["default"].createElement(core.Group, { spacing: 4, align: "flex-start" },
|
|
3529
3870
|
atLeastOneUpper ? (React__default["default"].createElement(CheckGreenIcon, null)) : typeof atLeastOneUpper === 'undefined' ? (React__default["default"].createElement(CheckGrayIcon, null)) : (React__default["default"].createElement(CheckRedIcon, null)),
|
|
3530
|
-
React__default["default"].createElement(index$3.Text, { size: "n1" }, t('ssov2.passwordForgotSetup.field.password.atLeastOneUpper')))),
|
|
3531
|
-
React__default["default"].createElement(index$
|
|
3871
|
+
React__default["default"].createElement(index$3.Text, { size: "n1", style: { flex: 1 } }, t('ssov2.passwordForgotSetup.field.password.atLeastOneUpper')))),
|
|
3872
|
+
React__default["default"].createElement(index$6.PasswordInput, Object.assign({ name: "confirm-password", placeholder: t('ssov2.passwordForgotSetup.field.passwordConfirm.placeholder'), label: t('ssov2.passwordForgotSetup.field.passwordConfirm.label'), required: true, withAsterisk: true, disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Confirm Password" }, form.getInputProps('confirmPassword')))));
|
|
3532
3873
|
};
|
|
3533
3874
|
|
|
3534
3875
|
const SSOPasswordForgotSetup = ({ hidden, }) => {
|
|
@@ -3787,6 +4128,48 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3787
4128
|
}
|
|
3788
4129
|
setLoading(false);
|
|
3789
4130
|
});
|
|
4131
|
+
const onClickContinueWhatsApp = () => tslib_es6.__awaiter(void 0, void 0, void 0, function* () {
|
|
4132
|
+
setLoading(true);
|
|
4133
|
+
try {
|
|
4134
|
+
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
4135
|
+
if (!areaCode || !phoneNumber || !phone) {
|
|
4136
|
+
setErrMsg(t('ssov2.validate.phone.required'));
|
|
4137
|
+
return setLoading(false);
|
|
4138
|
+
}
|
|
4139
|
+
const userExist = yield store.checkUserExist({ phone: phoneNumber });
|
|
4140
|
+
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
4141
|
+
if (!userExist._data) {
|
|
4142
|
+
const res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
4143
|
+
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
4144
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
4145
|
+
return setLoading(false);
|
|
4146
|
+
}
|
|
4147
|
+
addStep({
|
|
4148
|
+
type: store.SSOStepTypeType.OTP,
|
|
4149
|
+
config: {
|
|
4150
|
+
provider,
|
|
4151
|
+
phone,
|
|
4152
|
+
otpType: 'phone-whatsapp',
|
|
4153
|
+
isUpdatePhone: true,
|
|
4154
|
+
afterAction: afterAction || 'setup',
|
|
4155
|
+
},
|
|
4156
|
+
});
|
|
4157
|
+
goNext();
|
|
4158
|
+
}
|
|
4159
|
+
else {
|
|
4160
|
+
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
4161
|
+
}
|
|
4162
|
+
}
|
|
4163
|
+
else {
|
|
4164
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
4165
|
+
}
|
|
4166
|
+
}
|
|
4167
|
+
catch (e) {
|
|
4168
|
+
console.log(e);
|
|
4169
|
+
setErrMsg(getErrorTextFromCode(t, ''));
|
|
4170
|
+
}
|
|
4171
|
+
setLoading(false);
|
|
4172
|
+
});
|
|
3790
4173
|
return (React__default["default"].createElement("div", { style: {
|
|
3791
4174
|
display: hidden ? 'none' : 'block',
|
|
3792
4175
|
} },
|
|
@@ -3795,7 +4178,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3795
4178
|
React__default["default"].createElement(index$3.Text, { size: "s1", weight: "semiBold" }, t('ssov2.phoneVerify.title')),
|
|
3796
4179
|
React__default["default"].createElement(index$3.Text, { size: "p4" }, t('ssov2.phoneVerify.description'))),
|
|
3797
4180
|
React__default["default"].createElement(core.Stack, { spacing: 16 },
|
|
3798
|
-
React__default["default"].createElement(index$
|
|
4181
|
+
React__default["default"].createElement(index$6.Input.Wrapper, { error: errMsg },
|
|
3799
4182
|
React__default["default"].createElement(StyledPhone, { defaultCountry: (locale ? utils.MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => {
|
|
3800
4183
|
setPhone(value);
|
|
3801
4184
|
setErrMsg('');
|
|
@@ -3808,8 +4191,9 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3808
4191
|
'data-event-category': trackingCategory,
|
|
3809
4192
|
};
|
|
3810
4193
|
}, []) })),
|
|
3811
|
-
React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick:
|
|
3812
|
-
React__default["default"].createElement(index$4.Button, { size: "
|
|
4194
|
+
isFeatureWhatsAppEnabled && (React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueWhatsApp, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with WhatsApp", leftIcon: React__default["default"].createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.continueWhatsApp'))),
|
|
4195
|
+
isFeatureZaloEnabled && (React__default["default"].createElement(index$4.Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo", leftIcon: React__default["default"].createElement(Zalo, null) }, t('ssov2.button.continueZalo'))),
|
|
4196
|
+
isFeatureSMSEnabled && (React__default["default"].createElement(index$4.Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default["default"].createElement(core$1.ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS'))),
|
|
3813
4197
|
source !== 'care_onboarding' && source !== 'ecom' && React__default["default"].createElement(SetupLater, null)))));
|
|
3814
4198
|
};
|
|
3815
4199
|
|
|
@@ -3855,8 +4239,8 @@ loading, tracking, }) => {
|
|
|
3855
4239
|
const { setupSource } = store.useSSOV2Store();
|
|
3856
4240
|
const [dobChanged, setDobChanged] = React__default["default"].useState(false);
|
|
3857
4241
|
return (React__default["default"].createElement(core.Stack, { spacing: 12 },
|
|
3858
|
-
React__default["default"].createElement(index$
|
|
3859
|
-
React__default["default"].createElement(index$
|
|
4242
|
+
React__default["default"].createElement(index$6.Input, Object.assign({ name: "name", label: t('ssov2.setup.field.name.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.name.placeholder'), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Name" }, form.getInputProps('name'))),
|
|
4243
|
+
React__default["default"].createElement(index$6.Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.gender.label'), withAsterisk: true }, form.getInputProps('gender')),
|
|
3860
4244
|
React__default["default"].createElement(core.Group, null,
|
|
3861
4245
|
React__default["default"].createElement(index$4.Button, { type: "button", styles: {
|
|
3862
4246
|
root: {
|
|
@@ -3882,7 +4266,7 @@ loading, tracking, }) => {
|
|
|
3882
4266
|
: 'tertiary', onClick: () => {
|
|
3883
4267
|
form.setFieldValue('gender', 'male');
|
|
3884
4268
|
}, leftIcon: React__default["default"].createElement(MaleIcon, null), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Gender" }, t('ssov2.setup.field.gender.male')))),
|
|
3885
|
-
React__default["default"].createElement(index$
|
|
4269
|
+
React__default["default"].createElement(index$8.DatePicker, Object.assign({ name: "dob", label: t('ssov2.setup.field.dob.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.dob.placeholder'), maxDate: new Date(new Date().getFullYear() - 18, new Date().getMonth(), new Date().getDate()), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Birthday" }, form.getInputProps('dob'), { onChange: (e) => {
|
|
3886
4270
|
form.getInputProps('dob').onChange(e);
|
|
3887
4271
|
setDobChanged(true);
|
|
3888
4272
|
}, onBlur: (e) => {
|
|
@@ -3890,7 +4274,7 @@ loading, tracking, }) => {
|
|
|
3890
4274
|
return;
|
|
3891
4275
|
form.getInputProps('dob').onBlur(e);
|
|
3892
4276
|
} })),
|
|
3893
|
-
needEmail && (React__default["default"].createElement(index$
|
|
4277
|
+
needEmail && (React__default["default"].createElement(index$6.Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required: ['care', 'ecom', 'community'].includes(setupSource), withAsterisk: ['care', 'ecom', 'community'].includes(setupSource), "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Email", style: {
|
|
3894
4278
|
display: isEmailDisable ? 'none' : 'block',
|
|
3895
4279
|
} }, form.getInputProps('email'))))));
|
|
3896
4280
|
};
|
|
@@ -3951,6 +4335,7 @@ const SSOSetupScreen = ({ hidden, config, }) => {
|
|
|
3951
4335
|
undefined;
|
|
3952
4336
|
const needEmail = setupSource === 'care' ||
|
|
3953
4337
|
setupSource === 'ecom' ||
|
|
4338
|
+
setupSource === 'community' ||
|
|
3954
4339
|
!(flowData === null || flowData === void 0 ? void 0 : flowData.isVerifyPhone) ||
|
|
3955
4340
|
authMethod === 'facebook' ||
|
|
3956
4341
|
provider === 'facebook';
|
|
@@ -4132,7 +4517,7 @@ const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
|
4132
4517
|
React__default["default"].createElement(core.Stack, { spacing: 8 },
|
|
4133
4518
|
React__default["default"].createElement(index$3.Text, { size: "s1", weight: "semiBold" }, t('ssov2.updateEmail.title')),
|
|
4134
4519
|
React__default["default"].createElement(index$3.Text, { size: "p4" }, t('ssov2.updateEmail.description'))),
|
|
4135
|
-
React__default["default"].createElement(index$
|
|
4520
|
+
React__default["default"].createElement(index$6.Input, { name: "email", placeholder: t('onboarding.formEmail.yourEmail'), error: errMsg || undefined, type: "email", required: true, mt: 24, onChange: () => setErrMsg(''), disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Email" }),
|
|
4136
4521
|
React__default["default"].createElement(index$4.Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Verify Your Email" }, t('ssov2.updateEmail.button'))));
|
|
4137
4522
|
};
|
|
4138
4523
|
|
|
@@ -4182,7 +4567,7 @@ if (!String.prototype.capitalize) {
|
|
|
4182
4567
|
};
|
|
4183
4568
|
}
|
|
4184
4569
|
const SSOV2 = ({ onClose: onCloseProps, locale }) => {
|
|
4185
|
-
const { isOpen, setOpen, returnUrl, setMounted, source, overrideClose, setOnCloseProp, forceReloadOnClose, } = store.useSSOV2Store();
|
|
4570
|
+
const { isOpen, setOpen, returnUrl, setMounted, source, overrideClose, setOnCloseProp, forceReloadOnClose, setABTestFlow, } = store.useSSOV2Store();
|
|
4186
4571
|
React.useEffect(() => {
|
|
4187
4572
|
setMounted(true);
|
|
4188
4573
|
return () => {
|
|
@@ -4200,6 +4585,37 @@ const SSOV2 = ({ onClose: onCloseProps, locale }) => {
|
|
|
4200
4585
|
React.useEffect(() => {
|
|
4201
4586
|
setOnCloseProp(onCloseProps);
|
|
4202
4587
|
}, [onCloseProps]);
|
|
4588
|
+
React.useEffect(() => {
|
|
4589
|
+
const site = constantsDomainLocales.MAP_DOMAIN_BY_LOCALE[locale];
|
|
4590
|
+
const previousABTestingFlow = miscCookieHelper.getCookie('abTestingFlow');
|
|
4591
|
+
fetchFeatureFlag(site).then((data) => {
|
|
4592
|
+
if (data.is_enabled) {
|
|
4593
|
+
if (previousABTestingFlow) {
|
|
4594
|
+
setABTestFlow(previousABTestingFlow);
|
|
4595
|
+
}
|
|
4596
|
+
else {
|
|
4597
|
+
const randomBetween100Percent = Math.floor(Math.random() * 100 + 1);
|
|
4598
|
+
const aFlow = data.a_percentage;
|
|
4599
|
+
console.log('randomBetween100Percent', randomBetween100Percent);
|
|
4600
|
+
if (randomBetween100Percent <= aFlow) {
|
|
4601
|
+
miscCookieHelper.setCookie('abTestingFlow', 'A', {
|
|
4602
|
+
days: 30,
|
|
4603
|
+
});
|
|
4604
|
+
setABTestFlow('A');
|
|
4605
|
+
}
|
|
4606
|
+
else {
|
|
4607
|
+
miscCookieHelper.setCookie('abTestingFlow', 'B', {
|
|
4608
|
+
days: 30,
|
|
4609
|
+
});
|
|
4610
|
+
setABTestFlow('B');
|
|
4611
|
+
}
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
else {
|
|
4615
|
+
miscCookieHelper.deleteCookie('abTestingFlow');
|
|
4616
|
+
}
|
|
4617
|
+
});
|
|
4618
|
+
}, [locale]);
|
|
4203
4619
|
if (!isOpen) {
|
|
4204
4620
|
return null;
|
|
4205
4621
|
}
|
|
@@ -4230,7 +4646,7 @@ const SSOV2 = ({ onClose: onCloseProps, locale }) => {
|
|
|
4230
4646
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
4231
4647
|
}
|
|
4232
4648
|
});
|
|
4233
|
-
return (React__default["default"].createElement(index$
|
|
4649
|
+
return (React__default["default"].createElement(index$6.ErrorBoundary, null,
|
|
4234
4650
|
React__default["default"].createElement(SSOStateProvider, { onClose: onClose, locale: locale },
|
|
4235
4651
|
React__default["default"].createElement(SSOPopupWrapper, { opened: true, onClose: onClose },
|
|
4236
4652
|
React__default["default"].createElement(SSOScreenRenderer, null)))));
|