@hhgtech/hhg-components 1.29.313-beta-9 → 1.29.314-beta-1
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-52571438.js → LastPeriod-cb1a2c5b.js} +1 -1
- package/build/{MobileBottomNavigationIcon-4bc304bb.js → MobileBottomNavigationIcon-700b1286.js} +3 -3
- package/build/{Spinner-0c77a4b8.js → Spinner-17daa13d.js} +1 -1
- package/build/{WhatsApp-4f82076b.js → WhatsApp-b6da1e25.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-47cd588f.js → constants-3b45df2b.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-fb2fa4d8.js → core-033deef0.js} +1 -1
- package/build/{dataTransform-cb16de7b.js → dataTransform-2e98d338.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-9064fa74.js → editor-8fd0b7e8.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-ce4cbd6d.js → LastPeriod-de19dea0.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-74a22b25.js → MobileBottomNavigationIcon-664e7ea0.js} +3 -3
- package/build/esm/{Spinner-ca352822.js → Spinner-c43502e7.js} +1 -1
- package/build/esm/{WhatsApp-c53ed4db.js → WhatsApp-3d540bed.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-474ee941.js → constants-40cf764e.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-5cc474f7.js → core-90b3cc7a.js} +1 -1
- package/build/esm/{dataTransform-6840749d.js → dataTransform-d3dc6b12.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-91e5c7ee.js → editor-c6ab4e91.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-a08b30ec.js → fixedBottomAdBlock-6d5e861d.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 +5 -1
- package/build/esm/i18n-values/hi-IN.js +5 -1
- package/build/esm/i18n-values/id-ID.js +176 -172
- package/build/esm/i18n-values/km-KH.js +5 -1
- package/build/esm/i18n-values/ms-MY.js +317 -313
- package/build/esm/i18n-values/my-MM.js +4 -0
- package/build/esm/i18n-values/th-TH.js +4 -0
- package/build/esm/i18n-values/tl-PH.js +4 -0
- package/build/esm/i18n-values/vi-VN.js +4 -0
- package/build/esm/i18n-values/vi-VN_MB.js +4 -0
- package/build/esm/i18n-values/zh-TW.js +5 -1
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-4289958f.js → index-01027016.js} +2 -2
- package/build/esm/{index-e7aaf80d.js → index-03a4c75c.js} +4 -4
- package/build/esm/{index-534a9b80.js → index-073f1092.js} +3 -3
- package/build/esm/{index-25a905d1.js → index-0769648f.js} +2 -2
- package/build/esm/{index-044b9480.js → index-0ee3dcad.js} +18 -18
- package/build/esm/{index-9c246a16.js → index-0f77177b.js} +5 -5
- package/build/esm/{index-69bc39d7.js → index-162d91c1.js} +1 -1
- package/build/esm/{index-8058e369.js → index-16ce6ea4.js} +6 -6
- package/build/esm/{index-c23787b6.js → index-1d39e172.js} +5 -5
- package/build/esm/{index-92395267.js → index-1d3d1c08.js} +3 -3
- package/build/esm/{index-8f22b9e8.js → index-205767a7.js} +3 -3
- package/build/esm/{index-5c94fcc8.js → index-20a19415.js} +13 -13
- package/build/esm/{index-15a71d0e.js → index-2105e6e2.js} +17 -17
- package/build/esm/{index-628ffd2b.js → index-2121933e.js} +15 -15
- package/build/esm/{index-c5122e10.js → index-22f92836.js} +16 -16
- package/build/esm/{index-4b00116a.js → index-2a66e431.js} +30 -30
- package/build/esm/{index-28ef1e3b.js → index-2f3e4bf5.js} +6 -6
- package/build/esm/{index-5149e275.js → index-347e2039.js} +3 -3
- package/build/esm/{index-2f14dd18.js → index-3af9abc1.js} +2 -2
- package/build/esm/{index-c80c73f0.js → index-4088c926.js} +18 -18
- package/build/esm/{index-8bbf5267.js → index-415d8fba.js} +15 -15
- package/build/esm/{index-c247a124.js → index-492df8b3.js} +26 -26
- package/build/esm/{index-3b16e1a2.js → index-4ee43176.js} +6 -6
- package/build/esm/{index-9b547580.js → index-6c945414.js} +2 -2
- package/build/esm/{index-1d451c8b.js → index-6d42d388.js} +10 -10
- package/build/esm/{index-c71a9a2d.js → index-6f04967e.js} +16 -16
- package/build/esm/{index-cdc0d237.js → index-74ca6baf.js} +13 -13
- package/build/esm/{index-5398965f.js → index-751a93f6.js} +1 -1
- package/build/esm/{index-3e2fcf62.js → index-76e30f98.js} +2 -2
- package/build/esm/{index-4aff019f.js → index-779ce3a7.js} +16 -16
- package/build/esm/{index-3ebd513e.js → index-79f9018a.js} +7 -7
- package/build/esm/{index-e5a92bfb.js → index-7a28a333.js} +1 -1
- package/build/esm/{index-20cbdfd8.js → index-7e9af497.js} +24 -24
- package/build/esm/{index-1e08a0a4.js → index-7f1b062d.js} +2 -2
- package/build/esm/{index-afe308b2.js → index-8a605dca.js} +1 -1
- package/build/esm/{index-32519c52.js → index-8c3cc380.js} +1 -1
- package/build/esm/{index-b4d0951e.js → index-9007c8e5.js} +7 -7
- package/build/esm/{index-dde0ae34.js → index-9294cf79.js} +2 -2
- package/build/esm/{index-b4944ce9.js → index-936a7377.js} +11 -11
- package/build/esm/{index-69cf13d5.js → index-9ae88344.js} +1 -1
- package/build/esm/{index-dea1e555.js → index-9bc8b5f1.js} +2 -2
- package/build/esm/{index-291612db.js → index-a561c794.js} +2 -2
- package/build/esm/{index-55316bd2.js → index-a6561c3a.js} +21 -21
- package/build/esm/{index-03df4a39.js → index-a8df95c1.js} +16 -16
- package/build/esm/{index-22705d36.js → index-accd8bb8.js} +1 -1
- package/build/esm/{index-4cf0fefe.js → index-aedf46ff.js} +13 -13
- package/build/esm/{index-0350039c.js → index-b4f096e9.js} +3 -3
- package/build/esm/{index-1c8e98d7.js → index-b6a1ffdc.js} +20 -20
- package/build/esm/{index-528c6edc.js → index-bdff0340.js} +17 -17
- package/build/esm/{index-c1bec7cf.js → index-bf97eb17.js} +6 -6
- package/build/esm/{index-173ed6b6.js → index-c10a2a14.js} +1 -1
- package/build/esm/{index-7f601eed.js → index-c44db63b.js} +37 -33
- package/build/esm/{index-63c37e36.js → index-d849f519.js} +2 -2
- package/build/esm/{index-334e3717.js → index-e64b1ed5.js} +3 -3
- package/build/esm/{index-199a342e.js → index-efef03e5.js} +17 -17
- package/build/esm/{index-2b71d3d0.js → index-f28656df.js} +2 -2
- package/build/esm/{index-2e946cb4.js → index-f6418cf9.js} +2 -2
- package/build/esm/{index-a1a13987.js → index-fa0fb29f.js} +2 -2
- package/build/esm/{index-7b7c2ad9.js → index-ff4d1f95.js} +3 -3
- package/build/esm/{index-e7ec1459.js → index-ff6f1a7a.js} +13 -13
- package/build/esm/index.js +112 -112
- package/build/esm/{labelSorting-96e55c44.js → labelSorting-02784058.js} +4 -4
- package/build/esm/lead/constants.d.ts +1 -3
- package/build/esm/lead/index.d.ts +3 -8
- package/build/esm/lead.js +45 -49
- package/build/esm/{logoIcon-3a4c3763.js → logoIcon-3ad59839.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-decd334e.js → post-c2151ce6.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 +1 -0
- package/build/esm/ssoV2/api/paths.d.ts +7 -0
- package/build/esm/ssoV2/api/whatsapp.d.ts +6 -0
- package/build/esm/ssoV2/screens/components/whatsapp.d.ts +5 -0
- package/build/esm/ssoV2/screens/otp.d.ts +1 -1
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +1 -1
- package/build/esm/ssoV2/utils.d.ts +2 -0
- package/build/esm/ssoV2.js +262 -43
- package/build/esm/{store-202ac64b.js → store-0121e6cc.js} +15 -8
- 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-572d5443.js → surveyThankyouCard-2b734e9f.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-8e28da05.js → treePopoverMenu-8f623e31.js} +19 -19
- package/build/esm/{types-2c97339a.js → types-db96a3c6.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-95fe592d.js → useCategory-de96530f.js} +5 -5
- package/build/esm/{useHealthToolCache-97ee576a.js → useHealthToolCache-103db0fe.js} +1 -1
- package/build/esm/{useMantineLocale-5605cd94.js → useMantineLocale-44720701.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-5ad0599b.js → usePlacesAutocomplete-34b9cfe8.js} +1 -1
- package/build/esm/{useScreenSize-d86483ad.js → useScreenSize-df78bf4d.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-efb6b760.js → utils-0ea095e3.js} +2 -2
- package/build/esm/{utils-f1cad879.js → utils-4ac91fce.js} +2 -2
- package/build/esm/{utils-82fc3d7e.js → utils-bfbba3c5.js} +3 -3
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-eb20c232.js → fixedBottomAdBlock-874e8048.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 +5 -1
- package/build/i18n-values/hi-IN.js +5 -1
- package/build/i18n-values/id-ID.js +176 -172
- package/build/i18n-values/km-KH.js +5 -1
- package/build/i18n-values/ms-MY.js +317 -313
- package/build/i18n-values/my-MM.js +4 -0
- package/build/i18n-values/th-TH.js +4 -0
- package/build/i18n-values/tl-PH.js +4 -0
- package/build/i18n-values/vi-VN.js +4 -0
- package/build/i18n-values/vi-VN_MB.js +4 -0
- package/build/i18n-values/zh-TW.js +5 -1
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-fadc9a61.js → index-024e4fec.js} +5 -5
- package/build/{index-b101b76b.js → index-07ea301f.js} +3 -3
- package/build/{index-ed937166.js → index-11976877.js} +17 -17
- package/build/{index-e83b56f8.js → index-15ab5d98.js} +6 -6
- package/build/{index-9c9d832a.js → index-1d08fe57.js} +1 -1
- package/build/{index-65ff96c5.js → index-1e88fa59.js} +2 -2
- package/build/{index-6f282f32.js → index-1eb986f5.js} +2 -2
- package/build/{index-a9af6133.js → index-2d0e692f.js} +7 -7
- package/build/{index-cf5b3bc3.js → index-2db28070.js} +7 -7
- package/build/{index-186cdefb.js → index-304e976a.js} +5 -5
- package/build/{index-81272b57.js → index-326d70f0.js} +2 -2
- package/build/{index-fb334999.js → index-32880e0e.js} +2 -2
- package/build/{index-4e378ce0.js → index-3c846f16.js} +26 -26
- package/build/{index-a43b9051.js → index-453d9c97.js} +30 -30
- package/build/{index-b4ced077.js → index-469de5d7.js} +1 -1
- package/build/{index-873f7d8b.js → index-4bb04faa.js} +2 -2
- package/build/{index-3cf9e847.js → index-4e2f738b.js} +21 -21
- package/build/{index-e9051ab6.js → index-4e52ab2b.js} +3 -3
- package/build/{index-94dea9bd.js → index-56864872.js} +2 -2
- package/build/{index-3eba4140.js → index-592e62a9.js} +1 -1
- package/build/{index-688106ea.js → index-5b0b3de7.js} +10 -10
- package/build/{index-608c6870.js → index-5d81259a.js} +6 -6
- package/build/{index-e76ae5a8.js → index-5dfb773e.js} +1 -1
- package/build/{index-677b8268.js → index-6939d048.js} +6 -6
- package/build/{index-64e93bd7.js → index-69a5dc27.js} +3 -3
- package/build/{index-39eb9c99.js → index-72e9cdae.js} +16 -16
- package/build/{index-5ebb11be.js → index-7e45d971.js} +1 -1
- package/build/{index-5b8a5fc1.js → index-8608dfeb.js} +2 -2
- package/build/{index-cddec3d0.js → index-89384a5f.js} +16 -16
- package/build/{index-6399487f.js → index-8cb4d2da.js} +2 -2
- package/build/{index-524880b6.js → index-91475683.js} +18 -18
- package/build/{index-266c1cef.js → index-91a3747a.js} +15 -15
- package/build/{index-4584580b.js → index-961f0a12.js} +17 -17
- package/build/{index-d6a6c0d8.js → index-984c2050.js} +15 -15
- package/build/{index-fc90ffd8.js → index-99be23cf.js} +37 -33
- package/build/{index-e5f03801.js → index-9c7db07f.js} +3 -3
- package/build/{index-55bd6fa6.js → index-a7bd6c34.js} +3 -3
- package/build/{index-4eda6db6.js → index-a834c1f1.js} +2 -2
- package/build/{index-5bb82382.js → index-a94de33f.js} +13 -13
- package/build/{index-b8301960.js → index-a9c80572.js} +3 -3
- package/build/{index-7010335f.js → index-b238dd24.js} +16 -16
- package/build/{index-df87218e.js → index-b721152f.js} +2 -2
- package/build/{index-71f3ec82.js → index-c1e3ff59.js} +24 -24
- package/build/{index-ca5d0a35.js → index-c22671e7.js} +18 -18
- package/build/{index-2b5b59d3.js → index-c4425a50.js} +20 -20
- package/build/{index-4eda2006.js → index-c47eee5e.js} +1 -1
- package/build/{index-15fa4215.js → index-c70f3e3d.js} +17 -17
- package/build/{index-313da885.js → index-cccadcf7.js} +2 -2
- package/build/{index-846e74a7.js → index-cf59c129.js} +3 -3
- package/build/{index-f616944d.js → index-d8343c5f.js} +13 -13
- package/build/{index-3cac6d4f.js → index-e0b7efde.js} +2 -2
- package/build/{index-728902f4.js → index-eacf99c7.js} +2 -2
- package/build/{index-22a77f3f.js → index-ee636b7a.js} +13 -13
- package/build/{index-464439a3.js → index-eea0ae49.js} +4 -4
- package/build/{index-15debfc0.js → index-eeb28419.js} +16 -16
- package/build/{index-9422bdf0.js → index-ef124f24.js} +11 -11
- package/build/{index-ebd6a7f6.js → index-f114ab26.js} +1 -1
- package/build/{index-9a361fd9.js → index-f7a472ca.js} +6 -6
- package/build/{index-08c5bc4f.js → index-f8eeb162.js} +1 -1
- package/build/{index-e0050469.js → index-ff76970a.js} +13 -13
- package/build/index.js +112 -112
- package/build/{labelSorting-cc045a55.js → labelSorting-21a80b75.js} +4 -4
- package/build/lead/constants.d.ts +1 -3
- package/build/lead/index.d.ts +3 -8
- package/build/lead.js +44 -50
- package/build/{logoIcon-324687e3.js → logoIcon-94b4400a.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-670ecca8.js → post-ffeae027.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 +1 -0
- package/build/ssoV2/api/paths.d.ts +7 -0
- package/build/ssoV2/api/whatsapp.d.ts +6 -0
- package/build/ssoV2/screens/components/whatsapp.d.ts +5 -0
- package/build/ssoV2/screens/otp.d.ts +1 -1
- package/build/ssoV2/ssoStateManager/store.d.ts +1 -1
- package/build/ssoV2/utils.d.ts +2 -0
- package/build/ssoV2.js +261 -42
- package/build/{store-7eab6ad0.js → store-87d8af94.js} +15 -7
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-d8d05091.js → surveyThankyouCard-a7d9b502.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-c27664e9.js → treePopoverMenu-334769ea.js} +19 -19
- package/build/{types-44a3a2af.js → types-730d43bd.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-08ae73ac.js → useCategory-b4adc828.js} +5 -5
- package/build/{useHealthToolCache-669d0032.js → useHealthToolCache-badf9dd0.js} +1 -1
- package/build/{useMantineLocale-daf2626a.js → useMantineLocale-ca013898.js} +6 -6
- package/build/{usePlacesAutocomplete-0f6ba35c.js → usePlacesAutocomplete-17a2b457.js} +1 -1
- package/build/{useScreenSize-df471d7b.js → useScreenSize-93bb13b7.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-429db9f1.js → utils-13953d13.js} +2 -2
- package/build/{utils-8e14437a.js → utils-74acc9d5.js} +3 -3
- package/build/{utils-5d35fe85.js → utils-caea5697.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-fdbd37f5.js → BMI_BOYS.percentile.monthly-156d0331.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-5dc612fe.js → BMI_BOYS.percentile.weekly-047c3413.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-8f8a08ed.js → BMI_BOYS.percentile.yearly-fb46b0ad.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-424bce9a.js → BMI_BOYS.zscore.monthly-3aea3d48.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-9e976fb0.js → BMI_BOYS.zscore.weekly-267daee4.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-50ce73e6.js → BMI_BOYS.zscore.yearly-e5a53e57.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-cd11d0c3.js → BMI_GIRLS.percentile.monthly-3da160cc.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-4e97c693.js → BMI_GIRLS.percentile.weekly-d0279449.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-7c52a2f2.js → BMI_GIRLS.percentile.yearly-55478c50.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-124ccf13.js → BMI_GIRLS.zscore.monthly-90a3cfad.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-13d77c2f.js → BMI_GIRLS.zscore.weekly-15d9b704.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-cf08d9b7.js → BMI_GIRLS.zscore.yearly-cffaf24a.js} +0 -0
- /package/build/{ChevronDown-bedf6622.js → ChevronDown-d1ef737e.js} +0 -0
- /package/build/{Close-dd78e289.js → Close-c92faf97.js} +0 -0
- /package/build/{Google-c5340d72.js → Google-1802dd71.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-cc243128.js → HEAD CIRCUM_BOYS.percentile.monthly-ee711800.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-35cc3f6a.js → HEAD CIRCUM_BOYS.percentile.weekly-bb057d00.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-2fff1152.js → HEAD CIRCUM_BOYS.percentile.yearly-067f3f21.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-b6cf5319.js → HEAD CIRCUM_BOYS.zscore.monthly-71975f9d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b27fd88e.js → HEAD CIRCUM_BOYS.zscore.weekly-7122feab.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-b63ce21b.js → HEAD CIRCUM_BOYS.zscore.yearly-dd8dc5fc.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-b9e64036.js → HEAD CIRCUM_GIRLS.percentile.monthly-66d076ce.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-91bd4d4f.js → HEAD CIRCUM_GIRLS.percentile.weekly-62ac61e3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-6dd0d576.js → HEAD CIRCUM_GIRLS.percentile.yearly-ca94d1bb.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-fac92378.js → HEAD CIRCUM_GIRLS.zscore.monthly-eb082151.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-cf0ebe11.js → HEAD CIRCUM_GIRLS.zscore.weekly-7ef32383.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-250774ef.js → HEAD CIRCUM_GIRLS.zscore.yearly-e66aba9e.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-5b9c85d2.js → HEIGHT_BOYS.percentile.monthly-ce10dc4a.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-f8e63ec4.js → HEIGHT_BOYS.percentile.weekly-b617fd7b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-205453a9.js → HEIGHT_BOYS.percentile.yearly-89501fc1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-0daeda1f.js → HEIGHT_BOYS.zscore.monthly-1e49ef57.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-cc7eebd5.js → HEIGHT_BOYS.zscore.weekly-668e07c3.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-85431174.js → HEIGHT_BOYS.zscore.yearly-45274560.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-a9f71bd5.js → HEIGHT_GIRLS.percentile.monthly-19498ed2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-a2104acd.js → HEIGHT_GIRLS.percentile.weekly-6b6efb28.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-9f343ecc.js → HEIGHT_GIRLS.percentile.yearly-af9761f7.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-658e2f7d.js → HEIGHT_GIRLS.zscore.monthly-a071c621.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-71993cd0.js → HEIGHT_GIRLS.zscore.weekly-96bab8fb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-f7b9eb12.js → HEIGHT_GIRLS.zscore.yearly-b76701ad.js} +0 -0
- /package/build/{Locale-0e8aa62b.js → Locale-a03dfb18.js} +0 -0
- /package/build/{Visible-f0383561.js → Visible-5c78cfa5.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-b481d671.js → WEIGHT_BOYS.percentile.monthly-bb610ba6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-08e5d4c2.js → WEIGHT_BOYS.percentile.weekly-ede559b3.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-99ed09c7.js → WEIGHT_BOYS.percentile.yearly-1ee10eca.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-aea14ea0.js → WEIGHT_BOYS.zscore.monthly-7e782888.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-2ab01a55.js → WEIGHT_BOYS.zscore.weekly-5dee9c81.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-4f02aab2.js → WEIGHT_BOYS.zscore.yearly-88e39993.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-573f6f53.js → WEIGHT_GIRLS.percentile.monthly-9d830c7d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-d0fa22f0.js → WEIGHT_GIRLS.percentile.weekly-a868d64c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-136191a6.js → WEIGHT_GIRLS.percentile.yearly-3a01ad8c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-debdae78.js → WEIGHT_GIRLS.zscore.monthly-7c90031b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-42439da8.js → WEIGHT_GIRLS.zscore.weekly-fb262330.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-1acc5be1.js → WEIGHT_GIRLS.zscore.yearly-eb5d4e14.js} +0 -0
- /package/build/{animation-92519538.js → animation-77707c59.js} +0 -0
- /package/build/{constants-ed8d6f40.js → constants-0b8027d1.js} +0 -0
- /package/build/{constants-d741a88d.js → constants-948d2356.js} +0 -0
- /package/build/{constants-cdee5910.js → constants-e0eb9578.js} +0 -0
- /package/build/{dataTransform-40f5cd02.js → dataTransform-f8a2d467.js} +0 -0
- /package/build/{doctor-f554e420.js → doctor-a4708428.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-9a83459f.js → BMI_BOYS.percentile.monthly-d726cd54.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-53c32ed0.js → BMI_BOYS.percentile.weekly-8abb56a1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-263fc28f.js → BMI_BOYS.percentile.yearly-e0bda09c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-bdee9727.js → BMI_BOYS.zscore.monthly-d99ab40e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-4e141b7a.js → BMI_BOYS.zscore.weekly-4dbf6a89.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-00c352ac.js → BMI_BOYS.zscore.yearly-b0938fb0.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-ab95b580.js → BMI_GIRLS.percentile.monthly-4a7d2021.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-feea5fcd.js → BMI_GIRLS.percentile.weekly-70c0cdce.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-4a21f07b.js → BMI_GIRLS.percentile.yearly-85b74f1d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-d3e2831b.js → BMI_GIRLS.zscore.monthly-3fb3a6d2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-848f610f.js → BMI_GIRLS.zscore.weekly-da6474d5.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-7d161df2.js → BMI_GIRLS.zscore.yearly-86d6888f.js} +0 -0
- /package/build/esm/{ChevronDown-2bc4aa31.js → ChevronDown-d541651f.js} +0 -0
- /package/build/esm/{Close-31b11bf0.js → Close-26fc5b63.js} +0 -0
- /package/build/esm/{Google-6e6ea58d.js → Google-0b7f4577.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-59157c52.js → HEAD CIRCUM_BOYS.percentile.monthly-acf7823a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-8619b3f1.js → HEAD CIRCUM_BOYS.percentile.weekly-4f072ba8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-633715f1.js → HEAD CIRCUM_BOYS.percentile.yearly-b6b748ea.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-e81c5d4f.js → HEAD CIRCUM_BOYS.zscore.monthly-9e4e9e13.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-aec5c88d.js → HEAD CIRCUM_BOYS.zscore.weekly-7473aa95.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-b309e789.js → HEAD CIRCUM_BOYS.zscore.yearly-27bda77f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-57fc4e97.js → HEAD CIRCUM_GIRLS.percentile.monthly-a2605f61.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-d30cc949.js → HEAD CIRCUM_GIRLS.percentile.weekly-0ab5bcaf.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-aae33845.js → HEAD CIRCUM_GIRLS.percentile.yearly-00e5bb1f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ab4b24d7.js → HEAD CIRCUM_GIRLS.zscore.monthly-5f10a56c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-db9b1a6f.js → HEAD CIRCUM_GIRLS.zscore.weekly-489dfea6.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-31eba063.js → HEAD CIRCUM_GIRLS.zscore.yearly-a491bed8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-b4c64f49.js → HEIGHT_BOYS.percentile.monthly-3c21dddd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-d4f5019f.js → HEIGHT_BOYS.percentile.weekly-2deffe49.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-e81086da.js → HEIGHT_BOYS.percentile.yearly-326920fe.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-ff00ace0.js → HEIGHT_BOYS.zscore.monthly-adc705fc.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-2c70c896.js → HEIGHT_BOYS.zscore.weekly-7d75728b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d1b852ee.js → HEIGHT_BOYS.zscore.yearly-5a7a08df.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-91eb5fda.js → HEIGHT_GIRLS.percentile.monthly-3249b5de.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-0d5ef2e9.js → HEIGHT_GIRLS.percentile.weekly-f8de3cd5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-1baa8434.js → HEIGHT_GIRLS.percentile.yearly-ba9222d5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-769cbb29.js → HEIGHT_GIRLS.zscore.monthly-76a361d3.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-4f0e18df.js → HEIGHT_GIRLS.zscore.weekly-8da260a5.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-03999723.js → HEIGHT_GIRLS.zscore.yearly-bbc41da5.js} +0 -0
- /package/build/esm/{Locale-c7f2baf7.js → Locale-bfdc055c.js} +0 -0
- /package/build/esm/{Visible-39284909.js → Visible-ce498ac8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-c0d0e320.js → WEIGHT_BOYS.percentile.monthly-2f3b45fd.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-382abf93.js → WEIGHT_BOYS.percentile.weekly-968a5605.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-84d749c7.js → WEIGHT_BOYS.percentile.yearly-7e5e740e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-6855eb22.js → WEIGHT_BOYS.zscore.monthly-592aa87d.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-8824a7c9.js → WEIGHT_BOYS.zscore.weekly-9ac016c1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-967af140.js → WEIGHT_BOYS.zscore.yearly-dcf904ed.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-7f772c00.js → WEIGHT_GIRLS.percentile.monthly-a4d07dfc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-894cc83d.js → WEIGHT_GIRLS.percentile.weekly-11b0a967.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-f3afc035.js → WEIGHT_GIRLS.percentile.yearly-f651837b.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-e2c451e2.js → WEIGHT_GIRLS.zscore.monthly-605c2cdf.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-c3ad81ad.js → WEIGHT_GIRLS.zscore.weekly-6b62afab.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-72ae63f3.js → WEIGHT_GIRLS.zscore.yearly-01d980c5.js} +0 -0
- /package/build/esm/{animation-43e1989c.js → animation-c8c6a863.js} +0 -0
- /package/build/esm/{constants-28b11a1f.js → constants-6b27c90f.js} +0 -0
- /package/build/esm/{constants-11971f62.js → constants-c07f4a8d.js} +0 -0
- /package/build/esm/{constants-324df1b0.js → constants-cd6724b7.js} +0 -0
- /package/build/esm/{dataTransform-b0372c17.js → dataTransform-e8e90c49.js} +0 -0
- /package/build/esm/{doctor-998c8997.js → doctor-56db5a0b.js} +0 -0
- /package/build/esm/{index-94458d28.js → index-14d30224.js} +0 -0
- /package/build/esm/{index-1bd4ac53.js → index-1f77c2c1.js} +0 -0
- /package/build/esm/{index-a106cfd9.js → index-2c0ade5b.js} +0 -0
- /package/build/esm/{index-6b865031.js → index-b3ee7637.js} +0 -0
- /package/build/esm/{index-97532bc8.js → index-b8669652.js} +0 -0
- /package/build/esm/{index-0f7f64d1.js → index-baf77890.js} +0 -0
- /package/build/esm/{index-ea63aa08.js → index-d5ca914c.js} +0 -0
- /package/build/esm/{index-80a4a660.js → index-f0464c37.js} +0 -0
- /package/build/esm/{index-a4a5df48.js → index-f8479575.js} +0 -0
- /package/build/esm/{index.styles-d4df7fef.js → index.styles-6749a1a2.js} +0 -0
- /package/build/esm/{localizeNumberFormat-0c4634d7.js → localizeNumberFormat-7f001ac5.js} +0 -0
- /package/build/esm/{normalizeLink-53cb21c2.js → normalizeLink-0e18fa8e.js} +0 -0
- /package/build/esm/{other-7d6d66d3.js → other-e763309d.js} +0 -0
- /package/build/esm/{paths-c790463e.js → paths-50c3289c.js} +0 -0
- /package/build/esm/{translationsContext-8d752294.js → translationsContext-6f2aa172.js} +0 -0
- /package/build/esm/{tslib.es6-d14fbbbe.js → tslib.es6-b3491f04.js} +0 -0
- /package/build/esm/{types-f9e8b90d.js → types-4df29811.js} +0 -0
- /package/build/esm/{useIsInit-3713e011.js → useIsInit-55280f3d.js} +0 -0
- /package/build/esm/{useOutsideClick-bafc2d24.js → useOutsideClick-16ab0be2.js} +0 -0
- /package/build/esm/{useScrollbarSize-f19ed565.js → useScrollbarSize-e3d0342e.js} +0 -0
- /package/build/esm/{useUniqueId-92252d44.js → useUniqueId-cf0510ed.js} +0 -0
- /package/build/esm/{utils-9bd3e75b.js → utils-fd427445.js} +0 -0
- /package/build/{index-9ac239e7.js → index-1b842368.js} +0 -0
- /package/build/{index-bfbf109c.js → index-1e6c30bb.js} +0 -0
- /package/build/{index-907bcfb4.js → index-236c9f98.js} +0 -0
- /package/build/{index-19fc37c1.js → index-331be4ca.js} +0 -0
- /package/build/{index-f4d89f7e.js → index-6dfd0498.js} +0 -0
- /package/build/{index-3d4f98a9.js → index-7238c7b2.js} +0 -0
- /package/build/{index-28b37f7e.js → index-8b0b6362.js} +0 -0
- /package/build/{index-920c5a20.js → index-e591ba98.js} +0 -0
- /package/build/{index-9ec551de.js → index-fe55256e.js} +0 -0
- /package/build/{index.styles-5bfa7fba.js → index.styles-1d098d90.js} +0 -0
- /package/build/{localizeNumberFormat-3a8cb599.js → localizeNumberFormat-3b41ba1d.js} +0 -0
- /package/build/{normalizeLink-69cdb389.js → normalizeLink-cf3ac51d.js} +0 -0
- /package/build/{other-cccb1f9e.js → other-2ddb1d4a.js} +0 -0
- /package/build/{paths-643d00c7.js → paths-cd907aee.js} +0 -0
- /package/build/{translationsContext-bcecfb29.js → translationsContext-6aed1bce.js} +0 -0
- /package/build/{tslib.es6-2c0347c3.js → tslib.es6-d963064a.js} +0 -0
- /package/build/{types-897de0bd.js → types-5e204b2d.js} +0 -0
- /package/build/{useIsInit-5aa55860.js → useIsInit-4a359a3c.js} +0 -0
- /package/build/{useOutsideClick-37ebda11.js → useOutsideClick-ecacaf30.js} +0 -0
- /package/build/{useScrollbarSize-03909690.js → useScrollbarSize-ad579942.js} +0 -0
- /package/build/{useUniqueId-38fc7c5f.js → useUniqueId-43ddea3e.js} +0 -0
- /package/build/{utils-bfa0c5a8.js → utils-cc15defe.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-b3491f04.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, 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,
|
|
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-936a7377.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, l as locale, 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, m as redirect } from './store-0121e6cc.js';
|
|
5
|
+
export { u as useSSOV2Store } from './store-0121e6cc.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-d849f519.js';
|
|
9
|
+
import { L as LogoIcon } from './logoIcon-3ad59839.js';
|
|
10
|
+
import { B as Button } from './index-01027016.js';
|
|
11
|
+
import { M as Modal } from './index-9294cf79.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-accd8bb8.js';
|
|
15
|
+
import './index-b8669652.js';
|
|
16
|
+
import { s as showNotification } from './useMantineLocale-44720701.js';
|
|
17
|
+
import { T as Text } from './index-9bc8b5f1.js';
|
|
18
|
+
import { u as useTranslations } from './index-751a93f6.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-fd427445.js';
|
|
21
|
+
import './other-e763309d.js';
|
|
22
|
+
import './index-1d3d1c08.js';
|
|
23
|
+
import { L as LOCALE } from './Locale-bfdc055c.js';
|
|
24
|
+
import { G as Google, F as Facebook } from './Google-0b7f4577.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-df78bf4d.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-0ea095e3.js';
|
|
35
|
+
import { S as Spoiler } from './index-205767a7.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-4ee43176.js';
|
|
41
41
|
import '@mantine/carousel';
|
|
42
42
|
import './miscTheme.js';
|
|
43
|
-
import './useUniqueId-
|
|
43
|
+
import './useUniqueId-cf0510ed.js';
|
|
44
44
|
import './constantsSite.js';
|
|
45
45
|
import 'zustand';
|
|
46
46
|
import './constantsIsProduction.js';
|
|
47
|
-
import './normalizeLink-
|
|
47
|
+
import './normalizeLink-0e18fa8e.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-6749a1a2.js';
|
|
52
52
|
import '@mantine/notifications';
|
|
53
|
-
import './translationsContext-
|
|
53
|
+
import './translationsContext-6f2aa172.js';
|
|
54
54
|
|
|
55
55
|
const SSOStateContext = createContext({
|
|
56
56
|
locale: LOCALE.Vietnam,
|
|
@@ -208,7 +208,8 @@ 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'
|
|
211
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone' ||
|
|
212
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'whatsapp');
|
|
212
213
|
};
|
|
213
214
|
const isEmailFlowFn = (flowData) => {
|
|
214
215
|
return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'email';
|
|
@@ -680,7 +681,7 @@ const SSOEmailScreen = ({ hidden, }) => {
|
|
|
680
681
|
React__default.createElement(Stack, { spacing: 8 },
|
|
681
682
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.email.title')),
|
|
682
683
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.email.description'))),
|
|
683
|
-
React__default.createElement(Input, { name: "email", placeholder:
|
|
684
|
+
React__default.createElement(Input, { name: "email", placeholder: t('onboarding.formEmail.yourEmail'), error: errMsg || undefined, type: "email", required: true, mt: 24, disabled: loading, onChange: () => setErrMsg(''), "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Email" }),
|
|
684
685
|
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'))));
|
|
685
686
|
};
|
|
686
687
|
|
|
@@ -783,6 +784,59 @@ const loginBySocial = (token, social) => __awaiter(void 0, void 0, void 0, funct
|
|
|
783
784
|
});
|
|
784
785
|
});
|
|
785
786
|
|
|
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
|
+
|
|
786
840
|
// "phone_number": "906911910",
|
|
787
841
|
// "area_code":"+84",
|
|
788
842
|
const registerBySendZaloOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -839,6 +893,9 @@ const verifyUpdatePhoneZaloOTP = (phone, areaCode, otpCode) => __awaiter(void 0,
|
|
|
839
893
|
});
|
|
840
894
|
});
|
|
841
895
|
|
|
896
|
+
const isFeatureWhatsAppEnabled = ['id-ID', 'ms-MY'].includes(locale);
|
|
897
|
+
const isFeatureSMSEnabled = ['vi-VN'].includes(locale);
|
|
898
|
+
|
|
842
899
|
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),
|
|
843
900
|
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" })));
|
|
844
901
|
|
|
@@ -2276,6 +2333,12 @@ const StyledPhone = styled(PhoneWithCustomCountrySelect) `
|
|
|
2276
2333
|
}
|
|
2277
2334
|
`;
|
|
2278
2335
|
|
|
2336
|
+
const WhatsApp = ({ size = 20 }) => {
|
|
2337
|
+
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" },
|
|
2338
|
+
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" }),
|
|
2339
|
+
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" })));
|
|
2340
|
+
};
|
|
2341
|
+
|
|
2279
2342
|
const Zalo = ({ size = 20, useCurrentColor = false }) => {
|
|
2280
2343
|
const color = useCurrentColor ? 'currentColor' : '#0068FF';
|
|
2281
2344
|
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" },
|
|
@@ -2476,7 +2539,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2476
2539
|
}
|
|
2477
2540
|
setLoading(false);
|
|
2478
2541
|
});
|
|
2479
|
-
const
|
|
2542
|
+
const onClickContinueWhatsApp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2480
2543
|
var _e, _f;
|
|
2481
2544
|
setLoading(true);
|
|
2482
2545
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
@@ -2488,6 +2551,69 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2488
2551
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2489
2552
|
const provider = (_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider;
|
|
2490
2553
|
if ((_f = userExist._data) === null || _f === void 0 ? void 0 : _f.is_pass) {
|
|
2554
|
+
useSSOV2Store.setState({
|
|
2555
|
+
flowData: {
|
|
2556
|
+
method: 'whatsapp',
|
|
2557
|
+
flow: 'login',
|
|
2558
|
+
metaData: userExist._data,
|
|
2559
|
+
},
|
|
2560
|
+
});
|
|
2561
|
+
addStep({
|
|
2562
|
+
type: SSOStepTypeType.PASSWORD,
|
|
2563
|
+
config: {
|
|
2564
|
+
phone,
|
|
2565
|
+
method: 'whatsapp',
|
|
2566
|
+
},
|
|
2567
|
+
});
|
|
2568
|
+
goNext();
|
|
2569
|
+
}
|
|
2570
|
+
else {
|
|
2571
|
+
let res;
|
|
2572
|
+
if (!provider) {
|
|
2573
|
+
res = yield registerBySendWhatsAppOTP(phoneNumber, areaCode);
|
|
2574
|
+
}
|
|
2575
|
+
else {
|
|
2576
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2577
|
+
}
|
|
2578
|
+
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
2579
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
2580
|
+
return setLoading(false);
|
|
2581
|
+
}
|
|
2582
|
+
useSSOV2Store.setState({
|
|
2583
|
+
flowData: {
|
|
2584
|
+
method: 'whatsapp',
|
|
2585
|
+
flow: 'signup',
|
|
2586
|
+
metaData: userExist._data,
|
|
2587
|
+
},
|
|
2588
|
+
});
|
|
2589
|
+
addStep({
|
|
2590
|
+
type: SSOStepTypeType.OTP,
|
|
2591
|
+
config: {
|
|
2592
|
+
phone,
|
|
2593
|
+
otpType: 'phone-whatsapp',
|
|
2594
|
+
afterAction: 'forgot',
|
|
2595
|
+
},
|
|
2596
|
+
});
|
|
2597
|
+
goNext();
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
else {
|
|
2601
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
2602
|
+
}
|
|
2603
|
+
setLoading(false);
|
|
2604
|
+
});
|
|
2605
|
+
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2606
|
+
var _g, _h;
|
|
2607
|
+
setLoading(true);
|
|
2608
|
+
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2609
|
+
if (!areaCode || !phoneNumber || !phone) {
|
|
2610
|
+
setErrMsg(t('ssov2.validate.phone.required'));
|
|
2611
|
+
return setLoading(false);
|
|
2612
|
+
}
|
|
2613
|
+
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2614
|
+
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2615
|
+
const provider = (_g = userExist._data) === null || _g === void 0 ? void 0 : _g.provider;
|
|
2616
|
+
if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
|
|
2491
2617
|
useSSOV2Store.setState({
|
|
2492
2618
|
flowData: {
|
|
2493
2619
|
method: 'sms',
|
|
@@ -2540,7 +2666,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2540
2666
|
setLoading(false);
|
|
2541
2667
|
});
|
|
2542
2668
|
const onClickLoginWithPhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2543
|
-
var
|
|
2669
|
+
var _j, _k;
|
|
2544
2670
|
setLoading(true);
|
|
2545
2671
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2546
2672
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2549,7 +2675,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2549
2675
|
}
|
|
2550
2676
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2551
2677
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2552
|
-
if (!userExist._data || !((
|
|
2678
|
+
if (!userExist._data || !((_j = userExist._data) === null || _j === void 0 ? void 0 : _j.is_pass)) {
|
|
2553
2679
|
showNotification({
|
|
2554
2680
|
message: t('ssov2.first.noAccountOrPass'),
|
|
2555
2681
|
type: 'danger',
|
|
@@ -2557,7 +2683,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2557
2683
|
setActiveTab('signup');
|
|
2558
2684
|
return setLoading(false);
|
|
2559
2685
|
}
|
|
2560
|
-
if ((
|
|
2686
|
+
if ((_k = userExist._data) === null || _k === void 0 ? void 0 : _k.is_pass) {
|
|
2561
2687
|
useSSOV2Store.setState({
|
|
2562
2688
|
flowData: {
|
|
2563
2689
|
method: 'phone',
|
|
@@ -2653,8 +2779,13 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2653
2779
|
};
|
|
2654
2780
|
}, [activeTab]) }))),
|
|
2655
2781
|
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')),
|
|
2782
|
+
isFeatureWhatsAppEnabled && (React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueWhatsApp, loading: loading, disabled: loading,
|
|
2783
|
+
// data-event-category={trackingCategory}
|
|
2784
|
+
// data-event-action={trackingAction}
|
|
2785
|
+
// data-event-label="Continue with Zalo"
|
|
2786
|
+
display: activeTab === 'signup' ? 'block' : 'none', leftIcon: React__default.createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.otp.whatsapp'))),
|
|
2656
2787
|
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'))),
|
|
2788
|
+
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')))),
|
|
2658
2789
|
React__default.createElement(Divider, { color: "#E4E8EC", display: activeTab === 'signup' ? 'block' : 'none' }),
|
|
2659
2790
|
React__default.createElement(Stack, { spacing: 16, align: "center" },
|
|
2660
2791
|
React__default.createElement(Text, { size: "p4", color: "gray.4" }, t('ssov2.orContinueWith')),
|
|
@@ -2763,6 +2894,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2763
2894
|
const isEmail = otpType === 'email' || otpType === 'update-email';
|
|
2764
2895
|
const isZalo = otpType === 'phone-zalo';
|
|
2765
2896
|
const isSMS = otpType === 'phone-sms';
|
|
2897
|
+
const isWhatsApp = otpType === 'phone-whatsapp';
|
|
2766
2898
|
const trackingMethod = flowData === null || flowData === void 0 ? void 0 : flowData.method;
|
|
2767
2899
|
const trackingCategory = userInfo && !userInfo.first_time_login
|
|
2768
2900
|
? `SSO - Existing User via ${trackingMethod}`
|
|
@@ -2771,7 +2903,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2771
2903
|
: `SSO - Sign In via ${trackingMethod}`;
|
|
2772
2904
|
const trackingAction = isEmail
|
|
2773
2905
|
? 'Verify Your Email'
|
|
2774
|
-
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' : ''}`;
|
|
2906
|
+
: `Verify Phone Number via ${isZalo ? 'Zalo' : isSMS ? 'SMS' : isWhatsApp ? 'WhatsApp' : ''}`;
|
|
2775
2907
|
useEffect(() => {
|
|
2776
2908
|
if (!hidden) {
|
|
2777
2909
|
setError('');
|
|
@@ -2805,6 +2937,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2805
2937
|
else if (otpType === 'phone-zalo') {
|
|
2806
2938
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
2807
2939
|
}
|
|
2940
|
+
else if (otpType === 'phone-whatsapp') {
|
|
2941
|
+
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
2942
|
+
}
|
|
2808
2943
|
}
|
|
2809
2944
|
else {
|
|
2810
2945
|
if (otpType === 'phone-sms') {
|
|
@@ -2813,6 +2948,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2813
2948
|
else if (otpType === 'phone-zalo') {
|
|
2814
2949
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
2815
2950
|
}
|
|
2951
|
+
else if (otpType === 'phone-whatsapp') {
|
|
2952
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
2953
|
+
}
|
|
2816
2954
|
else if (otpType === 'email') {
|
|
2817
2955
|
res = yield resendEmailOTP(email);
|
|
2818
2956
|
}
|
|
@@ -2851,6 +2989,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2851
2989
|
else if (otpType === 'phone-zalo') {
|
|
2852
2990
|
res = yield verifyUpdatePhoneZaloOTP(phoneNumber, areaCode, otp);
|
|
2853
2991
|
}
|
|
2992
|
+
else if (otpType === 'phone-whatsapp') {
|
|
2993
|
+
res = yield verifyUpdatePhoneWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
2994
|
+
}
|
|
2854
2995
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
2855
2996
|
if (afterAction === 'setup') {
|
|
2856
2997
|
const userInfo = yield getUserInfo();
|
|
@@ -2876,6 +3017,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2876
3017
|
const needPass = (flowData.method === 'email' ||
|
|
2877
3018
|
flowData.method === 'zalo' ||
|
|
2878
3019
|
flowData.method === 'sms' ||
|
|
3020
|
+
flowData.method === 'whatsapp' ||
|
|
2879
3021
|
flowData.method === 'phone' ||
|
|
2880
3022
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
2881
3023
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -2934,6 +3076,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2934
3076
|
else if (otpType === 'phone-zalo') {
|
|
2935
3077
|
res = yield verifyByZaloOTP(phoneNumber, areaCode, otp);
|
|
2936
3078
|
}
|
|
3079
|
+
else if (otpType === 'phone-whatsapp') {
|
|
3080
|
+
res = yield verifyByWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3081
|
+
}
|
|
2937
3082
|
else if (otpType === 'email') {
|
|
2938
3083
|
res = yield verifyByEmailOTP(email, otp);
|
|
2939
3084
|
}
|
|
@@ -2956,7 +3101,15 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2956
3101
|
addStepAndGoNext({
|
|
2957
3102
|
type: SSOStepTypeType.FORGOT_PASSWORD_SETUP,
|
|
2958
3103
|
config: {
|
|
2959
|
-
provider: isZalo
|
|
3104
|
+
provider: isZalo
|
|
3105
|
+
? 'Zalo'
|
|
3106
|
+
: isSMS
|
|
3107
|
+
? 'SMS'
|
|
3108
|
+
: isWhatsApp
|
|
3109
|
+
? 'WhatsApp'
|
|
3110
|
+
: isEmail
|
|
3111
|
+
? 'Email'
|
|
3112
|
+
: '',
|
|
2960
3113
|
},
|
|
2961
3114
|
});
|
|
2962
3115
|
}
|
|
@@ -2984,6 +3137,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2984
3137
|
const needPass = (flowData.method === 'email' ||
|
|
2985
3138
|
flowData.method === 'zalo' ||
|
|
2986
3139
|
flowData.method === 'sms' ||
|
|
3140
|
+
flowData.method === 'whatsapp' ||
|
|
2987
3141
|
flowData.method === 'phone' ||
|
|
2988
3142
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
2989
3143
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3024,13 +3178,12 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3024
3178
|
}
|
|
3025
3179
|
setLoading(false);
|
|
3026
3180
|
});
|
|
3027
|
-
const
|
|
3181
|
+
const swapAnotherMethod = (newType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3028
3182
|
if (isEmail)
|
|
3029
3183
|
return;
|
|
3030
3184
|
setLoading(true);
|
|
3031
3185
|
try {
|
|
3032
3186
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3033
|
-
const newType = otpType === 'phone-sms' ? 'phone-zalo' : 'phone-sms';
|
|
3034
3187
|
let res;
|
|
3035
3188
|
if (isUpdatePhone) {
|
|
3036
3189
|
if (newType === 'phone-sms') {
|
|
@@ -3039,6 +3192,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3039
3192
|
else if (newType === 'phone-zalo') {
|
|
3040
3193
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
3041
3194
|
}
|
|
3195
|
+
else if (newType === 'phone-whatsapp') {
|
|
3196
|
+
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3197
|
+
}
|
|
3042
3198
|
}
|
|
3043
3199
|
else {
|
|
3044
3200
|
if (newType === 'phone-sms') {
|
|
@@ -3047,6 +3203,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3047
3203
|
else if (newType === 'phone-zalo') {
|
|
3048
3204
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
3049
3205
|
}
|
|
3206
|
+
else if (newType === 'phone-whatsapp') {
|
|
3207
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3208
|
+
}
|
|
3050
3209
|
}
|
|
3051
3210
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3052
3211
|
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
@@ -3096,7 +3255,13 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3096
3255
|
: 'ssov2.otp.phone.description', {
|
|
3097
3256
|
email,
|
|
3098
3257
|
phone,
|
|
3099
|
-
method:
|
|
3258
|
+
method: isSMS
|
|
3259
|
+
? 'SMS'
|
|
3260
|
+
: isZalo
|
|
3261
|
+
? 'Zalo'
|
|
3262
|
+
: isWhatsApp
|
|
3263
|
+
? 'WhatsApp'
|
|
3264
|
+
: '',
|
|
3100
3265
|
}),
|
|
3101
3266
|
} }))),
|
|
3102
3267
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
@@ -3126,9 +3291,20 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3126
3291
|
count: resendTime,
|
|
3127
3292
|
})))),
|
|
3128
3293
|
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')),
|
|
3129
|
-
!isEmail && (React__default.createElement(
|
|
3130
|
-
|
|
3131
|
-
|
|
3294
|
+
!isEmail && (React__default.createElement(React__default.Fragment, null,
|
|
3295
|
+
isFeatureWhatsAppEnabled && (React__default.createElement(Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-whatsapp'), loading: loading, disabled: loading,
|
|
3296
|
+
// data-event-category={trackingCategory}
|
|
3297
|
+
// data-event-action={trackingAction}
|
|
3298
|
+
// data-event-label="Continue with WhatsApp"
|
|
3299
|
+
display: !isWhatsApp ? 'block' : 'none', leftIcon: React__default.createElement(WhatsApp, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3300
|
+
method: 'WhatsApp',
|
|
3301
|
+
}))),
|
|
3302
|
+
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', {
|
|
3303
|
+
method: 'Zalo',
|
|
3304
|
+
})),
|
|
3305
|
+
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', {
|
|
3306
|
+
method: 'SMS',
|
|
3307
|
+
})))))));
|
|
3132
3308
|
};
|
|
3133
3309
|
|
|
3134
3310
|
const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
@@ -3755,6 +3931,48 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3755
3931
|
}
|
|
3756
3932
|
setLoading(false);
|
|
3757
3933
|
});
|
|
3934
|
+
const onClickContinueWhatsApp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3935
|
+
setLoading(true);
|
|
3936
|
+
try {
|
|
3937
|
+
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3938
|
+
if (!areaCode || !phoneNumber || !phone) {
|
|
3939
|
+
setErrMsg(t('ssov2.validate.phone.required'));
|
|
3940
|
+
return setLoading(false);
|
|
3941
|
+
}
|
|
3942
|
+
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
3943
|
+
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3944
|
+
if (!userExist._data) {
|
|
3945
|
+
const res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3946
|
+
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3947
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
3948
|
+
return setLoading(false);
|
|
3949
|
+
}
|
|
3950
|
+
addStep({
|
|
3951
|
+
type: SSOStepTypeType.OTP,
|
|
3952
|
+
config: {
|
|
3953
|
+
provider,
|
|
3954
|
+
phone,
|
|
3955
|
+
otpType: 'phone-whatsapp',
|
|
3956
|
+
isUpdatePhone: true,
|
|
3957
|
+
afterAction: afterAction || 'setup',
|
|
3958
|
+
},
|
|
3959
|
+
});
|
|
3960
|
+
goNext();
|
|
3961
|
+
}
|
|
3962
|
+
else {
|
|
3963
|
+
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
3964
|
+
}
|
|
3965
|
+
}
|
|
3966
|
+
else {
|
|
3967
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3970
|
+
catch (e) {
|
|
3971
|
+
console.log(e);
|
|
3972
|
+
setErrMsg(getErrorTextFromCode(t, ''));
|
|
3973
|
+
}
|
|
3974
|
+
setLoading(false);
|
|
3975
|
+
});
|
|
3758
3976
|
return (React__default.createElement("div", { style: {
|
|
3759
3977
|
display: hidden ? 'none' : 'block',
|
|
3760
3978
|
} },
|
|
@@ -3776,8 +3994,9 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3776
3994
|
'data-event-category': trackingCategory,
|
|
3777
3995
|
};
|
|
3778
3996
|
}, []) })),
|
|
3997
|
+
isFeatureWhatsAppEnabled && (React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueWhatsApp, loading: loading, disabled: loading, leftIcon: React__default.createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.continueWhatsApp'))),
|
|
3779
3998
|
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')),
|
|
3999
|
+
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'))),
|
|
3781
4000
|
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null)))));
|
|
3782
4001
|
};
|
|
3783
4002
|
|
|
@@ -4096,7 +4315,7 @@ const SSOUpdateEmailScreen = ({ hidden, }) => {
|
|
|
4096
4315
|
React__default.createElement(Stack, { spacing: 8 },
|
|
4097
4316
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.updateEmail.title')),
|
|
4098
4317
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.updateEmail.description'))),
|
|
4099
|
-
React__default.createElement(Input, { name: "email", placeholder:
|
|
4318
|
+
React__default.createElement(Input, { name: "email", placeholder: t('onboarding.formEmail.yourEmail'), error: errMsg || undefined, type: "email", required: true, mt: 24, onChange: () => setErrMsg(''), disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Email" }),
|
|
4100
4319
|
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'))));
|
|
4101
4320
|
};
|
|
4102
4321
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter } from './tslib.es6-b3491f04.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-0e18fa8e.js';
|
|
5
|
+
import { L as LOCALE_SPECS, B as BEARER_REFRESH_TOKEN_COOKIE, d as BEARER_TOKEN_COOKIE$1 } from './index-d849f519.js';
|
|
6
6
|
import { setCookie, getCookie } from './miscCookieHelper.js';
|
|
7
7
|
import { domainLocales } from './constantsDomainLocales.js';
|
|
8
8
|
|
|
@@ -22,6 +22,13 @@ 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
|
+
},
|
|
25
32
|
ZALO: {
|
|
26
33
|
REGISTER_BY_SEND_OTP: 'login/login-with-zalo',
|
|
27
34
|
SEND_OTP: 'login/zalo/sent-otp',
|
|
@@ -40,7 +47,7 @@ const SSO_V2_PATHS = {
|
|
|
40
47
|
},
|
|
41
48
|
};
|
|
42
49
|
|
|
43
|
-
const locale = process.env.
|
|
50
|
+
const locale = process.env.NEXT_PUBLIC_DEPLOY_LOCALE || 'id-ID';
|
|
44
51
|
const websiteId = LOCALE_SPECS[locale].SITE_ID;
|
|
45
52
|
LOCALE_SPECS[locale].PHONE;
|
|
46
53
|
const getSSOV2ApiUrl = (path) => {
|
|
@@ -154,14 +161,14 @@ const handleAuthSuccess = (res) => {
|
|
|
154
161
|
setCookie(BEARER_TOKEN_COOKIE, res.token, {
|
|
155
162
|
domain: window.location.hostname === 'localhost'
|
|
156
163
|
? 'localhost'
|
|
157
|
-
: `.${domainLocales[
|
|
164
|
+
: `.${domainLocales[locale]}`,
|
|
158
165
|
expires: new Date(res.expire_in * 1000).toUTCString(),
|
|
159
166
|
});
|
|
160
167
|
(res === null || res === void 0 ? void 0 : res.refresh_token) &&
|
|
161
168
|
setCookie(BEARER_REFRESH_TOKEN_COOKIE, res.refresh_token, {
|
|
162
169
|
domain: window.location.hostname === 'localhost'
|
|
163
170
|
? 'localhost'
|
|
164
|
-
: `.${domainLocales[
|
|
171
|
+
: `.${domainLocales[locale]}`,
|
|
165
172
|
});
|
|
166
173
|
};
|
|
167
174
|
|
|
@@ -439,7 +446,7 @@ const redirect = (returnUrl, source, forceReload) => {
|
|
|
439
446
|
return;
|
|
440
447
|
}
|
|
441
448
|
};
|
|
442
|
-
const SSOV2_LOCALES = ['vi-VN'];
|
|
449
|
+
const SSOV2_LOCALES = ['vi-VN', 'id-ID', 'ms-MY'];
|
|
443
450
|
const IS_SSOV2_ENABLED = (locale) => {
|
|
444
451
|
return (!process.env.NEXT_PUBLIC_MARRY_BABY &&
|
|
445
452
|
SSOV2_LOCALES.includes(locale ||
|
|
@@ -483,4 +490,4 @@ const isLoginWithPhoneNotVerifedYet = (flowData, userInfo) => {
|
|
|
483
490
|
!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone_verified_at));
|
|
484
491
|
};
|
|
485
492
|
|
|
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,
|
|
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, locale as l, redirect as m, resetPassword as r, useSSOV2Store as u, websiteId as w };
|