@hhgtech/hhg-components 1.29.537-beta-5 → 1.29.538
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/{InputDate-8c859978.js → InputDate-3d9d58ee.js} +5 -5
- package/build/{LastPeriod-e3481f68.js → LastPeriod-4be1a7ee.js} +1 -1
- package/build/{MobileBottomNavigationIcon-c91446e5.js → MobileBottomNavigationIcon-2895367a.js} +3 -3
- package/build/{SiteWideBanner-950745d4.js → SiteWideBanner-1c25d1be.js} +11 -11
- package/build/{Spinner-790519c8.js → Spinner-cb6bc79a.js} +1 -1
- package/build/{WhatsApp-54ed7506.js → WhatsApp-782532c5.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +51 -51
- package/build/babyGrowth.js +86 -86
- package/build/cache.js +2 -2
- package/build/care.js +22 -22
- package/build/careBookingSearchBar.js +14 -14
- package/build/careBookingSearchBarV2.js +19 -19
- package/build/components.js +108 -108
- package/build/{constants-3dcec321.js → constants-c72cf84b.js} +2 -2
- package/build/{constants-776b4f6f.js → constants-f4fc86e5.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-395c9189.js → core-7eb3d4fc.js} +1 -1
- package/build/{dataTransform-a319dad8.js → dataTransform-7c9f036a.js} +1 -1
- package/build/ecom.js +5 -5
- package/build/{editor-58fcdc76.js → editor-e7f1d43f.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +25 -25
- package/build/embeddedHeathToolCards_babyPoop.js +22 -22
- package/build/embeddedHeathToolCards_babyVaccine.js +24 -24
- package/build/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
- package/build/embeddedHeathToolCards_pwg_pwg.js +28 -28
- package/build/embeddedHeathToolCards_targetHeartRate.js +29 -29
- package/build/esm/{InputDate-21229813.js → InputDate-7eb908c3.js} +5 -5
- package/build/esm/{LastPeriod-002d9d73.js → LastPeriod-e9d9a798.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-50b3c054.js → MobileBottomNavigationIcon-eb60a4cc.js} +3 -3
- package/build/esm/{SiteWideBanner-92260a88.js → SiteWideBanner-c23e00f1.js} +11 -11
- package/build/esm/{Spinner-f2710740.js → Spinner-eb1ec291.js} +1 -1
- package/build/esm/{WhatsApp-f2b23f2e.js → WhatsApp-761ef045.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +51 -51
- package/build/esm/babyGrowth.js +86 -86
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +22 -22
- package/build/esm/careBookingSearchBar.js +14 -14
- package/build/esm/careBookingSearchBarV2.js +19 -19
- package/build/esm/components.js +108 -108
- package/build/esm/{constants-c8c7b037.js → constants-e43fe2f4.js} +1 -1
- package/build/esm/{constants-9b0a2e48.js → constants-fb221455.js} +2 -2
- 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-b8aae555.js → core-7c3c5661.js} +1 -1
- package/build/esm/{dataTransform-2a098cd5.js → dataTransform-bab4d234.js} +1 -1
- package/build/esm/ecom.js +5 -5
- package/build/esm/{editor-a5ea689c.js → editor-72226e56.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +25 -25
- package/build/esm/embeddedHeathToolCards_babyPoop.js +22 -22
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +24 -24
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +28 -28
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +24 -24
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +24 -24
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +28 -28
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +29 -29
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +2 -2
- package/build/esm/{healthTools-8dbad898.js → healthTools-74596c00.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +20 -20
- package/build/esm/healthToolsForm.js +36 -36
- package/build/esm/hooks.js +14 -14
- package/build/esm/i18n/translationKeys.d.ts +1 -1
- package/build/esm/i18n-values/en-PH.js +0 -2
- package/build/esm/i18n-values/hi-IN.js +0 -2
- package/build/esm/i18n-values/id-ID.js +0 -2
- package/build/esm/i18n-values/km-KH.js +0 -2
- package/build/esm/i18n-values/ms-MY.js +0 -2
- package/build/esm/i18n-values/my-MM.js +0 -2
- package/build/esm/i18n-values/th-TH.js +0 -2
- package/build/esm/i18n-values/tl-PH.js +0 -2
- package/build/esm/i18n-values/vi-VN.js +0 -2
- package/build/esm/i18n-values/vi-VN_MB.js +0 -2
- package/build/esm/i18n-values/zh-SG.js +0 -2
- package/build/esm/i18n-values/zh-TW.js +0 -2
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-6bf1dfde.js → index-0585135b.js} +1 -1
- package/build/esm/{index-6e8a530b.js → index-06ebd683.js} +32 -32
- package/build/esm/{index-8d4f6352.js → index-07e8546f.js} +3 -3
- package/build/esm/{index-b89faaa7.js → index-0bf3cd0c.js} +2 -2
- package/build/esm/{index-f60155be.js → index-0daa3341.js} +6 -6
- package/build/esm/{index-74e7d8f7.js → index-127d7a2d.js} +22 -22
- package/build/esm/{index-75eb4a9c.js → index-1387253c.js} +2 -2
- package/build/esm/{index-fd0075e9.js → index-15935283.js} +18 -18
- package/build/esm/{index-d37e6af8.js → index-17ff4652.js} +25 -25
- package/build/esm/{index-e8f885f5.js → index-18b3eff9.js} +12 -12
- package/build/esm/{index-9a6ad498.js → index-1a926ddd.js} +32 -32
- package/build/esm/{index-0979ede9.js → index-242795c5.js} +14 -14
- package/build/esm/{index-bbf44c0d.js → index-2582fcd1.js} +6 -6
- package/build/esm/{index-3a316c8f.js → index-293735ee.js} +6 -6
- package/build/esm/{index-df450b79.js → index-2e9c93f0.js} +15 -15
- package/build/esm/{index-095ae46f.js → index-303eab27.js} +2 -2
- package/build/esm/{index-33edc88c.js → index-3048f88a.js} +20 -20
- package/build/esm/{index-ac789d5b.js → index-37295a04.js} +3 -3
- package/build/esm/{index-890e390d.js → index-3cb62a28.js} +1 -1
- package/build/esm/{index-a098814e.js → index-41fe5211.js} +2 -2
- package/build/esm/{index-70fdf745.js → index-4851531b.js} +2 -2
- package/build/esm/{index-dc2c07e1.js → index-4d01a616.js} +16 -16
- package/build/esm/{index-124306fa.js → index-4e544ae3.js} +13 -13
- package/build/esm/{index-4dc1ab8f.js → index-515857b4.js} +2 -2
- package/build/esm/{index-15361a4f.js → index-5e2c875f.js} +2 -2
- package/build/esm/{index-df2f63e7.js → index-5ee690a9.js} +16 -16
- package/build/esm/{index-2690395c.js → index-5ff48170.js} +6 -29
- package/build/esm/{index-c3666ade.js → index-631a67b6.js} +2 -2
- package/build/esm/{index-3d320458.js → index-65277f1e.js} +2 -2
- package/build/esm/{index-309f5d7a.js → index-65888fd6.js} +2 -2
- package/build/esm/{index-3078a075.js → index-689bcdb1.js} +3 -3
- package/build/esm/{index-1a7188a2.js → index-68cfca27.js} +2 -2
- package/build/esm/{index-e97c094e.js → index-6bc67b1d.js} +2 -2
- package/build/esm/{index-cb55936f.js → index-6e64fc42.js} +3 -3
- package/build/esm/{index-b70d500f.js → index-74977481.js} +2 -2
- package/build/esm/{index-3a36c1b0.js → index-777002df.js} +3 -3
- package/build/esm/{index-0a15b598.js → index-7a82d63e.js} +16 -16
- package/build/esm/{index-8d3afc0c.js → index-7a9ee596.js} +11 -11
- package/build/esm/{index-8563fa1b.js → index-85b650ee.js} +1 -1
- package/build/esm/{index-97af4cff.js → index-865f9e33.js} +14 -14
- package/build/esm/{index-c88e8065.js → index-95821bd1.js} +4 -4
- package/build/esm/{index-d83f08d2.js → index-9c03af20.js} +6 -6
- package/build/esm/{index-a3834d13.js → index-9d77148b.js} +2 -2
- package/build/esm/{index-22e26f9f.js → index-a0c86e6b.js} +9 -9
- package/build/esm/{index-c858a186.js → index-a5cbbfa1.js} +13 -13
- package/build/esm/{index-917f0590.js → index-a8aa091a.js} +1 -1
- package/build/esm/{index-35d9d900.js → index-b09f6a6c.js} +15 -15
- package/build/esm/{index-10470d24.js → index-b0d2e15e.js} +3 -3
- package/build/esm/{index-21701c8d.js → index-b666f72e.js} +15 -15
- package/build/esm/{index-36fd903a.js → index-b74d0714.js} +21 -21
- package/build/esm/{index-2a1f4aa6.js → index-bbafe41d.js} +16 -16
- package/build/esm/{index-b7024362.js → index-c31a3dd9.js} +1 -1
- package/build/esm/{index-54c965e8.js → index-c428ccf3.js} +2 -2
- package/build/esm/{index-909a40f6.js → index-c6d23e78.js} +17 -17
- package/build/esm/{index-6dec13a8.js → index-c8bd649b.js} +3 -3
- package/build/esm/{index-e3054383.js → index-c952c01b.js} +7 -7
- package/build/esm/{index-7ab6c681.js → index-cf169394.js} +2 -2
- package/build/esm/{index-194c9e15.js → index-d0124182.js} +18 -18
- package/build/esm/{index-42e5944e.js → index-d0dabf1c.js} +14 -14
- package/build/esm/{index-f96f028c.js → index-d4bc697d.js} +1 -1
- package/build/esm/{index-d6cbce93.js → index-d4c1aaab.js} +5 -5
- package/build/esm/{index-9d79ad62.js → index-d568bd21.js} +3 -3
- package/build/esm/{index-8a464fad.js → index-d62fd0ce.js} +8 -8
- package/build/esm/{index-fd74959a.js → index-d90b8a41.js} +2 -2
- package/build/esm/{index-2d387a6c.js → index-ddab29ea.js} +9 -9
- package/build/esm/{index-749961d2.js → index-de086689.js} +7 -7
- package/build/esm/{index-7287efc4.js → index-e0459ae2.js} +25 -25
- package/build/esm/{index-d9d8dd3b.js → index-e18d3a10.js} +3 -3
- package/build/esm/{index-cc698c18.js → index-e19349a7.js} +3 -3
- package/build/esm/{index-e96f27aa.js → index-e45b828b.js} +3 -3
- package/build/esm/{index-b8de4ecb.js → index-ea99133c.js} +1 -1
- package/build/esm/{index-a880a7bd.js → index-f24c03ce.js} +34 -34
- package/build/esm/index.js +127 -127
- package/build/esm/{labelSorting-fb53e2de.js → labelSorting-df67f0a8.js} +4 -4
- package/build/esm/lead.js +37 -37
- package/build/esm/{logoIcon-bb5e48c3.js → logoIcon-06f180fe.js} +2 -2
- package/build/esm/mantine.js +27 -27
- package/build/esm/misc.js +19 -19
- 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 +82 -83
- package/build/esm/moleculesArticleCard.js +6 -6
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +50 -51
- package/build/esm/navigationLogoutPopup.js +11 -11
- package/build/esm/navigationProfileButton.js +27 -27
- package/build/esm/onboardingV2.js +30 -30
- package/build/esm/organisms.js +64 -64
- package/build/esm/{post-f9ce1037.js → post-03416724.js} +2 -2
- package/build/esm/profileNavigation.js +20 -20
- package/build/esm/progressBar.js +1 -1
- package/build/esm/pwg.js +23 -23
- package/build/esm/ssoV2/api/index.d.ts +0 -2
- package/build/esm/ssoV2/api/paths.d.ts +0 -1
- package/build/esm/ssoV2/api/whatsapp.d.ts +1 -5
- package/build/esm/ssoV2/screens/components/progressBar.utils.d.ts +0 -1
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +0 -16
- package/build/esm/ssoV2/stepsManager/index.d.ts +0 -2
- package/build/esm/ssoV2.js +49 -320
- package/build/esm/{store-db4e49f8.js → store-8d4bd38e.js} +4 -66
- package/build/esm/subot.js +40 -40
- package/build/esm/surveyOrPremiumBanner.js +34 -35
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-f922e6eb.js → surveyThankyouCard-14e0796a.js} +5 -5
- package/build/esm/together.js +57 -58
- package/build/esm/togetherApiUtils.js +6 -6
- package/build/esm/togetherAtoms.js +31 -31
- package/build/esm/togetherComponentGlobalContext.js +6 -6
- package/build/esm/togetherMolecules.js +52 -53
- package/build/esm/togetherMoleculesCardAuthor.js +29 -29
- package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
- package/build/esm/togetherMoleculesProfileDetail.js +40 -41
- package/build/esm/togetherOrganisms.js +51 -52
- package/build/esm/togetherRichTextEditor.js +20 -20
- package/build/esm/togetherShareBox.js +12 -12
- package/build/esm/{transform-1df82927.js → transform-1df43ac0.js} +34 -34
- package/build/esm/{translationsProvider-cbbbf823.js → translationsProvider-a14e8bdf.js} +1 -1
- package/build/esm/{treePopoverMenu-a888cd0a.js → treePopoverMenu-8c37985e.js} +19 -19
- package/build/esm/types.js +2 -2
- package/build/esm/{useCartCareService-80a170d5.js → useCartCareService-1a147fbf.js} +1 -1
- package/build/esm/{useHealthToolCache-a7de6db5.js → useHealthToolCache-6c1a9390.js} +1 -1
- package/build/esm/{usePhoneValidator-bf07a926.js → usePhoneValidator-687c1de7.js} +5 -5
- package/build/esm/{usePlacesAutocomplete-5b3dab5a.js → usePlacesAutocomplete-99fcb44a.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +10 -11
- package/build/esm/{utils-de37633c.js → utils-1507c251.js} +2 -2
- package/build/esm/{utils-d317d354.js → utils-2f7eccff.js} +4 -4
- package/build/esm/{utils-3cb10c6c.js → utils-85c511b0.js} +3 -3
- package/build/esm/{utils-0cf3e1db.js → utils-880359e9.js} +5 -5
- package/build/esm/{utils-0b908552.js → utils-8a236b01.js} +2 -2
- package/build/esm/vaccination.js +22 -22
- package/build/footer.js +22 -22
- package/build/gAssets.js +2 -2
- package/build/{healthTools-857bfb4d.js → healthTools-a1ee21dc.js} +1 -1
- package/build/healthToolsCardWrapper.js +20 -20
- package/build/healthToolsForm.js +36 -36
- package/build/hooks.js +14 -14
- package/build/i18n/translationKeys.d.ts +1 -1
- package/build/i18n-values/en-PH.js +0 -2
- package/build/i18n-values/hi-IN.js +0 -2
- package/build/i18n-values/id-ID.js +0 -2
- package/build/i18n-values/km-KH.js +0 -2
- package/build/i18n-values/ms-MY.js +0 -2
- package/build/i18n-values/my-MM.js +0 -2
- package/build/i18n-values/th-TH.js +0 -2
- package/build/i18n-values/tl-PH.js +0 -2
- package/build/i18n-values/vi-VN.js +0 -2
- package/build/i18n-values/vi-VN_MB.js +0 -2
- package/build/i18n-values/zh-SG.js +0 -2
- package/build/i18n-values/zh-TW.js +0 -2
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-1f4466bb.js → index-031ec392.js} +2 -2
- package/build/{index-abedddf6.js → index-05627218.js} +21 -21
- package/build/{index-2e74cc07.js → index-06542baa.js} +2 -2
- package/build/{index-b39a12ad.js → index-06bffedc.js} +22 -22
- package/build/{index-32fc4a6c.js → index-0a66afb1.js} +2 -2
- package/build/{index-98b28be4.js → index-0f632f2e.js} +8 -8
- package/build/{index-69dfd5c2.js → index-0fdc44a2.js} +2 -2
- package/build/{index-1d9757fd.js → index-10b3f21f.js} +7 -7
- package/build/{index-1f244c1c.js → index-1568bdc6.js} +3 -3
- package/build/{index-6f41d377.js → index-178f576c.js} +2 -2
- package/build/{index-ab374ff2.js → index-1d808910.js} +16 -16
- package/build/{index-8021aabf.js → index-2084061a.js} +15 -15
- package/build/{index-f642c9b9.js → index-25ac1f5c.js} +14 -14
- package/build/{index-52d917b5.js → index-30d63b03.js} +34 -34
- package/build/{index-f9a0af16.js → index-385521d8.js} +2 -2
- package/build/{index-70af1101.js → index-39c50d1d.js} +9 -9
- package/build/{index-ef9923e6.js → index-438bcf6b.js} +3 -3
- package/build/{index-094a8f3d.js → index-49965fa5.js} +14 -14
- package/build/{index-7051d8cd.js → index-4d7a3dab.js} +1 -1
- package/build/{index-2c2eac54.js → index-4e083fd4.js} +16 -16
- package/build/{index-7301481d.js → index-4f5fb739.js} +13 -13
- package/build/{index-3d4e3448.js → index-506db7db.js} +2 -2
- package/build/{index-7d1bd5ff.js → index-51316bc5.js} +15 -15
- package/build/{index-0616ce10.js → index-525a93e3.js} +1 -1
- package/build/{index-4e461734.js → index-5502ce99.js} +32 -32
- package/build/{index-6ebe7487.js → index-5723a95a.js} +9 -9
- package/build/{index-d81bc0df.js → index-5a09d026.js} +2 -2
- package/build/{index-760caa0d.js → index-5a20aae2.js} +3 -3
- package/build/{index-b0f580de.js → index-5ab1a0aa.js} +18 -18
- package/build/{index-3b4c31fa.js → index-6376f1ed.js} +17 -17
- package/build/{index-da8de2d2.js → index-65b2c110.js} +3 -3
- package/build/{index-d92887a2.js → index-6a385a46.js} +3 -3
- package/build/{index-499d0382.js → index-6b8de12a.js} +5 -5
- package/build/{index-8b4fb012.js → index-6ea2d072.js} +3 -3
- package/build/{index-6822c11d.js → index-785b736c.js} +32 -32
- package/build/{index-16eeaa8a.js → index-80ebf753.js} +11 -11
- package/build/{index-23ab8d01.js → index-86e91f1c.js} +3 -3
- package/build/{index-70e534e6.js → index-8813ffc9.js} +2 -2
- package/build/{index-6662f4bb.js → index-88ac79ee.js} +1 -1
- package/build/{index-d3b2cc93.js → index-90d41aad.js} +6 -6
- package/build/{index-bb70a092.js → index-95ded02e.js} +2 -2
- package/build/{index-73e2f9c1.js → index-9962b2c3.js} +2 -2
- package/build/{index-7af106ce.js → index-a448c144.js} +5 -29
- package/build/{index-855cd203.js → index-a92a93ba.js} +3 -3
- package/build/{index-0a7b1f41.js → index-ad80faca.js} +2 -2
- package/build/{index-36885632.js → index-adc01849.js} +3 -3
- package/build/{index-16f1f3ce.js → index-b27803eb.js} +2 -2
- package/build/{index-e3aaa39b.js → index-b5e6a965.js} +12 -12
- package/build/{index-ec368055.js → index-b6a4e98d.js} +2 -2
- package/build/{index-a7451f74.js → index-b769dfb1.js} +1 -1
- package/build/{index-ffc26269.js → index-bce4f3bd.js} +3 -3
- package/build/{index-2d8838d1.js → index-bd1c1c87.js} +6 -6
- package/build/{index-51d3b623.js → index-bec7917f.js} +2 -2
- package/build/{index-c705b2d2.js → index-c2534d8a.js} +3 -3
- package/build/{index-0f63aa5c.js → index-cdd6752b.js} +25 -25
- package/build/{index-5f43a928.js → index-ce4c0598.js} +20 -20
- package/build/{index-1eae847b.js → index-da456671.js} +14 -14
- package/build/{index-f2d68fc7.js → index-dc01e7e1.js} +2 -2
- package/build/{index-b569117b.js → index-e6de55be.js} +2 -2
- package/build/{index-a729d6cf.js → index-eaa62be0.js} +4 -4
- package/build/{index-1f260bc0.js → index-f198cf02.js} +7 -7
- package/build/{index-34ab4f19.js → index-f6465a9a.js} +16 -16
- package/build/{index-78940dda.js → index-f6910b7b.js} +13 -13
- package/build/{index-fc4ed749.js → index-f6f62348.js} +16 -16
- package/build/{index-e5bfd853.js → index-f9c613e3.js} +6 -6
- package/build/{index-d66e57e0.js → index-fc691bb6.js} +1 -1
- package/build/{index-5947a142.js → index-fd359a2a.js} +1 -1
- package/build/{index-52c03fc9.js → index-fdafb824.js} +15 -15
- package/build/{index-776abbb7.js → index-fe452da6.js} +1 -1
- package/build/{index-2335558f.js → index-feb5b2fe.js} +25 -25
- package/build/{index-1578a0ab.js → index-ff46b416.js} +6 -6
- package/build/{index-9c5ba0a9.js → index-ff547d84.js} +18 -18
- package/build/index.js +127 -127
- package/build/{labelSorting-02308305.js → labelSorting-fcd16dd5.js} +4 -4
- package/build/lead.js +37 -37
- package/build/{logoIcon-74c2ce70.js → logoIcon-8586d9c0.js} +2 -2
- package/build/mantine.js +25 -25
- package/build/misc.js +19 -19
- 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 +82 -83
- package/build/moleculesArticleCard.js +6 -6
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +50 -51
- package/build/navigationLogoutPopup.js +11 -11
- package/build/navigationProfileButton.js +27 -27
- package/build/onboardingV2.js +29 -29
- package/build/organisms.js +64 -64
- package/build/{post-6d5721bf.js → post-6210808f.js} +2 -2
- package/build/profileNavigation.js +20 -20
- package/build/progressBar.js +1 -1
- package/build/pwg.js +23 -23
- package/build/ssoV2/api/index.d.ts +0 -2
- package/build/ssoV2/api/paths.d.ts +0 -1
- package/build/ssoV2/api/whatsapp.d.ts +1 -5
- package/build/ssoV2/screens/components/progressBar.utils.d.ts +0 -1
- package/build/ssoV2/ssoStateManager/store.d.ts +0 -16
- package/build/ssoV2/stepsManager/index.d.ts +0 -2
- package/build/ssoV2.js +62 -333
- package/build/{store-a924a0b8.js → store-b9d36c29.js} +3 -66
- package/build/subot.js +39 -39
- package/build/surveyOrPremiumBanner.js +34 -35
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-9bfb5a9f.js → surveyThankyouCard-826d74d6.js} +5 -5
- package/build/together.js +57 -58
- package/build/togetherApiUtils.js +6 -6
- package/build/togetherAtoms.js +31 -31
- package/build/togetherComponentGlobalContext.js +6 -6
- package/build/togetherMolecules.js +52 -53
- package/build/togetherMoleculesCardAuthor.js +29 -29
- package/build/togetherMoleculesPostImagePreview.js +13 -13
- package/build/togetherMoleculesProfileDetail.js +40 -41
- package/build/togetherOrganisms.js +51 -52
- package/build/togetherRichTextEditor.js +20 -20
- package/build/togetherShareBox.js +12 -12
- package/build/{transform-3fc68465.js → transform-0802390c.js} +34 -34
- package/build/{translationsProvider-6e564fe4.js → translationsProvider-742cb218.js} +1 -1
- package/build/{treePopoverMenu-c1440b83.js → treePopoverMenu-04618075.js} +19 -19
- package/build/types.js +2 -2
- package/build/{useCartCareService-933e42a1.js → useCartCareService-89a8ae14.js} +1 -1
- package/build/{useHealthToolCache-be59d6ef.js → useHealthToolCache-42aa987d.js} +1 -1
- package/build/{usePhoneValidator-2d86798f.js → usePhoneValidator-2e9c51ff.js} +5 -5
- package/build/{usePlacesAutocomplete-2d7d37f1.js → usePlacesAutocomplete-eea51bc0.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +10 -11
- package/build/{utils-dfea75ce.js → utils-533a411f.js} +3 -3
- package/build/{utils-a1914f05.js → utils-6e677a54.js} +2 -2
- package/build/{utils-d74b72e6.js → utils-777a9cc8.js} +4 -4
- package/build/{utils-979e8128.js → utils-ab37e8ab.js} +2 -2
- package/build/{utils-51104b6f.js → utils-ea109d16.js} +5 -5
- package/build/vaccination.js +22 -22
- package/package.json +1 -1
- package/build/esm/ssoV2/screens/whatsAppOTP.d.ts +0 -13
- package/build/esm/ssoV2/screens/whatsAppPhoneVerify.d.ts +0 -9
- package/build/ssoV2/screens/whatsAppOTP.d.ts +0 -13
- package/build/ssoV2/screens/whatsAppPhoneVerify.d.ts +0 -9
- /package/build/{BMI_BOYS.percentile.monthly-d9079764.js → BMI_BOYS.percentile.monthly-96ecfbe9.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-660e91ce.js → BMI_BOYS.percentile.weekly-dcbfb5e8.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-17855d11.js → BMI_BOYS.percentile.yearly-542f283b.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-eeec8008.js → BMI_BOYS.zscore.monthly-ea9325d1.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-b1ce5a77.js → BMI_BOYS.zscore.weekly-148ee4f7.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-ea752900.js → BMI_BOYS.zscore.yearly-374e4df5.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-98ae512f.js → BMI_GIRLS.percentile.monthly-0b789a0a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d3171f49.js → BMI_GIRLS.percentile.weekly-963c5632.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-62aa08d5.js → BMI_GIRLS.percentile.yearly-f70d5f88.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-ce6b9a3a.js → BMI_GIRLS.zscore.monthly-0e22355b.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-9828edcb.js → BMI_GIRLS.zscore.weekly-435e4eee.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-258a21ee.js → BMI_GIRLS.zscore.yearly-a8d468a2.js} +0 -0
- /package/build/{ChevronDown-7d8f855f.js → ChevronDown-693874c0.js} +0 -0
- /package/build/{Google-254e927d.js → Google-851ffcea.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-8bd33f8f.js → HEAD CIRCUM_BOYS.percentile.monthly-e0695547.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-055573ea.js → HEAD CIRCUM_BOYS.percentile.weekly-987e3a97.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-4f822cbf.js → HEAD CIRCUM_BOYS.percentile.yearly-2615ad58.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-1167f26e.js → HEAD CIRCUM_BOYS.zscore.monthly-8172e9df.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-b171d469.js → HEAD CIRCUM_BOYS.zscore.weekly-e9188725.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-fc197493.js → HEAD CIRCUM_BOYS.zscore.yearly-92f3f78e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-ae1ea3b9.js → HEAD CIRCUM_GIRLS.percentile.monthly-0bb9fae4.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-48476d56.js → HEAD CIRCUM_GIRLS.percentile.weekly-2989dbd9.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-aeaa8778.js → HEAD CIRCUM_GIRLS.percentile.yearly-7babcce8.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-9e9344ab.js → HEAD CIRCUM_GIRLS.zscore.monthly-35d2113e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-6dbe10bd.js → HEAD CIRCUM_GIRLS.zscore.weekly-7feb638e.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-82ea3a32.js → HEAD CIRCUM_GIRLS.zscore.yearly-5c9ed53b.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-f1e1aeca.js → HEIGHT_BOYS.percentile.monthly-6270a50d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-c8916193.js → HEIGHT_BOYS.percentile.weekly-6263d024.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-75c48af8.js → HEIGHT_BOYS.percentile.yearly-15e5e9aa.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-c6d761f4.js → HEIGHT_BOYS.zscore.monthly-5376aaf4.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-4c36a74e.js → HEIGHT_BOYS.zscore.weekly-6b5c633b.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-087311e0.js → HEIGHT_BOYS.zscore.yearly-a22dcf2f.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-06849095.js → HEIGHT_GIRLS.percentile.monthly-0a540495.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-c2e66b2a.js → HEIGHT_GIRLS.percentile.weekly-92dce177.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-a4bc09c4.js → HEIGHT_GIRLS.percentile.yearly-ab192ad2.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-6fc4e2d1.js → HEIGHT_GIRLS.zscore.monthly-b92903ba.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-6a35c0fc.js → HEIGHT_GIRLS.zscore.weekly-06c6b686.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-463c3bc4.js → HEIGHT_GIRLS.zscore.yearly-647e75b2.js} +0 -0
- /package/build/{Locale-2345a77d.js → Locale-3ca2be0f.js} +0 -0
- /package/build/{Visible-fc2bcaa0.js → Visible-c93ab751.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-1e5ddd87.js → WEIGHT_BOYS.percentile.monthly-f66f4464.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-1b9c8d37.js → WEIGHT_BOYS.percentile.weekly-fd201974.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-d90cb57b.js → WEIGHT_BOYS.percentile.yearly-006fd638.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-e49128f2.js → WEIGHT_BOYS.zscore.monthly-6294ebd8.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-839321ee.js → WEIGHT_BOYS.zscore.weekly-d881a320.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-6d841446.js → WEIGHT_BOYS.zscore.yearly-4ca50c01.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-5c8823f8.js → WEIGHT_GIRLS.percentile.monthly-0a99b21a.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-31f14b45.js → WEIGHT_GIRLS.percentile.weekly-7edfdc6f.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-d9940139.js → WEIGHT_GIRLS.percentile.yearly-645cd823.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-4d5b5303.js → WEIGHT_GIRLS.zscore.monthly-e0b45ecc.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-28dbf8db.js → WEIGHT_GIRLS.zscore.weekly-23ad6304.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-9cfd48b8.js → WEIGHT_GIRLS.zscore.yearly-af76b6b1.js} +0 -0
- /package/build/{ageGenerate-d6f9a2d0.js → ageGenerate-360164fc.js} +0 -0
- /package/build/{animation-3778c54e.js → animation-09141fb3.js} +0 -0
- /package/build/{constants-4daa2958.js → constants-1a4a24ea.js} +0 -0
- /package/build/{constants-0bbabca2.js → constants-9e710ec4.js} +0 -0
- /package/build/{constants-041efcb5.js → constants-a15d5a9e.js} +0 -0
- /package/build/{context-f97b8768.js → context-dd74b037.js} +0 -0
- /package/build/{dataTransform-4dc390ec.js → dataTransform-360ef88b.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-17591ef8.js → BMI_BOYS.percentile.monthly-9ce95e7d.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-4d785199.js → BMI_BOYS.percentile.weekly-d5c0e259.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-49542d2e.js → BMI_BOYS.percentile.yearly-eecbb8f1.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-31fab41f.js → BMI_BOYS.zscore.monthly-359b242d.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-81e6b0d3.js → BMI_BOYS.zscore.weekly-c8a7609c.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-fd8f0200.js → BMI_BOYS.zscore.yearly-0ad92eab.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-7ef18da4.js → BMI_GIRLS.percentile.monthly-6bf79e93.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-dac2b1da.js → BMI_GIRLS.percentile.weekly-3e2391b2.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-53c01fca.js → BMI_GIRLS.percentile.yearly-a58a6343.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-0d797d6a.js → BMI_GIRLS.zscore.monthly-e6789784.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-ccdcc474.js → BMI_GIRLS.zscore.weekly-4bdd9d8b.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-6901bcc1.js → BMI_GIRLS.zscore.yearly-fe23b62b.js} +0 -0
- /package/build/esm/{ChevronDown-cc736867.js → ChevronDown-37b73754.js} +0 -0
- /package/build/esm/{Google-4c5848eb.js → Google-ab0b8873.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-4111837d.js → HEAD CIRCUM_BOYS.percentile.monthly-9013e780.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-c13b6c86.js → HEAD CIRCUM_BOYS.percentile.weekly-dec9abc9.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-0525547f.js → HEAD CIRCUM_BOYS.percentile.yearly-1b757822.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-b35b1222.js → HEAD CIRCUM_BOYS.zscore.monthly-5e000849.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-c9d3ed36.js → HEAD CIRCUM_BOYS.zscore.weekly-92e64c15.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-857872b7.js → HEAD CIRCUM_BOYS.zscore.yearly-7cc464b7.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-a7392ed9.js → HEAD CIRCUM_GIRLS.percentile.monthly-c997eb66.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-60e524d6.js → HEAD CIRCUM_GIRLS.percentile.weekly-de4c421a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-c957b92a.js → HEAD CIRCUM_GIRLS.percentile.yearly-655ef974.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-c4547d2c.js → HEAD CIRCUM_GIRLS.zscore.monthly-0c0ad07a.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-e9f51f07.js → HEAD CIRCUM_GIRLS.zscore.weekly-3b034a8d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-56f8fead.js → HEAD CIRCUM_GIRLS.zscore.yearly-c7d984de.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-5275195f.js → HEIGHT_BOYS.percentile.monthly-f54a0424.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-1cd197c7.js → HEIGHT_BOYS.percentile.weekly-b044fb63.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-202736d6.js → HEIGHT_BOYS.percentile.yearly-ec01ddd2.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-5e8bad80.js → HEIGHT_BOYS.zscore.monthly-f70fca9e.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-fe181c12.js → HEIGHT_BOYS.zscore.weekly-dedae40a.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-d5a10d56.js → HEIGHT_BOYS.zscore.yearly-52b4f1ee.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-7bc03df0.js → HEIGHT_GIRLS.percentile.monthly-ff3a1bda.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-36c9b74a.js → HEIGHT_GIRLS.percentile.weekly-f98dab45.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-02ba4be6.js → HEIGHT_GIRLS.percentile.yearly-7007c5ea.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-bac4f0a4.js → HEIGHT_GIRLS.zscore.monthly-0aae9bef.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-0e2fa8a9.js → HEIGHT_GIRLS.zscore.weekly-b14228a2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-0b42aed6.js → HEIGHT_GIRLS.zscore.yearly-f340e978.js} +0 -0
- /package/build/esm/{Locale-0bbd6a5e.js → Locale-2dee4c43.js} +0 -0
- /package/build/esm/{Visible-53cba9e5.js → Visible-47a2dbb2.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-501829d8.js → WEIGHT_BOYS.percentile.monthly-f81de023.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-37e97e4d.js → WEIGHT_BOYS.percentile.weekly-c69cf121.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-9786da16.js → WEIGHT_BOYS.percentile.yearly-756f237c.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-c488ade6.js → WEIGHT_BOYS.zscore.monthly-c68a0708.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-e12d6f55.js → WEIGHT_BOYS.zscore.weekly-3829233b.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-52449eb2.js → WEIGHT_BOYS.zscore.yearly-a65ddf6e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-6f77336e.js → WEIGHT_GIRLS.percentile.monthly-c9ae07a8.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-6dca4376.js → WEIGHT_GIRLS.percentile.weekly-12fe06de.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-580718be.js → WEIGHT_GIRLS.percentile.yearly-88ae1a03.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-9944d5ce.js → WEIGHT_GIRLS.zscore.monthly-3eefe758.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-6e9ee823.js → WEIGHT_GIRLS.zscore.weekly-29ec41d1.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-e4bee0bd.js → WEIGHT_GIRLS.zscore.yearly-19c2253d.js} +0 -0
- /package/build/esm/{ageGenerate-eb111294.js → ageGenerate-7a9e8773.js} +0 -0
- /package/build/esm/{animation-be745b72.js → animation-066f1395.js} +0 -0
- /package/build/esm/{constants-7bf5334e.js → constants-51297d28.js} +0 -0
- /package/build/esm/{constants-4c5fd884.js → constants-6b15b91e.js} +0 -0
- /package/build/esm/{constants-335c4c8c.js → constants-847e7748.js} +0 -0
- /package/build/esm/{context-3350f777.js → context-4db4a506.js} +0 -0
- /package/build/esm/{dataTransform-e683e053.js → dataTransform-76c01cfa.js} +0 -0
- /package/build/esm/{index-648a5a6d.js → index-239d17f5.js} +0 -0
- /package/build/esm/{index-3e48e479.js → index-312c916a.js} +0 -0
- /package/build/esm/{index-bc33bb36.js → index-398d35a9.js} +0 -0
- /package/build/esm/{index-7119a645.js → index-5aa0b1fc.js} +0 -0
- /package/build/esm/{index-bf8994c9.js → index-761ec78f.js} +0 -0
- /package/build/esm/{index-590c0009.js → index-7d090d6e.js} +0 -0
- /package/build/esm/{index-1cdced75.js → index-e5e939d0.js} +0 -0
- /package/build/esm/{index-8f0d83bf.js → index-eb40ea44.js} +0 -0
- /package/build/esm/{index-4b1bec82.js → index-fb51dce3.js} +0 -0
- /package/build/esm/{index.styles-f9646e0c.js → index.styles-f02a8f04.js} +0 -0
- /package/build/esm/{localizeNumberFormat-9a1da683.js → localizeNumberFormat-fe56ad07.js} +0 -0
- /package/build/esm/{normalizeLink-9b8989eb.js → normalizeLink-0f1a50a9.js} +0 -0
- /package/build/esm/{number-d511ef50.js → number-1b878101.js} +0 -0
- /package/build/esm/{paths-5ed4450c.js → paths-2a878b9d.js} +0 -0
- /package/build/esm/{shared-24d9ba4b.js → shared-63d1f7f1.js} +0 -0
- /package/build/esm/{translationsContext-603e5859.js → translationsContext-673e5ab9.js} +0 -0
- /package/build/esm/{tslib.es6-9a4d03cd.js → tslib.es6-2a05b926.js} +0 -0
- /package/build/esm/{types-b8619702.js → types-8a35845e.js} +0 -0
- /package/build/esm/{types-3d343118.js → types-c9c031ab.js} +0 -0
- /package/build/esm/{useOutsideClick-6b382eae.js → useOutsideClick-f5e48d72.js} +0 -0
- /package/build/esm/{useScrollbarSize-bd3bd096.js → useScrollbarSize-d30c0138.js} +0 -0
- /package/build/esm/{useUniqueId-57540e20.js → useUniqueId-a8c53afd.js} +0 -0
- /package/build/esm/{utils-f571b8fd.js → utils-67ca0c47.js} +0 -0
- /package/build/esm/{utils-f2f522a7.js → utils-dfdfbc89.js} +0 -0
- /package/build/{index-0c5a7bc8.js → index-2129f33e.js} +0 -0
- /package/build/{index-23514d6a.js → index-389d0dfc.js} +0 -0
- /package/build/{index-d0a59407.js → index-6e7483aa.js} +0 -0
- /package/build/{index-96393e72.js → index-78d47a31.js} +0 -0
- /package/build/{index-6906fcf1.js → index-86915ad9.js} +0 -0
- /package/build/{index-e84bc9fa.js → index-9850bc10.js} +0 -0
- /package/build/{index-6a8b06b1.js → index-c1e5c630.js} +0 -0
- /package/build/{index-ff2dac3a.js → index-c389a443.js} +0 -0
- /package/build/{index-7b64bae1.js → index-fe8d4346.js} +0 -0
- /package/build/{index.styles-417cf916.js → index.styles-efc85da8.js} +0 -0
- /package/build/{localizeNumberFormat-611d0d92.js → localizeNumberFormat-0c921b28.js} +0 -0
- /package/build/{normalizeLink-251015e1.js → normalizeLink-ce6fe207.js} +0 -0
- /package/build/{number-c8386251.js → number-4a2b23e3.js} +0 -0
- /package/build/{paths-4f504b1e.js → paths-36d314b7.js} +0 -0
- /package/build/{shared-14bef843.js → shared-86d011f6.js} +0 -0
- /package/build/{translationsContext-810df239.js → translationsContext-504cf17e.js} +0 -0
- /package/build/{tslib.es6-8af7022b.js → tslib.es6-9e779357.js} +0 -0
- /package/build/{types-747632d4.js → types-1815d4ac.js} +0 -0
- /package/build/{types-0c1a09d2.js → types-6aa65421.js} +0 -0
- /package/build/{useOutsideClick-eb78cd0a.js → useOutsideClick-ae72f208.js} +0 -0
- /package/build/{useScrollbarSize-03244e00.js → useScrollbarSize-389fb54d.js} +0 -0
- /package/build/{useUniqueId-0808b937.js → useUniqueId-6539444e.js} +0 -0
- /package/build/{utils-7624bc35.js → utils-09f93798.js} +0 -0
- /package/build/{utils-81b37e9d.js → utils-696aecae.js} +0 -0
package/build/esm/ssoV2.js
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { a as __awaiter, _ as __rest } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter, _ as __rest } from './tslib.es6-2a05b926.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useImperativeHandle, useState, useCallback, forwardRef } from 'react';
|
|
3
3
|
import { getCookie, setCookie, deleteCookie } from './miscCookieHelper.js';
|
|
4
|
-
import { I as Input, h as ErrorBoundary, s as styles, O as OTP, i as PasswordInput } from './index-
|
|
5
|
-
import { f as fetchSSOV2Api, w as websiteId, S as SSO_V2_PATHS, c as checkUserExist,
|
|
4
|
+
import { I as Input, h as ErrorBoundary, s as styles, O as OTP, i as PasswordInput } from './index-ddab29ea.js';
|
|
5
|
+
import { f as fetchSSOV2Api, w as websiteId, S as SSO_V2_PATHS, c as checkUserExist, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, u as updateUserInfo, r as resetPassword } from './index-5ff48170.js';
|
|
6
6
|
import { isProduction } from './constantsIsProduction.js';
|
|
7
7
|
import { ChevronLeft } from '@hhgtech/icons/arrow';
|
|
8
8
|
import { Close, Search, ReplySquare } from '@hhgtech/icons/core';
|
|
9
|
-
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES, Q as QUERY_HEALTH_TOOL } from './index-
|
|
10
|
-
import { L as LogoIcon } from './logoIcon-
|
|
11
|
-
import { B as Button } from './index-
|
|
12
|
-
import { M as Modal } from './index-
|
|
9
|
+
import { Z as ZINDEX_SSO, L as LOCALE_SPECS, S as STATIC_PAGES, Q as QUERY_HEALTH_TOOL } from './index-303eab27.js';
|
|
10
|
+
import { L as LogoIcon } from './logoIcon-06f180fe.js';
|
|
11
|
+
import { B as Button } from './index-e18d3a10.js';
|
|
12
|
+
import { M as Modal } from './index-5e2c875f.js';
|
|
13
13
|
import { Stack, Flex, Box, Group, Divider } from '@mantine/core';
|
|
14
14
|
import '@mantine/dates';
|
|
15
|
-
import './index-
|
|
16
|
-
import { C as CommonGAssets } from './index-
|
|
17
|
-
import { s as showNotification } from './index-
|
|
18
|
-
import { T as Text } from './index-
|
|
19
|
-
import './index-
|
|
20
|
-
import { u as useTranslations } from './index-
|
|
15
|
+
import './index-a8aa091a.js';
|
|
16
|
+
import { C as CommonGAssets } from './index-398d35a9.js';
|
|
17
|
+
import { s as showNotification } from './index-d62fd0ce.js';
|
|
18
|
+
import { T as Text } from './index-515857b4.js';
|
|
19
|
+
import './index-e5e939d0.js';
|
|
20
|
+
import { u as useTranslations } from './index-3cb62a28.js';
|
|
21
21
|
import '@mantine/hooks';
|
|
22
|
-
import './utils-
|
|
23
|
-
import './index-
|
|
24
|
-
import { L as LOCALE } from './Locale-
|
|
25
|
-
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, I as IS_SSOV2_ENABLED,
|
|
26
|
-
export { u as useSSOV2Store } from './store-
|
|
27
|
-
import { I as ImageWrap, u as useScreenSize } from './index-
|
|
22
|
+
import './utils-67ca0c47.js';
|
|
23
|
+
import './index-689bcdb1.js';
|
|
24
|
+
import { L as LOCALE } from './Locale-2dee4c43.js';
|
|
25
|
+
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, I as IS_SSOV2_ENABLED, b as isPhoneNotVerifedYet, c as isLoginWithPhoneNotVerifedYet, d as isFlowFinishedSetup, r as redirect } from './store-8d4bd38e.js';
|
|
26
|
+
export { u as useSSOV2Store } from './store-8d4bd38e.js';
|
|
27
|
+
import { I as ImageWrap, u as useScreenSize } from './index-4851531b.js';
|
|
28
28
|
import ReCAPTCHA from 'react-google-recaptcha';
|
|
29
|
-
import { G as Google, F as Facebook } from './Google-
|
|
30
|
-
import {
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
import { G as Google, F as Facebook } from './Google-ab0b8873.js';
|
|
30
|
+
import { parsePhoneNumber, getCountryCallingCode } from 'react-phone-number-input';
|
|
31
|
+
import { i as isFeatureWhatsAppEnabled, a as isFeatureZaloEnabled, b as isFeatureSMSEnabled, c as isSupportProduct } from './utils-880359e9.js';
|
|
32
|
+
export { g as getURLwithSSOTracking } from './utils-880359e9.js';
|
|
33
|
+
import { S as Spoiler } from './index-e45b828b.js';
|
|
33
34
|
import { domainLocales, MAP_DOMAIN_BY_LOCALE } from './constantsDomainLocales.js';
|
|
34
35
|
import styled from '@emotion/styled';
|
|
35
36
|
import classNames from 'classnames';
|
|
36
37
|
import { CaretDown } from '@hhgtech/icons/other';
|
|
37
38
|
import debounce from 'lodash/debounce';
|
|
38
39
|
import throttle from 'lodash/throttle';
|
|
39
|
-
import { getCountryCallingCode } from 'react-phone-number-input';
|
|
40
40
|
import Flags from 'react-phone-number-input/flags';
|
|
41
41
|
import { Drawer } from 'vaul';
|
|
42
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
42
|
+
import { M as MAPPED_LOCALE } from './utils-8a236b01.js';
|
|
43
43
|
import { useForm, yupResolver } from '@mantine/form';
|
|
44
44
|
import * as yup from 'yup';
|
|
45
45
|
import dayjs from 'dayjs';
|
|
46
|
-
import { D as DatePicker } from './index-
|
|
46
|
+
import { D as DatePicker } from './index-293735ee.js';
|
|
47
47
|
import '@mantine/carousel';
|
|
48
48
|
import './miscTheme.js';
|
|
49
|
-
import './shared-
|
|
49
|
+
import './shared-63d1f7f1.js';
|
|
50
50
|
import 'uuid';
|
|
51
|
-
import './useUniqueId-
|
|
51
|
+
import './useUniqueId-a8c53afd.js';
|
|
52
52
|
import './constantsSite.js';
|
|
53
53
|
import '@emotion/react';
|
|
54
|
-
import './normalizeLink-
|
|
54
|
+
import './normalizeLink-0f1a50a9.js';
|
|
55
55
|
import 'date-fns/locale';
|
|
56
56
|
import './constantsRiskScreener.js';
|
|
57
|
-
import './index.styles-
|
|
57
|
+
import './index.styles-f02a8f04.js';
|
|
58
58
|
import '@mantine/notifications';
|
|
59
|
-
import './translationsContext-
|
|
59
|
+
import './translationsContext-673e5ab9.js';
|
|
60
60
|
import 'zustand';
|
|
61
|
-
import './healthTools-
|
|
61
|
+
import './healthTools-74596c00.js';
|
|
62
62
|
|
|
63
63
|
// const fakeData = {
|
|
64
64
|
const fetchFeatureFlag = (site) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -425,7 +425,6 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
425
425
|
const showProgressBar = isDisplayProgressBarFn(flowData, currentStep);
|
|
426
426
|
const showBack = (steps.length > 1 && !showProgressBar) ||
|
|
427
427
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.OTP ||
|
|
428
|
-
((currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_OTP && steps.length > 1) ||
|
|
429
428
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.PASSWORD ||
|
|
430
429
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.EMAIL;
|
|
431
430
|
const showClose = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.FIRST;
|
|
@@ -435,25 +434,15 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
435
434
|
const onCloseClick = () => {
|
|
436
435
|
setCloseConfirmOpen(true);
|
|
437
436
|
};
|
|
438
|
-
const isWhatsAppPhoneVerify = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_PHONE_VERIFY;
|
|
439
|
-
const isWhatsAppLoginFlow = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_PHONE_VERIFY ||
|
|
440
|
-
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_OTP;
|
|
441
|
-
const onModalRequestClose = () => {
|
|
442
|
-
if (isWhatsAppLoginFlow)
|
|
443
|
-
return;
|
|
444
|
-
onCloseClick();
|
|
445
|
-
};
|
|
446
437
|
return (React__default.createElement(React__default.Fragment, null,
|
|
447
|
-
React__default.createElement(Modal, { opened: opened, onClose:
|
|
438
|
+
React__default.createElement(Modal, { opened: opened, onClose: onCloseClick, styles: (theme) => ({
|
|
448
439
|
body: {
|
|
449
440
|
display: 'flex',
|
|
450
441
|
flexDirection: 'column',
|
|
451
|
-
gap:
|
|
442
|
+
gap: 16,
|
|
452
443
|
padding: '32px 24px',
|
|
453
444
|
position: 'relative',
|
|
454
|
-
background:
|
|
455
|
-
? 'linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 70px)'
|
|
456
|
-
: 'linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 150px)',
|
|
445
|
+
background: 'linear-gradient(180deg, #A5D4FF 0%, #FFFFFF 150px)',
|
|
457
446
|
overflow: 'auto',
|
|
458
447
|
[theme.fn.smallerThan('sm')]: {
|
|
459
448
|
height: '100%',
|
|
@@ -797,6 +786,18 @@ const useGRecaptchaHandler = () => {
|
|
|
797
786
|
};
|
|
798
787
|
};
|
|
799
788
|
|
|
789
|
+
const splitPhone = (phone) => {
|
|
790
|
+
if (!phone)
|
|
791
|
+
return { areaCode: undefined, phoneNumber: undefined };
|
|
792
|
+
const parsedPhone = parsePhoneNumber(phone);
|
|
793
|
+
return {
|
|
794
|
+
areaCode: parsedPhone.countryCallingCode
|
|
795
|
+
? '+' + parsedPhone.countryCallingCode
|
|
796
|
+
: '',
|
|
797
|
+
phoneNumber: parsedPhone.nationalNumber || '',
|
|
798
|
+
};
|
|
799
|
+
};
|
|
800
|
+
|
|
800
801
|
// "phone_number":"906911910",
|
|
801
802
|
// "password":"Kenny2103!"
|
|
802
803
|
const loginByPhonePassword = (phone, password) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -879,25 +880,6 @@ const loginBySocial = (token, social) => __awaiter(void 0, void 0, void 0, funct
|
|
|
879
880
|
});
|
|
880
881
|
});
|
|
881
882
|
|
|
882
|
-
/** Guest: send or resend OTP (same endpoint). Optional referrer e.g. payment page URL. */
|
|
883
|
-
const sendLoginOtpWhatsapp = (phoneNumber, areaCode, referrer) => __awaiter(void 0, void 0, void 0, function* () {
|
|
884
|
-
return fetchSSOV2ApiJson(SSO_V2_PATHS.WHATSAPP.LOGIN_OTP_WHATSAPP, {
|
|
885
|
-
phone_number: phoneNumber,
|
|
886
|
-
area_code: areaCode,
|
|
887
|
-
website_id: Number(websiteId),
|
|
888
|
-
ga_client_id: getCookie('_ga') || '',
|
|
889
|
-
referrer: referrer || (typeof window !== 'undefined' ? window.location.href : ''),
|
|
890
|
-
}, true);
|
|
891
|
-
});
|
|
892
|
-
/** Guest: verify OTP after WhatsApp login send; `login_type` required by API. */
|
|
893
|
-
const verifyWhatsappOtpGuest = (phoneNumber, areaCode, otpCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
894
|
-
return fetchSSOV2ApiJson(SSO_V2_PATHS.WHATSAPP.VERIFY_BY_OTP, {
|
|
895
|
-
otp_code: otpCode,
|
|
896
|
-
phone_number: phoneNumber,
|
|
897
|
-
area_code: areaCode,
|
|
898
|
-
login_type: 'otp-whatsapp',
|
|
899
|
-
}, true);
|
|
900
|
-
});
|
|
901
883
|
// "phone_number": "906911910",
|
|
902
884
|
// "area_code":"+84",
|
|
903
885
|
const registerBySendWhatsAppOTP = (phone, areaCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -3414,13 +3396,10 @@ const SSOOTPScreen = ({ hidden, index, config, }) => {
|
|
|
3414
3396
|
setResendTime(30);
|
|
3415
3397
|
const countdown = () => {
|
|
3416
3398
|
setResendTime((t) => {
|
|
3417
|
-
if (t
|
|
3418
|
-
return 0;
|
|
3419
|
-
const next = t - 1;
|
|
3420
|
-
if (next > 0) {
|
|
3399
|
+
if (t - 1 > 0) {
|
|
3421
3400
|
setTimeout(() => countdown(), 1000);
|
|
3422
3401
|
}
|
|
3423
|
-
return
|
|
3402
|
+
return t - 1;
|
|
3424
3403
|
});
|
|
3425
3404
|
};
|
|
3426
3405
|
countdown();
|
|
@@ -4593,252 +4572,6 @@ const SSOUpdateEmailScreen = ({ hidden, config, }) => {
|
|
|
4593
4572
|
React__default.createElement(Button, { type: "submit", size: "lg", variant: "primary", fullWidth: true, mt: 16, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Verify Your Email" }, t('ssov2.updateEmail.button'))));
|
|
4594
4573
|
};
|
|
4595
4574
|
|
|
4596
|
-
const SSOWhatsAppOTPScreen = ({ hidden, config, }) => {
|
|
4597
|
-
const { t } = useTranslations();
|
|
4598
|
-
const { onClose, setTracking } = useSSOState();
|
|
4599
|
-
const [loading, setLoading] = React__default.useState(false);
|
|
4600
|
-
const [otp, setOtp] = React__default.useState('');
|
|
4601
|
-
const [error, setError] = React__default.useState('');
|
|
4602
|
-
const submitButtonRef = React__default.useRef(null);
|
|
4603
|
-
const otpRef = React__default.useRef(null);
|
|
4604
|
-
const phone = (config === null || config === void 0 ? void 0 : config.phone) || '';
|
|
4605
|
-
const referrer = config === null || config === void 0 ? void 0 : config.referrer;
|
|
4606
|
-
const useAuthenticatedWhatsAppApis = !!(config === null || config === void 0 ? void 0 : config.useAuthenticatedWhatsAppApis);
|
|
4607
|
-
const trackingCategory = 'SSO - WhatsApp Login';
|
|
4608
|
-
const trackingAction = 'Verify WhatsApp OTP';
|
|
4609
|
-
useEffect(() => {
|
|
4610
|
-
if (!hidden) {
|
|
4611
|
-
setError('');
|
|
4612
|
-
setTracking({
|
|
4613
|
-
category: trackingCategory,
|
|
4614
|
-
action: trackingAction,
|
|
4615
|
-
});
|
|
4616
|
-
}
|
|
4617
|
-
}, [hidden]);
|
|
4618
|
-
const [resendTime, setResendTime] = React__default.useState(30);
|
|
4619
|
-
const setupResendTimer = () => {
|
|
4620
|
-
setResendTime(30);
|
|
4621
|
-
const countdown = () => {
|
|
4622
|
-
setResendTime((time) => {
|
|
4623
|
-
if (time <= 0)
|
|
4624
|
-
return 0;
|
|
4625
|
-
const next = time - 1;
|
|
4626
|
-
if (next > 0) {
|
|
4627
|
-
setTimeout(() => countdown(), 1000);
|
|
4628
|
-
}
|
|
4629
|
-
return next;
|
|
4630
|
-
});
|
|
4631
|
-
};
|
|
4632
|
-
countdown();
|
|
4633
|
-
};
|
|
4634
|
-
const sendOTPCode = (checkResend) => __awaiter(void 0, void 0, void 0, function* () {
|
|
4635
|
-
if (checkResend && resendTime > 0)
|
|
4636
|
-
return;
|
|
4637
|
-
setLoading(true);
|
|
4638
|
-
try {
|
|
4639
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
4640
|
-
if (!areaCode || !phoneNumber) {
|
|
4641
|
-
setError(t('ssov2.validate.phone.required'));
|
|
4642
|
-
return setLoading(false);
|
|
4643
|
-
}
|
|
4644
|
-
const res = useAuthenticatedWhatsAppApis
|
|
4645
|
-
? yield resendUpdatePhoneWhatsAppOTP(phoneNumber, areaCode)
|
|
4646
|
-
: yield sendLoginOtpWhatsapp(phoneNumber, areaCode, referrer);
|
|
4647
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
4648
|
-
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
4649
|
-
return setLoading(false);
|
|
4650
|
-
}
|
|
4651
|
-
setupResendTimer();
|
|
4652
|
-
}
|
|
4653
|
-
catch (e) {
|
|
4654
|
-
console.error(e);
|
|
4655
|
-
setError(getErrorTextFromCode(t, ''));
|
|
4656
|
-
}
|
|
4657
|
-
setLoading(false);
|
|
4658
|
-
});
|
|
4659
|
-
const submitOtp = (otpValue) => __awaiter(void 0, void 0, void 0, function* () {
|
|
4660
|
-
var _a;
|
|
4661
|
-
if (!otpValue || otpValue.length < 6) {
|
|
4662
|
-
setError(t('ssov2.validate.otp.required'));
|
|
4663
|
-
return;
|
|
4664
|
-
}
|
|
4665
|
-
setLoading(true);
|
|
4666
|
-
try {
|
|
4667
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
4668
|
-
if (!areaCode || !phoneNumber) {
|
|
4669
|
-
setError(t('ssov2.validate.phone.required'));
|
|
4670
|
-
return setLoading(false);
|
|
4671
|
-
}
|
|
4672
|
-
const res = useAuthenticatedWhatsAppApis
|
|
4673
|
-
? yield verifyUpdatePhoneWhatsAppOTP(phoneNumber, areaCode, otpValue)
|
|
4674
|
-
: yield verifyWhatsappOtpGuest(phoneNumber, areaCode, otpValue);
|
|
4675
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
4676
|
-
setOtp('');
|
|
4677
|
-
(_a = otpRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
4678
|
-
setError(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
4679
|
-
return setLoading(false);
|
|
4680
|
-
}
|
|
4681
|
-
if (!useAuthenticatedWhatsAppApis && (res === null || res === void 0 ? void 0 : res._data)) {
|
|
4682
|
-
handleAuthSuccess(res._data);
|
|
4683
|
-
}
|
|
4684
|
-
onClose === null || onClose === void 0 ? void 0 : onClose(true);
|
|
4685
|
-
}
|
|
4686
|
-
catch (e) {
|
|
4687
|
-
console.error(e);
|
|
4688
|
-
setError(getErrorTextFromCode(t, ''));
|
|
4689
|
-
}
|
|
4690
|
-
setLoading(false);
|
|
4691
|
-
});
|
|
4692
|
-
useEffect(() => {
|
|
4693
|
-
setupResendTimer();
|
|
4694
|
-
}, []);
|
|
4695
|
-
const initialAuthOtpSentRef = React__default.useRef(false);
|
|
4696
|
-
useEffect(() => {
|
|
4697
|
-
if (hidden ||
|
|
4698
|
-
!useAuthenticatedWhatsAppApis ||
|
|
4699
|
-
!phone ||
|
|
4700
|
-
initialAuthOtpSentRef.current) {
|
|
4701
|
-
return;
|
|
4702
|
-
}
|
|
4703
|
-
initialAuthOtpSentRef.current = true;
|
|
4704
|
-
sendOTPCode(false);
|
|
4705
|
-
}, [hidden, useAuthenticatedWhatsAppApis, phone]);
|
|
4706
|
-
return (React__default.createElement("form", { style: {
|
|
4707
|
-
display: hidden ? 'none' : 'block',
|
|
4708
|
-
}, onSubmit: (e) => {
|
|
4709
|
-
e.preventDefault();
|
|
4710
|
-
submitOtp(String(otp));
|
|
4711
|
-
} },
|
|
4712
|
-
React__default.createElement(Stack, { spacing: 8 },
|
|
4713
|
-
React__default.createElement(Text, { size: "s1", weight: "semiBold" }, t('ssov2.otp.phone.title')),
|
|
4714
|
-
React__default.createElement(Text, { size: "p4", sx: {
|
|
4715
|
-
b: {
|
|
4716
|
-
fontWeight: 'bold',
|
|
4717
|
-
},
|
|
4718
|
-
} },
|
|
4719
|
-
React__default.createElement("span", { dangerouslySetInnerHTML: {
|
|
4720
|
-
__html: t('ssov2.otp.phone.description', {
|
|
4721
|
-
phone,
|
|
4722
|
-
method: 'WhatsApp',
|
|
4723
|
-
}),
|
|
4724
|
-
} }))),
|
|
4725
|
-
React__default.createElement(Stack, { mt: 24, spacing: 8 },
|
|
4726
|
-
React__default.createElement(Input.Wrapper, { error: error },
|
|
4727
|
-
React__default.createElement(OTP, { ref: otpRef, value: otp, onChange: (value) => {
|
|
4728
|
-
setOtp(String(value));
|
|
4729
|
-
if (String(value).length === 6) {
|
|
4730
|
-
setTimeout(() => {
|
|
4731
|
-
var _a;
|
|
4732
|
-
(_a = submitButtonRef.current) === null || _a === void 0 ? void 0 : _a.click();
|
|
4733
|
-
}, 100);
|
|
4734
|
-
}
|
|
4735
|
-
setError('');
|
|
4736
|
-
}, otpShareProps: {
|
|
4737
|
-
'data-event-category': trackingCategory,
|
|
4738
|
-
'data-event-action': trackingAction,
|
|
4739
|
-
'data-event-label': 'Enter Code',
|
|
4740
|
-
}, placeholder: "*" })),
|
|
4741
|
-
React__default.createElement(Group, { spacing: 8, align: "center", style: {
|
|
4742
|
-
height: 40,
|
|
4743
|
-
} },
|
|
4744
|
-
React__default.createElement(Text, { size: "p4" }, t('ssov2.otp.resendQuestion')),
|
|
4745
|
-
React__default.createElement(Text, { style: {
|
|
4746
|
-
pointerEvents: resendTime > 0 ? 'none' : 'auto',
|
|
4747
|
-
cursor: resendTime > 0 ? 'not-allowed' : 'pointer',
|
|
4748
|
-
}, size: "s4", color: "blue.6", onClick: () => sendOTPCode(true), "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Resend OTP" }, t('ssov2.otp.resendText', {
|
|
4749
|
-
count: resendTime,
|
|
4750
|
-
})))),
|
|
4751
|
-
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": "Verify", ref: submitButtonRef }, t('ssov2.whatsappLogin.verifySubmit'))));
|
|
4752
|
-
};
|
|
4753
|
-
|
|
4754
|
-
const InfoIcon = () => {
|
|
4755
|
-
return (React__default.createElement("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { minWidth: '16px', position: 'relative', top: '2px' } },
|
|
4756
|
-
React__default.createElement("path", { d: "M8.00004 11.166C8.14177 11.166 8.2605 11.1181 8.35622 11.0222C8.45194 10.9264 8.4998 10.8077 8.4998 10.666V7.83265C8.4998 7.69099 8.45187 7.57225 8.356 7.47642C8.26013 7.38058 8.14133 7.33267 7.9996 7.33267C7.85787 7.33267 7.73914 7.38058 7.64342 7.47642C7.5477 7.57225 7.49984 7.69099 7.49984 7.83265V10.666C7.49984 10.8077 7.54777 10.9264 7.64364 11.0222C7.73951 11.1181 7.85831 11.166 8.00004 11.166ZM7.99982 6.19165C8.15239 6.19165 8.28027 6.14005 8.38347 6.03685C8.48667 5.93365 8.53827 5.80577 8.53827 5.6532C8.53827 5.50064 8.48667 5.37276 8.38347 5.26955C8.28027 5.16635 8.15239 5.11475 7.99982 5.11475C7.84725 5.11475 7.71937 5.16635 7.61617 5.26955C7.51297 5.37276 7.46137 5.50064 7.46137 5.6532C7.46137 5.80577 7.51297 5.93365 7.61617 6.03685C7.71937 6.14005 7.84725 6.19165 7.99982 6.19165ZM8.00094 14.3327C7.12498 14.3327 6.30163 14.1664 5.53087 13.834C4.7601 13.5015 4.08965 13.0504 3.5195 12.4805C2.94935 11.9106 2.49798 11.2404 2.16539 10.47C1.8328 9.69959 1.6665 8.8764 1.6665 8.00045C1.6665 7.12449 1.83273 6.30114 2.16517 5.53038C2.49762 4.75962 2.94878 4.08916 3.51867 3.51902C4.08857 2.94886 4.75873 2.49749 5.52915 2.1649C6.29956 1.83231 7.12275 1.66602 7.9987 1.66602C8.87466 1.66602 9.69802 1.83224 10.4688 2.16468C11.2395 2.49713 11.91 2.94829 12.4801 3.51818C13.0503 4.08808 13.5017 4.75824 13.8343 5.52867C14.1668 6.29908 14.3331 7.12226 14.3331 7.99822C14.3331 8.87417 14.1669 9.69753 13.8345 10.4683C13.502 11.239 13.0509 11.9095 12.481 12.4796C11.9111 13.0498 11.2409 13.5012 10.4705 13.8338C9.70008 14.1664 8.87689 14.3327 8.00094 14.3327ZM7.99982 13.3327C9.48871 13.3327 10.7498 12.816 11.7832 11.7827C12.8165 10.7493 13.3332 9.48822 13.3332 7.99933C13.3332 6.51044 12.8165 5.24933 11.7832 4.216C10.7498 3.18267 9.48871 2.666 7.99982 2.666C6.51093 2.666 5.24982 3.18267 4.21649 4.216C3.18315 5.24933 2.66649 6.51044 2.66649 7.99933C2.66649 9.48822 3.18315 10.7493 4.21649 11.7827C5.24982 12.816 6.51093 13.3327 7.99982 13.3327Z", fill: "#2D87F3" })));
|
|
4757
|
-
};
|
|
4758
|
-
const SSOWhatsAppPhoneVerifyScreen = ({ hidden, config, }) => {
|
|
4759
|
-
const { t } = useTranslations();
|
|
4760
|
-
const [phone, setPhone] = React__default.useState('');
|
|
4761
|
-
const [loading, setLoading] = React__default.useState(false);
|
|
4762
|
-
const [errMsg, setErrMsg] = React__default.useState('');
|
|
4763
|
-
const { locale, setTracking } = useSSOState();
|
|
4764
|
-
const { addStep, goNext } = useSSOSteps();
|
|
4765
|
-
const referrer = config === null || config === void 0 ? void 0 : config.referrer;
|
|
4766
|
-
const useAuthenticatedWhatsAppApis = !!(config === null || config === void 0 ? void 0 : config.useAuthenticatedWhatsAppApis);
|
|
4767
|
-
const trackingCategory = 'SSO - WhatsApp Login';
|
|
4768
|
-
const trackingAction = 'Enter WhatsApp phone';
|
|
4769
|
-
useEffect(() => {
|
|
4770
|
-
if (!hidden) {
|
|
4771
|
-
setErrMsg('');
|
|
4772
|
-
setTracking({
|
|
4773
|
-
category: trackingCategory,
|
|
4774
|
-
action: trackingAction,
|
|
4775
|
-
});
|
|
4776
|
-
}
|
|
4777
|
-
}, [hidden]);
|
|
4778
|
-
const onContinue = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
4779
|
-
setLoading(true);
|
|
4780
|
-
try {
|
|
4781
|
-
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
4782
|
-
if (!areaCode || !phoneNumber || !phone) {
|
|
4783
|
-
setErrMsg(t('ssov2.validate.phone.required'));
|
|
4784
|
-
return setLoading(false);
|
|
4785
|
-
}
|
|
4786
|
-
const res = useAuthenticatedWhatsAppApis
|
|
4787
|
-
? { _status: 1, code: 'Fake_Code' }
|
|
4788
|
-
: yield sendLoginOtpWhatsapp(phoneNumber, areaCode, referrer);
|
|
4789
|
-
if ((res === null || res === void 0 ? void 0 : res._status) !== 1) {
|
|
4790
|
-
setErrMsg(getErrorTextFromCode(t, res === null || res === void 0 ? void 0 : res.code));
|
|
4791
|
-
return setLoading(false);
|
|
4792
|
-
}
|
|
4793
|
-
addStep({
|
|
4794
|
-
type: SSOStepTypeType.WHATSAPP_OTP,
|
|
4795
|
-
config: Object.assign({ phone,
|
|
4796
|
-
referrer }, (useAuthenticatedWhatsAppApis
|
|
4797
|
-
? { useAuthenticatedWhatsAppApis: true }
|
|
4798
|
-
: {})),
|
|
4799
|
-
});
|
|
4800
|
-
goNext();
|
|
4801
|
-
}
|
|
4802
|
-
catch (e) {
|
|
4803
|
-
console.error(e);
|
|
4804
|
-
setErrMsg(getErrorTextFromCode(t, ''));
|
|
4805
|
-
}
|
|
4806
|
-
setLoading(false);
|
|
4807
|
-
});
|
|
4808
|
-
return (React__default.createElement("div", { style: {
|
|
4809
|
-
display: hidden ? 'none' : 'block',
|
|
4810
|
-
} },
|
|
4811
|
-
React__default.createElement(Stack, { spacing: 24 },
|
|
4812
|
-
React__default.createElement(Box, { sx: {
|
|
4813
|
-
backgroundColor: '#E3F2FF',
|
|
4814
|
-
padding: '12px 16px',
|
|
4815
|
-
borderRadius: '8px',
|
|
4816
|
-
display: 'flex',
|
|
4817
|
-
gap: '8px',
|
|
4818
|
-
} },
|
|
4819
|
-
React__default.createElement(InfoIcon, null),
|
|
4820
|
-
React__default.createElement(Text, { styles: {
|
|
4821
|
-
root: {
|
|
4822
|
-
fontSize: '13px',
|
|
4823
|
-
},
|
|
4824
|
-
}, color: "gray700" }, t('ssov2.whatsappLogin.phoneNotice'))),
|
|
4825
|
-
React__default.createElement(Stack, { spacing: 16 },
|
|
4826
|
-
React__default.createElement(Input.Wrapper, { error: errMsg },
|
|
4827
|
-
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => {
|
|
4828
|
-
setPhone(value);
|
|
4829
|
-
setErrMsg('');
|
|
4830
|
-
}, isError: !!errMsg, required: true, name: "phone", disabled: loading, placeholder: t('ssov2.setup.field.phone.label'), "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone", trackingFn: useCallback((option) => {
|
|
4831
|
-
if (!(option === null || option === void 0 ? void 0 : option.label))
|
|
4832
|
-
return;
|
|
4833
|
-
return {
|
|
4834
|
-
'data-event-action': 'Country Selection',
|
|
4835
|
-
'data-event-label': option.label,
|
|
4836
|
-
'data-event-category': trackingCategory,
|
|
4837
|
-
};
|
|
4838
|
-
}, []) })),
|
|
4839
|
-
React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onContinue, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue" }, t('ssov2.button.continue'))))));
|
|
4840
|
-
};
|
|
4841
|
-
|
|
4842
4575
|
const SSOScreenRenderer = () => {
|
|
4843
4576
|
const { steps, currentStepIndex } = useSSOSteps();
|
|
4844
4577
|
return (React__default.createElement(React__default.Fragment, null, steps.map((step, index) => {
|
|
@@ -4847,10 +4580,6 @@ const SSOScreenRenderer = () => {
|
|
|
4847
4580
|
switch (step.type) {
|
|
4848
4581
|
case SSOStepTypeType.FIRST:
|
|
4849
4582
|
return (React__default.createElement(SSOFirstScreen, { key: key, hidden: !isCurrentStep, config: step.config }));
|
|
4850
|
-
case SSOStepTypeType.WHATSAPP_PHONE_VERIFY:
|
|
4851
|
-
return (React__default.createElement(SSOWhatsAppPhoneVerifyScreen, { key: key, hidden: !isCurrentStep, index: index, config: step.config }));
|
|
4852
|
-
case SSOStepTypeType.WHATSAPP_OTP:
|
|
4853
|
-
return (React__default.createElement(SSOWhatsAppOTPScreen, { key: key, hidden: !isCurrentStep, index: index, config: step.config }));
|
|
4854
4583
|
case SSOStepTypeType.PASSWORD:
|
|
4855
4584
|
return (React__default.createElement(SSOPasswordScreen, { key: key + '-' + currentStepIndex, hidden: !isCurrentStep, index: index, config: step.config }));
|
|
4856
4585
|
case SSOStepTypeType.FORGOT_PASSWORD_PHONE:
|
|
@@ -1,32 +1,12 @@
|
|
|
1
|
-
import { a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { a as __awaiter } from './tslib.es6-2a05b926.js';
|
|
2
2
|
import { create } from 'zustand';
|
|
3
|
-
import { g as getUserInfo } from './index-
|
|
4
|
-
import {
|
|
5
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-095ae46f.js';
|
|
3
|
+
import { g as getUserInfo } from './index-5ff48170.js';
|
|
4
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-303eab27.js';
|
|
6
5
|
import { getCookie } from './miscCookieHelper.js';
|
|
7
6
|
|
|
8
|
-
const mergePhone = (phone, areaCode) => {
|
|
9
|
-
const processedAreaCode = areaCode.startsWith('+') ? areaCode : `+${areaCode}`;
|
|
10
|
-
const processedPhone = phone.startsWith('0') ? phone.slice(1) : phone;
|
|
11
|
-
return `${processedAreaCode}${processedPhone}`;
|
|
12
|
-
};
|
|
13
|
-
const splitPhone = (phone) => {
|
|
14
|
-
if (!phone)
|
|
15
|
-
return { areaCode: undefined, phoneNumber: undefined };
|
|
16
|
-
const parsedPhone = parsePhoneNumber(phone);
|
|
17
|
-
return {
|
|
18
|
-
areaCode: parsedPhone.countryCallingCode
|
|
19
|
-
? '+' + parsedPhone.countryCallingCode
|
|
20
|
-
: '',
|
|
21
|
-
phoneNumber: parsedPhone.nationalNumber || '',
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
7
|
var SSOStepTypeType;
|
|
26
8
|
(function (SSOStepTypeType) {
|
|
27
9
|
SSOStepTypeType["FIRST"] = "first";
|
|
28
|
-
SSOStepTypeType["WHATSAPP_PHONE_VERIFY"] = "whatsapp_phone_verify";
|
|
29
|
-
SSOStepTypeType["WHATSAPP_OTP"] = "whatsapp_otp";
|
|
30
10
|
SSOStepTypeType["EMAIL"] = "email";
|
|
31
11
|
SSOStepTypeType["VERIFY_PHONE"] = "verify_phone";
|
|
32
12
|
SSOStepTypeType["PASSWORD"] = "password";
|
|
@@ -157,48 +137,6 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
157
137
|
});
|
|
158
138
|
}
|
|
159
139
|
},
|
|
160
|
-
triggerWhatsappLogin: (params) => {
|
|
161
|
-
const { source, returnUrl, referrer, forceReloadOnClose, isAlreadyLogin, phone_number, area_code, } = params || {};
|
|
162
|
-
const skipPhoneStep = isAlreadyLogin && phone_number && area_code;
|
|
163
|
-
if (skipPhoneStep) {
|
|
164
|
-
const phone = mergePhone(String(phone_number), area_code);
|
|
165
|
-
useSSOSteps.setState({
|
|
166
|
-
steps: [
|
|
167
|
-
{
|
|
168
|
-
type: SSOStepTypeType.WHATSAPP_OTP,
|
|
169
|
-
config: {
|
|
170
|
-
phone,
|
|
171
|
-
referrer,
|
|
172
|
-
useAuthenticatedWhatsAppApis: true,
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
],
|
|
176
|
-
currentStepIndex: 0,
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
else {
|
|
180
|
-
useSSOSteps.setState({
|
|
181
|
-
steps: [
|
|
182
|
-
{
|
|
183
|
-
type: SSOStepTypeType.WHATSAPP_PHONE_VERIFY,
|
|
184
|
-
config: Object.assign({ referrer }, (isAlreadyLogin
|
|
185
|
-
? { useAuthenticatedWhatsAppApis: true }
|
|
186
|
-
: {})),
|
|
187
|
-
},
|
|
188
|
-
],
|
|
189
|
-
currentStepIndex: 0,
|
|
190
|
-
});
|
|
191
|
-
}
|
|
192
|
-
set({
|
|
193
|
-
isOpen: true,
|
|
194
|
-
returnUrl,
|
|
195
|
-
source,
|
|
196
|
-
overrideClose: undefined,
|
|
197
|
-
forceReloadOnClose: forceReloadOnClose || false,
|
|
198
|
-
flowData: { method: 'whatsapp', flow: 'login' },
|
|
199
|
-
userInfo: undefined,
|
|
200
|
-
});
|
|
201
|
-
},
|
|
202
140
|
triggerCareEmailPhoneVerify: (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
203
141
|
var _a, _b, _c;
|
|
204
142
|
const userInfo = yield getUserInfo();
|
|
@@ -486,4 +424,4 @@ const isLoginWithPhoneNotVerifedYet = (flowData, userInfo) => {
|
|
|
486
424
|
!(userInfo === null || userInfo === void 0 ? void 0 : userInfo.phone_verified_at));
|
|
487
425
|
};
|
|
488
426
|
|
|
489
|
-
export { IS_SSOV2_ENABLED as I, SSOStepTypeType as S, useSSOSteps as a, isPhoneNotVerifedYet as b, isLoginWithPhoneNotVerifedYet as c, isFlowFinishedSetup as d, isUserFinishedSetup as i, redirect as r,
|
|
427
|
+
export { IS_SSOV2_ENABLED as I, SSOStepTypeType as S, useSSOSteps as a, isPhoneNotVerifedYet as b, isLoginWithPhoneNotVerifedYet as c, isFlowFinishedSetup as d, isUserFinishedSetup as i, redirect as r, useSSOV2Store as u };
|