@hhgtech/hhg-components 1.29.566 → 1.29.567
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-ce642929.js} +8 -8
- package/build/{LastPeriod-19ebeec0.js → LastPeriod-2f884ff8.js} +1 -1
- package/build/{MobileBottomNavigationIcon-cb65e80f.js → MobileBottomNavigationIcon-cb477cea.js} +3 -3
- package/build/{SiteWideBanner-b573e41b.js → SiteWideBanner-a63a95f8.js} +13 -13
- package/build/{Spinner-17016453.js → Spinner-e504eb5a.js} +1 -1
- package/build/{WhatsApp-61b6804a.js → WhatsApp-93d0b909.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-7f5807e2.js} +1 -1
- package/build/{constants-9c92ac99.js → constants-b720b752.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-a5720d21.js} +1 -1
- package/build/{dataTransform-7082636e.js → dataTransform-4c9c49d9.js} +1 -1
- package/build/ecom.js +4 -4
- package/build/{editor-1288ad52.js → editor-d5cfbb0d.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-dc285ffa.js} +7 -7
- package/build/esm/{LastPeriod-183056b0.js → LastPeriod-aad684c6.js} +1 -1
- package/build/esm/{MobileBottomNavigationIcon-a2272251.js → MobileBottomNavigationIcon-193b1b7c.js} +3 -3
- package/build/esm/{SiteWideBanner-50495984.js → SiteWideBanner-ab1c0a3d.js} +13 -13
- package/build/esm/{Spinner-4149d426.js → Spinner-e71e2edb.js} +1 -1
- package/build/esm/{WhatsApp-257bb520.js → WhatsApp-f65e14ce.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-e9074c24.js → constants-61c57915.js} +1 -1
- package/build/esm/{constants-02901273.js → constants-f82bb245.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-dc1d2092.js} +1 -1
- package/build/esm/{dataTransform-778cd3ef.js → dataTransform-24c31287.js} +1 -1
- package/build/esm/ecom.js +4 -4
- package/build/esm/{editor-51c6ab7f.js → editor-57dce00b.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-c3f9d3d6.js} +1 -1
- package/build/esm/healthToolsCardWrapper.js +19 -19
- package/build/esm/healthToolsForm.js +49 -44
- package/build/esm/helpers-087465a3.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-021b4a79.js +543 -0
- package/build/esm/{index-1184f030.js → index-03803c9c.js} +2 -2
- package/build/esm/{index-f649b51f.js → index-0405f798.js} +6 -6
- package/build/esm/{index-8fb32013.js → index-051a3eb6.js} +2 -2
- package/build/esm/{index-52f91d02.js → index-070e470e.js} +7 -7
- package/build/esm/{index-e7c2cf9a.js → index-0712150e.js} +2 -2
- package/build/esm/{index-b9d6ae82.js → index-077eb3ee.js} +16 -16
- package/build/esm/{index-21bd3377.js → index-0bbeb90e.js} +33 -61
- package/build/esm/{index-72ef4bd7.js → index-0d085a51.js} +2 -2
- package/build/esm/{index-4e22812e.js → index-1054054a.js} +5 -5
- package/build/esm/{index-23a4bd81.js → index-15fa5512.js} +15 -15
- package/build/esm/{index-5375eb4d.js → index-1cff3352.js} +3 -3
- package/build/esm/{index-9cefd633.js → index-1d110e79.js} +1 -1
- package/build/esm/{index-18e92ec2.js → index-1e89dafe.js} +16 -16
- package/build/esm/{index-d0b3a132.js → index-2082a0cc.js} +7 -7
- package/build/esm/{index-f9634c10.js → index-21fef49e.js} +21 -23
- package/build/esm/{index-c257c93a.js → index-263dfb85.js} +2 -2
- package/build/esm/{index-52a87433.js → index-28469893.js} +12 -12
- package/build/esm/{index-5cf34dcc.js → index-2ba400f4.js} +2 -2
- package/build/esm/{index-1451adb4.js → index-2c3c424a.js} +3 -3
- package/build/esm/{index-e98cb26c.js → index-41c94113.js} +14 -14
- package/build/esm/{index-c258af48.js → index-4292a415.js} +2 -2
- package/build/esm/index-498f7878.js +55 -0
- package/build/esm/{index-9ca62747.js → index-499664bd.js} +5 -5
- package/build/esm/{index-bb049c6d.js → index-4a443d6f.js} +3 -3
- package/build/esm/{index-73384536.js → index-4b686d89.js} +31 -31
- package/build/esm/{index-658e788d.js → index-4bdc411f.js} +6 -6
- package/build/esm/{index-c4856541.js → index-4eb1e6c1.js} +14 -14
- package/build/esm/{index-908862a2.js → index-508e1911.js} +2 -2
- package/build/esm/{index-6271239c.js → index-52eac506.js} +7 -7
- package/build/esm/{index-f99307d8.js → index-58d8972a.js} +2 -2
- package/build/esm/{index-671b3b3f.js → index-615b60e4.js} +2 -2
- package/build/esm/{index-6e1ffe82.js → index-6af901ae.js} +31 -31
- package/build/esm/{index-c8ecca0a.js → index-71edf90f.js} +3 -3
- package/build/esm/{index-762f57c9.js → index-7e3781a4.js} +24 -24
- package/build/esm/{index-a71e34e6.js → index-7f80ae7d.js} +3 -3
- package/build/esm/{index-cdf32b80.js → index-8c3d307b.js} +21 -23
- package/build/esm/{index-9d2e6a1f.js → index-8e36255a.js} +2 -2
- package/build/esm/{index-12e7060b.js → index-940a863b.js} +6 -6
- package/build/esm/{index-70718aa4.js → index-94295267.js} +9 -9
- package/build/esm/{index-de82b7bf.js → index-96f3b73c.js} +17 -17
- package/build/esm/{index-f1fbfcc4.js → index-9a32267c.js} +1 -1
- package/build/esm/{index-cf5f1a4a.js → index-9e788d03.js} +1 -1
- package/build/esm/{index-351ff3dd.js → index-9f72c82e.js} +19 -19
- package/build/esm/{index-10f17701.js → index-a24345a9.js} +1 -1
- package/build/esm/{index-f0561210.js → index-a25a31a8.js} +1 -1
- package/build/esm/{index-50bc9f66.js → index-a6725306.js} +22 -24
- package/build/esm/{index-bfd2a793.js → index-aa9389fe.js} +3 -3
- package/build/esm/{index-79d58f00.js → index-ae563661.js} +7 -7
- package/build/esm/{index-c917904f.js → index-affe71d2.js} +3 -3
- package/build/esm/{index-9c66d982.js → index-b1a85df7.js} +2 -2
- package/build/esm/{index-bedafd4d.js → index-b6636fd0.js} +4 -4
- package/build/esm/{index-8beb6254.js → index-b68268ce.js} +16 -16
- package/build/esm/{index-146c3b8f.js → index-bb169580.js} +29 -29
- package/build/esm/{index-c93f4d6c.js → index-bba461a8.js} +13 -13
- package/build/esm/{index-9511e069.js → index-bca3ac36.js} +21 -21
- package/build/esm/{index-e37aaa01.js → index-c021d193.js} +2 -2
- package/build/esm/{index-db63bfc2.js → index-c5e9054e.js} +1 -1
- package/build/esm/{index-e6ca570a.js → index-cb3a0729.js} +13 -13
- package/build/esm/{index-794f95cb.js → index-cf4e1e30.js} +2 -2
- package/build/esm/{index-b78e3b4c.js → index-d322205c.js} +22 -22
- package/build/esm/{index-346d44b5.js → index-d4383f5a.js} +1 -1
- package/build/esm/{index-f84cb48a.js → index-ddda453a.js} +18 -18
- package/build/esm/{index-904ce25d.js → index-e3a24c70.js} +4 -4
- package/build/esm/{index-20210b3b.js → index-eaad9866.js} +20 -20
- package/build/esm/{index-353fb019.js → index-ec6f9262.js} +13 -13
- package/build/esm/{index-91cb311b.js → index-ed3c7e95.js} +2 -2
- package/build/esm/{index-513bf860.js → index-ef0cf068.js} +2 -2
- package/build/esm/{index-1de2c3cc.js → index-efbc6378.js} +34 -34
- package/build/esm/{index-36934467.js → index-f2a1c879.js} +3 -3
- package/build/esm/{index-8a909dde.js → index-f92ec463.js} +2 -2
- package/build/esm/{index-9199f963.js → index-f9b01762.js} +17 -17
- package/build/esm/{index-b9588ecd.js → index-fc2b9883.js} +5 -5
- package/build/esm/index.js +133 -128
- package/build/esm/{labelSorting-2876ebd7.js → labelSorting-73742ed7.js} +4 -4
- package/build/esm/lead.js +36 -36
- package/build/esm/{logoIcon-d86d3e4e.js → logoIcon-6a4cb7fc.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-50cba4fb.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/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 +139 -51
- package/build/esm/{store-e8671705.js → store-08b33280.js} +52 -35
- package/build/esm/subot/subotInlineRevamp/utils.d.ts +18 -0
- package/build/esm/subot.js +277 -131
- package/build/esm/surveyOrPremiumBanner.js +33 -33
- package/build/esm/surveyQuestionCard.js +11 -11
- package/build/esm/{surveyThankyouCard-ad00aaa6.js → surveyThankyouCard-03fe03b7.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-09fb7fb3.js} +40 -45
- package/build/esm/{translationsProvider-2251f83e.js → translationsProvider-edda5721.js} +1 -1
- package/build/esm/{treePopoverMenu-44ecfb21.js → treePopoverMenu-e908b23f.js} +18 -18
- package/build/esm/{types-7eaccf70.js → types-4320e1c4.js} +1 -1
- package/build/esm/types.js +1 -1
- package/build/esm/{useCartCareService-2561ea09.js → useCartCareService-8a6d43f2.js} +1 -1
- package/build/esm/{useHealthToolCache-48928f66.js → useHealthToolCache-4f4b8eaf.js} +1 -1
- package/build/esm/{usePhoneValidator-89435b8d.js → usePhoneValidator-787b3dda.js} +4 -4
- package/build/esm/{usePlacesAutocomplete-476d8fe2.js → usePlacesAutocomplete-a4fd7c40.js} +1 -1
- package/build/esm/{useResolvedCaptureUrls-f065f5ae.js → useResolvedCaptureUrls-fd848e28.js} +1 -1
- package/build/esm/useTogetherAuthRequiredAction.js +9 -9
- package/build/esm/{utils-e4361e09.js → utils-97217c90.js} +2 -2
- package/build/esm/{utils-e6d6df3b.js → utils-9e796ea9.js} +5 -5
- package/build/esm/{utils-d75af55c.js → utils-af8986d8.js} +1 -1
- package/build/esm/{utils-f2c8141d.js → utils-b4ae6998.js} +4 -4
- package/build/esm/{utils-4aeb889a.js → utils-c42eab87.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-ba259239.js} +1 -1
- package/build/healthToolsCardWrapper.js +19 -19
- package/build/healthToolsForm.js +49 -44
- package/build/helpers-8006e1ea.js +38 -0
- package/build/hooks.js +14 -14
- package/build/i18n.js +2 -2
- package/build/i18nV2.js +1 -1
- package/build/{index-9ec0cffe.js → index-015e0538.js} +1 -1
- package/build/{index-523fb746.js → index-0186712b.js} +2 -2
- package/build/{index-f329e7f7.js → index-04a5b049.js} +1 -1
- package/build/{index-177d6b04.js → index-04bfce8d.js} +4 -4
- package/build/index-05e1b90b.js +61 -0
- package/build/{index-b4f99103.js → index-085f73be.js} +17 -17
- package/build/{index-01da09ab.js → index-08621352.js} +5 -5
- package/build/{index-1a367679.js → index-09c0dcd5.js} +14 -14
- package/build/{index-2add1c1e.js → index-09d57afd.js} +3 -3
- package/build/{index-18a9d890.js → index-10677690.js} +34 -34
- package/build/{index-1063ece9.js → index-124b7935.js} +2 -2
- package/build/{index-bcbe1933.js → index-14ac68a9.js} +18 -18
- package/build/{index-b086dd2b.js → index-1802e810.js} +14 -14
- package/build/{index-e933aea7.js → index-1eb75bba.js} +3 -3
- package/build/{index-d32e1388.js → index-22700229.js} +3 -3
- package/build/{index-91d7b888.js → index-23a520ac.js} +22 -22
- package/build/{index-742f546c.js → index-289fa70e.js} +2 -2
- package/build/{index-6125b213.js → index-2ae99769.js} +2 -2
- package/build/{index-5dde95b0.js → index-3685fe0f.js} +2 -2
- package/build/{index-2087185c.js → index-378b92be.js} +16 -16
- package/build/{index-a010b836.js → index-43218f34.js} +3 -3
- package/build/{index-a5a79577.js → index-4c18c21d.js} +5 -5
- package/build/{index-771c2016.js → index-4cf8f64c.js} +16 -16
- package/build/{index-c0cfd756.js → index-503b0b29.js} +12 -12
- package/build/{index-a7298f68.js → index-5426a65b.js} +6 -6
- package/build/{index-40b30c51.js → index-5df017e0.js} +1 -1
- package/build/{index-273307da.js → index-605a1ab2.js} +33 -61
- package/build/{index-f53241d8.js → index-61785cf1.js} +21 -21
- package/build/{index-0ef6baaf.js → index-620439c1.js} +1 -1
- package/build/{index-1aef3f36.js → index-6f0eb022.js} +4 -4
- package/build/{index-43e702aa.js → index-7486130e.js} +5 -5
- package/build/{index-07f2c258.js → index-757232ea.js} +17 -17
- package/build/{index-d19a4627.js → index-7d030dc8.js} +3 -3
- package/build/{index-95e097b6.js → index-7f90707b.js} +2 -2
- package/build/{index-1e7bd5b2.js → index-821ab617.js} +2 -2
- package/build/{index-f0175001.js → index-83144e6b.js} +2 -2
- package/build/{index-9fd967d1.js → index-87eefd6b.js} +2 -2
- package/build/{index-14a9eb86.js → index-8bb304f8.js} +2 -2
- package/build/{index-075c7c9c.js → index-8c13bedf.js} +2 -2
- package/build/{index-b388c399.js → index-8c774ae5.js} +8 -8
- package/build/{index-9ed771ec.js → index-8d7dd2eb.js} +14 -14
- package/build/{index-821aaa28.js → index-8db9eaf5.js} +1 -1
- package/build/{index-0f7ba91c.js → index-8f051e91.js} +31 -31
- package/build/{index-8fae2b8f.js → index-902f7c79.js} +2 -2
- package/build/{index-0997422b.js → index-9226664c.js} +2 -2
- package/build/{index-5a67a69a.js → index-9956588d.js} +21 -23
- package/build/{index-85558956.js → index-99947f60.js} +7 -7
- package/build/{index-32d4bfd2.js → index-9a96b2b9.js} +20 -20
- package/build/{index-926ac7ab.js → index-a2a1b7dc.js} +3 -3
- package/build/{index-849069c2.js → index-a2c3040c.js} +13 -13
- package/build/{index-2f3e9748.js → index-a5893adc.js} +2 -2
- package/build/{index-2b99975a.js → index-ab73171c.js} +13 -13
- package/build/{index-4e5bdbe6.js → index-afa28e59.js} +15 -15
- package/build/{index-bf9f580e.js → index-b142d204.js} +30 -30
- package/build/{index-5c375c62.js → index-b44e18be.js} +16 -16
- package/build/{index-2191645e.js → index-bcd14e93.js} +24 -24
- package/build/{index-23abdc72.js → index-c17b46f3.js} +20 -20
- package/build/{index-597603d4.js → index-c237514e.js} +2 -2
- package/build/{index-ee069894.js → index-c42119e3.js} +7 -7
- package/build/{index-1623c4f5.js → index-c5d21800.js} +2 -2
- package/build/{index-226b48ab.js → index-c8708758.js} +9 -9
- package/build/{index-df9d7260.js → index-cc74bc29.js} +31 -31
- package/build/{index-1d81a574.js → index-cd04169d.js} +6 -6
- package/build/{index-12dabf7b.js → index-da06bd6c.js} +7 -7
- package/build/{index-87e052af.js → index-db11d386.js} +2 -2
- package/build/{index-20d85026.js → index-dcc64527.js} +7 -7
- package/build/{index-cf6f3108.js → index-e29a8657.js} +1 -1
- package/build/{index-b2535512.js → index-e62e9102.js} +3 -3
- package/build/index-e656519f.js +574 -0
- package/build/{index-135d8ff2.js → index-f2dd58a8.js} +1 -1
- package/build/{index-912a45b4.js → index-f5560406.js} +22 -24
- package/build/{index-afdd332d.js → index-ff5477b2.js} +3 -3
- package/build/{index-421ae364.js → index-ffc49c9c.js} +21 -23
- package/build/index.js +234 -220
- package/build/{labelSorting-a219f387.js → labelSorting-ce7d6324.js} +4 -4
- package/build/lead.js +36 -36
- package/build/{logoIcon-fc4f478b.js → logoIcon-a19bc31e.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-5629f9ee.js} +2 -2
- package/build/profileNavigation.js +19 -19
- package/build/progressBar.js +1 -1
- package/build/pwg.js +22 -22
- 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 +137 -49
- package/build/{store-d844608d.js → store-be38b7d9.js} +52 -35
- package/build/subot/subotInlineRevamp/utils.d.ts +18 -0
- package/build/subot.js +282 -130
- package/build/surveyOrPremiumBanner.js +33 -33
- package/build/surveyQuestionCard.js +11 -11
- package/build/{surveyThankyouCard-1d8cf859.js → surveyThankyouCard-752fac3f.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-2597e86b.js} +40 -47
- package/build/{translationsProvider-7f20f84d.js → translationsProvider-5b549dc1.js} +1 -1
- package/build/{treePopoverMenu-7d5203c4.js → treePopoverMenu-21db7598.js} +18 -18
- package/build/{types-5a399b55.js → types-8b0bbb32.js} +1 -1
- package/build/types.js +1 -1
- package/build/{useCartCareService-3a922f59.js → useCartCareService-ace12c1c.js} +1 -1
- package/build/{useHealthToolCache-80115703.js → useHealthToolCache-1ca665ec.js} +1 -1
- package/build/{usePhoneValidator-a1c693c4.js → usePhoneValidator-bd409a80.js} +4 -4
- package/build/{usePlacesAutocomplete-f33a811e.js → usePlacesAutocomplete-b91e15d0.js} +1 -1
- package/build/{useResolvedCaptureUrls-dd10e0e8.js → useResolvedCaptureUrls-f621581a.js} +1 -1
- package/build/useTogetherAuthRequiredAction.js +9 -9
- package/build/{utils-1aa31278.js → utils-315f1e3e.js} +2 -2
- package/build/{utils-b500bd16.js → utils-3b168b50.js} +1 -1
- package/build/{utils-0ee3e792.js → utils-4d355000.js} +4 -4
- package/build/{utils-260db2f3.js → utils-c66017ae.js} +5 -5
- package/build/{utils-ca6cc1e2.js → utils-e3f33c1d.js} +4 -4
- package/build/vaccination.js +21 -21
- package/package.json +4 -2
- /package/build/{BMI_BOYS.percentile.monthly-7a335916.js → BMI_BOYS.percentile.monthly-030e5efa.js} +0 -0
- /package/build/{BMI_BOYS.percentile.weekly-8c4fef13.js → BMI_BOYS.percentile.weekly-d4292732.js} +0 -0
- /package/build/{BMI_BOYS.percentile.yearly-b265c416.js → BMI_BOYS.percentile.yearly-d78d7e2d.js} +0 -0
- /package/build/{BMI_BOYS.zscore.monthly-889bc073.js → BMI_BOYS.zscore.monthly-c578afc2.js} +0 -0
- /package/build/{BMI_BOYS.zscore.weekly-9cbce300.js → BMI_BOYS.zscore.weekly-2e1bc3b4.js} +0 -0
- /package/build/{BMI_BOYS.zscore.yearly-18e05e84.js → BMI_BOYS.zscore.yearly-1df2d57a.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.monthly-32435a09.js → BMI_GIRLS.percentile.monthly-c0842f95.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.weekly-d7dc3e09.js → BMI_GIRLS.percentile.weekly-3819f1ca.js} +0 -0
- /package/build/{BMI_GIRLS.percentile.yearly-383398db.js → BMI_GIRLS.percentile.yearly-abdefba2.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.monthly-1afc1815.js → BMI_GIRLS.zscore.monthly-332faeae.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.weekly-996e85c6.js → BMI_GIRLS.zscore.weekly-5e1f5133.js} +0 -0
- /package/build/{BMI_GIRLS.zscore.yearly-48121995.js → BMI_GIRLS.zscore.yearly-73035b4c.js} +0 -0
- /package/build/{ChevronDown-cfaa5f37.js → ChevronDown-e31955ed.js} +0 -0
- /package/build/{Google-ca3ed617.js → Google-74be780a.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.monthly-69c2b1b5.js → HEAD CIRCUM_BOYS.percentile.monthly-9cda4ba0.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.weekly-845e68e8.js → HEAD CIRCUM_BOYS.percentile.weekly-3cb0e6b4.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.percentile.yearly-593a9857.js → HEAD CIRCUM_BOYS.percentile.yearly-eab052ff.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.monthly-dd1ac392.js → HEAD CIRCUM_BOYS.zscore.monthly-dd5c265d.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.weekly-9dd699dc.js → HEAD CIRCUM_BOYS.zscore.weekly-ff968578.js} +0 -0
- /package/build/{HEAD CIRCUM_BOYS.zscore.yearly-0d4ebda7.js → HEAD CIRCUM_BOYS.zscore.yearly-2d0cfe7f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.monthly-026b4b65.js → HEAD CIRCUM_GIRLS.percentile.monthly-cecae31f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.weekly-45672230.js → HEAD CIRCUM_GIRLS.percentile.weekly-1cb4370f.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.percentile.yearly-bce812ad.js → HEAD CIRCUM_GIRLS.percentile.yearly-fc8a479c.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.monthly-24394b6e.js → HEAD CIRCUM_GIRLS.zscore.monthly-2e3339df.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.weekly-7f504018.js → HEAD CIRCUM_GIRLS.zscore.weekly-bf892c08.js} +0 -0
- /package/build/{HEAD CIRCUM_GIRLS.zscore.yearly-4733c33d.js → HEAD CIRCUM_GIRLS.zscore.yearly-52c32e02.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.monthly-3d7f65c9.js → HEIGHT_BOYS.percentile.monthly-43bc9888.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.weekly-5439e48b.js → HEIGHT_BOYS.percentile.weekly-5f91ec5f.js} +0 -0
- /package/build/{HEIGHT_BOYS.percentile.yearly-c203bed3.js → HEIGHT_BOYS.percentile.yearly-85934dae.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.monthly-8271f5c8.js → HEIGHT_BOYS.zscore.monthly-83d4f853.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.weekly-bfba099e.js → HEIGHT_BOYS.zscore.weekly-12b7a250.js} +0 -0
- /package/build/{HEIGHT_BOYS.zscore.yearly-52dbe5a8.js → HEIGHT_BOYS.zscore.yearly-c8c025f6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.monthly-1c8181d0.js → HEIGHT_GIRLS.percentile.monthly-c0a0acf0.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.weekly-f079f13e.js → HEIGHT_GIRLS.percentile.weekly-93c21d04.js} +0 -0
- /package/build/{HEIGHT_GIRLS.percentile.yearly-d266800c.js → HEIGHT_GIRLS.percentile.yearly-df117701.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.monthly-41ca67ef.js → HEIGHT_GIRLS.zscore.monthly-681cee8a.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.weekly-e48478f0.js → HEIGHT_GIRLS.zscore.weekly-894c07d6.js} +0 -0
- /package/build/{HEIGHT_GIRLS.zscore.yearly-793193e2.js → HEIGHT_GIRLS.zscore.yearly-17d1c8d6.js} +0 -0
- /package/build/{Visible-e6fd31fe.js → Visible-240f2ac6.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.monthly-539260bf.js → WEIGHT_BOYS.percentile.monthly-52c3b359.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.weekly-6399c894.js → WEIGHT_BOYS.percentile.weekly-67558d74.js} +0 -0
- /package/build/{WEIGHT_BOYS.percentile.yearly-0b4506a0.js → WEIGHT_BOYS.percentile.yearly-01bb994b.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.monthly-b02535fc.js → WEIGHT_BOYS.zscore.monthly-8979c242.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.weekly-6a440e5e.js → WEIGHT_BOYS.zscore.weekly-be17b4b9.js} +0 -0
- /package/build/{WEIGHT_BOYS.zscore.yearly-5bdd7652.js → WEIGHT_BOYS.zscore.yearly-e1491484.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.monthly-544b48b4.js → WEIGHT_GIRLS.percentile.monthly-8285cbfd.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.weekly-2f89e0a2.js → WEIGHT_GIRLS.percentile.weekly-999ff665.js} +0 -0
- /package/build/{WEIGHT_GIRLS.percentile.yearly-e1fee70f.js → WEIGHT_GIRLS.percentile.yearly-5d745551.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.monthly-b255d997.js → WEIGHT_GIRLS.zscore.monthly-08abf613.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.weekly-5bc5ee2b.js → WEIGHT_GIRLS.zscore.weekly-b2457e48.js} +0 -0
- /package/build/{WEIGHT_GIRLS.zscore.yearly-969f7d88.js → WEIGHT_GIRLS.zscore.yearly-14984ece.js} +0 -0
- /package/build/{ageGenerate-70274de8.js → ageGenerate-547857b7.js} +0 -0
- /package/build/{animation-545c3845.js → animation-acacae7f.js} +0 -0
- /package/build/{constants-e2534f67.js → constants-5654853a.js} +0 -0
- /package/build/{constants-5c34eb19.js → constants-d35c3228.js} +0 -0
- /package/build/{constants-879264ec.js → constants-e91cf62f.js} +0 -0
- /package/build/{context-1ed1d238.js → context-f50b241f.js} +0 -0
- /package/build/{dataTransform-ccd3d254.js → dataTransform-88ffec1a.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.monthly-0b5b180c.js → BMI_BOYS.percentile.monthly-c93dc9c0.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.weekly-b070fd21.js → BMI_BOYS.percentile.weekly-e400a135.js} +0 -0
- /package/build/esm/{BMI_BOYS.percentile.yearly-8f711651.js → BMI_BOYS.percentile.yearly-9ce65b51.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.monthly-a4e99b76.js → BMI_BOYS.zscore.monthly-e9bf26a9.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.weekly-8ce08c86.js → BMI_BOYS.zscore.weekly-9a07be03.js} +0 -0
- /package/build/esm/{BMI_BOYS.zscore.yearly-9f487efb.js → BMI_BOYS.zscore.yearly-a0fac7ab.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.monthly-20d86c35.js → BMI_GIRLS.percentile.monthly-b9e15c03.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.weekly-be2e5522.js → BMI_GIRLS.percentile.weekly-68558617.js} +0 -0
- /package/build/esm/{BMI_GIRLS.percentile.yearly-ab0a7178.js → BMI_GIRLS.percentile.yearly-38fb429a.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.monthly-0e994dff.js → BMI_GIRLS.zscore.monthly-1e8210e9.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.weekly-b3c834c6.js → BMI_GIRLS.zscore.weekly-e536a67d.js} +0 -0
- /package/build/esm/{BMI_GIRLS.zscore.yearly-e7c1d220.js → BMI_GIRLS.zscore.yearly-38b904d1.js} +0 -0
- /package/build/esm/{ChevronDown-cf7a70be.js → ChevronDown-1e5242be.js} +0 -0
- /package/build/esm/{Google-6f30a87a.js → Google-784308ab.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.monthly-a018ba09.js → HEAD CIRCUM_BOYS.percentile.monthly-3b944691.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.weekly-d0888d5f.js → HEAD CIRCUM_BOYS.percentile.weekly-c6dd72a1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.percentile.yearly-f6049e93.js → HEAD CIRCUM_BOYS.percentile.yearly-a954d98f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.monthly-4c3676e5.js → HEAD CIRCUM_BOYS.zscore.monthly-12aeb185.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.weekly-8d968dc3.js → HEAD CIRCUM_BOYS.zscore.weekly-94742f8f.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_BOYS.zscore.yearly-1ad17b59.js → HEAD CIRCUM_BOYS.zscore.yearly-3c75af9c.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.monthly-00188cf9.js → HEAD CIRCUM_GIRLS.percentile.monthly-24fcee72.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.weekly-7b9cef12.js → HEAD CIRCUM_GIRLS.percentile.weekly-c1b97bc8.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.percentile.yearly-a7534ab8.js → HEAD CIRCUM_GIRLS.percentile.yearly-8a036b97.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.monthly-7a014836.js → HEAD CIRCUM_GIRLS.zscore.monthly-2006bbe1.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.weekly-f7bb13a4.js → HEAD CIRCUM_GIRLS.zscore.weekly-085f4704.js} +0 -0
- /package/build/esm/{HEAD CIRCUM_GIRLS.zscore.yearly-1c571a77.js → HEAD CIRCUM_GIRLS.zscore.yearly-1a4fcece.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.monthly-3f81f2e6.js → HEIGHT_BOYS.percentile.monthly-f5c0cfc1.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.weekly-e1c7b47e.js → HEIGHT_BOYS.percentile.weekly-178695b5.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.percentile.yearly-32a74cc8.js → HEIGHT_BOYS.percentile.yearly-0ca79351.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.monthly-afac958e.js → HEIGHT_BOYS.zscore.monthly-21709796.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.weekly-b683490f.js → HEIGHT_BOYS.zscore.weekly-9ac0561b.js} +0 -0
- /package/build/esm/{HEIGHT_BOYS.zscore.yearly-3bc5cfcd.js → HEIGHT_BOYS.zscore.yearly-c8f894d8.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.monthly-1555c683.js → HEIGHT_GIRLS.percentile.monthly-107d172c.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.weekly-ac266729.js → HEIGHT_GIRLS.percentile.weekly-8b4f840a.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.percentile.yearly-b2a33450.js → HEIGHT_GIRLS.percentile.yearly-0ce65bac.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.monthly-c59d7023.js → HEIGHT_GIRLS.zscore.monthly-5dff43e2.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.weekly-3bc0b400.js → HEIGHT_GIRLS.zscore.weekly-a4ed8005.js} +0 -0
- /package/build/esm/{HEIGHT_GIRLS.zscore.yearly-11ebfac2.js → HEIGHT_GIRLS.zscore.yearly-a5cd5cf8.js} +0 -0
- /package/build/esm/{Visible-9531b61a.js → Visible-a9081b14.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.monthly-a56b2d16.js → WEIGHT_BOYS.percentile.monthly-5c277828.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.weekly-c8549ae9.js → WEIGHT_BOYS.percentile.weekly-344ba281.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.percentile.yearly-21b55b63.js → WEIGHT_BOYS.percentile.yearly-9df288a3.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.monthly-f86871d6.js → WEIGHT_BOYS.zscore.monthly-e7034b6e.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.weekly-5af8c3a2.js → WEIGHT_BOYS.zscore.weekly-5e9945f8.js} +0 -0
- /package/build/esm/{WEIGHT_BOYS.zscore.yearly-86a5dc0a.js → WEIGHT_BOYS.zscore.yearly-e2140e86.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.monthly-a7bad001.js → WEIGHT_GIRLS.percentile.monthly-cf15dbd0.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.weekly-03afc028.js → WEIGHT_GIRLS.percentile.weekly-b1982fdd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.percentile.yearly-02eb5aaf.js → WEIGHT_GIRLS.percentile.yearly-76a88ccd.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.monthly-23b8102a.js → WEIGHT_GIRLS.zscore.monthly-21aeed2c.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.weekly-387726b9.js → WEIGHT_GIRLS.zscore.weekly-b7a797c9.js} +0 -0
- /package/build/esm/{WEIGHT_GIRLS.zscore.yearly-8e2739a7.js → WEIGHT_GIRLS.zscore.yearly-4bf21526.js} +0 -0
- /package/build/esm/{ageGenerate-c1872d67.js → ageGenerate-77f841e5.js} +0 -0
- /package/build/esm/{animation-ac253c4a.js → animation-d55ddb4b.js} +0 -0
- /package/build/esm/{constants-2f160865.js → constants-c30e43f8.js} +0 -0
- /package/build/esm/{constants-5f6b363c.js → constants-de1deeec.js} +0 -0
- /package/build/esm/{constants-3d1898d5.js → constants-f72ffa06.js} +0 -0
- /package/build/esm/{context-d599e7dc.js → context-6551e39b.js} +0 -0
- /package/build/esm/{dataTransform-5a962134.js → dataTransform-7c154871.js} +0 -0
- /package/build/esm/{index-62f1463f.js → index-02497cee.js} +0 -0
- /package/build/esm/{index-407dcda5.js → index-1a077c98.js} +0 -0
- /package/build/esm/{index-d7c385e9.js → index-7acbe390.js} +0 -0
- /package/build/esm/{index-21130e1b.js → index-9b8b5999.js} +0 -0
- /package/build/esm/{index-32875b05.js → index-ab0d6f8d.js} +0 -0
- /package/build/esm/{index-4477435c.js → index-b41f3450.js} +0 -0
- /package/build/esm/{index-47ba3e18.js → index-b94a275e.js} +0 -0
- /package/build/esm/{index-53bd0bdf.js → index-ca3aee2a.js} +0 -0
- /package/build/esm/{index-1c980507.js → index-cb5cde3e.js} +0 -0
- /package/build/esm/{index.styles-b0090ff0.js → index.styles-6a730dce.js} +0 -0
- /package/build/esm/{localizeNumberFormat-1f1e811d.js → localizeNumberFormat-539b694c.js} +0 -0
- /package/build/esm/{number-107806ff.js → number-74e3a97c.js} +0 -0
- /package/build/esm/{paths-1cfcec63.js → paths-2217da0d.js} +0 -0
- /package/build/esm/{routing-ea8d670a.js → routing-53badcf1.js} +0 -0
- /package/build/esm/{shared-b3ef7840.js → shared-fe9ae3ca.js} +0 -0
- /package/build/esm/{translationsContext-76fa891e.js → translationsContext-2ade78b3.js} +0 -0
- /package/build/esm/{tslib.es6-f8676dd9.js → tslib.es6-927b689c.js} +0 -0
- /package/build/esm/{types-5434e92d.js → types-4b2c41cb.js} +0 -0
- /package/build/esm/{useImageAspectRatio-3e071148.js → useImageAspectRatio-22232a85.js} +0 -0
- /package/build/esm/{useOutsideClick-aec33dda.js → useOutsideClick-7ba59094.js} +0 -0
- /package/build/esm/{useScrollbarSize-e34ea237.js → useScrollbarSize-4a3390fc.js} +0 -0
- /package/build/esm/{useUniqueId-700011ed.js → useUniqueId-979170e8.js} +0 -0
- /package/build/esm/{utils-d418c7c0.js → utils-079acf1d.js} +0 -0
- /package/build/esm/{utils-835c2ec3.js → utils-74662a31.js} +0 -0
- /package/build/{index-6668a83f.js → index-0e30a1dc.js} +0 -0
- /package/build/{index-72a354b2.js → index-1baf719e.js} +0 -0
- /package/build/{index-f95654ce.js → index-566e0fbe.js} +0 -0
- /package/build/{index-f52bbbfa.js → index-8e41ed67.js} +0 -0
- /package/build/{index-688d1f65.js → index-9b461764.js} +0 -0
- /package/build/{index-11bf8414.js → index-abc6d843.js} +0 -0
- /package/build/{index-524d268b.js → index-cb09699a.js} +0 -0
- /package/build/{index-3511d6a1.js → index-cdec1f55.js} +0 -0
- /package/build/{index-e1172b9b.js → index-f73b051f.js} +0 -0
- /package/build/{index.styles-0b3a8242.js → index.styles-e9e9cd08.js} +0 -0
- /package/build/{localizeNumberFormat-44ed977f.js → localizeNumberFormat-1825819b.js} +0 -0
- /package/build/{number-e6c2753e.js → number-942634c3.js} +0 -0
- /package/build/{paths-25e926f2.js → paths-376457b1.js} +0 -0
- /package/build/{routing-12e9d94b.js → routing-1b93216e.js} +0 -0
- /package/build/{shared-07989997.js → shared-ff27b86b.js} +0 -0
- /package/build/{translationsContext-3fabf462.js → translationsContext-03fca8d3.js} +0 -0
- /package/build/{tslib.es6-8606a9a8.js → tslib.es6-7d52d73f.js} +0 -0
- /package/build/{types-0ee94296.js → types-deb22294.js} +0 -0
- /package/build/{useImageAspectRatio-7b6f55e8.js → useImageAspectRatio-734f87c3.js} +0 -0
- /package/build/{useOutsideClick-eacb034a.js → useOutsideClick-1f95d35f.js} +0 -0
- /package/build/{useScrollbarSize-527836e9.js → useScrollbarSize-8b7cf43f.js} +0 -0
- /package/build/{useUniqueId-064a28fa.js → useUniqueId-86b3f805.js} +0 -0
- /package/build/{utils-fac8b1d4.js → utils-7a22813e.js} +0 -0
- /package/build/{utils-19268855.js → utils-faa50102.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-927b689c.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, c as checkUserExist, d as fetchSSOV2ApiJson, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, u as updateUserInfo, r as resetPassword, s as setSSOCurrentLocale, e as setSSOIsMarryBaby } from './index-
|
|
4
|
+
import { I as Input, h as ErrorBoundary, d as Checkbox, i as PhoneWithCustomCountrySelect, O as OTP, j as PasswordInput } from './index-9f72c82e.js';
|
|
5
|
+
import { f as fetchSSOV2Api, b as getWebsiteId, S as SSO_V2_PATHS, c as checkUserExist, d as fetchSSOV2ApiJson, F as FacebookAppId, G as GoogleAuthClientId, h as handleAuthSuccess, g as getUserInfo, u as updateUserInfo, r as resetPassword, s as setSSOCurrentLocale, e as setSSOIsMarryBaby } from './index-b6636fd0.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-a24345a9.js';
|
|
10
|
+
import { L as LogoIcon } from './logoIcon-6a4cb7fc.js';
|
|
11
|
+
import { B as Button } from './index-1cff3352.js';
|
|
12
|
+
import { M as Modal } from './index-2ba400f4.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-ab0d6f8d.js';
|
|
16
|
+
import { C as CommonGAssets } from './index-1a077c98.js';
|
|
17
|
+
import { s as showNotification } from './index-070e470e.js';
|
|
18
|
+
import { T as Text } from './index-cf4e1e30.js';
|
|
19
|
+
import './index-b41f3450.js';
|
|
20
|
+
import { u as useTranslations } from './index-c5e9054e.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-079acf1d.js';
|
|
23
|
+
import './index-7f80ae7d.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-08b33280.js';
|
|
25
|
+
export { u as useSSOV2Store } from './store-08b33280.js';
|
|
26
|
+
import { I as ImageWrap } from './index-615b60e4.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-784308ab.js';
|
|
29
|
+
import { i as isFeaturePolicyUpdateEnabled, a as isFeatureWhatsAppEnabled, b as isFeatureZaloEnabled, c as isFeatureSMSEnabled, d as isSupportProduct } from './utils-b4ae6998.js';
|
|
30
|
+
export { g as getURLwithSSOTracking } from './utils-b4ae6998.js';
|
|
31
31
|
import { getDomainByLocale, getDomainLocaleKey } from './constantsDomainLocales.js';
|
|
32
|
-
import { S as Spoiler } from './index-
|
|
32
|
+
import { S as Spoiler } from './index-4a443d6f.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-af8986d8.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-499664bd.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-979170e8.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-fe9ae3ca.js';
|
|
52
52
|
import '@emotion/react';
|
|
53
|
-
import './routing-
|
|
53
|
+
import './routing-53badcf1.js';
|
|
54
54
|
import 'date-fns/locale';
|
|
55
55
|
import './constantsRiskScreener.js';
|
|
56
|
-
import './index.styles-
|
|
56
|
+
import './index.styles-6a730dce.js';
|
|
57
57
|
import '@mantine/notifications';
|
|
58
|
-
import './translationsContext-
|
|
58
|
+
import './translationsContext-2ade78b3.js';
|
|
59
59
|
import 'zustand';
|
|
60
|
-
import './healthTools-
|
|
60
|
+
import './healthTools-c3f9d3d6.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: {
|
|
@@ -2806,8 +2813,18 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2806
2813
|
});
|
|
2807
2814
|
}
|
|
2808
2815
|
}, [hidden]);
|
|
2809
|
-
const { source } = useSSOV2Store();
|
|
2816
|
+
const { setPhoneVerifyConflict, phoneAlreadyUsedOnConflict, phoneVerifyConflict, source, returnUrl, skipNavigationOnDismiss, } = useSSOV2Store();
|
|
2817
|
+
const { onClose } = useSSOState();
|
|
2810
2818
|
const { addStep, goNext } = useSSOSteps();
|
|
2819
|
+
const setPhoneAlreadyUsedError = () => {
|
|
2820
|
+
setErrMsg(t('ssov2.phone.alreadyUsed'));
|
|
2821
|
+
setPhoneVerifyConflict('already_used');
|
|
2822
|
+
phoneAlreadyUsedOnConflict === null || phoneAlreadyUsedOnConflict === void 0 ? void 0 : phoneAlreadyUsedOnConflict({
|
|
2823
|
+
phone,
|
|
2824
|
+
source,
|
|
2825
|
+
returnUrl,
|
|
2826
|
+
});
|
|
2827
|
+
};
|
|
2811
2828
|
const onClickContinueZalo = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
2812
2829
|
setLoading(true);
|
|
2813
2830
|
try {
|
|
@@ -2838,7 +2855,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2838
2855
|
goNext();
|
|
2839
2856
|
}
|
|
2840
2857
|
else {
|
|
2841
|
-
|
|
2858
|
+
setPhoneAlreadyUsedError();
|
|
2842
2859
|
}
|
|
2843
2860
|
}
|
|
2844
2861
|
else {
|
|
@@ -2881,7 +2898,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2881
2898
|
goNext();
|
|
2882
2899
|
}
|
|
2883
2900
|
else {
|
|
2884
|
-
|
|
2901
|
+
setPhoneAlreadyUsedError();
|
|
2885
2902
|
}
|
|
2886
2903
|
}
|
|
2887
2904
|
else {
|
|
@@ -2924,7 +2941,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2924
2941
|
goNext();
|
|
2925
2942
|
}
|
|
2926
2943
|
else {
|
|
2927
|
-
|
|
2944
|
+
setPhoneAlreadyUsedError();
|
|
2928
2945
|
}
|
|
2929
2946
|
}
|
|
2930
2947
|
else {
|
|
@@ -2949,6 +2966,7 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2949
2966
|
React__default.createElement(StyledPhone, { defaultCountry: (locale ? MAPPED_LOCALE[locale] || 'VN' : 'VN'), value: phone, onChange: (value) => {
|
|
2950
2967
|
setPhone(value);
|
|
2951
2968
|
setErrMsg('');
|
|
2969
|
+
setPhoneVerifyConflict(null);
|
|
2952
2970
|
}, 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
2971
|
if (!(option === null || option === void 0 ? void 0 : option.label))
|
|
2954
2972
|
return;
|
|
@@ -2961,7 +2979,10 @@ const SSOPhoneVerify = ({ hidden, config, }) => {
|
|
|
2961
2979
|
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
2980
|
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
2981
|
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)
|
|
2982
|
+
source !== 'care_onboarding' && source !== 'ecom' && React__default.createElement(SetupLater, null),
|
|
2983
|
+
source === 'care_onboarding' &&
|
|
2984
|
+
skipNavigationOnDismiss &&
|
|
2985
|
+
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
2986
|
};
|
|
2966
2987
|
|
|
2967
2988
|
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 +3602,31 @@ const SSOScreenRenderer = () => {
|
|
|
3581
3602
|
})));
|
|
3582
3603
|
};
|
|
3583
3604
|
|
|
3605
|
+
const resolveSsoDismissPayload = (params) => {
|
|
3606
|
+
var _a;
|
|
3607
|
+
const { steps, currentStepIndex } = useSSOSteps.getState();
|
|
3608
|
+
const currentStepType = (_a = steps[currentStepIndex]) === null || _a === void 0 ? void 0 : _a.type;
|
|
3609
|
+
let reason = 'flow_exit';
|
|
3610
|
+
if (params.phoneVerifyConflict === 'already_used' &&
|
|
3611
|
+
params.allowDismissOnPhoneConflict) {
|
|
3612
|
+
reason = 'phone_already_used';
|
|
3613
|
+
}
|
|
3614
|
+
else if (currentStepType === SSOStepTypeType.FIRST) {
|
|
3615
|
+
reason = 'first_step_exit';
|
|
3616
|
+
}
|
|
3617
|
+
else if (params.isLoggedIn) {
|
|
3618
|
+
reason = 'logged_in_flow_exit';
|
|
3619
|
+
}
|
|
3620
|
+
return {
|
|
3621
|
+
reason,
|
|
3622
|
+
source: params.source,
|
|
3623
|
+
returnUrl: params.returnUrl,
|
|
3624
|
+
phoneVerifyConflict: params.phoneVerifyConflict,
|
|
3625
|
+
currentStepType,
|
|
3626
|
+
isLoggedIn: params.isLoggedIn,
|
|
3627
|
+
};
|
|
3628
|
+
};
|
|
3629
|
+
|
|
3584
3630
|
if (!Array.prototype.findLastIndex) {
|
|
3585
3631
|
Array.prototype.findLastIndex = function (callback, thisArg) {
|
|
3586
3632
|
for (let i = this.length - 1; i >= 0; i--) {
|
|
@@ -3595,7 +3641,7 @@ if (!String.prototype.capitalize) {
|
|
|
3595
3641
|
return this.charAt(0).toUpperCase() + this.slice(1);
|
|
3596
3642
|
};
|
|
3597
3643
|
}
|
|
3598
|
-
const SSOV2 = ({ onClose: onCloseProps, locale, isMarryBaby = false, }) => {
|
|
3644
|
+
const SSOV2 = ({ onClose: onCloseProps, onDismiss: onDismissProps, locale, isMarryBaby = false, }) => {
|
|
3599
3645
|
const { isOpen, setOpen, returnUrl, setMounted, source, overrideClose, setOnCloseProp, forceReloadOnClose, setABTestFlow, } = useSSOV2Store();
|
|
3600
3646
|
useEffect(() => {
|
|
3601
3647
|
setMounted(true);
|
|
@@ -3655,28 +3701,70 @@ const SSOV2 = ({ onClose: onCloseProps, locale, isMarryBaby = false, }) => {
|
|
|
3655
3701
|
return null;
|
|
3656
3702
|
}
|
|
3657
3703
|
const onClose = (success) => __awaiter(void 0, void 0, void 0, function* () {
|
|
3658
|
-
var _a;
|
|
3704
|
+
var _a, _b, _c, _d, _e;
|
|
3659
3705
|
if (success && overrideClose) {
|
|
3660
3706
|
overrideClose();
|
|
3661
3707
|
return;
|
|
3662
3708
|
}
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
if (success) {
|
|
3666
|
-
hasRedirectHref = redirect(returnUrl, source, forceReloadOnClose);
|
|
3667
|
-
}
|
|
3668
|
-
else {
|
|
3709
|
+
const storeState = useSSOV2Store.getState();
|
|
3710
|
+
if (!success) {
|
|
3669
3711
|
const userInfo = yield getUserInfo();
|
|
3670
|
-
|
|
3671
|
-
|
|
3712
|
+
const isLoggedIn = !!((_a = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _a === void 0 ? void 0 : _a.id);
|
|
3713
|
+
const dismissPayload = resolveSsoDismissPayload({
|
|
3714
|
+
source: storeState.source,
|
|
3715
|
+
returnUrl: storeState.returnUrl,
|
|
3716
|
+
phoneVerifyConflict: storeState.phoneVerifyConflict,
|
|
3717
|
+
allowDismissOnPhoneConflict: storeState.allowDismissOnPhoneConflict,
|
|
3718
|
+
isLoggedIn,
|
|
3719
|
+
});
|
|
3720
|
+
const phoneConflictStayOnPage = storeState.phoneVerifyConflict === 'already_used' &&
|
|
3721
|
+
(storeState.allowDismissOnPhoneConflict ||
|
|
3722
|
+
storeState.skipNavigationOnDismiss);
|
|
3723
|
+
if (dismissPayload.reason === 'phone_already_used' ||
|
|
3724
|
+
phoneConflictStayOnPage) {
|
|
3725
|
+
(_c = (_b = storeState.phoneVerifyHostHandlers) === null || _b === void 0 ? void 0 : _b.onDismissWithPhoneConflict) === null || _c === void 0 ? void 0 : _c.call(_b);
|
|
3726
|
+
storeState.setPhoneVerifyConflict(null);
|
|
3727
|
+
onDismissProps === null || onDismissProps === void 0 ? void 0 : onDismissProps(dismissPayload);
|
|
3728
|
+
setOpen(false);
|
|
3729
|
+
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3730
|
+
return;
|
|
3731
|
+
}
|
|
3732
|
+
onDismissProps === null || onDismissProps === void 0 ? void 0 : onDismissProps(dismissPayload);
|
|
3733
|
+
const deferDismissNavigationToHost = storeState.skipNavigationOnDismiss &&
|
|
3734
|
+
dismissPayload.reason === 'first_step_exit' &&
|
|
3735
|
+
!isLoggedIn;
|
|
3736
|
+
if (deferDismissNavigationToHost) {
|
|
3737
|
+
setOpen(false);
|
|
3738
|
+
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3739
|
+
return;
|
|
3740
|
+
}
|
|
3741
|
+
setOpen(false);
|
|
3742
|
+
const skipNavigation = storeState.skipNavigationOnDismiss ||
|
|
3743
|
+
dismissPayload.reason === 'first_step_exit';
|
|
3744
|
+
let hasRedirectHref = false;
|
|
3745
|
+
if (!isLoggedIn && storeState.dismissUrl !== undefined) {
|
|
3746
|
+
hasRedirectHref = redirect(storeState.dismissUrl !== ''
|
|
3747
|
+
? storeState.dismissUrl
|
|
3748
|
+
: storeState.returnUrl, storeState.source, false);
|
|
3749
|
+
}
|
|
3750
|
+
else if (!skipNavigation) {
|
|
3751
|
+
if (isLoggedIn) {
|
|
3752
|
+
hasRedirectHref = redirect(returnUrl, source, forceReloadOnClose);
|
|
3753
|
+
}
|
|
3754
|
+
else if (forceReloadOnClose) {
|
|
3672
3755
|
window.location.reload();
|
|
3673
3756
|
hasRedirectHref = true;
|
|
3674
3757
|
}
|
|
3675
3758
|
}
|
|
3676
|
-
|
|
3677
|
-
|
|
3759
|
+
if (!hasRedirectHref) {
|
|
3760
|
+
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3678
3761
|
}
|
|
3762
|
+
return;
|
|
3679
3763
|
}
|
|
3764
|
+
setOpen(false);
|
|
3765
|
+
let hasRedirectHref = false;
|
|
3766
|
+
(_e = (_d = useSSOV2Store.getState().phoneVerifyHostHandlers) === null || _d === void 0 ? void 0 : _d.onAuthSuccess) === null || _e === void 0 ? void 0 : _e.call(_d);
|
|
3767
|
+
hasRedirectHref = redirect(returnUrl, source, forceReloadOnClose);
|
|
3680
3768
|
if (!hasRedirectHref) {
|
|
3681
3769
|
onCloseProps === null || onCloseProps === void 0 ? void 0 : onCloseProps();
|
|
3682
3770
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as __awaiter } from './tslib.es6-927b689c.js';
|
|
2
2
|
import { create } from 'zustand';
|
|
3
|
-
import { s as setSSOCurrentLocale, g as getUserInfo, a as getSSOCurrentLocale } from './index-
|
|
3
|
+
import { s as setSSOCurrentLocale, g as getUserInfo, a as getSSOCurrentLocale } from './index-b6636fd0.js';
|
|
4
4
|
import { parsePhoneNumber } from 'react-phone-number-input';
|
|
5
|
-
import { B as BEARER_TOKEN_COOKIE } from './index-
|
|
5
|
+
import { B as BEARER_TOKEN_COOKIE } from './index-a24345a9.js';
|
|
6
6
|
import { getCookie } from './miscCookieHelper.js';
|
|
7
7
|
|
|
8
8
|
const mergePhone = (phone, areaCode) => {
|
|
@@ -116,6 +116,7 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
116
116
|
setOpen: (isOpen) => set({ isOpen }),
|
|
117
117
|
returnUrl: undefined,
|
|
118
118
|
setReturnUrl: (returnUrl) => set({ returnUrl }),
|
|
119
|
+
dismissUrl: undefined,
|
|
119
120
|
mounted: false,
|
|
120
121
|
setMounted: (mounted) => set({ mounted }),
|
|
121
122
|
source: undefined,
|
|
@@ -123,10 +124,16 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
123
124
|
setupSource: undefined,
|
|
124
125
|
setSetupSource: (setupSource) => set({ setupSource }),
|
|
125
126
|
setOnCloseProp: (onClose) => set({ onCloseProp: onClose }),
|
|
127
|
+
phoneVerifyConflict: null,
|
|
128
|
+
setPhoneVerifyConflict: (phoneVerifyConflict) => set({ phoneVerifyConflict }),
|
|
129
|
+
allowDismissOnPhoneConflict: false,
|
|
130
|
+
skipNavigationOnDismiss: false,
|
|
131
|
+
phoneVerifyHostHandlers: undefined,
|
|
132
|
+
setPhoneVerifyHostHandlers: (phoneVerifyHostHandlers) => set({ phoneVerifyHostHandlers }),
|
|
126
133
|
setSSOCurrentLocale: (locale) => setSSOCurrentLocale(locale),
|
|
127
134
|
triggerLogin: (params) => {
|
|
128
135
|
var _a, _b;
|
|
129
|
-
const { source, returnUrl, locale } = params || {};
|
|
136
|
+
const { source, returnUrl, dismissUrl, locale } = params || {};
|
|
130
137
|
setSSOCurrentLocale(locale);
|
|
131
138
|
const alreadyHasToken = getCookie(BEARER_TOKEN_COOKIE);
|
|
132
139
|
if (alreadyHasToken) {
|
|
@@ -153,6 +160,7 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
153
160
|
set({
|
|
154
161
|
isOpen: true,
|
|
155
162
|
returnUrl,
|
|
163
|
+
dismissUrl,
|
|
156
164
|
source,
|
|
157
165
|
overrideClose: undefined,
|
|
158
166
|
forceReloadOnClose: (returnUrl === null || returnUrl === void 0 ? void 0 : returnUrl.includes('joincommunity=1'))
|
|
@@ -164,7 +172,7 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
164
172
|
}
|
|
165
173
|
},
|
|
166
174
|
triggerWhatsappLogin: (params) => {
|
|
167
|
-
const { source, returnUrl, referrer, forceReloadOnClose, isAlreadyLogin, phone_number, area_code, } = params || {};
|
|
175
|
+
const { source, returnUrl, referrer, forceReloadOnClose, isAlreadyLogin, phone_number, area_code, closable, } = params || {};
|
|
168
176
|
const skipPhoneStep = isAlreadyLogin && phone_number && area_code;
|
|
169
177
|
if (skipPhoneStep) {
|
|
170
178
|
const phone = mergePhone(String(phone_number), area_code);
|
|
@@ -202,35 +210,44 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
202
210
|
overrideClose: undefined,
|
|
203
211
|
forceReloadOnClose: forceReloadOnClose || false,
|
|
204
212
|
flowData: { method: 'whatsapp', flow: 'login' },
|
|
213
|
+
closable: !!closable,
|
|
205
214
|
userInfo: undefined,
|
|
206
215
|
});
|
|
207
216
|
},
|
|
208
217
|
triggerCareEmailPhoneVerify: (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
209
|
-
var _a, _b, _c;
|
|
218
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
219
|
+
(_b = (_a = get().phoneVerifyHostHandlers) === null || _a === void 0 ? void 0 : _a.onFlowStart) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
220
|
+
const allowDismissOnPhoneConflict = (_d = (_c = params === null || params === void 0 ? void 0 : params.phoneAlreadyUsed) === null || _c === void 0 ? void 0 : _c.allowDismiss) !== null && _d !== void 0 ? _d : (params === null || params === void 0 ? void 0 : params.source) === 'care_onboarding';
|
|
221
|
+
set({
|
|
222
|
+
phoneVerifyConflict: null,
|
|
223
|
+
allowDismissOnPhoneConflict,
|
|
224
|
+
skipNavigationOnDismiss: (params === null || params === void 0 ? void 0 : params.source) === 'care_onboarding',
|
|
225
|
+
phoneAlreadyUsedOnConflict: (_e = params === null || params === void 0 ? void 0 : params.phoneAlreadyUsed) === null || _e === void 0 ? void 0 : _e.onPhoneAlreadyUsed,
|
|
226
|
+
});
|
|
210
227
|
const userInfo = yield getUserInfo();
|
|
211
|
-
if ((
|
|
228
|
+
if ((_f = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _f === void 0 ? void 0 : _f.first_time_login) {
|
|
212
229
|
userInfo._data.first_time_login = 0;
|
|
213
230
|
}
|
|
214
231
|
set({ userInfo: userInfo === null || userInfo === void 0 ? void 0 : userInfo._data });
|
|
215
232
|
const forceUpdatePhoneEmail = (alreadyLoggedIn) => __awaiter(void 0, void 0, void 0, function* () {
|
|
216
|
-
var
|
|
233
|
+
var _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
217
234
|
const userInfo = yield getUserInfo();
|
|
218
|
-
const emailFromProfile = (
|
|
235
|
+
const emailFromProfile = (_j = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _j === void 0 ? void 0 : _j.email;
|
|
219
236
|
const usableEmailFromProfile = emailFromProfile &&
|
|
220
237
|
!emailFromProfile.endsWith('@hhg.com') &&
|
|
221
238
|
!emailFromProfile.endsWith('@facebook.com')
|
|
222
239
|
? emailFromProfile
|
|
223
240
|
: undefined;
|
|
224
241
|
const carriedEmail = (params === null || params === void 0 ? void 0 : params.email) || usableEmailFromProfile;
|
|
225
|
-
const hasPhone = !!((
|
|
226
|
-
const hasEmail = !!((
|
|
227
|
-
!!((
|
|
228
|
-
!((
|
|
229
|
-
!((
|
|
230
|
-
const hasName = !!((
|
|
231
|
-
const hasBirthday = !!((
|
|
232
|
-
const hasGender = typeof ((
|
|
233
|
-
const provider = (
|
|
242
|
+
const hasPhone = !!((_k = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _k === void 0 ? void 0 : _k.phone) && !!((_l = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _l === void 0 ? void 0 : _l.phone_verified_at);
|
|
243
|
+
const hasEmail = !!((_m = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _m === void 0 ? void 0 : _m.email) &&
|
|
244
|
+
!!((_o = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _o === void 0 ? void 0 : _o.email_verified_at) &&
|
|
245
|
+
!((_q = (_p = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _p === void 0 ? void 0 : _p.email) === null || _q === void 0 ? void 0 : _q.endsWith('@hhg.com')) &&
|
|
246
|
+
!((_s = (_r = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _r === void 0 ? void 0 : _r.email) === null || _s === void 0 ? void 0 : _s.endsWith('@facebook.com'));
|
|
247
|
+
const hasName = !!((_t = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _t === void 0 ? void 0 : _t.name);
|
|
248
|
+
const hasBirthday = !!((_u = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _u === void 0 ? void 0 : _u.birthday);
|
|
249
|
+
const hasGender = typeof ((_v = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _v === void 0 ? void 0 : _v.gender) === 'number';
|
|
250
|
+
const provider = (_w = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _w === void 0 ? void 0 : _w.provider;
|
|
234
251
|
const finishedSetup = hasName && hasBirthday && hasGender;
|
|
235
252
|
if (!hasPhone || !hasEmail) {
|
|
236
253
|
useSSOSteps.setState({
|
|
@@ -280,16 +297,16 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
280
297
|
isOpen: false,
|
|
281
298
|
forceReloadOnClose: false,
|
|
282
299
|
});
|
|
283
|
-
(
|
|
300
|
+
(_y = (_x = get()).onCloseProp) === null || _y === void 0 ? void 0 : _y.call(_x);
|
|
284
301
|
}
|
|
285
302
|
});
|
|
286
|
-
if (!((
|
|
303
|
+
if (!((_g = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _g === void 0 ? void 0 : _g.id)) {
|
|
287
304
|
useSSOSteps.setState({
|
|
288
305
|
steps: [
|
|
289
306
|
{
|
|
290
307
|
type: SSOStepTypeType.FIRST,
|
|
291
308
|
config: {
|
|
292
|
-
legalTextType: (((
|
|
309
|
+
legalTextType: (((_h = params === null || params === void 0 ? void 0 : params.returnUrl) === null || _h === void 0 ? void 0 : _h.includes('joincommunity=1'))
|
|
293
310
|
? 'community'
|
|
294
311
|
: params === null || params === void 0 ? void 0 : params.legalTextType) || 'default',
|
|
295
312
|
},
|
|
@@ -312,23 +329,23 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
312
329
|
}
|
|
313
330
|
}),
|
|
314
331
|
triggerCommunityEmailVerify: (params) => __awaiter(void 0, void 0, void 0, function* () {
|
|
315
|
-
var
|
|
332
|
+
var _z, _0, _1;
|
|
316
333
|
const userInfo = yield getUserInfo();
|
|
317
|
-
if ((
|
|
334
|
+
if ((_z = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _z === void 0 ? void 0 : _z.first_time_login) {
|
|
318
335
|
userInfo._data.first_time_login = 0;
|
|
319
336
|
}
|
|
320
337
|
set({ userInfo: userInfo === null || userInfo === void 0 ? void 0 : userInfo._data });
|
|
321
338
|
const forceUpdateEmail = (alreadyLoggedIn) => __awaiter(void 0, void 0, void 0, function* () {
|
|
322
|
-
var
|
|
339
|
+
var _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13;
|
|
323
340
|
const userInfo = yield getUserInfo();
|
|
324
|
-
const hasEmail = !!((
|
|
325
|
-
!!((
|
|
326
|
-
!((
|
|
327
|
-
!((
|
|
328
|
-
const hasName = !!((
|
|
329
|
-
const hasBirthday = !!((
|
|
330
|
-
const hasGender = typeof ((
|
|
331
|
-
const provider = (
|
|
341
|
+
const hasEmail = !!((_2 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _2 === void 0 ? void 0 : _2.email) &&
|
|
342
|
+
!!((_3 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _3 === void 0 ? void 0 : _3.email_verified_at) &&
|
|
343
|
+
!((_5 = (_4 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _4 === void 0 ? void 0 : _4.email) === null || _5 === void 0 ? void 0 : _5.endsWith('@hhg.com')) &&
|
|
344
|
+
!((_7 = (_6 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _6 === void 0 ? void 0 : _6.email) === null || _7 === void 0 ? void 0 : _7.endsWith('@facebook.com'));
|
|
345
|
+
const hasName = !!((_8 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _8 === void 0 ? void 0 : _8.name);
|
|
346
|
+
const hasBirthday = !!((_9 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _9 === void 0 ? void 0 : _9.birthday);
|
|
347
|
+
const hasGender = typeof ((_10 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _10 === void 0 ? void 0 : _10.gender) === 'number';
|
|
348
|
+
const provider = (_11 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _11 === void 0 ? void 0 : _11.provider;
|
|
332
349
|
const finishedSetup = hasName && hasBirthday && hasGender;
|
|
333
350
|
if (!hasEmail) {
|
|
334
351
|
useSSOSteps.setState({
|
|
@@ -369,16 +386,16 @@ const useSSOV2Store = create()((set, get) => ({
|
|
|
369
386
|
isOpen: false,
|
|
370
387
|
forceReloadOnClose: false,
|
|
371
388
|
});
|
|
372
|
-
(
|
|
389
|
+
(_13 = (_12 = get()).onCloseProp) === null || _13 === void 0 ? void 0 : _13.call(_12);
|
|
373
390
|
}
|
|
374
391
|
});
|
|
375
|
-
if (!((
|
|
392
|
+
if (!((_0 = userInfo === null || userInfo === void 0 ? void 0 : userInfo._data) === null || _0 === void 0 ? void 0 : _0.id)) {
|
|
376
393
|
useSSOSteps.setState({
|
|
377
394
|
steps: [
|
|
378
395
|
{
|
|
379
396
|
type: SSOStepTypeType.FIRST,
|
|
380
397
|
config: {
|
|
381
|
-
legalTextType: (((
|
|
398
|
+
legalTextType: (((_1 = params === null || params === void 0 ? void 0 : params.returnUrl) === null || _1 === void 0 ? void 0 : _1.includes('joincommunity=1'))
|
|
382
399
|
? 'community'
|
|
383
400
|
: params === null || params === void 0 ? void 0 : params.legalTextType) || 'default',
|
|
384
401
|
},
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { SubotNodeItem, SubotMessage, SubotBotItem, SubotFormSubmitMeta } from "../../interfaces/types";
|
|
2
|
+
export declare const SUBOT_INLINE_SSO_QUERY_KEYS: readonly ["bot_id", "mode", "embeddedType", "toolName"];
|
|
3
|
+
/**
|
|
4
|
+
* Remove subot-inline SSO returnUrl params from the address bar after a successful
|
|
5
|
+
* post-login restore so a later SSO attempt is not stuck when redirect() compares URLs.
|
|
6
|
+
*/
|
|
7
|
+
export declare const stripSubotInlineSsoQueryFromUrl: () => boolean;
|
|
8
|
+
export type SubotInlineSsoRestoreResult = {
|
|
9
|
+
listNodes: SubotNodeItem[];
|
|
10
|
+
activeId: string;
|
|
11
|
+
params: SubotMessage;
|
|
12
|
+
};
|
|
13
|
+
/** Current page URL without subot-inline SSO query noise (for SSO V2 popup returnUrl). */
|
|
14
|
+
export declare const buildSubotInlineSsoReturnUrl: () => string;
|
|
15
|
+
export declare const isActiveSubotInlineSsoNode: (listNodes: SubotNodeItem[], activeId: string) => boolean;
|
|
16
|
+
export declare const hasPendingSubotInlineSsoState: (botId: string | number) => boolean;
|
|
17
|
+
export declare const restoreSubotInlineFromSsoStorage: (botId: string | number, { getParams }: {
|
|
18
|
+
getParams: () => SubotMessage;
|
|
19
|
+
}) => Promise<SubotInlineSsoRestoreResult | null>;
|
|
2
20
|
export declare const getPreviousStateFromStorage: (botId: string | number, { getParams }: {
|
|
3
21
|
getParams: () => SubotMessage;
|
|
4
22
|
}) => {
|