@hhgtech/hhg-components 1.29.155 → 1.29.157
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-5ed1ff33.js → LastPeriod-b1813ce6.js} +1 -1
- package/build/{MobileBottomNavigationIcon-5cc44d28.js → MobileBottomNavigationIcon-7c90e9d4.js} +3 -3
- package/build/{Spinner-361f1bd2.js → Spinner-a3bf0ac0.js} +1 -1
- package/build/{WhatsApp-ea994a13.js → WhatsApp-58a8a7f6.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.js +17 -17
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +15 -15
- package/build/components.js +89 -89
- package/build/{constants-e60cb05d.js → constants-8e19d17b.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-4307604f.js → core-9810df2e.js} +1 -1
- package/build/{dataTransform-a5e30ef1.js → dataTransform-d09786a6.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-000c7988.js → editor-b3cae5cb.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-ee08220f.js → LastPeriod-8a7ca72c.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-d6cb82ac.js → MobileBottomNavigationIcon-64a86f3f.js} +3 -3
- package/build/esm/{Spinner-568006df.js → Spinner-5b5d0d69.js} +1 -1
- package/build/esm/{WhatsApp-1aad7a16.js → WhatsApp-13789d79.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.js +17 -17
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +15 -15
- package/build/esm/components.js +89 -89
- package/build/esm/{constants-37ee08d8.js → constants-26d7978e.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-136d7a38.js → core-f146d0a8.js} +1 -1
- package/build/esm/{dataTransform-457fe538.js → dataTransform-f581b7d2.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-f4aa0bee.js → editor-4aeefd9b.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-dd4ea1ba.js → fixedBottomAdBlock-0eb01b99.js} +23 -23
- 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 +122 -0
- package/build/esm/i18n-values/hi-IN.js +122 -0
- package/build/esm/i18n-values/id-ID.js +122 -0
- package/build/esm/i18n-values/km-KH.js +122 -0
- package/build/esm/i18n-values/ms-MY.js +122 -0
- package/build/esm/i18n-values/my-MM.js +122 -0
- package/build/esm/i18n-values/th-TH.js +122 -0
- package/build/esm/i18n-values/tl-PH.js +122 -0
- package/build/esm/i18n-values/vi-VN.js +122 -0
- package/build/esm/i18n-values/vi-VN_MB.js +122 -0
- package/build/esm/i18n-values/zh-TW.js +123 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-ba470732.js → index-01c5f914.js} +16 -16
- package/build/esm/{index-955630cd.js → index-0817c2e2.js} +3 -3
- package/build/esm/{index-768412d9.js → index-0c55e9a7.js} +2 -2
- package/build/esm/{index-d6f660c7.js → index-1b8aa316.js} +1 -1
- package/build/esm/{index-b94ac004.js → index-2aaa3b64.js} +13 -13
- package/build/esm/{index-4eb2a30d.js → index-2dafda64.js} +7 -7
- package/build/esm/{index-5cd2cb73.js → index-30413149.js} +16 -16
- package/build/esm/{index-361df185.js → index-35f0c2da.js} +2 -2
- package/build/esm/{index-72f37503.js → index-37b421f2.js} +4 -4
- package/build/esm/{index-5800d3c0.js → index-37eea3b5.js} +2 -2
- package/build/esm/{index-cfcfcadb.js → index-3b0f0b1c.js} +16 -16
- package/build/esm/{index-36f63e42.js → index-3c1fae66.js} +2 -2
- package/build/esm/{index-0b7306ab.js → index-3c5708b2.js} +6 -6
- package/build/esm/{index-7fffb1af.js → index-3eeaa88d.js} +17 -17
- package/build/esm/{index-da1761c2.js → index-4c3c1615.js} +1 -1
- package/build/esm/{index-0dbfd5b9.js → index-55308c46.js} +1 -1
- package/build/esm/{index-233ea13b.js → index-5d57c27f.js} +23 -23
- package/build/esm/{index-2e613668.js → index-5fc8bc99.js} +17 -17
- package/build/esm/{index-31bf1a2a.js → index-5fdb9d40.js} +6 -6
- package/build/esm/{index-4ff489f8.js → index-665cd412.js} +6 -6
- package/build/esm/{index-e02c4ff8.js → index-6946f670.js} +18 -18
- package/build/esm/{index-f13422c3.js → index-69af1a11.js} +1 -1
- package/build/esm/{index-5112c845.js → index-6b87626f.js} +1 -1
- package/build/esm/{index-367c99ce.js → index-72c1cc03.js} +1 -1
- package/build/esm/{index-5bcb2ef7.js → index-75e1618e.js} +1 -1
- package/build/esm/{index-78914818.js → index-7cac9b5f.js} +16 -16
- package/build/esm/{index-f4917a84.js → index-7f14ad8e.js} +15 -15
- package/build/esm/{index-2878557b.js → index-8194a3c6.js} +1 -1
- package/build/esm/{index-1213819d.js → index-85cb1011.js} +17 -17
- package/build/esm/{index-3b0d2ee1.js → index-8dd9808f.js} +3 -3
- package/build/esm/{index-7dd603ab.js → index-8efe1606.js} +13 -13
- package/build/esm/{index-7ef41af0.js → index-96f6e4a0.js} +2 -2
- package/build/esm/{index-8bcd2e5a.js → index-98645b92.js} +1 -1
- package/build/esm/{index-fadfa4a5.js → index-98857560.js} +2 -2
- package/build/esm/{index-a741355a.js → index-99c61958.js} +30 -30
- package/build/esm/{index-0a08a8b9.js → index-9fe4c9ba.js} +10 -10
- package/build/esm/{index-2ef9d845.js → index-a0757a64.js} +3 -3
- package/build/esm/{index-3e0c0be9.js → index-a0bc888c.js} +2 -2
- package/build/esm/{index-6e829cd3.js → index-a7e3a30b.js} +3 -3
- package/build/esm/{index-6642c581.js → index-ab036718.js} +7 -7
- package/build/esm/{index-541f6a64.js → index-b0e5aa35.js} +2 -2
- package/build/esm/{index-08c71338.js → index-b171883a.js} +3 -3
- package/build/esm/{index-9688571c.js → index-b4254f52.js} +20 -20
- package/build/esm/{index-9acf1718.js → index-ba0d0446.js} +3 -3
- package/build/esm/{index-cf766110.js → index-baedf619.js} +2 -2
- package/build/esm/{index-de807419.js → index-c1039bb5.js} +13 -13
- package/build/esm/{index-0c24864f.js → index-c70c9729.js} +21 -21
- package/build/esm/{index-7e13c28f.js → index-cc038bb6.js} +2 -2
- package/build/esm/{index-e85d794e.js → index-d957968b.js} +18 -18
- package/build/esm/{index-a1018eee.js → index-da3cbb3e.js} +15 -15
- package/build/esm/{index-129297b2.js → index-db19dad6.js} +13 -13
- package/build/esm/{index-dd7cda20.js → index-dcbbaa57.js} +2 -2
- package/build/esm/{index-6a0f860f.js → index-e37582dc.js} +2 -2
- package/build/esm/{index-46ac3eaa.js → index-e7d0ea6c.js} +5 -5
- package/build/esm/{index-74f70e0b.js → index-ee3c6e1b.js} +24 -24
- package/build/esm/{index-82e63ec0.js → index-f0bd97c3.js} +5 -5
- package/build/esm/{index-73cab51d.js → index-f471e373.js} +1 -1
- package/build/esm/{index-daa55c6b.js → index-f4bc7b95.js} +6 -6
- package/build/esm/{index-50f193a7.js → index-f9c9a8b0.js} +13 -13
- package/build/esm/{index-d93c88fb.js → index-fd6d5973.js} +32 -32
- package/build/esm/index.js +112 -112
- package/build/esm/{index.styles-1396d221.js → index.styles-24e91498.js} +1 -1
- package/build/esm/{labelSorting-6e70935e.js → labelSorting-f15e80ff.js} +4 -4
- package/build/esm/lead.js +23 -23
- package/build/esm/{logoIcon-c694973e.js → logoIcon-b59ebdbd.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +17 -17
- 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 +68 -68
- 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-cf65fc5b.js → post-62ed831c.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/errorCode.d.ts +1 -0
- package/build/esm/ssoV2.js +229 -443
- package/build/esm/{store-4683237c.js → store-6d52c832.js} +5 -7
- package/build/esm/subot.js +33 -33
- package/build/esm/surveyOrPremiumBanner.js +30 -30
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-cbeb9991.js → surveyThankyouCard-3708dc31.js} +5 -5
- package/build/esm/together.js +53 -53
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +47 -47
- 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 +48 -48
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-e2fc38e2.js → treePopoverMenu-037f030b.js} +19 -19
- package/build/esm/{types-7f6bf8dd.js → types-fdb4721f.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-3fe866c3.js → useCategory-675a8f14.js} +5 -5
- package/build/esm/{useHealthToolCache-8563997d.js → useHealthToolCache-6fb13916.js} +1 -1
- package/build/esm/{useMantineLocale-ab5471bc.js → useMantineLocale-8c29ad1f.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-8b055524.js → usePlacesAutocomplete-15239dcf.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-05724d76.js → utils-1d64f2fd.js} +2 -2
- package/build/esm/{utils-b856c3f4.js → utils-2c49a1a6.js} +3 -3
- package/build/esm/{utils-efed1f0c.js → utils-9cc480e7.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-65d22cea.js → fixedBottomAdBlock-d083ac10.js} +23 -23
- 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 +122 -0
- package/build/i18n-values/hi-IN.js +122 -0
- package/build/i18n-values/id-ID.js +122 -0
- package/build/i18n-values/km-KH.js +122 -0
- package/build/i18n-values/ms-MY.js +122 -0
- package/build/i18n-values/my-MM.js +122 -0
- package/build/i18n-values/th-TH.js +122 -0
- package/build/i18n-values/tl-PH.js +122 -0
- package/build/i18n-values/vi-VN.js +122 -0
- package/build/i18n-values/vi-VN_MB.js +122 -0
- package/build/i18n-values/zh-TW.js +123 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-0cd9e069.js → index-102d5ef4.js} +2 -2
- package/build/{index-faf786ef.js → index-106823b3.js} +2 -2
- package/build/{index-b2122be2.js → index-161ca181.js} +1 -1
- package/build/{index-861601dc.js → index-1c7a2c67.js} +17 -17
- package/build/{index-b7348812.js → index-1eaf4b08.js} +10 -10
- package/build/{index-197e3f3f.js → index-209b00c4.js} +2 -2
- package/build/{index-6440ece0.js → index-20fb8d75.js} +15 -15
- package/build/{index-7430e0f9.js → index-2c5c7fa5.js} +32 -32
- package/build/{index-bed9e885.js → index-38aaaa1c.js} +2 -2
- package/build/{index-de6da9d7.js → index-3c2e75b6.js} +2 -2
- package/build/{index-86204c39.js → index-40736576.js} +5 -5
- package/build/{index-b10f4e70.js → index-4316f136.js} +2 -2
- package/build/{index-9fe152d8.js → index-434280cd.js} +7 -7
- package/build/{index-aa7e36bc.js → index-4a3b3211.js} +16 -16
- package/build/{index-46d23c9c.js → index-570bc1bd.js} +16 -16
- package/build/{index-10f823af.js → index-5b66c0c0.js} +1 -1
- package/build/{index-e8614c99.js → index-5c1ad260.js} +17 -17
- package/build/{index-d122afcb.js → index-5d3984d8.js} +3 -3
- package/build/{index-0bd45f1a.js → index-5f82a224.js} +30 -30
- package/build/{index-e2a50c6a.js → index-6209f3d9.js} +3 -3
- package/build/{index-d9403f08.js → index-648684bb.js} +5 -5
- package/build/{index-37c18083.js → index-6545ffab.js} +7 -7
- package/build/{index-dabc7dbe.js → index-6a5c2ced.js} +13 -13
- package/build/{index-4abf0f97.js → index-6d99c8ce.js} +18 -18
- package/build/{index-ddf6769a.js → index-6ec92cf1.js} +13 -13
- package/build/{index-03516021.js → index-6f4795da.js} +2 -2
- package/build/{index-37d788dd.js → index-70c01c21.js} +18 -18
- package/build/{index-82742e98.js → index-735066bd.js} +21 -21
- package/build/{index-c5615393.js → index-73ccdad1.js} +6 -6
- package/build/{index-3055170c.js → index-75cddb60.js} +2 -2
- package/build/{index-392865fc.js → index-77722224.js} +17 -17
- package/build/{index-d99fc14d.js → index-786389b2.js} +24 -24
- package/build/{index-c4e13080.js → index-79ec597b.js} +1 -1
- package/build/{index-fd7b3418.js → index-7a4c50ce.js} +3 -3
- package/build/{index-a1e5e001.js → index-87e06c58.js} +1 -1
- package/build/{index-8e15e099.js → index-8cecc9bc.js} +2 -2
- package/build/{index-7fecdd2b.js → index-91dd5a4a.js} +15 -15
- package/build/{index-32e68206.js → index-937bbee1.js} +1 -1
- package/build/{index-ac6a55bd.js → index-94042a8b.js} +6 -6
- package/build/{index-9f59f4fc.js → index-99232d6d.js} +1 -1
- package/build/{index-791b5c72.js → index-99a7fa79.js} +1 -1
- package/build/{index-2c11a384.js → index-9a1e90ab.js} +3 -3
- package/build/{index-31bac595.js → index-9cf0a14f.js} +2 -2
- package/build/{index-f07c0636.js → index-a9feaf53.js} +13 -13
- package/build/{index-e2b1dcfb.js → index-b4755536.js} +13 -13
- package/build/{index-c8256e9d.js → index-b5d898ae.js} +4 -4
- package/build/{index-c0701302.js → index-b67fd56b.js} +23 -23
- package/build/{index-d0ff9716.js → index-bcb8ea66.js} +1 -1
- package/build/{index-a7913264.js → index-c191ebbb.js} +6 -6
- package/build/{index-ce8ad75d.js → index-c31e8fca.js} +1 -1
- package/build/{index-a20b35f5.js → index-c9460d52.js} +2 -2
- package/build/{index-4fba69f6.js → index-d07b7530.js} +16 -16
- package/build/{index-9fdbe073.js → index-d18d5a6b.js} +12 -12
- package/build/{index-85b160ec.js → index-d3032ff8.js} +1 -1
- package/build/{index-a5d7b919.js → index-da4c2187.js} +20 -20
- package/build/{index-e22b80c9.js → index-df3ddff1.js} +3 -3
- package/build/{index-b60570a2.js → index-e122b35d.js} +3 -3
- package/build/{index-af356561.js → index-e64ee4bf.js} +6 -6
- package/build/{index-815d1a51.js → index-f3abd32a.js} +16 -16
- package/build/{index-8a2a1430.js → index-fc9737df.js} +2 -2
- package/build/index.js +112 -112
- package/build/{index.styles-76ace5ab.js → index.styles-63a50783.js} +1 -1
- package/build/{labelSorting-726d4dd0.js → labelSorting-323f3b58.js} +4 -4
- package/build/lead.js +23 -23
- package/build/{logoIcon-f97d2a1e.js → logoIcon-233f7bfe.js} +2 -2
- package/build/mantine.js +21 -21
- package/build/misc.js +17 -17
- 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 +68 -68
- 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-3f1fff5d.js → post-bb31c1f0.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/errorCode.d.ts +1 -0
- package/build/ssoV2.js +261 -476
- package/build/{store-d83a1d4e.js → store-28b0c00a.js} +5 -7
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +30 -30
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-aaf96b0b.js → surveyThankyouCard-d26b1a60.js} +5 -5
- package/build/together.js +53 -53
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +47 -47
- package/build/togetherMoleculesCardAuthor.js +27 -27
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +37 -37
- package/build/togetherOrganisms.js +48 -48
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-b962a85e.js → treePopoverMenu-11a0875c.js} +19 -19
- package/build/{types-ba9bf5b3.js → types-ff57b68c.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-d4086129.js → useCategory-a832cff5.js} +5 -5
- package/build/{useHealthToolCache-ebb0fd1c.js → useHealthToolCache-56e103aa.js} +1 -1
- package/build/{useMantineLocale-489f1064.js → useMantineLocale-6e091175.js} +5 -5
- package/build/{usePlacesAutocomplete-682a233a.js → usePlacesAutocomplete-d32798e4.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-79f65c03.js → utils-1e5a096b.js} +2 -2
- package/build/{utils-33ae30fe.js → utils-b8deba2c.js} +2 -2
- package/build/{utils-290e67d2.js → utils-fd8df229.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/ssoV2/screens/passwordForgotEmail.d.ts +0 -5
- package/build/ssoV2/screens/passwordForgotEmail.d.ts +0 -5
- /package/build/{BMI_BOYS.percentile.monthly-d9d147fa.js → BMI_BOYS.percentile.monthly-d88cb584.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-2acac956.js → BMI_BOYS.percentile.weekly-b96dbc6a.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-196d5c61.js → BMI_BOYS.percentile.yearly-18867df3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-6887b441.js → BMI_BOYS.zscore.monthly-7d974c29.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-c0e7c8e5.js → BMI_BOYS.zscore.weekly-274ac492.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-0144cea3.js → BMI_BOYS.zscore.yearly-f0f7b354.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-0383a154.js → BMI_GIRLS.percentile.monthly-5d6f55db.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-6e9f78aa.js → BMI_GIRLS.percentile.weekly-a36b8aa2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-451c4fc9.js → BMI_GIRLS.percentile.yearly-85f20258.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-dff09d1b.js → BMI_GIRLS.zscore.monthly-66779999.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-a78567ac.js → BMI_GIRLS.zscore.weekly-f044e57e.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-fb8c901b.js → BMI_GIRLS.zscore.yearly-09a6a547.js} +0 -0
- /package/build/{ChevronDown-b0ccb042.js → ChevronDown-9f4aefa5.js} +0 -0
- /package/build/{Close-a84d9ef4.js → Close-295771e3.js} +0 -0
- /package/build/{Google-a63f9dad.js → Google-26772450.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-cd162cd0.js → HEAD CIRCUM_BOYS.percentile.monthly-83408064.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-bee049a9.js → HEAD CIRCUM_BOYS.percentile.weekly-b858500a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-566142e0.js → HEAD CIRCUM_BOYS.percentile.yearly-723b23db.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-3d4283d9.js → HEAD CIRCUM_BOYS.zscore.monthly-e785bc72.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-de0c9195.js → HEAD CIRCUM_BOYS.zscore.weekly-20ff9b1b.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-eefbc66c.js → HEAD CIRCUM_BOYS.zscore.yearly-de0563bf.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f6cf3970.js → HEAD CIRCUM_GIRLS.percentile.monthly-4c706609.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-4c0a1ea6.js → HEAD CIRCUM_GIRLS.percentile.weekly-ced73496.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-fdbf7bf7.js → HEAD CIRCUM_GIRLS.percentile.yearly-1cb4a1b9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-67e55383.js → HEAD CIRCUM_GIRLS.zscore.monthly-20d8c0e4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-cf90c892.js → HEAD CIRCUM_GIRLS.zscore.weekly-dfc05f14.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-8023bb3e.js → HEAD CIRCUM_GIRLS.zscore.yearly-74125206.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-8cbcb944.js → HEIGHT_BOYS.percentile.monthly-e84e4252.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-3d50c176.js → HEIGHT_BOYS.percentile.weekly-5d4b2ec2.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-bf33865f.js → HEIGHT_BOYS.percentile.yearly-511c507c.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-3250fc5a.js → HEIGHT_BOYS.zscore.monthly-c43072a5.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-a24a32ab.js → HEIGHT_BOYS.zscore.weekly-fe998a38.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-c9036d29.js → HEIGHT_BOYS.zscore.yearly-3150df20.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-2b13bed5.js → HEIGHT_GIRLS.percentile.monthly-6f3d884d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d51f7a13.js → HEIGHT_GIRLS.percentile.weekly-5679452b.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d361df2e.js → HEIGHT_GIRLS.percentile.yearly-07853808.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-f48004d4.js → HEIGHT_GIRLS.zscore.monthly-71699a69.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-b04a3e2f.js → HEIGHT_GIRLS.zscore.weekly-30a735ee.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-98780305.js → HEIGHT_GIRLS.zscore.yearly-d422311d.js} +0 -0
- /package/build/{Locale-f7c38758.js → Locale-ff23f51a.js} +0 -0
- /package/build/{Visible-e74b7b1e.js → Visible-f5809fbc.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-5e829094.js → WEIGHT_BOYS.percentile.monthly-a768e9e3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-7d8037f2.js → WEIGHT_BOYS.percentile.weekly-03ab7e8a.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-6b5c46d8.js → WEIGHT_BOYS.percentile.yearly-60897145.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e2b8d1bf.js → WEIGHT_BOYS.zscore.monthly-c5bef405.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-b8f9412e.js → WEIGHT_BOYS.zscore.weekly-6676c25a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-dd327469.js → WEIGHT_BOYS.zscore.yearly-54efda48.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-b6f52e6f.js → WEIGHT_GIRLS.percentile.monthly-ad62fa77.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e2d6002d.js → WEIGHT_GIRLS.percentile.weekly-dc076703.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-98894736.js → WEIGHT_GIRLS.percentile.yearly-1f68e0c6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b5ac72b7.js → WEIGHT_GIRLS.zscore.monthly-f53f16d8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-c24d7ed9.js → WEIGHT_GIRLS.zscore.weekly-de94d161.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-6b26ad5a.js → WEIGHT_GIRLS.zscore.yearly-036400c4.js} +0 -0
- /package/build/{animation-f8d62302.js → animation-5e99e1f8.js} +0 -0
- /package/build/{constants-37e9897e.js → constants-1ea2fe18.js} +0 -0
- /package/build/{constants-5b3c615b.js → constants-a281612e.js} +0 -0
- /package/build/{constants-e6ada458.js → constants-a457ffa6.js} +0 -0
- /package/build/{dataTransform-32d898c3.js → dataTransform-4450a504.js} +0 -0
- /package/build/{doctor-e8290aeb.js → doctor-f34e4394.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-6bc0799e.js → BMI_BOYS.percentile.monthly-dbf9c834.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-84dd537e.js → BMI_BOYS.percentile.weekly-53b3cfd5.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-7a9c5dcc.js → BMI_BOYS.percentile.yearly-5cde4458.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-dbb7aad9.js → BMI_BOYS.zscore.monthly-79e8970b.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-7ed8b711.js → BMI_BOYS.zscore.weekly-ebb8bf9a.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-18f4916f.js → BMI_BOYS.zscore.yearly-a7dd9e8e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-0c680f5a.js → BMI_GIRLS.percentile.monthly-77cbcaf4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-a969c879.js → BMI_GIRLS.percentile.weekly-fe5e17d4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-70f2cc95.js → BMI_GIRLS.percentile.yearly-f1822cf4.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-f35d10e5.js → BMI_GIRLS.zscore.monthly-77a42bd5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-7c55ebee.js → BMI_GIRLS.zscore.weekly-a3a265ac.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-ae0a3a24.js → BMI_GIRLS.zscore.yearly-5e94eeb9.js} +0 -0
- /package/build/esm/{ChevronDown-d5f343b7.js → ChevronDown-37e65b8b.js} +0 -0
- /package/build/esm/{Close-9b1898f8.js → Close-0ff67dbb.js} +0 -0
- /package/build/esm/{Google-573c1279.js → Google-69978b98.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-62b2eaf4.js → HEAD CIRCUM_BOYS.percentile.monthly-c21a0080.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-dab9a538.js → HEAD CIRCUM_BOYS.percentile.weekly-38e068d8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-9530563f.js → HEAD CIRCUM_BOYS.percentile.yearly-1b72f9e4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-00c8b06c.js → HEAD CIRCUM_BOYS.zscore.monthly-bf0e0bd8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d29a8597.js → HEAD CIRCUM_BOYS.zscore.weekly-6eca6b12.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-ff62bd93.js → HEAD CIRCUM_BOYS.zscore.yearly-edf7d844.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-1809ce33.js → HEAD CIRCUM_GIRLS.percentile.monthly-c423ab6c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-c4f9f006.js → HEAD CIRCUM_GIRLS.percentile.weekly-06bdcc02.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-13e36330.js → HEAD CIRCUM_GIRLS.percentile.yearly-a613a47e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-432c96bb.js → HEAD CIRCUM_GIRLS.zscore.monthly-57d5a98e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-0d27f017.js → HEAD CIRCUM_GIRLS.zscore.weekly-b024132b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c5c5bec2.js → HEAD CIRCUM_GIRLS.zscore.yearly-daa32879.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-675f599d.js → HEIGHT_BOYS.percentile.monthly-cbe227c1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-eed12df4.js → HEIGHT_BOYS.percentile.weekly-faa05af0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-eca7a037.js → HEIGHT_BOYS.percentile.yearly-310bdd6b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-67c77993.js → HEIGHT_BOYS.zscore.monthly-3bde215a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-11d69c66.js → HEIGHT_BOYS.zscore.weekly-2f2a25f3.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-168aeedc.js → HEIGHT_BOYS.zscore.yearly-4d88e2b4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4883e9f6.js → HEIGHT_GIRLS.percentile.monthly-a9942a56.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-a21af531.js → HEIGHT_GIRLS.percentile.weekly-4089b8c3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-805f6be5.js → HEIGHT_GIRLS.percentile.yearly-75571cf1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-2449f1ef.js → HEIGHT_GIRLS.zscore.monthly-beaa1bed.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-cc908a75.js → HEIGHT_GIRLS.zscore.weekly-d504e3d4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-760c57e5.js → HEIGHT_GIRLS.zscore.yearly-8beb56ea.js} +0 -0
- /package/build/esm/{Locale-6bb239db.js → Locale-bfd0613b.js} +0 -0
- /package/build/esm/{Visible-87db7073.js → Visible-6cbae59f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-6b254307.js → WEIGHT_BOYS.percentile.monthly-a17ee09f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-fde9ddd8.js → WEIGHT_BOYS.percentile.weekly-af03e65f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-a164f56b.js → WEIGHT_BOYS.percentile.yearly-fecd20eb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-9c761a49.js → WEIGHT_BOYS.zscore.monthly-aec3b29c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-39620fee.js → WEIGHT_BOYS.zscore.weekly-a7fc953a.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-65d5bd7b.js → WEIGHT_BOYS.zscore.yearly-82d70f6a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-fa57f777.js → WEIGHT_GIRLS.percentile.monthly-379b0dc7.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-3dbdbf45.js → WEIGHT_GIRLS.percentile.weekly-1a7965df.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-019bf8fd.js → WEIGHT_GIRLS.percentile.yearly-b04a749b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-47b50eff.js → WEIGHT_GIRLS.zscore.monthly-bb88b603.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-daef0c74.js → WEIGHT_GIRLS.zscore.weekly-78d134e9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-0c4ac66d.js → WEIGHT_GIRLS.zscore.yearly-7b792eef.js} +0 -0
- /package/build/esm/{animation-d6f578cf.js → animation-51b969e8.js} +0 -0
- /package/build/esm/{constants-bf8ae349.js → constants-1672cce0.js} +0 -0
- /package/build/esm/{constants-3f3207d7.js → constants-92a60434.js} +0 -0
- /package/build/esm/{constants-df731feb.js → constants-f8fb18ae.js} +0 -0
- /package/build/esm/{dataTransform-19e76abb.js → dataTransform-bafb5d6b.js} +0 -0
- /package/build/esm/{doctor-30c4f269.js → doctor-a186e4c9.js} +0 -0
- /package/build/esm/{index-31329d7a.js → index-15064510.js} +0 -0
- /package/build/esm/{index-e5391159.js → index-1f5b7d0f.js} +0 -0
- /package/build/esm/{index-24592075.js → index-55821c7a.js} +0 -0
- /package/build/esm/{index-71a19b04.js → index-af7e00f1.js} +0 -0
- /package/build/esm/{index-0c3dc7fb.js → index-b4d891a3.js} +0 -0
- /package/build/esm/{index-fd3a2c47.js → index-b70e6738.js} +0 -0
- /package/build/esm/{index-9b30ac98.js → index-f9ccfc12.js} +0 -0
- /package/build/esm/{index-cb81274f.js → index-fe0bb63f.js} +0 -0
- /package/build/esm/{localizeNumberFormat-692cd332.js → localizeNumberFormat-0011ba69.js} +0 -0
- /package/build/esm/{normalizeLink-6997bb51.js → normalizeLink-d236207d.js} +0 -0
- /package/build/esm/{number-6c1c66d3.js → number-3e670029.js} +0 -0
- /package/build/esm/{other-e2a00bf0.js → other-0c2bc130.js} +0 -0
- /package/build/esm/{paths-72879f7c.js → paths-f2597760.js} +0 -0
- /package/build/esm/{translationsContext-901635f1.js → translationsContext-bcf94bc4.js} +0 -0
- /package/build/esm/{tslib.es6-e746f7d7.js → tslib.es6-481dc1a9.js} +0 -0
- /package/build/esm/{types-f9cf1b93.js → types-9ecc4980.js} +0 -0
- /package/build/esm/{useIsInit-49159646.js → useIsInit-ed11d8c5.js} +0 -0
- /package/build/esm/{useOutsideClick-e07e302d.js → useOutsideClick-17058ae3.js} +0 -0
- /package/build/esm/{useScrollbarSize-27ca4119.js → useScrollbarSize-de9d389a.js} +0 -0
- /package/build/esm/{useUniqueId-926b620b.js → useUniqueId-9d01509a.js} +0 -0
- /package/build/esm/{utils-fafc16ba.js → utils-3a903fff.js} +0 -0
- /package/build/{index-27b273aa.js → index-6b24b082.js} +0 -0
- /package/build/{index-d9049df8.js → index-7b105346.js} +0 -0
- /package/build/{index-ddbdc13f.js → index-842e76ef.js} +0 -0
- /package/build/{index-f4c03e0a.js → index-ab5300f9.js} +0 -0
- /package/build/{index-5a9ced16.js → index-b00dc05a.js} +0 -0
- /package/build/{index-1a757253.js → index-d2497546.js} +0 -0
- /package/build/{index-44d736a8.js → index-e600b4bd.js} +0 -0
- /package/build/{index-3fcf5ad7.js → index-ec59f4b8.js} +0 -0
- /package/build/{localizeNumberFormat-2cd74204.js → localizeNumberFormat-b2393ff5.js} +0 -0
- /package/build/{normalizeLink-b31db0de.js → normalizeLink-54693f0e.js} +0 -0
- /package/build/{number-20f5000d.js → number-32ecbcb6.js} +0 -0
- /package/build/{other-d71cfa3a.js → other-eabbdac8.js} +0 -0
- /package/build/{paths-f8ddbc2e.js → paths-2f83fda3.js} +0 -0
- /package/build/{translationsContext-1e5ddada.js → translationsContext-79ae47bc.js} +0 -0
- /package/build/{tslib.es6-633df9f4.js → tslib.es6-1f761b7b.js} +0 -0
- /package/build/{types-80596c06.js → types-ea597ef0.js} +0 -0
- /package/build/{useIsInit-2e0901ec.js → useIsInit-7f79b3c0.js} +0 -0
- /package/build/{useOutsideClick-c5b584b7.js → useOutsideClick-59955010.js} +0 -0
- /package/build/{useScrollbarSize-08eea3af.js → useScrollbarSize-5dd594fd.js} +0 -0
- /package/build/{useUniqueId-c373b313.js → useUniqueId-3c16ab2f.js} +0 -0
- /package/build/{utils-2efad268.js → utils-3469de06.js} +0 -0
package/build/esm/ssoV2.js
CHANGED
|
@@ -1,354 +1,51 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
2
|
-
import React__default, { createContext,
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-481dc1a9.js';
|
|
2
|
+
import React__default, { createContext, useEffect } from 'react';
|
|
3
3
|
import { ChevronLeft } from '@hhgtech/icons/arrow';
|
|
4
4
|
import { Close } from '@hhgtech/icons/core';
|
|
5
|
-
import { L as LogoIcon } from './logoIcon-
|
|
6
|
-
import { B as Button } from './index-
|
|
7
|
-
import { M as Modal } from './index-
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { f as Accordion, I as Input, P as Phone, O as OTP, g as PasswordInput, R as Radio } from './index-de807419.js';
|
|
5
|
+
import { L as LogoIcon } from './logoIcon-b59ebdbd.js';
|
|
6
|
+
import { B as Button } from './index-98645b92.js';
|
|
7
|
+
import { M as Modal } from './index-0c55e9a7.js';
|
|
8
|
+
import { Stack, Group } from '@mantine/core';
|
|
9
|
+
import { I as Input, P as Phone, O as OTP, f as PasswordInput, R as Radio } from './index-c1039bb5.js';
|
|
11
10
|
import '@mantine/dates';
|
|
12
|
-
import { L as LOCALE_SPECS, S as STATIC_PAGES } from './index-
|
|
13
|
-
import './index-
|
|
14
|
-
import './index-
|
|
15
|
-
import { s as showNotification } from './useMantineLocale-
|
|
16
|
-
import { T as Text } from './index-
|
|
17
|
-
import
|
|
11
|
+
import { L as LOCALE_SPECS, S as STATIC_PAGES } from './index-96f6e4a0.js';
|
|
12
|
+
import './index-1b8aa316.js';
|
|
13
|
+
import './index-b4d891a3.js';
|
|
14
|
+
import { s as showNotification } from './useMantineLocale-8c29ad1f.js';
|
|
15
|
+
import { T as Text } from './index-e37582dc.js';
|
|
16
|
+
import './translationsContext-bcf94bc4.js';
|
|
18
17
|
import '@mantine/hooks';
|
|
19
|
-
import './utils-
|
|
20
|
-
import './other-
|
|
21
|
-
import './index-
|
|
22
|
-
import { L as LOCALE } from './Locale-
|
|
23
|
-
import './
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import { G as Google, F as Facebook } from './Google-
|
|
27
|
-
import { Info } from '@hhgtech/icons/other';
|
|
28
|
-
import './index.styles-1396d221.js';
|
|
18
|
+
import './utils-3a903fff.js';
|
|
19
|
+
import './other-0c2bc130.js';
|
|
20
|
+
import './index-b171883a.js';
|
|
21
|
+
import { L as LOCALE } from './Locale-bfd0613b.js';
|
|
22
|
+
import { a as useSSOSteps, f as fetchSSOV2Api, w as websiteId, S as SSO_V2_PATHS, c as checkUserExist, b as SSOStepTypeType, d as allAvailableAreaCodes, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, e as updateUserInfo, r as resetPassword, u as useSSOV2Store, i as redirect } from './store-6d52c832.js';
|
|
23
|
+
export { u as useSSOV2Store } from './store-6d52c832.js';
|
|
24
|
+
import { u as useTranslations } from './index-8194a3c6.js';
|
|
25
|
+
import { G as Google, F as Facebook } from './Google-69978b98.js';
|
|
29
26
|
import styled from '@emotion/styled';
|
|
30
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
27
|
+
import { M as MAPPED_LOCALE } from './utils-1d64f2fd.js';
|
|
31
28
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
32
29
|
import { useForm, yupResolver } from '@mantine/form';
|
|
33
30
|
import * as yup from 'yup';
|
|
34
31
|
import dayjs from 'dayjs';
|
|
35
|
-
import { D as DatePicker } from './index-
|
|
36
|
-
import './index-
|
|
32
|
+
import { D as DatePicker } from './index-f4bc7b95.js';
|
|
33
|
+
import './index-75e1618e.js';
|
|
34
|
+
import './index.styles-24e91498.js';
|
|
35
|
+
import '@hhgtech/icons/other';
|
|
37
36
|
import '@mantine/carousel';
|
|
38
37
|
import './miscTheme.js';
|
|
39
38
|
import 'classnames';
|
|
40
|
-
import './useUniqueId-
|
|
39
|
+
import './useUniqueId-9d01509a.js';
|
|
41
40
|
import './constantsSite.js';
|
|
42
41
|
import 'date-fns/locale';
|
|
43
42
|
import './constantsRiskScreener.js';
|
|
44
43
|
import './constantsIsProduction.js';
|
|
45
44
|
import '@mantine/notifications';
|
|
46
45
|
import 'zustand';
|
|
47
|
-
import './normalizeLink-
|
|
46
|
+
import './normalizeLink-d236207d.js';
|
|
48
47
|
import './miscCookieHelper.js';
|
|
49
48
|
|
|
50
|
-
const SSOStateContext = createContext({
|
|
51
|
-
locale: LOCALE.Vietnam,
|
|
52
|
-
onClose: () => false,
|
|
53
|
-
});
|
|
54
|
-
const SSOStateProvider = ({ children, locale = LOCALE.Vietnam, onClose, }) => {
|
|
55
|
-
const [openCollectInfoPopup, setOpenCollectInfoPopup] = React__default.useState(false);
|
|
56
|
-
return (React__default.createElement(SSOStateContext.Provider, { value: {
|
|
57
|
-
locale,
|
|
58
|
-
onClose,
|
|
59
|
-
openCollectInfoPopup,
|
|
60
|
-
setOpenCollectInfoPopup,
|
|
61
|
-
} }, children));
|
|
62
|
-
};
|
|
63
|
-
const useSSOState = () => {
|
|
64
|
-
return React__default.useContext(SSOStateContext);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const BackgroundHeader$1 = () => (React__default.createElement("svg", { width: "292", height: "255", viewBox: "0 0 292 255", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: {
|
|
68
|
-
position: 'absolute',
|
|
69
|
-
top: 0,
|
|
70
|
-
left: '50%',
|
|
71
|
-
zIndex: 0,
|
|
72
|
-
transform: 'translateX(-50%)',
|
|
73
|
-
pointerEvents: 'none',
|
|
74
|
-
} },
|
|
75
|
-
React__default.createElement("circle", { opacity: ".2", cx: "146", cy: "109", r: "146", fill: "url(#paint0_linear_908_34610)" }),
|
|
76
|
-
React__default.createElement("circle", { opacity: ".3", cx: "146", cy: "109", r: "85", fill: "url(#paint1_linear_908_34610)" }),
|
|
77
|
-
React__default.createElement("circle", { cx: "146.5", cy: "108.5", r: "47.5", fill: "url(#paint2_linear_908_34610)" }),
|
|
78
|
-
React__default.createElement("circle", { cx: "146.5", cy: "108.5", r: "47", stroke: "url(#paint3_linear_908_34610)" }),
|
|
79
|
-
React__default.createElement("path", { d: "M163.327 94.716c-.522-3.187-7.981-5.714-17.11-5.714s-16.589 2.527-17.111 5.714h-.032v26.428h.032c.522 3.186 7.982 5.714 17.111 5.714 9.128 0 16.588-2.528 17.11-5.714h.032V94.716z", fill: "#545E73" }),
|
|
80
|
-
React__default.createElement("path", { d: "M146.217 118.286c-9.468 0-17.143-2.718-17.143-6.071v8.928h.032c.522 3.187 7.982 5.714 17.111 5.714 9.128 0 16.588-2.527 17.11-5.714h.032v-8.928c0 3.353-7.675 6.071-17.142 6.071", fill: "#2B62CD" }),
|
|
81
|
-
React__default.createElement("path", { d: "M129.074 111.859v.358q.002-.18.032-.358zm34.25 0q.031.178.032.358v-.358z", fill: "#38454F" }),
|
|
82
|
-
React__default.createElement("path", { d: "M146.217 109.714c-9.468 0-17.143-2.719-17.143-6.071v8.928h.032c.522 3.186 7.982 5.714 17.111 5.714 9.128 0 16.588-2.528 17.11-5.714h.032v-8.928c0 3.352-7.675 6.071-17.142 6.071", fill: "#2D87F3" }),
|
|
83
|
-
React__default.createElement("path", { d: "M129.074 103.287v.357q.002-.18.032-.357zm34.25 0q.031.178.032.357v-.357z", fill: "#556080" }),
|
|
84
|
-
React__default.createElement("path", { d: "M146.217 101.145c9.467 0 17.142-2.719 17.142-6.072s-7.675-6.071-17.142-6.071c-9.468 0-17.143 2.718-17.143 6.071s7.675 6.072 17.143 6.072", fill: "#91CAFF" }),
|
|
85
|
-
React__default.createElement("path", { d: "M146.217 101.144c-9.468 0-17.143-2.719-17.143-6.072v8.929h.032c.522 3.186 7.982 5.714 17.111 5.714 9.128 0 16.588-2.528 17.11-5.714h.032v-8.929c0 3.353-7.675 6.072-17.142 6.072", fill: "#45A4FF" }),
|
|
86
|
-
React__default.createElement("path", { d: "M129.074 94.717v.357q.002-.18.032-.357zm34.25 0q.031.177.032.357v-.357z", fill: "#8697CB" }),
|
|
87
|
-
React__default.createElement("path", { d: "M156.36 129.002a8.57 8.57 0 0 0 8.571-8.571 8.571 8.571 0 1 0-8.571 8.571", fill: "#00B16A" }),
|
|
88
|
-
React__default.createElement("path", { d: "M161.054 116.273a.714.714 0 0 0-.995.178l-3.997 5.743-2.82-2.316a.714.714 0 0 0-.906 1.105l3.418 2.806a.72.72 0 0 0 1.04-.144l4.438-6.377a.716.716 0 0 0-.178-.995", fill: "#fff" }),
|
|
89
|
-
React__default.createElement("defs", null,
|
|
90
|
-
React__default.createElement("linearGradient", { id: "paint0_linear_908_34610", x1: "147.5", y1: "141", x2: "36.5", y2: "30", gradientUnits: "userSpaceOnUse" },
|
|
91
|
-
React__default.createElement("stop", { stopColor: "#fff", stopOpacity: "0" }),
|
|
92
|
-
React__default.createElement("stop", { offset: "1", stopColor: "#fff" })),
|
|
93
|
-
React__default.createElement("linearGradient", { id: "paint1_linear_908_34610", x1: "218.376", y1: "63.134", x2: "61", y2: "109", gradientUnits: "userSpaceOnUse" },
|
|
94
|
-
React__default.createElement("stop", { stopColor: "#fff" }),
|
|
95
|
-
React__default.createElement("stop", { offset: "1", stopColor: "#fff", stopOpacity: "0" })),
|
|
96
|
-
React__default.createElement("linearGradient", { id: "paint2_linear_908_34610", x1: "146.5", y1: "61", x2: "146.5", y2: "156", gradientUnits: "userSpaceOnUse" },
|
|
97
|
-
React__default.createElement("stop", { stopColor: "#fff", stopOpacity: ".6" }),
|
|
98
|
-
React__default.createElement("stop", { offset: "1", stopColor: "#fff", stopOpacity: "0" })),
|
|
99
|
-
React__default.createElement("linearGradient", { id: "paint3_linear_908_34610", x1: "178.979", y1: "98.35", x2: "108.338", y2: "98.35", gradientUnits: "userSpaceOnUse" },
|
|
100
|
-
React__default.createElement("stop", { stopColor: "#fff", stopOpacity: "0" }),
|
|
101
|
-
React__default.createElement("stop", { offset: "1", stopColor: "#fff" })))));
|
|
102
|
-
|
|
103
|
-
const CustomerSupportIcon = () => {
|
|
104
|
-
return (React__default.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
105
|
-
React__default.createElement("g", { clipPath: "url(#clip0_911_24123)" },
|
|
106
|
-
React__default.createElement("path", { d: "M23.3 16.625c-.042-1.1.166-4.401.166-4.401.073-.27.15-.594.205-.854C25.33 3.783 20.246.75 16 .75c-1.133 0-2.488.413-3.13 1.203a.82.82 0 0 1-.503.307c-2.862.46-4.742 4.183-4.062 8.77q.087.586.23 1.19v.002c.183 1.009.231 3.303.165 4.403-.271 4.482-5.173 8.453-1.985 11.608 8.41 1.974 10.202 2.142 18.57 0 3.187-3.155-1.81-7.122-1.985-11.608", fill: "#9B4E4E" }),
|
|
107
|
-
React__default.createElement("path", { d: "M24.675 14.972a3.2 3.2 0 0 0-.64-.718.25.25 0 1 0-.302.399q.308.261.53.6a1.41 1.41 0 0 1 .177 1.562c-.465.892-1.84 1.63-3.614 2.043q.139.221.264.451c1.85-.457 3.275-1.267 3.794-2.263a1.89 1.89 0 0 0-.21-2.074", fill: "#473049" }),
|
|
108
|
-
React__default.createElement("path", { d: "M18.545 22.798c-.35.41-2.09 4.555-2.535 5.29-.448-.735-2.198-4.89-2.545-5.3.351-.358.597-.808.707-1.297q.096-.405.115-.82c.365.137 3.063.134 3.428-.003v.003q.018.4.11.79c.107.505.357.969.72 1.337", fill: "#FF977B" }),
|
|
109
|
-
React__default.createElement("path", { d: "M17.824 21.46a3.39 3.39 0 0 1-3.652.03q.095-.404.115-.82c.365.138 3.062.135 3.427-.002v.003q.018.4.11.79", fill: "#FF7364" }),
|
|
110
|
-
React__default.createElement("path", { d: "M25.284 28.233c.153.66-.362 1.082-1.08 1.472-.917.5-3.717 1.55-8.205 1.55s-7.287-1.05-8.205-1.55c-.717-.39-1.232-.812-1.08-1.472.048-.187.126-.365.233-.525.535-.84 1.567-2.198 4.2-3.598q.335-.174.692-.33c.075 1.013 2.985.21 2.985.21a.96.96 0 0 1 .57.835c.038.888.168 2.528.615 3.263.445-.735.575-2.375.613-3.263a.96.96 0 0 1 .57-.835s2.907.81 2.985-.202q.347.151.675.322c2.632 1.4 3.665 2.758 4.2 3.598.107.16.185.338.232.525", fill: "#F9E0B4" }),
|
|
111
|
-
React__default.createElement("path", { d: "M22.317 12.023c.359-.006.715.05 1.055.165.785.282 1.33.962 1.2 2.3-.105 1.1-.647 1.752-1.317 2.03-.461.188-.97.217-1.45.085.277-.97.555-3.88.512-4.58m-12.124 4.579a2.26 2.26 0 0 1-1.448-.082c-.672-.28-1.215-.93-1.322-2.033-.123-1.287.375-1.965 1.112-2.265a3 3 0 0 1 1.145-.2c-.042.7.235 3.61.513 4.58", fill: "#4B3956" }),
|
|
112
|
-
React__default.createElement("path", { d: "M22.319 12.021c.04.7-.235 3.61-.513 4.581-.285.996-1.532 3.582-5.285 4.418a2.4 2.4 0 0 1-1.044 0c-3.752-.836-5-3.422-5.284-4.418-.278-.97-.554-3.88-.513-4.58 1.219-.669.668-2.955 1.56-5.057.556-1.307 1.305-1.644 1.722-1.727a.9.9 0 0 0 .533-.338c1.6-2.056 4.794-.95 5.966 1.225 1.066 1.977 1.225 4.918 2.858 5.896", fill: "#FFB497" }),
|
|
113
|
-
React__default.createElement("path", { d: "M20.13 23.118c.067.217.083.446.048.67-.077 1.012-.52 2.735-1.227 2.542-1.018-.277-1.758-2.34-1.758-2.34.518-.23 1.003-.782 1.353-1.192q.068-.086.132-.16a.463.463 0 0 1 .625-.103c.295.153.683.345.828.583m-5.306.872s-.74 2.063-1.758 2.34c-.71.193-1.152-1.537-1.227-2.55a1.5 1.5 0 0 1 .047-.662c.145-.238.533-.43.828-.583a.463.463 0 0 1 .625.103l.125.15c.347.41.837.972 1.36 1.202", fill: "#F7F0DF" }),
|
|
114
|
-
React__default.createElement("path", { d: "M14.94 16.018a.306.306 0 0 0-.3.385 1.414 1.414 0 0 0 2.72 0 .307.307 0 0 0-.3-.385z", fill: "#fff" }),
|
|
115
|
-
React__default.createElement("path", { d: "M12.776 11.492h-.05a.676.676 0 0 0-.675.676v.541c0 .374.302.676.676.676h.049a.676.676 0 0 0 .676-.676v-.54a.676.676 0 0 0-.676-.677m6.448 1.893h.05a.676.676 0 0 0 .675-.676v-.541a.676.676 0 0 0-.676-.676h-.049a.676.676 0 0 0-.676.675v.542c0 .373.303.676.676.676", fill: "#9B4E4E" }),
|
|
116
|
-
React__default.createElement("path", { d: "M16.017 29.117h-.034a.47.47 0 0 0-.471.472v.034c0 .26.21.471.471.471h.034c.26 0 .472-.21.472-.471v-.034a.47.47 0 0 0-.472-.472", fill: "#fff" }),
|
|
117
|
-
React__default.createElement("path", { d: "M16.003 15.2c-.008 0-.69-.01-.69-.402a.25.25 0 0 1 .455-.142 1 1 0 0 0 .235.044.8.8 0 0 0 .229-.044.25.25 0 0 1 .456.142c0 .391-.679.402-.685.402", fill: "#FF7364" }),
|
|
118
|
-
React__default.createElement("path", { d: "M11.532 12.095a.25.25 0 0 1-.225-.36 1.62 1.62 0 0 1 1.338-.752c.396-.017.782.124 1.075.39a.25.25 0 1 1-.333.374 1 1 0 0 0-.742-.264 1.14 1.14 0 0 0-.888.473.25.25 0 0 1-.225.14m-.451-1.716a.25.25 0 0 1-.175-.43c.606-.587 2.632-.888 3.235-.48a.25.25 0 0 1-.281.415c-.37-.253-2.149-.02-2.606.425a.25.25 0 0 1-.173.07m9.387 1.715a.25.25 0 0 1-.226-.14 1.14 1.14 0 0 0-.887-.472 1 1 0 0 0-.742.264.25.25 0 1 1-.332-.373c.293-.267.68-.408 1.075-.391a1.62 1.62 0 0 1 1.337.752.25.25 0 0 1-.225.36m.452-1.715a.25.25 0 0 1-.174-.07c-.457-.444-2.235-.677-2.605-.426a.25.25 0 0 1-.281-.414c.603-.408 2.628-.108 3.234.48a.25.25 0 0 1-.175.43zm2.71 1.175c-.135-.78-.492-2.643-2.005-5.64-.06-.125-.092-.258.005-.355a.254.254 0 0 1 .355.005c.795.817 1.67 2.882 1.9 4.565zM10.163 6.313c-.015.025-1.525 2.925-1.83 4.89l-.028-.173q-.1-.658-.127-1.322C8.54 7.94 9.673 6.16 9.73 6.063a.25.25 0 0 1 .34-.093.25.25 0 0 1 .093.343", fill: "#844040" }),
|
|
119
|
-
React__default.createElement("path", { d: "M23.29 17.917c-1.345.813-3.559 1.331-5.908 1.3a.254.254 0 0 0-.253.247.25.25 0 0 0 .246.253l.23.002c2.522 0 4.831-.603 6.2-1.543a23 23 0 0 1-.516-.259", fill: "#473049" }),
|
|
120
|
-
React__default.createElement("path", { d: "M16.138 20.42c.686 0 1.241-.426 1.241-.952s-.555-.952-1.241-.952-1.242.426-1.242.952.556.952 1.242.952", fill: "#4B3956" })),
|
|
121
|
-
React__default.createElement("defs", null,
|
|
122
|
-
React__default.createElement("clipPath", { id: "clip0_911_24123" },
|
|
123
|
-
React__default.createElement("path", { fill: "#fff", d: "M0 0h32v32H0z" })))));
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
const HealthUpdateIcon = () => {
|
|
127
|
-
return (React__default.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
128
|
-
React__default.createElement("path", { d: "M20.69 3.066 4.714 5.456a1.714 1.714 0 0 0-1.442 1.95l3.01 20.106a1.714 1.714 0 0 0 1.948 1.442l15.975-2.39a1.714 1.714 0 0 0 1.441-1.95L22.638 4.507a1.714 1.714 0 0 0-1.949-1.441", fill: "#1B89E5" }),
|
|
129
|
-
React__default.createElement("path", { d: "m4.488 5.49 16.427-2.458 3.13 20.914-16.427 2.458z", fill: "#fff" }),
|
|
130
|
-
React__default.createElement("path", { d: "m13.559 8.067-.567.084a.83.83 0 0 0-.696.942l.02.141a.18.18 0 0 1-.15.203l-.14.021a.83.83 0 0 0-.697.942l.085.568a.83.83 0 0 0 .942.696l.141-.021a.18.18 0 0 1 .203.15l.022.14a.83.83 0 0 0 .942.697l.566-.085a.83.83 0 0 0 .697-.941l-.021-.142a.18.18 0 0 1 .15-.203l.141-.021a.83.83 0 0 0 .697-.943l-.085-.565a.83.83 0 0 0-.942-.697l-.142.022a.18.18 0 0 1-.203-.15l-.02-.142a.83.83 0 0 0-.943-.696m6.553 5.392-9.31 1.393a.32.32 0 0 0 .094.634l9.31-1.393a.32.32 0 1 0-.095-.634m.299 2.303L8.74 17.508a.32.32 0 0 0 .096.634l11.67-1.746a.32.32 0 0 0-.096-.634m-.591 2.436L9.039 19.81a.32.32 0 1 0 .095.634l10.78-1.613a.32.32 0 0 0-.095-.634m-1.084 2.51-9.397 1.406a.32.32 0 0 0 .095.634l9.397-1.407a.32.32 0 1 0-.095-.633m2.318-.347-.828.124a.32.32 0 0 0 .095.634l.828-.124a.32.32 0 0 0-.095-.634", fill: "#78C5EF" }),
|
|
131
|
-
React__default.createElement("path", { d: "m27.358 4.303-.805-.273a1.26 1.26 0 0 0-1.596.789l-4.406 13.013.494 2.544a.442.442 0 0 0 .728.246l1.937-1.72 2.61-7.71.224.075a.583.583 0 0 0 .739-.365l1.357-4.007a2.045 2.045 0 0 0-1.282-2.592", fill: "#36B1F2" }),
|
|
132
|
-
React__default.createElement("path", { d: "M26.32 11.443a.25.25 0 0 1-.236-.33l1.614-4.768a.25.25 0 1 1 .474.16l-1.615 4.768a.25.25 0 0 1-.237.17", fill: "#1B89E5" }),
|
|
133
|
-
React__default.createElement("path", { d: "M17.67 5.535 8.324 6.934a1.15 1.15 0 0 1-1.307-.967l-.098-.654a.44.44 0 0 1 .368-.497l10.754-1.61a.437.437 0 0 1 .498.368l.097.654a1.15 1.15 0 0 1-.967 1.307z", fill: "#3C3854" })));
|
|
134
|
-
};
|
|
135
|
-
|
|
136
|
-
const PersonalizeIcon = () => {
|
|
137
|
-
return (React__default.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
138
|
-
React__default.createElement("path", { d: "M31.364 22.343a5 5 0 0 0-1.713-1.477c-.847-.488-1.52-.816-1.638-1.931h-1.761c-.12 1.115-.797 1.443-1.644 1.931a5 5 0 0 0-1.712 1.477c-.33.438-.095.709.331.936.723.386 2.4.827 3.903.827 1.502 0 3.18-.441 3.902-.827.426-.227.662-.498.332-.936", fill: "#F78181" }),
|
|
139
|
-
React__default.createElement("path", { d: "M21.765 14c-.006-3.907-4.11-7.388-7.666-4.77a.4.4 0 0 1-.129.065c-.958.303-1.65 1.213-2.108 2.305-1.408 3.347.2 7.77-.291 11.538h9.938c-.185-2.536.26-6.777.256-9.138", fill: "#FF6671" }),
|
|
140
|
-
React__default.createElement("path", { d: "M5.354 9.745c-3.033 0-5.268 3.012-4.76 6.07.424 2.568 3.008 2.747 3.008 2.747l3.5-.003s2.586-.175 3.012-2.743c.507-3.06-1.728-6.07-4.76-6.07", fill: "#3A417C" }),
|
|
141
|
-
React__default.createElement("path", { d: "M9.073 22.755c-.688.367-2.288.79-3.72.79s-3.03-.423-3.72-.79c-.408-.218-.63-.475-.318-.893.43-.588.99-1.07 1.635-1.407.205-.118.393-.203.563-.283h.002c.503-.235.843-.415.928-1.207h1.822c.085.797.428.975.935 1.21.17.08.355.165.558.28.644.339 1.202.82 1.632 1.407.315.418.09.675-.317.893", fill: "#BF6666" }),
|
|
142
|
-
React__default.createElement("path", { d: "M31.332 22.342a5.04 5.04 0 0 0-1.712-1.477 9 9 0 0 1-.815-.498 3.43 3.43 0 0 1-3.373-.005c-.245.178-.547.325-.855.503a5 5 0 0 0-1.712 1.477c-.33.44-.095.71.33.938.722.385 2.4.827 3.902.827s3.18-.442 3.903-.827c.427-.228.662-.498.332-.938", fill: "#3A417C" }),
|
|
143
|
-
React__default.createElement("path", { d: "M28.232 9.496c-1.05-.28-3.25-.14-3.708 1.205a.46.46 0 0 1-.18.24c-1.035.682-1.353 1.643-.862 3.845h7.298c.738-4.148-1.278-4.95-2.548-5.29", fill: "#FFB45A" }),
|
|
144
|
-
React__default.createElement("path", { d: "M8.402 14.623a.51.51 0 0 1 .229.432 5.9 5.9 0 0 1-.278 1.793c-.262.697-.942 1.882-2.245 2.152a4 4 0 0 1-.757.09 4 4 0 0 1-.76-.09c-1.303-.27-1.98-1.455-2.243-2.152a5.9 5.9 0 0 1-.278-1.793.51.51 0 0 1 .229-.432c.99-.668 2.339-.862 3.052-.86.71-.002 2.06.192 3.051.86", fill: "#CE7A7A" }),
|
|
145
|
-
React__default.createElement("path", { d: "M30.781 14.786a1.2 1.2 0 0 0-.469-.053.45.45 0 0 1-.225-.04c-.956-.438-.852-1.208-.955-1.723-.407-2.036-2.745-1.94-3.408-1.24a.36.36 0 0 1-.19.11c-.87.175-1.371 1.948-1.469 2.68a.24.24 0 0 1-.232.209q-.18 0-.35.057c-.448.157-.572.675-.392 1.157a1.03 1.03 0 0 0 .948.725.255.255 0 0 1 .267.175 3.31 3.31 0 0 0 1.945 2.092 2.13 2.13 0 0 0 1.762 0 3.3 3.3 0 0 0 1.945-2.092.254.254 0 0 1 .267-.175 1.03 1.03 0 0 0 .947-.725c.181-.482.056-1-.391-1.157m-9.271 8.351a5.9 5.9 0 0 0-2.012-1.734c-.995-.573-1.723-.494-1.863-1.803l-2.213-.01c-.14 1.31-.844 1.24-1.839 1.814a5.9 5.9 0 0 0-2.011 1.734c-.388.515-.112.833.389 1.1.849.453 2.82.972 4.584.972s3.726-.519 4.575-.972c.5-.268.777-.586.39-1.1", fill: "#FF9797" }),
|
|
146
|
-
React__default.createElement("path", { d: "M21.51 23.137a5.9 5.9 0 0 0-2.012-1.734c-.995-.573-1.723-.494-1.863-1.803l-2.213-.01c-.14 1.31-.844 1.24-1.839 1.814a5.9 5.9 0 0 0-2.011 1.734c-.388.515-.112.833.389 1.1.849.453 2.82.972 4.584.972s3.726-.519 4.575-.972c.5-.268.777-.586.39-1.1", fill: "#FF9797" }),
|
|
147
|
-
React__default.createElement("path", { d: "M18.682 13.703a3.32 3.32 0 0 1 1.206 3.398 3.63 3.63 0 0 1-2.229 2.489 3.5 3.5 0 0 1-1.118.213 3.5 3.5 0 0 1-1.12-.213 3.63 3.63 0 0 1-2.228-2.49 8.5 8.5 0 0 1-.284-2.55c.137-2.045.975-3.52 2.095-3.245a.25.25 0 0 0 .182-.023c1.377-.755 1.672 1.03 3.496 2.421", fill: "#FFAEAE" }),
|
|
148
|
-
React__default.createElement("path", { d: "M21.12 24.238c-.85.452-2.81.972-4.575.972s-3.735-.52-4.585-.972c-.5-.268-.777-.585-.387-1.1a5.65 5.65 0 0 1 1.735-1.573 6.03 6.03 0 0 0 3.232.788 6.1 6.1 0 0 0 3.253-.775 5.7 5.7 0 0 1 1.717 1.56c.388.515.11.832-.39 1.1", fill: "#5C8EFF" }),
|
|
149
|
-
React__default.createElement("path", { d: "M9.073 22.755c-.688.368-2.288.79-3.72.79s-3.03-.422-3.72-.79c-.408-.217-.63-.475-.318-.892.43-.588.99-1.07 1.635-1.408.205-.117.393-.202.563-.282h.002c.557.318 1.192.47 1.833.44a3.47 3.47 0 0 0 1.852-.438c.17.08.355.165.558.28a4.8 4.8 0 0 1 1.632 1.408c.315.417.09.675-.317.892", fill: "#4856B5" })));
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
const SecurityIcon = () => {
|
|
153
|
-
return (React__default.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
154
|
-
React__default.createElement("path", { d: "M16 29.625c1.196 0 2.348-.639 3.327-1.31 5.423-3.715 6.606-5.558 6.995-6.163.436-.68 1.533-2.23 2.73-12.356.33-2.804-1.143-5.19-3.893-6.066a31.65 31.65 0 0 0-18.319 0c-2.75.874-4.222 3.262-3.892 6.067 1.196 10.125 2.293 11.674 2.73 12.355.388.605 1.572 2.448 6.994 6.163.98.671 2.13 1.31 3.328 1.31", fill: "#9DBA22" }),
|
|
155
|
-
React__default.createElement("path", { d: "M25.142 7.18c-2.902-1.307-6.095-1.645-9.143-1.645s-6.241.338-9.143 1.645c-.7.316-1.115.77-1.04 1.365.382 3.052 1.583 11.235 2.192 12.128 1.21 1.777 5.533 4.67 7.267 5.788a1.37 1.37 0 0 0 1.448 0c1.733-1.119 6.056-4.011 7.267-5.788.609-.893 1.81-9.075 2.193-12.128.074-.595-.34-1.049-1.041-1.365", fill: "#BFDF46" }),
|
|
156
|
-
React__default.createElement("path", { d: "M15.798 19.264c-1.522-.418-2.486-1.494-2.992-3.333a9.2 9.2 0 0 1-.177-4.156c.109-.644.715-1.192 1.434-.802q1.159.616 2.377 1.102c2.909 1.205 3.817 4.07 2.732 5.783-.578.912-1.922 1.806-3.375 1.406", fill: "#fff" }),
|
|
157
|
-
React__default.createElement("path", { d: "M20.667 20.13a.3.3 0 0 1-.095-.015c-2.152-.684-4.24-2.662-4.838-4.08a.313.313 0 0 1 .508-.35q.045.045.067.106c.461 1.092 2.311 3.048 4.451 3.728a.313.313 0 0 1-.094.61", fill: "#9DBA22" })));
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
const ServiceIcon = () => {
|
|
161
|
-
return (React__default.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
162
|
-
React__default.createElement("g", { clipPath: "url(#clip0_911_3434)" },
|
|
163
|
-
React__default.createElement("path", { d: "M30.466 17.553c.714-.548.988-1.39.611-1.881s-1.261-.444-1.975.104c-.714.549-.988 1.391-.611 1.882s1.261.444 1.975-.105", fill: "#563960" }),
|
|
164
|
-
React__default.createElement("path", { d: "M30.122 7.72a2.2 2.2 0 0 1-.438.37 2.355 2.355 0 0 1-2.787-3.79l.022-.017a2.356 2.356 0 0 1 3.203 3.437", fill: "#E8E2E2" }),
|
|
165
|
-
React__default.createElement("path", { d: "M16.474 3.996c-.544-.568-1.058-1.45-1.082-2.29l-1.395.7a1.394 1.394 0 1 0 1.247 2.491l1.159-.583.259-.14a3 3 0 0 1-.188-.178", fill: "#E5395E" }),
|
|
166
|
-
React__default.createElement("path", { d: "M18.934 2.175a1.39 1.39 0 0 1-.77 1.246l-1.472.738-.256.138a2.52 2.52 0 0 1-1.189-1.331 2 2 0 0 1-.042-1.165l.353-.191 1.358-.68a1.392 1.392 0 0 1 2.018 1.245", fill: "#F9AF2B" }),
|
|
167
|
-
React__default.createElement("path", { d: "M5.507 6.695c-.407.705-1.475.86-2.425.362L2.975 7a3 3 0 0 1-.358-.248c.005-.012 1.05-.635 1.355-1.157.258-.44.25-1.335.268-1.38q.136.058.265.132.132.078.257.168c.795.585 1.128 1.515.745 2.18", fill: "#F44A52" }),
|
|
168
|
-
React__default.createElement("path", { d: "M4.343 5.848a2.9 2.9 0 0 1-1.285 1.197L2.976 7a2.6 2.6 0 0 1-.398-.28c-.692-.587-.965-1.442-.605-2.067.378-.655 1.323-.833 2.215-.463a3 3 0 0 1 .51.28c.029.485-.095.967-.355 1.378", fill: "#E8E2E2" }),
|
|
169
|
-
React__default.createElement("path", { d: "M1.87 17.24a1.12 1.12 0 1 0 0-2.24 1.12 1.12 0 0 0 0 2.24", fill: "#F9AF2B" }),
|
|
170
|
-
React__default.createElement("path", { d: "M30.123 7.72a2.2 2.2 0 0 1-.437.37c0-1.013-1.5-3.058-3.153-3.418q.162-.206.365-.372l.023-.018c1.65.45 3.052 2.16 3.202 3.438", fill: "#C3C7C9" }),
|
|
171
|
-
React__default.createElement("path", { d: "M25.295 17.4v9.637c0 2.13-1.745 3.225-3.855 3.518-2.707.375-8.128.375-10.835 0-2.11-.29-3.855-1.387-3.855-3.517v-9.637a3.86 3.86 0 0 1 1.354-2.93c.229-.194.412-.436.537-.71h14.767c.12.275.303.518.534.71q.16.135.303.29a3.85 3.85 0 0 1 1.05 2.64", fill: "#1B89E5" }),
|
|
172
|
-
React__default.createElement("path", { d: "M16.568 17.151h-1.093a1.58 1.58 0 0 0-1.58 1.58v.272a.34.34 0 0 1-.34.34h-.272a1.58 1.58 0 0 0-1.58 1.58v1.095a1.58 1.58 0 0 0 1.58 1.58h.272a.34.34 0 0 1 .34.34v.272a1.58 1.58 0 0 0 1.58 1.58h1.093a1.58 1.58 0 0 0 1.58-1.58v-.273a.34.34 0 0 1 .34-.34h.274a1.58 1.58 0 0 0 1.58-1.58v-1.092a1.58 1.58 0 0 0-1.58-1.58h-.273a.34.34 0 0 1-.341-.34v-.274a1.58 1.58 0 0 0-1.58-1.58", fill: "#fff" }),
|
|
173
|
-
React__default.createElement("path", { d: "M24.137 13.762H7.907a.47.47 0 0 1-.471-.47v-2.7a2.583 2.583 0 0 1 2.552-2.554c3.017-.1 9.05-.1 12.067 0a2.583 2.583 0 0 1 2.553 2.552v2.7a.473.473 0 0 1-.471.472", fill: "#E8E2E2" })),
|
|
174
|
-
React__default.createElement("defs", null,
|
|
175
|
-
React__default.createElement("clipPath", { id: "clip0_911_3434" },
|
|
176
|
-
React__default.createElement("path", { fill: "#fff", d: "M0 0h32v32H0z" })))));
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
180
|
-
const getContents = (t) => {
|
|
181
|
-
return [
|
|
182
|
-
{
|
|
183
|
-
label: 'Personalized Experience',
|
|
184
|
-
description: 'Your name, gender, and date of birth help us provide tailored health advice and personalized care plans that fit your unique needs.',
|
|
185
|
-
icon: React__default.createElement(PersonalizeIcon, null),
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
label: 'Timely Health Updates',
|
|
189
|
-
description: 'We use your phone number and email to send important notifications, health reminders, and updates on new content to keep you informed.',
|
|
190
|
-
icon: React__default.createElement(HealthUpdateIcon, null),
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
label: 'Enhanced Security',
|
|
194
|
-
description: 'We use your phone number and email to send important notifications, health reminders, and updates on new content to keep you informed.',
|
|
195
|
-
icon: React__default.createElement(SecurityIcon, null),
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
label: 'Quick Customer Support',
|
|
199
|
-
description: 'We use your phone number and email to send important notifications, health reminders, and updates on new content to keep you informed.',
|
|
200
|
-
icon: React__default.createElement(CustomerSupportIcon, null),
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
label: 'Service Improvement',
|
|
204
|
-
description: 'We use your phone number and email to send important notifications, health reminders, and updates on new content to keep you informed.',
|
|
205
|
-
icon: React__default.createElement(ServiceIcon, null),
|
|
206
|
-
},
|
|
207
|
-
];
|
|
208
|
-
};
|
|
209
|
-
const CollectInfoTextPopup = () => {
|
|
210
|
-
const { openCollectInfoPopup, setOpenCollectInfoPopup } = useSSOState();
|
|
211
|
-
useTranslations();
|
|
212
|
-
const contents = getContents();
|
|
213
|
-
const [mobileDragOffset, setMobileDragOffset] = useState(0);
|
|
214
|
-
const dragStartYRef = useRef(0);
|
|
215
|
-
const mobileDragOffsetRef = useRef(mobileDragOffset);
|
|
216
|
-
mobileDragOffsetRef.current = mobileDragOffset;
|
|
217
|
-
const throttleSetMobileDragOffset = useMemo(() => {
|
|
218
|
-
return throttle(setMobileDragOffset, 70);
|
|
219
|
-
}, []);
|
|
220
|
-
useEffect(() => {
|
|
221
|
-
if (openCollectInfoPopup) {
|
|
222
|
-
setMobileDragOffset(0);
|
|
223
|
-
}
|
|
224
|
-
}, [openCollectInfoPopup]);
|
|
225
|
-
return (React__default.createElement(React__default.Fragment, null,
|
|
226
|
-
React__default.createElement("style", { key: mobileDragOffset }, `
|
|
227
|
-
.collect-info-text-popup .mantine-Modal-inner {
|
|
228
|
-
transform: translateY(${Math.round(mobileDragOffset)}px);
|
|
229
|
-
}
|
|
230
|
-
`),
|
|
231
|
-
React__default.createElement(Modal, { opened: openCollectInfoPopup, onClose: () => setOpenCollectInfoPopup(false), withCloseButton: false, zIndex: 400, styles: (theme) => ({
|
|
232
|
-
body: {
|
|
233
|
-
padding: '32px 24px',
|
|
234
|
-
position: 'relative',
|
|
235
|
-
background: 'linear-gradient(180deg, #91CAFF 0%, #CFE8FF 100px, #FFFFFF 200px)',
|
|
236
|
-
[theme.fn.smallerThan('sm')]: {
|
|
237
|
-
height: '100%',
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
content: {
|
|
241
|
-
[theme.fn.smallerThan('sm')]: {
|
|
242
|
-
width: '100%',
|
|
243
|
-
height: '100%',
|
|
244
|
-
borderBottomLeftRadius: 0,
|
|
245
|
-
borderBottomRightRadius: 0,
|
|
246
|
-
maxWidth: '100%',
|
|
247
|
-
maxHeight: '100%',
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
inner: {
|
|
251
|
-
[theme.fn.smallerThan('sm')]: {
|
|
252
|
-
padding: 0,
|
|
253
|
-
left: 0,
|
|
254
|
-
right: 0,
|
|
255
|
-
top: 120,
|
|
256
|
-
// transform: `translateY(${Math.round(mobileDragOffset)}px)`,
|
|
257
|
-
display: 'block',
|
|
258
|
-
transition: 'transform 70ms',
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
}), className: "collect-info-text-popup" },
|
|
262
|
-
React__default.createElement(Box, { sx: (theme) => ({
|
|
263
|
-
[theme.fn.largerThan('sm')]: {
|
|
264
|
-
display: 'none',
|
|
265
|
-
},
|
|
266
|
-
padding: 8,
|
|
267
|
-
width: '100%',
|
|
268
|
-
cursor: 'grab',
|
|
269
|
-
display: 'flex',
|
|
270
|
-
justifyContent: 'center',
|
|
271
|
-
position: 'absolute',
|
|
272
|
-
top: 0,
|
|
273
|
-
left: 0,
|
|
274
|
-
}), draggable: true, onDrag: (e) => {
|
|
275
|
-
if (e.clientY <= 5)
|
|
276
|
-
return;
|
|
277
|
-
throttleSetMobileDragOffset(e.clientY - dragStartYRef.current);
|
|
278
|
-
}, onDragStart: (e) => {
|
|
279
|
-
dragStartYRef.current = e.clientY;
|
|
280
|
-
}, onDragEnd: (e) => {
|
|
281
|
-
if (e.clientY - dragStartYRef.current > 100) {
|
|
282
|
-
setMobileDragOffset(window.innerHeight);
|
|
283
|
-
setTimeout(() => {
|
|
284
|
-
setOpenCollectInfoPopup(false);
|
|
285
|
-
}, 100);
|
|
286
|
-
}
|
|
287
|
-
else {
|
|
288
|
-
throttleSetMobileDragOffset(0);
|
|
289
|
-
}
|
|
290
|
-
}, onTouchStart: (e) => {
|
|
291
|
-
dragStartYRef.current = e.touches[0].clientY;
|
|
292
|
-
}, onTouchMove: (e) => {
|
|
293
|
-
if (e.touches[0].clientY < 0)
|
|
294
|
-
return;
|
|
295
|
-
throttleSetMobileDragOffset(e.touches[0].clientY - dragStartYRef.current);
|
|
296
|
-
}, onTouchEnd: (e) => {
|
|
297
|
-
if (e.changedTouches[0].clientY - dragStartYRef.current > 100) {
|
|
298
|
-
setMobileDragOffset(window.innerHeight);
|
|
299
|
-
setTimeout(() => {
|
|
300
|
-
setOpenCollectInfoPopup(false);
|
|
301
|
-
}, 100);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
throttleSetMobileDragOffset(0);
|
|
305
|
-
}
|
|
306
|
-
} },
|
|
307
|
-
React__default.createElement(Box, { sx: {
|
|
308
|
-
border: '1.5px solid #ADB3BC',
|
|
309
|
-
background: 'gray',
|
|
310
|
-
borderRadius: 3,
|
|
311
|
-
width: 44,
|
|
312
|
-
} })),
|
|
313
|
-
React__default.createElement("div", { style: {
|
|
314
|
-
height: 40,
|
|
315
|
-
} },
|
|
316
|
-
React__default.createElement(Button, { variant: "white", sx: (theme) => ({
|
|
317
|
-
width: 40,
|
|
318
|
-
height: 40,
|
|
319
|
-
padding: 8,
|
|
320
|
-
background: 'white',
|
|
321
|
-
borderRadius: '100%',
|
|
322
|
-
[theme.fn.smallerThan('sm')]: {
|
|
323
|
-
display: 'none',
|
|
324
|
-
},
|
|
325
|
-
}), onClick: () => setOpenCollectInfoPopup(false) },
|
|
326
|
-
React__default.createElement(ChevronLeft, null))),
|
|
327
|
-
React__default.createElement(BackgroundHeader$1, null),
|
|
328
|
-
React__default.createElement(Stack, { pos: "relative", mt: 100, spacing: 8, style: {
|
|
329
|
-
zIndex: 1,
|
|
330
|
-
} },
|
|
331
|
-
React__default.createElement(Text, { size: "h4" }, "Why We Need Your Information"),
|
|
332
|
-
React__default.createElement(Accordion, { styles: {
|
|
333
|
-
item: {
|
|
334
|
-
borderBottomColor: '#E4E8EC',
|
|
335
|
-
paddingBottom: 16,
|
|
336
|
-
marginTop: 16,
|
|
337
|
-
},
|
|
338
|
-
control: {
|
|
339
|
-
padding: 0,
|
|
340
|
-
},
|
|
341
|
-
content: {
|
|
342
|
-
padding: 0,
|
|
343
|
-
marginTop: 8,
|
|
344
|
-
},
|
|
345
|
-
} }, contents.map((item, index) => (React__default.createElement(Accordion.Item, { key: index, value: item.label },
|
|
346
|
-
React__default.createElement(Accordion.Control, { icon: item.icon },
|
|
347
|
-
React__default.createElement(Text, { size: "s3", weight: "semiBold" }, item.label)),
|
|
348
|
-
React__default.createElement(Accordion.Panel, null,
|
|
349
|
-
React__default.createElement(Text, { size: "p3" }, item.description))))))))));
|
|
350
|
-
};
|
|
351
|
-
|
|
352
49
|
const ConfirmClosePopup = ({ opened, onCancel, onClose, }) => {
|
|
353
50
|
return (React__default.createElement(Modal, { opened: opened, onClose: () => onCancel(), withCloseButton: false, zIndex: 400, styles: (theme) => ({
|
|
354
51
|
body: {
|
|
@@ -423,6 +120,23 @@ const BackgroundHeader = () => (React__default.createElement("svg", { width: "29
|
|
|
423
120
|
React__default.createElement("stop", { stopColor: "#fff", stopOpacity: "0" }),
|
|
424
121
|
React__default.createElement("stop", { offset: "1", stopColor: "#fff" })))));
|
|
425
122
|
|
|
123
|
+
const SSOStateContext = createContext({
|
|
124
|
+
locale: LOCALE.Vietnam,
|
|
125
|
+
onClose: () => false,
|
|
126
|
+
});
|
|
127
|
+
const SSOStateProvider = ({ children, locale = LOCALE.Vietnam, onClose, }) => {
|
|
128
|
+
const [openCollectInfoPopup, setOpenCollectInfoPopup] = React__default.useState(false);
|
|
129
|
+
return (React__default.createElement(SSOStateContext.Provider, { value: {
|
|
130
|
+
locale,
|
|
131
|
+
onClose,
|
|
132
|
+
openCollectInfoPopup,
|
|
133
|
+
setOpenCollectInfoPopup,
|
|
134
|
+
} }, children));
|
|
135
|
+
};
|
|
136
|
+
const useSSOState = () => {
|
|
137
|
+
return React__default.useContext(SSOStateContext);
|
|
138
|
+
};
|
|
139
|
+
|
|
426
140
|
const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
427
141
|
var _a;
|
|
428
142
|
const { steps, goBack } = useSSOSteps();
|
|
@@ -496,8 +210,7 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
496
210
|
React__default.createElement(ConfirmClosePopup, { opened: closeConfirmOpen, onCancel: () => setCloseConfirmOpen(false), onClose: () => {
|
|
497
211
|
setCloseConfirmOpen(false);
|
|
498
212
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
499
|
-
} })
|
|
500
|
-
React__default.createElement(CollectInfoTextPopup, null)));
|
|
213
|
+
} })));
|
|
501
214
|
};
|
|
502
215
|
|
|
503
216
|
const loginByEmailPassword = (email, password) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -539,20 +252,111 @@ const verifyByEmailOTP = (email, otpCode) => __awaiter(void 0, void 0, void 0, f
|
|
|
539
252
|
});
|
|
540
253
|
});
|
|
541
254
|
|
|
255
|
+
// const SSO_ERR_CODE_MOBILE = [
|
|
256
|
+
// "Some Things Went Wrong" => "SSO_ERR_000",
|
|
257
|
+
// "The email must be a valid email address." => "SSO_ERR_001",
|
|
258
|
+
// "The email field is required." => "SSO_ERR_002",
|
|
259
|
+
// "This member is not exist yet" => "SSO_ERR_003",
|
|
260
|
+
// "The email may not be greater than 255 characters." => "SSO_ERR_004",
|
|
261
|
+
// "The phone number field is required." => "SSO_ERR_005",
|
|
262
|
+
// "The phone number must be at least 9 characters." => "SSO_ERR_006",
|
|
263
|
+
// "This phone number is already linked to your profile" => "SSO_ERR_007",
|
|
264
|
+
// "The otp code field is required." => "SSO_ERR_008",
|
|
265
|
+
// "User don't update" => "SSO_ERR_009",
|
|
266
|
+
// "Verify OTP failed" => "SSO_ERR_010",
|
|
267
|
+
// "The name must be a string." => "SSO_ERR_011",
|
|
268
|
+
// "The name may not be greater than 100 characters." => "SSO_ERR_012",
|
|
269
|
+
// "The username must be a string." => "SSO_ERR_013",
|
|
270
|
+
// "The username has already been taken." => "SSO_ERR_014",
|
|
271
|
+
// "The username may not be greater than 20 characters." => "SSO_ERR_015",
|
|
272
|
+
// "The birthday does not match the format Y-m-d." => "SSO_ERR_016",
|
|
273
|
+
// "The avatar field is required." => "SSO_ERR_017",
|
|
274
|
+
// "The avatar must be an image." => "SSO_ERR_018",
|
|
275
|
+
// "The avatar must be a file of type: jpeg, jpg, png, gif." => "SSO_ERR_019",
|
|
276
|
+
// "The avatar may not be greater than 10240 kilobytes." => "SSO_ERR_020",
|
|
277
|
+
// "The confirm-password field is required." => "SSO_ERR_021",
|
|
278
|
+
// "The confirm-password must be at least 8 characters." => "SSO_ERR_022",
|
|
279
|
+
// "The confirm-password format is invalid." => "SSO_ERR_023",
|
|
280
|
+
// "The confirm-password may not be greater than 50 characters." => "SSO_ERR_024",
|
|
281
|
+
// "The new-password field is required." => "SSO_ERR_025",
|
|
282
|
+
// "The new-password must be at least 8 characters." => "SSO_ERR_026",
|
|
283
|
+
// "The new-password format is invalid." => "SSO_ERR_027",
|
|
284
|
+
// "The new-password may not be greater than 50 characters." => "SSO_ERR_028",
|
|
285
|
+
// "Your password doesn\'t match. Please try again." => "SSO_ERR_029",
|
|
286
|
+
// "Your new password must be different from the current one" => "SSO_ERR_030",
|
|
287
|
+
// "Mật khẩu mới không được trùng với mật khẩu cũ đang dùng" => "SSO_ERR_030",
|
|
288
|
+
// "The new password field is required." => "SSO_ERR_031",
|
|
289
|
+
// "The confirm new password field is required." => "SSO_ERR_032",
|
|
290
|
+
// "The new password and confirm new password must match." => "SSO_ERR_033",
|
|
291
|
+
// "The confirm new password must be at least 8 characters." => "SSO_ERR_034",
|
|
292
|
+
// "The new password must be at least 8 characters." => "SSO_ERR_035",
|
|
293
|
+
// "The confirm new password may not be greater than 50 characters." => "SSO_ERR_036",
|
|
294
|
+
// "The new password may not be greater than 50 characters." => "SSO_ERR_037",
|
|
295
|
+
// "The current password is wrong!" => "SSO_ERR_038",
|
|
296
|
+
// "Mật khẩu bạn vừa nhập không chính xác!" => "SSO_ERR_038",
|
|
297
|
+
// "The password field is required." => "SSO_ERR_039",
|
|
298
|
+
// "Token Signature could not be verified." => "SSO_ERR_040",
|
|
299
|
+
// "Token has expired" => "SSO_ERR_041",
|
|
300
|
+
// "The refresh token field is required." => "SSO_ERR_042",
|
|
301
|
+
// "The area code field is required." => "SSO_ERR_043",
|
|
302
|
+
// "The email has already been taken." => "SSO_ERR_044",
|
|
303
|
+
// "Verify Email OTP Code Fail" => "SSO_ERR_045",
|
|
304
|
+
// "The code field is required." => "SSO_ERR_046",
|
|
305
|
+
// "The phone number has already been taken." => "SSO_ERR_047",
|
|
306
|
+
// "The Phone is not match phone number that you registered" => "SSO_ERR_048",
|
|
307
|
+
// "User was exist" => "SSO_ERR_049",
|
|
308
|
+
// "The website id field is required." => "SSO_ERR_050",
|
|
309
|
+
// "The name field is required." => "SSO_ERR_051",
|
|
310
|
+
// "The birthday field is required." => "SSO_ERR_052",
|
|
311
|
+
// "The gender field is required." => "SSO_ERR_053",
|
|
312
|
+
// "The provider field is required." => "SSO_ERR_054",
|
|
313
|
+
// "The token field is required." => "SSO_ERR_055",
|
|
314
|
+
// "Code has been sent to your email" => "SSO_ERR_056",
|
|
315
|
+
// "The email does not exist." => "SSO_ERR_057",
|
|
316
|
+
// "You are verifying a phone number that is not yours" => "SSO_ERR_058",
|
|
317
|
+
// "The selected phone number is invalid." => "SSO_ERR_059",
|
|
318
|
+
// "Phone does not member" => "SSO_ERR_60",
|
|
319
|
+
// "This phone number is already linked to your profile" => "SSO_ERR_61",
|
|
320
|
+
// "Error ZNS with missing msg_id" => "SSO_ERR_62",
|
|
321
|
+
// "OTP verify missing" => "SSO_ERR_63",
|
|
322
|
+
// "The expire at must be a date after 5 mins." => "SSO_ERR_64",
|
|
323
|
+
// "The selected code is invalid." => "SSO_ERR_65",
|
|
324
|
+
// "Error when update ZNS tracking" => "SSO_ERR_66",
|
|
325
|
+
// "Sent Zalo OTP failed" => "SSO_ERR_67",
|
|
326
|
+
// "The expire at must be a date after 10 mins." => "SSO_ERR_68",
|
|
327
|
+
// "The code must be at least 6 characters." => "SSO_ERR_69",
|
|
328
|
+
// "The code may not be greater than 10 characters." => "SSO_ERR_70",
|
|
329
|
+
// "You’ve reached the limit of 3 verification attempts in 1 hour. Please wait and try again later." => "SSO_ERR_71",
|
|
330
|
+
// "You’ve reached the limit of 5 verification attempts today. Please try again tomorrow." => "SSO_ERR_72",
|
|
331
|
+
// "The password must be at least 8 characters." => "SSO_ERR_73",
|
|
332
|
+
// "The password format is invalid." => "SSO_ERR_74",
|
|
333
|
+
// "The confirm-password format is invalid." => "SSO_ERR_75",
|
|
334
|
+
// "The password must contain at least one number." => "SSO_ERR_76",
|
|
335
|
+
// "The confirm-password must contain at least one number." => "SSO_ERR_77",
|
|
336
|
+
// ]
|
|
337
|
+
const getErrorTextFromCode = (t, code) => {
|
|
338
|
+
const numberCode = code === null || code === void 0 ? void 0 : code.split('_')[2];
|
|
339
|
+
if (typeof numberCode !== 'string') {
|
|
340
|
+
return t('ssov2.error.api');
|
|
341
|
+
}
|
|
342
|
+
return t(`ssov2.error.api.${numberCode}`) || t('ssov2.error.api');
|
|
343
|
+
};
|
|
344
|
+
|
|
542
345
|
const SSOEmailScreen = ({ hidden, }) => {
|
|
346
|
+
const { t } = useTranslations();
|
|
543
347
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
544
348
|
const { addStep, goNext, setShareData } = useSSOSteps();
|
|
545
349
|
return (React__default.createElement("form", { style: {
|
|
546
350
|
display: hidden ? 'none' : 'block',
|
|
547
351
|
}, onSubmit: (e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
548
|
-
var _a, _b, _c
|
|
352
|
+
var _a, _b, _c;
|
|
549
353
|
e.preventDefault();
|
|
550
354
|
const email = e.currentTarget.email.value;
|
|
551
355
|
const existRes = yield checkUserExist({ email });
|
|
552
356
|
if ((existRes === null || existRes === void 0 ? void 0 : existRes._status) === 1) {
|
|
553
357
|
const provider = (_a = existRes._data) === null || _a === void 0 ? void 0 : _a.provider;
|
|
554
358
|
if (provider === 'google' || provider === 'facebook') {
|
|
555
|
-
setErrMsg('
|
|
359
|
+
setErrMsg(t('ssov2.email.alreadyUsed'));
|
|
556
360
|
return;
|
|
557
361
|
}
|
|
558
362
|
if ((_b = existRes._data) === null || _b === void 0 ? void 0 : _b.is_pass) {
|
|
@@ -582,7 +386,7 @@ const SSOEmailScreen = ({ hidden, }) => {
|
|
|
582
386
|
res = yield resendEmailOTP(email);
|
|
583
387
|
}
|
|
584
388
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
585
|
-
setErrMsg((
|
|
389
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
586
390
|
return;
|
|
587
391
|
}
|
|
588
392
|
// go to register screen
|
|
@@ -598,14 +402,14 @@ const SSOEmailScreen = ({ hidden, }) => {
|
|
|
598
402
|
}
|
|
599
403
|
}
|
|
600
404
|
else {
|
|
601
|
-
setErrMsg((
|
|
405
|
+
setErrMsg(getErrorTextFromCode(t, existRes === null || existRes === void 0 ? void 0 : existRes.code));
|
|
602
406
|
}
|
|
603
407
|
}) },
|
|
604
408
|
React__default.createElement(Stack, { spacing: 8 },
|
|
605
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" },
|
|
606
|
-
React__default.createElement(Text, { size: "p4" },
|
|
409
|
+
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.email.title')),
|
|
410
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.email.description'))),
|
|
607
411
|
React__default.createElement(Input, { name: "email", placeholder: "Email c\u1EE7a b\u1EA1n", error: errMsg || undefined, type: "email", required: true, mt: 24 }),
|
|
608
|
-
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16 },
|
|
412
|
+
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16 }, t('ssov2.email.button'))));
|
|
609
413
|
};
|
|
610
414
|
|
|
611
415
|
const splitPhone = (phone) => {
|
|
@@ -777,20 +581,6 @@ const verifyUpdatePhoneZaloOTP = (phone, areaCode, otpCode) => __awaiter(void 0,
|
|
|
777
581
|
});
|
|
778
582
|
});
|
|
779
583
|
|
|
780
|
-
const CollectInfoText = () => {
|
|
781
|
-
const { setOpenCollectInfoPopup } = useSSOState();
|
|
782
|
-
return (React__default.createElement(Text, { size: "p4", onClick: () => {
|
|
783
|
-
setOpenCollectInfoPopup(true);
|
|
784
|
-
}, color: "blue.6", style: {
|
|
785
|
-
cursor: 'pointer',
|
|
786
|
-
} },
|
|
787
|
-
React__default.createElement(Info, { size: 16, color: '#2D87F3', style: {
|
|
788
|
-
verticalAlign: 'sub',
|
|
789
|
-
} }),
|
|
790
|
-
' ',
|
|
791
|
-
"Why We Need Your Information?"));
|
|
792
|
-
};
|
|
793
|
-
|
|
794
584
|
const MailIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
795
585
|
React__default.createElement("g", { clipPath: "url(#clip0_869_25628)" },
|
|
796
586
|
React__default.createElement("rect", { width: "24", height: "24", rx: "12", fill: "#00B16A" }),
|
|
@@ -1100,7 +890,6 @@ const SSOFirstScreen = ({ hidden }) => {
|
|
|
1100
890
|
marginTop: 'auto',
|
|
1101
891
|
},
|
|
1102
892
|
}) },
|
|
1103
|
-
React__default.createElement(CollectInfoText, null),
|
|
1104
893
|
React__default.createElement(Text, { size: "p5", color: "gray.6" },
|
|
1105
894
|
"By tapping continue, I confirm that I have read, understand and agree to the",
|
|
1106
895
|
' ',
|
|
@@ -1144,6 +933,7 @@ const verifyUpdateEmailOTP = (otpCode) => __awaiter(void 0, void 0, void 0, func
|
|
|
1144
933
|
});
|
|
1145
934
|
|
|
1146
935
|
const SSOOTPScreen = ({ hidden, index, }) => {
|
|
936
|
+
const { t } = useTranslations();
|
|
1147
937
|
const { onClose } = useSSOState();
|
|
1148
938
|
const { steps, setSteps, addStep, goNext } = useSSOSteps();
|
|
1149
939
|
const [otp, setOtp] = React__default.useState('');
|
|
@@ -1182,7 +972,6 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1182
972
|
setupResendTimer();
|
|
1183
973
|
};
|
|
1184
974
|
const submitOtp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1185
|
-
var _a, _b, _c, _d, _e;
|
|
1186
975
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1187
976
|
// submit otp code logic here
|
|
1188
977
|
if (isUpdatePhone) {
|
|
@@ -1198,7 +987,7 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1198
987
|
const userInfo = yield getUserInfo();
|
|
1199
988
|
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo._status) !== 1) {
|
|
1200
989
|
// log error
|
|
1201
|
-
setError((
|
|
990
|
+
setError(getErrorTextFromCode(t, userInfo === null || userInfo === void 0 ? void 0 : userInfo.code));
|
|
1202
991
|
return;
|
|
1203
992
|
}
|
|
1204
993
|
addStep({
|
|
@@ -1218,7 +1007,7 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1218
1007
|
}
|
|
1219
1008
|
else {
|
|
1220
1009
|
// log error
|
|
1221
|
-
setError((
|
|
1010
|
+
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1222
1011
|
}
|
|
1223
1012
|
}
|
|
1224
1013
|
else {
|
|
@@ -1227,7 +1016,7 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1227
1016
|
}
|
|
1228
1017
|
else {
|
|
1229
1018
|
// log error
|
|
1230
|
-
setError((
|
|
1019
|
+
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1231
1020
|
}
|
|
1232
1021
|
return;
|
|
1233
1022
|
}
|
|
@@ -1247,7 +1036,7 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1247
1036
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
1248
1037
|
setOtp('');
|
|
1249
1038
|
// log error
|
|
1250
|
-
setError((
|
|
1039
|
+
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1251
1040
|
return;
|
|
1252
1041
|
}
|
|
1253
1042
|
handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
|
|
@@ -1265,7 +1054,7 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1265
1054
|
const userInfo = yield getUserInfo();
|
|
1266
1055
|
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo._status) !== 1) {
|
|
1267
1056
|
// log error
|
|
1268
|
-
setError((
|
|
1057
|
+
setError(getErrorTextFromCode(t, userInfo === null || userInfo === void 0 ? void 0 : userInfo.code));
|
|
1269
1058
|
return;
|
|
1270
1059
|
}
|
|
1271
1060
|
addStep({
|
|
@@ -1324,40 +1113,40 @@ const SSOOTPScreen = ({ hidden, index, }) => {
|
|
|
1324
1113
|
submitOtp();
|
|
1325
1114
|
} },
|
|
1326
1115
|
React__default.createElement(Stack, { spacing: 8 },
|
|
1327
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, isEmail ? '
|
|
1328
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1329
|
-
"
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
React__default.createElement("b", null, "10 mins"))))),
|
|
1116
|
+
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, isEmail ? t('ssov2.otp.email.title') : t('ssov2.otp.phone.title')),
|
|
1117
|
+
React__default.createElement(Text, { size: "p4" },
|
|
1118
|
+
React__default.createElement("span", { dangerouslySetInnerHTML: {
|
|
1119
|
+
__html: t(isEmail
|
|
1120
|
+
? 'ssov2.otp.email.description'
|
|
1121
|
+
: 'ssov2.otp.phone.description', {
|
|
1122
|
+
email,
|
|
1123
|
+
phone,
|
|
1124
|
+
method: otpType === 'phone-sms' ? 'SMS' : 'Zalo',
|
|
1125
|
+
}),
|
|
1126
|
+
} }))),
|
|
1339
1127
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
1340
1128
|
React__default.createElement(Input.Wrapper, { error: error },
|
|
1341
1129
|
React__default.createElement(OTP, { value: otp, onChange: (otp) => setOtp(String(otp)) })),
|
|
1342
1130
|
React__default.createElement(Group, { spacing: 8, align: "center", style: {
|
|
1343
1131
|
height: 40,
|
|
1344
1132
|
} },
|
|
1345
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1133
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.otp.resendQuestion')),
|
|
1346
1134
|
React__default.createElement(Text, { style: {
|
|
1347
1135
|
pointerEvents: resendTime > 0 ? 'none' : 'auto',
|
|
1348
1136
|
cursor: resendTime > 0 ? 'not-allowed' : 'pointer',
|
|
1349
|
-
}, size: "s4", color: "blue.6", onClick: () => sendOTPCode(true) },
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true },
|
|
1354
|
-
!isEmail && (React__default.createElement(Button, { size: "lg", variant: "tertiary", mt: 12, onClick: swapZaloSms, fullWidth: true },
|
|
1355
|
-
|
|
1356
|
-
|
|
1137
|
+
}, size: "s4", color: "blue.6", onClick: () => sendOTPCode(true) }, (t('ssov2.otp.resendText'),
|
|
1138
|
+
{
|
|
1139
|
+
count: resendTime,
|
|
1140
|
+
})))),
|
|
1141
|
+
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true }, t('ssov2.button.continue')),
|
|
1142
|
+
!isEmail && (React__default.createElement(Button, { size: "lg", variant: "tertiary", mt: 12, onClick: swapZaloSms, fullWidth: true }, t('ssov2.otp.sendVia', {
|
|
1143
|
+
method: otpType === 'phone-sms' ? 'Zalo' : 'SMS',
|
|
1144
|
+
})))));
|
|
1357
1145
|
};
|
|
1358
1146
|
|
|
1359
1147
|
const SSOPasswordScreen = ({ hidden, index, }) => {
|
|
1360
1148
|
var _a, _b;
|
|
1149
|
+
const { t } = useTranslations();
|
|
1361
1150
|
const { onClose } = useSSOState();
|
|
1362
1151
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
1363
1152
|
const { steps, addStep, goNext, setShareData } = useSSOSteps();
|
|
@@ -1365,7 +1154,7 @@ const SSOPasswordScreen = ({ hidden, index, }) => {
|
|
|
1365
1154
|
const phone = (_a = thisStep === null || thisStep === void 0 ? void 0 : thisStep.config) === null || _a === void 0 ? void 0 : _a.phone;
|
|
1366
1155
|
const email = (_b = thisStep === null || thisStep === void 0 ? void 0 : thisStep.config) === null || _b === void 0 ? void 0 : _b.email;
|
|
1367
1156
|
const resetPassword = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1368
|
-
var _c
|
|
1157
|
+
var _c;
|
|
1369
1158
|
if (phone) {
|
|
1370
1159
|
addStep({
|
|
1371
1160
|
type: SSOStepTypeType.FORGOT_PASSWORD_PHONE,
|
|
@@ -1382,7 +1171,7 @@ const SSOPasswordScreen = ({ hidden, index, }) => {
|
|
|
1382
1171
|
res = yield resendEmailOTP(email);
|
|
1383
1172
|
}
|
|
1384
1173
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
1385
|
-
setErrMsg((
|
|
1174
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1386
1175
|
return;
|
|
1387
1176
|
}
|
|
1388
1177
|
addStep({
|
|
@@ -1398,11 +1187,11 @@ const SSOPasswordScreen = ({ hidden, index, }) => {
|
|
|
1398
1187
|
goNext();
|
|
1399
1188
|
});
|
|
1400
1189
|
const onAuthSuccess = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1401
|
-
var
|
|
1190
|
+
var _d, _e;
|
|
1402
1191
|
handleAuthSuccess(data);
|
|
1403
1192
|
if (!phone && !!email) {
|
|
1404
1193
|
const userInfo = yield getUserInfo();
|
|
1405
|
-
if (!((
|
|
1194
|
+
if (!((_d = userInfo._data) === null || _d === void 0 ? void 0 : _d.phone_verified_at) || !((_e = userInfo._data) === null || _e === void 0 ? void 0 : _e.phone)) {
|
|
1406
1195
|
setShareData({
|
|
1407
1196
|
authMethod: 'mail',
|
|
1408
1197
|
authFlow: 'verify-phone',
|
|
@@ -1425,59 +1214,58 @@ const SSOPasswordScreen = ({ hidden, index, }) => {
|
|
|
1425
1214
|
if (phone) {
|
|
1426
1215
|
loginByPhonePassword(phone, password)
|
|
1427
1216
|
.then((res) => {
|
|
1428
|
-
var _a;
|
|
1429
1217
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
1430
1218
|
onAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
|
|
1431
1219
|
}
|
|
1432
1220
|
else {
|
|
1433
|
-
setErrMsg((
|
|
1221
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1434
1222
|
}
|
|
1435
1223
|
})
|
|
1436
1224
|
.catch(() => {
|
|
1437
|
-
setErrMsg(
|
|
1225
|
+
setErrMsg(getErrorTextFromCode(t, ''));
|
|
1438
1226
|
});
|
|
1439
1227
|
}
|
|
1440
1228
|
else {
|
|
1441
1229
|
loginByEmailPassword(email, password)
|
|
1442
1230
|
.then((res) => {
|
|
1443
|
-
var _a;
|
|
1444
1231
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
1445
1232
|
onAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
|
|
1446
1233
|
}
|
|
1447
1234
|
else {
|
|
1448
|
-
setErrMsg((
|
|
1235
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1449
1236
|
}
|
|
1450
1237
|
})
|
|
1451
1238
|
.catch(() => {
|
|
1452
|
-
setErrMsg(
|
|
1239
|
+
setErrMsg(getErrorTextFromCode(t, ''));
|
|
1453
1240
|
});
|
|
1454
1241
|
}
|
|
1455
1242
|
} },
|
|
1456
1243
|
React__default.createElement(Stack, { spacing: 8 },
|
|
1457
1244
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" },
|
|
1458
|
-
|
|
1245
|
+
t('ssov2.password.title1'),
|
|
1459
1246
|
React__default.createElement("br", null),
|
|
1460
|
-
|
|
1461
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1247
|
+
t('ssov2.password.title2')),
|
|
1248
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.password.description'))),
|
|
1462
1249
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
1463
1250
|
React__default.createElement(PasswordInput, { name: "password", placeholder: "Nh\u1EADp m\u1EADt kh\u1EA9u", error: errMsg || undefined }),
|
|
1464
1251
|
React__default.createElement(Group, { spacing: 8, align: "center", style: {
|
|
1465
1252
|
height: 40,
|
|
1466
1253
|
} },
|
|
1467
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1254
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.password.forgotPassword')),
|
|
1468
1255
|
React__default.createElement(Text, { size: "s4", color: "blue.6", style: {
|
|
1469
1256
|
cursor: 'pointer',
|
|
1470
|
-
}, onClick: resetPassword },
|
|
1471
|
-
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true },
|
|
1257
|
+
}, onClick: resetPassword }, t('ssov2.password.reset')))),
|
|
1258
|
+
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true }, t('ssov2.password.signIn'))));
|
|
1472
1259
|
};
|
|
1473
1260
|
|
|
1474
1261
|
const SSOPasswordForgotPhone = ({ hidden, }) => {
|
|
1262
|
+
const { t } = useTranslations();
|
|
1475
1263
|
const [phone, setPhone] = React__default.useState('');
|
|
1476
1264
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
1477
1265
|
const { locale } = useSSOState();
|
|
1478
1266
|
const { addStep, goNext, setShareData } = useSSOSteps();
|
|
1479
1267
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1480
|
-
var _a
|
|
1268
|
+
var _a;
|
|
1481
1269
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1482
1270
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1483
1271
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
@@ -1492,7 +1280,7 @@ const SSOPasswordForgotPhone = ({ hidden, }) => {
|
|
|
1492
1280
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
1493
1281
|
}
|
|
1494
1282
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
1495
|
-
setErrMsg((
|
|
1283
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1496
1284
|
return;
|
|
1497
1285
|
}
|
|
1498
1286
|
setShareData((a) => (Object.assign(Object.assign({}, a), { authFlow: 'register' })));
|
|
@@ -1507,11 +1295,11 @@ const SSOPasswordForgotPhone = ({ hidden, }) => {
|
|
|
1507
1295
|
goNext();
|
|
1508
1296
|
}
|
|
1509
1297
|
else {
|
|
1510
|
-
setErrMsg((
|
|
1298
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
1511
1299
|
}
|
|
1512
1300
|
});
|
|
1513
1301
|
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1514
|
-
var
|
|
1302
|
+
var _b;
|
|
1515
1303
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1516
1304
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1517
1305
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
@@ -1519,14 +1307,14 @@ const SSOPasswordForgotPhone = ({ hidden, }) => {
|
|
|
1519
1307
|
authMethod: 'phone',
|
|
1520
1308
|
});
|
|
1521
1309
|
let res;
|
|
1522
|
-
if (!((
|
|
1310
|
+
if (!((_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider)) {
|
|
1523
1311
|
res = yield registerBySendPhoneOTP(phoneNumber, areaCode);
|
|
1524
1312
|
}
|
|
1525
1313
|
else {
|
|
1526
1314
|
res = yield resendPhoneOTP(phoneNumber, areaCode);
|
|
1527
1315
|
}
|
|
1528
1316
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
1529
|
-
setErrMsg((
|
|
1317
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1530
1318
|
return;
|
|
1531
1319
|
}
|
|
1532
1320
|
setShareData((a) => (Object.assign(Object.assign({}, a), { authFlow: 'register' })));
|
|
@@ -1541,20 +1329,20 @@ const SSOPasswordForgotPhone = ({ hidden, }) => {
|
|
|
1541
1329
|
goNext();
|
|
1542
1330
|
}
|
|
1543
1331
|
else {
|
|
1544
|
-
setErrMsg((
|
|
1332
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
1545
1333
|
}
|
|
1546
1334
|
});
|
|
1547
1335
|
return (React__default.createElement("div", { style: {
|
|
1548
1336
|
display: hidden ? 'none' : 'block',
|
|
1549
1337
|
} },
|
|
1550
1338
|
React__default.createElement(Stack, { spacing: 8 },
|
|
1551
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" },
|
|
1552
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1339
|
+
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.resetPassword.title')),
|
|
1340
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.resetPassword.description'))),
|
|
1553
1341
|
React__default.createElement(Stack, { mt: 24, spacing: 16 },
|
|
1554
1342
|
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => setPhone(value), isError: !!errMsg, required: true }),
|
|
1555
1343
|
errMsg && (React__default.createElement(Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
|
|
1556
|
-
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo },
|
|
1557
|
-
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone },
|
|
1344
|
+
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo }, t('ssov2.button.continueZalo')),
|
|
1345
|
+
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone }, t('ssov2.button.continueSMS')))));
|
|
1558
1346
|
};
|
|
1559
1347
|
|
|
1560
1348
|
const CheckGrayIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -1655,11 +1443,11 @@ const SSOPasswordForgotSetup = ({ hidden }) => {
|
|
|
1655
1443
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, "Setup your password"),
|
|
1656
1444
|
React__default.createElement(Text, { size: "p4" }, "Set up your login password and other details to complete the registration process.")),
|
|
1657
1445
|
React__default.createElement(SSOPasswordWithConfirm, { form: form }),
|
|
1658
|
-
React__default.createElement(CollectInfoText, null),
|
|
1659
1446
|
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true }, "Save"))));
|
|
1660
1447
|
};
|
|
1661
1448
|
|
|
1662
1449
|
const SSOPhoneVerify = ({ hidden, index, }) => {
|
|
1450
|
+
const { t } = useTranslations();
|
|
1663
1451
|
const [phone, setPhone] = React__default.useState('');
|
|
1664
1452
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
1665
1453
|
const { locale } = useSSOState();
|
|
@@ -1667,14 +1455,13 @@ const SSOPhoneVerify = ({ hidden, index, }) => {
|
|
|
1667
1455
|
const currentStep = steps[index];
|
|
1668
1456
|
const { afterAction } = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.config) || {};
|
|
1669
1457
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1670
|
-
var _a, _b;
|
|
1671
1458
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1672
1459
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1673
1460
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
1674
1461
|
if (!userExist._data) {
|
|
1675
1462
|
const res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
1676
1463
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
1677
|
-
setErrMsg((
|
|
1464
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1678
1465
|
return;
|
|
1679
1466
|
}
|
|
1680
1467
|
addStep({
|
|
@@ -1689,22 +1476,21 @@ const SSOPhoneVerify = ({ hidden, index, }) => {
|
|
|
1689
1476
|
goNext();
|
|
1690
1477
|
}
|
|
1691
1478
|
else {
|
|
1692
|
-
setErrMsg('
|
|
1479
|
+
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
1693
1480
|
}
|
|
1694
1481
|
}
|
|
1695
1482
|
else {
|
|
1696
|
-
setErrMsg((
|
|
1483
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
1697
1484
|
}
|
|
1698
1485
|
});
|
|
1699
1486
|
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1700
|
-
var _c, _d;
|
|
1701
1487
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1702
1488
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1703
1489
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
1704
1490
|
if (!userExist._data) {
|
|
1705
1491
|
const res = yield resendUpdatePhoneOTP(phoneNumber, areaCode);
|
|
1706
1492
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
1707
|
-
setErrMsg((
|
|
1493
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
1708
1494
|
return;
|
|
1709
1495
|
}
|
|
1710
1496
|
addStep({
|
|
@@ -1723,7 +1509,7 @@ const SSOPhoneVerify = ({ hidden, index, }) => {
|
|
|
1723
1509
|
}
|
|
1724
1510
|
}
|
|
1725
1511
|
else {
|
|
1726
|
-
setErrMsg((
|
|
1512
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
1727
1513
|
}
|
|
1728
1514
|
});
|
|
1729
1515
|
return (React__default.createElement("div", { style: {
|
|
@@ -1731,14 +1517,13 @@ const SSOPhoneVerify = ({ hidden, index, }) => {
|
|
|
1731
1517
|
} },
|
|
1732
1518
|
React__default.createElement(Stack, { spacing: 24 },
|
|
1733
1519
|
React__default.createElement(Stack, { spacing: 8 },
|
|
1734
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" },
|
|
1735
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1520
|
+
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.phoneVerify.title')),
|
|
1521
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.phoneVerify.description'))),
|
|
1736
1522
|
React__default.createElement(Stack, { spacing: 16 },
|
|
1737
1523
|
React__default.createElement(Input.Wrapper, { error: errMsg },
|
|
1738
1524
|
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => setPhone(value), isError: !!errMsg, required: true, name: "phone" })),
|
|
1739
|
-
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo },
|
|
1740
|
-
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone },
|
|
1741
|
-
React__default.createElement(CollectInfoText, null))));
|
|
1525
|
+
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo }, t('ssov2.button.continueZalo')),
|
|
1526
|
+
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone }, t('ssov2.button.continueSMS'))))));
|
|
1742
1527
|
};
|
|
1743
1528
|
|
|
1744
1529
|
const FemaleIcon = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -1772,15 +1557,16 @@ const MaleIcon = () => (React__default.createElement("svg", { width: "20", heigh
|
|
|
1772
1557
|
|
|
1773
1558
|
// always has name, gender dob
|
|
1774
1559
|
const OtherSetup = ({ form, needPhone, needEmail, isEmailDisable, }) => {
|
|
1560
|
+
const { t } = useTranslations();
|
|
1775
1561
|
const { locale = 'vi-VN' } = useSSOState();
|
|
1776
1562
|
return (React__default.createElement(Stack, { spacing: 12 },
|
|
1777
1563
|
needPhone && (React__default.createElement(React__default.Fragment, null,
|
|
1778
|
-
React__default.createElement(Input.Wrapper, Object.assign({ label:
|
|
1564
|
+
React__default.createElement(Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.phone.label'), withAsterisk: true }, form.getInputProps('phone')),
|
|
1779
1565
|
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: form.getInputProps('phone').value, onChange: (value) => {
|
|
1780
1566
|
form.setFieldValue('phone', value);
|
|
1781
1567
|
}, isError: !!form.getInputProps('phone').error, required: true, name: "phone" })),
|
|
1782
1568
|
React__default.createElement(Group, { spacing: 24 },
|
|
1783
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1569
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.setup.field.otp.label')),
|
|
1784
1570
|
React__default.createElement(Radio.Group, Object.assign({ name: "otpMethod", styles: {
|
|
1785
1571
|
root: {
|
|
1786
1572
|
display: 'flex',
|
|
@@ -1799,9 +1585,9 @@ const OtherSetup = ({ form, needPhone, needEmail, isEmailDisable, }) => {
|
|
|
1799
1585
|
paddingLeft: 8,
|
|
1800
1586
|
},
|
|
1801
1587
|
} }))))),
|
|
1802
|
-
needEmail && (React__default.createElement(Input, Object.assign({ name: "email", type: "email", label:
|
|
1803
|
-
React__default.createElement(Input, Object.assign({ name: "name", label:
|
|
1804
|
-
React__default.createElement(Input.Wrapper, Object.assign({ label:
|
|
1588
|
+
needEmail && (React__default.createElement(Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable }, form.getInputProps('email')))),
|
|
1589
|
+
React__default.createElement(Input, Object.assign({ name: "name", label: t('ssov2.setup.field.name.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.name.placeholder') }, form.getInputProps('name'))),
|
|
1590
|
+
React__default.createElement(Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.gender.label'), withAsterisk: true }, form.getInputProps('gender')),
|
|
1805
1591
|
React__default.createElement(Group, null,
|
|
1806
1592
|
React__default.createElement(Button, { type: "button", styles: {
|
|
1807
1593
|
root: {
|
|
@@ -1817,7 +1603,7 @@ const OtherSetup = ({ form, needPhone, needEmail, isEmailDisable, }) => {
|
|
|
1817
1603
|
? 'secondary'
|
|
1818
1604
|
: 'tertiary', onClick: () => {
|
|
1819
1605
|
form.setFieldValue('gender', 'female');
|
|
1820
|
-
}, leftIcon: React__default.createElement(FemaleIcon, null) },
|
|
1606
|
+
}, leftIcon: React__default.createElement(FemaleIcon, null) }, t('ssov2.setup.field.gender.female')),
|
|
1821
1607
|
React__default.createElement(Button, { type: "button", styles: {
|
|
1822
1608
|
root: {
|
|
1823
1609
|
flex: 1,
|
|
@@ -1832,12 +1618,13 @@ const OtherSetup = ({ form, needPhone, needEmail, isEmailDisable, }) => {
|
|
|
1832
1618
|
? 'secondary'
|
|
1833
1619
|
: 'tertiary', onClick: () => {
|
|
1834
1620
|
form.setFieldValue('gender', 'male');
|
|
1835
|
-
}, leftIcon: React__default.createElement(MaleIcon, null) },
|
|
1836
|
-
React__default.createElement(DatePicker, Object.assign({ name: "dob", label:
|
|
1621
|
+
}, leftIcon: React__default.createElement(MaleIcon, null) }, t('ssov2.setup.field.gender.male')))),
|
|
1622
|
+
React__default.createElement(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() }, form.getInputProps('dob')))));
|
|
1837
1623
|
};
|
|
1838
1624
|
|
|
1839
1625
|
const SSOSetupScreen = ({ hidden, index, }) => {
|
|
1840
1626
|
const { onClose } = useSSOState();
|
|
1627
|
+
const { t } = useTranslations();
|
|
1841
1628
|
const { goNext, steps, addStep, shareData } = useSSOSteps();
|
|
1842
1629
|
const { setupSource } = useSSOV2Store();
|
|
1843
1630
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
@@ -2010,26 +1797,25 @@ const SSOSetupScreen = ({ hidden, index, }) => {
|
|
|
2010
1797
|
}, onSubmit: form.onSubmit(onSubmit) },
|
|
2011
1798
|
React__default.createElement(Stack, { spacing: 24 },
|
|
2012
1799
|
React__default.createElement(Stack, { spacing: 8 },
|
|
2013
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" },
|
|
2014
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1800
|
+
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.setup.title')),
|
|
1801
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.setup.description'))),
|
|
2015
1802
|
needPass && React__default.createElement(SSOPasswordWithConfirm, { form: form }),
|
|
2016
1803
|
React__default.createElement(OtherSetup, { needPhone: needPhone, needEmail: needEmail, isEmailDisable: isEmailDisable, form: form }),
|
|
2017
|
-
React__default.createElement(CollectInfoText, null),
|
|
2018
1804
|
errMsg && (React__default.createElement(Text, { color: "red.6", size: "p4" }, errMsg)),
|
|
2019
1805
|
React__default.createElement(Button, { type: "submit", variant: "primary", fullWidth: true }, needPhone
|
|
2020
|
-
? '
|
|
1806
|
+
? t('ssov2.setup.button.veriyPhone')
|
|
2021
1807
|
: authFlow === 'register'
|
|
2022
|
-
? '
|
|
2023
|
-
: '
|
|
1808
|
+
? t('ssov2.setup.button.createAccount')
|
|
1809
|
+
: t('ssov2.button.save')))));
|
|
2024
1810
|
};
|
|
2025
1811
|
|
|
2026
1812
|
const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
1813
|
+
const { t } = useTranslations();
|
|
2027
1814
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
2028
1815
|
const { addStep, goNext, setShareData } = useSSOSteps();
|
|
2029
1816
|
return (React__default.createElement("form", { style: {
|
|
2030
1817
|
display: hidden ? 'none' : 'block',
|
|
2031
1818
|
}, onSubmit: (e) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2032
|
-
var _a, _b;
|
|
2033
1819
|
e.preventDefault();
|
|
2034
1820
|
const email = e.currentTarget.email.value;
|
|
2035
1821
|
const existRes = yield checkUserExist({ email });
|
|
@@ -2041,7 +1827,7 @@ const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
|
2041
1827
|
});
|
|
2042
1828
|
const res = yield initSendUpdateEmailOtp(email);
|
|
2043
1829
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
2044
|
-
setErrMsg((
|
|
1830
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
2045
1831
|
return;
|
|
2046
1832
|
}
|
|
2047
1833
|
addStep({
|
|
@@ -2054,18 +1840,18 @@ const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
|
2054
1840
|
goNext();
|
|
2055
1841
|
}
|
|
2056
1842
|
else {
|
|
2057
|
-
setErrMsg('
|
|
1843
|
+
setErrMsg(t('ssov2.email.alreadyUsed'));
|
|
2058
1844
|
}
|
|
2059
1845
|
}
|
|
2060
1846
|
else {
|
|
2061
|
-
setErrMsg((
|
|
1847
|
+
setErrMsg(getErrorTextFromCode(t, existRes === null || existRes === void 0 ? void 0 : existRes.code));
|
|
2062
1848
|
}
|
|
2063
1849
|
}) },
|
|
2064
1850
|
React__default.createElement(Stack, { spacing: 8 },
|
|
2065
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" },
|
|
2066
|
-
React__default.createElement(Text, { size: "p4" },
|
|
1851
|
+
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.updateEmail.title')),
|
|
1852
|
+
React__default.createElement(Text, { size: "p4" }, t('ssov2.updateEmail.description'))),
|
|
2067
1853
|
React__default.createElement(Input, { name: "email", placeholder: "Email c\u1EE7a b\u1EA1n", error: errMsg || undefined, type: "email", required: true, mt: 24 }),
|
|
2068
|
-
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16 },
|
|
1854
|
+
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16 }, t('ssov2.updateEmail.button'))));
|
|
2069
1855
|
};
|
|
2070
1856
|
|
|
2071
1857
|
const SSOScreenRenderer = () => {
|