@hhgtech/hhg-components 1.29.566 → 1.29.567-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{InputDate-b8118635.js → InputDate-397c8601.js} +8 -8
- package/build/{LastPeriod-19ebeec0.js → LastPeriod-f4f7cdf5.js} +1 -1
- package/build/LeadGenCore-77a3b75a.js +5131 -0
- package/build/{MobileBottomNavigationIcon-cb65e80f.js → MobileBottomNavigationIcon-02ce1df1.js} +3 -3
- package/build/{SiteWideBanner-b573e41b.js → SiteWideBanner-4076d406.js} +13 -13
- package/build/{Spinner-17016453.js → Spinner-95a8206a.js} +1 -1
- package/build/{WhatsApp-61b6804a.js → WhatsApp-1df2f07b.js} +1 -1
- package/build/adapters.js +20 -20
- package/build/atoms.js +62 -51
- package/build/babyGrowth.js +85 -85
- package/build/cache.js +2 -2
- package/build/care.js +21 -21
- package/build/careBookingSearchBar.js +13 -13
- package/build/careBookingSearchBarV2.js +18 -18
- package/build/components/atoms/datePickerV2/Calendar.d.ts +6 -0
- package/build/components/atoms/datePickerV2/DatePickerInput.d.ts +20 -0
- package/build/components/atoms/datePickerV2/helpers.d.ts +33 -0
- package/build/components/atoms/datePickerV2/index.d.ts +27 -0
- package/build/components/atoms/datePickerV2/index.styled.d.ts +31 -0
- package/build/components/atoms/index.d.ts +1 -0
- package/build/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +2 -1
- package/build/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -0
- package/build/components/molecules/embeddedHeathToolCards/helpers.d.ts +1 -0
- package/build/components/molecules/healthTools/common.d.ts +18 -0
- package/build/components/molecules/healthTools/components/healthToolDatePicker/index.d.ts +20 -0
- package/build/components/molecules/index.d.ts +1 -1
- package/build/components.js +171 -157
- package/build/{constants-db94bbec.js → constants-a38503a0.js} +1 -1
- package/build/{constants-9c92ac99.js → constants-ed4d3dad.js} +1 -1
- package/build/constants.js +2 -2
- package/build/constantsRiskScreener.js +1 -1
- package/build/constantsSite.js +1 -1
- package/build/{core-f766176d.js → core-d085d6ea.js} +1 -1
- package/build/{dataTransform-7082636e.js → dataTransform-bef671ff.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-1288ad52.js → editor-f6696e41.js} +11 -11
- package/build/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/embeddedHeathToolCards_babyPoop.js +21 -21
- package/build/embeddedHeathToolCards_babyVaccine.js +28 -23
- package/build/embeddedHeathToolCards_bmi_bmi.js +40 -34
- package/build/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/embeddedHeathToolCards_dueDate_dueDate.js +28 -23
- package/build/embeddedHeathToolCards_helpers.js +8 -6
- package/build/embeddedHeathToolCards_ovulation_ovulation.js +28 -23
- package/build/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/embeddedHeathToolCards_targetHeartRate.js +33 -28
- package/build/esm/{InputDate-6e39208b.js → InputDate-5481c766.js} +7 -7
- package/build/esm/{LastPeriod-183056b0.js → LastPeriod-75052a7c.js} +1 -1
- package/build/esm/LeadGenCore-2127f371.js +5092 -0
- package/build/esm/{MobileBottomNavigationIcon-a2272251.js → MobileBottomNavigationIcon-46dc9509.js} +3 -3
- package/build/esm/{SiteWideBanner-50495984.js → SiteWideBanner-60f7f4d5.js} +13 -13
- package/build/esm/{Spinner-4149d426.js → Spinner-bb08205e.js} +1 -1
- package/build/esm/{WhatsApp-257bb520.js → WhatsApp-b8d3f09e.js} +1 -1
- package/build/esm/adapters.js +20 -20
- package/build/esm/atoms.js +56 -51
- package/build/esm/babyGrowth.js +85 -85
- package/build/esm/cache.js +2 -2
- package/build/esm/care.js +21 -21
- package/build/esm/careBookingSearchBar.js +13 -13
- package/build/esm/careBookingSearchBarV2.js +18 -18
- package/build/esm/components/atoms/datePickerV2/Calendar.d.ts +6 -0
- package/build/esm/components/atoms/datePickerV2/DatePickerInput.d.ts +20 -0
- package/build/esm/components/atoms/datePickerV2/helpers.d.ts +33 -0
- package/build/esm/components/atoms/datePickerV2/index.d.ts +27 -0
- package/build/esm/components/atoms/datePickerV2/index.styled.d.ts +31 -0
- package/build/esm/components/atoms/index.d.ts +1 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/bmi/bmi.d.ts +2 -1
- package/build/esm/components/molecules/embeddedHeathToolCards/due-date/dueDate.d.ts +1 -0
- package/build/esm/components/molecules/embeddedHeathToolCards/helpers.d.ts +1 -0
- package/build/esm/components/molecules/healthTools/common.d.ts +18 -0
- package/build/esm/components/molecules/healthTools/components/healthToolDatePicker/index.d.ts +20 -0
- package/build/esm/components/molecules/index.d.ts +1 -1
- package/build/esm/components.js +114 -109
- package/build/esm/{constants-02901273.js → constants-058c8ed7.js} +1 -1
- package/build/esm/{constants-e9074c24.js → constants-c6ab232c.js} +1 -1
- package/build/esm/constants.js +2 -2
- package/build/esm/constantsRiskScreener.js +1 -1
- package/build/esm/constantsSite.js +1 -1
- package/build/esm/{core-23212ef2.js → core-0c80d693.js} +1 -1
- package/build/esm/{dataTransform-778cd3ef.js → dataTransform-431891d1.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-51c6ab7f.js → editor-1cbb58e4.js} +11 -11
- package/build/esm/embeddedHeathToolCards_babyGrowth.js +24 -24
- package/build/esm/embeddedHeathToolCards_babyPoop.js +21 -21
- package/build/esm/embeddedHeathToolCards_babyVaccine.js +28 -23
- package/build/esm/embeddedHeathToolCards_bmi_bmi.js +40 -34
- package/build/esm/embeddedHeathToolCards_bmrBmr.js +28 -28
- package/build/esm/embeddedHeathToolCards_dueDate_dueDate.js +28 -23
- package/build/esm/embeddedHeathToolCards_helpers.js +2 -7
- package/build/esm/embeddedHeathToolCards_ovulation_ovulation.js +28 -23
- package/build/esm/embeddedHeathToolCards_pwg_pwg.js +27 -27
- package/build/esm/embeddedHeathToolCards_targetHeartRate.js +33 -28
- package/build/esm/footer.js +22 -22
- package/build/esm/gAssets.js +1 -1
- package/build/esm/{healthTools-6202ae58.js → healthTools-1a573942.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +49 -44
- package/build/esm/helpers-a6471d83.js +31 -0
- package/build/esm/hooks.js +14 -14
- package/build/esm/i18n.js +2 -2
- package/build/esm/i18nV2.js +2 -2
- package/build/esm/{index-f9634c10.js → index-03147090.js} +21 -23
- package/build/esm/{index-b78e3b4c.js → index-10ada16a.js} +22 -22
- package/build/esm/{index-cf5f1a4a.js → index-1460a253.js} +1 -1
- package/build/esm/{index-904ce25d.js → index-1a391ff2.js} +4 -4
- package/build/esm/{index-52f91d02.js → index-1ca19789.js} +7 -7
- package/build/esm/{index-36934467.js → index-1d90703e.js} +3 -3
- package/build/esm/{index-c258af48.js → index-1e96320a.js} +2 -2
- package/build/esm/{index-658e788d.js → index-20a46b41.js} +6 -6
- package/build/esm/index-2165908f.js +543 -0
- package/build/esm/{index-c8ecca0a.js → index-21966f8e.js} +3 -3
- package/build/esm/{index-5375eb4d.js → index-2b318cda.js} +3 -3
- package/build/esm/{index-91cb311b.js → index-2ee7e680.js} +2 -2
- package/build/esm/{index-72ef4bd7.js → index-305d81b8.js} +2 -2
- package/build/esm/{index-794f95cb.js → index-3323e2a1.js} +2 -2
- package/build/esm/{index-c917904f.js → index-352ee637.js} +3 -3
- package/build/esm/{index-f649b51f.js → index-37071ed8.js} +6 -6
- package/build/esm/{index-73384536.js → index-37211c4e.js} +31 -31
- package/build/esm/{index-9d2e6a1f.js → index-375dffbe.js} +2 -2
- package/build/esm/{index-cdf32b80.js → index-43aecfbd.js} +21 -23
- package/build/esm/{index-70718aa4.js → index-4752084c.js} +9 -9
- package/build/esm/{index-762f57c9.js → index-4968973d.js} +24 -24
- package/build/esm/{index-b9588ecd.js → index-49ae0d29.js} +5 -5
- package/build/esm/{index-1451adb4.js → index-58681afc.js} +3 -3
- package/build/esm/{index-db63bfc2.js → index-5a4be252.js} +1 -1
- package/build/esm/{index-9511e069.js → index-5b4d2f0a.js} +21 -21
- package/build/esm/{index-513bf860.js → index-5f34101d.js} +2 -2
- package/build/esm/{index-f0561210.js → index-5f8466a2.js} +1 -1
- package/build/esm/{index-d0b3a132.js → index-667379d3.js} +7 -7
- package/build/esm/{index-e7c2cf9a.js → index-6e7b8fb6.js} +2 -2
- package/build/esm/{index-1de2c3cc.js → index-6f96d8c0.js} +34 -34
- package/build/esm/{index-10f17701.js → index-74f45300.js} +1 -1
- package/build/esm/{index-351ff3dd.js → index-752a2bb8.js} +19 -19
- package/build/esm/{index-23a4bd81.js → index-7a1c7bc0.js} +15 -15
- package/build/esm/{index-6e1ffe82.js → index-7c51542a.js} +31 -31
- package/build/esm/{index-12e7060b.js → index-7c66a6cc.js} +6 -6
- package/build/esm/{index-346d44b5.js → index-7f2fcae2.js} +1 -1
- package/build/esm/{index-e98cb26c.js → index-82ebb108.js} +14 -14
- package/build/esm/{index-b9d6ae82.js → index-83d2d536.js} +16 -16
- package/build/esm/{index-50bc9f66.js → index-88bd60e5.js} +22 -24
- package/build/esm/{index-de82b7bf.js → index-8f5c5b27.js} +17 -17
- package/build/esm/{index-9cefd633.js → index-8f7915d2.js} +1 -1
- package/build/esm/{index-c93f4d6c.js → index-93f917bc.js} +13 -13
- package/build/esm/{index-8fb32013.js → index-95fbd496.js} +2 -2
- package/build/esm/{index-bfd2a793.js → index-9643f840.js} +3 -3
- package/build/esm/{index-9c66d982.js → index-982f302c.js} +2 -2
- package/build/esm/index-986b3ece.js +55 -0
- package/build/esm/{index-e37aaa01.js → index-98d4687c.js} +2 -2
- package/build/esm/{index-1184f030.js → index-99ee62b7.js} +2 -2
- package/build/esm/{index-8a909dde.js → index-9afb69b1.js} +2 -2
- package/build/esm/{index-9199f963.js → index-9b067333.js} +17 -17
- package/build/esm/{index-4e22812e.js → index-9b3f7d0c.js} +5 -5
- package/build/esm/{index-a71e34e6.js → index-9cc99840.js} +3 -3
- package/build/esm/{index-f84cb48a.js → index-a3034c8c.js} +18 -18
- package/build/esm/{index-21bd3377.js → index-a32c6d8d.js} +33 -61
- package/build/esm/{index-79d58f00.js → index-b1448016.js} +7 -7
- package/build/esm/{index-908862a2.js → index-b29d0926.js} +2 -2
- package/build/esm/{index-c4856541.js → index-b46584bd.js} +14 -14
- package/build/esm/{index-f99307d8.js → index-b6eeafd8.js} +2 -2
- package/build/esm/{index-5cf34dcc.js → index-ba528b67.js} +2 -2
- package/build/esm/{index-bedafd4d.js → index-bf573425.js} +40 -26
- package/build/esm/{index-18e92ec2.js → index-c87e1d3b.js} +16 -16
- package/build/esm/{index-671b3b3f.js → index-cc9b7f96.js} +2 -2
- package/build/esm/{index-20210b3b.js → index-d1e23dcd.js} +20 -20
- package/build/esm/{index-353fb019.js → index-d7f80b6e.js} +13 -13
- package/build/esm/{index-52a87433.js → index-da76994a.js} +12 -12
- package/build/esm/{index-c257c93a.js → index-e40d2a0a.js} +2 -2
- package/build/esm/{index-bb049c6d.js → index-e7ec4460.js} +3 -3
- package/build/esm/{index-146c3b8f.js → index-edfbe3e3.js} +29 -29
- package/build/esm/{index-9ca62747.js → index-ee0713fb.js} +5 -5
- package/build/esm/{index-f1fbfcc4.js → index-f3ec1f03.js} +1 -1
- package/build/esm/{index-e6ca570a.js → index-f75bd9d8.js} +13 -13
- package/build/esm/{index-8beb6254.js → index-fcacaa71.js} +16 -16
- package/build/esm/{index-6271239c.js → index-fcc0cebc.js} +7 -7
- package/build/esm/index.js +133 -128
- package/build/esm/{labelSorting-2876ebd7.js → labelSorting-f6295f21.js} +4 -4
- package/build/esm/lead/LeadGenCore.d.ts +75 -0
- package/build/esm/lead/LeadGenSlim.d.ts +33 -0
- package/build/esm/lead/LeadGenTranslationContext.d.ts +4 -1
- package/build/esm/lead/i18n/index.d.ts +1 -1
- package/build/esm/lead/i18n/leadTranslations.d.ts +6 -0
- package/build/esm/lead/index.d.ts +2 -40
- package/build/esm/lead.js +104 -5135
- package/build/esm/leadSlim.d.ts +1 -0
- package/build/esm/leadSlim.js +74 -0
- package/build/esm/{logoIcon-d86d3e4e.js → logoIcon-691bb5ef.js} +2 -2
- package/build/esm/mantine.js +26 -26
- package/build/esm/misc.js +17 -17
- package/build/esm/miscGetDynamicHealthTool.js +3 -3
- package/build/esm/miscGetSocialList.js +6 -6
- 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 +87 -82
- package/build/esm/moleculesArticleCard.js +5 -5
- package/build/esm/moleculesArticleCardV2.js +17 -17
- package/build/esm/navigation.js +50 -50
- package/build/esm/navigationLogoutPopup.js +10 -10
- package/build/esm/navigationProfileButton.js +26 -26
- package/build/esm/onboardingV2.js +29 -29
- package/build/esm/organisms.js +63 -63
- package/build/esm/{post-79dbcaf8.js → post-1a68c2c7.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 +4 -2
- package/build/esm/ssoV2/index.d.ts +10 -1
- package/build/esm/ssoV2/phoneVerifyConflict.d.ts +18 -0
- package/build/esm/ssoV2/ssoDismiss.d.ts +18 -0
- package/build/esm/ssoV2/ssoStateManager/store.d.ts +17 -0
- package/build/esm/ssoV2.js +155 -66
- package/build/esm/{store-e8671705.js → store-b807e0fd.js} +53 -35
- package/build/esm/subot/index.d.ts +1 -0
- package/build/esm/subot/subotInline/index.d.ts +1 -1
- package/build/esm/subot/subotInline/subotInline.config.d.ts +3 -0
- package/build/esm/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/esm/subot/subotInlineRevamp/types.d.ts +12 -0
- package/build/esm/subot/subotInlineRevamp/utils.d.ts +21 -1
- package/build/esm/subot.js +324 -141
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-ad00aaa6.js → surveyThankyouCard-e59cfa17.js} +5 -5
- package/build/esm/together/interfaces/types.d.ts +5 -0
- package/build/esm/together.js +57 -57
- package/build/esm/togetherApiUtils.js +6 -6
- package/build/esm/togetherAtoms.js +30 -30
- package/build/esm/togetherComponentGlobalContext.js +6 -6
- package/build/esm/togetherMolecules.js +51 -51
- package/build/esm/togetherMoleculesCardAuthor.js +28 -28
- package/build/esm/togetherMoleculesPostImagePreview.js +13 -13
- package/build/esm/togetherMoleculesProfileDetail.js +39 -39
- package/build/esm/togetherOrganisms.js +50 -50
- package/build/esm/togetherRichTextEditor.js +20 -20
- package/build/esm/togetherShareBox.js +12 -12
- package/build/esm/{transform-e6b60164.js → transform-7acc6abd.js} +40 -45
- package/build/esm/{translationsProvider-2251f83e.js → translationsProvider-5922e853.js} +1 -1
- package/build/esm/{treePopoverMenu-44ecfb21.js → treePopoverMenu-fb7c6e1c.js} +18 -18
- package/build/esm/{types-7eaccf70.js → types-7c9f01ea.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCartCareService-2561ea09.js → useCartCareService-24b7cba7.js} +1 -1
- package/build/esm/{useHealthToolCache-48928f66.js → useHealthToolCache-e48938a1.js} +1 -1
- package/build/esm/{usePhoneValidator-89435b8d.js → usePhoneValidator-ed7a0166.js} +4 -4
- package/build/esm/{usePlacesAutocomplete-476d8fe2.js → usePlacesAutocomplete-37bae726.js} +1 -1
- package/build/esm/{useResolvedCaptureUrls-f065f5ae.js → useResolvedCaptureUrls-550aaa14.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-e4361e09.js → utils-09f39b45.js} +2 -2
- package/build/esm/{utils-d75af55c.js → utils-3cb4f1db.js} +1 -1
- package/build/esm/{utils-f2c8141d.js → utils-3f1516aa.js} +4 -4
- package/build/esm/{utils-e6d6df3b.js → utils-dbfd1b52.js} +5 -5
- package/build/esm/{utils-4aeb889a.js → utils-e9300dc8.js} +4 -4
- package/build/esm/vaccination.js +21 -21
- package/build/footer.js +22 -22
- package/build/gAssets.js +1 -1
- package/build/{healthTools-ca7a5d43.js → healthTools-fed3efef.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +49 -44
- package/build/helpers-81fb2423.js +38 -0
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-a5a79577.js → index-007f5d82.js} +5 -5
- package/build/{index-273307da.js → index-0813b8f2.js} +33 -61
- package/build/{index-f0175001.js → index-082b3975.js} +2 -2
- package/build/{index-5dde95b0.js → index-12ef20fe.js} +2 -2
- package/build/{index-8fae2b8f.js → index-13776efe.js} +2 -2
- package/build/{index-d19a4627.js → index-14d167b4.js} +3 -3
- package/build/{index-a010b836.js → index-161f0140.js} +3 -3
- package/build/{index-b086dd2b.js → index-1df181e6.js} +14 -14
- package/build/{index-912a45b4.js → index-1faf8a38.js} +22 -24
- package/build/{index-2b99975a.js → index-2360480b.js} +13 -13
- package/build/{index-40b30c51.js → index-2723cc10.js} +1 -1
- package/build/{index-2191645e.js → index-28f1b91b.js} +24 -24
- package/build/{index-2add1c1e.js → index-2cfb5742.js} +3 -3
- package/build/{index-5a67a69a.js → index-2d2d9342.js} +21 -23
- package/build/{index-1e7bd5b2.js → index-35284c09.js} +2 -2
- package/build/{index-df9d7260.js → index-383dae53.js} +31 -31
- package/build/{index-421ae364.js → index-397b7318.js} +21 -23
- package/build/{index-742f546c.js → index-3fbcaaf5.js} +2 -2
- package/build/{index-20d85026.js → index-40afb815.js} +7 -7
- package/build/index-414ed8d8.js +61 -0
- package/build/{index-0ef6baaf.js → index-491f8081.js} +1 -1
- package/build/{index-1623c4f5.js → index-4e2aae2d.js} +2 -2
- package/build/{index-1aef3f36.js → index-4ee38cc0.js} +4 -4
- package/build/{index-18a9d890.js → index-59f5c5b7.js} +34 -34
- package/build/{index-9ed771ec.js → index-5be65b58.js} +14 -14
- package/build/{index-ee069894.js → index-5d830acf.js} +7 -7
- package/build/{index-afdd332d.js → index-613b48f3.js} +3 -3
- package/build/{index-849069c2.js → index-61986bbe.js} +13 -13
- package/build/{index-1a367679.js → index-61c767ec.js} +14 -14
- package/build/{index-177d6b04.js → index-6438d592.js} +40 -25
- package/build/{index-cf6f3108.js → index-6cc722f1.js} +1 -1
- package/build/{index-c0cfd756.js → index-75051daa.js} +12 -12
- package/build/{index-b388c399.js → index-76638714.js} +8 -8
- package/build/{index-821aaa28.js → index-7e4ae1d5.js} +1 -1
- package/build/{index-5c375c62.js → index-7ead871b.js} +16 -16
- package/build/index-80a16668.js +574 -0
- package/build/{index-87e052af.js → index-8250b5c5.js} +2 -2
- package/build/{index-12dabf7b.js → index-85eed114.js} +7 -7
- package/build/{index-2087185c.js → index-87e2ba44.js} +16 -16
- package/build/{index-771c2016.js → index-94c2f78a.js} +16 -16
- package/build/{index-f329e7f7.js → index-94c84988.js} +1 -1
- package/build/{index-01da09ab.js → index-99135b1a.js} +5 -5
- package/build/{index-1d81a574.js → index-9978b339.js} +6 -6
- package/build/{index-0997422b.js → index-9b78baac.js} +2 -2
- package/build/{index-a7298f68.js → index-a15abb1a.js} +6 -6
- package/build/{index-91d7b888.js → index-a261aaef.js} +22 -22
- package/build/{index-14a9eb86.js → index-a426faf5.js} +2 -2
- package/build/{index-9ec0cffe.js → index-a4918c9e.js} +1 -1
- package/build/{index-2f3e9748.js → index-a6a834b6.js} +2 -2
- package/build/{index-f53241d8.js → index-a75553d3.js} +21 -21
- package/build/{index-6125b213.js → index-a8c61084.js} +2 -2
- package/build/{index-43e702aa.js → index-aa3522ac.js} +5 -5
- package/build/{index-95e097b6.js → index-bb1761f4.js} +2 -2
- package/build/{index-075c7c9c.js → index-c0850e10.js} +2 -2
- package/build/{index-d32e1388.js → index-c4efa0fb.js} +3 -3
- package/build/{index-523fb746.js → index-c9c3f182.js} +2 -2
- package/build/{index-4e5bdbe6.js → index-cd2137ca.js} +15 -15
- package/build/{index-9fd967d1.js → index-cead536f.js} +2 -2
- package/build/{index-0f7ba91c.js → index-d254892d.js} +31 -31
- package/build/{index-bcbe1933.js → index-d514cd7c.js} +18 -18
- package/build/{index-bf9f580e.js → index-dce41ebb.js} +30 -30
- package/build/{index-135d8ff2.js → index-dfc8560a.js} +1 -1
- package/build/{index-597603d4.js → index-e03e97d6.js} +2 -2
- package/build/{index-32d4bfd2.js → index-e18fe0bf.js} +20 -20
- package/build/{index-e933aea7.js → index-e2239e04.js} +3 -3
- package/build/{index-b4f99103.js → index-e724ceb0.js} +17 -17
- package/build/{index-226b48ab.js → index-e873bcc0.js} +9 -9
- package/build/{index-926ac7ab.js → index-eb7a3d3f.js} +3 -3
- package/build/{index-85558956.js → index-ebb5801e.js} +7 -7
- package/build/{index-07f2c258.js → index-f484a89e.js} +17 -17
- package/build/{index-b2535512.js → index-f5bae7dd.js} +3 -3
- package/build/{index-1063ece9.js → index-fe6995a7.js} +2 -2
- package/build/{index-23abdc72.js → index-ffac1054.js} +20 -20
- package/build/index.js +234 -220
- package/build/{labelSorting-a219f387.js → labelSorting-9a03f481.js} +4 -4
- package/build/lead/LeadGenCore.d.ts +75 -0
- package/build/lead/LeadGenSlim.d.ts +33 -0
- package/build/lead/LeadGenTranslationContext.d.ts +4 -1
- package/build/lead/i18n/index.d.ts +1 -1
- package/build/lead/i18n/leadTranslations.d.ts +6 -0
- package/build/lead/index.d.ts +2 -40
- package/build/lead.js +166 -5217
- package/build/leadSlim.d.ts +1 -0
- package/build/leadSlim.js +82 -0
- package/build/{logoIcon-fc4f478b.js → logoIcon-bfd33227.js} +2 -2
- package/build/mantine.js +24 -24
- package/build/misc.js +17 -17
- package/build/miscGetDynamicHealthTool.js +3 -3
- package/build/miscGetSocialList.js +6 -6
- package/build/miscScreenSizeContext.js +1 -1
- package/build/mobileBottomNavigation.js +5 -5
- package/build/mobileBottomNavigationIcon.js +5 -5
- package/build/molecules.js +92 -84
- package/build/moleculesArticleCard.js +5 -5
- package/build/moleculesArticleCardV2.js +17 -17
- package/build/navigation.js +50 -50
- package/build/navigationLogoutPopup.js +10 -10
- package/build/navigationProfileButton.js +26 -26
- package/build/onboardingV2.js +28 -28
- package/build/organisms.js +63 -63
- package/build/{post-1cc3827e.js → post-b052490d.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 +4 -2
- package/build/ssoV2/index.d.ts +10 -1
- package/build/ssoV2/phoneVerifyConflict.d.ts +18 -0
- package/build/ssoV2/ssoDismiss.d.ts +18 -0
- package/build/ssoV2/ssoStateManager/store.d.ts +17 -0
- package/build/ssoV2.js +153 -64
- package/build/{store-d844608d.js → store-f00177a2.js} +53 -35
- package/build/subot/index.d.ts +1 -0
- package/build/subot/subotInline/index.d.ts +1 -1
- package/build/subot/subotInline/subotInline.config.d.ts +3 -0
- package/build/subot/subotInlineRevamp/context.d.ts +1 -1
- package/build/subot/subotInlineRevamp/types.d.ts +12 -0
- package/build/subot/subotInlineRevamp/utils.d.ts +21 -1
- package/build/subot.js +329 -140
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-1d8cf859.js → surveyThankyouCard-892e0a56.js} +5 -5
- package/build/together/interfaces/types.d.ts +5 -0
- package/build/together.js +57 -57
- package/build/togetherApiUtils.js +6 -6
- package/build/togetherAtoms.js +30 -30
- package/build/togetherComponentGlobalContext.js +6 -6
- package/build/togetherMolecules.js +51 -51
- package/build/togetherMoleculesCardAuthor.js +28 -28
- package/build/togetherMoleculesPostImagePreview.js +13 -13
- package/build/togetherMoleculesProfileDetail.js +39 -39
- package/build/togetherOrganisms.js +50 -50
- package/build/togetherRichTextEditor.js +20 -20
- package/build/togetherShareBox.js +12 -12
- package/build/{transform-16f1f623.js → transform-66b0fec5.js} +40 -47
- package/build/{translationsProvider-7f20f84d.js → translationsProvider-a0416eb0.js} +1 -1
- package/build/{treePopoverMenu-7d5203c4.js → treePopoverMenu-836e71ef.js} +18 -18
- package/build/{types-5a399b55.js → types-8defdc84.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCartCareService-3a922f59.js → useCartCareService-07b90a0a.js} +1 -1
- package/build/{useHealthToolCache-80115703.js → useHealthToolCache-943c5870.js} +1 -1
- package/build/{usePhoneValidator-a1c693c4.js → usePhoneValidator-8ee4076b.js} +4 -4
- package/build/{usePlacesAutocomplete-f33a811e.js → usePlacesAutocomplete-b29c04d3.js} +1 -1
- package/build/{useResolvedCaptureUrls-dd10e0e8.js → useResolvedCaptureUrls-d87898c2.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-0ee3e792.js → utils-383efe03.js} +4 -4
- package/build/{utils-b500bd16.js → utils-41840b72.js} +1 -1
- package/build/{utils-1aa31278.js → utils-8d8065cf.js} +2 -2
- package/build/{utils-ca6cc1e2.js → utils-a9f03361.js} +4 -4
- package/build/{utils-260db2f3.js → utils-ab0a0aba.js} +5 -5
- package/build/vaccination.js +21 -21
- package/package.json +5 -7
- /package/build/{BMI_BOYS.percentile.monthly-7a335916.js → BMI_BOYS.percentile.monthly-d5b25ed2.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8c4fef13.js → BMI_BOYS.percentile.weekly-2194c963.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b265c416.js → BMI_BOYS.percentile.yearly-20e6a318.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-889bc073.js → BMI_BOYS.zscore.monthly-d11450a3.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-9cbce300.js → BMI_BOYS.zscore.weekly-55bb6fc5.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-18e05e84.js → BMI_BOYS.zscore.yearly-a89701bf.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-32435a09.js → BMI_GIRLS.percentile.monthly-582b2303.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d7dc3e09.js → BMI_GIRLS.percentile.weekly-c356dd16.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-383398db.js → BMI_GIRLS.percentile.yearly-01dc5052.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1afc1815.js → BMI_GIRLS.zscore.monthly-038e5c01.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-996e85c6.js → BMI_GIRLS.zscore.weekly-c4715ae5.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-48121995.js → BMI_GIRLS.zscore.yearly-543c4b30.js} +0 -0
- /package/build/{ChevronDown-cfaa5f37.js → ChevronDown-bfa64729.js} +0 -0
- /package/build/{Google-ca3ed617.js → Google-d2dacf90.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-69c2b1b5.js → HEAD CIRCUM_BOYS.percentile.monthly-7a455df3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-845e68e8.js → HEAD CIRCUM_BOYS.percentile.weekly-f3549ff3.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-593a9857.js → HEAD CIRCUM_BOYS.percentile.yearly-a2582632.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-dd1ac392.js → HEAD CIRCUM_BOYS.zscore.monthly-1fd3f1f1.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9dd699dc.js → HEAD CIRCUM_BOYS.zscore.weekly-e8cf9d4c.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d4ebda7.js → HEAD CIRCUM_BOYS.zscore.yearly-1d8b0759.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-026b4b65.js → HEAD CIRCUM_GIRLS.percentile.monthly-bfd89c62.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-45672230.js → HEAD CIRCUM_GIRLS.percentile.weekly-9e77f8a3.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bce812ad.js → HEAD CIRCUM_GIRLS.percentile.yearly-5607748b.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-24394b6e.js → HEAD CIRCUM_GIRLS.zscore.monthly-ba03b259.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7f504018.js → HEAD CIRCUM_GIRLS.zscore.weekly-9c5751f2.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4733c33d.js → HEAD CIRCUM_GIRLS.zscore.yearly-9f8581fb.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-3d7f65c9.js → HEIGHT_BOYS.percentile.monthly-dd5b6c36.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5439e48b.js → HEIGHT_BOYS.percentile.weekly-c963498d.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c203bed3.js → HEIGHT_BOYS.percentile.yearly-71db60ad.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-8271f5c8.js → HEIGHT_BOYS.zscore.monthly-ca21ad98.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-bfba099e.js → HEIGHT_BOYS.zscore.weekly-619d75de.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-52dbe5a8.js → HEIGHT_BOYS.zscore.yearly-f0f4e7fb.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1c8181d0.js → HEIGHT_GIRLS.percentile.monthly-82c67e7c.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f079f13e.js → HEIGHT_GIRLS.percentile.weekly-d750b7c0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d266800c.js → HEIGHT_GIRLS.percentile.yearly-b2010713.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-41ca67ef.js → HEIGHT_GIRLS.zscore.monthly-809a3759.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-e48478f0.js → HEIGHT_GIRLS.zscore.weekly-d680fc04.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-793193e2.js → HEIGHT_GIRLS.zscore.yearly-d94f9914.js} +0 -0
- /package/build/{Visible-e6fd31fe.js → Visible-81451213.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-539260bf.js → WEIGHT_BOYS.percentile.monthly-26d9a614.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6399c894.js → WEIGHT_BOYS.percentile.weekly-1291f192.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0b4506a0.js → WEIGHT_BOYS.percentile.yearly-16385aa5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b02535fc.js → WEIGHT_BOYS.zscore.monthly-976d2fb5.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-6a440e5e.js → WEIGHT_BOYS.zscore.weekly-a96b3de6.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5bdd7652.js → WEIGHT_BOYS.zscore.yearly-4a747c4b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-544b48b4.js → WEIGHT_GIRLS.percentile.monthly-3f1459ad.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-2f89e0a2.js → WEIGHT_GIRLS.percentile.weekly-7161b3b3.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e1fee70f.js → WEIGHT_GIRLS.percentile.yearly-4bf3195b.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b255d997.js → WEIGHT_GIRLS.zscore.monthly-e684687d.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-5bc5ee2b.js → WEIGHT_GIRLS.zscore.weekly-c4585e17.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-969f7d88.js → WEIGHT_GIRLS.zscore.yearly-7778db33.js} +0 -0
- /package/build/{ageGenerate-70274de8.js → ageGenerate-9c076eca.js} +0 -0
- /package/build/{animation-545c3845.js → animation-d6a10c90.js} +0 -0
- /package/build/{constants-e2534f67.js → constants-4b6b5cad.js} +0 -0
- /package/build/{constants-5c34eb19.js → constants-94570c7f.js} +0 -0
- /package/build/{constants-879264ec.js → constants-bb0acb02.js} +0 -0
- /package/build/{context-1ed1d238.js → context-92b7ac0c.js} +0 -0
- /package/build/{dataTransform-ccd3d254.js → dataTransform-d851865c.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0b5b180c.js → BMI_BOYS.percentile.monthly-262afa98.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b070fd21.js → BMI_BOYS.percentile.weekly-576d761a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8f711651.js → BMI_BOYS.percentile.yearly-dca336d5.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a4e99b76.js → BMI_BOYS.zscore.monthly-c7e992db.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8ce08c86.js → BMI_BOYS.zscore.weekly-0158a1ab.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-9f487efb.js → BMI_BOYS.zscore.yearly-870ff855.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-20d86c35.js → BMI_GIRLS.percentile.monthly-e26a0420.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-be2e5522.js → BMI_GIRLS.percentile.weekly-258e8b8e.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ab0a7178.js → BMI_GIRLS.percentile.yearly-4254e4f8.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-0e994dff.js → BMI_GIRLS.zscore.monthly-67752536.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b3c834c6.js → BMI_GIRLS.zscore.weekly-60405074.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e7c1d220.js → BMI_GIRLS.zscore.yearly-42241555.js} +0 -0
- /package/build/esm/{ChevronDown-cf7a70be.js → ChevronDown-cd89130e.js} +0 -0
- /package/build/esm/{Google-6f30a87a.js → Google-e5912197.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a018ba09.js → HEAD CIRCUM_BOYS.percentile.monthly-da7e82a0.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d0888d5f.js → HEAD CIRCUM_BOYS.percentile.weekly-1897b293.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f6049e93.js → HEAD CIRCUM_BOYS.percentile.yearly-361fc2bb.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4c3676e5.js → HEAD CIRCUM_BOYS.zscore.monthly-170700c4.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8d968dc3.js → HEAD CIRCUM_BOYS.zscore.weekly-82ddcaca.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1ad17b59.js → HEAD CIRCUM_BOYS.zscore.yearly-29446f65.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-00188cf9.js → HEAD CIRCUM_GIRLS.percentile.monthly-6ac079fc.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7b9cef12.js → HEAD CIRCUM_GIRLS.percentile.weekly-da040d52.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a7534ab8.js → HEAD CIRCUM_GIRLS.percentile.yearly-16e4363b.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7a014836.js → HEAD CIRCUM_GIRLS.zscore.monthly-1b1b2e8c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7bb13a4.js → HEAD CIRCUM_GIRLS.zscore.weekly-faeb2f8d.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1c571a77.js → HEAD CIRCUM_GIRLS.zscore.yearly-e2aeca6d.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3f81f2e6.js → HEIGHT_BOYS.percentile.monthly-e6f44c7b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e1c7b47e.js → HEIGHT_BOYS.percentile.weekly-485eef27.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-32a74cc8.js → HEIGHT_BOYS.percentile.yearly-55eb392c.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-afac958e.js → HEIGHT_BOYS.zscore.monthly-e47dc6da.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b683490f.js → HEIGHT_BOYS.zscore.weekly-ff14eeec.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3bc5cfcd.js → HEIGHT_BOYS.zscore.yearly-1257d2a9.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1555c683.js → HEIGHT_GIRLS.percentile.monthly-3374a801.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ac266729.js → HEIGHT_GIRLS.percentile.weekly-07136ca4.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b2a33450.js → HEIGHT_GIRLS.percentile.yearly-d016405c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c59d7023.js → HEIGHT_GIRLS.zscore.monthly-cc18f4b0.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3bc0b400.js → HEIGHT_GIRLS.zscore.weekly-551931f8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-11ebfac2.js → HEIGHT_GIRLS.zscore.yearly-e728bd13.js} +0 -0
- /package/build/esm/{Visible-9531b61a.js → Visible-995e42c6.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a56b2d16.js → WEIGHT_BOYS.percentile.monthly-d66be6bb.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c8549ae9.js → WEIGHT_BOYS.percentile.weekly-7f424ab1.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-21b55b63.js → WEIGHT_BOYS.percentile.yearly-73859429.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f86871d6.js → WEIGHT_BOYS.zscore.monthly-47f71992.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5af8c3a2.js → WEIGHT_BOYS.zscore.weekly-43638bc0.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-86a5dc0a.js → WEIGHT_BOYS.zscore.yearly-55294f25.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a7bad001.js → WEIGHT_GIRLS.percentile.monthly-95a392f2.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-03afc028.js → WEIGHT_GIRLS.percentile.weekly-3e44632a.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-02eb5aaf.js → WEIGHT_GIRLS.percentile.yearly-99732e7c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-23b8102a.js → WEIGHT_GIRLS.zscore.monthly-7c28ac4e.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-387726b9.js → WEIGHT_GIRLS.zscore.weekly-cb0f9a64.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8e2739a7.js → WEIGHT_GIRLS.zscore.yearly-e238310e.js} +0 -0
- /package/build/esm/{ageGenerate-c1872d67.js → ageGenerate-c1c363b1.js} +0 -0
- /package/build/esm/{animation-ac253c4a.js → animation-2790b4fe.js} +0 -0
- /package/build/esm/{constants-5f6b363c.js → constants-1f65f7ef.js} +0 -0
- /package/build/esm/{constants-3d1898d5.js → constants-93f3016a.js} +0 -0
- /package/build/esm/{constants-2f160865.js → constants-fb704095.js} +0 -0
- /package/build/esm/{context-d599e7dc.js → context-ecf40da4.js} +0 -0
- /package/build/esm/{dataTransform-5a962134.js → dataTransform-68613f05.js} +0 -0
- /package/build/esm/{index-62f1463f.js → index-0cff1a1e.js} +0 -0
- /package/build/esm/{index-407dcda5.js → index-5eb29e82.js} +0 -0
- /package/build/esm/{index-53bd0bdf.js → index-5fdd2f20.js} +0 -0
- /package/build/esm/{index-d7c385e9.js → index-689c12da.js} +0 -0
- /package/build/esm/{index-47ba3e18.js → index-83c2d1ee.js} +0 -0
- /package/build/esm/{index-1c980507.js → index-877ea076.js} +0 -0
- /package/build/esm/{index-4477435c.js → index-91d53453.js} +0 -0
- /package/build/esm/{index-32875b05.js → index-c854dd10.js} +0 -0
- /package/build/esm/{index-21130e1b.js → index-f8b70f99.js} +0 -0
- /package/build/esm/{index.styles-b0090ff0.js → index.styles-a535325a.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1f1e811d.js → localizeNumberFormat-f1fb6717.js} +0 -0
- /package/build/esm/{number-107806ff.js → number-8894e65c.js} +0 -0
- /package/build/esm/{paths-1cfcec63.js → paths-10dbd4eb.js} +0 -0
- /package/build/esm/{routing-ea8d670a.js → routing-2e624a17.js} +0 -0
- /package/build/esm/{shared-b3ef7840.js → shared-44b78446.js} +0 -0
- /package/build/esm/{translationsContext-76fa891e.js → translationsContext-8df9c8dc.js} +0 -0
- /package/build/esm/{tslib.es6-f8676dd9.js → tslib.es6-45498420.js} +0 -0
- /package/build/esm/{types-5434e92d.js → types-85ce45e7.js} +0 -0
- /package/build/esm/{useImageAspectRatio-3e071148.js → useImageAspectRatio-6007719f.js} +0 -0
- /package/build/esm/{useOutsideClick-aec33dda.js → useOutsideClick-f2473cf7.js} +0 -0
- /package/build/esm/{useScrollbarSize-e34ea237.js → useScrollbarSize-94c0b85d.js} +0 -0
- /package/build/esm/{useUniqueId-700011ed.js → useUniqueId-3d63fffd.js} +0 -0
- /package/build/esm/{utils-d418c7c0.js → utils-470881a4.js} +0 -0
- /package/build/esm/{utils-835c2ec3.js → utils-b98359e5.js} +0 -0
- /package/build/{index-f52bbbfa.js → index-075da3fe.js} +0 -0
- /package/build/{index-3511d6a1.js → index-193bf832.js} +0 -0
- /package/build/{index-6668a83f.js → index-262ee0e1.js} +0 -0
- /package/build/{index-e1172b9b.js → index-3c48b84c.js} +0 -0
- /package/build/{index-11bf8414.js → index-3e1adb93.js} +0 -0
- /package/build/{index-72a354b2.js → index-7cc165f3.js} +0 -0
- /package/build/{index-688d1f65.js → index-8e89baaf.js} +0 -0
- /package/build/{index-f95654ce.js → index-8f1045ef.js} +0 -0
- /package/build/{index-524d268b.js → index-eeb0c672.js} +0 -0
- /package/build/{index.styles-0b3a8242.js → index.styles-78092dc7.js} +0 -0
- /package/build/{localizeNumberFormat-44ed977f.js → localizeNumberFormat-0fb90963.js} +0 -0
- /package/build/{number-e6c2753e.js → number-2e2f0f13.js} +0 -0
- /package/build/{paths-25e926f2.js → paths-02660123.js} +0 -0
- /package/build/{routing-12e9d94b.js → routing-74eee274.js} +0 -0
- /package/build/{shared-07989997.js → shared-c2577ee1.js} +0 -0
- /package/build/{translationsContext-3fabf462.js → translationsContext-e3345472.js} +0 -0
- /package/build/{tslib.es6-8606a9a8.js → tslib.es6-c60aa772.js} +0 -0
- /package/build/{types-0ee94296.js → types-ffccd0c4.js} +0 -0
- /package/build/{useImageAspectRatio-7b6f55e8.js → useImageAspectRatio-2033084a.js} +0 -0
- /package/build/{useOutsideClick-eacb034a.js → useOutsideClick-083df983.js} +0 -0
- /package/build/{useScrollbarSize-527836e9.js → useScrollbarSize-67577f25.js} +0 -0
- /package/build/{useUniqueId-064a28fa.js → useUniqueId-d56aa72c.js} +0 -0
- /package/build/{utils-fac8b1d4.js → utils-967402f8.js} +0 -0
- /package/build/{utils-19268855.js → utils-c7ae8544.js} +0 -0
package/build/esm/ssoV2.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { _ as __awaiter, a as __rest } from './tslib.es6-
|
|
1
|
+
import { _ as __awaiter, a as __rest } from './tslib.es6-45498420.js';
|
|
2
2
|
import React__default, { createContext, useMemo, useEffect, useRef, useImperativeHandle, useCallback, useState } from 'react';
|
|
3
3
|
import { getCookie, setCookie, deleteCookie } from './miscCookieHelper.js';
|
|
4
|
-
import { I as Input, h as ErrorBoundary, d as Checkbox, i as PhoneWithCustomCountrySelect, O as OTP, j as PasswordInput } from './index-
|
|
5
|
-
import { f as fetchSSOV2Api, b as getWebsiteId, S as SSO_V2_PATHS,
|
|
4
|
+
import { I as Input, h as ErrorBoundary, d as Checkbox, i as PhoneWithCustomCountrySelect, O as OTP, j as PasswordInput } from './index-752a2bb8.js';
|
|
5
|
+
import { f as fetchSSOV2Api, b as getWebsiteId, S as SSO_V2_PATHS, d as checkUserExist, e as fetchSSOV2ApiJson, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, u as updateUserInfo, r as resetPassword, s as setSSOCurrentLocale, i as setSSOIsMarryBaby } from './index-bf573425.js';
|
|
6
6
|
import { isProduction } from './constantsIsProduction.js';
|
|
7
7
|
import { ChevronLeft } from '@hhgtech/icons/arrow';
|
|
8
8
|
import { Close, ReplySquare } from '@hhgtech/icons/core';
|
|
9
|
-
import { L as LOCALE_SPECS, c as ZINDEX_SSO, 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 { L as LOCALE_SPECS, c as ZINDEX_SSO, S as STATIC_PAGES, Q as QUERY_HEALTH_TOOL } from './index-74f45300.js';
|
|
10
|
+
import { L as LogoIcon } from './logoIcon-691bb5ef.js';
|
|
11
|
+
import { B as Button } from './index-2b318cda.js';
|
|
12
|
+
import { M as Modal } from './index-ba528b67.js';
|
|
13
13
|
import { Stack, Flex, Box, Group, Divider } from '@mantine/core';
|
|
14
14
|
import '@mantine/dates';
|
|
15
|
-
import { L as LOCALE } from './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 { L as LOCALE } from './index-c854dd10.js';
|
|
16
|
+
import { C as CommonGAssets } from './index-5eb29e82.js';
|
|
17
|
+
import { s as showNotification } from './index-1ca19789.js';
|
|
18
|
+
import { T as Text } from './index-3323e2a1.js';
|
|
19
|
+
import './index-91d53453.js';
|
|
20
|
+
import { u as useTranslations } from './index-5a4be252.js';
|
|
21
21
|
import '@mantine/hooks';
|
|
22
|
-
import './utils-
|
|
23
|
-
import './index-
|
|
24
|
-
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, I as IS_SSOV2_ENABLED, s as splitPhone, b as isPhoneNotVerifedYet, c as isLoginWithPhoneNotVerifedYet, d as isFlowFinishedSetup, r as redirect } from './store-
|
|
25
|
-
export { u as useSSOV2Store } from './store-
|
|
26
|
-
import { I as ImageWrap } from './index-
|
|
22
|
+
import './utils-470881a4.js';
|
|
23
|
+
import './index-9cc99840.js';
|
|
24
|
+
import { S as SSOStepTypeType, a as useSSOSteps, u as useSSOV2Store, i as isUserFinishedSetup, I as IS_SSOV2_ENABLED, s as splitPhone, b as isPhoneNotVerifedYet, c as isLoginWithPhoneNotVerifedYet, d as isFlowFinishedSetup, r as redirect } from './store-b807e0fd.js';
|
|
25
|
+
export { u as useSSOV2Store } from './store-b807e0fd.js';
|
|
26
|
+
import { I as ImageWrap } from './index-cc9b7f96.js';
|
|
27
27
|
import ReCAPTCHA from 'react-google-recaptcha';
|
|
28
|
-
import { G as Google, F as Facebook } from './Google-
|
|
29
|
-
import { i as isFeaturePolicyUpdateEnabled, a as isFeatureWhatsAppEnabled, b as isFeatureZaloEnabled, c as isFeatureSMSEnabled, d as isSupportProduct } from './utils-
|
|
30
|
-
export { g as getURLwithSSOTracking } from './utils-
|
|
28
|
+
import { G as Google, F as Facebook } from './Google-e5912197.js';
|
|
29
|
+
import { i as isFeaturePolicyUpdateEnabled, a as isFeatureWhatsAppEnabled, b as isFeatureZaloEnabled, c as isFeatureSMSEnabled, d as isSupportProduct } from './utils-3f1516aa.js';
|
|
30
|
+
export { g as getURLwithSSOTracking } from './utils-3f1516aa.js';
|
|
31
31
|
import { getDomainByLocale, getDomainLocaleKey } from './constantsDomainLocales.js';
|
|
32
|
-
import { S as Spoiler } from './index-
|
|
32
|
+
import { S as Spoiler } from './index-e7ec4460.js';
|
|
33
33
|
import { theme } from './miscTheme.js';
|
|
34
34
|
import styled from '@emotion/styled';
|
|
35
|
-
import { M as MAPPED_LOCALE } from './utils-
|
|
35
|
+
import { M as MAPPED_LOCALE } from './utils-3cb4f1db.js';
|
|
36
36
|
import { useForm, yupResolver } from '@mantine/form';
|
|
37
37
|
import * as yup from 'yup';
|
|
38
38
|
import dayjs from 'dayjs';
|
|
39
|
-
import { D as DatePicker } from './index-
|
|
39
|
+
import { D as DatePicker } from './index-ee0713fb.js';
|
|
40
40
|
import '@hhgtech/icons/other';
|
|
41
41
|
import '@mantine/carousel';
|
|
42
42
|
import 'classnames';
|
|
43
43
|
import 'uuid';
|
|
44
|
-
import './useUniqueId-
|
|
44
|
+
import './useUniqueId-3d63fffd.js';
|
|
45
45
|
import './constantsSite.js';
|
|
46
46
|
import 'lodash/debounce';
|
|
47
47
|
import 'lodash/throttle';
|
|
48
48
|
import 'react-phone-number-input';
|
|
49
49
|
import 'react-phone-number-input/flags';
|
|
50
50
|
import 'vaul';
|
|
51
|
-
import './shared-
|
|
51
|
+
import './shared-44b78446.js';
|
|
52
52
|
import '@emotion/react';
|
|
53
|
-
import './routing-
|
|
53
|
+
import './routing-2e624a17.js';
|
|
54
54
|
import 'date-fns/locale';
|
|
55
55
|
import './constantsRiskScreener.js';
|
|
56
|
-
import './index.styles-
|
|
56
|
+
import './index.styles-a535325a.js';
|
|
57
57
|
import '@mantine/notifications';
|
|
58
|
-
import './translationsContext-
|
|
58
|
+
import './translationsContext-8df9c8dc.js';
|
|
59
59
|
import 'zustand';
|
|
60
|
-
import './healthTools-
|
|
60
|
+
import './healthTools-1a573942.js';
|
|
61
61
|
|
|
62
62
|
// const fakeData = {
|
|
63
63
|
const fetchFeatureFlag = (site) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -441,7 +441,7 @@ const ProgressBar = () => {
|
|
|
441
441
|
|
|
442
442
|
const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
443
443
|
const { steps, goBack, currentStepIndex } = useSSOSteps();
|
|
444
|
-
const { flowData } = useSSOV2Store();
|
|
444
|
+
const { flowData, closable, phoneVerifyConflict, allowDismissOnPhoneConflict, } = useSSOV2Store();
|
|
445
445
|
const { locale, isMarryBaby, tracking } = useSSOState();
|
|
446
446
|
const currentStep = steps[currentStepIndex];
|
|
447
447
|
const showProgressBar = isDisplayProgressBarFn(flowData, currentStep);
|
|
@@ -450,7 +450,15 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
450
450
|
((currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_OTP && steps.length > 1) ||
|
|
451
451
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.PASSWORD ||
|
|
452
452
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.EMAIL;
|
|
453
|
-
const
|
|
453
|
+
const isWhatsAppPhoneVerify = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_PHONE_VERIFY;
|
|
454
|
+
const showCarePhoneClose = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.VERIFY_PHONE &&
|
|
455
|
+
phoneVerifyConflict === 'already_used' &&
|
|
456
|
+
allowDismissOnPhoneConflict;
|
|
457
|
+
// WhatsApp X closes right away: the confirm copy is about account setup.
|
|
458
|
+
const showWhatsAppClose = !!closable && isWhatsAppPhoneVerify;
|
|
459
|
+
const showClose = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.FIRST ||
|
|
460
|
+
showWhatsAppClose ||
|
|
461
|
+
showCarePhoneClose;
|
|
454
462
|
const showLogo = (steps.length === 1 || showProgressBar) && !showBack;
|
|
455
463
|
const logoType = getSSOV2LogoType(locale, isMarryBaby);
|
|
456
464
|
const gradient = getSSOV2Gradient(isMarryBaby);
|
|
@@ -458,7 +466,6 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
458
466
|
const onCloseClick = () => {
|
|
459
467
|
setCloseConfirmOpen(true);
|
|
460
468
|
};
|
|
461
|
-
const isWhatsAppPhoneVerify = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_PHONE_VERIFY;
|
|
462
469
|
const isWhatsAppLoginFlow = (currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_PHONE_VERIFY ||
|
|
463
470
|
(currentStep === null || currentStep === void 0 ? void 0 : currentStep.type) === SSOStepTypeType.WHATSAPP_OTP;
|
|
464
471
|
const onModalRequestClose = () => {
|
|
@@ -536,7 +543,7 @@ const SSOPopupWrapper = ({ children, opened, onClose, }) => {
|
|
|
536
543
|
padding: 8,
|
|
537
544
|
background: 'white',
|
|
538
545
|
borderRadius: '100%',
|
|
539
|
-
}, onClick: onCloseClick, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Exit" },
|
|
546
|
+
}, onClick: showWhatsAppClose ? () => onClose() : onCloseClick, "data-event-category": tracking === null || tracking === void 0 ? void 0 : tracking.category, "data-event-action": tracking === null || tracking === void 0 ? void 0 : tracking.action, "data-event-label": "Exit" },
|
|
540
547
|
React__default.createElement(Close, null)))),
|
|
541
548
|
showProgressBar && React__default.createElement(ProgressBar, null),
|
|
542
549
|
React__default.createElement("div", { style: {
|
|
@@ -899,7 +906,7 @@ const loginBySocial = (token, social) => __awaiter(void 0, void 0, void 0, funct
|
|
|
899
906
|
return fetchSSOV2Api(SSO_V2_PATHS.LOGIN_BY_SOCIAL, {
|
|
900
907
|
method: 'POST',
|
|
901
908
|
body: formData,
|
|
902
|
-
});
|
|
909
|
+
}, true);
|
|
903
910
|
});
|
|
904
911
|
|
|
905
912
|
/** Guest: send or resend OTP (same endpoint). Optional referrer e.g. payment page URL. */
|
|
@@ -1249,10 +1256,11 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1249
1256
|
const [loading, setLoading] = React__default.useState(false);
|
|
1250
1257
|
// onTrigger -> handleLoginBySocial -> loginBySocial
|
|
1251
1258
|
const handleLoginBySocial = (credential, provider) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1259
|
+
var _a;
|
|
1252
1260
|
const res = yield loginBySocial(credential, provider);
|
|
1253
1261
|
if ((res === null || res === void 0 ? void 0 : res._status) === 1) {
|
|
1254
1262
|
handleAuthSuccess(res === null || res === void 0 ? void 0 : res._data);
|
|
1255
|
-
const userInfo = yield getUserInfo();
|
|
1263
|
+
const userInfo = yield getUserInfo((_a = res === null || res === void 0 ? void 0 : res._data) === null || _a === void 0 ? void 0 : _a.token);
|
|
1256
1264
|
setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
|
|
1257
1265
|
if ((userInfo === null || userInfo === void 0 ? void 0 : userInfo._status) === 1 && userInfo._data) {
|
|
1258
1266
|
useSSOV2Store.setState({
|
|
@@ -1359,7 +1367,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1359
1367
|
});
|
|
1360
1368
|
};
|
|
1361
1369
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1362
|
-
var
|
|
1370
|
+
var _b, _c;
|
|
1363
1371
|
setLoading(true);
|
|
1364
1372
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1365
1373
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -1368,8 +1376,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1368
1376
|
}
|
|
1369
1377
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1370
1378
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
1371
|
-
const provider = (
|
|
1372
|
-
if ((
|
|
1379
|
+
const provider = (_b = userExist._data) === null || _b === void 0 ? void 0 : _b.provider;
|
|
1380
|
+
if ((_c = userExist._data) === null || _c === void 0 ? void 0 : _c.is_pass) {
|
|
1373
1381
|
useSSOV2Store.setState({
|
|
1374
1382
|
flowData: {
|
|
1375
1383
|
method: 'zalo',
|
|
@@ -1422,7 +1430,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1422
1430
|
setLoading(false);
|
|
1423
1431
|
});
|
|
1424
1432
|
const onClickContinueWhatsApp = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1425
|
-
var
|
|
1433
|
+
var _d, _e;
|
|
1426
1434
|
setLoading(true);
|
|
1427
1435
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1428
1436
|
if (!areaCode || !phoneNumber || !phone || !isHaveReadAndAgreePolicy) {
|
|
@@ -1434,8 +1442,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1434
1442
|
}
|
|
1435
1443
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1436
1444
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
1437
|
-
const provider = (
|
|
1438
|
-
if ((
|
|
1445
|
+
const provider = (_d = userExist._data) === null || _d === void 0 ? void 0 : _d.provider;
|
|
1446
|
+
if ((_e = userExist._data) === null || _e === void 0 ? void 0 : _e.is_pass) {
|
|
1439
1447
|
useSSOV2Store.setState({
|
|
1440
1448
|
flowData: {
|
|
1441
1449
|
method: 'whatsapp',
|
|
@@ -1488,7 +1496,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1488
1496
|
setLoading(false);
|
|
1489
1497
|
});
|
|
1490
1498
|
const onClickContinuePhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1491
|
-
var
|
|
1499
|
+
var _f, _g;
|
|
1492
1500
|
setLoading(true);
|
|
1493
1501
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1494
1502
|
if (!areaCode || !phoneNumber || !phone || !isHaveReadAndAgreePolicy) {
|
|
@@ -1499,8 +1507,8 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1499
1507
|
}
|
|
1500
1508
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1501
1509
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
1502
|
-
const provider = (
|
|
1503
|
-
if ((
|
|
1510
|
+
const provider = (_f = userExist._data) === null || _f === void 0 ? void 0 : _f.provider;
|
|
1511
|
+
if ((_g = userExist._data) === null || _g === void 0 ? void 0 : _g.is_pass) {
|
|
1504
1512
|
useSSOV2Store.setState({
|
|
1505
1513
|
flowData: {
|
|
1506
1514
|
method: 'sms',
|
|
@@ -1554,7 +1562,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1554
1562
|
setLoading(false);
|
|
1555
1563
|
});
|
|
1556
1564
|
const onClickLoginWithPhone = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
1557
|
-
var
|
|
1565
|
+
var _h, _j;
|
|
1558
1566
|
setLoading(true);
|
|
1559
1567
|
const { areaCode, phoneNumber } = splitPhone(phone);
|
|
1560
1568
|
if (!areaCode || !phoneNumber || !phone) {
|
|
@@ -1563,7 +1571,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1563
1571
|
}
|
|
1564
1572
|
const userExist = yield checkUserExist({ phone: phoneNumber });
|
|
1565
1573
|
if ((userExist === null || userExist === void 0 ? void 0 : userExist._status) === 1) {
|
|
1566
|
-
if (!userExist._data || !((
|
|
1574
|
+
if (!userExist._data || !((_h = userExist._data) === null || _h === void 0 ? void 0 : _h.is_pass)) {
|
|
1567
1575
|
showNotification({
|
|
1568
1576
|
message: t('ssov2.first.noAccountOrPass'),
|
|
1569
1577
|
type: 'danger',
|
|
@@ -1571,7 +1579,7 @@ const SSOFirstScreen = ({ hidden, config, }) => {
|
|
|
1571
1579
|
setActiveTab('signup');
|
|
1572
1580
|
return setLoading(false);
|
|
1573
1581
|
}
|
|
1574
|
-
if ((
|
|
1582
|
+
if ((_j = userExist._data) === null || _j === void 0 ? void 0 : _j.is_pass) {
|
|
1575
1583
|
useSSOV2Store.setState({
|
|
1576
1584
|
flowData: {
|
|
1577
1585
|
method: 'phone',
|
|
@@ -2267,7 +2275,7 @@ const SSOPasswordScreen = ({ hidden, config, }) => {
|
|
|
2267
2275
|
});
|
|
2268
2276
|
const onAuthSuccess = (data) => __awaiter(void 0, void 0, void 0, function* () {
|
|
2269
2277
|
handleAuthSuccess(data);
|
|
2270
|
-
const userInfo = yield getUserInfo();
|
|
2278
|
+
const userInfo = yield getUserInfo(data === null || data === void 0 ? void 0 : data.token);
|
|
2271
2279
|
const isPhoneFlow = isPhoneFlowFn(flowData);
|
|
2272
2280
|
const isEmailFlow = isEmailFlowFn(flowData);
|
|
2273
2281
|
setUserInfo(userInfo === null || userInfo === void 0 ? void 0 : userInfo._data);
|
|
@@ -2806,8 +2814,18 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2806
2814
|
});
|
|
2807
2815
|
}
|
|
2808
2816
|
}, [hidden]);
|
|
2809
|
-
const { source } = useSSOV2Store();
|
|
2817
|
+
const { setPhoneVerifyConflict, phoneAlreadyUsedOnConflict, phoneVerifyConflict, source, returnUrl, skipNavigationOnDismiss, } = useSSOV2Store();
|
|
2818
|
+
const { onClose } = useSSOState();
|
|
2810
2819
|
const { addStep, goNext } = useSSOSteps();
|
|
2820
|
+
const setPhoneAlreadyUsedError = () => {
|
|
2821
|
+
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
2822
|
+
setPhoneVerifyConflict('already_used');
|
|
2823
|
+
phoneAlreadyUsedOnConflict === null || phoneAlreadyUsedOnConflict === void 0 ? void 0 : phoneAlreadyUsedOnConflict({
|
|
2824
|
+
phone,
|
|
2825
|
+
source,
|
|
2826
|
+
returnUrl,
|
|
2827
|
+
});
|
|
2828
|
+
};
|
|
2811
2829
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2812
2830
|
setLoading(true);
|
|
2813
2831
|
try {
|
|
@@ -2838,7 +2856,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2838
2856
|
goNext();
|
|
2839
2857
|
}
|
|
2840
2858
|
else {
|
|
2841
|
-
|
|
2859
|
+
setPhoneAlreadyUsedError();
|
|
2842
2860
|
}
|
|
2843
2861
|
}
|
|
2844
2862
|
else {
|
|
@@ -2881,7 +2899,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2881
2899
|
goNext();
|
|
2882
2900
|
}
|
|
2883
2901
|
else {
|
|
2884
|
-
|
|
2902
|
+
setPhoneAlreadyUsedError();
|
|
2885
2903
|
}
|
|
2886
2904
|
}
|
|
2887
2905
|
else {
|
|
@@ -2924,7 +2942,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2924
2942
|
goNext();
|
|
2925
2943
|
}
|
|
2926
2944
|
else {
|
|
2927
|
-
|
|
2945
|
+
setPhoneAlreadyUsedError();
|
|
2928
2946
|
}
|
|
2929
2947
|
}
|
|
2930
2948
|
else {
|
|
@@ -2949,6 +2967,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2949
2967
|
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => {
|
|
2950
2968
|
setPhone(value);
|
|
2951
2969
|
setErrMsg('');
|
|
2970
|
+
setPhoneVerifyConflict(null);
|
|
2952
2971
|
}, isError: !!errMsg, required: true, name: "phone", disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Enter Phone", trackingFn: useCallback((option) => {
|
|
2953
2972
|
if (!(option === null || option === void 0 ? void 0 : option.label))
|
|
2954
2973
|
return;
|
|
@@ -2961,7 +2980,10 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2961
2980
|
isFeatureWhatsAppEnabled && (React__default.createElement(Button, { size: "lg", variant: "primary", onClick: onClickContinueWhatsApp, loading: loading, disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with WhatsApp", leftIcon: React__default.createElement(WhatsApp, null), color: "#00B16A" }, t('ssov2.button.continueWhatsApp'))),
|
|
2962
2981
|
isFeatureZaloEnabled && (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'))),
|
|
2963
2982
|
isFeatureSMSEnabled && (React__default.createElement(Button, { size: "sm", variant: "white", onClick: onClickContinuePhone, disabled: loading, loading: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue with SMS", style: { fontWeight: 400 }, color: "#595959", leftIcon: React__default.createElement(ReplySquare, { size: 18 }) }, t('ssov2.button.continueSMS'))),
|
|
2964
|
-
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null)
|
|
2983
|
+
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null),
|
|
2984
|
+
source === 'care_onboarding' &&
|
|
2985
|
+
skipNavigationOnDismiss &&
|
|
2986
|
+
phoneVerifyConflict === 'already_used' && (React__default.createElement(Button, { size: "lg", variant: "secondary", onClick: () => onClose === null || onClose === void 0 ? void 0 : onClose(false), disabled: loading, "data-event-category": trackingCategory, "data-event-action": trackingAction, "data-event-label": "Continue after phone already used" }, t('ssov2.button.continue')))))));
|
|
2965
2987
|
};
|
|
2966
2988
|
|
|
2967
2989
|
const FemaleIcon = () => (React__default.createElement("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
@@ -3581,6 +3603,31 @@ const SSOScreenRenderer = () => {
|
|
|
3581
3603
|
})));
|
|
3582
3604
|
};
|
|
3583
3605
|
|
|
3606
|
+
const resolveSsoDismissPayload = (params) => {
|
|
3607
|
+
var _a;
|
|
3608
|
+
const { steps, currentStepIndex } = useSSOSteps.getState();
|
|
3609
|
+
const currentStepType = (_a = steps[currentStepIndex]) === null || _a === void 0 ? void 0 : _a.type;
|
|
3610
|
+
let reason = 'flow_exit';
|
|
3611
|
+
if (params.phoneVerifyConflict === 'already_used' &&
|
|
3612
|
+
params.allowDismissOnPhoneConflict) {
|
|
3613
|
+
reason = 'phone_already_used';
|
|
3614
|
+
}
|
|
3615
|
+
else if (currentStepType === SSOStepTypeType.FIRST) {
|
|
3616
|
+
reason = 'first_step_exit';
|
|
3617
|
+
}
|
|
3618
|
+
else if (params.isLoggedIn) {
|
|
3619
|
+
reason = 'logged_in_flow_exit';
|
|
3620
|
+
}
|
|
3621
|
+
return {
|
|
3622
|
+
reason,
|
|
3623
|
+
source: params.source,
|
|
3624
|
+
returnUrl: params.returnUrl,
|
|
3625
|
+
phoneVerifyConflict: params.phoneVerifyConflict,
|
|
3626
|
+
currentStepType,
|
|
3627
|
+
isLoggedIn: params.isLoggedIn,
|
|
3628
|
+
};
|
|
3629
|
+
};
|
|
3630
|
+
|
|
3584
3631
|
if (!Array.prototype.findLastIndex) {
|
|
3585
3632
|
Array.prototype.findLastIndex = function (callback, thisArg) {
|
|
3586
3633
|
for (let i = this.length - 1; i >= 0; i--) {
|
|
@@ -3595,7 +3642,7 @@ if (!String.prototype.capitalize) {
|
|
|
3595
3642
|
return this.charAt(0).toUpperCase() + this.slice(1);
|
|
3596
3643
|
};
|
|
3597
3644
|
}
|
|
3598
|
-
const SSOV2 = ({ onClose: onCloseProps, locale, isMarryBaby = false, }) => {
|
|
3645
|
+
const SSOV2 = ({ onClose: onCloseProps, onDismiss: onDismissProps, locale, isMarryBaby = false, }) => {
|
|
3599
3646
|
const { isOpen, setOpen, returnUrl, setMounted, source, overrideClose, setOnCloseProp, forceReloadOnClose, setABTestFlow, } = useSSOV2Store();
|
|
3600
3647
|
useEffect(() => {
|
|
3601
3648
|
setMounted(true);
|
|
@@ -3655,28 +3702,70 @@ const SSOV2 = ({ onClose: onCloseProps, locale, isMarryBaby = false, }) => {
|
|
|
3655
3702
|
return null;
|
|
3656
3703
|
}
|
|
3657
3704
|
const onClose = (success) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3658
|
-
var _a;
|
|
3705
|
+
var _a, _b, _c, _d, _e;
|
|
3659
3706
|
if (success && overrideClose) {
|
|
3660
3707
|
overrideClose();
|
|
3661
3708
|
return;
|
|
3662
3709
|
}
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
if (success) {
|
|
3666
|
-
hasRedirectHref = redirect(returnUrl, source, forceReloadOnClose);
|
|
3667
|
-
}
|
|
3668
|
-
else {
|
|
3710
|
+
const storeState = useSSOV2Store.getState();
|
|
3711
|
+
if (!success) {
|
|
3669
3712
|
const userInfo = yield getUserInfo();
|
|
3670
|
-
|
|
3671
|
-
|
|
3713
|
+
const isLoggedIn = !!((_a = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _a === void 0 ? void 0 : _a.id);
|
|
3714
|
+
const dismissPayload = resolveSsoDismissPayload({
|
|
3715
|
+
source: storeState.source,
|
|
3716
|
+
returnUrl: storeState.returnUrl,
|
|
3717
|
+
phoneVerifyConflict: storeState.phoneVerifyConflict,
|
|
3718
|
+
allowDismissOnPhoneConflict: storeState.allowDismissOnPhoneConflict,
|
|
3719
|
+
isLoggedIn,
|
|
3720
|
+
});
|
|
3721
|
+
const phoneConflictStayOnPage = storeState.phoneVerifyConflict === 'already_used' &&
|
|
3722
|
+
(storeState.allowDismissOnPhoneConflict ||
|
|
3723
|
+
storeState.skipNavigationOnDismiss);
|
|
3724
|
+
if (dismissPayload.reason === 'phone_already_used' ||
|
|
3725
|
+
phoneConflictStayOnPage) {
|
|
3726
|
+
(_c = (_b = storeState.phoneVerifyHostHandlers) === null || _b === void 0 ? void 0 : _b.onDismissWithPhoneConflict) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
3727
|
+
storeState.setPhoneVerifyConflict(null);
|
|
3728
|
+
onDismissProps === null || onDismissProps === void 0 ? void 0 : onDismissProps(dismissPayload);
|
|
3729
|
+
setOpen(false);
|
|
3730
|
+
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3731
|
+
return;
|
|
3732
|
+
}
|
|
3733
|
+
onDismissProps === null || onDismissProps === void 0 ? void 0 : onDismissProps(dismissPayload);
|
|
3734
|
+
const deferDismissNavigationToHost = storeState.skipNavigationOnDismiss &&
|
|
3735
|
+
dismissPayload.reason === 'first_step_exit' &&
|
|
3736
|
+
!isLoggedIn;
|
|
3737
|
+
if (deferDismissNavigationToHost) {
|
|
3738
|
+
setOpen(false);
|
|
3739
|
+
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3740
|
+
return;
|
|
3741
|
+
}
|
|
3742
|
+
setOpen(false);
|
|
3743
|
+
const skipNavigation = storeState.skipNavigationOnDismiss ||
|
|
3744
|
+
dismissPayload.reason === 'first_step_exit';
|
|
3745
|
+
let hasRedirectHref = false;
|
|
3746
|
+
if (!isLoggedIn && storeState.dismissUrl !== undefined) {
|
|
3747
|
+
hasRedirectHref = redirect(storeState.dismissUrl !== ''
|
|
3748
|
+
? storeState.dismissUrl
|
|
3749
|
+
: storeState.returnUrl, storeState.source, false);
|
|
3750
|
+
}
|
|
3751
|
+
else if (!skipNavigation) {
|
|
3752
|
+
if (isLoggedIn) {
|
|
3753
|
+
hasRedirectHref = redirect(returnUrl, source, forceReloadOnClose);
|
|
3754
|
+
}
|
|
3755
|
+
else if (forceReloadOnClose) {
|
|
3672
3756
|
window.location.reload();
|
|
3673
3757
|
hasRedirectHref = true;
|
|
3674
3758
|
}
|
|
3675
3759
|
}
|
|
3676
|
-
|
|
3677
|
-
|
|
3760
|
+
if (!hasRedirectHref) {
|
|
3761
|
+
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3678
3762
|
}
|
|
3763
|
+
return;
|
|
3679
3764
|
}
|
|
3765
|
+
setOpen(false);
|
|
3766
|
+
let hasRedirectHref = false;
|
|
3767
|
+
(_e = (_d = useSSOV2Store.getState().phoneVerifyHostHandlers) === null || _d === void 0 ? void 0 : _d.onAuthSuccess) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
3768
|
+
hasRedirectHref = redirect(returnUrl, source, forceReloadOnClose);
|
|
3680
3769
|
if (!hasRedirectHref) {
|
|
3681
3770
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3682
3771
|
}
|