@hhgtech/hhg-components 1.29.314-beta-2 → 1.29.314-beta-3
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-b28d334d.js → LastPeriod-f001a241.js} +1 -1
- package/build/{MobileBottomNavigationIcon-63452e1c.js → MobileBottomNavigationIcon-7ae44ae2.js} +3 -3
- package/build/{Spinner-d4e77e13.js → Spinner-62646f6b.js} +1 -1
- package/build/{WhatsApp-26e121bb.js → WhatsApp-e911dc8a.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 +90 -90
- package/build/{constants-7f34b965.js → constants-78f42315.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-ffd24cff.js → core-c14cc032.js} +1 -1
- package/build/{dataTransform-3fb75722.js → dataTransform-ae798727.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-d30b0747.js → editor-99705df3.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-6e051330.js → LastPeriod-80362ccc.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-4c50e393.js → MobileBottomNavigationIcon-6e011d96.js} +3 -3
- package/build/esm/{Spinner-3e07d668.js → Spinner-39e39ea5.js} +1 -1
- package/build/esm/{WhatsApp-a6244f1b.js → WhatsApp-65719e9b.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 +90 -90
- package/build/esm/{constants-27635233.js → constants-936ad64b.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-b910ddd9.js → core-de5ff140.js} +1 -1
- package/build/esm/{dataTransform-03518ea0.js → dataTransform-b720b519.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-a0414ebd.js → editor-54b62254.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-1db74c6f.js → fixedBottomAdBlock-86d4c311.js} +24 -24
- package/build/esm/footer.js +21 -21
- package/build/esm/gAssets.js +2 -2
- package/build/esm/healthToolsCardWrapper.js +18 -18
- package/build/esm/healthToolsForm.js +33 -33
- package/build/esm/hooks.js +13 -13
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +1 -5
- package/build/esm/i18n-values/hi-IN.js +1 -5
- package/build/esm/i18n-values/id-ID.js +172 -176
- package/build/esm/i18n-values/km-KH.js +1 -5
- package/build/esm/i18n-values/ms-MY.js +313 -317
- package/build/esm/i18n-values/my-MM.js +0 -4
- package/build/esm/i18n-values/th-TH.js +0 -4
- package/build/esm/i18n-values/tl-PH.js +0 -4
- package/build/esm/i18n-values/vi-VN.js +0 -4
- package/build/esm/i18n-values/vi-VN_MB.js +0 -4
- package/build/esm/i18n-values/zh-TW.js +1 -5
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-fb70a094.js → index-0165c6ca.js} +6 -6
- package/build/esm/{index-bc92569f.js → index-01efebf6.js} +2 -2
- package/build/esm/{index-74d09a9d.js → index-0208933b.js} +17 -17
- package/build/esm/{index-429c38d8.js → index-0433bb54.js} +3 -3
- package/build/esm/{index-110b77fa.js → index-08fd4f15.js} +2 -2
- package/build/esm/{index-97c61049.js → index-0b6b6bf8.js} +1 -1
- package/build/esm/{index-85a35065.js → index-12ce269f.js} +1 -1
- package/build/esm/{index-e78bc87c.js → index-18ccaa14.js} +3 -3
- package/build/esm/{index-4743f7bd.js → index-246cb022.js} +17 -17
- package/build/esm/{index-29c2cf3a.js → index-2b847c52.js} +2 -2
- package/build/esm/{index-d24ce9a9.js → index-3020a431.js} +1 -1
- package/build/esm/{index-233eea39.js → index-317ab117.js} +16 -16
- package/build/esm/{index-019309e1.js → index-336cde06.js} +4 -4
- package/build/esm/{index-efd938f2.js → index-3bea457d.js} +5 -5
- package/build/esm/{index-6eccfdc2.js → index-42c47f2a.js} +17 -17
- package/build/esm/{index-487e81e0.js → index-4b84d097.js} +10 -10
- package/build/esm/{index-b515d49c.js → index-4c3ab54b.js} +2 -2
- package/build/esm/{index-5c36f52e.js → index-4e819e08.js} +6 -6
- package/build/esm/{index-4c4f5f3b.js → index-54693e8c.js} +1 -1
- package/build/esm/{index-53ec825b.js → index-5ba3fa51.js} +7 -7
- package/build/esm/{index-70d43740.js → index-5ca165a7.js} +2 -2
- package/build/esm/{index-3ec1561d.js → index-611009d3.js} +16 -16
- package/build/esm/{index-5b808ca8.js → index-6231a11e.js} +1 -1
- package/build/esm/{index-d14b1cbd.js → index-62a40170.js} +2 -2
- package/build/esm/{index-9d296c95.js → index-639970f8.js} +26 -26
- package/build/esm/{index-8f74b9e2.js → index-68c16ea1.js} +20 -20
- package/build/esm/{index-0e72d1a3.js → index-6b37c595.js} +13 -13
- package/build/esm/{index-a2002cb2.js → index-6d48235c.js} +2 -2
- package/build/esm/{index-acc7a805.js → index-6ff727f1.js} +3 -3
- package/build/esm/{index-6ac2e310.js → index-75add141.js} +3 -3
- package/build/esm/{index-08a835b8.js → index-7b3c7767.js} +13 -13
- package/build/esm/{index-66f4e81a.js → index-8149a2d6.js} +6 -6
- package/build/esm/{index-beb459a4.js → index-8ab1fb3a.js} +2 -2
- package/build/esm/{index-6439dfc9.js → index-8b019e67.js} +1 -1
- package/build/esm/{index-166a9a07.js → index-8b7d2189.js} +2 -2
- package/build/esm/{index-0b62885d.js → index-928ee508.js} +32 -32
- package/build/esm/{index-87f678e2.js → index-928fa008.js} +2 -2
- package/build/esm/{index-90080195.js → index-96c6bd8b.js} +18 -18
- package/build/esm/{index-21c63b83.js → index-972d7519.js} +1 -1
- package/build/esm/{index-3e6e1e3d.js → index-a631c7b9.js} +30 -30
- package/build/esm/{index-8aa20ed9.js → index-a6d77e19.js} +15 -15
- package/build/esm/{index-3e13ad4d.js → index-af8a9a94.js} +21 -21
- package/build/esm/{index-a1a6fbba.js → index-b2ccc24a.js} +15 -15
- package/build/esm/{index-47d4ca23.js → index-b472a9c4.js} +3 -3
- package/build/esm/{index-6c823d3b.js → index-b8f4ba9c.js} +16 -16
- package/build/esm/{index-8f4a0380.js → index-bb78da52.js} +2 -2
- package/build/esm/{index-7118cb8a.js → index-be5249e0.js} +18 -18
- package/build/esm/{index-5f8b5a51.js → index-bf6442ee.js} +1 -1
- package/build/esm/{index-dc13254e.js → index-c59239c5.js} +7 -7
- package/build/esm/{index-0806c187.js → index-c5c10df0.js} +3 -3
- package/build/esm/{index-b8b8dd64.js → index-cbf65f54.js} +6 -6
- package/build/esm/{index-7d6eea86.js → index-d412c8e2.js} +24 -24
- package/build/esm/{index-425b9661.js → index-d8603c78.js} +5 -5
- package/build/esm/{index-307e9df6.js → index-daedf83c.js} +16 -16
- package/build/esm/{index-42c34e44.js → index-e2dda590.js} +3 -3
- package/build/esm/{index-89d0ecbf.js → index-ee2506c7.js} +2 -2
- package/build/esm/{index-374fe860.js → index-ee4ae5cd.js} +11 -11
- package/build/esm/{index-135da538.js → index-f8d745a5.js} +13 -13
- package/build/esm/{index-1d64c068.js → index-f9774976.js} +13 -13
- package/build/esm/{index-565de97c.js → index-fc76d329.js} +2 -2
- package/build/esm/index.js +112 -112
- package/build/esm/{labelSorting-1cf482a0.js → labelSorting-e33d69e9.js} +4 -4
- package/build/esm/lead/constants.d.ts +3 -1
- package/build/esm/lead/index.d.ts +8 -3
- package/build/esm/lead.js +47 -44
- package/build/esm/{logoIcon-198819a2.js → logoIcon-fc46d7af.js} +2 -2
- package/build/esm/mantine.js +25 -25
- package/build/esm/misc.js +16 -16
- package/build/esm/miscGetDynamicHealthTool.js +4 -4
- package/build/esm/miscGetSocialList.js +8 -8
- package/build/esm/miscScreenSizeContext.js +1 -1
- package/build/esm/mobileBottomNavigation.js +5 -5
- package/build/esm/mobileBottomNavigationIcon.js +5 -5
- package/build/esm/molecules.js +69 -69
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +16 -16
- package/build/esm/navigation.js +40 -40
- package/build/esm/navigationLogoutPopup.js +9 -9
- package/build/esm/navigationProfileButton.js +23 -23
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +44 -44
- package/build/esm/{post-faeb5335.js → post-2ede764a.js} +2 -2
- package/build/esm/profileNavigation.js +19 -19
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +22 -22
- package/build/esm/ssoV2/api/index.d.ts +0 -1
- package/build/esm/ssoV2/api/paths.d.ts +0 -7
- package/build/esm/ssoV2/screens/otp.d.ts +1 -1
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +1 -1
- package/build/esm/ssoV2.js +45 -271
- package/build/esm/{store-e1c4b814.js → store-7050cdd7.js} +8 -15
- package/build/esm/subot.js +33 -33
- package/build/esm/surveyOrPremiumBanner.js +31 -31
- package/build/esm/surveyQuestionCard.js +10 -10
- package/build/esm/{surveyThankyouCard-fb5f4358.js → surveyThankyouCard-b0b93297.js} +5 -5
- package/build/esm/together.js +53 -53
- package/build/esm/togetherApiUtils.js +4 -4
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +4 -4
- package/build/esm/togetherMolecules.js +48 -48
- package/build/esm/togetherMoleculesCardAuthor.js +27 -27
- package/build/esm/togetherMoleculesPostImagePreview.js +11 -11
- package/build/esm/togetherMoleculesProfileDetail.js +37 -37
- package/build/esm/togetherOrganisms.js +47 -47
- package/build/esm/togetherRichTextEditor.js +17 -17
- package/build/esm/togetherShareBox.js +10 -10
- package/build/esm/{treePopoverMenu-1ad6d61a.js → treePopoverMenu-9b0184ad.js} +19 -19
- package/build/esm/{types-28a559e3.js → types-7da8842e.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-8f412d0e.js → useCategory-537d6f2d.js} +5 -5
- package/build/esm/{useHealthToolCache-deb504c8.js → useHealthToolCache-f67f4c55.js} +1 -1
- package/build/esm/{useMantineLocale-1ab2257c.js → useMantineLocale-2a2344ad.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-aad10e5d.js → usePlacesAutocomplete-88d2d417.js} +1 -1
- package/build/esm/{useScreenSize-f148ef16.js → useScreenSize-1198c3b9.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-3523e49e.js → utils-42f403eb.js} +2 -2
- package/build/esm/{utils-77f121f5.js → utils-80a4e33a.js} +3 -3
- package/build/esm/{utils-5110c728.js → utils-cb118d8e.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-a74e3064.js → fixedBottomAdBlock-84040169.js} +24 -24
- package/build/footer.js +21 -21
- package/build/gAssets.js +2 -2
- package/build/healthToolsCardWrapper.js +18 -18
- package/build/healthToolsForm.js +33 -33
- package/build/hooks.js +13 -13
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +1 -5
- package/build/i18n-values/hi-IN.js +1 -5
- package/build/i18n-values/id-ID.js +172 -176
- package/build/i18n-values/km-KH.js +1 -5
- package/build/i18n-values/ms-MY.js +313 -317
- package/build/i18n-values/my-MM.js +0 -4
- package/build/i18n-values/th-TH.js +0 -4
- package/build/i18n-values/tl-PH.js +0 -4
- package/build/i18n-values/vi-VN.js +0 -4
- package/build/i18n-values/vi-VN_MB.js +0 -4
- package/build/i18n-values/zh-TW.js +1 -5
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-7f37a9b6.js → index-00beb5b3.js} +13 -13
- package/build/{index-4821c8ff.js → index-080a20d8.js} +17 -17
- package/build/{index-7df648fa.js → index-094339b0.js} +2 -2
- package/build/{index-3d4b04f6.js → index-09c59e54.js} +32 -32
- package/build/{index-cb835a0d.js → index-103cee45.js} +3 -3
- package/build/{index-03009951.js → index-13d86682.js} +16 -16
- package/build/{index-b22e2790.js → index-14e2231b.js} +5 -5
- package/build/{index-0f0ea338.js → index-17e342ab.js} +1 -1
- package/build/{index-1fd67d21.js → index-19655a2c.js} +2 -2
- package/build/{index-41d28db1.js → index-26341dc0.js} +3 -3
- package/build/{index-df97e9a0.js → index-2b1762ee.js} +4 -4
- package/build/{index-6727208f.js → index-2ddcef1e.js} +1 -1
- package/build/{index-402af114.js → index-2f9f52c0.js} +2 -2
- package/build/{index-cebb7db2.js → index-311224d1.js} +2 -2
- package/build/{index-d799e476.js → index-33fee3ef.js} +13 -13
- package/build/{index-933f0ef6.js → index-370ff06b.js} +11 -11
- package/build/{index-17a60050.js → index-38c5b959.js} +16 -16
- package/build/{index-05f56a08.js → index-404a2315.js} +16 -16
- package/build/{index-0d6d5fcc.js → index-415e5ced.js} +2 -2
- package/build/{index-fcdbe6a1.js → index-467a8538.js} +7 -7
- package/build/{index-18f1685e.js → index-47296f2b.js} +13 -13
- package/build/{index-fa0f14d6.js → index-47ae81d2.js} +18 -18
- package/build/{index-f107adaf.js → index-4f84d3f9.js} +21 -21
- package/build/{index-23bfdd37.js → index-5444a877.js} +2 -2
- package/build/{index-9ab69a30.js → index-62bd4446.js} +2 -2
- package/build/{index-3800efe1.js → index-6618cb5c.js} +6 -6
- package/build/{index-a0e9ca16.js → index-68cfefbe.js} +1 -1
- package/build/{index-9b5da338.js → index-68d81bc8.js} +6 -6
- package/build/{index-76607f9c.js → index-6b9915b2.js} +3 -3
- package/build/{index-b2e0f9ef.js → index-70e088bb.js} +3 -3
- package/build/{index-356f0e58.js → index-74b43868.js} +16 -16
- package/build/{index-c6fa43e0.js → index-79da5971.js} +26 -26
- package/build/{index-07ad1b06.js → index-7d3c041e.js} +3 -3
- package/build/{index-70840202.js → index-848d0b8d.js} +2 -2
- package/build/{index-a433f23b.js → index-8842cb2d.js} +1 -1
- package/build/{index-b486f9a6.js → index-8f9131af.js} +5 -5
- package/build/{index-ba182fa0.js → index-94cba973.js} +15 -15
- package/build/{index-d5e05103.js → index-994922cc.js} +2 -2
- package/build/{index-cd41ae81.js → index-99e165bd.js} +2 -2
- package/build/{index-d56be4da.js → index-9b628e81.js} +1 -1
- package/build/{index-bab0a335.js → index-9be09667.js} +3 -3
- package/build/{index-ccb92ba5.js → index-9cde43e9.js} +15 -15
- package/build/{index-cf578a54.js → index-9e91faa7.js} +6 -6
- package/build/{index-2d65c3e8.js → index-a3c0c394.js} +20 -20
- package/build/{index-b4264efe.js → index-a5f1377f.js} +1 -1
- package/build/{index-d5202333.js → index-ad1a06ed.js} +2 -2
- package/build/{index-a620c13a.js → index-b96b8c66.js} +18 -18
- package/build/{index-0a6d7a10.js → index-bc4baadd.js} +2 -2
- package/build/{index-8d6ac1eb.js → index-c2fc6dbf.js} +6 -6
- package/build/{index-bd040384.js → index-c417bd69.js} +13 -13
- package/build/{index-dddab0cf.js → index-cc62857e.js} +10 -10
- package/build/{index-208f80df.js → index-cfe96e44.js} +17 -17
- package/build/{index-d171711a.js → index-d4669f39.js} +24 -24
- package/build/{index-06f24c9c.js → index-d9666f1b.js} +1 -1
- package/build/{index-54f196f5.js → index-dfc0049b.js} +2 -2
- package/build/{index-513e7317.js → index-e0394bcc.js} +1 -1
- package/build/{index-2e29c7d1.js → index-e3dd8598.js} +17 -17
- package/build/{index-6eed3a2c.js → index-e716aaa3.js} +3 -3
- package/build/{index-c4d59e6f.js → index-f9a651a2.js} +30 -30
- package/build/{index-76a2a854.js → index-ffff1159.js} +7 -7
- package/build/index.js +112 -112
- package/build/{labelSorting-a38d52f8.js → labelSorting-7682fa41.js} +4 -4
- package/build/lead/constants.d.ts +3 -1
- package/build/lead/index.d.ts +8 -3
- package/build/lead.js +48 -43
- package/build/{logoIcon-9a0f764b.js → logoIcon-7dd0b81a.js} +2 -2
- package/build/mantine.js +22 -22
- package/build/misc.js +16 -16
- package/build/miscGetDynamicHealthTool.js +4 -4
- package/build/miscGetSocialList.js +8 -8
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +69 -69
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +16 -16
- package/build/navigation.js +40 -40
- package/build/navigationLogoutPopup.js +9 -9
- package/build/navigationProfileButton.js +23 -23
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +44 -44
- package/build/{post-4a0622f0.js → post-0bbd1718.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- package/build/ssoV2/api/index.d.ts +0 -1
- package/build/ssoV2/api/paths.d.ts +0 -7
- package/build/ssoV2/screens/otp.d.ts +1 -1
- package/build/ssoV2/ssoStateManager/store.d.ts +1 -1
- package/build/ssoV2.js +44 -270
- package/build/{store-1f09b6c1.js → store-4e6ed91d.js} +7 -15
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-71bf713c.js → surveyThankyouCard-3451613b.js} +5 -5
- package/build/together.js +53 -53
- package/build/togetherApiUtils.js +4 -4
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +4 -4
- package/build/togetherMolecules.js +48 -48
- package/build/togetherMoleculesCardAuthor.js +27 -27
- package/build/togetherMoleculesPostImagePreview.js +11 -11
- package/build/togetherMoleculesProfileDetail.js +37 -37
- package/build/togetherOrganisms.js +47 -47
- package/build/togetherRichTextEditor.js +17 -17
- package/build/togetherShareBox.js +10 -10
- package/build/{treePopoverMenu-68a39d5b.js → treePopoverMenu-88e9f4ba.js} +19 -19
- package/build/{types-ab62a6cf.js → types-bb2bee6d.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-75373cd0.js → useCategory-9c3ea540.js} +5 -5
- package/build/{useHealthToolCache-fbea1cae.js → useHealthToolCache-9fa8f32b.js} +1 -1
- package/build/{useMantineLocale-07ecb2f4.js → useMantineLocale-39235286.js} +6 -6
- package/build/{usePlacesAutocomplete-99fa07d9.js → usePlacesAutocomplete-89b6f7dc.js} +1 -1
- package/build/{useScreenSize-50bd4bc7.js → useScreenSize-99f7fe19.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-98933a21.js → utils-001e6623.js} +3 -3
- package/build/{utils-77b175cb.js → utils-569b9de0.js} +2 -2
- package/build/{utils-782c49af.js → utils-79946965.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- package/build/esm/ssoV2/api/whatsapp.d.ts +0 -6
- package/build/esm/ssoV2/screens/components/whatsapp.d.ts +0 -5
- package/build/esm/ssoV2/utils.d.ts +0 -3
- package/build/ssoV2/api/whatsapp.d.ts +0 -6
- package/build/ssoV2/screens/components/whatsapp.d.ts +0 -5
- package/build/ssoV2/utils.d.ts +0 -3
- /package/build/{BMI_BOYS.percentile.monthly-d4bbd631.js → BMI_BOYS.percentile.monthly-7ee182a2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-529efecb.js → BMI_BOYS.percentile.weekly-e67629b2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-c78e60f1.js → BMI_BOYS.percentile.yearly-bc5c71c4.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-8b037208.js → BMI_BOYS.zscore.monthly-09104bc9.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-e50ebc9b.js → BMI_BOYS.zscore.weekly-49430418.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-9350870f.js → BMI_BOYS.zscore.yearly-72573717.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-9058c17b.js → BMI_GIRLS.percentile.monthly-af211490.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-2ff137f1.js → BMI_GIRLS.percentile.weekly-98305b94.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-67cbca23.js → BMI_GIRLS.percentile.yearly-2c08149f.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-15b7cc46.js → BMI_GIRLS.zscore.monthly-04119a22.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-93174dc1.js → BMI_GIRLS.zscore.weekly-0c6b0f72.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-db159a54.js → BMI_GIRLS.zscore.yearly-f8b4ebc9.js} +0 -0
- /package/build/{ChevronDown-f24893e9.js → ChevronDown-1530d638.js} +0 -0
- /package/build/{Close-5227dc36.js → Close-aab7488b.js} +0 -0
- /package/build/{Google-0837ae48.js → Google-09a4bf40.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-0fae7b29.js → HEAD CIRCUM_BOYS.percentile.monthly-95eedbbe.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-984c9ac7.js → HEAD CIRCUM_BOYS.percentile.weekly-44baf46a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-495178f3.js → HEAD CIRCUM_BOYS.percentile.yearly-6f4bf3b8.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-5d2af2bc.js → HEAD CIRCUM_BOYS.zscore.monthly-eec1bf92.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-47f05c0d.js → HEAD CIRCUM_BOYS.zscore.weekly-384987a0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-7784a0f9.js → HEAD CIRCUM_BOYS.zscore.yearly-4eda7746.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-75886073.js → HEAD CIRCUM_GIRLS.percentile.monthly-763fef6c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-360268c9.js → HEAD CIRCUM_GIRLS.percentile.weekly-556ba4b7.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-a612c31f.js → HEAD CIRCUM_GIRLS.percentile.yearly-df144b3d.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-ef2b1535.js → HEAD CIRCUM_GIRLS.zscore.monthly-cecccc43.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-b9f186d4.js → HEAD CIRCUM_GIRLS.zscore.weekly-ba30a80c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-67476d24.js → HEAD CIRCUM_GIRLS.zscore.yearly-bca0087d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-18df72f8.js → HEIGHT_BOYS.percentile.monthly-7805b817.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-4d6c8d76.js → HEIGHT_BOYS.percentile.weekly-e03dd0bc.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-fb4dbb84.js → HEIGHT_BOYS.percentile.yearly-b5ccec34.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-113e8449.js → HEIGHT_BOYS.zscore.monthly-8839b811.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-ac2d19de.js → HEIGHT_BOYS.zscore.weekly-b9b9cccb.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-e751c100.js → HEIGHT_BOYS.zscore.yearly-fa4a9adf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-e07960db.js → HEIGHT_GIRLS.percentile.monthly-545fab85.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-0eea787c.js → HEIGHT_GIRLS.percentile.weekly-f2bf49b9.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-839e2c89.js → HEIGHT_GIRLS.percentile.yearly-f57f46cc.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-2b948767.js → HEIGHT_GIRLS.zscore.monthly-95958496.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-74b2117b.js → HEIGHT_GIRLS.zscore.weekly-524b3c72.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-30f648e8.js → HEIGHT_GIRLS.zscore.yearly-b5674d32.js} +0 -0
- /package/build/{Locale-e981d652.js → Locale-ca2f9604.js} +0 -0
- /package/build/{Visible-d4f759e7.js → Visible-fff718de.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-3fdf9364.js → WEIGHT_BOYS.percentile.monthly-a669d196.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-05cedf46.js → WEIGHT_BOYS.percentile.weekly-b43b2886.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-3b32ab63.js → WEIGHT_BOYS.percentile.yearly-35df0b4f.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b936bc63.js → WEIGHT_BOYS.zscore.monthly-49643da2.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-1a33e71b.js → WEIGHT_BOYS.zscore.weekly-452d2a52.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-dbdb2b64.js → WEIGHT_BOYS.zscore.yearly-d259d4c6.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-1f74af91.js → WEIGHT_GIRLS.percentile.monthly-46624372.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-0e2e0428.js → WEIGHT_GIRLS.percentile.weekly-370fc500.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-941d1082.js → WEIGHT_GIRLS.percentile.yearly-c694e283.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-d8e33259.js → WEIGHT_GIRLS.zscore.monthly-6b2370d2.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-8c0ba235.js → WEIGHT_GIRLS.zscore.weekly-f829be69.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-a783c67b.js → WEIGHT_GIRLS.zscore.yearly-b1aa5ef4.js} +0 -0
- /package/build/{animation-73396435.js → animation-5dbcb908.js} +0 -0
- /package/build/{constants-dee40cab.js → constants-132bb179.js} +0 -0
- /package/build/{constants-4aee9125.js → constants-39c893d6.js} +0 -0
- /package/build/{constants-a17511ba.js → constants-91a96b74.js} +0 -0
- /package/build/{dataTransform-d66e4ff9.js → dataTransform-1ce0d11f.js} +0 -0
- /package/build/{doctor-b16259c0.js → doctor-a077b514.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-dc5d29ff.js → BMI_BOYS.percentile.monthly-c2b93031.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-c3dc9447.js → BMI_BOYS.percentile.weekly-8f847364.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-0ba9a4df.js → BMI_BOYS.percentile.yearly-dce0e43e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-9c52e5ea.js → BMI_BOYS.zscore.monthly-970c59f5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-4121cc3b.js → BMI_BOYS.zscore.weekly-03f6b04e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-c3d47f77.js → BMI_BOYS.zscore.yearly-30f622b5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-e2c27178.js → BMI_GIRLS.percentile.monthly-ef42185c.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-95710baf.js → BMI_GIRLS.percentile.weekly-bebc558f.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-2b7c329c.js → BMI_GIRLS.percentile.yearly-f0317f4e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-79e916af.js → BMI_GIRLS.zscore.monthly-d3f342b8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-919dbdd7.js → BMI_GIRLS.zscore.weekly-c1a41431.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-a9e32104.js → BMI_GIRLS.zscore.yearly-bb095887.js} +0 -0
- /package/build/esm/{ChevronDown-34db49fc.js → ChevronDown-d3a23dc0.js} +0 -0
- /package/build/esm/{Close-433230f5.js → Close-9bad7bc3.js} +0 -0
- /package/build/esm/{Google-b8cc3bdb.js → Google-1d881f82.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-9539b926.js → HEAD CIRCUM_BOYS.percentile.monthly-4d296dd9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-2b4204b6.js → HEAD CIRCUM_BOYS.percentile.weekly-d38edb8b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-b713b28a.js → HEAD CIRCUM_BOYS.percentile.yearly-18bfcbd1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-70ef89ae.js → HEAD CIRCUM_BOYS.zscore.monthly-f3973b86.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-f82d7150.js → HEAD CIRCUM_BOYS.zscore.weekly-06decfa7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-58790894.js → HEAD CIRCUM_BOYS.zscore.yearly-30c1c612.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-0e139dc8.js → HEAD CIRCUM_GIRLS.percentile.monthly-e70f736b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d5514d70.js → HEAD CIRCUM_GIRLS.percentile.weekly-9b3f4929.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a3fd8f2c.js → HEAD CIRCUM_GIRLS.percentile.yearly-8764a3fe.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-8b0eb0e2.js → HEAD CIRCUM_GIRLS.zscore.monthly-2db94768.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-35db06f6.js → HEAD CIRCUM_GIRLS.zscore.weekly-16e27be7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-c3937d4a.js → HEAD CIRCUM_GIRLS.zscore.yearly-db9970f7.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-2cacb91e.js → HEIGHT_BOYS.percentile.monthly-b53bfbb8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-8ed632de.js → HEIGHT_BOYS.percentile.weekly-9b27ff84.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-48ef388e.js → HEIGHT_BOYS.percentile.yearly-f203e6f5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-eb7ba99e.js → HEIGHT_BOYS.zscore.monthly-45d96d41.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-6b18f2d1.js → HEIGHT_BOYS.zscore.weekly-f4a1465b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-60431d5a.js → HEIGHT_BOYS.zscore.yearly-d321b516.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-4a6bdebf.js → HEIGHT_GIRLS.percentile.monthly-2b783a87.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-45a5a7f2.js → HEIGHT_GIRLS.percentile.weekly-6c5e53f5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-abb3ff0e.js → HEIGHT_GIRLS.percentile.yearly-5dbbc837.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-927e672a.js → HEIGHT_GIRLS.zscore.monthly-efd8a561.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-a83d2d10.js → HEIGHT_GIRLS.zscore.weekly-bc0fbea1.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-e3d7adc6.js → HEIGHT_GIRLS.zscore.yearly-53027e33.js} +0 -0
- /package/build/esm/{Locale-9af5a865.js → Locale-595dbf86.js} +0 -0
- /package/build/esm/{Visible-036812d7.js → Visible-07bb611b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-28a32c60.js → WEIGHT_BOYS.percentile.monthly-725377f2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-50330c05.js → WEIGHT_BOYS.percentile.weekly-60a8cf7b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-bdfd44bb.js → WEIGHT_BOYS.percentile.yearly-41b49329.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6034bf8e.js → WEIGHT_BOYS.zscore.monthly-deff7a2d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-b86b0f3b.js → WEIGHT_BOYS.zscore.weekly-d6bdf248.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-76d1f2a0.js → WEIGHT_BOYS.zscore.yearly-90551913.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-7fefbd86.js → WEIGHT_GIRLS.percentile.monthly-5fabe10e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-78b7c5bc.js → WEIGHT_GIRLS.percentile.weekly-8a4b8a08.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-dd1818f9.js → WEIGHT_GIRLS.percentile.yearly-2976534f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-8b0c0b81.js → WEIGHT_GIRLS.zscore.monthly-2ae197e1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-f4df7c43.js → WEIGHT_GIRLS.zscore.weekly-ca6b05e4.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-d225f5bc.js → WEIGHT_GIRLS.zscore.yearly-53fbce6e.js} +0 -0
- /package/build/esm/{animation-f9dc8751.js → animation-b520f515.js} +0 -0
- /package/build/esm/{constants-c6d040ea.js → constants-40419601.js} +0 -0
- /package/build/esm/{constants-11d130e1.js → constants-5ca07e0f.js} +0 -0
- /package/build/esm/{constants-96ae5805.js → constants-67da6b98.js} +0 -0
- /package/build/esm/{dataTransform-699119e9.js → dataTransform-a7f250bd.js} +0 -0
- /package/build/esm/{doctor-5decb6fc.js → doctor-f818c162.js} +0 -0
- /package/build/esm/{index-a14c5323.js → index-30d6b511.js} +0 -0
- /package/build/esm/{index-93f9c443.js → index-3d43569d.js} +0 -0
- /package/build/esm/{index-c105f6d9.js → index-41c91a6f.js} +0 -0
- /package/build/esm/{index-ba09f096.js → index-5af0ca71.js} +0 -0
- /package/build/esm/{index-44a34716.js → index-a6df9a12.js} +0 -0
- /package/build/esm/{index-fba548ad.js → index-ab08ec85.js} +0 -0
- /package/build/esm/{index-ba767ef6.js → index-d2f7b12c.js} +0 -0
- /package/build/esm/{index-a9f2c0c0.js → index-db430970.js} +0 -0
- /package/build/esm/{index-20850554.js → index-de7b2aa2.js} +0 -0
- /package/build/esm/{index.styles-bb9dd3d5.js → index.styles-8d4e979e.js} +0 -0
- /package/build/esm/{localizeNumberFormat-3fbf4eed.js → localizeNumberFormat-38c95b56.js} +0 -0
- /package/build/esm/{normalizeLink-5d0070e3.js → normalizeLink-79d5a0f4.js} +0 -0
- /package/build/esm/{other-9d98da13.js → other-a1eb7254.js} +0 -0
- /package/build/esm/{paths-8b693af9.js → paths-b93bc511.js} +0 -0
- /package/build/esm/{translationsContext-d8513aa6.js → translationsContext-8e56089e.js} +0 -0
- /package/build/esm/{tslib.es6-4be8ac29.js → tslib.es6-4181b5d8.js} +0 -0
- /package/build/esm/{types-b0a5360b.js → types-b9c94bf1.js} +0 -0
- /package/build/esm/{useIsInit-5faa2fd9.js → useIsInit-fe95a127.js} +0 -0
- /package/build/esm/{useOutsideClick-e9e2a5c5.js → useOutsideClick-d1edf5b2.js} +0 -0
- /package/build/esm/{useScrollbarSize-ab153b62.js → useScrollbarSize-dbb5afeb.js} +0 -0
- /package/build/esm/{useUniqueId-3d06fba9.js → useUniqueId-5cae97a5.js} +0 -0
- /package/build/esm/{utils-4b75714f.js → utils-d0d3f106.js} +0 -0
- /package/build/{index-2801d121.js → index-2b7051b5.js} +0 -0
- /package/build/{index-31214098.js → index-3f1300bd.js} +0 -0
- /package/build/{index-cc9d18ca.js → index-596c6b6a.js} +0 -0
- /package/build/{index-07cc5600.js → index-78957b41.js} +0 -0
- /package/build/{index-aded33ff.js → index-945e0857.js} +0 -0
- /package/build/{index-780f8076.js → index-aab6dc3c.js} +0 -0
- /package/build/{index-7acfb670.js → index-af7af7b5.js} +0 -0
- /package/build/{index-56623bab.js → index-ba37e9ae.js} +0 -0
- /package/build/{index-60822319.js → index-cbc6166d.js} +0 -0
- /package/build/{index.styles-637eaf2a.js → index.styles-c79d3dc2.js} +0 -0
- /package/build/{localizeNumberFormat-828b6573.js → localizeNumberFormat-a01c8ad3.js} +0 -0
- /package/build/{normalizeLink-302ad858.js → normalizeLink-f72c9a67.js} +0 -0
- /package/build/{other-f27d54bd.js → other-cb07f868.js} +0 -0
- /package/build/{paths-0a3a3bc9.js → paths-8d7236a3.js} +0 -0
- /package/build/{translationsContext-d82d112f.js → translationsContext-7789d991.js} +0 -0
- /package/build/{tslib.es6-d141a908.js → tslib.es6-46b41848.js} +0 -0
- /package/build/{types-c88c2911.js → types-832a2d92.js} +0 -0
- /package/build/{useIsInit-1ec092aa.js → useIsInit-a6a4bce1.js} +0 -0
- /package/build/{useOutsideClick-e2d13ac1.js → useOutsideClick-196e9e59.js} +0 -0
- /package/build/{useScrollbarSize-c5c1019b.js → useScrollbarSize-5900ef00.js} +0 -0
- /package/build/{useUniqueId-710dffb2.js → useUniqueId-b249bde9.js} +0 -0
- /package/build/{utils-8fe6dee5.js → utils-68159a6d.js} +0 -0
package/build/esm/ssoV2.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-4181b5d8.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useState, useCallback, forwardRef } from 'react';
|
|
3
|
-
import { I as Input, s as styles, O as OTP, f as PasswordInput, E as ErrorBoundary } from './index-
|
|
4
|
-
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, f as fetchSSOV2Api, w as websiteId, b as SSO_V2_PATHS, c as checkUserExist,
|
|
5
|
-
export { u as useSSOV2Store } from './store-
|
|
3
|
+
import { I as Input, s as styles, O as OTP, f as PasswordInput, E as ErrorBoundary } from './index-ee4ae5cd.js';
|
|
4
|
+
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, f as fetchSSOV2Api, w as websiteId, b as SSO_V2_PATHS, c as checkUserExist, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, d as updateUserInfo, e as isPhoneNotVerifedYet, j as isLoginWithPhoneNotVerifedYet, k as isFlowFinishedSetup, r as resetPassword, l as redirect } from './store-7050cdd7.js';
|
|
5
|
+
export { u as useSSOV2Store } from './store-7050cdd7.js';
|
|
6
6
|
import { ChevronLeft } from '@hhgtech/icons/arrow';
|
|
7
7
|
import { Close, Search, ReplySquare } from '@hhgtech/icons/core';
|
|
8
|
-
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES } from './index-
|
|
9
|
-
import { L as LogoIcon } from './logoIcon-
|
|
10
|
-
import { B as Button } from './index-
|
|
11
|
-
import { M as Modal } from './index-
|
|
8
|
+
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES } from './index-bb78da52.js';
|
|
9
|
+
import { L as LogoIcon } from './logoIcon-fc46d7af.js';
|
|
10
|
+
import { B as Button } from './index-4c3ab54b.js';
|
|
11
|
+
import { M as Modal } from './index-8b7d2189.js';
|
|
12
12
|
import { Stack, Flex, Box, Group, Divider } from '@mantine/core';
|
|
13
13
|
import '@mantine/dates';
|
|
14
|
-
import './index-
|
|
15
|
-
import './index-
|
|
16
|
-
import { s as showNotification } from './useMantineLocale-
|
|
17
|
-
import { T as Text } from './index-
|
|
18
|
-
import { u as useTranslations } from './index-
|
|
14
|
+
import './index-6231a11e.js';
|
|
15
|
+
import './index-5af0ca71.js';
|
|
16
|
+
import { s as showNotification } from './useMantineLocale-2a2344ad.js';
|
|
17
|
+
import { T as Text } from './index-6d48235c.js';
|
|
18
|
+
import { u as useTranslations } from './index-12ce269f.js';
|
|
19
19
|
import '@mantine/hooks';
|
|
20
|
-
import './utils-
|
|
21
|
-
import './other-
|
|
22
|
-
import './index-
|
|
23
|
-
import { L as LOCALE } from './Locale-
|
|
24
|
-
import { G as Google, F as Facebook } from './Google-
|
|
20
|
+
import './utils-d0d3f106.js';
|
|
21
|
+
import './other-a1eb7254.js';
|
|
22
|
+
import './index-6ff727f1.js';
|
|
23
|
+
import { L as LOCALE } from './Locale-595dbf86.js';
|
|
24
|
+
import { G as Google, F as Facebook } from './Google-1d881f82.js';
|
|
25
25
|
import { parsePhoneNumber, getCountryCallingCode } from 'react-phone-number-input';
|
|
26
26
|
import styled from '@emotion/styled';
|
|
27
27
|
import cn from 'classnames';
|
|
@@ -29,28 +29,28 @@ import { CaretDown } from '@hhgtech/icons/other';
|
|
|
29
29
|
import debounce from 'lodash/debounce';
|
|
30
30
|
import throttle from 'lodash/throttle';
|
|
31
31
|
import Flags from 'react-phone-number-input/flags';
|
|
32
|
-
import { u as useScreenSize } from './useScreenSize-
|
|
32
|
+
import { u as useScreenSize } from './useScreenSize-1198c3b9.js';
|
|
33
33
|
import { Drawer } from 'vaul';
|
|
34
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
35
|
-
import { S as Spoiler } from './index-
|
|
34
|
+
import { M as MAPPED_LOCALE } from './utils-42f403eb.js';
|
|
35
|
+
import { S as Spoiler } from './index-75add141.js';
|
|
36
36
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
37
37
|
import { useForm, yupResolver } from '@mantine/form';
|
|
38
38
|
import * as yup from 'yup';
|
|
39
39
|
import dayjs from 'dayjs';
|
|
40
|
-
import { D as DatePicker } from './index-
|
|
40
|
+
import { D as DatePicker } from './index-8149a2d6.js';
|
|
41
41
|
import '@mantine/carousel';
|
|
42
42
|
import './miscTheme.js';
|
|
43
|
-
import './useUniqueId-
|
|
43
|
+
import './useUniqueId-5cae97a5.js';
|
|
44
44
|
import './constantsSite.js';
|
|
45
45
|
import 'zustand';
|
|
46
46
|
import './constantsIsProduction.js';
|
|
47
|
-
import './normalizeLink-
|
|
47
|
+
import './normalizeLink-79d5a0f4.js';
|
|
48
48
|
import './miscCookieHelper.js';
|
|
49
49
|
import 'date-fns/locale';
|
|
50
50
|
import './constantsRiskScreener.js';
|
|
51
|
-
import './index.styles-
|
|
51
|
+
import './index.styles-8d4e979e.js';
|
|
52
52
|
import '@mantine/notifications';
|
|
53
|
-
import './translationsContext-
|
|
53
|
+
import './translationsContext-8e56089e.js';
|
|
54
54
|
|
|
55
55
|
const SSOStateContext = createContext({
|
|
56
56
|
locale: LOCALE.Vietnam,
|
|
@@ -208,8 +208,7 @@ const isSocialFlowFn = (flowData) => {
|
|
|
208
208
|
const isPhoneFlowFn = (flowData) => {
|
|
209
209
|
return ((flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'sms' ||
|
|
210
210
|
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'zalo' ||
|
|
211
|
-
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone'
|
|
212
|
-
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'whatsapp');
|
|
211
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone');
|
|
213
212
|
};
|
|
214
213
|
const isEmailFlowFn = (flowData) => {
|
|
215
214
|
return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'email';
|
|
@@ -681,7 +680,7 @@ const SSOEmailScreen = ({ hidden, }) => {
|
|
|
681
680
|
React__default.createElement(Stack, { spacing: 8 },
|
|
682
681
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.email.title')),
|
|
683
682
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.email.description'))),
|
|
684
|
-
React__default.createElement(Input, { name: "email", placeholder:
|
|
683
|
+
React__default.createElement(Input, { name: "email", placeholder: "Email c\u1EE7a b\u1EA1n", error: errMsg || undefined, type: "email", required: true, mt: 24, disabled: loading, onChange: () => setErrMsg(''), "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Email" }),
|
|
685
684
|
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Verify Your Email" }, t('ssov2.email.button'))));
|
|
686
685
|
};
|
|
687
686
|
|
|
@@ -784,59 +783,6 @@ const loginBySocial = (token, social) => __awaiter(void 0, void 0, void 0, funct
|
|
|
784
783
|
});
|
|
785
784
|
});
|
|
786
785
|
|
|
787
|
-
// "phone_number": "906911910",
|
|
788
|
-
// "area_code":"+84",
|
|
789
|
-
const registerBySendWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
790
|
-
const formData = new FormData();
|
|
791
|
-
formData.append('phone_number', phone);
|
|
792
|
-
formData.append('area_code', areaCode);
|
|
793
|
-
formData.append('website_id', websiteId);
|
|
794
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.REGISTER_BY_SEND_OTP, {
|
|
795
|
-
method: 'POST',
|
|
796
|
-
body: formData,
|
|
797
|
-
});
|
|
798
|
-
});
|
|
799
|
-
// "phone_number": "906911910",
|
|
800
|
-
// "area_code":"+84",
|
|
801
|
-
const resendWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
802
|
-
const formData = new FormData();
|
|
803
|
-
formData.append('phone_number', phone);
|
|
804
|
-
formData.append('area_code', areaCode);
|
|
805
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.SEND_OTP, {
|
|
806
|
-
method: 'POST',
|
|
807
|
-
body: formData,
|
|
808
|
-
});
|
|
809
|
-
});
|
|
810
|
-
const resendUpdatePhoneWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
811
|
-
const formData = new FormData();
|
|
812
|
-
formData.append('phone_number', phone);
|
|
813
|
-
formData.append('area_code', areaCode);
|
|
814
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.UPDATE_PHONE_SEND_OTP, {
|
|
815
|
-
method: 'POST',
|
|
816
|
-
body: formData,
|
|
817
|
-
});
|
|
818
|
-
});
|
|
819
|
-
const verifyUpdatePhoneWhatsAppOTP = (phone, areaCode, otpCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
820
|
-
const formData = new FormData();
|
|
821
|
-
formData.append('phone_number', phone);
|
|
822
|
-
formData.append('otp_code', otpCode);
|
|
823
|
-
formData.append('area_code', areaCode);
|
|
824
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.UPDATE_PHONE_VERIFY_OTP, {
|
|
825
|
-
method: 'POST',
|
|
826
|
-
body: formData,
|
|
827
|
-
});
|
|
828
|
-
});
|
|
829
|
-
const verifyByWhatsAppOTP = (phone, areaCode, otpCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
830
|
-
const formData = new FormData();
|
|
831
|
-
formData.append('otp_code', otpCode);
|
|
832
|
-
formData.append('phone_number', phone);
|
|
833
|
-
formData.append('area_code', areaCode);
|
|
834
|
-
return fetchSSOV2Api(SSO_V2_PATHS.WHATSAPP.VERIFY_BY_OTP, {
|
|
835
|
-
method: 'POST',
|
|
836
|
-
body: formData,
|
|
837
|
-
});
|
|
838
|
-
});
|
|
839
|
-
|
|
840
786
|
// "phone_number": "906911910",
|
|
841
787
|
// "area_code":"+84",
|
|
842
788
|
const registerBySendZaloOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -893,16 +839,6 @@ const verifyUpdatePhoneZaloOTP = (phone, areaCode, otpCode) => __awaiter(void 0,
|
|
|
893
839
|
});
|
|
894
840
|
});
|
|
895
841
|
|
|
896
|
-
// VietNam: Zalo - SMS
|
|
897
|
-
// Info: WhatsApp
|
|
898
|
-
// Malay: WhatsApp và SMS
|
|
899
|
-
const isFeatureWhatsAppEnabled = [
|
|
900
|
-
LOCALE.Indonesia,
|
|
901
|
-
LOCALE.Malaysia,
|
|
902
|
-
].includes(locale);
|
|
903
|
-
const isFeatureSMSEnabled = [LOCALE.Vietnam, LOCALE.Malaysia].includes(locale);
|
|
904
|
-
const isFeatureZaloEnabled = [LOCALE.Vietnam].includes(locale);
|
|
905
|
-
|
|
906
842
|
const MailIcon = (props) => (React__default.createElement("svg", Object.assign({ width: "21", height: "20", viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, props),
|
|
907
843
|
React__default.createElement("path", { d: "M15.043 2.56348H6.29297C3.66797 2.56348 1.91797 3.87598 1.91797 6.93848V13.0635C1.91797 16.126 3.66797 17.4385 6.29297 17.4385H15.043C17.668 17.4385 19.418 16.126 19.418 13.0635V6.93848C19.418 3.87598 17.668 2.56348 15.043 2.56348ZM15.4542 7.89223L12.7155 10.0797C12.138 10.5435 11.403 10.771 10.668 10.771C9.93297 10.771 9.18922 10.5435 8.62047 10.0797L5.88172 7.89223C5.60172 7.66473 5.55797 7.24473 5.77672 6.96473C6.00422 6.68473 6.41547 6.63223 6.69547 6.85973L9.43422 9.04723C10.0992 9.58098 11.228 9.58098 11.893 9.04723L14.6317 6.85973C14.9117 6.63223 15.3317 6.67598 15.5505 6.96473C15.778 7.24473 15.7342 7.66473 15.4542 7.89223Z", fill: "#00B16A" })));
|
|
908
844
|
|
|
@@ -2340,12 +2276,6 @@ const StyledPhone = styled(PhoneWithCustomCountrySelect) `
|
|
|
2340
2276
|
}
|
|
2341
2277
|
`;
|
|
2342
2278
|
|
|
2343
|
-
const WhatsApp = ({ size = 20 }) => {
|
|
2344
|
-
return (React__default.createElement("svg", { width: (size * 19) / 18, height: size, viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
2345
|
-
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.92578 1.07422C5.78895 1.07422 2.42578 4.43738 2.42578 8.57422C2.42578 10.0305 2.83992 11.4277 3.62269 12.6382L2.48494 15.1458C2.38027 15.3779 2.41668 15.6464 2.58506 15.8421C2.71249 15.9923 2.89453 16.0742 3.08112 16.0742C3.14028 16.0742 3.19489 16.0651 3.25406 16.0515L6.39423 15.1913C7.47736 15.7693 8.69247 16.0742 9.92578 16.0742C14.0626 16.0742 17.4258 12.711 17.4258 8.57422C17.4258 4.44193 14.0626 1.07422 9.92578 1.07422ZM9.92578 14.7635C8.82899 14.7635 7.75497 14.4723 6.80836 13.9216C6.70824 13.8624 6.59447 13.8306 6.47614 13.8306C6.41698 13.8306 6.35782 13.8397 6.30321 13.8533L4.25072 14.4177L4.96522 12.843C5.06079 12.6291 5.03804 12.3788 4.90151 12.1877C4.13695 11.1273 3.73191 9.88035 3.73191 8.56967C3.73191 5.15644 6.508 2.38035 9.92123 2.38035C13.3345 2.38035 16.1105 5.15644 16.1105 8.56967C16.1151 11.9874 13.339 14.7635 9.92578 14.7635Z", fill: "currentColor" }),
|
|
2346
|
-
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M12.8115 9.69834C12.4975 9.51175 12.0879 9.30241 11.7193 9.4526C11.4371 9.57092 11.2551 10.0124 11.0685 10.2399C10.9729 10.3582 10.8637 10.3764 10.7181 10.3173C9.65315 9.89404 8.83397 9.17954 8.2469 8.20108C8.14678 8.0509 8.16498 7.92802 8.2833 7.78694C8.46079 7.57759 8.68379 7.34095 8.73385 7.05879C8.78391 6.77663 8.65193 6.44896 8.53361 6.19865C8.38343 5.88009 8.21959 5.42043 7.89647 5.2384C7.60066 5.07001 7.21383 5.16558 6.94987 5.37948C6.49477 5.74811 6.27633 6.33063 6.28543 6.90405C6.28543 7.06788 6.30818 7.23172 6.34459 7.38645C6.43561 7.76418 6.6131 8.11916 6.80879 8.45593C6.95897 8.71079 7.11826 8.95654 7.29119 9.19319C7.86006 9.96685 8.57002 10.6404 9.38919 11.141C9.79878 11.3913 10.2402 11.6143 10.6999 11.7645C11.2141 11.9329 11.6692 12.1104 12.2244 12.0057C12.8024 11.8965 13.3758 11.5369 13.6079 10.9772C13.6762 10.8133 13.7081 10.6267 13.6717 10.4538C13.5897 10.0897 13.1028 9.87128 12.8115 9.69834Z", fill: "currentColor" })));
|
|
2347
|
-
};
|
|
2348
|
-
|
|
2349
2279
|
const Zalo = ({ size = 20, useCurrentColor = false }) => {
|
|
2350
2280
|
const color = useCurrentColor ? 'currentColor' : '#0068FF';
|
|
2351
2281
|
return (React__default.createElement("svg", { width: (size * 21) / 20, height: size, viewBox: "0 0 21 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -2546,7 +2476,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2546
2476
|
}
|
|
2547
2477
|
setLoading(false);
|
|
2548
2478
|
});
|
|
2549
|
-
const
|
|
2479
|
+
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2550
2480
|
var _e, _f;
|
|
2551
2481
|
setLoading(true);
|
|
2552
2482
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
@@ -2558,69 +2488,6 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2558
2488
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2559
2489
|
const provider = (_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider;
|
|
2560
2490
|
if ((_f = userExist._data) === null || _f === void 0 ? void 0 : _f.is_pass) {
|
|
2561
|
-
useSSOV2Store.setState({
|
|
2562
|
-
flowData: {
|
|
2563
|
-
method: 'whatsapp',
|
|
2564
|
-
flow: 'login',
|
|
2565
|
-
metaData: userExist._data,
|
|
2566
|
-
},
|
|
2567
|
-
});
|
|
2568
|
-
addStep({
|
|
2569
|
-
type: SSOStepTypeType.PASSWORD,
|
|
2570
|
-
config: {
|
|
2571
|
-
phone,
|
|
2572
|
-
method: 'whatsapp',
|
|
2573
|
-
},
|
|
2574
|
-
});
|
|
2575
|
-
goNext();
|
|
2576
|
-
}
|
|
2577
|
-
else {
|
|
2578
|
-
let res;
|
|
2579
|
-
if (!provider) {
|
|
2580
|
-
res = yield registerBySendWhatsAppOTP(phoneNumber, areaCode);
|
|
2581
|
-
}
|
|
2582
|
-
else {
|
|
2583
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2584
|
-
}
|
|
2585
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
2586
|
-
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
2587
|
-
return setLoading(false);
|
|
2588
|
-
}
|
|
2589
|
-
useSSOV2Store.setState({
|
|
2590
|
-
flowData: {
|
|
2591
|
-
method: 'whatsapp',
|
|
2592
|
-
flow: 'signup',
|
|
2593
|
-
metaData: userExist._data,
|
|
2594
|
-
},
|
|
2595
|
-
});
|
|
2596
|
-
addStep({
|
|
2597
|
-
type: SSOStepTypeType.OTP,
|
|
2598
|
-
config: {
|
|
2599
|
-
phone,
|
|
2600
|
-
otpType: 'phone-whatsapp',
|
|
2601
|
-
afterAction: 'forgot',
|
|
2602
|
-
},
|
|
2603
|
-
});
|
|
2604
|
-
goNext();
|
|
2605
|
-
}
|
|
2606
|
-
}
|
|
2607
|
-
else {
|
|
2608
|
-
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
2609
|
-
}
|
|
2610
|
-
setLoading(false);
|
|
2611
|
-
});
|
|
2612
|
-
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2613
|
-
var _g, _h;
|
|
2614
|
-
setLoading(true);
|
|
2615
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2616
|
-
if (!areaCode || !phoneNumber || !phone) {
|
|
2617
|
-
setErrMsg(t('ssov2.validate.phone.required'));
|
|
2618
|
-
return setLoading(false);
|
|
2619
|
-
}
|
|
2620
|
-
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2621
|
-
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2622
|
-
const provider = (_g = userExist._data) === null || _g === void 0 ? void 0 : _g.provider;
|
|
2623
|
-
if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
|
|
2624
2491
|
useSSOV2Store.setState({
|
|
2625
2492
|
flowData: {
|
|
2626
2493
|
method: 'sms',
|
|
@@ -2673,7 +2540,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2673
2540
|
setLoading(false);
|
|
2674
2541
|
});
|
|
2675
2542
|
const onClickLoginWithPhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2676
|
-
var
|
|
2543
|
+
var _g, _h;
|
|
2677
2544
|
setLoading(true);
|
|
2678
2545
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2679
2546
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2682,7 +2549,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2682
2549
|
}
|
|
2683
2550
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2684
2551
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2685
|
-
if (!userExist._data || !((
|
|
2552
|
+
if (!userExist._data || !((_g = userExist._data) === null || _g === void 0 ? void 0 : _g.is_pass)) {
|
|
2686
2553
|
showNotification({
|
|
2687
2554
|
message: t('ssov2.first.noAccountOrPass'),
|
|
2688
2555
|
type: 'danger',
|
|
@@ -2690,7 +2557,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2690
2557
|
setActiveTab('signup');
|
|
2691
2558
|
return setLoading(false);
|
|
2692
2559
|
}
|
|
2693
|
-
if ((
|
|
2560
|
+
if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
|
|
2694
2561
|
useSSOV2Store.setState({
|
|
2695
2562
|
flowData: {
|
|
2696
2563
|
method: 'phone',
|
|
@@ -2786,13 +2653,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2786
2653
|
};
|
|
2787
2654
|
}, [activeTab]) }))),
|
|
2788
2655
|
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickLoginWithPhone, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue Login", display: activeTab === 'login' ? 'block' : 'none' }, t('ssov2.button.continue')),
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
// data-event-action={trackingAction}
|
|
2792
|
-
// data-event-label="Continue with Zalo"
|
|
2793
|
-
display: activeTab === 'signup' ? 'block' : 'none', leftIcon: React__default.createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.otp.whatsapp'))),
|
|
2794
|
-
isFeatureZaloEnabled && (React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo", display: activeTab === 'signup' ? 'block' : 'none', leftIcon: React__default.createElement(Zalo, null) }, t('ssov2.button.otp.zalo'))),
|
|
2795
|
-
isFeatureSMSEnabled && (React__default.createElement(Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", display: activeTab === 'signup' ? 'block' : 'none', style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.otp.sms')))),
|
|
2656
|
+
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo", display: activeTab === 'signup' ? 'block' : 'none', leftIcon: React__default.createElement(Zalo, null) }, t('ssov2.button.otp.zalo')),
|
|
2657
|
+
React__default.createElement(Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", display: activeTab === 'signup' ? 'block' : 'none', style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.otp.sms'))),
|
|
2796
2658
|
React__default.createElement(Divider, { color: "#E4E8EC", display: activeTab === 'signup' ? 'block' : 'none' }),
|
|
2797
2659
|
React__default.createElement(Stack, { spacing: 16, align: "center" },
|
|
2798
2660
|
React__default.createElement(Text, { size: "p4", color: "gray.4" }, t('ssov2.orContinueWith')),
|
|
@@ -2901,7 +2763,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2901
2763
|
const isEmail = otpType === 'email' || otpType === 'update-email';
|
|
2902
2764
|
const isZalo = otpType === 'phone-zalo';
|
|
2903
2765
|
const isSMS = otpType === 'phone-sms';
|
|
2904
|
-
const isWhatsApp = otpType === 'phone-whatsapp';
|
|
2905
2766
|
const trackingMethod = flowData === null || flowData === void 0 ? void 0 : flowData.method;
|
|
2906
2767
|
const trackingCategory = userInfo && !userInfo.first_time_login
|
|
2907
2768
|
? `SSO - Existing User via ${trackingMethod}`
|
|
@@ -2910,7 +2771,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2910
2771
|
: `SSO - Sign In via ${trackingMethod}`;
|
|
2911
2772
|
const trackingAction = isEmail
|
|
2912
2773
|
? 'Verify Your Email'
|
|
2913
|
-
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' :
|
|
2774
|
+
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' : ''}`;
|
|
2914
2775
|
useEffect(() => {
|
|
2915
2776
|
if (!hidden) {
|
|
2916
2777
|
setError('');
|
|
@@ -2944,9 +2805,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2944
2805
|
else if (otpType === 'phone-zalo') {
|
|
2945
2806
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
2946
2807
|
}
|
|
2947
|
-
else if (otpType === 'phone-whatsapp') {
|
|
2948
|
-
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
2949
|
-
}
|
|
2950
2808
|
}
|
|
2951
2809
|
else {
|
|
2952
2810
|
if (otpType === 'phone-sms') {
|
|
@@ -2955,9 +2813,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2955
2813
|
else if (otpType === 'phone-zalo') {
|
|
2956
2814
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
2957
2815
|
}
|
|
2958
|
-
else if (otpType === 'phone-whatsapp') {
|
|
2959
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2960
|
-
}
|
|
2961
2816
|
else if (otpType === 'email') {
|
|
2962
2817
|
res = yield resendEmailOTP(email);
|
|
2963
2818
|
}
|
|
@@ -2996,9 +2851,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2996
2851
|
else if (otpType === 'phone-zalo') {
|
|
2997
2852
|
res = yield verifyUpdatePhoneZaloOTP(phoneNumber, areaCode, otp);
|
|
2998
2853
|
}
|
|
2999
|
-
else if (otpType === 'phone-whatsapp') {
|
|
3000
|
-
res = yield verifyUpdatePhoneWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3001
|
-
}
|
|
3002
2854
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
3003
2855
|
if (afterAction === 'setup') {
|
|
3004
2856
|
const userInfo = yield getUserInfo();
|
|
@@ -3024,7 +2876,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3024
2876
|
const needPass = (flowData.method === 'email' ||
|
|
3025
2877
|
flowData.method === 'zalo' ||
|
|
3026
2878
|
flowData.method === 'sms' ||
|
|
3027
|
-
flowData.method === 'whatsapp' ||
|
|
3028
2879
|
flowData.method === 'phone' ||
|
|
3029
2880
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
3030
2881
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3083,9 +2934,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3083
2934
|
else if (otpType === 'phone-zalo') {
|
|
3084
2935
|
res = yield verifyByZaloOTP(phoneNumber, areaCode, otp);
|
|
3085
2936
|
}
|
|
3086
|
-
else if (otpType === 'phone-whatsapp') {
|
|
3087
|
-
res = yield verifyByWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3088
|
-
}
|
|
3089
2937
|
else if (otpType === 'email') {
|
|
3090
2938
|
res = yield verifyByEmailOTP(email, otp);
|
|
3091
2939
|
}
|
|
@@ -3108,15 +2956,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3108
2956
|
addStepAndGoNext({
|
|
3109
2957
|
type: SSOStepTypeType.FORGOT_PASSWORD_SETUP,
|
|
3110
2958
|
config: {
|
|
3111
|
-
provider: isZalo
|
|
3112
|
-
? 'Zalo'
|
|
3113
|
-
: isSMS
|
|
3114
|
-
? 'SMS'
|
|
3115
|
-
: isWhatsApp
|
|
3116
|
-
? 'WhatsApp'
|
|
3117
|
-
: isEmail
|
|
3118
|
-
? 'Email'
|
|
3119
|
-
: '',
|
|
2959
|
+
provider: isZalo ? 'Zalo' : isSMS ? 'SMS' : isEmail ? 'Email' : '',
|
|
3120
2960
|
},
|
|
3121
2961
|
});
|
|
3122
2962
|
}
|
|
@@ -3144,7 +2984,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3144
2984
|
const needPass = (flowData.method === 'email' ||
|
|
3145
2985
|
flowData.method === 'zalo' ||
|
|
3146
2986
|
flowData.method === 'sms' ||
|
|
3147
|
-
flowData.method === 'whatsapp' ||
|
|
3148
2987
|
flowData.method === 'phone' ||
|
|
3149
2988
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
3150
2989
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3185,12 +3024,13 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3185
3024
|
}
|
|
3186
3025
|
setLoading(false);
|
|
3187
3026
|
});
|
|
3188
|
-
const
|
|
3027
|
+
const swapZaloSms = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3189
3028
|
if (isEmail)
|
|
3190
3029
|
return;
|
|
3191
3030
|
setLoading(true);
|
|
3192
3031
|
try {
|
|
3193
3032
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3033
|
+
const newType = otpType === 'phone-sms' ? 'phone-zalo' : 'phone-sms';
|
|
3194
3034
|
let res;
|
|
3195
3035
|
if (isUpdatePhone) {
|
|
3196
3036
|
if (newType === 'phone-sms') {
|
|
@@ -3199,9 +3039,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3199
3039
|
else if (newType === 'phone-zalo') {
|
|
3200
3040
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
3201
3041
|
}
|
|
3202
|
-
else if (newType === 'phone-whatsapp') {
|
|
3203
|
-
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3204
|
-
}
|
|
3205
3042
|
}
|
|
3206
3043
|
else {
|
|
3207
3044
|
if (newType === 'phone-sms') {
|
|
@@ -3210,9 +3047,6 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3210
3047
|
else if (newType === 'phone-zalo') {
|
|
3211
3048
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
3212
3049
|
}
|
|
3213
|
-
else if (newType === 'phone-whatsapp') {
|
|
3214
|
-
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3215
|
-
}
|
|
3216
3050
|
}
|
|
3217
3051
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3218
3052
|
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
@@ -3262,13 +3096,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3262
3096
|
: 'ssov2.otp.phone.description', {
|
|
3263
3097
|
email,
|
|
3264
3098
|
phone,
|
|
3265
|
-
method:
|
|
3266
|
-
? 'SMS'
|
|
3267
|
-
: isZalo
|
|
3268
|
-
? 'Zalo'
|
|
3269
|
-
: isWhatsApp
|
|
3270
|
-
? 'WhatsApp'
|
|
3271
|
-
: '',
|
|
3099
|
+
method: otpType === 'phone-sms' ? 'SMS' : 'Zalo',
|
|
3272
3100
|
}),
|
|
3273
3101
|
} }))),
|
|
3274
3102
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
@@ -3298,20 +3126,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3298
3126
|
count: resendTime,
|
|
3299
3127
|
})))),
|
|
3300
3128
|
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", mt: 12, fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue", ref: submitButtonRef }, t('ssov2.button.continue')),
|
|
3301
|
-
!isEmail && (React__default.createElement(React__default.
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
// data-event-action={trackingAction}
|
|
3305
|
-
// data-event-label="Continue with WhatsApp"
|
|
3306
|
-
display: !isWhatsApp ? 'block' : 'none', leftIcon: React__default.createElement(WhatsApp, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3307
|
-
method: 'WhatsApp',
|
|
3308
|
-
}))),
|
|
3309
|
-
isFeatureZaloEnabled && (React__default.createElement(Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-zalo'), loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Send OTP Code via Zalo", display: !isZalo ? 'block' : 'none', leftIcon: React__default.createElement(Zalo, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3310
|
-
method: 'Zalo',
|
|
3311
|
-
}))),
|
|
3312
|
-
isFeatureSMSEnabled && (React__default.createElement(Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-sms'), loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Send OTP Code via SMS", display: !isSMS ? 'block' : 'none', leftIcon: React__default.createElement(ReplySquare, { size: 18 }), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3313
|
-
method: 'SMS',
|
|
3314
|
-
})))))));
|
|
3129
|
+
!isEmail && (React__default.createElement(Button, { size: "sm", variant: "white", mt: 12, onClick: swapZaloSms, fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": `Send OTP Code via ${otpType === 'phone-sms' ? 'Zalo' : 'SMS'}`, leftIcon: otpType === 'phone-sms' ? (React__default.createElement(Zalo, { size: 18, useCurrentColor: true })) : (React__default.createElement(ReplySquare, { size: 18 })), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3130
|
+
method: otpType === 'phone-sms' ? 'Zalo' : 'SMS',
|
|
3131
|
+
})))));
|
|
3315
3132
|
};
|
|
3316
3133
|
|
|
3317
3134
|
const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
@@ -3938,48 +3755,6 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3938
3755
|
}
|
|
3939
3756
|
setLoading(false);
|
|
3940
3757
|
});
|
|
3941
|
-
const onClickContinueWhatsApp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3942
|
-
setLoading(true);
|
|
3943
|
-
try {
|
|
3944
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3945
|
-
if (!areaCode || !phoneNumber || !phone) {
|
|
3946
|
-
setErrMsg(t('ssov2.validate.phone.required'));
|
|
3947
|
-
return setLoading(false);
|
|
3948
|
-
}
|
|
3949
|
-
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
3950
|
-
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3951
|
-
if (!userExist._data) {
|
|
3952
|
-
const res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3953
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3954
|
-
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
3955
|
-
return setLoading(false);
|
|
3956
|
-
}
|
|
3957
|
-
addStep({
|
|
3958
|
-
type: SSOStepTypeType.OTP,
|
|
3959
|
-
config: {
|
|
3960
|
-
provider,
|
|
3961
|
-
phone,
|
|
3962
|
-
otpType: 'phone-whatsapp',
|
|
3963
|
-
isUpdatePhone: true,
|
|
3964
|
-
afterAction: afterAction || 'setup',
|
|
3965
|
-
},
|
|
3966
|
-
});
|
|
3967
|
-
goNext();
|
|
3968
|
-
}
|
|
3969
|
-
else {
|
|
3970
|
-
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
3971
|
-
}
|
|
3972
|
-
}
|
|
3973
|
-
else {
|
|
3974
|
-
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
3975
|
-
}
|
|
3976
|
-
}
|
|
3977
|
-
catch (e) {
|
|
3978
|
-
console.log(e);
|
|
3979
|
-
setErrMsg(getErrorTextFromCode(t, ''));
|
|
3980
|
-
}
|
|
3981
|
-
setLoading(false);
|
|
3982
|
-
});
|
|
3983
3758
|
return (React__default.createElement("div", { style: {
|
|
3984
3759
|
display: hidden ? 'none' : 'block',
|
|
3985
3760
|
} },
|
|
@@ -4001,9 +3776,8 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
4001
3776
|
'data-event-category': trackingCategory,
|
|
4002
3777
|
};
|
|
4003
3778
|
}, []) })),
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
isFeatureSMSEnabled && (React__default.createElement(Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS'))),
|
|
3779
|
+
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueZalo, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with Zalo", leftIcon: React__default.createElement(Zalo, null) }, t('ssov2.button.continueZalo')),
|
|
3780
|
+
React__default.createElement(Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS')),
|
|
4007
3781
|
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null)))));
|
|
4008
3782
|
};
|
|
4009
3783
|
|
|
@@ -4322,7 +4096,7 @@ const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
|
4322
4096
|
React__default.createElement(Stack, { spacing: 8 },
|
|
4323
4097
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.updateEmail.title')),
|
|
4324
4098
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.updateEmail.description'))),
|
|
4325
|
-
React__default.createElement(Input, { name: "email", placeholder:
|
|
4099
|
+
React__default.createElement(Input, { name: "email", placeholder: "Email c\u1EE7a b\u1EA1n", error: errMsg || undefined, type: "email", required: true, mt: 24, onChange: () => setErrMsg(''), disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Email" }),
|
|
4326
4100
|
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Verify Your Email" }, t('ssov2.updateEmail.button'))));
|
|
4327
4101
|
};
|
|
4328
4102
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter } from './tslib.es6-4181b5d8.js';
|
|
2
2
|
import { create } from 'zustand';
|
|
3
3
|
import { isProduction } from './constantsIsProduction.js';
|
|
4
|
-
import { e as normalizeLinkSlash, a as getCurrentSsoUrl } from './normalizeLink-
|
|
5
|
-
import { L as LOCALE_SPECS, B as BEARER_REFRESH_TOKEN_COOKIE, d as BEARER_TOKEN_COOKIE$1 } from './index-
|
|
4
|
+
import { e as normalizeLinkSlash, a as getCurrentSsoUrl } from './normalizeLink-79d5a0f4.js';
|
|
5
|
+
import { L as LOCALE_SPECS, B as BEARER_REFRESH_TOKEN_COOKIE, d as BEARER_TOKEN_COOKIE$1 } from './index-bb78da52.js';
|
|
6
6
|
import { setCookie, getCookie } from './miscCookieHelper.js';
|
|
7
7
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
8
8
|
|
|
@@ -22,13 +22,6 @@ const SSO_V2_PATHS = {
|
|
|
22
22
|
UPDATE_PHONE_SEND_OTP: 'login/sms-social/sent-otp',
|
|
23
23
|
UPDATE_PHONE_VERIFY_OTP: 'login/sms-social/phone-verify-code',
|
|
24
24
|
},
|
|
25
|
-
WHATSAPP: {
|
|
26
|
-
REGISTER_BY_SEND_OTP: 'login/login-with-whatsapp',
|
|
27
|
-
SEND_OTP: 'login/whatsapp/sent-otp',
|
|
28
|
-
UPDATE_PHONE_SEND_OTP: 'login/sms-social/whatsapp/sent-otp',
|
|
29
|
-
UPDATE_PHONE_VERIFY_OTP: 'login/sms-social/whatsapp-verify-code',
|
|
30
|
-
VERIFY_BY_OTP: 'login/whatsapp-verify-code',
|
|
31
|
-
},
|
|
32
25
|
ZALO: {
|
|
33
26
|
REGISTER_BY_SEND_OTP: 'login/login-with-zalo',
|
|
34
27
|
SEND_OTP: 'login/zalo/sent-otp',
|
|
@@ -47,7 +40,7 @@ const SSO_V2_PATHS = {
|
|
|
47
40
|
},
|
|
48
41
|
};
|
|
49
42
|
|
|
50
|
-
const locale = process.env.
|
|
43
|
+
const locale = process.env.UNIFY_LOCALE || 'vi-VN';
|
|
51
44
|
const websiteId = LOCALE_SPECS[locale].SITE_ID;
|
|
52
45
|
LOCALE_SPECS[locale].PHONE;
|
|
53
46
|
const getSSOV2ApiUrl = (path) => {
|
|
@@ -161,14 +154,14 @@ const handleAuthSuccess = (res) => {
|
|
|
161
154
|
setCookie(BEARER_TOKEN_COOKIE, res.token, {
|
|
162
155
|
domain: window.location.hostname === 'localhost'
|
|
163
156
|
? 'localhost'
|
|
164
|
-
: `.${domainLocales[
|
|
157
|
+
: `.${domainLocales[process.env.UNIFY_LOCALE || 'vi-VN']}`,
|
|
165
158
|
expires: new Date(res.expire_in * 1000).toUTCString(),
|
|
166
159
|
});
|
|
167
160
|
(res === null || res === void 0 ? void 0 : res.refresh_token) &&
|
|
168
161
|
setCookie(BEARER_REFRESH_TOKEN_COOKIE, res.refresh_token, {
|
|
169
162
|
domain: window.location.hostname === 'localhost'
|
|
170
163
|
? 'localhost'
|
|
171
|
-
: `.${domainLocales[
|
|
164
|
+
: `.${domainLocales[process.env.UNIFY_LOCALE || 'vi-VN']}`,
|
|
172
165
|
});
|
|
173
166
|
};
|
|
174
167
|
|
|
@@ -446,7 +439,7 @@ const redirect = (returnUrl, source, forceReload) => {
|
|
|
446
439
|
return;
|
|
447
440
|
}
|
|
448
441
|
};
|
|
449
|
-
const SSOV2_LOCALES = ['vi-VN'
|
|
442
|
+
const SSOV2_LOCALES = ['vi-VN'];
|
|
450
443
|
const IS_SSOV2_ENABLED = (locale) => {
|
|
451
444
|
return (!process.env.NEXT_PUBLIC_MARRY_BABY &&
|
|
452
445
|
SSOV2_LOCALES.includes(locale ||
|
|
@@ -490,4 +483,4 @@ const isLoginWithPhoneNotVerifedYet = (flowData, userInfo) => {
|
|
|
490
483
|
!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone_verified_at));
|
|
491
484
|
};
|
|
492
485
|
|
|
493
|
-
export { FacebookAppId as F, GoogleAuthClientId as G, IS_SSOV2_ENABLED as I, SSOStepTypeType as S, useSSOSteps as a, SSO_V2_PATHS as b, checkUserExist as c, updateUserInfo as d, isPhoneNotVerifedYet as e, fetchSSOV2Api as f, getUserInfo as g, handleAuthSuccess as h, isUserFinishedSetup as i, isLoginWithPhoneNotVerifedYet as j, isFlowFinishedSetup as k,
|
|
486
|
+
export { FacebookAppId as F, GoogleAuthClientId as G, IS_SSOV2_ENABLED as I, SSOStepTypeType as S, useSSOSteps as a, SSO_V2_PATHS as b, checkUserExist as c, updateUserInfo as d, isPhoneNotVerifedYet as e, fetchSSOV2Api as f, getUserInfo as g, handleAuthSuccess as h, isUserFinishedSetup as i, isLoginWithPhoneNotVerifedYet as j, isFlowFinishedSetup as k, redirect as l, resetPassword as r, useSSOV2Store as u, websiteId as w };
|