@hhgtech/hhg-components 1.29.314-beta-14 → 1.29.315
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/build/{LastPeriod-d69eca06.js → LastPeriod-399127f3.js} +1 -1
- package/build/{MobileBottomNavigationIcon-ceb73c53.js → MobileBottomNavigationIcon-85bb8186.js} +3 -3
- package/build/{Spinner-19113ea7.js → Spinner-831813bd.js} +1 -1
- package/build/{WhatsApp-76ca0f91.js → WhatsApp-c4c30a46.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/index.styled.d.ts +2 -2
- package/build/care.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components/atoms/drawer/helpers.d.ts +1 -1
- package/build/components/mantine/helpers.d.ts +1 -1
- package/build/components/molecules/mobileBottomNavigation/index.styled.d.ts +1 -6
- package/build/components/onboardingV2/frisoForm/index.d.ts +1 -1
- package/build/components/onboardingV2/index.d.ts +1 -1
- package/build/components.js +90 -90
- package/build/{constants-4f288ba0.js → constants-2f3f4a32.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-fb1a3ee5.js → core-a175766a.js} +1 -1
- package/build/{dataTransform-5d86d4aa.js → dataTransform-cce542ae.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-f2b18131.js → editor-e43de058.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-fe7bc209.js → LastPeriod-e1a56a9d.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-54a90796.js → MobileBottomNavigationIcon-3123ba15.js} +3 -3
- package/build/esm/{Spinner-56331978.js → Spinner-d28e2789.js} +1 -1
- package/build/esm/{WhatsApp-8254e72f.js → WhatsApp-e917af5d.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/index.styled.d.ts +2 -2
- 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/atoms/drawer/helpers.d.ts +1 -1
- package/build/esm/components/mantine/helpers.d.ts +1 -1
- package/build/esm/components/molecules/mobileBottomNavigation/index.styled.d.ts +1 -6
- package/build/esm/components/onboardingV2/frisoForm/index.d.ts +1 -1
- package/build/esm/components/onboardingV2/index.d.ts +1 -1
- package/build/esm/components.js +90 -90
- package/build/esm/{constants-b3c0de30.js → constants-a30059db.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-92270d00.js → core-2278a3f4.js} +1 -1
- package/build/esm/{dataTransform-ed569492.js → dataTransform-e7d04f1a.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-14e431aa.js → editor-01cf4588.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/{fixedBottomAdBlock-6e0698f1.js → fixedBottomAdBlock-246390aa.js} +24 -24
- 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/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -5
- package/build/esm/i18n-values/hi-IN.js +1 -5
- package/build/esm/i18n-values/id-ID.js +172 -176
- package/build/esm/i18n-values/km-KH.js +1 -5
- package/build/esm/i18n-values/ms-MY.js +313 -317
- package/build/esm/i18n-values/my-MM.js +0 -4
- package/build/esm/i18n-values/th-TH.js +0 -4
- package/build/esm/i18n-values/tl-PH.js +0 -4
- package/build/esm/i18n-values/vi-VN.js +0 -4
- package/build/esm/i18n-values/vi-VN_MB.js +0 -4
- package/build/esm/i18n-values/zh-TW.js +1 -5
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-cf646e5b.js → index-0218cd4c.js} +2 -2
- package/build/esm/{index-423ca167.js → index-0528c887.js} +1 -1
- package/build/esm/{index-d00fbd4b.js → index-095d65c4.js} +15 -15
- package/build/esm/{index-652d77eb.js → index-09ae8772.js} +3 -3
- package/build/esm/{index-e29992a0.js → index-09e90ce8.js} +7 -7
- package/build/esm/{index-358b56f1.js → index-0ab3dc50.js} +3 -3
- package/build/esm/{index-50a1ad54.js → index-0b52c6d7.js} +16 -16
- package/build/esm/{index-06560e8a.js → index-113b0d38.js} +2 -2
- package/build/esm/{index-1898d32b.js → index-162fd73d.js} +21 -21
- package/build/esm/{index-feaf791d.js → index-16867b47.js} +2 -2
- package/build/esm/{index-cc5a647d.js → index-16ff2dcb.js} +13 -13
- package/build/esm/{index-3dfa9349.js → index-208f847c.js} +11 -11
- package/build/esm/{index-3a3b6cbe.js → index-25a8eee9.js} +5 -5
- package/build/esm/{index-89bba1bc.js → index-2f1118a0.js} +3 -3
- package/build/esm/{index-3be07119.js → index-3566e22e.js} +2 -2
- package/build/esm/{index-bb807a69.js → index-372b192c.js} +13 -13
- package/build/esm/{index-d28b54f2.js → index-38e7df62.js} +2 -2
- package/build/esm/{index-fc544012.js → index-42893067.js} +10 -10
- package/build/esm/{index-8e56ec89.js → index-45839ff0.js} +24 -24
- package/build/esm/{index-2ddebe13.js → index-4584ac41.js} +17 -17
- package/build/esm/{index-565d7f57.js → index-470db0b9.js} +30 -30
- package/build/esm/{index-e1a17eae.js → index-49e1625e.js} +2 -2
- package/build/esm/{index-16ac98f0.js → index-4ba32059.js} +1 -1
- package/build/esm/{index-4c84452a.js → index-4e1a25c5.js} +3 -3
- package/build/esm/{index-c884fcbe.js → index-56dceb35.js} +13 -13
- package/build/esm/{index-33ffdd43.js → index-5b374418.js} +32 -32
- package/build/esm/{index-7e34b9b0.js → index-5b7bc292.js} +16 -16
- package/build/esm/{index-7a7a0172.js → index-64243680.js} +1 -1
- package/build/esm/{index-b04816c8.js → index-684aad84.js} +20 -20
- package/build/esm/{index-5f55ac8f.js → index-6a9fb840.js} +7 -7
- package/build/esm/index-708e9c73.js +275 -0
- package/build/esm/{index-2851c41d.js → index-72469c93.js} +16 -16
- package/build/esm/{index-0b74abbf.js → index-7b032cb2.js} +2 -2
- package/build/esm/{index-9d6d73bf.js → index-8724abda.js} +1 -1
- package/build/esm/{index-20b50b83.js → index-8daf228c.js} +16 -16
- package/build/esm/{index-b0c6b8ba.js → index-8f767550.js} +6 -6
- package/build/esm/{index-84b37ca1.js → index-9ada7ed7.js} +15 -15
- package/build/esm/{index-67a05e8b.js → index-a8aa5875.js} +1 -1
- package/build/esm/{index-f62f2c51.js → index-a918e93d.js} +6 -6
- package/build/esm/{index-9cb11355.js → index-a9d08a7a.js} +2 -2
- package/build/esm/{index-cbb3fcd6.js → index-ab7a2034.js} +18 -18
- package/build/esm/{index-d0a2d7ee.js → index-af8b68f3.js} +2 -2
- package/build/esm/{index-5c633cc6.js → index-b3cc4c4e.js} +6 -6
- package/build/esm/{index-678ef23e.js → index-b551f961.js} +1 -1
- package/build/esm/{index-fb788953.js → index-bb1ff84d.js} +3 -3
- package/build/esm/{index-4e863234.js → index-bb35ce33.js} +26 -26
- package/build/esm/{index-d994fc09.js → index-bfd40ed5.js} +3 -3
- package/build/esm/{index-e66b62ac.js → index-c800a73c.js} +1 -1
- package/build/esm/{index-cd4f1483.js → index-d85c6d43.js} +5 -2
- package/build/esm/{index-7e82709d.js → index-dddecf13.js} +6 -6
- package/build/esm/{index-589c02a3.js → index-de51ef01.js} +2 -2
- package/build/esm/{index-c6d57c2b.js → index-df6c41d1.js} +4 -4
- package/build/esm/{index-21f7be62.js → index-ec2353dd.js} +5 -5
- package/build/esm/{index-188e5960.js → index-ecbfffdb.js} +3 -3
- package/build/esm/{index-47de3558.js → index-ef1f0ceb.js} +13 -13
- package/build/esm/{index-181058d9.js → index-ef46126e.js} +17 -17
- package/build/esm/{index-11d162e1.js → index-f5ca6734.js} +18 -18
- package/build/esm/{index-386a16ee.js → index-fbbfa8e1.js} +2 -2
- package/build/esm/{index-fce22db0.js → index-fdca539f.js} +1 -1
- package/build/esm/{index-0b0e75d8.js → index-fe12e954.js} +2 -2
- package/build/esm/{index-4fcd03f2.js → index-ff203f0f.js} +17 -17
- package/build/esm/index.js +112 -112
- package/build/esm/interfaces/constants/index.d.ts +4 -1
- package/build/esm/{labelSorting-21c6fed8.js → labelSorting-371d5720.js} +4 -4
- package/build/esm/lead.js +24 -24
- package/build/esm/{logoIcon-a74e2c16.js → logoIcon-c230ea02.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc/animation.d.ts +9 -54
- 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/{post-3727191a.js → post-3c3525dc.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/index.d.ts +0 -1
- package/build/esm/ssoV2/api/paths.d.ts +0 -7
- package/build/esm/ssoV2/api/phoneUtils.d.ts +1 -1
- package/build/esm/ssoV2/screens/components/progressBar.d.ts +0 -1
- package/build/esm/ssoV2/screens/otp.d.ts +1 -1
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +1 -1
- package/build/esm/ssoV2.js +64 -343
- package/build/esm/{store-73ff33b5.js → store-d17bd9ef.js} +9 -21
- package/build/esm/subot/utils/index.d.ts +1 -1
- package/build/esm/subot.js +174 -137
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-b5de25f4.js → surveyThankyouCard-dae6de80.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-258cb43f.js → treePopoverMenu-306841ea.js} +19 -19
- package/build/esm/{types-d6f28ecb.js → types-5996a251.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-35c4e36d.js → useCategory-09d3585b.js} +5 -5
- package/build/esm/{useHealthToolCache-2cacb90e.js → useHealthToolCache-5a7f86be.js} +1 -1
- package/build/esm/{useMantineLocale-0ba0ecb6.js → useMantineLocale-d71ce863.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-479dc7c7.js → usePlacesAutocomplete-09c8cc83.js} +1 -1
- package/build/esm/{useScreenSize-809adcd8.js → useScreenSize-fbbdb880.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-c83bdd26.js → utils-1a19bf54.js} +2 -2
- package/build/esm/{utils-813533ea.js → utils-c6ca6c1f.js} +2 -2
- package/build/esm/{utils-cb6cc1fc.js → utils-f8a0118f.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-b5612f89.js → fixedBottomAdBlock-26545433.js} +24 -24
- 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/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -5
- package/build/i18n-values/hi-IN.js +1 -5
- package/build/i18n-values/id-ID.js +172 -176
- package/build/i18n-values/km-KH.js +1 -5
- package/build/i18n-values/ms-MY.js +313 -317
- package/build/i18n-values/my-MM.js +0 -4
- package/build/i18n-values/th-TH.js +0 -4
- package/build/i18n-values/tl-PH.js +0 -4
- package/build/i18n-values/vi-VN.js +0 -4
- package/build/i18n-values/vi-VN_MB.js +0 -4
- package/build/i18n-values/zh-TW.js +1 -5
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-c2706343.js → index-03b5388a.js} +4 -4
- package/build/{index-813c123e.js → index-057c5667.js} +6 -6
- package/build/{index-7087de20.js → index-07bfb8de.js} +1 -1
- package/build/{index-5b9515a4.js → index-089e4816.js} +2 -2
- package/build/{index-17b20abb.js → index-11cfbfc6.js} +6 -6
- package/build/{index-41cfc156.js → index-1c545b22.js} +1 -1
- package/build/{index-88313670.js → index-1de56fca.js} +3 -3
- package/build/{index-5e52769d.js → index-22ee39ae.js} +3 -3
- package/build/{index-a4c0de8c.js → index-24703e8f.js} +5 -2
- package/build/{index-3b6e5460.js → index-24a26c24.js} +13 -13
- package/build/{index-e55ef1b8.js → index-2556df99.js} +17 -17
- package/build/{index-c68b8879.js → index-26c1154c.js} +26 -26
- package/build/{index-e900ba25.js → index-28d5cd45.js} +13 -13
- package/build/{index-888ee1c9.js → index-3103ff2e.js} +18 -18
- package/build/{index-667057a4.js → index-3578de33.js} +2 -2
- package/build/{index-c1f41988.js → index-38c79b62.js} +5 -5
- package/build/{index-568d1e34.js → index-38e8e374.js} +6 -6
- package/build/{index-bf887d09.js → index-3a03c4db.js} +16 -16
- package/build/{index-c7b962b6.js → index-3ec3e2fe.js} +2 -2
- package/build/index-40080fb4.js +277 -0
- package/build/{index-44bf96a1.js → index-4248215f.js} +3 -3
- package/build/{index-1c99f510.js → index-437b5a73.js} +2 -2
- package/build/{index-30767393.js → index-4e288c53.js} +1 -1
- package/build/{index-58e75230.js → index-53d6a276.js} +13 -13
- package/build/{index-ae27bb9c.js → index-57470259.js} +21 -21
- package/build/{index-67258b98.js → index-5b8f0ddf.js} +30 -30
- package/build/{index-86ada07b.js → index-6412753c.js} +1 -1
- package/build/{index-b3eb909d.js → index-67be90f0.js} +16 -16
- package/build/{index-0615e5cb.js → index-6926c114.js} +7 -7
- package/build/{index-40a82e6a.js → index-6f1ce4f1.js} +2 -2
- package/build/{index-1e1a8d68.js → index-70faa125.js} +3 -3
- package/build/{index-0ac2752e.js → index-735554f4.js} +2 -2
- package/build/{index-9233100e.js → index-77ba4766.js} +32 -32
- package/build/{index-4c64613f.js → index-7cafd690.js} +3 -3
- package/build/{index-679587fc.js → index-7e6afe52.js} +10 -10
- package/build/{index-6a137573.js → index-7ebfc000.js} +5 -5
- package/build/{index-8cf2aea5.js → index-80350077.js} +24 -24
- package/build/{index-d34a57a4.js → index-877cc53a.js} +16 -16
- package/build/{index-653c41cd.js → index-896d1932.js} +18 -18
- package/build/{index-7d21aaab.js → index-8e6c5fb1.js} +2 -2
- package/build/{index-780d2816.js → index-9f60ef69.js} +16 -16
- package/build/{index-895977d8.js → index-a99e0254.js} +2 -2
- package/build/{index-a1cde0ec.js → index-aa3468fd.js} +2 -2
- package/build/{index-3457576b.js → index-ad8df46f.js} +7 -7
- package/build/{index-cbe5944e.js → index-b4b2076e.js} +17 -17
- package/build/{index-b7e27dc8.js → index-bc6d0c9e.js} +15 -15
- package/build/{index-8e52a15d.js → index-be8d8de4.js} +3 -3
- package/build/{index-839b3b8f.js → index-c07785a9.js} +2 -2
- package/build/{index-a5e81644.js → index-d1b9e7ac.js} +15 -15
- package/build/{index-96f3c31b.js → index-d4f0cea1.js} +13 -13
- package/build/{index-e0bc1a9e.js → index-e0761f4a.js} +1 -1
- package/build/{index-c6b86772.js → index-e3af0d00.js} +2 -2
- package/build/{index-47aa8d5a.js → index-e562d832.js} +3 -3
- package/build/{index-379f63de.js → index-e6f53fbf.js} +17 -17
- package/build/{index-7b77e111.js → index-e9163a92.js} +1 -1
- package/build/{index-eb43fd61.js → index-eb7ca401.js} +1 -1
- package/build/{index-9837cf92.js → index-ebb62b99.js} +1 -1
- package/build/{index-ee88f5a5.js → index-ebec9d07.js} +20 -20
- package/build/{index-2d5909e7.js → index-f024ff39.js} +2 -2
- package/build/{index-03ab0027.js → index-f24da7fa.js} +6 -6
- package/build/{index-885f6871.js → index-f9254156.js} +11 -11
- package/build/index.js +112 -112
- package/build/interfaces/constants/index.d.ts +4 -1
- package/build/{labelSorting-b951437d.js → labelSorting-7a548a9f.js} +4 -4
- package/build/lead.js +24 -24
- package/build/{logoIcon-48a8700d.js → logoIcon-23de57dc.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc/animation.d.ts +9 -54
- 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/{post-62af3f2a.js → post-aa0ddebc.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/index.d.ts +0 -1
- package/build/ssoV2/api/paths.d.ts +0 -7
- package/build/ssoV2/api/phoneUtils.d.ts +1 -1
- package/build/ssoV2/screens/components/progressBar.d.ts +0 -1
- package/build/ssoV2/screens/otp.d.ts +1 -1
- package/build/ssoV2/ssoStateManager/store.d.ts +1 -1
- package/build/ssoV2.js +76 -355
- package/build/{store-b92e2b20.js → store-f2722742.js} +8 -21
- package/build/subot/utils/index.d.ts +1 -1
- package/build/subot.js +173 -136
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-a2f97beb.js → surveyThankyouCard-b1d823e1.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-0e657caf.js → treePopoverMenu-5ff541a6.js} +19 -19
- package/build/{types-4194be81.js → types-e576b6a9.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-71ce198d.js → useCategory-8ffecf7e.js} +5 -5
- package/build/{useHealthToolCache-b490b209.js → useHealthToolCache-61e43a7c.js} +1 -1
- package/build/{useMantineLocale-2f14fd9c.js → useMantineLocale-0e8caa51.js} +6 -6
- package/build/{usePlacesAutocomplete-8666d83d.js → usePlacesAutocomplete-9f40b301.js} +1 -1
- package/build/{useScreenSize-a0254a25.js → useScreenSize-13312268.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-42fc2cfa.js → utils-72804395.js} +2 -2
- package/build/{utils-7456fa06.js → utils-ca8344ca.js} +3 -3
- package/build/{utils-1c21bc99.js → utils-d5c452cc.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/index-4adb8d96.js +0 -339
- package/build/esm/ssoV2/api/whatsapp.d.ts +0 -6
- package/build/esm/ssoV2/screens/components/whatsapp.d.ts +0 -5
- package/build/esm/ssoV2/utils.d.ts +0 -3
- package/build/index-d677aeea.js +0 -341
- package/build/ssoV2/api/whatsapp.d.ts +0 -6
- package/build/ssoV2/screens/components/whatsapp.d.ts +0 -5
- package/build/ssoV2/utils.d.ts +0 -3
- /package/build/{BMI_BOYS.percentile.monthly-143e1559.js → BMI_BOYS.percentile.monthly-f9b3c3ed.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-082e571f.js → BMI_BOYS.percentile.weekly-e874e4f8.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-c3c03ed7.js → BMI_BOYS.percentile.yearly-4f0502db.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-7ee6b4e9.js → BMI_BOYS.zscore.monthly-9a9feb02.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-2b89c99d.js → BMI_BOYS.zscore.weekly-7e72d595.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-3e42936a.js → BMI_BOYS.zscore.yearly-108178e3.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-6a5385d0.js → BMI_GIRLS.percentile.monthly-6242c62b.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-7fd003f4.js → BMI_GIRLS.percentile.weekly-0add5702.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-e3c5d01a.js → BMI_GIRLS.percentile.yearly-4152167d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-503623b4.js → BMI_GIRLS.zscore.monthly-128ca194.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-8960f640.js → BMI_GIRLS.zscore.weekly-ca676528.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-80e3236b.js → BMI_GIRLS.zscore.yearly-e08c29d1.js} +0 -0
- /package/build/{ChevronDown-b2195c3c.js → ChevronDown-57bc884b.js} +0 -0
- /package/build/{Close-bca677b0.js → Close-df830c4c.js} +0 -0
- /package/build/{Google-84cbf269.js → Google-c89265b8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-fb7f7331.js → HEAD CIRCUM_BOYS.percentile.monthly-87429d30.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-673c8341.js → HEAD CIRCUM_BOYS.percentile.weekly-91c4b200.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-3b21eb40.js → HEAD CIRCUM_BOYS.percentile.yearly-8bc1adee.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-a826c61a.js → HEAD CIRCUM_BOYS.zscore.monthly-5d01881c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-f08720c4.js → HEAD CIRCUM_BOYS.zscore.weekly-ee5e76f3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-a4a95115.js → HEAD CIRCUM_BOYS.zscore.yearly-ae4aa4e7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f796e3ba.js → HEAD CIRCUM_GIRLS.percentile.monthly-fe6a2c2f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-825ef172.js → HEAD CIRCUM_GIRLS.percentile.weekly-67dfd40d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-d3e58242.js → HEAD CIRCUM_GIRLS.percentile.yearly-ed0b2c26.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-0088061b.js → HEAD CIRCUM_GIRLS.zscore.monthly-2aa3bb52.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-512d3c8d.js → HEAD CIRCUM_GIRLS.zscore.weekly-15d544c3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-bc09260b.js → HEAD CIRCUM_GIRLS.zscore.yearly-6f8e2015.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-acbba3b0.js → HEIGHT_BOYS.percentile.monthly-60f64abd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-f31dbf8e.js → HEIGHT_BOYS.percentile.weekly-ab66b5ed.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-eb19d191.js → HEIGHT_BOYS.percentile.yearly-fe761b28.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-c095e6e0.js → HEIGHT_BOYS.zscore.monthly-ae155fb0.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-2d2b1c4a.js → HEIGHT_BOYS.zscore.weekly-98c6c53f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-49cde907.js → HEIGHT_BOYS.zscore.yearly-c813016f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-ac2c2dd8.js → HEIGHT_GIRLS.percentile.monthly-98798d5e.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-69849d79.js → HEIGHT_GIRLS.percentile.weekly-c01b3d34.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d97a4570.js → HEIGHT_GIRLS.percentile.yearly-7cce68f3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-5ff0b909.js → HEIGHT_GIRLS.zscore.monthly-991a2021.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-194e2a2a.js → HEIGHT_GIRLS.zscore.weekly-815080ba.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-489a3bce.js → HEIGHT_GIRLS.zscore.yearly-475186f4.js} +0 -0
- /package/build/{Locale-0b1d80be.js → Locale-242593ca.js} +0 -0
- /package/build/{Visible-909376d8.js → Visible-403b3b1f.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-250a81e3.js → WEIGHT_BOYS.percentile.monthly-1d5b3264.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-1444f8c1.js → WEIGHT_BOYS.percentile.weekly-6e79f3ee.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-f7ee893d.js → WEIGHT_BOYS.percentile.yearly-51cbb059.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-3987bfa1.js → WEIGHT_BOYS.zscore.monthly-4fbc17bb.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-2601a41a.js → WEIGHT_BOYS.zscore.weekly-b97b36d9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-106561c8.js → WEIGHT_BOYS.zscore.yearly-7ee60f4f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-6fecf09d.js → WEIGHT_GIRLS.percentile.monthly-93cb34fd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-9b726644.js → WEIGHT_GIRLS.percentile.weekly-ce75b87e.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-02e4b9e2.js → WEIGHT_GIRLS.percentile.yearly-ea8b7b42.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4841a113.js → WEIGHT_GIRLS.zscore.monthly-9d891d7f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-233b33ec.js → WEIGHT_GIRLS.zscore.weekly-19a1b907.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-1f338cde.js → WEIGHT_GIRLS.zscore.yearly-706d9c0a.js} +0 -0
- /package/build/{animation-9d4fa861.js → animation-8bc157b4.js} +0 -0
- /package/build/{constants-f69f3ae9.js → constants-0656cf3a.js} +0 -0
- /package/build/{constants-e4dd5974.js → constants-db39434e.js} +0 -0
- /package/build/{constants-3cfe089e.js → constants-fc951ce9.js} +0 -0
- /package/build/{dataTransform-937fbf8e.js → dataTransform-95bd8bda.js} +0 -0
- /package/build/{doctor-707b977f.js → doctor-99f2c57d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-e8f373a4.js → BMI_BOYS.percentile.monthly-e8ebdb94.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-13679f12.js → BMI_BOYS.percentile.weekly-582ded52.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-167daa76.js → BMI_BOYS.percentile.yearly-663ac5fd.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-d9943cd1.js → BMI_BOYS.zscore.monthly-0620b23d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8a5749e8.js → BMI_BOYS.zscore.weekly-1f02f80f.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-42bdf525.js → BMI_BOYS.zscore.yearly-382d10df.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-f747a2af.js → BMI_GIRLS.percentile.monthly-9ea00934.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-f6a8533a.js → BMI_GIRLS.percentile.weekly-0789b422.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-a8c7a70b.js → BMI_GIRLS.percentile.yearly-12b1fb8a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-04cecdf6.js → BMI_GIRLS.zscore.monthly-2ed8477a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-062a63c2.js → BMI_GIRLS.zscore.weekly-f9953d35.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-0cef297e.js → BMI_GIRLS.zscore.yearly-1c9c86dd.js} +0 -0
- /package/build/esm/{ChevronDown-5d212e51.js → ChevronDown-9fcd68d0.js} +0 -0
- /package/build/esm/{Close-d5d7d753.js → Close-f60d99d7.js} +0 -0
- /package/build/esm/{Google-fd41df78.js → Google-3d9747c5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-8a80c5f6.js → HEAD CIRCUM_BOYS.percentile.monthly-5946fa4a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-dfffb841.js → HEAD CIRCUM_BOYS.percentile.weekly-4510dce5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-cc3c77f6.js → HEAD CIRCUM_BOYS.percentile.yearly-71af8065.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-619f0eb9.js → HEAD CIRCUM_BOYS.zscore.monthly-846647a4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-9b4cba3e.js → HEAD CIRCUM_BOYS.zscore.weekly-9cc1d8f0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-bc2a079d.js → HEAD CIRCUM_BOYS.zscore.yearly-6c5e9144.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-c4c3a423.js → HEAD CIRCUM_GIRLS.percentile.monthly-ac83bbb4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-fe35fc4b.js → HEAD CIRCUM_GIRLS.percentile.weekly-f476d80b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-859d0685.js → HEAD CIRCUM_GIRLS.percentile.yearly-892afbe2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c224e26b.js → HEAD CIRCUM_GIRLS.zscore.monthly-89904c4c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-8a524cd1.js → HEAD CIRCUM_GIRLS.zscore.weekly-cfb89312.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-d033f069.js → HEAD CIRCUM_GIRLS.zscore.yearly-3add5de9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-e82dabda.js → HEIGHT_BOYS.percentile.monthly-ec52a52c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f4d3f6db.js → HEIGHT_BOYS.percentile.weekly-38e8dfde.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-6d8ce066.js → HEIGHT_BOYS.percentile.yearly-26c68fa1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-08789f52.js → HEIGHT_BOYS.zscore.monthly-b6d13ac8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-15946bcc.js → HEIGHT_BOYS.zscore.weekly-aabe88d4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-5115008b.js → HEIGHT_BOYS.zscore.yearly-d9d437c9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7323f760.js → HEIGHT_GIRLS.percentile.monthly-671b7012.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-232a0d31.js → HEIGHT_GIRLS.percentile.weekly-19dba3e3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-4f2c24d7.js → HEIGHT_GIRLS.percentile.yearly-f6e97862.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-eece140e.js → HEIGHT_GIRLS.zscore.monthly-73a3b24e.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-e352f20b.js → HEIGHT_GIRLS.zscore.weekly-eefa287a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-197417db.js → HEIGHT_GIRLS.zscore.yearly-6cac7595.js} +0 -0
- /package/build/esm/{Locale-594fa927.js → Locale-ea5b7a07.js} +0 -0
- /package/build/esm/{Visible-fe199608.js → Visible-0368c2c5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-de97408e.js → WEIGHT_BOYS.percentile.monthly-a6a629ac.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-59a954fa.js → WEIGHT_BOYS.percentile.weekly-e9031c78.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-5deffc53.js → WEIGHT_BOYS.percentile.yearly-76f771cc.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-cde94dd5.js → WEIGHT_BOYS.zscore.monthly-f2c3a740.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6cb7323e.js → WEIGHT_BOYS.zscore.weekly-f7356de4.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-668c884b.js → WEIGHT_BOYS.zscore.yearly-5caa0a8c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-88906906.js → WEIGHT_GIRLS.percentile.monthly-a0c07f1d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-9fd46273.js → WEIGHT_GIRLS.percentile.weekly-be886c27.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-9a79a32a.js → WEIGHT_GIRLS.percentile.yearly-616bf909.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-5e140879.js → WEIGHT_GIRLS.zscore.monthly-3a0b6fec.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-34da2e3c.js → WEIGHT_GIRLS.zscore.weekly-1a874a64.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d00b3874.js → WEIGHT_GIRLS.zscore.yearly-bc5062be.js} +0 -0
- /package/build/esm/{animation-ef7ea164.js → animation-ff8066cf.js} +0 -0
- /package/build/esm/{constants-69bf5cfc.js → constants-735a8fb5.js} +0 -0
- /package/build/esm/{constants-e648570c.js → constants-7877bb54.js} +0 -0
- /package/build/esm/{constants-95ebcefd.js → constants-87b40898.js} +0 -0
- /package/build/esm/{dataTransform-3179e50f.js → dataTransform-c2734aea.js} +0 -0
- /package/build/esm/{doctor-a80f71c8.js → doctor-f8cb51da.js} +0 -0
- /package/build/esm/{index-7b444cf3.js → index-02936787.js} +0 -0
- /package/build/esm/{index-d93a8bf0.js → index-2b64172a.js} +0 -0
- /package/build/esm/{index-82e35e12.js → index-3fd53512.js} +0 -0
- /package/build/esm/{index-4f3302b0.js → index-75400acc.js} +0 -0
- /package/build/esm/{index-56032b6b.js → index-8006e885.js} +0 -0
- /package/build/esm/{index-0b74f9c8.js → index-857c8603.js} +0 -0
- /package/build/esm/{index-70dab8b2.js → index-87d5c0ba.js} +0 -0
- /package/build/esm/{index-9871844d.js → index-96b6c9bc.js} +0 -0
- /package/build/esm/{index.styles-5235bc78.js → index.styles-d3a3af89.js} +0 -0
- /package/build/esm/{localizeNumberFormat-6ce6b65e.js → localizeNumberFormat-e2322900.js} +0 -0
- /package/build/esm/{normalizeLink-d54d50da.js → normalizeLink-45cf86db.js} +0 -0
- /package/build/esm/{other-bd29096b.js → other-8260abb5.js} +0 -0
- /package/build/esm/{paths-c80414d2.js → paths-2fc7e615.js} +0 -0
- /package/build/esm/{translationsContext-c1266e59.js → translationsContext-fe99a5d1.js} +0 -0
- /package/build/esm/{tslib.es6-d17cda6d.js → tslib.es6-efe99217.js} +0 -0
- /package/build/esm/{types-4ab90aae.js → types-8a1e28b7.js} +0 -0
- /package/build/esm/{useIsInit-d14af901.js → useIsInit-2ff78903.js} +0 -0
- /package/build/esm/{useOutsideClick-90e911b0.js → useOutsideClick-73ac8dde.js} +0 -0
- /package/build/esm/{useScrollbarSize-7ea06d6e.js → useScrollbarSize-4eb2cf40.js} +0 -0
- /package/build/esm/{useUniqueId-00511b5a.js → useUniqueId-c65d984d.js} +0 -0
- /package/build/esm/{utils-73a530da.js → utils-8ec017e2.js} +0 -0
- /package/build/{index-746dfea4.js → index-0c801d40.js} +0 -0
- /package/build/{index-d09bf1b2.js → index-5e198610.js} +0 -0
- /package/build/{index-072562aa.js → index-65c24006.js} +0 -0
- /package/build/{index-641e3a99.js → index-789d670e.js} +0 -0
- /package/build/{index-dfc7a7d0.js → index-7a02d5c4.js} +0 -0
- /package/build/{index-61a0b233.js → index-98746357.js} +0 -0
- /package/build/{index-2dc0185a.js → index-9fed4f5a.js} +0 -0
- /package/build/{index-27dbd9d0.js → index-d9e8c344.js} +0 -0
- /package/build/{index.styles-5be6c8af.js → index.styles-4c55fb99.js} +0 -0
- /package/build/{localizeNumberFormat-16b8105c.js → localizeNumberFormat-f94f5164.js} +0 -0
- /package/build/{normalizeLink-74fc68f9.js → normalizeLink-9b8b57c4.js} +0 -0
- /package/build/{other-81897f29.js → other-fe759449.js} +0 -0
- /package/build/{paths-68477740.js → paths-d32e0bfd.js} +0 -0
- /package/build/{translationsContext-4384ed9c.js → translationsContext-70cdca66.js} +0 -0
- /package/build/{tslib.es6-c3c8c8ca.js → tslib.es6-2b428e0e.js} +0 -0
- /package/build/{types-b2d34cec.js → types-105aedd6.js} +0 -0
- /package/build/{useIsInit-41c76ece.js → useIsInit-c48ba996.js} +0 -0
- /package/build/{useOutsideClick-69ca2136.js → useOutsideClick-0d18ed47.js} +0 -0
- /package/build/{useScrollbarSize-86a5638b.js → useScrollbarSize-fb344ed9.js} +0 -0
- /package/build/{useUniqueId-c0f31b4e.js → useUniqueId-e8768fb8.js} +0 -0
- /package/build/{utils-9a0cbb29.js → utils-e96269e2.js} +0 -0
package/build/esm/ssoV2.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-efe99217.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useState, useCallback, forwardRef } from 'react';
|
|
3
|
-
import { I as Input, s as styles, O as OTP, f as PasswordInput, E as ErrorBoundary } from './index-
|
|
4
|
-
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, f as fetchSSOV2Api, w as websiteId, b as SSO_V2_PATHS, c as checkUserExist,
|
|
5
|
-
export { u as useSSOV2Store } from './store-
|
|
3
|
+
import { I as Input, s as styles, O as OTP, f as PasswordInput, E as ErrorBoundary } from './index-208f847c.js';
|
|
4
|
+
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, f as fetchSSOV2Api, w as websiteId, b as SSO_V2_PATHS, c as checkUserExist, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, d as updateUserInfo, e as isPhoneNotVerifedYet, j as isLoginWithPhoneNotVerifedYet, k as isFlowFinishedSetup, r as resetPassword, l as redirect } from './store-d17bd9ef.js';
|
|
5
|
+
export { u as useSSOV2Store } from './store-d17bd9ef.js';
|
|
6
6
|
import { ChevronLeft } from '@hhgtech/icons/arrow';
|
|
7
7
|
import { Close, Search, ReplySquare } from '@hhgtech/icons/core';
|
|
8
|
-
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES } from './index-
|
|
9
|
-
import { L as LogoIcon } from './logoIcon-
|
|
10
|
-
import { B as Button } from './index-
|
|
11
|
-
import { M as Modal } from './index-
|
|
8
|
+
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES, Q as QUERY_HEALTH_TOOL } from './index-d85c6d43.js';
|
|
9
|
+
import { L as LogoIcon } from './logoIcon-c230ea02.js';
|
|
10
|
+
import { B as Button } from './index-38e7df62.js';
|
|
11
|
+
import { M as Modal } from './index-de51ef01.js';
|
|
12
12
|
import { Stack, Flex, Box, Group, Divider } from '@mantine/core';
|
|
13
13
|
import '@mantine/dates';
|
|
14
|
-
import './index-
|
|
15
|
-
import
|
|
16
|
-
import { s as showNotification } from './useMantineLocale-
|
|
17
|
-
import { T as Text } from './index-
|
|
18
|
-
import { u as useTranslations } from './index-
|
|
14
|
+
import './index-0528c887.js';
|
|
15
|
+
import './index-75400acc.js';
|
|
16
|
+
import { s as showNotification } from './useMantineLocale-d71ce863.js';
|
|
17
|
+
import { T as Text } from './index-0218cd4c.js';
|
|
18
|
+
import { u as useTranslations } from './index-a8aa5875.js';
|
|
19
19
|
import '@mantine/hooks';
|
|
20
|
-
import './utils-
|
|
21
|
-
import './other-
|
|
22
|
-
import './index-
|
|
23
|
-
import { L as LOCALE } from './Locale-
|
|
24
|
-
import {
|
|
25
|
-
import { G as Google, F as Facebook } from './Google-fd41df78.js';
|
|
20
|
+
import './utils-8ec017e2.js';
|
|
21
|
+
import './other-8260abb5.js';
|
|
22
|
+
import './index-0ab3dc50.js';
|
|
23
|
+
import { L as LOCALE } from './Locale-ea5b7a07.js';
|
|
24
|
+
import { G as Google, F as Facebook } from './Google-3d9747c5.js';
|
|
26
25
|
import { parsePhoneNumber, getCountryCallingCode } from 'react-phone-number-input';
|
|
27
26
|
import styled from '@emotion/styled';
|
|
28
27
|
import cn from 'classnames';
|
|
@@ -30,27 +29,28 @@ import { CaretDown } from '@hhgtech/icons/other';
|
|
|
30
29
|
import debounce from 'lodash/debounce';
|
|
31
30
|
import throttle from 'lodash/throttle';
|
|
32
31
|
import Flags from 'react-phone-number-input/flags';
|
|
32
|
+
import { u as useScreenSize } from './useScreenSize-fbbdb880.js';
|
|
33
33
|
import { Drawer } from 'vaul';
|
|
34
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
35
|
-
import { S as Spoiler } from './index-
|
|
34
|
+
import { M as MAPPED_LOCALE } from './utils-1a19bf54.js';
|
|
35
|
+
import { S as Spoiler } from './index-09ae8772.js';
|
|
36
36
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
37
37
|
import { useForm, yupResolver } from '@mantine/form';
|
|
38
38
|
import * as yup from 'yup';
|
|
39
39
|
import dayjs from 'dayjs';
|
|
40
|
-
import { D as DatePicker } from './index-
|
|
40
|
+
import { D as DatePicker } from './index-a918e93d.js';
|
|
41
41
|
import '@mantine/carousel';
|
|
42
42
|
import './miscTheme.js';
|
|
43
|
-
import './useUniqueId-
|
|
43
|
+
import './useUniqueId-c65d984d.js';
|
|
44
44
|
import './constantsSite.js';
|
|
45
45
|
import 'zustand';
|
|
46
46
|
import './constantsIsProduction.js';
|
|
47
|
-
import './normalizeLink-
|
|
47
|
+
import './normalizeLink-45cf86db.js';
|
|
48
48
|
import './miscCookieHelper.js';
|
|
49
49
|
import 'date-fns/locale';
|
|
50
50
|
import './constantsRiskScreener.js';
|
|
51
|
-
import './index.styles-
|
|
51
|
+
import './index.styles-d3a3af89.js';
|
|
52
52
|
import '@mantine/notifications';
|
|
53
|
-
import './translationsContext-
|
|
53
|
+
import './translationsContext-fe99a5d1.js';
|
|
54
54
|
|
|
55
55
|
const SSOStateContext = createContext({
|
|
56
56
|
locale: LOCALE.Vietnam,
|
|
@@ -208,8 +208,7 @@ const isSocialFlowFn = (flowData) => {
|
|
|
208
208
|
const isPhoneFlowFn = (flowData) => {
|
|
209
209
|
return ((flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'sms' ||
|
|
210
210
|
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'zalo' ||
|
|
211
|
-
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone'
|
|
212
|
-
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'whatsapp');
|
|
211
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone');
|
|
213
212
|
};
|
|
214
213
|
const isEmailFlowFn = (flowData) => {
|
|
215
214
|
return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'email';
|
|
@@ -222,14 +221,6 @@ const isResetPasswordFlowFn = (steps) => {
|
|
|
222
221
|
passwordForgotStep > 0 &&
|
|
223
222
|
passwordForgotStep > passwordStep);
|
|
224
223
|
};
|
|
225
|
-
const isResetPasswordViePhoneFlowFn = (steps) => {
|
|
226
|
-
// First -> Passsword -> Password Forgot Phone
|
|
227
|
-
const passwordStep = steps.findIndex((s) => s.type === SSOStepTypeType.PASSWORD);
|
|
228
|
-
const passwordForgotStep = steps.findIndex((s) => s.type === SSOStepTypeType.FORGOT_PASSWORD_PHONE);
|
|
229
|
-
return (passwordStep > 0 &&
|
|
230
|
-
passwordForgotStep > 0 &&
|
|
231
|
-
passwordForgotStep > passwordStep);
|
|
232
|
-
};
|
|
233
224
|
const isDisplayProgressBarFn = (flowData, step) => {
|
|
234
225
|
const showProgressBar = (step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.OTP ||
|
|
235
226
|
(step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.SETUP_FULL ||
|
|
@@ -449,12 +440,7 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
449
440
|
borderRadius: '100%',
|
|
450
441
|
}, 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" },
|
|
451
442
|
React__default.createElement(ChevronLeft, null))),
|
|
452
|
-
showLogo && (React__default.createElement(
|
|
453
|
-
React__default.createElement(LogoIcon, { type: logoType, height: 32, width: 'unset' }),
|
|
454
|
-
locale === LOCALE.Indonesia && (React__default.createElement(ImageWrap, { alt: "", src: CommonGAssets.getAssetPath('sehat-badge.png'), style: {
|
|
455
|
-
width: 56,
|
|
456
|
-
height: 23,
|
|
457
|
-
} })))),
|
|
443
|
+
showLogo && (React__default.createElement(LogoIcon, { type: logoType, height: 32, width: 'unset' })),
|
|
458
444
|
showClose && (React__default.createElement(Button, { variant: "white", style: {
|
|
459
445
|
width: 40,
|
|
460
446
|
height: 40,
|
|
@@ -694,7 +680,7 @@ const SSOEmailScreen = ({ hidden, }) => {
|
|
|
694
680
|
React__default.createElement(Stack, { spacing: 8 },
|
|
695
681
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.email.title')),
|
|
696
682
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.email.description'))),
|
|
697
|
-
React__default.createElement(Input, { name: "email", placeholder:
|
|
683
|
+
React__default.createElement(Input, { name: "email", placeholder: "Email c\u1EE7a b\u1EA1n", 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" }),
|
|
698
684
|
React__default.createElement(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'))));
|
|
699
685
|
};
|
|
700
686
|
|
|
@@ -797,59 +783,6 @@ const loginBySocial = (token, social) => __awaiter(void 0, void 0, void 0, funct
|
|
|
797
783
|
});
|
|
798
784
|
});
|
|
799
785
|
|
|
800
|
-
// "phone_number": "906911910",
|
|
801
|
-
// "area_code":"+84",
|
|
802
|
-
const registerBySendWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
803
|
-
const formData = new FormData();
|
|
804
|
-
formData.append('phone_number', phone);
|
|
805
|
-
formData.append('area_code', areaCode);
|
|
806
|
-
formData.append('website_id', websiteId);
|
|
807
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.REGISTER_BY_SEND_OTP, {
|
|
808
|
-
method: 'POST',
|
|
809
|
-
body: formData,
|
|
810
|
-
});
|
|
811
|
-
});
|
|
812
|
-
// "phone_number": "906911910",
|
|
813
|
-
// "area_code":"+84",
|
|
814
|
-
const resendWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
815
|
-
const formData = new FormData();
|
|
816
|
-
formData.append('phone_number', phone);
|
|
817
|
-
formData.append('area_code', areaCode);
|
|
818
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.SEND_OTP, {
|
|
819
|
-
method: 'POST',
|
|
820
|
-
body: formData,
|
|
821
|
-
});
|
|
822
|
-
});
|
|
823
|
-
const resendUpdatePhoneWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
824
|
-
const formData = new FormData();
|
|
825
|
-
formData.append('phone_number', phone);
|
|
826
|
-
formData.append('area_code', areaCode);
|
|
827
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.UPDATE_PHONE_SEND_OTP, {
|
|
828
|
-
method: 'POST',
|
|
829
|
-
body: formData,
|
|
830
|
-
});
|
|
831
|
-
});
|
|
832
|
-
const verifyUpdatePhoneWhatsAppOTP = (phone, areaCode, otpCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
833
|
-
const formData = new FormData();
|
|
834
|
-
formData.append('phone_number', phone);
|
|
835
|
-
formData.append('otp_code', otpCode);
|
|
836
|
-
formData.append('area_code', areaCode);
|
|
837
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.UPDATE_PHONE_VERIFY_OTP, {
|
|
838
|
-
method: 'POST',
|
|
839
|
-
body: formData,
|
|
840
|
-
});
|
|
841
|
-
});
|
|
842
|
-
const verifyByWhatsAppOTP = (phone, areaCode, otpCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
843
|
-
const formData = new FormData();
|
|
844
|
-
formData.append('otp_code', otpCode);
|
|
845
|
-
formData.append('phone_number', phone);
|
|
846
|
-
formData.append('area_code', areaCode);
|
|
847
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.VERIFY_BY_OTP, {
|
|
848
|
-
method: 'POST',
|
|
849
|
-
body: formData,
|
|
850
|
-
});
|
|
851
|
-
});
|
|
852
|
-
|
|
853
786
|
// "phone_number": "906911910",
|
|
854
787
|
// "area_code":"+84",
|
|
855
788
|
const registerBySendZaloOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -906,16 +839,6 @@ const verifyUpdatePhoneZaloOTP = (phone, areaCode, otpCode) => __awaiter(void 0,
|
|
|
906
839
|
});
|
|
907
840
|
});
|
|
908
841
|
|
|
909
|
-
// VietNam: Zalo - SMS
|
|
910
|
-
// Info: WhatsApp
|
|
911
|
-
// Malay: WhatsApp và SMS
|
|
912
|
-
const isFeatureWhatsAppEnabled = [
|
|
913
|
-
LOCALE.Indonesia,
|
|
914
|
-
LOCALE.Malaysia,
|
|
915
|
-
].includes(locale);
|
|
916
|
-
const isFeatureSMSEnabled = [LOCALE.Vietnam, LOCALE.Malaysia].includes(locale);
|
|
917
|
-
const isFeatureZaloEnabled = [LOCALE.Vietnam].includes(locale);
|
|
918
|
-
|
|
919
842
|
const MailIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
920
843
|
React__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" })));
|
|
921
844
|
|
|
@@ -2353,12 +2276,6 @@ const StyledPhone = styled(PhoneWithCustomCountrySelect) `
|
|
|
2353
2276
|
}
|
|
2354
2277
|
`;
|
|
2355
2278
|
|
|
2356
|
-
const WhatsApp = ({ size = 20 }) => {
|
|
2357
|
-
return (React__default.createElement("svg", { width: (size * 19) / 18, height: size, viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2358
|
-
React__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" }),
|
|
2359
|
-
React__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" })));
|
|
2360
|
-
};
|
|
2361
|
-
|
|
2362
2279
|
const Zalo = ({ size = 20, useCurrentColor = false }) => {
|
|
2363
2280
|
const color = useCurrentColor ? 'currentColor' : '#0068FF';
|
|
2364
2281
|
return (React__default.createElement("svg", { width: (size * 21) / 20, height: size, viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -2559,7 +2476,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2559
2476
|
}
|
|
2560
2477
|
setLoading(false);
|
|
2561
2478
|
});
|
|
2562
|
-
const
|
|
2479
|
+
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2563
2480
|
var _e, _f;
|
|
2564
2481
|
setLoading(true);
|
|
2565
2482
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
@@ -2571,69 +2488,6 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2571
2488
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2572
2489
|
const provider = (_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider;
|
|
2573
2490
|
if ((_f = userExist._data) === null || _f === void 0 ? void 0 : _f.is_pass) {
|
|
2574
|
-
useSSOV2Store.setState({
|
|
2575
|
-
flowData: {
|
|
2576
|
-
method: 'whatsapp',
|
|
2577
|
-
flow: 'login',
|
|
2578
|
-
metaData: userExist._data,
|
|
2579
|
-
},
|
|
2580
|
-
});
|
|
2581
|
-
addStep({
|
|
2582
|
-
type: SSOStepTypeType.PASSWORD,
|
|
2583
|
-
config: {
|
|
2584
|
-
phone,
|
|
2585
|
-
method: 'whatsapp',
|
|
2586
|
-
},
|
|
2587
|
-
});
|
|
2588
|
-
goNext();
|
|
2589
|
-
}
|
|
2590
|
-
else {
|
|
2591
|
-
let res;
|
|
2592
|
-
if (!provider) {
|
|
2593
|
-
res = yield registerBySendWhatsAppOTP(phoneNumber, areaCode);
|
|
2594
|
-
}
|
|
2595
|
-
else {
|
|
2596
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2597
|
-
}
|
|
2598
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
2599
|
-
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
2600
|
-
return setLoading(false);
|
|
2601
|
-
}
|
|
2602
|
-
useSSOV2Store.setState({
|
|
2603
|
-
flowData: {
|
|
2604
|
-
method: 'whatsapp',
|
|
2605
|
-
flow: 'signup',
|
|
2606
|
-
metaData: userExist._data,
|
|
2607
|
-
},
|
|
2608
|
-
});
|
|
2609
|
-
addStep({
|
|
2610
|
-
type: SSOStepTypeType.OTP,
|
|
2611
|
-
config: {
|
|
2612
|
-
phone,
|
|
2613
|
-
otpType: 'phone-whatsapp',
|
|
2614
|
-
afterAction: 'forgot',
|
|
2615
|
-
},
|
|
2616
|
-
});
|
|
2617
|
-
goNext();
|
|
2618
|
-
}
|
|
2619
|
-
}
|
|
2620
|
-
else {
|
|
2621
|
-
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
2622
|
-
}
|
|
2623
|
-
setLoading(false);
|
|
2624
|
-
});
|
|
2625
|
-
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2626
|
-
var _g, _h;
|
|
2627
|
-
setLoading(true);
|
|
2628
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2629
|
-
if (!areaCode || !phoneNumber || !phone) {
|
|
2630
|
-
setErrMsg(t('ssov2.validate.phone.required'));
|
|
2631
|
-
return setLoading(false);
|
|
2632
|
-
}
|
|
2633
|
-
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2634
|
-
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2635
|
-
const provider = (_g = userExist._data) === null || _g === void 0 ? void 0 : _g.provider;
|
|
2636
|
-
if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
|
|
2637
2491
|
useSSOV2Store.setState({
|
|
2638
2492
|
flowData: {
|
|
2639
2493
|
method: 'sms',
|
|
@@ -2686,7 +2540,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2686
2540
|
setLoading(false);
|
|
2687
2541
|
});
|
|
2688
2542
|
const onClickLoginWithPhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2689
|
-
var
|
|
2543
|
+
var _g, _h;
|
|
2690
2544
|
setLoading(true);
|
|
2691
2545
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2692
2546
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2695,7 +2549,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2695
2549
|
}
|
|
2696
2550
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2697
2551
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2698
|
-
if (!userExist._data || !((
|
|
2552
|
+
if (!userExist._data || !((_g = userExist._data) === null || _g === void 0 ? void 0 : _g.is_pass)) {
|
|
2699
2553
|
showNotification({
|
|
2700
2554
|
message: t('ssov2.first.noAccountOrPass'),
|
|
2701
2555
|
type: 'danger',
|
|
@@ -2703,7 +2557,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2703
2557
|
setActiveTab('signup');
|
|
2704
2558
|
return setLoading(false);
|
|
2705
2559
|
}
|
|
2706
|
-
if ((
|
|
2560
|
+
if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
|
|
2707
2561
|
useSSOV2Store.setState({
|
|
2708
2562
|
flowData: {
|
|
2709
2563
|
method: 'phone',
|
|
@@ -2799,9 +2653,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2799
2653
|
};
|
|
2800
2654
|
}, [activeTab]) }))),
|
|
2801
2655
|
React__default.createElement(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')),
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
isFeatureSMSEnabled && (React__default.createElement(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.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.otp.sms')))),
|
|
2656
|
+
React__default.createElement(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.createElement(Zalo, null) }, t('ssov2.button.otp.zalo')),
|
|
2657
|
+
React__default.createElement(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.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.otp.sms'))),
|
|
2805
2658
|
React__default.createElement(Divider, { color: "#E4E8EC", display: activeTab === 'signup' ? 'block' : 'none' }),
|
|
2806
2659
|
React__default.createElement(Stack, { spacing: 16, align: "center" },
|
|
2807
2660
|
React__default.createElement(Text, { size: "p4", color: "gray.4" }, t('ssov2.orContinueWith')),
|
|
@@ -2910,7 +2763,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2910
2763
|
const isEmail = otpType === 'email' || otpType === 'update-email';
|
|
2911
2764
|
const isZalo = otpType === 'phone-zalo';
|
|
2912
2765
|
const isSMS = otpType === 'phone-sms';
|
|
2913
|
-
const isWhatsApp = otpType === 'phone-whatsapp';
|
|
2914
2766
|
const trackingMethod = flowData === null || flowData === void 0 ? void 0 : flowData.method;
|
|
2915
2767
|
const trackingCategory = userInfo && !userInfo.first_time_login
|
|
2916
2768
|
? `SSO - Existing User via ${trackingMethod}`
|
|
@@ -2919,7 +2771,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2919
2771
|
: `SSO - Sign In via ${trackingMethod}`;
|
|
2920
2772
|
const trackingAction = isEmail
|
|
2921
2773
|
? 'Verify Your Email'
|
|
2922
|
-
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' :
|
|
2774
|
+
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' : ''}`;
|
|
2923
2775
|
useEffect(() => {
|
|
2924
2776
|
if (!hidden) {
|
|
2925
2777
|
setError('');
|
|
@@ -2953,9 +2805,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2953
2805
|
else if (otpType === 'phone-zalo') {
|
|
2954
2806
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
2955
2807
|
}
|
|
2956
|
-
else if (otpType === 'phone-whatsapp') {
|
|
2957
|
-
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
2958
|
-
}
|
|
2959
2808
|
}
|
|
2960
2809
|
else {
|
|
2961
2810
|
if (otpType === 'phone-sms') {
|
|
@@ -2964,9 +2813,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2964
2813
|
else if (otpType === 'phone-zalo') {
|
|
2965
2814
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
2966
2815
|
}
|
|
2967
|
-
else if (otpType === 'phone-whatsapp') {
|
|
2968
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2969
|
-
}
|
|
2970
2816
|
else if (otpType === 'email') {
|
|
2971
2817
|
res = yield resendEmailOTP(email);
|
|
2972
2818
|
}
|
|
@@ -3005,9 +2851,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3005
2851
|
else if (otpType === 'phone-zalo') {
|
|
3006
2852
|
res = yield verifyUpdatePhoneZaloOTP(phoneNumber, areaCode, otp);
|
|
3007
2853
|
}
|
|
3008
|
-
else if (otpType === 'phone-whatsapp') {
|
|
3009
|
-
res = yield verifyUpdatePhoneWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3010
|
-
}
|
|
3011
2854
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
3012
2855
|
if (afterAction === 'setup') {
|
|
3013
2856
|
const userInfo = yield getUserInfo();
|
|
@@ -3033,7 +2876,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3033
2876
|
const needPass = (flowData.method === 'email' ||
|
|
3034
2877
|
flowData.method === 'zalo' ||
|
|
3035
2878
|
flowData.method === 'sms' ||
|
|
3036
|
-
flowData.method === 'whatsapp' ||
|
|
3037
2879
|
flowData.method === 'phone' ||
|
|
3038
2880
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
3039
2881
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3092,9 +2934,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3092
2934
|
else if (otpType === 'phone-zalo') {
|
|
3093
2935
|
res = yield verifyByZaloOTP(phoneNumber, areaCode, otp);
|
|
3094
2936
|
}
|
|
3095
|
-
else if (otpType === 'phone-whatsapp') {
|
|
3096
|
-
res = yield verifyByWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3097
|
-
}
|
|
3098
2937
|
else if (otpType === 'email') {
|
|
3099
2938
|
res = yield verifyByEmailOTP(email, otp);
|
|
3100
2939
|
}
|
|
@@ -3117,15 +2956,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3117
2956
|
addStepAndGoNext({
|
|
3118
2957
|
type: SSOStepTypeType.FORGOT_PASSWORD_SETUP,
|
|
3119
2958
|
config: {
|
|
3120
|
-
provider: isZalo
|
|
3121
|
-
? 'Zalo'
|
|
3122
|
-
: isSMS
|
|
3123
|
-
? 'SMS'
|
|
3124
|
-
: isWhatsApp
|
|
3125
|
-
? 'WhatsApp'
|
|
3126
|
-
: isEmail
|
|
3127
|
-
? 'Email'
|
|
3128
|
-
: '',
|
|
2959
|
+
provider: isZalo ? 'Zalo' : isSMS ? 'SMS' : isEmail ? 'Email' : '',
|
|
3129
2960
|
},
|
|
3130
2961
|
});
|
|
3131
2962
|
}
|
|
@@ -3153,7 +2984,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3153
2984
|
const needPass = (flowData.method === 'email' ||
|
|
3154
2985
|
flowData.method === 'zalo' ||
|
|
3155
2986
|
flowData.method === 'sms' ||
|
|
3156
|
-
flowData.method === 'whatsapp' ||
|
|
3157
2987
|
flowData.method === 'phone' ||
|
|
3158
2988
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
3159
2989
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3194,12 +3024,13 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3194
3024
|
}
|
|
3195
3025
|
setLoading(false);
|
|
3196
3026
|
});
|
|
3197
|
-
const
|
|
3027
|
+
const swapZaloSms = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3198
3028
|
if (isEmail)
|
|
3199
3029
|
return;
|
|
3200
3030
|
setLoading(true);
|
|
3201
3031
|
try {
|
|
3202
3032
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3033
|
+
const newType = otpType === 'phone-sms' ? 'phone-zalo' : 'phone-sms';
|
|
3203
3034
|
let res;
|
|
3204
3035
|
if (isUpdatePhone) {
|
|
3205
3036
|
if (newType === 'phone-sms') {
|
|
@@ -3208,9 +3039,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3208
3039
|
else if (newType === 'phone-zalo') {
|
|
3209
3040
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
3210
3041
|
}
|
|
3211
|
-
else if (newType === 'phone-whatsapp') {
|
|
3212
|
-
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3213
|
-
}
|
|
3214
3042
|
}
|
|
3215
3043
|
else {
|
|
3216
3044
|
if (newType === 'phone-sms') {
|
|
@@ -3219,9 +3047,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3219
3047
|
else if (newType === 'phone-zalo') {
|
|
3220
3048
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
3221
3049
|
}
|
|
3222
|
-
else if (newType === 'phone-whatsapp') {
|
|
3223
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3224
|
-
}
|
|
3225
3050
|
}
|
|
3226
3051
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3227
3052
|
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
@@ -3271,13 +3096,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3271
3096
|
: 'ssov2.otp.phone.description', {
|
|
3272
3097
|
email,
|
|
3273
3098
|
phone,
|
|
3274
|
-
method:
|
|
3275
|
-
? 'SMS'
|
|
3276
|
-
: isZalo
|
|
3277
|
-
? 'Zalo'
|
|
3278
|
-
: isWhatsApp
|
|
3279
|
-
? 'WhatsApp'
|
|
3280
|
-
: '',
|
|
3099
|
+
method: otpType === 'phone-sms' ? 'SMS' : 'Zalo',
|
|
3281
3100
|
}),
|
|
3282
3101
|
} }))),
|
|
3283
3102
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
@@ -3307,16 +3126,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3307
3126
|
count: resendTime,
|
|
3308
3127
|
})))),
|
|
3309
3128
|
React__default.createElement(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')),
|
|
3310
|
-
!isEmail && (React__default.createElement(React__default.
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
}))),
|
|
3314
|
-
isFeatureZaloEnabled && (React__default.createElement(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.createElement(Zalo, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3315
|
-
method: 'Zalo',
|
|
3316
|
-
}))),
|
|
3317
|
-
isFeatureSMSEnabled && (React__default.createElement(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.createElement(ReplySquare, { size: 18 }), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3318
|
-
method: 'SMS',
|
|
3319
|
-
})))))));
|
|
3129
|
+
!isEmail && (React__default.createElement(Button, { size: "sm", variant: "white", mt: 12, onClick: swapZaloSms, fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": `Send OTP Code via ${otpType === 'phone-sms' ? 'Zalo' : 'SMS'}`, leftIcon: otpType === 'phone-sms' ? (React__default.createElement(Zalo, { size: 18, useCurrentColor: true })) : (React__default.createElement(ReplySquare, { size: 18 })), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3130
|
+
method: otpType === 'phone-sms' ? 'Zalo' : 'SMS',
|
|
3131
|
+
})))));
|
|
3320
3132
|
};
|
|
3321
3133
|
|
|
3322
3134
|
const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
@@ -3470,7 +3282,7 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
|
3470
3282
|
t('ssov2.password.title2')),
|
|
3471
3283
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.password.description'))),
|
|
3472
3284
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
3473
|
-
React__default.createElement(PasswordInput, { name: "password", placeholder:
|
|
3285
|
+
React__default.createElement(PasswordInput, { name: "password", placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u", error: errMsg || undefined, onChange: () => setErrMsg(''), disabled: loading, required: true, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Password" }),
|
|
3474
3286
|
React__default.createElement(Group, { spacing: 8, align: "center", style: {
|
|
3475
3287
|
height: 40,
|
|
3476
3288
|
} },
|
|
@@ -3516,8 +3328,7 @@ const SetupLater = ({ style = {} }) => {
|
|
|
3516
3328
|
goNext();
|
|
3517
3329
|
}
|
|
3518
3330
|
else {
|
|
3519
|
-
|
|
3520
|
-
onClose === null || onClose === void 0 ? void 0 : onClose(!isResetPasswordFlow);
|
|
3331
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(true);
|
|
3521
3332
|
}
|
|
3522
3333
|
setLoading(false);
|
|
3523
3334
|
});
|
|
@@ -3544,7 +3355,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3544
3355
|
}, [hidden]);
|
|
3545
3356
|
const [loading, setLoading] = React__default.useState(false);
|
|
3546
3357
|
const { addStep, goNext } = useSSOSteps();
|
|
3547
|
-
const
|
|
3358
|
+
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3548
3359
|
var _a, _b;
|
|
3549
3360
|
setLoading(true);
|
|
3550
3361
|
try {
|
|
@@ -3557,49 +3368,6 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3557
3368
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3558
3369
|
let res;
|
|
3559
3370
|
if (!((_a = userExist._data) === null || _a === void 0 ? void 0 : _a.provider)) {
|
|
3560
|
-
res = yield registerBySendWhatsAppOTP(phoneNumber, areaCode);
|
|
3561
|
-
}
|
|
3562
|
-
else {
|
|
3563
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3564
|
-
}
|
|
3565
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3566
|
-
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
3567
|
-
return setLoading(false);
|
|
3568
|
-
}
|
|
3569
|
-
addStep({
|
|
3570
|
-
type: SSOStepTypeType.OTP,
|
|
3571
|
-
config: {
|
|
3572
|
-
phone,
|
|
3573
|
-
otpType: 'phone-whatsapp',
|
|
3574
|
-
afterAction: config.afterAction || 'forgot',
|
|
3575
|
-
provider: (_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider,
|
|
3576
|
-
},
|
|
3577
|
-
});
|
|
3578
|
-
goNext();
|
|
3579
|
-
}
|
|
3580
|
-
else {
|
|
3581
|
-
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3584
|
-
catch (e) {
|
|
3585
|
-
console.error(e);
|
|
3586
|
-
setErrMsg(getErrorTextFromCode(t, ''));
|
|
3587
|
-
}
|
|
3588
|
-
setLoading(false);
|
|
3589
|
-
});
|
|
3590
|
-
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3591
|
-
var _c, _d;
|
|
3592
|
-
setLoading(true);
|
|
3593
|
-
try {
|
|
3594
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3595
|
-
if (!areaCode || !phoneNumber || !phone) {
|
|
3596
|
-
setErrMsg(t('ssov2.validate.phone.required'));
|
|
3597
|
-
return setLoading(false);
|
|
3598
|
-
}
|
|
3599
|
-
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
3600
|
-
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3601
|
-
let res;
|
|
3602
|
-
if (!((_c = userExist._data) === null || _c === void 0 ? void 0 : _c.provider)) {
|
|
3603
3371
|
res = yield registerBySendZaloOTP(phoneNumber, areaCode);
|
|
3604
3372
|
}
|
|
3605
3373
|
else {
|
|
@@ -3615,7 +3383,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3615
3383
|
phone,
|
|
3616
3384
|
otpType: 'phone-zalo',
|
|
3617
3385
|
afterAction: config.afterAction || 'forgot',
|
|
3618
|
-
provider: (
|
|
3386
|
+
provider: (_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider,
|
|
3619
3387
|
},
|
|
3620
3388
|
});
|
|
3621
3389
|
goNext();
|
|
@@ -3631,7 +3399,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3631
3399
|
setLoading(false);
|
|
3632
3400
|
});
|
|
3633
3401
|
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3634
|
-
var
|
|
3402
|
+
var _c, _d;
|
|
3635
3403
|
setLoading(true);
|
|
3636
3404
|
try {
|
|
3637
3405
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
@@ -3642,7 +3410,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3642
3410
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
3643
3411
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3644
3412
|
let res;
|
|
3645
|
-
if (!((
|
|
3413
|
+
if (!((_c = userExist._data) === null || _c === void 0 ? void 0 : _c.provider)) {
|
|
3646
3414
|
res = yield registerBySendPhoneOTP(phoneNumber, areaCode);
|
|
3647
3415
|
}
|
|
3648
3416
|
else {
|
|
@@ -3658,7 +3426,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3658
3426
|
phone,
|
|
3659
3427
|
otpType: 'phone-sms',
|
|
3660
3428
|
afterAction: config.afterAction || 'forgot',
|
|
3661
|
-
provider: (
|
|
3429
|
+
provider: (_d = userExist._data) === null || _d === void 0 ? void 0 : _d.provider,
|
|
3662
3430
|
},
|
|
3663
3431
|
});
|
|
3664
3432
|
goNext();
|
|
@@ -3692,9 +3460,8 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3692
3460
|
};
|
|
3693
3461
|
}, []) }),
|
|
3694
3462
|
errMsg && (React__default.createElement(Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
isFeatureSMSEnabled && (React__default.createElement(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.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS'))),
|
|
3463
|
+
React__default.createElement(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.createElement(Zalo, null) }, t('ssov2.button.continueZalo')),
|
|
3464
|
+
React__default.createElement(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.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS')),
|
|
3698
3465
|
React__default.createElement(SetupLater, null))));
|
|
3699
3466
|
};
|
|
3700
3467
|
|
|
@@ -3723,12 +3490,12 @@ const SSOPasswordWithConfirm = (_a) => {
|
|
|
3723
3490
|
form.values.confirmPassword && form.validateField('confirmPassword');
|
|
3724
3491
|
}, 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" })),
|
|
3725
3492
|
React__default.createElement(Stack, { spacing: 8 },
|
|
3726
|
-
React__default.createElement(Group, { spacing: 4, align: "
|
|
3493
|
+
React__default.createElement(Group, { spacing: 4, align: "center" },
|
|
3727
3494
|
atLeast8Chars ? (React__default.createElement(CheckGreenIcon, null)) : typeof atLeast8Chars === 'undefined' ? (React__default.createElement(CheckGrayIcon, null)) : (React__default.createElement(CheckRedIcon, null)),
|
|
3728
|
-
React__default.createElement(Text, { size: "n1"
|
|
3729
|
-
React__default.createElement(Group, { spacing: 4, align: "
|
|
3495
|
+
React__default.createElement(Text, { size: "n1" }, t('ssov2.passwordForgotSetup.field.password.atLeast8Chars'))),
|
|
3496
|
+
React__default.createElement(Group, { spacing: 4, align: "center" },
|
|
3730
3497
|
atLeastOneUpper ? (React__default.createElement(CheckGreenIcon, null)) : typeof atLeastOneUpper === 'undefined' ? (React__default.createElement(CheckGrayIcon, null)) : (React__default.createElement(CheckRedIcon, null)),
|
|
3731
|
-
React__default.createElement(Text, { size: "n1"
|
|
3498
|
+
React__default.createElement(Text, { size: "n1" }, t('ssov2.passwordForgotSetup.field.password.atLeastOneUpper')))),
|
|
3732
3499
|
React__default.createElement(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')))));
|
|
3733
3500
|
};
|
|
3734
3501
|
|
|
@@ -3988,48 +3755,6 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3988
3755
|
}
|
|
3989
3756
|
setLoading(false);
|
|
3990
3757
|
});
|
|
3991
|
-
const onClickContinueWhatsApp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3992
|
-
setLoading(true);
|
|
3993
|
-
try {
|
|
3994
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3995
|
-
if (!areaCode || !phoneNumber || !phone) {
|
|
3996
|
-
setErrMsg(t('ssov2.validate.phone.required'));
|
|
3997
|
-
return setLoading(false);
|
|
3998
|
-
}
|
|
3999
|
-
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
4000
|
-
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
4001
|
-
if (!userExist._data) {
|
|
4002
|
-
const res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
4003
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
4004
|
-
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
4005
|
-
return setLoading(false);
|
|
4006
|
-
}
|
|
4007
|
-
addStep({
|
|
4008
|
-
type: SSOStepTypeType.OTP,
|
|
4009
|
-
config: {
|
|
4010
|
-
provider,
|
|
4011
|
-
phone,
|
|
4012
|
-
otpType: 'phone-whatsapp',
|
|
4013
|
-
isUpdatePhone: true,
|
|
4014
|
-
afterAction: afterAction || 'setup',
|
|
4015
|
-
},
|
|
4016
|
-
});
|
|
4017
|
-
goNext();
|
|
4018
|
-
}
|
|
4019
|
-
else {
|
|
4020
|
-
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
4021
|
-
}
|
|
4022
|
-
}
|
|
4023
|
-
else {
|
|
4024
|
-
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
4025
|
-
}
|
|
4026
|
-
}
|
|
4027
|
-
catch (e) {
|
|
4028
|
-
console.log(e);
|
|
4029
|
-
setErrMsg(getErrorTextFromCode(t, ''));
|
|
4030
|
-
}
|
|
4031
|
-
setLoading(false);
|
|
4032
|
-
});
|
|
4033
3758
|
return (React__default.createElement("div", { style: {
|
|
4034
3759
|
display: hidden ? 'none' : 'block',
|
|
4035
3760
|
} },
|
|
@@ -4051,12 +3776,9 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
4051
3776
|
'data-event-category': trackingCategory,
|
|
4052
3777
|
};
|
|
4053
3778
|
}, []) })),
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
source !== 'care_onboarding' &&
|
|
4058
|
-
source !== 'ecom' &&
|
|
4059
|
-
source !== 'community_onboarding' && React__default.createElement(SetupLater, null)))));
|
|
3779
|
+
React__default.createElement(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.createElement(Zalo, null) }, t('ssov2.button.continueZalo')),
|
|
3780
|
+
React__default.createElement(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.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS')),
|
|
3781
|
+
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null)))));
|
|
4060
3782
|
};
|
|
4061
3783
|
|
|
4062
3784
|
const FemaleIcon = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -4136,7 +3858,7 @@ loading, tracking, }) => {
|
|
|
4136
3858
|
return;
|
|
4137
3859
|
form.getInputProps('dob').onBlur(e);
|
|
4138
3860
|
} })),
|
|
4139
|
-
needEmail && (React__default.createElement(Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required:
|
|
3861
|
+
needEmail && (React__default.createElement(Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required: setupSource === 'care' || setupSource === 'ecom' ? true : false, withAsterisk: setupSource === 'care' || setupSource === 'ecom' ? true : false, "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: {
|
|
4140
3862
|
display: isEmailDisable ? 'none' : 'block',
|
|
4141
3863
|
} }, form.getInputProps('email'))))));
|
|
4142
3864
|
};
|
|
@@ -4146,15 +3868,15 @@ loading, tracking, }) => {
|
|
|
4146
3868
|
const getDefaultData = (data) => {
|
|
4147
3869
|
try {
|
|
4148
3870
|
const searchParams = new URLSearchParams(window.location.search);
|
|
4149
|
-
const gender = searchParams.get(
|
|
4150
|
-
const birthday = dayjs(searchParams.get(
|
|
3871
|
+
const gender = searchParams.get(QUERY_HEALTH_TOOL.gender);
|
|
3872
|
+
const birthday = dayjs(searchParams.get(QUERY_HEALTH_TOOL.birthday), 'MM/DD/YYYY');
|
|
4151
3873
|
if (gender === 'female' || gender === 'male' || birthday.isValid()) {
|
|
4152
3874
|
const returnedValue = Object.assign({}, (data || {}));
|
|
4153
3875
|
if (gender === 'female' || gender === 'male') {
|
|
4154
3876
|
returnedValue.gender = gender;
|
|
4155
3877
|
}
|
|
4156
3878
|
if (birthday.isValid()) {
|
|
4157
|
-
returnedValue.birthday = searchParams.get(
|
|
3879
|
+
returnedValue.birthday = searchParams.get(QUERY_HEALTH_TOOL.birthday);
|
|
4158
3880
|
}
|
|
4159
3881
|
return returnedValue;
|
|
4160
3882
|
}
|
|
@@ -4193,7 +3915,6 @@ const SSOSetupScreen = ({ hidden, config, }) => {
|
|
|
4193
3915
|
undefined;
|
|
4194
3916
|
const needEmail = setupSource === 'care' ||
|
|
4195
3917
|
setupSource === 'ecom' ||
|
|
4196
|
-
setupSource === 'community' ||
|
|
4197
3918
|
!(flowData === null || flowData === void 0 ? void 0 : flowData.isVerifyPhone) ||
|
|
4198
3919
|
authMethod === 'facebook' ||
|
|
4199
3920
|
provider === 'facebook';
|
|
@@ -4375,7 +4096,7 @@ const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
|
4375
4096
|
React__default.createElement(Stack, { spacing: 8 },
|
|
4376
4097
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.updateEmail.title')),
|
|
4377
4098
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.updateEmail.description'))),
|
|
4378
|
-
React__default.createElement(Input, { name: "email", placeholder:
|
|
4099
|
+
React__default.createElement(Input, { name: "email", placeholder: "Email c\u1EE7a b\u1EA1n", 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" }),
|
|
4379
4100
|
React__default.createElement(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'))));
|
|
4380
4101
|
};
|
|
4381
4102
|
|