@hhgtech/hhg-components 1.29.309 → 1.29.310-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/build/{LastPeriod-0b670cad.js → LastPeriod-90ff758c.js} +1 -1
- package/build/{MobileBottomNavigationIcon-1f2cb78e.js → MobileBottomNavigationIcon-b8bb6062.js} +3 -3
- package/build/{Spinner-f58b472b.js → Spinner-722dfd85.js} +1 -1
- package/build/{WhatsApp-99b23e0c.js → WhatsApp-357abdfb.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-9eab1b41.js → constants-6b9bbc85.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-78540d2a.js → core-c214c09c.js} +1 -1
- package/build/{dataTransform-c1245ce6.js → dataTransform-eb8154b2.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-1fb2ef33.js → editor-cd4e1617.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-df537ca2.js → LastPeriod-4ac2b111.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-6e8dbea8.js → MobileBottomNavigationIcon-76daa567.js} +3 -3
- package/build/esm/{Spinner-ccaf7faa.js → Spinner-71529535.js} +1 -1
- package/build/esm/{WhatsApp-2a8d3475.js → WhatsApp-36f3706c.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-1403a09e.js → constants-bb7ee562.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-9d4e8fd6.js → core-8d8f1eeb.js} +1 -1
- package/build/esm/{dataTransform-c8ceea31.js → dataTransform-f3f93743.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-98136da9.js → editor-abac65bd.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-c1ab9fa6.js → fixedBottomAdBlock-9d0f5804.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 -0
- package/build/esm/i18n-values/hi-IN.js +1 -0
- package/build/esm/i18n-values/id-ID.js +1 -0
- package/build/esm/i18n-values/km-KH.js +2 -1
- package/build/esm/i18n-values/ms-MY.js +1 -0
- package/build/esm/i18n-values/my-MM.js +1 -0
- package/build/esm/i18n-values/th-TH.js +1 -0
- package/build/esm/i18n-values/tl-PH.js +1 -0
- package/build/esm/i18n-values/vi-VN.js +1 -0
- package/build/esm/i18n-values/vi-VN_MB.js +1 -0
- package/build/esm/i18n-values/zh-TW.js +1 -0
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-387ea0fa.js → index-17b0c66f.js} +3 -3
- package/build/esm/{index-5cfbe80d.js → index-29e9e5eb.js} +1 -1
- package/build/esm/{index-80fe9b84.js → index-29f2b9aa.js} +3 -3
- package/build/esm/{index-9d96871f.js → index-2a2579ff.js} +3 -3
- package/build/esm/{index-4f41fed0.js → index-2fe9c27f.js} +6 -6
- package/build/esm/{index-05d471cd.js → index-4086f6b1.js} +4 -4
- package/build/esm/{index-f354c81c.js → index-4360a970.js} +3 -3
- package/build/esm/{index-e82971ac.js → index-4497901f.js} +11 -11
- package/build/esm/{index-9193ecaa.js → index-46771f05.js} +1 -1
- package/build/esm/{index-313f43de.js → index-4c9fbe45.js} +17 -17
- package/build/esm/{index-be21276f.js → index-4ffe08ba.js} +2 -2
- package/build/esm/{index-e296cca7.js → index-51458153.js} +1 -1
- package/build/esm/{index-8b89c7c4.js → index-53aa77de.js} +10 -10
- package/build/esm/{index-80ffec58.js → index-53cd6886.js} +16 -16
- package/build/esm/{index-c03ae3fa.js → index-547967a0.js} +5 -5
- package/build/esm/{index-b8473147.js → index-54d83f25.js} +17 -17
- package/build/esm/{index-8b3349d6.js → index-58227575.js} +21 -21
- package/build/esm/{index-266f5e3c.js → index-58d75703.js} +6 -6
- package/build/esm/{index-840f45f8.js → index-5a177f50.js} +32 -32
- package/build/esm/{index-f566ed64.js → index-5a284989.js} +16 -16
- package/build/esm/{index-53707149.js → index-5c8d8ee9.js} +16 -16
- package/build/esm/{index-55ebb451.js → index-60011405.js} +17 -17
- package/build/esm/{index-261f6b66.js → index-61b0f1bc.js} +2 -2
- package/build/esm/{index-bcd52ada.js → index-68700bda.js} +16 -16
- package/build/esm/{index-226d2796.js → index-69960429.js} +2 -2
- package/build/esm/{index-8b2bb6dd.js → index-69e8cc06.js} +2 -2
- package/build/esm/{index-d4942a01.js → index-6c98aabd.js} +3 -3
- package/build/esm/{index-4c352ebb.js → index-70279f09.js} +2 -2
- package/build/esm/{index-f159e302.js → index-727d28f6.js} +3 -3
- package/build/esm/{index-a5f05b4f.js → index-759d0c8b.js} +6 -6
- package/build/esm/{index-1497a765.js → index-7697b579.js} +2 -2
- package/build/esm/{index-948284e5.js → index-7c0dc09d.js} +18 -18
- package/build/esm/{index-77ece98a.js → index-86aa670b.js} +1 -1
- package/build/esm/{index-d457d5b4.js → index-8ac75f50.js} +1 -1
- package/build/esm/{index-eec7c7b3.js → index-8e108913.js} +1 -1
- package/build/esm/{index-936b1263.js → index-93c9c28a.js} +30 -30
- package/build/esm/{index-ba357004.js → index-952d2324.js} +13 -13
- package/build/esm/{index-4f5f4e7c.js → index-af714a96.js} +24 -24
- package/build/esm/{index-fdafae75.js → index-afaf9e68.js} +2 -2
- package/build/esm/{index-fa1b0d7d.js → index-b0fe1960.js} +18 -18
- package/build/esm/{index-3f47dc07.js → index-b694bdcb.js} +13 -13
- package/build/esm/{index-072b479a.js → index-c1392f54.js} +1 -1
- package/build/esm/{index-b8a6eedd.js → index-c83206b9.js} +6 -6
- package/build/esm/{index-034ca26f.js → index-cf8f64ea.js} +5 -5
- package/build/esm/{index-926a919b.js → index-d1820007.js} +7 -7
- package/build/esm/{index-eb94964b.js → index-d21fb674.js} +2 -2
- package/build/esm/{index-405fe950.js → index-d3b34c0d.js} +15 -15
- package/build/esm/{index-887815f1.js → index-d8ac2d16.js} +2 -2
- package/build/esm/{index-24a7f8b6.js → index-dc175715.js} +2 -2
- package/build/esm/{index-825ab18c.js → index-e48d4b7b.js} +13 -13
- package/build/esm/{index-7e97923d.js → index-e5558110.js} +3 -3
- package/build/esm/{index-2c192875.js → index-e56928ce.js} +1 -1
- package/build/esm/{index-c6745db6.js → index-e689e27a.js} +20 -20
- package/build/esm/{index-5eeaa8e7.js → index-e7d3de41.js} +2 -2
- package/build/esm/{index-3571a567.js → index-e97c4f22.js} +7 -7
- package/build/esm/{index-50db8d16.js → index-eb360d80.js} +26 -26
- package/build/esm/{index-c72a5758.js → index-f00312f8.js} +1 -1
- package/build/esm/{index-2d9df233.js → index-f0640629.js} +13 -13
- package/build/esm/{index-17d22e06.js → index-f1276a7e.js} +2 -2
- package/build/esm/{index-1edf54ef.js → index-fa2ca4ba.js} +15 -15
- package/build/esm/index.js +112 -112
- package/build/esm/{labelSorting-6af5cdd0.js → labelSorting-6fdbb498.js} +4 -4
- package/build/esm/lead/components/otpBlock/index.d.ts +1 -1
- package/build/esm/lead/layouts/lightbox/otpBlock.d.ts +2 -2
- package/build/esm/lead/services/index.d.ts +2 -2
- package/build/esm/lead.js +74 -34
- package/build/esm/{logoIcon-9688bc3c.js → logoIcon-d6099328.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-826e5776.js → post-92159bd6.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/paths.d.ts +1 -0
- package/build/esm/ssoV2/screens/components/progressBar.d.ts +10 -0
- package/build/esm/ssoV2/screens/components/setupLater.d.ts +6 -0
- package/build/esm/ssoV2/screens/setup/otherSetup.d.ts +1 -1
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +5 -0
- package/build/esm/ssoV2.js +278 -158
- package/build/esm/{store-fb5b7e13.js → store-d8cbe910.js} +29 -5
- 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-9e36188f.js → surveyThankyouCard-6cc49b81.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-c4405cb1.js → treePopoverMenu-dd28fad0.js} +19 -19
- package/build/esm/{types-e339f9f6.js → types-0822a334.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-a6ea85ef.js → useCategory-40badf08.js} +5 -5
- package/build/esm/{useHealthToolCache-8ace84bf.js → useHealthToolCache-f462c647.js} +1 -1
- package/build/esm/{useMantineLocale-73e0e71e.js → useMantineLocale-9104cbfb.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-a31fff76.js → usePlacesAutocomplete-ce58ef60.js} +1 -1
- package/build/esm/{useScreenSize-ba61ee9b.js → useScreenSize-35522e58.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-3c6ce916.js → utils-257439f0.js} +2 -2
- package/build/esm/{utils-43464cd7.js → utils-b482c64d.js} +3 -3
- package/build/esm/{utils-2da6dc65.js → utils-c13a213d.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-e6300000.js → fixedBottomAdBlock-5df7cb60.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 -0
- package/build/i18n-values/hi-IN.js +1 -0
- package/build/i18n-values/id-ID.js +1 -0
- package/build/i18n-values/km-KH.js +2 -1
- package/build/i18n-values/ms-MY.js +1 -0
- package/build/i18n-values/my-MM.js +1 -0
- package/build/i18n-values/th-TH.js +1 -0
- package/build/i18n-values/tl-PH.js +1 -0
- package/build/i18n-values/vi-VN.js +1 -0
- package/build/i18n-values/vi-VN_MB.js +1 -0
- package/build/i18n-values/zh-TW.js +1 -0
- package/build/i18n.js +1 -1
- package/build/i18nV2.js +1 -1
- package/build/{index-189445a9.js → index-0759252a.js} +1 -1
- package/build/{index-78b1d557.js → index-07c6b735.js} +2 -2
- package/build/{index-0e9b8f89.js → index-0acb7daa.js} +3 -3
- package/build/{index-02bdf556.js → index-101f577f.js} +1 -1
- package/build/{index-07440c71.js → index-14a1a598.js} +6 -6
- package/build/{index-4cd87649.js → index-1747afd2.js} +1 -1
- package/build/{index-5917a56e.js → index-1805b83b.js} +17 -17
- package/build/{index-9d8af3b8.js → index-1cf7d4df.js} +13 -13
- package/build/{index-9d5d17e0.js → index-1f7cb3a9.js} +15 -15
- package/build/{index-51bee07b.js → index-21ca78b2.js} +24 -24
- package/build/{index-1e5730e4.js → index-31eeb7f0.js} +10 -10
- package/build/{index-884b5f06.js → index-3822e1f1.js} +13 -13
- package/build/{index-edafb6f3.js → index-40110f65.js} +1 -1
- package/build/{index-75e50104.js → index-41dd0524.js} +6 -6
- package/build/{index-372ff176.js → index-44177f60.js} +32 -32
- package/build/{index-b65395de.js → index-465a43b8.js} +2 -2
- package/build/{index-764beefd.js → index-4d7eb962.js} +2 -2
- package/build/{index-2e6eb762.js → index-546e2ca8.js} +6 -6
- package/build/{index-a189616a.js → index-552273c3.js} +3 -3
- package/build/{index-f938d77a.js → index-56165f0c.js} +2 -2
- package/build/{index-8dd2fa47.js → index-568cd425.js} +2 -2
- package/build/{index-85d17630.js → index-5ad70f0a.js} +2 -2
- package/build/{index-3e27733d.js → index-5cd31a9a.js} +18 -18
- package/build/{index-9606b8d6.js → index-5e528675.js} +17 -17
- package/build/{index-6567d6ca.js → index-66eeb518.js} +1 -1
- package/build/{index-bc0939b6.js → index-67085860.js} +7 -7
- package/build/{index-4019f8f3.js → index-6f365e6a.js} +1 -1
- package/build/{index-37882cf4.js → index-7673e179.js} +13 -13
- package/build/{index-207454f3.js → index-7c4fcc98.js} +2 -2
- package/build/{index-45891f51.js → index-7d4d954a.js} +2 -2
- package/build/{index-82cd185a.js → index-8437224b.js} +3 -3
- package/build/{index-2f0440a5.js → index-86978065.js} +5 -5
- package/build/{index-c2bc23f5.js → index-8cccb8aa.js} +16 -16
- package/build/{index-6ca7b8f9.js → index-994395a8.js} +3 -3
- package/build/{index-aa189383.js → index-a670479c.js} +2 -2
- package/build/{index-ed68838b.js → index-a75ed987.js} +16 -16
- package/build/{index-28bc3cee.js → index-abd90db6.js} +5 -5
- package/build/{index-433c0239.js → index-b125d8e8.js} +11 -11
- package/build/{index-4c196646.js → index-b1f4c52a.js} +6 -6
- package/build/{index-67dfe1e4.js → index-b2a25bf0.js} +21 -21
- package/build/{index-698d97ef.js → index-b5ed55b2.js} +1 -1
- package/build/{index-a75bcd2b.js → index-b6f01ee6.js} +20 -20
- package/build/{index-9b8cba4d.js → index-bf668085.js} +3 -3
- package/build/{index-cbdadeef.js → index-bfaebd3d.js} +30 -30
- package/build/{index-99ffc102.js → index-c07178e8.js} +2 -2
- package/build/{index-8d865f36.js → index-c8cfc4a8.js} +1 -1
- package/build/{index-c60d4430.js → index-ca11f260.js} +16 -16
- package/build/{index-9ab5bece.js → index-cab790cf.js} +16 -16
- package/build/{index-0b9ffd73.js → index-cb93f325.js} +26 -26
- package/build/{index-a8e1008c.js → index-cc3e010e.js} +17 -17
- package/build/{index-cfd85207.js → index-ccd3255b.js} +2 -2
- package/build/{index-1ce77fda.js → index-d62646ba.js} +15 -15
- package/build/{index-a86c66c1.js → index-d7293124.js} +1 -1
- package/build/{index-a9df7152.js → index-d73ab98e.js} +13 -13
- package/build/{index-ce55b556.js → index-db3f167d.js} +18 -18
- package/build/{index-9bdf0576.js → index-de15bf0a.js} +3 -3
- package/build/{index-32c9e95b.js → index-de442dea.js} +2 -2
- package/build/{index-00185117.js → index-f19d8ad7.js} +3 -3
- package/build/{index-909fb12b.js → index-f879ce03.js} +7 -7
- package/build/{index-f80f5642.js → index-fbb58179.js} +4 -4
- package/build/index.js +112 -112
- package/build/{labelSorting-b7e01f14.js → labelSorting-0bf2b501.js} +4 -4
- package/build/lead/components/otpBlock/index.d.ts +1 -1
- package/build/lead/layouts/lightbox/otpBlock.d.ts +2 -2
- package/build/lead/services/index.d.ts +2 -2
- package/build/lead.js +74 -34
- package/build/{logoIcon-ae456bed.js → logoIcon-162c788e.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-2cb33634.js → post-40feed6a.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/paths.d.ts +1 -0
- package/build/ssoV2/screens/components/progressBar.d.ts +10 -0
- package/build/ssoV2/screens/components/setupLater.d.ts +6 -0
- package/build/ssoV2/screens/setup/otherSetup.d.ts +1 -1
- package/build/ssoV2/ssoStateManager/store.d.ts +5 -0
- package/build/ssoV2.js +275 -155
- package/build/{store-eff428e1.js → store-f4f2ca03.js} +31 -4
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-e84c4048.js → surveyThankyouCard-874f173f.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-e6298cb7.js → treePopoverMenu-81516115.js} +19 -19
- package/build/{types-477ca303.js → types-485483bd.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-dff3a437.js → useCategory-afbf2050.js} +5 -5
- package/build/{useHealthToolCache-c42a1116.js → useHealthToolCache-46f924dc.js} +1 -1
- package/build/{useMantineLocale-8570ecad.js → useMantineLocale-59873f6a.js} +6 -6
- package/build/{usePlacesAutocomplete-759d385a.js → usePlacesAutocomplete-9eed7bcd.js} +1 -1
- package/build/{useScreenSize-df390345.js → useScreenSize-b9bc2dcc.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-a2e37fed.js → utils-46338444.js} +2 -2
- package/build/{utils-5ca4b7c8.js → utils-6d399e1a.js} +2 -2
- package/build/{utils-68177c88.js → utils-aa844f16.js} +3 -3
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-35d1bdaf.js → BMI_BOYS.percentile.monthly-a9991c2d.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-b7234732.js → BMI_BOYS.percentile.weekly-5f5e8fd1.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-79ff3800.js → BMI_BOYS.percentile.yearly-238a0207.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-126b08b6.js → BMI_BOYS.zscore.monthly-b5de5e43.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-eebba5bc.js → BMI_BOYS.zscore.weekly-1cbda2da.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-1a52fc67.js → BMI_BOYS.zscore.yearly-7b087dbf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-83eddec7.js → BMI_GIRLS.percentile.monthly-1eaaeae2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-53c56dfc.js → BMI_GIRLS.percentile.weekly-80d954a2.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-e62087f1.js → BMI_GIRLS.percentile.yearly-66df3cb8.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-e8a4924b.js → BMI_GIRLS.zscore.monthly-7be0ec4d.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-ae51cebd.js → BMI_GIRLS.zscore.weekly-0f7ba547.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-e768bbab.js → BMI_GIRLS.zscore.yearly-bb1522c1.js} +0 -0
- /package/build/{ChevronDown-fa8cc75a.js → ChevronDown-6524b4d5.js} +0 -0
- /package/build/{Close-142a682b.js → Close-677b332d.js} +0 -0
- /package/build/{Google-ee2cf494.js → Google-3ebb85cc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-bfa8e91f.js → HEAD CIRCUM_BOYS.percentile.monthly-936ba8cc.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-dc4308a2.js → HEAD CIRCUM_BOYS.percentile.weekly-82560e97.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-34cc1bbf.js → HEAD CIRCUM_BOYS.percentile.yearly-08a32152.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-5eb56bd0.js → HEAD CIRCUM_BOYS.zscore.monthly-d46cb158.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-2c2ab7c0.js → HEAD CIRCUM_BOYS.zscore.weekly-f8a133af.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-af8a2ebb.js → HEAD CIRCUM_BOYS.zscore.yearly-3aa0325f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-addca562.js → HEAD CIRCUM_GIRLS.percentile.monthly-89011ed1.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-2d1fe8e7.js → HEAD CIRCUM_GIRLS.percentile.weekly-5ffadda6.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-9cbca187.js → HEAD CIRCUM_GIRLS.percentile.yearly-8e39864b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-6994ae12.js → HEAD CIRCUM_GIRLS.zscore.monthly-9244a4fa.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-90f3e6fb.js → HEAD CIRCUM_GIRLS.zscore.weekly-c5284a43.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-57ccd5fd.js → HEAD CIRCUM_GIRLS.zscore.yearly-6b7ae8c0.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-af3b5304.js → HEIGHT_BOYS.percentile.monthly-0238b1dd.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-63b71a40.js → HEIGHT_BOYS.percentile.weekly-2d9e2fd9.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-6f1bd841.js → HEIGHT_BOYS.percentile.yearly-580038dd.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-1d5da3e8.js → HEIGHT_BOYS.zscore.monthly-f28ee9ba.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-beefa25a.js → HEIGHT_BOYS.zscore.weekly-34fb4a5f.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-896a7fa3.js → HEIGHT_BOYS.zscore.yearly-2681be02.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-248615b7.js → HEIGHT_GIRLS.percentile.monthly-206248d1.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-a1245e85.js → HEIGHT_GIRLS.percentile.weekly-6b5f88bf.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-0a94f807.js → HEIGHT_GIRLS.percentile.yearly-ff910f97.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-809a7131.js → HEIGHT_GIRLS.zscore.monthly-9fb987b3.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-ea46e599.js → HEIGHT_GIRLS.zscore.weekly-bafb6d36.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-19626ed9.js → HEIGHT_GIRLS.zscore.yearly-092a128f.js} +0 -0
- /package/build/{Locale-3263cc98.js → Locale-25e47dda.js} +0 -0
- /package/build/{Visible-38dd1795.js → Visible-488ba802.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-d6bf58a6.js → WEIGHT_BOYS.percentile.monthly-c8c63118.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-9b267564.js → WEIGHT_BOYS.percentile.weekly-b4ef1415.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-2de9875a.js → WEIGHT_BOYS.percentile.yearly-bae57b0b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b31cb484.js → WEIGHT_BOYS.zscore.monthly-032d4731.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-4f4b5b4a.js → WEIGHT_BOYS.zscore.weekly-1acc0054.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-f546e2cb.js → WEIGHT_BOYS.zscore.yearly-072919b5.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5c6444a5.js → WEIGHT_GIRLS.percentile.monthly-c70965a7.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-4ad720f7.js → WEIGHT_GIRLS.percentile.weekly-fd0207b8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-5fc633ed.js → WEIGHT_GIRLS.percentile.yearly-1fac39f0.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-e3b2425d.js → WEIGHT_GIRLS.zscore.monthly-41018999.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-689497b5.js → WEIGHT_GIRLS.zscore.weekly-5f31890c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-386b0074.js → WEIGHT_GIRLS.zscore.yearly-0aef88ff.js} +0 -0
- /package/build/{animation-62654ed2.js → animation-33100402.js} +0 -0
- /package/build/{constants-36208bb9.js → constants-2dfe335d.js} +0 -0
- /package/build/{constants-b6e71814.js → constants-3a0e6689.js} +0 -0
- /package/build/{constants-60dcf799.js → constants-6ead2908.js} +0 -0
- /package/build/{dataTransform-794a0718.js → dataTransform-d7dfb91f.js} +0 -0
- /package/build/{doctor-9b8a0c06.js → doctor-341aacd1.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-9832bdeb.js → BMI_BOYS.percentile.monthly-1c6205c7.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-526de31f.js → BMI_BOYS.percentile.weekly-196177f8.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-547aaac9.js → BMI_BOYS.percentile.yearly-70391e1e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-6074c61e.js → BMI_BOYS.zscore.monthly-7de4e50e.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-20e268b6.js → BMI_BOYS.zscore.weekly-1c4359a2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-1a700ceb.js → BMI_BOYS.zscore.yearly-d0e1cf35.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-eed80d5b.js → BMI_GIRLS.percentile.monthly-cb237763.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-c4b33d1f.js → BMI_GIRLS.percentile.weekly-8c9112a6.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-78826f4d.js → BMI_GIRLS.percentile.yearly-8602c014.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-8e49a222.js → BMI_GIRLS.zscore.monthly-308bb882.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-28d6d095.js → BMI_GIRLS.zscore.weekly-f08f763d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-64cb5081.js → BMI_GIRLS.zscore.yearly-130d42b0.js} +0 -0
- /package/build/esm/{ChevronDown-07477642.js → ChevronDown-d22e5a02.js} +0 -0
- /package/build/esm/{Close-e724e916.js → Close-e42695ce.js} +0 -0
- /package/build/esm/{Google-6d5e4852.js → Google-db72db7b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-952f88e6.js → HEAD CIRCUM_BOYS.percentile.monthly-875d05fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-22d3bd6b.js → HEAD CIRCUM_BOYS.percentile.weekly-3173ae7b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-2f2b0723.js → HEAD CIRCUM_BOYS.percentile.yearly-f2c105a5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-ff39b900.js → HEAD CIRCUM_BOYS.zscore.monthly-13bbeffc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-ba8e3ab5.js → HEAD CIRCUM_BOYS.zscore.weekly-cf30f6d4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-36bd141a.js → HEAD CIRCUM_BOYS.zscore.yearly-f2a6f420.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-857fe9fd.js → HEAD CIRCUM_GIRLS.percentile.monthly-d39e4b3b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-6a1fdcf5.js → HEAD CIRCUM_GIRLS.percentile.weekly-c8b7ab74.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-2142847d.js → HEAD CIRCUM_GIRLS.percentile.yearly-eebad464.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-325e5bb6.js → HEAD CIRCUM_GIRLS.zscore.monthly-da79ab93.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-a520e5a7.js → HEAD CIRCUM_GIRLS.zscore.weekly-816f3c95.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-490a6359.js → HEAD CIRCUM_GIRLS.zscore.yearly-50266471.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-548e3bb6.js → HEIGHT_BOYS.percentile.monthly-592c7eb0.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-f7545f16.js → HEIGHT_BOYS.percentile.weekly-31021aa8.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-edd21499.js → HEIGHT_BOYS.percentile.yearly-36c6aa85.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-97a28632.js → HEIGHT_BOYS.zscore.monthly-395100af.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-80fc4255.js → HEIGHT_BOYS.zscore.weekly-8ba787cd.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-21e4b5c0.js → HEIGHT_BOYS.zscore.yearly-6427866a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-47b16bf9.js → HEIGHT_GIRLS.percentile.monthly-5b538cd8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-f4049318.js → HEIGHT_GIRLS.percentile.weekly-bcf9bc78.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-f9cb3693.js → HEIGHT_GIRLS.percentile.yearly-f58c1a1b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-ea2104c0.js → HEIGHT_GIRLS.zscore.monthly-beee4dd2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-f29c21fd.js → HEIGHT_GIRLS.zscore.weekly-e0af6406.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-7d75940b.js → HEIGHT_GIRLS.zscore.yearly-8d1f1571.js} +0 -0
- /package/build/esm/{Locale-86b3f818.js → Locale-89b4bfcc.js} +0 -0
- /package/build/esm/{Visible-7d6452e5.js → Visible-6ce79ca9.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-bae54ac8.js → WEIGHT_BOYS.percentile.monthly-49052caf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-a54a24e6.js → WEIGHT_BOYS.percentile.weekly-c7eed24b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-ff1b7ec7.js → WEIGHT_BOYS.percentile.yearly-3f4aeba6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-11e15278.js → WEIGHT_BOYS.zscore.monthly-dbf7304f.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-558cdc30.js → WEIGHT_BOYS.zscore.weekly-f599ceb5.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-4f62f49a.js → WEIGHT_BOYS.zscore.yearly-aaa5d4dc.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-606473fd.js → WEIGHT_GIRLS.percentile.monthly-1ba63eca.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-0d99d0d9.js → WEIGHT_GIRLS.percentile.weekly-23b5da91.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-0aeaba02.js → WEIGHT_GIRLS.percentile.yearly-bfee156d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-1dc9ebb1.js → WEIGHT_GIRLS.zscore.monthly-d022c0af.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-64e5b4f2.js → WEIGHT_GIRLS.zscore.weekly-77d2080f.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-43f6fbda.js → WEIGHT_GIRLS.zscore.yearly-8d6001eb.js} +0 -0
- /package/build/esm/{animation-a3ddd317.js → animation-e7eb7ff9.js} +0 -0
- /package/build/esm/{constants-951da75e.js → constants-08ae1c0a.js} +0 -0
- /package/build/esm/{constants-802b8270.js → constants-51615ea7.js} +0 -0
- /package/build/esm/{constants-3d233779.js → constants-ea288cec.js} +0 -0
- /package/build/esm/{dataTransform-86e53498.js → dataTransform-b80b5ad6.js} +0 -0
- /package/build/esm/{doctor-1b242061.js → doctor-cd3b8e4a.js} +0 -0
- /package/build/esm/{index-01a8e662.js → index-2146d269.js} +0 -0
- /package/build/esm/{index-b1b0e431.js → index-3af6fe0c.js} +0 -0
- /package/build/esm/{index-acb265fa.js → index-47895d15.js} +0 -0
- /package/build/esm/{index-221e8416.js → index-4c608d8d.js} +0 -0
- /package/build/esm/{index-c727799a.js → index-9d797758.js} +0 -0
- /package/build/esm/{index-8d6b6c31.js → index-b2db64bc.js} +0 -0
- /package/build/esm/{index-050df0cd.js → index-d759bd85.js} +0 -0
- /package/build/esm/{index-4e0a20fb.js → index-e8f3c3ca.js} +0 -0
- /package/build/esm/{index-e4808cf4.js → index-e9f9bb9e.js} +0 -0
- /package/build/esm/{index.styles-8963f87c.js → index.styles-4ebe8e58.js} +0 -0
- /package/build/esm/{localizeNumberFormat-77884600.js → localizeNumberFormat-62131734.js} +0 -0
- /package/build/esm/{normalizeLink-6d001dd3.js → normalizeLink-073e5351.js} +0 -0
- /package/build/esm/{other-509b77ae.js → other-e4635691.js} +0 -0
- /package/build/esm/{paths-213612a1.js → paths-77d3b3c1.js} +0 -0
- /package/build/esm/{translationsContext-85cf60fd.js → translationsContext-50b80428.js} +0 -0
- /package/build/esm/{tslib.es6-f9caf44b.js → tslib.es6-1abdf769.js} +0 -0
- /package/build/esm/{types-fce73f8b.js → types-c4c331e7.js} +0 -0
- /package/build/esm/{useIsInit-1881fe18.js → useIsInit-e5dcf439.js} +0 -0
- /package/build/esm/{useOutsideClick-b4dbc694.js → useOutsideClick-9f63d8e9.js} +0 -0
- /package/build/esm/{useScrollbarSize-5a8cbacd.js → useScrollbarSize-a4ab245a.js} +0 -0
- /package/build/esm/{useUniqueId-46ceab38.js → useUniqueId-c9e5cd96.js} +0 -0
- /package/build/esm/{utils-4dfbb209.js → utils-b8f3ed7d.js} +0 -0
- /package/build/{index-e70f4cb0.js → index-091a6255.js} +0 -0
- /package/build/{index-37b25b5b.js → index-2e1eb93f.js} +0 -0
- /package/build/{index-e380c38c.js → index-33066c7e.js} +0 -0
- /package/build/{index-bb1fddbe.js → index-4421426a.js} +0 -0
- /package/build/{index-6a9de00e.js → index-6c3729e9.js} +0 -0
- /package/build/{index-e79e0374.js → index-97327fb9.js} +0 -0
- /package/build/{index-b83513ed.js → index-99fdb527.js} +0 -0
- /package/build/{index-5df6bf28.js → index-d20be650.js} +0 -0
- /package/build/{index-e66a0c4b.js → index-f850f58a.js} +0 -0
- /package/build/{index.styles-7466c959.js → index.styles-67a4c699.js} +0 -0
- /package/build/{localizeNumberFormat-414c0b88.js → localizeNumberFormat-f820c952.js} +0 -0
- /package/build/{normalizeLink-ee2a225b.js → normalizeLink-0eb3970f.js} +0 -0
- /package/build/{other-e2f81e0f.js → other-4913eec5.js} +0 -0
- /package/build/{paths-9dcf361d.js → paths-e341f7d4.js} +0 -0
- /package/build/{translationsContext-77aa75b4.js → translationsContext-4a8cbf9e.js} +0 -0
- /package/build/{tslib.es6-3f0253fc.js → tslib.es6-867e5c71.js} +0 -0
- /package/build/{types-207735a6.js → types-7ca38cc6.js} +0 -0
- /package/build/{useIsInit-a57fa369.js → useIsInit-2ec94759.js} +0 -0
- /package/build/{useOutsideClick-ad2c1fa8.js → useOutsideClick-80d329e5.js} +0 -0
- /package/build/{useScrollbarSize-735468a3.js → useScrollbarSize-3ff0967a.js} +0 -0
- /package/build/{useUniqueId-1f198245.js → useUniqueId-4eae3d27.js} +0 -0
- /package/build/{utils-d5855593.js → utils-8fd5828a.js} +0 -0
package/build/esm/ssoV2.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
2
|
-
import React__default, { createContext, useEffect, useState,
|
|
3
|
-
import { I as Input, s as styles, O as OTP, f as PasswordInput,
|
|
4
|
-
import { a as useSSOSteps,
|
|
5
|
-
export { u as useSSOV2Store } from './store-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-1abdf769.js';
|
|
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-4497901f.js';
|
|
4
|
+
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isPhoneNotVerifedYet, b as isUserFinishedSetup, c as isUserNeedPassword, f as fetchSSOV2Api, w as websiteId, d as SSO_V2_PATHS, e as checkUserExist, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, j as updateUserInfo, k as isLoginWithPhoneNotVerifedYet, r as resetPassword, l as redirect } from './store-d8cbe910.js';
|
|
5
|
+
export { u as useSSOV2Store } from './store-d8cbe910.js';
|
|
6
6
|
import { ChevronLeft } from '@hhgtech/icons/arrow';
|
|
7
7
|
import { Close, Search } 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-
|
|
12
|
-
import { Stack,
|
|
8
|
+
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES } from './index-70279f09.js';
|
|
9
|
+
import { L as LogoIcon } from './logoIcon-d6099328.js';
|
|
10
|
+
import { B as Button } from './index-29e9e5eb.js';
|
|
11
|
+
import { M as Modal } from './index-4ffe08ba.js';
|
|
12
|
+
import { Stack, Flex, Box, Group } 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-8ac75f50.js';
|
|
15
|
+
import './index-e9f9bb9e.js';
|
|
16
|
+
import { s as showNotification } from './useMantineLocale-9104cbfb.js';
|
|
17
|
+
import { T as Text } from './index-69e8cc06.js';
|
|
18
|
+
import { u as useTranslations } from './index-f00312f8.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-b8f3ed7d.js';
|
|
21
|
+
import './other-e4635691.js';
|
|
22
|
+
import './index-6c98aabd.js';
|
|
23
|
+
import { L as LOCALE } from './Locale-89b4bfcc.js';
|
|
24
|
+
import { G as Google, F as Facebook } from './Google-db72db7b.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-35522e58.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-c13a213d.js';
|
|
35
|
+
import { S as Spoiler } from './index-4360a970.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-c83206b9.js';
|
|
41
41
|
import '@mantine/carousel';
|
|
42
42
|
import './miscTheme.js';
|
|
43
|
-
import './useUniqueId-
|
|
43
|
+
import './useUniqueId-c9e5cd96.js';
|
|
44
44
|
import './constantsSite.js';
|
|
45
45
|
import 'zustand';
|
|
46
46
|
import './constantsIsProduction.js';
|
|
47
|
-
import './normalizeLink-
|
|
47
|
+
import './normalizeLink-073e5351.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-4ebe8e58.js';
|
|
52
52
|
import '@mantine/notifications';
|
|
53
|
-
import './translationsContext-
|
|
53
|
+
import './translationsContext-50b80428.js';
|
|
54
54
|
|
|
55
55
|
const SSOStateContext = createContext({
|
|
56
56
|
locale: LOCALE.Vietnam,
|
|
@@ -158,13 +158,117 @@ const BackgroundHeader = () => (React__default.createElement("svg", { width: "29
|
|
|
158
158
|
React__default.createElement("stop", { stopColor: "#fff", stopOpacity: "0" }),
|
|
159
159
|
React__default.createElement("stop", { offset: "1", stopColor: "#fff" })))));
|
|
160
160
|
|
|
161
|
+
const isSocialFlowFn = (flowData) => {
|
|
162
|
+
return (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'google' || (flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'facebook';
|
|
163
|
+
};
|
|
164
|
+
const isPhoneFlowFn = (flowData) => {
|
|
165
|
+
return ((flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'sms' ||
|
|
166
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'zalo' ||
|
|
167
|
+
(flowData === null || flowData === void 0 ? void 0 : flowData.method) === 'phone');
|
|
168
|
+
};
|
|
169
|
+
const isDisplayProgressBarFn = (flowData, step) => {
|
|
170
|
+
const showProgressBar = (step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.OTP ||
|
|
171
|
+
(step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.SETUP_FULL ||
|
|
172
|
+
(step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.VERIFY_PHONE ||
|
|
173
|
+
(step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.PASSWORD ||
|
|
174
|
+
(step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.FORGOT_PASSWORD_PHONE ||
|
|
175
|
+
(step === null || step === void 0 ? void 0 : step.type) === SSOStepTypeType.FORGOT_PASSWORD_SETUP;
|
|
176
|
+
// step?.type === SSOStepTypeType.PASSWORD
|
|
177
|
+
const isWhiteListFlow = isSocialFlowFn(flowData) || isPhoneFlowFn(flowData);
|
|
178
|
+
return showProgressBar && isWhiteListFlow;
|
|
179
|
+
};
|
|
180
|
+
const getCurrentStepNumber = (flowData, step, userInfo) => {
|
|
181
|
+
const isSocialFlow = isSocialFlowFn(flowData);
|
|
182
|
+
const isPhoneFlow = isPhoneFlowFn(flowData);
|
|
183
|
+
/** Social (Google, Facebook): FIRST => VERIFY_PHONE | OTP => STEP_FULL */
|
|
184
|
+
if (isSocialFlow) {
|
|
185
|
+
const arrSteps = [
|
|
186
|
+
isPhoneNotVerifedYet(userInfo)
|
|
187
|
+
? [SSOStepTypeType.VERIFY_PHONE, SSOStepTypeType.OTP]
|
|
188
|
+
: undefined,
|
|
189
|
+
!userInfo || !isUserFinishedSetup(userInfo)
|
|
190
|
+
? SSOStepTypeType.SETUP_FULL
|
|
191
|
+
: undefined,
|
|
192
|
+
]
|
|
193
|
+
.flat()
|
|
194
|
+
.filter(Boolean);
|
|
195
|
+
return [
|
|
196
|
+
arrSteps.length,
|
|
197
|
+
arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
|
|
198
|
+
];
|
|
199
|
+
}
|
|
200
|
+
if (isPhoneFlow && (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'signup') {
|
|
201
|
+
const arrSteps = [
|
|
202
|
+
isPhoneNotVerifedYet(userInfo) ? SSOStepTypeType.OTP : undefined,
|
|
203
|
+
isUserNeedPassword(flowData, userInfo)
|
|
204
|
+
? SSOStepTypeType.FORGOT_PASSWORD_SETUP
|
|
205
|
+
: undefined,
|
|
206
|
+
!userInfo || !isUserFinishedSetup(userInfo)
|
|
207
|
+
? SSOStepTypeType.SETUP_FULL
|
|
208
|
+
: undefined,
|
|
209
|
+
]
|
|
210
|
+
.flat()
|
|
211
|
+
.filter(Boolean);
|
|
212
|
+
return [
|
|
213
|
+
arrSteps.length,
|
|
214
|
+
arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
|
|
215
|
+
];
|
|
216
|
+
}
|
|
217
|
+
if (isPhoneFlow && (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'login') {
|
|
218
|
+
const arrSteps = !userInfo
|
|
219
|
+
? []
|
|
220
|
+
: [
|
|
221
|
+
SSOStepTypeType.PASSWORD,
|
|
222
|
+
isPhoneNotVerifedYet(userInfo)
|
|
223
|
+
? [SSOStepTypeType.FORGOT_PASSWORD_PHONE, SSOStepTypeType.OTP]
|
|
224
|
+
: undefined,
|
|
225
|
+
!isUserFinishedSetup(userInfo)
|
|
226
|
+
? SSOStepTypeType.SETUP_FULL
|
|
227
|
+
: undefined,
|
|
228
|
+
]
|
|
229
|
+
.flat()
|
|
230
|
+
.filter(Boolean);
|
|
231
|
+
return [
|
|
232
|
+
arrSteps.length,
|
|
233
|
+
arrSteps.findIndex((type) => type === (step === null || step === void 0 ? void 0 : step.type)) + 1,
|
|
234
|
+
];
|
|
235
|
+
}
|
|
236
|
+
return [];
|
|
237
|
+
};
|
|
238
|
+
const ProgressBar = () => {
|
|
239
|
+
// const initUserInfo = useRef<UserInfo | undefined | null>()
|
|
240
|
+
const { steps, currentStepIndex } = useSSOSteps();
|
|
241
|
+
const { flowData, userInfo } = useSSOV2Store();
|
|
242
|
+
/** No need update state IF userInfo is changed */
|
|
243
|
+
const initUserInfo = useMemo(() => userInfo, [userInfo]);
|
|
244
|
+
const currentStep = steps[currentStepIndex];
|
|
245
|
+
const [totalStepNumber, activeStepNumber] = getCurrentStepNumber(flowData, currentStep, initUserInfo);
|
|
246
|
+
if (!activeStepNumber || totalStepNumber === 1)
|
|
247
|
+
return null;
|
|
248
|
+
return (React__default.createElement(Flex, { gap: 2 }, Array.from({ length: totalStepNumber }).map((_, idx) => {
|
|
249
|
+
const currentStepNumber = idx + 1;
|
|
250
|
+
return (React__default.createElement(Box, { key: currentStepNumber, style: {
|
|
251
|
+
width: 'auto',
|
|
252
|
+
height: 2,
|
|
253
|
+
flex: 1,
|
|
254
|
+
borderRadius: 4,
|
|
255
|
+
backgroundColor: currentStepNumber <= activeStepNumber ? '#00B16A' : '#D2D6DC',
|
|
256
|
+
} }));
|
|
257
|
+
})));
|
|
258
|
+
};
|
|
259
|
+
|
|
161
260
|
const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
162
261
|
var _a;
|
|
163
|
-
const { steps, goBack } = useSSOSteps();
|
|
262
|
+
const { steps, goBack, currentStepIndex } = useSSOSteps();
|
|
263
|
+
const { flowData } = useSSOV2Store();
|
|
164
264
|
const { locale, tracking } = useSSOState();
|
|
165
|
-
const
|
|
166
|
-
const
|
|
167
|
-
const
|
|
265
|
+
const currentStep = steps[currentStepIndex];
|
|
266
|
+
const showProgressBar = isDisplayProgressBarFn(flowData, currentStep);
|
|
267
|
+
const showBack = (steps.length > 1 && !showProgressBar) ||
|
|
268
|
+
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.OTP ||
|
|
269
|
+
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.PASSWORD;
|
|
270
|
+
const showClose = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.FIRST;
|
|
271
|
+
const showLogo = (steps.length === 1 || showProgressBar) && !showBack;
|
|
168
272
|
const logoType = (_a = LOCALE_SPECS[locale]) === null || _a === void 0 ? void 0 : _a.LOGO_TYPE;
|
|
169
273
|
const [closeConfirmOpen, setCloseConfirmOpen] = React__default.useState(false);
|
|
170
274
|
const onCloseClick = () => {
|
|
@@ -231,6 +335,7 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
231
335
|
borderRadius: '100%',
|
|
232
336
|
}, onClick: onCloseClick, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Exit" },
|
|
233
337
|
React__default.createElement(Close, null)))),
|
|
338
|
+
showProgressBar && React__default.createElement(ProgressBar, null),
|
|
234
339
|
React__default.createElement("div", { style: {
|
|
235
340
|
flex: 1,
|
|
236
341
|
} }, children)),
|
|
@@ -2062,6 +2167,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2062
2167
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
2063
2168
|
const { locale, onClose, setTracking } = useSSOState();
|
|
2064
2169
|
const { addStep, goNext } = useSSOSteps();
|
|
2170
|
+
const { setUserInfo } = useSSOV2Store();
|
|
2065
2171
|
const [activeTab, setActiveTab] = React__default.useState('login');
|
|
2066
2172
|
const { legalTextType } = config || {};
|
|
2067
2173
|
const { t } = useTranslations();
|
|
@@ -2078,20 +2184,31 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2078
2184
|
}, [hidden]);
|
|
2079
2185
|
const [loading, setLoading] = React__default.useState(false);
|
|
2080
2186
|
const handleLoginBySocial = (credential, provider) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2081
|
-
var _c, _d;
|
|
2082
2187
|
const res = yield loginBySocial(credential, provider);
|
|
2083
2188
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
2084
2189
|
handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
|
|
2085
2190
|
const userInfo = yield getUserInfo();
|
|
2191
|
+
setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
|
|
2086
2192
|
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo._status) === 1 && userInfo._data) {
|
|
2087
2193
|
useSSOV2Store.setState({
|
|
2088
2194
|
flowData: {
|
|
2089
2195
|
method: provider,
|
|
2090
2196
|
},
|
|
2091
2197
|
});
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2198
|
+
const isNotHavePhone = !userInfo._data.phone || !userInfo._data.phone_verified_at;
|
|
2199
|
+
if (isNotHavePhone) {
|
|
2200
|
+
useSSOV2Store.setState((f) => ({
|
|
2201
|
+
flowData: Object.assign(Object.assign({}, f.flowData), { flow: 'signup', isVerifyPhone: true }),
|
|
2202
|
+
}));
|
|
2203
|
+
addStep({
|
|
2204
|
+
type: SSOStepTypeType.VERIFY_PHONE,
|
|
2205
|
+
config: {
|
|
2206
|
+
provider: provider,
|
|
2207
|
+
},
|
|
2208
|
+
});
|
|
2209
|
+
goNext();
|
|
2210
|
+
}
|
|
2211
|
+
else if (!isUserFinishedSetup(userInfo._data)) {
|
|
2095
2212
|
useSSOV2Store.setState((f) => ({
|
|
2096
2213
|
flowData: Object.assign(Object.assign({}, f.flowData), { flow: 'signup' }),
|
|
2097
2214
|
}));
|
|
@@ -2122,19 +2239,6 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2122
2239
|
goNext();
|
|
2123
2240
|
}
|
|
2124
2241
|
}
|
|
2125
|
-
else if (!((_c = userInfo._data) === null || _c === void 0 ? void 0 : _c.phone_verified_at) ||
|
|
2126
|
-
!((_d = userInfo._data) === null || _d === void 0 ? void 0 : _d.phone)) {
|
|
2127
|
-
useSSOV2Store.setState((f) => ({
|
|
2128
|
-
flowData: Object.assign(Object.assign({}, f.flowData), { flow: 'login', isVerifyPhone: true }),
|
|
2129
|
-
}));
|
|
2130
|
-
addStep({
|
|
2131
|
-
type: SSOStepTypeType.VERIFY_PHONE,
|
|
2132
|
-
config: {
|
|
2133
|
-
provider: provider,
|
|
2134
|
-
},
|
|
2135
|
-
});
|
|
2136
|
-
goNext();
|
|
2137
|
-
}
|
|
2138
2242
|
else {
|
|
2139
2243
|
onClose === null || onClose === void 0 ? void 0 : onClose(true);
|
|
2140
2244
|
}
|
|
@@ -2174,7 +2278,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2174
2278
|
};
|
|
2175
2279
|
}, []);
|
|
2176
2280
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2177
|
-
var
|
|
2281
|
+
var _c, _d;
|
|
2178
2282
|
setLoading(true);
|
|
2179
2283
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2180
2284
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2183,8 +2287,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2183
2287
|
}
|
|
2184
2288
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2185
2289
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2186
|
-
const provider = (
|
|
2187
|
-
if ((
|
|
2290
|
+
const provider = (_c = userExist._data) === null || _c === void 0 ? void 0 : _c.provider;
|
|
2291
|
+
if ((_d = userExist._data) === null || _d === void 0 ? void 0 : _d.is_pass) {
|
|
2188
2292
|
useSSOV2Store.setState({
|
|
2189
2293
|
flowData: {
|
|
2190
2294
|
method: 'zalo',
|
|
@@ -2223,7 +2327,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2223
2327
|
config: {
|
|
2224
2328
|
phone,
|
|
2225
2329
|
otpType: 'phone-zalo',
|
|
2226
|
-
afterAction: '
|
|
2330
|
+
afterAction: 'forgot',
|
|
2227
2331
|
},
|
|
2228
2332
|
});
|
|
2229
2333
|
goNext();
|
|
@@ -2235,7 +2339,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2235
2339
|
setLoading(false);
|
|
2236
2340
|
});
|
|
2237
2341
|
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2238
|
-
var
|
|
2342
|
+
var _e, _f;
|
|
2239
2343
|
setLoading(true);
|
|
2240
2344
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2241
2345
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2244,8 +2348,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2244
2348
|
}
|
|
2245
2349
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2246
2350
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2247
|
-
const provider = (
|
|
2248
|
-
if ((
|
|
2351
|
+
const provider = (_e = userExist._data) === null || _e === void 0 ? void 0 : _e.provider;
|
|
2352
|
+
if ((_f = userExist._data) === null || _f === void 0 ? void 0 : _f.is_pass) {
|
|
2249
2353
|
useSSOV2Store.setState({
|
|
2250
2354
|
flowData: {
|
|
2251
2355
|
method: 'sms',
|
|
@@ -2284,7 +2388,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2284
2388
|
config: {
|
|
2285
2389
|
phone,
|
|
2286
2390
|
otpType: 'phone-sms',
|
|
2287
|
-
afterAction: '
|
|
2391
|
+
afterAction: 'forgot',
|
|
2288
2392
|
},
|
|
2289
2393
|
});
|
|
2290
2394
|
goNext();
|
|
@@ -2296,7 +2400,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2296
2400
|
setLoading(false);
|
|
2297
2401
|
});
|
|
2298
2402
|
const onClickLoginWithPhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2299
|
-
var
|
|
2403
|
+
var _g, _h;
|
|
2300
2404
|
setLoading(true);
|
|
2301
2405
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
2302
2406
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -2305,7 +2409,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2305
2409
|
}
|
|
2306
2410
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
2307
2411
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
2308
|
-
if (!userExist._data || !((
|
|
2412
|
+
if (!userExist._data || !((_g = userExist._data) === null || _g === void 0 ? void 0 : _g.is_pass)) {
|
|
2309
2413
|
showNotification({
|
|
2310
2414
|
message: t('ssov2.first.noAccountOrPass'),
|
|
2311
2415
|
type: 'danger',
|
|
@@ -2313,7 +2417,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
2313
2417
|
setActiveTab('signup');
|
|
2314
2418
|
return setLoading(false);
|
|
2315
2419
|
}
|
|
2316
|
-
if ((
|
|
2420
|
+
if ((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass) {
|
|
2317
2421
|
useSSOV2Store.setState({
|
|
2318
2422
|
flowData: {
|
|
2319
2423
|
method: 'phone',
|
|
@@ -2480,7 +2584,7 @@ const initSendUpdateEmailOtp = (email) => __awaiter(void 0, void 0, void 0, func
|
|
|
2480
2584
|
const resendUpdateEmailOTP = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2481
2585
|
const formData = new FormData();
|
|
2482
2586
|
return fetchSSOV2Api(SSO_V2_PATHS.ECOM_CARE.RESEND_OTP, {
|
|
2483
|
-
method: '
|
|
2587
|
+
method: 'GET',
|
|
2484
2588
|
body: formData,
|
|
2485
2589
|
});
|
|
2486
2590
|
});
|
|
@@ -2868,7 +2972,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2868
2972
|
'data-event-category': trackingCategory,
|
|
2869
2973
|
'data-event-action': trackingAction,
|
|
2870
2974
|
'data-event-label': 'Enter Code',
|
|
2871
|
-
} })),
|
|
2975
|
+
}, placeholder: "*" })),
|
|
2872
2976
|
React__default.createElement(Group, { spacing: 8, align: "center", style: {
|
|
2873
2977
|
height: 40,
|
|
2874
2978
|
} },
|
|
@@ -2888,6 +2992,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2888
2992
|
const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
2889
2993
|
const { t } = useTranslations();
|
|
2890
2994
|
const { onClose, setTracking } = useSSOState();
|
|
2995
|
+
const { setUserInfo, flowData } = useSSOV2Store();
|
|
2891
2996
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
2892
2997
|
const phone = config === null || config === void 0 ? void 0 : config.phone;
|
|
2893
2998
|
const method = config === null || config === void 0 ? void 0 : config.method;
|
|
@@ -2951,11 +3056,12 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
|
2951
3056
|
setLoading(false);
|
|
2952
3057
|
});
|
|
2953
3058
|
const onAuthSuccess = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2954
|
-
var _c, _d;
|
|
2955
3059
|
handleAuthSuccess(data);
|
|
3060
|
+
const userInfo = yield getUserInfo();
|
|
3061
|
+
const isPhoneFlow = isPhoneFlowFn(flowData);
|
|
3062
|
+
setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
|
|
2956
3063
|
if (!phone && !!email) {
|
|
2957
|
-
|
|
2958
|
-
if (!((_c = userInfo._data) === null || _c === void 0 ? void 0 : _c.phone_verified_at) || !((_d = userInfo._data) === null || _d === void 0 ? void 0 : _d.phone)) {
|
|
3064
|
+
if (isPhoneNotVerifedYet(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data)) {
|
|
2959
3065
|
useSSOV2Store.setState((s) => ({
|
|
2960
3066
|
flowData: Object.assign(Object.assign({}, s.flowData), { isVerifyPhone: true }),
|
|
2961
3067
|
}));
|
|
@@ -2969,6 +3075,27 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
|
2969
3075
|
return;
|
|
2970
3076
|
}
|
|
2971
3077
|
}
|
|
3078
|
+
if (isLoginWithPhoneNotVerifedYet(flowData, userInfo._data)) {
|
|
3079
|
+
addStep({
|
|
3080
|
+
type: SSOStepTypeType.FORGOT_PASSWORD_PHONE,
|
|
3081
|
+
config: {
|
|
3082
|
+
phone: `${userInfo._data.area_code}${userInfo._data.phone}`,
|
|
3083
|
+
afterAction: 'setup',
|
|
3084
|
+
},
|
|
3085
|
+
});
|
|
3086
|
+
goNext();
|
|
3087
|
+
return;
|
|
3088
|
+
}
|
|
3089
|
+
if (isPhoneFlow && !isUserFinishedSetup(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data)) {
|
|
3090
|
+
addStep({
|
|
3091
|
+
type: SSOStepTypeType.SETUP_FULL,
|
|
3092
|
+
config: {
|
|
3093
|
+
userInfo: userInfo === null || userInfo === void 0 ? void 0 : userInfo._data,
|
|
3094
|
+
},
|
|
3095
|
+
});
|
|
3096
|
+
goNext();
|
|
3097
|
+
return;
|
|
3098
|
+
}
|
|
2972
3099
|
onClose === null || onClose === void 0 ? void 0 : onClose(true);
|
|
2973
3100
|
});
|
|
2974
3101
|
return (React__default.createElement("form", { style: {
|
|
@@ -3017,6 +3144,37 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
|
3017
3144
|
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": "Sign In" }, t('ssov2.password.signIn'))));
|
|
3018
3145
|
};
|
|
3019
3146
|
|
|
3147
|
+
const SetupLater = ({ style = {} }) => {
|
|
3148
|
+
const { t } = useTranslations();
|
|
3149
|
+
const { onClose } = useSSOState();
|
|
3150
|
+
const [loading, setLoading] = useState(false);
|
|
3151
|
+
const { userInfo } = useSSOV2Store();
|
|
3152
|
+
const { currentStepIndex, steps, addStep, goNext } = useSSOSteps();
|
|
3153
|
+
const currentStep = steps[currentStepIndex];
|
|
3154
|
+
const onClickSetupLater = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3155
|
+
if (loading)
|
|
3156
|
+
return;
|
|
3157
|
+
setLoading(true);
|
|
3158
|
+
if (userInfo &&
|
|
3159
|
+
!isUserFinishedSetup(userInfo) &&
|
|
3160
|
+
((currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.VERIFY_PHONE ||
|
|
3161
|
+
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.FORGOT_PASSWORD_PHONE)) {
|
|
3162
|
+
addStep({
|
|
3163
|
+
type: SSOStepTypeType.SETUP_FULL,
|
|
3164
|
+
config: {
|
|
3165
|
+
userInfo,
|
|
3166
|
+
},
|
|
3167
|
+
});
|
|
3168
|
+
goNext();
|
|
3169
|
+
}
|
|
3170
|
+
else {
|
|
3171
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(true);
|
|
3172
|
+
}
|
|
3173
|
+
setLoading(false);
|
|
3174
|
+
});
|
|
3175
|
+
return (React__default.createElement(Button, { size: "sm", variant: "white", color: "#737373", style: Object.assign({ fontWeight: 400 }, style), onClick: onClickSetupLater, disabled: loading }, t('ssov2.button.setupLater')));
|
|
3176
|
+
};
|
|
3177
|
+
|
|
3020
3178
|
const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
3021
3179
|
const phone = config === null || config === void 0 ? void 0 : config.phone;
|
|
3022
3180
|
const { t } = useTranslations();
|
|
@@ -3064,7 +3222,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3064
3222
|
config: {
|
|
3065
3223
|
phone,
|
|
3066
3224
|
otpType: 'phone-zalo',
|
|
3067
|
-
afterAction: 'forgot',
|
|
3225
|
+
afterAction: config.afterAction || 'forgot',
|
|
3068
3226
|
provider: (_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider,
|
|
3069
3227
|
},
|
|
3070
3228
|
});
|
|
@@ -3107,7 +3265,7 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3107
3265
|
config: {
|
|
3108
3266
|
phone,
|
|
3109
3267
|
otpType: 'phone-sms',
|
|
3110
|
-
afterAction: 'forgot',
|
|
3268
|
+
afterAction: config.afterAction || 'forgot',
|
|
3111
3269
|
provider: (_d = userExist._data) === null || _d === void 0 ? void 0 : _d.provider,
|
|
3112
3270
|
},
|
|
3113
3271
|
});
|
|
@@ -3135,7 +3293,8 @@ const SSOPasswordForgotPhone = ({ hidden, config, }) => {
|
|
|
3135
3293
|
isError: !!errMsg, required: true, disabled: true, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone" }),
|
|
3136
3294
|
errMsg && (React__default.createElement(Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
|
|
3137
3295
|
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" }, t('ssov2.button.continueZalo')),
|
|
3138
|
-
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS'))
|
|
3296
|
+
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS')),
|
|
3297
|
+
React__default.createElement(SetupLater, null))));
|
|
3139
3298
|
};
|
|
3140
3299
|
|
|
3141
3300
|
const CheckGrayIcon = () => (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -3177,6 +3336,7 @@ const SSOPasswordForgotSetup = ({ hidden, }) => {
|
|
|
3177
3336
|
const [loading, setLoading] = React__default.useState(false);
|
|
3178
3337
|
const [errMsg, setErrMsg] = React__default.useState('');
|
|
3179
3338
|
const { setTracking } = useSSOState();
|
|
3339
|
+
const { addStep, goNext } = useSSOSteps();
|
|
3180
3340
|
const { flowData } = useSSOV2Store();
|
|
3181
3341
|
const trackingMethod = flowData.method;
|
|
3182
3342
|
const trackingCategory = `SSO - Sign In via ${trackingMethod}`;
|
|
@@ -3215,22 +3375,37 @@ const SSOPasswordForgotSetup = ({ hidden, }) => {
|
|
|
3215
3375
|
password.length <= 50 &&
|
|
3216
3376
|
password.match(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/) &&
|
|
3217
3377
|
password === confirmPassword) {
|
|
3218
|
-
const res =
|
|
3378
|
+
const res = isPhoneFlowFn(flowData)
|
|
3379
|
+
? yield updateUserInfo({
|
|
3380
|
+
password,
|
|
3381
|
+
confirm_password: confirmPassword,
|
|
3382
|
+
validate: '',
|
|
3383
|
+
})
|
|
3384
|
+
: yield resetPassword(password, confirmPassword);
|
|
3219
3385
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
if (foundPasswordIndex === -1) {
|
|
3227
|
-
// reset to first step
|
|
3228
|
-
setSteps((s) => [s[0]]);
|
|
3229
|
-
useSSOSteps.setState({ currentStepIndex: 0 });
|
|
3386
|
+
if (isPhoneFlowFn(flowData)) {
|
|
3387
|
+
handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
|
|
3388
|
+
addStep({
|
|
3389
|
+
type: SSOStepTypeType.SETUP_FULL,
|
|
3390
|
+
});
|
|
3391
|
+
goNext();
|
|
3230
3392
|
}
|
|
3231
3393
|
else {
|
|
3232
|
-
|
|
3233
|
-
|
|
3394
|
+
showNotification({
|
|
3395
|
+
type: 'success',
|
|
3396
|
+
message: 'Password has been reset successfully',
|
|
3397
|
+
});
|
|
3398
|
+
// back to login step
|
|
3399
|
+
const foundPasswordIndex = steps.findIndex((step) => step.type === SSOStepTypeType.PASSWORD);
|
|
3400
|
+
if (foundPasswordIndex === -1) {
|
|
3401
|
+
// reset to first step
|
|
3402
|
+
setSteps((s) => [s[0]]);
|
|
3403
|
+
useSSOSteps.setState({ currentStepIndex: 0 });
|
|
3404
|
+
}
|
|
3405
|
+
else {
|
|
3406
|
+
setSteps((s) => s.slice(0, foundPasswordIndex + 1));
|
|
3407
|
+
useSSOSteps.setState({ currentStepIndex: foundPasswordIndex });
|
|
3408
|
+
}
|
|
3234
3409
|
}
|
|
3235
3410
|
// onClose?.()
|
|
3236
3411
|
}
|
|
@@ -3258,7 +3433,9 @@ const SSOPasswordForgotSetup = ({ hidden, }) => {
|
|
|
3258
3433
|
action: trackingAction,
|
|
3259
3434
|
} }),
|
|
3260
3435
|
errMsg && (React__default.createElement(Text, { size: "label2", color: "red.6", mt: -12 }, errMsg)),
|
|
3261
|
-
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label":
|
|
3436
|
+
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'signup' ? 'Create New Account' : 'Save' }, (flowData === null || flowData === void 0 ? void 0 : flowData.flow) === 'signup'
|
|
3437
|
+
? t('ssov2.setup.button.createAccount')
|
|
3438
|
+
: t('ssov2.button.save')))));
|
|
3262
3439
|
};
|
|
3263
3440
|
|
|
3264
3441
|
const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
@@ -3279,6 +3456,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3279
3456
|
});
|
|
3280
3457
|
}
|
|
3281
3458
|
}, [hidden]);
|
|
3459
|
+
const { setupSource } = useSSOV2Store();
|
|
3282
3460
|
const { addStep, goNext } = useSSOSteps();
|
|
3283
3461
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3284
3462
|
setLoading(true);
|
|
@@ -3378,7 +3556,8 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3378
3556
|
setErrMsg('');
|
|
3379
3557
|
}, isError: !!errMsg, required: true, name: "phone", disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone" })),
|
|
3380
3558
|
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" }, t('ssov2.button.continueZalo')),
|
|
3381
|
-
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS'))
|
|
3559
|
+
React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS" }, t('ssov2.button.continueSMS')),
|
|
3560
|
+
setupSource !== 'care' && setupSource !== 'ecom' && React__default.createElement(SetupLater, null)))));
|
|
3382
3561
|
};
|
|
3383
3562
|
|
|
3384
3563
|
const FemaleIcon = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -3410,39 +3589,19 @@ const MaleIcon = () => (React__default.createElement("svg", { width: "20", heigh
|
|
|
3410
3589
|
React__default.createElement("path", { d: "M11.122 6.393a.157.157 0 0 1-.051-.304c.687-.234 1.688-.344 2.26-.03a.156.156 0 0 1-.15.274c-.463-.254-1.38-.163-2.009.052a.2.2 0 0 1-.05.008m-2.19.572a.16.16 0 0 1-.144-.097c-.013-.027-.123-.097-.363-.129-.325-.043-.672.016-.772.131a.156.156 0 1 1-.236-.205c.214-.245.721-.29 1.103-.228.209.034.475.116.556.311a.156.156 0 0 1-.144.217m.222-.571a.2.2 0 0 1-.05-.009c-.629-.215-1.546-.306-2.009-.051a.156.156 0 1 1-.15-.274c.572-.315 1.572-.206 2.26.03a.156.156 0 0 1-.05.304", fill: "#404040" }),
|
|
3411
3590
|
React__default.createElement("path", { d: "m11.12 9.547-.019.001a8 8 0 0 1-1.928 0 .156.156 0 1 0-.037.31c.665.08 1.337.08 2.003 0a.156.156 0 0 0-.019-.31", fill: "#D84023" })));
|
|
3412
3591
|
|
|
3592
|
+
// import { StyledPhone } from '../components/phone'
|
|
3413
3593
|
// always has name, gender dob
|
|
3414
|
-
const OtherSetup = ({ form,
|
|
3594
|
+
const OtherSetup = ({ form,
|
|
3595
|
+
// needPhone,
|
|
3596
|
+
// skipPhone,
|
|
3597
|
+
needEmail, isEmailDisable,
|
|
3598
|
+
// isPhoneDisabled,
|
|
3599
|
+
loading, tracking, }) => {
|
|
3415
3600
|
const { t } = useTranslations();
|
|
3416
|
-
const { locale = 'vi-VN' } = useSSOState()
|
|
3601
|
+
// const { locale = 'vi-VN' } = useSSOState()
|
|
3417
3602
|
const { setupSource } = useSSOV2Store();
|
|
3418
3603
|
const [dobChanged, setDobChanged] = React__default.useState(false);
|
|
3419
3604
|
return (React__default.createElement(Stack, { spacing: 12 },
|
|
3420
|
-
needPhone && (React__default.createElement(React__default.Fragment, null,
|
|
3421
|
-
React__default.createElement(Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.phone.label'), withAsterisk: true }, form.getInputProps('phone')),
|
|
3422
|
-
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: form.getInputProps('phone').value, onChange: (value) => {
|
|
3423
|
-
form.setFieldValue('phone', value);
|
|
3424
|
-
}, isError: !!form.getInputProps('phone').error, required: true, name: "phone", disabled: loading || isPhoneDisabled, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Phone" })),
|
|
3425
|
-
!skipPhone && (React__default.createElement(Group, { spacing: 24 },
|
|
3426
|
-
React__default.createElement(Text, { size: "p4" }, t('ssov2.setup.field.otp.label')),
|
|
3427
|
-
React__default.createElement(Radio.Group, Object.assign({ name: "otpMethod", styles: {
|
|
3428
|
-
root: {
|
|
3429
|
-
display: 'flex',
|
|
3430
|
-
flexDirection: 'row',
|
|
3431
|
-
flexWrap: 'wrap',
|
|
3432
|
-
gap: 24,
|
|
3433
|
-
},
|
|
3434
|
-
} }, form.getInputProps('otpMethod')),
|
|
3435
|
-
React__default.createElement(Radio, { value: "zalo", label: "Zalo", styles: {
|
|
3436
|
-
label: {
|
|
3437
|
-
paddingLeft: 8,
|
|
3438
|
-
},
|
|
3439
|
-
}, disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Send OTP Code via Zalo" }),
|
|
3440
|
-
React__default.createElement(Radio, { value: "sms", label: "SMS", styles: {
|
|
3441
|
-
label: {
|
|
3442
|
-
paddingLeft: 8,
|
|
3443
|
-
},
|
|
3444
|
-
}, disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Send OTP Code via SMS" })))))),
|
|
3445
|
-
needEmail && (React__default.createElement(Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required: setupSource === 'care' ? true : false, withAsterisk: setupSource === 'care' ? true : false, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Email" }, form.getInputProps('email')))),
|
|
3446
3605
|
React__default.createElement(Input, Object.assign({ name: "name", label: t('ssov2.setup.field.name.label'), withAsterisk: true, required: true, placeholder: t('ssov2.setup.field.name.placeholder'), disabled: loading, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Name" }, form.getInputProps('name'))),
|
|
3447
3606
|
React__default.createElement(Input.Wrapper, Object.assign({ label: t('ssov2.setup.field.gender.label'), withAsterisk: true }, form.getInputProps('gender')),
|
|
3448
3607
|
React__default.createElement(Group, null,
|
|
@@ -3477,9 +3636,13 @@ const OtherSetup = ({ form, needPhone, skipPhone, needEmail, isEmailDisable, isP
|
|
|
3477
3636
|
if (!form.getInputProps('dob').value && !dobChanged)
|
|
3478
3637
|
return;
|
|
3479
3638
|
form.getInputProps('dob').onBlur(e);
|
|
3480
|
-
} }))
|
|
3639
|
+
} })),
|
|
3640
|
+
needEmail && (React__default.createElement(Input, Object.assign({ name: "email", type: "email", label: t('ssov2.setup.field.email.label'), disabled: isEmailDisable || loading, required: setupSource === 'care' ? true : false, withAsterisk: setupSource === 'care' ? true : false, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Enter Email", style: {
|
|
3641
|
+
display: isEmailDisable ? 'none' : 'block',
|
|
3642
|
+
} }, form.getInputProps('email'))))));
|
|
3481
3643
|
};
|
|
3482
3644
|
|
|
3645
|
+
// import { SSOPasswordWithConfirm } from '../passwordForgotSetup/passwordWithConfirm'
|
|
3483
3646
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
3484
3647
|
const getDefaultData = (data) => {
|
|
3485
3648
|
try {
|
|
@@ -3515,13 +3678,6 @@ const SSOSetupScreen = ({ hidden, config, }) => {
|
|
|
3515
3678
|
const provider = (_a = config === null || config === void 0 ? void 0 : config.userInfo) === null || _a === void 0 ? void 0 : _a.provider;
|
|
3516
3679
|
const authFlow = flowData === null || flowData === void 0 ? void 0 : flowData.flow;
|
|
3517
3680
|
const defaultData = getDefaultData(config === null || config === void 0 ? void 0 : config.setupDefaultData);
|
|
3518
|
-
const needPass = (authMethod === 'phone' ||
|
|
3519
|
-
authMethod === 'zalo' ||
|
|
3520
|
-
authMethod === 'sms' ||
|
|
3521
|
-
authMethod === 'email' ||
|
|
3522
|
-
provider === 'email' ||
|
|
3523
|
-
provider === 'phone') &&
|
|
3524
|
-
!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.is_pass);
|
|
3525
3681
|
const skipPhone = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone) && !!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone_verified_at);
|
|
3526
3682
|
const isPhoneDisabled = !!(configPhone || (defaultData === null || defaultData === void 0 ? void 0 : defaultData.phone) || skipPhone);
|
|
3527
3683
|
const needPhone = authFlow === 'signup' &&
|
|
@@ -3541,8 +3697,6 @@ const SSOSetupScreen = ({ hidden, config, }) => {
|
|
|
3541
3697
|
!(flowData === null || flowData === void 0 ? void 0 : flowData.isVerifyPhone) ||
|
|
3542
3698
|
authMethod === 'facebook' ||
|
|
3543
3699
|
provider === 'facebook';
|
|
3544
|
-
// const needPhone = !userInfo?.phone_verified_at
|
|
3545
|
-
// const needEmail = authFlow !== 'verify-phone'
|
|
3546
3700
|
const isEmailDisable = (defaultEmail &&
|
|
3547
3701
|
(authMethod === 'google' ||
|
|
3548
3702
|
authMethod === 'email' ||
|
|
@@ -3579,30 +3733,7 @@ const SSOSetupScreen = ({ hidden, config, }) => {
|
|
|
3579
3733
|
? dayjs(defaultData.birthday, 'MM/DD/YYYY').toDate()
|
|
3580
3734
|
: undefined }),
|
|
3581
3735
|
validateInputOnBlur: true,
|
|
3582
|
-
validate: yupResolver(yup.object().shape(Object.assign(Object.assign(
|
|
3583
|
-
? {
|
|
3584
|
-
password: yup
|
|
3585
|
-
.string()
|
|
3586
|
-
.required(t('ssov2.validate.password.required'))
|
|
3587
|
-
.min(8, ' ')
|
|
3588
|
-
.max(50, ' ')
|
|
3589
|
-
.matches(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)/, ' '),
|
|
3590
|
-
confirmPassword: yup
|
|
3591
|
-
.string()
|
|
3592
|
-
.required(t('ssov2.validate.confirmPassword.required'))
|
|
3593
|
-
.test('passwords-match', t('ssov2.validate.confirmPassword.match'), function (value) {
|
|
3594
|
-
return this.parent.password === value;
|
|
3595
|
-
}),
|
|
3596
|
-
}
|
|
3597
|
-
: {})), (needPhone
|
|
3598
|
-
? Object.assign({ phone: yup.string().required(t('ssov2.validate.phone.required')) }, (!skipPhone
|
|
3599
|
-
? {
|
|
3600
|
-
otpMethod: yup
|
|
3601
|
-
.string()
|
|
3602
|
-
.required(t('ssov2.validate.otp.required'))
|
|
3603
|
-
.oneOf(['zalo', 'sms']),
|
|
3604
|
-
}
|
|
3605
|
-
: {})) : {})), (needEmail
|
|
3736
|
+
validate: yupResolver(yup.object().shape(Object.assign(Object.assign({}, (needEmail
|
|
3606
3737
|
? {
|
|
3607
3738
|
email: setupSource === 'care'
|
|
3608
3739
|
? yup
|
|
@@ -3729,24 +3860,13 @@ const SSOSetupScreen = ({ hidden, config, }) => {
|
|
|
3729
3860
|
React__default.createElement(Stack, { spacing: 8 },
|
|
3730
3861
|
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.setup.title')),
|
|
3731
3862
|
React__default.createElement(Text, { size: "p4" }, t('ssov2.setup.description'))),
|
|
3732
|
-
needPass && (React__default.createElement(SSOPasswordWithConfirm, { form: form, loading: loading, tracking: {
|
|
3733
|
-
category: trackingCategory,
|
|
3734
|
-
action: trackingAction,
|
|
3735
|
-
} })),
|
|
3736
3863
|
React__default.createElement(OtherSetup, { needPhone: needPhone, skipPhone: skipPhone, needEmail: needEmail, isEmailDisable: isEmailDisable, isPhoneDisabled: isPhoneDisabled, form: form, loading: loading, tracking: {
|
|
3737
3864
|
category: trackingCategory,
|
|
3738
3865
|
action: trackingAction,
|
|
3739
3866
|
} }),
|
|
3740
3867
|
errMsg && (React__default.createElement(Text, { color: "red.6", size: "p4" }, errMsg)),
|
|
3741
|
-
React__default.createElement(Button, { type: "submit", variant: "primary", fullWidth: true, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label":
|
|
3742
|
-
|
|
3743
|
-
: authFlow === 'signup'
|
|
3744
|
-
? 'Create New Account'
|
|
3745
|
-
: 'Save' }, needPhone && !skipPhone
|
|
3746
|
-
? t('ssov2.setup.button.veriyPhone')
|
|
3747
|
-
: authFlow === 'signup'
|
|
3748
|
-
? t('ssov2.setup.button.createAccount')
|
|
3749
|
-
: t('ssov2.button.save')))));
|
|
3868
|
+
React__default.createElement(Button, { type: "submit", variant: "primary", fullWidth: true, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Save" }, t('ssov2.button.save')),
|
|
3869
|
+
React__default.createElement(SetupLater, { style: { marginTop: -8 } }))));
|
|
3750
3870
|
};
|
|
3751
3871
|
|
|
3752
3872
|
// import {
|