@hhgtech/hhg-components 1.29.313-beta-5 → 1.29.313-beta-6
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-e2d09c16.js → LastPeriod-b6f03295.js} +1 -1
- package/build/{MobileBottomNavigationIcon-38c57286.js → MobileBottomNavigationIcon-d8f7963e.js} +3 -3
- package/build/{Spinner-334f3c5a.js → Spinner-97aa0f20.js} +1 -1
- package/build/{WhatsApp-33359aae.js → WhatsApp-2531143f.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-95c9a407.js → constants-66674602.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-3ff172ae.js → core-3dd12dca.js} +1 -1
- package/build/{dataTransform-b4dab7d0.js → dataTransform-0d550f66.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-4d8d4851.js → editor-01681d91.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-69ae4968.js → LastPeriod-61cbf2df.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-c2448432.js → MobileBottomNavigationIcon-e52e1c92.js} +3 -3
- package/build/esm/{Spinner-a83cd893.js → Spinner-b4016335.js} +1 -1
- package/build/esm/{WhatsApp-26d47410.js → WhatsApp-0894a903.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-debb2eff.js → constants-38dacfbb.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-61e4c418.js → core-872fa247.js} +1 -1
- package/build/esm/{dataTransform-c8b54a7d.js → dataTransform-c6c94beb.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-d867d08c.js → editor-db67e4c0.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-33434916.js → fixedBottomAdBlock-8289472f.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-38b7f7b9.js → index-04c932a4.js} +4 -4
- package/build/esm/{index-ef8912bc.js → index-0bc1f89d.js} +3 -3
- package/build/esm/{index-6607990c.js → index-0dfeadcb.js} +1 -1
- package/build/esm/{index-f6cd6e3e.js → index-0e857e22.js} +3 -3
- package/build/esm/{index-87d8a8be.js → index-12ea0aa4.js} +3 -3
- package/build/esm/{index-797004e4.js → index-1a9f85af.js} +2 -2
- package/build/esm/{index-d31b9c52.js → index-1e83a408.js} +6 -6
- package/build/esm/{index-93424d15.js → index-1f8cb3f0.js} +2 -2
- package/build/esm/{index-a447fee5.js → index-27fed683.js} +26 -26
- package/build/esm/{index-4bb9f77b.js → index-2ae3afa9.js} +2 -2
- package/build/esm/{index-16ef62f3.js → index-473ad218.js} +2 -2
- package/build/esm/{index-e714a61b.js → index-4df6f178.js} +15 -15
- package/build/esm/{index-ad1cc18f.js → index-508b79ed.js} +21 -21
- package/build/esm/{index-70c96213.js → index-51c48f8e.js} +7 -7
- package/build/esm/{index-5550e4c8.js → index-5ccef3e2.js} +1 -1
- package/build/esm/{index-2cc89f46.js → index-5d3460a2.js} +11 -11
- package/build/esm/{index-5f376b11.js → index-5f25d014.js} +2 -2
- package/build/esm/{index-01272d86.js → index-62f5e3b2.js} +5 -5
- package/build/esm/{index-6b69393a.js → index-6535a83a.js} +18 -18
- package/build/esm/{index-96f86fe9.js → index-67be1a75.js} +3 -3
- package/build/esm/{index-fb50ecf9.js → index-6939a0fa.js} +18 -18
- package/build/esm/{index-aec37f6e.js → index-6a017a25.js} +6 -6
- package/build/esm/{index-fc09cf74.js → index-6d0d26b3.js} +20 -20
- package/build/esm/{index-a1aa410e.js → index-6fe0130d.js} +1 -1
- package/build/esm/{index-3b19c113.js → index-7b9427ab.js} +2 -2
- package/build/esm/{index-9628d6d8.js → index-7ee515eb.js} +3 -3
- package/build/esm/{index-6ebcbc4d.js → index-835b13ca.js} +17 -17
- package/build/esm/{index-8db1cd6b.js → index-86bac77c.js} +30 -30
- package/build/esm/{index-8f4d6fe1.js → index-8b3e0775.js} +2 -2
- package/build/esm/{index-9758ac94.js → index-97219e8d.js} +16 -16
- package/build/esm/{index-4c8718a1.js → index-9920b6d8.js} +6 -6
- package/build/esm/{index-4db4f63e.js → index-998beb73.js} +3 -3
- package/build/esm/{index-178c1cf3.js → index-a04ce7cb.js} +1 -1
- package/build/esm/{index-b93c02f4.js → index-a96f5d5b.js} +16 -16
- package/build/esm/{index-b2aed0ee.js → index-aa1ad527.js} +13 -13
- package/build/esm/{index-8b392806.js → index-af8906f4.js} +2 -2
- package/build/esm/{index-b2c24b1f.js → index-b0d01cc8.js} +10 -10
- package/build/esm/{index-2a346e9b.js → index-bbb27f85.js} +2 -2
- package/build/esm/{index-52f7a062.js → index-bc20091e.js} +13 -13
- package/build/esm/{index-172d93e7.js → index-bca48dcd.js} +6 -6
- package/build/esm/{index-f891da32.js → index-c41a717d.js} +5 -5
- package/build/esm/{index-294f8087.js → index-c45b00d3.js} +1 -1
- package/build/esm/{index-29e549a9.js → index-c545aa5e.js} +17 -17
- package/build/esm/{index-e4cfd4c6.js → index-c58b6a44.js} +16 -16
- package/build/esm/{index-de59942e.js → index-c9669844.js} +13 -13
- package/build/esm/{index-65b6c5e0.js → index-d269ffbd.js} +1 -1
- package/build/esm/{index-f9e0ed54.js → index-d7c86849.js} +7 -7
- package/build/esm/{index-d27854c9.js → index-db531d4a.js} +2 -2
- package/build/esm/{index-a744d696.js → index-dcfa135d.js} +16 -16
- package/build/esm/{index-06ae4e78.js → index-df98633d.js} +24 -24
- package/build/esm/{index-dd1918e5.js → index-e0ad6433.js} +15 -15
- package/build/esm/{index-8fce9ce9.js → index-e1bb80a6.js} +13 -13
- package/build/esm/{index-4b9d5942.js → index-e28e78cb.js} +1 -1
- package/build/esm/{index-f878d1ca.js → index-e8a91238.js} +2 -2
- package/build/esm/{index-65dacc8e.js → index-e8aa01eb.js} +32 -32
- package/build/esm/{index-865fcb3c.js → index-f0301f3d.js} +3 -3
- package/build/esm/{index-d12b29cf.js → index-f14e3f83.js} +2 -2
- package/build/esm/{index-08c5a901.js → index-f7d3259b.js} +1 -1
- package/build/esm/{index-81e53c21.js → index-fcfbad0c.js} +17 -17
- package/build/esm/{index-91244370.js → index-ff7b1309.js} +2 -2
- package/build/esm/index.js +112 -112
- package/build/esm/{labelSorting-3d1d2ae2.js → labelSorting-38d92e03.js} +4 -4
- package/build/esm/lead.js +24 -24
- package/build/esm/{logoIcon-54595ede.js → logoIcon-c14ebad3.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-b7f394f7.js → post-6a95ff90.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 +254 -41
- package/build/esm/{store-ab427db8.js → store-d6c5eec7.js} +12 -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-a6f408fb.js → surveyThankyouCard-1d2d21cc.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-f9a4de3f.js → treePopoverMenu-e00ef2c4.js} +19 -19
- package/build/esm/{types-b5a46c30.js → types-553319da.js} +2 -2
- package/build/esm/types.js +2 -2
- package/build/esm/{useCategory-72fa84db.js → useCategory-60df61b3.js} +5 -5
- package/build/esm/{useHealthToolCache-6d2ad31d.js → useHealthToolCache-486f4b7c.js} +1 -1
- package/build/esm/{useMantineLocale-322f57f7.js → useMantineLocale-200bb903.js} +6 -6
- package/build/esm/{usePlacesAutocomplete-02d1b3fb.js → usePlacesAutocomplete-afc69ce1.js} +1 -1
- package/build/esm/{useScreenSize-298d357f.js → useScreenSize-cbc60b54.js} +2 -2
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-3ceb029c.js → utils-260144dc.js} +3 -3
- package/build/esm/{utils-41d19b8b.js → utils-2aadf373.js} +2 -2
- package/build/esm/{utils-54ba35ba.js → utils-9169c464.js} +2 -2
- package/build/esm/vaccination.js +21 -21
- package/build/{fixedBottomAdBlock-9bcb8abf.js → fixedBottomAdBlock-48b8a386.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-e101b941.js → index-00e9278a.js} +13 -13
- package/build/{index-bbf2bfb3.js → index-02a8c5d9.js} +13 -13
- package/build/{index-6965b412.js → index-036b7b1b.js} +1 -1
- package/build/{index-6df45342.js → index-0440721d.js} +5 -5
- package/build/{index-6c942263.js → index-07a0e1ca.js} +17 -17
- package/build/{index-0900d53a.js → index-08868800.js} +1 -1
- package/build/{index-eb1ba15a.js → index-1321aab8.js} +20 -20
- package/build/{index-838bdcd1.js → index-1ffe3ccf.js} +2 -2
- package/build/{index-6b333204.js → index-20af0d27.js} +17 -17
- package/build/{index-688853e3.js → index-281642fc.js} +15 -15
- package/build/{index-049f2b03.js → index-2cf53ff0.js} +1 -1
- package/build/{index-2de11730.js → index-391ad5b7.js} +2 -2
- package/build/{index-758eec70.js → index-3c756cb2.js} +2 -2
- package/build/{index-d59b312a.js → index-3d96d9d4.js} +7 -7
- package/build/{index-150f8f37.js → index-44a263be.js} +32 -32
- package/build/{index-d9d1bf8b.js → index-456a471f.js} +16 -16
- package/build/{index-05e6b1ec.js → index-47c1fa5b.js} +2 -2
- package/build/{index-fc62d1c7.js → index-48b2e815.js} +3 -3
- package/build/{index-9924acaf.js → index-4a6783a1.js} +3 -3
- package/build/{index-d240b13f.js → index-4b604abd.js} +10 -10
- package/build/{index-5d47a383.js → index-4fe664df.js} +11 -11
- package/build/{index-c7245ffc.js → index-5119f67b.js} +7 -7
- package/build/{index-eccf62c3.js → index-52ed4377.js} +6 -6
- package/build/{index-46a6b5b1.js → index-55c9a99f.js} +16 -16
- package/build/{index-18c0e6c9.js → index-5c81ab98.js} +4 -4
- package/build/{index-1ecde6df.js → index-5df98b92.js} +2 -2
- package/build/{index-5593974f.js → index-63dd5d9d.js} +2 -2
- package/build/{index-921bfea1.js → index-67aa5694.js} +13 -13
- package/build/{index-581c483b.js → index-6fcc81c5.js} +18 -18
- package/build/{index-a6a08d38.js → index-703841e9.js} +2 -2
- package/build/{index-e9b37811.js → index-755861d1.js} +24 -24
- package/build/{index-5ccf6611.js → index-8018fd79.js} +21 -21
- package/build/{index-cd745a17.js → index-89cbf58e.js} +2 -2
- package/build/{index-77346f9c.js → index-8af073af.js} +1 -1
- package/build/{index-6e76baef.js → index-941c9851.js} +3 -3
- package/build/{index-67645d65.js → index-9b1da14a.js} +15 -15
- package/build/{index-5df19ed3.js → index-9d4b781d.js} +2 -2
- package/build/{index-76c29fb0.js → index-a094a245.js} +1 -1
- package/build/{index-96ab5b6f.js → index-a8ff0137.js} +3 -3
- package/build/{index-b7a3fa36.js → index-ab2da598.js} +18 -18
- package/build/{index-2de5f58e.js → index-b70b35fa.js} +1 -1
- package/build/{index-46391368.js → index-bac2b30b.js} +30 -30
- package/build/{index-2e1bdbd6.js → index-bb4418af.js} +2 -2
- package/build/{index-7c402880.js → index-c023ea15.js} +1 -1
- package/build/{index-33fe6600.js → index-c04bf5a5.js} +2 -2
- package/build/{index-04eedf97.js → index-c8d15796.js} +3 -3
- package/build/{index-24c50664.js → index-c94c9fb8.js} +13 -13
- package/build/{index-5ee52c42.js → index-c960bf69.js} +2 -2
- package/build/{index-3566a5fe.js → index-d2640a7f.js} +16 -16
- package/build/{index-3feda539.js → index-d7e968cd.js} +26 -26
- package/build/{index-c5ad276b.js → index-de524993.js} +6 -6
- package/build/{index-60178661.js → index-e0fa9edd.js} +1 -1
- package/build/{index-c91c7d1e.js → index-e1f840fc.js} +6 -6
- package/build/{index-0fab23b1.js → index-e49f47b9.js} +6 -6
- package/build/{index-28c079a6.js → index-e5385510.js} +3 -3
- package/build/{index-ca5f5e92.js → index-e757e530.js} +3 -3
- package/build/{index-0b7990d3.js → index-f056d238.js} +2 -2
- package/build/{index-908a2849.js → index-f22096bf.js} +17 -17
- package/build/{index-0024a7b1.js → index-f85dcc89.js} +16 -16
- package/build/{index-787c089c.js → index-f9582bfd.js} +5 -5
- package/build/index.js +112 -112
- package/build/{labelSorting-10fe66fa.js → labelSorting-38fecd1c.js} +4 -4
- package/build/lead.js +24 -24
- package/build/{logoIcon-5a52a153.js → logoIcon-ba355da0.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-7b988788.js → post-eaf4e2a5.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 +253 -40
- package/build/{store-69edfb2e.js → store-031bb797.js} +12 -4
- package/build/subot.js +32 -32
- package/build/surveyOrPremiumBanner.js +31 -31
- package/build/surveyQuestionCard.js +10 -10
- package/build/{surveyThankyouCard-f4d572a5.js → surveyThankyouCard-be46fd22.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-adf56bc6.js → treePopoverMenu-30d205a7.js} +19 -19
- package/build/{types-7de7fc70.js → types-21462e3a.js} +2 -2
- package/build/types.js +2 -2
- package/build/{useCategory-ff128029.js → useCategory-84964fba.js} +5 -5
- package/build/{useHealthToolCache-af739181.js → useHealthToolCache-32c5872b.js} +1 -1
- package/build/{useMantineLocale-58577368.js → useMantineLocale-2e967828.js} +6 -6
- package/build/{usePlacesAutocomplete-b5c79ba5.js → usePlacesAutocomplete-c91a7eee.js} +1 -1
- package/build/{useScreenSize-eea32bd9.js → useScreenSize-a2f12e84.js} +2 -2
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-47bfb078.js → utils-3958d1e7.js} +2 -2
- package/build/{utils-686608c4.js → utils-54002ac2.js} +3 -3
- package/build/{utils-ed5635fa.js → utils-965c42f3.js} +2 -2
- package/build/vaccination.js +21 -21
- package/package.json +1 -1
- /package/build/{BMI_BOYS.percentile.monthly-5e32f620.js → BMI_BOYS.percentile.monthly-1c5919dc.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-3ae9f2ca.js → BMI_BOYS.percentile.weekly-685526b8.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-404f4533.js → BMI_BOYS.percentile.yearly-45d18ec6.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-c40483ca.js → BMI_BOYS.zscore.monthly-9bfb99a5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-42c0a6eb.js → BMI_BOYS.zscore.weekly-fe459ba3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-34542e85.js → BMI_BOYS.zscore.yearly-e219a711.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-21d22656.js → BMI_GIRLS.percentile.monthly-200fa116.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-ccc6c84a.js → BMI_GIRLS.percentile.weekly-0b1211e9.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-1abde9b7.js → BMI_GIRLS.percentile.yearly-b3677706.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1db27dbe.js → BMI_GIRLS.zscore.monthly-056be368.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-c695b12e.js → BMI_GIRLS.zscore.weekly-345d989a.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-8c194176.js → BMI_GIRLS.zscore.yearly-f3963a8f.js} +0 -0
- /package/build/{ChevronDown-7ea7a836.js → ChevronDown-c2f2ea28.js} +0 -0
- /package/build/{Close-d3c407e7.js → Close-c1b20c04.js} +0 -0
- /package/build/{Google-30e28ae7.js → Google-170e4b2e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-b336ec60.js → HEAD CIRCUM_BOYS.percentile.monthly-6ec3c69f.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-b06263cc.js → HEAD CIRCUM_BOYS.percentile.weekly-7d04039a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-0f30c3b0.js → HEAD CIRCUM_BOYS.percentile.yearly-2d7a734e.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-777b1599.js → HEAD CIRCUM_BOYS.zscore.monthly-e08dd260.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-0e2dfc3f.js → HEAD CIRCUM_BOYS.zscore.weekly-d4ede8fd.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-358a9d22.js → HEAD CIRCUM_BOYS.zscore.yearly-acad5202.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-f8a1bf74.js → HEAD CIRCUM_GIRLS.percentile.monthly-03b855a8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-8c3754ba.js → HEAD CIRCUM_GIRLS.percentile.weekly-c1ffb81c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-ae02d46c.js → HEAD CIRCUM_GIRLS.percentile.yearly-905cde65.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-126e6fc6.js → HEAD CIRCUM_GIRLS.zscore.monthly-b3efbb6c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-015075d8.js → HEAD CIRCUM_GIRLS.zscore.weekly-ce8aa67c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-d71f803a.js → HEAD CIRCUM_GIRLS.zscore.yearly-4ac5749c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-44811345.js → HEIGHT_BOYS.percentile.monthly-5fb7d448.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-8c9be94e.js → HEIGHT_BOYS.percentile.weekly-4e14805c.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-04d85e90.js → HEIGHT_BOYS.percentile.yearly-b9d7e1a1.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-3b3ea362.js → HEIGHT_BOYS.zscore.monthly-957838cd.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-7ad5bfc9.js → HEIGHT_BOYS.zscore.weekly-1f22a1fd.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-245fcca7.js → HEIGHT_BOYS.zscore.yearly-b810b2df.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-551dffeb.js → HEIGHT_GIRLS.percentile.monthly-14135ad6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-d3df667d.js → HEIGHT_GIRLS.percentile.weekly-7ebf2b0d.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-ccabd0a1.js → HEIGHT_GIRLS.percentile.yearly-555903cd.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-b234494f.js → HEIGHT_GIRLS.zscore.monthly-ffb39bad.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-bb4fa9c7.js → HEIGHT_GIRLS.zscore.weekly-4a71080f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-0baad31b.js → HEIGHT_GIRLS.zscore.yearly-e63fbcb2.js} +0 -0
- /package/build/{Locale-b91b7ac7.js → Locale-5efc7401.js} +0 -0
- /package/build/{Visible-ffd531e9.js → Visible-8ad85866.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-8f17a6da.js → WEIGHT_BOYS.percentile.monthly-da6a86a0.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-fba356ef.js → WEIGHT_BOYS.percentile.weekly-d13cdaa7.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-2a08a879.js → WEIGHT_BOYS.percentile.yearly-e76cba6a.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-76081602.js → WEIGHT_BOYS.zscore.monthly-bfea3de8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-ca69905c.js → WEIGHT_BOYS.zscore.weekly-0aa1144d.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-cd5adc54.js → WEIGHT_BOYS.zscore.yearly-7bb4481c.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-d023f873.js → WEIGHT_GIRLS.percentile.monthly-b4512d3f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-e48eed89.js → WEIGHT_GIRLS.percentile.weekly-9f6fb114.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-71e274b2.js → WEIGHT_GIRLS.percentile.yearly-368b57d8.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-9d01375f.js → WEIGHT_GIRLS.zscore.monthly-b65bce58.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-9c68d8fd.js → WEIGHT_GIRLS.zscore.weekly-ffaa4982.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-ab082dac.js → WEIGHT_GIRLS.zscore.yearly-ba17a87e.js} +0 -0
- /package/build/{animation-4b7b4321.js → animation-bcb6d8b4.js} +0 -0
- /package/build/{constants-9cc39300.js → constants-35e5ccc9.js} +0 -0
- /package/build/{constants-7125d1ed.js → constants-cdca6e5c.js} +0 -0
- /package/build/{constants-c9d403ea.js → constants-df25ed64.js} +0 -0
- /package/build/{dataTransform-1a7e5a4a.js → dataTransform-c36bf12e.js} +0 -0
- /package/build/{doctor-070957cd.js → doctor-c53f4a88.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-d33e7a73.js → BMI_BOYS.percentile.monthly-56495946.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-de1d83e6.js → BMI_BOYS.percentile.weekly-44df0dc4.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-f6570e18.js → BMI_BOYS.percentile.yearly-177f94e2.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-81404f04.js → BMI_BOYS.zscore.monthly-a2bffbbc.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-89d8f7db.js → BMI_BOYS.zscore.weekly-381ab75c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-dbf7afbe.js → BMI_BOYS.zscore.yearly-d7964255.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-8efb4160.js → BMI_GIRLS.percentile.monthly-37b8dff8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-8c6b1f6e.js → BMI_GIRLS.percentile.weekly-772d9172.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-03808337.js → BMI_GIRLS.percentile.yearly-cd18ac59.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-35d0dca2.js → BMI_GIRLS.zscore.monthly-bfa25a0a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-e228758a.js → BMI_GIRLS.zscore.weekly-b1e87ebf.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-b9e0a5c3.js → BMI_GIRLS.zscore.yearly-c3de5139.js} +0 -0
- /package/build/esm/{ChevronDown-393e271b.js → ChevronDown-9110b79d.js} +0 -0
- /package/build/esm/{Close-2ba1020f.js → Close-ec0f749d.js} +0 -0
- /package/build/esm/{Google-7d2a89cb.js → Google-af2aeea0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-f89417b7.js → HEAD CIRCUM_BOYS.percentile.monthly-99260888.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-bbf36e38.js → HEAD CIRCUM_BOYS.percentile.weekly-8707f7a2.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-7cee3fd9.js → HEAD CIRCUM_BOYS.percentile.yearly-c477dad5.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-64d94ec8.js → HEAD CIRCUM_BOYS.zscore.monthly-8094bf5a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-d1fd6be6.js → HEAD CIRCUM_BOYS.zscore.weekly-ee2fd491.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-d2d8f08e.js → HEAD CIRCUM_BOYS.zscore.yearly-5326b18e.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-fc5f6bd9.js → HEAD CIRCUM_GIRLS.percentile.monthly-97885791.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-2be0d214.js → HEAD CIRCUM_GIRLS.percentile.weekly-f805ee0d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c85cbe54.js → HEAD CIRCUM_GIRLS.percentile.yearly-70376706.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-ee6de783.js → HEAD CIRCUM_GIRLS.zscore.monthly-a6b98c89.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-c148e003.js → HEAD CIRCUM_GIRLS.zscore.weekly-bec5f4f1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-125760e9.js → HEAD CIRCUM_GIRLS.zscore.yearly-c4bee474.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-fa233321.js → HEIGHT_BOYS.percentile.monthly-2d9dda36.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-641d5245.js → HEIGHT_BOYS.percentile.weekly-287b55e4.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-c94a2418.js → HEIGHT_BOYS.percentile.yearly-5506d754.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-f27bba82.js → HEIGHT_BOYS.zscore.monthly-4d6cfaeb.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-9679d239.js → HEIGHT_BOYS.zscore.weekly-b78ffdc9.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-a64a2f45.js → HEIGHT_BOYS.zscore.yearly-64bb875c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1cc7a5a4.js → HEIGHT_GIRLS.percentile.monthly-a7690678.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-abe8fbd0.js → HEIGHT_GIRLS.percentile.weekly-5e0f363b.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-3d29e576.js → HEIGHT_GIRLS.percentile.yearly-8d6577bc.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-442a718d.js → HEIGHT_GIRLS.zscore.monthly-940dbe03.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-742cef88.js → HEIGHT_GIRLS.zscore.weekly-c1a97867.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-c2fd1cfe.js → HEIGHT_GIRLS.zscore.yearly-0cdf96f3.js} +0 -0
- /package/build/esm/{Locale-dfd97691.js → Locale-e7e505b1.js} +0 -0
- /package/build/esm/{Visible-fe74abb6.js → Visible-d4bd244b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-d12bb0f2.js → WEIGHT_BOYS.percentile.monthly-30d325cf.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-f6bb6abe.js → WEIGHT_BOYS.percentile.weekly-64086615.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-dc5e9bc9.js → WEIGHT_BOYS.percentile.yearly-56a783b8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-bc66d2d0.js → WEIGHT_BOYS.zscore.monthly-890f784b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-6036f37c.js → WEIGHT_BOYS.zscore.weekly-b0269a33.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-a68498c5.js → WEIGHT_BOYS.zscore.yearly-0cf5365a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-bf0b5dbb.js → WEIGHT_GIRLS.percentile.monthly-67227c9a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-0e56afd9.js → WEIGHT_GIRLS.percentile.weekly-0f4abe5d.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-27ae60fe.js → WEIGHT_GIRLS.percentile.yearly-ecb275ea.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-a7b0dc7d.js → WEIGHT_GIRLS.zscore.monthly-72099bec.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-7033be74.js → WEIGHT_GIRLS.zscore.weekly-002a4930.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-a9d4aa6e.js → WEIGHT_GIRLS.zscore.yearly-e4b90980.js} +0 -0
- /package/build/esm/{animation-69a3f1fe.js → animation-dc298858.js} +0 -0
- /package/build/esm/{constants-66968956.js → constants-50104abc.js} +0 -0
- /package/build/esm/{constants-c7ad0386.js → constants-b89ccc06.js} +0 -0
- /package/build/esm/{constants-828fce30.js → constants-d4f7d09f.js} +0 -0
- /package/build/esm/{dataTransform-0b9d120c.js → dataTransform-f13df81b.js} +0 -0
- /package/build/esm/{doctor-dbf90626.js → doctor-bd988e42.js} +0 -0
- /package/build/esm/{index-1bdfd454.js → index-08a9ef7a.js} +0 -0
- /package/build/esm/{index-38fad6fc.js → index-523a4dc4.js} +0 -0
- /package/build/esm/{index-1704d476.js → index-5d178a66.js} +0 -0
- /package/build/esm/{index-79d8565b.js → index-77f54151.js} +0 -0
- /package/build/esm/{index-1e933186.js → index-a4f997b2.js} +0 -0
- /package/build/esm/{index-a06dace2.js → index-ae0d1b43.js} +0 -0
- /package/build/esm/{index-73cf9f47.js → index-cd6f5aaf.js} +0 -0
- /package/build/esm/{index-8f984d1c.js → index-d77d74fe.js} +0 -0
- /package/build/esm/{index-d360c115.js → index-d7fdb17b.js} +0 -0
- /package/build/esm/{index.styles-fe8c832f.js → index.styles-5fb8a6f2.js} +0 -0
- /package/build/esm/{localizeNumberFormat-316a922a.js → localizeNumberFormat-e6f6cfa4.js} +0 -0
- /package/build/esm/{normalizeLink-73c7ca2d.js → normalizeLink-9898207d.js} +0 -0
- /package/build/esm/{other-6c9238de.js → other-8690c201.js} +0 -0
- /package/build/esm/{paths-570f87e3.js → paths-9f5efe48.js} +0 -0
- /package/build/esm/{translationsContext-681f3d4c.js → translationsContext-3a1d941c.js} +0 -0
- /package/build/esm/{tslib.es6-a8dde052.js → tslib.es6-ff8cc5b3.js} +0 -0
- /package/build/esm/{types-c7790189.js → types-cc33b3d8.js} +0 -0
- /package/build/esm/{useIsInit-a8be16af.js → useIsInit-701fd960.js} +0 -0
- /package/build/esm/{useOutsideClick-d57bfd8e.js → useOutsideClick-ab05c50c.js} +0 -0
- /package/build/esm/{useScrollbarSize-b3066b33.js → useScrollbarSize-b830ad5c.js} +0 -0
- /package/build/esm/{useUniqueId-76a629b1.js → useUniqueId-e4652aea.js} +0 -0
- /package/build/esm/{utils-3ad6cdad.js → utils-cd542148.js} +0 -0
- /package/build/{index-43b43881.js → index-1708da45.js} +0 -0
- /package/build/{index-83851f5e.js → index-26c3a04c.js} +0 -0
- /package/build/{index-e9f82a3d.js → index-6e18bac4.js} +0 -0
- /package/build/{index-020c3314.js → index-7d17b7f1.js} +0 -0
- /package/build/{index-fee3f459.js → index-7e336854.js} +0 -0
- /package/build/{index-42ba4b6b.js → index-9daa417c.js} +0 -0
- /package/build/{index-f54f3496.js → index-a2f16a3a.js} +0 -0
- /package/build/{index-45f345c4.js → index-b13cfde7.js} +0 -0
- /package/build/{index-2644990e.js → index-f7e5b003.js} +0 -0
- /package/build/{index.styles-bff3dc0a.js → index.styles-d6d56781.js} +0 -0
- /package/build/{localizeNumberFormat-ebdd3605.js → localizeNumberFormat-0080a204.js} +0 -0
- /package/build/{normalizeLink-c852dabc.js → normalizeLink-f4fd7309.js} +0 -0
- /package/build/{other-434809be.js → other-4d87f8a6.js} +0 -0
- /package/build/{paths-6d6c2828.js → paths-53147c04.js} +0 -0
- /package/build/{translationsContext-2e17a16b.js → translationsContext-9daee881.js} +0 -0
- /package/build/{tslib.es6-db088bf3.js → tslib.es6-a060382c.js} +0 -0
- /package/build/{types-a275b075.js → types-2dd2692b.js} +0 -0
- /package/build/{useIsInit-568bed60.js → useIsInit-6ec22097.js} +0 -0
- /package/build/{useOutsideClick-1278134e.js → useOutsideClick-9cfec3f1.js} +0 -0
- /package/build/{useScrollbarSize-3a96ddc8.js → useScrollbarSize-02f37ba7.js} +0 -0
- /package/build/{useUniqueId-fb8af60e.js → useUniqueId-d7f6ef62.js} +0 -0
- /package/build/{utils-c82004a9.js → utils-4be8f7ca.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-ff8cc5b3.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-5d3460a2.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-d6c5eec7.js';
|
|
5
|
+
export { u as useSSOV2Store } from './store-d6c5eec7.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-7b9427ab.js';
|
|
9
|
+
import { L as LogoIcon } from './logoIcon-c14ebad3.js';
|
|
10
|
+
import { B as Button } from './index-5f25d014.js';
|
|
11
|
+
import { M as Modal } from './index-e8a91238.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-0dfeadcb.js';
|
|
15
|
+
import './index-523a4dc4.js';
|
|
16
|
+
import { s as showNotification } from './useMantineLocale-200bb903.js';
|
|
17
|
+
import { T as Text } from './index-af8906f4.js';
|
|
18
|
+
import { u as useTranslations } from './index-d269ffbd.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-cd542148.js';
|
|
21
|
+
import './other-8690c201.js';
|
|
22
|
+
import './index-998beb73.js';
|
|
23
|
+
import { L as LOCALE } from './Locale-e7e505b1.js';
|
|
24
|
+
import { G as Google, F as Facebook } from './Google-af2aeea0.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-cbc60b54.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-2aadf373.js';
|
|
35
|
+
import { S as Spoiler } from './index-67be1a75.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-1e83a408.js';
|
|
41
41
|
import '@mantine/carousel';
|
|
42
42
|
import './miscTheme.js';
|
|
43
|
-
import './useUniqueId-
|
|
43
|
+
import './useUniqueId-e4652aea.js';
|
|
44
44
|
import './constantsSite.js';
|
|
45
45
|
import 'zustand';
|
|
46
46
|
import './constantsIsProduction.js';
|
|
47
|
-
import './normalizeLink-
|
|
47
|
+
import './normalizeLink-9898207d.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-5fb8a6f2.js';
|
|
52
52
|
import '@mantine/notifications';
|
|
53
|
-
import './translationsContext-
|
|
53
|
+
import './translationsContext-3a1d941c.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';
|
|
@@ -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('');
|
|
@@ -2851,6 +2983,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2851
2983
|
else if (otpType === 'phone-zalo') {
|
|
2852
2984
|
res = yield verifyUpdatePhoneZaloOTP(phoneNumber, areaCode, otp);
|
|
2853
2985
|
}
|
|
2986
|
+
else if (otpType === 'phone-whatsapp') {
|
|
2987
|
+
res = yield verifyUpdatePhoneWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
2988
|
+
}
|
|
2854
2989
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
2855
2990
|
if (afterAction === 'setup') {
|
|
2856
2991
|
const userInfo = yield getUserInfo();
|
|
@@ -2876,6 +3011,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2876
3011
|
const needPass = (flowData.method === 'email' ||
|
|
2877
3012
|
flowData.method === 'zalo' ||
|
|
2878
3013
|
flowData.method === 'sms' ||
|
|
3014
|
+
flowData.method === 'whatsapp' ||
|
|
2879
3015
|
flowData.method === 'phone' ||
|
|
2880
3016
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
2881
3017
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -2934,6 +3070,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2934
3070
|
else if (otpType === 'phone-zalo') {
|
|
2935
3071
|
res = yield verifyByZaloOTP(phoneNumber, areaCode, otp);
|
|
2936
3072
|
}
|
|
3073
|
+
else if (otpType === 'phone-whatsapp') {
|
|
3074
|
+
res = yield verifyByWhatsAppOTP(phoneNumber, areaCode, otp);
|
|
3075
|
+
}
|
|
2937
3076
|
else if (otpType === 'email') {
|
|
2938
3077
|
res = yield verifyByEmailOTP(email, otp);
|
|
2939
3078
|
}
|
|
@@ -2956,7 +3095,15 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2956
3095
|
addStepAndGoNext({
|
|
2957
3096
|
type: SSOStepTypeType.FORGOT_PASSWORD_SETUP,
|
|
2958
3097
|
config: {
|
|
2959
|
-
provider: isZalo
|
|
3098
|
+
provider: isZalo
|
|
3099
|
+
? 'Zalo'
|
|
3100
|
+
: isSMS
|
|
3101
|
+
? 'SMS'
|
|
3102
|
+
: isWhatsApp
|
|
3103
|
+
? 'WhatsApp'
|
|
3104
|
+
: isEmail
|
|
3105
|
+
? 'Email'
|
|
3106
|
+
: '',
|
|
2960
3107
|
},
|
|
2961
3108
|
});
|
|
2962
3109
|
}
|
|
@@ -2984,6 +3131,7 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
2984
3131
|
const needPass = (flowData.method === 'email' ||
|
|
2985
3132
|
flowData.method === 'zalo' ||
|
|
2986
3133
|
flowData.method === 'sms' ||
|
|
3134
|
+
flowData.method === 'whatsapp' ||
|
|
2987
3135
|
flowData.method === 'phone' ||
|
|
2988
3136
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'email' ||
|
|
2989
3137
|
(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data.provider) === 'phone') &&
|
|
@@ -3024,13 +3172,12 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3024
3172
|
}
|
|
3025
3173
|
setLoading(false);
|
|
3026
3174
|
});
|
|
3027
|
-
const
|
|
3175
|
+
const swapAnotherMethod = (newType) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3028
3176
|
if (isEmail)
|
|
3029
3177
|
return;
|
|
3030
3178
|
setLoading(true);
|
|
3031
3179
|
try {
|
|
3032
3180
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3033
|
-
const newType = otpType === 'phone-sms' ? 'phone-zalo' : 'phone-sms';
|
|
3034
3181
|
let res;
|
|
3035
3182
|
if (isUpdatePhone) {
|
|
3036
3183
|
if (newType === 'phone-sms') {
|
|
@@ -3039,6 +3186,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3039
3186
|
else if (newType === 'phone-zalo') {
|
|
3040
3187
|
res = yield resendUpdatePhoneZaloOTP(phoneNumber, areaCode);
|
|
3041
3188
|
}
|
|
3189
|
+
else if (newType === 'phone-whatsapp') {
|
|
3190
|
+
res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3191
|
+
}
|
|
3042
3192
|
}
|
|
3043
3193
|
else {
|
|
3044
3194
|
if (newType === 'phone-sms') {
|
|
@@ -3047,6 +3197,9 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3047
3197
|
else if (newType === 'phone-zalo') {
|
|
3048
3198
|
res = yield resendZaloOTP(phoneNumber, areaCode);
|
|
3049
3199
|
}
|
|
3200
|
+
else if (newType === 'phone-whatsapp') {
|
|
3201
|
+
res = yield resendWhatsAppOTP(phoneNumber, areaCode);
|
|
3202
|
+
}
|
|
3050
3203
|
}
|
|
3051
3204
|
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3052
3205
|
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
@@ -3096,7 +3249,13 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3096
3249
|
: 'ssov2.otp.phone.description', {
|
|
3097
3250
|
email,
|
|
3098
3251
|
phone,
|
|
3099
|
-
method:
|
|
3252
|
+
method: isSMS
|
|
3253
|
+
? 'SMS'
|
|
3254
|
+
: isZalo
|
|
3255
|
+
? 'Zalo'
|
|
3256
|
+
: isWhatsApp
|
|
3257
|
+
? 'WhatsApp'
|
|
3258
|
+
: '',
|
|
3100
3259
|
}),
|
|
3101
3260
|
} }))),
|
|
3102
3261
|
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
@@ -3126,9 +3285,20 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3126
3285
|
count: resendTime,
|
|
3127
3286
|
})))),
|
|
3128
3287
|
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
|
-
|
|
3288
|
+
!isEmail && (React__default.createElement(React__default.Fragment, null,
|
|
3289
|
+
React__default.createElement(Button, { size: "sm", variant: "white", mt: 12, fullWidth: true, onClick: () => swapAnotherMethod('phone-whatsapp'), loading: loading, disabled: loading,
|
|
3290
|
+
// data-event-category={trackingCategory}
|
|
3291
|
+
// data-event-action={trackingAction}
|
|
3292
|
+
// data-event-label="Continue with WhatsApp"
|
|
3293
|
+
display: !isWhatsApp ? 'block' : 'none', leftIcon: React__default.createElement(WhatsApp, null), style: { fontWeight: 400 }, color: "#595959" }, t('ssov2.otp.sendVia', {
|
|
3294
|
+
method: 'WhatsApp',
|
|
3295
|
+
})),
|
|
3296
|
+
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', {
|
|
3297
|
+
method: 'Zalo',
|
|
3298
|
+
})),
|
|
3299
|
+
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', {
|
|
3300
|
+
method: 'SMS',
|
|
3301
|
+
}))))));
|
|
3132
3302
|
};
|
|
3133
3303
|
|
|
3134
3304
|
const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
@@ -3755,6 +3925,48 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3755
3925
|
}
|
|
3756
3926
|
setLoading(false);
|
|
3757
3927
|
});
|
|
3928
|
+
const onClickContinueWhatsApp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
3929
|
+
setLoading(true);
|
|
3930
|
+
try {
|
|
3931
|
+
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
3932
|
+
if (!areaCode || !phoneNumber || !phone) {
|
|
3933
|
+
setErrMsg(t('ssov2.validate.phone.required'));
|
|
3934
|
+
return setLoading(false);
|
|
3935
|
+
}
|
|
3936
|
+
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
3937
|
+
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
3938
|
+
if (!userExist._data) {
|
|
3939
|
+
const res = yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode);
|
|
3940
|
+
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
3941
|
+
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
3942
|
+
return setLoading(false);
|
|
3943
|
+
}
|
|
3944
|
+
addStep({
|
|
3945
|
+
type: SSOStepTypeType.OTP,
|
|
3946
|
+
config: {
|
|
3947
|
+
provider,
|
|
3948
|
+
phone,
|
|
3949
|
+
otpType: 'phone-whatsapp',
|
|
3950
|
+
isUpdatePhone: true,
|
|
3951
|
+
afterAction: afterAction || 'setup',
|
|
3952
|
+
},
|
|
3953
|
+
});
|
|
3954
|
+
goNext();
|
|
3955
|
+
}
|
|
3956
|
+
else {
|
|
3957
|
+
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
3958
|
+
}
|
|
3959
|
+
}
|
|
3960
|
+
else {
|
|
3961
|
+
setErrMsg(getErrorTextFromCode(t, userExist === null || userExist === void 0 ? void 0 : userExist.code));
|
|
3962
|
+
}
|
|
3963
|
+
}
|
|
3964
|
+
catch (e) {
|
|
3965
|
+
console.log(e);
|
|
3966
|
+
setErrMsg(getErrorTextFromCode(t, ''));
|
|
3967
|
+
}
|
|
3968
|
+
setLoading(false);
|
|
3969
|
+
});
|
|
3758
3970
|
return (React__default.createElement("div", { style: {
|
|
3759
3971
|
display: hidden ? 'none' : 'block',
|
|
3760
3972
|
} },
|
|
@@ -3776,8 +3988,9 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
3776
3988
|
'data-event-category': trackingCategory,
|
|
3777
3989
|
};
|
|
3778
3990
|
}, []) })),
|
|
3991
|
+
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
3992
|
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')),
|
|
3993
|
+
isFeatureWhatsAppEnabled && (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
3994
|
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null)))));
|
|
3782
3995
|
};
|
|
3783
3996
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter } from './tslib.es6-ff8cc5b3.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-9898207d.js';
|
|
5
|
+
import { L as LOCALE_SPECS, B as BEARER_REFRESH_TOKEN_COOKIE, d as BEARER_TOKEN_COOKIE$1 } from './index-7b9427ab.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 || 'vi-VN';
|
|
44
51
|
const websiteId = LOCALE_SPECS[locale].SITE_ID;
|
|
45
52
|
LOCALE_SPECS[locale].PHONE;
|
|
46
53
|
const getSSOV2ApiUrl = (path) => {
|
|
@@ -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 };
|